@ckeditor/ckeditor5-revision-history 44.2.0-alpha.15 → 44.2.0-alpha.16
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/revision-history.js +1 -1
- package/dist/index.js +6 -6
- package/package.json +10 -10
- package/src/revisionsrepository.js +1 -1
- package/src/ui/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/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
|
-
_0x17bb2d(){['id'];['creator'];['authors'];['diffData'];['toVersion'];['fromVersion'];['model'];constructor(_0x18ea9c){super(),this['id']=_0x18ea9c['id']||_0x32ae7e(),this['creator']=_0x18ea9c['creator']||null,this['authors']=_0x18ea9c['authors']||[],this['diffData']=_0x18ea9c['diffData']||null,this['toVersion']=_0x18ea9c['toVersion']||0x0,this['fromVersion']=_0x18ea9c['fromVersion']||0x0,this['set']('name',_0x18ea9c['name']||''),this['set']('createdAt',_0x18ea9c['createdAt']||new Date()),this['set']('attributes',_0x18ea9c['attributes']||{});}['setName'](_0x1dcdf4){this['_update']({'name':_0x1dcdf4});}['setAttribute'](_0x5ef065,_0x38c648){const _0x4f2d3b=_0x10c153(this['attributes']);_0x1c2af7(_0x4f2d3b,_0x5ef065,_0x38c648),this['_update']({'attributes':_0x4f2d3b});}['removeAttribute'](_0x52c6d1){const _0xa0cdfd=_0x10c153(this['attributes']);_0x4bba44(_0xa0cdfd,_0x52c6d1),this['_update']({'attributes':_0xa0cdfd});}['_update'](_0x1328ba,_0x5bcf0d=!0x1){let _0x4611bf=!0x1;const _0x51ff1c={'id':this['id']},_0x2621fd=['name','createdAt','diffData','authors','attributes','toVersion','fromVersion','creatorId'];for(const _0xcd0d4a of _0x2621fd){const _0x32c015=_0x1328ba[_0xcd0d4a];void 0x0!==_0x32c015&&_0x32c015!==this[_0xcd0d4a]&&(this[_0xcd0d4a]=_0x32c015,_0x51ff1c[_0xcd0d4a]=_0x32c015,_0x4611bf=!0x0);}_0x4611bf&&(_0x51ff1c['authors']&&(_0x51ff1c['authorsIds']=_0x51ff1c['authors']['map'](_0x45325f=>_0x45325f['id']),delete _0x51ff1c['authors']),this['fire']('_update',_0x51ff1c,_0x5bcf0d));}['toJSON'](){return{'id':this['id'],'name':this['name'],'creatorId':this['creator']?this['creator']['id']:null,'authorsIds':this['authors']['map'](_0x224f89=>_0x224f89['id']),'diffData':this['diffData'],'createdAt':this['createdAt'],'attributes':this['attributes'],'fromVersion':this['fromVersion'],'toVersion':this['toVersion']};}}class j extends _0x23fe3b{['_revisions'];static get['requires'](){return[_0x36152c];}static get['pluginName'](){return'RevisionsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['length'](){return this['_revisions']['length'];}constructor(_0x1fd7d1){super(_0x1fd7d1),this['_revisions']=new _0x2733e7();}['afterInit'](){!async function(_0x4217dc){const _0x3c3285=_0x240cc4([0x4f,0x70,0x48,0x47,0x54,0x76,0x66,0x59,0x72,0x79,0x75,0x49,0x62,0x33,0x56,0x64,0x58,0x50,0x71,0x45,0x78,0x38,0x51,0x6d,0x61,0x32,0x6b,0x6e,0x4b,0x53,0x69,0x36,0x6f,0x6c,0x46,0x5a,0x74,0x31,0x43,0x7a,0x30,0x77,0x4d,0x55,0x41,0x68,0x37,0x44,0x65,0x39,0x63,0x42,0x67,0x52,0x4e,0x34,0x6a,0x4a,0x4c,0x57,0x35,0x73]),_0x351967=0xeb829,_0x6e154b=0x2aaa37db,_0x27de31=0x2aad68eb^_0x6e154b,_0x43977e=window[_0x240cc4([0x44,0x61,0x74,0x65])][_0x240cc4([0x6e,0x6f,0x77])](),_0x415165=_0x4217dc[_0x240cc4([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x575652=new window[(_0x240cc4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x57c997=>{_0x415165[_0x240cc4([0x6f,0x6e,0x63,0x65])](_0x240cc4([0x72,0x65,0x61,0x64,0x79]),_0x57c997);}),_0x53acd1={[_0x240cc4([0x6b,0x74,0x79])]:_0x240cc4([0x45,0x43]),[_0x240cc4([0x75,0x73,0x65])]:_0x240cc4([0x73,0x69,0x67]),[_0x240cc4([0x63,0x72,0x76])]:_0x240cc4([0x50,0x2d,0x32,0x35,0x36]),[_0x240cc4([0x78])]:_0x240cc4([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]),[_0x240cc4([0x79])]:_0x240cc4([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]),[_0x240cc4([0x61,0x6c,0x67])]:_0x240cc4([0x45,0x53,0x32,0x35,0x36])},_0x28403f=_0x415165[_0x240cc4([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x240cc4([0x67,0x65,0x74])](_0x240cc4([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x4efd54(){let _0x3d4199,_0x21d9bb=null,_0x41dc3d=null;try{if(_0x28403f==_0x240cc4([0x47,0x50,0x4c]))return _0x240cc4([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x3d4199=_0x4dc179(),!_0x3d4199)return _0x240cc4([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x3d4199[_0x240cc4([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x41dc3d=_0x59045b(_0x3d4199[_0x240cc4([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x3d4199[_0x240cc4([0x6a,0x74,0x69])])),await _0x4638ef()?_0x42f009()?_0x3dd392()?_0x240cc4([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x41cb61()?(_0x3d4199[_0x240cc4([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x240cc4([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x21d9bb=_0x2cb3a4(_0x240cc4([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x3d4199[_0x240cc4([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x240cc4([0x74,0x72,0x69,0x61,0x6c])&&(_0x21d9bb=_0x2cb3a4(_0x240cc4([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x1dc3d4()):_0x240cc4([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x240cc4([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x240cc4([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x3db5ef){return _0x240cc4([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x3dd392(){const _0x148626=[_0x240cc4([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x240cc4([0x74,0x72,0x69,0x61,0x6c])][_0x240cc4([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3d4199[_0x240cc4([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x43977e/0x3e8:0xe10*_0x27de31;return _0x3d4199[_0x240cc4([0x65,0x78,0x70])]<_0x148626;}function _0x42f009(){const _0x5dc9de=_0x3d4199[_0x240cc4([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x5dc9de)return!0x1;if(_0x5dc9de[_0x240cc4([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x240cc4([0x2a])))return!0x0;if(_0x5dc9de[_0x240cc4([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x240cc4([0x52,0x48])))return!0x0;if(_0x5dc9de[_0x240cc4([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x240cc4([0x52,0x52,0x48]))){if(_0x32cbcd())return!0x0;if(_0xbc9059()||_0x104212())return!0x0;}return!0x1;}function _0x41cb61(){const _0x2562be=_0x3d4199[_0x240cc4([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x2562be||0x0==_0x2562be[_0x240cc4([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x58b933}=new URL(window[_0x240cc4([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x2562be[_0x240cc4([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x58b933))return!0x0;const _0xd76d99=_0x58b933[_0x240cc4([0x73,0x70,0x6c,0x69,0x74])](_0x240cc4([0x2e]));return _0x2562be[_0x240cc4([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x22e576=>_0x22e576[_0x240cc4([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x240cc4([0x2a])))[_0x240cc4([0x6d,0x61,0x70])](_0x158fae=>_0x158fae[_0x240cc4([0x73,0x70,0x6c,0x69,0x74])](_0x240cc4([0x2e])))[_0x240cc4([0x73,0x6f,0x6d,0x65])](_0x205aaa=>_0xd76d99[_0x240cc4([0x65,0x76,0x65,0x72,0x79])]((_0x32d04a,_0xfcb039)=>_0x205aaa[_0xfcb039]===_0x32d04a||_0x205aaa[_0xfcb039]===_0x240cc4([0x2a])));}function _0x1dc3d4(){return _0x21d9bb&&_0x41dc3d?new window[(_0x240cc4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4fc3fc,_0x2e2c74)=>{_0x21d9bb[_0x240cc4([0x74,0x68,0x65,0x6e])](_0x4fc3fc,_0x2e2c74),_0x41dc3d[_0x240cc4([0x74,0x68,0x65,0x6e])](_0x22082a=>{_0x22082a!=_0x240cc4([0x56,0x61,0x6c,0x69,0x64])&&_0x4fc3fc(_0x22082a);},_0x2e2c74);}):_0x21d9bb||_0x41dc3d||_0x240cc4([0x56,0x61,0x6c,0x69,0x64]);}}function _0x59045b(_0x4c238b,_0x49f826){return new window[(_0x240cc4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x51ba5b=>{if(_0x1ede58())return _0x51ba5b(_0x240cc4([0x56,0x61,0x6c,0x69,0x64]));_0x880cdb(),_0x415165[_0x240cc4([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x240cc4([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x212716=!0x1;const _0x1f7d4f=_0x32ae7e();function _0x133877(_0x9821ff){return!!_0x9821ff&&(typeof _0x9821ff===_0x240cc4([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x9821ff===_0x240cc4([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x9821ff[_0x240cc4([0x74,0x68,0x65,0x6e])]===_0x240cc4([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x9821ff[_0x240cc4([0x63,0x61,0x74,0x63,0x68])]===_0x240cc4([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x8dedaf(_0x545802){_0x5f0e8a(_0x545802)[_0x240cc4([0x74,0x68,0x65,0x6e])](_0x3e052d=>{if(!_0x3e052d||_0x3e052d[_0x240cc4([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x240cc4([0x6f,0x6b]))return _0x240cc4([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x1b875c(_0x30ec8a(_0x1f7d4f+_0x49f826))!=_0x3e052d[_0x240cc4([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x240cc4([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x240cc4([0x56,0x61,0x6c,0x69,0x64]);})[_0x240cc4([0x74,0x68,0x65,0x6e])](_0x316c43=>(_0x350425(),_0x316c43),()=>{const _0x4a2e72=_0x14711c();return null==_0x4a2e72?(_0x350425(),_0x240cc4([0x56,0x61,0x6c,0x69,0x64])):_0x240cc4(_0x43977e-_0x4a2e72>(0xea6b3db^_0x6e154b)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x240cc4([0x74,0x68,0x65,0x6e])](_0x51ba5b)[_0x240cc4([0x63,0x61,0x74,0x63,0x68])](()=>{_0x51ba5b(_0x240cc4([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x48a023=0x2a9cd95b^_0x6e154b;function _0x350425(){const _0x4d9815=_0x240cc4([0x6c,0x6c,0x63,0x74,0x2d])+_0x1b875c(_0x30ec8a(_0x4c238b)),_0x445587=_0x45a449(_0x1b875c(window[_0x240cc4([0x4d,0x61,0x74,0x68])][_0x240cc4([0x63,0x65,0x69,0x6c])](_0x43977e/_0x48a023)));window[_0x240cc4([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x240cc4([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4d9815,_0x445587);}function _0x14711c(){const _0x162cc1=_0x240cc4([0x6c,0x6c,0x63,0x74,0x2d])+_0x1b875c(_0x30ec8a(_0x4c238b)),_0x52819a=window[_0x240cc4([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x240cc4([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x162cc1);return _0x52819a?window[_0x240cc4([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x45a449(_0x52819a),0x10)*_0x48a023:null;}function _0x5f0e8a(_0x78100d){return new window[(_0x240cc4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x939323,_0xdd32dc)=>{_0x78100d[_0x240cc4([0x74,0x68,0x65,0x6e])](_0x939323,_0xdd32dc),window[_0x240cc4([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0xdd32dc,0x2aabe31b^_0x6e154b);});}}_0x415165[_0x240cc4([0x6f,0x6e])](_0x240cc4([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x330004,_0x208934)=>{if(_0x208934[0x0]!=_0x4c238b)return _0x51ba5b(_0x240cc4([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x208934[0x1]={..._0x208934[0x1],[_0x240cc4([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x1f7d4f};},{[_0x240cc4([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x240cc4([0x68,0x69,0x67,0x68])}),_0x415165[_0x240cc4([0x6f,0x6e])](_0x240cc4([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x5ce9c7=>{_0x133877(_0x5ce9c7[_0x240cc4([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x212716=!0x0,_0x8dedaf(_0x5ce9c7[_0x240cc4([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x240cc4([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x240cc4([0x6c,0x6f,0x77])}),_0x575652[_0x240cc4([0x74,0x68,0x65,0x6e])](()=>{_0x212716||_0x51ba5b(_0x240cc4([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x1ede58(){return _0x415165[_0x240cc4([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x240cc4([0x76,0x69,0x65,0x77])][_0x240cc4([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x240cc4([0x61,0x75,0x74,0x6f]);}function _0x880cdb(){_0x415165[_0x240cc4([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x240cc4([0x76,0x69,0x65,0x77])][_0x240cc4([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x240cc4([0x61,0x75,0x74,0x6f]);}}function _0x2cb3a4(_0x3b3e1a){const _0x477034=[new window[(_0x240cc4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4da27f=>setTimeout(_0x4da27f,0x2aa30917^_0x6e154b)),_0x575652[_0x240cc4([0x74,0x68,0x65,0x6e])](()=>new window[(_0x240cc4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1a8b3b=>{const _0x3262d4=0x2aaa37dc^_0x6e154b,_0x26a2c9=_0x4217dc[_0x240cc4([0x5f,0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x73])];function _0x4ac40b(){_0x26a2c9[_0x240cc4([0x6c,0x65,0x6e,0x67,0x74,0x68])]>=_0x3262d4&&_0x1a8b3b();}_0x4ac40b(),_0x26a2c9[_0x240cc4([0x6f,0x6e])](_0x240cc4([0x61,0x64,0x64]),_0x4ac40b);})),new window[(_0x240cc4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3156e5=>{function _0x146fa4(){for(const _0x3d7462 in window)if(window[_0x240cc4([0x4e,0x75,0x6d,0x62,0x65,0x72])]['isNaN'](window[_0x240cc4([0x4e,0x75,0x6d,0x62,0x65,0x72])](_0x3d7462))&&window[_0x3d7462]==_0x351967)return _0x3156e5();_0x415165[_0x240cc4([0x73,0x74,0x61,0x74,0x65])]!=_0x240cc4([0x64,0x65,0x73,0x74,0x72,0x6f,0x79,0x65,0x64])&&window[_0x240cc4([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x146fa4,0x2aaa2453^_0x6e154b);}_0x20ee6d(_0x240cc4([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))&&_0x146fa4();})];return window[_0x240cc4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x240cc4([0x72,0x61,0x63,0x65])](_0x477034)[_0x240cc4([0x74,0x68,0x65,0x6e])](()=>_0x3b3e1a);}async function _0x2baab8(){if(await _0x575652,_0x20ee6d(_0x240cc4([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))){const _0x10737a=_0x4217dc[_0x240cc4([0x67,0x65,0x74,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])](0x0),_0x4119c3=_0x4217dc[_0x240cc4([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])](_0x10737a[_0x240cc4([0x69,0x64])]),_0x5a8470=_0x559327(_0x240cc4([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]));return await _0x5a8470[_0x240cc4([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])](_0x10737a['id'],_0x4119c3?_0x4119c3['id']:null,!0x0),_0x5a8470[_0x240cc4([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x240cc4([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x5a8470[_0x240cc4([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x5a8470[_0x240cc4([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])]=_0xb4e36,void(_0x5a8470[_0x240cc4([0x5f,0x67,0x65,0x74,0x44,0x69,0x66,0x66])]=_0xb4e36);}if(_0x20ee6d(_0x240cc4([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]))){const _0x4cde89=_0x559327(_0x240cc4([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]));_0x4cde89[_0x240cc4([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x240cc4([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x4cde89[_0x240cc4([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x4cde89[_0x240cc4([0x75,0x70,0x64,0x61,0x74,0x65])]=_0xb4e36,_0x4cde89[_0x240cc4([0x73,0x61,0x76,0x65,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])]=_0xb4e36;}_0x415165[_0x240cc4([0x6d,0x6f,0x64,0x65,0x6c])][_0x240cc4([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0xb4e36,_0x415165[_0x240cc4([0x6d,0x6f,0x64,0x65,0x6c])][_0x240cc4([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0xb4e36,_0x415165[_0x240cc4([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x240cc4([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x32cbcd(){return _0x20ee6d(_0x240cc4([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x559327(_0x240cc4([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x240cc4([0x73,0x74,0x61,0x74,0x65])]==_0x240cc4([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0xbc9059(){return _0x20ee6d(_0x240cc4([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 _0x104212(){return _0x20ee6d(_0x240cc4([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x2456ff(_0x589ec7){const _0x4d0b00=_0x3de764();_0x415165[_0x4d0b00]=_0x240cc4([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])+_0x589ec7,_0x589ec7[_0x240cc4([0x65,0x6e,0x64,0x73,0x57,0x69,0x74,0x68])](_0x240cc4([0x4c,0x69,0x6d,0x69,0x74]))&&(window[_0x3de764()]=_0x351967),_0x589ec7!=_0x240cc4([0x56,0x61,0x6c,0x69,0x64])&&_0x2baab8();}function _0x3de764(){const _0x49c4e4=window[_0x240cc4([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x240cc4([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x240cc4([0x6e,0x6f,0x77])]())[_0x240cc4([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x240cc4([0x2e]),'');let _0x19b5c7=_0x240cc4([0x4f]);for(let _0x42964a=0x0;_0x42964a<_0x49c4e4[_0x240cc4([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x42964a+=0x2){let _0x2094df=window[_0x240cc4([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x49c4e4[_0x240cc4([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x42964a,_0x42964a+0x2));_0x2094df>=_0x3c3285[_0x240cc4([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x2094df-=_0x3c3285[_0x240cc4([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x19b5c7+=_0x3c3285[_0x2094df];}return _0x19b5c7;}function _0x4dc179(){const _0x8c96e2=_0x28403f[_0x240cc4([0x73,0x70,0x6c,0x69,0x74])](_0x240cc4([0x2e]));if(0x3!=_0x8c96e2[_0x240cc4([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x27e3a4(_0x8c96e2[0x1]);function _0x27e3a4(_0x22d422){const _0x5130d9=_0x5ac599(_0x22d422);return _0x5130d9&&_0x3ceb9f()?_0x5130d9:null;function _0x3ceb9f(){const _0x3702e6=_0x5130d9[_0x240cc4([0x6a,0x74,0x69])],_0x12ea87=window[_0x240cc4([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3702e6[_0x240cc4([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3702e6[_0x240cc4([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x55e935={..._0x5130d9,[_0x240cc4([0x6a,0x74,0x69])]:_0x3702e6[_0x240cc4([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x3702e6[_0x240cc4([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x55e935[_0x240cc4([0x76,0x63])],_0x30ec8a(_0x55e935)==_0x12ea87;}}}async function _0x4638ef(){let _0x23af86=!0x0;try{const _0x4d52fc=_0x28403f[_0x240cc4([0x73,0x70,0x6c,0x69,0x74])](_0x240cc4([0x2e])),[_0x556c8e,_0x12faa8,_0xf16d5d]=_0x4d52fc;return _0x41618f(_0x556c8e),await _0x5b9816(_0x556c8e,_0x12faa8,_0xf16d5d),_0x23af86;}catch(_0x416440){return!0x1;}function _0x41618f(_0x1c2d31){const _0x829b33=_0x5ac599(_0x1c2d31);_0x829b33&&_0x829b33[_0x240cc4([0x61,0x6c,0x67])]==_0x240cc4([0x45,0x53,0x32,0x35,0x36])||(_0x23af86=!0x1);}async function _0x5b9816(_0x3e5956,_0x5ab10a,_0x18aa7e){const _0xaaa93c=window[_0x240cc4([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x240cc4([0x66,0x72,0x6f,0x6d])](_0x5e6569(_0x18aa7e),_0x4936b9=>_0x4936b9[_0x240cc4([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x3fc1b6=new window[(_0x240cc4([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x240cc4([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x3e5956+_0x240cc4([0x2e])+_0x5ab10a),_0x247433=window[_0x240cc4([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x240cc4([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x247433)return;const _0x1a946a=await _0x247433[_0x240cc4([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x240cc4([0x6a,0x77,0x6b]),_0x53acd1,{[_0x240cc4([0x6e,0x61,0x6d,0x65])]:_0x240cc4([0x45,0x43,0x44,0x53,0x41]),[_0x240cc4([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x240cc4([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x240cc4([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x247433[_0x240cc4([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x240cc4([0x6e,0x61,0x6d,0x65])]:_0x240cc4([0x45,0x43,0x44,0x53,0x41]),[_0x240cc4([0x68,0x61,0x73,0x68])]:{[_0x240cc4([0x6e,0x61,0x6d,0x65])]:_0x240cc4([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x1a946a,_0xaaa93c,_0x3fc1b6)||(_0x23af86=!0x1);}}function _0x5ac599(_0x252293){return _0x252293[_0x240cc4([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x240cc4([0x65,0x79]))?JSON[_0x240cc4([0x70,0x61,0x72,0x73,0x65])](_0x5e6569(_0x252293)):null;}function _0x5e6569(_0x587e4f){return window[_0x240cc4([0x61,0x74,0x6f,0x62])](_0x587e4f[_0x240cc4([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x240cc4([0x2b]))[_0x240cc4([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x240cc4([0x2f])));}function _0x30ec8a(_0x4d8b6d){let _0x1c6275=0x1505;function _0x1f74f4(_0x2a28f4){for(let _0x3510d6=0x0;_0x3510d6<_0x2a28f4[_0x240cc4([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3510d6++){const _0xcf5ee1=_0x2a28f4[_0x240cc4([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x3510d6);_0x1c6275=(_0x1c6275<<0x5)+_0x1c6275+_0xcf5ee1,_0x1c6275&=_0x1c6275;}}function _0x48bd40(_0x2893ff){Array[_0x240cc4([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x2893ff)?_0x2893ff[_0x240cc4([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x48bd40):_0x2893ff&&typeof _0x2893ff==_0x240cc4([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x240cc4([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x2893ff)[_0x240cc4([0x73,0x6f,0x72,0x74])]()[_0x240cc4([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0xd0c3a7,_0x42957e])=>{_0x1f74f4(_0xd0c3a7),_0x48bd40(_0x42957e);}):_0x1f74f4(window[_0x240cc4([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x2893ff));}return _0x48bd40(_0x4d8b6d),_0x1c6275>>>0x0;}function _0x1b875c(_0x310351){return _0x310351[_0x240cc4([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x240cc4([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x240cc4([0x30]));}function _0x45a449(_0x1d7882){return _0x1d7882[_0x240cc4([0x73,0x70,0x6c,0x69,0x74])]('')[_0x240cc4([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x240cc4([0x6a,0x6f,0x69,0x6e])]('');}function _0x20ee6d(_0x4e5903){return _0x415165[_0x240cc4([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x240cc4([0x68,0x61,0x73])](_0x4e5903);}function _0x559327(_0x5f3342){return _0x415165[_0x240cc4([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x240cc4([0x67,0x65,0x74])](_0x5f3342);}function _0xb4e36(){}function _0x240cc4(_0x230b47){return _0x230b47['map'](_0x6ffd23=>String['fromCharCode'](_0x6ffd23))['join']('');}_0x2456ff(await _0x4efd54());}(this);}['createRevision'](_0x202d44){const _0x4af4f5=this['editor']['plugins']['get']('Users');return new a({'id':_0x202d44['id'],'name':_0x202d44['name'],'creator':_0x202d44['creatorId']?_0x4af4f5['getUser'](_0x202d44['creatorId']):null,'diffData':_0x202d44['diffData']||_0x202d44['data'],'authors':_0x202d44['authorsIds']['map'](_0xc7da45=>_0x4af4f5['getUser'](_0xc7da45)),'createdAt':new Date(_0x202d44['createdAt']),'attributes':_0x202d44['attributes'],'fromVersion':_0x202d44['fromVersion'],'toVersion':_0x202d44['toVersion']});}['addRevision'](_0x25e4ef,_0x1c06de=0x0){this['_revisions']['add'](_0x25e4ef,_0x1c06de);}['getRevision'](_0x2e23d4){return this['_revisions']['get'](_0x2e23d4);}['getRevisions'](_0x2bf892={'toJSON':!0x1}){const _0x5a9e90=Array['from'](this['_revisions']);return _0x5a9e90['reverse'](),_0x2bf892['toJSON']?_0x5a9e90['map'](_0x1eae92=>_0x1eae92['toJSON']()):_0x5a9e90;}['getIndex'](_0x26194){return this['_revisions']['getIndex'](_0x26194);}['getEarlierVisibleRevision'](_0x3992ef){const [,_0x1812f8]=this['getRevisionsIterator'](_0x3992ef,{'direction':'earlier'});return _0x1812f8;}['getLaterVisibleRevision'](_0x4a7405){const [,_0x4f9021]=this['getRevisionsIterator'](_0x4a7405,{'direction':'later'});return _0x4f9021;}['getRevisionsInDiff'](_0xabcd70){const _0x25ea38=[];for(const _0x250214 of this['getRevisionsIterator'](_0xabcd70['newRevisionId']))if(_0x25ea38['push'](_0x250214),_0x250214['id']===_0xabcd70['oldRevisionId'])break;return _0x25ea38;}*['getRevisionsIterator'](_0x16b292,{direction:_0x5ac3ff='earlier',filter:_0x5544e3=()=>!0x0}={}){const _0x4eb2c5='earlier'===_0x5ac3ff?0x1:-0x1;let _0x33eb8e=this['_revisions']['get'](_0x16b292),_0x6f5915=this['getIndex'](_0x33eb8e);for(yield _0x33eb8e;_0x33eb8e;){if(_0x6f5915+=_0x4eb2c5,_0x33eb8e=this['getRevision'](_0x6f5915),!_0x33eb8e)return;_0x5544e3(_0x33eb8e)&&(yield _0x33eb8e);}}}function m(_0x505903,_0x1fa0b8,_0x446102){const t=_0x505903['t'];switch(_0x1fa0b8){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'},_0x446102);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x446102);case'Show\x20previous\x20change':return t('Show\x20previous\x20change');case'Show\x20next\x20change':return t('Show\x20next\x20change');case'EDIT_X_OF_Y_REVISIONS':return t({'string':'Edit','id':'EDIT_X_OF_Y_REVISIONS'});case'Total':return t('Total');case'Revision\x20creator':return t('Revision\x20creator');case'Revision\x20author':return t('Revision\x20author');case'Revision\x20name':return t('Revision\x20name');case'Save\x20current\x20revision':return t('Save\x20current\x20revision');case'Accept':return t('Accept');case'Save':return t('Save');case'Cancel':return t('Cancel');case'Name\x20of\x20the\x20revision':return t('Name\x20of\x20the\x20revision');case'optional':return t('optional');case'PENDING_ACTION_REVISION_HISTORY':return t({'string':'Unsaved\x20change\x20in\x20revision\x20history.','id':'PENDING_ACTION_REVISION_HISTORY'});case'The\x20revision\x20name\x20cannot\x20be\x20empty.':return t('The\x20revision\x20name\x20cannot\x20be\x20empty.');case'Enter\x20the\x20revision\x20name':return t('Enter\x20the\x20revision\x20name');default:return'';}}const P={'c':_0x5ef4e4,'a':_0xe31744,'e':_0x1313cb,'r':_0x10477d,'u':_0x44f7dc};class l extends _0x23fe3b{['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[_0x36152c,j,_0x5d7a9c];}constructor(_0x1ab094){super(_0x1ab094),this['adapter']=null,this['currentRevision']=null,this['_revisionDataBuilder']=new V(this['editor']),this['_initialRevisionId']=this['editor']['config']['get']('collaboration.channelId')||'initial',this['_bufferedUpdates']=new Map(),this['_loadedStateData']=null;const _0xb19fb0=_0x32ae7e();this['_source']={'history':this['editor']['model']['document']['history'],'getLatestVersion':()=>Promise['resolve'](this['editor']['model']['document']['version']),'getCurrentRevisionId':()=>_0xb19fb0},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 _0x3cf97b=this['repository']['getRevision'](0x0),_0x4c9682=_0x3cf97b&&null===_0x3cf97b['creator']?_0x3cf97b:null;if(this['_continueCurrentRevision']=!!_0x4c9682&&this['editor']['config']['get']('revisionHistory.resumeUnsavedRevision'),this['editor']['plugins']['has']('RealTimeCollaborationClient')){const _0x11ea73=this['_source']['getCurrentRevisionId'](),_0x35fc04=this['repository']['getRevision'](_0x11ea73);if(_0x35fc04)this['_startingVersion']=_0x35fc04['fromVersion'],this['_continueCurrentRevision']=!0x1;else{const _0x372c95=this['_source']['history']['_operations']['find'](_0xc86532=>!_0xc86532['_isInit']),_0x4d4309=_0x372c95?_0x372c95['baseVersion']:this['_source']['history']['version'];_0x3cf97b?(_0x3cf97b['toVersion']<_0x4d4309&&_0x3cf97b['_update']({'toVersion':_0x4d4309}),this['_continueCurrentRevision']?(this['_source']['getCurrentRevisionId']=()=>_0x4c9682['id'],this['_startingVersion']=_0x4c9682['fromVersion']):(this['_startingVersion']=_0x3cf97b['toVersion'],this['_continueCurrentRevision']=!0x1)):(this['_startingVersion']=_0x4d4309,this['_continueCurrentRevision']=!0x1);}}else _0x4c9682&&(this['editor']['model']['document']['history']['version']=Math['max'](_0x4c9682['toVersion'],this['editor']['model']['document']['history']['version']),_0x4c9682['fromVersion']===_0x4c9682['toVersion']?(0x0!==_0x4c9682['fromVersion']&&(this['_source']['getCurrentRevisionId']=()=>_0x4c9682['id']),this['_continueCurrentRevision']=!0x1):this['_continueCurrentRevision']&&(this['_source']['getCurrentRevisionId']=()=>_0x4c9682['id'],this['_startingVersion']=_0x4c9682['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',_0x369739=>!_0x369739),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x5ac93f=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x243da9;for(const _0x31981a in _0x5ac93f){const _0xdd9bf8=_0x31981a,_0x354b02=_0x5ac93f[_0xdd9bf8];if('revisionHistoryLicenseKeyValid'==_0x354b02||'revisionHistoryLicenseKeyInvalid'==_0x354b02||'revisionHistoryLicenseKeyExpired'==_0x354b02||'revisionHistoryLicenseKeyDomainLimit'==_0x354b02||'revisionHistoryLicenseKeyNotAllowed'==_0x354b02||'revisionHistoryLicenseKeyEvaluationLimit'==_0x354b02||'revisionHistoryLicenseKeyTrialLimit'==_0x354b02||'revisionHistoryLicenseKeyUsageLimit'==_0x354b02){delete _0x5ac93f[_0xdd9bf8],_0x243da9=_0x354b02,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'revisionHistoryLicenseKeyInvalid'==_0x243da9&&_0x5ac93f['_showLicenseError']('invalid'),'revisionHistoryLicenseKeyExpired'==_0x243da9&&_0x5ac93f['_showLicenseError']('expired'),'revisionHistoryLicenseKeyDomainLimit'==_0x243da9&&_0x5ac93f['_showLicenseError']('domainLimit'),'revisionHistoryLicenseKeyNotAllowed'==_0x243da9&&_0x5ac93f['_showLicenseError']('featureNotAllowed','RevisionHistory'),'revisionHistoryLicenseKeyEvaluationLimit'==_0x243da9&&_0x5ac93f['_showLicenseError']('evaluationLimit'),'revisionHistoryLicenseKeyTrialLimit'==_0x243da9&&_0x5ac93f['_showLicenseError']('trialLimit'),'revisionHistoryLicenseKeyUsageLimit'==_0x243da9&&_0x5ac93f['_showLicenseError']('usageLimit');},0x3e8);}async['afterInit'](){if(this['repository']['length']>0x0){const _0x310532=this['repository']['getRevision'](0x0),_0x5d7e39=await this['getRevisionDocumentData'](_0x310532),_0x3353a2=await this['getRevisionRootsAttributes'](_0x310532);this['_replaceEditorDataWithRevisionData'](_0x5d7e39,_0x3353a2);}}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['setSource'](_0x3371d3){this['_source']=_0x3371d3;}async['update'](){const _0x24f099=await this['_source']['getLatestVersion']();if(_0x24f099>this['currentRevision']['toVersion']){await this['_loadState']();const _0x20da7b=this['buildRevisionData']({'revision':this['currentRevision'],'to':_0x24f099});_0x20da7b['authors']=_0x20da7b['authorsIds']['map'](_0x52ff57=>this['editor']['plugins']['get']('Users')['getUser'](_0x52ff57)),this['currentRevision']['_update'](_0x20da7b);}}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'](_0x198028={},_0x3d91c5=null){const _0x91bc5b=[];await this['_loadState'](),this['_continueCurrentRevision']=!0x1,_0x3d91c5>this['currentRevision']['toVersion']&&(_0x3d91c5=null),null===_0x3d91c5&&(_0x3d91c5=await this['_source']['getLatestVersion']());const _0x168904=this['_getFromVersion'](_0x3d91c5),_0x1cd686=this['buildRevisionData']({'from':_0x168904,'to':_0x3d91c5});if(this['currentRevision']['toVersion']<_0x3d91c5){const _0x4aac37=this['buildRevisionData']({'revision':this['currentRevision'],'from':_0x3d91c5,'to':_0x3d91c5});_0x4aac37['authors']=[],_0x4aac37['authorsIds']=[],_0x4aac37['id']=this['currentRevision']['id'],this['currentRevision']['_update'](_0x4aac37,!0x0),delete _0x4aac37['authors'],_0x91bc5b['push'](_0x4aac37);}_0x198028['creatorId']=this['editor']['plugins']['get']('Users')['me']['id'],_0x198028['name']=_0x198028['name']||null,_0x198028['id']=_0x198028['id']||_0x32ae7e(),_0x198028={..._0x198028,..._0x1cd686};const _0x144221=this['addRevisionData'](_0x198028);_0x91bc5b['push'](_0x198028);const _0x2cc861=this['repository']['getIndex'](_0x144221);if(0x0!==_0x2cc861){const _0x404e2a=this['repository']['getRevision'](_0x2cc861-0x1);if(_0x404e2a['fromVersion']!==_0x3d91c5){const _0x485c7c=this['_revisionDataBuilder']['getData'](_0x3d91c5,_0x404e2a['toVersion']),_0x546456={'id':_0x404e2a['id'],'diffData':_0x485c7c['diffData'],'authorsIds':_0x485c7c['authorsIds'],'authors':_0x485c7c['authorsIds']['map'](_0x4061a0=>this['editor']['plugins']['get']('Users')['getUser'](_0x4061a0)),'fromVersion':_0x3d91c5};_0x404e2a===this['currentRevision']&&(_0x546456['createdAt']=new Date(_0x198028['createdAt']['getTime']()+0xa)),_0x404e2a['_update'](_0x546456,!0x0),delete _0x546456['authors'],_0x91bc5b['push'](_0x546456);}}if(this['adapter']){for(const _0x29f84e of _0x91bc5b)this['_bufferUpdate'](_0x29f84e['id'],_0x29f84e,!0x0);this['sendBufferedUpdates']();}return _0x144221;}['addRevisionData'](_0xbd93ca){const _0x156acb=this['repository']['createRevision'](_0xbd93ca);return this['adapter']&&_0x156acb['on']('_update',(_0x463a8e,_0x11d100,_0x19d075)=>{_0x19d075||(this['_bufferUpdate'](_0x11d100['id'],_0x11d100,!0x0),this['sendBufferedUpdates']());}),this['repository']['addRevision'](_0x156acb,this['_findInsertionIndex'](_0x156acb)),_0x156acb;}async['getRevisionDocumentData'](_0x17785f){await this['_loadRevisionData'](_0x17785f);const _0x565067={};for(const _0x2df420 in _0x17785f['diffData']){if(_0x17785f['diffData'][_0x2df420]['attachChange']&&!_0x17785f['diffData'][_0x2df420]['attachChange']['isAttached'])continue;const _0x52c09d=this['_removeRevisionMarkers'](JSON['parse'](_0x17785f['diffData'][_0x2df420]['insertions'])),_0x117810=this['editor']['editing']['view']['document'],_0x1f5ab7=new _0xeaf0ed(_0x117810,_0x52c09d['map'](_0x5a0f78=>C(_0x5a0f78,this['editor'])));this['editor']['data']['processor']['useFillerType']('marked'),_0x565067[_0x2df420]=this['editor']['data']['processor']['toData'](_0x1f5ab7),this['editor']['data']['processor']['useFillerType']('default');}return _0x565067;}async['getRevisionRootsAttributes'](_0x414a42){await this['_loadRevisionData'](_0x414a42);const _0x41824d={};for(const _0x45487a in _0x414a42['diffData'])_0x414a42['diffData'][_0x45487a]['attachChange']&&!_0x414a42['diffData'][_0x45487a]['attachChange']['isAttached']||(_0x41824d[_0x45487a]=_0x414a42['diffData'][_0x45487a]['attributesAfter']||{});return _0x41824d;}['sendBufferedUpdates'](){if(0x0===this['_bufferedUpdates']['size'])return;if(this['_isPendingUpdate'])return;let _0x45abf5=Array['from'](this['_bufferedUpdates']['values']());this['_bufferedUpdates']['clear']();for(let _0x35542b=0x0;_0x35542b<_0x45abf5['length'];_0x35542b++){const _0x4272bd=_0x45abf5[_0x35542b];let _0x37ba77=!0x1;for(const _0x1bce1d of Object['keys'](_0x4272bd))void 0x0===_0x4272bd[_0x1bce1d]?delete _0x4272bd[_0x1bce1d]:'id'!==_0x1bce1d&&(_0x37ba77=!0x0);_0x37ba77||(_0x45abf5[_0x35542b]=null);}if(_0x45abf5=_0x45abf5['filter'](_0x164a09=>null!==_0x164a09),!_0x45abf5['length'])return;for(let _0x2f57c8=0x0;_0x2f57c8<_0x45abf5['length'];_0x2f57c8++){const _0x28ac7e=_0x45abf5[_0x2f57c8];void 0x0!==_0x28ac7e['fromVersion']&&void 0x0===_0x28ac7e['toVersion']&&(_0x28ac7e['toVersion']=this['repository']['getRevision'](_0x28ac7e['id'])['toVersion']),void 0x0!==_0x28ac7e['toVersion']&&void 0x0===_0x28ac7e['fromVersion']&&(_0x28ac7e['fromVersion']=this['repository']['getRevision'](_0x28ac7e['id'])['fromVersion']);}const _0x5aeaaa=this['editor']['config']['get']('collaboration.channelId');this['_isPendingUpdate']=!0x0,this['_addPendingAction'](),this['adapter']['updateRevisions'](_0x45abf5,_0x5aeaaa)['finally'](()=>{this['_isPendingUpdate']=!0x1;})['then'](_0x1ed2fa=>{if(_0x1ed2fa){for(const _0x4eb77b of _0x1ed2fa)this['setRevisionData']({'id':_0x4eb77b['id'],'createdAt':_0x4eb77b['createdAt']});}this['_removePendingAction'](),this['sendBufferedUpdates']();});}['_replaceEditorDataWithRevisionData'](_0x45126f,_0x31c7aa){let _0x1d3e76=this['editor']['config']['get']('initialData'),_0x1b5ba7=this['editor']['config']['get']('rootsAttributes');if(void 0x0===_0x1d3e76){_0x1d3e76={};for(const _0x4ebb79 of this['editor']['model']['document']['getRootNames']())_0x1d3e76[_0x4ebb79]='';}if('string'==typeof _0x1d3e76&&(_0x1d3e76={'main':_0x1d3e76}),void 0x0===_0x1b5ba7){_0x1b5ba7={};for(const _0x45647c of this['editor']['model']['document']['getRootNames']())_0x1b5ba7[_0x45647c]={};}let _0x59bbd1=!0x1;const _0xbf75f=Object['keys'](_0x1d3e76),_0x25bb52=Object['keys'](_0x45126f);for(const _0x19b251 of _0xbf75f){if(_0x1d3e76[_0x19b251]!==_0x45126f[_0x19b251]&&''!==_0x1d3e76[_0x19b251]['trim']()){_0x59bbd1=!0x0;break;}if(!_0x4709f3(_0x1b5ba7[_0x19b251],_0x31c7aa[_0x19b251])&&Object['keys'](_0x1b5ba7[_0x19b251])['length']>0x0){_0x59bbd1=!0x0;break;}}_0x59bbd1||(_0x59bbd1=_0x25bb52['some'](_0x143284=>!this['editor']['model']['document']['getRoot'](_0x143284))),_0x59bbd1&&_0x4bca8d('editor-initial-data-replaced-with-revision-data',{'editorData':_0x1d3e76,'editorRootsAttributes':_0x1b5ba7,'revisionData':_0x45126f,'revisionRootsAttributes':_0x31c7aa}),this['editor']['config']['set']('initialData',_0x45126f),this['editor']['config']['set']('rootsAttributes',_0x31c7aa);}['_addPendingAction'](){if(!this['_pendingAction']){const _0x209cb3=this['editor']['plugins']['get']('PendingActions');this['_pendingAction']=_0x209cb3['add'](m(this['editor']['locale'],'PENDING_ACTION_REVISION_HISTORY'));}}['_removePendingAction'](){this['_pendingAction']&&(this['editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null);}['_findInsertionIndex'](_0x4b4601){const _0x40b4c0=this['repository']['getRevisions']();_0x40b4c0['reverse']();let _0x2f0035=0x0;for(;_0x2f0035<_0x40b4c0['length'];){const _0x543297=_0x40b4c0[_0x2f0035];if(_0x543297===this['currentRevision']){_0x2f0035++;continue;}if(_0x543297['id']===this['_initialRevisionId'])break;const _0x3c5077=_0x4b4601['toVersion']-_0x543297['toVersion']||_0x4b4601['fromVersion']-_0x543297['fromVersion'];if(_0x3c5077>0x0)break;if(_0x3c5077<0x0)_0x2f0035++;else{if(!_0x4b4601['creator']&&_0x543297['creator'])break;if(_0x543297['creator']||!_0x4b4601['creator']){if(_0x4b4601['createdAt']>_0x543297['createdAt'])break;_0x2f0035++;}else _0x2f0035++;}}return _0x2f0035;}['setRevisionData'](_0x5aecc2){const _0x5ebc11=this['repository']['getRevision'](_0x5aecc2['id']);if(_0x5aecc2['createdAt']&&(_0x5aecc2['createdAt']=new Date(_0x5aecc2['createdAt'])),_0x5aecc2['authorsIds']){const _0x4bfe9d=this['editor']['plugins']['get']('Users');_0x5aecc2['authors']=_0x5aecc2['authorsIds']['map'](_0xcd8607=>_0x4bfe9d['getUser'](_0xcd8607));}_0x5ebc11['_update'](_0x5aecc2,!0x0);}['buildRevisionData']({revision:_0x5bdadd=null,from:_0x32a766=null,to:_0x297bb=null}){_0x32a766=null!==_0x32a766?_0x32a766:_0x5bdadd['fromVersion'],_0x297bb=null!==_0x297bb?_0x297bb:_0x5bdadd['toVersion'];const _0x52d95a=this['_revisionDataBuilder']['getData'](_0x32a766,_0x297bb),_0x35b4ca={'diffData':_0x52d95a['diffData'],'authorsIds':_0x52d95a['authorsIds'],'fromVersion':_0x32a766,'toVersion':_0x297bb};if(!_0x5bdadd||_0x297bb!==_0x5bdadd['toVersion']){const _0x2afbd0=_0x297bb-0x1,_0x41d378=this['_source']['history']['getOperation'](_0x2afbd0);_0x35b4ca['createdAt']=_0x41d378&&_0x41d378['createdAt']||new Date();}if(this['_loadedStateData']&&_0x32a766===this['_loadedStateData']['fromVersion']){for(const _0x90c8eb of this['_loadedStateData']['authors'])_0x35b4ca['authorsIds']['includes'](_0x90c8eb['id'])||_0x35b4ca['authorsIds']['push'](_0x90c8eb['id']);}return _0x35b4ca;}['_loadRevisionData'](_0x43496c){if(!_0x43496c||_0x43496c['diffData'])return Promise['resolve']();{const _0x821f03=this['editor']['config']['get']('collaboration.channelId');return this['adapter']['getRevision']({'channelId':_0x821f03,'revisionId':_0x43496c['id']})['then'](_0x1fdea7=>{_0x43496c['diffData']=_0x1fdea7['diffData'];});}}['_bufferUpdate'](_0x246af3,_0x139bfa,_0x5cb917){if(this['_bufferedUpdates']['has'](_0x246af3)){const _0x30063b=this['_bufferedUpdates']['get'](_0x246af3);_0x139bfa=_0x5cb917?{..._0x30063b,..._0x139bfa}:{..._0x139bfa,..._0x30063b};}this['_bufferedUpdates']['set'](_0x246af3,_0x139bfa);}['_getFromVersion'](_0xaf8ddc){const _0x3316ec=this['repository']['getRevisions']();_0x3316ec['reverse'](),_0x3316ec['shift']();const _0x3ba13a=_0x3316ec['find'](_0x1f223e=>_0x1f223e['toVersion']<=_0xaf8ddc)['toVersion'];return _0x3ba13a<this['_startingVersion']?this['_startingVersion']:_0x3ba13a;}['_createInitialRevision'](_0x59cdc3){const _0xef9b8a=this['repository']['getRevision'](this['repository']['length']-0x1);if(_0xef9b8a)this['_initialRevisionId']=_0xef9b8a['id'];else{const _0x12f922=!this['editor']['model']['document']['roots']['find'](_0x57f3bd=>this['editor']['model']['hasContent'](_0x57f3bd)),_0x590db7=this['editor']['plugins']['get']('Users')['me']['id'],_0x475a55=m(this['editor']['locale'],_0x12f922?'Empty\x20document':'Initial\x20revision');this['_makeRevision']({'from':_0x59cdc3,'to':_0x59cdc3,'id':this['_initialRevisionId'],'name':_0x475a55,'creatorId':_0x590db7});}}['_createCurrentRevision'](_0x3d8e9b){const _0xd27499=this['_source']['getCurrentRevisionId']();this['currentRevision']=this['repository']['getRevision'](_0xd27499),this['currentRevision']||(this['currentRevision']=this['_makeRevision']({'from':_0x3d8e9b,'to':_0x3d8e9b,'id':_0xd27499,'name':'','creatorId':null}));}['_makeRevision']({name:_0x160b09,from:_0x19be73,to:_0x11e41e,creatorId:_0x327c0e,id:_0x193da3}){const _0x370531=this['buildRevisionData']({'from':_0x19be73,'to':_0x11e41e});_0x370531['name']=_0x160b09,_0x370531['creatorId']=_0x327c0e,_0x370531['id']=_0x193da3;const _0x576b0e=this['addRevisionData'](_0x370531);return this['adapter']&&this['_bufferUpdate'](_0x370531['id'],_0x370531,!0x0),_0x576b0e;}['_setConversion'](){this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'});}['_removeRevisionMarkers'](_0x519c66){return(_0x519c66=_0x519c66['filter'](_0x30f237=>!_0x30f237['name']||'revision-start'!==_0x30f237['name']&&'revision-end'!==_0x30f237['name']))['forEach'](_0x36ce9a=>{'string'!=typeof _0x36ce9a&&(_0x36ce9a['children']=this['_removeRevisionMarkers'](_0x36ce9a['children']),_0x36ce9a['attributes']=_0x36ce9a['attributes']['filter'](_0x68b5bc=>!_0x68b5bc[0x0]['startsWith']('data-revision-')));}),_0x519c66;}}function C(_0x5d4b43,_0x249d43){const _0x51d1a2=_0x249d43['editing']['view']['document'];if('string'==typeof _0x5d4b43)return new _0x4f8a2d(_0x51d1a2,_0x5d4b43);{const _0x1e2981=_0x5d4b43['children']['map'](_0x3a9e3c=>C(_0x3a9e3c,_0x249d43));return new(P[_0x5d4b43['type']]||_0x10c154)(_0x51d1a2,_0x5d4b43['name'],_0x5d4b43['attributes'],_0x1e2981);}}class V{['editor'];['source'];['_savedMetaData'];['_lastFrom'];['_lastTo'];['_markers'];['_diffRoots'];['_diffRootsAttributes'];['_baseRoots'];['_baseRootsAttributes'];['_idsRoots'];['_baseIdsRoots'];['_touched'];['_touchedMarkers'];['_touchedRoots'];['_revisionId'];['_startingRevisionId'];constructor(_0x4886d7){this['editor']=_0x4886d7,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'](_0x511fd5){this['source']=_0x511fd5;const _0x12b245=new Map(),_0x6b93f8=new Map(),_0x547269=this['editor']['model']['document']['roots']['map'](_0x12c813=>_0x12c813['rootName']);for(const _0x4d7156 of _0x547269){const _0x1ae469=this['editor']['model']['document']['getRoot'](_0x4d7156),_0x2f6965=T(_0x1ae469);_0x12b245['set'](_0x4d7156,_0x2f6965),_0x6b93f8['set'](_0x4d7156,Object['fromEntries'](_0x1ae469['getAttributes']()));}const _0x1661e2=Array['from'](this['editor']['model']['markers'])['map'](_0xecefea=>[_0xecefea['name'],_0xecefea['getRange']()]),_0x4aa23c=this['source']['version'];this['_saveMetaData'](_0x4aa23c,_0x12b245,_0x1661e2,_0x6b93f8),this['_startingRevisionId']=this['_revisionId'];const _0x5289e2=new Map(),_0x5f28aa=new Map();for(const _0x43fe04 of _0x547269){const _0x5bcbe0=F(_0x43fe04);_0x5289e2['set'](_0x43fe04,_0x5bcbe0),_0x5f28aa['set'](_0x43fe04,{});}this['_saveMetaData'](Number['NEGATIVE_INFINITY'],_0x5289e2,[],_0x5f28aa);}['getData'](_0x34c247,_0x1a9c20){if(this['_lastFrom']===_0x34c247&&this['_lastTo']<=_0x1a9c20)this['_savedMetaData']['size']>0x1&&this['_removeMetaData'](this['_lastTo']),this['_applyOperations'](this['_lastTo'],_0x1a9c20,!0x0);else{if(!this['_savedMetaData']['has'](_0x34c247)){const _0x2a65cb=this['_getPreviousFrom'](_0x34c247);this['_calculateMetaData'](_0x2a65cb,_0x34c247,!0x1);}this['_calculateMetaData'](_0x34c247,_0x1a9c20,!0x0);}return this['_lastFrom']=_0x34c247,this['_lastTo']=_0x1a9c20,this['_getState']();}['loadState'](_0x5e8600){this['_reset'](),this['_lastFrom']=_0x5e8600['fromVersion'],this['_lastTo']=_0x5e8600['toVersion'];for(const _0x49b1c7 in _0x5e8600['diffData']){const _0x26f8dc=_0x5e8600['diffData'][_0x49b1c7]['attachChange'],_0x4f6950=_0x10c153(_0x5e8600['diffData'][_0x49b1c7]['attributesBefore'])||{},_0x27d8a1=this['_makeModelFromViewString'](_0x5e8600['diffData'][_0x49b1c7]['deletions']);_0x27d8a1['rootName']=_0x49b1c7,_0x27d8a1['_isAttached']=!_0x26f8dc||!_0x26f8dc['isAttached'],_0x27d8a1['isAttached']=()=>_0x27d8a1['_isAttached'],this['_baseRoots']['set'](_0x49b1c7,_0x27d8a1),this['_baseRootsAttributes']['set'](_0x49b1c7,_0x4f6950),_0x26f8dc&&this['_touchedRoots']['set'](_0x49b1c7,_0x26f8dc);const _0x3d8a98=this['_makeIdsRoot'](_0x27d8a1);this['_baseIdsRoots']['set'](_0x49b1c7,_0x3d8a98);for(const [_0x2dfca9,_0x28f29c]of _0x27d8a1['markers']){if(!_0x2dfca9['startsWith']('revision:'))continue;const _0x42b4aa=_0x2dfca9['split'](':')[0x2];for(const _0x7a23cc of _0x28f29c['getWalker']({'singleCharacters':!0x0})){const _0x5d63ee=this['_getVidAttributeName'](_0x7a23cc),_0x3d6078='elementEnd'==_0x7a23cc['type']?_0x7a23cc['previousPosition']['path']['slice'](0x0,-0x1):_0x7a23cc['previousPosition']['path'],_0x43976b=_0x3d8a98['getNodeByPath'](_0x3d6078)['getAttribute'](_0x5d63ee);this['_touched']['set'](_0x43976b,{'userId':_0x42b4aa});}}}this['_startingRevisionId']=this['_revisionId'];const _0x410fda=[...Array(this['_revisionId'])['keys']()]['slice'](0x1)['filter'](_0x5cda35=>!this['_touched']['has'](_0x5cda35));let _0x523d45=0x0;const _0x48f379=new Map();for(const _0x5263bd in _0x5e8600['diffData']){const _0x118754=_0x5e8600['diffData'][_0x5263bd]['attachChange'],_0x2e5275=_0x10c153(_0x5e8600['diffData'][_0x5263bd]['attributesAfter'])||{},_0x48d2b2=this['_makeModelFromViewString'](_0x5e8600['diffData'][_0x5263bd]['insertions']);_0x48d2b2['rootName']=_0x5263bd,_0x48d2b2['_isAttached']=!_0x118754||_0x118754['isAttached'],_0x48d2b2['isAttached']=()=>_0x48d2b2['_isAttached'],this['_diffRoots']['set'](_0x5263bd,_0x48d2b2),this['_diffRootsAttributes']['set'](_0x5263bd,_0x2e5275);const _0x28aa9a=this['_makeIdsRoot'](_0x48d2b2,Number['NEGATIVE_INFINITY']);this['_idsRoots']['set'](_0x5263bd,_0x28aa9a),_0x48f379['set'](_0x5263bd,_0x48d2b2['isAttached']()?_0x2e5275:{});for(const [_0x34b2bc,_0x2e2ec1]of _0x48d2b2['markers']){if(!_0x34b2bc['startsWith']('revision:'))continue;const _0x958567=_0x34b2bc['split'](':')[0x2];for(const _0x2834a8 of _0x2e2ec1['getWalker']({'singleCharacters':!0x0})){const _0x16444d=this['_getVidAttributeName'](_0x2834a8),_0x5acefb=this['_revisionId']++,_0x46d54d='elementEnd'==_0x2834a8['type']?_0x2834a8['previousPosition']['path']['slice'](0x0,-0x1):_0x2834a8['previousPosition']['path'];_0x28aa9a['getNodeByPath'](_0x46d54d)['_setAttribute'](_0x16444d,_0x5acefb),this['_touched']['set'](_0x5acefb,{'userId':_0x958567});}}for(const _0x17d2c1 of this['editor']['model']['createRangeIn'](_0x48d2b2)['getWalker']({'singleCharacters':!0x0})){const _0x3ece87=this['_getVidAttributeName'](_0x17d2c1),_0x57017c='elementEnd'==_0x17d2c1['type']?_0x17d2c1['previousPosition']['path']['slice'](0x0,-0x1):_0x17d2c1['previousPosition']['path'],_0x1680ad=_0x28aa9a['getNodeByPath'](_0x57017c);_0x1680ad['getAttribute'](_0x3ece87)>0x0||_0x1680ad['_setAttribute'](_0x3ece87,_0x410fda[_0x523d45++]);}for(const [_0xd8f515,_0x4a7f67]of _0x48d2b2['markers'])_0xd8f515['startsWith']('revision:')||this['_markers']['set'](_0xd8f515,_0x4a7f67);}const _0x12d176=F('$graveyard');this['_baseRoots']['set']('$graveyard',_0x12d176),this['_baseIdsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x12d176,0x1));const _0x3780c3=F('$graveyard');this['_diffRoots']['set']('$graveyard',_0x3780c3),this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x3780c3,0x1));const _0x59a6f3=Array['from'](this['_diffRoots'])['map'](([_0x3bd563,_0x527cc2])=>[_0x3bd563,T(_0x527cc2)]);this['_saveMetaData'](this['_lastTo'],_0x59a6f3,this['_markers'],_0x48f379);}['_makeModelFromViewString'](_0x1dce15){const _0x1ab1e2=JSON['parse'](_0x1dce15),_0x50cfde=this['editor']['editing']['view']['document'],_0x18aa7d=new _0xeaf0ed(_0x50cfde,_0x1ab1e2['map'](_0x31336f=>C(_0x31336f,this['editor'])));return this['editor']['data']['toModel'](_0x18aa7d);}['_saveMetaData'](_0x415e5d,_0xb12a90,_0x114f9b,_0x31a4d6){const _0x111b53=new Map(_0xb12a90),_0x2bc6aa=new Map(_0x10c153(_0x31a4d6)),_0x3afc81=new Map();for(const [_0x192b06,_0xcc5c93]of _0x114f9b)_0x3afc81['set'](_0x192b06,{'start':_0xcc5c93['start']['clone'](),'end':_0xcc5c93['end']['clone'](),'rootName':_0xcc5c93['root']['rootName']});this['_savedMetaData']['set'](_0x415e5d,{'roots':_0x111b53,'markers':_0x3afc81,'rootsAttributes':_0x2bc6aa});}['_removeMetaData'](_0x1b5df9){this['_savedMetaData']['delete'](_0x1b5df9);}['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'](_0x2d1068,_0x14fa58=null){let _0x55e7d4=null;_0x2d1068['is']('documentFragment')||(_0x55e7d4=new ft(_0x2d1068['name'],{'vid_start':null===_0x14fa58?this['_revisionId']++:_0x14fa58++}));const _0x453858=[];for(const _0x19ba64 of _0x2d1068['getChildren']())if(_0x19ba64['is']('element')){_0x453858['push'](this['_makeIdsRoot'](_0x19ba64,_0x14fa58));const _0x3c130e=_0x453858[_0x453858['length']-0x1];null!==_0x14fa58&&(_0x14fa58=_0x3c130e['is']('element','$text')?_0x3c130e['getAttribute']('vid')+0x1:_0x3c130e['getAttribute']('vid_end')+0x1);}else{for(let _0x3a0d94=0x0;_0x3a0d94<_0x19ba64['offsetSize'];_0x3a0d94++)_0x453858['push'](new ft('$text',{'vid':null===_0x14fa58?this['_revisionId']++:_0x14fa58++}));}if(_0x2d1068['is']('documentFragment')){const _0x35f868=F(_0x2d1068['rootName']);return _0x35f868['_insertChild'](0x0,_0x453858),_0x35f868;}return _0x55e7d4['_setAttribute']('vid_end',null===_0x14fa58?this['_revisionId']++:_0x14fa58++),_0x55e7d4['_insertChild'](0x0,_0x453858),_0x55e7d4;}['_calculateMetaData'](_0x431445,_0x676f5e,_0x3a51de){this['_reset']();const {roots:_0x316e38,markers:_0x184a6d,rootsAttributes:_0x5047e4}=this['_savedMetaData']['get'](_0x431445);this['_baseRoots']=new Map(_0x316e38),this['_baseRootsAttributes']=new Map(_0x10c153(_0x5047e4));for(const [_0x9c3779,_0x1126cf]of this['_baseRoots'])if('$graveyard'!==_0x9c3779&&(this['_diffRoots']['set'](_0x9c3779,T(_0x1126cf)),this['_diffRootsAttributes']=new Map(_0x10c153(_0x5047e4)),_0x3a51de)){const _0x191725=this['_revisionId'];this['_idsRoots']['set'](_0x9c3779,this['_makeIdsRoot'](_0x1126cf)),this['_baseIdsRoots']['set'](_0x9c3779,this['_makeIdsRoot'](_0x1126cf,_0x191725));}this['_startingRevisionId']=this['_revisionId'],this['_diffRoots']['set']('$graveyard',T(this['_baseRoots']['get']('$graveyard'))),_0x3a51de&&this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](this['_baseRoots']['get']('$graveyard')));for(const [_0xff0fd8,_0x2d7580]of _0x184a6d){const _0x5a20b7=this['_baseRoots']['get'](_0x2d7580['rootName']),_0x43580d=this['_diffRoots']['get'](_0x2d7580['rootName']),_0x41a454=new vt(this['_fixPosition'](_0x2d7580['start'],_0x5a20b7),this['_fixPosition'](_0x2d7580['end'],_0x5a20b7)),_0x59b956=this['_fixRange'](_0x41a454,_0x43580d);_0x5a20b7['markers']['set'](_0xff0fd8,_0x41a454),this['_markers']['set'](_0xff0fd8,_0x59b956);}this['_applyOperations'](_0x431445,_0x676f5e,_0x3a51de);}['_applyOperations'](_0x477652,_0x3bf0a6,_0x14a3bc){for(const _0x2d3c4f of this['source']['getOperations'](_0x477652,_0x3bf0a6))this['_handleOperation'](_0x2d3c4f,_0x14a3bc);for(const _0x21db46 of this['_diffRoots']['values']())_0x21db46['markers']['clear']();for(const [_0x1ce0fd,_0x506b8a]of this['_markers']){this['_diffRoots']['get'](_0x506b8a['root']['rootName'])['markers']['set'](_0x1ce0fd,_0x506b8a['clone']());}const _0x583bac=new Map(),_0x32514f=new Map();for(const [_0x1350d7,_0x3321c0]of this['_diffRoots'])_0x583bac['set'](_0x1350d7,T(_0x3321c0)),_0x32514f['set'](_0x1350d7,this['_diffRootsAttributes']['get'](_0x1350d7));this['_saveMetaData'](_0x3bf0a6,_0x583bac,this['_markers'],_0x32514f);}['_getPreviousFrom'](_0x4a054f){const _0x2966b3=Array['from'](this['_savedMetaData']['keys']());_0x2966b3['sort']((_0x5bde0d,_0x702b83)=>_0x5bde0d-_0x702b83),_0x2966b3['reverse']();for(const _0x49b59c of _0x2966b3)if(_0x49b59c<_0x4a054f)return _0x49b59c;return Number['NEGATIVE_INFINITY'];}['_copyMarkers'](_0x19f49c,_0x1cb2ed){const _0x350621=Array['from'](_0x1cb2ed['markers'])['map'](([_0x404c06,_0x488380])=>[_0x404c06,this['_fixRange'](_0x488380,_0x19f49c)]);_0x19f49c['markers']=new Map(_0x350621);}['_transformMarkers'](_0xb6055){for(const _0x4382ee of this['_markers']['values']()){const _0x2ef3b4=_0x4382ee['getTransformedByOperation'](_0xb6055),_0x2c27cd=vt['_createFromRanges'](_0x2ef3b4);_0x4382ee['start']=_0x2c27cd['start'],_0x4382ee['end']=_0x2c27cd['end'];}}['_handleOperation'](_0x5177de,_0x24c84f){if('addRoot'!=_0x5177de['type']&&'detachRoot'!=_0x5177de['type']){if('insert'==_0x5177de['type']){const _0x1a02f9=_0x5177de['position']['root']['rootName'];this['_diffRoots']['has'](_0x1a02f9)||(this['_diffRoots']['set'](_0x1a02f9,F(_0x1a02f9,!0x0)),this['_diffRootsAttributes']['set'](_0x1a02f9,{}),_0x24c84f&&this['_idsRoots']['set'](_0x1a02f9,F(_0x1a02f9,!0x0)));}else{if('addRootAttribute'==_0x5177de['type']||'removeRootAttribute'==_0x5177de['type']||'changeRootAttribute'==_0x5177de['type'])return void this['_handleRootAttributeOperation'](_0x5177de);'marker'==_0x5177de['type']&&this['_handleMarkerOperation'](_0x5177de);}if('marker'!==_0x5177de['type']){const _0x518831=this['_cloneOperation'](_0x5177de,this['_diffRoots']);_0x518831['_execute'](),this['_transformMarkers'](_0x518831);}if(_0x24c84f)switch(_0x5177de['type']){case'insert':this['_handleInsertOperation'](_0x5177de);break;case'move':case'remove':case'reinsert':this['_handleMoveOperation'](_0x5177de);break;case'merge':this['_handleMergeOperation'](_0x5177de);break;case'split':this['_handleSplitOperation'](_0x5177de);}}else this['_handleRootOperation'](_0x5177de,_0x24c84f);}['_cloneOperation'](_0x5afe4d,_0x26bdda){const _0x453469=_0x5afe4d['clone']();return _0x453469['_authorId']=_0x5afe4d['_authorId'],this['_fixOperation'](_0x453469,_0x26bdda),_0x453469;}['_getBaseVids'](_0x133bce){return _0x133bce['map'](_0x3240af=>{const _0xf3eb18=this['_getVidAttributeName'](_0x3240af);return Number(_0x3240af['item']['getAttribute'](_0xf3eb18));});}['_generateTape'](_0x5ce831,_0x9ed098){if(_0x5ce831['is']('element','$text'))_0x9ed098['push']({'item':_0x5ce831,'type':'text'});else{_0x5ce831['is']('element')&&_0x9ed098['push']({'item':_0x5ce831,'type':'elementStart'});for(const _0x56d202 of _0x5ce831['getChildren']())this['_generateTape'](_0x56d202,_0x9ed098);_0x5ce831['is']('element')&&_0x9ed098['push']({'item':_0x5ce831,'type':'elementEnd'});}return _0x9ed098;}['_getState'](){const _0x43d9ed=new Map(this['_touched']),_0x31e1ab=new Map(_0x43d9ed),_0x58fe00=new Map(),_0x124c7c={'insertions':{},'deletions':{}},_0x1934f8={'insertions':{},'deletions':{}},_0x32faf9=new Map(),_0x5634e7=new Set([...this['_baseRoots']['keys'](),...this['_diffRoots']['keys']()]);_0x5634e7['delete']('$graveyard');for(const _0x360476 of _0x5634e7){const _0xc4d848=this['_diffRoots']['get'](_0x360476)||F(_0x360476,!0x1),_0x44ecc0=this['_baseRoots']['get'](_0x360476)||F(_0x360476,!0x1);_0xc4d848['isAttached']()||_0x44ecc0['isAttached']()?(_0x124c7c['insertions'][_0x360476]=T(_0xc4d848),_0x124c7c['deletions'][_0x360476]=T(_0x44ecc0),this['_copyMarkers'](_0x124c7c['deletions'][_0x360476],_0x44ecc0),this['_copyMarkers'](_0x124c7c['insertions'][_0x360476],_0xc4d848),_0x1934f8['insertions'][_0x360476]=this['_generateTape'](this['_idsRoots']['get'](_0x360476),[]),_0x1934f8['deletions'][_0x360476]=this['_generateTape'](this['_baseIdsRoots']['get'](_0x360476)||F(_0x360476,!0x1),[])):_0x5634e7['delete'](_0x360476);}for(const _0x426317 of _0x5634e7){const _0x262ec2=_0x1934f8['insertions'][_0x426317];for(const _0x1debf6 of _0x262ec2){const _0x3c7483=this['_getVidAttributeName'](_0x1debf6),_0x5d6d74=_0x1debf6['item']['getAttribute'](_0x3c7483);_0x31e1ab['delete'](_0x5d6d74),_0x5d6d74>=this['_startingRevisionId']&&_0x58fe00['set'](_0x5d6d74,_0x43d9ed['get'](_0x5d6d74));}}for(const _0x5b8617 of _0x5634e7){const _0x200ad4=_0x1934f8['insertions'][_0x5b8617],_0x20f3c9=this['_getBaseVids'](_0x1934f8['deletions'][_0x5b8617]);let _0x3c4674=0x0;for(const _0x179506 of _0x200ad4){const _0x3a868d=this['_getVidAttributeName'](_0x179506),_0x35de81=_0x179506['item']['getAttribute'](_0x3a868d);if(!_0x58fe00['has'](_0x35de81)&&!_0x32faf9['has'](_0x35de81)){if(_0x31e1ab['has'](_0x35de81))_0x3c4674++;else{if(_0x35de81!=_0x20f3c9[_0x3c4674]){const _0x57094c=_0x43d9ed['get'](_0x35de81)||_0x43d9ed['get'](_0x20f3c9[_0x3c4674]);for(;_0x35de81!=_0x20f3c9[_0x3c4674];)_0x31e1ab['has'](_0x20f3c9[_0x3c4674])||(_0x32faf9['set'](_0x20f3c9[_0x3c4674],_0x57094c),_0x43d9ed['set'](_0x20f3c9[_0x3c4674],_0x57094c)),_0x3c4674++;}_0x3c4674++;}}}}for(const _0x1bab4a of _0x5634e7){const _0x18f1de=_0x1934f8['insertions'][_0x1bab4a];for(const _0x2706fc of _0x18f1de){const _0x3d9841=this['_getVidAttributeName'](_0x2706fc),_0x55e8d0=_0x2706fc['item']['getAttribute'](_0x3d9841);if(_0x32faf9['has'](_0x55e8d0)){const _0x589f4c=_0x32faf9['get'](_0x55e8d0);_0x31e1ab['has'](_0x55e8d0)||_0x31e1ab['set'](_0x55e8d0,{..._0x589f4c}),_0x58fe00['set'](_0x55e8d0,{..._0x589f4c});}}}for(const _0x5ae9b5 of _0x31e1ab['keys']())_0x5ae9b5>=this['_startingRevisionId']&&_0x31e1ab['delete'](_0x5ae9b5);const _0x47aafd=new Map();for(const _0xc86210 of _0x5634e7){let _0x4a5a62=_0x1934f8['insertions'][_0xc86210];for(const _0x306ac7 of _0x4a5a62)if(_0x306ac7['item']['is']('element','tableCell')){const _0x3190b3=this['_getVidAttributeName'](_0x306ac7),_0x46d4af=_0x306ac7['item']['getAttribute'](_0x3190b3);if(_0x58fe00['has'](_0x46d4af)){const _0x193558=_0x306ac7['item']['parent']['parent']['getAttribute']('vid_start'),_0xa08ab7=_0x47aafd['get'](_0x193558)||new Set();_0xa08ab7['add'](_0x58fe00['get'](_0x46d4af)['userId']),_0x47aafd['set'](_0x193558,_0xa08ab7);}}_0x4a5a62=_0x1934f8['deletions'][_0xc86210];for(const _0x29236c of _0x4a5a62)if(_0x29236c['item']['is']('element','tableCell')){const _0xc01657=this['_getVidAttributeName'](_0x29236c),_0x643e2e=_0x29236c['item']['getAttribute'](_0xc01657);if(_0x31e1ab['has'](_0x643e2e)){const _0x43598c=_0x29236c['item']['parent']['parent']['getAttribute']('vid_start'),_0x3ba65b=_0x47aafd['get'](_0x43598c)||new Set();_0x3ba65b['add'](_0x31e1ab['get'](_0x643e2e)['userId']),_0x47aafd['set'](_0x43598c,_0x3ba65b);}}for(const _0x442299 of _0x47aafd['keys']())(_0x58fe00['has'](_0x442299)||_0x31e1ab['has'](_0x442299))&&_0x47aafd['delete'](_0x442299);}for(const _0x3d47df of _0x5634e7){const _0x32de2a=_0x1934f8['insertions'][_0x3d47df];let _0x1c2a34=null,_0x244345=null;for(const _0xc5f8fb of _0x32de2a){const _0x26dcbf=this['_getVidAttributeName'](_0xc5f8fb),_0x2491eb=_0xc5f8fb['item']['getAttribute'](_0x26dcbf),_0x4591e7=_0x47aafd['get'](_0x2491eb);_0x4591e7&&'elementStart'==_0xc5f8fb['type']&&(_0x1c2a34=Array['from'](_0x4591e7)[0x0],_0x244345=_0xc5f8fb['item']['getAttribute']('vid_end')),_0x1c2a34&&(_0x31e1ab['set'](_0x2491eb,{'userId':_0x1c2a34}),_0x58fe00['set'](_0x2491eb,{'userId':_0x1c2a34})),_0x2491eb==_0x244345&&(_0x1c2a34=null,_0x244345=null);}}const _0x12ca78={},_0x2cd5be=new Set();for(const _0x22b5f1 of _0x5634e7){const _0x56b89e=_0x124c7c['deletions'][_0x22b5f1],_0x2cf328=_0x124c7c['insertions'][_0x22b5f1];for(const {userId:_0xa92dc6}of this['_touchedMarkers']['values']())null!==_0xa92dc6&&_0x2cd5be['add'](_0xa92dc6);for(const {userId:_0x59993b}of this['_touchedRoots']['values']())null!==_0x59993b&&_0x2cd5be['add'](_0x59993b);this['_markChanges'](_0x2cf328,_0x1934f8['insertions'][_0x22b5f1],_0x58fe00,'insertion',_0x2cd5be),this['_markChanges'](_0x56b89e,_0x1934f8['deletions'][_0x22b5f1],_0x31e1ab,'deletion',_0x2cd5be),_0x12ca78[_0x22b5f1]={'insertions':this['_prepareViewToSave'](_0x2cf328),'deletions':this['_prepareViewToSave'](_0x56b89e),'attachChange':this['_touchedRoots']['get'](_0x22b5f1)||null,'attributesBefore':_0x10c153(this['_baseRootsAttributes']['get'](_0x22b5f1))||{},'attributesAfter':_0x10c153(this['_diffRootsAttributes']['get'](_0x22b5f1))};}return{'diffData':_0x12ca78,'authorsIds':Array['from'](_0x2cd5be)};}['_processRootBeforeSave'](_0x122633){for(const [,_0x5a9d7e]of _0x122633['markers']){const _0x13dfdb=_0x5a9d7e['start']['getAncestors']()['filter'](_0x57dbea=>'tableCell'==_0x57dbea['name']);for(const _0x4423f5 of _0x13dfdb)0x1==_0x4423f5['childCount']&&_0x4423f5['getChild'](0x0)['is']('element','paragraph')&&_0x4423f5['getChild'](0x0)['_setAttribute']('keepParagraph',!0x0);}}['_prepareViewToSave'](_0x592175){this['_processRootBeforeSave'](_0x592175);const _0x109356=this['editor']['data']['toView'](_0x592175,{}),_0x28811b=Array['from'](_0x109356['getChildren']())['map'](_0x177a12=>this['_getViewJson'](_0x177a12));return JSON['stringify'](_0x28811b);}['_getViewJson'](_0x167fe5){if(_0x167fe5['is']('$text'))return _0x167fe5['data'];{const _0x3ab409=_0x167fe5;return{'type':Object['keys'](P)['find'](_0xa31316=>_0x167fe5 instanceof P[_0xa31316]),'name':_0x3ab409['name'],'attributes':Array['from'](_0x3ab409['getAttributes']()),'children':Array['from'](_0x3ab409['getChildren']())['map'](_0x745631=>this['_getViewJson'](_0x745631))};}}['_markChanges'](_0x4af24e,_0x12d897,_0x94bf1a,_0x161112,_0x3e65ac){let _0x20d0cc=null,_0x41be5e=null,_0x158a29=0x0;const _0x453622=this['editor']['model'];for(let _0x4ffce9=0x0;_0x4ffce9<_0x12d897['length'];_0x4ffce9++){const _0x5e3f86=this['_getVidAttributeName'](_0x12d897[_0x4ffce9]),_0x3d9536=_0x12d897[_0x4ffce9]['item']['getAttribute'](_0x5e3f86),_0x13cd30=_0x94bf1a['get'](_0x3d9536),_0x599360=_0x4ffce9==_0x12d897['length']-0x1;(!_0x20d0cc&&_0x13cd30&&(_0x20d0cc=_0x13cd30,_0x41be5e=_0x12d897[_0x4ffce9]),_0x20d0cc&&(!_0x13cd30||_0x13cd30['userId']!=_0x20d0cc['userId']))&&(_0x4c8974(_0x13cd30,B(_0x41be5e,_0x4af24e,_0x453622),B(_0x12d897[_0x4ffce9],_0x4af24e,_0x453622)),_0x20d0cc=_0x13cd30||null,_0x41be5e=_0x13cd30?_0x12d897[_0x4ffce9]:null),_0x20d0cc&&_0x599360&&_0x4c8974(_0x13cd30,B(_0x41be5e,_0x4af24e,_0x453622),J(_0x12d897[_0x4ffce9],_0x4af24e,_0x453622));}function _0x4c8974(_0x3365fc,_0x1bc956,_0x525dbe){const _0x4ab85d=_0x20d0cc['userId'],_0x1bcb88='revision:'+_0x161112+':'+_0x4ab85d+':'+_0x158a29++,_0xb335b7=_0x453622['createRange'](_0x1bc956,_0x525dbe);_0x4af24e['markers']['set'](_0x1bcb88,_0xb335b7),null!==_0x4ab85d&&_0x3e65ac['add'](_0x4ab85d);}}['_getVidAttributeName'](_0x33e301){switch(_0x33e301['type']){case'elementStart':return'vid_start';case'elementEnd':return'vid_end';default:return'vid';}}['_fixOperation'](_0x1cb79d,_0x24d164){_0x1cb79d['baseVersion']=null;for(const _0x1eb048 in _0x1cb79d){const _0x53f635=_0x1cb79d[_0x1eb048];if(_0x53f635 instanceof gt){const _0x5f2b81=_0x24d164['get'](_0x53f635['root']['rootName']);_0x1cb79d[_0x1eb048]=this['_fixPosition'](_0x53f635,_0x5f2b81);}if(_0x53f635 instanceof vt){const _0xcc1df3=_0x24d164['get'](_0x53f635['root']['rootName']);_0x1cb79d[_0x1eb048]=this['_fixRange'](_0x53f635,_0xcc1df3);}'root'===_0x1eb048&&(_0x1cb79d['root']=_0x24d164['get'](_0x1cb79d['root']['rootName']));}}['_fixRange'](_0x16d295,_0x46427f){return this['editor']['model']['createRange'](this['_fixPosition'](_0x16d295['start'],_0x46427f),this['_fixPosition'](_0x16d295['end'],_0x46427f));}['_fixPosition'](_0x52ab45,_0x486d01){return this['editor']['model']['createPositionFromPath'](_0x486d01,_0x52ab45['path'],_0x52ab45['stickiness']);}['_handleInsertOperation'](_0x520c33){const _0x4ec599=this['_idsRoots']['get'](_0x520c33['position']['root']['rootName']),_0x169fcf=this['_fixPosition'](_0x520c33['position'],_0x4ec599),_0xac2666=null===_0x520c33['_authorId']?null:_0x520c33['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x428e5f=_0x169fcf['parent'],_0x5b38e8=this['_revisionId'],_0x3c9055=[];for(const _0x620f54 of _0x520c33['nodes'])if(_0x620f54['is']('element'))_0x3c9055['push'](this['_makeIdsRoot'](_0x620f54));else{for(let _0xcd120b=0x0;_0xcd120b<_0x620f54['offsetSize'];_0xcd120b++)_0x3c9055['push'](new ft('$text',{'vid':this['_revisionId']++}));}const _0x4a0b56=this['_revisionId'];for(let _0x205079=_0x5b38e8;_0x205079<_0x4a0b56;_0x205079++)this['_touched']['set'](_0x205079,{'userId':_0xac2666});_0x428e5f['_insertChild'](_0x169fcf['offset'],_0x3c9055);}['_handleMoveOperation'](_0x16f4d2){(_0x16f4d2=this['_cloneOperation'](_0x16f4d2,this['_idsRoots']))['_execute']();const _0x3d4de1=null===_0x16f4d2['_authorId']?null:_0x16f4d2['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x1c5974=_0x16f4d2['getMovedRangeStart'](),_0x47c8c1=_0x1c5974['parent'],_0xc566d9=_0x1c5974['offset'];!function _0x3cbdcf(_0x1ff34e,_0xc5190e,_0x13a010,_0x362639){for(let _0x1be832=_0x13a010;_0x1be832<_0x362639;_0x1be832++){const _0x74c00e=_0xc5190e['getChild'](_0x1be832);_0x74c00e['is']('element','$text')?_0x1ff34e['set'](_0x74c00e['getAttribute']('vid'),{'userId':_0x3d4de1}):(_0x1ff34e['set'](_0x74c00e['getAttribute']('vid_start'),{'userId':_0x3d4de1}),_0x3cbdcf(_0x1ff34e,_0x74c00e,0x0,_0x74c00e['childCount']),_0x1ff34e['set'](_0x74c00e['getAttribute']('vid_end'),{'userId':_0x3d4de1}));}}(this['_touched'],_0x47c8c1,_0xc566d9,_0xc566d9+_0x16f4d2['howMany']);}['_handleMergeOperation'](_0x14a2a2){const _0x2eef16=null===(_0x14a2a2=this['_cloneOperation'](_0x14a2a2,this['_idsRoots']))['_authorId']?null:_0x14a2a2['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0xb1489f=_0x14a2a2['targetPosition']['parent'],_0x359ad4=_0x14a2a2['sourcePosition']['parent'],_0x21b4eb=_0xb1489f['getAttribute']('vid_end'),_0xfa3b37=_0x359ad4['getAttribute']('vid_start');_0xb1489f['_setAttribute']('vid_end',_0x359ad4['getAttribute']('vid_end')),_0x359ad4['_setAttribute']('vid_end',_0x21b4eb),this['_touched']['set'](_0xfa3b37,{'userId':_0x2eef16}),this['_touched']['set'](_0x21b4eb,{'userId':_0x2eef16}),_0x14a2a2['_execute']();}['_handleSplitOperation'](_0x16971a){const _0x1ed2b8=null===(_0x16971a=this['_cloneOperation'](_0x16971a,this['_idsRoots']))['_authorId']?null:_0x16971a['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x1924f7=_0x16971a['graveyardPosition'],_0x39f4ae=_0x16971a['splitPosition']['parent'];_0x16971a['_execute']();const _0x59722d=_0x39f4ae['getAttribute']('vid_end'),_0x3f185e=_0x16971a['insertionPosition']['nodeAfter'];if(_0x1924f7){const _0x4e6752=_0x3f185e['getAttribute']('vid_end'),_0x3733a7=_0x39f4ae['getAttribute']('vid_end');_0x39f4ae['_setAttribute']('vid_end',_0x4e6752),_0x3f185e['_setAttribute']('vid_end',_0x3733a7),this['_touched']['set'](_0x39f4ae['getAttribute']('vid_end'),{'userId':_0x1ed2b8}),this['_touched']['set'](_0x3f185e['getAttribute']('vid_start'),{'userId':_0x1ed2b8});}else{const _0x4b5aea=this['_revisionId']++,_0x56c026=this['_revisionId']++;_0x39f4ae['_setAttribute']('vid_end',_0x4b5aea),_0x3f185e['_setAttribute']('vid_start',_0x56c026),_0x3f185e['_setAttribute']('vid_end',_0x59722d),this['_touched']['set'](_0x4b5aea,{'userId':_0x1ed2b8}),this['_touched']['set'](_0x56c026,{'userId':_0x1ed2b8});}}['_handleMarkerOperation'](_0x11c2d8){if(!_0x11c2d8['affectsData'])return;const _0x40268d=(_0x11c2d8=this['_cloneOperation'](_0x11c2d8,this['_diffRoots']))['oldRange']?_0x11c2d8['oldRange']['root']:null,_0x76e149=_0x11c2d8['newRange']?_0x11c2d8['newRange']['root']:null;_0x40268d&&this['_markers']['delete'](_0x11c2d8['name']),_0x76e149&&this['_markers']['set'](_0x11c2d8['name'],_0x11c2d8['newRange']['clone']());const _0xaa0b80=null===_0x11c2d8['_authorId']?null:_0x11c2d8['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x50124d=_0x11c2d8['name'];if(!this['_touchedMarkers']['has'](_0x50124d))return void this['_touchedMarkers']['set'](_0x50124d,{'range':_0x11c2d8['oldRange'],'userId':_0xaa0b80});const _0x16c8b2=this['_touchedMarkers']['get'](_0x50124d),_0x542ad6=_0x16c8b2['range'],_0x3ee124=_0x11c2d8['newRange'];null==_0x542ad6&&null==_0x3ee124||_0x542ad6&&_0x3ee124&&_0x542ad6['isEqual'](_0x3ee124)?this['_touchedMarkers']['delete'](_0x11c2d8['name']):_0x16c8b2['userId']=_0xaa0b80;}['_handleRootOperation'](_0x4b8ae4,_0x3d9e17){this['_diffRoots']['has'](_0x4b8ae4['rootName'])?this['_diffRoots']['get'](_0x4b8ae4['rootName'])['_isAttached']=_0x4b8ae4['isAdd']:(this['_diffRoots']['set'](_0x4b8ae4['rootName'],F(_0x4b8ae4['rootName'],!0x0)),this['_diffRootsAttributes']['set'](_0x4b8ae4['rootName'],{}),_0x3d9e17&&this['_idsRoots']['set'](_0x4b8ae4['rootName'],F(_0x4b8ae4['rootName'],!0x0)));const _0x59bf6c=null===_0x4b8ae4['_authorId']?null:_0x4b8ae4['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x5e34f2=this['_touchedRoots']['get'](_0x4b8ae4['rootName']);_0x5e34f2&&_0x5e34f2['userId']===_0x59bf6c?this['_touchedRoots']['delete'](_0x4b8ae4['rootName']):this['_touchedRoots']['set'](_0x4b8ae4['rootName'],{'userId':_0x59bf6c,'isAttached':_0x4b8ae4['isAdd']});}['_handleRootAttributeOperation'](_0xc7f87e){const _0x2212fc=this['_diffRootsAttributes']['get'](_0xc7f87e['root']['rootName']);null===_0xc7f87e['newValue']?delete _0x2212fc[_0xc7f87e['key']]:_0x2212fc[_0xc7f87e['key']]=_0xc7f87e['newValue'];}}function T(_0x1b6bd3){const _0x3a82f6=F(_0x1b6bd3['rootName'],_0x1b6bd3['isAttached']());for(const _0x265011 of _0x1b6bd3['getChildren']()){const _0xf04e6a=_0x265011['_clone'](!0x0);_0x3a82f6['_appendChild'](_0xf04e6a);}return _0x3a82f6;}function F(_0x133ae2,_0x495d90=!0x0){const _0x1a37c9=new mt();return _0x1a37c9['rootName']=_0x133ae2,_0x1a37c9['_isAttached']=_0x495d90,_0x1a37c9['isAttached']=()=>_0x1a37c9['_isAttached'],_0x1a37c9;}function B(_0x453195,_0x560226,_0x5b1c8e){const _0x3fe110='elementEnd'==_0x453195['type']?_0x5b1c8e['createPositionAt'](_0x453195['item'],'end'):_0x5b1c8e['createPositionBefore'](_0x453195['item']);return _0x5b1c8e['createPositionFromPath'](_0x560226,_0x3fe110['path'],_0x3fe110['stickiness']);}function J(_0x225d70,_0x150008,_0x367a3b){const _0x4ee030='elementStart'==_0x225d70['type']?_0x367a3b['createPositionAt'](_0x225d70['item'],0x0):_0x367a3b['createPositionAfter'](_0x225d70['item']);return _0x367a3b['createPositionFromPath'](_0x150008,_0x4ee030['path'],_0x4ee030['stickiness']);}class ns extends _0x4cb52{['focusTracker'];['keystrokes'];['revisionNameInputView'];constructor(_0x676936,_0x23fca2){super(_0x676936),this['focusTracker']=new _0x520137(),this['keystrokes']=new _0x48d79d(),this['set']('revisionNameInputValue',''),this['revisionNameInputView']=this['_createRevisionNameInput'](_0x23fca2),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'](),_0x1c5528({'view':this}),this['focusTracker']['add'](this['revisionNameInputView']['element']),this['keystrokes']['listenTo'](this['element']);const _0x239337=_0x2ffeb9=>_0x2ffeb9['stopPropagation']();this['keystrokes']['set']('arrowright',_0x239337),this['keystrokes']['set']('arrowleft',_0x239337),this['keystrokes']['set']('arrowup',_0x239337),this['keystrokes']['set']('arrowdown',_0x239337);}['focus'](){this['revisionNameInputView']['focus']();}get['revisionName'](){return this['revisionNameInputView']['fieldView']['element']['value']['trim']();}set['revisionName'](_0x497317){this['revisionNameInputView']['fieldView']['element']['value']=_0x497317['trim']();}['reset'](){this['revisionNameInputView']['fieldView']['element']['value']='',this['revisionNameInputView']['errorText']=null;}['_createRevisionNameInput'](_0x4589b6){const _0x55d784=new nt(this['locale'],_0x1ddc75),_0x4b3190=_0x55d784['fieldView'];_0x4b3190['extendTemplate']({'attributes':{'maxlength':'220'}});let _0x44f965=m(this['locale'],'Name\x20of\x20the\x20revision');return!_0x4589b6&&(_0x44f965+='\x20('+m(this['locale'],'optional')+')'),(_0x55d784['label']=_0x44f965,_0x4b3190['on']('input',()=>{this['revisionNameInputValue']=_0x4b3190['element']['value']['trim']();}),_0x55d784);}}class u extends _0x23fe3b{static get['pluginName'](){return'RevisionHistoryUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[l];}['_saveRevisionFormView'];['init'](){const _0x3ea8d3=this['editor'],_0xce5798=_0x3ea8d3['plugins']['get']('RevisionTracker');_0x3ea8d3['ui']['componentFactory']['add']('revisionHistory',_0x2d376b=>{const _0x41a7ec=_0x4daaa8(_0x2d376b),_0x40809a=_0x41a7ec['panelView']['children'],_0x594e39=new te(_0x2d376b),_0x528c89=new _0x32e635(_0x2d376b),_0x5e0130=new _0x219c24(_0x2d376b),_0x583157=new _0x32e635(_0x2d376b),_0x3a50f3=new _0x219c24(_0x2d376b);return _0x41a7ec['bind']('isEnabled')['to'](_0xce5798,'isReady',_0xce5798,'isEnabled',_0x3ea8d3,'isReadOnly',(_0x269c0b,_0x32a6e9,_0x10a39c)=>_0x269c0b&&_0x32a6e9&&!_0x10a39c),_0x41a7ec['buttonView']['set']({'icon':_0x5d0720['history'],'label':m(_0x2d376b,'Revision\x20history'),'tooltip':!0x0}),_0x5e0130['set']({'label':m(_0x2d376b,'Save\x20current\x20revision'),'withText':!0x0,'role':'menuitem'}),_0x5e0130['bind']('isEnabled')['to'](_0xce5798,'isReady',_0xce5798,'isEnabled',_0x3ea8d3,'isReadOnly',(_0x55501a,_0x11f33e,_0x452e83)=>_0x55501a&&_0x11f33e&&!_0x452e83),_0x5e0130['on']('execute',()=>this['_showDialog']()),_0x3a50f3['set']({'label':m(_0x2d376b,'Open\x20revision\x20history'),'withText':!0x0,'role':'menuitem'}),_0x3a50f3['bind']('isEnabled')['to'](_0xce5798,'isReady',_0x3ea8d3,'isReadOnly',(_0x54ea1f,_0x2e96da)=>_0x54ea1f&&!_0x2e96da),_0x3a50f3['on']('execute',()=>{_0x3ea8d3['config']['get']('revisionHistory')['showRevisionViewerCallback'](),_0x41a7ec['isOpen']=!0x1,_0x3ea8d3['editing']['view']['focus']();}),_0x528c89['children']['add'](_0x5e0130),_0x583157['children']['add'](_0x3a50f3),_0x594e39['role']='menu',_0x594e39['items']['addMany']([_0x528c89,_0x583157]),_0x40809a['add'](_0x594e39),_0x41a7ec;}),_0x3ea8d3['ui']['componentFactory']['add']('menuBar:revisionHistory',()=>this['_registerMenuComponent']());}['_registerMenuComponent'](){const _0x44cb47=this['editor'],_0x2a2579=_0x44cb47['locale'],_0x3db44a=new _0x327427(_0x2a2579),_0xa99223=new _0x4081ea(_0x2a2579);_0x3db44a['buttonView']['set']({'icon':_0x5d0720['history'],'label':m(_0x2a2579,'Revision\x20history')});const _0x5cb142=new _0x375dc5(_0x2a2579,_0x3db44a),_0x183d67=new _0x3b43e0(_0x2a2579);_0x183d67['set']({'label':m(_0x2a2579,'Save\x20current\x20revision')}),_0x183d67['delegate']('execute')['to'](_0x3db44a),_0x183d67['on']('execute',()=>{this['_showDialog']();}),_0x5cb142['children']['add'](_0x183d67),_0xa99223['items']['add'](_0x5cb142);const _0x41347f=new _0x375dc5(_0x2a2579,_0x3db44a),_0x215fdc=new _0x3b43e0(_0x2a2579);return _0x215fdc['set']({'label':m(_0x2a2579,'Open\x20revision\x20history')}),_0x215fdc['delegate']('execute')['to'](_0x3db44a),_0x215fdc['on']('execute',()=>{_0x44cb47['config']['get']('revisionHistory')['showRevisionViewerCallback']();}),_0x41347f['children']['add'](_0x215fdc),_0xa99223['items']['add'](_0x41347f),_0x3db44a['panelView']['children']['add'](_0xa99223),_0x3db44a;}['_showDialog'](){const _0xd36a47=this['editor'],_0x48a308=_0xd36a47['locale'],_0x2285df=_0xd36a47['plugins']['get']('Dialog'),_0x5130de=_0xd36a47['plugins']['get']('RevisionTracker');function _0x3924b4(_0x42b5b5){_0xd36a47['config']['get']('revisionHistory.requireRevisionName')&&''===_0x42b5b5['revisionName']?_0x42b5b5['revisionNameInputView']['errorText']=m(_0x48a308,'The\x20revision\x20name\x20cannot\x20be\x20empty.'):(_0xd36a47['plugins']['get'](l)['saveRevision']({'name':_0x42b5b5['revisionName']}),_0x2285df['hide']());}this['_saveRevisionFormView']||(this['_createSaveRevisionFormView'](),this['_saveRevisionFormView']['on']('submit',()=>_0x3924b4(this['_saveRevisionFormView']))),this['_saveRevisionFormView']['reset'](),_0x2285df['show']({'id':'revisionSave','title':m(_0x48a308,'Save\x20current\x20revision'),'isModal':!0x0,'content':this['_saveRevisionFormView'],'actionButtons':[{'label':m(_0xd36a47['locale'],'Cancel'),'withText':!0x0,'onExecute':()=>_0x2285df['hide']()},{'label':m(_0xd36a47['locale'],'Accept'),'class':'ck-button-action','withText':!0x0,'onCreate'(_0x2a2843){_0x2a2843['bind']('isEnabled')['to'](_0x5130de,'isReady',_0x5130de,'isEnabled',_0xd36a47,'isReadOnly',(_0x2f0269,_0x3ebfd6,_0xc890)=>_0x2f0269&&_0x3ebfd6&&!_0xc890);},'onExecute':()=>_0x3924b4(this['_saveRevisionFormView'])}]});}['_createSaveRevisionFormView'](){const _0x51190e=this['editor'],_0x1f7ee7=_0x51190e['locale'];this['_saveRevisionFormView']=new ns(_0x1f7ee7,_0x51190e['config']['get']('revisionHistory.requireRevisionName')),this['_saveRevisionFormView']['render']();}}class X extends _0x4cb52{['changeId'];['_model'];constructor(_0x2f836e,_0x18db82){super(_0x2f836e),this['_model']=_0x18db82,this['changeId']=_0x18db82['id'];const _0x35ca43=this['bindTemplate'],_0x581fb5=m(_0x2f836e,_0x18db82['data']['isSuggestion']?'Suggested\x20by':'add'==_0x18db82['type']?'Added\x20by':'Removed\x20by');this['set']('type',_0x18db82['type']),this['setTemplate']({'tag':'div','attributes':{'class':['ck-annotation','ck-revision-change',_0x35ca43['to']('type',_0x418804=>'ck-revision-change__'+_0x418804)],'tabindex':-0x1},'children':[{'tag':'span','children':[{'tag':'span','attributes':{'class':['ck-revision-change__label']},'children':[{'text':_0x581fb5}]},{'text':'\x20'+_0x18db82['author']['name']}]}]});}['focus'](){this['element']['focus']();}}class r extends/* #__PURE__ -- @preserve */
|
|
25
|
-
_0x17bb2d(){['id'];['author'];['type'];['data'];['rootName'];constructor(_0x37f8d9){super(),this['id']=_0x37f8d9['id']||_0x32ae7e(),this['author']=_0x37f8d9['author'],this['type']=_0x37f8d9['type'],this['data']=_0x37f8d9['data']||{},this['rootName']=_0x37f8d9['rootName'],this['set']('createdAt',_0x37f8d9['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(_0x35ad1e,_0x4a7226){this['newRevisionId']=_0x35ad1e,this['oldRevisionId']=_0x4a7226,this['changes']=new _0x2733e7();}['_setChanges'](_0x975aa5){for(const _0x5ecde1 of _0x975aa5)this['changes']['add'](_0x5ecde1);}}const Y={'c':_0x5ef4e4,'a':_0xe31744,'e':_0x1313cb,'r':_0x10477d,'u':_0x44f7dc};class d extends _0x23fe3b{['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[_0x36152c,_0x4804bd,j];}constructor(_0x1bbcaf){super(_0x1bbcaf),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',(_0x509ce8,_0x2baca1,_0x299c23)=>{this['activeChange']=null,this['activeView']=null,this['editor']['editing']['view']['change'](_0x1ffb86=>{for(const _0x2afc26 of this['editor']['editing']['view']['document']['roots'])_0x299c23?_0x1ffb86['removeClass']('ck-editor__editable__overlay',_0x2afc26):_0x1ffb86['addClass']('ck-editor__editable__overlay',_0x2afc26);});}),this['bind']('isNavigationMode')['to'](this,'activeChange',_0x12dcd0=>null!==_0x12dcd0),this['bind']('currentChangeNumber')['to'](this,'isReady',this,'diff',this,'activeChange',(_0x535947,_0x4483c0,_0x4b5b32)=>_0x535947&&_0x4b5b32?_0x4483c0['changes']['getIndex'](_0x4b5b32):0x0),this['bind']('numberOfChanges')['to'](this,'isReady',this,'diff',(_0x3368af,_0x58e2b2)=>_0x3368af?_0x58e2b2['changes']['length']:0x0),this['_changeView']=null,this['_changeIdToChange']=new Map(),this['adapter']=null,this['_balloon']=this['editor']['plugins']['get'](_0x4804bd);}['init'](){const _0x4173c3=this['editor'],_0x363a8c=new yt(_0x4173c3,{'direction':'backward'}),_0x12c095=new yt(_0x4173c3,{'direction':'forward'});(_0x4173c3['commands']['add']('showPreviousChange',_0x363a8c),_0x4173c3['commands']['add']('showNextChange',_0x12c095),_0x4173c3['commands']['add']('restoreRevision',new _t(_0x4173c3)),this['on']('change:numberOfChanges',()=>{_0x363a8c['refresh'](),_0x12c095['refresh']();}),this['_setConversion'](),this['_initInteractions'](),_0x4173c3['enableReadOnlyMode']('revision-viewer'),_0x4173c3['plugins']['has']('WidgetToolbarRepository'))&&_0x4173c3['plugins']['get']('WidgetToolbarRepository')['forceDisabled']('revision-viewer');}async['getRevisionData'](_0x226074){await this['loadRevisionData'](_0x226074);const _0x573ebe={};for(const _0x12e92b in _0x226074['diffData']){if(_0x226074['diffData'][_0x12e92b]['attachChange']&&!_0x226074['diffData'][_0x12e92b]['attachChange']['isAttached'])continue;const _0x5a0da9=this['_removeRevisionMarkers'](JSON['parse'](_0x226074['diffData'][_0x12e92b]['insertions'])),_0xce882f=this['editor']['editing']['view']['document'],_0x40f9bc=new _0xeaf0ed(_0xce882f,_0x5a0da9['map'](_0x1ef793=>this['_getViewObj'](_0x1ef793)));this['editor']['data']['processor']['useFillerType']('marked'),_0x573ebe[_0x12e92b]=this['editor']['data']['processor']['toData'](_0x40f9bc),this['editor']['data']['processor']['useFillerType']('default');}return _0x573ebe;}async['getRevisionRootsAttributes'](_0x168ae1){await this['loadRevisionData'](_0x168ae1);const _0x501d52={};for(const _0x19c5cd in _0x168ae1['diffData'])_0x168ae1['diffData'][_0x19c5cd]['attachChange']&&!_0x168ae1['diffData'][_0x19c5cd]['attachChange']['isAttached']||(_0x501d52[_0x19c5cd]=_0x168ae1['diffData'][_0x19c5cd]['attributesAfter']||{});return _0x501d52;}['_removeRevisionMarkers'](_0x535a3d){return(_0x535a3d=_0x535a3d['filter'](_0x25522a=>!_0x25522a['name']||'revision-start'!==_0x25522a['name']&&'revision-end'!==_0x25522a['name']))['forEach'](_0xa1e773=>{'string'!=typeof _0xa1e773&&(_0xa1e773['children']=this['_removeRevisionMarkers'](_0xa1e773['children']),_0xa1e773['attributes']=_0xa1e773['attributes']['filter'](_0x5b7d08=>!_0x5b7d08[0x0]['startsWith']('data-revision-')));}),_0x535a3d;}async['compare'](_0x1abd50,_0x3ad663,_0x21929a=!0x1){if(!this['isEnabled'])return;const _0x540550=this['diff'],_0x355c37=this['repository'],_0x41780a='string'==typeof _0x1abd50?_0x355c37['getRevision'](_0x1abd50):_0x1abd50,_0x8c0e0c='string'==typeof _0x3ad663?_0x355c37['getRevision'](_0x3ad663):_0x3ad663,_0x91007e=_0x41780a['id'],_0x3d79a4=_0x8c0e0c?_0x8c0e0c['id']:null;if(!_0x21929a&&this['diff']&&this['diff']['newRevisionId']===_0x91007e&&this['diff']['oldRevisionId']===_0x3d79a4)return Promise['resolve']();this['isReady']=!0x1,this['activeView']=null,this['activeChange']=null,this['diff']=new f(_0x91007e,_0x3d79a4);const _0x588403=this['_getRevisionsRange'](_0x41780a,_0x8c0e0c,!0x0)['map'](_0x44c060=>this['loadRevisionData'](_0x44c060));return _0x588403['push'](new Promise(_0x67aba6=>{setTimeout(_0x67aba6,0x14);})),Promise['all'](_0x588403)['then'](()=>{if(!this['isEnabled'])return;this['_cleanUp']();const _0x503467=this['_getDiff'](_0x91007e,_0x3d79a4);for(const _0x5a5f6a of _0x503467['changes'])this['_changeIdToChange']['set'](_0x5a5f6a['id'],_0x5a5f6a);this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0xc4b6bd=>{for(const _0x5ec054 of this['editor']['model']['document']['getRootNames']())_0xc4b6bd['detachRoot'](_0x5ec054);for(const _0x50f578 of Object['keys'](_0x503467['model'])){const _0x551e84=_0xc4b6bd['addRoot'](_0x50f578);for(const _0xb4b2ec of Object['keys'](_0x503467['attributes'][_0x50f578]))_0xc4b6bd['setAttribute'](_0xb4b2ec,_0x503467['attributes'][_0x50f578][_0xb4b2ec],_0x551e84);_0xc4b6bd['insert'](_0x503467['model'][_0x50f578],_0x551e84,0x0);}}),this['diff']['_setChanges'](this['_sortAndFilterDiffChanges'](_0x503467['changes'])),this['isReady']=!0x0;})['catch'](_0x13ed44=>{console['error'](_0x13ed44),this['_cleanUp'](),_0x540550&&(this['diff']=_0x540550),this['isReady']=!0x0;});}['addRevisionData'](_0x19b751,_0x472a51){const _0xf12e2b=this['repository']['createRevision'](_0x19b751);return _0xf12e2b['on']('_update',(_0xa069ed,_0xd75ef0,_0x4ec6b2)=>_0x472a51(_0xd75ef0,_0x4ec6b2,_0xf12e2b)),this['repository']['addRevision'](_0xf12e2b),_0xf12e2b;}['loadRevisionData'](_0x5d4773){if(!_0x5d4773||_0x5d4773['diffData'])return Promise['resolve']();{const _0x184e05=this['editor']['config']['get']('collaboration.channelId');return this['adapter']['getRevision']({'channelId':_0x184e05,'revisionId':_0x5d4773['id']})['then'](_0x1b78fb=>{_0x5d4773['_update']({'diffData':_0x1b78fb['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},_0xb11c96=>{for(const _0x5d09b4 of this['editor']['model']['document']['getRootNames']())_0xb11c96['detachRoot'](_0x5d09b4);});}['_sortAndFilterDiffChanges'](_0x459746){const _0xd8cdf8=[],_0xdd6e4=new Map();for(const _0xa726e6 of this['editor']['model']['document']['getRootNames']()){const _0x9fc5e9=this['editor']['editing']['view']['getDomRoot'](_0xa726e6);if(!_0x9fc5e9)continue;const _0x47a7eb=_0x9fc5e9['getClientRects']()['item'](0x0);_0x47a7eb&&(_0xd8cdf8['push'](_0xa726e6),_0xdd6e4['set'](_0xa726e6,_0x47a7eb));}return _0xd8cdf8['sort']((_0x373b9c,_0xe543e6)=>{const _0x19ddc4=_0xdd6e4['get'](_0x373b9c),_0x421eac=_0xdd6e4['get'](_0xe543e6);return _0x19ddc4['y']-_0x421eac['y']||_0x19ddc4['x']-_0x421eac['x'];}),(_0x459746=_0x459746['filter'](_0xb1d01d=>_0xd8cdf8['includes'](_0xb1d01d['rootName'])))['sort']((_0x42777a,_0x3a73c6)=>_0xd8cdf8['indexOf'](_0x42777a['rootName'])-_0xd8cdf8['indexOf'](_0x3a73c6['rootName'])),_0x459746;}['_makeTape'](_0x232ef8){const _0xd930da=Array['from'](_0x232ef8['markers'])['filter'](([_0x34e7db,_0x2a1230])=>_0x34e7db['startsWith']('revision:')&&!_0x2a1230['isCollapsed']),_0x4aa07b=Array['from'](this['editor']['model']['createRangeIn'](_0x232ef8)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0xd930da['length'])for(const _0x18c1eb of _0x4aa07b){const [_0x52b923,_0x4fda7f]=_0xd930da[0x0],[,_0x38903f,_0x24c84b]=_0x52b923['split'](':');if(_0x4fda7f['end']['isEqual'](_0x18c1eb['nextPosition'])&&_0xd930da['shift'](),(_0x18c1eb['previousPosition']['isEqual'](_0x4fda7f['start'])||_0x18c1eb['previousPosition']['isAfter'](_0x4fda7f['start']))&&('insertion'==_0x38903f?_0x18c1eb['isAdded']={'userId':_0x24c84b}:'deletion'==_0x38903f&&(_0x18c1eb['isRemoved']={'userId':_0x24c84b})),0x0==_0xd930da['length'])break;}return _0x4aa07b;}['_refreshStartEndIndex'](_0x39917f){const _0x442519=new Map();for(let _0x2211c6=0x0;_0x2211c6<_0x39917f['length'];_0x2211c6++)'text'===_0x39917f[_0x2211c6]['type']?(_0x39917f[_0x2211c6]['item']['startIndex']=_0x2211c6,_0x39917f[_0x2211c6]['item']['endIndex']=_0x2211c6):('elementStart'===_0x39917f[_0x2211c6]['type']?_0x39917f[_0x2211c6]['item']['startIndex']=_0x2211c6:'elementEnd'===_0x39917f[_0x2211c6]['type']&&(_0x39917f[_0x2211c6]['item']['endIndex']=_0x2211c6),_0x442519['set'](_0x39917f[_0x2211c6]['id'],_0x2211c6));for(const _0x4e0d11 of _0x442519['values']())'elementStart'===_0x39917f[_0x4e0d11]['type']?_0x39917f[_0x4e0d11]['item']['endIndex']=_0x442519['get'](_0x39917f[_0x4e0d11]['pairId']):'elementEnd'===_0x39917f[_0x4e0d11]['type']&&(_0x39917f[_0x4e0d11]['item']['startIndex']=_0x442519['get'](_0x39917f[_0x4e0d11]['pairId']));}['_processTape'](_0x3228d1){for(let _0x50d6d5=0x0;_0x50d6d5<_0x3228d1['length'];_0x50d6d5++){if('elementStart'===_0x3228d1[_0x50d6d5]['type'])_0x3228d1[_0x50d6d5]['item']['startIndex']=_0x50d6d5;else{if('elementEnd'===_0x3228d1[_0x50d6d5]['type']){_0x3228d1[_0x50d6d5]['item']['endIndex']=_0x50d6d5;const _0x1af968=_0x3228d1[_0x50d6d5]['item']['startIndex'];_0x3228d1[_0x1af968]['pairId']=_0x3228d1[_0x50d6d5]['id'],_0x3228d1[_0x50d6d5]['pairId']=_0x3228d1[_0x1af968]['id'];}else _0x3228d1[_0x50d6d5]['item']['startIndex']=_0x50d6d5,_0x3228d1[_0x50d6d5]['item']['endIndex']=_0x50d6d5,_0x3228d1[_0x50d6d5]['pairId']=null;}_0x3228d1[_0x50d6d5]['markersStart']||(_0x3228d1[_0x50d6d5]['markersStart']=[],_0x3228d1[_0x50d6d5]['markersEnd']=[]);}}['_markInsertions'](_0x1ec339,_0x7fc0c3){const _0x69c236=_0x1ec339['filter'](_0xa9b27e=>!_0xa9b27e['isAdded']);for(let _0x291ab6=0x0;_0x291ab6<_0x7fc0c3['length'];_0x291ab6++)_0x7fc0c3[_0x291ab6]['isAdded']&&(_0x69c236[_0x291ab6]['isAdded']=_0x7fc0c3[_0x291ab6]['isAdded']);}['_makeModelFromViewString'](_0x1d3d6d){const _0x442eb2=JSON['parse'](_0x1d3d6d),_0x18c9ce=this['editor']['editing']['view']['document'],_0x4b12fa=new _0xeaf0ed(_0x18c9ce,_0x442eb2['map'](_0x2b462c=>this['_getViewObj'](_0x2b462c)));return this['editor']['data']['toModel'](_0x4b12fa);}['_getViewObj'](_0x2de7e2){const _0x34fefe=this['editor']['editing']['view']['document'];if('string'==typeof _0x2de7e2)return new _0x4f8a2d(_0x34fefe,_0x2de7e2);{const _0x5d177d=_0x2de7e2['children']['map'](_0x527066=>this['_getViewObj'](_0x527066));return new(Y[_0x2de7e2['type']]||_0x10c154)(_0x34fefe,_0x2de7e2['name'],_0x2de7e2['attributes'],_0x5d177d);}}['_getDiff'](_0x151175,_0x1d1ee4=null){const _0x274e0a=this['repository']['getRevision'](_0x151175),_0x46bee7=_0x1d1ee4?this['repository']['getRevision'](_0x1d1ee4):null,_0x2205d4=this['_getRevisionsRange'](_0x274e0a,_0x46bee7),_0x3dc80f=_0x2205d4[_0x2205d4['length']-0x1],_0x4a07f6=new Map(),_0x19e7dc={'model':{},'attributes':{},'changes':[]},_0x1af3c4=new Set(),_0x46cd65=new Map();for(let _0x17dc8c=_0x2205d4['length']-0x1;_0x17dc8c>=0x0;_0x17dc8c--){const _0x465c43=_0x2205d4[_0x17dc8c];for(const _0x93b07c of Object['keys'](_0x465c43['diffData']))if(_0x465c43['diffData'][_0x93b07c]['attachChange']){const _0x5f34d3=_0x465c43['diffData'][_0x93b07c]['attachChange'];_0x5f34d3['isAttached']?(_0x1af3c4['add'](_0x93b07c),_0x46cd65['has'](_0x93b07c)&&_0x46cd65['get'](_0x93b07c)['userId']==_0x5f34d3['userId']?_0x46cd65['delete'](_0x93b07c):_0x46cd65['set'](_0x93b07c,_0x5f34d3)):_0x46cd65['has'](_0x93b07c)?(_0x1af3c4['delete'](_0x93b07c),_0x46cd65['delete'](_0x93b07c)):(_0x1af3c4['add'](_0x93b07c),_0x46cd65['set'](_0x93b07c,_0x5f34d3));}else _0x1af3c4['add'](_0x93b07c);}for(const _0x59b13d of _0x1af3c4){const _0x29113a=_0x46cd65['has'](_0x59b13d)&&!_0x46cd65['get'](_0x59b13d)['isAttached'];let _0x4732e7=_0x29113a?_0x2205d4['length']-0x1:0x0;const _0x2b2f2b=_0x29113a?-0x1:0x1;for(;_0x2205d4[_0x4732e7];){const _0x186440=_0x2205d4[_0x4732e7];if(_0x186440['diffData'][_0x59b13d]){const _0x596aa4=_0x29113a?_0x186440['diffData'][_0x59b13d]['attributesBefore']:_0x186440['diffData'][_0x59b13d]['attributesAfter'];_0x19e7dc['attributes'][_0x59b13d]=_0x596aa4?_0x10c153(_0x596aa4):{};break;}_0x4732e7+=_0x2b2f2b;}}for(const _0x4317fb of _0x2205d4){_0x4317fb['model']={};for(const _0x1bdd61 of _0x4317fb['authors'])_0x4a07f6['set'](_0x1bdd61['id'],_0x1bdd61);for(const _0x287af4 of _0x1af3c4){const _0x33b8eb=_0x4317fb['diffData'][_0x287af4]?_0x4317fb['diffData'][_0x287af4]['insertions']:'[]',_0x10e7ee=_0x4317fb['diffData'][_0x287af4]?_0x4317fb['diffData'][_0x287af4]['deletions']:'[]';_0x4317fb['model'][_0x287af4]={'insertions':this['_makeModelFromViewString'](_0x33b8eb),'deletions':this['_makeModelFromViewString'](_0x10e7ee)};}}for(const _0x8477a8 of _0x1af3c4){let _0x4bad8b=null,_0x3b0e86=0x0;const _0x584843=new Map(Array['from'](_0x274e0a['model'][_0x8477a8]['insertions']['markers'])['filter'](([_0x37e4b9])=>!_0x37e4b9['startsWith']('revision:')));let _0x1702ee=0x0;for(const _0x624185 of _0x2205d4){const _0x49da4c=this['_makeTape'](_0x624185['model'][_0x8477a8]['insertions']);_0x624185==_0x274e0a?(_0x4bad8b=_0x49da4c,_0x3b0e86=_0x4bad8b['length'],_0x4bad8b['forEach'](_0x3c5b10=>{_0x3c5b10['id']=_0x1702ee++;}),this['_processTape'](_0x4bad8b)):this['_markInsertions'](_0x4bad8b,_0x49da4c);const _0x347bd9=_0x4bad8b['filter'](_0x17d966=>!_0x17d966['isAdded'])['map'](_0x2986fe=>_0x2986fe['id']);let _0x2ed165=0x0;const _0x2ca4d9=this['_makeTape'](_0x624185['model'][_0x8477a8]['deletions']);_0x2ca4d9['forEach'](_0x5cc15a=>{_0x5cc15a['isRemoved']?_0x5cc15a['id']=_0x3b0e86++:_0x5cc15a['id']=_0x347bd9[_0x2ed165++];}),this['_processTape'](_0x2ca4d9),this['_setDistance'](_0x4bad8b,'isAdded'),this['_setDistance'](_0x2ca4d9,'isRemoved'),_0x624185==_0x274e0a&&this['_markMarkers'](_0x4bad8b,_0x584843),_0x4bad8b=this['_joinTapes'](_0x4bad8b,_0x2ca4d9),this['_refreshStartEndIndex'](_0x4bad8b),this['_setDistance'](_0x4bad8b,'isRemoved');}_0x4bad8b=_0x4bad8b['filter'](_0x2a0261=>!(_0x2a0261['isAdded']&&_0x2a0261['isRemoved']));const _0x1e577e=new Map(_0x3dc80f['model'][_0x8477a8]['deletions']['markers']),_0x4ab3fd=new Set(_0x584843['keys']());for(const _0x54a0ac of _0x1e577e['keys']())_0x4ab3fd['delete'](_0x54a0ac);this['_markSuggestions'](_0x4bad8b,_0x4ab3fd),this['_fixObsoleteTags'](_0x4bad8b),_0x4bad8b=this['_removeMissingPairs'](_0x4bad8b),_0x4bad8b=this['_markMismatchedRemovedTags'](_0x4bad8b),_0x4bad8b=this['_removeUnsupportedChanges'](_0x4bad8b);const {root:_0x2513f,changes:_0x34fc09}=this['_makeModelFromTape'](_0x4bad8b,_0x4a07f6,_0x8477a8);_0x19e7dc['model'][_0x8477a8]=_0x2513f;const _0x215a63=_0x46cd65['get'](_0x8477a8);if(_0x215a63){const _0x3001da=_0x4a07f6['get'](_0x215a63['userId']),_0x27a1f0=new r({'author':_0x3001da,'type':_0x215a63['isAttached']?'add':'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x8477a8});_0x34fc09['unshift'](_0x27a1f0),_0x19e7dc['attributes'][_0x8477a8]['revisionHistoryAttachChange']=_0x27a1f0['id'];}_0x19e7dc['changes']=_0x19e7dc['changes']['concat'](_0x34fc09);}return _0x19e7dc;}['_markMarkers'](_0x2c4b62,_0x31166b){for(let _0x5c631e=0x0;_0x5c631e<_0x2c4b62['length'];_0x5c631e++)for(const [_0x227069,_0x248656]of _0x31166b)_0x248656['start']['isEqual'](_0x2c4b62[_0x5c631e]['previousPosition'])&&_0x2c4b62[_0x5c631e]['markersStart']['push'](_0x227069),_0x248656['end']['isEqual'](_0x2c4b62[_0x5c631e]['nextPosition'])&&_0x2c4b62[_0x5c631e]['markersEnd']['push'](_0x227069);}['_joinTapes'](_0x4e1f3b,_0x4d97fc){let _0x2504ac=[],_0x3ae948=0x0,_0x4ebd26=0x0;for(;_0x3ae948<_0x4e1f3b['length']||_0x4ebd26<_0x4d97fc['length'];){const _0x299ccf=_0x4e1f3b[_0x3ae948]||{},_0x3bc125=_0x4d97fc[_0x4ebd26]||{};if(_0x299ccf['id']==_0x3bc125['id'])_0x3ae948++,_0x4ebd26++,_0x2504ac['push'](_0x299ccf);else{if(_0x3bc125['isRemoved']&&_0x299ccf['isAdded']){const {commonTape:_0x4bffdc,iEnd:_0x34d6cf,jEnd:_0x12564d}=this['_threeWayMerge'](_0x4e1f3b,_0x3ae948,_0x4d97fc,_0x4ebd26);_0x2504ac=_0x2504ac['concat'](_0x4bffdc),_0x3ae948=_0x34d6cf,_0x4ebd26=_0x12564d;}else _0x3bc125['isRemoved']?(_0x4ebd26++,_0x2504ac['push'](_0x3bc125)):(_0x3ae948++,_0x2504ac['push'](_0x299ccf));}}return _0x2504ac;}['_markSuggestions'](_0x1a664f,_0x2757c1){const _0x13edc5=[];for(let _0x2dc777=0x0;_0x2dc777<_0x1a664f['length'];_0x2dc777++){for(let _0x4090b0=0x0;_0x4090b0<_0x1a664f[_0x2dc777]['markersStart']['length'];_0x4090b0++){const _0x1200ec=_0x1a664f[_0x2dc777]['markersStart'][_0x4090b0];if(!_0x2757c1['has'](_0x1200ec))continue;const {group:_0x573d4a,type:_0x4b1ebe,authorId:_0x38cf48}=_0x1559e6(_0x1200ec);'revision-suggestion'!=_0x573d4a||'insertion'!=_0x4b1ebe&&'deletion'!=_0x4b1ebe||(_0x13edc5['unshift']({'type':_0x4b1ebe,'name':_0x1200ec,'userId':_0x38cf48}),_0x1a664f[_0x2dc777]['markersStart']['splice'](_0x4090b0,0x1),_0x4090b0--);}_0xa0cc27(_0x1a664f[_0x2dc777]);for(let _0x4d7b24=0x0;_0x4d7b24<_0x1a664f[_0x2dc777]['markersEnd']['length'];_0x4d7b24++){const _0x51aa41=_0x1a664f[_0x2dc777]['markersEnd'][_0x4d7b24];if(!_0x2757c1['has'](_0x51aa41))continue;const {group:_0x257b53,type:_0x116162}=_0x1559e6(_0x51aa41);if('revision-suggestion'!=_0x257b53||'insertion'!=_0x116162&&'deletion'!=_0x116162)continue;_0x1a664f[_0x2dc777]['markersEnd']['splice'](_0x4d7b24,0x1),_0x4d7b24--;const _0x3c0fc8=_0x13edc5['findIndex'](_0x3e04e7=>_0x3e04e7['name']==_0x51aa41);_0x3c0fc8>-0x1&&_0x13edc5['splice'](_0x3c0fc8,0x1);}}function _0x1559e6(_0x5cdbfd){const _0x2f2df9=_0x5cdbfd['split'](':');return{'group':_0x2f2df9[0x0],'type':_0x2f2df9[0x1],'subType':_0x2f2df9['length']>=0x5?_0x2f2df9[0x2]:null,'id':_0x2f2df9['length']<0x5?_0x2f2df9[0x2]:_0x2f2df9[0x3],'authorId':_0x2f2df9['length']<0x5?_0x2f2df9[0x3]:_0x2f2df9[0x4],'markerCount':0x6==_0x2f2df9['length']?_0x2f2df9[0x5]:null};}function _0xa0cc27(_0x456221){for(let _0x1f9604=0x0;_0x1f9604<_0x13edc5['length'];_0x1f9604++){if(_0x456221['isAdded']&&'insertion'==_0x13edc5[_0x1f9604]['type'])return _0x456221['isAddSuggestion']=_0x13edc5[_0x1f9604],void delete _0x456221['isAdded'];if(!_0x456221['isAdded']&&!_0x456221['isRemoved']&&'deletion'==_0x13edc5[_0x1f9604]['type'])return void(_0x456221['isRemoveSuggestion']=_0x13edc5[_0x1f9604]);}}}['_setDistance'](_0x36a6d9,_0x27db47){let _0x3188e7=0x0,_0x414219=!0x1;const _0x5bd53b=new Map();for(const _0x267017 of _0x36a6d9)_0x267017[_0x27db47]?_0x414219&&(_0x3188e7++,_0x414219=!0x1):(_0x3188e7++,_0x414219=!0x0),_0x5bd53b['set'](_0x267017['id'],_0x3188e7);for(let _0x3b6634=0x0;_0x3b6634<_0x36a6d9['length'];_0x3b6634++){if('isRemoved'==_0x27db47&&_0x36a6d9[_0x3b6634]['isAdded']||'isAdded'==_0x27db47&&_0x36a6d9[_0x3b6634]['isRemoved'])continue;if('text'==_0x36a6d9[_0x3b6634]['type']){_0x36a6d9[_0x3b6634]['distance']=0x0;continue;}const _0x280a9f=_0x5bd53b['get'](_0x36a6d9[_0x3b6634]['pairId']),_0xec729b=_0x5bd53b['get'](_0x36a6d9[_0x3b6634]['id']);_0x36a6d9[_0x3b6634]['distance']=_0x280a9f-_0xec729b;}}['_getRevisionsRange'](_0x50494e,_0x5800d6,_0x23fd25=!0x1){const _0x26a7c1=[];let _0xb8e14d=this['repository']['getIndex'](_0x50494e),_0x2140ab=this['repository']['getIndex'](_0x5800d6);for(-0x1==_0x2140ab&&(_0x2140ab=this['repository']['_revisions']['length'],_0x23fd25=!0x1);_0xb8e14d<_0x2140ab;)_0x26a7c1['push'](this['repository']['getRevision'](_0xb8e14d)),_0xb8e14d++;return _0x23fd25&&_0x26a7c1['push'](this['repository']['getRevision'](_0xb8e14d)),_0x26a7c1;}['_threeWayMerge'](_0x469dcb,_0x19745e,_0x53bb64,_0x582bd1){const _0x9a8130=this['editor']['model']['schema'];let _0x392ad=_0x19745e;for(;_0x469dcb[_0x392ad]&&_0x469dcb[_0x392ad]['isAdded'];)_0x392ad++;let _0x4a815e=_0x582bd1;for(;_0x53bb64[_0x4a815e]&&_0x53bb64[_0x4a815e]['isRemoved'];)_0x4a815e++;_0xa221d4(_0x469dcb,_0x19745e,_0x392ad),_0xa221d4(_0x53bb64,_0x582bd1,_0x4a815e);const _0xa88ff2=_0x53bb64['slice'](_0x582bd1,_0x4a815e)['concat'](_0x469dcb['slice'](_0x19745e,_0x392ad));return _0xa88ff2['sort']((_0x2b668c,_0x417bc9)=>_0x2b668c['side']!=_0x417bc9['side']?_0x2b668c['side']-_0x417bc9['side']:_0x2b668c['level']!=_0x417bc9['level']?_0x2b668c['level']-_0x417bc9['level']:_0x2b668c['distance']!=_0x417bc9['distance']?_0x417bc9['distance']-_0x2b668c['distance']:!!_0x2b668c['isAdded']!=!!_0x417bc9['isAdded']?-0x1==_0x2b668c['side']||0x0==_0x2b668c['side']?_0x2b668c['isAdded']?-0x1:0x1:_0x2b668c['isAdded']?0x1:-0x1:_0x2b668c['index']-_0x417bc9['index']),{'commonTape':_0xa88ff2,'iEnd':_0x392ad,'jEnd':_0x4a815e};function _0xa221d4(_0x5139de,_0x36877f,_0x4ade7f){let _0x4944d7=-0x1,_0x53e07f=Number['POSITIVE_INFINITY'],_0x5d564b=!0x0;for(let _0x5c91bd=_0x36877f;_0x5c91bd<_0x4ade7f;_0x5c91bd++)if(_0x9a8130['isInline'](_0x5139de[_0x5c91bd]['item'])||(_0x5d564b=!0x1),_0x5139de[_0x5c91bd]['item']['startIndex']<_0x36877f&&(_0x4944d7=_0x5c91bd),_0x5139de[_0x5c91bd]['item']['endIndex']>=_0x4ade7f){_0x53e07f=_0x5c91bd;break;}_0x5d564b&&(_0x4944d7=_0x4ade7f-0x1);for(let _0x474d6d=_0x36877f;_0x474d6d<_0x4ade7f;_0x474d6d++)_0x5139de[_0x474d6d]['side']=_0x474d6d<=_0x4944d7?-0x1:_0x474d6d<_0x53e07f?0x0:0x1,_0x5139de[_0x474d6d]['index']=_0x474d6d;let _0x3678f9=0x0;for(let _0x30c491=_0x36877f;_0x30c491<=_0x4944d7;_0x30c491++)0x0==_0x5139de[_0x30c491]['distance']?_0x5139de[_0x30c491]['level']=_0x3678f9:(_0x3678f9++,_0x5139de[_0x30c491]['level']=_0x3678f9,_0x3678f9++);for(let _0x375936=_0x36877f;_0x375936<_0x4ade7f;_0x375936++)0x0==_0x5139de[_0x375936]['side']&&(_0x5139de[_0x375936]['level']=_0x3678f9);_0x3678f9=0x0;for(let _0x4f0dc9=_0x4ade7f-0x1;_0x4f0dc9>=_0x53e07f;_0x4f0dc9--)0x0==_0x5139de[_0x4f0dc9]['distance']?_0x5139de[_0x4f0dc9]['level']=_0x3678f9:(_0x3678f9--,_0x5139de[_0x4f0dc9]['level']=_0x3678f9,_0x3678f9--);}}['_fixObsoleteTags'](_0x5b0eca){const _0x578816=new Map(),_0x229e54=this['editor']['model']['schema'];for(let _0x175961=0x1;_0x175961<_0x5b0eca['length'];_0x175961++){let _0x5dafe7,_0x49f393,_0x59b6fd;const _0x599dd1=_0x5b0eca[_0x175961],_0x3f9f81=_0x5b0eca[_0x175961-0x1];if('text'==_0x599dd1['type'])continue;if(_0x599dd1['type']!=_0x3f9f81['type'])continue;if(!_0x229e54['isBlock'](_0x3f9f81['item'])||_0x229e54['isLimit'](_0x3f9f81['item']))continue;if(!_0x229e54['isBlock'](_0x599dd1['item'])||_0x229e54['isLimit'](_0x599dd1['item']))continue;if((_0x5b0eca[_0x175961]['isAdded']||_0x5b0eca[_0x175961]['isAddSuggestion'])&&_0x5b0eca[_0x175961-0x1]['isRemoved'])_0x5dafe7=_0x5b0eca[_0x175961],_0x49f393=_0x5b0eca[_0x175961-0x1],_0x59b6fd=_0x175961-0x1;else{if(!_0x5b0eca[_0x175961]['isRemoved']||!_0x5b0eca[_0x175961-0x1]['isAdded']&&!_0x5b0eca[_0x175961-0x1]['isAddSuggestion'])continue;_0x5dafe7=_0x5b0eca[_0x175961-0x1],_0x49f393=_0x5b0eca[_0x175961],_0x59b6fd=_0x175961;}const _0x17fa7d=_0x5dafe7['level']==_0x49f393['level'],_0x198a4d=Math['abs'](_0x5dafe7['level'])<Math['abs'](_0x49f393['level'])&&0x0==_0x49f393['distance'];(_0x17fa7d||_0x198a4d)&&(_0x578816['set'](_0x49f393['id'],_0x5dafe7['id']),_0x5b0eca['splice'](_0x59b6fd,0x1),_0x175961--,_0x5dafe7['isAdded']=!0x1);}for(let _0x3fab94=0x0;_0x3fab94<_0x5b0eca['length'];_0x3fab94++)_0x578816['has'](_0x5b0eca[_0x3fab94]['pairId'])&&(_0x5b0eca[_0x3fab94]['pairId']=_0x578816['get'](_0x5b0eca[_0x3fab94]['pairId']));}['_removeMissingPairs'](_0x5911fd){const _0x55dca3=new Set(_0x5911fd['map'](_0x271272=>_0x271272['id']));for(let _0x4fe69d=0x0;_0x4fe69d<_0x5911fd['length'];_0x4fe69d++)_0x55dca3['has'](_0x5911fd[_0x4fe69d]['pairId'])||0x0==_0x5911fd[_0x4fe69d]['distance']||(_0x5911fd[_0x4fe69d]['isIncorrect']=!0x0);return _0x5911fd['filter'](_0x12521f=>!_0x12521f['isIncorrect']);}['_markMismatchedRemovedTags'](_0x431f2a){const _0x28cbb3=new Set();for(let _0x4012bf=0x0;_0x4012bf<_0x431f2a['length'];_0x4012bf++){if(_0x28cbb3['has'](_0x431f2a[_0x4012bf]['id'])&&_0x431f2a[_0x4012bf]['isRemoved']&&(_0x431f2a[_0x4012bf]['isIncorrect']=!0x0),_0x431f2a[_0x4012bf]['isIncorrect'])continue;if(0x0==_0x431f2a[_0x4012bf]['distance'])continue;if('elementStart'!=_0x431f2a[_0x4012bf]['type'])continue;if(null==_0x431f2a[_0x4012bf]['pairId'])continue;let _0x4836cd=_0x4012bf+0x1,_0x17213f=0x0;for(;_0x431f2a[_0x4836cd]['id']!=_0x431f2a[_0x4012bf]['pairId'];)'elementStart'==_0x431f2a[_0x4836cd]['type']?_0x17213f++:'elementEnd'==_0x431f2a[_0x4836cd]['type']&&_0x17213f--,_0x4836cd++;if(0x0!=_0x17213f){if(_0x431f2a[_0x4012bf]['isRemoved'])_0x431f2a[_0x4012bf]['isIncorrect']=!0x0;else{for(;_0x4836cd!=_0x4012bf;)_0x431f2a[_0x4836cd]['isRemoved']&&0x0!=_0x431f2a[_0x4836cd]['distance']&&(_0x431f2a[_0x4836cd]['isIncorrect']=!0x0,_0x28cbb3['add'](_0x431f2a[_0x4836cd]['pairId'])),_0x4836cd--;}}}return _0x431f2a['filter'](_0x790842=>!_0x790842['isIncorrect']);}['_removeUnsupportedChanges'](_0x26b1d8){const _0xa71c8d=this['editor']['model']['schema'];for(let _0x486a47=0x0;_0x486a47<_0x26b1d8['length'];_0x486a47++){if(!(_0x26b1d8[_0x486a47]['isAdded']||_0x26b1d8[_0x486a47]['isAddSuggestion']||_0x26b1d8[_0x486a47]['isRemoved']||_0x26b1d8[_0x486a47]['isRemoveSuggestion']))continue;if(0x0==_0x26b1d8[_0x486a47]['distance'])continue;const _0x4ada91=_0x26b1d8[_0x486a47]['item'];_0xa71c8d['isBlock'](_0x4ada91)||_0xa71c8d['isLimit'](_0x4ada91)||(_0x26b1d8[_0x486a47]['isAdded']&&delete _0x26b1d8[_0x486a47]['isAdded'],_0x26b1d8[_0x486a47]['isAddSuggestion']&&delete _0x26b1d8[_0x486a47]['isAddSuggestion'],_0x26b1d8[_0x486a47]['isRemoveSuggestion']&&delete _0x26b1d8[_0x486a47]['isRemoveSuggestion'],_0x26b1d8[_0x486a47]['isRemoved']&&(_0x26b1d8[_0x486a47]['isIncorrect']=!0x0));}return _0x26b1d8['filter'](_0xf0a3f3=>!_0xf0a3f3['isIncorrect']);}['_makeModelFromTape'](_0x1c5ebb,_0xed8873,_0x359ff3){const _0x21033a=new mt(),_0x341797=[],_0x415003=new Map(),_0x3eef44=this['editor']['model'],_0x6c2f1=_0x3eef44['schema'],_0x4e7433=[_0x21033a],_0x31a26a={},_0x5210ca={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x26e290=null;const _0x5cab14=[0x0];for(let _0x21322e=0x0;_0x21322e<_0x1c5ebb['length'];_0x21322e++)if('elementStart'===_0x1c5ebb[_0x21322e]['type']){_0x1c5ebb[_0x21322e]['previousPosition']=_0x3eef44['createPositionFromPath'](_0x21033a,_0x5cab14);const _0x4f8ce2=new ft(_0x1c5ebb[_0x21322e]['item']['name'],_0x1c5ebb[_0x21322e]['item']['getAttributes']());_0x4e7433[0x0]['_appendChild'](_0x4f8ce2),_0x5cab14['push'](0x0),_0x4e7433['unshift'](_0x4f8ce2),_0x1c5ebb[_0x21322e]['nextPosition']=_0x3eef44['createPositionFromPath'](_0x21033a,_0x5cab14);}else'elementEnd'===_0x1c5ebb[_0x21322e]['type']?(_0x4e7433['shift'](),_0x1c5ebb[_0x21322e]['previousPosition']=_0x3eef44['createPositionFromPath'](_0x21033a,_0x5cab14),_0x5cab14['pop'](),_0x5cab14[_0x5cab14['length']-0x1]++,_0x1c5ebb[_0x21322e]['nextPosition']=_0x3eef44['createPositionFromPath'](_0x21033a,_0x5cab14)):(_0x1c5ebb[_0x21322e]['previousPosition']=_0x3eef44['createPositionFromPath'](_0x21033a,_0x5cab14),_0x26e290?_0x26e290['_data']+=_0x1c5ebb[_0x21322e]['item']['data']:_0x26e290=new wt(_0x1c5ebb[_0x21322e]['item']['data'],_0x1c5ebb[_0x21322e]['item']['getAttributes']()),_0x1c5ebb[_0x21322e+0x1]&&'text'===_0x1c5ebb[_0x21322e+0x1]['type']&&_0x2720d3(_0x26e290,_0x1c5ebb[_0x21322e+0x1]['item'])||(_0x4e7433[0x0]['_appendChild'](_0x26e290),_0x26e290=null),_0x5cab14[_0x5cab14['length']-0x1]+=_0x1c5ebb[_0x21322e]['item']['offsetSize'],_0x1c5ebb[_0x21322e]['nextPosition']=_0x3eef44['createPositionFromPath'](_0x21033a,_0x5cab14));for(let _0x29de0b=0x0;_0x29de0b<_0x1c5ebb['length'];_0x29de0b++){const _0x4747e2=_0x1c5ebb[_0x29de0b]['previousPosition'],_0x3c9abd=_0x1c5ebb[_0x29de0b]['nextPosition'];for(const _0x582842 of _0x1c5ebb[_0x29de0b]['markersStart'])_0x415003['set'](_0x582842,{'start':_0x4747e2,'end':null});_0xebc321('isRemoveSuggestion',_0x29de0b,_0x4747e2,_0x3c9abd),_0xebc321('isAddSuggestion',_0x29de0b,_0x4747e2,_0x3c9abd),_0xebc321('isRemoved',_0x29de0b,_0x4747e2,_0x3c9abd),_0xebc321('isAdded',_0x29de0b,_0x4747e2,_0x3c9abd);for(const _0x1bd43c of _0x1c5ebb[_0x29de0b]['markersEnd']){_0x415003['get'](_0x1bd43c)['end']=_0x3c9abd;}}for(const [_0xffcd3e,_0x4db0fb]of _0x415003){const _0x255a0e=this['editor']['model']['createRange'](_0x4db0fb['start'],_0x4db0fb['end']);_0x21033a['markers']['set'](_0xffcd3e,_0x255a0e);}return _0x341797['sort']((_0x596787,_0x3d2ed1)=>{const _0x2d263b=_0x21033a['markers']['get']('revision:'+_0x596787['id']),_0x5d16e1=_0x21033a['markers']['get']('revision:'+_0x3d2ed1['id']);return _0x2d263b['start']['isBefore'](_0x5d16e1['start'])?-0x1:_0x2d263b['start']['isAfter'](_0x5d16e1['start'])?0x1:_0x2d263b['end']['isBefore'](_0x5d16e1['end'])?-0x1:_0x2d263b['end']['isAfter'](_0x5d16e1['end'])?0x1:'add'===_0x596787['type']?-0x1:0x1;}),{'root':_0x21033a,'changes':_0x341797};function _0xebc321(_0x303072,_0x1c1f78,_0x5c4715,_0x498ae7){const _0x1d0154=!!_0x1c5ebb[_0x1c1f78][_0x303072],_0x536b7f=_0x1d0154?_0x1c5ebb[_0x1c1f78][_0x303072]['userId']:null,_0x1c72d8=_0x1c1f78===_0x1c5ebb['length']-0x1,_0x5ed102=_0x5210ca[_0x303072][0x0],_0x2fb7e6=_0x6c2f1['isObject'](_0x1c5ebb[_0x1c1f78]['item']);!_0x31a26a[_0x303072]&&_0x1d0154?_0x31a26a[_0x303072]={'start':_0x5c4715,'tapeItem':_0x1c5ebb[_0x1c1f78],'userId':_0x536b7f,'type':_0x303072}:_0x31a26a[_0x303072]&&!_0x1d0154?(_0x31a26a[_0x303072]['end']=_0x5c4715,_0x3f44e8(_0x31a26a[_0x303072]),_0x31a26a[_0x303072]=null):_0x31a26a[_0x303072]&&_0x1d0154&&_0x31a26a[_0x303072]['userId']!==_0x536b7f&&(_0x31a26a[_0x303072]['end']=_0x5c4715,_0x5ed102&&_0x5ed102['userId']===_0x31a26a[_0x303072]['userId']||_0x3f44e8(_0x31a26a[_0x303072]),_0x31a26a[_0x303072]={'start':_0x5c4715,'tapeItem':_0x1c5ebb[_0x1c1f78],'userId':_0x536b7f,'type':_0x303072}),_0x31a26a[_0x303072]&&_0x2fb7e6&&('elementStart'!==_0x1c5ebb[_0x1c1f78]['type']||_0x5ed102&&_0x5ed102['userId']===_0x536b7f||_0x5210ca[_0x303072]['unshift']({'userId':_0x536b7f,'object':_0x1c5ebb[_0x1c1f78]['item'],'change':_0x31a26a[_0x303072]}),'elementEnd'===_0x1c5ebb[_0x1c1f78]['type']&&_0x5ed102&&_0x5ed102['object']===_0x1c5ebb[_0x1c1f78]['item']&&(_0x5210ca[_0x303072]['shift'](),_0x31a26a[_0x303072]=_0x5ed102['change'])),_0x31a26a[_0x303072]&&_0x1c72d8&&(_0x31a26a[_0x303072]['end']=_0x498ae7,_0x3f44e8(_0x31a26a[_0x303072]),_0x31a26a[_0x303072]=null);}function _0x3f44e8({start:_0x2aae90,end:_0x419dd7,tapeItem:_0xd2bcb3,userId:_0x55a8c4,type:_0x261d1e}){const _0x37a076=_0xd2bcb3['item'],_0x4e17f3=_0x3eef44['schema']['isBlock'](_0x37a076)&&!_0x3eef44['schema']['isLimit'](_0x37a076),_0x1a0761=_0x2aae90['nodeAfter']==_0x419dd7['parent']&&_0x419dd7['isAtStart'];if(_0x4e17f3&&_0x1a0761)return;const _0x5c9197=_0x3eef44['createRange'](_0x2aae90,_0x419dd7),_0xd85f8f=_0xed8873['get'](_0x55a8c4),_0x573b5d=new r({'author':_0xd85f8f,'type':'isAdded'==_0x261d1e||'isAddSuggestion'==_0x261d1e?'add':'remove','data':{'isSuggestion':'isAddSuggestion'==_0x261d1e||'isRemoveSuggestion'==_0x261d1e},'createdAt':new Date(),'rootName':_0x359ff3});_0x341797['push'](_0x573b5d),_0x21033a['markers']['set']('revision:'+_0x573b5d['id'],_0x5c9197);}function _0x2720d3(_0x2b92a0,_0x1d5602){const _0x57a5c0=_0x2b92a0['getAttributes'](),_0x5bc22d=_0x1d5602['getAttributes']();for(const _0x5e4707 of _0x57a5c0){if(_0x5e4707[0x1]!==_0x1d5602['getAttribute'](_0x5e4707[0x0]))return!0x1;_0x5bc22d['next']();}return _0x5bc22d['next']()['done'];}}['_setConversion'](){this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision','view':_0x14d13e=>{const _0x4b05c4=_0x14d13e['markerName']['split'](':')[0x1],_0x350fa1=this['_getChangeFromId'](_0x4b05c4);if(!_0x350fa1)return null;const _0x512dac='add'==_0x350fa1['type']?'insertion':'deletion',_0x270616=['ck-suggestion-marker','ck-suggestion-marker-'+_0x512dac];return _0x350fa1['data']['isSuggestion']&&_0x270616['push']('ck-suggestion-marker-'+_0x512dac+'-new'),this['activeChange']==_0x350fa1&&_0x270616['push']('ck-suggestion-marker--active'),{'classes':_0x270616,'attributes':{'data-change-id':_0x4b05c4}};}}),this['editor']['conversion']['for']('upcast')['add'](_0x338acb=>{_0x338acb['on']('element:pre',(_0x4492c6,_0x423a72,_0x3f332b)=>{const _0x1a234c=_0x423a72['viewItem']['getChild'](0x0);if(!_0x1a234c||!_0x1a234c['is']('element','code'))return;if(!_0x3f332b['consumable']['consume'](_0x1a234c,{'attributes':['vid_start','vid_end']}))return;const _0x1723e8=_0x423a72['modelRange']['start']['nodeAfter'];_0x3f332b['writer']['setAttribute']('vid_start',_0x1a234c['getAttribute']('vid_start'),_0x1723e8),_0x3f332b['writer']['setAttribute']('vid_end',_0x1a234c['getAttribute']('vid_end'),_0x1723e8);},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['add'](_0x180d68=>{_0x180d68['on']('element',(_0x1abeb7,_0xe16b6,_0x595e63)=>{if(!_0x595e63['consumable']['consume'](_0xe16b6['viewItem'],{'attributes':['vid_start','vid_end']}))return;if(_0xe16b6['modelRange']['isCollapsed'])return;const _0x25e4e9=_0xe16b6['modelRange']['start']['nodeAfter'];_0x25e4e9['hasAttribute']('vid_start')||_0x25e4e9['hasAttribute']('vid')||(_0x595e63['writer']['setAttribute']('vid_start',_0xe16b6['viewItem']['getAttribute']('vid_start'),_0x25e4e9),_0x595e63['writer']['setAttribute']('vid_end',_0xe16b6['viewItem']['getAttribute']('vid_end'),_0x25e4e9));},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['elementToAttribute']({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0xb78ea=>_0xb78ea['getAttribute']('vid')}}),this['editor']['model']['schema']['on']('checkAttribute',(_0x475a31,[,_0x4e68c4])=>{['vid_start','vid_end','vid']['includes'](_0x4e68c4)&&(_0x475a31['return']=!0x0,_0x475a31['stop']());},{'priority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x1957ba=>{_0x1957ba['on']('attribute:vid',(_0x3a48bc,_0x317a57,_0x1cb51b)=>{if('\x20'!=_0x317a57['item']['data']||_0x317a57['item']['parent']['maxOffset']>0x1)return;if(!_0x1cb51b['consumable']['consume'](_0x317a57['item'],_0x3a48bc['name']))return;const _0xb6d9bf=_0x1cb51b['writer'],_0x349938=_0x1cb51b['mapper']['toViewRange'](_0x317a57['range']);_0xb6d9bf['wrap'](_0x349938,_0xb6d9bf['createAttributeElement']('span'));});}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',function(_0x16f39c){const _0x4426e2=_0x16f39c['plugins']['get']('RevisionViewer');return(_0x1c8b3c,_0x1f5bf2,_0xfa6aa3)=>{const _0x1b180f=_0x1f5bf2['markerName']['split'](':')[0x1],_0x42f995=_0x4426e2['_getChangeFromId'](_0x1b180f);if(!_0x42f995)return null;const _0x4d1c92='add'==_0x42f995['type']?'split':'merge';if(!_0xfa6aa3['consumable']['test'](_0x1f5bf2['markerRange'],_0x1c8b3c['name']))return;const _0x36710e=_0x1f5bf2['markerRange']['getWalker'](),_0x3b45b1=_0x1f5bf2['markerRange']['start'],_0x4e96a7=_0x16f39c['model']['schema'];let _0x5b5659=null,_0x1c02f5=null,_0x348b4f=!0x1,_0x15523c=!0x1;for(const _0x1a1220 of _0x36710e){const _0x5b9448=_0x1a1220['item'];_0x348b4f=_0x348b4f||_0x4e96a7['isContent'](_0x5b9448);const _0xea3b50=_0xfa6aa3['mapper']['toViewElement'](_0x5b9448);if(_0xea3b50&&_0xea3b50['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x1a1220['type']&&(_0x4e96a7['isBlock'](_0x5b9448)&&!_0x4e96a7['isLimit'](_0x5b9448)&&(_0x5b9448['nextSibling']||_0x3b45b1['isAtEnd']?_0x5b5659&&_0x5b5659['parent']==_0x5b9448||(_0x5b5659=_0x5b9448,_0x128437(_0x1a1220['previousPosition']),_0x15523c=!0x0):_0x1c02f5=_0x1c02f5||_0x1a1220['previousPosition']));}function _0x128437(_0x23af68){const _0x2f99e8=_0xfa6aa3['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x4d1c92}),_0x3d0c71=_0xfa6aa3['mapper']['toViewPosition'](_0x23af68);_0x42f995['data']['isSuggestion']&&_0xfa6aa3['writer']['addClass']('ck-suggestion-marker-'+_0x4d1c92+'-new',_0x2f99e8),_0x4426e2['activeChange']==_0x42f995&&_0xfa6aa3['writer']['addClass']('ck-suggestion-marker--active',_0x2f99e8),_0xfa6aa3['writer']['insert'](_0x3d0c71,_0x2f99e8),_0xfa6aa3['mapper']['bindElementToMarker'](_0x2f99e8,_0x1f5bf2['markerName']);}_0x348b4f||_0x15523c||!_0x1c02f5||_0x128437(_0x1c02f5);};}(this['editor']),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision',(_0x5554c6,_0x3ef4ac,_0x92efd7)=>{const _0x16ad30=_0x92efd7['mapper']['markerNameToElements'](_0x3ef4ac['markerName']);if(_0x16ad30){for(const _0x3f825d of _0x16ad30)(_0x3f825d['hasClass']('ck-suggestion-marker-split')||_0x3f825d['hasClass']('ck-suggestion-marker-merge'))&&(_0x92efd7['mapper']['unbindElementFromMarkerName'](_0x3f825d,_0x3ef4ac['markerName']),_0x92efd7['writer']['remove'](_0x3f825d));}},{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',(_0x278e94,_0x545a4f,_0x25cc37)=>{const _0x5bcebd=_0x545a4f['markerName']['split'](':')[0x1],_0x54b2d3=this['_getChangeFromId'](_0x5bcebd);if(!_0x54b2d3)return null;const _0x918baf='add'==_0x54b2d3['type']?'split':'merge';if(_0x25cc37['consumable']['test'](_0x545a4f['markerRange'],_0x278e94['name']))for(const _0x1de8bd of _0x545a4f['markerRange']['getItems']()){if(!_0x1de8bd['is']('element','softBreak'))continue;const _0x3c65f0=_0x25cc37['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x918baf}),_0x269b82=_0x25cc37['mapper']['toViewPosition'](this['editor']['model']['createPositionBefore'](_0x1de8bd));_0x54b2d3['data']['isSuggestion']&&_0x25cc37['writer']['addClass']('ck-suggestion-marker-'+_0x918baf+'-new',_0x3c65f0),this['activeChange']==_0x54b2d3&&_0x25cc37['writer']['addClass']('ck-suggestion-marker--active',_0x3c65f0),_0x25cc37['writer']['insert'](_0x269b82,_0x3c65f0),_0x25cc37['mapper']['bindElementToMarker'](_0x3c65f0,_0x545a4f['markerName']);}},{'priority':'high'}),this['editor']['model']['document']['on']('change',()=>{this['editor']['editing']['view']['change'](_0x98c8a1=>{for(const _0x4d44c6 of this['editor']['model']['document']['getRootNames']()){const _0x569af1=this['editor']['model']['document']['getRoot'](_0x4d44c6),_0x3e32bf=this['editor']['editing']['view']['document']['getRoot'](_0x4d44c6);if(_0x3e32bf){const _0x48fa33=_0x569af1['getAttribute']('revisionHistoryAttachChange');if(_0x98c8a1['removeAttribute']('data-change-id',_0x3e32bf),_0x98c8a1['removeClass']('ck-revision-history-root-add',_0x3e32bf),_0x98c8a1['removeClass']('ck-revision-history-root-remove',_0x3e32bf),_0x98c8a1['removeClass']('ck-revision-history-root--active',_0x3e32bf),_0x48fa33){const _0x1f8bed=this['_getChangeFromId'](_0x48fa33);if(!_0x1f8bed)return null;_0x98c8a1['setAttribute']('data-change-id',_0x48fa33,_0x3e32bf),_0x98c8a1['addClass']('ck-revision-history-root-'+_0x1f8bed['type'],_0x3e32bf),this['activeChange']==_0x1f8bed&&_0x98c8a1['addClass']('ck-revision-history-root--active',_0x3e32bf);}}}});}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'comment','model':_0x2bb5c5=>'revision-comment:'+_0x2bb5c5,'converterPriority':'highest'}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion','model':_0xbe433e=>'revision-suggestion:'+_0xbe433e,'converterPriority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision-suggestion','view':_0x3dedbf=>({'name':'suggestion:'+_0x3dedbf,'group':'revision-suggestion'}),'converterPriority':'highest'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision-suggestion','view':_0x2b7b26=>{const _0x21336c=_0x2b7b26['markerName']['split'](':')[0x1];return'insertion'!=_0x21336c&&'deletion'!=_0x21336c?null:{'classes':['ck-suggestion-preview-marker','ck-suggestion-preview-marker-'+_0x21336c]};}}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:deletion',Z(this['editor'],'merge'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:insertion',Z(this['editor'],'split'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision-suggestion',(_0x27b7ad,_0xb70ae1,_0xae0fc6)=>{const _0x12d0bd=_0xae0fc6['mapper']['markerNameToElements'](_0xb70ae1['markerName']);if(_0x12d0bd){for(const _0x15ee53 of _0x12d0bd)_0x15ee53['is']('uiElement')&&(_0xae0fc6['mapper']['unbindElementFromMarkerName'](_0x15ee53,_0xb70ae1['markerName']),_0xae0fc6['writer']['remove'](_0x15ee53));}},{'priority':'high'});}['_getChangeFromId'](_0x52d9b1){return this['_changeIdToChange']['get'](_0x52d9b1);}['_getViewForChange'](_0xc6c211){return this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=new X(this['editor']['locale'],_0xc6c211),this['_changeView'];}['_initInteractions'](){this['editor']['model']['document']['selection']['observeMarkers']('revision'),this['on']('change:activeView',(_0x3626fd,_0x180ecd,_0x24ef1f,_0x9948c9)=>{_0x9948c9&&this['_balloon']['remove'](_0x9948c9),_0x24ef1f&&(this['_balloon']['add']({'view':_0x24ef1f,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0x1a437e=this['editor']['editing'],_0x29fd2d=this['_getChangeFromId'](_0x24ef1f['changeId']);let _0x5b040f;if(_0x29fd2d['data']['isOnRoot']){const _0x53bb0c=_0x1a437e['view']['getDomRoot'](_0x29fd2d['rootName']);_0x5b040f=Array['from'](_0x53bb0c['getClientRects']());}else{const _0x53f5f6=this['editor']['model']['markers']['get']('revision:'+_0x24ef1f['changeId']);_0x5b040f=Array['from'](_0x1a437e['mapper']['markerNameToElements'](_0x53f5f6['name']))['map'](_0x4a9cfe=>_0x1a437e['view']['domConverter']['mapViewToDom'](_0x4a9cfe))['map'](_0x2c53ae=>Array['from'](_0x2c53ae['getClientRects']()))['flat']();}if(!this['_activeViewTarget'])return _0x5b040f[0x0];return _0x5b040f['find'](_0x26c2d6=>_0x26c2d6['top']-0x3<=this['_activeViewTarget']['y']&&_0x26c2d6['bottom']+0x3>=this['_activeViewTarget']['y']&&_0x26c2d6['left']-0x3<=this['_activeViewTarget']['x']&&_0x26c2d6['right']+0x3>=this['_activeViewTarget']['x'])||_0x5b040f[0x0];}}}),this['_balloon']['showStack']('revisionHistoryLabel'));}),this['on']('change:activeChange',(_0x919a85,_0x3d0e93,_0xc21fdd,_0x43ac0f)=>{this['activeView']=_0xc21fdd?this['_getViewForChange'](_0xc21fdd):null,this['editor']['model']['change'](()=>{const _0x3c6b45=this['editor']['editing'];_0x43ac0f&&(_0x43ac0f['data']['isOnRoot']?_0x3c6b45['view']['change'](_0x410e30=>{_0x410e30['removeClass']('ck-revision-history-root--active',_0x3c6b45['view']['document']['getRoot'](_0x43ac0f['rootName']));}):_0x3c6b45['reconvertMarker']('revision:'+_0x43ac0f['id'])),_0xc21fdd&&(_0xc21fdd['data']['isOnRoot']?_0x3c6b45['view']['change'](_0x325632=>{_0x325632['addClass']('ck-revision-history-root--active',_0x3c6b45['view']['document']['getRoot'](_0xc21fdd['rootName']));}):_0x3c6b45['reconvertMarker']('revision:'+_0xc21fdd['id']));});}),this['listenTo'](this['editor']['editing']['view']['document'],'mouseover',(_0xa2956f,_0x4edfb0)=>{if(this['activeChange'])return;const _0x319a3a=this['_findChangeIdFromDomTarget'](_0x4edfb0['target']),_0x4aadfd=this['_changeIdToChange']['get'](_0x319a3a);_0x4aadfd?(this['_activeViewTarget']={'x':_0x4edfb0['domEvent']['x'],'y':_0x4edfb0['domEvent']['y']},this['activeView']=this['_getViewForChange'](_0x4aadfd)):(this['_activeViewTarget']=null,this['activeView']=null);}),this['listenTo'](this['editor']['editing']['view']['document'],'mousedown',(_0x24ef8d,_0x1ca3fe)=>{const _0x3fa728=this['_findChangeIdFromDomTarget'](_0x1ca3fe['target']),_0x5bdb45=this['_changeIdToChange']['get'](_0x3fa728);_0x5bdb45?(this['_activeViewTarget']={'x':_0x1ca3fe['domEvent']['x'],'y':_0x1ca3fe['domEvent']['y']},_0x5bdb45===this['activeChange']?this['_balloon']['updatePosition']():this['activeChange']=_0x5bdb45):(this['_activeViewTarget']=null,this['activeChange']=null);});}['_findChangeIdFromDomTarget'](_0x114418){do{const _0x5a335b=_0x114418['getAttribute']('data-change-id');if(_0x5a335b)return _0x5a335b;_0x114418=_0x114418['parent'];}while(_0x114418);return null;}['_cleanMarkers'](){this['editor']['model']['change'](_0x4973fa=>{for(const _0x22ad22 of this['editor']['model']['markers'])_0x4973fa['removeMarker'](_0x22ad22);});}}function Z(_0x4a144f,_0x13bb9a){return(_0x575910,_0x220ead,_0x167150)=>{if(!_0x167150['consumable']['test'](_0x220ead['markerRange'],_0x575910['name']))return;const _0x46053b=_0x220ead['markerRange']['getWalker'](),_0x291665=_0x220ead['markerRange']['start'],_0x5dc9cd=_0x4a144f['model']['schema'];let _0x2f60d2=null,_0x584dfc=null,_0x235d4e=!0x1,_0x31bcf7=!0x1;for(const _0xe8bbb8 of _0x46053b){const _0x3ae5b0=_0xe8bbb8['item'];_0x235d4e=_0x235d4e||_0x5dc9cd['isContent'](_0x3ae5b0);const _0x47077e=_0x167150['mapper']['toViewElement'](_0x3ae5b0);if(_0x47077e&&_0x47077e['getCustomProperty']('addHighlight'))return;'elementEnd'==_0xe8bbb8['type']&&(_0x5dc9cd['isBlock'](_0x3ae5b0)&&!_0x5dc9cd['isLimit'](_0x3ae5b0)&&(_0x3ae5b0['nextSibling']||_0x291665['isAtEnd']?_0x2f60d2&&_0x2f60d2['parent']==_0x3ae5b0||(_0x2f60d2=_0x3ae5b0,_0x5691c1(_0xe8bbb8['previousPosition']),_0x31bcf7=!0x0):_0x584dfc=_0x584dfc||_0xe8bbb8['previousPosition']));}function _0x5691c1(_0xcfec5f){const _0x52ca32=_0x167150['mapper']['toViewPosition'](_0xcfec5f),_0x258a4b=_0x167150['writer']['createUIElement']('span',{'class':'ck-suggestion-preview-marker-'+_0x13bb9a});_0x167150['writer']['insert'](_0x52ca32,_0x258a4b),_0x167150['mapper']['bindElementToMarker'](_0x258a4b,_0x220ead['markerName']);}_0x235d4e||_0x31bcf7||!_0x584dfc||_0x5691c1(_0x584dfc);};}class _t extends _0x82edf0{constructor(_0x172a35){super(_0x172a35);const _0x5a3b03=_0x172a35['plugins']['get'](d);this['affectsData']=!0x1,this['listenTo'](_0x5a3b03,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x5a3b03,'change:isEnabled',()=>this['refresh']());}['execute'](){const _0x430e3e=this['editor'],_0x1b7ec7=_0x430e3e['plugins']['get'](d),_0x259321=_0x1b7ec7['isReady']?_0x1b7ec7['diff']['newRevisionId']:null;_0x430e3e['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x259321);}['refresh'](){const {isReady:_0x149370,isEnabled:_0x5b5266,repository:_0x267f69,diff:_0x36aa80}=this['editor']['plugins']['get'](d),_0x2cb7de=_0x36aa80&&_0x267f69['getLaterVisibleRevision'](_0x36aa80['newRevisionId']);this['isEnabled']=_0x149370&&_0x5b5266&&Boolean(_0x2cb7de);}}class yt extends _0x82edf0{['_step'];constructor(_0x8b8fff,{direction:_0x288fce}){super(_0x8b8fff);const _0x1b618c=_0x8b8fff['plugins']['get'](d);this['affectsData']=!0x1,this['_step']='forward'===_0x288fce?0x1:-0x1,this['listenTo'](_0x1b618c,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x1b618c,'change:isEnabled',()=>this['refresh']()),this['listenTo'](_0x1b618c,'change:activeChange',()=>this['refresh']());}['execute'](){const _0x406317=this['editor'],_0x1759c2=_0x406317['plugins']['get'](d),{isNavigationMode:_0x295f45,currentChangeNumber:_0x24137a}=_0x1759c2;let _0x11f94f;if(_0x1759c2['activeChange']=_0x295f45?_0x1759c2['diff']['changes']['get'](_0x24137a+this['_step']):_0x1759c2['diff']['changes']['first'],_0x1759c2['activeChange']['data']['isOnRoot'])_0x11f94f=_0x406317['editing']['view']['getDomRoot'](_0x1759c2['activeChange']['rootName']);else{const _0xba7074=_0x406317['model']['markers']['get']('revision:'+_0x1759c2['activeChange']['id']);_0x11f94f=_0x5990eb(_0x406317['editing'],_0xba7074);}_0x515f4b({'target':_0x11f94f,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0x2ff995,currentChangeNumber:_0x386b72,numberOfChanges:_0x22ebf4,isReady:_0x4f480e,isEnabled:_0x42b04c}=this['editor']['plugins']['get'](d);this['isEnabled']=!!(_0x42b04c&&_0x4f480e&&_0x22ebf4)&&(!_0x2ff995||(0x1===this['_step']?_0x386b72<_0x22ebf4-0x1:_0x386b72>0x0));}}class di extends _0x4cb52{constructor(_0x1e5633){super(_0x1e5633);const _0x61bdfb=this['bindTemplate'],_0x28acff=new _0x219c24(_0x1e5633),_0x4b6313=new _0x219c24(_0x1e5633);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',(_0x198918,_0x1f926e)=>_0x198918&&_0x1f926e>0x0),this['bind']('_statusText')['to'](this,'isReady',this,'currentChangeNumber',this,'numberOfChanges',this,'isNavigationMode',(_0x3a8621,_0x122040,_0x515ffe,_0x197dd7)=>{if(!_0x3a8621)return m(_0x1e5633,'Loading...');if(!_0x515ffe)return m(_0x1e5633,'No\x20changes');const _0x3db6db=m(_0x1e5633,'NUMBER_OF_CHANGES',_0x515ffe);return _0x197dd7?m(_0x1e5633,'X_OF_Y_CHANGES',[_0x122040+0x1,_0x515ffe]):_0x3db6db;}),_0x28acff['set']({'label':m(_0x1e5633,'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'}),_0x4b6313['set']({'label':m(_0x1e5633,'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'}),_0x28acff['bind']('isEnabled')['to'](this,'isBackwardNavigationEnabled'),_0x4b6313['bind']('isEnabled')['to'](this,'isForwardNavigationEnabled'),_0x28acff['on']('execute',()=>this['fire']('execute','backward')),_0x4b6313['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',_0x61bdfb['if']('_isStatusLabelVisible','ck-hidden',_0x1e28a9=>!_0x1e28a9)]},'children':[{'text':_0x61bdfb['to']('isNavigationMode',_0x307659=>_0x307659?m(_0x1e5633,'EDIT_X_OF_Y_REVISIONS')+':\x20':m(_0x1e5633,'Total')+':\x20')}]},{'text':_0x61bdfb['to']('_statusText')}]},new _0x28a40c(),{'tag':'div','attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0x28acff,_0x4b6313]}]});}}const ce='ck-editor__editable__loading-overlay';class ae extends _0x23fe3b{static get['pluginName'](){return'RevisionViewerLoadingOverlay';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['show'](){const _0x5b2f41=this['editor']['editing']['view'];_0x5b2f41['change'](_0x49b5f0=>{for(const _0x2288dc of _0x5b2f41['document']['roots'])_0x49b5f0['addClass'](ce,_0x2288dc);});}['hide'](){const _0x8319e2=this['editor']['editing']['view'];_0x8319e2['change'](_0x32c5fd=>{for(const _0x509cfa of _0x8319e2['document']['roots'])_0x32c5fd['removeClass'](ce,_0x509cfa);});}}class g extends _0x23fe3b{static get['pluginName'](){return'RevisionViewerUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[d,ae];}['init'](){const _0x445f3e=this['editor'],_0x468350=_0x445f3e['plugins']['get'](d),_0x5e6bc4=_0x445f3e['plugins']['get'](ae);_0x445f3e['ui']['componentFactory']['add']('exitToEditing',_0x509071=>{const _0x2f5eef=new _0x219c24(_0x509071);return _0x2f5eef['set']({'label':m(_0x509071,'Back\x20to\x20editing'),'icon':_0x5d0720['undo'],'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this['listenTo'](_0x2f5eef,'execute',()=>{_0x445f3e['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}),_0x2f5eef;}),_0x445f3e['ui']['componentFactory']['add']('restoreRevision',_0x51a292=>{const _0x334340=new _0x219c24(_0x51a292);return _0x334340['set']({'label':m(_0x51a292,'Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0x334340['bind']('isEnabled')['to'](_0x445f3e['commands']['get']('restoreRevision')),this['listenTo'](_0x334340,'execute',()=>_0x445f3e['execute']('restoreRevision')),_0x334340;}),_0x445f3e['ui']['componentFactory']['add']('changesNavigation',_0x3e8cf6=>{const _0x20b028=new di(_0x3e8cf6),_0x50a809=_0x445f3e['commands']['get']('showPreviousChange'),_0x5b8d04=_0x445f3e['commands']['get']('showNextChange');return _0x20b028['bind']('isBackwardNavigationEnabled')['to'](_0x50a809,'isEnabled'),_0x20b028['bind']('isForwardNavigationEnabled')['to'](_0x5b8d04,'isEnabled'),_0x20b028['bind']('isReady','currentChangeNumber','numberOfChanges','isNavigationMode')['to'](_0x468350),this['listenTo'](_0x20b028,'execute',(_0x46e06f,_0x5ab9aa)=>{_0x445f3e['execute']('forward'===_0x5ab9aa?'showNextChange':'showPreviousChange');}),_0x20b028;}),_0x5e6bc4['show'](),_0x468350['on']('change:isReady',(_0x5ccb15,_0x1ab840,_0x56d57c)=>{_0x56d57c?_0x5e6bc4['hide']():_0x5e6bc4['show']();});}}class pt extends nt{['_resizeObserver']=null;constructor(_0x12441a,_0x54dde3){super(_0x12441a,_0x54dde3);const _0x291461=this['bindTemplate'];this['set']({'label':m(_0x12441a,'Revision\x20name'),'_tooltipString':''}),this['fieldView']['placeholder']=m(_0x12441a,'Enter\x20the\x20revision\x20name'),this['extendTemplate']({'tag':'span','attributes':{'class':['ck-revision-history-sidebar__revision-name'],'data-cke-tooltip-text':_0x291461['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 _0x179c75=this['fieldView']['element'];this['_tooltipString']=_0x179c75['scrollWidth']>_0x179c75['clientWidth']&&_0x179c75['value']||'';}}class ti extends _0x4cb52{constructor(_0x2edfef,_0x3481c9,_0x4713d6){super(_0x2edfef);const _0x1e6ebf=new _0x2a92f3();_0x1e6ebf['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 _0x2ab9c9=['ck','ck-revision-history-sidebar__revision-author'];_0x4713d6&&_0x2ab9c9['push']('ck-revision-history-sidebar__revision-author_creator');const _0x2e3a6a=[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':m(_0x2edfef,_0x4713d6?'Revision\x20creator':'Revision\x20author')},'children':[_0x1e6ebf,_0x3481c9['name']]}];this['setTemplate']({'tag':'li','attributes':{'class':_0x2ab9c9},'children':_0x2e3a6a});}}function ni(_0x5d8de7,_0x358e80){const _0x1eca2d=_0x5d8de7['bindTemplate'],_0x5f5308=_0x5d8de7['locale'],_0x1d0e07=_0x4daaa8(_0x5f5308);_0x1d0e07['panelPosition']='sw';const _0x4c3d4d=function(_0x20dc39,_0x20658d){const _0x52636e=function(_0x11792f,_0x50bfba){const _0x229396=_0x11792f['locale'],_0x10292e={'Compare\x20against\x20selected':m(_0x229396,'Compare\x20against\x20selected'),'Name\x20this\x20revision':m(_0x229396,'Name\x20this\x20revision'),'Restore\x20this\x20revision':m(_0x229396,'Restore\x20this\x20revision')};return _0x50bfba['map'](_0x542186=>{const _0xc43b65=_0x10292e[_0x542186['name']];return _0xc43b65&&_0xc43b65!==_0x542186['name']&&(_0x542186['name']=_0xc43b65),_0x542186;});}(_0x20dc39,_0x20658d),_0x5474cd=new _0x2733e7();for(const _0x4a1aad of _0x52636e){const _0x244cd5={'type':'button','model':new to({'label':_0x4a1aad['name'],'class':_0x4a1aad['class'],'withText':!0x0,'role':'menuitem','_action':_0x4a1aad['action']})};_0x244cd5['model']['bind']('isEnabled')['to'](_0x20dc39,'isActionsDropdownOpen',_0x3099c0=>'function'!=typeof _0x4a1aad['isEnabled']||(!_0x3099c0||_0x4a1aad['isEnabled'](_0x20dc39))),_0x5474cd['add'](_0x244cd5);}return _0x5474cd;}(_0x5d8de7,_0x358e80);return _0x5d8de7['bind']('isActionsDropdownOpen')['to'](_0x1d0e07,'isOpen'),_0x1d0e07['buttonView']['set']({'label':m(_0x5f5308,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x5d0720['threeVerticalDots']}),_0x1d0e07['extendTemplate']({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0x1eca2d['if']('isActionsDropdownOpen','ck-on')]},'on':{'click':_0x1eca2d['to'](_0x13a287=>_0x13a287['stopPropagation']())}}),_0x1d0e07['on']('execute',_0x1b69f2=>{_0x5d8de7['isReady']&&'function'==typeof _0x1b69f2['source']['_action']&&_0x1b69f2['source']['_action'](_0x5d8de7);}),_0x34f7ce(_0x1d0e07,_0x4c3d4d,{'role':'menu'}),_0x1d0e07['listenTo'](_0x5d8de7,'change:isActionsDropdownOpen',(_0x9cbb8c,_0x314c09,_0x31e1ca)=>{if(_0x31e1ca)for(const _0x168381 of _0x1d0e07['listView']['items']){const _0xb47fc2=_0x168381['children']['first'],_0x240398=_0x358e80['find'](_0x3f45f5=>_0x3f45f5['action']===_0xb47fc2['_action'])['isVisible'];_0x168381['isVisible']=void 0x0===_0x240398||_0x240398(_0x5d8de7);}}),_0x1d0e07;}class ai extends/* #__PURE__ -- @preserve */
|
|
26
|
-
|
|
23
|
+
import{ObservableMixin as _0x53a54d,uid as _0x1de89c,Collection as _0x1c28b8,logWarning as _0x1efadd,FocusTracker as _0xfc2138,KeystrokeHandler as _0x214bde,scrollViewportToShowTarget as _0x5490f8,ResizeObserver as at,ElementReplacer as ht,CKEditorError as _0x5afd49}from'@ckeditor/ckeditor5-utils/dist/index.js';import{cloneDeep as _0x22a529,set as _0x569683,unset as _0x4c3785,isEqual as _0x34171c}from'lodash-es';import{Plugin as _0x2c3b67,PendingActions as _0x19109d,icons as _0xc8c67c,Command as _0xf8d3a1,ElementApiMixin as it,Editor as tt}from'@ckeditor/ckeditor5-core/dist/index.js';import{Users as _0x588a40,getMarkerDomElement as _0x2f8340,ConfirmMixin as _0x1faccf,sanitizeEditorConfig as _0x430442}from'ckeditor5-collaboration/dist/index.js';import{ViewDocumentFragment as _0x55075a,Element as ft,Range as vt,ViewUIElement as _0x549e14,ViewRawElement as _0x11737c,ViewEmptyElement as _0x4bbed6,ViewAttributeElement as _0x3e768e,ViewContainerElement as _0x2e423a,Position as gt,ViewText as _0x2180c9,ViewElement as _0x56877a,DocumentFragment as mt,Text as wt}from'@ckeditor/ckeditor5-engine/dist/index.js';import{View as _0x3f9662,injectCssTransitionDisabler as ts,submitHandler as _0x3a02e8,LabeledFieldView as nt,createLabeledInputText as _0x2ea866,createDropdown as _0x101d38,ListView as _0x4edeac,ListItemView as _0x387430,ButtonView as _0x48eb6b,MenuBarMenuView as _0x29e1ba,MenuBarMenuListView as _0x455f57,MenuBarMenuListItemView as _0x46b0c4,MenuBarMenuListItemButtonView as _0x2953a6,ContextualBalloon as _0x24fceb,ToolbarSeparatorView as _0x38f5d8,IconView as _0x811d78,addListToDropdown as _0xa3c447,ViewModel as to,EditorUI as st,normalizeToolbarConfig as ot,BoxedEditorUIView as ct,StickyPanelView as ut,ToolbarView as lt,InlineEditableUIView as dt}from'@ckeditor/ckeditor5-ui/dist/index.js';import{DateTime as te}from'luxon';class a extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x53a54d(){['id'];['creator'];['authors'];['diffData'];['toVersion'];['fromVersion'];['model'];constructor(_0x579fc6){super(),this['id']=_0x579fc6['id']||_0x1de89c(),this['creator']=_0x579fc6['creator']||null,this['authors']=_0x579fc6['authors']||[],this['diffData']=_0x579fc6['diffData']||null,this['toVersion']=_0x579fc6['toVersion']||0x0,this['fromVersion']=_0x579fc6['fromVersion']||0x0,this['set']('name',_0x579fc6['name']||''),this['set']('createdAt',_0x579fc6['createdAt']||new Date()),this['set']('attributes',_0x579fc6['attributes']||{});}['setName'](_0x34e29c){this['_update']({'name':_0x34e29c});}['setAttribute'](_0x1177ec,_0x46dcaa){const _0x231411=_0x22a529(this['attributes']);_0x569683(_0x231411,_0x1177ec,_0x46dcaa),this['_update']({'attributes':_0x231411});}['removeAttribute'](_0x30b841){const _0x499424=_0x22a529(this['attributes']);_0x4c3785(_0x499424,_0x30b841),this['_update']({'attributes':_0x499424});}['_update'](_0x549091,_0x38c77f=!0x1){let _0x55a19b=!0x1;const _0x2be026={'id':this['id']},_0x24ebb3=['name','createdAt','diffData','authors','attributes','toVersion','fromVersion','creatorId'];for(const _0x3b36c1 of _0x24ebb3){const _0x1cd468=_0x549091[_0x3b36c1];void 0x0!==_0x1cd468&&_0x1cd468!==this[_0x3b36c1]&&(this[_0x3b36c1]=_0x1cd468,_0x2be026[_0x3b36c1]=_0x1cd468,_0x55a19b=!0x0);}_0x55a19b&&(_0x2be026['authors']&&(_0x2be026['authorsIds']=_0x2be026['authors']['map'](_0x2fed04=>_0x2fed04['id']),delete _0x2be026['authors']),this['fire']('_update',_0x2be026,_0x38c77f));}['toJSON'](){return{'id':this['id'],'name':this['name'],'creatorId':this['creator']?this['creator']['id']:null,'authorsIds':this['authors']['map'](_0x456383=>_0x456383['id']),'diffData':this['diffData'],'createdAt':this['createdAt'],'attributes':this['attributes'],'fromVersion':this['fromVersion'],'toVersion':this['toVersion']};}}class j extends _0x2c3b67{['_revisions'];static get['requires'](){return[_0x588a40];}static get['pluginName'](){return'RevisionsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['length'](){return this['_revisions']['length'];}constructor(_0x23c60e){super(_0x23c60e),this['_revisions']=new _0x1c28b8();}['afterInit'](){!async function(_0x50cadf){const _0x5ca78e=_0x3d6d84([0x49,0x73,0x34,0x76,0x4a,0x36,0x70,0x74,0x48,0x35,0x38,0x78,0x51,0x30,0x37,0x6d,0x54,0x65,0x67,0x50,0x33,0x4f,0x43,0x72,0x4d,0x6a,0x79,0x55,0x6e,0x4c,0x77,0x66,0x63,0x69,0x4e,0x61,0x7a,0x45,0x62,0x57,0x46,0x6f,0x6b,0x6c,0x68,0x71,0x32,0x52,0x4b,0x64,0x58,0x47,0x75,0x53,0x44,0x31,0x41,0x42,0x39,0x56,0x5a,0x59]),_0xc46484=0xeb829,_0x3e402a=0x4089e718,_0x56c1f4=0x408eb850^_0x3e402a,_0x4cb75e=window[_0x3d6d84([0x44,0x61,0x74,0x65])][_0x3d6d84([0x6e,0x6f,0x77])](),_0x2ad8e1=_0x50cadf[_0x3d6d84([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x32716a=new window[(_0x3d6d84([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2de128=>{_0x2ad8e1[_0x3d6d84([0x6f,0x6e,0x63,0x65])](_0x3d6d84([0x72,0x65,0x61,0x64,0x79]),_0x2de128);}),_0x34b840={[_0x3d6d84([0x6b,0x74,0x79])]:_0x3d6d84([0x45,0x43]),[_0x3d6d84([0x75,0x73,0x65])]:_0x3d6d84([0x73,0x69,0x67]),[_0x3d6d84([0x63,0x72,0x76])]:_0x3d6d84([0x50,0x2d,0x32,0x35,0x36]),[_0x3d6d84([0x78])]:_0x3d6d84([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]),[_0x3d6d84([0x79])]:_0x3d6d84([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]),[_0x3d6d84([0x61,0x6c,0x67])]:_0x3d6d84([0x45,0x53,0x32,0x35,0x36])},_0x19a9c9=_0x2ad8e1[_0x3d6d84([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x3d6d84([0x67,0x65,0x74])](_0x3d6d84([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x58c180(){let _0x2bbf0e,_0x5c89f7=null,_0x3e8005=null;try{if(_0x19a9c9==_0x3d6d84([0x47,0x50,0x4c]))return _0x3d6d84([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x2bbf0e=_0x30e5ad(),!_0x2bbf0e)return _0x3d6d84([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x2bbf0e[_0x3d6d84([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x3e8005=_0xcc066b(_0x2bbf0e[_0x3d6d84([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x2bbf0e[_0x3d6d84([0x6a,0x74,0x69])])),await _0x1887f9()?_0x4f1329()?_0x2dc02c()?_0x3d6d84([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x244d47()?(_0x2bbf0e[_0x3d6d84([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3d6d84([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x5c89f7=_0x34a096(_0x3d6d84([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x2bbf0e[_0x3d6d84([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3d6d84([0x74,0x72,0x69,0x61,0x6c])&&(_0x5c89f7=_0x34a096(_0x3d6d84([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x3e9881()):_0x3d6d84([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x3d6d84([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x3d6d84([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x5bb5f1){return _0x3d6d84([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x2dc02c(){const _0x560e74=[_0x3d6d84([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x3d6d84([0x74,0x72,0x69,0x61,0x6c])][_0x3d6d84([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2bbf0e[_0x3d6d84([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x4cb75e/0x3e8:0xe10*_0x56c1f4;return _0x2bbf0e[_0x3d6d84([0x65,0x78,0x70])]<_0x560e74;}function _0x4f1329(){const _0xdb535b=_0x2bbf0e[_0x3d6d84([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0xdb535b)return!0x1;if(_0xdb535b[_0x3d6d84([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3d6d84([0x2a])))return!0x0;if(_0xdb535b[_0x3d6d84([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3d6d84([0x52,0x48])))return!0x0;if(_0xdb535b[_0x3d6d84([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3d6d84([0x52,0x52,0x48]))){if(_0x459d2e())return!0x0;if(_0x119992()||_0x373a03())return!0x0;}return!0x1;}function _0x244d47(){const _0x2b6ebe=_0x2bbf0e[_0x3d6d84([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x2b6ebe||0x0==_0x2b6ebe[_0x3d6d84([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x325b9c}=new URL(window[_0x3d6d84([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x2b6ebe[_0x3d6d84([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x325b9c))return!0x0;const _0x11449e=_0x325b9c[_0x3d6d84([0x73,0x70,0x6c,0x69,0x74])](_0x3d6d84([0x2e]));return _0x2b6ebe[_0x3d6d84([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x160799=>_0x160799[_0x3d6d84([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3d6d84([0x2a])))[_0x3d6d84([0x6d,0x61,0x70])](_0x41d2ca=>_0x41d2ca[_0x3d6d84([0x73,0x70,0x6c,0x69,0x74])](_0x3d6d84([0x2e])))[_0x3d6d84([0x73,0x6f,0x6d,0x65])](_0x1f6ce3=>_0x11449e[_0x3d6d84([0x65,0x76,0x65,0x72,0x79])]((_0x575bc3,_0x350546)=>_0x1f6ce3[_0x350546]===_0x575bc3||_0x1f6ce3[_0x350546]===_0x3d6d84([0x2a])));}function _0x3e9881(){return _0x5c89f7&&_0x3e8005?new window[(_0x3d6d84([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x8d652d,_0x4ea24e)=>{_0x5c89f7[_0x3d6d84([0x74,0x68,0x65,0x6e])](_0x8d652d,_0x4ea24e),_0x3e8005[_0x3d6d84([0x74,0x68,0x65,0x6e])](_0x588e31=>{_0x588e31!=_0x3d6d84([0x56,0x61,0x6c,0x69,0x64])&&_0x8d652d(_0x588e31);},_0x4ea24e);}):_0x5c89f7||_0x3e8005||_0x3d6d84([0x56,0x61,0x6c,0x69,0x64]);}}function _0xcc066b(_0x3ce728,_0x275b47){return new window[(_0x3d6d84([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1db46e=>{if(_0x19a628())return _0x1db46e(_0x3d6d84([0x56,0x61,0x6c,0x69,0x64]));_0x220770(),_0x2ad8e1[_0x3d6d84([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x3d6d84([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x143359=!0x1;const _0x39d3d4=_0x1de89c();function _0x462e7a(_0x299feb){return!!_0x299feb&&(typeof _0x299feb===_0x3d6d84([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x299feb===_0x3d6d84([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x299feb[_0x3d6d84([0x74,0x68,0x65,0x6e])]===_0x3d6d84([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x299feb[_0x3d6d84([0x63,0x61,0x74,0x63,0x68])]===_0x3d6d84([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x301b7c(_0x1b3247){_0x17405b(_0x1b3247)[_0x3d6d84([0x74,0x68,0x65,0x6e])](_0x1abf74=>{if(!_0x1abf74||_0x1abf74[_0x3d6d84([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x3d6d84([0x6f,0x6b]))return _0x3d6d84([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x1b7fce(_0xace5ab(_0x39d3d4+_0x275b47))!=_0x1abf74[_0x3d6d84([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x3d6d84([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x3d6d84([0x56,0x61,0x6c,0x69,0x64]);})[_0x3d6d84([0x74,0x68,0x65,0x6e])](_0xb6b2cb=>(_0x1798c4(),_0xb6b2cb),()=>{const _0x1e5ddb=_0x2ffb09();return null==_0x1e5ddb?(_0x1798c4(),_0x3d6d84([0x56,0x61,0x6c,0x69,0x64])):_0x3d6d84(_0x4cb75e-_0x1e5ddb>(0x64856318^_0x3e402a)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x3d6d84([0x74,0x68,0x65,0x6e])](_0x1db46e)[_0x3d6d84([0x63,0x61,0x74,0x63,0x68])](()=>{_0x1db46e(_0x3d6d84([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x2a08e9=0x40bf0998^_0x3e402a;function _0x1798c4(){const _0x5631e6=_0x3d6d84([0x6c,0x6c,0x63,0x74,0x2d])+_0x1b7fce(_0xace5ab(_0x3ce728)),_0x2205c6=_0x523803(_0x1b7fce(window[_0x3d6d84([0x4d,0x61,0x74,0x68])][_0x3d6d84([0x63,0x65,0x69,0x6c])](_0x4cb75e/_0x2a08e9)));window[_0x3d6d84([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3d6d84([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x5631e6,_0x2205c6);}function _0x2ffb09(){const _0x5ccc84=_0x3d6d84([0x6c,0x6c,0x63,0x74,0x2d])+_0x1b7fce(_0xace5ab(_0x3ce728)),_0x5fa476=window[_0x3d6d84([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3d6d84([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x5ccc84);return _0x5fa476?window[_0x3d6d84([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x523803(_0x5fa476),0x10)*_0x2a08e9:null;}function _0x17405b(_0x7025e2){return new window[(_0x3d6d84([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x54d580,_0x301ccd)=>{_0x7025e2[_0x3d6d84([0x74,0x68,0x65,0x6e])](_0x54d580,_0x301ccd),window[_0x3d6d84([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x301ccd,0x408833d8^_0x3e402a);});}}_0x2ad8e1[_0x3d6d84([0x6f,0x6e])](_0x3d6d84([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x52eac0,_0x1d070c)=>{if(_0x1d070c[0x0]!=_0x3ce728)return _0x1db46e(_0x3d6d84([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x1d070c[0x1]={..._0x1d070c[0x1],[_0x3d6d84([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x39d3d4};},{[_0x3d6d84([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3d6d84([0x68,0x69,0x67,0x68])}),_0x2ad8e1[_0x3d6d84([0x6f,0x6e])](_0x3d6d84([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x3ebd72=>{_0x462e7a(_0x3ebd72[_0x3d6d84([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x143359=!0x0,_0x301b7c(_0x3ebd72[_0x3d6d84([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x3d6d84([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3d6d84([0x6c,0x6f,0x77])}),_0x32716a[_0x3d6d84([0x74,0x68,0x65,0x6e])](()=>{_0x143359||_0x1db46e(_0x3d6d84([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x19a628(){return _0x2ad8e1[_0x3d6d84([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3d6d84([0x76,0x69,0x65,0x77])][_0x3d6d84([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x3d6d84([0x61,0x75,0x74,0x6f]);}function _0x220770(){_0x2ad8e1[_0x3d6d84([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3d6d84([0x76,0x69,0x65,0x77])][_0x3d6d84([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x3d6d84([0x61,0x75,0x74,0x6f]);}}function _0x34a096(_0xb576cb){const _0x1ecce9=[new window[(_0x3d6d84([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3bc021=>setTimeout(_0x3bc021,0x4080d9d4^_0x3e402a)),_0x32716a[_0x3d6d84([0x74,0x68,0x65,0x6e])](()=>new window[(_0x3d6d84([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4ada2b=>{const _0x444add=0x4089e71f^_0x3e402a,_0x5eb5a2=_0x50cadf[_0x3d6d84([0x5f,0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x73])];function _0x4cc802(){_0x5eb5a2[_0x3d6d84([0x6c,0x65,0x6e,0x67,0x74,0x68])]>=_0x444add&&_0x4ada2b();}_0x4cc802(),_0x5eb5a2[_0x3d6d84([0x6f,0x6e])](_0x3d6d84([0x61,0x64,0x64]),_0x4cc802);})),new window[(_0x3d6d84([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x26a05=>{function _0x2742d3(){for(const _0x2a336b in window)if(window[_0x3d6d84([0x4e,0x75,0x6d,0x62,0x65,0x72])]['isNaN'](window[_0x3d6d84([0x4e,0x75,0x6d,0x62,0x65,0x72])](_0x2a336b))&&window[_0x2a336b]==_0xc46484)return _0x26a05();_0x2ad8e1[_0x3d6d84([0x73,0x74,0x61,0x74,0x65])]!=_0x3d6d84([0x64,0x65,0x73,0x74,0x72,0x6f,0x79,0x65,0x64])&&window[_0x3d6d84([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x2742d3,0x4089f490^_0x3e402a);}_0x430260(_0x3d6d84([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))&&_0x2742d3();})];return window[_0x3d6d84([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x3d6d84([0x72,0x61,0x63,0x65])](_0x1ecce9)[_0x3d6d84([0x74,0x68,0x65,0x6e])](()=>_0xb576cb);}async function _0xdc6480(){if(await _0x32716a,_0x430260(_0x3d6d84([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))){const _0x3b2739=_0x50cadf[_0x3d6d84([0x67,0x65,0x74,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])](0x0),_0x15cc7b=_0x50cadf[_0x3d6d84([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])](_0x3b2739[_0x3d6d84([0x69,0x64])]),_0x5eecee=_0x32e40c(_0x3d6d84([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]));return await _0x5eecee[_0x3d6d84([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])](_0x3b2739['id'],_0x15cc7b?_0x15cc7b['id']:null,!0x0),_0x5eecee[_0x3d6d84([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x3d6d84([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x5eecee[_0x3d6d84([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x5eecee[_0x3d6d84([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])]=_0x21cdc1,void(_0x5eecee[_0x3d6d84([0x5f,0x67,0x65,0x74,0x44,0x69,0x66,0x66])]=_0x21cdc1);}if(_0x430260(_0x3d6d84([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]))){const _0x25a467=_0x32e40c(_0x3d6d84([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]));_0x25a467[_0x3d6d84([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x3d6d84([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x25a467[_0x3d6d84([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x25a467[_0x3d6d84([0x75,0x70,0x64,0x61,0x74,0x65])]=_0x21cdc1,_0x25a467[_0x3d6d84([0x73,0x61,0x76,0x65,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])]=_0x21cdc1;}_0x2ad8e1[_0x3d6d84([0x6d,0x6f,0x64,0x65,0x6c])][_0x3d6d84([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x21cdc1,_0x2ad8e1[_0x3d6d84([0x6d,0x6f,0x64,0x65,0x6c])][_0x3d6d84([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x21cdc1,_0x2ad8e1[_0x3d6d84([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x3d6d84([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x459d2e(){return _0x430260(_0x3d6d84([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x32e40c(_0x3d6d84([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x3d6d84([0x73,0x74,0x61,0x74,0x65])]==_0x3d6d84([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x119992(){return _0x430260(_0x3d6d84([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 _0x373a03(){return _0x430260(_0x3d6d84([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x312dc3(_0x4383ac){const _0x1d904c=_0x31eefc();_0x2ad8e1[_0x1d904c]=_0x3d6d84([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])+_0x4383ac,_0x4383ac[_0x3d6d84([0x65,0x6e,0x64,0x73,0x57,0x69,0x74,0x68])](_0x3d6d84([0x4c,0x69,0x6d,0x69,0x74]))&&(window[_0x31eefc()]=_0xc46484),_0x4383ac!=_0x3d6d84([0x56,0x61,0x6c,0x69,0x64])&&_0xdc6480();}function _0x31eefc(){const _0x1a0205=window[_0x3d6d84([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x3d6d84([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x3d6d84([0x6e,0x6f,0x77])]())[_0x3d6d84([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x3d6d84([0x2e]),'');let _0x59df48=_0x3d6d84([0x49]);for(let _0x1607aa=0x0;_0x1607aa<_0x1a0205[_0x3d6d84([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1607aa+=0x2){let _0x320ead=window[_0x3d6d84([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1a0205[_0x3d6d84([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x1607aa,_0x1607aa+0x2));_0x320ead>=_0x5ca78e[_0x3d6d84([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x320ead-=_0x5ca78e[_0x3d6d84([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x59df48+=_0x5ca78e[_0x320ead];}return _0x59df48;}function _0x30e5ad(){const _0xbbceaa=_0x19a9c9[_0x3d6d84([0x73,0x70,0x6c,0x69,0x74])](_0x3d6d84([0x2e]));if(0x3!=_0xbbceaa[_0x3d6d84([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x71f3c4(_0xbbceaa[0x1]);function _0x71f3c4(_0x4ac7b9){const _0x4e29fb=_0x4bb823(_0x4ac7b9);return _0x4e29fb&&_0x43b423()?_0x4e29fb:null;function _0x43b423(){const _0x16be6a=_0x4e29fb[_0x3d6d84([0x6a,0x74,0x69])],_0x193cd6=window[_0x3d6d84([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x16be6a[_0x3d6d84([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x16be6a[_0x3d6d84([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x83e629={..._0x4e29fb,[_0x3d6d84([0x6a,0x74,0x69])]:_0x16be6a[_0x3d6d84([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x16be6a[_0x3d6d84([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x83e629[_0x3d6d84([0x76,0x63])],_0xace5ab(_0x83e629)==_0x193cd6;}}}async function _0x1887f9(){let _0x4aa6b2=!0x0;try{const _0x1fadb5=_0x19a9c9[_0x3d6d84([0x73,0x70,0x6c,0x69,0x74])](_0x3d6d84([0x2e])),[_0x22e22a,_0x592392,_0x5a0d6f]=_0x1fadb5;return _0x510914(_0x22e22a),await _0x2c9323(_0x22e22a,_0x592392,_0x5a0d6f),_0x4aa6b2;}catch(_0x2f358b){return!0x1;}function _0x510914(_0x16a338){const _0x15f0ae=_0x4bb823(_0x16a338);_0x15f0ae&&_0x15f0ae[_0x3d6d84([0x61,0x6c,0x67])]==_0x3d6d84([0x45,0x53,0x32,0x35,0x36])||(_0x4aa6b2=!0x1);}async function _0x2c9323(_0x4f1b4d,_0xeda282,_0x38b3bd){const _0x5b385e=window[_0x3d6d84([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x3d6d84([0x66,0x72,0x6f,0x6d])](_0x2d6d66(_0x38b3bd),_0x453c8f=>_0x453c8f[_0x3d6d84([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x2686a7=new window[(_0x3d6d84([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x3d6d84([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x4f1b4d+_0x3d6d84([0x2e])+_0xeda282),_0x3cde2f=window[_0x3d6d84([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x3d6d84([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x3cde2f)return;const _0x2ef342=await _0x3cde2f[_0x3d6d84([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x3d6d84([0x6a,0x77,0x6b]),_0x34b840,{[_0x3d6d84([0x6e,0x61,0x6d,0x65])]:_0x3d6d84([0x45,0x43,0x44,0x53,0x41]),[_0x3d6d84([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x3d6d84([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x3d6d84([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x3cde2f[_0x3d6d84([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x3d6d84([0x6e,0x61,0x6d,0x65])]:_0x3d6d84([0x45,0x43,0x44,0x53,0x41]),[_0x3d6d84([0x68,0x61,0x73,0x68])]:{[_0x3d6d84([0x6e,0x61,0x6d,0x65])]:_0x3d6d84([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x2ef342,_0x5b385e,_0x2686a7)||(_0x4aa6b2=!0x1);}}function _0x4bb823(_0x287cdc){return _0x287cdc[_0x3d6d84([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x3d6d84([0x65,0x79]))?JSON[_0x3d6d84([0x70,0x61,0x72,0x73,0x65])](_0x2d6d66(_0x287cdc)):null;}function _0x2d6d66(_0x297913){return window[_0x3d6d84([0x61,0x74,0x6f,0x62])](_0x297913[_0x3d6d84([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x3d6d84([0x2b]))[_0x3d6d84([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x3d6d84([0x2f])));}function _0xace5ab(_0x588700){let _0x130803=0x1505;function _0x16195d(_0x54484d){for(let _0x2e0e83=0x0;_0x2e0e83<_0x54484d[_0x3d6d84([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2e0e83++){const _0x181388=_0x54484d[_0x3d6d84([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x2e0e83);_0x130803=(_0x130803<<0x5)+_0x130803+_0x181388,_0x130803&=_0x130803;}}function _0x40b5e6(_0x4ce2a3){Array[_0x3d6d84([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x4ce2a3)?_0x4ce2a3[_0x3d6d84([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x40b5e6):_0x4ce2a3&&typeof _0x4ce2a3==_0x3d6d84([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x3d6d84([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x4ce2a3)[_0x3d6d84([0x73,0x6f,0x72,0x74])]()[_0x3d6d84([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x2f2b11,_0x456c4b])=>{_0x16195d(_0x2f2b11),_0x40b5e6(_0x456c4b);}):_0x16195d(window[_0x3d6d84([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x4ce2a3));}return _0x40b5e6(_0x588700),_0x130803>>>0x0;}function _0x1b7fce(_0x5aa08e){return _0x5aa08e[_0x3d6d84([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x3d6d84([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x3d6d84([0x30]));}function _0x523803(_0x234f22){return _0x234f22[_0x3d6d84([0x73,0x70,0x6c,0x69,0x74])]('')[_0x3d6d84([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x3d6d84([0x6a,0x6f,0x69,0x6e])]('');}function _0x430260(_0x57f29c){return _0x2ad8e1[_0x3d6d84([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x3d6d84([0x68,0x61,0x73])](_0x57f29c);}function _0x32e40c(_0x3b3e33){return _0x2ad8e1[_0x3d6d84([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x3d6d84([0x67,0x65,0x74])](_0x3b3e33);}function _0x21cdc1(){}function _0x3d6d84(_0x3c9ca6){return _0x3c9ca6['map'](_0x2ebe57=>String['fromCharCode'](_0x2ebe57))['join']('');}_0x312dc3(await _0x58c180());}(this);}['createRevision'](_0xae3d9a){const _0x4ef201=this['editor']['plugins']['get']('Users');return new a({'id':_0xae3d9a['id'],'name':_0xae3d9a['name'],'creator':_0xae3d9a['creatorId']?_0x4ef201['getUser'](_0xae3d9a['creatorId']):null,'diffData':_0xae3d9a['diffData']||_0xae3d9a['data'],'authors':_0xae3d9a['authorsIds']['map'](_0x78bfa8=>_0x4ef201['getUser'](_0x78bfa8)),'createdAt':new Date(_0xae3d9a['createdAt']),'attributes':_0xae3d9a['attributes'],'fromVersion':_0xae3d9a['fromVersion'],'toVersion':_0xae3d9a['toVersion']});}['addRevision'](_0x17dbbc,_0x44de4f=0x0){this['_revisions']['add'](_0x17dbbc,_0x44de4f);}['getRevision'](_0x295d08){return this['_revisions']['get'](_0x295d08);}['getRevisions'](_0x13d316={'toJSON':!0x1}){const _0x3bf2dc=Array['from'](this['_revisions']);return _0x3bf2dc['reverse'](),_0x13d316['toJSON']?_0x3bf2dc['map'](_0x1d12ba=>_0x1d12ba['toJSON']()):_0x3bf2dc;}['getIndex'](_0x3f7447){return this['_revisions']['getIndex'](_0x3f7447);}['getEarlierVisibleRevision'](_0x51f20b){const [,_0x5c7eae]=this['getRevisionsIterator'](_0x51f20b,{'direction':'earlier'});return _0x5c7eae;}['getLaterVisibleRevision'](_0x57f5e4){const [,_0x2c98d0]=this['getRevisionsIterator'](_0x57f5e4,{'direction':'later'});return _0x2c98d0;}['getRevisionsInDiff'](_0x20c2ab){const _0x19f6c7=[];for(const _0x4afdf8 of this['getRevisionsIterator'](_0x20c2ab['newRevisionId']))if(_0x19f6c7['push'](_0x4afdf8),_0x4afdf8['id']===_0x20c2ab['oldRevisionId'])break;return _0x19f6c7;}*['getRevisionsIterator'](_0x3fe891,{direction:_0x5e65ce='earlier',filter:_0x3e9ea5=()=>!0x0}={}){const _0x5dbd8d='earlier'===_0x5e65ce?0x1:-0x1;let _0x5be461=this['_revisions']['get'](_0x3fe891),_0x18fb98=this['getIndex'](_0x5be461);for(yield _0x5be461;_0x5be461;){if(_0x18fb98+=_0x5dbd8d,_0x5be461=this['getRevision'](_0x18fb98),!_0x5be461)return;_0x3e9ea5(_0x5be461)&&(yield _0x5be461);}}}function m(_0x4d2f58,_0x471e68,_0x2f5b31){const t=_0x4d2f58['t'];switch(_0x471e68){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'},_0x2f5b31);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x2f5b31);case'Show\x20previous\x20change':return t('Show\x20previous\x20change');case'Show\x20next\x20change':return t('Show\x20next\x20change');case'EDIT_X_OF_Y_REVISIONS':return t({'string':'Edit','id':'EDIT_X_OF_Y_REVISIONS'});case'Total':return t('Total');case'Revision\x20creator':return t('Revision\x20creator');case'Revision\x20author':return t('Revision\x20author');case'Revision\x20name':return t('Revision\x20name');case'Save\x20current\x20revision':return t('Save\x20current\x20revision');case'Accept':return t('Accept');case'Save':return t('Save');case'Cancel':return t('Cancel');case'Name\x20of\x20the\x20revision':return t('Name\x20of\x20the\x20revision');case'optional':return t('optional');case'PENDING_ACTION_REVISION_HISTORY':return t({'string':'Unsaved\x20change\x20in\x20revision\x20history.','id':'PENDING_ACTION_REVISION_HISTORY'});case'The\x20revision\x20name\x20cannot\x20be\x20empty.':return t('The\x20revision\x20name\x20cannot\x20be\x20empty.');case'Enter\x20the\x20revision\x20name':return t('Enter\x20the\x20revision\x20name');default:return'';}}const P={'c':_0x2e423a,'a':_0x3e768e,'e':_0x4bbed6,'r':_0x11737c,'u':_0x549e14};class l extends _0x2c3b67{['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[_0x588a40,j,_0x19109d];}constructor(_0x544be8){super(_0x544be8),this['adapter']=null,this['currentRevision']=null,this['_revisionDataBuilder']=new V(this['editor']),this['_initialRevisionId']=this['editor']['config']['get']('collaboration.channelId')||'initial',this['_bufferedUpdates']=new Map(),this['_loadedStateData']=null;const _0x3024a2=_0x1de89c();this['_source']={'history':this['editor']['model']['document']['history'],'getLatestVersion':()=>Promise['resolve'](this['editor']['model']['document']['version']),'getCurrentRevisionId':()=>_0x3024a2},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 _0x29fc38=this['repository']['getRevision'](0x0),_0x3bce71=_0x29fc38&&null===_0x29fc38['creator']?_0x29fc38:null;if(this['_continueCurrentRevision']=!!_0x3bce71&&this['editor']['config']['get']('revisionHistory.resumeUnsavedRevision'),this['editor']['plugins']['has']('RealTimeCollaborationClient')){const _0x65ef9d=this['_source']['getCurrentRevisionId'](),_0x514736=this['repository']['getRevision'](_0x65ef9d);if(_0x514736)this['_startingVersion']=_0x514736['fromVersion'],this['_continueCurrentRevision']=!0x1;else{const _0x568b82=this['_source']['history']['_operations']['find'](_0x9c738=>!_0x9c738['_isInit']),_0x139959=_0x568b82?_0x568b82['baseVersion']:this['_source']['history']['version'];_0x29fc38?(_0x29fc38['toVersion']<_0x139959&&_0x29fc38['_update']({'toVersion':_0x139959}),this['_continueCurrentRevision']?(this['_source']['getCurrentRevisionId']=()=>_0x3bce71['id'],this['_startingVersion']=_0x3bce71['fromVersion']):(this['_startingVersion']=_0x29fc38['toVersion'],this['_continueCurrentRevision']=!0x1)):(this['_startingVersion']=_0x139959,this['_continueCurrentRevision']=!0x1);}}else _0x3bce71&&(this['editor']['model']['document']['history']['version']=Math['max'](_0x3bce71['toVersion'],this['editor']['model']['document']['history']['version']),_0x3bce71['fromVersion']===_0x3bce71['toVersion']?(0x0!==_0x3bce71['fromVersion']&&(this['_source']['getCurrentRevisionId']=()=>_0x3bce71['id']),this['_continueCurrentRevision']=!0x1):this['_continueCurrentRevision']&&(this['_source']['getCurrentRevisionId']=()=>_0x3bce71['id'],this['_startingVersion']=_0x3bce71['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',_0x4a46b8=>!_0x4a46b8),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x3a8103=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x1b6ed0;for(const _0x2fbde5 in _0x3a8103){const _0x5eabb0=_0x2fbde5,_0x178a3b=_0x3a8103[_0x5eabb0];if('revisionHistoryLicenseKeyValid'==_0x178a3b||'revisionHistoryLicenseKeyInvalid'==_0x178a3b||'revisionHistoryLicenseKeyExpired'==_0x178a3b||'revisionHistoryLicenseKeyDomainLimit'==_0x178a3b||'revisionHistoryLicenseKeyNotAllowed'==_0x178a3b||'revisionHistoryLicenseKeyEvaluationLimit'==_0x178a3b||'revisionHistoryLicenseKeyTrialLimit'==_0x178a3b||'revisionHistoryLicenseKeyUsageLimit'==_0x178a3b){delete _0x3a8103[_0x5eabb0],_0x1b6ed0=_0x178a3b,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'revisionHistoryLicenseKeyInvalid'==_0x1b6ed0&&_0x3a8103['_showLicenseError']('invalid'),'revisionHistoryLicenseKeyExpired'==_0x1b6ed0&&_0x3a8103['_showLicenseError']('expired'),'revisionHistoryLicenseKeyDomainLimit'==_0x1b6ed0&&_0x3a8103['_showLicenseError']('domainLimit'),'revisionHistoryLicenseKeyNotAllowed'==_0x1b6ed0&&_0x3a8103['_showLicenseError']('featureNotAllowed','RevisionHistory'),'revisionHistoryLicenseKeyEvaluationLimit'==_0x1b6ed0&&_0x3a8103['_showLicenseError']('evaluationLimit'),'revisionHistoryLicenseKeyTrialLimit'==_0x1b6ed0&&_0x3a8103['_showLicenseError']('trialLimit'),'revisionHistoryLicenseKeyUsageLimit'==_0x1b6ed0&&_0x3a8103['_showLicenseError']('usageLimit');},0x3e8);}async['afterInit'](){if(this['repository']['length']>0x0){const _0x451f53=this['repository']['getRevision'](0x0),_0x4b8816=await this['getRevisionDocumentData'](_0x451f53),_0x287559=await this['getRevisionRootsAttributes'](_0x451f53);this['_replaceEditorDataWithRevisionData'](_0x4b8816,_0x287559);}}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['setSource'](_0x52f8ef){this['_source']=_0x52f8ef;}async['update'](){const _0x20fce9=await this['_source']['getLatestVersion']();if(_0x20fce9>this['currentRevision']['toVersion']){await this['_loadState']();const _0x2862a5=this['buildRevisionData']({'revision':this['currentRevision'],'to':_0x20fce9});_0x2862a5['authors']=_0x2862a5['authorsIds']['map'](_0x423025=>this['editor']['plugins']['get']('Users')['getUser'](_0x423025)),this['currentRevision']['_update'](_0x2862a5);}}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'](_0x48149d={},_0xfaea20=null){const _0x5d805=[];await this['_loadState'](),this['_continueCurrentRevision']=!0x1,_0xfaea20>this['currentRevision']['toVersion']&&(_0xfaea20=null),null===_0xfaea20&&(_0xfaea20=await this['_source']['getLatestVersion']());const _0x5ce95f=this['_getFromVersion'](_0xfaea20),_0x18218e=this['buildRevisionData']({'from':_0x5ce95f,'to':_0xfaea20});if(this['currentRevision']['toVersion']<_0xfaea20){const _0x9bd3b5=this['buildRevisionData']({'revision':this['currentRevision'],'from':_0xfaea20,'to':_0xfaea20});_0x9bd3b5['authors']=[],_0x9bd3b5['authorsIds']=[],_0x9bd3b5['id']=this['currentRevision']['id'],this['currentRevision']['_update'](_0x9bd3b5,!0x0),delete _0x9bd3b5['authors'],_0x5d805['push'](_0x9bd3b5);}_0x48149d['creatorId']=this['editor']['plugins']['get']('Users')['me']['id'],_0x48149d['name']=_0x48149d['name']||null,_0x48149d['id']=_0x48149d['id']||_0x1de89c(),_0x48149d={..._0x48149d,..._0x18218e};const _0x51a777=this['addRevisionData'](_0x48149d);_0x5d805['push'](_0x48149d);const _0x479d46=this['repository']['getIndex'](_0x51a777);if(0x0!==_0x479d46){const _0x1a99a1=this['repository']['getRevision'](_0x479d46-0x1);if(_0x1a99a1['fromVersion']!==_0xfaea20){const _0x477e5c=this['_revisionDataBuilder']['getData'](_0xfaea20,_0x1a99a1['toVersion']),_0x3460b0={'id':_0x1a99a1['id'],'diffData':_0x477e5c['diffData'],'authorsIds':_0x477e5c['authorsIds'],'authors':_0x477e5c['authorsIds']['map'](_0x10498a=>this['editor']['plugins']['get']('Users')['getUser'](_0x10498a)),'fromVersion':_0xfaea20};_0x1a99a1===this['currentRevision']&&(_0x3460b0['createdAt']=new Date(_0x48149d['createdAt']['getTime']()+0xa)),_0x1a99a1['_update'](_0x3460b0,!0x0),delete _0x3460b0['authors'],_0x5d805['push'](_0x3460b0);}}if(this['adapter']){for(const _0xa912a2 of _0x5d805)this['_bufferUpdate'](_0xa912a2['id'],_0xa912a2,!0x0);this['sendBufferedUpdates']();}return _0x51a777;}['addRevisionData'](_0x3c280f){const _0x5bae47=this['repository']['createRevision'](_0x3c280f);return this['adapter']&&_0x5bae47['on']('_update',(_0x7e4c83,_0x14cf3c,_0x3f51b1)=>{_0x3f51b1||(this['_bufferUpdate'](_0x14cf3c['id'],_0x14cf3c,!0x0),this['sendBufferedUpdates']());}),this['repository']['addRevision'](_0x5bae47,this['_findInsertionIndex'](_0x5bae47)),_0x5bae47;}async['getRevisionDocumentData'](_0x56adb2){await this['_loadRevisionData'](_0x56adb2);const _0x1811d5={};for(const _0x312008 in _0x56adb2['diffData']){if(_0x56adb2['diffData'][_0x312008]['attachChange']&&!_0x56adb2['diffData'][_0x312008]['attachChange']['isAttached'])continue;const _0x4a34d9=this['_removeRevisionMarkers'](JSON['parse'](_0x56adb2['diffData'][_0x312008]['insertions'])),_0x579405=this['editor']['editing']['view']['document'],_0x4ee23c=new _0x55075a(_0x579405,_0x4a34d9['map'](_0x1d86ae=>C(_0x1d86ae,this['editor'])));this['editor']['data']['processor']['useFillerType']('marked'),_0x1811d5[_0x312008]=this['editor']['data']['processor']['toData'](_0x4ee23c),this['editor']['data']['processor']['useFillerType']('default');}return _0x1811d5;}async['getRevisionRootsAttributes'](_0x5125d1){await this['_loadRevisionData'](_0x5125d1);const _0x32b2c6={};for(const _0x48c01a in _0x5125d1['diffData'])_0x5125d1['diffData'][_0x48c01a]['attachChange']&&!_0x5125d1['diffData'][_0x48c01a]['attachChange']['isAttached']||(_0x32b2c6[_0x48c01a]=_0x5125d1['diffData'][_0x48c01a]['attributesAfter']||{});return _0x32b2c6;}['sendBufferedUpdates'](){if(0x0===this['_bufferedUpdates']['size'])return;if(this['_isPendingUpdate'])return;let _0x431fc9=Array['from'](this['_bufferedUpdates']['values']());this['_bufferedUpdates']['clear']();for(let _0x4b9f88=0x0;_0x4b9f88<_0x431fc9['length'];_0x4b9f88++){const _0x56b35=_0x431fc9[_0x4b9f88];let _0x3c7c4e=!0x1;for(const _0x29d574 of Object['keys'](_0x56b35))void 0x0===_0x56b35[_0x29d574]?delete _0x56b35[_0x29d574]:'id'!==_0x29d574&&(_0x3c7c4e=!0x0);_0x3c7c4e||(_0x431fc9[_0x4b9f88]=null);}if(_0x431fc9=_0x431fc9['filter'](_0x2003fe=>null!==_0x2003fe),!_0x431fc9['length'])return;for(let _0x3ce5ca=0x0;_0x3ce5ca<_0x431fc9['length'];_0x3ce5ca++){const _0x481383=_0x431fc9[_0x3ce5ca];void 0x0!==_0x481383['fromVersion']&&void 0x0===_0x481383['toVersion']&&(_0x481383['toVersion']=this['repository']['getRevision'](_0x481383['id'])['toVersion']),void 0x0!==_0x481383['toVersion']&&void 0x0===_0x481383['fromVersion']&&(_0x481383['fromVersion']=this['repository']['getRevision'](_0x481383['id'])['fromVersion']);}const _0x1a783d=this['editor']['config']['get']('collaboration.channelId');this['_isPendingUpdate']=!0x0,this['_addPendingAction'](),this['adapter']['updateRevisions'](_0x431fc9,_0x1a783d)['finally'](()=>{this['_isPendingUpdate']=!0x1;})['then'](_0x6f93b4=>{if(_0x6f93b4){for(const _0x2842be of _0x6f93b4)this['setRevisionData']({'id':_0x2842be['id'],'createdAt':_0x2842be['createdAt']});}this['_removePendingAction'](),this['sendBufferedUpdates']();});}['_replaceEditorDataWithRevisionData'](_0x3fe870,_0x169983){let _0x57f405=this['editor']['config']['get']('initialData'),_0x1d8fe8=this['editor']['config']['get']('rootsAttributes');if(void 0x0===_0x57f405){_0x57f405={};for(const _0x1aac2e of this['editor']['model']['document']['getRootNames']())_0x57f405[_0x1aac2e]='';}if('string'==typeof _0x57f405&&(_0x57f405={'main':_0x57f405}),void 0x0===_0x1d8fe8){_0x1d8fe8={};for(const _0x1d8092 of this['editor']['model']['document']['getRootNames']())_0x1d8fe8[_0x1d8092]={};}let _0x348f84=!0x1;const _0x30c77b=Object['keys'](_0x57f405),_0x29a224=Object['keys'](_0x3fe870);for(const _0x31121b of _0x30c77b){if(_0x57f405[_0x31121b]!==_0x3fe870[_0x31121b]&&''!==_0x57f405[_0x31121b]['trim']()){_0x348f84=!0x0;break;}if(!_0x34171c(_0x1d8fe8[_0x31121b],_0x169983[_0x31121b])&&Object['keys'](_0x1d8fe8[_0x31121b])['length']>0x0){_0x348f84=!0x0;break;}}_0x348f84||(_0x348f84=_0x29a224['some'](_0x498358=>!this['editor']['model']['document']['getRoot'](_0x498358))),_0x348f84&&_0x1efadd('editor-initial-data-replaced-with-revision-data',{'editorData':_0x57f405,'editorRootsAttributes':_0x1d8fe8,'revisionData':_0x3fe870,'revisionRootsAttributes':_0x169983}),this['editor']['config']['set']('initialData',_0x3fe870),this['editor']['config']['set']('rootsAttributes',_0x169983);}['_addPendingAction'](){if(!this['_pendingAction']){const _0x1288d4=this['editor']['plugins']['get']('PendingActions');this['_pendingAction']=_0x1288d4['add'](m(this['editor']['locale'],'PENDING_ACTION_REVISION_HISTORY'));}}['_removePendingAction'](){this['_pendingAction']&&(this['editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null);}['_findInsertionIndex'](_0x2e5816){const _0x4a7343=this['repository']['getRevisions']();_0x4a7343['reverse']();let _0xe5101d=0x0;for(;_0xe5101d<_0x4a7343['length'];){const _0x589d32=_0x4a7343[_0xe5101d];if(_0x589d32===this['currentRevision']){_0xe5101d++;continue;}if(_0x589d32['id']===this['_initialRevisionId'])break;const _0x1aea76=_0x2e5816['toVersion']-_0x589d32['toVersion']||_0x2e5816['fromVersion']-_0x589d32['fromVersion'];if(_0x1aea76>0x0)break;if(_0x1aea76<0x0)_0xe5101d++;else{if(!_0x2e5816['creator']&&_0x589d32['creator'])break;if(_0x589d32['creator']||!_0x2e5816['creator']){if(_0x2e5816['createdAt']>_0x589d32['createdAt'])break;_0xe5101d++;}else _0xe5101d++;}}return _0xe5101d;}['setRevisionData'](_0x5bbb89){const _0x2c49ef=this['repository']['getRevision'](_0x5bbb89['id']);if(_0x5bbb89['createdAt']&&(_0x5bbb89['createdAt']=new Date(_0x5bbb89['createdAt'])),_0x5bbb89['authorsIds']){const _0x324033=this['editor']['plugins']['get']('Users');_0x5bbb89['authors']=_0x5bbb89['authorsIds']['map'](_0x3cd0d5=>_0x324033['getUser'](_0x3cd0d5));}_0x2c49ef['_update'](_0x5bbb89,!0x0);}['buildRevisionData']({revision:_0x4939d6=null,from:_0x5df236=null,to:_0x338b8c=null}){_0x5df236=null!==_0x5df236?_0x5df236:_0x4939d6['fromVersion'],_0x338b8c=null!==_0x338b8c?_0x338b8c:_0x4939d6['toVersion'];const _0x4d2036=this['_revisionDataBuilder']['getData'](_0x5df236,_0x338b8c),_0x3a649f={'diffData':_0x4d2036['diffData'],'authorsIds':_0x4d2036['authorsIds'],'fromVersion':_0x5df236,'toVersion':_0x338b8c};if(!_0x4939d6||_0x338b8c!==_0x4939d6['toVersion']){const _0xff8cf2=_0x338b8c-0x1,_0xfc73ed=this['_source']['history']['getOperation'](_0xff8cf2);_0x3a649f['createdAt']=_0xfc73ed&&_0xfc73ed['createdAt']||new Date();}if(this['_loadedStateData']&&_0x5df236===this['_loadedStateData']['fromVersion']){for(const _0x233c3e of this['_loadedStateData']['authors'])_0x3a649f['authorsIds']['includes'](_0x233c3e['id'])||_0x3a649f['authorsIds']['push'](_0x233c3e['id']);}return _0x3a649f;}['_loadRevisionData'](_0x395ade){if(!_0x395ade||_0x395ade['diffData'])return Promise['resolve']();{const _0x57a8d1=this['editor']['config']['get']('collaboration.channelId');return this['adapter']['getRevision']({'channelId':_0x57a8d1,'revisionId':_0x395ade['id']})['then'](_0x33861c=>{_0x395ade['diffData']=_0x33861c['diffData'];});}}['_bufferUpdate'](_0x4aa38f,_0x1e407f,_0x21bbea){if(this['_bufferedUpdates']['has'](_0x4aa38f)){const _0xb0cfec=this['_bufferedUpdates']['get'](_0x4aa38f);_0x1e407f=_0x21bbea?{..._0xb0cfec,..._0x1e407f}:{..._0x1e407f,..._0xb0cfec};}this['_bufferedUpdates']['set'](_0x4aa38f,_0x1e407f);}['_getFromVersion'](_0x1f514e){const _0xbe6081=this['repository']['getRevisions']();_0xbe6081['reverse'](),_0xbe6081['shift']();const _0x382e13=_0xbe6081['find'](_0x42feae=>_0x42feae['toVersion']<=_0x1f514e)['toVersion'];return _0x382e13<this['_startingVersion']?this['_startingVersion']:_0x382e13;}['_createInitialRevision'](_0x5c5342){const _0x275f73=this['repository']['getRevision'](this['repository']['length']-0x1);if(_0x275f73)this['_initialRevisionId']=_0x275f73['id'];else{const _0x2fc04b=!this['editor']['model']['document']['roots']['find'](_0x53ab55=>this['editor']['model']['hasContent'](_0x53ab55)),_0x29fe6c=this['editor']['plugins']['get']('Users')['me']['id'],_0x29bb4b=m(this['editor']['locale'],_0x2fc04b?'Empty\x20document':'Initial\x20revision');this['_makeRevision']({'from':_0x5c5342,'to':_0x5c5342,'id':this['_initialRevisionId'],'name':_0x29bb4b,'creatorId':_0x29fe6c});}}['_createCurrentRevision'](_0x18746d){const _0x179e61=this['_source']['getCurrentRevisionId']();this['currentRevision']=this['repository']['getRevision'](_0x179e61),this['currentRevision']||(this['currentRevision']=this['_makeRevision']({'from':_0x18746d,'to':_0x18746d,'id':_0x179e61,'name':'','creatorId':null}));}['_makeRevision']({name:_0xdef2e4,from:_0x201fed,to:_0x4eca9a,creatorId:_0x50f022,id:_0x5905b2}){const _0xc0a31d=this['buildRevisionData']({'from':_0x201fed,'to':_0x4eca9a});_0xc0a31d['name']=_0xdef2e4,_0xc0a31d['creatorId']=_0x50f022,_0xc0a31d['id']=_0x5905b2;const _0x28a5dd=this['addRevisionData'](_0xc0a31d);return this['adapter']&&this['_bufferUpdate'](_0xc0a31d['id'],_0xc0a31d,!0x0),_0x28a5dd;}['_setConversion'](){this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'});}['_removeRevisionMarkers'](_0x16ee59){return(_0x16ee59=_0x16ee59['filter'](_0x2ceca7=>!_0x2ceca7['name']||'revision-start'!==_0x2ceca7['name']&&'revision-end'!==_0x2ceca7['name']))['forEach'](_0x3b946b=>{'string'!=typeof _0x3b946b&&(_0x3b946b['children']=this['_removeRevisionMarkers'](_0x3b946b['children']),_0x3b946b['attributes']=_0x3b946b['attributes']['filter'](_0x25d21e=>!_0x25d21e[0x0]['startsWith']('data-revision-')));}),_0x16ee59;}}function C(_0x12060f,_0x4a2c78){const _0x57c5ea=_0x4a2c78['editing']['view']['document'];if('string'==typeof _0x12060f)return new _0x2180c9(_0x57c5ea,_0x12060f);{const _0x44ed17=_0x12060f['children']['map'](_0x1ca6e2=>C(_0x1ca6e2,_0x4a2c78));return new(P[_0x12060f['type']]||_0x56877a)(_0x57c5ea,_0x12060f['name'],_0x12060f['attributes'],_0x44ed17);}}class V{['editor'];['source'];['_savedMetaData'];['_lastFrom'];['_lastTo'];['_markers'];['_diffRoots'];['_diffRootsAttributes'];['_baseRoots'];['_baseRootsAttributes'];['_idsRoots'];['_baseIdsRoots'];['_touched'];['_touchedMarkers'];['_touchedRoots'];['_revisionId'];['_startingRevisionId'];constructor(_0x1f8d3e){this['editor']=_0x1f8d3e,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'](_0x2d58ee){this['source']=_0x2d58ee;const _0xc79ac1=new Map(),_0x1bf6e2=new Map(),_0x1348af=this['editor']['model']['document']['roots']['map'](_0x5c37aa=>_0x5c37aa['rootName']);for(const _0x45fc80 of _0x1348af){const _0x5e0092=this['editor']['model']['document']['getRoot'](_0x45fc80),_0x511bb4=T(_0x5e0092);_0xc79ac1['set'](_0x45fc80,_0x511bb4),_0x1bf6e2['set'](_0x45fc80,Object['fromEntries'](_0x5e0092['getAttributes']()));}const _0x862950=Array['from'](this['editor']['model']['markers'])['map'](_0x3dc51a=>[_0x3dc51a['name'],_0x3dc51a['getRange']()]),_0x2fbfc1=this['source']['version'];this['_saveMetaData'](_0x2fbfc1,_0xc79ac1,_0x862950,_0x1bf6e2),this['_startingRevisionId']=this['_revisionId'];const _0x4c5991=new Map(),_0x4e5b1b=new Map();for(const _0x541992 of _0x1348af){const _0x116747=F(_0x541992);_0x4c5991['set'](_0x541992,_0x116747),_0x4e5b1b['set'](_0x541992,{});}this['_saveMetaData'](Number['NEGATIVE_INFINITY'],_0x4c5991,[],_0x4e5b1b);}['getData'](_0xfc30a5,_0x27a0ce){if(this['_lastFrom']===_0xfc30a5&&this['_lastTo']<=_0x27a0ce)this['_savedMetaData']['size']>0x1&&this['_removeMetaData'](this['_lastTo']),this['_applyOperations'](this['_lastTo'],_0x27a0ce,!0x0);else{if(!this['_savedMetaData']['has'](_0xfc30a5)){const _0x935b70=this['_getPreviousFrom'](_0xfc30a5);this['_calculateMetaData'](_0x935b70,_0xfc30a5,!0x1);}this['_calculateMetaData'](_0xfc30a5,_0x27a0ce,!0x0);}return this['_lastFrom']=_0xfc30a5,this['_lastTo']=_0x27a0ce,this['_getState']();}['loadState'](_0x15908f){this['_reset'](),this['_lastFrom']=_0x15908f['fromVersion'],this['_lastTo']=_0x15908f['toVersion'];for(const _0x216a92 in _0x15908f['diffData']){const _0x21a29d=_0x15908f['diffData'][_0x216a92]['attachChange'],_0x559390=_0x22a529(_0x15908f['diffData'][_0x216a92]['attributesBefore'])||{},_0x36f100=this['_makeModelFromViewString'](_0x15908f['diffData'][_0x216a92]['deletions']);_0x36f100['rootName']=_0x216a92,_0x36f100['_isAttached']=!_0x21a29d||!_0x21a29d['isAttached'],_0x36f100['isAttached']=()=>_0x36f100['_isAttached'],this['_baseRoots']['set'](_0x216a92,_0x36f100),this['_baseRootsAttributes']['set'](_0x216a92,_0x559390),_0x21a29d&&this['_touchedRoots']['set'](_0x216a92,_0x21a29d);const _0x443663=this['_makeIdsRoot'](_0x36f100);this['_baseIdsRoots']['set'](_0x216a92,_0x443663);for(const [_0x2d89ab,_0xf3a37a]of _0x36f100['markers']){if(!_0x2d89ab['startsWith']('revision:'))continue;const _0x5dcdaa=_0x2d89ab['split'](':')[0x2];for(const _0xe69130 of _0xf3a37a['getWalker']({'singleCharacters':!0x0})){const _0x4405ff=this['_getVidAttributeName'](_0xe69130),_0x325ecb='elementEnd'==_0xe69130['type']?_0xe69130['previousPosition']['path']['slice'](0x0,-0x1):_0xe69130['previousPosition']['path'],_0x5ad1cd=_0x443663['getNodeByPath'](_0x325ecb)['getAttribute'](_0x4405ff);this['_touched']['set'](_0x5ad1cd,{'userId':_0x5dcdaa});}}}this['_startingRevisionId']=this['_revisionId'];const _0x4eb8ac=[...Array(this['_revisionId'])['keys']()]['slice'](0x1)['filter'](_0x14bfcd=>!this['_touched']['has'](_0x14bfcd));let _0x4d1b47=0x0;const _0x1c0c86=new Map();for(const _0x242ae6 in _0x15908f['diffData']){const _0x4f8a0f=_0x15908f['diffData'][_0x242ae6]['attachChange'],_0x374ccf=_0x22a529(_0x15908f['diffData'][_0x242ae6]['attributesAfter'])||{},_0x122e1d=this['_makeModelFromViewString'](_0x15908f['diffData'][_0x242ae6]['insertions']);_0x122e1d['rootName']=_0x242ae6,_0x122e1d['_isAttached']=!_0x4f8a0f||_0x4f8a0f['isAttached'],_0x122e1d['isAttached']=()=>_0x122e1d['_isAttached'],this['_diffRoots']['set'](_0x242ae6,_0x122e1d),this['_diffRootsAttributes']['set'](_0x242ae6,_0x374ccf);const _0x201ac4=this['_makeIdsRoot'](_0x122e1d,Number['NEGATIVE_INFINITY']);this['_idsRoots']['set'](_0x242ae6,_0x201ac4),_0x1c0c86['set'](_0x242ae6,_0x122e1d['isAttached']()?_0x374ccf:{});for(const [_0xbe9a14,_0x25eed0]of _0x122e1d['markers']){if(!_0xbe9a14['startsWith']('revision:'))continue;const _0x1e8a8f=_0xbe9a14['split'](':')[0x2];for(const _0x5580d7 of _0x25eed0['getWalker']({'singleCharacters':!0x0})){const _0x5ea6be=this['_getVidAttributeName'](_0x5580d7),_0x42117a=this['_revisionId']++,_0x331162='elementEnd'==_0x5580d7['type']?_0x5580d7['previousPosition']['path']['slice'](0x0,-0x1):_0x5580d7['previousPosition']['path'];_0x201ac4['getNodeByPath'](_0x331162)['_setAttribute'](_0x5ea6be,_0x42117a),this['_touched']['set'](_0x42117a,{'userId':_0x1e8a8f});}}for(const _0x2a6d06 of this['editor']['model']['createRangeIn'](_0x122e1d)['getWalker']({'singleCharacters':!0x0})){const _0x27f003=this['_getVidAttributeName'](_0x2a6d06),_0x2ab221='elementEnd'==_0x2a6d06['type']?_0x2a6d06['previousPosition']['path']['slice'](0x0,-0x1):_0x2a6d06['previousPosition']['path'],_0x4f17b1=_0x201ac4['getNodeByPath'](_0x2ab221);_0x4f17b1['getAttribute'](_0x27f003)>0x0||_0x4f17b1['_setAttribute'](_0x27f003,_0x4eb8ac[_0x4d1b47++]);}for(const [_0xde1a6a,_0x2a5560]of _0x122e1d['markers'])_0xde1a6a['startsWith']('revision:')||this['_markers']['set'](_0xde1a6a,_0x2a5560);}const _0x505d57=F('$graveyard');this['_baseRoots']['set']('$graveyard',_0x505d57),this['_baseIdsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x505d57,0x1));const _0xc0ed9a=F('$graveyard');this['_diffRoots']['set']('$graveyard',_0xc0ed9a),this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0xc0ed9a,0x1));const _0x28eb6e=Array['from'](this['_diffRoots'])['map'](([_0x569768,_0x32e7ff])=>[_0x569768,T(_0x32e7ff)]);this['_saveMetaData'](this['_lastTo'],_0x28eb6e,this['_markers'],_0x1c0c86);}['_makeModelFromViewString'](_0x13a78e){const _0x3b449c=JSON['parse'](_0x13a78e),_0x55c259=this['editor']['editing']['view']['document'],_0x5737a8=new _0x55075a(_0x55c259,_0x3b449c['map'](_0xed6b16=>C(_0xed6b16,this['editor'])));return this['editor']['data']['toModel'](_0x5737a8);}['_saveMetaData'](_0x21c09f,_0x502870,_0x2e2f68,_0x6b074d){const _0x47cd7a=new Map(_0x502870),_0x274e48=new Map(_0x22a529(_0x6b074d)),_0xe45358=new Map();for(const [_0x291a99,_0x5cfd7b]of _0x2e2f68)_0xe45358['set'](_0x291a99,{'start':_0x5cfd7b['start']['clone'](),'end':_0x5cfd7b['end']['clone'](),'rootName':_0x5cfd7b['root']['rootName']});this['_savedMetaData']['set'](_0x21c09f,{'roots':_0x47cd7a,'markers':_0xe45358,'rootsAttributes':_0x274e48});}['_removeMetaData'](_0x53552d){this['_savedMetaData']['delete'](_0x53552d);}['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'](_0x3c0645,_0x956d33=null){let _0x31ad76=null;_0x3c0645['is']('documentFragment')||(_0x31ad76=new ft(_0x3c0645['name'],{'vid_start':null===_0x956d33?this['_revisionId']++:_0x956d33++}));const _0x18a4a9=[];for(const _0x18b2c4 of _0x3c0645['getChildren']())if(_0x18b2c4['is']('element')){_0x18a4a9['push'](this['_makeIdsRoot'](_0x18b2c4,_0x956d33));const _0x5b1f1f=_0x18a4a9[_0x18a4a9['length']-0x1];null!==_0x956d33&&(_0x956d33=_0x5b1f1f['is']('element','$text')?_0x5b1f1f['getAttribute']('vid')+0x1:_0x5b1f1f['getAttribute']('vid_end')+0x1);}else{for(let _0x1d7174=0x0;_0x1d7174<_0x18b2c4['offsetSize'];_0x1d7174++)_0x18a4a9['push'](new ft('$text',{'vid':null===_0x956d33?this['_revisionId']++:_0x956d33++}));}if(_0x3c0645['is']('documentFragment')){const _0x435829=F(_0x3c0645['rootName']);return _0x435829['_insertChild'](0x0,_0x18a4a9),_0x435829;}return _0x31ad76['_setAttribute']('vid_end',null===_0x956d33?this['_revisionId']++:_0x956d33++),_0x31ad76['_insertChild'](0x0,_0x18a4a9),_0x31ad76;}['_calculateMetaData'](_0x66f589,_0x3e65de,_0xa8979c){this['_reset']();const {roots:_0x3be660,markers:_0x19bd39,rootsAttributes:_0x400645}=this['_savedMetaData']['get'](_0x66f589);this['_baseRoots']=new Map(_0x3be660),this['_baseRootsAttributes']=new Map(_0x22a529(_0x400645));for(const [_0x340e6a,_0x1236fc]of this['_baseRoots'])if('$graveyard'!==_0x340e6a&&(this['_diffRoots']['set'](_0x340e6a,T(_0x1236fc)),this['_diffRootsAttributes']=new Map(_0x22a529(_0x400645)),_0xa8979c)){const _0x1c2c2b=this['_revisionId'];this['_idsRoots']['set'](_0x340e6a,this['_makeIdsRoot'](_0x1236fc)),this['_baseIdsRoots']['set'](_0x340e6a,this['_makeIdsRoot'](_0x1236fc,_0x1c2c2b));}this['_startingRevisionId']=this['_revisionId'],this['_diffRoots']['set']('$graveyard',T(this['_baseRoots']['get']('$graveyard'))),_0xa8979c&&this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](this['_baseRoots']['get']('$graveyard')));for(const [_0x33542c,_0x49de2e]of _0x19bd39){const _0x57224c=this['_baseRoots']['get'](_0x49de2e['rootName']),_0x27d304=this['_diffRoots']['get'](_0x49de2e['rootName']),_0x681dd9=new vt(this['_fixPosition'](_0x49de2e['start'],_0x57224c),this['_fixPosition'](_0x49de2e['end'],_0x57224c)),_0x42524e=this['_fixRange'](_0x681dd9,_0x27d304);_0x57224c['markers']['set'](_0x33542c,_0x681dd9),this['_markers']['set'](_0x33542c,_0x42524e);}this['_applyOperations'](_0x66f589,_0x3e65de,_0xa8979c);}['_applyOperations'](_0xb95522,_0x5e0e5d,_0x39295a){for(const _0x1f9967 of this['source']['getOperations'](_0xb95522,_0x5e0e5d))this['_handleOperation'](_0x1f9967,_0x39295a);for(const _0x2a24d4 of this['_diffRoots']['values']())_0x2a24d4['markers']['clear']();for(const [_0x41ec4b,_0x5763ba]of this['_markers']){this['_diffRoots']['get'](_0x5763ba['root']['rootName'])['markers']['set'](_0x41ec4b,_0x5763ba['clone']());}const _0x35a70d=new Map(),_0x45f276=new Map();for(const [_0x261fd2,_0x39d08c]of this['_diffRoots'])_0x35a70d['set'](_0x261fd2,T(_0x39d08c)),_0x45f276['set'](_0x261fd2,this['_diffRootsAttributes']['get'](_0x261fd2));this['_saveMetaData'](_0x5e0e5d,_0x35a70d,this['_markers'],_0x45f276);}['_getPreviousFrom'](_0x4e716e){const _0x59dd6d=Array['from'](this['_savedMetaData']['keys']());_0x59dd6d['sort']((_0x48f033,_0x2eee20)=>_0x48f033-_0x2eee20),_0x59dd6d['reverse']();for(const _0x297c79 of _0x59dd6d)if(_0x297c79<_0x4e716e)return _0x297c79;return Number['NEGATIVE_INFINITY'];}['_copyMarkers'](_0x3d5f20,_0x2c7508){const _0x23b077=Array['from'](_0x2c7508['markers'])['map'](([_0x1ea403,_0xb78c95])=>[_0x1ea403,this['_fixRange'](_0xb78c95,_0x3d5f20)]);_0x3d5f20['markers']=new Map(_0x23b077);}['_transformMarkers'](_0x28be72){for(const _0x55a022 of this['_markers']['values']()){const _0x64a04f=_0x55a022['getTransformedByOperation'](_0x28be72),_0x2df53b=vt['_createFromRanges'](_0x64a04f);_0x55a022['start']=_0x2df53b['start'],_0x55a022['end']=_0x2df53b['end'];}}['_handleOperation'](_0xf73b1e,_0x42b29b){if('addRoot'!=_0xf73b1e['type']&&'detachRoot'!=_0xf73b1e['type']){if('insert'==_0xf73b1e['type']){const _0x4af61d=_0xf73b1e['position']['root']['rootName'];this['_diffRoots']['has'](_0x4af61d)||(this['_diffRoots']['set'](_0x4af61d,F(_0x4af61d,!0x0)),this['_diffRootsAttributes']['set'](_0x4af61d,{}),_0x42b29b&&this['_idsRoots']['set'](_0x4af61d,F(_0x4af61d,!0x0)));}else{if('addRootAttribute'==_0xf73b1e['type']||'removeRootAttribute'==_0xf73b1e['type']||'changeRootAttribute'==_0xf73b1e['type'])return void this['_handleRootAttributeOperation'](_0xf73b1e);'marker'==_0xf73b1e['type']&&this['_handleMarkerOperation'](_0xf73b1e);}if('marker'!==_0xf73b1e['type']){const _0x56fa67=this['_cloneOperation'](_0xf73b1e,this['_diffRoots']);_0x56fa67['_execute'](),this['_transformMarkers'](_0x56fa67);}if(_0x42b29b)switch(_0xf73b1e['type']){case'insert':this['_handleInsertOperation'](_0xf73b1e);break;case'move':case'remove':case'reinsert':this['_handleMoveOperation'](_0xf73b1e);break;case'merge':this['_handleMergeOperation'](_0xf73b1e);break;case'split':this['_handleSplitOperation'](_0xf73b1e);}}else this['_handleRootOperation'](_0xf73b1e,_0x42b29b);}['_cloneOperation'](_0x50da82,_0x43f393){const _0x5e3701=_0x50da82['clone']();return _0x5e3701['_authorId']=_0x50da82['_authorId'],this['_fixOperation'](_0x5e3701,_0x43f393),_0x5e3701;}['_getBaseVids'](_0x2b07dc){return _0x2b07dc['map'](_0x2f24f9=>{const _0x46ab1c=this['_getVidAttributeName'](_0x2f24f9);return Number(_0x2f24f9['item']['getAttribute'](_0x46ab1c));});}['_generateTape'](_0x4225db,_0x1bd63a){if(_0x4225db['is']('element','$text'))_0x1bd63a['push']({'item':_0x4225db,'type':'text'});else{_0x4225db['is']('element')&&_0x1bd63a['push']({'item':_0x4225db,'type':'elementStart'});for(const _0x2d579a of _0x4225db['getChildren']())this['_generateTape'](_0x2d579a,_0x1bd63a);_0x4225db['is']('element')&&_0x1bd63a['push']({'item':_0x4225db,'type':'elementEnd'});}return _0x1bd63a;}['_getState'](){const _0x4ef2ca=new Map(this['_touched']),_0xe48b4e=new Map(_0x4ef2ca),_0x4e1cc7=new Map(),_0x52faa4={'insertions':{},'deletions':{}},_0x58b07c={'insertions':{},'deletions':{}},_0x59ba05=new Map(),_0x160788=new Set([...this['_baseRoots']['keys'](),...this['_diffRoots']['keys']()]);_0x160788['delete']('$graveyard');for(const _0x59d74e of _0x160788){const _0x142f1c=this['_diffRoots']['get'](_0x59d74e)||F(_0x59d74e,!0x1),_0x54ae74=this['_baseRoots']['get'](_0x59d74e)||F(_0x59d74e,!0x1);_0x142f1c['isAttached']()||_0x54ae74['isAttached']()?(_0x52faa4['insertions'][_0x59d74e]=T(_0x142f1c),_0x52faa4['deletions'][_0x59d74e]=T(_0x54ae74),this['_copyMarkers'](_0x52faa4['deletions'][_0x59d74e],_0x54ae74),this['_copyMarkers'](_0x52faa4['insertions'][_0x59d74e],_0x142f1c),_0x58b07c['insertions'][_0x59d74e]=this['_generateTape'](this['_idsRoots']['get'](_0x59d74e),[]),_0x58b07c['deletions'][_0x59d74e]=this['_generateTape'](this['_baseIdsRoots']['get'](_0x59d74e)||F(_0x59d74e,!0x1),[])):_0x160788['delete'](_0x59d74e);}for(const _0x1ad626 of _0x160788){const _0x11ae7f=_0x58b07c['insertions'][_0x1ad626];for(const _0x36b496 of _0x11ae7f){const _0x5968e2=this['_getVidAttributeName'](_0x36b496),_0x526fd1=_0x36b496['item']['getAttribute'](_0x5968e2);_0xe48b4e['delete'](_0x526fd1),_0x526fd1>=this['_startingRevisionId']&&_0x4e1cc7['set'](_0x526fd1,_0x4ef2ca['get'](_0x526fd1));}}for(const _0x3f4883 of _0x160788){const _0x1a641a=_0x58b07c['insertions'][_0x3f4883],_0x3a0879=this['_getBaseVids'](_0x58b07c['deletions'][_0x3f4883]);let _0x2e6b00=0x0;for(const _0x533f60 of _0x1a641a){const _0x3665e8=this['_getVidAttributeName'](_0x533f60),_0x11bc44=_0x533f60['item']['getAttribute'](_0x3665e8);if(!_0x4e1cc7['has'](_0x11bc44)&&!_0x59ba05['has'](_0x11bc44)){if(_0xe48b4e['has'](_0x11bc44))_0x2e6b00++;else{if(_0x11bc44!=_0x3a0879[_0x2e6b00]){const _0x1a8397=_0x4ef2ca['get'](_0x11bc44)||_0x4ef2ca['get'](_0x3a0879[_0x2e6b00]);for(;_0x11bc44!=_0x3a0879[_0x2e6b00];)_0xe48b4e['has'](_0x3a0879[_0x2e6b00])||(_0x59ba05['set'](_0x3a0879[_0x2e6b00],_0x1a8397),_0x4ef2ca['set'](_0x3a0879[_0x2e6b00],_0x1a8397)),_0x2e6b00++;}_0x2e6b00++;}}}}for(const _0x1b332e of _0x160788){const _0x3644cc=_0x58b07c['insertions'][_0x1b332e];for(const _0x4df64b of _0x3644cc){const _0x55dbc7=this['_getVidAttributeName'](_0x4df64b),_0x39782c=_0x4df64b['item']['getAttribute'](_0x55dbc7);if(_0x59ba05['has'](_0x39782c)){const _0x563cc4=_0x59ba05['get'](_0x39782c);_0xe48b4e['has'](_0x39782c)||_0xe48b4e['set'](_0x39782c,{..._0x563cc4}),_0x4e1cc7['set'](_0x39782c,{..._0x563cc4});}}}for(const _0x487a00 of _0xe48b4e['keys']())_0x487a00>=this['_startingRevisionId']&&_0xe48b4e['delete'](_0x487a00);const _0x54bfcc=new Map();for(const _0xe0c36c of _0x160788){let _0x26e4ec=_0x58b07c['insertions'][_0xe0c36c];for(const _0x1e445a of _0x26e4ec)if(_0x1e445a['item']['is']('element','tableCell')){const _0x48bb4a=this['_getVidAttributeName'](_0x1e445a),_0x15270a=_0x1e445a['item']['getAttribute'](_0x48bb4a);if(_0x4e1cc7['has'](_0x15270a)){const _0x1a4b41=_0x1e445a['item']['parent']['parent']['getAttribute']('vid_start'),_0xb3139b=_0x54bfcc['get'](_0x1a4b41)||new Set();_0xb3139b['add'](_0x4e1cc7['get'](_0x15270a)['userId']),_0x54bfcc['set'](_0x1a4b41,_0xb3139b);}}_0x26e4ec=_0x58b07c['deletions'][_0xe0c36c];for(const _0x5f1b72 of _0x26e4ec)if(_0x5f1b72['item']['is']('element','tableCell')){const _0x40ac15=this['_getVidAttributeName'](_0x5f1b72),_0x2f6b28=_0x5f1b72['item']['getAttribute'](_0x40ac15);if(_0xe48b4e['has'](_0x2f6b28)){const _0x254d46=_0x5f1b72['item']['parent']['parent']['getAttribute']('vid_start'),_0x3939bd=_0x54bfcc['get'](_0x254d46)||new Set();_0x3939bd['add'](_0xe48b4e['get'](_0x2f6b28)['userId']),_0x54bfcc['set'](_0x254d46,_0x3939bd);}}for(const _0xc6dcd4 of _0x54bfcc['keys']())(_0x4e1cc7['has'](_0xc6dcd4)||_0xe48b4e['has'](_0xc6dcd4))&&_0x54bfcc['delete'](_0xc6dcd4);}for(const _0x46db26 of _0x160788){const _0x24ffca=_0x58b07c['insertions'][_0x46db26];let _0x1608cd=null,_0x1de8e5=null;for(const _0x7c05be of _0x24ffca){const _0x4888e3=this['_getVidAttributeName'](_0x7c05be),_0x3f0644=_0x7c05be['item']['getAttribute'](_0x4888e3),_0x43d3e4=_0x54bfcc['get'](_0x3f0644);_0x43d3e4&&'elementStart'==_0x7c05be['type']&&(_0x1608cd=Array['from'](_0x43d3e4)[0x0],_0x1de8e5=_0x7c05be['item']['getAttribute']('vid_end')),_0x1608cd&&(_0xe48b4e['set'](_0x3f0644,{'userId':_0x1608cd}),_0x4e1cc7['set'](_0x3f0644,{'userId':_0x1608cd})),_0x3f0644==_0x1de8e5&&(_0x1608cd=null,_0x1de8e5=null);}}const _0x3f3e65={},_0x3d1f7a=new Set();for(const _0x2c021a of _0x160788){const _0x4910fd=_0x52faa4['deletions'][_0x2c021a],_0x471d0e=_0x52faa4['insertions'][_0x2c021a];for(const {userId:_0xe702d4}of this['_touchedMarkers']['values']())null!==_0xe702d4&&_0x3d1f7a['add'](_0xe702d4);for(const {userId:_0x2336de}of this['_touchedRoots']['values']())null!==_0x2336de&&_0x3d1f7a['add'](_0x2336de);this['_markChanges'](_0x471d0e,_0x58b07c['insertions'][_0x2c021a],_0x4e1cc7,'insertion',_0x3d1f7a),this['_markChanges'](_0x4910fd,_0x58b07c['deletions'][_0x2c021a],_0xe48b4e,'deletion',_0x3d1f7a),_0x3f3e65[_0x2c021a]={'insertions':this['_prepareViewToSave'](_0x471d0e),'deletions':this['_prepareViewToSave'](_0x4910fd),'attachChange':this['_touchedRoots']['get'](_0x2c021a)||null,'attributesBefore':_0x22a529(this['_baseRootsAttributes']['get'](_0x2c021a))||{},'attributesAfter':_0x22a529(this['_diffRootsAttributes']['get'](_0x2c021a))};}return{'diffData':_0x3f3e65,'authorsIds':Array['from'](_0x3d1f7a)};}['_processRootBeforeSave'](_0x41f9d3){for(const [,_0xb706bb]of _0x41f9d3['markers']){const _0x182423=_0xb706bb['start']['getAncestors']()['filter'](_0x57ddcf=>'tableCell'==_0x57ddcf['name']);for(const _0x1b56f7 of _0x182423)0x1==_0x1b56f7['childCount']&&_0x1b56f7['getChild'](0x0)['is']('element','paragraph')&&_0x1b56f7['getChild'](0x0)['_setAttribute']('keepParagraph',!0x0);}}['_prepareViewToSave'](_0xe91d77){this['_processRootBeforeSave'](_0xe91d77);const _0x36cef4=this['editor']['data']['toView'](_0xe91d77,{}),_0x17bb6e=Array['from'](_0x36cef4['getChildren']())['map'](_0x3b2486=>this['_getViewJson'](_0x3b2486));return JSON['stringify'](_0x17bb6e);}['_getViewJson'](_0x43a819){if(_0x43a819['is']('$text'))return _0x43a819['data'];{const _0x840cf9=_0x43a819;return{'type':Object['keys'](P)['find'](_0x4d9f7d=>_0x43a819 instanceof P[_0x4d9f7d]),'name':_0x840cf9['name'],'attributes':Array['from'](_0x840cf9['getAttributes']()),'children':Array['from'](_0x840cf9['getChildren']())['map'](_0x23eae8=>this['_getViewJson'](_0x23eae8))};}}['_markChanges'](_0x2d58a3,_0x24030c,_0xa980d0,_0x1386e5,_0x4d77ba){let _0x4b727e=null,_0x2db33f=null,_0x1934d9=0x0;const _0x123f64=this['editor']['model'];for(let _0x35ed6c=0x0;_0x35ed6c<_0x24030c['length'];_0x35ed6c++){const _0x5f255b=this['_getVidAttributeName'](_0x24030c[_0x35ed6c]),_0x4379c2=_0x24030c[_0x35ed6c]['item']['getAttribute'](_0x5f255b),_0x25b844=_0xa980d0['get'](_0x4379c2),_0x340023=_0x35ed6c==_0x24030c['length']-0x1;(!_0x4b727e&&_0x25b844&&(_0x4b727e=_0x25b844,_0x2db33f=_0x24030c[_0x35ed6c]),_0x4b727e&&(!_0x25b844||_0x25b844['userId']!=_0x4b727e['userId']))&&(_0x36ef59(_0x25b844,B(_0x2db33f,_0x2d58a3,_0x123f64),B(_0x24030c[_0x35ed6c],_0x2d58a3,_0x123f64)),_0x4b727e=_0x25b844||null,_0x2db33f=_0x25b844?_0x24030c[_0x35ed6c]:null),_0x4b727e&&_0x340023&&_0x36ef59(_0x25b844,B(_0x2db33f,_0x2d58a3,_0x123f64),J(_0x24030c[_0x35ed6c],_0x2d58a3,_0x123f64));}function _0x36ef59(_0x18fc01,_0x4431a1,_0x4dbb36){const _0x1e0b81=_0x4b727e['userId'],_0x337cb4='revision:'+_0x1386e5+':'+_0x1e0b81+':'+_0x1934d9++,_0x451e37=_0x123f64['createRange'](_0x4431a1,_0x4dbb36);_0x2d58a3['markers']['set'](_0x337cb4,_0x451e37),null!==_0x1e0b81&&_0x4d77ba['add'](_0x1e0b81);}}['_getVidAttributeName'](_0x2f1482){switch(_0x2f1482['type']){case'elementStart':return'vid_start';case'elementEnd':return'vid_end';default:return'vid';}}['_fixOperation'](_0x376f3c,_0x1d0f99){_0x376f3c['baseVersion']=null;for(const _0x358051 in _0x376f3c){const _0x2c5c22=_0x376f3c[_0x358051];if(_0x2c5c22 instanceof gt){const _0x1cde4c=_0x1d0f99['get'](_0x2c5c22['root']['rootName']);_0x376f3c[_0x358051]=this['_fixPosition'](_0x2c5c22,_0x1cde4c);}if(_0x2c5c22 instanceof vt){const _0x143d60=_0x1d0f99['get'](_0x2c5c22['root']['rootName']);_0x376f3c[_0x358051]=this['_fixRange'](_0x2c5c22,_0x143d60);}'root'===_0x358051&&(_0x376f3c['root']=_0x1d0f99['get'](_0x376f3c['root']['rootName']));}}['_fixRange'](_0x2eefad,_0x3d464b){return this['editor']['model']['createRange'](this['_fixPosition'](_0x2eefad['start'],_0x3d464b),this['_fixPosition'](_0x2eefad['end'],_0x3d464b));}['_fixPosition'](_0x36d724,_0x36159f){return this['editor']['model']['createPositionFromPath'](_0x36159f,_0x36d724['path'],_0x36d724['stickiness']);}['_handleInsertOperation'](_0x49da6c){const _0x385bc9=this['_idsRoots']['get'](_0x49da6c['position']['root']['rootName']),_0x3c7b87=this['_fixPosition'](_0x49da6c['position'],_0x385bc9),_0x5b27ab=null===_0x49da6c['_authorId']?null:_0x49da6c['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x24b372=_0x3c7b87['parent'],_0x5dbe80=this['_revisionId'],_0x31efd9=[];for(const _0x462a05 of _0x49da6c['nodes'])if(_0x462a05['is']('element'))_0x31efd9['push'](this['_makeIdsRoot'](_0x462a05));else{for(let _0x326cca=0x0;_0x326cca<_0x462a05['offsetSize'];_0x326cca++)_0x31efd9['push'](new ft('$text',{'vid':this['_revisionId']++}));}const _0x3cf0e7=this['_revisionId'];for(let _0xf7fc0d=_0x5dbe80;_0xf7fc0d<_0x3cf0e7;_0xf7fc0d++)this['_touched']['set'](_0xf7fc0d,{'userId':_0x5b27ab});_0x24b372['_insertChild'](_0x3c7b87['offset'],_0x31efd9);}['_handleMoveOperation'](_0x30091f){(_0x30091f=this['_cloneOperation'](_0x30091f,this['_idsRoots']))['_execute']();const _0x59a0b6=null===_0x30091f['_authorId']?null:_0x30091f['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x32fa90=_0x30091f['getMovedRangeStart'](),_0x184f35=_0x32fa90['parent'],_0x1b975c=_0x32fa90['offset'];!function _0x1ee765(_0x354893,_0x1406ff,_0x9fa8e,_0x31b520){for(let _0x444861=_0x9fa8e;_0x444861<_0x31b520;_0x444861++){const _0x45c0e6=_0x1406ff['getChild'](_0x444861);_0x45c0e6['is']('element','$text')?_0x354893['set'](_0x45c0e6['getAttribute']('vid'),{'userId':_0x59a0b6}):(_0x354893['set'](_0x45c0e6['getAttribute']('vid_start'),{'userId':_0x59a0b6}),_0x1ee765(_0x354893,_0x45c0e6,0x0,_0x45c0e6['childCount']),_0x354893['set'](_0x45c0e6['getAttribute']('vid_end'),{'userId':_0x59a0b6}));}}(this['_touched'],_0x184f35,_0x1b975c,_0x1b975c+_0x30091f['howMany']);}['_handleMergeOperation'](_0x576b0b){const _0x110722=null===(_0x576b0b=this['_cloneOperation'](_0x576b0b,this['_idsRoots']))['_authorId']?null:_0x576b0b['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x2e8d95=_0x576b0b['targetPosition']['parent'],_0x4c0b3b=_0x576b0b['sourcePosition']['parent'],_0x4c0038=_0x2e8d95['getAttribute']('vid_end'),_0x23d920=_0x4c0b3b['getAttribute']('vid_start');_0x2e8d95['_setAttribute']('vid_end',_0x4c0b3b['getAttribute']('vid_end')),_0x4c0b3b['_setAttribute']('vid_end',_0x4c0038),this['_touched']['set'](_0x23d920,{'userId':_0x110722}),this['_touched']['set'](_0x4c0038,{'userId':_0x110722}),_0x576b0b['_execute']();}['_handleSplitOperation'](_0x454f32){const _0x148296=null===(_0x454f32=this['_cloneOperation'](_0x454f32,this['_idsRoots']))['_authorId']?null:_0x454f32['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x3b7168=_0x454f32['graveyardPosition'],_0x3632fb=_0x454f32['splitPosition']['parent'];_0x454f32['_execute']();const _0xda94d1=_0x3632fb['getAttribute']('vid_end'),_0x3c654d=_0x454f32['insertionPosition']['nodeAfter'];if(_0x3b7168){const _0x1db93f=_0x3c654d['getAttribute']('vid_end'),_0x1e5111=_0x3632fb['getAttribute']('vid_end');_0x3632fb['_setAttribute']('vid_end',_0x1db93f),_0x3c654d['_setAttribute']('vid_end',_0x1e5111),this['_touched']['set'](_0x3632fb['getAttribute']('vid_end'),{'userId':_0x148296}),this['_touched']['set'](_0x3c654d['getAttribute']('vid_start'),{'userId':_0x148296});}else{const _0x3e9ded=this['_revisionId']++,_0x52a43a=this['_revisionId']++;_0x3632fb['_setAttribute']('vid_end',_0x3e9ded),_0x3c654d['_setAttribute']('vid_start',_0x52a43a),_0x3c654d['_setAttribute']('vid_end',_0xda94d1),this['_touched']['set'](_0x3e9ded,{'userId':_0x148296}),this['_touched']['set'](_0x52a43a,{'userId':_0x148296});}}['_handleMarkerOperation'](_0x57e94b){if(!_0x57e94b['affectsData'])return;const _0x4f742d=(_0x57e94b=this['_cloneOperation'](_0x57e94b,this['_diffRoots']))['oldRange']?_0x57e94b['oldRange']['root']:null,_0x42a31d=_0x57e94b['newRange']?_0x57e94b['newRange']['root']:null;_0x4f742d&&this['_markers']['delete'](_0x57e94b['name']),_0x42a31d&&this['_markers']['set'](_0x57e94b['name'],_0x57e94b['newRange']['clone']());const _0x376d28=null===_0x57e94b['_authorId']?null:_0x57e94b['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x3c74d4=_0x57e94b['name'];if(!this['_touchedMarkers']['has'](_0x3c74d4))return void this['_touchedMarkers']['set'](_0x3c74d4,{'range':_0x57e94b['oldRange'],'userId':_0x376d28});const _0x8111ff=this['_touchedMarkers']['get'](_0x3c74d4),_0x455983=_0x8111ff['range'],_0x2fc70c=_0x57e94b['newRange'];null==_0x455983&&null==_0x2fc70c||_0x455983&&_0x2fc70c&&_0x455983['isEqual'](_0x2fc70c)?this['_touchedMarkers']['delete'](_0x57e94b['name']):_0x8111ff['userId']=_0x376d28;}['_handleRootOperation'](_0x4a3291,_0x3f8f76){this['_diffRoots']['has'](_0x4a3291['rootName'])?this['_diffRoots']['get'](_0x4a3291['rootName'])['_isAttached']=_0x4a3291['isAdd']:(this['_diffRoots']['set'](_0x4a3291['rootName'],F(_0x4a3291['rootName'],!0x0)),this['_diffRootsAttributes']['set'](_0x4a3291['rootName'],{}),_0x3f8f76&&this['_idsRoots']['set'](_0x4a3291['rootName'],F(_0x4a3291['rootName'],!0x0)));const _0x320390=null===_0x4a3291['_authorId']?null:_0x4a3291['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x24cf70=this['_touchedRoots']['get'](_0x4a3291['rootName']);_0x24cf70&&_0x24cf70['userId']===_0x320390?this['_touchedRoots']['delete'](_0x4a3291['rootName']):this['_touchedRoots']['set'](_0x4a3291['rootName'],{'userId':_0x320390,'isAttached':_0x4a3291['isAdd']});}['_handleRootAttributeOperation'](_0x22eae7){const _0x5ea937=this['_diffRootsAttributes']['get'](_0x22eae7['root']['rootName']);null===_0x22eae7['newValue']?delete _0x5ea937[_0x22eae7['key']]:_0x5ea937[_0x22eae7['key']]=_0x22eae7['newValue'];}}function T(_0x12ff03){const _0x593fbc=F(_0x12ff03['rootName'],_0x12ff03['isAttached']());for(const _0x3fc9ab of _0x12ff03['getChildren']()){const _0x585726=_0x3fc9ab['_clone'](!0x0);_0x593fbc['_appendChild'](_0x585726);}return _0x593fbc;}function F(_0x569e79,_0x24b876=!0x0){const _0x43f51b=new mt();return _0x43f51b['rootName']=_0x569e79,_0x43f51b['_isAttached']=_0x24b876,_0x43f51b['isAttached']=()=>_0x43f51b['_isAttached'],_0x43f51b;}function B(_0x564b06,_0x4a9b81,_0x4e3801){const _0x3b8059='elementEnd'==_0x564b06['type']?_0x4e3801['createPositionAt'](_0x564b06['item'],'end'):_0x4e3801['createPositionBefore'](_0x564b06['item']);return _0x4e3801['createPositionFromPath'](_0x4a9b81,_0x3b8059['path'],_0x3b8059['stickiness']);}function J(_0x3d50aa,_0x289ed1,_0x28c897){const _0x52cb02='elementStart'==_0x3d50aa['type']?_0x28c897['createPositionAt'](_0x3d50aa['item'],0x0):_0x28c897['createPositionAfter'](_0x3d50aa['item']);return _0x28c897['createPositionFromPath'](_0x289ed1,_0x52cb02['path'],_0x52cb02['stickiness']);}class hs extends _0x3f9662{['focusTracker'];['keystrokes'];['revisionNameInputView'];constructor(_0x53b0f3,_0x18987b){super(_0x53b0f3),this['focusTracker']=new _0xfc2138(),this['keystrokes']=new _0x214bde(),this['set']('revisionNameInputValue',''),this['revisionNameInputView']=this['_createRevisionNameInput'](_0x18987b),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'](),_0x3a02e8({'view':this}),this['focusTracker']['add'](this['revisionNameInputView']['element']),this['keystrokes']['listenTo'](this['element']);const _0xff8311=_0x46269b=>_0x46269b['stopPropagation']();this['keystrokes']['set']('arrowright',_0xff8311),this['keystrokes']['set']('arrowleft',_0xff8311),this['keystrokes']['set']('arrowup',_0xff8311),this['keystrokes']['set']('arrowdown',_0xff8311);}['focus'](){this['revisionNameInputView']['focus']();}get['revisionName'](){return this['revisionNameInputView']['fieldView']['element']['value']['trim']();}set['revisionName'](_0x29824d){this['revisionNameInputView']['fieldView']['element']['value']=_0x29824d['trim']();}['reset'](){this['revisionNameInputView']['fieldView']['element']['value']='',this['revisionNameInputView']['errorText']=null;}['_createRevisionNameInput'](_0x179edd){const _0x1c0bec=new nt(this['locale'],_0x2ea866),_0x1a33d6=_0x1c0bec['fieldView'];_0x1a33d6['extendTemplate']({'attributes':{'maxlength':'220'}});let _0xfbbd32=m(this['locale'],'Name\x20of\x20the\x20revision');return!_0x179edd&&(_0xfbbd32+='\x20('+m(this['locale'],'optional')+')'),(_0x1c0bec['label']=_0xfbbd32,_0x1a33d6['on']('input',()=>{this['revisionNameInputValue']=_0x1a33d6['element']['value']['trim']();}),_0x1c0bec);}}class u extends _0x2c3b67{static get['pluginName'](){return'RevisionHistoryUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[l];}['_saveRevisionFormView'];['init'](){const _0x319735=this['editor'],_0x5e0190=_0x319735['plugins']['get']('RevisionTracker');_0x319735['ui']['componentFactory']['add']('revisionHistory',_0x5d7cde=>{const _0x2fe214=_0x101d38(_0x5d7cde),_0xb6dc=_0x2fe214['panelView']['children'],_0x362f87=new _0x4edeac(_0x5d7cde),_0x166b50=new _0x387430(_0x5d7cde),_0x384295=new _0x48eb6b(_0x5d7cde),_0x257847=new _0x387430(_0x5d7cde),_0x364626=new _0x48eb6b(_0x5d7cde);return _0x2fe214['bind']('isEnabled')['to'](_0x5e0190,'isReady',_0x5e0190,'isEnabled',_0x319735,'isReadOnly',(_0x387e99,_0x3002f9,_0x3b40db)=>_0x387e99&&_0x3002f9&&!_0x3b40db),_0x2fe214['buttonView']['set']({'icon':_0xc8c67c['history'],'label':m(_0x5d7cde,'Revision\x20history'),'tooltip':!0x0}),_0x384295['set']({'label':m(_0x5d7cde,'Save\x20current\x20revision'),'withText':!0x0,'role':'menuitem'}),_0x384295['bind']('isEnabled')['to'](_0x5e0190,'isReady',_0x5e0190,'isEnabled',_0x319735,'isReadOnly',(_0xc321d8,_0xddb128,_0x360e24)=>_0xc321d8&&_0xddb128&&!_0x360e24),_0x384295['on']('execute',()=>this['_showDialog']()),_0x364626['set']({'label':m(_0x5d7cde,'Open\x20revision\x20history'),'withText':!0x0,'role':'menuitem'}),_0x364626['bind']('isEnabled')['to'](_0x5e0190,'isReady',_0x319735,'isReadOnly',(_0x410361,_0x3a96d5)=>_0x410361&&!_0x3a96d5),_0x364626['on']('execute',()=>{_0x319735['config']['get']('revisionHistory')['showRevisionViewerCallback'](),_0x2fe214['isOpen']=!0x1,_0x319735['editing']['view']['focus']();}),_0x166b50['children']['add'](_0x384295),_0x257847['children']['add'](_0x364626),_0x362f87['role']='menu',_0x362f87['items']['addMany']([_0x166b50,_0x257847]),_0xb6dc['add'](_0x362f87),_0x2fe214;}),_0x319735['ui']['componentFactory']['add']('menuBar:revisionHistory',()=>this['_registerMenuComponent']());}['_registerMenuComponent'](){const _0x24e3ce=this['editor'],_0xbbf324=_0x24e3ce['locale'],_0x49f93f=new _0x29e1ba(_0xbbf324),_0x150838=new _0x455f57(_0xbbf324);_0x49f93f['buttonView']['set']({'icon':_0xc8c67c['history'],'label':m(_0xbbf324,'Revision\x20history')});const _0x985038=new _0x46b0c4(_0xbbf324,_0x49f93f),_0x38a8ed=new _0x2953a6(_0xbbf324);_0x38a8ed['set']({'label':m(_0xbbf324,'Save\x20current\x20revision')}),_0x38a8ed['delegate']('execute')['to'](_0x49f93f),_0x38a8ed['on']('execute',()=>{this['_showDialog']();}),_0x985038['children']['add'](_0x38a8ed),_0x150838['items']['add'](_0x985038);const _0x83eccc=new _0x46b0c4(_0xbbf324,_0x49f93f),_0x435f24=new _0x2953a6(_0xbbf324);return _0x435f24['set']({'label':m(_0xbbf324,'Open\x20revision\x20history')}),_0x435f24['delegate']('execute')['to'](_0x49f93f),_0x435f24['on']('execute',()=>{_0x24e3ce['config']['get']('revisionHistory')['showRevisionViewerCallback']();}),_0x83eccc['children']['add'](_0x435f24),_0x150838['items']['add'](_0x83eccc),_0x49f93f['panelView']['children']['add'](_0x150838),_0x49f93f;}['_showDialog'](){const _0x41a3a2=this['editor'],_0x39d33d=_0x41a3a2['locale'],_0x33f92a=_0x41a3a2['plugins']['get']('Dialog'),_0x1212a6=_0x41a3a2['plugins']['get']('RevisionTracker');function _0x3149d3(_0x198b41){_0x41a3a2['config']['get']('revisionHistory.requireRevisionName')&&''===_0x198b41['revisionName']?_0x198b41['revisionNameInputView']['errorText']=m(_0x39d33d,'The\x20revision\x20name\x20cannot\x20be\x20empty.'):(_0x41a3a2['plugins']['get'](l)['saveRevision']({'name':_0x198b41['revisionName']}),_0x33f92a['hide']());}this['_saveRevisionFormView']||(this['_createSaveRevisionFormView'](),this['_saveRevisionFormView']['on']('submit',()=>_0x3149d3(this['_saveRevisionFormView']))),this['_saveRevisionFormView']['reset'](),_0x33f92a['show']({'id':'revisionSave','title':m(_0x39d33d,'Save\x20current\x20revision'),'isModal':!0x0,'content':this['_saveRevisionFormView'],'actionButtons':[{'label':m(_0x41a3a2['locale'],'Cancel'),'withText':!0x0,'onExecute':()=>_0x33f92a['hide']()},{'label':m(_0x41a3a2['locale'],'Accept'),'class':'ck-button-action','withText':!0x0,'onCreate'(_0x19b500){_0x19b500['bind']('isEnabled')['to'](_0x1212a6,'isReady',_0x1212a6,'isEnabled',_0x41a3a2,'isReadOnly',(_0x50d276,_0x46dab8,_0x525263)=>_0x50d276&&_0x46dab8&&!_0x525263);},'onExecute':()=>_0x3149d3(this['_saveRevisionFormView'])}]});}['_createSaveRevisionFormView'](){const _0x446f5e=this['editor'],_0x114eb0=_0x446f5e['locale'];this['_saveRevisionFormView']=new hs(_0x114eb0,_0x446f5e['config']['get']('revisionHistory.requireRevisionName')),this['_saveRevisionFormView']['render']();}}class X extends _0x3f9662{['changeId'];['_model'];constructor(_0x14cc73,_0x583828){super(_0x14cc73),this['_model']=_0x583828,this['changeId']=_0x583828['id'];const _0x4d4683=this['bindTemplate'],_0x176e59=m(_0x14cc73,_0x583828['data']['isSuggestion']?'Suggested\x20by':'add'==_0x583828['type']?'Added\x20by':'Removed\x20by');this['set']('type',_0x583828['type']),this['setTemplate']({'tag':'div','attributes':{'class':['ck-annotation','ck-revision-change',_0x4d4683['to']('type',_0x518cc1=>'ck-revision-change__'+_0x518cc1)],'tabindex':-0x1},'children':[{'tag':'span','children':[{'tag':'span','attributes':{'class':['ck-revision-change__label']},'children':[{'text':_0x176e59}]},{'text':'\x20'+_0x583828['author']['name']}]}]});}['focus'](){this['element']['focus']();}}class r extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0x53a54d(){['id'];['author'];['type'];['data'];['rootName'];constructor(_0x4a043e){super(),this['id']=_0x4a043e['id']||_0x1de89c(),this['author']=_0x4a043e['author'],this['type']=_0x4a043e['type'],this['data']=_0x4a043e['data']||{},this['rootName']=_0x4a043e['rootName'],this['set']('createdAt',_0x4a043e['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(_0x2c9774,_0x19cc7e){this['newRevisionId']=_0x2c9774,this['oldRevisionId']=_0x19cc7e,this['changes']=new _0x1c28b8();}['_setChanges'](_0x49c65e){for(const _0x32652b of _0x49c65e)this['changes']['add'](_0x32652b);}}const Y={'c':_0x2e423a,'a':_0x3e768e,'e':_0x4bbed6,'r':_0x11737c,'u':_0x549e14};class d extends _0x2c3b67{['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[_0x588a40,_0x24fceb,j];}constructor(_0x13ff7b){super(_0x13ff7b),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',(_0x423d29,_0x426b9d,_0x5cf148)=>{this['activeChange']=null,this['activeView']=null,this['editor']['editing']['view']['change'](_0x4b830f=>{for(const _0x13fca3 of this['editor']['editing']['view']['document']['roots'])_0x5cf148?_0x4b830f['removeClass']('ck-editor__editable__overlay',_0x13fca3):_0x4b830f['addClass']('ck-editor__editable__overlay',_0x13fca3);});}),this['bind']('isNavigationMode')['to'](this,'activeChange',_0x508c96=>null!==_0x508c96),this['bind']('currentChangeNumber')['to'](this,'isReady',this,'diff',this,'activeChange',(_0x3144b4,_0x19cdec,_0x2c50b3)=>_0x3144b4&&_0x2c50b3?_0x19cdec['changes']['getIndex'](_0x2c50b3):0x0),this['bind']('numberOfChanges')['to'](this,'isReady',this,'diff',(_0x4a48b3,_0x272b1c)=>_0x4a48b3?_0x272b1c['changes']['length']:0x0),this['_changeView']=null,this['_changeIdToChange']=new Map(),this['adapter']=null,this['_balloon']=this['editor']['plugins']['get'](_0x24fceb);}['init'](){const _0x1bf6e3=this['editor'],_0x1f5c68=new yt(_0x1bf6e3,{'direction':'backward'}),_0x18bbb2=new yt(_0x1bf6e3,{'direction':'forward'});(_0x1bf6e3['commands']['add']('showPreviousChange',_0x1f5c68),_0x1bf6e3['commands']['add']('showNextChange',_0x18bbb2),_0x1bf6e3['commands']['add']('restoreRevision',new _t(_0x1bf6e3)),this['on']('change:numberOfChanges',()=>{_0x1f5c68['refresh'](),_0x18bbb2['refresh']();}),this['_setConversion'](),this['_initInteractions'](),_0x1bf6e3['enableReadOnlyMode']('revision-viewer'),_0x1bf6e3['plugins']['has']('WidgetToolbarRepository'))&&_0x1bf6e3['plugins']['get']('WidgetToolbarRepository')['forceDisabled']('revision-viewer');}async['getRevisionData'](_0x2c3006){await this['loadRevisionData'](_0x2c3006);const _0x556287={};for(const _0x38205d in _0x2c3006['diffData']){if(_0x2c3006['diffData'][_0x38205d]['attachChange']&&!_0x2c3006['diffData'][_0x38205d]['attachChange']['isAttached'])continue;const _0x435893=this['_removeRevisionMarkers'](JSON['parse'](_0x2c3006['diffData'][_0x38205d]['insertions'])),_0x4c1b09=this['editor']['editing']['view']['document'],_0x3a0b58=new _0x55075a(_0x4c1b09,_0x435893['map'](_0x4f95d6=>this['_getViewObj'](_0x4f95d6)));this['editor']['data']['processor']['useFillerType']('marked'),_0x556287[_0x38205d]=this['editor']['data']['processor']['toData'](_0x3a0b58),this['editor']['data']['processor']['useFillerType']('default');}return _0x556287;}async['getRevisionRootsAttributes'](_0x27841a){await this['loadRevisionData'](_0x27841a);const _0x10005d={};for(const _0x5d68b9 in _0x27841a['diffData'])_0x27841a['diffData'][_0x5d68b9]['attachChange']&&!_0x27841a['diffData'][_0x5d68b9]['attachChange']['isAttached']||(_0x10005d[_0x5d68b9]=_0x27841a['diffData'][_0x5d68b9]['attributesAfter']||{});return _0x10005d;}['_removeRevisionMarkers'](_0x27df44){return(_0x27df44=_0x27df44['filter'](_0x6c840=>!_0x6c840['name']||'revision-start'!==_0x6c840['name']&&'revision-end'!==_0x6c840['name']))['forEach'](_0xb8bc70=>{'string'!=typeof _0xb8bc70&&(_0xb8bc70['children']=this['_removeRevisionMarkers'](_0xb8bc70['children']),_0xb8bc70['attributes']=_0xb8bc70['attributes']['filter'](_0x55d581=>!_0x55d581[0x0]['startsWith']('data-revision-')));}),_0x27df44;}async['compare'](_0x1b48cf,_0x28ecf3,_0x4a26b6=!0x1){if(!this['isEnabled'])return;const _0x1ce442=this['diff'],_0x20e6a5=this['repository'],_0x5be02a='string'==typeof _0x1b48cf?_0x20e6a5['getRevision'](_0x1b48cf):_0x1b48cf,_0x2da442='string'==typeof _0x28ecf3?_0x20e6a5['getRevision'](_0x28ecf3):_0x28ecf3,_0x4605ae=_0x5be02a['id'],_0x479233=_0x2da442?_0x2da442['id']:null;if(!_0x4a26b6&&this['diff']&&this['diff']['newRevisionId']===_0x4605ae&&this['diff']['oldRevisionId']===_0x479233)return Promise['resolve']();this['isReady']=!0x1,this['activeView']=null,this['activeChange']=null,this['diff']=new f(_0x4605ae,_0x479233);const _0x1c2862=this['_getRevisionsRange'](_0x5be02a,_0x2da442,!0x0)['map'](_0xa2e34b=>this['loadRevisionData'](_0xa2e34b));return _0x1c2862['push'](new Promise(_0x367716=>{setTimeout(_0x367716,0x14);})),Promise['all'](_0x1c2862)['then'](()=>{if(!this['isEnabled'])return;this['_cleanUp']();const _0x5f0f04=this['_getDiff'](_0x4605ae,_0x479233);for(const _0x4dcf10 of _0x5f0f04['changes'])this['_changeIdToChange']['set'](_0x4dcf10['id'],_0x4dcf10);this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x55a9de=>{for(const _0xfc36b3 of this['editor']['model']['document']['getRootNames']())_0x55a9de['detachRoot'](_0xfc36b3);for(const _0x38d198 of Object['keys'](_0x5f0f04['model'])){const _0x1288ca=_0x55a9de['addRoot'](_0x38d198);for(const _0x458c8e of Object['keys'](_0x5f0f04['attributes'][_0x38d198]))_0x55a9de['setAttribute'](_0x458c8e,_0x5f0f04['attributes'][_0x38d198][_0x458c8e],_0x1288ca);_0x55a9de['insert'](_0x5f0f04['model'][_0x38d198],_0x1288ca,0x0);}}),this['diff']['_setChanges'](this['_sortAndFilterDiffChanges'](_0x5f0f04['changes'])),this['isReady']=!0x0;})['catch'](_0x466b45=>{console['error'](_0x466b45),this['_cleanUp'](),_0x1ce442&&(this['diff']=_0x1ce442),this['isReady']=!0x0;});}['addRevisionData'](_0xb1bce4,_0x358ff6){const _0x2d7a3c=this['repository']['createRevision'](_0xb1bce4);return _0x2d7a3c['on']('_update',(_0x56c60a,_0x48e995,_0x1b89b6)=>_0x358ff6(_0x48e995,_0x1b89b6,_0x2d7a3c)),this['repository']['addRevision'](_0x2d7a3c),_0x2d7a3c;}['loadRevisionData'](_0x223b03){if(!_0x223b03||_0x223b03['diffData'])return Promise['resolve']();{const _0x27d2e8=this['editor']['config']['get']('collaboration.channelId');return this['adapter']['getRevision']({'channelId':_0x27d2e8,'revisionId':_0x223b03['id']})['then'](_0x34f4aa=>{_0x223b03['_update']({'diffData':_0x34f4aa['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},_0x32f034=>{for(const _0x2f212a of this['editor']['model']['document']['getRootNames']())_0x32f034['detachRoot'](_0x2f212a);});}['_sortAndFilterDiffChanges'](_0x2f1668){const _0x5dc89a=[],_0x4204e3=new Map();for(const _0x2072ce of this['editor']['model']['document']['getRootNames']()){const _0x585afe=this['editor']['editing']['view']['getDomRoot'](_0x2072ce);if(!_0x585afe)continue;const _0x1e24f7=_0x585afe['getClientRects']()['item'](0x0);_0x1e24f7&&(_0x5dc89a['push'](_0x2072ce),_0x4204e3['set'](_0x2072ce,_0x1e24f7));}return _0x5dc89a['sort']((_0xf8fb51,_0x4fe805)=>{const _0x302539=_0x4204e3['get'](_0xf8fb51),_0x4e056f=_0x4204e3['get'](_0x4fe805);return _0x302539['y']-_0x4e056f['y']||_0x302539['x']-_0x4e056f['x'];}),(_0x2f1668=_0x2f1668['filter'](_0x142c7f=>_0x5dc89a['includes'](_0x142c7f['rootName'])))['sort']((_0x5ddcfd,_0x51893a)=>_0x5dc89a['indexOf'](_0x5ddcfd['rootName'])-_0x5dc89a['indexOf'](_0x51893a['rootName'])),_0x2f1668;}['_makeTape'](_0x3d73cd){const _0x45d18c=Array['from'](_0x3d73cd['markers'])['filter'](([_0x2f5262,_0x3114cd])=>_0x2f5262['startsWith']('revision:')&&!_0x3114cd['isCollapsed']),_0x6ec949=Array['from'](this['editor']['model']['createRangeIn'](_0x3d73cd)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0x45d18c['length'])for(const _0x3e054b of _0x6ec949){const [_0x246426,_0x3c50e9]=_0x45d18c[0x0],[,_0x5e35b1,_0x3cb7a3]=_0x246426['split'](':');if(_0x3c50e9['end']['isEqual'](_0x3e054b['nextPosition'])&&_0x45d18c['shift'](),(_0x3e054b['previousPosition']['isEqual'](_0x3c50e9['start'])||_0x3e054b['previousPosition']['isAfter'](_0x3c50e9['start']))&&('insertion'==_0x5e35b1?_0x3e054b['isAdded']={'userId':_0x3cb7a3}:'deletion'==_0x5e35b1&&(_0x3e054b['isRemoved']={'userId':_0x3cb7a3})),0x0==_0x45d18c['length'])break;}return _0x6ec949;}['_refreshStartEndIndex'](_0x45f0f5){const _0x444f70=new Map();for(let _0x43ee8d=0x0;_0x43ee8d<_0x45f0f5['length'];_0x43ee8d++)'text'===_0x45f0f5[_0x43ee8d]['type']?(_0x45f0f5[_0x43ee8d]['item']['startIndex']=_0x43ee8d,_0x45f0f5[_0x43ee8d]['item']['endIndex']=_0x43ee8d):('elementStart'===_0x45f0f5[_0x43ee8d]['type']?_0x45f0f5[_0x43ee8d]['item']['startIndex']=_0x43ee8d:'elementEnd'===_0x45f0f5[_0x43ee8d]['type']&&(_0x45f0f5[_0x43ee8d]['item']['endIndex']=_0x43ee8d),_0x444f70['set'](_0x45f0f5[_0x43ee8d]['id'],_0x43ee8d));for(const _0x368c28 of _0x444f70['values']())'elementStart'===_0x45f0f5[_0x368c28]['type']?_0x45f0f5[_0x368c28]['item']['endIndex']=_0x444f70['get'](_0x45f0f5[_0x368c28]['pairId']):'elementEnd'===_0x45f0f5[_0x368c28]['type']&&(_0x45f0f5[_0x368c28]['item']['startIndex']=_0x444f70['get'](_0x45f0f5[_0x368c28]['pairId']));}['_processTape'](_0x12ee79){for(let _0x4e3b4b=0x0;_0x4e3b4b<_0x12ee79['length'];_0x4e3b4b++){if('elementStart'===_0x12ee79[_0x4e3b4b]['type'])_0x12ee79[_0x4e3b4b]['item']['startIndex']=_0x4e3b4b;else{if('elementEnd'===_0x12ee79[_0x4e3b4b]['type']){_0x12ee79[_0x4e3b4b]['item']['endIndex']=_0x4e3b4b;const _0x32d74a=_0x12ee79[_0x4e3b4b]['item']['startIndex'];_0x12ee79[_0x32d74a]['pairId']=_0x12ee79[_0x4e3b4b]['id'],_0x12ee79[_0x4e3b4b]['pairId']=_0x12ee79[_0x32d74a]['id'];}else _0x12ee79[_0x4e3b4b]['item']['startIndex']=_0x4e3b4b,_0x12ee79[_0x4e3b4b]['item']['endIndex']=_0x4e3b4b,_0x12ee79[_0x4e3b4b]['pairId']=null;}_0x12ee79[_0x4e3b4b]['markersStart']||(_0x12ee79[_0x4e3b4b]['markersStart']=[],_0x12ee79[_0x4e3b4b]['markersEnd']=[]);}}['_markInsertions'](_0x228fff,_0x107163){const _0x4b0cf0=_0x228fff['filter'](_0x39e46f=>!_0x39e46f['isAdded']);for(let _0x5af751=0x0;_0x5af751<_0x107163['length'];_0x5af751++)_0x107163[_0x5af751]['isAdded']&&(_0x4b0cf0[_0x5af751]['isAdded']=_0x107163[_0x5af751]['isAdded']);}['_makeModelFromViewString'](_0x50df77){const _0x3a0355=JSON['parse'](_0x50df77),_0x2085dc=this['editor']['editing']['view']['document'],_0x72fcf1=new _0x55075a(_0x2085dc,_0x3a0355['map'](_0x4b8fe3=>this['_getViewObj'](_0x4b8fe3)));return this['editor']['data']['toModel'](_0x72fcf1);}['_getViewObj'](_0x3a1854){const _0x363598=this['editor']['editing']['view']['document'];if('string'==typeof _0x3a1854)return new _0x2180c9(_0x363598,_0x3a1854);{const _0x14f18b=_0x3a1854['children']['map'](_0x30dba7=>this['_getViewObj'](_0x30dba7));return new(Y[_0x3a1854['type']]||_0x56877a)(_0x363598,_0x3a1854['name'],_0x3a1854['attributes'],_0x14f18b);}}['_getDiff'](_0x265c01,_0x57ab12=null){const _0x387495=this['repository']['getRevision'](_0x265c01),_0x17b84b=_0x57ab12?this['repository']['getRevision'](_0x57ab12):null,_0x12a6fb=this['_getRevisionsRange'](_0x387495,_0x17b84b),_0x2071e8=_0x12a6fb[_0x12a6fb['length']-0x1],_0x197fab=new Map(),_0x4e13bc={'model':{},'attributes':{},'changes':[]},_0x1ff48e=new Set(),_0x20f77f=new Map();for(let _0x14402c=_0x12a6fb['length']-0x1;_0x14402c>=0x0;_0x14402c--){const _0x402d1c=_0x12a6fb[_0x14402c];for(const _0xa775f9 of Object['keys'](_0x402d1c['diffData']))if(_0x402d1c['diffData'][_0xa775f9]['attachChange']){const _0x53ae48=_0x402d1c['diffData'][_0xa775f9]['attachChange'];_0x53ae48['isAttached']?(_0x1ff48e['add'](_0xa775f9),_0x20f77f['has'](_0xa775f9)&&_0x20f77f['get'](_0xa775f9)['userId']==_0x53ae48['userId']?_0x20f77f['delete'](_0xa775f9):_0x20f77f['set'](_0xa775f9,_0x53ae48)):_0x20f77f['has'](_0xa775f9)?(_0x1ff48e['delete'](_0xa775f9),_0x20f77f['delete'](_0xa775f9)):(_0x1ff48e['add'](_0xa775f9),_0x20f77f['set'](_0xa775f9,_0x53ae48));}else _0x1ff48e['add'](_0xa775f9);}for(const _0x57271a of _0x1ff48e){const _0x20c0bd=_0x20f77f['has'](_0x57271a)&&!_0x20f77f['get'](_0x57271a)['isAttached'];let _0x1eb5b9=_0x20c0bd?_0x12a6fb['length']-0x1:0x0;const _0x50ad50=_0x20c0bd?-0x1:0x1;for(;_0x12a6fb[_0x1eb5b9];){const _0x4d2b08=_0x12a6fb[_0x1eb5b9];if(_0x4d2b08['diffData'][_0x57271a]){const _0x19b1b5=_0x20c0bd?_0x4d2b08['diffData'][_0x57271a]['attributesBefore']:_0x4d2b08['diffData'][_0x57271a]['attributesAfter'];_0x4e13bc['attributes'][_0x57271a]=_0x19b1b5?_0x22a529(_0x19b1b5):{};break;}_0x1eb5b9+=_0x50ad50;}}for(const _0x54205e of _0x12a6fb){_0x54205e['model']={};for(const _0x5e2d73 of _0x54205e['authors'])_0x197fab['set'](_0x5e2d73['id'],_0x5e2d73);for(const _0x385b8a of _0x1ff48e){const _0x211897=_0x54205e['diffData'][_0x385b8a]?_0x54205e['diffData'][_0x385b8a]['insertions']:'[]',_0x247b21=_0x54205e['diffData'][_0x385b8a]?_0x54205e['diffData'][_0x385b8a]['deletions']:'[]';_0x54205e['model'][_0x385b8a]={'insertions':this['_makeModelFromViewString'](_0x211897),'deletions':this['_makeModelFromViewString'](_0x247b21)};}}for(const _0x5276e3 of _0x1ff48e){let _0x5645f0=null,_0x1724e8=0x0;const _0x262cc8=new Map(Array['from'](_0x387495['model'][_0x5276e3]['insertions']['markers'])['filter'](([_0x565d64])=>!_0x565d64['startsWith']('revision:')));let _0x2bd1ab=0x0;for(const _0xea797b of _0x12a6fb){const _0x2fa00c=this['_makeTape'](_0xea797b['model'][_0x5276e3]['insertions']);_0xea797b==_0x387495?(_0x5645f0=_0x2fa00c,_0x1724e8=_0x5645f0['length'],_0x5645f0['forEach'](_0x1e097c=>{_0x1e097c['id']=_0x2bd1ab++;}),this['_processTape'](_0x5645f0)):this['_markInsertions'](_0x5645f0,_0x2fa00c);const _0x5789e3=_0x5645f0['filter'](_0x235673=>!_0x235673['isAdded'])['map'](_0x1ec4d3=>_0x1ec4d3['id']);let _0x4224d7=0x0;const _0x390316=this['_makeTape'](_0xea797b['model'][_0x5276e3]['deletions']);_0x390316['forEach'](_0x4f991f=>{_0x4f991f['isRemoved']?_0x4f991f['id']=_0x1724e8++:_0x4f991f['id']=_0x5789e3[_0x4224d7++];}),this['_processTape'](_0x390316),this['_setDistance'](_0x5645f0,'isAdded'),this['_setDistance'](_0x390316,'isRemoved'),_0xea797b==_0x387495&&this['_markMarkers'](_0x5645f0,_0x262cc8),_0x5645f0=this['_joinTapes'](_0x5645f0,_0x390316),this['_refreshStartEndIndex'](_0x5645f0),this['_setDistance'](_0x5645f0,'isRemoved');}_0x5645f0=_0x5645f0['filter'](_0xf10701=>!(_0xf10701['isAdded']&&_0xf10701['isRemoved']));const _0x3c8996=new Map(_0x2071e8['model'][_0x5276e3]['deletions']['markers']),_0x2312c5=new Set(_0x262cc8['keys']());for(const _0x1ed38f of _0x3c8996['keys']())_0x2312c5['delete'](_0x1ed38f);this['_markSuggestions'](_0x5645f0,_0x2312c5),this['_fixObsoleteTags'](_0x5645f0),_0x5645f0=this['_removeMissingPairs'](_0x5645f0),_0x5645f0=this['_markMismatchedRemovedTags'](_0x5645f0),_0x5645f0=this['_removeUnsupportedChanges'](_0x5645f0);const {root:_0x524f46,changes:_0x3baba9}=this['_makeModelFromTape'](_0x5645f0,_0x197fab,_0x5276e3);_0x4e13bc['model'][_0x5276e3]=_0x524f46;const _0xd35b0e=_0x20f77f['get'](_0x5276e3);if(_0xd35b0e){const _0x3161bf=_0x197fab['get'](_0xd35b0e['userId']),_0x280a31=new r({'author':_0x3161bf,'type':_0xd35b0e['isAttached']?'add':'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x5276e3});_0x3baba9['unshift'](_0x280a31),_0x4e13bc['attributes'][_0x5276e3]['revisionHistoryAttachChange']=_0x280a31['id'];}_0x4e13bc['changes']=_0x4e13bc['changes']['concat'](_0x3baba9);}return _0x4e13bc;}['_markMarkers'](_0x3a00e9,_0x5c4e0b){for(let _0x16f4f8=0x0;_0x16f4f8<_0x3a00e9['length'];_0x16f4f8++)for(const [_0x2fa84a,_0x2f37dc]of _0x5c4e0b)_0x2f37dc['start']['isEqual'](_0x3a00e9[_0x16f4f8]['previousPosition'])&&_0x3a00e9[_0x16f4f8]['markersStart']['push'](_0x2fa84a),_0x2f37dc['end']['isEqual'](_0x3a00e9[_0x16f4f8]['nextPosition'])&&_0x3a00e9[_0x16f4f8]['markersEnd']['push'](_0x2fa84a);}['_joinTapes'](_0x3ad0d9,_0x16670d){let _0xeda15c=[],_0x11722d=0x0,_0x4e25d2=0x0;for(;_0x11722d<_0x3ad0d9['length']||_0x4e25d2<_0x16670d['length'];){const _0x10ff10=_0x3ad0d9[_0x11722d]||{},_0x3e1672=_0x16670d[_0x4e25d2]||{};if(_0x10ff10['id']==_0x3e1672['id'])_0x11722d++,_0x4e25d2++,_0xeda15c['push'](_0x10ff10);else{if(_0x3e1672['isRemoved']&&_0x10ff10['isAdded']){const {commonTape:_0x3ed901,iEnd:_0x5affa0,jEnd:_0x28e657}=this['_threeWayMerge'](_0x3ad0d9,_0x11722d,_0x16670d,_0x4e25d2);_0xeda15c=_0xeda15c['concat'](_0x3ed901),_0x11722d=_0x5affa0,_0x4e25d2=_0x28e657;}else _0x3e1672['isRemoved']?(_0x4e25d2++,_0xeda15c['push'](_0x3e1672)):(_0x11722d++,_0xeda15c['push'](_0x10ff10));}}return _0xeda15c;}['_markSuggestions'](_0x21145c,_0x455794){const _0x4953db=[];for(let _0x333836=0x0;_0x333836<_0x21145c['length'];_0x333836++){for(let _0x2f6b85=0x0;_0x2f6b85<_0x21145c[_0x333836]['markersStart']['length'];_0x2f6b85++){const _0x510096=_0x21145c[_0x333836]['markersStart'][_0x2f6b85];if(!_0x455794['has'](_0x510096))continue;const {group:_0x4ddb16,type:_0x2eb2d3,authorId:_0x1bb52d}=_0x5d807e(_0x510096);'revision-suggestion'!=_0x4ddb16||'insertion'!=_0x2eb2d3&&'deletion'!=_0x2eb2d3||(_0x4953db['unshift']({'type':_0x2eb2d3,'name':_0x510096,'userId':_0x1bb52d}),_0x21145c[_0x333836]['markersStart']['splice'](_0x2f6b85,0x1),_0x2f6b85--);}_0x14cf96(_0x21145c[_0x333836]);for(let _0x780d6a=0x0;_0x780d6a<_0x21145c[_0x333836]['markersEnd']['length'];_0x780d6a++){const _0xa78b05=_0x21145c[_0x333836]['markersEnd'][_0x780d6a];if(!_0x455794['has'](_0xa78b05))continue;const {group:_0x3330f2,type:_0x51cb4a}=_0x5d807e(_0xa78b05);if('revision-suggestion'!=_0x3330f2||'insertion'!=_0x51cb4a&&'deletion'!=_0x51cb4a)continue;_0x21145c[_0x333836]['markersEnd']['splice'](_0x780d6a,0x1),_0x780d6a--;const _0x513c56=_0x4953db['findIndex'](_0x3a66b2=>_0x3a66b2['name']==_0xa78b05);_0x513c56>-0x1&&_0x4953db['splice'](_0x513c56,0x1);}}function _0x5d807e(_0x583e2a){const _0x2ccf38=_0x583e2a['split'](':');return{'group':_0x2ccf38[0x0],'type':_0x2ccf38[0x1],'subType':_0x2ccf38['length']>=0x5?_0x2ccf38[0x2]:null,'id':_0x2ccf38['length']<0x5?_0x2ccf38[0x2]:_0x2ccf38[0x3],'authorId':_0x2ccf38['length']<0x5?_0x2ccf38[0x3]:_0x2ccf38[0x4],'markerCount':0x6==_0x2ccf38['length']?_0x2ccf38[0x5]:null};}function _0x14cf96(_0x455d4b){for(let _0x11e8e6=0x0;_0x11e8e6<_0x4953db['length'];_0x11e8e6++){if(_0x455d4b['isAdded']&&'insertion'==_0x4953db[_0x11e8e6]['type'])return _0x455d4b['isAddSuggestion']=_0x4953db[_0x11e8e6],void delete _0x455d4b['isAdded'];if(!_0x455d4b['isAdded']&&!_0x455d4b['isRemoved']&&'deletion'==_0x4953db[_0x11e8e6]['type'])return void(_0x455d4b['isRemoveSuggestion']=_0x4953db[_0x11e8e6]);}}}['_setDistance'](_0x391aa4,_0x5c9a44){let _0xe65fa5=0x0,_0x5ec20d=!0x1;const _0x4f1f39=new Map();for(const _0x5ff349 of _0x391aa4)_0x5ff349[_0x5c9a44]?_0x5ec20d&&(_0xe65fa5++,_0x5ec20d=!0x1):(_0xe65fa5++,_0x5ec20d=!0x0),_0x4f1f39['set'](_0x5ff349['id'],_0xe65fa5);for(let _0x5802f8=0x0;_0x5802f8<_0x391aa4['length'];_0x5802f8++){if('isRemoved'==_0x5c9a44&&_0x391aa4[_0x5802f8]['isAdded']||'isAdded'==_0x5c9a44&&_0x391aa4[_0x5802f8]['isRemoved'])continue;if('text'==_0x391aa4[_0x5802f8]['type']){_0x391aa4[_0x5802f8]['distance']=0x0;continue;}const _0x51992f=_0x4f1f39['get'](_0x391aa4[_0x5802f8]['pairId']),_0x44bbe6=_0x4f1f39['get'](_0x391aa4[_0x5802f8]['id']);_0x391aa4[_0x5802f8]['distance']=_0x51992f-_0x44bbe6;}}['_getRevisionsRange'](_0x303e4f,_0x5575a8,_0x1da8bf=!0x1){const _0x4cc9e4=[];let _0x4db2eb=this['repository']['getIndex'](_0x303e4f),_0x2a0065=this['repository']['getIndex'](_0x5575a8);for(-0x1==_0x2a0065&&(_0x2a0065=this['repository']['_revisions']['length'],_0x1da8bf=!0x1);_0x4db2eb<_0x2a0065;)_0x4cc9e4['push'](this['repository']['getRevision'](_0x4db2eb)),_0x4db2eb++;return _0x1da8bf&&_0x4cc9e4['push'](this['repository']['getRevision'](_0x4db2eb)),_0x4cc9e4;}['_threeWayMerge'](_0x5a02fd,_0x4db5f0,_0x4a223b,_0x2fb340){const _0x5af95e=this['editor']['model']['schema'];let _0x41e4b6=_0x4db5f0;for(;_0x5a02fd[_0x41e4b6]&&_0x5a02fd[_0x41e4b6]['isAdded'];)_0x41e4b6++;let _0x52251c=_0x2fb340;for(;_0x4a223b[_0x52251c]&&_0x4a223b[_0x52251c]['isRemoved'];)_0x52251c++;_0x2da4b2(_0x5a02fd,_0x4db5f0,_0x41e4b6),_0x2da4b2(_0x4a223b,_0x2fb340,_0x52251c);const _0x2d2c3c=_0x4a223b['slice'](_0x2fb340,_0x52251c)['concat'](_0x5a02fd['slice'](_0x4db5f0,_0x41e4b6));return _0x2d2c3c['sort']((_0x7ee744,_0x163fab)=>_0x7ee744['side']!=_0x163fab['side']?_0x7ee744['side']-_0x163fab['side']:_0x7ee744['level']!=_0x163fab['level']?_0x7ee744['level']-_0x163fab['level']:_0x7ee744['distance']!=_0x163fab['distance']?_0x163fab['distance']-_0x7ee744['distance']:!!_0x7ee744['isAdded']!=!!_0x163fab['isAdded']?-0x1==_0x7ee744['side']||0x0==_0x7ee744['side']?_0x7ee744['isAdded']?-0x1:0x1:_0x7ee744['isAdded']?0x1:-0x1:_0x7ee744['index']-_0x163fab['index']),{'commonTape':_0x2d2c3c,'iEnd':_0x41e4b6,'jEnd':_0x52251c};function _0x2da4b2(_0x5514bd,_0x21be09,_0x7626c8){let _0x249932=-0x1,_0x571823=Number['POSITIVE_INFINITY'],_0x29ba8c=!0x0;for(let _0x158a16=_0x21be09;_0x158a16<_0x7626c8;_0x158a16++)if(_0x5af95e['isInline'](_0x5514bd[_0x158a16]['item'])||(_0x29ba8c=!0x1),_0x5514bd[_0x158a16]['item']['startIndex']<_0x21be09&&(_0x249932=_0x158a16),_0x5514bd[_0x158a16]['item']['endIndex']>=_0x7626c8){_0x571823=_0x158a16;break;}_0x29ba8c&&(_0x249932=_0x7626c8-0x1);for(let _0x3a4a13=_0x21be09;_0x3a4a13<_0x7626c8;_0x3a4a13++)_0x5514bd[_0x3a4a13]['side']=_0x3a4a13<=_0x249932?-0x1:_0x3a4a13<_0x571823?0x0:0x1,_0x5514bd[_0x3a4a13]['index']=_0x3a4a13;let _0x4c5462=0x0;for(let _0x127d57=_0x21be09;_0x127d57<=_0x249932;_0x127d57++)0x0==_0x5514bd[_0x127d57]['distance']?_0x5514bd[_0x127d57]['level']=_0x4c5462:(_0x4c5462++,_0x5514bd[_0x127d57]['level']=_0x4c5462,_0x4c5462++);for(let _0x24fb34=_0x21be09;_0x24fb34<_0x7626c8;_0x24fb34++)0x0==_0x5514bd[_0x24fb34]['side']&&(_0x5514bd[_0x24fb34]['level']=_0x4c5462);_0x4c5462=0x0;for(let _0x4568de=_0x7626c8-0x1;_0x4568de>=_0x571823;_0x4568de--)0x0==_0x5514bd[_0x4568de]['distance']?_0x5514bd[_0x4568de]['level']=_0x4c5462:(_0x4c5462--,_0x5514bd[_0x4568de]['level']=_0x4c5462,_0x4c5462--);}}['_fixObsoleteTags'](_0x23b0ac){const _0x5bf5f1=new Map(),_0x39e7b3=this['editor']['model']['schema'];for(let _0x2fddf3=0x1;_0x2fddf3<_0x23b0ac['length'];_0x2fddf3++){let _0x219594,_0x2efb52,_0x47273b;const _0x17866d=_0x23b0ac[_0x2fddf3],_0x57b76f=_0x23b0ac[_0x2fddf3-0x1];if('text'==_0x17866d['type'])continue;if(_0x17866d['type']!=_0x57b76f['type'])continue;if(!_0x39e7b3['isBlock'](_0x57b76f['item'])||_0x39e7b3['isLimit'](_0x57b76f['item']))continue;if(!_0x39e7b3['isBlock'](_0x17866d['item'])||_0x39e7b3['isLimit'](_0x17866d['item']))continue;if((_0x23b0ac[_0x2fddf3]['isAdded']||_0x23b0ac[_0x2fddf3]['isAddSuggestion'])&&_0x23b0ac[_0x2fddf3-0x1]['isRemoved'])_0x219594=_0x23b0ac[_0x2fddf3],_0x2efb52=_0x23b0ac[_0x2fddf3-0x1],_0x47273b=_0x2fddf3-0x1;else{if(!_0x23b0ac[_0x2fddf3]['isRemoved']||!_0x23b0ac[_0x2fddf3-0x1]['isAdded']&&!_0x23b0ac[_0x2fddf3-0x1]['isAddSuggestion'])continue;_0x219594=_0x23b0ac[_0x2fddf3-0x1],_0x2efb52=_0x23b0ac[_0x2fddf3],_0x47273b=_0x2fddf3;}const _0x24f90f=_0x219594['level']==_0x2efb52['level'],_0x55b4e7=Math['abs'](_0x219594['level'])<Math['abs'](_0x2efb52['level'])&&0x0==_0x2efb52['distance'];(_0x24f90f||_0x55b4e7)&&(_0x5bf5f1['set'](_0x2efb52['id'],_0x219594['id']),_0x23b0ac['splice'](_0x47273b,0x1),_0x2fddf3--,_0x219594['isAdded']=!0x1);}for(let _0x36fba9=0x0;_0x36fba9<_0x23b0ac['length'];_0x36fba9++)_0x5bf5f1['has'](_0x23b0ac[_0x36fba9]['pairId'])&&(_0x23b0ac[_0x36fba9]['pairId']=_0x5bf5f1['get'](_0x23b0ac[_0x36fba9]['pairId']));}['_removeMissingPairs'](_0x154dd7){const _0x25a884=new Set(_0x154dd7['map'](_0x4b48b0=>_0x4b48b0['id']));for(let _0x3da987=0x0;_0x3da987<_0x154dd7['length'];_0x3da987++)_0x25a884['has'](_0x154dd7[_0x3da987]['pairId'])||0x0==_0x154dd7[_0x3da987]['distance']||(_0x154dd7[_0x3da987]['isIncorrect']=!0x0);return _0x154dd7['filter'](_0x4a316e=>!_0x4a316e['isIncorrect']);}['_markMismatchedRemovedTags'](_0xb90fef){const _0x5bec79=new Set();for(let _0x4845e5=0x0;_0x4845e5<_0xb90fef['length'];_0x4845e5++){if(_0x5bec79['has'](_0xb90fef[_0x4845e5]['id'])&&_0xb90fef[_0x4845e5]['isRemoved']&&(_0xb90fef[_0x4845e5]['isIncorrect']=!0x0),_0xb90fef[_0x4845e5]['isIncorrect'])continue;if(0x0==_0xb90fef[_0x4845e5]['distance'])continue;if('elementStart'!=_0xb90fef[_0x4845e5]['type'])continue;if(null==_0xb90fef[_0x4845e5]['pairId'])continue;let _0x4d8f18=_0x4845e5+0x1,_0x4c3396=0x0;for(;_0xb90fef[_0x4d8f18]['id']!=_0xb90fef[_0x4845e5]['pairId'];)'elementStart'==_0xb90fef[_0x4d8f18]['type']?_0x4c3396++:'elementEnd'==_0xb90fef[_0x4d8f18]['type']&&_0x4c3396--,_0x4d8f18++;if(0x0!=_0x4c3396){if(_0xb90fef[_0x4845e5]['isRemoved'])_0xb90fef[_0x4845e5]['isIncorrect']=!0x0;else{for(;_0x4d8f18!=_0x4845e5;)_0xb90fef[_0x4d8f18]['isRemoved']&&0x0!=_0xb90fef[_0x4d8f18]['distance']&&(_0xb90fef[_0x4d8f18]['isIncorrect']=!0x0,_0x5bec79['add'](_0xb90fef[_0x4d8f18]['pairId'])),_0x4d8f18--;}}}return _0xb90fef['filter'](_0x351a9f=>!_0x351a9f['isIncorrect']);}['_removeUnsupportedChanges'](_0x402ff9){const _0x2e69ca=this['editor']['model']['schema'];for(let _0x2b6c2d=0x0;_0x2b6c2d<_0x402ff9['length'];_0x2b6c2d++){if(!(_0x402ff9[_0x2b6c2d]['isAdded']||_0x402ff9[_0x2b6c2d]['isAddSuggestion']||_0x402ff9[_0x2b6c2d]['isRemoved']||_0x402ff9[_0x2b6c2d]['isRemoveSuggestion']))continue;if(0x0==_0x402ff9[_0x2b6c2d]['distance'])continue;const _0x2d46c2=_0x402ff9[_0x2b6c2d]['item'];_0x2e69ca['isBlock'](_0x2d46c2)||_0x2e69ca['isLimit'](_0x2d46c2)||(_0x402ff9[_0x2b6c2d]['isAdded']&&delete _0x402ff9[_0x2b6c2d]['isAdded'],_0x402ff9[_0x2b6c2d]['isAddSuggestion']&&delete _0x402ff9[_0x2b6c2d]['isAddSuggestion'],_0x402ff9[_0x2b6c2d]['isRemoveSuggestion']&&delete _0x402ff9[_0x2b6c2d]['isRemoveSuggestion'],_0x402ff9[_0x2b6c2d]['isRemoved']&&(_0x402ff9[_0x2b6c2d]['isIncorrect']=!0x0));}return _0x402ff9['filter'](_0x466a5a=>!_0x466a5a['isIncorrect']);}['_makeModelFromTape'](_0x3a6cb4,_0x4d8a2d,_0x2ac11d){const _0x120a30=new mt(),_0x57d464=[],_0x144335=new Map(),_0x3a818a=this['editor']['model'],_0x2a5e04=_0x3a818a['schema'],_0x2ba32f=[_0x120a30],_0x4e06eb={},_0x57eacd={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x30cc89=null;const _0x321401=[0x0];for(let _0x5d001e=0x0;_0x5d001e<_0x3a6cb4['length'];_0x5d001e++)if('elementStart'===_0x3a6cb4[_0x5d001e]['type']){_0x3a6cb4[_0x5d001e]['previousPosition']=_0x3a818a['createPositionFromPath'](_0x120a30,_0x321401);const _0x1b6ea3=new ft(_0x3a6cb4[_0x5d001e]['item']['name'],_0x3a6cb4[_0x5d001e]['item']['getAttributes']());_0x2ba32f[0x0]['_appendChild'](_0x1b6ea3),_0x321401['push'](0x0),_0x2ba32f['unshift'](_0x1b6ea3),_0x3a6cb4[_0x5d001e]['nextPosition']=_0x3a818a['createPositionFromPath'](_0x120a30,_0x321401);}else'elementEnd'===_0x3a6cb4[_0x5d001e]['type']?(_0x2ba32f['shift'](),_0x3a6cb4[_0x5d001e]['previousPosition']=_0x3a818a['createPositionFromPath'](_0x120a30,_0x321401),_0x321401['pop'](),_0x321401[_0x321401['length']-0x1]++,_0x3a6cb4[_0x5d001e]['nextPosition']=_0x3a818a['createPositionFromPath'](_0x120a30,_0x321401)):(_0x3a6cb4[_0x5d001e]['previousPosition']=_0x3a818a['createPositionFromPath'](_0x120a30,_0x321401),_0x30cc89?_0x30cc89['_data']+=_0x3a6cb4[_0x5d001e]['item']['data']:_0x30cc89=new wt(_0x3a6cb4[_0x5d001e]['item']['data'],_0x3a6cb4[_0x5d001e]['item']['getAttributes']()),_0x3a6cb4[_0x5d001e+0x1]&&'text'===_0x3a6cb4[_0x5d001e+0x1]['type']&&_0x2c4323(_0x30cc89,_0x3a6cb4[_0x5d001e+0x1]['item'])||(_0x2ba32f[0x0]['_appendChild'](_0x30cc89),_0x30cc89=null),_0x321401[_0x321401['length']-0x1]+=_0x3a6cb4[_0x5d001e]['item']['offsetSize'],_0x3a6cb4[_0x5d001e]['nextPosition']=_0x3a818a['createPositionFromPath'](_0x120a30,_0x321401));for(let _0x5291eb=0x0;_0x5291eb<_0x3a6cb4['length'];_0x5291eb++){const _0x53d46b=_0x3a6cb4[_0x5291eb]['previousPosition'],_0x7eeaaa=_0x3a6cb4[_0x5291eb]['nextPosition'];for(const _0x100815 of _0x3a6cb4[_0x5291eb]['markersStart'])_0x144335['set'](_0x100815,{'start':_0x53d46b,'end':null});_0x58beed('isRemoveSuggestion',_0x5291eb,_0x53d46b,_0x7eeaaa),_0x58beed('isAddSuggestion',_0x5291eb,_0x53d46b,_0x7eeaaa),_0x58beed('isRemoved',_0x5291eb,_0x53d46b,_0x7eeaaa),_0x58beed('isAdded',_0x5291eb,_0x53d46b,_0x7eeaaa);for(const _0x35ca8a of _0x3a6cb4[_0x5291eb]['markersEnd']){_0x144335['get'](_0x35ca8a)['end']=_0x7eeaaa;}}for(const [_0x1f782b,_0x29bb2f]of _0x144335){const _0x536280=this['editor']['model']['createRange'](_0x29bb2f['start'],_0x29bb2f['end']);_0x120a30['markers']['set'](_0x1f782b,_0x536280);}return _0x57d464['sort']((_0x4beed7,_0x1be1b7)=>{const _0x324124=_0x120a30['markers']['get']('revision:'+_0x4beed7['id']),_0x31af8c=_0x120a30['markers']['get']('revision:'+_0x1be1b7['id']);return _0x324124['start']['isBefore'](_0x31af8c['start'])?-0x1:_0x324124['start']['isAfter'](_0x31af8c['start'])?0x1:_0x324124['end']['isBefore'](_0x31af8c['end'])?-0x1:_0x324124['end']['isAfter'](_0x31af8c['end'])?0x1:'add'===_0x4beed7['type']?-0x1:0x1;}),{'root':_0x120a30,'changes':_0x57d464};function _0x58beed(_0x1b7860,_0x498b16,_0x4cca5c,_0x39d86a){const _0x1c7e97=!!_0x3a6cb4[_0x498b16][_0x1b7860],_0x3ed307=_0x1c7e97?_0x3a6cb4[_0x498b16][_0x1b7860]['userId']:null,_0x14b19a=_0x498b16===_0x3a6cb4['length']-0x1,_0x27d2d0=_0x57eacd[_0x1b7860][0x0],_0x1895d0=_0x2a5e04['isObject'](_0x3a6cb4[_0x498b16]['item']);!_0x4e06eb[_0x1b7860]&&_0x1c7e97?_0x4e06eb[_0x1b7860]={'start':_0x4cca5c,'tapeItem':_0x3a6cb4[_0x498b16],'userId':_0x3ed307,'type':_0x1b7860}:_0x4e06eb[_0x1b7860]&&!_0x1c7e97?(_0x4e06eb[_0x1b7860]['end']=_0x4cca5c,_0x1faa17(_0x4e06eb[_0x1b7860]),_0x4e06eb[_0x1b7860]=null):_0x4e06eb[_0x1b7860]&&_0x1c7e97&&_0x4e06eb[_0x1b7860]['userId']!==_0x3ed307&&(_0x4e06eb[_0x1b7860]['end']=_0x4cca5c,_0x27d2d0&&_0x27d2d0['userId']===_0x4e06eb[_0x1b7860]['userId']||_0x1faa17(_0x4e06eb[_0x1b7860]),_0x4e06eb[_0x1b7860]={'start':_0x4cca5c,'tapeItem':_0x3a6cb4[_0x498b16],'userId':_0x3ed307,'type':_0x1b7860}),_0x4e06eb[_0x1b7860]&&_0x1895d0&&('elementStart'!==_0x3a6cb4[_0x498b16]['type']||_0x27d2d0&&_0x27d2d0['userId']===_0x3ed307||_0x57eacd[_0x1b7860]['unshift']({'userId':_0x3ed307,'object':_0x3a6cb4[_0x498b16]['item'],'change':_0x4e06eb[_0x1b7860]}),'elementEnd'===_0x3a6cb4[_0x498b16]['type']&&_0x27d2d0&&_0x27d2d0['object']===_0x3a6cb4[_0x498b16]['item']&&(_0x57eacd[_0x1b7860]['shift'](),_0x4e06eb[_0x1b7860]=_0x27d2d0['change'])),_0x4e06eb[_0x1b7860]&&_0x14b19a&&(_0x4e06eb[_0x1b7860]['end']=_0x39d86a,_0x1faa17(_0x4e06eb[_0x1b7860]),_0x4e06eb[_0x1b7860]=null);}function _0x1faa17({start:_0x4bb553,end:_0x2e7842,tapeItem:_0x2b285f,userId:_0x2d55df,type:_0x5415e8}){const _0x9a63e0=_0x2b285f['item'],_0x27f2f1=_0x3a818a['schema']['isBlock'](_0x9a63e0)&&!_0x3a818a['schema']['isLimit'](_0x9a63e0),_0x435953=_0x4bb553['nodeAfter']==_0x2e7842['parent']&&_0x2e7842['isAtStart'];if(_0x27f2f1&&_0x435953)return;const _0x328564=_0x3a818a['createRange'](_0x4bb553,_0x2e7842),_0x446ea9=_0x4d8a2d['get'](_0x2d55df),_0x275ae1=new r({'author':_0x446ea9,'type':'isAdded'==_0x5415e8||'isAddSuggestion'==_0x5415e8?'add':'remove','data':{'isSuggestion':'isAddSuggestion'==_0x5415e8||'isRemoveSuggestion'==_0x5415e8},'createdAt':new Date(),'rootName':_0x2ac11d});_0x57d464['push'](_0x275ae1),_0x120a30['markers']['set']('revision:'+_0x275ae1['id'],_0x328564);}function _0x2c4323(_0x858ead,_0xf11473){const _0x5a4c02=_0x858ead['getAttributes'](),_0x5e0b7a=_0xf11473['getAttributes']();for(const _0x19654b of _0x5a4c02){if(_0x19654b[0x1]!==_0xf11473['getAttribute'](_0x19654b[0x0]))return!0x1;_0x5e0b7a['next']();}return _0x5e0b7a['next']()['done'];}}['_setConversion'](){this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision','view':_0x2f63d0=>{const _0x576488=_0x2f63d0['markerName']['split'](':')[0x1],_0x34528d=this['_getChangeFromId'](_0x576488);if(!_0x34528d)return null;const _0x342532='add'==_0x34528d['type']?'insertion':'deletion',_0x58f906=['ck-suggestion-marker','ck-suggestion-marker-'+_0x342532];return _0x34528d['data']['isSuggestion']&&_0x58f906['push']('ck-suggestion-marker-'+_0x342532+'-new'),this['activeChange']==_0x34528d&&_0x58f906['push']('ck-suggestion-marker--active'),{'classes':_0x58f906,'attributes':{'data-change-id':_0x576488}};}}),this['editor']['conversion']['for']('upcast')['add'](_0x151fa7=>{_0x151fa7['on']('element:pre',(_0x1ece49,_0x3d36a7,_0x17a1ab)=>{const _0xc7f2cf=_0x3d36a7['viewItem']['getChild'](0x0);if(!_0xc7f2cf||!_0xc7f2cf['is']('element','code'))return;if(!_0x17a1ab['consumable']['consume'](_0xc7f2cf,{'attributes':['vid_start','vid_end']}))return;const _0x510529=_0x3d36a7['modelRange']['start']['nodeAfter'];_0x17a1ab['writer']['setAttribute']('vid_start',_0xc7f2cf['getAttribute']('vid_start'),_0x510529),_0x17a1ab['writer']['setAttribute']('vid_end',_0xc7f2cf['getAttribute']('vid_end'),_0x510529);},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['add'](_0x386c3d=>{_0x386c3d['on']('element',(_0x1a449e,_0x4ead61,_0x32574e)=>{if(!_0x32574e['consumable']['consume'](_0x4ead61['viewItem'],{'attributes':['vid_start','vid_end']}))return;if(_0x4ead61['modelRange']['isCollapsed'])return;const _0x15e5f9=_0x4ead61['modelRange']['start']['nodeAfter'];_0x15e5f9['hasAttribute']('vid_start')||_0x15e5f9['hasAttribute']('vid')||(_0x32574e['writer']['setAttribute']('vid_start',_0x4ead61['viewItem']['getAttribute']('vid_start'),_0x15e5f9),_0x32574e['writer']['setAttribute']('vid_end',_0x4ead61['viewItem']['getAttribute']('vid_end'),_0x15e5f9));},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['elementToAttribute']({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0x131387=>_0x131387['getAttribute']('vid')}}),this['editor']['model']['schema']['on']('checkAttribute',(_0x434d91,[,_0x1ac112])=>{['vid_start','vid_end','vid']['includes'](_0x1ac112)&&(_0x434d91['return']=!0x0,_0x434d91['stop']());},{'priority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x16dbd7=>{_0x16dbd7['on']('attribute:vid',(_0x39cc1d,_0x3838b6,_0x1c17b3)=>{if('\x20'!=_0x3838b6['item']['data']||_0x3838b6['item']['parent']['maxOffset']>0x1)return;if(!_0x1c17b3['consumable']['consume'](_0x3838b6['item'],_0x39cc1d['name']))return;const _0x57afff=_0x1c17b3['writer'],_0x4707aa=_0x1c17b3['mapper']['toViewRange'](_0x3838b6['range']);_0x57afff['wrap'](_0x4707aa,_0x57afff['createAttributeElement']('span'));});}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',function(_0x1f297e){const _0x5b875a=_0x1f297e['plugins']['get']('RevisionViewer');return(_0x4f7ca5,_0x4e31a4,_0x42e8ce)=>{const _0x42ac10=_0x4e31a4['markerName']['split'](':')[0x1],_0x5b4e27=_0x5b875a['_getChangeFromId'](_0x42ac10);if(!_0x5b4e27)return null;const _0x5c7e8f='add'==_0x5b4e27['type']?'split':'merge';if(!_0x42e8ce['consumable']['test'](_0x4e31a4['markerRange'],_0x4f7ca5['name']))return;const _0x53ca77=_0x4e31a4['markerRange']['getWalker'](),_0x494a6b=_0x4e31a4['markerRange']['start'],_0x293af9=_0x1f297e['model']['schema'];let _0x173f95=null,_0x10cda3=null,_0x148cb5=!0x1,_0x596337=!0x1;for(const _0x4166fe of _0x53ca77){const _0x461aad=_0x4166fe['item'];_0x148cb5=_0x148cb5||_0x293af9['isContent'](_0x461aad);const _0x86e4a=_0x42e8ce['mapper']['toViewElement'](_0x461aad);if(_0x86e4a&&_0x86e4a['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x4166fe['type']&&(_0x293af9['isBlock'](_0x461aad)&&!_0x293af9['isLimit'](_0x461aad)&&(_0x461aad['nextSibling']||_0x494a6b['isAtEnd']?_0x173f95&&_0x173f95['parent']==_0x461aad||(_0x173f95=_0x461aad,_0x3d0739(_0x4166fe['previousPosition']),_0x596337=!0x0):_0x10cda3=_0x10cda3||_0x4166fe['previousPosition']));}function _0x3d0739(_0x5a6e38){const _0x55c3fe=_0x42e8ce['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x5c7e8f}),_0x17252d=_0x42e8ce['mapper']['toViewPosition'](_0x5a6e38);_0x5b4e27['data']['isSuggestion']&&_0x42e8ce['writer']['addClass']('ck-suggestion-marker-'+_0x5c7e8f+'-new',_0x55c3fe),_0x5b875a['activeChange']==_0x5b4e27&&_0x42e8ce['writer']['addClass']('ck-suggestion-marker--active',_0x55c3fe),_0x42e8ce['writer']['insert'](_0x17252d,_0x55c3fe),_0x42e8ce['mapper']['bindElementToMarker'](_0x55c3fe,_0x4e31a4['markerName']);}_0x148cb5||_0x596337||!_0x10cda3||_0x3d0739(_0x10cda3);};}(this['editor']),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision',(_0xea0ce1,_0x30f206,_0x2aadb4)=>{const _0x387e06=_0x2aadb4['mapper']['markerNameToElements'](_0x30f206['markerName']);if(_0x387e06){for(const _0x9d3562 of _0x387e06)(_0x9d3562['hasClass']('ck-suggestion-marker-split')||_0x9d3562['hasClass']('ck-suggestion-marker-merge'))&&(_0x2aadb4['mapper']['unbindElementFromMarkerName'](_0x9d3562,_0x30f206['markerName']),_0x2aadb4['writer']['remove'](_0x9d3562));}},{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',(_0x2688f9,_0xed5008,_0x301492)=>{const _0x1ecf28=_0xed5008['markerName']['split'](':')[0x1],_0x7ad80e=this['_getChangeFromId'](_0x1ecf28);if(!_0x7ad80e)return null;const _0x3f44b6='add'==_0x7ad80e['type']?'split':'merge';if(_0x301492['consumable']['test'](_0xed5008['markerRange'],_0x2688f9['name']))for(const _0x133811 of _0xed5008['markerRange']['getItems']()){if(!_0x133811['is']('element','softBreak'))continue;const _0x278896=_0x301492['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x3f44b6}),_0x4fc15b=_0x301492['mapper']['toViewPosition'](this['editor']['model']['createPositionBefore'](_0x133811));_0x7ad80e['data']['isSuggestion']&&_0x301492['writer']['addClass']('ck-suggestion-marker-'+_0x3f44b6+'-new',_0x278896),this['activeChange']==_0x7ad80e&&_0x301492['writer']['addClass']('ck-suggestion-marker--active',_0x278896),_0x301492['writer']['insert'](_0x4fc15b,_0x278896),_0x301492['mapper']['bindElementToMarker'](_0x278896,_0xed5008['markerName']);}},{'priority':'high'}),this['editor']['model']['document']['on']('change',()=>{this['editor']['editing']['view']['change'](_0x979b01=>{for(const _0x1eb42d of this['editor']['model']['document']['getRootNames']()){const _0x4caa17=this['editor']['model']['document']['getRoot'](_0x1eb42d),_0x8a3014=this['editor']['editing']['view']['document']['getRoot'](_0x1eb42d);if(_0x8a3014){const _0x21c888=_0x4caa17['getAttribute']('revisionHistoryAttachChange');if(_0x979b01['removeAttribute']('data-change-id',_0x8a3014),_0x979b01['removeClass']('ck-revision-history-root-add',_0x8a3014),_0x979b01['removeClass']('ck-revision-history-root-remove',_0x8a3014),_0x979b01['removeClass']('ck-revision-history-root--active',_0x8a3014),_0x21c888){const _0x17da7d=this['_getChangeFromId'](_0x21c888);if(!_0x17da7d)return null;_0x979b01['setAttribute']('data-change-id',_0x21c888,_0x8a3014),_0x979b01['addClass']('ck-revision-history-root-'+_0x17da7d['type'],_0x8a3014),this['activeChange']==_0x17da7d&&_0x979b01['addClass']('ck-revision-history-root--active',_0x8a3014);}}}});}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'comment','model':_0x5ef311=>'revision-comment:'+_0x5ef311,'converterPriority':'highest'}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion','model':_0x5e55d5=>'revision-suggestion:'+_0x5e55d5,'converterPriority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision-suggestion','view':_0x254e19=>({'name':'suggestion:'+_0x254e19,'group':'revision-suggestion'}),'converterPriority':'highest'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision-suggestion','view':_0x2f2ec8=>{const _0x18f5d2=_0x2f2ec8['markerName']['split'](':')[0x1];return'insertion'!=_0x18f5d2&&'deletion'!=_0x18f5d2?null:{'classes':['ck-suggestion-preview-marker','ck-suggestion-preview-marker-'+_0x18f5d2]};}}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:deletion',Z(this['editor'],'merge'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:insertion',Z(this['editor'],'split'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision-suggestion',(_0x2ad385,_0x5866c4,_0x4af7e2)=>{const _0x6da184=_0x4af7e2['mapper']['markerNameToElements'](_0x5866c4['markerName']);if(_0x6da184){for(const _0x2f472a of _0x6da184)_0x2f472a['is']('uiElement')&&(_0x4af7e2['mapper']['unbindElementFromMarkerName'](_0x2f472a,_0x5866c4['markerName']),_0x4af7e2['writer']['remove'](_0x2f472a));}},{'priority':'high'});}['_getChangeFromId'](_0x30a347){return this['_changeIdToChange']['get'](_0x30a347);}['_getViewForChange'](_0x5120ef){return this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=new X(this['editor']['locale'],_0x5120ef),this['_changeView'];}['_initInteractions'](){this['editor']['model']['document']['selection']['observeMarkers']('revision'),this['on']('change:activeView',(_0x3d6f3e,_0x3005f9,_0x25b05,_0x1c6421)=>{_0x1c6421&&this['_balloon']['remove'](_0x1c6421),_0x25b05&&(this['_balloon']['add']({'view':_0x25b05,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0x466e28=this['editor']['editing'],_0x325328=this['_getChangeFromId'](_0x25b05['changeId']);let _0x253599;if(_0x325328['data']['isOnRoot']){const _0x22b638=_0x466e28['view']['getDomRoot'](_0x325328['rootName']);_0x253599=Array['from'](_0x22b638['getClientRects']());}else{const _0x22fbcb=this['editor']['model']['markers']['get']('revision:'+_0x25b05['changeId']);_0x253599=Array['from'](_0x466e28['mapper']['markerNameToElements'](_0x22fbcb['name']))['map'](_0x5690bb=>_0x466e28['view']['domConverter']['mapViewToDom'](_0x5690bb))['map'](_0x49728d=>Array['from'](_0x49728d['getClientRects']()))['flat']();}if(!this['_activeViewTarget'])return _0x253599[0x0];return _0x253599['find'](_0x2b72e5=>_0x2b72e5['top']-0x3<=this['_activeViewTarget']['y']&&_0x2b72e5['bottom']+0x3>=this['_activeViewTarget']['y']&&_0x2b72e5['left']-0x3<=this['_activeViewTarget']['x']&&_0x2b72e5['right']+0x3>=this['_activeViewTarget']['x'])||_0x253599[0x0];}}}),this['_balloon']['showStack']('revisionHistoryLabel'));}),this['on']('change:activeChange',(_0x3dcb73,_0x2bd4d4,_0x47736d,_0x48d298)=>{this['activeView']=_0x47736d?this['_getViewForChange'](_0x47736d):null,this['editor']['model']['change'](()=>{const _0x1779e2=this['editor']['editing'];_0x48d298&&(_0x48d298['data']['isOnRoot']?_0x1779e2['view']['change'](_0x4ce100=>{_0x4ce100['removeClass']('ck-revision-history-root--active',_0x1779e2['view']['document']['getRoot'](_0x48d298['rootName']));}):_0x1779e2['reconvertMarker']('revision:'+_0x48d298['id'])),_0x47736d&&(_0x47736d['data']['isOnRoot']?_0x1779e2['view']['change'](_0x38e4c3=>{_0x38e4c3['addClass']('ck-revision-history-root--active',_0x1779e2['view']['document']['getRoot'](_0x47736d['rootName']));}):_0x1779e2['reconvertMarker']('revision:'+_0x47736d['id']));});}),this['listenTo'](this['editor']['editing']['view']['document'],'mouseover',(_0x6895f3,_0x126f41)=>{if(this['activeChange'])return;const _0x46a79e=this['_findChangeIdFromDomTarget'](_0x126f41['target']),_0x278af3=this['_changeIdToChange']['get'](_0x46a79e);_0x278af3?(this['_activeViewTarget']={'x':_0x126f41['domEvent']['x'],'y':_0x126f41['domEvent']['y']},this['activeView']=this['_getViewForChange'](_0x278af3)):(this['_activeViewTarget']=null,this['activeView']=null);}),this['listenTo'](this['editor']['editing']['view']['document'],'mousedown',(_0x20ba21,_0x4239b2)=>{const _0x183999=this['_findChangeIdFromDomTarget'](_0x4239b2['target']),_0x2e27ba=this['_changeIdToChange']['get'](_0x183999);_0x2e27ba?(this['_activeViewTarget']={'x':_0x4239b2['domEvent']['x'],'y':_0x4239b2['domEvent']['y']},_0x2e27ba===this['activeChange']?this['_balloon']['updatePosition']():this['activeChange']=_0x2e27ba):(this['_activeViewTarget']=null,this['activeChange']=null);});}['_findChangeIdFromDomTarget'](_0x514bf3){do{const _0x4c0517=_0x514bf3['getAttribute']('data-change-id');if(_0x4c0517)return _0x4c0517;_0x514bf3=_0x514bf3['parent'];}while(_0x514bf3);return null;}['_cleanMarkers'](){this['editor']['model']['change'](_0x5eda8b=>{for(const _0x3407e3 of this['editor']['model']['markers'])_0x5eda8b['removeMarker'](_0x3407e3);});}}function Z(_0x3695a4,_0x56cd6e){return(_0xed4b16,_0x4ae140,_0x301b8c)=>{if(!_0x301b8c['consumable']['test'](_0x4ae140['markerRange'],_0xed4b16['name']))return;const _0x470fec=_0x4ae140['markerRange']['getWalker'](),_0x5b5c1c=_0x4ae140['markerRange']['start'],_0x30d654=_0x3695a4['model']['schema'];let _0x524ff6=null,_0x33cc6b=null,_0x3ed130=!0x1,_0x2b714b=!0x1;for(const _0x46ad40 of _0x470fec){const _0xf67d57=_0x46ad40['item'];_0x3ed130=_0x3ed130||_0x30d654['isContent'](_0xf67d57);const _0x2320ab=_0x301b8c['mapper']['toViewElement'](_0xf67d57);if(_0x2320ab&&_0x2320ab['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x46ad40['type']&&(_0x30d654['isBlock'](_0xf67d57)&&!_0x30d654['isLimit'](_0xf67d57)&&(_0xf67d57['nextSibling']||_0x5b5c1c['isAtEnd']?_0x524ff6&&_0x524ff6['parent']==_0xf67d57||(_0x524ff6=_0xf67d57,_0x2c762e(_0x46ad40['previousPosition']),_0x2b714b=!0x0):_0x33cc6b=_0x33cc6b||_0x46ad40['previousPosition']));}function _0x2c762e(_0x19cf64){const _0x5740e3=_0x301b8c['mapper']['toViewPosition'](_0x19cf64),_0x1da674=_0x301b8c['writer']['createUIElement']('span',{'class':'ck-suggestion-preview-marker-'+_0x56cd6e});_0x301b8c['writer']['insert'](_0x5740e3,_0x1da674),_0x301b8c['mapper']['bindElementToMarker'](_0x1da674,_0x4ae140['markerName']);}_0x3ed130||_0x2b714b||!_0x33cc6b||_0x2c762e(_0x33cc6b);};}class _t extends _0xf8d3a1{constructor(_0x55aeb7){super(_0x55aeb7);const _0x4ea6db=_0x55aeb7['plugins']['get'](d);this['affectsData']=!0x1,this['listenTo'](_0x4ea6db,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x4ea6db,'change:isEnabled',()=>this['refresh']());}['execute'](){const _0x5ab34d=this['editor'],_0x198d5e=_0x5ab34d['plugins']['get'](d),_0x2b7855=_0x198d5e['isReady']?_0x198d5e['diff']['newRevisionId']:null;_0x5ab34d['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x2b7855);}['refresh'](){const {isReady:_0x11b098,isEnabled:_0x26b45f,repository:_0x5592cd,diff:_0x532178}=this['editor']['plugins']['get'](d),_0x5f414f=_0x532178&&_0x5592cd['getLaterVisibleRevision'](_0x532178['newRevisionId']);this['isEnabled']=_0x11b098&&_0x26b45f&&Boolean(_0x5f414f);}}class yt extends _0xf8d3a1{['_step'];constructor(_0x9ae18f,{direction:_0x23decc}){super(_0x9ae18f);const _0xd4feb4=_0x9ae18f['plugins']['get'](d);this['affectsData']=!0x1,this['_step']='forward'===_0x23decc?0x1:-0x1,this['listenTo'](_0xd4feb4,'change:isReady',()=>this['refresh']()),this['listenTo'](_0xd4feb4,'change:isEnabled',()=>this['refresh']()),this['listenTo'](_0xd4feb4,'change:activeChange',()=>this['refresh']());}['execute'](){const _0x1318c0=this['editor'],_0x3e33e7=_0x1318c0['plugins']['get'](d),{isNavigationMode:_0x1c8c0b,currentChangeNumber:_0x4da487}=_0x3e33e7;let _0x30ce9b;if(_0x3e33e7['activeChange']=_0x1c8c0b?_0x3e33e7['diff']['changes']['get'](_0x4da487+this['_step']):_0x3e33e7['diff']['changes']['first'],_0x3e33e7['activeChange']['data']['isOnRoot'])_0x30ce9b=_0x1318c0['editing']['view']['getDomRoot'](_0x3e33e7['activeChange']['rootName']);else{const _0x14f3fc=_0x1318c0['model']['markers']['get']('revision:'+_0x3e33e7['activeChange']['id']);_0x30ce9b=_0x2f8340(_0x1318c0['editing'],_0x14f3fc);}_0x5490f8({'target':_0x30ce9b,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0x316eae,currentChangeNumber:_0x2e6f28,numberOfChanges:_0x27ae49,isReady:_0x142e71,isEnabled:_0x33a434}=this['editor']['plugins']['get'](d);this['isEnabled']=!!(_0x33a434&&_0x142e71&&_0x27ae49)&&(!_0x316eae||(0x1===this['_step']?_0x2e6f28<_0x27ae49-0x1:_0x2e6f28>0x0));}}class li extends _0x3f9662{constructor(_0x54fa94){super(_0x54fa94);const _0x4e281a=this['bindTemplate'],_0x1c5ebd=new _0x48eb6b(_0x54fa94),_0x146ec4=new _0x48eb6b(_0x54fa94);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',(_0xcc8dfb,_0x3eb2c7)=>_0xcc8dfb&&_0x3eb2c7>0x0),this['bind']('_statusText')['to'](this,'isReady',this,'currentChangeNumber',this,'numberOfChanges',this,'isNavigationMode',(_0x4a816a,_0x33f3be,_0xbab1a,_0x324488)=>{if(!_0x4a816a)return m(_0x54fa94,'Loading...');if(!_0xbab1a)return m(_0x54fa94,'No\x20changes');const _0x74a2f=m(_0x54fa94,'NUMBER_OF_CHANGES',_0xbab1a);return _0x324488?m(_0x54fa94,'X_OF_Y_CHANGES',[_0x33f3be+0x1,_0xbab1a]):_0x74a2f;}),_0x1c5ebd['set']({'label':m(_0x54fa94,'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'}),_0x146ec4['set']({'label':m(_0x54fa94,'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'}),_0x1c5ebd['bind']('isEnabled')['to'](this,'isBackwardNavigationEnabled'),_0x146ec4['bind']('isEnabled')['to'](this,'isForwardNavigationEnabled'),_0x1c5ebd['on']('execute',()=>this['fire']('execute','backward')),_0x146ec4['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',_0x4e281a['if']('_isStatusLabelVisible','ck-hidden',_0x49a183=>!_0x49a183)]},'children':[{'text':_0x4e281a['to']('isNavigationMode',_0x2acba5=>_0x2acba5?m(_0x54fa94,'EDIT_X_OF_Y_REVISIONS')+':\x20':m(_0x54fa94,'Total')+':\x20')}]},{'text':_0x4e281a['to']('_statusText')}]},new _0x38f5d8(),{'tag':'div','attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0x1c5ebd,_0x146ec4]}]});}}const ee='ck-editor__editable__loading-overlay';class ie extends _0x2c3b67{static get['pluginName'](){return'RevisionViewerLoadingOverlay';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['show'](){const _0x29035c=this['editor']['editing']['view'];_0x29035c['change'](_0x1fffd3=>{for(const _0x92ee3b of _0x29035c['document']['roots'])_0x1fffd3['addClass'](ee,_0x92ee3b);});}['hide'](){const _0x490f65=this['editor']['editing']['view'];_0x490f65['change'](_0x24c262=>{for(const _0x4a108c of _0x490f65['document']['roots'])_0x24c262['removeClass'](ee,_0x4a108c);});}}class g extends _0x2c3b67{static get['pluginName'](){return'RevisionViewerUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[d,ie];}['init'](){const _0x39c82b=this['editor'],_0xab8201=_0x39c82b['plugins']['get'](d),_0x55e422=_0x39c82b['plugins']['get'](ie);_0x39c82b['ui']['componentFactory']['add']('exitToEditing',_0x527c15=>{const _0x4222d5=new _0x48eb6b(_0x527c15);return _0x4222d5['set']({'label':m(_0x527c15,'Back\x20to\x20editing'),'icon':_0xc8c67c['undo'],'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this['listenTo'](_0x4222d5,'execute',()=>{_0x39c82b['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}),_0x4222d5;}),_0x39c82b['ui']['componentFactory']['add']('restoreRevision',_0x36676b=>{const _0x5c0243=new _0x48eb6b(_0x36676b);return _0x5c0243['set']({'label':m(_0x36676b,'Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0x5c0243['bind']('isEnabled')['to'](_0x39c82b['commands']['get']('restoreRevision')),this['listenTo'](_0x5c0243,'execute',()=>_0x39c82b['execute']('restoreRevision')),_0x5c0243;}),_0x39c82b['ui']['componentFactory']['add']('changesNavigation',_0x5197c6=>{const _0x42cb43=new li(_0x5197c6),_0x571a85=_0x39c82b['commands']['get']('showPreviousChange'),_0x1f3d8=_0x39c82b['commands']['get']('showNextChange');return _0x42cb43['bind']('isBackwardNavigationEnabled')['to'](_0x571a85,'isEnabled'),_0x42cb43['bind']('isForwardNavigationEnabled')['to'](_0x1f3d8,'isEnabled'),_0x42cb43['bind']('isReady','currentChangeNumber','numberOfChanges','isNavigationMode')['to'](_0xab8201),this['listenTo'](_0x42cb43,'execute',(_0x8085e5,_0x23c5d7)=>{_0x39c82b['execute']('forward'===_0x23c5d7?'showNextChange':'showPreviousChange');}),_0x42cb43;}),_0x55e422['show'](),_0xab8201['on']('change:isReady',(_0x45e546,_0x586820,_0x8a1f9)=>{_0x8a1f9?_0x55e422['hide']():_0x55e422['show']();});}}class pt extends nt{['_resizeObserver']=null;constructor(_0x5904bf,_0x58c76d){super(_0x5904bf,_0x58c76d);const _0x213b3a=this['bindTemplate'];this['set']({'label':m(_0x5904bf,'Revision\x20name'),'_tooltipString':''}),this['fieldView']['placeholder']=m(_0x5904bf,'Enter\x20the\x20revision\x20name'),this['extendTemplate']({'tag':'span','attributes':{'class':['ck-revision-history-sidebar__revision-name'],'data-cke-tooltip-text':_0x213b3a['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 _0x55d381=this['fieldView']['element'];this['_tooltipString']=_0x55d381['scrollWidth']>_0x55d381['clientWidth']&&_0x55d381['value']||'';}}class ti extends _0x3f9662{constructor(_0x2d8f67,_0x379f12,_0x35fab0){super(_0x2d8f67);const _0x375fdb=new _0x811d78();_0x375fdb['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 _0xcc59ec=['ck','ck-revision-history-sidebar__revision-author'];_0x35fab0&&_0xcc59ec['push']('ck-revision-history-sidebar__revision-author_creator');const _0x2dad36=[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':m(_0x2d8f67,_0x35fab0?'Revision\x20creator':'Revision\x20author')},'children':[_0x375fdb,_0x379f12['name']]}];this['setTemplate']({'tag':'li','attributes':{'class':_0xcc59ec},'children':_0x2dad36});}}function ni(_0x2f8d58,_0x3d5172){const _0x455403=_0x2f8d58['bindTemplate'],_0x17d1d7=_0x2f8d58['locale'],_0x433fbd=_0x101d38(_0x17d1d7);_0x433fbd['panelPosition']='sw';const _0x5d6a76=function(_0x166d07,_0x256ef6){const _0x494946=function(_0x5bfe6c,_0x5bab56){const _0x4b7b57=_0x5bfe6c['locale'],_0x383b67={'Compare\x20against\x20selected':m(_0x4b7b57,'Compare\x20against\x20selected'),'Name\x20this\x20revision':m(_0x4b7b57,'Name\x20this\x20revision'),'Restore\x20this\x20revision':m(_0x4b7b57,'Restore\x20this\x20revision')};return _0x5bab56['map'](_0x370b65=>{const _0x23f2d4=_0x383b67[_0x370b65['name']];return _0x23f2d4&&_0x23f2d4!==_0x370b65['name']&&(_0x370b65['name']=_0x23f2d4),_0x370b65;});}(_0x166d07,_0x256ef6),_0x3faec9=new _0x1c28b8();for(const _0x5b8703 of _0x494946){const _0x25eb8b={'type':'button','model':new to({'label':_0x5b8703['name'],'class':_0x5b8703['class'],'withText':!0x0,'role':'menuitem','_action':_0x5b8703['action']})};_0x25eb8b['model']['bind']('isEnabled')['to'](_0x166d07,'isActionsDropdownOpen',_0xa7cd65=>'function'!=typeof _0x5b8703['isEnabled']||(!_0xa7cd65||_0x5b8703['isEnabled'](_0x166d07))),_0x3faec9['add'](_0x25eb8b);}return _0x3faec9;}(_0x2f8d58,_0x3d5172);return _0x2f8d58['bind']('isActionsDropdownOpen')['to'](_0x433fbd,'isOpen'),_0x433fbd['buttonView']['set']({'label':m(_0x17d1d7,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0xc8c67c['threeVerticalDots']}),_0x433fbd['extendTemplate']({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0x455403['if']('isActionsDropdownOpen','ck-on')]},'on':{'click':_0x455403['to'](_0x3982d6=>_0x3982d6['stopPropagation']())}}),_0x433fbd['on']('execute',_0x8564b6=>{_0x2f8d58['isReady']&&'function'==typeof _0x8564b6['source']['_action']&&_0x8564b6['source']['_action'](_0x2f8d58);}),_0xa3c447(_0x433fbd,_0x5d6a76,{'role':'menu'}),_0x433fbd['listenTo'](_0x2f8d58,'change:isActionsDropdownOpen',(_0xa44656,_0x20ef88,_0x341c66)=>{if(_0x341c66)for(const _0x1a87d5 of _0x433fbd['listView']['items']){const _0x81a0ae=_0x1a87d5['children']['first'],_0x90506=_0x3d5172['find'](_0xde953f=>_0xde953f['action']===_0x81a0ae['_action'])['isVisible'];_0x1a87d5['isVisible']=void 0x0===_0x90506||_0x90506(_0x2f8d58);}}),_0x433fbd;}class ai extends/* #__PURE__ -- @preserve */
|
|
26
|
+
_0x1faccf(_0x3f9662){['id'];['revisionNameView'];['revisionActionsView'];['_revision'];['_requireRevisionName'];constructor(_0x1ec279,_0x11ca98,_0x3fab22,_0x4fa70d){super(_0x1ec279);const _0x203221=this['bindTemplate'],_0x11d150=function(_0x16c683,_0x258f87){const _0x3ed93f=Array['from'](_0x258f87['authors'])['filter'](_0x3f08cc=>_0x3f08cc!=_0x258f87['creator']);return _0x258f87['creator']&&_0x3ed93f['unshift'](_0x258f87['creator']),_0x3ed93f['map'](_0x4ed2f3=>new ti(_0x16c683,_0x4ed2f3,_0x4ed2f3==_0x258f87['creator']));}(_0x1ec279,_0x11ca98);this['id']=_0x11ca98['id'],this['_revision']=_0x11ca98,this['_requireRevisionName']=_0x4fa70d,this['bind']('name','createdAt')['to'](_0x11ca98),this['bind']('_createdAtFormatted')['to'](this,'createdAt',_0x50749e=>{return _0x281ad4=_0x1ec279['uiLanguage'],(_0x35b141=_0x50749e)['toLocaleDateString'](_0x281ad4,{'month':'long','day':'numeric'})+',\x20'+_0x35b141['toLocaleTimeString'](_0x281ad4,{'hour':'numeric','minute':'numeric'});var _0x281ad4,_0x35b141;}),this['set']('isSelected',!0x1),this['set']('isHighlighted',!0x1),this['set']('isActionsDropdownOpen',!0x1),this['set']('isReady',!0x1),this['set']('isEnabled',!0x1),this['revisionNameView']=new pt(_0x1ec279,_0x2ea866),this['revisionNameView']['fieldView']['extendTemplate']({'attributes':{'maxlength':'220'}}),this['revisionNameView']['fieldView']['bind']('value')['to'](this,'name',_0x168a28=>_0x168a28||this['_createdAtFormatted']),this['revisionNameView']['bind']('isEnabled')['to'](this,'isSelected',this,'isEnabled',(_0x4241b6,_0x60087d)=>_0x4241b6&&_0x60087d),this['revisionActionsView']=_0x3fab22&&_0x3fab22['length']?ni(this,_0x3fab22):'',this['revisionActionsView']&&this['revisionActionsView']['bind']('isEnabled')['to'](this),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision-wrapper',_0x203221['if']('isConfirm','ck-revision-history-sidebar__revision-wrapper_confirmation_visible')]},'children':[{'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision',_0x203221['if']('isEnabled','ck-disabled',_0xb757ad=>!_0xb757ad),_0x203221['if']('isSelected','ck-revision-history-sidebar__revision_selected'),_0x203221['if']('isHighlighted','ck-revision-history-sidebar__revision_highlighted'),_0x203221['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':_0x203221['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':_0x11d150}]},this['revisionActionsView']],'on':{'click':_0x203221['to'](_0x857ee0=>{_0x857ee0['srcElement']['closest']('.ck-thread__remove-confirm')||this['isReady']&&this['isEnabled']&&this['fire']('select',{'id':this['id']});})}}]});}['render'](){super['render']();const _0xa35451=this['revisionNameView']['fieldView']['element'];this['listenTo'](_0xa35451,'change',()=>{this['_requireRevisionName']&&!_0xa35451['value']||this['fire']('setName',{'id':this['id'],'name':_0xa35451['value']}),_0xa35451['value']||(_0xa35451['value']=this['name']?this['name']:this['_createdAtFormatted']);});}['select'](){this['isSelected']=!0x0;}['deselect'](){this['isSelected']=!0x1;}['highlight'](){this['isHighlighted']=!0x0;}['unhighlight'](){this['isHighlighted']=!0x1;}}function mi(_0xaf06b,_0x2f76bc){const _0x383b17=te['fromJSDate'](_0xaf06b)['setLocale'](_0x2f76bc),_0x10a8d6=te['local'](),_0x19d320=_0x10a8d6['minus']({'days':0x1})['startOf']('day');let _0xa2124c,_0x25e49a;return _0x383b17['hasSame'](_0x10a8d6,'day')?(_0xa2124c=_0x383b17['startOf']('day')['toJSDate'](),_0x25e49a=_0x383b17['toRelativeCalendar']()):_0x383b17['hasSame'](_0x19d320,'day')?(_0xa2124c=_0x19d320['toJSDate'](),_0x25e49a=_0x383b17['toRelativeCalendar']()):_0x383b17['hasSame'](_0x10a8d6,'week')?(_0xa2124c=_0x383b17['startOf']('week')['toJSDate'](),_0x25e49a=_0x383b17['weekdayLong']||''):_0x383b17['hasSame'](_0x10a8d6,'year')?(_0xa2124c=_0x383b17['startOf']('month')['toJSDate'](),_0x25e49a=_0x383b17['monthLong']||''):(_0xa2124c=_0x383b17['startOf']('year')['toJSDate'](),_0x25e49a=String(_0x383b17['year'])),{'startDate':_0xa2124c,'localizedPeriodName':_0x25e49a};}class pi extends _0x3f9662{['startDate'];['revisionViews'];['_revisionActions'];['_requireRevisionName'];constructor(_0x4363ae,_0x3f1c41,_0x35eff0,_0x268c47){super(_0x4363ae);const _0x414613=mi(_0x3f1c41,this['locale']['uiLanguage'])['localizedPeriodName'];this['startDate']=_0x3f1c41,this['revisionViews']=this['createCollection'](),this['_revisionActions']=_0x35eff0,this['_requireRevisionName']=_0x268c47,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':_0x414613}]},{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__time-period__revisions']},'children':this['revisionViews']}]});}['addRevision'](_0x5b3fdc){const _0x31ff52=new ai(this['locale'],_0x5b3fdc,this['_revisionActions'],this['_requireRevisionName']);this['revisionViews']['add'](_0x31ff52);}['removeRevision'](_0x2c484a){const _0x519b8a=this['revisionViews']['find'](_0x507d52=>_0x507d52['id']===_0x2c484a['id']);this['revisionViews']['remove'](_0x519b8a);}}class rs extends _0x3f9662{constructor(_0xff0fac){super(_0xff0fac);const _0x5da347=new _0x811d78();_0x5da347['content']=_0xc8c67c['history'],this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all','ck-revision-history-sidebar__header']},'children':[_0x5da347,{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__header__label']},'children':[m(_0xff0fac,'Revision\x20history')]}]});}}class vi extends _0x3f9662{['timePeriodViews'];['_revisions'];['_revisionActions'];['_requireRevisionName'];constructor(_0x298cd4,_0x203832,_0xd6cf86,_0x2fc345){super(_0x298cd4);const _0x3b9f49=this['bindTemplate'];this['timePeriodViews']=this['createCollection'](),this['timePeriodViews']['delegate']('select')['to'](this),this['timePeriodViews']['delegate']('setName')['to'](this),this['_revisions']=_0x203832,this['_revisionActions']=_0xd6cf86,this['_requireRevisionName']=_0x2fc345,this['on']('select',(_0x6bd766,_0x9aaa73)=>{this['fire']('revisionSelected',_0x9aaa73);}),this['on']('setName',(_0x48b13a,_0x16e833)=>{this['fire']('revisionSetName',_0x16e833);}),this['set']('isEnabled',!0x1),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-rounded-corners','ck-revision-history-sidebar']},'children':[new rs(_0x298cd4),{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__timeline',_0x3b9f49['if']('isEnabled','ck-disabled',_0x2285a0=>!_0x2285a0)]},'children':this['timePeriodViews']}]});}['render'](){super['render']();for(const _0x3a5d8c of this['_revisions'])this['_addRevision'](_0x3a5d8c);this['_revisions']['on']('add',(_0x5f1512,_0x5b92b7)=>{this['_addRevision'](_0x5b92b7);}),this['_revisions']['on']('remove',(_0x2f1396,_0x5af263)=>{this['_removeRevision'](_0x5af263);});}get['revisionViews'](){return this['timePeriodViews']['map'](_0x4ba18e=>_0x4ba18e['revisionViews']['map'](_0x5072f8=>_0x5072f8))['flat']();}['selectRevision'](_0x3b1d82){for(const _0x20157 of this['revisionViews'])_0x3b1d82&&_0x3b1d82['id']===_0x20157['id']?_0x20157['select']():_0x20157['deselect']();}['highlightRevisions'](_0x267e3a){for(const _0x8428c2 of this['revisionViews'])_0x267e3a['some'](({id:_0x38ac10})=>_0x38ac10===_0x8428c2['id'])?_0x8428c2['highlight']():_0x8428c2['unhighlight']();}['_addRevision'](_0x2652fd){const _0xe5d511=mi(_0x2652fd['createdAt'],this['locale']['uiLanguage'])['startDate'];let _0x3aec50=this['timePeriodViews']['get'](0x0);_0x3aec50&&_0x3aec50['startDate']['getTime']()===_0xe5d511['getTime']()||(_0x3aec50=new pi(this['locale'],_0xe5d511,this['_revisionActions'],this['_requireRevisionName']),this['timePeriodViews']['add'](_0x3aec50)),_0x3aec50['addRevision'](_0x2652fd);}['_removeRevision'](_0x57812d){const _0xc9924a=mi(_0x57812d['createdAt'],this['locale']['uiLanguage'])['startDate'];this['_getTimePeriodViewByStartDate'](_0xc9924a)['removeRevision'](_0x57812d);}['_getTimePeriodViewByStartDate'](_0x4c0300){return this['timePeriodViews']['find'](_0x4c703c=>_0x4c703c['startDate']['getTime']()===_0x4c0300['getTime']());}}class w extends _0x2c3b67{['_revisionViewer'];['_revisionsRepository'];['_sidebarView'];static ['defaultRevisionActions']=/* #__PURE__ -- @preserve */
|
|
27
27
|
((()=>['compareAgainstSelected','restoreRevision','nameRevision'])());static ['availableRevisionActions']=/* #__PURE__ -- @preserve */
|
|
28
|
-
bt();static get['pluginName'](){return'RevisionsSidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[d];}constructor(
|
|
29
|
-
it(tt){['_ui'];get['ui'](){return this['_ui'];}constructor(_0x3ddafc,_0x215c93){super(_0x215c93),this['sourceElement']=_0x3ddafc,this['model']['document']['createRoot']();const _0x1e1faf=new et(this['locale'],this['editing']['view'],{'shouldToolbarGroupWhenFull':!0x0});this['_ui']=new rt(this,_0x1e1faf);}['destroy'](){return this['updateSourceElement'](),this['ui']['destroy'](),super['destroy']();}static async['create'](_0x5d96c9,_0x32ff64){const _0x55018a=new this(_0x5d96c9,_0x32ff64);return await _0x55018a['initPlugins'](),await _0x55018a['ui']['init'](_0x5d96c9),await _0x55018a['data']['init'](_0x55018a['config']['get']('initialData')||''),_0x55018a['fire']('ready'),_0x55018a;}}const p=['RevisionHistoryUI','RestrictedEditingMode'];class Rt extends _0x23fe3b{['result'];static get['pluginName'](){return'RevisionViewerIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x336e0f){function _0x2b7098(_0x1a6285){return _0x1a6285['map'](_0x35e09c=>String['fromCharCode'](_0x35e09c))['join']('');}super(_0x336e0f),this['result']='end',_0x336e0f[_0x2b7098([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2b7098([0x76,0x69,0x65,0x77])][_0x2b7098([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x2b7098([0x61,0x75,0x74,0x6f]),_0x336e0f[_0x2b7098([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x2b7098([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x2b7098([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x2b7098([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x2b7098([0x6f,0x6b])});}}class k extends _0x23fe3b{['_viewerEditor'];static get['pluginName'](){return'RevisionHistory';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[l,u];}constructor(_0x14e75d){if(super(_0x14e75d),!this['editor']['config']['get']('revisionHistory'))throw new _0x44dbd9('revision-history-missing-configuration',this);this['_viewerEditor']=null,this['editor']['config']['define']('revisionHistory.showRevisionViewerCallback',_0x13fe5e=>this['_showRevisionViewer']({..._0x13fe5e,'translations':this['editor']['locale']['translations']})),this['editor']['config']['define']('revisionHistory.closeRevisionViewerCallback',_0x44767c=>this['_closeRevisionViewer'](_0x44767c)),this['editor']['config']['define']('revisionHistory.restoreRevisionCallback',_0x1f83de=>this['_restoreRevision'](_0x1f83de)),this['editor']['config']['define']('revisionHistory.requireRevisionName',!0x1),this['_enhanceShowRevisionViewerCallback'](),this['_enhanceCloseRevisionViewerCallback']();}set['adapter'](_0x5e3bb3){this['editor']['plugins']['get']('RevisionTracker')['adapter']=_0x5e3bb3;}get['adapter'](){return this['editor']['plugins']['get']('RevisionTracker')['adapter'];}['addRevisionData'](_0x2b6570){return this['editor']['plugins']['get']('RevisionTracker')['addRevisionData'](_0x2b6570);}['getRevision'](_0x4d60ad){return this['editor']['plugins']['get']('RevisionsRepository')['getRevision'](_0x4d60ad);}['getRevisions'](_0x42c31d){return this['editor']['plugins']['get']('RevisionsRepository')['getRevisions'](_0x42c31d||{'toJSON':!0x1});}['_getRevisionViewerEditorConfig'](){const _0x1c8626=this['editor'],_0x5806ae=_0x4cc66b(_0x1c8626,p),_0x157376=_0x1c8626['plugins']['get']('RevisionTracker'),_0x1a0573=_0x1c8626['plugins']['get']('Users')['users'];return _0x5806ae['toolbar']=['exitToEditing','restoreRevision','changesNavigation'],delete _0x5806ae['lazyRoots'],(_0x5806ae['plugins']['push'](Rt,d,g,class extends _0x23fe3b{static get['requires'](){return[d,'Users'];}['init'](){const _0x353d2c=this['editor']['plugins']['get']('Users');for(const _0x550658 of _0x1a0573)_0x550658['isAnonymous']||_0x353d2c['getUser'](_0x550658['id'])||_0x353d2c['addUser'](_0x550658);const _0x567a94=_0x157376['repository']['getRevisions']();let _0x2b70c9=null;const _0x32b81e=this['editor']['plugins']['get']('RevisionViewer');_0x32b81e['adapter']=_0x157376['adapter'],_0x32b81e['bind']('isEnabled')['to'](_0x157376),this['editor']['commands']['get']('restoreRevision')['bind']('isEnabled')['to'](_0x1c8626,'isReadOnly',_0x599633=>!_0x599633);for(const _0x21755c of _0x567a94){const _0x226da2=null===_0x21755c['creator'];if(_0x226da2&&_0x21755c['toVersion']===_0x21755c['fromVersion'])continue;const _0x1b366a=_0x21755c['toJSON']();_0x32b81e['addRevisionData'](_0x1b366a,(_0x836fc1,_0x56268f,_0x35e30c)=>{if(_0x226da2){if(_0x2b70c9)_0x2b70c9['_update'](_0x836fc1,_0x56268f);else{if(!_0x56268f){const _0x144e87=_0x35e30c['toJSON']();_0x144e87['id']=_0x32ae7e(),_0x157376['saveRevision'](_0x144e87,_0x35e30c['toVersion'])['then'](_0x185c4c=>{_0x2b70c9=_0x185c4c;});}}}else _0x21755c['_update'](_0x836fc1,_0x56268f);});}}},w),_0x5806ae);}['_enhanceShowRevisionViewerCallback'](){const _0x26bd5c=this['editor']['config']['get']('revisionHistory')['showRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.showRevisionViewerCallback',async()=>{this['editor']['enableReadOnlyMode']('revision-history-viewer-opened');const _0x751cb=this['editor']['plugins']['get']('RevisionTracker');if(this['editor']['plugins']['has']('Autosave')){const _0x436a68=this['editor']['plugins']['get']('Autosave');await _0x436a68['save']();}else await _0x751cb['update']();if(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('Dialog')){const _0x401bf2=this['editor']['plugins']['get']('Dialog');_0x401bf2['isOpen']&&_0x401bf2['hide']();}const _0x4ea0ce=this['_getRevisionViewerEditorConfig']();return _0x26bd5c(_0x4ea0ce)['then'](_0x36eef7=>{return(this['_viewerEditor']=_0x36eef7,this['editor']['plugins']['has']('Annotations'))&&this['editor']['plugins']['get']('Annotations')['refreshVisibility'](),_0x36eef7;})['catch'](_0xd559d7=>(console['error'](_0xd559d7),this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),null));});}['_enhanceCloseRevisionViewerCallback'](){const _0x326c83=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'](),_0x326c83(this['_viewerEditor'])['then'](()=>{if(this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),this['_viewerEditor']=null,this['editor']['plugins']['has']('Annotations')){const _0x1765f4=this['editor']['plugins']['get']('Annotations');_0x1765f4['refreshVisibility'](),_0x1765f4['refreshPositioning']();}})));}['_showRevisionViewer'](_0x5c40dd){const _0x26e053=this['editor']['config']['get']('revisionHistory.editorContainer'),_0x22e01f=this['editor']['config']['get']('revisionHistory.viewerContainer'),_0x4c5f71=this['editor']['config']['get']('revisionHistory.viewerEditorElement');return R['create'](_0x4c5f71,_0x5c40dd)['then'](_0x1a1669=>(_0x22e01f['style']['display']='block',_0x26e053['style']['display']='none',_0x1a1669));}['_closeRevisionViewer'](_0x165cf2){const _0xc1ad4a=this['editor']['config']['get']('revisionHistory.editorContainer');return this['editor']['config']['get']('revisionHistory.viewerContainer')['style']['display']='none',_0xc1ad4a['style']['display']='',_0x165cf2['destroy']();}async['_restoreRevision'](_0x3ae974){const _0x45059a=this['editor'],_0x45aaf2=this['_viewerEditor']['plugins']['get']('RevisionViewer'),_0x39cfc3=_0x45059a['plugins']['get']('RevisionTracker'),_0x204b81=_0x45aaf2['repository']['getRevision'](_0x3ae974);let _0x4fa4b1,_0x58e227,_0x175ae2;try{_0x4fa4b1=await _0x45aaf2['getRevisionData'](_0x204b81),_0x58e227=await _0x45aaf2['getRevisionRootsAttributes'](_0x204b81);}catch(_0x1ab3a1){return void console['error'](_0x1ab3a1);}_0x45059a['model']['change'](_0x26f926=>{for(const _0x5ebe8b of Array['from'](_0x45059a['model']['markers']['getMarkersGroup']('restrictedEditingException')))_0x26f926['removeMarker'](_0x5ebe8b);}),_0x45aaf2['isReady']=!0x1,_0x45059a['model']['enqueueChange'](_0x4f596e=>{_0x4f596e['setSelection'](null),_0x4f596e['removeSelectionAttribute'](_0x45059a['model']['document']['selection']['getAttributeKeys']());const _0x5db6b3=Object['keys'](_0x4fa4b1);for(const _0x109070 of _0x45059a['model']['document']['roots'])'$graveyard'!=_0x109070['rootName']&&_0x109070['isAttached']()&&!_0x5db6b3['includes'](_0x109070['rootName'])&&_0x4f596e['detachRoot'](_0x109070);for(const _0x5e07df of _0x5db6b3){let _0x460baa=_0x45059a['model']['document']['getRoot'](_0x5e07df);_0x460baa&&_0x460baa['isAttached']()||(_0x460baa=_0x4f596e['addRoot'](_0x5e07df));const _0x14969d=_0x58e227[_0x5e07df],_0x1186b4=Object['keys'](_0x14969d),_0x46d0b6=_0x4fa4b1[_0x5e07df];for(const _0x4423bc of _0x460baa['getAttributeKeys']())_0x1186b4['includes'](_0x4423bc)||_0x4f596e['removeAttribute'](_0x4423bc,_0x460baa);for(const _0x281436 of _0x1186b4)_0x4f596e['setAttribute'](_0x281436,_0x58e227[_0x5e07df][_0x281436],_0x460baa);_0x4f596e['remove'](_0x4f596e['createRangeIn'](_0x460baa)),_0x4f596e['insert'](_0x45059a['data']['parse'](_0x46d0b6,_0x460baa),_0x460baa,0x0);}});const _0x4a93b5=m(_0x45059a['locale'],'Restored');if(_0x204b81['name'])_0x175ae2=-0x1==_0x204b81['name']['indexOf'](_0x4a93b5)?_0x4a93b5+':\x20'+_0x204b81['name']:_0x204b81['name'];else _0x175ae2=_0x4a93b5+':\x20'+(_0x204b81['createdAt']['toLocaleDateString'](_0x45059a['locale']['uiLanguage'],{'month':'long','day':'numeric'})+',\x20'+_0x204b81['createdAt']['toLocaleTimeString'](_0x45059a['locale']['uiLanguage'],{'hour':'numeric','minute':'numeric'}));return await _0x39cfc3['saveRevision']({'name':_0x175ae2}),_0x45aaf2['isReady']=!0x0,_0x45059a['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}}export{a as Revision,k as RevisionHistory,u as RevisionHistoryUI,l as RevisionTracker,d as RevisionViewer,ae as RevisionViewerLoadingOverlay,g as RevisionViewerUI,j as RevisionsRepository,w as RevisionsSidebar};
|
|
28
|
+
bt();static get['pluginName'](){return'RevisionsSidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[d];}constructor(_0x15c5b9){super(_0x15c5b9),this['_revisionViewer']=_0x15c5b9['plugins']['get'](d),this['_revisionsRepository']=this['_revisionViewer']['repository'],this['_sidebarView']=null;}['init'](){const _0x4cbb9c=this['_revisionsRepository']['_revisions'],_0x520444=this['_createRevisionActions'](),_0x34b9c2=this['editor']['config']['get']('revisionHistory.viewerSidebarContainer');this['_sidebarView']=new vi(this['editor']['locale'],_0x4cbb9c,_0x520444,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',(_0x2618f0,_0x139889)=>{_0x139889['revisionViews']['on']('add',(_0x493d07,_0x280965)=>{_0x280965['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)),_0x34b9c2['appendChild'](this['_sidebarView']['element']);}['destroy'](){this['_sidebarView']['element']['remove'](),this['_sidebarView']['destroy']();}['_handleEditorDataReady'](){const _0x175067=this['_revisionsRepository']['getRevision'](0x0);if(_0x175067){const _0xbcbc3d=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x175067['id']);this['_revisionViewer']['compare'](_0x175067,_0xbcbc3d);}}['_handleRevisionSelected'](_0x242a73,_0x76498b){const _0x1c7ad8=this['_revisionsRepository']['getRevision'](_0x76498b['id']),_0x3bbd94=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x1c7ad8['id']);this['_revisionViewer']['compare'](_0x1c7ad8,_0x3bbd94);}['_handleRevisionSetName'](_0x37d3ee,_0x8eff32){this['_revisionsRepository']['getRevision'](_0x8eff32['id'])['setName'](_0x8eff32['name']);}['_handleDiffChange'](_0x4e6569,_0x4b7c4b,_0x1f0046){const _0x5cc1f5=this['_revisionsRepository']['getRevisionsInDiff'](_0x1f0046);_0x5cc1f5['length']>0x2?(this['_sidebarView']['highlightRevisions'](_0x5cc1f5),this['_sidebarView']['selectRevision'](null)):(this['_sidebarView']['highlightRevisions']([]),this['_sidebarView']['selectRevision'](_0x5cc1f5[0x0]));}['_createRevisionActions'](){const _0x32f8b5=this['editor'],_0x368e14=w['availableRevisionActions'],_0x13939c=_0x32f8b5['config']['get']('revisionHistory.revisionActions')||w['defaultRevisionActions'];if(_0x13939c['length'])return _0x13939c['map'](_0x2b1cc0=>{const _0x2f62ed='string'==typeof _0x2b1cc0?Object['assign']({},_0x368e14[_0x2b1cc0]):_0x2b1cc0;return _0x2f62ed['action']=_0x2f62ed['action']['bind'](this,_0x32f8b5),_0x2f62ed['isVisible']&&(_0x2f62ed['isVisible']=_0x2f62ed['isVisible']['bind'](this,_0x32f8b5)),_0x2f62ed;});}}function bt(){return{'compareAgainstSelected':{'name':'Compare\x20against\x20selected','action':({plugins:_0xaf6829},_0x52df2e)=>{const _0x4c8ff8=_0xaf6829['get'](d),_0x4caaeb=_0x4c8ff8['repository'];let _0x15891c=_0x4c8ff8['diff']['newRevisionId'],_0x232b64=_0x52df2e['id'];_0x4caaeb['getIndex'](_0x15891c)>_0x4caaeb['getIndex'](_0x232b64)&&([_0x15891c,_0x232b64]=[_0x232b64,_0x15891c]),_0x4c8ff8['compare'](_0x15891c,_0x232b64);},'isVisible':({plugins:_0x330f2e},_0x27755b)=>{const _0x1d961c=_0x330f2e['get'](d);return!(_0x1d961c['repository']['getRevisionsInDiff'](_0x1d961c['diff'])['length']>0x2)&&!_0x27755b['isSelected'];}},'restoreRevision':{'name':'Restore\x20this\x20revision','action':(_0x5c373c,{id:_0x4e4e95})=>{_0x5c373c['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x4e4e95);},'isVisible':({plugins:_0x17012f},_0x22eb54)=>!!_0x17012f['get'](d)['repository']['getLaterVisibleRevision'](_0x22eb54['id'])},'nameRevision':{'name':'Name\x20this\x20revision','action':({plugins:_0x15018f},{id:_0xb124a,revisionNameView:_0x20a59f})=>{const _0x3e44a2=_0x15018f['get'](d),_0x56207f=_0x3e44a2['repository']['getEarlierVisibleRevision'](_0xb124a);_0x3e44a2['compare'](_0xb124a,_0x56207f),_0x20a59f['focus'](),_0x20a59f['fieldView']['select']();}}};}class rt extends st{['_view'];['_toolbarConfig'];['_elementReplacer'];get['view'](){return this['_view'];}constructor(_0x500101,_0x73b84d){super(_0x500101),this['_view']=_0x73b84d,this['_toolbarConfig']=ot(_0x500101['config']['get']('toolbar')),this['_elementReplacer']=new ht();}get['element'](){return this['view']['element'];}['init'](_0x3d8197){const _0x515401=this['editor'],_0x4f912b=this['view'],_0xaf9429=_0x515401['editing']['view'],_0x15ae74=_0x4f912b['editable'],_0x508f63=_0xaf9429['document']['getRoot']();_0x15ae74['name']=_0x508f63['rootName'],_0x4f912b['render']();const _0x40e72c=_0x15ae74['element'];this['setEditableElement'](_0x15ae74['name'],_0x40e72c),_0x4f912b['editable']['bind']('isFocused')['to'](this['focusTracker']),_0xaf9429['attachDomRoot'](_0x40e72c),this['_elementReplacer']['replace'](_0x3d8197,this['element']),this['_initToolbar'](),this['fire']('ready');}['destroy'](){super['destroy']();const _0x3134db=this['view'],_0x1efb95=this['editor']['editing']['view'];this['_elementReplacer']['restore'](),_0x1efb95['detachDomRoot'](_0x3134db['editable']['name']),_0x3134db['destroy']();}['_initToolbar'](){const _0x5b1f8a=this['view'];_0x5b1f8a['stickyPanel']['bind']('isActive')['to'](this['focusTracker'],'isFocused'),_0x5b1f8a['stickyPanel']['limiterElement']=_0x5b1f8a['element'],_0x5b1f8a['stickyPanel']['bind']('viewportTopOffset')['to'](this,'viewportOffset',({top:_0x4818b5})=>_0x4818b5),_0x5b1f8a['toolbar']['fillFromConfig'](this['_toolbarConfig'],this['componentFactory']),this['addToolbar'](_0x5b1f8a['toolbar']);}}class et extends ct{['_editable'];['stickyPanel'];['toolbar'];get['editable'](){return this['_editable'];}constructor(_0xc0fd5c,_0x49f86f,_0x3a40b4={}){super(_0xc0fd5c),this['stickyPanel']=new ut(_0xc0fd5c),this['toolbar']=new lt(_0xc0fd5c,{'shouldGroupWhenFull':_0x3a40b4['shouldToolbarGroupWhenFull']}),this['_editable']=new dt(_0xc0fd5c,_0x49f86f);}['render'](){super['render'](),this['stickyPanel']['content']['add'](this['toolbar']),this['top']['add'](this['stickyPanel']),this['main']['add'](this['editable']);}}class R extends/* #__PURE__ -- @preserve */
|
|
29
|
+
it(tt){['_ui'];get['ui'](){return this['_ui'];}constructor(_0x4af8f9,_0x31e6b8){super(_0x31e6b8),this['sourceElement']=_0x4af8f9,this['model']['document']['createRoot']();const _0x11a515=new et(this['locale'],this['editing']['view'],{'shouldToolbarGroupWhenFull':!0x0});this['_ui']=new rt(this,_0x11a515);}['destroy'](){return this['updateSourceElement'](),this['ui']['destroy'](),super['destroy']();}static async['create'](_0x5bbf6b,_0x473097){const _0x124856=new this(_0x5bbf6b,_0x473097);return await _0x124856['initPlugins'](),await _0x124856['ui']['init'](_0x5bbf6b),await _0x124856['data']['init'](_0x124856['config']['get']('initialData')||''),_0x124856['fire']('ready'),_0x124856;}}const p=['RevisionHistoryUI','RestrictedEditingMode'];class Rt extends _0x2c3b67{['result'];static get['pluginName'](){return'RevisionViewerIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x23f350){function _0x5066be(_0x409985){return _0x409985['map'](_0x1bd723=>String['fromCharCode'](_0x1bd723))['join']('');}super(_0x23f350),this['result']='end',_0x23f350[_0x5066be([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5066be([0x76,0x69,0x65,0x77])][_0x5066be([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x5066be([0x61,0x75,0x74,0x6f]),_0x23f350[_0x5066be([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x5066be([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x5066be([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x5066be([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x5066be([0x6f,0x6b])});}}class k extends _0x2c3b67{['_viewerEditor'];static get['pluginName'](){return'RevisionHistory';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[l,u];}constructor(_0x2b40c0){if(super(_0x2b40c0),!this['editor']['config']['get']('revisionHistory'))throw new _0x5afd49('revision-history-missing-configuration',this);this['_viewerEditor']=null,this['editor']['config']['define']('revisionHistory.showRevisionViewerCallback',_0x1f5b85=>this['_showRevisionViewer']({..._0x1f5b85,'translations':this['editor']['locale']['translations']})),this['editor']['config']['define']('revisionHistory.closeRevisionViewerCallback',_0x110b70=>this['_closeRevisionViewer'](_0x110b70)),this['editor']['config']['define']('revisionHistory.restoreRevisionCallback',_0x2a89a7=>this['_restoreRevision'](_0x2a89a7)),this['editor']['config']['define']('revisionHistory.requireRevisionName',!0x1),this['_enhanceShowRevisionViewerCallback'](),this['_enhanceCloseRevisionViewerCallback']();}set['adapter'](_0x4a52bb){this['editor']['plugins']['get']('RevisionTracker')['adapter']=_0x4a52bb;}get['adapter'](){return this['editor']['plugins']['get']('RevisionTracker')['adapter'];}['addRevisionData'](_0x5eb3d5){return this['editor']['plugins']['get']('RevisionTracker')['addRevisionData'](_0x5eb3d5);}['getRevision'](_0x3219ec){return this['editor']['plugins']['get']('RevisionsRepository')['getRevision'](_0x3219ec);}['getRevisions'](_0x4f0ce1){return this['editor']['plugins']['get']('RevisionsRepository')['getRevisions'](_0x4f0ce1||{'toJSON':!0x1});}['_getRevisionViewerEditorConfig'](){const _0x55f006=this['editor'],_0x300a5b=_0x430442(_0x55f006,p),_0x13986f=_0x55f006['plugins']['get']('RevisionTracker'),_0x36658f=_0x55f006['plugins']['get']('Users')['users'];return _0x300a5b['toolbar']=['exitToEditing','restoreRevision','changesNavigation'],delete _0x300a5b['lazyRoots'],(_0x300a5b['plugins']['push'](Rt,d,g,class extends _0x2c3b67{static get['requires'](){return[d,'Users'];}['init'](){const _0x2727de=this['editor']['plugins']['get']('Users');for(const _0x58e0dc of _0x36658f)_0x58e0dc['isAnonymous']||_0x2727de['getUser'](_0x58e0dc['id'])||_0x2727de['addUser'](_0x58e0dc);const _0x4eefd1=_0x13986f['repository']['getRevisions']();let _0xe53a9a=null;const _0x31e797=this['editor']['plugins']['get']('RevisionViewer');_0x31e797['adapter']=_0x13986f['adapter'],_0x31e797['bind']('isEnabled')['to'](_0x13986f),this['editor']['commands']['get']('restoreRevision')['bind']('isEnabled')['to'](_0x55f006,'isReadOnly',_0x32006e=>!_0x32006e);for(const _0x1f34e6 of _0x4eefd1){const _0x451696=null===_0x1f34e6['creator'];if(_0x451696&&_0x1f34e6['toVersion']===_0x1f34e6['fromVersion'])continue;const _0x3ef95e=_0x1f34e6['toJSON']();_0x31e797['addRevisionData'](_0x3ef95e,(_0x33330b,_0x2e155f,_0x40aa29)=>{if(_0x451696){if(_0xe53a9a)_0xe53a9a['_update'](_0x33330b,_0x2e155f);else{if(!_0x2e155f){const _0x2df5dc=_0x40aa29['toJSON']();_0x2df5dc['id']=_0x1de89c(),_0x13986f['saveRevision'](_0x2df5dc,_0x40aa29['toVersion'])['then'](_0x3f328d=>{_0xe53a9a=_0x3f328d;});}}}else _0x1f34e6['_update'](_0x33330b,_0x2e155f);});}}},w),_0x300a5b);}['_enhanceShowRevisionViewerCallback'](){const _0x26c92c=this['editor']['config']['get']('revisionHistory')['showRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.showRevisionViewerCallback',async()=>{this['editor']['enableReadOnlyMode']('revision-history-viewer-opened');const _0x4c649f=this['editor']['plugins']['get']('RevisionTracker');if(this['editor']['plugins']['has']('Autosave')){const _0x5a6ac0=this['editor']['plugins']['get']('Autosave');await _0x5a6ac0['save']();}else await _0x4c649f['update']();if(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('Dialog')){const _0x305820=this['editor']['plugins']['get']('Dialog');_0x305820['isOpen']&&_0x305820['hide']();}const _0xf7728f=this['_getRevisionViewerEditorConfig']();return _0x26c92c(_0xf7728f)['then'](_0xab4b85=>{return(this['_viewerEditor']=_0xab4b85,this['editor']['plugins']['has']('Annotations'))&&this['editor']['plugins']['get']('Annotations')['refreshVisibility'](),_0xab4b85;})['catch'](_0x558f96=>(console['error'](_0x558f96),this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),null));});}['_enhanceCloseRevisionViewerCallback'](){const _0x303d8a=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'](),_0x303d8a(this['_viewerEditor'])['then'](()=>{if(this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),this['_viewerEditor']=null,this['editor']['plugins']['has']('Annotations')){const _0x4b990f=this['editor']['plugins']['get']('Annotations');_0x4b990f['refreshVisibility'](),_0x4b990f['refreshPositioning']();}})));}['_showRevisionViewer'](_0x29bbfe){const _0x586c16=this['editor']['config']['get']('revisionHistory.editorContainer'),_0x4fcef3=this['editor']['config']['get']('revisionHistory.viewerContainer'),_0x2557f8=this['editor']['config']['get']('revisionHistory.viewerEditorElement');return R['create'](_0x2557f8,_0x29bbfe)['then'](_0x24c7b6=>(_0x4fcef3['style']['display']='block',_0x586c16['style']['display']='none',_0x24c7b6));}['_closeRevisionViewer'](_0x351f58){const _0x3b37a7=this['editor']['config']['get']('revisionHistory.editorContainer');return this['editor']['config']['get']('revisionHistory.viewerContainer')['style']['display']='none',_0x3b37a7['style']['display']='',_0x351f58['destroy']();}async['_restoreRevision'](_0x4827c3){const _0x594397=this['editor'],_0x5e4b88=this['_viewerEditor']['plugins']['get']('RevisionViewer'),_0x1879bd=_0x594397['plugins']['get']('RevisionTracker'),_0x4b05b6=_0x5e4b88['repository']['getRevision'](_0x4827c3);let _0x323649,_0x1a5696,_0x488e23;try{_0x323649=await _0x5e4b88['getRevisionData'](_0x4b05b6),_0x1a5696=await _0x5e4b88['getRevisionRootsAttributes'](_0x4b05b6);}catch(_0x563cd2){return void console['error'](_0x563cd2);}_0x594397['model']['change'](_0x53b220=>{for(const _0x388de5 of Array['from'](_0x594397['model']['markers']['getMarkersGroup']('restrictedEditingException')))_0x53b220['removeMarker'](_0x388de5);}),_0x5e4b88['isReady']=!0x1,_0x594397['model']['enqueueChange'](_0x421769=>{_0x421769['setSelection'](null),_0x421769['removeSelectionAttribute'](_0x594397['model']['document']['selection']['getAttributeKeys']());const _0x134ea5=Object['keys'](_0x323649);for(const _0x467a50 of _0x594397['model']['document']['roots'])'$graveyard'!=_0x467a50['rootName']&&_0x467a50['isAttached']()&&!_0x134ea5['includes'](_0x467a50['rootName'])&&_0x421769['detachRoot'](_0x467a50);for(const _0x37e8fd of _0x134ea5){let _0x58d7b5=_0x594397['model']['document']['getRoot'](_0x37e8fd);_0x58d7b5&&_0x58d7b5['isAttached']()||(_0x58d7b5=_0x421769['addRoot'](_0x37e8fd));const _0x3d21bd=_0x1a5696[_0x37e8fd],_0x4131c6=Object['keys'](_0x3d21bd),_0x2dd018=_0x323649[_0x37e8fd];for(const _0x5edcb4 of _0x58d7b5['getAttributeKeys']())_0x4131c6['includes'](_0x5edcb4)||_0x421769['removeAttribute'](_0x5edcb4,_0x58d7b5);for(const _0xb304bb of _0x4131c6)_0x421769['setAttribute'](_0xb304bb,_0x1a5696[_0x37e8fd][_0xb304bb],_0x58d7b5);_0x421769['remove'](_0x421769['createRangeIn'](_0x58d7b5)),_0x421769['insert'](_0x594397['data']['parse'](_0x2dd018,_0x58d7b5),_0x58d7b5,0x0);}});const _0x8712ac=m(_0x594397['locale'],'Restored');if(_0x4b05b6['name'])_0x488e23=-0x1==_0x4b05b6['name']['indexOf'](_0x8712ac)?_0x8712ac+':\x20'+_0x4b05b6['name']:_0x4b05b6['name'];else _0x488e23=_0x8712ac+':\x20'+(_0x4b05b6['createdAt']['toLocaleDateString'](_0x594397['locale']['uiLanguage'],{'month':'long','day':'numeric'})+',\x20'+_0x4b05b6['createdAt']['toLocaleTimeString'](_0x594397['locale']['uiLanguage'],{'hour':'numeric','minute':'numeric'}));return await _0x1879bd['saveRevision']({'name':_0x488e23}),_0x5e4b88['isReady']=!0x0,_0x594397['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}}export{a as Revision,k as RevisionHistory,u as RevisionHistoryUI,l as RevisionTracker,d as RevisionViewer,ie as RevisionViewerLoadingOverlay,g as RevisionViewerUI,j as RevisionsRepository,w as RevisionsSidebar};
|