@ckeditor/ckeditor5-revision-history 0.0.0-nightly-20250204.0 → 0.0.0-nightly-20250206.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 +10 -10
- package/src/revisionsrepository.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebar.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebartimeperiodview.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebarview.js +1 -1
- package/src/ui/revisionssidebar/utils.js +1 -1
- package/src/ui/revisionviewer/changesnavigationview.js +1 -1
- package/src/ui/revisionviewer/revisionviewerloadingoverlay.js +1 -1
- package/src/ui/revisionviewer/revisionviewerui.js +1 -1
package/dist/index.js
CHANGED
|
@@ -20,10 +20,10 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{ObservableMixin as
|
|
24
|
-
_0xbb5f7f(){['id'];['creator'];['authors'];['diffData'];['toVersion'];['fromVersion'];['model'];constructor(_0x4fc9af){super(),this['id']=_0x4fc9af['id']||_0x58d578(),this['creator']=_0x4fc9af['creator']||null,this['authors']=_0x4fc9af['authors']||[],this['diffData']=_0x4fc9af['diffData']||null,this['toVersion']=_0x4fc9af['toVersion']||0x0,this['fromVersion']=_0x4fc9af['fromVersion']||0x0,this['set']('name',_0x4fc9af['name']||''),this['set']('createdAt',_0x4fc9af['createdAt']||new Date()),this['set']('attributes',_0x4fc9af['attributes']||{});}['setName'](_0x479e94){this['_update']({'name':_0x479e94});}['setAttribute'](_0x3f56cb,_0x3ab2fc){const _0x22335f=_0x2178aa(this['attributes']);_0x338db6(_0x22335f,_0x3f56cb,_0x3ab2fc),this['_update']({'attributes':_0x22335f});}['removeAttribute'](_0x2ef18b){const _0x4bb8de=_0x2178aa(this['attributes']);_0x318046(_0x4bb8de,_0x2ef18b),this['_update']({'attributes':_0x4bb8de});}['_update'](_0x1d4956,_0x2f0809=!0x1){let _0xa4813b=!0x1;const _0x1d2a21={'id':this['id']},_0x25ef38=['name','createdAt','diffData','authors','attributes','toVersion','fromVersion','creatorId'];for(const _0x1ca28c of _0x25ef38){const _0x2be3f2=_0x1d4956[_0x1ca28c];void 0x0!==_0x2be3f2&&_0x2be3f2!==this[_0x1ca28c]&&(this[_0x1ca28c]=_0x2be3f2,_0x1d2a21[_0x1ca28c]=_0x2be3f2,_0xa4813b=!0x0);}_0xa4813b&&(_0x1d2a21['authors']&&(_0x1d2a21['authorsIds']=_0x1d2a21['authors']['map'](_0x1f55f1=>_0x1f55f1['id']),delete _0x1d2a21['authors']),this['fire']('_update',_0x1d2a21,_0x2f0809));}['toJSON'](){return{'id':this['id'],'name':this['name'],'creatorId':this['creator']?this['creator']['id']:null,'authorsIds':this['authors']['map'](_0x57795d=>_0x57795d['id']),'diffData':this['diffData'],'createdAt':this['createdAt'],'attributes':this['attributes'],'fromVersion':this['fromVersion'],'toVersion':this['toVersion']};}}class j extends _0x2a51c8{['_revisions'];static get['requires'](){return[_0x10b62c];}static get['pluginName'](){return'RevisionsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['length'](){return this['_revisions']['length'];}constructor(_0x47df9a){super(_0x47df9a),this['_revisions']=new _0x1cf4f8();}['afterInit'](){!async function(_0x551c2a){const _0x5b4d98=_0x3d17a6([0x44,0x55,0x63,0x69,0x37,0x77,0x5a,0x31,0x50,0x30,0x54,0x79,0x72,0x48,0x70,0x46,0x34,0x6a,0x67,0x45,0x58,0x7a,0x4f,0x65,0x41,0x6c,0x51,0x4e,0x62,0x6f,0x6d,0x75,0x4a,0x49,0x53,0x68,0x57,0x64,0x52,0x36,0x6e,0x35,0x33,0x38,0x4b,0x39,0x56,0x76,0x74,0x43,0x32,0x42,0x78,0x66,0x6b,0x4d,0x59,0x4c,0x47,0x73,0x71,0x61]),_0x3da155=0xeb829,_0x50419a=0x330feed7,_0x3640ec=0x3308b05f^_0x50419a,_0x12ef30=window[_0x3d17a6([0x44,0x61,0x74,0x65])][_0x3d17a6([0x6e,0x6f,0x77])](),_0x41b317=_0x551c2a[_0x3d17a6([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x3af531=new window[(_0x3d17a6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2cd7cd=>{_0x41b317[_0x3d17a6([0x6f,0x6e,0x63,0x65])](_0x3d17a6([0x72,0x65,0x61,0x64,0x79]),_0x2cd7cd);}),_0x10b34d={[_0x3d17a6([0x6b,0x74,0x79])]:_0x3d17a6([0x45,0x43]),[_0x3d17a6([0x75,0x73,0x65])]:_0x3d17a6([0x73,0x69,0x67]),[_0x3d17a6([0x63,0x72,0x76])]:_0x3d17a6([0x50,0x2d,0x32,0x35,0x36]),[_0x3d17a6([0x78])]:_0x3d17a6([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]),[_0x3d17a6([0x79])]:_0x3d17a6([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]),[_0x3d17a6([0x61,0x6c,0x67])]:_0x3d17a6([0x45,0x53,0x32,0x35,0x36])},_0x146f85=_0x41b317[_0x3d17a6([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x3d17a6([0x67,0x65,0x74])](_0x3d17a6([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x33afa8(){let _0x3e63fd,_0x4b4413=null,_0x378255=null;try{if(_0x146f85==_0x3d17a6([0x47,0x50,0x4c]))return _0x3d17a6([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x3e63fd=_0x1fef25(),!_0x3e63fd)return _0x3d17a6([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x3e63fd[_0x3d17a6([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x378255=_0x55ec77(_0x3e63fd[_0x3d17a6([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x3e63fd[_0x3d17a6([0x6a,0x74,0x69])])),await _0x24bf3b()?_0xd25806()?_0x15a984()?_0x3d17a6([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x4da538()?(_0x3e63fd[_0x3d17a6([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3d17a6([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x4b4413=_0x1ad80d(_0x3d17a6([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x3e63fd[_0x3d17a6([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3d17a6([0x74,0x72,0x69,0x61,0x6c])&&(_0x4b4413=_0x1ad80d(_0x3d17a6([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x5de731()):_0x3d17a6([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x3d17a6([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x3d17a6([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x2fc0af){return _0x3d17a6([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x15a984(){const _0x14e52b=[_0x3d17a6([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x3d17a6([0x74,0x72,0x69,0x61,0x6c])][_0x3d17a6([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3e63fd[_0x3d17a6([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x12ef30/0x3e8:0xe10*_0x3640ec;return _0x3e63fd[_0x3d17a6([0x65,0x78,0x70])]<_0x14e52b;}function _0xd25806(){const _0x22a54d=_0x3e63fd[_0x3d17a6([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x22a54d)return!0x1;if(_0x22a54d[_0x3d17a6([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3d17a6([0x2a])))return!0x0;if(_0x22a54d[_0x3d17a6([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3d17a6([0x52,0x48])))return!0x0;if(_0x22a54d[_0x3d17a6([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3d17a6([0x52,0x52,0x48]))){if(_0x1893a7())return!0x0;if(_0x48a268()||_0x2214a9())return!0x0;}return!0x1;}function _0x4da538(){const _0x3bd65c=_0x3e63fd[_0x3d17a6([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x3bd65c||0x0==_0x3bd65c[_0x3d17a6([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x4ba2dc}=new URL(window[_0x3d17a6([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x3bd65c[_0x3d17a6([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4ba2dc))return!0x0;const _0x4390d0=_0x4ba2dc[_0x3d17a6([0x73,0x70,0x6c,0x69,0x74])](_0x3d17a6([0x2e]));return _0x3bd65c[_0x3d17a6([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x548f63=>_0x548f63[_0x3d17a6([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3d17a6([0x2a])))[_0x3d17a6([0x6d,0x61,0x70])](_0x34ff9a=>_0x34ff9a[_0x3d17a6([0x73,0x70,0x6c,0x69,0x74])](_0x3d17a6([0x2e])))[_0x3d17a6([0x73,0x6f,0x6d,0x65])](_0x513c96=>_0x4390d0[_0x3d17a6([0x65,0x76,0x65,0x72,0x79])]((_0x1172f8,_0x6205fa)=>_0x513c96[_0x6205fa]===_0x1172f8||_0x513c96[_0x6205fa]===_0x3d17a6([0x2a])));}function _0x5de731(){return _0x4b4413&&_0x378255?new window[(_0x3d17a6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x49a472,_0x4b9e57)=>{_0x4b4413[_0x3d17a6([0x74,0x68,0x65,0x6e])](_0x49a472,_0x4b9e57),_0x378255[_0x3d17a6([0x74,0x68,0x65,0x6e])](_0x171239=>{_0x171239!=_0x3d17a6([0x56,0x61,0x6c,0x69,0x64])&&_0x49a472(_0x171239);},_0x4b9e57);}):_0x4b4413||_0x378255||_0x3d17a6([0x56,0x61,0x6c,0x69,0x64]);}}function _0x55ec77(_0x960d76,_0x459fbc){return new window[(_0x3d17a6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1ca412=>{if(_0x47e7be())return _0x1ca412(_0x3d17a6([0x56,0x61,0x6c,0x69,0x64]));_0x286d24(),_0x41b317[_0x3d17a6([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x3d17a6([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x21c812=!0x1;const _0x52df0f=_0x58d578();function _0x2fdbf2(_0x10deea){return!!_0x10deea&&(typeof _0x10deea===_0x3d17a6([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x10deea===_0x3d17a6([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x10deea[_0x3d17a6([0x74,0x68,0x65,0x6e])]===_0x3d17a6([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x10deea[_0x3d17a6([0x63,0x61,0x74,0x63,0x68])]===_0x3d17a6([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x470509(_0x566beb){_0x1ed74e(_0x566beb)[_0x3d17a6([0x74,0x68,0x65,0x6e])](_0x3a6b9d=>{if(!_0x3a6b9d||_0x3a6b9d[_0x3d17a6([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x3d17a6([0x6f,0x6b]))return _0x3d17a6([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x2b7747(_0x44e67c(_0x52df0f+_0x459fbc))!=_0x3a6b9d[_0x3d17a6([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x3d17a6([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x3d17a6([0x56,0x61,0x6c,0x69,0x64]);})[_0x3d17a6([0x74,0x68,0x65,0x6e])](_0x57725f=>(_0x1cface(),_0x57725f),()=>{const _0x1aeac6=_0x1a28af();return null==_0x1aeac6?(_0x1cface(),_0x3d17a6([0x56,0x61,0x6c,0x69,0x64])):_0x3d17a6(_0x12ef30-_0x1aeac6>(0x17036ad7^_0x50419a)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x3d17a6([0x74,0x68,0x65,0x6e])](_0x1ca412)[_0x3d17a6([0x63,0x61,0x74,0x63,0x68])](()=>{_0x1ca412(_0x3d17a6([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x1ca5a9=0x33390057^_0x50419a;function _0x1cface(){const _0x1e1d1a=_0x3d17a6([0x6c,0x6c,0x63,0x74,0x2d])+_0x2b7747(_0x44e67c(_0x960d76)),_0xbc5af2=_0x5d774f(_0x2b7747(window[_0x3d17a6([0x4d,0x61,0x74,0x68])][_0x3d17a6([0x63,0x65,0x69,0x6c])](_0x12ef30/_0x1ca5a9)));window[_0x3d17a6([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3d17a6([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1e1d1a,_0xbc5af2);}function _0x1a28af(){const _0x14cfb0=_0x3d17a6([0x6c,0x6c,0x63,0x74,0x2d])+_0x2b7747(_0x44e67c(_0x960d76)),_0x1551c8=window[_0x3d17a6([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3d17a6([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x14cfb0);return _0x1551c8?window[_0x3d17a6([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5d774f(_0x1551c8),0x10)*_0x1ca5a9:null;}function _0x1ed74e(_0x4a8b3b){return new window[(_0x3d17a6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x345be6,_0x722497)=>{_0x4a8b3b[_0x3d17a6([0x74,0x68,0x65,0x6e])](_0x345be6,_0x722497),window[_0x3d17a6([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x722497,0x330e3a17^_0x50419a);});}}_0x41b317[_0x3d17a6([0x6f,0x6e])](_0x3d17a6([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x3822ab,_0x1a35ce)=>{if(_0x1a35ce[0x0]!=_0x960d76)return _0x1ca412(_0x3d17a6([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x1a35ce[0x1]={..._0x1a35ce[0x1],[_0x3d17a6([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x52df0f};},{[_0x3d17a6([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3d17a6([0x68,0x69,0x67,0x68])}),_0x41b317[_0x3d17a6([0x6f,0x6e])](_0x3d17a6([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x18e944=>{_0x2fdbf2(_0x18e944[_0x3d17a6([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x21c812=!0x0,_0x470509(_0x18e944[_0x3d17a6([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x3d17a6([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3d17a6([0x6c,0x6f,0x77])}),_0x3af531[_0x3d17a6([0x74,0x68,0x65,0x6e])](()=>{_0x21c812||_0x1ca412(_0x3d17a6([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x47e7be(){return _0x41b317[_0x3d17a6([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3d17a6([0x76,0x69,0x65,0x77])][_0x3d17a6([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x3d17a6([0x61,0x75,0x74,0x6f]);}function _0x286d24(){_0x41b317[_0x3d17a6([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3d17a6([0x76,0x69,0x65,0x77])][_0x3d17a6([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x3d17a6([0x61,0x75,0x74,0x6f]);}}function _0x1ad80d(_0x4898c3){const _0x543918=[new window[(_0x3d17a6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4a48c8=>setTimeout(_0x4a48c8,0x3306d01b^_0x50419a)),_0x3af531[_0x3d17a6([0x74,0x68,0x65,0x6e])](()=>new window[(_0x3d17a6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x439bcd=>{const _0x5ba46a=0x330feed0^_0x50419a,_0x14f16d=_0x551c2a[_0x3d17a6([0x5f,0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x73])];function _0x15a9f0(){_0x14f16d[_0x3d17a6([0x6c,0x65,0x6e,0x67,0x74,0x68])]>=_0x5ba46a&&_0x439bcd();}_0x15a9f0(),_0x14f16d[_0x3d17a6([0x6f,0x6e])](_0x3d17a6([0x61,0x64,0x64]),_0x15a9f0);})),new window[(_0x3d17a6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x93e1d9=>{function _0x4f497c(){for(const _0x1a2a19 in window)if(window[_0x3d17a6([0x4e,0x75,0x6d,0x62,0x65,0x72])]['isNaN'](window[_0x3d17a6([0x4e,0x75,0x6d,0x62,0x65,0x72])](_0x1a2a19))&&window[_0x1a2a19]==_0x3da155)return _0x93e1d9();_0x41b317[_0x3d17a6([0x73,0x74,0x61,0x74,0x65])]!=_0x3d17a6([0x64,0x65,0x73,0x74,0x72,0x6f,0x79,0x65,0x64])&&window[_0x3d17a6([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x4f497c,0x330ffd5f^_0x50419a);}_0x57ea0c(_0x3d17a6([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))&&_0x4f497c();})];return window[_0x3d17a6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x3d17a6([0x72,0x61,0x63,0x65])](_0x543918)[_0x3d17a6([0x74,0x68,0x65,0x6e])](()=>_0x4898c3);}async function _0x2019d0(){if(await _0x3af531,_0x57ea0c(_0x3d17a6([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))){const _0x402857=_0x551c2a[_0x3d17a6([0x67,0x65,0x74,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])](0x0),_0x4df3d7=_0x551c2a[_0x3d17a6([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])](_0x402857[_0x3d17a6([0x69,0x64])]),_0x6df0c=_0x53e8d4(_0x3d17a6([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]));return await _0x6df0c[_0x3d17a6([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])](_0x402857['id'],_0x4df3d7?_0x4df3d7['id']:null,!0x0),_0x6df0c[_0x3d17a6([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x3d17a6([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x6df0c[_0x3d17a6([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x6df0c[_0x3d17a6([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])]=_0x1c7b35,void(_0x6df0c[_0x3d17a6([0x5f,0x67,0x65,0x74,0x44,0x69,0x66,0x66])]=_0x1c7b35);}if(_0x57ea0c(_0x3d17a6([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]))){const _0x28e062=_0x53e8d4(_0x3d17a6([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]));_0x28e062[_0x3d17a6([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x3d17a6([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x28e062[_0x3d17a6([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x28e062[_0x3d17a6([0x75,0x70,0x64,0x61,0x74,0x65])]=_0x1c7b35,_0x28e062[_0x3d17a6([0x73,0x61,0x76,0x65,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])]=_0x1c7b35;}_0x41b317[_0x3d17a6([0x6d,0x6f,0x64,0x65,0x6c])][_0x3d17a6([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x1c7b35,_0x41b317[_0x3d17a6([0x6d,0x6f,0x64,0x65,0x6c])][_0x3d17a6([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x1c7b35,_0x41b317[_0x3d17a6([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x3d17a6([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x1893a7(){return _0x57ea0c(_0x3d17a6([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x53e8d4(_0x3d17a6([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x3d17a6([0x73,0x74,0x61,0x74,0x65])]==_0x3d17a6([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x48a268(){return _0x57ea0c(_0x3d17a6([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 _0x2214a9(){return _0x57ea0c(_0x3d17a6([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x1fedde(_0x2571ba){const _0x36bfae=_0xa63f6c();_0x41b317[_0x36bfae]=_0x3d17a6([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])+_0x2571ba,_0x2571ba[_0x3d17a6([0x65,0x6e,0x64,0x73,0x57,0x69,0x74,0x68])](_0x3d17a6([0x4c,0x69,0x6d,0x69,0x74]))&&(window[_0xa63f6c()]=_0x3da155),_0x2571ba!=_0x3d17a6([0x56,0x61,0x6c,0x69,0x64])&&_0x2019d0();}function _0xa63f6c(){const _0x1f6d84=window[_0x3d17a6([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x3d17a6([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x3d17a6([0x6e,0x6f,0x77])]())[_0x3d17a6([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x3d17a6([0x2e]),'');let _0x481d9e=_0x3d17a6([0x44]);for(let _0x54237a=0x0;_0x54237a<_0x1f6d84[_0x3d17a6([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x54237a+=0x2){let _0x4b290b=window[_0x3d17a6([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1f6d84[_0x3d17a6([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x54237a,_0x54237a+0x2));_0x4b290b>=_0x5b4d98[_0x3d17a6([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x4b290b-=_0x5b4d98[_0x3d17a6([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x481d9e+=_0x5b4d98[_0x4b290b];}return _0x481d9e;}function _0x1fef25(){const _0x412b56=_0x146f85[_0x3d17a6([0x73,0x70,0x6c,0x69,0x74])](_0x3d17a6([0x2e]));if(0x3!=_0x412b56[_0x3d17a6([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x2fe91b(_0x412b56[0x1]);function _0x2fe91b(_0x33afe){const _0x5c8e50=_0x2e54b8(_0x33afe);return _0x5c8e50&&_0x154685()?_0x5c8e50:null;function _0x154685(){const _0x35befa=_0x5c8e50[_0x3d17a6([0x6a,0x74,0x69])],_0x255719=window[_0x3d17a6([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x35befa[_0x3d17a6([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x35befa[_0x3d17a6([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x121412={..._0x5c8e50,[_0x3d17a6([0x6a,0x74,0x69])]:_0x35befa[_0x3d17a6([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x35befa[_0x3d17a6([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x121412[_0x3d17a6([0x76,0x63])],_0x44e67c(_0x121412)==_0x255719;}}}async function _0x24bf3b(){let _0x3806f8=!0x0;try{const _0x14b990=_0x146f85[_0x3d17a6([0x73,0x70,0x6c,0x69,0x74])](_0x3d17a6([0x2e])),[_0x3e4f4c,_0x236bc0,_0x596013]=_0x14b990;return _0x22353b(_0x3e4f4c),await _0x25b7cd(_0x3e4f4c,_0x236bc0,_0x596013),_0x3806f8;}catch(_0x343b74){return!0x1;}function _0x22353b(_0x20e88d){const _0x351f6a=_0x2e54b8(_0x20e88d);_0x351f6a&&_0x351f6a[_0x3d17a6([0x61,0x6c,0x67])]==_0x3d17a6([0x45,0x53,0x32,0x35,0x36])||(_0x3806f8=!0x1);}async function _0x25b7cd(_0x5b218c,_0x18081f,_0x6c85cd){const _0x27b249=window[_0x3d17a6([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x3d17a6([0x66,0x72,0x6f,0x6d])](_0x316072(_0x6c85cd),_0x49dbbc=>_0x49dbbc[_0x3d17a6([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x1b0689=new window[(_0x3d17a6([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x3d17a6([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x5b218c+_0x3d17a6([0x2e])+_0x18081f),_0x568830=window[_0x3d17a6([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x3d17a6([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x568830)return;const _0x6cb94c=await _0x568830[_0x3d17a6([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x3d17a6([0x6a,0x77,0x6b]),_0x10b34d,{[_0x3d17a6([0x6e,0x61,0x6d,0x65])]:_0x3d17a6([0x45,0x43,0x44,0x53,0x41]),[_0x3d17a6([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x3d17a6([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x3d17a6([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x568830[_0x3d17a6([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x3d17a6([0x6e,0x61,0x6d,0x65])]:_0x3d17a6([0x45,0x43,0x44,0x53,0x41]),[_0x3d17a6([0x68,0x61,0x73,0x68])]:{[_0x3d17a6([0x6e,0x61,0x6d,0x65])]:_0x3d17a6([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x6cb94c,_0x27b249,_0x1b0689)||(_0x3806f8=!0x1);}}function _0x2e54b8(_0x332815){return _0x332815[_0x3d17a6([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x3d17a6([0x65,0x79]))?JSON[_0x3d17a6([0x70,0x61,0x72,0x73,0x65])](_0x316072(_0x332815)):null;}function _0x316072(_0x38c3cb){return window[_0x3d17a6([0x61,0x74,0x6f,0x62])](_0x38c3cb[_0x3d17a6([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x3d17a6([0x2b]))[_0x3d17a6([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x3d17a6([0x2f])));}function _0x44e67c(_0x38421e){let _0x434f2b=0x1505;function _0x4f0e53(_0x54c03c){for(let _0x537009=0x0;_0x537009<_0x54c03c[_0x3d17a6([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x537009++){const _0x4373d2=_0x54c03c[_0x3d17a6([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x537009);_0x434f2b=(_0x434f2b<<0x5)+_0x434f2b+_0x4373d2,_0x434f2b&=_0x434f2b;}}function _0x534c01(_0x551b22){Array[_0x3d17a6([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x551b22)?_0x551b22[_0x3d17a6([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x534c01):_0x551b22&&typeof _0x551b22==_0x3d17a6([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x3d17a6([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x551b22)[_0x3d17a6([0x73,0x6f,0x72,0x74])]()[_0x3d17a6([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x307a35,_0x3c0509])=>{_0x4f0e53(_0x307a35),_0x534c01(_0x3c0509);}):_0x4f0e53(window[_0x3d17a6([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x551b22));}return _0x534c01(_0x38421e),_0x434f2b>>>0x0;}function _0x2b7747(_0x3b9fa6){return _0x3b9fa6[_0x3d17a6([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x3d17a6([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x3d17a6([0x30]));}function _0x5d774f(_0x323f69){return _0x323f69[_0x3d17a6([0x73,0x70,0x6c,0x69,0x74])]('')[_0x3d17a6([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x3d17a6([0x6a,0x6f,0x69,0x6e])]('');}function _0x57ea0c(_0x3c0968){return _0x41b317[_0x3d17a6([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x3d17a6([0x68,0x61,0x73])](_0x3c0968);}function _0x53e8d4(_0x2069ce){return _0x41b317[_0x3d17a6([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x3d17a6([0x67,0x65,0x74])](_0x2069ce);}function _0x1c7b35(){}function _0x3d17a6(_0x15b663){return _0x15b663['map'](_0x39d8fd=>String['fromCharCode'](_0x39d8fd))['join']('');}_0x1fedde(await _0x33afa8());}(this);}['createRevision'](_0x3e8ee4){const _0x1b6f8a=this['editor']['plugins']['get']('Users');return new a({'id':_0x3e8ee4['id'],'name':_0x3e8ee4['name'],'creator':_0x3e8ee4['creatorId']?_0x1b6f8a['getUser'](_0x3e8ee4['creatorId']):null,'diffData':_0x3e8ee4['diffData']||_0x3e8ee4['data'],'authors':_0x3e8ee4['authorsIds']['map'](_0xc9106=>_0x1b6f8a['getUser'](_0xc9106)),'createdAt':new Date(_0x3e8ee4['createdAt']),'attributes':_0x3e8ee4['attributes'],'fromVersion':_0x3e8ee4['fromVersion'],'toVersion':_0x3e8ee4['toVersion']});}['addRevision'](_0xf034ab,_0x154c39=0x0){this['_revisions']['add'](_0xf034ab,_0x154c39);}['getRevision'](_0x160afe){return this['_revisions']['get'](_0x160afe);}['getRevisions'](_0x385f05={'toJSON':!0x1}){const _0x441cac=Array['from'](this['_revisions']);return _0x441cac['reverse'](),_0x385f05['toJSON']?_0x441cac['map'](_0x2644fb=>_0x2644fb['toJSON']()):_0x441cac;}['getIndex'](_0x43d7ac){return this['_revisions']['getIndex'](_0x43d7ac);}['getEarlierVisibleRevision'](_0x2596fd){const [,_0x457247]=this['getRevisionsIterator'](_0x2596fd,{'direction':'earlier'});return _0x457247;}['getLaterVisibleRevision'](_0x29d887){const [,_0x2d2283]=this['getRevisionsIterator'](_0x29d887,{'direction':'later'});return _0x2d2283;}['getRevisionsInDiff'](_0x2c8eac){const _0x1088c4=[];for(const _0x197288 of this['getRevisionsIterator'](_0x2c8eac['newRevisionId']))if(_0x1088c4['push'](_0x197288),_0x197288['id']===_0x2c8eac['oldRevisionId'])break;return _0x1088c4;}*['getRevisionsIterator'](_0x2ab160,{direction:_0x2422ce='earlier',filter:_0x86b634=()=>!0x0}={}){const _0x383ac5='earlier'===_0x2422ce?0x1:-0x1;let _0x571d70=this['_revisions']['get'](_0x2ab160),_0x101e17=this['getIndex'](_0x571d70);for(yield _0x571d70;_0x571d70;){if(_0x101e17+=_0x383ac5,_0x571d70=this['getRevision'](_0x101e17),!_0x571d70)return;_0x86b634(_0x571d70)&&(yield _0x571d70);}}}function m(_0x517cc1,_0x2c7dd0,_0x286c40){const t=_0x517cc1['t'];switch(_0x2c7dd0){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'},_0x286c40);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x286c40);case'Show\x20previous\x20change':return t('Show\x20previous\x20change');case'Show\x20next\x20change':return t('Show\x20next\x20change');case'EDIT_X_OF_Y_REVISIONS':return t({'string':'Edit','id':'EDIT_X_OF_Y_REVISIONS'});case'Total':return t('Total');case'Revision\x20creator':return t('Revision\x20creator');case'Revision\x20author':return t('Revision\x20author');case'Revision\x20name':return t('Revision\x20name');case'Save\x20current\x20revision':return t('Save\x20current\x20revision');case'Accept':return t('Accept');case'Save':return t('Save');case'Cancel':return t('Cancel');case'Name\x20of\x20the\x20revision':return t('Name\x20of\x20the\x20revision');case'optional':return t('optional');case'PENDING_ACTION_REVISION_HISTORY':return t({'string':'Unsaved\x20change\x20in\x20revision\x20history.','id':'PENDING_ACTION_REVISION_HISTORY'});case'The\x20revision\x20name\x20cannot\x20be\x20empty.':return t('The\x20revision\x20name\x20cannot\x20be\x20empty.');case'Enter\x20the\x20revision\x20name':return t('Enter\x20the\x20revision\x20name');default:return'';}}const P={'c':_0x2be8ce,'a':_0x269d3a,'e':_0x1cd008,'r':_0x1eb79c,'u':_0x41062d};class l extends _0x2a51c8{['licenseKey'];['_licenseKeyCheckInterval'];['adapter'];['currentRevision'];['repository'];['_revisionDataBuilder'];['_source'];['_initialRevisionId'];['_bufferedUpdates'];['_pendingAction'];['_continueCurrentRevision'];['_startingVersion'];['_loadedStateData'];static get['pluginName'](){return'RevisionTracker';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x10b62c,j,_0x3db0f1];}constructor(_0x50ca46){super(_0x50ca46),this['adapter']=null,this['currentRevision']=null,this['_revisionDataBuilder']=new V(this['editor']),this['_initialRevisionId']=this['editor']['config']['get']('collaboration.channelId')||'initial',this['_bufferedUpdates']=new Map(),this['_loadedStateData']=null;const _0x2607c7=_0x58d578();this['_source']={'history':this['editor']['model']['document']['history'],'getLatestVersion':()=>Promise['resolve'](this['editor']['model']['document']['version']),'getCurrentRevisionId':()=>_0x2607c7},this['set']('isReady',!0x1),this['set']('isEnabled',!0x0),this['set']('_isPendingUpdate',!0x1),this['editor']['config']['define']('revisionHistory.resumeUnsavedRevision',!0x0),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'});}['init'](){this['repository']=this['editor']['plugins']['get']('RevisionsRepository'),this['_setConversion'](),this['editor']['data']['on']('ready',()=>{const _0x21a681=this['repository']['getRevision'](0x0),_0x33a02c=_0x21a681&&null===_0x21a681['creator']?_0x21a681:null;if(this['_continueCurrentRevision']=!!_0x33a02c&&this['editor']['config']['get']('revisionHistory.resumeUnsavedRevision'),this['editor']['plugins']['has']('RealTimeCollaborationClient')){const _0x55ab75=this['_source']['getCurrentRevisionId'](),_0x4fc742=this['repository']['getRevision'](_0x55ab75);if(_0x4fc742)this['_startingVersion']=_0x4fc742['fromVersion'],this['_continueCurrentRevision']=!0x1;else{const _0x4526b5=this['_source']['history']['_operations']['find'](_0x549fe6=>!_0x549fe6['_isInit']),_0x512d4d=_0x4526b5?_0x4526b5['baseVersion']:this['_source']['history']['version'];_0x21a681?(_0x21a681['toVersion']<_0x512d4d&&_0x21a681['_update']({'toVersion':_0x512d4d}),this['_continueCurrentRevision']?(this['_source']['getCurrentRevisionId']=()=>_0x33a02c['id'],this['_startingVersion']=_0x33a02c['fromVersion']):(this['_startingVersion']=_0x21a681['toVersion'],this['_continueCurrentRevision']=!0x1)):(this['_startingVersion']=_0x512d4d,this['_continueCurrentRevision']=!0x1);}}else _0x33a02c&&(this['editor']['model']['document']['history']['version']=Math['max'](_0x33a02c['toVersion'],this['editor']['model']['document']['history']['version']),_0x33a02c['fromVersion']===_0x33a02c['toVersion']?(0x0!==_0x33a02c['fromVersion']&&(this['_source']['getCurrentRevisionId']=()=>_0x33a02c['id']),this['_continueCurrentRevision']=!0x1):this['_continueCurrentRevision']&&(this['_source']['getCurrentRevisionId']=()=>_0x33a02c['id'],this['_startingVersion']=_0x33a02c['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',_0x5743c9=>!_0x5743c9),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x191a66=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x402d91;for(const _0x458805 in _0x191a66){const _0x5ef2cf=_0x458805,_0x48f31d=_0x191a66[_0x5ef2cf];if('revisionHistoryLicenseKeyValid'==_0x48f31d||'revisionHistoryLicenseKeyInvalid'==_0x48f31d||'revisionHistoryLicenseKeyExpired'==_0x48f31d||'revisionHistoryLicenseKeyDomainLimit'==_0x48f31d||'revisionHistoryLicenseKeyNotAllowed'==_0x48f31d||'revisionHistoryLicenseKeyEvaluationLimit'==_0x48f31d||'revisionHistoryLicenseKeyTrialLimit'==_0x48f31d||'revisionHistoryLicenseKeyUsageLimit'==_0x48f31d){delete _0x191a66[_0x5ef2cf],_0x402d91=_0x48f31d,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'revisionHistoryLicenseKeyInvalid'==_0x402d91&&_0x191a66['_showLicenseError']('invalid'),'revisionHistoryLicenseKeyExpired'==_0x402d91&&_0x191a66['_showLicenseError']('expired'),'revisionHistoryLicenseKeyDomainLimit'==_0x402d91&&_0x191a66['_showLicenseError']('domainLimit'),'revisionHistoryLicenseKeyNotAllowed'==_0x402d91&&_0x191a66['_showLicenseError']('featureNotAllowed','RevisionHistory'),'revisionHistoryLicenseKeyEvaluationLimit'==_0x402d91&&_0x191a66['_showLicenseError']('evaluationLimit'),'revisionHistoryLicenseKeyTrialLimit'==_0x402d91&&_0x191a66['_showLicenseError']('trialLimit'),'revisionHistoryLicenseKeyUsageLimit'==_0x402d91&&_0x191a66['_showLicenseError']('usageLimit');},0x3e8);}async['afterInit'](){if(this['repository']['length']>0x0){const _0x4e55de=this['repository']['getRevision'](0x0),_0x5ac037=await this['getRevisionDocumentData'](_0x4e55de),_0x441b24=await this['getRevisionRootsAttributes'](_0x4e55de);this['_replaceEditorDataWithRevisionData'](_0x5ac037,_0x441b24);}}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['setSource'](_0x3dad87){this['_source']=_0x3dad87;}async['update'](){const _0x342597=await this['_source']['getLatestVersion']();if(_0x342597>this['currentRevision']['toVersion']){await this['_loadState']();const _0x46abe7=this['buildRevisionData']({'revision':this['currentRevision'],'to':_0x342597});_0x46abe7['authors']=_0x46abe7['authorsIds']['map'](_0x40bf63=>this['editor']['plugins']['get']('Users')['getUser'](_0x40bf63)),this['currentRevision']['_update'](_0x46abe7);}}async['_loadState'](){this['_continueCurrentRevision']&&!this['_loadedStateData']&&(await this['_loadRevisionData'](this['currentRevision']),this['_revisionDataBuilder']['loadState'](this['currentRevision']),this['_loadedStateData']={'fromVersion':this['currentRevision']['fromVersion'],'authors':this['currentRevision']['authors']['slice']()});}async['saveRevision'](_0xf76573={},_0x277f75=null){const _0x301f6e=[];await this['_loadState'](),this['_continueCurrentRevision']=!0x1,_0x277f75>this['currentRevision']['toVersion']&&(_0x277f75=null),null===_0x277f75&&(_0x277f75=await this['_source']['getLatestVersion']());const _0x3cd509=this['_getFromVersion'](_0x277f75),_0x5b0365=this['buildRevisionData']({'from':_0x3cd509,'to':_0x277f75});if(this['currentRevision']['toVersion']<_0x277f75){const _0x1fc492=this['buildRevisionData']({'revision':this['currentRevision'],'from':_0x277f75,'to':_0x277f75});_0x1fc492['authors']=[],_0x1fc492['authorsIds']=[],_0x1fc492['id']=this['currentRevision']['id'],this['currentRevision']['_update'](_0x1fc492,!0x0),delete _0x1fc492['authors'],_0x301f6e['push'](_0x1fc492);}_0xf76573['creatorId']=this['editor']['plugins']['get']('Users')['me']['id'],_0xf76573['name']=_0xf76573['name']||null,_0xf76573['id']=_0xf76573['id']||_0x58d578(),_0xf76573={..._0xf76573,..._0x5b0365};const _0x18ca38=this['addRevisionData'](_0xf76573);_0x301f6e['push'](_0xf76573);const _0x110b2c=this['repository']['getIndex'](_0x18ca38);if(0x0!==_0x110b2c){const _0x5644aa=this['repository']['getRevision'](_0x110b2c-0x1);if(_0x5644aa['fromVersion']!==_0x277f75){const _0x2f08bf=this['_revisionDataBuilder']['getData'](_0x277f75,_0x5644aa['toVersion']),_0x39914f={'id':_0x5644aa['id'],'diffData':_0x2f08bf['diffData'],'authorsIds':_0x2f08bf['authorsIds'],'authors':_0x2f08bf['authorsIds']['map'](_0x3782eb=>this['editor']['plugins']['get']('Users')['getUser'](_0x3782eb)),'fromVersion':_0x277f75};_0x5644aa===this['currentRevision']&&(_0x39914f['createdAt']=new Date(_0xf76573['createdAt']['getTime']()+0xa)),_0x5644aa['_update'](_0x39914f,!0x0),delete _0x39914f['authors'],_0x301f6e['push'](_0x39914f);}}if(this['adapter']){for(const _0x5893a2 of _0x301f6e)this['_bufferUpdate'](_0x5893a2['id'],_0x5893a2,!0x0);this['sendBufferedUpdates']();}return _0x18ca38;}['addRevisionData'](_0xf04f4d){const _0x59a8d5=this['repository']['createRevision'](_0xf04f4d);return this['adapter']&&_0x59a8d5['on']('_update',(_0x568329,_0x54c86f,_0x4144e8)=>{_0x4144e8||(this['_bufferUpdate'](_0x54c86f['id'],_0x54c86f,!0x0),this['sendBufferedUpdates']());}),this['repository']['addRevision'](_0x59a8d5,this['_findInsertionIndex'](_0x59a8d5)),_0x59a8d5;}async['getRevisionDocumentData'](_0x943512){await this['_loadRevisionData'](_0x943512);const _0x16dc9a={};for(const _0x12647d in _0x943512['diffData']){if(_0x943512['diffData'][_0x12647d]['attachChange']&&!_0x943512['diffData'][_0x12647d]['attachChange']['isAttached'])continue;const _0x175122=this['_removeRevisionMarkers'](JSON['parse'](_0x943512['diffData'][_0x12647d]['insertions'])),_0x11e4d3=this['editor']['editing']['view']['document'],_0x30de00=new _0x4f280e(_0x11e4d3,_0x175122['map'](_0x28ba44=>C(_0x28ba44,this['editor'])));this['editor']['data']['processor']['useFillerType']('marked'),_0x16dc9a[_0x12647d]=this['editor']['data']['processor']['toData'](_0x30de00),this['editor']['data']['processor']['useFillerType']('default');}return _0x16dc9a;}async['getRevisionRootsAttributes'](_0x1b7c42){await this['_loadRevisionData'](_0x1b7c42);const _0x10351c={};for(const _0x193e80 in _0x1b7c42['diffData'])_0x1b7c42['diffData'][_0x193e80]['attachChange']&&!_0x1b7c42['diffData'][_0x193e80]['attachChange']['isAttached']||(_0x10351c[_0x193e80]=_0x1b7c42['diffData'][_0x193e80]['attributesAfter']||{});return _0x10351c;}['sendBufferedUpdates'](){if(0x0===this['_bufferedUpdates']['size'])return;if(this['_isPendingUpdate'])return;let _0x12d8fd=Array['from'](this['_bufferedUpdates']['values']());this['_bufferedUpdates']['clear']();for(let _0x568649=0x0;_0x568649<_0x12d8fd['length'];_0x568649++){const _0x3a3c55=_0x12d8fd[_0x568649];let _0x524b49=!0x1;for(const _0x248976 of Object['keys'](_0x3a3c55))void 0x0===_0x3a3c55[_0x248976]?delete _0x3a3c55[_0x248976]:'id'!==_0x248976&&(_0x524b49=!0x0);_0x524b49||(_0x12d8fd[_0x568649]=null);}if(_0x12d8fd=_0x12d8fd['filter'](_0x11ec30=>null!==_0x11ec30),!_0x12d8fd['length'])return;for(let _0x2ec412=0x0;_0x2ec412<_0x12d8fd['length'];_0x2ec412++){const _0xecc7cd=_0x12d8fd[_0x2ec412];void 0x0!==_0xecc7cd['fromVersion']&&void 0x0===_0xecc7cd['toVersion']&&(_0xecc7cd['toVersion']=this['repository']['getRevision'](_0xecc7cd['id'])['toVersion']),void 0x0!==_0xecc7cd['toVersion']&&void 0x0===_0xecc7cd['fromVersion']&&(_0xecc7cd['fromVersion']=this['repository']['getRevision'](_0xecc7cd['id'])['fromVersion']);}const _0x54e8b5=this['editor']['config']['get']('collaboration.channelId');this['_isPendingUpdate']=!0x0,this['_addPendingAction'](),this['adapter']['updateRevisions'](_0x12d8fd,_0x54e8b5)['finally'](()=>{this['_isPendingUpdate']=!0x1;})['then'](_0x38f1cf=>{if(_0x38f1cf){for(const _0x1d0978 of _0x38f1cf)this['setRevisionData']({'id':_0x1d0978['id'],'createdAt':_0x1d0978['createdAt']});}this['_removePendingAction'](),this['sendBufferedUpdates']();});}['_replaceEditorDataWithRevisionData'](_0x28c96f,_0x29ae12){let _0x127eff=this['editor']['config']['get']('initialData'),_0x19a881=this['editor']['config']['get']('rootsAttributes');if(void 0x0===_0x127eff){_0x127eff={};for(const _0x2297ea of this['editor']['model']['document']['getRootNames']())_0x127eff[_0x2297ea]='';}if('string'==typeof _0x127eff&&(_0x127eff={'main':_0x127eff}),void 0x0===_0x19a881){_0x19a881={};for(const _0x160f78 of this['editor']['model']['document']['getRootNames']())_0x19a881[_0x160f78]={};}let _0x34fc8d=!0x1;const _0x1c39df=Object['keys'](_0x127eff),_0x1bf6b1=Object['keys'](_0x28c96f);for(const _0x32ae8d of _0x1c39df){if(_0x127eff[_0x32ae8d]!==_0x28c96f[_0x32ae8d]&&''!==_0x127eff[_0x32ae8d]['trim']()){_0x34fc8d=!0x0;break;}if(!_0x446d4d(_0x19a881[_0x32ae8d],_0x29ae12[_0x32ae8d])&&Object['keys'](_0x19a881[_0x32ae8d])['length']>0x0){_0x34fc8d=!0x0;break;}}_0x34fc8d||(_0x34fc8d=_0x1bf6b1['some'](_0x59cb73=>!this['editor']['model']['document']['getRoot'](_0x59cb73))),_0x34fc8d&&_0xdea7d2('editor-initial-data-replaced-with-revision-data',{'editorData':_0x127eff,'editorRootsAttributes':_0x19a881,'revisionData':_0x28c96f,'revisionRootsAttributes':_0x29ae12}),this['editor']['config']['set']('initialData',_0x28c96f),this['editor']['config']['set']('rootsAttributes',_0x29ae12);}['_addPendingAction'](){if(!this['_pendingAction']){const _0x280757=this['editor']['plugins']['get']('PendingActions');this['_pendingAction']=_0x280757['add'](m(this['editor']['locale'],'PENDING_ACTION_REVISION_HISTORY'));}}['_removePendingAction'](){this['_pendingAction']&&(this['editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null);}['_findInsertionIndex'](_0x22df1f){const _0x1693a7=this['repository']['getRevisions']();_0x1693a7['reverse']();let _0x31758e=0x0;for(;_0x31758e<_0x1693a7['length'];){const _0xb6ba91=_0x1693a7[_0x31758e];if(_0xb6ba91===this['currentRevision']){_0x31758e++;continue;}if(_0xb6ba91['id']===this['_initialRevisionId'])break;const _0x2a0c68=_0x22df1f['toVersion']-_0xb6ba91['toVersion']||_0x22df1f['fromVersion']-_0xb6ba91['fromVersion'];if(_0x2a0c68>0x0)break;if(_0x2a0c68<0x0)_0x31758e++;else{if(!_0x22df1f['creator']&&_0xb6ba91['creator'])break;if(_0xb6ba91['creator']||!_0x22df1f['creator']){if(_0x22df1f['createdAt']>_0xb6ba91['createdAt'])break;_0x31758e++;}else _0x31758e++;}}return _0x31758e;}['setRevisionData'](_0x5a6aa2){const _0x1b58b6=this['repository']['getRevision'](_0x5a6aa2['id']);if(_0x5a6aa2['createdAt']&&(_0x5a6aa2['createdAt']=new Date(_0x5a6aa2['createdAt'])),_0x5a6aa2['authorsIds']){const _0x28068d=this['editor']['plugins']['get']('Users');_0x5a6aa2['authors']=_0x5a6aa2['authorsIds']['map'](_0x1f8e9b=>_0x28068d['getUser'](_0x1f8e9b));}_0x1b58b6['_update'](_0x5a6aa2,!0x0);}['buildRevisionData']({revision:_0x2cdc44=null,from:_0x1d8d96=null,to:_0x3ab630=null}){_0x1d8d96=null!==_0x1d8d96?_0x1d8d96:_0x2cdc44['fromVersion'],_0x3ab630=null!==_0x3ab630?_0x3ab630:_0x2cdc44['toVersion'];const _0x428902=this['_revisionDataBuilder']['getData'](_0x1d8d96,_0x3ab630),_0x127a70={'diffData':_0x428902['diffData'],'authorsIds':_0x428902['authorsIds'],'fromVersion':_0x1d8d96,'toVersion':_0x3ab630};if(!_0x2cdc44||_0x3ab630!==_0x2cdc44['toVersion']){const _0x96b089=_0x3ab630-0x1,_0xf5fed3=this['_source']['history']['getOperation'](_0x96b089);_0x127a70['createdAt']=_0xf5fed3&&_0xf5fed3['createdAt']||new Date();}if(this['_loadedStateData']&&_0x1d8d96===this['_loadedStateData']['fromVersion']){for(const _0x3d0e63 of this['_loadedStateData']['authors'])_0x127a70['authorsIds']['includes'](_0x3d0e63['id'])||_0x127a70['authorsIds']['push'](_0x3d0e63['id']);}return _0x127a70;}['_loadRevisionData'](_0x2c3321){if(!_0x2c3321||_0x2c3321['diffData'])return Promise['resolve']();{const _0x348633=this['editor']['config']['get']('collaboration.channelId');return this['adapter']['getRevision']({'channelId':_0x348633,'revisionId':_0x2c3321['id']})['then'](_0x202e0d=>{_0x2c3321['diffData']=_0x202e0d['diffData'];});}}['_bufferUpdate'](_0x49bed2,_0x4c0c75,_0x11325c){if(this['_bufferedUpdates']['has'](_0x49bed2)){const _0xbd5b41=this['_bufferedUpdates']['get'](_0x49bed2);_0x4c0c75=_0x11325c?{..._0xbd5b41,..._0x4c0c75}:{..._0x4c0c75,..._0xbd5b41};}this['_bufferedUpdates']['set'](_0x49bed2,_0x4c0c75);}['_getFromVersion'](_0x5ce21c){const _0x12010f=this['repository']['getRevisions']();_0x12010f['reverse'](),_0x12010f['shift']();const _0x31c60f=_0x12010f['find'](_0x269730=>_0x269730['toVersion']<=_0x5ce21c)['toVersion'];return _0x31c60f<this['_startingVersion']?this['_startingVersion']:_0x31c60f;}['_createInitialRevision'](_0x584cf2){const _0x3612a6=this['repository']['getRevision'](this['repository']['length']-0x1);if(_0x3612a6)this['_initialRevisionId']=_0x3612a6['id'];else{const _0x431417=!this['editor']['model']['document']['roots']['find'](_0x4b2328=>this['editor']['model']['hasContent'](_0x4b2328)),_0x5c93fe=this['editor']['plugins']['get']('Users')['me']['id'],_0x589841=m(this['editor']['locale'],_0x431417?'Empty\x20document':'Initial\x20revision');this['_makeRevision']({'from':_0x584cf2,'to':_0x584cf2,'id':this['_initialRevisionId'],'name':_0x589841,'creatorId':_0x5c93fe});}}['_createCurrentRevision'](_0x273f85){const _0xada3cd=this['_source']['getCurrentRevisionId']();this['currentRevision']=this['repository']['getRevision'](_0xada3cd),this['currentRevision']||(this['currentRevision']=this['_makeRevision']({'from':_0x273f85,'to':_0x273f85,'id':_0xada3cd,'name':'','creatorId':null}));}['_makeRevision']({name:_0x71555e,from:_0x9233a9,to:_0x2ac77e,creatorId:_0x1a1e95,id:_0x124337}){const _0x464a13=this['buildRevisionData']({'from':_0x9233a9,'to':_0x2ac77e});_0x464a13['name']=_0x71555e,_0x464a13['creatorId']=_0x1a1e95,_0x464a13['id']=_0x124337;const _0x3e073e=this['addRevisionData'](_0x464a13);return this['adapter']&&this['_bufferUpdate'](_0x464a13['id'],_0x464a13,!0x0),_0x3e073e;}['_setConversion'](){this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'});}['_removeRevisionMarkers'](_0x42b998){return(_0x42b998=_0x42b998['filter'](_0x4f4884=>!_0x4f4884['name']||'revision-start'!==_0x4f4884['name']&&'revision-end'!==_0x4f4884['name']))['forEach'](_0x4ff50c=>{'string'!=typeof _0x4ff50c&&(_0x4ff50c['children']=this['_removeRevisionMarkers'](_0x4ff50c['children']),_0x4ff50c['attributes']=_0x4ff50c['attributes']['filter'](_0x5a371b=>!_0x5a371b[0x0]['startsWith']('data-revision-')));}),_0x42b998;}}function C(_0x2f7927,_0x24496a){const _0x30fc0c=_0x24496a['editing']['view']['document'];if('string'==typeof _0x2f7927)return new _0x246c10(_0x30fc0c,_0x2f7927);{const _0x40a65c=_0x2f7927['children']['map'](_0x263949=>C(_0x263949,_0x24496a));return new(P[_0x2f7927['type']]||_0x343883)(_0x30fc0c,_0x2f7927['name'],_0x2f7927['attributes'],_0x40a65c);}}class V{['editor'];['source'];['_savedMetaData'];['_lastFrom'];['_lastTo'];['_markers'];['_diffRoots'];['_diffRootsAttributes'];['_baseRoots'];['_baseRootsAttributes'];['_idsRoots'];['_baseIdsRoots'];['_touched'];['_touchedMarkers'];['_touchedRoots'];['_revisionId'];['_startingRevisionId'];constructor(_0x4e6439){this['editor']=_0x4e6439,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'](_0x5c3e4f){this['source']=_0x5c3e4f;const _0x274dd1=new Map(),_0x4add48=new Map(),_0x58d795=this['editor']['model']['document']['roots']['map'](_0x3de050=>_0x3de050['rootName']);for(const _0x3748f5 of _0x58d795){const _0x1725cb=this['editor']['model']['document']['getRoot'](_0x3748f5),_0xd2a2f1=T(_0x1725cb);_0x274dd1['set'](_0x3748f5,_0xd2a2f1),_0x4add48['set'](_0x3748f5,Object['fromEntries'](_0x1725cb['getAttributes']()));}const _0x3d8939=Array['from'](this['editor']['model']['markers'])['map'](_0x51216e=>[_0x51216e['name'],_0x51216e['getRange']()]),_0x4191c0=this['source']['version'];this['_saveMetaData'](_0x4191c0,_0x274dd1,_0x3d8939,_0x4add48),this['_startingRevisionId']=this['_revisionId'];const _0x1b9354=new Map(),_0x3ff041=new Map();for(const _0x14352c of _0x58d795){const _0x4abc0c=F(_0x14352c);_0x1b9354['set'](_0x14352c,_0x4abc0c),_0x3ff041['set'](_0x14352c,{});}this['_saveMetaData'](Number['NEGATIVE_INFINITY'],_0x1b9354,[],_0x3ff041);}['getData'](_0x5f4040,_0x21bd87){if(this['_lastFrom']===_0x5f4040&&this['_lastTo']<=_0x21bd87)this['_savedMetaData']['size']>0x1&&this['_removeMetaData'](this['_lastTo']),this['_applyOperations'](this['_lastTo'],_0x21bd87,!0x0);else{if(!this['_savedMetaData']['has'](_0x5f4040)){const _0x4089c1=this['_getPreviousFrom'](_0x5f4040);this['_calculateMetaData'](_0x4089c1,_0x5f4040,!0x1);}this['_calculateMetaData'](_0x5f4040,_0x21bd87,!0x0);}return this['_lastFrom']=_0x5f4040,this['_lastTo']=_0x21bd87,this['_getState']();}['loadState'](_0x46dd35){this['_reset'](),this['_lastFrom']=_0x46dd35['fromVersion'],this['_lastTo']=_0x46dd35['toVersion'];for(const _0x432495 in _0x46dd35['diffData']){const _0x11e688=_0x46dd35['diffData'][_0x432495]['attachChange'],_0xcb59fa=_0x2178aa(_0x46dd35['diffData'][_0x432495]['attributesBefore'])||{},_0x46dd75=this['_makeModelFromViewString'](_0x46dd35['diffData'][_0x432495]['deletions']);_0x46dd75['rootName']=_0x432495,_0x46dd75['_isAttached']=!_0x11e688||!_0x11e688['isAttached'],_0x46dd75['isAttached']=()=>_0x46dd75['_isAttached'],this['_baseRoots']['set'](_0x432495,_0x46dd75),this['_baseRootsAttributes']['set'](_0x432495,_0xcb59fa),_0x11e688&&this['_touchedRoots']['set'](_0x432495,_0x11e688);const _0x1bd3d3=this['_makeIdsRoot'](_0x46dd75);this['_baseIdsRoots']['set'](_0x432495,_0x1bd3d3);for(const [_0x26df6a,_0x36690e]of _0x46dd75['markers']){if(!_0x26df6a['startsWith']('revision:'))continue;const _0x33532e=_0x26df6a['split'](':')[0x2];for(const _0x161482 of _0x36690e['getWalker']({'singleCharacters':!0x0})){const _0x34a450=this['_getVidAttributeName'](_0x161482),_0x3652fa='elementEnd'==_0x161482['type']?_0x161482['previousPosition']['path']['slice'](0x0,-0x1):_0x161482['previousPosition']['path'],_0xbe37c3=_0x1bd3d3['getNodeByPath'](_0x3652fa)['getAttribute'](_0x34a450);this['_touched']['set'](_0xbe37c3,{'userId':_0x33532e});}}}this['_startingRevisionId']=this['_revisionId'];const _0x564039=[...Array(this['_revisionId'])['keys']()]['slice'](0x1)['filter'](_0x504efd=>!this['_touched']['has'](_0x504efd));let _0x6478dc=0x0;const _0x52fe20=new Map();for(const _0xc353c2 in _0x46dd35['diffData']){const _0x34efdd=_0x46dd35['diffData'][_0xc353c2]['attachChange'],_0x2f149a=_0x2178aa(_0x46dd35['diffData'][_0xc353c2]['attributesAfter'])||{},_0x3ef93d=this['_makeModelFromViewString'](_0x46dd35['diffData'][_0xc353c2]['insertions']);_0x3ef93d['rootName']=_0xc353c2,_0x3ef93d['_isAttached']=!_0x34efdd||_0x34efdd['isAttached'],_0x3ef93d['isAttached']=()=>_0x3ef93d['_isAttached'],this['_diffRoots']['set'](_0xc353c2,_0x3ef93d),this['_diffRootsAttributes']['set'](_0xc353c2,_0x2f149a);const _0x1e75ff=this['_makeIdsRoot'](_0x3ef93d,Number['NEGATIVE_INFINITY']);this['_idsRoots']['set'](_0xc353c2,_0x1e75ff),_0x52fe20['set'](_0xc353c2,_0x3ef93d['isAttached']()?_0x2f149a:{});for(const [_0x4fa7a2,_0x5afd3e]of _0x3ef93d['markers']){if(!_0x4fa7a2['startsWith']('revision:'))continue;const _0x1f8734=_0x4fa7a2['split'](':')[0x2];for(const _0xb0b647 of _0x5afd3e['getWalker']({'singleCharacters':!0x0})){const _0x320057=this['_getVidAttributeName'](_0xb0b647),_0x26f77f=this['_revisionId']++,_0x349dc8='elementEnd'==_0xb0b647['type']?_0xb0b647['previousPosition']['path']['slice'](0x0,-0x1):_0xb0b647['previousPosition']['path'];_0x1e75ff['getNodeByPath'](_0x349dc8)['_setAttribute'](_0x320057,_0x26f77f),this['_touched']['set'](_0x26f77f,{'userId':_0x1f8734});}}for(const _0x13abb0 of this['editor']['model']['createRangeIn'](_0x3ef93d)['getWalker']({'singleCharacters':!0x0})){const _0x53e6ab=this['_getVidAttributeName'](_0x13abb0),_0x2a1250='elementEnd'==_0x13abb0['type']?_0x13abb0['previousPosition']['path']['slice'](0x0,-0x1):_0x13abb0['previousPosition']['path'],_0x316074=_0x1e75ff['getNodeByPath'](_0x2a1250);_0x316074['getAttribute'](_0x53e6ab)>0x0||_0x316074['_setAttribute'](_0x53e6ab,_0x564039[_0x6478dc++]);}for(const [_0x1f9c90,_0x3c1a15]of _0x3ef93d['markers'])_0x1f9c90['startsWith']('revision:')||this['_markers']['set'](_0x1f9c90,_0x3c1a15);}const _0x152f7b=F('$graveyard');this['_baseRoots']['set']('$graveyard',_0x152f7b),this['_baseIdsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x152f7b,0x1));const _0x486c5a=F('$graveyard');this['_diffRoots']['set']('$graveyard',_0x486c5a),this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x486c5a,0x1));const _0x2cd9b4=Array['from'](this['_diffRoots'])['map'](([_0x9dee6d,_0x57fa91])=>[_0x9dee6d,T(_0x57fa91)]);this['_saveMetaData'](this['_lastTo'],_0x2cd9b4,this['_markers'],_0x52fe20);}['_makeModelFromViewString'](_0xc0e873){const _0x56b53d=JSON['parse'](_0xc0e873),_0x483876=this['editor']['editing']['view']['document'],_0x2a92a9=new _0x4f280e(_0x483876,_0x56b53d['map'](_0x42c37a=>C(_0x42c37a,this['editor'])));return this['editor']['data']['toModel'](_0x2a92a9);}['_saveMetaData'](_0x21e0ac,_0x323a21,_0x8bdb96,_0x17a48b){const _0xf25481=new Map(_0x323a21),_0x3f7e83=new Map(_0x2178aa(_0x17a48b)),_0x3694c4=new Map();for(const [_0x5f00ed,_0x26bc0b]of _0x8bdb96)_0x3694c4['set'](_0x5f00ed,{'start':_0x26bc0b['start']['clone'](),'end':_0x26bc0b['end']['clone'](),'rootName':_0x26bc0b['root']['rootName']});this['_savedMetaData']['set'](_0x21e0ac,{'roots':_0xf25481,'markers':_0x3694c4,'rootsAttributes':_0x3f7e83});}['_removeMetaData'](_0xb0e321){this['_savedMetaData']['delete'](_0xb0e321);}['reInit'](){this['_reset'](),this['_lastFrom']=-0x1,this['_lastTo']=-0x1,this['_savedMetaData']['clear'](),this['init'](this['source']);}['_reset'](){this['_touched']['clear'](),this['_touchedMarkers']['clear'](),this['_touchedRoots']['clear'](),this['_diffRoots']['clear'](),this['_diffRootsAttributes']['clear'](),this['_baseRoots']['clear'](),this['_baseRootsAttributes']['clear'](),this['_idsRoots']['clear'](),this['_baseIdsRoots']['clear'](),this['_markers']['clear'](),this['_revisionId']=0x1,this['_startingRevisionId']=this['_revisionId'];}['_makeIdsRoot'](_0x34d92e,_0x49aa41=null){let _0x4733ea=null;_0x34d92e['is']('documentFragment')||(_0x4733ea=new ft(_0x34d92e['name'],{'vid_start':null===_0x49aa41?this['_revisionId']++:_0x49aa41++}));const _0x1e013d=[];for(const _0x8007e7 of _0x34d92e['getChildren']())if(_0x8007e7['is']('element')){_0x1e013d['push'](this['_makeIdsRoot'](_0x8007e7,_0x49aa41));const _0x46bdc5=_0x1e013d[_0x1e013d['length']-0x1];null!==_0x49aa41&&(_0x49aa41=_0x46bdc5['is']('element','$text')?_0x46bdc5['getAttribute']('vid')+0x1:_0x46bdc5['getAttribute']('vid_end')+0x1);}else{for(let _0x1a2c74=0x0;_0x1a2c74<_0x8007e7['offsetSize'];_0x1a2c74++)_0x1e013d['push'](new ft('$text',{'vid':null===_0x49aa41?this['_revisionId']++:_0x49aa41++}));}if(_0x34d92e['is']('documentFragment')){const _0x41703d=F(_0x34d92e['rootName']);return _0x41703d['_insertChild'](0x0,_0x1e013d),_0x41703d;}return _0x4733ea['_setAttribute']('vid_end',null===_0x49aa41?this['_revisionId']++:_0x49aa41++),_0x4733ea['_insertChild'](0x0,_0x1e013d),_0x4733ea;}['_calculateMetaData'](_0x5d36ad,_0x523b88,_0x5b04eb){this['_reset']();const {roots:_0x241958,markers:_0x36e096,rootsAttributes:_0xb3ff35}=this['_savedMetaData']['get'](_0x5d36ad);this['_baseRoots']=new Map(_0x241958),this['_baseRootsAttributes']=new Map(_0x2178aa(_0xb3ff35));for(const [_0x53c5e0,_0x3fe34d]of this['_baseRoots'])if('$graveyard'!==_0x53c5e0&&(this['_diffRoots']['set'](_0x53c5e0,T(_0x3fe34d)),this['_diffRootsAttributes']=new Map(_0x2178aa(_0xb3ff35)),_0x5b04eb)){const _0x3d6e5d=this['_revisionId'];this['_idsRoots']['set'](_0x53c5e0,this['_makeIdsRoot'](_0x3fe34d)),this['_baseIdsRoots']['set'](_0x53c5e0,this['_makeIdsRoot'](_0x3fe34d,_0x3d6e5d));}this['_startingRevisionId']=this['_revisionId'],this['_diffRoots']['set']('$graveyard',T(this['_baseRoots']['get']('$graveyard'))),_0x5b04eb&&this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](this['_baseRoots']['get']('$graveyard')));for(const [_0x1a4284,_0x25dd3a]of _0x36e096){const _0x498641=this['_baseRoots']['get'](_0x25dd3a['rootName']),_0x3694eb=this['_diffRoots']['get'](_0x25dd3a['rootName']),_0x45e03d=new vt(this['_fixPosition'](_0x25dd3a['start'],_0x498641),this['_fixPosition'](_0x25dd3a['end'],_0x498641)),_0x7b4e99=this['_fixRange'](_0x45e03d,_0x3694eb);_0x498641['markers']['set'](_0x1a4284,_0x45e03d),this['_markers']['set'](_0x1a4284,_0x7b4e99);}this['_applyOperations'](_0x5d36ad,_0x523b88,_0x5b04eb);}['_applyOperations'](_0x188f3e,_0xeeafe8,_0x381243){for(const _0x2c2058 of this['source']['getOperations'](_0x188f3e,_0xeeafe8))this['_handleOperation'](_0x2c2058,_0x381243);for(const _0xe08db9 of this['_diffRoots']['values']())_0xe08db9['markers']['clear']();for(const [_0x4580ff,_0x2bb3a1]of this['_markers']){this['_diffRoots']['get'](_0x2bb3a1['root']['rootName'])['markers']['set'](_0x4580ff,_0x2bb3a1['clone']());}const _0x29db7b=new Map(),_0x1fc8fb=new Map();for(const [_0x16ae4e,_0x557ada]of this['_diffRoots'])_0x29db7b['set'](_0x16ae4e,T(_0x557ada)),_0x1fc8fb['set'](_0x16ae4e,this['_diffRootsAttributes']['get'](_0x16ae4e));this['_saveMetaData'](_0xeeafe8,_0x29db7b,this['_markers'],_0x1fc8fb);}['_getPreviousFrom'](_0x27b567){const _0x36a938=Array['from'](this['_savedMetaData']['keys']());_0x36a938['sort']((_0x20d8a7,_0x255823)=>_0x20d8a7-_0x255823),_0x36a938['reverse']();for(const _0x1a0725 of _0x36a938)if(_0x1a0725<_0x27b567)return _0x1a0725;return Number['NEGATIVE_INFINITY'];}['_copyMarkers'](_0x3ed8bf,_0x3a8787){const _0x1f7a55=Array['from'](_0x3a8787['markers'])['map'](([_0x2e21dd,_0x3af486])=>[_0x2e21dd,this['_fixRange'](_0x3af486,_0x3ed8bf)]);_0x3ed8bf['markers']=new Map(_0x1f7a55);}['_transformMarkers'](_0x469bc5){for(const _0xe77dfb of this['_markers']['values']()){const _0x5136cb=_0xe77dfb['getTransformedByOperation'](_0x469bc5),_0xaf4a79=vt['_createFromRanges'](_0x5136cb);_0xe77dfb['start']=_0xaf4a79['start'],_0xe77dfb['end']=_0xaf4a79['end'];}}['_handleOperation'](_0x422543,_0x180e45){if('addRoot'!=_0x422543['type']&&'detachRoot'!=_0x422543['type']){if('insert'==_0x422543['type']){const _0x9e86c1=_0x422543['position']['root']['rootName'];this['_diffRoots']['has'](_0x9e86c1)||(this['_diffRoots']['set'](_0x9e86c1,F(_0x9e86c1,!0x0)),this['_diffRootsAttributes']['set'](_0x9e86c1,{}),_0x180e45&&this['_idsRoots']['set'](_0x9e86c1,F(_0x9e86c1,!0x0)));}else{if('addRootAttribute'==_0x422543['type']||'removeRootAttribute'==_0x422543['type']||'changeRootAttribute'==_0x422543['type'])return void this['_handleRootAttributeOperation'](_0x422543);'marker'==_0x422543['type']&&this['_handleMarkerOperation'](_0x422543);}if('marker'!==_0x422543['type']){const _0x5e8c4c=this['_cloneOperation'](_0x422543,this['_diffRoots']);_0x5e8c4c['_execute'](),this['_transformMarkers'](_0x5e8c4c);}if(_0x180e45)switch(_0x422543['type']){case'insert':this['_handleInsertOperation'](_0x422543);break;case'move':case'remove':case'reinsert':this['_handleMoveOperation'](_0x422543);break;case'merge':this['_handleMergeOperation'](_0x422543);break;case'split':this['_handleSplitOperation'](_0x422543);}}else this['_handleRootOperation'](_0x422543,_0x180e45);}['_cloneOperation'](_0x41fdf4,_0x2467be){const _0x36840f=_0x41fdf4['clone']();return _0x36840f['_authorId']=_0x41fdf4['_authorId'],this['_fixOperation'](_0x36840f,_0x2467be),_0x36840f;}['_getBaseVids'](_0x53b731){return _0x53b731['map'](_0x3f525d=>{const _0x5be42f=this['_getVidAttributeName'](_0x3f525d);return Number(_0x3f525d['item']['getAttribute'](_0x5be42f));});}['_generateTape'](_0x1c8647,_0x111d4c){if(_0x1c8647['is']('element','$text'))_0x111d4c['push']({'item':_0x1c8647,'type':'text'});else{_0x1c8647['is']('element')&&_0x111d4c['push']({'item':_0x1c8647,'type':'elementStart'});for(const _0x2f91e2 of _0x1c8647['getChildren']())this['_generateTape'](_0x2f91e2,_0x111d4c);_0x1c8647['is']('element')&&_0x111d4c['push']({'item':_0x1c8647,'type':'elementEnd'});}return _0x111d4c;}['_getState'](){const _0x6006b9=new Map(this['_touched']),_0x1d16dd=new Map(_0x6006b9),_0x1bc281=new Map(),_0x33548b={'insertions':{},'deletions':{}},_0x374849={'insertions':{},'deletions':{}},_0x117d86=new Map(),_0x31917a=new Set([...this['_baseRoots']['keys'](),...this['_diffRoots']['keys']()]);_0x31917a['delete']('$graveyard');for(const _0x1c9b6d of _0x31917a){const _0x952591=this['_diffRoots']['get'](_0x1c9b6d)||F(_0x1c9b6d,!0x1),_0x2ab7e7=this['_baseRoots']['get'](_0x1c9b6d)||F(_0x1c9b6d,!0x1);_0x952591['isAttached']()||_0x2ab7e7['isAttached']()?(_0x33548b['insertions'][_0x1c9b6d]=T(_0x952591),_0x33548b['deletions'][_0x1c9b6d]=T(_0x2ab7e7),this['_copyMarkers'](_0x33548b['deletions'][_0x1c9b6d],_0x2ab7e7),this['_copyMarkers'](_0x33548b['insertions'][_0x1c9b6d],_0x952591),_0x374849['insertions'][_0x1c9b6d]=this['_generateTape'](this['_idsRoots']['get'](_0x1c9b6d),[]),_0x374849['deletions'][_0x1c9b6d]=this['_generateTape'](this['_baseIdsRoots']['get'](_0x1c9b6d)||F(_0x1c9b6d,!0x1),[])):_0x31917a['delete'](_0x1c9b6d);}for(const _0x33b32f of _0x31917a){const _0x2bfdac=_0x374849['insertions'][_0x33b32f];for(const _0x30dfdb of _0x2bfdac){const _0x264467=this['_getVidAttributeName'](_0x30dfdb),_0x111634=_0x30dfdb['item']['getAttribute'](_0x264467);_0x1d16dd['delete'](_0x111634),_0x111634>=this['_startingRevisionId']&&_0x1bc281['set'](_0x111634,_0x6006b9['get'](_0x111634));}}for(const _0x2acf20 of _0x31917a){const _0x523c2c=_0x374849['insertions'][_0x2acf20],_0x5a92a5=this['_getBaseVids'](_0x374849['deletions'][_0x2acf20]);let _0x51afde=0x0;for(const _0x34af1a of _0x523c2c){const _0x52331d=this['_getVidAttributeName'](_0x34af1a),_0x3b42b4=_0x34af1a['item']['getAttribute'](_0x52331d);if(!_0x1bc281['has'](_0x3b42b4)&&!_0x117d86['has'](_0x3b42b4)){if(_0x1d16dd['has'](_0x3b42b4))_0x51afde++;else{if(_0x3b42b4!=_0x5a92a5[_0x51afde]){const _0x1f5484=_0x6006b9['get'](_0x3b42b4)||_0x6006b9['get'](_0x5a92a5[_0x51afde]);for(;_0x3b42b4!=_0x5a92a5[_0x51afde];)_0x1d16dd['has'](_0x5a92a5[_0x51afde])||(_0x117d86['set'](_0x5a92a5[_0x51afde],_0x1f5484),_0x6006b9['set'](_0x5a92a5[_0x51afde],_0x1f5484)),_0x51afde++;}_0x51afde++;}}}}for(const _0x57a026 of _0x31917a){const _0x514b6f=_0x374849['insertions'][_0x57a026];for(const _0x5a6d5e of _0x514b6f){const _0x2f2083=this['_getVidAttributeName'](_0x5a6d5e),_0x2f305d=_0x5a6d5e['item']['getAttribute'](_0x2f2083);if(_0x117d86['has'](_0x2f305d)){const _0x427cc6=_0x117d86['get'](_0x2f305d);_0x1d16dd['has'](_0x2f305d)||_0x1d16dd['set'](_0x2f305d,{..._0x427cc6}),_0x1bc281['set'](_0x2f305d,{..._0x427cc6});}}}for(const _0x37a5d2 of _0x1d16dd['keys']())_0x37a5d2>=this['_startingRevisionId']&&_0x1d16dd['delete'](_0x37a5d2);const _0x340168=new Map();for(const _0x2ea5b3 of _0x31917a){let _0x7fe6f3=_0x374849['insertions'][_0x2ea5b3];for(const _0x31fc93 of _0x7fe6f3)if(_0x31fc93['item']['is']('element','tableCell')){const _0x460859=this['_getVidAttributeName'](_0x31fc93),_0x1c9804=_0x31fc93['item']['getAttribute'](_0x460859);if(_0x1bc281['has'](_0x1c9804)){const _0x400343=_0x31fc93['item']['parent']['parent']['getAttribute']('vid_start'),_0x1939f7=_0x340168['get'](_0x400343)||new Set();_0x1939f7['add'](_0x1bc281['get'](_0x1c9804)['userId']),_0x340168['set'](_0x400343,_0x1939f7);}}_0x7fe6f3=_0x374849['deletions'][_0x2ea5b3];for(const _0x4c6d9a of _0x7fe6f3)if(_0x4c6d9a['item']['is']('element','tableCell')){const _0xd054da=this['_getVidAttributeName'](_0x4c6d9a),_0x5e4b19=_0x4c6d9a['item']['getAttribute'](_0xd054da);if(_0x1d16dd['has'](_0x5e4b19)){const _0x328a31=_0x4c6d9a['item']['parent']['parent']['getAttribute']('vid_start'),_0x17da4c=_0x340168['get'](_0x328a31)||new Set();_0x17da4c['add'](_0x1d16dd['get'](_0x5e4b19)['userId']),_0x340168['set'](_0x328a31,_0x17da4c);}}for(const _0x36c8bb of _0x340168['keys']())(_0x1bc281['has'](_0x36c8bb)||_0x1d16dd['has'](_0x36c8bb))&&_0x340168['delete'](_0x36c8bb);}for(const _0x2f84eb of _0x31917a){const _0x1ba526=_0x374849['insertions'][_0x2f84eb];let _0x54e865=null,_0x2938fe=null;for(const _0x84dbee of _0x1ba526){const _0x4f879b=this['_getVidAttributeName'](_0x84dbee),_0x1b23b1=_0x84dbee['item']['getAttribute'](_0x4f879b),_0x37c4a8=_0x340168['get'](_0x1b23b1);_0x37c4a8&&'elementStart'==_0x84dbee['type']&&(_0x54e865=Array['from'](_0x37c4a8)[0x0],_0x2938fe=_0x84dbee['item']['getAttribute']('vid_end')),_0x54e865&&(_0x1d16dd['set'](_0x1b23b1,{'userId':_0x54e865}),_0x1bc281['set'](_0x1b23b1,{'userId':_0x54e865})),_0x1b23b1==_0x2938fe&&(_0x54e865=null,_0x2938fe=null);}}const _0x3dab93={},_0x17ea85=new Set();for(const _0x387125 of _0x31917a){const _0x85cc17=_0x33548b['deletions'][_0x387125],_0x384df4=_0x33548b['insertions'][_0x387125];for(const {userId:_0x2da344}of this['_touchedMarkers']['values']())null!==_0x2da344&&_0x17ea85['add'](_0x2da344);for(const {userId:_0x1a55fd}of this['_touchedRoots']['values']())null!==_0x1a55fd&&_0x17ea85['add'](_0x1a55fd);this['_markChanges'](_0x384df4,_0x374849['insertions'][_0x387125],_0x1bc281,'insertion',_0x17ea85),this['_markChanges'](_0x85cc17,_0x374849['deletions'][_0x387125],_0x1d16dd,'deletion',_0x17ea85),_0x3dab93[_0x387125]={'insertions':this['_prepareViewToSave'](_0x384df4),'deletions':this['_prepareViewToSave'](_0x85cc17),'attachChange':this['_touchedRoots']['get'](_0x387125)||null,'attributesBefore':_0x2178aa(this['_baseRootsAttributes']['get'](_0x387125))||{},'attributesAfter':_0x2178aa(this['_diffRootsAttributes']['get'](_0x387125))};}return{'diffData':_0x3dab93,'authorsIds':Array['from'](_0x17ea85)};}['_processRootBeforeSave'](_0x5855a5){for(const [,_0x2414e9]of _0x5855a5['markers']){const _0x2c9f54=_0x2414e9['start']['getAncestors']()['filter'](_0x14b868=>'tableCell'==_0x14b868['name']);for(const _0x2b0e54 of _0x2c9f54)0x1==_0x2b0e54['childCount']&&_0x2b0e54['getChild'](0x0)['is']('element','paragraph')&&_0x2b0e54['getChild'](0x0)['_setAttribute']('keepParagraph',!0x0);}}['_prepareViewToSave'](_0x26cb86){this['_processRootBeforeSave'](_0x26cb86);const _0x285e3a=this['editor']['data']['toView'](_0x26cb86,{}),_0x57363d=Array['from'](_0x285e3a['getChildren']())['map'](_0x1f39d6=>this['_getViewJson'](_0x1f39d6));return JSON['stringify'](_0x57363d);}['_getViewJson'](_0x2fb174){if(_0x2fb174['is']('$text'))return _0x2fb174['data'];{const _0x5929f3=_0x2fb174;return{'type':Object['keys'](P)['find'](_0x54d42e=>_0x2fb174 instanceof P[_0x54d42e]),'name':_0x5929f3['name'],'attributes':Array['from'](_0x5929f3['getAttributes']()),'children':Array['from'](_0x5929f3['getChildren']())['map'](_0x19ce64=>this['_getViewJson'](_0x19ce64))};}}['_markChanges'](_0x40bf7d,_0x917910,_0xbdfa6a,_0x353f36,_0x4602ba){let _0x110313=null,_0x3568c3=null,_0x49f48c=0x0;const _0x2d7f07=this['editor']['model'];for(let _0x41c363=0x0;_0x41c363<_0x917910['length'];_0x41c363++){const _0x3ee53b=this['_getVidAttributeName'](_0x917910[_0x41c363]),_0x370e0f=_0x917910[_0x41c363]['item']['getAttribute'](_0x3ee53b),_0x5ee970=_0xbdfa6a['get'](_0x370e0f),_0x22df39=_0x41c363==_0x917910['length']-0x1;(!_0x110313&&_0x5ee970&&(_0x110313=_0x5ee970,_0x3568c3=_0x917910[_0x41c363]),_0x110313&&(!_0x5ee970||_0x5ee970['userId']!=_0x110313['userId']))&&(_0x1313a1(_0x5ee970,B(_0x3568c3,_0x40bf7d,_0x2d7f07),B(_0x917910[_0x41c363],_0x40bf7d,_0x2d7f07)),_0x110313=_0x5ee970||null,_0x3568c3=_0x5ee970?_0x917910[_0x41c363]:null),_0x110313&&_0x22df39&&_0x1313a1(_0x5ee970,B(_0x3568c3,_0x40bf7d,_0x2d7f07),J(_0x917910[_0x41c363],_0x40bf7d,_0x2d7f07));}function _0x1313a1(_0x3f41ce,_0x5877f2,_0x48f00e){const _0x4b54a2=_0x110313['userId'],_0x2da236='revision:'+_0x353f36+':'+_0x4b54a2+':'+_0x49f48c++,_0x79e1a6=_0x2d7f07['createRange'](_0x5877f2,_0x48f00e);_0x40bf7d['markers']['set'](_0x2da236,_0x79e1a6),null!==_0x4b54a2&&_0x4602ba['add'](_0x4b54a2);}}['_getVidAttributeName'](_0x4019ef){switch(_0x4019ef['type']){case'elementStart':return'vid_start';case'elementEnd':return'vid_end';default:return'vid';}}['_fixOperation'](_0x76d9f9,_0x4a7b19){_0x76d9f9['baseVersion']=null;for(const _0x3696cd in _0x76d9f9){const _0x6064ed=_0x76d9f9[_0x3696cd];if(_0x6064ed instanceof gt){const _0x5b7d78=_0x4a7b19['get'](_0x6064ed['root']['rootName']);_0x76d9f9[_0x3696cd]=this['_fixPosition'](_0x6064ed,_0x5b7d78);}if(_0x6064ed instanceof vt){const _0x459a41=_0x4a7b19['get'](_0x6064ed['root']['rootName']);_0x76d9f9[_0x3696cd]=this['_fixRange'](_0x6064ed,_0x459a41);}'root'===_0x3696cd&&(_0x76d9f9['root']=_0x4a7b19['get'](_0x76d9f9['root']['rootName']));}}['_fixRange'](_0x545fb6,_0x497aeb){return this['editor']['model']['createRange'](this['_fixPosition'](_0x545fb6['start'],_0x497aeb),this['_fixPosition'](_0x545fb6['end'],_0x497aeb));}['_fixPosition'](_0x428a0b,_0x58beb7){return this['editor']['model']['createPositionFromPath'](_0x58beb7,_0x428a0b['path'],_0x428a0b['stickiness']);}['_handleInsertOperation'](_0x482a02){const _0x1d5e7d=this['_idsRoots']['get'](_0x482a02['position']['root']['rootName']),_0x4ebe08=this['_fixPosition'](_0x482a02['position'],_0x1d5e7d),_0x55c1fd=null===_0x482a02['_authorId']?null:_0x482a02['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x3a5c99=_0x4ebe08['parent'],_0x2ed0f0=this['_revisionId'],_0x1f394e=[];for(const _0x14a1de of _0x482a02['nodes'])if(_0x14a1de['is']('element'))_0x1f394e['push'](this['_makeIdsRoot'](_0x14a1de));else{for(let _0x35d79c=0x0;_0x35d79c<_0x14a1de['offsetSize'];_0x35d79c++)_0x1f394e['push'](new ft('$text',{'vid':this['_revisionId']++}));}const _0x30d0f0=this['_revisionId'];for(let _0x17bd05=_0x2ed0f0;_0x17bd05<_0x30d0f0;_0x17bd05++)this['_touched']['set'](_0x17bd05,{'userId':_0x55c1fd});_0x3a5c99['_insertChild'](_0x4ebe08['offset'],_0x1f394e);}['_handleMoveOperation'](_0x2ce62e){(_0x2ce62e=this['_cloneOperation'](_0x2ce62e,this['_idsRoots']))['_execute']();const _0x5e6f04=null===_0x2ce62e['_authorId']?null:_0x2ce62e['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x49c9ae=_0x2ce62e['getMovedRangeStart'](),_0x180ae2=_0x49c9ae['parent'],_0x4156af=_0x49c9ae['offset'];!function _0x4fe1b3(_0xce761f,_0x3f6c51,_0x1e7c88,_0x34ab96){for(let _0x2dfe6c=_0x1e7c88;_0x2dfe6c<_0x34ab96;_0x2dfe6c++){const _0x4c351e=_0x3f6c51['getChild'](_0x2dfe6c);_0x4c351e['is']('element','$text')?_0xce761f['set'](_0x4c351e['getAttribute']('vid'),{'userId':_0x5e6f04}):(_0xce761f['set'](_0x4c351e['getAttribute']('vid_start'),{'userId':_0x5e6f04}),_0x4fe1b3(_0xce761f,_0x4c351e,0x0,_0x4c351e['childCount']),_0xce761f['set'](_0x4c351e['getAttribute']('vid_end'),{'userId':_0x5e6f04}));}}(this['_touched'],_0x180ae2,_0x4156af,_0x4156af+_0x2ce62e['howMany']);}['_handleMergeOperation'](_0x34a1de){const _0x4ca726=null===(_0x34a1de=this['_cloneOperation'](_0x34a1de,this['_idsRoots']))['_authorId']?null:_0x34a1de['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x4cd13c=_0x34a1de['targetPosition']['parent'],_0x1cc79a=_0x34a1de['sourcePosition']['parent'],_0x29a98d=_0x4cd13c['getAttribute']('vid_end'),_0x961e48=_0x1cc79a['getAttribute']('vid_start');_0x4cd13c['_setAttribute']('vid_end',_0x1cc79a['getAttribute']('vid_end')),_0x1cc79a['_setAttribute']('vid_end',_0x29a98d),this['_touched']['set'](_0x961e48,{'userId':_0x4ca726}),this['_touched']['set'](_0x29a98d,{'userId':_0x4ca726}),_0x34a1de['_execute']();}['_handleSplitOperation'](_0x18f20a){const _0x158e41=null===(_0x18f20a=this['_cloneOperation'](_0x18f20a,this['_idsRoots']))['_authorId']?null:_0x18f20a['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x288c27=_0x18f20a['graveyardPosition'],_0x11fbae=_0x18f20a['splitPosition']['parent'];_0x18f20a['_execute']();const _0x3d0371=_0x11fbae['getAttribute']('vid_end'),_0x44d2e9=_0x18f20a['insertionPosition']['nodeAfter'];if(_0x288c27){const _0x5d7dc0=_0x44d2e9['getAttribute']('vid_end'),_0x4d4ee3=_0x11fbae['getAttribute']('vid_end');_0x11fbae['_setAttribute']('vid_end',_0x5d7dc0),_0x44d2e9['_setAttribute']('vid_end',_0x4d4ee3),this['_touched']['set'](_0x11fbae['getAttribute']('vid_end'),{'userId':_0x158e41}),this['_touched']['set'](_0x44d2e9['getAttribute']('vid_start'),{'userId':_0x158e41});}else{const _0x19b759=this['_revisionId']++,_0x17426d=this['_revisionId']++;_0x11fbae['_setAttribute']('vid_end',_0x19b759),_0x44d2e9['_setAttribute']('vid_start',_0x17426d),_0x44d2e9['_setAttribute']('vid_end',_0x3d0371),this['_touched']['set'](_0x19b759,{'userId':_0x158e41}),this['_touched']['set'](_0x17426d,{'userId':_0x158e41});}}['_handleMarkerOperation'](_0xdb78c0){if(!_0xdb78c0['affectsData'])return;const _0x5b8705=(_0xdb78c0=this['_cloneOperation'](_0xdb78c0,this['_diffRoots']))['oldRange']?_0xdb78c0['oldRange']['root']:null,_0xb213c2=_0xdb78c0['newRange']?_0xdb78c0['newRange']['root']:null;_0x5b8705&&this['_markers']['delete'](_0xdb78c0['name']),_0xb213c2&&this['_markers']['set'](_0xdb78c0['name'],_0xdb78c0['newRange']['clone']());const _0x55e278=null===_0xdb78c0['_authorId']?null:_0xdb78c0['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x2c1f30=_0xdb78c0['name'];if(!this['_touchedMarkers']['has'](_0x2c1f30))return void this['_touchedMarkers']['set'](_0x2c1f30,{'range':_0xdb78c0['oldRange'],'userId':_0x55e278});const _0x5205e6=this['_touchedMarkers']['get'](_0x2c1f30),_0x286de5=_0x5205e6['range'],_0x1fbe34=_0xdb78c0['newRange'];null==_0x286de5&&null==_0x1fbe34||_0x286de5&&_0x1fbe34&&_0x286de5['isEqual'](_0x1fbe34)?this['_touchedMarkers']['delete'](_0xdb78c0['name']):_0x5205e6['userId']=_0x55e278;}['_handleRootOperation'](_0x34cfbc,_0x2dbba9){this['_diffRoots']['has'](_0x34cfbc['rootName'])?this['_diffRoots']['get'](_0x34cfbc['rootName'])['_isAttached']=_0x34cfbc['isAdd']:(this['_diffRoots']['set'](_0x34cfbc['rootName'],F(_0x34cfbc['rootName'],!0x0)),this['_diffRootsAttributes']['set'](_0x34cfbc['rootName'],{}),_0x2dbba9&&this['_idsRoots']['set'](_0x34cfbc['rootName'],F(_0x34cfbc['rootName'],!0x0)));const _0x4e7e86=null===_0x34cfbc['_authorId']?null:_0x34cfbc['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x5733c4=this['_touchedRoots']['get'](_0x34cfbc['rootName']);_0x5733c4&&_0x5733c4['userId']===_0x4e7e86?this['_touchedRoots']['delete'](_0x34cfbc['rootName']):this['_touchedRoots']['set'](_0x34cfbc['rootName'],{'userId':_0x4e7e86,'isAttached':_0x34cfbc['isAdd']});}['_handleRootAttributeOperation'](_0x507324){const _0x4e45c9=this['_diffRootsAttributes']['get'](_0x507324['root']['rootName']);null===_0x507324['newValue']?delete _0x4e45c9[_0x507324['key']]:_0x4e45c9[_0x507324['key']]=_0x507324['newValue'];}}function T(_0x35d99a){const _0x3e3d15=F(_0x35d99a['rootName'],_0x35d99a['isAttached']());for(const _0x130793 of _0x35d99a['getChildren']()){const _0x4ed8f4=_0x130793['_clone'](!0x0);_0x3e3d15['_appendChild'](_0x4ed8f4);}return _0x3e3d15;}function F(_0x25b638,_0x94f3a6=!0x0){const _0x3843da=new mt();return _0x3843da['rootName']=_0x25b638,_0x3843da['_isAttached']=_0x94f3a6,_0x3843da['isAttached']=()=>_0x3843da['_isAttached'],_0x3843da;}function B(_0x15c476,_0x2e2dc4,_0x429593){const _0x8a6ccd='elementEnd'==_0x15c476['type']?_0x429593['createPositionAt'](_0x15c476['item'],'end'):_0x429593['createPositionBefore'](_0x15c476['item']);return _0x429593['createPositionFromPath'](_0x2e2dc4,_0x8a6ccd['path'],_0x8a6ccd['stickiness']);}function J(_0x2124f5,_0x152fc4,_0x46746f){const _0x20bec0='elementStart'==_0x2124f5['type']?_0x46746f['createPositionAt'](_0x2124f5['item'],0x0):_0x46746f['createPositionAfter'](_0x2124f5['item']);return _0x46746f['createPositionFromPath'](_0x152fc4,_0x20bec0['path'],_0x20bec0['stickiness']);}class hs extends ts{['focusTracker'];['keystrokes'];['revisionNameInputView'];constructor(_0x327d67,_0x382eeb){super(_0x327d67),this['focusTracker']=new _0x2398fd(),this['keystrokes']=new _0x4ede03(),this['set']('revisionNameInputValue',''),this['revisionNameInputView']=this['_createRevisionNameInput'](_0x382eeb),this['setTemplate']({'tag':'form','attributes':{'class':['ck','ck-revision-history-save-revision-form','ck-responsive-form'],'tabindex':'-1'},'children':[this['revisionNameInputView']]}),_0x569104(this);}['render'](){super['render'](),_0x4c069f({'view':this}),this['focusTracker']['add'](this['revisionNameInputView']['element']),this['keystrokes']['listenTo'](this['element']);const _0x3de8c5=_0x1d2ed1=>_0x1d2ed1['stopPropagation']();this['keystrokes']['set']('arrowright',_0x3de8c5),this['keystrokes']['set']('arrowleft',_0x3de8c5),this['keystrokes']['set']('arrowup',_0x3de8c5),this['keystrokes']['set']('arrowdown',_0x3de8c5);}['focus'](){this['revisionNameInputView']['focus']();}get['revisionName'](){return this['revisionNameInputView']['fieldView']['element']['value']['trim']();}set['revisionName'](_0x2397df){this['revisionNameInputView']['fieldView']['element']['value']=_0x2397df['trim']();}['reset'](){this['revisionNameInputView']['fieldView']['element']['value']='',this['revisionNameInputView']['errorText']=null;}['_createRevisionNameInput'](_0x16be92){const _0x122ba2=new _0x1b9391(this['locale'],_0x1cbe1a),_0xc6d405=_0x122ba2['fieldView'];_0xc6d405['extendTemplate']({'attributes':{'maxlength':'220'}});let _0x150854=m(this['locale'],'Name\x20of\x20the\x20revision');return!_0x16be92&&(_0x150854+='\x20('+m(this['locale'],'optional')+')'),(_0x122ba2['label']=_0x150854,_0xc6d405['on']('input',()=>{this['revisionNameInputValue']=_0xc6d405['element']['value']['trim']();}),_0x122ba2);}}class u extends _0x2a51c8{static get['pluginName'](){return'RevisionHistoryUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[l];}['_saveRevisionFormView'];['init'](){const _0x47a464=this['editor'],_0x3559a4=_0x47a464['plugins']['get']('RevisionTracker');_0x47a464['ui']['componentFactory']['add']('revisionHistory',_0x51b4b1=>{const _0x40b326=_0x34ff72(_0x51b4b1),_0x5ca8ef=_0x40b326['panelView']['children'],_0x5808e1=new _0x1b818e(_0x51b4b1),_0x50d664=new _0x1bbf84(_0x51b4b1),_0x382426=new te(_0x51b4b1),_0x22ebc5=new _0x1bbf84(_0x51b4b1),_0x3d30e7=new te(_0x51b4b1);return _0x40b326['bind']('isEnabled')['to'](_0x3559a4,'isReady',_0x3559a4,'isEnabled',_0x47a464,'isReadOnly',(_0x11f19e,_0x457ca2,_0x2dbc69)=>_0x11f19e&&_0x457ca2&&!_0x2dbc69),_0x40b326['buttonView']['set']({'icon':_0x1db26b['history'],'label':m(_0x51b4b1,'Revision\x20history'),'tooltip':!0x0}),_0x382426['set']({'label':m(_0x51b4b1,'Save\x20current\x20revision'),'withText':!0x0,'role':'menuitem'}),_0x382426['bind']('isEnabled')['to'](_0x3559a4,'isReady',_0x3559a4,'isEnabled',_0x47a464,'isReadOnly',(_0x3ab29c,_0x314068,_0x1136e4)=>_0x3ab29c&&_0x314068&&!_0x1136e4),_0x382426['on']('execute',()=>this['_showDialog']()),_0x3d30e7['set']({'label':m(_0x51b4b1,'Open\x20revision\x20history'),'withText':!0x0,'role':'menuitem'}),_0x3d30e7['bind']('isEnabled')['to'](_0x3559a4,'isReady',_0x47a464,'isReadOnly',(_0x47e504,_0x2bd44a)=>_0x47e504&&!_0x2bd44a),_0x3d30e7['on']('execute',()=>{_0x47a464['config']['get']('revisionHistory')['showRevisionViewerCallback'](),_0x40b326['isOpen']=!0x1,_0x47a464['editing']['view']['focus']();}),_0x50d664['children']['add'](_0x382426),_0x22ebc5['children']['add'](_0x3d30e7),_0x5808e1['role']='menu',_0x5808e1['items']['addMany']([_0x50d664,_0x22ebc5]),_0x5ca8ef['add'](_0x5808e1),_0x40b326;}),_0x47a464['ui']['componentFactory']['add']('menuBar:revisionHistory',()=>this['_registerMenuComponent']());}['_registerMenuComponent'](){const _0x3ff676=this['editor'],_0x5e06cd=_0x3ff676['locale'],_0x161e75=new _0x3179af(_0x5e06cd),_0x4ff354=new _0x4c101b(_0x5e06cd);_0x161e75['buttonView']['set']({'icon':_0x1db26b['history'],'label':m(_0x5e06cd,'Revision\x20history')});const _0x280939=new _0x42204a(_0x5e06cd,_0x161e75),_0x1d3734=new _0x4846b0(_0x5e06cd);_0x1d3734['set']({'label':m(_0x5e06cd,'Save\x20current\x20revision')}),_0x1d3734['delegate']('execute')['to'](_0x161e75),_0x1d3734['on']('execute',()=>{this['_showDialog']();}),_0x280939['children']['add'](_0x1d3734),_0x4ff354['items']['add'](_0x280939);const _0x14ec3a=new _0x42204a(_0x5e06cd,_0x161e75),_0x407cdc=new _0x4846b0(_0x5e06cd);return _0x407cdc['set']({'label':m(_0x5e06cd,'Open\x20revision\x20history')}),_0x407cdc['delegate']('execute')['to'](_0x161e75),_0x407cdc['on']('execute',()=>{_0x3ff676['config']['get']('revisionHistory')['showRevisionViewerCallback']();}),_0x14ec3a['children']['add'](_0x407cdc),_0x4ff354['items']['add'](_0x14ec3a),_0x161e75['panelView']['children']['add'](_0x4ff354),_0x161e75;}['_showDialog'](){const _0x28c258=this['editor'],_0x28d21e=_0x28c258['locale'],_0x2f8473=_0x28c258['plugins']['get']('Dialog'),_0x517bd6=_0x28c258['plugins']['get']('RevisionTracker');function _0x55a468(_0x333926){_0x28c258['config']['get']('revisionHistory.requireRevisionName')&&''===_0x333926['revisionName']?_0x333926['revisionNameInputView']['errorText']=m(_0x28d21e,'The\x20revision\x20name\x20cannot\x20be\x20empty.'):(_0x28c258['plugins']['get'](l)['saveRevision']({'name':_0x333926['revisionName']}),_0x2f8473['hide']());}this['_saveRevisionFormView']||(this['_createSaveRevisionFormView'](),this['_saveRevisionFormView']['on']('submit',()=>_0x55a468(this['_saveRevisionFormView']))),this['_saveRevisionFormView']['reset'](),_0x2f8473['show']({'id':'revisionSave','title':m(_0x28d21e,'Save\x20current\x20revision'),'isModal':!0x0,'content':this['_saveRevisionFormView'],'actionButtons':[{'label':m(_0x28c258['locale'],'Cancel'),'withText':!0x0,'onExecute':()=>_0x2f8473['hide']()},{'label':m(_0x28c258['locale'],'Accept'),'class':'ck-button-action','withText':!0x0,'onCreate'(_0x363bcc){_0x363bcc['bind']('isEnabled')['to'](_0x517bd6,'isReady',_0x517bd6,'isEnabled',_0x28c258,'isReadOnly',(_0x501b5b,_0xf76da0,_0x9fc0a3)=>_0x501b5b&&_0xf76da0&&!_0x9fc0a3);},'onExecute':()=>_0x55a468(this['_saveRevisionFormView'])}]});}['_createSaveRevisionFormView'](){const _0x4fe7d4=this['editor'],_0x22f161=_0x4fe7d4['locale'];this['_saveRevisionFormView']=new hs(_0x22f161,_0x4fe7d4['config']['get']('revisionHistory.requireRevisionName')),this['_saveRevisionFormView']['render']();}}class X extends ts{['changeId'];['_model'];constructor(_0x1cd55f,_0x28941d){super(_0x1cd55f),this['_model']=_0x28941d,this['changeId']=_0x28941d['id'];const _0x2d4ee2=this['bindTemplate'],_0x47c428=m(_0x1cd55f,_0x28941d['data']['isSuggestion']?'Suggested\x20by':'add'==_0x28941d['type']?'Added\x20by':'Removed\x20by');this['set']('type',_0x28941d['type']),this['setTemplate']({'tag':'div','attributes':{'class':['ck-annotation','ck-revision-change',_0x2d4ee2['to']('type',_0x493007=>'ck-revision-change__'+_0x493007)],'tabindex':-0x1},'children':[{'tag':'span','children':[{'tag':'span','attributes':{'class':['ck-revision-change__label']},'children':[{'text':_0x47c428}]},{'text':'\x20'+_0x28941d['author']['name']}]}]});}['focus'](){this['element']['focus']();}}class r extends/* #__PURE__ -- @preserve */
|
|
25
|
-
_0xbb5f7f(){['id'];['author'];['type'];['data'];['rootName'];constructor(_0x400201){super(),this['id']=_0x400201['id']||_0x58d578(),this['author']=_0x400201['author'],this['type']=_0x400201['type'],this['data']=_0x400201['data']||{},this['rootName']=_0x400201['rootName'],this['set']('createdAt',_0x400201['createdAt']);}['toJSON'](){return{'id':this['id'],'authorId':this['author']['id'],'type':this['type'],'data':this['data'],'createdAt':this['createdAt']};}}class f{['newRevisionId'];['oldRevisionId'];['changes'];constructor(_0x527b9a,_0x42030b){this['newRevisionId']=_0x527b9a,this['oldRevisionId']=_0x42030b,this['changes']=new _0x1cf4f8();}['_setChanges'](_0x4463d3){for(const _0x5b8ddf of _0x4463d3)this['changes']['add'](_0x5b8ddf);}}const Y={'c':_0x2be8ce,'a':_0x269d3a,'e':_0x1cd008,'r':_0x1eb79c,'u':_0x41062d};class d extends _0x2a51c8{['repository'];['adapter'];['_activeViewTarget'];['_changeView'];['_changeIdToChange'];['_balloon'];static get['pluginName'](){return'RevisionViewer';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x10b62c,_0x42bfe0,j];}constructor(_0x332cbc){super(_0x332cbc),this['repository']=this['editor']['plugins']['get']('RevisionsRepository'),this['set']('activeChange',null),this['set']('activeView',null),this['_activeViewTarget']=null,this['set']('diff',null),this['set']('isReady',!0x1),this['set']('isEnabled',!0x0),this['on']('change:isEnabled',(_0x372541,_0x16218d,_0x61f93)=>{this['activeChange']=null,this['activeView']=null,this['editor']['editing']['view']['change'](_0x4501f9=>{for(const _0x41584e of this['editor']['editing']['view']['document']['roots'])_0x61f93?_0x4501f9['removeClass']('ck-editor__editable__overlay',_0x41584e):_0x4501f9['addClass']('ck-editor__editable__overlay',_0x41584e);});}),this['bind']('isNavigationMode')['to'](this,'activeChange',_0x2c067e=>null!==_0x2c067e),this['bind']('currentChangeNumber')['to'](this,'isReady',this,'diff',this,'activeChange',(_0x5084bd,_0xbea2f8,_0x3b8465)=>_0x5084bd&&_0x3b8465?_0xbea2f8['changes']['getIndex'](_0x3b8465):0x0),this['bind']('numberOfChanges')['to'](this,'isReady',this,'diff',(_0x5e1042,_0x4ef28d)=>_0x5e1042?_0x4ef28d['changes']['length']:0x0),this['_changeView']=null,this['_changeIdToChange']=new Map(),this['adapter']=null,this['_balloon']=this['editor']['plugins']['get'](_0x42bfe0);}['init'](){const _0x4b5d58=this['editor'],_0x21d5b5=new _t(_0x4b5d58,{'direction':'backward'}),_0x43cd81=new _t(_0x4b5d58,{'direction':'forward'});(_0x4b5d58['commands']['add']('showPreviousChange',_0x21d5b5),_0x4b5d58['commands']['add']('showNextChange',_0x43cd81),_0x4b5d58['commands']['add']('restoreRevision',new pt(_0x4b5d58)),this['on']('change:numberOfChanges',()=>{_0x21d5b5['refresh'](),_0x43cd81['refresh']();}),this['_setConversion'](),this['_initInteractions'](),_0x4b5d58['enableReadOnlyMode']('revision-viewer'),_0x4b5d58['plugins']['has']('WidgetToolbarRepository'))&&_0x4b5d58['plugins']['get']('WidgetToolbarRepository')['forceDisabled']('revision-viewer');}async['getRevisionData'](_0x159ce1){await this['loadRevisionData'](_0x159ce1);const _0x14655e={};for(const _0x2b5e0b in _0x159ce1['diffData']){if(_0x159ce1['diffData'][_0x2b5e0b]['attachChange']&&!_0x159ce1['diffData'][_0x2b5e0b]['attachChange']['isAttached'])continue;const _0x3cf858=this['_removeRevisionMarkers'](JSON['parse'](_0x159ce1['diffData'][_0x2b5e0b]['insertions'])),_0x484c28=this['editor']['editing']['view']['document'],_0x58a94b=new _0x4f280e(_0x484c28,_0x3cf858['map'](_0x519823=>this['_getViewObj'](_0x519823)));this['editor']['data']['processor']['useFillerType']('marked'),_0x14655e[_0x2b5e0b]=this['editor']['data']['processor']['toData'](_0x58a94b),this['editor']['data']['processor']['useFillerType']('default');}return _0x14655e;}async['getRevisionRootsAttributes'](_0x26fba1){await this['loadRevisionData'](_0x26fba1);const _0x3fe853={};for(const _0x2e9eab in _0x26fba1['diffData'])_0x26fba1['diffData'][_0x2e9eab]['attachChange']&&!_0x26fba1['diffData'][_0x2e9eab]['attachChange']['isAttached']||(_0x3fe853[_0x2e9eab]=_0x26fba1['diffData'][_0x2e9eab]['attributesAfter']||{});return _0x3fe853;}['_removeRevisionMarkers'](_0x2ae825){return(_0x2ae825=_0x2ae825['filter'](_0x1434fb=>!_0x1434fb['name']||'revision-start'!==_0x1434fb['name']&&'revision-end'!==_0x1434fb['name']))['forEach'](_0x2ddbec=>{'string'!=typeof _0x2ddbec&&(_0x2ddbec['children']=this['_removeRevisionMarkers'](_0x2ddbec['children']),_0x2ddbec['attributes']=_0x2ddbec['attributes']['filter'](_0x56114f=>!_0x56114f[0x0]['startsWith']('data-revision-')));}),_0x2ae825;}async['compare'](_0x7fbe58,_0x2e5bfd,_0x30c4fe=!0x1){if(!this['isEnabled'])return;const _0xde48d4=this['diff'],_0x1e658b=this['repository'],_0x4a01dd='string'==typeof _0x7fbe58?_0x1e658b['getRevision'](_0x7fbe58):_0x7fbe58,_0x55e0b7='string'==typeof _0x2e5bfd?_0x1e658b['getRevision'](_0x2e5bfd):_0x2e5bfd,_0x22d15d=_0x4a01dd['id'],_0x5e7e13=_0x55e0b7?_0x55e0b7['id']:null;if(!_0x30c4fe&&this['diff']&&this['diff']['newRevisionId']===_0x22d15d&&this['diff']['oldRevisionId']===_0x5e7e13)return Promise['resolve']();this['isReady']=!0x1,this['activeView']=null,this['activeChange']=null,this['diff']=new f(_0x22d15d,_0x5e7e13);const _0x423151=this['_getRevisionsRange'](_0x4a01dd,_0x55e0b7,!0x0)['map'](_0x1a54a3=>this['loadRevisionData'](_0x1a54a3));return _0x423151['push'](new Promise(_0x14c157=>{setTimeout(_0x14c157,0x14);})),Promise['all'](_0x423151)['then'](()=>{if(!this['isEnabled'])return;this['_cleanUp']();const _0x4a0503=this['_getDiff'](_0x22d15d,_0x5e7e13);for(const _0x10baab of _0x4a0503['changes'])this['_changeIdToChange']['set'](_0x10baab['id'],_0x10baab);this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x2b6dcb=>{for(const _0x5b1c0a of this['editor']['model']['document']['getRootNames']())_0x2b6dcb['detachRoot'](_0x5b1c0a);for(const _0xb19011 of Object['keys'](_0x4a0503['model'])){const _0x409e6a=_0x2b6dcb['addRoot'](_0xb19011);for(const _0x50af55 of Object['keys'](_0x4a0503['attributes'][_0xb19011]))_0x2b6dcb['setAttribute'](_0x50af55,_0x4a0503['attributes'][_0xb19011][_0x50af55],_0x409e6a);_0x2b6dcb['insert'](_0x4a0503['model'][_0xb19011],_0x409e6a,0x0);}}),this['diff']['_setChanges'](this['_sortAndFilterDiffChanges'](_0x4a0503['changes'])),this['isReady']=!0x0;})['catch'](_0x2f5d74=>{console['error'](_0x2f5d74),this['_cleanUp'](),_0xde48d4&&(this['diff']=_0xde48d4),this['isReady']=!0x0;});}['addRevisionData'](_0x42db09,_0x12e42b){const _0x27826a=this['repository']['createRevision'](_0x42db09);return _0x27826a['on']('_update',(_0x2b555e,_0x1e047b,_0x241679)=>_0x12e42b(_0x1e047b,_0x241679,_0x27826a)),this['repository']['addRevision'](_0x27826a),_0x27826a;}['loadRevisionData'](_0xdefac2){if(!_0xdefac2||_0xdefac2['diffData'])return Promise['resolve']();{const _0x3029dc=this['editor']['config']['get']('collaboration.channelId');return this['adapter']['getRevision']({'channelId':_0x3029dc,'revisionId':_0xdefac2['id']})['then'](_0x364e68=>{_0xdefac2['_update']({'diffData':_0x364e68['diffData']},!0x0);});}}['_cleanUp'](){this['activeChange']=null,this['_cleanMarkers'](),this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=null,this['_changeIdToChange']['clear'](),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x26d871=>{for(const _0x46e65f of this['editor']['model']['document']['getRootNames']())_0x26d871['detachRoot'](_0x46e65f);});}['_sortAndFilterDiffChanges'](_0x4290e8){const _0x266b21=[],_0x56f560=new Map();for(const _0x11a2fd of this['editor']['model']['document']['getRootNames']()){const _0x7ed1e3=this['editor']['editing']['view']['getDomRoot'](_0x11a2fd);if(!_0x7ed1e3)continue;const _0xb26d97=_0x7ed1e3['getClientRects']()['item'](0x0);_0xb26d97&&(_0x266b21['push'](_0x11a2fd),_0x56f560['set'](_0x11a2fd,_0xb26d97));}return _0x266b21['sort']((_0x56c4f2,_0x51c7eb)=>{const _0x37a714=_0x56f560['get'](_0x56c4f2),_0x1e8fb6=_0x56f560['get'](_0x51c7eb);return _0x37a714['y']-_0x1e8fb6['y']||_0x37a714['x']-_0x1e8fb6['x'];}),(_0x4290e8=_0x4290e8['filter'](_0x1e5f03=>_0x266b21['includes'](_0x1e5f03['rootName'])))['sort']((_0x46dfe1,_0x3c86ad)=>_0x266b21['indexOf'](_0x46dfe1['rootName'])-_0x266b21['indexOf'](_0x3c86ad['rootName'])),_0x4290e8;}['_makeTape'](_0xebbf25){const _0xe4dce9=Array['from'](_0xebbf25['markers'])['filter'](([_0x31b829,_0x52d08c])=>_0x31b829['startsWith']('revision:')&&!_0x52d08c['isCollapsed']),_0x2a22ea=Array['from'](this['editor']['model']['createRangeIn'](_0xebbf25)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0xe4dce9['length'])for(const _0x5b8992 of _0x2a22ea){const [_0xc1d2d4,_0x1e1262]=_0xe4dce9[0x0],[,_0x3869c1,_0x4dc153]=_0xc1d2d4['split'](':');if(_0x1e1262['end']['isEqual'](_0x5b8992['nextPosition'])&&_0xe4dce9['shift'](),(_0x5b8992['previousPosition']['isEqual'](_0x1e1262['start'])||_0x5b8992['previousPosition']['isAfter'](_0x1e1262['start']))&&('insertion'==_0x3869c1?_0x5b8992['isAdded']={'userId':_0x4dc153}:'deletion'==_0x3869c1&&(_0x5b8992['isRemoved']={'userId':_0x4dc153})),0x0==_0xe4dce9['length'])break;}return _0x2a22ea;}['_refreshStartEndIndex'](_0x29307c){const _0x35556d=new Map();for(let _0x21fc2f=0x0;_0x21fc2f<_0x29307c['length'];_0x21fc2f++)'text'===_0x29307c[_0x21fc2f]['type']?(_0x29307c[_0x21fc2f]['item']['startIndex']=_0x21fc2f,_0x29307c[_0x21fc2f]['item']['endIndex']=_0x21fc2f):('elementStart'===_0x29307c[_0x21fc2f]['type']?_0x29307c[_0x21fc2f]['item']['startIndex']=_0x21fc2f:'elementEnd'===_0x29307c[_0x21fc2f]['type']&&(_0x29307c[_0x21fc2f]['item']['endIndex']=_0x21fc2f),_0x35556d['set'](_0x29307c[_0x21fc2f]['id'],_0x21fc2f));for(const _0x16ca7c of _0x35556d['values']())'elementStart'===_0x29307c[_0x16ca7c]['type']?_0x29307c[_0x16ca7c]['item']['endIndex']=_0x35556d['get'](_0x29307c[_0x16ca7c]['pairId']):'elementEnd'===_0x29307c[_0x16ca7c]['type']&&(_0x29307c[_0x16ca7c]['item']['startIndex']=_0x35556d['get'](_0x29307c[_0x16ca7c]['pairId']));}['_processTape'](_0xcabbaa){for(let _0x4250a7=0x0;_0x4250a7<_0xcabbaa['length'];_0x4250a7++){if('elementStart'===_0xcabbaa[_0x4250a7]['type'])_0xcabbaa[_0x4250a7]['item']['startIndex']=_0x4250a7;else{if('elementEnd'===_0xcabbaa[_0x4250a7]['type']){_0xcabbaa[_0x4250a7]['item']['endIndex']=_0x4250a7;const _0x2c75cd=_0xcabbaa[_0x4250a7]['item']['startIndex'];_0xcabbaa[_0x2c75cd]['pairId']=_0xcabbaa[_0x4250a7]['id'],_0xcabbaa[_0x4250a7]['pairId']=_0xcabbaa[_0x2c75cd]['id'];}else _0xcabbaa[_0x4250a7]['item']['startIndex']=_0x4250a7,_0xcabbaa[_0x4250a7]['item']['endIndex']=_0x4250a7,_0xcabbaa[_0x4250a7]['pairId']=null;}_0xcabbaa[_0x4250a7]['markersStart']||(_0xcabbaa[_0x4250a7]['markersStart']=[],_0xcabbaa[_0x4250a7]['markersEnd']=[]);}}['_markInsertions'](_0x4dc3dd,_0x306f7c){const _0xfef407=_0x4dc3dd['filter'](_0x29cc56=>!_0x29cc56['isAdded']);for(let _0x47f47e=0x0;_0x47f47e<_0x306f7c['length'];_0x47f47e++)_0x306f7c[_0x47f47e]['isAdded']&&(_0xfef407[_0x47f47e]['isAdded']=_0x306f7c[_0x47f47e]['isAdded']);}['_makeModelFromViewString'](_0x4773b7){const _0x3cdced=JSON['parse'](_0x4773b7),_0x474500=this['editor']['editing']['view']['document'],_0x43e92d=new _0x4f280e(_0x474500,_0x3cdced['map'](_0x2b8774=>this['_getViewObj'](_0x2b8774)));return this['editor']['data']['toModel'](_0x43e92d);}['_getViewObj'](_0x76cda3){const _0x394e13=this['editor']['editing']['view']['document'];if('string'==typeof _0x76cda3)return new _0x246c10(_0x394e13,_0x76cda3);{const _0x343f70=_0x76cda3['children']['map'](_0x443d9f=>this['_getViewObj'](_0x443d9f));return new(Y[_0x76cda3['type']]||_0x343883)(_0x394e13,_0x76cda3['name'],_0x76cda3['attributes'],_0x343f70);}}['_getDiff'](_0x124096,_0x2cc0ff=null){const _0x38329d=this['repository']['getRevision'](_0x124096),_0xee6f3b=_0x2cc0ff?this['repository']['getRevision'](_0x2cc0ff):null,_0x1891aa=this['_getRevisionsRange'](_0x38329d,_0xee6f3b),_0x4599f4=_0x1891aa[_0x1891aa['length']-0x1],_0x27a27a=new Map(),_0x28fac2={'model':{},'attributes':{},'changes':[]},_0x10137f=new Set(),_0x3164ba=new Map();for(let _0x33fabf=_0x1891aa['length']-0x1;_0x33fabf>=0x0;_0x33fabf--){const _0x3fce1e=_0x1891aa[_0x33fabf];for(const _0x3614f2 of Object['keys'](_0x3fce1e['diffData']))if(_0x3fce1e['diffData'][_0x3614f2]['attachChange']){const _0x450527=_0x3fce1e['diffData'][_0x3614f2]['attachChange'];_0x450527['isAttached']?(_0x10137f['add'](_0x3614f2),_0x3164ba['has'](_0x3614f2)&&_0x3164ba['get'](_0x3614f2)['userId']==_0x450527['userId']?_0x3164ba['delete'](_0x3614f2):_0x3164ba['set'](_0x3614f2,_0x450527)):_0x3164ba['has'](_0x3614f2)?(_0x10137f['delete'](_0x3614f2),_0x3164ba['delete'](_0x3614f2)):(_0x10137f['add'](_0x3614f2),_0x3164ba['set'](_0x3614f2,_0x450527));}else _0x10137f['add'](_0x3614f2);}for(const _0x14738e of _0x10137f){const _0x51af02=_0x3164ba['has'](_0x14738e)&&!_0x3164ba['get'](_0x14738e)['isAttached'];let _0x17361e=_0x51af02?_0x1891aa['length']-0x1:0x0;const _0x5945e6=_0x51af02?-0x1:0x1;for(;_0x1891aa[_0x17361e];){const _0x27be17=_0x1891aa[_0x17361e];if(_0x27be17['diffData'][_0x14738e]){const _0x3fb479=_0x51af02?_0x27be17['diffData'][_0x14738e]['attributesBefore']:_0x27be17['diffData'][_0x14738e]['attributesAfter'];_0x28fac2['attributes'][_0x14738e]=_0x3fb479?_0x2178aa(_0x3fb479):{};break;}_0x17361e+=_0x5945e6;}}for(const _0x565b81 of _0x1891aa){_0x565b81['model']={};for(const _0x30c003 of _0x565b81['authors'])_0x27a27a['set'](_0x30c003['id'],_0x30c003);for(const _0x50d8f5 of _0x10137f){const _0x1bd4c9=_0x565b81['diffData'][_0x50d8f5]?_0x565b81['diffData'][_0x50d8f5]['insertions']:'[]',_0x4b1433=_0x565b81['diffData'][_0x50d8f5]?_0x565b81['diffData'][_0x50d8f5]['deletions']:'[]';_0x565b81['model'][_0x50d8f5]={'insertions':this['_makeModelFromViewString'](_0x1bd4c9),'deletions':this['_makeModelFromViewString'](_0x4b1433)};}}for(const _0x59225a of _0x10137f){let _0x23c698=null,_0x3dae18=0x0;const _0x55f931=new Map(Array['from'](_0x38329d['model'][_0x59225a]['insertions']['markers'])['filter'](([_0x2dba4e])=>!_0x2dba4e['startsWith']('revision:')));let _0x51e579=0x0;for(const _0x42abae of _0x1891aa){const _0x55c1b1=this['_makeTape'](_0x42abae['model'][_0x59225a]['insertions']);_0x42abae==_0x38329d?(_0x23c698=_0x55c1b1,_0x3dae18=_0x23c698['length'],_0x23c698['forEach'](_0x2de177=>{_0x2de177['id']=_0x51e579++;}),this['_processTape'](_0x23c698)):this['_markInsertions'](_0x23c698,_0x55c1b1);const _0x374a72=_0x23c698['filter'](_0x102311=>!_0x102311['isAdded'])['map'](_0x265acf=>_0x265acf['id']);let _0x37d580=0x0;const _0x91b649=this['_makeTape'](_0x42abae['model'][_0x59225a]['deletions']);_0x91b649['forEach'](_0x3d8823=>{_0x3d8823['isRemoved']?_0x3d8823['id']=_0x3dae18++:_0x3d8823['id']=_0x374a72[_0x37d580++];}),this['_processTape'](_0x91b649),this['_setDistance'](_0x23c698,'isAdded'),this['_setDistance'](_0x91b649,'isRemoved'),_0x42abae==_0x38329d&&this['_markMarkers'](_0x23c698,_0x55f931),_0x23c698=this['_joinTapes'](_0x23c698,_0x91b649),this['_refreshStartEndIndex'](_0x23c698),this['_setDistance'](_0x23c698,'isRemoved');}_0x23c698=_0x23c698['filter'](_0x3728e5=>!(_0x3728e5['isAdded']&&_0x3728e5['isRemoved']));const _0x56130a=new Map(_0x4599f4['model'][_0x59225a]['deletions']['markers']),_0x4f227a=new Set(_0x55f931['keys']());for(const _0x32fe64 of _0x56130a['keys']())_0x4f227a['delete'](_0x32fe64);this['_markSuggestions'](_0x23c698,_0x4f227a),this['_fixObsoleteTags'](_0x23c698),_0x23c698=this['_removeMissingPairs'](_0x23c698),_0x23c698=this['_markMismatchedRemovedTags'](_0x23c698),_0x23c698=this['_removeUnsupportedChanges'](_0x23c698);const {root:_0x53499b,changes:_0x523521}=this['_makeModelFromTape'](_0x23c698,_0x27a27a,_0x59225a);_0x28fac2['model'][_0x59225a]=_0x53499b;const _0x277ff5=_0x3164ba['get'](_0x59225a);if(_0x277ff5){const _0x40d4bf=_0x27a27a['get'](_0x277ff5['userId']),_0x31930c=new r({'author':_0x40d4bf,'type':_0x277ff5['isAttached']?'add':'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x59225a});_0x523521['unshift'](_0x31930c),_0x28fac2['attributes'][_0x59225a]['revisionHistoryAttachChange']=_0x31930c['id'];}_0x28fac2['changes']=_0x28fac2['changes']['concat'](_0x523521);}return _0x28fac2;}['_markMarkers'](_0x48feae,_0x3d039c){for(let _0x47f010=0x0;_0x47f010<_0x48feae['length'];_0x47f010++)for(const [_0x33c1da,_0x131aca]of _0x3d039c)_0x131aca['start']['isEqual'](_0x48feae[_0x47f010]['previousPosition'])&&_0x48feae[_0x47f010]['markersStart']['push'](_0x33c1da),_0x131aca['end']['isEqual'](_0x48feae[_0x47f010]['nextPosition'])&&_0x48feae[_0x47f010]['markersEnd']['push'](_0x33c1da);}['_joinTapes'](_0x304e3d,_0x5f19a4){let _0x233830=[],_0x5696b7=0x0,_0x4aab37=0x0;for(;_0x5696b7<_0x304e3d['length']||_0x4aab37<_0x5f19a4['length'];){const _0x40582c=_0x304e3d[_0x5696b7]||{},_0x4f3f67=_0x5f19a4[_0x4aab37]||{};if(_0x40582c['id']==_0x4f3f67['id'])_0x5696b7++,_0x4aab37++,_0x233830['push'](_0x40582c);else{if(_0x4f3f67['isRemoved']&&_0x40582c['isAdded']){const {commonTape:_0x244d1f,iEnd:_0x22e451,jEnd:_0x9e1c0e}=this['_threeWayMerge'](_0x304e3d,_0x5696b7,_0x5f19a4,_0x4aab37);_0x233830=_0x233830['concat'](_0x244d1f),_0x5696b7=_0x22e451,_0x4aab37=_0x9e1c0e;}else _0x4f3f67['isRemoved']?(_0x4aab37++,_0x233830['push'](_0x4f3f67)):(_0x5696b7++,_0x233830['push'](_0x40582c));}}return _0x233830;}['_markSuggestions'](_0x164317,_0x362d32){const _0x564ee2=[];for(let _0x37ee4b=0x0;_0x37ee4b<_0x164317['length'];_0x37ee4b++){for(let _0x29e259=0x0;_0x29e259<_0x164317[_0x37ee4b]['markersStart']['length'];_0x29e259++){const _0x12eed1=_0x164317[_0x37ee4b]['markersStart'][_0x29e259];if(!_0x362d32['has'](_0x12eed1))continue;const {group:_0xde2b84,type:_0x57c6b8,authorId:_0x15edf5}=_0x127abb(_0x12eed1);'revision-suggestion'!=_0xde2b84||'insertion'!=_0x57c6b8&&'deletion'!=_0x57c6b8||(_0x564ee2['unshift']({'type':_0x57c6b8,'name':_0x12eed1,'userId':_0x15edf5}),_0x164317[_0x37ee4b]['markersStart']['splice'](_0x29e259,0x1),_0x29e259--);}_0x4653d5(_0x164317[_0x37ee4b]);for(let _0x2fa07c=0x0;_0x2fa07c<_0x164317[_0x37ee4b]['markersEnd']['length'];_0x2fa07c++){const _0x3c66e7=_0x164317[_0x37ee4b]['markersEnd'][_0x2fa07c];if(!_0x362d32['has'](_0x3c66e7))continue;const {group:_0xe9aace,type:_0x217350}=_0x127abb(_0x3c66e7);if('revision-suggestion'!=_0xe9aace||'insertion'!=_0x217350&&'deletion'!=_0x217350)continue;_0x164317[_0x37ee4b]['markersEnd']['splice'](_0x2fa07c,0x1),_0x2fa07c--;const _0x2cd601=_0x564ee2['findIndex'](_0x2a2437=>_0x2a2437['name']==_0x3c66e7);_0x2cd601>-0x1&&_0x564ee2['splice'](_0x2cd601,0x1);}}function _0x127abb(_0x21fac0){const _0x1f364=_0x21fac0['split'](':');return{'group':_0x1f364[0x0],'type':_0x1f364[0x1],'subType':_0x1f364['length']>=0x5?_0x1f364[0x2]:null,'id':_0x1f364['length']<0x5?_0x1f364[0x2]:_0x1f364[0x3],'authorId':_0x1f364['length']<0x5?_0x1f364[0x3]:_0x1f364[0x4],'markerCount':0x6==_0x1f364['length']?_0x1f364[0x5]:null};}function _0x4653d5(_0x287ab2){for(let _0x29ef79=0x0;_0x29ef79<_0x564ee2['length'];_0x29ef79++){if(_0x287ab2['isAdded']&&'insertion'==_0x564ee2[_0x29ef79]['type'])return _0x287ab2['isAddSuggestion']=_0x564ee2[_0x29ef79],void delete _0x287ab2['isAdded'];if(!_0x287ab2['isAdded']&&!_0x287ab2['isRemoved']&&'deletion'==_0x564ee2[_0x29ef79]['type'])return void(_0x287ab2['isRemoveSuggestion']=_0x564ee2[_0x29ef79]);}}}['_setDistance'](_0x4ac4d0,_0x18a34a){let _0x22db62=0x0,_0x526854=!0x1;const _0x1f7c0e=new Map();for(const _0x573118 of _0x4ac4d0)_0x573118[_0x18a34a]?_0x526854&&(_0x22db62++,_0x526854=!0x1):(_0x22db62++,_0x526854=!0x0),_0x1f7c0e['set'](_0x573118['id'],_0x22db62);for(let _0x4aa374=0x0;_0x4aa374<_0x4ac4d0['length'];_0x4aa374++){if('isRemoved'==_0x18a34a&&_0x4ac4d0[_0x4aa374]['isAdded']||'isAdded'==_0x18a34a&&_0x4ac4d0[_0x4aa374]['isRemoved'])continue;if('text'==_0x4ac4d0[_0x4aa374]['type']){_0x4ac4d0[_0x4aa374]['distance']=0x0;continue;}const _0x1e300e=_0x1f7c0e['get'](_0x4ac4d0[_0x4aa374]['pairId']),_0x3a6c75=_0x1f7c0e['get'](_0x4ac4d0[_0x4aa374]['id']);_0x4ac4d0[_0x4aa374]['distance']=_0x1e300e-_0x3a6c75;}}['_getRevisionsRange'](_0x4947f0,_0x505fb0,_0x2bf6de=!0x1){const _0x3555eb=[];let _0x2f7cb7=this['repository']['getIndex'](_0x4947f0),_0x1441e7=this['repository']['getIndex'](_0x505fb0);for(-0x1==_0x1441e7&&(_0x1441e7=this['repository']['_revisions']['length'],_0x2bf6de=!0x1);_0x2f7cb7<_0x1441e7;)_0x3555eb['push'](this['repository']['getRevision'](_0x2f7cb7)),_0x2f7cb7++;return _0x2bf6de&&_0x3555eb['push'](this['repository']['getRevision'](_0x2f7cb7)),_0x3555eb;}['_threeWayMerge'](_0x19119b,_0xde9e29,_0x48cb55,_0x4d10d6){const _0x5c4069=this['editor']['model']['schema'];let _0x162ac7=_0xde9e29;for(;_0x19119b[_0x162ac7]&&_0x19119b[_0x162ac7]['isAdded'];)_0x162ac7++;let _0x5c7fc3=_0x4d10d6;for(;_0x48cb55[_0x5c7fc3]&&_0x48cb55[_0x5c7fc3]['isRemoved'];)_0x5c7fc3++;_0xd14c98(_0x19119b,_0xde9e29,_0x162ac7),_0xd14c98(_0x48cb55,_0x4d10d6,_0x5c7fc3);const _0x52d9b4=_0x48cb55['slice'](_0x4d10d6,_0x5c7fc3)['concat'](_0x19119b['slice'](_0xde9e29,_0x162ac7));return _0x52d9b4['sort']((_0x545156,_0x32fd3f)=>_0x545156['side']!=_0x32fd3f['side']?_0x545156['side']-_0x32fd3f['side']:_0x545156['level']!=_0x32fd3f['level']?_0x545156['level']-_0x32fd3f['level']:_0x545156['distance']!=_0x32fd3f['distance']?_0x32fd3f['distance']-_0x545156['distance']:!!_0x545156['isAdded']!=!!_0x32fd3f['isAdded']?-0x1==_0x545156['side']||0x0==_0x545156['side']?_0x545156['isAdded']?-0x1:0x1:_0x545156['isAdded']?0x1:-0x1:_0x545156['index']-_0x32fd3f['index']),{'commonTape':_0x52d9b4,'iEnd':_0x162ac7,'jEnd':_0x5c7fc3};function _0xd14c98(_0x2ef908,_0x52eb6f,_0x46a3d6){let _0x4df2da=-0x1,_0x401759=Number['POSITIVE_INFINITY'],_0x4d5c2b=!0x0;for(let _0x319767=_0x52eb6f;_0x319767<_0x46a3d6;_0x319767++)if(_0x5c4069['isInline'](_0x2ef908[_0x319767]['item'])||(_0x4d5c2b=!0x1),_0x2ef908[_0x319767]['item']['startIndex']<_0x52eb6f&&(_0x4df2da=_0x319767),_0x2ef908[_0x319767]['item']['endIndex']>=_0x46a3d6){_0x401759=_0x319767;break;}_0x4d5c2b&&(_0x4df2da=_0x46a3d6-0x1);for(let _0x4a7339=_0x52eb6f;_0x4a7339<_0x46a3d6;_0x4a7339++)_0x2ef908[_0x4a7339]['side']=_0x4a7339<=_0x4df2da?-0x1:_0x4a7339<_0x401759?0x0:0x1,_0x2ef908[_0x4a7339]['index']=_0x4a7339;let _0x335b5c=0x0;for(let _0x22a2ab=_0x52eb6f;_0x22a2ab<=_0x4df2da;_0x22a2ab++)0x0==_0x2ef908[_0x22a2ab]['distance']?_0x2ef908[_0x22a2ab]['level']=_0x335b5c:(_0x335b5c++,_0x2ef908[_0x22a2ab]['level']=_0x335b5c,_0x335b5c++);for(let _0x40da82=_0x52eb6f;_0x40da82<_0x46a3d6;_0x40da82++)0x0==_0x2ef908[_0x40da82]['side']&&(_0x2ef908[_0x40da82]['level']=_0x335b5c);_0x335b5c=0x0;for(let _0x3828c7=_0x46a3d6-0x1;_0x3828c7>=_0x401759;_0x3828c7--)0x0==_0x2ef908[_0x3828c7]['distance']?_0x2ef908[_0x3828c7]['level']=_0x335b5c:(_0x335b5c--,_0x2ef908[_0x3828c7]['level']=_0x335b5c,_0x335b5c--);}}['_fixObsoleteTags'](_0x1b9426){const _0x22d3f8=new Map(),_0x20cabf=this['editor']['model']['schema'];for(let _0x29750e=0x1;_0x29750e<_0x1b9426['length'];_0x29750e++){let _0x4fa118,_0xb3aab4,_0x8ab87a;const _0x9c76bd=_0x1b9426[_0x29750e],_0x5427d4=_0x1b9426[_0x29750e-0x1];if('text'==_0x9c76bd['type'])continue;if(_0x9c76bd['type']!=_0x5427d4['type'])continue;if(!_0x20cabf['isBlock'](_0x5427d4['item'])||_0x20cabf['isLimit'](_0x5427d4['item']))continue;if(!_0x20cabf['isBlock'](_0x9c76bd['item'])||_0x20cabf['isLimit'](_0x9c76bd['item']))continue;if((_0x1b9426[_0x29750e]['isAdded']||_0x1b9426[_0x29750e]['isAddSuggestion'])&&_0x1b9426[_0x29750e-0x1]['isRemoved'])_0x4fa118=_0x1b9426[_0x29750e],_0xb3aab4=_0x1b9426[_0x29750e-0x1],_0x8ab87a=_0x29750e-0x1;else{if(!_0x1b9426[_0x29750e]['isRemoved']||!_0x1b9426[_0x29750e-0x1]['isAdded']&&!_0x1b9426[_0x29750e-0x1]['isAddSuggestion'])continue;_0x4fa118=_0x1b9426[_0x29750e-0x1],_0xb3aab4=_0x1b9426[_0x29750e],_0x8ab87a=_0x29750e;}const _0x5a7f2a=_0x4fa118['level']==_0xb3aab4['level'],_0x363ca9=Math['abs'](_0x4fa118['level'])<Math['abs'](_0xb3aab4['level'])&&0x0==_0xb3aab4['distance'];(_0x5a7f2a||_0x363ca9)&&(_0x22d3f8['set'](_0xb3aab4['id'],_0x4fa118['id']),_0x1b9426['splice'](_0x8ab87a,0x1),_0x29750e--,_0x4fa118['isAdded']=!0x1);}for(let _0x1f1e89=0x0;_0x1f1e89<_0x1b9426['length'];_0x1f1e89++)_0x22d3f8['has'](_0x1b9426[_0x1f1e89]['pairId'])&&(_0x1b9426[_0x1f1e89]['pairId']=_0x22d3f8['get'](_0x1b9426[_0x1f1e89]['pairId']));}['_removeMissingPairs'](_0x25104d){const _0xd1641b=new Set(_0x25104d['map'](_0x1110d0=>_0x1110d0['id']));for(let _0x5892da=0x0;_0x5892da<_0x25104d['length'];_0x5892da++)_0xd1641b['has'](_0x25104d[_0x5892da]['pairId'])||0x0==_0x25104d[_0x5892da]['distance']||(_0x25104d[_0x5892da]['isIncorrect']=!0x0);return _0x25104d['filter'](_0x369f48=>!_0x369f48['isIncorrect']);}['_markMismatchedRemovedTags'](_0x12c416){const _0x3265cb=new Set();for(let _0x40e07b=0x0;_0x40e07b<_0x12c416['length'];_0x40e07b++){if(_0x3265cb['has'](_0x12c416[_0x40e07b]['id'])&&_0x12c416[_0x40e07b]['isRemoved']&&(_0x12c416[_0x40e07b]['isIncorrect']=!0x0),_0x12c416[_0x40e07b]['isIncorrect'])continue;if(0x0==_0x12c416[_0x40e07b]['distance'])continue;if('elementStart'!=_0x12c416[_0x40e07b]['type'])continue;if(null==_0x12c416[_0x40e07b]['pairId'])continue;let _0x270a19=_0x40e07b+0x1,_0x590395=0x0;for(;_0x12c416[_0x270a19]['id']!=_0x12c416[_0x40e07b]['pairId'];)'elementStart'==_0x12c416[_0x270a19]['type']?_0x590395++:'elementEnd'==_0x12c416[_0x270a19]['type']&&_0x590395--,_0x270a19++;if(0x0!=_0x590395){if(_0x12c416[_0x40e07b]['isRemoved'])_0x12c416[_0x40e07b]['isIncorrect']=!0x0;else{for(;_0x270a19!=_0x40e07b;)_0x12c416[_0x270a19]['isRemoved']&&0x0!=_0x12c416[_0x270a19]['distance']&&(_0x12c416[_0x270a19]['isIncorrect']=!0x0,_0x3265cb['add'](_0x12c416[_0x270a19]['pairId'])),_0x270a19--;}}}return _0x12c416['filter'](_0x4982be=>!_0x4982be['isIncorrect']);}['_removeUnsupportedChanges'](_0x2fd7fc){const _0xbc3c6d=this['editor']['model']['schema'];for(let _0x19b9de=0x0;_0x19b9de<_0x2fd7fc['length'];_0x19b9de++){if(!(_0x2fd7fc[_0x19b9de]['isAdded']||_0x2fd7fc[_0x19b9de]['isAddSuggestion']||_0x2fd7fc[_0x19b9de]['isRemoved']||_0x2fd7fc[_0x19b9de]['isRemoveSuggestion']))continue;if(0x0==_0x2fd7fc[_0x19b9de]['distance'])continue;const _0x20575f=_0x2fd7fc[_0x19b9de]['item'];_0xbc3c6d['isBlock'](_0x20575f)||_0xbc3c6d['isLimit'](_0x20575f)||(_0x2fd7fc[_0x19b9de]['isAdded']&&delete _0x2fd7fc[_0x19b9de]['isAdded'],_0x2fd7fc[_0x19b9de]['isAddSuggestion']&&delete _0x2fd7fc[_0x19b9de]['isAddSuggestion'],_0x2fd7fc[_0x19b9de]['isRemoveSuggestion']&&delete _0x2fd7fc[_0x19b9de]['isRemoveSuggestion'],_0x2fd7fc[_0x19b9de]['isRemoved']&&(_0x2fd7fc[_0x19b9de]['isIncorrect']=!0x0));}return _0x2fd7fc['filter'](_0x2af56a=>!_0x2af56a['isIncorrect']);}['_makeModelFromTape'](_0x2f9eb4,_0x3943be,_0x3be145){const _0xc67157=new mt(),_0xba0c6f=[],_0xa4f87=new Map(),_0x230046=this['editor']['model'],_0x2010e1=_0x230046['schema'],_0x5e9a1f=[_0xc67157],_0x3ec72b={},_0x30dded={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x5cea40=null;const _0x28d17f=[0x0];for(let _0x23e45c=0x0;_0x23e45c<_0x2f9eb4['length'];_0x23e45c++)if('elementStart'===_0x2f9eb4[_0x23e45c]['type']){_0x2f9eb4[_0x23e45c]['previousPosition']=_0x230046['createPositionFromPath'](_0xc67157,_0x28d17f);const _0x2eeab9=new ft(_0x2f9eb4[_0x23e45c]['item']['name'],_0x2f9eb4[_0x23e45c]['item']['getAttributes']());_0x5e9a1f[0x0]['_appendChild'](_0x2eeab9),_0x28d17f['push'](0x0),_0x5e9a1f['unshift'](_0x2eeab9),_0x2f9eb4[_0x23e45c]['nextPosition']=_0x230046['createPositionFromPath'](_0xc67157,_0x28d17f);}else'elementEnd'===_0x2f9eb4[_0x23e45c]['type']?(_0x5e9a1f['shift'](),_0x2f9eb4[_0x23e45c]['previousPosition']=_0x230046['createPositionFromPath'](_0xc67157,_0x28d17f),_0x28d17f['pop'](),_0x28d17f[_0x28d17f['length']-0x1]++,_0x2f9eb4[_0x23e45c]['nextPosition']=_0x230046['createPositionFromPath'](_0xc67157,_0x28d17f)):(_0x2f9eb4[_0x23e45c]['previousPosition']=_0x230046['createPositionFromPath'](_0xc67157,_0x28d17f),_0x5cea40?_0x5cea40['_data']+=_0x2f9eb4[_0x23e45c]['item']['data']:_0x5cea40=new wt(_0x2f9eb4[_0x23e45c]['item']['data'],_0x2f9eb4[_0x23e45c]['item']['getAttributes']()),_0x2f9eb4[_0x23e45c+0x1]&&'text'===_0x2f9eb4[_0x23e45c+0x1]['type']&&_0x523362(_0x5cea40,_0x2f9eb4[_0x23e45c+0x1]['item'])||(_0x5e9a1f[0x0]['_appendChild'](_0x5cea40),_0x5cea40=null),_0x28d17f[_0x28d17f['length']-0x1]+=_0x2f9eb4[_0x23e45c]['item']['offsetSize'],_0x2f9eb4[_0x23e45c]['nextPosition']=_0x230046['createPositionFromPath'](_0xc67157,_0x28d17f));for(let _0x3fa4d0=0x0;_0x3fa4d0<_0x2f9eb4['length'];_0x3fa4d0++){const _0x3310c5=_0x2f9eb4[_0x3fa4d0]['previousPosition'],_0x53a3ff=_0x2f9eb4[_0x3fa4d0]['nextPosition'];for(const _0x12d259 of _0x2f9eb4[_0x3fa4d0]['markersStart'])_0xa4f87['set'](_0x12d259,{'start':_0x3310c5,'end':null});_0x4d444d('isRemoveSuggestion',_0x3fa4d0,_0x3310c5,_0x53a3ff),_0x4d444d('isAddSuggestion',_0x3fa4d0,_0x3310c5,_0x53a3ff),_0x4d444d('isRemoved',_0x3fa4d0,_0x3310c5,_0x53a3ff),_0x4d444d('isAdded',_0x3fa4d0,_0x3310c5,_0x53a3ff);for(const _0x514025 of _0x2f9eb4[_0x3fa4d0]['markersEnd']){_0xa4f87['get'](_0x514025)['end']=_0x53a3ff;}}for(const [_0x3d9b57,_0x3c0700]of _0xa4f87){const _0x362c3a=this['editor']['model']['createRange'](_0x3c0700['start'],_0x3c0700['end']);_0xc67157['markers']['set'](_0x3d9b57,_0x362c3a);}return _0xba0c6f['sort']((_0x165d4f,_0x2dd9c6)=>{const _0x4e27ae=_0xc67157['markers']['get']('revision:'+_0x165d4f['id']),_0x10274d=_0xc67157['markers']['get']('revision:'+_0x2dd9c6['id']);return _0x4e27ae['start']['isBefore'](_0x10274d['start'])?-0x1:_0x4e27ae['start']['isAfter'](_0x10274d['start'])?0x1:_0x4e27ae['end']['isBefore'](_0x10274d['end'])?-0x1:_0x4e27ae['end']['isAfter'](_0x10274d['end'])?0x1:'add'===_0x165d4f['type']?-0x1:0x1;}),{'root':_0xc67157,'changes':_0xba0c6f};function _0x4d444d(_0xb2cd9e,_0x4dd9ee,_0xb42f81,_0x3b716a){const _0x1e769d=!!_0x2f9eb4[_0x4dd9ee][_0xb2cd9e],_0x4c6884=_0x1e769d?_0x2f9eb4[_0x4dd9ee][_0xb2cd9e]['userId']:null,_0x507bac=_0x4dd9ee===_0x2f9eb4['length']-0x1,_0x9152a8=_0x30dded[_0xb2cd9e][0x0],_0xfef203=_0x2010e1['isObject'](_0x2f9eb4[_0x4dd9ee]['item']);!_0x3ec72b[_0xb2cd9e]&&_0x1e769d?_0x3ec72b[_0xb2cd9e]={'start':_0xb42f81,'tapeItem':_0x2f9eb4[_0x4dd9ee],'userId':_0x4c6884,'type':_0xb2cd9e}:_0x3ec72b[_0xb2cd9e]&&!_0x1e769d?(_0x3ec72b[_0xb2cd9e]['end']=_0xb42f81,_0x52031b(_0x3ec72b[_0xb2cd9e]),_0x3ec72b[_0xb2cd9e]=null):_0x3ec72b[_0xb2cd9e]&&_0x1e769d&&_0x3ec72b[_0xb2cd9e]['userId']!==_0x4c6884&&(_0x3ec72b[_0xb2cd9e]['end']=_0xb42f81,_0x9152a8&&_0x9152a8['userId']===_0x3ec72b[_0xb2cd9e]['userId']||_0x52031b(_0x3ec72b[_0xb2cd9e]),_0x3ec72b[_0xb2cd9e]={'start':_0xb42f81,'tapeItem':_0x2f9eb4[_0x4dd9ee],'userId':_0x4c6884,'type':_0xb2cd9e}),_0x3ec72b[_0xb2cd9e]&&_0xfef203&&('elementStart'!==_0x2f9eb4[_0x4dd9ee]['type']||_0x9152a8&&_0x9152a8['userId']===_0x4c6884||_0x30dded[_0xb2cd9e]['unshift']({'userId':_0x4c6884,'object':_0x2f9eb4[_0x4dd9ee]['item'],'change':_0x3ec72b[_0xb2cd9e]}),'elementEnd'===_0x2f9eb4[_0x4dd9ee]['type']&&_0x9152a8&&_0x9152a8['object']===_0x2f9eb4[_0x4dd9ee]['item']&&(_0x30dded[_0xb2cd9e]['shift'](),_0x3ec72b[_0xb2cd9e]=_0x9152a8['change'])),_0x3ec72b[_0xb2cd9e]&&_0x507bac&&(_0x3ec72b[_0xb2cd9e]['end']=_0x3b716a,_0x52031b(_0x3ec72b[_0xb2cd9e]),_0x3ec72b[_0xb2cd9e]=null);}function _0x52031b({start:_0xa6483e,end:_0x5d6df3,tapeItem:_0x4582a5,userId:_0x157c1e,type:_0x3f2e2c}){const _0x105b26=_0x4582a5['item'],_0x20700f=_0x230046['schema']['isBlock'](_0x105b26)&&!_0x230046['schema']['isLimit'](_0x105b26),_0x3da914=_0xa6483e['nodeAfter']==_0x5d6df3['parent']&&_0x5d6df3['isAtStart'];if(_0x20700f&&_0x3da914)return;const _0x362a2e=_0x230046['createRange'](_0xa6483e,_0x5d6df3),_0x24cb26=_0x3943be['get'](_0x157c1e),_0x2d28a7=new r({'author':_0x24cb26,'type':'isAdded'==_0x3f2e2c||'isAddSuggestion'==_0x3f2e2c?'add':'remove','data':{'isSuggestion':'isAddSuggestion'==_0x3f2e2c||'isRemoveSuggestion'==_0x3f2e2c},'createdAt':new Date(),'rootName':_0x3be145});_0xba0c6f['push'](_0x2d28a7),_0xc67157['markers']['set']('revision:'+_0x2d28a7['id'],_0x362a2e);}function _0x523362(_0x5a3629,_0xb2dfad){const _0x1ea59b=_0x5a3629['getAttributes'](),_0x55982e=_0xb2dfad['getAttributes']();for(const _0x4445fe of _0x1ea59b){if(_0x4445fe[0x1]!==_0xb2dfad['getAttribute'](_0x4445fe[0x0]))return!0x1;_0x55982e['next']();}return _0x55982e['next']()['done'];}}['_setConversion'](){this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision','view':_0x341ad1=>{const _0x526da9=_0x341ad1['markerName']['split'](':')[0x1],_0xc83f22=this['_getChangeFromId'](_0x526da9);if(!_0xc83f22)return null;const _0x2ef76a='add'==_0xc83f22['type']?'insertion':'deletion',_0x11a898=['ck-suggestion-marker','ck-suggestion-marker-'+_0x2ef76a];return _0xc83f22['data']['isSuggestion']&&_0x11a898['push']('ck-suggestion-marker-'+_0x2ef76a+'-new'),this['activeChange']==_0xc83f22&&_0x11a898['push']('ck-suggestion-marker--active'),{'classes':_0x11a898,'attributes':{'data-change-id':_0x526da9}};}}),this['editor']['conversion']['for']('upcast')['add'](_0x1b7bde=>{_0x1b7bde['on']('element:pre',(_0xfd3641,_0x19dc76,_0x4a7415)=>{const _0x5da2cd=_0x19dc76['viewItem']['getChild'](0x0);if(!_0x5da2cd||!_0x5da2cd['is']('element','code'))return;if(!_0x4a7415['consumable']['consume'](_0x5da2cd,{'attributes':['vid_start','vid_end']}))return;const _0x34039a=_0x19dc76['modelRange']['start']['nodeAfter'];_0x4a7415['writer']['setAttribute']('vid_start',_0x5da2cd['getAttribute']('vid_start'),_0x34039a),_0x4a7415['writer']['setAttribute']('vid_end',_0x5da2cd['getAttribute']('vid_end'),_0x34039a);},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['add'](_0x58a825=>{_0x58a825['on']('element',(_0x447198,_0x43ef87,_0x11eff4)=>{if(!_0x11eff4['consumable']['consume'](_0x43ef87['viewItem'],{'attributes':['vid_start','vid_end']}))return;if(_0x43ef87['modelRange']['isCollapsed'])return;const _0x1cbd80=_0x43ef87['modelRange']['start']['nodeAfter'];_0x1cbd80['hasAttribute']('vid_start')||_0x1cbd80['hasAttribute']('vid')||(_0x11eff4['writer']['setAttribute']('vid_start',_0x43ef87['viewItem']['getAttribute']('vid_start'),_0x1cbd80),_0x11eff4['writer']['setAttribute']('vid_end',_0x43ef87['viewItem']['getAttribute']('vid_end'),_0x1cbd80));},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['elementToAttribute']({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0xfe1b78=>_0xfe1b78['getAttribute']('vid')}}),this['editor']['model']['schema']['on']('checkAttribute',(_0x5828e5,[,_0x508b06])=>{['vid_start','vid_end','vid']['includes'](_0x508b06)&&(_0x5828e5['return']=!0x0,_0x5828e5['stop']());},{'priority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['add'](_0xf3707c=>{_0xf3707c['on']('attribute:vid',(_0x2a6894,_0x286f4f,_0x1b520b)=>{if('\x20'!=_0x286f4f['item']['data']||_0x286f4f['item']['parent']['maxOffset']>0x1)return;if(!_0x1b520b['consumable']['consume'](_0x286f4f['item'],_0x2a6894['name']))return;const _0xfaa6c1=_0x1b520b['writer'],_0x13beca=_0x1b520b['mapper']['toViewRange'](_0x286f4f['range']);_0xfaa6c1['wrap'](_0x13beca,_0xfaa6c1['createAttributeElement']('span'));});}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',function(_0xcd7628){const _0x471d45=_0xcd7628['plugins']['get']('RevisionViewer');return(_0x20f5a5,_0x362edb,_0x988ec9)=>{const _0x26c43f=_0x362edb['markerName']['split'](':')[0x1],_0x49aa0e=_0x471d45['_getChangeFromId'](_0x26c43f);if(!_0x49aa0e)return null;const _0x48653e='add'==_0x49aa0e['type']?'split':'merge';if(!_0x988ec9['consumable']['test'](_0x362edb['markerRange'],_0x20f5a5['name']))return;const _0x4704d6=_0x362edb['markerRange']['getWalker'](),_0x20a4ee=_0x362edb['markerRange']['start'],_0x1ee691=_0xcd7628['model']['schema'];let _0x31ffc8=null,_0x40da7e=null,_0x1f0638=!0x1,_0x1932f3=!0x1;for(const _0x22ae28 of _0x4704d6){const _0x3e3272=_0x22ae28['item'];_0x1f0638=_0x1f0638||_0x1ee691['isContent'](_0x3e3272);const _0x34a7b4=_0x988ec9['mapper']['toViewElement'](_0x3e3272);if(_0x34a7b4&&_0x34a7b4['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x22ae28['type']&&(_0x1ee691['isBlock'](_0x3e3272)&&!_0x1ee691['isLimit'](_0x3e3272)&&(_0x3e3272['nextSibling']||_0x20a4ee['isAtEnd']?_0x31ffc8&&_0x31ffc8['parent']==_0x3e3272||(_0x31ffc8=_0x3e3272,_0x415577(_0x22ae28['previousPosition']),_0x1932f3=!0x0):_0x40da7e=_0x40da7e||_0x22ae28['previousPosition']));}function _0x415577(_0x416243){const _0x257a6d=_0x988ec9['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x48653e}),_0x39f91b=_0x988ec9['mapper']['toViewPosition'](_0x416243);_0x49aa0e['data']['isSuggestion']&&_0x988ec9['writer']['addClass']('ck-suggestion-marker-'+_0x48653e+'-new',_0x257a6d),_0x471d45['activeChange']==_0x49aa0e&&_0x988ec9['writer']['addClass']('ck-suggestion-marker--active',_0x257a6d),_0x988ec9['writer']['insert'](_0x39f91b,_0x257a6d),_0x988ec9['mapper']['bindElementToMarker'](_0x257a6d,_0x362edb['markerName']);}_0x1f0638||_0x1932f3||!_0x40da7e||_0x415577(_0x40da7e);};}(this['editor']),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision',(_0x16095b,_0x48119a,_0x360584)=>{const _0x5a7537=_0x360584['mapper']['markerNameToElements'](_0x48119a['markerName']);if(_0x5a7537){for(const _0x2bcbb7 of _0x5a7537)(_0x2bcbb7['hasClass']('ck-suggestion-marker-split')||_0x2bcbb7['hasClass']('ck-suggestion-marker-merge'))&&(_0x360584['mapper']['unbindElementFromMarkerName'](_0x2bcbb7,_0x48119a['markerName']),_0x360584['writer']['remove'](_0x2bcbb7));}},{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',(_0x3a67cd,_0x26391c,_0x57a36d)=>{const _0x1a03cc=_0x26391c['markerName']['split'](':')[0x1],_0x18f956=this['_getChangeFromId'](_0x1a03cc);if(!_0x18f956)return null;const _0x5d385b='add'==_0x18f956['type']?'split':'merge';if(_0x57a36d['consumable']['test'](_0x26391c['markerRange'],_0x3a67cd['name']))for(const _0x41c0ae of _0x26391c['markerRange']['getItems']()){if(!_0x41c0ae['is']('element','softBreak'))continue;const _0x28f82d=_0x57a36d['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x5d385b}),_0x904903=_0x57a36d['mapper']['toViewPosition'](this['editor']['model']['createPositionBefore'](_0x41c0ae));_0x18f956['data']['isSuggestion']&&_0x57a36d['writer']['addClass']('ck-suggestion-marker-'+_0x5d385b+'-new',_0x28f82d),this['activeChange']==_0x18f956&&_0x57a36d['writer']['addClass']('ck-suggestion-marker--active',_0x28f82d),_0x57a36d['writer']['insert'](_0x904903,_0x28f82d),_0x57a36d['mapper']['bindElementToMarker'](_0x28f82d,_0x26391c['markerName']);}},{'priority':'high'}),this['editor']['model']['document']['on']('change',()=>{this['editor']['editing']['view']['change'](_0x35ab2d=>{for(const _0x2d3ef9 of this['editor']['model']['document']['getRootNames']()){const _0x1f2be9=this['editor']['model']['document']['getRoot'](_0x2d3ef9),_0x48d6e8=this['editor']['editing']['view']['document']['getRoot'](_0x2d3ef9);if(_0x48d6e8){const _0x278b97=_0x1f2be9['getAttribute']('revisionHistoryAttachChange');if(_0x35ab2d['removeAttribute']('data-change-id',_0x48d6e8),_0x35ab2d['removeClass']('ck-revision-history-root-add',_0x48d6e8),_0x35ab2d['removeClass']('ck-revision-history-root-remove',_0x48d6e8),_0x35ab2d['removeClass']('ck-revision-history-root--active',_0x48d6e8),_0x278b97){const _0x50c614=this['_getChangeFromId'](_0x278b97);if(!_0x50c614)return null;_0x35ab2d['setAttribute']('data-change-id',_0x278b97,_0x48d6e8),_0x35ab2d['addClass']('ck-revision-history-root-'+_0x50c614['type'],_0x48d6e8),this['activeChange']==_0x50c614&&_0x35ab2d['addClass']('ck-revision-history-root--active',_0x48d6e8);}}}});}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'comment','model':_0x43eaa1=>'revision-comment:'+_0x43eaa1,'converterPriority':'highest'}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion','model':_0x5bae32=>'revision-suggestion:'+_0x5bae32,'converterPriority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision-suggestion','view':_0x257eed=>({'name':'suggestion:'+_0x257eed,'group':'revision-suggestion'}),'converterPriority':'highest'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision-suggestion','view':_0x5a1420=>{const _0x2f484d=_0x5a1420['markerName']['split'](':')[0x1];return'insertion'!=_0x2f484d&&'deletion'!=_0x2f484d?null:{'classes':['ck-suggestion-preview-marker','ck-suggestion-preview-marker-'+_0x2f484d]};}}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:deletion',Z(this['editor'],'merge'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:insertion',Z(this['editor'],'split'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision-suggestion',(_0x2250d8,_0x4f003b,_0x5982c0)=>{const _0x1bfbae=_0x5982c0['mapper']['markerNameToElements'](_0x4f003b['markerName']);if(_0x1bfbae){for(const _0x40720f of _0x1bfbae)_0x40720f['is']('uiElement')&&(_0x5982c0['mapper']['unbindElementFromMarkerName'](_0x40720f,_0x4f003b['markerName']),_0x5982c0['writer']['remove'](_0x40720f));}},{'priority':'high'});}['_getChangeFromId'](_0x98d2){return this['_changeIdToChange']['get'](_0x98d2);}['_getViewForChange'](_0x5843bb){return this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=new X(this['editor']['locale'],_0x5843bb),this['_changeView'];}['_initInteractions'](){this['editor']['model']['document']['selection']['observeMarkers']('revision'),this['on']('change:activeView',(_0x350c84,_0x2e0abd,_0x2e856d,_0x418030)=>{_0x418030&&this['_balloon']['remove'](_0x418030),_0x2e856d&&(this['_balloon']['add']({'view':_0x2e856d,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0x24581a=this['editor']['editing'],_0x4158a6=this['_getChangeFromId'](_0x2e856d['changeId']);let _0x39153c;if(_0x4158a6['data']['isOnRoot']){const _0x288137=_0x24581a['view']['getDomRoot'](_0x4158a6['rootName']);_0x39153c=Array['from'](_0x288137['getClientRects']());}else{const _0x33c85f=this['editor']['model']['markers']['get']('revision:'+_0x2e856d['changeId']);_0x39153c=Array['from'](_0x24581a['mapper']['markerNameToElements'](_0x33c85f['name']))['map'](_0x4e5e63=>_0x24581a['view']['domConverter']['mapViewToDom'](_0x4e5e63))['map'](_0x2757a6=>Array['from'](_0x2757a6['getClientRects']()))['flat']();}if(!this['_activeViewTarget'])return _0x39153c[0x0];return _0x39153c['find'](_0xfef59=>_0xfef59['top']-0x3<=this['_activeViewTarget']['y']&&_0xfef59['bottom']+0x3>=this['_activeViewTarget']['y']&&_0xfef59['left']-0x3<=this['_activeViewTarget']['x']&&_0xfef59['right']+0x3>=this['_activeViewTarget']['x'])||_0x39153c[0x0];}}}),this['_balloon']['showStack']('revisionHistoryLabel'));}),this['on']('change:activeChange',(_0x54f5d2,_0x3858ca,_0x2acd0b,_0x5a5ad9)=>{this['activeView']=_0x2acd0b?this['_getViewForChange'](_0x2acd0b):null,this['editor']['model']['change'](()=>{const _0x1a61d8=this['editor']['editing'];_0x5a5ad9&&(_0x5a5ad9['data']['isOnRoot']?_0x1a61d8['view']['change'](_0x43ad1f=>{_0x43ad1f['removeClass']('ck-revision-history-root--active',_0x1a61d8['view']['document']['getRoot'](_0x5a5ad9['rootName']));}):_0x1a61d8['reconvertMarker']('revision:'+_0x5a5ad9['id'])),_0x2acd0b&&(_0x2acd0b['data']['isOnRoot']?_0x1a61d8['view']['change'](_0x2d952b=>{_0x2d952b['addClass']('ck-revision-history-root--active',_0x1a61d8['view']['document']['getRoot'](_0x2acd0b['rootName']));}):_0x1a61d8['reconvertMarker']('revision:'+_0x2acd0b['id']));});}),this['listenTo'](this['editor']['editing']['view']['document'],'mouseover',(_0x16a2ca,_0x2d4c6d)=>{if(this['activeChange'])return;const _0x2c3f48=this['_findChangeIdFromDomTarget'](_0x2d4c6d['target']),_0x1c69eb=this['_changeIdToChange']['get'](_0x2c3f48);_0x1c69eb?(this['_activeViewTarget']={'x':_0x2d4c6d['domEvent']['x'],'y':_0x2d4c6d['domEvent']['y']},this['activeView']=this['_getViewForChange'](_0x1c69eb)):(this['_activeViewTarget']=null,this['activeView']=null);}),this['listenTo'](this['editor']['editing']['view']['document'],'mousedown',(_0x423089,_0x54c32a)=>{const _0xe4c503=this['_findChangeIdFromDomTarget'](_0x54c32a['target']),_0x296e5a=this['_changeIdToChange']['get'](_0xe4c503);_0x296e5a?(this['_activeViewTarget']={'x':_0x54c32a['domEvent']['x'],'y':_0x54c32a['domEvent']['y']},_0x296e5a===this['activeChange']?this['_balloon']['updatePosition']():this['activeChange']=_0x296e5a):(this['_activeViewTarget']=null,this['activeChange']=null);});}['_findChangeIdFromDomTarget'](_0xc5b4f0){do{const _0x52eb8c=_0xc5b4f0['getAttribute']('data-change-id');if(_0x52eb8c)return _0x52eb8c;_0xc5b4f0=_0xc5b4f0['parent'];}while(_0xc5b4f0);return null;}['_cleanMarkers'](){this['editor']['model']['change'](_0x3c8169=>{for(const _0x507643 of this['editor']['model']['markers'])_0x3c8169['removeMarker'](_0x507643);});}}function Z(_0x4f0e1e,_0x42df5f){return(_0x52910c,_0x29a3fa,_0x552952)=>{if(!_0x552952['consumable']['test'](_0x29a3fa['markerRange'],_0x52910c['name']))return;const _0x182e81=_0x29a3fa['markerRange']['getWalker'](),_0xb9837e=_0x29a3fa['markerRange']['start'],_0x31ec72=_0x4f0e1e['model']['schema'];let _0x2091e5=null,_0x74a2cb=null,_0x142f6f=!0x1,_0x28369d=!0x1;for(const _0xe0e539 of _0x182e81){const _0x9e425c=_0xe0e539['item'];_0x142f6f=_0x142f6f||_0x31ec72['isContent'](_0x9e425c);const _0x9c9e51=_0x552952['mapper']['toViewElement'](_0x9e425c);if(_0x9c9e51&&_0x9c9e51['getCustomProperty']('addHighlight'))return;'elementEnd'==_0xe0e539['type']&&(_0x31ec72['isBlock'](_0x9e425c)&&!_0x31ec72['isLimit'](_0x9e425c)&&(_0x9e425c['nextSibling']||_0xb9837e['isAtEnd']?_0x2091e5&&_0x2091e5['parent']==_0x9e425c||(_0x2091e5=_0x9e425c,_0x27a835(_0xe0e539['previousPosition']),_0x28369d=!0x0):_0x74a2cb=_0x74a2cb||_0xe0e539['previousPosition']));}function _0x27a835(_0x3a0604){const _0x3fb93f=_0x552952['mapper']['toViewPosition'](_0x3a0604),_0x121aab=_0x552952['writer']['createUIElement']('span',{'class':'ck-suggestion-preview-marker-'+_0x42df5f});_0x552952['writer']['insert'](_0x3fb93f,_0x121aab),_0x552952['mapper']['bindElementToMarker'](_0x121aab,_0x29a3fa['markerName']);}_0x142f6f||_0x28369d||!_0x74a2cb||_0x27a835(_0x74a2cb);};}class pt extends _0x4c2f92{constructor(_0x4a215d){super(_0x4a215d);const _0x285e00=_0x4a215d['plugins']['get'](d);this['affectsData']=!0x1,this['listenTo'](_0x285e00,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x285e00,'change:isEnabled',()=>this['refresh']());}['execute'](){const _0x511872=this['editor'],_0x2e697b=_0x511872['plugins']['get'](d),_0x267af3=_0x2e697b['isReady']?_0x2e697b['diff']['newRevisionId']:null;_0x511872['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x267af3);}['refresh'](){const {isReady:_0x2ad574,isEnabled:_0x2a72c5,repository:_0x460281,diff:_0xa0817c}=this['editor']['plugins']['get'](d),_0x1ac1e8=_0xa0817c&&_0x460281['getLaterVisibleRevision'](_0xa0817c['newRevisionId']);this['isEnabled']=_0x2ad574&&_0x2a72c5&&Boolean(_0x1ac1e8);}}class _t extends _0x4c2f92{['_step'];constructor(_0x13b89f,{direction:_0x1c5edb}){super(_0x13b89f);const _0x356a09=_0x13b89f['plugins']['get'](d);this['affectsData']=!0x1,this['_step']='forward'===_0x1c5edb?0x1:-0x1,this['listenTo'](_0x356a09,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x356a09,'change:isEnabled',()=>this['refresh']()),this['listenTo'](_0x356a09,'change:activeChange',()=>this['refresh']());}['execute'](){const _0x5a56ed=this['editor'],_0x3dc70e=_0x5a56ed['plugins']['get'](d),{isNavigationMode:_0x536039,currentChangeNumber:_0x20d86d}=_0x3dc70e;let _0x51a0bf;if(_0x3dc70e['activeChange']=_0x536039?_0x3dc70e['diff']['changes']['get'](_0x20d86d+this['_step']):_0x3dc70e['diff']['changes']['first'],_0x3dc70e['activeChange']['data']['isOnRoot'])_0x51a0bf=_0x5a56ed['editing']['view']['getDomRoot'](_0x3dc70e['activeChange']['rootName']);else{const _0x3d627c=_0x5a56ed['model']['markers']['get']('revision:'+_0x3dc70e['activeChange']['id']);_0x51a0bf=_0x4c1182(_0x5a56ed['editing'],_0x3d627c);}_0x120ba5({'target':_0x51a0bf,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0x1ecbd6,currentChangeNumber:_0x5c5b16,numberOfChanges:_0x430a80,isReady:_0x998a75,isEnabled:_0xd96908}=this['editor']['plugins']['get'](d);this['isEnabled']=!!(_0xd96908&&_0x998a75&&_0x430a80)&&(!_0x1ecbd6||(0x1===this['_step']?_0x5c5b16<_0x430a80-0x1:_0x5c5b16>0x0));}}class li extends ts{constructor(_0x2f034e){super(_0x2f034e);const _0x4fcb17=this['bindTemplate'],_0x2f1ddc=new te(_0x2f034e),_0x2ebb4f=new te(_0x2f034e);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',(_0x142799,_0x2c1cf6)=>_0x142799&&_0x2c1cf6>0x0),this['bind']('_statusText')['to'](this,'isReady',this,'currentChangeNumber',this,'numberOfChanges',this,'isNavigationMode',(_0x1da9a7,_0x1c0ad9,_0x21ec78,_0x392438)=>{if(!_0x1da9a7)return m(_0x2f034e,'Loading...');if(!_0x21ec78)return m(_0x2f034e,'No\x20changes');const _0x3510f7=m(_0x2f034e,'NUMBER_OF_CHANGES',_0x21ec78);return _0x392438?m(_0x2f034e,'X_OF_Y_CHANGES',[_0x1c0ad9+0x1,_0x21ec78]):_0x3510f7;}),_0x2f1ddc['set']({'label':m(_0x2f034e,'Show\x20previous\x20change'),'tooltip':!0x0,'icon':'<svg\x20viewBox=\x220\x200\x2020\x2020\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22><path\x20d=\x22M16.435\x2014.494a.75.75\x200\x200\x200\x201.197-.899l-.067-.089-6.992-8a.75.75\x200\x200\x200-1.05-.078l-.079.078-7.008\x208a.75.75\x200\x200\x200\x201.049\x201.066l.08-.078\x206.442-7.354\x206.428\x207.354z\x22/></svg>\x0a'}),_0x2ebb4f['set']({'label':m(_0x2f034e,'Show\x20next\x20change'),'tooltip':!0x0,'icon':'<svg\x20viewBox=\x220\x200\x2020\x2020\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22><path\x20d=\x22M16.435\x205.506a.75.75\x200\x200\x201\x201.197.899l-.067.089-6.992\x208a.75.75\x200\x200\x201-1.05.078l-.079-.078-7.008-8a.75.75\x200\x200\x201\x201.049-1.066l.08.078\x206.442\x207.354\x206.428-7.354z\x22/></svg>\x0a'}),_0x2f1ddc['bind']('isEnabled')['to'](this,'isBackwardNavigationEnabled'),_0x2ebb4f['bind']('isEnabled')['to'](this,'isForwardNavigationEnabled'),_0x2f1ddc['on']('execute',()=>this['fire']('execute','backward')),_0x2ebb4f['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',_0x4fcb17['if']('_isStatusLabelVisible','ck-hidden',_0x2a121b=>!_0x2a121b)]},'children':[{'text':_0x4fcb17['to']('isNavigationMode',_0xd2e151=>_0xd2e151?m(_0x2f034e,'EDIT_X_OF_Y_REVISIONS')+':\x20':m(_0x2f034e,'Total')+':\x20')}]},{'text':_0x4fcb17['to']('_statusText')}]},new _0xbcdb48(),{'tag':'div','attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0x2f1ddc,_0x2ebb4f]}]});}}const le='ck-editor__editable__loading-overlay';class ge extends _0x2a51c8{static get['pluginName'](){return'RevisionViewerLoadingOverlay';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['show'](){const _0x36f843=this['editor']['editing']['view'];_0x36f843['change'](_0x47b5fa=>{for(const _0x58d905 of _0x36f843['document']['roots'])_0x47b5fa['addClass'](le,_0x58d905);});}['hide'](){const _0x182e4d=this['editor']['editing']['view'];_0x182e4d['change'](_0x5d7bf5=>{for(const _0x301ff6 of _0x182e4d['document']['roots'])_0x5d7bf5['removeClass'](le,_0x301ff6);});}}class g extends _0x2a51c8{static get['pluginName'](){return'RevisionViewerUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[d,ge];}['init'](){const _0x2b6c17=this['editor'],_0x29987d=_0x2b6c17['plugins']['get'](d),_0x5a43a0=_0x2b6c17['plugins']['get'](ge);_0x2b6c17['ui']['componentFactory']['add']('exitToEditing',_0x2c2bec=>{const _0x143af3=new te(_0x2c2bec);return _0x143af3['set']({'label':m(_0x2c2bec,'Back\x20to\x20editing'),'icon':_0x1db26b['undo'],'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this['listenTo'](_0x143af3,'execute',()=>{_0x2b6c17['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}),_0x143af3;}),_0x2b6c17['ui']['componentFactory']['add']('restoreRevision',_0x3cf888=>{const _0x13d511=new te(_0x3cf888);return _0x13d511['set']({'label':m(_0x3cf888,'Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0x13d511['bind']('isEnabled')['to'](_0x2b6c17['commands']['get']('restoreRevision')),this['listenTo'](_0x13d511,'execute',()=>_0x2b6c17['execute']('restoreRevision')),_0x13d511;}),_0x2b6c17['ui']['componentFactory']['add']('changesNavigation',_0x10b94c=>{const _0x41b038=new li(_0x10b94c),_0x2fbe96=_0x2b6c17['commands']['get']('showPreviousChange'),_0x35aae8=_0x2b6c17['commands']['get']('showNextChange');return _0x41b038['bind']('isBackwardNavigationEnabled')['to'](_0x2fbe96,'isEnabled'),_0x41b038['bind']('isForwardNavigationEnabled')['to'](_0x35aae8,'isEnabled'),_0x41b038['bind']('isReady','currentChangeNumber','numberOfChanges','isNavigationMode')['to'](_0x29987d),this['listenTo'](_0x41b038,'execute',(_0x4b3d62,_0x47f4e4)=>{_0x2b6c17['execute']('forward'===_0x47f4e4?'showNextChange':'showPreviousChange');}),_0x41b038;}),_0x5a43a0['show'](),_0x29987d['on']('change:isReady',(_0x3d62e3,_0x50f5d5,_0x24efe3)=>{_0x24efe3?_0x5a43a0['hide']():_0x5a43a0['show']();});}}class at extends _0x1b9391{['_resizeObserver']=null;constructor(_0x2ad8eb,_0x2829cc){super(_0x2ad8eb,_0x2829cc);const _0x2df21c=this['bindTemplate'];this['set']({'label':m(_0x2ad8eb,'Revision\x20name'),'_tooltipString':''}),this['fieldView']['placeholder']=m(_0x2ad8eb,'Enter\x20the\x20revision\x20name'),this['extendTemplate']({'tag':'span','attributes':{'class':['ck-revision-history-sidebar__revision-name'],'data-cke-tooltip-text':_0x2df21c['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 _0x514023=this['fieldView']['element'];this['_tooltipString']=_0x514023['scrollWidth']>_0x514023['clientWidth']&&_0x514023['value']||'';}}class ri extends ts{constructor(_0xe5e74e,_0x55bfc1,_0x3945be){super(_0xe5e74e);const _0x2546be=new _0x35ac57();_0x2546be['set']({'content':'<svg\x20viewBox=\x220\x200\x2011\x2010\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22\x20xmlns:xlink=\x22http://www.w3.org/1999/xlink\x22><path\x20d=\x22M5.5\x205C8.538\x205\x2011\x207.015\x2011\x209.5c0\x20.17-.011.336-.034.5H.034A3.732\x203.732\x200\x200\x201\x200\x209.5C0\x207.015\x202.462\x205\x205.5\x205zm0-5a2.5\x202.5\x200\x201\x201\x200\x205\x202.5\x202.5\x200\x200\x201\x200-5z\x22\x20/></svg>\x0a','viewBox':'0\x200\x2011\x2010'});const _0x344c06=['ck','ck-revision-history-sidebar__revision-author'];_0x3945be&&_0x344c06['push']('ck-revision-history-sidebar__revision-author_creator');const _0x19e26b=[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':m(_0xe5e74e,_0x3945be?'Revision\x20creator':'Revision\x20author')},'children':[_0x2546be,_0x55bfc1['name']]}];this['setTemplate']({'tag':'li','attributes':{'class':_0x344c06},'children':_0x19e26b});}}function oi(_0x5afb19,_0x39b81a){const _0x5d4a85=_0x5afb19['bindTemplate'],_0x42000c=_0x5afb19['locale'],_0x42aea7=_0x34ff72(_0x42000c);_0x42aea7['panelPosition']='sw';const _0x59c9f9=function(_0x1e0416,_0x40fc08){const _0x3a62de=function(_0x586168,_0x5f460d){const _0x35902a=_0x586168['locale'],_0x2a25e9={'Compare\x20against\x20selected':m(_0x35902a,'Compare\x20against\x20selected'),'Name\x20this\x20revision':m(_0x35902a,'Name\x20this\x20revision'),'Restore\x20this\x20revision':m(_0x35902a,'Restore\x20this\x20revision')};return _0x5f460d['map'](_0x549ab9=>{const _0xd942d5=_0x2a25e9[_0x549ab9['name']];return _0xd942d5&&_0xd942d5!==_0x549ab9['name']&&(_0x549ab9['name']=_0xd942d5),_0x549ab9;});}(_0x1e0416,_0x40fc08),_0x148923=new _0x1cf4f8();for(const _0x185bcb of _0x3a62de){const _0x155d6e={'type':'button','model':new _0x1ed91a({'label':_0x185bcb['name'],'class':_0x185bcb['class'],'withText':!0x0,'role':'menuitem','_action':_0x185bcb['action']})};_0x155d6e['model']['bind']('isEnabled')['to'](_0x1e0416,'isActionsDropdownOpen',_0x2e0568=>'function'!=typeof _0x185bcb['isEnabled']||(!_0x2e0568||_0x185bcb['isEnabled'](_0x1e0416))),_0x148923['add'](_0x155d6e);}return _0x148923;}(_0x5afb19,_0x39b81a);return _0x5afb19['bind']('isActionsDropdownOpen')['to'](_0x42aea7,'isOpen'),_0x42aea7['buttonView']['set']({'label':m(_0x42000c,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x1db26b['threeVerticalDots']}),_0x42aea7['extendTemplate']({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0x5d4a85['if']('isActionsDropdownOpen','ck-on')]},'on':{'click':_0x5d4a85['to'](_0x3b1700=>_0x3b1700['stopPropagation']())}}),_0x42aea7['on']('execute',_0x1a5c99=>{_0x5afb19['isReady']&&'function'==typeof _0x1a5c99['source']['_action']&&_0x1a5c99['source']['_action'](_0x5afb19);}),to(_0x42aea7,_0x59c9f9,{'role':'menu'}),_0x42aea7['listenTo'](_0x5afb19,'change:isActionsDropdownOpen',(_0x424e6f,_0x5d7cd0,_0x1f5799)=>{if(_0x1f5799)for(const _0x9faa52 of _0x42aea7['listView']['items']){const _0x178ebe=_0x9faa52['children']['first'],_0x2d1f9c=_0x39b81a['find'](_0x288421=>_0x288421['action']===_0x178ebe['_action'])['isVisible'];_0x9faa52['isVisible']=void 0x0===_0x2d1f9c||_0x2d1f9c(_0x5afb19);}}),_0x42aea7;}class hi extends/* #__PURE__ -- @preserve */
|
|
26
|
-
ti(ts){['id'];['revisionNameView'];['revisionActionsView'];['_revision'];['_requireRevisionName'];constructor(
|
|
23
|
+
import{ObservableMixin as _0x5d07e0,uid as _0x2bee71,Collection as _0x4bd15c,logWarning as _0x4df235,FocusTracker as _0x553d6d,KeystrokeHandler as _0x1cff90,scrollViewportToShowTarget as _0x7e407f,ResizeObserver as nt,ElementReplacer as ht,CKEditorError as _0x53925d}from'@ckeditor/ckeditor5-utils/dist/index.js';import{cloneDeep as _0x4fe291,set as _0x2dfbd4,unset as _0x2cd7eb,isEqual as _0xeea941}from'lodash-es';import{Plugin as _0x5a9002,PendingActions as _0x4fa6e0,icons as _0x123892,Command as _0x5883d5,ElementApiMixin as it,Editor as tt}from'@ckeditor/ckeditor5-core/dist/index.js';import{Users as _0x3a86de,getMarkerDomElement as _0x26fb60,ConfirmMixin as ti,sanitizeEditorConfig as _0x488052}from'ckeditor5-collaboration/dist/index.js';import{ViewDocumentFragment as _0x23929d,Element as ft,Range as vt,ViewUIElement as _0x40ec03,ViewRawElement as _0xe7678,ViewEmptyElement as _0x347cea,ViewAttributeElement as _0x5e1a11,ViewContainerElement as _0x15aabb,Position as gt,ViewText as _0x1f9b61,ViewElement as _0x55295d,DocumentFragment as mt,Text as wt}from'@ckeditor/ckeditor5-engine/dist/index.js';import{View as ts,injectCssTransitionDisabler as _0x2c8ba4,submitHandler as _0x59a652,LabeledFieldView as _0x3d4f9b,createLabeledInputText as _0x55a6a1,createDropdown as _0x1ffd4b,ListView as _0x12e40f,ListItemView as _0x9a60cf,ButtonView as te,MenuBarMenuView as _0x415c08,MenuBarMenuListView as _0x1e6d87,MenuBarMenuListItemView as _0x33539e,MenuBarMenuListItemButtonView as _0x37d286,ContextualBalloon as _0x4fee7b,ToolbarSeparatorView as _0x1baa83,IconView as _0x1ba9cd,addListToDropdown as to,ViewModel as _0x45a407,EditorUI as st,normalizeToolbarConfig as ot,BoxedEditorUIView as ct,StickyPanelView as ut,ToolbarView as lt,InlineEditableUIView as dt}from'@ckeditor/ckeditor5-ui/dist/index.js';import{DateTime as _0x4c2825}from'luxon';class a extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x5d07e0(){['id'];['creator'];['authors'];['diffData'];['toVersion'];['fromVersion'];['model'];constructor(_0x4d1f82){super(),this['id']=_0x4d1f82['id']||_0x2bee71(),this['creator']=_0x4d1f82['creator']||null,this['authors']=_0x4d1f82['authors']||[],this['diffData']=_0x4d1f82['diffData']||null,this['toVersion']=_0x4d1f82['toVersion']||0x0,this['fromVersion']=_0x4d1f82['fromVersion']||0x0,this['set']('name',_0x4d1f82['name']||''),this['set']('createdAt',_0x4d1f82['createdAt']||new Date()),this['set']('attributes',_0x4d1f82['attributes']||{});}['setName'](_0xcb9869){this['_update']({'name':_0xcb9869});}['setAttribute'](_0x50c825,_0x40440d){const _0x52df60=_0x4fe291(this['attributes']);_0x2dfbd4(_0x52df60,_0x50c825,_0x40440d),this['_update']({'attributes':_0x52df60});}['removeAttribute'](_0x31742d){const _0x14f0eb=_0x4fe291(this['attributes']);_0x2cd7eb(_0x14f0eb,_0x31742d),this['_update']({'attributes':_0x14f0eb});}['_update'](_0x1bb41f,_0x47f8f1=!0x1){let _0x259018=!0x1;const _0x4c87dc={'id':this['id']},_0x3dcbab=['name','createdAt','diffData','authors','attributes','toVersion','fromVersion','creatorId'];for(const _0x181ff3 of _0x3dcbab){const _0xc44ee=_0x1bb41f[_0x181ff3];void 0x0!==_0xc44ee&&_0xc44ee!==this[_0x181ff3]&&(this[_0x181ff3]=_0xc44ee,_0x4c87dc[_0x181ff3]=_0xc44ee,_0x259018=!0x0);}_0x259018&&(_0x4c87dc['authors']&&(_0x4c87dc['authorsIds']=_0x4c87dc['authors']['map'](_0x96e652=>_0x96e652['id']),delete _0x4c87dc['authors']),this['fire']('_update',_0x4c87dc,_0x47f8f1));}['toJSON'](){return{'id':this['id'],'name':this['name'],'creatorId':this['creator']?this['creator']['id']:null,'authorsIds':this['authors']['map'](_0x5137dc=>_0x5137dc['id']),'diffData':this['diffData'],'createdAt':this['createdAt'],'attributes':this['attributes'],'fromVersion':this['fromVersion'],'toVersion':this['toVersion']};}}class j extends _0x5a9002{['_revisions'];static get['requires'](){return[_0x3a86de];}static get['pluginName'](){return'RevisionsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['length'](){return this['_revisions']['length'];}constructor(_0x17c2a1){super(_0x17c2a1),this['_revisions']=new _0x4bd15c();}['afterInit'](){!async function(_0x296c3b){const _0x3ddc36=_0x54b665([0x63,0x6e,0x76,0x5a,0x72,0x45,0x7a,0x4a,0x74,0x6a,0x67,0x79,0x43,0x32,0x31,0x6f,0x38,0x69,0x49,0x44,0x53,0x41,0x70,0x46,0x4c,0x58,0x4d,0x4f,0x34,0x30,0x65,0x61,0x33,0x37,0x78,0x64,0x56,0x48,0x39,0x36,0x73,0x35,0x66,0x52,0x4e,0x47,0x51,0x62,0x77,0x68,0x6d,0x75,0x6c,0x71,0x57,0x6b,0x59,0x55,0x50,0x54,0x42,0x4b]),_0xe31ae5=0xeb829,_0x29a001=0x2a47ec18,_0x345f2c=0x2a40b2a0^_0x29a001,_0x4a6dc4=window[_0x54b665([0x44,0x61,0x74,0x65])][_0x54b665([0x6e,0x6f,0x77])](),_0x4bb3d6=_0x296c3b[_0x54b665([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x22dc56=new window[(_0x54b665([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5ef20b=>{_0x4bb3d6[_0x54b665([0x6f,0x6e,0x63,0x65])](_0x54b665([0x72,0x65,0x61,0x64,0x79]),_0x5ef20b);}),_0xd35c8a={[_0x54b665([0x6b,0x74,0x79])]:_0x54b665([0x45,0x43]),[_0x54b665([0x75,0x73,0x65])]:_0x54b665([0x73,0x69,0x67]),[_0x54b665([0x63,0x72,0x76])]:_0x54b665([0x50,0x2d,0x32,0x35,0x36]),[_0x54b665([0x78])]:_0x54b665([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]),[_0x54b665([0x79])]:_0x54b665([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]),[_0x54b665([0x61,0x6c,0x67])]:_0x54b665([0x45,0x53,0x32,0x35,0x36])},_0x5df3a6=_0x4bb3d6[_0x54b665([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x54b665([0x67,0x65,0x74])](_0x54b665([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x428985(){let _0x503111,_0x2c21d7=null,_0x2ac234=null;try{if(_0x5df3a6==_0x54b665([0x47,0x50,0x4c]))return _0x54b665([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x503111=_0x573f60(),!_0x503111)return _0x54b665([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x503111[_0x54b665([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x2ac234=_0x2cbe67(_0x503111[_0x54b665([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x503111[_0x54b665([0x6a,0x74,0x69])])),await _0x4ceb60()?_0x27f2e1()?_0x18bd12()?_0x54b665([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x2cadbd()?(_0x503111[_0x54b665([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x54b665([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x2c21d7=_0x362221(_0x54b665([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x503111[_0x54b665([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x54b665([0x74,0x72,0x69,0x61,0x6c])&&(_0x2c21d7=_0x362221(_0x54b665([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x42319f()):_0x54b665([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x54b665([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x54b665([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x38f5c9){return _0x54b665([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x18bd12(){const _0x12ae34=[_0x54b665([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x54b665([0x74,0x72,0x69,0x61,0x6c])][_0x54b665([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x503111[_0x54b665([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x4a6dc4/0x3e8:0xe10*_0x345f2c;return _0x503111[_0x54b665([0x65,0x78,0x70])]<_0x12ae34;}function _0x27f2e1(){const _0x38189c=_0x503111[_0x54b665([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x38189c)return!0x1;if(_0x38189c[_0x54b665([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x54b665([0x2a])))return!0x0;if(_0x38189c[_0x54b665([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x54b665([0x52,0x48])))return!0x0;if(_0x38189c[_0x54b665([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x54b665([0x52,0x52,0x48]))){if(_0x29a90a())return!0x0;if(_0x20f9b2()||_0x5885fa())return!0x0;}return!0x1;}function _0x2cadbd(){const _0x5542f9=_0x503111[_0x54b665([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x5542f9||0x0==_0x5542f9[_0x54b665([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x4aac5a}=new URL(window[_0x54b665([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x5542f9[_0x54b665([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4aac5a))return!0x0;const _0x4792b1=_0x4aac5a[_0x54b665([0x73,0x70,0x6c,0x69,0x74])](_0x54b665([0x2e]));return _0x5542f9[_0x54b665([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x43e219=>_0x43e219[_0x54b665([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x54b665([0x2a])))[_0x54b665([0x6d,0x61,0x70])](_0xd5bb13=>_0xd5bb13[_0x54b665([0x73,0x70,0x6c,0x69,0x74])](_0x54b665([0x2e])))[_0x54b665([0x73,0x6f,0x6d,0x65])](_0x4e5383=>_0x4792b1[_0x54b665([0x65,0x76,0x65,0x72,0x79])]((_0x6d8e94,_0x5b94c3)=>_0x4e5383[_0x5b94c3]===_0x6d8e94||_0x4e5383[_0x5b94c3]===_0x54b665([0x2a])));}function _0x42319f(){return _0x2c21d7&&_0x2ac234?new window[(_0x54b665([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x33e010,_0x445608)=>{_0x2c21d7[_0x54b665([0x74,0x68,0x65,0x6e])](_0x33e010,_0x445608),_0x2ac234[_0x54b665([0x74,0x68,0x65,0x6e])](_0x1bc4f9=>{_0x1bc4f9!=_0x54b665([0x56,0x61,0x6c,0x69,0x64])&&_0x33e010(_0x1bc4f9);},_0x445608);}):_0x2c21d7||_0x2ac234||_0x54b665([0x56,0x61,0x6c,0x69,0x64]);}}function _0x2cbe67(_0x1b2801,_0x1bbb8b){return new window[(_0x54b665([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x39929d=>{if(_0x229213())return _0x39929d(_0x54b665([0x56,0x61,0x6c,0x69,0x64]));_0xfea558(),_0x4bb3d6[_0x54b665([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x54b665([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x4bec2b=!0x1;const _0x536052=_0x2bee71();function _0x1dbec4(_0x152a4e){return!!_0x152a4e&&(typeof _0x152a4e===_0x54b665([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x152a4e===_0x54b665([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x152a4e[_0x54b665([0x74,0x68,0x65,0x6e])]===_0x54b665([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x152a4e[_0x54b665([0x63,0x61,0x74,0x63,0x68])]===_0x54b665([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0xe36525(_0x3bd187){_0x3e48c9(_0x3bd187)[_0x54b665([0x74,0x68,0x65,0x6e])](_0x21ae05=>{if(!_0x21ae05||_0x21ae05[_0x54b665([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x54b665([0x6f,0x6b]))return _0x54b665([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0xd1397c(_0x421226(_0x536052+_0x1bbb8b))!=_0x21ae05[_0x54b665([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x54b665([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x54b665([0x56,0x61,0x6c,0x69,0x64]);})[_0x54b665([0x74,0x68,0x65,0x6e])](_0x18158b=>(_0x237d57(),_0x18158b),()=>{const _0x10ca01=_0x343133();return null==_0x10ca01?(_0x237d57(),_0x54b665([0x56,0x61,0x6c,0x69,0x64])):_0x54b665(_0x4a6dc4-_0x10ca01>(0xe4b6818^_0x29a001)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x54b665([0x74,0x68,0x65,0x6e])](_0x39929d)[_0x54b665([0x63,0x61,0x74,0x63,0x68])](()=>{_0x39929d(_0x54b665([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x249ee4=0x2a710298^_0x29a001;function _0x237d57(){const _0x570b46=_0x54b665([0x6c,0x6c,0x63,0x74,0x2d])+_0xd1397c(_0x421226(_0x1b2801)),_0x2d6021=_0x5c3fd0(_0xd1397c(window[_0x54b665([0x4d,0x61,0x74,0x68])][_0x54b665([0x63,0x65,0x69,0x6c])](_0x4a6dc4/_0x249ee4)));window[_0x54b665([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x54b665([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x570b46,_0x2d6021);}function _0x343133(){const _0x46f8df=_0x54b665([0x6c,0x6c,0x63,0x74,0x2d])+_0xd1397c(_0x421226(_0x1b2801)),_0x30a6f1=window[_0x54b665([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x54b665([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x46f8df);return _0x30a6f1?window[_0x54b665([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5c3fd0(_0x30a6f1),0x10)*_0x249ee4:null;}function _0x3e48c9(_0x134678){return new window[(_0x54b665([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3cb5f3,_0x1eb589)=>{_0x134678[_0x54b665([0x74,0x68,0x65,0x6e])](_0x3cb5f3,_0x1eb589),window[_0x54b665([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x1eb589,0x2a4638d8^_0x29a001);});}}_0x4bb3d6[_0x54b665([0x6f,0x6e])](_0x54b665([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x57c950,_0x51602a)=>{if(_0x51602a[0x0]!=_0x1b2801)return _0x39929d(_0x54b665([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x51602a[0x1]={..._0x51602a[0x1],[_0x54b665([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x536052};},{[_0x54b665([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x54b665([0x68,0x69,0x67,0x68])}),_0x4bb3d6[_0x54b665([0x6f,0x6e])](_0x54b665([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x2fd79d=>{_0x1dbec4(_0x2fd79d[_0x54b665([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x4bec2b=!0x0,_0xe36525(_0x2fd79d[_0x54b665([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x54b665([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x54b665([0x6c,0x6f,0x77])}),_0x22dc56[_0x54b665([0x74,0x68,0x65,0x6e])](()=>{_0x4bec2b||_0x39929d(_0x54b665([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x229213(){return _0x4bb3d6[_0x54b665([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x54b665([0x76,0x69,0x65,0x77])][_0x54b665([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x54b665([0x61,0x75,0x74,0x6f]);}function _0xfea558(){_0x4bb3d6[_0x54b665([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x54b665([0x76,0x69,0x65,0x77])][_0x54b665([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x54b665([0x61,0x75,0x74,0x6f]);}}function _0x362221(_0x34c017){const _0x5178f8=[new window[(_0x54b665([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2f4126=>setTimeout(_0x2f4126,0x2a4ed2d4^_0x29a001)),_0x22dc56[_0x54b665([0x74,0x68,0x65,0x6e])](()=>new window[(_0x54b665([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x198fd4=>{const _0x553fde=0x2a47ec1f^_0x29a001,_0x1fc401=_0x296c3b[_0x54b665([0x5f,0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x73])];function _0x51970c(){_0x1fc401[_0x54b665([0x6c,0x65,0x6e,0x67,0x74,0x68])]>=_0x553fde&&_0x198fd4();}_0x51970c(),_0x1fc401[_0x54b665([0x6f,0x6e])](_0x54b665([0x61,0x64,0x64]),_0x51970c);})),new window[(_0x54b665([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x42474a=>{function _0x26a43f(){for(const _0x1372ee in window)if(window[_0x54b665([0x4e,0x75,0x6d,0x62,0x65,0x72])]['isNaN'](window[_0x54b665([0x4e,0x75,0x6d,0x62,0x65,0x72])](_0x1372ee))&&window[_0x1372ee]==_0xe31ae5)return _0x42474a();_0x4bb3d6[_0x54b665([0x73,0x74,0x61,0x74,0x65])]!=_0x54b665([0x64,0x65,0x73,0x74,0x72,0x6f,0x79,0x65,0x64])&&window[_0x54b665([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x26a43f,0x2a47ff90^_0x29a001);}_0x115ebb(_0x54b665([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))&&_0x26a43f();})];return window[_0x54b665([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x54b665([0x72,0x61,0x63,0x65])](_0x5178f8)[_0x54b665([0x74,0x68,0x65,0x6e])](()=>_0x34c017);}async function _0x55bb31(){if(await _0x22dc56,_0x115ebb(_0x54b665([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))){const _0x33040c=_0x296c3b[_0x54b665([0x67,0x65,0x74,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])](0x0),_0x58be91=_0x296c3b[_0x54b665([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])](_0x33040c[_0x54b665([0x69,0x64])]),_0x5131dd=_0x2374cc(_0x54b665([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]));return await _0x5131dd[_0x54b665([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])](_0x33040c['id'],_0x58be91?_0x58be91['id']:null,!0x0),_0x5131dd[_0x54b665([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x54b665([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x5131dd[_0x54b665([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x5131dd[_0x54b665([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])]=_0x464578,void(_0x5131dd[_0x54b665([0x5f,0x67,0x65,0x74,0x44,0x69,0x66,0x66])]=_0x464578);}if(_0x115ebb(_0x54b665([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]))){const _0x49744b=_0x2374cc(_0x54b665([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]));_0x49744b[_0x54b665([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x54b665([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x49744b[_0x54b665([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x49744b[_0x54b665([0x75,0x70,0x64,0x61,0x74,0x65])]=_0x464578,_0x49744b[_0x54b665([0x73,0x61,0x76,0x65,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])]=_0x464578;}_0x4bb3d6[_0x54b665([0x6d,0x6f,0x64,0x65,0x6c])][_0x54b665([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x464578,_0x4bb3d6[_0x54b665([0x6d,0x6f,0x64,0x65,0x6c])][_0x54b665([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x464578,_0x4bb3d6[_0x54b665([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x54b665([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x29a90a(){return _0x115ebb(_0x54b665([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x2374cc(_0x54b665([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x54b665([0x73,0x74,0x61,0x74,0x65])]==_0x54b665([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x20f9b2(){return _0x115ebb(_0x54b665([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 _0x5885fa(){return _0x115ebb(_0x54b665([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x5322b3(_0x99439d){const _0xd67af6=_0x2f62c1();_0x4bb3d6[_0xd67af6]=_0x54b665([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])+_0x99439d,_0x99439d[_0x54b665([0x65,0x6e,0x64,0x73,0x57,0x69,0x74,0x68])](_0x54b665([0x4c,0x69,0x6d,0x69,0x74]))&&(window[_0x2f62c1()]=_0xe31ae5),_0x99439d!=_0x54b665([0x56,0x61,0x6c,0x69,0x64])&&_0x55bb31();}function _0x2f62c1(){const _0x5540d8=window[_0x54b665([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x54b665([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x54b665([0x6e,0x6f,0x77])]())[_0x54b665([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x54b665([0x2e]),'');let _0x213699=_0x54b665([0x63]);for(let _0x522a29=0x0;_0x522a29<_0x5540d8[_0x54b665([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x522a29+=0x2){let _0x5e04b6=window[_0x54b665([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5540d8[_0x54b665([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x522a29,_0x522a29+0x2));_0x5e04b6>=_0x3ddc36[_0x54b665([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x5e04b6-=_0x3ddc36[_0x54b665([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x213699+=_0x3ddc36[_0x5e04b6];}return _0x213699;}function _0x573f60(){const _0x1f1994=_0x5df3a6[_0x54b665([0x73,0x70,0x6c,0x69,0x74])](_0x54b665([0x2e]));if(0x3!=_0x1f1994[_0x54b665([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x34f8bf(_0x1f1994[0x1]);function _0x34f8bf(_0x5cb2ab){const _0x4d8956=_0x56f962(_0x5cb2ab);return _0x4d8956&&_0xe5dc46()?_0x4d8956:null;function _0xe5dc46(){const _0x250508=_0x4d8956[_0x54b665([0x6a,0x74,0x69])],_0x4ec032=window[_0x54b665([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x250508[_0x54b665([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x250508[_0x54b665([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x109daa={..._0x4d8956,[_0x54b665([0x6a,0x74,0x69])]:_0x250508[_0x54b665([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x250508[_0x54b665([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x109daa[_0x54b665([0x76,0x63])],_0x421226(_0x109daa)==_0x4ec032;}}}async function _0x4ceb60(){let _0x3e6164=!0x0;try{const _0x3b737e=_0x5df3a6[_0x54b665([0x73,0x70,0x6c,0x69,0x74])](_0x54b665([0x2e])),[_0x32f572,_0x5df74d,_0x40f642]=_0x3b737e;return _0x552024(_0x32f572),await _0x10d571(_0x32f572,_0x5df74d,_0x40f642),_0x3e6164;}catch(_0x3b643d){return!0x1;}function _0x552024(_0x4012cd){const _0x121faa=_0x56f962(_0x4012cd);_0x121faa&&_0x121faa[_0x54b665([0x61,0x6c,0x67])]==_0x54b665([0x45,0x53,0x32,0x35,0x36])||(_0x3e6164=!0x1);}async function _0x10d571(_0x24ecf0,_0x17501e,_0x163e31){const _0x5d15ea=window[_0x54b665([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x54b665([0x66,0x72,0x6f,0x6d])](_0xd29846(_0x163e31),_0x59d791=>_0x59d791[_0x54b665([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x48bdd3=new window[(_0x54b665([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x54b665([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x24ecf0+_0x54b665([0x2e])+_0x17501e),_0x113c00=window[_0x54b665([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x54b665([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x113c00)return;const _0x1d0c29=await _0x113c00[_0x54b665([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x54b665([0x6a,0x77,0x6b]),_0xd35c8a,{[_0x54b665([0x6e,0x61,0x6d,0x65])]:_0x54b665([0x45,0x43,0x44,0x53,0x41]),[_0x54b665([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x54b665([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x54b665([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x113c00[_0x54b665([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x54b665([0x6e,0x61,0x6d,0x65])]:_0x54b665([0x45,0x43,0x44,0x53,0x41]),[_0x54b665([0x68,0x61,0x73,0x68])]:{[_0x54b665([0x6e,0x61,0x6d,0x65])]:_0x54b665([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x1d0c29,_0x5d15ea,_0x48bdd3)||(_0x3e6164=!0x1);}}function _0x56f962(_0x222dff){return _0x222dff[_0x54b665([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x54b665([0x65,0x79]))?JSON[_0x54b665([0x70,0x61,0x72,0x73,0x65])](_0xd29846(_0x222dff)):null;}function _0xd29846(_0x3052fc){return window[_0x54b665([0x61,0x74,0x6f,0x62])](_0x3052fc[_0x54b665([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x54b665([0x2b]))[_0x54b665([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x54b665([0x2f])));}function _0x421226(_0x3b0a43){let _0x54382c=0x1505;function _0x239dc3(_0x40ad70){for(let _0x3c721a=0x0;_0x3c721a<_0x40ad70[_0x54b665([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3c721a++){const _0x2fdba9=_0x40ad70[_0x54b665([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x3c721a);_0x54382c=(_0x54382c<<0x5)+_0x54382c+_0x2fdba9,_0x54382c&=_0x54382c;}}function _0x2e4b0f(_0x5ae53e){Array[_0x54b665([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x5ae53e)?_0x5ae53e[_0x54b665([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x2e4b0f):_0x5ae53e&&typeof _0x5ae53e==_0x54b665([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x54b665([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x5ae53e)[_0x54b665([0x73,0x6f,0x72,0x74])]()[_0x54b665([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x3c8c4e,_0x16643f])=>{_0x239dc3(_0x3c8c4e),_0x2e4b0f(_0x16643f);}):_0x239dc3(window[_0x54b665([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x5ae53e));}return _0x2e4b0f(_0x3b0a43),_0x54382c>>>0x0;}function _0xd1397c(_0x37db5f){return _0x37db5f[_0x54b665([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x54b665([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x54b665([0x30]));}function _0x5c3fd0(_0x2773d8){return _0x2773d8[_0x54b665([0x73,0x70,0x6c,0x69,0x74])]('')[_0x54b665([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x54b665([0x6a,0x6f,0x69,0x6e])]('');}function _0x115ebb(_0x102644){return _0x4bb3d6[_0x54b665([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x54b665([0x68,0x61,0x73])](_0x102644);}function _0x2374cc(_0x4d22a5){return _0x4bb3d6[_0x54b665([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x54b665([0x67,0x65,0x74])](_0x4d22a5);}function _0x464578(){}function _0x54b665(_0x4df2e5){return _0x4df2e5['map'](_0x7ebd96=>String['fromCharCode'](_0x7ebd96))['join']('');}_0x5322b3(await _0x428985());}(this);}['createRevision'](_0xe3803a){const _0x35b536=this['editor']['plugins']['get']('Users');return new a({'id':_0xe3803a['id'],'name':_0xe3803a['name'],'creator':_0xe3803a['creatorId']?_0x35b536['getUser'](_0xe3803a['creatorId']):null,'diffData':_0xe3803a['diffData']||_0xe3803a['data'],'authors':_0xe3803a['authorsIds']['map'](_0x51d6fe=>_0x35b536['getUser'](_0x51d6fe)),'createdAt':new Date(_0xe3803a['createdAt']),'attributes':_0xe3803a['attributes'],'fromVersion':_0xe3803a['fromVersion'],'toVersion':_0xe3803a['toVersion']});}['addRevision'](_0x21e63d,_0x5475ca=0x0){this['_revisions']['add'](_0x21e63d,_0x5475ca);}['getRevision'](_0x423dba){return this['_revisions']['get'](_0x423dba);}['getRevisions'](_0x569b7e={'toJSON':!0x1}){const _0x237f5c=Array['from'](this['_revisions']);return _0x237f5c['reverse'](),_0x569b7e['toJSON']?_0x237f5c['map'](_0x36a64=>_0x36a64['toJSON']()):_0x237f5c;}['getIndex'](_0x5c9877){return this['_revisions']['getIndex'](_0x5c9877);}['getEarlierVisibleRevision'](_0x3c2131){const [,_0x324d66]=this['getRevisionsIterator'](_0x3c2131,{'direction':'earlier'});return _0x324d66;}['getLaterVisibleRevision'](_0x2e7bed){const [,_0x29abf1]=this['getRevisionsIterator'](_0x2e7bed,{'direction':'later'});return _0x29abf1;}['getRevisionsInDiff'](_0x3749ee){const _0x5763d8=[];for(const _0xcb7d83 of this['getRevisionsIterator'](_0x3749ee['newRevisionId']))if(_0x5763d8['push'](_0xcb7d83),_0xcb7d83['id']===_0x3749ee['oldRevisionId'])break;return _0x5763d8;}*['getRevisionsIterator'](_0x3dabff,{direction:_0x2c6bef='earlier',filter:_0x8defb=()=>!0x0}={}){const _0x2f10ae='earlier'===_0x2c6bef?0x1:-0x1;let _0x17fc16=this['_revisions']['get'](_0x3dabff),_0x5dba02=this['getIndex'](_0x17fc16);for(yield _0x17fc16;_0x17fc16;){if(_0x5dba02+=_0x2f10ae,_0x17fc16=this['getRevision'](_0x5dba02),!_0x17fc16)return;_0x8defb(_0x17fc16)&&(yield _0x17fc16);}}}function m(_0x2458eb,_0x27b7a,_0x214819){const t=_0x2458eb['t'];switch(_0x27b7a){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'},_0x214819);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x214819);case'Show\x20previous\x20change':return t('Show\x20previous\x20change');case'Show\x20next\x20change':return t('Show\x20next\x20change');case'EDIT_X_OF_Y_REVISIONS':return t({'string':'Edit','id':'EDIT_X_OF_Y_REVISIONS'});case'Total':return t('Total');case'Revision\x20creator':return t('Revision\x20creator');case'Revision\x20author':return t('Revision\x20author');case'Revision\x20name':return t('Revision\x20name');case'Save\x20current\x20revision':return t('Save\x20current\x20revision');case'Accept':return t('Accept');case'Save':return t('Save');case'Cancel':return t('Cancel');case'Name\x20of\x20the\x20revision':return t('Name\x20of\x20the\x20revision');case'optional':return t('optional');case'PENDING_ACTION_REVISION_HISTORY':return t({'string':'Unsaved\x20change\x20in\x20revision\x20history.','id':'PENDING_ACTION_REVISION_HISTORY'});case'The\x20revision\x20name\x20cannot\x20be\x20empty.':return t('The\x20revision\x20name\x20cannot\x20be\x20empty.');case'Enter\x20the\x20revision\x20name':return t('Enter\x20the\x20revision\x20name');default:return'';}}const P={'c':_0x15aabb,'a':_0x5e1a11,'e':_0x347cea,'r':_0xe7678,'u':_0x40ec03};class l extends _0x5a9002{['licenseKey'];['_licenseKeyCheckInterval'];['adapter'];['currentRevision'];['repository'];['_revisionDataBuilder'];['_source'];['_initialRevisionId'];['_bufferedUpdates'];['_pendingAction'];['_continueCurrentRevision'];['_startingVersion'];['_loadedStateData'];static get['pluginName'](){return'RevisionTracker';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x3a86de,j,_0x4fa6e0];}constructor(_0x1c4be0){super(_0x1c4be0),this['adapter']=null,this['currentRevision']=null,this['_revisionDataBuilder']=new V(this['editor']),this['_initialRevisionId']=this['editor']['config']['get']('collaboration.channelId')||'initial',this['_bufferedUpdates']=new Map(),this['_loadedStateData']=null;const _0x325bdb=_0x2bee71();this['_source']={'history':this['editor']['model']['document']['history'],'getLatestVersion':()=>Promise['resolve'](this['editor']['model']['document']['version']),'getCurrentRevisionId':()=>_0x325bdb},this['set']('isReady',!0x1),this['set']('isEnabled',!0x0),this['set']('_isPendingUpdate',!0x1),this['editor']['config']['define']('revisionHistory.resumeUnsavedRevision',!0x0),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'});}['init'](){this['repository']=this['editor']['plugins']['get']('RevisionsRepository'),this['_setConversion'](),this['editor']['data']['on']('ready',()=>{const _0x161d4c=this['repository']['getRevision'](0x0),_0x3fb8ae=_0x161d4c&&null===_0x161d4c['creator']?_0x161d4c:null;if(this['_continueCurrentRevision']=!!_0x3fb8ae&&this['editor']['config']['get']('revisionHistory.resumeUnsavedRevision'),this['editor']['plugins']['has']('RealTimeCollaborationClient')){const _0x5ef33f=this['_source']['getCurrentRevisionId'](),_0x39be28=this['repository']['getRevision'](_0x5ef33f);if(_0x39be28)this['_startingVersion']=_0x39be28['fromVersion'],this['_continueCurrentRevision']=!0x1;else{const _0x3729a9=this['_source']['history']['_operations']['find'](_0x45d3b0=>!_0x45d3b0['_isInit']),_0x178629=_0x3729a9?_0x3729a9['baseVersion']:this['_source']['history']['version'];_0x161d4c?(_0x161d4c['toVersion']<_0x178629&&_0x161d4c['_update']({'toVersion':_0x178629}),this['_continueCurrentRevision']?(this['_source']['getCurrentRevisionId']=()=>_0x3fb8ae['id'],this['_startingVersion']=_0x3fb8ae['fromVersion']):(this['_startingVersion']=_0x161d4c['toVersion'],this['_continueCurrentRevision']=!0x1)):(this['_startingVersion']=_0x178629,this['_continueCurrentRevision']=!0x1);}}else _0x3fb8ae&&(this['editor']['model']['document']['history']['version']=Math['max'](_0x3fb8ae['toVersion'],this['editor']['model']['document']['history']['version']),_0x3fb8ae['fromVersion']===_0x3fb8ae['toVersion']?(0x0!==_0x3fb8ae['fromVersion']&&(this['_source']['getCurrentRevisionId']=()=>_0x3fb8ae['id']),this['_continueCurrentRevision']=!0x1):this['_continueCurrentRevision']&&(this['_source']['getCurrentRevisionId']=()=>_0x3fb8ae['id'],this['_startingVersion']=_0x3fb8ae['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',_0x5f3f09=>!_0x5f3f09),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x2a1dd2=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x188046;for(const _0x2bbee4 in _0x2a1dd2){const _0x639b29=_0x2bbee4,_0x12332e=_0x2a1dd2[_0x639b29];if('revisionHistoryLicenseKeyValid'==_0x12332e||'revisionHistoryLicenseKeyInvalid'==_0x12332e||'revisionHistoryLicenseKeyExpired'==_0x12332e||'revisionHistoryLicenseKeyDomainLimit'==_0x12332e||'revisionHistoryLicenseKeyNotAllowed'==_0x12332e||'revisionHistoryLicenseKeyEvaluationLimit'==_0x12332e||'revisionHistoryLicenseKeyTrialLimit'==_0x12332e||'revisionHistoryLicenseKeyUsageLimit'==_0x12332e){delete _0x2a1dd2[_0x639b29],_0x188046=_0x12332e,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'revisionHistoryLicenseKeyInvalid'==_0x188046&&_0x2a1dd2['_showLicenseError']('invalid'),'revisionHistoryLicenseKeyExpired'==_0x188046&&_0x2a1dd2['_showLicenseError']('expired'),'revisionHistoryLicenseKeyDomainLimit'==_0x188046&&_0x2a1dd2['_showLicenseError']('domainLimit'),'revisionHistoryLicenseKeyNotAllowed'==_0x188046&&_0x2a1dd2['_showLicenseError']('featureNotAllowed','RevisionHistory'),'revisionHistoryLicenseKeyEvaluationLimit'==_0x188046&&_0x2a1dd2['_showLicenseError']('evaluationLimit'),'revisionHistoryLicenseKeyTrialLimit'==_0x188046&&_0x2a1dd2['_showLicenseError']('trialLimit'),'revisionHistoryLicenseKeyUsageLimit'==_0x188046&&_0x2a1dd2['_showLicenseError']('usageLimit');},0x3e8);}async['afterInit'](){if(this['repository']['length']>0x0){const _0x575f77=this['repository']['getRevision'](0x0),_0x1c9483=await this['getRevisionDocumentData'](_0x575f77),_0x3ccc6b=await this['getRevisionRootsAttributes'](_0x575f77);this['_replaceEditorDataWithRevisionData'](_0x1c9483,_0x3ccc6b);}}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['setSource'](_0x555985){this['_source']=_0x555985;}async['update'](){const _0x16043d=await this['_source']['getLatestVersion']();if(_0x16043d>this['currentRevision']['toVersion']){await this['_loadState']();const _0x341dc8=this['buildRevisionData']({'revision':this['currentRevision'],'to':_0x16043d});_0x341dc8['authors']=_0x341dc8['authorsIds']['map'](_0x29484d=>this['editor']['plugins']['get']('Users')['getUser'](_0x29484d)),this['currentRevision']['_update'](_0x341dc8);}}async['_loadState'](){this['_continueCurrentRevision']&&!this['_loadedStateData']&&(await this['_loadRevisionData'](this['currentRevision']),this['_revisionDataBuilder']['loadState'](this['currentRevision']),this['_loadedStateData']={'fromVersion':this['currentRevision']['fromVersion'],'authors':this['currentRevision']['authors']['slice']()});}async['saveRevision'](_0x547db9={},_0x4a927e=null){const _0x2db8d8=[];await this['_loadState'](),this['_continueCurrentRevision']=!0x1,_0x4a927e>this['currentRevision']['toVersion']&&(_0x4a927e=null),null===_0x4a927e&&(_0x4a927e=await this['_source']['getLatestVersion']());const _0x3f0bd3=this['_getFromVersion'](_0x4a927e),_0x3656c2=this['buildRevisionData']({'from':_0x3f0bd3,'to':_0x4a927e});if(this['currentRevision']['toVersion']<_0x4a927e){const _0xf26a8e=this['buildRevisionData']({'revision':this['currentRevision'],'from':_0x4a927e,'to':_0x4a927e});_0xf26a8e['authors']=[],_0xf26a8e['authorsIds']=[],_0xf26a8e['id']=this['currentRevision']['id'],this['currentRevision']['_update'](_0xf26a8e,!0x0),delete _0xf26a8e['authors'],_0x2db8d8['push'](_0xf26a8e);}_0x547db9['creatorId']=this['editor']['plugins']['get']('Users')['me']['id'],_0x547db9['name']=_0x547db9['name']||null,_0x547db9['id']=_0x547db9['id']||_0x2bee71(),_0x547db9={..._0x547db9,..._0x3656c2};const _0x10431f=this['addRevisionData'](_0x547db9);_0x2db8d8['push'](_0x547db9);const _0x2f90d3=this['repository']['getIndex'](_0x10431f);if(0x0!==_0x2f90d3){const _0x3b98d1=this['repository']['getRevision'](_0x2f90d3-0x1);if(_0x3b98d1['fromVersion']!==_0x4a927e){const _0x2d6905=this['_revisionDataBuilder']['getData'](_0x4a927e,_0x3b98d1['toVersion']),_0x59ca53={'id':_0x3b98d1['id'],'diffData':_0x2d6905['diffData'],'authorsIds':_0x2d6905['authorsIds'],'authors':_0x2d6905['authorsIds']['map'](_0x4f42dc=>this['editor']['plugins']['get']('Users')['getUser'](_0x4f42dc)),'fromVersion':_0x4a927e};_0x3b98d1===this['currentRevision']&&(_0x59ca53['createdAt']=new Date(_0x547db9['createdAt']['getTime']()+0xa)),_0x3b98d1['_update'](_0x59ca53,!0x0),delete _0x59ca53['authors'],_0x2db8d8['push'](_0x59ca53);}}if(this['adapter']){for(const _0x3997d5 of _0x2db8d8)this['_bufferUpdate'](_0x3997d5['id'],_0x3997d5,!0x0);this['sendBufferedUpdates']();}return _0x10431f;}['addRevisionData'](_0xf79576){const _0x23d107=this['repository']['createRevision'](_0xf79576);return this['adapter']&&_0x23d107['on']('_update',(_0x1e3ebd,_0x88d61d,_0xf63f0c)=>{_0xf63f0c||(this['_bufferUpdate'](_0x88d61d['id'],_0x88d61d,!0x0),this['sendBufferedUpdates']());}),this['repository']['addRevision'](_0x23d107,this['_findInsertionIndex'](_0x23d107)),_0x23d107;}async['getRevisionDocumentData'](_0x500551){await this['_loadRevisionData'](_0x500551);const _0x228c4c={};for(const _0x41ba90 in _0x500551['diffData']){if(_0x500551['diffData'][_0x41ba90]['attachChange']&&!_0x500551['diffData'][_0x41ba90]['attachChange']['isAttached'])continue;const _0x5e5e6b=this['_removeRevisionMarkers'](JSON['parse'](_0x500551['diffData'][_0x41ba90]['insertions'])),_0x5379e4=this['editor']['editing']['view']['document'],_0x54f6ae=new _0x23929d(_0x5379e4,_0x5e5e6b['map'](_0x1bf03f=>C(_0x1bf03f,this['editor'])));this['editor']['data']['processor']['useFillerType']('marked'),_0x228c4c[_0x41ba90]=this['editor']['data']['processor']['toData'](_0x54f6ae),this['editor']['data']['processor']['useFillerType']('default');}return _0x228c4c;}async['getRevisionRootsAttributes'](_0x189ded){await this['_loadRevisionData'](_0x189ded);const _0x259fcc={};for(const _0x7da8ff in _0x189ded['diffData'])_0x189ded['diffData'][_0x7da8ff]['attachChange']&&!_0x189ded['diffData'][_0x7da8ff]['attachChange']['isAttached']||(_0x259fcc[_0x7da8ff]=_0x189ded['diffData'][_0x7da8ff]['attributesAfter']||{});return _0x259fcc;}['sendBufferedUpdates'](){if(0x0===this['_bufferedUpdates']['size'])return;if(this['_isPendingUpdate'])return;let _0x53cf26=Array['from'](this['_bufferedUpdates']['values']());this['_bufferedUpdates']['clear']();for(let _0x3c0067=0x0;_0x3c0067<_0x53cf26['length'];_0x3c0067++){const _0x19af90=_0x53cf26[_0x3c0067];let _0x12773b=!0x1;for(const _0x44f705 of Object['keys'](_0x19af90))void 0x0===_0x19af90[_0x44f705]?delete _0x19af90[_0x44f705]:'id'!==_0x44f705&&(_0x12773b=!0x0);_0x12773b||(_0x53cf26[_0x3c0067]=null);}if(_0x53cf26=_0x53cf26['filter'](_0x57103d=>null!==_0x57103d),!_0x53cf26['length'])return;for(let _0x5a9787=0x0;_0x5a9787<_0x53cf26['length'];_0x5a9787++){const _0x4bdbac=_0x53cf26[_0x5a9787];void 0x0!==_0x4bdbac['fromVersion']&&void 0x0===_0x4bdbac['toVersion']&&(_0x4bdbac['toVersion']=this['repository']['getRevision'](_0x4bdbac['id'])['toVersion']),void 0x0!==_0x4bdbac['toVersion']&&void 0x0===_0x4bdbac['fromVersion']&&(_0x4bdbac['fromVersion']=this['repository']['getRevision'](_0x4bdbac['id'])['fromVersion']);}const _0x2a6bd6=this['editor']['config']['get']('collaboration.channelId');this['_isPendingUpdate']=!0x0,this['_addPendingAction'](),this['adapter']['updateRevisions'](_0x53cf26,_0x2a6bd6)['finally'](()=>{this['_isPendingUpdate']=!0x1;})['then'](_0x9e9449=>{if(_0x9e9449){for(const _0x5e5055 of _0x9e9449)this['setRevisionData']({'id':_0x5e5055['id'],'createdAt':_0x5e5055['createdAt']});}this['_removePendingAction'](),this['sendBufferedUpdates']();});}['_replaceEditorDataWithRevisionData'](_0x9c00c4,_0x2aa352){let _0x24efc5=this['editor']['config']['get']('initialData'),_0x7e6ce1=this['editor']['config']['get']('rootsAttributes');if(void 0x0===_0x24efc5){_0x24efc5={};for(const _0x4e2360 of this['editor']['model']['document']['getRootNames']())_0x24efc5[_0x4e2360]='';}if('string'==typeof _0x24efc5&&(_0x24efc5={'main':_0x24efc5}),void 0x0===_0x7e6ce1){_0x7e6ce1={};for(const _0x2c274e of this['editor']['model']['document']['getRootNames']())_0x7e6ce1[_0x2c274e]={};}let _0x57c7ed=!0x1;const _0x4b15ff=Object['keys'](_0x24efc5),_0x44846f=Object['keys'](_0x9c00c4);for(const _0x174692 of _0x4b15ff){if(_0x24efc5[_0x174692]!==_0x9c00c4[_0x174692]&&''!==_0x24efc5[_0x174692]['trim']()){_0x57c7ed=!0x0;break;}if(!_0xeea941(_0x7e6ce1[_0x174692],_0x2aa352[_0x174692])&&Object['keys'](_0x7e6ce1[_0x174692])['length']>0x0){_0x57c7ed=!0x0;break;}}_0x57c7ed||(_0x57c7ed=_0x44846f['some'](_0x4088bd=>!this['editor']['model']['document']['getRoot'](_0x4088bd))),_0x57c7ed&&_0x4df235('editor-initial-data-replaced-with-revision-data',{'editorData':_0x24efc5,'editorRootsAttributes':_0x7e6ce1,'revisionData':_0x9c00c4,'revisionRootsAttributes':_0x2aa352}),this['editor']['config']['set']('initialData',_0x9c00c4),this['editor']['config']['set']('rootsAttributes',_0x2aa352);}['_addPendingAction'](){if(!this['_pendingAction']){const _0x5cbe90=this['editor']['plugins']['get']('PendingActions');this['_pendingAction']=_0x5cbe90['add'](m(this['editor']['locale'],'PENDING_ACTION_REVISION_HISTORY'));}}['_removePendingAction'](){this['_pendingAction']&&(this['editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null);}['_findInsertionIndex'](_0x32d719){const _0x416eba=this['repository']['getRevisions']();_0x416eba['reverse']();let _0x26d0fa=0x0;for(;_0x26d0fa<_0x416eba['length'];){const _0x15b23b=_0x416eba[_0x26d0fa];if(_0x15b23b===this['currentRevision']){_0x26d0fa++;continue;}if(_0x15b23b['id']===this['_initialRevisionId'])break;const _0x2b2370=_0x32d719['toVersion']-_0x15b23b['toVersion']||_0x32d719['fromVersion']-_0x15b23b['fromVersion'];if(_0x2b2370>0x0)break;if(_0x2b2370<0x0)_0x26d0fa++;else{if(!_0x32d719['creator']&&_0x15b23b['creator'])break;if(_0x15b23b['creator']||!_0x32d719['creator']){if(_0x32d719['createdAt']>_0x15b23b['createdAt'])break;_0x26d0fa++;}else _0x26d0fa++;}}return _0x26d0fa;}['setRevisionData'](_0x44971e){const _0x23a720=this['repository']['getRevision'](_0x44971e['id']);if(_0x44971e['createdAt']&&(_0x44971e['createdAt']=new Date(_0x44971e['createdAt'])),_0x44971e['authorsIds']){const _0x102b23=this['editor']['plugins']['get']('Users');_0x44971e['authors']=_0x44971e['authorsIds']['map'](_0x5f4b28=>_0x102b23['getUser'](_0x5f4b28));}_0x23a720['_update'](_0x44971e,!0x0);}['buildRevisionData']({revision:_0xd779e9=null,from:_0x12afd1=null,to:_0x21e030=null}){_0x12afd1=null!==_0x12afd1?_0x12afd1:_0xd779e9['fromVersion'],_0x21e030=null!==_0x21e030?_0x21e030:_0xd779e9['toVersion'];const _0x251931=this['_revisionDataBuilder']['getData'](_0x12afd1,_0x21e030),_0x18662b={'diffData':_0x251931['diffData'],'authorsIds':_0x251931['authorsIds'],'fromVersion':_0x12afd1,'toVersion':_0x21e030};if(!_0xd779e9||_0x21e030!==_0xd779e9['toVersion']){const _0x2c03b4=_0x21e030-0x1,_0x1b01a4=this['_source']['history']['getOperation'](_0x2c03b4);_0x18662b['createdAt']=_0x1b01a4&&_0x1b01a4['createdAt']||new Date();}if(this['_loadedStateData']&&_0x12afd1===this['_loadedStateData']['fromVersion']){for(const _0x2f4312 of this['_loadedStateData']['authors'])_0x18662b['authorsIds']['includes'](_0x2f4312['id'])||_0x18662b['authorsIds']['push'](_0x2f4312['id']);}return _0x18662b;}['_loadRevisionData'](_0x3f40f5){if(!_0x3f40f5||_0x3f40f5['diffData'])return Promise['resolve']();{const _0x2f7844=this['editor']['config']['get']('collaboration.channelId');return this['adapter']['getRevision']({'channelId':_0x2f7844,'revisionId':_0x3f40f5['id']})['then'](_0xc333f1=>{_0x3f40f5['diffData']=_0xc333f1['diffData'];});}}['_bufferUpdate'](_0x4b1a0c,_0x554683,_0x359e13){if(this['_bufferedUpdates']['has'](_0x4b1a0c)){const _0x5e89b3=this['_bufferedUpdates']['get'](_0x4b1a0c);_0x554683=_0x359e13?{..._0x5e89b3,..._0x554683}:{..._0x554683,..._0x5e89b3};}this['_bufferedUpdates']['set'](_0x4b1a0c,_0x554683);}['_getFromVersion'](_0x58aa4f){const _0x1c74d3=this['repository']['getRevisions']();_0x1c74d3['reverse'](),_0x1c74d3['shift']();const _0x327e33=_0x1c74d3['find'](_0xffc87e=>_0xffc87e['toVersion']<=_0x58aa4f)['toVersion'];return _0x327e33<this['_startingVersion']?this['_startingVersion']:_0x327e33;}['_createInitialRevision'](_0x5c8bd5){const _0x571b08=this['repository']['getRevision'](this['repository']['length']-0x1);if(_0x571b08)this['_initialRevisionId']=_0x571b08['id'];else{const _0x2a61ad=!this['editor']['model']['document']['roots']['find'](_0x3a057b=>this['editor']['model']['hasContent'](_0x3a057b)),_0x21d9b4=this['editor']['plugins']['get']('Users')['me']['id'],_0x35c51f=m(this['editor']['locale'],_0x2a61ad?'Empty\x20document':'Initial\x20revision');this['_makeRevision']({'from':_0x5c8bd5,'to':_0x5c8bd5,'id':this['_initialRevisionId'],'name':_0x35c51f,'creatorId':_0x21d9b4});}}['_createCurrentRevision'](_0x3d6f72){const _0x2454d8=this['_source']['getCurrentRevisionId']();this['currentRevision']=this['repository']['getRevision'](_0x2454d8),this['currentRevision']||(this['currentRevision']=this['_makeRevision']({'from':_0x3d6f72,'to':_0x3d6f72,'id':_0x2454d8,'name':'','creatorId':null}));}['_makeRevision']({name:_0x3e1c1c,from:_0x5b3390,to:_0x5f4d51,creatorId:_0x5af328,id:_0x4935e5}){const _0x1c2251=this['buildRevisionData']({'from':_0x5b3390,'to':_0x5f4d51});_0x1c2251['name']=_0x3e1c1c,_0x1c2251['creatorId']=_0x5af328,_0x1c2251['id']=_0x4935e5;const _0x38d597=this['addRevisionData'](_0x1c2251);return this['adapter']&&this['_bufferUpdate'](_0x1c2251['id'],_0x1c2251,!0x0),_0x38d597;}['_setConversion'](){this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'});}['_removeRevisionMarkers'](_0x4ef6c0){return(_0x4ef6c0=_0x4ef6c0['filter'](_0x461054=>!_0x461054['name']||'revision-start'!==_0x461054['name']&&'revision-end'!==_0x461054['name']))['forEach'](_0x5b159d=>{'string'!=typeof _0x5b159d&&(_0x5b159d['children']=this['_removeRevisionMarkers'](_0x5b159d['children']),_0x5b159d['attributes']=_0x5b159d['attributes']['filter'](_0x7c1159=>!_0x7c1159[0x0]['startsWith']('data-revision-')));}),_0x4ef6c0;}}function C(_0x206b8a,_0x39d6ea){const _0xbf950e=_0x39d6ea['editing']['view']['document'];if('string'==typeof _0x206b8a)return new _0x1f9b61(_0xbf950e,_0x206b8a);{const _0x3dbca4=_0x206b8a['children']['map'](_0x367f8b=>C(_0x367f8b,_0x39d6ea));return new(P[_0x206b8a['type']]||_0x55295d)(_0xbf950e,_0x206b8a['name'],_0x206b8a['attributes'],_0x3dbca4);}}class V{['editor'];['source'];['_savedMetaData'];['_lastFrom'];['_lastTo'];['_markers'];['_diffRoots'];['_diffRootsAttributes'];['_baseRoots'];['_baseRootsAttributes'];['_idsRoots'];['_baseIdsRoots'];['_touched'];['_touchedMarkers'];['_touchedRoots'];['_revisionId'];['_startingRevisionId'];constructor(_0x5651a6){this['editor']=_0x5651a6,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'](_0x4fa286){this['source']=_0x4fa286;const _0x39dc24=new Map(),_0x9793e9=new Map(),_0x37d4ed=this['editor']['model']['document']['roots']['map'](_0x3ced84=>_0x3ced84['rootName']);for(const _0x4989b0 of _0x37d4ed){const _0x182fa1=this['editor']['model']['document']['getRoot'](_0x4989b0),_0x38b8bd=T(_0x182fa1);_0x39dc24['set'](_0x4989b0,_0x38b8bd),_0x9793e9['set'](_0x4989b0,Object['fromEntries'](_0x182fa1['getAttributes']()));}const _0x49f102=Array['from'](this['editor']['model']['markers'])['map'](_0x1ca063=>[_0x1ca063['name'],_0x1ca063['getRange']()]),_0x26c49c=this['source']['version'];this['_saveMetaData'](_0x26c49c,_0x39dc24,_0x49f102,_0x9793e9),this['_startingRevisionId']=this['_revisionId'];const _0x12dc91=new Map(),_0x48e55a=new Map();for(const _0x3f10e1 of _0x37d4ed){const _0x2fc468=F(_0x3f10e1);_0x12dc91['set'](_0x3f10e1,_0x2fc468),_0x48e55a['set'](_0x3f10e1,{});}this['_saveMetaData'](Number['NEGATIVE_INFINITY'],_0x12dc91,[],_0x48e55a);}['getData'](_0x18c0a0,_0x22ccc5){if(this['_lastFrom']===_0x18c0a0&&this['_lastTo']<=_0x22ccc5)this['_savedMetaData']['size']>0x1&&this['_removeMetaData'](this['_lastTo']),this['_applyOperations'](this['_lastTo'],_0x22ccc5,!0x0);else{if(!this['_savedMetaData']['has'](_0x18c0a0)){const _0x1d0745=this['_getPreviousFrom'](_0x18c0a0);this['_calculateMetaData'](_0x1d0745,_0x18c0a0,!0x1);}this['_calculateMetaData'](_0x18c0a0,_0x22ccc5,!0x0);}return this['_lastFrom']=_0x18c0a0,this['_lastTo']=_0x22ccc5,this['_getState']();}['loadState'](_0x2422cb){this['_reset'](),this['_lastFrom']=_0x2422cb['fromVersion'],this['_lastTo']=_0x2422cb['toVersion'];for(const _0x3b6db1 in _0x2422cb['diffData']){const _0x278279=_0x2422cb['diffData'][_0x3b6db1]['attachChange'],_0x142b89=_0x4fe291(_0x2422cb['diffData'][_0x3b6db1]['attributesBefore'])||{},_0x7b2a78=this['_makeModelFromViewString'](_0x2422cb['diffData'][_0x3b6db1]['deletions']);_0x7b2a78['rootName']=_0x3b6db1,_0x7b2a78['_isAttached']=!_0x278279||!_0x278279['isAttached'],_0x7b2a78['isAttached']=()=>_0x7b2a78['_isAttached'],this['_baseRoots']['set'](_0x3b6db1,_0x7b2a78),this['_baseRootsAttributes']['set'](_0x3b6db1,_0x142b89),_0x278279&&this['_touchedRoots']['set'](_0x3b6db1,_0x278279);const _0xb0ad3f=this['_makeIdsRoot'](_0x7b2a78);this['_baseIdsRoots']['set'](_0x3b6db1,_0xb0ad3f);for(const [_0x500181,_0x3ece50]of _0x7b2a78['markers']){if(!_0x500181['startsWith']('revision:'))continue;const _0x31581e=_0x500181['split'](':')[0x2];for(const _0x5be3eb of _0x3ece50['getWalker']({'singleCharacters':!0x0})){const _0xd1ea42=this['_getVidAttributeName'](_0x5be3eb),_0x383e4e='elementEnd'==_0x5be3eb['type']?_0x5be3eb['previousPosition']['path']['slice'](0x0,-0x1):_0x5be3eb['previousPosition']['path'],_0x4e68e4=_0xb0ad3f['getNodeByPath'](_0x383e4e)['getAttribute'](_0xd1ea42);this['_touched']['set'](_0x4e68e4,{'userId':_0x31581e});}}}this['_startingRevisionId']=this['_revisionId'];const _0xba71c7=[...Array(this['_revisionId'])['keys']()]['slice'](0x1)['filter'](_0x214ad2=>!this['_touched']['has'](_0x214ad2));let _0x2f5b8d=0x0;const _0x45daa3=new Map();for(const _0x5af8ab in _0x2422cb['diffData']){const _0x169dce=_0x2422cb['diffData'][_0x5af8ab]['attachChange'],_0x30d595=_0x4fe291(_0x2422cb['diffData'][_0x5af8ab]['attributesAfter'])||{},_0x48397a=this['_makeModelFromViewString'](_0x2422cb['diffData'][_0x5af8ab]['insertions']);_0x48397a['rootName']=_0x5af8ab,_0x48397a['_isAttached']=!_0x169dce||_0x169dce['isAttached'],_0x48397a['isAttached']=()=>_0x48397a['_isAttached'],this['_diffRoots']['set'](_0x5af8ab,_0x48397a),this['_diffRootsAttributes']['set'](_0x5af8ab,_0x30d595);const _0xc699d3=this['_makeIdsRoot'](_0x48397a,Number['NEGATIVE_INFINITY']);this['_idsRoots']['set'](_0x5af8ab,_0xc699d3),_0x45daa3['set'](_0x5af8ab,_0x48397a['isAttached']()?_0x30d595:{});for(const [_0x578e78,_0x29bfb5]of _0x48397a['markers']){if(!_0x578e78['startsWith']('revision:'))continue;const _0x4f213b=_0x578e78['split'](':')[0x2];for(const _0x2c3693 of _0x29bfb5['getWalker']({'singleCharacters':!0x0})){const _0x5173c7=this['_getVidAttributeName'](_0x2c3693),_0x2fbf0e=this['_revisionId']++,_0x43d389='elementEnd'==_0x2c3693['type']?_0x2c3693['previousPosition']['path']['slice'](0x0,-0x1):_0x2c3693['previousPosition']['path'];_0xc699d3['getNodeByPath'](_0x43d389)['_setAttribute'](_0x5173c7,_0x2fbf0e),this['_touched']['set'](_0x2fbf0e,{'userId':_0x4f213b});}}for(const _0x1f0daa of this['editor']['model']['createRangeIn'](_0x48397a)['getWalker']({'singleCharacters':!0x0})){const _0x3d6617=this['_getVidAttributeName'](_0x1f0daa),_0x147e84='elementEnd'==_0x1f0daa['type']?_0x1f0daa['previousPosition']['path']['slice'](0x0,-0x1):_0x1f0daa['previousPosition']['path'],_0x4d3eb8=_0xc699d3['getNodeByPath'](_0x147e84);_0x4d3eb8['getAttribute'](_0x3d6617)>0x0||_0x4d3eb8['_setAttribute'](_0x3d6617,_0xba71c7[_0x2f5b8d++]);}for(const [_0x444ad6,_0x20f260]of _0x48397a['markers'])_0x444ad6['startsWith']('revision:')||this['_markers']['set'](_0x444ad6,_0x20f260);}const _0x258b53=F('$graveyard');this['_baseRoots']['set']('$graveyard',_0x258b53),this['_baseIdsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x258b53,0x1));const _0x26b307=F('$graveyard');this['_diffRoots']['set']('$graveyard',_0x26b307),this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x26b307,0x1));const _0x51d51d=Array['from'](this['_diffRoots'])['map'](([_0x22794a,_0xe42d54])=>[_0x22794a,T(_0xe42d54)]);this['_saveMetaData'](this['_lastTo'],_0x51d51d,this['_markers'],_0x45daa3);}['_makeModelFromViewString'](_0x557fa6){const _0x3e76a0=JSON['parse'](_0x557fa6),_0x38e187=this['editor']['editing']['view']['document'],_0x53b85f=new _0x23929d(_0x38e187,_0x3e76a0['map'](_0x2e63f7=>C(_0x2e63f7,this['editor'])));return this['editor']['data']['toModel'](_0x53b85f);}['_saveMetaData'](_0xde4eaf,_0x2d9529,_0x4e4d44,_0x4cdff2){const _0x3925cf=new Map(_0x2d9529),_0x5d6be9=new Map(_0x4fe291(_0x4cdff2)),_0x183db6=new Map();for(const [_0xdeb9d1,_0xfae77b]of _0x4e4d44)_0x183db6['set'](_0xdeb9d1,{'start':_0xfae77b['start']['clone'](),'end':_0xfae77b['end']['clone'](),'rootName':_0xfae77b['root']['rootName']});this['_savedMetaData']['set'](_0xde4eaf,{'roots':_0x3925cf,'markers':_0x183db6,'rootsAttributes':_0x5d6be9});}['_removeMetaData'](_0x448e40){this['_savedMetaData']['delete'](_0x448e40);}['reInit'](){this['_reset'](),this['_lastFrom']=-0x1,this['_lastTo']=-0x1,this['_savedMetaData']['clear'](),this['init'](this['source']);}['_reset'](){this['_touched']['clear'](),this['_touchedMarkers']['clear'](),this['_touchedRoots']['clear'](),this['_diffRoots']['clear'](),this['_diffRootsAttributes']['clear'](),this['_baseRoots']['clear'](),this['_baseRootsAttributes']['clear'](),this['_idsRoots']['clear'](),this['_baseIdsRoots']['clear'](),this['_markers']['clear'](),this['_revisionId']=0x1,this['_startingRevisionId']=this['_revisionId'];}['_makeIdsRoot'](_0x502646,_0x849678=null){let _0xac08af=null;_0x502646['is']('documentFragment')||(_0xac08af=new ft(_0x502646['name'],{'vid_start':null===_0x849678?this['_revisionId']++:_0x849678++}));const _0x1961d2=[];for(const _0x86a1da of _0x502646['getChildren']())if(_0x86a1da['is']('element')){_0x1961d2['push'](this['_makeIdsRoot'](_0x86a1da,_0x849678));const _0x120041=_0x1961d2[_0x1961d2['length']-0x1];null!==_0x849678&&(_0x849678=_0x120041['is']('element','$text')?_0x120041['getAttribute']('vid')+0x1:_0x120041['getAttribute']('vid_end')+0x1);}else{for(let _0x38137a=0x0;_0x38137a<_0x86a1da['offsetSize'];_0x38137a++)_0x1961d2['push'](new ft('$text',{'vid':null===_0x849678?this['_revisionId']++:_0x849678++}));}if(_0x502646['is']('documentFragment')){const _0x1153bc=F(_0x502646['rootName']);return _0x1153bc['_insertChild'](0x0,_0x1961d2),_0x1153bc;}return _0xac08af['_setAttribute']('vid_end',null===_0x849678?this['_revisionId']++:_0x849678++),_0xac08af['_insertChild'](0x0,_0x1961d2),_0xac08af;}['_calculateMetaData'](_0x532eb5,_0x163953,_0xdbbf10){this['_reset']();const {roots:_0x5ac9df,markers:_0x9476fb,rootsAttributes:_0x1d5e2a}=this['_savedMetaData']['get'](_0x532eb5);this['_baseRoots']=new Map(_0x5ac9df),this['_baseRootsAttributes']=new Map(_0x4fe291(_0x1d5e2a));for(const [_0x27ceee,_0x178a32]of this['_baseRoots'])if('$graveyard'!==_0x27ceee&&(this['_diffRoots']['set'](_0x27ceee,T(_0x178a32)),this['_diffRootsAttributes']=new Map(_0x4fe291(_0x1d5e2a)),_0xdbbf10)){const _0x31c589=this['_revisionId'];this['_idsRoots']['set'](_0x27ceee,this['_makeIdsRoot'](_0x178a32)),this['_baseIdsRoots']['set'](_0x27ceee,this['_makeIdsRoot'](_0x178a32,_0x31c589));}this['_startingRevisionId']=this['_revisionId'],this['_diffRoots']['set']('$graveyard',T(this['_baseRoots']['get']('$graveyard'))),_0xdbbf10&&this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](this['_baseRoots']['get']('$graveyard')));for(const [_0x4fdf70,_0x5b247f]of _0x9476fb){const _0x80c443=this['_baseRoots']['get'](_0x5b247f['rootName']),_0x1d5184=this['_diffRoots']['get'](_0x5b247f['rootName']),_0x306787=new vt(this['_fixPosition'](_0x5b247f['start'],_0x80c443),this['_fixPosition'](_0x5b247f['end'],_0x80c443)),_0x41dc28=this['_fixRange'](_0x306787,_0x1d5184);_0x80c443['markers']['set'](_0x4fdf70,_0x306787),this['_markers']['set'](_0x4fdf70,_0x41dc28);}this['_applyOperations'](_0x532eb5,_0x163953,_0xdbbf10);}['_applyOperations'](_0x2f11fe,_0x477f47,_0x3401b2){for(const _0xa2a2e8 of this['source']['getOperations'](_0x2f11fe,_0x477f47))this['_handleOperation'](_0xa2a2e8,_0x3401b2);for(const _0x4c089a of this['_diffRoots']['values']())_0x4c089a['markers']['clear']();for(const [_0x2b6748,_0x2b7150]of this['_markers']){this['_diffRoots']['get'](_0x2b7150['root']['rootName'])['markers']['set'](_0x2b6748,_0x2b7150['clone']());}const _0x479c16=new Map(),_0x3b0ba8=new Map();for(const [_0x3cada5,_0x246430]of this['_diffRoots'])_0x479c16['set'](_0x3cada5,T(_0x246430)),_0x3b0ba8['set'](_0x3cada5,this['_diffRootsAttributes']['get'](_0x3cada5));this['_saveMetaData'](_0x477f47,_0x479c16,this['_markers'],_0x3b0ba8);}['_getPreviousFrom'](_0x13a5f2){const _0xa368e0=Array['from'](this['_savedMetaData']['keys']());_0xa368e0['sort']((_0x166453,_0x4f4b30)=>_0x166453-_0x4f4b30),_0xa368e0['reverse']();for(const _0xe15c5e of _0xa368e0)if(_0xe15c5e<_0x13a5f2)return _0xe15c5e;return Number['NEGATIVE_INFINITY'];}['_copyMarkers'](_0x18af61,_0x13c8ff){const _0x2caff6=Array['from'](_0x13c8ff['markers'])['map'](([_0x2aef48,_0x294f6d])=>[_0x2aef48,this['_fixRange'](_0x294f6d,_0x18af61)]);_0x18af61['markers']=new Map(_0x2caff6);}['_transformMarkers'](_0x1504eb){for(const _0x243c78 of this['_markers']['values']()){const _0xb0d6e2=_0x243c78['getTransformedByOperation'](_0x1504eb),_0x3a1644=vt['_createFromRanges'](_0xb0d6e2);_0x243c78['start']=_0x3a1644['start'],_0x243c78['end']=_0x3a1644['end'];}}['_handleOperation'](_0x2d43cd,_0x4b97d9){if('addRoot'!=_0x2d43cd['type']&&'detachRoot'!=_0x2d43cd['type']){if('insert'==_0x2d43cd['type']){const _0xae89e7=_0x2d43cd['position']['root']['rootName'];this['_diffRoots']['has'](_0xae89e7)||(this['_diffRoots']['set'](_0xae89e7,F(_0xae89e7,!0x0)),this['_diffRootsAttributes']['set'](_0xae89e7,{}),_0x4b97d9&&this['_idsRoots']['set'](_0xae89e7,F(_0xae89e7,!0x0)));}else{if('addRootAttribute'==_0x2d43cd['type']||'removeRootAttribute'==_0x2d43cd['type']||'changeRootAttribute'==_0x2d43cd['type'])return void this['_handleRootAttributeOperation'](_0x2d43cd);'marker'==_0x2d43cd['type']&&this['_handleMarkerOperation'](_0x2d43cd);}if('marker'!==_0x2d43cd['type']){const _0x2cfd53=this['_cloneOperation'](_0x2d43cd,this['_diffRoots']);_0x2cfd53['_execute'](),this['_transformMarkers'](_0x2cfd53);}if(_0x4b97d9)switch(_0x2d43cd['type']){case'insert':this['_handleInsertOperation'](_0x2d43cd);break;case'move':case'remove':case'reinsert':this['_handleMoveOperation'](_0x2d43cd);break;case'merge':this['_handleMergeOperation'](_0x2d43cd);break;case'split':this['_handleSplitOperation'](_0x2d43cd);}}else this['_handleRootOperation'](_0x2d43cd,_0x4b97d9);}['_cloneOperation'](_0x269d47,_0x3098a3){const _0x16b4bf=_0x269d47['clone']();return _0x16b4bf['_authorId']=_0x269d47['_authorId'],this['_fixOperation'](_0x16b4bf,_0x3098a3),_0x16b4bf;}['_getBaseVids'](_0x9f8993){return _0x9f8993['map'](_0x2a99e1=>{const _0x568509=this['_getVidAttributeName'](_0x2a99e1);return Number(_0x2a99e1['item']['getAttribute'](_0x568509));});}['_generateTape'](_0x205ae7,_0x11cf12){if(_0x205ae7['is']('element','$text'))_0x11cf12['push']({'item':_0x205ae7,'type':'text'});else{_0x205ae7['is']('element')&&_0x11cf12['push']({'item':_0x205ae7,'type':'elementStart'});for(const _0xf98b9 of _0x205ae7['getChildren']())this['_generateTape'](_0xf98b9,_0x11cf12);_0x205ae7['is']('element')&&_0x11cf12['push']({'item':_0x205ae7,'type':'elementEnd'});}return _0x11cf12;}['_getState'](){const _0x52c6e4=new Map(this['_touched']),_0x54dea5=new Map(_0x52c6e4),_0x34ef40=new Map(),_0x31113b={'insertions':{},'deletions':{}},_0x25bd32={'insertions':{},'deletions':{}},_0x837c1=new Map(),_0x12b98a=new Set([...this['_baseRoots']['keys'](),...this['_diffRoots']['keys']()]);_0x12b98a['delete']('$graveyard');for(const _0xf8c92d of _0x12b98a){const _0xecaa08=this['_diffRoots']['get'](_0xf8c92d)||F(_0xf8c92d,!0x1),_0x197697=this['_baseRoots']['get'](_0xf8c92d)||F(_0xf8c92d,!0x1);_0xecaa08['isAttached']()||_0x197697['isAttached']()?(_0x31113b['insertions'][_0xf8c92d]=T(_0xecaa08),_0x31113b['deletions'][_0xf8c92d]=T(_0x197697),this['_copyMarkers'](_0x31113b['deletions'][_0xf8c92d],_0x197697),this['_copyMarkers'](_0x31113b['insertions'][_0xf8c92d],_0xecaa08),_0x25bd32['insertions'][_0xf8c92d]=this['_generateTape'](this['_idsRoots']['get'](_0xf8c92d),[]),_0x25bd32['deletions'][_0xf8c92d]=this['_generateTape'](this['_baseIdsRoots']['get'](_0xf8c92d)||F(_0xf8c92d,!0x1),[])):_0x12b98a['delete'](_0xf8c92d);}for(const _0x4ac4c7 of _0x12b98a){const _0x1003ce=_0x25bd32['insertions'][_0x4ac4c7];for(const _0x1eacef of _0x1003ce){const _0x29fb09=this['_getVidAttributeName'](_0x1eacef),_0x4fd5a4=_0x1eacef['item']['getAttribute'](_0x29fb09);_0x54dea5['delete'](_0x4fd5a4),_0x4fd5a4>=this['_startingRevisionId']&&_0x34ef40['set'](_0x4fd5a4,_0x52c6e4['get'](_0x4fd5a4));}}for(const _0x45c257 of _0x12b98a){const _0x4f0c5b=_0x25bd32['insertions'][_0x45c257],_0x4500d2=this['_getBaseVids'](_0x25bd32['deletions'][_0x45c257]);let _0x3c4328=0x0;for(const _0x2f97ad of _0x4f0c5b){const _0x15c3b8=this['_getVidAttributeName'](_0x2f97ad),_0x12f01e=_0x2f97ad['item']['getAttribute'](_0x15c3b8);if(!_0x34ef40['has'](_0x12f01e)&&!_0x837c1['has'](_0x12f01e)){if(_0x54dea5['has'](_0x12f01e))_0x3c4328++;else{if(_0x12f01e!=_0x4500d2[_0x3c4328]){const _0x464ff0=_0x52c6e4['get'](_0x12f01e)||_0x52c6e4['get'](_0x4500d2[_0x3c4328]);for(;_0x12f01e!=_0x4500d2[_0x3c4328];)_0x54dea5['has'](_0x4500d2[_0x3c4328])||(_0x837c1['set'](_0x4500d2[_0x3c4328],_0x464ff0),_0x52c6e4['set'](_0x4500d2[_0x3c4328],_0x464ff0)),_0x3c4328++;}_0x3c4328++;}}}}for(const _0x3f71fc of _0x12b98a){const _0x5483b5=_0x25bd32['insertions'][_0x3f71fc];for(const _0x48f8a6 of _0x5483b5){const _0x4c1294=this['_getVidAttributeName'](_0x48f8a6),_0x3b35e5=_0x48f8a6['item']['getAttribute'](_0x4c1294);if(_0x837c1['has'](_0x3b35e5)){const _0x2cb72a=_0x837c1['get'](_0x3b35e5);_0x54dea5['has'](_0x3b35e5)||_0x54dea5['set'](_0x3b35e5,{..._0x2cb72a}),_0x34ef40['set'](_0x3b35e5,{..._0x2cb72a});}}}for(const _0x14c953 of _0x54dea5['keys']())_0x14c953>=this['_startingRevisionId']&&_0x54dea5['delete'](_0x14c953);const _0xba1f36=new Map();for(const _0x115d66 of _0x12b98a){let _0x1935b8=_0x25bd32['insertions'][_0x115d66];for(const _0x15619f of _0x1935b8)if(_0x15619f['item']['is']('element','tableCell')){const _0x226ef2=this['_getVidAttributeName'](_0x15619f),_0x181428=_0x15619f['item']['getAttribute'](_0x226ef2);if(_0x34ef40['has'](_0x181428)){const _0x7a79e2=_0x15619f['item']['parent']['parent']['getAttribute']('vid_start'),_0x4239d2=_0xba1f36['get'](_0x7a79e2)||new Set();_0x4239d2['add'](_0x34ef40['get'](_0x181428)['userId']),_0xba1f36['set'](_0x7a79e2,_0x4239d2);}}_0x1935b8=_0x25bd32['deletions'][_0x115d66];for(const _0x7efbf9 of _0x1935b8)if(_0x7efbf9['item']['is']('element','tableCell')){const _0x2bc1b8=this['_getVidAttributeName'](_0x7efbf9),_0x4bdc2a=_0x7efbf9['item']['getAttribute'](_0x2bc1b8);if(_0x54dea5['has'](_0x4bdc2a)){const _0x39793b=_0x7efbf9['item']['parent']['parent']['getAttribute']('vid_start'),_0x1a5560=_0xba1f36['get'](_0x39793b)||new Set();_0x1a5560['add'](_0x54dea5['get'](_0x4bdc2a)['userId']),_0xba1f36['set'](_0x39793b,_0x1a5560);}}for(const _0x9c233a of _0xba1f36['keys']())(_0x34ef40['has'](_0x9c233a)||_0x54dea5['has'](_0x9c233a))&&_0xba1f36['delete'](_0x9c233a);}for(const _0x4caf6c of _0x12b98a){const _0x17467c=_0x25bd32['insertions'][_0x4caf6c];let _0x2e27f4=null,_0xe87864=null;for(const _0x195767 of _0x17467c){const _0x1f208b=this['_getVidAttributeName'](_0x195767),_0x1e5f44=_0x195767['item']['getAttribute'](_0x1f208b),_0x2ce390=_0xba1f36['get'](_0x1e5f44);_0x2ce390&&'elementStart'==_0x195767['type']&&(_0x2e27f4=Array['from'](_0x2ce390)[0x0],_0xe87864=_0x195767['item']['getAttribute']('vid_end')),_0x2e27f4&&(_0x54dea5['set'](_0x1e5f44,{'userId':_0x2e27f4}),_0x34ef40['set'](_0x1e5f44,{'userId':_0x2e27f4})),_0x1e5f44==_0xe87864&&(_0x2e27f4=null,_0xe87864=null);}}const _0x3a2692={},_0x3dec91=new Set();for(const _0x585a93 of _0x12b98a){const _0x5be654=_0x31113b['deletions'][_0x585a93],_0x392b20=_0x31113b['insertions'][_0x585a93];for(const {userId:_0x562219}of this['_touchedMarkers']['values']())null!==_0x562219&&_0x3dec91['add'](_0x562219);for(const {userId:_0x40a8d1}of this['_touchedRoots']['values']())null!==_0x40a8d1&&_0x3dec91['add'](_0x40a8d1);this['_markChanges'](_0x392b20,_0x25bd32['insertions'][_0x585a93],_0x34ef40,'insertion',_0x3dec91),this['_markChanges'](_0x5be654,_0x25bd32['deletions'][_0x585a93],_0x54dea5,'deletion',_0x3dec91),_0x3a2692[_0x585a93]={'insertions':this['_prepareViewToSave'](_0x392b20),'deletions':this['_prepareViewToSave'](_0x5be654),'attachChange':this['_touchedRoots']['get'](_0x585a93)||null,'attributesBefore':_0x4fe291(this['_baseRootsAttributes']['get'](_0x585a93))||{},'attributesAfter':_0x4fe291(this['_diffRootsAttributes']['get'](_0x585a93))};}return{'diffData':_0x3a2692,'authorsIds':Array['from'](_0x3dec91)};}['_processRootBeforeSave'](_0x79f8b9){for(const [,_0x36dbc7]of _0x79f8b9['markers']){const _0x5c7f66=_0x36dbc7['start']['getAncestors']()['filter'](_0x19886e=>'tableCell'==_0x19886e['name']);for(const _0x153df7 of _0x5c7f66)0x1==_0x153df7['childCount']&&_0x153df7['getChild'](0x0)['is']('element','paragraph')&&_0x153df7['getChild'](0x0)['_setAttribute']('keepParagraph',!0x0);}}['_prepareViewToSave'](_0x13bb06){this['_processRootBeforeSave'](_0x13bb06);const _0x575466=this['editor']['data']['toView'](_0x13bb06,{}),_0x188370=Array['from'](_0x575466['getChildren']())['map'](_0x4d5a63=>this['_getViewJson'](_0x4d5a63));return JSON['stringify'](_0x188370);}['_getViewJson'](_0x2c9133){if(_0x2c9133['is']('$text'))return _0x2c9133['data'];{const _0xf50099=_0x2c9133;return{'type':Object['keys'](P)['find'](_0x54e463=>_0x2c9133 instanceof P[_0x54e463]),'name':_0xf50099['name'],'attributes':Array['from'](_0xf50099['getAttributes']()),'children':Array['from'](_0xf50099['getChildren']())['map'](_0x51db28=>this['_getViewJson'](_0x51db28))};}}['_markChanges'](_0xffed73,_0x477baf,_0x3e4770,_0x3a058d,_0x55d3a3){let _0x1458d6=null,_0x3d3488=null,_0x1e6e89=0x0;const _0x275a98=this['editor']['model'];for(let _0x2eb569=0x0;_0x2eb569<_0x477baf['length'];_0x2eb569++){const _0x3ca1a9=this['_getVidAttributeName'](_0x477baf[_0x2eb569]),_0x46794b=_0x477baf[_0x2eb569]['item']['getAttribute'](_0x3ca1a9),_0x2f9f36=_0x3e4770['get'](_0x46794b),_0x4c054e=_0x2eb569==_0x477baf['length']-0x1;(!_0x1458d6&&_0x2f9f36&&(_0x1458d6=_0x2f9f36,_0x3d3488=_0x477baf[_0x2eb569]),_0x1458d6&&(!_0x2f9f36||_0x2f9f36['userId']!=_0x1458d6['userId']))&&(_0x1a33fc(_0x2f9f36,B(_0x3d3488,_0xffed73,_0x275a98),B(_0x477baf[_0x2eb569],_0xffed73,_0x275a98)),_0x1458d6=_0x2f9f36||null,_0x3d3488=_0x2f9f36?_0x477baf[_0x2eb569]:null),_0x1458d6&&_0x4c054e&&_0x1a33fc(_0x2f9f36,B(_0x3d3488,_0xffed73,_0x275a98),J(_0x477baf[_0x2eb569],_0xffed73,_0x275a98));}function _0x1a33fc(_0x5f5299,_0x3c5a95,_0xc47947){const _0x3575b4=_0x1458d6['userId'],_0x16bfcf='revision:'+_0x3a058d+':'+_0x3575b4+':'+_0x1e6e89++,_0x25d90a=_0x275a98['createRange'](_0x3c5a95,_0xc47947);_0xffed73['markers']['set'](_0x16bfcf,_0x25d90a),null!==_0x3575b4&&_0x55d3a3['add'](_0x3575b4);}}['_getVidAttributeName'](_0x1e4fb9){switch(_0x1e4fb9['type']){case'elementStart':return'vid_start';case'elementEnd':return'vid_end';default:return'vid';}}['_fixOperation'](_0x476270,_0x1ef67e){_0x476270['baseVersion']=null;for(const _0x424bdc in _0x476270){const _0x400ea8=_0x476270[_0x424bdc];if(_0x400ea8 instanceof gt){const _0x542274=_0x1ef67e['get'](_0x400ea8['root']['rootName']);_0x476270[_0x424bdc]=this['_fixPosition'](_0x400ea8,_0x542274);}if(_0x400ea8 instanceof vt){const _0x4d19b5=_0x1ef67e['get'](_0x400ea8['root']['rootName']);_0x476270[_0x424bdc]=this['_fixRange'](_0x400ea8,_0x4d19b5);}'root'===_0x424bdc&&(_0x476270['root']=_0x1ef67e['get'](_0x476270['root']['rootName']));}}['_fixRange'](_0xfbb316,_0x4605a1){return this['editor']['model']['createRange'](this['_fixPosition'](_0xfbb316['start'],_0x4605a1),this['_fixPosition'](_0xfbb316['end'],_0x4605a1));}['_fixPosition'](_0x580618,_0x4f7153){return this['editor']['model']['createPositionFromPath'](_0x4f7153,_0x580618['path'],_0x580618['stickiness']);}['_handleInsertOperation'](_0x22851a){const _0x154752=this['_idsRoots']['get'](_0x22851a['position']['root']['rootName']),_0x1173bd=this['_fixPosition'](_0x22851a['position'],_0x154752),_0x4b3368=null===_0x22851a['_authorId']?null:_0x22851a['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x330a2b=_0x1173bd['parent'],_0x26a313=this['_revisionId'],_0xb12915=[];for(const _0x5be8e4 of _0x22851a['nodes'])if(_0x5be8e4['is']('element'))_0xb12915['push'](this['_makeIdsRoot'](_0x5be8e4));else{for(let _0x303429=0x0;_0x303429<_0x5be8e4['offsetSize'];_0x303429++)_0xb12915['push'](new ft('$text',{'vid':this['_revisionId']++}));}const _0x2f2028=this['_revisionId'];for(let _0x333ec1=_0x26a313;_0x333ec1<_0x2f2028;_0x333ec1++)this['_touched']['set'](_0x333ec1,{'userId':_0x4b3368});_0x330a2b['_insertChild'](_0x1173bd['offset'],_0xb12915);}['_handleMoveOperation'](_0x516598){(_0x516598=this['_cloneOperation'](_0x516598,this['_idsRoots']))['_execute']();const _0x316349=null===_0x516598['_authorId']?null:_0x516598['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x343f24=_0x516598['getMovedRangeStart'](),_0x5df01d=_0x343f24['parent'],_0x4a660e=_0x343f24['offset'];!function _0x1b7bd0(_0xc83dc4,_0x4af83d,_0x264562,_0x5375ad){for(let _0x43721a=_0x264562;_0x43721a<_0x5375ad;_0x43721a++){const _0x178d06=_0x4af83d['getChild'](_0x43721a);_0x178d06['is']('element','$text')?_0xc83dc4['set'](_0x178d06['getAttribute']('vid'),{'userId':_0x316349}):(_0xc83dc4['set'](_0x178d06['getAttribute']('vid_start'),{'userId':_0x316349}),_0x1b7bd0(_0xc83dc4,_0x178d06,0x0,_0x178d06['childCount']),_0xc83dc4['set'](_0x178d06['getAttribute']('vid_end'),{'userId':_0x316349}));}}(this['_touched'],_0x5df01d,_0x4a660e,_0x4a660e+_0x516598['howMany']);}['_handleMergeOperation'](_0x3fdb76){const _0x1877a5=null===(_0x3fdb76=this['_cloneOperation'](_0x3fdb76,this['_idsRoots']))['_authorId']?null:_0x3fdb76['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x1273a7=_0x3fdb76['targetPosition']['parent'],_0x1016bb=_0x3fdb76['sourcePosition']['parent'],_0x5ca46b=_0x1273a7['getAttribute']('vid_end'),_0xf2320a=_0x1016bb['getAttribute']('vid_start');_0x1273a7['_setAttribute']('vid_end',_0x1016bb['getAttribute']('vid_end')),_0x1016bb['_setAttribute']('vid_end',_0x5ca46b),this['_touched']['set'](_0xf2320a,{'userId':_0x1877a5}),this['_touched']['set'](_0x5ca46b,{'userId':_0x1877a5}),_0x3fdb76['_execute']();}['_handleSplitOperation'](_0x11adbe){const _0x2c17fa=null===(_0x11adbe=this['_cloneOperation'](_0x11adbe,this['_idsRoots']))['_authorId']?null:_0x11adbe['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x5452c8=_0x11adbe['graveyardPosition'],_0x1e5cd7=_0x11adbe['splitPosition']['parent'];_0x11adbe['_execute']();const _0x3e6fff=_0x1e5cd7['getAttribute']('vid_end'),_0x1e8110=_0x11adbe['insertionPosition']['nodeAfter'];if(_0x5452c8){const _0x1aa683=_0x1e8110['getAttribute']('vid_end'),_0x57dd91=_0x1e5cd7['getAttribute']('vid_end');_0x1e5cd7['_setAttribute']('vid_end',_0x1aa683),_0x1e8110['_setAttribute']('vid_end',_0x57dd91),this['_touched']['set'](_0x1e5cd7['getAttribute']('vid_end'),{'userId':_0x2c17fa}),this['_touched']['set'](_0x1e8110['getAttribute']('vid_start'),{'userId':_0x2c17fa});}else{const _0xef73a1=this['_revisionId']++,_0x132e15=this['_revisionId']++;_0x1e5cd7['_setAttribute']('vid_end',_0xef73a1),_0x1e8110['_setAttribute']('vid_start',_0x132e15),_0x1e8110['_setAttribute']('vid_end',_0x3e6fff),this['_touched']['set'](_0xef73a1,{'userId':_0x2c17fa}),this['_touched']['set'](_0x132e15,{'userId':_0x2c17fa});}}['_handleMarkerOperation'](_0x3d69c9){if(!_0x3d69c9['affectsData'])return;const _0x102221=(_0x3d69c9=this['_cloneOperation'](_0x3d69c9,this['_diffRoots']))['oldRange']?_0x3d69c9['oldRange']['root']:null,_0x2193a6=_0x3d69c9['newRange']?_0x3d69c9['newRange']['root']:null;_0x102221&&this['_markers']['delete'](_0x3d69c9['name']),_0x2193a6&&this['_markers']['set'](_0x3d69c9['name'],_0x3d69c9['newRange']['clone']());const _0x1aadf6=null===_0x3d69c9['_authorId']?null:_0x3d69c9['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x3eb38f=_0x3d69c9['name'];if(!this['_touchedMarkers']['has'](_0x3eb38f))return void this['_touchedMarkers']['set'](_0x3eb38f,{'range':_0x3d69c9['oldRange'],'userId':_0x1aadf6});const _0x4594e1=this['_touchedMarkers']['get'](_0x3eb38f),_0x247007=_0x4594e1['range'],_0x3017ad=_0x3d69c9['newRange'];null==_0x247007&&null==_0x3017ad||_0x247007&&_0x3017ad&&_0x247007['isEqual'](_0x3017ad)?this['_touchedMarkers']['delete'](_0x3d69c9['name']):_0x4594e1['userId']=_0x1aadf6;}['_handleRootOperation'](_0x2ee644,_0x5cf8ad){this['_diffRoots']['has'](_0x2ee644['rootName'])?this['_diffRoots']['get'](_0x2ee644['rootName'])['_isAttached']=_0x2ee644['isAdd']:(this['_diffRoots']['set'](_0x2ee644['rootName'],F(_0x2ee644['rootName'],!0x0)),this['_diffRootsAttributes']['set'](_0x2ee644['rootName'],{}),_0x5cf8ad&&this['_idsRoots']['set'](_0x2ee644['rootName'],F(_0x2ee644['rootName'],!0x0)));const _0x5231d7=null===_0x2ee644['_authorId']?null:_0x2ee644['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x1e5791=this['_touchedRoots']['get'](_0x2ee644['rootName']);_0x1e5791&&_0x1e5791['userId']===_0x5231d7?this['_touchedRoots']['delete'](_0x2ee644['rootName']):this['_touchedRoots']['set'](_0x2ee644['rootName'],{'userId':_0x5231d7,'isAttached':_0x2ee644['isAdd']});}['_handleRootAttributeOperation'](_0x2cd0bf){const _0xece56c=this['_diffRootsAttributes']['get'](_0x2cd0bf['root']['rootName']);null===_0x2cd0bf['newValue']?delete _0xece56c[_0x2cd0bf['key']]:_0xece56c[_0x2cd0bf['key']]=_0x2cd0bf['newValue'];}}function T(_0x34d2c){const _0x3211be=F(_0x34d2c['rootName'],_0x34d2c['isAttached']());for(const _0x498f9a of _0x34d2c['getChildren']()){const _0x4dd87b=_0x498f9a['_clone'](!0x0);_0x3211be['_appendChild'](_0x4dd87b);}return _0x3211be;}function F(_0x4f5a3f,_0x2f22c5=!0x0){const _0x43d397=new mt();return _0x43d397['rootName']=_0x4f5a3f,_0x43d397['_isAttached']=_0x2f22c5,_0x43d397['isAttached']=()=>_0x43d397['_isAttached'],_0x43d397;}function B(_0x41f087,_0x300153,_0x2ee0ef){const _0x17b688='elementEnd'==_0x41f087['type']?_0x2ee0ef['createPositionAt'](_0x41f087['item'],'end'):_0x2ee0ef['createPositionBefore'](_0x41f087['item']);return _0x2ee0ef['createPositionFromPath'](_0x300153,_0x17b688['path'],_0x17b688['stickiness']);}function J(_0x2c68c2,_0x4deac7,_0x8a995a){const _0xe7daa='elementStart'==_0x2c68c2['type']?_0x8a995a['createPositionAt'](_0x2c68c2['item'],0x0):_0x8a995a['createPositionAfter'](_0x2c68c2['item']);return _0x8a995a['createPositionFromPath'](_0x4deac7,_0xe7daa['path'],_0xe7daa['stickiness']);}class hs extends ts{['focusTracker'];['keystrokes'];['revisionNameInputView'];constructor(_0x277293,_0x2c9922){super(_0x277293),this['focusTracker']=new _0x553d6d(),this['keystrokes']=new _0x1cff90(),this['set']('revisionNameInputValue',''),this['revisionNameInputView']=this['_createRevisionNameInput'](_0x2c9922),this['setTemplate']({'tag':'form','attributes':{'class':['ck','ck-revision-history-save-revision-form','ck-responsive-form'],'tabindex':'-1'},'children':[this['revisionNameInputView']]}),_0x2c8ba4(this);}['render'](){super['render'](),_0x59a652({'view':this}),this['focusTracker']['add'](this['revisionNameInputView']['element']),this['keystrokes']['listenTo'](this['element']);const _0x1c45a4=_0x84bd1e=>_0x84bd1e['stopPropagation']();this['keystrokes']['set']('arrowright',_0x1c45a4),this['keystrokes']['set']('arrowleft',_0x1c45a4),this['keystrokes']['set']('arrowup',_0x1c45a4),this['keystrokes']['set']('arrowdown',_0x1c45a4);}['focus'](){this['revisionNameInputView']['focus']();}get['revisionName'](){return this['revisionNameInputView']['fieldView']['element']['value']['trim']();}set['revisionName'](_0x3a9309){this['revisionNameInputView']['fieldView']['element']['value']=_0x3a9309['trim']();}['reset'](){this['revisionNameInputView']['fieldView']['element']['value']='',this['revisionNameInputView']['errorText']=null;}['_createRevisionNameInput'](_0x3fb522){const _0x3540e6=new _0x3d4f9b(this['locale'],_0x55a6a1),_0x1bae15=_0x3540e6['fieldView'];_0x1bae15['extendTemplate']({'attributes':{'maxlength':'220'}});let _0x5484ec=m(this['locale'],'Name\x20of\x20the\x20revision');return!_0x3fb522&&(_0x5484ec+='\x20('+m(this['locale'],'optional')+')'),(_0x3540e6['label']=_0x5484ec,_0x1bae15['on']('input',()=>{this['revisionNameInputValue']=_0x1bae15['element']['value']['trim']();}),_0x3540e6);}}class u extends _0x5a9002{static get['pluginName'](){return'RevisionHistoryUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[l];}['_saveRevisionFormView'];['init'](){const _0x3a6680=this['editor'],_0x89cd6d=_0x3a6680['plugins']['get']('RevisionTracker');_0x3a6680['ui']['componentFactory']['add']('revisionHistory',_0x15e87b=>{const _0x514d41=_0x1ffd4b(_0x15e87b),_0x949a6e=_0x514d41['panelView']['children'],_0xe2044b=new _0x12e40f(_0x15e87b),_0x32c368=new _0x9a60cf(_0x15e87b),_0x532cd9=new te(_0x15e87b),_0x5f466e=new _0x9a60cf(_0x15e87b),_0x23451b=new te(_0x15e87b);return _0x514d41['bind']('isEnabled')['to'](_0x89cd6d,'isReady',_0x89cd6d,'isEnabled',_0x3a6680,'isReadOnly',(_0x8a1e8b,_0x5e7740,_0x329f82)=>_0x8a1e8b&&_0x5e7740&&!_0x329f82),_0x514d41['buttonView']['set']({'icon':_0x123892['history'],'label':m(_0x15e87b,'Revision\x20history'),'tooltip':!0x0}),_0x532cd9['set']({'label':m(_0x15e87b,'Save\x20current\x20revision'),'withText':!0x0,'role':'menuitem'}),_0x532cd9['bind']('isEnabled')['to'](_0x89cd6d,'isReady',_0x89cd6d,'isEnabled',_0x3a6680,'isReadOnly',(_0x245b05,_0x23e14f,_0x516205)=>_0x245b05&&_0x23e14f&&!_0x516205),_0x532cd9['on']('execute',()=>this['_showDialog']()),_0x23451b['set']({'label':m(_0x15e87b,'Open\x20revision\x20history'),'withText':!0x0,'role':'menuitem'}),_0x23451b['bind']('isEnabled')['to'](_0x89cd6d,'isReady',_0x3a6680,'isReadOnly',(_0xbb6b3c,_0x5272f6)=>_0xbb6b3c&&!_0x5272f6),_0x23451b['on']('execute',()=>{_0x3a6680['config']['get']('revisionHistory')['showRevisionViewerCallback'](),_0x514d41['isOpen']=!0x1,_0x3a6680['editing']['view']['focus']();}),_0x32c368['children']['add'](_0x532cd9),_0x5f466e['children']['add'](_0x23451b),_0xe2044b['role']='menu',_0xe2044b['items']['addMany']([_0x32c368,_0x5f466e]),_0x949a6e['add'](_0xe2044b),_0x514d41;}),_0x3a6680['ui']['componentFactory']['add']('menuBar:revisionHistory',()=>this['_registerMenuComponent']());}['_registerMenuComponent'](){const _0x400a77=this['editor'],_0x1d5de5=_0x400a77['locale'],_0xac2ea=new _0x415c08(_0x1d5de5),_0x5d2595=new _0x1e6d87(_0x1d5de5);_0xac2ea['buttonView']['set']({'icon':_0x123892['history'],'label':m(_0x1d5de5,'Revision\x20history')});const _0x3f3bea=new _0x33539e(_0x1d5de5,_0xac2ea),_0x7ac9b0=new _0x37d286(_0x1d5de5);_0x7ac9b0['set']({'label':m(_0x1d5de5,'Save\x20current\x20revision')}),_0x7ac9b0['delegate']('execute')['to'](_0xac2ea),_0x7ac9b0['on']('execute',()=>{this['_showDialog']();}),_0x3f3bea['children']['add'](_0x7ac9b0),_0x5d2595['items']['add'](_0x3f3bea);const _0x4773ca=new _0x33539e(_0x1d5de5,_0xac2ea),_0x3f0fd7=new _0x37d286(_0x1d5de5);return _0x3f0fd7['set']({'label':m(_0x1d5de5,'Open\x20revision\x20history')}),_0x3f0fd7['delegate']('execute')['to'](_0xac2ea),_0x3f0fd7['on']('execute',()=>{_0x400a77['config']['get']('revisionHistory')['showRevisionViewerCallback']();}),_0x4773ca['children']['add'](_0x3f0fd7),_0x5d2595['items']['add'](_0x4773ca),_0xac2ea['panelView']['children']['add'](_0x5d2595),_0xac2ea;}['_showDialog'](){const _0x2eb0fe=this['editor'],_0x5554e3=_0x2eb0fe['locale'],_0x7d86fb=_0x2eb0fe['plugins']['get']('Dialog'),_0x4d60ad=_0x2eb0fe['plugins']['get']('RevisionTracker');function _0x389f47(_0x3006cd){_0x2eb0fe['config']['get']('revisionHistory.requireRevisionName')&&''===_0x3006cd['revisionName']?_0x3006cd['revisionNameInputView']['errorText']=m(_0x5554e3,'The\x20revision\x20name\x20cannot\x20be\x20empty.'):(_0x2eb0fe['plugins']['get'](l)['saveRevision']({'name':_0x3006cd['revisionName']}),_0x7d86fb['hide']());}this['_saveRevisionFormView']||(this['_createSaveRevisionFormView'](),this['_saveRevisionFormView']['on']('submit',()=>_0x389f47(this['_saveRevisionFormView']))),this['_saveRevisionFormView']['reset'](),_0x7d86fb['show']({'id':'revisionSave','title':m(_0x5554e3,'Save\x20current\x20revision'),'isModal':!0x0,'content':this['_saveRevisionFormView'],'actionButtons':[{'label':m(_0x2eb0fe['locale'],'Cancel'),'withText':!0x0,'onExecute':()=>_0x7d86fb['hide']()},{'label':m(_0x2eb0fe['locale'],'Accept'),'class':'ck-button-action','withText':!0x0,'onCreate'(_0x1d8c05){_0x1d8c05['bind']('isEnabled')['to'](_0x4d60ad,'isReady',_0x4d60ad,'isEnabled',_0x2eb0fe,'isReadOnly',(_0x4d2ac8,_0x47e292,_0x2ac2a4)=>_0x4d2ac8&&_0x47e292&&!_0x2ac2a4);},'onExecute':()=>_0x389f47(this['_saveRevisionFormView'])}]});}['_createSaveRevisionFormView'](){const _0x323a89=this['editor'],_0x3df158=_0x323a89['locale'];this['_saveRevisionFormView']=new hs(_0x3df158,_0x323a89['config']['get']('revisionHistory.requireRevisionName')),this['_saveRevisionFormView']['render']();}}class X extends ts{['changeId'];['_model'];constructor(_0x8ec7fd,_0x9bf71f){super(_0x8ec7fd),this['_model']=_0x9bf71f,this['changeId']=_0x9bf71f['id'];const _0x30ea19=this['bindTemplate'],_0xcbfe4d=m(_0x8ec7fd,_0x9bf71f['data']['isSuggestion']?'Suggested\x20by':'add'==_0x9bf71f['type']?'Added\x20by':'Removed\x20by');this['set']('type',_0x9bf71f['type']),this['setTemplate']({'tag':'div','attributes':{'class':['ck-annotation','ck-revision-change',_0x30ea19['to']('type',_0x472594=>'ck-revision-change__'+_0x472594)],'tabindex':-0x1},'children':[{'tag':'span','children':[{'tag':'span','attributes':{'class':['ck-revision-change__label']},'children':[{'text':_0xcbfe4d}]},{'text':'\x20'+_0x9bf71f['author']['name']}]}]});}['focus'](){this['element']['focus']();}}class r extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0x5d07e0(){['id'];['author'];['type'];['data'];['rootName'];constructor(_0x50feb1){super(),this['id']=_0x50feb1['id']||_0x2bee71(),this['author']=_0x50feb1['author'],this['type']=_0x50feb1['type'],this['data']=_0x50feb1['data']||{},this['rootName']=_0x50feb1['rootName'],this['set']('createdAt',_0x50feb1['createdAt']);}['toJSON'](){return{'id':this['id'],'authorId':this['author']['id'],'type':this['type'],'data':this['data'],'createdAt':this['createdAt']};}}class f{['newRevisionId'];['oldRevisionId'];['changes'];constructor(_0x4b8a05,_0x267146){this['newRevisionId']=_0x4b8a05,this['oldRevisionId']=_0x267146,this['changes']=new _0x4bd15c();}['_setChanges'](_0x140ff4){for(const _0x5b016d of _0x140ff4)this['changes']['add'](_0x5b016d);}}const Y={'c':_0x15aabb,'a':_0x5e1a11,'e':_0x347cea,'r':_0xe7678,'u':_0x40ec03};class d extends _0x5a9002{['repository'];['adapter'];['_activeViewTarget'];['_changeView'];['_changeIdToChange'];['_balloon'];static get['pluginName'](){return'RevisionViewer';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x3a86de,_0x4fee7b,j];}constructor(_0x225aa2){super(_0x225aa2),this['repository']=this['editor']['plugins']['get']('RevisionsRepository'),this['set']('activeChange',null),this['set']('activeView',null),this['_activeViewTarget']=null,this['set']('diff',null),this['set']('isReady',!0x1),this['set']('isEnabled',!0x0),this['on']('change:isEnabled',(_0x38bcdb,_0x2235dc,_0x521cb4)=>{this['activeChange']=null,this['activeView']=null,this['editor']['editing']['view']['change'](_0xdab305=>{for(const _0x45469a of this['editor']['editing']['view']['document']['roots'])_0x521cb4?_0xdab305['removeClass']('ck-editor__editable__overlay',_0x45469a):_0xdab305['addClass']('ck-editor__editable__overlay',_0x45469a);});}),this['bind']('isNavigationMode')['to'](this,'activeChange',_0x2ec153=>null!==_0x2ec153),this['bind']('currentChangeNumber')['to'](this,'isReady',this,'diff',this,'activeChange',(_0x43fd84,_0x143585,_0x2b9aea)=>_0x43fd84&&_0x2b9aea?_0x143585['changes']['getIndex'](_0x2b9aea):0x0),this['bind']('numberOfChanges')['to'](this,'isReady',this,'diff',(_0x59db22,_0x7d3db4)=>_0x59db22?_0x7d3db4['changes']['length']:0x0),this['_changeView']=null,this['_changeIdToChange']=new Map(),this['adapter']=null,this['_balloon']=this['editor']['plugins']['get'](_0x4fee7b);}['init'](){const _0x11813a=this['editor'],_0x26250f=new _t(_0x11813a,{'direction':'backward'}),_0x50314a=new _t(_0x11813a,{'direction':'forward'});(_0x11813a['commands']['add']('showPreviousChange',_0x26250f),_0x11813a['commands']['add']('showNextChange',_0x50314a),_0x11813a['commands']['add']('restoreRevision',new pt(_0x11813a)),this['on']('change:numberOfChanges',()=>{_0x26250f['refresh'](),_0x50314a['refresh']();}),this['_setConversion'](),this['_initInteractions'](),_0x11813a['enableReadOnlyMode']('revision-viewer'),_0x11813a['plugins']['has']('WidgetToolbarRepository'))&&_0x11813a['plugins']['get']('WidgetToolbarRepository')['forceDisabled']('revision-viewer');}async['getRevisionData'](_0x44e307){await this['loadRevisionData'](_0x44e307);const _0x3fed3c={};for(const _0x4fa4ef in _0x44e307['diffData']){if(_0x44e307['diffData'][_0x4fa4ef]['attachChange']&&!_0x44e307['diffData'][_0x4fa4ef]['attachChange']['isAttached'])continue;const _0x180048=this['_removeRevisionMarkers'](JSON['parse'](_0x44e307['diffData'][_0x4fa4ef]['insertions'])),_0x55eeac=this['editor']['editing']['view']['document'],_0x3109ec=new _0x23929d(_0x55eeac,_0x180048['map'](_0x5cba67=>this['_getViewObj'](_0x5cba67)));this['editor']['data']['processor']['useFillerType']('marked'),_0x3fed3c[_0x4fa4ef]=this['editor']['data']['processor']['toData'](_0x3109ec),this['editor']['data']['processor']['useFillerType']('default');}return _0x3fed3c;}async['getRevisionRootsAttributes'](_0x151a07){await this['loadRevisionData'](_0x151a07);const _0x39aff2={};for(const _0x2304cf in _0x151a07['diffData'])_0x151a07['diffData'][_0x2304cf]['attachChange']&&!_0x151a07['diffData'][_0x2304cf]['attachChange']['isAttached']||(_0x39aff2[_0x2304cf]=_0x151a07['diffData'][_0x2304cf]['attributesAfter']||{});return _0x39aff2;}['_removeRevisionMarkers'](_0x4de8c0){return(_0x4de8c0=_0x4de8c0['filter'](_0x1e0dea=>!_0x1e0dea['name']||'revision-start'!==_0x1e0dea['name']&&'revision-end'!==_0x1e0dea['name']))['forEach'](_0x4e9a5e=>{'string'!=typeof _0x4e9a5e&&(_0x4e9a5e['children']=this['_removeRevisionMarkers'](_0x4e9a5e['children']),_0x4e9a5e['attributes']=_0x4e9a5e['attributes']['filter'](_0x28b661=>!_0x28b661[0x0]['startsWith']('data-revision-')));}),_0x4de8c0;}async['compare'](_0x2e2179,_0x19877c,_0x2aea3e=!0x1){if(!this['isEnabled'])return;const _0x15b5f6=this['diff'],_0x8fdb3c=this['repository'],_0x3b9378='string'==typeof _0x2e2179?_0x8fdb3c['getRevision'](_0x2e2179):_0x2e2179,_0x25d6cc='string'==typeof _0x19877c?_0x8fdb3c['getRevision'](_0x19877c):_0x19877c,_0x2e6173=_0x3b9378['id'],_0x285599=_0x25d6cc?_0x25d6cc['id']:null;if(!_0x2aea3e&&this['diff']&&this['diff']['newRevisionId']===_0x2e6173&&this['diff']['oldRevisionId']===_0x285599)return Promise['resolve']();this['isReady']=!0x1,this['activeView']=null,this['activeChange']=null,this['diff']=new f(_0x2e6173,_0x285599);const _0x2ea37c=this['_getRevisionsRange'](_0x3b9378,_0x25d6cc,!0x0)['map'](_0x3b6607=>this['loadRevisionData'](_0x3b6607));return _0x2ea37c['push'](new Promise(_0x5dee1f=>{setTimeout(_0x5dee1f,0x14);})),Promise['all'](_0x2ea37c)['then'](()=>{if(!this['isEnabled'])return;this['_cleanUp']();const _0x389b6c=this['_getDiff'](_0x2e6173,_0x285599);for(const _0x19a547 of _0x389b6c['changes'])this['_changeIdToChange']['set'](_0x19a547['id'],_0x19a547);this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x4c5018=>{for(const _0x53f676 of this['editor']['model']['document']['getRootNames']())_0x4c5018['detachRoot'](_0x53f676);for(const _0x35a652 of Object['keys'](_0x389b6c['model'])){const _0x3cef86=_0x4c5018['addRoot'](_0x35a652);for(const _0x18d3c3 of Object['keys'](_0x389b6c['attributes'][_0x35a652]))_0x4c5018['setAttribute'](_0x18d3c3,_0x389b6c['attributes'][_0x35a652][_0x18d3c3],_0x3cef86);_0x4c5018['insert'](_0x389b6c['model'][_0x35a652],_0x3cef86,0x0);}}),this['diff']['_setChanges'](this['_sortAndFilterDiffChanges'](_0x389b6c['changes'])),this['isReady']=!0x0;})['catch'](_0x52cc49=>{console['error'](_0x52cc49),this['_cleanUp'](),_0x15b5f6&&(this['diff']=_0x15b5f6),this['isReady']=!0x0;});}['addRevisionData'](_0x41f45c,_0x3f1f4a){const _0x121ec6=this['repository']['createRevision'](_0x41f45c);return _0x121ec6['on']('_update',(_0x314c22,_0x3056fe,_0x5dd6a0)=>_0x3f1f4a(_0x3056fe,_0x5dd6a0,_0x121ec6)),this['repository']['addRevision'](_0x121ec6),_0x121ec6;}['loadRevisionData'](_0x57a718){if(!_0x57a718||_0x57a718['diffData'])return Promise['resolve']();{const _0x4cbb4a=this['editor']['config']['get']('collaboration.channelId');return this['adapter']['getRevision']({'channelId':_0x4cbb4a,'revisionId':_0x57a718['id']})['then'](_0x233cb2=>{_0x57a718['_update']({'diffData':_0x233cb2['diffData']},!0x0);});}}['_cleanUp'](){this['activeChange']=null,this['_cleanMarkers'](),this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=null,this['_changeIdToChange']['clear'](),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x5c54e2=>{for(const _0x408e5d of this['editor']['model']['document']['getRootNames']())_0x5c54e2['detachRoot'](_0x408e5d);});}['_sortAndFilterDiffChanges'](_0x280444){const _0x5a9a7a=[],_0x629009=new Map();for(const _0x247dba of this['editor']['model']['document']['getRootNames']()){const _0x384c=this['editor']['editing']['view']['getDomRoot'](_0x247dba);if(!_0x384c)continue;const _0x2e11f6=_0x384c['getClientRects']()['item'](0x0);_0x2e11f6&&(_0x5a9a7a['push'](_0x247dba),_0x629009['set'](_0x247dba,_0x2e11f6));}return _0x5a9a7a['sort']((_0x451ac5,_0x5f53a7)=>{const _0x4889c1=_0x629009['get'](_0x451ac5),_0x4e9721=_0x629009['get'](_0x5f53a7);return _0x4889c1['y']-_0x4e9721['y']||_0x4889c1['x']-_0x4e9721['x'];}),(_0x280444=_0x280444['filter'](_0x552f04=>_0x5a9a7a['includes'](_0x552f04['rootName'])))['sort']((_0x424398,_0x20e520)=>_0x5a9a7a['indexOf'](_0x424398['rootName'])-_0x5a9a7a['indexOf'](_0x20e520['rootName'])),_0x280444;}['_makeTape'](_0x3ddcf4){const _0x232692=Array['from'](_0x3ddcf4['markers'])['filter'](([_0x1f16b5,_0x342da0])=>_0x1f16b5['startsWith']('revision:')&&!_0x342da0['isCollapsed']),_0x47ae74=Array['from'](this['editor']['model']['createRangeIn'](_0x3ddcf4)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0x232692['length'])for(const _0x3cbfd7 of _0x47ae74){const [_0x2479b5,_0x5c7d64]=_0x232692[0x0],[,_0x4a5b84,_0x3e2e6f]=_0x2479b5['split'](':');if(_0x5c7d64['end']['isEqual'](_0x3cbfd7['nextPosition'])&&_0x232692['shift'](),(_0x3cbfd7['previousPosition']['isEqual'](_0x5c7d64['start'])||_0x3cbfd7['previousPosition']['isAfter'](_0x5c7d64['start']))&&('insertion'==_0x4a5b84?_0x3cbfd7['isAdded']={'userId':_0x3e2e6f}:'deletion'==_0x4a5b84&&(_0x3cbfd7['isRemoved']={'userId':_0x3e2e6f})),0x0==_0x232692['length'])break;}return _0x47ae74;}['_refreshStartEndIndex'](_0x3ac366){const _0x1b29bf=new Map();for(let _0x3201b8=0x0;_0x3201b8<_0x3ac366['length'];_0x3201b8++)'text'===_0x3ac366[_0x3201b8]['type']?(_0x3ac366[_0x3201b8]['item']['startIndex']=_0x3201b8,_0x3ac366[_0x3201b8]['item']['endIndex']=_0x3201b8):('elementStart'===_0x3ac366[_0x3201b8]['type']?_0x3ac366[_0x3201b8]['item']['startIndex']=_0x3201b8:'elementEnd'===_0x3ac366[_0x3201b8]['type']&&(_0x3ac366[_0x3201b8]['item']['endIndex']=_0x3201b8),_0x1b29bf['set'](_0x3ac366[_0x3201b8]['id'],_0x3201b8));for(const _0x4299b8 of _0x1b29bf['values']())'elementStart'===_0x3ac366[_0x4299b8]['type']?_0x3ac366[_0x4299b8]['item']['endIndex']=_0x1b29bf['get'](_0x3ac366[_0x4299b8]['pairId']):'elementEnd'===_0x3ac366[_0x4299b8]['type']&&(_0x3ac366[_0x4299b8]['item']['startIndex']=_0x1b29bf['get'](_0x3ac366[_0x4299b8]['pairId']));}['_processTape'](_0x4d6459){for(let _0x261014=0x0;_0x261014<_0x4d6459['length'];_0x261014++){if('elementStart'===_0x4d6459[_0x261014]['type'])_0x4d6459[_0x261014]['item']['startIndex']=_0x261014;else{if('elementEnd'===_0x4d6459[_0x261014]['type']){_0x4d6459[_0x261014]['item']['endIndex']=_0x261014;const _0x53ab21=_0x4d6459[_0x261014]['item']['startIndex'];_0x4d6459[_0x53ab21]['pairId']=_0x4d6459[_0x261014]['id'],_0x4d6459[_0x261014]['pairId']=_0x4d6459[_0x53ab21]['id'];}else _0x4d6459[_0x261014]['item']['startIndex']=_0x261014,_0x4d6459[_0x261014]['item']['endIndex']=_0x261014,_0x4d6459[_0x261014]['pairId']=null;}_0x4d6459[_0x261014]['markersStart']||(_0x4d6459[_0x261014]['markersStart']=[],_0x4d6459[_0x261014]['markersEnd']=[]);}}['_markInsertions'](_0x454a01,_0x1f2aa0){const _0x440a8a=_0x454a01['filter'](_0x126fed=>!_0x126fed['isAdded']);for(let _0x2e9b8d=0x0;_0x2e9b8d<_0x1f2aa0['length'];_0x2e9b8d++)_0x1f2aa0[_0x2e9b8d]['isAdded']&&(_0x440a8a[_0x2e9b8d]['isAdded']=_0x1f2aa0[_0x2e9b8d]['isAdded']);}['_makeModelFromViewString'](_0x594100){const _0x3582dc=JSON['parse'](_0x594100),_0x54cc39=this['editor']['editing']['view']['document'],_0xe6961b=new _0x23929d(_0x54cc39,_0x3582dc['map'](_0x53e76b=>this['_getViewObj'](_0x53e76b)));return this['editor']['data']['toModel'](_0xe6961b);}['_getViewObj'](_0x24996f){const _0x4fd251=this['editor']['editing']['view']['document'];if('string'==typeof _0x24996f)return new _0x1f9b61(_0x4fd251,_0x24996f);{const _0x34cd2e=_0x24996f['children']['map'](_0x3cf1c1=>this['_getViewObj'](_0x3cf1c1));return new(Y[_0x24996f['type']]||_0x55295d)(_0x4fd251,_0x24996f['name'],_0x24996f['attributes'],_0x34cd2e);}}['_getDiff'](_0x919b26,_0x432883=null){const _0x262fb0=this['repository']['getRevision'](_0x919b26),_0x1a7fec=_0x432883?this['repository']['getRevision'](_0x432883):null,_0xd35bf9=this['_getRevisionsRange'](_0x262fb0,_0x1a7fec),_0x2787d0=_0xd35bf9[_0xd35bf9['length']-0x1],_0x52f56d=new Map(),_0x3b75af={'model':{},'attributes':{},'changes':[]},_0x39583d=new Set(),_0x592114=new Map();for(let _0x43fd80=_0xd35bf9['length']-0x1;_0x43fd80>=0x0;_0x43fd80--){const _0x27a3e8=_0xd35bf9[_0x43fd80];for(const _0x3ab779 of Object['keys'](_0x27a3e8['diffData']))if(_0x27a3e8['diffData'][_0x3ab779]['attachChange']){const _0x442d3a=_0x27a3e8['diffData'][_0x3ab779]['attachChange'];_0x442d3a['isAttached']?(_0x39583d['add'](_0x3ab779),_0x592114['has'](_0x3ab779)&&_0x592114['get'](_0x3ab779)['userId']==_0x442d3a['userId']?_0x592114['delete'](_0x3ab779):_0x592114['set'](_0x3ab779,_0x442d3a)):_0x592114['has'](_0x3ab779)?(_0x39583d['delete'](_0x3ab779),_0x592114['delete'](_0x3ab779)):(_0x39583d['add'](_0x3ab779),_0x592114['set'](_0x3ab779,_0x442d3a));}else _0x39583d['add'](_0x3ab779);}for(const _0x1761a8 of _0x39583d){const _0x1bbe12=_0x592114['has'](_0x1761a8)&&!_0x592114['get'](_0x1761a8)['isAttached'];let _0x397c54=_0x1bbe12?_0xd35bf9['length']-0x1:0x0;const _0x265bdd=_0x1bbe12?-0x1:0x1;for(;_0xd35bf9[_0x397c54];){const _0x295eef=_0xd35bf9[_0x397c54];if(_0x295eef['diffData'][_0x1761a8]){const _0x159fc5=_0x1bbe12?_0x295eef['diffData'][_0x1761a8]['attributesBefore']:_0x295eef['diffData'][_0x1761a8]['attributesAfter'];_0x3b75af['attributes'][_0x1761a8]=_0x159fc5?_0x4fe291(_0x159fc5):{};break;}_0x397c54+=_0x265bdd;}}for(const _0x4152b3 of _0xd35bf9){_0x4152b3['model']={};for(const _0x4efd19 of _0x4152b3['authors'])_0x52f56d['set'](_0x4efd19['id'],_0x4efd19);for(const _0x1d7e68 of _0x39583d){const _0x2f5c94=_0x4152b3['diffData'][_0x1d7e68]?_0x4152b3['diffData'][_0x1d7e68]['insertions']:'[]',_0x13ebdc=_0x4152b3['diffData'][_0x1d7e68]?_0x4152b3['diffData'][_0x1d7e68]['deletions']:'[]';_0x4152b3['model'][_0x1d7e68]={'insertions':this['_makeModelFromViewString'](_0x2f5c94),'deletions':this['_makeModelFromViewString'](_0x13ebdc)};}}for(const _0x5cd25e of _0x39583d){let _0x496b38=null,_0x5770a7=0x0;const _0x81b9ed=new Map(Array['from'](_0x262fb0['model'][_0x5cd25e]['insertions']['markers'])['filter'](([_0xdc2590])=>!_0xdc2590['startsWith']('revision:')));let _0x477c74=0x0;for(const _0x2c868d of _0xd35bf9){const _0x2191a2=this['_makeTape'](_0x2c868d['model'][_0x5cd25e]['insertions']);_0x2c868d==_0x262fb0?(_0x496b38=_0x2191a2,_0x5770a7=_0x496b38['length'],_0x496b38['forEach'](_0x1783c1=>{_0x1783c1['id']=_0x477c74++;}),this['_processTape'](_0x496b38)):this['_markInsertions'](_0x496b38,_0x2191a2);const _0x1bbf37=_0x496b38['filter'](_0x1e3226=>!_0x1e3226['isAdded'])['map'](_0x174a1e=>_0x174a1e['id']);let _0x9f96d2=0x0;const _0x3c1c40=this['_makeTape'](_0x2c868d['model'][_0x5cd25e]['deletions']);_0x3c1c40['forEach'](_0x35b9e4=>{_0x35b9e4['isRemoved']?_0x35b9e4['id']=_0x5770a7++:_0x35b9e4['id']=_0x1bbf37[_0x9f96d2++];}),this['_processTape'](_0x3c1c40),this['_setDistance'](_0x496b38,'isAdded'),this['_setDistance'](_0x3c1c40,'isRemoved'),_0x2c868d==_0x262fb0&&this['_markMarkers'](_0x496b38,_0x81b9ed),_0x496b38=this['_joinTapes'](_0x496b38,_0x3c1c40),this['_refreshStartEndIndex'](_0x496b38),this['_setDistance'](_0x496b38,'isRemoved');}_0x496b38=_0x496b38['filter'](_0x47ac5d=>!(_0x47ac5d['isAdded']&&_0x47ac5d['isRemoved']));const _0x3eb6b8=new Map(_0x2787d0['model'][_0x5cd25e]['deletions']['markers']),_0xc04621=new Set(_0x81b9ed['keys']());for(const _0x554463 of _0x3eb6b8['keys']())_0xc04621['delete'](_0x554463);this['_markSuggestions'](_0x496b38,_0xc04621),this['_fixObsoleteTags'](_0x496b38),_0x496b38=this['_removeMissingPairs'](_0x496b38),_0x496b38=this['_markMismatchedRemovedTags'](_0x496b38),_0x496b38=this['_removeUnsupportedChanges'](_0x496b38);const {root:_0x3b0262,changes:_0x1b7562}=this['_makeModelFromTape'](_0x496b38,_0x52f56d,_0x5cd25e);_0x3b75af['model'][_0x5cd25e]=_0x3b0262;const _0x3e3041=_0x592114['get'](_0x5cd25e);if(_0x3e3041){const _0x15d3d5=_0x52f56d['get'](_0x3e3041['userId']),_0x1b43db=new r({'author':_0x15d3d5,'type':_0x3e3041['isAttached']?'add':'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x5cd25e});_0x1b7562['unshift'](_0x1b43db),_0x3b75af['attributes'][_0x5cd25e]['revisionHistoryAttachChange']=_0x1b43db['id'];}_0x3b75af['changes']=_0x3b75af['changes']['concat'](_0x1b7562);}return _0x3b75af;}['_markMarkers'](_0x20a531,_0x43a978){for(let _0x145d26=0x0;_0x145d26<_0x20a531['length'];_0x145d26++)for(const [_0x18f18b,_0x13a50d]of _0x43a978)_0x13a50d['start']['isEqual'](_0x20a531[_0x145d26]['previousPosition'])&&_0x20a531[_0x145d26]['markersStart']['push'](_0x18f18b),_0x13a50d['end']['isEqual'](_0x20a531[_0x145d26]['nextPosition'])&&_0x20a531[_0x145d26]['markersEnd']['push'](_0x18f18b);}['_joinTapes'](_0x50d05f,_0x3cfaff){let _0x27f533=[],_0x1a4b67=0x0,_0xefd039=0x0;for(;_0x1a4b67<_0x50d05f['length']||_0xefd039<_0x3cfaff['length'];){const _0x4ac98c=_0x50d05f[_0x1a4b67]||{},_0x27c54f=_0x3cfaff[_0xefd039]||{};if(_0x4ac98c['id']==_0x27c54f['id'])_0x1a4b67++,_0xefd039++,_0x27f533['push'](_0x4ac98c);else{if(_0x27c54f['isRemoved']&&_0x4ac98c['isAdded']){const {commonTape:_0x8071cf,iEnd:_0x4c10e1,jEnd:_0x3dac02}=this['_threeWayMerge'](_0x50d05f,_0x1a4b67,_0x3cfaff,_0xefd039);_0x27f533=_0x27f533['concat'](_0x8071cf),_0x1a4b67=_0x4c10e1,_0xefd039=_0x3dac02;}else _0x27c54f['isRemoved']?(_0xefd039++,_0x27f533['push'](_0x27c54f)):(_0x1a4b67++,_0x27f533['push'](_0x4ac98c));}}return _0x27f533;}['_markSuggestions'](_0x36aae2,_0x32003d){const _0x56a407=[];for(let _0x1953c5=0x0;_0x1953c5<_0x36aae2['length'];_0x1953c5++){for(let _0x5ea6a3=0x0;_0x5ea6a3<_0x36aae2[_0x1953c5]['markersStart']['length'];_0x5ea6a3++){const _0x33a768=_0x36aae2[_0x1953c5]['markersStart'][_0x5ea6a3];if(!_0x32003d['has'](_0x33a768))continue;const {group:_0x3fe475,type:_0x5cba64,authorId:_0x7d8293}=_0x159bee(_0x33a768);'revision-suggestion'!=_0x3fe475||'insertion'!=_0x5cba64&&'deletion'!=_0x5cba64||(_0x56a407['unshift']({'type':_0x5cba64,'name':_0x33a768,'userId':_0x7d8293}),_0x36aae2[_0x1953c5]['markersStart']['splice'](_0x5ea6a3,0x1),_0x5ea6a3--);}_0x2ae544(_0x36aae2[_0x1953c5]);for(let _0x5aa34a=0x0;_0x5aa34a<_0x36aae2[_0x1953c5]['markersEnd']['length'];_0x5aa34a++){const _0x4aeed2=_0x36aae2[_0x1953c5]['markersEnd'][_0x5aa34a];if(!_0x32003d['has'](_0x4aeed2))continue;const {group:_0x5b702d,type:_0x42e20d}=_0x159bee(_0x4aeed2);if('revision-suggestion'!=_0x5b702d||'insertion'!=_0x42e20d&&'deletion'!=_0x42e20d)continue;_0x36aae2[_0x1953c5]['markersEnd']['splice'](_0x5aa34a,0x1),_0x5aa34a--;const _0x1d262b=_0x56a407['findIndex'](_0x17864e=>_0x17864e['name']==_0x4aeed2);_0x1d262b>-0x1&&_0x56a407['splice'](_0x1d262b,0x1);}}function _0x159bee(_0x2afd56){const _0x511851=_0x2afd56['split'](':');return{'group':_0x511851[0x0],'type':_0x511851[0x1],'subType':_0x511851['length']>=0x5?_0x511851[0x2]:null,'id':_0x511851['length']<0x5?_0x511851[0x2]:_0x511851[0x3],'authorId':_0x511851['length']<0x5?_0x511851[0x3]:_0x511851[0x4],'markerCount':0x6==_0x511851['length']?_0x511851[0x5]:null};}function _0x2ae544(_0x5666e7){for(let _0x255f16=0x0;_0x255f16<_0x56a407['length'];_0x255f16++){if(_0x5666e7['isAdded']&&'insertion'==_0x56a407[_0x255f16]['type'])return _0x5666e7['isAddSuggestion']=_0x56a407[_0x255f16],void delete _0x5666e7['isAdded'];if(!_0x5666e7['isAdded']&&!_0x5666e7['isRemoved']&&'deletion'==_0x56a407[_0x255f16]['type'])return void(_0x5666e7['isRemoveSuggestion']=_0x56a407[_0x255f16]);}}}['_setDistance'](_0x2be987,_0x455a65){let _0x23b570=0x0,_0x3b60b5=!0x1;const _0x424dad=new Map();for(const _0x22a796 of _0x2be987)_0x22a796[_0x455a65]?_0x3b60b5&&(_0x23b570++,_0x3b60b5=!0x1):(_0x23b570++,_0x3b60b5=!0x0),_0x424dad['set'](_0x22a796['id'],_0x23b570);for(let _0x449ddc=0x0;_0x449ddc<_0x2be987['length'];_0x449ddc++){if('isRemoved'==_0x455a65&&_0x2be987[_0x449ddc]['isAdded']||'isAdded'==_0x455a65&&_0x2be987[_0x449ddc]['isRemoved'])continue;if('text'==_0x2be987[_0x449ddc]['type']){_0x2be987[_0x449ddc]['distance']=0x0;continue;}const _0x52fd23=_0x424dad['get'](_0x2be987[_0x449ddc]['pairId']),_0x207e8f=_0x424dad['get'](_0x2be987[_0x449ddc]['id']);_0x2be987[_0x449ddc]['distance']=_0x52fd23-_0x207e8f;}}['_getRevisionsRange'](_0x4ce5d1,_0x209464,_0x212791=!0x1){const _0x24b2db=[];let _0x93b8ab=this['repository']['getIndex'](_0x4ce5d1),_0x76ab8d=this['repository']['getIndex'](_0x209464);for(-0x1==_0x76ab8d&&(_0x76ab8d=this['repository']['_revisions']['length'],_0x212791=!0x1);_0x93b8ab<_0x76ab8d;)_0x24b2db['push'](this['repository']['getRevision'](_0x93b8ab)),_0x93b8ab++;return _0x212791&&_0x24b2db['push'](this['repository']['getRevision'](_0x93b8ab)),_0x24b2db;}['_threeWayMerge'](_0x241e07,_0x400992,_0x4e4de8,_0x37b6ab){const _0x5e3961=this['editor']['model']['schema'];let _0x3e1db2=_0x400992;for(;_0x241e07[_0x3e1db2]&&_0x241e07[_0x3e1db2]['isAdded'];)_0x3e1db2++;let _0xe8f38d=_0x37b6ab;for(;_0x4e4de8[_0xe8f38d]&&_0x4e4de8[_0xe8f38d]['isRemoved'];)_0xe8f38d++;_0x307739(_0x241e07,_0x400992,_0x3e1db2),_0x307739(_0x4e4de8,_0x37b6ab,_0xe8f38d);const _0x17c5de=_0x4e4de8['slice'](_0x37b6ab,_0xe8f38d)['concat'](_0x241e07['slice'](_0x400992,_0x3e1db2));return _0x17c5de['sort']((_0x3ab449,_0x59e918)=>_0x3ab449['side']!=_0x59e918['side']?_0x3ab449['side']-_0x59e918['side']:_0x3ab449['level']!=_0x59e918['level']?_0x3ab449['level']-_0x59e918['level']:_0x3ab449['distance']!=_0x59e918['distance']?_0x59e918['distance']-_0x3ab449['distance']:!!_0x3ab449['isAdded']!=!!_0x59e918['isAdded']?-0x1==_0x3ab449['side']||0x0==_0x3ab449['side']?_0x3ab449['isAdded']?-0x1:0x1:_0x3ab449['isAdded']?0x1:-0x1:_0x3ab449['index']-_0x59e918['index']),{'commonTape':_0x17c5de,'iEnd':_0x3e1db2,'jEnd':_0xe8f38d};function _0x307739(_0x43d2f9,_0x5a42e7,_0x5b2ff6){let _0x58b9f6=-0x1,_0x44ecad=Number['POSITIVE_INFINITY'],_0x8757c=!0x0;for(let _0x35527d=_0x5a42e7;_0x35527d<_0x5b2ff6;_0x35527d++)if(_0x5e3961['isInline'](_0x43d2f9[_0x35527d]['item'])||(_0x8757c=!0x1),_0x43d2f9[_0x35527d]['item']['startIndex']<_0x5a42e7&&(_0x58b9f6=_0x35527d),_0x43d2f9[_0x35527d]['item']['endIndex']>=_0x5b2ff6){_0x44ecad=_0x35527d;break;}_0x8757c&&(_0x58b9f6=_0x5b2ff6-0x1);for(let _0x2eb5e4=_0x5a42e7;_0x2eb5e4<_0x5b2ff6;_0x2eb5e4++)_0x43d2f9[_0x2eb5e4]['side']=_0x2eb5e4<=_0x58b9f6?-0x1:_0x2eb5e4<_0x44ecad?0x0:0x1,_0x43d2f9[_0x2eb5e4]['index']=_0x2eb5e4;let _0x335d1d=0x0;for(let _0x247916=_0x5a42e7;_0x247916<=_0x58b9f6;_0x247916++)0x0==_0x43d2f9[_0x247916]['distance']?_0x43d2f9[_0x247916]['level']=_0x335d1d:(_0x335d1d++,_0x43d2f9[_0x247916]['level']=_0x335d1d,_0x335d1d++);for(let _0x3762ac=_0x5a42e7;_0x3762ac<_0x5b2ff6;_0x3762ac++)0x0==_0x43d2f9[_0x3762ac]['side']&&(_0x43d2f9[_0x3762ac]['level']=_0x335d1d);_0x335d1d=0x0;for(let _0x1886fd=_0x5b2ff6-0x1;_0x1886fd>=_0x44ecad;_0x1886fd--)0x0==_0x43d2f9[_0x1886fd]['distance']?_0x43d2f9[_0x1886fd]['level']=_0x335d1d:(_0x335d1d--,_0x43d2f9[_0x1886fd]['level']=_0x335d1d,_0x335d1d--);}}['_fixObsoleteTags'](_0x3d0b33){const _0x1e424a=new Map(),_0x349258=this['editor']['model']['schema'];for(let _0x282f1d=0x1;_0x282f1d<_0x3d0b33['length'];_0x282f1d++){let _0xda2075,_0x4d4cfe,_0x29c617;const _0x4f3461=_0x3d0b33[_0x282f1d],_0x417a03=_0x3d0b33[_0x282f1d-0x1];if('text'==_0x4f3461['type'])continue;if(_0x4f3461['type']!=_0x417a03['type'])continue;if(!_0x349258['isBlock'](_0x417a03['item'])||_0x349258['isLimit'](_0x417a03['item']))continue;if(!_0x349258['isBlock'](_0x4f3461['item'])||_0x349258['isLimit'](_0x4f3461['item']))continue;if((_0x3d0b33[_0x282f1d]['isAdded']||_0x3d0b33[_0x282f1d]['isAddSuggestion'])&&_0x3d0b33[_0x282f1d-0x1]['isRemoved'])_0xda2075=_0x3d0b33[_0x282f1d],_0x4d4cfe=_0x3d0b33[_0x282f1d-0x1],_0x29c617=_0x282f1d-0x1;else{if(!_0x3d0b33[_0x282f1d]['isRemoved']||!_0x3d0b33[_0x282f1d-0x1]['isAdded']&&!_0x3d0b33[_0x282f1d-0x1]['isAddSuggestion'])continue;_0xda2075=_0x3d0b33[_0x282f1d-0x1],_0x4d4cfe=_0x3d0b33[_0x282f1d],_0x29c617=_0x282f1d;}const _0x377f38=_0xda2075['level']==_0x4d4cfe['level'],_0x4bcc53=Math['abs'](_0xda2075['level'])<Math['abs'](_0x4d4cfe['level'])&&0x0==_0x4d4cfe['distance'];(_0x377f38||_0x4bcc53)&&(_0x1e424a['set'](_0x4d4cfe['id'],_0xda2075['id']),_0x3d0b33['splice'](_0x29c617,0x1),_0x282f1d--,_0xda2075['isAdded']=!0x1);}for(let _0x36173e=0x0;_0x36173e<_0x3d0b33['length'];_0x36173e++)_0x1e424a['has'](_0x3d0b33[_0x36173e]['pairId'])&&(_0x3d0b33[_0x36173e]['pairId']=_0x1e424a['get'](_0x3d0b33[_0x36173e]['pairId']));}['_removeMissingPairs'](_0x4dab99){const _0xe52a23=new Set(_0x4dab99['map'](_0x205986=>_0x205986['id']));for(let _0x3c849b=0x0;_0x3c849b<_0x4dab99['length'];_0x3c849b++)_0xe52a23['has'](_0x4dab99[_0x3c849b]['pairId'])||0x0==_0x4dab99[_0x3c849b]['distance']||(_0x4dab99[_0x3c849b]['isIncorrect']=!0x0);return _0x4dab99['filter'](_0x57ca67=>!_0x57ca67['isIncorrect']);}['_markMismatchedRemovedTags'](_0x49f53f){const _0x1ea32f=new Set();for(let _0x533d18=0x0;_0x533d18<_0x49f53f['length'];_0x533d18++){if(_0x1ea32f['has'](_0x49f53f[_0x533d18]['id'])&&_0x49f53f[_0x533d18]['isRemoved']&&(_0x49f53f[_0x533d18]['isIncorrect']=!0x0),_0x49f53f[_0x533d18]['isIncorrect'])continue;if(0x0==_0x49f53f[_0x533d18]['distance'])continue;if('elementStart'!=_0x49f53f[_0x533d18]['type'])continue;if(null==_0x49f53f[_0x533d18]['pairId'])continue;let _0x17e435=_0x533d18+0x1,_0x39edfe=0x0;for(;_0x49f53f[_0x17e435]['id']!=_0x49f53f[_0x533d18]['pairId'];)'elementStart'==_0x49f53f[_0x17e435]['type']?_0x39edfe++:'elementEnd'==_0x49f53f[_0x17e435]['type']&&_0x39edfe--,_0x17e435++;if(0x0!=_0x39edfe){if(_0x49f53f[_0x533d18]['isRemoved'])_0x49f53f[_0x533d18]['isIncorrect']=!0x0;else{for(;_0x17e435!=_0x533d18;)_0x49f53f[_0x17e435]['isRemoved']&&0x0!=_0x49f53f[_0x17e435]['distance']&&(_0x49f53f[_0x17e435]['isIncorrect']=!0x0,_0x1ea32f['add'](_0x49f53f[_0x17e435]['pairId'])),_0x17e435--;}}}return _0x49f53f['filter'](_0x2709e1=>!_0x2709e1['isIncorrect']);}['_removeUnsupportedChanges'](_0x579d8d){const _0x3454d1=this['editor']['model']['schema'];for(let _0x17425c=0x0;_0x17425c<_0x579d8d['length'];_0x17425c++){if(!(_0x579d8d[_0x17425c]['isAdded']||_0x579d8d[_0x17425c]['isAddSuggestion']||_0x579d8d[_0x17425c]['isRemoved']||_0x579d8d[_0x17425c]['isRemoveSuggestion']))continue;if(0x0==_0x579d8d[_0x17425c]['distance'])continue;const _0x38ffed=_0x579d8d[_0x17425c]['item'];_0x3454d1['isBlock'](_0x38ffed)||_0x3454d1['isLimit'](_0x38ffed)||(_0x579d8d[_0x17425c]['isAdded']&&delete _0x579d8d[_0x17425c]['isAdded'],_0x579d8d[_0x17425c]['isAddSuggestion']&&delete _0x579d8d[_0x17425c]['isAddSuggestion'],_0x579d8d[_0x17425c]['isRemoveSuggestion']&&delete _0x579d8d[_0x17425c]['isRemoveSuggestion'],_0x579d8d[_0x17425c]['isRemoved']&&(_0x579d8d[_0x17425c]['isIncorrect']=!0x0));}return _0x579d8d['filter'](_0x3ed953=>!_0x3ed953['isIncorrect']);}['_makeModelFromTape'](_0x1d0ff2,_0x55e91f,_0x421c22){const _0x187ef0=new mt(),_0x5e2d3b=[],_0x3250a6=new Map(),_0x162d93=this['editor']['model'],_0x51da63=_0x162d93['schema'],_0x5ee859=[_0x187ef0],_0x60ed4c={},_0x224ad9={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x788683=null;const _0xa192ea=[0x0];for(let _0x4ee35=0x0;_0x4ee35<_0x1d0ff2['length'];_0x4ee35++)if('elementStart'===_0x1d0ff2[_0x4ee35]['type']){_0x1d0ff2[_0x4ee35]['previousPosition']=_0x162d93['createPositionFromPath'](_0x187ef0,_0xa192ea);const _0x5d29b6=new ft(_0x1d0ff2[_0x4ee35]['item']['name'],_0x1d0ff2[_0x4ee35]['item']['getAttributes']());_0x5ee859[0x0]['_appendChild'](_0x5d29b6),_0xa192ea['push'](0x0),_0x5ee859['unshift'](_0x5d29b6),_0x1d0ff2[_0x4ee35]['nextPosition']=_0x162d93['createPositionFromPath'](_0x187ef0,_0xa192ea);}else'elementEnd'===_0x1d0ff2[_0x4ee35]['type']?(_0x5ee859['shift'](),_0x1d0ff2[_0x4ee35]['previousPosition']=_0x162d93['createPositionFromPath'](_0x187ef0,_0xa192ea),_0xa192ea['pop'](),_0xa192ea[_0xa192ea['length']-0x1]++,_0x1d0ff2[_0x4ee35]['nextPosition']=_0x162d93['createPositionFromPath'](_0x187ef0,_0xa192ea)):(_0x1d0ff2[_0x4ee35]['previousPosition']=_0x162d93['createPositionFromPath'](_0x187ef0,_0xa192ea),_0x788683?_0x788683['_data']+=_0x1d0ff2[_0x4ee35]['item']['data']:_0x788683=new wt(_0x1d0ff2[_0x4ee35]['item']['data'],_0x1d0ff2[_0x4ee35]['item']['getAttributes']()),_0x1d0ff2[_0x4ee35+0x1]&&'text'===_0x1d0ff2[_0x4ee35+0x1]['type']&&_0x11bce6(_0x788683,_0x1d0ff2[_0x4ee35+0x1]['item'])||(_0x5ee859[0x0]['_appendChild'](_0x788683),_0x788683=null),_0xa192ea[_0xa192ea['length']-0x1]+=_0x1d0ff2[_0x4ee35]['item']['offsetSize'],_0x1d0ff2[_0x4ee35]['nextPosition']=_0x162d93['createPositionFromPath'](_0x187ef0,_0xa192ea));for(let _0x32d421=0x0;_0x32d421<_0x1d0ff2['length'];_0x32d421++){const _0x395692=_0x1d0ff2[_0x32d421]['previousPosition'],_0x184fe9=_0x1d0ff2[_0x32d421]['nextPosition'];for(const _0x1a4542 of _0x1d0ff2[_0x32d421]['markersStart'])_0x3250a6['set'](_0x1a4542,{'start':_0x395692,'end':null});_0x17e10a('isRemoveSuggestion',_0x32d421,_0x395692,_0x184fe9),_0x17e10a('isAddSuggestion',_0x32d421,_0x395692,_0x184fe9),_0x17e10a('isRemoved',_0x32d421,_0x395692,_0x184fe9),_0x17e10a('isAdded',_0x32d421,_0x395692,_0x184fe9);for(const _0x254aa9 of _0x1d0ff2[_0x32d421]['markersEnd']){_0x3250a6['get'](_0x254aa9)['end']=_0x184fe9;}}for(const [_0xea20be,_0x2ebb81]of _0x3250a6){const _0x793fd8=this['editor']['model']['createRange'](_0x2ebb81['start'],_0x2ebb81['end']);_0x187ef0['markers']['set'](_0xea20be,_0x793fd8);}return _0x5e2d3b['sort']((_0x102616,_0xfd58b8)=>{const _0x487e86=_0x187ef0['markers']['get']('revision:'+_0x102616['id']),_0x37d725=_0x187ef0['markers']['get']('revision:'+_0xfd58b8['id']);return _0x487e86['start']['isBefore'](_0x37d725['start'])?-0x1:_0x487e86['start']['isAfter'](_0x37d725['start'])?0x1:_0x487e86['end']['isBefore'](_0x37d725['end'])?-0x1:_0x487e86['end']['isAfter'](_0x37d725['end'])?0x1:'add'===_0x102616['type']?-0x1:0x1;}),{'root':_0x187ef0,'changes':_0x5e2d3b};function _0x17e10a(_0x58917f,_0x1acf31,_0x2b7302,_0x524b02){const _0x29098f=!!_0x1d0ff2[_0x1acf31][_0x58917f],_0x2d997d=_0x29098f?_0x1d0ff2[_0x1acf31][_0x58917f]['userId']:null,_0x37a868=_0x1acf31===_0x1d0ff2['length']-0x1,_0x42ee19=_0x224ad9[_0x58917f][0x0],_0x33a0d9=_0x51da63['isObject'](_0x1d0ff2[_0x1acf31]['item']);!_0x60ed4c[_0x58917f]&&_0x29098f?_0x60ed4c[_0x58917f]={'start':_0x2b7302,'tapeItem':_0x1d0ff2[_0x1acf31],'userId':_0x2d997d,'type':_0x58917f}:_0x60ed4c[_0x58917f]&&!_0x29098f?(_0x60ed4c[_0x58917f]['end']=_0x2b7302,_0x48d7de(_0x60ed4c[_0x58917f]),_0x60ed4c[_0x58917f]=null):_0x60ed4c[_0x58917f]&&_0x29098f&&_0x60ed4c[_0x58917f]['userId']!==_0x2d997d&&(_0x60ed4c[_0x58917f]['end']=_0x2b7302,_0x42ee19&&_0x42ee19['userId']===_0x60ed4c[_0x58917f]['userId']||_0x48d7de(_0x60ed4c[_0x58917f]),_0x60ed4c[_0x58917f]={'start':_0x2b7302,'tapeItem':_0x1d0ff2[_0x1acf31],'userId':_0x2d997d,'type':_0x58917f}),_0x60ed4c[_0x58917f]&&_0x33a0d9&&('elementStart'!==_0x1d0ff2[_0x1acf31]['type']||_0x42ee19&&_0x42ee19['userId']===_0x2d997d||_0x224ad9[_0x58917f]['unshift']({'userId':_0x2d997d,'object':_0x1d0ff2[_0x1acf31]['item'],'change':_0x60ed4c[_0x58917f]}),'elementEnd'===_0x1d0ff2[_0x1acf31]['type']&&_0x42ee19&&_0x42ee19['object']===_0x1d0ff2[_0x1acf31]['item']&&(_0x224ad9[_0x58917f]['shift'](),_0x60ed4c[_0x58917f]=_0x42ee19['change'])),_0x60ed4c[_0x58917f]&&_0x37a868&&(_0x60ed4c[_0x58917f]['end']=_0x524b02,_0x48d7de(_0x60ed4c[_0x58917f]),_0x60ed4c[_0x58917f]=null);}function _0x48d7de({start:_0x41ba39,end:_0x2e627b,tapeItem:_0x5b90e4,userId:_0x392f53,type:_0x23d1ff}){const _0x44b8ef=_0x5b90e4['item'],_0x5c68de=_0x162d93['schema']['isBlock'](_0x44b8ef)&&!_0x162d93['schema']['isLimit'](_0x44b8ef),_0x3fbe6e=_0x41ba39['nodeAfter']==_0x2e627b['parent']&&_0x2e627b['isAtStart'];if(_0x5c68de&&_0x3fbe6e)return;const _0x5b5deb=_0x162d93['createRange'](_0x41ba39,_0x2e627b),_0x5bc5c3=_0x55e91f['get'](_0x392f53),_0x37c60d=new r({'author':_0x5bc5c3,'type':'isAdded'==_0x23d1ff||'isAddSuggestion'==_0x23d1ff?'add':'remove','data':{'isSuggestion':'isAddSuggestion'==_0x23d1ff||'isRemoveSuggestion'==_0x23d1ff},'createdAt':new Date(),'rootName':_0x421c22});_0x5e2d3b['push'](_0x37c60d),_0x187ef0['markers']['set']('revision:'+_0x37c60d['id'],_0x5b5deb);}function _0x11bce6(_0x56be86,_0x37c747){const _0x16c870=_0x56be86['getAttributes'](),_0x4d101a=_0x37c747['getAttributes']();for(const _0x59f5b8 of _0x16c870){if(_0x59f5b8[0x1]!==_0x37c747['getAttribute'](_0x59f5b8[0x0]))return!0x1;_0x4d101a['next']();}return _0x4d101a['next']()['done'];}}['_setConversion'](){this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision','view':_0x194db0=>{const _0x141eb2=_0x194db0['markerName']['split'](':')[0x1],_0x2f6083=this['_getChangeFromId'](_0x141eb2);if(!_0x2f6083)return null;const _0x1fe7ad='add'==_0x2f6083['type']?'insertion':'deletion',_0x5a04be=['ck-suggestion-marker','ck-suggestion-marker-'+_0x1fe7ad];return _0x2f6083['data']['isSuggestion']&&_0x5a04be['push']('ck-suggestion-marker-'+_0x1fe7ad+'-new'),this['activeChange']==_0x2f6083&&_0x5a04be['push']('ck-suggestion-marker--active'),{'classes':_0x5a04be,'attributes':{'data-change-id':_0x141eb2}};}}),this['editor']['conversion']['for']('upcast')['add'](_0xffb5c7=>{_0xffb5c7['on']('element:pre',(_0x91cf1f,_0x463c34,_0x270104)=>{const _0x112165=_0x463c34['viewItem']['getChild'](0x0);if(!_0x112165||!_0x112165['is']('element','code'))return;if(!_0x270104['consumable']['consume'](_0x112165,{'attributes':['vid_start','vid_end']}))return;const _0x539c7c=_0x463c34['modelRange']['start']['nodeAfter'];_0x270104['writer']['setAttribute']('vid_start',_0x112165['getAttribute']('vid_start'),_0x539c7c),_0x270104['writer']['setAttribute']('vid_end',_0x112165['getAttribute']('vid_end'),_0x539c7c);},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['add'](_0x259c51=>{_0x259c51['on']('element',(_0x18cdba,_0x2e5b93,_0x716b3f)=>{if(!_0x716b3f['consumable']['consume'](_0x2e5b93['viewItem'],{'attributes':['vid_start','vid_end']}))return;if(_0x2e5b93['modelRange']['isCollapsed'])return;const _0x2a5306=_0x2e5b93['modelRange']['start']['nodeAfter'];_0x2a5306['hasAttribute']('vid_start')||_0x2a5306['hasAttribute']('vid')||(_0x716b3f['writer']['setAttribute']('vid_start',_0x2e5b93['viewItem']['getAttribute']('vid_start'),_0x2a5306),_0x716b3f['writer']['setAttribute']('vid_end',_0x2e5b93['viewItem']['getAttribute']('vid_end'),_0x2a5306));},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['elementToAttribute']({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0x141f43=>_0x141f43['getAttribute']('vid')}}),this['editor']['model']['schema']['on']('checkAttribute',(_0x3c600a,[,_0x25f956])=>{['vid_start','vid_end','vid']['includes'](_0x25f956)&&(_0x3c600a['return']=!0x0,_0x3c600a['stop']());},{'priority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x34a55c=>{_0x34a55c['on']('attribute:vid',(_0x22da5f,_0x241a62,_0x339f5e)=>{if('\x20'!=_0x241a62['item']['data']||_0x241a62['item']['parent']['maxOffset']>0x1)return;if(!_0x339f5e['consumable']['consume'](_0x241a62['item'],_0x22da5f['name']))return;const _0x29d860=_0x339f5e['writer'],_0x1926a3=_0x339f5e['mapper']['toViewRange'](_0x241a62['range']);_0x29d860['wrap'](_0x1926a3,_0x29d860['createAttributeElement']('span'));});}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',function(_0x425d7d){const _0x481610=_0x425d7d['plugins']['get']('RevisionViewer');return(_0x58c6b8,_0x3d2b80,_0x7c045b)=>{const _0x131b92=_0x3d2b80['markerName']['split'](':')[0x1],_0x5e9354=_0x481610['_getChangeFromId'](_0x131b92);if(!_0x5e9354)return null;const _0x336c75='add'==_0x5e9354['type']?'split':'merge';if(!_0x7c045b['consumable']['test'](_0x3d2b80['markerRange'],_0x58c6b8['name']))return;const _0x27c120=_0x3d2b80['markerRange']['getWalker'](),_0x378d8e=_0x3d2b80['markerRange']['start'],_0xf66ee=_0x425d7d['model']['schema'];let _0x25f3f5=null,_0x95e1c4=null,_0x4f9669=!0x1,_0x1e9932=!0x1;for(const _0x104c00 of _0x27c120){const _0x286f0b=_0x104c00['item'];_0x4f9669=_0x4f9669||_0xf66ee['isContent'](_0x286f0b);const _0x4ca13f=_0x7c045b['mapper']['toViewElement'](_0x286f0b);if(_0x4ca13f&&_0x4ca13f['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x104c00['type']&&(_0xf66ee['isBlock'](_0x286f0b)&&!_0xf66ee['isLimit'](_0x286f0b)&&(_0x286f0b['nextSibling']||_0x378d8e['isAtEnd']?_0x25f3f5&&_0x25f3f5['parent']==_0x286f0b||(_0x25f3f5=_0x286f0b,_0x465157(_0x104c00['previousPosition']),_0x1e9932=!0x0):_0x95e1c4=_0x95e1c4||_0x104c00['previousPosition']));}function _0x465157(_0x33c3ae){const _0x38d323=_0x7c045b['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x336c75}),_0xc2ee6c=_0x7c045b['mapper']['toViewPosition'](_0x33c3ae);_0x5e9354['data']['isSuggestion']&&_0x7c045b['writer']['addClass']('ck-suggestion-marker-'+_0x336c75+'-new',_0x38d323),_0x481610['activeChange']==_0x5e9354&&_0x7c045b['writer']['addClass']('ck-suggestion-marker--active',_0x38d323),_0x7c045b['writer']['insert'](_0xc2ee6c,_0x38d323),_0x7c045b['mapper']['bindElementToMarker'](_0x38d323,_0x3d2b80['markerName']);}_0x4f9669||_0x1e9932||!_0x95e1c4||_0x465157(_0x95e1c4);};}(this['editor']),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision',(_0x82b7c9,_0x3b8106,_0x23682e)=>{const _0x1503e9=_0x23682e['mapper']['markerNameToElements'](_0x3b8106['markerName']);if(_0x1503e9){for(const _0x593540 of _0x1503e9)(_0x593540['hasClass']('ck-suggestion-marker-split')||_0x593540['hasClass']('ck-suggestion-marker-merge'))&&(_0x23682e['mapper']['unbindElementFromMarkerName'](_0x593540,_0x3b8106['markerName']),_0x23682e['writer']['remove'](_0x593540));}},{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',(_0x19b12a,_0x497bdf,_0x25511f)=>{const _0x53e246=_0x497bdf['markerName']['split'](':')[0x1],_0x250cd5=this['_getChangeFromId'](_0x53e246);if(!_0x250cd5)return null;const _0x3b2392='add'==_0x250cd5['type']?'split':'merge';if(_0x25511f['consumable']['test'](_0x497bdf['markerRange'],_0x19b12a['name']))for(const _0x235b1d of _0x497bdf['markerRange']['getItems']()){if(!_0x235b1d['is']('element','softBreak'))continue;const _0x3bd8c6=_0x25511f['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x3b2392}),_0x47c418=_0x25511f['mapper']['toViewPosition'](this['editor']['model']['createPositionBefore'](_0x235b1d));_0x250cd5['data']['isSuggestion']&&_0x25511f['writer']['addClass']('ck-suggestion-marker-'+_0x3b2392+'-new',_0x3bd8c6),this['activeChange']==_0x250cd5&&_0x25511f['writer']['addClass']('ck-suggestion-marker--active',_0x3bd8c6),_0x25511f['writer']['insert'](_0x47c418,_0x3bd8c6),_0x25511f['mapper']['bindElementToMarker'](_0x3bd8c6,_0x497bdf['markerName']);}},{'priority':'high'}),this['editor']['model']['document']['on']('change',()=>{this['editor']['editing']['view']['change'](_0x472deb=>{for(const _0x8f69b5 of this['editor']['model']['document']['getRootNames']()){const _0x31a5be=this['editor']['model']['document']['getRoot'](_0x8f69b5),_0x40e20d=this['editor']['editing']['view']['document']['getRoot'](_0x8f69b5);if(_0x40e20d){const _0x40b203=_0x31a5be['getAttribute']('revisionHistoryAttachChange');if(_0x472deb['removeAttribute']('data-change-id',_0x40e20d),_0x472deb['removeClass']('ck-revision-history-root-add',_0x40e20d),_0x472deb['removeClass']('ck-revision-history-root-remove',_0x40e20d),_0x472deb['removeClass']('ck-revision-history-root--active',_0x40e20d),_0x40b203){const _0x28ed74=this['_getChangeFromId'](_0x40b203);if(!_0x28ed74)return null;_0x472deb['setAttribute']('data-change-id',_0x40b203,_0x40e20d),_0x472deb['addClass']('ck-revision-history-root-'+_0x28ed74['type'],_0x40e20d),this['activeChange']==_0x28ed74&&_0x472deb['addClass']('ck-revision-history-root--active',_0x40e20d);}}}});}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'comment','model':_0x55d279=>'revision-comment:'+_0x55d279,'converterPriority':'highest'}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion','model':_0x593cb4=>'revision-suggestion:'+_0x593cb4,'converterPriority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision-suggestion','view':_0x190930=>({'name':'suggestion:'+_0x190930,'group':'revision-suggestion'}),'converterPriority':'highest'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision-suggestion','view':_0x3d51e0=>{const _0x3423ca=_0x3d51e0['markerName']['split'](':')[0x1];return'insertion'!=_0x3423ca&&'deletion'!=_0x3423ca?null:{'classes':['ck-suggestion-preview-marker','ck-suggestion-preview-marker-'+_0x3423ca]};}}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:deletion',Z(this['editor'],'merge'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:insertion',Z(this['editor'],'split'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision-suggestion',(_0xdf1b7d,_0x22fc24,_0x4e4669)=>{const _0xaf0e2=_0x4e4669['mapper']['markerNameToElements'](_0x22fc24['markerName']);if(_0xaf0e2){for(const _0x2c42b0 of _0xaf0e2)_0x2c42b0['is']('uiElement')&&(_0x4e4669['mapper']['unbindElementFromMarkerName'](_0x2c42b0,_0x22fc24['markerName']),_0x4e4669['writer']['remove'](_0x2c42b0));}},{'priority':'high'});}['_getChangeFromId'](_0x2f1a9c){return this['_changeIdToChange']['get'](_0x2f1a9c);}['_getViewForChange'](_0x590e83){return this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=new X(this['editor']['locale'],_0x590e83),this['_changeView'];}['_initInteractions'](){this['editor']['model']['document']['selection']['observeMarkers']('revision'),this['on']('change:activeView',(_0x472659,_0x34ca61,_0x2581e9,_0x1b7605)=>{_0x1b7605&&this['_balloon']['remove'](_0x1b7605),_0x2581e9&&(this['_balloon']['add']({'view':_0x2581e9,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0xf971c5=this['editor']['editing'],_0x2e0c7d=this['_getChangeFromId'](_0x2581e9['changeId']);let _0x46f6fd;if(_0x2e0c7d['data']['isOnRoot']){const _0x3ef9e9=_0xf971c5['view']['getDomRoot'](_0x2e0c7d['rootName']);_0x46f6fd=Array['from'](_0x3ef9e9['getClientRects']());}else{const _0x5ad88c=this['editor']['model']['markers']['get']('revision:'+_0x2581e9['changeId']);_0x46f6fd=Array['from'](_0xf971c5['mapper']['markerNameToElements'](_0x5ad88c['name']))['map'](_0x5e4fca=>_0xf971c5['view']['domConverter']['mapViewToDom'](_0x5e4fca))['map'](_0x9ad306=>Array['from'](_0x9ad306['getClientRects']()))['flat']();}if(!this['_activeViewTarget'])return _0x46f6fd[0x0];return _0x46f6fd['find'](_0x3ad963=>_0x3ad963['top']-0x3<=this['_activeViewTarget']['y']&&_0x3ad963['bottom']+0x3>=this['_activeViewTarget']['y']&&_0x3ad963['left']-0x3<=this['_activeViewTarget']['x']&&_0x3ad963['right']+0x3>=this['_activeViewTarget']['x'])||_0x46f6fd[0x0];}}}),this['_balloon']['showStack']('revisionHistoryLabel'));}),this['on']('change:activeChange',(_0x56ed9d,_0x53d203,_0x24e04c,_0x117a7d)=>{this['activeView']=_0x24e04c?this['_getViewForChange'](_0x24e04c):null,this['editor']['model']['change'](()=>{const _0x27882e=this['editor']['editing'];_0x117a7d&&(_0x117a7d['data']['isOnRoot']?_0x27882e['view']['change'](_0x2b2242=>{_0x2b2242['removeClass']('ck-revision-history-root--active',_0x27882e['view']['document']['getRoot'](_0x117a7d['rootName']));}):_0x27882e['reconvertMarker']('revision:'+_0x117a7d['id'])),_0x24e04c&&(_0x24e04c['data']['isOnRoot']?_0x27882e['view']['change'](_0xfa974=>{_0xfa974['addClass']('ck-revision-history-root--active',_0x27882e['view']['document']['getRoot'](_0x24e04c['rootName']));}):_0x27882e['reconvertMarker']('revision:'+_0x24e04c['id']));});}),this['listenTo'](this['editor']['editing']['view']['document'],'mouseover',(_0x4f703c,_0x5ecff8)=>{if(this['activeChange'])return;const _0x1f72fd=this['_findChangeIdFromDomTarget'](_0x5ecff8['target']),_0xe2b321=this['_changeIdToChange']['get'](_0x1f72fd);_0xe2b321?(this['_activeViewTarget']={'x':_0x5ecff8['domEvent']['x'],'y':_0x5ecff8['domEvent']['y']},this['activeView']=this['_getViewForChange'](_0xe2b321)):(this['_activeViewTarget']=null,this['activeView']=null);}),this['listenTo'](this['editor']['editing']['view']['document'],'mousedown',(_0x5916d1,_0x594c6a)=>{const _0x267e86=this['_findChangeIdFromDomTarget'](_0x594c6a['target']),_0x2d5afb=this['_changeIdToChange']['get'](_0x267e86);_0x2d5afb?(this['_activeViewTarget']={'x':_0x594c6a['domEvent']['x'],'y':_0x594c6a['domEvent']['y']},_0x2d5afb===this['activeChange']?this['_balloon']['updatePosition']():this['activeChange']=_0x2d5afb):(this['_activeViewTarget']=null,this['activeChange']=null);});}['_findChangeIdFromDomTarget'](_0x31b906){do{const _0x5f5df8=_0x31b906['getAttribute']('data-change-id');if(_0x5f5df8)return _0x5f5df8;_0x31b906=_0x31b906['parent'];}while(_0x31b906);return null;}['_cleanMarkers'](){this['editor']['model']['change'](_0x1d80df=>{for(const _0x533cdf of this['editor']['model']['markers'])_0x1d80df['removeMarker'](_0x533cdf);});}}function Z(_0xb9472e,_0x426251){return(_0xc68aa0,_0x4aa080,_0x542edc)=>{if(!_0x542edc['consumable']['test'](_0x4aa080['markerRange'],_0xc68aa0['name']))return;const _0x27bd95=_0x4aa080['markerRange']['getWalker'](),_0x5639f9=_0x4aa080['markerRange']['start'],_0x356686=_0xb9472e['model']['schema'];let _0x59205e=null,_0x8bb588=null,_0x4e5b36=!0x1,_0x1c1302=!0x1;for(const _0x2b1334 of _0x27bd95){const _0x6e0a66=_0x2b1334['item'];_0x4e5b36=_0x4e5b36||_0x356686['isContent'](_0x6e0a66);const _0xb313fb=_0x542edc['mapper']['toViewElement'](_0x6e0a66);if(_0xb313fb&&_0xb313fb['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x2b1334['type']&&(_0x356686['isBlock'](_0x6e0a66)&&!_0x356686['isLimit'](_0x6e0a66)&&(_0x6e0a66['nextSibling']||_0x5639f9['isAtEnd']?_0x59205e&&_0x59205e['parent']==_0x6e0a66||(_0x59205e=_0x6e0a66,_0x272919(_0x2b1334['previousPosition']),_0x1c1302=!0x0):_0x8bb588=_0x8bb588||_0x2b1334['previousPosition']));}function _0x272919(_0x19bfd8){const _0x35f3de=_0x542edc['mapper']['toViewPosition'](_0x19bfd8),_0x5f1332=_0x542edc['writer']['createUIElement']('span',{'class':'ck-suggestion-preview-marker-'+_0x426251});_0x542edc['writer']['insert'](_0x35f3de,_0x5f1332),_0x542edc['mapper']['bindElementToMarker'](_0x5f1332,_0x4aa080['markerName']);}_0x4e5b36||_0x1c1302||!_0x8bb588||_0x272919(_0x8bb588);};}class pt extends _0x5883d5{constructor(_0x597b6d){super(_0x597b6d);const _0x40d46d=_0x597b6d['plugins']['get'](d);this['affectsData']=!0x1,this['listenTo'](_0x40d46d,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x40d46d,'change:isEnabled',()=>this['refresh']());}['execute'](){const _0x2bfd8d=this['editor'],_0x1a0c09=_0x2bfd8d['plugins']['get'](d),_0x40be16=_0x1a0c09['isReady']?_0x1a0c09['diff']['newRevisionId']:null;_0x2bfd8d['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x40be16);}['refresh'](){const {isReady:_0x5015b7,isEnabled:_0x386933,repository:_0x1b61dc,diff:_0x38d3be}=this['editor']['plugins']['get'](d),_0x60c90=_0x38d3be&&_0x1b61dc['getLaterVisibleRevision'](_0x38d3be['newRevisionId']);this['isEnabled']=_0x5015b7&&_0x386933&&Boolean(_0x60c90);}}class _t extends _0x5883d5{['_step'];constructor(_0x5f3ca1,{direction:_0x4df415}){super(_0x5f3ca1);const _0xc37b10=_0x5f3ca1['plugins']['get'](d);this['affectsData']=!0x1,this['_step']='forward'===_0x4df415?0x1:-0x1,this['listenTo'](_0xc37b10,'change:isReady',()=>this['refresh']()),this['listenTo'](_0xc37b10,'change:isEnabled',()=>this['refresh']()),this['listenTo'](_0xc37b10,'change:activeChange',()=>this['refresh']());}['execute'](){const _0x5357df=this['editor'],_0x31cd37=_0x5357df['plugins']['get'](d),{isNavigationMode:_0xfeae7,currentChangeNumber:_0x3708e4}=_0x31cd37;let _0x13c9aa;if(_0x31cd37['activeChange']=_0xfeae7?_0x31cd37['diff']['changes']['get'](_0x3708e4+this['_step']):_0x31cd37['diff']['changes']['first'],_0x31cd37['activeChange']['data']['isOnRoot'])_0x13c9aa=_0x5357df['editing']['view']['getDomRoot'](_0x31cd37['activeChange']['rootName']);else{const _0xe576b3=_0x5357df['model']['markers']['get']('revision:'+_0x31cd37['activeChange']['id']);_0x13c9aa=_0x26fb60(_0x5357df['editing'],_0xe576b3);}_0x7e407f({'target':_0x13c9aa,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0x4b55ed,currentChangeNumber:_0x30e2f9,numberOfChanges:_0x59c100,isReady:_0x49fb90,isEnabled:_0x369d0d}=this['editor']['plugins']['get'](d);this['isEnabled']=!!(_0x369d0d&&_0x49fb90&&_0x59c100)&&(!_0x4b55ed||(0x1===this['_step']?_0x30e2f9<_0x59c100-0x1:_0x30e2f9>0x0));}}class ui extends ts{constructor(_0x5ad8bf){super(_0x5ad8bf);const _0x19106f=this['bindTemplate'],_0x2425b8=new te(_0x5ad8bf),_0x10926d=new te(_0x5ad8bf);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',(_0x353763,_0x1cd309)=>_0x353763&&_0x1cd309>0x0),this['bind']('_statusText')['to'](this,'isReady',this,'currentChangeNumber',this,'numberOfChanges',this,'isNavigationMode',(_0x4371a8,_0x3c6125,_0x34ce8c,_0x562b2a)=>{if(!_0x4371a8)return m(_0x5ad8bf,'Loading...');if(!_0x34ce8c)return m(_0x5ad8bf,'No\x20changes');const _0x1b6dae=m(_0x5ad8bf,'NUMBER_OF_CHANGES',_0x34ce8c);return _0x562b2a?m(_0x5ad8bf,'X_OF_Y_CHANGES',[_0x3c6125+0x1,_0x34ce8c]):_0x1b6dae;}),_0x2425b8['set']({'label':m(_0x5ad8bf,'Show\x20previous\x20change'),'tooltip':!0x0,'icon':'<svg\x20viewBox=\x220\x200\x2020\x2020\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22><path\x20d=\x22M16.435\x2014.494a.75.75\x200\x200\x200\x201.197-.899l-.067-.089-6.992-8a.75.75\x200\x200\x200-1.05-.078l-.079.078-7.008\x208a.75.75\x200\x200\x200\x201.049\x201.066l.08-.078\x206.442-7.354\x206.428\x207.354z\x22/></svg>\x0a'}),_0x10926d['set']({'label':m(_0x5ad8bf,'Show\x20next\x20change'),'tooltip':!0x0,'icon':'<svg\x20viewBox=\x220\x200\x2020\x2020\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22><path\x20d=\x22M16.435\x205.506a.75.75\x200\x200\x201\x201.197.899l-.067.089-6.992\x208a.75.75\x200\x200\x201-1.05.078l-.079-.078-7.008-8a.75.75\x200\x200\x201\x201.049-1.066l.08.078\x206.442\x207.354\x206.428-7.354z\x22/></svg>\x0a'}),_0x2425b8['bind']('isEnabled')['to'](this,'isBackwardNavigationEnabled'),_0x10926d['bind']('isEnabled')['to'](this,'isForwardNavigationEnabled'),_0x2425b8['on']('execute',()=>this['fire']('execute','backward')),_0x10926d['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',_0x19106f['if']('_isStatusLabelVisible','ck-hidden',_0x13fc31=>!_0x13fc31)]},'children':[{'text':_0x19106f['to']('isNavigationMode',_0x5315f5=>_0x5315f5?m(_0x5ad8bf,'EDIT_X_OF_Y_REVISIONS')+':\x20':m(_0x5ad8bf,'Total')+':\x20')}]},{'text':_0x19106f['to']('_statusText')}]},new _0x1baa83(),{'tag':'div','attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0x2425b8,_0x10926d]}]});}}const le='ck-editor__editable__loading-overlay';class de extends _0x5a9002{static get['pluginName'](){return'RevisionViewerLoadingOverlay';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['show'](){const _0x11b99f=this['editor']['editing']['view'];_0x11b99f['change'](_0x269f37=>{for(const _0x75aae8 of _0x11b99f['document']['roots'])_0x269f37['addClass'](le,_0x75aae8);});}['hide'](){const _0xfeb73a=this['editor']['editing']['view'];_0xfeb73a['change'](_0x16db2c=>{for(const _0x225d40 of _0xfeb73a['document']['roots'])_0x16db2c['removeClass'](le,_0x225d40);});}}class g extends _0x5a9002{static get['pluginName'](){return'RevisionViewerUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[d,de];}['init'](){const _0x47e704=this['editor'],_0x1b8f70=_0x47e704['plugins']['get'](d),_0x5d64e6=_0x47e704['plugins']['get'](de);_0x47e704['ui']['componentFactory']['add']('exitToEditing',_0x373b1e=>{const _0x3996de=new te(_0x373b1e);return _0x3996de['set']({'label':m(_0x373b1e,'Back\x20to\x20editing'),'icon':_0x123892['undo'],'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this['listenTo'](_0x3996de,'execute',()=>{_0x47e704['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}),_0x3996de;}),_0x47e704['ui']['componentFactory']['add']('restoreRevision',_0xf7ddfa=>{const _0xe1d98e=new te(_0xf7ddfa);return _0xe1d98e['set']({'label':m(_0xf7ddfa,'Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0xe1d98e['bind']('isEnabled')['to'](_0x47e704['commands']['get']('restoreRevision')),this['listenTo'](_0xe1d98e,'execute',()=>_0x47e704['execute']('restoreRevision')),_0xe1d98e;}),_0x47e704['ui']['componentFactory']['add']('changesNavigation',_0x3b9e31=>{const _0x10ef5e=new ui(_0x3b9e31),_0x3164d6=_0x47e704['commands']['get']('showPreviousChange'),_0x399aa5=_0x47e704['commands']['get']('showNextChange');return _0x10ef5e['bind']('isBackwardNavigationEnabled')['to'](_0x3164d6,'isEnabled'),_0x10ef5e['bind']('isForwardNavigationEnabled')['to'](_0x399aa5,'isEnabled'),_0x10ef5e['bind']('isReady','currentChangeNumber','numberOfChanges','isNavigationMode')['to'](_0x1b8f70),this['listenTo'](_0x10ef5e,'execute',(_0x4ee7d5,_0x3b653e)=>{_0x47e704['execute']('forward'===_0x3b653e?'showNextChange':'showPreviousChange');}),_0x10ef5e;}),_0x5d64e6['show'](),_0x1b8f70['on']('change:isReady',(_0x3bfe02,_0xc09cab,_0x2737c3)=>{_0x2737c3?_0x5d64e6['hide']():_0x5d64e6['show']();});}}class at extends _0x3d4f9b{['_resizeObserver']=null;constructor(_0x3eebdd,_0xf08bff){super(_0x3eebdd,_0xf08bff);const _0x59e917=this['bindTemplate'];this['set']({'label':m(_0x3eebdd,'Revision\x20name'),'_tooltipString':''}),this['fieldView']['placeholder']=m(_0x3eebdd,'Enter\x20the\x20revision\x20name'),this['extendTemplate']({'tag':'span','attributes':{'class':['ck-revision-history-sidebar__revision-name'],'data-cke-tooltip-text':_0x59e917['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 _0x360969=this['fieldView']['element'];this['_tooltipString']=_0x360969['scrollWidth']>_0x360969['clientWidth']&&_0x360969['value']||'';}}class ri extends ts{constructor(_0x4e4c15,_0x48380a,_0x27232d){super(_0x4e4c15);const _0x21a0b7=new _0x1ba9cd();_0x21a0b7['set']({'content':'<svg\x20viewBox=\x220\x200\x2011\x2010\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22\x20xmlns:xlink=\x22http://www.w3.org/1999/xlink\x22><path\x20d=\x22M5.5\x205C8.538\x205\x2011\x207.015\x2011\x209.5c0\x20.17-.011.336-.034.5H.034A3.732\x203.732\x200\x200\x201\x200\x209.5C0\x207.015\x202.462\x205\x205.5\x205zm0-5a2.5\x202.5\x200\x201\x201\x200\x205\x202.5\x202.5\x200\x200\x201\x200-5z\x22\x20/></svg>\x0a','viewBox':'0\x200\x2011\x2010'});const _0x424999=['ck','ck-revision-history-sidebar__revision-author'];_0x27232d&&_0x424999['push']('ck-revision-history-sidebar__revision-author_creator');const _0x2afb95=[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':m(_0x4e4c15,_0x27232d?'Revision\x20creator':'Revision\x20author')},'children':[_0x21a0b7,_0x48380a['name']]}];this['setTemplate']({'tag':'li','attributes':{'class':_0x424999},'children':_0x2afb95});}}function oi(_0x1f16df,_0x2c504c){const _0x4c4365=_0x1f16df['bindTemplate'],_0x28dc55=_0x1f16df['locale'],_0xa243cc=_0x1ffd4b(_0x28dc55);_0xa243cc['panelPosition']='sw';const _0x483b23=function(_0xbd0cd1,_0x2c10be){const _0x22ca69=function(_0x471ec2,_0x40a100){const _0x411113=_0x471ec2['locale'],_0x1d73f8={'Compare\x20against\x20selected':m(_0x411113,'Compare\x20against\x20selected'),'Name\x20this\x20revision':m(_0x411113,'Name\x20this\x20revision'),'Restore\x20this\x20revision':m(_0x411113,'Restore\x20this\x20revision')};return _0x40a100['map'](_0x32bad0=>{const _0x37544b=_0x1d73f8[_0x32bad0['name']];return _0x37544b&&_0x37544b!==_0x32bad0['name']&&(_0x32bad0['name']=_0x37544b),_0x32bad0;});}(_0xbd0cd1,_0x2c10be),_0x1485a2=new _0x4bd15c();for(const _0x24e737 of _0x22ca69){const _0x2cd56d={'type':'button','model':new _0x45a407({'label':_0x24e737['name'],'class':_0x24e737['class'],'withText':!0x0,'role':'menuitem','_action':_0x24e737['action']})};_0x2cd56d['model']['bind']('isEnabled')['to'](_0xbd0cd1,'isActionsDropdownOpen',_0x3e2bab=>'function'!=typeof _0x24e737['isEnabled']||(!_0x3e2bab||_0x24e737['isEnabled'](_0xbd0cd1))),_0x1485a2['add'](_0x2cd56d);}return _0x1485a2;}(_0x1f16df,_0x2c504c);return _0x1f16df['bind']('isActionsDropdownOpen')['to'](_0xa243cc,'isOpen'),_0xa243cc['buttonView']['set']({'label':m(_0x28dc55,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x123892['threeVerticalDots']}),_0xa243cc['extendTemplate']({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0x4c4365['if']('isActionsDropdownOpen','ck-on')]},'on':{'click':_0x4c4365['to'](_0x546022=>_0x546022['stopPropagation']())}}),_0xa243cc['on']('execute',_0x2a6ac0=>{_0x1f16df['isReady']&&'function'==typeof _0x2a6ac0['source']['_action']&&_0x2a6ac0['source']['_action'](_0x1f16df);}),to(_0xa243cc,_0x483b23,{'role':'menu'}),_0xa243cc['listenTo'](_0x1f16df,'change:isActionsDropdownOpen',(_0x510454,_0x99924b,_0x277d09)=>{if(_0x277d09)for(const _0x35d2bd of _0xa243cc['listView']['items']){const _0x5a272e=_0x35d2bd['children']['first'],_0x1f7399=_0x2c504c['find'](_0x481248=>_0x481248['action']===_0x5a272e['_action'])['isVisible'];_0x35d2bd['isVisible']=void 0x0===_0x1f7399||_0x1f7399(_0x1f16df);}}),_0xa243cc;}class hi extends/* #__PURE__ -- @preserve */
|
|
26
|
+
ti(ts){['id'];['revisionNameView'];['revisionActionsView'];['_revision'];['_requireRevisionName'];constructor(_0x5b4ffe,_0x3f4b7b,_0x57d2c1,_0x5c0510){super(_0x5b4ffe);const _0x1c640e=this['bindTemplate'],_0x21fc11=function(_0x411ad8,_0x22b611){const _0x1ad7a4=Array['from'](_0x22b611['authors'])['filter'](_0x4db884=>_0x4db884!=_0x22b611['creator']);return _0x22b611['creator']&&_0x1ad7a4['unshift'](_0x22b611['creator']),_0x1ad7a4['map'](_0x13a16d=>new ri(_0x411ad8,_0x13a16d,_0x13a16d==_0x22b611['creator']));}(_0x5b4ffe,_0x3f4b7b);this['id']=_0x3f4b7b['id'],this['_revision']=_0x3f4b7b,this['_requireRevisionName']=_0x5c0510,this['bind']('name','createdAt')['to'](_0x3f4b7b),this['bind']('_createdAtFormatted')['to'](this,'createdAt',_0x387377=>{return _0x33976e=_0x5b4ffe['uiLanguage'],(_0x5a41ef=_0x387377)['toLocaleDateString'](_0x33976e,{'month':'long','day':'numeric'})+',\x20'+_0x5a41ef['toLocaleTimeString'](_0x33976e,{'hour':'numeric','minute':'numeric'});var _0x33976e,_0x5a41ef;}),this['set']('isSelected',!0x1),this['set']('isHighlighted',!0x1),this['set']('isActionsDropdownOpen',!0x1),this['set']('isReady',!0x1),this['set']('isEnabled',!0x1),this['revisionNameView']=new at(_0x5b4ffe,_0x55a6a1),this['revisionNameView']['fieldView']['extendTemplate']({'attributes':{'maxlength':'220'}}),this['revisionNameView']['fieldView']['bind']('value')['to'](this,'name',_0xdc1490=>_0xdc1490||this['_createdAtFormatted']),this['revisionNameView']['bind']('isEnabled')['to'](this,'isSelected',this,'isEnabled',(_0x4a662d,_0x252b47)=>_0x4a662d&&_0x252b47),this['revisionActionsView']=_0x57d2c1&&_0x57d2c1['length']?oi(this,_0x57d2c1):'',this['revisionActionsView']&&this['revisionActionsView']['bind']('isEnabled')['to'](this),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision-wrapper',_0x1c640e['if']('isConfirm','ck-revision-history-sidebar__revision-wrapper_confirmation_visible')]},'children':[{'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision',_0x1c640e['if']('isEnabled','ck-disabled',_0x1d2fa9=>!_0x1d2fa9),_0x1c640e['if']('isSelected','ck-revision-history-sidebar__revision_selected'),_0x1c640e['if']('isHighlighted','ck-revision-history-sidebar__revision_highlighted'),_0x1c640e['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':_0x1c640e['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':_0x21fc11}]},this['revisionActionsView']],'on':{'click':_0x1c640e['to'](_0x6ea0f5=>{_0x6ea0f5['srcElement']['closest']('.ck-thread__remove-confirm')||this['isReady']&&this['isEnabled']&&this['fire']('select',{'id':this['id']});})}}]});}['render'](){super['render']();const _0x3c3e03=this['revisionNameView']['fieldView']['element'];this['listenTo'](_0x3c3e03,'change',()=>{this['_requireRevisionName']&&!_0x3c3e03['value']||this['fire']('setName',{'id':this['id'],'name':_0x3c3e03['value']}),_0x3c3e03['value']||(_0x3c3e03['value']=this['name']?this['name']:this['_createdAtFormatted']);});}['select'](){this['isSelected']=!0x0;}['deselect'](){this['isSelected']=!0x1;}['highlight'](){this['isHighlighted']=!0x0;}['unhighlight'](){this['isHighlighted']=!0x1;}}function mi(_0x1537b4,_0x162018){const _0x129d16=_0x4c2825['fromJSDate'](_0x1537b4)['setLocale'](_0x162018),_0x14108f=_0x4c2825['local'](),_0x37c879=_0x14108f['minus']({'days':0x1})['startOf']('day');let _0x49e9f0,_0x4f6edb;return _0x129d16['hasSame'](_0x14108f,'day')?(_0x49e9f0=_0x129d16['startOf']('day')['toJSDate'](),_0x4f6edb=_0x129d16['toRelativeCalendar']()):_0x129d16['hasSame'](_0x37c879,'day')?(_0x49e9f0=_0x37c879['toJSDate'](),_0x4f6edb=_0x129d16['toRelativeCalendar']()):_0x129d16['hasSame'](_0x14108f,'week')?(_0x49e9f0=_0x129d16['startOf']('week')['toJSDate'](),_0x4f6edb=_0x129d16['weekdayLong']||''):_0x129d16['hasSame'](_0x14108f,'year')?(_0x49e9f0=_0x129d16['startOf']('month')['toJSDate'](),_0x4f6edb=_0x129d16['monthLong']||''):(_0x49e9f0=_0x129d16['startOf']('year')['toJSDate'](),_0x4f6edb=String(_0x129d16['year'])),{'startDate':_0x49e9f0,'localizedPeriodName':_0x4f6edb};}class vi extends ts{['startDate'];['revisionViews'];['_revisionActions'];['_requireRevisionName'];constructor(_0x551739,_0x592331,_0xea31d9,_0x1051ab){super(_0x551739);const _0x2f8c81=mi(_0x592331,this['locale']['uiLanguage'])['localizedPeriodName'];this['startDate']=_0x592331,this['revisionViews']=this['createCollection'](),this['_revisionActions']=_0xea31d9,this['_requireRevisionName']=_0x1051ab,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':_0x2f8c81}]},{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__time-period__revisions']},'children':this['revisionViews']}]});}['addRevision'](_0x4cff1c){const _0x1cfdf0=new hi(this['locale'],_0x4cff1c,this['_revisionActions'],this['_requireRevisionName']);this['revisionViews']['add'](_0x1cfdf0);}['removeRevision'](_0x4739de){const _0x62eab5=this['revisionViews']['find'](_0x3ddb74=>_0x3ddb74['id']===_0x4739de['id']);this['revisionViews']['remove'](_0x62eab5);}}class as extends ts{constructor(_0x536c73){super(_0x536c73);const _0x57b49d=new _0x1ba9cd();_0x57b49d['content']=_0x123892['history'],this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all','ck-revision-history-sidebar__header']},'children':[_0x57b49d,{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__header__label']},'children':[m(_0x536c73,'Revision\x20history')]}]});}}class di extends ts{['timePeriodViews'];['_revisions'];['_revisionActions'];['_requireRevisionName'];constructor(_0x524151,_0x4e92c0,_0x2a4599,_0x128bca){super(_0x524151);const _0x30b50f=this['bindTemplate'];this['timePeriodViews']=this['createCollection'](),this['timePeriodViews']['delegate']('select')['to'](this),this['timePeriodViews']['delegate']('setName')['to'](this),this['_revisions']=_0x4e92c0,this['_revisionActions']=_0x2a4599,this['_requireRevisionName']=_0x128bca,this['on']('select',(_0x25296f,_0x1511dd)=>{this['fire']('revisionSelected',_0x1511dd);}),this['on']('setName',(_0x28f329,_0x4487e5)=>{this['fire']('revisionSetName',_0x4487e5);}),this['set']('isEnabled',!0x1),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-rounded-corners','ck-revision-history-sidebar']},'children':[new as(_0x524151),{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__timeline',_0x30b50f['if']('isEnabled','ck-disabled',_0x2a8312=>!_0x2a8312)]},'children':this['timePeriodViews']}]});}['render'](){super['render']();for(const _0x55d49e of this['_revisions'])this['_addRevision'](_0x55d49e);this['_revisions']['on']('add',(_0x22f91c,_0x500d63)=>{this['_addRevision'](_0x500d63);}),this['_revisions']['on']('remove',(_0xf3e2bd,_0x49c5ec)=>{this['_removeRevision'](_0x49c5ec);});}get['revisionViews'](){return this['timePeriodViews']['map'](_0x5ef19a=>_0x5ef19a['revisionViews']['map'](_0x464ee4=>_0x464ee4))['flat']();}['selectRevision'](_0x19c5fe){for(const _0x2b1492 of this['revisionViews'])_0x19c5fe&&_0x19c5fe['id']===_0x2b1492['id']?_0x2b1492['select']():_0x2b1492['deselect']();}['highlightRevisions'](_0xa3105e){for(const _0x260707 of this['revisionViews'])_0xa3105e['some'](({id:_0x4295eb})=>_0x4295eb===_0x260707['id'])?_0x260707['highlight']():_0x260707['unhighlight']();}['_addRevision'](_0x1d01fb){const _0x3ca340=mi(_0x1d01fb['createdAt'],this['locale']['uiLanguage'])['startDate'];let _0x419548=this['timePeriodViews']['get'](0x0);_0x419548&&_0x419548['startDate']['getTime']()===_0x3ca340['getTime']()||(_0x419548=new vi(this['locale'],_0x3ca340,this['_revisionActions'],this['_requireRevisionName']),this['timePeriodViews']['add'](_0x419548)),_0x419548['addRevision'](_0x1d01fb);}['_removeRevision'](_0x38f45f){const _0x1fca32=mi(_0x38f45f['createdAt'],this['locale']['uiLanguage'])['startDate'];this['_getTimePeriodViewByStartDate'](_0x1fca32)['removeRevision'](_0x38f45f);}['_getTimePeriodViewByStartDate'](_0x3f9212){return this['timePeriodViews']['find'](_0x2d31b6=>_0x2d31b6['startDate']['getTime']()===_0x3f9212['getTime']());}}class w extends _0x5a9002{['_revisionViewer'];['_revisionsRepository'];['_sidebarView'];static ['defaultRevisionActions']=/* #__PURE__ -- @preserve */
|
|
27
27
|
((()=>['compareAgainstSelected','restoreRevision','nameRevision'])());static ['availableRevisionActions']=/* #__PURE__ -- @preserve */
|
|
28
|
-
yt();static get['pluginName'](){return'RevisionsSidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[d];}constructor(
|
|
29
|
-
it(tt){['_ui'];get['ui'](){return this['_ui'];}constructor(_0x43dc3f,_0x1b7e07){super(_0x1b7e07),this['sourceElement']=_0x43dc3f,this['model']['document']['createRoot']();const _0x4690d4=new et(this['locale'],this['editing']['view'],{'shouldToolbarGroupWhenFull':!0x0});this['_ui']=new rt(this,_0x4690d4);}['destroy'](){return this['updateSourceElement'](),this['ui']['destroy'](),super['destroy']();}static async['create'](_0x305338,_0x54d38f){const _0xeb8c83=new this(_0x305338,_0x54d38f);return await _0xeb8c83['initPlugins'](),await _0xeb8c83['ui']['init'](_0x305338),await _0xeb8c83['data']['init'](_0xeb8c83['config']['get']('initialData')||''),_0xeb8c83['fire']('ready'),_0xeb8c83;}}const p=['RevisionHistoryUI','RestrictedEditingMode'];class bt extends _0x2a51c8{['result'];static get['pluginName'](){return'RevisionViewerIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x2a7032){function _0x8487ac(_0x150ecb){return _0x150ecb['map'](_0x515477=>String['fromCharCode'](_0x515477))['join']('');}super(_0x2a7032),this['result']='end',_0x2a7032[_0x8487ac([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x8487ac([0x76,0x69,0x65,0x77])][_0x8487ac([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x8487ac([0x61,0x75,0x74,0x6f]),_0x2a7032[_0x8487ac([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x8487ac([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x8487ac([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x8487ac([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x8487ac([0x6f,0x6b])});}}class k extends _0x2a51c8{['_viewerEditor'];static get['pluginName'](){return'RevisionHistory';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[l,u];}constructor(_0x1035de){if(super(_0x1035de),!this['editor']['config']['get']('revisionHistory'))throw new _0x149bef('revision-history-missing-configuration',this);this['_viewerEditor']=null,this['editor']['config']['define']('revisionHistory.showRevisionViewerCallback',_0x4045ec=>this['_showRevisionViewer']({..._0x4045ec,'translations':this['editor']['locale']['translations']})),this['editor']['config']['define']('revisionHistory.closeRevisionViewerCallback',_0x507f35=>this['_closeRevisionViewer'](_0x507f35)),this['editor']['config']['define']('revisionHistory.restoreRevisionCallback',_0x192dd7=>this['_restoreRevision'](_0x192dd7)),this['editor']['config']['define']('revisionHistory.requireRevisionName',!0x1),this['_enhanceShowRevisionViewerCallback'](),this['_enhanceCloseRevisionViewerCallback']();}set['adapter'](_0xc70719){this['editor']['plugins']['get']('RevisionTracker')['adapter']=_0xc70719;}get['adapter'](){return this['editor']['plugins']['get']('RevisionTracker')['adapter'];}['addRevisionData'](_0x241d37){return this['editor']['plugins']['get']('RevisionTracker')['addRevisionData'](_0x241d37);}['getRevision'](_0x2efbaf){return this['editor']['plugins']['get']('RevisionsRepository')['getRevision'](_0x2efbaf);}['getRevisions'](_0x3fd385){return this['editor']['plugins']['get']('RevisionsRepository')['getRevisions'](_0x3fd385||{'toJSON':!0x1});}['_getRevisionViewerEditorConfig'](){const _0xd545f8=this['editor'],_0x2fc985=_0x1f9b0c(_0xd545f8,p),_0x2a2fcf=_0xd545f8['plugins']['get']('RevisionTracker'),_0x374d3f=_0xd545f8['plugins']['get']('Users')['users'];return _0x2fc985['toolbar']=['exitToEditing','restoreRevision','changesNavigation'],delete _0x2fc985['lazyRoots'],(_0x2fc985['plugins']['push'](bt,d,g,class extends _0x2a51c8{static get['requires'](){return[d,'Users'];}['init'](){const _0x2f357c=this['editor']['plugins']['get']('Users');for(const _0x16ff7c of _0x374d3f)_0x16ff7c['isAnonymous']||_0x2f357c['getUser'](_0x16ff7c['id'])||_0x2f357c['addUser'](_0x16ff7c);const _0x2bd70a=_0x2a2fcf['repository']['getRevisions']();let _0x2c41cb=null;const _0x38a9f1=this['editor']['plugins']['get']('RevisionViewer');_0x38a9f1['adapter']=_0x2a2fcf['adapter'],_0x38a9f1['bind']('isEnabled')['to'](_0x2a2fcf),this['editor']['commands']['get']('restoreRevision')['bind']('isEnabled')['to'](_0xd545f8,'isReadOnly',_0x3af8e4=>!_0x3af8e4);for(const _0x16ac3e of _0x2bd70a){const _0x53dcb0=null===_0x16ac3e['creator'];if(_0x53dcb0&&_0x16ac3e['toVersion']===_0x16ac3e['fromVersion'])continue;const _0x18c073=_0x16ac3e['toJSON']();_0x38a9f1['addRevisionData'](_0x18c073,(_0x1723db,_0x5a9c63,_0x5df914)=>{if(_0x53dcb0){if(_0x2c41cb)_0x2c41cb['_update'](_0x1723db,_0x5a9c63);else{if(!_0x5a9c63){const _0x33fefc=_0x5df914['toJSON']();_0x33fefc['id']=_0x58d578(),_0x2a2fcf['saveRevision'](_0x33fefc,_0x5df914['toVersion'])['then'](_0x59618d=>{_0x2c41cb=_0x59618d;});}}}else _0x16ac3e['_update'](_0x1723db,_0x5a9c63);});}}},w),_0x2fc985);}['_enhanceShowRevisionViewerCallback'](){const _0x2b129a=this['editor']['config']['get']('revisionHistory')['showRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.showRevisionViewerCallback',async()=>{this['editor']['enableReadOnlyMode']('revision-history-viewer-opened');const _0x12c5fa=this['editor']['plugins']['get']('RevisionTracker');if(this['editor']['plugins']['has']('Autosave')){const _0x489ce9=this['editor']['plugins']['get']('Autosave');await _0x489ce9['save']();}else await _0x12c5fa['update']();if(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('Dialog')){const _0x53c27c=this['editor']['plugins']['get']('Dialog');_0x53c27c['isOpen']&&_0x53c27c['hide']();}const _0x225ae9=this['_getRevisionViewerEditorConfig']();return _0x2b129a(_0x225ae9)['then'](_0x419e3a=>{return(this['_viewerEditor']=_0x419e3a,this['editor']['plugins']['has']('Annotations'))&&this['editor']['plugins']['get']('Annotations')['refreshVisibility'](),_0x419e3a;})['catch'](_0x2a93df=>(console['error'](_0x2a93df),this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),null));});}['_enhanceCloseRevisionViewerCallback'](){const _0x51896f=this['editor']['config']['get']('revisionHistory')['closeRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.closeRevisionViewerCallback',()=>(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['_viewerEditor']['plugins']['get']('RevisionViewer')['_cleanUp'](),_0x51896f(this['_viewerEditor'])['then'](()=>{if(this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),this['_viewerEditor']=null,this['editor']['plugins']['has']('Annotations')){const _0x450b46=this['editor']['plugins']['get']('Annotations');_0x450b46['refreshVisibility'](),_0x450b46['refreshPositioning']();}})));}['_showRevisionViewer'](_0x4d5220){const _0x22d12d=this['editor']['config']['get']('revisionHistory.editorContainer'),_0x2917b6=this['editor']['config']['get']('revisionHistory.viewerContainer'),_0x2b1e15=this['editor']['config']['get']('revisionHistory.viewerEditorElement');return R['create'](_0x2b1e15,_0x4d5220)['then'](_0x572be9=>(_0x2917b6['style']['display']='block',_0x22d12d['style']['display']='none',_0x572be9));}['_closeRevisionViewer'](_0x1ea672){const _0x1346f4=this['editor']['config']['get']('revisionHistory.editorContainer');return this['editor']['config']['get']('revisionHistory.viewerContainer')['style']['display']='none',_0x1346f4['style']['display']='',_0x1ea672['destroy']();}async['_restoreRevision'](_0x41ccea){const _0x43d933=this['editor'],_0x10f06=this['_viewerEditor']['plugins']['get']('RevisionViewer'),_0x49c127=_0x43d933['plugins']['get']('RevisionTracker'),_0xb6b077=_0x10f06['repository']['getRevision'](_0x41ccea);let _0x348b14,_0x2ee329,_0x19a109;try{_0x348b14=await _0x10f06['getRevisionData'](_0xb6b077),_0x2ee329=await _0x10f06['getRevisionRootsAttributes'](_0xb6b077);}catch(_0x45252c){return void console['error'](_0x45252c);}_0x43d933['model']['change'](_0x128f9e=>{for(const _0x337b6a of Array['from'](_0x43d933['model']['markers']['getMarkersGroup']('restrictedEditingException')))_0x128f9e['removeMarker'](_0x337b6a);}),_0x10f06['isReady']=!0x1,_0x43d933['model']['enqueueChange'](_0x33318f=>{_0x33318f['setSelection'](null),_0x33318f['removeSelectionAttribute'](_0x43d933['model']['document']['selection']['getAttributeKeys']());const _0x290fe5=Object['keys'](_0x348b14);for(const _0x1e8882 of _0x43d933['model']['document']['roots'])'$graveyard'!=_0x1e8882['rootName']&&_0x1e8882['isAttached']()&&!_0x290fe5['includes'](_0x1e8882['rootName'])&&_0x33318f['detachRoot'](_0x1e8882);for(const _0x14f41a of _0x290fe5){let _0x411d91=_0x43d933['model']['document']['getRoot'](_0x14f41a);_0x411d91&&_0x411d91['isAttached']()||(_0x411d91=_0x33318f['addRoot'](_0x14f41a));const _0x29744d=_0x2ee329[_0x14f41a],_0x11fca6=Object['keys'](_0x29744d),_0x44897c=_0x348b14[_0x14f41a];for(const _0x46d0c7 of _0x411d91['getAttributeKeys']())_0x11fca6['includes'](_0x46d0c7)||_0x33318f['removeAttribute'](_0x46d0c7,_0x411d91);for(const _0x328fe3 of _0x11fca6)_0x33318f['setAttribute'](_0x328fe3,_0x2ee329[_0x14f41a][_0x328fe3],_0x411d91);_0x33318f['remove'](_0x33318f['createRangeIn'](_0x411d91)),_0x33318f['insert'](_0x43d933['data']['parse'](_0x44897c,_0x411d91),_0x411d91,0x0);}});const _0x149eb3=m(_0x43d933['locale'],'Restored');if(_0xb6b077['name'])_0x19a109=-0x1==_0xb6b077['name']['indexOf'](_0x149eb3)?_0x149eb3+':\x20'+_0xb6b077['name']:_0xb6b077['name'];else _0x19a109=_0x149eb3+':\x20'+(_0xb6b077['createdAt']['toLocaleDateString'](_0x43d933['locale']['uiLanguage'],{'month':'long','day':'numeric'})+',\x20'+_0xb6b077['createdAt']['toLocaleTimeString'](_0x43d933['locale']['uiLanguage'],{'hour':'numeric','minute':'numeric'}));return await _0x49c127['saveRevision']({'name':_0x19a109}),_0x10f06['isReady']=!0x0,_0x43d933['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}}export{a as Revision,k as RevisionHistory,u as RevisionHistoryUI,l as RevisionTracker,d as RevisionViewer,ge as RevisionViewerLoadingOverlay,g as RevisionViewerUI,j as RevisionsRepository,w as RevisionsSidebar};
|
|
28
|
+
yt();static get['pluginName'](){return'RevisionsSidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[d];}constructor(_0xd05ddd){super(_0xd05ddd),this['_revisionViewer']=_0xd05ddd['plugins']['get'](d),this['_revisionsRepository']=this['_revisionViewer']['repository'],this['_sidebarView']=null;}['init'](){const _0x1d3977=this['_revisionsRepository']['_revisions'],_0x1eb225=this['_createRevisionActions'](),_0x29a717=this['editor']['config']['get']('revisionHistory.viewerSidebarContainer');this['_sidebarView']=new di(this['editor']['locale'],_0x1d3977,_0x1eb225,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',(_0x4d432a,_0x3b2778)=>{_0x3b2778['revisionViews']['on']('add',(_0x2f1b5d,_0x39aeda)=>{_0x39aeda['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)),_0x29a717['appendChild'](this['_sidebarView']['element']);}['destroy'](){this['_sidebarView']['element']['remove'](),this['_sidebarView']['destroy']();}['_handleEditorDataReady'](){const _0x583c8b=this['_revisionsRepository']['getRevision'](0x0);if(_0x583c8b){const _0x3c584c=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x583c8b['id']);this['_revisionViewer']['compare'](_0x583c8b,_0x3c584c);}}['_handleRevisionSelected'](_0x3e5090,_0x5711f7){const _0x17c1c0=this['_revisionsRepository']['getRevision'](_0x5711f7['id']),_0x3fbfd2=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x17c1c0['id']);this['_revisionViewer']['compare'](_0x17c1c0,_0x3fbfd2);}['_handleRevisionSetName'](_0x5ae97e,_0x3262d0){this['_revisionsRepository']['getRevision'](_0x3262d0['id'])['setName'](_0x3262d0['name']);}['_handleDiffChange'](_0x11f1fa,_0x54402b,_0x25138a){const _0x14c9b2=this['_revisionsRepository']['getRevisionsInDiff'](_0x25138a);_0x14c9b2['length']>0x2?(this['_sidebarView']['highlightRevisions'](_0x14c9b2),this['_sidebarView']['selectRevision'](null)):(this['_sidebarView']['highlightRevisions']([]),this['_sidebarView']['selectRevision'](_0x14c9b2[0x0]));}['_createRevisionActions'](){const _0x4b0846=this['editor'],_0x4d4d18=w['availableRevisionActions'],_0x1513ef=_0x4b0846['config']['get']('revisionHistory.revisionActions')||w['defaultRevisionActions'];if(_0x1513ef['length'])return _0x1513ef['map'](_0x100bf1=>{const _0x4bea31='string'==typeof _0x100bf1?Object['assign']({},_0x4d4d18[_0x100bf1]):_0x100bf1;return _0x4bea31['action']=_0x4bea31['action']['bind'](this,_0x4b0846),_0x4bea31['isVisible']&&(_0x4bea31['isVisible']=_0x4bea31['isVisible']['bind'](this,_0x4b0846)),_0x4bea31;});}}function yt(){return{'compareAgainstSelected':{'name':'Compare\x20against\x20selected','action':({plugins:_0x4f3464},_0x50fc9c)=>{const _0x582108=_0x4f3464['get'](d),_0x442b0a=_0x582108['repository'];let _0x4c888d=_0x582108['diff']['newRevisionId'],_0x32e5b6=_0x50fc9c['id'];_0x442b0a['getIndex'](_0x4c888d)>_0x442b0a['getIndex'](_0x32e5b6)&&([_0x4c888d,_0x32e5b6]=[_0x32e5b6,_0x4c888d]),_0x582108['compare'](_0x4c888d,_0x32e5b6);},'isVisible':({plugins:_0xcafc80},_0x23f4b4)=>{const _0x80ddf4=_0xcafc80['get'](d);return!(_0x80ddf4['repository']['getRevisionsInDiff'](_0x80ddf4['diff'])['length']>0x2)&&!_0x23f4b4['isSelected'];}},'restoreRevision':{'name':'Restore\x20this\x20revision','action':(_0x1dd8cb,{id:_0x5a364f})=>{_0x1dd8cb['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x5a364f);},'isVisible':({plugins:_0xe70fa6},_0x468750)=>!!_0xe70fa6['get'](d)['repository']['getLaterVisibleRevision'](_0x468750['id'])},'nameRevision':{'name':'Name\x20this\x20revision','action':({plugins:_0x23e36e},{id:_0x31421a,revisionNameView:_0x441287})=>{const _0x58f8cb=_0x23e36e['get'](d),_0x1674c2=_0x58f8cb['repository']['getEarlierVisibleRevision'](_0x31421a);_0x58f8cb['compare'](_0x31421a,_0x1674c2),_0x441287['focus'](),_0x441287['fieldView']['select']();}}};}class rt extends st{['_view'];['_toolbarConfig'];['_elementReplacer'];get['view'](){return this['_view'];}constructor(_0x1c799e,_0x2de783){super(_0x1c799e),this['_view']=_0x2de783,this['_toolbarConfig']=ot(_0x1c799e['config']['get']('toolbar')),this['_elementReplacer']=new ht();}get['element'](){return this['view']['element'];}['init'](_0xf99c30){const _0x28dfc9=this['editor'],_0x26d07a=this['view'],_0x4106d7=_0x28dfc9['editing']['view'],_0x4da665=_0x26d07a['editable'],_0x941305=_0x4106d7['document']['getRoot']();_0x4da665['name']=_0x941305['rootName'],_0x26d07a['render']();const _0x26a649=_0x4da665['element'];this['setEditableElement'](_0x4da665['name'],_0x26a649),_0x26d07a['editable']['bind']('isFocused')['to'](this['focusTracker']),_0x4106d7['attachDomRoot'](_0x26a649),this['_elementReplacer']['replace'](_0xf99c30,this['element']),this['_initToolbar'](),this['fire']('ready');}['destroy'](){super['destroy']();const _0x4e9ea4=this['view'],_0x21755d=this['editor']['editing']['view'];this['_elementReplacer']['restore'](),_0x21755d['detachDomRoot'](_0x4e9ea4['editable']['name']),_0x4e9ea4['destroy']();}['_initToolbar'](){const _0x341497=this['view'];_0x341497['stickyPanel']['bind']('isActive')['to'](this['focusTracker'],'isFocused'),_0x341497['stickyPanel']['limiterElement']=_0x341497['element'],_0x341497['stickyPanel']['bind']('viewportTopOffset')['to'](this,'viewportOffset',({top:_0x86ffcb})=>_0x86ffcb),_0x341497['toolbar']['fillFromConfig'](this['_toolbarConfig'],this['componentFactory']),this['addToolbar'](_0x341497['toolbar']);}}class et extends ct{['_editable'];['stickyPanel'];['toolbar'];get['editable'](){return this['_editable'];}constructor(_0x1eb97d,_0x399528,_0x184d6a={}){super(_0x1eb97d),this['stickyPanel']=new ut(_0x1eb97d),this['toolbar']=new lt(_0x1eb97d,{'shouldGroupWhenFull':_0x184d6a['shouldToolbarGroupWhenFull']}),this['_editable']=new dt(_0x1eb97d,_0x399528);}['render'](){super['render'](),this['stickyPanel']['content']['add'](this['toolbar']),this['top']['add'](this['stickyPanel']),this['main']['add'](this['editable']);}}class R extends/* #__PURE__ -- @preserve */
|
|
29
|
+
it(tt){['_ui'];get['ui'](){return this['_ui'];}constructor(_0xfce994,_0x1b10ed){super(_0x1b10ed),this['sourceElement']=_0xfce994,this['model']['document']['createRoot']();const _0x3de04c=new et(this['locale'],this['editing']['view'],{'shouldToolbarGroupWhenFull':!0x0});this['_ui']=new rt(this,_0x3de04c);}['destroy'](){return this['updateSourceElement'](),this['ui']['destroy'](),super['destroy']();}static async['create'](_0x38dd78,_0xaab213){const _0x424e8b=new this(_0x38dd78,_0xaab213);return await _0x424e8b['initPlugins'](),await _0x424e8b['ui']['init'](_0x38dd78),await _0x424e8b['data']['init'](_0x424e8b['config']['get']('initialData')||''),_0x424e8b['fire']('ready'),_0x424e8b;}}const p=['RevisionHistoryUI','RestrictedEditingMode'];class bt extends _0x5a9002{['result'];static get['pluginName'](){return'RevisionViewerIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x31a15b){function _0x4f467e(_0x5dc9b5){return _0x5dc9b5['map'](_0x2c9204=>String['fromCharCode'](_0x2c9204))['join']('');}super(_0x31a15b),this['result']='end',_0x31a15b[_0x4f467e([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4f467e([0x76,0x69,0x65,0x77])][_0x4f467e([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x4f467e([0x61,0x75,0x74,0x6f]),_0x31a15b[_0x4f467e([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x4f467e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x4f467e([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x4f467e([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x4f467e([0x6f,0x6b])});}}class k extends _0x5a9002{['_viewerEditor'];static get['pluginName'](){return'RevisionHistory';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[l,u];}constructor(_0x3690f3){if(super(_0x3690f3),!this['editor']['config']['get']('revisionHistory'))throw new _0x53925d('revision-history-missing-configuration',this);this['_viewerEditor']=null,this['editor']['config']['define']('revisionHistory.showRevisionViewerCallback',_0x676d4d=>this['_showRevisionViewer']({..._0x676d4d,'translations':this['editor']['locale']['translations']})),this['editor']['config']['define']('revisionHistory.closeRevisionViewerCallback',_0x4a4d87=>this['_closeRevisionViewer'](_0x4a4d87)),this['editor']['config']['define']('revisionHistory.restoreRevisionCallback',_0x4e0835=>this['_restoreRevision'](_0x4e0835)),this['editor']['config']['define']('revisionHistory.requireRevisionName',!0x1),this['_enhanceShowRevisionViewerCallback'](),this['_enhanceCloseRevisionViewerCallback']();}set['adapter'](_0x16d9dc){this['editor']['plugins']['get']('RevisionTracker')['adapter']=_0x16d9dc;}get['adapter'](){return this['editor']['plugins']['get']('RevisionTracker')['adapter'];}['addRevisionData'](_0x47d8e2){return this['editor']['plugins']['get']('RevisionTracker')['addRevisionData'](_0x47d8e2);}['getRevision'](_0x47f2f5){return this['editor']['plugins']['get']('RevisionsRepository')['getRevision'](_0x47f2f5);}['getRevisions'](_0x53dd94){return this['editor']['plugins']['get']('RevisionsRepository')['getRevisions'](_0x53dd94||{'toJSON':!0x1});}['_getRevisionViewerEditorConfig'](){const _0xf1d603=this['editor'],_0x5a2530=_0x488052(_0xf1d603,p),_0xf10434=_0xf1d603['plugins']['get']('RevisionTracker'),_0x33d910=_0xf1d603['plugins']['get']('Users')['users'];return _0x5a2530['toolbar']=['exitToEditing','restoreRevision','changesNavigation'],delete _0x5a2530['lazyRoots'],(_0x5a2530['plugins']['push'](bt,d,g,class extends _0x5a9002{static get['requires'](){return[d,'Users'];}['init'](){const _0x455908=this['editor']['plugins']['get']('Users');for(const _0x13e7d3 of _0x33d910)_0x13e7d3['isAnonymous']||_0x455908['getUser'](_0x13e7d3['id'])||_0x455908['addUser'](_0x13e7d3);const _0x381c40=_0xf10434['repository']['getRevisions']();let _0xccfc02=null;const _0x2bad16=this['editor']['plugins']['get']('RevisionViewer');_0x2bad16['adapter']=_0xf10434['adapter'],_0x2bad16['bind']('isEnabled')['to'](_0xf10434),this['editor']['commands']['get']('restoreRevision')['bind']('isEnabled')['to'](_0xf1d603,'isReadOnly',_0x4e4e4b=>!_0x4e4e4b);for(const _0x114c44 of _0x381c40){const _0x529bdb=null===_0x114c44['creator'];if(_0x529bdb&&_0x114c44['toVersion']===_0x114c44['fromVersion'])continue;const _0x4e674a=_0x114c44['toJSON']();_0x2bad16['addRevisionData'](_0x4e674a,(_0x431945,_0x140dc6,_0x3f2468)=>{if(_0x529bdb){if(_0xccfc02)_0xccfc02['_update'](_0x431945,_0x140dc6);else{if(!_0x140dc6){const _0x2f144e=_0x3f2468['toJSON']();_0x2f144e['id']=_0x2bee71(),_0xf10434['saveRevision'](_0x2f144e,_0x3f2468['toVersion'])['then'](_0x1dbffb=>{_0xccfc02=_0x1dbffb;});}}}else _0x114c44['_update'](_0x431945,_0x140dc6);});}}},w),_0x5a2530);}['_enhanceShowRevisionViewerCallback'](){const _0x44fb72=this['editor']['config']['get']('revisionHistory')['showRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.showRevisionViewerCallback',async()=>{this['editor']['enableReadOnlyMode']('revision-history-viewer-opened');const _0x2b10b4=this['editor']['plugins']['get']('RevisionTracker');if(this['editor']['plugins']['has']('Autosave')){const _0x636804=this['editor']['plugins']['get']('Autosave');await _0x636804['save']();}else await _0x2b10b4['update']();if(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('Dialog')){const _0x965038=this['editor']['plugins']['get']('Dialog');_0x965038['isOpen']&&_0x965038['hide']();}const _0x42d47f=this['_getRevisionViewerEditorConfig']();return _0x44fb72(_0x42d47f)['then'](_0x1d28d4=>{return(this['_viewerEditor']=_0x1d28d4,this['editor']['plugins']['has']('Annotations'))&&this['editor']['plugins']['get']('Annotations')['refreshVisibility'](),_0x1d28d4;})['catch'](_0x33a313=>(console['error'](_0x33a313),this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),null));});}['_enhanceCloseRevisionViewerCallback'](){const _0x29be59=this['editor']['config']['get']('revisionHistory')['closeRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.closeRevisionViewerCallback',()=>(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['_viewerEditor']['plugins']['get']('RevisionViewer')['_cleanUp'](),_0x29be59(this['_viewerEditor'])['then'](()=>{if(this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),this['_viewerEditor']=null,this['editor']['plugins']['has']('Annotations')){const _0x12db97=this['editor']['plugins']['get']('Annotations');_0x12db97['refreshVisibility'](),_0x12db97['refreshPositioning']();}})));}['_showRevisionViewer'](_0x536213){const _0x3c72f4=this['editor']['config']['get']('revisionHistory.editorContainer'),_0x5b54da=this['editor']['config']['get']('revisionHistory.viewerContainer'),_0xebfbb5=this['editor']['config']['get']('revisionHistory.viewerEditorElement');return R['create'](_0xebfbb5,_0x536213)['then'](_0x9bd923=>(_0x5b54da['style']['display']='block',_0x3c72f4['style']['display']='none',_0x9bd923));}['_closeRevisionViewer'](_0x512f22){const _0x5dab37=this['editor']['config']['get']('revisionHistory.editorContainer');return this['editor']['config']['get']('revisionHistory.viewerContainer')['style']['display']='none',_0x5dab37['style']['display']='',_0x512f22['destroy']();}async['_restoreRevision'](_0x3f9609){const _0x454319=this['editor'],_0x3d0a79=this['_viewerEditor']['plugins']['get']('RevisionViewer'),_0x70caef=_0x454319['plugins']['get']('RevisionTracker'),_0x2ecd42=_0x3d0a79['repository']['getRevision'](_0x3f9609);let _0x3fcaad,_0x112bfe,_0x37faf2;try{_0x3fcaad=await _0x3d0a79['getRevisionData'](_0x2ecd42),_0x112bfe=await _0x3d0a79['getRevisionRootsAttributes'](_0x2ecd42);}catch(_0xa15985){return void console['error'](_0xa15985);}_0x454319['model']['change'](_0x2d1ed2=>{for(const _0x385511 of Array['from'](_0x454319['model']['markers']['getMarkersGroup']('restrictedEditingException')))_0x2d1ed2['removeMarker'](_0x385511);}),_0x3d0a79['isReady']=!0x1,_0x454319['model']['enqueueChange'](_0x327403=>{_0x327403['setSelection'](null),_0x327403['removeSelectionAttribute'](_0x454319['model']['document']['selection']['getAttributeKeys']());const _0x1ce190=Object['keys'](_0x3fcaad);for(const _0x433b82 of _0x454319['model']['document']['roots'])'$graveyard'!=_0x433b82['rootName']&&_0x433b82['isAttached']()&&!_0x1ce190['includes'](_0x433b82['rootName'])&&_0x327403['detachRoot'](_0x433b82);for(const _0x3d0657 of _0x1ce190){let _0x140d29=_0x454319['model']['document']['getRoot'](_0x3d0657);_0x140d29&&_0x140d29['isAttached']()||(_0x140d29=_0x327403['addRoot'](_0x3d0657));const _0x2084c1=_0x112bfe[_0x3d0657],_0x5438bb=Object['keys'](_0x2084c1),_0x42c676=_0x3fcaad[_0x3d0657];for(const _0x13f003 of _0x140d29['getAttributeKeys']())_0x5438bb['includes'](_0x13f003)||_0x327403['removeAttribute'](_0x13f003,_0x140d29);for(const _0x4fcc04 of _0x5438bb)_0x327403['setAttribute'](_0x4fcc04,_0x112bfe[_0x3d0657][_0x4fcc04],_0x140d29);_0x327403['remove'](_0x327403['createRangeIn'](_0x140d29)),_0x327403['insert'](_0x454319['data']['parse'](_0x42c676,_0x140d29),_0x140d29,0x0);}});const _0x5923e8=m(_0x454319['locale'],'Restored');if(_0x2ecd42['name'])_0x37faf2=-0x1==_0x2ecd42['name']['indexOf'](_0x5923e8)?_0x5923e8+':\x20'+_0x2ecd42['name']:_0x2ecd42['name'];else _0x37faf2=_0x5923e8+':\x20'+(_0x2ecd42['createdAt']['toLocaleDateString'](_0x454319['locale']['uiLanguage'],{'month':'long','day':'numeric'})+',\x20'+_0x2ecd42['createdAt']['toLocaleTimeString'](_0x454319['locale']['uiLanguage'],{'hour':'numeric','minute':'numeric'}));return await _0x70caef['saveRevision']({'name':_0x37faf2}),_0x3d0a79['isReady']=!0x0,_0x454319['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}}export{a as Revision,k as RevisionHistory,u as RevisionHistoryUI,l as RevisionTracker,d as RevisionViewer,de as RevisionViewerLoadingOverlay,g as RevisionViewerUI,j as RevisionsRepository,w as RevisionsSidebar};
|