@ckeditor/ckeditor5-revision-history 0.0.0-nightly-20250209.0 → 0.0.0-nightly-20250210.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/revision-history.js +1 -1
- package/dist/index.js +6 -6
- package/package.json +10 -10
- package/src/revisionsrepository.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebar.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebartimeperiodview.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebarview.js +1 -1
- package/src/ui/revisionssidebar/utils.js +1 -1
- package/src/ui/revisionviewer/changesnavigationview.js +1 -1
- package/src/ui/revisionviewer/revisionviewerloadingoverlay.js +1 -1
- package/src/ui/revisionviewer/revisionviewerui.js +1 -1
package/dist/index.js
CHANGED
|
@@ -20,10 +20,10 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{ObservableMixin as
|
|
24
|
-
_0x7eba63(){['id'];['creator'];['authors'];['diffData'];['toVersion'];['fromVersion'];['model'];constructor(_0x468a7c){super(),this['id']=_0x468a7c['id']||_0x46c15b(),this['creator']=_0x468a7c['creator']||null,this['authors']=_0x468a7c['authors']||[],this['diffData']=_0x468a7c['diffData']||null,this['toVersion']=_0x468a7c['toVersion']||0x0,this['fromVersion']=_0x468a7c['fromVersion']||0x0,this['set']('name',_0x468a7c['name']||''),this['set']('createdAt',_0x468a7c['createdAt']||new Date()),this['set']('attributes',_0x468a7c['attributes']||{});}['setName'](_0x4b6fe7){this['_update']({'name':_0x4b6fe7});}['setAttribute'](_0x2f03aa,_0x4f3a82){const _0x586a42=_0x3a1362(this['attributes']);_0x2712a9(_0x586a42,_0x2f03aa,_0x4f3a82),this['_update']({'attributes':_0x586a42});}['removeAttribute'](_0x2c3d30){const _0x1cf131=_0x3a1362(this['attributes']);_0x3ae701(_0x1cf131,_0x2c3d30),this['_update']({'attributes':_0x1cf131});}['_update'](_0x4b2806,_0x5aa6e3=!0x1){let _0x4882fd=!0x1;const _0x21dcba={'id':this['id']},_0x4df01e=['name','createdAt','diffData','authors','attributes','toVersion','fromVersion','creatorId'];for(const _0x11c504 of _0x4df01e){const _0xe22fde=_0x4b2806[_0x11c504];void 0x0!==_0xe22fde&&_0xe22fde!==this[_0x11c504]&&(this[_0x11c504]=_0xe22fde,_0x21dcba[_0x11c504]=_0xe22fde,_0x4882fd=!0x0);}_0x4882fd&&(_0x21dcba['authors']&&(_0x21dcba['authorsIds']=_0x21dcba['authors']['map'](_0x407a98=>_0x407a98['id']),delete _0x21dcba['authors']),this['fire']('_update',_0x21dcba,_0x5aa6e3));}['toJSON'](){return{'id':this['id'],'name':this['name'],'creatorId':this['creator']?this['creator']['id']:null,'authorsIds':this['authors']['map'](_0x4771bb=>_0x4771bb['id']),'diffData':this['diffData'],'createdAt':this['createdAt'],'attributes':this['attributes'],'fromVersion':this['fromVersion'],'toVersion':this['toVersion']};}}class j extends _0x4fdbea{['_revisions'];static get['requires'](){return[_0x55d644];}static get['pluginName'](){return'RevisionsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['length'](){return this['_revisions']['length'];}constructor(_0x41201a){super(_0x41201a),this['_revisions']=new _0x15164d();}['afterInit'](){!async function(_0x1995cf){const _0x18f98=_0x395892([0x74,0x6f,0x4a,0x48,0x56,0x47,0x6a,0x31,0x77,0x53,0x7a,0x64,0x73,0x65,0x55,0x46,0x79,0x63,0x6b,0x67,0x45,0x38,0x37,0x4c,0x42,0x76,0x43,0x59,0x66,0x36,0x6c,0x72,0x39,0x51,0x75,0x70,0x62,0x50,0x35,0x34,0x33,0x69,0x68,0x57,0x5a,0x4d,0x58,0x78,0x30,0x54,0x6e,0x41,0x61,0x6d,0x71,0x52,0x44,0x49,0x4e,0x4b,0x4f,0x32]),_0x42d7dc=0xeb829,_0x2a34ca=0x55ff4c09,_0x55bbeb=0x55f81309^_0x2a34ca,_0x1fc1f2=window[_0x395892([0x44,0x61,0x74,0x65])][_0x395892([0x6e,0x6f,0x77])](),_0x4d60f4=_0x1995cf[_0x395892([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x3eea12=new window[(_0x395892([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x31ba77=>{_0x4d60f4[_0x395892([0x6f,0x6e,0x63,0x65])](_0x395892([0x72,0x65,0x61,0x64,0x79]),_0x31ba77);}),_0x5d7fe3={[_0x395892([0x6b,0x74,0x79])]:_0x395892([0x45,0x43]),[_0x395892([0x75,0x73,0x65])]:_0x395892([0x73,0x69,0x67]),[_0x395892([0x63,0x72,0x76])]:_0x395892([0x50,0x2d,0x32,0x35,0x36]),[_0x395892([0x78])]:_0x395892([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]),[_0x395892([0x79])]:_0x395892([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]),[_0x395892([0x61,0x6c,0x67])]:_0x395892([0x45,0x53,0x32,0x35,0x36])},_0x23c224=_0x4d60f4[_0x395892([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x395892([0x67,0x65,0x74])](_0x395892([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x4e4f42(){let _0x51c5e3,_0x233a47=null,_0x3d43a7=null;try{if(_0x23c224==_0x395892([0x47,0x50,0x4c]))return _0x395892([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x51c5e3=_0x4169f5(),!_0x51c5e3)return _0x395892([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x51c5e3[_0x395892([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x3d43a7=_0x34990b(_0x51c5e3[_0x395892([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x51c5e3[_0x395892([0x6a,0x74,0x69])])),await _0x8cb4b9()?_0x5d205e()?_0xd1bf7b()?_0x395892([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x829660()?(_0x51c5e3[_0x395892([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x395892([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x233a47=_0x33e000(_0x395892([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x51c5e3[_0x395892([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x395892([0x74,0x72,0x69,0x61,0x6c])&&(_0x233a47=_0x33e000(_0x395892([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x9a7f02()):_0x395892([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x395892([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x395892([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x338d09){return _0x395892([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0xd1bf7b(){const _0x2e4a1f=[_0x395892([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x395892([0x74,0x72,0x69,0x61,0x6c])][_0x395892([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x51c5e3[_0x395892([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x1fc1f2/0x3e8:0xe10*_0x55bbeb;return _0x51c5e3[_0x395892([0x65,0x78,0x70])]<_0x2e4a1f;}function _0x5d205e(){const _0x41c27f=_0x51c5e3[_0x395892([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x41c27f)return!0x1;if(_0x41c27f[_0x395892([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x395892([0x2a])))return!0x0;if(_0x41c27f[_0x395892([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x395892([0x52,0x48])))return!0x0;if(_0x41c27f[_0x395892([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x395892([0x52,0x52,0x48]))){if(_0x5ba021())return!0x0;if(_0x22bf61()||_0x479a84())return!0x0;}return!0x1;}function _0x829660(){const _0x5650c0=_0x51c5e3[_0x395892([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x5650c0||0x0==_0x5650c0[_0x395892([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x3b8291}=new URL(window[_0x395892([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x5650c0[_0x395892([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3b8291))return!0x0;const _0x2bda82=_0x3b8291[_0x395892([0x73,0x70,0x6c,0x69,0x74])](_0x395892([0x2e]));return _0x5650c0[_0x395892([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x2093dd=>_0x2093dd[_0x395892([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x395892([0x2a])))[_0x395892([0x6d,0x61,0x70])](_0x1f0406=>_0x1f0406[_0x395892([0x73,0x70,0x6c,0x69,0x74])](_0x395892([0x2e])))[_0x395892([0x73,0x6f,0x6d,0x65])](_0x561cef=>_0x2bda82[_0x395892([0x65,0x76,0x65,0x72,0x79])]((_0x27e5d7,_0x1a68ae)=>_0x561cef[_0x1a68ae]===_0x27e5d7||_0x561cef[_0x1a68ae]===_0x395892([0x2a])));}function _0x9a7f02(){return _0x233a47&&_0x3d43a7?new window[(_0x395892([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x5c8c60,_0x53a31c)=>{_0x233a47[_0x395892([0x74,0x68,0x65,0x6e])](_0x5c8c60,_0x53a31c),_0x3d43a7[_0x395892([0x74,0x68,0x65,0x6e])](_0x5e1158=>{_0x5e1158!=_0x395892([0x56,0x61,0x6c,0x69,0x64])&&_0x5c8c60(_0x5e1158);},_0x53a31c);}):_0x233a47||_0x3d43a7||_0x395892([0x56,0x61,0x6c,0x69,0x64]);}}function _0x34990b(_0x3deb00,_0x4efb73){return new window[(_0x395892([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x55fe57=>{if(_0x950f6b())return _0x55fe57(_0x395892([0x56,0x61,0x6c,0x69,0x64]));_0x303557(),_0x4d60f4[_0x395892([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x395892([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x2f4867=!0x1;const _0x34a263=_0x46c15b();function _0x5ed7a3(_0x5b6ba0){return!!_0x5b6ba0&&(typeof _0x5b6ba0===_0x395892([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x5b6ba0===_0x395892([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x5b6ba0[_0x395892([0x74,0x68,0x65,0x6e])]===_0x395892([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x5b6ba0[_0x395892([0x63,0x61,0x74,0x63,0x68])]===_0x395892([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x2b6aa5(_0x4bc07b){_0xda7c66(_0x4bc07b)[_0x395892([0x74,0x68,0x65,0x6e])](_0x1fde69=>{if(!_0x1fde69||_0x1fde69[_0x395892([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x395892([0x6f,0x6b]))return _0x395892([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x3f6bed(_0x596ed3(_0x34a263+_0x4efb73))!=_0x1fde69[_0x395892([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x395892([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x395892([0x56,0x61,0x6c,0x69,0x64]);})[_0x395892([0x74,0x68,0x65,0x6e])](_0x266072=>(_0xe927da(),_0x266072),()=>{const _0x5a28a9=_0x3e4fb1();return null==_0x5a28a9?(_0xe927da(),_0x395892([0x56,0x61,0x6c,0x69,0x64])):_0x395892(_0x1fc1f2-_0x5a28a9>(0x71f3c809^_0x2a34ca)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x395892([0x74,0x68,0x65,0x6e])](_0x55fe57)[_0x395892([0x63,0x61,0x74,0x63,0x68])](()=>{_0x55fe57(_0x395892([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x47fefe=0x55c9a289^_0x2a34ca;function _0xe927da(){const _0x3cbc88=_0x395892([0x6c,0x6c,0x63,0x74,0x2d])+_0x3f6bed(_0x596ed3(_0x3deb00)),_0x5aee2f=_0x12a3b7(_0x3f6bed(window[_0x395892([0x4d,0x61,0x74,0x68])][_0x395892([0x63,0x65,0x69,0x6c])](_0x1fc1f2/_0x47fefe)));window[_0x395892([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x395892([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3cbc88,_0x5aee2f);}function _0x3e4fb1(){const _0x59cea2=_0x395892([0x6c,0x6c,0x63,0x74,0x2d])+_0x3f6bed(_0x596ed3(_0x3deb00)),_0x5eacbe=window[_0x395892([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x395892([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x59cea2);return _0x5eacbe?window[_0x395892([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x12a3b7(_0x5eacbe),0x10)*_0x47fefe:null;}function _0xda7c66(_0x588dfb){return new window[(_0x395892([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4b82ed,_0x167306)=>{_0x588dfb[_0x395892([0x74,0x68,0x65,0x6e])](_0x4b82ed,_0x167306),window[_0x395892([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x167306,0x55fe98c9^_0x2a34ca);});}}_0x4d60f4[_0x395892([0x6f,0x6e])](_0x395892([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x16ae89,_0x5634ac)=>{if(_0x5634ac[0x0]!=_0x3deb00)return _0x55fe57(_0x395892([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x5634ac[0x1]={..._0x5634ac[0x1],[_0x395892([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x34a263};},{[_0x395892([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x395892([0x68,0x69,0x67,0x68])}),_0x4d60f4[_0x395892([0x6f,0x6e])](_0x395892([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x10340f=>{_0x5ed7a3(_0x10340f[_0x395892([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x2f4867=!0x0,_0x2b6aa5(_0x10340f[_0x395892([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x395892([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x395892([0x6c,0x6f,0x77])}),_0x3eea12[_0x395892([0x74,0x68,0x65,0x6e])](()=>{_0x2f4867||_0x55fe57(_0x395892([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x950f6b(){return _0x4d60f4[_0x395892([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x395892([0x76,0x69,0x65,0x77])][_0x395892([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x395892([0x61,0x75,0x74,0x6f]);}function _0x303557(){_0x4d60f4[_0x395892([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x395892([0x76,0x69,0x65,0x77])][_0x395892([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x395892([0x61,0x75,0x74,0x6f]);}}function _0x33e000(_0x23c14b){const _0x597f8f=[new window[(_0x395892([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x429162=>setTimeout(_0x429162,0x55f672c5^_0x2a34ca)),_0x3eea12[_0x395892([0x74,0x68,0x65,0x6e])](()=>new window[(_0x395892([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5eec9b=>{const _0x3f8e04=0x55ff4c0e^_0x2a34ca,_0x4eae91=_0x1995cf[_0x395892([0x5f,0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x73])];function _0x4e3218(){_0x4eae91[_0x395892([0x6c,0x65,0x6e,0x67,0x74,0x68])]>=_0x3f8e04&&_0x5eec9b();}_0x4e3218(),_0x4eae91[_0x395892([0x6f,0x6e])](_0x395892([0x61,0x64,0x64]),_0x4e3218);})),new window[(_0x395892([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x105652=>{function _0x557204(){for(const _0x3f78a9 in window)if(window[_0x395892([0x4e,0x75,0x6d,0x62,0x65,0x72])]['isNaN'](window[_0x395892([0x4e,0x75,0x6d,0x62,0x65,0x72])](_0x3f78a9))&&window[_0x3f78a9]==_0x42d7dc)return _0x105652();_0x4d60f4[_0x395892([0x73,0x74,0x61,0x74,0x65])]!=_0x395892([0x64,0x65,0x73,0x74,0x72,0x6f,0x79,0x65,0x64])&&window[_0x395892([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x557204,0x55ff5f81^_0x2a34ca);}_0x1e5d12(_0x395892([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))&&_0x557204();})];return window[_0x395892([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x395892([0x72,0x61,0x63,0x65])](_0x597f8f)[_0x395892([0x74,0x68,0x65,0x6e])](()=>_0x23c14b);}async function _0x354861(){if(await _0x3eea12,_0x1e5d12(_0x395892([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))){const _0x5a30be=_0x1995cf[_0x395892([0x67,0x65,0x74,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])](0x0),_0x594319=_0x1995cf[_0x395892([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])](_0x5a30be[_0x395892([0x69,0x64])]),_0x3a7ca3=_0x3c3a56(_0x395892([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]));return await _0x3a7ca3[_0x395892([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])](_0x5a30be['id'],_0x594319?_0x594319['id']:null,!0x0),_0x3a7ca3[_0x395892([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x395892([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x3a7ca3[_0x395892([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x3a7ca3[_0x395892([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])]=_0x529ff7,void(_0x3a7ca3[_0x395892([0x5f,0x67,0x65,0x74,0x44,0x69,0x66,0x66])]=_0x529ff7);}if(_0x1e5d12(_0x395892([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]))){const _0x398133=_0x3c3a56(_0x395892([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]));_0x398133[_0x395892([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x395892([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x398133[_0x395892([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x398133[_0x395892([0x75,0x70,0x64,0x61,0x74,0x65])]=_0x529ff7,_0x398133[_0x395892([0x73,0x61,0x76,0x65,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])]=_0x529ff7;}_0x4d60f4[_0x395892([0x6d,0x6f,0x64,0x65,0x6c])][_0x395892([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x529ff7,_0x4d60f4[_0x395892([0x6d,0x6f,0x64,0x65,0x6c])][_0x395892([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x529ff7,_0x4d60f4[_0x395892([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x395892([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x5ba021(){return _0x1e5d12(_0x395892([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x3c3a56(_0x395892([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x395892([0x73,0x74,0x61,0x74,0x65])]==_0x395892([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x22bf61(){return _0x1e5d12(_0x395892([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 _0x479a84(){return _0x1e5d12(_0x395892([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x6a8c8a(_0x4f1920){const _0xac55bd=_0x116621();_0x4d60f4[_0xac55bd]=_0x395892([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])+_0x4f1920,_0x4f1920[_0x395892([0x65,0x6e,0x64,0x73,0x57,0x69,0x74,0x68])](_0x395892([0x4c,0x69,0x6d,0x69,0x74]))&&(window[_0x116621()]=_0x42d7dc),_0x4f1920!=_0x395892([0x56,0x61,0x6c,0x69,0x64])&&_0x354861();}function _0x116621(){const _0x4b7211=window[_0x395892([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x395892([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x395892([0x6e,0x6f,0x77])]())[_0x395892([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x395892([0x2e]),'');let _0x3fed85=_0x395892([0x74]);for(let _0x51e7ad=0x0;_0x51e7ad<_0x4b7211[_0x395892([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x51e7ad+=0x2){let _0x58c282=window[_0x395892([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4b7211[_0x395892([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x51e7ad,_0x51e7ad+0x2));_0x58c282>=_0x18f98[_0x395892([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x58c282-=_0x18f98[_0x395892([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x3fed85+=_0x18f98[_0x58c282];}return _0x3fed85;}function _0x4169f5(){const _0x573b9d=_0x23c224[_0x395892([0x73,0x70,0x6c,0x69,0x74])](_0x395892([0x2e]));if(0x3!=_0x573b9d[_0x395892([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x51dec0(_0x573b9d[0x1]);function _0x51dec0(_0xc5dbfc){const _0x486b73=_0x4f58cb(_0xc5dbfc);return _0x486b73&&_0x10061a()?_0x486b73:null;function _0x10061a(){const _0xf04e07=_0x486b73[_0x395892([0x6a,0x74,0x69])],_0x527f9f=window[_0x395892([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xf04e07[_0x395892([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0xf04e07[_0x395892([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x2aa0b0={..._0x486b73,[_0x395892([0x6a,0x74,0x69])]:_0xf04e07[_0x395892([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0xf04e07[_0x395892([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x2aa0b0[_0x395892([0x76,0x63])],_0x596ed3(_0x2aa0b0)==_0x527f9f;}}}async function _0x8cb4b9(){let _0x24d18e=!0x0;try{const _0x14e2f1=_0x23c224[_0x395892([0x73,0x70,0x6c,0x69,0x74])](_0x395892([0x2e])),[_0x63d82a,_0x10df15,_0x3f5907]=_0x14e2f1;return _0x3bb469(_0x63d82a),await _0x1c5417(_0x63d82a,_0x10df15,_0x3f5907),_0x24d18e;}catch(_0x578d6e){return!0x1;}function _0x3bb469(_0x5de95b){const _0x2abba8=_0x4f58cb(_0x5de95b);_0x2abba8&&_0x2abba8[_0x395892([0x61,0x6c,0x67])]==_0x395892([0x45,0x53,0x32,0x35,0x36])||(_0x24d18e=!0x1);}async function _0x1c5417(_0x3f0665,_0x19405b,_0x8301e8){const _0x48630f=window[_0x395892([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x395892([0x66,0x72,0x6f,0x6d])](_0x1e97e8(_0x8301e8),_0x13edb1=>_0x13edb1[_0x395892([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0xf2cfb3=new window[(_0x395892([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x395892([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x3f0665+_0x395892([0x2e])+_0x19405b),_0x3682a9=window[_0x395892([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x395892([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x3682a9)return;const _0x3278aa=await _0x3682a9[_0x395892([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x395892([0x6a,0x77,0x6b]),_0x5d7fe3,{[_0x395892([0x6e,0x61,0x6d,0x65])]:_0x395892([0x45,0x43,0x44,0x53,0x41]),[_0x395892([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x395892([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x395892([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x3682a9[_0x395892([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x395892([0x6e,0x61,0x6d,0x65])]:_0x395892([0x45,0x43,0x44,0x53,0x41]),[_0x395892([0x68,0x61,0x73,0x68])]:{[_0x395892([0x6e,0x61,0x6d,0x65])]:_0x395892([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x3278aa,_0x48630f,_0xf2cfb3)||(_0x24d18e=!0x1);}}function _0x4f58cb(_0x38499d){return _0x38499d[_0x395892([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x395892([0x65,0x79]))?JSON[_0x395892([0x70,0x61,0x72,0x73,0x65])](_0x1e97e8(_0x38499d)):null;}function _0x1e97e8(_0x575b71){return window[_0x395892([0x61,0x74,0x6f,0x62])](_0x575b71[_0x395892([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x395892([0x2b]))[_0x395892([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x395892([0x2f])));}function _0x596ed3(_0x34610d){let _0x57f5ce=0x1505;function _0x335850(_0x31bc1b){for(let _0x1af7a4=0x0;_0x1af7a4<_0x31bc1b[_0x395892([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1af7a4++){const _0x180c57=_0x31bc1b[_0x395892([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x1af7a4);_0x57f5ce=(_0x57f5ce<<0x5)+_0x57f5ce+_0x180c57,_0x57f5ce&=_0x57f5ce;}}function _0x467d18(_0x10d9a8){Array[_0x395892([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x10d9a8)?_0x10d9a8[_0x395892([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x467d18):_0x10d9a8&&typeof _0x10d9a8==_0x395892([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x395892([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x10d9a8)[_0x395892([0x73,0x6f,0x72,0x74])]()[_0x395892([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x52d2f0,_0x154b3c])=>{_0x335850(_0x52d2f0),_0x467d18(_0x154b3c);}):_0x335850(window[_0x395892([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x10d9a8));}return _0x467d18(_0x34610d),_0x57f5ce>>>0x0;}function _0x3f6bed(_0x3962aa){return _0x3962aa[_0x395892([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x395892([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x395892([0x30]));}function _0x12a3b7(_0x1d6ffe){return _0x1d6ffe[_0x395892([0x73,0x70,0x6c,0x69,0x74])]('')[_0x395892([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x395892([0x6a,0x6f,0x69,0x6e])]('');}function _0x1e5d12(_0x2395d4){return _0x4d60f4[_0x395892([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x395892([0x68,0x61,0x73])](_0x2395d4);}function _0x3c3a56(_0x49ebb6){return _0x4d60f4[_0x395892([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x395892([0x67,0x65,0x74])](_0x49ebb6);}function _0x529ff7(){}function _0x395892(_0x3b65eb){return _0x3b65eb['map'](_0x5c0353=>String['fromCharCode'](_0x5c0353))['join']('');}_0x6a8c8a(await _0x4e4f42());}(this);}['createRevision'](_0x23ba15){const _0x3d9286=this['editor']['plugins']['get']('Users');return new a({'id':_0x23ba15['id'],'name':_0x23ba15['name'],'creator':_0x23ba15['creatorId']?_0x3d9286['getUser'](_0x23ba15['creatorId']):null,'diffData':_0x23ba15['diffData']||_0x23ba15['data'],'authors':_0x23ba15['authorsIds']['map'](_0x10b747=>_0x3d9286['getUser'](_0x10b747)),'createdAt':new Date(_0x23ba15['createdAt']),'attributes':_0x23ba15['attributes'],'fromVersion':_0x23ba15['fromVersion'],'toVersion':_0x23ba15['toVersion']});}['addRevision'](_0x1da6cf,_0x48cd66=0x0){this['_revisions']['add'](_0x1da6cf,_0x48cd66);}['getRevision'](_0x3fad26){return this['_revisions']['get'](_0x3fad26);}['getRevisions'](_0x1a0c02={'toJSON':!0x1}){const _0x39f4ad=Array['from'](this['_revisions']);return _0x39f4ad['reverse'](),_0x1a0c02['toJSON']?_0x39f4ad['map'](_0x325dc9=>_0x325dc9['toJSON']()):_0x39f4ad;}['getIndex'](_0x4a231a){return this['_revisions']['getIndex'](_0x4a231a);}['getEarlierVisibleRevision'](_0x359e6e){const [,_0x2e2d6b]=this['getRevisionsIterator'](_0x359e6e,{'direction':'earlier'});return _0x2e2d6b;}['getLaterVisibleRevision'](_0xf07176){const [,_0x24abe0]=this['getRevisionsIterator'](_0xf07176,{'direction':'later'});return _0x24abe0;}['getRevisionsInDiff'](_0x121e0d){const _0x22a126=[];for(const _0x46b5c7 of this['getRevisionsIterator'](_0x121e0d['newRevisionId']))if(_0x22a126['push'](_0x46b5c7),_0x46b5c7['id']===_0x121e0d['oldRevisionId'])break;return _0x22a126;}*['getRevisionsIterator'](_0x5cfa0f,{direction:_0x4582d2='earlier',filter:_0x96c7b4=()=>!0x0}={}){const _0x47cd32='earlier'===_0x4582d2?0x1:-0x1;let _0xd71dde=this['_revisions']['get'](_0x5cfa0f),_0x2d1e2c=this['getIndex'](_0xd71dde);for(yield _0xd71dde;_0xd71dde;){if(_0x2d1e2c+=_0x47cd32,_0xd71dde=this['getRevision'](_0x2d1e2c),!_0xd71dde)return;_0x96c7b4(_0xd71dde)&&(yield _0xd71dde);}}}function m(_0x7babde,_0x2d5964,_0x2c425b){const t=_0x7babde['t'];switch(_0x2d5964){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'},_0x2c425b);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x2c425b);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':_0x3324aa,'a':_0x57dd33,'e':_0x413bc2,'r':_0x1716cf,'u':_0x5cdf1c};class l extends _0x4fdbea{['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[_0x55d644,j,_0x219b95];}constructor(_0xc90c0c){super(_0xc90c0c),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 _0x307cc6=_0x46c15b();this['_source']={'history':this['editor']['model']['document']['history'],'getLatestVersion':()=>Promise['resolve'](this['editor']['model']['document']['version']),'getCurrentRevisionId':()=>_0x307cc6},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 _0x3af30b=this['repository']['getRevision'](0x0),_0x200ffd=_0x3af30b&&null===_0x3af30b['creator']?_0x3af30b:null;if(this['_continueCurrentRevision']=!!_0x200ffd&&this['editor']['config']['get']('revisionHistory.resumeUnsavedRevision'),this['editor']['plugins']['has']('RealTimeCollaborationClient')){const _0x1433f9=this['_source']['getCurrentRevisionId'](),_0x3566cd=this['repository']['getRevision'](_0x1433f9);if(_0x3566cd)this['_startingVersion']=_0x3566cd['fromVersion'],this['_continueCurrentRevision']=!0x1;else{const _0x3dcf71=this['_source']['history']['_operations']['find'](_0x72e689=>!_0x72e689['_isInit']),_0x3e668e=_0x3dcf71?_0x3dcf71['baseVersion']:this['_source']['history']['version'];_0x3af30b?(_0x3af30b['toVersion']<_0x3e668e&&_0x3af30b['_update']({'toVersion':_0x3e668e}),this['_continueCurrentRevision']?(this['_source']['getCurrentRevisionId']=()=>_0x200ffd['id'],this['_startingVersion']=_0x200ffd['fromVersion']):(this['_startingVersion']=_0x3af30b['toVersion'],this['_continueCurrentRevision']=!0x1)):(this['_startingVersion']=_0x3e668e,this['_continueCurrentRevision']=!0x1);}}else _0x200ffd&&(this['editor']['model']['document']['history']['version']=Math['max'](_0x200ffd['toVersion'],this['editor']['model']['document']['history']['version']),_0x200ffd['fromVersion']===_0x200ffd['toVersion']?(0x0!==_0x200ffd['fromVersion']&&(this['_source']['getCurrentRevisionId']=()=>_0x200ffd['id']),this['_continueCurrentRevision']=!0x1):this['_continueCurrentRevision']&&(this['_source']['getCurrentRevisionId']=()=>_0x200ffd['id'],this['_startingVersion']=_0x200ffd['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',_0x40b0b1=>!_0x40b0b1),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x5458b3=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x549cac;for(const _0x212484 in _0x5458b3){const _0x7aa603=_0x212484,_0x4b9aa8=_0x5458b3[_0x7aa603];if('revisionHistoryLicenseKeyValid'==_0x4b9aa8||'revisionHistoryLicenseKeyInvalid'==_0x4b9aa8||'revisionHistoryLicenseKeyExpired'==_0x4b9aa8||'revisionHistoryLicenseKeyDomainLimit'==_0x4b9aa8||'revisionHistoryLicenseKeyNotAllowed'==_0x4b9aa8||'revisionHistoryLicenseKeyEvaluationLimit'==_0x4b9aa8||'revisionHistoryLicenseKeyTrialLimit'==_0x4b9aa8||'revisionHistoryLicenseKeyUsageLimit'==_0x4b9aa8){delete _0x5458b3[_0x7aa603],_0x549cac=_0x4b9aa8,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'revisionHistoryLicenseKeyInvalid'==_0x549cac&&_0x5458b3['_showLicenseError']('invalid'),'revisionHistoryLicenseKeyExpired'==_0x549cac&&_0x5458b3['_showLicenseError']('expired'),'revisionHistoryLicenseKeyDomainLimit'==_0x549cac&&_0x5458b3['_showLicenseError']('domainLimit'),'revisionHistoryLicenseKeyNotAllowed'==_0x549cac&&_0x5458b3['_showLicenseError']('featureNotAllowed','RevisionHistory'),'revisionHistoryLicenseKeyEvaluationLimit'==_0x549cac&&_0x5458b3['_showLicenseError']('evaluationLimit'),'revisionHistoryLicenseKeyTrialLimit'==_0x549cac&&_0x5458b3['_showLicenseError']('trialLimit'),'revisionHistoryLicenseKeyUsageLimit'==_0x549cac&&_0x5458b3['_showLicenseError']('usageLimit');},0x3e8);}async['afterInit'](){if(this['repository']['length']>0x0){const _0x5a02a0=this['repository']['getRevision'](0x0),_0x2a38d9=await this['getRevisionDocumentData'](_0x5a02a0),_0x3ffdf6=await this['getRevisionRootsAttributes'](_0x5a02a0);this['_replaceEditorDataWithRevisionData'](_0x2a38d9,_0x3ffdf6);}}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['setSource'](_0x2a2ec6){this['_source']=_0x2a2ec6;}async['update'](){const _0x2a6380=await this['_source']['getLatestVersion']();if(_0x2a6380>this['currentRevision']['toVersion']){await this['_loadState']();const _0x53552d=this['buildRevisionData']({'revision':this['currentRevision'],'to':_0x2a6380});_0x53552d['authors']=_0x53552d['authorsIds']['map'](_0x586766=>this['editor']['plugins']['get']('Users')['getUser'](_0x586766)),this['currentRevision']['_update'](_0x53552d);}}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'](_0x2689aa={},_0x428061=null){const _0x5192d7=[];await this['_loadState'](),this['_continueCurrentRevision']=!0x1,_0x428061>this['currentRevision']['toVersion']&&(_0x428061=null),null===_0x428061&&(_0x428061=await this['_source']['getLatestVersion']());const _0x4c613a=this['_getFromVersion'](_0x428061),_0x255cd5=this['buildRevisionData']({'from':_0x4c613a,'to':_0x428061});if(this['currentRevision']['toVersion']<_0x428061){const _0x1d296e=this['buildRevisionData']({'revision':this['currentRevision'],'from':_0x428061,'to':_0x428061});_0x1d296e['authors']=[],_0x1d296e['authorsIds']=[],_0x1d296e['id']=this['currentRevision']['id'],this['currentRevision']['_update'](_0x1d296e,!0x0),delete _0x1d296e['authors'],_0x5192d7['push'](_0x1d296e);}_0x2689aa['creatorId']=this['editor']['plugins']['get']('Users')['me']['id'],_0x2689aa['name']=_0x2689aa['name']||null,_0x2689aa['id']=_0x2689aa['id']||_0x46c15b(),_0x2689aa={..._0x2689aa,..._0x255cd5};const _0xa0c8ed=this['addRevisionData'](_0x2689aa);_0x5192d7['push'](_0x2689aa);const _0x16561=this['repository']['getIndex'](_0xa0c8ed);if(0x0!==_0x16561){const _0x2de95e=this['repository']['getRevision'](_0x16561-0x1);if(_0x2de95e['fromVersion']!==_0x428061){const _0x4cfc0d=this['_revisionDataBuilder']['getData'](_0x428061,_0x2de95e['toVersion']),_0x42d75d={'id':_0x2de95e['id'],'diffData':_0x4cfc0d['diffData'],'authorsIds':_0x4cfc0d['authorsIds'],'authors':_0x4cfc0d['authorsIds']['map'](_0x2399ae=>this['editor']['plugins']['get']('Users')['getUser'](_0x2399ae)),'fromVersion':_0x428061};_0x2de95e===this['currentRevision']&&(_0x42d75d['createdAt']=new Date(_0x2689aa['createdAt']['getTime']()+0xa)),_0x2de95e['_update'](_0x42d75d,!0x0),delete _0x42d75d['authors'],_0x5192d7['push'](_0x42d75d);}}if(this['adapter']){for(const _0x5cdbd6 of _0x5192d7)this['_bufferUpdate'](_0x5cdbd6['id'],_0x5cdbd6,!0x0);this['sendBufferedUpdates']();}return _0xa0c8ed;}['addRevisionData'](_0xa55a7e){const _0x2c0930=this['repository']['createRevision'](_0xa55a7e);return this['adapter']&&_0x2c0930['on']('_update',(_0x5a9ab4,_0x4c8413,_0x35958d)=>{_0x35958d||(this['_bufferUpdate'](_0x4c8413['id'],_0x4c8413,!0x0),this['sendBufferedUpdates']());}),this['repository']['addRevision'](_0x2c0930,this['_findInsertionIndex'](_0x2c0930)),_0x2c0930;}async['getRevisionDocumentData'](_0x5f55b7){await this['_loadRevisionData'](_0x5f55b7);const _0x3ca5f8={};for(const _0xabcebf in _0x5f55b7['diffData']){if(_0x5f55b7['diffData'][_0xabcebf]['attachChange']&&!_0x5f55b7['diffData'][_0xabcebf]['attachChange']['isAttached'])continue;const _0xdf426f=this['_removeRevisionMarkers'](JSON['parse'](_0x5f55b7['diffData'][_0xabcebf]['insertions'])),_0x4f7084=this['editor']['editing']['view']['document'],_0x42709c=new _0x3b27f6(_0x4f7084,_0xdf426f['map'](_0x2c3ef8=>C(_0x2c3ef8,this['editor'])));this['editor']['data']['processor']['useFillerType']('marked'),_0x3ca5f8[_0xabcebf]=this['editor']['data']['processor']['toData'](_0x42709c),this['editor']['data']['processor']['useFillerType']('default');}return _0x3ca5f8;}async['getRevisionRootsAttributes'](_0x5f5768){await this['_loadRevisionData'](_0x5f5768);const _0x236176={};for(const _0x4aedef in _0x5f5768['diffData'])_0x5f5768['diffData'][_0x4aedef]['attachChange']&&!_0x5f5768['diffData'][_0x4aedef]['attachChange']['isAttached']||(_0x236176[_0x4aedef]=_0x5f5768['diffData'][_0x4aedef]['attributesAfter']||{});return _0x236176;}['sendBufferedUpdates'](){if(0x0===this['_bufferedUpdates']['size'])return;if(this['_isPendingUpdate'])return;let _0x2cfe75=Array['from'](this['_bufferedUpdates']['values']());this['_bufferedUpdates']['clear']();for(let _0x330196=0x0;_0x330196<_0x2cfe75['length'];_0x330196++){const _0x331fe0=_0x2cfe75[_0x330196];let _0x426ae9=!0x1;for(const _0x2ac5e1 of Object['keys'](_0x331fe0))void 0x0===_0x331fe0[_0x2ac5e1]?delete _0x331fe0[_0x2ac5e1]:'id'!==_0x2ac5e1&&(_0x426ae9=!0x0);_0x426ae9||(_0x2cfe75[_0x330196]=null);}if(_0x2cfe75=_0x2cfe75['filter'](_0x2181a3=>null!==_0x2181a3),!_0x2cfe75['length'])return;for(let _0x39f548=0x0;_0x39f548<_0x2cfe75['length'];_0x39f548++){const _0x4aed1e=_0x2cfe75[_0x39f548];void 0x0!==_0x4aed1e['fromVersion']&&void 0x0===_0x4aed1e['toVersion']&&(_0x4aed1e['toVersion']=this['repository']['getRevision'](_0x4aed1e['id'])['toVersion']),void 0x0!==_0x4aed1e['toVersion']&&void 0x0===_0x4aed1e['fromVersion']&&(_0x4aed1e['fromVersion']=this['repository']['getRevision'](_0x4aed1e['id'])['fromVersion']);}const _0x4d99f5=this['editor']['config']['get']('collaboration.channelId');this['_isPendingUpdate']=!0x0,this['_addPendingAction'](),this['adapter']['updateRevisions'](_0x2cfe75,_0x4d99f5)['finally'](()=>{this['_isPendingUpdate']=!0x1;})['then'](_0xa0e1b=>{if(_0xa0e1b){for(const _0x4ff1d7 of _0xa0e1b)this['setRevisionData']({'id':_0x4ff1d7['id'],'createdAt':_0x4ff1d7['createdAt']});}this['_removePendingAction'](),this['sendBufferedUpdates']();});}['_replaceEditorDataWithRevisionData'](_0x3431c9,_0x1b2a65){let _0x2c11ac=this['editor']['config']['get']('initialData'),_0x357584=this['editor']['config']['get']('rootsAttributes');if(void 0x0===_0x2c11ac){_0x2c11ac={};for(const _0x283457 of this['editor']['model']['document']['getRootNames']())_0x2c11ac[_0x283457]='';}if('string'==typeof _0x2c11ac&&(_0x2c11ac={'main':_0x2c11ac}),void 0x0===_0x357584){_0x357584={};for(const _0x36f9cb of this['editor']['model']['document']['getRootNames']())_0x357584[_0x36f9cb]={};}let _0xa94f41=!0x1;const _0x1e1a4f=Object['keys'](_0x2c11ac),_0x324105=Object['keys'](_0x3431c9);for(const _0x508008 of _0x1e1a4f){if(_0x2c11ac[_0x508008]!==_0x3431c9[_0x508008]&&''!==_0x2c11ac[_0x508008]['trim']()){_0xa94f41=!0x0;break;}if(!_0x3e3c0f(_0x357584[_0x508008],_0x1b2a65[_0x508008])&&Object['keys'](_0x357584[_0x508008])['length']>0x0){_0xa94f41=!0x0;break;}}_0xa94f41||(_0xa94f41=_0x324105['some'](_0x3852a4=>!this['editor']['model']['document']['getRoot'](_0x3852a4))),_0xa94f41&&_0x13cae8('editor-initial-data-replaced-with-revision-data',{'editorData':_0x2c11ac,'editorRootsAttributes':_0x357584,'revisionData':_0x3431c9,'revisionRootsAttributes':_0x1b2a65}),this['editor']['config']['set']('initialData',_0x3431c9),this['editor']['config']['set']('rootsAttributes',_0x1b2a65);}['_addPendingAction'](){if(!this['_pendingAction']){const _0x3edde8=this['editor']['plugins']['get']('PendingActions');this['_pendingAction']=_0x3edde8['add'](m(this['editor']['locale'],'PENDING_ACTION_REVISION_HISTORY'));}}['_removePendingAction'](){this['_pendingAction']&&(this['editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null);}['_findInsertionIndex'](_0x21d7ef){const _0xd3ace2=this['repository']['getRevisions']();_0xd3ace2['reverse']();let _0x485fcf=0x0;for(;_0x485fcf<_0xd3ace2['length'];){const _0x203180=_0xd3ace2[_0x485fcf];if(_0x203180===this['currentRevision']){_0x485fcf++;continue;}if(_0x203180['id']===this['_initialRevisionId'])break;const _0x4e7d64=_0x21d7ef['toVersion']-_0x203180['toVersion']||_0x21d7ef['fromVersion']-_0x203180['fromVersion'];if(_0x4e7d64>0x0)break;if(_0x4e7d64<0x0)_0x485fcf++;else{if(!_0x21d7ef['creator']&&_0x203180['creator'])break;if(_0x203180['creator']||!_0x21d7ef['creator']){if(_0x21d7ef['createdAt']>_0x203180['createdAt'])break;_0x485fcf++;}else _0x485fcf++;}}return _0x485fcf;}['setRevisionData'](_0x3c98c6){const _0x1b82a1=this['repository']['getRevision'](_0x3c98c6['id']);if(_0x3c98c6['createdAt']&&(_0x3c98c6['createdAt']=new Date(_0x3c98c6['createdAt'])),_0x3c98c6['authorsIds']){const _0x5aa8af=this['editor']['plugins']['get']('Users');_0x3c98c6['authors']=_0x3c98c6['authorsIds']['map'](_0x2b0638=>_0x5aa8af['getUser'](_0x2b0638));}_0x1b82a1['_update'](_0x3c98c6,!0x0);}['buildRevisionData']({revision:_0x37c9b6=null,from:_0x3f06c1=null,to:_0x403b3b=null}){_0x3f06c1=null!==_0x3f06c1?_0x3f06c1:_0x37c9b6['fromVersion'],_0x403b3b=null!==_0x403b3b?_0x403b3b:_0x37c9b6['toVersion'];const _0x3348c1=this['_revisionDataBuilder']['getData'](_0x3f06c1,_0x403b3b),_0x332ba9={'diffData':_0x3348c1['diffData'],'authorsIds':_0x3348c1['authorsIds'],'fromVersion':_0x3f06c1,'toVersion':_0x403b3b};if(!_0x37c9b6||_0x403b3b!==_0x37c9b6['toVersion']){const _0x1f6342=_0x403b3b-0x1,_0x100528=this['_source']['history']['getOperation'](_0x1f6342);_0x332ba9['createdAt']=_0x100528&&_0x100528['createdAt']||new Date();}if(this['_loadedStateData']&&_0x3f06c1===this['_loadedStateData']['fromVersion']){for(const _0x244bb2 of this['_loadedStateData']['authors'])_0x332ba9['authorsIds']['includes'](_0x244bb2['id'])||_0x332ba9['authorsIds']['push'](_0x244bb2['id']);}return _0x332ba9;}['_loadRevisionData'](_0x40f7c5){if(!_0x40f7c5||_0x40f7c5['diffData'])return Promise['resolve']();{const _0x5f1d73=this['editor']['config']['get']('collaboration.channelId');return this['adapter']['getRevision']({'channelId':_0x5f1d73,'revisionId':_0x40f7c5['id']})['then'](_0x191aae=>{_0x40f7c5['diffData']=_0x191aae['diffData'];});}}['_bufferUpdate'](_0x5962ef,_0x27153b,_0xd6c978){if(this['_bufferedUpdates']['has'](_0x5962ef)){const _0x123ec0=this['_bufferedUpdates']['get'](_0x5962ef);_0x27153b=_0xd6c978?{..._0x123ec0,..._0x27153b}:{..._0x27153b,..._0x123ec0};}this['_bufferedUpdates']['set'](_0x5962ef,_0x27153b);}['_getFromVersion'](_0x1a7ecb){const _0x9021f1=this['repository']['getRevisions']();_0x9021f1['reverse'](),_0x9021f1['shift']();const _0x354364=_0x9021f1['find'](_0x1105ae=>_0x1105ae['toVersion']<=_0x1a7ecb)['toVersion'];return _0x354364<this['_startingVersion']?this['_startingVersion']:_0x354364;}['_createInitialRevision'](_0xf86526){const _0x232e6c=this['repository']['getRevision'](this['repository']['length']-0x1);if(_0x232e6c)this['_initialRevisionId']=_0x232e6c['id'];else{const _0x41b0e4=!this['editor']['model']['document']['roots']['find'](_0x1acbf2=>this['editor']['model']['hasContent'](_0x1acbf2)),_0x3ea3cf=this['editor']['plugins']['get']('Users')['me']['id'],_0x37b29d=m(this['editor']['locale'],_0x41b0e4?'Empty\x20document':'Initial\x20revision');this['_makeRevision']({'from':_0xf86526,'to':_0xf86526,'id':this['_initialRevisionId'],'name':_0x37b29d,'creatorId':_0x3ea3cf});}}['_createCurrentRevision'](_0x59617a){const _0x56f6df=this['_source']['getCurrentRevisionId']();this['currentRevision']=this['repository']['getRevision'](_0x56f6df),this['currentRevision']||(this['currentRevision']=this['_makeRevision']({'from':_0x59617a,'to':_0x59617a,'id':_0x56f6df,'name':'','creatorId':null}));}['_makeRevision']({name:_0x22368d,from:_0x14022d,to:_0xee2858,creatorId:_0x48d558,id:_0x2aa781}){const _0x3e537d=this['buildRevisionData']({'from':_0x14022d,'to':_0xee2858});_0x3e537d['name']=_0x22368d,_0x3e537d['creatorId']=_0x48d558,_0x3e537d['id']=_0x2aa781;const _0xeb103e=this['addRevisionData'](_0x3e537d);return this['adapter']&&this['_bufferUpdate'](_0x3e537d['id'],_0x3e537d,!0x0),_0xeb103e;}['_setConversion'](){this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'});}['_removeRevisionMarkers'](_0xdee9dd){return(_0xdee9dd=_0xdee9dd['filter'](_0x2404c1=>!_0x2404c1['name']||'revision-start'!==_0x2404c1['name']&&'revision-end'!==_0x2404c1['name']))['forEach'](_0x47fac7=>{'string'!=typeof _0x47fac7&&(_0x47fac7['children']=this['_removeRevisionMarkers'](_0x47fac7['children']),_0x47fac7['attributes']=_0x47fac7['attributes']['filter'](_0x2581a9=>!_0x2581a9[0x0]['startsWith']('data-revision-')));}),_0xdee9dd;}}function C(_0x2bd13c,_0x3e5e13){const _0x17d69c=_0x3e5e13['editing']['view']['document'];if('string'==typeof _0x2bd13c)return new _0xc623b1(_0x17d69c,_0x2bd13c);{const _0x31087c=_0x2bd13c['children']['map'](_0x44b1af=>C(_0x44b1af,_0x3e5e13));return new(P[_0x2bd13c['type']]||_0x3c6c19)(_0x17d69c,_0x2bd13c['name'],_0x2bd13c['attributes'],_0x31087c);}}class V{['editor'];['source'];['_savedMetaData'];['_lastFrom'];['_lastTo'];['_markers'];['_diffRoots'];['_diffRootsAttributes'];['_baseRoots'];['_baseRootsAttributes'];['_idsRoots'];['_baseIdsRoots'];['_touched'];['_touchedMarkers'];['_touchedRoots'];['_revisionId'];['_startingRevisionId'];constructor(_0x32259e){this['editor']=_0x32259e,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'](_0x534ab6){this['source']=_0x534ab6;const _0x2cebc4=new Map(),_0x4ba953=new Map(),_0x251f75=this['editor']['model']['document']['roots']['map'](_0x2ec11a=>_0x2ec11a['rootName']);for(const _0x28ed14 of _0x251f75){const _0x12431a=this['editor']['model']['document']['getRoot'](_0x28ed14),_0x17948b=T(_0x12431a);_0x2cebc4['set'](_0x28ed14,_0x17948b),_0x4ba953['set'](_0x28ed14,Object['fromEntries'](_0x12431a['getAttributes']()));}const _0x4ade3a=Array['from'](this['editor']['model']['markers'])['map'](_0x3a025b=>[_0x3a025b['name'],_0x3a025b['getRange']()]),_0xc60fa7=this['source']['version'];this['_saveMetaData'](_0xc60fa7,_0x2cebc4,_0x4ade3a,_0x4ba953),this['_startingRevisionId']=this['_revisionId'];const _0x955244=new Map(),_0x43f1e1=new Map();for(const _0x1d3a93 of _0x251f75){const _0x27de93=F(_0x1d3a93);_0x955244['set'](_0x1d3a93,_0x27de93),_0x43f1e1['set'](_0x1d3a93,{});}this['_saveMetaData'](Number['NEGATIVE_INFINITY'],_0x955244,[],_0x43f1e1);}['getData'](_0x2e892c,_0x473fc7){if(this['_lastFrom']===_0x2e892c&&this['_lastTo']<=_0x473fc7)this['_savedMetaData']['size']>0x1&&this['_removeMetaData'](this['_lastTo']),this['_applyOperations'](this['_lastTo'],_0x473fc7,!0x0);else{if(!this['_savedMetaData']['has'](_0x2e892c)){const _0x33690e=this['_getPreviousFrom'](_0x2e892c);this['_calculateMetaData'](_0x33690e,_0x2e892c,!0x1);}this['_calculateMetaData'](_0x2e892c,_0x473fc7,!0x0);}return this['_lastFrom']=_0x2e892c,this['_lastTo']=_0x473fc7,this['_getState']();}['loadState'](_0x1b5fbe){this['_reset'](),this['_lastFrom']=_0x1b5fbe['fromVersion'],this['_lastTo']=_0x1b5fbe['toVersion'];for(const _0x97d3e1 in _0x1b5fbe['diffData']){const _0x1cc55a=_0x1b5fbe['diffData'][_0x97d3e1]['attachChange'],_0x18cd44=_0x3a1362(_0x1b5fbe['diffData'][_0x97d3e1]['attributesBefore'])||{},_0x3f5880=this['_makeModelFromViewString'](_0x1b5fbe['diffData'][_0x97d3e1]['deletions']);_0x3f5880['rootName']=_0x97d3e1,_0x3f5880['_isAttached']=!_0x1cc55a||!_0x1cc55a['isAttached'],_0x3f5880['isAttached']=()=>_0x3f5880['_isAttached'],this['_baseRoots']['set'](_0x97d3e1,_0x3f5880),this['_baseRootsAttributes']['set'](_0x97d3e1,_0x18cd44),_0x1cc55a&&this['_touchedRoots']['set'](_0x97d3e1,_0x1cc55a);const _0x3ffecc=this['_makeIdsRoot'](_0x3f5880);this['_baseIdsRoots']['set'](_0x97d3e1,_0x3ffecc);for(const [_0x1c6f1b,_0x418ea8]of _0x3f5880['markers']){if(!_0x1c6f1b['startsWith']('revision:'))continue;const _0x33739c=_0x1c6f1b['split'](':')[0x2];for(const _0x67a421 of _0x418ea8['getWalker']({'singleCharacters':!0x0})){const _0x2576b1=this['_getVidAttributeName'](_0x67a421),_0x3f3e1b='elementEnd'==_0x67a421['type']?_0x67a421['previousPosition']['path']['slice'](0x0,-0x1):_0x67a421['previousPosition']['path'],_0x460e2d=_0x3ffecc['getNodeByPath'](_0x3f3e1b)['getAttribute'](_0x2576b1);this['_touched']['set'](_0x460e2d,{'userId':_0x33739c});}}}this['_startingRevisionId']=this['_revisionId'];const _0xe600a=[...Array(this['_revisionId'])['keys']()]['slice'](0x1)['filter'](_0x3779f1=>!this['_touched']['has'](_0x3779f1));let _0x23a66d=0x0;const _0x4f564e=new Map();for(const _0x4783b3 in _0x1b5fbe['diffData']){const _0x2581ff=_0x1b5fbe['diffData'][_0x4783b3]['attachChange'],_0x37a5f4=_0x3a1362(_0x1b5fbe['diffData'][_0x4783b3]['attributesAfter'])||{},_0x46e10d=this['_makeModelFromViewString'](_0x1b5fbe['diffData'][_0x4783b3]['insertions']);_0x46e10d['rootName']=_0x4783b3,_0x46e10d['_isAttached']=!_0x2581ff||_0x2581ff['isAttached'],_0x46e10d['isAttached']=()=>_0x46e10d['_isAttached'],this['_diffRoots']['set'](_0x4783b3,_0x46e10d),this['_diffRootsAttributes']['set'](_0x4783b3,_0x37a5f4);const _0x2264fd=this['_makeIdsRoot'](_0x46e10d,Number['NEGATIVE_INFINITY']);this['_idsRoots']['set'](_0x4783b3,_0x2264fd),_0x4f564e['set'](_0x4783b3,_0x46e10d['isAttached']()?_0x37a5f4:{});for(const [_0x2d71d3,_0x4960f3]of _0x46e10d['markers']){if(!_0x2d71d3['startsWith']('revision:'))continue;const _0x1e80fb=_0x2d71d3['split'](':')[0x2];for(const _0x20ccb5 of _0x4960f3['getWalker']({'singleCharacters':!0x0})){const _0x3b4b06=this['_getVidAttributeName'](_0x20ccb5),_0x3d80db=this['_revisionId']++,_0x142b1f='elementEnd'==_0x20ccb5['type']?_0x20ccb5['previousPosition']['path']['slice'](0x0,-0x1):_0x20ccb5['previousPosition']['path'];_0x2264fd['getNodeByPath'](_0x142b1f)['_setAttribute'](_0x3b4b06,_0x3d80db),this['_touched']['set'](_0x3d80db,{'userId':_0x1e80fb});}}for(const _0x123431 of this['editor']['model']['createRangeIn'](_0x46e10d)['getWalker']({'singleCharacters':!0x0})){const _0x173f0e=this['_getVidAttributeName'](_0x123431),_0x564d6b='elementEnd'==_0x123431['type']?_0x123431['previousPosition']['path']['slice'](0x0,-0x1):_0x123431['previousPosition']['path'],_0x1b6c2d=_0x2264fd['getNodeByPath'](_0x564d6b);_0x1b6c2d['getAttribute'](_0x173f0e)>0x0||_0x1b6c2d['_setAttribute'](_0x173f0e,_0xe600a[_0x23a66d++]);}for(const [_0x527f48,_0x13e4f6]of _0x46e10d['markers'])_0x527f48['startsWith']('revision:')||this['_markers']['set'](_0x527f48,_0x13e4f6);}const _0x2d0265=F('$graveyard');this['_baseRoots']['set']('$graveyard',_0x2d0265),this['_baseIdsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x2d0265,0x1));const _0x223484=F('$graveyard');this['_diffRoots']['set']('$graveyard',_0x223484),this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x223484,0x1));const _0x5997d7=Array['from'](this['_diffRoots'])['map'](([_0x55f121,_0x309d86])=>[_0x55f121,T(_0x309d86)]);this['_saveMetaData'](this['_lastTo'],_0x5997d7,this['_markers'],_0x4f564e);}['_makeModelFromViewString'](_0x3def32){const _0x177a02=JSON['parse'](_0x3def32),_0x4b0e0a=this['editor']['editing']['view']['document'],_0x3c4bcf=new _0x3b27f6(_0x4b0e0a,_0x177a02['map'](_0x977730=>C(_0x977730,this['editor'])));return this['editor']['data']['toModel'](_0x3c4bcf);}['_saveMetaData'](_0x4f1cb8,_0x10f92d,_0x339a20,_0x44756f){const _0x51608a=new Map(_0x10f92d),_0x28033e=new Map(_0x3a1362(_0x44756f)),_0x3e742a=new Map();for(const [_0x34ec28,_0xb9fe1a]of _0x339a20)_0x3e742a['set'](_0x34ec28,{'start':_0xb9fe1a['start']['clone'](),'end':_0xb9fe1a['end']['clone'](),'rootName':_0xb9fe1a['root']['rootName']});this['_savedMetaData']['set'](_0x4f1cb8,{'roots':_0x51608a,'markers':_0x3e742a,'rootsAttributes':_0x28033e});}['_removeMetaData'](_0x530b65){this['_savedMetaData']['delete'](_0x530b65);}['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'](_0x20bf2a,_0xc26486=null){let _0x138543=null;_0x20bf2a['is']('documentFragment')||(_0x138543=new ft(_0x20bf2a['name'],{'vid_start':null===_0xc26486?this['_revisionId']++:_0xc26486++}));const _0x12af5b=[];for(const _0x8c3ff6 of _0x20bf2a['getChildren']())if(_0x8c3ff6['is']('element')){_0x12af5b['push'](this['_makeIdsRoot'](_0x8c3ff6,_0xc26486));const _0x8dd40e=_0x12af5b[_0x12af5b['length']-0x1];null!==_0xc26486&&(_0xc26486=_0x8dd40e['is']('element','$text')?_0x8dd40e['getAttribute']('vid')+0x1:_0x8dd40e['getAttribute']('vid_end')+0x1);}else{for(let _0x330815=0x0;_0x330815<_0x8c3ff6['offsetSize'];_0x330815++)_0x12af5b['push'](new ft('$text',{'vid':null===_0xc26486?this['_revisionId']++:_0xc26486++}));}if(_0x20bf2a['is']('documentFragment')){const _0x3f9732=F(_0x20bf2a['rootName']);return _0x3f9732['_insertChild'](0x0,_0x12af5b),_0x3f9732;}return _0x138543['_setAttribute']('vid_end',null===_0xc26486?this['_revisionId']++:_0xc26486++),_0x138543['_insertChild'](0x0,_0x12af5b),_0x138543;}['_calculateMetaData'](_0x56755c,_0x418cb7,_0x1371a0){this['_reset']();const {roots:_0xb9b7f2,markers:_0xfd217a,rootsAttributes:_0x51e42c}=this['_savedMetaData']['get'](_0x56755c);this['_baseRoots']=new Map(_0xb9b7f2),this['_baseRootsAttributes']=new Map(_0x3a1362(_0x51e42c));for(const [_0x3e3446,_0x368011]of this['_baseRoots'])if('$graveyard'!==_0x3e3446&&(this['_diffRoots']['set'](_0x3e3446,T(_0x368011)),this['_diffRootsAttributes']=new Map(_0x3a1362(_0x51e42c)),_0x1371a0)){const _0x4da89e=this['_revisionId'];this['_idsRoots']['set'](_0x3e3446,this['_makeIdsRoot'](_0x368011)),this['_baseIdsRoots']['set'](_0x3e3446,this['_makeIdsRoot'](_0x368011,_0x4da89e));}this['_startingRevisionId']=this['_revisionId'],this['_diffRoots']['set']('$graveyard',T(this['_baseRoots']['get']('$graveyard'))),_0x1371a0&&this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](this['_baseRoots']['get']('$graveyard')));for(const [_0x360b07,_0xaffba6]of _0xfd217a){const _0x52da32=this['_baseRoots']['get'](_0xaffba6['rootName']),_0x185dba=this['_diffRoots']['get'](_0xaffba6['rootName']),_0x24d973=new vt(this['_fixPosition'](_0xaffba6['start'],_0x52da32),this['_fixPosition'](_0xaffba6['end'],_0x52da32)),_0x59ba37=this['_fixRange'](_0x24d973,_0x185dba);_0x52da32['markers']['set'](_0x360b07,_0x24d973),this['_markers']['set'](_0x360b07,_0x59ba37);}this['_applyOperations'](_0x56755c,_0x418cb7,_0x1371a0);}['_applyOperations'](_0x62cdb6,_0x40afb5,_0x3b572b){for(const _0x3e65c9 of this['source']['getOperations'](_0x62cdb6,_0x40afb5))this['_handleOperation'](_0x3e65c9,_0x3b572b);for(const _0x3c0618 of this['_diffRoots']['values']())_0x3c0618['markers']['clear']();for(const [_0x323ecb,_0x42acfd]of this['_markers']){this['_diffRoots']['get'](_0x42acfd['root']['rootName'])['markers']['set'](_0x323ecb,_0x42acfd['clone']());}const _0x19cd78=new Map(),_0x407945=new Map();for(const [_0x282be6,_0x1d98a3]of this['_diffRoots'])_0x19cd78['set'](_0x282be6,T(_0x1d98a3)),_0x407945['set'](_0x282be6,this['_diffRootsAttributes']['get'](_0x282be6));this['_saveMetaData'](_0x40afb5,_0x19cd78,this['_markers'],_0x407945);}['_getPreviousFrom'](_0x5262e5){const _0x5690e8=Array['from'](this['_savedMetaData']['keys']());_0x5690e8['sort']((_0x5a9e5a,_0x41a655)=>_0x5a9e5a-_0x41a655),_0x5690e8['reverse']();for(const _0x28c079 of _0x5690e8)if(_0x28c079<_0x5262e5)return _0x28c079;return Number['NEGATIVE_INFINITY'];}['_copyMarkers'](_0x4e39a9,_0x39ab1b){const _0x4fa1b9=Array['from'](_0x39ab1b['markers'])['map'](([_0x1eebf1,_0x3523e9])=>[_0x1eebf1,this['_fixRange'](_0x3523e9,_0x4e39a9)]);_0x4e39a9['markers']=new Map(_0x4fa1b9);}['_transformMarkers'](_0x192b89){for(const _0x4d64ee of this['_markers']['values']()){const _0x35a195=_0x4d64ee['getTransformedByOperation'](_0x192b89),_0x2bde03=vt['_createFromRanges'](_0x35a195);_0x4d64ee['start']=_0x2bde03['start'],_0x4d64ee['end']=_0x2bde03['end'];}}['_handleOperation'](_0x542dbb,_0x595079){if('addRoot'!=_0x542dbb['type']&&'detachRoot'!=_0x542dbb['type']){if('insert'==_0x542dbb['type']){const _0x12bb0e=_0x542dbb['position']['root']['rootName'];this['_diffRoots']['has'](_0x12bb0e)||(this['_diffRoots']['set'](_0x12bb0e,F(_0x12bb0e,!0x0)),this['_diffRootsAttributes']['set'](_0x12bb0e,{}),_0x595079&&this['_idsRoots']['set'](_0x12bb0e,F(_0x12bb0e,!0x0)));}else{if('addRootAttribute'==_0x542dbb['type']||'removeRootAttribute'==_0x542dbb['type']||'changeRootAttribute'==_0x542dbb['type'])return void this['_handleRootAttributeOperation'](_0x542dbb);'marker'==_0x542dbb['type']&&this['_handleMarkerOperation'](_0x542dbb);}if('marker'!==_0x542dbb['type']){const _0x4108cb=this['_cloneOperation'](_0x542dbb,this['_diffRoots']);_0x4108cb['_execute'](),this['_transformMarkers'](_0x4108cb);}if(_0x595079)switch(_0x542dbb['type']){case'insert':this['_handleInsertOperation'](_0x542dbb);break;case'move':case'remove':case'reinsert':this['_handleMoveOperation'](_0x542dbb);break;case'merge':this['_handleMergeOperation'](_0x542dbb);break;case'split':this['_handleSplitOperation'](_0x542dbb);}}else this['_handleRootOperation'](_0x542dbb,_0x595079);}['_cloneOperation'](_0x3b8905,_0x33f107){const _0x1afb4b=_0x3b8905['clone']();return _0x1afb4b['_authorId']=_0x3b8905['_authorId'],this['_fixOperation'](_0x1afb4b,_0x33f107),_0x1afb4b;}['_getBaseVids'](_0x5b4ff4){return _0x5b4ff4['map'](_0x3874e7=>{const _0x5ce277=this['_getVidAttributeName'](_0x3874e7);return Number(_0x3874e7['item']['getAttribute'](_0x5ce277));});}['_generateTape'](_0x416e46,_0xdd93f1){if(_0x416e46['is']('element','$text'))_0xdd93f1['push']({'item':_0x416e46,'type':'text'});else{_0x416e46['is']('element')&&_0xdd93f1['push']({'item':_0x416e46,'type':'elementStart'});for(const _0x51fa11 of _0x416e46['getChildren']())this['_generateTape'](_0x51fa11,_0xdd93f1);_0x416e46['is']('element')&&_0xdd93f1['push']({'item':_0x416e46,'type':'elementEnd'});}return _0xdd93f1;}['_getState'](){const _0x59154d=new Map(this['_touched']),_0x364e75=new Map(_0x59154d),_0x2a0700=new Map(),_0xe68eee={'insertions':{},'deletions':{}},_0x1e1784={'insertions':{},'deletions':{}},_0x3350bc=new Map(),_0x338d22=new Set([...this['_baseRoots']['keys'](),...this['_diffRoots']['keys']()]);_0x338d22['delete']('$graveyard');for(const _0x41475f of _0x338d22){const _0x224e88=this['_diffRoots']['get'](_0x41475f)||F(_0x41475f,!0x1),_0x37e7e0=this['_baseRoots']['get'](_0x41475f)||F(_0x41475f,!0x1);_0x224e88['isAttached']()||_0x37e7e0['isAttached']()?(_0xe68eee['insertions'][_0x41475f]=T(_0x224e88),_0xe68eee['deletions'][_0x41475f]=T(_0x37e7e0),this['_copyMarkers'](_0xe68eee['deletions'][_0x41475f],_0x37e7e0),this['_copyMarkers'](_0xe68eee['insertions'][_0x41475f],_0x224e88),_0x1e1784['insertions'][_0x41475f]=this['_generateTape'](this['_idsRoots']['get'](_0x41475f),[]),_0x1e1784['deletions'][_0x41475f]=this['_generateTape'](this['_baseIdsRoots']['get'](_0x41475f)||F(_0x41475f,!0x1),[])):_0x338d22['delete'](_0x41475f);}for(const _0x1849a1 of _0x338d22){const _0x4a8138=_0x1e1784['insertions'][_0x1849a1];for(const _0x2a1cd2 of _0x4a8138){const _0x1fec2d=this['_getVidAttributeName'](_0x2a1cd2),_0x39c8dc=_0x2a1cd2['item']['getAttribute'](_0x1fec2d);_0x364e75['delete'](_0x39c8dc),_0x39c8dc>=this['_startingRevisionId']&&_0x2a0700['set'](_0x39c8dc,_0x59154d['get'](_0x39c8dc));}}for(const _0x3260ab of _0x338d22){const _0x2fe2c3=_0x1e1784['insertions'][_0x3260ab],_0x38320c=this['_getBaseVids'](_0x1e1784['deletions'][_0x3260ab]);let _0x1c4a9f=0x0;for(const _0x3b6b6d of _0x2fe2c3){const _0x20f4b6=this['_getVidAttributeName'](_0x3b6b6d),_0xc65da0=_0x3b6b6d['item']['getAttribute'](_0x20f4b6);if(!_0x2a0700['has'](_0xc65da0)&&!_0x3350bc['has'](_0xc65da0)){if(_0x364e75['has'](_0xc65da0))_0x1c4a9f++;else{if(_0xc65da0!=_0x38320c[_0x1c4a9f]){const _0x1298e2=_0x59154d['get'](_0xc65da0)||_0x59154d['get'](_0x38320c[_0x1c4a9f]);for(;_0xc65da0!=_0x38320c[_0x1c4a9f];)_0x364e75['has'](_0x38320c[_0x1c4a9f])||(_0x3350bc['set'](_0x38320c[_0x1c4a9f],_0x1298e2),_0x59154d['set'](_0x38320c[_0x1c4a9f],_0x1298e2)),_0x1c4a9f++;}_0x1c4a9f++;}}}}for(const _0x153e6c of _0x338d22){const _0x2a5b13=_0x1e1784['insertions'][_0x153e6c];for(const _0x524e19 of _0x2a5b13){const _0x3eefef=this['_getVidAttributeName'](_0x524e19),_0x2c3f69=_0x524e19['item']['getAttribute'](_0x3eefef);if(_0x3350bc['has'](_0x2c3f69)){const _0x152abb=_0x3350bc['get'](_0x2c3f69);_0x364e75['has'](_0x2c3f69)||_0x364e75['set'](_0x2c3f69,{..._0x152abb}),_0x2a0700['set'](_0x2c3f69,{..._0x152abb});}}}for(const _0x4d3f27 of _0x364e75['keys']())_0x4d3f27>=this['_startingRevisionId']&&_0x364e75['delete'](_0x4d3f27);const _0x424130=new Map();for(const _0x297293 of _0x338d22){let _0x3e3472=_0x1e1784['insertions'][_0x297293];for(const _0x790620 of _0x3e3472)if(_0x790620['item']['is']('element','tableCell')){const _0x96e487=this['_getVidAttributeName'](_0x790620),_0x50f8d0=_0x790620['item']['getAttribute'](_0x96e487);if(_0x2a0700['has'](_0x50f8d0)){const _0x44e948=_0x790620['item']['parent']['parent']['getAttribute']('vid_start'),_0x2dccf4=_0x424130['get'](_0x44e948)||new Set();_0x2dccf4['add'](_0x2a0700['get'](_0x50f8d0)['userId']),_0x424130['set'](_0x44e948,_0x2dccf4);}}_0x3e3472=_0x1e1784['deletions'][_0x297293];for(const _0x536323 of _0x3e3472)if(_0x536323['item']['is']('element','tableCell')){const _0x379c1e=this['_getVidAttributeName'](_0x536323),_0x298661=_0x536323['item']['getAttribute'](_0x379c1e);if(_0x364e75['has'](_0x298661)){const _0x15e5d5=_0x536323['item']['parent']['parent']['getAttribute']('vid_start'),_0x20e1aa=_0x424130['get'](_0x15e5d5)||new Set();_0x20e1aa['add'](_0x364e75['get'](_0x298661)['userId']),_0x424130['set'](_0x15e5d5,_0x20e1aa);}}for(const _0x3009c7 of _0x424130['keys']())(_0x2a0700['has'](_0x3009c7)||_0x364e75['has'](_0x3009c7))&&_0x424130['delete'](_0x3009c7);}for(const _0x20ad3a of _0x338d22){const _0x2c7fb9=_0x1e1784['insertions'][_0x20ad3a];let _0x39e741=null,_0x173399=null;for(const _0x2efa1e of _0x2c7fb9){const _0x51e01a=this['_getVidAttributeName'](_0x2efa1e),_0x430c42=_0x2efa1e['item']['getAttribute'](_0x51e01a),_0x2d636d=_0x424130['get'](_0x430c42);_0x2d636d&&'elementStart'==_0x2efa1e['type']&&(_0x39e741=Array['from'](_0x2d636d)[0x0],_0x173399=_0x2efa1e['item']['getAttribute']('vid_end')),_0x39e741&&(_0x364e75['set'](_0x430c42,{'userId':_0x39e741}),_0x2a0700['set'](_0x430c42,{'userId':_0x39e741})),_0x430c42==_0x173399&&(_0x39e741=null,_0x173399=null);}}const _0x5deb02={},_0x2a9c4d=new Set();for(const _0x1a34c4 of _0x338d22){const _0x3e6887=_0xe68eee['deletions'][_0x1a34c4],_0x2a3d62=_0xe68eee['insertions'][_0x1a34c4];for(const {userId:_0x44affd}of this['_touchedMarkers']['values']())null!==_0x44affd&&_0x2a9c4d['add'](_0x44affd);for(const {userId:_0x52a448}of this['_touchedRoots']['values']())null!==_0x52a448&&_0x2a9c4d['add'](_0x52a448);this['_markChanges'](_0x2a3d62,_0x1e1784['insertions'][_0x1a34c4],_0x2a0700,'insertion',_0x2a9c4d),this['_markChanges'](_0x3e6887,_0x1e1784['deletions'][_0x1a34c4],_0x364e75,'deletion',_0x2a9c4d),_0x5deb02[_0x1a34c4]={'insertions':this['_prepareViewToSave'](_0x2a3d62),'deletions':this['_prepareViewToSave'](_0x3e6887),'attachChange':this['_touchedRoots']['get'](_0x1a34c4)||null,'attributesBefore':_0x3a1362(this['_baseRootsAttributes']['get'](_0x1a34c4))||{},'attributesAfter':_0x3a1362(this['_diffRootsAttributes']['get'](_0x1a34c4))};}return{'diffData':_0x5deb02,'authorsIds':Array['from'](_0x2a9c4d)};}['_processRootBeforeSave'](_0x13c776){for(const [,_0x406085]of _0x13c776['markers']){const _0x3ae0dc=_0x406085['start']['getAncestors']()['filter'](_0x842015=>'tableCell'==_0x842015['name']);for(const _0x262efa of _0x3ae0dc)0x1==_0x262efa['childCount']&&_0x262efa['getChild'](0x0)['is']('element','paragraph')&&_0x262efa['getChild'](0x0)['_setAttribute']('keepParagraph',!0x0);}}['_prepareViewToSave'](_0x1a246c){this['_processRootBeforeSave'](_0x1a246c);const _0x447fe4=this['editor']['data']['toView'](_0x1a246c,{}),_0x20f22d=Array['from'](_0x447fe4['getChildren']())['map'](_0x1cb29c=>this['_getViewJson'](_0x1cb29c));return JSON['stringify'](_0x20f22d);}['_getViewJson'](_0x45250b){if(_0x45250b['is']('$text'))return _0x45250b['data'];{const _0x27081b=_0x45250b;return{'type':Object['keys'](P)['find'](_0xc0e29a=>_0x45250b instanceof P[_0xc0e29a]),'name':_0x27081b['name'],'attributes':Array['from'](_0x27081b['getAttributes']()),'children':Array['from'](_0x27081b['getChildren']())['map'](_0x57b2bd=>this['_getViewJson'](_0x57b2bd))};}}['_markChanges'](_0x55f9b1,_0x358096,_0x56afe1,_0x53b2bb,_0x260a28){let _0x339475=null,_0x17c8d2=null,_0x288516=0x0;const _0x164c6c=this['editor']['model'];for(let _0x3bb91a=0x0;_0x3bb91a<_0x358096['length'];_0x3bb91a++){const _0x390632=this['_getVidAttributeName'](_0x358096[_0x3bb91a]),_0x40ad0b=_0x358096[_0x3bb91a]['item']['getAttribute'](_0x390632),_0x3b3927=_0x56afe1['get'](_0x40ad0b),_0x48e5c6=_0x3bb91a==_0x358096['length']-0x1;(!_0x339475&&_0x3b3927&&(_0x339475=_0x3b3927,_0x17c8d2=_0x358096[_0x3bb91a]),_0x339475&&(!_0x3b3927||_0x3b3927['userId']!=_0x339475['userId']))&&(_0x330e6a(_0x3b3927,B(_0x17c8d2,_0x55f9b1,_0x164c6c),B(_0x358096[_0x3bb91a],_0x55f9b1,_0x164c6c)),_0x339475=_0x3b3927||null,_0x17c8d2=_0x3b3927?_0x358096[_0x3bb91a]:null),_0x339475&&_0x48e5c6&&_0x330e6a(_0x3b3927,B(_0x17c8d2,_0x55f9b1,_0x164c6c),J(_0x358096[_0x3bb91a],_0x55f9b1,_0x164c6c));}function _0x330e6a(_0x419b82,_0xce456f,_0xfcded1){const _0x125888=_0x339475['userId'],_0x9b1281='revision:'+_0x53b2bb+':'+_0x125888+':'+_0x288516++,_0x2b25b1=_0x164c6c['createRange'](_0xce456f,_0xfcded1);_0x55f9b1['markers']['set'](_0x9b1281,_0x2b25b1),null!==_0x125888&&_0x260a28['add'](_0x125888);}}['_getVidAttributeName'](_0x5a39e5){switch(_0x5a39e5['type']){case'elementStart':return'vid_start';case'elementEnd':return'vid_end';default:return'vid';}}['_fixOperation'](_0x4ac1b4,_0x3ef2b7){_0x4ac1b4['baseVersion']=null;for(const _0x3ce900 in _0x4ac1b4){const _0xa6d24f=_0x4ac1b4[_0x3ce900];if(_0xa6d24f instanceof gt){const _0x3dbefe=_0x3ef2b7['get'](_0xa6d24f['root']['rootName']);_0x4ac1b4[_0x3ce900]=this['_fixPosition'](_0xa6d24f,_0x3dbefe);}if(_0xa6d24f instanceof vt){const _0x53904c=_0x3ef2b7['get'](_0xa6d24f['root']['rootName']);_0x4ac1b4[_0x3ce900]=this['_fixRange'](_0xa6d24f,_0x53904c);}'root'===_0x3ce900&&(_0x4ac1b4['root']=_0x3ef2b7['get'](_0x4ac1b4['root']['rootName']));}}['_fixRange'](_0xf6035c,_0x401876){return this['editor']['model']['createRange'](this['_fixPosition'](_0xf6035c['start'],_0x401876),this['_fixPosition'](_0xf6035c['end'],_0x401876));}['_fixPosition'](_0x583e7d,_0x424fdb){return this['editor']['model']['createPositionFromPath'](_0x424fdb,_0x583e7d['path'],_0x583e7d['stickiness']);}['_handleInsertOperation'](_0x31c6b6){const _0x131e5a=this['_idsRoots']['get'](_0x31c6b6['position']['root']['rootName']),_0x59b5c8=this['_fixPosition'](_0x31c6b6['position'],_0x131e5a),_0x16fb78=null===_0x31c6b6['_authorId']?null:_0x31c6b6['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x524131=_0x59b5c8['parent'],_0x2ecc82=this['_revisionId'],_0x5acd3a=[];for(const _0x3752c3 of _0x31c6b6['nodes'])if(_0x3752c3['is']('element'))_0x5acd3a['push'](this['_makeIdsRoot'](_0x3752c3));else{for(let _0xb1b52b=0x0;_0xb1b52b<_0x3752c3['offsetSize'];_0xb1b52b++)_0x5acd3a['push'](new ft('$text',{'vid':this['_revisionId']++}));}const _0x12ff22=this['_revisionId'];for(let _0x1d83f7=_0x2ecc82;_0x1d83f7<_0x12ff22;_0x1d83f7++)this['_touched']['set'](_0x1d83f7,{'userId':_0x16fb78});_0x524131['_insertChild'](_0x59b5c8['offset'],_0x5acd3a);}['_handleMoveOperation'](_0x1b81b1){(_0x1b81b1=this['_cloneOperation'](_0x1b81b1,this['_idsRoots']))['_execute']();const _0x5e52e8=null===_0x1b81b1['_authorId']?null:_0x1b81b1['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x46d351=_0x1b81b1['getMovedRangeStart'](),_0x199eac=_0x46d351['parent'],_0x44a92d=_0x46d351['offset'];!function _0x11978e(_0x372e11,_0x6d520b,_0x5e7ba3,_0x3d4896){for(let _0x18c1eb=_0x5e7ba3;_0x18c1eb<_0x3d4896;_0x18c1eb++){const _0x5b0ebc=_0x6d520b['getChild'](_0x18c1eb);_0x5b0ebc['is']('element','$text')?_0x372e11['set'](_0x5b0ebc['getAttribute']('vid'),{'userId':_0x5e52e8}):(_0x372e11['set'](_0x5b0ebc['getAttribute']('vid_start'),{'userId':_0x5e52e8}),_0x11978e(_0x372e11,_0x5b0ebc,0x0,_0x5b0ebc['childCount']),_0x372e11['set'](_0x5b0ebc['getAttribute']('vid_end'),{'userId':_0x5e52e8}));}}(this['_touched'],_0x199eac,_0x44a92d,_0x44a92d+_0x1b81b1['howMany']);}['_handleMergeOperation'](_0x595bd2){const _0x56a146=null===(_0x595bd2=this['_cloneOperation'](_0x595bd2,this['_idsRoots']))['_authorId']?null:_0x595bd2['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x154a88=_0x595bd2['targetPosition']['parent'],_0x5812ac=_0x595bd2['sourcePosition']['parent'],_0x3ec77f=_0x154a88['getAttribute']('vid_end'),_0x8093b7=_0x5812ac['getAttribute']('vid_start');_0x154a88['_setAttribute']('vid_end',_0x5812ac['getAttribute']('vid_end')),_0x5812ac['_setAttribute']('vid_end',_0x3ec77f),this['_touched']['set'](_0x8093b7,{'userId':_0x56a146}),this['_touched']['set'](_0x3ec77f,{'userId':_0x56a146}),_0x595bd2['_execute']();}['_handleSplitOperation'](_0x118531){const _0x23dc91=null===(_0x118531=this['_cloneOperation'](_0x118531,this['_idsRoots']))['_authorId']?null:_0x118531['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x49e194=_0x118531['graveyardPosition'],_0x4ab93d=_0x118531['splitPosition']['parent'];_0x118531['_execute']();const _0x1c360a=_0x4ab93d['getAttribute']('vid_end'),_0x482146=_0x118531['insertionPosition']['nodeAfter'];if(_0x49e194){const _0x4f6cb5=_0x482146['getAttribute']('vid_end'),_0xf62857=_0x4ab93d['getAttribute']('vid_end');_0x4ab93d['_setAttribute']('vid_end',_0x4f6cb5),_0x482146['_setAttribute']('vid_end',_0xf62857),this['_touched']['set'](_0x4ab93d['getAttribute']('vid_end'),{'userId':_0x23dc91}),this['_touched']['set'](_0x482146['getAttribute']('vid_start'),{'userId':_0x23dc91});}else{const _0x490760=this['_revisionId']++,_0x22ab79=this['_revisionId']++;_0x4ab93d['_setAttribute']('vid_end',_0x490760),_0x482146['_setAttribute']('vid_start',_0x22ab79),_0x482146['_setAttribute']('vid_end',_0x1c360a),this['_touched']['set'](_0x490760,{'userId':_0x23dc91}),this['_touched']['set'](_0x22ab79,{'userId':_0x23dc91});}}['_handleMarkerOperation'](_0x51b0c0){if(!_0x51b0c0['affectsData'])return;const _0x1257c7=(_0x51b0c0=this['_cloneOperation'](_0x51b0c0,this['_diffRoots']))['oldRange']?_0x51b0c0['oldRange']['root']:null,_0x194791=_0x51b0c0['newRange']?_0x51b0c0['newRange']['root']:null;_0x1257c7&&this['_markers']['delete'](_0x51b0c0['name']),_0x194791&&this['_markers']['set'](_0x51b0c0['name'],_0x51b0c0['newRange']['clone']());const _0x12cd5d=null===_0x51b0c0['_authorId']?null:_0x51b0c0['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x387b9c=_0x51b0c0['name'];if(!this['_touchedMarkers']['has'](_0x387b9c))return void this['_touchedMarkers']['set'](_0x387b9c,{'range':_0x51b0c0['oldRange'],'userId':_0x12cd5d});const _0x5c121f=this['_touchedMarkers']['get'](_0x387b9c),_0x3e9b98=_0x5c121f['range'],_0x1bfa4e=_0x51b0c0['newRange'];null==_0x3e9b98&&null==_0x1bfa4e||_0x3e9b98&&_0x1bfa4e&&_0x3e9b98['isEqual'](_0x1bfa4e)?this['_touchedMarkers']['delete'](_0x51b0c0['name']):_0x5c121f['userId']=_0x12cd5d;}['_handleRootOperation'](_0x4e7b14,_0x514c76){this['_diffRoots']['has'](_0x4e7b14['rootName'])?this['_diffRoots']['get'](_0x4e7b14['rootName'])['_isAttached']=_0x4e7b14['isAdd']:(this['_diffRoots']['set'](_0x4e7b14['rootName'],F(_0x4e7b14['rootName'],!0x0)),this['_diffRootsAttributes']['set'](_0x4e7b14['rootName'],{}),_0x514c76&&this['_idsRoots']['set'](_0x4e7b14['rootName'],F(_0x4e7b14['rootName'],!0x0)));const _0x52a525=null===_0x4e7b14['_authorId']?null:_0x4e7b14['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0xaa1b22=this['_touchedRoots']['get'](_0x4e7b14['rootName']);_0xaa1b22&&_0xaa1b22['userId']===_0x52a525?this['_touchedRoots']['delete'](_0x4e7b14['rootName']):this['_touchedRoots']['set'](_0x4e7b14['rootName'],{'userId':_0x52a525,'isAttached':_0x4e7b14['isAdd']});}['_handleRootAttributeOperation'](_0x5b9d5c){const _0x482743=this['_diffRootsAttributes']['get'](_0x5b9d5c['root']['rootName']);null===_0x5b9d5c['newValue']?delete _0x482743[_0x5b9d5c['key']]:_0x482743[_0x5b9d5c['key']]=_0x5b9d5c['newValue'];}}function T(_0x52f0f6){const _0x45ce99=F(_0x52f0f6['rootName'],_0x52f0f6['isAttached']());for(const _0x18d374 of _0x52f0f6['getChildren']()){const _0x755517=_0x18d374['_clone'](!0x0);_0x45ce99['_appendChild'](_0x755517);}return _0x45ce99;}function F(_0x32f69b,_0x4138a8=!0x0){const _0x10fc6a=new mt();return _0x10fc6a['rootName']=_0x32f69b,_0x10fc6a['_isAttached']=_0x4138a8,_0x10fc6a['isAttached']=()=>_0x10fc6a['_isAttached'],_0x10fc6a;}function B(_0x3487dd,_0x15009c,_0x30d3ed){const _0x4ac238='elementEnd'==_0x3487dd['type']?_0x30d3ed['createPositionAt'](_0x3487dd['item'],'end'):_0x30d3ed['createPositionBefore'](_0x3487dd['item']);return _0x30d3ed['createPositionFromPath'](_0x15009c,_0x4ac238['path'],_0x4ac238['stickiness']);}function J(_0x152eb6,_0x195808,_0x4e9581){const _0x3b82f3='elementStart'==_0x152eb6['type']?_0x4e9581['createPositionAt'](_0x152eb6['item'],0x0):_0x4e9581['createPositionAfter'](_0x152eb6['item']);return _0x4e9581['createPositionFromPath'](_0x195808,_0x3b82f3['path'],_0x3b82f3['stickiness']);}class ns extends _0x4bf032{['focusTracker'];['keystrokes'];['revisionNameInputView'];constructor(_0x29579e,_0x205bb0){super(_0x29579e),this['focusTracker']=new _0x5430cf(),this['keystrokes']=new _0x104d62(),this['set']('revisionNameInputValue',''),this['revisionNameInputView']=this['_createRevisionNameInput'](_0x205bb0),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'](),_0x2011e7({'view':this}),this['focusTracker']['add'](this['revisionNameInputView']['element']),this['keystrokes']['listenTo'](this['element']);const _0x2b8c8=_0x1371a8=>_0x1371a8['stopPropagation']();this['keystrokes']['set']('arrowright',_0x2b8c8),this['keystrokes']['set']('arrowleft',_0x2b8c8),this['keystrokes']['set']('arrowup',_0x2b8c8),this['keystrokes']['set']('arrowdown',_0x2b8c8);}['focus'](){this['revisionNameInputView']['focus']();}get['revisionName'](){return this['revisionNameInputView']['fieldView']['element']['value']['trim']();}set['revisionName'](_0x4dc34a){this['revisionNameInputView']['fieldView']['element']['value']=_0x4dc34a['trim']();}['reset'](){this['revisionNameInputView']['fieldView']['element']['value']='',this['revisionNameInputView']['errorText']=null;}['_createRevisionNameInput'](_0x523d02){const _0x5b21bb=new nt(this['locale'],_0x340949),_0x30226f=_0x5b21bb['fieldView'];_0x30226f['extendTemplate']({'attributes':{'maxlength':'220'}});let _0x506123=m(this['locale'],'Name\x20of\x20the\x20revision');return!_0x523d02&&(_0x506123+='\x20('+m(this['locale'],'optional')+')'),(_0x5b21bb['label']=_0x506123,_0x30226f['on']('input',()=>{this['revisionNameInputValue']=_0x30226f['element']['value']['trim']();}),_0x5b21bb);}}class u extends _0x4fdbea{static get['pluginName'](){return'RevisionHistoryUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[l];}['_saveRevisionFormView'];['init'](){const _0x276703=this['editor'],_0x23bc14=_0x276703['plugins']['get']('RevisionTracker');_0x276703['ui']['componentFactory']['add']('revisionHistory',_0x325b28=>{const _0x18c15f=_0x37364d(_0x325b28),_0xc0c6e6=_0x18c15f['panelView']['children'],_0x48fda0=new te(_0x325b28),_0x43b79e=new _0x11e6d9(_0x325b28),_0x1fe773=new _0x46e8ac(_0x325b28),_0x21b495=new _0x11e6d9(_0x325b28),_0x191561=new _0x46e8ac(_0x325b28);return _0x18c15f['bind']('isEnabled')['to'](_0x23bc14,'isReady',_0x23bc14,'isEnabled',_0x276703,'isReadOnly',(_0x484a42,_0x212b85,_0x43bd69)=>_0x484a42&&_0x212b85&&!_0x43bd69),_0x18c15f['buttonView']['set']({'icon':_0x3d2fb2['history'],'label':m(_0x325b28,'Revision\x20history'),'tooltip':!0x0}),_0x1fe773['set']({'label':m(_0x325b28,'Save\x20current\x20revision'),'withText':!0x0,'role':'menuitem'}),_0x1fe773['bind']('isEnabled')['to'](_0x23bc14,'isReady',_0x23bc14,'isEnabled',_0x276703,'isReadOnly',(_0x1325df,_0x1da602,_0x1277ab)=>_0x1325df&&_0x1da602&&!_0x1277ab),_0x1fe773['on']('execute',()=>this['_showDialog']()),_0x191561['set']({'label':m(_0x325b28,'Open\x20revision\x20history'),'withText':!0x0,'role':'menuitem'}),_0x191561['bind']('isEnabled')['to'](_0x23bc14,'isReady',_0x276703,'isReadOnly',(_0x176545,_0xbf11d9)=>_0x176545&&!_0xbf11d9),_0x191561['on']('execute',()=>{_0x276703['config']['get']('revisionHistory')['showRevisionViewerCallback'](),_0x18c15f['isOpen']=!0x1,_0x276703['editing']['view']['focus']();}),_0x43b79e['children']['add'](_0x1fe773),_0x21b495['children']['add'](_0x191561),_0x48fda0['role']='menu',_0x48fda0['items']['addMany']([_0x43b79e,_0x21b495]),_0xc0c6e6['add'](_0x48fda0),_0x18c15f;}),_0x276703['ui']['componentFactory']['add']('menuBar:revisionHistory',()=>this['_registerMenuComponent']());}['_registerMenuComponent'](){const _0x2525a4=this['editor'],_0x4648ce=_0x2525a4['locale'],_0x25de45=new _0x59f7ee(_0x4648ce),_0x319214=new _0x10ae4d(_0x4648ce);_0x25de45['buttonView']['set']({'icon':_0x3d2fb2['history'],'label':m(_0x4648ce,'Revision\x20history')});const _0x1d53bd=new _0x2b9bd2(_0x4648ce,_0x25de45),_0x40a100=new _0x29e628(_0x4648ce);_0x40a100['set']({'label':m(_0x4648ce,'Save\x20current\x20revision')}),_0x40a100['delegate']('execute')['to'](_0x25de45),_0x40a100['on']('execute',()=>{this['_showDialog']();}),_0x1d53bd['children']['add'](_0x40a100),_0x319214['items']['add'](_0x1d53bd);const _0x4161e3=new _0x2b9bd2(_0x4648ce,_0x25de45),_0x475def=new _0x29e628(_0x4648ce);return _0x475def['set']({'label':m(_0x4648ce,'Open\x20revision\x20history')}),_0x475def['delegate']('execute')['to'](_0x25de45),_0x475def['on']('execute',()=>{_0x2525a4['config']['get']('revisionHistory')['showRevisionViewerCallback']();}),_0x4161e3['children']['add'](_0x475def),_0x319214['items']['add'](_0x4161e3),_0x25de45['panelView']['children']['add'](_0x319214),_0x25de45;}['_showDialog'](){const _0x2adf6d=this['editor'],_0x3669f9=_0x2adf6d['locale'],_0x345267=_0x2adf6d['plugins']['get']('Dialog'),_0x571fc2=_0x2adf6d['plugins']['get']('RevisionTracker');function _0x2a3fe8(_0x5aff16){_0x2adf6d['config']['get']('revisionHistory.requireRevisionName')&&''===_0x5aff16['revisionName']?_0x5aff16['revisionNameInputView']['errorText']=m(_0x3669f9,'The\x20revision\x20name\x20cannot\x20be\x20empty.'):(_0x2adf6d['plugins']['get'](l)['saveRevision']({'name':_0x5aff16['revisionName']}),_0x345267['hide']());}this['_saveRevisionFormView']||(this['_createSaveRevisionFormView'](),this['_saveRevisionFormView']['on']('submit',()=>_0x2a3fe8(this['_saveRevisionFormView']))),this['_saveRevisionFormView']['reset'](),_0x345267['show']({'id':'revisionSave','title':m(_0x3669f9,'Save\x20current\x20revision'),'isModal':!0x0,'content':this['_saveRevisionFormView'],'actionButtons':[{'label':m(_0x2adf6d['locale'],'Cancel'),'withText':!0x0,'onExecute':()=>_0x345267['hide']()},{'label':m(_0x2adf6d['locale'],'Accept'),'class':'ck-button-action','withText':!0x0,'onCreate'(_0x1248b6){_0x1248b6['bind']('isEnabled')['to'](_0x571fc2,'isReady',_0x571fc2,'isEnabled',_0x2adf6d,'isReadOnly',(_0x4dd686,_0x2ed1b1,_0x81819a)=>_0x4dd686&&_0x2ed1b1&&!_0x81819a);},'onExecute':()=>_0x2a3fe8(this['_saveRevisionFormView'])}]});}['_createSaveRevisionFormView'](){const _0x2f324b=this['editor'],_0x4d4813=_0x2f324b['locale'];this['_saveRevisionFormView']=new ns(_0x4d4813,_0x2f324b['config']['get']('revisionHistory.requireRevisionName')),this['_saveRevisionFormView']['render']();}}class X extends _0x4bf032{['changeId'];['_model'];constructor(_0x1b62a5,_0x5a1ccc){super(_0x1b62a5),this['_model']=_0x5a1ccc,this['changeId']=_0x5a1ccc['id'];const _0x52e49f=this['bindTemplate'],_0x4466de=m(_0x1b62a5,_0x5a1ccc['data']['isSuggestion']?'Suggested\x20by':'add'==_0x5a1ccc['type']?'Added\x20by':'Removed\x20by');this['set']('type',_0x5a1ccc['type']),this['setTemplate']({'tag':'div','attributes':{'class':['ck-annotation','ck-revision-change',_0x52e49f['to']('type',_0x1c48b8=>'ck-revision-change__'+_0x1c48b8)],'tabindex':-0x1},'children':[{'tag':'span','children':[{'tag':'span','attributes':{'class':['ck-revision-change__label']},'children':[{'text':_0x4466de}]},{'text':'\x20'+_0x5a1ccc['author']['name']}]}]});}['focus'](){this['element']['focus']();}}class r extends/* #__PURE__ -- @preserve */
|
|
25
|
-
_0x7eba63(){['id'];['author'];['type'];['data'];['rootName'];constructor(_0x4a1157){super(),this['id']=_0x4a1157['id']||_0x46c15b(),this['author']=_0x4a1157['author'],this['type']=_0x4a1157['type'],this['data']=_0x4a1157['data']||{},this['rootName']=_0x4a1157['rootName'],this['set']('createdAt',_0x4a1157['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(_0x234608,_0x3fc9d0){this['newRevisionId']=_0x234608,this['oldRevisionId']=_0x3fc9d0,this['changes']=new _0x15164d();}['_setChanges'](_0x4a7e28){for(const _0x523a66 of _0x4a7e28)this['changes']['add'](_0x523a66);}}const Y={'c':_0x3324aa,'a':_0x57dd33,'e':_0x413bc2,'r':_0x1716cf,'u':_0x5cdf1c};class d extends _0x4fdbea{['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[_0x55d644,_0x131a58,j];}constructor(_0x49ecff){super(_0x49ecff),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',(_0x544f31,_0x17cd09,_0x278ead)=>{this['activeChange']=null,this['activeView']=null,this['editor']['editing']['view']['change'](_0x23604a=>{for(const _0x24ce59 of this['editor']['editing']['view']['document']['roots'])_0x278ead?_0x23604a['removeClass']('ck-editor__editable__overlay',_0x24ce59):_0x23604a['addClass']('ck-editor__editable__overlay',_0x24ce59);});}),this['bind']('isNavigationMode')['to'](this,'activeChange',_0x169ac0=>null!==_0x169ac0),this['bind']('currentChangeNumber')['to'](this,'isReady',this,'diff',this,'activeChange',(_0x353d55,_0x25e9b8,_0x536c33)=>_0x353d55&&_0x536c33?_0x25e9b8['changes']['getIndex'](_0x536c33):0x0),this['bind']('numberOfChanges')['to'](this,'isReady',this,'diff',(_0x43b80e,_0x371826)=>_0x43b80e?_0x371826['changes']['length']:0x0),this['_changeView']=null,this['_changeIdToChange']=new Map(),this['adapter']=null,this['_balloon']=this['editor']['plugins']['get'](_0x131a58);}['init'](){const _0x2acb81=this['editor'],_0x5744df=new yt(_0x2acb81,{'direction':'backward'}),_0x5b4c13=new yt(_0x2acb81,{'direction':'forward'});(_0x2acb81['commands']['add']('showPreviousChange',_0x5744df),_0x2acb81['commands']['add']('showNextChange',_0x5b4c13),_0x2acb81['commands']['add']('restoreRevision',new _t(_0x2acb81)),this['on']('change:numberOfChanges',()=>{_0x5744df['refresh'](),_0x5b4c13['refresh']();}),this['_setConversion'](),this['_initInteractions'](),_0x2acb81['enableReadOnlyMode']('revision-viewer'),_0x2acb81['plugins']['has']('WidgetToolbarRepository'))&&_0x2acb81['plugins']['get']('WidgetToolbarRepository')['forceDisabled']('revision-viewer');}async['getRevisionData'](_0x216a61){await this['loadRevisionData'](_0x216a61);const _0x439ab1={};for(const _0x26f8a2 in _0x216a61['diffData']){if(_0x216a61['diffData'][_0x26f8a2]['attachChange']&&!_0x216a61['diffData'][_0x26f8a2]['attachChange']['isAttached'])continue;const _0x2c5231=this['_removeRevisionMarkers'](JSON['parse'](_0x216a61['diffData'][_0x26f8a2]['insertions'])),_0x3d5950=this['editor']['editing']['view']['document'],_0x18fec8=new _0x3b27f6(_0x3d5950,_0x2c5231['map'](_0x5a6a2d=>this['_getViewObj'](_0x5a6a2d)));this['editor']['data']['processor']['useFillerType']('marked'),_0x439ab1[_0x26f8a2]=this['editor']['data']['processor']['toData'](_0x18fec8),this['editor']['data']['processor']['useFillerType']('default');}return _0x439ab1;}async['getRevisionRootsAttributes'](_0x2f9b73){await this['loadRevisionData'](_0x2f9b73);const _0x5dd74c={};for(const _0x16ae43 in _0x2f9b73['diffData'])_0x2f9b73['diffData'][_0x16ae43]['attachChange']&&!_0x2f9b73['diffData'][_0x16ae43]['attachChange']['isAttached']||(_0x5dd74c[_0x16ae43]=_0x2f9b73['diffData'][_0x16ae43]['attributesAfter']||{});return _0x5dd74c;}['_removeRevisionMarkers'](_0x255507){return(_0x255507=_0x255507['filter'](_0x301cac=>!_0x301cac['name']||'revision-start'!==_0x301cac['name']&&'revision-end'!==_0x301cac['name']))['forEach'](_0x59da6b=>{'string'!=typeof _0x59da6b&&(_0x59da6b['children']=this['_removeRevisionMarkers'](_0x59da6b['children']),_0x59da6b['attributes']=_0x59da6b['attributes']['filter'](_0x351399=>!_0x351399[0x0]['startsWith']('data-revision-')));}),_0x255507;}async['compare'](_0x142636,_0x30f853,_0xdae57a=!0x1){if(!this['isEnabled'])return;const _0x69a996=this['diff'],_0x2ada0f=this['repository'],_0x8ebe34='string'==typeof _0x142636?_0x2ada0f['getRevision'](_0x142636):_0x142636,_0x4bfcff='string'==typeof _0x30f853?_0x2ada0f['getRevision'](_0x30f853):_0x30f853,_0x26e847=_0x8ebe34['id'],_0x4811de=_0x4bfcff?_0x4bfcff['id']:null;if(!_0xdae57a&&this['diff']&&this['diff']['newRevisionId']===_0x26e847&&this['diff']['oldRevisionId']===_0x4811de)return Promise['resolve']();this['isReady']=!0x1,this['activeView']=null,this['activeChange']=null,this['diff']=new f(_0x26e847,_0x4811de);const _0x594d37=this['_getRevisionsRange'](_0x8ebe34,_0x4bfcff,!0x0)['map'](_0x2aedcf=>this['loadRevisionData'](_0x2aedcf));return _0x594d37['push'](new Promise(_0xf6f792=>{setTimeout(_0xf6f792,0x14);})),Promise['all'](_0x594d37)['then'](()=>{if(!this['isEnabled'])return;this['_cleanUp']();const _0x462a5b=this['_getDiff'](_0x26e847,_0x4811de);for(const _0x2975cc of _0x462a5b['changes'])this['_changeIdToChange']['set'](_0x2975cc['id'],_0x2975cc);this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x47bc31=>{for(const _0x13e5ae of this['editor']['model']['document']['getRootNames']())_0x47bc31['detachRoot'](_0x13e5ae);for(const _0x16b10e of Object['keys'](_0x462a5b['model'])){const _0x5dc90b=_0x47bc31['addRoot'](_0x16b10e);for(const _0x119a3f of Object['keys'](_0x462a5b['attributes'][_0x16b10e]))_0x47bc31['setAttribute'](_0x119a3f,_0x462a5b['attributes'][_0x16b10e][_0x119a3f],_0x5dc90b);_0x47bc31['insert'](_0x462a5b['model'][_0x16b10e],_0x5dc90b,0x0);}}),this['diff']['_setChanges'](this['_sortAndFilterDiffChanges'](_0x462a5b['changes'])),this['isReady']=!0x0;})['catch'](_0x2a22dd=>{console['error'](_0x2a22dd),this['_cleanUp'](),_0x69a996&&(this['diff']=_0x69a996),this['isReady']=!0x0;});}['addRevisionData'](_0x37afa5,_0x5a5eb5){const _0x15bb3c=this['repository']['createRevision'](_0x37afa5);return _0x15bb3c['on']('_update',(_0x4fe9d0,_0x549f49,_0x2a5889)=>_0x5a5eb5(_0x549f49,_0x2a5889,_0x15bb3c)),this['repository']['addRevision'](_0x15bb3c),_0x15bb3c;}['loadRevisionData'](_0x372237){if(!_0x372237||_0x372237['diffData'])return Promise['resolve']();{const _0x55d7e9=this['editor']['config']['get']('collaboration.channelId');return this['adapter']['getRevision']({'channelId':_0x55d7e9,'revisionId':_0x372237['id']})['then'](_0x4ef5ac=>{_0x372237['_update']({'diffData':_0x4ef5ac['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},_0x28c653=>{for(const _0x195c08 of this['editor']['model']['document']['getRootNames']())_0x28c653['detachRoot'](_0x195c08);});}['_sortAndFilterDiffChanges'](_0x88bc6){const _0x30c5f6=[],_0x1fa3bc=new Map();for(const _0x2e1ebd of this['editor']['model']['document']['getRootNames']()){const _0x3b2d55=this['editor']['editing']['view']['getDomRoot'](_0x2e1ebd);if(!_0x3b2d55)continue;const _0x5301e4=_0x3b2d55['getClientRects']()['item'](0x0);_0x5301e4&&(_0x30c5f6['push'](_0x2e1ebd),_0x1fa3bc['set'](_0x2e1ebd,_0x5301e4));}return _0x30c5f6['sort']((_0x49ef2,_0x505b72)=>{const _0x1909b7=_0x1fa3bc['get'](_0x49ef2),_0x154aed=_0x1fa3bc['get'](_0x505b72);return _0x1909b7['y']-_0x154aed['y']||_0x1909b7['x']-_0x154aed['x'];}),(_0x88bc6=_0x88bc6['filter'](_0x685ddc=>_0x30c5f6['includes'](_0x685ddc['rootName'])))['sort']((_0x281a3e,_0x2ecef2)=>_0x30c5f6['indexOf'](_0x281a3e['rootName'])-_0x30c5f6['indexOf'](_0x2ecef2['rootName'])),_0x88bc6;}['_makeTape'](_0x15bd4c){const _0x49c9d0=Array['from'](_0x15bd4c['markers'])['filter'](([_0x371ead,_0xafef05])=>_0x371ead['startsWith']('revision:')&&!_0xafef05['isCollapsed']),_0x59a554=Array['from'](this['editor']['model']['createRangeIn'](_0x15bd4c)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0x49c9d0['length'])for(const _0x30d82a of _0x59a554){const [_0x2fb6dd,_0x247687]=_0x49c9d0[0x0],[,_0x788961,_0x506fa3]=_0x2fb6dd['split'](':');if(_0x247687['end']['isEqual'](_0x30d82a['nextPosition'])&&_0x49c9d0['shift'](),(_0x30d82a['previousPosition']['isEqual'](_0x247687['start'])||_0x30d82a['previousPosition']['isAfter'](_0x247687['start']))&&('insertion'==_0x788961?_0x30d82a['isAdded']={'userId':_0x506fa3}:'deletion'==_0x788961&&(_0x30d82a['isRemoved']={'userId':_0x506fa3})),0x0==_0x49c9d0['length'])break;}return _0x59a554;}['_refreshStartEndIndex'](_0xb4ad7a){const _0x433d89=new Map();for(let _0x3de708=0x0;_0x3de708<_0xb4ad7a['length'];_0x3de708++)'text'===_0xb4ad7a[_0x3de708]['type']?(_0xb4ad7a[_0x3de708]['item']['startIndex']=_0x3de708,_0xb4ad7a[_0x3de708]['item']['endIndex']=_0x3de708):('elementStart'===_0xb4ad7a[_0x3de708]['type']?_0xb4ad7a[_0x3de708]['item']['startIndex']=_0x3de708:'elementEnd'===_0xb4ad7a[_0x3de708]['type']&&(_0xb4ad7a[_0x3de708]['item']['endIndex']=_0x3de708),_0x433d89['set'](_0xb4ad7a[_0x3de708]['id'],_0x3de708));for(const _0x17d8ce of _0x433d89['values']())'elementStart'===_0xb4ad7a[_0x17d8ce]['type']?_0xb4ad7a[_0x17d8ce]['item']['endIndex']=_0x433d89['get'](_0xb4ad7a[_0x17d8ce]['pairId']):'elementEnd'===_0xb4ad7a[_0x17d8ce]['type']&&(_0xb4ad7a[_0x17d8ce]['item']['startIndex']=_0x433d89['get'](_0xb4ad7a[_0x17d8ce]['pairId']));}['_processTape'](_0x4e6390){for(let _0x2d02b7=0x0;_0x2d02b7<_0x4e6390['length'];_0x2d02b7++){if('elementStart'===_0x4e6390[_0x2d02b7]['type'])_0x4e6390[_0x2d02b7]['item']['startIndex']=_0x2d02b7;else{if('elementEnd'===_0x4e6390[_0x2d02b7]['type']){_0x4e6390[_0x2d02b7]['item']['endIndex']=_0x2d02b7;const _0x4a7b68=_0x4e6390[_0x2d02b7]['item']['startIndex'];_0x4e6390[_0x4a7b68]['pairId']=_0x4e6390[_0x2d02b7]['id'],_0x4e6390[_0x2d02b7]['pairId']=_0x4e6390[_0x4a7b68]['id'];}else _0x4e6390[_0x2d02b7]['item']['startIndex']=_0x2d02b7,_0x4e6390[_0x2d02b7]['item']['endIndex']=_0x2d02b7,_0x4e6390[_0x2d02b7]['pairId']=null;}_0x4e6390[_0x2d02b7]['markersStart']||(_0x4e6390[_0x2d02b7]['markersStart']=[],_0x4e6390[_0x2d02b7]['markersEnd']=[]);}}['_markInsertions'](_0x4e9904,_0x3d3f24){const _0x144702=_0x4e9904['filter'](_0x1a7e50=>!_0x1a7e50['isAdded']);for(let _0x151338=0x0;_0x151338<_0x3d3f24['length'];_0x151338++)_0x3d3f24[_0x151338]['isAdded']&&(_0x144702[_0x151338]['isAdded']=_0x3d3f24[_0x151338]['isAdded']);}['_makeModelFromViewString'](_0x42bf0c){const _0x5a692a=JSON['parse'](_0x42bf0c),_0x4c6629=this['editor']['editing']['view']['document'],_0x41e12b=new _0x3b27f6(_0x4c6629,_0x5a692a['map'](_0x5dcd43=>this['_getViewObj'](_0x5dcd43)));return this['editor']['data']['toModel'](_0x41e12b);}['_getViewObj'](_0x195447){const _0x213a7b=this['editor']['editing']['view']['document'];if('string'==typeof _0x195447)return new _0xc623b1(_0x213a7b,_0x195447);{const _0x1d87b6=_0x195447['children']['map'](_0x1d324e=>this['_getViewObj'](_0x1d324e));return new(Y[_0x195447['type']]||_0x3c6c19)(_0x213a7b,_0x195447['name'],_0x195447['attributes'],_0x1d87b6);}}['_getDiff'](_0x50cdff,_0x5d4f54=null){const _0x58e153=this['repository']['getRevision'](_0x50cdff),_0x4318c0=_0x5d4f54?this['repository']['getRevision'](_0x5d4f54):null,_0x19ffc1=this['_getRevisionsRange'](_0x58e153,_0x4318c0),_0x143b42=_0x19ffc1[_0x19ffc1['length']-0x1],_0x3e423a=new Map(),_0x1f1538={'model':{},'attributes':{},'changes':[]},_0x399ba0=new Set(),_0x37d996=new Map();for(let _0x4b2d6b=_0x19ffc1['length']-0x1;_0x4b2d6b>=0x0;_0x4b2d6b--){const _0x592f3d=_0x19ffc1[_0x4b2d6b];for(const _0x198e25 of Object['keys'](_0x592f3d['diffData']))if(_0x592f3d['diffData'][_0x198e25]['attachChange']){const _0x72cdbc=_0x592f3d['diffData'][_0x198e25]['attachChange'];_0x72cdbc['isAttached']?(_0x399ba0['add'](_0x198e25),_0x37d996['has'](_0x198e25)&&_0x37d996['get'](_0x198e25)['userId']==_0x72cdbc['userId']?_0x37d996['delete'](_0x198e25):_0x37d996['set'](_0x198e25,_0x72cdbc)):_0x37d996['has'](_0x198e25)?(_0x399ba0['delete'](_0x198e25),_0x37d996['delete'](_0x198e25)):(_0x399ba0['add'](_0x198e25),_0x37d996['set'](_0x198e25,_0x72cdbc));}else _0x399ba0['add'](_0x198e25);}for(const _0x1b4d67 of _0x399ba0){const _0x46755f=_0x37d996['has'](_0x1b4d67)&&!_0x37d996['get'](_0x1b4d67)['isAttached'];let _0x2f5737=_0x46755f?_0x19ffc1['length']-0x1:0x0;const _0x3c1ebc=_0x46755f?-0x1:0x1;for(;_0x19ffc1[_0x2f5737];){const _0x324dbf=_0x19ffc1[_0x2f5737];if(_0x324dbf['diffData'][_0x1b4d67]){const _0x4c37c4=_0x46755f?_0x324dbf['diffData'][_0x1b4d67]['attributesBefore']:_0x324dbf['diffData'][_0x1b4d67]['attributesAfter'];_0x1f1538['attributes'][_0x1b4d67]=_0x4c37c4?_0x3a1362(_0x4c37c4):{};break;}_0x2f5737+=_0x3c1ebc;}}for(const _0x36f23d of _0x19ffc1){_0x36f23d['model']={};for(const _0x3a7457 of _0x36f23d['authors'])_0x3e423a['set'](_0x3a7457['id'],_0x3a7457);for(const _0x2d5f37 of _0x399ba0){const _0x18eece=_0x36f23d['diffData'][_0x2d5f37]?_0x36f23d['diffData'][_0x2d5f37]['insertions']:'[]',_0x1aafd7=_0x36f23d['diffData'][_0x2d5f37]?_0x36f23d['diffData'][_0x2d5f37]['deletions']:'[]';_0x36f23d['model'][_0x2d5f37]={'insertions':this['_makeModelFromViewString'](_0x18eece),'deletions':this['_makeModelFromViewString'](_0x1aafd7)};}}for(const _0x11cd2d of _0x399ba0){let _0x123f5c=null,_0x1cf8de=0x0;const _0x3cdafe=new Map(Array['from'](_0x58e153['model'][_0x11cd2d]['insertions']['markers'])['filter'](([_0x1f1ccc])=>!_0x1f1ccc['startsWith']('revision:')));let _0x5b79a1=0x0;for(const _0x1466b7 of _0x19ffc1){const _0x2d89b8=this['_makeTape'](_0x1466b7['model'][_0x11cd2d]['insertions']);_0x1466b7==_0x58e153?(_0x123f5c=_0x2d89b8,_0x1cf8de=_0x123f5c['length'],_0x123f5c['forEach'](_0x326532=>{_0x326532['id']=_0x5b79a1++;}),this['_processTape'](_0x123f5c)):this['_markInsertions'](_0x123f5c,_0x2d89b8);const _0x418578=_0x123f5c['filter'](_0x5c8371=>!_0x5c8371['isAdded'])['map'](_0xa0c015=>_0xa0c015['id']);let _0x17900d=0x0;const _0x11adc6=this['_makeTape'](_0x1466b7['model'][_0x11cd2d]['deletions']);_0x11adc6['forEach'](_0x25ebfc=>{_0x25ebfc['isRemoved']?_0x25ebfc['id']=_0x1cf8de++:_0x25ebfc['id']=_0x418578[_0x17900d++];}),this['_processTape'](_0x11adc6),this['_setDistance'](_0x123f5c,'isAdded'),this['_setDistance'](_0x11adc6,'isRemoved'),_0x1466b7==_0x58e153&&this['_markMarkers'](_0x123f5c,_0x3cdafe),_0x123f5c=this['_joinTapes'](_0x123f5c,_0x11adc6),this['_refreshStartEndIndex'](_0x123f5c),this['_setDistance'](_0x123f5c,'isRemoved');}_0x123f5c=_0x123f5c['filter'](_0x582cc5=>!(_0x582cc5['isAdded']&&_0x582cc5['isRemoved']));const _0x4931db=new Map(_0x143b42['model'][_0x11cd2d]['deletions']['markers']),_0x3fb836=new Set(_0x3cdafe['keys']());for(const _0x1799e9 of _0x4931db['keys']())_0x3fb836['delete'](_0x1799e9);this['_markSuggestions'](_0x123f5c,_0x3fb836),this['_fixObsoleteTags'](_0x123f5c),_0x123f5c=this['_removeMissingPairs'](_0x123f5c),_0x123f5c=this['_markMismatchedRemovedTags'](_0x123f5c),_0x123f5c=this['_removeUnsupportedChanges'](_0x123f5c);const {root:_0x1f09b7,changes:_0x29bf77}=this['_makeModelFromTape'](_0x123f5c,_0x3e423a,_0x11cd2d);_0x1f1538['model'][_0x11cd2d]=_0x1f09b7;const _0x1ea09=_0x37d996['get'](_0x11cd2d);if(_0x1ea09){const _0xd6bd6b=_0x3e423a['get'](_0x1ea09['userId']),_0x1645d7=new r({'author':_0xd6bd6b,'type':_0x1ea09['isAttached']?'add':'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x11cd2d});_0x29bf77['unshift'](_0x1645d7),_0x1f1538['attributes'][_0x11cd2d]['revisionHistoryAttachChange']=_0x1645d7['id'];}_0x1f1538['changes']=_0x1f1538['changes']['concat'](_0x29bf77);}return _0x1f1538;}['_markMarkers'](_0x52a056,_0x1eea47){for(let _0x57b5e3=0x0;_0x57b5e3<_0x52a056['length'];_0x57b5e3++)for(const [_0x46921f,_0x34bc04]of _0x1eea47)_0x34bc04['start']['isEqual'](_0x52a056[_0x57b5e3]['previousPosition'])&&_0x52a056[_0x57b5e3]['markersStart']['push'](_0x46921f),_0x34bc04['end']['isEqual'](_0x52a056[_0x57b5e3]['nextPosition'])&&_0x52a056[_0x57b5e3]['markersEnd']['push'](_0x46921f);}['_joinTapes'](_0x4eb849,_0x2d819a){let _0x497900=[],_0x392bb9=0x0,_0x59a69c=0x0;for(;_0x392bb9<_0x4eb849['length']||_0x59a69c<_0x2d819a['length'];){const _0x1b14fb=_0x4eb849[_0x392bb9]||{},_0x474790=_0x2d819a[_0x59a69c]||{};if(_0x1b14fb['id']==_0x474790['id'])_0x392bb9++,_0x59a69c++,_0x497900['push'](_0x1b14fb);else{if(_0x474790['isRemoved']&&_0x1b14fb['isAdded']){const {commonTape:_0xc87ad0,iEnd:_0x55fd96,jEnd:_0xd5d586}=this['_threeWayMerge'](_0x4eb849,_0x392bb9,_0x2d819a,_0x59a69c);_0x497900=_0x497900['concat'](_0xc87ad0),_0x392bb9=_0x55fd96,_0x59a69c=_0xd5d586;}else _0x474790['isRemoved']?(_0x59a69c++,_0x497900['push'](_0x474790)):(_0x392bb9++,_0x497900['push'](_0x1b14fb));}}return _0x497900;}['_markSuggestions'](_0x3f195e,_0x4f1091){const _0x4004f8=[];for(let _0x5beee6=0x0;_0x5beee6<_0x3f195e['length'];_0x5beee6++){for(let _0x2543b7=0x0;_0x2543b7<_0x3f195e[_0x5beee6]['markersStart']['length'];_0x2543b7++){const _0xbbaae9=_0x3f195e[_0x5beee6]['markersStart'][_0x2543b7];if(!_0x4f1091['has'](_0xbbaae9))continue;const {group:_0x4e62e6,type:_0x14e58a,authorId:_0x4dadb7}=_0x14f214(_0xbbaae9);'revision-suggestion'!=_0x4e62e6||'insertion'!=_0x14e58a&&'deletion'!=_0x14e58a||(_0x4004f8['unshift']({'type':_0x14e58a,'name':_0xbbaae9,'userId':_0x4dadb7}),_0x3f195e[_0x5beee6]['markersStart']['splice'](_0x2543b7,0x1),_0x2543b7--);}_0x1c742c(_0x3f195e[_0x5beee6]);for(let _0x3f0a54=0x0;_0x3f0a54<_0x3f195e[_0x5beee6]['markersEnd']['length'];_0x3f0a54++){const _0x119185=_0x3f195e[_0x5beee6]['markersEnd'][_0x3f0a54];if(!_0x4f1091['has'](_0x119185))continue;const {group:_0x82a7e,type:_0x67d0f}=_0x14f214(_0x119185);if('revision-suggestion'!=_0x82a7e||'insertion'!=_0x67d0f&&'deletion'!=_0x67d0f)continue;_0x3f195e[_0x5beee6]['markersEnd']['splice'](_0x3f0a54,0x1),_0x3f0a54--;const _0x30ea87=_0x4004f8['findIndex'](_0x33a342=>_0x33a342['name']==_0x119185);_0x30ea87>-0x1&&_0x4004f8['splice'](_0x30ea87,0x1);}}function _0x14f214(_0x333df4){const _0xfa6f01=_0x333df4['split'](':');return{'group':_0xfa6f01[0x0],'type':_0xfa6f01[0x1],'subType':_0xfa6f01['length']>=0x5?_0xfa6f01[0x2]:null,'id':_0xfa6f01['length']<0x5?_0xfa6f01[0x2]:_0xfa6f01[0x3],'authorId':_0xfa6f01['length']<0x5?_0xfa6f01[0x3]:_0xfa6f01[0x4],'markerCount':0x6==_0xfa6f01['length']?_0xfa6f01[0x5]:null};}function _0x1c742c(_0x1acfd5){for(let _0x2e00a1=0x0;_0x2e00a1<_0x4004f8['length'];_0x2e00a1++){if(_0x1acfd5['isAdded']&&'insertion'==_0x4004f8[_0x2e00a1]['type'])return _0x1acfd5['isAddSuggestion']=_0x4004f8[_0x2e00a1],void delete _0x1acfd5['isAdded'];if(!_0x1acfd5['isAdded']&&!_0x1acfd5['isRemoved']&&'deletion'==_0x4004f8[_0x2e00a1]['type'])return void(_0x1acfd5['isRemoveSuggestion']=_0x4004f8[_0x2e00a1]);}}}['_setDistance'](_0x522d54,_0x4130b8){let _0x32e099=0x0,_0x4de0a6=!0x1;const _0x11b90c=new Map();for(const _0x45cdb3 of _0x522d54)_0x45cdb3[_0x4130b8]?_0x4de0a6&&(_0x32e099++,_0x4de0a6=!0x1):(_0x32e099++,_0x4de0a6=!0x0),_0x11b90c['set'](_0x45cdb3['id'],_0x32e099);for(let _0x2e682c=0x0;_0x2e682c<_0x522d54['length'];_0x2e682c++){if('isRemoved'==_0x4130b8&&_0x522d54[_0x2e682c]['isAdded']||'isAdded'==_0x4130b8&&_0x522d54[_0x2e682c]['isRemoved'])continue;if('text'==_0x522d54[_0x2e682c]['type']){_0x522d54[_0x2e682c]['distance']=0x0;continue;}const _0x475c1d=_0x11b90c['get'](_0x522d54[_0x2e682c]['pairId']),_0x3521ce=_0x11b90c['get'](_0x522d54[_0x2e682c]['id']);_0x522d54[_0x2e682c]['distance']=_0x475c1d-_0x3521ce;}}['_getRevisionsRange'](_0x300ea4,_0x512749,_0x409948=!0x1){const _0xe3b393=[];let _0x376607=this['repository']['getIndex'](_0x300ea4),_0xc47abd=this['repository']['getIndex'](_0x512749);for(-0x1==_0xc47abd&&(_0xc47abd=this['repository']['_revisions']['length'],_0x409948=!0x1);_0x376607<_0xc47abd;)_0xe3b393['push'](this['repository']['getRevision'](_0x376607)),_0x376607++;return _0x409948&&_0xe3b393['push'](this['repository']['getRevision'](_0x376607)),_0xe3b393;}['_threeWayMerge'](_0x452a0d,_0x55e3bd,_0x5360a7,_0x54c44a){const _0x2a5d25=this['editor']['model']['schema'];let _0x2efa26=_0x55e3bd;for(;_0x452a0d[_0x2efa26]&&_0x452a0d[_0x2efa26]['isAdded'];)_0x2efa26++;let _0x5c3b4e=_0x54c44a;for(;_0x5360a7[_0x5c3b4e]&&_0x5360a7[_0x5c3b4e]['isRemoved'];)_0x5c3b4e++;_0x1cf275(_0x452a0d,_0x55e3bd,_0x2efa26),_0x1cf275(_0x5360a7,_0x54c44a,_0x5c3b4e);const _0x403421=_0x5360a7['slice'](_0x54c44a,_0x5c3b4e)['concat'](_0x452a0d['slice'](_0x55e3bd,_0x2efa26));return _0x403421['sort']((_0x319995,_0x485c49)=>_0x319995['side']!=_0x485c49['side']?_0x319995['side']-_0x485c49['side']:_0x319995['level']!=_0x485c49['level']?_0x319995['level']-_0x485c49['level']:_0x319995['distance']!=_0x485c49['distance']?_0x485c49['distance']-_0x319995['distance']:!!_0x319995['isAdded']!=!!_0x485c49['isAdded']?-0x1==_0x319995['side']||0x0==_0x319995['side']?_0x319995['isAdded']?-0x1:0x1:_0x319995['isAdded']?0x1:-0x1:_0x319995['index']-_0x485c49['index']),{'commonTape':_0x403421,'iEnd':_0x2efa26,'jEnd':_0x5c3b4e};function _0x1cf275(_0x5aef88,_0x2259ae,_0x32b7f4){let _0x3eca49=-0x1,_0xcf01a3=Number['POSITIVE_INFINITY'],_0x2205f7=!0x0;for(let _0x38d257=_0x2259ae;_0x38d257<_0x32b7f4;_0x38d257++)if(_0x2a5d25['isInline'](_0x5aef88[_0x38d257]['item'])||(_0x2205f7=!0x1),_0x5aef88[_0x38d257]['item']['startIndex']<_0x2259ae&&(_0x3eca49=_0x38d257),_0x5aef88[_0x38d257]['item']['endIndex']>=_0x32b7f4){_0xcf01a3=_0x38d257;break;}_0x2205f7&&(_0x3eca49=_0x32b7f4-0x1);for(let _0xfc9061=_0x2259ae;_0xfc9061<_0x32b7f4;_0xfc9061++)_0x5aef88[_0xfc9061]['side']=_0xfc9061<=_0x3eca49?-0x1:_0xfc9061<_0xcf01a3?0x0:0x1,_0x5aef88[_0xfc9061]['index']=_0xfc9061;let _0x30756b=0x0;for(let _0xab8700=_0x2259ae;_0xab8700<=_0x3eca49;_0xab8700++)0x0==_0x5aef88[_0xab8700]['distance']?_0x5aef88[_0xab8700]['level']=_0x30756b:(_0x30756b++,_0x5aef88[_0xab8700]['level']=_0x30756b,_0x30756b++);for(let _0x9e88e7=_0x2259ae;_0x9e88e7<_0x32b7f4;_0x9e88e7++)0x0==_0x5aef88[_0x9e88e7]['side']&&(_0x5aef88[_0x9e88e7]['level']=_0x30756b);_0x30756b=0x0;for(let _0x289b99=_0x32b7f4-0x1;_0x289b99>=_0xcf01a3;_0x289b99--)0x0==_0x5aef88[_0x289b99]['distance']?_0x5aef88[_0x289b99]['level']=_0x30756b:(_0x30756b--,_0x5aef88[_0x289b99]['level']=_0x30756b,_0x30756b--);}}['_fixObsoleteTags'](_0x41305a){const _0x110900=new Map(),_0x4dfa12=this['editor']['model']['schema'];for(let _0x4ab151=0x1;_0x4ab151<_0x41305a['length'];_0x4ab151++){let _0x523009,_0x5b72a8,_0xde1d3f;const _0x1b51cc=_0x41305a[_0x4ab151],_0x1cca51=_0x41305a[_0x4ab151-0x1];if('text'==_0x1b51cc['type'])continue;if(_0x1b51cc['type']!=_0x1cca51['type'])continue;if(!_0x4dfa12['isBlock'](_0x1cca51['item'])||_0x4dfa12['isLimit'](_0x1cca51['item']))continue;if(!_0x4dfa12['isBlock'](_0x1b51cc['item'])||_0x4dfa12['isLimit'](_0x1b51cc['item']))continue;if((_0x41305a[_0x4ab151]['isAdded']||_0x41305a[_0x4ab151]['isAddSuggestion'])&&_0x41305a[_0x4ab151-0x1]['isRemoved'])_0x523009=_0x41305a[_0x4ab151],_0x5b72a8=_0x41305a[_0x4ab151-0x1],_0xde1d3f=_0x4ab151-0x1;else{if(!_0x41305a[_0x4ab151]['isRemoved']||!_0x41305a[_0x4ab151-0x1]['isAdded']&&!_0x41305a[_0x4ab151-0x1]['isAddSuggestion'])continue;_0x523009=_0x41305a[_0x4ab151-0x1],_0x5b72a8=_0x41305a[_0x4ab151],_0xde1d3f=_0x4ab151;}const _0x126b5e=_0x523009['level']==_0x5b72a8['level'],_0x358d86=Math['abs'](_0x523009['level'])<Math['abs'](_0x5b72a8['level'])&&0x0==_0x5b72a8['distance'];(_0x126b5e||_0x358d86)&&(_0x110900['set'](_0x5b72a8['id'],_0x523009['id']),_0x41305a['splice'](_0xde1d3f,0x1),_0x4ab151--,_0x523009['isAdded']=!0x1);}for(let _0x35f474=0x0;_0x35f474<_0x41305a['length'];_0x35f474++)_0x110900['has'](_0x41305a[_0x35f474]['pairId'])&&(_0x41305a[_0x35f474]['pairId']=_0x110900['get'](_0x41305a[_0x35f474]['pairId']));}['_removeMissingPairs'](_0x1891bd){const _0x9cf937=new Set(_0x1891bd['map'](_0x31ee35=>_0x31ee35['id']));for(let _0xb8d6dc=0x0;_0xb8d6dc<_0x1891bd['length'];_0xb8d6dc++)_0x9cf937['has'](_0x1891bd[_0xb8d6dc]['pairId'])||0x0==_0x1891bd[_0xb8d6dc]['distance']||(_0x1891bd[_0xb8d6dc]['isIncorrect']=!0x0);return _0x1891bd['filter'](_0x55a8c0=>!_0x55a8c0['isIncorrect']);}['_markMismatchedRemovedTags'](_0x1d7189){const _0x370920=new Set();for(let _0x435607=0x0;_0x435607<_0x1d7189['length'];_0x435607++){if(_0x370920['has'](_0x1d7189[_0x435607]['id'])&&_0x1d7189[_0x435607]['isRemoved']&&(_0x1d7189[_0x435607]['isIncorrect']=!0x0),_0x1d7189[_0x435607]['isIncorrect'])continue;if(0x0==_0x1d7189[_0x435607]['distance'])continue;if('elementStart'!=_0x1d7189[_0x435607]['type'])continue;if(null==_0x1d7189[_0x435607]['pairId'])continue;let _0x40bdf9=_0x435607+0x1,_0x5b1582=0x0;for(;_0x1d7189[_0x40bdf9]['id']!=_0x1d7189[_0x435607]['pairId'];)'elementStart'==_0x1d7189[_0x40bdf9]['type']?_0x5b1582++:'elementEnd'==_0x1d7189[_0x40bdf9]['type']&&_0x5b1582--,_0x40bdf9++;if(0x0!=_0x5b1582){if(_0x1d7189[_0x435607]['isRemoved'])_0x1d7189[_0x435607]['isIncorrect']=!0x0;else{for(;_0x40bdf9!=_0x435607;)_0x1d7189[_0x40bdf9]['isRemoved']&&0x0!=_0x1d7189[_0x40bdf9]['distance']&&(_0x1d7189[_0x40bdf9]['isIncorrect']=!0x0,_0x370920['add'](_0x1d7189[_0x40bdf9]['pairId'])),_0x40bdf9--;}}}return _0x1d7189['filter'](_0x31ceb2=>!_0x31ceb2['isIncorrect']);}['_removeUnsupportedChanges'](_0x116db9){const _0x2c991e=this['editor']['model']['schema'];for(let _0xde8dd2=0x0;_0xde8dd2<_0x116db9['length'];_0xde8dd2++){if(!(_0x116db9[_0xde8dd2]['isAdded']||_0x116db9[_0xde8dd2]['isAddSuggestion']||_0x116db9[_0xde8dd2]['isRemoved']||_0x116db9[_0xde8dd2]['isRemoveSuggestion']))continue;if(0x0==_0x116db9[_0xde8dd2]['distance'])continue;const _0x3363a3=_0x116db9[_0xde8dd2]['item'];_0x2c991e['isBlock'](_0x3363a3)||_0x2c991e['isLimit'](_0x3363a3)||(_0x116db9[_0xde8dd2]['isAdded']&&delete _0x116db9[_0xde8dd2]['isAdded'],_0x116db9[_0xde8dd2]['isAddSuggestion']&&delete _0x116db9[_0xde8dd2]['isAddSuggestion'],_0x116db9[_0xde8dd2]['isRemoveSuggestion']&&delete _0x116db9[_0xde8dd2]['isRemoveSuggestion'],_0x116db9[_0xde8dd2]['isRemoved']&&(_0x116db9[_0xde8dd2]['isIncorrect']=!0x0));}return _0x116db9['filter'](_0x3755b6=>!_0x3755b6['isIncorrect']);}['_makeModelFromTape'](_0x20de54,_0xdd1fdd,_0x4b3c30){const _0xf8f2c4=new mt(),_0x527a55=[],_0x2274de=new Map(),_0x5df55a=this['editor']['model'],_0x3fe5b4=_0x5df55a['schema'],_0x2228bd=[_0xf8f2c4],_0x28c2e8={},_0x1644cc={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x56b84b=null;const _0x12d48d=[0x0];for(let _0x490905=0x0;_0x490905<_0x20de54['length'];_0x490905++)if('elementStart'===_0x20de54[_0x490905]['type']){_0x20de54[_0x490905]['previousPosition']=_0x5df55a['createPositionFromPath'](_0xf8f2c4,_0x12d48d);const _0x37474a=new ft(_0x20de54[_0x490905]['item']['name'],_0x20de54[_0x490905]['item']['getAttributes']());_0x2228bd[0x0]['_appendChild'](_0x37474a),_0x12d48d['push'](0x0),_0x2228bd['unshift'](_0x37474a),_0x20de54[_0x490905]['nextPosition']=_0x5df55a['createPositionFromPath'](_0xf8f2c4,_0x12d48d);}else'elementEnd'===_0x20de54[_0x490905]['type']?(_0x2228bd['shift'](),_0x20de54[_0x490905]['previousPosition']=_0x5df55a['createPositionFromPath'](_0xf8f2c4,_0x12d48d),_0x12d48d['pop'](),_0x12d48d[_0x12d48d['length']-0x1]++,_0x20de54[_0x490905]['nextPosition']=_0x5df55a['createPositionFromPath'](_0xf8f2c4,_0x12d48d)):(_0x20de54[_0x490905]['previousPosition']=_0x5df55a['createPositionFromPath'](_0xf8f2c4,_0x12d48d),_0x56b84b?_0x56b84b['_data']+=_0x20de54[_0x490905]['item']['data']:_0x56b84b=new wt(_0x20de54[_0x490905]['item']['data'],_0x20de54[_0x490905]['item']['getAttributes']()),_0x20de54[_0x490905+0x1]&&'text'===_0x20de54[_0x490905+0x1]['type']&&_0x24d9d3(_0x56b84b,_0x20de54[_0x490905+0x1]['item'])||(_0x2228bd[0x0]['_appendChild'](_0x56b84b),_0x56b84b=null),_0x12d48d[_0x12d48d['length']-0x1]+=_0x20de54[_0x490905]['item']['offsetSize'],_0x20de54[_0x490905]['nextPosition']=_0x5df55a['createPositionFromPath'](_0xf8f2c4,_0x12d48d));for(let _0x30357b=0x0;_0x30357b<_0x20de54['length'];_0x30357b++){const _0x4c6244=_0x20de54[_0x30357b]['previousPosition'],_0x36012e=_0x20de54[_0x30357b]['nextPosition'];for(const _0x1f9129 of _0x20de54[_0x30357b]['markersStart'])_0x2274de['set'](_0x1f9129,{'start':_0x4c6244,'end':null});_0x9b79f7('isRemoveSuggestion',_0x30357b,_0x4c6244,_0x36012e),_0x9b79f7('isAddSuggestion',_0x30357b,_0x4c6244,_0x36012e),_0x9b79f7('isRemoved',_0x30357b,_0x4c6244,_0x36012e),_0x9b79f7('isAdded',_0x30357b,_0x4c6244,_0x36012e);for(const _0x3afb75 of _0x20de54[_0x30357b]['markersEnd']){_0x2274de['get'](_0x3afb75)['end']=_0x36012e;}}for(const [_0x2bc25a,_0x1a232a]of _0x2274de){const _0x427408=this['editor']['model']['createRange'](_0x1a232a['start'],_0x1a232a['end']);_0xf8f2c4['markers']['set'](_0x2bc25a,_0x427408);}return _0x527a55['sort']((_0x4c0b21,_0x3d109c)=>{const _0x1400b2=_0xf8f2c4['markers']['get']('revision:'+_0x4c0b21['id']),_0x35b0ee=_0xf8f2c4['markers']['get']('revision:'+_0x3d109c['id']);return _0x1400b2['start']['isBefore'](_0x35b0ee['start'])?-0x1:_0x1400b2['start']['isAfter'](_0x35b0ee['start'])?0x1:_0x1400b2['end']['isBefore'](_0x35b0ee['end'])?-0x1:_0x1400b2['end']['isAfter'](_0x35b0ee['end'])?0x1:'add'===_0x4c0b21['type']?-0x1:0x1;}),{'root':_0xf8f2c4,'changes':_0x527a55};function _0x9b79f7(_0x24d600,_0x8b6552,_0x2b7329,_0xd73323){const _0x3348de=!!_0x20de54[_0x8b6552][_0x24d600],_0x839c07=_0x3348de?_0x20de54[_0x8b6552][_0x24d600]['userId']:null,_0x3392d4=_0x8b6552===_0x20de54['length']-0x1,_0x314a17=_0x1644cc[_0x24d600][0x0],_0xff87df=_0x3fe5b4['isObject'](_0x20de54[_0x8b6552]['item']);!_0x28c2e8[_0x24d600]&&_0x3348de?_0x28c2e8[_0x24d600]={'start':_0x2b7329,'tapeItem':_0x20de54[_0x8b6552],'userId':_0x839c07,'type':_0x24d600}:_0x28c2e8[_0x24d600]&&!_0x3348de?(_0x28c2e8[_0x24d600]['end']=_0x2b7329,_0x186382(_0x28c2e8[_0x24d600]),_0x28c2e8[_0x24d600]=null):_0x28c2e8[_0x24d600]&&_0x3348de&&_0x28c2e8[_0x24d600]['userId']!==_0x839c07&&(_0x28c2e8[_0x24d600]['end']=_0x2b7329,_0x314a17&&_0x314a17['userId']===_0x28c2e8[_0x24d600]['userId']||_0x186382(_0x28c2e8[_0x24d600]),_0x28c2e8[_0x24d600]={'start':_0x2b7329,'tapeItem':_0x20de54[_0x8b6552],'userId':_0x839c07,'type':_0x24d600}),_0x28c2e8[_0x24d600]&&_0xff87df&&('elementStart'!==_0x20de54[_0x8b6552]['type']||_0x314a17&&_0x314a17['userId']===_0x839c07||_0x1644cc[_0x24d600]['unshift']({'userId':_0x839c07,'object':_0x20de54[_0x8b6552]['item'],'change':_0x28c2e8[_0x24d600]}),'elementEnd'===_0x20de54[_0x8b6552]['type']&&_0x314a17&&_0x314a17['object']===_0x20de54[_0x8b6552]['item']&&(_0x1644cc[_0x24d600]['shift'](),_0x28c2e8[_0x24d600]=_0x314a17['change'])),_0x28c2e8[_0x24d600]&&_0x3392d4&&(_0x28c2e8[_0x24d600]['end']=_0xd73323,_0x186382(_0x28c2e8[_0x24d600]),_0x28c2e8[_0x24d600]=null);}function _0x186382({start:_0x4679c3,end:_0x16660e,tapeItem:_0xf3e08d,userId:_0x5ae5c5,type:_0x312246}){const _0x265186=_0xf3e08d['item'],_0x28f37c=_0x5df55a['schema']['isBlock'](_0x265186)&&!_0x5df55a['schema']['isLimit'](_0x265186),_0x4d64d9=_0x4679c3['nodeAfter']==_0x16660e['parent']&&_0x16660e['isAtStart'];if(_0x28f37c&&_0x4d64d9)return;const _0x4dd79d=_0x5df55a['createRange'](_0x4679c3,_0x16660e),_0x383c66=_0xdd1fdd['get'](_0x5ae5c5),_0x22e77f=new r({'author':_0x383c66,'type':'isAdded'==_0x312246||'isAddSuggestion'==_0x312246?'add':'remove','data':{'isSuggestion':'isAddSuggestion'==_0x312246||'isRemoveSuggestion'==_0x312246},'createdAt':new Date(),'rootName':_0x4b3c30});_0x527a55['push'](_0x22e77f),_0xf8f2c4['markers']['set']('revision:'+_0x22e77f['id'],_0x4dd79d);}function _0x24d9d3(_0x2561f2,_0x19d312){const _0x4e6e90=_0x2561f2['getAttributes'](),_0x591044=_0x19d312['getAttributes']();for(const _0x5db4f9 of _0x4e6e90){if(_0x5db4f9[0x1]!==_0x19d312['getAttribute'](_0x5db4f9[0x0]))return!0x1;_0x591044['next']();}return _0x591044['next']()['done'];}}['_setConversion'](){this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision','view':_0x458f10=>{const _0x270c6c=_0x458f10['markerName']['split'](':')[0x1],_0x712939=this['_getChangeFromId'](_0x270c6c);if(!_0x712939)return null;const _0x1d03d4='add'==_0x712939['type']?'insertion':'deletion',_0x86a9c5=['ck-suggestion-marker','ck-suggestion-marker-'+_0x1d03d4];return _0x712939['data']['isSuggestion']&&_0x86a9c5['push']('ck-suggestion-marker-'+_0x1d03d4+'-new'),this['activeChange']==_0x712939&&_0x86a9c5['push']('ck-suggestion-marker--active'),{'classes':_0x86a9c5,'attributes':{'data-change-id':_0x270c6c}};}}),this['editor']['conversion']['for']('upcast')['add'](_0x3929d8=>{_0x3929d8['on']('element:pre',(_0x1124fb,_0x539f6b,_0x5319e9)=>{const _0x564d3c=_0x539f6b['viewItem']['getChild'](0x0);if(!_0x564d3c||!_0x564d3c['is']('element','code'))return;if(!_0x5319e9['consumable']['consume'](_0x564d3c,{'attributes':['vid_start','vid_end']}))return;const _0x544bf6=_0x539f6b['modelRange']['start']['nodeAfter'];_0x5319e9['writer']['setAttribute']('vid_start',_0x564d3c['getAttribute']('vid_start'),_0x544bf6),_0x5319e9['writer']['setAttribute']('vid_end',_0x564d3c['getAttribute']('vid_end'),_0x544bf6);},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['add'](_0x54f363=>{_0x54f363['on']('element',(_0x4d65be,_0x111a87,_0x4e787d)=>{if(!_0x4e787d['consumable']['consume'](_0x111a87['viewItem'],{'attributes':['vid_start','vid_end']}))return;if(_0x111a87['modelRange']['isCollapsed'])return;const _0x3556a8=_0x111a87['modelRange']['start']['nodeAfter'];_0x3556a8['hasAttribute']('vid_start')||_0x3556a8['hasAttribute']('vid')||(_0x4e787d['writer']['setAttribute']('vid_start',_0x111a87['viewItem']['getAttribute']('vid_start'),_0x3556a8),_0x4e787d['writer']['setAttribute']('vid_end',_0x111a87['viewItem']['getAttribute']('vid_end'),_0x3556a8));},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['elementToAttribute']({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0x5670d2=>_0x5670d2['getAttribute']('vid')}}),this['editor']['model']['schema']['on']('checkAttribute',(_0x20f045,[,_0x476a3d])=>{['vid_start','vid_end','vid']['includes'](_0x476a3d)&&(_0x20f045['return']=!0x0,_0x20f045['stop']());},{'priority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x4b4694=>{_0x4b4694['on']('attribute:vid',(_0x66b836,_0x4aa299,_0x3a74fd)=>{if('\x20'!=_0x4aa299['item']['data']||_0x4aa299['item']['parent']['maxOffset']>0x1)return;if(!_0x3a74fd['consumable']['consume'](_0x4aa299['item'],_0x66b836['name']))return;const _0x499313=_0x3a74fd['writer'],_0x324b1d=_0x3a74fd['mapper']['toViewRange'](_0x4aa299['range']);_0x499313['wrap'](_0x324b1d,_0x499313['createAttributeElement']('span'));});}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',function(_0x21c3ef){const _0x4c9a63=_0x21c3ef['plugins']['get']('RevisionViewer');return(_0x3b0159,_0x37cb32,_0x57896d)=>{const _0x379ebf=_0x37cb32['markerName']['split'](':')[0x1],_0xe0cc4b=_0x4c9a63['_getChangeFromId'](_0x379ebf);if(!_0xe0cc4b)return null;const _0xb35ffd='add'==_0xe0cc4b['type']?'split':'merge';if(!_0x57896d['consumable']['test'](_0x37cb32['markerRange'],_0x3b0159['name']))return;const _0x2dd28d=_0x37cb32['markerRange']['getWalker'](),_0x417297=_0x37cb32['markerRange']['start'],_0x38880e=_0x21c3ef['model']['schema'];let _0x36ce0d=null,_0x8c2127=null,_0x2204b7=!0x1,_0x2b54f3=!0x1;for(const _0x549374 of _0x2dd28d){const _0x305352=_0x549374['item'];_0x2204b7=_0x2204b7||_0x38880e['isContent'](_0x305352);const _0x52f82c=_0x57896d['mapper']['toViewElement'](_0x305352);if(_0x52f82c&&_0x52f82c['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x549374['type']&&(_0x38880e['isBlock'](_0x305352)&&!_0x38880e['isLimit'](_0x305352)&&(_0x305352['nextSibling']||_0x417297['isAtEnd']?_0x36ce0d&&_0x36ce0d['parent']==_0x305352||(_0x36ce0d=_0x305352,_0x457fd6(_0x549374['previousPosition']),_0x2b54f3=!0x0):_0x8c2127=_0x8c2127||_0x549374['previousPosition']));}function _0x457fd6(_0x591e70){const _0x128139=_0x57896d['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0xb35ffd}),_0x407a9e=_0x57896d['mapper']['toViewPosition'](_0x591e70);_0xe0cc4b['data']['isSuggestion']&&_0x57896d['writer']['addClass']('ck-suggestion-marker-'+_0xb35ffd+'-new',_0x128139),_0x4c9a63['activeChange']==_0xe0cc4b&&_0x57896d['writer']['addClass']('ck-suggestion-marker--active',_0x128139),_0x57896d['writer']['insert'](_0x407a9e,_0x128139),_0x57896d['mapper']['bindElementToMarker'](_0x128139,_0x37cb32['markerName']);}_0x2204b7||_0x2b54f3||!_0x8c2127||_0x457fd6(_0x8c2127);};}(this['editor']),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision',(_0x2b6fa0,_0x38ca4b,_0x28ac7b)=>{const _0x2871a2=_0x28ac7b['mapper']['markerNameToElements'](_0x38ca4b['markerName']);if(_0x2871a2){for(const _0x5acd53 of _0x2871a2)(_0x5acd53['hasClass']('ck-suggestion-marker-split')||_0x5acd53['hasClass']('ck-suggestion-marker-merge'))&&(_0x28ac7b['mapper']['unbindElementFromMarkerName'](_0x5acd53,_0x38ca4b['markerName']),_0x28ac7b['writer']['remove'](_0x5acd53));}},{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',(_0x22e671,_0xb1014,_0x5ee820)=>{const _0x5963c3=_0xb1014['markerName']['split'](':')[0x1],_0x16fdf6=this['_getChangeFromId'](_0x5963c3);if(!_0x16fdf6)return null;const _0xd16b97='add'==_0x16fdf6['type']?'split':'merge';if(_0x5ee820['consumable']['test'](_0xb1014['markerRange'],_0x22e671['name']))for(const _0x3bf80d of _0xb1014['markerRange']['getItems']()){if(!_0x3bf80d['is']('element','softBreak'))continue;const _0x1a6bab=_0x5ee820['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0xd16b97}),_0x48315a=_0x5ee820['mapper']['toViewPosition'](this['editor']['model']['createPositionBefore'](_0x3bf80d));_0x16fdf6['data']['isSuggestion']&&_0x5ee820['writer']['addClass']('ck-suggestion-marker-'+_0xd16b97+'-new',_0x1a6bab),this['activeChange']==_0x16fdf6&&_0x5ee820['writer']['addClass']('ck-suggestion-marker--active',_0x1a6bab),_0x5ee820['writer']['insert'](_0x48315a,_0x1a6bab),_0x5ee820['mapper']['bindElementToMarker'](_0x1a6bab,_0xb1014['markerName']);}},{'priority':'high'}),this['editor']['model']['document']['on']('change',()=>{this['editor']['editing']['view']['change'](_0x112396=>{for(const _0x416f59 of this['editor']['model']['document']['getRootNames']()){const _0x455eb1=this['editor']['model']['document']['getRoot'](_0x416f59),_0xd8f6ae=this['editor']['editing']['view']['document']['getRoot'](_0x416f59);if(_0xd8f6ae){const _0x286c12=_0x455eb1['getAttribute']('revisionHistoryAttachChange');if(_0x112396['removeAttribute']('data-change-id',_0xd8f6ae),_0x112396['removeClass']('ck-revision-history-root-add',_0xd8f6ae),_0x112396['removeClass']('ck-revision-history-root-remove',_0xd8f6ae),_0x112396['removeClass']('ck-revision-history-root--active',_0xd8f6ae),_0x286c12){const _0x7dfb3b=this['_getChangeFromId'](_0x286c12);if(!_0x7dfb3b)return null;_0x112396['setAttribute']('data-change-id',_0x286c12,_0xd8f6ae),_0x112396['addClass']('ck-revision-history-root-'+_0x7dfb3b['type'],_0xd8f6ae),this['activeChange']==_0x7dfb3b&&_0x112396['addClass']('ck-revision-history-root--active',_0xd8f6ae);}}}});}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'comment','model':_0x2abe02=>'revision-comment:'+_0x2abe02,'converterPriority':'highest'}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion','model':_0x326df2=>'revision-suggestion:'+_0x326df2,'converterPriority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision-suggestion','view':_0x1b44fc=>({'name':'suggestion:'+_0x1b44fc,'group':'revision-suggestion'}),'converterPriority':'highest'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision-suggestion','view':_0x4221e6=>{const _0x1962ee=_0x4221e6['markerName']['split'](':')[0x1];return'insertion'!=_0x1962ee&&'deletion'!=_0x1962ee?null:{'classes':['ck-suggestion-preview-marker','ck-suggestion-preview-marker-'+_0x1962ee]};}}),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',(_0x29521c,_0x10177a,_0x296001)=>{const _0x1d88aa=_0x296001['mapper']['markerNameToElements'](_0x10177a['markerName']);if(_0x1d88aa){for(const _0x34751c of _0x1d88aa)_0x34751c['is']('uiElement')&&(_0x296001['mapper']['unbindElementFromMarkerName'](_0x34751c,_0x10177a['markerName']),_0x296001['writer']['remove'](_0x34751c));}},{'priority':'high'});}['_getChangeFromId'](_0x39bad3){return this['_changeIdToChange']['get'](_0x39bad3);}['_getViewForChange'](_0x599d03){return this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=new X(this['editor']['locale'],_0x599d03),this['_changeView'];}['_initInteractions'](){this['editor']['model']['document']['selection']['observeMarkers']('revision'),this['on']('change:activeView',(_0x22d3b0,_0x1dbd8c,_0x36d2c0,_0x5a4b76)=>{_0x5a4b76&&this['_balloon']['remove'](_0x5a4b76),_0x36d2c0&&(this['_balloon']['add']({'view':_0x36d2c0,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0x1e468f=this['editor']['editing'],_0x1774d7=this['_getChangeFromId'](_0x36d2c0['changeId']);let _0x5a3695;if(_0x1774d7['data']['isOnRoot']){const _0xb7691=_0x1e468f['view']['getDomRoot'](_0x1774d7['rootName']);_0x5a3695=Array['from'](_0xb7691['getClientRects']());}else{const _0x183c7a=this['editor']['model']['markers']['get']('revision:'+_0x36d2c0['changeId']);_0x5a3695=Array['from'](_0x1e468f['mapper']['markerNameToElements'](_0x183c7a['name']))['map'](_0x570e56=>_0x1e468f['view']['domConverter']['mapViewToDom'](_0x570e56))['map'](_0x2797bb=>Array['from'](_0x2797bb['getClientRects']()))['flat']();}if(!this['_activeViewTarget'])return _0x5a3695[0x0];return _0x5a3695['find'](_0x4ef422=>_0x4ef422['top']-0x3<=this['_activeViewTarget']['y']&&_0x4ef422['bottom']+0x3>=this['_activeViewTarget']['y']&&_0x4ef422['left']-0x3<=this['_activeViewTarget']['x']&&_0x4ef422['right']+0x3>=this['_activeViewTarget']['x'])||_0x5a3695[0x0];}}}),this['_balloon']['showStack']('revisionHistoryLabel'));}),this['on']('change:activeChange',(_0x46cd4d,_0x1d8c3a,_0x314845,_0x3f30ba)=>{this['activeView']=_0x314845?this['_getViewForChange'](_0x314845):null,this['editor']['model']['change'](()=>{const _0x349bfe=this['editor']['editing'];_0x3f30ba&&(_0x3f30ba['data']['isOnRoot']?_0x349bfe['view']['change'](_0x31555a=>{_0x31555a['removeClass']('ck-revision-history-root--active',_0x349bfe['view']['document']['getRoot'](_0x3f30ba['rootName']));}):_0x349bfe['reconvertMarker']('revision:'+_0x3f30ba['id'])),_0x314845&&(_0x314845['data']['isOnRoot']?_0x349bfe['view']['change'](_0x458b36=>{_0x458b36['addClass']('ck-revision-history-root--active',_0x349bfe['view']['document']['getRoot'](_0x314845['rootName']));}):_0x349bfe['reconvertMarker']('revision:'+_0x314845['id']));});}),this['listenTo'](this['editor']['editing']['view']['document'],'mouseover',(_0x1bbdd7,_0x115d44)=>{if(this['activeChange'])return;const _0x482491=this['_findChangeIdFromDomTarget'](_0x115d44['target']),_0x6cc75a=this['_changeIdToChange']['get'](_0x482491);_0x6cc75a?(this['_activeViewTarget']={'x':_0x115d44['domEvent']['x'],'y':_0x115d44['domEvent']['y']},this['activeView']=this['_getViewForChange'](_0x6cc75a)):(this['_activeViewTarget']=null,this['activeView']=null);}),this['listenTo'](this['editor']['editing']['view']['document'],'mousedown',(_0x30d0a9,_0x364e80)=>{const _0x34bba4=this['_findChangeIdFromDomTarget'](_0x364e80['target']),_0x15b75d=this['_changeIdToChange']['get'](_0x34bba4);_0x15b75d?(this['_activeViewTarget']={'x':_0x364e80['domEvent']['x'],'y':_0x364e80['domEvent']['y']},_0x15b75d===this['activeChange']?this['_balloon']['updatePosition']():this['activeChange']=_0x15b75d):(this['_activeViewTarget']=null,this['activeChange']=null);});}['_findChangeIdFromDomTarget'](_0x3ec9ce){do{const _0x55763e=_0x3ec9ce['getAttribute']('data-change-id');if(_0x55763e)return _0x55763e;_0x3ec9ce=_0x3ec9ce['parent'];}while(_0x3ec9ce);return null;}['_cleanMarkers'](){this['editor']['model']['change'](_0x35a5e2=>{for(const _0x4c8afd of this['editor']['model']['markers'])_0x35a5e2['removeMarker'](_0x4c8afd);});}}function Z(_0x4d3c85,_0x24c5b0){return(_0x4114e9,_0x3c03e0,_0x457f3e)=>{if(!_0x457f3e['consumable']['test'](_0x3c03e0['markerRange'],_0x4114e9['name']))return;const _0x411768=_0x3c03e0['markerRange']['getWalker'](),_0x34baa3=_0x3c03e0['markerRange']['start'],_0x3a4897=_0x4d3c85['model']['schema'];let _0x94ee47=null,_0x153e48=null,_0x2e6a14=!0x1,_0x202264=!0x1;for(const _0x272fa3 of _0x411768){const _0x47e7ca=_0x272fa3['item'];_0x2e6a14=_0x2e6a14||_0x3a4897['isContent'](_0x47e7ca);const _0x1e7366=_0x457f3e['mapper']['toViewElement'](_0x47e7ca);if(_0x1e7366&&_0x1e7366['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x272fa3['type']&&(_0x3a4897['isBlock'](_0x47e7ca)&&!_0x3a4897['isLimit'](_0x47e7ca)&&(_0x47e7ca['nextSibling']||_0x34baa3['isAtEnd']?_0x94ee47&&_0x94ee47['parent']==_0x47e7ca||(_0x94ee47=_0x47e7ca,_0x51b467(_0x272fa3['previousPosition']),_0x202264=!0x0):_0x153e48=_0x153e48||_0x272fa3['previousPosition']));}function _0x51b467(_0xfd9007){const _0x26a5ad=_0x457f3e['mapper']['toViewPosition'](_0xfd9007),_0x267ddd=_0x457f3e['writer']['createUIElement']('span',{'class':'ck-suggestion-preview-marker-'+_0x24c5b0});_0x457f3e['writer']['insert'](_0x26a5ad,_0x267ddd),_0x457f3e['mapper']['bindElementToMarker'](_0x267ddd,_0x3c03e0['markerName']);}_0x2e6a14||_0x202264||!_0x153e48||_0x51b467(_0x153e48);};}class _t extends _0x107804{constructor(_0x384920){super(_0x384920);const _0x50bdd0=_0x384920['plugins']['get'](d);this['affectsData']=!0x1,this['listenTo'](_0x50bdd0,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x50bdd0,'change:isEnabled',()=>this['refresh']());}['execute'](){const _0x2d3e02=this['editor'],_0x4066bd=_0x2d3e02['plugins']['get'](d),_0x40354e=_0x4066bd['isReady']?_0x4066bd['diff']['newRevisionId']:null;_0x2d3e02['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x40354e);}['refresh'](){const {isReady:_0x2bee67,isEnabled:_0x46df5e,repository:_0x2d2204,diff:_0x112a0c}=this['editor']['plugins']['get'](d),_0x1bbd85=_0x112a0c&&_0x2d2204['getLaterVisibleRevision'](_0x112a0c['newRevisionId']);this['isEnabled']=_0x2bee67&&_0x46df5e&&Boolean(_0x1bbd85);}}class yt extends _0x107804{['_step'];constructor(_0x25b111,{direction:_0x5e27e}){super(_0x25b111);const _0x3e1ea7=_0x25b111['plugins']['get'](d);this['affectsData']=!0x1,this['_step']='forward'===_0x5e27e?0x1:-0x1,this['listenTo'](_0x3e1ea7,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x3e1ea7,'change:isEnabled',()=>this['refresh']()),this['listenTo'](_0x3e1ea7,'change:activeChange',()=>this['refresh']());}['execute'](){const _0x4b3676=this['editor'],_0x52554c=_0x4b3676['plugins']['get'](d),{isNavigationMode:_0x2c47cc,currentChangeNumber:_0x2b5f4e}=_0x52554c;let _0xb2b68d;if(_0x52554c['activeChange']=_0x2c47cc?_0x52554c['diff']['changes']['get'](_0x2b5f4e+this['_step']):_0x52554c['diff']['changes']['first'],_0x52554c['activeChange']['data']['isOnRoot'])_0xb2b68d=_0x4b3676['editing']['view']['getDomRoot'](_0x52554c['activeChange']['rootName']);else{const _0x17c1e4=_0x4b3676['model']['markers']['get']('revision:'+_0x52554c['activeChange']['id']);_0xb2b68d=_0x3629d1(_0x4b3676['editing'],_0x17c1e4);}_0x21b983({'target':_0xb2b68d,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0x1187d4,currentChangeNumber:_0x4114f1,numberOfChanges:_0x4ad550,isReady:_0x1a6ea5,isEnabled:_0x4364cf}=this['editor']['plugins']['get'](d);this['isEnabled']=!!(_0x4364cf&&_0x1a6ea5&&_0x4ad550)&&(!_0x1187d4||(0x1===this['_step']?_0x4114f1<_0x4ad550-0x1:_0x4114f1>0x0));}}class di extends _0x4bf032{constructor(_0x1245cc){super(_0x1245cc);const _0xbea05e=this['bindTemplate'],_0x53dc0e=new _0x46e8ac(_0x1245cc),_0x3e0324=new _0x46e8ac(_0x1245cc);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',(_0x4188f0,_0x3cf944)=>_0x4188f0&&_0x3cf944>0x0),this['bind']('_statusText')['to'](this,'isReady',this,'currentChangeNumber',this,'numberOfChanges',this,'isNavigationMode',(_0x594deb,_0x7a818a,_0x78d2c8,_0x455173)=>{if(!_0x594deb)return m(_0x1245cc,'Loading...');if(!_0x78d2c8)return m(_0x1245cc,'No\x20changes');const _0x596ab0=m(_0x1245cc,'NUMBER_OF_CHANGES',_0x78d2c8);return _0x455173?m(_0x1245cc,'X_OF_Y_CHANGES',[_0x7a818a+0x1,_0x78d2c8]):_0x596ab0;}),_0x53dc0e['set']({'label':m(_0x1245cc,'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'}),_0x3e0324['set']({'label':m(_0x1245cc,'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'}),_0x53dc0e['bind']('isEnabled')['to'](this,'isBackwardNavigationEnabled'),_0x3e0324['bind']('isEnabled')['to'](this,'isForwardNavigationEnabled'),_0x53dc0e['on']('execute',()=>this['fire']('execute','backward')),_0x3e0324['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',_0xbea05e['if']('_isStatusLabelVisible','ck-hidden',_0xf649b9=>!_0xf649b9)]},'children':[{'text':_0xbea05e['to']('isNavigationMode',_0x1847d0=>_0x1847d0?m(_0x1245cc,'EDIT_X_OF_Y_REVISIONS')+':\x20':m(_0x1245cc,'Total')+':\x20')}]},{'text':_0xbea05e['to']('_statusText')}]},new _0x7224df(),{'tag':'div','attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0x53dc0e,_0x3e0324]}]});}}const ce='ck-editor__editable__loading-overlay';class ae extends _0x4fdbea{static get['pluginName'](){return'RevisionViewerLoadingOverlay';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['show'](){const _0x1cb7c2=this['editor']['editing']['view'];_0x1cb7c2['change'](_0xffadd3=>{for(const _0x38c899 of _0x1cb7c2['document']['roots'])_0xffadd3['addClass'](ce,_0x38c899);});}['hide'](){const _0x170bfc=this['editor']['editing']['view'];_0x170bfc['change'](_0x2b256c=>{for(const _0x2d263c of _0x170bfc['document']['roots'])_0x2b256c['removeClass'](ce,_0x2d263c);});}}class g extends _0x4fdbea{static get['pluginName'](){return'RevisionViewerUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[d,ae];}['init'](){const _0x2d8a8b=this['editor'],_0x27a19d=_0x2d8a8b['plugins']['get'](d),_0x23d016=_0x2d8a8b['plugins']['get'](ae);_0x2d8a8b['ui']['componentFactory']['add']('exitToEditing',_0x4ef5b4=>{const _0x54d5d2=new _0x46e8ac(_0x4ef5b4);return _0x54d5d2['set']({'label':m(_0x4ef5b4,'Back\x20to\x20editing'),'icon':_0x3d2fb2['undo'],'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this['listenTo'](_0x54d5d2,'execute',()=>{_0x2d8a8b['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}),_0x54d5d2;}),_0x2d8a8b['ui']['componentFactory']['add']('restoreRevision',_0x2bed22=>{const _0x26d663=new _0x46e8ac(_0x2bed22);return _0x26d663['set']({'label':m(_0x2bed22,'Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0x26d663['bind']('isEnabled')['to'](_0x2d8a8b['commands']['get']('restoreRevision')),this['listenTo'](_0x26d663,'execute',()=>_0x2d8a8b['execute']('restoreRevision')),_0x26d663;}),_0x2d8a8b['ui']['componentFactory']['add']('changesNavigation',_0x4cc260=>{const _0x4e8ef1=new di(_0x4cc260),_0x90caa5=_0x2d8a8b['commands']['get']('showPreviousChange'),_0x1888a0=_0x2d8a8b['commands']['get']('showNextChange');return _0x4e8ef1['bind']('isBackwardNavigationEnabled')['to'](_0x90caa5,'isEnabled'),_0x4e8ef1['bind']('isForwardNavigationEnabled')['to'](_0x1888a0,'isEnabled'),_0x4e8ef1['bind']('isReady','currentChangeNumber','numberOfChanges','isNavigationMode')['to'](_0x27a19d),this['listenTo'](_0x4e8ef1,'execute',(_0x10be06,_0x4e3a37)=>{_0x2d8a8b['execute']('forward'===_0x4e3a37?'showNextChange':'showPreviousChange');}),_0x4e8ef1;}),_0x23d016['show'](),_0x27a19d['on']('change:isReady',(_0x53e5ae,_0x5de6f4,_0x17e7d3)=>{_0x17e7d3?_0x23d016['hide']():_0x23d016['show']();});}}class pt extends nt{['_resizeObserver']=null;constructor(_0x25885f,_0x33e1ab){super(_0x25885f,_0x33e1ab);const _0x177dad=this['bindTemplate'];this['set']({'label':m(_0x25885f,'Revision\x20name'),'_tooltipString':''}),this['fieldView']['placeholder']=m(_0x25885f,'Enter\x20the\x20revision\x20name'),this['extendTemplate']({'tag':'span','attributes':{'class':['ck-revision-history-sidebar__revision-name'],'data-cke-tooltip-text':_0x177dad['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 _0x59805f=this['fieldView']['element'];this['_tooltipString']=_0x59805f['scrollWidth']>_0x59805f['clientWidth']&&_0x59805f['value']||'';}}class ti extends _0x4bf032{constructor(_0x23079f,_0x3976ce,_0x5ee9fc){super(_0x23079f);const _0x34d1f9=new _0x3b95e7();_0x34d1f9['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 _0x1c9349=['ck','ck-revision-history-sidebar__revision-author'];_0x5ee9fc&&_0x1c9349['push']('ck-revision-history-sidebar__revision-author_creator');const _0x14d983=[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':m(_0x23079f,_0x5ee9fc?'Revision\x20creator':'Revision\x20author')},'children':[_0x34d1f9,_0x3976ce['name']]}];this['setTemplate']({'tag':'li','attributes':{'class':_0x1c9349},'children':_0x14d983});}}function ni(_0x2ef6ea,_0x38af46){const _0x304b82=_0x2ef6ea['bindTemplate'],_0x37bf33=_0x2ef6ea['locale'],_0x58e3f0=_0x37364d(_0x37bf33);_0x58e3f0['panelPosition']='sw';const _0x5f17e3=function(_0x5d44be,_0x4765eb){const _0x46b959=function(_0x32a1ad,_0x5e5a38){const _0x36511a=_0x32a1ad['locale'],_0x58b2d2={'Compare\x20against\x20selected':m(_0x36511a,'Compare\x20against\x20selected'),'Name\x20this\x20revision':m(_0x36511a,'Name\x20this\x20revision'),'Restore\x20this\x20revision':m(_0x36511a,'Restore\x20this\x20revision')};return _0x5e5a38['map'](_0x1f4428=>{const _0x37fe75=_0x58b2d2[_0x1f4428['name']];return _0x37fe75&&_0x37fe75!==_0x1f4428['name']&&(_0x1f4428['name']=_0x37fe75),_0x1f4428;});}(_0x5d44be,_0x4765eb),_0x42b3a6=new _0x15164d();for(const _0x18da52 of _0x46b959){const _0x222ac9={'type':'button','model':new to({'label':_0x18da52['name'],'class':_0x18da52['class'],'withText':!0x0,'role':'menuitem','_action':_0x18da52['action']})};_0x222ac9['model']['bind']('isEnabled')['to'](_0x5d44be,'isActionsDropdownOpen',_0x1c1b56=>'function'!=typeof _0x18da52['isEnabled']||(!_0x1c1b56||_0x18da52['isEnabled'](_0x5d44be))),_0x42b3a6['add'](_0x222ac9);}return _0x42b3a6;}(_0x2ef6ea,_0x38af46);return _0x2ef6ea['bind']('isActionsDropdownOpen')['to'](_0x58e3f0,'isOpen'),_0x58e3f0['buttonView']['set']({'label':m(_0x37bf33,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x3d2fb2['threeVerticalDots']}),_0x58e3f0['extendTemplate']({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0x304b82['if']('isActionsDropdownOpen','ck-on')]},'on':{'click':_0x304b82['to'](_0x2c5ab6=>_0x2c5ab6['stopPropagation']())}}),_0x58e3f0['on']('execute',_0x450234=>{_0x2ef6ea['isReady']&&'function'==typeof _0x450234['source']['_action']&&_0x450234['source']['_action'](_0x2ef6ea);}),_0x489c03(_0x58e3f0,_0x5f17e3,{'role':'menu'}),_0x58e3f0['listenTo'](_0x2ef6ea,'change:isActionsDropdownOpen',(_0x420643,_0x4d96c9,_0x49815)=>{if(_0x49815)for(const _0x4dc69a of _0x58e3f0['listView']['items']){const _0x1daea1=_0x4dc69a['children']['first'],_0x455239=_0x38af46['find'](_0x5af9da=>_0x5af9da['action']===_0x1daea1['_action'])['isVisible'];_0x4dc69a['isVisible']=void 0x0===_0x455239||_0x455239(_0x2ef6ea);}}),_0x58e3f0;}class ai extends/* #__PURE__ -- @preserve */
|
|
26
|
-
|
|
23
|
+
import{ObservableMixin as _0x11050d,uid as _0x2afce3,Collection as _0x4043e7,logWarning as _0x427f80,FocusTracker as _0x32c628,KeystrokeHandler as _0x29befb,scrollViewportToShowTarget as _0x2b0941,ResizeObserver as at,ElementReplacer as ht,CKEditorError as _0x3a4067}from'@ckeditor/ckeditor5-utils/dist/index.js';import{cloneDeep as _0xf117d4,set as _0x2b284e,unset as _0xd56d5a,isEqual as _0x442ae4}from'lodash-es';import{Plugin as _0x21f9a0,PendingActions as _0x44da30,icons as _0x7e0d0d,Command as _0x24f189,ElementApiMixin as it,Editor as tt}from'@ckeditor/ckeditor5-core/dist/index.js';import{Users as _0x36bdfa,getMarkerDomElement as _0x93a8c4,ConfirmMixin as _0x27f092,sanitizeEditorConfig as _0x31b91b}from'ckeditor5-collaboration/dist/index.js';import{ViewDocumentFragment as _0x35a7c1,Element as ft,Range as vt,ViewUIElement as _0x3c991b,ViewRawElement as _0x4126a5,ViewEmptyElement as _0x2e2901,ViewAttributeElement as _0x2d478c,ViewContainerElement as _0x40e8e0,Position as gt,ViewText as _0xd0ebb3,ViewElement as _0x1fc26e,DocumentFragment as mt,Text as wt}from'@ckeditor/ckeditor5-engine/dist/index.js';import{View as _0x16162e,injectCssTransitionDisabler as ts,submitHandler as _0x4f1d3f,LabeledFieldView as nt,createLabeledInputText as _0x194c4c,createDropdown as _0x18051a,ListView as te,ListItemView as _0x3cf401,ButtonView as _0x280a4e,MenuBarMenuView as _0x1ae8fc,MenuBarMenuListView as _0x1e1704,MenuBarMenuListItemView as _0xe81ca7,MenuBarMenuListItemButtonView as _0x3601a1,ContextualBalloon as _0x24fa0b,ToolbarSeparatorView as _0x5d7297,IconView as _0x191733,addListToDropdown as _0x2f39dd,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 _0x313a70}from'luxon';class a extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x11050d(){['id'];['creator'];['authors'];['diffData'];['toVersion'];['fromVersion'];['model'];constructor(_0x5acba8){super(),this['id']=_0x5acba8['id']||_0x2afce3(),this['creator']=_0x5acba8['creator']||null,this['authors']=_0x5acba8['authors']||[],this['diffData']=_0x5acba8['diffData']||null,this['toVersion']=_0x5acba8['toVersion']||0x0,this['fromVersion']=_0x5acba8['fromVersion']||0x0,this['set']('name',_0x5acba8['name']||''),this['set']('createdAt',_0x5acba8['createdAt']||new Date()),this['set']('attributes',_0x5acba8['attributes']||{});}['setName'](_0x34b3bf){this['_update']({'name':_0x34b3bf});}['setAttribute'](_0x357e23,_0x346792){const _0x3f4320=_0xf117d4(this['attributes']);_0x2b284e(_0x3f4320,_0x357e23,_0x346792),this['_update']({'attributes':_0x3f4320});}['removeAttribute'](_0x298a44){const _0x4eab7f=_0xf117d4(this['attributes']);_0xd56d5a(_0x4eab7f,_0x298a44),this['_update']({'attributes':_0x4eab7f});}['_update'](_0x575870,_0x34f41e=!0x1){let _0x18accb=!0x1;const _0x9f9a={'id':this['id']},_0x1c68a7=['name','createdAt','diffData','authors','attributes','toVersion','fromVersion','creatorId'];for(const _0x36a000 of _0x1c68a7){const _0x4cd782=_0x575870[_0x36a000];void 0x0!==_0x4cd782&&_0x4cd782!==this[_0x36a000]&&(this[_0x36a000]=_0x4cd782,_0x9f9a[_0x36a000]=_0x4cd782,_0x18accb=!0x0);}_0x18accb&&(_0x9f9a['authors']&&(_0x9f9a['authorsIds']=_0x9f9a['authors']['map'](_0x1e0fef=>_0x1e0fef['id']),delete _0x9f9a['authors']),this['fire']('_update',_0x9f9a,_0x34f41e));}['toJSON'](){return{'id':this['id'],'name':this['name'],'creatorId':this['creator']?this['creator']['id']:null,'authorsIds':this['authors']['map'](_0x3933ef=>_0x3933ef['id']),'diffData':this['diffData'],'createdAt':this['createdAt'],'attributes':this['attributes'],'fromVersion':this['fromVersion'],'toVersion':this['toVersion']};}}class j extends _0x21f9a0{['_revisions'];static get['requires'](){return[_0x36bdfa];}static get['pluginName'](){return'RevisionsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['length'](){return this['_revisions']['length'];}constructor(_0x7d2863){super(_0x7d2863),this['_revisions']=new _0x4043e7();}['afterInit'](){!async function(_0x1a7981){const _0x42ff66=_0x5f8285([0x52,0x6a,0x47,0x48,0x4b,0x39,0x46,0x4d,0x4c,0x45,0x59,0x49,0x75,0x56,0x76,0x31,0x68,0x6e,0x6c,0x77,0x51,0x33,0x78,0x73,0x41,0x6b,0x55,0x50,0x38,0x6f,0x79,0x6d,0x67,0x37,0x63,0x62,0x4e,0x71,0x44,0x58,0x64,0x72,0x54,0x69,0x61,0x43,0x65,0x57,0x74,0x30,0x32,0x70,0x4a,0x4f,0x66,0x34,0x36,0x5a,0x53,0x35,0x7a,0x42]),_0x2bc433=0xeb829,_0xbfa087=0x207f3ad7,_0x5de85b=0x207865cf^_0xbfa087,_0x27fcbf=window[_0x5f8285([0x44,0x61,0x74,0x65])][_0x5f8285([0x6e,0x6f,0x77])](),_0x2a6b37=_0x1a7981[_0x5f8285([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x5bc7f9=new window[(_0x5f8285([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x58a3ed=>{_0x2a6b37[_0x5f8285([0x6f,0x6e,0x63,0x65])](_0x5f8285([0x72,0x65,0x61,0x64,0x79]),_0x58a3ed);}),_0x21fbff={[_0x5f8285([0x6b,0x74,0x79])]:_0x5f8285([0x45,0x43]),[_0x5f8285([0x75,0x73,0x65])]:_0x5f8285([0x73,0x69,0x67]),[_0x5f8285([0x63,0x72,0x76])]:_0x5f8285([0x50,0x2d,0x32,0x35,0x36]),[_0x5f8285([0x78])]:_0x5f8285([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]),[_0x5f8285([0x79])]:_0x5f8285([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]),[_0x5f8285([0x61,0x6c,0x67])]:_0x5f8285([0x45,0x53,0x32,0x35,0x36])},_0x39fab8=_0x2a6b37[_0x5f8285([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x5f8285([0x67,0x65,0x74])](_0x5f8285([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x3fb5ff(){let _0x114742,_0x3eef79=null,_0x1731c7=null;try{if(_0x39fab8==_0x5f8285([0x47,0x50,0x4c]))return _0x5f8285([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x114742=_0x5498bb(),!_0x114742)return _0x5f8285([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x114742[_0x5f8285([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x1731c7=_0x777b4(_0x114742[_0x5f8285([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x114742[_0x5f8285([0x6a,0x74,0x69])])),await _0xfb13f3()?_0x3f1c17()?_0x4e5dfd()?_0x5f8285([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x3c7985()?(_0x114742[_0x5f8285([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x5f8285([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x3eef79=_0x4db6a5(_0x5f8285([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x114742[_0x5f8285([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x5f8285([0x74,0x72,0x69,0x61,0x6c])&&(_0x3eef79=_0x4db6a5(_0x5f8285([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x40b424()):_0x5f8285([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x5f8285([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x5f8285([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x4db6f9){return _0x5f8285([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x4e5dfd(){const _0x4cb7ad=[_0x5f8285([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x5f8285([0x74,0x72,0x69,0x61,0x6c])][_0x5f8285([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x114742[_0x5f8285([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x27fcbf/0x3e8:0xe10*_0x5de85b;return _0x114742[_0x5f8285([0x65,0x78,0x70])]<_0x4cb7ad;}function _0x3f1c17(){const _0x29c4d0=_0x114742[_0x5f8285([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x29c4d0)return!0x1;if(_0x29c4d0[_0x5f8285([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5f8285([0x2a])))return!0x0;if(_0x29c4d0[_0x5f8285([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5f8285([0x52,0x48])))return!0x0;if(_0x29c4d0[_0x5f8285([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5f8285([0x52,0x52,0x48]))){if(_0x572395())return!0x0;if(_0x3ab80e()||_0x1b4eef())return!0x0;}return!0x1;}function _0x3c7985(){const _0x10b519=_0x114742[_0x5f8285([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x10b519||0x0==_0x10b519[_0x5f8285([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x2aa469}=new URL(window[_0x5f8285([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x10b519[_0x5f8285([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2aa469))return!0x0;const _0x333b3a=_0x2aa469[_0x5f8285([0x73,0x70,0x6c,0x69,0x74])](_0x5f8285([0x2e]));return _0x10b519[_0x5f8285([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x5f4651=>_0x5f4651[_0x5f8285([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5f8285([0x2a])))[_0x5f8285([0x6d,0x61,0x70])](_0x36c58c=>_0x36c58c[_0x5f8285([0x73,0x70,0x6c,0x69,0x74])](_0x5f8285([0x2e])))[_0x5f8285([0x73,0x6f,0x6d,0x65])](_0x1f9075=>_0x333b3a[_0x5f8285([0x65,0x76,0x65,0x72,0x79])]((_0x264bc0,_0x82d40c)=>_0x1f9075[_0x82d40c]===_0x264bc0||_0x1f9075[_0x82d40c]===_0x5f8285([0x2a])));}function _0x40b424(){return _0x3eef79&&_0x1731c7?new window[(_0x5f8285([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x22b7de,_0x3b41ed)=>{_0x3eef79[_0x5f8285([0x74,0x68,0x65,0x6e])](_0x22b7de,_0x3b41ed),_0x1731c7[_0x5f8285([0x74,0x68,0x65,0x6e])](_0x33ebcd=>{_0x33ebcd!=_0x5f8285([0x56,0x61,0x6c,0x69,0x64])&&_0x22b7de(_0x33ebcd);},_0x3b41ed);}):_0x3eef79||_0x1731c7||_0x5f8285([0x56,0x61,0x6c,0x69,0x64]);}}function _0x777b4(_0x582906,_0x145509){return new window[(_0x5f8285([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1e31ff=>{if(_0x2472ed())return _0x1e31ff(_0x5f8285([0x56,0x61,0x6c,0x69,0x64]));_0x200e95(),_0x2a6b37[_0x5f8285([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x5f8285([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x40fa96=!0x1;const _0x25dd4e=_0x2afce3();function _0x302151(_0x8f54b6){return!!_0x8f54b6&&(typeof _0x8f54b6===_0x5f8285([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x8f54b6===_0x5f8285([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x8f54b6[_0x5f8285([0x74,0x68,0x65,0x6e])]===_0x5f8285([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x8f54b6[_0x5f8285([0x63,0x61,0x74,0x63,0x68])]===_0x5f8285([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0xdc749(_0xd85fb1){_0xd8beda(_0xd85fb1)[_0x5f8285([0x74,0x68,0x65,0x6e])](_0x5dcd01=>{if(!_0x5dcd01||_0x5dcd01[_0x5f8285([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x5f8285([0x6f,0x6b]))return _0x5f8285([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x4a578a(_0x28ea82(_0x25dd4e+_0x145509))!=_0x5dcd01[_0x5f8285([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x5f8285([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x5f8285([0x56,0x61,0x6c,0x69,0x64]);})[_0x5f8285([0x74,0x68,0x65,0x6e])](_0x57417d=>(_0x4e12d8(),_0x57417d),()=>{const _0xce7aeb=_0x2ce165();return null==_0xce7aeb?(_0x4e12d8(),_0x5f8285([0x56,0x61,0x6c,0x69,0x64])):_0x5f8285(_0x27fcbf-_0xce7aeb>(0x473bed7^_0xbfa087)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x5f8285([0x74,0x68,0x65,0x6e])](_0x1e31ff)[_0x5f8285([0x63,0x61,0x74,0x63,0x68])](()=>{_0x1e31ff(_0x5f8285([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x200f1f=0x2049d457^_0xbfa087;function _0x4e12d8(){const _0x22cd92=_0x5f8285([0x6c,0x6c,0x63,0x74,0x2d])+_0x4a578a(_0x28ea82(_0x582906)),_0x21615f=_0x4a80e2(_0x4a578a(window[_0x5f8285([0x4d,0x61,0x74,0x68])][_0x5f8285([0x63,0x65,0x69,0x6c])](_0x27fcbf/_0x200f1f)));window[_0x5f8285([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x5f8285([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x22cd92,_0x21615f);}function _0x2ce165(){const _0x2f1f96=_0x5f8285([0x6c,0x6c,0x63,0x74,0x2d])+_0x4a578a(_0x28ea82(_0x582906)),_0x4549f9=window[_0x5f8285([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x5f8285([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2f1f96);return _0x4549f9?window[_0x5f8285([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4a80e2(_0x4549f9),0x10)*_0x200f1f:null;}function _0xd8beda(_0x41c7d4){return new window[(_0x5f8285([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x43dccd,_0x26b417)=>{_0x41c7d4[_0x5f8285([0x74,0x68,0x65,0x6e])](_0x43dccd,_0x26b417),window[_0x5f8285([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x26b417,0x207eee17^_0xbfa087);});}}_0x2a6b37[_0x5f8285([0x6f,0x6e])](_0x5f8285([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x11fb2c,_0x44c66f)=>{if(_0x44c66f[0x0]!=_0x582906)return _0x1e31ff(_0x5f8285([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x44c66f[0x1]={..._0x44c66f[0x1],[_0x5f8285([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x25dd4e};},{[_0x5f8285([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x5f8285([0x68,0x69,0x67,0x68])}),_0x2a6b37[_0x5f8285([0x6f,0x6e])](_0x5f8285([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x2059f5=>{_0x302151(_0x2059f5[_0x5f8285([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x40fa96=!0x0,_0xdc749(_0x2059f5[_0x5f8285([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x5f8285([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x5f8285([0x6c,0x6f,0x77])}),_0x5bc7f9[_0x5f8285([0x74,0x68,0x65,0x6e])](()=>{_0x40fa96||_0x1e31ff(_0x5f8285([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x2472ed(){return _0x2a6b37[_0x5f8285([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5f8285([0x76,0x69,0x65,0x77])][_0x5f8285([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x5f8285([0x61,0x75,0x74,0x6f]);}function _0x200e95(){_0x2a6b37[_0x5f8285([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5f8285([0x76,0x69,0x65,0x77])][_0x5f8285([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x5f8285([0x61,0x75,0x74,0x6f]);}}function _0x4db6a5(_0x4e9c53){const _0x1d9c4f=[new window[(_0x5f8285([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3ba2e3=>setTimeout(_0x3ba2e3,0x2076041b^_0xbfa087)),_0x5bc7f9[_0x5f8285([0x74,0x68,0x65,0x6e])](()=>new window[(_0x5f8285([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x568280=>{const _0x21d653=0x207f3ad0^_0xbfa087,_0x692b05=_0x1a7981[_0x5f8285([0x5f,0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x73])];function _0x27f2c9(){_0x692b05[_0x5f8285([0x6c,0x65,0x6e,0x67,0x74,0x68])]>=_0x21d653&&_0x568280();}_0x27f2c9(),_0x692b05[_0x5f8285([0x6f,0x6e])](_0x5f8285([0x61,0x64,0x64]),_0x27f2c9);})),new window[(_0x5f8285([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x347931=>{function _0x443518(){for(const _0x576c12 in window)if(window[_0x5f8285([0x4e,0x75,0x6d,0x62,0x65,0x72])]['isNaN'](window[_0x5f8285([0x4e,0x75,0x6d,0x62,0x65,0x72])](_0x576c12))&&window[_0x576c12]==_0x2bc433)return _0x347931();_0x2a6b37[_0x5f8285([0x73,0x74,0x61,0x74,0x65])]!=_0x5f8285([0x64,0x65,0x73,0x74,0x72,0x6f,0x79,0x65,0x64])&&window[_0x5f8285([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x443518,0x207f295f^_0xbfa087);}_0x5b68df(_0x5f8285([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))&&_0x443518();})];return window[_0x5f8285([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x5f8285([0x72,0x61,0x63,0x65])](_0x1d9c4f)[_0x5f8285([0x74,0x68,0x65,0x6e])](()=>_0x4e9c53);}async function _0x1c1026(){if(await _0x5bc7f9,_0x5b68df(_0x5f8285([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))){const _0x56c5ca=_0x1a7981[_0x5f8285([0x67,0x65,0x74,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])](0x0),_0xfda0d9=_0x1a7981[_0x5f8285([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])](_0x56c5ca[_0x5f8285([0x69,0x64])]),_0x1b87e7=_0x4dd246(_0x5f8285([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]));return await _0x1b87e7[_0x5f8285([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])](_0x56c5ca['id'],_0xfda0d9?_0xfda0d9['id']:null,!0x0),_0x1b87e7[_0x5f8285([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x5f8285([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x1b87e7[_0x5f8285([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x1b87e7[_0x5f8285([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])]=_0x463fc9,void(_0x1b87e7[_0x5f8285([0x5f,0x67,0x65,0x74,0x44,0x69,0x66,0x66])]=_0x463fc9);}if(_0x5b68df(_0x5f8285([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]))){const _0x261621=_0x4dd246(_0x5f8285([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]));_0x261621[_0x5f8285([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x5f8285([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x261621[_0x5f8285([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x261621[_0x5f8285([0x75,0x70,0x64,0x61,0x74,0x65])]=_0x463fc9,_0x261621[_0x5f8285([0x73,0x61,0x76,0x65,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])]=_0x463fc9;}_0x2a6b37[_0x5f8285([0x6d,0x6f,0x64,0x65,0x6c])][_0x5f8285([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x463fc9,_0x2a6b37[_0x5f8285([0x6d,0x6f,0x64,0x65,0x6c])][_0x5f8285([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x463fc9,_0x2a6b37[_0x5f8285([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x5f8285([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x572395(){return _0x5b68df(_0x5f8285([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x4dd246(_0x5f8285([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x5f8285([0x73,0x74,0x61,0x74,0x65])]==_0x5f8285([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x3ab80e(){return _0x5b68df(_0x5f8285([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 _0x1b4eef(){return _0x5b68df(_0x5f8285([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x59952b(_0xacc09a){const _0x4e58e7=_0x2e6f99();_0x2a6b37[_0x4e58e7]=_0x5f8285([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])+_0xacc09a,_0xacc09a[_0x5f8285([0x65,0x6e,0x64,0x73,0x57,0x69,0x74,0x68])](_0x5f8285([0x4c,0x69,0x6d,0x69,0x74]))&&(window[_0x2e6f99()]=_0x2bc433),_0xacc09a!=_0x5f8285([0x56,0x61,0x6c,0x69,0x64])&&_0x1c1026();}function _0x2e6f99(){const _0x3c3ffa=window[_0x5f8285([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x5f8285([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x5f8285([0x6e,0x6f,0x77])]())[_0x5f8285([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x5f8285([0x2e]),'');let _0x71152f=_0x5f8285([0x52]);for(let _0x5beb3a=0x0;_0x5beb3a<_0x3c3ffa[_0x5f8285([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x5beb3a+=0x2){let _0x581edd=window[_0x5f8285([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3c3ffa[_0x5f8285([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x5beb3a,_0x5beb3a+0x2));_0x581edd>=_0x42ff66[_0x5f8285([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x581edd-=_0x42ff66[_0x5f8285([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x71152f+=_0x42ff66[_0x581edd];}return _0x71152f;}function _0x5498bb(){const _0x5d80d3=_0x39fab8[_0x5f8285([0x73,0x70,0x6c,0x69,0x74])](_0x5f8285([0x2e]));if(0x3!=_0x5d80d3[_0x5f8285([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x2e707e(_0x5d80d3[0x1]);function _0x2e707e(_0x2b29f7){const _0x33fefb=_0x569122(_0x2b29f7);return _0x33fefb&&_0x48fc06()?_0x33fefb:null;function _0x48fc06(){const _0x5151d2=_0x33fefb[_0x5f8285([0x6a,0x74,0x69])],_0x366f8a=window[_0x5f8285([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5151d2[_0x5f8285([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x5151d2[_0x5f8285([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x35f40e={..._0x33fefb,[_0x5f8285([0x6a,0x74,0x69])]:_0x5151d2[_0x5f8285([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x5151d2[_0x5f8285([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x35f40e[_0x5f8285([0x76,0x63])],_0x28ea82(_0x35f40e)==_0x366f8a;}}}async function _0xfb13f3(){let _0x1a915a=!0x0;try{const _0x1cb655=_0x39fab8[_0x5f8285([0x73,0x70,0x6c,0x69,0x74])](_0x5f8285([0x2e])),[_0x462ec4,_0x4bf3ff,_0x1870cf]=_0x1cb655;return _0x537ff6(_0x462ec4),await _0x332787(_0x462ec4,_0x4bf3ff,_0x1870cf),_0x1a915a;}catch(_0x4a9334){return!0x1;}function _0x537ff6(_0x16c9ab){const _0x1d965b=_0x569122(_0x16c9ab);_0x1d965b&&_0x1d965b[_0x5f8285([0x61,0x6c,0x67])]==_0x5f8285([0x45,0x53,0x32,0x35,0x36])||(_0x1a915a=!0x1);}async function _0x332787(_0xde3f37,_0x3b4aad,_0x4ffde2){const _0x38a55c=window[_0x5f8285([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x5f8285([0x66,0x72,0x6f,0x6d])](_0x514988(_0x4ffde2),_0x4a40aa=>_0x4a40aa[_0x5f8285([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x9bee26=new window[(_0x5f8285([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x5f8285([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0xde3f37+_0x5f8285([0x2e])+_0x3b4aad),_0x4c3ca6=window[_0x5f8285([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x5f8285([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x4c3ca6)return;const _0x5be419=await _0x4c3ca6[_0x5f8285([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x5f8285([0x6a,0x77,0x6b]),_0x21fbff,{[_0x5f8285([0x6e,0x61,0x6d,0x65])]:_0x5f8285([0x45,0x43,0x44,0x53,0x41]),[_0x5f8285([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x5f8285([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x5f8285([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x4c3ca6[_0x5f8285([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x5f8285([0x6e,0x61,0x6d,0x65])]:_0x5f8285([0x45,0x43,0x44,0x53,0x41]),[_0x5f8285([0x68,0x61,0x73,0x68])]:{[_0x5f8285([0x6e,0x61,0x6d,0x65])]:_0x5f8285([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x5be419,_0x38a55c,_0x9bee26)||(_0x1a915a=!0x1);}}function _0x569122(_0x223c60){return _0x223c60[_0x5f8285([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x5f8285([0x65,0x79]))?JSON[_0x5f8285([0x70,0x61,0x72,0x73,0x65])](_0x514988(_0x223c60)):null;}function _0x514988(_0x166779){return window[_0x5f8285([0x61,0x74,0x6f,0x62])](_0x166779[_0x5f8285([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x5f8285([0x2b]))[_0x5f8285([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x5f8285([0x2f])));}function _0x28ea82(_0x53816a){let _0x64407b=0x1505;function _0x1a0967(_0x8a5b25){for(let _0x54caa3=0x0;_0x54caa3<_0x8a5b25[_0x5f8285([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x54caa3++){const _0x5608d0=_0x8a5b25[_0x5f8285([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x54caa3);_0x64407b=(_0x64407b<<0x5)+_0x64407b+_0x5608d0,_0x64407b&=_0x64407b;}}function _0x2daf96(_0x3aa445){Array[_0x5f8285([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x3aa445)?_0x3aa445[_0x5f8285([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x2daf96):_0x3aa445&&typeof _0x3aa445==_0x5f8285([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x5f8285([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x3aa445)[_0x5f8285([0x73,0x6f,0x72,0x74])]()[_0x5f8285([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x367b32,_0x3b077e])=>{_0x1a0967(_0x367b32),_0x2daf96(_0x3b077e);}):_0x1a0967(window[_0x5f8285([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x3aa445));}return _0x2daf96(_0x53816a),_0x64407b>>>0x0;}function _0x4a578a(_0x476ce5){return _0x476ce5[_0x5f8285([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x5f8285([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x5f8285([0x30]));}function _0x4a80e2(_0x2c24bf){return _0x2c24bf[_0x5f8285([0x73,0x70,0x6c,0x69,0x74])]('')[_0x5f8285([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x5f8285([0x6a,0x6f,0x69,0x6e])]('');}function _0x5b68df(_0x2aa96b){return _0x2a6b37[_0x5f8285([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x5f8285([0x68,0x61,0x73])](_0x2aa96b);}function _0x4dd246(_0x343c71){return _0x2a6b37[_0x5f8285([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x5f8285([0x67,0x65,0x74])](_0x343c71);}function _0x463fc9(){}function _0x5f8285(_0x5e2a10){return _0x5e2a10['map'](_0x335fd3=>String['fromCharCode'](_0x335fd3))['join']('');}_0x59952b(await _0x3fb5ff());}(this);}['createRevision'](_0x5b7537){const _0x104c6d=this['editor']['plugins']['get']('Users');return new a({'id':_0x5b7537['id'],'name':_0x5b7537['name'],'creator':_0x5b7537['creatorId']?_0x104c6d['getUser'](_0x5b7537['creatorId']):null,'diffData':_0x5b7537['diffData']||_0x5b7537['data'],'authors':_0x5b7537['authorsIds']['map'](_0x5d6153=>_0x104c6d['getUser'](_0x5d6153)),'createdAt':new Date(_0x5b7537['createdAt']),'attributes':_0x5b7537['attributes'],'fromVersion':_0x5b7537['fromVersion'],'toVersion':_0x5b7537['toVersion']});}['addRevision'](_0x378478,_0x11fb7c=0x0){this['_revisions']['add'](_0x378478,_0x11fb7c);}['getRevision'](_0x1881be){return this['_revisions']['get'](_0x1881be);}['getRevisions'](_0x281efa={'toJSON':!0x1}){const _0x4b9648=Array['from'](this['_revisions']);return _0x4b9648['reverse'](),_0x281efa['toJSON']?_0x4b9648['map'](_0x4d0a4f=>_0x4d0a4f['toJSON']()):_0x4b9648;}['getIndex'](_0x3b64f0){return this['_revisions']['getIndex'](_0x3b64f0);}['getEarlierVisibleRevision'](_0x1ea831){const [,_0x15a7e7]=this['getRevisionsIterator'](_0x1ea831,{'direction':'earlier'});return _0x15a7e7;}['getLaterVisibleRevision'](_0x265d90){const [,_0x2e5386]=this['getRevisionsIterator'](_0x265d90,{'direction':'later'});return _0x2e5386;}['getRevisionsInDiff'](_0x542d2c){const _0x4be37d=[];for(const _0x4bd504 of this['getRevisionsIterator'](_0x542d2c['newRevisionId']))if(_0x4be37d['push'](_0x4bd504),_0x4bd504['id']===_0x542d2c['oldRevisionId'])break;return _0x4be37d;}*['getRevisionsIterator'](_0x4f6c8c,{direction:_0x5be6fc='earlier',filter:_0x20aff3=()=>!0x0}={}){const _0x67caba='earlier'===_0x5be6fc?0x1:-0x1;let _0x43759f=this['_revisions']['get'](_0x4f6c8c),_0x2613d9=this['getIndex'](_0x43759f);for(yield _0x43759f;_0x43759f;){if(_0x2613d9+=_0x67caba,_0x43759f=this['getRevision'](_0x2613d9),!_0x43759f)return;_0x20aff3(_0x43759f)&&(yield _0x43759f);}}}function m(_0x33d9e3,_0x2e19cd,_0x461b18){const t=_0x33d9e3['t'];switch(_0x2e19cd){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'},_0x461b18);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x461b18);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':_0x40e8e0,'a':_0x2d478c,'e':_0x2e2901,'r':_0x4126a5,'u':_0x3c991b};class l extends _0x21f9a0{['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[_0x36bdfa,j,_0x44da30];}constructor(_0x184e7b){super(_0x184e7b),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 _0x38f307=_0x2afce3();this['_source']={'history':this['editor']['model']['document']['history'],'getLatestVersion':()=>Promise['resolve'](this['editor']['model']['document']['version']),'getCurrentRevisionId':()=>_0x38f307},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 _0x2f327d=this['repository']['getRevision'](0x0),_0x3b1d1c=_0x2f327d&&null===_0x2f327d['creator']?_0x2f327d:null;if(this['_continueCurrentRevision']=!!_0x3b1d1c&&this['editor']['config']['get']('revisionHistory.resumeUnsavedRevision'),this['editor']['plugins']['has']('RealTimeCollaborationClient')){const _0x5aa583=this['_source']['getCurrentRevisionId'](),_0x4c1e6e=this['repository']['getRevision'](_0x5aa583);if(_0x4c1e6e)this['_startingVersion']=_0x4c1e6e['fromVersion'],this['_continueCurrentRevision']=!0x1;else{const _0x1a0c2d=this['_source']['history']['_operations']['find'](_0x1c52a8=>!_0x1c52a8['_isInit']),_0x8221b1=_0x1a0c2d?_0x1a0c2d['baseVersion']:this['_source']['history']['version'];_0x2f327d?(_0x2f327d['toVersion']<_0x8221b1&&_0x2f327d['_update']({'toVersion':_0x8221b1}),this['_continueCurrentRevision']?(this['_source']['getCurrentRevisionId']=()=>_0x3b1d1c['id'],this['_startingVersion']=_0x3b1d1c['fromVersion']):(this['_startingVersion']=_0x2f327d['toVersion'],this['_continueCurrentRevision']=!0x1)):(this['_startingVersion']=_0x8221b1,this['_continueCurrentRevision']=!0x1);}}else _0x3b1d1c&&(this['editor']['model']['document']['history']['version']=Math['max'](_0x3b1d1c['toVersion'],this['editor']['model']['document']['history']['version']),_0x3b1d1c['fromVersion']===_0x3b1d1c['toVersion']?(0x0!==_0x3b1d1c['fromVersion']&&(this['_source']['getCurrentRevisionId']=()=>_0x3b1d1c['id']),this['_continueCurrentRevision']=!0x1):this['_continueCurrentRevision']&&(this['_source']['getCurrentRevisionId']=()=>_0x3b1d1c['id'],this['_startingVersion']=_0x3b1d1c['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',_0x58cc47=>!_0x58cc47),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0xdc193e=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x2cd9fd;for(const _0x4e108b in _0xdc193e){const _0x4dfbe4=_0x4e108b,_0x371a26=_0xdc193e[_0x4dfbe4];if('revisionHistoryLicenseKeyValid'==_0x371a26||'revisionHistoryLicenseKeyInvalid'==_0x371a26||'revisionHistoryLicenseKeyExpired'==_0x371a26||'revisionHistoryLicenseKeyDomainLimit'==_0x371a26||'revisionHistoryLicenseKeyNotAllowed'==_0x371a26||'revisionHistoryLicenseKeyEvaluationLimit'==_0x371a26||'revisionHistoryLicenseKeyTrialLimit'==_0x371a26||'revisionHistoryLicenseKeyUsageLimit'==_0x371a26){delete _0xdc193e[_0x4dfbe4],_0x2cd9fd=_0x371a26,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'revisionHistoryLicenseKeyInvalid'==_0x2cd9fd&&_0xdc193e['_showLicenseError']('invalid'),'revisionHistoryLicenseKeyExpired'==_0x2cd9fd&&_0xdc193e['_showLicenseError']('expired'),'revisionHistoryLicenseKeyDomainLimit'==_0x2cd9fd&&_0xdc193e['_showLicenseError']('domainLimit'),'revisionHistoryLicenseKeyNotAllowed'==_0x2cd9fd&&_0xdc193e['_showLicenseError']('featureNotAllowed','RevisionHistory'),'revisionHistoryLicenseKeyEvaluationLimit'==_0x2cd9fd&&_0xdc193e['_showLicenseError']('evaluationLimit'),'revisionHistoryLicenseKeyTrialLimit'==_0x2cd9fd&&_0xdc193e['_showLicenseError']('trialLimit'),'revisionHistoryLicenseKeyUsageLimit'==_0x2cd9fd&&_0xdc193e['_showLicenseError']('usageLimit');},0x3e8);}async['afterInit'](){if(this['repository']['length']>0x0){const _0x1a005c=this['repository']['getRevision'](0x0),_0x3cc503=await this['getRevisionDocumentData'](_0x1a005c),_0x5d4889=await this['getRevisionRootsAttributes'](_0x1a005c);this['_replaceEditorDataWithRevisionData'](_0x3cc503,_0x5d4889);}}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['setSource'](_0xe7798){this['_source']=_0xe7798;}async['update'](){const _0x427918=await this['_source']['getLatestVersion']();if(_0x427918>this['currentRevision']['toVersion']){await this['_loadState']();const _0x4c1c7f=this['buildRevisionData']({'revision':this['currentRevision'],'to':_0x427918});_0x4c1c7f['authors']=_0x4c1c7f['authorsIds']['map'](_0x4aee79=>this['editor']['plugins']['get']('Users')['getUser'](_0x4aee79)),this['currentRevision']['_update'](_0x4c1c7f);}}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'](_0x4feea0={},_0xe590ac=null){const _0x228e24=[];await this['_loadState'](),this['_continueCurrentRevision']=!0x1,_0xe590ac>this['currentRevision']['toVersion']&&(_0xe590ac=null),null===_0xe590ac&&(_0xe590ac=await this['_source']['getLatestVersion']());const _0x2f3dcf=this['_getFromVersion'](_0xe590ac),_0xb97693=this['buildRevisionData']({'from':_0x2f3dcf,'to':_0xe590ac});if(this['currentRevision']['toVersion']<_0xe590ac){const _0xc6c30a=this['buildRevisionData']({'revision':this['currentRevision'],'from':_0xe590ac,'to':_0xe590ac});_0xc6c30a['authors']=[],_0xc6c30a['authorsIds']=[],_0xc6c30a['id']=this['currentRevision']['id'],this['currentRevision']['_update'](_0xc6c30a,!0x0),delete _0xc6c30a['authors'],_0x228e24['push'](_0xc6c30a);}_0x4feea0['creatorId']=this['editor']['plugins']['get']('Users')['me']['id'],_0x4feea0['name']=_0x4feea0['name']||null,_0x4feea0['id']=_0x4feea0['id']||_0x2afce3(),_0x4feea0={..._0x4feea0,..._0xb97693};const _0x57297b=this['addRevisionData'](_0x4feea0);_0x228e24['push'](_0x4feea0);const _0x598575=this['repository']['getIndex'](_0x57297b);if(0x0!==_0x598575){const _0x4f1542=this['repository']['getRevision'](_0x598575-0x1);if(_0x4f1542['fromVersion']!==_0xe590ac){const _0x2d04b2=this['_revisionDataBuilder']['getData'](_0xe590ac,_0x4f1542['toVersion']),_0xc089a8={'id':_0x4f1542['id'],'diffData':_0x2d04b2['diffData'],'authorsIds':_0x2d04b2['authorsIds'],'authors':_0x2d04b2['authorsIds']['map'](_0x3de654=>this['editor']['plugins']['get']('Users')['getUser'](_0x3de654)),'fromVersion':_0xe590ac};_0x4f1542===this['currentRevision']&&(_0xc089a8['createdAt']=new Date(_0x4feea0['createdAt']['getTime']()+0xa)),_0x4f1542['_update'](_0xc089a8,!0x0),delete _0xc089a8['authors'],_0x228e24['push'](_0xc089a8);}}if(this['adapter']){for(const _0x390e33 of _0x228e24)this['_bufferUpdate'](_0x390e33['id'],_0x390e33,!0x0);this['sendBufferedUpdates']();}return _0x57297b;}['addRevisionData'](_0x2d7be7){const _0x1c5fb9=this['repository']['createRevision'](_0x2d7be7);return this['adapter']&&_0x1c5fb9['on']('_update',(_0x399d85,_0x1bcfb2,_0x5abc09)=>{_0x5abc09||(this['_bufferUpdate'](_0x1bcfb2['id'],_0x1bcfb2,!0x0),this['sendBufferedUpdates']());}),this['repository']['addRevision'](_0x1c5fb9,this['_findInsertionIndex'](_0x1c5fb9)),_0x1c5fb9;}async['getRevisionDocumentData'](_0x1b6709){await this['_loadRevisionData'](_0x1b6709);const _0x349b38={};for(const _0x2425d5 in _0x1b6709['diffData']){if(_0x1b6709['diffData'][_0x2425d5]['attachChange']&&!_0x1b6709['diffData'][_0x2425d5]['attachChange']['isAttached'])continue;const _0x3d3146=this['_removeRevisionMarkers'](JSON['parse'](_0x1b6709['diffData'][_0x2425d5]['insertions'])),_0x45f1d6=this['editor']['editing']['view']['document'],_0x43157f=new _0x35a7c1(_0x45f1d6,_0x3d3146['map'](_0x4b0b18=>C(_0x4b0b18,this['editor'])));this['editor']['data']['processor']['useFillerType']('marked'),_0x349b38[_0x2425d5]=this['editor']['data']['processor']['toData'](_0x43157f),this['editor']['data']['processor']['useFillerType']('default');}return _0x349b38;}async['getRevisionRootsAttributes'](_0x3126a1){await this['_loadRevisionData'](_0x3126a1);const _0x3c7bf6={};for(const _0xb809f in _0x3126a1['diffData'])_0x3126a1['diffData'][_0xb809f]['attachChange']&&!_0x3126a1['diffData'][_0xb809f]['attachChange']['isAttached']||(_0x3c7bf6[_0xb809f]=_0x3126a1['diffData'][_0xb809f]['attributesAfter']||{});return _0x3c7bf6;}['sendBufferedUpdates'](){if(0x0===this['_bufferedUpdates']['size'])return;if(this['_isPendingUpdate'])return;let _0x1673e9=Array['from'](this['_bufferedUpdates']['values']());this['_bufferedUpdates']['clear']();for(let _0x3ef876=0x0;_0x3ef876<_0x1673e9['length'];_0x3ef876++){const _0xda850=_0x1673e9[_0x3ef876];let _0x4bef2a=!0x1;for(const _0x5c87ec of Object['keys'](_0xda850))void 0x0===_0xda850[_0x5c87ec]?delete _0xda850[_0x5c87ec]:'id'!==_0x5c87ec&&(_0x4bef2a=!0x0);_0x4bef2a||(_0x1673e9[_0x3ef876]=null);}if(_0x1673e9=_0x1673e9['filter'](_0x32027b=>null!==_0x32027b),!_0x1673e9['length'])return;for(let _0x57b093=0x0;_0x57b093<_0x1673e9['length'];_0x57b093++){const _0x1b833d=_0x1673e9[_0x57b093];void 0x0!==_0x1b833d['fromVersion']&&void 0x0===_0x1b833d['toVersion']&&(_0x1b833d['toVersion']=this['repository']['getRevision'](_0x1b833d['id'])['toVersion']),void 0x0!==_0x1b833d['toVersion']&&void 0x0===_0x1b833d['fromVersion']&&(_0x1b833d['fromVersion']=this['repository']['getRevision'](_0x1b833d['id'])['fromVersion']);}const _0x5ef201=this['editor']['config']['get']('collaboration.channelId');this['_isPendingUpdate']=!0x0,this['_addPendingAction'](),this['adapter']['updateRevisions'](_0x1673e9,_0x5ef201)['finally'](()=>{this['_isPendingUpdate']=!0x1;})['then'](_0x2cd4ad=>{if(_0x2cd4ad){for(const _0x137cf2 of _0x2cd4ad)this['setRevisionData']({'id':_0x137cf2['id'],'createdAt':_0x137cf2['createdAt']});}this['_removePendingAction'](),this['sendBufferedUpdates']();});}['_replaceEditorDataWithRevisionData'](_0x4d163e,_0xf81b58){let _0x4756c1=this['editor']['config']['get']('initialData'),_0x5e592f=this['editor']['config']['get']('rootsAttributes');if(void 0x0===_0x4756c1){_0x4756c1={};for(const _0x434cbc of this['editor']['model']['document']['getRootNames']())_0x4756c1[_0x434cbc]='';}if('string'==typeof _0x4756c1&&(_0x4756c1={'main':_0x4756c1}),void 0x0===_0x5e592f){_0x5e592f={};for(const _0x4f39b3 of this['editor']['model']['document']['getRootNames']())_0x5e592f[_0x4f39b3]={};}let _0x264daf=!0x1;const _0x415f76=Object['keys'](_0x4756c1),_0xcd1209=Object['keys'](_0x4d163e);for(const _0x406b84 of _0x415f76){if(_0x4756c1[_0x406b84]!==_0x4d163e[_0x406b84]&&''!==_0x4756c1[_0x406b84]['trim']()){_0x264daf=!0x0;break;}if(!_0x442ae4(_0x5e592f[_0x406b84],_0xf81b58[_0x406b84])&&Object['keys'](_0x5e592f[_0x406b84])['length']>0x0){_0x264daf=!0x0;break;}}_0x264daf||(_0x264daf=_0xcd1209['some'](_0x1d51ea=>!this['editor']['model']['document']['getRoot'](_0x1d51ea))),_0x264daf&&_0x427f80('editor-initial-data-replaced-with-revision-data',{'editorData':_0x4756c1,'editorRootsAttributes':_0x5e592f,'revisionData':_0x4d163e,'revisionRootsAttributes':_0xf81b58}),this['editor']['config']['set']('initialData',_0x4d163e),this['editor']['config']['set']('rootsAttributes',_0xf81b58);}['_addPendingAction'](){if(!this['_pendingAction']){const _0x333124=this['editor']['plugins']['get']('PendingActions');this['_pendingAction']=_0x333124['add'](m(this['editor']['locale'],'PENDING_ACTION_REVISION_HISTORY'));}}['_removePendingAction'](){this['_pendingAction']&&(this['editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null);}['_findInsertionIndex'](_0x413b0d){const _0x402e92=this['repository']['getRevisions']();_0x402e92['reverse']();let _0x7c665=0x0;for(;_0x7c665<_0x402e92['length'];){const _0x73e567=_0x402e92[_0x7c665];if(_0x73e567===this['currentRevision']){_0x7c665++;continue;}if(_0x73e567['id']===this['_initialRevisionId'])break;const _0x1434f9=_0x413b0d['toVersion']-_0x73e567['toVersion']||_0x413b0d['fromVersion']-_0x73e567['fromVersion'];if(_0x1434f9>0x0)break;if(_0x1434f9<0x0)_0x7c665++;else{if(!_0x413b0d['creator']&&_0x73e567['creator'])break;if(_0x73e567['creator']||!_0x413b0d['creator']){if(_0x413b0d['createdAt']>_0x73e567['createdAt'])break;_0x7c665++;}else _0x7c665++;}}return _0x7c665;}['setRevisionData'](_0x13e3ed){const _0x21d818=this['repository']['getRevision'](_0x13e3ed['id']);if(_0x13e3ed['createdAt']&&(_0x13e3ed['createdAt']=new Date(_0x13e3ed['createdAt'])),_0x13e3ed['authorsIds']){const _0x1d0861=this['editor']['plugins']['get']('Users');_0x13e3ed['authors']=_0x13e3ed['authorsIds']['map'](_0x553773=>_0x1d0861['getUser'](_0x553773));}_0x21d818['_update'](_0x13e3ed,!0x0);}['buildRevisionData']({revision:_0xb92e60=null,from:_0x2fc71f=null,to:_0x161a8b=null}){_0x2fc71f=null!==_0x2fc71f?_0x2fc71f:_0xb92e60['fromVersion'],_0x161a8b=null!==_0x161a8b?_0x161a8b:_0xb92e60['toVersion'];const _0x15e952=this['_revisionDataBuilder']['getData'](_0x2fc71f,_0x161a8b),_0x4ea7f3={'diffData':_0x15e952['diffData'],'authorsIds':_0x15e952['authorsIds'],'fromVersion':_0x2fc71f,'toVersion':_0x161a8b};if(!_0xb92e60||_0x161a8b!==_0xb92e60['toVersion']){const _0x523daa=_0x161a8b-0x1,_0x226e8f=this['_source']['history']['getOperation'](_0x523daa);_0x4ea7f3['createdAt']=_0x226e8f&&_0x226e8f['createdAt']||new Date();}if(this['_loadedStateData']&&_0x2fc71f===this['_loadedStateData']['fromVersion']){for(const _0x3a0430 of this['_loadedStateData']['authors'])_0x4ea7f3['authorsIds']['includes'](_0x3a0430['id'])||_0x4ea7f3['authorsIds']['push'](_0x3a0430['id']);}return _0x4ea7f3;}['_loadRevisionData'](_0x2752b3){if(!_0x2752b3||_0x2752b3['diffData'])return Promise['resolve']();{const _0x3dd866=this['editor']['config']['get']('collaboration.channelId');return this['adapter']['getRevision']({'channelId':_0x3dd866,'revisionId':_0x2752b3['id']})['then'](_0x4bf064=>{_0x2752b3['diffData']=_0x4bf064['diffData'];});}}['_bufferUpdate'](_0x353e33,_0x3faed1,_0x64fdb){if(this['_bufferedUpdates']['has'](_0x353e33)){const _0x52bedc=this['_bufferedUpdates']['get'](_0x353e33);_0x3faed1=_0x64fdb?{..._0x52bedc,..._0x3faed1}:{..._0x3faed1,..._0x52bedc};}this['_bufferedUpdates']['set'](_0x353e33,_0x3faed1);}['_getFromVersion'](_0x38de01){const _0x1fdd78=this['repository']['getRevisions']();_0x1fdd78['reverse'](),_0x1fdd78['shift']();const _0x38d697=_0x1fdd78['find'](_0x486d60=>_0x486d60['toVersion']<=_0x38de01)['toVersion'];return _0x38d697<this['_startingVersion']?this['_startingVersion']:_0x38d697;}['_createInitialRevision'](_0x35008e){const _0x3639ba=this['repository']['getRevision'](this['repository']['length']-0x1);if(_0x3639ba)this['_initialRevisionId']=_0x3639ba['id'];else{const _0x185107=!this['editor']['model']['document']['roots']['find'](_0x2c6937=>this['editor']['model']['hasContent'](_0x2c6937)),_0x528234=this['editor']['plugins']['get']('Users')['me']['id'],_0xca2345=m(this['editor']['locale'],_0x185107?'Empty\x20document':'Initial\x20revision');this['_makeRevision']({'from':_0x35008e,'to':_0x35008e,'id':this['_initialRevisionId'],'name':_0xca2345,'creatorId':_0x528234});}}['_createCurrentRevision'](_0x27a2d0){const _0x233d49=this['_source']['getCurrentRevisionId']();this['currentRevision']=this['repository']['getRevision'](_0x233d49),this['currentRevision']||(this['currentRevision']=this['_makeRevision']({'from':_0x27a2d0,'to':_0x27a2d0,'id':_0x233d49,'name':'','creatorId':null}));}['_makeRevision']({name:_0x1bca4a,from:_0x326dc0,to:_0x9725b,creatorId:_0x2e2fa1,id:_0x571120}){const _0x56800d=this['buildRevisionData']({'from':_0x326dc0,'to':_0x9725b});_0x56800d['name']=_0x1bca4a,_0x56800d['creatorId']=_0x2e2fa1,_0x56800d['id']=_0x571120;const _0x122e4a=this['addRevisionData'](_0x56800d);return this['adapter']&&this['_bufferUpdate'](_0x56800d['id'],_0x56800d,!0x0),_0x122e4a;}['_setConversion'](){this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'});}['_removeRevisionMarkers'](_0x1d6efb){return(_0x1d6efb=_0x1d6efb['filter'](_0x4dfc4d=>!_0x4dfc4d['name']||'revision-start'!==_0x4dfc4d['name']&&'revision-end'!==_0x4dfc4d['name']))['forEach'](_0x2242f0=>{'string'!=typeof _0x2242f0&&(_0x2242f0['children']=this['_removeRevisionMarkers'](_0x2242f0['children']),_0x2242f0['attributes']=_0x2242f0['attributes']['filter'](_0x341efd=>!_0x341efd[0x0]['startsWith']('data-revision-')));}),_0x1d6efb;}}function C(_0x3434e3,_0x2d6982){const _0x2849d2=_0x2d6982['editing']['view']['document'];if('string'==typeof _0x3434e3)return new _0xd0ebb3(_0x2849d2,_0x3434e3);{const _0x5457bd=_0x3434e3['children']['map'](_0x7d2643=>C(_0x7d2643,_0x2d6982));return new(P[_0x3434e3['type']]||_0x1fc26e)(_0x2849d2,_0x3434e3['name'],_0x3434e3['attributes'],_0x5457bd);}}class V{['editor'];['source'];['_savedMetaData'];['_lastFrom'];['_lastTo'];['_markers'];['_diffRoots'];['_diffRootsAttributes'];['_baseRoots'];['_baseRootsAttributes'];['_idsRoots'];['_baseIdsRoots'];['_touched'];['_touchedMarkers'];['_touchedRoots'];['_revisionId'];['_startingRevisionId'];constructor(_0xe81f99){this['editor']=_0xe81f99,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'](_0x5d69e9){this['source']=_0x5d69e9;const _0x5b1511=new Map(),_0x45c76d=new Map(),_0x436d49=this['editor']['model']['document']['roots']['map'](_0x3a4ae4=>_0x3a4ae4['rootName']);for(const _0x400e3b of _0x436d49){const _0x5b3cca=this['editor']['model']['document']['getRoot'](_0x400e3b),_0x3e8072=T(_0x5b3cca);_0x5b1511['set'](_0x400e3b,_0x3e8072),_0x45c76d['set'](_0x400e3b,Object['fromEntries'](_0x5b3cca['getAttributes']()));}const _0x464ab2=Array['from'](this['editor']['model']['markers'])['map'](_0x591f01=>[_0x591f01['name'],_0x591f01['getRange']()]),_0x30b133=this['source']['version'];this['_saveMetaData'](_0x30b133,_0x5b1511,_0x464ab2,_0x45c76d),this['_startingRevisionId']=this['_revisionId'];const _0x2697dd=new Map(),_0x509321=new Map();for(const _0x18d85e of _0x436d49){const _0x538454=F(_0x18d85e);_0x2697dd['set'](_0x18d85e,_0x538454),_0x509321['set'](_0x18d85e,{});}this['_saveMetaData'](Number['NEGATIVE_INFINITY'],_0x2697dd,[],_0x509321);}['getData'](_0x2cf5e1,_0x1b1eb8){if(this['_lastFrom']===_0x2cf5e1&&this['_lastTo']<=_0x1b1eb8)this['_savedMetaData']['size']>0x1&&this['_removeMetaData'](this['_lastTo']),this['_applyOperations'](this['_lastTo'],_0x1b1eb8,!0x0);else{if(!this['_savedMetaData']['has'](_0x2cf5e1)){const _0x230e51=this['_getPreviousFrom'](_0x2cf5e1);this['_calculateMetaData'](_0x230e51,_0x2cf5e1,!0x1);}this['_calculateMetaData'](_0x2cf5e1,_0x1b1eb8,!0x0);}return this['_lastFrom']=_0x2cf5e1,this['_lastTo']=_0x1b1eb8,this['_getState']();}['loadState'](_0x4886f2){this['_reset'](),this['_lastFrom']=_0x4886f2['fromVersion'],this['_lastTo']=_0x4886f2['toVersion'];for(const _0x225373 in _0x4886f2['diffData']){const _0x5ce1f8=_0x4886f2['diffData'][_0x225373]['attachChange'],_0x1b399d=_0xf117d4(_0x4886f2['diffData'][_0x225373]['attributesBefore'])||{},_0x31768b=this['_makeModelFromViewString'](_0x4886f2['diffData'][_0x225373]['deletions']);_0x31768b['rootName']=_0x225373,_0x31768b['_isAttached']=!_0x5ce1f8||!_0x5ce1f8['isAttached'],_0x31768b['isAttached']=()=>_0x31768b['_isAttached'],this['_baseRoots']['set'](_0x225373,_0x31768b),this['_baseRootsAttributes']['set'](_0x225373,_0x1b399d),_0x5ce1f8&&this['_touchedRoots']['set'](_0x225373,_0x5ce1f8);const _0x386858=this['_makeIdsRoot'](_0x31768b);this['_baseIdsRoots']['set'](_0x225373,_0x386858);for(const [_0x14da91,_0x168078]of _0x31768b['markers']){if(!_0x14da91['startsWith']('revision:'))continue;const _0x2a1d33=_0x14da91['split'](':')[0x2];for(const _0x3aa3a6 of _0x168078['getWalker']({'singleCharacters':!0x0})){const _0x4d2010=this['_getVidAttributeName'](_0x3aa3a6),_0x5ab78e='elementEnd'==_0x3aa3a6['type']?_0x3aa3a6['previousPosition']['path']['slice'](0x0,-0x1):_0x3aa3a6['previousPosition']['path'],_0x222323=_0x386858['getNodeByPath'](_0x5ab78e)['getAttribute'](_0x4d2010);this['_touched']['set'](_0x222323,{'userId':_0x2a1d33});}}}this['_startingRevisionId']=this['_revisionId'];const _0x4ea92a=[...Array(this['_revisionId'])['keys']()]['slice'](0x1)['filter'](_0x5ce349=>!this['_touched']['has'](_0x5ce349));let _0x55af7f=0x0;const _0x3aa298=new Map();for(const _0x281eb1 in _0x4886f2['diffData']){const _0x3377d5=_0x4886f2['diffData'][_0x281eb1]['attachChange'],_0x4087d6=_0xf117d4(_0x4886f2['diffData'][_0x281eb1]['attributesAfter'])||{},_0x458931=this['_makeModelFromViewString'](_0x4886f2['diffData'][_0x281eb1]['insertions']);_0x458931['rootName']=_0x281eb1,_0x458931['_isAttached']=!_0x3377d5||_0x3377d5['isAttached'],_0x458931['isAttached']=()=>_0x458931['_isAttached'],this['_diffRoots']['set'](_0x281eb1,_0x458931),this['_diffRootsAttributes']['set'](_0x281eb1,_0x4087d6);const _0xeb92df=this['_makeIdsRoot'](_0x458931,Number['NEGATIVE_INFINITY']);this['_idsRoots']['set'](_0x281eb1,_0xeb92df),_0x3aa298['set'](_0x281eb1,_0x458931['isAttached']()?_0x4087d6:{});for(const [_0x574c02,_0x3988dd]of _0x458931['markers']){if(!_0x574c02['startsWith']('revision:'))continue;const _0xbe8f51=_0x574c02['split'](':')[0x2];for(const _0x5b3027 of _0x3988dd['getWalker']({'singleCharacters':!0x0})){const _0x5bdcc4=this['_getVidAttributeName'](_0x5b3027),_0x267455=this['_revisionId']++,_0x3a5e4f='elementEnd'==_0x5b3027['type']?_0x5b3027['previousPosition']['path']['slice'](0x0,-0x1):_0x5b3027['previousPosition']['path'];_0xeb92df['getNodeByPath'](_0x3a5e4f)['_setAttribute'](_0x5bdcc4,_0x267455),this['_touched']['set'](_0x267455,{'userId':_0xbe8f51});}}for(const _0x2f7ac4 of this['editor']['model']['createRangeIn'](_0x458931)['getWalker']({'singleCharacters':!0x0})){const _0x5d53c5=this['_getVidAttributeName'](_0x2f7ac4),_0x3054b6='elementEnd'==_0x2f7ac4['type']?_0x2f7ac4['previousPosition']['path']['slice'](0x0,-0x1):_0x2f7ac4['previousPosition']['path'],_0x2d7d98=_0xeb92df['getNodeByPath'](_0x3054b6);_0x2d7d98['getAttribute'](_0x5d53c5)>0x0||_0x2d7d98['_setAttribute'](_0x5d53c5,_0x4ea92a[_0x55af7f++]);}for(const [_0x467d4d,_0x4d0c3d]of _0x458931['markers'])_0x467d4d['startsWith']('revision:')||this['_markers']['set'](_0x467d4d,_0x4d0c3d);}const _0x2998a4=F('$graveyard');this['_baseRoots']['set']('$graveyard',_0x2998a4),this['_baseIdsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x2998a4,0x1));const _0x42a373=F('$graveyard');this['_diffRoots']['set']('$graveyard',_0x42a373),this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x42a373,0x1));const _0x16e3e8=Array['from'](this['_diffRoots'])['map'](([_0x319ba0,_0x3f207e])=>[_0x319ba0,T(_0x3f207e)]);this['_saveMetaData'](this['_lastTo'],_0x16e3e8,this['_markers'],_0x3aa298);}['_makeModelFromViewString'](_0x4c1659){const _0x5032c5=JSON['parse'](_0x4c1659),_0x37f326=this['editor']['editing']['view']['document'],_0x232534=new _0x35a7c1(_0x37f326,_0x5032c5['map'](_0x2db68a=>C(_0x2db68a,this['editor'])));return this['editor']['data']['toModel'](_0x232534);}['_saveMetaData'](_0x6c8068,_0x30589e,_0x58c067,_0x3c2edb){const _0x29f2b5=new Map(_0x30589e),_0x133ff5=new Map(_0xf117d4(_0x3c2edb)),_0x6f57db=new Map();for(const [_0xce37bc,_0x38088a]of _0x58c067)_0x6f57db['set'](_0xce37bc,{'start':_0x38088a['start']['clone'](),'end':_0x38088a['end']['clone'](),'rootName':_0x38088a['root']['rootName']});this['_savedMetaData']['set'](_0x6c8068,{'roots':_0x29f2b5,'markers':_0x6f57db,'rootsAttributes':_0x133ff5});}['_removeMetaData'](_0x12a2a3){this['_savedMetaData']['delete'](_0x12a2a3);}['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'](_0x4b1646,_0x152d1a=null){let _0x5d0de5=null;_0x4b1646['is']('documentFragment')||(_0x5d0de5=new ft(_0x4b1646['name'],{'vid_start':null===_0x152d1a?this['_revisionId']++:_0x152d1a++}));const _0x7f4ac=[];for(const _0x35047f of _0x4b1646['getChildren']())if(_0x35047f['is']('element')){_0x7f4ac['push'](this['_makeIdsRoot'](_0x35047f,_0x152d1a));const _0x6a3c4b=_0x7f4ac[_0x7f4ac['length']-0x1];null!==_0x152d1a&&(_0x152d1a=_0x6a3c4b['is']('element','$text')?_0x6a3c4b['getAttribute']('vid')+0x1:_0x6a3c4b['getAttribute']('vid_end')+0x1);}else{for(let _0x2bf1f8=0x0;_0x2bf1f8<_0x35047f['offsetSize'];_0x2bf1f8++)_0x7f4ac['push'](new ft('$text',{'vid':null===_0x152d1a?this['_revisionId']++:_0x152d1a++}));}if(_0x4b1646['is']('documentFragment')){const _0x151f2f=F(_0x4b1646['rootName']);return _0x151f2f['_insertChild'](0x0,_0x7f4ac),_0x151f2f;}return _0x5d0de5['_setAttribute']('vid_end',null===_0x152d1a?this['_revisionId']++:_0x152d1a++),_0x5d0de5['_insertChild'](0x0,_0x7f4ac),_0x5d0de5;}['_calculateMetaData'](_0x560788,_0x2ebe02,_0x3a84bc){this['_reset']();const {roots:_0xeaafdb,markers:_0x58012e,rootsAttributes:_0x2b3ed9}=this['_savedMetaData']['get'](_0x560788);this['_baseRoots']=new Map(_0xeaafdb),this['_baseRootsAttributes']=new Map(_0xf117d4(_0x2b3ed9));for(const [_0x47e8d6,_0x4835ff]of this['_baseRoots'])if('$graveyard'!==_0x47e8d6&&(this['_diffRoots']['set'](_0x47e8d6,T(_0x4835ff)),this['_diffRootsAttributes']=new Map(_0xf117d4(_0x2b3ed9)),_0x3a84bc)){const _0x1a7df9=this['_revisionId'];this['_idsRoots']['set'](_0x47e8d6,this['_makeIdsRoot'](_0x4835ff)),this['_baseIdsRoots']['set'](_0x47e8d6,this['_makeIdsRoot'](_0x4835ff,_0x1a7df9));}this['_startingRevisionId']=this['_revisionId'],this['_diffRoots']['set']('$graveyard',T(this['_baseRoots']['get']('$graveyard'))),_0x3a84bc&&this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](this['_baseRoots']['get']('$graveyard')));for(const [_0x3ca4af,_0xa5dd90]of _0x58012e){const _0x2e0659=this['_baseRoots']['get'](_0xa5dd90['rootName']),_0x445f27=this['_diffRoots']['get'](_0xa5dd90['rootName']),_0x2596d8=new vt(this['_fixPosition'](_0xa5dd90['start'],_0x2e0659),this['_fixPosition'](_0xa5dd90['end'],_0x2e0659)),_0x58ded2=this['_fixRange'](_0x2596d8,_0x445f27);_0x2e0659['markers']['set'](_0x3ca4af,_0x2596d8),this['_markers']['set'](_0x3ca4af,_0x58ded2);}this['_applyOperations'](_0x560788,_0x2ebe02,_0x3a84bc);}['_applyOperations'](_0x3b2371,_0xe3ba45,_0x25dbde){for(const _0x4065e0 of this['source']['getOperations'](_0x3b2371,_0xe3ba45))this['_handleOperation'](_0x4065e0,_0x25dbde);for(const _0x44c028 of this['_diffRoots']['values']())_0x44c028['markers']['clear']();for(const [_0x3167c7,_0x259294]of this['_markers']){this['_diffRoots']['get'](_0x259294['root']['rootName'])['markers']['set'](_0x3167c7,_0x259294['clone']());}const _0xa58aec=new Map(),_0x56b896=new Map();for(const [_0x101f4d,_0x1cfd80]of this['_diffRoots'])_0xa58aec['set'](_0x101f4d,T(_0x1cfd80)),_0x56b896['set'](_0x101f4d,this['_diffRootsAttributes']['get'](_0x101f4d));this['_saveMetaData'](_0xe3ba45,_0xa58aec,this['_markers'],_0x56b896);}['_getPreviousFrom'](_0x2ef72d){const _0x4de641=Array['from'](this['_savedMetaData']['keys']());_0x4de641['sort']((_0x36dd66,_0x169f58)=>_0x36dd66-_0x169f58),_0x4de641['reverse']();for(const _0x9a5314 of _0x4de641)if(_0x9a5314<_0x2ef72d)return _0x9a5314;return Number['NEGATIVE_INFINITY'];}['_copyMarkers'](_0x2c9176,_0x22157c){const _0x4b80e7=Array['from'](_0x22157c['markers'])['map'](([_0x55835e,_0x4006f9])=>[_0x55835e,this['_fixRange'](_0x4006f9,_0x2c9176)]);_0x2c9176['markers']=new Map(_0x4b80e7);}['_transformMarkers'](_0x30ba1f){for(const _0x19173f of this['_markers']['values']()){const _0x35f9ce=_0x19173f['getTransformedByOperation'](_0x30ba1f),_0xffeca0=vt['_createFromRanges'](_0x35f9ce);_0x19173f['start']=_0xffeca0['start'],_0x19173f['end']=_0xffeca0['end'];}}['_handleOperation'](_0xb68c00,_0x3ec89a){if('addRoot'!=_0xb68c00['type']&&'detachRoot'!=_0xb68c00['type']){if('insert'==_0xb68c00['type']){const _0x4221e4=_0xb68c00['position']['root']['rootName'];this['_diffRoots']['has'](_0x4221e4)||(this['_diffRoots']['set'](_0x4221e4,F(_0x4221e4,!0x0)),this['_diffRootsAttributes']['set'](_0x4221e4,{}),_0x3ec89a&&this['_idsRoots']['set'](_0x4221e4,F(_0x4221e4,!0x0)));}else{if('addRootAttribute'==_0xb68c00['type']||'removeRootAttribute'==_0xb68c00['type']||'changeRootAttribute'==_0xb68c00['type'])return void this['_handleRootAttributeOperation'](_0xb68c00);'marker'==_0xb68c00['type']&&this['_handleMarkerOperation'](_0xb68c00);}if('marker'!==_0xb68c00['type']){const _0x13d7a1=this['_cloneOperation'](_0xb68c00,this['_diffRoots']);_0x13d7a1['_execute'](),this['_transformMarkers'](_0x13d7a1);}if(_0x3ec89a)switch(_0xb68c00['type']){case'insert':this['_handleInsertOperation'](_0xb68c00);break;case'move':case'remove':case'reinsert':this['_handleMoveOperation'](_0xb68c00);break;case'merge':this['_handleMergeOperation'](_0xb68c00);break;case'split':this['_handleSplitOperation'](_0xb68c00);}}else this['_handleRootOperation'](_0xb68c00,_0x3ec89a);}['_cloneOperation'](_0x116b80,_0xb22c18){const _0x67599d=_0x116b80['clone']();return _0x67599d['_authorId']=_0x116b80['_authorId'],this['_fixOperation'](_0x67599d,_0xb22c18),_0x67599d;}['_getBaseVids'](_0x502ac9){return _0x502ac9['map'](_0x2baf89=>{const _0x196ddc=this['_getVidAttributeName'](_0x2baf89);return Number(_0x2baf89['item']['getAttribute'](_0x196ddc));});}['_generateTape'](_0x1cbd05,_0x5cce66){if(_0x1cbd05['is']('element','$text'))_0x5cce66['push']({'item':_0x1cbd05,'type':'text'});else{_0x1cbd05['is']('element')&&_0x5cce66['push']({'item':_0x1cbd05,'type':'elementStart'});for(const _0x4016ff of _0x1cbd05['getChildren']())this['_generateTape'](_0x4016ff,_0x5cce66);_0x1cbd05['is']('element')&&_0x5cce66['push']({'item':_0x1cbd05,'type':'elementEnd'});}return _0x5cce66;}['_getState'](){const _0x2f5c4a=new Map(this['_touched']),_0x5cf4e0=new Map(_0x2f5c4a),_0x54e144=new Map(),_0x3cb033={'insertions':{},'deletions':{}},_0x4014a2={'insertions':{},'deletions':{}},_0x217f1a=new Map(),_0x10416d=new Set([...this['_baseRoots']['keys'](),...this['_diffRoots']['keys']()]);_0x10416d['delete']('$graveyard');for(const _0x531a25 of _0x10416d){const _0x4ef8ab=this['_diffRoots']['get'](_0x531a25)||F(_0x531a25,!0x1),_0x2a1198=this['_baseRoots']['get'](_0x531a25)||F(_0x531a25,!0x1);_0x4ef8ab['isAttached']()||_0x2a1198['isAttached']()?(_0x3cb033['insertions'][_0x531a25]=T(_0x4ef8ab),_0x3cb033['deletions'][_0x531a25]=T(_0x2a1198),this['_copyMarkers'](_0x3cb033['deletions'][_0x531a25],_0x2a1198),this['_copyMarkers'](_0x3cb033['insertions'][_0x531a25],_0x4ef8ab),_0x4014a2['insertions'][_0x531a25]=this['_generateTape'](this['_idsRoots']['get'](_0x531a25),[]),_0x4014a2['deletions'][_0x531a25]=this['_generateTape'](this['_baseIdsRoots']['get'](_0x531a25)||F(_0x531a25,!0x1),[])):_0x10416d['delete'](_0x531a25);}for(const _0xce50da of _0x10416d){const _0x8d0b10=_0x4014a2['insertions'][_0xce50da];for(const _0x2a852b of _0x8d0b10){const _0x435fc0=this['_getVidAttributeName'](_0x2a852b),_0x2ab369=_0x2a852b['item']['getAttribute'](_0x435fc0);_0x5cf4e0['delete'](_0x2ab369),_0x2ab369>=this['_startingRevisionId']&&_0x54e144['set'](_0x2ab369,_0x2f5c4a['get'](_0x2ab369));}}for(const _0x2eb7c8 of _0x10416d){const _0x47bf12=_0x4014a2['insertions'][_0x2eb7c8],_0x21ac3d=this['_getBaseVids'](_0x4014a2['deletions'][_0x2eb7c8]);let _0x519d0f=0x0;for(const _0x463cbc of _0x47bf12){const _0x98b382=this['_getVidAttributeName'](_0x463cbc),_0x5d9350=_0x463cbc['item']['getAttribute'](_0x98b382);if(!_0x54e144['has'](_0x5d9350)&&!_0x217f1a['has'](_0x5d9350)){if(_0x5cf4e0['has'](_0x5d9350))_0x519d0f++;else{if(_0x5d9350!=_0x21ac3d[_0x519d0f]){const _0x53b2bb=_0x2f5c4a['get'](_0x5d9350)||_0x2f5c4a['get'](_0x21ac3d[_0x519d0f]);for(;_0x5d9350!=_0x21ac3d[_0x519d0f];)_0x5cf4e0['has'](_0x21ac3d[_0x519d0f])||(_0x217f1a['set'](_0x21ac3d[_0x519d0f],_0x53b2bb),_0x2f5c4a['set'](_0x21ac3d[_0x519d0f],_0x53b2bb)),_0x519d0f++;}_0x519d0f++;}}}}for(const _0x55134f of _0x10416d){const _0x104f54=_0x4014a2['insertions'][_0x55134f];for(const _0x49e1bf of _0x104f54){const _0x4f7db6=this['_getVidAttributeName'](_0x49e1bf),_0x213bb5=_0x49e1bf['item']['getAttribute'](_0x4f7db6);if(_0x217f1a['has'](_0x213bb5)){const _0x2cc183=_0x217f1a['get'](_0x213bb5);_0x5cf4e0['has'](_0x213bb5)||_0x5cf4e0['set'](_0x213bb5,{..._0x2cc183}),_0x54e144['set'](_0x213bb5,{..._0x2cc183});}}}for(const _0xf19864 of _0x5cf4e0['keys']())_0xf19864>=this['_startingRevisionId']&&_0x5cf4e0['delete'](_0xf19864);const _0x3fb100=new Map();for(const _0x5e1061 of _0x10416d){let _0x1387a8=_0x4014a2['insertions'][_0x5e1061];for(const _0x347c3a of _0x1387a8)if(_0x347c3a['item']['is']('element','tableCell')){const _0x3ebb94=this['_getVidAttributeName'](_0x347c3a),_0x512f7b=_0x347c3a['item']['getAttribute'](_0x3ebb94);if(_0x54e144['has'](_0x512f7b)){const _0x51ea27=_0x347c3a['item']['parent']['parent']['getAttribute']('vid_start'),_0x55665a=_0x3fb100['get'](_0x51ea27)||new Set();_0x55665a['add'](_0x54e144['get'](_0x512f7b)['userId']),_0x3fb100['set'](_0x51ea27,_0x55665a);}}_0x1387a8=_0x4014a2['deletions'][_0x5e1061];for(const _0x4a3bca of _0x1387a8)if(_0x4a3bca['item']['is']('element','tableCell')){const _0x510f58=this['_getVidAttributeName'](_0x4a3bca),_0x2b0d6a=_0x4a3bca['item']['getAttribute'](_0x510f58);if(_0x5cf4e0['has'](_0x2b0d6a)){const _0x2e86be=_0x4a3bca['item']['parent']['parent']['getAttribute']('vid_start'),_0x5e3d62=_0x3fb100['get'](_0x2e86be)||new Set();_0x5e3d62['add'](_0x5cf4e0['get'](_0x2b0d6a)['userId']),_0x3fb100['set'](_0x2e86be,_0x5e3d62);}}for(const _0x6a6f9e of _0x3fb100['keys']())(_0x54e144['has'](_0x6a6f9e)||_0x5cf4e0['has'](_0x6a6f9e))&&_0x3fb100['delete'](_0x6a6f9e);}for(const _0x1a33d8 of _0x10416d){const _0x38d0a8=_0x4014a2['insertions'][_0x1a33d8];let _0x211cbe=null,_0x1882d2=null;for(const _0x5ee357 of _0x38d0a8){const _0xf170fd=this['_getVidAttributeName'](_0x5ee357),_0x2e523e=_0x5ee357['item']['getAttribute'](_0xf170fd),_0x9c58dc=_0x3fb100['get'](_0x2e523e);_0x9c58dc&&'elementStart'==_0x5ee357['type']&&(_0x211cbe=Array['from'](_0x9c58dc)[0x0],_0x1882d2=_0x5ee357['item']['getAttribute']('vid_end')),_0x211cbe&&(_0x5cf4e0['set'](_0x2e523e,{'userId':_0x211cbe}),_0x54e144['set'](_0x2e523e,{'userId':_0x211cbe})),_0x2e523e==_0x1882d2&&(_0x211cbe=null,_0x1882d2=null);}}const _0x137349={},_0x7bfb3f=new Set();for(const _0x36ef6e of _0x10416d){const _0x43bf6b=_0x3cb033['deletions'][_0x36ef6e],_0x3e5cff=_0x3cb033['insertions'][_0x36ef6e];for(const {userId:_0x5b6665}of this['_touchedMarkers']['values']())null!==_0x5b6665&&_0x7bfb3f['add'](_0x5b6665);for(const {userId:_0x4aab53}of this['_touchedRoots']['values']())null!==_0x4aab53&&_0x7bfb3f['add'](_0x4aab53);this['_markChanges'](_0x3e5cff,_0x4014a2['insertions'][_0x36ef6e],_0x54e144,'insertion',_0x7bfb3f),this['_markChanges'](_0x43bf6b,_0x4014a2['deletions'][_0x36ef6e],_0x5cf4e0,'deletion',_0x7bfb3f),_0x137349[_0x36ef6e]={'insertions':this['_prepareViewToSave'](_0x3e5cff),'deletions':this['_prepareViewToSave'](_0x43bf6b),'attachChange':this['_touchedRoots']['get'](_0x36ef6e)||null,'attributesBefore':_0xf117d4(this['_baseRootsAttributes']['get'](_0x36ef6e))||{},'attributesAfter':_0xf117d4(this['_diffRootsAttributes']['get'](_0x36ef6e))};}return{'diffData':_0x137349,'authorsIds':Array['from'](_0x7bfb3f)};}['_processRootBeforeSave'](_0x186636){for(const [,_0x17f1d3]of _0x186636['markers']){const _0x3e851c=_0x17f1d3['start']['getAncestors']()['filter'](_0x317b3c=>'tableCell'==_0x317b3c['name']);for(const _0x2632bc of _0x3e851c)0x1==_0x2632bc['childCount']&&_0x2632bc['getChild'](0x0)['is']('element','paragraph')&&_0x2632bc['getChild'](0x0)['_setAttribute']('keepParagraph',!0x0);}}['_prepareViewToSave'](_0x558e61){this['_processRootBeforeSave'](_0x558e61);const _0x2be7d7=this['editor']['data']['toView'](_0x558e61,{}),_0x3c3edc=Array['from'](_0x2be7d7['getChildren']())['map'](_0x50beed=>this['_getViewJson'](_0x50beed));return JSON['stringify'](_0x3c3edc);}['_getViewJson'](_0x5d6a89){if(_0x5d6a89['is']('$text'))return _0x5d6a89['data'];{const _0x20c901=_0x5d6a89;return{'type':Object['keys'](P)['find'](_0x17ab1a=>_0x5d6a89 instanceof P[_0x17ab1a]),'name':_0x20c901['name'],'attributes':Array['from'](_0x20c901['getAttributes']()),'children':Array['from'](_0x20c901['getChildren']())['map'](_0x5d7be0=>this['_getViewJson'](_0x5d7be0))};}}['_markChanges'](_0x4110c4,_0x3954f5,_0x5ee15b,_0x426b54,_0x905917){let _0x516f0c=null,_0x34db58=null,_0x129acf=0x0;const _0x2fce2e=this['editor']['model'];for(let _0xfd7336=0x0;_0xfd7336<_0x3954f5['length'];_0xfd7336++){const _0xaafe8a=this['_getVidAttributeName'](_0x3954f5[_0xfd7336]),_0x1f53f=_0x3954f5[_0xfd7336]['item']['getAttribute'](_0xaafe8a),_0x180f2a=_0x5ee15b['get'](_0x1f53f),_0x17d56b=_0xfd7336==_0x3954f5['length']-0x1;(!_0x516f0c&&_0x180f2a&&(_0x516f0c=_0x180f2a,_0x34db58=_0x3954f5[_0xfd7336]),_0x516f0c&&(!_0x180f2a||_0x180f2a['userId']!=_0x516f0c['userId']))&&(_0x12bb3f(_0x180f2a,B(_0x34db58,_0x4110c4,_0x2fce2e),B(_0x3954f5[_0xfd7336],_0x4110c4,_0x2fce2e)),_0x516f0c=_0x180f2a||null,_0x34db58=_0x180f2a?_0x3954f5[_0xfd7336]:null),_0x516f0c&&_0x17d56b&&_0x12bb3f(_0x180f2a,B(_0x34db58,_0x4110c4,_0x2fce2e),J(_0x3954f5[_0xfd7336],_0x4110c4,_0x2fce2e));}function _0x12bb3f(_0x5b8faa,_0x382cc8,_0x21d066){const _0x53d718=_0x516f0c['userId'],_0x5089b0='revision:'+_0x426b54+':'+_0x53d718+':'+_0x129acf++,_0x28f655=_0x2fce2e['createRange'](_0x382cc8,_0x21d066);_0x4110c4['markers']['set'](_0x5089b0,_0x28f655),null!==_0x53d718&&_0x905917['add'](_0x53d718);}}['_getVidAttributeName'](_0x59284f){switch(_0x59284f['type']){case'elementStart':return'vid_start';case'elementEnd':return'vid_end';default:return'vid';}}['_fixOperation'](_0x35a22d,_0x481d34){_0x35a22d['baseVersion']=null;for(const _0x32d6db in _0x35a22d){const _0x24a5d5=_0x35a22d[_0x32d6db];if(_0x24a5d5 instanceof gt){const _0xf32f1=_0x481d34['get'](_0x24a5d5['root']['rootName']);_0x35a22d[_0x32d6db]=this['_fixPosition'](_0x24a5d5,_0xf32f1);}if(_0x24a5d5 instanceof vt){const _0x343f3e=_0x481d34['get'](_0x24a5d5['root']['rootName']);_0x35a22d[_0x32d6db]=this['_fixRange'](_0x24a5d5,_0x343f3e);}'root'===_0x32d6db&&(_0x35a22d['root']=_0x481d34['get'](_0x35a22d['root']['rootName']));}}['_fixRange'](_0x3babc3,_0x1f23e0){return this['editor']['model']['createRange'](this['_fixPosition'](_0x3babc3['start'],_0x1f23e0),this['_fixPosition'](_0x3babc3['end'],_0x1f23e0));}['_fixPosition'](_0x3750f6,_0x1094bf){return this['editor']['model']['createPositionFromPath'](_0x1094bf,_0x3750f6['path'],_0x3750f6['stickiness']);}['_handleInsertOperation'](_0x2a965f){const _0xa8a03c=this['_idsRoots']['get'](_0x2a965f['position']['root']['rootName']),_0x2c8682=this['_fixPosition'](_0x2a965f['position'],_0xa8a03c),_0x5d8659=null===_0x2a965f['_authorId']?null:_0x2a965f['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x57e3a4=_0x2c8682['parent'],_0x168c3b=this['_revisionId'],_0x123a02=[];for(const _0x174635 of _0x2a965f['nodes'])if(_0x174635['is']('element'))_0x123a02['push'](this['_makeIdsRoot'](_0x174635));else{for(let _0x46335d=0x0;_0x46335d<_0x174635['offsetSize'];_0x46335d++)_0x123a02['push'](new ft('$text',{'vid':this['_revisionId']++}));}const _0x1a0a69=this['_revisionId'];for(let _0x4cb3d4=_0x168c3b;_0x4cb3d4<_0x1a0a69;_0x4cb3d4++)this['_touched']['set'](_0x4cb3d4,{'userId':_0x5d8659});_0x57e3a4['_insertChild'](_0x2c8682['offset'],_0x123a02);}['_handleMoveOperation'](_0x4df1c7){(_0x4df1c7=this['_cloneOperation'](_0x4df1c7,this['_idsRoots']))['_execute']();const _0xd7ef73=null===_0x4df1c7['_authorId']?null:_0x4df1c7['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x2224db=_0x4df1c7['getMovedRangeStart'](),_0x1ff783=_0x2224db['parent'],_0x56f871=_0x2224db['offset'];!function _0x11723d(_0x49c70b,_0x5bc5fb,_0x2390f5,_0x5d3ea5){for(let _0x5e87f3=_0x2390f5;_0x5e87f3<_0x5d3ea5;_0x5e87f3++){const _0x1a1c8e=_0x5bc5fb['getChild'](_0x5e87f3);_0x1a1c8e['is']('element','$text')?_0x49c70b['set'](_0x1a1c8e['getAttribute']('vid'),{'userId':_0xd7ef73}):(_0x49c70b['set'](_0x1a1c8e['getAttribute']('vid_start'),{'userId':_0xd7ef73}),_0x11723d(_0x49c70b,_0x1a1c8e,0x0,_0x1a1c8e['childCount']),_0x49c70b['set'](_0x1a1c8e['getAttribute']('vid_end'),{'userId':_0xd7ef73}));}}(this['_touched'],_0x1ff783,_0x56f871,_0x56f871+_0x4df1c7['howMany']);}['_handleMergeOperation'](_0x4ee501){const _0xb9a58a=null===(_0x4ee501=this['_cloneOperation'](_0x4ee501,this['_idsRoots']))['_authorId']?null:_0x4ee501['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x490819=_0x4ee501['targetPosition']['parent'],_0x5ca6a7=_0x4ee501['sourcePosition']['parent'],_0x5dec5c=_0x490819['getAttribute']('vid_end'),_0x1c916f=_0x5ca6a7['getAttribute']('vid_start');_0x490819['_setAttribute']('vid_end',_0x5ca6a7['getAttribute']('vid_end')),_0x5ca6a7['_setAttribute']('vid_end',_0x5dec5c),this['_touched']['set'](_0x1c916f,{'userId':_0xb9a58a}),this['_touched']['set'](_0x5dec5c,{'userId':_0xb9a58a}),_0x4ee501['_execute']();}['_handleSplitOperation'](_0x3c4a8d){const _0x33c800=null===(_0x3c4a8d=this['_cloneOperation'](_0x3c4a8d,this['_idsRoots']))['_authorId']?null:_0x3c4a8d['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x523396=_0x3c4a8d['graveyardPosition'],_0x138736=_0x3c4a8d['splitPosition']['parent'];_0x3c4a8d['_execute']();const _0x3f6308=_0x138736['getAttribute']('vid_end'),_0x32801e=_0x3c4a8d['insertionPosition']['nodeAfter'];if(_0x523396){const _0x599d77=_0x32801e['getAttribute']('vid_end'),_0x5d6549=_0x138736['getAttribute']('vid_end');_0x138736['_setAttribute']('vid_end',_0x599d77),_0x32801e['_setAttribute']('vid_end',_0x5d6549),this['_touched']['set'](_0x138736['getAttribute']('vid_end'),{'userId':_0x33c800}),this['_touched']['set'](_0x32801e['getAttribute']('vid_start'),{'userId':_0x33c800});}else{const _0x2ad05f=this['_revisionId']++,_0x18a4a5=this['_revisionId']++;_0x138736['_setAttribute']('vid_end',_0x2ad05f),_0x32801e['_setAttribute']('vid_start',_0x18a4a5),_0x32801e['_setAttribute']('vid_end',_0x3f6308),this['_touched']['set'](_0x2ad05f,{'userId':_0x33c800}),this['_touched']['set'](_0x18a4a5,{'userId':_0x33c800});}}['_handleMarkerOperation'](_0x3f7478){if(!_0x3f7478['affectsData'])return;const _0x4bef93=(_0x3f7478=this['_cloneOperation'](_0x3f7478,this['_diffRoots']))['oldRange']?_0x3f7478['oldRange']['root']:null,_0x4f1637=_0x3f7478['newRange']?_0x3f7478['newRange']['root']:null;_0x4bef93&&this['_markers']['delete'](_0x3f7478['name']),_0x4f1637&&this['_markers']['set'](_0x3f7478['name'],_0x3f7478['newRange']['clone']());const _0x763697=null===_0x3f7478['_authorId']?null:_0x3f7478['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x4cff13=_0x3f7478['name'];if(!this['_touchedMarkers']['has'](_0x4cff13))return void this['_touchedMarkers']['set'](_0x4cff13,{'range':_0x3f7478['oldRange'],'userId':_0x763697});const _0x1018f2=this['_touchedMarkers']['get'](_0x4cff13),_0x32f4c7=_0x1018f2['range'],_0x3a08f9=_0x3f7478['newRange'];null==_0x32f4c7&&null==_0x3a08f9||_0x32f4c7&&_0x3a08f9&&_0x32f4c7['isEqual'](_0x3a08f9)?this['_touchedMarkers']['delete'](_0x3f7478['name']):_0x1018f2['userId']=_0x763697;}['_handleRootOperation'](_0x3c288b,_0x4d2374){this['_diffRoots']['has'](_0x3c288b['rootName'])?this['_diffRoots']['get'](_0x3c288b['rootName'])['_isAttached']=_0x3c288b['isAdd']:(this['_diffRoots']['set'](_0x3c288b['rootName'],F(_0x3c288b['rootName'],!0x0)),this['_diffRootsAttributes']['set'](_0x3c288b['rootName'],{}),_0x4d2374&&this['_idsRoots']['set'](_0x3c288b['rootName'],F(_0x3c288b['rootName'],!0x0)));const _0x215711=null===_0x3c288b['_authorId']?null:_0x3c288b['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x1a41b5=this['_touchedRoots']['get'](_0x3c288b['rootName']);_0x1a41b5&&_0x1a41b5['userId']===_0x215711?this['_touchedRoots']['delete'](_0x3c288b['rootName']):this['_touchedRoots']['set'](_0x3c288b['rootName'],{'userId':_0x215711,'isAttached':_0x3c288b['isAdd']});}['_handleRootAttributeOperation'](_0x55af01){const _0x59512d=this['_diffRootsAttributes']['get'](_0x55af01['root']['rootName']);null===_0x55af01['newValue']?delete _0x59512d[_0x55af01['key']]:_0x59512d[_0x55af01['key']]=_0x55af01['newValue'];}}function T(_0x23b03e){const _0x39f6bc=F(_0x23b03e['rootName'],_0x23b03e['isAttached']());for(const _0x23ac21 of _0x23b03e['getChildren']()){const _0x1f7ff9=_0x23ac21['_clone'](!0x0);_0x39f6bc['_appendChild'](_0x1f7ff9);}return _0x39f6bc;}function F(_0xaf229,_0x3151d1=!0x0){const _0x2df401=new mt();return _0x2df401['rootName']=_0xaf229,_0x2df401['_isAttached']=_0x3151d1,_0x2df401['isAttached']=()=>_0x2df401['_isAttached'],_0x2df401;}function B(_0x46e31e,_0x277328,_0x40a1ba){const _0x4c4fae='elementEnd'==_0x46e31e['type']?_0x40a1ba['createPositionAt'](_0x46e31e['item'],'end'):_0x40a1ba['createPositionBefore'](_0x46e31e['item']);return _0x40a1ba['createPositionFromPath'](_0x277328,_0x4c4fae['path'],_0x4c4fae['stickiness']);}function J(_0x459e51,_0x4f7d39,_0x468714){const _0x4b65ba='elementStart'==_0x459e51['type']?_0x468714['createPositionAt'](_0x459e51['item'],0x0):_0x468714['createPositionAfter'](_0x459e51['item']);return _0x468714['createPositionFromPath'](_0x4f7d39,_0x4b65ba['path'],_0x4b65ba['stickiness']);}class ns extends _0x16162e{['focusTracker'];['keystrokes'];['revisionNameInputView'];constructor(_0x230e7c,_0x2b76db){super(_0x230e7c),this['focusTracker']=new _0x32c628(),this['keystrokes']=new _0x29befb(),this['set']('revisionNameInputValue',''),this['revisionNameInputView']=this['_createRevisionNameInput'](_0x2b76db),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'](),_0x4f1d3f({'view':this}),this['focusTracker']['add'](this['revisionNameInputView']['element']),this['keystrokes']['listenTo'](this['element']);const _0x4bc9fe=_0x437908=>_0x437908['stopPropagation']();this['keystrokes']['set']('arrowright',_0x4bc9fe),this['keystrokes']['set']('arrowleft',_0x4bc9fe),this['keystrokes']['set']('arrowup',_0x4bc9fe),this['keystrokes']['set']('arrowdown',_0x4bc9fe);}['focus'](){this['revisionNameInputView']['focus']();}get['revisionName'](){return this['revisionNameInputView']['fieldView']['element']['value']['trim']();}set['revisionName'](_0x5a88cd){this['revisionNameInputView']['fieldView']['element']['value']=_0x5a88cd['trim']();}['reset'](){this['revisionNameInputView']['fieldView']['element']['value']='',this['revisionNameInputView']['errorText']=null;}['_createRevisionNameInput'](_0x4756df){const _0x4453f8=new nt(this['locale'],_0x194c4c),_0xad2a81=_0x4453f8['fieldView'];_0xad2a81['extendTemplate']({'attributes':{'maxlength':'220'}});let _0x4feec1=m(this['locale'],'Name\x20of\x20the\x20revision');return!_0x4756df&&(_0x4feec1+='\x20('+m(this['locale'],'optional')+')'),(_0x4453f8['label']=_0x4feec1,_0xad2a81['on']('input',()=>{this['revisionNameInputValue']=_0xad2a81['element']['value']['trim']();}),_0x4453f8);}}class u extends _0x21f9a0{static get['pluginName'](){return'RevisionHistoryUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[l];}['_saveRevisionFormView'];['init'](){const _0x770192=this['editor'],_0x1d144f=_0x770192['plugins']['get']('RevisionTracker');_0x770192['ui']['componentFactory']['add']('revisionHistory',_0x655e8e=>{const _0x2fbbf7=_0x18051a(_0x655e8e),_0x60a9b=_0x2fbbf7['panelView']['children'],_0x19fa7d=new te(_0x655e8e),_0x34ed5e=new _0x3cf401(_0x655e8e),_0x667f6b=new _0x280a4e(_0x655e8e),_0x36cf8b=new _0x3cf401(_0x655e8e),_0xb088cd=new _0x280a4e(_0x655e8e);return _0x2fbbf7['bind']('isEnabled')['to'](_0x1d144f,'isReady',_0x1d144f,'isEnabled',_0x770192,'isReadOnly',(_0x1f656a,_0x18cdf5,_0x4a3236)=>_0x1f656a&&_0x18cdf5&&!_0x4a3236),_0x2fbbf7['buttonView']['set']({'icon':_0x7e0d0d['history'],'label':m(_0x655e8e,'Revision\x20history'),'tooltip':!0x0}),_0x667f6b['set']({'label':m(_0x655e8e,'Save\x20current\x20revision'),'withText':!0x0,'role':'menuitem'}),_0x667f6b['bind']('isEnabled')['to'](_0x1d144f,'isReady',_0x1d144f,'isEnabled',_0x770192,'isReadOnly',(_0x1a00d7,_0x140252,_0x4697a9)=>_0x1a00d7&&_0x140252&&!_0x4697a9),_0x667f6b['on']('execute',()=>this['_showDialog']()),_0xb088cd['set']({'label':m(_0x655e8e,'Open\x20revision\x20history'),'withText':!0x0,'role':'menuitem'}),_0xb088cd['bind']('isEnabled')['to'](_0x1d144f,'isReady',_0x770192,'isReadOnly',(_0x1b2174,_0x6ecc45)=>_0x1b2174&&!_0x6ecc45),_0xb088cd['on']('execute',()=>{_0x770192['config']['get']('revisionHistory')['showRevisionViewerCallback'](),_0x2fbbf7['isOpen']=!0x1,_0x770192['editing']['view']['focus']();}),_0x34ed5e['children']['add'](_0x667f6b),_0x36cf8b['children']['add'](_0xb088cd),_0x19fa7d['role']='menu',_0x19fa7d['items']['addMany']([_0x34ed5e,_0x36cf8b]),_0x60a9b['add'](_0x19fa7d),_0x2fbbf7;}),_0x770192['ui']['componentFactory']['add']('menuBar:revisionHistory',()=>this['_registerMenuComponent']());}['_registerMenuComponent'](){const _0x40fc84=this['editor'],_0x170b52=_0x40fc84['locale'],_0x372b33=new _0x1ae8fc(_0x170b52),_0x19c6db=new _0x1e1704(_0x170b52);_0x372b33['buttonView']['set']({'icon':_0x7e0d0d['history'],'label':m(_0x170b52,'Revision\x20history')});const _0x44a44a=new _0xe81ca7(_0x170b52,_0x372b33),_0x133701=new _0x3601a1(_0x170b52);_0x133701['set']({'label':m(_0x170b52,'Save\x20current\x20revision')}),_0x133701['delegate']('execute')['to'](_0x372b33),_0x133701['on']('execute',()=>{this['_showDialog']();}),_0x44a44a['children']['add'](_0x133701),_0x19c6db['items']['add'](_0x44a44a);const _0x38bfd6=new _0xe81ca7(_0x170b52,_0x372b33),_0xbec84d=new _0x3601a1(_0x170b52);return _0xbec84d['set']({'label':m(_0x170b52,'Open\x20revision\x20history')}),_0xbec84d['delegate']('execute')['to'](_0x372b33),_0xbec84d['on']('execute',()=>{_0x40fc84['config']['get']('revisionHistory')['showRevisionViewerCallback']();}),_0x38bfd6['children']['add'](_0xbec84d),_0x19c6db['items']['add'](_0x38bfd6),_0x372b33['panelView']['children']['add'](_0x19c6db),_0x372b33;}['_showDialog'](){const _0xaf8ee5=this['editor'],_0x583ff9=_0xaf8ee5['locale'],_0x4b479e=_0xaf8ee5['plugins']['get']('Dialog'),_0x218357=_0xaf8ee5['plugins']['get']('RevisionTracker');function _0xa43ff8(_0x48a92d){_0xaf8ee5['config']['get']('revisionHistory.requireRevisionName')&&''===_0x48a92d['revisionName']?_0x48a92d['revisionNameInputView']['errorText']=m(_0x583ff9,'The\x20revision\x20name\x20cannot\x20be\x20empty.'):(_0xaf8ee5['plugins']['get'](l)['saveRevision']({'name':_0x48a92d['revisionName']}),_0x4b479e['hide']());}this['_saveRevisionFormView']||(this['_createSaveRevisionFormView'](),this['_saveRevisionFormView']['on']('submit',()=>_0xa43ff8(this['_saveRevisionFormView']))),this['_saveRevisionFormView']['reset'](),_0x4b479e['show']({'id':'revisionSave','title':m(_0x583ff9,'Save\x20current\x20revision'),'isModal':!0x0,'content':this['_saveRevisionFormView'],'actionButtons':[{'label':m(_0xaf8ee5['locale'],'Cancel'),'withText':!0x0,'onExecute':()=>_0x4b479e['hide']()},{'label':m(_0xaf8ee5['locale'],'Accept'),'class':'ck-button-action','withText':!0x0,'onCreate'(_0x4afa61){_0x4afa61['bind']('isEnabled')['to'](_0x218357,'isReady',_0x218357,'isEnabled',_0xaf8ee5,'isReadOnly',(_0x197a97,_0x4bab92,_0x551c25)=>_0x197a97&&_0x4bab92&&!_0x551c25);},'onExecute':()=>_0xa43ff8(this['_saveRevisionFormView'])}]});}['_createSaveRevisionFormView'](){const _0x473683=this['editor'],_0xfd06bd=_0x473683['locale'];this['_saveRevisionFormView']=new ns(_0xfd06bd,_0x473683['config']['get']('revisionHistory.requireRevisionName')),this['_saveRevisionFormView']['render']();}}class X extends _0x16162e{['changeId'];['_model'];constructor(_0x5c14c4,_0x2aba45){super(_0x5c14c4),this['_model']=_0x2aba45,this['changeId']=_0x2aba45['id'];const _0x170960=this['bindTemplate'],_0x9cb4f4=m(_0x5c14c4,_0x2aba45['data']['isSuggestion']?'Suggested\x20by':'add'==_0x2aba45['type']?'Added\x20by':'Removed\x20by');this['set']('type',_0x2aba45['type']),this['setTemplate']({'tag':'div','attributes':{'class':['ck-annotation','ck-revision-change',_0x170960['to']('type',_0x522ca4=>'ck-revision-change__'+_0x522ca4)],'tabindex':-0x1},'children':[{'tag':'span','children':[{'tag':'span','attributes':{'class':['ck-revision-change__label']},'children':[{'text':_0x9cb4f4}]},{'text':'\x20'+_0x2aba45['author']['name']}]}]});}['focus'](){this['element']['focus']();}}class r extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0x11050d(){['id'];['author'];['type'];['data'];['rootName'];constructor(_0x5d9564){super(),this['id']=_0x5d9564['id']||_0x2afce3(),this['author']=_0x5d9564['author'],this['type']=_0x5d9564['type'],this['data']=_0x5d9564['data']||{},this['rootName']=_0x5d9564['rootName'],this['set']('createdAt',_0x5d9564['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(_0x41a40f,_0x275f1a){this['newRevisionId']=_0x41a40f,this['oldRevisionId']=_0x275f1a,this['changes']=new _0x4043e7();}['_setChanges'](_0x4f3118){for(const _0x50c1ad of _0x4f3118)this['changes']['add'](_0x50c1ad);}}const Y={'c':_0x40e8e0,'a':_0x2d478c,'e':_0x2e2901,'r':_0x4126a5,'u':_0x3c991b};class d extends _0x21f9a0{['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[_0x36bdfa,_0x24fa0b,j];}constructor(_0x338ad6){super(_0x338ad6),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',(_0x348a20,_0x3a36a4,_0x4827e4)=>{this['activeChange']=null,this['activeView']=null,this['editor']['editing']['view']['change'](_0x22dd88=>{for(const _0x4cfde9 of this['editor']['editing']['view']['document']['roots'])_0x4827e4?_0x22dd88['removeClass']('ck-editor__editable__overlay',_0x4cfde9):_0x22dd88['addClass']('ck-editor__editable__overlay',_0x4cfde9);});}),this['bind']('isNavigationMode')['to'](this,'activeChange',_0x6a624e=>null!==_0x6a624e),this['bind']('currentChangeNumber')['to'](this,'isReady',this,'diff',this,'activeChange',(_0x55aa3d,_0x2deb24,_0x2fcfc2)=>_0x55aa3d&&_0x2fcfc2?_0x2deb24['changes']['getIndex'](_0x2fcfc2):0x0),this['bind']('numberOfChanges')['to'](this,'isReady',this,'diff',(_0x360d01,_0x57a60f)=>_0x360d01?_0x57a60f['changes']['length']:0x0),this['_changeView']=null,this['_changeIdToChange']=new Map(),this['adapter']=null,this['_balloon']=this['editor']['plugins']['get'](_0x24fa0b);}['init'](){const _0x343aaf=this['editor'],_0x20b9d2=new yt(_0x343aaf,{'direction':'backward'}),_0x29407c=new yt(_0x343aaf,{'direction':'forward'});(_0x343aaf['commands']['add']('showPreviousChange',_0x20b9d2),_0x343aaf['commands']['add']('showNextChange',_0x29407c),_0x343aaf['commands']['add']('restoreRevision',new _t(_0x343aaf)),this['on']('change:numberOfChanges',()=>{_0x20b9d2['refresh'](),_0x29407c['refresh']();}),this['_setConversion'](),this['_initInteractions'](),_0x343aaf['enableReadOnlyMode']('revision-viewer'),_0x343aaf['plugins']['has']('WidgetToolbarRepository'))&&_0x343aaf['plugins']['get']('WidgetToolbarRepository')['forceDisabled']('revision-viewer');}async['getRevisionData'](_0x39033b){await this['loadRevisionData'](_0x39033b);const _0x2d4f98={};for(const _0x319b74 in _0x39033b['diffData']){if(_0x39033b['diffData'][_0x319b74]['attachChange']&&!_0x39033b['diffData'][_0x319b74]['attachChange']['isAttached'])continue;const _0x13c4f2=this['_removeRevisionMarkers'](JSON['parse'](_0x39033b['diffData'][_0x319b74]['insertions'])),_0x530d51=this['editor']['editing']['view']['document'],_0x417031=new _0x35a7c1(_0x530d51,_0x13c4f2['map'](_0x439b06=>this['_getViewObj'](_0x439b06)));this['editor']['data']['processor']['useFillerType']('marked'),_0x2d4f98[_0x319b74]=this['editor']['data']['processor']['toData'](_0x417031),this['editor']['data']['processor']['useFillerType']('default');}return _0x2d4f98;}async['getRevisionRootsAttributes'](_0x33d9e2){await this['loadRevisionData'](_0x33d9e2);const _0x3900ff={};for(const _0x15024f in _0x33d9e2['diffData'])_0x33d9e2['diffData'][_0x15024f]['attachChange']&&!_0x33d9e2['diffData'][_0x15024f]['attachChange']['isAttached']||(_0x3900ff[_0x15024f]=_0x33d9e2['diffData'][_0x15024f]['attributesAfter']||{});return _0x3900ff;}['_removeRevisionMarkers'](_0x57258a){return(_0x57258a=_0x57258a['filter'](_0x46cd2c=>!_0x46cd2c['name']||'revision-start'!==_0x46cd2c['name']&&'revision-end'!==_0x46cd2c['name']))['forEach'](_0x354b31=>{'string'!=typeof _0x354b31&&(_0x354b31['children']=this['_removeRevisionMarkers'](_0x354b31['children']),_0x354b31['attributes']=_0x354b31['attributes']['filter'](_0xaac6bc=>!_0xaac6bc[0x0]['startsWith']('data-revision-')));}),_0x57258a;}async['compare'](_0x364ea9,_0xc2d106,_0x514382=!0x1){if(!this['isEnabled'])return;const _0x56ff67=this['diff'],_0x2f4c13=this['repository'],_0x5658ad='string'==typeof _0x364ea9?_0x2f4c13['getRevision'](_0x364ea9):_0x364ea9,_0x189532='string'==typeof _0xc2d106?_0x2f4c13['getRevision'](_0xc2d106):_0xc2d106,_0x4ea062=_0x5658ad['id'],_0x2a1de0=_0x189532?_0x189532['id']:null;if(!_0x514382&&this['diff']&&this['diff']['newRevisionId']===_0x4ea062&&this['diff']['oldRevisionId']===_0x2a1de0)return Promise['resolve']();this['isReady']=!0x1,this['activeView']=null,this['activeChange']=null,this['diff']=new f(_0x4ea062,_0x2a1de0);const _0x353b98=this['_getRevisionsRange'](_0x5658ad,_0x189532,!0x0)['map'](_0x18380b=>this['loadRevisionData'](_0x18380b));return _0x353b98['push'](new Promise(_0x51238a=>{setTimeout(_0x51238a,0x14);})),Promise['all'](_0x353b98)['then'](()=>{if(!this['isEnabled'])return;this['_cleanUp']();const _0x1c2802=this['_getDiff'](_0x4ea062,_0x2a1de0);for(const _0x1ddc8e of _0x1c2802['changes'])this['_changeIdToChange']['set'](_0x1ddc8e['id'],_0x1ddc8e);this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x5f39ae=>{for(const _0x4cf2d0 of this['editor']['model']['document']['getRootNames']())_0x5f39ae['detachRoot'](_0x4cf2d0);for(const _0x22e8a3 of Object['keys'](_0x1c2802['model'])){const _0x3d658b=_0x5f39ae['addRoot'](_0x22e8a3);for(const _0x317b5a of Object['keys'](_0x1c2802['attributes'][_0x22e8a3]))_0x5f39ae['setAttribute'](_0x317b5a,_0x1c2802['attributes'][_0x22e8a3][_0x317b5a],_0x3d658b);_0x5f39ae['insert'](_0x1c2802['model'][_0x22e8a3],_0x3d658b,0x0);}}),this['diff']['_setChanges'](this['_sortAndFilterDiffChanges'](_0x1c2802['changes'])),this['isReady']=!0x0;})['catch'](_0x24c306=>{console['error'](_0x24c306),this['_cleanUp'](),_0x56ff67&&(this['diff']=_0x56ff67),this['isReady']=!0x0;});}['addRevisionData'](_0x114df4,_0x4e670d){const _0x102c78=this['repository']['createRevision'](_0x114df4);return _0x102c78['on']('_update',(_0x439da2,_0x699ac1,_0x31cc2b)=>_0x4e670d(_0x699ac1,_0x31cc2b,_0x102c78)),this['repository']['addRevision'](_0x102c78),_0x102c78;}['loadRevisionData'](_0x9aa3dc){if(!_0x9aa3dc||_0x9aa3dc['diffData'])return Promise['resolve']();{const _0x52c182=this['editor']['config']['get']('collaboration.channelId');return this['adapter']['getRevision']({'channelId':_0x52c182,'revisionId':_0x9aa3dc['id']})['then'](_0xa39ee=>{_0x9aa3dc['_update']({'diffData':_0xa39ee['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},_0x3c5ddb=>{for(const _0x149fef of this['editor']['model']['document']['getRootNames']())_0x3c5ddb['detachRoot'](_0x149fef);});}['_sortAndFilterDiffChanges'](_0x2b1d9b){const _0x34dbbd=[],_0x4e78a9=new Map();for(const _0x3e21b8 of this['editor']['model']['document']['getRootNames']()){const _0x42d7c5=this['editor']['editing']['view']['getDomRoot'](_0x3e21b8);if(!_0x42d7c5)continue;const _0xd82334=_0x42d7c5['getClientRects']()['item'](0x0);_0xd82334&&(_0x34dbbd['push'](_0x3e21b8),_0x4e78a9['set'](_0x3e21b8,_0xd82334));}return _0x34dbbd['sort']((_0x237300,_0x3ae4dd)=>{const _0x1c3e92=_0x4e78a9['get'](_0x237300),_0x3df89f=_0x4e78a9['get'](_0x3ae4dd);return _0x1c3e92['y']-_0x3df89f['y']||_0x1c3e92['x']-_0x3df89f['x'];}),(_0x2b1d9b=_0x2b1d9b['filter'](_0x19d8bd=>_0x34dbbd['includes'](_0x19d8bd['rootName'])))['sort']((_0x4940b2,_0x31bd76)=>_0x34dbbd['indexOf'](_0x4940b2['rootName'])-_0x34dbbd['indexOf'](_0x31bd76['rootName'])),_0x2b1d9b;}['_makeTape'](_0x551fd2){const _0x510874=Array['from'](_0x551fd2['markers'])['filter'](([_0x1677c9,_0x35de24])=>_0x1677c9['startsWith']('revision:')&&!_0x35de24['isCollapsed']),_0xd3d7ad=Array['from'](this['editor']['model']['createRangeIn'](_0x551fd2)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0x510874['length'])for(const _0x4bb108 of _0xd3d7ad){const [_0x2fd3cc,_0x17e944]=_0x510874[0x0],[,_0x13ebae,_0x1058fd]=_0x2fd3cc['split'](':');if(_0x17e944['end']['isEqual'](_0x4bb108['nextPosition'])&&_0x510874['shift'](),(_0x4bb108['previousPosition']['isEqual'](_0x17e944['start'])||_0x4bb108['previousPosition']['isAfter'](_0x17e944['start']))&&('insertion'==_0x13ebae?_0x4bb108['isAdded']={'userId':_0x1058fd}:'deletion'==_0x13ebae&&(_0x4bb108['isRemoved']={'userId':_0x1058fd})),0x0==_0x510874['length'])break;}return _0xd3d7ad;}['_refreshStartEndIndex'](_0x367393){const _0x516e27=new Map();for(let _0x2618fb=0x0;_0x2618fb<_0x367393['length'];_0x2618fb++)'text'===_0x367393[_0x2618fb]['type']?(_0x367393[_0x2618fb]['item']['startIndex']=_0x2618fb,_0x367393[_0x2618fb]['item']['endIndex']=_0x2618fb):('elementStart'===_0x367393[_0x2618fb]['type']?_0x367393[_0x2618fb]['item']['startIndex']=_0x2618fb:'elementEnd'===_0x367393[_0x2618fb]['type']&&(_0x367393[_0x2618fb]['item']['endIndex']=_0x2618fb),_0x516e27['set'](_0x367393[_0x2618fb]['id'],_0x2618fb));for(const _0x2d9b1c of _0x516e27['values']())'elementStart'===_0x367393[_0x2d9b1c]['type']?_0x367393[_0x2d9b1c]['item']['endIndex']=_0x516e27['get'](_0x367393[_0x2d9b1c]['pairId']):'elementEnd'===_0x367393[_0x2d9b1c]['type']&&(_0x367393[_0x2d9b1c]['item']['startIndex']=_0x516e27['get'](_0x367393[_0x2d9b1c]['pairId']));}['_processTape'](_0x1ce754){for(let _0x4dedc8=0x0;_0x4dedc8<_0x1ce754['length'];_0x4dedc8++){if('elementStart'===_0x1ce754[_0x4dedc8]['type'])_0x1ce754[_0x4dedc8]['item']['startIndex']=_0x4dedc8;else{if('elementEnd'===_0x1ce754[_0x4dedc8]['type']){_0x1ce754[_0x4dedc8]['item']['endIndex']=_0x4dedc8;const _0x1e56ce=_0x1ce754[_0x4dedc8]['item']['startIndex'];_0x1ce754[_0x1e56ce]['pairId']=_0x1ce754[_0x4dedc8]['id'],_0x1ce754[_0x4dedc8]['pairId']=_0x1ce754[_0x1e56ce]['id'];}else _0x1ce754[_0x4dedc8]['item']['startIndex']=_0x4dedc8,_0x1ce754[_0x4dedc8]['item']['endIndex']=_0x4dedc8,_0x1ce754[_0x4dedc8]['pairId']=null;}_0x1ce754[_0x4dedc8]['markersStart']||(_0x1ce754[_0x4dedc8]['markersStart']=[],_0x1ce754[_0x4dedc8]['markersEnd']=[]);}}['_markInsertions'](_0x5c7496,_0x328eb8){const _0x4789af=_0x5c7496['filter'](_0x45cd1e=>!_0x45cd1e['isAdded']);for(let _0x1c135d=0x0;_0x1c135d<_0x328eb8['length'];_0x1c135d++)_0x328eb8[_0x1c135d]['isAdded']&&(_0x4789af[_0x1c135d]['isAdded']=_0x328eb8[_0x1c135d]['isAdded']);}['_makeModelFromViewString'](_0x134078){const _0x34b15c=JSON['parse'](_0x134078),_0x3ba9e4=this['editor']['editing']['view']['document'],_0x30c524=new _0x35a7c1(_0x3ba9e4,_0x34b15c['map'](_0x5463ba=>this['_getViewObj'](_0x5463ba)));return this['editor']['data']['toModel'](_0x30c524);}['_getViewObj'](_0x591729){const _0xaf3f4d=this['editor']['editing']['view']['document'];if('string'==typeof _0x591729)return new _0xd0ebb3(_0xaf3f4d,_0x591729);{const _0xd01608=_0x591729['children']['map'](_0x3c8fe4=>this['_getViewObj'](_0x3c8fe4));return new(Y[_0x591729['type']]||_0x1fc26e)(_0xaf3f4d,_0x591729['name'],_0x591729['attributes'],_0xd01608);}}['_getDiff'](_0x5194eb,_0x57acc0=null){const _0x585dd8=this['repository']['getRevision'](_0x5194eb),_0x4aa6ad=_0x57acc0?this['repository']['getRevision'](_0x57acc0):null,_0x244a33=this['_getRevisionsRange'](_0x585dd8,_0x4aa6ad),_0x4781b7=_0x244a33[_0x244a33['length']-0x1],_0xb1b073=new Map(),_0x2c8ad2={'model':{},'attributes':{},'changes':[]},_0x5e9929=new Set(),_0x45fee6=new Map();for(let _0x5c771f=_0x244a33['length']-0x1;_0x5c771f>=0x0;_0x5c771f--){const _0x1b5a03=_0x244a33[_0x5c771f];for(const _0x4122d7 of Object['keys'](_0x1b5a03['diffData']))if(_0x1b5a03['diffData'][_0x4122d7]['attachChange']){const _0x16ce41=_0x1b5a03['diffData'][_0x4122d7]['attachChange'];_0x16ce41['isAttached']?(_0x5e9929['add'](_0x4122d7),_0x45fee6['has'](_0x4122d7)&&_0x45fee6['get'](_0x4122d7)['userId']==_0x16ce41['userId']?_0x45fee6['delete'](_0x4122d7):_0x45fee6['set'](_0x4122d7,_0x16ce41)):_0x45fee6['has'](_0x4122d7)?(_0x5e9929['delete'](_0x4122d7),_0x45fee6['delete'](_0x4122d7)):(_0x5e9929['add'](_0x4122d7),_0x45fee6['set'](_0x4122d7,_0x16ce41));}else _0x5e9929['add'](_0x4122d7);}for(const _0x462f35 of _0x5e9929){const _0x3a31a6=_0x45fee6['has'](_0x462f35)&&!_0x45fee6['get'](_0x462f35)['isAttached'];let _0x11aa8e=_0x3a31a6?_0x244a33['length']-0x1:0x0;const _0x44c4a0=_0x3a31a6?-0x1:0x1;for(;_0x244a33[_0x11aa8e];){const _0x159afe=_0x244a33[_0x11aa8e];if(_0x159afe['diffData'][_0x462f35]){const _0x3749f4=_0x3a31a6?_0x159afe['diffData'][_0x462f35]['attributesBefore']:_0x159afe['diffData'][_0x462f35]['attributesAfter'];_0x2c8ad2['attributes'][_0x462f35]=_0x3749f4?_0xf117d4(_0x3749f4):{};break;}_0x11aa8e+=_0x44c4a0;}}for(const _0x2355cf of _0x244a33){_0x2355cf['model']={};for(const _0x49391a of _0x2355cf['authors'])_0xb1b073['set'](_0x49391a['id'],_0x49391a);for(const _0x51497d of _0x5e9929){const _0x433379=_0x2355cf['diffData'][_0x51497d]?_0x2355cf['diffData'][_0x51497d]['insertions']:'[]',_0x5040b1=_0x2355cf['diffData'][_0x51497d]?_0x2355cf['diffData'][_0x51497d]['deletions']:'[]';_0x2355cf['model'][_0x51497d]={'insertions':this['_makeModelFromViewString'](_0x433379),'deletions':this['_makeModelFromViewString'](_0x5040b1)};}}for(const _0x58f069 of _0x5e9929){let _0x4e984a=null,_0x266715=0x0;const _0x1f1f30=new Map(Array['from'](_0x585dd8['model'][_0x58f069]['insertions']['markers'])['filter'](([_0x506e19])=>!_0x506e19['startsWith']('revision:')));let _0x10222b=0x0;for(const _0x45daf2 of _0x244a33){const _0x6ee7c2=this['_makeTape'](_0x45daf2['model'][_0x58f069]['insertions']);_0x45daf2==_0x585dd8?(_0x4e984a=_0x6ee7c2,_0x266715=_0x4e984a['length'],_0x4e984a['forEach'](_0x3ebf52=>{_0x3ebf52['id']=_0x10222b++;}),this['_processTape'](_0x4e984a)):this['_markInsertions'](_0x4e984a,_0x6ee7c2);const _0x371fae=_0x4e984a['filter'](_0x142871=>!_0x142871['isAdded'])['map'](_0x1a29ef=>_0x1a29ef['id']);let _0x3e06db=0x0;const _0x1b9259=this['_makeTape'](_0x45daf2['model'][_0x58f069]['deletions']);_0x1b9259['forEach'](_0x43ddd0=>{_0x43ddd0['isRemoved']?_0x43ddd0['id']=_0x266715++:_0x43ddd0['id']=_0x371fae[_0x3e06db++];}),this['_processTape'](_0x1b9259),this['_setDistance'](_0x4e984a,'isAdded'),this['_setDistance'](_0x1b9259,'isRemoved'),_0x45daf2==_0x585dd8&&this['_markMarkers'](_0x4e984a,_0x1f1f30),_0x4e984a=this['_joinTapes'](_0x4e984a,_0x1b9259),this['_refreshStartEndIndex'](_0x4e984a),this['_setDistance'](_0x4e984a,'isRemoved');}_0x4e984a=_0x4e984a['filter'](_0x2b1272=>!(_0x2b1272['isAdded']&&_0x2b1272['isRemoved']));const _0x2277b3=new Map(_0x4781b7['model'][_0x58f069]['deletions']['markers']),_0x42a228=new Set(_0x1f1f30['keys']());for(const _0x21662b of _0x2277b3['keys']())_0x42a228['delete'](_0x21662b);this['_markSuggestions'](_0x4e984a,_0x42a228),this['_fixObsoleteTags'](_0x4e984a),_0x4e984a=this['_removeMissingPairs'](_0x4e984a),_0x4e984a=this['_markMismatchedRemovedTags'](_0x4e984a),_0x4e984a=this['_removeUnsupportedChanges'](_0x4e984a);const {root:_0x3926b7,changes:_0x3fa2e5}=this['_makeModelFromTape'](_0x4e984a,_0xb1b073,_0x58f069);_0x2c8ad2['model'][_0x58f069]=_0x3926b7;const _0x5d96d6=_0x45fee6['get'](_0x58f069);if(_0x5d96d6){const _0x8cfdf=_0xb1b073['get'](_0x5d96d6['userId']),_0x4ed38d=new r({'author':_0x8cfdf,'type':_0x5d96d6['isAttached']?'add':'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x58f069});_0x3fa2e5['unshift'](_0x4ed38d),_0x2c8ad2['attributes'][_0x58f069]['revisionHistoryAttachChange']=_0x4ed38d['id'];}_0x2c8ad2['changes']=_0x2c8ad2['changes']['concat'](_0x3fa2e5);}return _0x2c8ad2;}['_markMarkers'](_0x2f9446,_0x446f0b){for(let _0x1336c0=0x0;_0x1336c0<_0x2f9446['length'];_0x1336c0++)for(const [_0x3f07ed,_0x396b0b]of _0x446f0b)_0x396b0b['start']['isEqual'](_0x2f9446[_0x1336c0]['previousPosition'])&&_0x2f9446[_0x1336c0]['markersStart']['push'](_0x3f07ed),_0x396b0b['end']['isEqual'](_0x2f9446[_0x1336c0]['nextPosition'])&&_0x2f9446[_0x1336c0]['markersEnd']['push'](_0x3f07ed);}['_joinTapes'](_0x2cb244,_0x320a3e){let _0x4c2f1e=[],_0x2ab320=0x0,_0x50e131=0x0;for(;_0x2ab320<_0x2cb244['length']||_0x50e131<_0x320a3e['length'];){const _0x5b8ba1=_0x2cb244[_0x2ab320]||{},_0x1a1d6a=_0x320a3e[_0x50e131]||{};if(_0x5b8ba1['id']==_0x1a1d6a['id'])_0x2ab320++,_0x50e131++,_0x4c2f1e['push'](_0x5b8ba1);else{if(_0x1a1d6a['isRemoved']&&_0x5b8ba1['isAdded']){const {commonTape:_0x30cb84,iEnd:_0x261708,jEnd:_0x1fb743}=this['_threeWayMerge'](_0x2cb244,_0x2ab320,_0x320a3e,_0x50e131);_0x4c2f1e=_0x4c2f1e['concat'](_0x30cb84),_0x2ab320=_0x261708,_0x50e131=_0x1fb743;}else _0x1a1d6a['isRemoved']?(_0x50e131++,_0x4c2f1e['push'](_0x1a1d6a)):(_0x2ab320++,_0x4c2f1e['push'](_0x5b8ba1));}}return _0x4c2f1e;}['_markSuggestions'](_0x11e5c6,_0x6b3c1){const _0x1d362c=[];for(let _0x30d445=0x0;_0x30d445<_0x11e5c6['length'];_0x30d445++){for(let _0x4146f1=0x0;_0x4146f1<_0x11e5c6[_0x30d445]['markersStart']['length'];_0x4146f1++){const _0x49a1f3=_0x11e5c6[_0x30d445]['markersStart'][_0x4146f1];if(!_0x6b3c1['has'](_0x49a1f3))continue;const {group:_0x1057fc,type:_0x5471ca,authorId:_0x40c3a2}=_0x529de3(_0x49a1f3);'revision-suggestion'!=_0x1057fc||'insertion'!=_0x5471ca&&'deletion'!=_0x5471ca||(_0x1d362c['unshift']({'type':_0x5471ca,'name':_0x49a1f3,'userId':_0x40c3a2}),_0x11e5c6[_0x30d445]['markersStart']['splice'](_0x4146f1,0x1),_0x4146f1--);}_0x163930(_0x11e5c6[_0x30d445]);for(let _0x5eef9f=0x0;_0x5eef9f<_0x11e5c6[_0x30d445]['markersEnd']['length'];_0x5eef9f++){const _0x543669=_0x11e5c6[_0x30d445]['markersEnd'][_0x5eef9f];if(!_0x6b3c1['has'](_0x543669))continue;const {group:_0xf65b7c,type:_0x567115}=_0x529de3(_0x543669);if('revision-suggestion'!=_0xf65b7c||'insertion'!=_0x567115&&'deletion'!=_0x567115)continue;_0x11e5c6[_0x30d445]['markersEnd']['splice'](_0x5eef9f,0x1),_0x5eef9f--;const _0x345279=_0x1d362c['findIndex'](_0x4700af=>_0x4700af['name']==_0x543669);_0x345279>-0x1&&_0x1d362c['splice'](_0x345279,0x1);}}function _0x529de3(_0xc9ca4a){const _0x75cfc2=_0xc9ca4a['split'](':');return{'group':_0x75cfc2[0x0],'type':_0x75cfc2[0x1],'subType':_0x75cfc2['length']>=0x5?_0x75cfc2[0x2]:null,'id':_0x75cfc2['length']<0x5?_0x75cfc2[0x2]:_0x75cfc2[0x3],'authorId':_0x75cfc2['length']<0x5?_0x75cfc2[0x3]:_0x75cfc2[0x4],'markerCount':0x6==_0x75cfc2['length']?_0x75cfc2[0x5]:null};}function _0x163930(_0x301be4){for(let _0x2873e5=0x0;_0x2873e5<_0x1d362c['length'];_0x2873e5++){if(_0x301be4['isAdded']&&'insertion'==_0x1d362c[_0x2873e5]['type'])return _0x301be4['isAddSuggestion']=_0x1d362c[_0x2873e5],void delete _0x301be4['isAdded'];if(!_0x301be4['isAdded']&&!_0x301be4['isRemoved']&&'deletion'==_0x1d362c[_0x2873e5]['type'])return void(_0x301be4['isRemoveSuggestion']=_0x1d362c[_0x2873e5]);}}}['_setDistance'](_0x2b4c18,_0x535214){let _0x2a7f99=0x0,_0x4a61cf=!0x1;const _0x53e458=new Map();for(const _0x12a81c of _0x2b4c18)_0x12a81c[_0x535214]?_0x4a61cf&&(_0x2a7f99++,_0x4a61cf=!0x1):(_0x2a7f99++,_0x4a61cf=!0x0),_0x53e458['set'](_0x12a81c['id'],_0x2a7f99);for(let _0x363365=0x0;_0x363365<_0x2b4c18['length'];_0x363365++){if('isRemoved'==_0x535214&&_0x2b4c18[_0x363365]['isAdded']||'isAdded'==_0x535214&&_0x2b4c18[_0x363365]['isRemoved'])continue;if('text'==_0x2b4c18[_0x363365]['type']){_0x2b4c18[_0x363365]['distance']=0x0;continue;}const _0x31e83b=_0x53e458['get'](_0x2b4c18[_0x363365]['pairId']),_0x4f65bd=_0x53e458['get'](_0x2b4c18[_0x363365]['id']);_0x2b4c18[_0x363365]['distance']=_0x31e83b-_0x4f65bd;}}['_getRevisionsRange'](_0x5ab434,_0x3ca9b9,_0xf9a948=!0x1){const _0x5a9fb3=[];let _0x566b78=this['repository']['getIndex'](_0x5ab434),_0xc560d1=this['repository']['getIndex'](_0x3ca9b9);for(-0x1==_0xc560d1&&(_0xc560d1=this['repository']['_revisions']['length'],_0xf9a948=!0x1);_0x566b78<_0xc560d1;)_0x5a9fb3['push'](this['repository']['getRevision'](_0x566b78)),_0x566b78++;return _0xf9a948&&_0x5a9fb3['push'](this['repository']['getRevision'](_0x566b78)),_0x5a9fb3;}['_threeWayMerge'](_0x10b571,_0x15f40,_0x127b6b,_0x4eb9ec){const _0x576db1=this['editor']['model']['schema'];let _0x2bf0d1=_0x15f40;for(;_0x10b571[_0x2bf0d1]&&_0x10b571[_0x2bf0d1]['isAdded'];)_0x2bf0d1++;let _0x659e16=_0x4eb9ec;for(;_0x127b6b[_0x659e16]&&_0x127b6b[_0x659e16]['isRemoved'];)_0x659e16++;_0x4ab4bc(_0x10b571,_0x15f40,_0x2bf0d1),_0x4ab4bc(_0x127b6b,_0x4eb9ec,_0x659e16);const _0x12970a=_0x127b6b['slice'](_0x4eb9ec,_0x659e16)['concat'](_0x10b571['slice'](_0x15f40,_0x2bf0d1));return _0x12970a['sort']((_0x14d480,_0x3de384)=>_0x14d480['side']!=_0x3de384['side']?_0x14d480['side']-_0x3de384['side']:_0x14d480['level']!=_0x3de384['level']?_0x14d480['level']-_0x3de384['level']:_0x14d480['distance']!=_0x3de384['distance']?_0x3de384['distance']-_0x14d480['distance']:!!_0x14d480['isAdded']!=!!_0x3de384['isAdded']?-0x1==_0x14d480['side']||0x0==_0x14d480['side']?_0x14d480['isAdded']?-0x1:0x1:_0x14d480['isAdded']?0x1:-0x1:_0x14d480['index']-_0x3de384['index']),{'commonTape':_0x12970a,'iEnd':_0x2bf0d1,'jEnd':_0x659e16};function _0x4ab4bc(_0x2288af,_0x4e4802,_0x2a8ae1){let _0x1f209b=-0x1,_0x458982=Number['POSITIVE_INFINITY'],_0x1237f6=!0x0;for(let _0x28b9bd=_0x4e4802;_0x28b9bd<_0x2a8ae1;_0x28b9bd++)if(_0x576db1['isInline'](_0x2288af[_0x28b9bd]['item'])||(_0x1237f6=!0x1),_0x2288af[_0x28b9bd]['item']['startIndex']<_0x4e4802&&(_0x1f209b=_0x28b9bd),_0x2288af[_0x28b9bd]['item']['endIndex']>=_0x2a8ae1){_0x458982=_0x28b9bd;break;}_0x1237f6&&(_0x1f209b=_0x2a8ae1-0x1);for(let _0x25c810=_0x4e4802;_0x25c810<_0x2a8ae1;_0x25c810++)_0x2288af[_0x25c810]['side']=_0x25c810<=_0x1f209b?-0x1:_0x25c810<_0x458982?0x0:0x1,_0x2288af[_0x25c810]['index']=_0x25c810;let _0x51876e=0x0;for(let _0x13d229=_0x4e4802;_0x13d229<=_0x1f209b;_0x13d229++)0x0==_0x2288af[_0x13d229]['distance']?_0x2288af[_0x13d229]['level']=_0x51876e:(_0x51876e++,_0x2288af[_0x13d229]['level']=_0x51876e,_0x51876e++);for(let _0x3cbcde=_0x4e4802;_0x3cbcde<_0x2a8ae1;_0x3cbcde++)0x0==_0x2288af[_0x3cbcde]['side']&&(_0x2288af[_0x3cbcde]['level']=_0x51876e);_0x51876e=0x0;for(let _0x5e4728=_0x2a8ae1-0x1;_0x5e4728>=_0x458982;_0x5e4728--)0x0==_0x2288af[_0x5e4728]['distance']?_0x2288af[_0x5e4728]['level']=_0x51876e:(_0x51876e--,_0x2288af[_0x5e4728]['level']=_0x51876e,_0x51876e--);}}['_fixObsoleteTags'](_0x525608){const _0x3712c0=new Map(),_0x558118=this['editor']['model']['schema'];for(let _0x4ff9b5=0x1;_0x4ff9b5<_0x525608['length'];_0x4ff9b5++){let _0x51bdf2,_0x44f2ed,_0x4c2b9d;const _0x53a5fc=_0x525608[_0x4ff9b5],_0x3a771c=_0x525608[_0x4ff9b5-0x1];if('text'==_0x53a5fc['type'])continue;if(_0x53a5fc['type']!=_0x3a771c['type'])continue;if(!_0x558118['isBlock'](_0x3a771c['item'])||_0x558118['isLimit'](_0x3a771c['item']))continue;if(!_0x558118['isBlock'](_0x53a5fc['item'])||_0x558118['isLimit'](_0x53a5fc['item']))continue;if((_0x525608[_0x4ff9b5]['isAdded']||_0x525608[_0x4ff9b5]['isAddSuggestion'])&&_0x525608[_0x4ff9b5-0x1]['isRemoved'])_0x51bdf2=_0x525608[_0x4ff9b5],_0x44f2ed=_0x525608[_0x4ff9b5-0x1],_0x4c2b9d=_0x4ff9b5-0x1;else{if(!_0x525608[_0x4ff9b5]['isRemoved']||!_0x525608[_0x4ff9b5-0x1]['isAdded']&&!_0x525608[_0x4ff9b5-0x1]['isAddSuggestion'])continue;_0x51bdf2=_0x525608[_0x4ff9b5-0x1],_0x44f2ed=_0x525608[_0x4ff9b5],_0x4c2b9d=_0x4ff9b5;}const _0x4fe2ea=_0x51bdf2['level']==_0x44f2ed['level'],_0x171ddd=Math['abs'](_0x51bdf2['level'])<Math['abs'](_0x44f2ed['level'])&&0x0==_0x44f2ed['distance'];(_0x4fe2ea||_0x171ddd)&&(_0x3712c0['set'](_0x44f2ed['id'],_0x51bdf2['id']),_0x525608['splice'](_0x4c2b9d,0x1),_0x4ff9b5--,_0x51bdf2['isAdded']=!0x1);}for(let _0xeff805=0x0;_0xeff805<_0x525608['length'];_0xeff805++)_0x3712c0['has'](_0x525608[_0xeff805]['pairId'])&&(_0x525608[_0xeff805]['pairId']=_0x3712c0['get'](_0x525608[_0xeff805]['pairId']));}['_removeMissingPairs'](_0x5662bc){const _0x518820=new Set(_0x5662bc['map'](_0xa8ea75=>_0xa8ea75['id']));for(let _0x5291e8=0x0;_0x5291e8<_0x5662bc['length'];_0x5291e8++)_0x518820['has'](_0x5662bc[_0x5291e8]['pairId'])||0x0==_0x5662bc[_0x5291e8]['distance']||(_0x5662bc[_0x5291e8]['isIncorrect']=!0x0);return _0x5662bc['filter'](_0x29c217=>!_0x29c217['isIncorrect']);}['_markMismatchedRemovedTags'](_0xceb8a0){const _0x43d5a4=new Set();for(let _0x3262f7=0x0;_0x3262f7<_0xceb8a0['length'];_0x3262f7++){if(_0x43d5a4['has'](_0xceb8a0[_0x3262f7]['id'])&&_0xceb8a0[_0x3262f7]['isRemoved']&&(_0xceb8a0[_0x3262f7]['isIncorrect']=!0x0),_0xceb8a0[_0x3262f7]['isIncorrect'])continue;if(0x0==_0xceb8a0[_0x3262f7]['distance'])continue;if('elementStart'!=_0xceb8a0[_0x3262f7]['type'])continue;if(null==_0xceb8a0[_0x3262f7]['pairId'])continue;let _0x386947=_0x3262f7+0x1,_0x3554ff=0x0;for(;_0xceb8a0[_0x386947]['id']!=_0xceb8a0[_0x3262f7]['pairId'];)'elementStart'==_0xceb8a0[_0x386947]['type']?_0x3554ff++:'elementEnd'==_0xceb8a0[_0x386947]['type']&&_0x3554ff--,_0x386947++;if(0x0!=_0x3554ff){if(_0xceb8a0[_0x3262f7]['isRemoved'])_0xceb8a0[_0x3262f7]['isIncorrect']=!0x0;else{for(;_0x386947!=_0x3262f7;)_0xceb8a0[_0x386947]['isRemoved']&&0x0!=_0xceb8a0[_0x386947]['distance']&&(_0xceb8a0[_0x386947]['isIncorrect']=!0x0,_0x43d5a4['add'](_0xceb8a0[_0x386947]['pairId'])),_0x386947--;}}}return _0xceb8a0['filter'](_0xc9b313=>!_0xc9b313['isIncorrect']);}['_removeUnsupportedChanges'](_0x5b35e9){const _0x28247b=this['editor']['model']['schema'];for(let _0x14e00a=0x0;_0x14e00a<_0x5b35e9['length'];_0x14e00a++){if(!(_0x5b35e9[_0x14e00a]['isAdded']||_0x5b35e9[_0x14e00a]['isAddSuggestion']||_0x5b35e9[_0x14e00a]['isRemoved']||_0x5b35e9[_0x14e00a]['isRemoveSuggestion']))continue;if(0x0==_0x5b35e9[_0x14e00a]['distance'])continue;const _0x50ad29=_0x5b35e9[_0x14e00a]['item'];_0x28247b['isBlock'](_0x50ad29)||_0x28247b['isLimit'](_0x50ad29)||(_0x5b35e9[_0x14e00a]['isAdded']&&delete _0x5b35e9[_0x14e00a]['isAdded'],_0x5b35e9[_0x14e00a]['isAddSuggestion']&&delete _0x5b35e9[_0x14e00a]['isAddSuggestion'],_0x5b35e9[_0x14e00a]['isRemoveSuggestion']&&delete _0x5b35e9[_0x14e00a]['isRemoveSuggestion'],_0x5b35e9[_0x14e00a]['isRemoved']&&(_0x5b35e9[_0x14e00a]['isIncorrect']=!0x0));}return _0x5b35e9['filter'](_0x20f9b=>!_0x20f9b['isIncorrect']);}['_makeModelFromTape'](_0x5c42d8,_0x3020e7,_0x4fea73){const _0x597f56=new mt(),_0xf2ec39=[],_0x3dcb83=new Map(),_0x41684d=this['editor']['model'],_0x4a144e=_0x41684d['schema'],_0x4bd87b=[_0x597f56],_0x382d5a={},_0x5cd380={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x2f41a1=null;const _0x524ec8=[0x0];for(let _0x2905a0=0x0;_0x2905a0<_0x5c42d8['length'];_0x2905a0++)if('elementStart'===_0x5c42d8[_0x2905a0]['type']){_0x5c42d8[_0x2905a0]['previousPosition']=_0x41684d['createPositionFromPath'](_0x597f56,_0x524ec8);const _0x440895=new ft(_0x5c42d8[_0x2905a0]['item']['name'],_0x5c42d8[_0x2905a0]['item']['getAttributes']());_0x4bd87b[0x0]['_appendChild'](_0x440895),_0x524ec8['push'](0x0),_0x4bd87b['unshift'](_0x440895),_0x5c42d8[_0x2905a0]['nextPosition']=_0x41684d['createPositionFromPath'](_0x597f56,_0x524ec8);}else'elementEnd'===_0x5c42d8[_0x2905a0]['type']?(_0x4bd87b['shift'](),_0x5c42d8[_0x2905a0]['previousPosition']=_0x41684d['createPositionFromPath'](_0x597f56,_0x524ec8),_0x524ec8['pop'](),_0x524ec8[_0x524ec8['length']-0x1]++,_0x5c42d8[_0x2905a0]['nextPosition']=_0x41684d['createPositionFromPath'](_0x597f56,_0x524ec8)):(_0x5c42d8[_0x2905a0]['previousPosition']=_0x41684d['createPositionFromPath'](_0x597f56,_0x524ec8),_0x2f41a1?_0x2f41a1['_data']+=_0x5c42d8[_0x2905a0]['item']['data']:_0x2f41a1=new wt(_0x5c42d8[_0x2905a0]['item']['data'],_0x5c42d8[_0x2905a0]['item']['getAttributes']()),_0x5c42d8[_0x2905a0+0x1]&&'text'===_0x5c42d8[_0x2905a0+0x1]['type']&&_0x1db70d(_0x2f41a1,_0x5c42d8[_0x2905a0+0x1]['item'])||(_0x4bd87b[0x0]['_appendChild'](_0x2f41a1),_0x2f41a1=null),_0x524ec8[_0x524ec8['length']-0x1]+=_0x5c42d8[_0x2905a0]['item']['offsetSize'],_0x5c42d8[_0x2905a0]['nextPosition']=_0x41684d['createPositionFromPath'](_0x597f56,_0x524ec8));for(let _0x5171d4=0x0;_0x5171d4<_0x5c42d8['length'];_0x5171d4++){const _0x20f884=_0x5c42d8[_0x5171d4]['previousPosition'],_0x18022d=_0x5c42d8[_0x5171d4]['nextPosition'];for(const _0x5c2292 of _0x5c42d8[_0x5171d4]['markersStart'])_0x3dcb83['set'](_0x5c2292,{'start':_0x20f884,'end':null});_0x1addd1('isRemoveSuggestion',_0x5171d4,_0x20f884,_0x18022d),_0x1addd1('isAddSuggestion',_0x5171d4,_0x20f884,_0x18022d),_0x1addd1('isRemoved',_0x5171d4,_0x20f884,_0x18022d),_0x1addd1('isAdded',_0x5171d4,_0x20f884,_0x18022d);for(const _0x10ed72 of _0x5c42d8[_0x5171d4]['markersEnd']){_0x3dcb83['get'](_0x10ed72)['end']=_0x18022d;}}for(const [_0x389bcd,_0x91bc6f]of _0x3dcb83){const _0x48e552=this['editor']['model']['createRange'](_0x91bc6f['start'],_0x91bc6f['end']);_0x597f56['markers']['set'](_0x389bcd,_0x48e552);}return _0xf2ec39['sort']((_0x3b8cc9,_0x1ba7ce)=>{const _0x387d93=_0x597f56['markers']['get']('revision:'+_0x3b8cc9['id']),_0x8a29ef=_0x597f56['markers']['get']('revision:'+_0x1ba7ce['id']);return _0x387d93['start']['isBefore'](_0x8a29ef['start'])?-0x1:_0x387d93['start']['isAfter'](_0x8a29ef['start'])?0x1:_0x387d93['end']['isBefore'](_0x8a29ef['end'])?-0x1:_0x387d93['end']['isAfter'](_0x8a29ef['end'])?0x1:'add'===_0x3b8cc9['type']?-0x1:0x1;}),{'root':_0x597f56,'changes':_0xf2ec39};function _0x1addd1(_0x43e704,_0x359a7a,_0x229110,_0x597596){const _0x14e5c5=!!_0x5c42d8[_0x359a7a][_0x43e704],_0x58b339=_0x14e5c5?_0x5c42d8[_0x359a7a][_0x43e704]['userId']:null,_0x547584=_0x359a7a===_0x5c42d8['length']-0x1,_0x19ea4b=_0x5cd380[_0x43e704][0x0],_0x234e27=_0x4a144e['isObject'](_0x5c42d8[_0x359a7a]['item']);!_0x382d5a[_0x43e704]&&_0x14e5c5?_0x382d5a[_0x43e704]={'start':_0x229110,'tapeItem':_0x5c42d8[_0x359a7a],'userId':_0x58b339,'type':_0x43e704}:_0x382d5a[_0x43e704]&&!_0x14e5c5?(_0x382d5a[_0x43e704]['end']=_0x229110,_0x293715(_0x382d5a[_0x43e704]),_0x382d5a[_0x43e704]=null):_0x382d5a[_0x43e704]&&_0x14e5c5&&_0x382d5a[_0x43e704]['userId']!==_0x58b339&&(_0x382d5a[_0x43e704]['end']=_0x229110,_0x19ea4b&&_0x19ea4b['userId']===_0x382d5a[_0x43e704]['userId']||_0x293715(_0x382d5a[_0x43e704]),_0x382d5a[_0x43e704]={'start':_0x229110,'tapeItem':_0x5c42d8[_0x359a7a],'userId':_0x58b339,'type':_0x43e704}),_0x382d5a[_0x43e704]&&_0x234e27&&('elementStart'!==_0x5c42d8[_0x359a7a]['type']||_0x19ea4b&&_0x19ea4b['userId']===_0x58b339||_0x5cd380[_0x43e704]['unshift']({'userId':_0x58b339,'object':_0x5c42d8[_0x359a7a]['item'],'change':_0x382d5a[_0x43e704]}),'elementEnd'===_0x5c42d8[_0x359a7a]['type']&&_0x19ea4b&&_0x19ea4b['object']===_0x5c42d8[_0x359a7a]['item']&&(_0x5cd380[_0x43e704]['shift'](),_0x382d5a[_0x43e704]=_0x19ea4b['change'])),_0x382d5a[_0x43e704]&&_0x547584&&(_0x382d5a[_0x43e704]['end']=_0x597596,_0x293715(_0x382d5a[_0x43e704]),_0x382d5a[_0x43e704]=null);}function _0x293715({start:_0x3c446f,end:_0x30cb76,tapeItem:_0x2f3095,userId:_0x4169d6,type:_0x2b6fa4}){const _0x5bba02=_0x2f3095['item'],_0x46b168=_0x41684d['schema']['isBlock'](_0x5bba02)&&!_0x41684d['schema']['isLimit'](_0x5bba02),_0x16352b=_0x3c446f['nodeAfter']==_0x30cb76['parent']&&_0x30cb76['isAtStart'];if(_0x46b168&&_0x16352b)return;const _0x106bc6=_0x41684d['createRange'](_0x3c446f,_0x30cb76),_0x319df2=_0x3020e7['get'](_0x4169d6),_0x54c1a0=new r({'author':_0x319df2,'type':'isAdded'==_0x2b6fa4||'isAddSuggestion'==_0x2b6fa4?'add':'remove','data':{'isSuggestion':'isAddSuggestion'==_0x2b6fa4||'isRemoveSuggestion'==_0x2b6fa4},'createdAt':new Date(),'rootName':_0x4fea73});_0xf2ec39['push'](_0x54c1a0),_0x597f56['markers']['set']('revision:'+_0x54c1a0['id'],_0x106bc6);}function _0x1db70d(_0x1d8ea5,_0x1c0633){const _0x5501c8=_0x1d8ea5['getAttributes'](),_0x445658=_0x1c0633['getAttributes']();for(const _0x214fb4 of _0x5501c8){if(_0x214fb4[0x1]!==_0x1c0633['getAttribute'](_0x214fb4[0x0]))return!0x1;_0x445658['next']();}return _0x445658['next']()['done'];}}['_setConversion'](){this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision','view':_0x36ea18=>{const _0x339ad5=_0x36ea18['markerName']['split'](':')[0x1],_0x74d65d=this['_getChangeFromId'](_0x339ad5);if(!_0x74d65d)return null;const _0x54ed01='add'==_0x74d65d['type']?'insertion':'deletion',_0x2cbb5d=['ck-suggestion-marker','ck-suggestion-marker-'+_0x54ed01];return _0x74d65d['data']['isSuggestion']&&_0x2cbb5d['push']('ck-suggestion-marker-'+_0x54ed01+'-new'),this['activeChange']==_0x74d65d&&_0x2cbb5d['push']('ck-suggestion-marker--active'),{'classes':_0x2cbb5d,'attributes':{'data-change-id':_0x339ad5}};}}),this['editor']['conversion']['for']('upcast')['add'](_0x5c637f=>{_0x5c637f['on']('element:pre',(_0x334951,_0x1ae369,_0x3abedc)=>{const _0x5dcb14=_0x1ae369['viewItem']['getChild'](0x0);if(!_0x5dcb14||!_0x5dcb14['is']('element','code'))return;if(!_0x3abedc['consumable']['consume'](_0x5dcb14,{'attributes':['vid_start','vid_end']}))return;const _0x238da0=_0x1ae369['modelRange']['start']['nodeAfter'];_0x3abedc['writer']['setAttribute']('vid_start',_0x5dcb14['getAttribute']('vid_start'),_0x238da0),_0x3abedc['writer']['setAttribute']('vid_end',_0x5dcb14['getAttribute']('vid_end'),_0x238da0);},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['add'](_0x3713e9=>{_0x3713e9['on']('element',(_0x1d678c,_0x35062c,_0x3bf9a6)=>{if(!_0x3bf9a6['consumable']['consume'](_0x35062c['viewItem'],{'attributes':['vid_start','vid_end']}))return;if(_0x35062c['modelRange']['isCollapsed'])return;const _0x35c618=_0x35062c['modelRange']['start']['nodeAfter'];_0x35c618['hasAttribute']('vid_start')||_0x35c618['hasAttribute']('vid')||(_0x3bf9a6['writer']['setAttribute']('vid_start',_0x35062c['viewItem']['getAttribute']('vid_start'),_0x35c618),_0x3bf9a6['writer']['setAttribute']('vid_end',_0x35062c['viewItem']['getAttribute']('vid_end'),_0x35c618));},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['elementToAttribute']({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0x41d489=>_0x41d489['getAttribute']('vid')}}),this['editor']['model']['schema']['on']('checkAttribute',(_0x43864c,[,_0x38c421])=>{['vid_start','vid_end','vid']['includes'](_0x38c421)&&(_0x43864c['return']=!0x0,_0x43864c['stop']());},{'priority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x1953bb=>{_0x1953bb['on']('attribute:vid',(_0x39a3ee,_0x1f0a97,_0x5baeb0)=>{if('\x20'!=_0x1f0a97['item']['data']||_0x1f0a97['item']['parent']['maxOffset']>0x1)return;if(!_0x5baeb0['consumable']['consume'](_0x1f0a97['item'],_0x39a3ee['name']))return;const _0x38f19c=_0x5baeb0['writer'],_0x2306fe=_0x5baeb0['mapper']['toViewRange'](_0x1f0a97['range']);_0x38f19c['wrap'](_0x2306fe,_0x38f19c['createAttributeElement']('span'));});}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',function(_0x524f83){const _0x15bdc2=_0x524f83['plugins']['get']('RevisionViewer');return(_0x3c559a,_0x4ba6fa,_0x9b5f23)=>{const _0x1460ab=_0x4ba6fa['markerName']['split'](':')[0x1],_0x4dfb7c=_0x15bdc2['_getChangeFromId'](_0x1460ab);if(!_0x4dfb7c)return null;const _0x201973='add'==_0x4dfb7c['type']?'split':'merge';if(!_0x9b5f23['consumable']['test'](_0x4ba6fa['markerRange'],_0x3c559a['name']))return;const _0x10efa5=_0x4ba6fa['markerRange']['getWalker'](),_0x12edc9=_0x4ba6fa['markerRange']['start'],_0x3f0f1f=_0x524f83['model']['schema'];let _0x49c857=null,_0xdf9e11=null,_0xa27ae4=!0x1,_0x424e95=!0x1;for(const _0x335dee of _0x10efa5){const _0x5427a6=_0x335dee['item'];_0xa27ae4=_0xa27ae4||_0x3f0f1f['isContent'](_0x5427a6);const _0x2d6dcc=_0x9b5f23['mapper']['toViewElement'](_0x5427a6);if(_0x2d6dcc&&_0x2d6dcc['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x335dee['type']&&(_0x3f0f1f['isBlock'](_0x5427a6)&&!_0x3f0f1f['isLimit'](_0x5427a6)&&(_0x5427a6['nextSibling']||_0x12edc9['isAtEnd']?_0x49c857&&_0x49c857['parent']==_0x5427a6||(_0x49c857=_0x5427a6,_0x34192e(_0x335dee['previousPosition']),_0x424e95=!0x0):_0xdf9e11=_0xdf9e11||_0x335dee['previousPosition']));}function _0x34192e(_0x4fa3c8){const _0x3b27f0=_0x9b5f23['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x201973}),_0x26c4e9=_0x9b5f23['mapper']['toViewPosition'](_0x4fa3c8);_0x4dfb7c['data']['isSuggestion']&&_0x9b5f23['writer']['addClass']('ck-suggestion-marker-'+_0x201973+'-new',_0x3b27f0),_0x15bdc2['activeChange']==_0x4dfb7c&&_0x9b5f23['writer']['addClass']('ck-suggestion-marker--active',_0x3b27f0),_0x9b5f23['writer']['insert'](_0x26c4e9,_0x3b27f0),_0x9b5f23['mapper']['bindElementToMarker'](_0x3b27f0,_0x4ba6fa['markerName']);}_0xa27ae4||_0x424e95||!_0xdf9e11||_0x34192e(_0xdf9e11);};}(this['editor']),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision',(_0x3935d3,_0x2436b8,_0x167543)=>{const _0x40c754=_0x167543['mapper']['markerNameToElements'](_0x2436b8['markerName']);if(_0x40c754){for(const _0x263eac of _0x40c754)(_0x263eac['hasClass']('ck-suggestion-marker-split')||_0x263eac['hasClass']('ck-suggestion-marker-merge'))&&(_0x167543['mapper']['unbindElementFromMarkerName'](_0x263eac,_0x2436b8['markerName']),_0x167543['writer']['remove'](_0x263eac));}},{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',(_0x42ddf8,_0x591e00,_0x313730)=>{const _0x3060f6=_0x591e00['markerName']['split'](':')[0x1],_0x3112ed=this['_getChangeFromId'](_0x3060f6);if(!_0x3112ed)return null;const _0x281fbe='add'==_0x3112ed['type']?'split':'merge';if(_0x313730['consumable']['test'](_0x591e00['markerRange'],_0x42ddf8['name']))for(const _0x59252c of _0x591e00['markerRange']['getItems']()){if(!_0x59252c['is']('element','softBreak'))continue;const _0x1c369b=_0x313730['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x281fbe}),_0x3312fd=_0x313730['mapper']['toViewPosition'](this['editor']['model']['createPositionBefore'](_0x59252c));_0x3112ed['data']['isSuggestion']&&_0x313730['writer']['addClass']('ck-suggestion-marker-'+_0x281fbe+'-new',_0x1c369b),this['activeChange']==_0x3112ed&&_0x313730['writer']['addClass']('ck-suggestion-marker--active',_0x1c369b),_0x313730['writer']['insert'](_0x3312fd,_0x1c369b),_0x313730['mapper']['bindElementToMarker'](_0x1c369b,_0x591e00['markerName']);}},{'priority':'high'}),this['editor']['model']['document']['on']('change',()=>{this['editor']['editing']['view']['change'](_0x5db30a=>{for(const _0x40e2bb of this['editor']['model']['document']['getRootNames']()){const _0x4a70dc=this['editor']['model']['document']['getRoot'](_0x40e2bb),_0xa25094=this['editor']['editing']['view']['document']['getRoot'](_0x40e2bb);if(_0xa25094){const _0x28466f=_0x4a70dc['getAttribute']('revisionHistoryAttachChange');if(_0x5db30a['removeAttribute']('data-change-id',_0xa25094),_0x5db30a['removeClass']('ck-revision-history-root-add',_0xa25094),_0x5db30a['removeClass']('ck-revision-history-root-remove',_0xa25094),_0x5db30a['removeClass']('ck-revision-history-root--active',_0xa25094),_0x28466f){const _0x19d2ae=this['_getChangeFromId'](_0x28466f);if(!_0x19d2ae)return null;_0x5db30a['setAttribute']('data-change-id',_0x28466f,_0xa25094),_0x5db30a['addClass']('ck-revision-history-root-'+_0x19d2ae['type'],_0xa25094),this['activeChange']==_0x19d2ae&&_0x5db30a['addClass']('ck-revision-history-root--active',_0xa25094);}}}});}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'comment','model':_0x3d860f=>'revision-comment:'+_0x3d860f,'converterPriority':'highest'}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion','model':_0x4b176c=>'revision-suggestion:'+_0x4b176c,'converterPriority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision-suggestion','view':_0x11d993=>({'name':'suggestion:'+_0x11d993,'group':'revision-suggestion'}),'converterPriority':'highest'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision-suggestion','view':_0x36146f=>{const _0x3f86b8=_0x36146f['markerName']['split'](':')[0x1];return'insertion'!=_0x3f86b8&&'deletion'!=_0x3f86b8?null:{'classes':['ck-suggestion-preview-marker','ck-suggestion-preview-marker-'+_0x3f86b8]};}}),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',(_0x57d842,_0x316ee4,_0x42099a)=>{const _0x135dd8=_0x42099a['mapper']['markerNameToElements'](_0x316ee4['markerName']);if(_0x135dd8){for(const _0x37047a of _0x135dd8)_0x37047a['is']('uiElement')&&(_0x42099a['mapper']['unbindElementFromMarkerName'](_0x37047a,_0x316ee4['markerName']),_0x42099a['writer']['remove'](_0x37047a));}},{'priority':'high'});}['_getChangeFromId'](_0x56447e){return this['_changeIdToChange']['get'](_0x56447e);}['_getViewForChange'](_0x14e364){return this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=new X(this['editor']['locale'],_0x14e364),this['_changeView'];}['_initInteractions'](){this['editor']['model']['document']['selection']['observeMarkers']('revision'),this['on']('change:activeView',(_0x377d78,_0x282718,_0x16ea82,_0x3c8ce6)=>{_0x3c8ce6&&this['_balloon']['remove'](_0x3c8ce6),_0x16ea82&&(this['_balloon']['add']({'view':_0x16ea82,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0x13970d=this['editor']['editing'],_0x1348a3=this['_getChangeFromId'](_0x16ea82['changeId']);let _0x49a811;if(_0x1348a3['data']['isOnRoot']){const _0x82e131=_0x13970d['view']['getDomRoot'](_0x1348a3['rootName']);_0x49a811=Array['from'](_0x82e131['getClientRects']());}else{const _0xe4af6c=this['editor']['model']['markers']['get']('revision:'+_0x16ea82['changeId']);_0x49a811=Array['from'](_0x13970d['mapper']['markerNameToElements'](_0xe4af6c['name']))['map'](_0x1ac7d5=>_0x13970d['view']['domConverter']['mapViewToDom'](_0x1ac7d5))['map'](_0x50dfe3=>Array['from'](_0x50dfe3['getClientRects']()))['flat']();}if(!this['_activeViewTarget'])return _0x49a811[0x0];return _0x49a811['find'](_0x3a8803=>_0x3a8803['top']-0x3<=this['_activeViewTarget']['y']&&_0x3a8803['bottom']+0x3>=this['_activeViewTarget']['y']&&_0x3a8803['left']-0x3<=this['_activeViewTarget']['x']&&_0x3a8803['right']+0x3>=this['_activeViewTarget']['x'])||_0x49a811[0x0];}}}),this['_balloon']['showStack']('revisionHistoryLabel'));}),this['on']('change:activeChange',(_0x5824bb,_0x44374c,_0x3fb08e,_0xa4e576)=>{this['activeView']=_0x3fb08e?this['_getViewForChange'](_0x3fb08e):null,this['editor']['model']['change'](()=>{const _0x118c5a=this['editor']['editing'];_0xa4e576&&(_0xa4e576['data']['isOnRoot']?_0x118c5a['view']['change'](_0x4ba6bd=>{_0x4ba6bd['removeClass']('ck-revision-history-root--active',_0x118c5a['view']['document']['getRoot'](_0xa4e576['rootName']));}):_0x118c5a['reconvertMarker']('revision:'+_0xa4e576['id'])),_0x3fb08e&&(_0x3fb08e['data']['isOnRoot']?_0x118c5a['view']['change'](_0x3f2298=>{_0x3f2298['addClass']('ck-revision-history-root--active',_0x118c5a['view']['document']['getRoot'](_0x3fb08e['rootName']));}):_0x118c5a['reconvertMarker']('revision:'+_0x3fb08e['id']));});}),this['listenTo'](this['editor']['editing']['view']['document'],'mouseover',(_0x4cbaff,_0x582df5)=>{if(this['activeChange'])return;const _0x57e1e4=this['_findChangeIdFromDomTarget'](_0x582df5['target']),_0x2170ec=this['_changeIdToChange']['get'](_0x57e1e4);_0x2170ec?(this['_activeViewTarget']={'x':_0x582df5['domEvent']['x'],'y':_0x582df5['domEvent']['y']},this['activeView']=this['_getViewForChange'](_0x2170ec)):(this['_activeViewTarget']=null,this['activeView']=null);}),this['listenTo'](this['editor']['editing']['view']['document'],'mousedown',(_0x2a75c3,_0x23736d)=>{const _0x188235=this['_findChangeIdFromDomTarget'](_0x23736d['target']),_0x5e912b=this['_changeIdToChange']['get'](_0x188235);_0x5e912b?(this['_activeViewTarget']={'x':_0x23736d['domEvent']['x'],'y':_0x23736d['domEvent']['y']},_0x5e912b===this['activeChange']?this['_balloon']['updatePosition']():this['activeChange']=_0x5e912b):(this['_activeViewTarget']=null,this['activeChange']=null);});}['_findChangeIdFromDomTarget'](_0x32192c){do{const _0x88ba7a=_0x32192c['getAttribute']('data-change-id');if(_0x88ba7a)return _0x88ba7a;_0x32192c=_0x32192c['parent'];}while(_0x32192c);return null;}['_cleanMarkers'](){this['editor']['model']['change'](_0x591364=>{for(const _0x498d03 of this['editor']['model']['markers'])_0x591364['removeMarker'](_0x498d03);});}}function Z(_0x319672,_0x3ca4a3){return(_0x2d7413,_0x10debe,_0x4b4660)=>{if(!_0x4b4660['consumable']['test'](_0x10debe['markerRange'],_0x2d7413['name']))return;const _0x2f3c93=_0x10debe['markerRange']['getWalker'](),_0x4eb49a=_0x10debe['markerRange']['start'],_0x43b868=_0x319672['model']['schema'];let _0x314d40=null,_0x4d0fff=null,_0x4a533a=!0x1,_0x577566=!0x1;for(const _0x1d5ffd of _0x2f3c93){const _0xfb159b=_0x1d5ffd['item'];_0x4a533a=_0x4a533a||_0x43b868['isContent'](_0xfb159b);const _0x48f01a=_0x4b4660['mapper']['toViewElement'](_0xfb159b);if(_0x48f01a&&_0x48f01a['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x1d5ffd['type']&&(_0x43b868['isBlock'](_0xfb159b)&&!_0x43b868['isLimit'](_0xfb159b)&&(_0xfb159b['nextSibling']||_0x4eb49a['isAtEnd']?_0x314d40&&_0x314d40['parent']==_0xfb159b||(_0x314d40=_0xfb159b,_0x160d78(_0x1d5ffd['previousPosition']),_0x577566=!0x0):_0x4d0fff=_0x4d0fff||_0x1d5ffd['previousPosition']));}function _0x160d78(_0x3268a1){const _0x5d7bc9=_0x4b4660['mapper']['toViewPosition'](_0x3268a1),_0x208121=_0x4b4660['writer']['createUIElement']('span',{'class':'ck-suggestion-preview-marker-'+_0x3ca4a3});_0x4b4660['writer']['insert'](_0x5d7bc9,_0x208121),_0x4b4660['mapper']['bindElementToMarker'](_0x208121,_0x10debe['markerName']);}_0x4a533a||_0x577566||!_0x4d0fff||_0x160d78(_0x4d0fff);};}class _t extends _0x24f189{constructor(_0x192dcf){super(_0x192dcf);const _0x3ff222=_0x192dcf['plugins']['get'](d);this['affectsData']=!0x1,this['listenTo'](_0x3ff222,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x3ff222,'change:isEnabled',()=>this['refresh']());}['execute'](){const _0x3d6991=this['editor'],_0x2a7572=_0x3d6991['plugins']['get'](d),_0x4adfcf=_0x2a7572['isReady']?_0x2a7572['diff']['newRevisionId']:null;_0x3d6991['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x4adfcf);}['refresh'](){const {isReady:_0x1ae8f6,isEnabled:_0x349351,repository:_0xd7b591,diff:_0x4d297d}=this['editor']['plugins']['get'](d),_0x590046=_0x4d297d&&_0xd7b591['getLaterVisibleRevision'](_0x4d297d['newRevisionId']);this['isEnabled']=_0x1ae8f6&&_0x349351&&Boolean(_0x590046);}}class yt extends _0x24f189{['_step'];constructor(_0x51477e,{direction:_0xa80de4}){super(_0x51477e);const _0x5c02e1=_0x51477e['plugins']['get'](d);this['affectsData']=!0x1,this['_step']='forward'===_0xa80de4?0x1:-0x1,this['listenTo'](_0x5c02e1,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x5c02e1,'change:isEnabled',()=>this['refresh']()),this['listenTo'](_0x5c02e1,'change:activeChange',()=>this['refresh']());}['execute'](){const _0x3b7f0d=this['editor'],_0x506e9f=_0x3b7f0d['plugins']['get'](d),{isNavigationMode:_0x21fa15,currentChangeNumber:_0x436020}=_0x506e9f;let _0x3fc919;if(_0x506e9f['activeChange']=_0x21fa15?_0x506e9f['diff']['changes']['get'](_0x436020+this['_step']):_0x506e9f['diff']['changes']['first'],_0x506e9f['activeChange']['data']['isOnRoot'])_0x3fc919=_0x3b7f0d['editing']['view']['getDomRoot'](_0x506e9f['activeChange']['rootName']);else{const _0x54040a=_0x3b7f0d['model']['markers']['get']('revision:'+_0x506e9f['activeChange']['id']);_0x3fc919=_0x93a8c4(_0x3b7f0d['editing'],_0x54040a);}_0x2b0941({'target':_0x3fc919,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0x37f0a6,currentChangeNumber:_0x6d3414,numberOfChanges:_0x943ed4,isReady:_0x1f73c8,isEnabled:_0x890047}=this['editor']['plugins']['get'](d);this['isEnabled']=!!(_0x890047&&_0x1f73c8&&_0x943ed4)&&(!_0x37f0a6||(0x1===this['_step']?_0x6d3414<_0x943ed4-0x1:_0x6d3414>0x0));}}class _i extends _0x16162e{constructor(_0x2f7ed0){super(_0x2f7ed0);const _0x211b61=this['bindTemplate'],_0x3727d8=new _0x280a4e(_0x2f7ed0),_0x360af6=new _0x280a4e(_0x2f7ed0);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',(_0x3d3e08,_0x3f01af)=>_0x3d3e08&&_0x3f01af>0x0),this['bind']('_statusText')['to'](this,'isReady',this,'currentChangeNumber',this,'numberOfChanges',this,'isNavigationMode',(_0x2cc707,_0x1fa843,_0x55dfea,_0x1fe35c)=>{if(!_0x2cc707)return m(_0x2f7ed0,'Loading...');if(!_0x55dfea)return m(_0x2f7ed0,'No\x20changes');const _0x2afeed=m(_0x2f7ed0,'NUMBER_OF_CHANGES',_0x55dfea);return _0x1fe35c?m(_0x2f7ed0,'X_OF_Y_CHANGES',[_0x1fa843+0x1,_0x55dfea]):_0x2afeed;}),_0x3727d8['set']({'label':m(_0x2f7ed0,'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'}),_0x360af6['set']({'label':m(_0x2f7ed0,'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'}),_0x3727d8['bind']('isEnabled')['to'](this,'isBackwardNavigationEnabled'),_0x360af6['bind']('isEnabled')['to'](this,'isForwardNavigationEnabled'),_0x3727d8['on']('execute',()=>this['fire']('execute','backward')),_0x360af6['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',_0x211b61['if']('_isStatusLabelVisible','ck-hidden',_0x4c14ad=>!_0x4c14ad)]},'children':[{'text':_0x211b61['to']('isNavigationMode',_0x481c7d=>_0x481c7d?m(_0x2f7ed0,'EDIT_X_OF_Y_REVISIONS')+':\x20':m(_0x2f7ed0,'Total')+':\x20')}]},{'text':_0x211b61['to']('_statusText')}]},new _0x5d7297(),{'tag':'div','attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0x3727d8,_0x360af6]}]});}}const ce='ck-editor__editable__loading-overlay';class le extends _0x21f9a0{static get['pluginName'](){return'RevisionViewerLoadingOverlay';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['show'](){const _0x556c46=this['editor']['editing']['view'];_0x556c46['change'](_0x48b0e5=>{for(const _0x26f6d8 of _0x556c46['document']['roots'])_0x48b0e5['addClass'](ce,_0x26f6d8);});}['hide'](){const _0x51e4bd=this['editor']['editing']['view'];_0x51e4bd['change'](_0x1097c6=>{for(const _0x30ac4a of _0x51e4bd['document']['roots'])_0x1097c6['removeClass'](ce,_0x30ac4a);});}}class g extends _0x21f9a0{static get['pluginName'](){return'RevisionViewerUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[d,le];}['init'](){const _0x3713df=this['editor'],_0x2d0dba=_0x3713df['plugins']['get'](d),_0x31efd5=_0x3713df['plugins']['get'](le);_0x3713df['ui']['componentFactory']['add']('exitToEditing',_0x5b1081=>{const _0x5e4594=new _0x280a4e(_0x5b1081);return _0x5e4594['set']({'label':m(_0x5b1081,'Back\x20to\x20editing'),'icon':_0x7e0d0d['undo'],'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this['listenTo'](_0x5e4594,'execute',()=>{_0x3713df['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}),_0x5e4594;}),_0x3713df['ui']['componentFactory']['add']('restoreRevision',_0x2ef3a3=>{const _0x20e049=new _0x280a4e(_0x2ef3a3);return _0x20e049['set']({'label':m(_0x2ef3a3,'Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0x20e049['bind']('isEnabled')['to'](_0x3713df['commands']['get']('restoreRevision')),this['listenTo'](_0x20e049,'execute',()=>_0x3713df['execute']('restoreRevision')),_0x20e049;}),_0x3713df['ui']['componentFactory']['add']('changesNavigation',_0xeba9e9=>{const _0x527e67=new _i(_0xeba9e9),_0x35a9bf=_0x3713df['commands']['get']('showPreviousChange'),_0x518afb=_0x3713df['commands']['get']('showNextChange');return _0x527e67['bind']('isBackwardNavigationEnabled')['to'](_0x35a9bf,'isEnabled'),_0x527e67['bind']('isForwardNavigationEnabled')['to'](_0x518afb,'isEnabled'),_0x527e67['bind']('isReady','currentChangeNumber','numberOfChanges','isNavigationMode')['to'](_0x2d0dba),this['listenTo'](_0x527e67,'execute',(_0x412bea,_0x2c108b)=>{_0x3713df['execute']('forward'===_0x2c108b?'showNextChange':'showPreviousChange');}),_0x527e67;}),_0x31efd5['show'](),_0x2d0dba['on']('change:isReady',(_0x4117a5,_0x3600cc,_0x2ded96)=>{_0x2ded96?_0x31efd5['hide']():_0x31efd5['show']();});}}class pt extends nt{['_resizeObserver']=null;constructor(_0x45c0ed,_0x61652d){super(_0x45c0ed,_0x61652d);const _0x4e3428=this['bindTemplate'];this['set']({'label':m(_0x45c0ed,'Revision\x20name'),'_tooltipString':''}),this['fieldView']['placeholder']=m(_0x45c0ed,'Enter\x20the\x20revision\x20name'),this['extendTemplate']({'tag':'span','attributes':{'class':['ck-revision-history-sidebar__revision-name'],'data-cke-tooltip-text':_0x4e3428['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 _0x559a33=this['fieldView']['element'];this['_tooltipString']=_0x559a33['scrollWidth']>_0x559a33['clientWidth']&&_0x559a33['value']||'';}}class ti extends _0x16162e{constructor(_0x32eecf,_0x5eb765,_0x33f6a6){super(_0x32eecf);const _0x4c5533=new _0x191733();_0x4c5533['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 _0x39bc95=['ck','ck-revision-history-sidebar__revision-author'];_0x33f6a6&&_0x39bc95['push']('ck-revision-history-sidebar__revision-author_creator');const _0x46b705=[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':m(_0x32eecf,_0x33f6a6?'Revision\x20creator':'Revision\x20author')},'children':[_0x4c5533,_0x5eb765['name']]}];this['setTemplate']({'tag':'li','attributes':{'class':_0x39bc95},'children':_0x46b705});}}function ni(_0x91e94,_0x18f390){const _0x593668=_0x91e94['bindTemplate'],_0x2815c3=_0x91e94['locale'],_0x415727=_0x18051a(_0x2815c3);_0x415727['panelPosition']='sw';const _0x461bd5=function(_0x3959d7,_0x11682c){const _0x34a6f6=function(_0x3e72bd,_0x1651f2){const _0x2cb098=_0x3e72bd['locale'],_0x2d7cc5={'Compare\x20against\x20selected':m(_0x2cb098,'Compare\x20against\x20selected'),'Name\x20this\x20revision':m(_0x2cb098,'Name\x20this\x20revision'),'Restore\x20this\x20revision':m(_0x2cb098,'Restore\x20this\x20revision')};return _0x1651f2['map'](_0x1f0c77=>{const _0x38163b=_0x2d7cc5[_0x1f0c77['name']];return _0x38163b&&_0x38163b!==_0x1f0c77['name']&&(_0x1f0c77['name']=_0x38163b),_0x1f0c77;});}(_0x3959d7,_0x11682c),_0x19a0c4=new _0x4043e7();for(const _0x4755f4 of _0x34a6f6){const _0x21a1ed={'type':'button','model':new to({'label':_0x4755f4['name'],'class':_0x4755f4['class'],'withText':!0x0,'role':'menuitem','_action':_0x4755f4['action']})};_0x21a1ed['model']['bind']('isEnabled')['to'](_0x3959d7,'isActionsDropdownOpen',_0x19d502=>'function'!=typeof _0x4755f4['isEnabled']||(!_0x19d502||_0x4755f4['isEnabled'](_0x3959d7))),_0x19a0c4['add'](_0x21a1ed);}return _0x19a0c4;}(_0x91e94,_0x18f390);return _0x91e94['bind']('isActionsDropdownOpen')['to'](_0x415727,'isOpen'),_0x415727['buttonView']['set']({'label':m(_0x2815c3,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x7e0d0d['threeVerticalDots']}),_0x415727['extendTemplate']({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0x593668['if']('isActionsDropdownOpen','ck-on')]},'on':{'click':_0x593668['to'](_0x308542=>_0x308542['stopPropagation']())}}),_0x415727['on']('execute',_0x1c4d17=>{_0x91e94['isReady']&&'function'==typeof _0x1c4d17['source']['_action']&&_0x1c4d17['source']['_action'](_0x91e94);}),_0x2f39dd(_0x415727,_0x461bd5,{'role':'menu'}),_0x415727['listenTo'](_0x91e94,'change:isActionsDropdownOpen',(_0x354ace,_0x13cdac,_0x5d92af)=>{if(_0x5d92af)for(const _0x3a93ec of _0x415727['listView']['items']){const _0xc06b7d=_0x3a93ec['children']['first'],_0x5af667=_0x18f390['find'](_0x1c3ff2=>_0x1c3ff2['action']===_0xc06b7d['_action'])['isVisible'];_0x3a93ec['isVisible']=void 0x0===_0x5af667||_0x5af667(_0x91e94);}}),_0x415727;}class ai extends/* #__PURE__ -- @preserve */
|
|
26
|
+
_0x27f092(_0x16162e){['id'];['revisionNameView'];['revisionActionsView'];['_revision'];['_requireRevisionName'];constructor(_0x20e083,_0x33cd09,_0x13fd58,_0x5e5fce){super(_0x20e083);const _0x2d6500=this['bindTemplate'],_0x571fa3=function(_0x3fb806,_0x15ce09){const _0x482ff0=Array['from'](_0x15ce09['authors'])['filter'](_0x55f01f=>_0x55f01f!=_0x15ce09['creator']);return _0x15ce09['creator']&&_0x482ff0['unshift'](_0x15ce09['creator']),_0x482ff0['map'](_0x2a28f3=>new ti(_0x3fb806,_0x2a28f3,_0x2a28f3==_0x15ce09['creator']));}(_0x20e083,_0x33cd09);this['id']=_0x33cd09['id'],this['_revision']=_0x33cd09,this['_requireRevisionName']=_0x5e5fce,this['bind']('name','createdAt')['to'](_0x33cd09),this['bind']('_createdAtFormatted')['to'](this,'createdAt',_0x3a576b=>{return _0x2466ae=_0x20e083['uiLanguage'],(_0x437c50=_0x3a576b)['toLocaleDateString'](_0x2466ae,{'month':'long','day':'numeric'})+',\x20'+_0x437c50['toLocaleTimeString'](_0x2466ae,{'hour':'numeric','minute':'numeric'});var _0x2466ae,_0x437c50;}),this['set']('isSelected',!0x1),this['set']('isHighlighted',!0x1),this['set']('isActionsDropdownOpen',!0x1),this['set']('isReady',!0x1),this['set']('isEnabled',!0x1),this['revisionNameView']=new pt(_0x20e083,_0x194c4c),this['revisionNameView']['fieldView']['extendTemplate']({'attributes':{'maxlength':'220'}}),this['revisionNameView']['fieldView']['bind']('value')['to'](this,'name',_0x2c1bc7=>_0x2c1bc7||this['_createdAtFormatted']),this['revisionNameView']['bind']('isEnabled')['to'](this,'isSelected',this,'isEnabled',(_0x5b401e,_0x20357e)=>_0x5b401e&&_0x20357e),this['revisionActionsView']=_0x13fd58&&_0x13fd58['length']?ni(this,_0x13fd58):'',this['revisionActionsView']&&this['revisionActionsView']['bind']('isEnabled')['to'](this),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision-wrapper',_0x2d6500['if']('isConfirm','ck-revision-history-sidebar__revision-wrapper_confirmation_visible')]},'children':[{'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision',_0x2d6500['if']('isEnabled','ck-disabled',_0x3f3edc=>!_0x3f3edc),_0x2d6500['if']('isSelected','ck-revision-history-sidebar__revision_selected'),_0x2d6500['if']('isHighlighted','ck-revision-history-sidebar__revision_highlighted'),_0x2d6500['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':_0x2d6500['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':_0x571fa3}]},this['revisionActionsView']],'on':{'click':_0x2d6500['to'](_0x1dfc27=>{_0x1dfc27['srcElement']['closest']('.ck-thread__remove-confirm')||this['isReady']&&this['isEnabled']&&this['fire']('select',{'id':this['id']});})}}]});}['render'](){super['render']();const _0x157837=this['revisionNameView']['fieldView']['element'];this['listenTo'](_0x157837,'change',()=>{this['_requireRevisionName']&&!_0x157837['value']||this['fire']('setName',{'id':this['id'],'name':_0x157837['value']}),_0x157837['value']||(_0x157837['value']=this['name']?this['name']:this['_createdAtFormatted']);});}['select'](){this['isSelected']=!0x0;}['deselect'](){this['isSelected']=!0x1;}['highlight'](){this['isHighlighted']=!0x0;}['unhighlight'](){this['isHighlighted']=!0x1;}}function di(_0x405950,_0xf601aa){const _0x5051b2=_0x313a70['fromJSDate'](_0x405950)['setLocale'](_0xf601aa),_0x16b3c0=_0x313a70['local'](),_0x28811e=_0x16b3c0['minus']({'days':0x1})['startOf']('day');let _0x28271b,_0xfb2b5f;return _0x5051b2['hasSame'](_0x16b3c0,'day')?(_0x28271b=_0x5051b2['startOf']('day')['toJSDate'](),_0xfb2b5f=_0x5051b2['toRelativeCalendar']()):_0x5051b2['hasSame'](_0x28811e,'day')?(_0x28271b=_0x28811e['toJSDate'](),_0xfb2b5f=_0x5051b2['toRelativeCalendar']()):_0x5051b2['hasSame'](_0x16b3c0,'week')?(_0x28271b=_0x5051b2['startOf']('week')['toJSDate'](),_0xfb2b5f=_0x5051b2['weekdayLong']||''):_0x5051b2['hasSame'](_0x16b3c0,'year')?(_0x28271b=_0x5051b2['startOf']('month')['toJSDate'](),_0xfb2b5f=_0x5051b2['monthLong']||''):(_0x28271b=_0x5051b2['startOf']('year')['toJSDate'](),_0xfb2b5f=String(_0x5051b2['year'])),{'startDate':_0x28271b,'localizedPeriodName':_0xfb2b5f};}class mi extends _0x16162e{['startDate'];['revisionViews'];['_revisionActions'];['_requireRevisionName'];constructor(_0x2a4859,_0x7966d5,_0x160d92,_0x4168dc){super(_0x2a4859);const _0x10bee3=di(_0x7966d5,this['locale']['uiLanguage'])['localizedPeriodName'];this['startDate']=_0x7966d5,this['revisionViews']=this['createCollection'](),this['_revisionActions']=_0x160d92,this['_requireRevisionName']=_0x4168dc,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':_0x10bee3}]},{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__time-period__revisions']},'children':this['revisionViews']}]});}['addRevision'](_0x322577){const _0x138af1=new ai(this['locale'],_0x322577,this['_revisionActions'],this['_requireRevisionName']);this['revisionViews']['add'](_0x138af1);}['removeRevision'](_0x3470b6){const _0x21492a=this['revisionViews']['find'](_0x49029f=>_0x49029f['id']===_0x3470b6['id']);this['revisionViews']['remove'](_0x21492a);}}class as extends _0x16162e{constructor(_0x46ad7b){super(_0x46ad7b);const _0xc5af5c=new _0x191733();_0xc5af5c['content']=_0x7e0d0d['history'],this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all','ck-revision-history-sidebar__header']},'children':[_0xc5af5c,{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__header__label']},'children':[m(_0x46ad7b,'Revision\x20history')]}]});}}class ci extends _0x16162e{['timePeriodViews'];['_revisions'];['_revisionActions'];['_requireRevisionName'];constructor(_0x2d690c,_0x1e8e01,_0x586ffb,_0xa472c7){super(_0x2d690c);const _0x34caf8=this['bindTemplate'];this['timePeriodViews']=this['createCollection'](),this['timePeriodViews']['delegate']('select')['to'](this),this['timePeriodViews']['delegate']('setName')['to'](this),this['_revisions']=_0x1e8e01,this['_revisionActions']=_0x586ffb,this['_requireRevisionName']=_0xa472c7,this['on']('select',(_0x47a2ac,_0x15a62a)=>{this['fire']('revisionSelected',_0x15a62a);}),this['on']('setName',(_0x4629eb,_0x423d72)=>{this['fire']('revisionSetName',_0x423d72);}),this['set']('isEnabled',!0x1),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-rounded-corners','ck-revision-history-sidebar']},'children':[new as(_0x2d690c),{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__timeline',_0x34caf8['if']('isEnabled','ck-disabled',_0x52e94a=>!_0x52e94a)]},'children':this['timePeriodViews']}]});}['render'](){super['render']();for(const _0x389116 of this['_revisions'])this['_addRevision'](_0x389116);this['_revisions']['on']('add',(_0x1e136f,_0x1b390a)=>{this['_addRevision'](_0x1b390a);}),this['_revisions']['on']('remove',(_0x2dc8d8,_0x241acb)=>{this['_removeRevision'](_0x241acb);});}get['revisionViews'](){return this['timePeriodViews']['map'](_0x28c642=>_0x28c642['revisionViews']['map'](_0x352d0c=>_0x352d0c))['flat']();}['selectRevision'](_0x28a0de){for(const _0x3d8351 of this['revisionViews'])_0x28a0de&&_0x28a0de['id']===_0x3d8351['id']?_0x3d8351['select']():_0x3d8351['deselect']();}['highlightRevisions'](_0x3f6ae3){for(const _0x535ac6 of this['revisionViews'])_0x3f6ae3['some'](({id:_0x499c82})=>_0x499c82===_0x535ac6['id'])?_0x535ac6['highlight']():_0x535ac6['unhighlight']();}['_addRevision'](_0x33294c){const _0x56dd75=di(_0x33294c['createdAt'],this['locale']['uiLanguage'])['startDate'];let _0x2b66d1=this['timePeriodViews']['get'](0x0);_0x2b66d1&&_0x2b66d1['startDate']['getTime']()===_0x56dd75['getTime']()||(_0x2b66d1=new mi(this['locale'],_0x56dd75,this['_revisionActions'],this['_requireRevisionName']),this['timePeriodViews']['add'](_0x2b66d1)),_0x2b66d1['addRevision'](_0x33294c);}['_removeRevision'](_0x371fd8){const _0x4607ad=di(_0x371fd8['createdAt'],this['locale']['uiLanguage'])['startDate'];this['_getTimePeriodViewByStartDate'](_0x4607ad)['removeRevision'](_0x371fd8);}['_getTimePeriodViewByStartDate'](_0x4526d7){return this['timePeriodViews']['find'](_0x1d95ed=>_0x1d95ed['startDate']['getTime']()===_0x4526d7['getTime']());}}class w extends _0x21f9a0{['_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(_0x312faf,_0x4cf19d){super(_0x4cf19d),this['sourceElement']=_0x312faf,this['model']['document']['createRoot']();const _0x160914=new et(this['locale'],this['editing']['view'],{'shouldToolbarGroupWhenFull':!0x0});this['_ui']=new rt(this,_0x160914);}['destroy'](){return this['updateSourceElement'](),this['ui']['destroy'](),super['destroy']();}static async['create'](_0x214a12,_0x28ec23){const _0x28c011=new this(_0x214a12,_0x28ec23);return await _0x28c011['initPlugins'](),await _0x28c011['ui']['init'](_0x214a12),await _0x28c011['data']['init'](_0x28c011['config']['get']('initialData')||''),_0x28c011['fire']('ready'),_0x28c011;}}const p=['RevisionHistoryUI','RestrictedEditingMode'];class Rt extends _0x4fdbea{['result'];static get['pluginName'](){return'RevisionViewerIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x1007a7){function _0x5dbda6(_0x4f1281){return _0x4f1281['map'](_0x3053bb=>String['fromCharCode'](_0x3053bb))['join']('');}super(_0x1007a7),this['result']='end',_0x1007a7[_0x5dbda6([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5dbda6([0x76,0x69,0x65,0x77])][_0x5dbda6([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x5dbda6([0x61,0x75,0x74,0x6f]),_0x1007a7[_0x5dbda6([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x5dbda6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x5dbda6([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x5dbda6([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x5dbda6([0x6f,0x6b])});}}class k extends _0x4fdbea{['_viewerEditor'];static get['pluginName'](){return'RevisionHistory';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[l,u];}constructor(_0x189674){if(super(_0x189674),!this['editor']['config']['get']('revisionHistory'))throw new _0x254481('revision-history-missing-configuration',this);this['_viewerEditor']=null,this['editor']['config']['define']('revisionHistory.showRevisionViewerCallback',_0x217153=>this['_showRevisionViewer']({..._0x217153,'translations':this['editor']['locale']['translations']})),this['editor']['config']['define']('revisionHistory.closeRevisionViewerCallback',_0x57b228=>this['_closeRevisionViewer'](_0x57b228)),this['editor']['config']['define']('revisionHistory.restoreRevisionCallback',_0x53ea4a=>this['_restoreRevision'](_0x53ea4a)),this['editor']['config']['define']('revisionHistory.requireRevisionName',!0x1),this['_enhanceShowRevisionViewerCallback'](),this['_enhanceCloseRevisionViewerCallback']();}set['adapter'](_0x37f89f){this['editor']['plugins']['get']('RevisionTracker')['adapter']=_0x37f89f;}get['adapter'](){return this['editor']['plugins']['get']('RevisionTracker')['adapter'];}['addRevisionData'](_0x212570){return this['editor']['plugins']['get']('RevisionTracker')['addRevisionData'](_0x212570);}['getRevision'](_0x5e26f5){return this['editor']['plugins']['get']('RevisionsRepository')['getRevision'](_0x5e26f5);}['getRevisions'](_0x59f624){return this['editor']['plugins']['get']('RevisionsRepository')['getRevisions'](_0x59f624||{'toJSON':!0x1});}['_getRevisionViewerEditorConfig'](){const _0x2728ca=this['editor'],_0x4af912=_0x14ddff(_0x2728ca,p),_0x28fded=_0x2728ca['plugins']['get']('RevisionTracker'),_0x326224=_0x2728ca['plugins']['get']('Users')['users'];return _0x4af912['toolbar']=['exitToEditing','restoreRevision','changesNavigation'],delete _0x4af912['lazyRoots'],(_0x4af912['plugins']['push'](Rt,d,g,class extends _0x4fdbea{static get['requires'](){return[d,'Users'];}['init'](){const _0xa6ecba=this['editor']['plugins']['get']('Users');for(const _0x3937e4 of _0x326224)_0x3937e4['isAnonymous']||_0xa6ecba['getUser'](_0x3937e4['id'])||_0xa6ecba['addUser'](_0x3937e4);const _0x276f5c=_0x28fded['repository']['getRevisions']();let _0x495b02=null;const _0x206413=this['editor']['plugins']['get']('RevisionViewer');_0x206413['adapter']=_0x28fded['adapter'],_0x206413['bind']('isEnabled')['to'](_0x28fded),this['editor']['commands']['get']('restoreRevision')['bind']('isEnabled')['to'](_0x2728ca,'isReadOnly',_0x3fb3e1=>!_0x3fb3e1);for(const _0x5dceff of _0x276f5c){const _0x11b00a=null===_0x5dceff['creator'];if(_0x11b00a&&_0x5dceff['toVersion']===_0x5dceff['fromVersion'])continue;const _0x11d4cc=_0x5dceff['toJSON']();_0x206413['addRevisionData'](_0x11d4cc,(_0x8a62c1,_0x2eaac3,_0x9d9bb4)=>{if(_0x11b00a){if(_0x495b02)_0x495b02['_update'](_0x8a62c1,_0x2eaac3);else{if(!_0x2eaac3){const _0x479776=_0x9d9bb4['toJSON']();_0x479776['id']=_0x46c15b(),_0x28fded['saveRevision'](_0x479776,_0x9d9bb4['toVersion'])['then'](_0x4418b5=>{_0x495b02=_0x4418b5;});}}}else _0x5dceff['_update'](_0x8a62c1,_0x2eaac3);});}}},w),_0x4af912);}['_enhanceShowRevisionViewerCallback'](){const _0x4fcdca=this['editor']['config']['get']('revisionHistory')['showRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.showRevisionViewerCallback',async()=>{this['editor']['enableReadOnlyMode']('revision-history-viewer-opened');const _0x195964=this['editor']['plugins']['get']('RevisionTracker');if(this['editor']['plugins']['has']('Autosave')){const _0x4180ed=this['editor']['plugins']['get']('Autosave');await _0x4180ed['save']();}else await _0x195964['update']();if(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('Dialog')){const _0x10c3f5=this['editor']['plugins']['get']('Dialog');_0x10c3f5['isOpen']&&_0x10c3f5['hide']();}const _0x3787fc=this['_getRevisionViewerEditorConfig']();return _0x4fcdca(_0x3787fc)['then'](_0x2d9c8d=>{return(this['_viewerEditor']=_0x2d9c8d,this['editor']['plugins']['has']('Annotations'))&&this['editor']['plugins']['get']('Annotations')['refreshVisibility'](),_0x2d9c8d;})['catch'](_0x1d2e7b=>(console['error'](_0x1d2e7b),this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),null));});}['_enhanceCloseRevisionViewerCallback'](){const _0x627105=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'](),_0x627105(this['_viewerEditor'])['then'](()=>{if(this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),this['_viewerEditor']=null,this['editor']['plugins']['has']('Annotations')){const _0x2c0c70=this['editor']['plugins']['get']('Annotations');_0x2c0c70['refreshVisibility'](),_0x2c0c70['refreshPositioning']();}})));}['_showRevisionViewer'](_0x274960){const _0xe85a37=this['editor']['config']['get']('revisionHistory.editorContainer'),_0x202288=this['editor']['config']['get']('revisionHistory.viewerContainer'),_0x3bacfe=this['editor']['config']['get']('revisionHistory.viewerEditorElement');return R['create'](_0x3bacfe,_0x274960)['then'](_0x2bae45=>(_0x202288['style']['display']='block',_0xe85a37['style']['display']='none',_0x2bae45));}['_closeRevisionViewer'](_0x5b6108){const _0x2280be=this['editor']['config']['get']('revisionHistory.editorContainer');return this['editor']['config']['get']('revisionHistory.viewerContainer')['style']['display']='none',_0x2280be['style']['display']='',_0x5b6108['destroy']();}async['_restoreRevision'](_0x41173b){const _0x5f30a6=this['editor'],_0x571369=this['_viewerEditor']['plugins']['get']('RevisionViewer'),_0x18d1fa=_0x5f30a6['plugins']['get']('RevisionTracker'),_0x321a3e=_0x571369['repository']['getRevision'](_0x41173b);let _0x178cc5,_0x3f6c68,_0x3bd3f9;try{_0x178cc5=await _0x571369['getRevisionData'](_0x321a3e),_0x3f6c68=await _0x571369['getRevisionRootsAttributes'](_0x321a3e);}catch(_0x42e153){return void console['error'](_0x42e153);}_0x5f30a6['model']['change'](_0x3f84d9=>{for(const _0x38e6ea of Array['from'](_0x5f30a6['model']['markers']['getMarkersGroup']('restrictedEditingException')))_0x3f84d9['removeMarker'](_0x38e6ea);}),_0x571369['isReady']=!0x1,_0x5f30a6['model']['enqueueChange'](_0x3e2af2=>{_0x3e2af2['setSelection'](null),_0x3e2af2['removeSelectionAttribute'](_0x5f30a6['model']['document']['selection']['getAttributeKeys']());const _0x5d7a56=Object['keys'](_0x178cc5);for(const _0x3f09f8 of _0x5f30a6['model']['document']['roots'])'$graveyard'!=_0x3f09f8['rootName']&&_0x3f09f8['isAttached']()&&!_0x5d7a56['includes'](_0x3f09f8['rootName'])&&_0x3e2af2['detachRoot'](_0x3f09f8);for(const _0x3fd6dc of _0x5d7a56){let _0x6e7629=_0x5f30a6['model']['document']['getRoot'](_0x3fd6dc);_0x6e7629&&_0x6e7629['isAttached']()||(_0x6e7629=_0x3e2af2['addRoot'](_0x3fd6dc));const _0x218959=_0x3f6c68[_0x3fd6dc],_0x9a1193=Object['keys'](_0x218959),_0x195aba=_0x178cc5[_0x3fd6dc];for(const _0x3a579c of _0x6e7629['getAttributeKeys']())_0x9a1193['includes'](_0x3a579c)||_0x3e2af2['removeAttribute'](_0x3a579c,_0x6e7629);for(const _0x11d4e5 of _0x9a1193)_0x3e2af2['setAttribute'](_0x11d4e5,_0x3f6c68[_0x3fd6dc][_0x11d4e5],_0x6e7629);_0x3e2af2['remove'](_0x3e2af2['createRangeIn'](_0x6e7629)),_0x3e2af2['insert'](_0x5f30a6['data']['parse'](_0x195aba,_0x6e7629),_0x6e7629,0x0);}});const _0x1fa6b0=m(_0x5f30a6['locale'],'Restored');if(_0x321a3e['name'])_0x3bd3f9=-0x1==_0x321a3e['name']['indexOf'](_0x1fa6b0)?_0x1fa6b0+':\x20'+_0x321a3e['name']:_0x321a3e['name'];else _0x3bd3f9=_0x1fa6b0+':\x20'+(_0x321a3e['createdAt']['toLocaleDateString'](_0x5f30a6['locale']['uiLanguage'],{'month':'long','day':'numeric'})+',\x20'+_0x321a3e['createdAt']['toLocaleTimeString'](_0x5f30a6['locale']['uiLanguage'],{'hour':'numeric','minute':'numeric'}));return await _0x18d1fa['saveRevision']({'name':_0x3bd3f9}),_0x571369['isReady']=!0x0,_0x5f30a6['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(_0x3ae2f4){super(_0x3ae2f4),this['_revisionViewer']=_0x3ae2f4['plugins']['get'](d),this['_revisionsRepository']=this['_revisionViewer']['repository'],this['_sidebarView']=null;}['init'](){const _0x5d8a97=this['_revisionsRepository']['_revisions'],_0x4e9bff=this['_createRevisionActions'](),_0xfc0240=this['editor']['config']['get']('revisionHistory.viewerSidebarContainer');this['_sidebarView']=new ci(this['editor']['locale'],_0x5d8a97,_0x4e9bff,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',(_0x1e0c6d,_0x216c3e)=>{_0x216c3e['revisionViews']['on']('add',(_0x18a833,_0x208511)=>{_0x208511['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)),_0xfc0240['appendChild'](this['_sidebarView']['element']);}['destroy'](){this['_sidebarView']['element']['remove'](),this['_sidebarView']['destroy']();}['_handleEditorDataReady'](){const _0x476f8b=this['_revisionsRepository']['getRevision'](0x0);if(_0x476f8b){const _0x12a7e6=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x476f8b['id']);this['_revisionViewer']['compare'](_0x476f8b,_0x12a7e6);}}['_handleRevisionSelected'](_0x57ea53,_0x1686ed){const _0x47c71b=this['_revisionsRepository']['getRevision'](_0x1686ed['id']),_0x464e3f=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x47c71b['id']);this['_revisionViewer']['compare'](_0x47c71b,_0x464e3f);}['_handleRevisionSetName'](_0x222b29,_0x2710e0){this['_revisionsRepository']['getRevision'](_0x2710e0['id'])['setName'](_0x2710e0['name']);}['_handleDiffChange'](_0x310d73,_0x8e49d2,_0x575139){const _0x496801=this['_revisionsRepository']['getRevisionsInDiff'](_0x575139);_0x496801['length']>0x2?(this['_sidebarView']['highlightRevisions'](_0x496801),this['_sidebarView']['selectRevision'](null)):(this['_sidebarView']['highlightRevisions']([]),this['_sidebarView']['selectRevision'](_0x496801[0x0]));}['_createRevisionActions'](){const _0x373fd0=this['editor'],_0x5b0ae7=w['availableRevisionActions'],_0x5d7979=_0x373fd0['config']['get']('revisionHistory.revisionActions')||w['defaultRevisionActions'];if(_0x5d7979['length'])return _0x5d7979['map'](_0x5a098e=>{const _0x434869='string'==typeof _0x5a098e?Object['assign']({},_0x5b0ae7[_0x5a098e]):_0x5a098e;return _0x434869['action']=_0x434869['action']['bind'](this,_0x373fd0),_0x434869['isVisible']&&(_0x434869['isVisible']=_0x434869['isVisible']['bind'](this,_0x373fd0)),_0x434869;});}}function bt(){return{'compareAgainstSelected':{'name':'Compare\x20against\x20selected','action':({plugins:_0x37a271},_0x20ec5e)=>{const _0x4cfd25=_0x37a271['get'](d),_0x553811=_0x4cfd25['repository'];let _0x4b8696=_0x4cfd25['diff']['newRevisionId'],_0x342d7b=_0x20ec5e['id'];_0x553811['getIndex'](_0x4b8696)>_0x553811['getIndex'](_0x342d7b)&&([_0x4b8696,_0x342d7b]=[_0x342d7b,_0x4b8696]),_0x4cfd25['compare'](_0x4b8696,_0x342d7b);},'isVisible':({plugins:_0x500980},_0x22c193)=>{const _0x1830d4=_0x500980['get'](d);return!(_0x1830d4['repository']['getRevisionsInDiff'](_0x1830d4['diff'])['length']>0x2)&&!_0x22c193['isSelected'];}},'restoreRevision':{'name':'Restore\x20this\x20revision','action':(_0x271a3e,{id:_0x5fcbce})=>{_0x271a3e['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x5fcbce);},'isVisible':({plugins:_0x511d3e},_0x1d7e5c)=>!!_0x511d3e['get'](d)['repository']['getLaterVisibleRevision'](_0x1d7e5c['id'])},'nameRevision':{'name':'Name\x20this\x20revision','action':({plugins:_0x4cdec1},{id:_0x1bec4e,revisionNameView:_0x1efc2a})=>{const _0x575b36=_0x4cdec1['get'](d),_0x14d61d=_0x575b36['repository']['getEarlierVisibleRevision'](_0x1bec4e);_0x575b36['compare'](_0x1bec4e,_0x14d61d),_0x1efc2a['focus'](),_0x1efc2a['fieldView']['select']();}}};}class rt extends st{['_view'];['_toolbarConfig'];['_elementReplacer'];get['view'](){return this['_view'];}constructor(_0x200ad0,_0x407e0e){super(_0x200ad0),this['_view']=_0x407e0e,this['_toolbarConfig']=ot(_0x200ad0['config']['get']('toolbar')),this['_elementReplacer']=new ht();}get['element'](){return this['view']['element'];}['init'](_0x319a94){const _0x260a91=this['editor'],_0x379465=this['view'],_0x271e07=_0x260a91['editing']['view'],_0x2b178b=_0x379465['editable'],_0x47d4a7=_0x271e07['document']['getRoot']();_0x2b178b['name']=_0x47d4a7['rootName'],_0x379465['render']();const _0xe78778=_0x2b178b['element'];this['setEditableElement'](_0x2b178b['name'],_0xe78778),_0x379465['editable']['bind']('isFocused')['to'](this['focusTracker']),_0x271e07['attachDomRoot'](_0xe78778),this['_elementReplacer']['replace'](_0x319a94,this['element']),this['_initToolbar'](),this['fire']('ready');}['destroy'](){super['destroy']();const _0x23d0b9=this['view'],_0x4f9bd7=this['editor']['editing']['view'];this['_elementReplacer']['restore'](),_0x4f9bd7['detachDomRoot'](_0x23d0b9['editable']['name']),_0x23d0b9['destroy']();}['_initToolbar'](){const _0x1881cc=this['view'];_0x1881cc['stickyPanel']['bind']('isActive')['to'](this['focusTracker'],'isFocused'),_0x1881cc['stickyPanel']['limiterElement']=_0x1881cc['element'],_0x1881cc['stickyPanel']['bind']('viewportTopOffset')['to'](this,'viewportOffset',({top:_0x5ef61c})=>_0x5ef61c),_0x1881cc['toolbar']['fillFromConfig'](this['_toolbarConfig'],this['componentFactory']),this['addToolbar'](_0x1881cc['toolbar']);}}class et extends ct{['_editable'];['stickyPanel'];['toolbar'];get['editable'](){return this['_editable'];}constructor(_0x3fede1,_0x19f5c2,_0x28f6cf={}){super(_0x3fede1),this['stickyPanel']=new ut(_0x3fede1),this['toolbar']=new lt(_0x3fede1,{'shouldGroupWhenFull':_0x28f6cf['shouldToolbarGroupWhenFull']}),this['_editable']=new dt(_0x3fede1,_0x19f5c2);}['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(_0x34f31c,_0x4a9b20){super(_0x4a9b20),this['sourceElement']=_0x34f31c,this['model']['document']['createRoot']();const _0x538e6e=new et(this['locale'],this['editing']['view'],{'shouldToolbarGroupWhenFull':!0x0});this['_ui']=new rt(this,_0x538e6e);}['destroy'](){return this['updateSourceElement'](),this['ui']['destroy'](),super['destroy']();}static async['create'](_0x3c4b33,_0x4351e1){const _0x5eebc6=new this(_0x3c4b33,_0x4351e1);return await _0x5eebc6['initPlugins'](),await _0x5eebc6['ui']['init'](_0x3c4b33),await _0x5eebc6['data']['init'](_0x5eebc6['config']['get']('initialData')||''),_0x5eebc6['fire']('ready'),_0x5eebc6;}}const p=['RevisionHistoryUI','RestrictedEditingMode'];class Rt extends _0x21f9a0{['result'];static get['pluginName'](){return'RevisionViewerIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x2899f0){function _0x3ade81(_0x2f66ae){return _0x2f66ae['map'](_0x30c840=>String['fromCharCode'](_0x30c840))['join']('');}super(_0x2899f0),this['result']='end',_0x2899f0[_0x3ade81([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3ade81([0x76,0x69,0x65,0x77])][_0x3ade81([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x3ade81([0x61,0x75,0x74,0x6f]),_0x2899f0[_0x3ade81([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x3ade81([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x3ade81([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x3ade81([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x3ade81([0x6f,0x6b])});}}class k extends _0x21f9a0{['_viewerEditor'];static get['pluginName'](){return'RevisionHistory';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[l,u];}constructor(_0x528228){if(super(_0x528228),!this['editor']['config']['get']('revisionHistory'))throw new _0x3a4067('revision-history-missing-configuration',this);this['_viewerEditor']=null,this['editor']['config']['define']('revisionHistory.showRevisionViewerCallback',_0x442518=>this['_showRevisionViewer']({..._0x442518,'translations':this['editor']['locale']['translations']})),this['editor']['config']['define']('revisionHistory.closeRevisionViewerCallback',_0x2b29d0=>this['_closeRevisionViewer'](_0x2b29d0)),this['editor']['config']['define']('revisionHistory.restoreRevisionCallback',_0x50c8bc=>this['_restoreRevision'](_0x50c8bc)),this['editor']['config']['define']('revisionHistory.requireRevisionName',!0x1),this['_enhanceShowRevisionViewerCallback'](),this['_enhanceCloseRevisionViewerCallback']();}set['adapter'](_0x542e51){this['editor']['plugins']['get']('RevisionTracker')['adapter']=_0x542e51;}get['adapter'](){return this['editor']['plugins']['get']('RevisionTracker')['adapter'];}['addRevisionData'](_0x13c6c3){return this['editor']['plugins']['get']('RevisionTracker')['addRevisionData'](_0x13c6c3);}['getRevision'](_0x1c10ba){return this['editor']['plugins']['get']('RevisionsRepository')['getRevision'](_0x1c10ba);}['getRevisions'](_0x302707){return this['editor']['plugins']['get']('RevisionsRepository')['getRevisions'](_0x302707||{'toJSON':!0x1});}['_getRevisionViewerEditorConfig'](){const _0x31411a=this['editor'],_0x35b9e4=_0x31b91b(_0x31411a,p),_0x58298c=_0x31411a['plugins']['get']('RevisionTracker'),_0x379420=_0x31411a['plugins']['get']('Users')['users'];return _0x35b9e4['toolbar']=['exitToEditing','restoreRevision','changesNavigation'],delete _0x35b9e4['lazyRoots'],(_0x35b9e4['plugins']['push'](Rt,d,g,class extends _0x21f9a0{static get['requires'](){return[d,'Users'];}['init'](){const _0x3f23f5=this['editor']['plugins']['get']('Users');for(const _0x1bcb85 of _0x379420)_0x1bcb85['isAnonymous']||_0x3f23f5['getUser'](_0x1bcb85['id'])||_0x3f23f5['addUser'](_0x1bcb85);const _0x6ca20d=_0x58298c['repository']['getRevisions']();let _0x50446e=null;const _0x9829f4=this['editor']['plugins']['get']('RevisionViewer');_0x9829f4['adapter']=_0x58298c['adapter'],_0x9829f4['bind']('isEnabled')['to'](_0x58298c),this['editor']['commands']['get']('restoreRevision')['bind']('isEnabled')['to'](_0x31411a,'isReadOnly',_0x25aacf=>!_0x25aacf);for(const _0x11593c of _0x6ca20d){const _0x1ec9cc=null===_0x11593c['creator'];if(_0x1ec9cc&&_0x11593c['toVersion']===_0x11593c['fromVersion'])continue;const _0x203344=_0x11593c['toJSON']();_0x9829f4['addRevisionData'](_0x203344,(_0x1bb155,_0x404b44,_0x5a92c1)=>{if(_0x1ec9cc){if(_0x50446e)_0x50446e['_update'](_0x1bb155,_0x404b44);else{if(!_0x404b44){const _0x4d8580=_0x5a92c1['toJSON']();_0x4d8580['id']=_0x2afce3(),_0x58298c['saveRevision'](_0x4d8580,_0x5a92c1['toVersion'])['then'](_0x4b52e9=>{_0x50446e=_0x4b52e9;});}}}else _0x11593c['_update'](_0x1bb155,_0x404b44);});}}},w),_0x35b9e4);}['_enhanceShowRevisionViewerCallback'](){const _0x30139c=this['editor']['config']['get']('revisionHistory')['showRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.showRevisionViewerCallback',async()=>{this['editor']['enableReadOnlyMode']('revision-history-viewer-opened');const _0x2e7145=this['editor']['plugins']['get']('RevisionTracker');if(this['editor']['plugins']['has']('Autosave')){const _0x5872e8=this['editor']['plugins']['get']('Autosave');await _0x5872e8['save']();}else await _0x2e7145['update']();if(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('Dialog')){const _0x3f76c=this['editor']['plugins']['get']('Dialog');_0x3f76c['isOpen']&&_0x3f76c['hide']();}const _0x35fb5c=this['_getRevisionViewerEditorConfig']();return _0x30139c(_0x35fb5c)['then'](_0x4d91a8=>{return(this['_viewerEditor']=_0x4d91a8,this['editor']['plugins']['has']('Annotations'))&&this['editor']['plugins']['get']('Annotations')['refreshVisibility'](),_0x4d91a8;})['catch'](_0x2ff44c=>(console['error'](_0x2ff44c),this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),null));});}['_enhanceCloseRevisionViewerCallback'](){const _0x1aa371=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'](),_0x1aa371(this['_viewerEditor'])['then'](()=>{if(this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),this['_viewerEditor']=null,this['editor']['plugins']['has']('Annotations')){const _0x37ebec=this['editor']['plugins']['get']('Annotations');_0x37ebec['refreshVisibility'](),_0x37ebec['refreshPositioning']();}})));}['_showRevisionViewer'](_0x56e645){const _0x5a9826=this['editor']['config']['get']('revisionHistory.editorContainer'),_0x535b4c=this['editor']['config']['get']('revisionHistory.viewerContainer'),_0x2ff545=this['editor']['config']['get']('revisionHistory.viewerEditorElement');return R['create'](_0x2ff545,_0x56e645)['then'](_0x42ff8d=>(_0x535b4c['style']['display']='block',_0x5a9826['style']['display']='none',_0x42ff8d));}['_closeRevisionViewer'](_0x476267){const _0x431080=this['editor']['config']['get']('revisionHistory.editorContainer');return this['editor']['config']['get']('revisionHistory.viewerContainer')['style']['display']='none',_0x431080['style']['display']='',_0x476267['destroy']();}async['_restoreRevision'](_0x3320ad){const _0x46da23=this['editor'],_0x31049a=this['_viewerEditor']['plugins']['get']('RevisionViewer'),_0x47e46b=_0x46da23['plugins']['get']('RevisionTracker'),_0x4c0db2=_0x31049a['repository']['getRevision'](_0x3320ad);let _0x56cdaf,_0x21e0c3,_0xa7a075;try{_0x56cdaf=await _0x31049a['getRevisionData'](_0x4c0db2),_0x21e0c3=await _0x31049a['getRevisionRootsAttributes'](_0x4c0db2);}catch(_0x1e775a){return void console['error'](_0x1e775a);}_0x46da23['model']['change'](_0x5f0265=>{for(const _0x380e1a of Array['from'](_0x46da23['model']['markers']['getMarkersGroup']('restrictedEditingException')))_0x5f0265['removeMarker'](_0x380e1a);}),_0x31049a['isReady']=!0x1,_0x46da23['model']['enqueueChange'](_0x317c71=>{_0x317c71['setSelection'](null),_0x317c71['removeSelectionAttribute'](_0x46da23['model']['document']['selection']['getAttributeKeys']());const _0x3e1fa2=Object['keys'](_0x56cdaf);for(const _0x50e6a0 of _0x46da23['model']['document']['roots'])'$graveyard'!=_0x50e6a0['rootName']&&_0x50e6a0['isAttached']()&&!_0x3e1fa2['includes'](_0x50e6a0['rootName'])&&_0x317c71['detachRoot'](_0x50e6a0);for(const _0x46c097 of _0x3e1fa2){let _0x4f46a5=_0x46da23['model']['document']['getRoot'](_0x46c097);_0x4f46a5&&_0x4f46a5['isAttached']()||(_0x4f46a5=_0x317c71['addRoot'](_0x46c097));const _0x55d62c=_0x21e0c3[_0x46c097],_0x5ed653=Object['keys'](_0x55d62c),_0x4a9f4c=_0x56cdaf[_0x46c097];for(const _0x3ab991 of _0x4f46a5['getAttributeKeys']())_0x5ed653['includes'](_0x3ab991)||_0x317c71['removeAttribute'](_0x3ab991,_0x4f46a5);for(const _0x33a390 of _0x5ed653)_0x317c71['setAttribute'](_0x33a390,_0x21e0c3[_0x46c097][_0x33a390],_0x4f46a5);_0x317c71['remove'](_0x317c71['createRangeIn'](_0x4f46a5)),_0x317c71['insert'](_0x46da23['data']['parse'](_0x4a9f4c,_0x4f46a5),_0x4f46a5,0x0);}});const _0x20dc47=m(_0x46da23['locale'],'Restored');if(_0x4c0db2['name'])_0xa7a075=-0x1==_0x4c0db2['name']['indexOf'](_0x20dc47)?_0x20dc47+':\x20'+_0x4c0db2['name']:_0x4c0db2['name'];else _0xa7a075=_0x20dc47+':\x20'+(_0x4c0db2['createdAt']['toLocaleDateString'](_0x46da23['locale']['uiLanguage'],{'month':'long','day':'numeric'})+',\x20'+_0x4c0db2['createdAt']['toLocaleTimeString'](_0x46da23['locale']['uiLanguage'],{'hour':'numeric','minute':'numeric'}));return await _0x47e46b['saveRevision']({'name':_0xa7a075}),_0x31049a['isReady']=!0x0,_0x46da23['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}}export{a as Revision,k as RevisionHistory,u as RevisionHistoryUI,l as RevisionTracker,d as RevisionViewer,le as RevisionViewerLoadingOverlay,g as RevisionViewerUI,j as RevisionsRepository,w as RevisionsSidebar};
|