@ckeditor/ckeditor5-revision-history 44.1.0-alpha.1 → 44.1.0-alpha.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/revision-history.js +1 -1
- package/dist/index.js +6 -6
- package/package.json +8 -8
- package/src/revisionsrepository.js +1 -1
- package/src/ui/revision/createrevisionactionsdropdown.js +1 -1
- package/src/ui/revision/revisionauthorview.js +1 -1
- package/src/ui/revision/revisionnameview.js +1 -1
- package/src/ui/revision/revisionview.js +2 -2
- package/src/ui/revision/subrevisioncollapserview.js +1 -1
- package/src/ui/revision/subrevisionview.js +1 -1
- package/src/ui/revisionhistory/revisionhistorysaverevisionformview.js +1 -1
- package/src/ui/revisionhistory/revisionhistoryui.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebar.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebarheaderview.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebartimeperiodview.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebarview.js +1 -1
- package/src/ui/revisionssidebar/utils.js +1 -1
- package/src/ui/revisionviewer/changedetailsview.js +1 -1
- package/src/ui/revisionviewer/changesnavigationview.js +1 -1
- package/src/ui/revisionviewer/revisionviewerloadingoverlay.js +1 -1
- package/src/ui/revisionviewer/revisionviewerui.js +1 -1
package/dist/index.js
CHANGED
|
@@ -20,10 +20,10 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{ObservableMixin as
|
|
24
|
-
_0xa03473(){['id'];['creator'];['authors'];['diffData'];['toVersion'];['fromVersion'];['model'];constructor(_0x9cde84){super(),this['id']=_0x9cde84['id']||_0x27b216(),this['creator']=_0x9cde84['creator']||null,this['authors']=_0x9cde84['authors']||[],this['diffData']=_0x9cde84['diffData']||null,this['toVersion']=_0x9cde84['toVersion']||0x0,this['fromVersion']=_0x9cde84['fromVersion']||0x0,this['set']('name',_0x9cde84['name']||''),this['set']('createdAt',_0x9cde84['createdAt']||new Date()),this['set']('attributes',_0x9cde84['attributes']||{});}['setName'](_0x45a27f){this['_update']({'name':_0x45a27f});}['setAttribute'](_0x1daf5d,_0x4536ca){const _0x15e9c1=_0x3f361f(this['attributes']);_0x57bcb5(_0x15e9c1,_0x1daf5d,_0x4536ca),this['_update']({'attributes':_0x15e9c1});}['removeAttribute'](_0x453395){const _0x5c71ad=_0x3f361f(this['attributes']);_0x30d47d(_0x5c71ad,_0x453395),this['_update']({'attributes':_0x5c71ad});}['_update'](_0x2c30f6,_0x418a8a=!0x1){let _0x35dfa9=!0x1;const _0x571053={'id':this['id']},_0x266943=['name','createdAt','diffData','authors','attributes','toVersion','fromVersion','creatorId'];for(const _0x196ceb of _0x266943){const _0x364fbd=_0x2c30f6[_0x196ceb];void 0x0!==_0x364fbd&&_0x364fbd!==this[_0x196ceb]&&(this[_0x196ceb]=_0x364fbd,_0x571053[_0x196ceb]=_0x364fbd,_0x35dfa9=!0x0);}_0x35dfa9&&(_0x571053['authors']&&(_0x571053['authorsIds']=_0x571053['authors']['map'](_0x2b9a49=>_0x2b9a49['id']),delete _0x571053['authors']),this['fire']('_update',_0x571053,_0x418a8a));}['toJSON'](){return{'id':this['id'],'name':this['name'],'creatorId':this['creator']?this['creator']['id']:null,'authorsIds':this['authors']['map'](_0x1183a4=>_0x1183a4['id']),'diffData':this['diffData'],'createdAt':this['createdAt'],'attributes':this['attributes'],'fromVersion':this['fromVersion'],'toVersion':this['toVersion']};}}class j extends _0x27f686{['_revisions'];static get['requires'](){return[_0x17470c];}static get['pluginName'](){return'RevisionsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['length'](){return this['_revisions']['length'];}constructor(_0x25a117){super(_0x25a117),this['_revisions']=new _0x2987a6();}['afterInit'](){!async function(_0x2330ee){const _0x2981c0=_0x42c4f6([0x49,0x76,0x68,0x67,0x34,0x4c,0x75,0x48,0x6d,0x52,0x30,0x6b,0x69,0x4a,0x46,0x66,0x6c,0x39,0x73,0x44,0x65,0x77,0x32,0x64,0x62,0x51,0x36,0x6f,0x54,0x58,0x55,0x33,0x53,0x72,0x79,0x41,0x31,0x47,0x59,0x70,0x71,0x7a,0x50,0x37,0x56,0x35,0x57,0x4d,0x5a,0x78,0x74,0x42,0x45,0x4e,0x61,0x4f,0x4b,0x43,0x6a,0x6e,0x63,0x38]),_0x1d566c=0xeb829,_0x5dc91b=0x58250a0d,_0x48206a=0x58225375^_0x5dc91b,_0x25dcfc=window[_0x42c4f6([0x44,0x61,0x74,0x65])][_0x42c4f6([0x6e,0x6f,0x77])](),_0x361d47=_0x2330ee[_0x42c4f6([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x55acc3=new window[(_0x42c4f6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x37aad8=>{_0x361d47[_0x42c4f6([0x6f,0x6e,0x63,0x65])](_0x42c4f6([0x72,0x65,0x61,0x64,0x79]),_0x37aad8);}),_0x40e0b9={[_0x42c4f6([0x6b,0x74,0x79])]:_0x42c4f6([0x45,0x43]),[_0x42c4f6([0x75,0x73,0x65])]:_0x42c4f6([0x73,0x69,0x67]),[_0x42c4f6([0x63,0x72,0x76])]:_0x42c4f6([0x50,0x2d,0x32,0x35,0x36]),[_0x42c4f6([0x78])]:_0x42c4f6([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]),[_0x42c4f6([0x79])]:_0x42c4f6([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]),[_0x42c4f6([0x61,0x6c,0x67])]:_0x42c4f6([0x45,0x53,0x32,0x35,0x36])},_0x19a9ef=_0x361d47[_0x42c4f6([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x42c4f6([0x67,0x65,0x74])](_0x42c4f6([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x56bcb0(){let _0x19e680,_0x51c847=null,_0x153fad=null;try{if(_0x19a9ef==_0x42c4f6([0x47,0x50,0x4c]))return _0x42c4f6([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x19e680=_0x83e59a(),!_0x19e680)return _0x42c4f6([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x19e680[_0x42c4f6([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x153fad=_0x281fee(_0x19e680[_0x42c4f6([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x19e680[_0x42c4f6([0x6a,0x74,0x69])])),await _0x4a9c28()?_0x399169()?_0x57ea80()?_0x42c4f6([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x4bea57()?(_0x19e680[_0x42c4f6([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x42c4f6([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x51c847=_0x2c72ac(_0x42c4f6([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x19e680[_0x42c4f6([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x42c4f6([0x74,0x72,0x69,0x61,0x6c])&&(_0x51c847=_0x2c72ac(_0x42c4f6([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),_0x19e680[_0x42c4f6([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x42c4f6([0x64,0x65,0x76,0x65,0x6c,0x6f,0x70,0x6d,0x65,0x6e,0x74])&&(_0x51c847=_0x2c72ac(_0x42c4f6([0x44,0x65,0x76,0x65,0x6c,0x6f,0x70,0x6d,0x65,0x6e,0x74,0x4c,0x69,0x6d,0x69,0x74]))),await _0x2b8ebc()):_0x42c4f6([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x42c4f6([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x42c4f6([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x5cac94){return _0x42c4f6([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x57ea80(){const _0x2c5d06=[_0x42c4f6([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x42c4f6([0x74,0x72,0x69,0x61,0x6c])][_0x42c4f6([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x19e680[_0x42c4f6([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x25dcfc/0x3e8:0xe10*_0x48206a;return _0x19e680[_0x42c4f6([0x65,0x78,0x70])]<_0x2c5d06;}function _0x399169(){const _0x41ef52=_0x19e680[_0x42c4f6([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x41ef52)return!0x1;if(_0x41ef52[_0x42c4f6([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x42c4f6([0x2a])))return!0x0;if(_0x41ef52[_0x42c4f6([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x42c4f6([0x52,0x48])))return!0x0;if(_0x41ef52[_0x42c4f6([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x42c4f6([0x52,0x52,0x48]))){if(_0x9ef89a())return!0x0;if(_0x5741cb()||_0x430e69())return!0x0;}return!0x1;}function _0x4bea57(){const _0x392a2c=_0x19e680[_0x42c4f6([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x392a2c||0x0==_0x392a2c[_0x42c4f6([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x1cc0f5}=new URL(window[_0x42c4f6([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x392a2c[_0x42c4f6([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1cc0f5))return!0x0;const _0xe8a958=_0x1cc0f5[_0x42c4f6([0x73,0x70,0x6c,0x69,0x74])](_0x42c4f6([0x2e]));return _0x392a2c[_0x42c4f6([0x66,0x69,0x6c,0x74,0x65,0x72])](_0xd9b7a2=>_0xd9b7a2[_0x42c4f6([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x42c4f6([0x2a])))[_0x42c4f6([0x6d,0x61,0x70])](_0x5afc57=>_0x5afc57[_0x42c4f6([0x73,0x70,0x6c,0x69,0x74])](_0x42c4f6([0x2e])))[_0x42c4f6([0x73,0x6f,0x6d,0x65])](_0x3eb722=>_0xe8a958[_0x42c4f6([0x65,0x76,0x65,0x72,0x79])]((_0x8347be,_0x5cfbfb)=>_0x3eb722[_0x5cfbfb]===_0x8347be||_0x3eb722[_0x5cfbfb]===_0x42c4f6([0x2a])));}function _0x2b8ebc(){return _0x51c847&&_0x153fad?new window[(_0x42c4f6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x5313cc,_0x93788b)=>{_0x51c847[_0x42c4f6([0x74,0x68,0x65,0x6e])](_0x5313cc,_0x93788b),_0x153fad[_0x42c4f6([0x74,0x68,0x65,0x6e])](_0x3c9796=>{_0x3c9796!=_0x42c4f6([0x56,0x61,0x6c,0x69,0x64])&&_0x5313cc(_0x3c9796);},_0x93788b);}):_0x51c847||_0x153fad||_0x42c4f6([0x56,0x61,0x6c,0x69,0x64]);}}function _0x281fee(_0x23fa63,_0xad0276){return new window[(_0x42c4f6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1baf47=>{if(_0x3fd344())return _0x1baf47(_0x42c4f6([0x56,0x61,0x6c,0x69,0x64]));_0x2a27b2(),_0x361d47[_0x42c4f6([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x42c4f6([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x4a5724=!0x1;const _0x34c3e6=_0x27b216();function _0x5ec68b(_0x573b23){return!!_0x573b23&&(typeof _0x573b23===_0x42c4f6([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x573b23===_0x42c4f6([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x573b23[_0x42c4f6([0x74,0x68,0x65,0x6e])]===_0x42c4f6([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x573b23[_0x42c4f6([0x63,0x61,0x74,0x63,0x68])]===_0x42c4f6([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x4e2b72(_0x462d3f){_0x552a80(_0x462d3f)[_0x42c4f6([0x74,0x68,0x65,0x6e])](_0x118475=>{if(!_0x118475||_0x118475[_0x42c4f6([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x42c4f6([0x6f,0x6b]))return _0x42c4f6([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x4ce462(_0x4e56ab(_0x34c3e6+_0xad0276))!=_0x118475[_0x42c4f6([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x42c4f6([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x42c4f6([0x56,0x61,0x6c,0x69,0x64]);})[_0x42c4f6([0x74,0x68,0x65,0x6e])](_0x23c49a=>(_0x52e527(),_0x23c49a),()=>{const _0x545711=_0x24ce80();return null==_0x545711?(_0x52e527(),_0x42c4f6([0x56,0x61,0x6c,0x69,0x64])):_0x42c4f6(_0x25dcfc-_0x545711>(0x7c298e0d^_0x5dc91b)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x42c4f6([0x74,0x68,0x65,0x6e])](_0x1baf47)[_0x42c4f6([0x63,0x61,0x74,0x63,0x68])](()=>{_0x1baf47(_0x42c4f6([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x4e6b94=0x5813e48d^_0x5dc91b;function _0x52e527(){const _0x455bc2=_0x42c4f6([0x6c,0x6c,0x63,0x74,0x2d])+_0x4ce462(_0x4e56ab(_0x23fa63)),_0xf07366=_0x3d4de6(_0x4ce462(window[_0x42c4f6([0x4d,0x61,0x74,0x68])][_0x42c4f6([0x63,0x65,0x69,0x6c])](_0x25dcfc/_0x4e6b94)));window[_0x42c4f6([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x42c4f6([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x455bc2,_0xf07366);}function _0x24ce80(){const _0xbc70c6=_0x42c4f6([0x6c,0x6c,0x63,0x74,0x2d])+_0x4ce462(_0x4e56ab(_0x23fa63)),_0x483c25=window[_0x42c4f6([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x42c4f6([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0xbc70c6);return _0x483c25?window[_0x42c4f6([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3d4de6(_0x483c25),0x10)*_0x4e6b94:null;}function _0x552a80(_0x406d0d){return new window[(_0x42c4f6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x56e535,_0x353470)=>{_0x406d0d[_0x42c4f6([0x74,0x68,0x65,0x6e])](_0x56e535,_0x353470),window[_0x42c4f6([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x353470,0x5824decd^_0x5dc91b);});}}_0x361d47[_0x42c4f6([0x6f,0x6e])](_0x42c4f6([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x2ecad2,_0x53e3f1)=>{if(_0x53e3f1[0x0]!=_0x23fa63)return _0x1baf47(_0x42c4f6([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x53e3f1[0x1]={..._0x53e3f1[0x1],[_0x42c4f6([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x34c3e6};},{[_0x42c4f6([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x42c4f6([0x68,0x69,0x67,0x68])}),_0x361d47[_0x42c4f6([0x6f,0x6e])](_0x42c4f6([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x1fadbc=>{_0x5ec68b(_0x1fadbc[_0x42c4f6([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x4a5724=!0x0,_0x4e2b72(_0x1fadbc[_0x42c4f6([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x42c4f6([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x42c4f6([0x6c,0x6f,0x77])}),_0x55acc3[_0x42c4f6([0x74,0x68,0x65,0x6e])](()=>{_0x4a5724||_0x1baf47(_0x42c4f6([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x3fd344(){return _0x361d47[_0x42c4f6([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x42c4f6([0x76,0x69,0x65,0x77])][_0x42c4f6([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x42c4f6([0x61,0x75,0x74,0x6f]);}function _0x2a27b2(){_0x361d47[_0x42c4f6([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x42c4f6([0x76,0x69,0x65,0x77])][_0x42c4f6([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x42c4f6([0x61,0x75,0x74,0x6f]);}}function _0x2c72ac(_0x2f4874){const _0x92ffcc=[new window[(_0x42c4f6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x55a31e=>setTimeout(_0x55a31e,0x582c34c1^_0x5dc91b)),_0x55acc3[_0x42c4f6([0x74,0x68,0x65,0x6e])](()=>new window[(_0x42c4f6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4ccaa7=>{const _0x327c88=0x58250a0a^_0x5dc91b,_0x4d6b78=_0x2330ee[_0x42c4f6([0x5f,0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x73])];function _0x583c35(){_0x4d6b78[_0x42c4f6([0x6c,0x65,0x6e,0x67,0x74,0x68])]>=_0x327c88&&_0x4ccaa7();}_0x583c35(),_0x4d6b78[_0x42c4f6([0x6f,0x6e])](_0x42c4f6([0x61,0x64,0x64]),_0x583c35);})),new window[(_0x42c4f6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x21607c=>{function _0x5c5496(){for(const _0x42f493 in window)if(window[_0x42c4f6([0x4e,0x75,0x6d,0x62,0x65,0x72])]['isNaN'](window[_0x42c4f6([0x4e,0x75,0x6d,0x62,0x65,0x72])](_0x42f493))&&window[_0x42f493]==_0x1d566c)return _0x21607c();_0x361d47[_0x42c4f6([0x73,0x74,0x61,0x74,0x65])]!=_0x42c4f6([0x64,0x65,0x73,0x74,0x72,0x6f,0x79,0x65,0x64])&&window[_0x42c4f6([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x5c5496,0x58251985^_0x5dc91b);}_0x3f27cf(_0x42c4f6([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))&&_0x5c5496();})];return window[_0x42c4f6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x42c4f6([0x72,0x61,0x63,0x65])](_0x92ffcc)[_0x42c4f6([0x74,0x68,0x65,0x6e])](()=>_0x2f4874);}async function _0x15e222(){if(await _0x55acc3,_0x3f27cf(_0x42c4f6([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))){const _0x521bf0=_0x2330ee[_0x42c4f6([0x67,0x65,0x74,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])](0x0),_0x242c8f=_0x2330ee[_0x42c4f6([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])](_0x521bf0[_0x42c4f6([0x69,0x64])]),_0x2f0d39=_0x451027(_0x42c4f6([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]));return await _0x2f0d39[_0x42c4f6([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])](_0x521bf0['id'],_0x242c8f?_0x242c8f['id']:null,!0x0),_0x2f0d39[_0x42c4f6([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x42c4f6([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x2f0d39[_0x42c4f6([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x2f0d39[_0x42c4f6([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])]=_0x4d6201,void(_0x2f0d39[_0x42c4f6([0x5f,0x67,0x65,0x74,0x44,0x69,0x66,0x66])]=_0x4d6201);}if(_0x3f27cf(_0x42c4f6([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]))){const _0x472dd5=_0x451027(_0x42c4f6([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]));_0x472dd5[_0x42c4f6([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x42c4f6([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x472dd5[_0x42c4f6([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x472dd5[_0x42c4f6([0x75,0x70,0x64,0x61,0x74,0x65])]=_0x4d6201,_0x472dd5[_0x42c4f6([0x73,0x61,0x76,0x65,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])]=_0x4d6201;}_0x361d47[_0x42c4f6([0x6d,0x6f,0x64,0x65,0x6c])][_0x42c4f6([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x4d6201,_0x361d47[_0x42c4f6([0x6d,0x6f,0x64,0x65,0x6c])][_0x42c4f6([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x4d6201,_0x361d47[_0x42c4f6([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x42c4f6([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x9ef89a(){return _0x3f27cf(_0x42c4f6([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x451027(_0x42c4f6([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x42c4f6([0x73,0x74,0x61,0x74,0x65])]==_0x42c4f6([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x5741cb(){return _0x3f27cf(_0x42c4f6([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 _0x430e69(){return _0x3f27cf(_0x42c4f6([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0xaacd93(_0x21617f){const _0x1a6071=_0x3b280e();_0x361d47[_0x1a6071]=_0x42c4f6([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])+_0x21617f,_0x21617f[_0x42c4f6([0x65,0x6e,0x64,0x73,0x57,0x69,0x74,0x68])](_0x42c4f6([0x4c,0x69,0x6d,0x69,0x74]))&&(window[_0x3b280e()]=_0x1d566c),_0x21617f!=_0x42c4f6([0x56,0x61,0x6c,0x69,0x64])&&_0x15e222();}function _0x3b280e(){const _0x1f426b=window[_0x42c4f6([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x42c4f6([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x42c4f6([0x6e,0x6f,0x77])]())[_0x42c4f6([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x42c4f6([0x2e]),'');let _0x56c0d=_0x42c4f6([0x49]);for(let _0x40e9b0=0x0;_0x40e9b0<_0x1f426b[_0x42c4f6([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x40e9b0+=0x2){let _0x1ae561=window[_0x42c4f6([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1f426b[_0x42c4f6([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x40e9b0,_0x40e9b0+0x2));_0x1ae561>=_0x2981c0[_0x42c4f6([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x1ae561-=_0x2981c0[_0x42c4f6([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x56c0d+=_0x2981c0[_0x1ae561];}return _0x56c0d;}function _0x83e59a(){const _0x586157=_0x19a9ef[_0x42c4f6([0x73,0x70,0x6c,0x69,0x74])](_0x42c4f6([0x2e]));if(0x3!=_0x586157[_0x42c4f6([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x1b44c3(_0x586157[0x1]);function _0x1b44c3(_0x273f5b){const _0x5a0217=_0x277733(_0x273f5b);return _0x5a0217&&_0x11584f()?_0x5a0217:null;function _0x11584f(){const _0x4aca51=_0x5a0217[_0x42c4f6([0x6a,0x74,0x69])],_0x38e398=window[_0x42c4f6([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4aca51[_0x42c4f6([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4aca51[_0x42c4f6([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x6cc02a={..._0x5a0217,[_0x42c4f6([0x6a,0x74,0x69])]:_0x4aca51[_0x42c4f6([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x4aca51[_0x42c4f6([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x6cc02a[_0x42c4f6([0x76,0x63])],_0x4e56ab(_0x6cc02a)==_0x38e398;}}}async function _0x4a9c28(){let _0x554dab=!0x0;try{const _0x10798d=_0x19a9ef[_0x42c4f6([0x73,0x70,0x6c,0x69,0x74])](_0x42c4f6([0x2e])),[_0x59b714,_0x955098,_0x1b8e41]=_0x10798d;return _0x20bf33(_0x59b714),await _0x121abb(_0x59b714,_0x955098,_0x1b8e41),_0x554dab;}catch(_0x254cb8){return!0x1;}function _0x20bf33(_0x43d659){const _0x2c7160=_0x277733(_0x43d659);_0x2c7160&&_0x2c7160[_0x42c4f6([0x61,0x6c,0x67])]==_0x42c4f6([0x45,0x53,0x32,0x35,0x36])||(_0x554dab=!0x1);}async function _0x121abb(_0x197aed,_0x2022c3,_0x2c7042){const _0x10adf5=window[_0x42c4f6([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x42c4f6([0x66,0x72,0x6f,0x6d])](_0x349721(_0x2c7042),_0x2d5efa=>_0x2d5efa[_0x42c4f6([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x10e3fb=new window[(_0x42c4f6([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x42c4f6([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x197aed+_0x42c4f6([0x2e])+_0x2022c3),_0x165f7a=window[_0x42c4f6([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x42c4f6([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x165f7a)return;const _0x2de2cf=await _0x165f7a[_0x42c4f6([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x42c4f6([0x6a,0x77,0x6b]),_0x40e0b9,{[_0x42c4f6([0x6e,0x61,0x6d,0x65])]:_0x42c4f6([0x45,0x43,0x44,0x53,0x41]),[_0x42c4f6([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x42c4f6([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x42c4f6([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x165f7a[_0x42c4f6([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x42c4f6([0x6e,0x61,0x6d,0x65])]:_0x42c4f6([0x45,0x43,0x44,0x53,0x41]),[_0x42c4f6([0x68,0x61,0x73,0x68])]:{[_0x42c4f6([0x6e,0x61,0x6d,0x65])]:_0x42c4f6([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x2de2cf,_0x10adf5,_0x10e3fb)||(_0x554dab=!0x1);}}function _0x277733(_0x39188b){return _0x39188b[_0x42c4f6([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x42c4f6([0x65,0x79]))?JSON[_0x42c4f6([0x70,0x61,0x72,0x73,0x65])](_0x349721(_0x39188b)):null;}function _0x349721(_0x24bd90){return window[_0x42c4f6([0x61,0x74,0x6f,0x62])](_0x24bd90[_0x42c4f6([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x42c4f6([0x2b]))[_0x42c4f6([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x42c4f6([0x2f])));}function _0x4e56ab(_0x2bc957){let _0x460151=0x1505;function _0x1c78f1(_0x47cd00){for(let _0x3da8b6=0x0;_0x3da8b6<_0x47cd00[_0x42c4f6([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3da8b6++){const _0x3481a6=_0x47cd00[_0x42c4f6([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x3da8b6);_0x460151=(_0x460151<<0x5)+_0x460151+_0x3481a6,_0x460151&=_0x460151;}}function _0x3a8f03(_0x5702f3){Array[_0x42c4f6([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x5702f3)?_0x5702f3[_0x42c4f6([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x3a8f03):_0x5702f3&&typeof _0x5702f3==_0x42c4f6([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x42c4f6([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x5702f3)[_0x42c4f6([0x73,0x6f,0x72,0x74])]()[_0x42c4f6([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x54a32c,_0x12a34a])=>{_0x1c78f1(_0x54a32c),_0x3a8f03(_0x12a34a);}):_0x1c78f1(window[_0x42c4f6([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x5702f3));}return _0x3a8f03(_0x2bc957),_0x460151>>>0x0;}function _0x4ce462(_0x341b63){return _0x341b63[_0x42c4f6([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x42c4f6([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x42c4f6([0x30]));}function _0x3d4de6(_0x9f8c99){return _0x9f8c99[_0x42c4f6([0x73,0x70,0x6c,0x69,0x74])]('')[_0x42c4f6([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x42c4f6([0x6a,0x6f,0x69,0x6e])]('');}function _0x3f27cf(_0x240cd4){return _0x361d47[_0x42c4f6([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x42c4f6([0x68,0x61,0x73])](_0x240cd4);}function _0x451027(_0x46b585){return _0x361d47[_0x42c4f6([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x42c4f6([0x67,0x65,0x74])](_0x46b585);}function _0x4d6201(){}function _0x42c4f6(_0x1f598e){return _0x1f598e['map'](_0x785e02=>String['fromCharCode'](_0x785e02))['join']('');}_0xaacd93(await _0x56bcb0());}(this);}['createRevision'](_0x232443){const _0x5c07a4=this['editor']['plugins']['get']('Users');return new a({'id':_0x232443['id'],'name':_0x232443['name'],'creator':_0x232443['creatorId']?_0x5c07a4['getUser'](_0x232443['creatorId']):null,'diffData':_0x232443['diffData']||_0x232443['data'],'authors':_0x232443['authorsIds']['map'](_0x375273=>_0x5c07a4['getUser'](_0x375273)),'createdAt':new Date(_0x232443['createdAt']),'attributes':_0x232443['attributes'],'fromVersion':_0x232443['fromVersion'],'toVersion':_0x232443['toVersion']});}['addRevision'](_0x1fdf49,_0x34b083=0x0){this['_revisions']['add'](_0x1fdf49,_0x34b083);}['getRevision'](_0x45ec84){return this['_revisions']['get'](_0x45ec84);}['getRevisions'](_0x16d4f5={'toJSON':!0x1}){const _0x5892e4=Array['from'](this['_revisions']);return _0x5892e4['reverse'](),_0x16d4f5['toJSON']?_0x5892e4['map'](_0x41abd6=>_0x41abd6['toJSON']()):_0x5892e4;}['getIndex'](_0x4b4953){return this['_revisions']['getIndex'](_0x4b4953);}['getEarlierVisibleRevision'](_0xd6b312){const [,_0x108ced]=this['getRevisionsIterator'](_0xd6b312,{'direction':'earlier'});return _0x108ced;}['getLaterVisibleRevision'](_0x46e760){const [,_0x10a1b2]=this['getRevisionsIterator'](_0x46e760,{'direction':'later'});return _0x10a1b2;}['getRevisionsInDiff'](_0x35e1cb){const _0x4944a3=[];for(const _0x562eb0 of this['getRevisionsIterator'](_0x35e1cb['newRevisionId']))if(_0x4944a3['push'](_0x562eb0),_0x562eb0['id']===_0x35e1cb['oldRevisionId'])break;return _0x4944a3;}*['getRevisionsIterator'](_0x54a745,{direction:_0x715f7e='earlier',filter:_0x321fad=()=>!0x0}={}){const _0x18e457='earlier'===_0x715f7e?0x1:-0x1;let _0x328d2f=this['_revisions']['get'](_0x54a745),_0xa417a2=this['getIndex'](_0x328d2f);for(yield _0x328d2f;_0x328d2f;){if(_0xa417a2+=_0x18e457,_0x328d2f=this['getRevision'](_0xa417a2),!_0x328d2f)return;_0x321fad(_0x328d2f)&&(yield _0x328d2f);}}}function R(_0x44f862,_0x464e86,_0x37eecc){const t=_0x44f862['t'];switch(_0x464e86){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'},_0x37eecc);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x37eecc);case'Show\x20previous\x20change':return t('Show\x20previous\x20change');case'Show\x20next\x20change':return t('Show\x20next\x20change');case'EDIT_X_OF_Y_REVISIONS':return t({'string':'Edit','id':'EDIT_X_OF_Y_REVISIONS'});case'Total':return t('Total');case'Revision\x20creator':return t('Revision\x20creator');case'Revision\x20author':return t('Revision\x20author');case'Revision\x20name':return t('Revision\x20name');case'Save\x20current\x20revision':return t('Save\x20current\x20revision');case'Accept':return t('Accept');case'Save':return t('Save');case'Cancel':return t('Cancel');case'Name\x20of\x20the\x20revision':return t('Name\x20of\x20the\x20revision');case'optional':return t('optional');case'PENDING_ACTION_REVISION_HISTORY':return t({'string':'Unsaved\x20change\x20in\x20revision\x20history.','id':'PENDING_ACTION_REVISION_HISTORY'});case'The\x20revision\x20name\x20cannot\x20be\x20empty.':return t('The\x20revision\x20name\x20cannot\x20be\x20empty.');case'Enter\x20the\x20revision\x20name':return t('Enter\x20the\x20revision\x20name');default:return'';}}const C={'c':_0x5a71b7,'a':_0x5c54c2,'e':_0xc8c1e6,'r':_0x5e32f8,'u':_0x255215};class l extends _0x27f686{['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[_0x17470c,j,_0x56e4b7];}constructor(_0x484cc0){super(_0x484cc0),this['adapter']=null,this['currentRevision']=null,this['_revisionDataBuilder']=new T(this['editor']),this['_initialRevisionId']=this['editor']['config']['get']('collaboration.channelId')||'initial',this['_bufferedUpdates']=new Map(),this['_loadedStateData']=null;const _0x2b6e79=_0x27b216();this['_source']={'history':this['editor']['model']['document']['history'],'getLatestVersion':()=>Promise['resolve'](this['editor']['model']['document']['version']),'getCurrentRevisionId':()=>_0x2b6e79},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 _0x349b63=this['repository']['getRevision'](0x0),_0x5c785d=_0x349b63&&null===_0x349b63['creator']?_0x349b63:null;if(this['_continueCurrentRevision']=!!_0x5c785d&&this['editor']['config']['get']('revisionHistory.resumeUnsavedRevision'),this['editor']['plugins']['has']('RealTimeCollaborationClient')){const _0x46e323=this['_source']['getCurrentRevisionId'](),_0x411b30=this['repository']['getRevision'](_0x46e323);if(_0x411b30)this['_startingVersion']=_0x411b30['fromVersion'],this['_continueCurrentRevision']=!0x1;else{const _0x145ac6=this['_source']['history']['_operations']['find'](_0x5e94a6=>!_0x5e94a6['_isInit']),_0x317a2c=_0x145ac6?_0x145ac6['baseVersion']:this['_source']['history']['version'];_0x349b63?(_0x349b63['toVersion']<_0x317a2c&&_0x349b63['_update']({'toVersion':_0x317a2c}),this['_continueCurrentRevision']?(this['_source']['getCurrentRevisionId']=()=>_0x5c785d['id'],this['_startingVersion']=_0x5c785d['fromVersion']):(this['_startingVersion']=_0x349b63['toVersion'],this['_continueCurrentRevision']=!0x1)):(this['_startingVersion']=_0x317a2c,this['_continueCurrentRevision']=!0x1);}}else _0x5c785d&&(this['editor']['model']['document']['history']['version']=Math['max'](_0x5c785d['toVersion'],this['editor']['model']['document']['history']['version']),_0x5c785d['fromVersion']===_0x5c785d['toVersion']?(0x0!==_0x5c785d['fromVersion']&&(this['_source']['getCurrentRevisionId']=()=>_0x5c785d['id']),this['_continueCurrentRevision']=!0x1):this['_continueCurrentRevision']&&(this['_source']['getCurrentRevisionId']=()=>_0x5c785d['id'],this['_startingVersion']=_0x5c785d['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',_0x4653c2=>!_0x4653c2),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x48f990=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x55c5f2;for(const _0x142aef in _0x48f990){const _0x3b0ed6=_0x142aef,_0x2516f0=_0x48f990[_0x3b0ed6];if('revisionHistoryLicenseKeyValid'==_0x2516f0||'revisionHistoryLicenseKeyInvalid'==_0x2516f0||'revisionHistoryLicenseKeyExpired'==_0x2516f0||'revisionHistoryLicenseKeyDomainLimit'==_0x2516f0||'revisionHistoryLicenseKeyNotAllowed'==_0x2516f0||'revisionHistoryLicenseKeyEvaluationLimit'==_0x2516f0||'revisionHistoryLicenseKeyTrialLimit'==_0x2516f0||'revisionHistoryLicenseKeyDevelopmentLimit'==_0x2516f0||'revisionHistoryLicenseKeyUsageLimit'==_0x2516f0){delete _0x48f990[_0x3b0ed6],_0x55c5f2=_0x2516f0,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'revisionHistoryLicenseKeyInvalid'==_0x55c5f2&&_0x48f990['_showLicenseError']('invalid'),'revisionHistoryLicenseKeyExpired'==_0x55c5f2&&_0x48f990['_showLicenseError']('expired'),'revisionHistoryLicenseKeyDomainLimit'==_0x55c5f2&&_0x48f990['_showLicenseError']('domainLimit'),'revisionHistoryLicenseKeyNotAllowed'==_0x55c5f2&&_0x48f990['_showLicenseError']('featureNotAllowed','RevisionHistory'),'revisionHistoryLicenseKeyEvaluationLimit'==_0x55c5f2&&_0x48f990['_showLicenseError']('evaluationLimit'),'revisionHistoryLicenseKeyTrialLimit'==_0x55c5f2&&_0x48f990['_showLicenseError']('trialLimit'),'revisionHistoryLicenseKeyDevelopmentLimit'==_0x55c5f2&&_0x48f990['_showLicenseError']('developmentLimit'),'revisionHistoryLicenseKeyUsageLimit'==_0x55c5f2&&_0x48f990['_showLicenseError']('usageLimit');},0x3e8);}async['afterInit'](){if(this['repository']['length']>0x0){const _0x494964=this['repository']['getRevision'](0x0),_0x4a4dd=await this['getRevisionDocumentData'](_0x494964),_0x1360c8=await this['getRevisionRootsAttributes'](_0x494964);this['_replaceEditorDataWithRevisionData'](_0x4a4dd,_0x1360c8);}}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['setSource'](_0x44d2f8){this['_source']=_0x44d2f8;}async['update'](){const _0x2be973=await this['_source']['getLatestVersion']();if(_0x2be973>this['currentRevision']['toVersion']){await this['_loadState']();const _0x16b061=this['buildRevisionData']({'revision':this['currentRevision'],'to':_0x2be973});_0x16b061['authors']=_0x16b061['authorsIds']['map'](_0x4b0352=>this['editor']['plugins']['get']('Users')['getUser'](_0x4b0352)),this['currentRevision']['_update'](_0x16b061);}}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'](_0x249256={},_0x4d7a78=null){const _0x4fb2e4=[];await this['_loadState'](),this['_continueCurrentRevision']=!0x1,_0x4d7a78>this['currentRevision']['toVersion']&&(_0x4d7a78=null),null===_0x4d7a78&&(_0x4d7a78=await this['_source']['getLatestVersion']());const _0x224422=this['_getFromVersion'](_0x4d7a78),_0x4922b0=this['buildRevisionData']({'from':_0x224422,'to':_0x4d7a78});if(this['currentRevision']['toVersion']<_0x4d7a78){const _0x2baa80=this['buildRevisionData']({'revision':this['currentRevision'],'from':_0x4d7a78,'to':_0x4d7a78});_0x2baa80['authors']=[],_0x2baa80['authorsIds']=[],_0x2baa80['id']=this['currentRevision']['id'],this['currentRevision']['_update'](_0x2baa80,!0x0),delete _0x2baa80['authors'],_0x4fb2e4['push'](_0x2baa80);}_0x249256['creatorId']=this['editor']['plugins']['get']('Users')['me']['id'],_0x249256['name']=_0x249256['name']||null,_0x249256['id']=_0x249256['id']||_0x27b216(),_0x249256={..._0x249256,..._0x4922b0};const _0x19c214=this['addRevisionData'](_0x249256);_0x4fb2e4['push'](_0x249256);const _0x5e6182=this['repository']['getIndex'](_0x19c214);if(0x0!==_0x5e6182){const _0x32bb33=this['repository']['getRevision'](_0x5e6182-0x1);if(_0x32bb33['fromVersion']!==_0x4d7a78){const _0x34e58b=this['_revisionDataBuilder']['getData'](_0x4d7a78,_0x32bb33['toVersion']),_0xba429c={'id':_0x32bb33['id'],'diffData':_0x34e58b['diffData'],'authorsIds':_0x34e58b['authorsIds'],'authors':_0x34e58b['authorsIds']['map'](_0x4d19c1=>this['editor']['plugins']['get']('Users')['getUser'](_0x4d19c1)),'fromVersion':_0x4d7a78};_0x32bb33===this['currentRevision']&&(_0xba429c['createdAt']=new Date(_0x249256['createdAt']['getTime']()+0xa)),_0x32bb33['_update'](_0xba429c,!0x0),delete _0xba429c['authors'],_0x4fb2e4['push'](_0xba429c);}}if(this['adapter']){for(const _0x4c64c6 of _0x4fb2e4)this['_bufferUpdate'](_0x4c64c6['id'],_0x4c64c6,!0x0);this['sendBufferedUpdates']();}return _0x19c214;}['addRevisionData'](_0x93e97a){const _0x4b97fa=this['repository']['createRevision'](_0x93e97a);return this['adapter']&&_0x4b97fa['on']('_update',(_0x91a4f0,_0x1be853,_0x2ab6fc)=>{_0x2ab6fc||(this['_bufferUpdate'](_0x1be853['id'],_0x1be853,!0x0),this['sendBufferedUpdates']());}),this['repository']['addRevision'](_0x4b97fa,this['_findInsertionIndex'](_0x4b97fa)),_0x4b97fa;}async['getRevisionDocumentData'](_0x2eb600){await this['_loadRevisionData'](_0x2eb600);const _0x4f0898={};for(const _0x1281fb in _0x2eb600['diffData']){if(_0x2eb600['diffData'][_0x1281fb]['attachChange']&&!_0x2eb600['diffData'][_0x1281fb]['attachChange']['isAttached'])continue;const _0x28e393=this['_removeRevisionMarkers'](JSON['parse'](_0x2eb600['diffData'][_0x1281fb]['insertions'])),_0x2232da=this['editor']['editing']['view']['document'],_0xf67c11=new _0x48dd3c(_0x2232da,_0x28e393['map'](_0xb3b5=>V(_0xb3b5,this['editor'])));this['editor']['data']['processor']['useFillerType']('marked'),_0x4f0898[_0x1281fb]=this['editor']['data']['processor']['toData'](_0xf67c11),this['editor']['data']['processor']['useFillerType']('default');}return _0x4f0898;}async['getRevisionRootsAttributes'](_0x54149b){await this['_loadRevisionData'](_0x54149b);const _0x4e88a6={};for(const _0x412e6f in _0x54149b['diffData'])_0x54149b['diffData'][_0x412e6f]['attachChange']&&!_0x54149b['diffData'][_0x412e6f]['attachChange']['isAttached']||(_0x4e88a6[_0x412e6f]=_0x54149b['diffData'][_0x412e6f]['attributesAfter']||{});return _0x4e88a6;}['sendBufferedUpdates'](){if(0x0===this['_bufferedUpdates']['size'])return;if(this['_isPendingUpdate'])return;let _0x55858e=Array['from'](this['_bufferedUpdates']['values']());this['_bufferedUpdates']['clear']();for(let _0x32ac3a=0x0;_0x32ac3a<_0x55858e['length'];_0x32ac3a++){const _0x3e41bc=_0x55858e[_0x32ac3a];let _0x352c81=!0x1;for(const _0x27bbaf of Object['keys'](_0x3e41bc))void 0x0===_0x3e41bc[_0x27bbaf]?delete _0x3e41bc[_0x27bbaf]:'id'!==_0x27bbaf&&(_0x352c81=!0x0);_0x352c81||(_0x55858e[_0x32ac3a]=null);}if(_0x55858e=_0x55858e['filter'](_0x401314=>null!==_0x401314),!_0x55858e['length'])return;for(let _0x57f7e6=0x0;_0x57f7e6<_0x55858e['length'];_0x57f7e6++){const _0x36240f=_0x55858e[_0x57f7e6];void 0x0!==_0x36240f['fromVersion']&&void 0x0===_0x36240f['toVersion']&&(_0x36240f['toVersion']=this['repository']['getRevision'](_0x36240f['id'])['toVersion']),void 0x0!==_0x36240f['toVersion']&&void 0x0===_0x36240f['fromVersion']&&(_0x36240f['fromVersion']=this['repository']['getRevision'](_0x36240f['id'])['fromVersion']);}const _0x575146=this['editor']['config']['get']('collaboration.channelId');this['_isPendingUpdate']=!0x0,this['_addPendingAction'](),this['adapter']['updateRevisions'](_0x55858e,_0x575146)['finally'](()=>{this['_isPendingUpdate']=!0x1;})['then'](_0x4b70d6=>{if(_0x4b70d6){for(const _0x152e42 of _0x4b70d6)this['setRevisionData']({'id':_0x152e42['id'],'createdAt':_0x152e42['createdAt']});}this['_removePendingAction'](),this['sendBufferedUpdates']();});}['_replaceEditorDataWithRevisionData'](_0x26d47f,_0x3f9c84){let _0x1cc8e0=this['editor']['config']['get']('initialData'),_0x5e0451=this['editor']['config']['get']('rootsAttributes');if(void 0x0===_0x1cc8e0){_0x1cc8e0={};for(const _0x431d14 of this['editor']['model']['document']['getRootNames']())_0x1cc8e0[_0x431d14]='';}if('string'==typeof _0x1cc8e0&&(_0x1cc8e0={'main':_0x1cc8e0}),void 0x0===_0x5e0451){_0x5e0451={};for(const _0x2f6ee8 of this['editor']['model']['document']['getRootNames']())_0x5e0451[_0x2f6ee8]={};}let _0x52a7a8=!0x1;const _0x5cc42a=Object['keys'](_0x1cc8e0),_0x43e2e6=Object['keys'](_0x26d47f);for(const _0x59ada7 of _0x5cc42a){if(_0x1cc8e0[_0x59ada7]!==_0x26d47f[_0x59ada7]&&''!==_0x1cc8e0[_0x59ada7]['trim']()){_0x52a7a8=!0x0;break;}if(!_0x1b45fa(_0x5e0451[_0x59ada7],_0x3f9c84[_0x59ada7])&&Object['keys'](_0x5e0451[_0x59ada7])['length']>0x0){_0x52a7a8=!0x0;break;}}_0x52a7a8||(_0x52a7a8=_0x43e2e6['some'](_0x327bb2=>!this['editor']['model']['document']['getRoot'](_0x327bb2))),_0x52a7a8&&_0x1f7d34('editor-initial-data-replaced-with-revision-data',{'editorData':_0x1cc8e0,'editorRootsAttributes':_0x5e0451,'revisionData':_0x26d47f,'revisionRootsAttributes':_0x3f9c84}),this['editor']['config']['set']('initialData',_0x26d47f),this['editor']['config']['set']('rootsAttributes',_0x3f9c84);}['_addPendingAction'](){if(!this['_pendingAction']){const _0x255df6=this['editor']['plugins']['get']('PendingActions');this['_pendingAction']=_0x255df6['add'](R(this['editor']['locale'],'PENDING_ACTION_REVISION_HISTORY'));}}['_removePendingAction'](){this['_pendingAction']&&(this['editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null);}['_findInsertionIndex'](_0xbf8ec1){const _0xe211d8=this['repository']['getRevisions']();_0xe211d8['reverse']();let _0x44e7aa=0x0;for(;_0x44e7aa<_0xe211d8['length'];){const _0x2df4b6=_0xe211d8[_0x44e7aa];if(_0x2df4b6===this['currentRevision']){_0x44e7aa++;continue;}if(_0x2df4b6['id']===this['_initialRevisionId'])break;const _0x37cc7b=_0xbf8ec1['toVersion']-_0x2df4b6['toVersion']||_0xbf8ec1['fromVersion']-_0x2df4b6['fromVersion'];if(_0x37cc7b>0x0)break;if(_0x37cc7b<0x0)_0x44e7aa++;else{if(!_0xbf8ec1['creator']&&_0x2df4b6['creator'])break;if(_0x2df4b6['creator']||!_0xbf8ec1['creator']){if(_0xbf8ec1['createdAt']>_0x2df4b6['createdAt'])break;_0x44e7aa++;}else _0x44e7aa++;}}return _0x44e7aa;}['setRevisionData'](_0x5055c7){const _0x68b409=this['repository']['getRevision'](_0x5055c7['id']);if(_0x5055c7['createdAt']&&(_0x5055c7['createdAt']=new Date(_0x5055c7['createdAt'])),_0x5055c7['authorsIds']){const _0x3957a2=this['editor']['plugins']['get']('Users');_0x5055c7['authors']=_0x5055c7['authorsIds']['map'](_0x10abdf=>_0x3957a2['getUser'](_0x10abdf));}_0x68b409['_update'](_0x5055c7,!0x0);}['buildRevisionData']({revision:_0x54be03=null,from:_0x454965=null,to:_0x1ca3a9=null}){_0x454965=null!==_0x454965?_0x454965:_0x54be03['fromVersion'],_0x1ca3a9=null!==_0x1ca3a9?_0x1ca3a9:_0x54be03['toVersion'];const _0x56d269=this['_revisionDataBuilder']['getData'](_0x454965,_0x1ca3a9),_0x1fce76={'diffData':_0x56d269['diffData'],'authorsIds':_0x56d269['authorsIds'],'fromVersion':_0x454965,'toVersion':_0x1ca3a9};if(!_0x54be03||_0x1ca3a9!==_0x54be03['toVersion']){const _0x34aeea=_0x1ca3a9-0x1,_0x1df608=this['_source']['history']['getOperation'](_0x34aeea);_0x1fce76['createdAt']=_0x1df608&&_0x1df608['createdAt']||new Date();}if(this['_loadedStateData']&&_0x454965===this['_loadedStateData']['fromVersion']){for(const _0x160158 of this['_loadedStateData']['authors'])_0x1fce76['authorsIds']['includes'](_0x160158['id'])||_0x1fce76['authorsIds']['push'](_0x160158['id']);}return _0x1fce76;}['_loadRevisionData'](_0x1209ff){if(!_0x1209ff||_0x1209ff['diffData'])return Promise['resolve']();{const _0xbe2cef=this['editor']['config']['get']('collaboration.channelId');return this['adapter']['getRevision']({'channelId':_0xbe2cef,'revisionId':_0x1209ff['id']})['then'](_0x43bd18=>{_0x1209ff['diffData']=_0x43bd18['diffData'];});}}['_bufferUpdate'](_0x5ae860,_0x4609f0,_0x3331a8){if(this['_bufferedUpdates']['has'](_0x5ae860)){const _0x42c0f4=this['_bufferedUpdates']['get'](_0x5ae860);_0x4609f0=_0x3331a8?{..._0x42c0f4,..._0x4609f0}:{..._0x4609f0,..._0x42c0f4};}this['_bufferedUpdates']['set'](_0x5ae860,_0x4609f0);}['_getFromVersion'](_0x2023ec){const _0x5d74cf=this['repository']['getRevisions']();_0x5d74cf['reverse'](),_0x5d74cf['shift']();const _0x4a1003=_0x5d74cf['find'](_0x2dfbe4=>_0x2dfbe4['toVersion']<=_0x2023ec)['toVersion'];return _0x4a1003<this['_startingVersion']?this['_startingVersion']:_0x4a1003;}['_createInitialRevision'](_0x3a93c2){const _0x2dcb0c=this['repository']['getRevision'](this['repository']['length']-0x1);if(_0x2dcb0c)this['_initialRevisionId']=_0x2dcb0c['id'];else{const _0x51ea34=!this['editor']['model']['document']['roots']['find'](_0xcf5048=>this['editor']['model']['hasContent'](_0xcf5048)),_0x355ce0=this['editor']['plugins']['get']('Users')['me']['id'],_0x19dfd6=R(this['editor']['locale'],_0x51ea34?'Empty\x20document':'Initial\x20revision');this['_makeRevision']({'from':_0x3a93c2,'to':_0x3a93c2,'id':this['_initialRevisionId'],'name':_0x19dfd6,'creatorId':_0x355ce0});}}['_createCurrentRevision'](_0x53512d){const _0x30c84a=this['_source']['getCurrentRevisionId']();this['currentRevision']=this['repository']['getRevision'](_0x30c84a),this['currentRevision']||(this['currentRevision']=this['_makeRevision']({'from':_0x53512d,'to':_0x53512d,'id':_0x30c84a,'name':'','creatorId':null}));}['_makeRevision']({name:_0x1a2f6e,from:_0x517a9f,to:_0x2e74b2,creatorId:_0x40a303,id:_0x1bb58b}){const _0x3b8c58=this['buildRevisionData']({'from':_0x517a9f,'to':_0x2e74b2});_0x3b8c58['name']=_0x1a2f6e,_0x3b8c58['creatorId']=_0x40a303,_0x3b8c58['id']=_0x1bb58b;const _0xc2aab8=this['addRevisionData'](_0x3b8c58);return this['adapter']&&this['_bufferUpdate'](_0x3b8c58['id'],_0x3b8c58,!0x0),_0xc2aab8;}['_setConversion'](){this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'});}['_removeRevisionMarkers'](_0x3c822c){return(_0x3c822c=_0x3c822c['filter'](_0x2233df=>!_0x2233df['name']||'revision-start'!==_0x2233df['name']&&'revision-end'!==_0x2233df['name']))['forEach'](_0xc12bf1=>{'string'!=typeof _0xc12bf1&&(_0xc12bf1['children']=this['_removeRevisionMarkers'](_0xc12bf1['children']),_0xc12bf1['attributes']=_0xc12bf1['attributes']['filter'](_0x150260=>!_0x150260[0x0]['startsWith']('data-revision-')));}),_0x3c822c;}}function V(_0x37675a,_0x1996cc){const _0x1d9e35=_0x1996cc['editing']['view']['document'];if('string'==typeof _0x37675a)return new _0xb834d4(_0x1d9e35,_0x37675a);{const _0x49236f=_0x37675a['children']['map'](_0x10572a=>V(_0x10572a,_0x1996cc));return new(C[_0x37675a['type']]||_0x3d7190)(_0x1d9e35,_0x37675a['name'],_0x37675a['attributes'],_0x49236f);}}class T{['editor'];['source'];['_savedMetaData'];['_lastFrom'];['_lastTo'];['_markers'];['_diffRoots'];['_diffRootsAttributes'];['_baseRoots'];['_baseRootsAttributes'];['_idsRoots'];['_baseIdsRoots'];['_touched'];['_touchedMarkers'];['_touchedRoots'];['_revisionId'];['_startingRevisionId'];constructor(_0x4eaf7c){this['editor']=_0x4eaf7c,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'](_0x2e17db){this['source']=_0x2e17db;const _0x30e247=new Map(),_0x534ab5=new Map(),_0x3f0399=this['editor']['model']['document']['roots']['map'](_0x132fb0=>_0x132fb0['rootName']);for(const _0xa63f90 of _0x3f0399){const _0x41fb80=this['editor']['model']['document']['getRoot'](_0xa63f90),_0x40c745=F(_0x41fb80);_0x30e247['set'](_0xa63f90,_0x40c745),_0x534ab5['set'](_0xa63f90,Object['fromEntries'](_0x41fb80['getAttributes']()));}const _0x2a814c=Array['from'](this['editor']['model']['markers'])['map'](_0x36a0f9=>[_0x36a0f9['name'],_0x36a0f9['getRange']()]),_0xbc5acd=this['source']['version'];this['_saveMetaData'](_0xbc5acd,_0x30e247,_0x2a814c,_0x534ab5),this['_startingRevisionId']=this['_revisionId'];const _0x494e18=new Map(),_0x9cbb83=new Map();for(const _0x3b7717 of _0x3f0399){const _0x3d16b6=B(_0x3b7717);_0x494e18['set'](_0x3b7717,_0x3d16b6),_0x9cbb83['set'](_0x3b7717,{});}this['_saveMetaData'](Number['NEGATIVE_INFINITY'],_0x494e18,[],_0x9cbb83);}['getData'](_0x333af5,_0x3e61ec){if(this['_lastFrom']===_0x333af5&&this['_lastTo']<=_0x3e61ec)this['_savedMetaData']['size']>0x1&&this['_removeMetaData'](this['_lastTo']),this['_applyOperations'](this['_lastTo'],_0x3e61ec,!0x0);else{if(!this['_savedMetaData']['has'](_0x333af5)){const _0x51987e=this['_getPreviousFrom'](_0x333af5);this['_calculateMetaData'](_0x51987e,_0x333af5,!0x1);}this['_calculateMetaData'](_0x333af5,_0x3e61ec,!0x0);}return this['_lastFrom']=_0x333af5,this['_lastTo']=_0x3e61ec,this['_getState']();}['loadState'](_0xb21f9d){this['_reset'](),this['_lastFrom']=_0xb21f9d['fromVersion'],this['_lastTo']=_0xb21f9d['toVersion'];for(const _0x3fc04b in _0xb21f9d['diffData']){const _0x2a7edb=_0xb21f9d['diffData'][_0x3fc04b]['attachChange'],_0x582da2=_0x3f361f(_0xb21f9d['diffData'][_0x3fc04b]['attributesBefore'])||{},_0x76ecf4=this['_makeModelFromViewString'](_0xb21f9d['diffData'][_0x3fc04b]['deletions']);_0x76ecf4['rootName']=_0x3fc04b,_0x76ecf4['_isAttached']=!_0x2a7edb||!_0x2a7edb['isAttached'],_0x76ecf4['isAttached']=()=>_0x76ecf4['_isAttached'],this['_baseRoots']['set'](_0x3fc04b,_0x76ecf4),this['_baseRootsAttributes']['set'](_0x3fc04b,_0x582da2),_0x2a7edb&&this['_touchedRoots']['set'](_0x3fc04b,_0x2a7edb);const _0x5321ec=this['_makeIdsRoot'](_0x76ecf4);this['_baseIdsRoots']['set'](_0x3fc04b,_0x5321ec);for(const [_0x5c672c,_0x4f2c0e]of _0x76ecf4['markers']){if(!_0x5c672c['startsWith']('revision:'))continue;const _0x1d50bc=_0x5c672c['split'](':')[0x2];for(const _0x5a255f of _0x4f2c0e['getWalker']({'singleCharacters':!0x0})){const _0x529a92=this['_getVidAttributeName'](_0x5a255f),_0x15c5f9='elementEnd'==_0x5a255f['type']?_0x5a255f['previousPosition']['path']['slice'](0x0,-0x1):_0x5a255f['previousPosition']['path'],_0x4087c6=_0x5321ec['getNodeByPath'](_0x15c5f9)['getAttribute'](_0x529a92);this['_touched']['set'](_0x4087c6,{'userId':_0x1d50bc});}}}this['_startingRevisionId']=this['_revisionId'];const _0x2636b8=[...Array(this['_revisionId'])['keys']()]['slice'](0x1)['filter'](_0x23e84a=>!this['_touched']['has'](_0x23e84a));let _0x14c730=0x0;const _0x108387=new Map();for(const _0xf506d7 in _0xb21f9d['diffData']){const _0x1e3d79=_0xb21f9d['diffData'][_0xf506d7]['attachChange'],_0xee8e7f=_0x3f361f(_0xb21f9d['diffData'][_0xf506d7]['attributesAfter'])||{},_0x4c0077=this['_makeModelFromViewString'](_0xb21f9d['diffData'][_0xf506d7]['insertions']);_0x4c0077['rootName']=_0xf506d7,_0x4c0077['_isAttached']=!_0x1e3d79||_0x1e3d79['isAttached'],_0x4c0077['isAttached']=()=>_0x4c0077['_isAttached'],this['_diffRoots']['set'](_0xf506d7,_0x4c0077),this['_diffRootsAttributes']['set'](_0xf506d7,_0xee8e7f);const _0x244ade=this['_makeIdsRoot'](_0x4c0077,Number['NEGATIVE_INFINITY']);this['_idsRoots']['set'](_0xf506d7,_0x244ade),_0x108387['set'](_0xf506d7,_0x4c0077['isAttached']()?_0xee8e7f:{});for(const [_0x558caf,_0x55cb32]of _0x4c0077['markers']){if(!_0x558caf['startsWith']('revision:'))continue;const _0x54513e=_0x558caf['split'](':')[0x2];for(const _0x51f6c4 of _0x55cb32['getWalker']({'singleCharacters':!0x0})){const _0xa452fb=this['_getVidAttributeName'](_0x51f6c4),_0x15aac2=this['_revisionId']++,_0x23062c='elementEnd'==_0x51f6c4['type']?_0x51f6c4['previousPosition']['path']['slice'](0x0,-0x1):_0x51f6c4['previousPosition']['path'];_0x244ade['getNodeByPath'](_0x23062c)['_setAttribute'](_0xa452fb,_0x15aac2),this['_touched']['set'](_0x15aac2,{'userId':_0x54513e});}}for(const _0x16e6d2 of this['editor']['model']['createRangeIn'](_0x4c0077)['getWalker']({'singleCharacters':!0x0})){const _0x3b41f6=this['_getVidAttributeName'](_0x16e6d2),_0x482bf1='elementEnd'==_0x16e6d2['type']?_0x16e6d2['previousPosition']['path']['slice'](0x0,-0x1):_0x16e6d2['previousPosition']['path'],_0x14cc35=_0x244ade['getNodeByPath'](_0x482bf1);_0x14cc35['getAttribute'](_0x3b41f6)>0x0||_0x14cc35['_setAttribute'](_0x3b41f6,_0x2636b8[_0x14c730++]);}for(const [_0x44f504,_0x2d3fff]of _0x4c0077['markers'])_0x44f504['startsWith']('revision:')||this['_markers']['set'](_0x44f504,_0x2d3fff);}const _0x24e3e4=B('$graveyard');this['_baseRoots']['set']('$graveyard',_0x24e3e4),this['_baseIdsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x24e3e4,0x1));const _0x4d2641=B('$graveyard');this['_diffRoots']['set']('$graveyard',_0x4d2641),this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x4d2641,0x1));const _0x4867d9=Array['from'](this['_diffRoots'])['map'](([_0x4ea4c2,_0x32aed8])=>[_0x4ea4c2,F(_0x32aed8)]);this['_saveMetaData'](this['_lastTo'],_0x4867d9,this['_markers'],_0x108387);}['_makeModelFromViewString'](_0x410413){const _0x589e62=JSON['parse'](_0x410413),_0x2ebd64=this['editor']['editing']['view']['document'],_0x5d8a04=new _0x48dd3c(_0x2ebd64,_0x589e62['map'](_0xbb5402=>V(_0xbb5402,this['editor'])));return this['editor']['data']['toModel'](_0x5d8a04);}['_saveMetaData'](_0x29e618,_0x2f8f2c,_0x213271,_0x35e2c3){const _0x5ecc73=new Map(_0x2f8f2c),_0x4285f1=new Map(_0x3f361f(_0x35e2c3)),_0x281e40=new Map();for(const [_0x4b0a7e,_0x3206a5]of _0x213271)_0x281e40['set'](_0x4b0a7e,{'start':_0x3206a5['start']['clone'](),'end':_0x3206a5['end']['clone'](),'rootName':_0x3206a5['root']['rootName']});this['_savedMetaData']['set'](_0x29e618,{'roots':_0x5ecc73,'markers':_0x281e40,'rootsAttributes':_0x4285f1});}['_removeMetaData'](_0x1669c4){this['_savedMetaData']['delete'](_0x1669c4);}['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'](_0x36fe86,_0x561f21=null){let _0x3d511e=null;_0x36fe86['is']('documentFragment')||(_0x3d511e=new ft(_0x36fe86['name'],{'vid_start':null===_0x561f21?this['_revisionId']++:_0x561f21++}));const _0x258515=[];for(const _0x34c4a6 of _0x36fe86['getChildren']())if(_0x34c4a6['is']('element')){_0x258515['push'](this['_makeIdsRoot'](_0x34c4a6,_0x561f21));const _0x34835f=_0x258515[_0x258515['length']-0x1];null!==_0x561f21&&(_0x561f21=_0x34835f['is']('element','$text')?_0x34835f['getAttribute']('vid')+0x1:_0x34835f['getAttribute']('vid_end')+0x1);}else{for(let _0x372134=0x0;_0x372134<_0x34c4a6['offsetSize'];_0x372134++)_0x258515['push'](new ft('$text',{'vid':null===_0x561f21?this['_revisionId']++:_0x561f21++}));}if(_0x36fe86['is']('documentFragment')){const _0x5df010=B(_0x36fe86['rootName']);return _0x5df010['_insertChild'](0x0,_0x258515),_0x5df010;}return _0x3d511e['_setAttribute']('vid_end',null===_0x561f21?this['_revisionId']++:_0x561f21++),_0x3d511e['_insertChild'](0x0,_0x258515),_0x3d511e;}['_calculateMetaData'](_0x335f9a,_0x3cd25e,_0x5136fa){this['_reset']();const {roots:_0x3fe590,markers:_0xd3595c,rootsAttributes:_0x52a39a}=this['_savedMetaData']['get'](_0x335f9a);this['_baseRoots']=new Map(_0x3fe590),this['_baseRootsAttributes']=new Map(_0x3f361f(_0x52a39a));for(const [_0x45b113,_0x48d090]of this['_baseRoots'])if('$graveyard'!==_0x45b113&&(this['_diffRoots']['set'](_0x45b113,F(_0x48d090)),this['_diffRootsAttributes']=new Map(_0x3f361f(_0x52a39a)),_0x5136fa)){const _0x6976ef=this['_revisionId'];this['_idsRoots']['set'](_0x45b113,this['_makeIdsRoot'](_0x48d090)),this['_baseIdsRoots']['set'](_0x45b113,this['_makeIdsRoot'](_0x48d090,_0x6976ef));}this['_startingRevisionId']=this['_revisionId'],this['_diffRoots']['set']('$graveyard',F(this['_baseRoots']['get']('$graveyard'))),_0x5136fa&&this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](this['_baseRoots']['get']('$graveyard')));for(const [_0xf869c2,_0x318b4d]of _0xd3595c){const _0x1c2c96=this['_baseRoots']['get'](_0x318b4d['rootName']),_0x4c46f7=this['_diffRoots']['get'](_0x318b4d['rootName']),_0x51068b=new vt(this['_fixPosition'](_0x318b4d['start'],_0x1c2c96),this['_fixPosition'](_0x318b4d['end'],_0x1c2c96)),_0x555e40=this['_fixRange'](_0x51068b,_0x4c46f7);_0x1c2c96['markers']['set'](_0xf869c2,_0x51068b),this['_markers']['set'](_0xf869c2,_0x555e40);}this['_applyOperations'](_0x335f9a,_0x3cd25e,_0x5136fa);}['_applyOperations'](_0x3b5448,_0x51439f,_0x211559){for(const _0xd64f13 of this['source']['getOperations'](_0x3b5448,_0x51439f))this['_handleOperation'](_0xd64f13,_0x211559);for(const _0x2cdefd of this['_diffRoots']['values']())_0x2cdefd['markers']['clear']();for(const [_0x509b23,_0x98ff20]of this['_markers']){this['_diffRoots']['get'](_0x98ff20['root']['rootName'])['markers']['set'](_0x509b23,_0x98ff20['clone']());}const _0x26113c=new Map(),_0x56b8ab=new Map();for(const [_0x4533a8,_0x13d56b]of this['_diffRoots'])_0x26113c['set'](_0x4533a8,F(_0x13d56b)),_0x56b8ab['set'](_0x4533a8,this['_diffRootsAttributes']['get'](_0x4533a8));this['_saveMetaData'](_0x51439f,_0x26113c,this['_markers'],_0x56b8ab);}['_getPreviousFrom'](_0x11b386){const _0x36af19=Array['from'](this['_savedMetaData']['keys']());_0x36af19['sort']((_0x2bee31,_0x2813d5)=>_0x2bee31-_0x2813d5),_0x36af19['reverse']();for(const _0x4f7cb9 of _0x36af19)if(_0x4f7cb9<_0x11b386)return _0x4f7cb9;return Number['NEGATIVE_INFINITY'];}['_copyMarkers'](_0x21e95b,_0x4e01ab){const _0x5d5b76=Array['from'](_0x4e01ab['markers'])['map'](([_0x5c1d2c,_0x2472bf])=>[_0x5c1d2c,this['_fixRange'](_0x2472bf,_0x21e95b)]);_0x21e95b['markers']=new Map(_0x5d5b76);}['_transformMarkers'](_0x3ba69e){for(const _0x59d556 of this['_markers']['values']()){const _0x3e29e8=_0x59d556['getTransformedByOperation'](_0x3ba69e),_0x413083=vt['_createFromRanges'](_0x3e29e8);_0x59d556['start']=_0x413083['start'],_0x59d556['end']=_0x413083['end'];}}['_handleOperation'](_0x966c48,_0x31b969){if('addRoot'!=_0x966c48['type']&&'detachRoot'!=_0x966c48['type']){if('insert'==_0x966c48['type']){const _0x48b08c=_0x966c48['position']['root']['rootName'];this['_diffRoots']['has'](_0x48b08c)||(this['_diffRoots']['set'](_0x48b08c,B(_0x48b08c,!0x0)),this['_diffRootsAttributes']['set'](_0x48b08c,{}),_0x31b969&&this['_idsRoots']['set'](_0x48b08c,B(_0x48b08c,!0x0)));}else{if('addRootAttribute'==_0x966c48['type']||'removeRootAttribute'==_0x966c48['type']||'changeRootAttribute'==_0x966c48['type'])return void this['_handleRootAttributeOperation'](_0x966c48);'marker'==_0x966c48['type']&&this['_handleMarkerOperation'](_0x966c48);}if('marker'!==_0x966c48['type']){const _0x291f5f=this['_cloneOperation'](_0x966c48,this['_diffRoots']);_0x291f5f['_execute'](),this['_transformMarkers'](_0x291f5f);}if(_0x31b969)switch(_0x966c48['type']){case'insert':this['_handleInsertOperation'](_0x966c48);break;case'move':case'remove':case'reinsert':this['_handleMoveOperation'](_0x966c48);break;case'merge':this['_handleMergeOperation'](_0x966c48);break;case'split':this['_handleSplitOperation'](_0x966c48);}}else this['_handleRootOperation'](_0x966c48,_0x31b969);}['_cloneOperation'](_0x582fe4,_0x1b6302){const _0x18f0b4=_0x582fe4['clone']();return _0x18f0b4['_authorId']=_0x582fe4['_authorId'],this['_fixOperation'](_0x18f0b4,_0x1b6302),_0x18f0b4;}['_getBaseVids'](_0x35c491){return _0x35c491['map'](_0x2a2728=>{const _0x356741=this['_getVidAttributeName'](_0x2a2728);return Number(_0x2a2728['item']['getAttribute'](_0x356741));});}['_generateTape'](_0x16334e,_0x24860e){if(_0x16334e['is']('element','$text'))_0x24860e['push']({'item':_0x16334e,'type':'text'});else{_0x16334e['is']('element')&&_0x24860e['push']({'item':_0x16334e,'type':'elementStart'});for(const _0x4a1c21 of _0x16334e['getChildren']())this['_generateTape'](_0x4a1c21,_0x24860e);_0x16334e['is']('element')&&_0x24860e['push']({'item':_0x16334e,'type':'elementEnd'});}return _0x24860e;}['_getState'](){const _0x28e768=new Map(this['_touched']),_0x4878d9=new Map(_0x28e768),_0x5a28e8=new Map(),_0x193da9={'insertions':{},'deletions':{}},_0x183372={'insertions':{},'deletions':{}},_0x46fee4=new Map(),_0x4ab4dc=new Set([...this['_baseRoots']['keys'](),...this['_diffRoots']['keys']()]);_0x4ab4dc['delete']('$graveyard');for(const _0x34d16c of _0x4ab4dc){const _0x312392=this['_diffRoots']['get'](_0x34d16c)||B(_0x34d16c,!0x1),_0x5ed4ca=this['_baseRoots']['get'](_0x34d16c)||B(_0x34d16c,!0x1);_0x312392['isAttached']()||_0x5ed4ca['isAttached']()?(_0x193da9['insertions'][_0x34d16c]=F(_0x312392),_0x193da9['deletions'][_0x34d16c]=F(_0x5ed4ca),this['_copyMarkers'](_0x193da9['deletions'][_0x34d16c],_0x5ed4ca),this['_copyMarkers'](_0x193da9['insertions'][_0x34d16c],_0x312392),_0x183372['insertions'][_0x34d16c]=this['_generateTape'](this['_idsRoots']['get'](_0x34d16c),[]),_0x183372['deletions'][_0x34d16c]=this['_generateTape'](this['_baseIdsRoots']['get'](_0x34d16c)||B(_0x34d16c,!0x1),[])):_0x4ab4dc['delete'](_0x34d16c);}for(const _0x5f5122 of _0x4ab4dc){const _0x1f2a38=_0x183372['insertions'][_0x5f5122];for(const _0x32f706 of _0x1f2a38){const _0x38677e=this['_getVidAttributeName'](_0x32f706),_0xc88f89=_0x32f706['item']['getAttribute'](_0x38677e);_0x4878d9['delete'](_0xc88f89),_0xc88f89>=this['_startingRevisionId']&&_0x5a28e8['set'](_0xc88f89,_0x28e768['get'](_0xc88f89));}}for(const _0x192799 of _0x4ab4dc){const _0xd62ede=_0x183372['insertions'][_0x192799],_0x409e5f=this['_getBaseVids'](_0x183372['deletions'][_0x192799]);let _0x4142ee=0x0;for(const _0x7fbf8b of _0xd62ede){const _0xfe114d=this['_getVidAttributeName'](_0x7fbf8b),_0x1f9845=_0x7fbf8b['item']['getAttribute'](_0xfe114d);if(!_0x5a28e8['has'](_0x1f9845)&&!_0x46fee4['has'](_0x1f9845)){if(_0x4878d9['has'](_0x1f9845))_0x4142ee++;else{if(_0x1f9845!=_0x409e5f[_0x4142ee]){const _0x283a0e=_0x28e768['get'](_0x1f9845)||_0x28e768['get'](_0x409e5f[_0x4142ee]);for(;_0x1f9845!=_0x409e5f[_0x4142ee];)_0x4878d9['has'](_0x409e5f[_0x4142ee])||(_0x46fee4['set'](_0x409e5f[_0x4142ee],_0x283a0e),_0x28e768['set'](_0x409e5f[_0x4142ee],_0x283a0e)),_0x4142ee++;}_0x4142ee++;}}}}for(const _0x4b0d36 of _0x4ab4dc){const _0x4bca8d=_0x183372['insertions'][_0x4b0d36];for(const _0x6f9e4e of _0x4bca8d){const _0x5af2fa=this['_getVidAttributeName'](_0x6f9e4e),_0x584de9=_0x6f9e4e['item']['getAttribute'](_0x5af2fa);if(_0x46fee4['has'](_0x584de9)){const _0x45e1fa=_0x46fee4['get'](_0x584de9);_0x4878d9['has'](_0x584de9)||_0x4878d9['set'](_0x584de9,{..._0x45e1fa}),_0x5a28e8['set'](_0x584de9,{..._0x45e1fa});}}}for(const _0x2de161 of _0x4878d9['keys']())_0x2de161>=this['_startingRevisionId']&&_0x4878d9['delete'](_0x2de161);const _0x313825=new Map();for(const _0x3bc607 of _0x4ab4dc){let _0x15d0f4=_0x183372['insertions'][_0x3bc607];for(const _0x189fb5 of _0x15d0f4)if(_0x189fb5['item']['is']('element','tableCell')){const _0x2ef24f=this['_getVidAttributeName'](_0x189fb5),_0x1f4bc8=_0x189fb5['item']['getAttribute'](_0x2ef24f);if(_0x5a28e8['has'](_0x1f4bc8)){const _0xfadd22=_0x189fb5['item']['parent']['parent']['getAttribute']('vid_start'),_0x468752=_0x313825['get'](_0xfadd22)||new Set();_0x468752['add'](_0x5a28e8['get'](_0x1f4bc8)['userId']),_0x313825['set'](_0xfadd22,_0x468752);}}_0x15d0f4=_0x183372['deletions'][_0x3bc607];for(const _0x2dfddf of _0x15d0f4)if(_0x2dfddf['item']['is']('element','tableCell')){const _0x4314e7=this['_getVidAttributeName'](_0x2dfddf),_0x179c2f=_0x2dfddf['item']['getAttribute'](_0x4314e7);if(_0x4878d9['has'](_0x179c2f)){const _0x313f5a=_0x2dfddf['item']['parent']['parent']['getAttribute']('vid_start'),_0x1a096d=_0x313825['get'](_0x313f5a)||new Set();_0x1a096d['add'](_0x4878d9['get'](_0x179c2f)['userId']),_0x313825['set'](_0x313f5a,_0x1a096d);}}for(const _0x58f095 of _0x313825['keys']())(_0x5a28e8['has'](_0x58f095)||_0x4878d9['has'](_0x58f095))&&_0x313825['delete'](_0x58f095);}for(const _0x171fd6 of _0x4ab4dc){const _0x5313fa=_0x183372['insertions'][_0x171fd6];let _0x5a8f58=null,_0x52a2ca=null;for(const _0x2039a5 of _0x5313fa){const _0x26277b=this['_getVidAttributeName'](_0x2039a5),_0x3e01f7=_0x2039a5['item']['getAttribute'](_0x26277b),_0x4a7698=_0x313825['get'](_0x3e01f7);_0x4a7698&&'elementStart'==_0x2039a5['type']&&(_0x5a8f58=Array['from'](_0x4a7698)[0x0],_0x52a2ca=_0x2039a5['item']['getAttribute']('vid_end')),_0x5a8f58&&(_0x4878d9['set'](_0x3e01f7,{'userId':_0x5a8f58}),_0x5a28e8['set'](_0x3e01f7,{'userId':_0x5a8f58})),_0x3e01f7==_0x52a2ca&&(_0x5a8f58=null,_0x52a2ca=null);}}const _0x3b41bc={},_0x40ad92=new Set();for(const _0x5e974b of _0x4ab4dc){const _0x20f11a=_0x193da9['deletions'][_0x5e974b],_0x712133=_0x193da9['insertions'][_0x5e974b];for(const {userId:_0x4a8f75}of this['_touchedMarkers']['values']())null!==_0x4a8f75&&_0x40ad92['add'](_0x4a8f75);for(const {userId:_0x29b647}of this['_touchedRoots']['values']())null!==_0x29b647&&_0x40ad92['add'](_0x29b647);this['_markChanges'](_0x712133,_0x183372['insertions'][_0x5e974b],_0x5a28e8,'insertion',_0x40ad92),this['_markChanges'](_0x20f11a,_0x183372['deletions'][_0x5e974b],_0x4878d9,'deletion',_0x40ad92),_0x3b41bc[_0x5e974b]={'insertions':this['_prepareViewToSave'](_0x712133),'deletions':this['_prepareViewToSave'](_0x20f11a),'attachChange':this['_touchedRoots']['get'](_0x5e974b)||null,'attributesBefore':_0x3f361f(this['_baseRootsAttributes']['get'](_0x5e974b))||{},'attributesAfter':_0x3f361f(this['_diffRootsAttributes']['get'](_0x5e974b))};}return{'diffData':_0x3b41bc,'authorsIds':Array['from'](_0x40ad92)};}['_processRootBeforeSave'](_0x540ed1){for(const [,_0x10a4b8]of _0x540ed1['markers']){const _0x4869e=_0x10a4b8['start']['getAncestors']()['filter'](_0x55a0b7=>'tableCell'==_0x55a0b7['name']);for(const _0x50b6fa of _0x4869e)0x1==_0x50b6fa['childCount']&&_0x50b6fa['getChild'](0x0)['is']('element','paragraph')&&_0x50b6fa['getChild'](0x0)['_setAttribute']('keepParagraph',!0x0);}}['_prepareViewToSave'](_0x5d28eb){this['_processRootBeforeSave'](_0x5d28eb);const _0x4e15e5=this['editor']['data']['toView'](_0x5d28eb,{}),_0x2c0acb=Array['from'](_0x4e15e5['getChildren']())['map'](_0x4c5925=>this['_getViewJson'](_0x4c5925));return JSON['stringify'](_0x2c0acb);}['_getViewJson'](_0xd542a0){if(_0xd542a0['is']('$text'))return _0xd542a0['data'];{const _0x23edb8=_0xd542a0;return{'type':Object['keys'](C)['find'](_0x703be7=>_0xd542a0 instanceof C[_0x703be7]),'name':_0x23edb8['name'],'attributes':Array['from'](_0x23edb8['getAttributes']()),'children':Array['from'](_0x23edb8['getChildren']())['map'](_0x238455=>this['_getViewJson'](_0x238455))};}}['_markChanges'](_0x3ac352,_0x217db8,_0x5d0118,_0x36dc25,_0x1e40e2){let _0x32322c=null,_0x348820=null,_0xc5b35e=0x0;const _0x3f5e81=this['editor']['model'];for(let _0x183f02=0x0;_0x183f02<_0x217db8['length'];_0x183f02++){const _0x1c403c=this['_getVidAttributeName'](_0x217db8[_0x183f02]),_0x815ae7=_0x217db8[_0x183f02]['item']['getAttribute'](_0x1c403c),_0x2eb8c5=_0x5d0118['get'](_0x815ae7),_0x42231b=_0x183f02==_0x217db8['length']-0x1;(!_0x32322c&&_0x2eb8c5&&(_0x32322c=_0x2eb8c5,_0x348820=_0x217db8[_0x183f02]),_0x32322c&&(!_0x2eb8c5||_0x2eb8c5['userId']!=_0x32322c['userId']))&&(_0x188f8b(_0x2eb8c5,J(_0x348820,_0x3ac352,_0x3f5e81),J(_0x217db8[_0x183f02],_0x3ac352,_0x3f5e81)),_0x32322c=_0x2eb8c5||null,_0x348820=_0x2eb8c5?_0x217db8[_0x183f02]:null),_0x32322c&&_0x42231b&&_0x188f8b(_0x2eb8c5,J(_0x348820,_0x3ac352,_0x3f5e81),q(_0x217db8[_0x183f02],_0x3ac352,_0x3f5e81));}function _0x188f8b(_0x2fde26,_0x209c07,_0x1f4597){const _0x24d876=_0x32322c['userId'],_0x4b8f00='revision:'+_0x36dc25+':'+_0x24d876+':'+_0xc5b35e++,_0x208859=_0x3f5e81['createRange'](_0x209c07,_0x1f4597);_0x3ac352['markers']['set'](_0x4b8f00,_0x208859),null!==_0x24d876&&_0x1e40e2['add'](_0x24d876);}}['_getVidAttributeName'](_0x1e41e1){switch(_0x1e41e1['type']){case'elementStart':return'vid_start';case'elementEnd':return'vid_end';default:return'vid';}}['_fixOperation'](_0x22a4b3,_0x20d8d2){_0x22a4b3['baseVersion']=null;for(const _0x4a7e52 in _0x22a4b3){const _0x1f73dc=_0x22a4b3[_0x4a7e52];if(_0x1f73dc instanceof gt){const _0xc7891a=_0x20d8d2['get'](_0x1f73dc['root']['rootName']);_0x22a4b3[_0x4a7e52]=this['_fixPosition'](_0x1f73dc,_0xc7891a);}if(_0x1f73dc instanceof vt){const _0xf1d553=_0x20d8d2['get'](_0x1f73dc['root']['rootName']);_0x22a4b3[_0x4a7e52]=this['_fixRange'](_0x1f73dc,_0xf1d553);}'root'===_0x4a7e52&&(_0x22a4b3['root']=_0x20d8d2['get'](_0x22a4b3['root']['rootName']));}}['_fixRange'](_0x23b9c3,_0x24ea4e){return this['editor']['model']['createRange'](this['_fixPosition'](_0x23b9c3['start'],_0x24ea4e),this['_fixPosition'](_0x23b9c3['end'],_0x24ea4e));}['_fixPosition'](_0x12a93e,_0x205b3f){return this['editor']['model']['createPositionFromPath'](_0x205b3f,_0x12a93e['path'],_0x12a93e['stickiness']);}['_handleInsertOperation'](_0x274b0d){const _0x35b6cb=this['_idsRoots']['get'](_0x274b0d['position']['root']['rootName']),_0x644dd9=this['_fixPosition'](_0x274b0d['position'],_0x35b6cb),_0x58585a=null===_0x274b0d['_authorId']?null:_0x274b0d['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x247620=_0x644dd9['parent'],_0x4eff9d=this['_revisionId'],_0x31e2bf=[];for(const _0x4439b1 of _0x274b0d['nodes'])if(_0x4439b1['is']('element'))_0x31e2bf['push'](this['_makeIdsRoot'](_0x4439b1));else{for(let _0x20785d=0x0;_0x20785d<_0x4439b1['offsetSize'];_0x20785d++)_0x31e2bf['push'](new ft('$text',{'vid':this['_revisionId']++}));}const _0x318fda=this['_revisionId'];for(let _0x9c9e00=_0x4eff9d;_0x9c9e00<_0x318fda;_0x9c9e00++)this['_touched']['set'](_0x9c9e00,{'userId':_0x58585a});_0x247620['_insertChild'](_0x644dd9['offset'],_0x31e2bf);}['_handleMoveOperation'](_0x374e5d){(_0x374e5d=this['_cloneOperation'](_0x374e5d,this['_idsRoots']))['_execute']();const _0x124657=null===_0x374e5d['_authorId']?null:_0x374e5d['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x425272=_0x374e5d['getMovedRangeStart'](),_0x49c02d=_0x425272['parent'],_0x9e5792=_0x425272['offset'];!function _0x32919e(_0x313397,_0xc129aa,_0x45f8e1,_0x2d86ad){for(let _0x840359=_0x45f8e1;_0x840359<_0x2d86ad;_0x840359++){const _0x5d84b1=_0xc129aa['getChild'](_0x840359);_0x5d84b1['is']('element','$text')?_0x313397['set'](_0x5d84b1['getAttribute']('vid'),{'userId':_0x124657}):(_0x313397['set'](_0x5d84b1['getAttribute']('vid_start'),{'userId':_0x124657}),_0x32919e(_0x313397,_0x5d84b1,0x0,_0x5d84b1['childCount']),_0x313397['set'](_0x5d84b1['getAttribute']('vid_end'),{'userId':_0x124657}));}}(this['_touched'],_0x49c02d,_0x9e5792,_0x9e5792+_0x374e5d['howMany']);}['_handleMergeOperation'](_0x2a2400){const _0x4a548c=null===(_0x2a2400=this['_cloneOperation'](_0x2a2400,this['_idsRoots']))['_authorId']?null:_0x2a2400['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x3150de=_0x2a2400['targetPosition']['parent'],_0x15f66e=_0x2a2400['sourcePosition']['parent'],_0x389dd6=_0x3150de['getAttribute']('vid_end'),_0x13ff25=_0x15f66e['getAttribute']('vid_start');_0x3150de['_setAttribute']('vid_end',_0x15f66e['getAttribute']('vid_end')),_0x15f66e['_setAttribute']('vid_end',_0x389dd6),this['_touched']['set'](_0x13ff25,{'userId':_0x4a548c}),this['_touched']['set'](_0x389dd6,{'userId':_0x4a548c}),_0x2a2400['_execute']();}['_handleSplitOperation'](_0x19ab66){const _0x5f1108=null===(_0x19ab66=this['_cloneOperation'](_0x19ab66,this['_idsRoots']))['_authorId']?null:_0x19ab66['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x436899=_0x19ab66['graveyardPosition'],_0x4b9a18=_0x19ab66['splitPosition']['parent'];_0x19ab66['_execute']();const _0x757432=_0x4b9a18['getAttribute']('vid_end'),_0x10114a=_0x19ab66['insertionPosition']['nodeAfter'];if(_0x436899){const _0x427a47=_0x10114a['getAttribute']('vid_end'),_0x4cf170=_0x4b9a18['getAttribute']('vid_end');_0x4b9a18['_setAttribute']('vid_end',_0x427a47),_0x10114a['_setAttribute']('vid_end',_0x4cf170),this['_touched']['set'](_0x4b9a18['getAttribute']('vid_end'),{'userId':_0x5f1108}),this['_touched']['set'](_0x10114a['getAttribute']('vid_start'),{'userId':_0x5f1108});}else{const _0x33942c=this['_revisionId']++,_0x2f589e=this['_revisionId']++;_0x4b9a18['_setAttribute']('vid_end',_0x33942c),_0x10114a['_setAttribute']('vid_start',_0x2f589e),_0x10114a['_setAttribute']('vid_end',_0x757432),this['_touched']['set'](_0x33942c,{'userId':_0x5f1108}),this['_touched']['set'](_0x2f589e,{'userId':_0x5f1108});}}['_handleMarkerOperation'](_0x15d109){if(!_0x15d109['affectsData'])return;const _0x387878=(_0x15d109=this['_cloneOperation'](_0x15d109,this['_diffRoots']))['oldRange']?_0x15d109['oldRange']['root']:null,_0x5ab9c5=_0x15d109['newRange']?_0x15d109['newRange']['root']:null;_0x387878&&this['_markers']['delete'](_0x15d109['name']),_0x5ab9c5&&this['_markers']['set'](_0x15d109['name'],_0x15d109['newRange']['clone']());const _0xb6dacf=null===_0x15d109['_authorId']?null:_0x15d109['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x5a355a=_0x15d109['name'];if(!this['_touchedMarkers']['has'](_0x5a355a))return void this['_touchedMarkers']['set'](_0x5a355a,{'range':_0x15d109['oldRange'],'userId':_0xb6dacf});const _0x21da90=this['_touchedMarkers']['get'](_0x5a355a),_0x196611=_0x21da90['range'],_0x3af207=_0x15d109['newRange'];null==_0x196611&&null==_0x3af207||_0x196611&&_0x3af207&&_0x196611['isEqual'](_0x3af207)?this['_touchedMarkers']['delete'](_0x15d109['name']):_0x21da90['userId']=_0xb6dacf;}['_handleRootOperation'](_0x39bb9c,_0xebb344){this['_diffRoots']['has'](_0x39bb9c['rootName'])?this['_diffRoots']['get'](_0x39bb9c['rootName'])['_isAttached']=_0x39bb9c['isAdd']:(this['_diffRoots']['set'](_0x39bb9c['rootName'],B(_0x39bb9c['rootName'],!0x0)),this['_diffRootsAttributes']['set'](_0x39bb9c['rootName'],{}),_0xebb344&&this['_idsRoots']['set'](_0x39bb9c['rootName'],B(_0x39bb9c['rootName'],!0x0)));const _0x550837=null===_0x39bb9c['_authorId']?null:_0x39bb9c['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0xe78066=this['_touchedRoots']['get'](_0x39bb9c['rootName']);_0xe78066&&_0xe78066['userId']===_0x550837?this['_touchedRoots']['delete'](_0x39bb9c['rootName']):this['_touchedRoots']['set'](_0x39bb9c['rootName'],{'userId':_0x550837,'isAttached':_0x39bb9c['isAdd']});}['_handleRootAttributeOperation'](_0x387c5b){const _0x1015c1=this['_diffRootsAttributes']['get'](_0x387c5b['root']['rootName']);null===_0x387c5b['newValue']?delete _0x1015c1[_0x387c5b['key']]:_0x1015c1[_0x387c5b['key']]=_0x387c5b['newValue'];}}function F(_0x340328){const _0x3d6d2f=B(_0x340328['rootName'],_0x340328['isAttached']());for(const _0x4c5d86 of _0x340328['getChildren']()){const _0x40b5be=_0x4c5d86['_clone'](!0x0);_0x3d6d2f['_appendChild'](_0x40b5be);}return _0x3d6d2f;}function B(_0x4ae781,_0x4900b6=!0x0){const _0x4052f8=new mt();return _0x4052f8['rootName']=_0x4ae781,_0x4052f8['_isAttached']=_0x4900b6,_0x4052f8['isAttached']=()=>_0x4052f8['_isAttached'],_0x4052f8;}function J(_0x350c65,_0x12525c,_0x28e807){const _0x100ebc='elementEnd'==_0x350c65['type']?_0x28e807['createPositionAt'](_0x350c65['item'],'end'):_0x28e807['createPositionBefore'](_0x350c65['item']);return _0x28e807['createPositionFromPath'](_0x12525c,_0x100ebc['path'],_0x100ebc['stickiness']);}function q(_0x492c05,_0x2e9b98,_0x3b9290){const _0x595a8c='elementStart'==_0x492c05['type']?_0x3b9290['createPositionAt'](_0x492c05['item'],0x0):_0x3b9290['createPositionAfter'](_0x492c05['item']);return _0x3b9290['createPositionFromPath'](_0x2e9b98,_0x595a8c['path'],_0x595a8c['stickiness']);}class hs extends ts{['focusTracker'];['keystrokes'];['revisionNameInputView'];constructor(_0x1f83ad,_0x42eadd){super(_0x1f83ad),this['focusTracker']=new _0x2d7a0c(),this['keystrokes']=new _0x10c3da(),this['set']('revisionNameInputValue',''),this['revisionNameInputView']=this['_createRevisionNameInput'](_0x42eadd),this['setTemplate']({'tag':'form','attributes':{'class':['ck','ck-revision-history-save-revision-form','ck-responsive-form'],'tabindex':'-1'},'children':[this['revisionNameInputView']]}),_0x449c03(this);}['render'](){super['render'](),_0x5577d8({'view':this}),this['focusTracker']['add'](this['revisionNameInputView']['element']),this['keystrokes']['listenTo'](this['element']);const _0x50fb5b=_0x2d0244=>_0x2d0244['stopPropagation']();this['keystrokes']['set']('arrowright',_0x50fb5b),this['keystrokes']['set']('arrowleft',_0x50fb5b),this['keystrokes']['set']('arrowup',_0x50fb5b),this['keystrokes']['set']('arrowdown',_0x50fb5b);}['focus'](){this['revisionNameInputView']['focus']();}get['revisionName'](){return this['revisionNameInputView']['fieldView']['element']['value']['trim']();}set['revisionName'](_0x410554){this['revisionNameInputView']['fieldView']['element']['value']=_0x410554['trim']();}['reset'](){this['revisionNameInputView']['fieldView']['element']['value']='',this['revisionNameInputView']['errorText']=null;}['_createRevisionNameInput'](_0x167c5f){const _0x813b82=new _0x1ea983(this['locale'],_0x57df33),_0x372709=_0x813b82['fieldView'];_0x372709['extendTemplate']({'attributes':{'maxlength':'220'}});let _0x8fe7ba=R(this['locale'],'Name\x20of\x20the\x20revision');return!_0x167c5f&&(_0x8fe7ba+='\x20('+R(this['locale'],'optional')+')'),(_0x813b82['label']=_0x8fe7ba,_0x372709['on']('input',()=>{this['revisionNameInputValue']=_0x372709['element']['value']['trim']();}),_0x813b82);}}class u extends _0x27f686{static get['pluginName'](){return'RevisionHistoryUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[l];}['_saveRevisionFormView'];['init'](){const _0x376437=this['editor'],_0x11e934=_0x376437['plugins']['get']('RevisionTracker');_0x376437['ui']['componentFactory']['add']('revisionHistory',_0x5f5138=>{const _0x2085bb=_0x47635c(_0x5f5138),_0x46b6f3=_0x2085bb['panelView']['children'],_0x45e9de=new _0x253ba0(_0x5f5138),_0x3f9811=new _0x950cf2(_0x5f5138),_0x45adf9=new te(_0x5f5138),_0x2e43eb=new _0x950cf2(_0x5f5138),_0x1850ec=new te(_0x5f5138);return _0x2085bb['bind']('isEnabled')['to'](_0x11e934,'isReady',_0x11e934,'isEnabled',_0x376437,'isReadOnly',(_0x1e8237,_0x3b3c2c,_0x2ae4f2)=>_0x1e8237&&_0x3b3c2c&&!_0x2ae4f2),_0x2085bb['buttonView']['set']({'icon':_0x57211a['history'],'label':R(_0x5f5138,'Revision\x20history'),'tooltip':!0x0}),_0x45adf9['set']({'label':R(_0x5f5138,'Save\x20current\x20revision'),'withText':!0x0,'role':'menuitem'}),_0x45adf9['bind']('isEnabled')['to'](_0x11e934,'isReady',_0x11e934,'isEnabled',_0x376437,'isReadOnly',(_0x1977cf,_0x433413,_0xf9af6a)=>_0x1977cf&&_0x433413&&!_0xf9af6a),_0x45adf9['on']('execute',()=>this['_showDialog']()),_0x1850ec['set']({'label':R(_0x5f5138,'Open\x20revision\x20history'),'withText':!0x0,'role':'menuitem'}),_0x1850ec['bind']('isEnabled')['to'](_0x11e934,'isReady',_0x376437,'isReadOnly',(_0x6e1bf8,_0x48a7a0)=>_0x6e1bf8&&!_0x48a7a0),_0x1850ec['on']('execute',()=>{_0x376437['config']['get']('revisionHistory')['showRevisionViewerCallback'](),_0x2085bb['isOpen']=!0x1,_0x376437['editing']['view']['focus']();}),_0x3f9811['children']['add'](_0x45adf9),_0x2e43eb['children']['add'](_0x1850ec),_0x45e9de['role']='menu',_0x45e9de['items']['addMany']([_0x3f9811,_0x2e43eb]),_0x46b6f3['add'](_0x45e9de),_0x2085bb;}),_0x376437['ui']['componentFactory']['add']('menuBar:revisionHistory',()=>this['_registerMenuComponent']());}['_registerMenuComponent'](){const _0x199cdd=this['editor'],_0x33e6d4=_0x199cdd['locale'],_0x3fd7da=new _0x1f15bb(_0x33e6d4),_0x2c4387=new _0x5723a7(_0x33e6d4);_0x3fd7da['buttonView']['set']({'icon':_0x57211a['history'],'label':R(_0x33e6d4,'Revision\x20history')});const _0x378315=new _0x185366(_0x33e6d4,_0x3fd7da),_0x3799e2=new _0x1bff1f(_0x33e6d4);_0x3799e2['set']({'label':R(_0x33e6d4,'Save\x20current\x20revision')}),_0x3799e2['delegate']('execute')['to'](_0x3fd7da),_0x3799e2['on']('execute',()=>{this['_showDialog']();}),_0x378315['children']['add'](_0x3799e2),_0x2c4387['items']['add'](_0x378315);const _0x2f71c9=new _0x185366(_0x33e6d4,_0x3fd7da),_0x305a46=new _0x1bff1f(_0x33e6d4);return _0x305a46['set']({'label':R(_0x33e6d4,'Open\x20revision\x20history')}),_0x305a46['delegate']('execute')['to'](_0x3fd7da),_0x305a46['on']('execute',()=>{_0x199cdd['config']['get']('revisionHistory')['showRevisionViewerCallback']();}),_0x2f71c9['children']['add'](_0x305a46),_0x2c4387['items']['add'](_0x2f71c9),_0x3fd7da['panelView']['children']['add'](_0x2c4387),_0x3fd7da;}['_showDialog'](){const _0x39ee06=this['editor'],_0x19fe69=_0x39ee06['locale'],_0x437b59=_0x39ee06['plugins']['get']('Dialog'),_0x1ead51=_0x39ee06['plugins']['get']('RevisionTracker');function _0x5ea3b3(_0x41896f){_0x39ee06['config']['get']('revisionHistory.requireRevisionName')&&''===_0x41896f['revisionName']?_0x41896f['revisionNameInputView']['errorText']=R(_0x19fe69,'The\x20revision\x20name\x20cannot\x20be\x20empty.'):(_0x39ee06['plugins']['get'](l)['saveRevision']({'name':_0x41896f['revisionName']}),_0x437b59['hide']());}this['_saveRevisionFormView']||(this['_createSaveRevisionFormView'](),this['_saveRevisionFormView']['on']('submit',()=>_0x5ea3b3(this['_saveRevisionFormView']))),this['_saveRevisionFormView']['reset'](),_0x437b59['show']({'id':'revisionSave','title':R(_0x19fe69,'Save\x20current\x20revision'),'isModal':!0x0,'content':this['_saveRevisionFormView'],'actionButtons':[{'label':R(_0x39ee06['locale'],'Cancel'),'withText':!0x0,'onExecute':()=>_0x437b59['hide']()},{'label':R(_0x39ee06['locale'],'Accept'),'class':'ck-button-action','withText':!0x0,'onCreate'(_0x11166c){_0x11166c['bind']('isEnabled')['to'](_0x1ead51,'isReady',_0x1ead51,'isEnabled',_0x39ee06,'isReadOnly',(_0x3e0743,_0x35bb87,_0x503b33)=>_0x3e0743&&_0x35bb87&&!_0x503b33);},'onExecute':()=>_0x5ea3b3(this['_saveRevisionFormView'])}]});}['_createSaveRevisionFormView'](){const _0x1997a5=this['editor'],_0x3b0605=_0x1997a5['locale'];this['_saveRevisionFormView']=new hs(_0x3b0605,_0x1997a5['config']['get']('revisionHistory.requireRevisionName')),this['_saveRevisionFormView']['render']();}}class Y extends ts{['changeId'];['_model'];constructor(_0x1b1ef7,_0x25c461){super(_0x1b1ef7),this['_model']=_0x25c461,this['changeId']=_0x25c461['id'];const _0x37d240=this['bindTemplate'],_0x48db3c=R(_0x1b1ef7,_0x25c461['data']['isSuggestion']?'Suggested\x20by':'add'==_0x25c461['type']?'Added\x20by':'Removed\x20by');this['set']('type',_0x25c461['type']),this['setTemplate']({'tag':'div','attributes':{'class':['ck-annotation','ck-revision-change',_0x37d240['to']('type',_0x2c9955=>'ck-revision-change__'+_0x2c9955)],'tabindex':-0x1},'children':[{'tag':'span','children':[{'tag':'span','attributes':{'class':['ck-revision-change__label']},'children':[{'text':_0x48db3c}]},{'text':'\x20'+_0x25c461['author']['name']}]}]});}['focus'](){this['element']['focus']();}}class r extends/* #__PURE__ -- @preserve */
|
|
25
|
-
_0xa03473(){['id'];['author'];['type'];['data'];['rootName'];constructor(_0x212a69){super(),this['id']=_0x212a69['id']||_0x27b216(),this['author']=_0x212a69['author'],this['type']=_0x212a69['type'],this['data']=_0x212a69['data']||{},this['rootName']=_0x212a69['rootName'],this['set']('createdAt',_0x212a69['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(_0x425a9c,_0x21633f){this['newRevisionId']=_0x425a9c,this['oldRevisionId']=_0x21633f,this['changes']=new _0x2987a6();}['_setChanges'](_0x4d1a4b){for(const _0x305a23 of _0x4d1a4b)this['changes']['add'](_0x305a23);}}const Z={'c':_0x5a71b7,'a':_0x5c54c2,'e':_0xc8c1e6,'r':_0x5e32f8,'u':_0x255215};class d extends _0x27f686{['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[_0x17470c,_0x16945d,j];}constructor(_0x394b61){super(_0x394b61),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',(_0x335c41,_0x18d3a6,_0x119726)=>{this['activeChange']=null,this['activeView']=null,this['editor']['editing']['view']['change'](_0x1e43f9=>{for(const _0x518771 of this['editor']['editing']['view']['document']['roots'])_0x119726?_0x1e43f9['removeClass']('ck-editor__editable__overlay',_0x518771):_0x1e43f9['addClass']('ck-editor__editable__overlay',_0x518771);});}),this['bind']('isNavigationMode')['to'](this,'activeChange',_0x5efb2d=>null!==_0x5efb2d),this['bind']('currentChangeNumber')['to'](this,'isReady',this,'diff',this,'activeChange',(_0x11fa76,_0x55db4d,_0x1d32ba)=>_0x11fa76&&_0x1d32ba?_0x55db4d['changes']['getIndex'](_0x1d32ba):0x0),this['bind']('numberOfChanges')['to'](this,'isReady',this,'diff',(_0x404487,_0x949d5c)=>_0x404487?_0x949d5c['changes']['length']:0x0),this['_changeView']=null,this['_changeIdToChange']=new Map(),this['adapter']=null,this['_balloon']=this['editor']['plugins']['get'](_0x16945d);}['init'](){const _0x59b5be=this['editor'],_0xe16394=new yt(_0x59b5be,{'direction':'backward'}),_0x5bfca1=new yt(_0x59b5be,{'direction':'forward'});(_0x59b5be['commands']['add']('showPreviousChange',_0xe16394),_0x59b5be['commands']['add']('showNextChange',_0x5bfca1),_0x59b5be['commands']['add']('restoreRevision',new _t(_0x59b5be)),this['on']('change:numberOfChanges',()=>{_0xe16394['refresh'](),_0x5bfca1['refresh']();}),this['_setConversion'](),this['_initInteractions'](),_0x59b5be['enableReadOnlyMode']('revision-viewer'),_0x59b5be['plugins']['has']('WidgetToolbarRepository'))&&_0x59b5be['plugins']['get']('WidgetToolbarRepository')['forceDisabled']('revision-viewer');}async['getRevisionData'](_0x5e1cb9){await this['loadRevisionData'](_0x5e1cb9);const _0x226aba={};for(const _0x41b242 in _0x5e1cb9['diffData']){if(_0x5e1cb9['diffData'][_0x41b242]['attachChange']&&!_0x5e1cb9['diffData'][_0x41b242]['attachChange']['isAttached'])continue;const _0xbc04a2=this['_removeRevisionMarkers'](JSON['parse'](_0x5e1cb9['diffData'][_0x41b242]['insertions'])),_0x369dc4=this['editor']['editing']['view']['document'],_0xfa0c95=new _0x48dd3c(_0x369dc4,_0xbc04a2['map'](_0x26607f=>this['_getViewObj'](_0x26607f)));this['editor']['data']['processor']['useFillerType']('marked'),_0x226aba[_0x41b242]=this['editor']['data']['processor']['toData'](_0xfa0c95),this['editor']['data']['processor']['useFillerType']('default');}return _0x226aba;}async['getRevisionRootsAttributes'](_0x5ac804){await this['loadRevisionData'](_0x5ac804);const _0x1ef843={};for(const _0x30fef9 in _0x5ac804['diffData'])_0x5ac804['diffData'][_0x30fef9]['attachChange']&&!_0x5ac804['diffData'][_0x30fef9]['attachChange']['isAttached']||(_0x1ef843[_0x30fef9]=_0x5ac804['diffData'][_0x30fef9]['attributesAfter']||{});return _0x1ef843;}['_removeRevisionMarkers'](_0x1b3de3){return(_0x1b3de3=_0x1b3de3['filter'](_0x5128a8=>!_0x5128a8['name']||'revision-start'!==_0x5128a8['name']&&'revision-end'!==_0x5128a8['name']))['forEach'](_0x52c164=>{'string'!=typeof _0x52c164&&(_0x52c164['children']=this['_removeRevisionMarkers'](_0x52c164['children']),_0x52c164['attributes']=_0x52c164['attributes']['filter'](_0x121268=>!_0x121268[0x0]['startsWith']('data-revision-')));}),_0x1b3de3;}async['compare'](_0x37b3d5,_0xab1e3d,_0x170561=!0x1){if(!this['isEnabled'])return;const _0x264c40=this['diff'],_0x12dc49=this['repository'],_0x2e692d='string'==typeof _0x37b3d5?_0x12dc49['getRevision'](_0x37b3d5):_0x37b3d5,_0x21d086='string'==typeof _0xab1e3d?_0x12dc49['getRevision'](_0xab1e3d):_0xab1e3d,_0x34b5fb=_0x2e692d['id'],_0x113eab=_0x21d086?_0x21d086['id']:null;if(!_0x170561&&this['diff']&&this['diff']['newRevisionId']===_0x34b5fb&&this['diff']['oldRevisionId']===_0x113eab)return Promise['resolve']();this['isReady']=!0x1,this['activeView']=null,this['activeChange']=null,this['diff']=new f(_0x34b5fb,_0x113eab);const _0x5d31de=this['_getRevisionsRange'](_0x2e692d,_0x21d086,!0x0)['map'](_0x5a1041=>this['loadRevisionData'](_0x5a1041));return _0x5d31de['push'](new Promise(_0xcb2247=>{setTimeout(_0xcb2247,0x14);})),Promise['all'](_0x5d31de)['then'](()=>{if(!this['isEnabled'])return;this['_cleanUp']();const _0x42f42d=this['_getDiff'](_0x34b5fb,_0x113eab);for(const _0x419d98 of _0x42f42d['changes'])this['_changeIdToChange']['set'](_0x419d98['id'],_0x419d98);this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x588d7f=>{for(const _0x30aa2f of this['editor']['model']['document']['getRootNames']())_0x588d7f['detachRoot'](_0x30aa2f);for(const _0x19e556 of Object['keys'](_0x42f42d['model'])){const _0x5398df=_0x588d7f['addRoot'](_0x19e556);for(const _0x2c9e62 of Object['keys'](_0x42f42d['attributes'][_0x19e556]))_0x588d7f['setAttribute'](_0x2c9e62,_0x42f42d['attributes'][_0x19e556][_0x2c9e62],_0x5398df);_0x588d7f['insert'](_0x42f42d['model'][_0x19e556],_0x5398df,0x0);}}),this['diff']['_setChanges'](this['_sortAndFilterDiffChanges'](_0x42f42d['changes'])),this['isReady']=!0x0;})['catch'](_0x189064=>{console['error'](_0x189064),this['_cleanUp'](),_0x264c40&&(this['diff']=_0x264c40),this['isReady']=!0x0;});}['addRevisionData'](_0x3ca6c7,_0x50fb0e){const _0x47f876=this['repository']['createRevision'](_0x3ca6c7);return _0x47f876['on']('_update',(_0x46b08f,_0x1ae3ef,_0x16649e)=>_0x50fb0e(_0x1ae3ef,_0x16649e,_0x47f876)),this['repository']['addRevision'](_0x47f876),_0x47f876;}['loadRevisionData'](_0x4988d6){if(!_0x4988d6||_0x4988d6['diffData'])return Promise['resolve']();{const _0x3355ea=this['editor']['config']['get']('collaboration.channelId');return this['adapter']['getRevision']({'channelId':_0x3355ea,'revisionId':_0x4988d6['id']})['then'](_0x62662a=>{_0x4988d6['_update']({'diffData':_0x62662a['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},_0x121fb2=>{for(const _0x2dc164 of this['editor']['model']['document']['getRootNames']())_0x121fb2['detachRoot'](_0x2dc164);});}['_sortAndFilterDiffChanges'](_0xc6be78){const _0x54ae59=[],_0x3ad22a=new Map();for(const _0x41edf2 of this['editor']['model']['document']['getRootNames']()){const _0x52d944=this['editor']['editing']['view']['getDomRoot'](_0x41edf2);if(!_0x52d944)continue;const _0x1398da=_0x52d944['getClientRects']()['item'](0x0);_0x1398da&&(_0x54ae59['push'](_0x41edf2),_0x3ad22a['set'](_0x41edf2,_0x1398da));}return _0x54ae59['sort']((_0x13b3ba,_0x333373)=>{const _0x414ce4=_0x3ad22a['get'](_0x13b3ba),_0x59d536=_0x3ad22a['get'](_0x333373);return _0x414ce4['y']-_0x59d536['y']||_0x414ce4['x']-_0x59d536['x'];}),(_0xc6be78=_0xc6be78['filter'](_0x5c8b5c=>_0x54ae59['includes'](_0x5c8b5c['rootName'])))['sort']((_0x4ba938,_0x3637ef)=>_0x54ae59['indexOf'](_0x4ba938['rootName'])-_0x54ae59['indexOf'](_0x3637ef['rootName'])),_0xc6be78;}['_makeTape'](_0x50e12a){const _0x18b01d=Array['from'](_0x50e12a['markers'])['filter'](([_0x55ec91,_0x3d2fd4])=>_0x55ec91['startsWith']('revision:')&&!_0x3d2fd4['isCollapsed']),_0x42ee0c=Array['from'](this['editor']['model']['createRangeIn'](_0x50e12a)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0x18b01d['length'])for(const _0x57afb5 of _0x42ee0c){const [_0x170fe0,_0x5f21b1]=_0x18b01d[0x0],[,_0x324810,_0x35b0fc]=_0x170fe0['split'](':');if(_0x5f21b1['end']['isEqual'](_0x57afb5['nextPosition'])&&_0x18b01d['shift'](),(_0x57afb5['previousPosition']['isEqual'](_0x5f21b1['start'])||_0x57afb5['previousPosition']['isAfter'](_0x5f21b1['start']))&&('insertion'==_0x324810?_0x57afb5['isAdded']={'userId':_0x35b0fc}:'deletion'==_0x324810&&(_0x57afb5['isRemoved']={'userId':_0x35b0fc})),0x0==_0x18b01d['length'])break;}return _0x42ee0c;}['_refreshStartEndIndex'](_0x2c0237){const _0x1dfed5=new Map();for(let _0x35bf0e=0x0;_0x35bf0e<_0x2c0237['length'];_0x35bf0e++)'text'===_0x2c0237[_0x35bf0e]['type']?(_0x2c0237[_0x35bf0e]['item']['startIndex']=_0x35bf0e,_0x2c0237[_0x35bf0e]['item']['endIndex']=_0x35bf0e):('elementStart'===_0x2c0237[_0x35bf0e]['type']?_0x2c0237[_0x35bf0e]['item']['startIndex']=_0x35bf0e:'elementEnd'===_0x2c0237[_0x35bf0e]['type']&&(_0x2c0237[_0x35bf0e]['item']['endIndex']=_0x35bf0e),_0x1dfed5['set'](_0x2c0237[_0x35bf0e]['id'],_0x35bf0e));for(const _0x499849 of _0x1dfed5['values']())'elementStart'===_0x2c0237[_0x499849]['type']?_0x2c0237[_0x499849]['item']['endIndex']=_0x1dfed5['get'](_0x2c0237[_0x499849]['pairId']):'elementEnd'===_0x2c0237[_0x499849]['type']&&(_0x2c0237[_0x499849]['item']['startIndex']=_0x1dfed5['get'](_0x2c0237[_0x499849]['pairId']));}['_processTape'](_0x3a886f){for(let _0x24861f=0x0;_0x24861f<_0x3a886f['length'];_0x24861f++){if('elementStart'===_0x3a886f[_0x24861f]['type'])_0x3a886f[_0x24861f]['item']['startIndex']=_0x24861f;else{if('elementEnd'===_0x3a886f[_0x24861f]['type']){_0x3a886f[_0x24861f]['item']['endIndex']=_0x24861f;const _0x587826=_0x3a886f[_0x24861f]['item']['startIndex'];_0x3a886f[_0x587826]['pairId']=_0x3a886f[_0x24861f]['id'],_0x3a886f[_0x24861f]['pairId']=_0x3a886f[_0x587826]['id'];}else _0x3a886f[_0x24861f]['item']['startIndex']=_0x24861f,_0x3a886f[_0x24861f]['item']['endIndex']=_0x24861f,_0x3a886f[_0x24861f]['pairId']=null;}_0x3a886f[_0x24861f]['markersStart']||(_0x3a886f[_0x24861f]['markersStart']=[],_0x3a886f[_0x24861f]['markersEnd']=[]);}}['_markInsertions'](_0x2c3b41,_0x106452){const _0x5ef7d1=_0x2c3b41['filter'](_0x4dacec=>!_0x4dacec['isAdded']);for(let _0x2f3483=0x0;_0x2f3483<_0x106452['length'];_0x2f3483++)_0x106452[_0x2f3483]['isAdded']&&(_0x5ef7d1[_0x2f3483]['isAdded']=_0x106452[_0x2f3483]['isAdded']);}['_makeModelFromViewString'](_0x437053){const _0x3ad015=JSON['parse'](_0x437053),_0x23393b=this['editor']['editing']['view']['document'],_0x1efe41=new _0x48dd3c(_0x23393b,_0x3ad015['map'](_0x2ded6b=>this['_getViewObj'](_0x2ded6b)));return this['editor']['data']['toModel'](_0x1efe41);}['_getViewObj'](_0x259c13){const _0x40df4e=this['editor']['editing']['view']['document'];if('string'==typeof _0x259c13)return new _0xb834d4(_0x40df4e,_0x259c13);{const _0x32e362=_0x259c13['children']['map'](_0x1cb7b1=>this['_getViewObj'](_0x1cb7b1));return new(Z[_0x259c13['type']]||_0x3d7190)(_0x40df4e,_0x259c13['name'],_0x259c13['attributes'],_0x32e362);}}['_getDiff'](_0x14109a,_0x3e4178=null){const _0x3d3af5=this['repository']['getRevision'](_0x14109a),_0x1d9c96=_0x3e4178?this['repository']['getRevision'](_0x3e4178):null,_0x299c70=this['_getRevisionsRange'](_0x3d3af5,_0x1d9c96),_0x10ef73=_0x299c70[_0x299c70['length']-0x1],_0x27c75d=new Map(),_0x2e4a3b={'model':{},'attributes':{},'changes':[]},_0x5205ef=new Set(),_0x3f241a=new Map();for(let _0x59bb90=_0x299c70['length']-0x1;_0x59bb90>=0x0;_0x59bb90--){const _0x5b91b8=_0x299c70[_0x59bb90];for(const _0x4c577f of Object['keys'](_0x5b91b8['diffData']))if(_0x5b91b8['diffData'][_0x4c577f]['attachChange']){const _0x4ea38e=_0x5b91b8['diffData'][_0x4c577f]['attachChange'];_0x4ea38e['isAttached']?(_0x5205ef['add'](_0x4c577f),_0x3f241a['has'](_0x4c577f)&&_0x3f241a['get'](_0x4c577f)['userId']==_0x4ea38e['userId']?_0x3f241a['delete'](_0x4c577f):_0x3f241a['set'](_0x4c577f,_0x4ea38e)):_0x3f241a['has'](_0x4c577f)?(_0x5205ef['delete'](_0x4c577f),_0x3f241a['delete'](_0x4c577f)):(_0x5205ef['add'](_0x4c577f),_0x3f241a['set'](_0x4c577f,_0x4ea38e));}else _0x5205ef['add'](_0x4c577f);}for(const _0x3aae8b of _0x5205ef){const _0x456963=_0x3f241a['has'](_0x3aae8b)&&!_0x3f241a['get'](_0x3aae8b)['isAttached'];let _0x1e4e60=_0x456963?_0x299c70['length']-0x1:0x0;const _0x5a16e8=_0x456963?-0x1:0x1;for(;_0x299c70[_0x1e4e60];){const _0x93461c=_0x299c70[_0x1e4e60];if(_0x93461c['diffData'][_0x3aae8b]){const _0x1a719f=_0x456963?_0x93461c['diffData'][_0x3aae8b]['attributesBefore']:_0x93461c['diffData'][_0x3aae8b]['attributesAfter'];_0x2e4a3b['attributes'][_0x3aae8b]=_0x1a719f?_0x3f361f(_0x1a719f):{};break;}_0x1e4e60+=_0x5a16e8;}}for(const _0x4b186e of _0x299c70){_0x4b186e['model']={};for(const _0x3c23ce of _0x4b186e['authors'])_0x27c75d['set'](_0x3c23ce['id'],_0x3c23ce);for(const _0x288faa of _0x5205ef){const _0x3f41b2=_0x4b186e['diffData'][_0x288faa]?_0x4b186e['diffData'][_0x288faa]['insertions']:'[]',_0x712dfa=_0x4b186e['diffData'][_0x288faa]?_0x4b186e['diffData'][_0x288faa]['deletions']:'[]';_0x4b186e['model'][_0x288faa]={'insertions':this['_makeModelFromViewString'](_0x3f41b2),'deletions':this['_makeModelFromViewString'](_0x712dfa)};}}for(const _0x23c764 of _0x5205ef){let _0xf01f85=null,_0x1607ac=0x0;const _0x302e8a=new Map(Array['from'](_0x3d3af5['model'][_0x23c764]['insertions']['markers'])['filter'](([_0x1f9967])=>!_0x1f9967['startsWith']('revision:')));let _0x338249=0x0;for(const _0x416c53 of _0x299c70){const _0x372985=this['_makeTape'](_0x416c53['model'][_0x23c764]['insertions']);_0x416c53==_0x3d3af5?(_0xf01f85=_0x372985,_0x1607ac=_0xf01f85['length'],_0xf01f85['forEach'](_0x18c220=>{_0x18c220['id']=_0x338249++;}),this['_processTape'](_0xf01f85)):this['_markInsertions'](_0xf01f85,_0x372985);const _0x2fcc06=_0xf01f85['filter'](_0x7da6e7=>!_0x7da6e7['isAdded'])['map'](_0x5888ab=>_0x5888ab['id']);let _0x127ed3=0x0;const _0x352058=this['_makeTape'](_0x416c53['model'][_0x23c764]['deletions']);_0x352058['forEach'](_0x126219=>{_0x126219['isRemoved']?_0x126219['id']=_0x1607ac++:_0x126219['id']=_0x2fcc06[_0x127ed3++];}),this['_processTape'](_0x352058),this['_setDistance'](_0xf01f85,'isAdded'),this['_setDistance'](_0x352058,'isRemoved'),_0x416c53==_0x3d3af5&&this['_markMarkers'](_0xf01f85,_0x302e8a),_0xf01f85=this['_joinTapes'](_0xf01f85,_0x352058),this['_refreshStartEndIndex'](_0xf01f85),this['_setDistance'](_0xf01f85,'isRemoved');}_0xf01f85=_0xf01f85['filter'](_0x1603dd=>!(_0x1603dd['isAdded']&&_0x1603dd['isRemoved']));const _0x5166e6=new Map(_0x10ef73['model'][_0x23c764]['deletions']['markers']),_0x556e26=new Set(_0x302e8a['keys']());for(const _0x47b2be of _0x5166e6['keys']())_0x556e26['delete'](_0x47b2be);this['_markSuggestions'](_0xf01f85,_0x556e26),this['_fixObsoleteTags'](_0xf01f85),_0xf01f85=this['_removeMissingPairs'](_0xf01f85),_0xf01f85=this['_markMismatchedRemovedTags'](_0xf01f85),_0xf01f85=this['_removeUnsupportedChanges'](_0xf01f85);const {root:_0xd5a1ee,changes:_0x42237d}=this['_makeModelFromTape'](_0xf01f85,_0x27c75d,_0x23c764);_0x2e4a3b['model'][_0x23c764]=_0xd5a1ee;const _0x346c93=_0x3f241a['get'](_0x23c764);if(_0x346c93){const _0x3d8a97=_0x27c75d['get'](_0x346c93['userId']),_0x143c81=new r({'author':_0x3d8a97,'type':_0x346c93['isAttached']?'add':'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x23c764});_0x42237d['unshift'](_0x143c81),_0x2e4a3b['attributes'][_0x23c764]['revisionHistoryAttachChange']=_0x143c81['id'];}_0x2e4a3b['changes']=_0x2e4a3b['changes']['concat'](_0x42237d);}return _0x2e4a3b;}['_markMarkers'](_0x367045,_0xec5a94){for(let _0x19444f=0x0;_0x19444f<_0x367045['length'];_0x19444f++)for(const [_0x56ac49,_0x1374e7]of _0xec5a94)_0x1374e7['start']['isEqual'](_0x367045[_0x19444f]['previousPosition'])&&_0x367045[_0x19444f]['markersStart']['push'](_0x56ac49),_0x1374e7['end']['isEqual'](_0x367045[_0x19444f]['nextPosition'])&&_0x367045[_0x19444f]['markersEnd']['push'](_0x56ac49);}['_joinTapes'](_0x2e3e68,_0x5ae85b){let _0x421622=[],_0x1aff46=0x0,_0x231e31=0x0;for(;_0x1aff46<_0x2e3e68['length']||_0x231e31<_0x5ae85b['length'];){const _0x4de97b=_0x2e3e68[_0x1aff46]||{},_0x1f808d=_0x5ae85b[_0x231e31]||{};if(_0x4de97b['id']==_0x1f808d['id'])_0x1aff46++,_0x231e31++,_0x421622['push'](_0x4de97b);else{if(_0x1f808d['isRemoved']&&_0x4de97b['isAdded']){const {commonTape:_0x4b69a3,iEnd:_0xc35dfc,jEnd:_0x55e2c2}=this['_threeWayMerge'](_0x2e3e68,_0x1aff46,_0x5ae85b,_0x231e31);_0x421622=_0x421622['concat'](_0x4b69a3),_0x1aff46=_0xc35dfc,_0x231e31=_0x55e2c2;}else _0x1f808d['isRemoved']?(_0x231e31++,_0x421622['push'](_0x1f808d)):(_0x1aff46++,_0x421622['push'](_0x4de97b));}}return _0x421622;}['_markSuggestions'](_0x308979,_0x34df9f){const _0x50df08=[];for(let _0x178487=0x0;_0x178487<_0x308979['length'];_0x178487++){for(let _0x4970eb=0x0;_0x4970eb<_0x308979[_0x178487]['markersStart']['length'];_0x4970eb++){const _0x44867d=_0x308979[_0x178487]['markersStart'][_0x4970eb];if(!_0x34df9f['has'](_0x44867d))continue;const {group:_0x472a4b,type:_0x236267,authorId:_0xea700e}=_0x2cf6e6(_0x44867d);'revision-suggestion'!=_0x472a4b||'insertion'!=_0x236267&&'deletion'!=_0x236267||(_0x50df08['unshift']({'type':_0x236267,'name':_0x44867d,'userId':_0xea700e}),_0x308979[_0x178487]['markersStart']['splice'](_0x4970eb,0x1),_0x4970eb--);}_0x25b608(_0x308979[_0x178487]);for(let _0x3ce26f=0x0;_0x3ce26f<_0x308979[_0x178487]['markersEnd']['length'];_0x3ce26f++){const _0xa55019=_0x308979[_0x178487]['markersEnd'][_0x3ce26f];if(!_0x34df9f['has'](_0xa55019))continue;const {group:_0x44266b,type:_0x102576}=_0x2cf6e6(_0xa55019);if('revision-suggestion'!=_0x44266b||'insertion'!=_0x102576&&'deletion'!=_0x102576)continue;_0x308979[_0x178487]['markersEnd']['splice'](_0x3ce26f,0x1),_0x3ce26f--;const _0x47c903=_0x50df08['findIndex'](_0x1a4ff2=>_0x1a4ff2['name']==_0xa55019);_0x47c903>-0x1&&_0x50df08['splice'](_0x47c903,0x1);}}function _0x2cf6e6(_0x36c303){const _0x217226=_0x36c303['split'](':');return{'group':_0x217226[0x0],'type':_0x217226[0x1],'subType':_0x217226['length']>=0x5?_0x217226[0x2]:null,'id':_0x217226['length']<0x5?_0x217226[0x2]:_0x217226[0x3],'authorId':_0x217226['length']<0x5?_0x217226[0x3]:_0x217226[0x4],'markerCount':0x6==_0x217226['length']?_0x217226[0x5]:null};}function _0x25b608(_0x210a40){for(let _0x34a480=0x0;_0x34a480<_0x50df08['length'];_0x34a480++){if(_0x210a40['isAdded']&&'insertion'==_0x50df08[_0x34a480]['type'])return _0x210a40['isAddSuggestion']=_0x50df08[_0x34a480],void delete _0x210a40['isAdded'];if(!_0x210a40['isAdded']&&!_0x210a40['isRemoved']&&'deletion'==_0x50df08[_0x34a480]['type'])return void(_0x210a40['isRemoveSuggestion']=_0x50df08[_0x34a480]);}}}['_setDistance'](_0x2708e4,_0x18c3ad){let _0x29e7c9=0x0,_0x25098c=!0x1;const _0x16ee93=new Map();for(const _0x54b4a1 of _0x2708e4)_0x54b4a1[_0x18c3ad]?_0x25098c&&(_0x29e7c9++,_0x25098c=!0x1):(_0x29e7c9++,_0x25098c=!0x0),_0x16ee93['set'](_0x54b4a1['id'],_0x29e7c9);for(let _0x566b2a=0x0;_0x566b2a<_0x2708e4['length'];_0x566b2a++){if('isRemoved'==_0x18c3ad&&_0x2708e4[_0x566b2a]['isAdded']||'isAdded'==_0x18c3ad&&_0x2708e4[_0x566b2a]['isRemoved'])continue;if('text'==_0x2708e4[_0x566b2a]['type']){_0x2708e4[_0x566b2a]['distance']=0x0;continue;}const _0x1b2fc6=_0x16ee93['get'](_0x2708e4[_0x566b2a]['pairId']),_0x5a8d81=_0x16ee93['get'](_0x2708e4[_0x566b2a]['id']);_0x2708e4[_0x566b2a]['distance']=_0x1b2fc6-_0x5a8d81;}}['_getRevisionsRange'](_0x17876a,_0x375583,_0x4973bf=!0x1){const _0x13ed2d=[];let _0xde80d9=this['repository']['getIndex'](_0x17876a),_0x2ea8e3=this['repository']['getIndex'](_0x375583);for(-0x1==_0x2ea8e3&&(_0x2ea8e3=this['repository']['_revisions']['length'],_0x4973bf=!0x1);_0xde80d9<_0x2ea8e3;)_0x13ed2d['push'](this['repository']['getRevision'](_0xde80d9)),_0xde80d9++;return _0x4973bf&&_0x13ed2d['push'](this['repository']['getRevision'](_0xde80d9)),_0x13ed2d;}['_threeWayMerge'](_0x5ef31e,_0x29b862,_0x27da3e,_0x4c0490){const _0x10924e=this['editor']['model']['schema'];let _0x5b9c0f=_0x29b862;for(;_0x5ef31e[_0x5b9c0f]&&_0x5ef31e[_0x5b9c0f]['isAdded'];)_0x5b9c0f++;let _0xe7a174=_0x4c0490;for(;_0x27da3e[_0xe7a174]&&_0x27da3e[_0xe7a174]['isRemoved'];)_0xe7a174++;_0x4f6c83(_0x5ef31e,_0x29b862,_0x5b9c0f),_0x4f6c83(_0x27da3e,_0x4c0490,_0xe7a174);const _0x1a96f1=_0x27da3e['slice'](_0x4c0490,_0xe7a174)['concat'](_0x5ef31e['slice'](_0x29b862,_0x5b9c0f));return _0x1a96f1['sort']((_0x2d3f8a,_0x13dfac)=>_0x2d3f8a['side']!=_0x13dfac['side']?_0x2d3f8a['side']-_0x13dfac['side']:_0x2d3f8a['level']!=_0x13dfac['level']?_0x2d3f8a['level']-_0x13dfac['level']:_0x2d3f8a['distance']!=_0x13dfac['distance']?_0x13dfac['distance']-_0x2d3f8a['distance']:!!_0x2d3f8a['isAdded']!=!!_0x13dfac['isAdded']?-0x1==_0x2d3f8a['side']||0x0==_0x2d3f8a['side']?_0x2d3f8a['isAdded']?-0x1:0x1:_0x2d3f8a['isAdded']?0x1:-0x1:_0x2d3f8a['index']-_0x13dfac['index']),{'commonTape':_0x1a96f1,'iEnd':_0x5b9c0f,'jEnd':_0xe7a174};function _0x4f6c83(_0x241922,_0x2a768d,_0x19a2e5){let _0x2314bf=-0x1,_0x2513c2=Number['POSITIVE_INFINITY'],_0x37f6fa=!0x0;for(let _0x4607fe=_0x2a768d;_0x4607fe<_0x19a2e5;_0x4607fe++)if(_0x10924e['isInline'](_0x241922[_0x4607fe]['item'])||(_0x37f6fa=!0x1),_0x241922[_0x4607fe]['item']['startIndex']<_0x2a768d&&(_0x2314bf=_0x4607fe),_0x241922[_0x4607fe]['item']['endIndex']>=_0x19a2e5){_0x2513c2=_0x4607fe;break;}_0x37f6fa&&(_0x2314bf=_0x19a2e5-0x1);for(let _0x11e8cd=_0x2a768d;_0x11e8cd<_0x19a2e5;_0x11e8cd++)_0x241922[_0x11e8cd]['side']=_0x11e8cd<=_0x2314bf?-0x1:_0x11e8cd<_0x2513c2?0x0:0x1,_0x241922[_0x11e8cd]['index']=_0x11e8cd;let _0x339006=0x0;for(let _0x5b566f=_0x2a768d;_0x5b566f<=_0x2314bf;_0x5b566f++)0x0==_0x241922[_0x5b566f]['distance']?_0x241922[_0x5b566f]['level']=_0x339006:(_0x339006++,_0x241922[_0x5b566f]['level']=_0x339006,_0x339006++);for(let _0x2a897c=_0x2a768d;_0x2a897c<_0x19a2e5;_0x2a897c++)0x0==_0x241922[_0x2a897c]['side']&&(_0x241922[_0x2a897c]['level']=_0x339006);_0x339006=0x0;for(let _0x441c6d=_0x19a2e5-0x1;_0x441c6d>=_0x2513c2;_0x441c6d--)0x0==_0x241922[_0x441c6d]['distance']?_0x241922[_0x441c6d]['level']=_0x339006:(_0x339006--,_0x241922[_0x441c6d]['level']=_0x339006,_0x339006--);}}['_fixObsoleteTags'](_0x1b9ac9){const _0x64f3ef=new Map(),_0x4bbecb=this['editor']['model']['schema'];for(let _0x2f2996=0x1;_0x2f2996<_0x1b9ac9['length'];_0x2f2996++){let _0x1842d2,_0x58926a,_0x28c3d1;const _0x3f3993=_0x1b9ac9[_0x2f2996],_0x2668b3=_0x1b9ac9[_0x2f2996-0x1];if('text'==_0x3f3993['type'])continue;if(_0x3f3993['type']!=_0x2668b3['type'])continue;if(!_0x4bbecb['isBlock'](_0x2668b3['item'])||_0x4bbecb['isLimit'](_0x2668b3['item']))continue;if(!_0x4bbecb['isBlock'](_0x3f3993['item'])||_0x4bbecb['isLimit'](_0x3f3993['item']))continue;if((_0x1b9ac9[_0x2f2996]['isAdded']||_0x1b9ac9[_0x2f2996]['isAddSuggestion'])&&_0x1b9ac9[_0x2f2996-0x1]['isRemoved'])_0x1842d2=_0x1b9ac9[_0x2f2996],_0x58926a=_0x1b9ac9[_0x2f2996-0x1],_0x28c3d1=_0x2f2996-0x1;else{if(!_0x1b9ac9[_0x2f2996]['isRemoved']||!_0x1b9ac9[_0x2f2996-0x1]['isAdded']&&!_0x1b9ac9[_0x2f2996-0x1]['isAddSuggestion'])continue;_0x1842d2=_0x1b9ac9[_0x2f2996-0x1],_0x58926a=_0x1b9ac9[_0x2f2996],_0x28c3d1=_0x2f2996;}const _0x29c838=_0x1842d2['level']==_0x58926a['level'],_0x5ddea2=Math['abs'](_0x1842d2['level'])<Math['abs'](_0x58926a['level'])&&0x0==_0x58926a['distance'];(_0x29c838||_0x5ddea2)&&(_0x64f3ef['set'](_0x58926a['id'],_0x1842d2['id']),_0x1b9ac9['splice'](_0x28c3d1,0x1),_0x2f2996--,_0x1842d2['isAdded']=!0x1);}for(let _0x33aaed=0x0;_0x33aaed<_0x1b9ac9['length'];_0x33aaed++)_0x64f3ef['has'](_0x1b9ac9[_0x33aaed]['pairId'])&&(_0x1b9ac9[_0x33aaed]['pairId']=_0x64f3ef['get'](_0x1b9ac9[_0x33aaed]['pairId']));}['_removeMissingPairs'](_0x50eb7d){const _0x5e18a6=new Set(_0x50eb7d['map'](_0x177c5a=>_0x177c5a['id']));for(let _0x4c014b=0x0;_0x4c014b<_0x50eb7d['length'];_0x4c014b++)_0x5e18a6['has'](_0x50eb7d[_0x4c014b]['pairId'])||0x0==_0x50eb7d[_0x4c014b]['distance']||(_0x50eb7d[_0x4c014b]['isIncorrect']=!0x0);return _0x50eb7d['filter'](_0x4cb34a=>!_0x4cb34a['isIncorrect']);}['_markMismatchedRemovedTags'](_0x33020f){const _0x2458a6=new Set();for(let _0xa65f2a=0x0;_0xa65f2a<_0x33020f['length'];_0xa65f2a++){if(_0x2458a6['has'](_0x33020f[_0xa65f2a]['id'])&&_0x33020f[_0xa65f2a]['isRemoved']&&(_0x33020f[_0xa65f2a]['isIncorrect']=!0x0),_0x33020f[_0xa65f2a]['isIncorrect'])continue;if(0x0==_0x33020f[_0xa65f2a]['distance'])continue;if('elementStart'!=_0x33020f[_0xa65f2a]['type'])continue;if(null==_0x33020f[_0xa65f2a]['pairId'])continue;let _0x2b2081=_0xa65f2a+0x1,_0x347c08=0x0;for(;_0x33020f[_0x2b2081]['id']!=_0x33020f[_0xa65f2a]['pairId'];)'elementStart'==_0x33020f[_0x2b2081]['type']?_0x347c08++:'elementEnd'==_0x33020f[_0x2b2081]['type']&&_0x347c08--,_0x2b2081++;if(0x0!=_0x347c08){if(_0x33020f[_0xa65f2a]['isRemoved'])_0x33020f[_0xa65f2a]['isIncorrect']=!0x0;else{for(;_0x2b2081!=_0xa65f2a;)_0x33020f[_0x2b2081]['isRemoved']&&0x0!=_0x33020f[_0x2b2081]['distance']&&(_0x33020f[_0x2b2081]['isIncorrect']=!0x0,_0x2458a6['add'](_0x33020f[_0x2b2081]['pairId'])),_0x2b2081--;}}}return _0x33020f['filter'](_0x2a6ffb=>!_0x2a6ffb['isIncorrect']);}['_removeUnsupportedChanges'](_0x250601){const _0x5d954d=this['editor']['model']['schema'];for(let _0x17679e=0x0;_0x17679e<_0x250601['length'];_0x17679e++){if(!(_0x250601[_0x17679e]['isAdded']||_0x250601[_0x17679e]['isAddSuggestion']||_0x250601[_0x17679e]['isRemoved']||_0x250601[_0x17679e]['isRemoveSuggestion']))continue;if(0x0==_0x250601[_0x17679e]['distance'])continue;const _0xc4d50f=_0x250601[_0x17679e]['item'];_0x5d954d['isBlock'](_0xc4d50f)||_0x5d954d['isLimit'](_0xc4d50f)||(_0x250601[_0x17679e]['isAdded']&&delete _0x250601[_0x17679e]['isAdded'],_0x250601[_0x17679e]['isAddSuggestion']&&delete _0x250601[_0x17679e]['isAddSuggestion'],_0x250601[_0x17679e]['isRemoveSuggestion']&&delete _0x250601[_0x17679e]['isRemoveSuggestion'],_0x250601[_0x17679e]['isRemoved']&&(_0x250601[_0x17679e]['isIncorrect']=!0x0));}return _0x250601['filter'](_0x191156=>!_0x191156['isIncorrect']);}['_makeModelFromTape'](_0xdd85b1,_0x3e292d,_0x9e9ac0){const _0x24c994=new mt(),_0x5014c4=[],_0x10a4cf=new Map(),_0x124fb6=this['editor']['model'],_0x44d2b9=_0x124fb6['schema'],_0x300aaf=[_0x24c994],_0x154d59={},_0x78fadc={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x1154a4=null;const _0x4e1a04=[0x0];for(let _0x363f6e=0x0;_0x363f6e<_0xdd85b1['length'];_0x363f6e++)if('elementStart'===_0xdd85b1[_0x363f6e]['type']){_0xdd85b1[_0x363f6e]['previousPosition']=_0x124fb6['createPositionFromPath'](_0x24c994,_0x4e1a04);const _0x31657e=new ft(_0xdd85b1[_0x363f6e]['item']['name'],_0xdd85b1[_0x363f6e]['item']['getAttributes']());_0x300aaf[0x0]['_appendChild'](_0x31657e),_0x4e1a04['push'](0x0),_0x300aaf['unshift'](_0x31657e),_0xdd85b1[_0x363f6e]['nextPosition']=_0x124fb6['createPositionFromPath'](_0x24c994,_0x4e1a04);}else'elementEnd'===_0xdd85b1[_0x363f6e]['type']?(_0x300aaf['shift'](),_0xdd85b1[_0x363f6e]['previousPosition']=_0x124fb6['createPositionFromPath'](_0x24c994,_0x4e1a04),_0x4e1a04['pop'](),_0x4e1a04[_0x4e1a04['length']-0x1]++,_0xdd85b1[_0x363f6e]['nextPosition']=_0x124fb6['createPositionFromPath'](_0x24c994,_0x4e1a04)):(_0xdd85b1[_0x363f6e]['previousPosition']=_0x124fb6['createPositionFromPath'](_0x24c994,_0x4e1a04),_0x1154a4?_0x1154a4['_data']+=_0xdd85b1[_0x363f6e]['item']['data']:_0x1154a4=new wt(_0xdd85b1[_0x363f6e]['item']['data'],_0xdd85b1[_0x363f6e]['item']['getAttributes']()),_0xdd85b1[_0x363f6e+0x1]&&'text'===_0xdd85b1[_0x363f6e+0x1]['type']&&_0x583237(_0x1154a4,_0xdd85b1[_0x363f6e+0x1]['item'])||(_0x300aaf[0x0]['_appendChild'](_0x1154a4),_0x1154a4=null),_0x4e1a04[_0x4e1a04['length']-0x1]+=_0xdd85b1[_0x363f6e]['item']['offsetSize'],_0xdd85b1[_0x363f6e]['nextPosition']=_0x124fb6['createPositionFromPath'](_0x24c994,_0x4e1a04));for(let _0x51d655=0x0;_0x51d655<_0xdd85b1['length'];_0x51d655++){const _0x49d69d=_0xdd85b1[_0x51d655]['previousPosition'],_0x800287=_0xdd85b1[_0x51d655]['nextPosition'];for(const _0x4740d2 of _0xdd85b1[_0x51d655]['markersStart'])_0x10a4cf['set'](_0x4740d2,{'start':_0x49d69d,'end':null});_0x598116('isRemoveSuggestion',_0x51d655,_0x49d69d,_0x800287),_0x598116('isAddSuggestion',_0x51d655,_0x49d69d,_0x800287),_0x598116('isRemoved',_0x51d655,_0x49d69d,_0x800287),_0x598116('isAdded',_0x51d655,_0x49d69d,_0x800287);for(const _0x2e5f90 of _0xdd85b1[_0x51d655]['markersEnd']){_0x10a4cf['get'](_0x2e5f90)['end']=_0x800287;}}for(const [_0x2415ab,_0xa6a1aa]of _0x10a4cf){const _0x1ffcec=this['editor']['model']['createRange'](_0xa6a1aa['start'],_0xa6a1aa['end']);_0x24c994['markers']['set'](_0x2415ab,_0x1ffcec);}return _0x5014c4['sort']((_0x15f355,_0x5078e7)=>{const _0x17d059=_0x24c994['markers']['get']('revision:'+_0x15f355['id']),_0x420e4d=_0x24c994['markers']['get']('revision:'+_0x5078e7['id']);return _0x17d059['start']['isBefore'](_0x420e4d['start'])?-0x1:_0x17d059['start']['isAfter'](_0x420e4d['start'])?0x1:_0x17d059['end']['isBefore'](_0x420e4d['end'])?-0x1:_0x17d059['end']['isAfter'](_0x420e4d['end'])?0x1:'add'===_0x15f355['type']?-0x1:0x1;}),{'root':_0x24c994,'changes':_0x5014c4};function _0x598116(_0xc3f6f9,_0x221fa9,_0x1e5c60,_0x3e90c8){const _0x3a4306=!!_0xdd85b1[_0x221fa9][_0xc3f6f9],_0x320d33=_0x3a4306?_0xdd85b1[_0x221fa9][_0xc3f6f9]['userId']:null,_0x53117e=_0x221fa9===_0xdd85b1['length']-0x1,_0x4a4386=_0x78fadc[_0xc3f6f9][0x0],_0x4bb905=_0x44d2b9['isObject'](_0xdd85b1[_0x221fa9]['item']);!_0x154d59[_0xc3f6f9]&&_0x3a4306?_0x154d59[_0xc3f6f9]={'start':_0x1e5c60,'tapeItem':_0xdd85b1[_0x221fa9],'userId':_0x320d33,'type':_0xc3f6f9}:_0x154d59[_0xc3f6f9]&&!_0x3a4306?(_0x154d59[_0xc3f6f9]['end']=_0x1e5c60,_0xea064f(_0x154d59[_0xc3f6f9]),_0x154d59[_0xc3f6f9]=null):_0x154d59[_0xc3f6f9]&&_0x3a4306&&_0x154d59[_0xc3f6f9]['userId']!==_0x320d33&&(_0x154d59[_0xc3f6f9]['end']=_0x1e5c60,_0x4a4386&&_0x4a4386['userId']===_0x154d59[_0xc3f6f9]['userId']||_0xea064f(_0x154d59[_0xc3f6f9]),_0x154d59[_0xc3f6f9]={'start':_0x1e5c60,'tapeItem':_0xdd85b1[_0x221fa9],'userId':_0x320d33,'type':_0xc3f6f9}),_0x154d59[_0xc3f6f9]&&_0x4bb905&&('elementStart'!==_0xdd85b1[_0x221fa9]['type']||_0x4a4386&&_0x4a4386['userId']===_0x320d33||_0x78fadc[_0xc3f6f9]['unshift']({'userId':_0x320d33,'object':_0xdd85b1[_0x221fa9]['item'],'change':_0x154d59[_0xc3f6f9]}),'elementEnd'===_0xdd85b1[_0x221fa9]['type']&&_0x4a4386&&_0x4a4386['object']===_0xdd85b1[_0x221fa9]['item']&&(_0x78fadc[_0xc3f6f9]['shift'](),_0x154d59[_0xc3f6f9]=_0x4a4386['change'])),_0x154d59[_0xc3f6f9]&&_0x53117e&&(_0x154d59[_0xc3f6f9]['end']=_0x3e90c8,_0xea064f(_0x154d59[_0xc3f6f9]),_0x154d59[_0xc3f6f9]=null);}function _0xea064f({start:_0x41a8c3,end:_0xb53423,tapeItem:_0x589d38,userId:_0x4b0b6b,type:_0x51a7e2}){const _0x2ccaed=_0x589d38['item'],_0x53340d=_0x124fb6['schema']['isBlock'](_0x2ccaed)&&!_0x124fb6['schema']['isLimit'](_0x2ccaed),_0x596d95=_0x41a8c3['nodeAfter']==_0xb53423['parent']&&_0xb53423['isAtStart'];if(_0x53340d&&_0x596d95)return;const _0x59fd7f=_0x124fb6['createRange'](_0x41a8c3,_0xb53423),_0x553cf2=_0x3e292d['get'](_0x4b0b6b),_0x20ea45=new r({'author':_0x553cf2,'type':'isAdded'==_0x51a7e2||'isAddSuggestion'==_0x51a7e2?'add':'remove','data':{'isSuggestion':'isAddSuggestion'==_0x51a7e2||'isRemoveSuggestion'==_0x51a7e2},'createdAt':new Date(),'rootName':_0x9e9ac0});_0x5014c4['push'](_0x20ea45),_0x24c994['markers']['set']('revision:'+_0x20ea45['id'],_0x59fd7f);}function _0x583237(_0x2e991c,_0x2b054b){const _0x1771fc=_0x2e991c['getAttributes'](),_0x162abb=_0x2b054b['getAttributes']();for(const _0xe14272 of _0x1771fc){if(_0xe14272[0x1]!==_0x2b054b['getAttribute'](_0xe14272[0x0]))return!0x1;_0x162abb['next']();}return _0x162abb['next']()['done'];}}['_setConversion'](){this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision','view':_0x48b685=>{const _0x3733e2=_0x48b685['markerName']['split'](':')[0x1],_0x3121fe=this['_getChangeFromId'](_0x3733e2);if(!_0x3121fe)return null;const _0x60e492='add'==_0x3121fe['type']?'insertion':'deletion',_0xc7f77c=['ck-suggestion-marker','ck-suggestion-marker-'+_0x60e492];return _0x3121fe['data']['isSuggestion']&&_0xc7f77c['push']('ck-suggestion-marker-'+_0x60e492+'-new'),this['activeChange']==_0x3121fe&&_0xc7f77c['push']('ck-suggestion-marker--active'),{'classes':_0xc7f77c,'attributes':{'data-change-id':_0x3733e2}};}}),this['editor']['conversion']['for']('upcast')['add'](_0x586341=>{_0x586341['on']('element:pre',(_0x8de676,_0x4f60e3,_0x5c3606)=>{const _0x1a9b57=_0x4f60e3['viewItem']['getChild'](0x0);if(!_0x1a9b57||!_0x1a9b57['is']('element','code'))return;if(!_0x5c3606['consumable']['consume'](_0x1a9b57,{'attributes':['vid_start','vid_end']}))return;const _0x3a49b9=_0x4f60e3['modelRange']['start']['nodeAfter'];_0x5c3606['writer']['setAttribute']('vid_start',_0x1a9b57['getAttribute']('vid_start'),_0x3a49b9),_0x5c3606['writer']['setAttribute']('vid_end',_0x1a9b57['getAttribute']('vid_end'),_0x3a49b9);},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['add'](_0x244c33=>{_0x244c33['on']('element',(_0x3f8906,_0x7743af,_0x2c7217)=>{if(!_0x2c7217['consumable']['consume'](_0x7743af['viewItem'],{'attributes':['vid_start','vid_end']}))return;if(_0x7743af['modelRange']['isCollapsed'])return;const _0x16a3b3=_0x7743af['modelRange']['start']['nodeAfter'];_0x16a3b3['hasAttribute']('vid_start')||_0x16a3b3['hasAttribute']('vid')||(_0x2c7217['writer']['setAttribute']('vid_start',_0x7743af['viewItem']['getAttribute']('vid_start'),_0x16a3b3),_0x2c7217['writer']['setAttribute']('vid_end',_0x7743af['viewItem']['getAttribute']('vid_end'),_0x16a3b3));},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['elementToAttribute']({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0x21d2e6=>_0x21d2e6['getAttribute']('vid')}}),this['editor']['model']['schema']['on']('checkAttribute',(_0x2bd401,[,_0x52d092])=>{['vid_start','vid_end','vid']['includes'](_0x52d092)&&(_0x2bd401['return']=!0x0,_0x2bd401['stop']());},{'priority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x5ad961=>{_0x5ad961['on']('attribute:vid',(_0xc8d204,_0x3136ac,_0x3efb9b)=>{if('\x20'!=_0x3136ac['item']['data']||_0x3136ac['item']['parent']['maxOffset']>0x1)return;if(!_0x3efb9b['consumable']['consume'](_0x3136ac['item'],_0xc8d204['name']))return;const _0x4473f1=_0x3efb9b['writer'],_0x1ebe8f=_0x3efb9b['mapper']['toViewRange'](_0x3136ac['range']);_0x4473f1['wrap'](_0x1ebe8f,_0x4473f1['createAttributeElement']('span'));});}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',function(_0x45efda){const _0x289826=_0x45efda['plugins']['get']('RevisionViewer');return(_0x2614d7,_0x2bf84c,_0x342c33)=>{const _0x10e074=_0x2bf84c['markerName']['split'](':')[0x1],_0xd0051f=_0x289826['_getChangeFromId'](_0x10e074);if(!_0xd0051f)return null;const _0x547003='add'==_0xd0051f['type']?'split':'merge';if(!_0x342c33['consumable']['test'](_0x2bf84c['markerRange'],_0x2614d7['name']))return;const _0x2d206f=_0x2bf84c['markerRange']['getWalker'](),_0x4a5df8=_0x2bf84c['markerRange']['start'],_0x4ad8ac=_0x45efda['model']['schema'];let _0xf1f814=null,_0x335f92=null,_0x4a8484=!0x1,_0x282069=!0x1;for(const _0x92eb7d of _0x2d206f){const _0x10fa90=_0x92eb7d['item'];_0x4a8484=_0x4a8484||_0x4ad8ac['isContent'](_0x10fa90);const _0x643b19=_0x342c33['mapper']['toViewElement'](_0x10fa90);if(_0x643b19&&_0x643b19['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x92eb7d['type']&&(_0x4ad8ac['isBlock'](_0x10fa90)&&!_0x4ad8ac['isLimit'](_0x10fa90)&&(_0x10fa90['nextSibling']||_0x4a5df8['isAtEnd']?_0xf1f814&&_0xf1f814['parent']==_0x10fa90||(_0xf1f814=_0x10fa90,_0x4997fc(_0x92eb7d['previousPosition']),_0x282069=!0x0):_0x335f92=_0x335f92||_0x92eb7d['previousPosition']));}function _0x4997fc(_0xe8c612){const _0x18d786=_0x342c33['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x547003}),_0x134d4e=_0x342c33['mapper']['toViewPosition'](_0xe8c612);_0xd0051f['data']['isSuggestion']&&_0x342c33['writer']['addClass']('ck-suggestion-marker-'+_0x547003+'-new',_0x18d786),_0x289826['activeChange']==_0xd0051f&&_0x342c33['writer']['addClass']('ck-suggestion-marker--active',_0x18d786),_0x342c33['writer']['insert'](_0x134d4e,_0x18d786),_0x342c33['mapper']['bindElementToMarker'](_0x18d786,_0x2bf84c['markerName']);}_0x4a8484||_0x282069||!_0x335f92||_0x4997fc(_0x335f92);};}(this['editor']),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision',(_0x4b73b4,_0x19a4eb,_0x34bbe6)=>{const _0x22e9fe=_0x34bbe6['mapper']['markerNameToElements'](_0x19a4eb['markerName']);if(_0x22e9fe){for(const _0x335812 of _0x22e9fe)(_0x335812['hasClass']('ck-suggestion-marker-split')||_0x335812['hasClass']('ck-suggestion-marker-merge'))&&(_0x34bbe6['mapper']['unbindElementFromMarkerName'](_0x335812,_0x19a4eb['markerName']),_0x34bbe6['writer']['remove'](_0x335812));}},{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',(_0x210bf8,_0x40b22b,_0x5947ee)=>{const _0x38ac18=_0x40b22b['markerName']['split'](':')[0x1],_0x3f071c=this['_getChangeFromId'](_0x38ac18);if(!_0x3f071c)return null;const _0x49e401='add'==_0x3f071c['type']?'split':'merge';if(_0x5947ee['consumable']['test'](_0x40b22b['markerRange'],_0x210bf8['name']))for(const _0x299597 of _0x40b22b['markerRange']['getItems']()){if(!_0x299597['is']('element','softBreak'))continue;const _0x3d723d=_0x5947ee['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x49e401}),_0x2a0dc6=_0x5947ee['mapper']['toViewPosition'](this['editor']['model']['createPositionBefore'](_0x299597));_0x3f071c['data']['isSuggestion']&&_0x5947ee['writer']['addClass']('ck-suggestion-marker-'+_0x49e401+'-new',_0x3d723d),this['activeChange']==_0x3f071c&&_0x5947ee['writer']['addClass']('ck-suggestion-marker--active',_0x3d723d),_0x5947ee['writer']['insert'](_0x2a0dc6,_0x3d723d),_0x5947ee['mapper']['bindElementToMarker'](_0x3d723d,_0x40b22b['markerName']);}},{'priority':'high'}),this['editor']['model']['document']['on']('change',()=>{this['editor']['editing']['view']['change'](_0x3bb00b=>{for(const _0x2952d6 of this['editor']['model']['document']['getRootNames']()){const _0x25ea70=this['editor']['model']['document']['getRoot'](_0x2952d6),_0x30ce5c=this['editor']['editing']['view']['document']['getRoot'](_0x2952d6);if(_0x30ce5c){const _0x45098d=_0x25ea70['getAttribute']('revisionHistoryAttachChange');if(_0x3bb00b['removeAttribute']('data-change-id',_0x30ce5c),_0x3bb00b['removeClass']('ck-revision-history-root-add',_0x30ce5c),_0x3bb00b['removeClass']('ck-revision-history-root-remove',_0x30ce5c),_0x3bb00b['removeClass']('ck-revision-history-root--active',_0x30ce5c),_0x45098d){const _0x311889=this['_getChangeFromId'](_0x45098d);if(!_0x311889)return null;_0x3bb00b['setAttribute']('data-change-id',_0x45098d,_0x30ce5c),_0x3bb00b['addClass']('ck-revision-history-root-'+_0x311889['type'],_0x30ce5c),this['activeChange']==_0x311889&&_0x3bb00b['addClass']('ck-revision-history-root--active',_0x30ce5c);}}}});}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'comment','model':_0xaadf9d=>'revision-comment:'+_0xaadf9d,'converterPriority':'highest'}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion','model':_0x4e1713=>'revision-suggestion:'+_0x4e1713,'converterPriority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision-suggestion','view':_0x50592e=>({'name':'suggestion:'+_0x50592e,'group':'revision-suggestion'}),'converterPriority':'highest'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision-suggestion','view':_0x59c674=>{const _0x27f48a=_0x59c674['markerName']['split'](':')[0x1];return'insertion'!=_0x27f48a&&'deletion'!=_0x27f48a?null:{'classes':['ck-suggestion-preview-marker','ck-suggestion-preview-marker-'+_0x27f48a]};}}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:deletion',tt(this['editor'],'merge'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:insertion',tt(this['editor'],'split'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision-suggestion',(_0x20b094,_0x3c917a,_0x478292)=>{const _0x17099a=_0x478292['mapper']['markerNameToElements'](_0x3c917a['markerName']);if(_0x17099a){for(const _0x191329 of _0x17099a)_0x191329['is']('uiElement')&&(_0x478292['mapper']['unbindElementFromMarkerName'](_0x191329,_0x3c917a['markerName']),_0x478292['writer']['remove'](_0x191329));}},{'priority':'high'});}['_getChangeFromId'](_0x47cbc6){return this['_changeIdToChange']['get'](_0x47cbc6);}['_getViewForChange'](_0x242b9e){return this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=new Y(this['editor']['locale'],_0x242b9e),this['_changeView'];}['_initInteractions'](){this['editor']['model']['document']['selection']['observeMarkers']('revision'),this['on']('change:activeView',(_0x322dd0,_0x719ba,_0x58014a,_0x5c8052)=>{_0x5c8052&&this['_balloon']['remove'](_0x5c8052),_0x58014a&&(this['_balloon']['add']({'view':_0x58014a,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0x57b623=this['editor']['editing'],_0x29125d=this['_getChangeFromId'](_0x58014a['changeId']);let _0x32ff87;if(_0x29125d['data']['isOnRoot']){const _0x38442=_0x57b623['view']['getDomRoot'](_0x29125d['rootName']);_0x32ff87=Array['from'](_0x38442['getClientRects']());}else{const _0x371b52=this['editor']['model']['markers']['get']('revision:'+_0x58014a['changeId']);_0x32ff87=Array['from'](_0x57b623['mapper']['markerNameToElements'](_0x371b52['name']))['map'](_0x564799=>_0x57b623['view']['domConverter']['mapViewToDom'](_0x564799))['map'](_0x1d3a75=>Array['from'](_0x1d3a75['getClientRects']()))['flat']();}if(!this['_activeViewTarget'])return _0x32ff87[0x0];return _0x32ff87['find'](_0x25b185=>_0x25b185['top']-0x3<=this['_activeViewTarget']['y']&&_0x25b185['bottom']+0x3>=this['_activeViewTarget']['y']&&_0x25b185['left']-0x3<=this['_activeViewTarget']['x']&&_0x25b185['right']+0x3>=this['_activeViewTarget']['x'])||_0x32ff87[0x0];}}}),this['_balloon']['showStack']('revisionHistoryLabel'));}),this['on']('change:activeChange',(_0x481bf4,_0x2197c6,_0x1a729c,_0x3d2633)=>{this['activeView']=_0x1a729c?this['_getViewForChange'](_0x1a729c):null,this['editor']['model']['change'](()=>{const _0x4a5813=this['editor']['editing'];_0x3d2633&&(_0x3d2633['data']['isOnRoot']?_0x4a5813['view']['change'](_0x2c289c=>{_0x2c289c['removeClass']('ck-revision-history-root--active',_0x4a5813['view']['document']['getRoot'](_0x3d2633['rootName']));}):_0x4a5813['reconvertMarker']('revision:'+_0x3d2633['id'])),_0x1a729c&&(_0x1a729c['data']['isOnRoot']?_0x4a5813['view']['change'](_0x117f98=>{_0x117f98['addClass']('ck-revision-history-root--active',_0x4a5813['view']['document']['getRoot'](_0x1a729c['rootName']));}):_0x4a5813['reconvertMarker']('revision:'+_0x1a729c['id']));});}),this['listenTo'](this['editor']['editing']['view']['document'],'mouseover',(_0x372594,_0xf11ead)=>{if(this['activeChange'])return;const _0xa9515b=this['_findChangeIdFromDomTarget'](_0xf11ead['target']),_0x3b647c=this['_changeIdToChange']['get'](_0xa9515b);_0x3b647c?(this['_activeViewTarget']={'x':_0xf11ead['domEvent']['x'],'y':_0xf11ead['domEvent']['y']},this['activeView']=this['_getViewForChange'](_0x3b647c)):(this['_activeViewTarget']=null,this['activeView']=null);}),this['listenTo'](this['editor']['editing']['view']['document'],'mousedown',(_0x1f4e46,_0x3ea297)=>{const _0xddd977=this['_findChangeIdFromDomTarget'](_0x3ea297['target']),_0x22fdae=this['_changeIdToChange']['get'](_0xddd977);_0x22fdae?(this['_activeViewTarget']={'x':_0x3ea297['domEvent']['x'],'y':_0x3ea297['domEvent']['y']},_0x22fdae===this['activeChange']?this['_balloon']['updatePosition']():this['activeChange']=_0x22fdae):(this['_activeViewTarget']=null,this['activeChange']=null);});}['_findChangeIdFromDomTarget'](_0x4b4ed6){do{const _0x1b175d=_0x4b4ed6['getAttribute']('data-change-id');if(_0x1b175d)return _0x1b175d;_0x4b4ed6=_0x4b4ed6['parent'];}while(_0x4b4ed6);return null;}['_cleanMarkers'](){this['editor']['model']['change'](_0x422628=>{for(const _0xee6dc2 of this['editor']['model']['markers'])_0x422628['removeMarker'](_0xee6dc2);});}}function tt(_0x2f3ff4,_0x5768d3){return(_0x21e501,_0x274401,_0x282696)=>{if(!_0x282696['consumable']['test'](_0x274401['markerRange'],_0x21e501['name']))return;const _0x4b186c=_0x274401['markerRange']['getWalker'](),_0x37636e=_0x274401['markerRange']['start'],_0x41ebb1=_0x2f3ff4['model']['schema'];let _0x388639=null,_0x875389=null,_0x2a065b=!0x1,_0x1662b0=!0x1;for(const _0x5769e4 of _0x4b186c){const _0x687163=_0x5769e4['item'];_0x2a065b=_0x2a065b||_0x41ebb1['isContent'](_0x687163);const _0x3df7c4=_0x282696['mapper']['toViewElement'](_0x687163);if(_0x3df7c4&&_0x3df7c4['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x5769e4['type']&&(_0x41ebb1['isBlock'](_0x687163)&&!_0x41ebb1['isLimit'](_0x687163)&&(_0x687163['nextSibling']||_0x37636e['isAtEnd']?_0x388639&&_0x388639['parent']==_0x687163||(_0x388639=_0x687163,_0x2dbb8b(_0x5769e4['previousPosition']),_0x1662b0=!0x0):_0x875389=_0x875389||_0x5769e4['previousPosition']));}function _0x2dbb8b(_0x111e0b){const _0x5dc1ae=_0x282696['mapper']['toViewPosition'](_0x111e0b),_0x540cbb=_0x282696['writer']['createUIElement']('span',{'class':'ck-suggestion-preview-marker-'+_0x5768d3});_0x282696['writer']['insert'](_0x5dc1ae,_0x540cbb),_0x282696['mapper']['bindElementToMarker'](_0x540cbb,_0x274401['markerName']);}_0x2a065b||_0x1662b0||!_0x875389||_0x2dbb8b(_0x875389);};}class _t extends _0x347c79{constructor(_0x424ba3){super(_0x424ba3);const _0xb2456e=_0x424ba3['plugins']['get'](d);this['affectsData']=!0x1,this['listenTo'](_0xb2456e,'change:isReady',()=>this['refresh']()),this['listenTo'](_0xb2456e,'change:isEnabled',()=>this['refresh']());}['execute'](){const _0x5f48fe=this['editor'],_0x376532=_0x5f48fe['plugins']['get'](d),_0x23a1c4=_0x376532['isReady']?_0x376532['diff']['newRevisionId']:null;_0x5f48fe['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x23a1c4);}['refresh'](){const {isReady:_0x53eee7,isEnabled:_0x531271,repository:_0x50276b,diff:_0x15e5ef}=this['editor']['plugins']['get'](d),_0x40e0c3=_0x15e5ef&&_0x50276b['getLaterVisibleRevision'](_0x15e5ef['newRevisionId']);this['isEnabled']=_0x53eee7&&_0x531271&&Boolean(_0x40e0c3);}}class yt extends _0x347c79{['_step'];constructor(_0x558ae0,{direction:_0x30c119}){super(_0x558ae0);const _0x4b4bae=_0x558ae0['plugins']['get'](d);this['affectsData']=!0x1,this['_step']='forward'===_0x30c119?0x1:-0x1,this['listenTo'](_0x4b4bae,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x4b4bae,'change:isEnabled',()=>this['refresh']()),this['listenTo'](_0x4b4bae,'change:activeChange',()=>this['refresh']());}['execute'](){const _0x452953=this['editor'],_0x30b146=_0x452953['plugins']['get'](d),{isNavigationMode:_0x17fbb9,currentChangeNumber:_0x4f4981}=_0x30b146;let _0x43e3b6;if(_0x30b146['activeChange']=_0x17fbb9?_0x30b146['diff']['changes']['get'](_0x4f4981+this['_step']):_0x30b146['diff']['changes']['first'],_0x30b146['activeChange']['data']['isOnRoot'])_0x43e3b6=_0x452953['editing']['view']['getDomRoot'](_0x30b146['activeChange']['rootName']);else{const _0x342514=_0x452953['model']['markers']['get']('revision:'+_0x30b146['activeChange']['id']);_0x43e3b6=_0x2a2631(_0x452953['editing'],_0x342514);}_0x2beaa4({'target':_0x43e3b6,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0x28b799,currentChangeNumber:_0x40c2ed,numberOfChanges:_0x26896d,isReady:_0x5ccda9,isEnabled:_0x4e6e46}=this['editor']['plugins']['get'](d);this['isEnabled']=!!(_0x4e6e46&&_0x5ccda9&&_0x26896d)&&(!_0x28b799||(0x1===this['_step']?_0x40c2ed<_0x26896d-0x1:_0x40c2ed>0x0));}}class di extends ts{constructor(_0xb4f375){super(_0xb4f375);const _0x1749de=this['bindTemplate'],_0x544aba=new te(_0xb4f375),_0xb1e45e=new te(_0xb4f375);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',(_0x770d89,_0x26c82a)=>_0x770d89&&_0x26c82a>0x0),this['bind']('_statusText')['to'](this,'isReady',this,'currentChangeNumber',this,'numberOfChanges',this,'isNavigationMode',(_0xd55e4e,_0x2c3b04,_0x21c542,_0x47b93b)=>{if(!_0xd55e4e)return R(_0xb4f375,'Loading...');if(!_0x21c542)return R(_0xb4f375,'No\x20changes');const _0x194f3d=R(_0xb4f375,'NUMBER_OF_CHANGES',_0x21c542);return _0x47b93b?R(_0xb4f375,'X_OF_Y_CHANGES',[_0x2c3b04+0x1,_0x21c542]):_0x194f3d;}),_0x544aba['set']({'label':R(_0xb4f375,'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'}),_0xb1e45e['set']({'label':R(_0xb4f375,'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'}),_0x544aba['bind']('isEnabled')['to'](this,'isBackwardNavigationEnabled'),_0xb1e45e['bind']('isEnabled')['to'](this,'isForwardNavigationEnabled'),_0x544aba['on']('execute',()=>this['fire']('execute','backward')),_0xb1e45e['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',_0x1749de['if']('_isStatusLabelVisible','ck-hidden',_0x523d98=>!_0x523d98)]},'children':[{'text':_0x1749de['to']('isNavigationMode',_0x361efe=>_0x361efe?R(_0xb4f375,'EDIT_X_OF_Y_REVISIONS')+':\x20':R(_0xb4f375,'Total')+':\x20')}]},{'text':_0x1749de['to']('_statusText')}]},new _0x43f5d3(),{'tag':'div','attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0x544aba,_0xb1e45e]}]});}}const le='ck-editor__editable__loading-overlay';class ge extends _0x27f686{static get['pluginName'](){return'RevisionViewerLoadingOverlay';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['show'](){const _0x1469be=this['editor']['editing']['view'];_0x1469be['change'](_0x2f0674=>{for(const _0x1013b3 of _0x1469be['document']['roots'])_0x2f0674['addClass'](le,_0x1013b3);});}['hide'](){const _0xd11ca9=this['editor']['editing']['view'];_0xd11ca9['change'](_0x53e477=>{for(const _0xeb6cee of _0xd11ca9['document']['roots'])_0x53e477['removeClass'](le,_0xeb6cee);});}}class m extends _0x27f686{static get['pluginName'](){return'RevisionViewerUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[d,ge];}['init'](){const _0x1e7cfa=this['editor'],_0x331b2e=_0x1e7cfa['plugins']['get'](d),_0x28ca2a=_0x1e7cfa['plugins']['get'](ge);_0x1e7cfa['ui']['componentFactory']['add']('exitToEditing',_0x50d334=>{const _0x158758=new te(_0x50d334);return _0x158758['set']({'label':R(_0x50d334,'Back\x20to\x20editing'),'icon':_0x57211a['undo'],'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this['listenTo'](_0x158758,'execute',()=>{_0x1e7cfa['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}),_0x158758;}),_0x1e7cfa['ui']['componentFactory']['add']('restoreRevision',_0x391f29=>{const _0xaf7467=new te(_0x391f29);return _0xaf7467['set']({'label':R(_0x391f29,'Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0xaf7467['bind']('isEnabled')['to'](_0x1e7cfa['commands']['get']('restoreRevision')),this['listenTo'](_0xaf7467,'execute',()=>_0x1e7cfa['execute']('restoreRevision')),_0xaf7467;}),_0x1e7cfa['ui']['componentFactory']['add']('changesNavigation',_0xc28ffe=>{const _0x104d29=new di(_0xc28ffe),_0x14e1f1=_0x1e7cfa['commands']['get']('showPreviousChange'),_0x5b5b6a=_0x1e7cfa['commands']['get']('showNextChange');return _0x104d29['bind']('isBackwardNavigationEnabled')['to'](_0x14e1f1,'isEnabled'),_0x104d29['bind']('isForwardNavigationEnabled')['to'](_0x5b5b6a,'isEnabled'),_0x104d29['bind']('isReady','currentChangeNumber','numberOfChanges','isNavigationMode')['to'](_0x331b2e),this['listenTo'](_0x104d29,'execute',(_0xd1797c,_0x4daf09)=>{_0x1e7cfa['execute']('forward'===_0x4daf09?'showNextChange':'showPreviousChange');}),_0x104d29;}),_0x28ca2a['show'](),_0x331b2e['on']('change:isReady',(_0x4f4713,_0x5cfb78,_0x4e5496)=>{_0x4e5496?_0x28ca2a['hide']():_0x28ca2a['show']();});}}class pt extends _0x1ea983{['_resizeObserver']=null;constructor(_0x2e4b35,_0x3ad3cd){super(_0x2e4b35,_0x3ad3cd);const _0x593e7e=this['bindTemplate'];this['set']({'label':R(_0x2e4b35,'Revision\x20name'),'_tooltipString':''}),this['fieldView']['placeholder']=R(_0x2e4b35,'Enter\x20the\x20revision\x20name'),this['extendTemplate']({'tag':'span','attributes':{'class':['ck-revision-history-sidebar__revision-name'],'data-cke-tooltip-text':_0x593e7e['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 _0x5e49ae=this['fieldView']['element'];this['_tooltipString']=_0x5e49ae['scrollWidth']>_0x5e49ae['clientWidth']&&_0x5e49ae['value']||'';}}class oi extends ts{constructor(_0x297864,_0x21b5ee,_0x20448f){super(_0x297864);const _0x354c4b=new _0x3e2bc7();_0x354c4b['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 _0x1539a1=['ck','ck-revision-history-sidebar__revision-author'];_0x20448f&&_0x1539a1['push']('ck-revision-history-sidebar__revision-author_creator');const _0x32d49f=[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':R(_0x297864,_0x20448f?'Revision\x20creator':'Revision\x20author')},'children':[_0x354c4b,_0x21b5ee['name']]}];this['setTemplate']({'tag':'li','attributes':{'class':_0x1539a1},'children':_0x32d49f});}}function ai(_0x4aaae4,_0x3fcb2c){const _0x404a72=_0x4aaae4['bindTemplate'],_0x272f47=_0x4aaae4['locale'],_0x197eb4=_0x47635c(_0x272f47);_0x197eb4['panelPosition']='sw';const _0x20add2=function(_0x26d6b6,_0x2c9787){const _0x135625=function(_0x43e3f3,_0x1c7c48){const _0x43673e=_0x43e3f3['locale'],_0x4fbdf={'Compare\x20against\x20selected':R(_0x43673e,'Compare\x20against\x20selected'),'Name\x20this\x20revision':R(_0x43673e,'Name\x20this\x20revision'),'Restore\x20this\x20revision':R(_0x43673e,'Restore\x20this\x20revision')};return _0x1c7c48['map'](_0x1cfb9c=>{const _0x553ea6=_0x4fbdf[_0x1cfb9c['name']];return _0x553ea6&&_0x553ea6!==_0x1cfb9c['name']&&(_0x1cfb9c['name']=_0x553ea6),_0x1cfb9c;});}(_0x26d6b6,_0x2c9787),_0x280dab=new _0x2987a6();for(const _0x20a27c of _0x135625){const _0x23c5f2={'type':'button','model':new _0x573354({'label':_0x20a27c['name'],'class':_0x20a27c['class'],'withText':!0x0,'role':'menuitem','_action':_0x20a27c['action']})};_0x23c5f2['model']['bind']('isEnabled')['to'](_0x26d6b6,'isActionsDropdownOpen',_0x33a428=>'function'!=typeof _0x20a27c['isEnabled']||(!_0x33a428||_0x20a27c['isEnabled'](_0x26d6b6))),_0x280dab['add'](_0x23c5f2);}return _0x280dab;}(_0x4aaae4,_0x3fcb2c);return _0x4aaae4['bind']('isActionsDropdownOpen')['to'](_0x197eb4,'isOpen'),_0x197eb4['buttonView']['set']({'label':R(_0x272f47,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x57211a['threeVerticalDots']}),_0x197eb4['extendTemplate']({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0x404a72['if']('isActionsDropdownOpen','ck-on')]},'on':{'click':_0x404a72['to'](_0x521ded=>_0x521ded['stopPropagation']())}}),_0x197eb4['on']('execute',_0x386fda=>{_0x4aaae4['isReady']&&'function'==typeof _0x386fda['source']['_action']&&_0x386fda['source']['_action'](_0x4aaae4);}),to(_0x197eb4,_0x20add2,{'role':'menu'}),_0x197eb4['listenTo'](_0x4aaae4,'change:isActionsDropdownOpen',(_0x31b23b,_0x37d27f,_0x4583c5)=>{if(_0x4583c5)for(const _0x5c1d9a of _0x197eb4['listView']['items']){const _0x1946ff=_0x5c1d9a['children']['first'],_0x4452c6=_0x3fcb2c['find'](_0x5b99f3=>_0x5b99f3['action']===_0x1946ff['_action'])['isVisible'];_0x5c1d9a['isVisible']=void 0x0===_0x4452c6||_0x4452c6(_0x4aaae4);}}),_0x197eb4;}class si extends/* #__PURE__ -- @preserve */
|
|
26
|
-
|
|
23
|
+
import{ObservableMixin as _0x6143df,uid as _0x46a5fd,Collection as _0xa5d0e5,logWarning as _0x303390,FocusTracker as _0x27dbec,KeystrokeHandler as _0x3e3de7,scrollViewportToShowTarget as _0x27298c,ResizeObserver as pt,ElementReplacer as ct,CKEditorError as _0x1e9bc5}from'@ckeditor/ckeditor5-utils/dist/index.js';import{cloneDeep as _0x1e5b1d,set as _0x24f690,unset as _0x3fcc1f,isEqual as _0x5c73f4}from'lodash-es';import{Plugin as _0x49d2b7,PendingActions as _0x34e4d7,icons as _0x416426,Command as _0x2ad413,ElementApiMixin as rt,Editor as it}from'@ckeditor/ckeditor5-core/dist/index.js';import{Users as _0x37b19d,getMarkerDomElement as _0x45bca3,ConfirmMixin as _0x572151,sanitizeEditorConfig as _0x167233}from'ckeditor5-collaboration/dist/index.js';import{ViewDocumentFragment as _0x247d60,ViewText as _0x325665,ViewElement as _0x44bca0,Element as ft,Range as vt,Position as gt,DocumentFragment as wt,ViewContainerElement as _0x414040,ViewAttributeElement as _0x2574bf,ViewEmptyElement as _0x49bd08,ViewRawElement as _0x36f6a8,ViewUIElement as _0x46e88b,Text as _t}from'@ckeditor/ckeditor5-engine/dist/index.js';import{View as _0x247511,injectCssTransitionDisabler as ts,submitHandler as _0x2927f5,LabeledFieldView as at,createLabeledInputText as _0x377b24,createDropdown as _0x2d6127,ListView as te,ListItemView as _0x195f8a,ButtonView as _0x5d3462,MenuBarMenuView as _0x52c7ee,MenuBarMenuListView as _0xa7889d,MenuBarMenuListItemView as _0x5b7207,MenuBarMenuListItemButtonView as _0x2b58d3,ContextualBalloon as _0x1cc7c3,ToolbarSeparatorView as _0xf3e1d3,IconView as _0x1a86ac,addListToDropdown as _0x399c0b,ViewModel as to,EditorUI as ot,normalizeToolbarConfig as ht,BoxedEditorUIView as dt,StickyPanelView as lt,ToolbarView as nt,InlineEditableUIView as ut}from'@ckeditor/ckeditor5-ui/dist/index.js';import{DateTime as _0x4d4910}from'luxon';class a extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x6143df(){['id'];['creator'];['authors'];['diffData'];['toVersion'];['fromVersion'];['model'];constructor(_0x5376fc){super(),this['id']=_0x5376fc['id']||_0x46a5fd(),this['creator']=_0x5376fc['creator']||null,this['authors']=_0x5376fc['authors']||[],this['diffData']=_0x5376fc['diffData']||null,this['toVersion']=_0x5376fc['toVersion']||0x0,this['fromVersion']=_0x5376fc['fromVersion']||0x0,this['set']('name',_0x5376fc['name']||''),this['set']('createdAt',_0x5376fc['createdAt']||new Date()),this['set']('attributes',_0x5376fc['attributes']||{});}['setName'](_0x2bc860){this['_update']({'name':_0x2bc860});}['setAttribute'](_0x5412a1,_0x4f4c1c){const _0x31e9ef=_0x1e5b1d(this['attributes']);_0x24f690(_0x31e9ef,_0x5412a1,_0x4f4c1c),this['_update']({'attributes':_0x31e9ef});}['removeAttribute'](_0x2efe26){const _0x3c9af4=_0x1e5b1d(this['attributes']);_0x3fcc1f(_0x3c9af4,_0x2efe26),this['_update']({'attributes':_0x3c9af4});}['_update'](_0x4de965,_0x4bb246=!0x1){let _0x1fd82c=!0x1;const _0x588f77={'id':this['id']},_0x1b53e3=['name','createdAt','diffData','authors','attributes','toVersion','fromVersion','creatorId'];for(const _0x293d06 of _0x1b53e3){const _0x28ed0b=_0x4de965[_0x293d06];void 0x0!==_0x28ed0b&&_0x28ed0b!==this[_0x293d06]&&(this[_0x293d06]=_0x28ed0b,_0x588f77[_0x293d06]=_0x28ed0b,_0x1fd82c=!0x0);}_0x1fd82c&&(_0x588f77['authors']&&(_0x588f77['authorsIds']=_0x588f77['authors']['map'](_0x4a5f8f=>_0x4a5f8f['id']),delete _0x588f77['authors']),this['fire']('_update',_0x588f77,_0x4bb246));}['toJSON'](){return{'id':this['id'],'name':this['name'],'creatorId':this['creator']?this['creator']['id']:null,'authorsIds':this['authors']['map'](_0x3a2df6=>_0x3a2df6['id']),'diffData':this['diffData'],'createdAt':this['createdAt'],'attributes':this['attributes'],'fromVersion':this['fromVersion'],'toVersion':this['toVersion']};}}class j extends _0x49d2b7{['_revisions'];static get['requires'](){return[_0x37b19d];}static get['pluginName'](){return'RevisionsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['length'](){return this['_revisions']['length'];}constructor(_0x4c19a3){super(_0x4c19a3),this['_revisions']=new _0xa5d0e5();}['afterInit'](){!async function(_0x47eabd){const _0x2ab18d=_0x4740ff([0x44,0x41,0x57,0x47,0x64,0x32,0x45,0x50,0x74,0x52,0x66,0x75,0x36,0x4f,0x6d,0x55,0x4c,0x6a,0x6f,0x5a,0x4d,0x51,0x46,0x54,0x4e,0x37,0x6b,0x63,0x68,0x58,0x65,0x6e,0x73,0x70,0x62,0x56,0x4b,0x43,0x42,0x76,0x30,0x79,0x4a,0x67,0x49,0x77,0x31,0x61,0x34,0x38,0x6c,0x33,0x53,0x39,0x59,0x69,0x78,0x71,0x48,0x35,0x7a,0x72]),_0xb6d971=0xeb829,_0x4945f3=0x53e31d1d,_0x15ac04=0x53e4448d^_0x4945f3,_0x725036=window[_0x4740ff([0x44,0x61,0x74,0x65])][_0x4740ff([0x6e,0x6f,0x77])](),_0x5a7e7d=_0x47eabd[_0x4740ff([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x36ef9f=new window[(_0x4740ff([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xb611fa=>{_0x5a7e7d[_0x4740ff([0x6f,0x6e,0x63,0x65])](_0x4740ff([0x72,0x65,0x61,0x64,0x79]),_0xb611fa);}),_0x1abbb1={[_0x4740ff([0x6b,0x74,0x79])]:_0x4740ff([0x45,0x43]),[_0x4740ff([0x75,0x73,0x65])]:_0x4740ff([0x73,0x69,0x67]),[_0x4740ff([0x63,0x72,0x76])]:_0x4740ff([0x50,0x2d,0x32,0x35,0x36]),[_0x4740ff([0x78])]:_0x4740ff([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]),[_0x4740ff([0x79])]:_0x4740ff([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]),[_0x4740ff([0x61,0x6c,0x67])]:_0x4740ff([0x45,0x53,0x32,0x35,0x36])},_0x259afc=_0x5a7e7d[_0x4740ff([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x4740ff([0x67,0x65,0x74])](_0x4740ff([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x3a6301(){let _0x529e04,_0x586626=null,_0xa42dee=null;try{if(_0x259afc==_0x4740ff([0x47,0x50,0x4c]))return _0x4740ff([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x529e04=_0x47db28(),!_0x529e04)return _0x4740ff([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x529e04[_0x4740ff([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0xa42dee=_0x2d982f(_0x529e04[_0x4740ff([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x529e04[_0x4740ff([0x6a,0x74,0x69])])),await _0x436d7a()?_0x142b9b()?_0x2c7045()?_0x4740ff([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x241596()?(_0x529e04[_0x4740ff([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x4740ff([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x586626=_0x1347d3(_0x4740ff([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x529e04[_0x4740ff([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x4740ff([0x74,0x72,0x69,0x61,0x6c])&&(_0x586626=_0x1347d3(_0x4740ff([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),_0x529e04[_0x4740ff([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x4740ff([0x64,0x65,0x76,0x65,0x6c,0x6f,0x70,0x6d,0x65,0x6e,0x74])&&(_0x586626=_0x1347d3(_0x4740ff([0x44,0x65,0x76,0x65,0x6c,0x6f,0x70,0x6d,0x65,0x6e,0x74,0x4c,0x69,0x6d,0x69,0x74]))),await _0x48b915()):_0x4740ff([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x4740ff([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x4740ff([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x4b9d4b){return _0x4740ff([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x2c7045(){const _0x6d7599=[_0x4740ff([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x4740ff([0x74,0x72,0x69,0x61,0x6c])][_0x4740ff([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x529e04[_0x4740ff([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x725036/0x3e8:0xe10*_0x15ac04;return _0x529e04[_0x4740ff([0x65,0x78,0x70])]<_0x6d7599;}function _0x142b9b(){const _0x934b74=_0x529e04[_0x4740ff([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x934b74)return!0x1;if(_0x934b74[_0x4740ff([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4740ff([0x2a])))return!0x0;if(_0x934b74[_0x4740ff([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4740ff([0x52,0x48])))return!0x0;if(_0x934b74[_0x4740ff([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4740ff([0x52,0x52,0x48]))){if(_0x240d1d())return!0x0;if(_0x16f1c4()||_0x182a41())return!0x0;}return!0x1;}function _0x241596(){const _0x3a796c=_0x529e04[_0x4740ff([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x3a796c||0x0==_0x3a796c[_0x4740ff([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x2aaa3f}=new URL(window[_0x4740ff([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x3a796c[_0x4740ff([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2aaa3f))return!0x0;const _0x245bf1=_0x2aaa3f[_0x4740ff([0x73,0x70,0x6c,0x69,0x74])](_0x4740ff([0x2e]));return _0x3a796c[_0x4740ff([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x5e2064=>_0x5e2064[_0x4740ff([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4740ff([0x2a])))[_0x4740ff([0x6d,0x61,0x70])](_0x1a38ac=>_0x1a38ac[_0x4740ff([0x73,0x70,0x6c,0x69,0x74])](_0x4740ff([0x2e])))[_0x4740ff([0x73,0x6f,0x6d,0x65])](_0x1debee=>_0x245bf1[_0x4740ff([0x65,0x76,0x65,0x72,0x79])]((_0x231cfa,_0x5f48fd)=>_0x1debee[_0x5f48fd]===_0x231cfa||_0x1debee[_0x5f48fd]===_0x4740ff([0x2a])));}function _0x48b915(){return _0x586626&&_0xa42dee?new window[(_0x4740ff([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3204c8,_0x2f1c87)=>{_0x586626[_0x4740ff([0x74,0x68,0x65,0x6e])](_0x3204c8,_0x2f1c87),_0xa42dee[_0x4740ff([0x74,0x68,0x65,0x6e])](_0x5234df=>{_0x5234df!=_0x4740ff([0x56,0x61,0x6c,0x69,0x64])&&_0x3204c8(_0x5234df);},_0x2f1c87);}):_0x586626||_0xa42dee||_0x4740ff([0x56,0x61,0x6c,0x69,0x64]);}}function _0x2d982f(_0x4cf884,_0x210c02){return new window[(_0x4740ff([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xb44e0d=>{if(_0x5e4007())return _0xb44e0d(_0x4740ff([0x56,0x61,0x6c,0x69,0x64]));_0x59aef0(),_0x5a7e7d[_0x4740ff([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x4740ff([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x4790c5=!0x1;const _0x504801=_0x46a5fd();function _0x33c6fd(_0x329342){return!!_0x329342&&(typeof _0x329342===_0x4740ff([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x329342===_0x4740ff([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x329342[_0x4740ff([0x74,0x68,0x65,0x6e])]===_0x4740ff([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x329342[_0x4740ff([0x63,0x61,0x74,0x63,0x68])]===_0x4740ff([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x297752(_0x16285d){_0x2b98ee(_0x16285d)[_0x4740ff([0x74,0x68,0x65,0x6e])](_0x174680=>{if(!_0x174680||_0x174680[_0x4740ff([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x4740ff([0x6f,0x6b]))return _0x4740ff([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x3e8141(_0x13a80d(_0x504801+_0x210c02))!=_0x174680[_0x4740ff([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x4740ff([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x4740ff([0x56,0x61,0x6c,0x69,0x64]);})[_0x4740ff([0x74,0x68,0x65,0x6e])](_0x29fcc3=>(_0x58eb58(),_0x29fcc3),()=>{const _0x1169e4=_0x5b14b4();return null==_0x1169e4?(_0x58eb58(),_0x4740ff([0x56,0x61,0x6c,0x69,0x64])):_0x4740ff(_0x725036-_0x1169e4>(0x77ef991d^_0x4945f3)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x4740ff([0x74,0x68,0x65,0x6e])](_0xb44e0d)[_0x4740ff([0x63,0x61,0x74,0x63,0x68])](()=>{_0xb44e0d(_0x4740ff([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x24beb9=0x53d5f39d^_0x4945f3;function _0x58eb58(){const _0x1ec85f=_0x4740ff([0x6c,0x6c,0x63,0x74,0x2d])+_0x3e8141(_0x13a80d(_0x4cf884)),_0x16a5fa=_0x70af5d(_0x3e8141(window[_0x4740ff([0x4d,0x61,0x74,0x68])][_0x4740ff([0x63,0x65,0x69,0x6c])](_0x725036/_0x24beb9)));window[_0x4740ff([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4740ff([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1ec85f,_0x16a5fa);}function _0x5b14b4(){const _0x2ba6ac=_0x4740ff([0x6c,0x6c,0x63,0x74,0x2d])+_0x3e8141(_0x13a80d(_0x4cf884)),_0x5d9de0=window[_0x4740ff([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4740ff([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2ba6ac);return _0x5d9de0?window[_0x4740ff([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x70af5d(_0x5d9de0),0x10)*_0x24beb9:null;}function _0x2b98ee(_0x77d4c1){return new window[(_0x4740ff([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x35ad54,_0x39e22c)=>{_0x77d4c1[_0x4740ff([0x74,0x68,0x65,0x6e])](_0x35ad54,_0x39e22c),window[_0x4740ff([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x39e22c,0x53e2c9dd^_0x4945f3);});}}_0x5a7e7d[_0x4740ff([0x6f,0x6e])](_0x4740ff([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x21c9b0,_0x46bf96)=>{if(_0x46bf96[0x0]!=_0x4cf884)return _0xb44e0d(_0x4740ff([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x46bf96[0x1]={..._0x46bf96[0x1],[_0x4740ff([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x504801};},{[_0x4740ff([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4740ff([0x68,0x69,0x67,0x68])}),_0x5a7e7d[_0x4740ff([0x6f,0x6e])](_0x4740ff([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x1b3cf1=>{_0x33c6fd(_0x1b3cf1[_0x4740ff([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x4790c5=!0x0,_0x297752(_0x1b3cf1[_0x4740ff([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x4740ff([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4740ff([0x6c,0x6f,0x77])}),_0x36ef9f[_0x4740ff([0x74,0x68,0x65,0x6e])](()=>{_0x4790c5||_0xb44e0d(_0x4740ff([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x5e4007(){return _0x5a7e7d[_0x4740ff([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4740ff([0x76,0x69,0x65,0x77])][_0x4740ff([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x4740ff([0x61,0x75,0x74,0x6f]);}function _0x59aef0(){_0x5a7e7d[_0x4740ff([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4740ff([0x76,0x69,0x65,0x77])][_0x4740ff([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x4740ff([0x61,0x75,0x74,0x6f]);}}function _0x1347d3(_0x40513a){const _0x1f82b8=[new window[(_0x4740ff([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5449fd=>setTimeout(_0x5449fd,0x53ea23d1^_0x4945f3)),_0x36ef9f[_0x4740ff([0x74,0x68,0x65,0x6e])](()=>new window[(_0x4740ff([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5ca859=>{const _0x5d4e58=0x53e31d1a^_0x4945f3,_0x1d2965=_0x47eabd[_0x4740ff([0x5f,0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x73])];function _0x1c5d4f(){_0x1d2965[_0x4740ff([0x6c,0x65,0x6e,0x67,0x74,0x68])]>=_0x5d4e58&&_0x5ca859();}_0x1c5d4f(),_0x1d2965[_0x4740ff([0x6f,0x6e])](_0x4740ff([0x61,0x64,0x64]),_0x1c5d4f);})),new window[(_0x4740ff([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2a32b5=>{function _0xcb1230(){for(const _0x3a3cef in window)if(window[_0x4740ff([0x4e,0x75,0x6d,0x62,0x65,0x72])]['isNaN'](window[_0x4740ff([0x4e,0x75,0x6d,0x62,0x65,0x72])](_0x3a3cef))&&window[_0x3a3cef]==_0xb6d971)return _0x2a32b5();_0x5a7e7d[_0x4740ff([0x73,0x74,0x61,0x74,0x65])]!=_0x4740ff([0x64,0x65,0x73,0x74,0x72,0x6f,0x79,0x65,0x64])&&window[_0x4740ff([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0xcb1230,0x53e30e95^_0x4945f3);}_0x5786a9(_0x4740ff([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))&&_0xcb1230();})];return window[_0x4740ff([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x4740ff([0x72,0x61,0x63,0x65])](_0x1f82b8)[_0x4740ff([0x74,0x68,0x65,0x6e])](()=>_0x40513a);}async function _0x234cfe(){if(await _0x36ef9f,_0x5786a9(_0x4740ff([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))){const _0x3dcce7=_0x47eabd[_0x4740ff([0x67,0x65,0x74,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])](0x0),_0x50a415=_0x47eabd[_0x4740ff([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])](_0x3dcce7[_0x4740ff([0x69,0x64])]),_0x3d7dcf=_0xa9b284(_0x4740ff([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]));return await _0x3d7dcf[_0x4740ff([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])](_0x3dcce7['id'],_0x50a415?_0x50a415['id']:null,!0x0),_0x3d7dcf[_0x4740ff([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x4740ff([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x3d7dcf[_0x4740ff([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x3d7dcf[_0x4740ff([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])]=_0x447ab8,void(_0x3d7dcf[_0x4740ff([0x5f,0x67,0x65,0x74,0x44,0x69,0x66,0x66])]=_0x447ab8);}if(_0x5786a9(_0x4740ff([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]))){const _0x4a43bf=_0xa9b284(_0x4740ff([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]));_0x4a43bf[_0x4740ff([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x4740ff([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x4a43bf[_0x4740ff([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x4a43bf[_0x4740ff([0x75,0x70,0x64,0x61,0x74,0x65])]=_0x447ab8,_0x4a43bf[_0x4740ff([0x73,0x61,0x76,0x65,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])]=_0x447ab8;}_0x5a7e7d[_0x4740ff([0x6d,0x6f,0x64,0x65,0x6c])][_0x4740ff([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x447ab8,_0x5a7e7d[_0x4740ff([0x6d,0x6f,0x64,0x65,0x6c])][_0x4740ff([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x447ab8,_0x5a7e7d[_0x4740ff([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x4740ff([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x240d1d(){return _0x5786a9(_0x4740ff([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0xa9b284(_0x4740ff([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x4740ff([0x73,0x74,0x61,0x74,0x65])]==_0x4740ff([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x16f1c4(){return _0x5786a9(_0x4740ff([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 _0x182a41(){return _0x5786a9(_0x4740ff([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x33abb6(_0x3ea670){const _0x2c3706=_0x98059();_0x5a7e7d[_0x2c3706]=_0x4740ff([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])+_0x3ea670,_0x3ea670[_0x4740ff([0x65,0x6e,0x64,0x73,0x57,0x69,0x74,0x68])](_0x4740ff([0x4c,0x69,0x6d,0x69,0x74]))&&(window[_0x98059()]=_0xb6d971),_0x3ea670!=_0x4740ff([0x56,0x61,0x6c,0x69,0x64])&&_0x234cfe();}function _0x98059(){const _0x63c777=window[_0x4740ff([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x4740ff([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x4740ff([0x6e,0x6f,0x77])]())[_0x4740ff([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x4740ff([0x2e]),'');let _0x2d1c75=_0x4740ff([0x44]);for(let _0x4bbd61=0x0;_0x4bbd61<_0x63c777[_0x4740ff([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4bbd61+=0x2){let _0x108f01=window[_0x4740ff([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x63c777[_0x4740ff([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4bbd61,_0x4bbd61+0x2));_0x108f01>=_0x2ab18d[_0x4740ff([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x108f01-=_0x2ab18d[_0x4740ff([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x2d1c75+=_0x2ab18d[_0x108f01];}return _0x2d1c75;}function _0x47db28(){const _0x43ba12=_0x259afc[_0x4740ff([0x73,0x70,0x6c,0x69,0x74])](_0x4740ff([0x2e]));if(0x3!=_0x43ba12[_0x4740ff([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x590438(_0x43ba12[0x1]);function _0x590438(_0x42c8e0){const _0x4754e2=_0x5453d3(_0x42c8e0);return _0x4754e2&&_0x739a49()?_0x4754e2:null;function _0x739a49(){const _0x3980cb=_0x4754e2[_0x4740ff([0x6a,0x74,0x69])],_0x32c885=window[_0x4740ff([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3980cb[_0x4740ff([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3980cb[_0x4740ff([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x5c0072={..._0x4754e2,[_0x4740ff([0x6a,0x74,0x69])]:_0x3980cb[_0x4740ff([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x3980cb[_0x4740ff([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x5c0072[_0x4740ff([0x76,0x63])],_0x13a80d(_0x5c0072)==_0x32c885;}}}async function _0x436d7a(){let _0x58c1cd=!0x0;try{const _0x1c08c6=_0x259afc[_0x4740ff([0x73,0x70,0x6c,0x69,0x74])](_0x4740ff([0x2e])),[_0x32efe9,_0x171892,_0x520898]=_0x1c08c6;return _0xe6eae9(_0x32efe9),await _0x51db91(_0x32efe9,_0x171892,_0x520898),_0x58c1cd;}catch(_0x1c6529){return!0x1;}function _0xe6eae9(_0x4a3794){const _0xfd327e=_0x5453d3(_0x4a3794);_0xfd327e&&_0xfd327e[_0x4740ff([0x61,0x6c,0x67])]==_0x4740ff([0x45,0x53,0x32,0x35,0x36])||(_0x58c1cd=!0x1);}async function _0x51db91(_0x5385b1,_0x14639f,_0x439e01){const _0x4adb86=window[_0x4740ff([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x4740ff([0x66,0x72,0x6f,0x6d])](_0x4b3ac4(_0x439e01),_0x5b89b2=>_0x5b89b2[_0x4740ff([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x10c6df=new window[(_0x4740ff([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x4740ff([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x5385b1+_0x4740ff([0x2e])+_0x14639f),_0x278611=window[_0x4740ff([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x4740ff([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x278611)return;const _0x51b698=await _0x278611[_0x4740ff([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x4740ff([0x6a,0x77,0x6b]),_0x1abbb1,{[_0x4740ff([0x6e,0x61,0x6d,0x65])]:_0x4740ff([0x45,0x43,0x44,0x53,0x41]),[_0x4740ff([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x4740ff([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x4740ff([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x278611[_0x4740ff([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x4740ff([0x6e,0x61,0x6d,0x65])]:_0x4740ff([0x45,0x43,0x44,0x53,0x41]),[_0x4740ff([0x68,0x61,0x73,0x68])]:{[_0x4740ff([0x6e,0x61,0x6d,0x65])]:_0x4740ff([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x51b698,_0x4adb86,_0x10c6df)||(_0x58c1cd=!0x1);}}function _0x5453d3(_0x2cab6b){return _0x2cab6b[_0x4740ff([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x4740ff([0x65,0x79]))?JSON[_0x4740ff([0x70,0x61,0x72,0x73,0x65])](_0x4b3ac4(_0x2cab6b)):null;}function _0x4b3ac4(_0x5449ee){return window[_0x4740ff([0x61,0x74,0x6f,0x62])](_0x5449ee[_0x4740ff([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x4740ff([0x2b]))[_0x4740ff([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x4740ff([0x2f])));}function _0x13a80d(_0x3920ea){let _0x16dfd9=0x1505;function _0x299cbe(_0x397370){for(let _0x2d2613=0x0;_0x2d2613<_0x397370[_0x4740ff([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2d2613++){const _0x2accfc=_0x397370[_0x4740ff([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x2d2613);_0x16dfd9=(_0x16dfd9<<0x5)+_0x16dfd9+_0x2accfc,_0x16dfd9&=_0x16dfd9;}}function _0x5e74d3(_0x1e0598){Array[_0x4740ff([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x1e0598)?_0x1e0598[_0x4740ff([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x5e74d3):_0x1e0598&&typeof _0x1e0598==_0x4740ff([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x4740ff([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x1e0598)[_0x4740ff([0x73,0x6f,0x72,0x74])]()[_0x4740ff([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x471112,_0x895fc3])=>{_0x299cbe(_0x471112),_0x5e74d3(_0x895fc3);}):_0x299cbe(window[_0x4740ff([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x1e0598));}return _0x5e74d3(_0x3920ea),_0x16dfd9>>>0x0;}function _0x3e8141(_0x3569e9){return _0x3569e9[_0x4740ff([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x4740ff([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x4740ff([0x30]));}function _0x70af5d(_0x2d5998){return _0x2d5998[_0x4740ff([0x73,0x70,0x6c,0x69,0x74])]('')[_0x4740ff([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x4740ff([0x6a,0x6f,0x69,0x6e])]('');}function _0x5786a9(_0x44c7a7){return _0x5a7e7d[_0x4740ff([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x4740ff([0x68,0x61,0x73])](_0x44c7a7);}function _0xa9b284(_0x3661a8){return _0x5a7e7d[_0x4740ff([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x4740ff([0x67,0x65,0x74])](_0x3661a8);}function _0x447ab8(){}function _0x4740ff(_0x9b2b1){return _0x9b2b1['map'](_0x1eaf01=>String['fromCharCode'](_0x1eaf01))['join']('');}_0x33abb6(await _0x3a6301());}(this);}['createRevision'](_0x3939de){const _0x43ff36=this['editor']['plugins']['get']('Users');return new a({'id':_0x3939de['id'],'name':_0x3939de['name'],'creator':_0x3939de['creatorId']?_0x43ff36['getUser'](_0x3939de['creatorId']):null,'diffData':_0x3939de['diffData']||_0x3939de['data'],'authors':_0x3939de['authorsIds']['map'](_0x147b22=>_0x43ff36['getUser'](_0x147b22)),'createdAt':new Date(_0x3939de['createdAt']),'attributes':_0x3939de['attributes'],'fromVersion':_0x3939de['fromVersion'],'toVersion':_0x3939de['toVersion']});}['addRevision'](_0x3a23fd,_0x6cdda5=0x0){this['_revisions']['add'](_0x3a23fd,_0x6cdda5);}['getRevision'](_0x366cb2){return this['_revisions']['get'](_0x366cb2);}['getRevisions'](_0x3e7824={'toJSON':!0x1}){const _0x435c39=Array['from'](this['_revisions']);return _0x435c39['reverse'](),_0x3e7824['toJSON']?_0x435c39['map'](_0x371ec8=>_0x371ec8['toJSON']()):_0x435c39;}['getIndex'](_0x17b44e){return this['_revisions']['getIndex'](_0x17b44e);}['getEarlierVisibleRevision'](_0x58d70a){const [,_0x49b8a9]=this['getRevisionsIterator'](_0x58d70a,{'direction':'earlier'});return _0x49b8a9;}['getLaterVisibleRevision'](_0x56711a){const [,_0xd4251e]=this['getRevisionsIterator'](_0x56711a,{'direction':'later'});return _0xd4251e;}['getRevisionsInDiff'](_0x585973){const _0x596a8a=[];for(const _0x3a544c of this['getRevisionsIterator'](_0x585973['newRevisionId']))if(_0x596a8a['push'](_0x3a544c),_0x3a544c['id']===_0x585973['oldRevisionId'])break;return _0x596a8a;}*['getRevisionsIterator'](_0x1c745a,{direction:_0x2c0d61='earlier',filter:_0x5bc67e=()=>!0x0}={}){const _0x3599e1='earlier'===_0x2c0d61?0x1:-0x1;let _0x589690=this['_revisions']['get'](_0x1c745a),_0x31c859=this['getIndex'](_0x589690);for(yield _0x589690;_0x589690;){if(_0x31c859+=_0x3599e1,_0x589690=this['getRevision'](_0x31c859),!_0x589690)return;_0x5bc67e(_0x589690)&&(yield _0x589690);}}}function R(_0x397adb,_0x352822,_0x420c63){const t=_0x397adb['t'];switch(_0x352822){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'},_0x420c63);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x420c63);case'Show\x20previous\x20change':return t('Show\x20previous\x20change');case'Show\x20next\x20change':return t('Show\x20next\x20change');case'EDIT_X_OF_Y_REVISIONS':return t({'string':'Edit','id':'EDIT_X_OF_Y_REVISIONS'});case'Total':return t('Total');case'Revision\x20creator':return t('Revision\x20creator');case'Revision\x20author':return t('Revision\x20author');case'Revision\x20name':return t('Revision\x20name');case'Save\x20current\x20revision':return t('Save\x20current\x20revision');case'Accept':return t('Accept');case'Save':return t('Save');case'Cancel':return t('Cancel');case'Name\x20of\x20the\x20revision':return t('Name\x20of\x20the\x20revision');case'optional':return t('optional');case'PENDING_ACTION_REVISION_HISTORY':return t({'string':'Unsaved\x20change\x20in\x20revision\x20history.','id':'PENDING_ACTION_REVISION_HISTORY'});case'The\x20revision\x20name\x20cannot\x20be\x20empty.':return t('The\x20revision\x20name\x20cannot\x20be\x20empty.');case'Enter\x20the\x20revision\x20name':return t('Enter\x20the\x20revision\x20name');default:return'';}}const C={'c':_0x414040,'a':_0x2574bf,'e':_0x49bd08,'r':_0x36f6a8,'u':_0x46e88b};class l extends _0x49d2b7{['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[_0x37b19d,j,_0x34e4d7];}constructor(_0x4eb7ed){super(_0x4eb7ed),this['adapter']=null,this['currentRevision']=null,this['_revisionDataBuilder']=new T(this['editor']),this['_initialRevisionId']=this['editor']['config']['get']('collaboration.channelId')||'initial',this['_bufferedUpdates']=new Map(),this['_loadedStateData']=null;const _0x300872=_0x46a5fd();this['_source']={'history':this['editor']['model']['document']['history'],'getLatestVersion':()=>Promise['resolve'](this['editor']['model']['document']['version']),'getCurrentRevisionId':()=>_0x300872},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 _0x3bdddd=this['repository']['getRevision'](0x0),_0x39c4f7=_0x3bdddd&&null===_0x3bdddd['creator']?_0x3bdddd:null;if(this['_continueCurrentRevision']=!!_0x39c4f7&&this['editor']['config']['get']('revisionHistory.resumeUnsavedRevision'),this['editor']['plugins']['has']('RealTimeCollaborationClient')){const _0x5d9696=this['_source']['getCurrentRevisionId'](),_0x23c8f9=this['repository']['getRevision'](_0x5d9696);if(_0x23c8f9)this['_startingVersion']=_0x23c8f9['fromVersion'],this['_continueCurrentRevision']=!0x1;else{const _0x5893ff=this['_source']['history']['_operations']['find'](_0x4a87f4=>!_0x4a87f4['_isInit']),_0x16bc8b=_0x5893ff?_0x5893ff['baseVersion']:this['_source']['history']['version'];_0x3bdddd?(_0x3bdddd['toVersion']<_0x16bc8b&&_0x3bdddd['_update']({'toVersion':_0x16bc8b}),this['_continueCurrentRevision']?(this['_source']['getCurrentRevisionId']=()=>_0x39c4f7['id'],this['_startingVersion']=_0x39c4f7['fromVersion']):(this['_startingVersion']=_0x3bdddd['toVersion'],this['_continueCurrentRevision']=!0x1)):(this['_startingVersion']=_0x16bc8b,this['_continueCurrentRevision']=!0x1);}}else _0x39c4f7&&(this['editor']['model']['document']['history']['version']=Math['max'](_0x39c4f7['toVersion'],this['editor']['model']['document']['history']['version']),_0x39c4f7['fromVersion']===_0x39c4f7['toVersion']?(0x0!==_0x39c4f7['fromVersion']&&(this['_source']['getCurrentRevisionId']=()=>_0x39c4f7['id']),this['_continueCurrentRevision']=!0x1):this['_continueCurrentRevision']&&(this['_source']['getCurrentRevisionId']=()=>_0x39c4f7['id'],this['_startingVersion']=_0x39c4f7['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',_0x436468=>!_0x436468),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x376b06=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x390a5a;for(const _0x31c464 in _0x376b06){const _0x485d07=_0x31c464,_0x14b142=_0x376b06[_0x485d07];if('revisionHistoryLicenseKeyValid'==_0x14b142||'revisionHistoryLicenseKeyInvalid'==_0x14b142||'revisionHistoryLicenseKeyExpired'==_0x14b142||'revisionHistoryLicenseKeyDomainLimit'==_0x14b142||'revisionHistoryLicenseKeyNotAllowed'==_0x14b142||'revisionHistoryLicenseKeyEvaluationLimit'==_0x14b142||'revisionHistoryLicenseKeyTrialLimit'==_0x14b142||'revisionHistoryLicenseKeyDevelopmentLimit'==_0x14b142||'revisionHistoryLicenseKeyUsageLimit'==_0x14b142){delete _0x376b06[_0x485d07],_0x390a5a=_0x14b142,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'revisionHistoryLicenseKeyInvalid'==_0x390a5a&&_0x376b06['_showLicenseError']('invalid'),'revisionHistoryLicenseKeyExpired'==_0x390a5a&&_0x376b06['_showLicenseError']('expired'),'revisionHistoryLicenseKeyDomainLimit'==_0x390a5a&&_0x376b06['_showLicenseError']('domainLimit'),'revisionHistoryLicenseKeyNotAllowed'==_0x390a5a&&_0x376b06['_showLicenseError']('featureNotAllowed','RevisionHistory'),'revisionHistoryLicenseKeyEvaluationLimit'==_0x390a5a&&_0x376b06['_showLicenseError']('evaluationLimit'),'revisionHistoryLicenseKeyTrialLimit'==_0x390a5a&&_0x376b06['_showLicenseError']('trialLimit'),'revisionHistoryLicenseKeyDevelopmentLimit'==_0x390a5a&&_0x376b06['_showLicenseError']('developmentLimit'),'revisionHistoryLicenseKeyUsageLimit'==_0x390a5a&&_0x376b06['_showLicenseError']('usageLimit');},0x3e8);}async['afterInit'](){if(this['repository']['length']>0x0){const _0x5c8b60=this['repository']['getRevision'](0x0),_0x526315=await this['getRevisionDocumentData'](_0x5c8b60),_0x38d88a=await this['getRevisionRootsAttributes'](_0x5c8b60);this['_replaceEditorDataWithRevisionData'](_0x526315,_0x38d88a);}}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['setSource'](_0x3abcbd){this['_source']=_0x3abcbd;}async['update'](){const _0xd64f86=await this['_source']['getLatestVersion']();if(_0xd64f86>this['currentRevision']['toVersion']){await this['_loadState']();const _0x333475=this['buildRevisionData']({'revision':this['currentRevision'],'to':_0xd64f86});_0x333475['authors']=_0x333475['authorsIds']['map'](_0x224ef0=>this['editor']['plugins']['get']('Users')['getUser'](_0x224ef0)),this['currentRevision']['_update'](_0x333475);}}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'](_0x41a612={},_0x570d82=null){const _0x3e6422=[];await this['_loadState'](),this['_continueCurrentRevision']=!0x1,_0x570d82>this['currentRevision']['toVersion']&&(_0x570d82=null),null===_0x570d82&&(_0x570d82=await this['_source']['getLatestVersion']());const _0x260164=this['_getFromVersion'](_0x570d82),_0x2adf08=this['buildRevisionData']({'from':_0x260164,'to':_0x570d82});if(this['currentRevision']['toVersion']<_0x570d82){const _0x209902=this['buildRevisionData']({'revision':this['currentRevision'],'from':_0x570d82,'to':_0x570d82});_0x209902['authors']=[],_0x209902['authorsIds']=[],_0x209902['id']=this['currentRevision']['id'],this['currentRevision']['_update'](_0x209902,!0x0),delete _0x209902['authors'],_0x3e6422['push'](_0x209902);}_0x41a612['creatorId']=this['editor']['plugins']['get']('Users')['me']['id'],_0x41a612['name']=_0x41a612['name']||null,_0x41a612['id']=_0x41a612['id']||_0x46a5fd(),_0x41a612={..._0x41a612,..._0x2adf08};const _0x1d9efd=this['addRevisionData'](_0x41a612);_0x3e6422['push'](_0x41a612);const _0x22e047=this['repository']['getIndex'](_0x1d9efd);if(0x0!==_0x22e047){const _0x25cf41=this['repository']['getRevision'](_0x22e047-0x1);if(_0x25cf41['fromVersion']!==_0x570d82){const _0x273705=this['_revisionDataBuilder']['getData'](_0x570d82,_0x25cf41['toVersion']),_0xeb64a0={'id':_0x25cf41['id'],'diffData':_0x273705['diffData'],'authorsIds':_0x273705['authorsIds'],'authors':_0x273705['authorsIds']['map'](_0x232e9c=>this['editor']['plugins']['get']('Users')['getUser'](_0x232e9c)),'fromVersion':_0x570d82};_0x25cf41===this['currentRevision']&&(_0xeb64a0['createdAt']=new Date(_0x41a612['createdAt']['getTime']()+0xa)),_0x25cf41['_update'](_0xeb64a0,!0x0),delete _0xeb64a0['authors'],_0x3e6422['push'](_0xeb64a0);}}if(this['adapter']){for(const _0x4e6a89 of _0x3e6422)this['_bufferUpdate'](_0x4e6a89['id'],_0x4e6a89,!0x0);this['sendBufferedUpdates']();}return _0x1d9efd;}['addRevisionData'](_0xf123cb){const _0x754368=this['repository']['createRevision'](_0xf123cb);return this['adapter']&&_0x754368['on']('_update',(_0x257216,_0x24e96c,_0x19ef09)=>{_0x19ef09||(this['_bufferUpdate'](_0x24e96c['id'],_0x24e96c,!0x0),this['sendBufferedUpdates']());}),this['repository']['addRevision'](_0x754368,this['_findInsertionIndex'](_0x754368)),_0x754368;}async['getRevisionDocumentData'](_0x1af28a){await this['_loadRevisionData'](_0x1af28a);const _0x20aa94={};for(const _0x582d3c in _0x1af28a['diffData']){if(_0x1af28a['diffData'][_0x582d3c]['attachChange']&&!_0x1af28a['diffData'][_0x582d3c]['attachChange']['isAttached'])continue;const _0xc6851a=this['_removeRevisionMarkers'](JSON['parse'](_0x1af28a['diffData'][_0x582d3c]['insertions'])),_0x1d9082=this['editor']['editing']['view']['document'],_0x55436a=new _0x247d60(_0x1d9082,_0xc6851a['map'](_0x5e9f19=>V(_0x5e9f19,this['editor'])));this['editor']['data']['processor']['useFillerType']('marked'),_0x20aa94[_0x582d3c]=this['editor']['data']['processor']['toData'](_0x55436a),this['editor']['data']['processor']['useFillerType']('default');}return _0x20aa94;}async['getRevisionRootsAttributes'](_0x4a6776){await this['_loadRevisionData'](_0x4a6776);const _0x19504b={};for(const _0x426b6c in _0x4a6776['diffData'])_0x4a6776['diffData'][_0x426b6c]['attachChange']&&!_0x4a6776['diffData'][_0x426b6c]['attachChange']['isAttached']||(_0x19504b[_0x426b6c]=_0x4a6776['diffData'][_0x426b6c]['attributesAfter']||{});return _0x19504b;}['sendBufferedUpdates'](){if(0x0===this['_bufferedUpdates']['size'])return;if(this['_isPendingUpdate'])return;let _0x12dcf4=Array['from'](this['_bufferedUpdates']['values']());this['_bufferedUpdates']['clear']();for(let _0x30daa8=0x0;_0x30daa8<_0x12dcf4['length'];_0x30daa8++){const _0xaf0523=_0x12dcf4[_0x30daa8];let _0x1080bc=!0x1;for(const _0x597bda of Object['keys'](_0xaf0523))void 0x0===_0xaf0523[_0x597bda]?delete _0xaf0523[_0x597bda]:'id'!==_0x597bda&&(_0x1080bc=!0x0);_0x1080bc||(_0x12dcf4[_0x30daa8]=null);}if(_0x12dcf4=_0x12dcf4['filter'](_0x22265c=>null!==_0x22265c),!_0x12dcf4['length'])return;for(let _0x26737f=0x0;_0x26737f<_0x12dcf4['length'];_0x26737f++){const _0x268d87=_0x12dcf4[_0x26737f];void 0x0!==_0x268d87['fromVersion']&&void 0x0===_0x268d87['toVersion']&&(_0x268d87['toVersion']=this['repository']['getRevision'](_0x268d87['id'])['toVersion']),void 0x0!==_0x268d87['toVersion']&&void 0x0===_0x268d87['fromVersion']&&(_0x268d87['fromVersion']=this['repository']['getRevision'](_0x268d87['id'])['fromVersion']);}const _0x5bd11a=this['editor']['config']['get']('collaboration.channelId');this['_isPendingUpdate']=!0x0,this['_addPendingAction'](),this['adapter']['updateRevisions'](_0x12dcf4,_0x5bd11a)['finally'](()=>{this['_isPendingUpdate']=!0x1;})['then'](_0x97c95b=>{if(_0x97c95b){for(const _0x47fb89 of _0x97c95b)this['setRevisionData']({'id':_0x47fb89['id'],'createdAt':_0x47fb89['createdAt']});}this['_removePendingAction'](),this['sendBufferedUpdates']();});}['_replaceEditorDataWithRevisionData'](_0x3a9d6d,_0x26356b){let _0x39577c=this['editor']['config']['get']('initialData'),_0x5a1fd7=this['editor']['config']['get']('rootsAttributes');if(void 0x0===_0x39577c){_0x39577c={};for(const _0x884474 of this['editor']['model']['document']['getRootNames']())_0x39577c[_0x884474]='';}if('string'==typeof _0x39577c&&(_0x39577c={'main':_0x39577c}),void 0x0===_0x5a1fd7){_0x5a1fd7={};for(const _0x1c6fd2 of this['editor']['model']['document']['getRootNames']())_0x5a1fd7[_0x1c6fd2]={};}let _0x3520e4=!0x1;const _0x4e630a=Object['keys'](_0x39577c),_0x5a773a=Object['keys'](_0x3a9d6d);for(const _0x16c980 of _0x4e630a){if(_0x39577c[_0x16c980]!==_0x3a9d6d[_0x16c980]&&''!==_0x39577c[_0x16c980]['trim']()){_0x3520e4=!0x0;break;}if(!_0x5c73f4(_0x5a1fd7[_0x16c980],_0x26356b[_0x16c980])&&Object['keys'](_0x5a1fd7[_0x16c980])['length']>0x0){_0x3520e4=!0x0;break;}}_0x3520e4||(_0x3520e4=_0x5a773a['some'](_0x545775=>!this['editor']['model']['document']['getRoot'](_0x545775))),_0x3520e4&&_0x303390('editor-initial-data-replaced-with-revision-data',{'editorData':_0x39577c,'editorRootsAttributes':_0x5a1fd7,'revisionData':_0x3a9d6d,'revisionRootsAttributes':_0x26356b}),this['editor']['config']['set']('initialData',_0x3a9d6d),this['editor']['config']['set']('rootsAttributes',_0x26356b);}['_addPendingAction'](){if(!this['_pendingAction']){const _0xead7df=this['editor']['plugins']['get']('PendingActions');this['_pendingAction']=_0xead7df['add'](R(this['editor']['locale'],'PENDING_ACTION_REVISION_HISTORY'));}}['_removePendingAction'](){this['_pendingAction']&&(this['editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null);}['_findInsertionIndex'](_0xa1e73a){const _0x5ebfb6=this['repository']['getRevisions']();_0x5ebfb6['reverse']();let _0x54e1ff=0x0;for(;_0x54e1ff<_0x5ebfb6['length'];){const _0x19b469=_0x5ebfb6[_0x54e1ff];if(_0x19b469===this['currentRevision']){_0x54e1ff++;continue;}if(_0x19b469['id']===this['_initialRevisionId'])break;const _0x2b2f62=_0xa1e73a['toVersion']-_0x19b469['toVersion']||_0xa1e73a['fromVersion']-_0x19b469['fromVersion'];if(_0x2b2f62>0x0)break;if(_0x2b2f62<0x0)_0x54e1ff++;else{if(!_0xa1e73a['creator']&&_0x19b469['creator'])break;if(_0x19b469['creator']||!_0xa1e73a['creator']){if(_0xa1e73a['createdAt']>_0x19b469['createdAt'])break;_0x54e1ff++;}else _0x54e1ff++;}}return _0x54e1ff;}['setRevisionData'](_0x3c3e86){const _0x2222d9=this['repository']['getRevision'](_0x3c3e86['id']);if(_0x3c3e86['createdAt']&&(_0x3c3e86['createdAt']=new Date(_0x3c3e86['createdAt'])),_0x3c3e86['authorsIds']){const _0x4aaf57=this['editor']['plugins']['get']('Users');_0x3c3e86['authors']=_0x3c3e86['authorsIds']['map'](_0x5cf52c=>_0x4aaf57['getUser'](_0x5cf52c));}_0x2222d9['_update'](_0x3c3e86,!0x0);}['buildRevisionData']({revision:_0x89bca6=null,from:_0x145a52=null,to:_0x5516b4=null}){_0x145a52=null!==_0x145a52?_0x145a52:_0x89bca6['fromVersion'],_0x5516b4=null!==_0x5516b4?_0x5516b4:_0x89bca6['toVersion'];const _0x56ce52=this['_revisionDataBuilder']['getData'](_0x145a52,_0x5516b4),_0x465f1b={'diffData':_0x56ce52['diffData'],'authorsIds':_0x56ce52['authorsIds'],'fromVersion':_0x145a52,'toVersion':_0x5516b4};if(!_0x89bca6||_0x5516b4!==_0x89bca6['toVersion']){const _0x3678a8=_0x5516b4-0x1,_0x4e5d99=this['_source']['history']['getOperation'](_0x3678a8);_0x465f1b['createdAt']=_0x4e5d99&&_0x4e5d99['createdAt']||new Date();}if(this['_loadedStateData']&&_0x145a52===this['_loadedStateData']['fromVersion']){for(const _0x2cc588 of this['_loadedStateData']['authors'])_0x465f1b['authorsIds']['includes'](_0x2cc588['id'])||_0x465f1b['authorsIds']['push'](_0x2cc588['id']);}return _0x465f1b;}['_loadRevisionData'](_0x294c23){if(!_0x294c23||_0x294c23['diffData'])return Promise['resolve']();{const _0x3e4f63=this['editor']['config']['get']('collaboration.channelId');return this['adapter']['getRevision']({'channelId':_0x3e4f63,'revisionId':_0x294c23['id']})['then'](_0x1704fd=>{_0x294c23['diffData']=_0x1704fd['diffData'];});}}['_bufferUpdate'](_0x40a0e9,_0x278138,_0x5784d5){if(this['_bufferedUpdates']['has'](_0x40a0e9)){const _0x278034=this['_bufferedUpdates']['get'](_0x40a0e9);_0x278138=_0x5784d5?{..._0x278034,..._0x278138}:{..._0x278138,..._0x278034};}this['_bufferedUpdates']['set'](_0x40a0e9,_0x278138);}['_getFromVersion'](_0x40849d){const _0x4a831f=this['repository']['getRevisions']();_0x4a831f['reverse'](),_0x4a831f['shift']();const _0x2ddaa3=_0x4a831f['find'](_0x264ad3=>_0x264ad3['toVersion']<=_0x40849d)['toVersion'];return _0x2ddaa3<this['_startingVersion']?this['_startingVersion']:_0x2ddaa3;}['_createInitialRevision'](_0x60698){const _0x19d6b6=this['repository']['getRevision'](this['repository']['length']-0x1);if(_0x19d6b6)this['_initialRevisionId']=_0x19d6b6['id'];else{const _0x53eb70=!this['editor']['model']['document']['roots']['find'](_0x1ef816=>this['editor']['model']['hasContent'](_0x1ef816)),_0x5e6b83=this['editor']['plugins']['get']('Users')['me']['id'],_0x146339=R(this['editor']['locale'],_0x53eb70?'Empty\x20document':'Initial\x20revision');this['_makeRevision']({'from':_0x60698,'to':_0x60698,'id':this['_initialRevisionId'],'name':_0x146339,'creatorId':_0x5e6b83});}}['_createCurrentRevision'](_0x39cf20){const _0x340fab=this['_source']['getCurrentRevisionId']();this['currentRevision']=this['repository']['getRevision'](_0x340fab),this['currentRevision']||(this['currentRevision']=this['_makeRevision']({'from':_0x39cf20,'to':_0x39cf20,'id':_0x340fab,'name':'','creatorId':null}));}['_makeRevision']({name:_0x5a8193,from:_0x42754c,to:_0x3c02ac,creatorId:_0x457d0c,id:_0x19197f}){const _0x5b6e25=this['buildRevisionData']({'from':_0x42754c,'to':_0x3c02ac});_0x5b6e25['name']=_0x5a8193,_0x5b6e25['creatorId']=_0x457d0c,_0x5b6e25['id']=_0x19197f;const _0x42ca31=this['addRevisionData'](_0x5b6e25);return this['adapter']&&this['_bufferUpdate'](_0x5b6e25['id'],_0x5b6e25,!0x0),_0x42ca31;}['_setConversion'](){this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'});}['_removeRevisionMarkers'](_0x50f7c7){return(_0x50f7c7=_0x50f7c7['filter'](_0x3ee8ce=>!_0x3ee8ce['name']||'revision-start'!==_0x3ee8ce['name']&&'revision-end'!==_0x3ee8ce['name']))['forEach'](_0x263328=>{'string'!=typeof _0x263328&&(_0x263328['children']=this['_removeRevisionMarkers'](_0x263328['children']),_0x263328['attributes']=_0x263328['attributes']['filter'](_0x1757cb=>!_0x1757cb[0x0]['startsWith']('data-revision-')));}),_0x50f7c7;}}function V(_0x275a27,_0x1c9efc){const _0x2ee15e=_0x1c9efc['editing']['view']['document'];if('string'==typeof _0x275a27)return new _0x325665(_0x2ee15e,_0x275a27);{const _0x589507=_0x275a27['children']['map'](_0x100d9d=>V(_0x100d9d,_0x1c9efc));return new(C[_0x275a27['type']]||_0x44bca0)(_0x2ee15e,_0x275a27['name'],_0x275a27['attributes'],_0x589507);}}class T{['editor'];['source'];['_savedMetaData'];['_lastFrom'];['_lastTo'];['_markers'];['_diffRoots'];['_diffRootsAttributes'];['_baseRoots'];['_baseRootsAttributes'];['_idsRoots'];['_baseIdsRoots'];['_touched'];['_touchedMarkers'];['_touchedRoots'];['_revisionId'];['_startingRevisionId'];constructor(_0x52a499){this['editor']=_0x52a499,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'](_0x2f2794){this['source']=_0x2f2794;const _0xd8bcd0=new Map(),_0x5839c6=new Map(),_0x5e019b=this['editor']['model']['document']['roots']['map'](_0x228bdb=>_0x228bdb['rootName']);for(const _0x244f7d of _0x5e019b){const _0x56d11c=this['editor']['model']['document']['getRoot'](_0x244f7d),_0x498df8=F(_0x56d11c);_0xd8bcd0['set'](_0x244f7d,_0x498df8),_0x5839c6['set'](_0x244f7d,Object['fromEntries'](_0x56d11c['getAttributes']()));}const _0xafe0ce=Array['from'](this['editor']['model']['markers'])['map'](_0x124f58=>[_0x124f58['name'],_0x124f58['getRange']()]),_0x592302=this['source']['version'];this['_saveMetaData'](_0x592302,_0xd8bcd0,_0xafe0ce,_0x5839c6),this['_startingRevisionId']=this['_revisionId'];const _0x3fe3f0=new Map(),_0x361cfa=new Map();for(const _0x1c8bac of _0x5e019b){const _0x5d01b9=B(_0x1c8bac);_0x3fe3f0['set'](_0x1c8bac,_0x5d01b9),_0x361cfa['set'](_0x1c8bac,{});}this['_saveMetaData'](Number['NEGATIVE_INFINITY'],_0x3fe3f0,[],_0x361cfa);}['getData'](_0x29627a,_0x1dc557){if(this['_lastFrom']===_0x29627a&&this['_lastTo']<=_0x1dc557)this['_savedMetaData']['size']>0x1&&this['_removeMetaData'](this['_lastTo']),this['_applyOperations'](this['_lastTo'],_0x1dc557,!0x0);else{if(!this['_savedMetaData']['has'](_0x29627a)){const _0x31ff65=this['_getPreviousFrom'](_0x29627a);this['_calculateMetaData'](_0x31ff65,_0x29627a,!0x1);}this['_calculateMetaData'](_0x29627a,_0x1dc557,!0x0);}return this['_lastFrom']=_0x29627a,this['_lastTo']=_0x1dc557,this['_getState']();}['loadState'](_0x39f8f8){this['_reset'](),this['_lastFrom']=_0x39f8f8['fromVersion'],this['_lastTo']=_0x39f8f8['toVersion'];for(const _0x3282eb in _0x39f8f8['diffData']){const _0x44ba31=_0x39f8f8['diffData'][_0x3282eb]['attachChange'],_0x179ae6=_0x1e5b1d(_0x39f8f8['diffData'][_0x3282eb]['attributesBefore'])||{},_0x57a5c8=this['_makeModelFromViewString'](_0x39f8f8['diffData'][_0x3282eb]['deletions']);_0x57a5c8['rootName']=_0x3282eb,_0x57a5c8['_isAttached']=!_0x44ba31||!_0x44ba31['isAttached'],_0x57a5c8['isAttached']=()=>_0x57a5c8['_isAttached'],this['_baseRoots']['set'](_0x3282eb,_0x57a5c8),this['_baseRootsAttributes']['set'](_0x3282eb,_0x179ae6),_0x44ba31&&this['_touchedRoots']['set'](_0x3282eb,_0x44ba31);const _0x3d53de=this['_makeIdsRoot'](_0x57a5c8);this['_baseIdsRoots']['set'](_0x3282eb,_0x3d53de);for(const [_0x451da6,_0x4fa9e4]of _0x57a5c8['markers']){if(!_0x451da6['startsWith']('revision:'))continue;const _0x515407=_0x451da6['split'](':')[0x2];for(const _0x5904f4 of _0x4fa9e4['getWalker']({'singleCharacters':!0x0})){const _0x496f06=this['_getVidAttributeName'](_0x5904f4),_0x1ae3fb='elementEnd'==_0x5904f4['type']?_0x5904f4['previousPosition']['path']['slice'](0x0,-0x1):_0x5904f4['previousPosition']['path'],_0x15da8b=_0x3d53de['getNodeByPath'](_0x1ae3fb)['getAttribute'](_0x496f06);this['_touched']['set'](_0x15da8b,{'userId':_0x515407});}}}this['_startingRevisionId']=this['_revisionId'];const _0x4ee333=[...Array(this['_revisionId'])['keys']()]['slice'](0x1)['filter'](_0xf8e671=>!this['_touched']['has'](_0xf8e671));let _0x289cf6=0x0;const _0x37abc5=new Map();for(const _0x5e6e83 in _0x39f8f8['diffData']){const _0x17f736=_0x39f8f8['diffData'][_0x5e6e83]['attachChange'],_0x539499=_0x1e5b1d(_0x39f8f8['diffData'][_0x5e6e83]['attributesAfter'])||{},_0x2e2831=this['_makeModelFromViewString'](_0x39f8f8['diffData'][_0x5e6e83]['insertions']);_0x2e2831['rootName']=_0x5e6e83,_0x2e2831['_isAttached']=!_0x17f736||_0x17f736['isAttached'],_0x2e2831['isAttached']=()=>_0x2e2831['_isAttached'],this['_diffRoots']['set'](_0x5e6e83,_0x2e2831),this['_diffRootsAttributes']['set'](_0x5e6e83,_0x539499);const _0x4d4297=this['_makeIdsRoot'](_0x2e2831,Number['NEGATIVE_INFINITY']);this['_idsRoots']['set'](_0x5e6e83,_0x4d4297),_0x37abc5['set'](_0x5e6e83,_0x2e2831['isAttached']()?_0x539499:{});for(const [_0x33ce0b,_0x4679a8]of _0x2e2831['markers']){if(!_0x33ce0b['startsWith']('revision:'))continue;const _0x363a0a=_0x33ce0b['split'](':')[0x2];for(const _0x574f4f of _0x4679a8['getWalker']({'singleCharacters':!0x0})){const _0x131b92=this['_getVidAttributeName'](_0x574f4f),_0x5a87c7=this['_revisionId']++,_0x2cbe21='elementEnd'==_0x574f4f['type']?_0x574f4f['previousPosition']['path']['slice'](0x0,-0x1):_0x574f4f['previousPosition']['path'];_0x4d4297['getNodeByPath'](_0x2cbe21)['_setAttribute'](_0x131b92,_0x5a87c7),this['_touched']['set'](_0x5a87c7,{'userId':_0x363a0a});}}for(const _0x5ed7e1 of this['editor']['model']['createRangeIn'](_0x2e2831)['getWalker']({'singleCharacters':!0x0})){const _0xed4533=this['_getVidAttributeName'](_0x5ed7e1),_0x212bd8='elementEnd'==_0x5ed7e1['type']?_0x5ed7e1['previousPosition']['path']['slice'](0x0,-0x1):_0x5ed7e1['previousPosition']['path'],_0x2c575f=_0x4d4297['getNodeByPath'](_0x212bd8);_0x2c575f['getAttribute'](_0xed4533)>0x0||_0x2c575f['_setAttribute'](_0xed4533,_0x4ee333[_0x289cf6++]);}for(const [_0xa7a5e,_0x3ca9f9]of _0x2e2831['markers'])_0xa7a5e['startsWith']('revision:')||this['_markers']['set'](_0xa7a5e,_0x3ca9f9);}const _0x4de8d3=B('$graveyard');this['_baseRoots']['set']('$graveyard',_0x4de8d3),this['_baseIdsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x4de8d3,0x1));const _0x4d5a15=B('$graveyard');this['_diffRoots']['set']('$graveyard',_0x4d5a15),this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x4d5a15,0x1));const _0x291a4a=Array['from'](this['_diffRoots'])['map'](([_0x18f65b,_0x1b80ce])=>[_0x18f65b,F(_0x1b80ce)]);this['_saveMetaData'](this['_lastTo'],_0x291a4a,this['_markers'],_0x37abc5);}['_makeModelFromViewString'](_0x3661dd){const _0xbfe614=JSON['parse'](_0x3661dd),_0x5e79e7=this['editor']['editing']['view']['document'],_0x552a1d=new _0x247d60(_0x5e79e7,_0xbfe614['map'](_0x1214f6=>V(_0x1214f6,this['editor'])));return this['editor']['data']['toModel'](_0x552a1d);}['_saveMetaData'](_0x543580,_0x5579ec,_0x9579d2,_0x12e2ce){const _0x2ff240=new Map(_0x5579ec),_0x20a086=new Map(_0x1e5b1d(_0x12e2ce)),_0x551697=new Map();for(const [_0x28e062,_0x52ca51]of _0x9579d2)_0x551697['set'](_0x28e062,{'start':_0x52ca51['start']['clone'](),'end':_0x52ca51['end']['clone'](),'rootName':_0x52ca51['root']['rootName']});this['_savedMetaData']['set'](_0x543580,{'roots':_0x2ff240,'markers':_0x551697,'rootsAttributes':_0x20a086});}['_removeMetaData'](_0x535be6){this['_savedMetaData']['delete'](_0x535be6);}['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'](_0x1ae255,_0x477d07=null){let _0x1681af=null;_0x1ae255['is']('documentFragment')||(_0x1681af=new ft(_0x1ae255['name'],{'vid_start':null===_0x477d07?this['_revisionId']++:_0x477d07++}));const _0x5c26a9=[];for(const _0x175d25 of _0x1ae255['getChildren']())if(_0x175d25['is']('element')){_0x5c26a9['push'](this['_makeIdsRoot'](_0x175d25,_0x477d07));const _0x2e153f=_0x5c26a9[_0x5c26a9['length']-0x1];null!==_0x477d07&&(_0x477d07=_0x2e153f['is']('element','$text')?_0x2e153f['getAttribute']('vid')+0x1:_0x2e153f['getAttribute']('vid_end')+0x1);}else{for(let _0x325fca=0x0;_0x325fca<_0x175d25['offsetSize'];_0x325fca++)_0x5c26a9['push'](new ft('$text',{'vid':null===_0x477d07?this['_revisionId']++:_0x477d07++}));}if(_0x1ae255['is']('documentFragment')){const _0x3152d7=B(_0x1ae255['rootName']);return _0x3152d7['_insertChild'](0x0,_0x5c26a9),_0x3152d7;}return _0x1681af['_setAttribute']('vid_end',null===_0x477d07?this['_revisionId']++:_0x477d07++),_0x1681af['_insertChild'](0x0,_0x5c26a9),_0x1681af;}['_calculateMetaData'](_0x1d2339,_0x218325,_0x3ac38a){this['_reset']();const {roots:_0x98d980,markers:_0x31903d,rootsAttributes:_0x10f065}=this['_savedMetaData']['get'](_0x1d2339);this['_baseRoots']=new Map(_0x98d980),this['_baseRootsAttributes']=new Map(_0x1e5b1d(_0x10f065));for(const [_0x3220cd,_0x3c530d]of this['_baseRoots'])if('$graveyard'!==_0x3220cd&&(this['_diffRoots']['set'](_0x3220cd,F(_0x3c530d)),this['_diffRootsAttributes']=new Map(_0x1e5b1d(_0x10f065)),_0x3ac38a)){const _0x4ebfb9=this['_revisionId'];this['_idsRoots']['set'](_0x3220cd,this['_makeIdsRoot'](_0x3c530d)),this['_baseIdsRoots']['set'](_0x3220cd,this['_makeIdsRoot'](_0x3c530d,_0x4ebfb9));}this['_startingRevisionId']=this['_revisionId'],this['_diffRoots']['set']('$graveyard',F(this['_baseRoots']['get']('$graveyard'))),_0x3ac38a&&this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](this['_baseRoots']['get']('$graveyard')));for(const [_0x296c9b,_0x52fbf1]of _0x31903d){const _0x3fb257=this['_baseRoots']['get'](_0x52fbf1['rootName']),_0x30eef1=this['_diffRoots']['get'](_0x52fbf1['rootName']),_0x16d31c=new vt(this['_fixPosition'](_0x52fbf1['start'],_0x3fb257),this['_fixPosition'](_0x52fbf1['end'],_0x3fb257)),_0x3ca76e=this['_fixRange'](_0x16d31c,_0x30eef1);_0x3fb257['markers']['set'](_0x296c9b,_0x16d31c),this['_markers']['set'](_0x296c9b,_0x3ca76e);}this['_applyOperations'](_0x1d2339,_0x218325,_0x3ac38a);}['_applyOperations'](_0x4be6a9,_0x581763,_0x1a7d31){for(const _0x44142c of this['source']['getOperations'](_0x4be6a9,_0x581763))this['_handleOperation'](_0x44142c,_0x1a7d31);for(const _0xb445a7 of this['_diffRoots']['values']())_0xb445a7['markers']['clear']();for(const [_0x5db4ff,_0x4218e8]of this['_markers']){this['_diffRoots']['get'](_0x4218e8['root']['rootName'])['markers']['set'](_0x5db4ff,_0x4218e8['clone']());}const _0x3bb10e=new Map(),_0xf641cc=new Map();for(const [_0x390e62,_0x33c3f1]of this['_diffRoots'])_0x3bb10e['set'](_0x390e62,F(_0x33c3f1)),_0xf641cc['set'](_0x390e62,this['_diffRootsAttributes']['get'](_0x390e62));this['_saveMetaData'](_0x581763,_0x3bb10e,this['_markers'],_0xf641cc);}['_getPreviousFrom'](_0x4491e5){const _0x30bda8=Array['from'](this['_savedMetaData']['keys']());_0x30bda8['sort']((_0x57e8f6,_0x257038)=>_0x57e8f6-_0x257038),_0x30bda8['reverse']();for(const _0x1affe4 of _0x30bda8)if(_0x1affe4<_0x4491e5)return _0x1affe4;return Number['NEGATIVE_INFINITY'];}['_copyMarkers'](_0x296963,_0x1f53b3){const _0x380893=Array['from'](_0x1f53b3['markers'])['map'](([_0x13f8db,_0x501277])=>[_0x13f8db,this['_fixRange'](_0x501277,_0x296963)]);_0x296963['markers']=new Map(_0x380893);}['_transformMarkers'](_0x46d0d9){for(const _0x588729 of this['_markers']['values']()){const _0x4c48c8=_0x588729['getTransformedByOperation'](_0x46d0d9),_0x260568=vt['_createFromRanges'](_0x4c48c8);_0x588729['start']=_0x260568['start'],_0x588729['end']=_0x260568['end'];}}['_handleOperation'](_0x17572c,_0x16b6d6){if('addRoot'!=_0x17572c['type']&&'detachRoot'!=_0x17572c['type']){if('insert'==_0x17572c['type']){const _0x5959a0=_0x17572c['position']['root']['rootName'];this['_diffRoots']['has'](_0x5959a0)||(this['_diffRoots']['set'](_0x5959a0,B(_0x5959a0,!0x0)),this['_diffRootsAttributes']['set'](_0x5959a0,{}),_0x16b6d6&&this['_idsRoots']['set'](_0x5959a0,B(_0x5959a0,!0x0)));}else{if('addRootAttribute'==_0x17572c['type']||'removeRootAttribute'==_0x17572c['type']||'changeRootAttribute'==_0x17572c['type'])return void this['_handleRootAttributeOperation'](_0x17572c);'marker'==_0x17572c['type']&&this['_handleMarkerOperation'](_0x17572c);}if('marker'!==_0x17572c['type']){const _0x3258fd=this['_cloneOperation'](_0x17572c,this['_diffRoots']);_0x3258fd['_execute'](),this['_transformMarkers'](_0x3258fd);}if(_0x16b6d6)switch(_0x17572c['type']){case'insert':this['_handleInsertOperation'](_0x17572c);break;case'move':case'remove':case'reinsert':this['_handleMoveOperation'](_0x17572c);break;case'merge':this['_handleMergeOperation'](_0x17572c);break;case'split':this['_handleSplitOperation'](_0x17572c);}}else this['_handleRootOperation'](_0x17572c,_0x16b6d6);}['_cloneOperation'](_0x346ecb,_0xc6241f){const _0x110bf7=_0x346ecb['clone']();return _0x110bf7['_authorId']=_0x346ecb['_authorId'],this['_fixOperation'](_0x110bf7,_0xc6241f),_0x110bf7;}['_getBaseVids'](_0x5f4b2c){return _0x5f4b2c['map'](_0x5a2e0e=>{const _0x9378e5=this['_getVidAttributeName'](_0x5a2e0e);return Number(_0x5a2e0e['item']['getAttribute'](_0x9378e5));});}['_generateTape'](_0x3769c9,_0x2d33de){if(_0x3769c9['is']('element','$text'))_0x2d33de['push']({'item':_0x3769c9,'type':'text'});else{_0x3769c9['is']('element')&&_0x2d33de['push']({'item':_0x3769c9,'type':'elementStart'});for(const _0x57cbe5 of _0x3769c9['getChildren']())this['_generateTape'](_0x57cbe5,_0x2d33de);_0x3769c9['is']('element')&&_0x2d33de['push']({'item':_0x3769c9,'type':'elementEnd'});}return _0x2d33de;}['_getState'](){const _0xcd58b6=new Map(this['_touched']),_0xb0a878=new Map(_0xcd58b6),_0x3c565c=new Map(),_0x264c46={'insertions':{},'deletions':{}},_0x6535b0={'insertions':{},'deletions':{}},_0x5cc5d9=new Map(),_0x47295a=new Set([...this['_baseRoots']['keys'](),...this['_diffRoots']['keys']()]);_0x47295a['delete']('$graveyard');for(const _0x3122b1 of _0x47295a){const _0x5e1f1f=this['_diffRoots']['get'](_0x3122b1)||B(_0x3122b1,!0x1),_0x1b2a9f=this['_baseRoots']['get'](_0x3122b1)||B(_0x3122b1,!0x1);_0x5e1f1f['isAttached']()||_0x1b2a9f['isAttached']()?(_0x264c46['insertions'][_0x3122b1]=F(_0x5e1f1f),_0x264c46['deletions'][_0x3122b1]=F(_0x1b2a9f),this['_copyMarkers'](_0x264c46['deletions'][_0x3122b1],_0x1b2a9f),this['_copyMarkers'](_0x264c46['insertions'][_0x3122b1],_0x5e1f1f),_0x6535b0['insertions'][_0x3122b1]=this['_generateTape'](this['_idsRoots']['get'](_0x3122b1),[]),_0x6535b0['deletions'][_0x3122b1]=this['_generateTape'](this['_baseIdsRoots']['get'](_0x3122b1)||B(_0x3122b1,!0x1),[])):_0x47295a['delete'](_0x3122b1);}for(const _0x10e1d4 of _0x47295a){const _0x50a091=_0x6535b0['insertions'][_0x10e1d4];for(const _0x11a144 of _0x50a091){const _0x1ab7a5=this['_getVidAttributeName'](_0x11a144),_0x76472b=_0x11a144['item']['getAttribute'](_0x1ab7a5);_0xb0a878['delete'](_0x76472b),_0x76472b>=this['_startingRevisionId']&&_0x3c565c['set'](_0x76472b,_0xcd58b6['get'](_0x76472b));}}for(const _0xac2850 of _0x47295a){const _0x31089e=_0x6535b0['insertions'][_0xac2850],_0xa8a6b8=this['_getBaseVids'](_0x6535b0['deletions'][_0xac2850]);let _0x2ac72b=0x0;for(const _0x3fedfc of _0x31089e){const _0x2dc8e3=this['_getVidAttributeName'](_0x3fedfc),_0x179a25=_0x3fedfc['item']['getAttribute'](_0x2dc8e3);if(!_0x3c565c['has'](_0x179a25)&&!_0x5cc5d9['has'](_0x179a25)){if(_0xb0a878['has'](_0x179a25))_0x2ac72b++;else{if(_0x179a25!=_0xa8a6b8[_0x2ac72b]){const _0x3f96b9=_0xcd58b6['get'](_0x179a25)||_0xcd58b6['get'](_0xa8a6b8[_0x2ac72b]);for(;_0x179a25!=_0xa8a6b8[_0x2ac72b];)_0xb0a878['has'](_0xa8a6b8[_0x2ac72b])||(_0x5cc5d9['set'](_0xa8a6b8[_0x2ac72b],_0x3f96b9),_0xcd58b6['set'](_0xa8a6b8[_0x2ac72b],_0x3f96b9)),_0x2ac72b++;}_0x2ac72b++;}}}}for(const _0x5117c7 of _0x47295a){const _0x4ac11e=_0x6535b0['insertions'][_0x5117c7];for(const _0x3f8b75 of _0x4ac11e){const _0x300030=this['_getVidAttributeName'](_0x3f8b75),_0x485605=_0x3f8b75['item']['getAttribute'](_0x300030);if(_0x5cc5d9['has'](_0x485605)){const _0x54c824=_0x5cc5d9['get'](_0x485605);_0xb0a878['has'](_0x485605)||_0xb0a878['set'](_0x485605,{..._0x54c824}),_0x3c565c['set'](_0x485605,{..._0x54c824});}}}for(const _0xdd6fe7 of _0xb0a878['keys']())_0xdd6fe7>=this['_startingRevisionId']&&_0xb0a878['delete'](_0xdd6fe7);const _0x1dc92c=new Map();for(const _0x586cf9 of _0x47295a){let _0x11dcb3=_0x6535b0['insertions'][_0x586cf9];for(const _0x211d7a of _0x11dcb3)if(_0x211d7a['item']['is']('element','tableCell')){const _0x26b221=this['_getVidAttributeName'](_0x211d7a),_0x3bdfe5=_0x211d7a['item']['getAttribute'](_0x26b221);if(_0x3c565c['has'](_0x3bdfe5)){const _0x1f2e5b=_0x211d7a['item']['parent']['parent']['getAttribute']('vid_start'),_0x17b426=_0x1dc92c['get'](_0x1f2e5b)||new Set();_0x17b426['add'](_0x3c565c['get'](_0x3bdfe5)['userId']),_0x1dc92c['set'](_0x1f2e5b,_0x17b426);}}_0x11dcb3=_0x6535b0['deletions'][_0x586cf9];for(const _0x5e57bf of _0x11dcb3)if(_0x5e57bf['item']['is']('element','tableCell')){const _0x56f137=this['_getVidAttributeName'](_0x5e57bf),_0x28b5b7=_0x5e57bf['item']['getAttribute'](_0x56f137);if(_0xb0a878['has'](_0x28b5b7)){const _0x424e6b=_0x5e57bf['item']['parent']['parent']['getAttribute']('vid_start'),_0x170ae3=_0x1dc92c['get'](_0x424e6b)||new Set();_0x170ae3['add'](_0xb0a878['get'](_0x28b5b7)['userId']),_0x1dc92c['set'](_0x424e6b,_0x170ae3);}}for(const _0x52bd55 of _0x1dc92c['keys']())(_0x3c565c['has'](_0x52bd55)||_0xb0a878['has'](_0x52bd55))&&_0x1dc92c['delete'](_0x52bd55);}for(const _0x4351e0 of _0x47295a){const _0x162b01=_0x6535b0['insertions'][_0x4351e0];let _0x404227=null,_0x332ea5=null;for(const _0x19ec9f of _0x162b01){const _0x22036d=this['_getVidAttributeName'](_0x19ec9f),_0x37f105=_0x19ec9f['item']['getAttribute'](_0x22036d),_0x11e6ff=_0x1dc92c['get'](_0x37f105);_0x11e6ff&&'elementStart'==_0x19ec9f['type']&&(_0x404227=Array['from'](_0x11e6ff)[0x0],_0x332ea5=_0x19ec9f['item']['getAttribute']('vid_end')),_0x404227&&(_0xb0a878['set'](_0x37f105,{'userId':_0x404227}),_0x3c565c['set'](_0x37f105,{'userId':_0x404227})),_0x37f105==_0x332ea5&&(_0x404227=null,_0x332ea5=null);}}const _0x2c4590={},_0xb0abda=new Set();for(const _0x1d44f9 of _0x47295a){const _0x56be28=_0x264c46['deletions'][_0x1d44f9],_0x493077=_0x264c46['insertions'][_0x1d44f9];for(const {userId:_0x270d7d}of this['_touchedMarkers']['values']())null!==_0x270d7d&&_0xb0abda['add'](_0x270d7d);for(const {userId:_0x3e8a07}of this['_touchedRoots']['values']())null!==_0x3e8a07&&_0xb0abda['add'](_0x3e8a07);this['_markChanges'](_0x493077,_0x6535b0['insertions'][_0x1d44f9],_0x3c565c,'insertion',_0xb0abda),this['_markChanges'](_0x56be28,_0x6535b0['deletions'][_0x1d44f9],_0xb0a878,'deletion',_0xb0abda),_0x2c4590[_0x1d44f9]={'insertions':this['_prepareViewToSave'](_0x493077),'deletions':this['_prepareViewToSave'](_0x56be28),'attachChange':this['_touchedRoots']['get'](_0x1d44f9)||null,'attributesBefore':_0x1e5b1d(this['_baseRootsAttributes']['get'](_0x1d44f9))||{},'attributesAfter':_0x1e5b1d(this['_diffRootsAttributes']['get'](_0x1d44f9))};}return{'diffData':_0x2c4590,'authorsIds':Array['from'](_0xb0abda)};}['_processRootBeforeSave'](_0x33ec70){for(const [,_0x302931]of _0x33ec70['markers']){const _0x5813ec=_0x302931['start']['getAncestors']()['filter'](_0x515a64=>'tableCell'==_0x515a64['name']);for(const _0x3be619 of _0x5813ec)0x1==_0x3be619['childCount']&&_0x3be619['getChild'](0x0)['is']('element','paragraph')&&_0x3be619['getChild'](0x0)['_setAttribute']('keepParagraph',!0x0);}}['_prepareViewToSave'](_0x28e3aa){this['_processRootBeforeSave'](_0x28e3aa);const _0x279a2e=this['editor']['data']['toView'](_0x28e3aa,{}),_0x393310=Array['from'](_0x279a2e['getChildren']())['map'](_0x41885f=>this['_getViewJson'](_0x41885f));return JSON['stringify'](_0x393310);}['_getViewJson'](_0x2d22bf){if(_0x2d22bf['is']('$text'))return _0x2d22bf['data'];{const _0x346964=_0x2d22bf;return{'type':Object['keys'](C)['find'](_0x228122=>_0x2d22bf instanceof C[_0x228122]),'name':_0x346964['name'],'attributes':Array['from'](_0x346964['getAttributes']()),'children':Array['from'](_0x346964['getChildren']())['map'](_0x25b822=>this['_getViewJson'](_0x25b822))};}}['_markChanges'](_0xdee7ef,_0x139249,_0x2cd1f4,_0x55eb38,_0x5acdb4){let _0x3cd6df=null,_0x2e3e7a=null,_0x11bfcc=0x0;const _0x429962=this['editor']['model'];for(let _0x5e388b=0x0;_0x5e388b<_0x139249['length'];_0x5e388b++){const _0x5bddcd=this['_getVidAttributeName'](_0x139249[_0x5e388b]),_0x427819=_0x139249[_0x5e388b]['item']['getAttribute'](_0x5bddcd),_0x4ae9ab=_0x2cd1f4['get'](_0x427819),_0x1657c7=_0x5e388b==_0x139249['length']-0x1;(!_0x3cd6df&&_0x4ae9ab&&(_0x3cd6df=_0x4ae9ab,_0x2e3e7a=_0x139249[_0x5e388b]),_0x3cd6df&&(!_0x4ae9ab||_0x4ae9ab['userId']!=_0x3cd6df['userId']))&&(_0x590a50(_0x4ae9ab,J(_0x2e3e7a,_0xdee7ef,_0x429962),J(_0x139249[_0x5e388b],_0xdee7ef,_0x429962)),_0x3cd6df=_0x4ae9ab||null,_0x2e3e7a=_0x4ae9ab?_0x139249[_0x5e388b]:null),_0x3cd6df&&_0x1657c7&&_0x590a50(_0x4ae9ab,J(_0x2e3e7a,_0xdee7ef,_0x429962),q(_0x139249[_0x5e388b],_0xdee7ef,_0x429962));}function _0x590a50(_0x45867b,_0x55ca10,_0x52c513){const _0x5e98a7=_0x3cd6df['userId'],_0x35a1e1='revision:'+_0x55eb38+':'+_0x5e98a7+':'+_0x11bfcc++,_0x45adda=_0x429962['createRange'](_0x55ca10,_0x52c513);_0xdee7ef['markers']['set'](_0x35a1e1,_0x45adda),null!==_0x5e98a7&&_0x5acdb4['add'](_0x5e98a7);}}['_getVidAttributeName'](_0x17d4cc){switch(_0x17d4cc['type']){case'elementStart':return'vid_start';case'elementEnd':return'vid_end';default:return'vid';}}['_fixOperation'](_0x2e23fe,_0x5f1a2a){_0x2e23fe['baseVersion']=null;for(const _0x2ad9f in _0x2e23fe){const _0x10b35f=_0x2e23fe[_0x2ad9f];if(_0x10b35f instanceof gt){const _0x7ed8bc=_0x5f1a2a['get'](_0x10b35f['root']['rootName']);_0x2e23fe[_0x2ad9f]=this['_fixPosition'](_0x10b35f,_0x7ed8bc);}if(_0x10b35f instanceof vt){const _0x468da2=_0x5f1a2a['get'](_0x10b35f['root']['rootName']);_0x2e23fe[_0x2ad9f]=this['_fixRange'](_0x10b35f,_0x468da2);}'root'===_0x2ad9f&&(_0x2e23fe['root']=_0x5f1a2a['get'](_0x2e23fe['root']['rootName']));}}['_fixRange'](_0x30256b,_0x2aefc1){return this['editor']['model']['createRange'](this['_fixPosition'](_0x30256b['start'],_0x2aefc1),this['_fixPosition'](_0x30256b['end'],_0x2aefc1));}['_fixPosition'](_0x29348c,_0x250a38){return this['editor']['model']['createPositionFromPath'](_0x250a38,_0x29348c['path'],_0x29348c['stickiness']);}['_handleInsertOperation'](_0x590894){const _0x3ab3f6=this['_idsRoots']['get'](_0x590894['position']['root']['rootName']),_0x1df2ec=this['_fixPosition'](_0x590894['position'],_0x3ab3f6),_0xb90599=null===_0x590894['_authorId']?null:_0x590894['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x137c56=_0x1df2ec['parent'],_0xb57ccd=this['_revisionId'],_0x588df6=[];for(const _0x5844e4 of _0x590894['nodes'])if(_0x5844e4['is']('element'))_0x588df6['push'](this['_makeIdsRoot'](_0x5844e4));else{for(let _0x2d43b9=0x0;_0x2d43b9<_0x5844e4['offsetSize'];_0x2d43b9++)_0x588df6['push'](new ft('$text',{'vid':this['_revisionId']++}));}const _0x18bacc=this['_revisionId'];for(let _0x2e37de=_0xb57ccd;_0x2e37de<_0x18bacc;_0x2e37de++)this['_touched']['set'](_0x2e37de,{'userId':_0xb90599});_0x137c56['_insertChild'](_0x1df2ec['offset'],_0x588df6);}['_handleMoveOperation'](_0x5af886){(_0x5af886=this['_cloneOperation'](_0x5af886,this['_idsRoots']))['_execute']();const _0x37e9bf=null===_0x5af886['_authorId']?null:_0x5af886['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x3d76e4=_0x5af886['getMovedRangeStart'](),_0x855f6f=_0x3d76e4['parent'],_0x10dd1b=_0x3d76e4['offset'];!function _0x2b0d32(_0x21d1e2,_0x228434,_0x57a795,_0x33756d){for(let _0x44e567=_0x57a795;_0x44e567<_0x33756d;_0x44e567++){const _0x2e414e=_0x228434['getChild'](_0x44e567);_0x2e414e['is']('element','$text')?_0x21d1e2['set'](_0x2e414e['getAttribute']('vid'),{'userId':_0x37e9bf}):(_0x21d1e2['set'](_0x2e414e['getAttribute']('vid_start'),{'userId':_0x37e9bf}),_0x2b0d32(_0x21d1e2,_0x2e414e,0x0,_0x2e414e['childCount']),_0x21d1e2['set'](_0x2e414e['getAttribute']('vid_end'),{'userId':_0x37e9bf}));}}(this['_touched'],_0x855f6f,_0x10dd1b,_0x10dd1b+_0x5af886['howMany']);}['_handleMergeOperation'](_0x2e8761){const _0x4fd870=null===(_0x2e8761=this['_cloneOperation'](_0x2e8761,this['_idsRoots']))['_authorId']?null:_0x2e8761['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x44fc30=_0x2e8761['targetPosition']['parent'],_0x1fb109=_0x2e8761['sourcePosition']['parent'],_0x3d0240=_0x44fc30['getAttribute']('vid_end'),_0x3799d1=_0x1fb109['getAttribute']('vid_start');_0x44fc30['_setAttribute']('vid_end',_0x1fb109['getAttribute']('vid_end')),_0x1fb109['_setAttribute']('vid_end',_0x3d0240),this['_touched']['set'](_0x3799d1,{'userId':_0x4fd870}),this['_touched']['set'](_0x3d0240,{'userId':_0x4fd870}),_0x2e8761['_execute']();}['_handleSplitOperation'](_0x642a8){const _0x3f9cbb=null===(_0x642a8=this['_cloneOperation'](_0x642a8,this['_idsRoots']))['_authorId']?null:_0x642a8['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x2c4c2a=_0x642a8['graveyardPosition'],_0x1dabcf=_0x642a8['splitPosition']['parent'];_0x642a8['_execute']();const _0x1cba19=_0x1dabcf['getAttribute']('vid_end'),_0x4ac469=_0x642a8['insertionPosition']['nodeAfter'];if(_0x2c4c2a){const _0x4f4b48=_0x4ac469['getAttribute']('vid_end'),_0x4b9079=_0x1dabcf['getAttribute']('vid_end');_0x1dabcf['_setAttribute']('vid_end',_0x4f4b48),_0x4ac469['_setAttribute']('vid_end',_0x4b9079),this['_touched']['set'](_0x1dabcf['getAttribute']('vid_end'),{'userId':_0x3f9cbb}),this['_touched']['set'](_0x4ac469['getAttribute']('vid_start'),{'userId':_0x3f9cbb});}else{const _0x2cabd4=this['_revisionId']++,_0xb7595d=this['_revisionId']++;_0x1dabcf['_setAttribute']('vid_end',_0x2cabd4),_0x4ac469['_setAttribute']('vid_start',_0xb7595d),_0x4ac469['_setAttribute']('vid_end',_0x1cba19),this['_touched']['set'](_0x2cabd4,{'userId':_0x3f9cbb}),this['_touched']['set'](_0xb7595d,{'userId':_0x3f9cbb});}}['_handleMarkerOperation'](_0x5a1fbb){if(!_0x5a1fbb['affectsData'])return;const _0x1bf2a5=(_0x5a1fbb=this['_cloneOperation'](_0x5a1fbb,this['_diffRoots']))['oldRange']?_0x5a1fbb['oldRange']['root']:null,_0x766398=_0x5a1fbb['newRange']?_0x5a1fbb['newRange']['root']:null;_0x1bf2a5&&this['_markers']['delete'](_0x5a1fbb['name']),_0x766398&&this['_markers']['set'](_0x5a1fbb['name'],_0x5a1fbb['newRange']['clone']());const _0x50797b=null===_0x5a1fbb['_authorId']?null:_0x5a1fbb['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x58074a=_0x5a1fbb['name'];if(!this['_touchedMarkers']['has'](_0x58074a))return void this['_touchedMarkers']['set'](_0x58074a,{'range':_0x5a1fbb['oldRange'],'userId':_0x50797b});const _0x532e2a=this['_touchedMarkers']['get'](_0x58074a),_0x47d055=_0x532e2a['range'],_0x5e5f27=_0x5a1fbb['newRange'];null==_0x47d055&&null==_0x5e5f27||_0x47d055&&_0x5e5f27&&_0x47d055['isEqual'](_0x5e5f27)?this['_touchedMarkers']['delete'](_0x5a1fbb['name']):_0x532e2a['userId']=_0x50797b;}['_handleRootOperation'](_0x2f7fa8,_0x50216c){this['_diffRoots']['has'](_0x2f7fa8['rootName'])?this['_diffRoots']['get'](_0x2f7fa8['rootName'])['_isAttached']=_0x2f7fa8['isAdd']:(this['_diffRoots']['set'](_0x2f7fa8['rootName'],B(_0x2f7fa8['rootName'],!0x0)),this['_diffRootsAttributes']['set'](_0x2f7fa8['rootName'],{}),_0x50216c&&this['_idsRoots']['set'](_0x2f7fa8['rootName'],B(_0x2f7fa8['rootName'],!0x0)));const _0x5af4c7=null===_0x2f7fa8['_authorId']?null:_0x2f7fa8['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x4b1a74=this['_touchedRoots']['get'](_0x2f7fa8['rootName']);_0x4b1a74&&_0x4b1a74['userId']===_0x5af4c7?this['_touchedRoots']['delete'](_0x2f7fa8['rootName']):this['_touchedRoots']['set'](_0x2f7fa8['rootName'],{'userId':_0x5af4c7,'isAttached':_0x2f7fa8['isAdd']});}['_handleRootAttributeOperation'](_0x12df4a){const _0x2f0f03=this['_diffRootsAttributes']['get'](_0x12df4a['root']['rootName']);null===_0x12df4a['newValue']?delete _0x2f0f03[_0x12df4a['key']]:_0x2f0f03[_0x12df4a['key']]=_0x12df4a['newValue'];}}function F(_0x1a6f2d){const _0x4d3103=B(_0x1a6f2d['rootName'],_0x1a6f2d['isAttached']());for(const _0x991912 of _0x1a6f2d['getChildren']()){const _0x229273=_0x991912['_clone'](!0x0);_0x4d3103['_appendChild'](_0x229273);}return _0x4d3103;}function B(_0x3f76fb,_0x262215=!0x0){const _0x13376c=new wt();return _0x13376c['rootName']=_0x3f76fb,_0x13376c['_isAttached']=_0x262215,_0x13376c['isAttached']=()=>_0x13376c['_isAttached'],_0x13376c;}function J(_0x3eda40,_0x14ee1b,_0x512cba){const _0x212839='elementEnd'==_0x3eda40['type']?_0x512cba['createPositionAt'](_0x3eda40['item'],'end'):_0x512cba['createPositionBefore'](_0x3eda40['item']);return _0x512cba['createPositionFromPath'](_0x14ee1b,_0x212839['path'],_0x212839['stickiness']);}function q(_0x361017,_0x1b8d0e,_0x209e39){const _0x5110b9='elementStart'==_0x361017['type']?_0x209e39['createPositionAt'](_0x361017['item'],0x0):_0x209e39['createPositionAfter'](_0x361017['item']);return _0x209e39['createPositionFromPath'](_0x1b8d0e,_0x5110b9['path'],_0x5110b9['stickiness']);}class ns extends _0x247511{['focusTracker'];['keystrokes'];['revisionNameInputView'];constructor(_0x22cb04,_0x15bf2f){super(_0x22cb04),this['focusTracker']=new _0x27dbec(),this['keystrokes']=new _0x3e3de7(),this['set']('revisionNameInputValue',''),this['revisionNameInputView']=this['_createRevisionNameInput'](_0x15bf2f),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'](),_0x2927f5({'view':this}),this['focusTracker']['add'](this['revisionNameInputView']['element']),this['keystrokes']['listenTo'](this['element']);const _0x138081=_0x56d289=>_0x56d289['stopPropagation']();this['keystrokes']['set']('arrowright',_0x138081),this['keystrokes']['set']('arrowleft',_0x138081),this['keystrokes']['set']('arrowup',_0x138081),this['keystrokes']['set']('arrowdown',_0x138081);}['focus'](){this['revisionNameInputView']['focus']();}get['revisionName'](){return this['revisionNameInputView']['fieldView']['element']['value']['trim']();}set['revisionName'](_0x15efda){this['revisionNameInputView']['fieldView']['element']['value']=_0x15efda['trim']();}['reset'](){this['revisionNameInputView']['fieldView']['element']['value']='',this['revisionNameInputView']['errorText']=null;}['_createRevisionNameInput'](_0x6c8606){const _0x2cbc0b=new at(this['locale'],_0x377b24),_0x1a843f=_0x2cbc0b['fieldView'];_0x1a843f['extendTemplate']({'attributes':{'maxlength':'220'}});let _0xe01c97=R(this['locale'],'Name\x20of\x20the\x20revision');return!_0x6c8606&&(_0xe01c97+='\x20('+R(this['locale'],'optional')+')'),(_0x2cbc0b['label']=_0xe01c97,_0x1a843f['on']('input',()=>{this['revisionNameInputValue']=_0x1a843f['element']['value']['trim']();}),_0x2cbc0b);}}class u extends _0x49d2b7{static get['pluginName'](){return'RevisionHistoryUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[l];}['_saveRevisionFormView'];['init'](){const _0x3556d2=this['editor'],_0x4ff23d=_0x3556d2['plugins']['get']('RevisionTracker');_0x3556d2['ui']['componentFactory']['add']('revisionHistory',_0x451329=>{const _0x1ce50e=_0x2d6127(_0x451329),_0x347d4d=_0x1ce50e['panelView']['children'],_0x21b59d=new te(_0x451329),_0xf6abf4=new _0x195f8a(_0x451329),_0x5ca3a2=new _0x5d3462(_0x451329),_0x39c66d=new _0x195f8a(_0x451329),_0x4ebf73=new _0x5d3462(_0x451329);return _0x1ce50e['bind']('isEnabled')['to'](_0x4ff23d,'isReady',_0x4ff23d,'isEnabled',_0x3556d2,'isReadOnly',(_0x3825b2,_0x1e47b7,_0x5da564)=>_0x3825b2&&_0x1e47b7&&!_0x5da564),_0x1ce50e['buttonView']['set']({'icon':_0x416426['history'],'label':R(_0x451329,'Revision\x20history'),'tooltip':!0x0}),_0x5ca3a2['set']({'label':R(_0x451329,'Save\x20current\x20revision'),'withText':!0x0,'role':'menuitem'}),_0x5ca3a2['bind']('isEnabled')['to'](_0x4ff23d,'isReady',_0x4ff23d,'isEnabled',_0x3556d2,'isReadOnly',(_0xd3b6ff,_0x3a1a20,_0x52c820)=>_0xd3b6ff&&_0x3a1a20&&!_0x52c820),_0x5ca3a2['on']('execute',()=>this['_showDialog']()),_0x4ebf73['set']({'label':R(_0x451329,'Open\x20revision\x20history'),'withText':!0x0,'role':'menuitem'}),_0x4ebf73['bind']('isEnabled')['to'](_0x4ff23d,'isReady',_0x3556d2,'isReadOnly',(_0x2fb319,_0x2fbd47)=>_0x2fb319&&!_0x2fbd47),_0x4ebf73['on']('execute',()=>{_0x3556d2['config']['get']('revisionHistory')['showRevisionViewerCallback'](),_0x1ce50e['isOpen']=!0x1,_0x3556d2['editing']['view']['focus']();}),_0xf6abf4['children']['add'](_0x5ca3a2),_0x39c66d['children']['add'](_0x4ebf73),_0x21b59d['role']='menu',_0x21b59d['items']['addMany']([_0xf6abf4,_0x39c66d]),_0x347d4d['add'](_0x21b59d),_0x1ce50e;}),_0x3556d2['ui']['componentFactory']['add']('menuBar:revisionHistory',()=>this['_registerMenuComponent']());}['_registerMenuComponent'](){const _0x337c67=this['editor'],_0x2a27a9=_0x337c67['locale'],_0x33a0ab=new _0x52c7ee(_0x2a27a9),_0x4dfb84=new _0xa7889d(_0x2a27a9);_0x33a0ab['buttonView']['set']({'icon':_0x416426['history'],'label':R(_0x2a27a9,'Revision\x20history')});const _0x27152d=new _0x5b7207(_0x2a27a9,_0x33a0ab),_0x322aed=new _0x2b58d3(_0x2a27a9);_0x322aed['set']({'label':R(_0x2a27a9,'Save\x20current\x20revision')}),_0x322aed['delegate']('execute')['to'](_0x33a0ab),_0x322aed['on']('execute',()=>{this['_showDialog']();}),_0x27152d['children']['add'](_0x322aed),_0x4dfb84['items']['add'](_0x27152d);const _0x295666=new _0x5b7207(_0x2a27a9,_0x33a0ab),_0x4fd2ef=new _0x2b58d3(_0x2a27a9);return _0x4fd2ef['set']({'label':R(_0x2a27a9,'Open\x20revision\x20history')}),_0x4fd2ef['delegate']('execute')['to'](_0x33a0ab),_0x4fd2ef['on']('execute',()=>{_0x337c67['config']['get']('revisionHistory')['showRevisionViewerCallback']();}),_0x295666['children']['add'](_0x4fd2ef),_0x4dfb84['items']['add'](_0x295666),_0x33a0ab['panelView']['children']['add'](_0x4dfb84),_0x33a0ab;}['_showDialog'](){const _0x43fed3=this['editor'],_0x1ff4d5=_0x43fed3['locale'],_0x49d1f5=_0x43fed3['plugins']['get']('Dialog'),_0x5a668d=_0x43fed3['plugins']['get']('RevisionTracker');function _0x1a1984(_0x594922){_0x43fed3['config']['get']('revisionHistory.requireRevisionName')&&''===_0x594922['revisionName']?_0x594922['revisionNameInputView']['errorText']=R(_0x1ff4d5,'The\x20revision\x20name\x20cannot\x20be\x20empty.'):(_0x43fed3['plugins']['get'](l)['saveRevision']({'name':_0x594922['revisionName']}),_0x49d1f5['hide']());}this['_saveRevisionFormView']||(this['_createSaveRevisionFormView'](),this['_saveRevisionFormView']['on']('submit',()=>_0x1a1984(this['_saveRevisionFormView']))),this['_saveRevisionFormView']['reset'](),_0x49d1f5['show']({'id':'revisionSave','title':R(_0x1ff4d5,'Save\x20current\x20revision'),'isModal':!0x0,'content':this['_saveRevisionFormView'],'actionButtons':[{'label':R(_0x43fed3['locale'],'Cancel'),'withText':!0x0,'onExecute':()=>_0x49d1f5['hide']()},{'label':R(_0x43fed3['locale'],'Accept'),'class':'ck-button-action','withText':!0x0,'onCreate'(_0x4c1db1){_0x4c1db1['bind']('isEnabled')['to'](_0x5a668d,'isReady',_0x5a668d,'isEnabled',_0x43fed3,'isReadOnly',(_0x27494c,_0x1321bb,_0xab7fe1)=>_0x27494c&&_0x1321bb&&!_0xab7fe1);},'onExecute':()=>_0x1a1984(this['_saveRevisionFormView'])}]});}['_createSaveRevisionFormView'](){const _0x50c321=this['editor'],_0x1fa603=_0x50c321['locale'];this['_saveRevisionFormView']=new ns(_0x1fa603,_0x50c321['config']['get']('revisionHistory.requireRevisionName')),this['_saveRevisionFormView']['render']();}}class Y extends _0x247511{['changeId'];['_model'];constructor(_0xd44503,_0x2ec58c){super(_0xd44503),this['_model']=_0x2ec58c,this['changeId']=_0x2ec58c['id'];const _0x5b33cf=this['bindTemplate'],_0xf14099=R(_0xd44503,_0x2ec58c['data']['isSuggestion']?'Suggested\x20by':'add'==_0x2ec58c['type']?'Added\x20by':'Removed\x20by');this['set']('type',_0x2ec58c['type']),this['setTemplate']({'tag':'div','attributes':{'class':['ck-annotation','ck-revision-change',_0x5b33cf['to']('type',_0x85e654=>'ck-revision-change__'+_0x85e654)],'tabindex':-0x1},'children':[{'tag':'span','children':[{'tag':'span','attributes':{'class':['ck-revision-change__label']},'children':[{'text':_0xf14099}]},{'text':'\x20'+_0x2ec58c['author']['name']}]}]});}['focus'](){this['element']['focus']();}}class r extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0x6143df(){['id'];['author'];['type'];['data'];['rootName'];constructor(_0x51b46f){super(),this['id']=_0x51b46f['id']||_0x46a5fd(),this['author']=_0x51b46f['author'],this['type']=_0x51b46f['type'],this['data']=_0x51b46f['data']||{},this['rootName']=_0x51b46f['rootName'],this['set']('createdAt',_0x51b46f['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(_0x19475d,_0x3f5fc5){this['newRevisionId']=_0x19475d,this['oldRevisionId']=_0x3f5fc5,this['changes']=new _0xa5d0e5();}['_setChanges'](_0x855c91){for(const _0xd25019 of _0x855c91)this['changes']['add'](_0xd25019);}}const Z={'c':_0x414040,'a':_0x2574bf,'e':_0x49bd08,'r':_0x36f6a8,'u':_0x46e88b};class d extends _0x49d2b7{['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[_0x37b19d,_0x1cc7c3,j];}constructor(_0x57d5be){super(_0x57d5be),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',(_0x4fc052,_0x5bd33a,_0x9e65b2)=>{this['activeChange']=null,this['activeView']=null,this['editor']['editing']['view']['change'](_0x5e2926=>{for(const _0x4b6b21 of this['editor']['editing']['view']['document']['roots'])_0x9e65b2?_0x5e2926['removeClass']('ck-editor__editable__overlay',_0x4b6b21):_0x5e2926['addClass']('ck-editor__editable__overlay',_0x4b6b21);});}),this['bind']('isNavigationMode')['to'](this,'activeChange',_0x4ee014=>null!==_0x4ee014),this['bind']('currentChangeNumber')['to'](this,'isReady',this,'diff',this,'activeChange',(_0xe329b6,_0x3c7aca,_0x1e6fbd)=>_0xe329b6&&_0x1e6fbd?_0x3c7aca['changes']['getIndex'](_0x1e6fbd):0x0),this['bind']('numberOfChanges')['to'](this,'isReady',this,'diff',(_0x3a7a5d,_0x7d80d8)=>_0x3a7a5d?_0x7d80d8['changes']['length']:0x0),this['_changeView']=null,this['_changeIdToChange']=new Map(),this['adapter']=null,this['_balloon']=this['editor']['plugins']['get'](_0x1cc7c3);}['init'](){const _0x39c74e=this['editor'],_0x5ac786=new bt(_0x39c74e,{'direction':'backward'}),_0x46a6a4=new bt(_0x39c74e,{'direction':'forward'});(_0x39c74e['commands']['add']('showPreviousChange',_0x5ac786),_0x39c74e['commands']['add']('showNextChange',_0x46a6a4),_0x39c74e['commands']['add']('restoreRevision',new yt(_0x39c74e)),this['on']('change:numberOfChanges',()=>{_0x5ac786['refresh'](),_0x46a6a4['refresh']();}),this['_setConversion'](),this['_initInteractions'](),_0x39c74e['enableReadOnlyMode']('revision-viewer'),_0x39c74e['plugins']['has']('WidgetToolbarRepository'))&&_0x39c74e['plugins']['get']('WidgetToolbarRepository')['forceDisabled']('revision-viewer');}async['getRevisionData'](_0x53a3c6){await this['loadRevisionData'](_0x53a3c6);const _0x2a80ef={};for(const _0x2fcf3a in _0x53a3c6['diffData']){if(_0x53a3c6['diffData'][_0x2fcf3a]['attachChange']&&!_0x53a3c6['diffData'][_0x2fcf3a]['attachChange']['isAttached'])continue;const _0x2b784d=this['_removeRevisionMarkers'](JSON['parse'](_0x53a3c6['diffData'][_0x2fcf3a]['insertions'])),_0x1cf0ad=this['editor']['editing']['view']['document'],_0x1b8648=new _0x247d60(_0x1cf0ad,_0x2b784d['map'](_0x1fa309=>this['_getViewObj'](_0x1fa309)));this['editor']['data']['processor']['useFillerType']('marked'),_0x2a80ef[_0x2fcf3a]=this['editor']['data']['processor']['toData'](_0x1b8648),this['editor']['data']['processor']['useFillerType']('default');}return _0x2a80ef;}async['getRevisionRootsAttributes'](_0x5574fc){await this['loadRevisionData'](_0x5574fc);const _0x44a415={};for(const _0x4ce57a in _0x5574fc['diffData'])_0x5574fc['diffData'][_0x4ce57a]['attachChange']&&!_0x5574fc['diffData'][_0x4ce57a]['attachChange']['isAttached']||(_0x44a415[_0x4ce57a]=_0x5574fc['diffData'][_0x4ce57a]['attributesAfter']||{});return _0x44a415;}['_removeRevisionMarkers'](_0x3b7176){return(_0x3b7176=_0x3b7176['filter'](_0x4fbfca=>!_0x4fbfca['name']||'revision-start'!==_0x4fbfca['name']&&'revision-end'!==_0x4fbfca['name']))['forEach'](_0x435215=>{'string'!=typeof _0x435215&&(_0x435215['children']=this['_removeRevisionMarkers'](_0x435215['children']),_0x435215['attributes']=_0x435215['attributes']['filter'](_0xcdb50c=>!_0xcdb50c[0x0]['startsWith']('data-revision-')));}),_0x3b7176;}async['compare'](_0xcf4edc,_0x11c6b9,_0x1a6719=!0x1){if(!this['isEnabled'])return;const _0x4859af=this['diff'],_0x437d2e=this['repository'],_0x46994c='string'==typeof _0xcf4edc?_0x437d2e['getRevision'](_0xcf4edc):_0xcf4edc,_0x49e694='string'==typeof _0x11c6b9?_0x437d2e['getRevision'](_0x11c6b9):_0x11c6b9,_0x1f6fce=_0x46994c['id'],_0x3f743d=_0x49e694?_0x49e694['id']:null;if(!_0x1a6719&&this['diff']&&this['diff']['newRevisionId']===_0x1f6fce&&this['diff']['oldRevisionId']===_0x3f743d)return Promise['resolve']();this['isReady']=!0x1,this['activeView']=null,this['activeChange']=null,this['diff']=new f(_0x1f6fce,_0x3f743d);const _0x48af58=this['_getRevisionsRange'](_0x46994c,_0x49e694,!0x0)['map'](_0x539e86=>this['loadRevisionData'](_0x539e86));return _0x48af58['push'](new Promise(_0x337c65=>{setTimeout(_0x337c65,0x14);})),Promise['all'](_0x48af58)['then'](()=>{if(!this['isEnabled'])return;this['_cleanUp']();const _0x5483f7=this['_getDiff'](_0x1f6fce,_0x3f743d);for(const _0x4e4d0a of _0x5483f7['changes'])this['_changeIdToChange']['set'](_0x4e4d0a['id'],_0x4e4d0a);this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x150264=>{for(const _0x2fe2c7 of this['editor']['model']['document']['getRootNames']())_0x150264['detachRoot'](_0x2fe2c7);for(const _0x2924d1 of Object['keys'](_0x5483f7['model'])){const _0x3bc287=_0x150264['addRoot'](_0x2924d1);for(const _0x1c8463 of Object['keys'](_0x5483f7['attributes'][_0x2924d1]))_0x150264['setAttribute'](_0x1c8463,_0x5483f7['attributes'][_0x2924d1][_0x1c8463],_0x3bc287);_0x150264['insert'](_0x5483f7['model'][_0x2924d1],_0x3bc287,0x0);}}),this['diff']['_setChanges'](this['_sortAndFilterDiffChanges'](_0x5483f7['changes'])),this['isReady']=!0x0;})['catch'](_0x58c526=>{console['error'](_0x58c526),this['_cleanUp'](),_0x4859af&&(this['diff']=_0x4859af),this['isReady']=!0x0;});}['addRevisionData'](_0x1a752e,_0x4a1cb7){const _0x47957c=this['repository']['createRevision'](_0x1a752e);return _0x47957c['on']('_update',(_0x22161e,_0x82f36e,_0x1799f0)=>_0x4a1cb7(_0x82f36e,_0x1799f0,_0x47957c)),this['repository']['addRevision'](_0x47957c),_0x47957c;}['loadRevisionData'](_0x2281cd){if(!_0x2281cd||_0x2281cd['diffData'])return Promise['resolve']();{const _0xaf24aa=this['editor']['config']['get']('collaboration.channelId');return this['adapter']['getRevision']({'channelId':_0xaf24aa,'revisionId':_0x2281cd['id']})['then'](_0x141dd7=>{_0x2281cd['_update']({'diffData':_0x141dd7['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},_0x2a8064=>{for(const _0x15b045 of this['editor']['model']['document']['getRootNames']())_0x2a8064['detachRoot'](_0x15b045);});}['_sortAndFilterDiffChanges'](_0x1ea216){const _0x4e0bd9=[],_0x26b078=new Map();for(const _0x43e3aa of this['editor']['model']['document']['getRootNames']()){const _0x39262f=this['editor']['editing']['view']['getDomRoot'](_0x43e3aa);if(!_0x39262f)continue;const _0x47ee57=_0x39262f['getClientRects']()['item'](0x0);_0x47ee57&&(_0x4e0bd9['push'](_0x43e3aa),_0x26b078['set'](_0x43e3aa,_0x47ee57));}return _0x4e0bd9['sort']((_0x4b803d,_0x3c36cc)=>{const _0x523047=_0x26b078['get'](_0x4b803d),_0x474b45=_0x26b078['get'](_0x3c36cc);return _0x523047['y']-_0x474b45['y']||_0x523047['x']-_0x474b45['x'];}),(_0x1ea216=_0x1ea216['filter'](_0x42779a=>_0x4e0bd9['includes'](_0x42779a['rootName'])))['sort']((_0x4f2e01,_0x1ac6aa)=>_0x4e0bd9['indexOf'](_0x4f2e01['rootName'])-_0x4e0bd9['indexOf'](_0x1ac6aa['rootName'])),_0x1ea216;}['_makeTape'](_0x456e8c){const _0xc9e537=Array['from'](_0x456e8c['markers'])['filter'](([_0x4201fc,_0x458c8a])=>_0x4201fc['startsWith']('revision:')&&!_0x458c8a['isCollapsed']),_0x13c5ac=Array['from'](this['editor']['model']['createRangeIn'](_0x456e8c)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0xc9e537['length'])for(const _0x49ccb2 of _0x13c5ac){const [_0x4af08d,_0x2dc300]=_0xc9e537[0x0],[,_0x17915f,_0x4e7722]=_0x4af08d['split'](':');if(_0x2dc300['end']['isEqual'](_0x49ccb2['nextPosition'])&&_0xc9e537['shift'](),(_0x49ccb2['previousPosition']['isEqual'](_0x2dc300['start'])||_0x49ccb2['previousPosition']['isAfter'](_0x2dc300['start']))&&('insertion'==_0x17915f?_0x49ccb2['isAdded']={'userId':_0x4e7722}:'deletion'==_0x17915f&&(_0x49ccb2['isRemoved']={'userId':_0x4e7722})),0x0==_0xc9e537['length'])break;}return _0x13c5ac;}['_refreshStartEndIndex'](_0x5b0efb){const _0x2e08e3=new Map();for(let _0x596f91=0x0;_0x596f91<_0x5b0efb['length'];_0x596f91++)'text'===_0x5b0efb[_0x596f91]['type']?(_0x5b0efb[_0x596f91]['item']['startIndex']=_0x596f91,_0x5b0efb[_0x596f91]['item']['endIndex']=_0x596f91):('elementStart'===_0x5b0efb[_0x596f91]['type']?_0x5b0efb[_0x596f91]['item']['startIndex']=_0x596f91:'elementEnd'===_0x5b0efb[_0x596f91]['type']&&(_0x5b0efb[_0x596f91]['item']['endIndex']=_0x596f91),_0x2e08e3['set'](_0x5b0efb[_0x596f91]['id'],_0x596f91));for(const _0x5c433e of _0x2e08e3['values']())'elementStart'===_0x5b0efb[_0x5c433e]['type']?_0x5b0efb[_0x5c433e]['item']['endIndex']=_0x2e08e3['get'](_0x5b0efb[_0x5c433e]['pairId']):'elementEnd'===_0x5b0efb[_0x5c433e]['type']&&(_0x5b0efb[_0x5c433e]['item']['startIndex']=_0x2e08e3['get'](_0x5b0efb[_0x5c433e]['pairId']));}['_processTape'](_0x1c93c4){for(let _0x817945=0x0;_0x817945<_0x1c93c4['length'];_0x817945++){if('elementStart'===_0x1c93c4[_0x817945]['type'])_0x1c93c4[_0x817945]['item']['startIndex']=_0x817945;else{if('elementEnd'===_0x1c93c4[_0x817945]['type']){_0x1c93c4[_0x817945]['item']['endIndex']=_0x817945;const _0x3d399a=_0x1c93c4[_0x817945]['item']['startIndex'];_0x1c93c4[_0x3d399a]['pairId']=_0x1c93c4[_0x817945]['id'],_0x1c93c4[_0x817945]['pairId']=_0x1c93c4[_0x3d399a]['id'];}else _0x1c93c4[_0x817945]['item']['startIndex']=_0x817945,_0x1c93c4[_0x817945]['item']['endIndex']=_0x817945,_0x1c93c4[_0x817945]['pairId']=null;}_0x1c93c4[_0x817945]['markersStart']||(_0x1c93c4[_0x817945]['markersStart']=[],_0x1c93c4[_0x817945]['markersEnd']=[]);}}['_markInsertions'](_0x5d955c,_0x262613){const _0x20dd53=_0x5d955c['filter'](_0xcb85cf=>!_0xcb85cf['isAdded']);for(let _0x5de810=0x0;_0x5de810<_0x262613['length'];_0x5de810++)_0x262613[_0x5de810]['isAdded']&&(_0x20dd53[_0x5de810]['isAdded']=_0x262613[_0x5de810]['isAdded']);}['_makeModelFromViewString'](_0x14dad6){const _0x352d4c=JSON['parse'](_0x14dad6),_0x3bdc05=this['editor']['editing']['view']['document'],_0x848486=new _0x247d60(_0x3bdc05,_0x352d4c['map'](_0x55cf87=>this['_getViewObj'](_0x55cf87)));return this['editor']['data']['toModel'](_0x848486);}['_getViewObj'](_0x51dce3){const _0x4890e8=this['editor']['editing']['view']['document'];if('string'==typeof _0x51dce3)return new _0x325665(_0x4890e8,_0x51dce3);{const _0x27b850=_0x51dce3['children']['map'](_0x2a284a=>this['_getViewObj'](_0x2a284a));return new(Z[_0x51dce3['type']]||_0x44bca0)(_0x4890e8,_0x51dce3['name'],_0x51dce3['attributes'],_0x27b850);}}['_getDiff'](_0x1863f6,_0x527649=null){const _0x1c0335=this['repository']['getRevision'](_0x1863f6),_0x3db774=_0x527649?this['repository']['getRevision'](_0x527649):null,_0x1a0bbc=this['_getRevisionsRange'](_0x1c0335,_0x3db774),_0x2bf24a=_0x1a0bbc[_0x1a0bbc['length']-0x1],_0x35b299=new Map(),_0x57a95b={'model':{},'attributes':{},'changes':[]},_0x56aa2d=new Set(),_0x35e7fd=new Map();for(let _0x27af13=_0x1a0bbc['length']-0x1;_0x27af13>=0x0;_0x27af13--){const _0x2c9b4c=_0x1a0bbc[_0x27af13];for(const _0x54730f of Object['keys'](_0x2c9b4c['diffData']))if(_0x2c9b4c['diffData'][_0x54730f]['attachChange']){const _0x5f22b6=_0x2c9b4c['diffData'][_0x54730f]['attachChange'];_0x5f22b6['isAttached']?(_0x56aa2d['add'](_0x54730f),_0x35e7fd['has'](_0x54730f)&&_0x35e7fd['get'](_0x54730f)['userId']==_0x5f22b6['userId']?_0x35e7fd['delete'](_0x54730f):_0x35e7fd['set'](_0x54730f,_0x5f22b6)):_0x35e7fd['has'](_0x54730f)?(_0x56aa2d['delete'](_0x54730f),_0x35e7fd['delete'](_0x54730f)):(_0x56aa2d['add'](_0x54730f),_0x35e7fd['set'](_0x54730f,_0x5f22b6));}else _0x56aa2d['add'](_0x54730f);}for(const _0xbd24ee of _0x56aa2d){const _0x44694d=_0x35e7fd['has'](_0xbd24ee)&&!_0x35e7fd['get'](_0xbd24ee)['isAttached'];let _0x19da0b=_0x44694d?_0x1a0bbc['length']-0x1:0x0;const _0x170b93=_0x44694d?-0x1:0x1;for(;_0x1a0bbc[_0x19da0b];){const _0x5c4e7d=_0x1a0bbc[_0x19da0b];if(_0x5c4e7d['diffData'][_0xbd24ee]){const _0x1028bd=_0x44694d?_0x5c4e7d['diffData'][_0xbd24ee]['attributesBefore']:_0x5c4e7d['diffData'][_0xbd24ee]['attributesAfter'];_0x57a95b['attributes'][_0xbd24ee]=_0x1028bd?_0x1e5b1d(_0x1028bd):{};break;}_0x19da0b+=_0x170b93;}}for(const _0x5e8e83 of _0x1a0bbc){_0x5e8e83['model']={};for(const _0x35e76b of _0x5e8e83['authors'])_0x35b299['set'](_0x35e76b['id'],_0x35e76b);for(const _0x1b898d of _0x56aa2d){const _0x14d739=_0x5e8e83['diffData'][_0x1b898d]?_0x5e8e83['diffData'][_0x1b898d]['insertions']:'[]',_0x3f9a1c=_0x5e8e83['diffData'][_0x1b898d]?_0x5e8e83['diffData'][_0x1b898d]['deletions']:'[]';_0x5e8e83['model'][_0x1b898d]={'insertions':this['_makeModelFromViewString'](_0x14d739),'deletions':this['_makeModelFromViewString'](_0x3f9a1c)};}}for(const _0x2315a0 of _0x56aa2d){let _0x2717df=null,_0x9994d0=0x0;const _0x18e1d5=new Map(Array['from'](_0x1c0335['model'][_0x2315a0]['insertions']['markers'])['filter'](([_0x22022c])=>!_0x22022c['startsWith']('revision:')));let _0x353d4c=0x0;for(const _0x15ba82 of _0x1a0bbc){const _0x5b44e1=this['_makeTape'](_0x15ba82['model'][_0x2315a0]['insertions']);_0x15ba82==_0x1c0335?(_0x2717df=_0x5b44e1,_0x9994d0=_0x2717df['length'],_0x2717df['forEach'](_0x592d1b=>{_0x592d1b['id']=_0x353d4c++;}),this['_processTape'](_0x2717df)):this['_markInsertions'](_0x2717df,_0x5b44e1);const _0x4dcce6=_0x2717df['filter'](_0xef37e=>!_0xef37e['isAdded'])['map'](_0x44d548=>_0x44d548['id']);let _0x2710cc=0x0;const _0x2d5aa9=this['_makeTape'](_0x15ba82['model'][_0x2315a0]['deletions']);_0x2d5aa9['forEach'](_0x583592=>{_0x583592['isRemoved']?_0x583592['id']=_0x9994d0++:_0x583592['id']=_0x4dcce6[_0x2710cc++];}),this['_processTape'](_0x2d5aa9),this['_setDistance'](_0x2717df,'isAdded'),this['_setDistance'](_0x2d5aa9,'isRemoved'),_0x15ba82==_0x1c0335&&this['_markMarkers'](_0x2717df,_0x18e1d5),_0x2717df=this['_joinTapes'](_0x2717df,_0x2d5aa9),this['_refreshStartEndIndex'](_0x2717df),this['_setDistance'](_0x2717df,'isRemoved');}_0x2717df=_0x2717df['filter'](_0xee1597=>!(_0xee1597['isAdded']&&_0xee1597['isRemoved']));const _0x33d816=new Map(_0x2bf24a['model'][_0x2315a0]['deletions']['markers']),_0x596137=new Set(_0x18e1d5['keys']());for(const _0x3647a5 of _0x33d816['keys']())_0x596137['delete'](_0x3647a5);this['_markSuggestions'](_0x2717df,_0x596137),this['_fixObsoleteTags'](_0x2717df),_0x2717df=this['_removeMissingPairs'](_0x2717df),_0x2717df=this['_markMismatchedRemovedTags'](_0x2717df),_0x2717df=this['_removeUnsupportedChanges'](_0x2717df);const {root:_0x20930b,changes:_0x35baa8}=this['_makeModelFromTape'](_0x2717df,_0x35b299,_0x2315a0);_0x57a95b['model'][_0x2315a0]=_0x20930b;const _0x1373e1=_0x35e7fd['get'](_0x2315a0);if(_0x1373e1){const _0x3b2442=_0x35b299['get'](_0x1373e1['userId']),_0x19a284=new r({'author':_0x3b2442,'type':_0x1373e1['isAttached']?'add':'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x2315a0});_0x35baa8['unshift'](_0x19a284),_0x57a95b['attributes'][_0x2315a0]['revisionHistoryAttachChange']=_0x19a284['id'];}_0x57a95b['changes']=_0x57a95b['changes']['concat'](_0x35baa8);}return _0x57a95b;}['_markMarkers'](_0x4c7a01,_0xa12dce){for(let _0x2ace27=0x0;_0x2ace27<_0x4c7a01['length'];_0x2ace27++)for(const [_0xcca76c,_0x146d28]of _0xa12dce)_0x146d28['start']['isEqual'](_0x4c7a01[_0x2ace27]['previousPosition'])&&_0x4c7a01[_0x2ace27]['markersStart']['push'](_0xcca76c),_0x146d28['end']['isEqual'](_0x4c7a01[_0x2ace27]['nextPosition'])&&_0x4c7a01[_0x2ace27]['markersEnd']['push'](_0xcca76c);}['_joinTapes'](_0x4b66ae,_0x6ba34e){let _0x4b0fef=[],_0x13fcc6=0x0,_0xe596af=0x0;for(;_0x13fcc6<_0x4b66ae['length']||_0xe596af<_0x6ba34e['length'];){const _0x474c08=_0x4b66ae[_0x13fcc6]||{},_0x1822a4=_0x6ba34e[_0xe596af]||{};if(_0x474c08['id']==_0x1822a4['id'])_0x13fcc6++,_0xe596af++,_0x4b0fef['push'](_0x474c08);else{if(_0x1822a4['isRemoved']&&_0x474c08['isAdded']){const {commonTape:_0x684626,iEnd:_0x34dfb3,jEnd:_0x38194f}=this['_threeWayMerge'](_0x4b66ae,_0x13fcc6,_0x6ba34e,_0xe596af);_0x4b0fef=_0x4b0fef['concat'](_0x684626),_0x13fcc6=_0x34dfb3,_0xe596af=_0x38194f;}else _0x1822a4['isRemoved']?(_0xe596af++,_0x4b0fef['push'](_0x1822a4)):(_0x13fcc6++,_0x4b0fef['push'](_0x474c08));}}return _0x4b0fef;}['_markSuggestions'](_0x489f5c,_0x2ff8ba){const _0x1581d7=[];for(let _0x34d68f=0x0;_0x34d68f<_0x489f5c['length'];_0x34d68f++){for(let _0x33fa21=0x0;_0x33fa21<_0x489f5c[_0x34d68f]['markersStart']['length'];_0x33fa21++){const _0x10644a=_0x489f5c[_0x34d68f]['markersStart'][_0x33fa21];if(!_0x2ff8ba['has'](_0x10644a))continue;const {group:_0x52d3bd,type:_0x1c4d82,authorId:_0x5a21b3}=_0x28d14e(_0x10644a);'revision-suggestion'!=_0x52d3bd||'insertion'!=_0x1c4d82&&'deletion'!=_0x1c4d82||(_0x1581d7['unshift']({'type':_0x1c4d82,'name':_0x10644a,'userId':_0x5a21b3}),_0x489f5c[_0x34d68f]['markersStart']['splice'](_0x33fa21,0x1),_0x33fa21--);}_0x4c7a08(_0x489f5c[_0x34d68f]);for(let _0x49fa00=0x0;_0x49fa00<_0x489f5c[_0x34d68f]['markersEnd']['length'];_0x49fa00++){const _0x265bdb=_0x489f5c[_0x34d68f]['markersEnd'][_0x49fa00];if(!_0x2ff8ba['has'](_0x265bdb))continue;const {group:_0x226295,type:_0x1c3f80}=_0x28d14e(_0x265bdb);if('revision-suggestion'!=_0x226295||'insertion'!=_0x1c3f80&&'deletion'!=_0x1c3f80)continue;_0x489f5c[_0x34d68f]['markersEnd']['splice'](_0x49fa00,0x1),_0x49fa00--;const _0x20934a=_0x1581d7['findIndex'](_0x2831e3=>_0x2831e3['name']==_0x265bdb);_0x20934a>-0x1&&_0x1581d7['splice'](_0x20934a,0x1);}}function _0x28d14e(_0x5a714a){const _0x3526c7=_0x5a714a['split'](':');return{'group':_0x3526c7[0x0],'type':_0x3526c7[0x1],'subType':_0x3526c7['length']>=0x5?_0x3526c7[0x2]:null,'id':_0x3526c7['length']<0x5?_0x3526c7[0x2]:_0x3526c7[0x3],'authorId':_0x3526c7['length']<0x5?_0x3526c7[0x3]:_0x3526c7[0x4],'markerCount':0x6==_0x3526c7['length']?_0x3526c7[0x5]:null};}function _0x4c7a08(_0x1ec4fd){for(let _0x4b6d08=0x0;_0x4b6d08<_0x1581d7['length'];_0x4b6d08++){if(_0x1ec4fd['isAdded']&&'insertion'==_0x1581d7[_0x4b6d08]['type'])return _0x1ec4fd['isAddSuggestion']=_0x1581d7[_0x4b6d08],void delete _0x1ec4fd['isAdded'];if(!_0x1ec4fd['isAdded']&&!_0x1ec4fd['isRemoved']&&'deletion'==_0x1581d7[_0x4b6d08]['type'])return void(_0x1ec4fd['isRemoveSuggestion']=_0x1581d7[_0x4b6d08]);}}}['_setDistance'](_0x579be3,_0x19acb9){let _0x34c3bd=0x0,_0x6c5eb3=!0x1;const _0x592853=new Map();for(const _0x45da85 of _0x579be3)_0x45da85[_0x19acb9]?_0x6c5eb3&&(_0x34c3bd++,_0x6c5eb3=!0x1):(_0x34c3bd++,_0x6c5eb3=!0x0),_0x592853['set'](_0x45da85['id'],_0x34c3bd);for(let _0x3d244a=0x0;_0x3d244a<_0x579be3['length'];_0x3d244a++){if('isRemoved'==_0x19acb9&&_0x579be3[_0x3d244a]['isAdded']||'isAdded'==_0x19acb9&&_0x579be3[_0x3d244a]['isRemoved'])continue;if('text'==_0x579be3[_0x3d244a]['type']){_0x579be3[_0x3d244a]['distance']=0x0;continue;}const _0x44c733=_0x592853['get'](_0x579be3[_0x3d244a]['pairId']),_0x4ac1e1=_0x592853['get'](_0x579be3[_0x3d244a]['id']);_0x579be3[_0x3d244a]['distance']=_0x44c733-_0x4ac1e1;}}['_getRevisionsRange'](_0x4c5082,_0x5a32ad,_0x47f532=!0x1){const _0x484ff8=[];let _0xd5f821=this['repository']['getIndex'](_0x4c5082),_0x1f1f43=this['repository']['getIndex'](_0x5a32ad);for(-0x1==_0x1f1f43&&(_0x1f1f43=this['repository']['_revisions']['length'],_0x47f532=!0x1);_0xd5f821<_0x1f1f43;)_0x484ff8['push'](this['repository']['getRevision'](_0xd5f821)),_0xd5f821++;return _0x47f532&&_0x484ff8['push'](this['repository']['getRevision'](_0xd5f821)),_0x484ff8;}['_threeWayMerge'](_0x1781cd,_0x1369c0,_0x37a6cb,_0x3cdea2){const _0x890ebd=this['editor']['model']['schema'];let _0x495866=_0x1369c0;for(;_0x1781cd[_0x495866]&&_0x1781cd[_0x495866]['isAdded'];)_0x495866++;let _0x386b0d=_0x3cdea2;for(;_0x37a6cb[_0x386b0d]&&_0x37a6cb[_0x386b0d]['isRemoved'];)_0x386b0d++;_0x2f69bf(_0x1781cd,_0x1369c0,_0x495866),_0x2f69bf(_0x37a6cb,_0x3cdea2,_0x386b0d);const _0x4a269e=_0x37a6cb['slice'](_0x3cdea2,_0x386b0d)['concat'](_0x1781cd['slice'](_0x1369c0,_0x495866));return _0x4a269e['sort']((_0x189c43,_0x25269a)=>_0x189c43['side']!=_0x25269a['side']?_0x189c43['side']-_0x25269a['side']:_0x189c43['level']!=_0x25269a['level']?_0x189c43['level']-_0x25269a['level']:_0x189c43['distance']!=_0x25269a['distance']?_0x25269a['distance']-_0x189c43['distance']:!!_0x189c43['isAdded']!=!!_0x25269a['isAdded']?-0x1==_0x189c43['side']||0x0==_0x189c43['side']?_0x189c43['isAdded']?-0x1:0x1:_0x189c43['isAdded']?0x1:-0x1:_0x189c43['index']-_0x25269a['index']),{'commonTape':_0x4a269e,'iEnd':_0x495866,'jEnd':_0x386b0d};function _0x2f69bf(_0x523241,_0x58a65c,_0xe6b991){let _0x560cfa=-0x1,_0x89fcff=Number['POSITIVE_INFINITY'],_0x20f517=!0x0;for(let _0xdb66fc=_0x58a65c;_0xdb66fc<_0xe6b991;_0xdb66fc++)if(_0x890ebd['isInline'](_0x523241[_0xdb66fc]['item'])||(_0x20f517=!0x1),_0x523241[_0xdb66fc]['item']['startIndex']<_0x58a65c&&(_0x560cfa=_0xdb66fc),_0x523241[_0xdb66fc]['item']['endIndex']>=_0xe6b991){_0x89fcff=_0xdb66fc;break;}_0x20f517&&(_0x560cfa=_0xe6b991-0x1);for(let _0x412778=_0x58a65c;_0x412778<_0xe6b991;_0x412778++)_0x523241[_0x412778]['side']=_0x412778<=_0x560cfa?-0x1:_0x412778<_0x89fcff?0x0:0x1,_0x523241[_0x412778]['index']=_0x412778;let _0x3ee57a=0x0;for(let _0x4ba1b5=_0x58a65c;_0x4ba1b5<=_0x560cfa;_0x4ba1b5++)0x0==_0x523241[_0x4ba1b5]['distance']?_0x523241[_0x4ba1b5]['level']=_0x3ee57a:(_0x3ee57a++,_0x523241[_0x4ba1b5]['level']=_0x3ee57a,_0x3ee57a++);for(let _0x135e63=_0x58a65c;_0x135e63<_0xe6b991;_0x135e63++)0x0==_0x523241[_0x135e63]['side']&&(_0x523241[_0x135e63]['level']=_0x3ee57a);_0x3ee57a=0x0;for(let _0x5a5f4b=_0xe6b991-0x1;_0x5a5f4b>=_0x89fcff;_0x5a5f4b--)0x0==_0x523241[_0x5a5f4b]['distance']?_0x523241[_0x5a5f4b]['level']=_0x3ee57a:(_0x3ee57a--,_0x523241[_0x5a5f4b]['level']=_0x3ee57a,_0x3ee57a--);}}['_fixObsoleteTags'](_0x5de731){const _0x548a26=new Map(),_0x2f0dc3=this['editor']['model']['schema'];for(let _0x6b8318=0x1;_0x6b8318<_0x5de731['length'];_0x6b8318++){let _0x1f18e7,_0x385140,_0x3fe077;const _0x1ecbeb=_0x5de731[_0x6b8318],_0x2a95dc=_0x5de731[_0x6b8318-0x1];if('text'==_0x1ecbeb['type'])continue;if(_0x1ecbeb['type']!=_0x2a95dc['type'])continue;if(!_0x2f0dc3['isBlock'](_0x2a95dc['item'])||_0x2f0dc3['isLimit'](_0x2a95dc['item']))continue;if(!_0x2f0dc3['isBlock'](_0x1ecbeb['item'])||_0x2f0dc3['isLimit'](_0x1ecbeb['item']))continue;if((_0x5de731[_0x6b8318]['isAdded']||_0x5de731[_0x6b8318]['isAddSuggestion'])&&_0x5de731[_0x6b8318-0x1]['isRemoved'])_0x1f18e7=_0x5de731[_0x6b8318],_0x385140=_0x5de731[_0x6b8318-0x1],_0x3fe077=_0x6b8318-0x1;else{if(!_0x5de731[_0x6b8318]['isRemoved']||!_0x5de731[_0x6b8318-0x1]['isAdded']&&!_0x5de731[_0x6b8318-0x1]['isAddSuggestion'])continue;_0x1f18e7=_0x5de731[_0x6b8318-0x1],_0x385140=_0x5de731[_0x6b8318],_0x3fe077=_0x6b8318;}const _0x5ae905=_0x1f18e7['level']==_0x385140['level'],_0x310d9e=Math['abs'](_0x1f18e7['level'])<Math['abs'](_0x385140['level'])&&0x0==_0x385140['distance'];(_0x5ae905||_0x310d9e)&&(_0x548a26['set'](_0x385140['id'],_0x1f18e7['id']),_0x5de731['splice'](_0x3fe077,0x1),_0x6b8318--,_0x1f18e7['isAdded']=!0x1);}for(let _0x16b264=0x0;_0x16b264<_0x5de731['length'];_0x16b264++)_0x548a26['has'](_0x5de731[_0x16b264]['pairId'])&&(_0x5de731[_0x16b264]['pairId']=_0x548a26['get'](_0x5de731[_0x16b264]['pairId']));}['_removeMissingPairs'](_0x5ec4b2){const _0x525c28=new Set(_0x5ec4b2['map'](_0x47e557=>_0x47e557['id']));for(let _0x577220=0x0;_0x577220<_0x5ec4b2['length'];_0x577220++)_0x525c28['has'](_0x5ec4b2[_0x577220]['pairId'])||0x0==_0x5ec4b2[_0x577220]['distance']||(_0x5ec4b2[_0x577220]['isIncorrect']=!0x0);return _0x5ec4b2['filter'](_0x1de784=>!_0x1de784['isIncorrect']);}['_markMismatchedRemovedTags'](_0x3cceb8){const _0x3f4a5d=new Set();for(let _0x167999=0x0;_0x167999<_0x3cceb8['length'];_0x167999++){if(_0x3f4a5d['has'](_0x3cceb8[_0x167999]['id'])&&_0x3cceb8[_0x167999]['isRemoved']&&(_0x3cceb8[_0x167999]['isIncorrect']=!0x0),_0x3cceb8[_0x167999]['isIncorrect'])continue;if(0x0==_0x3cceb8[_0x167999]['distance'])continue;if('elementStart'!=_0x3cceb8[_0x167999]['type'])continue;if(null==_0x3cceb8[_0x167999]['pairId'])continue;let _0x15fd35=_0x167999+0x1,_0x162c3a=0x0;for(;_0x3cceb8[_0x15fd35]['id']!=_0x3cceb8[_0x167999]['pairId'];)'elementStart'==_0x3cceb8[_0x15fd35]['type']?_0x162c3a++:'elementEnd'==_0x3cceb8[_0x15fd35]['type']&&_0x162c3a--,_0x15fd35++;if(0x0!=_0x162c3a){if(_0x3cceb8[_0x167999]['isRemoved'])_0x3cceb8[_0x167999]['isIncorrect']=!0x0;else{for(;_0x15fd35!=_0x167999;)_0x3cceb8[_0x15fd35]['isRemoved']&&0x0!=_0x3cceb8[_0x15fd35]['distance']&&(_0x3cceb8[_0x15fd35]['isIncorrect']=!0x0,_0x3f4a5d['add'](_0x3cceb8[_0x15fd35]['pairId'])),_0x15fd35--;}}}return _0x3cceb8['filter'](_0x3fda58=>!_0x3fda58['isIncorrect']);}['_removeUnsupportedChanges'](_0x3d177e){const _0xe9468c=this['editor']['model']['schema'];for(let _0x3fe67f=0x0;_0x3fe67f<_0x3d177e['length'];_0x3fe67f++){if(!(_0x3d177e[_0x3fe67f]['isAdded']||_0x3d177e[_0x3fe67f]['isAddSuggestion']||_0x3d177e[_0x3fe67f]['isRemoved']||_0x3d177e[_0x3fe67f]['isRemoveSuggestion']))continue;if(0x0==_0x3d177e[_0x3fe67f]['distance'])continue;const _0x2f0965=_0x3d177e[_0x3fe67f]['item'];_0xe9468c['isBlock'](_0x2f0965)||_0xe9468c['isLimit'](_0x2f0965)||(_0x3d177e[_0x3fe67f]['isAdded']&&delete _0x3d177e[_0x3fe67f]['isAdded'],_0x3d177e[_0x3fe67f]['isAddSuggestion']&&delete _0x3d177e[_0x3fe67f]['isAddSuggestion'],_0x3d177e[_0x3fe67f]['isRemoveSuggestion']&&delete _0x3d177e[_0x3fe67f]['isRemoveSuggestion'],_0x3d177e[_0x3fe67f]['isRemoved']&&(_0x3d177e[_0x3fe67f]['isIncorrect']=!0x0));}return _0x3d177e['filter'](_0x35118e=>!_0x35118e['isIncorrect']);}['_makeModelFromTape'](_0x525669,_0x52d8e4,_0x3ce054){const _0x4734d4=new wt(),_0x230240=[],_0xc877fd=new Map(),_0x1c343c=this['editor']['model'],_0x409958=_0x1c343c['schema'],_0x48e093=[_0x4734d4],_0x52a937={},_0x3d12c1={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x43ba3d=null;const _0x2843d3=[0x0];for(let _0x5b7b45=0x0;_0x5b7b45<_0x525669['length'];_0x5b7b45++)if('elementStart'===_0x525669[_0x5b7b45]['type']){_0x525669[_0x5b7b45]['previousPosition']=_0x1c343c['createPositionFromPath'](_0x4734d4,_0x2843d3);const _0x1e4a1f=new ft(_0x525669[_0x5b7b45]['item']['name'],_0x525669[_0x5b7b45]['item']['getAttributes']());_0x48e093[0x0]['_appendChild'](_0x1e4a1f),_0x2843d3['push'](0x0),_0x48e093['unshift'](_0x1e4a1f),_0x525669[_0x5b7b45]['nextPosition']=_0x1c343c['createPositionFromPath'](_0x4734d4,_0x2843d3);}else'elementEnd'===_0x525669[_0x5b7b45]['type']?(_0x48e093['shift'](),_0x525669[_0x5b7b45]['previousPosition']=_0x1c343c['createPositionFromPath'](_0x4734d4,_0x2843d3),_0x2843d3['pop'](),_0x2843d3[_0x2843d3['length']-0x1]++,_0x525669[_0x5b7b45]['nextPosition']=_0x1c343c['createPositionFromPath'](_0x4734d4,_0x2843d3)):(_0x525669[_0x5b7b45]['previousPosition']=_0x1c343c['createPositionFromPath'](_0x4734d4,_0x2843d3),_0x43ba3d?_0x43ba3d['_data']+=_0x525669[_0x5b7b45]['item']['data']:_0x43ba3d=new _t(_0x525669[_0x5b7b45]['item']['data'],_0x525669[_0x5b7b45]['item']['getAttributes']()),_0x525669[_0x5b7b45+0x1]&&'text'===_0x525669[_0x5b7b45+0x1]['type']&&_0x53d13c(_0x43ba3d,_0x525669[_0x5b7b45+0x1]['item'])||(_0x48e093[0x0]['_appendChild'](_0x43ba3d),_0x43ba3d=null),_0x2843d3[_0x2843d3['length']-0x1]+=_0x525669[_0x5b7b45]['item']['offsetSize'],_0x525669[_0x5b7b45]['nextPosition']=_0x1c343c['createPositionFromPath'](_0x4734d4,_0x2843d3));for(let _0x474b3e=0x0;_0x474b3e<_0x525669['length'];_0x474b3e++){const _0x342ceb=_0x525669[_0x474b3e]['previousPosition'],_0x36678d=_0x525669[_0x474b3e]['nextPosition'];for(const _0x196841 of _0x525669[_0x474b3e]['markersStart'])_0xc877fd['set'](_0x196841,{'start':_0x342ceb,'end':null});_0x23716f('isRemoveSuggestion',_0x474b3e,_0x342ceb,_0x36678d),_0x23716f('isAddSuggestion',_0x474b3e,_0x342ceb,_0x36678d),_0x23716f('isRemoved',_0x474b3e,_0x342ceb,_0x36678d),_0x23716f('isAdded',_0x474b3e,_0x342ceb,_0x36678d);for(const _0x54b51b of _0x525669[_0x474b3e]['markersEnd']){_0xc877fd['get'](_0x54b51b)['end']=_0x36678d;}}for(const [_0x567b40,_0x1bcb4b]of _0xc877fd){const _0x29269d=this['editor']['model']['createRange'](_0x1bcb4b['start'],_0x1bcb4b['end']);_0x4734d4['markers']['set'](_0x567b40,_0x29269d);}return _0x230240['sort']((_0x8b74b3,_0x23f985)=>{const _0x3300cc=_0x4734d4['markers']['get']('revision:'+_0x8b74b3['id']),_0x4ae73c=_0x4734d4['markers']['get']('revision:'+_0x23f985['id']);return _0x3300cc['start']['isBefore'](_0x4ae73c['start'])?-0x1:_0x3300cc['start']['isAfter'](_0x4ae73c['start'])?0x1:_0x3300cc['end']['isBefore'](_0x4ae73c['end'])?-0x1:_0x3300cc['end']['isAfter'](_0x4ae73c['end'])?0x1:'add'===_0x8b74b3['type']?-0x1:0x1;}),{'root':_0x4734d4,'changes':_0x230240};function _0x23716f(_0x375131,_0x1339cc,_0x3e6310,_0x3efc90){const _0x5680a1=!!_0x525669[_0x1339cc][_0x375131],_0x3107f3=_0x5680a1?_0x525669[_0x1339cc][_0x375131]['userId']:null,_0x13e15a=_0x1339cc===_0x525669['length']-0x1,_0x53dac9=_0x3d12c1[_0x375131][0x0],_0x514ab7=_0x409958['isObject'](_0x525669[_0x1339cc]['item']);!_0x52a937[_0x375131]&&_0x5680a1?_0x52a937[_0x375131]={'start':_0x3e6310,'tapeItem':_0x525669[_0x1339cc],'userId':_0x3107f3,'type':_0x375131}:_0x52a937[_0x375131]&&!_0x5680a1?(_0x52a937[_0x375131]['end']=_0x3e6310,_0x14b630(_0x52a937[_0x375131]),_0x52a937[_0x375131]=null):_0x52a937[_0x375131]&&_0x5680a1&&_0x52a937[_0x375131]['userId']!==_0x3107f3&&(_0x52a937[_0x375131]['end']=_0x3e6310,_0x53dac9&&_0x53dac9['userId']===_0x52a937[_0x375131]['userId']||_0x14b630(_0x52a937[_0x375131]),_0x52a937[_0x375131]={'start':_0x3e6310,'tapeItem':_0x525669[_0x1339cc],'userId':_0x3107f3,'type':_0x375131}),_0x52a937[_0x375131]&&_0x514ab7&&('elementStart'!==_0x525669[_0x1339cc]['type']||_0x53dac9&&_0x53dac9['userId']===_0x3107f3||_0x3d12c1[_0x375131]['unshift']({'userId':_0x3107f3,'object':_0x525669[_0x1339cc]['item'],'change':_0x52a937[_0x375131]}),'elementEnd'===_0x525669[_0x1339cc]['type']&&_0x53dac9&&_0x53dac9['object']===_0x525669[_0x1339cc]['item']&&(_0x3d12c1[_0x375131]['shift'](),_0x52a937[_0x375131]=_0x53dac9['change'])),_0x52a937[_0x375131]&&_0x13e15a&&(_0x52a937[_0x375131]['end']=_0x3efc90,_0x14b630(_0x52a937[_0x375131]),_0x52a937[_0x375131]=null);}function _0x14b630({start:_0x447ea4,end:_0x9fa911,tapeItem:_0x38ff55,userId:_0x3d62b9,type:_0x22b5b6}){const _0x2439c4=_0x38ff55['item'],_0x4485cd=_0x1c343c['schema']['isBlock'](_0x2439c4)&&!_0x1c343c['schema']['isLimit'](_0x2439c4),_0xb4d37a=_0x447ea4['nodeAfter']==_0x9fa911['parent']&&_0x9fa911['isAtStart'];if(_0x4485cd&&_0xb4d37a)return;const _0x1fae7a=_0x1c343c['createRange'](_0x447ea4,_0x9fa911),_0xa1ba9a=_0x52d8e4['get'](_0x3d62b9),_0x15e598=new r({'author':_0xa1ba9a,'type':'isAdded'==_0x22b5b6||'isAddSuggestion'==_0x22b5b6?'add':'remove','data':{'isSuggestion':'isAddSuggestion'==_0x22b5b6||'isRemoveSuggestion'==_0x22b5b6},'createdAt':new Date(),'rootName':_0x3ce054});_0x230240['push'](_0x15e598),_0x4734d4['markers']['set']('revision:'+_0x15e598['id'],_0x1fae7a);}function _0x53d13c(_0xb65015,_0x451e2f){const _0x46144e=_0xb65015['getAttributes'](),_0x591155=_0x451e2f['getAttributes']();for(const _0x4bcdf2 of _0x46144e){if(_0x4bcdf2[0x1]!==_0x451e2f['getAttribute'](_0x4bcdf2[0x0]))return!0x1;_0x591155['next']();}return _0x591155['next']()['done'];}}['_setConversion'](){this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision','view':_0x5902b3=>{const _0x2f7858=_0x5902b3['markerName']['split'](':')[0x1],_0x3e84f9=this['_getChangeFromId'](_0x2f7858);if(!_0x3e84f9)return null;const _0x21e88d='add'==_0x3e84f9['type']?'insertion':'deletion',_0x4b1192=['ck-suggestion-marker','ck-suggestion-marker-'+_0x21e88d];return _0x3e84f9['data']['isSuggestion']&&_0x4b1192['push']('ck-suggestion-marker-'+_0x21e88d+'-new'),this['activeChange']==_0x3e84f9&&_0x4b1192['push']('ck-suggestion-marker--active'),{'classes':_0x4b1192,'attributes':{'data-change-id':_0x2f7858}};}}),this['editor']['conversion']['for']('upcast')['add'](_0x14ade0=>{_0x14ade0['on']('element:pre',(_0x1a3687,_0x1fac07,_0x4b55bd)=>{const _0x2659f7=_0x1fac07['viewItem']['getChild'](0x0);if(!_0x2659f7||!_0x2659f7['is']('element','code'))return;if(!_0x4b55bd['consumable']['consume'](_0x2659f7,{'attributes':['vid_start','vid_end']}))return;const _0x538fc5=_0x1fac07['modelRange']['start']['nodeAfter'];_0x4b55bd['writer']['setAttribute']('vid_start',_0x2659f7['getAttribute']('vid_start'),_0x538fc5),_0x4b55bd['writer']['setAttribute']('vid_end',_0x2659f7['getAttribute']('vid_end'),_0x538fc5);},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['add'](_0x38451b=>{_0x38451b['on']('element',(_0x21cf94,_0x332363,_0x51b172)=>{if(!_0x51b172['consumable']['consume'](_0x332363['viewItem'],{'attributes':['vid_start','vid_end']}))return;if(_0x332363['modelRange']['isCollapsed'])return;const _0x4a8d6d=_0x332363['modelRange']['start']['nodeAfter'];_0x4a8d6d['hasAttribute']('vid_start')||_0x4a8d6d['hasAttribute']('vid')||(_0x51b172['writer']['setAttribute']('vid_start',_0x332363['viewItem']['getAttribute']('vid_start'),_0x4a8d6d),_0x51b172['writer']['setAttribute']('vid_end',_0x332363['viewItem']['getAttribute']('vid_end'),_0x4a8d6d));},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['elementToAttribute']({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0x468937=>_0x468937['getAttribute']('vid')}}),this['editor']['model']['schema']['on']('checkAttribute',(_0x4ab022,[,_0x5bdc9b])=>{['vid_start','vid_end','vid']['includes'](_0x5bdc9b)&&(_0x4ab022['return']=!0x0,_0x4ab022['stop']());},{'priority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x36af02=>{_0x36af02['on']('attribute:vid',(_0x4020f6,_0x3cbd7e,_0x2b9a2f)=>{if('\x20'!=_0x3cbd7e['item']['data']||_0x3cbd7e['item']['parent']['maxOffset']>0x1)return;if(!_0x2b9a2f['consumable']['consume'](_0x3cbd7e['item'],_0x4020f6['name']))return;const _0x58ac3d=_0x2b9a2f['writer'],_0x66c1a7=_0x2b9a2f['mapper']['toViewRange'](_0x3cbd7e['range']);_0x58ac3d['wrap'](_0x66c1a7,_0x58ac3d['createAttributeElement']('span'));});}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',function(_0x27f9e1){const _0x36188d=_0x27f9e1['plugins']['get']('RevisionViewer');return(_0x18695f,_0x322778,_0x34bfb5)=>{const _0x1726c1=_0x322778['markerName']['split'](':')[0x1],_0x33b233=_0x36188d['_getChangeFromId'](_0x1726c1);if(!_0x33b233)return null;const _0x2a03ba='add'==_0x33b233['type']?'split':'merge';if(!_0x34bfb5['consumable']['test'](_0x322778['markerRange'],_0x18695f['name']))return;const _0x35ad9b=_0x322778['markerRange']['getWalker'](),_0x1bfac0=_0x322778['markerRange']['start'],_0x91590c=_0x27f9e1['model']['schema'];let _0x3e9693=null,_0x3d38fa=null,_0x29055b=!0x1,_0x204865=!0x1;for(const _0x177293 of _0x35ad9b){const _0x2cc59b=_0x177293['item'];_0x29055b=_0x29055b||_0x91590c['isContent'](_0x2cc59b);const _0x1441fc=_0x34bfb5['mapper']['toViewElement'](_0x2cc59b);if(_0x1441fc&&_0x1441fc['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x177293['type']&&(_0x91590c['isBlock'](_0x2cc59b)&&!_0x91590c['isLimit'](_0x2cc59b)&&(_0x2cc59b['nextSibling']||_0x1bfac0['isAtEnd']?_0x3e9693&&_0x3e9693['parent']==_0x2cc59b||(_0x3e9693=_0x2cc59b,_0xb23978(_0x177293['previousPosition']),_0x204865=!0x0):_0x3d38fa=_0x3d38fa||_0x177293['previousPosition']));}function _0xb23978(_0x31314d){const _0x487725=_0x34bfb5['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x2a03ba}),_0x29ada6=_0x34bfb5['mapper']['toViewPosition'](_0x31314d);_0x33b233['data']['isSuggestion']&&_0x34bfb5['writer']['addClass']('ck-suggestion-marker-'+_0x2a03ba+'-new',_0x487725),_0x36188d['activeChange']==_0x33b233&&_0x34bfb5['writer']['addClass']('ck-suggestion-marker--active',_0x487725),_0x34bfb5['writer']['insert'](_0x29ada6,_0x487725),_0x34bfb5['mapper']['bindElementToMarker'](_0x487725,_0x322778['markerName']);}_0x29055b||_0x204865||!_0x3d38fa||_0xb23978(_0x3d38fa);};}(this['editor']),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision',(_0x6d7634,_0x54f184,_0x42f8dc)=>{const _0x3e7096=_0x42f8dc['mapper']['markerNameToElements'](_0x54f184['markerName']);if(_0x3e7096){for(const _0x444724 of _0x3e7096)(_0x444724['hasClass']('ck-suggestion-marker-split')||_0x444724['hasClass']('ck-suggestion-marker-merge'))&&(_0x42f8dc['mapper']['unbindElementFromMarkerName'](_0x444724,_0x54f184['markerName']),_0x42f8dc['writer']['remove'](_0x444724));}},{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',(_0x3b2b8f,_0x31e2c1,_0x1d285e)=>{const _0x79f35=_0x31e2c1['markerName']['split'](':')[0x1],_0x5e41bf=this['_getChangeFromId'](_0x79f35);if(!_0x5e41bf)return null;const _0x41f63d='add'==_0x5e41bf['type']?'split':'merge';if(_0x1d285e['consumable']['test'](_0x31e2c1['markerRange'],_0x3b2b8f['name']))for(const _0x26d479 of _0x31e2c1['markerRange']['getItems']()){if(!_0x26d479['is']('element','softBreak'))continue;const _0x4cf0bf=_0x1d285e['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x41f63d}),_0x53ce1c=_0x1d285e['mapper']['toViewPosition'](this['editor']['model']['createPositionBefore'](_0x26d479));_0x5e41bf['data']['isSuggestion']&&_0x1d285e['writer']['addClass']('ck-suggestion-marker-'+_0x41f63d+'-new',_0x4cf0bf),this['activeChange']==_0x5e41bf&&_0x1d285e['writer']['addClass']('ck-suggestion-marker--active',_0x4cf0bf),_0x1d285e['writer']['insert'](_0x53ce1c,_0x4cf0bf),_0x1d285e['mapper']['bindElementToMarker'](_0x4cf0bf,_0x31e2c1['markerName']);}},{'priority':'high'}),this['editor']['model']['document']['on']('change',()=>{this['editor']['editing']['view']['change'](_0x1f9710=>{for(const _0x98a0ce of this['editor']['model']['document']['getRootNames']()){const _0x2d2fab=this['editor']['model']['document']['getRoot'](_0x98a0ce),_0x2e3ca4=this['editor']['editing']['view']['document']['getRoot'](_0x98a0ce);if(_0x2e3ca4){const _0x454b69=_0x2d2fab['getAttribute']('revisionHistoryAttachChange');if(_0x1f9710['removeAttribute']('data-change-id',_0x2e3ca4),_0x1f9710['removeClass']('ck-revision-history-root-add',_0x2e3ca4),_0x1f9710['removeClass']('ck-revision-history-root-remove',_0x2e3ca4),_0x1f9710['removeClass']('ck-revision-history-root--active',_0x2e3ca4),_0x454b69){const _0x33ea8e=this['_getChangeFromId'](_0x454b69);if(!_0x33ea8e)return null;_0x1f9710['setAttribute']('data-change-id',_0x454b69,_0x2e3ca4),_0x1f9710['addClass']('ck-revision-history-root-'+_0x33ea8e['type'],_0x2e3ca4),this['activeChange']==_0x33ea8e&&_0x1f9710['addClass']('ck-revision-history-root--active',_0x2e3ca4);}}}});}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'comment','model':_0x16a705=>'revision-comment:'+_0x16a705,'converterPriority':'highest'}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion','model':_0x39c963=>'revision-suggestion:'+_0x39c963,'converterPriority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision-suggestion','view':_0x2050ad=>({'name':'suggestion:'+_0x2050ad,'group':'revision-suggestion'}),'converterPriority':'highest'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision-suggestion','view':_0x5534ef=>{const _0x18427c=_0x5534ef['markerName']['split'](':')[0x1];return'insertion'!=_0x18427c&&'deletion'!=_0x18427c?null:{'classes':['ck-suggestion-preview-marker','ck-suggestion-preview-marker-'+_0x18427c]};}}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:deletion',tt(this['editor'],'merge'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:insertion',tt(this['editor'],'split'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision-suggestion',(_0x27e1a3,_0xf002a,_0x5883b0)=>{const _0x253fb9=_0x5883b0['mapper']['markerNameToElements'](_0xf002a['markerName']);if(_0x253fb9){for(const _0x5f2b74 of _0x253fb9)_0x5f2b74['is']('uiElement')&&(_0x5883b0['mapper']['unbindElementFromMarkerName'](_0x5f2b74,_0xf002a['markerName']),_0x5883b0['writer']['remove'](_0x5f2b74));}},{'priority':'high'});}['_getChangeFromId'](_0x29bac3){return this['_changeIdToChange']['get'](_0x29bac3);}['_getViewForChange'](_0x58fa31){return this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=new Y(this['editor']['locale'],_0x58fa31),this['_changeView'];}['_initInteractions'](){this['editor']['model']['document']['selection']['observeMarkers']('revision'),this['on']('change:activeView',(_0x5e2b23,_0x424598,_0x5096ab,_0x5c8798)=>{_0x5c8798&&this['_balloon']['remove'](_0x5c8798),_0x5096ab&&(this['_balloon']['add']({'view':_0x5096ab,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0x5e78b8=this['editor']['editing'],_0x17ef72=this['_getChangeFromId'](_0x5096ab['changeId']);let _0x4917d3;if(_0x17ef72['data']['isOnRoot']){const _0x30decb=_0x5e78b8['view']['getDomRoot'](_0x17ef72['rootName']);_0x4917d3=Array['from'](_0x30decb['getClientRects']());}else{const _0x5655c7=this['editor']['model']['markers']['get']('revision:'+_0x5096ab['changeId']);_0x4917d3=Array['from'](_0x5e78b8['mapper']['markerNameToElements'](_0x5655c7['name']))['map'](_0x2264f9=>_0x5e78b8['view']['domConverter']['mapViewToDom'](_0x2264f9))['map'](_0x39cff0=>Array['from'](_0x39cff0['getClientRects']()))['flat']();}if(!this['_activeViewTarget'])return _0x4917d3[0x0];return _0x4917d3['find'](_0x4ebdab=>_0x4ebdab['top']-0x3<=this['_activeViewTarget']['y']&&_0x4ebdab['bottom']+0x3>=this['_activeViewTarget']['y']&&_0x4ebdab['left']-0x3<=this['_activeViewTarget']['x']&&_0x4ebdab['right']+0x3>=this['_activeViewTarget']['x'])||_0x4917d3[0x0];}}}),this['_balloon']['showStack']('revisionHistoryLabel'));}),this['on']('change:activeChange',(_0x25a18b,_0x31ee6d,_0x1c1aa7,_0x38c353)=>{this['activeView']=_0x1c1aa7?this['_getViewForChange'](_0x1c1aa7):null,this['editor']['model']['change'](()=>{const _0x5ede2e=this['editor']['editing'];_0x38c353&&(_0x38c353['data']['isOnRoot']?_0x5ede2e['view']['change'](_0x45e09c=>{_0x45e09c['removeClass']('ck-revision-history-root--active',_0x5ede2e['view']['document']['getRoot'](_0x38c353['rootName']));}):_0x5ede2e['reconvertMarker']('revision:'+_0x38c353['id'])),_0x1c1aa7&&(_0x1c1aa7['data']['isOnRoot']?_0x5ede2e['view']['change'](_0x1d8449=>{_0x1d8449['addClass']('ck-revision-history-root--active',_0x5ede2e['view']['document']['getRoot'](_0x1c1aa7['rootName']));}):_0x5ede2e['reconvertMarker']('revision:'+_0x1c1aa7['id']));});}),this['listenTo'](this['editor']['editing']['view']['document'],'mouseover',(_0x22af1a,_0x847b3c)=>{if(this['activeChange'])return;const _0x8c0da9=this['_findChangeIdFromDomTarget'](_0x847b3c['target']),_0x9a9d84=this['_changeIdToChange']['get'](_0x8c0da9);_0x9a9d84?(this['_activeViewTarget']={'x':_0x847b3c['domEvent']['x'],'y':_0x847b3c['domEvent']['y']},this['activeView']=this['_getViewForChange'](_0x9a9d84)):(this['_activeViewTarget']=null,this['activeView']=null);}),this['listenTo'](this['editor']['editing']['view']['document'],'mousedown',(_0x45cb76,_0x44b3bb)=>{const _0x57a01a=this['_findChangeIdFromDomTarget'](_0x44b3bb['target']),_0x2317fc=this['_changeIdToChange']['get'](_0x57a01a);_0x2317fc?(this['_activeViewTarget']={'x':_0x44b3bb['domEvent']['x'],'y':_0x44b3bb['domEvent']['y']},_0x2317fc===this['activeChange']?this['_balloon']['updatePosition']():this['activeChange']=_0x2317fc):(this['_activeViewTarget']=null,this['activeChange']=null);});}['_findChangeIdFromDomTarget'](_0x49f610){do{const _0x1674fa=_0x49f610['getAttribute']('data-change-id');if(_0x1674fa)return _0x1674fa;_0x49f610=_0x49f610['parent'];}while(_0x49f610);return null;}['_cleanMarkers'](){this['editor']['model']['change'](_0x2c68c8=>{for(const _0x383a3e of this['editor']['model']['markers'])_0x2c68c8['removeMarker'](_0x383a3e);});}}function tt(_0x30d66b,_0x587a37){return(_0x43a25b,_0x3ef041,_0x1ffa83)=>{if(!_0x1ffa83['consumable']['test'](_0x3ef041['markerRange'],_0x43a25b['name']))return;const _0x4cd4bf=_0x3ef041['markerRange']['getWalker'](),_0x3ba91e=_0x3ef041['markerRange']['start'],_0x28c4db=_0x30d66b['model']['schema'];let _0x1861b3=null,_0x3c238e=null,_0xe6ce3b=!0x1,_0x46e4ef=!0x1;for(const _0x399a42 of _0x4cd4bf){const _0x1d2ca6=_0x399a42['item'];_0xe6ce3b=_0xe6ce3b||_0x28c4db['isContent'](_0x1d2ca6);const _0x20f715=_0x1ffa83['mapper']['toViewElement'](_0x1d2ca6);if(_0x20f715&&_0x20f715['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x399a42['type']&&(_0x28c4db['isBlock'](_0x1d2ca6)&&!_0x28c4db['isLimit'](_0x1d2ca6)&&(_0x1d2ca6['nextSibling']||_0x3ba91e['isAtEnd']?_0x1861b3&&_0x1861b3['parent']==_0x1d2ca6||(_0x1861b3=_0x1d2ca6,_0x2d154f(_0x399a42['previousPosition']),_0x46e4ef=!0x0):_0x3c238e=_0x3c238e||_0x399a42['previousPosition']));}function _0x2d154f(_0x575965){const _0x2c8bfc=_0x1ffa83['mapper']['toViewPosition'](_0x575965),_0x71360f=_0x1ffa83['writer']['createUIElement']('span',{'class':'ck-suggestion-preview-marker-'+_0x587a37});_0x1ffa83['writer']['insert'](_0x2c8bfc,_0x71360f),_0x1ffa83['mapper']['bindElementToMarker'](_0x71360f,_0x3ef041['markerName']);}_0xe6ce3b||_0x46e4ef||!_0x3c238e||_0x2d154f(_0x3c238e);};}class yt extends _0x2ad413{constructor(_0x5bdd69){super(_0x5bdd69);const _0x21d2a6=_0x5bdd69['plugins']['get'](d);this['affectsData']=!0x1,this['listenTo'](_0x21d2a6,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x21d2a6,'change:isEnabled',()=>this['refresh']());}['execute'](){const _0x293ad3=this['editor'],_0x4e3930=_0x293ad3['plugins']['get'](d),_0x258c7b=_0x4e3930['isReady']?_0x4e3930['diff']['newRevisionId']:null;_0x293ad3['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x258c7b);}['refresh'](){const {isReady:_0xaf0c32,isEnabled:_0x530196,repository:_0x1a89b1,diff:_0xfdb1ae}=this['editor']['plugins']['get'](d),_0x25e211=_0xfdb1ae&&_0x1a89b1['getLaterVisibleRevision'](_0xfdb1ae['newRevisionId']);this['isEnabled']=_0xaf0c32&&_0x530196&&Boolean(_0x25e211);}}class bt extends _0x2ad413{['_step'];constructor(_0x3a9f4a,{direction:_0x445dce}){super(_0x3a9f4a);const _0x974613=_0x3a9f4a['plugins']['get'](d);this['affectsData']=!0x1,this['_step']='forward'===_0x445dce?0x1:-0x1,this['listenTo'](_0x974613,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x974613,'change:isEnabled',()=>this['refresh']()),this['listenTo'](_0x974613,'change:activeChange',()=>this['refresh']());}['execute'](){const _0x388223=this['editor'],_0x4c4922=_0x388223['plugins']['get'](d),{isNavigationMode:_0x39a151,currentChangeNumber:_0x35b6da}=_0x4c4922;let _0xfa30f1;if(_0x4c4922['activeChange']=_0x39a151?_0x4c4922['diff']['changes']['get'](_0x35b6da+this['_step']):_0x4c4922['diff']['changes']['first'],_0x4c4922['activeChange']['data']['isOnRoot'])_0xfa30f1=_0x388223['editing']['view']['getDomRoot'](_0x4c4922['activeChange']['rootName']);else{const _0x164d7b=_0x388223['model']['markers']['get']('revision:'+_0x4c4922['activeChange']['id']);_0xfa30f1=_0x45bca3(_0x388223['editing'],_0x164d7b);}_0x27298c({'target':_0xfa30f1,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0x2dc924,currentChangeNumber:_0x2e97fd,numberOfChanges:_0x171dbf,isReady:_0xe51d6b,isEnabled:_0x277f70}=this['editor']['plugins']['get'](d);this['isEnabled']=!!(_0x277f70&&_0xe51d6b&&_0x171dbf)&&(!_0x2dc924||(0x1===this['_step']?_0x2e97fd<_0x171dbf-0x1:_0x2e97fd>0x0));}}class _i extends _0x247511{constructor(_0x4c0a5b){super(_0x4c0a5b);const _0x32f86a=this['bindTemplate'],_0x43b833=new _0x5d3462(_0x4c0a5b),_0x2c20b3=new _0x5d3462(_0x4c0a5b);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',(_0xcf3429,_0x3e4158)=>_0xcf3429&&_0x3e4158>0x0),this['bind']('_statusText')['to'](this,'isReady',this,'currentChangeNumber',this,'numberOfChanges',this,'isNavigationMode',(_0x2aebc7,_0xfd2b05,_0x24e588,_0x90722)=>{if(!_0x2aebc7)return R(_0x4c0a5b,'Loading...');if(!_0x24e588)return R(_0x4c0a5b,'No\x20changes');const _0x314647=R(_0x4c0a5b,'NUMBER_OF_CHANGES',_0x24e588);return _0x90722?R(_0x4c0a5b,'X_OF_Y_CHANGES',[_0xfd2b05+0x1,_0x24e588]):_0x314647;}),_0x43b833['set']({'label':R(_0x4c0a5b,'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'}),_0x2c20b3['set']({'label':R(_0x4c0a5b,'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'}),_0x43b833['bind']('isEnabled')['to'](this,'isBackwardNavigationEnabled'),_0x2c20b3['bind']('isEnabled')['to'](this,'isForwardNavigationEnabled'),_0x43b833['on']('execute',()=>this['fire']('execute','backward')),_0x2c20b3['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',_0x32f86a['if']('_isStatusLabelVisible','ck-hidden',_0x4697c7=>!_0x4697c7)]},'children':[{'text':_0x32f86a['to']('isNavigationMode',_0x406cf7=>_0x406cf7?R(_0x4c0a5b,'EDIT_X_OF_Y_REVISIONS')+':\x20':R(_0x4c0a5b,'Total')+':\x20')}]},{'text':_0x32f86a['to']('_statusText')}]},new _0xf3e1d3(),{'tag':'div','attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0x43b833,_0x2c20b3]}]});}}const ce='ck-editor__editable__loading-overlay';class le extends _0x49d2b7{static get['pluginName'](){return'RevisionViewerLoadingOverlay';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['show'](){const _0x4d5218=this['editor']['editing']['view'];_0x4d5218['change'](_0x39c957=>{for(const _0x3a192c of _0x4d5218['document']['roots'])_0x39c957['addClass'](ce,_0x3a192c);});}['hide'](){const _0x40243d=this['editor']['editing']['view'];_0x40243d['change'](_0x2691fc=>{for(const _0x40f2a5 of _0x40243d['document']['roots'])_0x2691fc['removeClass'](ce,_0x40f2a5);});}}class m extends _0x49d2b7{static get['pluginName'](){return'RevisionViewerUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[d,le];}['init'](){const _0x532b54=this['editor'],_0x36c2f1=_0x532b54['plugins']['get'](d),_0x2640df=_0x532b54['plugins']['get'](le);_0x532b54['ui']['componentFactory']['add']('exitToEditing',_0x101849=>{const _0x3cb1e0=new _0x5d3462(_0x101849);return _0x3cb1e0['set']({'label':R(_0x101849,'Back\x20to\x20editing'),'icon':_0x416426['undo'],'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this['listenTo'](_0x3cb1e0,'execute',()=>{_0x532b54['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}),_0x3cb1e0;}),_0x532b54['ui']['componentFactory']['add']('restoreRevision',_0x4054b5=>{const _0x17cb0d=new _0x5d3462(_0x4054b5);return _0x17cb0d['set']({'label':R(_0x4054b5,'Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0x17cb0d['bind']('isEnabled')['to'](_0x532b54['commands']['get']('restoreRevision')),this['listenTo'](_0x17cb0d,'execute',()=>_0x532b54['execute']('restoreRevision')),_0x17cb0d;}),_0x532b54['ui']['componentFactory']['add']('changesNavigation',_0x133900=>{const _0x2267bf=new _i(_0x133900),_0x356ce9=_0x532b54['commands']['get']('showPreviousChange'),_0x5ad85a=_0x532b54['commands']['get']('showNextChange');return _0x2267bf['bind']('isBackwardNavigationEnabled')['to'](_0x356ce9,'isEnabled'),_0x2267bf['bind']('isForwardNavigationEnabled')['to'](_0x5ad85a,'isEnabled'),_0x2267bf['bind']('isReady','currentChangeNumber','numberOfChanges','isNavigationMode')['to'](_0x36c2f1),this['listenTo'](_0x2267bf,'execute',(_0x1d03d7,_0x27130c)=>{_0x532b54['execute']('forward'===_0x27130c?'showNextChange':'showPreviousChange');}),_0x2267bf;}),_0x2640df['show'](),_0x36c2f1['on']('change:isReady',(_0x1d83fc,_0x38abc9,_0x46e0da)=>{_0x46e0da?_0x2640df['hide']():_0x2640df['show']();});}}class mt extends at{['_resizeObserver']=null;constructor(_0x23e089,_0x39a8d2){super(_0x23e089,_0x39a8d2);const _0x326bce=this['bindTemplate'];this['set']({'label':R(_0x23e089,'Revision\x20name'),'_tooltipString':''}),this['fieldView']['placeholder']=R(_0x23e089,'Enter\x20the\x20revision\x20name'),this['extendTemplate']({'tag':'span','attributes':{'class':['ck-revision-history-sidebar__revision-name'],'data-cke-tooltip-text':_0x326bce['to']('_tooltipString'),'data-cke-tooltip-position':'s','data-cke-tooltip-class':'ck-tooltip_multi-line'}});}['render'](){super['render'](),this['_resizeObserver']=new pt(this['fieldView']['element'],()=>this['_updateTooltipText']()),this['listenTo'](this['fieldView'],'input',()=>this['_updateTooltipText']());}['destroy'](){super['destroy'](),this['_resizeObserver']&&this['_resizeObserver']['destroy']();}['_updateTooltipText'](){const _0x302023=this['fieldView']['element'];this['_tooltipString']=_0x302023['scrollWidth']>_0x302023['clientWidth']&&_0x302023['value']||'';}}class ti extends _0x247511{constructor(_0x2ec99d,_0x6603df,_0x180f09){super(_0x2ec99d);const _0x17dd2e=new _0x1a86ac();_0x17dd2e['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 _0x499751=['ck','ck-revision-history-sidebar__revision-author'];_0x180f09&&_0x499751['push']('ck-revision-history-sidebar__revision-author_creator');const _0x54b928=[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':R(_0x2ec99d,_0x180f09?'Revision\x20creator':'Revision\x20author')},'children':[_0x17dd2e,_0x6603df['name']]}];this['setTemplate']({'tag':'li','attributes':{'class':_0x499751},'children':_0x54b928});}}function ni(_0x292911,_0x1277f9){const _0xe1b3f7=_0x292911['bindTemplate'],_0x202e95=_0x292911['locale'],_0x37ae7b=_0x2d6127(_0x202e95);_0x37ae7b['panelPosition']='sw';const _0x50a0a9=function(_0x228ad3,_0x10ef99){const _0x1a40cf=function(_0x5306cf,_0x27987c){const _0x2777b9=_0x5306cf['locale'],_0x310ad2={'Compare\x20against\x20selected':R(_0x2777b9,'Compare\x20against\x20selected'),'Name\x20this\x20revision':R(_0x2777b9,'Name\x20this\x20revision'),'Restore\x20this\x20revision':R(_0x2777b9,'Restore\x20this\x20revision')};return _0x27987c['map'](_0x3f1c43=>{const _0x25428e=_0x310ad2[_0x3f1c43['name']];return _0x25428e&&_0x25428e!==_0x3f1c43['name']&&(_0x3f1c43['name']=_0x25428e),_0x3f1c43;});}(_0x228ad3,_0x10ef99),_0x500e12=new _0xa5d0e5();for(const _0x1e5adf of _0x1a40cf){const _0x40efc7={'type':'button','model':new to({'label':_0x1e5adf['name'],'class':_0x1e5adf['class'],'withText':!0x0,'role':'menuitem','_action':_0x1e5adf['action']})};_0x40efc7['model']['bind']('isEnabled')['to'](_0x228ad3,'isActionsDropdownOpen',_0x26d335=>'function'!=typeof _0x1e5adf['isEnabled']||(!_0x26d335||_0x1e5adf['isEnabled'](_0x228ad3))),_0x500e12['add'](_0x40efc7);}return _0x500e12;}(_0x292911,_0x1277f9);return _0x292911['bind']('isActionsDropdownOpen')['to'](_0x37ae7b,'isOpen'),_0x37ae7b['buttonView']['set']({'label':R(_0x202e95,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x416426['threeVerticalDots']}),_0x37ae7b['extendTemplate']({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0xe1b3f7['if']('isActionsDropdownOpen','ck-on')]},'on':{'click':_0xe1b3f7['to'](_0x490639=>_0x490639['stopPropagation']())}}),_0x37ae7b['on']('execute',_0x196a7a=>{_0x292911['isReady']&&'function'==typeof _0x196a7a['source']['_action']&&_0x196a7a['source']['_action'](_0x292911);}),_0x399c0b(_0x37ae7b,_0x50a0a9,{'role':'menu'}),_0x37ae7b['listenTo'](_0x292911,'change:isActionsDropdownOpen',(_0x585f15,_0x3b39f8,_0x597458)=>{if(_0x597458)for(const _0x4a94f6 of _0x37ae7b['listView']['items']){const _0x1616e0=_0x4a94f6['children']['first'],_0x3faef7=_0x1277f9['find'](_0x561343=>_0x561343['action']===_0x1616e0['_action'])['isVisible'];_0x4a94f6['isVisible']=void 0x0===_0x3faef7||_0x3faef7(_0x292911);}}),_0x37ae7b;}class ai extends/* #__PURE__ -- @preserve */
|
|
26
|
+
_0x572151(_0x247511){['id'];['revisionNameView'];['revisionActionsView'];['_revision'];['_requireRevisionName'];constructor(_0x2873b0,_0x421042,_0x4e5562,_0xbf5037){super(_0x2873b0);const _0x2f2ca1=this['bindTemplate'],_0x4afd96=function(_0xacf12a,_0x1a434a){const _0x3217f8=Array['from'](_0x1a434a['authors'])['filter'](_0xc6e12d=>_0xc6e12d!=_0x1a434a['creator']);return _0x1a434a['creator']&&_0x3217f8['unshift'](_0x1a434a['creator']),_0x3217f8['map'](_0xa5045=>new ti(_0xacf12a,_0xa5045,_0xa5045==_0x1a434a['creator']));}(_0x2873b0,_0x421042);this['id']=_0x421042['id'],this['_revision']=_0x421042,this['_requireRevisionName']=_0xbf5037,this['bind']('name','createdAt')['to'](_0x421042),this['bind']('_createdAtFormatted')['to'](this,'createdAt',_0x4826e7=>{return _0x267775=_0x2873b0['uiLanguage'],(_0x44a2fd=_0x4826e7)['toLocaleDateString'](_0x267775,{'month':'long','day':'numeric'})+',\x20'+_0x44a2fd['toLocaleTimeString'](_0x267775,{'hour':'numeric','minute':'numeric'});var _0x267775,_0x44a2fd;}),this['set']('isSelected',!0x1),this['set']('isHighlighted',!0x1),this['set']('isActionsDropdownOpen',!0x1),this['set']('isReady',!0x1),this['set']('isEnabled',!0x1),this['revisionNameView']=new mt(_0x2873b0,_0x377b24),this['revisionNameView']['fieldView']['extendTemplate']({'attributes':{'maxlength':'220'}}),this['revisionNameView']['fieldView']['bind']('value')['to'](this,'name',_0x5ec4e0=>_0x5ec4e0||this['_createdAtFormatted']),this['revisionNameView']['bind']('isEnabled')['to'](this,'isSelected',this,'isEnabled',(_0x364bef,_0x322ea1)=>_0x364bef&&_0x322ea1),this['revisionActionsView']=_0x4e5562&&_0x4e5562['length']?ni(this,_0x4e5562):'',this['revisionActionsView']&&this['revisionActionsView']['bind']('isEnabled')['to'](this),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision-wrapper',_0x2f2ca1['if']('isConfirm','ck-revision-history-sidebar__revision-wrapper_confirmation_visible')]},'children':[{'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision',_0x2f2ca1['if']('isEnabled','ck-disabled',_0x3023d5=>!_0x3023d5),_0x2f2ca1['if']('isSelected','ck-revision-history-sidebar__revision_selected'),_0x2f2ca1['if']('isHighlighted','ck-revision-history-sidebar__revision_highlighted'),_0x2f2ca1['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':_0x2f2ca1['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':_0x4afd96}]},this['revisionActionsView']],'on':{'click':_0x2f2ca1['to'](_0x4cfe8c=>{_0x4cfe8c['srcElement']['closest']('.ck-thread__remove-confirm')||this['isReady']&&this['isEnabled']&&this['fire']('select',{'id':this['id']});})}}]});}['render'](){super['render']();const _0x5c0b28=this['revisionNameView']['fieldView']['element'];this['listenTo'](_0x5c0b28,'change',()=>{this['_requireRevisionName']&&!_0x5c0b28['value']||this['fire']('setName',{'id':this['id'],'name':_0x5c0b28['value']}),_0x5c0b28['value']||(_0x5c0b28['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(_0x309b51,_0x5d3570){const _0x650843=_0x4d4910['fromJSDate'](_0x309b51)['setLocale'](_0x5d3570),_0x4da9f5=_0x4d4910['local'](),_0x2820cd=_0x4da9f5['minus']({'days':0x1})['startOf']('day');let _0x3eb7fd,_0x51789c;return _0x650843['hasSame'](_0x4da9f5,'day')?(_0x3eb7fd=_0x650843['startOf']('day')['toJSDate'](),_0x51789c=_0x650843['toRelativeCalendar']()):_0x650843['hasSame'](_0x2820cd,'day')?(_0x3eb7fd=_0x2820cd['toJSDate'](),_0x51789c=_0x650843['toRelativeCalendar']()):_0x650843['hasSame'](_0x4da9f5,'week')?(_0x3eb7fd=_0x650843['startOf']('week')['toJSDate'](),_0x51789c=_0x650843['weekdayLong']||''):_0x650843['hasSame'](_0x4da9f5,'year')?(_0x3eb7fd=_0x650843['startOf']('month')['toJSDate'](),_0x51789c=_0x650843['monthLong']||''):(_0x3eb7fd=_0x650843['startOf']('year')['toJSDate'](),_0x51789c=String(_0x650843['year'])),{'startDate':_0x3eb7fd,'localizedPeriodName':_0x51789c};}class mi extends _0x247511{['startDate'];['revisionViews'];['_revisionActions'];['_requireRevisionName'];constructor(_0x23ee25,_0x22552b,_0x48e5cb,_0x585ee7){super(_0x23ee25);const _0x41e366=di(_0x22552b,this['locale']['uiLanguage'])['localizedPeriodName'];this['startDate']=_0x22552b,this['revisionViews']=this['createCollection'](),this['_revisionActions']=_0x48e5cb,this['_requireRevisionName']=_0x585ee7,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':_0x41e366}]},{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__time-period__revisions']},'children':this['revisionViews']}]});}['addRevision'](_0x2ba083){const _0x4cb72c=new ai(this['locale'],_0x2ba083,this['_revisionActions'],this['_requireRevisionName']);this['revisionViews']['add'](_0x4cb72c);}['removeRevision'](_0x312fc0){const _0x2e3e6e=this['revisionViews']['find'](_0x3ae955=>_0x3ae955['id']===_0x312fc0['id']);this['revisionViews']['remove'](_0x2e3e6e);}}class as extends _0x247511{constructor(_0x3e7624){super(_0x3e7624);const _0x4e53bb=new _0x1a86ac();_0x4e53bb['content']=_0x416426['history'],this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all','ck-revision-history-sidebar__header']},'children':[_0x4e53bb,{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__header__label']},'children':[R(_0x3e7624,'Revision\x20history')]}]});}}class ci extends _0x247511{['timePeriodViews'];['_revisions'];['_revisionActions'];['_requireRevisionName'];constructor(_0x119162,_0x3e9a72,_0x290520,_0x119b61){super(_0x119162);const _0x2f7f0e=this['bindTemplate'];this['timePeriodViews']=this['createCollection'](),this['timePeriodViews']['delegate']('select')['to'](this),this['timePeriodViews']['delegate']('setName')['to'](this),this['_revisions']=_0x3e9a72,this['_revisionActions']=_0x290520,this['_requireRevisionName']=_0x119b61,this['on']('select',(_0x4b62d4,_0x13888e)=>{this['fire']('revisionSelected',_0x13888e);}),this['on']('setName',(_0x2fda9c,_0x423ad5)=>{this['fire']('revisionSetName',_0x423ad5);}),this['set']('isEnabled',!0x1),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-rounded-corners','ck-revision-history-sidebar']},'children':[new as(_0x119162),{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__timeline',_0x2f7f0e['if']('isEnabled','ck-disabled',_0x14344b=>!_0x14344b)]},'children':this['timePeriodViews']}]});}['render'](){super['render']();for(const _0x504902 of this['_revisions'])this['_addRevision'](_0x504902);this['_revisions']['on']('add',(_0x4cac5b,_0x30ef57)=>{this['_addRevision'](_0x30ef57);}),this['_revisions']['on']('remove',(_0x5b4991,_0x2fc3c1)=>{this['_removeRevision'](_0x2fc3c1);});}get['revisionViews'](){return this['timePeriodViews']['map'](_0x10bf7d=>_0x10bf7d['revisionViews']['map'](_0x2a2941=>_0x2a2941))['flat']();}['selectRevision'](_0x444b3c){for(const _0x232984 of this['revisionViews'])_0x444b3c&&_0x444b3c['id']===_0x232984['id']?_0x232984['select']():_0x232984['deselect']();}['highlightRevisions'](_0x2e4d4a){for(const _0x5087f4 of this['revisionViews'])_0x2e4d4a['some'](({id:_0x63926e})=>_0x63926e===_0x5087f4['id'])?_0x5087f4['highlight']():_0x5087f4['unhighlight']();}['_addRevision'](_0x59ede2){const _0x19ef98=di(_0x59ede2['createdAt'],this['locale']['uiLanguage'])['startDate'];let _0x2be06e=this['timePeriodViews']['get'](0x0);_0x2be06e&&_0x2be06e['startDate']['getTime']()===_0x19ef98['getTime']()||(_0x2be06e=new mi(this['locale'],_0x19ef98,this['_revisionActions'],this['_requireRevisionName']),this['timePeriodViews']['add'](_0x2be06e)),_0x2be06e['addRevision'](_0x59ede2);}['_removeRevision'](_0x5ce654){const _0x4a0225=di(_0x5ce654['createdAt'],this['locale']['uiLanguage'])['startDate'];this['_getTimePeriodViewByStartDate'](_0x4a0225)['removeRevision'](_0x5ce654);}['_getTimePeriodViewByStartDate'](_0x180cdb){return this['timePeriodViews']['find'](_0xbc9841=>_0xbc9841['startDate']['getTime']()===_0x180cdb['getTime']());}}class g extends _0x49d2b7{['_revisionViewer'];['_revisionsRepository'];['_sidebarView'];static ['defaultRevisionActions']=/* #__PURE__ -- @preserve */
|
|
27
27
|
((()=>['compareAgainstSelected','restoreRevision','nameRevision'])());static ['availableRevisionActions']=/* #__PURE__ -- @preserve */
|
|
28
|
-
|
|
29
|
-
rt(it){['_ui'];get['ui'](){return this['_ui'];}constructor(_0x4ac6fc,_0x1e56e9){super(_0x1e56e9),this['sourceElement']=_0x4ac6fc,this['model']['document']['createRoot']();const _0x41ab8e=new st(this['locale'],this['editing']['view'],{'shouldToolbarGroupWhenFull':!0x0});this['_ui']=new et(this,_0x41ab8e);}['destroy'](){return this['updateSourceElement'](),this['ui']['destroy'](),super['destroy']();}static async['create'](_0x4e08cc,_0x213993){const _0x2e3441=new this(_0x4e08cc,_0x213993);return await _0x2e3441['initPlugins'](),await _0x2e3441['ui']['init'](_0x4e08cc),await _0x2e3441['data']['init'](_0x2e3441['config']['get']('initialData')||''),_0x2e3441['fire']('ready'),_0x2e3441;}}const p=['RevisionHistoryUI','RestrictedEditingMode'];class k extends _0x27f686{['result'];static get['pluginName'](){return'RevisionViewerIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x5392fd){function _0x19d93d(_0x18bf98){return _0x18bf98['map'](_0x144e15=>String['fromCharCode'](_0x144e15))['join']('');}super(_0x5392fd),this['result']='end',_0x5392fd[_0x19d93d([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x19d93d([0x76,0x69,0x65,0x77])][_0x19d93d([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x19d93d([0x61,0x75,0x74,0x6f]),_0x5392fd[_0x19d93d([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x19d93d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x19d93d([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x19d93d([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x19d93d([0x6f,0x6b])});}}class H extends _0x27f686{['_viewerEditor'];static get['pluginName'](){return'RevisionHistory';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[l,u];}constructor(_0x474e5e){if(super(_0x474e5e),!this['editor']['config']['get']('revisionHistory'))throw new _0xa442d4('revision-history-missing-configuration',this);this['_viewerEditor']=null,this['editor']['config']['define']('revisionHistory.showRevisionViewerCallback',_0x2286ff=>this['_showRevisionViewer']({..._0x2286ff,'translations':this['editor']['locale']['translations']})),this['editor']['config']['define']('revisionHistory.closeRevisionViewerCallback',_0x21530c=>this['_closeRevisionViewer'](_0x21530c)),this['editor']['config']['define']('revisionHistory.restoreRevisionCallback',_0x5901a5=>this['_restoreRevision'](_0x5901a5)),this['editor']['config']['define']('revisionHistory.requireRevisionName',!0x1),this['_enhanceShowRevisionViewerCallback'](),this['_enhanceCloseRevisionViewerCallback']();}set['adapter'](_0x17f5a3){this['editor']['plugins']['get']('RevisionTracker')['adapter']=_0x17f5a3;}get['adapter'](){return this['editor']['plugins']['get']('RevisionTracker')['adapter'];}['addRevisionData'](_0x168bc4){return this['editor']['plugins']['get']('RevisionTracker')['addRevisionData'](_0x168bc4);}['getRevision'](_0x247bae){return this['editor']['plugins']['get']('RevisionsRepository')['getRevision'](_0x247bae);}['getRevisions'](_0x578624){return this['editor']['plugins']['get']('RevisionsRepository')['getRevisions'](_0x578624||{'toJSON':!0x1});}['_getRevisionViewerEditorConfig'](){const _0x2d057c=this['editor'],_0x171956=_0x25e631(_0x2d057c,p),_0xb0a30d=_0x2d057c['plugins']['get']('RevisionTracker'),_0x3573a0=_0x2d057c['plugins']['get']('Users')['users'];return _0x171956['toolbar']=['exitToEditing','restoreRevision','changesNavigation'],delete _0x171956['lazyRoots'],(_0x171956['plugins']['push'](k,d,m,class extends _0x27f686{static get['requires'](){return[d,'Users'];}['init'](){const _0x510da8=this['editor']['plugins']['get']('Users');for(const _0x32d731 of _0x3573a0)_0x32d731['isAnonymous']||_0x510da8['getUser'](_0x32d731['id'])||_0x510da8['addUser'](_0x32d731);const _0x2e4cf0=_0xb0a30d['repository']['getRevisions']();let _0x393b6a=null;const _0x41c330=this['editor']['plugins']['get']('RevisionViewer');_0x41c330['adapter']=_0xb0a30d['adapter'],_0x41c330['bind']('isEnabled')['to'](_0xb0a30d),this['editor']['commands']['get']('restoreRevision')['bind']('isEnabled')['to'](_0x2d057c,'isReadOnly',_0x1307d1=>!_0x1307d1);for(const _0x1d5577 of _0x2e4cf0){const _0x4bd387=null===_0x1d5577['creator'];if(_0x4bd387&&_0x1d5577['toVersion']===_0x1d5577['fromVersion'])continue;const _0x1574e3=_0x1d5577['toJSON']();_0x41c330['addRevisionData'](_0x1574e3,(_0x531c53,_0x167b7c,_0x33923c)=>{if(_0x4bd387){if(_0x393b6a)_0x393b6a['_update'](_0x531c53,_0x167b7c);else{if(!_0x167b7c){const _0x3bf1e6=_0x33923c['toJSON']();_0x3bf1e6['id']=_0x27b216(),_0xb0a30d['saveRevision'](_0x3bf1e6,_0x33923c['toVersion'])['then'](_0x84b91=>{_0x393b6a=_0x84b91;});}}}else _0x1d5577['_update'](_0x531c53,_0x167b7c);});}}},g),_0x171956);}['_enhanceShowRevisionViewerCallback'](){const _0x5910d3=this['editor']['config']['get']('revisionHistory')['showRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.showRevisionViewerCallback',async()=>{this['editor']['enableReadOnlyMode']('revision-history-viewer-opened');const _0x155983=this['editor']['plugins']['get']('RevisionTracker');if(this['editor']['plugins']['has']('Autosave')){const _0x4c5988=this['editor']['plugins']['get']('Autosave');await _0x4c5988['save']();}else await _0x155983['update']();if(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('Dialog')){const _0x5e4bf4=this['editor']['plugins']['get']('Dialog');_0x5e4bf4['isOpen']&&_0x5e4bf4['hide']();}const _0x357527=this['_getRevisionViewerEditorConfig']();return _0x5910d3(_0x357527)['then'](_0x34d263=>{return(this['_viewerEditor']=_0x34d263,this['editor']['plugins']['has']('Annotations'))&&this['editor']['plugins']['get']('Annotations')['refreshVisibility'](),_0x34d263;})['catch'](_0x4e531c=>(console['error'](_0x4e531c),this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),null));});}['_enhanceCloseRevisionViewerCallback'](){const _0x3ba5cd=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'](),_0x3ba5cd(this['_viewerEditor'])['then'](()=>{if(this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),this['_viewerEditor']=null,this['editor']['plugins']['has']('Annotations')){const _0x3a8313=this['editor']['plugins']['get']('Annotations');_0x3a8313['refreshVisibility'](),_0x3a8313['refreshPositioning']();}})));}['_showRevisionViewer'](_0x42a9aa){const _0x3bbb9a=this['editor']['config']['get']('revisionHistory.editorContainer'),_0x6daf4c=this['editor']['config']['get']('revisionHistory.viewerContainer'),_0x526f1d=this['editor']['config']['get']('revisionHistory.viewerEditorElement');return w['create'](_0x526f1d,_0x42a9aa)['then'](_0x27c4c8=>(_0x6daf4c['style']['display']='block',_0x3bbb9a['style']['display']='none',_0x27c4c8));}['_closeRevisionViewer'](_0x1ca7d6){const _0x24039f=this['editor']['config']['get']('revisionHistory.editorContainer');return this['editor']['config']['get']('revisionHistory.viewerContainer')['style']['display']='none',_0x24039f['style']['display']='',_0x1ca7d6['destroy']();}async['_restoreRevision'](_0x30d63e){const _0x350cff=this['editor'],_0x43a7f3=this['_viewerEditor']['plugins']['get']('RevisionViewer'),_0x1764aa=_0x350cff['plugins']['get']('RevisionTracker'),_0x560ec5=_0x43a7f3['repository']['getRevision'](_0x30d63e);let _0x2ad032,_0x94cb32,_0x1341cb;try{_0x2ad032=await _0x43a7f3['getRevisionData'](_0x560ec5),_0x94cb32=await _0x43a7f3['getRevisionRootsAttributes'](_0x560ec5);}catch(_0x5f4995){return void console['error'](_0x5f4995);}_0x350cff['model']['change'](_0x537cc5=>{for(const _0x576d71 of Array['from'](_0x350cff['model']['markers']['getMarkersGroup']('restrictedEditingException')))_0x537cc5['removeMarker'](_0x576d71);}),_0x43a7f3['isReady']=!0x1,_0x350cff['model']['enqueueChange'](_0x370153=>{_0x370153['setSelection'](null),_0x370153['removeSelectionAttribute'](_0x350cff['model']['document']['selection']['getAttributeKeys']());const _0x2e5880=Object['keys'](_0x2ad032);for(const _0x47017c of _0x350cff['model']['document']['roots'])'$graveyard'!=_0x47017c['rootName']&&_0x47017c['isAttached']()&&!_0x2e5880['includes'](_0x47017c['rootName'])&&_0x370153['detachRoot'](_0x47017c);for(const _0x174291 of _0x2e5880){let _0x4efaef=_0x350cff['model']['document']['getRoot'](_0x174291);_0x4efaef&&_0x4efaef['isAttached']()||(_0x4efaef=_0x370153['addRoot'](_0x174291));const _0x41817f=_0x94cb32[_0x174291],_0x5bf2be=Object['keys'](_0x41817f),_0x5a02e3=_0x2ad032[_0x174291];for(const _0x245c35 of _0x4efaef['getAttributeKeys']())_0x5bf2be['includes'](_0x245c35)||_0x370153['removeAttribute'](_0x245c35,_0x4efaef);for(const _0x7bd368 of _0x5bf2be)_0x370153['setAttribute'](_0x7bd368,_0x94cb32[_0x174291][_0x7bd368],_0x4efaef);_0x370153['remove'](_0x370153['createRangeIn'](_0x4efaef)),_0x370153['insert'](_0x350cff['data']['parse'](_0x5a02e3,_0x4efaef),_0x4efaef,0x0);}});const _0x266fcc=R(_0x350cff['locale'],'Restored');if(_0x560ec5['name'])_0x1341cb=-0x1==_0x560ec5['name']['indexOf'](_0x266fcc)?_0x266fcc+':\x20'+_0x560ec5['name']:_0x560ec5['name'];else _0x1341cb=_0x266fcc+':\x20'+(_0x560ec5['createdAt']['toLocaleDateString'](_0x350cff['locale']['uiLanguage'],{'month':'long','day':'numeric'})+',\x20'+_0x560ec5['createdAt']['toLocaleTimeString'](_0x350cff['locale']['uiLanguage'],{'hour':'numeric','minute':'numeric'}));return await _0x1764aa['saveRevision']({'name':_0x1341cb}),_0x43a7f3['isReady']=!0x0,_0x350cff['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}}export{a as Revision,H as RevisionHistory,u as RevisionHistoryUI,l as RevisionTracker,d as RevisionViewer,ge as RevisionViewerLoadingOverlay,m as RevisionViewerUI,j as RevisionsRepository,g as RevisionsSidebar};
|
|
28
|
+
Rt();static get['pluginName'](){return'RevisionsSidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[d];}constructor(_0x171b53){super(_0x171b53),this['_revisionViewer']=_0x171b53['plugins']['get'](d),this['_revisionsRepository']=this['_revisionViewer']['repository'],this['_sidebarView']=null;}['init'](){const _0x3e9ce5=this['_revisionsRepository']['_revisions'],_0x29d406=this['_createRevisionActions'](),_0x5c4ce4=this['editor']['config']['get']('revisionHistory.viewerSidebarContainer');this['_sidebarView']=new ci(this['editor']['locale'],_0x3e9ce5,_0x29d406,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',(_0x29ef56,_0x481b4a)=>{_0x481b4a['revisionViews']['on']('add',(_0x46e917,_0x5a233e)=>{_0x5a233e['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)),_0x5c4ce4['appendChild'](this['_sidebarView']['element']);}['destroy'](){this['_sidebarView']['element']['remove'](),this['_sidebarView']['destroy']();}['_handleEditorDataReady'](){const _0x3275cd=this['_revisionsRepository']['getRevision'](0x0);if(_0x3275cd){const _0x3d9806=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x3275cd['id']);this['_revisionViewer']['compare'](_0x3275cd,_0x3d9806);}}['_handleRevisionSelected'](_0x1cdc2a,_0x33de7a){const _0x227ddd=this['_revisionsRepository']['getRevision'](_0x33de7a['id']),_0x1b6385=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x227ddd['id']);this['_revisionViewer']['compare'](_0x227ddd,_0x1b6385);}['_handleRevisionSetName'](_0xd7982a,_0x573d35){this['_revisionsRepository']['getRevision'](_0x573d35['id'])['setName'](_0x573d35['name']);}['_handleDiffChange'](_0x1018b4,_0xe7449c,_0x4f6ad3){const _0x5b0f2c=this['_revisionsRepository']['getRevisionsInDiff'](_0x4f6ad3);_0x5b0f2c['length']>0x2?(this['_sidebarView']['highlightRevisions'](_0x5b0f2c),this['_sidebarView']['selectRevision'](null)):(this['_sidebarView']['highlightRevisions']([]),this['_sidebarView']['selectRevision'](_0x5b0f2c[0x0]));}['_createRevisionActions'](){const _0x41f419=this['editor'],_0x24ad99=g['availableRevisionActions'],_0x31352c=_0x41f419['config']['get']('revisionHistory.revisionActions')||g['defaultRevisionActions'];if(_0x31352c['length'])return _0x31352c['map'](_0x2032e6=>{const _0x2892ef='string'==typeof _0x2032e6?Object['assign']({},_0x24ad99[_0x2032e6]):_0x2032e6;return _0x2892ef['action']=_0x2892ef['action']['bind'](this,_0x41f419),_0x2892ef['isVisible']&&(_0x2892ef['isVisible']=_0x2892ef['isVisible']['bind'](this,_0x41f419)),_0x2892ef;});}}function Rt(){return{'compareAgainstSelected':{'name':'Compare\x20against\x20selected','action':({plugins:_0xaf5169},_0x4fc410)=>{const _0x30dc98=_0xaf5169['get'](d),_0x5c0872=_0x30dc98['repository'];let _0x22abc0=_0x30dc98['diff']['newRevisionId'],_0x142a1a=_0x4fc410['id'];_0x5c0872['getIndex'](_0x22abc0)>_0x5c0872['getIndex'](_0x142a1a)&&([_0x22abc0,_0x142a1a]=[_0x142a1a,_0x22abc0]),_0x30dc98['compare'](_0x22abc0,_0x142a1a);},'isVisible':({plugins:_0xcb316d},_0x2eaba4)=>{const _0x385c0f=_0xcb316d['get'](d);return!(_0x385c0f['repository']['getRevisionsInDiff'](_0x385c0f['diff'])['length']>0x2)&&!_0x2eaba4['isSelected'];}},'restoreRevision':{'name':'Restore\x20this\x20revision','action':(_0x54bb2a,{id:_0x23ebd2})=>{_0x54bb2a['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x23ebd2);},'isVisible':({plugins:_0x10f792},_0x19eb67)=>!!_0x10f792['get'](d)['repository']['getLaterVisibleRevision'](_0x19eb67['id'])},'nameRevision':{'name':'Name\x20this\x20revision','action':({plugins:_0x66cd5f},{id:_0x4d9ae3,revisionNameView:_0x127873})=>{const _0x48452c=_0x66cd5f['get'](d),_0x8a1339=_0x48452c['repository']['getEarlierVisibleRevision'](_0x4d9ae3);_0x48452c['compare'](_0x4d9ae3,_0x8a1339),_0x127873['focus'](),_0x127873['fieldView']['select']();}}};}class et extends ot{['_view'];['_toolbarConfig'];['_elementReplacer'];get['view'](){return this['_view'];}constructor(_0x2b1962,_0x484e26){super(_0x2b1962),this['_view']=_0x484e26,this['_toolbarConfig']=ht(_0x2b1962['config']['get']('toolbar')),this['_elementReplacer']=new ct();}get['element'](){return this['view']['element'];}['init'](_0x46ffc3){const _0x275e4d=this['editor'],_0x5d5d80=this['view'],_0x20c6d5=_0x275e4d['editing']['view'],_0x3d8477=_0x5d5d80['editable'],_0x5b5ac0=_0x20c6d5['document']['getRoot']();_0x3d8477['name']=_0x5b5ac0['rootName'],_0x5d5d80['render']();const _0x5ea889=_0x3d8477['element'];this['setEditableElement'](_0x3d8477['name'],_0x5ea889),_0x5d5d80['editable']['bind']('isFocused')['to'](this['focusTracker']),_0x20c6d5['attachDomRoot'](_0x5ea889),this['_elementReplacer']['replace'](_0x46ffc3,this['element']),this['_initToolbar'](),this['fire']('ready');}['destroy'](){super['destroy']();const _0xe185bd=this['view'],_0x2f3867=this['editor']['editing']['view'];this['_elementReplacer']['restore'](),_0x2f3867['detachDomRoot'](_0xe185bd['editable']['name']),_0xe185bd['destroy']();}['_initToolbar'](){const _0x1f5725=this['view'];_0x1f5725['stickyPanel']['bind']('isActive')['to'](this['focusTracker'],'isFocused'),_0x1f5725['stickyPanel']['limiterElement']=_0x1f5725['element'],_0x1f5725['stickyPanel']['bind']('viewportTopOffset')['to'](this,'viewportOffset',({top:_0x41c39c})=>_0x41c39c),_0x1f5725['toolbar']['fillFromConfig'](this['_toolbarConfig'],this['componentFactory']),this['addToolbar'](_0x1f5725['toolbar']);}}class st extends dt{['_editable'];['stickyPanel'];['toolbar'];get['editable'](){return this['_editable'];}constructor(_0x1586d8,_0x503e66,_0x311e6f={}){super(_0x1586d8),this['stickyPanel']=new lt(_0x1586d8),this['toolbar']=new nt(_0x1586d8,{'shouldGroupWhenFull':_0x311e6f['shouldToolbarGroupWhenFull']}),this['_editable']=new ut(_0x1586d8,_0x503e66);}['render'](){super['render'](),this['stickyPanel']['content']['add'](this['toolbar']),this['top']['add'](this['stickyPanel']),this['main']['add'](this['editable']);}}class w extends/* #__PURE__ -- @preserve */
|
|
29
|
+
rt(it){['_ui'];get['ui'](){return this['_ui'];}constructor(_0x2ddca0,_0x536dd1){super(_0x536dd1),this['sourceElement']=_0x2ddca0,this['model']['document']['createRoot']();const _0x36fe02=new st(this['locale'],this['editing']['view'],{'shouldToolbarGroupWhenFull':!0x0});this['_ui']=new et(this,_0x36fe02);}['destroy'](){return this['updateSourceElement'](),this['ui']['destroy'](),super['destroy']();}static async['create'](_0x12ce19,_0x516bb0){const _0xf4a797=new this(_0x12ce19,_0x516bb0);return await _0xf4a797['initPlugins'](),await _0xf4a797['ui']['init'](_0x12ce19),await _0xf4a797['data']['init'](_0xf4a797['config']['get']('initialData')||''),_0xf4a797['fire']('ready'),_0xf4a797;}}const p=['RevisionHistoryUI','RestrictedEditingMode'];class k extends _0x49d2b7{['result'];static get['pluginName'](){return'RevisionViewerIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x2dc361){function _0x4f033c(_0x39aa8a){return _0x39aa8a['map'](_0x59189b=>String['fromCharCode'](_0x59189b))['join']('');}super(_0x2dc361),this['result']='end',_0x2dc361[_0x4f033c([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4f033c([0x76,0x69,0x65,0x77])][_0x4f033c([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x4f033c([0x61,0x75,0x74,0x6f]),_0x2dc361[_0x4f033c([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x4f033c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x4f033c([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x4f033c([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x4f033c([0x6f,0x6b])});}}class H extends _0x49d2b7{['_viewerEditor'];static get['pluginName'](){return'RevisionHistory';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[l,u];}constructor(_0x70e0ea){if(super(_0x70e0ea),!this['editor']['config']['get']('revisionHistory'))throw new _0x1e9bc5('revision-history-missing-configuration',this);this['_viewerEditor']=null,this['editor']['config']['define']('revisionHistory.showRevisionViewerCallback',_0x592d0a=>this['_showRevisionViewer']({..._0x592d0a,'translations':this['editor']['locale']['translations']})),this['editor']['config']['define']('revisionHistory.closeRevisionViewerCallback',_0x3a6850=>this['_closeRevisionViewer'](_0x3a6850)),this['editor']['config']['define']('revisionHistory.restoreRevisionCallback',_0x1b8fef=>this['_restoreRevision'](_0x1b8fef)),this['editor']['config']['define']('revisionHistory.requireRevisionName',!0x1),this['_enhanceShowRevisionViewerCallback'](),this['_enhanceCloseRevisionViewerCallback']();}set['adapter'](_0x39ea11){this['editor']['plugins']['get']('RevisionTracker')['adapter']=_0x39ea11;}get['adapter'](){return this['editor']['plugins']['get']('RevisionTracker')['adapter'];}['addRevisionData'](_0x573b7a){return this['editor']['plugins']['get']('RevisionTracker')['addRevisionData'](_0x573b7a);}['getRevision'](_0x31bf19){return this['editor']['plugins']['get']('RevisionsRepository')['getRevision'](_0x31bf19);}['getRevisions'](_0x1d8c1d){return this['editor']['plugins']['get']('RevisionsRepository')['getRevisions'](_0x1d8c1d||{'toJSON':!0x1});}['_getRevisionViewerEditorConfig'](){const _0x3e57dc=this['editor'],_0x46797a=_0x167233(_0x3e57dc,p),_0x5d0b29=_0x3e57dc['plugins']['get']('RevisionTracker'),_0x23532f=_0x3e57dc['plugins']['get']('Users')['users'];return _0x46797a['toolbar']=['exitToEditing','restoreRevision','changesNavigation'],delete _0x46797a['lazyRoots'],(_0x46797a['plugins']['push'](k,d,m,class extends _0x49d2b7{static get['requires'](){return[d,'Users'];}['init'](){const _0x398ff7=this['editor']['plugins']['get']('Users');for(const _0x29556e of _0x23532f)_0x29556e['isAnonymous']||_0x398ff7['getUser'](_0x29556e['id'])||_0x398ff7['addUser'](_0x29556e);const _0x4c76fc=_0x5d0b29['repository']['getRevisions']();let _0x352eeb=null;const _0x848a92=this['editor']['plugins']['get']('RevisionViewer');_0x848a92['adapter']=_0x5d0b29['adapter'],_0x848a92['bind']('isEnabled')['to'](_0x5d0b29),this['editor']['commands']['get']('restoreRevision')['bind']('isEnabled')['to'](_0x3e57dc,'isReadOnly',_0x565ea9=>!_0x565ea9);for(const _0x236cb9 of _0x4c76fc){const _0x2a2438=null===_0x236cb9['creator'];if(_0x2a2438&&_0x236cb9['toVersion']===_0x236cb9['fromVersion'])continue;const _0x27eb8e=_0x236cb9['toJSON']();_0x848a92['addRevisionData'](_0x27eb8e,(_0x3b7a49,_0x1b63bf,_0x2863ff)=>{if(_0x2a2438){if(_0x352eeb)_0x352eeb['_update'](_0x3b7a49,_0x1b63bf);else{if(!_0x1b63bf){const _0x4c4501=_0x2863ff['toJSON']();_0x4c4501['id']=_0x46a5fd(),_0x5d0b29['saveRevision'](_0x4c4501,_0x2863ff['toVersion'])['then'](_0x2d6b1d=>{_0x352eeb=_0x2d6b1d;});}}}else _0x236cb9['_update'](_0x3b7a49,_0x1b63bf);});}}},g),_0x46797a);}['_enhanceShowRevisionViewerCallback'](){const _0x4016bb=this['editor']['config']['get']('revisionHistory')['showRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.showRevisionViewerCallback',async()=>{this['editor']['enableReadOnlyMode']('revision-history-viewer-opened');const _0x4e48ba=this['editor']['plugins']['get']('RevisionTracker');if(this['editor']['plugins']['has']('Autosave')){const _0x30b02a=this['editor']['plugins']['get']('Autosave');await _0x30b02a['save']();}else await _0x4e48ba['update']();if(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('Dialog')){const _0x2a0ba9=this['editor']['plugins']['get']('Dialog');_0x2a0ba9['isOpen']&&_0x2a0ba9['hide']();}const _0x392c19=this['_getRevisionViewerEditorConfig']();return _0x4016bb(_0x392c19)['then'](_0x567719=>{return(this['_viewerEditor']=_0x567719,this['editor']['plugins']['has']('Annotations'))&&this['editor']['plugins']['get']('Annotations')['refreshVisibility'](),_0x567719;})['catch'](_0x4d8c81=>(console['error'](_0x4d8c81),this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),null));});}['_enhanceCloseRevisionViewerCallback'](){const _0x26a752=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'](),_0x26a752(this['_viewerEditor'])['then'](()=>{if(this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),this['_viewerEditor']=null,this['editor']['plugins']['has']('Annotations')){const _0x5ddf05=this['editor']['plugins']['get']('Annotations');_0x5ddf05['refreshVisibility'](),_0x5ddf05['refreshPositioning']();}})));}['_showRevisionViewer'](_0x129872){const _0x1d73cf=this['editor']['config']['get']('revisionHistory.editorContainer'),_0x496641=this['editor']['config']['get']('revisionHistory.viewerContainer'),_0x1b9e2d=this['editor']['config']['get']('revisionHistory.viewerEditorElement');return w['create'](_0x1b9e2d,_0x129872)['then'](_0x468b55=>(_0x496641['style']['display']='block',_0x1d73cf['style']['display']='none',_0x468b55));}['_closeRevisionViewer'](_0x4885c1){const _0x446b60=this['editor']['config']['get']('revisionHistory.editorContainer');return this['editor']['config']['get']('revisionHistory.viewerContainer')['style']['display']='none',_0x446b60['style']['display']='',_0x4885c1['destroy']();}async['_restoreRevision'](_0x21b38e){const _0x46ac90=this['editor'],_0x4ca13e=this['_viewerEditor']['plugins']['get']('RevisionViewer'),_0x170bc4=_0x46ac90['plugins']['get']('RevisionTracker'),_0x1e104=_0x4ca13e['repository']['getRevision'](_0x21b38e);let _0x3f07cb,_0x135056,_0x424bde;try{_0x3f07cb=await _0x4ca13e['getRevisionData'](_0x1e104),_0x135056=await _0x4ca13e['getRevisionRootsAttributes'](_0x1e104);}catch(_0x4dc029){return void console['error'](_0x4dc029);}_0x46ac90['model']['change'](_0xb328f9=>{for(const _0x2b02de of Array['from'](_0x46ac90['model']['markers']['getMarkersGroup']('restrictedEditingException')))_0xb328f9['removeMarker'](_0x2b02de);}),_0x4ca13e['isReady']=!0x1,_0x46ac90['model']['enqueueChange'](_0x5e9c6a=>{_0x5e9c6a['setSelection'](null),_0x5e9c6a['removeSelectionAttribute'](_0x46ac90['model']['document']['selection']['getAttributeKeys']());const _0x6f1147=Object['keys'](_0x3f07cb);for(const _0x5e32d6 of _0x46ac90['model']['document']['roots'])'$graveyard'!=_0x5e32d6['rootName']&&_0x5e32d6['isAttached']()&&!_0x6f1147['includes'](_0x5e32d6['rootName'])&&_0x5e9c6a['detachRoot'](_0x5e32d6);for(const _0x14e9bc of _0x6f1147){let _0xb46196=_0x46ac90['model']['document']['getRoot'](_0x14e9bc);_0xb46196&&_0xb46196['isAttached']()||(_0xb46196=_0x5e9c6a['addRoot'](_0x14e9bc));const _0x19103b=_0x135056[_0x14e9bc],_0x4d2bef=Object['keys'](_0x19103b),_0xed552b=_0x3f07cb[_0x14e9bc];for(const _0x1d7ed3 of _0xb46196['getAttributeKeys']())_0x4d2bef['includes'](_0x1d7ed3)||_0x5e9c6a['removeAttribute'](_0x1d7ed3,_0xb46196);for(const _0xac0614 of _0x4d2bef)_0x5e9c6a['setAttribute'](_0xac0614,_0x135056[_0x14e9bc][_0xac0614],_0xb46196);_0x5e9c6a['remove'](_0x5e9c6a['createRangeIn'](_0xb46196)),_0x5e9c6a['insert'](_0x46ac90['data']['parse'](_0xed552b,_0xb46196),_0xb46196,0x0);}});const _0x4484ad=R(_0x46ac90['locale'],'Restored');if(_0x1e104['name'])_0x424bde=-0x1==_0x1e104['name']['indexOf'](_0x4484ad)?_0x4484ad+':\x20'+_0x1e104['name']:_0x1e104['name'];else _0x424bde=_0x4484ad+':\x20'+(_0x1e104['createdAt']['toLocaleDateString'](_0x46ac90['locale']['uiLanguage'],{'month':'long','day':'numeric'})+',\x20'+_0x1e104['createdAt']['toLocaleTimeString'](_0x46ac90['locale']['uiLanguage'],{'hour':'numeric','minute':'numeric'}));return await _0x170bc4['saveRevision']({'name':_0x424bde}),_0x4ca13e['isReady']=!0x0,_0x46ac90['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}}export{a as Revision,H as RevisionHistory,u as RevisionHistoryUI,l as RevisionTracker,d as RevisionViewer,le as RevisionViewerLoadingOverlay,m as RevisionViewerUI,j as RevisionsRepository,g as RevisionsSidebar};
|