@ckeditor/ckeditor5-revision-history 47.2.0-alpha.4 → 47.2.0-alpha.5
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 +7 -7
- package/package.json +12 -12
- package/src/revisionsrepository.js +1 -1
- package/src/ui/revision/createrevisionactionsdropdown.js +1 -1
- package/src/ui/revision/revisionauthorview.js +1 -1
- package/src/ui/revision/revisionnameview.js +1 -1
- package/src/ui/revision/revisionview.js +2 -2
- package/src/ui/revision/subrevisioncollapserview.js +1 -1
- package/src/ui/revision/subrevisionview.js +1 -1
- package/src/ui/revisionhistory/revisionhistorysaverevisionformview.js +2 -2
- package/src/ui/revisionhistory/revisionhistoryui.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebar.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebarheaderview.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebartimeperiodview.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebarview.js +1 -1
- package/src/ui/revisionssidebar/utils.js +1 -1
- package/src/ui/revisionviewer/changedetailsview.js +1 -1
- package/src/ui/revisionviewer/changesnavigationview.js +1 -1
- package/src/ui/revisionviewer/revisionviewerui.js +1 -1
package/dist/index.js
CHANGED
|
@@ -20,11 +20,11 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{ObservableMixin as
|
|
24
|
-
_0x19ac11(){['id'];['creator'];['authors'];['diffData'];['toVersion'];['fromVersion'];['model'];constructor(_0xbd27b1){super(),this['id']=_0xbd27b1['id']||_0x196f07(),this['creator']=_0xbd27b1['creator']||null,this['authors']=_0xbd27b1['authors']||[],this['diffData']=_0xbd27b1['diffData']||null,this['toVersion']=_0xbd27b1['toVersion']||0x0,this['fromVersion']=_0xbd27b1['fromVersion']||0x0,this['set']('name',_0xbd27b1['name']||''),this['set']('createdAt',_0xbd27b1['createdAt']||new Date()),this['set']('attributes',_0xbd27b1['attributes']||{});}['setName'](_0x443019){this['_update']({'name':_0x443019});}['setAttribute'](_0x4bb2bd,_0x24e6f7){const _0x58196c=_0x47d9db(this['attributes']);_0x1c6a41(_0x58196c,_0x4bb2bd,_0x24e6f7),this['_update']({'attributes':_0x58196c});}['removeAttribute'](_0x1b009b){const _0x2e0efb=_0x47d9db(this['attributes']);_0x3eece8(_0x2e0efb,_0x1b009b),this['_update']({'attributes':_0x2e0efb});}['_update'](_0x3079c6,_0x4f6630=!0x1){let _0x33b09e=!0x1;const _0x2f5a21={'id':this['id']},_0x5d1c73=['name','createdAt','diffData','authors','attributes','toVersion','fromVersion','creatorId'];for(const _0x3ea74e of _0x5d1c73){const _0x508436=_0x3079c6[_0x3ea74e];void 0x0!==_0x508436&&_0x508436!==this[_0x3ea74e]&&(this[_0x3ea74e]=_0x508436,_0x2f5a21[_0x3ea74e]=_0x508436,_0x33b09e=!0x0);}_0x33b09e&&(_0x2f5a21['authors']&&(_0x2f5a21['authorsIds']=_0x2f5a21['authors']['map'](_0x1e8862=>_0x1e8862['id']),delete _0x2f5a21['authors']),this['fire']('_update',_0x2f5a21,_0x4f6630));}['toJSON'](){return{'id':this['id'],'name':this['name'],'creatorId':this['creator']?this['creator']['id']:null,'authorsIds':this['authors']['map'](_0x4d41d7=>_0x4d41d7['id']),'diffData':this['diffData'],'createdAt':this['createdAt'],'attributes':this['attributes'],'fromVersion':this['fromVersion'],'toVersion':this['toVersion']};}}class S extends _0x3f3108{['_revisions'];static get['requires'](){return[_0x129796];}static get['pluginName'](){return'RevisionsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['length'](){return this['_revisions']['length'];}constructor(_0x2f5285){super(_0x2f5285),this['_revisions']=new _0x579e9c();}['afterInit'](){!async function(_0x50c10d){const _0xe7556c=_0x23f8af([0x76,0x73,0x6d,0x4c,0x34,0x54,0x50,0x70,0x75,0x52,0x35,0x33,0x4d,0x6c,0x71,0x53,0x6a,0x32,0x56,0x58,0x77,0x48,0x39,0x6f,0x45,0x41,0x4e,0x38,0x46,0x78,0x4a,0x74,0x47,0x55,0x4f,0x64,0x62,0x44,0x43,0x5a,0x30,0x31,0x69,0x68,0x79,0x66,0x6b,0x42,0x51,0x59,0x36,0x61,0x63,0x67,0x7a,0x37,0x72,0x49,0x65,0x57,0x4b,0x6e]),_0x4a14b1=0xeb829,_0x111ad6=0x359e09b0,_0x57b4f7=0x35997e40^_0x111ad6,_0x835e08=window[_0x23f8af([0x44,0x61,0x74,0x65])][_0x23f8af([0x6e,0x6f,0x77])](),_0x17d918=_0x50c10d[_0x23f8af([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x4298bd=new window[(_0x23f8af([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1bbda7=>{_0x17d918[_0x23f8af([0x6f,0x6e,0x63,0x65])](_0x23f8af([0x72,0x65,0x61,0x64,0x79]),_0x1bbda7);}),_0x2d9945={[_0x23f8af([0x6b,0x74,0x79])]:_0x23f8af([0x45,0x43]),[_0x23f8af([0x75,0x73,0x65])]:_0x23f8af([0x73,0x69,0x67]),[_0x23f8af([0x63,0x72,0x76])]:_0x23f8af([0x50,0x2d,0x32,0x35,0x36]),[_0x23f8af([0x78])]:_0x23f8af([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]),[_0x23f8af([0x79])]:_0x23f8af([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]),[_0x23f8af([0x61,0x6c,0x67])]:_0x23f8af([0x45,0x53,0x32,0x35,0x36])},_0x3886fa=_0x17d918[_0x23f8af([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x23f8af([0x67,0x65,0x74])](_0x23f8af([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x38070(){let _0x2bb834,_0x3f0cc1=null,_0x4f53b1=null;try{if(_0x3886fa==_0x23f8af([0x47,0x50,0x4c]))return _0x23f8af([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x2bb834=_0x3e1148(),!_0x2bb834)return _0x23f8af([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x2bb834[_0x23f8af([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x4f53b1=_0x10a171(_0x2bb834[_0x23f8af([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x2bb834[_0x23f8af([0x6a,0x74,0x69])])),await _0x5bf531()?_0x446a46()?_0x35edab()?_0x23f8af([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x4bed4e()?(_0x2bb834[_0x23f8af([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x23f8af([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x3f0cc1=_0x5f889(_0x23f8af([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x2bb834[_0x23f8af([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x23f8af([0x74,0x72,0x69,0x61,0x6c])&&(_0x3f0cc1=_0x5f889(_0x23f8af([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x31cb14()):_0x23f8af([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x23f8af([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x23f8af([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x23f8af([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x35edab(){const _0x51105c=[_0x23f8af([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x23f8af([0x74,0x72,0x69,0x61,0x6c])][_0x23f8af([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2bb834[_0x23f8af([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x835e08/0x3e8:0xe10*_0x57b4f7;return _0x2bb834[_0x23f8af([0x65,0x78,0x70])]<_0x51105c;}function _0x446a46(){const _0x19ac8f=_0x2bb834[_0x23f8af([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x19ac8f)return!0x1;if(_0x19ac8f[_0x23f8af([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x23f8af([0x2a])))return!0x0;if(_0x19ac8f[_0x23f8af([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x23f8af([0x52,0x48])))return!0x0;if(_0x19ac8f[_0x23f8af([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x23f8af([0x52,0x52,0x48]))){if(_0x4ba1e2())return!0x0;if(_0x58511e()||_0x23d1f0())return!0x0;}return!0x1;}function _0x4bed4e(){const _0x378ad4=_0x2bb834[_0x23f8af([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x378ad4||0x0==_0x378ad4[_0x23f8af([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x2fe264}=new URL(window[_0x23f8af([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x378ad4[_0x23f8af([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2fe264))return!0x0;const _0x7c4c9d=_0x2fe264[_0x23f8af([0x73,0x70,0x6c,0x69,0x74])](_0x23f8af([0x2e]));return _0x378ad4[_0x23f8af([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x4ca796=>_0x4ca796[_0x23f8af([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x23f8af([0x2a])))[_0x23f8af([0x6d,0x61,0x70])](_0x19dd79=>_0x19dd79[_0x23f8af([0x73,0x70,0x6c,0x69,0x74])](_0x23f8af([0x2e])))[_0x23f8af([0x66,0x69,0x6c,0x74,0x65,0x72])](_0xd12b41=>_0xd12b41[_0x23f8af([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x7c4c9d[_0x23f8af([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x23f8af([0x6d,0x61,0x70])](_0x5ca34f=>Array(_0x7c4c9d[_0x23f8af([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x5ca34f[_0x23f8af([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x23f8af([0x66,0x69,0x6c,0x6c])](_0x5ca34f[0x0]===_0x23f8af([0x2a])?_0x23f8af([0x2a]):'')[_0x23f8af([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x5ca34f))[_0x23f8af([0x73,0x6f,0x6d,0x65])](_0x1342e9=>_0x7c4c9d[_0x23f8af([0x65,0x76,0x65,0x72,0x79])]((_0x38da9e,_0x79497d)=>_0x1342e9[_0x79497d]===_0x38da9e||_0x1342e9[_0x79497d]===_0x23f8af([0x2a])));}function _0x31cb14(){return _0x3f0cc1&&_0x4f53b1?new window[(_0x23f8af([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0xed24c8,_0x32411c)=>{_0x3f0cc1[_0x23f8af([0x74,0x68,0x65,0x6e])](_0xed24c8,_0x32411c),_0x4f53b1[_0x23f8af([0x74,0x68,0x65,0x6e])](_0x1400d3=>{_0x1400d3!=_0x23f8af([0x56,0x61,0x6c,0x69,0x64])&&_0xed24c8(_0x1400d3);},_0x32411c);}):_0x3f0cc1||_0x4f53b1||_0x23f8af([0x56,0x61,0x6c,0x69,0x64]);}}function _0x10a171(_0x22fb7f,_0xa09d20){return new window[(_0x23f8af([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x615d78=>{if(_0x25c0cf())return _0x615d78(_0x23f8af([0x56,0x61,0x6c,0x69,0x64]));_0x1bbc9e(),_0x17d918[_0x23f8af([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x23f8af([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0xe19c99=!0x1;const _0x20e426=_0x196f07();function _0x4275a1(_0x35fa89){return!!_0x35fa89&&(typeof _0x35fa89===_0x23f8af([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x35fa89===_0x23f8af([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x35fa89[_0x23f8af([0x74,0x68,0x65,0x6e])]===_0x23f8af([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x35fa89[_0x23f8af([0x63,0x61,0x74,0x63,0x68])]===_0x23f8af([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x34b516(_0x267ccb){_0x155619(_0x267ccb)[_0x23f8af([0x74,0x68,0x65,0x6e])](_0x330e2d=>{if(!_0x330e2d||_0x330e2d[_0x23f8af([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x23f8af([0x6f,0x6b]))return _0x23f8af([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x30186c(_0x42d845(_0x20e426+_0xa09d20))!=_0x330e2d[_0x23f8af([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x23f8af([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x23f8af([0x56,0x61,0x6c,0x69,0x64]);})[_0x23f8af([0x74,0x68,0x65,0x6e])](_0x122f8c=>(_0x2804fa(),_0x122f8c),()=>{const _0x322cd9=_0x3162d1();return null==_0x322cd9?(_0x2804fa(),_0x23f8af([0x56,0x61,0x6c,0x69,0x64])):_0x23f8af(_0x835e08-_0x322cd9>(0x11928db0^_0x111ad6)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x23f8af([0x74,0x68,0x65,0x6e])](_0x615d78)[_0x23f8af([0x63,0x61,0x74,0x63,0x68])](()=>{_0x615d78(_0x23f8af([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x4c606d=0x35a8e730^_0x111ad6;function _0x2804fa(){const _0x28f6dc=_0x23f8af([0x6c,0x6c,0x63,0x74,0x2d])+_0x30186c(_0x42d845(_0x22fb7f)),_0x3b376d=_0xe1c27b(_0x30186c(window[_0x23f8af([0x4d,0x61,0x74,0x68])][_0x23f8af([0x63,0x65,0x69,0x6c])](_0x835e08/_0x4c606d)));window[_0x23f8af([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x23f8af([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x28f6dc,_0x3b376d);}function _0x3162d1(){const _0x4e77e3=_0x23f8af([0x6c,0x6c,0x63,0x74,0x2d])+_0x30186c(_0x42d845(_0x22fb7f)),_0x4927bd=window[_0x23f8af([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x23f8af([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4e77e3);return _0x4927bd?window[_0x23f8af([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xe1c27b(_0x4927bd),0x10)*_0x4c606d:null;}function _0x155619(_0x786e89){return new window[(_0x23f8af([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x352790,_0x556791)=>{_0x786e89[_0x23f8af([0x74,0x68,0x65,0x6e])](_0x352790,_0x556791),window[_0x23f8af([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x556791,0x359fdd70^_0x111ad6);});}}_0x17d918[_0x23f8af([0x6f,0x6e])](_0x23f8af([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x3c0318,_0x2709f5)=>{if(_0x2709f5[0x0]!=_0x22fb7f)return _0x615d78(_0x23f8af([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x2709f5[0x1]={..._0x2709f5[0x1],[_0x23f8af([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x20e426};},{[_0x23f8af([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x23f8af([0x68,0x69,0x67,0x68])}),_0x17d918[_0x23f8af([0x6f,0x6e])](_0x23f8af([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x4e56cb=>{_0x4275a1(_0x4e56cb[_0x23f8af([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0xe19c99=!0x0,_0x34b516(_0x4e56cb[_0x23f8af([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x23f8af([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x23f8af([0x6c,0x6f,0x77])}),_0x4298bd[_0x23f8af([0x74,0x68,0x65,0x6e])](()=>{_0xe19c99||_0x615d78(_0x23f8af([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x25c0cf(){return _0x17d918[_0x23f8af([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x23f8af([0x76,0x69,0x65,0x77])][_0x23f8af([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x23f8af([0x61,0x75,0x74,0x6f]);}function _0x1bbc9e(){_0x17d918[_0x23f8af([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x23f8af([0x76,0x69,0x65,0x77])][_0x23f8af([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x23f8af([0x61,0x75,0x74,0x6f]);}}function _0x5f889(_0x369bf0){const _0x145454=[new window[(_0x23f8af([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1bff08=>setTimeout(_0x1bff08,0x3597377c^_0x111ad6)),_0x4298bd[_0x23f8af([0x74,0x68,0x65,0x6e])](()=>new window[(_0x23f8af([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x14f650=>{const _0x45296b=0x359e09b7^_0x111ad6,_0x2f600e=_0x50c10d[_0x23f8af([0x5f,0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x73])];function _0x559dc8(){_0x2f600e[_0x23f8af([0x6c,0x65,0x6e,0x67,0x74,0x68])]>=_0x45296b&&_0x14f650();}_0x559dc8(),_0x2f600e[_0x23f8af([0x6f,0x6e])](_0x23f8af([0x61,0x64,0x64]),_0x559dc8);})),new window[(_0x23f8af([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x183683=>{function _0x2b519f(){for(const _0x4a18c4 in window)if(window[_0x23f8af([0x4e,0x75,0x6d,0x62,0x65,0x72])]['isNaN'](window[_0x23f8af([0x4e,0x75,0x6d,0x62,0x65,0x72])](_0x4a18c4))&&window[_0x4a18c4]==_0x4a14b1)return _0x183683();_0x17d918[_0x23f8af([0x73,0x74,0x61,0x74,0x65])]!=_0x23f8af([0x64,0x65,0x73,0x74,0x72,0x6f,0x79,0x65,0x64])&&window[_0x23f8af([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x2b519f,0x359e1a38^_0x111ad6);}_0x37ef95(_0x23f8af([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))&&_0x2b519f();})];return window[_0x23f8af([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x23f8af([0x72,0x61,0x63,0x65])](_0x145454)[_0x23f8af([0x74,0x68,0x65,0x6e])](()=>_0x369bf0);}async function _0x3e4a6a(){if(await _0x4298bd,_0x37ef95(_0x23f8af([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))){const _0xf01c0e=_0x50c10d[_0x23f8af([0x67,0x65,0x74,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])](0x0),_0x124f31=_0x50c10d[_0x23f8af([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])](_0xf01c0e[_0x23f8af([0x69,0x64])]),_0x1bd2ea=_0x3915a8(_0x23f8af([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]));return await _0x1bd2ea[_0x23f8af([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])](_0xf01c0e['id'],_0x124f31?_0x124f31['id']:null,!0x0),_0x1bd2ea[_0x23f8af([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x23f8af([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x1bd2ea[_0x23f8af([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x1bd2ea[_0x23f8af([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])]=_0x1675fb,void(_0x1bd2ea[_0x23f8af([0x5f,0x67,0x65,0x74,0x44,0x69,0x66,0x66])]=_0x1675fb);}if(_0x37ef95(_0x23f8af([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]))){const _0x1d369d=_0x3915a8(_0x23f8af([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]));_0x1d369d[_0x23f8af([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x23f8af([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x1d369d[_0x23f8af([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x1d369d[_0x23f8af([0x75,0x70,0x64,0x61,0x74,0x65])]=_0x1675fb,_0x1d369d[_0x23f8af([0x73,0x61,0x76,0x65,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])]=_0x1675fb;}_0x17d918[_0x23f8af([0x6d,0x6f,0x64,0x65,0x6c])][_0x23f8af([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x1675fb,_0x17d918[_0x23f8af([0x6d,0x6f,0x64,0x65,0x6c])][_0x23f8af([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x1675fb,_0x17d918[_0x23f8af([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x23f8af([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x4ba1e2(){return _0x37ef95(_0x23f8af([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x3915a8(_0x23f8af([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x23f8af([0x73,0x74,0x61,0x74,0x65])]==_0x23f8af([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x58511e(){return _0x37ef95(_0x23f8af([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 _0x23d1f0(){return _0x37ef95(_0x23f8af([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x2e070c(_0x262639){const _0x34202b=_0x17cb88();_0x17d918[_0x34202b]=_0x23f8af([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])+_0x262639,_0x262639[_0x23f8af([0x65,0x6e,0x64,0x73,0x57,0x69,0x74,0x68])](_0x23f8af([0x4c,0x69,0x6d,0x69,0x74]))&&(window[_0x17cb88()]=_0x4a14b1),_0x262639!=_0x23f8af([0x56,0x61,0x6c,0x69,0x64])&&_0x3e4a6a();}function _0x17cb88(){const _0x588850=window[_0x23f8af([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x23f8af([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x23f8af([0x6e,0x6f,0x77])]())[_0x23f8af([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x23f8af([0x2e]),'');let _0x3a72dc=_0x23f8af([0x76]);for(let _0xda0f3f=0x0;_0xda0f3f<_0x588850[_0x23f8af([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0xda0f3f+=0x2){let _0x276645=window[_0x23f8af([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x588850[_0x23f8af([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0xda0f3f,_0xda0f3f+0x2));_0x276645>=_0xe7556c[_0x23f8af([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x276645-=_0xe7556c[_0x23f8af([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x3a72dc+=_0xe7556c[_0x276645];}return _0x3a72dc;}function _0x3e1148(){const _0x4e3c78=_0x3886fa[_0x23f8af([0x73,0x70,0x6c,0x69,0x74])](_0x23f8af([0x2e]));if(0x3!=_0x4e3c78[_0x23f8af([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0xb169d6(_0x4e3c78[0x1]);function _0xb169d6(_0x17d4a9){const _0x47373d=_0x436082(_0x17d4a9);return _0x47373d&&_0x3d0cc2()?_0x47373d:null;function _0x3d0cc2(){const _0x2b369c=_0x47373d[_0x23f8af([0x6a,0x74,0x69])],_0x45383c=window[_0x23f8af([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2b369c[_0x23f8af([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2b369c[_0x23f8af([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x48277f={..._0x47373d,[_0x23f8af([0x6a,0x74,0x69])]:_0x2b369c[_0x23f8af([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x2b369c[_0x23f8af([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x48277f[_0x23f8af([0x76,0x63])],_0x42d845(_0x48277f)==_0x45383c;}}}async function _0x5bf531(){let _0x2f5fb1=!0x0;try{const _0x17b024=_0x3886fa[_0x23f8af([0x73,0x70,0x6c,0x69,0x74])](_0x23f8af([0x2e])),[_0x4bd675,_0x59ed41,_0x37a561]=_0x17b024;return _0x9e23e7(_0x4bd675),await _0x2135fe(_0x4bd675,_0x59ed41,_0x37a561),_0x2f5fb1;}catch{return!0x1;}function _0x9e23e7(_0x294b38){const _0x56d561=_0x436082(_0x294b38);_0x56d561&&_0x56d561[_0x23f8af([0x61,0x6c,0x67])]==_0x23f8af([0x45,0x53,0x32,0x35,0x36])||(_0x2f5fb1=!0x1);}async function _0x2135fe(_0x131a8c,_0x27ab55,_0x694ad2){const _0x312ecf=window[_0x23f8af([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x23f8af([0x66,0x72,0x6f,0x6d])](_0x775cc7(_0x694ad2),_0xb0aef8=>_0xb0aef8[_0x23f8af([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x5f04b3=new window[(_0x23f8af([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x23f8af([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x131a8c+_0x23f8af([0x2e])+_0x27ab55),_0x192830=window[_0x23f8af([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x23f8af([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x192830)return;const _0x21d94d=await _0x192830[_0x23f8af([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x23f8af([0x6a,0x77,0x6b]),_0x2d9945,{[_0x23f8af([0x6e,0x61,0x6d,0x65])]:_0x23f8af([0x45,0x43,0x44,0x53,0x41]),[_0x23f8af([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x23f8af([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x23f8af([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x192830[_0x23f8af([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x23f8af([0x6e,0x61,0x6d,0x65])]:_0x23f8af([0x45,0x43,0x44,0x53,0x41]),[_0x23f8af([0x68,0x61,0x73,0x68])]:{[_0x23f8af([0x6e,0x61,0x6d,0x65])]:_0x23f8af([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x21d94d,_0x312ecf,_0x5f04b3)||(_0x2f5fb1=!0x1);}}function _0x436082(_0x14f088){return _0x14f088[_0x23f8af([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x23f8af([0x65,0x79]))?JSON[_0x23f8af([0x70,0x61,0x72,0x73,0x65])](_0x775cc7(_0x14f088)):null;}function _0x775cc7(_0xd45cc1){return window[_0x23f8af([0x61,0x74,0x6f,0x62])](_0xd45cc1[_0x23f8af([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x23f8af([0x2b]))[_0x23f8af([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x23f8af([0x2f])));}function _0x42d845(_0x328f72){let _0x4354e8=0x1505;function _0x86b369(_0x48ba46){for(let _0x256084=0x0;_0x256084<_0x48ba46[_0x23f8af([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x256084++){const _0x44bcc9=_0x48ba46[_0x23f8af([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x256084);_0x4354e8=(_0x4354e8<<0x5)+_0x4354e8+_0x44bcc9,_0x4354e8&=_0x4354e8;}}function _0x2711e4(_0x224f38){Array[_0x23f8af([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x224f38)?_0x224f38[_0x23f8af([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x2711e4):_0x224f38&&typeof _0x224f38==_0x23f8af([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x23f8af([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x224f38)[_0x23f8af([0x73,0x6f,0x72,0x74])]()[_0x23f8af([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x1870df,_0x235ff8])=>{_0x86b369(_0x1870df),_0x2711e4(_0x235ff8);}):_0x86b369(window[_0x23f8af([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x224f38));}return _0x2711e4(_0x328f72),_0x4354e8>>>0x0;}function _0x30186c(_0x105290){return _0x105290[_0x23f8af([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x23f8af([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x23f8af([0x30]));}function _0xe1c27b(_0x4ce46){return _0x4ce46[_0x23f8af([0x73,0x70,0x6c,0x69,0x74])]('')[_0x23f8af([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x23f8af([0x6a,0x6f,0x69,0x6e])]('');}function _0x37ef95(_0xe1148b){return _0x17d918[_0x23f8af([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x23f8af([0x68,0x61,0x73])](_0xe1148b);}function _0x3915a8(_0x3765ac){return _0x17d918[_0x23f8af([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x23f8af([0x67,0x65,0x74])](_0x3765ac);}function _0x1675fb(){}function _0x23f8af(_0x14f686){return _0x14f686['map'](_0x553b29=>String['fromCharCode'](_0x553b29))['join']('');}_0x2e070c(await _0x38070());}(this);}['createRevision'](_0x424971){const _0x5c6ca8=this['editor']['plugins']['get']('Users');return new I({'id':_0x424971['id'],'name':_0x424971['name'],'creator':_0x424971['creatorId']?_0x5c6ca8['getUser'](_0x424971['creatorId']):null,'diffData':_0x424971['diffData']||_0x424971['data'],'authors':_0x424971['authorsIds']['map'](_0x5f5b70=>_0x5c6ca8['getUser'](_0x5f5b70)),'createdAt':new Date(_0x424971['createdAt']),'attributes':_0x424971['attributes'],'fromVersion':_0x424971['fromVersion'],'toVersion':_0x424971['toVersion']});}['addRevision'](_0x1edac0,_0x292fc0=0x0){this['_revisions']['add'](_0x1edac0,_0x292fc0);}['getRevision'](_0x38ca78){return this['_revisions']['get'](_0x38ca78);}['getRevisions'](_0x31f53b={'toJSON':!0x1}){const _0xe730c4=Array['from'](this['_revisions']);return _0xe730c4['reverse'](),_0x31f53b['toJSON']?_0xe730c4['map'](_0x10d9fa=>_0x10d9fa['toJSON']()):_0xe730c4;}['getIndex'](_0x581629){return this['_revisions']['getIndex'](_0x581629);}['getEarlierVisibleRevision'](_0x11854e){const [,_0x39bb3a]=this['getRevisionsIterator'](_0x11854e,{'direction':'earlier'});return _0x39bb3a;}['getLaterVisibleRevision'](_0x161684){const [,_0x396305]=this['getRevisionsIterator'](_0x161684,{'direction':'later'});return _0x396305;}['getRevisionsInDiff'](_0xcc4144){const _0xa6b3c9=[];for(const _0x4ddee3 of this['getRevisionsIterator'](_0xcc4144['newRevisionId']))if(_0xa6b3c9['push'](_0x4ddee3),_0x4ddee3['id']===_0xcc4144['oldRevisionId'])break;return _0xa6b3c9;}*['getRevisionsIterator'](_0x4301dc,{direction:_0xabff5e='earlier',filter:_0x230d8f=()=>!0x0}={}){const _0x4fbde9='earlier'===_0xabff5e?0x1:-0x1;let _0x44c74f=this['_revisions']['get'](_0x4301dc),_0x34263d=this['getIndex'](_0x44c74f);for(yield _0x44c74f;_0x44c74f;){if(_0x34263d+=_0x4fbde9,_0x44c74f=this['getRevision'](_0x34263d),!_0x44c74f)return;_0x230d8f(_0x44c74f)&&(yield _0x44c74f);}}}class $ extends _0x3f3108{static get['pluginName'](){return'RevisionHistoryUtils';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['_viewClassToTypeChar']=new Map([[_0x56d1ea,'c'],[_0x9c8dba,'a'],[_0x3a3eaf,'e'],[_0x58addf,'r'],[_0x4407da,'u']]);['_typeCharToViewClass']=new Map([['c',_0x56d1ea],['a',_0x9c8dba],['e',_0x3a3eaf],['r',_0x58addf],['u',_0x4407da]]);async['loadRevisionData'](_0x4564e9,_0x3e779b){if(_0x4564e9['diffData']||!_0x3e779b)return;const _0x59338b=this['editor']['config']['get']('collaboration.channelId'),_0x470a83=await _0x3e779b['getRevision']({'channelId':_0x59338b,'revisionId':_0x4564e9['id']});_0x4564e9['diffData']=_0x470a83['diffData'];}['getRevisionDocumentData'](_0x3a0928){const _0x5801b6={};for(const _0x2b70e5 in _0x3a0928['diffData']){if(_0x3a0928['diffData'][_0x2b70e5]['attachChange']&&!_0x3a0928['diffData'][_0x2b70e5]['attachChange']['isAttached'])continue;const _0x2e914d=this['_removeRevisionMarkers'](JSON['parse'](_0x3a0928['diffData'][_0x2b70e5]['insertions'])),_0x3e0ac6=this['editor']['editing']['view']['document'],_0x45933b=new _0x1be24c(_0x3e0ac6,_0x2e914d['map'](_0x1d4809=>this['_getViewFromDiffObj'](_0x1d4809,!0x1)));this['editor']['data']['processor']['useFillerType']('marked'),_0x5801b6[_0x2b70e5]=this['editor']['data']['processor']['toData'](_0x45933b),this['editor']['data']['processor']['useFillerType']('default');}return _0x5801b6;}['getRevisionRootsAttributes'](_0x4cc130){const _0x264ac0={};for(const _0x4f119d in _0x4cc130['diffData'])_0x4cc130['diffData'][_0x4f119d]['attachChange']&&!_0x4cc130['diffData'][_0x4f119d]['attachChange']['isAttached']||(_0x264ac0[_0x4f119d]=_0x4cc130['diffData'][_0x4f119d]['attributesAfter']||{});return _0x264ac0;}['_getTypeCharForViewElement'](_0x1ddc82){return this['_viewClassToTypeChar']['get'](_0x1ddc82['constructor']);}['_getViewFromDiffObj'](_0x4c31c6,_0x18172c){const _0x4690c9=this['editor']['editing']['view']['document'];if('string'==typeof _0x4c31c6)return new _0x4daa6c(_0x4690c9,_0x4c31c6);{let _0x352ffb,_0x2e78d7;_0x2e78d7='u'==_0x4c31c6['type']||'r'==_0x4c31c6['type']?[]:_0x4c31c6['children']['map'](_0x3c2815=>this['_getViewFromDiffObj'](_0x3c2815,_0x18172c));const _0x1e912a=this['_typeCharToViewClass']['get'](_0x4c31c6['type'])||_0x1c5b51,_0xea039b=this['editor']['data']['htmlProcessor']['domConverter'];if(_0x352ffb=new _0x1e912a(_0x4690c9,_0x4c31c6['name'],_0x4c31c6['attributes'],_0x2e78d7),'u'==_0x4c31c6['type']&&_0x4c31c6['children'][0x0]){const _0x23ae62=_0x4c31c6['children'][0x0];if(_0x352ffb['render']=function(_0x349643){const _0x1bf7d8=_0x349643['createElement']('div');return _0x1bf7d8['innerHTML']=_0x23ae62,_0x1bf7d8['childNodes'][0x0];},_0x18172c){const _0x31c236=new _0x1be24c(_0x4690c9);_0x31c236['_appendChild'](_0x352ffb);const _0x334aa4=Array['from'](_0xea039b['viewChildrenToDom'](_0x31c236,{'bind':!0x1})),_0x1a1481=_0xea039b['domDocument']['createElement']('div');_0x1a1481['append'](..._0x334aa4),_0x352ffb=Array['from'](_0xea039b['domChildrenToView'](_0x1a1481))[0x0];}}else{if('r'==_0x4c31c6['type']&&_0x4c31c6['children'][0x0]){const _0x1110b0=_0x4c31c6['children'][0x0];if(_0x352ffb['render']=function(_0x578188){_0x578188['innerHTML']=_0x1110b0;},_0x18172c){const _0x13dc08=new _0x1be24c(_0x4690c9);_0x13dc08['_appendChild'](_0x352ffb);const _0x2daca9=Array['from'](_0xea039b['viewChildrenToDom'](_0x13dc08,{'bind':!0x1})),_0x3c5085=_0xea039b['domDocument']['createElement']('div');_0x3c5085['append'](..._0x2daca9);const _0x1cc852=Array['from'](_0xea039b['domChildrenToView'](_0x3c5085));_0x1cc852['length']>0x1?_0x352ffb['_appendChild'](_0x1cc852):_0x352ffb=_0x1cc852[0x0];}}}if(_0x4c31c6['customProperties']){for(const [_0x418239,_0x17e9f7]of _0x4c31c6['customProperties'])_0x352ffb['_setCustomProperty'](_0x418239,_0x17e9f7);}const _0x13ea99=void 0x0===_0x4c31c6['fillerOffset']?null:_0x4c31c6['fillerOffset'];return null!==_0x13ea99&&(_0x352ffb['getFillerOffset']=()=>_0x13ea99),_0x352ffb;}}['_makeModelFromViewString'](_0x33b829){const _0x37bd71=JSON['parse'](_0x33b829),_0x538849=this['editor']['editing']['view']['document'],_0x35a8f2=new _0x1be24c(_0x538849,_0x37bd71['map'](_0x5f4737=>this['_getViewFromDiffObj'](_0x5f4737,!0x0)));return this['editor']['data']['toModel'](_0x35a8f2);}['_removeRevisionMarkers'](_0x3cc4f2){return(_0x3cc4f2=_0x3cc4f2['filter'](_0x145b0b=>!_0x145b0b['name']||'revision-start'!==_0x145b0b['name']&&'revision-end'!==_0x145b0b['name']))['forEach'](_0x350beb=>{'string'!=typeof _0x350beb&&(_0x350beb['children']=this['_removeRevisionMarkers'](_0x350beb['children']),_0x350beb['attributes']=_0x350beb['attributes']['filter'](_0x576629=>!_0x576629[0x0]['startsWith']('data-revision-')));}),_0x3cc4f2;}}function m(_0x24d80b,_0x427a2b,_0x56c3e1){const t=_0x24d80b['t'];switch(_0x427a2b){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'},_0x56c3e1);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x56c3e1);case'Show\x20previous\x20change':return t('Show\x20previous\x20change');case'Show\x20next\x20change':return t('Show\x20next\x20change');case'EDIT_X_OF_Y_REVISIONS':return t({'string':'Edit','id':'EDIT_X_OF_Y_REVISIONS'});case'Total':return t('Total');case'Revision\x20creator':return t('Revision\x20creator');case'Revision\x20author':return t('Revision\x20author');case'Revision\x20name':return t('Revision\x20name');case'Save\x20current\x20revision':return t('Save\x20current\x20revision');case'Accept':return t('Accept');case'Save':return t('Save');case'Cancel':return t('Cancel');case'Name\x20of\x20the\x20revision':return t('Name\x20of\x20the\x20revision');case'optional':return t('optional');case'PENDING_ACTION_REVISION_HISTORY':return t({'string':'Unsaved\x20change\x20in\x20revision\x20history.','id':'PENDING_ACTION_REVISION_HISTORY'});case'The\x20revision\x20name\x20cannot\x20be\x20empty.':return t('The\x20revision\x20name\x20cannot\x20be\x20empty.');case'Enter\x20the\x20revision\x20name':return t('Enter\x20the\x20revision\x20name');default:return'';}}class h extends _0x3f3108{['licenseKey'];['_licenseKeyCheckInterval'];['currentRevision']=null;['repository'];['adapter']=null;['_revisionDataBuilder'];['_source'];['_initialRevisionId'];['_bufferedUpdates'];['_utils'];['_pendingAction'];['_continueCurrentRevision'];['_startingVersion'];['_loadedStateData'];static get['pluginName'](){return'RevisionTracker';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x129796,S,$,_0x4992e];}constructor(_0x371691){super(_0x371691),this['repository']=this['editor']['plugins']['get']('RevisionsRepository'),this['_utils']=this['editor']['plugins']['get']('RevisionHistoryUtils'),this['_revisionDataBuilder']=new E(this['editor']),this['_initialRevisionId']=this['editor']['config']['get']('collaboration.channelId')||'initial',this['_bufferedUpdates']=new Map(),this['_loadedStateData']=null;const _0x2aa335=_0x196f07();this['_source']={'history':this['editor']['model']['document']['history'],'getLatestVersion':()=>Promise['resolve'](this['editor']['model']['document']['version']),'getCurrentRevisionId':()=>_0x2aa335},this['set']('isReady',!0x1),this['set']('isEnabled',!0x0),this['set']('_isPendingUpdate',!0x1),this['editor']['config']['define']('revisionHistory.resumeUnsavedRevision',!0x0),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'});}['init'](){this['_setConversion'](),this['editor']['data']['on']('ready',()=>{const _0x229fea=this['repository']['getRevision'](0x0),_0x2774c9=_0x229fea&&null===_0x229fea['creator']?_0x229fea:null;if(this['_continueCurrentRevision']=!!_0x2774c9&&this['editor']['config']['get']('revisionHistory.resumeUnsavedRevision'),this['editor']['plugins']['has']('RealTimeCollaborationClient')){const _0x45e9d1=this['_source']['getCurrentRevisionId'](),_0x15787c=this['repository']['getRevision'](_0x45e9d1);if(_0x15787c)this['_startingVersion']=_0x15787c['fromVersion'],this['_continueCurrentRevision']=!0x1;else{const _0x3f865d=this['_source']['history']['_operations']['find'](_0x365535=>!_0x365535['_isInit']),_0x46aea8=_0x3f865d?_0x3f865d['baseVersion']:this['_source']['history']['version'];_0x229fea?(_0x229fea['toVersion']<_0x46aea8&&_0x229fea['_update']({'toVersion':_0x46aea8}),this['_continueCurrentRevision']?(this['_source']['getCurrentRevisionId']=()=>_0x2774c9['id'],this['_startingVersion']=_0x2774c9['fromVersion']):(this['_startingVersion']=_0x229fea['toVersion'],this['_continueCurrentRevision']=!0x1)):(this['_startingVersion']=_0x46aea8,this['_continueCurrentRevision']=!0x1);}}else _0x2774c9&&(this['editor']['model']['document']['history']['version']=Math['max'](_0x2774c9['toVersion'],this['editor']['model']['document']['history']['version']),_0x2774c9['fromVersion']===_0x2774c9['toVersion']?(0x0!==_0x2774c9['fromVersion']&&(this['_source']['getCurrentRevisionId']=()=>_0x2774c9['id']),this['_continueCurrentRevision']=!0x1):this['_continueCurrentRevision']&&(this['_source']['getCurrentRevisionId']=()=>_0x2774c9['id'],this['_startingVersion']=_0x2774c9['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',_0x3070e2=>!_0x3070e2),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x1dd2f9=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x2f061c;for(const _0x24d3e4 in _0x1dd2f9){const _0x454dc9=_0x24d3e4,_0x50d77e=_0x1dd2f9[_0x454dc9];if('revisionHistoryLicenseKeyValid'==_0x50d77e||'revisionHistoryLicenseKeyInvalid'==_0x50d77e||'revisionHistoryLicenseKeyExpired'==_0x50d77e||'revisionHistoryLicenseKeyDomainLimit'==_0x50d77e||'revisionHistoryLicenseKeyNotAllowed'==_0x50d77e||'revisionHistoryLicenseKeyEvaluationLimit'==_0x50d77e||'revisionHistoryLicenseKeyTrialLimit'==_0x50d77e||'revisionHistoryLicenseKeyUsageLimit'==_0x50d77e){delete _0x1dd2f9[_0x454dc9],_0x2f061c=_0x50d77e,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'revisionHistoryLicenseKeyInvalid'==_0x2f061c&&_0x1dd2f9['_showLicenseError']('invalid'),'revisionHistoryLicenseKeyExpired'==_0x2f061c&&_0x1dd2f9['_showLicenseError']('expired'),'revisionHistoryLicenseKeyDomainLimit'==_0x2f061c&&_0x1dd2f9['_showLicenseError']('domainLimit'),'revisionHistoryLicenseKeyNotAllowed'==_0x2f061c&&_0x1dd2f9['_showLicenseError']('featureNotAllowed','RevisionHistory'),'revisionHistoryLicenseKeyEvaluationLimit'==_0x2f061c&&_0x1dd2f9['_showLicenseError']('evaluationLimit'),'revisionHistoryLicenseKeyTrialLimit'==_0x2f061c&&_0x1dd2f9['_showLicenseError']('trialLimit'),'revisionHistoryLicenseKeyUsageLimit'==_0x2f061c&&_0x1dd2f9['_showLicenseError']('usageLimit');},0x3e8);}async['afterInit'](){if(this['repository']['length']>0x0){const _0x1ec1bf=this['repository']['getRevision'](0x0),_0x963007=await this['getRevisionDocumentData'](_0x1ec1bf),_0x59de26=await this['getRevisionRootsAttributes'](_0x1ec1bf);this['_replaceEditorDataWithRevisionData'](_0x963007,_0x59de26);}}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['setSource'](_0x96b7e9){this['_source']=_0x96b7e9;}async['update'](){const _0x29e3e3=await this['_source']['getLatestVersion']();if(_0x29e3e3>this['currentRevision']['toVersion']){await this['_loadState']();const _0x3abbc6=this['buildRevisionData']({'revision':this['currentRevision'],'to':_0x29e3e3});_0x3abbc6['authors']=_0x3abbc6['authorsIds']['map'](_0x537cb1=>this['editor']['plugins']['get']('Users')['getUser'](_0x537cb1)),this['currentRevision']['_update'](_0x3abbc6);}}async['saveRevision'](_0x183f69={},_0xcbb00a=null){const _0x2da6f7=[];await this['_loadState'](),this['_continueCurrentRevision']=!0x1,_0xcbb00a>this['currentRevision']['toVersion']&&(_0xcbb00a=null),null===_0xcbb00a&&(_0xcbb00a=await this['_source']['getLatestVersion']());const _0x3aa96f=this['_getFromVersion'](_0xcbb00a),_0x2fad09=this['buildRevisionData']({'from':_0x3aa96f,'to':_0xcbb00a});if(this['currentRevision']['toVersion']<_0xcbb00a){const _0xd83adc=this['buildRevisionData']({'revision':this['currentRevision'],'from':_0xcbb00a,'to':_0xcbb00a});_0xd83adc['authors']=[],_0xd83adc['authorsIds']=[],_0xd83adc['id']=this['currentRevision']['id'],this['currentRevision']['_update'](_0xd83adc,!0x0),delete _0xd83adc['authors'],_0x2da6f7['push'](_0xd83adc);}_0x183f69['creatorId']=this['editor']['plugins']['get']('Users')['me']['id'],_0x183f69['name']=_0x183f69['name']||null,_0x183f69['id']=_0x183f69['id']||_0x196f07(),_0x183f69={..._0x183f69,..._0x2fad09};const _0x4e65e0=this['addRevisionData'](_0x183f69);_0x2da6f7['push'](_0x183f69);const _0x90311c=this['repository']['getIndex'](_0x4e65e0);if(0x0!==_0x90311c){const _0x313343=this['repository']['getRevision'](_0x90311c-0x1);if(_0x313343['fromVersion']!==_0xcbb00a){const _0x4209d6=this['_revisionDataBuilder']['getData'](_0xcbb00a,_0x313343['toVersion']),_0x2ccb7a={'id':_0x313343['id'],'diffData':_0x4209d6['diffData'],'authorsIds':_0x4209d6['authorsIds'],'authors':_0x4209d6['authorsIds']['map'](_0x3d5c4e=>this['editor']['plugins']['get']('Users')['getUser'](_0x3d5c4e)),'fromVersion':_0xcbb00a};_0x313343===this['currentRevision']&&(_0x2ccb7a['createdAt']=new Date(_0x183f69['createdAt']['getTime']()+0xa)),_0x313343['_update'](_0x2ccb7a,!0x0),delete _0x2ccb7a['authors'],_0x2da6f7['push'](_0x2ccb7a);}}if(this['adapter']){for(const _0x58a3e1 of _0x2da6f7)this['_bufferUpdate'](_0x58a3e1['id'],_0x58a3e1,!0x0);this['sendBufferedUpdates']();}return _0x4e65e0;}['addRevisionData'](_0x280ebc){const _0x25e6c1=this['repository']['createRevision'](_0x280ebc);return this['adapter']&&_0x25e6c1['on']('_update',(_0x5ca8c0,_0xb2a1da,_0x460f77)=>{_0x460f77||(this['_bufferUpdate'](_0xb2a1da['id'],_0xb2a1da,!0x0),this['sendBufferedUpdates']());}),this['repository']['addRevision'](_0x25e6c1,this['_findInsertionIndex'](_0x25e6c1)),_0x25e6c1;}async['getRevisionDocumentData'](_0x2544bb){return await this['_utils']['loadRevisionData'](_0x2544bb,this['adapter']),this['_utils']['getRevisionDocumentData'](_0x2544bb);}async['getRevisionRootsAttributes'](_0x1ddb72){return await this['_utils']['loadRevisionData'](_0x1ddb72,this['adapter']),this['_utils']['getRevisionRootsAttributes'](_0x1ddb72);}['sendBufferedUpdates'](){if(0x0===this['_bufferedUpdates']['size'])return;if(this['_isPendingUpdate'])return;let _0x197999=Array['from'](this['_bufferedUpdates']['values']());this['_bufferedUpdates']['clear']();for(let _0x140223=0x0;_0x140223<_0x197999['length'];_0x140223++){const _0x2673c7=_0x197999[_0x140223];let _0x47d29a=!0x1;for(const _0x1d6c6a of Object['keys'](_0x2673c7))void 0x0===_0x2673c7[_0x1d6c6a]?delete _0x2673c7[_0x1d6c6a]:'id'!==_0x1d6c6a&&(_0x47d29a=!0x0);_0x47d29a||(_0x197999[_0x140223]=null);}if(_0x197999=_0x197999['filter'](_0x5832d1=>null!==_0x5832d1),!_0x197999['length'])return;for(let _0x39b58f=0x0;_0x39b58f<_0x197999['length'];_0x39b58f++){const _0x174ff2=_0x197999[_0x39b58f];void 0x0!==_0x174ff2['fromVersion']&&void 0x0===_0x174ff2['toVersion']&&(_0x174ff2['toVersion']=this['repository']['getRevision'](_0x174ff2['id'])['toVersion']),void 0x0!==_0x174ff2['toVersion']&&void 0x0===_0x174ff2['fromVersion']&&(_0x174ff2['fromVersion']=this['repository']['getRevision'](_0x174ff2['id'])['fromVersion']);}const _0x2a9ef1=this['editor']['config']['get']('collaboration.channelId');this['_isPendingUpdate']=!0x0,this['_addPendingAction'](),this['adapter']['updateRevisions'](_0x197999,_0x2a9ef1)['finally'](()=>{this['_isPendingUpdate']=!0x1;})['then'](_0x56fbbc=>{if(_0x56fbbc){for(const _0x5e5bc9 of _0x56fbbc)this['setRevisionData']({'id':_0x5e5bc9['id'],'createdAt':_0x5e5bc9['createdAt']});}this['_removePendingAction'](),this['sendBufferedUpdates']();});}['buildRevisionData']({revision:_0x2b27c6=null,from:_0x2531dd=null,to:_0x29b738=null}){_0x2531dd=null!==_0x2531dd?_0x2531dd:_0x2b27c6['fromVersion'],_0x29b738=null!==_0x29b738?_0x29b738:_0x2b27c6['toVersion'];const _0x99896d=this['_revisionDataBuilder']['getData'](_0x2531dd,_0x29b738),_0x280b11={'diffData':_0x99896d['diffData'],'authorsIds':_0x99896d['authorsIds'],'fromVersion':_0x2531dd,'toVersion':_0x29b738};if(!_0x2b27c6||_0x29b738!==_0x2b27c6['toVersion']){const _0x4e7d11=_0x29b738-0x1,_0x208e26=this['_source']['history']['getOperation'](_0x4e7d11);_0x280b11['createdAt']=_0x208e26&&_0x208e26['createdAt']||new Date();}if(this['_loadedStateData']&&_0x2531dd===this['_loadedStateData']['fromVersion']){for(const _0x4447d5 of this['_loadedStateData']['authors'])_0x280b11['authorsIds']['includes'](_0x4447d5['id'])||_0x280b11['authorsIds']['push'](_0x4447d5['id']);}return _0x280b11;}['_bufferUpdate'](_0x1da45b,_0x3006de,_0x48f527){if(this['_bufferedUpdates']['has'](_0x1da45b)){const _0x3eb0b3=this['_bufferedUpdates']['get'](_0x1da45b);_0x3006de=_0x48f527?{..._0x3eb0b3,..._0x3006de}:{..._0x3006de,..._0x3eb0b3};}this['_bufferedUpdates']['set'](_0x1da45b,_0x3006de);}['setRevisionData'](_0x2af45e){const _0x86a594=this['repository']['getRevision'](_0x2af45e['id']);if(_0x2af45e['createdAt']&&(_0x2af45e['createdAt']=new Date(_0x2af45e['createdAt'])),_0x2af45e['authorsIds']){const _0x185c9e=this['editor']['plugins']['get']('Users');_0x2af45e['authors']=_0x2af45e['authorsIds']['map'](_0x15bfbe=>_0x185c9e['getUser'](_0x15bfbe));}_0x86a594['_update'](_0x2af45e,!0x0);}['_createInitialRevision'](_0xf8bf93){const _0x3bda59=this['repository']['getRevision'](this['repository']['length']-0x1);if(_0x3bda59)this['_initialRevisionId']=_0x3bda59['id'];else{const _0x372ee4=!this['editor']['model']['document']['roots']['find'](_0x226bbf=>this['editor']['model']['hasContent'](_0x226bbf)),_0x2cd633=this['editor']['plugins']['get']('Users')['me']['id'],_0x5a94f2=m(this['editor']['locale'],_0x372ee4?'Empty\x20document':'Initial\x20revision');this['_makeRevision']({'from':_0xf8bf93,'to':_0xf8bf93,'id':this['_initialRevisionId'],'name':_0x5a94f2,'creatorId':_0x2cd633});}}['_createCurrentRevision'](_0x180aa8){const _0x178ed0=this['_source']['getCurrentRevisionId']();this['currentRevision']=this['repository']['getRevision'](_0x178ed0),this['currentRevision']||(this['currentRevision']=this['_makeRevision']({'from':_0x180aa8,'to':_0x180aa8,'id':_0x178ed0,'name':'','creatorId':null}));}async['_loadState'](){this['_continueCurrentRevision']&&!this['_loadedStateData']&&(await this['_utils']['loadRevisionData'](this['currentRevision'],this['adapter']),this['_revisionDataBuilder']['loadState'](this['currentRevision']),this['_loadedStateData']={'fromVersion':this['currentRevision']['fromVersion'],'authors':this['currentRevision']['authors']['slice']()});}['_replaceEditorDataWithRevisionData'](_0xf0c4dc,_0x5650ad){let _0x3e95a4=this['editor']['config']['get']('initialData'),_0xa94813=this['editor']['config']['get']('rootsAttributes');if(void 0x0===_0x3e95a4){_0x3e95a4={};for(const _0x16d554 of this['editor']['model']['document']['getRootNames']())_0x3e95a4[_0x16d554]='';}if('string'==typeof _0x3e95a4&&(_0x3e95a4={'main':_0x3e95a4}),void 0x0===_0xa94813){_0xa94813={};for(const _0x1c69fe of this['editor']['model']['document']['getRootNames']())_0xa94813[_0x1c69fe]={};}let _0x2697f8=!0x1;const _0x56b2a9=Object['keys'](_0x3e95a4),_0x326f91=Object['keys'](_0xf0c4dc);for(const _0x1dcf6d of _0x56b2a9){if(_0x3e95a4[_0x1dcf6d]!==_0xf0c4dc[_0x1dcf6d]&&''!==_0x3e95a4[_0x1dcf6d]['trim']()){_0x2697f8=!0x0;break;}if(!_0x55d944(_0xa94813[_0x1dcf6d],_0x5650ad[_0x1dcf6d])&&Object['keys'](_0xa94813[_0x1dcf6d])['length']>0x0){_0x2697f8=!0x0;break;}}_0x2697f8||(_0x2697f8=_0x326f91['some'](_0x3907ea=>!this['editor']['model']['document']['getRoot'](_0x3907ea))),_0x2697f8&&_0x8ad5bb('editor-initial-data-replaced-with-revision-data',{'editorData':_0x3e95a4,'editorRootsAttributes':_0xa94813,'revisionData':_0xf0c4dc,'revisionRootsAttributes':_0x5650ad}),this['editor']['config']['set']('initialData',_0xf0c4dc),this['editor']['config']['set']('rootsAttributes',_0x5650ad);}['_addPendingAction'](){if(!this['_pendingAction']){const _0x478ef7=this['editor']['plugins']['get']('PendingActions');this['_pendingAction']=_0x478ef7['add'](m(this['editor']['locale'],'PENDING_ACTION_REVISION_HISTORY'));}}['_removePendingAction'](){this['_pendingAction']&&(this['editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null);}['_findInsertionIndex'](_0x5d21ff){const _0x1af3f9=this['repository']['getRevisions']();_0x1af3f9['reverse']();let _0x5b0949=0x0;for(;_0x5b0949<_0x1af3f9['length'];){const _0x573f02=_0x1af3f9[_0x5b0949];if(_0x573f02===this['currentRevision']){_0x5b0949++;continue;}if(_0x573f02['id']===this['_initialRevisionId'])break;const _0x339bca=_0x5d21ff['toVersion']-_0x573f02['toVersion']||_0x5d21ff['fromVersion']-_0x573f02['fromVersion'];if(_0x339bca>0x0)break;if(_0x339bca<0x0)_0x5b0949++;else{if(!_0x5d21ff['creator']&&_0x573f02['creator'])break;if(_0x573f02['creator']||!_0x5d21ff['creator']){if(_0x5d21ff['createdAt']>_0x573f02['createdAt'])break;_0x5b0949++;}else _0x5b0949++;}}return _0x5b0949;}['_getFromVersion'](_0x3d521b){const _0x2b3f24=this['repository']['getRevisions']();_0x2b3f24['reverse'](),_0x2b3f24['shift']();const _0x32d211=_0x2b3f24['find'](_0x26e9c6=>_0x26e9c6['toVersion']<=_0x3d521b)['toVersion'];return _0x32d211<this['_startingVersion']?this['_startingVersion']:_0x32d211;}['_makeRevision']({name:_0x518ed9,from:_0x36949d,to:_0x39242d,creatorId:_0x5719c6,id:_0x5dd210}){const _0x2c270f=this['buildRevisionData']({'from':_0x36949d,'to':_0x39242d});_0x2c270f['name']=_0x518ed9,_0x2c270f['creatorId']=_0x5719c6,_0x2c270f['id']=_0x5dd210;const _0x1fbb4f=this['addRevisionData'](_0x2c270f);return this['adapter']&&this['_bufferUpdate'](_0x2c270f['id'],_0x2c270f,!0x0),_0x1fbb4f;}['_setConversion'](){this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'});}}class E{['editor'];['source'];['_savedMetaData'];['_lastFrom'];['_lastTo'];['_markers'];['_diffRoots'];['_diffRootsAttributes'];['_baseRoots'];['_baseRootsAttributes'];['_idsRoots'];['_baseIdsRoots'];['_touched'];['_touchedMarkers'];['_touchedRoots'];['_revisionId'];['_startingRevisionId'];constructor(_0x11b8f5){this['editor']=_0x11b8f5,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'](_0x24a9f2){this['source']=_0x24a9f2;const _0x3eb336=new Map(),_0x53f77c=new Map(),_0x446698=this['editor']['model']['document']['roots']['map'](_0x2a8c22=>_0x2a8c22['rootName']);for(const _0x5bb799 of _0x446698){const _0x161b22=this['editor']['model']['document']['getRoot'](_0x5bb799),_0x16647f=x(_0x161b22);_0x3eb336['set'](_0x5bb799,_0x16647f),_0x53f77c['set'](_0x5bb799,Object['fromEntries'](_0x161b22['getAttributes']()));}const _0x3ac2d5=Array['from'](this['editor']['model']['markers'])['map'](_0x1023dd=>[_0x1023dd['name'],_0x1023dd['getRange']()]),_0x12038c=this['source']['version'];this['_saveMetaData'](_0x12038c,_0x3eb336,_0x3ac2d5,_0x53f77c),this['_startingRevisionId']=this['_revisionId'];const _0x5b64f4=new Map(),_0x3f5961=new Map();for(const _0x1eb353 of _0x446698){const _0x12a362=N(_0x1eb353);_0x5b64f4['set'](_0x1eb353,_0x12a362),_0x3f5961['set'](_0x1eb353,{});}this['_saveMetaData'](Number['NEGATIVE_INFINITY'],_0x5b64f4,[],_0x3f5961);}['getData'](_0x43e390,_0x577675){if(this['_lastFrom']===_0x43e390&&this['_lastTo']<=_0x577675)this['_savedMetaData']['size']>0x1&&this['_removeMetaData'](this['_lastTo']),this['_applyOperations'](this['_lastTo'],_0x577675,!0x0);else{if(!this['_savedMetaData']['has'](_0x43e390)){const _0x1c5053=this['_getPreviousFrom'](_0x43e390);this['_calculateMetaData'](_0x1c5053,_0x43e390,!0x1);}this['_calculateMetaData'](_0x43e390,_0x577675,!0x0);}return this['_lastFrom']=_0x43e390,this['_lastTo']=_0x577675,this['_getState']();}['loadState'](_0x4f1d68){if(!this['_savedMetaData']['has'](_0x4f1d68['fromVersion'])){const _0x4ac66c=this['_getPreviousFrom'](_0x4f1d68['fromVersion']);this['_calculateMetaData'](_0x4ac66c,_0x4f1d68['fromVersion'],!0x1);}this['_calculateMetaData'](_0x4f1d68['fromVersion'],_0x4f1d68['toVersion'],!0x1);const _0x36924d=this['editor']['plugins']['get']('RevisionHistoryUtils');this['_reset'](),this['_lastFrom']=_0x4f1d68['fromVersion'],this['_lastTo']=_0x4f1d68['toVersion'];for(const _0x440a18 in _0x4f1d68['diffData']){const _0x51d4d1=_0x4f1d68['diffData'][_0x440a18]['attachChange'],_0x11e67f=_0x47d9db(_0x4f1d68['diffData'][_0x440a18]['attributesBefore'])||{},_0x2f2bab=_0x36924d['_makeModelFromViewString'](_0x4f1d68['diffData'][_0x440a18]['deletions']);_0x2f2bab['rootName']=_0x440a18,_0x2f2bab['_isAttached']=!_0x51d4d1||!_0x51d4d1['isAttached'],_0x2f2bab['isAttached']=()=>_0x2f2bab['_isAttached'],this['_baseRoots']['set'](_0x440a18,_0x2f2bab),this['_baseRootsAttributes']['set'](_0x440a18,_0x11e67f),_0x51d4d1&&this['_touchedRoots']['set'](_0x440a18,_0x51d4d1);const _0x34ae5e=this['_makeIdsRoot'](_0x2f2bab);this['_baseIdsRoots']['set'](_0x440a18,_0x34ae5e);for(const [_0x1f359e,_0x2659d3]of _0x2f2bab['markers']){if(!_0x1f359e['startsWith']('revision:'))continue;const _0x2d57b2=_0x1f359e['split'](':')[0x2];for(const _0x335d4a of _0x2659d3['getWalker']({'singleCharacters':!0x0})){const _0x39ddaf=this['_getVidAttributeName'](_0x335d4a),_0xab5657='elementEnd'==_0x335d4a['type']?_0x335d4a['previousPosition']['path']['slice'](0x0,-0x1):_0x335d4a['previousPosition']['path'],_0x5b801d=_0x34ae5e['getNodeByPath'](_0xab5657)['getAttribute'](_0x39ddaf);this['_touched']['set'](_0x5b801d,{'userId':_0x2d57b2});}_0x2f2bab['markers']['delete'](_0x1f359e);}}this['_startingRevisionId']=this['_revisionId'];const _0x340fc3=[...Array(this['_revisionId'])['keys']()]['slice'](0x1)['filter'](_0x5bfad=>!this['_touched']['has'](_0x5bfad));let _0x1902d4=0x0;const _0x3e7185=new Map();for(const _0x2e7886 in _0x4f1d68['diffData']){const _0x2d842b=_0x4f1d68['diffData'][_0x2e7886]['attachChange'],_0x29b441=_0x47d9db(_0x4f1d68['diffData'][_0x2e7886]['attributesAfter'])||{},_0x20b110=_0x36924d['_makeModelFromViewString'](_0x4f1d68['diffData'][_0x2e7886]['insertions']);_0x20b110['rootName']=_0x2e7886,_0x20b110['_isAttached']=!_0x2d842b||_0x2d842b['isAttached'],_0x20b110['isAttached']=()=>_0x20b110['_isAttached'],this['_diffRoots']['set'](_0x2e7886,_0x20b110),this['_diffRootsAttributes']['set'](_0x2e7886,_0x29b441);const _0x5efbda=this['_makeIdsRoot'](_0x20b110,Number['NEGATIVE_INFINITY']);this['_idsRoots']['set'](_0x2e7886,_0x5efbda),_0x3e7185['set'](_0x2e7886,_0x20b110['isAttached']()?_0x29b441:{});for(const [_0x21db94,_0x50009b]of _0x20b110['markers']){if(!_0x21db94['startsWith']('revision:'))continue;const _0x10bf65=_0x21db94['split'](':')[0x2];for(const _0x44a54c of _0x50009b['getWalker']({'singleCharacters':!0x0})){const _0x59ac34=this['_getVidAttributeName'](_0x44a54c),_0x56e7fd=this['_revisionId']++,_0x2d2cf7='elementEnd'==_0x44a54c['type']?_0x44a54c['previousPosition']['path']['slice'](0x0,-0x1):_0x44a54c['previousPosition']['path'];_0x5efbda['getNodeByPath'](_0x2d2cf7)['_setAttribute'](_0x59ac34,_0x56e7fd),this['_touched']['set'](_0x56e7fd,{'userId':_0x10bf65});}_0x20b110['markers']['delete'](_0x21db94);}for(const _0x23042 of this['editor']['model']['createRangeIn'](_0x20b110)['getWalker']({'singleCharacters':!0x0})){const _0x23b0f5=this['_getVidAttributeName'](_0x23042),_0x32477f='elementEnd'==_0x23042['type']?_0x23042['previousPosition']['path']['slice'](0x0,-0x1):_0x23042['previousPosition']['path'],_0x3a16c9=_0x5efbda['getNodeByPath'](_0x32477f);_0x3a16c9['getAttribute'](_0x23b0f5)>0x0||_0x3a16c9['_setAttribute'](_0x23b0f5,_0x340fc3[_0x1902d4++]);}for(const [_0x12ecc5,_0x10c813]of _0x20b110['markers'])_0x12ecc5['startsWith']('revision:')||this['_markers']['set'](_0x12ecc5,_0x10c813);}const {roots:_0x2e9940}=this['_savedMetaData']['get'](_0x4f1d68['fromVersion']),{roots:_0x4d1e72}=this['_savedMetaData']['get'](_0x4f1d68['toVersion']),_0x199223=x(_0x2e9940['get']('$graveyard'));this['_baseRoots']['set']('$graveyard',_0x199223),this['_baseIdsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x199223,Number['NEGATIVE_INFINITY']));const _0x29a59c=x(_0x4d1e72['get']('$graveyard'));this['_diffRoots']['set']('$graveyard',_0x29a59c),this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x29a59c));const _0x400afa=Array['from'](this['_diffRoots'])['map'](([_0x5a1f08,_0x501dc3])=>[_0x5a1f08,x(_0x501dc3)]);this['_saveMetaData'](this['_lastTo'],_0x400afa,this['_markers'],_0x3e7185);}['reInit'](){this['_reset'](),this['_lastFrom']=-0x1,this['_lastTo']=-0x1,this['_savedMetaData']['clear'](),this['init'](this['source']);}['_saveMetaData'](_0xe5b625,_0x4fad1a,_0x572314,_0x57e231){const _0x19d954=new Map(_0x4fad1a),_0x1e2538=new Map(_0x47d9db(_0x57e231)),_0x2416d0=new Map();for(const [_0x17a86c,_0x49229b]of _0x572314)_0x2416d0['set'](_0x17a86c,{'start':_0x49229b['start']['clone'](),'end':_0x49229b['end']['clone'](),'rootName':_0x49229b['root']['rootName']});this['_savedMetaData']['set'](_0xe5b625,{'roots':_0x19d954,'markers':_0x2416d0,'rootsAttributes':_0x1e2538});}['_removeMetaData'](_0x513374){this['_savedMetaData']['delete'](_0x513374);}['_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'](_0x13860b,_0x18364e=null){let _0x1f4ef7=null;_0x13860b['is']('documentFragment')||(_0x1f4ef7=new _0x3412bd(_0x13860b['name'],{'vid_start':null===_0x18364e?this['_revisionId']++:_0x18364e++}));const _0x2c2542=[];for(const _0x29f839 of _0x13860b['getChildren']())if(_0x29f839['is']('element')){_0x2c2542['push'](this['_makeIdsRoot'](_0x29f839,_0x18364e));const _0x4f0849=_0x2c2542[_0x2c2542['length']-0x1];null!==_0x18364e&&(_0x18364e=_0x4f0849['is']('element','$text')?_0x4f0849['getAttribute']('vid')+0x1:_0x4f0849['getAttribute']('vid_end')+0x1);}else{for(let _0x2ef19c=0x0;_0x2ef19c<_0x29f839['offsetSize'];_0x2ef19c++)_0x2c2542['push'](new _0x3412bd('$text',{'vid':null===_0x18364e?this['_revisionId']++:_0x18364e++}));}if(_0x13860b['is']('documentFragment')){const _0x455c7b=N(_0x13860b['rootName']);return _0x455c7b['_insertChild'](0x0,_0x2c2542),_0x455c7b;}return _0x1f4ef7['_setAttribute']('vid_end',null===_0x18364e?this['_revisionId']++:_0x18364e++),_0x1f4ef7['_insertChild'](0x0,_0x2c2542),_0x1f4ef7;}['_calculateMetaData'](_0x338111,_0xd4160e,_0x52d8c1){this['_reset']();const {roots:_0x2f3e28,markers:_0x4d2c72,rootsAttributes:_0x4c9f32}=this['_savedMetaData']['get'](_0x338111);this['_baseRoots']=new Map(_0x2f3e28),this['_baseRootsAttributes']=new Map(_0x47d9db(_0x4c9f32));for(const [_0x4620f8,_0x245b1c]of this['_baseRoots'])if('$graveyard'!==_0x4620f8&&(this['_diffRoots']['set'](_0x4620f8,x(_0x245b1c)),this['_diffRootsAttributes']=new Map(_0x47d9db(_0x4c9f32)),_0x52d8c1)){const _0x105ec1=this['_revisionId'];this['_idsRoots']['set'](_0x4620f8,this['_makeIdsRoot'](_0x245b1c)),this['_baseIdsRoots']['set'](_0x4620f8,this['_makeIdsRoot'](_0x245b1c,_0x105ec1));}this['_startingRevisionId']=this['_revisionId'],this['_diffRoots']['set']('$graveyard',x(this['_baseRoots']['get']('$graveyard'))),_0x52d8c1&&this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](this['_baseRoots']['get']('$graveyard')));for(const [_0x44ec29,_0x2427c4]of _0x4d2c72){const _0x514dae=this['_baseRoots']['get'](_0x2427c4['rootName']),_0x20536b=this['_diffRoots']['get'](_0x2427c4['rootName']),_0x30362c=new _0x1f1750(this['_fixPosition'](_0x2427c4['start'],_0x514dae),this['_fixPosition'](_0x2427c4['end'],_0x514dae)),_0x1e21d0=this['_fixRange'](_0x30362c,_0x20536b);_0x514dae['markers']['set'](_0x44ec29,_0x30362c),this['_markers']['set'](_0x44ec29,_0x1e21d0);}this['_applyOperations'](_0x338111,_0xd4160e,_0x52d8c1);}['_applyOperations'](_0x3fb8e3,_0x1c7fc3,_0x482923){for(const _0x38314f of this['source']['getOperations'](_0x3fb8e3,_0x1c7fc3))this['_handleOperation'](_0x38314f,_0x482923);for(const _0x58a046 of this['_diffRoots']['values']())_0x58a046['markers']['clear']();for(const [_0x5b5edf,_0x223e61]of this['_markers']){this['_diffRoots']['get'](_0x223e61['root']['rootName'])['markers']['set'](_0x5b5edf,_0x223e61['clone']());}const _0xb65d7c=new Map(),_0x558e3c=new Map();for(const [_0x3fb8c1,_0xf8c138]of this['_diffRoots'])_0xb65d7c['set'](_0x3fb8c1,x(_0xf8c138)),_0x558e3c['set'](_0x3fb8c1,this['_diffRootsAttributes']['get'](_0x3fb8c1));this['_saveMetaData'](_0x1c7fc3,_0xb65d7c,this['_markers'],_0x558e3c);}['_getPreviousFrom'](_0x4f8fdc){const _0x3c1079=Array['from'](this['_savedMetaData']['keys']());_0x3c1079['sort']((_0x1c683a,_0xb379e2)=>_0x1c683a-_0xb379e2),_0x3c1079['reverse']();for(const _0x50bdd4 of _0x3c1079)if(_0x50bdd4<_0x4f8fdc)return _0x50bdd4;return Number['NEGATIVE_INFINITY'];}['_copyMarkers'](_0x59fd86,_0x37f485){const _0x149f8e=Array['from'](_0x37f485['markers'])['map'](([_0x871966,_0x342ba1])=>[_0x871966,this['_fixRange'](_0x342ba1,_0x59fd86)]);_0x59fd86['markers']=new Map(_0x149f8e);}['_transformMarkers'](_0x3d2b54){for(const _0x517662 of this['_markers']['values']()){const _0x13c09a=_0x517662['getTransformedByOperation'](_0x3d2b54),_0x5f26b1=_0x1f1750['_createFromRanges'](_0x13c09a);_0x517662['start']=_0x5f26b1['start'],_0x517662['end']=_0x5f26b1['end'];}}['_handleOperation'](_0x59efdd,_0x38f45e){if('addRoot'!=_0x59efdd['type']&&'detachRoot'!=_0x59efdd['type']){if('insert'==_0x59efdd['type']){const _0x451533=_0x59efdd['position']['root']['rootName'];this['_diffRoots']['has'](_0x451533)||(this['_diffRoots']['set'](_0x451533,N(_0x451533,!0x0)),this['_diffRootsAttributes']['set'](_0x451533,{}),_0x38f45e&&this['_idsRoots']['set'](_0x451533,N(_0x451533,!0x0)));}else{if('addRootAttribute'==_0x59efdd['type']||'removeRootAttribute'==_0x59efdd['type']||'changeRootAttribute'==_0x59efdd['type'])return void this['_handleRootAttributeOperation'](_0x59efdd);'marker'==_0x59efdd['type']&&this['_handleMarkerOperation'](_0x59efdd);}if('marker'!==_0x59efdd['type']){const _0x2f415f=this['_cloneOperation'](_0x59efdd,this['_diffRoots']);_0x2f415f['_execute'](),this['_transformMarkers'](_0x2f415f);}if(_0x38f45e)switch(_0x59efdd['type']){case'insert':this['_handleInsertOperation'](_0x59efdd);break;case'move':case'remove':case'reinsert':this['_handleMoveOperation'](_0x59efdd);break;case'merge':this['_handleMergeOperation'](_0x59efdd);break;case'split':this['_handleSplitOperation'](_0x59efdd);}}else this['_handleRootOperation'](_0x59efdd,_0x38f45e);}['_cloneOperation'](_0x52558d,_0x5bbc1d){const _0x436d21=_0x52558d['clone']();return _0x436d21['_authorId']=_0x52558d['_authorId'],this['_fixOperation'](_0x436d21,_0x5bbc1d),_0x436d21;}['_getBaseVids'](_0x5320c9){return _0x5320c9['map'](_0xe778ea=>{const _0x39764b=this['_getVidAttributeName'](_0xe778ea);return Number(_0xe778ea['item']['getAttribute'](_0x39764b));});}['_generateTape'](_0x5d01ea,_0x542cac){if(_0x5d01ea['is']('element','$text'))_0x542cac['push']({'item':_0x5d01ea,'type':'text'});else{_0x5d01ea['is']('element')&&_0x542cac['push']({'item':_0x5d01ea,'type':'elementStart'});for(const _0x422791 of _0x5d01ea['getChildren']())this['_generateTape'](_0x422791,_0x542cac);_0x5d01ea['is']('element')&&_0x542cac['push']({'item':_0x5d01ea,'type':'elementEnd'});}return _0x542cac;}['_getState'](){const _0x293818=new Map(this['_touched']),_0xea7caa=new Map(_0x293818),_0x1b5dc5=new Map(),_0x3a69e5={'insertions':{},'deletions':{}},_0x2c7ed2={'insertions':{},'deletions':{}},_0x21b8f9=new Map(),_0x1e138e=new Set([...this['_baseRoots']['keys'](),...this['_diffRoots']['keys']()]);_0x1e138e['delete']('$graveyard');for(const _0x1fc3d of _0x1e138e){const _0x287a8b=this['_diffRoots']['get'](_0x1fc3d)||N(_0x1fc3d,!0x1),_0xcfede3=this['_baseRoots']['get'](_0x1fc3d)||N(_0x1fc3d,!0x1);_0x287a8b['isAttached']()||_0xcfede3['isAttached']()?(_0x3a69e5['insertions'][_0x1fc3d]=x(_0x287a8b),_0x3a69e5['deletions'][_0x1fc3d]=x(_0xcfede3),this['_copyMarkers'](_0x3a69e5['deletions'][_0x1fc3d],_0xcfede3),this['_copyMarkers'](_0x3a69e5['insertions'][_0x1fc3d],_0x287a8b),_0x2c7ed2['insertions'][_0x1fc3d]=this['_generateTape'](this['_idsRoots']['get'](_0x1fc3d),[]),_0x2c7ed2['deletions'][_0x1fc3d]=this['_generateTape'](this['_baseIdsRoots']['get'](_0x1fc3d)||N(_0x1fc3d,!0x1),[])):_0x1e138e['delete'](_0x1fc3d);}for(const _0x183c53 of _0x1e138e){const _0x22f4b0=_0x2c7ed2['insertions'][_0x183c53];for(const _0xdf267a of _0x22f4b0){const _0x5675df=this['_getVidAttributeName'](_0xdf267a),_0x1f0c44=_0xdf267a['item']['getAttribute'](_0x5675df);_0xea7caa['delete'](_0x1f0c44),_0x1f0c44>=this['_startingRevisionId']&&_0x1b5dc5['set'](_0x1f0c44,_0x293818['get'](_0x1f0c44));}}for(const _0x1de85d of _0x1e138e){const _0x572b27=_0x2c7ed2['insertions'][_0x1de85d],_0x5e7e7f=this['_getBaseVids'](_0x2c7ed2['deletions'][_0x1de85d]);let _0x114c5a=0x0;for(const _0x302659 of _0x572b27){const _0xc1418c=this['_getVidAttributeName'](_0x302659),_0x45c495=_0x302659['item']['getAttribute'](_0xc1418c);if(!_0x1b5dc5['has'](_0x45c495)&&!_0x21b8f9['has'](_0x45c495)){if(_0xea7caa['has'](_0x45c495))_0x114c5a++;else{if(_0x45c495!=_0x5e7e7f[_0x114c5a]){const _0x52272c=_0x293818['get'](_0x45c495)||_0x293818['get'](_0x5e7e7f[_0x114c5a]);for(;_0x45c495!=_0x5e7e7f[_0x114c5a];)_0xea7caa['has'](_0x5e7e7f[_0x114c5a])||(_0x21b8f9['set'](_0x5e7e7f[_0x114c5a],_0x52272c),_0x293818['set'](_0x5e7e7f[_0x114c5a],_0x52272c)),_0x114c5a++;}_0x114c5a++;}}}}for(const _0x1ef58 of _0x1e138e){const _0x3fb076=_0x2c7ed2['insertions'][_0x1ef58];for(const _0x511bbe of _0x3fb076){const _0x13ed07=this['_getVidAttributeName'](_0x511bbe),_0x1a0ecb=_0x511bbe['item']['getAttribute'](_0x13ed07);if(_0x21b8f9['has'](_0x1a0ecb)){const _0x529587=_0x21b8f9['get'](_0x1a0ecb);_0xea7caa['has'](_0x1a0ecb)||_0xea7caa['set'](_0x1a0ecb,{..._0x529587}),_0x1b5dc5['set'](_0x1a0ecb,{..._0x529587});}}}for(const _0x2f730f of _0xea7caa['keys']())_0x2f730f>=this['_startingRevisionId']&&_0xea7caa['delete'](_0x2f730f);const _0x166960=new Map();for(const _0x498e90 of _0x1e138e){let _0xf3b588=_0x2c7ed2['insertions'][_0x498e90];for(const _0x39a6c2 of _0xf3b588)if(_0x39a6c2['item']['is']('element','tableCell')){const _0x146c28=this['_getVidAttributeName'](_0x39a6c2),_0x3134cd=_0x39a6c2['item']['getAttribute'](_0x146c28);if(_0x1b5dc5['has'](_0x3134cd)){const _0x324141=_0x39a6c2['item']['parent']['parent']['getAttribute']('vid_start'),_0x518836=_0x166960['get'](_0x324141)||new Set();_0x518836['add'](_0x1b5dc5['get'](_0x3134cd)['userId']),_0x166960['set'](_0x324141,_0x518836);}}_0xf3b588=_0x2c7ed2['deletions'][_0x498e90];for(const _0x3275eb of _0xf3b588)if(_0x3275eb['item']['is']('element','tableCell')){const _0x437bbb=this['_getVidAttributeName'](_0x3275eb),_0xb5cfd9=_0x3275eb['item']['getAttribute'](_0x437bbb);if(_0xea7caa['has'](_0xb5cfd9)){const _0x36c5fa=_0x3275eb['item']['parent']['parent']['getAttribute']('vid_start'),_0x22d863=_0x166960['get'](_0x36c5fa)||new Set();_0x22d863['add'](_0xea7caa['get'](_0xb5cfd9)['userId']),_0x166960['set'](_0x36c5fa,_0x22d863);}}for(const _0x2f2e2d of _0x166960['keys']())(_0x1b5dc5['has'](_0x2f2e2d)||_0xea7caa['has'](_0x2f2e2d))&&_0x166960['delete'](_0x2f2e2d);}for(const _0x34097d of _0x1e138e){const _0x3468f7=_0x2c7ed2['insertions'][_0x34097d];let _0x5e263b=null,_0x4d3777=null;for(const _0x450ccc of _0x3468f7){const _0x41550c=this['_getVidAttributeName'](_0x450ccc),_0x6ba008=_0x450ccc['item']['getAttribute'](_0x41550c),_0x37736a=_0x166960['get'](_0x6ba008);_0x37736a&&'elementStart'==_0x450ccc['type']&&(_0x5e263b=Array['from'](_0x37736a)[0x0],_0x4d3777=_0x450ccc['item']['getAttribute']('vid_end')),_0x5e263b&&(_0xea7caa['set'](_0x6ba008,{'userId':_0x5e263b}),_0x1b5dc5['set'](_0x6ba008,{'userId':_0x5e263b})),_0x6ba008==_0x4d3777&&(_0x5e263b=null,_0x4d3777=null);}}const _0x11a436={},_0x50f969=new Set();for(const _0xe61cb5 of _0x1e138e){const _0x14c007=_0x3a69e5['deletions'][_0xe61cb5],_0x34a17c=_0x3a69e5['insertions'][_0xe61cb5];for(const {userId:_0xc47def}of this['_touchedMarkers']['values']())null!==_0xc47def&&_0x50f969['add'](_0xc47def);for(const {userId:_0xbe94bf}of this['_touchedRoots']['values']())null!==_0xbe94bf&&_0x50f969['add'](_0xbe94bf);this['_markChanges'](_0x34a17c,_0x2c7ed2['insertions'][_0xe61cb5],_0x1b5dc5,'insertion',_0x50f969),this['_markChanges'](_0x14c007,_0x2c7ed2['deletions'][_0xe61cb5],_0xea7caa,'deletion',_0x50f969),_0x11a436[_0xe61cb5]={'insertions':this['_prepareViewToSave'](_0x34a17c),'deletions':this['_prepareViewToSave'](_0x14c007),'attachChange':this['_touchedRoots']['get'](_0xe61cb5)||null,'attributesBefore':_0x47d9db(this['_baseRootsAttributes']['get'](_0xe61cb5))||{},'attributesAfter':_0x47d9db(this['_diffRootsAttributes']['get'](_0xe61cb5))};}return{'diffData':_0x11a436,'authorsIds':Array['from'](_0x50f969)};}['_processRootBeforeSave'](_0x20d15a){for(const [,_0x494c31]of _0x20d15a['markers']){const _0x4b86fa=_0x494c31['start']['getAncestors']()['filter'](_0x1cc1d4=>'tableCell'==_0x1cc1d4['name']);for(const _0x4a492b of _0x4b86fa)0x1==_0x4a492b['childCount']&&_0x4a492b['getChild'](0x0)['is']('element','paragraph')&&_0x4a492b['getChild'](0x0)['_setAttribute']('keepParagraph',!0x0);}}['_prepareViewToSave'](_0x2ec51a){this['_processRootBeforeSave'](_0x2ec51a);const _0x310bc2=this['editor']['data']['toView'](_0x2ec51a,{}),_0x1386b6=Array['from'](_0x310bc2['getChildren']())['map'](_0x4eba6e=>this['_getViewJson'](_0x4eba6e));return JSON['stringify'](_0x1386b6);}['_getViewJson'](_0x5be867){if(_0x5be867['is']('$text'))return _0x5be867['data'];{const _0xf1b01=this['editor']['plugins']['get']('RevisionHistoryUtils'),_0x5072a2=_0x5be867,_0x4c0390=this['editor']['data']['htmlProcessor']['domConverter'],_0x157615={'type':_0xf1b01['_getTypeCharForViewElement'](_0x5072a2),'name':_0x5072a2['name'],'attributes':Array['from'](_0x5072a2['getAttributes']()),'children':Array['from'](_0x5072a2['getChildren']())['map'](_0xa0a7c3=>this['_getViewJson'](_0xa0a7c3))};if(_0x5be867['is']('uiElement')&&'$comment'!=_0x5be867['name']){const _0xb1d745=_0x5be867['render'](_0x4c0390['domDocument'],_0x4c0390);_0x157615['children']['push'](_0xb1d745['outerHTML']);}else{if(_0x5be867['is']('rawElement')){const _0x426b16=_0x4c0390['domDocument']['createElement'](_0x5072a2['name']);_0x5be867['render'](_0x426b16,_0x4c0390),_0x157615['children']['push'](_0x426b16['innerHTML']);}}const _0xec815=Array['from'](_0x5072a2['getCustomProperties']());_0xec815['length']>0x0&&(_0x157615['customProperties']=_0xec815);const _0x4671a8=_0x5072a2['getFillerOffset']();return null!==_0x4671a8&&(_0x157615['fillerOffset']=_0x4671a8),_0x157615;}}['_markChanges'](_0x520c2e,_0x139fa4,_0x26fe9e,_0x300a5c,_0x2acf75){let _0x20f5c3=null,_0x29c6b0=null,_0x2a743c=0x0;const _0x5ef582=this['editor']['model'];for(let _0x5e363a=0x0;_0x5e363a<_0x139fa4['length'];_0x5e363a++){const _0x35bb79=this['_getVidAttributeName'](_0x139fa4[_0x5e363a]),_0x3f5281=_0x139fa4[_0x5e363a]['item']['getAttribute'](_0x35bb79),_0x1213fa=_0x26fe9e['get'](_0x3f5281),_0x13dd03=_0x5e363a==_0x139fa4['length']-0x1;(!_0x20f5c3&&_0x1213fa&&(_0x20f5c3=_0x1213fa,_0x29c6b0=_0x139fa4[_0x5e363a]),_0x20f5c3&&(!_0x1213fa||_0x1213fa['userId']!=_0x20f5c3['userId']))&&(_0x64a82(_0x1213fa,P(_0x29c6b0,_0x520c2e,_0x5ef582),P(_0x139fa4[_0x5e363a],_0x520c2e,_0x5ef582)),_0x20f5c3=_0x1213fa||null,_0x29c6b0=_0x1213fa?_0x139fa4[_0x5e363a]:null),_0x20f5c3&&_0x13dd03&&_0x64a82(_0x1213fa,P(_0x29c6b0,_0x520c2e,_0x5ef582),V(_0x139fa4[_0x5e363a],_0x520c2e,_0x5ef582));}function _0x64a82(_0xb49b1f,_0x5a35f0,_0x5bd923){const _0x5112c2=_0x20f5c3['userId'],_0x202665='revision:'+_0x300a5c+':'+_0x5112c2+':'+_0x2a743c++,_0x4e2210=_0x5ef582['createRange'](_0x5a35f0,_0x5bd923);_0x520c2e['markers']['set'](_0x202665,_0x4e2210),null!==_0x5112c2&&_0x2acf75['add'](_0x5112c2);}}['_getVidAttributeName'](_0x15633c){switch(_0x15633c['type']){case'elementStart':return'vid_start';case'elementEnd':return'vid_end';default:return'vid';}}['_fixOperation'](_0x38ed52,_0x3f7883){_0x38ed52['baseVersion']=null;for(const _0x475c44 in _0x38ed52){const _0x743791=_0x38ed52[_0x475c44];if(_0x743791 instanceof _0x3b8f82){const _0x5423ac=_0x3f7883['get'](_0x743791['root']['rootName']);_0x38ed52[_0x475c44]=this['_fixPosition'](_0x743791,_0x5423ac);}if(_0x743791 instanceof _0x1f1750){const _0x4d52e4=_0x3f7883['get'](_0x743791['root']['rootName']);_0x38ed52[_0x475c44]=this['_fixRange'](_0x743791,_0x4d52e4);}'root'===_0x475c44&&(_0x38ed52['root']=_0x3f7883['get'](_0x38ed52['root']['rootName']));}}['_fixRange'](_0x51db1c,_0x5b44f2){return this['editor']['model']['createRange'](this['_fixPosition'](_0x51db1c['start'],_0x5b44f2),this['_fixPosition'](_0x51db1c['end'],_0x5b44f2));}['_fixPosition'](_0x2a337f,_0x560810){return this['editor']['model']['createPositionFromPath'](_0x560810,_0x2a337f['path'],_0x2a337f['stickiness']);}['_handleInsertOperation'](_0x38b30e){const _0x2fcc1a=this['_idsRoots']['get'](_0x38b30e['position']['root']['rootName']),_0x59215a=this['_fixPosition'](_0x38b30e['position'],_0x2fcc1a),_0x2cb4e4=null===_0x38b30e['_authorId']?null:_0x38b30e['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x3ca55f=_0x59215a['parent'],_0x5c9b3d=this['_revisionId'],_0x39813a=[];for(const _0x4d405b of _0x38b30e['nodes'])if(_0x4d405b['is']('element'))_0x39813a['push'](this['_makeIdsRoot'](_0x4d405b));else{for(let _0x4fd7b3=0x0;_0x4fd7b3<_0x4d405b['offsetSize'];_0x4fd7b3++)_0x39813a['push'](new _0x3412bd('$text',{'vid':this['_revisionId']++}));}const _0x553a5c=this['_revisionId'];for(let _0x23d42f=_0x5c9b3d;_0x23d42f<_0x553a5c;_0x23d42f++)this['_touched']['set'](_0x23d42f,{'userId':_0x2cb4e4});_0x3ca55f['_insertChild'](_0x59215a['offset'],_0x39813a);}['_handleMoveOperation'](_0x38c1e6){(_0x38c1e6=this['_cloneOperation'](_0x38c1e6,this['_idsRoots']))['_execute']();const _0x36f85c=null===_0x38c1e6['_authorId']?null:_0x38c1e6['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x1803f6=_0x38c1e6['getMovedRangeStart'](),_0x2f8988=_0x1803f6['parent'],_0x34e384=_0x1803f6['offset'];!function _0x4e4941(_0x5e1dfc,_0xb08fb6,_0x2dfb78,_0x575ee5){for(let _0x5a284e=_0x2dfb78;_0x5a284e<_0x575ee5;_0x5a284e++){const _0x51cb5c=_0xb08fb6['getChild'](_0x5a284e);_0x51cb5c['is']('element','$text')?_0x5e1dfc['set'](_0x51cb5c['getAttribute']('vid'),{'userId':_0x36f85c}):(_0x5e1dfc['set'](_0x51cb5c['getAttribute']('vid_start'),{'userId':_0x36f85c}),_0x4e4941(_0x5e1dfc,_0x51cb5c,0x0,_0x51cb5c['childCount']),_0x5e1dfc['set'](_0x51cb5c['getAttribute']('vid_end'),{'userId':_0x36f85c}));}}(this['_touched'],_0x2f8988,_0x34e384,_0x34e384+_0x38c1e6['howMany']);}['_handleMergeOperation'](_0x54b1a6){const _0x1d7031=null===(_0x54b1a6=this['_cloneOperation'](_0x54b1a6,this['_idsRoots']))['_authorId']?null:_0x54b1a6['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x466c68=_0x54b1a6['targetPosition']['parent'],_0x1df967=_0x54b1a6['sourcePosition']['parent'],_0x3128f5=_0x466c68['getAttribute']('vid_end'),_0x469d07=_0x1df967['getAttribute']('vid_start');_0x466c68['_setAttribute']('vid_end',_0x1df967['getAttribute']('vid_end')),_0x1df967['_setAttribute']('vid_end',_0x3128f5),this['_touched']['set'](_0x469d07,{'userId':_0x1d7031}),this['_touched']['set'](_0x3128f5,{'userId':_0x1d7031}),_0x54b1a6['_execute']();}['_handleSplitOperation'](_0xde4372){const _0x258010=null===(_0xde4372=this['_cloneOperation'](_0xde4372,this['_idsRoots']))['_authorId']?null:_0xde4372['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0xf12ac5=_0xde4372['graveyardPosition'],_0x48bcc6=_0xde4372['splitPosition']['parent'];_0xde4372['_execute']();const _0x3061f7=_0x48bcc6['getAttribute']('vid_end'),_0x571848=_0xde4372['insertionPosition']['nodeAfter'];if(_0xf12ac5){const _0x15343d=_0x571848['getAttribute']('vid_end'),_0x300d3a=_0x48bcc6['getAttribute']('vid_end');_0x48bcc6['_setAttribute']('vid_end',_0x15343d),_0x571848['_setAttribute']('vid_end',_0x300d3a),this['_touched']['set'](_0x48bcc6['getAttribute']('vid_end'),{'userId':_0x258010}),this['_touched']['set'](_0x571848['getAttribute']('vid_start'),{'userId':_0x258010});}else{const _0x524c7e=this['_revisionId']++,_0x167b19=this['_revisionId']++;_0x48bcc6['_setAttribute']('vid_end',_0x524c7e),_0x571848['_setAttribute']('vid_start',_0x167b19),_0x571848['_setAttribute']('vid_end',_0x3061f7),this['_touched']['set'](_0x524c7e,{'userId':_0x258010}),this['_touched']['set'](_0x167b19,{'userId':_0x258010});}}['_handleMarkerOperation'](_0x3b862b){if(!_0x3b862b['affectsData'])return;const _0x119ac7=(_0x3b862b=this['_cloneOperation'](_0x3b862b,this['_diffRoots']))['oldRange']?_0x3b862b['oldRange']['root']:null,_0x1b1939=_0x3b862b['newRange']?_0x3b862b['newRange']['root']:null;_0x119ac7&&this['_markers']['delete'](_0x3b862b['name']),_0x1b1939&&this['_markers']['set'](_0x3b862b['name'],_0x3b862b['newRange']['clone']());const _0x4220af=null===_0x3b862b['_authorId']?null:_0x3b862b['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0xb68b74=_0x3b862b['name'];if(!this['_touchedMarkers']['has'](_0xb68b74))return void this['_touchedMarkers']['set'](_0xb68b74,{'range':_0x3b862b['oldRange'],'userId':_0x4220af});const _0xd05683=this['_touchedMarkers']['get'](_0xb68b74),_0x2a2b81=_0xd05683['range'],_0xc54db1=_0x3b862b['newRange'];null==_0x2a2b81&&null==_0xc54db1||_0x2a2b81&&_0xc54db1&&_0x2a2b81['isEqual'](_0xc54db1)?this['_touchedMarkers']['delete'](_0x3b862b['name']):_0xd05683['userId']=_0x4220af;}['_handleRootOperation'](_0x328a33,_0x3a2ed0){this['_diffRoots']['has'](_0x328a33['rootName'])?this['_diffRoots']['get'](_0x328a33['rootName'])['_isAttached']=_0x328a33['isAdd']:(this['_diffRoots']['set'](_0x328a33['rootName'],N(_0x328a33['rootName'],!0x0)),this['_diffRootsAttributes']['set'](_0x328a33['rootName'],{}),_0x3a2ed0&&this['_idsRoots']['set'](_0x328a33['rootName'],N(_0x328a33['rootName'],!0x0)));const _0x1d3767=null===_0x328a33['_authorId']?null:_0x328a33['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x4d5b89=this['_touchedRoots']['get'](_0x328a33['rootName']);_0x4d5b89&&_0x4d5b89['userId']===_0x1d3767?this['_touchedRoots']['delete'](_0x328a33['rootName']):this['_touchedRoots']['set'](_0x328a33['rootName'],{'userId':_0x1d3767,'isAttached':_0x328a33['isAdd']});}['_handleRootAttributeOperation'](_0x3b652c){const _0x3db791=this['_diffRootsAttributes']['get'](_0x3b652c['root']['rootName']);null===_0x3b652c['newValue']?delete _0x3db791[_0x3b652c['key']]:_0x3db791[_0x3b652c['key']]=_0x3b652c['newValue'];}}function x(_0x1fc400){const _0x2c8e4b=N(_0x1fc400['rootName'],_0x1fc400['isAttached']());for(const _0x277e7c of _0x1fc400['getChildren']()){const _0x28693d=_0x277e7c['_clone'](!0x0);_0x2c8e4b['_appendChild'](_0x28693d);}return _0x2c8e4b;}function N(_0x1b6f6a,_0x4b11ae=!0x0){const _0x3c7cd9=new _0x57f020();return _0x3c7cd9['rootName']=_0x1b6f6a,_0x3c7cd9['_isAttached']=_0x4b11ae,_0x3c7cd9['isAttached']=()=>_0x3c7cd9['_isAttached'],_0x3c7cd9;}function P(_0x5cc13e,_0x2bb58b,_0x22e598){const _0x344600='elementEnd'==_0x5cc13e['type']?_0x22e598['createPositionAt'](_0x5cc13e['item'],'end'):_0x22e598['createPositionBefore'](_0x5cc13e['item']);return _0x22e598['createPositionFromPath'](_0x2bb58b,_0x344600['path'],_0x344600['stickiness']);}function V(_0x3e69f7,_0x52b606,_0x959ad4){const _0x3daac6='elementStart'==_0x3e69f7['type']?_0x959ad4['createPositionAt'](_0x3e69f7['item'],0x0):_0x959ad4['createPositionAfter'](_0x3e69f7['item']);return _0x959ad4['createPositionFromPath'](_0x52b606,_0x3daac6['path'],_0x3daac6['stickiness']);}class me extends/* #__PURE__ -- @preserve */
|
|
25
|
-
|
|
26
|
-
_0x19ac11(){['id'];['author'];['type'];['data'];['rootName'];constructor(_0x2e8bb3){super(),this['id']=_0x2e8bb3['id']||_0x196f07(),this['author']=_0x2e8bb3['author'],this['type']=_0x2e8bb3['type'],this['data']=_0x2e8bb3['data']||{},this['rootName']=_0x2e8bb3['rootName'],this['set']('createdAt',_0x2e8bb3['createdAt']);}['toJSON'](){return{'id':this['id'],'authorId':this['author']['id'],'type':this['type'],'data':this['data'],'createdAt':this['createdAt']};}}class J{['newRevisionId'];['oldRevisionId'];['changes'];constructor(_0xedf03f,_0x54bdc2){this['newRevisionId']=_0xedf03f,this['oldRevisionId']=_0x54bdc2,this['changes']=new _0x579e9c();}['_setChanges'](_0x30b0ea){for(const _0x4df21e of _0x30b0ea)this['changes']['add'](_0x4df21e);}}class u extends _0x3f3108{['repository'];['adapter']=null;['_utils'];['_activeViewTarget'];['_changeView'];['_changeIdToChange'];['_balloon'];static get['pluginName'](){return'RevisionViewer';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x129796,_0x22bbec,S,$];}constructor(_0x477e3b){super(_0x477e3b),this['repository']=this['editor']['plugins']['get']('RevisionsRepository'),this['_utils']=this['editor']['plugins']['get']('RevisionHistoryUtils'),this['set']('activeChange',null),this['set']('activeView',null),this['_activeViewTarget']=null,this['set']('diff',null),this['set']('isReady',!0x1),this['set']('isEnabled',!0x0),this['on']('change:isEnabled',(_0x1c180d,_0x3076d5,_0x4d91ce)=>{this['activeChange']=null,this['activeView']=null,this['editor']['editing']['view']['change'](_0x2899dd=>{for(const _0xb4238f of this['editor']['editing']['view']['document']['roots'])_0x4d91ce?_0x2899dd['removeClass']('ck-editor__editable__overlay',_0xb4238f):_0x2899dd['addClass']('ck-editor__editable__overlay',_0xb4238f);});}),this['bind']('isNavigationMode')['to'](this,'activeChange',_0x11a01c=>null!==_0x11a01c),this['bind']('currentChangeNumber')['to'](this,'isReady',this,'diff',this,'activeChange',(_0x372627,_0x13dd0d,_0x3ebfb3)=>_0x372627&&_0x3ebfb3?_0x13dd0d['changes']['getIndex'](_0x3ebfb3):0x0),this['bind']('numberOfChanges')['to'](this,'isReady',this,'diff',(_0x5bd91c,_0x5f548b)=>_0x5bd91c?_0x5f548b['changes']['length']:0x0),this['_changeView']=null,this['_changeIdToChange']=new Map(),this['_balloon']=this['editor']['plugins']['get'](_0x22bbec);}['init'](){const _0x15fa59=this['editor'],_0x4b2470=new rt(_0x15fa59,{'direction':'backward'}),_0x4457b7=new rt(_0x15fa59,{'direction':'forward'});(_0x15fa59['commands']['add']('showPreviousChange',_0x4b2470),_0x15fa59['commands']['add']('showNextChange',_0x4457b7),_0x15fa59['commands']['add']('restoreRevision',new nt(_0x15fa59)),this['on']('change:numberOfChanges',()=>{_0x4b2470['refresh'](),_0x4457b7['refresh']();}),this['_setConversion'](),this['_initInteractions'](),_0x15fa59['enableReadOnlyMode']('revision-viewer'),_0x15fa59['plugins']['has']('WidgetToolbarRepository'))&&_0x15fa59['plugins']['get']('WidgetToolbarRepository')['forceDisabled']('revision-viewer');}async['getRevisionDocumentData'](_0x430f25){return await this['_utils']['loadRevisionData'](_0x430f25,this['adapter']),this['_utils']['getRevisionDocumentData'](_0x430f25);}async['getRevisionRootsAttributes'](_0x5de649){return await this['_utils']['loadRevisionData'](_0x5de649,this['adapter']),this['_utils']['getRevisionRootsAttributes'](_0x5de649);}async['compare'](_0x44ba62,_0x1c5f15,_0x36fa5e=!0x1){if(!this['isEnabled'])return;const _0x4a6063=this['diff'],_0x2c5a74=this['repository'],_0x1ecc68='string'==typeof _0x44ba62?_0x2c5a74['getRevision'](_0x44ba62):_0x44ba62,_0x4a74c1='string'==typeof _0x1c5f15?_0x2c5a74['getRevision'](_0x1c5f15):_0x1c5f15,_0x71f3a6=_0x1ecc68['id'],_0x5d31f9=_0x4a74c1?_0x4a74c1['id']:null;if(!_0x36fa5e&&this['diff']&&this['diff']['newRevisionId']===_0x71f3a6&&this['diff']['oldRevisionId']===_0x5d31f9)return Promise['resolve']();this['isReady']=!0x1,this['activeView']=null,this['activeChange']=null,this['diff']=new J(_0x71f3a6,_0x5d31f9);const _0x59d1a5=this['_getRevisionsRange'](_0x1ecc68,_0x4a74c1,!0x0)['map'](_0x1103c5=>this['_utils']['loadRevisionData'](_0x1103c5,this['adapter']));return _0x59d1a5['push'](new Promise(_0x4b81a3=>{setTimeout(_0x4b81a3,0x14);})),Promise['all'](_0x59d1a5)['then'](()=>{if(!this['isEnabled'])return;this['_cleanUp']();const _0x1955e4=this['_getDiff'](_0x71f3a6,_0x5d31f9);for(const _0xc20d1b of _0x1955e4['changes'])this['_changeIdToChange']['set'](_0xc20d1b['id'],_0xc20d1b);this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x4c9d1a=>{for(const _0xbd4d08 of this['editor']['model']['document']['getRootNames']())_0x4c9d1a['detachRoot'](_0xbd4d08);for(const _0x2d3f7a of Object['keys'](_0x1955e4['model'])){const _0x28bcb6=_0x4c9d1a['addRoot'](_0x2d3f7a);for(const _0x20d9f7 of Object['keys'](_0x1955e4['attributes'][_0x2d3f7a]))_0x4c9d1a['setAttribute'](_0x20d9f7,_0x1955e4['attributes'][_0x2d3f7a][_0x20d9f7],_0x28bcb6);_0x4c9d1a['insert'](_0x1955e4['model'][_0x2d3f7a],_0x28bcb6,0x0);}}),this['diff']['_setChanges'](this['_sortAndFilterDiffChanges'](_0x1955e4['changes'])),this['isReady']=!0x0;})['catch'](_0x170044=>{console['error'](_0x170044),this['_cleanUp'](),_0x4a6063&&(this['diff']=_0x4a6063),this['isReady']=!0x0;});}['addRevisionData'](_0xaf9ad8,_0x3fc3c2){const _0x4355a0=this['repository']['createRevision'](_0xaf9ad8);return _0x4355a0['on']('_update',(_0x5267a7,_0x407d8e,_0x21b392)=>_0x3fc3c2(_0x407d8e,_0x21b392,_0x4355a0)),this['repository']['addRevision'](_0x4355a0),_0x4355a0;}['_cleanUp'](){this['activeChange']=null,this['_cleanMarkers'](),this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=null,this['_changeIdToChange']['clear'](),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x2c2cb8=>{for(const _0x1efdb8 of this['editor']['model']['document']['getRootNames']())_0x2c2cb8['detachRoot'](_0x1efdb8);});}['_sortAndFilterDiffChanges'](_0x37262b){const _0x1738fe=[],_0x17a281=new Map();for(const _0x42b640 of this['editor']['model']['document']['getRootNames']()){const _0xefed19=this['editor']['editing']['view']['getDomRoot'](_0x42b640);if(!_0xefed19)continue;const _0x18caa7=_0xefed19['getClientRects']()['item'](0x0);_0x18caa7&&(_0x1738fe['push'](_0x42b640),_0x17a281['set'](_0x42b640,_0x18caa7));}return _0x1738fe['sort']((_0x54a1a9,_0x8b780f)=>{const _0xada4d8=_0x17a281['get'](_0x54a1a9),_0x58bb00=_0x17a281['get'](_0x8b780f);return _0xada4d8['y']-_0x58bb00['y']||_0xada4d8['x']-_0x58bb00['x'];}),(_0x37262b=_0x37262b['filter'](_0x511421=>_0x1738fe['includes'](_0x511421['rootName'])))['sort']((_0x5f5bb3,_0x413e78)=>_0x1738fe['indexOf'](_0x5f5bb3['rootName'])-_0x1738fe['indexOf'](_0x413e78['rootName'])),_0x37262b;}['_makeTape'](_0x2d8899){const _0x1229b7=Array['from'](_0x2d8899['markers'])['filter'](([_0x46e45b,_0x5e94eb])=>_0x46e45b['startsWith']('revision:')&&!_0x5e94eb['isCollapsed']),_0x2a9afd=Array['from'](this['editor']['model']['createRangeIn'](_0x2d8899)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0x1229b7['length'])for(const _0xe647ca of _0x2a9afd){const [_0x364f9c,_0x4f6459]=_0x1229b7[0x0],[,_0x937016,_0x34ac6e]=_0x364f9c['split'](':');if(_0x4f6459['end']['isEqual'](_0xe647ca['nextPosition'])&&_0x1229b7['shift'](),(_0xe647ca['previousPosition']['isEqual'](_0x4f6459['start'])||_0xe647ca['previousPosition']['isAfter'](_0x4f6459['start']))&&('insertion'==_0x937016?_0xe647ca['isAdded']={'userId':_0x34ac6e}:'deletion'==_0x937016&&(_0xe647ca['isRemoved']={'userId':_0x34ac6e})),0x0==_0x1229b7['length'])break;}return _0x2a9afd;}['_refreshStartEndIndex'](_0x3f776d){const _0x36ec3e=new Map();for(let _0x5724f2=0x0;_0x5724f2<_0x3f776d['length'];_0x5724f2++)'text'===_0x3f776d[_0x5724f2]['type']?(_0x3f776d[_0x5724f2]['item']['startIndex']=_0x5724f2,_0x3f776d[_0x5724f2]['item']['endIndex']=_0x5724f2):('elementStart'===_0x3f776d[_0x5724f2]['type']?_0x3f776d[_0x5724f2]['item']['startIndex']=_0x5724f2:'elementEnd'===_0x3f776d[_0x5724f2]['type']&&(_0x3f776d[_0x5724f2]['item']['endIndex']=_0x5724f2),_0x36ec3e['set'](_0x3f776d[_0x5724f2]['id'],_0x5724f2));for(const _0x3e1a4c of _0x36ec3e['values']())'elementStart'===_0x3f776d[_0x3e1a4c]['type']?_0x3f776d[_0x3e1a4c]['item']['endIndex']=_0x36ec3e['get'](_0x3f776d[_0x3e1a4c]['pairId']):'elementEnd'===_0x3f776d[_0x3e1a4c]['type']&&(_0x3f776d[_0x3e1a4c]['item']['startIndex']=_0x36ec3e['get'](_0x3f776d[_0x3e1a4c]['pairId']));}['_processTape'](_0x32e543){for(let _0x33134b=0x0;_0x33134b<_0x32e543['length'];_0x33134b++){if('elementStart'===_0x32e543[_0x33134b]['type'])_0x32e543[_0x33134b]['item']['startIndex']=_0x33134b;else{if('elementEnd'===_0x32e543[_0x33134b]['type']){_0x32e543[_0x33134b]['item']['endIndex']=_0x33134b;const _0x2320af=_0x32e543[_0x33134b]['item']['startIndex'];_0x32e543[_0x2320af]['pairId']=_0x32e543[_0x33134b]['id'],_0x32e543[_0x33134b]['pairId']=_0x32e543[_0x2320af]['id'];}else _0x32e543[_0x33134b]['item']['startIndex']=_0x33134b,_0x32e543[_0x33134b]['item']['endIndex']=_0x33134b,_0x32e543[_0x33134b]['pairId']=null;}_0x32e543[_0x33134b]['markersStart']||(_0x32e543[_0x33134b]['markersStart']=[],_0x32e543[_0x33134b]['markersEnd']=[]);}}['_markInsertions'](_0x2f8207,_0x47ce2c){const _0x21e685=_0x2f8207['filter'](_0xd928b8=>!_0xd928b8['isAdded']);for(let _0x34a326=0x0;_0x34a326<_0x47ce2c['length'];_0x34a326++)_0x47ce2c[_0x34a326]['isAdded']&&(_0x21e685[_0x34a326]['isAdded']=_0x47ce2c[_0x34a326]['isAdded']);}['_getDiff'](_0x2f8124,_0x2cb601=null){const _0xbf5236=this['repository']['getRevision'](_0x2f8124),_0x2b6bfa=_0x2cb601?this['repository']['getRevision'](_0x2cb601):null,_0x28a88f=this['_getRevisionsRange'](_0xbf5236,_0x2b6bfa),_0x22b9e0=_0x28a88f[_0x28a88f['length']-0x1],_0x214ca7=new Map(),_0x321afc={'model':{},'attributes':{},'changes':[]},_0x4eabae=new Set(),_0x3f9c8b=new Map();for(let _0x23d813=_0x28a88f['length']-0x1;_0x23d813>=0x0;_0x23d813--){const _0x4c252d=_0x28a88f[_0x23d813];for(const _0xaab23b of Object['keys'](_0x4c252d['diffData']))if(_0x4c252d['diffData'][_0xaab23b]['attachChange']){const _0x5acf78=_0x4c252d['diffData'][_0xaab23b]['attachChange'];_0x5acf78['isAttached']?(_0x4eabae['add'](_0xaab23b),_0x3f9c8b['has'](_0xaab23b)&&_0x3f9c8b['get'](_0xaab23b)['userId']==_0x5acf78['userId']?_0x3f9c8b['delete'](_0xaab23b):_0x3f9c8b['set'](_0xaab23b,_0x5acf78)):_0x3f9c8b['has'](_0xaab23b)?(_0x4eabae['delete'](_0xaab23b),_0x3f9c8b['delete'](_0xaab23b)):(_0x4eabae['add'](_0xaab23b),_0x3f9c8b['set'](_0xaab23b,_0x5acf78));}else _0x4eabae['add'](_0xaab23b);}for(const _0x55076d of _0x4eabae){const _0x2c0b4d=_0x3f9c8b['has'](_0x55076d)&&!_0x3f9c8b['get'](_0x55076d)['isAttached'];let _0x59fc18=_0x2c0b4d?_0x28a88f['length']-0x1:0x0;const _0x3a4a03=_0x2c0b4d?-0x1:0x1;for(;_0x28a88f[_0x59fc18];){const _0x35dc79=_0x28a88f[_0x59fc18];if(_0x35dc79['diffData'][_0x55076d]){const _0x53f72b=_0x2c0b4d?_0x35dc79['diffData'][_0x55076d]['attributesBefore']:_0x35dc79['diffData'][_0x55076d]['attributesAfter'];_0x321afc['attributes'][_0x55076d]=_0x53f72b?_0x47d9db(_0x53f72b):{};break;}_0x59fc18+=_0x3a4a03;}}for(const _0x37ea74 of _0x28a88f){_0x37ea74['model']={};for(const _0x257e08 of _0x37ea74['authors'])_0x214ca7['set'](_0x257e08['id'],_0x257e08);for(const _0x45740f of _0x4eabae){const _0x31daf6=_0x37ea74['diffData'][_0x45740f]?_0x37ea74['diffData'][_0x45740f]['insertions']:'[]',_0x238743=_0x37ea74['diffData'][_0x45740f]?_0x37ea74['diffData'][_0x45740f]['deletions']:'[]';_0x37ea74['model'][_0x45740f]={'insertions':this['_utils']['_makeModelFromViewString'](_0x31daf6),'deletions':this['_utils']['_makeModelFromViewString'](_0x238743)};}}for(const _0x2f0113 of _0x4eabae){let _0x3c25e9=null,_0x1c41b3=0x0;const _0x3c5ab8=new Map(Array['from'](_0xbf5236['model'][_0x2f0113]['insertions']['markers'])['filter'](([_0x547c3f])=>!_0x547c3f['startsWith']('revision:')));let _0x12786d=0x0;for(const _0x566451 of _0x28a88f){const _0x15f8bb=this['_makeTape'](_0x566451['model'][_0x2f0113]['insertions']);_0x566451==_0xbf5236?(_0x3c25e9=_0x15f8bb,_0x1c41b3=_0x3c25e9['length'],_0x3c25e9['forEach'](_0x29a77a=>{_0x29a77a['id']=_0x12786d++;}),this['_processTape'](_0x3c25e9)):this['_markInsertions'](_0x3c25e9,_0x15f8bb);const _0x5c532d=_0x3c25e9['filter'](_0x39bbc7=>!_0x39bbc7['isAdded'])['map'](_0x20e448=>_0x20e448['id']);let _0x19885d=0x0;const _0x589293=this['_makeTape'](_0x566451['model'][_0x2f0113]['deletions']);_0x589293['forEach'](_0x5cc47d=>{_0x5cc47d['isRemoved']?_0x5cc47d['id']=_0x1c41b3++:_0x5cc47d['id']=_0x5c532d[_0x19885d++];}),this['_processTape'](_0x589293),this['_setDistance'](_0x3c25e9,'isAdded'),this['_setDistance'](_0x589293,'isRemoved'),_0x566451==_0xbf5236&&this['_markMarkers'](_0x3c25e9,_0x3c5ab8),_0x3c25e9=this['_joinTapes'](_0x3c25e9,_0x589293),this['_refreshStartEndIndex'](_0x3c25e9),this['_setDistance'](_0x3c25e9,'isRemoved');}_0x3c25e9=_0x3c25e9['filter'](_0x1d57c0=>!(_0x1d57c0['isAdded']&&_0x1d57c0['isRemoved']));const _0x20fe3b=new Map(_0x22b9e0['model'][_0x2f0113]['deletions']['markers']),_0x5b8c65=new Set(_0x3c5ab8['keys']());for(const _0x2b9ef0 of _0x20fe3b['keys']())_0x5b8c65['delete'](_0x2b9ef0);this['_markSuggestions'](_0x3c25e9,_0x5b8c65),this['_fixObsoleteTags'](_0x3c25e9),_0x3c25e9=this['_removeMissingPairs'](_0x3c25e9),_0x3c25e9=this['_markMismatchedRemovedTags'](_0x3c25e9),_0x3c25e9=this['_removeUnsupportedChanges'](_0x3c25e9);const {root:_0x4f99c5,changes:_0x206328}=this['_makeModelFromTape'](_0x3c25e9,_0x214ca7,_0x2f0113);_0x321afc['model'][_0x2f0113]=_0x4f99c5;const _0x608eac=_0x3f9c8b['get'](_0x2f0113);if(_0x608eac){const _0x2e32f4=_0x214ca7['get'](_0x608eac['userId']),_0x49873e=new G({'author':_0x2e32f4,'type':_0x608eac['isAttached']?'add':'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x2f0113});_0x206328['unshift'](_0x49873e),_0x321afc['attributes'][_0x2f0113]['revisionHistoryAttachChange']=_0x49873e['id'];}_0x321afc['changes']=_0x321afc['changes']['concat'](_0x206328);}return _0x321afc;}['_markMarkers'](_0x1f69c3,_0x445807){for(let _0x3a74e7=0x0;_0x3a74e7<_0x1f69c3['length'];_0x3a74e7++)for(const [_0x3b2864,_0x5f33ac]of _0x445807)!_0x5f33ac['isCollapsed']&&_0x5f33ac['start']['isEqual'](_0x1f69c3[_0x3a74e7]['previousPosition'])&&_0x1f69c3[_0x3a74e7]['markersStart']['push'](_0x3b2864),_0x5f33ac['end']['isEqual'](_0x1f69c3[_0x3a74e7]['nextPosition'])&&_0x1f69c3[_0x3a74e7]['markersEnd']['push'](_0x3b2864);}['_joinTapes'](_0x25e3d3,_0x4624b1){let _0x21f715=[],_0x3827b1=0x0,_0x2c68ba=0x0;for(;_0x3827b1<_0x25e3d3['length']||_0x2c68ba<_0x4624b1['length'];){const _0x24b61b=_0x25e3d3[_0x3827b1]||{},_0x535cb6=_0x4624b1[_0x2c68ba]||{};if(_0x24b61b['id']==_0x535cb6['id'])_0x3827b1++,_0x2c68ba++,_0x21f715['push'](_0x24b61b);else{if(_0x535cb6['isRemoved']&&_0x24b61b['isAdded']){const {commonTape:_0x1eddf4,iEnd:_0x16b1cf,jEnd:_0x260192}=this['_threeWayMerge'](_0x25e3d3,_0x3827b1,_0x4624b1,_0x2c68ba);_0x21f715=_0x21f715['concat'](_0x1eddf4),_0x3827b1=_0x16b1cf,_0x2c68ba=_0x260192;}else _0x535cb6['isRemoved']?(_0x2c68ba++,_0x21f715['push'](_0x535cb6)):(_0x3827b1++,_0x21f715['push'](_0x24b61b));}}return _0x21f715;}['_markSuggestions'](_0x13ae5c,_0x1b50df){const _0x106d11=[];for(let _0x24a637=0x0;_0x24a637<_0x13ae5c['length'];_0x24a637++){for(let _0x36ad4d=0x0;_0x36ad4d<_0x13ae5c[_0x24a637]['markersStart']['length'];_0x36ad4d++){const _0x20039e=_0x13ae5c[_0x24a637]['markersStart'][_0x36ad4d];if(!_0x1b50df['has'](_0x20039e))continue;const {group:_0x143bb6,type:_0x1418c0,authorId:_0xb67819}=_0x2cb8cc(_0x20039e);'revision-suggestion'!=_0x143bb6||'insertion'!=_0x1418c0&&'deletion'!=_0x1418c0||(_0x106d11['unshift']({'type':_0x1418c0,'name':_0x20039e,'userId':_0xb67819}),_0x13ae5c[_0x24a637]['markersStart']['splice'](_0x36ad4d,0x1),_0x36ad4d--);}_0x5cac1e(_0x13ae5c[_0x24a637]);for(let _0x56e59a=0x0;_0x56e59a<_0x13ae5c[_0x24a637]['markersEnd']['length'];_0x56e59a++){const _0x1abc0c=_0x13ae5c[_0x24a637]['markersEnd'][_0x56e59a];if(!_0x1b50df['has'](_0x1abc0c))continue;const {group:_0x1d7daa,type:_0x31254a}=_0x2cb8cc(_0x1abc0c);if('revision-suggestion'!=_0x1d7daa||'insertion'!=_0x31254a&&'deletion'!=_0x31254a)continue;_0x13ae5c[_0x24a637]['markersEnd']['splice'](_0x56e59a,0x1),_0x56e59a--;const _0x328cf6=_0x106d11['findIndex'](_0x23711c=>_0x23711c['name']==_0x1abc0c);_0x328cf6>-0x1&&_0x106d11['splice'](_0x328cf6,0x1);}}function _0x2cb8cc(_0x48e82d){const _0x47cb5a=_0x48e82d['split'](':');return{'group':_0x47cb5a[0x0],'type':_0x47cb5a[0x1],'subType':_0x47cb5a['length']>=0x5?_0x47cb5a[0x2]:null,'id':_0x47cb5a['length']<0x5?_0x47cb5a[0x2]:_0x47cb5a[0x3],'authorId':_0x47cb5a['length']<0x5?_0x47cb5a[0x3]:_0x47cb5a[0x4],'markerCount':0x6==_0x47cb5a['length']?_0x47cb5a[0x5]:null};}function _0x5cac1e(_0x979370){for(let _0x32daff=0x0;_0x32daff<_0x106d11['length'];_0x32daff++){if(_0x979370['isAdded']&&'insertion'==_0x106d11[_0x32daff]['type']&&_0x979370['isAdded']['userId']==_0x106d11[_0x32daff]['userId'])return _0x979370['isAddSuggestion']=_0x106d11[_0x32daff],void delete _0x979370['isAdded'];if(!_0x979370['isAdded']&&!_0x979370['isRemoved']&&'deletion'==_0x106d11[_0x32daff]['type'])return void(_0x979370['isRemoveSuggestion']=_0x106d11[_0x32daff]);}}}['_setDistance'](_0x5cae86,_0x48489e){let _0x5487af=0x0,_0x48ba0c=!0x1;const _0x46e416=new Map();for(const _0x536be0 of _0x5cae86)_0x536be0[_0x48489e]?_0x48ba0c&&(_0x5487af++,_0x48ba0c=!0x1):(_0x5487af++,_0x48ba0c=!0x0),_0x46e416['set'](_0x536be0['id'],_0x5487af);for(let _0x43ff94=0x0;_0x43ff94<_0x5cae86['length'];_0x43ff94++){if('isRemoved'==_0x48489e&&_0x5cae86[_0x43ff94]['isAdded']||'isAdded'==_0x48489e&&_0x5cae86[_0x43ff94]['isRemoved'])continue;if('text'==_0x5cae86[_0x43ff94]['type']){_0x5cae86[_0x43ff94]['distance']=0x0;continue;}const _0x5e9b3f=_0x46e416['get'](_0x5cae86[_0x43ff94]['pairId']),_0x225f1f=_0x46e416['get'](_0x5cae86[_0x43ff94]['id']);_0x5cae86[_0x43ff94]['distance']=_0x5e9b3f-_0x225f1f;}}['_getRevisionsRange'](_0x422440,_0x4772f2,_0x3230c8=!0x1){const _0x242357=[];let _0x1f1b20=this['repository']['getIndex'](_0x422440),_0x291b8b=this['repository']['getIndex'](_0x4772f2);for(-0x1==_0x291b8b&&(_0x291b8b=this['repository']['_revisions']['length'],_0x3230c8=!0x1);_0x1f1b20<_0x291b8b;)_0x242357['push'](this['repository']['getRevision'](_0x1f1b20)),_0x1f1b20++;return _0x3230c8&&_0x242357['push'](this['repository']['getRevision'](_0x1f1b20)),_0x242357;}['_threeWayMerge'](_0x46ed76,_0x17a7f4,_0x3d60a9,_0x5f3332){const _0x2520dd=this['editor']['model']['schema'];let _0x549337=_0x17a7f4;for(;_0x46ed76[_0x549337]&&_0x46ed76[_0x549337]['isAdded'];)_0x549337++;let _0x1f2e0d=_0x5f3332;for(;_0x3d60a9[_0x1f2e0d]&&_0x3d60a9[_0x1f2e0d]['isRemoved'];)_0x1f2e0d++;_0x4733b4(_0x46ed76,_0x17a7f4,_0x549337),_0x4733b4(_0x3d60a9,_0x5f3332,_0x1f2e0d);const _0x2078ad=_0x3d60a9['slice'](_0x5f3332,_0x1f2e0d)['concat'](_0x46ed76['slice'](_0x17a7f4,_0x549337));return _0x2078ad['sort']((_0x47a45e,_0x1a84a8)=>_0x47a45e['side']!=_0x1a84a8['side']?_0x47a45e['side']-_0x1a84a8['side']:_0x47a45e['level']!=_0x1a84a8['level']?_0x47a45e['level']-_0x1a84a8['level']:_0x47a45e['distance']!=_0x1a84a8['distance']?_0x1a84a8['distance']-_0x47a45e['distance']:!!_0x47a45e['isAdded']!=!!_0x1a84a8['isAdded']?-0x1==_0x47a45e['side']||0x0==_0x47a45e['side']?_0x47a45e['isAdded']?-0x1:0x1:_0x47a45e['isAdded']?0x1:-0x1:_0x47a45e['index']-_0x1a84a8['index']),{'commonTape':_0x2078ad,'iEnd':_0x549337,'jEnd':_0x1f2e0d};function _0x4733b4(_0x459505,_0x29f4fd,_0x88cea){let _0x5367d6=-0x1,_0x370eb9=Number['POSITIVE_INFINITY'],_0x504c85=!0x0;for(let _0x8385cd=_0x29f4fd;_0x8385cd<_0x88cea;_0x8385cd++)if(_0x2520dd['isInline'](_0x459505[_0x8385cd]['item'])||(_0x504c85=!0x1),_0x459505[_0x8385cd]['item']['startIndex']<_0x29f4fd&&(_0x5367d6=_0x8385cd),_0x459505[_0x8385cd]['item']['endIndex']>=_0x88cea){_0x370eb9=_0x8385cd;break;}_0x504c85&&(_0x5367d6=_0x88cea-0x1);for(let _0x4080e1=_0x29f4fd;_0x4080e1<_0x88cea;_0x4080e1++)_0x459505[_0x4080e1]['side']=_0x4080e1<=_0x5367d6?-0x1:_0x4080e1<_0x370eb9?0x0:0x1,_0x459505[_0x4080e1]['index']=_0x4080e1;let _0x33402f=0x0;for(let _0xbfbda6=_0x29f4fd;_0xbfbda6<=_0x5367d6;_0xbfbda6++)0x0==_0x459505[_0xbfbda6]['distance']?_0x459505[_0xbfbda6]['level']=_0x33402f:(_0x33402f++,_0x459505[_0xbfbda6]['level']=_0x33402f,_0x33402f++);for(let _0x137d2b=_0x29f4fd;_0x137d2b<_0x88cea;_0x137d2b++)0x0==_0x459505[_0x137d2b]['side']&&(_0x459505[_0x137d2b]['level']=_0x33402f);_0x33402f=0x0;for(let _0x50d0ee=_0x88cea-0x1;_0x50d0ee>=_0x370eb9;_0x50d0ee--)0x0==_0x459505[_0x50d0ee]['distance']?_0x459505[_0x50d0ee]['level']=_0x33402f:(_0x33402f--,_0x459505[_0x50d0ee]['level']=_0x33402f,_0x33402f--);}}['_fixObsoleteTags'](_0x4e2f1e){const _0x70f5b8=new Map(),_0x2473e2=this['editor']['model']['schema'];for(let _0xc96cb=0x1;_0xc96cb<_0x4e2f1e['length'];_0xc96cb++){let _0x26b1b9,_0x47de84,_0x23195e;const _0x286b21=_0x4e2f1e[_0xc96cb],_0x2c5acc=_0x4e2f1e[_0xc96cb-0x1];if('text'==_0x286b21['type'])continue;if(_0x286b21['type']!=_0x2c5acc['type'])continue;if(!_0x2473e2['isBlock'](_0x2c5acc['item'])||_0x2473e2['isLimit'](_0x2c5acc['item']))continue;if(!_0x2473e2['isBlock'](_0x286b21['item'])||_0x2473e2['isLimit'](_0x286b21['item']))continue;if((_0x4e2f1e[_0xc96cb]['isAdded']||_0x4e2f1e[_0xc96cb]['isAddSuggestion'])&&_0x4e2f1e[_0xc96cb-0x1]['isRemoved'])_0x26b1b9=_0x4e2f1e[_0xc96cb],_0x47de84=_0x4e2f1e[_0xc96cb-0x1],_0x23195e=_0xc96cb-0x1;else{if(!_0x4e2f1e[_0xc96cb]['isRemoved']||!_0x4e2f1e[_0xc96cb-0x1]['isAdded']&&!_0x4e2f1e[_0xc96cb-0x1]['isAddSuggestion'])continue;_0x26b1b9=_0x4e2f1e[_0xc96cb-0x1],_0x47de84=_0x4e2f1e[_0xc96cb],_0x23195e=_0xc96cb;}const _0x3fbd53=_0x26b1b9['level']==_0x47de84['level'],_0x2dcc66=Math['abs'](_0x26b1b9['level'])<Math['abs'](_0x47de84['level'])&&0x0==_0x47de84['distance'];(_0x3fbd53||_0x2dcc66)&&(_0x70f5b8['set'](_0x47de84['id'],_0x26b1b9['id']),_0x4e2f1e['splice'](_0x23195e,0x1),_0xc96cb--,_0x26b1b9['isAdded']=!0x1);}for(let _0x1a043b=0x0;_0x1a043b<_0x4e2f1e['length'];_0x1a043b++)_0x70f5b8['has'](_0x4e2f1e[_0x1a043b]['pairId'])&&(_0x4e2f1e[_0x1a043b]['pairId']=_0x70f5b8['get'](_0x4e2f1e[_0x1a043b]['pairId']));}['_removeMissingPairs'](_0xe98f5f){const _0x235e49=new Set(_0xe98f5f['map'](_0x384454=>_0x384454['id']));for(let _0x7d8be1=0x0;_0x7d8be1<_0xe98f5f['length'];_0x7d8be1++)_0x235e49['has'](_0xe98f5f[_0x7d8be1]['pairId'])||0x0==_0xe98f5f[_0x7d8be1]['distance']||(_0xe98f5f[_0x7d8be1]['isIncorrect']=!0x0);return _0xe98f5f['filter'](_0x563e6d=>!_0x563e6d['isIncorrect']);}['_markMismatchedRemovedTags'](_0x4e4b8){const _0x38fc2c=new Set();for(let _0x4ddab3=0x0;_0x4ddab3<_0x4e4b8['length'];_0x4ddab3++){if(_0x38fc2c['has'](_0x4e4b8[_0x4ddab3]['id'])&&_0x4e4b8[_0x4ddab3]['isRemoved']&&(_0x4e4b8[_0x4ddab3]['isIncorrect']=!0x0),_0x4e4b8[_0x4ddab3]['isIncorrect'])continue;if(0x0==_0x4e4b8[_0x4ddab3]['distance'])continue;if('elementStart'!=_0x4e4b8[_0x4ddab3]['type'])continue;if(null==_0x4e4b8[_0x4ddab3]['pairId'])continue;let _0x44aac6=_0x4ddab3+0x1,_0x5c4f00=0x0;for(;_0x4e4b8[_0x44aac6]['id']!=_0x4e4b8[_0x4ddab3]['pairId'];)'elementStart'==_0x4e4b8[_0x44aac6]['type']?_0x5c4f00++:'elementEnd'==_0x4e4b8[_0x44aac6]['type']&&_0x5c4f00--,_0x44aac6++;if(0x0!=_0x5c4f00){if(_0x4e4b8[_0x4ddab3]['isRemoved'])_0x4e4b8[_0x4ddab3]['isIncorrect']=!0x0;else{for(;_0x44aac6!=_0x4ddab3;)_0x4e4b8[_0x44aac6]['isRemoved']&&0x0!=_0x4e4b8[_0x44aac6]['distance']&&(_0x4e4b8[_0x44aac6]['isIncorrect']=!0x0,_0x38fc2c['add'](_0x4e4b8[_0x44aac6]['pairId'])),_0x44aac6--;}}}return _0x4e4b8['filter'](_0x154855=>!_0x154855['isIncorrect']);}['_removeUnsupportedChanges'](_0x2abc68){const _0x59157c=this['editor']['model']['schema'];for(let _0x34232b=0x0;_0x34232b<_0x2abc68['length'];_0x34232b++){if(!(_0x2abc68[_0x34232b]['isAdded']||_0x2abc68[_0x34232b]['isAddSuggestion']||_0x2abc68[_0x34232b]['isRemoved']||_0x2abc68[_0x34232b]['isRemoveSuggestion']))continue;if(0x0==_0x2abc68[_0x34232b]['distance'])continue;const _0x19b020=_0x2abc68[_0x34232b]['item'];_0x59157c['isBlock'](_0x19b020)||_0x59157c['isLimit'](_0x19b020)||(_0x2abc68[_0x34232b]['isAdded']&&delete _0x2abc68[_0x34232b]['isAdded'],_0x2abc68[_0x34232b]['isAddSuggestion']&&delete _0x2abc68[_0x34232b]['isAddSuggestion'],_0x2abc68[_0x34232b]['isRemoveSuggestion']&&delete _0x2abc68[_0x34232b]['isRemoveSuggestion'],_0x2abc68[_0x34232b]['isRemoved']&&(_0x2abc68[_0x34232b]['isIncorrect']=!0x0));}return _0x2abc68['filter'](_0x28eba2=>!_0x28eba2['isIncorrect']);}['_makeModelFromTape'](_0x584fdb,_0x309c44,_0x1061e7){const _0x54aceb=new _0x57f020(),_0x2e1a6b=[],_0x576064=new Map(),_0x1e66b1=this['editor']['model'],_0x2d0290=_0x1e66b1['schema'],_0x354d5d=[_0x54aceb],_0xa33559={},_0xb51214={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x306941=null;const _0x1d67c6=[0x0];for(let _0x339b79=0x0;_0x339b79<_0x584fdb['length'];_0x339b79++)if('elementStart'===_0x584fdb[_0x339b79]['type']){_0x584fdb[_0x339b79]['previousPosition']=_0x1e66b1['createPositionFromPath'](_0x54aceb,_0x1d67c6);const _0x33831d=new _0x3412bd(_0x584fdb[_0x339b79]['item']['name'],_0x584fdb[_0x339b79]['item']['getAttributes']());_0x354d5d[0x0]['_appendChild'](_0x33831d),_0x1d67c6['push'](0x0),_0x354d5d['unshift'](_0x33831d),_0x584fdb[_0x339b79]['nextPosition']=_0x1e66b1['createPositionFromPath'](_0x54aceb,_0x1d67c6);}else'elementEnd'===_0x584fdb[_0x339b79]['type']?(_0x354d5d['shift'](),_0x584fdb[_0x339b79]['previousPosition']=_0x1e66b1['createPositionFromPath'](_0x54aceb,_0x1d67c6),_0x1d67c6['pop'](),_0x1d67c6[_0x1d67c6['length']-0x1]++,_0x584fdb[_0x339b79]['nextPosition']=_0x1e66b1['createPositionFromPath'](_0x54aceb,_0x1d67c6)):(_0x584fdb[_0x339b79]['previousPosition']=_0x1e66b1['createPositionFromPath'](_0x54aceb,_0x1d67c6),_0x306941?_0x306941['_data']+=_0x584fdb[_0x339b79]['item']['data']:_0x306941=new _0x433cec(_0x584fdb[_0x339b79]['item']['data'],_0x584fdb[_0x339b79]['item']['getAttributes']()),_0x584fdb[_0x339b79+0x1]&&'text'===_0x584fdb[_0x339b79+0x1]['type']&&_0x30894(_0x306941,_0x584fdb[_0x339b79+0x1]['item'])||(_0x354d5d[0x0]['_appendChild'](_0x306941),_0x306941=null),_0x1d67c6[_0x1d67c6['length']-0x1]+=_0x584fdb[_0x339b79]['item']['offsetSize'],_0x584fdb[_0x339b79]['nextPosition']=_0x1e66b1['createPositionFromPath'](_0x54aceb,_0x1d67c6));for(let _0x153516=0x0;_0x153516<_0x584fdb['length'];_0x153516++){const _0x5a0dc5=_0x584fdb[_0x153516]['previousPosition'],_0x2d548f=_0x584fdb[_0x153516]['nextPosition'];for(const _0x448f7f of _0x584fdb[_0x153516]['markersStart'])_0x576064['set'](_0x448f7f,{'start':_0x5a0dc5,'end':null});_0xad4db0('isRemoveSuggestion',_0x153516,_0x5a0dc5,_0x2d548f),_0xad4db0('isAddSuggestion',_0x153516,_0x5a0dc5,_0x2d548f),_0xad4db0('isRemoved',_0x153516,_0x5a0dc5,_0x2d548f),_0xad4db0('isAdded',_0x153516,_0x5a0dc5,_0x2d548f);for(const _0x420e8a of _0x584fdb[_0x153516]['markersEnd']){const _0x93859=_0x576064['get'](_0x420e8a);_0x93859?_0x93859['end']=_0x2d548f:_0x576064['set'](_0x420e8a,{'start':_0x2d548f,'end':_0x2d548f});}}for(const [_0x4c5f7f,_0x3c5dfd]of _0x576064){const _0x4b9794=this['editor']['model']['createRange'](_0x3c5dfd['start'],_0x3c5dfd['end']);_0x54aceb['markers']['set'](_0x4c5f7f,_0x4b9794);}return _0x2e1a6b['sort']((_0x2bfcdd,_0x90984a)=>{const _0x2020ea=_0x54aceb['markers']['get']('revision:'+_0x2bfcdd['id']),_0x2874a0=_0x54aceb['markers']['get']('revision:'+_0x90984a['id']);return _0x2020ea['start']['isBefore'](_0x2874a0['start'])?-0x1:_0x2020ea['start']['isAfter'](_0x2874a0['start'])?0x1:_0x2020ea['end']['isBefore'](_0x2874a0['end'])?-0x1:_0x2020ea['end']['isAfter'](_0x2874a0['end'])?0x1:'add'===_0x2bfcdd['type']?-0x1:0x1;}),{'root':_0x54aceb,'changes':_0x2e1a6b};function _0xad4db0(_0xa4c82b,_0x226d2c,_0x33301b,_0x529f94){const _0x42f868=!!_0x584fdb[_0x226d2c][_0xa4c82b],_0x2da6b4=_0x42f868?_0x584fdb[_0x226d2c][_0xa4c82b]['userId']:null,_0x5300d4=_0x226d2c===_0x584fdb['length']-0x1,_0x471456=_0xb51214[_0xa4c82b][0x0],_0x1613e7=_0x2d0290['isObject'](_0x584fdb[_0x226d2c]['item']);!_0xa33559[_0xa4c82b]&&_0x42f868?_0xa33559[_0xa4c82b]={'start':_0x33301b,'tapeItem':_0x584fdb[_0x226d2c],'userId':_0x2da6b4,'type':_0xa4c82b}:_0xa33559[_0xa4c82b]&&!_0x42f868?(_0xa33559[_0xa4c82b]['end']=_0x33301b,_0x1fde0f(_0xa33559[_0xa4c82b]),_0xa33559[_0xa4c82b]=null):_0xa33559[_0xa4c82b]&&_0x42f868&&_0xa33559[_0xa4c82b]['userId']!==_0x2da6b4&&(_0xa33559[_0xa4c82b]['end']=_0x33301b,_0x471456&&_0x471456['userId']===_0xa33559[_0xa4c82b]['userId']||_0x1fde0f(_0xa33559[_0xa4c82b]),_0xa33559[_0xa4c82b]={'start':_0x33301b,'tapeItem':_0x584fdb[_0x226d2c],'userId':_0x2da6b4,'type':_0xa4c82b}),_0xa33559[_0xa4c82b]&&_0x1613e7&&('elementStart'!==_0x584fdb[_0x226d2c]['type']||_0x471456&&_0x471456['userId']===_0x2da6b4||_0xb51214[_0xa4c82b]['unshift']({'userId':_0x2da6b4,'object':_0x584fdb[_0x226d2c]['item'],'change':_0xa33559[_0xa4c82b]}),'elementEnd'===_0x584fdb[_0x226d2c]['type']&&_0x471456&&_0x471456['object']===_0x584fdb[_0x226d2c]['item']&&(_0xb51214[_0xa4c82b]['shift'](),_0xa33559[_0xa4c82b]=_0x471456['change'])),_0xa33559[_0xa4c82b]&&_0x5300d4&&(_0xa33559[_0xa4c82b]['end']=_0x529f94,_0x1fde0f(_0xa33559[_0xa4c82b]),_0xa33559[_0xa4c82b]=null);}function _0x1fde0f({start:_0x4a6c44,end:_0x42f06c,tapeItem:_0x558f06,userId:_0x3e2c95,type:_0x28d5a9}){const _0x506a53=_0x558f06['item'],_0x58c4c7=_0x1e66b1['schema']['isBlock'](_0x506a53)&&!_0x1e66b1['schema']['isLimit'](_0x506a53),_0xd2e764=_0x4a6c44['nodeAfter']==_0x42f06c['parent']&&_0x42f06c['isAtStart'];if(_0x58c4c7&&_0xd2e764)return;const _0x1ae5e7=_0x1e66b1['createRange'](_0x4a6c44,_0x42f06c),_0x4d0ef3=_0x309c44['get'](_0x3e2c95),_0xf9e0fb=new G({'author':_0x4d0ef3,'type':'isAdded'==_0x28d5a9||'isAddSuggestion'==_0x28d5a9?'add':'remove','data':{'isSuggestion':'isAddSuggestion'==_0x28d5a9||'isRemoveSuggestion'==_0x28d5a9},'createdAt':new Date(),'rootName':_0x1061e7});_0x2e1a6b['push'](_0xf9e0fb),_0x54aceb['markers']['set']('revision:'+_0xf9e0fb['id'],_0x1ae5e7);}function _0x30894(_0x416ef0,_0x23e956){const _0x4ee46e=_0x416ef0['getAttributes'](),_0x780cf0=_0x23e956['getAttributes']();for(const _0x33fa57 of _0x4ee46e){if(_0x33fa57[0x1]!==_0x23e956['getAttribute'](_0x33fa57[0x0]))return!0x1;_0x780cf0['next']();}return _0x780cf0['next']()['done'];}}['_setConversion'](){this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision','view':_0x2115f7=>{const _0x158fc5=_0x2115f7['markerName']['split'](':')[0x1],_0x285c47=this['_getChangeFromId'](_0x158fc5);if(!_0x285c47)return null;const _0x53dc64='add'==_0x285c47['type']?'insertion':'deletion',_0x3b8b45=['ck-suggestion-marker','ck-suggestion-marker-'+_0x53dc64];return _0x285c47['data']['isSuggestion']&&_0x3b8b45['push']('ck-suggestion-marker-'+_0x53dc64+'-new'),this['activeChange']==_0x285c47&&_0x3b8b45['push']('ck-suggestion-marker--active'),{'classes':_0x3b8b45,'attributes':{'data-change-id':_0x158fc5}};}}),this['editor']['conversion']['for']('upcast')['add'](_0x1b7533=>{_0x1b7533['on']('element:pre',(_0x537a06,_0x5018a1,_0x20323a)=>{const _0x1419dd=_0x5018a1['viewItem']['getChild'](0x0);if(!_0x1419dd||!_0x1419dd['is']('element','code'))return;if(!_0x20323a['consumable']['consume'](_0x1419dd,{'attributes':['vid_start','vid_end']}))return;const _0x5c9806=_0x5018a1['modelRange']['start']['nodeAfter'];_0x20323a['writer']['setAttribute']('vid_start',_0x1419dd['getAttribute']('vid_start'),_0x5c9806),_0x20323a['writer']['setAttribute']('vid_end',_0x1419dd['getAttribute']('vid_end'),_0x5c9806);},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['add'](_0x17cd11=>{_0x17cd11['on']('element',(_0xcceeef,_0x37c708,_0x5b43c2)=>{if(!_0x5b43c2['consumable']['consume'](_0x37c708['viewItem'],{'attributes':['vid_start','vid_end']}))return;if(_0x37c708['modelRange']['isCollapsed'])return;const _0x5d586f=_0x37c708['modelRange']['start']['nodeAfter'];_0x5d586f['hasAttribute']('vid_start')||_0x5d586f['hasAttribute']('vid')||(_0x5b43c2['writer']['setAttribute']('vid_start',_0x37c708['viewItem']['getAttribute']('vid_start'),_0x5d586f),_0x5b43c2['writer']['setAttribute']('vid_end',_0x37c708['viewItem']['getAttribute']('vid_end'),_0x5d586f));},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['elementToAttribute']({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0xceab27=>_0xceab27['getAttribute']('vid')}}),this['editor']['model']['schema']['on']('checkAttribute',(_0x4ac217,[,_0xb8c2e4])=>{['vid_start','vid_end','vid']['includes'](_0xb8c2e4)&&(_0x4ac217['return']=!0x0,_0x4ac217['stop']());},{'priority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x4de943=>{_0x4de943['on']('attribute:vid',(_0x22b4cf,_0x13abb1,_0x19f850)=>{if('\x20'!=_0x13abb1['item']['data']||_0x13abb1['item']['parent']['maxOffset']>0x1)return;if(!_0x19f850['consumable']['consume'](_0x13abb1['item'],_0x22b4cf['name']))return;const _0x1ce5d9=_0x19f850['writer'],_0x3324c6=_0x19f850['mapper']['toViewRange'](_0x13abb1['range']);_0x1ce5d9['wrap'](_0x3324c6,_0x1ce5d9['createAttributeElement']('span'));});}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',function(_0x3ff53a){const _0x2ded87=_0x3ff53a['plugins']['get']('RevisionViewer');return(_0x548240,_0x1e695e,_0x1d5c8a)=>{const _0x27f0fb=_0x1e695e['markerName']['split'](':')[0x1],_0x31094f=_0x2ded87['_getChangeFromId'](_0x27f0fb);if(!_0x31094f)return null;const _0x3a57a7='add'==_0x31094f['type']?'split':'merge';if(!_0x1d5c8a['consumable']['test'](_0x1e695e['markerRange'],_0x548240['name']))return;const _0x56c085=_0x1e695e['markerRange']['getWalker'](),_0x1a09b9=_0x1e695e['markerRange']['start'],_0x35f23f=_0x3ff53a['model']['schema'];let _0x55c5a0=null,_0x4bbf1a=null,_0x500f3d=!0x1,_0x2a1db9=!0x1;for(const _0xe19511 of _0x56c085){const _0x2b71c3=_0xe19511['item'];_0x500f3d=_0x500f3d||_0x35f23f['isContent'](_0x2b71c3);const _0x5eac67=_0x1d5c8a['mapper']['toViewElement'](_0x2b71c3);if(_0x5eac67&&_0x5eac67['getCustomProperty']('addHighlight'))return;'elementEnd'==_0xe19511['type']&&(_0x35f23f['isBlock'](_0x2b71c3)&&!_0x35f23f['isLimit'](_0x2b71c3)&&(_0x2b71c3['nextSibling']||_0x1a09b9['isAtEnd']?_0x55c5a0&&_0x55c5a0['parent']==_0x2b71c3||(_0x55c5a0=_0x2b71c3,_0x2bad02(_0xe19511['previousPosition']),_0x2a1db9=!0x0):_0x4bbf1a=_0x4bbf1a||_0xe19511['previousPosition']));}function _0x2bad02(_0x91511c){const _0x94e38d=_0x1d5c8a['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x3a57a7}),_0x8dc327=_0x1d5c8a['mapper']['toViewPosition'](_0x91511c);_0x31094f['data']['isSuggestion']&&_0x1d5c8a['writer']['addClass']('ck-suggestion-marker-'+_0x3a57a7+'-new',_0x94e38d),_0x2ded87['activeChange']==_0x31094f&&_0x1d5c8a['writer']['addClass']('ck-suggestion-marker--active',_0x94e38d),_0x1d5c8a['writer']['insert'](_0x8dc327,_0x94e38d),_0x1d5c8a['mapper']['bindElementToMarker'](_0x94e38d,_0x1e695e['markerName']);}_0x500f3d||_0x2a1db9||!_0x4bbf1a||_0x2bad02(_0x4bbf1a);};}(this['editor']),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision',(_0x410893,_0x3d5aaa,_0x4bf958)=>{const _0xc5f983=_0x4bf958['mapper']['markerNameToElements'](_0x3d5aaa['markerName']);if(_0xc5f983){for(const _0x25cfe3 of _0xc5f983)(_0x25cfe3['hasClass']('ck-suggestion-marker-split')||_0x25cfe3['hasClass']('ck-suggestion-marker-merge'))&&(_0x4bf958['mapper']['unbindElementFromMarkerName'](_0x25cfe3,_0x3d5aaa['markerName']),_0x4bf958['writer']['remove'](_0x25cfe3));}},{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',(_0x22da15,_0x3e9205,_0x1afec5)=>{const _0x3caa5b=_0x3e9205['markerName']['split'](':')[0x1],_0x46fc44=this['_getChangeFromId'](_0x3caa5b);if(!_0x46fc44)return null;const _0x459673='add'==_0x46fc44['type']?'split':'merge';if(_0x1afec5['consumable']['test'](_0x3e9205['markerRange'],_0x22da15['name']))for(const _0x5d6254 of _0x3e9205['markerRange']['getItems']()){if(!_0x5d6254['is']('element','softBreak'))continue;const _0x30a0dd=_0x1afec5['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x459673}),_0x2b503c=_0x1afec5['mapper']['toViewPosition'](this['editor']['model']['createPositionBefore'](_0x5d6254));_0x46fc44['data']['isSuggestion']&&_0x1afec5['writer']['addClass']('ck-suggestion-marker-'+_0x459673+'-new',_0x30a0dd),this['activeChange']==_0x46fc44&&_0x1afec5['writer']['addClass']('ck-suggestion-marker--active',_0x30a0dd),_0x1afec5['writer']['insert'](_0x2b503c,_0x30a0dd),_0x1afec5['mapper']['bindElementToMarker'](_0x30a0dd,_0x3e9205['markerName']);}},{'priority':'high'}),this['editor']['model']['document']['on']('change',()=>{this['editor']['editing']['view']['change'](_0x5b5447=>{for(const _0x640f96 of this['editor']['model']['document']['getRootNames']()){const _0x1d2365=this['editor']['model']['document']['getRoot'](_0x640f96),_0x14ab28=this['editor']['editing']['view']['document']['getRoot'](_0x640f96);if(_0x14ab28){const _0x211214=_0x1d2365['getAttribute']('revisionHistoryAttachChange');if(_0x5b5447['removeAttribute']('data-change-id',_0x14ab28),_0x5b5447['removeClass']('ck-revision-history-root-add',_0x14ab28),_0x5b5447['removeClass']('ck-revision-history-root-remove',_0x14ab28),_0x5b5447['removeClass']('ck-revision-history-root--active',_0x14ab28),_0x211214){const _0x44bde1=this['_getChangeFromId'](_0x211214);if(!_0x44bde1)return null;_0x5b5447['setAttribute']('data-change-id',_0x211214,_0x14ab28),_0x5b5447['addClass']('ck-revision-history-root-'+_0x44bde1['type'],_0x14ab28),this['activeChange']==_0x44bde1&&_0x5b5447['addClass']('ck-revision-history-root--active',_0x14ab28);}}}});}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'comment','model':_0x4200c9=>'revision-comment:'+_0x4200c9,'converterPriority':'highest'}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion','model':_0x222764=>'revision-suggestion:'+_0x222764,'converterPriority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision-suggestion','view':_0x3853fe=>({'name':'suggestion:'+_0x3853fe,'group':'revision-suggestion'}),'converterPriority':'highest'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision-suggestion','view':_0x35510a=>{const _0x3f61f9=_0x35510a['markerName']['split'](':')[0x1];return'insertion'!=_0x3f61f9&&'deletion'!=_0x3f61f9?null:{'classes':['ck-suggestion-preview-marker','ck-suggestion-preview-marker-'+_0x3f61f9]};}}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:deletion',Q(this['editor'],'merge'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:insertion',Q(this['editor'],'split'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision-suggestion',(_0x5225f8,_0x5361a5,_0x592978)=>{const _0x2ce9e8=_0x592978['mapper']['markerNameToElements'](_0x5361a5['markerName']);if(_0x2ce9e8){for(const _0x263ba1 of _0x2ce9e8)_0x263ba1['is']('uiElement')&&(_0x592978['mapper']['unbindElementFromMarkerName'](_0x263ba1,_0x5361a5['markerName']),_0x592978['writer']['remove'](_0x263ba1));}},{'priority':'high'});}['_getChangeFromId'](_0x9f0c3e){return this['_changeIdToChange']['get'](_0x9f0c3e);}['_getViewForChange'](_0x7e56ea){return this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=new z(this['editor']['locale'],_0x7e56ea),this['_changeView'];}['_initInteractions'](){this['editor']['model']['document']['selection']['observeMarkers']('revision'),this['on']('change:activeView',(_0x4ff3f2,_0x3ead4b,_0x276f7a,_0xbc890b)=>{_0xbc890b&&this['_balloon']['remove'](_0xbc890b),_0x276f7a&&(this['_balloon']['add']({'view':_0x276f7a,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0x1d3d60=this['editor']['editing'],_0x1b2460=this['_getChangeFromId'](_0x276f7a['changeId']);let _0x2a51a7;if(_0x1b2460['data']['isOnRoot']){const _0x39d7cc=_0x1d3d60['view']['getDomRoot'](_0x1b2460['rootName']);_0x2a51a7=Array['from'](_0x39d7cc['getClientRects']());}else{const _0x1c07ca=this['editor']['model']['markers']['get']('revision:'+_0x276f7a['changeId']);_0x2a51a7=Array['from'](_0x1d3d60['mapper']['markerNameToElements'](_0x1c07ca['name']))['map'](_0xb128fd=>_0x1d3d60['view']['domConverter']['mapViewToDom'](_0xb128fd))['map'](_0x988c7c=>Array['from'](_0x988c7c['getClientRects']()))['flat']();}if(!this['_activeViewTarget'])return _0x2a51a7[0x0];return _0x2a51a7['find'](_0x1ebd87=>_0x1ebd87['top']-0x3<=this['_activeViewTarget']['y']&&_0x1ebd87['bottom']+0x3>=this['_activeViewTarget']['y']&&_0x1ebd87['left']-0x3<=this['_activeViewTarget']['x']&&_0x1ebd87['right']+0x3>=this['_activeViewTarget']['x'])||_0x2a51a7[0x0];}}}),this['_balloon']['showStack']('revisionHistoryLabel'));}),this['on']('change:activeChange',(_0x3f7464,_0x46a30e,_0x5bf754,_0x20de02)=>{this['activeView']=_0x5bf754?this['_getViewForChange'](_0x5bf754):null,this['editor']['model']['change'](()=>{const _0x4a2842=this['editor']['editing'];_0x20de02&&(_0x20de02['data']['isOnRoot']?_0x4a2842['view']['change'](_0x357a74=>{_0x357a74['removeClass']('ck-revision-history-root--active',_0x4a2842['view']['document']['getRoot'](_0x20de02['rootName']));}):_0x4a2842['reconvertMarker']('revision:'+_0x20de02['id'])),_0x5bf754&&(_0x5bf754['data']['isOnRoot']?_0x4a2842['view']['change'](_0x2fd8d3=>{_0x2fd8d3['addClass']('ck-revision-history-root--active',_0x4a2842['view']['document']['getRoot'](_0x5bf754['rootName']));}):_0x4a2842['reconvertMarker']('revision:'+_0x5bf754['id']));});}),this['listenTo'](this['editor']['editing']['view']['document'],'mouseover',(_0x3ea4b5,_0x2f1c1b)=>{if(this['activeChange'])return;const _0x1ebfd2=this['_findChangeIdFromDomTarget'](_0x2f1c1b['target']),_0x1c2671=this['_changeIdToChange']['get'](_0x1ebfd2);_0x1c2671?(this['_activeViewTarget']={'x':_0x2f1c1b['domEvent']['x'],'y':_0x2f1c1b['domEvent']['y']},this['activeView']=this['_getViewForChange'](_0x1c2671)):(this['_activeViewTarget']=null,this['activeView']=null);}),this['listenTo'](this['editor']['editing']['view']['document'],'mousedown',(_0x5b8c58,_0x2d4a36)=>{const _0x494a16=this['_findChangeIdFromDomTarget'](_0x2d4a36['target']),_0x13bc5d=this['_changeIdToChange']['get'](_0x494a16);_0x13bc5d?(this['_activeViewTarget']={'x':_0x2d4a36['domEvent']['x'],'y':_0x2d4a36['domEvent']['y']},_0x13bc5d===this['activeChange']?this['_balloon']['updatePosition']():this['activeChange']=_0x13bc5d):(this['_activeViewTarget']=null,this['activeChange']=null);});}['_findChangeIdFromDomTarget'](_0x257d1e){do{const _0x415fa1=_0x257d1e['getAttribute']('data-change-id');if(_0x415fa1)return _0x415fa1;_0x257d1e=_0x257d1e['parent'];}while(_0x257d1e);return null;}['_cleanMarkers'](){this['editor']['model']['change'](_0x813a2=>{for(const _0x395f07 of this['editor']['model']['markers'])_0x813a2['removeMarker'](_0x395f07);});}}function Q(_0x4340e9,_0x146802){return(_0x48f94a,_0x47bb60,_0x26cab4)=>{if(!_0x26cab4['consumable']['test'](_0x47bb60['markerRange'],_0x48f94a['name']))return;const _0xd72368=_0x47bb60['markerRange']['getWalker'](),_0x483c1a=_0x47bb60['markerRange']['start'],_0x1f6cba=_0x4340e9['model']['schema'];let _0x4d4c09=null,_0x5ccdcc=null,_0x1fdd5e=!0x1,_0x48d55c=!0x1;for(const _0x4b2bc1 of _0xd72368){const _0x54a50b=_0x4b2bc1['item'];_0x1fdd5e=_0x1fdd5e||_0x1f6cba['isContent'](_0x54a50b);const _0x4c35cd=_0x26cab4['mapper']['toViewElement'](_0x54a50b);if(_0x4c35cd&&_0x4c35cd['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x4b2bc1['type']&&(_0x1f6cba['isBlock'](_0x54a50b)&&!_0x1f6cba['isLimit'](_0x54a50b)&&(_0x54a50b['nextSibling']||_0x483c1a['isAtEnd']?_0x4d4c09&&_0x4d4c09['parent']==_0x54a50b||(_0x4d4c09=_0x54a50b,_0x18e1a8(_0x4b2bc1['previousPosition']),_0x48d55c=!0x0):_0x5ccdcc=_0x5ccdcc||_0x4b2bc1['previousPosition']));}function _0x18e1a8(_0x45759a){const _0x933eaf=_0x26cab4['mapper']['toViewPosition'](_0x45759a),_0x56bd26=_0x26cab4['writer']['createUIElement']('span',{'class':'ck-suggestion-preview-marker-'+_0x146802});_0x26cab4['writer']['insert'](_0x933eaf,_0x56bd26),_0x26cab4['mapper']['bindElementToMarker'](_0x56bd26,_0x47bb60['markerName']);}_0x1fdd5e||_0x48d55c||!_0x5ccdcc||_0x18e1a8(_0x5ccdcc);};}class nt extends _0x38961a{constructor(_0x33e14c){super(_0x33e14c);const _0x708759=_0x33e14c['plugins']['get'](u);this['affectsData']=!0x1,this['listenTo'](_0x708759,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x708759,'change:isEnabled',()=>this['refresh']());}['execute'](){const _0x57a8c1=this['editor'],_0x16bbf2=_0x57a8c1['plugins']['get'](u),_0x3f21ac=_0x16bbf2['isReady']?_0x16bbf2['diff']['newRevisionId']:null;_0x57a8c1['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x3f21ac);}['refresh'](){const {isReady:_0x21d4c3,isEnabled:_0x5306d0,repository:_0x9c0871,diff:_0x3c41d4}=this['editor']['plugins']['get'](u),_0x4adee9=_0x3c41d4&&_0x9c0871['getLaterVisibleRevision'](_0x3c41d4['newRevisionId']);this['isEnabled']=_0x21d4c3&&_0x5306d0&&Boolean(_0x4adee9);}}class rt extends _0x38961a{['_step'];constructor(_0x2a07d3,{direction:_0x5524ca}){super(_0x2a07d3);const _0x1a01b7=_0x2a07d3['plugins']['get'](u);this['affectsData']=!0x1,this['_step']='forward'===_0x5524ca?0x1:-0x1,this['listenTo'](_0x1a01b7,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x1a01b7,'change:isEnabled',()=>this['refresh']()),this['listenTo'](_0x1a01b7,'change:activeChange',()=>this['refresh']());}['execute'](){const _0x57f508=this['editor'],_0x26b5e5=_0x57f508['plugins']['get'](u),{isNavigationMode:_0x542c73,currentChangeNumber:_0x177d51}=_0x26b5e5;let _0x553283;if(_0x26b5e5['activeChange']=_0x542c73?_0x26b5e5['diff']['changes']['get'](_0x177d51+this['_step']):_0x26b5e5['diff']['changes']['first'],_0x26b5e5['activeChange']['data']['isOnRoot'])_0x553283=_0x57f508['editing']['view']['getDomRoot'](_0x26b5e5['activeChange']['rootName']);else{const _0x3cc901=_0x57f508['model']['markers']['get']('revision:'+_0x26b5e5['activeChange']['id']);_0x553283=_0x2e7288(_0x57f508['editing'],_0x3cc901);}_0xc18934({'target':_0x553283,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0x295ddc,currentChangeNumber:_0x512a7d,numberOfChanges:_0x166036,isReady:_0xb6cf15,isEnabled:_0x18b18e}=this['editor']['plugins']['get'](u);this['isEnabled']=!!(_0x18b18e&&_0xb6cf15&&_0x166036)&&(!_0x295ddc||(0x1===this['_step']?_0x512a7d<_0x166036-0x1:_0x512a7d>0x0));}}class Ri extends _0x5e6cae{constructor(_0xcc4b53){super(_0xcc4b53);const _0x1021dd=this['bindTemplate'],_0x4d8244=new _0x43acdb(_0xcc4b53),_0x283cf2=new _0x43acdb(_0xcc4b53);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',(_0xa8bd60,_0x650992)=>_0xa8bd60&&_0x650992>0x0),this['bind']('_statusText')['to'](this,'isReady',this,'currentChangeNumber',this,'numberOfChanges',this,'isNavigationMode',(_0x3de17b,_0x2f16f8,_0x217e06,_0x30f968)=>{if(!_0x3de17b)return m(_0xcc4b53,'Loading...');if(!_0x217e06)return m(_0xcc4b53,'No\x20changes');const _0x1b9634=m(_0xcc4b53,'NUMBER_OF_CHANGES',_0x217e06);return _0x30f968?m(_0xcc4b53,'X_OF_Y_CHANGES',[_0x2f16f8+0x1,_0x217e06]):_0x1b9634;}),_0x4d8244['set']({'label':m(_0xcc4b53,'Show\x20previous\x20change'),'tooltip':!0x0,'icon':_0xbfae62}),_0x283cf2['set']({'label':m(_0xcc4b53,'Show\x20next\x20change'),'tooltip':!0x0,'icon':_0x49d392}),_0x4d8244['bind']('isEnabled')['to'](this,'isBackwardNavigationEnabled'),_0x283cf2['bind']('isEnabled')['to'](this,'isForwardNavigationEnabled'),_0x4d8244['on']('execute',()=>this['fire']('execute','backward')),_0x283cf2['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',_0x1021dd['if']('_isStatusLabelVisible','ck-hidden',_0x31ba1b=>!_0x31ba1b)]},'children':[{'text':_0x1021dd['to']('isNavigationMode',_0x46d4f3=>_0x46d4f3?m(_0xcc4b53,'EDIT_X_OF_Y_REVISIONS')+':\x20':m(_0xcc4b53,'Total')+':\x20')}]},{'text':_0x1021dd['to']('_statusText')}]},new _0x1fb469(),{'tag':'div','attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0x4d8244,_0x283cf2]}]});}}const ge='ck-editor__editable__loading-overlay';class ji extends _0x3f3108{static get['pluginName'](){return'RevisionViewerLoadingOverlay';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['show'](){const _0x445598=this['editor']['editing']['view'];_0x445598['change'](_0x1e61d5=>{for(const _0x1e3f7b of _0x445598['document']['roots'])_0x1e61d5['addClass'](ge,_0x1e3f7b);});}['hide'](){const _0x39d871=this['editor']['editing']['view'];_0x39d871['change'](_0x17d550=>{for(const _0x50e0d4 of _0x39d871['document']['roots'])_0x17d550['removeClass'](ge,_0x50e0d4);});}}class v extends _0x3f3108{static get['pluginName'](){return'RevisionViewerUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[u,ji];}['init'](){const _0x33e1af=this['editor'],_0x212aca=_0x33e1af['plugins']['get'](u),_0x15dd69=_0x33e1af['plugins']['get'](ji);_0x33e1af['ui']['componentFactory']['add']('exitToEditing',_0x54ea11=>{const _0x1b916d=new _0x43acdb(_0x54ea11);return _0x1b916d['set']({'label':m(_0x54ea11,'Back\x20to\x20editing'),'icon':_0x4918d0,'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this['listenTo'](_0x1b916d,'execute',()=>{_0x33e1af['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}),_0x1b916d;}),_0x33e1af['ui']['componentFactory']['add']('restoreRevision',_0x508708=>{const _0x400f9e=new _0x43acdb(_0x508708);return _0x400f9e['set']({'label':m(_0x508708,'Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0x400f9e['bind']('isEnabled')['to'](_0x33e1af['commands']['get']('restoreRevision')),this['listenTo'](_0x400f9e,'execute',()=>_0x33e1af['execute']('restoreRevision')),_0x400f9e;}),_0x33e1af['ui']['componentFactory']['add']('changesNavigation',_0x5a0306=>{const _0x7c36c=new Ri(_0x5a0306),_0x548e77=_0x33e1af['commands']['get']('showPreviousChange'),_0x475fb4=_0x33e1af['commands']['get']('showNextChange');return _0x7c36c['bind']('isBackwardNavigationEnabled')['to'](_0x548e77,'isEnabled'),_0x7c36c['bind']('isForwardNavigationEnabled')['to'](_0x475fb4,'isEnabled'),_0x7c36c['bind']('isReady','currentChangeNumber','numberOfChanges','isNavigationMode')['to'](_0x212aca),this['listenTo'](_0x7c36c,'execute',(_0x166008,_0x18f3f8)=>{_0x33e1af['execute']('forward'===_0x18f3f8?'showNextChange':'showPreviousChange');}),_0x7c36c;}),_0x15dd69['show'](),_0x212aca['on']('change:isReady',(_0x22d839,_0x4f60a6,_0x46d813)=>{_0x46d813?_0x15dd69['hide']():_0x15dd69['show']();});}}class hi extends et{['_resizeObserver']=null;constructor(_0x13e08a,_0xcb48ec){super(_0x13e08a,_0xcb48ec);const _0x86907b=this['bindTemplate'];this['set']({'label':m(_0x13e08a,'Revision\x20name'),'_tooltipString':''}),this['fieldView']['placeholder']=m(_0x13e08a,'Enter\x20the\x20revision\x20name'),this['extendTemplate']({'tag':'span','attributes':{'class':['ck-revision-history-sidebar__revision-name'],'data-cke-tooltip-text':_0x86907b['to']('_tooltipString'),'data-cke-tooltip-position':'s','data-cke-tooltip-class':'ck-tooltip_multi-line'}});}['render'](){super['render'](),this['_resizeObserver']=new ot(this['fieldView']['element'],()=>this['_updateTooltipText']()),this['listenTo'](this['fieldView'],'input',()=>this['_updateTooltipText']());}['destroy'](){super['destroy'](),this['_resizeObserver']&&this['_resizeObserver']['destroy']();}['_updateTooltipText'](){const _0x4c9ac5=this['fieldView']['element'];this['_tooltipString']=_0x4c9ac5['scrollWidth']>_0x4c9ac5['clientWidth']&&_0x4c9ac5['value']||'';}}class ni extends _0x5e6cae{constructor(_0xf857e1,_0x4a4424,_0x242e6d){super(_0xf857e1);const _0x32a6c0=new _0x5e95ee();_0x32a6c0['set']({'content':_0x3dce27,'viewBox':'0\x200\x2011\x2010'});const _0x3759a1=['ck','ck-revision-history-sidebar__revision-author'];_0x242e6d&&_0x3759a1['push']('ck-revision-history-sidebar__revision-author_creator');const _0x915607=[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':m(_0xf857e1,_0x242e6d?'Revision\x20creator':'Revision\x20author')},'children':[_0x32a6c0,_0x4a4424['name']]}];this['setTemplate']({'tag':'li','attributes':{'class':_0x3759a1},'children':_0x915607});}}function ai(_0x33ffaf,_0x4089fe){const _0x49035f=_0x33ffaf['bindTemplate'],_0x197258=_0x33ffaf['locale'],_0x296f6e=_0x4d138e(_0x197258);_0x296f6e['panelPosition']='sw';const _0x3197a9=function(_0x107422,_0x162335){const _0x3a0c34=function(_0x24539c,_0x3878fd){const _0x1b7ad5=_0x24539c['locale'],_0x243b46={'Compare\x20against\x20selected':m(_0x1b7ad5,'Compare\x20against\x20selected'),'Name\x20this\x20revision':m(_0x1b7ad5,'Name\x20this\x20revision'),'Restore\x20this\x20revision':m(_0x1b7ad5,'Restore\x20this\x20revision')};return _0x3878fd['map'](_0x5abaa3=>{const _0x325535=_0x243b46[_0x5abaa3['name']];return _0x325535&&_0x325535!==_0x5abaa3['name']&&(_0x5abaa3['name']=_0x325535),_0x5abaa3;});}(_0x107422,_0x162335),_0x41be84=new _0x579e9c();for(const _0x36a6c1 of _0x3a0c34){const _0x2f83a4={'type':'button','model':new to({'label':_0x36a6c1['name'],'class':_0x36a6c1['class'],'withText':!0x0,'role':'menuitem','_action':_0x36a6c1['action']})};_0x2f83a4['model']['bind']('isEnabled')['to'](_0x107422,'isActionsDropdownOpen',_0x2d6adc=>'function'!=typeof _0x36a6c1['isEnabled']||(!_0x2d6adc||_0x36a6c1['isEnabled'](_0x107422))),_0x41be84['add'](_0x2f83a4);}return _0x41be84;}(_0x33ffaf,_0x4089fe);return _0x33ffaf['bind']('isActionsDropdownOpen')['to'](_0x296f6e,'isOpen'),_0x296f6e['buttonView']['set']({'label':m(_0x197258,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x370e34}),_0x296f6e['extendTemplate']({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0x49035f['if']('isActionsDropdownOpen','ck-on')]},'on':{'click':_0x49035f['to'](_0x22d6a0=>_0x22d6a0['stopPropagation']())}}),_0x296f6e['on']('execute',_0x14ff23=>{_0x33ffaf['isReady']&&'function'==typeof _0x14ff23['source']['_action']&&_0x14ff23['source']['_action'](_0x33ffaf);}),_0x35652a(_0x296f6e,_0x3197a9,{'role':'menu'}),_0x296f6e['listenTo'](_0x33ffaf,'change:isActionsDropdownOpen',(_0x236c50,_0x1be128,_0x29afd4)=>{if(_0x29afd4)for(const _0x3b6fee of _0x296f6e['listView']['items']){const _0xb5ca58=_0x3b6fee['children']['first'],_0x3ffa27=_0x4089fe['find'](_0x315aaa=>_0x315aaa['action']===_0xb5ca58['_action'])['isVisible'];_0x3b6fee['isVisible']=void 0x0===_0x3ffa27||_0x3ffa27(_0x33ffaf);}}),_0x296f6e;}class vi extends/* #__PURE__ -- @preserve */
|
|
27
|
-
|
|
23
|
+
import{ObservableMixin as _0x5b8442,uid as _0x51af8d,Collection as _0x2c09a8,logWarning as _0x2a70bf,FocusTracker as _0x38b6fd,KeystrokeHandler as _0x5c4f56,scrollViewportToShowTarget as _0x10073c,ResizeObserver as et,ElementReplacer as it,CKEditorError as _0x5120be}from'@ckeditor/ckeditor5-utils/dist/index.js';import{cloneDeep as _0x3cfdfd,set as _0x1c5707,unset as _0x51dbe3,isEqual as _0x4be9a7}from'es-toolkit/compat';import{Plugin as _0x3146b8,PendingActions as _0x4ac945,Command as _0x200a29,ElementApiMixin as _0xb2783a,Editor as _0x4807b9}from'@ckeditor/ckeditor5-core/dist/index.js';import{Users as _0x42660a,getMarkerDomElement as _0x2eecc3,ConfirmMixin as _0x5622d1,sanitizeEditorConfig as _0x858682}from'ckeditor5-collaboration/dist/index.js';import{ViewContainerElement as _0x3d80dc,ViewAttributeElement as _0x56d0b1,ViewEmptyElement as _0x56df65,ViewRawElement as _0x4cf5a1,ViewUIElement as _0x56b91e,ViewDocumentFragment as _0x12bdb5,ViewText as _0x113be9,ViewElement as _0x483b5d,ModelElement as _0x7079dc,ModelRange as _0x1af76d,ModelPosition as _0xa4050f,ModelDocumentFragment as _0x481124,ModelText as _0x12ab3d}from'@ckeditor/ckeditor5-engine/dist/index.js';import{IconHistory as _0x2e00b0,IconChevronUp as _0x1a8c59,IconChevronDown as _0x479eb4,IconUndo as _0x310a16,IconUser as _0x996060,IconThreeVerticalDots as _0x1773bc}from'@ckeditor/ckeditor5-icons/dist/index.js';import{CssTransitionDisablerMixin as _0x39e9b0,View as _0x59b9b3,submitHandler as _0x4d2a5c,LabeledFieldView as ti,createLabeledInputText as _0xf85895,createDropdown as _0x2a2a9b,ListView as _0x297ca1,ListItemView as _0x17bb6e,ButtonView as _0x195746,MenuBarMenuView as _0x5d2a5e,MenuBarMenuListView as _0x3341ea,MenuBarMenuListItemView as _0x370d65,MenuBarMenuListItemButtonView as _0x3afc1d,ContextualBalloon as _0x4f8b36,ToolbarSeparatorView as _0x2e1307,IconView as _0x390c63,addListToDropdown as _0x32914f,UIModel as to,EditorUI as tt,normalizeToolbarConfig as st,BoxedEditorUIView as _0x11989a,StickyPanelView as _0x37fbdc,ToolbarView as _0x2ca0cf,InlineEditableUIView as te}from'@ckeditor/ckeditor5-ui/dist/index.js';import{DateTime as _0x2493df}from'luxon';class I extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x5b8442(){['id'];['creator'];['authors'];['diffData'];['toVersion'];['fromVersion'];['model'];constructor(_0x40a34b){super(),this['id']=_0x40a34b['id']||_0x51af8d(),this['creator']=_0x40a34b['creator']||null,this['authors']=_0x40a34b['authors']||[],this['diffData']=_0x40a34b['diffData']||null,this['toVersion']=_0x40a34b['toVersion']||0x0,this['fromVersion']=_0x40a34b['fromVersion']||0x0,this['set']('name',_0x40a34b['name']||''),this['set']('createdAt',_0x40a34b['createdAt']||new Date()),this['set']('attributes',_0x40a34b['attributes']||{});}['setName'](_0x33c1c0){this['_update']({'name':_0x33c1c0});}['setAttribute'](_0x232125,_0x2e9f15){const _0x48e376=_0x3cfdfd(this['attributes']);_0x1c5707(_0x48e376,_0x232125,_0x2e9f15),this['_update']({'attributes':_0x48e376});}['removeAttribute'](_0x464288){const _0x21efab=_0x3cfdfd(this['attributes']);_0x51dbe3(_0x21efab,_0x464288),this['_update']({'attributes':_0x21efab});}['_update'](_0x3f3f38,_0xb05cec=!0x1){let _0x2b7c79=!0x1;const _0x47cdd3={'id':this['id']},_0x42dbdc=['name','createdAt','diffData','authors','attributes','toVersion','fromVersion','creatorId'];for(const _0x335a59 of _0x42dbdc){const _0x21d8fc=_0x3f3f38[_0x335a59];void 0x0!==_0x21d8fc&&_0x21d8fc!==this[_0x335a59]&&(this[_0x335a59]=_0x21d8fc,_0x47cdd3[_0x335a59]=_0x21d8fc,_0x2b7c79=!0x0);}_0x2b7c79&&(_0x47cdd3['authors']&&(_0x47cdd3['authorsIds']=_0x47cdd3['authors']['map'](_0x1c51cc=>_0x1c51cc['id']),delete _0x47cdd3['authors']),this['fire']('_update',_0x47cdd3,_0xb05cec));}['toJSON'](){return{'id':this['id'],'name':this['name'],'creatorId':this['creator']?this['creator']['id']:null,'authorsIds':this['authors']['map'](_0x44d9eb=>_0x44d9eb['id']),'diffData':this['diffData'],'createdAt':this['createdAt'],'attributes':this['attributes'],'fromVersion':this['fromVersion'],'toVersion':this['toVersion']};}}class S extends _0x3146b8{['_revisions'];static get['requires'](){return[_0x42660a];}static get['pluginName'](){return'RevisionsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['length'](){return this['_revisions']['length'];}constructor(_0x59b0e4){super(_0x59b0e4),this['_revisions']=new _0x2c09a8();}['afterInit'](){!async function(_0x2b78cb){const _0x52b048=_0x934c2a([0x76,0x73,0x6d,0x4c,0x34,0x54,0x50,0x70,0x75,0x52,0x35,0x33,0x4d,0x6c,0x71,0x53,0x6a,0x32,0x56,0x58,0x77,0x48,0x39,0x6f,0x45,0x41,0x4e,0x38,0x46,0x78,0x4a,0x74,0x47,0x55,0x4f,0x64,0x62,0x44,0x43,0x5a,0x30,0x31,0x69,0x68,0x79,0x66,0x6b,0x42,0x51,0x59,0x36,0x61,0x63,0x67,0x7a,0x37,0x72,0x49,0x65,0x57,0x4b,0x6e]),_0x2e439c=0xeb829,_0x51c96b=0x359e09b0,_0x2dd101=0x359971b8^_0x51c96b,_0xa2f55c=window[_0x934c2a([0x44,0x61,0x74,0x65])][_0x934c2a([0x6e,0x6f,0x77])](),_0x114cdc=_0x2b78cb[_0x934c2a([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x37ffd6=new window[(_0x934c2a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3b54c9=>{_0x114cdc[_0x934c2a([0x6f,0x6e,0x63,0x65])](_0x934c2a([0x72,0x65,0x61,0x64,0x79]),_0x3b54c9);}),_0x78fbcb={[_0x934c2a([0x6b,0x74,0x79])]:_0x934c2a([0x45,0x43]),[_0x934c2a([0x75,0x73,0x65])]:_0x934c2a([0x73,0x69,0x67]),[_0x934c2a([0x63,0x72,0x76])]:_0x934c2a([0x50,0x2d,0x32,0x35,0x36]),[_0x934c2a([0x78])]:_0x934c2a([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]),[_0x934c2a([0x79])]:_0x934c2a([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]),[_0x934c2a([0x61,0x6c,0x67])]:_0x934c2a([0x45,0x53,0x32,0x35,0x36])},_0x46adce=_0x114cdc[_0x934c2a([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x934c2a([0x67,0x65,0x74])](_0x934c2a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x23111a(){let _0x36c4bd,_0x437e9e=null,_0x2e1ca2=null;try{if(_0x46adce==_0x934c2a([0x47,0x50,0x4c]))return _0x934c2a([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x36c4bd=_0xfd4ce1(),!_0x36c4bd)return _0x934c2a([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x36c4bd[_0x934c2a([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x2e1ca2=_0xf0a46d(_0x36c4bd[_0x934c2a([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x36c4bd[_0x934c2a([0x6a,0x74,0x69])])),await _0x541bea()?_0x1cd7a1()?_0xbe8312()?_0x934c2a([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x58b427()?(_0x36c4bd[_0x934c2a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x934c2a([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x437e9e=_0x540d9a(_0x934c2a([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x36c4bd[_0x934c2a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x934c2a([0x74,0x72,0x69,0x61,0x6c])&&(_0x437e9e=_0x540d9a(_0x934c2a([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x3d8208()):_0x934c2a([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x934c2a([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x934c2a([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x934c2a([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0xbe8312(){const _0x2c3600=[_0x934c2a([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x934c2a([0x74,0x72,0x69,0x61,0x6c])][_0x934c2a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x36c4bd[_0x934c2a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0xa2f55c/0x3e8:0xe10*_0x2dd101;return _0x36c4bd[_0x934c2a([0x65,0x78,0x70])]<_0x2c3600;}function _0x1cd7a1(){const _0x524b28=_0x36c4bd[_0x934c2a([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x524b28)return!0x1;if(_0x524b28[_0x934c2a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x934c2a([0x2a])))return!0x0;if(_0x524b28[_0x934c2a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x934c2a([0x52,0x48])))return!0x0;if(_0x524b28[_0x934c2a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x934c2a([0x52,0x52,0x48]))){if(_0x3f7567())return!0x0;if(_0x5a7d32()||_0x826148())return!0x0;}return!0x1;}function _0x58b427(){const _0x4a7927=_0x36c4bd[_0x934c2a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x4a7927||0x0==_0x4a7927[_0x934c2a([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x14c1c5}=new URL(window[_0x934c2a([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x4a7927[_0x934c2a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x14c1c5))return!0x0;const _0x47f0ca=_0x14c1c5[_0x934c2a([0x73,0x70,0x6c,0x69,0x74])](_0x934c2a([0x2e]));return _0x4a7927[_0x934c2a([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x1edc01=>_0x1edc01[_0x934c2a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x934c2a([0x2a])))[_0x934c2a([0x6d,0x61,0x70])](_0x38ef30=>_0x38ef30[_0x934c2a([0x73,0x70,0x6c,0x69,0x74])](_0x934c2a([0x2e])))[_0x934c2a([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x1cfc7b=>_0x1cfc7b[_0x934c2a([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x47f0ca[_0x934c2a([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x934c2a([0x6d,0x61,0x70])](_0x3cb8ec=>Array(_0x47f0ca[_0x934c2a([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x3cb8ec[_0x934c2a([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x934c2a([0x66,0x69,0x6c,0x6c])](_0x3cb8ec[0x0]===_0x934c2a([0x2a])?_0x934c2a([0x2a]):'')[_0x934c2a([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x3cb8ec))[_0x934c2a([0x73,0x6f,0x6d,0x65])](_0x2242e4=>_0x47f0ca[_0x934c2a([0x65,0x76,0x65,0x72,0x79])]((_0x10f81c,_0x196057)=>_0x2242e4[_0x196057]===_0x10f81c||_0x2242e4[_0x196057]===_0x934c2a([0x2a])));}function _0x3d8208(){return _0x437e9e&&_0x2e1ca2?new window[(_0x934c2a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x59fd35,_0x3d3faa)=>{_0x437e9e[_0x934c2a([0x74,0x68,0x65,0x6e])](_0x59fd35,_0x3d3faa),_0x2e1ca2[_0x934c2a([0x74,0x68,0x65,0x6e])](_0x3479c9=>{_0x3479c9!=_0x934c2a([0x56,0x61,0x6c,0x69,0x64])&&_0x59fd35(_0x3479c9);},_0x3d3faa);}):_0x437e9e||_0x2e1ca2||_0x934c2a([0x56,0x61,0x6c,0x69,0x64]);}}function _0xf0a46d(_0xa23d74,_0x143e52){return new window[(_0x934c2a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xcb9acf=>{if(_0x50fbb9())return _0xcb9acf(_0x934c2a([0x56,0x61,0x6c,0x69,0x64]));_0x2b608c(),_0x114cdc[_0x934c2a([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x934c2a([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x46442c=!0x1;const _0x13056e=_0x51af8d();function _0x4d0875(_0x59c464){return!!_0x59c464&&(typeof _0x59c464===_0x934c2a([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x59c464===_0x934c2a([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x59c464[_0x934c2a([0x74,0x68,0x65,0x6e])]===_0x934c2a([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x59c464[_0x934c2a([0x63,0x61,0x74,0x63,0x68])]===_0x934c2a([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x5a2cde(_0x491eda){_0x344fdb(_0x491eda)[_0x934c2a([0x74,0x68,0x65,0x6e])](_0x4a01d1=>{if(!_0x4a01d1||_0x4a01d1[_0x934c2a([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x934c2a([0x6f,0x6b]))return _0x934c2a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0xcafa68(_0x380f7a(_0x13056e+_0x143e52))!=_0x4a01d1[_0x934c2a([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x934c2a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x934c2a([0x56,0x61,0x6c,0x69,0x64]);})[_0x934c2a([0x74,0x68,0x65,0x6e])](_0x58aa7a=>(_0x226b66(),_0x58aa7a),()=>{const _0x131a35=_0x1a85e5();return null==_0x131a35?(_0x226b66(),_0x934c2a([0x56,0x61,0x6c,0x69,0x64])):_0x934c2a(_0xa2f55c-_0x131a35>(0x11928db0^_0x51c96b)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x934c2a([0x74,0x68,0x65,0x6e])](_0xcb9acf)[_0x934c2a([0x63,0x61,0x74,0x63,0x68])](()=>{_0xcb9acf(_0x934c2a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0xde46ea=0x35a8e730^_0x51c96b;function _0x226b66(){const _0x391cc3=_0x934c2a([0x6c,0x6c,0x63,0x74,0x2d])+_0xcafa68(_0x380f7a(_0xa23d74)),_0x58f06c=_0x13921a(_0xcafa68(window[_0x934c2a([0x4d,0x61,0x74,0x68])][_0x934c2a([0x63,0x65,0x69,0x6c])](_0xa2f55c/_0xde46ea)));window[_0x934c2a([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x934c2a([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x391cc3,_0x58f06c);}function _0x1a85e5(){const _0x3ec69d=_0x934c2a([0x6c,0x6c,0x63,0x74,0x2d])+_0xcafa68(_0x380f7a(_0xa23d74)),_0x12876e=window[_0x934c2a([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x934c2a([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3ec69d);return _0x12876e?window[_0x934c2a([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x13921a(_0x12876e),0x10)*_0xde46ea:null;}function _0x344fdb(_0x246c58){return new window[(_0x934c2a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0xab7606,_0x4b88fa)=>{_0x246c58[_0x934c2a([0x74,0x68,0x65,0x6e])](_0xab7606,_0x4b88fa),window[_0x934c2a([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x4b88fa,0x359fdd70^_0x51c96b);});}}_0x114cdc[_0x934c2a([0x6f,0x6e])](_0x934c2a([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x3e9283,_0xdb038e)=>{if(_0xdb038e[0x0]!=_0xa23d74)return _0xcb9acf(_0x934c2a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0xdb038e[0x1]={..._0xdb038e[0x1],[_0x934c2a([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x13056e};},{[_0x934c2a([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x934c2a([0x68,0x69,0x67,0x68])}),_0x114cdc[_0x934c2a([0x6f,0x6e])](_0x934c2a([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x59fb8d=>{_0x4d0875(_0x59fb8d[_0x934c2a([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x46442c=!0x0,_0x5a2cde(_0x59fb8d[_0x934c2a([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x934c2a([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x934c2a([0x6c,0x6f,0x77])}),_0x37ffd6[_0x934c2a([0x74,0x68,0x65,0x6e])](()=>{_0x46442c||_0xcb9acf(_0x934c2a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x50fbb9(){return _0x114cdc[_0x934c2a([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x934c2a([0x76,0x69,0x65,0x77])][_0x934c2a([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x934c2a([0x61,0x75,0x74,0x6f]);}function _0x2b608c(){_0x114cdc[_0x934c2a([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x934c2a([0x76,0x69,0x65,0x77])][_0x934c2a([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x934c2a([0x61,0x75,0x74,0x6f]);}}function _0x540d9a(_0x148977){const _0x3fed84=[new window[(_0x934c2a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1b58cd=>setTimeout(_0x1b58cd,0x3597377c^_0x51c96b)),_0x37ffd6[_0x934c2a([0x74,0x68,0x65,0x6e])](()=>new window[(_0x934c2a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2d9096=>{const _0xc2a902=0x359e09b7^_0x51c96b,_0x27c6d9=_0x2b78cb[_0x934c2a([0x5f,0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x73])];function _0x2c4898(){_0x27c6d9[_0x934c2a([0x6c,0x65,0x6e,0x67,0x74,0x68])]>=_0xc2a902&&_0x2d9096();}_0x2c4898(),_0x27c6d9[_0x934c2a([0x6f,0x6e])](_0x934c2a([0x61,0x64,0x64]),_0x2c4898);})),new window[(_0x934c2a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1daded=>{function _0x5515d3(){for(const _0x105d6f in window)if(window[_0x934c2a([0x4e,0x75,0x6d,0x62,0x65,0x72])]['isNaN'](window[_0x934c2a([0x4e,0x75,0x6d,0x62,0x65,0x72])](_0x105d6f))&&window[_0x105d6f]==_0x2e439c)return _0x1daded();_0x114cdc[_0x934c2a([0x73,0x74,0x61,0x74,0x65])]!=_0x934c2a([0x64,0x65,0x73,0x74,0x72,0x6f,0x79,0x65,0x64])&&window[_0x934c2a([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x5515d3,0x359e1a38^_0x51c96b);}_0x2bdfea(_0x934c2a([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))&&_0x5515d3();})];return window[_0x934c2a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x934c2a([0x72,0x61,0x63,0x65])](_0x3fed84)[_0x934c2a([0x74,0x68,0x65,0x6e])](()=>_0x148977);}async function _0xde2839(){if(await _0x37ffd6,_0x2bdfea(_0x934c2a([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))){const _0x6923f8=_0x2b78cb[_0x934c2a([0x67,0x65,0x74,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])](0x0),_0x3de85a=_0x2b78cb[_0x934c2a([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])](_0x6923f8[_0x934c2a([0x69,0x64])]),_0x121c94=_0xab3eae(_0x934c2a([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]));return await _0x121c94[_0x934c2a([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])](_0x6923f8['id'],_0x3de85a?_0x3de85a['id']:null,!0x0),_0x121c94[_0x934c2a([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x934c2a([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x121c94[_0x934c2a([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x121c94[_0x934c2a([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])]=_0x4747c2,void(_0x121c94[_0x934c2a([0x5f,0x67,0x65,0x74,0x44,0x69,0x66,0x66])]=_0x4747c2);}if(_0x2bdfea(_0x934c2a([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]))){const _0x55ccab=_0xab3eae(_0x934c2a([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]));_0x55ccab[_0x934c2a([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x934c2a([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x55ccab[_0x934c2a([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x55ccab[_0x934c2a([0x75,0x70,0x64,0x61,0x74,0x65])]=_0x4747c2,_0x55ccab[_0x934c2a([0x73,0x61,0x76,0x65,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])]=_0x4747c2;}_0x114cdc[_0x934c2a([0x6d,0x6f,0x64,0x65,0x6c])][_0x934c2a([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x4747c2,_0x114cdc[_0x934c2a([0x6d,0x6f,0x64,0x65,0x6c])][_0x934c2a([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x4747c2,_0x114cdc[_0x934c2a([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x934c2a([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x3f7567(){return _0x2bdfea(_0x934c2a([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0xab3eae(_0x934c2a([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x934c2a([0x73,0x74,0x61,0x74,0x65])]==_0x934c2a([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x5a7d32(){return _0x2bdfea(_0x934c2a([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 _0x826148(){return _0x2bdfea(_0x934c2a([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x3504e2(_0x203b6d){const _0x2dfbfc=_0x2166da();_0x114cdc[_0x2dfbfc]=_0x934c2a([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])+_0x203b6d,_0x203b6d[_0x934c2a([0x65,0x6e,0x64,0x73,0x57,0x69,0x74,0x68])](_0x934c2a([0x4c,0x69,0x6d,0x69,0x74]))&&(window[_0x2166da()]=_0x2e439c),_0x203b6d!=_0x934c2a([0x56,0x61,0x6c,0x69,0x64])&&_0xde2839();}function _0x2166da(){const _0x2db23a=window[_0x934c2a([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x934c2a([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x934c2a([0x6e,0x6f,0x77])]())[_0x934c2a([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x934c2a([0x2e]),'');let _0x2b7a51=_0x934c2a([0x76]);for(let _0x54ab7a=0x0;_0x54ab7a<_0x2db23a[_0x934c2a([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x54ab7a+=0x2){let _0x3355d3=window[_0x934c2a([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2db23a[_0x934c2a([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x54ab7a,_0x54ab7a+0x2));_0x3355d3>=_0x52b048[_0x934c2a([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x3355d3-=_0x52b048[_0x934c2a([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x2b7a51+=_0x52b048[_0x3355d3];}return _0x2b7a51;}function _0xfd4ce1(){const _0x35deab=_0x46adce[_0x934c2a([0x73,0x70,0x6c,0x69,0x74])](_0x934c2a([0x2e]));if(0x3!=_0x35deab[_0x934c2a([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x2388d4(_0x35deab[0x1]);function _0x2388d4(_0x199604){const _0x3b6b0c=_0x8fdf87(_0x199604);return _0x3b6b0c&&_0x322c71()?_0x3b6b0c:null;function _0x322c71(){const _0x3794f2=_0x3b6b0c[_0x934c2a([0x6a,0x74,0x69])],_0x25772b=window[_0x934c2a([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3794f2[_0x934c2a([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3794f2[_0x934c2a([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x726cef={..._0x3b6b0c,[_0x934c2a([0x6a,0x74,0x69])]:_0x3794f2[_0x934c2a([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x3794f2[_0x934c2a([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x726cef[_0x934c2a([0x76,0x63])],_0x380f7a(_0x726cef)==_0x25772b;}}}async function _0x541bea(){let _0x9b5e80=!0x0;try{const _0x134797=_0x46adce[_0x934c2a([0x73,0x70,0x6c,0x69,0x74])](_0x934c2a([0x2e])),[_0x2797c6,_0x34fb0c,_0x7e6a11]=_0x134797;return _0x3ed7ae(_0x2797c6),await _0x411378(_0x2797c6,_0x34fb0c,_0x7e6a11),_0x9b5e80;}catch{return!0x1;}function _0x3ed7ae(_0x165e8c){const _0x2c6ecb=_0x8fdf87(_0x165e8c);_0x2c6ecb&&_0x2c6ecb[_0x934c2a([0x61,0x6c,0x67])]==_0x934c2a([0x45,0x53,0x32,0x35,0x36])||(_0x9b5e80=!0x1);}async function _0x411378(_0x469fd6,_0x11254d,_0x5c7b46){const _0x52b50b=window[_0x934c2a([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x934c2a([0x66,0x72,0x6f,0x6d])](_0x4a473a(_0x5c7b46),_0x10352e=>_0x10352e[_0x934c2a([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x55e869=new window[(_0x934c2a([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x934c2a([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x469fd6+_0x934c2a([0x2e])+_0x11254d),_0x1bd9fd=window[_0x934c2a([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x934c2a([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x1bd9fd)return;const _0x2862fb=await _0x1bd9fd[_0x934c2a([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x934c2a([0x6a,0x77,0x6b]),_0x78fbcb,{[_0x934c2a([0x6e,0x61,0x6d,0x65])]:_0x934c2a([0x45,0x43,0x44,0x53,0x41]),[_0x934c2a([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x934c2a([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x934c2a([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x1bd9fd[_0x934c2a([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x934c2a([0x6e,0x61,0x6d,0x65])]:_0x934c2a([0x45,0x43,0x44,0x53,0x41]),[_0x934c2a([0x68,0x61,0x73,0x68])]:{[_0x934c2a([0x6e,0x61,0x6d,0x65])]:_0x934c2a([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x2862fb,_0x52b50b,_0x55e869)||(_0x9b5e80=!0x1);}}function _0x8fdf87(_0x52bc8a){return _0x52bc8a[_0x934c2a([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x934c2a([0x65,0x79]))?JSON[_0x934c2a([0x70,0x61,0x72,0x73,0x65])](_0x4a473a(_0x52bc8a)):null;}function _0x4a473a(_0x2585c2){return window[_0x934c2a([0x61,0x74,0x6f,0x62])](_0x2585c2[_0x934c2a([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x934c2a([0x2b]))[_0x934c2a([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x934c2a([0x2f])));}function _0x380f7a(_0x3c9b0e){let _0x3524b2=0x1505;function _0x1b3dce(_0x3635c1){for(let _0x129e41=0x0;_0x129e41<_0x3635c1[_0x934c2a([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x129e41++){const _0x5768ec=_0x3635c1[_0x934c2a([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x129e41);_0x3524b2=(_0x3524b2<<0x5)+_0x3524b2+_0x5768ec,_0x3524b2&=_0x3524b2;}}function _0x1e44e3(_0x2320b9){Array[_0x934c2a([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x2320b9)?_0x2320b9[_0x934c2a([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x1e44e3):_0x2320b9&&typeof _0x2320b9==_0x934c2a([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x934c2a([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x2320b9)[_0x934c2a([0x73,0x6f,0x72,0x74])]()[_0x934c2a([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x4773c4,_0x59234c])=>{_0x1b3dce(_0x4773c4),_0x1e44e3(_0x59234c);}):_0x1b3dce(window[_0x934c2a([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x2320b9));}return _0x1e44e3(_0x3c9b0e),_0x3524b2>>>0x0;}function _0xcafa68(_0x44e133){return _0x44e133[_0x934c2a([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x934c2a([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x934c2a([0x30]));}function _0x13921a(_0x4d6025){return _0x4d6025[_0x934c2a([0x73,0x70,0x6c,0x69,0x74])]('')[_0x934c2a([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x934c2a([0x6a,0x6f,0x69,0x6e])]('');}function _0x2bdfea(_0x3026d8){return _0x114cdc[_0x934c2a([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x934c2a([0x68,0x61,0x73])](_0x3026d8);}function _0xab3eae(_0x3896bd){return _0x114cdc[_0x934c2a([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x934c2a([0x67,0x65,0x74])](_0x3896bd);}function _0x4747c2(){}function _0x934c2a(_0x352052){return _0x352052['map'](_0x4f6c78=>String['fromCharCode'](_0x4f6c78))['join']('');}_0x3504e2(await _0x23111a());}(this);}['createRevision'](_0x3853b7){const _0x25f646=this['editor']['plugins']['get']('Users');return new I({'id':_0x3853b7['id'],'name':_0x3853b7['name'],'creator':_0x3853b7['creatorId']?_0x25f646['getUser'](_0x3853b7['creatorId']):null,'diffData':_0x3853b7['diffData']||_0x3853b7['data'],'authors':_0x3853b7['authorsIds']['map'](_0x48c287=>_0x25f646['getUser'](_0x48c287)),'createdAt':new Date(_0x3853b7['createdAt']),'attributes':_0x3853b7['attributes'],'fromVersion':_0x3853b7['fromVersion'],'toVersion':_0x3853b7['toVersion']});}['addRevision'](_0x126ede,_0x3807ad=0x0){this['_revisions']['add'](_0x126ede,_0x3807ad);}['getRevision'](_0x142744){return this['_revisions']['get'](_0x142744);}['getRevisions'](_0x560d6b={'toJSON':!0x1}){const _0x334649=Array['from'](this['_revisions']);return _0x334649['reverse'](),_0x560d6b['toJSON']?_0x334649['map'](_0x9036c6=>_0x9036c6['toJSON']()):_0x334649;}['getIndex'](_0xc455a0){return this['_revisions']['getIndex'](_0xc455a0);}['getEarlierVisibleRevision'](_0x1fa64a){const [,_0x64c241]=this['getRevisionsIterator'](_0x1fa64a,{'direction':'earlier'});return _0x64c241;}['getLaterVisibleRevision'](_0x31d26a){const [,_0x3e25c2]=this['getRevisionsIterator'](_0x31d26a,{'direction':'later'});return _0x3e25c2;}['getRevisionsInDiff'](_0x37f057){const _0xaeb78b=[];for(const _0x33d664 of this['getRevisionsIterator'](_0x37f057['newRevisionId']))if(_0xaeb78b['push'](_0x33d664),_0x33d664['id']===_0x37f057['oldRevisionId'])break;return _0xaeb78b;}*['getRevisionsIterator'](_0x3040dc,{direction:_0xd96b4='earlier',filter:_0x1775e1=()=>!0x0}={}){const _0x34be6c='earlier'===_0xd96b4?0x1:-0x1;let _0x381313=this['_revisions']['get'](_0x3040dc),_0x2e4c08=this['getIndex'](_0x381313);for(yield _0x381313;_0x381313;){if(_0x2e4c08+=_0x34be6c,_0x381313=this['getRevision'](_0x2e4c08),!_0x381313)return;_0x1775e1(_0x381313)&&(yield _0x381313);}}}class $ extends _0x3146b8{static get['pluginName'](){return'RevisionHistoryUtils';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['_viewClassToTypeChar']=new Map([[_0x3d80dc,'c'],[_0x56d0b1,'a'],[_0x56df65,'e'],[_0x4cf5a1,'r'],[_0x56b91e,'u']]);['_typeCharToViewClass']=new Map([['c',_0x3d80dc],['a',_0x56d0b1],['e',_0x56df65],['r',_0x4cf5a1],['u',_0x56b91e]]);async['loadRevisionData'](_0x4d9341,_0x26ad38){if(_0x4d9341['diffData']||!_0x26ad38)return;const _0x4e0335=this['editor']['config']['get']('collaboration.channelId'),_0x2feaba=await _0x26ad38['getRevision']({'channelId':_0x4e0335,'revisionId':_0x4d9341['id']});_0x4d9341['diffData']=_0x2feaba['diffData'];}['getRevisionDocumentData'](_0x3d4abe){const _0x32c430={};for(const _0x3fcf5e in _0x3d4abe['diffData']){if(_0x3d4abe['diffData'][_0x3fcf5e]['attachChange']&&!_0x3d4abe['diffData'][_0x3fcf5e]['attachChange']['isAttached'])continue;const _0x17a2eb=this['_removeRevisionMarkers'](JSON['parse'](_0x3d4abe['diffData'][_0x3fcf5e]['insertions'])),_0x57c8cf=this['editor']['editing']['view']['document'],_0x1ef071=new _0x12bdb5(_0x57c8cf,_0x17a2eb['map'](_0x37dbe5=>this['_getViewFromDiffObj'](_0x37dbe5,!0x1)));this['editor']['data']['processor']['useFillerType']('marked'),_0x32c430[_0x3fcf5e]=this['editor']['data']['processor']['toData'](_0x1ef071),this['editor']['data']['processor']['useFillerType']('default');}return _0x32c430;}['getRevisionRootsAttributes'](_0x479e08){const _0x51db75={};for(const _0x6c1198 in _0x479e08['diffData'])_0x479e08['diffData'][_0x6c1198]['attachChange']&&!_0x479e08['diffData'][_0x6c1198]['attachChange']['isAttached']||(_0x51db75[_0x6c1198]=_0x479e08['diffData'][_0x6c1198]['attributesAfter']||{});return _0x51db75;}['_getTypeCharForViewElement'](_0x23780c){return this['_viewClassToTypeChar']['get'](_0x23780c['constructor']);}['_getViewFromDiffObj'](_0x36bb67,_0x28569f){const _0x56daec=this['editor']['editing']['view']['document'];if('string'==typeof _0x36bb67)return new _0x113be9(_0x56daec,_0x36bb67);{let _0x5b7df0,_0x57f083;_0x57f083='u'==_0x36bb67['type']||'r'==_0x36bb67['type']?[]:_0x36bb67['children']['map'](_0x2fcc13=>this['_getViewFromDiffObj'](_0x2fcc13,_0x28569f));const _0x131082=this['_typeCharToViewClass']['get'](_0x36bb67['type'])||_0x483b5d,_0x177a08=this['editor']['data']['htmlProcessor']['domConverter'];if(_0x5b7df0=new _0x131082(_0x56daec,_0x36bb67['name'],_0x36bb67['attributes'],_0x57f083),'u'==_0x36bb67['type']&&_0x36bb67['children'][0x0]){const _0x235198=_0x36bb67['children'][0x0];if(_0x5b7df0['render']=function(_0x17d5f9){const _0x132f22=_0x17d5f9['createElement']('div');return _0x132f22['innerHTML']=_0x235198,_0x132f22['childNodes'][0x0];},_0x28569f){const _0x469245=new _0x12bdb5(_0x56daec);_0x469245['_appendChild'](_0x5b7df0);const _0xd3fa37=Array['from'](_0x177a08['viewChildrenToDom'](_0x469245,{'bind':!0x1})),_0x13f3e7=_0x177a08['domDocument']['createElement']('div');_0x13f3e7['append'](..._0xd3fa37),_0x5b7df0=Array['from'](_0x177a08['domChildrenToView'](_0x13f3e7))[0x0];}}else{if('r'==_0x36bb67['type']&&_0x36bb67['children'][0x0]){const _0x381a54=_0x36bb67['children'][0x0];if(_0x5b7df0['render']=function(_0x2e260d){_0x2e260d['innerHTML']=_0x381a54;},_0x28569f){const _0x88ff3c=new _0x12bdb5(_0x56daec);_0x88ff3c['_appendChild'](_0x5b7df0);const _0x1101d0=Array['from'](_0x177a08['viewChildrenToDom'](_0x88ff3c,{'bind':!0x1})),_0x5bf429=_0x177a08['domDocument']['createElement']('div');_0x5bf429['append'](..._0x1101d0);const _0x1b39fd=Array['from'](_0x177a08['domChildrenToView'](_0x5bf429));_0x1b39fd['length']>0x1?_0x5b7df0['_appendChild'](_0x1b39fd):_0x5b7df0=_0x1b39fd[0x0];}}}if(_0x36bb67['customProperties']){for(const [_0x3b165d,_0x5299dc]of _0x36bb67['customProperties'])_0x5b7df0['_setCustomProperty'](_0x3b165d,_0x5299dc);}const _0xf89708=void 0x0===_0x36bb67['fillerOffset']?null:_0x36bb67['fillerOffset'];return null!==_0xf89708&&(_0x5b7df0['getFillerOffset']=()=>_0xf89708),_0x5b7df0;}}['_makeModelFromViewString'](_0x2f485b){const _0x554b83=JSON['parse'](_0x2f485b),_0x18f43e=this['editor']['editing']['view']['document'],_0x53643a=new _0x12bdb5(_0x18f43e,_0x554b83['map'](_0x16e87d=>this['_getViewFromDiffObj'](_0x16e87d,!0x0)));return this['editor']['data']['toModel'](_0x53643a);}['_removeRevisionMarkers'](_0x5d242a){return(_0x5d242a=_0x5d242a['filter'](_0x2591e7=>!_0x2591e7['name']||'revision-start'!==_0x2591e7['name']&&'revision-end'!==_0x2591e7['name']))['forEach'](_0x1e5ae5=>{'string'!=typeof _0x1e5ae5&&(_0x1e5ae5['children']=this['_removeRevisionMarkers'](_0x1e5ae5['children']),_0x1e5ae5['attributes']=_0x1e5ae5['attributes']['filter'](_0x32ef62=>!_0x32ef62[0x0]['startsWith']('data-revision-')));}),_0x5d242a;}}function m(_0x19d485,_0x207ab7,_0x231a9f){const t=_0x19d485['t'];switch(_0x207ab7){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'},_0x231a9f);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x231a9f);case'Show\x20previous\x20change':return t('Show\x20previous\x20change');case'Show\x20next\x20change':return t('Show\x20next\x20change');case'EDIT_X_OF_Y_REVISIONS':return t({'string':'Edit','id':'EDIT_X_OF_Y_REVISIONS'});case'Total':return t('Total');case'Revision\x20creator':return t('Revision\x20creator');case'Revision\x20author':return t('Revision\x20author');case'Revision\x20name':return t('Revision\x20name');case'Save\x20current\x20revision':return t('Save\x20current\x20revision');case'Accept':return t('Accept');case'Save':return t('Save');case'Cancel':return t('Cancel');case'Name\x20of\x20the\x20revision':return t('Name\x20of\x20the\x20revision');case'optional':return t('optional');case'PENDING_ACTION_REVISION_HISTORY':return t({'string':'Unsaved\x20change\x20in\x20revision\x20history.','id':'PENDING_ACTION_REVISION_HISTORY'});case'The\x20revision\x20name\x20cannot\x20be\x20empty.':return t('The\x20revision\x20name\x20cannot\x20be\x20empty.');case'Enter\x20the\x20revision\x20name':return t('Enter\x20the\x20revision\x20name');default:return'';}}class h extends _0x3146b8{['licenseKey'];['_licenseKeyCheckInterval'];['currentRevision']=null;['repository'];['adapter']=null;['_revisionDataBuilder'];['_source'];['_initialRevisionId'];['_bufferedUpdates'];['_utils'];['_pendingAction'];['_continueCurrentRevision'];['_startingVersion'];['_loadedStateData'];static get['pluginName'](){return'RevisionTracker';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x42660a,S,$,_0x4ac945];}constructor(_0x9b401d){super(_0x9b401d),this['repository']=this['editor']['plugins']['get']('RevisionsRepository'),this['_utils']=this['editor']['plugins']['get']('RevisionHistoryUtils'),this['_revisionDataBuilder']=new E(this['editor']),this['_initialRevisionId']=this['editor']['config']['get']('collaboration.channelId')||'initial',this['_bufferedUpdates']=new Map(),this['_loadedStateData']=null;const _0x3b4106=_0x51af8d();this['_source']={'history':this['editor']['model']['document']['history'],'getLatestVersion':()=>Promise['resolve'](this['editor']['model']['document']['version']),'getCurrentRevisionId':()=>_0x3b4106},this['set']('isReady',!0x1),this['set']('isEnabled',!0x0),this['set']('_isPendingUpdate',!0x1),this['editor']['config']['define']('revisionHistory.resumeUnsavedRevision',!0x0),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'});}['init'](){this['_setConversion'](),this['editor']['data']['on']('ready',()=>{const _0x5f4a80=this['repository']['getRevision'](0x0),_0x2619e8=_0x5f4a80&&null===_0x5f4a80['creator']?_0x5f4a80:null;if(this['_continueCurrentRevision']=!!_0x2619e8&&this['editor']['config']['get']('revisionHistory.resumeUnsavedRevision'),this['editor']['plugins']['has']('RealTimeCollaborationClient')){const _0x50ab64=this['_source']['getCurrentRevisionId'](),_0x2145fc=this['repository']['getRevision'](_0x50ab64);if(_0x2145fc)this['_startingVersion']=_0x2145fc['fromVersion'],this['_continueCurrentRevision']=!0x1;else{const _0x38c317=this['_source']['history']['_operations']['find'](_0x59bcb3=>!_0x59bcb3['_isInit']),_0x8c6b36=_0x38c317?_0x38c317['baseVersion']:this['_source']['history']['version'];_0x5f4a80?(_0x5f4a80['toVersion']<_0x8c6b36&&_0x5f4a80['_update']({'toVersion':_0x8c6b36}),this['_continueCurrentRevision']?(this['_source']['getCurrentRevisionId']=()=>_0x2619e8['id'],this['_startingVersion']=_0x2619e8['fromVersion']):(this['_startingVersion']=_0x5f4a80['toVersion'],this['_continueCurrentRevision']=!0x1)):(this['_startingVersion']=_0x8c6b36,this['_continueCurrentRevision']=!0x1);}}else _0x2619e8&&(this['editor']['model']['document']['history']['version']=Math['max'](_0x2619e8['toVersion'],this['editor']['model']['document']['history']['version']),_0x2619e8['fromVersion']===_0x2619e8['toVersion']?(0x0!==_0x2619e8['fromVersion']&&(this['_source']['getCurrentRevisionId']=()=>_0x2619e8['id']),this['_continueCurrentRevision']=!0x1):this['_continueCurrentRevision']&&(this['_source']['getCurrentRevisionId']=()=>_0x2619e8['id'],this['_startingVersion']=_0x2619e8['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',_0x484dd6=>!_0x484dd6),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x181e55=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x2147e2;for(const _0x1b3291 in _0x181e55){const _0x5ea8b4=_0x1b3291,_0x4e21ed=_0x181e55[_0x5ea8b4];if('revisionHistoryLicenseKeyValid'==_0x4e21ed||'revisionHistoryLicenseKeyInvalid'==_0x4e21ed||'revisionHistoryLicenseKeyExpired'==_0x4e21ed||'revisionHistoryLicenseKeyDomainLimit'==_0x4e21ed||'revisionHistoryLicenseKeyNotAllowed'==_0x4e21ed||'revisionHistoryLicenseKeyEvaluationLimit'==_0x4e21ed||'revisionHistoryLicenseKeyTrialLimit'==_0x4e21ed||'revisionHistoryLicenseKeyUsageLimit'==_0x4e21ed){delete _0x181e55[_0x5ea8b4],_0x2147e2=_0x4e21ed,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'revisionHistoryLicenseKeyInvalid'==_0x2147e2&&_0x181e55['_showLicenseError']('invalid'),'revisionHistoryLicenseKeyExpired'==_0x2147e2&&_0x181e55['_showLicenseError']('expired'),'revisionHistoryLicenseKeyDomainLimit'==_0x2147e2&&_0x181e55['_showLicenseError']('domainLimit'),'revisionHistoryLicenseKeyNotAllowed'==_0x2147e2&&_0x181e55['_showLicenseError']('featureNotAllowed','RevisionHistory'),'revisionHistoryLicenseKeyEvaluationLimit'==_0x2147e2&&_0x181e55['_showLicenseError']('evaluationLimit'),'revisionHistoryLicenseKeyTrialLimit'==_0x2147e2&&_0x181e55['_showLicenseError']('trialLimit'),'revisionHistoryLicenseKeyUsageLimit'==_0x2147e2&&_0x181e55['_showLicenseError']('usageLimit');},0x3e8);}async['afterInit'](){if(this['repository']['length']>0x0){const _0x57c7c8=this['repository']['getRevision'](0x0),_0x3f0e9f=await this['getRevisionDocumentData'](_0x57c7c8),_0x25a82b=await this['getRevisionRootsAttributes'](_0x57c7c8);this['_replaceEditorDataWithRevisionData'](_0x3f0e9f,_0x25a82b);}}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['setSource'](_0x4dff68){this['_source']=_0x4dff68;}async['update'](){const _0x224941=await this['_source']['getLatestVersion']();if(_0x224941>this['currentRevision']['toVersion']){await this['_loadState']();const _0x2b93fa=this['buildRevisionData']({'revision':this['currentRevision'],'to':_0x224941});_0x2b93fa['authors']=_0x2b93fa['authorsIds']['map'](_0x481c03=>this['editor']['plugins']['get']('Users')['getUser'](_0x481c03)),this['currentRevision']['_update'](_0x2b93fa);}}async['saveRevision'](_0x541c10={},_0x18d826=null){const _0x17aa6c=[];await this['_loadState'](),this['_continueCurrentRevision']=!0x1,_0x18d826>this['currentRevision']['toVersion']&&(_0x18d826=null),null===_0x18d826&&(_0x18d826=await this['_source']['getLatestVersion']());const _0x39cc5c=this['_getFromVersion'](_0x18d826),_0x4bcabe=this['buildRevisionData']({'from':_0x39cc5c,'to':_0x18d826});if(this['currentRevision']['toVersion']<_0x18d826){const _0x38d43b=this['buildRevisionData']({'revision':this['currentRevision'],'from':_0x18d826,'to':_0x18d826});_0x38d43b['authors']=[],_0x38d43b['authorsIds']=[],_0x38d43b['id']=this['currentRevision']['id'],this['currentRevision']['_update'](_0x38d43b,!0x0),delete _0x38d43b['authors'],_0x17aa6c['push'](_0x38d43b);}_0x541c10['creatorId']=this['editor']['plugins']['get']('Users')['me']['id'],_0x541c10['name']=_0x541c10['name']||null,_0x541c10['id']=_0x541c10['id']||_0x51af8d(),_0x541c10={..._0x541c10,..._0x4bcabe};const _0x10dbe3=this['addRevisionData'](_0x541c10);_0x17aa6c['push'](_0x541c10);const _0x3f1fdb=this['repository']['getIndex'](_0x10dbe3);if(0x0!==_0x3f1fdb){const _0x19f8c8=this['repository']['getRevision'](_0x3f1fdb-0x1);if(_0x19f8c8['fromVersion']!==_0x18d826){const _0x33cfe6=this['_revisionDataBuilder']['getData'](_0x18d826,_0x19f8c8['toVersion']),_0x3a5232={'id':_0x19f8c8['id'],'diffData':_0x33cfe6['diffData'],'authorsIds':_0x33cfe6['authorsIds'],'authors':_0x33cfe6['authorsIds']['map'](_0x1dac18=>this['editor']['plugins']['get']('Users')['getUser'](_0x1dac18)),'fromVersion':_0x18d826};_0x19f8c8===this['currentRevision']&&(_0x3a5232['createdAt']=new Date(_0x541c10['createdAt']['getTime']()+0xa)),_0x19f8c8['_update'](_0x3a5232,!0x0),delete _0x3a5232['authors'],_0x17aa6c['push'](_0x3a5232);}}if(this['adapter']){for(const _0x56b8d8 of _0x17aa6c)this['_bufferUpdate'](_0x56b8d8['id'],_0x56b8d8,!0x0);this['sendBufferedUpdates']();}return _0x10dbe3;}['addRevisionData'](_0x4bc762){const _0x5240c6=this['repository']['createRevision'](_0x4bc762);return this['adapter']&&_0x5240c6['on']('_update',(_0x54d0d6,_0x2a98d0,_0x47590a)=>{_0x47590a||(this['_bufferUpdate'](_0x2a98d0['id'],_0x2a98d0,!0x0),this['sendBufferedUpdates']());}),this['repository']['addRevision'](_0x5240c6,this['_findInsertionIndex'](_0x5240c6)),_0x5240c6;}async['getRevisionDocumentData'](_0x2a8b1e){return await this['_utils']['loadRevisionData'](_0x2a8b1e,this['adapter']),this['_utils']['getRevisionDocumentData'](_0x2a8b1e);}async['getRevisionRootsAttributes'](_0x2d26b1){return await this['_utils']['loadRevisionData'](_0x2d26b1,this['adapter']),this['_utils']['getRevisionRootsAttributes'](_0x2d26b1);}['sendBufferedUpdates'](){if(0x0===this['_bufferedUpdates']['size'])return;if(this['_isPendingUpdate'])return;let _0xe86e1=Array['from'](this['_bufferedUpdates']['values']());this['_bufferedUpdates']['clear']();for(let _0x5c4bac=0x0;_0x5c4bac<_0xe86e1['length'];_0x5c4bac++){const _0x5dd09e=_0xe86e1[_0x5c4bac];let _0x35ddac=!0x1;for(const _0x3e10ec of Object['keys'](_0x5dd09e))void 0x0===_0x5dd09e[_0x3e10ec]?delete _0x5dd09e[_0x3e10ec]:'id'!==_0x3e10ec&&(_0x35ddac=!0x0);_0x35ddac||(_0xe86e1[_0x5c4bac]=null);}if(_0xe86e1=_0xe86e1['filter'](_0x2e2de9=>null!==_0x2e2de9),!_0xe86e1['length'])return;for(let _0x491840=0x0;_0x491840<_0xe86e1['length'];_0x491840++){const _0x467ba5=_0xe86e1[_0x491840];void 0x0!==_0x467ba5['fromVersion']&&void 0x0===_0x467ba5['toVersion']&&(_0x467ba5['toVersion']=this['repository']['getRevision'](_0x467ba5['id'])['toVersion']),void 0x0!==_0x467ba5['toVersion']&&void 0x0===_0x467ba5['fromVersion']&&(_0x467ba5['fromVersion']=this['repository']['getRevision'](_0x467ba5['id'])['fromVersion']);}const _0x55ab87=this['editor']['config']['get']('collaboration.channelId');this['_isPendingUpdate']=!0x0,this['_addPendingAction'](),this['adapter']['updateRevisions'](_0xe86e1,_0x55ab87)['finally'](()=>{this['_isPendingUpdate']=!0x1;})['then'](_0x405219=>{if(_0x405219){for(const _0x5da22c of _0x405219)this['setRevisionData']({'id':_0x5da22c['id'],'createdAt':_0x5da22c['createdAt']});}this['_removePendingAction'](),this['sendBufferedUpdates']();});}['buildRevisionData']({revision:_0x80b1df=null,from:_0x2913b3=null,to:_0xaa2979=null}){_0x2913b3=null!==_0x2913b3?_0x2913b3:_0x80b1df['fromVersion'],_0xaa2979=null!==_0xaa2979?_0xaa2979:_0x80b1df['toVersion'];const _0x3df3fb=this['_revisionDataBuilder']['getData'](_0x2913b3,_0xaa2979),_0x2fe3b9={'diffData':_0x3df3fb['diffData'],'authorsIds':_0x3df3fb['authorsIds'],'fromVersion':_0x2913b3,'toVersion':_0xaa2979};if(!_0x80b1df||_0xaa2979!==_0x80b1df['toVersion']){const _0x195ed6=_0xaa2979-0x1,_0x5f1947=this['_source']['history']['getOperation'](_0x195ed6);_0x2fe3b9['createdAt']=_0x5f1947&&_0x5f1947['createdAt']||new Date();}if(this['_loadedStateData']&&_0x2913b3===this['_loadedStateData']['fromVersion']){for(const _0x36bda7 of this['_loadedStateData']['authors'])_0x2fe3b9['authorsIds']['includes'](_0x36bda7['id'])||_0x2fe3b9['authorsIds']['push'](_0x36bda7['id']);}return _0x2fe3b9;}['_bufferUpdate'](_0x5cb808,_0x3b812e,_0x209fec){if(this['_bufferedUpdates']['has'](_0x5cb808)){const _0xf214eb=this['_bufferedUpdates']['get'](_0x5cb808);_0x3b812e=_0x209fec?{..._0xf214eb,..._0x3b812e}:{..._0x3b812e,..._0xf214eb};}this['_bufferedUpdates']['set'](_0x5cb808,_0x3b812e);}['setRevisionData'](_0x5dd8a0){const _0x118355=this['repository']['getRevision'](_0x5dd8a0['id']);if(_0x5dd8a0['createdAt']&&(_0x5dd8a0['createdAt']=new Date(_0x5dd8a0['createdAt'])),_0x5dd8a0['authorsIds']){const _0x1ae3e5=this['editor']['plugins']['get']('Users');_0x5dd8a0['authors']=_0x5dd8a0['authorsIds']['map'](_0x52cd94=>_0x1ae3e5['getUser'](_0x52cd94));}_0x118355['_update'](_0x5dd8a0,!0x0);}['_createInitialRevision'](_0x515469){const _0x5a82e0=this['repository']['getRevision'](this['repository']['length']-0x1);if(_0x5a82e0)this['_initialRevisionId']=_0x5a82e0['id'];else{const _0x151e0b=!this['editor']['model']['document']['roots']['find'](_0x28a0b0=>this['editor']['model']['hasContent'](_0x28a0b0)),_0x51fadc=this['editor']['plugins']['get']('Users')['me']['id'],_0x16f59e=m(this['editor']['locale'],_0x151e0b?'Empty\x20document':'Initial\x20revision');this['_makeRevision']({'from':_0x515469,'to':_0x515469,'id':this['_initialRevisionId'],'name':_0x16f59e,'creatorId':_0x51fadc});}}['_createCurrentRevision'](_0x9f2e2f){const _0x13217d=this['_source']['getCurrentRevisionId']();this['currentRevision']=this['repository']['getRevision'](_0x13217d),this['currentRevision']||(this['currentRevision']=this['_makeRevision']({'from':_0x9f2e2f,'to':_0x9f2e2f,'id':_0x13217d,'name':'','creatorId':null}));}async['_loadState'](){this['_continueCurrentRevision']&&!this['_loadedStateData']&&(await this['_utils']['loadRevisionData'](this['currentRevision'],this['adapter']),this['_revisionDataBuilder']['loadState'](this['currentRevision']),this['_loadedStateData']={'fromVersion':this['currentRevision']['fromVersion'],'authors':this['currentRevision']['authors']['slice']()});}['_replaceEditorDataWithRevisionData'](_0x4d1525,_0x3ad719){let _0x23b1f4=this['editor']['config']['get']('initialData'),_0x2bd498=this['editor']['config']['get']('rootsAttributes');if(void 0x0===_0x23b1f4){_0x23b1f4={};for(const _0x2e8b21 of this['editor']['model']['document']['getRootNames']())_0x23b1f4[_0x2e8b21]='';}if('string'==typeof _0x23b1f4&&(_0x23b1f4={'main':_0x23b1f4}),void 0x0===_0x2bd498){_0x2bd498={};for(const _0x34bb13 of this['editor']['model']['document']['getRootNames']())_0x2bd498[_0x34bb13]={};}let _0x1b33b6=!0x1;const _0x4baabd=Object['keys'](_0x23b1f4),_0x32cf49=Object['keys'](_0x4d1525);for(const _0xf3a0ed of _0x4baabd){if(_0x23b1f4[_0xf3a0ed]!==_0x4d1525[_0xf3a0ed]&&''!==_0x23b1f4[_0xf3a0ed]['trim']()){_0x1b33b6=!0x0;break;}if(!_0x4be9a7(_0x2bd498[_0xf3a0ed],_0x3ad719[_0xf3a0ed])&&Object['keys'](_0x2bd498[_0xf3a0ed])['length']>0x0){_0x1b33b6=!0x0;break;}}_0x1b33b6||(_0x1b33b6=_0x32cf49['some'](_0x35532e=>!this['editor']['model']['document']['getRoot'](_0x35532e))),_0x1b33b6&&_0x2a70bf('editor-initial-data-replaced-with-revision-data',{'editorData':_0x23b1f4,'editorRootsAttributes':_0x2bd498,'revisionData':_0x4d1525,'revisionRootsAttributes':_0x3ad719}),this['editor']['config']['set']('initialData',_0x4d1525),this['editor']['config']['set']('rootsAttributes',_0x3ad719);}['_addPendingAction'](){if(!this['_pendingAction']){const _0x2b81da=this['editor']['plugins']['get']('PendingActions');this['_pendingAction']=_0x2b81da['add'](m(this['editor']['locale'],'PENDING_ACTION_REVISION_HISTORY'));}}['_removePendingAction'](){this['_pendingAction']&&(this['editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null);}['_findInsertionIndex'](_0x2e1ccc){const _0x44c5e1=this['repository']['getRevisions']();_0x44c5e1['reverse']();let _0x25c808=0x0;for(;_0x25c808<_0x44c5e1['length'];){const _0x4479b9=_0x44c5e1[_0x25c808];if(_0x4479b9===this['currentRevision']){_0x25c808++;continue;}if(_0x4479b9['id']===this['_initialRevisionId'])break;const _0x99ac2c=_0x2e1ccc['toVersion']-_0x4479b9['toVersion']||_0x2e1ccc['fromVersion']-_0x4479b9['fromVersion'];if(_0x99ac2c>0x0)break;if(_0x99ac2c<0x0)_0x25c808++;else{if(!_0x2e1ccc['creator']&&_0x4479b9['creator'])break;if(_0x4479b9['creator']||!_0x2e1ccc['creator']){if(_0x2e1ccc['createdAt']>_0x4479b9['createdAt'])break;_0x25c808++;}else _0x25c808++;}}return _0x25c808;}['_getFromVersion'](_0xe71d34){const _0xf60527=this['repository']['getRevisions']();_0xf60527['reverse'](),_0xf60527['shift']();const _0x2f432b=_0xf60527['find'](_0x43b33e=>_0x43b33e['toVersion']<=_0xe71d34)['toVersion'];return _0x2f432b<this['_startingVersion']?this['_startingVersion']:_0x2f432b;}['_makeRevision']({name:_0x2f852f,from:_0x250fb9,to:_0x2982df,creatorId:_0x458eec,id:_0xdd01fe}){const _0x2b8cf9=this['buildRevisionData']({'from':_0x250fb9,'to':_0x2982df});_0x2b8cf9['name']=_0x2f852f,_0x2b8cf9['creatorId']=_0x458eec,_0x2b8cf9['id']=_0xdd01fe;const _0x213e57=this['addRevisionData'](_0x2b8cf9);return this['adapter']&&this['_bufferUpdate'](_0x2b8cf9['id'],_0x2b8cf9,!0x0),_0x213e57;}['_setConversion'](){this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'});}}class E{['editor'];['source'];['_savedMetaData'];['_lastFrom'];['_lastTo'];['_markers'];['_diffRoots'];['_diffRootsAttributes'];['_baseRoots'];['_baseRootsAttributes'];['_idsRoots'];['_baseIdsRoots'];['_touched'];['_touchedMarkers'];['_touchedRoots'];['_revisionId'];['_startingRevisionId'];constructor(_0x4b95e1){this['editor']=_0x4b95e1,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'](_0x307e4d){this['source']=_0x307e4d;const _0x199821=new Map(),_0x16d954=new Map(),_0x215d90=this['editor']['model']['document']['roots']['map'](_0x4036b8=>_0x4036b8['rootName']);for(const _0xa90b09 of _0x215d90){const _0x16119b=this['editor']['model']['document']['getRoot'](_0xa90b09),_0x3f899a=x(_0x16119b);_0x199821['set'](_0xa90b09,_0x3f899a),_0x16d954['set'](_0xa90b09,Object['fromEntries'](_0x16119b['getAttributes']()));}const _0x4a5e85=Array['from'](this['editor']['model']['markers'])['map'](_0x508f4e=>[_0x508f4e['name'],_0x508f4e['getRange']()]),_0x3cae61=this['source']['version'];this['_saveMetaData'](_0x3cae61,_0x199821,_0x4a5e85,_0x16d954),this['_startingRevisionId']=this['_revisionId'];const _0x10e1ab=new Map(),_0x241096=new Map();for(const _0x1b19cd of _0x215d90){const _0x910123=N(_0x1b19cd);_0x10e1ab['set'](_0x1b19cd,_0x910123),_0x241096['set'](_0x1b19cd,{});}this['_saveMetaData'](Number['NEGATIVE_INFINITY'],_0x10e1ab,[],_0x241096);}['getData'](_0x4f3fbd,_0x1911a5){if(this['_lastFrom']===_0x4f3fbd&&this['_lastTo']<=_0x1911a5)this['_savedMetaData']['size']>0x1&&this['_removeMetaData'](this['_lastTo']),this['_applyOperations'](this['_lastTo'],_0x1911a5,!0x0);else{if(!this['_savedMetaData']['has'](_0x4f3fbd)){const _0x583554=this['_getPreviousFrom'](_0x4f3fbd);this['_calculateMetaData'](_0x583554,_0x4f3fbd,!0x1);}this['_calculateMetaData'](_0x4f3fbd,_0x1911a5,!0x0);}return this['_lastFrom']=_0x4f3fbd,this['_lastTo']=_0x1911a5,this['_getState']();}['loadState'](_0xb35384){if(!this['_savedMetaData']['has'](_0xb35384['fromVersion'])){const _0x1e4dde=this['_getPreviousFrom'](_0xb35384['fromVersion']);this['_calculateMetaData'](_0x1e4dde,_0xb35384['fromVersion'],!0x1);}this['_calculateMetaData'](_0xb35384['fromVersion'],_0xb35384['toVersion'],!0x1);const _0x376910=this['editor']['plugins']['get']('RevisionHistoryUtils');this['_reset'](),this['_lastFrom']=_0xb35384['fromVersion'],this['_lastTo']=_0xb35384['toVersion'];for(const _0x2abe70 in _0xb35384['diffData']){const _0x4a7549=_0xb35384['diffData'][_0x2abe70]['attachChange'],_0x47ffdb=_0x3cfdfd(_0xb35384['diffData'][_0x2abe70]['attributesBefore'])||{},_0x565599=_0x376910['_makeModelFromViewString'](_0xb35384['diffData'][_0x2abe70]['deletions']);_0x565599['rootName']=_0x2abe70,_0x565599['_isAttached']=!_0x4a7549||!_0x4a7549['isAttached'],_0x565599['isAttached']=()=>_0x565599['_isAttached'],this['_baseRoots']['set'](_0x2abe70,_0x565599),this['_baseRootsAttributes']['set'](_0x2abe70,_0x47ffdb),_0x4a7549&&this['_touchedRoots']['set'](_0x2abe70,_0x4a7549);const _0x14d4d4=this['_makeIdsRoot'](_0x565599);this['_baseIdsRoots']['set'](_0x2abe70,_0x14d4d4);for(const [_0xe78b35,_0x3ff992]of _0x565599['markers']){if(!_0xe78b35['startsWith']('revision:'))continue;const _0x44dd82=_0xe78b35['split'](':')[0x2];for(const _0x22fcfd of _0x3ff992['getWalker']({'singleCharacters':!0x0})){const _0x1b26b2=this['_getVidAttributeName'](_0x22fcfd),_0xc8069c='elementEnd'==_0x22fcfd['type']?_0x22fcfd['previousPosition']['path']['slice'](0x0,-0x1):_0x22fcfd['previousPosition']['path'],_0x23ce1d=_0x14d4d4['getNodeByPath'](_0xc8069c)['getAttribute'](_0x1b26b2);this['_touched']['set'](_0x23ce1d,{'userId':_0x44dd82});}_0x565599['markers']['delete'](_0xe78b35);}}this['_startingRevisionId']=this['_revisionId'];const _0x4aeeb5=[...Array(this['_revisionId'])['keys']()]['slice'](0x1)['filter'](_0x592e7f=>!this['_touched']['has'](_0x592e7f));let _0x3530ac=0x0;const _0x41dc71=new Map();for(const _0x4b9c5c in _0xb35384['diffData']){const _0x29ecd3=_0xb35384['diffData'][_0x4b9c5c]['attachChange'],_0x234ad2=_0x3cfdfd(_0xb35384['diffData'][_0x4b9c5c]['attributesAfter'])||{},_0x5990c9=_0x376910['_makeModelFromViewString'](_0xb35384['diffData'][_0x4b9c5c]['insertions']);_0x5990c9['rootName']=_0x4b9c5c,_0x5990c9['_isAttached']=!_0x29ecd3||_0x29ecd3['isAttached'],_0x5990c9['isAttached']=()=>_0x5990c9['_isAttached'],this['_diffRoots']['set'](_0x4b9c5c,_0x5990c9),this['_diffRootsAttributes']['set'](_0x4b9c5c,_0x234ad2);const _0x4ff0bb=this['_makeIdsRoot'](_0x5990c9,Number['NEGATIVE_INFINITY']);this['_idsRoots']['set'](_0x4b9c5c,_0x4ff0bb),_0x41dc71['set'](_0x4b9c5c,_0x5990c9['isAttached']()?_0x234ad2:{});for(const [_0x3142f7,_0x5afc56]of _0x5990c9['markers']){if(!_0x3142f7['startsWith']('revision:'))continue;const _0xe7d408=_0x3142f7['split'](':')[0x2];for(const _0x30b0f5 of _0x5afc56['getWalker']({'singleCharacters':!0x0})){const _0x1328dc=this['_getVidAttributeName'](_0x30b0f5),_0x598428=this['_revisionId']++,_0x593833='elementEnd'==_0x30b0f5['type']?_0x30b0f5['previousPosition']['path']['slice'](0x0,-0x1):_0x30b0f5['previousPosition']['path'];_0x4ff0bb['getNodeByPath'](_0x593833)['_setAttribute'](_0x1328dc,_0x598428),this['_touched']['set'](_0x598428,{'userId':_0xe7d408});}_0x5990c9['markers']['delete'](_0x3142f7);}for(const _0x1967ca of this['editor']['model']['createRangeIn'](_0x5990c9)['getWalker']({'singleCharacters':!0x0})){const _0x5e29a3=this['_getVidAttributeName'](_0x1967ca),_0x1c4461='elementEnd'==_0x1967ca['type']?_0x1967ca['previousPosition']['path']['slice'](0x0,-0x1):_0x1967ca['previousPosition']['path'],_0x1337c6=_0x4ff0bb['getNodeByPath'](_0x1c4461);_0x1337c6['getAttribute'](_0x5e29a3)>0x0||_0x1337c6['_setAttribute'](_0x5e29a3,_0x4aeeb5[_0x3530ac++]);}for(const [_0x3d812d,_0x5b696b]of _0x5990c9['markers'])_0x3d812d['startsWith']('revision:')||this['_markers']['set'](_0x3d812d,_0x5b696b);}const {roots:_0x578cce}=this['_savedMetaData']['get'](_0xb35384['fromVersion']),{roots:_0x4df860}=this['_savedMetaData']['get'](_0xb35384['toVersion']),_0x2160b8=x(_0x578cce['get']('$graveyard'));this['_baseRoots']['set']('$graveyard',_0x2160b8),this['_baseIdsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x2160b8,Number['NEGATIVE_INFINITY']));const _0x35d09f=x(_0x4df860['get']('$graveyard'));this['_diffRoots']['set']('$graveyard',_0x35d09f),this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x35d09f));const _0x254f8f=Array['from'](this['_diffRoots'])['map'](([_0x3235c2,_0x33591a])=>[_0x3235c2,x(_0x33591a)]);this['_saveMetaData'](this['_lastTo'],_0x254f8f,this['_markers'],_0x41dc71);}['reInit'](){this['_reset'](),this['_lastFrom']=-0x1,this['_lastTo']=-0x1,this['_savedMetaData']['clear'](),this['init'](this['source']);}['_saveMetaData'](_0x4d1e1f,_0x1d0ec2,_0x1ba1d5,_0x51e28a){const _0x33c800=new Map(_0x1d0ec2),_0x42b6a5=new Map(_0x3cfdfd(_0x51e28a)),_0x49013e=new Map();for(const [_0x1d4090,_0x44ab19]of _0x1ba1d5)_0x49013e['set'](_0x1d4090,{'start':_0x44ab19['start']['clone'](),'end':_0x44ab19['end']['clone'](),'rootName':_0x44ab19['root']['rootName']});this['_savedMetaData']['set'](_0x4d1e1f,{'roots':_0x33c800,'markers':_0x49013e,'rootsAttributes':_0x42b6a5});}['_removeMetaData'](_0xba1c57){this['_savedMetaData']['delete'](_0xba1c57);}['_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'](_0x45f10a,_0x2ebf78=null){let _0x142bbb=null;_0x45f10a['is']('documentFragment')||(_0x142bbb=new _0x7079dc(_0x45f10a['name'],{'vid_start':null===_0x2ebf78?this['_revisionId']++:_0x2ebf78++}));const _0x2fe87d=[];for(const _0x3b2fbe of _0x45f10a['getChildren']())if(_0x3b2fbe['is']('element')){_0x2fe87d['push'](this['_makeIdsRoot'](_0x3b2fbe,_0x2ebf78));const _0x4c6a25=_0x2fe87d[_0x2fe87d['length']-0x1];null!==_0x2ebf78&&(_0x2ebf78=_0x4c6a25['is']('element','$text')?_0x4c6a25['getAttribute']('vid')+0x1:_0x4c6a25['getAttribute']('vid_end')+0x1);}else{for(let _0x11d7eb=0x0;_0x11d7eb<_0x3b2fbe['offsetSize'];_0x11d7eb++)_0x2fe87d['push'](new _0x7079dc('$text',{'vid':null===_0x2ebf78?this['_revisionId']++:_0x2ebf78++}));}if(_0x45f10a['is']('documentFragment')){const _0x3d5f9a=N(_0x45f10a['rootName']);return _0x3d5f9a['_insertChild'](0x0,_0x2fe87d),_0x3d5f9a;}return _0x142bbb['_setAttribute']('vid_end',null===_0x2ebf78?this['_revisionId']++:_0x2ebf78++),_0x142bbb['_insertChild'](0x0,_0x2fe87d),_0x142bbb;}['_calculateMetaData'](_0x42bdb4,_0x271a54,_0x26e0e4){this['_reset']();const {roots:_0xebf167,markers:_0x55eb55,rootsAttributes:_0x7da7af}=this['_savedMetaData']['get'](_0x42bdb4);this['_baseRoots']=new Map(_0xebf167),this['_baseRootsAttributes']=new Map(_0x3cfdfd(_0x7da7af));for(const [_0x33c5e5,_0x5e5f29]of this['_baseRoots'])if('$graveyard'!==_0x33c5e5&&(this['_diffRoots']['set'](_0x33c5e5,x(_0x5e5f29)),this['_diffRootsAttributes']=new Map(_0x3cfdfd(_0x7da7af)),_0x26e0e4)){const _0x501554=this['_revisionId'];this['_idsRoots']['set'](_0x33c5e5,this['_makeIdsRoot'](_0x5e5f29)),this['_baseIdsRoots']['set'](_0x33c5e5,this['_makeIdsRoot'](_0x5e5f29,_0x501554));}this['_startingRevisionId']=this['_revisionId'],this['_diffRoots']['set']('$graveyard',x(this['_baseRoots']['get']('$graveyard'))),_0x26e0e4&&this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](this['_baseRoots']['get']('$graveyard')));for(const [_0x38ddba,_0xd85944]of _0x55eb55){const _0x227993=this['_baseRoots']['get'](_0xd85944['rootName']),_0x435e6c=this['_diffRoots']['get'](_0xd85944['rootName']),_0x32f10a=new _0x1af76d(this['_fixPosition'](_0xd85944['start'],_0x227993),this['_fixPosition'](_0xd85944['end'],_0x227993)),_0x4c1554=this['_fixRange'](_0x32f10a,_0x435e6c);_0x227993['markers']['set'](_0x38ddba,_0x32f10a),this['_markers']['set'](_0x38ddba,_0x4c1554);}this['_applyOperations'](_0x42bdb4,_0x271a54,_0x26e0e4);}['_applyOperations'](_0x380e5a,_0x1da3a4,_0xf4dd2b){for(const _0x117774 of this['source']['getOperations'](_0x380e5a,_0x1da3a4))this['_handleOperation'](_0x117774,_0xf4dd2b);for(const _0x4b96f9 of this['_diffRoots']['values']())_0x4b96f9['markers']['clear']();for(const [_0x33587a,_0x4f342e]of this['_markers']){this['_diffRoots']['get'](_0x4f342e['root']['rootName'])['markers']['set'](_0x33587a,_0x4f342e['clone']());}const _0x204018=new Map(),_0x578471=new Map();for(const [_0x5c1298,_0x1ef890]of this['_diffRoots'])_0x204018['set'](_0x5c1298,x(_0x1ef890)),_0x578471['set'](_0x5c1298,this['_diffRootsAttributes']['get'](_0x5c1298));this['_saveMetaData'](_0x1da3a4,_0x204018,this['_markers'],_0x578471);}['_getPreviousFrom'](_0x2aa680){const _0x36c363=Array['from'](this['_savedMetaData']['keys']());_0x36c363['sort']((_0x45dcfc,_0x496740)=>_0x45dcfc-_0x496740),_0x36c363['reverse']();for(const _0x4ee428 of _0x36c363)if(_0x4ee428<_0x2aa680)return _0x4ee428;return Number['NEGATIVE_INFINITY'];}['_copyMarkers'](_0x4c2214,_0x4aada7){const _0x3c3e80=Array['from'](_0x4aada7['markers'])['map'](([_0x36868a,_0x47f6a7])=>[_0x36868a,this['_fixRange'](_0x47f6a7,_0x4c2214)]);_0x4c2214['markers']=new Map(_0x3c3e80);}['_transformMarkers'](_0x3aad07){for(const _0x353e31 of this['_markers']['values']()){const _0x2f6c36=_0x353e31['getTransformedByOperation'](_0x3aad07),_0x4f00e8=_0x1af76d['_createFromRanges'](_0x2f6c36);_0x353e31['start']=_0x4f00e8['start'],_0x353e31['end']=_0x4f00e8['end'];}}['_handleOperation'](_0x5ce87f,_0x3e083b){if('addRoot'!=_0x5ce87f['type']&&'detachRoot'!=_0x5ce87f['type']){if('insert'==_0x5ce87f['type']){const _0x3051e6=_0x5ce87f['position']['root']['rootName'];this['_diffRoots']['has'](_0x3051e6)||(this['_diffRoots']['set'](_0x3051e6,N(_0x3051e6,!0x0)),this['_diffRootsAttributes']['set'](_0x3051e6,{}),_0x3e083b&&this['_idsRoots']['set'](_0x3051e6,N(_0x3051e6,!0x0)));}else{if('addRootAttribute'==_0x5ce87f['type']||'removeRootAttribute'==_0x5ce87f['type']||'changeRootAttribute'==_0x5ce87f['type'])return void this['_handleRootAttributeOperation'](_0x5ce87f);'marker'==_0x5ce87f['type']&&this['_handleMarkerOperation'](_0x5ce87f);}if('marker'!==_0x5ce87f['type']){const _0x457e95=this['_cloneOperation'](_0x5ce87f,this['_diffRoots']);_0x457e95['_execute'](),this['_transformMarkers'](_0x457e95);}if(_0x3e083b)switch(_0x5ce87f['type']){case'insert':this['_handleInsertOperation'](_0x5ce87f);break;case'move':case'remove':case'reinsert':this['_handleMoveOperation'](_0x5ce87f);break;case'merge':this['_handleMergeOperation'](_0x5ce87f);break;case'split':this['_handleSplitOperation'](_0x5ce87f);}}else this['_handleRootOperation'](_0x5ce87f,_0x3e083b);}['_cloneOperation'](_0x1ddc5d,_0xd98e45){const _0x442fc2=_0x1ddc5d['clone']();return _0x442fc2['_authorId']=_0x1ddc5d['_authorId'],this['_fixOperation'](_0x442fc2,_0xd98e45),_0x442fc2;}['_getBaseVids'](_0x464170){return _0x464170['map'](_0x568f75=>{const _0x3f2390=this['_getVidAttributeName'](_0x568f75);return Number(_0x568f75['item']['getAttribute'](_0x3f2390));});}['_generateTape'](_0xe73d9c,_0x5f2e2a){if(_0xe73d9c['is']('element','$text'))_0x5f2e2a['push']({'item':_0xe73d9c,'type':'text'});else{_0xe73d9c['is']('element')&&_0x5f2e2a['push']({'item':_0xe73d9c,'type':'elementStart'});for(const _0xac7614 of _0xe73d9c['getChildren']())this['_generateTape'](_0xac7614,_0x5f2e2a);_0xe73d9c['is']('element')&&_0x5f2e2a['push']({'item':_0xe73d9c,'type':'elementEnd'});}return _0x5f2e2a;}['_getState'](){const _0x1f141b=new Map(this['_touched']),_0x492314=new Map(_0x1f141b),_0x4d183f=new Map(),_0x624d8d={'insertions':{},'deletions':{}},_0x48b046={'insertions':{},'deletions':{}},_0x4c2770=new Map(),_0x21a6f7=new Set([...this['_baseRoots']['keys'](),...this['_diffRoots']['keys']()]);_0x21a6f7['delete']('$graveyard');for(const _0x2b1289 of _0x21a6f7){const _0x32d3a7=this['_diffRoots']['get'](_0x2b1289)||N(_0x2b1289,!0x1),_0x293f43=this['_baseRoots']['get'](_0x2b1289)||N(_0x2b1289,!0x1);_0x32d3a7['isAttached']()||_0x293f43['isAttached']()?(_0x624d8d['insertions'][_0x2b1289]=x(_0x32d3a7),_0x624d8d['deletions'][_0x2b1289]=x(_0x293f43),this['_copyMarkers'](_0x624d8d['deletions'][_0x2b1289],_0x293f43),this['_copyMarkers'](_0x624d8d['insertions'][_0x2b1289],_0x32d3a7),_0x48b046['insertions'][_0x2b1289]=this['_generateTape'](this['_idsRoots']['get'](_0x2b1289),[]),_0x48b046['deletions'][_0x2b1289]=this['_generateTape'](this['_baseIdsRoots']['get'](_0x2b1289)||N(_0x2b1289,!0x1),[])):_0x21a6f7['delete'](_0x2b1289);}for(const _0x3179d3 of _0x21a6f7){const _0x276ded=_0x48b046['insertions'][_0x3179d3];for(const _0x28f576 of _0x276ded){const _0x57cedb=this['_getVidAttributeName'](_0x28f576),_0x57189b=_0x28f576['item']['getAttribute'](_0x57cedb);_0x492314['delete'](_0x57189b),_0x57189b>=this['_startingRevisionId']&&_0x4d183f['set'](_0x57189b,_0x1f141b['get'](_0x57189b));}}for(const _0x555052 of _0x21a6f7){const _0xbea7d0=_0x48b046['insertions'][_0x555052],_0x36ec9a=this['_getBaseVids'](_0x48b046['deletions'][_0x555052]);let _0x2889cf=0x0;for(const _0xb999d of _0xbea7d0){const _0x3e8194=this['_getVidAttributeName'](_0xb999d),_0x16b8a3=_0xb999d['item']['getAttribute'](_0x3e8194);if(!_0x4d183f['has'](_0x16b8a3)&&!_0x4c2770['has'](_0x16b8a3)){if(_0x492314['has'](_0x16b8a3))_0x2889cf++;else{if(_0x16b8a3!=_0x36ec9a[_0x2889cf]){const _0x3367a9=_0x1f141b['get'](_0x16b8a3)||_0x1f141b['get'](_0x36ec9a[_0x2889cf]);for(;_0x16b8a3!=_0x36ec9a[_0x2889cf];)_0x492314['has'](_0x36ec9a[_0x2889cf])||(_0x4c2770['set'](_0x36ec9a[_0x2889cf],_0x3367a9),_0x1f141b['set'](_0x36ec9a[_0x2889cf],_0x3367a9)),_0x2889cf++;}_0x2889cf++;}}}}for(const _0x18079e of _0x21a6f7){const _0x5e7a68=_0x48b046['insertions'][_0x18079e];for(const _0x5acec5 of _0x5e7a68){const _0x2ceff0=this['_getVidAttributeName'](_0x5acec5),_0x3dea77=_0x5acec5['item']['getAttribute'](_0x2ceff0);if(_0x4c2770['has'](_0x3dea77)){const _0x5684e5=_0x4c2770['get'](_0x3dea77);_0x492314['has'](_0x3dea77)||_0x492314['set'](_0x3dea77,{..._0x5684e5}),_0x4d183f['set'](_0x3dea77,{..._0x5684e5});}}}for(const _0x54c459 of _0x492314['keys']())_0x54c459>=this['_startingRevisionId']&&_0x492314['delete'](_0x54c459);const _0x40ab1e=new Map();for(const _0x4e49af of _0x21a6f7){let _0x2224b7=_0x48b046['insertions'][_0x4e49af];for(const _0x2dd53a of _0x2224b7)if(_0x2dd53a['item']['is']('element','tableCell')){const _0x505248=this['_getVidAttributeName'](_0x2dd53a),_0x15abed=_0x2dd53a['item']['getAttribute'](_0x505248);if(_0x4d183f['has'](_0x15abed)){const _0x810d00=_0x2dd53a['item']['parent']['parent']['getAttribute']('vid_start'),_0x31dff7=_0x40ab1e['get'](_0x810d00)||new Set();_0x31dff7['add'](_0x4d183f['get'](_0x15abed)['userId']),_0x40ab1e['set'](_0x810d00,_0x31dff7);}}_0x2224b7=_0x48b046['deletions'][_0x4e49af];for(const _0x1d2093 of _0x2224b7)if(_0x1d2093['item']['is']('element','tableCell')){const _0x2783f3=this['_getVidAttributeName'](_0x1d2093),_0x17ea67=_0x1d2093['item']['getAttribute'](_0x2783f3);if(_0x492314['has'](_0x17ea67)){const _0x359188=_0x1d2093['item']['parent']['parent']['getAttribute']('vid_start'),_0x2101e5=_0x40ab1e['get'](_0x359188)||new Set();_0x2101e5['add'](_0x492314['get'](_0x17ea67)['userId']),_0x40ab1e['set'](_0x359188,_0x2101e5);}}for(const _0x250d4c of _0x40ab1e['keys']())(_0x4d183f['has'](_0x250d4c)||_0x492314['has'](_0x250d4c))&&_0x40ab1e['delete'](_0x250d4c);}for(const _0x3014d5 of _0x21a6f7){const _0x1d0b5c=_0x48b046['insertions'][_0x3014d5];let _0x199a49=null,_0x45f8c4=null;for(const _0x47efb3 of _0x1d0b5c){const _0x811c31=this['_getVidAttributeName'](_0x47efb3),_0x2e8155=_0x47efb3['item']['getAttribute'](_0x811c31),_0x22ca84=_0x40ab1e['get'](_0x2e8155);_0x22ca84&&'elementStart'==_0x47efb3['type']&&(_0x199a49=Array['from'](_0x22ca84)[0x0],_0x45f8c4=_0x47efb3['item']['getAttribute']('vid_end')),_0x199a49&&(_0x492314['set'](_0x2e8155,{'userId':_0x199a49}),_0x4d183f['set'](_0x2e8155,{'userId':_0x199a49})),_0x2e8155==_0x45f8c4&&(_0x199a49=null,_0x45f8c4=null);}}const _0x87a060={},_0xd67b8d=new Set();for(const _0x499a0b of _0x21a6f7){const _0x257391=_0x624d8d['deletions'][_0x499a0b],_0x1e7bd7=_0x624d8d['insertions'][_0x499a0b];for(const {userId:_0x51d456}of this['_touchedMarkers']['values']())null!==_0x51d456&&_0xd67b8d['add'](_0x51d456);for(const {userId:_0x5f1ddf}of this['_touchedRoots']['values']())null!==_0x5f1ddf&&_0xd67b8d['add'](_0x5f1ddf);this['_markChanges'](_0x1e7bd7,_0x48b046['insertions'][_0x499a0b],_0x4d183f,'insertion',_0xd67b8d),this['_markChanges'](_0x257391,_0x48b046['deletions'][_0x499a0b],_0x492314,'deletion',_0xd67b8d),_0x87a060[_0x499a0b]={'insertions':this['_prepareViewToSave'](_0x1e7bd7),'deletions':this['_prepareViewToSave'](_0x257391),'attachChange':this['_touchedRoots']['get'](_0x499a0b)||null,'attributesBefore':_0x3cfdfd(this['_baseRootsAttributes']['get'](_0x499a0b))||{},'attributesAfter':_0x3cfdfd(this['_diffRootsAttributes']['get'](_0x499a0b))};}return{'diffData':_0x87a060,'authorsIds':Array['from'](_0xd67b8d)};}['_processRootBeforeSave'](_0xf71bbf){for(const [,_0x1c7044]of _0xf71bbf['markers']){const _0x426195=_0x1c7044['start']['getAncestors']()['filter'](_0x2f480e=>'tableCell'==_0x2f480e['name']);for(const _0x1a948d of _0x426195)0x1==_0x1a948d['childCount']&&_0x1a948d['getChild'](0x0)['is']('element','paragraph')&&_0x1a948d['getChild'](0x0)['_setAttribute']('keepParagraph',!0x0);}}['_prepareViewToSave'](_0x39e374){this['_processRootBeforeSave'](_0x39e374);const _0xd83024=this['editor']['data']['toView'](_0x39e374,{}),_0x5c1d6b=Array['from'](_0xd83024['getChildren']())['map'](_0x386523=>this['_getViewJson'](_0x386523));return JSON['stringify'](_0x5c1d6b);}['_getViewJson'](_0x484235){if(_0x484235['is']('$text'))return _0x484235['data'];{const _0x2b3055=this['editor']['plugins']['get']('RevisionHistoryUtils'),_0x1b48da=_0x484235,_0x498976=this['editor']['data']['htmlProcessor']['domConverter'],_0x440051={'type':_0x2b3055['_getTypeCharForViewElement'](_0x1b48da),'name':_0x1b48da['name'],'attributes':Array['from'](_0x1b48da['getAttributes']()),'children':Array['from'](_0x1b48da['getChildren']())['map'](_0x3d36e2=>this['_getViewJson'](_0x3d36e2))};if(_0x484235['is']('uiElement')&&'$comment'!=_0x484235['name']){const _0x1e5e53=_0x484235['render'](_0x498976['domDocument'],_0x498976);_0x440051['children']['push'](_0x1e5e53['outerHTML']);}else{if(_0x484235['is']('rawElement')){const _0x382179=_0x498976['domDocument']['createElement'](_0x1b48da['name']);_0x484235['render'](_0x382179,_0x498976),_0x440051['children']['push'](_0x382179['innerHTML']);}}const _0x35bd29=Array['from'](_0x1b48da['getCustomProperties']());_0x35bd29['length']>0x0&&(_0x440051['customProperties']=_0x35bd29);const _0x268263=_0x1b48da['getFillerOffset']();return null!==_0x268263&&(_0x440051['fillerOffset']=_0x268263),_0x440051;}}['_markChanges'](_0x5cffac,_0x4a6a6e,_0x5c44bb,_0x1bebf3,_0xebeea8){let _0xbebf2=null,_0x29a751=null,_0x2ecad6=0x0;const _0x417d59=this['editor']['model'];for(let _0x2cfa26=0x0;_0x2cfa26<_0x4a6a6e['length'];_0x2cfa26++){const _0x1e4f13=this['_getVidAttributeName'](_0x4a6a6e[_0x2cfa26]),_0x333b4b=_0x4a6a6e[_0x2cfa26]['item']['getAttribute'](_0x1e4f13),_0x38cb8e=_0x5c44bb['get'](_0x333b4b),_0x3b8ee0=_0x2cfa26==_0x4a6a6e['length']-0x1;(!_0xbebf2&&_0x38cb8e&&(_0xbebf2=_0x38cb8e,_0x29a751=_0x4a6a6e[_0x2cfa26]),_0xbebf2&&(!_0x38cb8e||_0x38cb8e['userId']!=_0xbebf2['userId']))&&(_0x1280a1(_0x38cb8e,P(_0x29a751,_0x5cffac,_0x417d59),P(_0x4a6a6e[_0x2cfa26],_0x5cffac,_0x417d59)),_0xbebf2=_0x38cb8e||null,_0x29a751=_0x38cb8e?_0x4a6a6e[_0x2cfa26]:null),_0xbebf2&&_0x3b8ee0&&_0x1280a1(_0x38cb8e,P(_0x29a751,_0x5cffac,_0x417d59),V(_0x4a6a6e[_0x2cfa26],_0x5cffac,_0x417d59));}function _0x1280a1(_0x203757,_0xcf571,_0x5f4edf){const _0x4df93a=_0xbebf2['userId'],_0x422ce3='revision:'+_0x1bebf3+':'+_0x4df93a+':'+_0x2ecad6++,_0x46e638=_0x417d59['createRange'](_0xcf571,_0x5f4edf);_0x5cffac['markers']['set'](_0x422ce3,_0x46e638),null!==_0x4df93a&&_0xebeea8['add'](_0x4df93a);}}['_getVidAttributeName'](_0x1b3aca){switch(_0x1b3aca['type']){case'elementStart':return'vid_start';case'elementEnd':return'vid_end';default:return'vid';}}['_fixOperation'](_0x163dc3,_0x276e6d){_0x163dc3['baseVersion']=null;for(const _0x50359f in _0x163dc3){const _0x593533=_0x163dc3[_0x50359f];if(_0x593533 instanceof _0xa4050f){const _0x52b655=_0x276e6d['get'](_0x593533['root']['rootName']);_0x163dc3[_0x50359f]=this['_fixPosition'](_0x593533,_0x52b655);}if(_0x593533 instanceof _0x1af76d){const _0x529fff=_0x276e6d['get'](_0x593533['root']['rootName']);_0x163dc3[_0x50359f]=this['_fixRange'](_0x593533,_0x529fff);}'root'===_0x50359f&&(_0x163dc3['root']=_0x276e6d['get'](_0x163dc3['root']['rootName']));}}['_fixRange'](_0x2d5afe,_0x220c57){return this['editor']['model']['createRange'](this['_fixPosition'](_0x2d5afe['start'],_0x220c57),this['_fixPosition'](_0x2d5afe['end'],_0x220c57));}['_fixPosition'](_0x46799f,_0x50d531){return this['editor']['model']['createPositionFromPath'](_0x50d531,_0x46799f['path'],_0x46799f['stickiness']);}['_handleInsertOperation'](_0x21197c){const _0x5c16fe=this['_idsRoots']['get'](_0x21197c['position']['root']['rootName']),_0x28cd7f=this['_fixPosition'](_0x21197c['position'],_0x5c16fe),_0x1c2a1b=null===_0x21197c['_authorId']?null:_0x21197c['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x212f8a=_0x28cd7f['parent'],_0x34be63=this['_revisionId'],_0x68946f=[];for(const _0x4e607c of _0x21197c['nodes'])if(_0x4e607c['is']('element'))_0x68946f['push'](this['_makeIdsRoot'](_0x4e607c));else{for(let _0x499c11=0x0;_0x499c11<_0x4e607c['offsetSize'];_0x499c11++)_0x68946f['push'](new _0x7079dc('$text',{'vid':this['_revisionId']++}));}const _0x34c712=this['_revisionId'];for(let _0x399a90=_0x34be63;_0x399a90<_0x34c712;_0x399a90++)this['_touched']['set'](_0x399a90,{'userId':_0x1c2a1b});_0x212f8a['_insertChild'](_0x28cd7f['offset'],_0x68946f);}['_handleMoveOperation'](_0x330501){(_0x330501=this['_cloneOperation'](_0x330501,this['_idsRoots']))['_execute']();const _0x22b5b4=null===_0x330501['_authorId']?null:_0x330501['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x37bb18=_0x330501['getMovedRangeStart'](),_0x1dc713=_0x37bb18['parent'],_0x1c374f=_0x37bb18['offset'];!function _0x2b1bd6(_0x338fef,_0x2eab8a,_0x528133,_0x503cca){for(let _0x3f174c=_0x528133;_0x3f174c<_0x503cca;_0x3f174c++){const _0x2621b1=_0x2eab8a['getChild'](_0x3f174c);_0x2621b1['is']('element','$text')?_0x338fef['set'](_0x2621b1['getAttribute']('vid'),{'userId':_0x22b5b4}):(_0x338fef['set'](_0x2621b1['getAttribute']('vid_start'),{'userId':_0x22b5b4}),_0x2b1bd6(_0x338fef,_0x2621b1,0x0,_0x2621b1['childCount']),_0x338fef['set'](_0x2621b1['getAttribute']('vid_end'),{'userId':_0x22b5b4}));}}(this['_touched'],_0x1dc713,_0x1c374f,_0x1c374f+_0x330501['howMany']);}['_handleMergeOperation'](_0x1be2fd){const _0x431d37=null===(_0x1be2fd=this['_cloneOperation'](_0x1be2fd,this['_idsRoots']))['_authorId']?null:_0x1be2fd['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x286767=_0x1be2fd['targetPosition']['parent'],_0x26a209=_0x1be2fd['sourcePosition']['parent'],_0x1ba94e=_0x286767['getAttribute']('vid_end'),_0x24c2ef=_0x26a209['getAttribute']('vid_start');_0x286767['_setAttribute']('vid_end',_0x26a209['getAttribute']('vid_end')),_0x26a209['_setAttribute']('vid_end',_0x1ba94e),this['_touched']['set'](_0x24c2ef,{'userId':_0x431d37}),this['_touched']['set'](_0x1ba94e,{'userId':_0x431d37}),_0x1be2fd['_execute']();}['_handleSplitOperation'](_0x379fe2){const _0xed7434=null===(_0x379fe2=this['_cloneOperation'](_0x379fe2,this['_idsRoots']))['_authorId']?null:_0x379fe2['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x4954a2=_0x379fe2['graveyardPosition'],_0x41ef86=_0x379fe2['splitPosition']['parent'];_0x379fe2['_execute']();const _0x49b1dd=_0x41ef86['getAttribute']('vid_end'),_0x2f1df4=_0x379fe2['insertionPosition']['nodeAfter'];if(_0x4954a2){const _0x404755=_0x2f1df4['getAttribute']('vid_end'),_0x3b242a=_0x41ef86['getAttribute']('vid_end');_0x41ef86['_setAttribute']('vid_end',_0x404755),_0x2f1df4['_setAttribute']('vid_end',_0x3b242a),this['_touched']['set'](_0x41ef86['getAttribute']('vid_end'),{'userId':_0xed7434}),this['_touched']['set'](_0x2f1df4['getAttribute']('vid_start'),{'userId':_0xed7434});}else{const _0x305874=this['_revisionId']++,_0x44298a=this['_revisionId']++;_0x41ef86['_setAttribute']('vid_end',_0x305874),_0x2f1df4['_setAttribute']('vid_start',_0x44298a),_0x2f1df4['_setAttribute']('vid_end',_0x49b1dd),this['_touched']['set'](_0x305874,{'userId':_0xed7434}),this['_touched']['set'](_0x44298a,{'userId':_0xed7434});}}['_handleMarkerOperation'](_0x2be0fb){if(!_0x2be0fb['affectsData'])return;const _0x15031b=(_0x2be0fb=this['_cloneOperation'](_0x2be0fb,this['_diffRoots']))['oldRange']?_0x2be0fb['oldRange']['root']:null,_0x185193=_0x2be0fb['newRange']?_0x2be0fb['newRange']['root']:null;_0x15031b&&this['_markers']['delete'](_0x2be0fb['name']),_0x185193&&this['_markers']['set'](_0x2be0fb['name'],_0x2be0fb['newRange']['clone']());const _0x268a2a=null===_0x2be0fb['_authorId']?null:_0x2be0fb['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x55cad5=_0x2be0fb['name'];if(!this['_touchedMarkers']['has'](_0x55cad5))return void this['_touchedMarkers']['set'](_0x55cad5,{'range':_0x2be0fb['oldRange'],'userId':_0x268a2a});const _0xa1bc63=this['_touchedMarkers']['get'](_0x55cad5),_0x507a4c=_0xa1bc63['range'],_0x1ed7cd=_0x2be0fb['newRange'];null==_0x507a4c&&null==_0x1ed7cd||_0x507a4c&&_0x1ed7cd&&_0x507a4c['isEqual'](_0x1ed7cd)?this['_touchedMarkers']['delete'](_0x2be0fb['name']):_0xa1bc63['userId']=_0x268a2a;}['_handleRootOperation'](_0xdd0a5,_0x162508){this['_diffRoots']['has'](_0xdd0a5['rootName'])?this['_diffRoots']['get'](_0xdd0a5['rootName'])['_isAttached']=_0xdd0a5['isAdd']:(this['_diffRoots']['set'](_0xdd0a5['rootName'],N(_0xdd0a5['rootName'],!0x0)),this['_diffRootsAttributes']['set'](_0xdd0a5['rootName'],{}),_0x162508&&this['_idsRoots']['set'](_0xdd0a5['rootName'],N(_0xdd0a5['rootName'],!0x0)));const _0x578afe=null===_0xdd0a5['_authorId']?null:_0xdd0a5['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x45c8df=this['_touchedRoots']['get'](_0xdd0a5['rootName']);_0x45c8df&&_0x45c8df['userId']===_0x578afe?this['_touchedRoots']['delete'](_0xdd0a5['rootName']):this['_touchedRoots']['set'](_0xdd0a5['rootName'],{'userId':_0x578afe,'isAttached':_0xdd0a5['isAdd']});}['_handleRootAttributeOperation'](_0x22b70f){const _0xf90dd0=this['_diffRootsAttributes']['get'](_0x22b70f['root']['rootName']);null===_0x22b70f['newValue']?delete _0xf90dd0[_0x22b70f['key']]:_0xf90dd0[_0x22b70f['key']]=_0x22b70f['newValue'];}}function x(_0x264b16){const _0xd13b7d=N(_0x264b16['rootName'],_0x264b16['isAttached']());for(const _0x291450 of _0x264b16['getChildren']()){const _0x2348f1=_0x291450['_clone'](!0x0);_0xd13b7d['_appendChild'](_0x2348f1);}return _0xd13b7d;}function N(_0x21d2fa,_0xc1e9e9=!0x0){const _0x2f082c=new _0x481124();return _0x2f082c['rootName']=_0x21d2fa,_0x2f082c['_isAttached']=_0xc1e9e9,_0x2f082c['isAttached']=()=>_0x2f082c['_isAttached'],_0x2f082c;}function P(_0x58bc2c,_0x4c9be8,_0x4f4fe8){const _0xfbed7c='elementEnd'==_0x58bc2c['type']?_0x4f4fe8['createPositionAt'](_0x58bc2c['item'],'end'):_0x4f4fe8['createPositionBefore'](_0x58bc2c['item']);return _0x4f4fe8['createPositionFromPath'](_0x4c9be8,_0xfbed7c['path'],_0xfbed7c['stickiness']);}function V(_0x345bcc,_0x197320,_0x3800f8){const _0x38107f='elementStart'==_0x345bcc['type']?_0x3800f8['createPositionAt'](_0x345bcc['item'],0x0):_0x3800f8['createPositionAfter'](_0x345bcc['item']);return _0x3800f8['createPositionFromPath'](_0x197320,_0x38107f['path'],_0x38107f['stickiness']);}class he extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0x39e9b0(_0x59b9b3){['focusTracker'];['keystrokes'];['revisionNameInputView'];constructor(_0x109832,_0x3721d0){super(_0x109832),this['focusTracker']=new _0x38b6fd(),this['keystrokes']=new _0x5c4f56(),this['set']('revisionNameInputValue',''),this['revisionNameInputView']=this['_createRevisionNameInput'](_0x3721d0),this['setTemplate']({'tag':'form','attributes':{'class':['ck','ck-revision-history-save-revision-form','ck-responsive-form'],'tabindex':'-1'},'children':[this['revisionNameInputView']]}),this['initializeCssTransitionDisablerMixin']();}['render'](){super['render'](),_0x4d2a5c({'view':this}),this['focusTracker']['add'](this['revisionNameInputView']['element']),this['keystrokes']['listenTo'](this['element']);const _0x57fdfb=_0x3ede4f=>_0x3ede4f['stopPropagation']();this['keystrokes']['set']('arrowright',_0x57fdfb),this['keystrokes']['set']('arrowleft',_0x57fdfb),this['keystrokes']['set']('arrowup',_0x57fdfb),this['keystrokes']['set']('arrowdown',_0x57fdfb);}['focus'](){this['revisionNameInputView']['focus']();}get['revisionName'](){return this['revisionNameInputView']['fieldView']['element']['value']['trim']();}set['revisionName'](_0x5245d6){this['revisionNameInputView']['fieldView']['element']['value']=_0x5245d6['trim']();}['reset'](){this['revisionNameInputView']['fieldView']['element']['value']='',this['revisionNameInputView']['errorText']=null;}['_createRevisionNameInput'](_0x55b503){const _0x3a70ef=new ti(this['locale'],_0xf85895),_0x3a07cd=_0x3a70ef['fieldView'];_0x3a07cd['extendTemplate']({'attributes':{'maxlength':'220'}});let _0x5b693a=m(this['locale'],'Name\x20of\x20the\x20revision');return!_0x55b503&&(_0x5b693a+='\x20('+m(this['locale'],'optional')+')'),(_0x3a70ef['label']=_0x5b693a,_0x3a07cd['on']('input',()=>{this['revisionNameInputValue']=_0x3a07cd['element']['value']['trim']();}),_0x3a70ef);}}class l extends _0x3146b8{static get['pluginName'](){return'RevisionHistoryUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[h];}['_saveRevisionFormView'];['init'](){const _0x3a8045=this['editor'],_0x265f8b=_0x3a8045['plugins']['get']('RevisionTracker');_0x3a8045['ui']['componentFactory']['add']('revisionHistory',_0x54a921=>{const _0x5beb8b=_0x2a2a9b(_0x54a921),_0x202551=_0x5beb8b['panelView']['children'],_0x372103=new _0x297ca1(_0x54a921),_0x5c287f=new _0x17bb6e(_0x54a921),_0x575e2e=new _0x195746(_0x54a921),_0x4cfc5e=new _0x17bb6e(_0x54a921),_0x4bbf56=new _0x195746(_0x54a921);return _0x5beb8b['bind']('isEnabled')['to'](_0x265f8b,'isReady',_0x265f8b,'isEnabled',_0x3a8045,'isReadOnly',(_0x3840ad,_0x32118b,_0x5646b6)=>_0x3840ad&&_0x32118b&&!_0x5646b6),_0x5beb8b['buttonView']['set']({'icon':_0x2e00b0,'label':m(_0x54a921,'Revision\x20history'),'tooltip':!0x0}),_0x575e2e['set']({'label':m(_0x54a921,'Save\x20current\x20revision'),'withText':!0x0,'role':'menuitem'}),_0x575e2e['bind']('isEnabled')['to'](_0x265f8b,'isReady',_0x265f8b,'isEnabled',_0x3a8045,'isReadOnly',(_0x558af9,_0x1e9802,_0x5b6107)=>_0x558af9&&_0x1e9802&&!_0x5b6107),_0x575e2e['on']('execute',()=>this['_showDialog']()),_0x4bbf56['set']({'label':m(_0x54a921,'Open\x20revision\x20history'),'withText':!0x0,'role':'menuitem'}),_0x4bbf56['bind']('isEnabled')['to'](_0x265f8b,'isReady',_0x3a8045,'isReadOnly',(_0x1a6e8b,_0x3e0a07)=>_0x1a6e8b&&!_0x3e0a07),_0x4bbf56['on']('execute',()=>{_0x3a8045['config']['get']('revisionHistory')['showRevisionViewerCallback'](),_0x5beb8b['isOpen']=!0x1,_0x3a8045['editing']['view']['focus']();}),_0x5c287f['children']['add'](_0x575e2e),_0x4cfc5e['children']['add'](_0x4bbf56),_0x372103['role']='menu',_0x372103['items']['addMany']([_0x5c287f,_0x4cfc5e]),_0x202551['add'](_0x372103),_0x5beb8b;}),_0x3a8045['ui']['componentFactory']['add']('menuBar:revisionHistory',()=>this['_registerMenuComponent']());}['_registerMenuComponent'](){const _0x53f051=this['editor'],_0x2171f4=_0x53f051['locale'],_0x2d1b30=new _0x5d2a5e(_0x2171f4),_0x57b73f=new _0x3341ea(_0x2171f4);_0x2d1b30['buttonView']['set']({'icon':_0x2e00b0,'label':m(_0x2171f4,'Revision\x20history')});const _0xf4c7b1=new _0x370d65(_0x2171f4,_0x2d1b30),_0x4bbc9f=new _0x3afc1d(_0x2171f4);_0x4bbc9f['set']({'label':m(_0x2171f4,'Save\x20current\x20revision')}),_0x4bbc9f['delegate']('execute')['to'](_0x2d1b30),_0x4bbc9f['on']('execute',()=>{this['_showDialog']();}),_0xf4c7b1['children']['add'](_0x4bbc9f),_0x57b73f['items']['add'](_0xf4c7b1);const _0x42d822=new _0x370d65(_0x2171f4,_0x2d1b30),_0x5da3c0=new _0x3afc1d(_0x2171f4);return _0x5da3c0['set']({'label':m(_0x2171f4,'Open\x20revision\x20history')}),_0x5da3c0['delegate']('execute')['to'](_0x2d1b30),_0x5da3c0['on']('execute',()=>{_0x53f051['config']['get']('revisionHistory')['showRevisionViewerCallback']();}),_0x42d822['children']['add'](_0x5da3c0),_0x57b73f['items']['add'](_0x42d822),_0x2d1b30['panelView']['children']['add'](_0x57b73f),_0x2d1b30;}['_showDialog'](){const _0x371be1=this['editor'],_0x130686=_0x371be1['locale'],_0x169a28=_0x371be1['plugins']['get']('Dialog'),_0xdfdf53=_0x371be1['plugins']['get']('RevisionTracker');function _0x53d143(_0xe608c7){_0x371be1['config']['get']('revisionHistory.requireRevisionName')&&''===_0xe608c7['revisionName']?_0xe608c7['revisionNameInputView']['errorText']=m(_0x130686,'The\x20revision\x20name\x20cannot\x20be\x20empty.'):(_0x371be1['plugins']['get'](h)['saveRevision']({'name':_0xe608c7['revisionName']}),_0x169a28['hide']());}this['_saveRevisionFormView']||(this['_createSaveRevisionFormView'](),this['_saveRevisionFormView']['on']('submit',()=>_0x53d143(this['_saveRevisionFormView']))),this['_saveRevisionFormView']['reset'](),_0x169a28['show']({'id':'revisionSave','title':m(_0x130686,'Save\x20current\x20revision'),'isModal':!0x0,'content':this['_saveRevisionFormView'],'actionButtons':[{'label':m(_0x371be1['locale'],'Cancel'),'withText':!0x0,'onExecute':()=>_0x169a28['hide']()},{'label':m(_0x371be1['locale'],'Accept'),'class':'ck-button-action','withText':!0x0,'onCreate'(_0x534ad5){_0x534ad5['bind']('isEnabled')['to'](_0xdfdf53,'isReady',_0xdfdf53,'isEnabled',_0x371be1,'isReadOnly',(_0xef2552,_0x5f0b78,_0x8ef7f3)=>_0xef2552&&_0x5f0b78&&!_0x8ef7f3);},'onExecute':()=>_0x53d143(this['_saveRevisionFormView'])}]});}['_createSaveRevisionFormView'](){const _0x9be089=this['editor'],_0x4d9516=_0x9be089['locale'];this['_saveRevisionFormView']=new he(_0x4d9516,_0x9be089['config']['get']('revisionHistory.requireRevisionName')),this['_saveRevisionFormView']['render']();}}class z extends _0x59b9b3{['changeId'];['_model'];constructor(_0x2a79ad,_0x6e88d3){super(_0x2a79ad),this['_model']=_0x6e88d3,this['changeId']=_0x6e88d3['id'];const _0x73f302=this['bindTemplate'],_0x1799d7=m(_0x2a79ad,_0x6e88d3['data']['isSuggestion']?'Suggested\x20by':'add'==_0x6e88d3['type']?'Added\x20by':'Removed\x20by');this['set']('type',_0x6e88d3['type']),this['setTemplate']({'tag':'div','attributes':{'class':['ck-annotation','ck-revision-change',_0x73f302['to']('type',_0x558c17=>'ck-revision-change__'+_0x558c17)],'tabindex':-0x1},'children':[{'tag':'span','children':[{'tag':'span','attributes':{'class':['ck-revision-change__label']},'children':[{'text':_0x1799d7}]},{'text':'\x20'+_0x6e88d3['author']['name']}]}]});}['focus'](){this['element']['focus']();}}class G extends/* #__PURE__ -- @preserve */
|
|
26
|
+
_0x5b8442(){['id'];['author'];['type'];['data'];['rootName'];constructor(_0x148f39){super(),this['id']=_0x148f39['id']||_0x51af8d(),this['author']=_0x148f39['author'],this['type']=_0x148f39['type'],this['data']=_0x148f39['data']||{},this['rootName']=_0x148f39['rootName'],this['set']('createdAt',_0x148f39['createdAt']);}['toJSON'](){return{'id':this['id'],'authorId':this['author']['id'],'type':this['type'],'data':this['data'],'createdAt':this['createdAt']};}}class J{['newRevisionId'];['oldRevisionId'];['changes'];constructor(_0x53b7ab,_0x53406e){this['newRevisionId']=_0x53b7ab,this['oldRevisionId']=_0x53406e,this['changes']=new _0x2c09a8();}['_setChanges'](_0x55be48){for(const _0x5604f7 of _0x55be48)this['changes']['add'](_0x5604f7);}}class u extends _0x3146b8{['repository'];['adapter']=null;['_utils'];['_activeViewTarget'];['_changeView'];['_changeIdToChange'];['_balloon'];static get['pluginName'](){return'RevisionViewer';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x42660a,_0x4f8b36,S,$];}constructor(_0x1a6fb8){super(_0x1a6fb8),this['repository']=this['editor']['plugins']['get']('RevisionsRepository'),this['_utils']=this['editor']['plugins']['get']('RevisionHistoryUtils'),this['set']('activeChange',null),this['set']('activeView',null),this['_activeViewTarget']=null,this['set']('diff',null),this['set']('isReady',!0x1),this['set']('isEnabled',!0x0),this['on']('change:isEnabled',(_0x2b5394,_0x133c23,_0x35242f)=>{this['activeChange']=null,this['activeView']=null,this['editor']['editing']['view']['change'](_0x3b0833=>{for(const _0x47e3f0 of this['editor']['editing']['view']['document']['roots'])_0x35242f?_0x3b0833['removeClass']('ck-editor__editable__overlay',_0x47e3f0):_0x3b0833['addClass']('ck-editor__editable__overlay',_0x47e3f0);});}),this['bind']('isNavigationMode')['to'](this,'activeChange',_0x17437d=>null!==_0x17437d),this['bind']('currentChangeNumber')['to'](this,'isReady',this,'diff',this,'activeChange',(_0x56823e,_0x2be94b,_0x31c0af)=>_0x56823e&&_0x31c0af?_0x2be94b['changes']['getIndex'](_0x31c0af):0x0),this['bind']('numberOfChanges')['to'](this,'isReady',this,'diff',(_0x5a94bb,_0x4cbeec)=>_0x5a94bb?_0x4cbeec['changes']['length']:0x0),this['_changeView']=null,this['_changeIdToChange']=new Map(),this['_balloon']=this['editor']['plugins']['get'](_0x4f8b36);}['init'](){const _0x422dd7=this['editor'],_0x24c4c7=new ot(_0x422dd7,{'direction':'backward'}),_0xdf61b7=new ot(_0x422dd7,{'direction':'forward'});(_0x422dd7['commands']['add']('showPreviousChange',_0x24c4c7),_0x422dd7['commands']['add']('showNextChange',_0xdf61b7),_0x422dd7['commands']['add']('restoreRevision',new nt(_0x422dd7)),this['on']('change:numberOfChanges',()=>{_0x24c4c7['refresh'](),_0xdf61b7['refresh']();}),this['_setConversion'](),this['_initInteractions'](),_0x422dd7['enableReadOnlyMode']('revision-viewer'),_0x422dd7['plugins']['has']('WidgetToolbarRepository'))&&_0x422dd7['plugins']['get']('WidgetToolbarRepository')['forceDisabled']('revision-viewer');}async['getRevisionDocumentData'](_0x27b99d){return await this['_utils']['loadRevisionData'](_0x27b99d,this['adapter']),this['_utils']['getRevisionDocumentData'](_0x27b99d);}async['getRevisionRootsAttributes'](_0x268b8d){return await this['_utils']['loadRevisionData'](_0x268b8d,this['adapter']),this['_utils']['getRevisionRootsAttributes'](_0x268b8d);}async['compare'](_0x183605,_0x4e6d37,_0x44dfb9=!0x1){if(!this['isEnabled'])return;const _0x33ec5b=this['diff'],_0x33c380=this['repository'],_0x37a9a4='string'==typeof _0x183605?_0x33c380['getRevision'](_0x183605):_0x183605,_0xb2b306='string'==typeof _0x4e6d37?_0x33c380['getRevision'](_0x4e6d37):_0x4e6d37,_0x32e36d=_0x37a9a4['id'],_0x41d6d8=_0xb2b306?_0xb2b306['id']:null;if(!_0x44dfb9&&this['diff']&&this['diff']['newRevisionId']===_0x32e36d&&this['diff']['oldRevisionId']===_0x41d6d8)return Promise['resolve']();this['isReady']=!0x1,this['activeView']=null,this['activeChange']=null,this['diff']=new J(_0x32e36d,_0x41d6d8);const _0x3f29fe=this['_getRevisionsRange'](_0x37a9a4,_0xb2b306,!0x0)['map'](_0x431ba1=>this['_utils']['loadRevisionData'](_0x431ba1,this['adapter']));return _0x3f29fe['push'](new Promise(_0x55f02a=>{setTimeout(_0x55f02a,0x14);})),Promise['all'](_0x3f29fe)['then'](()=>{if(!this['isEnabled'])return;this['_cleanUp']();const _0x131336=this['_getDiff'](_0x32e36d,_0x41d6d8);for(const _0x4832ff of _0x131336['changes'])this['_changeIdToChange']['set'](_0x4832ff['id'],_0x4832ff);this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x4df216=>{for(const _0x233cdb of this['editor']['model']['document']['getRootNames']())_0x4df216['detachRoot'](_0x233cdb);for(const _0x36e8be of Object['keys'](_0x131336['model'])){const _0x3adb7c=_0x4df216['addRoot'](_0x36e8be);for(const _0xb9436a of Object['keys'](_0x131336['attributes'][_0x36e8be]))_0x4df216['setAttribute'](_0xb9436a,_0x131336['attributes'][_0x36e8be][_0xb9436a],_0x3adb7c);_0x4df216['insert'](_0x131336['model'][_0x36e8be],_0x3adb7c,0x0);}}),this['diff']['_setChanges'](this['_sortAndFilterDiffChanges'](_0x131336['changes'])),this['isReady']=!0x0;})['catch'](_0x3ae97d=>{console['error'](_0x3ae97d),this['_cleanUp'](),_0x33ec5b&&(this['diff']=_0x33ec5b),this['isReady']=!0x0;});}['addRevisionData'](_0x1312ad,_0x17776e){const _0xd0016c=this['repository']['createRevision'](_0x1312ad);return _0xd0016c['on']('_update',(_0x1b2a7a,_0x17e5e7,_0x1df8e5)=>_0x17776e(_0x17e5e7,_0x1df8e5,_0xd0016c)),this['repository']['addRevision'](_0xd0016c),_0xd0016c;}['_cleanUp'](){this['activeChange']=null,this['_cleanMarkers'](),this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=null,this['_changeIdToChange']['clear'](),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x203457=>{for(const _0x3dded3 of this['editor']['model']['document']['getRootNames']())_0x203457['detachRoot'](_0x3dded3);});}['_sortAndFilterDiffChanges'](_0x14ca4b){const _0x5218a2=[],_0x599a98=new Map();for(const _0x156b59 of this['editor']['model']['document']['getRootNames']()){const _0x530cc1=this['editor']['editing']['view']['getDomRoot'](_0x156b59);if(!_0x530cc1)continue;const _0x25bd7f=_0x530cc1['getClientRects']()['item'](0x0);_0x25bd7f&&(_0x5218a2['push'](_0x156b59),_0x599a98['set'](_0x156b59,_0x25bd7f));}return _0x5218a2['sort']((_0x3bde94,_0x3a4c7f)=>{const _0x1ee518=_0x599a98['get'](_0x3bde94),_0x167a40=_0x599a98['get'](_0x3a4c7f);return _0x1ee518['y']-_0x167a40['y']||_0x1ee518['x']-_0x167a40['x'];}),(_0x14ca4b=_0x14ca4b['filter'](_0x19252f=>_0x5218a2['includes'](_0x19252f['rootName'])))['sort']((_0x25de7a,_0x549170)=>_0x5218a2['indexOf'](_0x25de7a['rootName'])-_0x5218a2['indexOf'](_0x549170['rootName'])),_0x14ca4b;}['_makeTape'](_0x194d23){const _0x397cc2=Array['from'](_0x194d23['markers'])['filter'](([_0x4895d4,_0x2f683d])=>_0x4895d4['startsWith']('revision:')&&!_0x2f683d['isCollapsed']),_0x91eba4=Array['from'](this['editor']['model']['createRangeIn'](_0x194d23)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0x397cc2['length'])for(const _0x43f6ce of _0x91eba4){const [_0x2946d3,_0x6a71f0]=_0x397cc2[0x0],[,_0x2fc9d0,_0x47eeef]=_0x2946d3['split'](':');if(_0x6a71f0['end']['isEqual'](_0x43f6ce['nextPosition'])&&_0x397cc2['shift'](),(_0x43f6ce['previousPosition']['isEqual'](_0x6a71f0['start'])||_0x43f6ce['previousPosition']['isAfter'](_0x6a71f0['start']))&&('insertion'==_0x2fc9d0?_0x43f6ce['isAdded']={'userId':_0x47eeef}:'deletion'==_0x2fc9d0&&(_0x43f6ce['isRemoved']={'userId':_0x47eeef})),0x0==_0x397cc2['length'])break;}return _0x91eba4;}['_refreshStartEndIndex'](_0x306151){const _0x206918=new Map();for(let _0x38954f=0x0;_0x38954f<_0x306151['length'];_0x38954f++)'text'===_0x306151[_0x38954f]['type']?(_0x306151[_0x38954f]['item']['startIndex']=_0x38954f,_0x306151[_0x38954f]['item']['endIndex']=_0x38954f):('elementStart'===_0x306151[_0x38954f]['type']?_0x306151[_0x38954f]['item']['startIndex']=_0x38954f:'elementEnd'===_0x306151[_0x38954f]['type']&&(_0x306151[_0x38954f]['item']['endIndex']=_0x38954f),_0x206918['set'](_0x306151[_0x38954f]['id'],_0x38954f));for(const _0xcfca1e of _0x206918['values']())'elementStart'===_0x306151[_0xcfca1e]['type']?_0x306151[_0xcfca1e]['item']['endIndex']=_0x206918['get'](_0x306151[_0xcfca1e]['pairId']):'elementEnd'===_0x306151[_0xcfca1e]['type']&&(_0x306151[_0xcfca1e]['item']['startIndex']=_0x206918['get'](_0x306151[_0xcfca1e]['pairId']));}['_processTape'](_0x16649d){for(let _0xb8ad5c=0x0;_0xb8ad5c<_0x16649d['length'];_0xb8ad5c++){if('elementStart'===_0x16649d[_0xb8ad5c]['type'])_0x16649d[_0xb8ad5c]['item']['startIndex']=_0xb8ad5c;else{if('elementEnd'===_0x16649d[_0xb8ad5c]['type']){_0x16649d[_0xb8ad5c]['item']['endIndex']=_0xb8ad5c;const _0x202a7e=_0x16649d[_0xb8ad5c]['item']['startIndex'];_0x16649d[_0x202a7e]['pairId']=_0x16649d[_0xb8ad5c]['id'],_0x16649d[_0xb8ad5c]['pairId']=_0x16649d[_0x202a7e]['id'];}else _0x16649d[_0xb8ad5c]['item']['startIndex']=_0xb8ad5c,_0x16649d[_0xb8ad5c]['item']['endIndex']=_0xb8ad5c,_0x16649d[_0xb8ad5c]['pairId']=null;}_0x16649d[_0xb8ad5c]['markersStart']||(_0x16649d[_0xb8ad5c]['markersStart']=[],_0x16649d[_0xb8ad5c]['markersEnd']=[]);}}['_markInsertions'](_0x409900,_0x276012){const _0x4c9a8b=_0x409900['filter'](_0x16f44e=>!_0x16f44e['isAdded']);for(let _0x3ee400=0x0;_0x3ee400<_0x276012['length'];_0x3ee400++)_0x276012[_0x3ee400]['isAdded']&&(_0x4c9a8b[_0x3ee400]['isAdded']=_0x276012[_0x3ee400]['isAdded']);}['_getDiff'](_0x1942e1,_0x44b59e=null){const _0x1886e0=this['repository']['getRevision'](_0x1942e1),_0x5b166c=_0x44b59e?this['repository']['getRevision'](_0x44b59e):null,_0x74bc16=this['_getRevisionsRange'](_0x1886e0,_0x5b166c),_0x4cb360=_0x74bc16[_0x74bc16['length']-0x1],_0x2bb5b3=new Map(),_0x4befb7={'model':{},'attributes':{},'changes':[]},_0x5cfaa2=new Set(),_0x173bdb=new Map();for(let _0xadd3fd=_0x74bc16['length']-0x1;_0xadd3fd>=0x0;_0xadd3fd--){const _0x484dcd=_0x74bc16[_0xadd3fd];for(const _0x805bbf of Object['keys'](_0x484dcd['diffData']))if(_0x484dcd['diffData'][_0x805bbf]['attachChange']){const _0xd6a07d=_0x484dcd['diffData'][_0x805bbf]['attachChange'];_0xd6a07d['isAttached']?(_0x5cfaa2['add'](_0x805bbf),_0x173bdb['has'](_0x805bbf)&&_0x173bdb['get'](_0x805bbf)['userId']==_0xd6a07d['userId']?_0x173bdb['delete'](_0x805bbf):_0x173bdb['set'](_0x805bbf,_0xd6a07d)):_0x173bdb['has'](_0x805bbf)?(_0x5cfaa2['delete'](_0x805bbf),_0x173bdb['delete'](_0x805bbf)):(_0x5cfaa2['add'](_0x805bbf),_0x173bdb['set'](_0x805bbf,_0xd6a07d));}else _0x5cfaa2['add'](_0x805bbf);}for(const _0x404d10 of _0x5cfaa2){const _0x5bbc45=_0x173bdb['has'](_0x404d10)&&!_0x173bdb['get'](_0x404d10)['isAttached'];let _0x1ffef6=_0x5bbc45?_0x74bc16['length']-0x1:0x0;const _0x37b66a=_0x5bbc45?-0x1:0x1;for(;_0x74bc16[_0x1ffef6];){const _0xec8edb=_0x74bc16[_0x1ffef6];if(_0xec8edb['diffData'][_0x404d10]){const _0x5defca=_0x5bbc45?_0xec8edb['diffData'][_0x404d10]['attributesBefore']:_0xec8edb['diffData'][_0x404d10]['attributesAfter'];_0x4befb7['attributes'][_0x404d10]=_0x5defca?_0x3cfdfd(_0x5defca):{};break;}_0x1ffef6+=_0x37b66a;}}for(const _0xfe52c6 of _0x74bc16){_0xfe52c6['model']={};for(const _0x108c16 of _0xfe52c6['authors'])_0x2bb5b3['set'](_0x108c16['id'],_0x108c16);for(const _0x4714b3 of _0x5cfaa2){const _0x445521=_0xfe52c6['diffData'][_0x4714b3]?_0xfe52c6['diffData'][_0x4714b3]['insertions']:'[]',_0x1decac=_0xfe52c6['diffData'][_0x4714b3]?_0xfe52c6['diffData'][_0x4714b3]['deletions']:'[]';_0xfe52c6['model'][_0x4714b3]={'insertions':this['_utils']['_makeModelFromViewString'](_0x445521),'deletions':this['_utils']['_makeModelFromViewString'](_0x1decac)};}}for(const _0x49420d of _0x5cfaa2){let _0x1d3b09=null,_0x55b68f=0x0;const _0x4a651=new Map(Array['from'](_0x1886e0['model'][_0x49420d]['insertions']['markers'])['filter'](([_0x3d59b6])=>!_0x3d59b6['startsWith']('revision:')));let _0xecd0c9=0x0;for(const _0x227239 of _0x74bc16){const _0x1b1de3=this['_makeTape'](_0x227239['model'][_0x49420d]['insertions']);_0x227239==_0x1886e0?(_0x1d3b09=_0x1b1de3,_0x55b68f=_0x1d3b09['length'],_0x1d3b09['forEach'](_0x4addfe=>{_0x4addfe['id']=_0xecd0c9++;}),this['_processTape'](_0x1d3b09)):this['_markInsertions'](_0x1d3b09,_0x1b1de3);const _0x4e9532=_0x1d3b09['filter'](_0x2b6ddf=>!_0x2b6ddf['isAdded'])['map'](_0x4f0cb5=>_0x4f0cb5['id']);let _0x120e6b=0x0;const _0x1699ba=this['_makeTape'](_0x227239['model'][_0x49420d]['deletions']);_0x1699ba['forEach'](_0x5c8675=>{_0x5c8675['isRemoved']?_0x5c8675['id']=_0x55b68f++:_0x5c8675['id']=_0x4e9532[_0x120e6b++];}),this['_processTape'](_0x1699ba),this['_setDistance'](_0x1d3b09,'isAdded'),this['_setDistance'](_0x1699ba,'isRemoved'),_0x227239==_0x1886e0&&this['_markMarkers'](_0x1d3b09,_0x4a651),_0x1d3b09=this['_joinTapes'](_0x1d3b09,_0x1699ba),this['_refreshStartEndIndex'](_0x1d3b09),this['_setDistance'](_0x1d3b09,'isRemoved');}_0x1d3b09=_0x1d3b09['filter'](_0x2025be=>!(_0x2025be['isAdded']&&_0x2025be['isRemoved']));const _0x47eeab=new Map(_0x4cb360['model'][_0x49420d]['deletions']['markers']),_0x395a8f=new Set(_0x4a651['keys']());for(const _0x51aba7 of _0x47eeab['keys']())_0x395a8f['delete'](_0x51aba7);this['_markSuggestions'](_0x1d3b09,_0x395a8f),this['_fixObsoleteTags'](_0x1d3b09),_0x1d3b09=this['_removeMissingPairs'](_0x1d3b09),_0x1d3b09=this['_markMismatchedRemovedTags'](_0x1d3b09),_0x1d3b09=this['_removeUnsupportedChanges'](_0x1d3b09);const {root:_0x342554,changes:_0x50d3de}=this['_makeModelFromTape'](_0x1d3b09,_0x2bb5b3,_0x49420d);_0x4befb7['model'][_0x49420d]=_0x342554;const _0x43fa4c=_0x173bdb['get'](_0x49420d);if(_0x43fa4c){const _0x11398=_0x2bb5b3['get'](_0x43fa4c['userId']),_0x550c06=new G({'author':_0x11398,'type':_0x43fa4c['isAttached']?'add':'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x49420d});_0x50d3de['unshift'](_0x550c06),_0x4befb7['attributes'][_0x49420d]['revisionHistoryAttachChange']=_0x550c06['id'];}_0x4befb7['changes']=_0x4befb7['changes']['concat'](_0x50d3de);}return _0x4befb7;}['_markMarkers'](_0x39e487,_0x8b3337){for(let _0x247b17=0x0;_0x247b17<_0x39e487['length'];_0x247b17++)for(const [_0x8f12fb,_0x16e7db]of _0x8b3337)!_0x16e7db['isCollapsed']&&_0x16e7db['start']['isEqual'](_0x39e487[_0x247b17]['previousPosition'])&&_0x39e487[_0x247b17]['markersStart']['push'](_0x8f12fb),_0x16e7db['end']['isEqual'](_0x39e487[_0x247b17]['nextPosition'])&&_0x39e487[_0x247b17]['markersEnd']['push'](_0x8f12fb);}['_joinTapes'](_0x271aad,_0x2c067b){let _0x2dc5a5=[],_0x1d6f83=0x0,_0x2aad3=0x0;for(;_0x1d6f83<_0x271aad['length']||_0x2aad3<_0x2c067b['length'];){const _0x341575=_0x271aad[_0x1d6f83]||{},_0x3dede8=_0x2c067b[_0x2aad3]||{};if(_0x341575['id']==_0x3dede8['id'])_0x1d6f83++,_0x2aad3++,_0x2dc5a5['push'](_0x341575);else{if(_0x3dede8['isRemoved']&&_0x341575['isAdded']){const {commonTape:_0xed4916,iEnd:_0x5569ac,jEnd:_0xc25a01}=this['_threeWayMerge'](_0x271aad,_0x1d6f83,_0x2c067b,_0x2aad3);_0x2dc5a5=_0x2dc5a5['concat'](_0xed4916),_0x1d6f83=_0x5569ac,_0x2aad3=_0xc25a01;}else _0x3dede8['isRemoved']?(_0x2aad3++,_0x2dc5a5['push'](_0x3dede8)):(_0x1d6f83++,_0x2dc5a5['push'](_0x341575));}}return _0x2dc5a5;}['_markSuggestions'](_0x11de7c,_0x41307e){const _0x35a752=[];for(let _0x4166df=0x0;_0x4166df<_0x11de7c['length'];_0x4166df++){for(let _0x3e791b=0x0;_0x3e791b<_0x11de7c[_0x4166df]['markersStart']['length'];_0x3e791b++){const _0x2eb933=_0x11de7c[_0x4166df]['markersStart'][_0x3e791b];if(!_0x41307e['has'](_0x2eb933))continue;const {group:_0x1cdb34,type:_0x24400f,authorId:_0xd33ebf}=_0x2c2a11(_0x2eb933);'revision-suggestion'!=_0x1cdb34||'insertion'!=_0x24400f&&'deletion'!=_0x24400f||(_0x35a752['unshift']({'type':_0x24400f,'name':_0x2eb933,'userId':_0xd33ebf}),_0x11de7c[_0x4166df]['markersStart']['splice'](_0x3e791b,0x1),_0x3e791b--);}_0xb769da(_0x11de7c[_0x4166df]);for(let _0xd4935b=0x0;_0xd4935b<_0x11de7c[_0x4166df]['markersEnd']['length'];_0xd4935b++){const _0x3d07b5=_0x11de7c[_0x4166df]['markersEnd'][_0xd4935b];if(!_0x41307e['has'](_0x3d07b5))continue;const {group:_0x349746,type:_0x40b3c8}=_0x2c2a11(_0x3d07b5);if('revision-suggestion'!=_0x349746||'insertion'!=_0x40b3c8&&'deletion'!=_0x40b3c8)continue;_0x11de7c[_0x4166df]['markersEnd']['splice'](_0xd4935b,0x1),_0xd4935b--;const _0x431aa8=_0x35a752['findIndex'](_0x270bdd=>_0x270bdd['name']==_0x3d07b5);_0x431aa8>-0x1&&_0x35a752['splice'](_0x431aa8,0x1);}}function _0x2c2a11(_0x10f9f8){const _0x52ff14=_0x10f9f8['split'](':');return{'group':_0x52ff14[0x0],'type':_0x52ff14[0x1],'subType':_0x52ff14['length']>=0x5?_0x52ff14[0x2]:null,'id':_0x52ff14['length']<0x5?_0x52ff14[0x2]:_0x52ff14[0x3],'authorId':_0x52ff14['length']<0x5?_0x52ff14[0x3]:_0x52ff14[0x4],'markerCount':0x6==_0x52ff14['length']?_0x52ff14[0x5]:null};}function _0xb769da(_0x25ad26){for(let _0x8c3b77=0x0;_0x8c3b77<_0x35a752['length'];_0x8c3b77++){if(_0x25ad26['isAdded']&&'insertion'==_0x35a752[_0x8c3b77]['type']&&_0x25ad26['isAdded']['userId']==_0x35a752[_0x8c3b77]['userId'])return _0x25ad26['isAddSuggestion']=_0x35a752[_0x8c3b77],void delete _0x25ad26['isAdded'];if(!_0x25ad26['isAdded']&&!_0x25ad26['isRemoved']&&'deletion'==_0x35a752[_0x8c3b77]['type'])return void(_0x25ad26['isRemoveSuggestion']=_0x35a752[_0x8c3b77]);}}}['_setDistance'](_0xc3bc1d,_0x2c423a){let _0xd95815=0x0,_0x2f9680=!0x1;const _0x235031=new Map();for(const _0x30074d of _0xc3bc1d)_0x30074d[_0x2c423a]?_0x2f9680&&(_0xd95815++,_0x2f9680=!0x1):(_0xd95815++,_0x2f9680=!0x0),_0x235031['set'](_0x30074d['id'],_0xd95815);for(let _0x4ce139=0x0;_0x4ce139<_0xc3bc1d['length'];_0x4ce139++){if('isRemoved'==_0x2c423a&&_0xc3bc1d[_0x4ce139]['isAdded']||'isAdded'==_0x2c423a&&_0xc3bc1d[_0x4ce139]['isRemoved'])continue;if('text'==_0xc3bc1d[_0x4ce139]['type']){_0xc3bc1d[_0x4ce139]['distance']=0x0;continue;}const _0x41d6b6=_0x235031['get'](_0xc3bc1d[_0x4ce139]['pairId']),_0x41345c=_0x235031['get'](_0xc3bc1d[_0x4ce139]['id']);_0xc3bc1d[_0x4ce139]['distance']=_0x41d6b6-_0x41345c;}}['_getRevisionsRange'](_0x2e3df,_0x5d7c90,_0x46ac3e=!0x1){const _0x2dd14c=[];let _0x4ec4d0=this['repository']['getIndex'](_0x2e3df),_0x190b3d=this['repository']['getIndex'](_0x5d7c90);for(-0x1==_0x190b3d&&(_0x190b3d=this['repository']['_revisions']['length'],_0x46ac3e=!0x1);_0x4ec4d0<_0x190b3d;)_0x2dd14c['push'](this['repository']['getRevision'](_0x4ec4d0)),_0x4ec4d0++;return _0x46ac3e&&_0x2dd14c['push'](this['repository']['getRevision'](_0x4ec4d0)),_0x2dd14c;}['_threeWayMerge'](_0x4344ca,_0xbcd40,_0x50ba09,_0x28be8c){const _0x537171=this['editor']['model']['schema'];let _0x1c6249=_0xbcd40;for(;_0x4344ca[_0x1c6249]&&_0x4344ca[_0x1c6249]['isAdded'];)_0x1c6249++;let _0x4007fd=_0x28be8c;for(;_0x50ba09[_0x4007fd]&&_0x50ba09[_0x4007fd]['isRemoved'];)_0x4007fd++;_0x121450(_0x4344ca,_0xbcd40,_0x1c6249),_0x121450(_0x50ba09,_0x28be8c,_0x4007fd);const _0x3d6c67=_0x50ba09['slice'](_0x28be8c,_0x4007fd)['concat'](_0x4344ca['slice'](_0xbcd40,_0x1c6249));return _0x3d6c67['sort']((_0x581b8a,_0x10d782)=>_0x581b8a['side']!=_0x10d782['side']?_0x581b8a['side']-_0x10d782['side']:_0x581b8a['level']!=_0x10d782['level']?_0x581b8a['level']-_0x10d782['level']:_0x581b8a['distance']!=_0x10d782['distance']?_0x10d782['distance']-_0x581b8a['distance']:!!_0x581b8a['isAdded']!=!!_0x10d782['isAdded']?-0x1==_0x581b8a['side']||0x0==_0x581b8a['side']?_0x581b8a['isAdded']?-0x1:0x1:_0x581b8a['isAdded']?0x1:-0x1:_0x581b8a['index']-_0x10d782['index']),{'commonTape':_0x3d6c67,'iEnd':_0x1c6249,'jEnd':_0x4007fd};function _0x121450(_0xb4385f,_0x1a88ea,_0x52d028){let _0x37d23=-0x1,_0x28c5df=Number['POSITIVE_INFINITY'],_0x1db648=!0x0;for(let _0x54146a=_0x1a88ea;_0x54146a<_0x52d028;_0x54146a++)if(_0x537171['isInline'](_0xb4385f[_0x54146a]['item'])||(_0x1db648=!0x1),_0xb4385f[_0x54146a]['item']['startIndex']<_0x1a88ea&&(_0x37d23=_0x54146a),_0xb4385f[_0x54146a]['item']['endIndex']>=_0x52d028){_0x28c5df=_0x54146a;break;}_0x1db648&&(_0x37d23=_0x52d028-0x1);for(let _0x1cc073=_0x1a88ea;_0x1cc073<_0x52d028;_0x1cc073++)_0xb4385f[_0x1cc073]['side']=_0x1cc073<=_0x37d23?-0x1:_0x1cc073<_0x28c5df?0x0:0x1,_0xb4385f[_0x1cc073]['index']=_0x1cc073;let _0x15ad61=0x0;for(let _0x25b7f6=_0x1a88ea;_0x25b7f6<=_0x37d23;_0x25b7f6++)0x0==_0xb4385f[_0x25b7f6]['distance']?_0xb4385f[_0x25b7f6]['level']=_0x15ad61:(_0x15ad61++,_0xb4385f[_0x25b7f6]['level']=_0x15ad61,_0x15ad61++);for(let _0x54c01b=_0x1a88ea;_0x54c01b<_0x52d028;_0x54c01b++)0x0==_0xb4385f[_0x54c01b]['side']&&(_0xb4385f[_0x54c01b]['level']=_0x15ad61);_0x15ad61=0x0;for(let _0x129567=_0x52d028-0x1;_0x129567>=_0x28c5df;_0x129567--)0x0==_0xb4385f[_0x129567]['distance']?_0xb4385f[_0x129567]['level']=_0x15ad61:(_0x15ad61--,_0xb4385f[_0x129567]['level']=_0x15ad61,_0x15ad61--);}}['_fixObsoleteTags'](_0x44489f){const _0x395f09=new Map(),_0x1c92a4=this['editor']['model']['schema'];for(let _0x3656cd=0x1;_0x3656cd<_0x44489f['length'];_0x3656cd++){let _0x2fb299,_0x285de3,_0x1b5c3d;const _0x6e60e9=_0x44489f[_0x3656cd],_0x3a7560=_0x44489f[_0x3656cd-0x1];if('text'==_0x6e60e9['type'])continue;if(_0x6e60e9['type']!=_0x3a7560['type'])continue;if(!_0x1c92a4['isBlock'](_0x3a7560['item'])||_0x1c92a4['isLimit'](_0x3a7560['item']))continue;if(!_0x1c92a4['isBlock'](_0x6e60e9['item'])||_0x1c92a4['isLimit'](_0x6e60e9['item']))continue;if((_0x44489f[_0x3656cd]['isAdded']||_0x44489f[_0x3656cd]['isAddSuggestion'])&&_0x44489f[_0x3656cd-0x1]['isRemoved'])_0x2fb299=_0x44489f[_0x3656cd],_0x285de3=_0x44489f[_0x3656cd-0x1],_0x1b5c3d=_0x3656cd-0x1;else{if(!_0x44489f[_0x3656cd]['isRemoved']||!_0x44489f[_0x3656cd-0x1]['isAdded']&&!_0x44489f[_0x3656cd-0x1]['isAddSuggestion'])continue;_0x2fb299=_0x44489f[_0x3656cd-0x1],_0x285de3=_0x44489f[_0x3656cd],_0x1b5c3d=_0x3656cd;}const _0x516fba=_0x2fb299['level']==_0x285de3['level'],_0x2440de=Math['abs'](_0x2fb299['level'])<Math['abs'](_0x285de3['level'])&&0x0==_0x285de3['distance'];(_0x516fba||_0x2440de)&&(_0x395f09['set'](_0x285de3['id'],_0x2fb299['id']),_0x44489f['splice'](_0x1b5c3d,0x1),_0x3656cd--,_0x2fb299['isAdded']=!0x1);}for(let _0x3a1473=0x0;_0x3a1473<_0x44489f['length'];_0x3a1473++)_0x395f09['has'](_0x44489f[_0x3a1473]['pairId'])&&(_0x44489f[_0x3a1473]['pairId']=_0x395f09['get'](_0x44489f[_0x3a1473]['pairId']));}['_removeMissingPairs'](_0x2a6a49){const _0x4dd1eb=new Set(_0x2a6a49['map'](_0xad0bab=>_0xad0bab['id']));for(let _0x149c87=0x0;_0x149c87<_0x2a6a49['length'];_0x149c87++)_0x4dd1eb['has'](_0x2a6a49[_0x149c87]['pairId'])||0x0==_0x2a6a49[_0x149c87]['distance']||(_0x2a6a49[_0x149c87]['isIncorrect']=!0x0);return _0x2a6a49['filter'](_0x23dda7=>!_0x23dda7['isIncorrect']);}['_markMismatchedRemovedTags'](_0x29a799){const _0x2f0677=new Set();for(let _0x4f595f=0x0;_0x4f595f<_0x29a799['length'];_0x4f595f++){if(_0x2f0677['has'](_0x29a799[_0x4f595f]['id'])&&_0x29a799[_0x4f595f]['isRemoved']&&(_0x29a799[_0x4f595f]['isIncorrect']=!0x0),_0x29a799[_0x4f595f]['isIncorrect'])continue;if(0x0==_0x29a799[_0x4f595f]['distance'])continue;if('elementStart'!=_0x29a799[_0x4f595f]['type'])continue;if(null==_0x29a799[_0x4f595f]['pairId'])continue;let _0x22eef9=_0x4f595f+0x1,_0x1f8ed1=0x0;for(;_0x29a799[_0x22eef9]['id']!=_0x29a799[_0x4f595f]['pairId'];)'elementStart'==_0x29a799[_0x22eef9]['type']?_0x1f8ed1++:'elementEnd'==_0x29a799[_0x22eef9]['type']&&_0x1f8ed1--,_0x22eef9++;if(0x0!=_0x1f8ed1){if(_0x29a799[_0x4f595f]['isRemoved'])_0x29a799[_0x4f595f]['isIncorrect']=!0x0;else{for(;_0x22eef9!=_0x4f595f;)_0x29a799[_0x22eef9]['isRemoved']&&0x0!=_0x29a799[_0x22eef9]['distance']&&(_0x29a799[_0x22eef9]['isIncorrect']=!0x0,_0x2f0677['add'](_0x29a799[_0x22eef9]['pairId'])),_0x22eef9--;}}}return _0x29a799['filter'](_0x423b59=>!_0x423b59['isIncorrect']);}['_removeUnsupportedChanges'](_0x391c98){const _0x310507=this['editor']['model']['schema'];for(let _0x2d9009=0x0;_0x2d9009<_0x391c98['length'];_0x2d9009++){if(!(_0x391c98[_0x2d9009]['isAdded']||_0x391c98[_0x2d9009]['isAddSuggestion']||_0x391c98[_0x2d9009]['isRemoved']||_0x391c98[_0x2d9009]['isRemoveSuggestion']))continue;if(0x0==_0x391c98[_0x2d9009]['distance'])continue;const _0x311f90=_0x391c98[_0x2d9009]['item'];_0x310507['isBlock'](_0x311f90)||_0x310507['isLimit'](_0x311f90)||(_0x391c98[_0x2d9009]['isAdded']&&delete _0x391c98[_0x2d9009]['isAdded'],_0x391c98[_0x2d9009]['isAddSuggestion']&&delete _0x391c98[_0x2d9009]['isAddSuggestion'],_0x391c98[_0x2d9009]['isRemoveSuggestion']&&delete _0x391c98[_0x2d9009]['isRemoveSuggestion'],_0x391c98[_0x2d9009]['isRemoved']&&(_0x391c98[_0x2d9009]['isIncorrect']=!0x0));}return _0x391c98['filter'](_0x884536=>!_0x884536['isIncorrect']);}['_makeModelFromTape'](_0x7c567c,_0x140c00,_0x910e21){const _0x167e44=new _0x481124(),_0x131ca9=[],_0xe7281c=new Map(),_0x3ae03a=this['editor']['model'],_0x1f79cf=_0x3ae03a['schema'],_0x5b6cd8=[_0x167e44],_0xe19417={},_0x55aea0={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x490608=null;const _0x4f7ba8=[0x0];for(let _0x5a2ed3=0x0;_0x5a2ed3<_0x7c567c['length'];_0x5a2ed3++)if('elementStart'===_0x7c567c[_0x5a2ed3]['type']){_0x7c567c[_0x5a2ed3]['previousPosition']=_0x3ae03a['createPositionFromPath'](_0x167e44,_0x4f7ba8);const _0x32703b=new _0x7079dc(_0x7c567c[_0x5a2ed3]['item']['name'],_0x7c567c[_0x5a2ed3]['item']['getAttributes']());_0x5b6cd8[0x0]['_appendChild'](_0x32703b),_0x4f7ba8['push'](0x0),_0x5b6cd8['unshift'](_0x32703b),_0x7c567c[_0x5a2ed3]['nextPosition']=_0x3ae03a['createPositionFromPath'](_0x167e44,_0x4f7ba8);}else'elementEnd'===_0x7c567c[_0x5a2ed3]['type']?(_0x5b6cd8['shift'](),_0x7c567c[_0x5a2ed3]['previousPosition']=_0x3ae03a['createPositionFromPath'](_0x167e44,_0x4f7ba8),_0x4f7ba8['pop'](),_0x4f7ba8[_0x4f7ba8['length']-0x1]++,_0x7c567c[_0x5a2ed3]['nextPosition']=_0x3ae03a['createPositionFromPath'](_0x167e44,_0x4f7ba8)):(_0x7c567c[_0x5a2ed3]['previousPosition']=_0x3ae03a['createPositionFromPath'](_0x167e44,_0x4f7ba8),_0x490608?_0x490608['_data']+=_0x7c567c[_0x5a2ed3]['item']['data']:_0x490608=new _0x12ab3d(_0x7c567c[_0x5a2ed3]['item']['data'],_0x7c567c[_0x5a2ed3]['item']['getAttributes']()),_0x7c567c[_0x5a2ed3+0x1]&&'text'===_0x7c567c[_0x5a2ed3+0x1]['type']&&_0x2937b5(_0x490608,_0x7c567c[_0x5a2ed3+0x1]['item'])||(_0x5b6cd8[0x0]['_appendChild'](_0x490608),_0x490608=null),_0x4f7ba8[_0x4f7ba8['length']-0x1]+=_0x7c567c[_0x5a2ed3]['item']['offsetSize'],_0x7c567c[_0x5a2ed3]['nextPosition']=_0x3ae03a['createPositionFromPath'](_0x167e44,_0x4f7ba8));for(let _0x599c50=0x0;_0x599c50<_0x7c567c['length'];_0x599c50++){const _0x495d8f=_0x7c567c[_0x599c50]['previousPosition'],_0xde08de=_0x7c567c[_0x599c50]['nextPosition'];for(const _0x4df3a5 of _0x7c567c[_0x599c50]['markersStart'])_0xe7281c['set'](_0x4df3a5,{'start':_0x495d8f,'end':null});_0x18a191('isRemoveSuggestion',_0x599c50,_0x495d8f,_0xde08de),_0x18a191('isAddSuggestion',_0x599c50,_0x495d8f,_0xde08de),_0x18a191('isRemoved',_0x599c50,_0x495d8f,_0xde08de),_0x18a191('isAdded',_0x599c50,_0x495d8f,_0xde08de);for(const _0x1343bd of _0x7c567c[_0x599c50]['markersEnd']){const _0x197f68=_0xe7281c['get'](_0x1343bd);_0x197f68?_0x197f68['end']=_0xde08de:_0xe7281c['set'](_0x1343bd,{'start':_0xde08de,'end':_0xde08de});}}for(const [_0x113f9e,_0x1189f8]of _0xe7281c){const _0x469228=this['editor']['model']['createRange'](_0x1189f8['start'],_0x1189f8['end']);_0x167e44['markers']['set'](_0x113f9e,_0x469228);}return _0x131ca9['sort']((_0x1f11c8,_0x4a3e4c)=>{const _0x3855fd=_0x167e44['markers']['get']('revision:'+_0x1f11c8['id']),_0xc847a1=_0x167e44['markers']['get']('revision:'+_0x4a3e4c['id']);return _0x3855fd['start']['isBefore'](_0xc847a1['start'])?-0x1:_0x3855fd['start']['isAfter'](_0xc847a1['start'])?0x1:_0x3855fd['end']['isBefore'](_0xc847a1['end'])?-0x1:_0x3855fd['end']['isAfter'](_0xc847a1['end'])?0x1:'add'===_0x1f11c8['type']?-0x1:0x1;}),{'root':_0x167e44,'changes':_0x131ca9};function _0x18a191(_0x5bb784,_0x3e0030,_0x534e4c,_0x51e67a){const _0x362efe=!!_0x7c567c[_0x3e0030][_0x5bb784],_0x44a666=_0x362efe?_0x7c567c[_0x3e0030][_0x5bb784]['userId']:null,_0x2f60b0=_0x3e0030===_0x7c567c['length']-0x1,_0x3cb747=_0x55aea0[_0x5bb784][0x0],_0x27cd11=_0x1f79cf['isObject'](_0x7c567c[_0x3e0030]['item']);!_0xe19417[_0x5bb784]&&_0x362efe?_0xe19417[_0x5bb784]={'start':_0x534e4c,'tapeItem':_0x7c567c[_0x3e0030],'userId':_0x44a666,'type':_0x5bb784}:_0xe19417[_0x5bb784]&&!_0x362efe?(_0xe19417[_0x5bb784]['end']=_0x534e4c,_0x3e3274(_0xe19417[_0x5bb784]),_0xe19417[_0x5bb784]=null):_0xe19417[_0x5bb784]&&_0x362efe&&_0xe19417[_0x5bb784]['userId']!==_0x44a666&&(_0xe19417[_0x5bb784]['end']=_0x534e4c,_0x3cb747&&_0x3cb747['userId']===_0xe19417[_0x5bb784]['userId']||_0x3e3274(_0xe19417[_0x5bb784]),_0xe19417[_0x5bb784]={'start':_0x534e4c,'tapeItem':_0x7c567c[_0x3e0030],'userId':_0x44a666,'type':_0x5bb784}),_0xe19417[_0x5bb784]&&_0x27cd11&&('elementStart'!==_0x7c567c[_0x3e0030]['type']||_0x3cb747&&_0x3cb747['userId']===_0x44a666||_0x55aea0[_0x5bb784]['unshift']({'userId':_0x44a666,'object':_0x7c567c[_0x3e0030]['item'],'change':_0xe19417[_0x5bb784]}),'elementEnd'===_0x7c567c[_0x3e0030]['type']&&_0x3cb747&&_0x3cb747['object']===_0x7c567c[_0x3e0030]['item']&&(_0x55aea0[_0x5bb784]['shift'](),_0xe19417[_0x5bb784]=_0x3cb747['change'])),_0xe19417[_0x5bb784]&&_0x2f60b0&&(_0xe19417[_0x5bb784]['end']=_0x51e67a,_0x3e3274(_0xe19417[_0x5bb784]),_0xe19417[_0x5bb784]=null);}function _0x3e3274({start:_0x503188,end:_0x315853,tapeItem:_0xf542d6,userId:_0x2d3794,type:_0x4171d2}){const _0x487d13=_0xf542d6['item'],_0x381bb1=_0x3ae03a['schema']['isBlock'](_0x487d13)&&!_0x3ae03a['schema']['isLimit'](_0x487d13),_0x244660=_0x503188['nodeAfter']==_0x315853['parent']&&_0x315853['isAtStart'];if(_0x381bb1&&_0x244660)return;const _0x30a80a=_0x3ae03a['createRange'](_0x503188,_0x315853),_0x215945=_0x140c00['get'](_0x2d3794),_0xf5ab20=new G({'author':_0x215945,'type':'isAdded'==_0x4171d2||'isAddSuggestion'==_0x4171d2?'add':'remove','data':{'isSuggestion':'isAddSuggestion'==_0x4171d2||'isRemoveSuggestion'==_0x4171d2},'createdAt':new Date(),'rootName':_0x910e21});_0x131ca9['push'](_0xf5ab20),_0x167e44['markers']['set']('revision:'+_0xf5ab20['id'],_0x30a80a);}function _0x2937b5(_0x55852a,_0x189a14){const _0x384b17=_0x55852a['getAttributes'](),_0x524f01=_0x189a14['getAttributes']();for(const _0x4d1978 of _0x384b17){if(_0x4d1978[0x1]!==_0x189a14['getAttribute'](_0x4d1978[0x0]))return!0x1;_0x524f01['next']();}return _0x524f01['next']()['done'];}}['_setConversion'](){this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision','view':_0x2c72e8=>{const _0x55ebd7=_0x2c72e8['markerName']['split'](':')[0x1],_0x428518=this['_getChangeFromId'](_0x55ebd7);if(!_0x428518)return null;const _0x325679='add'==_0x428518['type']?'insertion':'deletion',_0x3ca952=['ck-suggestion-marker','ck-suggestion-marker-'+_0x325679];return _0x428518['data']['isSuggestion']&&_0x3ca952['push']('ck-suggestion-marker-'+_0x325679+'-new'),this['activeChange']==_0x428518&&_0x3ca952['push']('ck-suggestion-marker--active'),{'classes':_0x3ca952,'attributes':{'data-change-id':_0x55ebd7}};}}),this['editor']['conversion']['for']('upcast')['add'](_0x1aa3a9=>{_0x1aa3a9['on']('element:pre',(_0x509072,_0xc829ce,_0x54ab3b)=>{const _0x4eed28=_0xc829ce['viewItem']['getChild'](0x0);if(!_0x4eed28||!_0x4eed28['is']('element','code'))return;if(!_0x54ab3b['consumable']['consume'](_0x4eed28,{'attributes':['vid_start','vid_end']}))return;const _0x36a387=_0xc829ce['modelRange']['start']['nodeAfter'];_0x54ab3b['writer']['setAttribute']('vid_start',_0x4eed28['getAttribute']('vid_start'),_0x36a387),_0x54ab3b['writer']['setAttribute']('vid_end',_0x4eed28['getAttribute']('vid_end'),_0x36a387);},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['add'](_0x1d016b=>{_0x1d016b['on']('element',(_0x5dae18,_0x3c7edc,_0x494079)=>{if(!_0x494079['consumable']['consume'](_0x3c7edc['viewItem'],{'attributes':['vid_start','vid_end']}))return;if(_0x3c7edc['modelRange']['isCollapsed'])return;const _0x6e79cb=_0x3c7edc['modelRange']['start']['nodeAfter'];_0x6e79cb['hasAttribute']('vid_start')||_0x6e79cb['hasAttribute']('vid')||(_0x494079['writer']['setAttribute']('vid_start',_0x3c7edc['viewItem']['getAttribute']('vid_start'),_0x6e79cb),_0x494079['writer']['setAttribute']('vid_end',_0x3c7edc['viewItem']['getAttribute']('vid_end'),_0x6e79cb));},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['elementToAttribute']({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0x571cf0=>_0x571cf0['getAttribute']('vid')}}),this['editor']['model']['schema']['on']('checkAttribute',(_0x842d9,[,_0x282fa5])=>{['vid_start','vid_end','vid']['includes'](_0x282fa5)&&(_0x842d9['return']=!0x0,_0x842d9['stop']());},{'priority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['add'](_0xc441e2=>{_0xc441e2['on']('attribute:vid',(_0x49e986,_0x471ef,_0x3a42f1)=>{if('\x20'!=_0x471ef['item']['data']||_0x471ef['item']['parent']['maxOffset']>0x1)return;if(!_0x3a42f1['consumable']['consume'](_0x471ef['item'],_0x49e986['name']))return;const _0x500175=_0x3a42f1['writer'],_0x12f535=_0x3a42f1['mapper']['toViewRange'](_0x471ef['range']);_0x500175['wrap'](_0x12f535,_0x500175['createAttributeElement']('span'));});}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',function(_0x512e3a){const _0x5f276e=_0x512e3a['plugins']['get']('RevisionViewer');return(_0x3df6ea,_0x298938,_0x5e76ae)=>{const _0x21f1a5=_0x298938['markerName']['split'](':')[0x1],_0x3e7d2b=_0x5f276e['_getChangeFromId'](_0x21f1a5);if(!_0x3e7d2b)return null;const _0x17398f='add'==_0x3e7d2b['type']?'split':'merge';if(!_0x5e76ae['consumable']['test'](_0x298938['markerRange'],_0x3df6ea['name']))return;const _0x3cbf16=_0x298938['markerRange']['getWalker'](),_0x57436a=_0x298938['markerRange']['start'],_0x1ebd3b=_0x512e3a['model']['schema'];let _0x301fe8=null,_0x1c78f9=null,_0x4877a5=!0x1,_0x566069=!0x1;for(const _0x42ad2c of _0x3cbf16){const _0x2a92a4=_0x42ad2c['item'];_0x4877a5=_0x4877a5||_0x1ebd3b['isContent'](_0x2a92a4);const _0x19981d=_0x5e76ae['mapper']['toViewElement'](_0x2a92a4);if(_0x19981d&&_0x19981d['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x42ad2c['type']&&(_0x1ebd3b['isBlock'](_0x2a92a4)&&!_0x1ebd3b['isLimit'](_0x2a92a4)&&(_0x2a92a4['nextSibling']||_0x57436a['isAtEnd']?_0x301fe8&&_0x301fe8['parent']==_0x2a92a4||(_0x301fe8=_0x2a92a4,_0x133166(_0x42ad2c['previousPosition']),_0x566069=!0x0):_0x1c78f9=_0x1c78f9||_0x42ad2c['previousPosition']));}function _0x133166(_0x23f33a){const _0x34dc0c=_0x5e76ae['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x17398f}),_0x5755b2=_0x5e76ae['mapper']['toViewPosition'](_0x23f33a);_0x3e7d2b['data']['isSuggestion']&&_0x5e76ae['writer']['addClass']('ck-suggestion-marker-'+_0x17398f+'-new',_0x34dc0c),_0x5f276e['activeChange']==_0x3e7d2b&&_0x5e76ae['writer']['addClass']('ck-suggestion-marker--active',_0x34dc0c),_0x5e76ae['writer']['insert'](_0x5755b2,_0x34dc0c),_0x5e76ae['mapper']['bindElementToMarker'](_0x34dc0c,_0x298938['markerName']);}_0x4877a5||_0x566069||!_0x1c78f9||_0x133166(_0x1c78f9);};}(this['editor']),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision',(_0x5dd2fc,_0xee5d18,_0x2c53c5)=>{const _0xaa209=_0x2c53c5['mapper']['markerNameToElements'](_0xee5d18['markerName']);if(_0xaa209){for(const _0x48ba45 of _0xaa209)(_0x48ba45['hasClass']('ck-suggestion-marker-split')||_0x48ba45['hasClass']('ck-suggestion-marker-merge'))&&(_0x2c53c5['mapper']['unbindElementFromMarkerName'](_0x48ba45,_0xee5d18['markerName']),_0x2c53c5['writer']['remove'](_0x48ba45));}},{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',(_0x1ec9cc,_0x32bcc9,_0x27e617)=>{const _0x3fc9a6=_0x32bcc9['markerName']['split'](':')[0x1],_0x287118=this['_getChangeFromId'](_0x3fc9a6);if(!_0x287118)return null;const _0x2bd1e8='add'==_0x287118['type']?'split':'merge';if(_0x27e617['consumable']['test'](_0x32bcc9['markerRange'],_0x1ec9cc['name']))for(const _0x15bcf9 of _0x32bcc9['markerRange']['getItems']()){if(!_0x15bcf9['is']('element','softBreak'))continue;const _0x64c276=_0x27e617['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x2bd1e8}),_0x52537b=_0x27e617['mapper']['toViewPosition'](this['editor']['model']['createPositionBefore'](_0x15bcf9));_0x287118['data']['isSuggestion']&&_0x27e617['writer']['addClass']('ck-suggestion-marker-'+_0x2bd1e8+'-new',_0x64c276),this['activeChange']==_0x287118&&_0x27e617['writer']['addClass']('ck-suggestion-marker--active',_0x64c276),_0x27e617['writer']['insert'](_0x52537b,_0x64c276),_0x27e617['mapper']['bindElementToMarker'](_0x64c276,_0x32bcc9['markerName']);}},{'priority':'high'}),this['editor']['model']['document']['on']('change',()=>{this['editor']['editing']['view']['change'](_0x6f1263=>{for(const _0x5e72cb of this['editor']['model']['document']['getRootNames']()){const _0x1fe283=this['editor']['model']['document']['getRoot'](_0x5e72cb),_0x5cb6cb=this['editor']['editing']['view']['document']['getRoot'](_0x5e72cb);if(_0x5cb6cb){const _0xbb72ec=_0x1fe283['getAttribute']('revisionHistoryAttachChange');if(_0x6f1263['removeAttribute']('data-change-id',_0x5cb6cb),_0x6f1263['removeClass']('ck-revision-history-root-add',_0x5cb6cb),_0x6f1263['removeClass']('ck-revision-history-root-remove',_0x5cb6cb),_0x6f1263['removeClass']('ck-revision-history-root--active',_0x5cb6cb),_0xbb72ec){const _0x163184=this['_getChangeFromId'](_0xbb72ec);if(!_0x163184)return null;_0x6f1263['setAttribute']('data-change-id',_0xbb72ec,_0x5cb6cb),_0x6f1263['addClass']('ck-revision-history-root-'+_0x163184['type'],_0x5cb6cb),this['activeChange']==_0x163184&&_0x6f1263['addClass']('ck-revision-history-root--active',_0x5cb6cb);}}}});}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'comment','model':_0x47d19f=>'revision-comment:'+_0x47d19f,'converterPriority':'highest'}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion','model':_0x39f3f1=>'revision-suggestion:'+_0x39f3f1,'converterPriority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision-suggestion','view':_0x1deba6=>({'name':'suggestion:'+_0x1deba6,'group':'revision-suggestion'}),'converterPriority':'highest'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision-suggestion','view':_0x2fef58=>{const _0x2bf793=_0x2fef58['markerName']['split'](':')[0x1];return'insertion'!=_0x2bf793&&'deletion'!=_0x2bf793?null:{'classes':['ck-suggestion-preview-marker','ck-suggestion-preview-marker-'+_0x2bf793]};}}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:deletion',Q(this['editor'],'merge'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:insertion',Q(this['editor'],'split'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision-suggestion',(_0x2d8eb9,_0x1451f9,_0x333d2e)=>{const _0x501eaf=_0x333d2e['mapper']['markerNameToElements'](_0x1451f9['markerName']);if(_0x501eaf){for(const _0x210e09 of _0x501eaf)_0x210e09['is']('uiElement')&&(_0x333d2e['mapper']['unbindElementFromMarkerName'](_0x210e09,_0x1451f9['markerName']),_0x333d2e['writer']['remove'](_0x210e09));}},{'priority':'high'});}['_getChangeFromId'](_0x1c4216){return this['_changeIdToChange']['get'](_0x1c4216);}['_getViewForChange'](_0x339297){return this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=new z(this['editor']['locale'],_0x339297),this['_changeView'];}['_initInteractions'](){this['editor']['model']['document']['selection']['observeMarkers']('revision'),this['on']('change:activeView',(_0xa536c1,_0x15383b,_0x2268f4,_0x50adcc)=>{_0x50adcc&&this['_balloon']['remove'](_0x50adcc),_0x2268f4&&(this['_balloon']['add']({'view':_0x2268f4,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0x1e53c8=this['editor']['editing'],_0x8e018=this['_getChangeFromId'](_0x2268f4['changeId']);let _0x2800be;if(_0x8e018['data']['isOnRoot']){const _0x2aad6c=_0x1e53c8['view']['getDomRoot'](_0x8e018['rootName']);_0x2800be=Array['from'](_0x2aad6c['getClientRects']());}else{const _0x530bb7=this['editor']['model']['markers']['get']('revision:'+_0x2268f4['changeId']);_0x2800be=Array['from'](_0x1e53c8['mapper']['markerNameToElements'](_0x530bb7['name']))['map'](_0x41eff7=>_0x1e53c8['view']['domConverter']['mapViewToDom'](_0x41eff7))['map'](_0x123625=>Array['from'](_0x123625['getClientRects']()))['flat']();}if(!this['_activeViewTarget'])return _0x2800be[0x0];return _0x2800be['find'](_0x4d444c=>_0x4d444c['top']-0x3<=this['_activeViewTarget']['y']&&_0x4d444c['bottom']+0x3>=this['_activeViewTarget']['y']&&_0x4d444c['left']-0x3<=this['_activeViewTarget']['x']&&_0x4d444c['right']+0x3>=this['_activeViewTarget']['x'])||_0x2800be[0x0];}}}),this['_balloon']['showStack']('revisionHistoryLabel'));}),this['on']('change:activeChange',(_0x5ddfc2,_0x26cfd7,_0x3ac0d4,_0x433adb)=>{this['activeView']=_0x3ac0d4?this['_getViewForChange'](_0x3ac0d4):null,this['editor']['model']['change'](()=>{const _0x48cda6=this['editor']['editing'];_0x433adb&&(_0x433adb['data']['isOnRoot']?_0x48cda6['view']['change'](_0x5e2589=>{_0x5e2589['removeClass']('ck-revision-history-root--active',_0x48cda6['view']['document']['getRoot'](_0x433adb['rootName']));}):_0x48cda6['reconvertMarker']('revision:'+_0x433adb['id'])),_0x3ac0d4&&(_0x3ac0d4['data']['isOnRoot']?_0x48cda6['view']['change'](_0xbb4635=>{_0xbb4635['addClass']('ck-revision-history-root--active',_0x48cda6['view']['document']['getRoot'](_0x3ac0d4['rootName']));}):_0x48cda6['reconvertMarker']('revision:'+_0x3ac0d4['id']));});}),this['listenTo'](this['editor']['editing']['view']['document'],'mouseover',(_0x3c4404,_0x2140b8)=>{if(this['activeChange'])return;const _0x281664=this['_findChangeIdFromDomTarget'](_0x2140b8['target']),_0x268034=this['_changeIdToChange']['get'](_0x281664);_0x268034?(this['_activeViewTarget']={'x':_0x2140b8['domEvent']['x'],'y':_0x2140b8['domEvent']['y']},this['activeView']=this['_getViewForChange'](_0x268034)):(this['_activeViewTarget']=null,this['activeView']=null);}),this['listenTo'](this['editor']['editing']['view']['document'],'mousedown',(_0x4f66ab,_0x49ef48)=>{const _0x1521fb=this['_findChangeIdFromDomTarget'](_0x49ef48['target']),_0x5b52f2=this['_changeIdToChange']['get'](_0x1521fb);_0x5b52f2?(this['_activeViewTarget']={'x':_0x49ef48['domEvent']['x'],'y':_0x49ef48['domEvent']['y']},_0x5b52f2===this['activeChange']?this['_balloon']['updatePosition']():this['activeChange']=_0x5b52f2):(this['_activeViewTarget']=null,this['activeChange']=null);});}['_findChangeIdFromDomTarget'](_0x500bcd){do{const _0x1ca6e3=_0x500bcd['getAttribute']('data-change-id');if(_0x1ca6e3)return _0x1ca6e3;_0x500bcd=_0x500bcd['parent'];}while(_0x500bcd);return null;}['_cleanMarkers'](){this['editor']['model']['change'](_0x1f9336=>{for(const _0x25e25c of this['editor']['model']['markers'])_0x1f9336['removeMarker'](_0x25e25c);});}}function Q(_0xdeb6eb,_0xf3bff){return(_0x5c6443,_0x22556b,_0x3dd8bb)=>{if(!_0x3dd8bb['consumable']['test'](_0x22556b['markerRange'],_0x5c6443['name']))return;const _0x2cd079=_0x22556b['markerRange']['getWalker'](),_0x533e46=_0x22556b['markerRange']['start'],_0x2e0cec=_0xdeb6eb['model']['schema'];let _0x52f500=null,_0x11e135=null,_0x282fae=!0x1,_0x11db1d=!0x1;for(const _0x4308b6 of _0x2cd079){const _0x387ce4=_0x4308b6['item'];_0x282fae=_0x282fae||_0x2e0cec['isContent'](_0x387ce4);const _0x4d4695=_0x3dd8bb['mapper']['toViewElement'](_0x387ce4);if(_0x4d4695&&_0x4d4695['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x4308b6['type']&&(_0x2e0cec['isBlock'](_0x387ce4)&&!_0x2e0cec['isLimit'](_0x387ce4)&&(_0x387ce4['nextSibling']||_0x533e46['isAtEnd']?_0x52f500&&_0x52f500['parent']==_0x387ce4||(_0x52f500=_0x387ce4,_0xeb402d(_0x4308b6['previousPosition']),_0x11db1d=!0x0):_0x11e135=_0x11e135||_0x4308b6['previousPosition']));}function _0xeb402d(_0x52f3c6){const _0x586665=_0x3dd8bb['mapper']['toViewPosition'](_0x52f3c6),_0x15f829=_0x3dd8bb['writer']['createUIElement']('span',{'class':'ck-suggestion-preview-marker-'+_0xf3bff});_0x3dd8bb['writer']['insert'](_0x586665,_0x15f829),_0x3dd8bb['mapper']['bindElementToMarker'](_0x15f829,_0x22556b['markerName']);}_0x282fae||_0x11db1d||!_0x11e135||_0xeb402d(_0x11e135);};}class nt extends _0x200a29{constructor(_0x344c21){super(_0x344c21);const _0x24b168=_0x344c21['plugins']['get'](u);this['affectsData']=!0x1,this['listenTo'](_0x24b168,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x24b168,'change:isEnabled',()=>this['refresh']());}['execute'](){const _0x5add1b=this['editor'],_0x398242=_0x5add1b['plugins']['get'](u),_0x1476d2=_0x398242['isReady']?_0x398242['diff']['newRevisionId']:null;_0x5add1b['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x1476d2);}['refresh'](){const {isReady:_0x4427f6,isEnabled:_0x22b08e,repository:_0x1ccf84,diff:_0x4fbc5d}=this['editor']['plugins']['get'](u),_0x345525=_0x4fbc5d&&_0x1ccf84['getLaterVisibleRevision'](_0x4fbc5d['newRevisionId']);this['isEnabled']=_0x4427f6&&_0x22b08e&&Boolean(_0x345525);}}class ot extends _0x200a29{['_step'];constructor(_0x4a2a32,{direction:_0x1b2248}){super(_0x4a2a32);const _0x53ce91=_0x4a2a32['plugins']['get'](u);this['affectsData']=!0x1,this['_step']='forward'===_0x1b2248?0x1:-0x1,this['listenTo'](_0x53ce91,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x53ce91,'change:isEnabled',()=>this['refresh']()),this['listenTo'](_0x53ce91,'change:activeChange',()=>this['refresh']());}['execute'](){const _0x3d076e=this['editor'],_0x31f739=_0x3d076e['plugins']['get'](u),{isNavigationMode:_0x50e295,currentChangeNumber:_0x4f865f}=_0x31f739;let _0x1ceda1;if(_0x31f739['activeChange']=_0x50e295?_0x31f739['diff']['changes']['get'](_0x4f865f+this['_step']):_0x31f739['diff']['changes']['first'],_0x31f739['activeChange']['data']['isOnRoot'])_0x1ceda1=_0x3d076e['editing']['view']['getDomRoot'](_0x31f739['activeChange']['rootName']);else{const _0xcdb398=_0x3d076e['model']['markers']['get']('revision:'+_0x31f739['activeChange']['id']);_0x1ceda1=_0x2eecc3(_0x3d076e['editing'],_0xcdb398);}_0x10073c({'target':_0x1ceda1,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0x3d3d2a,currentChangeNumber:_0x558d95,numberOfChanges:_0x2f5c42,isReady:_0x1f6018,isEnabled:_0x56b449}=this['editor']['plugins']['get'](u);this['isEnabled']=!!(_0x56b449&&_0x1f6018&&_0x2f5c42)&&(!_0x3d3d2a||(0x1===this['_step']?_0x558d95<_0x2f5c42-0x1:_0x558d95>0x0));}}class pi extends _0x59b9b3{constructor(_0x1f5bc5){super(_0x1f5bc5);const _0x3d9c46=this['bindTemplate'],_0x4a86a6=new _0x195746(_0x1f5bc5),_0x2d3568=new _0x195746(_0x1f5bc5);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',(_0x11e896,_0x10e5f9)=>_0x11e896&&_0x10e5f9>0x0),this['bind']('_statusText')['to'](this,'isReady',this,'currentChangeNumber',this,'numberOfChanges',this,'isNavigationMode',(_0x20212d,_0x2e35cc,_0x5aeeb5,_0x152b89)=>{if(!_0x20212d)return m(_0x1f5bc5,'Loading...');if(!_0x5aeeb5)return m(_0x1f5bc5,'No\x20changes');const _0x15b4dc=m(_0x1f5bc5,'NUMBER_OF_CHANGES',_0x5aeeb5);return _0x152b89?m(_0x1f5bc5,'X_OF_Y_CHANGES',[_0x2e35cc+0x1,_0x5aeeb5]):_0x15b4dc;}),_0x4a86a6['set']({'label':m(_0x1f5bc5,'Show\x20previous\x20change'),'tooltip':!0x0,'icon':_0x1a8c59}),_0x2d3568['set']({'label':m(_0x1f5bc5,'Show\x20next\x20change'),'tooltip':!0x0,'icon':_0x479eb4}),_0x4a86a6['bind']('isEnabled')['to'](this,'isBackwardNavigationEnabled'),_0x2d3568['bind']('isEnabled')['to'](this,'isForwardNavigationEnabled'),_0x4a86a6['on']('execute',()=>this['fire']('execute','backward')),_0x2d3568['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',_0x3d9c46['if']('_isStatusLabelVisible','ck-hidden',_0x45846e=>!_0x45846e)]},'children':[{'text':_0x3d9c46['to']('isNavigationMode',_0x195aa2=>_0x195aa2?m(_0x1f5bc5,'EDIT_X_OF_Y_REVISIONS')+':\x20':m(_0x1f5bc5,'Total')+':\x20')}]},{'text':_0x3d9c46['to']('_statusText')}]},new _0x2e1307(),{'tag':'div','attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0x4a86a6,_0x2d3568]}]});}}const ge='ck-editor__editable__loading-overlay';class fi extends _0x3146b8{static get['pluginName'](){return'RevisionViewerLoadingOverlay';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['show'](){const _0x3990c0=this['editor']['editing']['view'];_0x3990c0['change'](_0x50a90b=>{for(const _0x4231a2 of _0x3990c0['document']['roots'])_0x50a90b['addClass'](ge,_0x4231a2);});}['hide'](){const _0x59128f=this['editor']['editing']['view'];_0x59128f['change'](_0x3474b2=>{for(const _0x19b47f of _0x59128f['document']['roots'])_0x3474b2['removeClass'](ge,_0x19b47f);});}}class v extends _0x3146b8{static get['pluginName'](){return'RevisionViewerUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[u,fi];}['init'](){const _0x4e4b53=this['editor'],_0x1bb4cd=_0x4e4b53['plugins']['get'](u),_0x1ac097=_0x4e4b53['plugins']['get'](fi);_0x4e4b53['ui']['componentFactory']['add']('exitToEditing',_0x507ac7=>{const _0x21e553=new _0x195746(_0x507ac7);return _0x21e553['set']({'label':m(_0x507ac7,'Back\x20to\x20editing'),'icon':_0x310a16,'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this['listenTo'](_0x21e553,'execute',()=>{_0x4e4b53['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}),_0x21e553;}),_0x4e4b53['ui']['componentFactory']['add']('restoreRevision',_0x5d5dcf=>{const _0x58eb17=new _0x195746(_0x5d5dcf);return _0x58eb17['set']({'label':m(_0x5d5dcf,'Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0x58eb17['bind']('isEnabled')['to'](_0x4e4b53['commands']['get']('restoreRevision')),this['listenTo'](_0x58eb17,'execute',()=>_0x4e4b53['execute']('restoreRevision')),_0x58eb17;}),_0x4e4b53['ui']['componentFactory']['add']('changesNavigation',_0x12fe10=>{const _0x4ce87c=new pi(_0x12fe10),_0x3bbfeb=_0x4e4b53['commands']['get']('showPreviousChange'),_0x52cf6d=_0x4e4b53['commands']['get']('showNextChange');return _0x4ce87c['bind']('isBackwardNavigationEnabled')['to'](_0x3bbfeb,'isEnabled'),_0x4ce87c['bind']('isForwardNavigationEnabled')['to'](_0x52cf6d,'isEnabled'),_0x4ce87c['bind']('isReady','currentChangeNumber','numberOfChanges','isNavigationMode')['to'](_0x1bb4cd),this['listenTo'](_0x4ce87c,'execute',(_0x1d1bdb,_0x585b85)=>{_0x4e4b53['execute']('forward'===_0x585b85?'showNextChange':'showPreviousChange');}),_0x4ce87c;}),_0x1ac097['show'](),_0x1bb4cd['on']('change:isReady',(_0x1dc88a,_0x1a58f3,_0x2a4e8c)=>{_0x2a4e8c?_0x1ac097['hide']():_0x1ac097['show']();});}}class li extends ti{['_resizeObserver']=null;constructor(_0x23cfa1,_0x147990){super(_0x23cfa1,_0x147990);const _0x5588a1=this['bindTemplate'];this['set']({'label':m(_0x23cfa1,'Revision\x20name'),'_tooltipString':''}),this['fieldView']['placeholder']=m(_0x23cfa1,'Enter\x20the\x20revision\x20name'),this['extendTemplate']({'tag':'span','attributes':{'class':['ck-revision-history-sidebar__revision-name'],'data-cke-tooltip-text':_0x5588a1['to']('_tooltipString'),'data-cke-tooltip-position':'s','data-cke-tooltip-class':'ck-tooltip_multi-line'}});}['render'](){super['render'](),this['_resizeObserver']=new et(this['fieldView']['element'],()=>this['_updateTooltipText']()),this['listenTo'](this['fieldView'],'input',()=>this['_updateTooltipText']());}['destroy'](){super['destroy'](),this['_resizeObserver']&&this['_resizeObserver']['destroy']();}['_updateTooltipText'](){const _0x2edd09=this['fieldView']['element'];this['_tooltipString']=_0x2edd09['scrollWidth']>_0x2edd09['clientWidth']&&_0x2edd09['value']||'';}}class vi extends _0x59b9b3{constructor(_0x409db2,_0x1f101e,_0x4c4f15){super(_0x409db2);const _0x37a0df=new _0x390c63();_0x37a0df['set']({'content':_0x996060,'viewBox':'0\x200\x2011\x2010'});const _0x33b4ed=['ck','ck-revision-history-sidebar__revision-author'];_0x4c4f15&&_0x33b4ed['push']('ck-revision-history-sidebar__revision-author_creator');const _0x18731b=[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':m(_0x409db2,_0x4c4f15?'Revision\x20creator':'Revision\x20author')},'children':[_0x37a0df,_0x1f101e['name']]}];this['setTemplate']({'tag':'li','attributes':{'class':_0x33b4ed},'children':_0x18731b});}}function mi(_0x1f03f7,_0x4484da){const _0x363606=_0x1f03f7['bindTemplate'],_0x4632d5=_0x1f03f7['locale'],_0x55acb8=_0x2a2a9b(_0x4632d5);_0x55acb8['panelPosition']='sw';const _0x37325f=function(_0x5411c3,_0x16037a){const _0x45f2ae=function(_0x365d22,_0x3b7a6d){const _0x4d3977=_0x365d22['locale'],_0x3998d8={'Compare\x20against\x20selected':m(_0x4d3977,'Compare\x20against\x20selected'),'Name\x20this\x20revision':m(_0x4d3977,'Name\x20this\x20revision'),'Restore\x20this\x20revision':m(_0x4d3977,'Restore\x20this\x20revision')};return _0x3b7a6d['map'](_0xf91f7f=>{const _0xe92381=_0x3998d8[_0xf91f7f['name']];return _0xe92381&&_0xe92381!==_0xf91f7f['name']&&(_0xf91f7f['name']=_0xe92381),_0xf91f7f;});}(_0x5411c3,_0x16037a),_0x42dd7c=new _0x2c09a8();for(const _0x464bef of _0x45f2ae){const _0x516b50={'type':'button','model':new to({'label':_0x464bef['name'],'class':_0x464bef['class'],'withText':!0x0,'role':'menuitem','_action':_0x464bef['action']})};_0x516b50['model']['bind']('isEnabled')['to'](_0x5411c3,'isActionsDropdownOpen',_0x4a40f1=>'function'!=typeof _0x464bef['isEnabled']||(!_0x4a40f1||_0x464bef['isEnabled'](_0x5411c3))),_0x42dd7c['add'](_0x516b50);}return _0x42dd7c;}(_0x1f03f7,_0x4484da);return _0x1f03f7['bind']('isActionsDropdownOpen')['to'](_0x55acb8,'isOpen'),_0x55acb8['buttonView']['set']({'label':m(_0x4632d5,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x1773bc}),_0x55acb8['extendTemplate']({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0x363606['if']('isActionsDropdownOpen','ck-on')]},'on':{'click':_0x363606['to'](_0x415f80=>_0x415f80['stopPropagation']())}}),_0x55acb8['on']('execute',_0x16ae2a=>{_0x1f03f7['isReady']&&'function'==typeof _0x16ae2a['source']['_action']&&_0x16ae2a['source']['_action'](_0x1f03f7);}),_0x32914f(_0x55acb8,_0x37325f,{'role':'menu'}),_0x55acb8['listenTo'](_0x1f03f7,'change:isActionsDropdownOpen',(_0x50faa6,_0x4a59ce,_0xb1c743)=>{if(_0xb1c743)for(const _0x2b51a4 of _0x55acb8['listView']['items']){const _0x2e8710=_0x2b51a4['children']['first'],_0x1330ea=_0x4484da['find'](_0x26c931=>_0x26c931['action']===_0x2e8710['_action'])['isVisible'];_0x2b51a4['isVisible']=void 0x0===_0x1330ea||_0x1330ea(_0x1f03f7);}}),_0x55acb8;}class ki extends/* #__PURE__ -- @preserve */
|
|
27
|
+
_0x5622d1(_0x59b9b3){['id'];['revisionNameView'];['revisionActionsView'];['_revision'];['_requireRevisionName'];constructor(_0x2a2872,_0x2ce709,_0x369545,_0xeabb28){super(_0x2a2872);const _0x17709d=this['bindTemplate'],_0x1122ba=function(_0x153888,_0x2483a3){const _0x40a28e=Array['from'](_0x2483a3['authors'])['filter'](_0x4ebf4c=>_0x4ebf4c!=_0x2483a3['creator']);return _0x2483a3['creator']&&_0x40a28e['unshift'](_0x2483a3['creator']),_0x40a28e['map'](_0xc0e804=>new vi(_0x153888,_0xc0e804,_0xc0e804==_0x2483a3['creator']));}(_0x2a2872,_0x2ce709);this['id']=_0x2ce709['id'],this['_revision']=_0x2ce709,this['_requireRevisionName']=_0xeabb28,this['bind']('name','createdAt')['to'](_0x2ce709),this['bind']('_createdAtFormatted')['to'](this,'createdAt',_0x1bff54=>{return _0x4c34da=_0x2a2872['uiLanguage'],(_0xbff009=_0x1bff54)['toLocaleDateString'](_0x4c34da,{'month':'long','day':'numeric'})+',\x20'+_0xbff009['toLocaleTimeString'](_0x4c34da,{'hour':'numeric','minute':'numeric'});var _0x4c34da,_0xbff009;}),this['set']('isSelected',!0x1),this['set']('isHighlighted',!0x1),this['set']('isActionsDropdownOpen',!0x1),this['set']('isReady',!0x1),this['set']('isEnabled',!0x1),this['revisionNameView']=new li(_0x2a2872,_0xf85895),this['revisionNameView']['fieldView']['extendTemplate']({'attributes':{'maxlength':'220'}}),this['revisionNameView']['fieldView']['bind']('value')['to'](this,'name',_0x53db55=>_0x53db55||this['_createdAtFormatted']),this['revisionNameView']['bind']('isEnabled')['to'](this,'isSelected',this,'isEnabled',(_0x5618f6,_0x9db216)=>_0x5618f6&&_0x9db216),this['revisionActionsView']=_0x369545&&_0x369545['length']?mi(this,_0x369545):'',this['revisionActionsView']&&this['revisionActionsView']['bind']('isEnabled')['to'](this),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision-wrapper',_0x17709d['if']('isConfirm','ck-revision-history-sidebar__revision-wrapper_confirmation_visible')]},'children':[{'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision',_0x17709d['if']('isEnabled','ck-disabled',_0x536489=>!_0x536489),_0x17709d['if']('isSelected','ck-revision-history-sidebar__revision_selected'),_0x17709d['if']('isHighlighted','ck-revision-history-sidebar__revision_highlighted'),_0x17709d['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':_0x17709d['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':_0x1122ba}]},this['revisionActionsView']],'on':{'click':_0x17709d['to'](_0x4c5b4c=>{_0x4c5b4c['srcElement']['closest']('.ck-confirm-view')||this['isReady']&&this['isEnabled']&&this['fire']('select',{'id':this['id']});})}}]});}['render'](){super['render']();const _0x199a5d=this['revisionNameView']['fieldView']['element'];this['listenTo'](_0x199a5d,'change',()=>{this['_requireRevisionName']&&!_0x199a5d['value']||this['fire']('setName',{'id':this['id'],'name':_0x199a5d['value']}),_0x199a5d['value']||(_0x199a5d['value']=this['name']?this['name']:this['_createdAtFormatted']);});}['select'](){this['isSelected']=!0x0;}['deselect'](){this['isSelected']=!0x1;}['highlight'](){this['isHighlighted']=!0x0;}['unhighlight'](){this['isHighlighted']=!0x1;}}function ji(_0x303e61,_0x373631){const _0x419156=_0x2493df['fromJSDate'](_0x303e61)['setLocale'](_0x373631),_0x29f480=_0x2493df['local'](),_0x28e4ed=_0x29f480['minus']({'days':0x1})['startOf']('day');let _0x55356e,_0x166dca;return _0x419156['hasSame'](_0x29f480,'day')?(_0x55356e=_0x419156['startOf']('day')['toJSDate'](),_0x166dca=_0x419156['toRelativeCalendar']()):_0x419156['hasSame'](_0x28e4ed,'day')?(_0x55356e=_0x28e4ed['toJSDate'](),_0x166dca=_0x419156['toRelativeCalendar']()):_0x419156['hasSame'](_0x29f480,'week')?(_0x55356e=_0x419156['startOf']('week')['toJSDate'](),_0x166dca=_0x419156['weekdayLong']||''):_0x419156['hasSame'](_0x29f480,'year')?(_0x55356e=_0x419156['startOf']('month')['toJSDate'](),_0x166dca=_0x419156['monthLong']||''):(_0x55356e=_0x419156['startOf']('year')['toJSDate'](),_0x166dca=String(_0x419156['year'])),{'startDate':_0x55356e,'localizedPeriodName':_0x166dca};}class Ni extends _0x59b9b3{['startDate'];['revisionViews'];['_revisionActions'];['_requireRevisionName'];constructor(_0x40e2c8,_0x22d4e6,_0x2baab1,_0x2da983){super(_0x40e2c8);const _0x4e496e=ji(_0x22d4e6,this['locale']['uiLanguage'])['localizedPeriodName'];this['startDate']=_0x22d4e6,this['revisionViews']=this['createCollection'](),this['_revisionActions']=_0x2baab1,this['_requireRevisionName']=_0x2da983,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':_0x4e496e}]},{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__time-period__revisions']},'children':this['revisionViews']}]});}['addRevision'](_0x16d94b){const _0x2a8a3e=new ki(this['locale'],_0x16d94b,this['_revisionActions'],this['_requireRevisionName']);this['revisionViews']['add'](_0x2a8a3e);}['removeRevision'](_0x4baa45){const _0xc14f81=this['revisionViews']['find'](_0xcb6809=>_0xcb6809['id']===_0x4baa45['id']);this['revisionViews']['remove'](_0xc14f81);}}class Si extends _0x59b9b3{constructor(_0x4613b8){super(_0x4613b8);const _0x45b1de=new _0x390c63();_0x45b1de['content']=_0x2e00b0,this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all','ck-revision-history-sidebar__header']},'children':[_0x45b1de,{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__header__label']},'children':[m(_0x4613b8,'Revision\x20history')]}]});}}class Ri extends _0x59b9b3{['timePeriodViews'];['_revisions'];['_revisionActions'];['_requireRevisionName'];constructor(_0x45be5d,_0x1fae33,_0x370e45,_0x56feed){super(_0x45be5d);const _0x4facb4=this['bindTemplate'];this['timePeriodViews']=this['createCollection'](),this['timePeriodViews']['delegate']('select')['to'](this),this['timePeriodViews']['delegate']('setName')['to'](this),this['_revisions']=_0x1fae33,this['_revisionActions']=_0x370e45,this['_requireRevisionName']=_0x56feed,this['on']('select',(_0x2c4b6b,_0x5343e4)=>{this['fire']('revisionSelected',_0x5343e4);}),this['on']('setName',(_0x37ac11,_0x4add70)=>{this['fire']('revisionSetName',_0x4add70);}),this['set']('isEnabled',!0x1),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-rounded-corners','ck-revision-history-sidebar']},'children':[new Si(_0x45be5d),{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__timeline',_0x4facb4['if']('isEnabled','ck-disabled',_0x4816e5=>!_0x4816e5)]},'children':this['timePeriodViews']}]});}['render'](){super['render']();for(const _0x566808 of this['_revisions'])this['_addRevision'](_0x566808);this['_revisions']['on']('add',(_0x54950b,_0x4418fc)=>{this['_addRevision'](_0x4418fc);}),this['_revisions']['on']('remove',(_0x1f3e19,_0x40cbd5)=>{this['_removeRevision'](_0x40cbd5);});}get['revisionViews'](){return this['timePeriodViews']['map'](_0x23a96d=>_0x23a96d['revisionViews']['map'](_0x32ff3b=>_0x32ff3b))['flat']();}['selectRevision'](_0x24ee2b){for(const _0xdc8b5d of this['revisionViews'])_0x24ee2b&&_0x24ee2b['id']===_0xdc8b5d['id']?_0xdc8b5d['select']():_0xdc8b5d['deselect']();}['highlightRevisions'](_0x3a2b79){for(const _0x20bcb1 of this['revisionViews'])_0x3a2b79['some'](({id:_0x4b8fad})=>_0x4b8fad===_0x20bcb1['id'])?_0x20bcb1['highlight']():_0x20bcb1['unhighlight']();}['_addRevision'](_0x55c593){const _0x4f1dd4=ji(_0x55c593['createdAt'],this['locale']['uiLanguage'])['startDate'];let _0x567c56=this['timePeriodViews']['get'](0x0);_0x567c56&&_0x567c56['startDate']['getTime']()===_0x4f1dd4['getTime']()||(_0x567c56=new Ni(this['locale'],_0x4f1dd4,this['_revisionActions'],this['_requireRevisionName']),this['timePeriodViews']['add'](_0x567c56)),_0x567c56['addRevision'](_0x55c593);}['_removeRevision'](_0x25a309){const _0x5b57c1=ji(_0x25a309['createdAt'],this['locale']['uiLanguage'])['startDate'];this['_getTimePeriodViewByStartDate'](_0x5b57c1)['removeRevision'](_0x25a309);}['_getTimePeriodViewByStartDate'](_0x16cb4b){return this['timePeriodViews']['find'](_0x453d58=>_0x453d58['startDate']['getTime']()===_0x16cb4b['getTime']());}}class d extends _0x3146b8{['_revisionViewer'];['_revisionsRepository'];['_sidebarView'];static ['defaultRevisionActions']=/* #__PURE__ -- @preserve */
|
|
28
28
|
((()=>['compareAgainstSelected','restoreRevision','nameRevision'])());static ['availableRevisionActions']=/* #__PURE__ -- @preserve */
|
|
29
|
-
|
|
30
|
-
_0xc2511f(_0x5691ec){['_ui'];get['ui'](){return this['_ui'];}constructor(_0x425af9,_0x311ee4){super(_0x311ee4),this['sourceElement']=_0x425af9,this['model']['document']['createRoot']();const _0x5acf49=new ii(this['locale'],this['editing']['view'],{'shouldToolbarGroupWhenFull':!0x0});this['_ui']=new Z(this,_0x5acf49);}['destroy'](){return this['updateSourceElement'](),this['ui']['destroy'](),super['destroy']();}static async['create'](_0x522d1a,_0x25d7e6){const _0x49c302=new this(_0x522d1a,_0x25d7e6);return await _0x49c302['initPlugins'](),await _0x49c302['ui']['init'](_0x522d1a),await _0x49c302['data']['init'](_0x49c302['config']['get']('initialData')||''),_0x49c302['fire']('ready'),_0x49c302;}}const p=['RevisionHistoryUI','RestrictedEditingMode','AIChat','AIReviewMode','AIBalloon','AIQuickActions','AIActions'];class ht extends _0x3f3108{['result'];static get['pluginName'](){return'RevisionViewerIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x24d60d){function _0x4241cd(_0x4d9086){return _0x4d9086['map'](_0x3a2380=>String['fromCharCode'](_0x3a2380))['join']('');}super(_0x24d60d),this['result']='end',_0x24d60d[_0x4241cd([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4241cd([0x76,0x69,0x65,0x77])][_0x4241cd([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x4241cd([0x61,0x75,0x74,0x6f]),_0x24d60d[_0x4241cd([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x4241cd([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x4241cd([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x4241cd([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x4241cd([0x6f,0x6b])});}}class ct extends _0x3f3108{['_viewerEditor'];static get['pluginName'](){return'RevisionHistory';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[h,l];}constructor(_0x13bffa){if(super(_0x13bffa),!this['editor']['config']['get']('revisionHistory'))throw new _0x3961e6('revision-history-missing-configuration',this);this['_viewerEditor']=null,this['set']('isRevisionViewerOpen',!0x1),this['editor']['config']['define']('revisionHistory.showRevisionViewerCallback',_0x2910ef=>this['_showRevisionViewer']({..._0x2910ef,'translations':this['editor']['locale']['translations']})),this['editor']['config']['define']('revisionHistory.closeRevisionViewerCallback',_0x709619=>this['_closeRevisionViewer'](_0x709619)),this['editor']['config']['define']('revisionHistory.restoreRevisionCallback',_0x429fcf=>this['_restoreRevision'](_0x429fcf)),this['editor']['config']['define']('revisionHistory.requireRevisionName',!0x1),this['_enhanceShowRevisionViewerCallback'](),this['_enhanceCloseRevisionViewerCallback']();}set['adapter'](_0x51161b){this['editor']['plugins']['get']('RevisionTracker')['adapter']=_0x51161b;}get['adapter'](){return this['editor']['plugins']['get']('RevisionTracker')['adapter'];}['addRevisionData'](_0x5ca23f){return this['editor']['plugins']['get']('RevisionTracker')['addRevisionData'](_0x5ca23f);}['getRevision'](_0x4eea49){return this['editor']['plugins']['get']('RevisionsRepository')['getRevision'](_0x4eea49);}['getRevisions'](_0x8f8a41){return this['editor']['plugins']['get']('RevisionsRepository')['getRevisions'](_0x8f8a41||{'toJSON':!0x1});}['_getRevisionViewerEditorConfig'](){const _0x15227d=this['editor'],_0x2e3a35=_0x1f848a(_0x15227d,p),_0x3b8f46=_0x15227d['plugins']['get']('RevisionTracker'),_0x5c1451=_0x15227d['plugins']['get']('Users')['users'];return _0x2e3a35['toolbar']=['exitToEditing','restoreRevision','changesNavigation'],delete _0x2e3a35['lazyRoots'],(_0x2e3a35['plugins']['push'](ht,u,v,class extends _0x3f3108{static get['requires'](){return[u,'Users'];}['init'](){const _0x22c1bf=this['editor']['plugins']['get']('Users');for(const _0xe4e2c1 of _0x5c1451)_0xe4e2c1['isAnonymous']||_0x22c1bf['getUser'](_0xe4e2c1['id'])||_0x22c1bf['addUser'](_0xe4e2c1);const _0x4bd866=_0x3b8f46['repository']['getRevisions']();let _0x3f88e4=null;const _0x4fc001=this['editor']['plugins']['get']('RevisionViewer');_0x4fc001['adapter']=_0x3b8f46['adapter'],_0x4fc001['bind']('isEnabled')['to'](_0x3b8f46),this['editor']['commands']['get']('restoreRevision')['bind']('isEnabled')['to'](_0x15227d,'isReadOnly',_0x3af12d=>!_0x3af12d);for(const _0x572352 of _0x4bd866){const _0x56b5dd=null===_0x572352['creator'];if(_0x56b5dd&&_0x572352['toVersion']===_0x572352['fromVersion'])continue;const _0x1842ff=_0x572352['toJSON']();_0x4fc001['addRevisionData'](_0x1842ff,(_0x239aa6,_0x141f69,_0x9cd2db)=>{if(_0x56b5dd){if(_0x3f88e4)_0x3f88e4['_update'](_0x239aa6,_0x141f69);else{if(!_0x141f69){const _0x10afda=_0x9cd2db['toJSON']();_0x10afda['id']=_0x196f07(),_0x3b8f46['saveRevision'](_0x10afda,_0x9cd2db['toVersion'])['then'](_0x29af39=>{_0x3f88e4=_0x29af39;});}}}else _0x572352['_update'](_0x239aa6,_0x141f69);});}}},d),_0x2e3a35);}['_enhanceShowRevisionViewerCallback'](){const _0xc32c06=this['editor']['config']['get']('revisionHistory')['showRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.showRevisionViewerCallback',async()=>{this['editor']['enableReadOnlyMode']('revision-history-viewer-opened');const _0x59e586=this['editor']['plugins']['get']('RevisionTracker');if(this['editor']['plugins']['has']('Autosave')){const _0x26487c=this['editor']['plugins']['get']('Autosave');await _0x26487c['save']();}else await _0x59e586['update']();if(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('Dialog')){const _0x19c9af=this['editor']['plugins']['get']('Dialog');_0x19c9af['isOpen']&&_0x19c9af['hide']();}if(this['editor']['plugins']['has']('AITabs')){const _0x3cf6d1=this['editor']['plugins']['get']('AITabs')['view']['panelViews'];for(const _0x263887 of _0x3cf6d1)_0x263887['class']=_0x263887['class']?_0x263887['class']+'\x20ck-tab-panel_disabled':'ck-tab-panel_disabled';if(this['editor']['plugins']['has']('AIChat')){const _0x2e48f1=document['querySelector']('.ck-ai-chat__prompt-input\x20.ck-textarea');_0x2e48f1&&_0x2e48f1['setAttribute']('tabindex','-1');}if(this['editor']['plugins']['has']('AIChatHistory')){const _0x269232=document['querySelector']('.ck-ai-chat-history\x20.ck-input');_0x269232&&_0x269232['setAttribute']('tabindex','-1');}}const _0x57204f=this['_getRevisionViewerEditorConfig']();return _0xc32c06(_0x57204f)['then'](_0x53530e=>{return(this['_viewerEditor']=_0x53530e,this['editor']['plugins']['has']('Annotations'))&&this['editor']['plugins']['get']('Annotations')['refreshVisibility'](),(this['editor']['plugins']['has']('DocumentOutline')&&(this['editor']['plugins']['get']('DocumentOutlineUI')['view']['element']['style']['display']='none'),_0x53530e);})['catch'](_0xe5c15c=>(console['error'](_0xe5c15c),this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),null));});}['_enhanceCloseRevisionViewerCallback'](){const _0x5a4c45=this['editor']['config']['get']('revisionHistory')['closeRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.closeRevisionViewerCallback',()=>{if(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('DocumentOutline')&&(this['editor']['plugins']['get']('DocumentOutlineUI')['view']['element']['style']['display']=''),this['editor']['plugins']['has']('AITabs')){const _0x3d67a7=this['editor']['plugins']['get']('AITabs')['view']['panelViews'];for(const _0x1953da of _0x3d67a7)_0x1953da['class']='ck-tab-panel_disabled'===_0x1953da['class']?'':_0x1953da['class']['replace']('\x20ck-tab-panel_disabled','');if(this['editor']['plugins']['has']('AIChat')){const _0x135081=document['querySelector']('.ck-ai-chat__prompt-input\x20.ck-textarea');_0x135081&&_0x135081['removeAttribute']('tabindex');}if(this['editor']['plugins']['has']('AIChatHistory')){const _0x3c122c=document['querySelector']('.ck-ai-chat-history\x20.ck-input');_0x3c122c&&_0x3c122c['removeAttribute']('tabindex');}}return this['_viewerEditor']['plugins']['get']('RevisionViewer')['_cleanUp'](),_0x5a4c45(this['_viewerEditor'])['then'](()=>{if(this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),this['_viewerEditor']=null,this['editor']['plugins']['has']('Annotations')){const _0x118823=this['editor']['plugins']['get']('Annotations');_0x118823['refreshVisibility'](),_0x118823['refreshPositioning']();}});});}['_showRevisionViewer'](_0x1f90ea){const _0x155cca=this['editor']['config']['get']('revisionHistory.editorContainer'),_0x29b439=this['editor']['config']['get']('revisionHistory.viewerContainer'),_0x40991c=this['editor']['config']['get']('revisionHistory.viewerEditorElement');return f['create'](_0x40991c,_0x1f90ea)['then'](_0x25429c=>(_0x29b439['style']['display']='block',_0x155cca['style']['display']='none',this['isRevisionViewerOpen']=!0x0,_0x25429c));}['_closeRevisionViewer'](_0x431403){const _0xafdff7=this['editor']['config']['get']('revisionHistory.editorContainer');return this['editor']['config']['get']('revisionHistory.viewerContainer')['style']['display']='none',_0xafdff7['style']['display']='',this['isRevisionViewerOpen']=!0x1,_0x431403['destroy']();}async['_restoreRevision'](_0x462ab3){const _0x5bb1c4=this['editor'],_0x5686f4=this['_viewerEditor']['plugins']['get']('RevisionViewer'),_0x227bcb=_0x5bb1c4['plugins']['get']('RevisionTracker'),_0x20db58=_0x5bb1c4['plugins']['get']('RevisionHistoryUtils'),_0x294573=_0x5686f4['repository']['getRevision'](_0x462ab3);let _0x2adc15,_0x136fb5,_0x5f3eb5;try{await _0x20db58['loadRevisionData'](_0x294573,this['adapter']),_0x2adc15=_0x20db58['getRevisionDocumentData'](_0x294573),_0x136fb5=_0x20db58['getRevisionRootsAttributes'](_0x294573);}catch(_0x3f5d0c){return void console['error'](_0x3f5d0c);}_0x5bb1c4['model']['change'](_0x17cbad=>{for(const _0x344c5b of Array['from'](_0x5bb1c4['model']['markers']['getMarkersGroup']('restrictedEditingException')))_0x17cbad['removeMarker'](_0x344c5b);}),_0x5686f4['isReady']=!0x1,_0x5bb1c4['model']['enqueueChange'](_0x3911f4=>{_0x3911f4['setSelection'](null),_0x3911f4['removeSelectionAttribute'](_0x5bb1c4['model']['document']['selection']['getAttributeKeys']());const _0x478d45=Object['keys'](_0x2adc15);for(const _0x4879c6 of _0x5bb1c4['model']['document']['roots'])'$graveyard'!=_0x4879c6['rootName']&&_0x4879c6['isAttached']()&&!_0x478d45['includes'](_0x4879c6['rootName'])&&_0x3911f4['detachRoot'](_0x4879c6);for(const _0x3beecf of _0x478d45){let _0x1fd788=_0x5bb1c4['model']['document']['getRoot'](_0x3beecf);_0x1fd788&&_0x1fd788['isAttached']()||(_0x1fd788=_0x3911f4['addRoot'](_0x3beecf));const _0x3e954b=_0x136fb5[_0x3beecf],_0x46a986=Object['keys'](_0x3e954b),_0x513b78=_0x2adc15[_0x3beecf];for(const _0x424268 of _0x1fd788['getAttributeKeys']())_0x46a986['includes'](_0x424268)||_0x3911f4['removeAttribute'](_0x424268,_0x1fd788);for(const _0x1ac84e of _0x46a986)_0x3911f4['setAttribute'](_0x1ac84e,_0x136fb5[_0x3beecf][_0x1ac84e],_0x1fd788);_0x3911f4['remove'](_0x3911f4['createRangeIn'](_0x1fd788)),_0x3911f4['insert'](_0x5bb1c4['data']['parse'](_0x513b78,_0x1fd788),_0x1fd788,0x0);}});const _0xe6787a=m(_0x5bb1c4['locale'],'Restored');if(_0x294573['name'])_0x5f3eb5=-0x1==_0x294573['name']['indexOf'](_0xe6787a)?_0xe6787a+':\x20'+_0x294573['name']:_0x294573['name'];else _0x5f3eb5=_0xe6787a+':\x20'+(_0x294573['createdAt']['toLocaleDateString'](_0x5bb1c4['locale']['uiLanguage'],{'month':'long','day':'numeric'})+',\x20'+_0x294573['createdAt']['toLocaleTimeString'](_0x5bb1c4['locale']['uiLanguage'],{'hour':'numeric','minute':'numeric'}));return await _0x227bcb['saveRevision']({'name':_0x5f3eb5}),_0x5686f4['isReady']=!0x0,_0x5bb1c4['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}}export{nt as RestoreRevisionCommand,I as Revision,ct as RevisionHistory,l as RevisionHistoryUI,$ as RevisionHistoryUtils,h as RevisionTracker,u as RevisionViewer,f as RevisionViewerEditor,ht as RevisionViewerIntegration,ji as RevisionViewerLoadingOverlay,v as RevisionViewerUI,S as RevisionsRepository,d as RevisionsSidebar,rt as ShowChangeCommand};
|
|
29
|
+
rt();static get['pluginName'](){return'RevisionsSidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[u];}constructor(_0xbeaef0){super(_0xbeaef0),this['_revisionViewer']=_0xbeaef0['plugins']['get'](u),this['_revisionsRepository']=this['_revisionViewer']['repository'],this['_sidebarView']=null;}['init'](){const _0x51551d=this['_revisionsRepository']['_revisions'],_0x409740=this['_createRevisionActions'](),_0x520b64=this['editor']['config']['get']('revisionHistory.viewerSidebarContainer');this['_sidebarView']=new Ri(this['editor']['locale'],_0x51551d,_0x409740,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',(_0x1e15d1,_0xc6d011)=>{_0xc6d011['revisionViews']['on']('add',(_0x2e0fea,_0x56a3ec)=>{_0x56a3ec['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)),_0x520b64['appendChild'](this['_sidebarView']['element']);}['destroy'](){this['_sidebarView']['element']['remove'](),this['_sidebarView']['destroy']();}['_handleEditorDataReady'](){const _0x1bb27f=this['_revisionsRepository']['getRevision'](0x0);if(_0x1bb27f){const _0x68356=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x1bb27f['id']);this['_revisionViewer']['compare'](_0x1bb27f,_0x68356);}}['_handleRevisionSelected'](_0x10a269,_0x36763d){const _0x175c18=this['_revisionsRepository']['getRevision'](_0x36763d['id']),_0x17db4d=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x175c18['id']);this['_revisionViewer']['compare'](_0x175c18,_0x17db4d);}['_handleRevisionSetName'](_0x3b34fa,_0x4903c5){this['_revisionsRepository']['getRevision'](_0x4903c5['id'])['setName'](_0x4903c5['name']);}['_handleDiffChange'](_0x58525c,_0x390549,_0x4aa161){const _0x391df2=this['_revisionsRepository']['getRevisionsInDiff'](_0x4aa161);_0x391df2['length']>0x2?(this['_sidebarView']['highlightRevisions'](_0x391df2),this['_sidebarView']['selectRevision'](null)):(this['_sidebarView']['highlightRevisions']([]),this['_sidebarView']['selectRevision'](_0x391df2[0x0]));}['_createRevisionActions'](){const _0x4cd3a9=this['editor'],_0x164aec=d['availableRevisionActions'],_0x20e291=_0x4cd3a9['config']['get']('revisionHistory.revisionActions')||d['defaultRevisionActions'];if(_0x20e291['length'])return _0x20e291['map'](_0x33170e=>{const _0x36f233='string'==typeof _0x33170e?Object['assign']({},_0x164aec[_0x33170e]):_0x33170e;return _0x36f233['action']=_0x36f233['action']['bind'](this,_0x4cd3a9),_0x36f233['isVisible']&&(_0x36f233['isVisible']=_0x36f233['isVisible']['bind'](this,_0x4cd3a9)),_0x36f233;});}}function rt(){return{'compareAgainstSelected':{'name':'Compare\x20against\x20selected','action':({plugins:_0x144fb0},_0x3de5cc)=>{const _0x558c7c=_0x144fb0['get'](u),_0x49401f=_0x558c7c['repository'];let _0x446cde=_0x558c7c['diff']['newRevisionId'],_0x27c18d=_0x3de5cc['id'];_0x49401f['getIndex'](_0x446cde)>_0x49401f['getIndex'](_0x27c18d)&&([_0x446cde,_0x27c18d]=[_0x27c18d,_0x446cde]),_0x558c7c['compare'](_0x446cde,_0x27c18d);},'isVisible':({plugins:_0x564f56},_0x4254b2)=>{const _0x684d9c=_0x564f56['get'](u);return!(_0x684d9c['repository']['getRevisionsInDiff'](_0x684d9c['diff'])['length']>0x2)&&!_0x4254b2['isSelected'];}},'restoreRevision':{'name':'Restore\x20this\x20revision','action':(_0x3f801a,{id:_0x238866})=>{_0x3f801a['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x238866);},'isVisible':({plugins:_0x1d7a5e},_0x29bf1e)=>!!_0x1d7a5e['get'](u)['repository']['getLaterVisibleRevision'](_0x29bf1e['id'])},'nameRevision':{'name':'Name\x20this\x20revision','action':({plugins:_0x13271e},{id:_0x3721fa,revisionNameView:_0x4e9f70})=>{const _0x5e5058=_0x13271e['get'](u),_0x4865e7=_0x5e5058['repository']['getEarlierVisibleRevision'](_0x3721fa);_0x5e5058['compare'](_0x3721fa,_0x4865e7),_0x4e9f70['focus'](),_0x4e9f70['fieldView']['select']();}}};}class Z extends tt{['_view'];['_toolbarConfig'];['_elementReplacer'];get['view'](){return this['_view'];}constructor(_0x4f8862,_0x57d4c7){super(_0x4f8862),this['_view']=_0x57d4c7,this['_toolbarConfig']=st(_0x4f8862['config']['get']('toolbar')),this['_elementReplacer']=new it();}get['element'](){return this['view']['element'];}['init'](_0xeadd52){const _0x805bb6=this['editor'],_0x25e804=this['view'],_0x632947=_0x805bb6['editing']['view'],_0x498ce6=_0x25e804['editable'],_0x370afb=_0x632947['document']['getRoot']();_0x498ce6['name']=_0x370afb['rootName'],_0x25e804['render']();const _0x4607c8=_0x498ce6['element'];this['setEditableElement'](_0x498ce6['name'],_0x4607c8),_0x25e804['editable']['bind']('isFocused')['to'](this['focusTracker']),_0x632947['attachDomRoot'](_0x4607c8),this['_elementReplacer']['replace'](_0xeadd52,this['element']),this['_initToolbar'](),this['fire']('ready');}['destroy'](){super['destroy']();const _0x364165=this['view'],_0x56660d=this['editor']['editing']['view'];this['_elementReplacer']['restore'](),_0x56660d['detachDomRoot'](_0x364165['editable']['name']),_0x364165['destroy']();}['_initToolbar'](){const _0x22948b=this['view'];_0x22948b['stickyPanel']['bind']('isActive')['to'](this['focusTracker'],'isFocused'),_0x22948b['stickyPanel']['limiterElement']=_0x22948b['element'],_0x22948b['stickyPanel']['bind']('viewportTopOffset')['to'](this,'viewportOffset',({top:_0x170817})=>_0x170817),_0x22948b['toolbar']['fillFromConfig'](this['_toolbarConfig'],this['componentFactory']),this['addToolbar'](_0x22948b['toolbar']);}}class ii extends _0x11989a{['_editable'];['stickyPanel'];['toolbar'];get['editable'](){return this['_editable'];}constructor(_0x184547,_0x3ea118,_0x536b0c={}){super(_0x184547),this['stickyPanel']=new _0x37fbdc(_0x184547),this['toolbar']=new _0x2ca0cf(_0x184547,{'shouldGroupWhenFull':_0x536b0c['shouldToolbarGroupWhenFull']}),this['_editable']=new te(_0x184547,_0x3ea118);}['render'](){super['render'](),this['stickyPanel']['content']['add'](this['toolbar']),this['top']['add'](this['stickyPanel']),this['main']['add'](this['editable']);}}class f extends/* #__PURE__ -- @preserve */
|
|
30
|
+
_0xb2783a(_0x4807b9){['_ui'];get['ui'](){return this['_ui'];}constructor(_0x1f4f66,_0x46300f){super(_0x46300f),this['sourceElement']=_0x1f4f66,this['model']['document']['createRoot']();const _0x5c92ef=new ii(this['locale'],this['editing']['view'],{'shouldToolbarGroupWhenFull':!0x0});this['_ui']=new Z(this,_0x5c92ef);}['destroy'](){return this['updateSourceElement'](),this['ui']['destroy'](),super['destroy']();}static async['create'](_0x4503b2,_0x3ccf9c){const _0x20cd15=new this(_0x4503b2,_0x3ccf9c);return await _0x20cd15['initPlugins'](),await _0x20cd15['ui']['init'](_0x4503b2),await _0x20cd15['data']['init'](_0x20cd15['config']['get']('initialData')||''),_0x20cd15['fire']('ready'),_0x20cd15;}}const p=['RevisionHistoryUI','RestrictedEditingMode','AIChat','AIReviewMode','AIBalloon','AIQuickActions','AIActions'];class at extends _0x3146b8{['result'];static get['pluginName'](){return'RevisionViewerIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x5b7516){function _0x50c1fb(_0x2f05fe){return _0x2f05fe['map'](_0x5c385d=>String['fromCharCode'](_0x5c385d))['join']('');}super(_0x5b7516),this['result']='end',_0x5b7516[_0x50c1fb([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x50c1fb([0x76,0x69,0x65,0x77])][_0x50c1fb([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x50c1fb([0x61,0x75,0x74,0x6f]),_0x5b7516[_0x50c1fb([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x50c1fb([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x50c1fb([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x50c1fb([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x50c1fb([0x6f,0x6b])});}}class ht extends _0x3146b8{['_viewerEditor'];static get['pluginName'](){return'RevisionHistory';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[h,l];}constructor(_0x193fdb){if(super(_0x193fdb),!this['editor']['config']['get']('revisionHistory'))throw new _0x5120be('revision-history-missing-configuration',this);this['_viewerEditor']=null,this['set']('isRevisionViewerOpen',!0x1),this['editor']['config']['define']('revisionHistory.showRevisionViewerCallback',_0x4ca229=>this['_showRevisionViewer']({..._0x4ca229,'translations':this['editor']['locale']['translations']})),this['editor']['config']['define']('revisionHistory.closeRevisionViewerCallback',_0x4bcdd6=>this['_closeRevisionViewer'](_0x4bcdd6)),this['editor']['config']['define']('revisionHistory.restoreRevisionCallback',_0x2c4b93=>this['_restoreRevision'](_0x2c4b93)),this['editor']['config']['define']('revisionHistory.requireRevisionName',!0x1),this['_enhanceShowRevisionViewerCallback'](),this['_enhanceCloseRevisionViewerCallback']();}set['adapter'](_0x2fe37f){this['editor']['plugins']['get']('RevisionTracker')['adapter']=_0x2fe37f;}get['adapter'](){return this['editor']['plugins']['get']('RevisionTracker')['adapter'];}['addRevisionData'](_0xe1affa){return this['editor']['plugins']['get']('RevisionTracker')['addRevisionData'](_0xe1affa);}['getRevision'](_0x3f6a44){return this['editor']['plugins']['get']('RevisionsRepository')['getRevision'](_0x3f6a44);}['getRevisions'](_0x197229){return this['editor']['plugins']['get']('RevisionsRepository')['getRevisions'](_0x197229||{'toJSON':!0x1});}['_getRevisionViewerEditorConfig'](){const _0x39f352=this['editor'],_0x4fd813=_0x858682(_0x39f352,p),_0x2cf87b=_0x39f352['plugins']['get']('RevisionTracker'),_0x59969c=_0x39f352['plugins']['get']('Users')['users'];return _0x4fd813['toolbar']=['exitToEditing','restoreRevision','changesNavigation'],delete _0x4fd813['lazyRoots'],(_0x4fd813['plugins']['push'](at,u,v,class extends _0x3146b8{static get['requires'](){return[u,'Users'];}['init'](){const _0x54489f=this['editor']['plugins']['get']('Users');for(const _0x43d7c2 of _0x59969c)_0x43d7c2['isAnonymous']||_0x54489f['getUser'](_0x43d7c2['id'])||_0x54489f['addUser'](_0x43d7c2);const _0x1f6c12=_0x2cf87b['repository']['getRevisions']();let _0x5e8e62=null;const _0x56e92c=this['editor']['plugins']['get']('RevisionViewer');_0x56e92c['adapter']=_0x2cf87b['adapter'],_0x56e92c['bind']('isEnabled')['to'](_0x2cf87b),this['editor']['commands']['get']('restoreRevision')['bind']('isEnabled')['to'](_0x39f352,'isReadOnly',_0x3539c3=>!_0x3539c3);for(const _0xa38f66 of _0x1f6c12){const _0x8c28a5=null===_0xa38f66['creator'];if(_0x8c28a5&&_0xa38f66['toVersion']===_0xa38f66['fromVersion'])continue;const _0x37cb80=_0xa38f66['toJSON']();_0x56e92c['addRevisionData'](_0x37cb80,(_0x2fde47,_0x31b7ad,_0x18e068)=>{if(_0x8c28a5){if(_0x5e8e62)_0x5e8e62['_update'](_0x2fde47,_0x31b7ad);else{if(!_0x31b7ad){const _0xe01e8b=_0x18e068['toJSON']();_0xe01e8b['id']=_0x51af8d(),_0x2cf87b['saveRevision'](_0xe01e8b,_0x18e068['toVersion'])['then'](_0x90f322=>{_0x5e8e62=_0x90f322;});}}}else _0xa38f66['_update'](_0x2fde47,_0x31b7ad);});}}},d),_0x4fd813);}['_enhanceShowRevisionViewerCallback'](){const _0x1cb9c9=this['editor']['config']['get']('revisionHistory')['showRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.showRevisionViewerCallback',async()=>{this['editor']['enableReadOnlyMode']('revision-history-viewer-opened');const _0x196d91=this['editor']['plugins']['get']('RevisionTracker');if(this['editor']['plugins']['has']('Autosave')){const _0x335c53=this['editor']['plugins']['get']('Autosave');await _0x335c53['save']();}else await _0x196d91['update']();if(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('Dialog')){const _0x5a3300=this['editor']['plugins']['get']('Dialog');_0x5a3300['isOpen']&&_0x5a3300['hide']();}if(this['editor']['plugins']['has']('AITabs')){const _0x2897be=this['editor']['plugins']['get']('AITabs')['view']['panelViews'];for(const _0x6eaf51 of _0x2897be)_0x6eaf51['class']=_0x6eaf51['class']?_0x6eaf51['class']+'\x20ck-tab-panel_disabled':'ck-tab-panel_disabled';if(this['editor']['plugins']['has']('AIChat')){const _0x5ed1d8=document['querySelector']('.ck-ai-chat__prompt-input\x20.ck-textarea');_0x5ed1d8&&_0x5ed1d8['setAttribute']('tabindex','-1');}if(this['editor']['plugins']['has']('AIChatHistory')){const _0x1804e8=document['querySelector']('.ck-ai-chat-history\x20.ck-input');_0x1804e8&&_0x1804e8['setAttribute']('tabindex','-1');}}const _0x2e4422=this['_getRevisionViewerEditorConfig']();return _0x1cb9c9(_0x2e4422)['then'](_0x39c58a=>{return(this['_viewerEditor']=_0x39c58a,this['editor']['plugins']['has']('Annotations'))&&this['editor']['plugins']['get']('Annotations')['refreshVisibility'](),(this['editor']['plugins']['has']('DocumentOutline')&&(this['editor']['plugins']['get']('DocumentOutlineUI')['view']['element']['style']['display']='none'),_0x39c58a);})['catch'](_0x5ef09b=>(console['error'](_0x5ef09b),this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),null));});}['_enhanceCloseRevisionViewerCallback'](){const _0x2a0d67=this['editor']['config']['get']('revisionHistory')['closeRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.closeRevisionViewerCallback',()=>{if(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('DocumentOutline')&&(this['editor']['plugins']['get']('DocumentOutlineUI')['view']['element']['style']['display']=''),this['editor']['plugins']['has']('AITabs')){const _0x521afd=this['editor']['plugins']['get']('AITabs')['view']['panelViews'];for(const _0x467fec of _0x521afd)_0x467fec['class']='ck-tab-panel_disabled'===_0x467fec['class']?'':_0x467fec['class']['replace']('\x20ck-tab-panel_disabled','');if(this['editor']['plugins']['has']('AIChat')){const _0x33e33e=document['querySelector']('.ck-ai-chat__prompt-input\x20.ck-textarea');_0x33e33e&&_0x33e33e['removeAttribute']('tabindex');}if(this['editor']['plugins']['has']('AIChatHistory')){const _0x26360b=document['querySelector']('.ck-ai-chat-history\x20.ck-input');_0x26360b&&_0x26360b['removeAttribute']('tabindex');}}return this['_viewerEditor']['plugins']['get']('RevisionViewer')['_cleanUp'](),_0x2a0d67(this['_viewerEditor'])['then'](()=>{if(this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),this['_viewerEditor']=null,this['editor']['plugins']['has']('Annotations')){const _0x42581a=this['editor']['plugins']['get']('Annotations');_0x42581a['refreshVisibility'](),_0x42581a['refreshPositioning']();}});});}['_showRevisionViewer'](_0x22e29d){const _0x36d4a5=this['editor']['config']['get']('revisionHistory.editorContainer'),_0x194d46=this['editor']['config']['get']('revisionHistory.viewerContainer'),_0x3bf6ad=this['editor']['config']['get']('revisionHistory.viewerEditorElement');return f['create'](_0x3bf6ad,_0x22e29d)['then'](_0x3bbefb=>(_0x194d46['style']['display']='block',_0x36d4a5['style']['display']='none',this['isRevisionViewerOpen']=!0x0,_0x3bbefb));}['_closeRevisionViewer'](_0x45e641){const _0x121f2c=this['editor']['config']['get']('revisionHistory.editorContainer');return this['editor']['config']['get']('revisionHistory.viewerContainer')['style']['display']='none',_0x121f2c['style']['display']='',this['isRevisionViewerOpen']=!0x1,_0x45e641['destroy']();}async['_restoreRevision'](_0x5b5759){const _0x505356=this['editor'],_0x1401cb=this['_viewerEditor']['plugins']['get']('RevisionViewer'),_0x1489b6=_0x505356['plugins']['get']('RevisionTracker'),_0x59d63c=_0x505356['plugins']['get']('RevisionHistoryUtils'),_0x3ce78e=_0x1401cb['repository']['getRevision'](_0x5b5759);let _0x1bd3ef,_0xda3917,_0x17e4ab;try{await _0x59d63c['loadRevisionData'](_0x3ce78e,this['adapter']),_0x1bd3ef=_0x59d63c['getRevisionDocumentData'](_0x3ce78e),_0xda3917=_0x59d63c['getRevisionRootsAttributes'](_0x3ce78e);}catch(_0x511884){return void console['error'](_0x511884);}_0x505356['model']['change'](_0x18eb53=>{for(const _0xfbc2bd of Array['from'](_0x505356['model']['markers']['getMarkersGroup']('restrictedEditingException')))_0x18eb53['removeMarker'](_0xfbc2bd);}),_0x1401cb['isReady']=!0x1,_0x505356['model']['enqueueChange'](_0x353e44=>{_0x353e44['setSelection'](null),_0x353e44['removeSelectionAttribute'](_0x505356['model']['document']['selection']['getAttributeKeys']());const _0x188eb6=Object['keys'](_0x1bd3ef);for(const _0x23fba2 of _0x505356['model']['document']['roots'])'$graveyard'!=_0x23fba2['rootName']&&_0x23fba2['isAttached']()&&!_0x188eb6['includes'](_0x23fba2['rootName'])&&_0x353e44['detachRoot'](_0x23fba2);for(const _0x2acd3f of _0x188eb6){let _0x2d9af6=_0x505356['model']['document']['getRoot'](_0x2acd3f);_0x2d9af6&&_0x2d9af6['isAttached']()||(_0x2d9af6=_0x353e44['addRoot'](_0x2acd3f));const _0x3fbeba=_0xda3917[_0x2acd3f],_0x79cfc5=Object['keys'](_0x3fbeba),_0x2f44b8=_0x1bd3ef[_0x2acd3f];for(const _0x8e5b40 of _0x2d9af6['getAttributeKeys']())_0x79cfc5['includes'](_0x8e5b40)||_0x353e44['removeAttribute'](_0x8e5b40,_0x2d9af6);for(const _0x4f4ef7 of _0x79cfc5)_0x353e44['setAttribute'](_0x4f4ef7,_0xda3917[_0x2acd3f][_0x4f4ef7],_0x2d9af6);_0x353e44['remove'](_0x353e44['createRangeIn'](_0x2d9af6)),_0x353e44['insert'](_0x505356['data']['parse'](_0x2f44b8,_0x2d9af6),_0x2d9af6,0x0);}});const _0x2a2bf7=m(_0x505356['locale'],'Restored');if(_0x3ce78e['name'])_0x17e4ab=-0x1==_0x3ce78e['name']['indexOf'](_0x2a2bf7)?_0x2a2bf7+':\x20'+_0x3ce78e['name']:_0x3ce78e['name'];else _0x17e4ab=_0x2a2bf7+':\x20'+(_0x3ce78e['createdAt']['toLocaleDateString'](_0x505356['locale']['uiLanguage'],{'month':'long','day':'numeric'})+',\x20'+_0x3ce78e['createdAt']['toLocaleTimeString'](_0x505356['locale']['uiLanguage'],{'hour':'numeric','minute':'numeric'}));return await _0x1489b6['saveRevision']({'name':_0x17e4ab}),_0x1401cb['isReady']=!0x0,_0x505356['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}}export{nt as RestoreRevisionCommand,I as Revision,ht as RevisionHistory,l as RevisionHistoryUI,$ as RevisionHistoryUtils,h as RevisionTracker,u as RevisionViewer,f as RevisionViewerEditor,at as RevisionViewerIntegration,fi as RevisionViewerLoadingOverlay,v as RevisionViewerUI,S as RevisionsRepository,d as RevisionsSidebar,ot as ShowChangeCommand};
|