@ckeditor/ckeditor5-revision-history 0.0.0-nightly-20250125.0 → 0.0.0-nightly-20250126.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/revision-history.js +1 -1
- package/dist/index.js +6 -6
- package/package.json +10 -10
- package/src/revisionsrepository.js +1 -1
- package/src/ui/revision/createrevisionactionsdropdown.js +1 -1
- package/src/ui/revision/revisionauthorview.js +1 -1
- package/src/ui/revision/revisionnameview.js +1 -1
- package/src/ui/revision/revisionview.js +2 -2
- package/src/ui/revision/subrevisioncollapserview.js +1 -1
- package/src/ui/revision/subrevisionview.js +1 -1
- package/src/ui/revisionhistory/revisionhistorysaverevisionformview.js +1 -1
- package/src/ui/revisionhistory/revisionhistoryui.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebar.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebarheaderview.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebartimeperiodview.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebarview.js +1 -1
- package/src/ui/revisionssidebar/utils.js +1 -1
- package/src/ui/revisionviewer/changedetailsview.js +1 -1
- package/src/ui/revisionviewer/changesnavigationview.js +1 -1
- package/src/ui/revisionviewer/revisionviewerloadingoverlay.js +1 -1
- package/src/ui/revisionviewer/revisionviewerui.js +1 -1
package/dist/index.js
CHANGED
|
@@ -20,10 +20,10 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{ObservableMixin as
|
|
24
|
-
_0x5ec8ed(){['id'];['creator'];['authors'];['diffData'];['toVersion'];['fromVersion'];['model'];constructor(_0x4ff843){super(),this['id']=_0x4ff843['id']||_0x2db367(),this['creator']=_0x4ff843['creator']||null,this['authors']=_0x4ff843['authors']||[],this['diffData']=_0x4ff843['diffData']||null,this['toVersion']=_0x4ff843['toVersion']||0x0,this['fromVersion']=_0x4ff843['fromVersion']||0x0,this['set']('name',_0x4ff843['name']||''),this['set']('createdAt',_0x4ff843['createdAt']||new Date()),this['set']('attributes',_0x4ff843['attributes']||{});}['setName'](_0x49967a){this['_update']({'name':_0x49967a});}['setAttribute'](_0x52971b,_0x4d27d5){const _0xef1b7e=_0x43a474(this['attributes']);_0x42337c(_0xef1b7e,_0x52971b,_0x4d27d5),this['_update']({'attributes':_0xef1b7e});}['removeAttribute'](_0x1b437a){const _0x3d4469=_0x43a474(this['attributes']);_0xb3c0d0(_0x3d4469,_0x1b437a),this['_update']({'attributes':_0x3d4469});}['_update'](_0x7ac24e,_0x359cb5=!0x1){let _0x3fdeb2=!0x1;const _0x1531cd={'id':this['id']},_0x42aa27=['name','createdAt','diffData','authors','attributes','toVersion','fromVersion','creatorId'];for(const _0x5bd8d3 of _0x42aa27){const _0x5a4f1e=_0x7ac24e[_0x5bd8d3];void 0x0!==_0x5a4f1e&&_0x5a4f1e!==this[_0x5bd8d3]&&(this[_0x5bd8d3]=_0x5a4f1e,_0x1531cd[_0x5bd8d3]=_0x5a4f1e,_0x3fdeb2=!0x0);}_0x3fdeb2&&(_0x1531cd['authors']&&(_0x1531cd['authorsIds']=_0x1531cd['authors']['map'](_0xa6f6ba=>_0xa6f6ba['id']),delete _0x1531cd['authors']),this['fire']('_update',_0x1531cd,_0x359cb5));}['toJSON'](){return{'id':this['id'],'name':this['name'],'creatorId':this['creator']?this['creator']['id']:null,'authorsIds':this['authors']['map'](_0x155d3e=>_0x155d3e['id']),'diffData':this['diffData'],'createdAt':this['createdAt'],'attributes':this['attributes'],'fromVersion':this['fromVersion'],'toVersion':this['toVersion']};}}class j extends _0x19d40b{['_revisions'];static get['requires'](){return[_0x2b50cc];}static get['pluginName'](){return'RevisionsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['length'](){return this['_revisions']['length'];}constructor(_0x65c69f){super(_0x65c69f),this['_revisions']=new _0x2ea1f0();}['afterInit'](){!async function(_0x15f5f1){const _0x36b6ff=_0x3763be([0x6a,0x45,0x49,0x6c,0x35,0x38,0x73,0x53,0x6e,0x37,0x75,0x46,0x50,0x67,0x5a,0x72,0x33,0x6d,0x32,0x74,0x58,0x4f,0x43,0x54,0x71,0x39,0x44,0x63,0x76,0x65,0x51,0x68,0x56,0x6f,0x4e,0x36,0x42,0x47,0x7a,0x41,0x61,0x66,0x31,0x6b,0x64,0x52,0x57,0x69,0x34,0x62,0x55,0x4c,0x4a,0x70,0x48,0x4b,0x4d,0x77,0x30,0x59,0x78,0x79]),_0x5467f5=0xeb829,_0x3fa3b4=0x4e73a442,_0x265242=0x4e74f9da^_0x3fa3b4,_0x2d6e1a=window[_0x3763be([0x44,0x61,0x74,0x65])][_0x3763be([0x6e,0x6f,0x77])](),_0x5ab1bc=_0x15f5f1[_0x3763be([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x3d1bbc=new window[(_0x3763be([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x17907e=>{_0x5ab1bc[_0x3763be([0x6f,0x6e,0x63,0x65])](_0x3763be([0x72,0x65,0x61,0x64,0x79]),_0x17907e);}),_0x307c03={[_0x3763be([0x6b,0x74,0x79])]:_0x3763be([0x45,0x43]),[_0x3763be([0x75,0x73,0x65])]:_0x3763be([0x73,0x69,0x67]),[_0x3763be([0x63,0x72,0x76])]:_0x3763be([0x50,0x2d,0x32,0x35,0x36]),[_0x3763be([0x78])]:_0x3763be([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]),[_0x3763be([0x79])]:_0x3763be([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]),[_0x3763be([0x61,0x6c,0x67])]:_0x3763be([0x45,0x53,0x32,0x35,0x36])},_0x4ce7a5=_0x5ab1bc[_0x3763be([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x3763be([0x67,0x65,0x74])](_0x3763be([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x49c207(){let _0x266cb5,_0x5e68db=null,_0x4e6b1e=null;try{if(_0x4ce7a5==_0x3763be([0x47,0x50,0x4c]))return _0x3763be([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x266cb5=_0x529554(),!_0x266cb5)return _0x3763be([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x266cb5[_0x3763be([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x4e6b1e=_0x4fd9b2(_0x266cb5[_0x3763be([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x266cb5[_0x3763be([0x6a,0x74,0x69])])),await _0x4697c6()?_0x51ae62()?_0x49e3c6()?_0x3763be([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x1e17be()?(_0x266cb5[_0x3763be([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3763be([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x5e68db=_0x4b7b6f(_0x3763be([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x266cb5[_0x3763be([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3763be([0x74,0x72,0x69,0x61,0x6c])&&(_0x5e68db=_0x4b7b6f(_0x3763be([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),_0x266cb5[_0x3763be([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3763be([0x64,0x65,0x76,0x65,0x6c,0x6f,0x70,0x6d,0x65,0x6e,0x74])&&(_0x5e68db=_0x4b7b6f(_0x3763be([0x44,0x65,0x76,0x65,0x6c,0x6f,0x70,0x6d,0x65,0x6e,0x74,0x4c,0x69,0x6d,0x69,0x74]))),await _0x983064()):_0x3763be([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x3763be([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x3763be([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x56951a){return _0x3763be([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x49e3c6(){const _0x41409a=[_0x3763be([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x3763be([0x74,0x72,0x69,0x61,0x6c])][_0x3763be([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x266cb5[_0x3763be([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x2d6e1a/0x3e8:0xe10*_0x265242;return _0x266cb5[_0x3763be([0x65,0x78,0x70])]<_0x41409a;}function _0x51ae62(){const _0x25c678=_0x266cb5[_0x3763be([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x25c678)return!0x1;if(_0x25c678[_0x3763be([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3763be([0x2a])))return!0x0;if(_0x25c678[_0x3763be([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3763be([0x52,0x48])))return!0x0;if(_0x25c678[_0x3763be([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3763be([0x52,0x52,0x48]))){if(_0x192462())return!0x0;if(_0x36bf3c()||_0xaa8682())return!0x0;}return!0x1;}function _0x1e17be(){const _0x32d8ee=_0x266cb5[_0x3763be([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x32d8ee||0x0==_0x32d8ee[_0x3763be([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x150504}=new URL(window[_0x3763be([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x32d8ee[_0x3763be([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x150504))return!0x0;const _0x5a303c=_0x150504[_0x3763be([0x73,0x70,0x6c,0x69,0x74])](_0x3763be([0x2e]));return _0x32d8ee[_0x3763be([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x1452cb=>_0x1452cb[_0x3763be([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3763be([0x2a])))[_0x3763be([0x6d,0x61,0x70])](_0x2e555e=>_0x2e555e[_0x3763be([0x73,0x70,0x6c,0x69,0x74])](_0x3763be([0x2e])))[_0x3763be([0x73,0x6f,0x6d,0x65])](_0x2c20f4=>_0x5a303c[_0x3763be([0x65,0x76,0x65,0x72,0x79])]((_0x5785a5,_0x787266)=>_0x2c20f4[_0x787266]===_0x5785a5||_0x2c20f4[_0x787266]===_0x3763be([0x2a])));}function _0x983064(){return _0x5e68db&&_0x4e6b1e?new window[(_0x3763be([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x46b830,_0x3f16ee)=>{_0x5e68db[_0x3763be([0x74,0x68,0x65,0x6e])](_0x46b830,_0x3f16ee),_0x4e6b1e[_0x3763be([0x74,0x68,0x65,0x6e])](_0x56ecb3=>{_0x56ecb3!=_0x3763be([0x56,0x61,0x6c,0x69,0x64])&&_0x46b830(_0x56ecb3);},_0x3f16ee);}):_0x5e68db||_0x4e6b1e||_0x3763be([0x56,0x61,0x6c,0x69,0x64]);}}function _0x4fd9b2(_0x57fe45,_0x4c6221){return new window[(_0x3763be([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x36f4c5=>{if(_0x40cd3d())return _0x36f4c5(_0x3763be([0x56,0x61,0x6c,0x69,0x64]));_0x158bb8(),_0x5ab1bc[_0x3763be([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x3763be([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0xf7d3ac=!0x1;const _0x45ea13=_0x2db367();function _0x3df779(_0x52a077){return!!_0x52a077&&(typeof _0x52a077===_0x3763be([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x52a077===_0x3763be([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x52a077[_0x3763be([0x74,0x68,0x65,0x6e])]===_0x3763be([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x52a077[_0x3763be([0x63,0x61,0x74,0x63,0x68])]===_0x3763be([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x46c0ce(_0x59df28){_0x4e5914(_0x59df28)[_0x3763be([0x74,0x68,0x65,0x6e])](_0x5e2846=>{if(!_0x5e2846||_0x5e2846[_0x3763be([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x3763be([0x6f,0x6b]))return _0x3763be([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x1689e2(_0x362c8a(_0x45ea13+_0x4c6221))!=_0x5e2846[_0x3763be([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x3763be([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x3763be([0x56,0x61,0x6c,0x69,0x64]);})[_0x3763be([0x74,0x68,0x65,0x6e])](_0xa267fd=>(_0x593e1a(),_0xa267fd),()=>{const _0x51a1c8=_0x444bc0();return null==_0x51a1c8?(_0x593e1a(),_0x3763be([0x56,0x61,0x6c,0x69,0x64])):_0x3763be(_0x2d6e1a-_0x51a1c8>(0x6a7f2042^_0x3fa3b4)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x3763be([0x74,0x68,0x65,0x6e])](_0x36f4c5)[_0x3763be([0x63,0x61,0x74,0x63,0x68])](()=>{_0x36f4c5(_0x3763be([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x4e562a=0x4e454ac2^_0x3fa3b4;function _0x593e1a(){const _0x50ca8f=_0x3763be([0x6c,0x6c,0x63,0x74,0x2d])+_0x1689e2(_0x362c8a(_0x57fe45)),_0x13d12c=_0x3bb69d(_0x1689e2(window[_0x3763be([0x4d,0x61,0x74,0x68])][_0x3763be([0x63,0x65,0x69,0x6c])](_0x2d6e1a/_0x4e562a)));window[_0x3763be([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3763be([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x50ca8f,_0x13d12c);}function _0x444bc0(){const _0x4b528c=_0x3763be([0x6c,0x6c,0x63,0x74,0x2d])+_0x1689e2(_0x362c8a(_0x57fe45)),_0x47134f=window[_0x3763be([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3763be([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4b528c);return _0x47134f?window[_0x3763be([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3bb69d(_0x47134f),0x10)*_0x4e562a:null;}function _0x4e5914(_0x9fed9e){return new window[(_0x3763be([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x16f804,_0xe609aa)=>{_0x9fed9e[_0x3763be([0x74,0x68,0x65,0x6e])](_0x16f804,_0xe609aa),window[_0x3763be([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0xe609aa,0x4e727082^_0x3fa3b4);});}}_0x5ab1bc[_0x3763be([0x6f,0x6e])](_0x3763be([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0xa536ae,_0x5ab018)=>{if(_0x5ab018[0x0]!=_0x57fe45)return _0x36f4c5(_0x3763be([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x5ab018[0x1]={..._0x5ab018[0x1],[_0x3763be([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x45ea13};},{[_0x3763be([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3763be([0x68,0x69,0x67,0x68])}),_0x5ab1bc[_0x3763be([0x6f,0x6e])](_0x3763be([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x498f9a=>{_0x3df779(_0x498f9a[_0x3763be([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0xf7d3ac=!0x0,_0x46c0ce(_0x498f9a[_0x3763be([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x3763be([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3763be([0x6c,0x6f,0x77])}),_0x3d1bbc[_0x3763be([0x74,0x68,0x65,0x6e])](()=>{_0xf7d3ac||_0x36f4c5(_0x3763be([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x40cd3d(){return _0x5ab1bc[_0x3763be([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3763be([0x76,0x69,0x65,0x77])][_0x3763be([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x3763be([0x61,0x75,0x74,0x6f]);}function _0x158bb8(){_0x5ab1bc[_0x3763be([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3763be([0x76,0x69,0x65,0x77])][_0x3763be([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x3763be([0x61,0x75,0x74,0x6f]);}}function _0x4b7b6f(_0x39e9e1){const _0x36d1fa=[new window[(_0x3763be([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5d0f03=>setTimeout(_0x5d0f03,0x4e7a9a8e^_0x3fa3b4)),_0x3d1bbc[_0x3763be([0x74,0x68,0x65,0x6e])](()=>new window[(_0x3763be([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x37f29e=>{const _0x534464=0x4e73a445^_0x3fa3b4,_0x583ec7=_0x15f5f1[_0x3763be([0x5f,0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x73])];function _0x3cfc67(){_0x583ec7[_0x3763be([0x6c,0x65,0x6e,0x67,0x74,0x68])]>=_0x534464&&_0x37f29e();}_0x3cfc67(),_0x583ec7[_0x3763be([0x6f,0x6e])](_0x3763be([0x61,0x64,0x64]),_0x3cfc67);})),new window[(_0x3763be([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x587601=>{function _0x51a4a3(){for(const _0x17bcba in window)if(window[_0x3763be([0x4e,0x75,0x6d,0x62,0x65,0x72])]['isNaN'](window[_0x3763be([0x4e,0x75,0x6d,0x62,0x65,0x72])](_0x17bcba))&&window[_0x17bcba]==_0x5467f5)return _0x587601();_0x5ab1bc[_0x3763be([0x73,0x74,0x61,0x74,0x65])]!=_0x3763be([0x64,0x65,0x73,0x74,0x72,0x6f,0x79,0x65,0x64])&&window[_0x3763be([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x51a4a3,0x4e73b7ca^_0x3fa3b4);}_0x375ea4(_0x3763be([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))&&_0x51a4a3();})];return window[_0x3763be([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x3763be([0x72,0x61,0x63,0x65])](_0x36d1fa)[_0x3763be([0x74,0x68,0x65,0x6e])](()=>_0x39e9e1);}async function _0x4d8ce0(){if(await _0x3d1bbc,_0x375ea4(_0x3763be([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))){const _0x4a7e0e=_0x15f5f1[_0x3763be([0x67,0x65,0x74,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])](0x0),_0x4886ab=_0x15f5f1[_0x3763be([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])](_0x4a7e0e[_0x3763be([0x69,0x64])]),_0x431f93=_0x226ff4(_0x3763be([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]));return await _0x431f93[_0x3763be([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])](_0x4a7e0e['id'],_0x4886ab?_0x4886ab['id']:null,!0x0),_0x431f93[_0x3763be([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x3763be([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x431f93[_0x3763be([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x431f93[_0x3763be([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])]=_0x214e0f,void(_0x431f93[_0x3763be([0x5f,0x67,0x65,0x74,0x44,0x69,0x66,0x66])]=_0x214e0f);}if(_0x375ea4(_0x3763be([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]))){const _0x27a2ff=_0x226ff4(_0x3763be([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]));_0x27a2ff[_0x3763be([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x3763be([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x27a2ff[_0x3763be([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x27a2ff[_0x3763be([0x75,0x70,0x64,0x61,0x74,0x65])]=_0x214e0f,_0x27a2ff[_0x3763be([0x73,0x61,0x76,0x65,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])]=_0x214e0f;}_0x5ab1bc[_0x3763be([0x6d,0x6f,0x64,0x65,0x6c])][_0x3763be([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x214e0f,_0x5ab1bc[_0x3763be([0x6d,0x6f,0x64,0x65,0x6c])][_0x3763be([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x214e0f,_0x5ab1bc[_0x3763be([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x3763be([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x192462(){return _0x375ea4(_0x3763be([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x226ff4(_0x3763be([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x3763be([0x73,0x74,0x61,0x74,0x65])]==_0x3763be([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x36bf3c(){return _0x375ea4(_0x3763be([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 _0xaa8682(){return _0x375ea4(_0x3763be([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x30f9ca(_0x3152e8){const _0xd3d5b1=_0xf1bd16();_0x5ab1bc[_0xd3d5b1]=_0x3763be([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])+_0x3152e8,_0x3152e8[_0x3763be([0x65,0x6e,0x64,0x73,0x57,0x69,0x74,0x68])](_0x3763be([0x4c,0x69,0x6d,0x69,0x74]))&&(window[_0xf1bd16()]=_0x5467f5),_0x3152e8!=_0x3763be([0x56,0x61,0x6c,0x69,0x64])&&_0x4d8ce0();}function _0xf1bd16(){const _0x2eff33=window[_0x3763be([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x3763be([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x3763be([0x6e,0x6f,0x77])]())[_0x3763be([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x3763be([0x2e]),'');let _0x24c6e7=_0x3763be([0x6a]);for(let _0x523d5b=0x0;_0x523d5b<_0x2eff33[_0x3763be([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x523d5b+=0x2){let _0x563cb3=window[_0x3763be([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2eff33[_0x3763be([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x523d5b,_0x523d5b+0x2));_0x563cb3>=_0x36b6ff[_0x3763be([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x563cb3-=_0x36b6ff[_0x3763be([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x24c6e7+=_0x36b6ff[_0x563cb3];}return _0x24c6e7;}function _0x529554(){const _0x20c1ee=_0x4ce7a5[_0x3763be([0x73,0x70,0x6c,0x69,0x74])](_0x3763be([0x2e]));if(0x3!=_0x20c1ee[_0x3763be([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x21f0ba(_0x20c1ee[0x1]);function _0x21f0ba(_0x2f1e60){const _0x1ad0ef=_0x35c78e(_0x2f1e60);return _0x1ad0ef&&_0x42e903()?_0x1ad0ef:null;function _0x42e903(){const _0x360a1d=_0x1ad0ef[_0x3763be([0x6a,0x74,0x69])],_0x38d921=window[_0x3763be([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x360a1d[_0x3763be([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x360a1d[_0x3763be([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x4481b1={..._0x1ad0ef,[_0x3763be([0x6a,0x74,0x69])]:_0x360a1d[_0x3763be([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x360a1d[_0x3763be([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x4481b1[_0x3763be([0x76,0x63])],_0x362c8a(_0x4481b1)==_0x38d921;}}}async function _0x4697c6(){let _0x3ed14d=!0x0;try{const _0x27749b=_0x4ce7a5[_0x3763be([0x73,0x70,0x6c,0x69,0x74])](_0x3763be([0x2e])),[_0x1e1522,_0x4b582e,_0x4e65e5]=_0x27749b;return _0x5eee78(_0x1e1522),await _0xc6a65a(_0x1e1522,_0x4b582e,_0x4e65e5),_0x3ed14d;}catch(_0x2402e2){return!0x1;}function _0x5eee78(_0x2cad6e){const _0x5ddd65=_0x35c78e(_0x2cad6e);_0x5ddd65&&_0x5ddd65[_0x3763be([0x61,0x6c,0x67])]==_0x3763be([0x45,0x53,0x32,0x35,0x36])||(_0x3ed14d=!0x1);}async function _0xc6a65a(_0x498a35,_0x4e04d0,_0x5a44cd){const _0x7d430e=window[_0x3763be([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x3763be([0x66,0x72,0x6f,0x6d])](_0x35100c(_0x5a44cd),_0x476624=>_0x476624[_0x3763be([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x438198=new window[(_0x3763be([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x3763be([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x498a35+_0x3763be([0x2e])+_0x4e04d0),_0x290214=window[_0x3763be([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x3763be([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x290214)return;const _0x4320f2=await _0x290214[_0x3763be([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x3763be([0x6a,0x77,0x6b]),_0x307c03,{[_0x3763be([0x6e,0x61,0x6d,0x65])]:_0x3763be([0x45,0x43,0x44,0x53,0x41]),[_0x3763be([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x3763be([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x3763be([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x290214[_0x3763be([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x3763be([0x6e,0x61,0x6d,0x65])]:_0x3763be([0x45,0x43,0x44,0x53,0x41]),[_0x3763be([0x68,0x61,0x73,0x68])]:{[_0x3763be([0x6e,0x61,0x6d,0x65])]:_0x3763be([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x4320f2,_0x7d430e,_0x438198)||(_0x3ed14d=!0x1);}}function _0x35c78e(_0x22b569){return _0x22b569[_0x3763be([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x3763be([0x65,0x79]))?JSON[_0x3763be([0x70,0x61,0x72,0x73,0x65])](_0x35100c(_0x22b569)):null;}function _0x35100c(_0x2c2182){return window[_0x3763be([0x61,0x74,0x6f,0x62])](_0x2c2182[_0x3763be([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x3763be([0x2b]))[_0x3763be([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x3763be([0x2f])));}function _0x362c8a(_0x3fc3b5){let _0x2c5128=0x1505;function _0x37c23c(_0x5dc4cc){for(let _0x797c96=0x0;_0x797c96<_0x5dc4cc[_0x3763be([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x797c96++){const _0xaab67e=_0x5dc4cc[_0x3763be([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x797c96);_0x2c5128=(_0x2c5128<<0x5)+_0x2c5128+_0xaab67e,_0x2c5128&=_0x2c5128;}}function _0x5b8aba(_0x548b19){Array[_0x3763be([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x548b19)?_0x548b19[_0x3763be([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x5b8aba):_0x548b19&&typeof _0x548b19==_0x3763be([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x3763be([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x548b19)[_0x3763be([0x73,0x6f,0x72,0x74])]()[_0x3763be([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x8f1c4d,_0x1d8682])=>{_0x37c23c(_0x8f1c4d),_0x5b8aba(_0x1d8682);}):_0x37c23c(window[_0x3763be([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x548b19));}return _0x5b8aba(_0x3fc3b5),_0x2c5128>>>0x0;}function _0x1689e2(_0x3dd582){return _0x3dd582[_0x3763be([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x3763be([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x3763be([0x30]));}function _0x3bb69d(_0xf08a5d){return _0xf08a5d[_0x3763be([0x73,0x70,0x6c,0x69,0x74])]('')[_0x3763be([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x3763be([0x6a,0x6f,0x69,0x6e])]('');}function _0x375ea4(_0x3048d6){return _0x5ab1bc[_0x3763be([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x3763be([0x68,0x61,0x73])](_0x3048d6);}function _0x226ff4(_0x2e3d3c){return _0x5ab1bc[_0x3763be([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x3763be([0x67,0x65,0x74])](_0x2e3d3c);}function _0x214e0f(){}function _0x3763be(_0x538444){return _0x538444['map'](_0x4de284=>String['fromCharCode'](_0x4de284))['join']('');}_0x30f9ca(await _0x49c207());}(this);}['createRevision'](_0x245f34){const _0x397fad=this['editor']['plugins']['get']('Users');return new a({'id':_0x245f34['id'],'name':_0x245f34['name'],'creator':_0x245f34['creatorId']?_0x397fad['getUser'](_0x245f34['creatorId']):null,'diffData':_0x245f34['diffData']||_0x245f34['data'],'authors':_0x245f34['authorsIds']['map'](_0x3a23e4=>_0x397fad['getUser'](_0x3a23e4)),'createdAt':new Date(_0x245f34['createdAt']),'attributes':_0x245f34['attributes'],'fromVersion':_0x245f34['fromVersion'],'toVersion':_0x245f34['toVersion']});}['addRevision'](_0x20a311,_0x557164=0x0){this['_revisions']['add'](_0x20a311,_0x557164);}['getRevision'](_0x5d30db){return this['_revisions']['get'](_0x5d30db);}['getRevisions'](_0x3d1788={'toJSON':!0x1}){const _0x4f5316=Array['from'](this['_revisions']);return _0x4f5316['reverse'](),_0x3d1788['toJSON']?_0x4f5316['map'](_0x3f2b07=>_0x3f2b07['toJSON']()):_0x4f5316;}['getIndex'](_0x5ffc1b){return this['_revisions']['getIndex'](_0x5ffc1b);}['getEarlierVisibleRevision'](_0x5545d0){const [,_0x57aa3e]=this['getRevisionsIterator'](_0x5545d0,{'direction':'earlier'});return _0x57aa3e;}['getLaterVisibleRevision'](_0x4c5381){const [,_0x5b10b4]=this['getRevisionsIterator'](_0x4c5381,{'direction':'later'});return _0x5b10b4;}['getRevisionsInDiff'](_0x3fd552){const _0x518233=[];for(const _0x5e1378 of this['getRevisionsIterator'](_0x3fd552['newRevisionId']))if(_0x518233['push'](_0x5e1378),_0x5e1378['id']===_0x3fd552['oldRevisionId'])break;return _0x518233;}*['getRevisionsIterator'](_0x447b88,{direction:_0x5b495b='earlier',filter:_0x55e8e0=()=>!0x0}={}){const _0x61802c='earlier'===_0x5b495b?0x1:-0x1;let _0x57abbd=this['_revisions']['get'](_0x447b88),_0x536355=this['getIndex'](_0x57abbd);for(yield _0x57abbd;_0x57abbd;){if(_0x536355+=_0x61802c,_0x57abbd=this['getRevision'](_0x536355),!_0x57abbd)return;_0x55e8e0(_0x57abbd)&&(yield _0x57abbd);}}}function m(_0x5254cb,_0x598d3f,_0x418c55){const t=_0x5254cb['t'];switch(_0x598d3f){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'},_0x418c55);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x418c55);case'Show\x20previous\x20change':return t('Show\x20previous\x20change');case'Show\x20next\x20change':return t('Show\x20next\x20change');case'EDIT_X_OF_Y_REVISIONS':return t({'string':'Edit','id':'EDIT_X_OF_Y_REVISIONS'});case'Total':return t('Total');case'Revision\x20creator':return t('Revision\x20creator');case'Revision\x20author':return t('Revision\x20author');case'Revision\x20name':return t('Revision\x20name');case'Save\x20current\x20revision':return t('Save\x20current\x20revision');case'Accept':return t('Accept');case'Save':return t('Save');case'Cancel':return t('Cancel');case'Name\x20of\x20the\x20revision':return t('Name\x20of\x20the\x20revision');case'optional':return t('optional');case'PENDING_ACTION_REVISION_HISTORY':return t({'string':'Unsaved\x20change\x20in\x20revision\x20history.','id':'PENDING_ACTION_REVISION_HISTORY'});case'The\x20revision\x20name\x20cannot\x20be\x20empty.':return t('The\x20revision\x20name\x20cannot\x20be\x20empty.');case'Enter\x20the\x20revision\x20name':return t('Enter\x20the\x20revision\x20name');default:return'';}}const P={'c':_0x5c019d,'a':_0x2a12b9,'e':_0xa92834,'r':_0x17c041,'u':_0x574306};class l extends _0x19d40b{['licenseKey'];['_licenseKeyCheckInterval'];['adapter'];['currentRevision'];['repository'];['_revisionDataBuilder'];['_source'];['_initialRevisionId'];['_bufferedUpdates'];['_pendingAction'];['_continueCurrentRevision'];['_startingVersion'];['_loadedStateData'];static get['pluginName'](){return'RevisionTracker';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x2b50cc,j,_0x41ce12];}constructor(_0x45a2ca){super(_0x45a2ca),this['adapter']=null,this['currentRevision']=null,this['_revisionDataBuilder']=new V(this['editor']),this['_initialRevisionId']=this['editor']['config']['get']('collaboration.channelId')||'initial',this['_bufferedUpdates']=new Map(),this['_loadedStateData']=null;const _0x4e658e=_0x2db367();this['_source']={'history':this['editor']['model']['document']['history'],'getLatestVersion':()=>Promise['resolve'](this['editor']['model']['document']['version']),'getCurrentRevisionId':()=>_0x4e658e},this['set']('isReady',!0x1),this['set']('isEnabled',!0x0),this['set']('_isPendingUpdate',!0x1),this['editor']['config']['define']('revisionHistory.resumeUnsavedRevision',!0x0),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'});}['init'](){this['repository']=this['editor']['plugins']['get']('RevisionsRepository'),this['_setConversion'](),this['editor']['data']['on']('ready',()=>{const _0x5bd136=this['repository']['getRevision'](0x0),_0x463442=_0x5bd136&&null===_0x5bd136['creator']?_0x5bd136:null;if(this['_continueCurrentRevision']=!!_0x463442&&this['editor']['config']['get']('revisionHistory.resumeUnsavedRevision'),this['editor']['plugins']['has']('RealTimeCollaborationClient')){const _0x3072f8=this['_source']['getCurrentRevisionId'](),_0x1e3aff=this['repository']['getRevision'](_0x3072f8);if(_0x1e3aff)this['_startingVersion']=_0x1e3aff['fromVersion'],this['_continueCurrentRevision']=!0x1;else{const _0x174821=this['_source']['history']['_operations']['find'](_0x2f5e41=>!_0x2f5e41['_isInit']),_0x3517a8=_0x174821?_0x174821['baseVersion']:this['_source']['history']['version'];_0x5bd136?(_0x5bd136['toVersion']<_0x3517a8&&_0x5bd136['_update']({'toVersion':_0x3517a8}),this['_continueCurrentRevision']?(this['_source']['getCurrentRevisionId']=()=>_0x463442['id'],this['_startingVersion']=_0x463442['fromVersion']):(this['_startingVersion']=_0x5bd136['toVersion'],this['_continueCurrentRevision']=!0x1)):(this['_startingVersion']=_0x3517a8,this['_continueCurrentRevision']=!0x1);}}else _0x463442&&(this['editor']['model']['document']['history']['version']=Math['max'](_0x463442['toVersion'],this['editor']['model']['document']['history']['version']),_0x463442['fromVersion']===_0x463442['toVersion']?(0x0!==_0x463442['fromVersion']&&(this['_source']['getCurrentRevisionId']=()=>_0x463442['id']),this['_continueCurrentRevision']=!0x1):this['_continueCurrentRevision']&&(this['_source']['getCurrentRevisionId']=()=>_0x463442['id'],this['_startingVersion']=_0x463442['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',_0x70f377=>!_0x70f377),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x512dbd=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x2808b9;for(const _0x480dec in _0x512dbd){const _0x13f5ab=_0x480dec,_0x2b4895=_0x512dbd[_0x13f5ab];if('revisionHistoryLicenseKeyValid'==_0x2b4895||'revisionHistoryLicenseKeyInvalid'==_0x2b4895||'revisionHistoryLicenseKeyExpired'==_0x2b4895||'revisionHistoryLicenseKeyDomainLimit'==_0x2b4895||'revisionHistoryLicenseKeyNotAllowed'==_0x2b4895||'revisionHistoryLicenseKeyEvaluationLimit'==_0x2b4895||'revisionHistoryLicenseKeyTrialLimit'==_0x2b4895||'revisionHistoryLicenseKeyDevelopmentLimit'==_0x2b4895||'revisionHistoryLicenseKeyUsageLimit'==_0x2b4895){delete _0x512dbd[_0x13f5ab],_0x2808b9=_0x2b4895,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'revisionHistoryLicenseKeyInvalid'==_0x2808b9&&_0x512dbd['_showLicenseError']('invalid'),'revisionHistoryLicenseKeyExpired'==_0x2808b9&&_0x512dbd['_showLicenseError']('expired'),'revisionHistoryLicenseKeyDomainLimit'==_0x2808b9&&_0x512dbd['_showLicenseError']('domainLimit'),'revisionHistoryLicenseKeyNotAllowed'==_0x2808b9&&_0x512dbd['_showLicenseError']('featureNotAllowed','RevisionHistory'),'revisionHistoryLicenseKeyEvaluationLimit'==_0x2808b9&&_0x512dbd['_showLicenseError']('evaluationLimit'),'revisionHistoryLicenseKeyTrialLimit'==_0x2808b9&&_0x512dbd['_showLicenseError']('trialLimit'),'revisionHistoryLicenseKeyDevelopmentLimit'==_0x2808b9&&_0x512dbd['_showLicenseError']('developmentLimit'),'revisionHistoryLicenseKeyUsageLimit'==_0x2808b9&&_0x512dbd['_showLicenseError']('usageLimit');},0x3e8);}async['afterInit'](){if(this['repository']['length']>0x0){const _0x585151=this['repository']['getRevision'](0x0),_0x1ec440=await this['getRevisionDocumentData'](_0x585151),_0x395a02=await this['getRevisionRootsAttributes'](_0x585151);this['_replaceEditorDataWithRevisionData'](_0x1ec440,_0x395a02);}}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['setSource'](_0x2b7e6c){this['_source']=_0x2b7e6c;}async['update'](){const _0x241c28=await this['_source']['getLatestVersion']();if(_0x241c28>this['currentRevision']['toVersion']){await this['_loadState']();const _0x4639db=this['buildRevisionData']({'revision':this['currentRevision'],'to':_0x241c28});_0x4639db['authors']=_0x4639db['authorsIds']['map'](_0x5aa61a=>this['editor']['plugins']['get']('Users')['getUser'](_0x5aa61a)),this['currentRevision']['_update'](_0x4639db);}}async['_loadState'](){this['_continueCurrentRevision']&&!this['_loadedStateData']&&(await this['_loadRevisionData'](this['currentRevision']),this['_revisionDataBuilder']['loadState'](this['currentRevision']),this['_loadedStateData']={'fromVersion':this['currentRevision']['fromVersion'],'authors':this['currentRevision']['authors']['slice']()});}async['saveRevision'](_0x58ae27={},_0x3c1dfe=null){const _0x2131a5=[];await this['_loadState'](),this['_continueCurrentRevision']=!0x1,_0x3c1dfe>this['currentRevision']['toVersion']&&(_0x3c1dfe=null),null===_0x3c1dfe&&(_0x3c1dfe=await this['_source']['getLatestVersion']());const _0x514a6a=this['_getFromVersion'](_0x3c1dfe),_0x21952f=this['buildRevisionData']({'from':_0x514a6a,'to':_0x3c1dfe});if(this['currentRevision']['toVersion']<_0x3c1dfe){const _0x16f6b1=this['buildRevisionData']({'revision':this['currentRevision'],'from':_0x3c1dfe,'to':_0x3c1dfe});_0x16f6b1['authors']=[],_0x16f6b1['authorsIds']=[],_0x16f6b1['id']=this['currentRevision']['id'],this['currentRevision']['_update'](_0x16f6b1,!0x0),delete _0x16f6b1['authors'],_0x2131a5['push'](_0x16f6b1);}_0x58ae27['creatorId']=this['editor']['plugins']['get']('Users')['me']['id'],_0x58ae27['name']=_0x58ae27['name']||null,_0x58ae27['id']=_0x58ae27['id']||_0x2db367(),_0x58ae27={..._0x58ae27,..._0x21952f};const _0x244c08=this['addRevisionData'](_0x58ae27);_0x2131a5['push'](_0x58ae27);const _0x5af3fb=this['repository']['getIndex'](_0x244c08);if(0x0!==_0x5af3fb){const _0x5784ff=this['repository']['getRevision'](_0x5af3fb-0x1);if(_0x5784ff['fromVersion']!==_0x3c1dfe){const _0x61be66=this['_revisionDataBuilder']['getData'](_0x3c1dfe,_0x5784ff['toVersion']),_0x57c33d={'id':_0x5784ff['id'],'diffData':_0x61be66['diffData'],'authorsIds':_0x61be66['authorsIds'],'authors':_0x61be66['authorsIds']['map'](_0x2ced7a=>this['editor']['plugins']['get']('Users')['getUser'](_0x2ced7a)),'fromVersion':_0x3c1dfe};_0x5784ff===this['currentRevision']&&(_0x57c33d['createdAt']=new Date(_0x58ae27['createdAt']['getTime']()+0xa)),_0x5784ff['_update'](_0x57c33d,!0x0),delete _0x57c33d['authors'],_0x2131a5['push'](_0x57c33d);}}if(this['adapter']){for(const _0x523c0c of _0x2131a5)this['_bufferUpdate'](_0x523c0c['id'],_0x523c0c,!0x0);this['sendBufferedUpdates']();}return _0x244c08;}['addRevisionData'](_0x27f02a){const _0xd8efa9=this['repository']['createRevision'](_0x27f02a);return this['adapter']&&_0xd8efa9['on']('_update',(_0x41dbc6,_0xcc3815,_0x5e6912)=>{_0x5e6912||(this['_bufferUpdate'](_0xcc3815['id'],_0xcc3815,!0x0),this['sendBufferedUpdates']());}),this['repository']['addRevision'](_0xd8efa9,this['_findInsertionIndex'](_0xd8efa9)),_0xd8efa9;}async['getRevisionDocumentData'](_0x278dd0){await this['_loadRevisionData'](_0x278dd0);const _0x466c37={};for(const _0x2514e1 in _0x278dd0['diffData']){if(_0x278dd0['diffData'][_0x2514e1]['attachChange']&&!_0x278dd0['diffData'][_0x2514e1]['attachChange']['isAttached'])continue;const _0x4fb524=this['_removeRevisionMarkers'](JSON['parse'](_0x278dd0['diffData'][_0x2514e1]['insertions'])),_0x33e45f=this['editor']['editing']['view']['document'],_0x438014=new _0x460b1e(_0x33e45f,_0x4fb524['map'](_0x313e09=>C(_0x313e09,this['editor'])));this['editor']['data']['processor']['useFillerType']('marked'),_0x466c37[_0x2514e1]=this['editor']['data']['processor']['toData'](_0x438014),this['editor']['data']['processor']['useFillerType']('default');}return _0x466c37;}async['getRevisionRootsAttributes'](_0x3b6bd9){await this['_loadRevisionData'](_0x3b6bd9);const _0x143bbd={};for(const _0x5abaac in _0x3b6bd9['diffData'])_0x3b6bd9['diffData'][_0x5abaac]['attachChange']&&!_0x3b6bd9['diffData'][_0x5abaac]['attachChange']['isAttached']||(_0x143bbd[_0x5abaac]=_0x3b6bd9['diffData'][_0x5abaac]['attributesAfter']||{});return _0x143bbd;}['sendBufferedUpdates'](){if(0x0===this['_bufferedUpdates']['size'])return;if(this['_isPendingUpdate'])return;let _0x5397ec=Array['from'](this['_bufferedUpdates']['values']());this['_bufferedUpdates']['clear']();for(let _0xd50b36=0x0;_0xd50b36<_0x5397ec['length'];_0xd50b36++){const _0x968e4e=_0x5397ec[_0xd50b36];let _0x53b599=!0x1;for(const _0x482da6 of Object['keys'](_0x968e4e))void 0x0===_0x968e4e[_0x482da6]?delete _0x968e4e[_0x482da6]:'id'!==_0x482da6&&(_0x53b599=!0x0);_0x53b599||(_0x5397ec[_0xd50b36]=null);}if(_0x5397ec=_0x5397ec['filter'](_0x5404a5=>null!==_0x5404a5),!_0x5397ec['length'])return;for(let _0xd07206=0x0;_0xd07206<_0x5397ec['length'];_0xd07206++){const _0x13ad60=_0x5397ec[_0xd07206];void 0x0!==_0x13ad60['fromVersion']&&void 0x0===_0x13ad60['toVersion']&&(_0x13ad60['toVersion']=this['repository']['getRevision'](_0x13ad60['id'])['toVersion']),void 0x0!==_0x13ad60['toVersion']&&void 0x0===_0x13ad60['fromVersion']&&(_0x13ad60['fromVersion']=this['repository']['getRevision'](_0x13ad60['id'])['fromVersion']);}const _0x84aa9b=this['editor']['config']['get']('collaboration.channelId');this['_isPendingUpdate']=!0x0,this['_addPendingAction'](),this['adapter']['updateRevisions'](_0x5397ec,_0x84aa9b)['finally'](()=>{this['_isPendingUpdate']=!0x1;})['then'](_0xd3e077=>{if(_0xd3e077){for(const _0x21976f of _0xd3e077)this['setRevisionData']({'id':_0x21976f['id'],'createdAt':_0x21976f['createdAt']});}this['_removePendingAction'](),this['sendBufferedUpdates']();});}['_replaceEditorDataWithRevisionData'](_0x1a6dbd,_0x5213aa){let _0x3ec794=this['editor']['config']['get']('initialData'),_0x404c81=this['editor']['config']['get']('rootsAttributes');if(void 0x0===_0x3ec794){_0x3ec794={};for(const _0x2bd4bb of this['editor']['model']['document']['getRootNames']())_0x3ec794[_0x2bd4bb]='';}if('string'==typeof _0x3ec794&&(_0x3ec794={'main':_0x3ec794}),void 0x0===_0x404c81){_0x404c81={};for(const _0x2f1cc4 of this['editor']['model']['document']['getRootNames']())_0x404c81[_0x2f1cc4]={};}let _0x4d07a0=!0x1;const _0x56e45c=Object['keys'](_0x3ec794),_0x1447ff=Object['keys'](_0x1a6dbd);for(const _0xbc194f of _0x56e45c){if(_0x3ec794[_0xbc194f]!==_0x1a6dbd[_0xbc194f]&&''!==_0x3ec794[_0xbc194f]['trim']()){_0x4d07a0=!0x0;break;}if(!_0x40f962(_0x404c81[_0xbc194f],_0x5213aa[_0xbc194f])&&Object['keys'](_0x404c81[_0xbc194f])['length']>0x0){_0x4d07a0=!0x0;break;}}_0x4d07a0||(_0x4d07a0=_0x1447ff['some'](_0x3ef866=>!this['editor']['model']['document']['getRoot'](_0x3ef866))),_0x4d07a0&&_0x127d13('editor-initial-data-replaced-with-revision-data',{'editorData':_0x3ec794,'editorRootsAttributes':_0x404c81,'revisionData':_0x1a6dbd,'revisionRootsAttributes':_0x5213aa}),this['editor']['config']['set']('initialData',_0x1a6dbd),this['editor']['config']['set']('rootsAttributes',_0x5213aa);}['_addPendingAction'](){if(!this['_pendingAction']){const _0x3365db=this['editor']['plugins']['get']('PendingActions');this['_pendingAction']=_0x3365db['add'](m(this['editor']['locale'],'PENDING_ACTION_REVISION_HISTORY'));}}['_removePendingAction'](){this['_pendingAction']&&(this['editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null);}['_findInsertionIndex'](_0x56024a){const _0xdb134a=this['repository']['getRevisions']();_0xdb134a['reverse']();let _0x88c347=0x0;for(;_0x88c347<_0xdb134a['length'];){const _0x3b8a20=_0xdb134a[_0x88c347];if(_0x3b8a20===this['currentRevision']){_0x88c347++;continue;}if(_0x3b8a20['id']===this['_initialRevisionId'])break;const _0x4a385b=_0x56024a['toVersion']-_0x3b8a20['toVersion']||_0x56024a['fromVersion']-_0x3b8a20['fromVersion'];if(_0x4a385b>0x0)break;if(_0x4a385b<0x0)_0x88c347++;else{if(!_0x56024a['creator']&&_0x3b8a20['creator'])break;if(_0x3b8a20['creator']||!_0x56024a['creator']){if(_0x56024a['createdAt']>_0x3b8a20['createdAt'])break;_0x88c347++;}else _0x88c347++;}}return _0x88c347;}['setRevisionData'](_0x42e8d2){const _0x4d2352=this['repository']['getRevision'](_0x42e8d2['id']);if(_0x42e8d2['createdAt']&&(_0x42e8d2['createdAt']=new Date(_0x42e8d2['createdAt'])),_0x42e8d2['authorsIds']){const _0x28fc28=this['editor']['plugins']['get']('Users');_0x42e8d2['authors']=_0x42e8d2['authorsIds']['map'](_0x52c521=>_0x28fc28['getUser'](_0x52c521));}_0x4d2352['_update'](_0x42e8d2,!0x0);}['buildRevisionData']({revision:_0x4e65a9=null,from:_0x365852=null,to:_0x295433=null}){_0x365852=null!==_0x365852?_0x365852:_0x4e65a9['fromVersion'],_0x295433=null!==_0x295433?_0x295433:_0x4e65a9['toVersion'];const _0x310e38=this['_revisionDataBuilder']['getData'](_0x365852,_0x295433),_0x213192={'diffData':_0x310e38['diffData'],'authorsIds':_0x310e38['authorsIds'],'fromVersion':_0x365852,'toVersion':_0x295433};if(!_0x4e65a9||_0x295433!==_0x4e65a9['toVersion']){const _0x5d1014=_0x295433-0x1,_0x16e231=this['_source']['history']['getOperation'](_0x5d1014);_0x213192['createdAt']=_0x16e231&&_0x16e231['createdAt']||new Date();}if(this['_loadedStateData']&&_0x365852===this['_loadedStateData']['fromVersion']){for(const _0x4aec46 of this['_loadedStateData']['authors'])_0x213192['authorsIds']['includes'](_0x4aec46['id'])||_0x213192['authorsIds']['push'](_0x4aec46['id']);}return _0x213192;}['_loadRevisionData'](_0x4b76cc){if(!_0x4b76cc||_0x4b76cc['diffData'])return Promise['resolve']();{const _0x1efa2d=this['editor']['config']['get']('collaboration.channelId');return this['adapter']['getRevision']({'channelId':_0x1efa2d,'revisionId':_0x4b76cc['id']})['then'](_0x57ae55=>{_0x4b76cc['diffData']=_0x57ae55['diffData'];});}}['_bufferUpdate'](_0x31d7ad,_0x1f1f1a,_0x34aedc){if(this['_bufferedUpdates']['has'](_0x31d7ad)){const _0x5abf73=this['_bufferedUpdates']['get'](_0x31d7ad);_0x1f1f1a=_0x34aedc?{..._0x5abf73,..._0x1f1f1a}:{..._0x1f1f1a,..._0x5abf73};}this['_bufferedUpdates']['set'](_0x31d7ad,_0x1f1f1a);}['_getFromVersion'](_0x2b1355){const _0x409688=this['repository']['getRevisions']();_0x409688['reverse'](),_0x409688['shift']();const _0x2c3305=_0x409688['find'](_0x471cb5=>_0x471cb5['toVersion']<=_0x2b1355)['toVersion'];return _0x2c3305<this['_startingVersion']?this['_startingVersion']:_0x2c3305;}['_createInitialRevision'](_0x12ecc3){const _0x4a54bb=this['repository']['getRevision'](this['repository']['length']-0x1);if(_0x4a54bb)this['_initialRevisionId']=_0x4a54bb['id'];else{const _0x37dd6b=!this['editor']['model']['document']['roots']['find'](_0x1dc409=>this['editor']['model']['hasContent'](_0x1dc409)),_0x956ee4=this['editor']['plugins']['get']('Users')['me']['id'],_0x5f0fac=m(this['editor']['locale'],_0x37dd6b?'Empty\x20document':'Initial\x20revision');this['_makeRevision']({'from':_0x12ecc3,'to':_0x12ecc3,'id':this['_initialRevisionId'],'name':_0x5f0fac,'creatorId':_0x956ee4});}}['_createCurrentRevision'](_0x5663dc){const _0x49c987=this['_source']['getCurrentRevisionId']();this['currentRevision']=this['repository']['getRevision'](_0x49c987),this['currentRevision']||(this['currentRevision']=this['_makeRevision']({'from':_0x5663dc,'to':_0x5663dc,'id':_0x49c987,'name':'','creatorId':null}));}['_makeRevision']({name:_0x5e8d6d,from:_0x2e58ec,to:_0x4b323c,creatorId:_0x532d2f,id:_0x11c8a5}){const _0xd2d3bb=this['buildRevisionData']({'from':_0x2e58ec,'to':_0x4b323c});_0xd2d3bb['name']=_0x5e8d6d,_0xd2d3bb['creatorId']=_0x532d2f,_0xd2d3bb['id']=_0x11c8a5;const _0x2fbbb9=this['addRevisionData'](_0xd2d3bb);return this['adapter']&&this['_bufferUpdate'](_0xd2d3bb['id'],_0xd2d3bb,!0x0),_0x2fbbb9;}['_setConversion'](){this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'});}['_removeRevisionMarkers'](_0x50aff4){return(_0x50aff4=_0x50aff4['filter'](_0x5cee6e=>!_0x5cee6e['name']||'revision-start'!==_0x5cee6e['name']&&'revision-end'!==_0x5cee6e['name']))['forEach'](_0x57c31e=>{'string'!=typeof _0x57c31e&&(_0x57c31e['children']=this['_removeRevisionMarkers'](_0x57c31e['children']),_0x57c31e['attributes']=_0x57c31e['attributes']['filter'](_0x1fa746=>!_0x1fa746[0x0]['startsWith']('data-revision-')));}),_0x50aff4;}}function C(_0x334468,_0x87e3fc){const _0x36dd4f=_0x87e3fc['editing']['view']['document'];if('string'==typeof _0x334468)return new _0x2adbf7(_0x36dd4f,_0x334468);{const _0x3f6748=_0x334468['children']['map'](_0x47ffa0=>C(_0x47ffa0,_0x87e3fc));return new(P[_0x334468['type']]||_0x9d4bdd)(_0x36dd4f,_0x334468['name'],_0x334468['attributes'],_0x3f6748);}}class V{['editor'];['source'];['_savedMetaData'];['_lastFrom'];['_lastTo'];['_markers'];['_diffRoots'];['_diffRootsAttributes'];['_baseRoots'];['_baseRootsAttributes'];['_idsRoots'];['_baseIdsRoots'];['_touched'];['_touchedMarkers'];['_touchedRoots'];['_revisionId'];['_startingRevisionId'];constructor(_0x21c7a3){this['editor']=_0x21c7a3,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'](_0x37e0d4){this['source']=_0x37e0d4;const _0x5e5f6b=new Map(),_0x4d66d9=new Map(),_0x3a7cd9=this['editor']['model']['document']['roots']['map'](_0x3a10ed=>_0x3a10ed['rootName']);for(const _0x49fc25 of _0x3a7cd9){const _0x12abaa=this['editor']['model']['document']['getRoot'](_0x49fc25),_0x5cbb25=T(_0x12abaa);_0x5e5f6b['set'](_0x49fc25,_0x5cbb25),_0x4d66d9['set'](_0x49fc25,Object['fromEntries'](_0x12abaa['getAttributes']()));}const _0x35652c=Array['from'](this['editor']['model']['markers'])['map'](_0x37ddce=>[_0x37ddce['name'],_0x37ddce['getRange']()]),_0x38d7d1=this['source']['version'];this['_saveMetaData'](_0x38d7d1,_0x5e5f6b,_0x35652c,_0x4d66d9),this['_startingRevisionId']=this['_revisionId'];const _0x57a3d5=new Map(),_0x3ab05a=new Map();for(const _0x36bdb2 of _0x3a7cd9){const _0x489281=F(_0x36bdb2);_0x57a3d5['set'](_0x36bdb2,_0x489281),_0x3ab05a['set'](_0x36bdb2,{});}this['_saveMetaData'](Number['NEGATIVE_INFINITY'],_0x57a3d5,[],_0x3ab05a);}['getData'](_0x48eeda,_0x59350c){if(this['_lastFrom']===_0x48eeda&&this['_lastTo']<=_0x59350c)this['_savedMetaData']['size']>0x1&&this['_removeMetaData'](this['_lastTo']),this['_applyOperations'](this['_lastTo'],_0x59350c,!0x0);else{if(!this['_savedMetaData']['has'](_0x48eeda)){const _0x248658=this['_getPreviousFrom'](_0x48eeda);this['_calculateMetaData'](_0x248658,_0x48eeda,!0x1);}this['_calculateMetaData'](_0x48eeda,_0x59350c,!0x0);}return this['_lastFrom']=_0x48eeda,this['_lastTo']=_0x59350c,this['_getState']();}['loadState'](_0x20649d){this['_reset'](),this['_lastFrom']=_0x20649d['fromVersion'],this['_lastTo']=_0x20649d['toVersion'];for(const _0x8b61e5 in _0x20649d['diffData']){const _0x1682a0=_0x20649d['diffData'][_0x8b61e5]['attachChange'],_0xbf6daa=_0x43a474(_0x20649d['diffData'][_0x8b61e5]['attributesBefore'])||{},_0x5729b1=this['_makeModelFromViewString'](_0x20649d['diffData'][_0x8b61e5]['deletions']);_0x5729b1['rootName']=_0x8b61e5,_0x5729b1['_isAttached']=!_0x1682a0||!_0x1682a0['isAttached'],_0x5729b1['isAttached']=()=>_0x5729b1['_isAttached'],this['_baseRoots']['set'](_0x8b61e5,_0x5729b1),this['_baseRootsAttributes']['set'](_0x8b61e5,_0xbf6daa),_0x1682a0&&this['_touchedRoots']['set'](_0x8b61e5,_0x1682a0);const _0x19c78a=this['_makeIdsRoot'](_0x5729b1);this['_baseIdsRoots']['set'](_0x8b61e5,_0x19c78a);for(const [_0x42ecb8,_0x5b31d5]of _0x5729b1['markers']){if(!_0x42ecb8['startsWith']('revision:'))continue;const _0x57ebdb=_0x42ecb8['split'](':')[0x2];for(const _0x1707ef of _0x5b31d5['getWalker']({'singleCharacters':!0x0})){const _0x334936=this['_getVidAttributeName'](_0x1707ef),_0x513afa='elementEnd'==_0x1707ef['type']?_0x1707ef['previousPosition']['path']['slice'](0x0,-0x1):_0x1707ef['previousPosition']['path'],_0x11c9c9=_0x19c78a['getNodeByPath'](_0x513afa)['getAttribute'](_0x334936);this['_touched']['set'](_0x11c9c9,{'userId':_0x57ebdb});}}}this['_startingRevisionId']=this['_revisionId'];const _0x128f93=[...Array(this['_revisionId'])['keys']()]['slice'](0x1)['filter'](_0x130015=>!this['_touched']['has'](_0x130015));let _0x3cb9f7=0x0;const _0xc004ca=new Map();for(const _0x4a6dcd in _0x20649d['diffData']){const _0x55c173=_0x20649d['diffData'][_0x4a6dcd]['attachChange'],_0xe1479a=_0x43a474(_0x20649d['diffData'][_0x4a6dcd]['attributesAfter'])||{},_0x163bc1=this['_makeModelFromViewString'](_0x20649d['diffData'][_0x4a6dcd]['insertions']);_0x163bc1['rootName']=_0x4a6dcd,_0x163bc1['_isAttached']=!_0x55c173||_0x55c173['isAttached'],_0x163bc1['isAttached']=()=>_0x163bc1['_isAttached'],this['_diffRoots']['set'](_0x4a6dcd,_0x163bc1),this['_diffRootsAttributes']['set'](_0x4a6dcd,_0xe1479a);const _0x455f71=this['_makeIdsRoot'](_0x163bc1,Number['NEGATIVE_INFINITY']);this['_idsRoots']['set'](_0x4a6dcd,_0x455f71),_0xc004ca['set'](_0x4a6dcd,_0x163bc1['isAttached']()?_0xe1479a:{});for(const [_0xa802e3,_0x513fc2]of _0x163bc1['markers']){if(!_0xa802e3['startsWith']('revision:'))continue;const _0x30541f=_0xa802e3['split'](':')[0x2];for(const _0x367908 of _0x513fc2['getWalker']({'singleCharacters':!0x0})){const _0x3cfcf1=this['_getVidAttributeName'](_0x367908),_0x474811=this['_revisionId']++,_0x40b332='elementEnd'==_0x367908['type']?_0x367908['previousPosition']['path']['slice'](0x0,-0x1):_0x367908['previousPosition']['path'];_0x455f71['getNodeByPath'](_0x40b332)['_setAttribute'](_0x3cfcf1,_0x474811),this['_touched']['set'](_0x474811,{'userId':_0x30541f});}}for(const _0x41af0b of this['editor']['model']['createRangeIn'](_0x163bc1)['getWalker']({'singleCharacters':!0x0})){const _0x22f5c1=this['_getVidAttributeName'](_0x41af0b),_0x242843='elementEnd'==_0x41af0b['type']?_0x41af0b['previousPosition']['path']['slice'](0x0,-0x1):_0x41af0b['previousPosition']['path'],_0x1dc08f=_0x455f71['getNodeByPath'](_0x242843);_0x1dc08f['getAttribute'](_0x22f5c1)>0x0||_0x1dc08f['_setAttribute'](_0x22f5c1,_0x128f93[_0x3cb9f7++]);}for(const [_0x34a105,_0x1d1d52]of _0x163bc1['markers'])_0x34a105['startsWith']('revision:')||this['_markers']['set'](_0x34a105,_0x1d1d52);}const _0x28d693=F('$graveyard');this['_baseRoots']['set']('$graveyard',_0x28d693),this['_baseIdsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x28d693,0x1));const _0x38848a=F('$graveyard');this['_diffRoots']['set']('$graveyard',_0x38848a),this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x38848a,0x1));const _0x2d58c5=Array['from'](this['_diffRoots'])['map'](([_0x166e61,_0x5bffc3])=>[_0x166e61,T(_0x5bffc3)]);this['_saveMetaData'](this['_lastTo'],_0x2d58c5,this['_markers'],_0xc004ca);}['_makeModelFromViewString'](_0x9656bd){const _0x108a7f=JSON['parse'](_0x9656bd),_0x4db5cc=this['editor']['editing']['view']['document'],_0x14102a=new _0x460b1e(_0x4db5cc,_0x108a7f['map'](_0x49de4c=>C(_0x49de4c,this['editor'])));return this['editor']['data']['toModel'](_0x14102a);}['_saveMetaData'](_0x465d8d,_0x1b47d9,_0x2b0c00,_0x15ef73){const _0x1ad8c7=new Map(_0x1b47d9),_0x2532e2=new Map(_0x43a474(_0x15ef73)),_0x80d7ae=new Map();for(const [_0x467f5d,_0x404de4]of _0x2b0c00)_0x80d7ae['set'](_0x467f5d,{'start':_0x404de4['start']['clone'](),'end':_0x404de4['end']['clone'](),'rootName':_0x404de4['root']['rootName']});this['_savedMetaData']['set'](_0x465d8d,{'roots':_0x1ad8c7,'markers':_0x80d7ae,'rootsAttributes':_0x2532e2});}['_removeMetaData'](_0x2a2dbf){this['_savedMetaData']['delete'](_0x2a2dbf);}['reInit'](){this['_reset'](),this['_lastFrom']=-0x1,this['_lastTo']=-0x1,this['_savedMetaData']['clear'](),this['init'](this['source']);}['_reset'](){this['_touched']['clear'](),this['_touchedMarkers']['clear'](),this['_touchedRoots']['clear'](),this['_diffRoots']['clear'](),this['_diffRootsAttributes']['clear'](),this['_baseRoots']['clear'](),this['_baseRootsAttributes']['clear'](),this['_idsRoots']['clear'](),this['_baseIdsRoots']['clear'](),this['_markers']['clear'](),this['_revisionId']=0x1,this['_startingRevisionId']=this['_revisionId'];}['_makeIdsRoot'](_0x796718,_0x470485=null){let _0x4f8d2e=null;_0x796718['is']('documentFragment')||(_0x4f8d2e=new ft(_0x796718['name'],{'vid_start':null===_0x470485?this['_revisionId']++:_0x470485++}));const _0x11aa40=[];for(const _0x1a49c4 of _0x796718['getChildren']())if(_0x1a49c4['is']('element')){_0x11aa40['push'](this['_makeIdsRoot'](_0x1a49c4,_0x470485));const _0x4106eb=_0x11aa40[_0x11aa40['length']-0x1];null!==_0x470485&&(_0x470485=_0x4106eb['is']('element','$text')?_0x4106eb['getAttribute']('vid')+0x1:_0x4106eb['getAttribute']('vid_end')+0x1);}else{for(let _0x3d518c=0x0;_0x3d518c<_0x1a49c4['offsetSize'];_0x3d518c++)_0x11aa40['push'](new ft('$text',{'vid':null===_0x470485?this['_revisionId']++:_0x470485++}));}if(_0x796718['is']('documentFragment')){const _0x24d9e=F(_0x796718['rootName']);return _0x24d9e['_insertChild'](0x0,_0x11aa40),_0x24d9e;}return _0x4f8d2e['_setAttribute']('vid_end',null===_0x470485?this['_revisionId']++:_0x470485++),_0x4f8d2e['_insertChild'](0x0,_0x11aa40),_0x4f8d2e;}['_calculateMetaData'](_0x5ca3bd,_0x1c9a0a,_0x19b1ca){this['_reset']();const {roots:_0x5d19de,markers:_0x18ca71,rootsAttributes:_0x58a60e}=this['_savedMetaData']['get'](_0x5ca3bd);this['_baseRoots']=new Map(_0x5d19de),this['_baseRootsAttributes']=new Map(_0x43a474(_0x58a60e));for(const [_0x168905,_0x438044]of this['_baseRoots'])if('$graveyard'!==_0x168905&&(this['_diffRoots']['set'](_0x168905,T(_0x438044)),this['_diffRootsAttributes']=new Map(_0x43a474(_0x58a60e)),_0x19b1ca)){const _0x50053d=this['_revisionId'];this['_idsRoots']['set'](_0x168905,this['_makeIdsRoot'](_0x438044)),this['_baseIdsRoots']['set'](_0x168905,this['_makeIdsRoot'](_0x438044,_0x50053d));}this['_startingRevisionId']=this['_revisionId'],this['_diffRoots']['set']('$graveyard',T(this['_baseRoots']['get']('$graveyard'))),_0x19b1ca&&this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](this['_baseRoots']['get']('$graveyard')));for(const [_0x2bee3,_0x25b60b]of _0x18ca71){const _0x384be6=this['_baseRoots']['get'](_0x25b60b['rootName']),_0x4bb4f7=this['_diffRoots']['get'](_0x25b60b['rootName']),_0xfd8a9a=new vt(this['_fixPosition'](_0x25b60b['start'],_0x384be6),this['_fixPosition'](_0x25b60b['end'],_0x384be6)),_0x323308=this['_fixRange'](_0xfd8a9a,_0x4bb4f7);_0x384be6['markers']['set'](_0x2bee3,_0xfd8a9a),this['_markers']['set'](_0x2bee3,_0x323308);}this['_applyOperations'](_0x5ca3bd,_0x1c9a0a,_0x19b1ca);}['_applyOperations'](_0x19db06,_0x23270a,_0xea83b8){for(const _0x74af7a of this['source']['getOperations'](_0x19db06,_0x23270a))this['_handleOperation'](_0x74af7a,_0xea83b8);for(const _0x1b28cf of this['_diffRoots']['values']())_0x1b28cf['markers']['clear']();for(const [_0x4a99ab,_0x37eef2]of this['_markers']){this['_diffRoots']['get'](_0x37eef2['root']['rootName'])['markers']['set'](_0x4a99ab,_0x37eef2['clone']());}const _0x19f62b=new Map(),_0x5e54e4=new Map();for(const [_0x4cde60,_0x57a790]of this['_diffRoots'])_0x19f62b['set'](_0x4cde60,T(_0x57a790)),_0x5e54e4['set'](_0x4cde60,this['_diffRootsAttributes']['get'](_0x4cde60));this['_saveMetaData'](_0x23270a,_0x19f62b,this['_markers'],_0x5e54e4);}['_getPreviousFrom'](_0xee89c1){const _0x4c91af=Array['from'](this['_savedMetaData']['keys']());_0x4c91af['sort']((_0x490009,_0x30db65)=>_0x490009-_0x30db65),_0x4c91af['reverse']();for(const _0x17e390 of _0x4c91af)if(_0x17e390<_0xee89c1)return _0x17e390;return Number['NEGATIVE_INFINITY'];}['_copyMarkers'](_0x42bbe7,_0x460d33){const _0x1a0c54=Array['from'](_0x460d33['markers'])['map'](([_0x335f53,_0x3a787b])=>[_0x335f53,this['_fixRange'](_0x3a787b,_0x42bbe7)]);_0x42bbe7['markers']=new Map(_0x1a0c54);}['_transformMarkers'](_0x9f5036){for(const _0x31d8f4 of this['_markers']['values']()){const _0x3efab2=_0x31d8f4['getTransformedByOperation'](_0x9f5036),_0xee11e5=vt['_createFromRanges'](_0x3efab2);_0x31d8f4['start']=_0xee11e5['start'],_0x31d8f4['end']=_0xee11e5['end'];}}['_handleOperation'](_0x466e48,_0x130a70){if('addRoot'!=_0x466e48['type']&&'detachRoot'!=_0x466e48['type']){if('insert'==_0x466e48['type']){const _0x27433a=_0x466e48['position']['root']['rootName'];this['_diffRoots']['has'](_0x27433a)||(this['_diffRoots']['set'](_0x27433a,F(_0x27433a,!0x0)),this['_diffRootsAttributes']['set'](_0x27433a,{}),_0x130a70&&this['_idsRoots']['set'](_0x27433a,F(_0x27433a,!0x0)));}else{if('addRootAttribute'==_0x466e48['type']||'removeRootAttribute'==_0x466e48['type']||'changeRootAttribute'==_0x466e48['type'])return void this['_handleRootAttributeOperation'](_0x466e48);'marker'==_0x466e48['type']&&this['_handleMarkerOperation'](_0x466e48);}if('marker'!==_0x466e48['type']){const _0x2e02ee=this['_cloneOperation'](_0x466e48,this['_diffRoots']);_0x2e02ee['_execute'](),this['_transformMarkers'](_0x2e02ee);}if(_0x130a70)switch(_0x466e48['type']){case'insert':this['_handleInsertOperation'](_0x466e48);break;case'move':case'remove':case'reinsert':this['_handleMoveOperation'](_0x466e48);break;case'merge':this['_handleMergeOperation'](_0x466e48);break;case'split':this['_handleSplitOperation'](_0x466e48);}}else this['_handleRootOperation'](_0x466e48,_0x130a70);}['_cloneOperation'](_0x3cba15,_0x15ceed){const _0x1b858f=_0x3cba15['clone']();return _0x1b858f['_authorId']=_0x3cba15['_authorId'],this['_fixOperation'](_0x1b858f,_0x15ceed),_0x1b858f;}['_getBaseVids'](_0x10d42d){return _0x10d42d['map'](_0x497bad=>{const _0xa88fbe=this['_getVidAttributeName'](_0x497bad);return Number(_0x497bad['item']['getAttribute'](_0xa88fbe));});}['_generateTape'](_0x346ba2,_0x34d14b){if(_0x346ba2['is']('element','$text'))_0x34d14b['push']({'item':_0x346ba2,'type':'text'});else{_0x346ba2['is']('element')&&_0x34d14b['push']({'item':_0x346ba2,'type':'elementStart'});for(const _0x45fc2d of _0x346ba2['getChildren']())this['_generateTape'](_0x45fc2d,_0x34d14b);_0x346ba2['is']('element')&&_0x34d14b['push']({'item':_0x346ba2,'type':'elementEnd'});}return _0x34d14b;}['_getState'](){const _0x45d75d=new Map(this['_touched']),_0x20fc38=new Map(_0x45d75d),_0x168139=new Map(),_0x111149={'insertions':{},'deletions':{}},_0x5074c9={'insertions':{},'deletions':{}},_0x13337a=new Map(),_0x24830f=new Set([...this['_baseRoots']['keys'](),...this['_diffRoots']['keys']()]);_0x24830f['delete']('$graveyard');for(const _0x81f746 of _0x24830f){const _0x805857=this['_diffRoots']['get'](_0x81f746)||F(_0x81f746,!0x1),_0x1c2f9e=this['_baseRoots']['get'](_0x81f746)||F(_0x81f746,!0x1);_0x805857['isAttached']()||_0x1c2f9e['isAttached']()?(_0x111149['insertions'][_0x81f746]=T(_0x805857),_0x111149['deletions'][_0x81f746]=T(_0x1c2f9e),this['_copyMarkers'](_0x111149['deletions'][_0x81f746],_0x1c2f9e),this['_copyMarkers'](_0x111149['insertions'][_0x81f746],_0x805857),_0x5074c9['insertions'][_0x81f746]=this['_generateTape'](this['_idsRoots']['get'](_0x81f746),[]),_0x5074c9['deletions'][_0x81f746]=this['_generateTape'](this['_baseIdsRoots']['get'](_0x81f746)||F(_0x81f746,!0x1),[])):_0x24830f['delete'](_0x81f746);}for(const _0x521b00 of _0x24830f){const _0xf929e8=_0x5074c9['insertions'][_0x521b00];for(const _0x22b8e0 of _0xf929e8){const _0x2c9724=this['_getVidAttributeName'](_0x22b8e0),_0x3c7425=_0x22b8e0['item']['getAttribute'](_0x2c9724);_0x20fc38['delete'](_0x3c7425),_0x3c7425>=this['_startingRevisionId']&&_0x168139['set'](_0x3c7425,_0x45d75d['get'](_0x3c7425));}}for(const _0x552c34 of _0x24830f){const _0x49f9bc=_0x5074c9['insertions'][_0x552c34],_0x277b3c=this['_getBaseVids'](_0x5074c9['deletions'][_0x552c34]);let _0x16e036=0x0;for(const _0x191dec of _0x49f9bc){const _0x11c3af=this['_getVidAttributeName'](_0x191dec),_0x3b3b53=_0x191dec['item']['getAttribute'](_0x11c3af);if(!_0x168139['has'](_0x3b3b53)&&!_0x13337a['has'](_0x3b3b53)){if(_0x20fc38['has'](_0x3b3b53))_0x16e036++;else{if(_0x3b3b53!=_0x277b3c[_0x16e036]){const _0x595824=_0x45d75d['get'](_0x3b3b53)||_0x45d75d['get'](_0x277b3c[_0x16e036]);for(;_0x3b3b53!=_0x277b3c[_0x16e036];)_0x20fc38['has'](_0x277b3c[_0x16e036])||(_0x13337a['set'](_0x277b3c[_0x16e036],_0x595824),_0x45d75d['set'](_0x277b3c[_0x16e036],_0x595824)),_0x16e036++;}_0x16e036++;}}}}for(const _0x157b3c of _0x24830f){const _0x10529e=_0x5074c9['insertions'][_0x157b3c];for(const _0x4fac7f of _0x10529e){const _0x19cb76=this['_getVidAttributeName'](_0x4fac7f),_0x4f73e9=_0x4fac7f['item']['getAttribute'](_0x19cb76);if(_0x13337a['has'](_0x4f73e9)){const _0x487071=_0x13337a['get'](_0x4f73e9);_0x20fc38['has'](_0x4f73e9)||_0x20fc38['set'](_0x4f73e9,{..._0x487071}),_0x168139['set'](_0x4f73e9,{..._0x487071});}}}for(const _0x3aa787 of _0x20fc38['keys']())_0x3aa787>=this['_startingRevisionId']&&_0x20fc38['delete'](_0x3aa787);const _0x2e707a=new Map();for(const _0x8a93e7 of _0x24830f){let _0x5e1abb=_0x5074c9['insertions'][_0x8a93e7];for(const _0x25b90c of _0x5e1abb)if(_0x25b90c['item']['is']('element','tableCell')){const _0x14a44c=this['_getVidAttributeName'](_0x25b90c),_0x339a53=_0x25b90c['item']['getAttribute'](_0x14a44c);if(_0x168139['has'](_0x339a53)){const _0x18833d=_0x25b90c['item']['parent']['parent']['getAttribute']('vid_start'),_0x365353=_0x2e707a['get'](_0x18833d)||new Set();_0x365353['add'](_0x168139['get'](_0x339a53)['userId']),_0x2e707a['set'](_0x18833d,_0x365353);}}_0x5e1abb=_0x5074c9['deletions'][_0x8a93e7];for(const _0xf11ca0 of _0x5e1abb)if(_0xf11ca0['item']['is']('element','tableCell')){const _0xe7fab7=this['_getVidAttributeName'](_0xf11ca0),_0x459d45=_0xf11ca0['item']['getAttribute'](_0xe7fab7);if(_0x20fc38['has'](_0x459d45)){const _0x2e4029=_0xf11ca0['item']['parent']['parent']['getAttribute']('vid_start'),_0x9eed17=_0x2e707a['get'](_0x2e4029)||new Set();_0x9eed17['add'](_0x20fc38['get'](_0x459d45)['userId']),_0x2e707a['set'](_0x2e4029,_0x9eed17);}}for(const _0x655dcb of _0x2e707a['keys']())(_0x168139['has'](_0x655dcb)||_0x20fc38['has'](_0x655dcb))&&_0x2e707a['delete'](_0x655dcb);}for(const _0x30025c of _0x24830f){const _0x3e3c2f=_0x5074c9['insertions'][_0x30025c];let _0x2b6a4e=null,_0x33eb24=null;for(const _0x5e28b8 of _0x3e3c2f){const _0x1c02df=this['_getVidAttributeName'](_0x5e28b8),_0x53be0e=_0x5e28b8['item']['getAttribute'](_0x1c02df),_0x3ef32d=_0x2e707a['get'](_0x53be0e);_0x3ef32d&&'elementStart'==_0x5e28b8['type']&&(_0x2b6a4e=Array['from'](_0x3ef32d)[0x0],_0x33eb24=_0x5e28b8['item']['getAttribute']('vid_end')),_0x2b6a4e&&(_0x20fc38['set'](_0x53be0e,{'userId':_0x2b6a4e}),_0x168139['set'](_0x53be0e,{'userId':_0x2b6a4e})),_0x53be0e==_0x33eb24&&(_0x2b6a4e=null,_0x33eb24=null);}}const _0x27702e={},_0x3a28df=new Set();for(const _0x384de3 of _0x24830f){const _0x1adabb=_0x111149['deletions'][_0x384de3],_0x4c1942=_0x111149['insertions'][_0x384de3];for(const {userId:_0x401934}of this['_touchedMarkers']['values']())null!==_0x401934&&_0x3a28df['add'](_0x401934);for(const {userId:_0x1296e7}of this['_touchedRoots']['values']())null!==_0x1296e7&&_0x3a28df['add'](_0x1296e7);this['_markChanges'](_0x4c1942,_0x5074c9['insertions'][_0x384de3],_0x168139,'insertion',_0x3a28df),this['_markChanges'](_0x1adabb,_0x5074c9['deletions'][_0x384de3],_0x20fc38,'deletion',_0x3a28df),_0x27702e[_0x384de3]={'insertions':this['_prepareViewToSave'](_0x4c1942),'deletions':this['_prepareViewToSave'](_0x1adabb),'attachChange':this['_touchedRoots']['get'](_0x384de3)||null,'attributesBefore':_0x43a474(this['_baseRootsAttributes']['get'](_0x384de3))||{},'attributesAfter':_0x43a474(this['_diffRootsAttributes']['get'](_0x384de3))};}return{'diffData':_0x27702e,'authorsIds':Array['from'](_0x3a28df)};}['_processRootBeforeSave'](_0x138dff){for(const [,_0x4f39e4]of _0x138dff['markers']){const _0x2cbf35=_0x4f39e4['start']['getAncestors']()['filter'](_0x48778b=>'tableCell'==_0x48778b['name']);for(const _0x5e1c4d of _0x2cbf35)0x1==_0x5e1c4d['childCount']&&_0x5e1c4d['getChild'](0x0)['is']('element','paragraph')&&_0x5e1c4d['getChild'](0x0)['_setAttribute']('keepParagraph',!0x0);}}['_prepareViewToSave'](_0x38e8e5){this['_processRootBeforeSave'](_0x38e8e5);const _0x8917bf=this['editor']['data']['toView'](_0x38e8e5,{}),_0x60ac31=Array['from'](_0x8917bf['getChildren']())['map'](_0x273c49=>this['_getViewJson'](_0x273c49));return JSON['stringify'](_0x60ac31);}['_getViewJson'](_0x2abf4f){if(_0x2abf4f['is']('$text'))return _0x2abf4f['data'];{const _0x437e93=_0x2abf4f;return{'type':Object['keys'](P)['find'](_0x53e399=>_0x2abf4f instanceof P[_0x53e399]),'name':_0x437e93['name'],'attributes':Array['from'](_0x437e93['getAttributes']()),'children':Array['from'](_0x437e93['getChildren']())['map'](_0x2c736d=>this['_getViewJson'](_0x2c736d))};}}['_markChanges'](_0x321a9e,_0x4b6336,_0x2b32ce,_0x188afa,_0x451aba){let _0x4d45af=null,_0x790aad=null,_0xf9cdc5=0x0;const _0x191dfe=this['editor']['model'];for(let _0x117ad0=0x0;_0x117ad0<_0x4b6336['length'];_0x117ad0++){const _0x26a5a8=this['_getVidAttributeName'](_0x4b6336[_0x117ad0]),_0x4bfd54=_0x4b6336[_0x117ad0]['item']['getAttribute'](_0x26a5a8),_0x597e44=_0x2b32ce['get'](_0x4bfd54),_0x134b28=_0x117ad0==_0x4b6336['length']-0x1;(!_0x4d45af&&_0x597e44&&(_0x4d45af=_0x597e44,_0x790aad=_0x4b6336[_0x117ad0]),_0x4d45af&&(!_0x597e44||_0x597e44['userId']!=_0x4d45af['userId']))&&(_0x5f55b0(_0x597e44,B(_0x790aad,_0x321a9e,_0x191dfe),B(_0x4b6336[_0x117ad0],_0x321a9e,_0x191dfe)),_0x4d45af=_0x597e44||null,_0x790aad=_0x597e44?_0x4b6336[_0x117ad0]:null),_0x4d45af&&_0x134b28&&_0x5f55b0(_0x597e44,B(_0x790aad,_0x321a9e,_0x191dfe),J(_0x4b6336[_0x117ad0],_0x321a9e,_0x191dfe));}function _0x5f55b0(_0x140080,_0x57d8bc,_0x833cf0){const _0x141c23=_0x4d45af['userId'],_0x4c597a='revision:'+_0x188afa+':'+_0x141c23+':'+_0xf9cdc5++,_0x5dda68=_0x191dfe['createRange'](_0x57d8bc,_0x833cf0);_0x321a9e['markers']['set'](_0x4c597a,_0x5dda68),null!==_0x141c23&&_0x451aba['add'](_0x141c23);}}['_getVidAttributeName'](_0x83fd2){switch(_0x83fd2['type']){case'elementStart':return'vid_start';case'elementEnd':return'vid_end';default:return'vid';}}['_fixOperation'](_0x2c40df,_0x16df9e){_0x2c40df['baseVersion']=null;for(const _0x36d2b4 in _0x2c40df){const _0x319328=_0x2c40df[_0x36d2b4];if(_0x319328 instanceof gt){const _0x16e184=_0x16df9e['get'](_0x319328['root']['rootName']);_0x2c40df[_0x36d2b4]=this['_fixPosition'](_0x319328,_0x16e184);}if(_0x319328 instanceof vt){const _0x19e97e=_0x16df9e['get'](_0x319328['root']['rootName']);_0x2c40df[_0x36d2b4]=this['_fixRange'](_0x319328,_0x19e97e);}'root'===_0x36d2b4&&(_0x2c40df['root']=_0x16df9e['get'](_0x2c40df['root']['rootName']));}}['_fixRange'](_0x1baeac,_0x31c6de){return this['editor']['model']['createRange'](this['_fixPosition'](_0x1baeac['start'],_0x31c6de),this['_fixPosition'](_0x1baeac['end'],_0x31c6de));}['_fixPosition'](_0x27c316,_0xace0f3){return this['editor']['model']['createPositionFromPath'](_0xace0f3,_0x27c316['path'],_0x27c316['stickiness']);}['_handleInsertOperation'](_0x26b0fe){const _0x557ddb=this['_idsRoots']['get'](_0x26b0fe['position']['root']['rootName']),_0x26809c=this['_fixPosition'](_0x26b0fe['position'],_0x557ddb),_0x164717=null===_0x26b0fe['_authorId']?null:_0x26b0fe['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x17261e=_0x26809c['parent'],_0x357c40=this['_revisionId'],_0x511f5a=[];for(const _0x4a44b1 of _0x26b0fe['nodes'])if(_0x4a44b1['is']('element'))_0x511f5a['push'](this['_makeIdsRoot'](_0x4a44b1));else{for(let _0x174625=0x0;_0x174625<_0x4a44b1['offsetSize'];_0x174625++)_0x511f5a['push'](new ft('$text',{'vid':this['_revisionId']++}));}const _0x471c23=this['_revisionId'];for(let _0x554d86=_0x357c40;_0x554d86<_0x471c23;_0x554d86++)this['_touched']['set'](_0x554d86,{'userId':_0x164717});_0x17261e['_insertChild'](_0x26809c['offset'],_0x511f5a);}['_handleMoveOperation'](_0x306927){(_0x306927=this['_cloneOperation'](_0x306927,this['_idsRoots']))['_execute']();const _0x1c0bba=null===_0x306927['_authorId']?null:_0x306927['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x939a8d=_0x306927['getMovedRangeStart'](),_0x18ffdd=_0x939a8d['parent'],_0x3b9ccf=_0x939a8d['offset'];!function _0x2d1fb0(_0x8dc97e,_0x5c2558,_0x2269e2,_0x77477a){for(let _0x5c4af3=_0x2269e2;_0x5c4af3<_0x77477a;_0x5c4af3++){const _0x26e162=_0x5c2558['getChild'](_0x5c4af3);_0x26e162['is']('element','$text')?_0x8dc97e['set'](_0x26e162['getAttribute']('vid'),{'userId':_0x1c0bba}):(_0x8dc97e['set'](_0x26e162['getAttribute']('vid_start'),{'userId':_0x1c0bba}),_0x2d1fb0(_0x8dc97e,_0x26e162,0x0,_0x26e162['childCount']),_0x8dc97e['set'](_0x26e162['getAttribute']('vid_end'),{'userId':_0x1c0bba}));}}(this['_touched'],_0x18ffdd,_0x3b9ccf,_0x3b9ccf+_0x306927['howMany']);}['_handleMergeOperation'](_0x15c6d7){const _0xe098f9=null===(_0x15c6d7=this['_cloneOperation'](_0x15c6d7,this['_idsRoots']))['_authorId']?null:_0x15c6d7['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x376a7d=_0x15c6d7['targetPosition']['parent'],_0x3d906b=_0x15c6d7['sourcePosition']['parent'],_0x541c18=_0x376a7d['getAttribute']('vid_end'),_0x58655f=_0x3d906b['getAttribute']('vid_start');_0x376a7d['_setAttribute']('vid_end',_0x3d906b['getAttribute']('vid_end')),_0x3d906b['_setAttribute']('vid_end',_0x541c18),this['_touched']['set'](_0x58655f,{'userId':_0xe098f9}),this['_touched']['set'](_0x541c18,{'userId':_0xe098f9}),_0x15c6d7['_execute']();}['_handleSplitOperation'](_0x1ab697){const _0x15885e=null===(_0x1ab697=this['_cloneOperation'](_0x1ab697,this['_idsRoots']))['_authorId']?null:_0x1ab697['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x26a6c1=_0x1ab697['graveyardPosition'],_0x3de5db=_0x1ab697['splitPosition']['parent'];_0x1ab697['_execute']();const _0x4fd0c1=_0x3de5db['getAttribute']('vid_end'),_0x4f577b=_0x1ab697['insertionPosition']['nodeAfter'];if(_0x26a6c1){const _0x422b47=_0x4f577b['getAttribute']('vid_end'),_0x3990f1=_0x3de5db['getAttribute']('vid_end');_0x3de5db['_setAttribute']('vid_end',_0x422b47),_0x4f577b['_setAttribute']('vid_end',_0x3990f1),this['_touched']['set'](_0x3de5db['getAttribute']('vid_end'),{'userId':_0x15885e}),this['_touched']['set'](_0x4f577b['getAttribute']('vid_start'),{'userId':_0x15885e});}else{const _0x4be2d4=this['_revisionId']++,_0x5efeaa=this['_revisionId']++;_0x3de5db['_setAttribute']('vid_end',_0x4be2d4),_0x4f577b['_setAttribute']('vid_start',_0x5efeaa),_0x4f577b['_setAttribute']('vid_end',_0x4fd0c1),this['_touched']['set'](_0x4be2d4,{'userId':_0x15885e}),this['_touched']['set'](_0x5efeaa,{'userId':_0x15885e});}}['_handleMarkerOperation'](_0x76d3df){if(!_0x76d3df['affectsData'])return;const _0x1cac50=(_0x76d3df=this['_cloneOperation'](_0x76d3df,this['_diffRoots']))['oldRange']?_0x76d3df['oldRange']['root']:null,_0x5e6f46=_0x76d3df['newRange']?_0x76d3df['newRange']['root']:null;_0x1cac50&&this['_markers']['delete'](_0x76d3df['name']),_0x5e6f46&&this['_markers']['set'](_0x76d3df['name'],_0x76d3df['newRange']['clone']());const _0x3fa83b=null===_0x76d3df['_authorId']?null:_0x76d3df['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x496043=_0x76d3df['name'];if(!this['_touchedMarkers']['has'](_0x496043))return void this['_touchedMarkers']['set'](_0x496043,{'range':_0x76d3df['oldRange'],'userId':_0x3fa83b});const _0x3c9387=this['_touchedMarkers']['get'](_0x496043),_0x46f826=_0x3c9387['range'],_0x63b2bc=_0x76d3df['newRange'];null==_0x46f826&&null==_0x63b2bc||_0x46f826&&_0x63b2bc&&_0x46f826['isEqual'](_0x63b2bc)?this['_touchedMarkers']['delete'](_0x76d3df['name']):_0x3c9387['userId']=_0x3fa83b;}['_handleRootOperation'](_0x567851,_0x529dda){this['_diffRoots']['has'](_0x567851['rootName'])?this['_diffRoots']['get'](_0x567851['rootName'])['_isAttached']=_0x567851['isAdd']:(this['_diffRoots']['set'](_0x567851['rootName'],F(_0x567851['rootName'],!0x0)),this['_diffRootsAttributes']['set'](_0x567851['rootName'],{}),_0x529dda&&this['_idsRoots']['set'](_0x567851['rootName'],F(_0x567851['rootName'],!0x0)));const _0xae524a=null===_0x567851['_authorId']?null:_0x567851['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x5db91a=this['_touchedRoots']['get'](_0x567851['rootName']);_0x5db91a&&_0x5db91a['userId']===_0xae524a?this['_touchedRoots']['delete'](_0x567851['rootName']):this['_touchedRoots']['set'](_0x567851['rootName'],{'userId':_0xae524a,'isAttached':_0x567851['isAdd']});}['_handleRootAttributeOperation'](_0x11a265){const _0x2423db=this['_diffRootsAttributes']['get'](_0x11a265['root']['rootName']);null===_0x11a265['newValue']?delete _0x2423db[_0x11a265['key']]:_0x2423db[_0x11a265['key']]=_0x11a265['newValue'];}}function T(_0x991a53){const _0x3979ad=F(_0x991a53['rootName'],_0x991a53['isAttached']());for(const _0x362f2b of _0x991a53['getChildren']()){const _0x1ff64e=_0x362f2b['_clone'](!0x0);_0x3979ad['_appendChild'](_0x1ff64e);}return _0x3979ad;}function F(_0x3dce47,_0x943966=!0x0){const _0x3ba558=new mt();return _0x3ba558['rootName']=_0x3dce47,_0x3ba558['_isAttached']=_0x943966,_0x3ba558['isAttached']=()=>_0x3ba558['_isAttached'],_0x3ba558;}function B(_0x3ff6de,_0x596c4d,_0x58902a){const _0x396fe7='elementEnd'==_0x3ff6de['type']?_0x58902a['createPositionAt'](_0x3ff6de['item'],'end'):_0x58902a['createPositionBefore'](_0x3ff6de['item']);return _0x58902a['createPositionFromPath'](_0x596c4d,_0x396fe7['path'],_0x396fe7['stickiness']);}function J(_0xe87d00,_0x15cf0e,_0x204376){const _0x3f6b70='elementStart'==_0xe87d00['type']?_0x204376['createPositionAt'](_0xe87d00['item'],0x0):_0x204376['createPositionAfter'](_0xe87d00['item']);return _0x204376['createPositionFromPath'](_0x15cf0e,_0x3f6b70['path'],_0x3f6b70['stickiness']);}class hs extends ts{['focusTracker'];['keystrokes'];['revisionNameInputView'];constructor(_0x5c8480,_0x586d9c){super(_0x5c8480),this['focusTracker']=new _0x2ca15a(),this['keystrokes']=new _0x584f6d(),this['set']('revisionNameInputValue',''),this['revisionNameInputView']=this['_createRevisionNameInput'](_0x586d9c),this['setTemplate']({'tag':'form','attributes':{'class':['ck','ck-revision-history-save-revision-form','ck-responsive-form'],'tabindex':'-1'},'children':[this['revisionNameInputView']]}),_0x34e50f(this);}['render'](){super['render'](),_0x1370dc({'view':this}),this['focusTracker']['add'](this['revisionNameInputView']['element']),this['keystrokes']['listenTo'](this['element']);const _0x4ac10b=_0x36f4a5=>_0x36f4a5['stopPropagation']();this['keystrokes']['set']('arrowright',_0x4ac10b),this['keystrokes']['set']('arrowleft',_0x4ac10b),this['keystrokes']['set']('arrowup',_0x4ac10b),this['keystrokes']['set']('arrowdown',_0x4ac10b);}['focus'](){this['revisionNameInputView']['focus']();}get['revisionName'](){return this['revisionNameInputView']['fieldView']['element']['value']['trim']();}set['revisionName'](_0x205a86){this['revisionNameInputView']['fieldView']['element']['value']=_0x205a86['trim']();}['reset'](){this['revisionNameInputView']['fieldView']['element']['value']='',this['revisionNameInputView']['errorText']=null;}['_createRevisionNameInput'](_0x36faa2){const _0x1e5d59=new _0x4b212a(this['locale'],_0x2ab85),_0x155867=_0x1e5d59['fieldView'];_0x155867['extendTemplate']({'attributes':{'maxlength':'220'}});let _0x46ceda=m(this['locale'],'Name\x20of\x20the\x20revision');return!_0x36faa2&&(_0x46ceda+='\x20('+m(this['locale'],'optional')+')'),(_0x1e5d59['label']=_0x46ceda,_0x155867['on']('input',()=>{this['revisionNameInputValue']=_0x155867['element']['value']['trim']();}),_0x1e5d59);}}class u extends _0x19d40b{static get['pluginName'](){return'RevisionHistoryUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[l];}['_saveRevisionFormView'];['init'](){const _0x4685ec=this['editor'],_0x2454e6=_0x4685ec['plugins']['get']('RevisionTracker');_0x4685ec['ui']['componentFactory']['add']('revisionHistory',_0x5150e3=>{const _0x16cf50=_0xe9c734(_0x5150e3),_0x172bb2=_0x16cf50['panelView']['children'],_0x55a17e=new _0x5de502(_0x5150e3),_0x1c1dea=new _0x3456ba(_0x5150e3),_0x5d4803=new te(_0x5150e3),_0x121e65=new _0x3456ba(_0x5150e3),_0x20351f=new te(_0x5150e3);return _0x16cf50['bind']('isEnabled')['to'](_0x2454e6,'isReady',_0x2454e6,'isEnabled',_0x4685ec,'isReadOnly',(_0x360df2,_0x1b8639,_0x1a0fca)=>_0x360df2&&_0x1b8639&&!_0x1a0fca),_0x16cf50['buttonView']['set']({'icon':_0x46ecca['history'],'label':m(_0x5150e3,'Revision\x20history'),'tooltip':!0x0}),_0x5d4803['set']({'label':m(_0x5150e3,'Save\x20current\x20revision'),'withText':!0x0,'role':'menuitem'}),_0x5d4803['bind']('isEnabled')['to'](_0x2454e6,'isReady',_0x2454e6,'isEnabled',_0x4685ec,'isReadOnly',(_0x22dbed,_0x30885b,_0x51de20)=>_0x22dbed&&_0x30885b&&!_0x51de20),_0x5d4803['on']('execute',()=>this['_showDialog']()),_0x20351f['set']({'label':m(_0x5150e3,'Open\x20revision\x20history'),'withText':!0x0,'role':'menuitem'}),_0x20351f['bind']('isEnabled')['to'](_0x2454e6,'isReady',_0x4685ec,'isReadOnly',(_0x3d9fe4,_0x53e9a7)=>_0x3d9fe4&&!_0x53e9a7),_0x20351f['on']('execute',()=>{_0x4685ec['config']['get']('revisionHistory')['showRevisionViewerCallback'](),_0x16cf50['isOpen']=!0x1,_0x4685ec['editing']['view']['focus']();}),_0x1c1dea['children']['add'](_0x5d4803),_0x121e65['children']['add'](_0x20351f),_0x55a17e['role']='menu',_0x55a17e['items']['addMany']([_0x1c1dea,_0x121e65]),_0x172bb2['add'](_0x55a17e),_0x16cf50;}),_0x4685ec['ui']['componentFactory']['add']('menuBar:revisionHistory',()=>this['_registerMenuComponent']());}['_registerMenuComponent'](){const _0x2f6a84=this['editor'],_0x85d319=_0x2f6a84['locale'],_0x33cf2b=new _0xf539ea(_0x85d319),_0xf07c53=new _0x1b4b65(_0x85d319);_0x33cf2b['buttonView']['set']({'icon':_0x46ecca['history'],'label':m(_0x85d319,'Revision\x20history')});const _0x1f8b76=new _0x5383f4(_0x85d319,_0x33cf2b),_0x40b3ae=new _0x4188a5(_0x85d319);_0x40b3ae['set']({'label':m(_0x85d319,'Save\x20current\x20revision')}),_0x40b3ae['delegate']('execute')['to'](_0x33cf2b),_0x40b3ae['on']('execute',()=>{this['_showDialog']();}),_0x1f8b76['children']['add'](_0x40b3ae),_0xf07c53['items']['add'](_0x1f8b76);const _0x2cf411=new _0x5383f4(_0x85d319,_0x33cf2b),_0x4cdc98=new _0x4188a5(_0x85d319);return _0x4cdc98['set']({'label':m(_0x85d319,'Open\x20revision\x20history')}),_0x4cdc98['delegate']('execute')['to'](_0x33cf2b),_0x4cdc98['on']('execute',()=>{_0x2f6a84['config']['get']('revisionHistory')['showRevisionViewerCallback']();}),_0x2cf411['children']['add'](_0x4cdc98),_0xf07c53['items']['add'](_0x2cf411),_0x33cf2b['panelView']['children']['add'](_0xf07c53),_0x33cf2b;}['_showDialog'](){const _0x20fbd6=this['editor'],_0x7f21cc=_0x20fbd6['locale'],_0x4f35c4=_0x20fbd6['plugins']['get']('Dialog'),_0x5b6560=_0x20fbd6['plugins']['get']('RevisionTracker');function _0x504e32(_0x389619){_0x20fbd6['config']['get']('revisionHistory.requireRevisionName')&&''===_0x389619['revisionName']?_0x389619['revisionNameInputView']['errorText']=m(_0x7f21cc,'The\x20revision\x20name\x20cannot\x20be\x20empty.'):(_0x20fbd6['plugins']['get'](l)['saveRevision']({'name':_0x389619['revisionName']}),_0x4f35c4['hide']());}this['_saveRevisionFormView']||(this['_createSaveRevisionFormView'](),this['_saveRevisionFormView']['on']('submit',()=>_0x504e32(this['_saveRevisionFormView']))),this['_saveRevisionFormView']['reset'](),_0x4f35c4['show']({'id':'revisionSave','title':m(_0x7f21cc,'Save\x20current\x20revision'),'isModal':!0x0,'content':this['_saveRevisionFormView'],'actionButtons':[{'label':m(_0x20fbd6['locale'],'Cancel'),'withText':!0x0,'onExecute':()=>_0x4f35c4['hide']()},{'label':m(_0x20fbd6['locale'],'Accept'),'class':'ck-button-action','withText':!0x0,'onCreate'(_0x1e957f){_0x1e957f['bind']('isEnabled')['to'](_0x5b6560,'isReady',_0x5b6560,'isEnabled',_0x20fbd6,'isReadOnly',(_0x326dbd,_0x593459,_0x3ee621)=>_0x326dbd&&_0x593459&&!_0x3ee621);},'onExecute':()=>_0x504e32(this['_saveRevisionFormView'])}]});}['_createSaveRevisionFormView'](){const _0x511584=this['editor'],_0x52f816=_0x511584['locale'];this['_saveRevisionFormView']=new hs(_0x52f816,_0x511584['config']['get']('revisionHistory.requireRevisionName')),this['_saveRevisionFormView']['render']();}}class X extends ts{['changeId'];['_model'];constructor(_0x587349,_0x5cc7b2){super(_0x587349),this['_model']=_0x5cc7b2,this['changeId']=_0x5cc7b2['id'];const _0x1c2e14=this['bindTemplate'],_0x250ac4=m(_0x587349,_0x5cc7b2['data']['isSuggestion']?'Suggested\x20by':'add'==_0x5cc7b2['type']?'Added\x20by':'Removed\x20by');this['set']('type',_0x5cc7b2['type']),this['setTemplate']({'tag':'div','attributes':{'class':['ck-annotation','ck-revision-change',_0x1c2e14['to']('type',_0x732bee=>'ck-revision-change__'+_0x732bee)],'tabindex':-0x1},'children':[{'tag':'span','children':[{'tag':'span','attributes':{'class':['ck-revision-change__label']},'children':[{'text':_0x250ac4}]},{'text':'\x20'+_0x5cc7b2['author']['name']}]}]});}['focus'](){this['element']['focus']();}}class r extends/* #__PURE__ -- @preserve */
|
|
25
|
-
_0x5ec8ed(){['id'];['author'];['type'];['data'];['rootName'];constructor(_0x56976e){super(),this['id']=_0x56976e['id']||_0x2db367(),this['author']=_0x56976e['author'],this['type']=_0x56976e['type'],this['data']=_0x56976e['data']||{},this['rootName']=_0x56976e['rootName'],this['set']('createdAt',_0x56976e['createdAt']);}['toJSON'](){return{'id':this['id'],'authorId':this['author']['id'],'type':this['type'],'data':this['data'],'createdAt':this['createdAt']};}}class f{['newRevisionId'];['oldRevisionId'];['changes'];constructor(_0x5cf166,_0x30d7be){this['newRevisionId']=_0x5cf166,this['oldRevisionId']=_0x30d7be,this['changes']=new _0x2ea1f0();}['_setChanges'](_0x3120c3){for(const _0x18dfe8 of _0x3120c3)this['changes']['add'](_0x18dfe8);}}const Y={'c':_0x5c019d,'a':_0x2a12b9,'e':_0xa92834,'r':_0x17c041,'u':_0x574306};class d extends _0x19d40b{['repository'];['adapter'];['_activeViewTarget'];['_changeView'];['_changeIdToChange'];['_balloon'];static get['pluginName'](){return'RevisionViewer';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x2b50cc,_0x1651d4,j];}constructor(_0xde1ef6){super(_0xde1ef6),this['repository']=this['editor']['plugins']['get']('RevisionsRepository'),this['set']('activeChange',null),this['set']('activeView',null),this['_activeViewTarget']=null,this['set']('diff',null),this['set']('isReady',!0x1),this['set']('isEnabled',!0x0),this['on']('change:isEnabled',(_0x3d9566,_0x4900c8,_0x518a6f)=>{this['activeChange']=null,this['activeView']=null,this['editor']['editing']['view']['change'](_0x547a67=>{for(const _0x11402b of this['editor']['editing']['view']['document']['roots'])_0x518a6f?_0x547a67['removeClass']('ck-editor__editable__overlay',_0x11402b):_0x547a67['addClass']('ck-editor__editable__overlay',_0x11402b);});}),this['bind']('isNavigationMode')['to'](this,'activeChange',_0x202197=>null!==_0x202197),this['bind']('currentChangeNumber')['to'](this,'isReady',this,'diff',this,'activeChange',(_0x1814e8,_0x149d15,_0x3e6f28)=>_0x1814e8&&_0x3e6f28?_0x149d15['changes']['getIndex'](_0x3e6f28):0x0),this['bind']('numberOfChanges')['to'](this,'isReady',this,'diff',(_0x4ff26a,_0x137978)=>_0x4ff26a?_0x137978['changes']['length']:0x0),this['_changeView']=null,this['_changeIdToChange']=new Map(),this['adapter']=null,this['_balloon']=this['editor']['plugins']['get'](_0x1651d4);}['init'](){const _0x49c57a=this['editor'],_0x30bf3f=new _t(_0x49c57a,{'direction':'backward'}),_0x295898=new _t(_0x49c57a,{'direction':'forward'});(_0x49c57a['commands']['add']('showPreviousChange',_0x30bf3f),_0x49c57a['commands']['add']('showNextChange',_0x295898),_0x49c57a['commands']['add']('restoreRevision',new pt(_0x49c57a)),this['on']('change:numberOfChanges',()=>{_0x30bf3f['refresh'](),_0x295898['refresh']();}),this['_setConversion'](),this['_initInteractions'](),_0x49c57a['enableReadOnlyMode']('revision-viewer'),_0x49c57a['plugins']['has']('WidgetToolbarRepository'))&&_0x49c57a['plugins']['get']('WidgetToolbarRepository')['forceDisabled']('revision-viewer');}async['getRevisionData'](_0x2570de){await this['loadRevisionData'](_0x2570de);const _0x3d5d2f={};for(const _0x1f3d78 in _0x2570de['diffData']){if(_0x2570de['diffData'][_0x1f3d78]['attachChange']&&!_0x2570de['diffData'][_0x1f3d78]['attachChange']['isAttached'])continue;const _0x238120=this['_removeRevisionMarkers'](JSON['parse'](_0x2570de['diffData'][_0x1f3d78]['insertions'])),_0x201221=this['editor']['editing']['view']['document'],_0x1b80ee=new _0x460b1e(_0x201221,_0x238120['map'](_0x1ab928=>this['_getViewObj'](_0x1ab928)));this['editor']['data']['processor']['useFillerType']('marked'),_0x3d5d2f[_0x1f3d78]=this['editor']['data']['processor']['toData'](_0x1b80ee),this['editor']['data']['processor']['useFillerType']('default');}return _0x3d5d2f;}async['getRevisionRootsAttributes'](_0x560928){await this['loadRevisionData'](_0x560928);const _0x1c464c={};for(const _0x5ea883 in _0x560928['diffData'])_0x560928['diffData'][_0x5ea883]['attachChange']&&!_0x560928['diffData'][_0x5ea883]['attachChange']['isAttached']||(_0x1c464c[_0x5ea883]=_0x560928['diffData'][_0x5ea883]['attributesAfter']||{});return _0x1c464c;}['_removeRevisionMarkers'](_0x395792){return(_0x395792=_0x395792['filter'](_0x4b8fde=>!_0x4b8fde['name']||'revision-start'!==_0x4b8fde['name']&&'revision-end'!==_0x4b8fde['name']))['forEach'](_0x152475=>{'string'!=typeof _0x152475&&(_0x152475['children']=this['_removeRevisionMarkers'](_0x152475['children']),_0x152475['attributes']=_0x152475['attributes']['filter'](_0x252d3c=>!_0x252d3c[0x0]['startsWith']('data-revision-')));}),_0x395792;}async['compare'](_0x5d244a,_0x8d4c15,_0xd8790b=!0x1){if(!this['isEnabled'])return;const _0x1d2a0f=this['diff'],_0x2067d5=this['repository'],_0x13afda='string'==typeof _0x5d244a?_0x2067d5['getRevision'](_0x5d244a):_0x5d244a,_0x55c090='string'==typeof _0x8d4c15?_0x2067d5['getRevision'](_0x8d4c15):_0x8d4c15,_0x1ccea9=_0x13afda['id'],_0x2f1538=_0x55c090?_0x55c090['id']:null;if(!_0xd8790b&&this['diff']&&this['diff']['newRevisionId']===_0x1ccea9&&this['diff']['oldRevisionId']===_0x2f1538)return Promise['resolve']();this['isReady']=!0x1,this['activeView']=null,this['activeChange']=null,this['diff']=new f(_0x1ccea9,_0x2f1538);const _0x3cc186=this['_getRevisionsRange'](_0x13afda,_0x55c090,!0x0)['map'](_0x127f75=>this['loadRevisionData'](_0x127f75));return _0x3cc186['push'](new Promise(_0xbcaf52=>{setTimeout(_0xbcaf52,0x14);})),Promise['all'](_0x3cc186)['then'](()=>{if(!this['isEnabled'])return;this['_cleanUp']();const _0x300e7f=this['_getDiff'](_0x1ccea9,_0x2f1538);for(const _0x3e5902 of _0x300e7f['changes'])this['_changeIdToChange']['set'](_0x3e5902['id'],_0x3e5902);this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x326b24=>{for(const _0x435ecb of this['editor']['model']['document']['getRootNames']())_0x326b24['detachRoot'](_0x435ecb);for(const _0x3aeacc of Object['keys'](_0x300e7f['model'])){const _0x18665f=_0x326b24['addRoot'](_0x3aeacc);for(const _0x307c0f of Object['keys'](_0x300e7f['attributes'][_0x3aeacc]))_0x326b24['setAttribute'](_0x307c0f,_0x300e7f['attributes'][_0x3aeacc][_0x307c0f],_0x18665f);_0x326b24['insert'](_0x300e7f['model'][_0x3aeacc],_0x18665f,0x0);}}),this['diff']['_setChanges'](this['_sortAndFilterDiffChanges'](_0x300e7f['changes'])),this['isReady']=!0x0;})['catch'](_0x50494b=>{console['error'](_0x50494b),this['_cleanUp'](),_0x1d2a0f&&(this['diff']=_0x1d2a0f),this['isReady']=!0x0;});}['addRevisionData'](_0x10a736,_0x21acdd){const _0x2e3831=this['repository']['createRevision'](_0x10a736);return _0x2e3831['on']('_update',(_0x468e8f,_0x1b445c,_0x29cbd5)=>_0x21acdd(_0x1b445c,_0x29cbd5,_0x2e3831)),this['repository']['addRevision'](_0x2e3831),_0x2e3831;}['loadRevisionData'](_0x91a9b5){if(!_0x91a9b5||_0x91a9b5['diffData'])return Promise['resolve']();{const _0x13cfe5=this['editor']['config']['get']('collaboration.channelId');return this['adapter']['getRevision']({'channelId':_0x13cfe5,'revisionId':_0x91a9b5['id']})['then'](_0x27afe2=>{_0x91a9b5['_update']({'diffData':_0x27afe2['diffData']},!0x0);});}}['_cleanUp'](){this['activeChange']=null,this['_cleanMarkers'](),this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=null,this['_changeIdToChange']['clear'](),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0xe4373f=>{for(const _0x3e786f of this['editor']['model']['document']['getRootNames']())_0xe4373f['detachRoot'](_0x3e786f);});}['_sortAndFilterDiffChanges'](_0xe1ad77){const _0x530122=[],_0x5d92b9=new Map();for(const _0x13db14 of this['editor']['model']['document']['getRootNames']()){const _0x2fc6f7=this['editor']['editing']['view']['getDomRoot'](_0x13db14);if(!_0x2fc6f7)continue;const _0x52cceb=_0x2fc6f7['getClientRects']()['item'](0x0);_0x52cceb&&(_0x530122['push'](_0x13db14),_0x5d92b9['set'](_0x13db14,_0x52cceb));}return _0x530122['sort']((_0x24d4e0,_0x382f94)=>{const _0x274125=_0x5d92b9['get'](_0x24d4e0),_0x3ef09c=_0x5d92b9['get'](_0x382f94);return _0x274125['y']-_0x3ef09c['y']||_0x274125['x']-_0x3ef09c['x'];}),(_0xe1ad77=_0xe1ad77['filter'](_0x261b92=>_0x530122['includes'](_0x261b92['rootName'])))['sort']((_0x3b09d8,_0x468946)=>_0x530122['indexOf'](_0x3b09d8['rootName'])-_0x530122['indexOf'](_0x468946['rootName'])),_0xe1ad77;}['_makeTape'](_0x310b58){const _0x42b2fa=Array['from'](_0x310b58['markers'])['filter'](([_0x571f3d,_0x5c241c])=>_0x571f3d['startsWith']('revision:')&&!_0x5c241c['isCollapsed']),_0x337789=Array['from'](this['editor']['model']['createRangeIn'](_0x310b58)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0x42b2fa['length'])for(const _0x3de539 of _0x337789){const [_0x5f38df,_0x498782]=_0x42b2fa[0x0],[,_0x39f76e,_0x3a1339]=_0x5f38df['split'](':');if(_0x498782['end']['isEqual'](_0x3de539['nextPosition'])&&_0x42b2fa['shift'](),(_0x3de539['previousPosition']['isEqual'](_0x498782['start'])||_0x3de539['previousPosition']['isAfter'](_0x498782['start']))&&('insertion'==_0x39f76e?_0x3de539['isAdded']={'userId':_0x3a1339}:'deletion'==_0x39f76e&&(_0x3de539['isRemoved']={'userId':_0x3a1339})),0x0==_0x42b2fa['length'])break;}return _0x337789;}['_refreshStartEndIndex'](_0x3a83f8){const _0x2658e4=new Map();for(let _0x4650de=0x0;_0x4650de<_0x3a83f8['length'];_0x4650de++)'text'===_0x3a83f8[_0x4650de]['type']?(_0x3a83f8[_0x4650de]['item']['startIndex']=_0x4650de,_0x3a83f8[_0x4650de]['item']['endIndex']=_0x4650de):('elementStart'===_0x3a83f8[_0x4650de]['type']?_0x3a83f8[_0x4650de]['item']['startIndex']=_0x4650de:'elementEnd'===_0x3a83f8[_0x4650de]['type']&&(_0x3a83f8[_0x4650de]['item']['endIndex']=_0x4650de),_0x2658e4['set'](_0x3a83f8[_0x4650de]['id'],_0x4650de));for(const _0x47a30e of _0x2658e4['values']())'elementStart'===_0x3a83f8[_0x47a30e]['type']?_0x3a83f8[_0x47a30e]['item']['endIndex']=_0x2658e4['get'](_0x3a83f8[_0x47a30e]['pairId']):'elementEnd'===_0x3a83f8[_0x47a30e]['type']&&(_0x3a83f8[_0x47a30e]['item']['startIndex']=_0x2658e4['get'](_0x3a83f8[_0x47a30e]['pairId']));}['_processTape'](_0x2838f8){for(let _0xc5dea9=0x0;_0xc5dea9<_0x2838f8['length'];_0xc5dea9++){if('elementStart'===_0x2838f8[_0xc5dea9]['type'])_0x2838f8[_0xc5dea9]['item']['startIndex']=_0xc5dea9;else{if('elementEnd'===_0x2838f8[_0xc5dea9]['type']){_0x2838f8[_0xc5dea9]['item']['endIndex']=_0xc5dea9;const _0x40d211=_0x2838f8[_0xc5dea9]['item']['startIndex'];_0x2838f8[_0x40d211]['pairId']=_0x2838f8[_0xc5dea9]['id'],_0x2838f8[_0xc5dea9]['pairId']=_0x2838f8[_0x40d211]['id'];}else _0x2838f8[_0xc5dea9]['item']['startIndex']=_0xc5dea9,_0x2838f8[_0xc5dea9]['item']['endIndex']=_0xc5dea9,_0x2838f8[_0xc5dea9]['pairId']=null;}_0x2838f8[_0xc5dea9]['markersStart']||(_0x2838f8[_0xc5dea9]['markersStart']=[],_0x2838f8[_0xc5dea9]['markersEnd']=[]);}}['_markInsertions'](_0x3fb475,_0x2538c0){const _0x539e3c=_0x3fb475['filter'](_0x53f4fc=>!_0x53f4fc['isAdded']);for(let _0x280241=0x0;_0x280241<_0x2538c0['length'];_0x280241++)_0x2538c0[_0x280241]['isAdded']&&(_0x539e3c[_0x280241]['isAdded']=_0x2538c0[_0x280241]['isAdded']);}['_makeModelFromViewString'](_0x3c3332){const _0x40047a=JSON['parse'](_0x3c3332),_0x51bb24=this['editor']['editing']['view']['document'],_0x268a4c=new _0x460b1e(_0x51bb24,_0x40047a['map'](_0x23af23=>this['_getViewObj'](_0x23af23)));return this['editor']['data']['toModel'](_0x268a4c);}['_getViewObj'](_0x263de4){const _0x205683=this['editor']['editing']['view']['document'];if('string'==typeof _0x263de4)return new _0x2adbf7(_0x205683,_0x263de4);{const _0xdc3efc=_0x263de4['children']['map'](_0x5be24d=>this['_getViewObj'](_0x5be24d));return new(Y[_0x263de4['type']]||_0x9d4bdd)(_0x205683,_0x263de4['name'],_0x263de4['attributes'],_0xdc3efc);}}['_getDiff'](_0x39ef84,_0x52c14b=null){const _0x58fa02=this['repository']['getRevision'](_0x39ef84),_0x120201=_0x52c14b?this['repository']['getRevision'](_0x52c14b):null,_0x3f73df=this['_getRevisionsRange'](_0x58fa02,_0x120201),_0x556bf2=_0x3f73df[_0x3f73df['length']-0x1],_0x1a4e70=new Map(),_0x3b19f3={'model':{},'attributes':{},'changes':[]},_0x168d88=new Set(),_0x2e10ae=new Map();for(let _0x1ab9d5=_0x3f73df['length']-0x1;_0x1ab9d5>=0x0;_0x1ab9d5--){const _0x56b85e=_0x3f73df[_0x1ab9d5];for(const _0x1d63f6 of Object['keys'](_0x56b85e['diffData']))if(_0x56b85e['diffData'][_0x1d63f6]['attachChange']){const _0x30f077=_0x56b85e['diffData'][_0x1d63f6]['attachChange'];_0x30f077['isAttached']?(_0x168d88['add'](_0x1d63f6),_0x2e10ae['has'](_0x1d63f6)&&_0x2e10ae['get'](_0x1d63f6)['userId']==_0x30f077['userId']?_0x2e10ae['delete'](_0x1d63f6):_0x2e10ae['set'](_0x1d63f6,_0x30f077)):_0x2e10ae['has'](_0x1d63f6)?(_0x168d88['delete'](_0x1d63f6),_0x2e10ae['delete'](_0x1d63f6)):(_0x168d88['add'](_0x1d63f6),_0x2e10ae['set'](_0x1d63f6,_0x30f077));}else _0x168d88['add'](_0x1d63f6);}for(const _0xdec72d of _0x168d88){const _0x31310e=_0x2e10ae['has'](_0xdec72d)&&!_0x2e10ae['get'](_0xdec72d)['isAttached'];let _0x283f71=_0x31310e?_0x3f73df['length']-0x1:0x0;const _0x514111=_0x31310e?-0x1:0x1;for(;_0x3f73df[_0x283f71];){const _0xa8d656=_0x3f73df[_0x283f71];if(_0xa8d656['diffData'][_0xdec72d]){const _0x10b865=_0x31310e?_0xa8d656['diffData'][_0xdec72d]['attributesBefore']:_0xa8d656['diffData'][_0xdec72d]['attributesAfter'];_0x3b19f3['attributes'][_0xdec72d]=_0x10b865?_0x43a474(_0x10b865):{};break;}_0x283f71+=_0x514111;}}for(const _0x597724 of _0x3f73df){_0x597724['model']={};for(const _0xa2c523 of _0x597724['authors'])_0x1a4e70['set'](_0xa2c523['id'],_0xa2c523);for(const _0x5f1313 of _0x168d88){const _0x1bec29=_0x597724['diffData'][_0x5f1313]?_0x597724['diffData'][_0x5f1313]['insertions']:'[]',_0x1be1a1=_0x597724['diffData'][_0x5f1313]?_0x597724['diffData'][_0x5f1313]['deletions']:'[]';_0x597724['model'][_0x5f1313]={'insertions':this['_makeModelFromViewString'](_0x1bec29),'deletions':this['_makeModelFromViewString'](_0x1be1a1)};}}for(const _0x54b5e5 of _0x168d88){let _0x3e36f5=null,_0x590583=0x0;const _0x28f59d=new Map(Array['from'](_0x58fa02['model'][_0x54b5e5]['insertions']['markers'])['filter'](([_0x42fcdb])=>!_0x42fcdb['startsWith']('revision:')));let _0x2f2626=0x0;for(const _0x2b9d6c of _0x3f73df){const _0x4d9c0f=this['_makeTape'](_0x2b9d6c['model'][_0x54b5e5]['insertions']);_0x2b9d6c==_0x58fa02?(_0x3e36f5=_0x4d9c0f,_0x590583=_0x3e36f5['length'],_0x3e36f5['forEach'](_0x4ba516=>{_0x4ba516['id']=_0x2f2626++;}),this['_processTape'](_0x3e36f5)):this['_markInsertions'](_0x3e36f5,_0x4d9c0f);const _0xa4b786=_0x3e36f5['filter'](_0x3917ed=>!_0x3917ed['isAdded'])['map'](_0x5c6df3=>_0x5c6df3['id']);let _0x3f8ea3=0x0;const _0x1df0e6=this['_makeTape'](_0x2b9d6c['model'][_0x54b5e5]['deletions']);_0x1df0e6['forEach'](_0x499121=>{_0x499121['isRemoved']?_0x499121['id']=_0x590583++:_0x499121['id']=_0xa4b786[_0x3f8ea3++];}),this['_processTape'](_0x1df0e6),this['_setDistance'](_0x3e36f5,'isAdded'),this['_setDistance'](_0x1df0e6,'isRemoved'),_0x2b9d6c==_0x58fa02&&this['_markMarkers'](_0x3e36f5,_0x28f59d),_0x3e36f5=this['_joinTapes'](_0x3e36f5,_0x1df0e6),this['_refreshStartEndIndex'](_0x3e36f5),this['_setDistance'](_0x3e36f5,'isRemoved');}_0x3e36f5=_0x3e36f5['filter'](_0x11770d=>!(_0x11770d['isAdded']&&_0x11770d['isRemoved']));const _0x4074ca=new Map(_0x556bf2['model'][_0x54b5e5]['deletions']['markers']),_0x585eaf=new Set(_0x28f59d['keys']());for(const _0x51c17a of _0x4074ca['keys']())_0x585eaf['delete'](_0x51c17a);this['_markSuggestions'](_0x3e36f5,_0x585eaf),this['_fixObsoleteTags'](_0x3e36f5),_0x3e36f5=this['_removeMissingPairs'](_0x3e36f5),_0x3e36f5=this['_markMismatchedRemovedTags'](_0x3e36f5),_0x3e36f5=this['_removeUnsupportedChanges'](_0x3e36f5);const {root:_0x2975e0,changes:_0x214631}=this['_makeModelFromTape'](_0x3e36f5,_0x1a4e70,_0x54b5e5);_0x3b19f3['model'][_0x54b5e5]=_0x2975e0;const _0x55474e=_0x2e10ae['get'](_0x54b5e5);if(_0x55474e){const _0x45069d=_0x1a4e70['get'](_0x55474e['userId']),_0x4c6b6a=new r({'author':_0x45069d,'type':_0x55474e['isAttached']?'add':'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x54b5e5});_0x214631['unshift'](_0x4c6b6a),_0x3b19f3['attributes'][_0x54b5e5]['revisionHistoryAttachChange']=_0x4c6b6a['id'];}_0x3b19f3['changes']=_0x3b19f3['changes']['concat'](_0x214631);}return _0x3b19f3;}['_markMarkers'](_0x24f23e,_0x1677e8){for(let _0xe50e69=0x0;_0xe50e69<_0x24f23e['length'];_0xe50e69++)for(const [_0x2ba3b2,_0x183d08]of _0x1677e8)_0x183d08['start']['isEqual'](_0x24f23e[_0xe50e69]['previousPosition'])&&_0x24f23e[_0xe50e69]['markersStart']['push'](_0x2ba3b2),_0x183d08['end']['isEqual'](_0x24f23e[_0xe50e69]['nextPosition'])&&_0x24f23e[_0xe50e69]['markersEnd']['push'](_0x2ba3b2);}['_joinTapes'](_0x275023,_0x18ce4e){let _0x34ac89=[],_0x521492=0x0,_0x4f0bc4=0x0;for(;_0x521492<_0x275023['length']||_0x4f0bc4<_0x18ce4e['length'];){const _0x5cabd9=_0x275023[_0x521492]||{},_0x2e8341=_0x18ce4e[_0x4f0bc4]||{};if(_0x5cabd9['id']==_0x2e8341['id'])_0x521492++,_0x4f0bc4++,_0x34ac89['push'](_0x5cabd9);else{if(_0x2e8341['isRemoved']&&_0x5cabd9['isAdded']){const {commonTape:_0x4dfc2b,iEnd:_0x3dc393,jEnd:_0x16c30e}=this['_threeWayMerge'](_0x275023,_0x521492,_0x18ce4e,_0x4f0bc4);_0x34ac89=_0x34ac89['concat'](_0x4dfc2b),_0x521492=_0x3dc393,_0x4f0bc4=_0x16c30e;}else _0x2e8341['isRemoved']?(_0x4f0bc4++,_0x34ac89['push'](_0x2e8341)):(_0x521492++,_0x34ac89['push'](_0x5cabd9));}}return _0x34ac89;}['_markSuggestions'](_0x473a03,_0x38da87){const _0x4fc27f=[];for(let _0x29afd6=0x0;_0x29afd6<_0x473a03['length'];_0x29afd6++){for(let _0xce97f6=0x0;_0xce97f6<_0x473a03[_0x29afd6]['markersStart']['length'];_0xce97f6++){const _0x596b49=_0x473a03[_0x29afd6]['markersStart'][_0xce97f6];if(!_0x38da87['has'](_0x596b49))continue;const {group:_0x172e5a,type:_0x5b3747,authorId:_0x2581bb}=_0x161c78(_0x596b49);'revision-suggestion'!=_0x172e5a||'insertion'!=_0x5b3747&&'deletion'!=_0x5b3747||(_0x4fc27f['unshift']({'type':_0x5b3747,'name':_0x596b49,'userId':_0x2581bb}),_0x473a03[_0x29afd6]['markersStart']['splice'](_0xce97f6,0x1),_0xce97f6--);}_0x5a5ee4(_0x473a03[_0x29afd6]);for(let _0x2bae40=0x0;_0x2bae40<_0x473a03[_0x29afd6]['markersEnd']['length'];_0x2bae40++){const _0x2edd3d=_0x473a03[_0x29afd6]['markersEnd'][_0x2bae40];if(!_0x38da87['has'](_0x2edd3d))continue;const {group:_0x414e67,type:_0x24c2a1}=_0x161c78(_0x2edd3d);if('revision-suggestion'!=_0x414e67||'insertion'!=_0x24c2a1&&'deletion'!=_0x24c2a1)continue;_0x473a03[_0x29afd6]['markersEnd']['splice'](_0x2bae40,0x1),_0x2bae40--;const _0x2ff612=_0x4fc27f['findIndex'](_0x3e5726=>_0x3e5726['name']==_0x2edd3d);_0x2ff612>-0x1&&_0x4fc27f['splice'](_0x2ff612,0x1);}}function _0x161c78(_0x53c890){const _0x14dfe1=_0x53c890['split'](':');return{'group':_0x14dfe1[0x0],'type':_0x14dfe1[0x1],'subType':_0x14dfe1['length']>=0x5?_0x14dfe1[0x2]:null,'id':_0x14dfe1['length']<0x5?_0x14dfe1[0x2]:_0x14dfe1[0x3],'authorId':_0x14dfe1['length']<0x5?_0x14dfe1[0x3]:_0x14dfe1[0x4],'markerCount':0x6==_0x14dfe1['length']?_0x14dfe1[0x5]:null};}function _0x5a5ee4(_0x12edc2){for(let _0x8bfc57=0x0;_0x8bfc57<_0x4fc27f['length'];_0x8bfc57++){if(_0x12edc2['isAdded']&&'insertion'==_0x4fc27f[_0x8bfc57]['type'])return _0x12edc2['isAddSuggestion']=_0x4fc27f[_0x8bfc57],void delete _0x12edc2['isAdded'];if(!_0x12edc2['isAdded']&&!_0x12edc2['isRemoved']&&'deletion'==_0x4fc27f[_0x8bfc57]['type'])return void(_0x12edc2['isRemoveSuggestion']=_0x4fc27f[_0x8bfc57]);}}}['_setDistance'](_0x147504,_0x14c305){let _0x43f193=0x0,_0xb352ef=!0x1;const _0x45ce4e=new Map();for(const _0x15ed6a of _0x147504)_0x15ed6a[_0x14c305]?_0xb352ef&&(_0x43f193++,_0xb352ef=!0x1):(_0x43f193++,_0xb352ef=!0x0),_0x45ce4e['set'](_0x15ed6a['id'],_0x43f193);for(let _0x257630=0x0;_0x257630<_0x147504['length'];_0x257630++){if('isRemoved'==_0x14c305&&_0x147504[_0x257630]['isAdded']||'isAdded'==_0x14c305&&_0x147504[_0x257630]['isRemoved'])continue;if('text'==_0x147504[_0x257630]['type']){_0x147504[_0x257630]['distance']=0x0;continue;}const _0x58ba15=_0x45ce4e['get'](_0x147504[_0x257630]['pairId']),_0x5a6070=_0x45ce4e['get'](_0x147504[_0x257630]['id']);_0x147504[_0x257630]['distance']=_0x58ba15-_0x5a6070;}}['_getRevisionsRange'](_0x593529,_0x9db63f,_0x5d26a6=!0x1){const _0x5e8d9d=[];let _0x5a545f=this['repository']['getIndex'](_0x593529),_0x420170=this['repository']['getIndex'](_0x9db63f);for(-0x1==_0x420170&&(_0x420170=this['repository']['_revisions']['length'],_0x5d26a6=!0x1);_0x5a545f<_0x420170;)_0x5e8d9d['push'](this['repository']['getRevision'](_0x5a545f)),_0x5a545f++;return _0x5d26a6&&_0x5e8d9d['push'](this['repository']['getRevision'](_0x5a545f)),_0x5e8d9d;}['_threeWayMerge'](_0x1ac1a9,_0x4e8cac,_0x353697,_0x21c073){const _0x30c7a4=this['editor']['model']['schema'];let _0x34988c=_0x4e8cac;for(;_0x1ac1a9[_0x34988c]&&_0x1ac1a9[_0x34988c]['isAdded'];)_0x34988c++;let _0x50a81d=_0x21c073;for(;_0x353697[_0x50a81d]&&_0x353697[_0x50a81d]['isRemoved'];)_0x50a81d++;_0x9a4a83(_0x1ac1a9,_0x4e8cac,_0x34988c),_0x9a4a83(_0x353697,_0x21c073,_0x50a81d);const _0x3d3896=_0x353697['slice'](_0x21c073,_0x50a81d)['concat'](_0x1ac1a9['slice'](_0x4e8cac,_0x34988c));return _0x3d3896['sort']((_0x4ace48,_0x293cc6)=>_0x4ace48['side']!=_0x293cc6['side']?_0x4ace48['side']-_0x293cc6['side']:_0x4ace48['level']!=_0x293cc6['level']?_0x4ace48['level']-_0x293cc6['level']:_0x4ace48['distance']!=_0x293cc6['distance']?_0x293cc6['distance']-_0x4ace48['distance']:!!_0x4ace48['isAdded']!=!!_0x293cc6['isAdded']?-0x1==_0x4ace48['side']||0x0==_0x4ace48['side']?_0x4ace48['isAdded']?-0x1:0x1:_0x4ace48['isAdded']?0x1:-0x1:_0x4ace48['index']-_0x293cc6['index']),{'commonTape':_0x3d3896,'iEnd':_0x34988c,'jEnd':_0x50a81d};function _0x9a4a83(_0x5edc7d,_0x184b96,_0xbd04bf){let _0x4b5377=-0x1,_0x498c86=Number['POSITIVE_INFINITY'],_0x58bfbb=!0x0;for(let _0xde82e2=_0x184b96;_0xde82e2<_0xbd04bf;_0xde82e2++)if(_0x30c7a4['isInline'](_0x5edc7d[_0xde82e2]['item'])||(_0x58bfbb=!0x1),_0x5edc7d[_0xde82e2]['item']['startIndex']<_0x184b96&&(_0x4b5377=_0xde82e2),_0x5edc7d[_0xde82e2]['item']['endIndex']>=_0xbd04bf){_0x498c86=_0xde82e2;break;}_0x58bfbb&&(_0x4b5377=_0xbd04bf-0x1);for(let _0x5f2488=_0x184b96;_0x5f2488<_0xbd04bf;_0x5f2488++)_0x5edc7d[_0x5f2488]['side']=_0x5f2488<=_0x4b5377?-0x1:_0x5f2488<_0x498c86?0x0:0x1,_0x5edc7d[_0x5f2488]['index']=_0x5f2488;let _0x335d16=0x0;for(let _0x1494b1=_0x184b96;_0x1494b1<=_0x4b5377;_0x1494b1++)0x0==_0x5edc7d[_0x1494b1]['distance']?_0x5edc7d[_0x1494b1]['level']=_0x335d16:(_0x335d16++,_0x5edc7d[_0x1494b1]['level']=_0x335d16,_0x335d16++);for(let _0x5aeade=_0x184b96;_0x5aeade<_0xbd04bf;_0x5aeade++)0x0==_0x5edc7d[_0x5aeade]['side']&&(_0x5edc7d[_0x5aeade]['level']=_0x335d16);_0x335d16=0x0;for(let _0x6a8ea5=_0xbd04bf-0x1;_0x6a8ea5>=_0x498c86;_0x6a8ea5--)0x0==_0x5edc7d[_0x6a8ea5]['distance']?_0x5edc7d[_0x6a8ea5]['level']=_0x335d16:(_0x335d16--,_0x5edc7d[_0x6a8ea5]['level']=_0x335d16,_0x335d16--);}}['_fixObsoleteTags'](_0x5edb17){const _0x215692=new Map(),_0x473a05=this['editor']['model']['schema'];for(let _0x294de4=0x1;_0x294de4<_0x5edb17['length'];_0x294de4++){let _0x1b146e,_0x29df1a,_0x1d2fef;const _0x3a794b=_0x5edb17[_0x294de4],_0x44c717=_0x5edb17[_0x294de4-0x1];if('text'==_0x3a794b['type'])continue;if(_0x3a794b['type']!=_0x44c717['type'])continue;if(!_0x473a05['isBlock'](_0x44c717['item'])||_0x473a05['isLimit'](_0x44c717['item']))continue;if(!_0x473a05['isBlock'](_0x3a794b['item'])||_0x473a05['isLimit'](_0x3a794b['item']))continue;if((_0x5edb17[_0x294de4]['isAdded']||_0x5edb17[_0x294de4]['isAddSuggestion'])&&_0x5edb17[_0x294de4-0x1]['isRemoved'])_0x1b146e=_0x5edb17[_0x294de4],_0x29df1a=_0x5edb17[_0x294de4-0x1],_0x1d2fef=_0x294de4-0x1;else{if(!_0x5edb17[_0x294de4]['isRemoved']||!_0x5edb17[_0x294de4-0x1]['isAdded']&&!_0x5edb17[_0x294de4-0x1]['isAddSuggestion'])continue;_0x1b146e=_0x5edb17[_0x294de4-0x1],_0x29df1a=_0x5edb17[_0x294de4],_0x1d2fef=_0x294de4;}const _0x504723=_0x1b146e['level']==_0x29df1a['level'],_0x517841=Math['abs'](_0x1b146e['level'])<Math['abs'](_0x29df1a['level'])&&0x0==_0x29df1a['distance'];(_0x504723||_0x517841)&&(_0x215692['set'](_0x29df1a['id'],_0x1b146e['id']),_0x5edb17['splice'](_0x1d2fef,0x1),_0x294de4--,_0x1b146e['isAdded']=!0x1);}for(let _0x2ba7c3=0x0;_0x2ba7c3<_0x5edb17['length'];_0x2ba7c3++)_0x215692['has'](_0x5edb17[_0x2ba7c3]['pairId'])&&(_0x5edb17[_0x2ba7c3]['pairId']=_0x215692['get'](_0x5edb17[_0x2ba7c3]['pairId']));}['_removeMissingPairs'](_0x4ea439){const _0x4b01e2=new Set(_0x4ea439['map'](_0xc739d7=>_0xc739d7['id']));for(let _0x4031d2=0x0;_0x4031d2<_0x4ea439['length'];_0x4031d2++)_0x4b01e2['has'](_0x4ea439[_0x4031d2]['pairId'])||0x0==_0x4ea439[_0x4031d2]['distance']||(_0x4ea439[_0x4031d2]['isIncorrect']=!0x0);return _0x4ea439['filter'](_0x2f9397=>!_0x2f9397['isIncorrect']);}['_markMismatchedRemovedTags'](_0x2b77af){const _0x346e67=new Set();for(let _0x4b55ca=0x0;_0x4b55ca<_0x2b77af['length'];_0x4b55ca++){if(_0x346e67['has'](_0x2b77af[_0x4b55ca]['id'])&&_0x2b77af[_0x4b55ca]['isRemoved']&&(_0x2b77af[_0x4b55ca]['isIncorrect']=!0x0),_0x2b77af[_0x4b55ca]['isIncorrect'])continue;if(0x0==_0x2b77af[_0x4b55ca]['distance'])continue;if('elementStart'!=_0x2b77af[_0x4b55ca]['type'])continue;if(null==_0x2b77af[_0x4b55ca]['pairId'])continue;let _0x1773ac=_0x4b55ca+0x1,_0x1bc11a=0x0;for(;_0x2b77af[_0x1773ac]['id']!=_0x2b77af[_0x4b55ca]['pairId'];)'elementStart'==_0x2b77af[_0x1773ac]['type']?_0x1bc11a++:'elementEnd'==_0x2b77af[_0x1773ac]['type']&&_0x1bc11a--,_0x1773ac++;if(0x0!=_0x1bc11a){if(_0x2b77af[_0x4b55ca]['isRemoved'])_0x2b77af[_0x4b55ca]['isIncorrect']=!0x0;else{for(;_0x1773ac!=_0x4b55ca;)_0x2b77af[_0x1773ac]['isRemoved']&&0x0!=_0x2b77af[_0x1773ac]['distance']&&(_0x2b77af[_0x1773ac]['isIncorrect']=!0x0,_0x346e67['add'](_0x2b77af[_0x1773ac]['pairId'])),_0x1773ac--;}}}return _0x2b77af['filter'](_0x308531=>!_0x308531['isIncorrect']);}['_removeUnsupportedChanges'](_0x5818ab){const _0x399c66=this['editor']['model']['schema'];for(let _0x8f60b=0x0;_0x8f60b<_0x5818ab['length'];_0x8f60b++){if(!(_0x5818ab[_0x8f60b]['isAdded']||_0x5818ab[_0x8f60b]['isAddSuggestion']||_0x5818ab[_0x8f60b]['isRemoved']||_0x5818ab[_0x8f60b]['isRemoveSuggestion']))continue;if(0x0==_0x5818ab[_0x8f60b]['distance'])continue;const _0x3d86e6=_0x5818ab[_0x8f60b]['item'];_0x399c66['isBlock'](_0x3d86e6)||_0x399c66['isLimit'](_0x3d86e6)||(_0x5818ab[_0x8f60b]['isAdded']&&delete _0x5818ab[_0x8f60b]['isAdded'],_0x5818ab[_0x8f60b]['isAddSuggestion']&&delete _0x5818ab[_0x8f60b]['isAddSuggestion'],_0x5818ab[_0x8f60b]['isRemoveSuggestion']&&delete _0x5818ab[_0x8f60b]['isRemoveSuggestion'],_0x5818ab[_0x8f60b]['isRemoved']&&(_0x5818ab[_0x8f60b]['isIncorrect']=!0x0));}return _0x5818ab['filter'](_0x468006=>!_0x468006['isIncorrect']);}['_makeModelFromTape'](_0x4d9f21,_0x5c1c90,_0xb75d5b){const _0x291f87=new mt(),_0x2a439a=[],_0x4707ed=new Map(),_0x132665=this['editor']['model'],_0x1459d2=_0x132665['schema'],_0x3c6362=[_0x291f87],_0x27b2ff={},_0x49c573={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x448e05=null;const _0x526979=[0x0];for(let _0x36273d=0x0;_0x36273d<_0x4d9f21['length'];_0x36273d++)if('elementStart'===_0x4d9f21[_0x36273d]['type']){_0x4d9f21[_0x36273d]['previousPosition']=_0x132665['createPositionFromPath'](_0x291f87,_0x526979);const _0x8a574b=new ft(_0x4d9f21[_0x36273d]['item']['name'],_0x4d9f21[_0x36273d]['item']['getAttributes']());_0x3c6362[0x0]['_appendChild'](_0x8a574b),_0x526979['push'](0x0),_0x3c6362['unshift'](_0x8a574b),_0x4d9f21[_0x36273d]['nextPosition']=_0x132665['createPositionFromPath'](_0x291f87,_0x526979);}else'elementEnd'===_0x4d9f21[_0x36273d]['type']?(_0x3c6362['shift'](),_0x4d9f21[_0x36273d]['previousPosition']=_0x132665['createPositionFromPath'](_0x291f87,_0x526979),_0x526979['pop'](),_0x526979[_0x526979['length']-0x1]++,_0x4d9f21[_0x36273d]['nextPosition']=_0x132665['createPositionFromPath'](_0x291f87,_0x526979)):(_0x4d9f21[_0x36273d]['previousPosition']=_0x132665['createPositionFromPath'](_0x291f87,_0x526979),_0x448e05?_0x448e05['_data']+=_0x4d9f21[_0x36273d]['item']['data']:_0x448e05=new wt(_0x4d9f21[_0x36273d]['item']['data'],_0x4d9f21[_0x36273d]['item']['getAttributes']()),_0x4d9f21[_0x36273d+0x1]&&'text'===_0x4d9f21[_0x36273d+0x1]['type']&&_0x18c39a(_0x448e05,_0x4d9f21[_0x36273d+0x1]['item'])||(_0x3c6362[0x0]['_appendChild'](_0x448e05),_0x448e05=null),_0x526979[_0x526979['length']-0x1]+=_0x4d9f21[_0x36273d]['item']['offsetSize'],_0x4d9f21[_0x36273d]['nextPosition']=_0x132665['createPositionFromPath'](_0x291f87,_0x526979));for(let _0x10ad96=0x0;_0x10ad96<_0x4d9f21['length'];_0x10ad96++){const _0x10c69a=_0x4d9f21[_0x10ad96]['previousPosition'],_0x1069fa=_0x4d9f21[_0x10ad96]['nextPosition'];for(const _0x4a2739 of _0x4d9f21[_0x10ad96]['markersStart'])_0x4707ed['set'](_0x4a2739,{'start':_0x10c69a,'end':null});_0x14daad('isRemoveSuggestion',_0x10ad96,_0x10c69a,_0x1069fa),_0x14daad('isAddSuggestion',_0x10ad96,_0x10c69a,_0x1069fa),_0x14daad('isRemoved',_0x10ad96,_0x10c69a,_0x1069fa),_0x14daad('isAdded',_0x10ad96,_0x10c69a,_0x1069fa);for(const _0x5e9fe1 of _0x4d9f21[_0x10ad96]['markersEnd']){_0x4707ed['get'](_0x5e9fe1)['end']=_0x1069fa;}}for(const [_0x316ec4,_0x930a2]of _0x4707ed){const _0x15b0c4=this['editor']['model']['createRange'](_0x930a2['start'],_0x930a2['end']);_0x291f87['markers']['set'](_0x316ec4,_0x15b0c4);}return _0x2a439a['sort']((_0x589e2b,_0x351795)=>{const _0x1945f7=_0x291f87['markers']['get']('revision:'+_0x589e2b['id']),_0x720b47=_0x291f87['markers']['get']('revision:'+_0x351795['id']);return _0x1945f7['start']['isBefore'](_0x720b47['start'])?-0x1:_0x1945f7['start']['isAfter'](_0x720b47['start'])?0x1:_0x1945f7['end']['isBefore'](_0x720b47['end'])?-0x1:_0x1945f7['end']['isAfter'](_0x720b47['end'])?0x1:'add'===_0x589e2b['type']?-0x1:0x1;}),{'root':_0x291f87,'changes':_0x2a439a};function _0x14daad(_0x19772a,_0x5eb361,_0x33680f,_0x58e2c9){const _0x359343=!!_0x4d9f21[_0x5eb361][_0x19772a],_0x401a5d=_0x359343?_0x4d9f21[_0x5eb361][_0x19772a]['userId']:null,_0x2e0d5c=_0x5eb361===_0x4d9f21['length']-0x1,_0x32c628=_0x49c573[_0x19772a][0x0],_0x4ad3bc=_0x1459d2['isObject'](_0x4d9f21[_0x5eb361]['item']);!_0x27b2ff[_0x19772a]&&_0x359343?_0x27b2ff[_0x19772a]={'start':_0x33680f,'tapeItem':_0x4d9f21[_0x5eb361],'userId':_0x401a5d,'type':_0x19772a}:_0x27b2ff[_0x19772a]&&!_0x359343?(_0x27b2ff[_0x19772a]['end']=_0x33680f,_0x59e01b(_0x27b2ff[_0x19772a]),_0x27b2ff[_0x19772a]=null):_0x27b2ff[_0x19772a]&&_0x359343&&_0x27b2ff[_0x19772a]['userId']!==_0x401a5d&&(_0x27b2ff[_0x19772a]['end']=_0x33680f,_0x32c628&&_0x32c628['userId']===_0x27b2ff[_0x19772a]['userId']||_0x59e01b(_0x27b2ff[_0x19772a]),_0x27b2ff[_0x19772a]={'start':_0x33680f,'tapeItem':_0x4d9f21[_0x5eb361],'userId':_0x401a5d,'type':_0x19772a}),_0x27b2ff[_0x19772a]&&_0x4ad3bc&&('elementStart'!==_0x4d9f21[_0x5eb361]['type']||_0x32c628&&_0x32c628['userId']===_0x401a5d||_0x49c573[_0x19772a]['unshift']({'userId':_0x401a5d,'object':_0x4d9f21[_0x5eb361]['item'],'change':_0x27b2ff[_0x19772a]}),'elementEnd'===_0x4d9f21[_0x5eb361]['type']&&_0x32c628&&_0x32c628['object']===_0x4d9f21[_0x5eb361]['item']&&(_0x49c573[_0x19772a]['shift'](),_0x27b2ff[_0x19772a]=_0x32c628['change'])),_0x27b2ff[_0x19772a]&&_0x2e0d5c&&(_0x27b2ff[_0x19772a]['end']=_0x58e2c9,_0x59e01b(_0x27b2ff[_0x19772a]),_0x27b2ff[_0x19772a]=null);}function _0x59e01b({start:_0x354e6f,end:_0x3626a2,tapeItem:_0x1f7642,userId:_0x531837,type:_0x19d417}){const _0x4fd129=_0x1f7642['item'],_0x5803f6=_0x132665['schema']['isBlock'](_0x4fd129)&&!_0x132665['schema']['isLimit'](_0x4fd129),_0x23bef7=_0x354e6f['nodeAfter']==_0x3626a2['parent']&&_0x3626a2['isAtStart'];if(_0x5803f6&&_0x23bef7)return;const _0x519a4e=_0x132665['createRange'](_0x354e6f,_0x3626a2),_0x300fc1=_0x5c1c90['get'](_0x531837),_0x2ab7dc=new r({'author':_0x300fc1,'type':'isAdded'==_0x19d417||'isAddSuggestion'==_0x19d417?'add':'remove','data':{'isSuggestion':'isAddSuggestion'==_0x19d417||'isRemoveSuggestion'==_0x19d417},'createdAt':new Date(),'rootName':_0xb75d5b});_0x2a439a['push'](_0x2ab7dc),_0x291f87['markers']['set']('revision:'+_0x2ab7dc['id'],_0x519a4e);}function _0x18c39a(_0x1fdcd6,_0x30306b){const _0x4bc425=_0x1fdcd6['getAttributes'](),_0x47604c=_0x30306b['getAttributes']();for(const _0x1c1e56 of _0x4bc425){if(_0x1c1e56[0x1]!==_0x30306b['getAttribute'](_0x1c1e56[0x0]))return!0x1;_0x47604c['next']();}return _0x47604c['next']()['done'];}}['_setConversion'](){this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision','view':_0x1af633=>{const _0x2ee896=_0x1af633['markerName']['split'](':')[0x1],_0x36768b=this['_getChangeFromId'](_0x2ee896);if(!_0x36768b)return null;const _0x296ca7='add'==_0x36768b['type']?'insertion':'deletion',_0x161522=['ck-suggestion-marker','ck-suggestion-marker-'+_0x296ca7];return _0x36768b['data']['isSuggestion']&&_0x161522['push']('ck-suggestion-marker-'+_0x296ca7+'-new'),this['activeChange']==_0x36768b&&_0x161522['push']('ck-suggestion-marker--active'),{'classes':_0x161522,'attributes':{'data-change-id':_0x2ee896}};}}),this['editor']['conversion']['for']('upcast')['add'](_0x57738e=>{_0x57738e['on']('element:pre',(_0x2d2be6,_0x439009,_0x4127ae)=>{const _0x175b7b=_0x439009['viewItem']['getChild'](0x0);if(!_0x175b7b||!_0x175b7b['is']('element','code'))return;if(!_0x4127ae['consumable']['consume'](_0x175b7b,{'attributes':['vid_start','vid_end']}))return;const _0x51e63e=_0x439009['modelRange']['start']['nodeAfter'];_0x4127ae['writer']['setAttribute']('vid_start',_0x175b7b['getAttribute']('vid_start'),_0x51e63e),_0x4127ae['writer']['setAttribute']('vid_end',_0x175b7b['getAttribute']('vid_end'),_0x51e63e);},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['add'](_0x3e7d1f=>{_0x3e7d1f['on']('element',(_0x5571c6,_0x53efe0,_0x335251)=>{if(!_0x335251['consumable']['consume'](_0x53efe0['viewItem'],{'attributes':['vid_start','vid_end']}))return;if(_0x53efe0['modelRange']['isCollapsed'])return;const _0x42e2ab=_0x53efe0['modelRange']['start']['nodeAfter'];_0x42e2ab['hasAttribute']('vid_start')||_0x42e2ab['hasAttribute']('vid')||(_0x335251['writer']['setAttribute']('vid_start',_0x53efe0['viewItem']['getAttribute']('vid_start'),_0x42e2ab),_0x335251['writer']['setAttribute']('vid_end',_0x53efe0['viewItem']['getAttribute']('vid_end'),_0x42e2ab));},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['elementToAttribute']({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0x4486a1=>_0x4486a1['getAttribute']('vid')}}),this['editor']['model']['schema']['on']('checkAttribute',(_0x28ec23,[,_0x3155d0])=>{['vid_start','vid_end','vid']['includes'](_0x3155d0)&&(_0x28ec23['return']=!0x0,_0x28ec23['stop']());},{'priority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x345e56=>{_0x345e56['on']('attribute:vid',(_0x5d147,_0x50fac5,_0x383faf)=>{if('\x20'!=_0x50fac5['item']['data']||_0x50fac5['item']['parent']['maxOffset']>0x1)return;if(!_0x383faf['consumable']['consume'](_0x50fac5['item'],_0x5d147['name']))return;const _0x11c03d=_0x383faf['writer'],_0x12e6b5=_0x383faf['mapper']['toViewRange'](_0x50fac5['range']);_0x11c03d['wrap'](_0x12e6b5,_0x11c03d['createAttributeElement']('span'));});}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',function(_0x3a01cf){const _0x20e0ea=_0x3a01cf['plugins']['get']('RevisionViewer');return(_0x485e1b,_0x5555e1,_0x37c240)=>{const _0x3a4298=_0x5555e1['markerName']['split'](':')[0x1],_0x1cb23f=_0x20e0ea['_getChangeFromId'](_0x3a4298);if(!_0x1cb23f)return null;const _0x5c6d0f='add'==_0x1cb23f['type']?'split':'merge';if(!_0x37c240['consumable']['test'](_0x5555e1['markerRange'],_0x485e1b['name']))return;const _0x2472e8=_0x5555e1['markerRange']['getWalker'](),_0x1401a2=_0x5555e1['markerRange']['start'],_0x572eb5=_0x3a01cf['model']['schema'];let _0x4faae1=null,_0x59bd69=null,_0x1d7365=!0x1,_0xdfa900=!0x1;for(const _0x585cbc of _0x2472e8){const _0x218070=_0x585cbc['item'];_0x1d7365=_0x1d7365||_0x572eb5['isContent'](_0x218070);const _0x2f0da3=_0x37c240['mapper']['toViewElement'](_0x218070);if(_0x2f0da3&&_0x2f0da3['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x585cbc['type']&&(_0x572eb5['isBlock'](_0x218070)&&!_0x572eb5['isLimit'](_0x218070)&&(_0x218070['nextSibling']||_0x1401a2['isAtEnd']?_0x4faae1&&_0x4faae1['parent']==_0x218070||(_0x4faae1=_0x218070,_0x22a6f4(_0x585cbc['previousPosition']),_0xdfa900=!0x0):_0x59bd69=_0x59bd69||_0x585cbc['previousPosition']));}function _0x22a6f4(_0x1271a6){const _0x44f388=_0x37c240['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x5c6d0f}),_0x4eb43a=_0x37c240['mapper']['toViewPosition'](_0x1271a6);_0x1cb23f['data']['isSuggestion']&&_0x37c240['writer']['addClass']('ck-suggestion-marker-'+_0x5c6d0f+'-new',_0x44f388),_0x20e0ea['activeChange']==_0x1cb23f&&_0x37c240['writer']['addClass']('ck-suggestion-marker--active',_0x44f388),_0x37c240['writer']['insert'](_0x4eb43a,_0x44f388),_0x37c240['mapper']['bindElementToMarker'](_0x44f388,_0x5555e1['markerName']);}_0x1d7365||_0xdfa900||!_0x59bd69||_0x22a6f4(_0x59bd69);};}(this['editor']),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision',(_0x3577fc,_0x14100d,_0x300d9f)=>{const _0x36d7ba=_0x300d9f['mapper']['markerNameToElements'](_0x14100d['markerName']);if(_0x36d7ba){for(const _0x10b193 of _0x36d7ba)(_0x10b193['hasClass']('ck-suggestion-marker-split')||_0x10b193['hasClass']('ck-suggestion-marker-merge'))&&(_0x300d9f['mapper']['unbindElementFromMarkerName'](_0x10b193,_0x14100d['markerName']),_0x300d9f['writer']['remove'](_0x10b193));}},{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',(_0x4f94e6,_0x292a28,_0x2fc9b5)=>{const _0x200f38=_0x292a28['markerName']['split'](':')[0x1],_0x225041=this['_getChangeFromId'](_0x200f38);if(!_0x225041)return null;const _0x505df0='add'==_0x225041['type']?'split':'merge';if(_0x2fc9b5['consumable']['test'](_0x292a28['markerRange'],_0x4f94e6['name']))for(const _0x32cc1c of _0x292a28['markerRange']['getItems']()){if(!_0x32cc1c['is']('element','softBreak'))continue;const _0x14541c=_0x2fc9b5['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x505df0}),_0x53ffbc=_0x2fc9b5['mapper']['toViewPosition'](this['editor']['model']['createPositionBefore'](_0x32cc1c));_0x225041['data']['isSuggestion']&&_0x2fc9b5['writer']['addClass']('ck-suggestion-marker-'+_0x505df0+'-new',_0x14541c),this['activeChange']==_0x225041&&_0x2fc9b5['writer']['addClass']('ck-suggestion-marker--active',_0x14541c),_0x2fc9b5['writer']['insert'](_0x53ffbc,_0x14541c),_0x2fc9b5['mapper']['bindElementToMarker'](_0x14541c,_0x292a28['markerName']);}},{'priority':'high'}),this['editor']['model']['document']['on']('change',()=>{this['editor']['editing']['view']['change'](_0x4f72c7=>{for(const _0x9ecd6c of this['editor']['model']['document']['getRootNames']()){const _0x527e05=this['editor']['model']['document']['getRoot'](_0x9ecd6c),_0x1369ef=this['editor']['editing']['view']['document']['getRoot'](_0x9ecd6c);if(_0x1369ef){const _0x36e943=_0x527e05['getAttribute']('revisionHistoryAttachChange');if(_0x4f72c7['removeAttribute']('data-change-id',_0x1369ef),_0x4f72c7['removeClass']('ck-revision-history-root-add',_0x1369ef),_0x4f72c7['removeClass']('ck-revision-history-root-remove',_0x1369ef),_0x4f72c7['removeClass']('ck-revision-history-root--active',_0x1369ef),_0x36e943){const _0x16bbb8=this['_getChangeFromId'](_0x36e943);if(!_0x16bbb8)return null;_0x4f72c7['setAttribute']('data-change-id',_0x36e943,_0x1369ef),_0x4f72c7['addClass']('ck-revision-history-root-'+_0x16bbb8['type'],_0x1369ef),this['activeChange']==_0x16bbb8&&_0x4f72c7['addClass']('ck-revision-history-root--active',_0x1369ef);}}}});}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'comment','model':_0x3539b9=>'revision-comment:'+_0x3539b9,'converterPriority':'highest'}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion','model':_0xb2a87c=>'revision-suggestion:'+_0xb2a87c,'converterPriority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision-suggestion','view':_0x2f4c3b=>({'name':'suggestion:'+_0x2f4c3b,'group':'revision-suggestion'}),'converterPriority':'highest'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision-suggestion','view':_0x47b94d=>{const _0x3e6254=_0x47b94d['markerName']['split'](':')[0x1];return'insertion'!=_0x3e6254&&'deletion'!=_0x3e6254?null:{'classes':['ck-suggestion-preview-marker','ck-suggestion-preview-marker-'+_0x3e6254]};}}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:deletion',Z(this['editor'],'merge'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:insertion',Z(this['editor'],'split'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision-suggestion',(_0x42e62b,_0x3a6a99,_0x3a3850)=>{const _0x55bd20=_0x3a3850['mapper']['markerNameToElements'](_0x3a6a99['markerName']);if(_0x55bd20){for(const _0x2d20f5 of _0x55bd20)_0x2d20f5['is']('uiElement')&&(_0x3a3850['mapper']['unbindElementFromMarkerName'](_0x2d20f5,_0x3a6a99['markerName']),_0x3a3850['writer']['remove'](_0x2d20f5));}},{'priority':'high'});}['_getChangeFromId'](_0x3462c9){return this['_changeIdToChange']['get'](_0x3462c9);}['_getViewForChange'](_0x35af65){return this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=new X(this['editor']['locale'],_0x35af65),this['_changeView'];}['_initInteractions'](){this['editor']['model']['document']['selection']['observeMarkers']('revision'),this['on']('change:activeView',(_0x1876c6,_0x272998,_0x6a0367,_0xe5a9ec)=>{_0xe5a9ec&&this['_balloon']['remove'](_0xe5a9ec),_0x6a0367&&(this['_balloon']['add']({'view':_0x6a0367,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0x2a6f70=this['editor']['editing'],_0x33201c=this['_getChangeFromId'](_0x6a0367['changeId']);let _0x2fde30;if(_0x33201c['data']['isOnRoot']){const _0x32e7f6=_0x2a6f70['view']['getDomRoot'](_0x33201c['rootName']);_0x2fde30=Array['from'](_0x32e7f6['getClientRects']());}else{const _0x3c14eb=this['editor']['model']['markers']['get']('revision:'+_0x6a0367['changeId']);_0x2fde30=Array['from'](_0x2a6f70['mapper']['markerNameToElements'](_0x3c14eb['name']))['map'](_0x1a82cd=>_0x2a6f70['view']['domConverter']['mapViewToDom'](_0x1a82cd))['map'](_0x4b0a2f=>Array['from'](_0x4b0a2f['getClientRects']()))['flat']();}if(!this['_activeViewTarget'])return _0x2fde30[0x0];return _0x2fde30['find'](_0x515a3a=>_0x515a3a['top']-0x3<=this['_activeViewTarget']['y']&&_0x515a3a['bottom']+0x3>=this['_activeViewTarget']['y']&&_0x515a3a['left']-0x3<=this['_activeViewTarget']['x']&&_0x515a3a['right']+0x3>=this['_activeViewTarget']['x'])||_0x2fde30[0x0];}}}),this['_balloon']['showStack']('revisionHistoryLabel'));}),this['on']('change:activeChange',(_0x282b63,_0x15da73,_0x429cf7,_0x8dada9)=>{this['activeView']=_0x429cf7?this['_getViewForChange'](_0x429cf7):null,this['editor']['model']['change'](()=>{const _0x16ea3c=this['editor']['editing'];_0x8dada9&&(_0x8dada9['data']['isOnRoot']?_0x16ea3c['view']['change'](_0x5540ee=>{_0x5540ee['removeClass']('ck-revision-history-root--active',_0x16ea3c['view']['document']['getRoot'](_0x8dada9['rootName']));}):_0x16ea3c['reconvertMarker']('revision:'+_0x8dada9['id'])),_0x429cf7&&(_0x429cf7['data']['isOnRoot']?_0x16ea3c['view']['change'](_0x15028c=>{_0x15028c['addClass']('ck-revision-history-root--active',_0x16ea3c['view']['document']['getRoot'](_0x429cf7['rootName']));}):_0x16ea3c['reconvertMarker']('revision:'+_0x429cf7['id']));});}),this['listenTo'](this['editor']['editing']['view']['document'],'mouseover',(_0x50023e,_0x1e39e5)=>{if(this['activeChange'])return;const _0x498a6d=this['_findChangeIdFromDomTarget'](_0x1e39e5['target']),_0x1beaf5=this['_changeIdToChange']['get'](_0x498a6d);_0x1beaf5?(this['_activeViewTarget']={'x':_0x1e39e5['domEvent']['x'],'y':_0x1e39e5['domEvent']['y']},this['activeView']=this['_getViewForChange'](_0x1beaf5)):(this['_activeViewTarget']=null,this['activeView']=null);}),this['listenTo'](this['editor']['editing']['view']['document'],'mousedown',(_0x11023e,_0x1add31)=>{const _0x4f78f0=this['_findChangeIdFromDomTarget'](_0x1add31['target']),_0x527cc0=this['_changeIdToChange']['get'](_0x4f78f0);_0x527cc0?(this['_activeViewTarget']={'x':_0x1add31['domEvent']['x'],'y':_0x1add31['domEvent']['y']},_0x527cc0===this['activeChange']?this['_balloon']['updatePosition']():this['activeChange']=_0x527cc0):(this['_activeViewTarget']=null,this['activeChange']=null);});}['_findChangeIdFromDomTarget'](_0x3e823a){do{const _0x40a0da=_0x3e823a['getAttribute']('data-change-id');if(_0x40a0da)return _0x40a0da;_0x3e823a=_0x3e823a['parent'];}while(_0x3e823a);return null;}['_cleanMarkers'](){this['editor']['model']['change'](_0x48ae06=>{for(const _0x51ac1a of this['editor']['model']['markers'])_0x48ae06['removeMarker'](_0x51ac1a);});}}function Z(_0x2b5ff3,_0x942d7f){return(_0x35fb21,_0x437301,_0x161b3e)=>{if(!_0x161b3e['consumable']['test'](_0x437301['markerRange'],_0x35fb21['name']))return;const _0x27f7d5=_0x437301['markerRange']['getWalker'](),_0x4180d3=_0x437301['markerRange']['start'],_0x4ba22b=_0x2b5ff3['model']['schema'];let _0x56fae0=null,_0x5c23ac=null,_0x1683f4=!0x1,_0x4835f5=!0x1;for(const _0x3f5767 of _0x27f7d5){const _0x18e51a=_0x3f5767['item'];_0x1683f4=_0x1683f4||_0x4ba22b['isContent'](_0x18e51a);const _0x13334d=_0x161b3e['mapper']['toViewElement'](_0x18e51a);if(_0x13334d&&_0x13334d['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x3f5767['type']&&(_0x4ba22b['isBlock'](_0x18e51a)&&!_0x4ba22b['isLimit'](_0x18e51a)&&(_0x18e51a['nextSibling']||_0x4180d3['isAtEnd']?_0x56fae0&&_0x56fae0['parent']==_0x18e51a||(_0x56fae0=_0x18e51a,_0x2146e2(_0x3f5767['previousPosition']),_0x4835f5=!0x0):_0x5c23ac=_0x5c23ac||_0x3f5767['previousPosition']));}function _0x2146e2(_0x3373a5){const _0xec0cb1=_0x161b3e['mapper']['toViewPosition'](_0x3373a5),_0x3c4ed1=_0x161b3e['writer']['createUIElement']('span',{'class':'ck-suggestion-preview-marker-'+_0x942d7f});_0x161b3e['writer']['insert'](_0xec0cb1,_0x3c4ed1),_0x161b3e['mapper']['bindElementToMarker'](_0x3c4ed1,_0x437301['markerName']);}_0x1683f4||_0x4835f5||!_0x5c23ac||_0x2146e2(_0x5c23ac);};}class pt extends _0x1a2773{constructor(_0x5e8e2a){super(_0x5e8e2a);const _0x3a0134=_0x5e8e2a['plugins']['get'](d);this['affectsData']=!0x1,this['listenTo'](_0x3a0134,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x3a0134,'change:isEnabled',()=>this['refresh']());}['execute'](){const _0x30fe6b=this['editor'],_0x40a9d2=_0x30fe6b['plugins']['get'](d),_0x29adf6=_0x40a9d2['isReady']?_0x40a9d2['diff']['newRevisionId']:null;_0x30fe6b['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x29adf6);}['refresh'](){const {isReady:_0x5ee50e,isEnabled:_0x3edbb0,repository:_0x57ba8f,diff:_0x454255}=this['editor']['plugins']['get'](d),_0x1c99a9=_0x454255&&_0x57ba8f['getLaterVisibleRevision'](_0x454255['newRevisionId']);this['isEnabled']=_0x5ee50e&&_0x3edbb0&&Boolean(_0x1c99a9);}}class _t extends _0x1a2773{['_step'];constructor(_0x586125,{direction:_0x1c22ac}){super(_0x586125);const _0x34c9fa=_0x586125['plugins']['get'](d);this['affectsData']=!0x1,this['_step']='forward'===_0x1c22ac?0x1:-0x1,this['listenTo'](_0x34c9fa,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x34c9fa,'change:isEnabled',()=>this['refresh']()),this['listenTo'](_0x34c9fa,'change:activeChange',()=>this['refresh']());}['execute'](){const _0x398de5=this['editor'],_0x40fbca=_0x398de5['plugins']['get'](d),{isNavigationMode:_0x575c18,currentChangeNumber:_0x146258}=_0x40fbca;let _0x273ee2;if(_0x40fbca['activeChange']=_0x575c18?_0x40fbca['diff']['changes']['get'](_0x146258+this['_step']):_0x40fbca['diff']['changes']['first'],_0x40fbca['activeChange']['data']['isOnRoot'])_0x273ee2=_0x398de5['editing']['view']['getDomRoot'](_0x40fbca['activeChange']['rootName']);else{const _0x28c15f=_0x398de5['model']['markers']['get']('revision:'+_0x40fbca['activeChange']['id']);_0x273ee2=_0x427ab3(_0x398de5['editing'],_0x28c15f);}_0x5b930d({'target':_0x273ee2,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0x115c77,currentChangeNumber:_0x47c76d,numberOfChanges:_0x36cc92,isReady:_0x11a86a,isEnabled:_0x435455}=this['editor']['plugins']['get'](d);this['isEnabled']=!!(_0x435455&&_0x11a86a&&_0x36cc92)&&(!_0x115c77||(0x1===this['_step']?_0x47c76d<_0x36cc92-0x1:_0x47c76d>0x0));}}class li extends ts{constructor(_0x547ac7){super(_0x547ac7);const _0x339a3c=this['bindTemplate'],_0x3feed0=new te(_0x547ac7),_0x2eb0c5=new te(_0x547ac7);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',(_0x5cac38,_0x46ba3a)=>_0x5cac38&&_0x46ba3a>0x0),this['bind']('_statusText')['to'](this,'isReady',this,'currentChangeNumber',this,'numberOfChanges',this,'isNavigationMode',(_0x57dd28,_0x19822a,_0xedbf9a,_0x1415e8)=>{if(!_0x57dd28)return m(_0x547ac7,'Loading...');if(!_0xedbf9a)return m(_0x547ac7,'No\x20changes');const _0x15b27a=m(_0x547ac7,'NUMBER_OF_CHANGES',_0xedbf9a);return _0x1415e8?m(_0x547ac7,'X_OF_Y_CHANGES',[_0x19822a+0x1,_0xedbf9a]):_0x15b27a;}),_0x3feed0['set']({'label':m(_0x547ac7,'Show\x20previous\x20change'),'tooltip':!0x0,'icon':'<svg\x20viewBox=\x220\x200\x2020\x2020\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22><path\x20d=\x22M16.435\x2014.494a.75.75\x200\x200\x200\x201.197-.899l-.067-.089-6.992-8a.75.75\x200\x200\x200-1.05-.078l-.079.078-7.008\x208a.75.75\x200\x200\x200\x201.049\x201.066l.08-.078\x206.442-7.354\x206.428\x207.354z\x22/></svg>\x0a'}),_0x2eb0c5['set']({'label':m(_0x547ac7,'Show\x20next\x20change'),'tooltip':!0x0,'icon':'<svg\x20viewBox=\x220\x200\x2020\x2020\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22><path\x20d=\x22M16.435\x205.506a.75.75\x200\x200\x201\x201.197.899l-.067.089-6.992\x208a.75.75\x200\x200\x201-1.05.078l-.079-.078-7.008-8a.75.75\x200\x200\x201\x201.049-1.066l.08.078\x206.442\x207.354\x206.428-7.354z\x22/></svg>\x0a'}),_0x3feed0['bind']('isEnabled')['to'](this,'isBackwardNavigationEnabled'),_0x2eb0c5['bind']('isEnabled')['to'](this,'isForwardNavigationEnabled'),_0x3feed0['on']('execute',()=>this['fire']('execute','backward')),_0x2eb0c5['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',_0x339a3c['if']('_isStatusLabelVisible','ck-hidden',_0x7bec07=>!_0x7bec07)]},'children':[{'text':_0x339a3c['to']('isNavigationMode',_0x51b95a=>_0x51b95a?m(_0x547ac7,'EDIT_X_OF_Y_REVISIONS')+':\x20':m(_0x547ac7,'Total')+':\x20')}]},{'text':_0x339a3c['to']('_statusText')}]},new _0x2b7b9e(),{'tag':'div','attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0x3feed0,_0x2eb0c5]}]});}}const le='ck-editor__editable__loading-overlay';class ge extends _0x19d40b{static get['pluginName'](){return'RevisionViewerLoadingOverlay';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['show'](){const _0x26b59c=this['editor']['editing']['view'];_0x26b59c['change'](_0xd049ec=>{for(const _0x50d55b of _0x26b59c['document']['roots'])_0xd049ec['addClass'](le,_0x50d55b);});}['hide'](){const _0x5861a2=this['editor']['editing']['view'];_0x5861a2['change'](_0x588c15=>{for(const _0x50a9e9 of _0x5861a2['document']['roots'])_0x588c15['removeClass'](le,_0x50a9e9);});}}class g extends _0x19d40b{static get['pluginName'](){return'RevisionViewerUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[d,ge];}['init'](){const _0x2b8253=this['editor'],_0x20c8a9=_0x2b8253['plugins']['get'](d),_0x2598a9=_0x2b8253['plugins']['get'](ge);_0x2b8253['ui']['componentFactory']['add']('exitToEditing',_0xea510a=>{const _0xbe8a4b=new te(_0xea510a);return _0xbe8a4b['set']({'label':m(_0xea510a,'Back\x20to\x20editing'),'icon':_0x46ecca['undo'],'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this['listenTo'](_0xbe8a4b,'execute',()=>{_0x2b8253['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}),_0xbe8a4b;}),_0x2b8253['ui']['componentFactory']['add']('restoreRevision',_0x4d35f5=>{const _0x260ce4=new te(_0x4d35f5);return _0x260ce4['set']({'label':m(_0x4d35f5,'Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0x260ce4['bind']('isEnabled')['to'](_0x2b8253['commands']['get']('restoreRevision')),this['listenTo'](_0x260ce4,'execute',()=>_0x2b8253['execute']('restoreRevision')),_0x260ce4;}),_0x2b8253['ui']['componentFactory']['add']('changesNavigation',_0x276f8a=>{const _0x2144dd=new li(_0x276f8a),_0x17a345=_0x2b8253['commands']['get']('showPreviousChange'),_0x26c2e8=_0x2b8253['commands']['get']('showNextChange');return _0x2144dd['bind']('isBackwardNavigationEnabled')['to'](_0x17a345,'isEnabled'),_0x2144dd['bind']('isForwardNavigationEnabled')['to'](_0x26c2e8,'isEnabled'),_0x2144dd['bind']('isReady','currentChangeNumber','numberOfChanges','isNavigationMode')['to'](_0x20c8a9),this['listenTo'](_0x2144dd,'execute',(_0x79a0b8,_0x5255e9)=>{_0x2b8253['execute']('forward'===_0x5255e9?'showNextChange':'showPreviousChange');}),_0x2144dd;}),_0x2598a9['show'](),_0x20c8a9['on']('change:isReady',(_0x1fcf21,_0x3f033a,_0x139192)=>{_0x139192?_0x2598a9['hide']():_0x2598a9['show']();});}}class at extends _0x4b212a{['_resizeObserver']=null;constructor(_0x230a46,_0x449c55){super(_0x230a46,_0x449c55);const _0x5d1471=this['bindTemplate'];this['set']({'label':m(_0x230a46,'Revision\x20name'),'_tooltipString':''}),this['fieldView']['placeholder']=m(_0x230a46,'Enter\x20the\x20revision\x20name'),this['extendTemplate']({'tag':'span','attributes':{'class':['ck-revision-history-sidebar__revision-name'],'data-cke-tooltip-text':_0x5d1471['to']('_tooltipString'),'data-cke-tooltip-position':'s','data-cke-tooltip-class':'ck-tooltip_multi-line'}});}['render'](){super['render'](),this['_resizeObserver']=new nt(this['fieldView']['element'],()=>this['_updateTooltipText']()),this['listenTo'](this['fieldView'],'input',()=>this['_updateTooltipText']());}['destroy'](){super['destroy'](),this['_resizeObserver']&&this['_resizeObserver']['destroy']();}['_updateTooltipText'](){const _0x201315=this['fieldView']['element'];this['_tooltipString']=_0x201315['scrollWidth']>_0x201315['clientWidth']&&_0x201315['value']||'';}}class ri extends ts{constructor(_0x6f3be2,_0x1bd32e,_0x5c8f2b){super(_0x6f3be2);const _0x324bbd=new _0x4c6be9();_0x324bbd['set']({'content':'<svg\x20viewBox=\x220\x200\x2011\x2010\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22\x20xmlns:xlink=\x22http://www.w3.org/1999/xlink\x22><path\x20d=\x22M5.5\x205C8.538\x205\x2011\x207.015\x2011\x209.5c0\x20.17-.011.336-.034.5H.034A3.732\x203.732\x200\x200\x201\x200\x209.5C0\x207.015\x202.462\x205\x205.5\x205zm0-5a2.5\x202.5\x200\x201\x201\x200\x205\x202.5\x202.5\x200\x200\x201\x200-5z\x22\x20/></svg>\x0a','viewBox':'0\x200\x2011\x2010'});const _0x198d30=['ck','ck-revision-history-sidebar__revision-author'];_0x5c8f2b&&_0x198d30['push']('ck-revision-history-sidebar__revision-author_creator');const _0x5e8947=[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':m(_0x6f3be2,_0x5c8f2b?'Revision\x20creator':'Revision\x20author')},'children':[_0x324bbd,_0x1bd32e['name']]}];this['setTemplate']({'tag':'li','attributes':{'class':_0x198d30},'children':_0x5e8947});}}function oi(_0x4b850b,_0x50cb9d){const _0x5ad991=_0x4b850b['bindTemplate'],_0x3645df=_0x4b850b['locale'],_0x2c0a71=_0xe9c734(_0x3645df);_0x2c0a71['panelPosition']='sw';const _0x1b6995=function(_0x1e36cd,_0x3f2551){const _0x10d86a=function(_0xb34f69,_0x3aa904){const _0x12d640=_0xb34f69['locale'],_0x57b65a={'Compare\x20against\x20selected':m(_0x12d640,'Compare\x20against\x20selected'),'Name\x20this\x20revision':m(_0x12d640,'Name\x20this\x20revision'),'Restore\x20this\x20revision':m(_0x12d640,'Restore\x20this\x20revision')};return _0x3aa904['map'](_0x4fd78c=>{const _0x1f107f=_0x57b65a[_0x4fd78c['name']];return _0x1f107f&&_0x1f107f!==_0x4fd78c['name']&&(_0x4fd78c['name']=_0x1f107f),_0x4fd78c;});}(_0x1e36cd,_0x3f2551),_0x21c6cf=new _0x2ea1f0();for(const _0x19e490 of _0x10d86a){const _0x2f5509={'type':'button','model':new _0x1f2b3f({'label':_0x19e490['name'],'class':_0x19e490['class'],'withText':!0x0,'role':'menuitem','_action':_0x19e490['action']})};_0x2f5509['model']['bind']('isEnabled')['to'](_0x1e36cd,'isActionsDropdownOpen',_0x8cdec6=>'function'!=typeof _0x19e490['isEnabled']||(!_0x8cdec6||_0x19e490['isEnabled'](_0x1e36cd))),_0x21c6cf['add'](_0x2f5509);}return _0x21c6cf;}(_0x4b850b,_0x50cb9d);return _0x4b850b['bind']('isActionsDropdownOpen')['to'](_0x2c0a71,'isOpen'),_0x2c0a71['buttonView']['set']({'label':m(_0x3645df,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x46ecca['threeVerticalDots']}),_0x2c0a71['extendTemplate']({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0x5ad991['if']('isActionsDropdownOpen','ck-on')]},'on':{'click':_0x5ad991['to'](_0x548fa1=>_0x548fa1['stopPropagation']())}}),_0x2c0a71['on']('execute',_0x2b3bc4=>{_0x4b850b['isReady']&&'function'==typeof _0x2b3bc4['source']['_action']&&_0x2b3bc4['source']['_action'](_0x4b850b);}),to(_0x2c0a71,_0x1b6995,{'role':'menu'}),_0x2c0a71['listenTo'](_0x4b850b,'change:isActionsDropdownOpen',(_0xca6cc0,_0x2cd42a,_0x80e787)=>{if(_0x80e787)for(const _0x1511d5 of _0x2c0a71['listView']['items']){const _0x5e7039=_0x1511d5['children']['first'],_0x187aaf=_0x50cb9d['find'](_0x52fafb=>_0x52fafb['action']===_0x5e7039['_action'])['isVisible'];_0x1511d5['isVisible']=void 0x0===_0x187aaf||_0x187aaf(_0x4b850b);}}),_0x2c0a71;}class hi extends/* #__PURE__ -- @preserve */
|
|
26
|
-
|
|
23
|
+
import{ObservableMixin as _0x4c7a34,uid as _0x22b130,Collection as _0xb59600,logWarning as _0x1ad235,FocusTracker as _0x5d4331,KeystrokeHandler as _0x197446,scrollViewportToShowTarget as _0x2a04c7,ResizeObserver as at,ElementReplacer as ht,CKEditorError as _0x3a49a4}from'@ckeditor/ckeditor5-utils/dist/index.js';import{cloneDeep as _0x2fbfef,set as _0x1c0c86,unset as _0x1183ab,isEqual as _0x5b775d}from'lodash-es';import{Plugin as _0x495045,PendingActions as _0x5e742d,icons as _0x3b9cd1,Command as _0x4329f6,ElementApiMixin as it,Editor as tt}from'@ckeditor/ckeditor5-core/dist/index.js';import{Users as _0x48e3ae,getMarkerDomElement as _0x6fa89f,ConfirmMixin as _0x53a7fd,sanitizeEditorConfig as _0x5cd1f0}from'ckeditor5-collaboration/dist/index.js';import{ViewDocumentFragment as _0x836cbc,ViewText as _0x263cf6,ViewElement as _0x2b857d,Element as ft,Range as vt,Position as gt,DocumentFragment as mt,ViewContainerElement as _0x35266d,ViewAttributeElement as _0x53c0fe,ViewEmptyElement as _0x5cfb09,ViewRawElement as _0x5b34ed,ViewUIElement as _0x4cb63c,Text as wt}from'@ckeditor/ckeditor5-engine/dist/index.js';import{View as _0x21a70e,injectCssTransitionDisabler as ts,submitHandler as _0x50a964,LabeledFieldView as nt,createLabeledInputText as _0x2f6061,createDropdown as _0x4cd44e,ListView as te,ListItemView as _0x5586df,ButtonView as _0x5f241f,MenuBarMenuView as _0x57eb30,MenuBarMenuListView as _0x2a4332,MenuBarMenuListItemView as _0x55a266,MenuBarMenuListItemButtonView as _0x33098b,ContextualBalloon as _0x575c14,ToolbarSeparatorView as _0x5205f1,IconView as _0x3183a9,addListToDropdown as _0x34d2c0,ViewModel as to,EditorUI as st,normalizeToolbarConfig as ot,BoxedEditorUIView as ct,StickyPanelView as ut,ToolbarView as lt,InlineEditableUIView as dt}from'@ckeditor/ckeditor5-ui/dist/index.js';import{DateTime as _0x1e2f43}from'luxon';class a extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x4c7a34(){['id'];['creator'];['authors'];['diffData'];['toVersion'];['fromVersion'];['model'];constructor(_0x219c82){super(),this['id']=_0x219c82['id']||_0x22b130(),this['creator']=_0x219c82['creator']||null,this['authors']=_0x219c82['authors']||[],this['diffData']=_0x219c82['diffData']||null,this['toVersion']=_0x219c82['toVersion']||0x0,this['fromVersion']=_0x219c82['fromVersion']||0x0,this['set']('name',_0x219c82['name']||''),this['set']('createdAt',_0x219c82['createdAt']||new Date()),this['set']('attributes',_0x219c82['attributes']||{});}['setName'](_0x13460b){this['_update']({'name':_0x13460b});}['setAttribute'](_0x1de5d1,_0x2623b7){const _0x5649bc=_0x2fbfef(this['attributes']);_0x1c0c86(_0x5649bc,_0x1de5d1,_0x2623b7),this['_update']({'attributes':_0x5649bc});}['removeAttribute'](_0x33f625){const _0x235597=_0x2fbfef(this['attributes']);_0x1183ab(_0x235597,_0x33f625),this['_update']({'attributes':_0x235597});}['_update'](_0x423f31,_0x59dc13=!0x1){let _0x2e1a88=!0x1;const _0x53b19d={'id':this['id']},_0x54c0d0=['name','createdAt','diffData','authors','attributes','toVersion','fromVersion','creatorId'];for(const _0x2b9d1d of _0x54c0d0){const _0x5841ef=_0x423f31[_0x2b9d1d];void 0x0!==_0x5841ef&&_0x5841ef!==this[_0x2b9d1d]&&(this[_0x2b9d1d]=_0x5841ef,_0x53b19d[_0x2b9d1d]=_0x5841ef,_0x2e1a88=!0x0);}_0x2e1a88&&(_0x53b19d['authors']&&(_0x53b19d['authorsIds']=_0x53b19d['authors']['map'](_0x6ab33b=>_0x6ab33b['id']),delete _0x53b19d['authors']),this['fire']('_update',_0x53b19d,_0x59dc13));}['toJSON'](){return{'id':this['id'],'name':this['name'],'creatorId':this['creator']?this['creator']['id']:null,'authorsIds':this['authors']['map'](_0x2ab571=>_0x2ab571['id']),'diffData':this['diffData'],'createdAt':this['createdAt'],'attributes':this['attributes'],'fromVersion':this['fromVersion'],'toVersion':this['toVersion']};}}class j extends _0x495045{['_revisions'];static get['requires'](){return[_0x48e3ae];}static get['pluginName'](){return'RevisionsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['length'](){return this['_revisions']['length'];}constructor(_0x3847ca){super(_0x3847ca),this['_revisions']=new _0xb59600();}['afterInit'](){!async function(_0x17d80b){const _0x513269=_0x4b27eb([0x57,0x35,0x66,0x71,0x69,0x34,0x41,0x51,0x6b,0x53,0x4e,0x45,0x6d,0x70,0x4a,0x73,0x56,0x46,0x52,0x78,0x4f,0x77,0x39,0x38,0x47,0x5a,0x75,0x54,0x63,0x72,0x48,0x4b,0x36,0x67,0x7a,0x68,0x6a,0x32,0x30,0x62,0x58,0x31,0x64,0x59,0x49,0x76,0x6f,0x43,0x4d,0x6e,0x33,0x61,0x44,0x79,0x74,0x42,0x37,0x65,0x55,0x4c,0x6c,0x50]),_0x4a9bfc=0xeb829,_0x4b05ee=0x3c4434a9,_0x5a687f=0x3c436919^_0x4b05ee,_0x5ecc35=window[_0x4b27eb([0x44,0x61,0x74,0x65])][_0x4b27eb([0x6e,0x6f,0x77])](),_0x587b3d=_0x17d80b[_0x4b27eb([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x5ad3f9=new window[(_0x4b27eb([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x328525=>{_0x587b3d[_0x4b27eb([0x6f,0x6e,0x63,0x65])](_0x4b27eb([0x72,0x65,0x61,0x64,0x79]),_0x328525);}),_0x113b98={[_0x4b27eb([0x6b,0x74,0x79])]:_0x4b27eb([0x45,0x43]),[_0x4b27eb([0x75,0x73,0x65])]:_0x4b27eb([0x73,0x69,0x67]),[_0x4b27eb([0x63,0x72,0x76])]:_0x4b27eb([0x50,0x2d,0x32,0x35,0x36]),[_0x4b27eb([0x78])]:_0x4b27eb([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]),[_0x4b27eb([0x79])]:_0x4b27eb([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]),[_0x4b27eb([0x61,0x6c,0x67])]:_0x4b27eb([0x45,0x53,0x32,0x35,0x36])},_0x397786=_0x587b3d[_0x4b27eb([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x4b27eb([0x67,0x65,0x74])](_0x4b27eb([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x3d97fd(){let _0x4964c6,_0xc0a184=null,_0x104f12=null;try{if(_0x397786==_0x4b27eb([0x47,0x50,0x4c]))return _0x4b27eb([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x4964c6=_0x3d6fae(),!_0x4964c6)return _0x4b27eb([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x4964c6[_0x4b27eb([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x104f12=_0x363ac0(_0x4964c6[_0x4b27eb([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x4964c6[_0x4b27eb([0x6a,0x74,0x69])])),await _0x1a3c3a()?_0x301aac()?_0x575ce()?_0x4b27eb([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x157d21()?(_0x4964c6[_0x4b27eb([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x4b27eb([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0xc0a184=_0x4f380d(_0x4b27eb([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x4964c6[_0x4b27eb([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x4b27eb([0x74,0x72,0x69,0x61,0x6c])&&(_0xc0a184=_0x4f380d(_0x4b27eb([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),_0x4964c6[_0x4b27eb([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x4b27eb([0x64,0x65,0x76,0x65,0x6c,0x6f,0x70,0x6d,0x65,0x6e,0x74])&&(_0xc0a184=_0x4f380d(_0x4b27eb([0x44,0x65,0x76,0x65,0x6c,0x6f,0x70,0x6d,0x65,0x6e,0x74,0x4c,0x69,0x6d,0x69,0x74]))),await _0x3ec681()):_0x4b27eb([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x4b27eb([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x4b27eb([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x24f928){return _0x4b27eb([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x575ce(){const _0x1ba013=[_0x4b27eb([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x4b27eb([0x74,0x72,0x69,0x61,0x6c])][_0x4b27eb([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4964c6[_0x4b27eb([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x5ecc35/0x3e8:0xe10*_0x5a687f;return _0x4964c6[_0x4b27eb([0x65,0x78,0x70])]<_0x1ba013;}function _0x301aac(){const _0x599049=_0x4964c6[_0x4b27eb([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x599049)return!0x1;if(_0x599049[_0x4b27eb([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4b27eb([0x2a])))return!0x0;if(_0x599049[_0x4b27eb([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4b27eb([0x52,0x48])))return!0x0;if(_0x599049[_0x4b27eb([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4b27eb([0x52,0x52,0x48]))){if(_0x15168a())return!0x0;if(_0x54dab2()||_0x298078())return!0x0;}return!0x1;}function _0x157d21(){const _0x5d16d5=_0x4964c6[_0x4b27eb([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x5d16d5||0x0==_0x5d16d5[_0x4b27eb([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x21e3d3}=new URL(window[_0x4b27eb([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x5d16d5[_0x4b27eb([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x21e3d3))return!0x0;const _0x442f21=_0x21e3d3[_0x4b27eb([0x73,0x70,0x6c,0x69,0x74])](_0x4b27eb([0x2e]));return _0x5d16d5[_0x4b27eb([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x2f9802=>_0x2f9802[_0x4b27eb([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4b27eb([0x2a])))[_0x4b27eb([0x6d,0x61,0x70])](_0x42b528=>_0x42b528[_0x4b27eb([0x73,0x70,0x6c,0x69,0x74])](_0x4b27eb([0x2e])))[_0x4b27eb([0x73,0x6f,0x6d,0x65])](_0x240d76=>_0x442f21[_0x4b27eb([0x65,0x76,0x65,0x72,0x79])]((_0x35336c,_0x8bfce2)=>_0x240d76[_0x8bfce2]===_0x35336c||_0x240d76[_0x8bfce2]===_0x4b27eb([0x2a])));}function _0x3ec681(){return _0xc0a184&&_0x104f12?new window[(_0x4b27eb([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x5af282,_0x16b6c1)=>{_0xc0a184[_0x4b27eb([0x74,0x68,0x65,0x6e])](_0x5af282,_0x16b6c1),_0x104f12[_0x4b27eb([0x74,0x68,0x65,0x6e])](_0x5b2cd4=>{_0x5b2cd4!=_0x4b27eb([0x56,0x61,0x6c,0x69,0x64])&&_0x5af282(_0x5b2cd4);},_0x16b6c1);}):_0xc0a184||_0x104f12||_0x4b27eb([0x56,0x61,0x6c,0x69,0x64]);}}function _0x363ac0(_0x467bf3,_0x4cfb2f){return new window[(_0x4b27eb([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xf090b4=>{if(_0x2e4bc8())return _0xf090b4(_0x4b27eb([0x56,0x61,0x6c,0x69,0x64]));_0x3aa2a1(),_0x587b3d[_0x4b27eb([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x4b27eb([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0xd4ca5d=!0x1;const _0x72faa5=_0x22b130();function _0x554370(_0x1683fb){return!!_0x1683fb&&(typeof _0x1683fb===_0x4b27eb([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x1683fb===_0x4b27eb([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x1683fb[_0x4b27eb([0x74,0x68,0x65,0x6e])]===_0x4b27eb([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x1683fb[_0x4b27eb([0x63,0x61,0x74,0x63,0x68])]===_0x4b27eb([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x571594(_0x290ce8){_0x4b0fc2(_0x290ce8)[_0x4b27eb([0x74,0x68,0x65,0x6e])](_0x5ec1c8=>{if(!_0x5ec1c8||_0x5ec1c8[_0x4b27eb([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x4b27eb([0x6f,0x6b]))return _0x4b27eb([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x313c75(_0x5e1e74(_0x72faa5+_0x4cfb2f))!=_0x5ec1c8[_0x4b27eb([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x4b27eb([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x4b27eb([0x56,0x61,0x6c,0x69,0x64]);})[_0x4b27eb([0x74,0x68,0x65,0x6e])](_0x3bb87c=>(_0x171854(),_0x3bb87c),()=>{const _0x520bec=_0x294ed6();return null==_0x520bec?(_0x171854(),_0x4b27eb([0x56,0x61,0x6c,0x69,0x64])):_0x4b27eb(_0x5ecc35-_0x520bec>(0x1848b0a9^_0x4b05ee)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x4b27eb([0x74,0x68,0x65,0x6e])](_0xf090b4)[_0x4b27eb([0x63,0x61,0x74,0x63,0x68])](()=>{_0xf090b4(_0x4b27eb([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x234f30=0x3c72da29^_0x4b05ee;function _0x171854(){const _0x4fc7f8=_0x4b27eb([0x6c,0x6c,0x63,0x74,0x2d])+_0x313c75(_0x5e1e74(_0x467bf3)),_0x5d994e=_0x4b2b80(_0x313c75(window[_0x4b27eb([0x4d,0x61,0x74,0x68])][_0x4b27eb([0x63,0x65,0x69,0x6c])](_0x5ecc35/_0x234f30)));window[_0x4b27eb([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4b27eb([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4fc7f8,_0x5d994e);}function _0x294ed6(){const _0xb17659=_0x4b27eb([0x6c,0x6c,0x63,0x74,0x2d])+_0x313c75(_0x5e1e74(_0x467bf3)),_0x363060=window[_0x4b27eb([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4b27eb([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0xb17659);return _0x363060?window[_0x4b27eb([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4b2b80(_0x363060),0x10)*_0x234f30:null;}function _0x4b0fc2(_0x51bfa7){return new window[(_0x4b27eb([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3d3531,_0x28947b)=>{_0x51bfa7[_0x4b27eb([0x74,0x68,0x65,0x6e])](_0x3d3531,_0x28947b),window[_0x4b27eb([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x28947b,0x3c45e069^_0x4b05ee);});}}_0x587b3d[_0x4b27eb([0x6f,0x6e])](_0x4b27eb([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x21a5cb,_0x26ebd1)=>{if(_0x26ebd1[0x0]!=_0x467bf3)return _0xf090b4(_0x4b27eb([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x26ebd1[0x1]={..._0x26ebd1[0x1],[_0x4b27eb([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x72faa5};},{[_0x4b27eb([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4b27eb([0x68,0x69,0x67,0x68])}),_0x587b3d[_0x4b27eb([0x6f,0x6e])](_0x4b27eb([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x3b4b06=>{_0x554370(_0x3b4b06[_0x4b27eb([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0xd4ca5d=!0x0,_0x571594(_0x3b4b06[_0x4b27eb([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x4b27eb([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4b27eb([0x6c,0x6f,0x77])}),_0x5ad3f9[_0x4b27eb([0x74,0x68,0x65,0x6e])](()=>{_0xd4ca5d||_0xf090b4(_0x4b27eb([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x2e4bc8(){return _0x587b3d[_0x4b27eb([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4b27eb([0x76,0x69,0x65,0x77])][_0x4b27eb([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x4b27eb([0x61,0x75,0x74,0x6f]);}function _0x3aa2a1(){_0x587b3d[_0x4b27eb([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4b27eb([0x76,0x69,0x65,0x77])][_0x4b27eb([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x4b27eb([0x61,0x75,0x74,0x6f]);}}function _0x4f380d(_0xb4f090){const _0x463b30=[new window[(_0x4b27eb([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x473465=>setTimeout(_0x473465,0x3c4d0a65^_0x4b05ee)),_0x5ad3f9[_0x4b27eb([0x74,0x68,0x65,0x6e])](()=>new window[(_0x4b27eb([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x534720=>{const _0x42a08e=0x3c4434ae^_0x4b05ee,_0x48ee52=_0x17d80b[_0x4b27eb([0x5f,0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x73])];function _0x244634(){_0x48ee52[_0x4b27eb([0x6c,0x65,0x6e,0x67,0x74,0x68])]>=_0x42a08e&&_0x534720();}_0x244634(),_0x48ee52[_0x4b27eb([0x6f,0x6e])](_0x4b27eb([0x61,0x64,0x64]),_0x244634);})),new window[(_0x4b27eb([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2183ab=>{function _0x20f718(){for(const _0x3ebcbb in window)if(window[_0x4b27eb([0x4e,0x75,0x6d,0x62,0x65,0x72])]['isNaN'](window[_0x4b27eb([0x4e,0x75,0x6d,0x62,0x65,0x72])](_0x3ebcbb))&&window[_0x3ebcbb]==_0x4a9bfc)return _0x2183ab();_0x587b3d[_0x4b27eb([0x73,0x74,0x61,0x74,0x65])]!=_0x4b27eb([0x64,0x65,0x73,0x74,0x72,0x6f,0x79,0x65,0x64])&&window[_0x4b27eb([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x20f718,0x3c442721^_0x4b05ee);}_0x4aacea(_0x4b27eb([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))&&_0x20f718();})];return window[_0x4b27eb([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x4b27eb([0x72,0x61,0x63,0x65])](_0x463b30)[_0x4b27eb([0x74,0x68,0x65,0x6e])](()=>_0xb4f090);}async function _0x4c01e9(){if(await _0x5ad3f9,_0x4aacea(_0x4b27eb([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))){const _0x5c458c=_0x17d80b[_0x4b27eb([0x67,0x65,0x74,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])](0x0),_0x159ab4=_0x17d80b[_0x4b27eb([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])](_0x5c458c[_0x4b27eb([0x69,0x64])]),_0x68ad0e=_0x1f4750(_0x4b27eb([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]));return await _0x68ad0e[_0x4b27eb([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])](_0x5c458c['id'],_0x159ab4?_0x159ab4['id']:null,!0x0),_0x68ad0e[_0x4b27eb([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x4b27eb([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x68ad0e[_0x4b27eb([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x68ad0e[_0x4b27eb([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])]=_0x23600d,void(_0x68ad0e[_0x4b27eb([0x5f,0x67,0x65,0x74,0x44,0x69,0x66,0x66])]=_0x23600d);}if(_0x4aacea(_0x4b27eb([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]))){const _0x23232e=_0x1f4750(_0x4b27eb([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]));_0x23232e[_0x4b27eb([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x4b27eb([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x23232e[_0x4b27eb([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x23232e[_0x4b27eb([0x75,0x70,0x64,0x61,0x74,0x65])]=_0x23600d,_0x23232e[_0x4b27eb([0x73,0x61,0x76,0x65,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])]=_0x23600d;}_0x587b3d[_0x4b27eb([0x6d,0x6f,0x64,0x65,0x6c])][_0x4b27eb([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x23600d,_0x587b3d[_0x4b27eb([0x6d,0x6f,0x64,0x65,0x6c])][_0x4b27eb([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x23600d,_0x587b3d[_0x4b27eb([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x4b27eb([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x15168a(){return _0x4aacea(_0x4b27eb([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x1f4750(_0x4b27eb([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x4b27eb([0x73,0x74,0x61,0x74,0x65])]==_0x4b27eb([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x54dab2(){return _0x4aacea(_0x4b27eb([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 _0x298078(){return _0x4aacea(_0x4b27eb([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x1ec5c5(_0x534787){const _0x1a6a51=_0x2de711();_0x587b3d[_0x1a6a51]=_0x4b27eb([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])+_0x534787,_0x534787[_0x4b27eb([0x65,0x6e,0x64,0x73,0x57,0x69,0x74,0x68])](_0x4b27eb([0x4c,0x69,0x6d,0x69,0x74]))&&(window[_0x2de711()]=_0x4a9bfc),_0x534787!=_0x4b27eb([0x56,0x61,0x6c,0x69,0x64])&&_0x4c01e9();}function _0x2de711(){const _0x5c891f=window[_0x4b27eb([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x4b27eb([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x4b27eb([0x6e,0x6f,0x77])]())[_0x4b27eb([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x4b27eb([0x2e]),'');let _0x2c13b6=_0x4b27eb([0x57]);for(let _0x35d139=0x0;_0x35d139<_0x5c891f[_0x4b27eb([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x35d139+=0x2){let _0x27855d=window[_0x4b27eb([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5c891f[_0x4b27eb([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x35d139,_0x35d139+0x2));_0x27855d>=_0x513269[_0x4b27eb([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x27855d-=_0x513269[_0x4b27eb([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x2c13b6+=_0x513269[_0x27855d];}return _0x2c13b6;}function _0x3d6fae(){const _0x5270bd=_0x397786[_0x4b27eb([0x73,0x70,0x6c,0x69,0x74])](_0x4b27eb([0x2e]));if(0x3!=_0x5270bd[_0x4b27eb([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x2984e4(_0x5270bd[0x1]);function _0x2984e4(_0x74a5d0){const _0x2b2dd6=_0x2b326c(_0x74a5d0);return _0x2b2dd6&&_0x3907bb()?_0x2b2dd6:null;function _0x3907bb(){const _0x2d2f67=_0x2b2dd6[_0x4b27eb([0x6a,0x74,0x69])],_0x2aa5ba=window[_0x4b27eb([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2d2f67[_0x4b27eb([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2d2f67[_0x4b27eb([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x590028={..._0x2b2dd6,[_0x4b27eb([0x6a,0x74,0x69])]:_0x2d2f67[_0x4b27eb([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x2d2f67[_0x4b27eb([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x590028[_0x4b27eb([0x76,0x63])],_0x5e1e74(_0x590028)==_0x2aa5ba;}}}async function _0x1a3c3a(){let _0x13e7ec=!0x0;try{const _0xf4f56a=_0x397786[_0x4b27eb([0x73,0x70,0x6c,0x69,0x74])](_0x4b27eb([0x2e])),[_0x3976e3,_0x1e394b,_0x4367b8]=_0xf4f56a;return _0xcebfcc(_0x3976e3),await _0x55cc17(_0x3976e3,_0x1e394b,_0x4367b8),_0x13e7ec;}catch(_0x1ca6ee){return!0x1;}function _0xcebfcc(_0x3db6d7){const _0x46c288=_0x2b326c(_0x3db6d7);_0x46c288&&_0x46c288[_0x4b27eb([0x61,0x6c,0x67])]==_0x4b27eb([0x45,0x53,0x32,0x35,0x36])||(_0x13e7ec=!0x1);}async function _0x55cc17(_0x4fb053,_0xedb7a9,_0x3773ff){const _0x230bef=window[_0x4b27eb([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x4b27eb([0x66,0x72,0x6f,0x6d])](_0x5a37a2(_0x3773ff),_0x5ec65e=>_0x5ec65e[_0x4b27eb([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x327c6d=new window[(_0x4b27eb([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x4b27eb([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x4fb053+_0x4b27eb([0x2e])+_0xedb7a9),_0xe46d34=window[_0x4b27eb([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x4b27eb([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0xe46d34)return;const _0x23adb8=await _0xe46d34[_0x4b27eb([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x4b27eb([0x6a,0x77,0x6b]),_0x113b98,{[_0x4b27eb([0x6e,0x61,0x6d,0x65])]:_0x4b27eb([0x45,0x43,0x44,0x53,0x41]),[_0x4b27eb([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x4b27eb([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x4b27eb([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0xe46d34[_0x4b27eb([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x4b27eb([0x6e,0x61,0x6d,0x65])]:_0x4b27eb([0x45,0x43,0x44,0x53,0x41]),[_0x4b27eb([0x68,0x61,0x73,0x68])]:{[_0x4b27eb([0x6e,0x61,0x6d,0x65])]:_0x4b27eb([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x23adb8,_0x230bef,_0x327c6d)||(_0x13e7ec=!0x1);}}function _0x2b326c(_0x136175){return _0x136175[_0x4b27eb([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x4b27eb([0x65,0x79]))?JSON[_0x4b27eb([0x70,0x61,0x72,0x73,0x65])](_0x5a37a2(_0x136175)):null;}function _0x5a37a2(_0x107b71){return window[_0x4b27eb([0x61,0x74,0x6f,0x62])](_0x107b71[_0x4b27eb([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x4b27eb([0x2b]))[_0x4b27eb([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x4b27eb([0x2f])));}function _0x5e1e74(_0xe3de33){let _0x38917b=0x1505;function _0x5b8e57(_0x4f90cb){for(let _0x477a8d=0x0;_0x477a8d<_0x4f90cb[_0x4b27eb([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x477a8d++){const _0x5a4706=_0x4f90cb[_0x4b27eb([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x477a8d);_0x38917b=(_0x38917b<<0x5)+_0x38917b+_0x5a4706,_0x38917b&=_0x38917b;}}function _0x32e420(_0x39f5a1){Array[_0x4b27eb([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x39f5a1)?_0x39f5a1[_0x4b27eb([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x32e420):_0x39f5a1&&typeof _0x39f5a1==_0x4b27eb([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x4b27eb([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x39f5a1)[_0x4b27eb([0x73,0x6f,0x72,0x74])]()[_0x4b27eb([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x1be938,_0x45b591])=>{_0x5b8e57(_0x1be938),_0x32e420(_0x45b591);}):_0x5b8e57(window[_0x4b27eb([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x39f5a1));}return _0x32e420(_0xe3de33),_0x38917b>>>0x0;}function _0x313c75(_0x20102d){return _0x20102d[_0x4b27eb([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x4b27eb([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x4b27eb([0x30]));}function _0x4b2b80(_0x15f4a3){return _0x15f4a3[_0x4b27eb([0x73,0x70,0x6c,0x69,0x74])]('')[_0x4b27eb([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x4b27eb([0x6a,0x6f,0x69,0x6e])]('');}function _0x4aacea(_0x104a0f){return _0x587b3d[_0x4b27eb([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x4b27eb([0x68,0x61,0x73])](_0x104a0f);}function _0x1f4750(_0x484c3c){return _0x587b3d[_0x4b27eb([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x4b27eb([0x67,0x65,0x74])](_0x484c3c);}function _0x23600d(){}function _0x4b27eb(_0x101251){return _0x101251['map'](_0x2cd9a6=>String['fromCharCode'](_0x2cd9a6))['join']('');}_0x1ec5c5(await _0x3d97fd());}(this);}['createRevision'](_0x489047){const _0x3ee96c=this['editor']['plugins']['get']('Users');return new a({'id':_0x489047['id'],'name':_0x489047['name'],'creator':_0x489047['creatorId']?_0x3ee96c['getUser'](_0x489047['creatorId']):null,'diffData':_0x489047['diffData']||_0x489047['data'],'authors':_0x489047['authorsIds']['map'](_0x3ef42a=>_0x3ee96c['getUser'](_0x3ef42a)),'createdAt':new Date(_0x489047['createdAt']),'attributes':_0x489047['attributes'],'fromVersion':_0x489047['fromVersion'],'toVersion':_0x489047['toVersion']});}['addRevision'](_0xd28b88,_0x3a76dc=0x0){this['_revisions']['add'](_0xd28b88,_0x3a76dc);}['getRevision'](_0x4bfb12){return this['_revisions']['get'](_0x4bfb12);}['getRevisions'](_0xacd5d6={'toJSON':!0x1}){const _0x953938=Array['from'](this['_revisions']);return _0x953938['reverse'](),_0xacd5d6['toJSON']?_0x953938['map'](_0x239e1d=>_0x239e1d['toJSON']()):_0x953938;}['getIndex'](_0x588a6c){return this['_revisions']['getIndex'](_0x588a6c);}['getEarlierVisibleRevision'](_0x28847b){const [,_0x336e74]=this['getRevisionsIterator'](_0x28847b,{'direction':'earlier'});return _0x336e74;}['getLaterVisibleRevision'](_0x45417b){const [,_0x40105e]=this['getRevisionsIterator'](_0x45417b,{'direction':'later'});return _0x40105e;}['getRevisionsInDiff'](_0x510be3){const _0x15f814=[];for(const _0x165fe5 of this['getRevisionsIterator'](_0x510be3['newRevisionId']))if(_0x15f814['push'](_0x165fe5),_0x165fe5['id']===_0x510be3['oldRevisionId'])break;return _0x15f814;}*['getRevisionsIterator'](_0x19f015,{direction:_0x1a84b5='earlier',filter:_0x391c4b=()=>!0x0}={}){const _0x4b90d4='earlier'===_0x1a84b5?0x1:-0x1;let _0xd918f4=this['_revisions']['get'](_0x19f015),_0x2dc8d1=this['getIndex'](_0xd918f4);for(yield _0xd918f4;_0xd918f4;){if(_0x2dc8d1+=_0x4b90d4,_0xd918f4=this['getRevision'](_0x2dc8d1),!_0xd918f4)return;_0x391c4b(_0xd918f4)&&(yield _0xd918f4);}}}function m(_0x1c0cfb,_0x144fae,_0x34ab8e){const t=_0x1c0cfb['t'];switch(_0x144fae){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'},_0x34ab8e);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x34ab8e);case'Show\x20previous\x20change':return t('Show\x20previous\x20change');case'Show\x20next\x20change':return t('Show\x20next\x20change');case'EDIT_X_OF_Y_REVISIONS':return t({'string':'Edit','id':'EDIT_X_OF_Y_REVISIONS'});case'Total':return t('Total');case'Revision\x20creator':return t('Revision\x20creator');case'Revision\x20author':return t('Revision\x20author');case'Revision\x20name':return t('Revision\x20name');case'Save\x20current\x20revision':return t('Save\x20current\x20revision');case'Accept':return t('Accept');case'Save':return t('Save');case'Cancel':return t('Cancel');case'Name\x20of\x20the\x20revision':return t('Name\x20of\x20the\x20revision');case'optional':return t('optional');case'PENDING_ACTION_REVISION_HISTORY':return t({'string':'Unsaved\x20change\x20in\x20revision\x20history.','id':'PENDING_ACTION_REVISION_HISTORY'});case'The\x20revision\x20name\x20cannot\x20be\x20empty.':return t('The\x20revision\x20name\x20cannot\x20be\x20empty.');case'Enter\x20the\x20revision\x20name':return t('Enter\x20the\x20revision\x20name');default:return'';}}const P={'c':_0x35266d,'a':_0x53c0fe,'e':_0x5cfb09,'r':_0x5b34ed,'u':_0x4cb63c};class l extends _0x495045{['licenseKey'];['_licenseKeyCheckInterval'];['adapter'];['currentRevision'];['repository'];['_revisionDataBuilder'];['_source'];['_initialRevisionId'];['_bufferedUpdates'];['_pendingAction'];['_continueCurrentRevision'];['_startingVersion'];['_loadedStateData'];static get['pluginName'](){return'RevisionTracker';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x48e3ae,j,_0x5e742d];}constructor(_0x454d66){super(_0x454d66),this['adapter']=null,this['currentRevision']=null,this['_revisionDataBuilder']=new V(this['editor']),this['_initialRevisionId']=this['editor']['config']['get']('collaboration.channelId')||'initial',this['_bufferedUpdates']=new Map(),this['_loadedStateData']=null;const _0x4e4498=_0x22b130();this['_source']={'history':this['editor']['model']['document']['history'],'getLatestVersion':()=>Promise['resolve'](this['editor']['model']['document']['version']),'getCurrentRevisionId':()=>_0x4e4498},this['set']('isReady',!0x1),this['set']('isEnabled',!0x0),this['set']('_isPendingUpdate',!0x1),this['editor']['config']['define']('revisionHistory.resumeUnsavedRevision',!0x0),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'});}['init'](){this['repository']=this['editor']['plugins']['get']('RevisionsRepository'),this['_setConversion'](),this['editor']['data']['on']('ready',()=>{const _0x416eb7=this['repository']['getRevision'](0x0),_0x1b6dff=_0x416eb7&&null===_0x416eb7['creator']?_0x416eb7:null;if(this['_continueCurrentRevision']=!!_0x1b6dff&&this['editor']['config']['get']('revisionHistory.resumeUnsavedRevision'),this['editor']['plugins']['has']('RealTimeCollaborationClient')){const _0x845b05=this['_source']['getCurrentRevisionId'](),_0x2eb438=this['repository']['getRevision'](_0x845b05);if(_0x2eb438)this['_startingVersion']=_0x2eb438['fromVersion'],this['_continueCurrentRevision']=!0x1;else{const _0x494ba3=this['_source']['history']['_operations']['find'](_0xc4ec2c=>!_0xc4ec2c['_isInit']),_0x285121=_0x494ba3?_0x494ba3['baseVersion']:this['_source']['history']['version'];_0x416eb7?(_0x416eb7['toVersion']<_0x285121&&_0x416eb7['_update']({'toVersion':_0x285121}),this['_continueCurrentRevision']?(this['_source']['getCurrentRevisionId']=()=>_0x1b6dff['id'],this['_startingVersion']=_0x1b6dff['fromVersion']):(this['_startingVersion']=_0x416eb7['toVersion'],this['_continueCurrentRevision']=!0x1)):(this['_startingVersion']=_0x285121,this['_continueCurrentRevision']=!0x1);}}else _0x1b6dff&&(this['editor']['model']['document']['history']['version']=Math['max'](_0x1b6dff['toVersion'],this['editor']['model']['document']['history']['version']),_0x1b6dff['fromVersion']===_0x1b6dff['toVersion']?(0x0!==_0x1b6dff['fromVersion']&&(this['_source']['getCurrentRevisionId']=()=>_0x1b6dff['id']),this['_continueCurrentRevision']=!0x1):this['_continueCurrentRevision']&&(this['_source']['getCurrentRevisionId']=()=>_0x1b6dff['id'],this['_startingVersion']=_0x1b6dff['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',_0x23d70b=>!_0x23d70b),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x32d708=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0xf278d5;for(const _0x14fee5 in _0x32d708){const _0x2f86ff=_0x14fee5,_0x2c1070=_0x32d708[_0x2f86ff];if('revisionHistoryLicenseKeyValid'==_0x2c1070||'revisionHistoryLicenseKeyInvalid'==_0x2c1070||'revisionHistoryLicenseKeyExpired'==_0x2c1070||'revisionHistoryLicenseKeyDomainLimit'==_0x2c1070||'revisionHistoryLicenseKeyNotAllowed'==_0x2c1070||'revisionHistoryLicenseKeyEvaluationLimit'==_0x2c1070||'revisionHistoryLicenseKeyTrialLimit'==_0x2c1070||'revisionHistoryLicenseKeyDevelopmentLimit'==_0x2c1070||'revisionHistoryLicenseKeyUsageLimit'==_0x2c1070){delete _0x32d708[_0x2f86ff],_0xf278d5=_0x2c1070,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'revisionHistoryLicenseKeyInvalid'==_0xf278d5&&_0x32d708['_showLicenseError']('invalid'),'revisionHistoryLicenseKeyExpired'==_0xf278d5&&_0x32d708['_showLicenseError']('expired'),'revisionHistoryLicenseKeyDomainLimit'==_0xf278d5&&_0x32d708['_showLicenseError']('domainLimit'),'revisionHistoryLicenseKeyNotAllowed'==_0xf278d5&&_0x32d708['_showLicenseError']('featureNotAllowed','RevisionHistory'),'revisionHistoryLicenseKeyEvaluationLimit'==_0xf278d5&&_0x32d708['_showLicenseError']('evaluationLimit'),'revisionHistoryLicenseKeyTrialLimit'==_0xf278d5&&_0x32d708['_showLicenseError']('trialLimit'),'revisionHistoryLicenseKeyDevelopmentLimit'==_0xf278d5&&_0x32d708['_showLicenseError']('developmentLimit'),'revisionHistoryLicenseKeyUsageLimit'==_0xf278d5&&_0x32d708['_showLicenseError']('usageLimit');},0x3e8);}async['afterInit'](){if(this['repository']['length']>0x0){const _0x1541fc=this['repository']['getRevision'](0x0),_0x50519f=await this['getRevisionDocumentData'](_0x1541fc),_0x7ef5bb=await this['getRevisionRootsAttributes'](_0x1541fc);this['_replaceEditorDataWithRevisionData'](_0x50519f,_0x7ef5bb);}}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['setSource'](_0x91e251){this['_source']=_0x91e251;}async['update'](){const _0x3d1f03=await this['_source']['getLatestVersion']();if(_0x3d1f03>this['currentRevision']['toVersion']){await this['_loadState']();const _0x1d73b4=this['buildRevisionData']({'revision':this['currentRevision'],'to':_0x3d1f03});_0x1d73b4['authors']=_0x1d73b4['authorsIds']['map'](_0x3b51fb=>this['editor']['plugins']['get']('Users')['getUser'](_0x3b51fb)),this['currentRevision']['_update'](_0x1d73b4);}}async['_loadState'](){this['_continueCurrentRevision']&&!this['_loadedStateData']&&(await this['_loadRevisionData'](this['currentRevision']),this['_revisionDataBuilder']['loadState'](this['currentRevision']),this['_loadedStateData']={'fromVersion':this['currentRevision']['fromVersion'],'authors':this['currentRevision']['authors']['slice']()});}async['saveRevision'](_0x3df910={},_0x4947d3=null){const _0xfba5e8=[];await this['_loadState'](),this['_continueCurrentRevision']=!0x1,_0x4947d3>this['currentRevision']['toVersion']&&(_0x4947d3=null),null===_0x4947d3&&(_0x4947d3=await this['_source']['getLatestVersion']());const _0x5803ac=this['_getFromVersion'](_0x4947d3),_0x3fa976=this['buildRevisionData']({'from':_0x5803ac,'to':_0x4947d3});if(this['currentRevision']['toVersion']<_0x4947d3){const _0xbbc8e2=this['buildRevisionData']({'revision':this['currentRevision'],'from':_0x4947d3,'to':_0x4947d3});_0xbbc8e2['authors']=[],_0xbbc8e2['authorsIds']=[],_0xbbc8e2['id']=this['currentRevision']['id'],this['currentRevision']['_update'](_0xbbc8e2,!0x0),delete _0xbbc8e2['authors'],_0xfba5e8['push'](_0xbbc8e2);}_0x3df910['creatorId']=this['editor']['plugins']['get']('Users')['me']['id'],_0x3df910['name']=_0x3df910['name']||null,_0x3df910['id']=_0x3df910['id']||_0x22b130(),_0x3df910={..._0x3df910,..._0x3fa976};const _0x27e292=this['addRevisionData'](_0x3df910);_0xfba5e8['push'](_0x3df910);const _0x3cd62a=this['repository']['getIndex'](_0x27e292);if(0x0!==_0x3cd62a){const _0x482c98=this['repository']['getRevision'](_0x3cd62a-0x1);if(_0x482c98['fromVersion']!==_0x4947d3){const _0x5fc901=this['_revisionDataBuilder']['getData'](_0x4947d3,_0x482c98['toVersion']),_0x4046cc={'id':_0x482c98['id'],'diffData':_0x5fc901['diffData'],'authorsIds':_0x5fc901['authorsIds'],'authors':_0x5fc901['authorsIds']['map'](_0x103735=>this['editor']['plugins']['get']('Users')['getUser'](_0x103735)),'fromVersion':_0x4947d3};_0x482c98===this['currentRevision']&&(_0x4046cc['createdAt']=new Date(_0x3df910['createdAt']['getTime']()+0xa)),_0x482c98['_update'](_0x4046cc,!0x0),delete _0x4046cc['authors'],_0xfba5e8['push'](_0x4046cc);}}if(this['adapter']){for(const _0x5da8ba of _0xfba5e8)this['_bufferUpdate'](_0x5da8ba['id'],_0x5da8ba,!0x0);this['sendBufferedUpdates']();}return _0x27e292;}['addRevisionData'](_0x2288b9){const _0x3994e0=this['repository']['createRevision'](_0x2288b9);return this['adapter']&&_0x3994e0['on']('_update',(_0x43d21c,_0x278c52,_0x10d2ec)=>{_0x10d2ec||(this['_bufferUpdate'](_0x278c52['id'],_0x278c52,!0x0),this['sendBufferedUpdates']());}),this['repository']['addRevision'](_0x3994e0,this['_findInsertionIndex'](_0x3994e0)),_0x3994e0;}async['getRevisionDocumentData'](_0x322db3){await this['_loadRevisionData'](_0x322db3);const _0x12a420={};for(const _0x146a55 in _0x322db3['diffData']){if(_0x322db3['diffData'][_0x146a55]['attachChange']&&!_0x322db3['diffData'][_0x146a55]['attachChange']['isAttached'])continue;const _0x375640=this['_removeRevisionMarkers'](JSON['parse'](_0x322db3['diffData'][_0x146a55]['insertions'])),_0x1b6bad=this['editor']['editing']['view']['document'],_0x2ea98a=new _0x836cbc(_0x1b6bad,_0x375640['map'](_0x2d1433=>C(_0x2d1433,this['editor'])));this['editor']['data']['processor']['useFillerType']('marked'),_0x12a420[_0x146a55]=this['editor']['data']['processor']['toData'](_0x2ea98a),this['editor']['data']['processor']['useFillerType']('default');}return _0x12a420;}async['getRevisionRootsAttributes'](_0x14939d){await this['_loadRevisionData'](_0x14939d);const _0x18cc4a={};for(const _0x28d7a2 in _0x14939d['diffData'])_0x14939d['diffData'][_0x28d7a2]['attachChange']&&!_0x14939d['diffData'][_0x28d7a2]['attachChange']['isAttached']||(_0x18cc4a[_0x28d7a2]=_0x14939d['diffData'][_0x28d7a2]['attributesAfter']||{});return _0x18cc4a;}['sendBufferedUpdates'](){if(0x0===this['_bufferedUpdates']['size'])return;if(this['_isPendingUpdate'])return;let _0x23f2ab=Array['from'](this['_bufferedUpdates']['values']());this['_bufferedUpdates']['clear']();for(let _0x4f130e=0x0;_0x4f130e<_0x23f2ab['length'];_0x4f130e++){const _0x340c4a=_0x23f2ab[_0x4f130e];let _0x24d544=!0x1;for(const _0x3c8a92 of Object['keys'](_0x340c4a))void 0x0===_0x340c4a[_0x3c8a92]?delete _0x340c4a[_0x3c8a92]:'id'!==_0x3c8a92&&(_0x24d544=!0x0);_0x24d544||(_0x23f2ab[_0x4f130e]=null);}if(_0x23f2ab=_0x23f2ab['filter'](_0x1f0467=>null!==_0x1f0467),!_0x23f2ab['length'])return;for(let _0x457f82=0x0;_0x457f82<_0x23f2ab['length'];_0x457f82++){const _0x34c554=_0x23f2ab[_0x457f82];void 0x0!==_0x34c554['fromVersion']&&void 0x0===_0x34c554['toVersion']&&(_0x34c554['toVersion']=this['repository']['getRevision'](_0x34c554['id'])['toVersion']),void 0x0!==_0x34c554['toVersion']&&void 0x0===_0x34c554['fromVersion']&&(_0x34c554['fromVersion']=this['repository']['getRevision'](_0x34c554['id'])['fromVersion']);}const _0x5428ae=this['editor']['config']['get']('collaboration.channelId');this['_isPendingUpdate']=!0x0,this['_addPendingAction'](),this['adapter']['updateRevisions'](_0x23f2ab,_0x5428ae)['finally'](()=>{this['_isPendingUpdate']=!0x1;})['then'](_0x5b1378=>{if(_0x5b1378){for(const _0x363c24 of _0x5b1378)this['setRevisionData']({'id':_0x363c24['id'],'createdAt':_0x363c24['createdAt']});}this['_removePendingAction'](),this['sendBufferedUpdates']();});}['_replaceEditorDataWithRevisionData'](_0x120d7d,_0x3574eb){let _0xfcb538=this['editor']['config']['get']('initialData'),_0x472ee4=this['editor']['config']['get']('rootsAttributes');if(void 0x0===_0xfcb538){_0xfcb538={};for(const _0x16a5ca of this['editor']['model']['document']['getRootNames']())_0xfcb538[_0x16a5ca]='';}if('string'==typeof _0xfcb538&&(_0xfcb538={'main':_0xfcb538}),void 0x0===_0x472ee4){_0x472ee4={};for(const _0x382d74 of this['editor']['model']['document']['getRootNames']())_0x472ee4[_0x382d74]={};}let _0x1b74e6=!0x1;const _0x26d544=Object['keys'](_0xfcb538),_0x49aa44=Object['keys'](_0x120d7d);for(const _0x59b736 of _0x26d544){if(_0xfcb538[_0x59b736]!==_0x120d7d[_0x59b736]&&''!==_0xfcb538[_0x59b736]['trim']()){_0x1b74e6=!0x0;break;}if(!_0x5b775d(_0x472ee4[_0x59b736],_0x3574eb[_0x59b736])&&Object['keys'](_0x472ee4[_0x59b736])['length']>0x0){_0x1b74e6=!0x0;break;}}_0x1b74e6||(_0x1b74e6=_0x49aa44['some'](_0x1702b7=>!this['editor']['model']['document']['getRoot'](_0x1702b7))),_0x1b74e6&&_0x1ad235('editor-initial-data-replaced-with-revision-data',{'editorData':_0xfcb538,'editorRootsAttributes':_0x472ee4,'revisionData':_0x120d7d,'revisionRootsAttributes':_0x3574eb}),this['editor']['config']['set']('initialData',_0x120d7d),this['editor']['config']['set']('rootsAttributes',_0x3574eb);}['_addPendingAction'](){if(!this['_pendingAction']){const _0x122e6a=this['editor']['plugins']['get']('PendingActions');this['_pendingAction']=_0x122e6a['add'](m(this['editor']['locale'],'PENDING_ACTION_REVISION_HISTORY'));}}['_removePendingAction'](){this['_pendingAction']&&(this['editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null);}['_findInsertionIndex'](_0x3a7b89){const _0x1fe15f=this['repository']['getRevisions']();_0x1fe15f['reverse']();let _0x42ada1=0x0;for(;_0x42ada1<_0x1fe15f['length'];){const _0x3a62d3=_0x1fe15f[_0x42ada1];if(_0x3a62d3===this['currentRevision']){_0x42ada1++;continue;}if(_0x3a62d3['id']===this['_initialRevisionId'])break;const _0x382f49=_0x3a7b89['toVersion']-_0x3a62d3['toVersion']||_0x3a7b89['fromVersion']-_0x3a62d3['fromVersion'];if(_0x382f49>0x0)break;if(_0x382f49<0x0)_0x42ada1++;else{if(!_0x3a7b89['creator']&&_0x3a62d3['creator'])break;if(_0x3a62d3['creator']||!_0x3a7b89['creator']){if(_0x3a7b89['createdAt']>_0x3a62d3['createdAt'])break;_0x42ada1++;}else _0x42ada1++;}}return _0x42ada1;}['setRevisionData'](_0x21cd1a){const _0x542307=this['repository']['getRevision'](_0x21cd1a['id']);if(_0x21cd1a['createdAt']&&(_0x21cd1a['createdAt']=new Date(_0x21cd1a['createdAt'])),_0x21cd1a['authorsIds']){const _0x4ac28d=this['editor']['plugins']['get']('Users');_0x21cd1a['authors']=_0x21cd1a['authorsIds']['map'](_0x30b26e=>_0x4ac28d['getUser'](_0x30b26e));}_0x542307['_update'](_0x21cd1a,!0x0);}['buildRevisionData']({revision:_0x927377=null,from:_0x1fe68f=null,to:_0x8c5073=null}){_0x1fe68f=null!==_0x1fe68f?_0x1fe68f:_0x927377['fromVersion'],_0x8c5073=null!==_0x8c5073?_0x8c5073:_0x927377['toVersion'];const _0x597652=this['_revisionDataBuilder']['getData'](_0x1fe68f,_0x8c5073),_0x5ed51a={'diffData':_0x597652['diffData'],'authorsIds':_0x597652['authorsIds'],'fromVersion':_0x1fe68f,'toVersion':_0x8c5073};if(!_0x927377||_0x8c5073!==_0x927377['toVersion']){const _0x191c1d=_0x8c5073-0x1,_0xd3d2c0=this['_source']['history']['getOperation'](_0x191c1d);_0x5ed51a['createdAt']=_0xd3d2c0&&_0xd3d2c0['createdAt']||new Date();}if(this['_loadedStateData']&&_0x1fe68f===this['_loadedStateData']['fromVersion']){for(const _0x264bd0 of this['_loadedStateData']['authors'])_0x5ed51a['authorsIds']['includes'](_0x264bd0['id'])||_0x5ed51a['authorsIds']['push'](_0x264bd0['id']);}return _0x5ed51a;}['_loadRevisionData'](_0x4745c9){if(!_0x4745c9||_0x4745c9['diffData'])return Promise['resolve']();{const _0x7eff2c=this['editor']['config']['get']('collaboration.channelId');return this['adapter']['getRevision']({'channelId':_0x7eff2c,'revisionId':_0x4745c9['id']})['then'](_0x43fba0=>{_0x4745c9['diffData']=_0x43fba0['diffData'];});}}['_bufferUpdate'](_0x4d7d21,_0x55aa58,_0x4b005f){if(this['_bufferedUpdates']['has'](_0x4d7d21)){const _0x64f346=this['_bufferedUpdates']['get'](_0x4d7d21);_0x55aa58=_0x4b005f?{..._0x64f346,..._0x55aa58}:{..._0x55aa58,..._0x64f346};}this['_bufferedUpdates']['set'](_0x4d7d21,_0x55aa58);}['_getFromVersion'](_0x39884d){const _0x1ebce3=this['repository']['getRevisions']();_0x1ebce3['reverse'](),_0x1ebce3['shift']();const _0x59c90c=_0x1ebce3['find'](_0xbe22ca=>_0xbe22ca['toVersion']<=_0x39884d)['toVersion'];return _0x59c90c<this['_startingVersion']?this['_startingVersion']:_0x59c90c;}['_createInitialRevision'](_0x1b250f){const _0x315382=this['repository']['getRevision'](this['repository']['length']-0x1);if(_0x315382)this['_initialRevisionId']=_0x315382['id'];else{const _0x16bf7c=!this['editor']['model']['document']['roots']['find'](_0xdeaac1=>this['editor']['model']['hasContent'](_0xdeaac1)),_0x2c79b7=this['editor']['plugins']['get']('Users')['me']['id'],_0x29bb53=m(this['editor']['locale'],_0x16bf7c?'Empty\x20document':'Initial\x20revision');this['_makeRevision']({'from':_0x1b250f,'to':_0x1b250f,'id':this['_initialRevisionId'],'name':_0x29bb53,'creatorId':_0x2c79b7});}}['_createCurrentRevision'](_0x1b1af5){const _0x2e04e7=this['_source']['getCurrentRevisionId']();this['currentRevision']=this['repository']['getRevision'](_0x2e04e7),this['currentRevision']||(this['currentRevision']=this['_makeRevision']({'from':_0x1b1af5,'to':_0x1b1af5,'id':_0x2e04e7,'name':'','creatorId':null}));}['_makeRevision']({name:_0x55398d,from:_0x3a7829,to:_0x419fe4,creatorId:_0x151157,id:_0x697ea2}){const _0xb0daed=this['buildRevisionData']({'from':_0x3a7829,'to':_0x419fe4});_0xb0daed['name']=_0x55398d,_0xb0daed['creatorId']=_0x151157,_0xb0daed['id']=_0x697ea2;const _0x3ef9f4=this['addRevisionData'](_0xb0daed);return this['adapter']&&this['_bufferUpdate'](_0xb0daed['id'],_0xb0daed,!0x0),_0x3ef9f4;}['_setConversion'](){this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'});}['_removeRevisionMarkers'](_0x56e24d){return(_0x56e24d=_0x56e24d['filter'](_0x7fde85=>!_0x7fde85['name']||'revision-start'!==_0x7fde85['name']&&'revision-end'!==_0x7fde85['name']))['forEach'](_0x5d3671=>{'string'!=typeof _0x5d3671&&(_0x5d3671['children']=this['_removeRevisionMarkers'](_0x5d3671['children']),_0x5d3671['attributes']=_0x5d3671['attributes']['filter'](_0x55be79=>!_0x55be79[0x0]['startsWith']('data-revision-')));}),_0x56e24d;}}function C(_0xa7a634,_0x2045bc){const _0x23e953=_0x2045bc['editing']['view']['document'];if('string'==typeof _0xa7a634)return new _0x263cf6(_0x23e953,_0xa7a634);{const _0x488dc3=_0xa7a634['children']['map'](_0x387ae7=>C(_0x387ae7,_0x2045bc));return new(P[_0xa7a634['type']]||_0x2b857d)(_0x23e953,_0xa7a634['name'],_0xa7a634['attributes'],_0x488dc3);}}class V{['editor'];['source'];['_savedMetaData'];['_lastFrom'];['_lastTo'];['_markers'];['_diffRoots'];['_diffRootsAttributes'];['_baseRoots'];['_baseRootsAttributes'];['_idsRoots'];['_baseIdsRoots'];['_touched'];['_touchedMarkers'];['_touchedRoots'];['_revisionId'];['_startingRevisionId'];constructor(_0x482a3c){this['editor']=_0x482a3c,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'](_0x2598f5){this['source']=_0x2598f5;const _0x4dba30=new Map(),_0x3c05e4=new Map(),_0x430ad3=this['editor']['model']['document']['roots']['map'](_0x33e3a5=>_0x33e3a5['rootName']);for(const _0x1e53a8 of _0x430ad3){const _0x53afb0=this['editor']['model']['document']['getRoot'](_0x1e53a8),_0x34130f=T(_0x53afb0);_0x4dba30['set'](_0x1e53a8,_0x34130f),_0x3c05e4['set'](_0x1e53a8,Object['fromEntries'](_0x53afb0['getAttributes']()));}const _0x1cfcb0=Array['from'](this['editor']['model']['markers'])['map'](_0x11b4ce=>[_0x11b4ce['name'],_0x11b4ce['getRange']()]),_0x5cf57f=this['source']['version'];this['_saveMetaData'](_0x5cf57f,_0x4dba30,_0x1cfcb0,_0x3c05e4),this['_startingRevisionId']=this['_revisionId'];const _0x101e40=new Map(),_0x4c8640=new Map();for(const _0x2ba6db of _0x430ad3){const _0x95b473=F(_0x2ba6db);_0x101e40['set'](_0x2ba6db,_0x95b473),_0x4c8640['set'](_0x2ba6db,{});}this['_saveMetaData'](Number['NEGATIVE_INFINITY'],_0x101e40,[],_0x4c8640);}['getData'](_0x2ee8c3,_0x5c15b7){if(this['_lastFrom']===_0x2ee8c3&&this['_lastTo']<=_0x5c15b7)this['_savedMetaData']['size']>0x1&&this['_removeMetaData'](this['_lastTo']),this['_applyOperations'](this['_lastTo'],_0x5c15b7,!0x0);else{if(!this['_savedMetaData']['has'](_0x2ee8c3)){const _0x5b8552=this['_getPreviousFrom'](_0x2ee8c3);this['_calculateMetaData'](_0x5b8552,_0x2ee8c3,!0x1);}this['_calculateMetaData'](_0x2ee8c3,_0x5c15b7,!0x0);}return this['_lastFrom']=_0x2ee8c3,this['_lastTo']=_0x5c15b7,this['_getState']();}['loadState'](_0x2b3bb4){this['_reset'](),this['_lastFrom']=_0x2b3bb4['fromVersion'],this['_lastTo']=_0x2b3bb4['toVersion'];for(const _0x20a5c9 in _0x2b3bb4['diffData']){const _0x49821e=_0x2b3bb4['diffData'][_0x20a5c9]['attachChange'],_0x7be4ef=_0x2fbfef(_0x2b3bb4['diffData'][_0x20a5c9]['attributesBefore'])||{},_0x4c428f=this['_makeModelFromViewString'](_0x2b3bb4['diffData'][_0x20a5c9]['deletions']);_0x4c428f['rootName']=_0x20a5c9,_0x4c428f['_isAttached']=!_0x49821e||!_0x49821e['isAttached'],_0x4c428f['isAttached']=()=>_0x4c428f['_isAttached'],this['_baseRoots']['set'](_0x20a5c9,_0x4c428f),this['_baseRootsAttributes']['set'](_0x20a5c9,_0x7be4ef),_0x49821e&&this['_touchedRoots']['set'](_0x20a5c9,_0x49821e);const _0x548ae4=this['_makeIdsRoot'](_0x4c428f);this['_baseIdsRoots']['set'](_0x20a5c9,_0x548ae4);for(const [_0x6e5402,_0x5b2ab6]of _0x4c428f['markers']){if(!_0x6e5402['startsWith']('revision:'))continue;const _0x142b82=_0x6e5402['split'](':')[0x2];for(const _0xacff47 of _0x5b2ab6['getWalker']({'singleCharacters':!0x0})){const _0x41f71a=this['_getVidAttributeName'](_0xacff47),_0x591c20='elementEnd'==_0xacff47['type']?_0xacff47['previousPosition']['path']['slice'](0x0,-0x1):_0xacff47['previousPosition']['path'],_0x31e01a=_0x548ae4['getNodeByPath'](_0x591c20)['getAttribute'](_0x41f71a);this['_touched']['set'](_0x31e01a,{'userId':_0x142b82});}}}this['_startingRevisionId']=this['_revisionId'];const _0x3ddea9=[...Array(this['_revisionId'])['keys']()]['slice'](0x1)['filter'](_0x2171a5=>!this['_touched']['has'](_0x2171a5));let _0x135c84=0x0;const _0xc22a50=new Map();for(const _0x48c40b in _0x2b3bb4['diffData']){const _0x160c59=_0x2b3bb4['diffData'][_0x48c40b]['attachChange'],_0x2b88a2=_0x2fbfef(_0x2b3bb4['diffData'][_0x48c40b]['attributesAfter'])||{},_0x12d559=this['_makeModelFromViewString'](_0x2b3bb4['diffData'][_0x48c40b]['insertions']);_0x12d559['rootName']=_0x48c40b,_0x12d559['_isAttached']=!_0x160c59||_0x160c59['isAttached'],_0x12d559['isAttached']=()=>_0x12d559['_isAttached'],this['_diffRoots']['set'](_0x48c40b,_0x12d559),this['_diffRootsAttributes']['set'](_0x48c40b,_0x2b88a2);const _0x1318f4=this['_makeIdsRoot'](_0x12d559,Number['NEGATIVE_INFINITY']);this['_idsRoots']['set'](_0x48c40b,_0x1318f4),_0xc22a50['set'](_0x48c40b,_0x12d559['isAttached']()?_0x2b88a2:{});for(const [_0x535b4c,_0xd68cc0]of _0x12d559['markers']){if(!_0x535b4c['startsWith']('revision:'))continue;const _0x363d5f=_0x535b4c['split'](':')[0x2];for(const _0x449315 of _0xd68cc0['getWalker']({'singleCharacters':!0x0})){const _0x32365d=this['_getVidAttributeName'](_0x449315),_0x2f523a=this['_revisionId']++,_0x1bcf58='elementEnd'==_0x449315['type']?_0x449315['previousPosition']['path']['slice'](0x0,-0x1):_0x449315['previousPosition']['path'];_0x1318f4['getNodeByPath'](_0x1bcf58)['_setAttribute'](_0x32365d,_0x2f523a),this['_touched']['set'](_0x2f523a,{'userId':_0x363d5f});}}for(const _0x21cdf8 of this['editor']['model']['createRangeIn'](_0x12d559)['getWalker']({'singleCharacters':!0x0})){const _0xa2c9bc=this['_getVidAttributeName'](_0x21cdf8),_0x2ce8a0='elementEnd'==_0x21cdf8['type']?_0x21cdf8['previousPosition']['path']['slice'](0x0,-0x1):_0x21cdf8['previousPosition']['path'],_0x38e120=_0x1318f4['getNodeByPath'](_0x2ce8a0);_0x38e120['getAttribute'](_0xa2c9bc)>0x0||_0x38e120['_setAttribute'](_0xa2c9bc,_0x3ddea9[_0x135c84++]);}for(const [_0x4fd0a5,_0x212dfc]of _0x12d559['markers'])_0x4fd0a5['startsWith']('revision:')||this['_markers']['set'](_0x4fd0a5,_0x212dfc);}const _0x99a08e=F('$graveyard');this['_baseRoots']['set']('$graveyard',_0x99a08e),this['_baseIdsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x99a08e,0x1));const _0x1881a8=F('$graveyard');this['_diffRoots']['set']('$graveyard',_0x1881a8),this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x1881a8,0x1));const _0x4370f2=Array['from'](this['_diffRoots'])['map'](([_0x576403,_0xe23d6e])=>[_0x576403,T(_0xe23d6e)]);this['_saveMetaData'](this['_lastTo'],_0x4370f2,this['_markers'],_0xc22a50);}['_makeModelFromViewString'](_0x1b4379){const _0x46011a=JSON['parse'](_0x1b4379),_0x38af12=this['editor']['editing']['view']['document'],_0x48b2f8=new _0x836cbc(_0x38af12,_0x46011a['map'](_0x2c816c=>C(_0x2c816c,this['editor'])));return this['editor']['data']['toModel'](_0x48b2f8);}['_saveMetaData'](_0x5e6303,_0x3f05fc,_0x376cea,_0x437b10){const _0x164b8f=new Map(_0x3f05fc),_0xc9ea2b=new Map(_0x2fbfef(_0x437b10)),_0x14576e=new Map();for(const [_0x577c68,_0x13137f]of _0x376cea)_0x14576e['set'](_0x577c68,{'start':_0x13137f['start']['clone'](),'end':_0x13137f['end']['clone'](),'rootName':_0x13137f['root']['rootName']});this['_savedMetaData']['set'](_0x5e6303,{'roots':_0x164b8f,'markers':_0x14576e,'rootsAttributes':_0xc9ea2b});}['_removeMetaData'](_0x5c943c){this['_savedMetaData']['delete'](_0x5c943c);}['reInit'](){this['_reset'](),this['_lastFrom']=-0x1,this['_lastTo']=-0x1,this['_savedMetaData']['clear'](),this['init'](this['source']);}['_reset'](){this['_touched']['clear'](),this['_touchedMarkers']['clear'](),this['_touchedRoots']['clear'](),this['_diffRoots']['clear'](),this['_diffRootsAttributes']['clear'](),this['_baseRoots']['clear'](),this['_baseRootsAttributes']['clear'](),this['_idsRoots']['clear'](),this['_baseIdsRoots']['clear'](),this['_markers']['clear'](),this['_revisionId']=0x1,this['_startingRevisionId']=this['_revisionId'];}['_makeIdsRoot'](_0x5c1760,_0x4cf3cb=null){let _0x291de1=null;_0x5c1760['is']('documentFragment')||(_0x291de1=new ft(_0x5c1760['name'],{'vid_start':null===_0x4cf3cb?this['_revisionId']++:_0x4cf3cb++}));const _0x2afa7c=[];for(const _0x34fe0a of _0x5c1760['getChildren']())if(_0x34fe0a['is']('element')){_0x2afa7c['push'](this['_makeIdsRoot'](_0x34fe0a,_0x4cf3cb));const _0x349f2c=_0x2afa7c[_0x2afa7c['length']-0x1];null!==_0x4cf3cb&&(_0x4cf3cb=_0x349f2c['is']('element','$text')?_0x349f2c['getAttribute']('vid')+0x1:_0x349f2c['getAttribute']('vid_end')+0x1);}else{for(let _0x4144b4=0x0;_0x4144b4<_0x34fe0a['offsetSize'];_0x4144b4++)_0x2afa7c['push'](new ft('$text',{'vid':null===_0x4cf3cb?this['_revisionId']++:_0x4cf3cb++}));}if(_0x5c1760['is']('documentFragment')){const _0x10596c=F(_0x5c1760['rootName']);return _0x10596c['_insertChild'](0x0,_0x2afa7c),_0x10596c;}return _0x291de1['_setAttribute']('vid_end',null===_0x4cf3cb?this['_revisionId']++:_0x4cf3cb++),_0x291de1['_insertChild'](0x0,_0x2afa7c),_0x291de1;}['_calculateMetaData'](_0x4ce466,_0x190fb1,_0x39e0dd){this['_reset']();const {roots:_0x2e4a5c,markers:_0x12c7d2,rootsAttributes:_0x89f474}=this['_savedMetaData']['get'](_0x4ce466);this['_baseRoots']=new Map(_0x2e4a5c),this['_baseRootsAttributes']=new Map(_0x2fbfef(_0x89f474));for(const [_0x167303,_0x476138]of this['_baseRoots'])if('$graveyard'!==_0x167303&&(this['_diffRoots']['set'](_0x167303,T(_0x476138)),this['_diffRootsAttributes']=new Map(_0x2fbfef(_0x89f474)),_0x39e0dd)){const _0x32099f=this['_revisionId'];this['_idsRoots']['set'](_0x167303,this['_makeIdsRoot'](_0x476138)),this['_baseIdsRoots']['set'](_0x167303,this['_makeIdsRoot'](_0x476138,_0x32099f));}this['_startingRevisionId']=this['_revisionId'],this['_diffRoots']['set']('$graveyard',T(this['_baseRoots']['get']('$graveyard'))),_0x39e0dd&&this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](this['_baseRoots']['get']('$graveyard')));for(const [_0x1be912,_0x446ce0]of _0x12c7d2){const _0x48de42=this['_baseRoots']['get'](_0x446ce0['rootName']),_0x53a8eb=this['_diffRoots']['get'](_0x446ce0['rootName']),_0x3d5818=new vt(this['_fixPosition'](_0x446ce0['start'],_0x48de42),this['_fixPosition'](_0x446ce0['end'],_0x48de42)),_0x16bef7=this['_fixRange'](_0x3d5818,_0x53a8eb);_0x48de42['markers']['set'](_0x1be912,_0x3d5818),this['_markers']['set'](_0x1be912,_0x16bef7);}this['_applyOperations'](_0x4ce466,_0x190fb1,_0x39e0dd);}['_applyOperations'](_0x4dd1ff,_0x4cb7cd,_0x486b8d){for(const _0x445ac8 of this['source']['getOperations'](_0x4dd1ff,_0x4cb7cd))this['_handleOperation'](_0x445ac8,_0x486b8d);for(const _0x1e7068 of this['_diffRoots']['values']())_0x1e7068['markers']['clear']();for(const [_0xa47bca,_0x288cc9]of this['_markers']){this['_diffRoots']['get'](_0x288cc9['root']['rootName'])['markers']['set'](_0xa47bca,_0x288cc9['clone']());}const _0x50ef09=new Map(),_0x35c761=new Map();for(const [_0x438481,_0x2abe59]of this['_diffRoots'])_0x50ef09['set'](_0x438481,T(_0x2abe59)),_0x35c761['set'](_0x438481,this['_diffRootsAttributes']['get'](_0x438481));this['_saveMetaData'](_0x4cb7cd,_0x50ef09,this['_markers'],_0x35c761);}['_getPreviousFrom'](_0x40f884){const _0x5aa647=Array['from'](this['_savedMetaData']['keys']());_0x5aa647['sort']((_0xada8c1,_0x1f9601)=>_0xada8c1-_0x1f9601),_0x5aa647['reverse']();for(const _0x19eee7 of _0x5aa647)if(_0x19eee7<_0x40f884)return _0x19eee7;return Number['NEGATIVE_INFINITY'];}['_copyMarkers'](_0x150c19,_0x2f5fb3){const _0x3a3845=Array['from'](_0x2f5fb3['markers'])['map'](([_0x1cbe0d,_0x422aae])=>[_0x1cbe0d,this['_fixRange'](_0x422aae,_0x150c19)]);_0x150c19['markers']=new Map(_0x3a3845);}['_transformMarkers'](_0x1eac37){for(const _0x474f4b of this['_markers']['values']()){const _0x4552e3=_0x474f4b['getTransformedByOperation'](_0x1eac37),_0x5df6a7=vt['_createFromRanges'](_0x4552e3);_0x474f4b['start']=_0x5df6a7['start'],_0x474f4b['end']=_0x5df6a7['end'];}}['_handleOperation'](_0x23c6ff,_0x45e335){if('addRoot'!=_0x23c6ff['type']&&'detachRoot'!=_0x23c6ff['type']){if('insert'==_0x23c6ff['type']){const _0x11d477=_0x23c6ff['position']['root']['rootName'];this['_diffRoots']['has'](_0x11d477)||(this['_diffRoots']['set'](_0x11d477,F(_0x11d477,!0x0)),this['_diffRootsAttributes']['set'](_0x11d477,{}),_0x45e335&&this['_idsRoots']['set'](_0x11d477,F(_0x11d477,!0x0)));}else{if('addRootAttribute'==_0x23c6ff['type']||'removeRootAttribute'==_0x23c6ff['type']||'changeRootAttribute'==_0x23c6ff['type'])return void this['_handleRootAttributeOperation'](_0x23c6ff);'marker'==_0x23c6ff['type']&&this['_handleMarkerOperation'](_0x23c6ff);}if('marker'!==_0x23c6ff['type']){const _0xdffe60=this['_cloneOperation'](_0x23c6ff,this['_diffRoots']);_0xdffe60['_execute'](),this['_transformMarkers'](_0xdffe60);}if(_0x45e335)switch(_0x23c6ff['type']){case'insert':this['_handleInsertOperation'](_0x23c6ff);break;case'move':case'remove':case'reinsert':this['_handleMoveOperation'](_0x23c6ff);break;case'merge':this['_handleMergeOperation'](_0x23c6ff);break;case'split':this['_handleSplitOperation'](_0x23c6ff);}}else this['_handleRootOperation'](_0x23c6ff,_0x45e335);}['_cloneOperation'](_0x6e0768,_0x5d6a38){const _0xfb9be1=_0x6e0768['clone']();return _0xfb9be1['_authorId']=_0x6e0768['_authorId'],this['_fixOperation'](_0xfb9be1,_0x5d6a38),_0xfb9be1;}['_getBaseVids'](_0x3d48a6){return _0x3d48a6['map'](_0x2ad389=>{const _0x12852f=this['_getVidAttributeName'](_0x2ad389);return Number(_0x2ad389['item']['getAttribute'](_0x12852f));});}['_generateTape'](_0x403685,_0x3d726b){if(_0x403685['is']('element','$text'))_0x3d726b['push']({'item':_0x403685,'type':'text'});else{_0x403685['is']('element')&&_0x3d726b['push']({'item':_0x403685,'type':'elementStart'});for(const _0x167048 of _0x403685['getChildren']())this['_generateTape'](_0x167048,_0x3d726b);_0x403685['is']('element')&&_0x3d726b['push']({'item':_0x403685,'type':'elementEnd'});}return _0x3d726b;}['_getState'](){const _0x6056ee=new Map(this['_touched']),_0x3c14a8=new Map(_0x6056ee),_0x1d0c0c=new Map(),_0x4ac0b5={'insertions':{},'deletions':{}},_0x1d113e={'insertions':{},'deletions':{}},_0x39cc65=new Map(),_0x41266c=new Set([...this['_baseRoots']['keys'](),...this['_diffRoots']['keys']()]);_0x41266c['delete']('$graveyard');for(const _0xcaf507 of _0x41266c){const _0x21b873=this['_diffRoots']['get'](_0xcaf507)||F(_0xcaf507,!0x1),_0x581245=this['_baseRoots']['get'](_0xcaf507)||F(_0xcaf507,!0x1);_0x21b873['isAttached']()||_0x581245['isAttached']()?(_0x4ac0b5['insertions'][_0xcaf507]=T(_0x21b873),_0x4ac0b5['deletions'][_0xcaf507]=T(_0x581245),this['_copyMarkers'](_0x4ac0b5['deletions'][_0xcaf507],_0x581245),this['_copyMarkers'](_0x4ac0b5['insertions'][_0xcaf507],_0x21b873),_0x1d113e['insertions'][_0xcaf507]=this['_generateTape'](this['_idsRoots']['get'](_0xcaf507),[]),_0x1d113e['deletions'][_0xcaf507]=this['_generateTape'](this['_baseIdsRoots']['get'](_0xcaf507)||F(_0xcaf507,!0x1),[])):_0x41266c['delete'](_0xcaf507);}for(const _0x3af84e of _0x41266c){const _0x2190de=_0x1d113e['insertions'][_0x3af84e];for(const _0x473b2f of _0x2190de){const _0x52546d=this['_getVidAttributeName'](_0x473b2f),_0x4b467b=_0x473b2f['item']['getAttribute'](_0x52546d);_0x3c14a8['delete'](_0x4b467b),_0x4b467b>=this['_startingRevisionId']&&_0x1d0c0c['set'](_0x4b467b,_0x6056ee['get'](_0x4b467b));}}for(const _0x2f24a6 of _0x41266c){const _0x1581a3=_0x1d113e['insertions'][_0x2f24a6],_0x564a6b=this['_getBaseVids'](_0x1d113e['deletions'][_0x2f24a6]);let _0x402786=0x0;for(const _0x371c0c of _0x1581a3){const _0x553f16=this['_getVidAttributeName'](_0x371c0c),_0x1e6a83=_0x371c0c['item']['getAttribute'](_0x553f16);if(!_0x1d0c0c['has'](_0x1e6a83)&&!_0x39cc65['has'](_0x1e6a83)){if(_0x3c14a8['has'](_0x1e6a83))_0x402786++;else{if(_0x1e6a83!=_0x564a6b[_0x402786]){const _0xf2aff2=_0x6056ee['get'](_0x1e6a83)||_0x6056ee['get'](_0x564a6b[_0x402786]);for(;_0x1e6a83!=_0x564a6b[_0x402786];)_0x3c14a8['has'](_0x564a6b[_0x402786])||(_0x39cc65['set'](_0x564a6b[_0x402786],_0xf2aff2),_0x6056ee['set'](_0x564a6b[_0x402786],_0xf2aff2)),_0x402786++;}_0x402786++;}}}}for(const _0x1d2c82 of _0x41266c){const _0x1e106f=_0x1d113e['insertions'][_0x1d2c82];for(const _0x2ff6a4 of _0x1e106f){const _0x1d64a2=this['_getVidAttributeName'](_0x2ff6a4),_0x26cfd6=_0x2ff6a4['item']['getAttribute'](_0x1d64a2);if(_0x39cc65['has'](_0x26cfd6)){const _0x4490d7=_0x39cc65['get'](_0x26cfd6);_0x3c14a8['has'](_0x26cfd6)||_0x3c14a8['set'](_0x26cfd6,{..._0x4490d7}),_0x1d0c0c['set'](_0x26cfd6,{..._0x4490d7});}}}for(const _0x5d0d46 of _0x3c14a8['keys']())_0x5d0d46>=this['_startingRevisionId']&&_0x3c14a8['delete'](_0x5d0d46);const _0x1378be=new Map();for(const _0x1844f2 of _0x41266c){let _0x12c4c3=_0x1d113e['insertions'][_0x1844f2];for(const _0x4b4288 of _0x12c4c3)if(_0x4b4288['item']['is']('element','tableCell')){const _0x358d0c=this['_getVidAttributeName'](_0x4b4288),_0x445478=_0x4b4288['item']['getAttribute'](_0x358d0c);if(_0x1d0c0c['has'](_0x445478)){const _0x106755=_0x4b4288['item']['parent']['parent']['getAttribute']('vid_start'),_0x550d6b=_0x1378be['get'](_0x106755)||new Set();_0x550d6b['add'](_0x1d0c0c['get'](_0x445478)['userId']),_0x1378be['set'](_0x106755,_0x550d6b);}}_0x12c4c3=_0x1d113e['deletions'][_0x1844f2];for(const _0x1469da of _0x12c4c3)if(_0x1469da['item']['is']('element','tableCell')){const _0x15c490=this['_getVidAttributeName'](_0x1469da),_0x3c0fd0=_0x1469da['item']['getAttribute'](_0x15c490);if(_0x3c14a8['has'](_0x3c0fd0)){const _0x39ae24=_0x1469da['item']['parent']['parent']['getAttribute']('vid_start'),_0xa7df61=_0x1378be['get'](_0x39ae24)||new Set();_0xa7df61['add'](_0x3c14a8['get'](_0x3c0fd0)['userId']),_0x1378be['set'](_0x39ae24,_0xa7df61);}}for(const _0x498521 of _0x1378be['keys']())(_0x1d0c0c['has'](_0x498521)||_0x3c14a8['has'](_0x498521))&&_0x1378be['delete'](_0x498521);}for(const _0x325ba5 of _0x41266c){const _0xdc15be=_0x1d113e['insertions'][_0x325ba5];let _0x27d8be=null,_0x30244d=null;for(const _0x5ce60d of _0xdc15be){const _0x3ea642=this['_getVidAttributeName'](_0x5ce60d),_0x2054d3=_0x5ce60d['item']['getAttribute'](_0x3ea642),_0x507846=_0x1378be['get'](_0x2054d3);_0x507846&&'elementStart'==_0x5ce60d['type']&&(_0x27d8be=Array['from'](_0x507846)[0x0],_0x30244d=_0x5ce60d['item']['getAttribute']('vid_end')),_0x27d8be&&(_0x3c14a8['set'](_0x2054d3,{'userId':_0x27d8be}),_0x1d0c0c['set'](_0x2054d3,{'userId':_0x27d8be})),_0x2054d3==_0x30244d&&(_0x27d8be=null,_0x30244d=null);}}const _0x9e3d07={},_0x56475f=new Set();for(const _0x4211b7 of _0x41266c){const _0x285d8b=_0x4ac0b5['deletions'][_0x4211b7],_0x39dc71=_0x4ac0b5['insertions'][_0x4211b7];for(const {userId:_0x58a620}of this['_touchedMarkers']['values']())null!==_0x58a620&&_0x56475f['add'](_0x58a620);for(const {userId:_0xedeb3f}of this['_touchedRoots']['values']())null!==_0xedeb3f&&_0x56475f['add'](_0xedeb3f);this['_markChanges'](_0x39dc71,_0x1d113e['insertions'][_0x4211b7],_0x1d0c0c,'insertion',_0x56475f),this['_markChanges'](_0x285d8b,_0x1d113e['deletions'][_0x4211b7],_0x3c14a8,'deletion',_0x56475f),_0x9e3d07[_0x4211b7]={'insertions':this['_prepareViewToSave'](_0x39dc71),'deletions':this['_prepareViewToSave'](_0x285d8b),'attachChange':this['_touchedRoots']['get'](_0x4211b7)||null,'attributesBefore':_0x2fbfef(this['_baseRootsAttributes']['get'](_0x4211b7))||{},'attributesAfter':_0x2fbfef(this['_diffRootsAttributes']['get'](_0x4211b7))};}return{'diffData':_0x9e3d07,'authorsIds':Array['from'](_0x56475f)};}['_processRootBeforeSave'](_0x423e52){for(const [,_0x45c3b3]of _0x423e52['markers']){const _0x2a01d5=_0x45c3b3['start']['getAncestors']()['filter'](_0x46bc95=>'tableCell'==_0x46bc95['name']);for(const _0x295b4e of _0x2a01d5)0x1==_0x295b4e['childCount']&&_0x295b4e['getChild'](0x0)['is']('element','paragraph')&&_0x295b4e['getChild'](0x0)['_setAttribute']('keepParagraph',!0x0);}}['_prepareViewToSave'](_0x4da1ea){this['_processRootBeforeSave'](_0x4da1ea);const _0x63170b=this['editor']['data']['toView'](_0x4da1ea,{}),_0x367618=Array['from'](_0x63170b['getChildren']())['map'](_0x290f72=>this['_getViewJson'](_0x290f72));return JSON['stringify'](_0x367618);}['_getViewJson'](_0x5cddff){if(_0x5cddff['is']('$text'))return _0x5cddff['data'];{const _0x4da74a=_0x5cddff;return{'type':Object['keys'](P)['find'](_0x3acdfb=>_0x5cddff instanceof P[_0x3acdfb]),'name':_0x4da74a['name'],'attributes':Array['from'](_0x4da74a['getAttributes']()),'children':Array['from'](_0x4da74a['getChildren']())['map'](_0x405dde=>this['_getViewJson'](_0x405dde))};}}['_markChanges'](_0x248a0e,_0x548572,_0x488ca0,_0x1a85e9,_0x2b2992){let _0xa22b48=null,_0x16080f=null,_0x37e94d=0x0;const _0x5e7a8c=this['editor']['model'];for(let _0x155bf7=0x0;_0x155bf7<_0x548572['length'];_0x155bf7++){const _0x4375b3=this['_getVidAttributeName'](_0x548572[_0x155bf7]),_0x8885e=_0x548572[_0x155bf7]['item']['getAttribute'](_0x4375b3),_0x29dd69=_0x488ca0['get'](_0x8885e),_0x421140=_0x155bf7==_0x548572['length']-0x1;(!_0xa22b48&&_0x29dd69&&(_0xa22b48=_0x29dd69,_0x16080f=_0x548572[_0x155bf7]),_0xa22b48&&(!_0x29dd69||_0x29dd69['userId']!=_0xa22b48['userId']))&&(_0x31aabe(_0x29dd69,B(_0x16080f,_0x248a0e,_0x5e7a8c),B(_0x548572[_0x155bf7],_0x248a0e,_0x5e7a8c)),_0xa22b48=_0x29dd69||null,_0x16080f=_0x29dd69?_0x548572[_0x155bf7]:null),_0xa22b48&&_0x421140&&_0x31aabe(_0x29dd69,B(_0x16080f,_0x248a0e,_0x5e7a8c),J(_0x548572[_0x155bf7],_0x248a0e,_0x5e7a8c));}function _0x31aabe(_0x287ca0,_0x23d4bc,_0x559641){const _0x1de61=_0xa22b48['userId'],_0x36640d='revision:'+_0x1a85e9+':'+_0x1de61+':'+_0x37e94d++,_0x1d81e6=_0x5e7a8c['createRange'](_0x23d4bc,_0x559641);_0x248a0e['markers']['set'](_0x36640d,_0x1d81e6),null!==_0x1de61&&_0x2b2992['add'](_0x1de61);}}['_getVidAttributeName'](_0x5a7f4c){switch(_0x5a7f4c['type']){case'elementStart':return'vid_start';case'elementEnd':return'vid_end';default:return'vid';}}['_fixOperation'](_0x5dfde6,_0x2efb26){_0x5dfde6['baseVersion']=null;for(const _0x3e35ec in _0x5dfde6){const _0xd32d55=_0x5dfde6[_0x3e35ec];if(_0xd32d55 instanceof gt){const _0x5ad35d=_0x2efb26['get'](_0xd32d55['root']['rootName']);_0x5dfde6[_0x3e35ec]=this['_fixPosition'](_0xd32d55,_0x5ad35d);}if(_0xd32d55 instanceof vt){const _0x41a1f6=_0x2efb26['get'](_0xd32d55['root']['rootName']);_0x5dfde6[_0x3e35ec]=this['_fixRange'](_0xd32d55,_0x41a1f6);}'root'===_0x3e35ec&&(_0x5dfde6['root']=_0x2efb26['get'](_0x5dfde6['root']['rootName']));}}['_fixRange'](_0x146f4b,_0x18a8ac){return this['editor']['model']['createRange'](this['_fixPosition'](_0x146f4b['start'],_0x18a8ac),this['_fixPosition'](_0x146f4b['end'],_0x18a8ac));}['_fixPosition'](_0x28c624,_0x1417db){return this['editor']['model']['createPositionFromPath'](_0x1417db,_0x28c624['path'],_0x28c624['stickiness']);}['_handleInsertOperation'](_0x10f0df){const _0x1eb274=this['_idsRoots']['get'](_0x10f0df['position']['root']['rootName']),_0x404a14=this['_fixPosition'](_0x10f0df['position'],_0x1eb274),_0x3609a1=null===_0x10f0df['_authorId']?null:_0x10f0df['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x115210=_0x404a14['parent'],_0x3db07f=this['_revisionId'],_0x1ee527=[];for(const _0x5c57cf of _0x10f0df['nodes'])if(_0x5c57cf['is']('element'))_0x1ee527['push'](this['_makeIdsRoot'](_0x5c57cf));else{for(let _0x4e2724=0x0;_0x4e2724<_0x5c57cf['offsetSize'];_0x4e2724++)_0x1ee527['push'](new ft('$text',{'vid':this['_revisionId']++}));}const _0x313a4a=this['_revisionId'];for(let _0x46ca31=_0x3db07f;_0x46ca31<_0x313a4a;_0x46ca31++)this['_touched']['set'](_0x46ca31,{'userId':_0x3609a1});_0x115210['_insertChild'](_0x404a14['offset'],_0x1ee527);}['_handleMoveOperation'](_0x295989){(_0x295989=this['_cloneOperation'](_0x295989,this['_idsRoots']))['_execute']();const _0x3a98ee=null===_0x295989['_authorId']?null:_0x295989['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x38bf48=_0x295989['getMovedRangeStart'](),_0x3b8a8c=_0x38bf48['parent'],_0x10037b=_0x38bf48['offset'];!function _0xd089(_0xf6c9bf,_0x4a4d7f,_0x433963,_0x4d695f){for(let _0x25b286=_0x433963;_0x25b286<_0x4d695f;_0x25b286++){const _0x1b2d29=_0x4a4d7f['getChild'](_0x25b286);_0x1b2d29['is']('element','$text')?_0xf6c9bf['set'](_0x1b2d29['getAttribute']('vid'),{'userId':_0x3a98ee}):(_0xf6c9bf['set'](_0x1b2d29['getAttribute']('vid_start'),{'userId':_0x3a98ee}),_0xd089(_0xf6c9bf,_0x1b2d29,0x0,_0x1b2d29['childCount']),_0xf6c9bf['set'](_0x1b2d29['getAttribute']('vid_end'),{'userId':_0x3a98ee}));}}(this['_touched'],_0x3b8a8c,_0x10037b,_0x10037b+_0x295989['howMany']);}['_handleMergeOperation'](_0x31118c){const _0x299418=null===(_0x31118c=this['_cloneOperation'](_0x31118c,this['_idsRoots']))['_authorId']?null:_0x31118c['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0xf85761=_0x31118c['targetPosition']['parent'],_0x2cbbcd=_0x31118c['sourcePosition']['parent'],_0x2f11d0=_0xf85761['getAttribute']('vid_end'),_0x3935c9=_0x2cbbcd['getAttribute']('vid_start');_0xf85761['_setAttribute']('vid_end',_0x2cbbcd['getAttribute']('vid_end')),_0x2cbbcd['_setAttribute']('vid_end',_0x2f11d0),this['_touched']['set'](_0x3935c9,{'userId':_0x299418}),this['_touched']['set'](_0x2f11d0,{'userId':_0x299418}),_0x31118c['_execute']();}['_handleSplitOperation'](_0xcaf35){const _0x13b778=null===(_0xcaf35=this['_cloneOperation'](_0xcaf35,this['_idsRoots']))['_authorId']?null:_0xcaf35['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x1a9ecc=_0xcaf35['graveyardPosition'],_0x536b45=_0xcaf35['splitPosition']['parent'];_0xcaf35['_execute']();const _0x44d845=_0x536b45['getAttribute']('vid_end'),_0x4999f6=_0xcaf35['insertionPosition']['nodeAfter'];if(_0x1a9ecc){const _0xe8b65e=_0x4999f6['getAttribute']('vid_end'),_0x175033=_0x536b45['getAttribute']('vid_end');_0x536b45['_setAttribute']('vid_end',_0xe8b65e),_0x4999f6['_setAttribute']('vid_end',_0x175033),this['_touched']['set'](_0x536b45['getAttribute']('vid_end'),{'userId':_0x13b778}),this['_touched']['set'](_0x4999f6['getAttribute']('vid_start'),{'userId':_0x13b778});}else{const _0x37f1f4=this['_revisionId']++,_0x658f6f=this['_revisionId']++;_0x536b45['_setAttribute']('vid_end',_0x37f1f4),_0x4999f6['_setAttribute']('vid_start',_0x658f6f),_0x4999f6['_setAttribute']('vid_end',_0x44d845),this['_touched']['set'](_0x37f1f4,{'userId':_0x13b778}),this['_touched']['set'](_0x658f6f,{'userId':_0x13b778});}}['_handleMarkerOperation'](_0x39e5b4){if(!_0x39e5b4['affectsData'])return;const _0x490e8d=(_0x39e5b4=this['_cloneOperation'](_0x39e5b4,this['_diffRoots']))['oldRange']?_0x39e5b4['oldRange']['root']:null,_0x3c679d=_0x39e5b4['newRange']?_0x39e5b4['newRange']['root']:null;_0x490e8d&&this['_markers']['delete'](_0x39e5b4['name']),_0x3c679d&&this['_markers']['set'](_0x39e5b4['name'],_0x39e5b4['newRange']['clone']());const _0x3ee29d=null===_0x39e5b4['_authorId']?null:_0x39e5b4['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x5a130b=_0x39e5b4['name'];if(!this['_touchedMarkers']['has'](_0x5a130b))return void this['_touchedMarkers']['set'](_0x5a130b,{'range':_0x39e5b4['oldRange'],'userId':_0x3ee29d});const _0x316b3b=this['_touchedMarkers']['get'](_0x5a130b),_0x4fc3be=_0x316b3b['range'],_0x4ee15b=_0x39e5b4['newRange'];null==_0x4fc3be&&null==_0x4ee15b||_0x4fc3be&&_0x4ee15b&&_0x4fc3be['isEqual'](_0x4ee15b)?this['_touchedMarkers']['delete'](_0x39e5b4['name']):_0x316b3b['userId']=_0x3ee29d;}['_handleRootOperation'](_0x1b5750,_0x5e727f){this['_diffRoots']['has'](_0x1b5750['rootName'])?this['_diffRoots']['get'](_0x1b5750['rootName'])['_isAttached']=_0x1b5750['isAdd']:(this['_diffRoots']['set'](_0x1b5750['rootName'],F(_0x1b5750['rootName'],!0x0)),this['_diffRootsAttributes']['set'](_0x1b5750['rootName'],{}),_0x5e727f&&this['_idsRoots']['set'](_0x1b5750['rootName'],F(_0x1b5750['rootName'],!0x0)));const _0x1c5170=null===_0x1b5750['_authorId']?null:_0x1b5750['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x55b7db=this['_touchedRoots']['get'](_0x1b5750['rootName']);_0x55b7db&&_0x55b7db['userId']===_0x1c5170?this['_touchedRoots']['delete'](_0x1b5750['rootName']):this['_touchedRoots']['set'](_0x1b5750['rootName'],{'userId':_0x1c5170,'isAttached':_0x1b5750['isAdd']});}['_handleRootAttributeOperation'](_0x4d4b75){const _0x46fd25=this['_diffRootsAttributes']['get'](_0x4d4b75['root']['rootName']);null===_0x4d4b75['newValue']?delete _0x46fd25[_0x4d4b75['key']]:_0x46fd25[_0x4d4b75['key']]=_0x4d4b75['newValue'];}}function T(_0x34e099){const _0x4bcfc4=F(_0x34e099['rootName'],_0x34e099['isAttached']());for(const _0x113f79 of _0x34e099['getChildren']()){const _0x5f17a1=_0x113f79['_clone'](!0x0);_0x4bcfc4['_appendChild'](_0x5f17a1);}return _0x4bcfc4;}function F(_0x453aee,_0x12f892=!0x0){const _0x54906f=new mt();return _0x54906f['rootName']=_0x453aee,_0x54906f['_isAttached']=_0x12f892,_0x54906f['isAttached']=()=>_0x54906f['_isAttached'],_0x54906f;}function B(_0x196a63,_0x137802,_0xfdd2ab){const _0x28b51d='elementEnd'==_0x196a63['type']?_0xfdd2ab['createPositionAt'](_0x196a63['item'],'end'):_0xfdd2ab['createPositionBefore'](_0x196a63['item']);return _0xfdd2ab['createPositionFromPath'](_0x137802,_0x28b51d['path'],_0x28b51d['stickiness']);}function J(_0x4fb179,_0x3406ad,_0x15b00f){const _0x3d3d49='elementStart'==_0x4fb179['type']?_0x15b00f['createPositionAt'](_0x4fb179['item'],0x0):_0x15b00f['createPositionAfter'](_0x4fb179['item']);return _0x15b00f['createPositionFromPath'](_0x3406ad,_0x3d3d49['path'],_0x3d3d49['stickiness']);}class ns extends _0x21a70e{['focusTracker'];['keystrokes'];['revisionNameInputView'];constructor(_0x3fa6a6,_0xe67989){super(_0x3fa6a6),this['focusTracker']=new _0x5d4331(),this['keystrokes']=new _0x197446(),this['set']('revisionNameInputValue',''),this['revisionNameInputView']=this['_createRevisionNameInput'](_0xe67989),this['setTemplate']({'tag':'form','attributes':{'class':['ck','ck-revision-history-save-revision-form','ck-responsive-form'],'tabindex':'-1'},'children':[this['revisionNameInputView']]}),ts(this);}['render'](){super['render'](),_0x50a964({'view':this}),this['focusTracker']['add'](this['revisionNameInputView']['element']),this['keystrokes']['listenTo'](this['element']);const _0x14129c=_0x1517be=>_0x1517be['stopPropagation']();this['keystrokes']['set']('arrowright',_0x14129c),this['keystrokes']['set']('arrowleft',_0x14129c),this['keystrokes']['set']('arrowup',_0x14129c),this['keystrokes']['set']('arrowdown',_0x14129c);}['focus'](){this['revisionNameInputView']['focus']();}get['revisionName'](){return this['revisionNameInputView']['fieldView']['element']['value']['trim']();}set['revisionName'](_0xf24ce6){this['revisionNameInputView']['fieldView']['element']['value']=_0xf24ce6['trim']();}['reset'](){this['revisionNameInputView']['fieldView']['element']['value']='',this['revisionNameInputView']['errorText']=null;}['_createRevisionNameInput'](_0x45031a){const _0x1bc680=new nt(this['locale'],_0x2f6061),_0x444b50=_0x1bc680['fieldView'];_0x444b50['extendTemplate']({'attributes':{'maxlength':'220'}});let _0x35012b=m(this['locale'],'Name\x20of\x20the\x20revision');return!_0x45031a&&(_0x35012b+='\x20('+m(this['locale'],'optional')+')'),(_0x1bc680['label']=_0x35012b,_0x444b50['on']('input',()=>{this['revisionNameInputValue']=_0x444b50['element']['value']['trim']();}),_0x1bc680);}}class u extends _0x495045{static get['pluginName'](){return'RevisionHistoryUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[l];}['_saveRevisionFormView'];['init'](){const _0x2ebe4d=this['editor'],_0x275798=_0x2ebe4d['plugins']['get']('RevisionTracker');_0x2ebe4d['ui']['componentFactory']['add']('revisionHistory',_0x2aa24c=>{const _0x286c7a=_0x4cd44e(_0x2aa24c),_0x4d95c9=_0x286c7a['panelView']['children'],_0x4c7e6a=new te(_0x2aa24c),_0x359c3d=new _0x5586df(_0x2aa24c),_0x1cc2e6=new _0x5f241f(_0x2aa24c),_0x2f4bd9=new _0x5586df(_0x2aa24c),_0x4e8804=new _0x5f241f(_0x2aa24c);return _0x286c7a['bind']('isEnabled')['to'](_0x275798,'isReady',_0x275798,'isEnabled',_0x2ebe4d,'isReadOnly',(_0x153f94,_0x2367e7,_0x1e49ee)=>_0x153f94&&_0x2367e7&&!_0x1e49ee),_0x286c7a['buttonView']['set']({'icon':_0x3b9cd1['history'],'label':m(_0x2aa24c,'Revision\x20history'),'tooltip':!0x0}),_0x1cc2e6['set']({'label':m(_0x2aa24c,'Save\x20current\x20revision'),'withText':!0x0,'role':'menuitem'}),_0x1cc2e6['bind']('isEnabled')['to'](_0x275798,'isReady',_0x275798,'isEnabled',_0x2ebe4d,'isReadOnly',(_0x403e97,_0x2d831e,_0x38702b)=>_0x403e97&&_0x2d831e&&!_0x38702b),_0x1cc2e6['on']('execute',()=>this['_showDialog']()),_0x4e8804['set']({'label':m(_0x2aa24c,'Open\x20revision\x20history'),'withText':!0x0,'role':'menuitem'}),_0x4e8804['bind']('isEnabled')['to'](_0x275798,'isReady',_0x2ebe4d,'isReadOnly',(_0x23b5c5,_0x9e03f7)=>_0x23b5c5&&!_0x9e03f7),_0x4e8804['on']('execute',()=>{_0x2ebe4d['config']['get']('revisionHistory')['showRevisionViewerCallback'](),_0x286c7a['isOpen']=!0x1,_0x2ebe4d['editing']['view']['focus']();}),_0x359c3d['children']['add'](_0x1cc2e6),_0x2f4bd9['children']['add'](_0x4e8804),_0x4c7e6a['role']='menu',_0x4c7e6a['items']['addMany']([_0x359c3d,_0x2f4bd9]),_0x4d95c9['add'](_0x4c7e6a),_0x286c7a;}),_0x2ebe4d['ui']['componentFactory']['add']('menuBar:revisionHistory',()=>this['_registerMenuComponent']());}['_registerMenuComponent'](){const _0x1499e1=this['editor'],_0x53e7d3=_0x1499e1['locale'],_0x4a2e17=new _0x57eb30(_0x53e7d3),_0x2db22d=new _0x2a4332(_0x53e7d3);_0x4a2e17['buttonView']['set']({'icon':_0x3b9cd1['history'],'label':m(_0x53e7d3,'Revision\x20history')});const _0x1d4633=new _0x55a266(_0x53e7d3,_0x4a2e17),_0x1ac95a=new _0x33098b(_0x53e7d3);_0x1ac95a['set']({'label':m(_0x53e7d3,'Save\x20current\x20revision')}),_0x1ac95a['delegate']('execute')['to'](_0x4a2e17),_0x1ac95a['on']('execute',()=>{this['_showDialog']();}),_0x1d4633['children']['add'](_0x1ac95a),_0x2db22d['items']['add'](_0x1d4633);const _0x5447a3=new _0x55a266(_0x53e7d3,_0x4a2e17),_0x467f72=new _0x33098b(_0x53e7d3);return _0x467f72['set']({'label':m(_0x53e7d3,'Open\x20revision\x20history')}),_0x467f72['delegate']('execute')['to'](_0x4a2e17),_0x467f72['on']('execute',()=>{_0x1499e1['config']['get']('revisionHistory')['showRevisionViewerCallback']();}),_0x5447a3['children']['add'](_0x467f72),_0x2db22d['items']['add'](_0x5447a3),_0x4a2e17['panelView']['children']['add'](_0x2db22d),_0x4a2e17;}['_showDialog'](){const _0x48064f=this['editor'],_0x36e158=_0x48064f['locale'],_0x3b4b0d=_0x48064f['plugins']['get']('Dialog'),_0x337e1a=_0x48064f['plugins']['get']('RevisionTracker');function _0x512e68(_0x33a149){_0x48064f['config']['get']('revisionHistory.requireRevisionName')&&''===_0x33a149['revisionName']?_0x33a149['revisionNameInputView']['errorText']=m(_0x36e158,'The\x20revision\x20name\x20cannot\x20be\x20empty.'):(_0x48064f['plugins']['get'](l)['saveRevision']({'name':_0x33a149['revisionName']}),_0x3b4b0d['hide']());}this['_saveRevisionFormView']||(this['_createSaveRevisionFormView'](),this['_saveRevisionFormView']['on']('submit',()=>_0x512e68(this['_saveRevisionFormView']))),this['_saveRevisionFormView']['reset'](),_0x3b4b0d['show']({'id':'revisionSave','title':m(_0x36e158,'Save\x20current\x20revision'),'isModal':!0x0,'content':this['_saveRevisionFormView'],'actionButtons':[{'label':m(_0x48064f['locale'],'Cancel'),'withText':!0x0,'onExecute':()=>_0x3b4b0d['hide']()},{'label':m(_0x48064f['locale'],'Accept'),'class':'ck-button-action','withText':!0x0,'onCreate'(_0x340342){_0x340342['bind']('isEnabled')['to'](_0x337e1a,'isReady',_0x337e1a,'isEnabled',_0x48064f,'isReadOnly',(_0x1fe563,_0x23e33c,_0x3c9e24)=>_0x1fe563&&_0x23e33c&&!_0x3c9e24);},'onExecute':()=>_0x512e68(this['_saveRevisionFormView'])}]});}['_createSaveRevisionFormView'](){const _0x30b739=this['editor'],_0x56158d=_0x30b739['locale'];this['_saveRevisionFormView']=new ns(_0x56158d,_0x30b739['config']['get']('revisionHistory.requireRevisionName')),this['_saveRevisionFormView']['render']();}}class X extends _0x21a70e{['changeId'];['_model'];constructor(_0x325ddb,_0x3160eb){super(_0x325ddb),this['_model']=_0x3160eb,this['changeId']=_0x3160eb['id'];const _0x3915f3=this['bindTemplate'],_0x44f23a=m(_0x325ddb,_0x3160eb['data']['isSuggestion']?'Suggested\x20by':'add'==_0x3160eb['type']?'Added\x20by':'Removed\x20by');this['set']('type',_0x3160eb['type']),this['setTemplate']({'tag':'div','attributes':{'class':['ck-annotation','ck-revision-change',_0x3915f3['to']('type',_0x540ca5=>'ck-revision-change__'+_0x540ca5)],'tabindex':-0x1},'children':[{'tag':'span','children':[{'tag':'span','attributes':{'class':['ck-revision-change__label']},'children':[{'text':_0x44f23a}]},{'text':'\x20'+_0x3160eb['author']['name']}]}]});}['focus'](){this['element']['focus']();}}class r extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0x4c7a34(){['id'];['author'];['type'];['data'];['rootName'];constructor(_0x4f465e){super(),this['id']=_0x4f465e['id']||_0x22b130(),this['author']=_0x4f465e['author'],this['type']=_0x4f465e['type'],this['data']=_0x4f465e['data']||{},this['rootName']=_0x4f465e['rootName'],this['set']('createdAt',_0x4f465e['createdAt']);}['toJSON'](){return{'id':this['id'],'authorId':this['author']['id'],'type':this['type'],'data':this['data'],'createdAt':this['createdAt']};}}class f{['newRevisionId'];['oldRevisionId'];['changes'];constructor(_0x46612e,_0x23e292){this['newRevisionId']=_0x46612e,this['oldRevisionId']=_0x23e292,this['changes']=new _0xb59600();}['_setChanges'](_0x4efb66){for(const _0x46176c of _0x4efb66)this['changes']['add'](_0x46176c);}}const Y={'c':_0x35266d,'a':_0x53c0fe,'e':_0x5cfb09,'r':_0x5b34ed,'u':_0x4cb63c};class d extends _0x495045{['repository'];['adapter'];['_activeViewTarget'];['_changeView'];['_changeIdToChange'];['_balloon'];static get['pluginName'](){return'RevisionViewer';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x48e3ae,_0x575c14,j];}constructor(_0x2e4153){super(_0x2e4153),this['repository']=this['editor']['plugins']['get']('RevisionsRepository'),this['set']('activeChange',null),this['set']('activeView',null),this['_activeViewTarget']=null,this['set']('diff',null),this['set']('isReady',!0x1),this['set']('isEnabled',!0x0),this['on']('change:isEnabled',(_0x141e86,_0x4c512d,_0x1b92d9)=>{this['activeChange']=null,this['activeView']=null,this['editor']['editing']['view']['change'](_0x263267=>{for(const _0x423194 of this['editor']['editing']['view']['document']['roots'])_0x1b92d9?_0x263267['removeClass']('ck-editor__editable__overlay',_0x423194):_0x263267['addClass']('ck-editor__editable__overlay',_0x423194);});}),this['bind']('isNavigationMode')['to'](this,'activeChange',_0x3365dc=>null!==_0x3365dc),this['bind']('currentChangeNumber')['to'](this,'isReady',this,'diff',this,'activeChange',(_0x2191fe,_0x2eaa93,_0x3095cd)=>_0x2191fe&&_0x3095cd?_0x2eaa93['changes']['getIndex'](_0x3095cd):0x0),this['bind']('numberOfChanges')['to'](this,'isReady',this,'diff',(_0x22c348,_0x21133e)=>_0x22c348?_0x21133e['changes']['length']:0x0),this['_changeView']=null,this['_changeIdToChange']=new Map(),this['adapter']=null,this['_balloon']=this['editor']['plugins']['get'](_0x575c14);}['init'](){const _0x4bfe99=this['editor'],_0x4fcca0=new yt(_0x4bfe99,{'direction':'backward'}),_0x2bd62a=new yt(_0x4bfe99,{'direction':'forward'});(_0x4bfe99['commands']['add']('showPreviousChange',_0x4fcca0),_0x4bfe99['commands']['add']('showNextChange',_0x2bd62a),_0x4bfe99['commands']['add']('restoreRevision',new _t(_0x4bfe99)),this['on']('change:numberOfChanges',()=>{_0x4fcca0['refresh'](),_0x2bd62a['refresh']();}),this['_setConversion'](),this['_initInteractions'](),_0x4bfe99['enableReadOnlyMode']('revision-viewer'),_0x4bfe99['plugins']['has']('WidgetToolbarRepository'))&&_0x4bfe99['plugins']['get']('WidgetToolbarRepository')['forceDisabled']('revision-viewer');}async['getRevisionData'](_0x26ddba){await this['loadRevisionData'](_0x26ddba);const _0x5bf163={};for(const _0x4e6dff in _0x26ddba['diffData']){if(_0x26ddba['diffData'][_0x4e6dff]['attachChange']&&!_0x26ddba['diffData'][_0x4e6dff]['attachChange']['isAttached'])continue;const _0x142f6e=this['_removeRevisionMarkers'](JSON['parse'](_0x26ddba['diffData'][_0x4e6dff]['insertions'])),_0x3ad14a=this['editor']['editing']['view']['document'],_0x28be0d=new _0x836cbc(_0x3ad14a,_0x142f6e['map'](_0x3834de=>this['_getViewObj'](_0x3834de)));this['editor']['data']['processor']['useFillerType']('marked'),_0x5bf163[_0x4e6dff]=this['editor']['data']['processor']['toData'](_0x28be0d),this['editor']['data']['processor']['useFillerType']('default');}return _0x5bf163;}async['getRevisionRootsAttributes'](_0x21806e){await this['loadRevisionData'](_0x21806e);const _0x255a40={};for(const _0x310f17 in _0x21806e['diffData'])_0x21806e['diffData'][_0x310f17]['attachChange']&&!_0x21806e['diffData'][_0x310f17]['attachChange']['isAttached']||(_0x255a40[_0x310f17]=_0x21806e['diffData'][_0x310f17]['attributesAfter']||{});return _0x255a40;}['_removeRevisionMarkers'](_0x558fe6){return(_0x558fe6=_0x558fe6['filter'](_0x329372=>!_0x329372['name']||'revision-start'!==_0x329372['name']&&'revision-end'!==_0x329372['name']))['forEach'](_0x206b93=>{'string'!=typeof _0x206b93&&(_0x206b93['children']=this['_removeRevisionMarkers'](_0x206b93['children']),_0x206b93['attributes']=_0x206b93['attributes']['filter'](_0x51ee76=>!_0x51ee76[0x0]['startsWith']('data-revision-')));}),_0x558fe6;}async['compare'](_0x1a451d,_0x1594cb,_0x5de747=!0x1){if(!this['isEnabled'])return;const _0x4e8191=this['diff'],_0x1d8e4f=this['repository'],_0x4e173e='string'==typeof _0x1a451d?_0x1d8e4f['getRevision'](_0x1a451d):_0x1a451d,_0xb24dae='string'==typeof _0x1594cb?_0x1d8e4f['getRevision'](_0x1594cb):_0x1594cb,_0x4ea143=_0x4e173e['id'],_0x1ae81d=_0xb24dae?_0xb24dae['id']:null;if(!_0x5de747&&this['diff']&&this['diff']['newRevisionId']===_0x4ea143&&this['diff']['oldRevisionId']===_0x1ae81d)return Promise['resolve']();this['isReady']=!0x1,this['activeView']=null,this['activeChange']=null,this['diff']=new f(_0x4ea143,_0x1ae81d);const _0x542aa4=this['_getRevisionsRange'](_0x4e173e,_0xb24dae,!0x0)['map'](_0x1ae6d0=>this['loadRevisionData'](_0x1ae6d0));return _0x542aa4['push'](new Promise(_0x1e7e7a=>{setTimeout(_0x1e7e7a,0x14);})),Promise['all'](_0x542aa4)['then'](()=>{if(!this['isEnabled'])return;this['_cleanUp']();const _0x29c481=this['_getDiff'](_0x4ea143,_0x1ae81d);for(const _0x42dd8a of _0x29c481['changes'])this['_changeIdToChange']['set'](_0x42dd8a['id'],_0x42dd8a);this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x44bd3a=>{for(const _0x58521b of this['editor']['model']['document']['getRootNames']())_0x44bd3a['detachRoot'](_0x58521b);for(const _0x882c40 of Object['keys'](_0x29c481['model'])){const _0x4c1c32=_0x44bd3a['addRoot'](_0x882c40);for(const _0x3c3a71 of Object['keys'](_0x29c481['attributes'][_0x882c40]))_0x44bd3a['setAttribute'](_0x3c3a71,_0x29c481['attributes'][_0x882c40][_0x3c3a71],_0x4c1c32);_0x44bd3a['insert'](_0x29c481['model'][_0x882c40],_0x4c1c32,0x0);}}),this['diff']['_setChanges'](this['_sortAndFilterDiffChanges'](_0x29c481['changes'])),this['isReady']=!0x0;})['catch'](_0x48dfa3=>{console['error'](_0x48dfa3),this['_cleanUp'](),_0x4e8191&&(this['diff']=_0x4e8191),this['isReady']=!0x0;});}['addRevisionData'](_0x47c567,_0xa60ff5){const _0x5f0a15=this['repository']['createRevision'](_0x47c567);return _0x5f0a15['on']('_update',(_0x45c4ad,_0x326159,_0x467c10)=>_0xa60ff5(_0x326159,_0x467c10,_0x5f0a15)),this['repository']['addRevision'](_0x5f0a15),_0x5f0a15;}['loadRevisionData'](_0x55bb76){if(!_0x55bb76||_0x55bb76['diffData'])return Promise['resolve']();{const _0x1e3c06=this['editor']['config']['get']('collaboration.channelId');return this['adapter']['getRevision']({'channelId':_0x1e3c06,'revisionId':_0x55bb76['id']})['then'](_0x3adcd1=>{_0x55bb76['_update']({'diffData':_0x3adcd1['diffData']},!0x0);});}}['_cleanUp'](){this['activeChange']=null,this['_cleanMarkers'](),this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=null,this['_changeIdToChange']['clear'](),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x8d2b17=>{for(const _0x581be0 of this['editor']['model']['document']['getRootNames']())_0x8d2b17['detachRoot'](_0x581be0);});}['_sortAndFilterDiffChanges'](_0x4d5cc5){const _0x3f824b=[],_0x164da9=new Map();for(const _0x2f63b6 of this['editor']['model']['document']['getRootNames']()){const _0x2a72e7=this['editor']['editing']['view']['getDomRoot'](_0x2f63b6);if(!_0x2a72e7)continue;const _0x268902=_0x2a72e7['getClientRects']()['item'](0x0);_0x268902&&(_0x3f824b['push'](_0x2f63b6),_0x164da9['set'](_0x2f63b6,_0x268902));}return _0x3f824b['sort']((_0x492aa4,_0x47a74b)=>{const _0x422c8f=_0x164da9['get'](_0x492aa4),_0x5ca1b6=_0x164da9['get'](_0x47a74b);return _0x422c8f['y']-_0x5ca1b6['y']||_0x422c8f['x']-_0x5ca1b6['x'];}),(_0x4d5cc5=_0x4d5cc5['filter'](_0x405fc5=>_0x3f824b['includes'](_0x405fc5['rootName'])))['sort']((_0x3466ba,_0x40fb51)=>_0x3f824b['indexOf'](_0x3466ba['rootName'])-_0x3f824b['indexOf'](_0x40fb51['rootName'])),_0x4d5cc5;}['_makeTape'](_0x3841a8){const _0xb8db66=Array['from'](_0x3841a8['markers'])['filter'](([_0x46839f,_0x17650b])=>_0x46839f['startsWith']('revision:')&&!_0x17650b['isCollapsed']),_0x362e4e=Array['from'](this['editor']['model']['createRangeIn'](_0x3841a8)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0xb8db66['length'])for(const _0x35ae8b of _0x362e4e){const [_0x32a2a0,_0x4df771]=_0xb8db66[0x0],[,_0x448c8f,_0x38e0e3]=_0x32a2a0['split'](':');if(_0x4df771['end']['isEqual'](_0x35ae8b['nextPosition'])&&_0xb8db66['shift'](),(_0x35ae8b['previousPosition']['isEqual'](_0x4df771['start'])||_0x35ae8b['previousPosition']['isAfter'](_0x4df771['start']))&&('insertion'==_0x448c8f?_0x35ae8b['isAdded']={'userId':_0x38e0e3}:'deletion'==_0x448c8f&&(_0x35ae8b['isRemoved']={'userId':_0x38e0e3})),0x0==_0xb8db66['length'])break;}return _0x362e4e;}['_refreshStartEndIndex'](_0x88464b){const _0x27de33=new Map();for(let _0x451c45=0x0;_0x451c45<_0x88464b['length'];_0x451c45++)'text'===_0x88464b[_0x451c45]['type']?(_0x88464b[_0x451c45]['item']['startIndex']=_0x451c45,_0x88464b[_0x451c45]['item']['endIndex']=_0x451c45):('elementStart'===_0x88464b[_0x451c45]['type']?_0x88464b[_0x451c45]['item']['startIndex']=_0x451c45:'elementEnd'===_0x88464b[_0x451c45]['type']&&(_0x88464b[_0x451c45]['item']['endIndex']=_0x451c45),_0x27de33['set'](_0x88464b[_0x451c45]['id'],_0x451c45));for(const _0x183572 of _0x27de33['values']())'elementStart'===_0x88464b[_0x183572]['type']?_0x88464b[_0x183572]['item']['endIndex']=_0x27de33['get'](_0x88464b[_0x183572]['pairId']):'elementEnd'===_0x88464b[_0x183572]['type']&&(_0x88464b[_0x183572]['item']['startIndex']=_0x27de33['get'](_0x88464b[_0x183572]['pairId']));}['_processTape'](_0x2e5b6d){for(let _0x16e1e9=0x0;_0x16e1e9<_0x2e5b6d['length'];_0x16e1e9++){if('elementStart'===_0x2e5b6d[_0x16e1e9]['type'])_0x2e5b6d[_0x16e1e9]['item']['startIndex']=_0x16e1e9;else{if('elementEnd'===_0x2e5b6d[_0x16e1e9]['type']){_0x2e5b6d[_0x16e1e9]['item']['endIndex']=_0x16e1e9;const _0x229851=_0x2e5b6d[_0x16e1e9]['item']['startIndex'];_0x2e5b6d[_0x229851]['pairId']=_0x2e5b6d[_0x16e1e9]['id'],_0x2e5b6d[_0x16e1e9]['pairId']=_0x2e5b6d[_0x229851]['id'];}else _0x2e5b6d[_0x16e1e9]['item']['startIndex']=_0x16e1e9,_0x2e5b6d[_0x16e1e9]['item']['endIndex']=_0x16e1e9,_0x2e5b6d[_0x16e1e9]['pairId']=null;}_0x2e5b6d[_0x16e1e9]['markersStart']||(_0x2e5b6d[_0x16e1e9]['markersStart']=[],_0x2e5b6d[_0x16e1e9]['markersEnd']=[]);}}['_markInsertions'](_0x15626d,_0x1fd692){const _0x4d5ee3=_0x15626d['filter'](_0x2d6fb5=>!_0x2d6fb5['isAdded']);for(let _0x488efe=0x0;_0x488efe<_0x1fd692['length'];_0x488efe++)_0x1fd692[_0x488efe]['isAdded']&&(_0x4d5ee3[_0x488efe]['isAdded']=_0x1fd692[_0x488efe]['isAdded']);}['_makeModelFromViewString'](_0x3b1e9b){const _0x2462cb=JSON['parse'](_0x3b1e9b),_0x349f00=this['editor']['editing']['view']['document'],_0x3f40ce=new _0x836cbc(_0x349f00,_0x2462cb['map'](_0x452e01=>this['_getViewObj'](_0x452e01)));return this['editor']['data']['toModel'](_0x3f40ce);}['_getViewObj'](_0x57af62){const _0x142d1d=this['editor']['editing']['view']['document'];if('string'==typeof _0x57af62)return new _0x263cf6(_0x142d1d,_0x57af62);{const _0x542d9e=_0x57af62['children']['map'](_0xcdf013=>this['_getViewObj'](_0xcdf013));return new(Y[_0x57af62['type']]||_0x2b857d)(_0x142d1d,_0x57af62['name'],_0x57af62['attributes'],_0x542d9e);}}['_getDiff'](_0x54c5d3,_0x2ab68c=null){const _0x4381b3=this['repository']['getRevision'](_0x54c5d3),_0x5236a6=_0x2ab68c?this['repository']['getRevision'](_0x2ab68c):null,_0x2076e3=this['_getRevisionsRange'](_0x4381b3,_0x5236a6),_0x325067=_0x2076e3[_0x2076e3['length']-0x1],_0xd4b0ce=new Map(),_0xadc606={'model':{},'attributes':{},'changes':[]},_0x52bc2b=new Set(),_0x3ce31c=new Map();for(let _0x4b6e10=_0x2076e3['length']-0x1;_0x4b6e10>=0x0;_0x4b6e10--){const _0x27b6f9=_0x2076e3[_0x4b6e10];for(const _0x211129 of Object['keys'](_0x27b6f9['diffData']))if(_0x27b6f9['diffData'][_0x211129]['attachChange']){const _0x527bb9=_0x27b6f9['diffData'][_0x211129]['attachChange'];_0x527bb9['isAttached']?(_0x52bc2b['add'](_0x211129),_0x3ce31c['has'](_0x211129)&&_0x3ce31c['get'](_0x211129)['userId']==_0x527bb9['userId']?_0x3ce31c['delete'](_0x211129):_0x3ce31c['set'](_0x211129,_0x527bb9)):_0x3ce31c['has'](_0x211129)?(_0x52bc2b['delete'](_0x211129),_0x3ce31c['delete'](_0x211129)):(_0x52bc2b['add'](_0x211129),_0x3ce31c['set'](_0x211129,_0x527bb9));}else _0x52bc2b['add'](_0x211129);}for(const _0x25dc4c of _0x52bc2b){const _0x39e346=_0x3ce31c['has'](_0x25dc4c)&&!_0x3ce31c['get'](_0x25dc4c)['isAttached'];let _0x2dd39f=_0x39e346?_0x2076e3['length']-0x1:0x0;const _0x482a4e=_0x39e346?-0x1:0x1;for(;_0x2076e3[_0x2dd39f];){const _0x31546d=_0x2076e3[_0x2dd39f];if(_0x31546d['diffData'][_0x25dc4c]){const _0x46af50=_0x39e346?_0x31546d['diffData'][_0x25dc4c]['attributesBefore']:_0x31546d['diffData'][_0x25dc4c]['attributesAfter'];_0xadc606['attributes'][_0x25dc4c]=_0x46af50?_0x2fbfef(_0x46af50):{};break;}_0x2dd39f+=_0x482a4e;}}for(const _0x580011 of _0x2076e3){_0x580011['model']={};for(const _0x8da65a of _0x580011['authors'])_0xd4b0ce['set'](_0x8da65a['id'],_0x8da65a);for(const _0x50e548 of _0x52bc2b){const _0x14a02a=_0x580011['diffData'][_0x50e548]?_0x580011['diffData'][_0x50e548]['insertions']:'[]',_0x22dab7=_0x580011['diffData'][_0x50e548]?_0x580011['diffData'][_0x50e548]['deletions']:'[]';_0x580011['model'][_0x50e548]={'insertions':this['_makeModelFromViewString'](_0x14a02a),'deletions':this['_makeModelFromViewString'](_0x22dab7)};}}for(const _0x148fff of _0x52bc2b){let _0x5525c1=null,_0xf166ef=0x0;const _0x1774eb=new Map(Array['from'](_0x4381b3['model'][_0x148fff]['insertions']['markers'])['filter'](([_0x2099ca])=>!_0x2099ca['startsWith']('revision:')));let _0x2831bf=0x0;for(const _0x1030b6 of _0x2076e3){const _0x5c97d7=this['_makeTape'](_0x1030b6['model'][_0x148fff]['insertions']);_0x1030b6==_0x4381b3?(_0x5525c1=_0x5c97d7,_0xf166ef=_0x5525c1['length'],_0x5525c1['forEach'](_0x2ac0c3=>{_0x2ac0c3['id']=_0x2831bf++;}),this['_processTape'](_0x5525c1)):this['_markInsertions'](_0x5525c1,_0x5c97d7);const _0x42b706=_0x5525c1['filter'](_0x27157b=>!_0x27157b['isAdded'])['map'](_0x40f2a3=>_0x40f2a3['id']);let _0xab0ee3=0x0;const _0x26fbb8=this['_makeTape'](_0x1030b6['model'][_0x148fff]['deletions']);_0x26fbb8['forEach'](_0x3e5147=>{_0x3e5147['isRemoved']?_0x3e5147['id']=_0xf166ef++:_0x3e5147['id']=_0x42b706[_0xab0ee3++];}),this['_processTape'](_0x26fbb8),this['_setDistance'](_0x5525c1,'isAdded'),this['_setDistance'](_0x26fbb8,'isRemoved'),_0x1030b6==_0x4381b3&&this['_markMarkers'](_0x5525c1,_0x1774eb),_0x5525c1=this['_joinTapes'](_0x5525c1,_0x26fbb8),this['_refreshStartEndIndex'](_0x5525c1),this['_setDistance'](_0x5525c1,'isRemoved');}_0x5525c1=_0x5525c1['filter'](_0x55d2f7=>!(_0x55d2f7['isAdded']&&_0x55d2f7['isRemoved']));const _0x181b9e=new Map(_0x325067['model'][_0x148fff]['deletions']['markers']),_0x158827=new Set(_0x1774eb['keys']());for(const _0x57966b of _0x181b9e['keys']())_0x158827['delete'](_0x57966b);this['_markSuggestions'](_0x5525c1,_0x158827),this['_fixObsoleteTags'](_0x5525c1),_0x5525c1=this['_removeMissingPairs'](_0x5525c1),_0x5525c1=this['_markMismatchedRemovedTags'](_0x5525c1),_0x5525c1=this['_removeUnsupportedChanges'](_0x5525c1);const {root:_0xa6a75a,changes:_0x2f2ff4}=this['_makeModelFromTape'](_0x5525c1,_0xd4b0ce,_0x148fff);_0xadc606['model'][_0x148fff]=_0xa6a75a;const _0x2b1113=_0x3ce31c['get'](_0x148fff);if(_0x2b1113){const _0x40cd3e=_0xd4b0ce['get'](_0x2b1113['userId']),_0x241b12=new r({'author':_0x40cd3e,'type':_0x2b1113['isAttached']?'add':'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x148fff});_0x2f2ff4['unshift'](_0x241b12),_0xadc606['attributes'][_0x148fff]['revisionHistoryAttachChange']=_0x241b12['id'];}_0xadc606['changes']=_0xadc606['changes']['concat'](_0x2f2ff4);}return _0xadc606;}['_markMarkers'](_0x202969,_0x5b4988){for(let _0x25862e=0x0;_0x25862e<_0x202969['length'];_0x25862e++)for(const [_0xb34b4e,_0x27b6f7]of _0x5b4988)_0x27b6f7['start']['isEqual'](_0x202969[_0x25862e]['previousPosition'])&&_0x202969[_0x25862e]['markersStart']['push'](_0xb34b4e),_0x27b6f7['end']['isEqual'](_0x202969[_0x25862e]['nextPosition'])&&_0x202969[_0x25862e]['markersEnd']['push'](_0xb34b4e);}['_joinTapes'](_0xafe2ee,_0x10b76d){let _0x265b97=[],_0x56ce7a=0x0,_0x11ea73=0x0;for(;_0x56ce7a<_0xafe2ee['length']||_0x11ea73<_0x10b76d['length'];){const _0x2d76e0=_0xafe2ee[_0x56ce7a]||{},_0x5425be=_0x10b76d[_0x11ea73]||{};if(_0x2d76e0['id']==_0x5425be['id'])_0x56ce7a++,_0x11ea73++,_0x265b97['push'](_0x2d76e0);else{if(_0x5425be['isRemoved']&&_0x2d76e0['isAdded']){const {commonTape:_0x3b3d89,iEnd:_0x3286cf,jEnd:_0x23b75d}=this['_threeWayMerge'](_0xafe2ee,_0x56ce7a,_0x10b76d,_0x11ea73);_0x265b97=_0x265b97['concat'](_0x3b3d89),_0x56ce7a=_0x3286cf,_0x11ea73=_0x23b75d;}else _0x5425be['isRemoved']?(_0x11ea73++,_0x265b97['push'](_0x5425be)):(_0x56ce7a++,_0x265b97['push'](_0x2d76e0));}}return _0x265b97;}['_markSuggestions'](_0x41c53a,_0x356dbc){const _0x17b502=[];for(let _0x4d102d=0x0;_0x4d102d<_0x41c53a['length'];_0x4d102d++){for(let _0x181da4=0x0;_0x181da4<_0x41c53a[_0x4d102d]['markersStart']['length'];_0x181da4++){const _0x47d170=_0x41c53a[_0x4d102d]['markersStart'][_0x181da4];if(!_0x356dbc['has'](_0x47d170))continue;const {group:_0x573256,type:_0x4aed3f,authorId:_0x5127a4}=_0xaae500(_0x47d170);'revision-suggestion'!=_0x573256||'insertion'!=_0x4aed3f&&'deletion'!=_0x4aed3f||(_0x17b502['unshift']({'type':_0x4aed3f,'name':_0x47d170,'userId':_0x5127a4}),_0x41c53a[_0x4d102d]['markersStart']['splice'](_0x181da4,0x1),_0x181da4--);}_0x49b76c(_0x41c53a[_0x4d102d]);for(let _0x14b1b2=0x0;_0x14b1b2<_0x41c53a[_0x4d102d]['markersEnd']['length'];_0x14b1b2++){const _0x48ad4b=_0x41c53a[_0x4d102d]['markersEnd'][_0x14b1b2];if(!_0x356dbc['has'](_0x48ad4b))continue;const {group:_0x4ccd0f,type:_0x1f93dc}=_0xaae500(_0x48ad4b);if('revision-suggestion'!=_0x4ccd0f||'insertion'!=_0x1f93dc&&'deletion'!=_0x1f93dc)continue;_0x41c53a[_0x4d102d]['markersEnd']['splice'](_0x14b1b2,0x1),_0x14b1b2--;const _0x3345bf=_0x17b502['findIndex'](_0x55b391=>_0x55b391['name']==_0x48ad4b);_0x3345bf>-0x1&&_0x17b502['splice'](_0x3345bf,0x1);}}function _0xaae500(_0x26c14e){const _0x4707c6=_0x26c14e['split'](':');return{'group':_0x4707c6[0x0],'type':_0x4707c6[0x1],'subType':_0x4707c6['length']>=0x5?_0x4707c6[0x2]:null,'id':_0x4707c6['length']<0x5?_0x4707c6[0x2]:_0x4707c6[0x3],'authorId':_0x4707c6['length']<0x5?_0x4707c6[0x3]:_0x4707c6[0x4],'markerCount':0x6==_0x4707c6['length']?_0x4707c6[0x5]:null};}function _0x49b76c(_0xe23a5a){for(let _0x563e8a=0x0;_0x563e8a<_0x17b502['length'];_0x563e8a++){if(_0xe23a5a['isAdded']&&'insertion'==_0x17b502[_0x563e8a]['type'])return _0xe23a5a['isAddSuggestion']=_0x17b502[_0x563e8a],void delete _0xe23a5a['isAdded'];if(!_0xe23a5a['isAdded']&&!_0xe23a5a['isRemoved']&&'deletion'==_0x17b502[_0x563e8a]['type'])return void(_0xe23a5a['isRemoveSuggestion']=_0x17b502[_0x563e8a]);}}}['_setDistance'](_0x3789e2,_0x169925){let _0x1a23b9=0x0,_0x55260c=!0x1;const _0x35c6fa=new Map();for(const _0x5c3ec9 of _0x3789e2)_0x5c3ec9[_0x169925]?_0x55260c&&(_0x1a23b9++,_0x55260c=!0x1):(_0x1a23b9++,_0x55260c=!0x0),_0x35c6fa['set'](_0x5c3ec9['id'],_0x1a23b9);for(let _0x4f4808=0x0;_0x4f4808<_0x3789e2['length'];_0x4f4808++){if('isRemoved'==_0x169925&&_0x3789e2[_0x4f4808]['isAdded']||'isAdded'==_0x169925&&_0x3789e2[_0x4f4808]['isRemoved'])continue;if('text'==_0x3789e2[_0x4f4808]['type']){_0x3789e2[_0x4f4808]['distance']=0x0;continue;}const _0x16f18b=_0x35c6fa['get'](_0x3789e2[_0x4f4808]['pairId']),_0x9ee178=_0x35c6fa['get'](_0x3789e2[_0x4f4808]['id']);_0x3789e2[_0x4f4808]['distance']=_0x16f18b-_0x9ee178;}}['_getRevisionsRange'](_0x20e1e5,_0x1da669,_0x426043=!0x1){const _0x40c808=[];let _0x5c2471=this['repository']['getIndex'](_0x20e1e5),_0x29e8af=this['repository']['getIndex'](_0x1da669);for(-0x1==_0x29e8af&&(_0x29e8af=this['repository']['_revisions']['length'],_0x426043=!0x1);_0x5c2471<_0x29e8af;)_0x40c808['push'](this['repository']['getRevision'](_0x5c2471)),_0x5c2471++;return _0x426043&&_0x40c808['push'](this['repository']['getRevision'](_0x5c2471)),_0x40c808;}['_threeWayMerge'](_0x423e26,_0x12408a,_0x5dedf0,_0x15749c){const _0x18dde7=this['editor']['model']['schema'];let _0x15a8db=_0x12408a;for(;_0x423e26[_0x15a8db]&&_0x423e26[_0x15a8db]['isAdded'];)_0x15a8db++;let _0x2d7e8b=_0x15749c;for(;_0x5dedf0[_0x2d7e8b]&&_0x5dedf0[_0x2d7e8b]['isRemoved'];)_0x2d7e8b++;_0x4e98d4(_0x423e26,_0x12408a,_0x15a8db),_0x4e98d4(_0x5dedf0,_0x15749c,_0x2d7e8b);const _0x53c710=_0x5dedf0['slice'](_0x15749c,_0x2d7e8b)['concat'](_0x423e26['slice'](_0x12408a,_0x15a8db));return _0x53c710['sort']((_0x2db2b3,_0x39eb2d)=>_0x2db2b3['side']!=_0x39eb2d['side']?_0x2db2b3['side']-_0x39eb2d['side']:_0x2db2b3['level']!=_0x39eb2d['level']?_0x2db2b3['level']-_0x39eb2d['level']:_0x2db2b3['distance']!=_0x39eb2d['distance']?_0x39eb2d['distance']-_0x2db2b3['distance']:!!_0x2db2b3['isAdded']!=!!_0x39eb2d['isAdded']?-0x1==_0x2db2b3['side']||0x0==_0x2db2b3['side']?_0x2db2b3['isAdded']?-0x1:0x1:_0x2db2b3['isAdded']?0x1:-0x1:_0x2db2b3['index']-_0x39eb2d['index']),{'commonTape':_0x53c710,'iEnd':_0x15a8db,'jEnd':_0x2d7e8b};function _0x4e98d4(_0x40face,_0x23ffb5,_0xf9b5a1){let _0x2c10fe=-0x1,_0x1d13a1=Number['POSITIVE_INFINITY'],_0x39a5fd=!0x0;for(let _0x3ed44f=_0x23ffb5;_0x3ed44f<_0xf9b5a1;_0x3ed44f++)if(_0x18dde7['isInline'](_0x40face[_0x3ed44f]['item'])||(_0x39a5fd=!0x1),_0x40face[_0x3ed44f]['item']['startIndex']<_0x23ffb5&&(_0x2c10fe=_0x3ed44f),_0x40face[_0x3ed44f]['item']['endIndex']>=_0xf9b5a1){_0x1d13a1=_0x3ed44f;break;}_0x39a5fd&&(_0x2c10fe=_0xf9b5a1-0x1);for(let _0x22f11c=_0x23ffb5;_0x22f11c<_0xf9b5a1;_0x22f11c++)_0x40face[_0x22f11c]['side']=_0x22f11c<=_0x2c10fe?-0x1:_0x22f11c<_0x1d13a1?0x0:0x1,_0x40face[_0x22f11c]['index']=_0x22f11c;let _0x1f3fc3=0x0;for(let _0x36bb67=_0x23ffb5;_0x36bb67<=_0x2c10fe;_0x36bb67++)0x0==_0x40face[_0x36bb67]['distance']?_0x40face[_0x36bb67]['level']=_0x1f3fc3:(_0x1f3fc3++,_0x40face[_0x36bb67]['level']=_0x1f3fc3,_0x1f3fc3++);for(let _0x3044d9=_0x23ffb5;_0x3044d9<_0xf9b5a1;_0x3044d9++)0x0==_0x40face[_0x3044d9]['side']&&(_0x40face[_0x3044d9]['level']=_0x1f3fc3);_0x1f3fc3=0x0;for(let _0xf1875a=_0xf9b5a1-0x1;_0xf1875a>=_0x1d13a1;_0xf1875a--)0x0==_0x40face[_0xf1875a]['distance']?_0x40face[_0xf1875a]['level']=_0x1f3fc3:(_0x1f3fc3--,_0x40face[_0xf1875a]['level']=_0x1f3fc3,_0x1f3fc3--);}}['_fixObsoleteTags'](_0x48d347){const _0x1c39b6=new Map(),_0x5bbdfa=this['editor']['model']['schema'];for(let _0x4b4f79=0x1;_0x4b4f79<_0x48d347['length'];_0x4b4f79++){let _0x56d4f3,_0x3e7426,_0x312e30;const _0x11fd90=_0x48d347[_0x4b4f79],_0x3e0af5=_0x48d347[_0x4b4f79-0x1];if('text'==_0x11fd90['type'])continue;if(_0x11fd90['type']!=_0x3e0af5['type'])continue;if(!_0x5bbdfa['isBlock'](_0x3e0af5['item'])||_0x5bbdfa['isLimit'](_0x3e0af5['item']))continue;if(!_0x5bbdfa['isBlock'](_0x11fd90['item'])||_0x5bbdfa['isLimit'](_0x11fd90['item']))continue;if((_0x48d347[_0x4b4f79]['isAdded']||_0x48d347[_0x4b4f79]['isAddSuggestion'])&&_0x48d347[_0x4b4f79-0x1]['isRemoved'])_0x56d4f3=_0x48d347[_0x4b4f79],_0x3e7426=_0x48d347[_0x4b4f79-0x1],_0x312e30=_0x4b4f79-0x1;else{if(!_0x48d347[_0x4b4f79]['isRemoved']||!_0x48d347[_0x4b4f79-0x1]['isAdded']&&!_0x48d347[_0x4b4f79-0x1]['isAddSuggestion'])continue;_0x56d4f3=_0x48d347[_0x4b4f79-0x1],_0x3e7426=_0x48d347[_0x4b4f79],_0x312e30=_0x4b4f79;}const _0x2355ce=_0x56d4f3['level']==_0x3e7426['level'],_0x454673=Math['abs'](_0x56d4f3['level'])<Math['abs'](_0x3e7426['level'])&&0x0==_0x3e7426['distance'];(_0x2355ce||_0x454673)&&(_0x1c39b6['set'](_0x3e7426['id'],_0x56d4f3['id']),_0x48d347['splice'](_0x312e30,0x1),_0x4b4f79--,_0x56d4f3['isAdded']=!0x1);}for(let _0x133fed=0x0;_0x133fed<_0x48d347['length'];_0x133fed++)_0x1c39b6['has'](_0x48d347[_0x133fed]['pairId'])&&(_0x48d347[_0x133fed]['pairId']=_0x1c39b6['get'](_0x48d347[_0x133fed]['pairId']));}['_removeMissingPairs'](_0x5cf2aa){const _0x5bd8b6=new Set(_0x5cf2aa['map'](_0x21b4da=>_0x21b4da['id']));for(let _0x43413b=0x0;_0x43413b<_0x5cf2aa['length'];_0x43413b++)_0x5bd8b6['has'](_0x5cf2aa[_0x43413b]['pairId'])||0x0==_0x5cf2aa[_0x43413b]['distance']||(_0x5cf2aa[_0x43413b]['isIncorrect']=!0x0);return _0x5cf2aa['filter'](_0x18fd2b=>!_0x18fd2b['isIncorrect']);}['_markMismatchedRemovedTags'](_0x589d24){const _0x4d288d=new Set();for(let _0x159df7=0x0;_0x159df7<_0x589d24['length'];_0x159df7++){if(_0x4d288d['has'](_0x589d24[_0x159df7]['id'])&&_0x589d24[_0x159df7]['isRemoved']&&(_0x589d24[_0x159df7]['isIncorrect']=!0x0),_0x589d24[_0x159df7]['isIncorrect'])continue;if(0x0==_0x589d24[_0x159df7]['distance'])continue;if('elementStart'!=_0x589d24[_0x159df7]['type'])continue;if(null==_0x589d24[_0x159df7]['pairId'])continue;let _0x16fc44=_0x159df7+0x1,_0x4d5b14=0x0;for(;_0x589d24[_0x16fc44]['id']!=_0x589d24[_0x159df7]['pairId'];)'elementStart'==_0x589d24[_0x16fc44]['type']?_0x4d5b14++:'elementEnd'==_0x589d24[_0x16fc44]['type']&&_0x4d5b14--,_0x16fc44++;if(0x0!=_0x4d5b14){if(_0x589d24[_0x159df7]['isRemoved'])_0x589d24[_0x159df7]['isIncorrect']=!0x0;else{for(;_0x16fc44!=_0x159df7;)_0x589d24[_0x16fc44]['isRemoved']&&0x0!=_0x589d24[_0x16fc44]['distance']&&(_0x589d24[_0x16fc44]['isIncorrect']=!0x0,_0x4d288d['add'](_0x589d24[_0x16fc44]['pairId'])),_0x16fc44--;}}}return _0x589d24['filter'](_0x5e7232=>!_0x5e7232['isIncorrect']);}['_removeUnsupportedChanges'](_0xac6bcd){const _0x251528=this['editor']['model']['schema'];for(let _0x5f25b2=0x0;_0x5f25b2<_0xac6bcd['length'];_0x5f25b2++){if(!(_0xac6bcd[_0x5f25b2]['isAdded']||_0xac6bcd[_0x5f25b2]['isAddSuggestion']||_0xac6bcd[_0x5f25b2]['isRemoved']||_0xac6bcd[_0x5f25b2]['isRemoveSuggestion']))continue;if(0x0==_0xac6bcd[_0x5f25b2]['distance'])continue;const _0x3902d3=_0xac6bcd[_0x5f25b2]['item'];_0x251528['isBlock'](_0x3902d3)||_0x251528['isLimit'](_0x3902d3)||(_0xac6bcd[_0x5f25b2]['isAdded']&&delete _0xac6bcd[_0x5f25b2]['isAdded'],_0xac6bcd[_0x5f25b2]['isAddSuggestion']&&delete _0xac6bcd[_0x5f25b2]['isAddSuggestion'],_0xac6bcd[_0x5f25b2]['isRemoveSuggestion']&&delete _0xac6bcd[_0x5f25b2]['isRemoveSuggestion'],_0xac6bcd[_0x5f25b2]['isRemoved']&&(_0xac6bcd[_0x5f25b2]['isIncorrect']=!0x0));}return _0xac6bcd['filter'](_0xdd69c8=>!_0xdd69c8['isIncorrect']);}['_makeModelFromTape'](_0x141513,_0x4ffd6d,_0x31dfba){const _0x4c15ff=new mt(),_0x420415=[],_0x3c4994=new Map(),_0x2b1912=this['editor']['model'],_0x173ba6=_0x2b1912['schema'],_0x8ee595=[_0x4c15ff],_0x3d0288={},_0x3c9a5d={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x59f8a5=null;const _0x446aaa=[0x0];for(let _0x3e6d1d=0x0;_0x3e6d1d<_0x141513['length'];_0x3e6d1d++)if('elementStart'===_0x141513[_0x3e6d1d]['type']){_0x141513[_0x3e6d1d]['previousPosition']=_0x2b1912['createPositionFromPath'](_0x4c15ff,_0x446aaa);const _0x4eed28=new ft(_0x141513[_0x3e6d1d]['item']['name'],_0x141513[_0x3e6d1d]['item']['getAttributes']());_0x8ee595[0x0]['_appendChild'](_0x4eed28),_0x446aaa['push'](0x0),_0x8ee595['unshift'](_0x4eed28),_0x141513[_0x3e6d1d]['nextPosition']=_0x2b1912['createPositionFromPath'](_0x4c15ff,_0x446aaa);}else'elementEnd'===_0x141513[_0x3e6d1d]['type']?(_0x8ee595['shift'](),_0x141513[_0x3e6d1d]['previousPosition']=_0x2b1912['createPositionFromPath'](_0x4c15ff,_0x446aaa),_0x446aaa['pop'](),_0x446aaa[_0x446aaa['length']-0x1]++,_0x141513[_0x3e6d1d]['nextPosition']=_0x2b1912['createPositionFromPath'](_0x4c15ff,_0x446aaa)):(_0x141513[_0x3e6d1d]['previousPosition']=_0x2b1912['createPositionFromPath'](_0x4c15ff,_0x446aaa),_0x59f8a5?_0x59f8a5['_data']+=_0x141513[_0x3e6d1d]['item']['data']:_0x59f8a5=new wt(_0x141513[_0x3e6d1d]['item']['data'],_0x141513[_0x3e6d1d]['item']['getAttributes']()),_0x141513[_0x3e6d1d+0x1]&&'text'===_0x141513[_0x3e6d1d+0x1]['type']&&_0x560f96(_0x59f8a5,_0x141513[_0x3e6d1d+0x1]['item'])||(_0x8ee595[0x0]['_appendChild'](_0x59f8a5),_0x59f8a5=null),_0x446aaa[_0x446aaa['length']-0x1]+=_0x141513[_0x3e6d1d]['item']['offsetSize'],_0x141513[_0x3e6d1d]['nextPosition']=_0x2b1912['createPositionFromPath'](_0x4c15ff,_0x446aaa));for(let _0x4d4803=0x0;_0x4d4803<_0x141513['length'];_0x4d4803++){const _0x217228=_0x141513[_0x4d4803]['previousPosition'],_0xb21da1=_0x141513[_0x4d4803]['nextPosition'];for(const _0x1c9b3c of _0x141513[_0x4d4803]['markersStart'])_0x3c4994['set'](_0x1c9b3c,{'start':_0x217228,'end':null});_0x4a31f3('isRemoveSuggestion',_0x4d4803,_0x217228,_0xb21da1),_0x4a31f3('isAddSuggestion',_0x4d4803,_0x217228,_0xb21da1),_0x4a31f3('isRemoved',_0x4d4803,_0x217228,_0xb21da1),_0x4a31f3('isAdded',_0x4d4803,_0x217228,_0xb21da1);for(const _0x26e8cf of _0x141513[_0x4d4803]['markersEnd']){_0x3c4994['get'](_0x26e8cf)['end']=_0xb21da1;}}for(const [_0x233481,_0x2584c8]of _0x3c4994){const _0x1b2dcf=this['editor']['model']['createRange'](_0x2584c8['start'],_0x2584c8['end']);_0x4c15ff['markers']['set'](_0x233481,_0x1b2dcf);}return _0x420415['sort']((_0x54743a,_0x567ca3)=>{const _0x33d046=_0x4c15ff['markers']['get']('revision:'+_0x54743a['id']),_0xbafe5e=_0x4c15ff['markers']['get']('revision:'+_0x567ca3['id']);return _0x33d046['start']['isBefore'](_0xbafe5e['start'])?-0x1:_0x33d046['start']['isAfter'](_0xbafe5e['start'])?0x1:_0x33d046['end']['isBefore'](_0xbafe5e['end'])?-0x1:_0x33d046['end']['isAfter'](_0xbafe5e['end'])?0x1:'add'===_0x54743a['type']?-0x1:0x1;}),{'root':_0x4c15ff,'changes':_0x420415};function _0x4a31f3(_0x5943ff,_0x380d60,_0x43efeb,_0x2d1b46){const _0x401b94=!!_0x141513[_0x380d60][_0x5943ff],_0x52aff8=_0x401b94?_0x141513[_0x380d60][_0x5943ff]['userId']:null,_0x6e2c58=_0x380d60===_0x141513['length']-0x1,_0x28a32b=_0x3c9a5d[_0x5943ff][0x0],_0xe7c66=_0x173ba6['isObject'](_0x141513[_0x380d60]['item']);!_0x3d0288[_0x5943ff]&&_0x401b94?_0x3d0288[_0x5943ff]={'start':_0x43efeb,'tapeItem':_0x141513[_0x380d60],'userId':_0x52aff8,'type':_0x5943ff}:_0x3d0288[_0x5943ff]&&!_0x401b94?(_0x3d0288[_0x5943ff]['end']=_0x43efeb,_0x509482(_0x3d0288[_0x5943ff]),_0x3d0288[_0x5943ff]=null):_0x3d0288[_0x5943ff]&&_0x401b94&&_0x3d0288[_0x5943ff]['userId']!==_0x52aff8&&(_0x3d0288[_0x5943ff]['end']=_0x43efeb,_0x28a32b&&_0x28a32b['userId']===_0x3d0288[_0x5943ff]['userId']||_0x509482(_0x3d0288[_0x5943ff]),_0x3d0288[_0x5943ff]={'start':_0x43efeb,'tapeItem':_0x141513[_0x380d60],'userId':_0x52aff8,'type':_0x5943ff}),_0x3d0288[_0x5943ff]&&_0xe7c66&&('elementStart'!==_0x141513[_0x380d60]['type']||_0x28a32b&&_0x28a32b['userId']===_0x52aff8||_0x3c9a5d[_0x5943ff]['unshift']({'userId':_0x52aff8,'object':_0x141513[_0x380d60]['item'],'change':_0x3d0288[_0x5943ff]}),'elementEnd'===_0x141513[_0x380d60]['type']&&_0x28a32b&&_0x28a32b['object']===_0x141513[_0x380d60]['item']&&(_0x3c9a5d[_0x5943ff]['shift'](),_0x3d0288[_0x5943ff]=_0x28a32b['change'])),_0x3d0288[_0x5943ff]&&_0x6e2c58&&(_0x3d0288[_0x5943ff]['end']=_0x2d1b46,_0x509482(_0x3d0288[_0x5943ff]),_0x3d0288[_0x5943ff]=null);}function _0x509482({start:_0x413925,end:_0x4bc9f3,tapeItem:_0x3ce389,userId:_0x1e6ea2,type:_0x4a344e}){const _0x3c87e2=_0x3ce389['item'],_0x56de05=_0x2b1912['schema']['isBlock'](_0x3c87e2)&&!_0x2b1912['schema']['isLimit'](_0x3c87e2),_0x494a83=_0x413925['nodeAfter']==_0x4bc9f3['parent']&&_0x4bc9f3['isAtStart'];if(_0x56de05&&_0x494a83)return;const _0x31b006=_0x2b1912['createRange'](_0x413925,_0x4bc9f3),_0x362455=_0x4ffd6d['get'](_0x1e6ea2),_0x57f287=new r({'author':_0x362455,'type':'isAdded'==_0x4a344e||'isAddSuggestion'==_0x4a344e?'add':'remove','data':{'isSuggestion':'isAddSuggestion'==_0x4a344e||'isRemoveSuggestion'==_0x4a344e},'createdAt':new Date(),'rootName':_0x31dfba});_0x420415['push'](_0x57f287),_0x4c15ff['markers']['set']('revision:'+_0x57f287['id'],_0x31b006);}function _0x560f96(_0xde780e,_0xd6ec70){const _0x1def10=_0xde780e['getAttributes'](),_0x493aef=_0xd6ec70['getAttributes']();for(const _0x3f53e8 of _0x1def10){if(_0x3f53e8[0x1]!==_0xd6ec70['getAttribute'](_0x3f53e8[0x0]))return!0x1;_0x493aef['next']();}return _0x493aef['next']()['done'];}}['_setConversion'](){this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision','view':_0x408a73=>{const _0x4bb029=_0x408a73['markerName']['split'](':')[0x1],_0x22cb26=this['_getChangeFromId'](_0x4bb029);if(!_0x22cb26)return null;const _0x30b80a='add'==_0x22cb26['type']?'insertion':'deletion',_0x4385c=['ck-suggestion-marker','ck-suggestion-marker-'+_0x30b80a];return _0x22cb26['data']['isSuggestion']&&_0x4385c['push']('ck-suggestion-marker-'+_0x30b80a+'-new'),this['activeChange']==_0x22cb26&&_0x4385c['push']('ck-suggestion-marker--active'),{'classes':_0x4385c,'attributes':{'data-change-id':_0x4bb029}};}}),this['editor']['conversion']['for']('upcast')['add'](_0x3c7b9c=>{_0x3c7b9c['on']('element:pre',(_0x15622c,_0x402edb,_0x9b735e)=>{const _0x303192=_0x402edb['viewItem']['getChild'](0x0);if(!_0x303192||!_0x303192['is']('element','code'))return;if(!_0x9b735e['consumable']['consume'](_0x303192,{'attributes':['vid_start','vid_end']}))return;const _0x2de02f=_0x402edb['modelRange']['start']['nodeAfter'];_0x9b735e['writer']['setAttribute']('vid_start',_0x303192['getAttribute']('vid_start'),_0x2de02f),_0x9b735e['writer']['setAttribute']('vid_end',_0x303192['getAttribute']('vid_end'),_0x2de02f);},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['add'](_0x469c4f=>{_0x469c4f['on']('element',(_0x1160c8,_0x3dc9d8,_0xe4774e)=>{if(!_0xe4774e['consumable']['consume'](_0x3dc9d8['viewItem'],{'attributes':['vid_start','vid_end']}))return;if(_0x3dc9d8['modelRange']['isCollapsed'])return;const _0x1ca7a7=_0x3dc9d8['modelRange']['start']['nodeAfter'];_0x1ca7a7['hasAttribute']('vid_start')||_0x1ca7a7['hasAttribute']('vid')||(_0xe4774e['writer']['setAttribute']('vid_start',_0x3dc9d8['viewItem']['getAttribute']('vid_start'),_0x1ca7a7),_0xe4774e['writer']['setAttribute']('vid_end',_0x3dc9d8['viewItem']['getAttribute']('vid_end'),_0x1ca7a7));},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['elementToAttribute']({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0x59718b=>_0x59718b['getAttribute']('vid')}}),this['editor']['model']['schema']['on']('checkAttribute',(_0x591e14,[,_0x2919bd])=>{['vid_start','vid_end','vid']['includes'](_0x2919bd)&&(_0x591e14['return']=!0x0,_0x591e14['stop']());},{'priority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['add'](_0xbdef9c=>{_0xbdef9c['on']('attribute:vid',(_0x4d1f58,_0x1106d5,_0x50c8f1)=>{if('\x20'!=_0x1106d5['item']['data']||_0x1106d5['item']['parent']['maxOffset']>0x1)return;if(!_0x50c8f1['consumable']['consume'](_0x1106d5['item'],_0x4d1f58['name']))return;const _0x481ac7=_0x50c8f1['writer'],_0x35e17e=_0x50c8f1['mapper']['toViewRange'](_0x1106d5['range']);_0x481ac7['wrap'](_0x35e17e,_0x481ac7['createAttributeElement']('span'));});}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',function(_0x34b1c7){const _0x14bf12=_0x34b1c7['plugins']['get']('RevisionViewer');return(_0x18b7c5,_0x5d8788,_0x3485ea)=>{const _0x5bcf91=_0x5d8788['markerName']['split'](':')[0x1],_0x4958b9=_0x14bf12['_getChangeFromId'](_0x5bcf91);if(!_0x4958b9)return null;const _0x14a8ef='add'==_0x4958b9['type']?'split':'merge';if(!_0x3485ea['consumable']['test'](_0x5d8788['markerRange'],_0x18b7c5['name']))return;const _0x31fa2f=_0x5d8788['markerRange']['getWalker'](),_0x1cfcf=_0x5d8788['markerRange']['start'],_0x3fadf7=_0x34b1c7['model']['schema'];let _0x25fa2a=null,_0x51d47d=null,_0x460e41=!0x1,_0x5b9f1=!0x1;for(const _0xa6dd96 of _0x31fa2f){const _0xade07b=_0xa6dd96['item'];_0x460e41=_0x460e41||_0x3fadf7['isContent'](_0xade07b);const _0x34b5f8=_0x3485ea['mapper']['toViewElement'](_0xade07b);if(_0x34b5f8&&_0x34b5f8['getCustomProperty']('addHighlight'))return;'elementEnd'==_0xa6dd96['type']&&(_0x3fadf7['isBlock'](_0xade07b)&&!_0x3fadf7['isLimit'](_0xade07b)&&(_0xade07b['nextSibling']||_0x1cfcf['isAtEnd']?_0x25fa2a&&_0x25fa2a['parent']==_0xade07b||(_0x25fa2a=_0xade07b,_0x128bf(_0xa6dd96['previousPosition']),_0x5b9f1=!0x0):_0x51d47d=_0x51d47d||_0xa6dd96['previousPosition']));}function _0x128bf(_0x2358c6){const _0x5dd25a=_0x3485ea['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x14a8ef}),_0x1e4b8b=_0x3485ea['mapper']['toViewPosition'](_0x2358c6);_0x4958b9['data']['isSuggestion']&&_0x3485ea['writer']['addClass']('ck-suggestion-marker-'+_0x14a8ef+'-new',_0x5dd25a),_0x14bf12['activeChange']==_0x4958b9&&_0x3485ea['writer']['addClass']('ck-suggestion-marker--active',_0x5dd25a),_0x3485ea['writer']['insert'](_0x1e4b8b,_0x5dd25a),_0x3485ea['mapper']['bindElementToMarker'](_0x5dd25a,_0x5d8788['markerName']);}_0x460e41||_0x5b9f1||!_0x51d47d||_0x128bf(_0x51d47d);};}(this['editor']),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision',(_0x548056,_0x20291b,_0x20f6c6)=>{const _0x59e32b=_0x20f6c6['mapper']['markerNameToElements'](_0x20291b['markerName']);if(_0x59e32b){for(const _0x3b1e4b of _0x59e32b)(_0x3b1e4b['hasClass']('ck-suggestion-marker-split')||_0x3b1e4b['hasClass']('ck-suggestion-marker-merge'))&&(_0x20f6c6['mapper']['unbindElementFromMarkerName'](_0x3b1e4b,_0x20291b['markerName']),_0x20f6c6['writer']['remove'](_0x3b1e4b));}},{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',(_0x42c8f2,_0xbc4c4d,_0x138cda)=>{const _0x546484=_0xbc4c4d['markerName']['split'](':')[0x1],_0x4fac90=this['_getChangeFromId'](_0x546484);if(!_0x4fac90)return null;const _0x3ebfdd='add'==_0x4fac90['type']?'split':'merge';if(_0x138cda['consumable']['test'](_0xbc4c4d['markerRange'],_0x42c8f2['name']))for(const _0x14a14e of _0xbc4c4d['markerRange']['getItems']()){if(!_0x14a14e['is']('element','softBreak'))continue;const _0x2da241=_0x138cda['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x3ebfdd}),_0x30ced4=_0x138cda['mapper']['toViewPosition'](this['editor']['model']['createPositionBefore'](_0x14a14e));_0x4fac90['data']['isSuggestion']&&_0x138cda['writer']['addClass']('ck-suggestion-marker-'+_0x3ebfdd+'-new',_0x2da241),this['activeChange']==_0x4fac90&&_0x138cda['writer']['addClass']('ck-suggestion-marker--active',_0x2da241),_0x138cda['writer']['insert'](_0x30ced4,_0x2da241),_0x138cda['mapper']['bindElementToMarker'](_0x2da241,_0xbc4c4d['markerName']);}},{'priority':'high'}),this['editor']['model']['document']['on']('change',()=>{this['editor']['editing']['view']['change'](_0x3af3c6=>{for(const _0x4365e6 of this['editor']['model']['document']['getRootNames']()){const _0x1f85c0=this['editor']['model']['document']['getRoot'](_0x4365e6),_0x368bd9=this['editor']['editing']['view']['document']['getRoot'](_0x4365e6);if(_0x368bd9){const _0x4feaea=_0x1f85c0['getAttribute']('revisionHistoryAttachChange');if(_0x3af3c6['removeAttribute']('data-change-id',_0x368bd9),_0x3af3c6['removeClass']('ck-revision-history-root-add',_0x368bd9),_0x3af3c6['removeClass']('ck-revision-history-root-remove',_0x368bd9),_0x3af3c6['removeClass']('ck-revision-history-root--active',_0x368bd9),_0x4feaea){const _0x1fca5f=this['_getChangeFromId'](_0x4feaea);if(!_0x1fca5f)return null;_0x3af3c6['setAttribute']('data-change-id',_0x4feaea,_0x368bd9),_0x3af3c6['addClass']('ck-revision-history-root-'+_0x1fca5f['type'],_0x368bd9),this['activeChange']==_0x1fca5f&&_0x3af3c6['addClass']('ck-revision-history-root--active',_0x368bd9);}}}});}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'comment','model':_0x5f57cf=>'revision-comment:'+_0x5f57cf,'converterPriority':'highest'}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion','model':_0x598381=>'revision-suggestion:'+_0x598381,'converterPriority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision-suggestion','view':_0x34c33a=>({'name':'suggestion:'+_0x34c33a,'group':'revision-suggestion'}),'converterPriority':'highest'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision-suggestion','view':_0x51374d=>{const _0xbf3a2d=_0x51374d['markerName']['split'](':')[0x1];return'insertion'!=_0xbf3a2d&&'deletion'!=_0xbf3a2d?null:{'classes':['ck-suggestion-preview-marker','ck-suggestion-preview-marker-'+_0xbf3a2d]};}}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:deletion',Z(this['editor'],'merge'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:insertion',Z(this['editor'],'split'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision-suggestion',(_0x2cb1f2,_0x25191b,_0x2855ba)=>{const _0x53f1be=_0x2855ba['mapper']['markerNameToElements'](_0x25191b['markerName']);if(_0x53f1be){for(const _0x19655a of _0x53f1be)_0x19655a['is']('uiElement')&&(_0x2855ba['mapper']['unbindElementFromMarkerName'](_0x19655a,_0x25191b['markerName']),_0x2855ba['writer']['remove'](_0x19655a));}},{'priority':'high'});}['_getChangeFromId'](_0xb329c9){return this['_changeIdToChange']['get'](_0xb329c9);}['_getViewForChange'](_0x1a0042){return this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=new X(this['editor']['locale'],_0x1a0042),this['_changeView'];}['_initInteractions'](){this['editor']['model']['document']['selection']['observeMarkers']('revision'),this['on']('change:activeView',(_0xb534c0,_0x18df94,_0x1e0748,_0x116be7)=>{_0x116be7&&this['_balloon']['remove'](_0x116be7),_0x1e0748&&(this['_balloon']['add']({'view':_0x1e0748,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0x9637fc=this['editor']['editing'],_0x5b7bcd=this['_getChangeFromId'](_0x1e0748['changeId']);let _0x230bba;if(_0x5b7bcd['data']['isOnRoot']){const _0x4d4d62=_0x9637fc['view']['getDomRoot'](_0x5b7bcd['rootName']);_0x230bba=Array['from'](_0x4d4d62['getClientRects']());}else{const _0x1341cf=this['editor']['model']['markers']['get']('revision:'+_0x1e0748['changeId']);_0x230bba=Array['from'](_0x9637fc['mapper']['markerNameToElements'](_0x1341cf['name']))['map'](_0x3e87ef=>_0x9637fc['view']['domConverter']['mapViewToDom'](_0x3e87ef))['map'](_0x5b89ff=>Array['from'](_0x5b89ff['getClientRects']()))['flat']();}if(!this['_activeViewTarget'])return _0x230bba[0x0];return _0x230bba['find'](_0x234948=>_0x234948['top']-0x3<=this['_activeViewTarget']['y']&&_0x234948['bottom']+0x3>=this['_activeViewTarget']['y']&&_0x234948['left']-0x3<=this['_activeViewTarget']['x']&&_0x234948['right']+0x3>=this['_activeViewTarget']['x'])||_0x230bba[0x0];}}}),this['_balloon']['showStack']('revisionHistoryLabel'));}),this['on']('change:activeChange',(_0x50a941,_0x2b3d32,_0x267155,_0x32f970)=>{this['activeView']=_0x267155?this['_getViewForChange'](_0x267155):null,this['editor']['model']['change'](()=>{const _0x5a9f42=this['editor']['editing'];_0x32f970&&(_0x32f970['data']['isOnRoot']?_0x5a9f42['view']['change'](_0x4e85c1=>{_0x4e85c1['removeClass']('ck-revision-history-root--active',_0x5a9f42['view']['document']['getRoot'](_0x32f970['rootName']));}):_0x5a9f42['reconvertMarker']('revision:'+_0x32f970['id'])),_0x267155&&(_0x267155['data']['isOnRoot']?_0x5a9f42['view']['change'](_0x192aa=>{_0x192aa['addClass']('ck-revision-history-root--active',_0x5a9f42['view']['document']['getRoot'](_0x267155['rootName']));}):_0x5a9f42['reconvertMarker']('revision:'+_0x267155['id']));});}),this['listenTo'](this['editor']['editing']['view']['document'],'mouseover',(_0x60be99,_0x26f515)=>{if(this['activeChange'])return;const _0x2fc433=this['_findChangeIdFromDomTarget'](_0x26f515['target']),_0x5782af=this['_changeIdToChange']['get'](_0x2fc433);_0x5782af?(this['_activeViewTarget']={'x':_0x26f515['domEvent']['x'],'y':_0x26f515['domEvent']['y']},this['activeView']=this['_getViewForChange'](_0x5782af)):(this['_activeViewTarget']=null,this['activeView']=null);}),this['listenTo'](this['editor']['editing']['view']['document'],'mousedown',(_0x4fdc61,_0x4ac061)=>{const _0x3630ff=this['_findChangeIdFromDomTarget'](_0x4ac061['target']),_0x394214=this['_changeIdToChange']['get'](_0x3630ff);_0x394214?(this['_activeViewTarget']={'x':_0x4ac061['domEvent']['x'],'y':_0x4ac061['domEvent']['y']},_0x394214===this['activeChange']?this['_balloon']['updatePosition']():this['activeChange']=_0x394214):(this['_activeViewTarget']=null,this['activeChange']=null);});}['_findChangeIdFromDomTarget'](_0x1fbcd8){do{const _0x1a519c=_0x1fbcd8['getAttribute']('data-change-id');if(_0x1a519c)return _0x1a519c;_0x1fbcd8=_0x1fbcd8['parent'];}while(_0x1fbcd8);return null;}['_cleanMarkers'](){this['editor']['model']['change'](_0x8ed715=>{for(const _0x514782 of this['editor']['model']['markers'])_0x8ed715['removeMarker'](_0x514782);});}}function Z(_0x3270da,_0x58680a){return(_0x2ca118,_0x599167,_0x15d159)=>{if(!_0x15d159['consumable']['test'](_0x599167['markerRange'],_0x2ca118['name']))return;const _0x2f0377=_0x599167['markerRange']['getWalker'](),_0x2f1fec=_0x599167['markerRange']['start'],_0x117766=_0x3270da['model']['schema'];let _0x49c44a=null,_0x814d4b=null,_0x3e6765=!0x1,_0x2ed3f6=!0x1;for(const _0x41c45a of _0x2f0377){const _0x201c70=_0x41c45a['item'];_0x3e6765=_0x3e6765||_0x117766['isContent'](_0x201c70);const _0x2b719f=_0x15d159['mapper']['toViewElement'](_0x201c70);if(_0x2b719f&&_0x2b719f['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x41c45a['type']&&(_0x117766['isBlock'](_0x201c70)&&!_0x117766['isLimit'](_0x201c70)&&(_0x201c70['nextSibling']||_0x2f1fec['isAtEnd']?_0x49c44a&&_0x49c44a['parent']==_0x201c70||(_0x49c44a=_0x201c70,_0x244955(_0x41c45a['previousPosition']),_0x2ed3f6=!0x0):_0x814d4b=_0x814d4b||_0x41c45a['previousPosition']));}function _0x244955(_0x20ea56){const _0x462e30=_0x15d159['mapper']['toViewPosition'](_0x20ea56),_0xa1d7df=_0x15d159['writer']['createUIElement']('span',{'class':'ck-suggestion-preview-marker-'+_0x58680a});_0x15d159['writer']['insert'](_0x462e30,_0xa1d7df),_0x15d159['mapper']['bindElementToMarker'](_0xa1d7df,_0x599167['markerName']);}_0x3e6765||_0x2ed3f6||!_0x814d4b||_0x244955(_0x814d4b);};}class _t extends _0x4329f6{constructor(_0x57917d){super(_0x57917d);const _0x1353c0=_0x57917d['plugins']['get'](d);this['affectsData']=!0x1,this['listenTo'](_0x1353c0,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x1353c0,'change:isEnabled',()=>this['refresh']());}['execute'](){const _0xfc6ed8=this['editor'],_0x5a4dd9=_0xfc6ed8['plugins']['get'](d),_0x8b0d96=_0x5a4dd9['isReady']?_0x5a4dd9['diff']['newRevisionId']:null;_0xfc6ed8['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x8b0d96);}['refresh'](){const {isReady:_0x3746fa,isEnabled:_0x501378,repository:_0x5b4887,diff:_0xecd784}=this['editor']['plugins']['get'](d),_0x3cedf9=_0xecd784&&_0x5b4887['getLaterVisibleRevision'](_0xecd784['newRevisionId']);this['isEnabled']=_0x3746fa&&_0x501378&&Boolean(_0x3cedf9);}}class yt extends _0x4329f6{['_step'];constructor(_0x4e4432,{direction:_0x40faf0}){super(_0x4e4432);const _0x4bd434=_0x4e4432['plugins']['get'](d);this['affectsData']=!0x1,this['_step']='forward'===_0x40faf0?0x1:-0x1,this['listenTo'](_0x4bd434,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x4bd434,'change:isEnabled',()=>this['refresh']()),this['listenTo'](_0x4bd434,'change:activeChange',()=>this['refresh']());}['execute'](){const _0x1aaad8=this['editor'],_0xb4ad65=_0x1aaad8['plugins']['get'](d),{isNavigationMode:_0x8336b4,currentChangeNumber:_0x2fc227}=_0xb4ad65;let _0x3e22d8;if(_0xb4ad65['activeChange']=_0x8336b4?_0xb4ad65['diff']['changes']['get'](_0x2fc227+this['_step']):_0xb4ad65['diff']['changes']['first'],_0xb4ad65['activeChange']['data']['isOnRoot'])_0x3e22d8=_0x1aaad8['editing']['view']['getDomRoot'](_0xb4ad65['activeChange']['rootName']);else{const _0x5789f6=_0x1aaad8['model']['markers']['get']('revision:'+_0xb4ad65['activeChange']['id']);_0x3e22d8=_0x6fa89f(_0x1aaad8['editing'],_0x5789f6);}_0x2a04c7({'target':_0x3e22d8,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0x325500,currentChangeNumber:_0x1f9b22,numberOfChanges:_0x5903df,isReady:_0x3a7b33,isEnabled:_0xd51a13}=this['editor']['plugins']['get'](d);this['isEnabled']=!!(_0xd51a13&&_0x3a7b33&&_0x5903df)&&(!_0x325500||(0x1===this['_step']?_0x1f9b22<_0x5903df-0x1:_0x1f9b22>0x0));}}class _i extends _0x21a70e{constructor(_0x458569){super(_0x458569);const _0xe7d7c5=this['bindTemplate'],_0x2467c5=new _0x5f241f(_0x458569),_0x4d619a=new _0x5f241f(_0x458569);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',(_0x5ba48f,_0x302ef3)=>_0x5ba48f&&_0x302ef3>0x0),this['bind']('_statusText')['to'](this,'isReady',this,'currentChangeNumber',this,'numberOfChanges',this,'isNavigationMode',(_0x30854f,_0xfdf446,_0x3795b3,_0x5d44c0)=>{if(!_0x30854f)return m(_0x458569,'Loading...');if(!_0x3795b3)return m(_0x458569,'No\x20changes');const _0x245f46=m(_0x458569,'NUMBER_OF_CHANGES',_0x3795b3);return _0x5d44c0?m(_0x458569,'X_OF_Y_CHANGES',[_0xfdf446+0x1,_0x3795b3]):_0x245f46;}),_0x2467c5['set']({'label':m(_0x458569,'Show\x20previous\x20change'),'tooltip':!0x0,'icon':'<svg\x20viewBox=\x220\x200\x2020\x2020\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22><path\x20d=\x22M16.435\x2014.494a.75.75\x200\x200\x200\x201.197-.899l-.067-.089-6.992-8a.75.75\x200\x200\x200-1.05-.078l-.079.078-7.008\x208a.75.75\x200\x200\x200\x201.049\x201.066l.08-.078\x206.442-7.354\x206.428\x207.354z\x22/></svg>\x0a'}),_0x4d619a['set']({'label':m(_0x458569,'Show\x20next\x20change'),'tooltip':!0x0,'icon':'<svg\x20viewBox=\x220\x200\x2020\x2020\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22><path\x20d=\x22M16.435\x205.506a.75.75\x200\x200\x201\x201.197.899l-.067.089-6.992\x208a.75.75\x200\x200\x201-1.05.078l-.079-.078-7.008-8a.75.75\x200\x200\x201\x201.049-1.066l.08.078\x206.442\x207.354\x206.428-7.354z\x22/></svg>\x0a'}),_0x2467c5['bind']('isEnabled')['to'](this,'isBackwardNavigationEnabled'),_0x4d619a['bind']('isEnabled')['to'](this,'isForwardNavigationEnabled'),_0x2467c5['on']('execute',()=>this['fire']('execute','backward')),_0x4d619a['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',_0xe7d7c5['if']('_isStatusLabelVisible','ck-hidden',_0x3f0da0=>!_0x3f0da0)]},'children':[{'text':_0xe7d7c5['to']('isNavigationMode',_0x3d6563=>_0x3d6563?m(_0x458569,'EDIT_X_OF_Y_REVISIONS')+':\x20':m(_0x458569,'Total')+':\x20')}]},{'text':_0xe7d7c5['to']('_statusText')}]},new _0x5205f1(),{'tag':'div','attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0x2467c5,_0x4d619a]}]});}}const ce='ck-editor__editable__loading-overlay';class le extends _0x495045{static get['pluginName'](){return'RevisionViewerLoadingOverlay';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['show'](){const _0x4db835=this['editor']['editing']['view'];_0x4db835['change'](_0x35c935=>{for(const _0x427367 of _0x4db835['document']['roots'])_0x35c935['addClass'](ce,_0x427367);});}['hide'](){const _0x2de2c6=this['editor']['editing']['view'];_0x2de2c6['change'](_0x58a2b0=>{for(const _0x44b875 of _0x2de2c6['document']['roots'])_0x58a2b0['removeClass'](ce,_0x44b875);});}}class g extends _0x495045{static get['pluginName'](){return'RevisionViewerUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[d,le];}['init'](){const _0x47abb0=this['editor'],_0x5991c1=_0x47abb0['plugins']['get'](d),_0x5b551c=_0x47abb0['plugins']['get'](le);_0x47abb0['ui']['componentFactory']['add']('exitToEditing',_0x189de5=>{const _0x2ddb6d=new _0x5f241f(_0x189de5);return _0x2ddb6d['set']({'label':m(_0x189de5,'Back\x20to\x20editing'),'icon':_0x3b9cd1['undo'],'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this['listenTo'](_0x2ddb6d,'execute',()=>{_0x47abb0['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}),_0x2ddb6d;}),_0x47abb0['ui']['componentFactory']['add']('restoreRevision',_0x126c73=>{const _0x40e07e=new _0x5f241f(_0x126c73);return _0x40e07e['set']({'label':m(_0x126c73,'Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0x40e07e['bind']('isEnabled')['to'](_0x47abb0['commands']['get']('restoreRevision')),this['listenTo'](_0x40e07e,'execute',()=>_0x47abb0['execute']('restoreRevision')),_0x40e07e;}),_0x47abb0['ui']['componentFactory']['add']('changesNavigation',_0x358345=>{const _0x14c424=new _i(_0x358345),_0x1ad43c=_0x47abb0['commands']['get']('showPreviousChange'),_0x336b6e=_0x47abb0['commands']['get']('showNextChange');return _0x14c424['bind']('isBackwardNavigationEnabled')['to'](_0x1ad43c,'isEnabled'),_0x14c424['bind']('isForwardNavigationEnabled')['to'](_0x336b6e,'isEnabled'),_0x14c424['bind']('isReady','currentChangeNumber','numberOfChanges','isNavigationMode')['to'](_0x5991c1),this['listenTo'](_0x14c424,'execute',(_0x492717,_0x4f95bb)=>{_0x47abb0['execute']('forward'===_0x4f95bb?'showNextChange':'showPreviousChange');}),_0x14c424;}),_0x5b551c['show'](),_0x5991c1['on']('change:isReady',(_0x722924,_0x1f53ba,_0x17e776)=>{_0x17e776?_0x5b551c['hide']():_0x5b551c['show']();});}}class pt extends nt{['_resizeObserver']=null;constructor(_0x11a2ae,_0x33ece6){super(_0x11a2ae,_0x33ece6);const _0x4ed403=this['bindTemplate'];this['set']({'label':m(_0x11a2ae,'Revision\x20name'),'_tooltipString':''}),this['fieldView']['placeholder']=m(_0x11a2ae,'Enter\x20the\x20revision\x20name'),this['extendTemplate']({'tag':'span','attributes':{'class':['ck-revision-history-sidebar__revision-name'],'data-cke-tooltip-text':_0x4ed403['to']('_tooltipString'),'data-cke-tooltip-position':'s','data-cke-tooltip-class':'ck-tooltip_multi-line'}});}['render'](){super['render'](),this['_resizeObserver']=new at(this['fieldView']['element'],()=>this['_updateTooltipText']()),this['listenTo'](this['fieldView'],'input',()=>this['_updateTooltipText']());}['destroy'](){super['destroy'](),this['_resizeObserver']&&this['_resizeObserver']['destroy']();}['_updateTooltipText'](){const _0x3825a7=this['fieldView']['element'];this['_tooltipString']=_0x3825a7['scrollWidth']>_0x3825a7['clientWidth']&&_0x3825a7['value']||'';}}class ti extends _0x21a70e{constructor(_0x360475,_0x44102f,_0x2d6ff9){super(_0x360475);const _0x53ec74=new _0x3183a9();_0x53ec74['set']({'content':'<svg\x20viewBox=\x220\x200\x2011\x2010\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22\x20xmlns:xlink=\x22http://www.w3.org/1999/xlink\x22><path\x20d=\x22M5.5\x205C8.538\x205\x2011\x207.015\x2011\x209.5c0\x20.17-.011.336-.034.5H.034A3.732\x203.732\x200\x200\x201\x200\x209.5C0\x207.015\x202.462\x205\x205.5\x205zm0-5a2.5\x202.5\x200\x201\x201\x200\x205\x202.5\x202.5\x200\x200\x201\x200-5z\x22\x20/></svg>\x0a','viewBox':'0\x200\x2011\x2010'});const _0x218e4c=['ck','ck-revision-history-sidebar__revision-author'];_0x2d6ff9&&_0x218e4c['push']('ck-revision-history-sidebar__revision-author_creator');const _0x11e6ab=[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':m(_0x360475,_0x2d6ff9?'Revision\x20creator':'Revision\x20author')},'children':[_0x53ec74,_0x44102f['name']]}];this['setTemplate']({'tag':'li','attributes':{'class':_0x218e4c},'children':_0x11e6ab});}}function ni(_0x8ba812,_0x467a73){const _0xb3f470=_0x8ba812['bindTemplate'],_0x1d7b07=_0x8ba812['locale'],_0x1a7c40=_0x4cd44e(_0x1d7b07);_0x1a7c40['panelPosition']='sw';const _0x47ec27=function(_0x533d84,_0x5ae851){const _0xd139dd=function(_0x2eedb5,_0x1d9a2f){const _0xc5b1e=_0x2eedb5['locale'],_0x11e25f={'Compare\x20against\x20selected':m(_0xc5b1e,'Compare\x20against\x20selected'),'Name\x20this\x20revision':m(_0xc5b1e,'Name\x20this\x20revision'),'Restore\x20this\x20revision':m(_0xc5b1e,'Restore\x20this\x20revision')};return _0x1d9a2f['map'](_0x2bf363=>{const _0x504e14=_0x11e25f[_0x2bf363['name']];return _0x504e14&&_0x504e14!==_0x2bf363['name']&&(_0x2bf363['name']=_0x504e14),_0x2bf363;});}(_0x533d84,_0x5ae851),_0x287887=new _0xb59600();for(const _0x3f8327 of _0xd139dd){const _0x1fbb6b={'type':'button','model':new to({'label':_0x3f8327['name'],'class':_0x3f8327['class'],'withText':!0x0,'role':'menuitem','_action':_0x3f8327['action']})};_0x1fbb6b['model']['bind']('isEnabled')['to'](_0x533d84,'isActionsDropdownOpen',_0x5b28fa=>'function'!=typeof _0x3f8327['isEnabled']||(!_0x5b28fa||_0x3f8327['isEnabled'](_0x533d84))),_0x287887['add'](_0x1fbb6b);}return _0x287887;}(_0x8ba812,_0x467a73);return _0x8ba812['bind']('isActionsDropdownOpen')['to'](_0x1a7c40,'isOpen'),_0x1a7c40['buttonView']['set']({'label':m(_0x1d7b07,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x3b9cd1['threeVerticalDots']}),_0x1a7c40['extendTemplate']({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0xb3f470['if']('isActionsDropdownOpen','ck-on')]},'on':{'click':_0xb3f470['to'](_0x4a47db=>_0x4a47db['stopPropagation']())}}),_0x1a7c40['on']('execute',_0x30a361=>{_0x8ba812['isReady']&&'function'==typeof _0x30a361['source']['_action']&&_0x30a361['source']['_action'](_0x8ba812);}),_0x34d2c0(_0x1a7c40,_0x47ec27,{'role':'menu'}),_0x1a7c40['listenTo'](_0x8ba812,'change:isActionsDropdownOpen',(_0x18902f,_0x3d6ab6,_0x3b8a8e)=>{if(_0x3b8a8e)for(const _0x161710 of _0x1a7c40['listView']['items']){const _0x4d846c=_0x161710['children']['first'],_0x3b230b=_0x467a73['find'](_0x4450ac=>_0x4450ac['action']===_0x4d846c['_action'])['isVisible'];_0x161710['isVisible']=void 0x0===_0x3b230b||_0x3b230b(_0x8ba812);}}),_0x1a7c40;}class ai extends/* #__PURE__ -- @preserve */
|
|
26
|
+
_0x53a7fd(_0x21a70e){['id'];['revisionNameView'];['revisionActionsView'];['_revision'];['_requireRevisionName'];constructor(_0x3c61f6,_0x590357,_0xfadbea,_0x5f3c2d){super(_0x3c61f6);const _0x2aa90f=this['bindTemplate'],_0x59f854=function(_0x18369e,_0x591418){const _0x50d808=Array['from'](_0x591418['authors'])['filter'](_0x1da71e=>_0x1da71e!=_0x591418['creator']);return _0x591418['creator']&&_0x50d808['unshift'](_0x591418['creator']),_0x50d808['map'](_0x50edb9=>new ti(_0x18369e,_0x50edb9,_0x50edb9==_0x591418['creator']));}(_0x3c61f6,_0x590357);this['id']=_0x590357['id'],this['_revision']=_0x590357,this['_requireRevisionName']=_0x5f3c2d,this['bind']('name','createdAt')['to'](_0x590357),this['bind']('_createdAtFormatted')['to'](this,'createdAt',_0x459256=>{return _0x24a530=_0x3c61f6['uiLanguage'],(_0x5b04ae=_0x459256)['toLocaleDateString'](_0x24a530,{'month':'long','day':'numeric'})+',\x20'+_0x5b04ae['toLocaleTimeString'](_0x24a530,{'hour':'numeric','minute':'numeric'});var _0x24a530,_0x5b04ae;}),this['set']('isSelected',!0x1),this['set']('isHighlighted',!0x1),this['set']('isActionsDropdownOpen',!0x1),this['set']('isReady',!0x1),this['set']('isEnabled',!0x1),this['revisionNameView']=new pt(_0x3c61f6,_0x2f6061),this['revisionNameView']['fieldView']['extendTemplate']({'attributes':{'maxlength':'220'}}),this['revisionNameView']['fieldView']['bind']('value')['to'](this,'name',_0x185d36=>_0x185d36||this['_createdAtFormatted']),this['revisionNameView']['bind']('isEnabled')['to'](this,'isSelected',this,'isEnabled',(_0xccd040,_0x219ff3)=>_0xccd040&&_0x219ff3),this['revisionActionsView']=_0xfadbea&&_0xfadbea['length']?ni(this,_0xfadbea):'',this['revisionActionsView']&&this['revisionActionsView']['bind']('isEnabled')['to'](this),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision-wrapper',_0x2aa90f['if']('isConfirm','ck-revision-history-sidebar__revision-wrapper_confirmation_visible')]},'children':[{'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision',_0x2aa90f['if']('isEnabled','ck-disabled',_0x111a90=>!_0x111a90),_0x2aa90f['if']('isSelected','ck-revision-history-sidebar__revision_selected'),_0x2aa90f['if']('isHighlighted','ck-revision-history-sidebar__revision_highlighted'),_0x2aa90f['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':_0x2aa90f['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':_0x59f854}]},this['revisionActionsView']],'on':{'click':_0x2aa90f['to'](_0x1edc86=>{_0x1edc86['srcElement']['closest']('.ck-thread__remove-confirm')||this['isReady']&&this['isEnabled']&&this['fire']('select',{'id':this['id']});})}}]});}['render'](){super['render']();const _0x517ff5=this['revisionNameView']['fieldView']['element'];this['listenTo'](_0x517ff5,'change',()=>{this['_requireRevisionName']&&!_0x517ff5['value']||this['fire']('setName',{'id':this['id'],'name':_0x517ff5['value']}),_0x517ff5['value']||(_0x517ff5['value']=this['name']?this['name']:this['_createdAtFormatted']);});}['select'](){this['isSelected']=!0x0;}['deselect'](){this['isSelected']=!0x1;}['highlight'](){this['isHighlighted']=!0x0;}['unhighlight'](){this['isHighlighted']=!0x1;}}function di(_0x5d99f9,_0x10b2b6){const _0x1b6c39=_0x1e2f43['fromJSDate'](_0x5d99f9)['setLocale'](_0x10b2b6),_0x18f4e5=_0x1e2f43['local'](),_0x1cd282=_0x18f4e5['minus']({'days':0x1})['startOf']('day');let _0xfd56d1,_0x4f25d9;return _0x1b6c39['hasSame'](_0x18f4e5,'day')?(_0xfd56d1=_0x1b6c39['startOf']('day')['toJSDate'](),_0x4f25d9=_0x1b6c39['toRelativeCalendar']()):_0x1b6c39['hasSame'](_0x1cd282,'day')?(_0xfd56d1=_0x1cd282['toJSDate'](),_0x4f25d9=_0x1b6c39['toRelativeCalendar']()):_0x1b6c39['hasSame'](_0x18f4e5,'week')?(_0xfd56d1=_0x1b6c39['startOf']('week')['toJSDate'](),_0x4f25d9=_0x1b6c39['weekdayLong']||''):_0x1b6c39['hasSame'](_0x18f4e5,'year')?(_0xfd56d1=_0x1b6c39['startOf']('month')['toJSDate'](),_0x4f25d9=_0x1b6c39['monthLong']||''):(_0xfd56d1=_0x1b6c39['startOf']('year')['toJSDate'](),_0x4f25d9=String(_0x1b6c39['year'])),{'startDate':_0xfd56d1,'localizedPeriodName':_0x4f25d9};}class mi extends _0x21a70e{['startDate'];['revisionViews'];['_revisionActions'];['_requireRevisionName'];constructor(_0x2a8cae,_0x161df9,_0x279ca5,_0x21e6fb){super(_0x2a8cae);const _0x441551=di(_0x161df9,this['locale']['uiLanguage'])['localizedPeriodName'];this['startDate']=_0x161df9,this['revisionViews']=this['createCollection'](),this['_revisionActions']=_0x279ca5,this['_requireRevisionName']=_0x21e6fb,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':_0x441551}]},{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__time-period__revisions']},'children':this['revisionViews']}]});}['addRevision'](_0x315bc3){const _0x279e5e=new ai(this['locale'],_0x315bc3,this['_revisionActions'],this['_requireRevisionName']);this['revisionViews']['add'](_0x279e5e);}['removeRevision'](_0x35d8a4){const _0x2fae04=this['revisionViews']['find'](_0x313473=>_0x313473['id']===_0x35d8a4['id']);this['revisionViews']['remove'](_0x2fae04);}}class as extends _0x21a70e{constructor(_0x456c2f){super(_0x456c2f);const _0x1de0ba=new _0x3183a9();_0x1de0ba['content']=_0x3b9cd1['history'],this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all','ck-revision-history-sidebar__header']},'children':[_0x1de0ba,{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__header__label']},'children':[m(_0x456c2f,'Revision\x20history')]}]});}}class ci extends _0x21a70e{['timePeriodViews'];['_revisions'];['_revisionActions'];['_requireRevisionName'];constructor(_0x280203,_0x2bd749,_0x1a83c0,_0x417dae){super(_0x280203);const _0x476d8c=this['bindTemplate'];this['timePeriodViews']=this['createCollection'](),this['timePeriodViews']['delegate']('select')['to'](this),this['timePeriodViews']['delegate']('setName')['to'](this),this['_revisions']=_0x2bd749,this['_revisionActions']=_0x1a83c0,this['_requireRevisionName']=_0x417dae,this['on']('select',(_0xca6414,_0x1ff652)=>{this['fire']('revisionSelected',_0x1ff652);}),this['on']('setName',(_0x33dd84,_0x5d2ec8)=>{this['fire']('revisionSetName',_0x5d2ec8);}),this['set']('isEnabled',!0x1),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-rounded-corners','ck-revision-history-sidebar']},'children':[new as(_0x280203),{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__timeline',_0x476d8c['if']('isEnabled','ck-disabled',_0x4b500d=>!_0x4b500d)]},'children':this['timePeriodViews']}]});}['render'](){super['render']();for(const _0x336931 of this['_revisions'])this['_addRevision'](_0x336931);this['_revisions']['on']('add',(_0x505695,_0x47a40b)=>{this['_addRevision'](_0x47a40b);}),this['_revisions']['on']('remove',(_0x478fd9,_0x2168f9)=>{this['_removeRevision'](_0x2168f9);});}get['revisionViews'](){return this['timePeriodViews']['map'](_0x5d6e94=>_0x5d6e94['revisionViews']['map'](_0x47f529=>_0x47f529))['flat']();}['selectRevision'](_0x27ccfd){for(const _0x4f5cf6 of this['revisionViews'])_0x27ccfd&&_0x27ccfd['id']===_0x4f5cf6['id']?_0x4f5cf6['select']():_0x4f5cf6['deselect']();}['highlightRevisions'](_0x3bcb4d){for(const _0xe80f0a of this['revisionViews'])_0x3bcb4d['some'](({id:_0x2c8dd7})=>_0x2c8dd7===_0xe80f0a['id'])?_0xe80f0a['highlight']():_0xe80f0a['unhighlight']();}['_addRevision'](_0x3b1ed3){const _0x1270fa=di(_0x3b1ed3['createdAt'],this['locale']['uiLanguage'])['startDate'];let _0xbd36fc=this['timePeriodViews']['get'](0x0);_0xbd36fc&&_0xbd36fc['startDate']['getTime']()===_0x1270fa['getTime']()||(_0xbd36fc=new mi(this['locale'],_0x1270fa,this['_revisionActions'],this['_requireRevisionName']),this['timePeriodViews']['add'](_0xbd36fc)),_0xbd36fc['addRevision'](_0x3b1ed3);}['_removeRevision'](_0x215a7b){const _0x48a2f7=di(_0x215a7b['createdAt'],this['locale']['uiLanguage'])['startDate'];this['_getTimePeriodViewByStartDate'](_0x48a2f7)['removeRevision'](_0x215a7b);}['_getTimePeriodViewByStartDate'](_0x39c6d4){return this['timePeriodViews']['find'](_0x27bb4d=>_0x27bb4d['startDate']['getTime']()===_0x39c6d4['getTime']());}}class w extends _0x495045{['_revisionViewer'];['_revisionsRepository'];['_sidebarView'];static ['defaultRevisionActions']=/* #__PURE__ -- @preserve */
|
|
27
27
|
((()=>['compareAgainstSelected','restoreRevision','nameRevision'])());static ['availableRevisionActions']=/* #__PURE__ -- @preserve */
|
|
28
|
-
|
|
29
|
-
it(tt){['_ui'];get['ui'](){return this['_ui'];}constructor(_0x5c5399,_0x191bfd){super(_0x191bfd),this['sourceElement']=_0x5c5399,this['model']['document']['createRoot']();const _0x388ded=new et(this['locale'],this['editing']['view'],{'shouldToolbarGroupWhenFull':!0x0});this['_ui']=new rt(this,_0x388ded);}['destroy'](){return this['updateSourceElement'](),this['ui']['destroy'](),super['destroy']();}static async['create'](_0xe60718,_0x1f8d6c){const _0x5c78cc=new this(_0xe60718,_0x1f8d6c);return await _0x5c78cc['initPlugins'](),await _0x5c78cc['ui']['init'](_0xe60718),await _0x5c78cc['data']['init'](_0x5c78cc['config']['get']('initialData')||''),_0x5c78cc['fire']('ready'),_0x5c78cc;}}const p=['RevisionHistoryUI','RestrictedEditingMode'];class bt extends _0x19d40b{['result'];static get['pluginName'](){return'RevisionViewerIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x57a110){function _0x398d7a(_0x2a3128){return _0x2a3128['map'](_0x1dc6f5=>String['fromCharCode'](_0x1dc6f5))['join']('');}super(_0x57a110),this['result']='end',_0x57a110[_0x398d7a([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x398d7a([0x76,0x69,0x65,0x77])][_0x398d7a([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x398d7a([0x61,0x75,0x74,0x6f]),_0x57a110[_0x398d7a([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x398d7a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x398d7a([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x398d7a([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x398d7a([0x6f,0x6b])});}}class k extends _0x19d40b{['_viewerEditor'];static get['pluginName'](){return'RevisionHistory';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[l,u];}constructor(_0x414603){if(super(_0x414603),!this['editor']['config']['get']('revisionHistory'))throw new _0x8bd142('revision-history-missing-configuration',this);this['_viewerEditor']=null,this['editor']['config']['define']('revisionHistory.showRevisionViewerCallback',_0x19916d=>this['_showRevisionViewer']({..._0x19916d,'translations':this['editor']['locale']['translations']})),this['editor']['config']['define']('revisionHistory.closeRevisionViewerCallback',_0x4e153d=>this['_closeRevisionViewer'](_0x4e153d)),this['editor']['config']['define']('revisionHistory.restoreRevisionCallback',_0x61983=>this['_restoreRevision'](_0x61983)),this['editor']['config']['define']('revisionHistory.requireRevisionName',!0x1),this['_enhanceShowRevisionViewerCallback'](),this['_enhanceCloseRevisionViewerCallback']();}set['adapter'](_0x312c5e){this['editor']['plugins']['get']('RevisionTracker')['adapter']=_0x312c5e;}get['adapter'](){return this['editor']['plugins']['get']('RevisionTracker')['adapter'];}['addRevisionData'](_0x4f013f){return this['editor']['plugins']['get']('RevisionTracker')['addRevisionData'](_0x4f013f);}['getRevision'](_0x501028){return this['editor']['plugins']['get']('RevisionsRepository')['getRevision'](_0x501028);}['getRevisions'](_0x3be329){return this['editor']['plugins']['get']('RevisionsRepository')['getRevisions'](_0x3be329||{'toJSON':!0x1});}['_getRevisionViewerEditorConfig'](){const _0x41e486=this['editor'],_0x5476fd=_0x5aab15(_0x41e486,p),_0x2996f0=_0x41e486['plugins']['get']('RevisionTracker'),_0x1f9f34=_0x41e486['plugins']['get']('Users')['users'];return _0x5476fd['toolbar']=['exitToEditing','restoreRevision','changesNavigation'],delete _0x5476fd['lazyRoots'],(_0x5476fd['plugins']['push'](bt,d,g,class extends _0x19d40b{static get['requires'](){return[d,'Users'];}['init'](){const _0x5cdf5a=this['editor']['plugins']['get']('Users');for(const _0x1b6f6f of _0x1f9f34)_0x1b6f6f['isAnonymous']||_0x5cdf5a['getUser'](_0x1b6f6f['id'])||_0x5cdf5a['addUser'](_0x1b6f6f);const _0x22f789=_0x2996f0['repository']['getRevisions']();let _0x28bcd9=null;const _0x44f89a=this['editor']['plugins']['get']('RevisionViewer');_0x44f89a['adapter']=_0x2996f0['adapter'],_0x44f89a['bind']('isEnabled')['to'](_0x2996f0),this['editor']['commands']['get']('restoreRevision')['bind']('isEnabled')['to'](_0x41e486,'isReadOnly',_0x333419=>!_0x333419);for(const _0x243302 of _0x22f789){const _0x1fdafc=null===_0x243302['creator'];if(_0x1fdafc&&_0x243302['toVersion']===_0x243302['fromVersion'])continue;const _0x3194ab=_0x243302['toJSON']();_0x44f89a['addRevisionData'](_0x3194ab,(_0x1563a7,_0x42d07d,_0xc9289a)=>{if(_0x1fdafc){if(_0x28bcd9)_0x28bcd9['_update'](_0x1563a7,_0x42d07d);else{if(!_0x42d07d){const _0x50d71c=_0xc9289a['toJSON']();_0x50d71c['id']=_0x2db367(),_0x2996f0['saveRevision'](_0x50d71c,_0xc9289a['toVersion'])['then'](_0x18241b=>{_0x28bcd9=_0x18241b;});}}}else _0x243302['_update'](_0x1563a7,_0x42d07d);});}}},w),_0x5476fd);}['_enhanceShowRevisionViewerCallback'](){const _0x2ffb1c=this['editor']['config']['get']('revisionHistory')['showRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.showRevisionViewerCallback',async()=>{this['editor']['enableReadOnlyMode']('revision-history-viewer-opened');const _0x6c8f0d=this['editor']['plugins']['get']('RevisionTracker');if(this['editor']['plugins']['has']('Autosave')){const _0x3520ab=this['editor']['plugins']['get']('Autosave');await _0x3520ab['save']();}else await _0x6c8f0d['update']();if(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('Dialog')){const _0x389f8f=this['editor']['plugins']['get']('Dialog');_0x389f8f['isOpen']&&_0x389f8f['hide']();}const _0x570aa5=this['_getRevisionViewerEditorConfig']();return _0x2ffb1c(_0x570aa5)['then'](_0x1715f6=>{return(this['_viewerEditor']=_0x1715f6,this['editor']['plugins']['has']('Annotations'))&&this['editor']['plugins']['get']('Annotations')['refreshVisibility'](),_0x1715f6;})['catch'](_0x2b62ac=>(console['error'](_0x2b62ac),this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),null));});}['_enhanceCloseRevisionViewerCallback'](){const _0x2039a6=this['editor']['config']['get']('revisionHistory')['closeRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.closeRevisionViewerCallback',()=>(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['_viewerEditor']['plugins']['get']('RevisionViewer')['_cleanUp'](),_0x2039a6(this['_viewerEditor'])['then'](()=>{if(this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),this['_viewerEditor']=null,this['editor']['plugins']['has']('Annotations')){const _0x51f074=this['editor']['plugins']['get']('Annotations');_0x51f074['refreshVisibility'](),_0x51f074['refreshPositioning']();}})));}['_showRevisionViewer'](_0x22631e){const _0x2c46c6=this['editor']['config']['get']('revisionHistory.editorContainer'),_0x3a8c28=this['editor']['config']['get']('revisionHistory.viewerContainer'),_0x2032fe=this['editor']['config']['get']('revisionHistory.viewerEditorElement');return R['create'](_0x2032fe,_0x22631e)['then'](_0xdbd1b9=>(_0x3a8c28['style']['display']='block',_0x2c46c6['style']['display']='none',_0xdbd1b9));}['_closeRevisionViewer'](_0x339526){const _0x4ccf79=this['editor']['config']['get']('revisionHistory.editorContainer');return this['editor']['config']['get']('revisionHistory.viewerContainer')['style']['display']='none',_0x4ccf79['style']['display']='',_0x339526['destroy']();}async['_restoreRevision'](_0x700dff){const _0x30d835=this['editor'],_0x4b0d71=this['_viewerEditor']['plugins']['get']('RevisionViewer'),_0x6e3151=_0x30d835['plugins']['get']('RevisionTracker'),_0x1d9506=_0x4b0d71['repository']['getRevision'](_0x700dff);let _0x49753a,_0x211b34,_0x2a40e7;try{_0x49753a=await _0x4b0d71['getRevisionData'](_0x1d9506),_0x211b34=await _0x4b0d71['getRevisionRootsAttributes'](_0x1d9506);}catch(_0x1deb84){return void console['error'](_0x1deb84);}_0x30d835['model']['change'](_0x3711f3=>{for(const _0xd17f18 of Array['from'](_0x30d835['model']['markers']['getMarkersGroup']('restrictedEditingException')))_0x3711f3['removeMarker'](_0xd17f18);}),_0x4b0d71['isReady']=!0x1,_0x30d835['model']['enqueueChange'](_0x5573aa=>{_0x5573aa['setSelection'](null),_0x5573aa['removeSelectionAttribute'](_0x30d835['model']['document']['selection']['getAttributeKeys']());const _0x34a79c=Object['keys'](_0x49753a);for(const _0x213a4e of _0x30d835['model']['document']['roots'])'$graveyard'!=_0x213a4e['rootName']&&_0x213a4e['isAttached']()&&!_0x34a79c['includes'](_0x213a4e['rootName'])&&_0x5573aa['detachRoot'](_0x213a4e);for(const _0x54cde8 of _0x34a79c){let _0x1cc4ab=_0x30d835['model']['document']['getRoot'](_0x54cde8);_0x1cc4ab&&_0x1cc4ab['isAttached']()||(_0x1cc4ab=_0x5573aa['addRoot'](_0x54cde8));const _0x253929=_0x211b34[_0x54cde8],_0x34fb4c=Object['keys'](_0x253929),_0x2929fe=_0x49753a[_0x54cde8];for(const _0x581996 of _0x1cc4ab['getAttributeKeys']())_0x34fb4c['includes'](_0x581996)||_0x5573aa['removeAttribute'](_0x581996,_0x1cc4ab);for(const _0x453e63 of _0x34fb4c)_0x5573aa['setAttribute'](_0x453e63,_0x211b34[_0x54cde8][_0x453e63],_0x1cc4ab);_0x5573aa['remove'](_0x5573aa['createRangeIn'](_0x1cc4ab)),_0x5573aa['insert'](_0x30d835['data']['parse'](_0x2929fe,_0x1cc4ab),_0x1cc4ab,0x0);}});const _0x318869=m(_0x30d835['locale'],'Restored');if(_0x1d9506['name'])_0x2a40e7=-0x1==_0x1d9506['name']['indexOf'](_0x318869)?_0x318869+':\x20'+_0x1d9506['name']:_0x1d9506['name'];else _0x2a40e7=_0x318869+':\x20'+(_0x1d9506['createdAt']['toLocaleDateString'](_0x30d835['locale']['uiLanguage'],{'month':'long','day':'numeric'})+',\x20'+_0x1d9506['createdAt']['toLocaleTimeString'](_0x30d835['locale']['uiLanguage'],{'hour':'numeric','minute':'numeric'}));return await _0x6e3151['saveRevision']({'name':_0x2a40e7}),_0x4b0d71['isReady']=!0x0,_0x30d835['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}}export{a as Revision,k as RevisionHistory,u as RevisionHistoryUI,l as RevisionTracker,d as RevisionViewer,ge as RevisionViewerLoadingOverlay,g as RevisionViewerUI,j as RevisionsRepository,w as RevisionsSidebar};
|
|
28
|
+
bt();static get['pluginName'](){return'RevisionsSidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[d];}constructor(_0x21aa4e){super(_0x21aa4e),this['_revisionViewer']=_0x21aa4e['plugins']['get'](d),this['_revisionsRepository']=this['_revisionViewer']['repository'],this['_sidebarView']=null;}['init'](){const _0x4440ee=this['_revisionsRepository']['_revisions'],_0x4649f4=this['_createRevisionActions'](),_0x8ed7fd=this['editor']['config']['get']('revisionHistory.viewerSidebarContainer');this['_sidebarView']=new ci(this['editor']['locale'],_0x4440ee,_0x4649f4,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',(_0x180f4f,_0x2ed8b7)=>{_0x2ed8b7['revisionViews']['on']('add',(_0x1fd7a8,_0xf06de4)=>{_0xf06de4['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)),_0x8ed7fd['appendChild'](this['_sidebarView']['element']);}['destroy'](){this['_sidebarView']['element']['remove'](),this['_sidebarView']['destroy']();}['_handleEditorDataReady'](){const _0x4b784f=this['_revisionsRepository']['getRevision'](0x0);if(_0x4b784f){const _0x57562b=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x4b784f['id']);this['_revisionViewer']['compare'](_0x4b784f,_0x57562b);}}['_handleRevisionSelected'](_0x31f66c,_0x414bc9){const _0x14c605=this['_revisionsRepository']['getRevision'](_0x414bc9['id']),_0x557aa5=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x14c605['id']);this['_revisionViewer']['compare'](_0x14c605,_0x557aa5);}['_handleRevisionSetName'](_0x172ca0,_0x247c99){this['_revisionsRepository']['getRevision'](_0x247c99['id'])['setName'](_0x247c99['name']);}['_handleDiffChange'](_0x48a5f2,_0x1daa96,_0x3f4f8f){const _0x20d2fb=this['_revisionsRepository']['getRevisionsInDiff'](_0x3f4f8f);_0x20d2fb['length']>0x2?(this['_sidebarView']['highlightRevisions'](_0x20d2fb),this['_sidebarView']['selectRevision'](null)):(this['_sidebarView']['highlightRevisions']([]),this['_sidebarView']['selectRevision'](_0x20d2fb[0x0]));}['_createRevisionActions'](){const _0x19e489=this['editor'],_0x25aec7=w['availableRevisionActions'],_0x46aabe=_0x19e489['config']['get']('revisionHistory.revisionActions')||w['defaultRevisionActions'];if(_0x46aabe['length'])return _0x46aabe['map'](_0x21481=>{const _0x8fbb30='string'==typeof _0x21481?Object['assign']({},_0x25aec7[_0x21481]):_0x21481;return _0x8fbb30['action']=_0x8fbb30['action']['bind'](this,_0x19e489),_0x8fbb30['isVisible']&&(_0x8fbb30['isVisible']=_0x8fbb30['isVisible']['bind'](this,_0x19e489)),_0x8fbb30;});}}function bt(){return{'compareAgainstSelected':{'name':'Compare\x20against\x20selected','action':({plugins:_0x514042},_0x29a539)=>{const _0x441b36=_0x514042['get'](d),_0x42665c=_0x441b36['repository'];let _0x5e2cfc=_0x441b36['diff']['newRevisionId'],_0x45a3fd=_0x29a539['id'];_0x42665c['getIndex'](_0x5e2cfc)>_0x42665c['getIndex'](_0x45a3fd)&&([_0x5e2cfc,_0x45a3fd]=[_0x45a3fd,_0x5e2cfc]),_0x441b36['compare'](_0x5e2cfc,_0x45a3fd);},'isVisible':({plugins:_0x59d9be},_0x2523cc)=>{const _0x3b3b51=_0x59d9be['get'](d);return!(_0x3b3b51['repository']['getRevisionsInDiff'](_0x3b3b51['diff'])['length']>0x2)&&!_0x2523cc['isSelected'];}},'restoreRevision':{'name':'Restore\x20this\x20revision','action':(_0x189599,{id:_0x31ecd3})=>{_0x189599['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x31ecd3);},'isVisible':({plugins:_0x214fe1},_0x1160fe)=>!!_0x214fe1['get'](d)['repository']['getLaterVisibleRevision'](_0x1160fe['id'])},'nameRevision':{'name':'Name\x20this\x20revision','action':({plugins:_0x1f0fa8},{id:_0x1a23f4,revisionNameView:_0x392363})=>{const _0x56cbe7=_0x1f0fa8['get'](d),_0x1389fe=_0x56cbe7['repository']['getEarlierVisibleRevision'](_0x1a23f4);_0x56cbe7['compare'](_0x1a23f4,_0x1389fe),_0x392363['focus'](),_0x392363['fieldView']['select']();}}};}class rt extends st{['_view'];['_toolbarConfig'];['_elementReplacer'];get['view'](){return this['_view'];}constructor(_0x571403,_0x371af8){super(_0x571403),this['_view']=_0x371af8,this['_toolbarConfig']=ot(_0x571403['config']['get']('toolbar')),this['_elementReplacer']=new ht();}get['element'](){return this['view']['element'];}['init'](_0x140c1b){const _0x1c8939=this['editor'],_0x13d9fc=this['view'],_0x1ba612=_0x1c8939['editing']['view'],_0x41ad95=_0x13d9fc['editable'],_0x91a93f=_0x1ba612['document']['getRoot']();_0x41ad95['name']=_0x91a93f['rootName'],_0x13d9fc['render']();const _0xe68563=_0x41ad95['element'];this['setEditableElement'](_0x41ad95['name'],_0xe68563),_0x13d9fc['editable']['bind']('isFocused')['to'](this['focusTracker']),_0x1ba612['attachDomRoot'](_0xe68563),this['_elementReplacer']['replace'](_0x140c1b,this['element']),this['_initToolbar'](),this['fire']('ready');}['destroy'](){super['destroy']();const _0x202dbb=this['view'],_0x49cb72=this['editor']['editing']['view'];this['_elementReplacer']['restore'](),_0x49cb72['detachDomRoot'](_0x202dbb['editable']['name']),_0x202dbb['destroy']();}['_initToolbar'](){const _0x425ac4=this['view'];_0x425ac4['stickyPanel']['bind']('isActive')['to'](this['focusTracker'],'isFocused'),_0x425ac4['stickyPanel']['limiterElement']=_0x425ac4['element'],_0x425ac4['stickyPanel']['bind']('viewportTopOffset')['to'](this,'viewportOffset',({top:_0xaf8e19})=>_0xaf8e19),_0x425ac4['toolbar']['fillFromConfig'](this['_toolbarConfig'],this['componentFactory']),this['addToolbar'](_0x425ac4['toolbar']);}}class et extends ct{['_editable'];['stickyPanel'];['toolbar'];get['editable'](){return this['_editable'];}constructor(_0x2db279,_0x3037fa,_0x3fe624={}){super(_0x2db279),this['stickyPanel']=new ut(_0x2db279),this['toolbar']=new lt(_0x2db279,{'shouldGroupWhenFull':_0x3fe624['shouldToolbarGroupWhenFull']}),this['_editable']=new dt(_0x2db279,_0x3037fa);}['render'](){super['render'](),this['stickyPanel']['content']['add'](this['toolbar']),this['top']['add'](this['stickyPanel']),this['main']['add'](this['editable']);}}class R extends/* #__PURE__ -- @preserve */
|
|
29
|
+
it(tt){['_ui'];get['ui'](){return this['_ui'];}constructor(_0x315b0b,_0x1b3f1e){super(_0x1b3f1e),this['sourceElement']=_0x315b0b,this['model']['document']['createRoot']();const _0x1d5282=new et(this['locale'],this['editing']['view'],{'shouldToolbarGroupWhenFull':!0x0});this['_ui']=new rt(this,_0x1d5282);}['destroy'](){return this['updateSourceElement'](),this['ui']['destroy'](),super['destroy']();}static async['create'](_0x4e1ef6,_0x46efc8){const _0x4b832b=new this(_0x4e1ef6,_0x46efc8);return await _0x4b832b['initPlugins'](),await _0x4b832b['ui']['init'](_0x4e1ef6),await _0x4b832b['data']['init'](_0x4b832b['config']['get']('initialData')||''),_0x4b832b['fire']('ready'),_0x4b832b;}}const p=['RevisionHistoryUI','RestrictedEditingMode'];class Rt extends _0x495045{['result'];static get['pluginName'](){return'RevisionViewerIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x5545d3){function _0x1217a0(_0x482957){return _0x482957['map'](_0x2778c8=>String['fromCharCode'](_0x2778c8))['join']('');}super(_0x5545d3),this['result']='end',_0x5545d3[_0x1217a0([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1217a0([0x76,0x69,0x65,0x77])][_0x1217a0([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x1217a0([0x61,0x75,0x74,0x6f]),_0x5545d3[_0x1217a0([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x1217a0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x1217a0([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x1217a0([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x1217a0([0x6f,0x6b])});}}class k extends _0x495045{['_viewerEditor'];static get['pluginName'](){return'RevisionHistory';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[l,u];}constructor(_0x2f8a77){if(super(_0x2f8a77),!this['editor']['config']['get']('revisionHistory'))throw new _0x3a49a4('revision-history-missing-configuration',this);this['_viewerEditor']=null,this['editor']['config']['define']('revisionHistory.showRevisionViewerCallback',_0x4f1fcf=>this['_showRevisionViewer']({..._0x4f1fcf,'translations':this['editor']['locale']['translations']})),this['editor']['config']['define']('revisionHistory.closeRevisionViewerCallback',_0x4b2d71=>this['_closeRevisionViewer'](_0x4b2d71)),this['editor']['config']['define']('revisionHistory.restoreRevisionCallback',_0x456d8e=>this['_restoreRevision'](_0x456d8e)),this['editor']['config']['define']('revisionHistory.requireRevisionName',!0x1),this['_enhanceShowRevisionViewerCallback'](),this['_enhanceCloseRevisionViewerCallback']();}set['adapter'](_0x4d782b){this['editor']['plugins']['get']('RevisionTracker')['adapter']=_0x4d782b;}get['adapter'](){return this['editor']['plugins']['get']('RevisionTracker')['adapter'];}['addRevisionData'](_0x13a739){return this['editor']['plugins']['get']('RevisionTracker')['addRevisionData'](_0x13a739);}['getRevision'](_0xe3a55c){return this['editor']['plugins']['get']('RevisionsRepository')['getRevision'](_0xe3a55c);}['getRevisions'](_0x562e82){return this['editor']['plugins']['get']('RevisionsRepository')['getRevisions'](_0x562e82||{'toJSON':!0x1});}['_getRevisionViewerEditorConfig'](){const _0x5e7951=this['editor'],_0x3011f7=_0x5cd1f0(_0x5e7951,p),_0x4d9130=_0x5e7951['plugins']['get']('RevisionTracker'),_0x1078ea=_0x5e7951['plugins']['get']('Users')['users'];return _0x3011f7['toolbar']=['exitToEditing','restoreRevision','changesNavigation'],delete _0x3011f7['lazyRoots'],(_0x3011f7['plugins']['push'](Rt,d,g,class extends _0x495045{static get['requires'](){return[d,'Users'];}['init'](){const _0x54a106=this['editor']['plugins']['get']('Users');for(const _0x12dea7 of _0x1078ea)_0x12dea7['isAnonymous']||_0x54a106['getUser'](_0x12dea7['id'])||_0x54a106['addUser'](_0x12dea7);const _0x2bc50e=_0x4d9130['repository']['getRevisions']();let _0x492ad0=null;const _0x5ab251=this['editor']['plugins']['get']('RevisionViewer');_0x5ab251['adapter']=_0x4d9130['adapter'],_0x5ab251['bind']('isEnabled')['to'](_0x4d9130),this['editor']['commands']['get']('restoreRevision')['bind']('isEnabled')['to'](_0x5e7951,'isReadOnly',_0xd2dc03=>!_0xd2dc03);for(const _0x58fc2b of _0x2bc50e){const _0x3f3754=null===_0x58fc2b['creator'];if(_0x3f3754&&_0x58fc2b['toVersion']===_0x58fc2b['fromVersion'])continue;const _0x51367e=_0x58fc2b['toJSON']();_0x5ab251['addRevisionData'](_0x51367e,(_0x156247,_0xf1c57d,_0x575002)=>{if(_0x3f3754){if(_0x492ad0)_0x492ad0['_update'](_0x156247,_0xf1c57d);else{if(!_0xf1c57d){const _0x26d2db=_0x575002['toJSON']();_0x26d2db['id']=_0x22b130(),_0x4d9130['saveRevision'](_0x26d2db,_0x575002['toVersion'])['then'](_0x3d8aaa=>{_0x492ad0=_0x3d8aaa;});}}}else _0x58fc2b['_update'](_0x156247,_0xf1c57d);});}}},w),_0x3011f7);}['_enhanceShowRevisionViewerCallback'](){const _0x308994=this['editor']['config']['get']('revisionHistory')['showRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.showRevisionViewerCallback',async()=>{this['editor']['enableReadOnlyMode']('revision-history-viewer-opened');const _0x4c2706=this['editor']['plugins']['get']('RevisionTracker');if(this['editor']['plugins']['has']('Autosave')){const _0x5cd17b=this['editor']['plugins']['get']('Autosave');await _0x5cd17b['save']();}else await _0x4c2706['update']();if(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('Dialog')){const _0x29f7ca=this['editor']['plugins']['get']('Dialog');_0x29f7ca['isOpen']&&_0x29f7ca['hide']();}const _0x1108fe=this['_getRevisionViewerEditorConfig']();return _0x308994(_0x1108fe)['then'](_0x11e8ab=>{return(this['_viewerEditor']=_0x11e8ab,this['editor']['plugins']['has']('Annotations'))&&this['editor']['plugins']['get']('Annotations')['refreshVisibility'](),_0x11e8ab;})['catch'](_0x3389ba=>(console['error'](_0x3389ba),this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),null));});}['_enhanceCloseRevisionViewerCallback'](){const _0x57bad2=this['editor']['config']['get']('revisionHistory')['closeRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.closeRevisionViewerCallback',()=>(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['_viewerEditor']['plugins']['get']('RevisionViewer')['_cleanUp'](),_0x57bad2(this['_viewerEditor'])['then'](()=>{if(this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),this['_viewerEditor']=null,this['editor']['plugins']['has']('Annotations')){const _0x3f9388=this['editor']['plugins']['get']('Annotations');_0x3f9388['refreshVisibility'](),_0x3f9388['refreshPositioning']();}})));}['_showRevisionViewer'](_0x2dac0e){const _0x159c56=this['editor']['config']['get']('revisionHistory.editorContainer'),_0x1be374=this['editor']['config']['get']('revisionHistory.viewerContainer'),_0x59476b=this['editor']['config']['get']('revisionHistory.viewerEditorElement');return R['create'](_0x59476b,_0x2dac0e)['then'](_0x571673=>(_0x1be374['style']['display']='block',_0x159c56['style']['display']='none',_0x571673));}['_closeRevisionViewer'](_0x405876){const _0xf3a50b=this['editor']['config']['get']('revisionHistory.editorContainer');return this['editor']['config']['get']('revisionHistory.viewerContainer')['style']['display']='none',_0xf3a50b['style']['display']='',_0x405876['destroy']();}async['_restoreRevision'](_0x3c7d1e){const _0x5847d2=this['editor'],_0xd6f9d0=this['_viewerEditor']['plugins']['get']('RevisionViewer'),_0x5a5085=_0x5847d2['plugins']['get']('RevisionTracker'),_0x3b2a78=_0xd6f9d0['repository']['getRevision'](_0x3c7d1e);let _0x2edbac,_0x517392,_0x377a71;try{_0x2edbac=await _0xd6f9d0['getRevisionData'](_0x3b2a78),_0x517392=await _0xd6f9d0['getRevisionRootsAttributes'](_0x3b2a78);}catch(_0x15625b){return void console['error'](_0x15625b);}_0x5847d2['model']['change'](_0x5c0ddf=>{for(const _0x42b36f of Array['from'](_0x5847d2['model']['markers']['getMarkersGroup']('restrictedEditingException')))_0x5c0ddf['removeMarker'](_0x42b36f);}),_0xd6f9d0['isReady']=!0x1,_0x5847d2['model']['enqueueChange'](_0x44a2ee=>{_0x44a2ee['setSelection'](null),_0x44a2ee['removeSelectionAttribute'](_0x5847d2['model']['document']['selection']['getAttributeKeys']());const _0x38255b=Object['keys'](_0x2edbac);for(const _0x5c51d5 of _0x5847d2['model']['document']['roots'])'$graveyard'!=_0x5c51d5['rootName']&&_0x5c51d5['isAttached']()&&!_0x38255b['includes'](_0x5c51d5['rootName'])&&_0x44a2ee['detachRoot'](_0x5c51d5);for(const _0x45600d of _0x38255b){let _0xd76b8c=_0x5847d2['model']['document']['getRoot'](_0x45600d);_0xd76b8c&&_0xd76b8c['isAttached']()||(_0xd76b8c=_0x44a2ee['addRoot'](_0x45600d));const _0x3b1085=_0x517392[_0x45600d],_0x2ae4b2=Object['keys'](_0x3b1085),_0x2075c8=_0x2edbac[_0x45600d];for(const _0x2cb8ef of _0xd76b8c['getAttributeKeys']())_0x2ae4b2['includes'](_0x2cb8ef)||_0x44a2ee['removeAttribute'](_0x2cb8ef,_0xd76b8c);for(const _0x393d59 of _0x2ae4b2)_0x44a2ee['setAttribute'](_0x393d59,_0x517392[_0x45600d][_0x393d59],_0xd76b8c);_0x44a2ee['remove'](_0x44a2ee['createRangeIn'](_0xd76b8c)),_0x44a2ee['insert'](_0x5847d2['data']['parse'](_0x2075c8,_0xd76b8c),_0xd76b8c,0x0);}});const _0x406f50=m(_0x5847d2['locale'],'Restored');if(_0x3b2a78['name'])_0x377a71=-0x1==_0x3b2a78['name']['indexOf'](_0x406f50)?_0x406f50+':\x20'+_0x3b2a78['name']:_0x3b2a78['name'];else _0x377a71=_0x406f50+':\x20'+(_0x3b2a78['createdAt']['toLocaleDateString'](_0x5847d2['locale']['uiLanguage'],{'month':'long','day':'numeric'})+',\x20'+_0x3b2a78['createdAt']['toLocaleTimeString'](_0x5847d2['locale']['uiLanguage'],{'hour':'numeric','minute':'numeric'}));return await _0x5a5085['saveRevision']({'name':_0x377a71}),_0xd6f9d0['isReady']=!0x0,_0x5847d2['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}}export{a as Revision,k as RevisionHistory,u as RevisionHistoryUI,l as RevisionTracker,d as RevisionViewer,le as RevisionViewerLoadingOverlay,g as RevisionViewerUI,j as RevisionsRepository,w as RevisionsSidebar};
|