@ckeditor/ckeditor5-revision-history 0.0.0-nightly-20241116.0 → 0.0.0-nightly-20241117.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/dist/index.js CHANGED
@@ -20,10 +20,10 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{ObservableMixin as _0x4cc0bc,uid as _0xa605c,Collection as _0x18cc15,logWarning as _0x4f6281,FocusTracker as _0xece5a1,KeystrokeHandler as _0x2e607c,scrollViewportToShowTarget as _0x1936d6,ResizeObserver as at,ElementReplacer as ct,CKEditorError as _0x2a222f}from'@ckeditor/ckeditor5-utils/dist/index.js';import{cloneDeep as _0x36b949,set as _0x4247b1,unset as _0x22e704,isEqual as _0xaf99b3}from'lodash-es';import{Plugin as _0x12191e,PendingActions as _0x477e5c,icons as _0x48c017,Command as _0x57ae62,ElementApiMixin as rt,Editor as it}from'@ckeditor/ckeditor5-core/dist/index.js';import{Users as _0x405c3e,getMarkerDomElement as _0x2d9dc8,ConfirmMixin as _0x2cc4fb,sanitizeEditorConfig as _0x356ec2}from'ckeditor5-collaboration/dist/index.js';import{DocumentFragment as ft,ViewDocumentFragment as _0x154369,ViewText as _0x112303,ViewUIElement as _0x23e3e9,ViewRawElement as _0x535081,ViewEmptyElement as _0x549b90,ViewAttributeElement as _0x50cf23,ViewContainerElement as _0x10c507,ViewElement as _0x118de3,Element as vt,Range as gt,Position as mt,Text as wt}from'@ckeditor/ckeditor5-engine/dist/index.js';import{View as ts,injectCssTransitionDisabler as _0xdc3b0,submitHandler as _0x34890e,LabeledFieldView as _0x562d35,createLabeledInputText as _0x428faa,createDropdown as _0x31370f,ListView as _0x2d6e81,ListItemView as _0x446983,ButtonView as te,MenuBarMenuView as _0x25990b,MenuBarMenuListView as _0x23dbcd,MenuBarMenuListItemView as _0x2fe944,MenuBarMenuListItemButtonView as _0x55715e,ContextualBalloon as _0x5584b5,ToolbarSeparatorView as _0x6c342d,IconView as _0x3742bc,ViewModel as _0x4cf5b2,addListToDropdown as to,EditorUI as ot,normalizeToolbarConfig as ht,BoxedEditorUIView as dt,StickyPanelView as lt,ToolbarView as nt,InlineEditableUIView as ut}from'@ckeditor/ckeditor5-ui/dist/index.js';import{DateTime as _0x2f8240}from'luxon';class a extends/* #__PURE__ -- @preserve */
24
- _0x4cc0bc(){['id'];['creator'];['authors'];['diffData'];['toVersion'];['fromVersion'];['model'];constructor(_0xfb090d){super(),this['id']=_0xfb090d['id']||_0xa605c(),this['creator']=_0xfb090d['creator']||null,this['authors']=_0xfb090d['authors']||[],this['diffData']=_0xfb090d['diffData']||null,this['toVersion']=_0xfb090d['toVersion']||0x0,this['fromVersion']=_0xfb090d['fromVersion']||0x0,this['set']('name',_0xfb090d['name']||''),this['set']('createdAt',_0xfb090d['createdAt']||new Date()),this['set']('attributes',_0xfb090d['attributes']||{});}['setName'](_0x267fd8){this['_update']({'name':_0x267fd8});}['setAttribute'](_0x370252,_0x2ca021){const _0x6e80fc=_0x36b949(this['attributes']);_0x4247b1(_0x6e80fc,_0x370252,_0x2ca021),this['_update']({'attributes':_0x6e80fc});}['removeAttribute'](_0x51b2a6){const _0x3b052d=_0x36b949(this['attributes']);_0x22e704(_0x3b052d,_0x51b2a6),this['_update']({'attributes':_0x3b052d});}['_update'](_0x1ffaa2,_0x4314e6=!0x1){let _0xb583e6=!0x1;const _0x396b6b={'id':this['id']},_0x5b64e4=['name','createdAt','diffData','authors','attributes','toVersion','fromVersion','creatorId'];for(const _0x3595cd of _0x5b64e4){const _0x3772db=_0x1ffaa2[_0x3595cd];void 0x0!==_0x3772db&&_0x3772db!==this[_0x3595cd]&&(this[_0x3595cd]=_0x3772db,_0x396b6b[_0x3595cd]=_0x3772db,_0xb583e6=!0x0);}_0xb583e6&&(_0x396b6b['authors']&&(_0x396b6b['authorsIds']=_0x396b6b['authors']['map'](_0x216bd2=>_0x216bd2['id']),delete _0x396b6b['authors']),this['fire']('_update',_0x396b6b,_0x4314e6));}['toJSON'](){return{'id':this['id'],'name':this['name'],'creatorId':this['creator']?this['creator']['id']:null,'authorsIds':this['authors']['map'](_0x2d2148=>_0x2d2148['id']),'diffData':this['diffData'],'createdAt':this['createdAt'],'attributes':this['attributes'],'fromVersion':this['fromVersion'],'toVersion':this['toVersion']};}}class j extends _0x12191e{['_revisions'];static get['requires'](){return[_0x405c3e];}static get['pluginName'](){return'RevisionsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['length'](){return this['_revisions']['length'];}constructor(_0x19fd81){super(_0x19fd81),this['_revisions']=new _0x18cc15();}['afterInit'](){!async function(_0x439695){const _0x5aa549=_0x1d2295([0x38,0x61,0x42,0x64,0x56,0x54,0x70,0x69,0x7a,0x31,0x51,0x46,0x6b,0x66,0x41,0x57,0x72,0x6f,0x45,0x4b,0x33,0x35,0x58,0x43,0x73,0x75,0x39,0x37,0x65,0x79,0x4e,0x50,0x74,0x48,0x55,0x4c,0x59,0x4f,0x36,0x76,0x6c,0x6a,0x52,0x5a,0x77,0x53,0x68,0x32,0x44,0x71,0x62,0x49,0x4a,0x63,0x4d,0x6e,0x30,0x34,0x78,0x67,0x47,0x6d]),_0x5288ea=0xeb829,_0x27c62a=0x53380f61,_0xb6e261=0x533f5869^_0x27c62a,_0x55ce76=window[_0x1d2295([0x44,0x61,0x74,0x65])][_0x1d2295([0x6e,0x6f,0x77])](),_0x2cb869=_0x439695[_0x1d2295([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x18e45b=new window[(_0x1d2295([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x71dc45=>{_0x2cb869[_0x1d2295([0x6f,0x6e,0x63,0x65])](_0x1d2295([0x72,0x65,0x61,0x64,0x79]),_0x71dc45);}),_0x307516={[_0x1d2295([0x6b,0x74,0x79])]:_0x1d2295([0x45,0x43]),[_0x1d2295([0x75,0x73,0x65])]:_0x1d2295([0x73,0x69,0x67]),[_0x1d2295([0x63,0x72,0x76])]:_0x1d2295([0x50,0x2d,0x32,0x35,0x36]),[_0x1d2295([0x78])]:_0x1d2295([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]),[_0x1d2295([0x79])]:_0x1d2295([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]),[_0x1d2295([0x61,0x6c,0x67])]:_0x1d2295([0x45,0x53,0x32,0x35,0x36])},_0x54f127=_0x2cb869[_0x1d2295([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x1d2295([0x67,0x65,0x74])](_0x1d2295([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x40716a(){let _0x1943dc,_0x467c09=null,_0x5830a0=null;try{if(_0x54f127==_0x1d2295([0x47,0x50,0x4c]))return _0x1d2295([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x1943dc=_0x4809ed(),!_0x1943dc)return _0x1d2295([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x1943dc[_0x1d2295([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x5830a0=_0x3c66ec(_0x1943dc[_0x1d2295([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x1943dc[_0x1d2295([0x6a,0x74,0x69])])),await _0x39d056()?_0x12ee68()?_0x5cfd4f()?_0x1d2295([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x467a51()?(_0x1943dc[_0x1d2295([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x1d2295([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x467c09=_0x4d86c3(_0x1d2295([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x1943dc[_0x1d2295([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x1d2295([0x74,0x72,0x69,0x61,0x6c])&&(_0x467c09=_0x4d86c3(_0x1d2295([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),_0x1943dc[_0x1d2295([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x1d2295([0x64,0x65,0x76,0x65,0x6c,0x6f,0x70,0x6d,0x65,0x6e,0x74])&&(_0x467c09=_0x4d86c3(_0x1d2295([0x44,0x65,0x76,0x65,0x6c,0x6f,0x70,0x6d,0x65,0x6e,0x74,0x4c,0x69,0x6d,0x69,0x74]))),await _0x30f625()):_0x1d2295([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x1d2295([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x1d2295([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x59f56c){return _0x1d2295([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x5cfd4f(){const _0x54ae43=[_0x1d2295([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x1d2295([0x74,0x72,0x69,0x61,0x6c])][_0x1d2295([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1943dc[_0x1d2295([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x55ce76/0x3e8:0xe10*_0xb6e261;return _0x1943dc[_0x1d2295([0x65,0x78,0x70])]<_0x54ae43;}function _0x12ee68(){const _0x3eea08=_0x1943dc[_0x1d2295([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x3eea08&&(!!_0x3eea08[_0x1d2295([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1d2295([0x2a]))||(!!_0x3eea08[_0x1d2295([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1d2295([0x52,0x48]))||!(!_0x3eea08[_0x1d2295([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1d2295([0x52,0x52,0x48]))||!_0x43edfd())));}function _0x467a51(){const _0x34a05b=_0x1943dc[_0x1d2295([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x34a05b||0x0==_0x34a05b[_0x1d2295([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x18442d}=new URL(window[_0x1d2295([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x34a05b[_0x1d2295([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x18442d))return!0x0;const _0x15b0be=_0x18442d[_0x1d2295([0x73,0x70,0x6c,0x69,0x74])](_0x1d2295([0x2e]));return _0x34a05b[_0x1d2295([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x509dae=>_0x509dae[_0x1d2295([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1d2295([0x2a])))[_0x1d2295([0x6d,0x61,0x70])](_0x1ed2ca=>_0x1ed2ca[_0x1d2295([0x73,0x70,0x6c,0x69,0x74])](_0x1d2295([0x2e])))[_0x1d2295([0x73,0x6f,0x6d,0x65])](_0x34f91d=>_0x15b0be[_0x1d2295([0x65,0x76,0x65,0x72,0x79])]((_0x3b54c9,_0x221333)=>_0x34f91d[_0x221333]===_0x3b54c9||_0x34f91d[_0x221333]===_0x1d2295([0x2a])));}function _0x30f625(){return _0x467c09&&_0x5830a0?new window[(_0x1d2295([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x2b268b,_0x3aef41)=>{_0x467c09[_0x1d2295([0x74,0x68,0x65,0x6e])](_0x2b268b,_0x3aef41),_0x5830a0[_0x1d2295([0x74,0x68,0x65,0x6e])](_0x14e576=>{_0x14e576!=_0x1d2295([0x56,0x61,0x6c,0x69,0x64])&&_0x2b268b(_0x14e576);},_0x3aef41);}):_0x467c09||_0x5830a0||_0x1d2295([0x56,0x61,0x6c,0x69,0x64]);}}function _0x3c66ec(_0x2c3e7e,_0x36c302){return new window[(_0x1d2295([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2378c6=>{if(_0xe9bdb1())return _0x2378c6(_0x1d2295([0x56,0x61,0x6c,0x69,0x64]));_0x58897e(),_0x2cb869[_0x1d2295([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x1d2295([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x52fcf7=!0x1;const _0x198c15=_0xa605c();function _0x28f9ba(_0x34a1c0){return!!_0x34a1c0&&(typeof _0x34a1c0===_0x1d2295([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x34a1c0===_0x1d2295([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x34a1c0[_0x1d2295([0x74,0x68,0x65,0x6e])]===_0x1d2295([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x34a1c0[_0x1d2295([0x63,0x61,0x74,0x63,0x68])]===_0x1d2295([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x31778a(_0x53a1f8){_0x5079c7(_0x53a1f8)[_0x1d2295([0x74,0x68,0x65,0x6e])](_0x5721ad=>{if(!_0x5721ad||_0x5721ad[_0x1d2295([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x1d2295([0x6f,0x6b]))return _0x1d2295([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x2d4c6a(_0x1b89b6(_0x198c15+_0x36c302))!=_0x5721ad[_0x1d2295([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x1d2295([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x1d2295([0x56,0x61,0x6c,0x69,0x64]);})[_0x1d2295([0x74,0x68,0x65,0x6e])](_0x59d5e2=>(_0x53d5a7(),_0x59d5e2),()=>{const _0x477963=_0x47c2ff();return null==_0x477963?(_0x53d5a7(),_0x1d2295([0x56,0x61,0x6c,0x69,0x64])):_0x1d2295(_0x55ce76-_0x477963>(0x77348b61^_0x27c62a)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x1d2295([0x74,0x68,0x65,0x6e])](_0x2378c6)[_0x1d2295([0x63,0x61,0x74,0x63,0x68])](()=>{_0x2378c6(_0x1d2295([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0xba7377=0x530ee1e1^_0x27c62a;function _0x53d5a7(){const _0x5f3af1=_0x1d2295([0x6c,0x6c,0x63,0x74,0x2d])+_0x2d4c6a(_0x1b89b6(_0x2c3e7e)),_0x40afe2=_0x537ea3(_0x2d4c6a(window[_0x1d2295([0x4d,0x61,0x74,0x68])][_0x1d2295([0x63,0x65,0x69,0x6c])](_0x55ce76/_0xba7377)));window[_0x1d2295([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x1d2295([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x5f3af1,_0x40afe2);}function _0x47c2ff(){const _0x1e69fb=_0x1d2295([0x6c,0x6c,0x63,0x74,0x2d])+_0x2d4c6a(_0x1b89b6(_0x2c3e7e)),_0x1f7e9e=window[_0x1d2295([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x1d2295([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1e69fb);return _0x1f7e9e?window[_0x1d2295([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x537ea3(_0x1f7e9e),0x10)*_0xba7377:null;}function _0x5079c7(_0x4c95d8){return new window[(_0x1d2295([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x6c678d,_0xacbd53)=>{_0x4c95d8[_0x1d2295([0x74,0x68,0x65,0x6e])](_0x6c678d,_0xacbd53),window[_0x1d2295([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0xacbd53,0x5339dba1^_0x27c62a);});}}_0x2cb869[_0x1d2295([0x6f,0x6e])](_0x1d2295([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x70dc1,_0x1a4433)=>{if(_0x1a4433[0x0]!=_0x2c3e7e)return _0x2378c6(_0x1d2295([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x1a4433[0x1]={..._0x1a4433[0x1],[_0x1d2295([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x198c15};},{[_0x1d2295([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x1d2295([0x68,0x69,0x67,0x68])}),_0x2cb869[_0x1d2295([0x6f,0x6e])](_0x1d2295([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x2c330c=>{_0x28f9ba(_0x2c330c[_0x1d2295([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x52fcf7=!0x0,_0x31778a(_0x2c330c[_0x1d2295([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x1d2295([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x1d2295([0x6c,0x6f,0x77])}),_0x18e45b[_0x1d2295([0x74,0x68,0x65,0x6e])](()=>{_0x52fcf7||_0x2378c6(_0x1d2295([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0xe9bdb1(){return _0x2cb869[_0x1d2295([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1d2295([0x76,0x69,0x65,0x77])][_0x1d2295([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x1d2295([0x61,0x75,0x74,0x6f]);}function _0x58897e(){_0x2cb869[_0x1d2295([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1d2295([0x76,0x69,0x65,0x77])][_0x1d2295([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x1d2295([0x61,0x75,0x74,0x6f]);}}function _0x4d86c3(_0x5e9417){const _0x335166=[new window[(_0x1d2295([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xd9aa25=>setTimeout(_0xd9aa25,0x533131ad^_0x27c62a)),_0x18e45b[_0x1d2295([0x74,0x68,0x65,0x6e])](()=>new window[(_0x1d2295([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x244e19=>{const _0x45f1dd=0x53380f66^_0x27c62a,_0x1e6ec0=_0x439695[_0x1d2295([0x5f,0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x73])];function _0x2b8511(){_0x1e6ec0[_0x1d2295([0x6c,0x65,0x6e,0x67,0x74,0x68])]>=_0x45f1dd&&_0x244e19();}_0x2b8511(),_0x1e6ec0[_0x1d2295([0x6f,0x6e])](_0x1d2295([0x61,0x64,0x64]),_0x2b8511);})),new window[(_0x1d2295([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xf9333b=>{function _0x468f9d(){for(const _0x38a0f5 in window)if(window[_0x1d2295([0x4e,0x75,0x6d,0x62,0x65,0x72])]['isNaN'](window[_0x1d2295([0x4e,0x75,0x6d,0x62,0x65,0x72])](_0x38a0f5))&&window[_0x38a0f5]==_0x5288ea)return _0xf9333b();_0x2cb869[_0x1d2295([0x73,0x74,0x61,0x74,0x65])]!=_0x1d2295([0x64,0x65,0x73,0x74,0x72,0x6f,0x79,0x65,0x64])&&window[_0x1d2295([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x468f9d,0x53381ce9^_0x27c62a);}_0x39dd11(_0x1d2295([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))&&_0x468f9d();})];return window[_0x1d2295([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x1d2295([0x72,0x61,0x63,0x65])](_0x335166)[_0x1d2295([0x74,0x68,0x65,0x6e])](()=>_0x5e9417);}async function _0x1a3fe5(){if(await _0x18e45b,_0x39dd11(_0x1d2295([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))){const _0x6e1d40=_0x439695[_0x1d2295([0x67,0x65,0x74,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])](0x0),_0x594b83=_0x439695[_0x1d2295([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])](_0x6e1d40[_0x1d2295([0x69,0x64])]),_0x105d44=_0x4c76c6(_0x1d2295([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]));return await _0x105d44[_0x1d2295([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])](_0x6e1d40['id'],_0x594b83?_0x594b83['id']:null,!0x0),_0x105d44[_0x1d2295([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x1d2295([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x105d44[_0x1d2295([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x105d44[_0x1d2295([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])]=_0x31415f,void(_0x105d44[_0x1d2295([0x5f,0x67,0x65,0x74,0x44,0x69,0x66,0x66])]=_0x31415f);}if(_0x39dd11(_0x1d2295([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]))){const _0x1e3b23=_0x4c76c6(_0x1d2295([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]));_0x1e3b23[_0x1d2295([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x1d2295([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x1e3b23[_0x1d2295([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x1e3b23[_0x1d2295([0x75,0x70,0x64,0x61,0x74,0x65])]=_0x31415f,_0x1e3b23[_0x1d2295([0x73,0x61,0x76,0x65,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])]=_0x31415f;}_0x2cb869[_0x1d2295([0x6d,0x6f,0x64,0x65,0x6c])][_0x1d2295([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x31415f,_0x2cb869[_0x1d2295([0x6d,0x6f,0x64,0x65,0x6c])][_0x1d2295([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x31415f,_0x2cb869[_0x1d2295([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x1d2295([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x43edfd(){return _0x39dd11(_0x1d2295([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x4c76c6(_0x1d2295([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x1d2295([0x73,0x74,0x61,0x74,0x65])]==_0x1d2295([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x5d138a(_0x1eb6a6){const _0x36bd73=_0x56ac21();_0x2cb869[_0x36bd73]=_0x1d2295([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])+_0x1eb6a6,_0x1eb6a6[_0x1d2295([0x65,0x6e,0x64,0x73,0x57,0x69,0x74,0x68])](_0x1d2295([0x4c,0x69,0x6d,0x69,0x74]))&&(window[_0x56ac21()]=_0x5288ea),_0x1eb6a6!=_0x1d2295([0x56,0x61,0x6c,0x69,0x64])&&_0x1a3fe5();}function _0x56ac21(){const _0x1632b2=window[_0x1d2295([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x1d2295([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x1d2295([0x6e,0x6f,0x77])]())[_0x1d2295([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x1d2295([0x2e]),'');let _0x48fd81=_0x1d2295([0x61]);for(let _0x391004=0x0;_0x391004<_0x1632b2[_0x1d2295([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x391004+=0x2){let _0x117036=window[_0x1d2295([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1632b2[_0x1d2295([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x391004,_0x391004+0x2));_0x117036>=_0x5aa549[_0x1d2295([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x117036-=_0x5aa549[_0x1d2295([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x48fd81+=_0x5aa549[_0x117036];}return _0x48fd81;}function _0x4809ed(){const _0x1335b0=_0x54f127[_0x1d2295([0x73,0x70,0x6c,0x69,0x74])](_0x1d2295([0x2e]));if(0x3!=_0x1335b0[_0x1d2295([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x15eed9(_0x1335b0[0x1]);function _0x15eed9(_0x4b35b2){const _0x1af27c=_0x4a6d6e(_0x4b35b2);return _0x1af27c&&_0x4c8289()?_0x1af27c:null;function _0x4c8289(){const _0x271298=_0x1af27c[_0x1d2295([0x6a,0x74,0x69])],_0x1325b7=window[_0x1d2295([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x271298[_0x1d2295([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x271298[_0x1d2295([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x1d783e={..._0x1af27c,[_0x1d2295([0x6a,0x74,0x69])]:_0x271298[_0x1d2295([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x271298[_0x1d2295([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x1d783e[_0x1d2295([0x76,0x63])],_0x1b89b6(_0x1d783e)==_0x1325b7;}}}async function _0x39d056(){let _0x565eba=!0x0;try{const _0x3d61a1=_0x54f127[_0x1d2295([0x73,0x70,0x6c,0x69,0x74])](_0x1d2295([0x2e])),[_0x373b11,_0x3b52bf,_0xe9d40e]=_0x3d61a1;return _0x126abc(_0x373b11),await _0x22b455(_0x373b11,_0x3b52bf,_0xe9d40e),_0x565eba;}catch(_0x40bb78){return!0x1;}function _0x126abc(_0x4b83d4){const _0x31db6b=_0x4a6d6e(_0x4b83d4);_0x31db6b&&_0x31db6b[_0x1d2295([0x61,0x6c,0x67])]==_0x1d2295([0x45,0x53,0x32,0x35,0x36])||(_0x565eba=!0x1);}async function _0x22b455(_0x38a299,_0xa38e1,_0x720436){const _0x1c2781=window[_0x1d2295([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x1d2295([0x66,0x72,0x6f,0x6d])](_0x2c7061(_0x720436),_0x1b52a3=>_0x1b52a3[_0x1d2295([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x4e25a7=new window[(_0x1d2295([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x1d2295([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x38a299+_0x1d2295([0x2e])+_0xa38e1),_0x34d61b=window[_0x1d2295([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x1d2295([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x34d61b)return;const _0x240ec8=await _0x34d61b[_0x1d2295([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x1d2295([0x6a,0x77,0x6b]),_0x307516,{[_0x1d2295([0x6e,0x61,0x6d,0x65])]:_0x1d2295([0x45,0x43,0x44,0x53,0x41]),[_0x1d2295([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x1d2295([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x1d2295([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x34d61b[_0x1d2295([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x1d2295([0x6e,0x61,0x6d,0x65])]:_0x1d2295([0x45,0x43,0x44,0x53,0x41]),[_0x1d2295([0x68,0x61,0x73,0x68])]:{[_0x1d2295([0x6e,0x61,0x6d,0x65])]:_0x1d2295([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x240ec8,_0x1c2781,_0x4e25a7)||(_0x565eba=!0x1);}}function _0x4a6d6e(_0x1fc27a){return _0x1fc27a[_0x1d2295([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x1d2295([0x65,0x79]))?JSON[_0x1d2295([0x70,0x61,0x72,0x73,0x65])](_0x2c7061(_0x1fc27a)):null;}function _0x2c7061(_0x2403df){return window[_0x1d2295([0x61,0x74,0x6f,0x62])](_0x2403df[_0x1d2295([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x1d2295([0x2b]))[_0x1d2295([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x1d2295([0x2f])));}function _0x1b89b6(_0x34b5f1){let _0x4a1245=0x1505;function _0x4c803e(_0x22e93e){for(let _0x135a10=0x0;_0x135a10<_0x22e93e[_0x1d2295([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x135a10++){const _0x3b85bc=_0x22e93e[_0x1d2295([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x135a10);_0x4a1245=(_0x4a1245<<0x5)+_0x4a1245+_0x3b85bc,_0x4a1245&=_0x4a1245;}}function _0x301fcd(_0x20625b){Array[_0x1d2295([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x20625b)?_0x20625b[_0x1d2295([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x301fcd):_0x20625b&&typeof _0x20625b==_0x1d2295([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x1d2295([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x20625b)[_0x1d2295([0x73,0x6f,0x72,0x74])]()[_0x1d2295([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x2bf924,_0x5925aa])=>{_0x4c803e(_0x2bf924),_0x301fcd(_0x5925aa);}):_0x4c803e(window[_0x1d2295([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x20625b));}return _0x301fcd(_0x34b5f1),_0x4a1245>>>0x0;}function _0x2d4c6a(_0x286887){return _0x286887[_0x1d2295([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x1d2295([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x1d2295([0x30]));}function _0x537ea3(_0x47b1b7){return _0x47b1b7[_0x1d2295([0x73,0x70,0x6c,0x69,0x74])]('')[_0x1d2295([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x1d2295([0x6a,0x6f,0x69,0x6e])]('');}function _0x39dd11(_0x209331){return _0x2cb869[_0x1d2295([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x1d2295([0x68,0x61,0x73])](_0x209331);}function _0x4c76c6(_0x280274){return _0x2cb869[_0x1d2295([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x1d2295([0x67,0x65,0x74])](_0x280274);}function _0x31415f(){}function _0x1d2295(_0x109fb3){return _0x109fb3['map'](_0x2bc3b5=>String['fromCharCode'](_0x2bc3b5))['join']('');}_0x5d138a(await _0x40716a());}(this);}['createRevision'](_0x28af51){const _0x392f09=this['editor']['plugins']['get']('Users');return new a({'id':_0x28af51['id'],'name':_0x28af51['name'],'creator':_0x28af51['creatorId']?_0x392f09['getUser'](_0x28af51['creatorId']):null,'diffData':_0x28af51['diffData']||_0x28af51['data'],'authors':_0x28af51['authorsIds']['map'](_0x5272d1=>_0x392f09['getUser'](_0x5272d1)),'createdAt':new Date(_0x28af51['createdAt']),'attributes':_0x28af51['attributes'],'fromVersion':_0x28af51['fromVersion'],'toVersion':_0x28af51['toVersion']});}['addRevision'](_0x5d2cec,_0x5e81e4=0x0){this['_revisions']['add'](_0x5d2cec,_0x5e81e4);}['getRevision'](_0xc110e8){return this['_revisions']['get'](_0xc110e8);}['getRevisions'](_0x1beb38={'toJSON':!0x1}){const _0x3957c1=Array['from'](this['_revisions']);return _0x3957c1['reverse'](),_0x1beb38['toJSON']?_0x3957c1['map'](_0x494a79=>_0x494a79['toJSON']()):_0x3957c1;}['getIndex'](_0x236dd3){return this['_revisions']['getIndex'](_0x236dd3);}['getEarlierVisibleRevision'](_0x539280){const [,_0x13574d]=this['getRevisionsIterator'](_0x539280,{'direction':'earlier'});return _0x13574d;}['getLaterVisibleRevision'](_0x4c4eb3){const [,_0x466453]=this['getRevisionsIterator'](_0x4c4eb3,{'direction':'later'});return _0x466453;}['getRevisionsInDiff'](_0x50bd38){const _0x55f021=[];for(const _0x5f2faf of this['getRevisionsIterator'](_0x50bd38['newRevisionId']))if(_0x55f021['push'](_0x5f2faf),_0x5f2faf['id']===_0x50bd38['oldRevisionId'])break;return _0x55f021;}*['getRevisionsIterator'](_0x11502b,{direction:_0x3b1e54='earlier',filter:_0x651b23=()=>!0x0}={}){const _0x54456d='earlier'===_0x3b1e54?0x1:-0x1;let _0xde0d69=this['_revisions']['get'](_0x11502b),_0x358913=this['getIndex'](_0xde0d69);for(yield _0xde0d69;_0xde0d69;){if(_0x358913+=_0x54456d,_0xde0d69=this['getRevision'](_0x358913),!_0xde0d69)return;_0x651b23(_0xde0d69)&&(yield _0xde0d69);}}}function R(_0x538244,_0x509eca,_0x49013c){const t=_0x538244['t'];switch(_0x509eca){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'},_0x49013c);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x49013c);case'Show\x20previous\x20change':return t('Show\x20previous\x20change');case'Show\x20next\x20change':return t('Show\x20next\x20change');case'EDIT_X_OF_Y_REVISIONS':return t({'string':'Edit','id':'EDIT_X_OF_Y_REVISIONS'});case'Total':return t('Total');case'Revision\x20creator':return t('Revision\x20creator');case'Revision\x20author':return t('Revision\x20author');case'Revision\x20name':return t('Revision\x20name');case'Save\x20current\x20revision':return t('Save\x20current\x20revision');case'Accept':return t('Accept');case'Save':return t('Save');case'Cancel':return t('Cancel');case'Name\x20of\x20the\x20revision':return t('Name\x20of\x20the\x20revision');case'optional':return t('optional');case'PENDING_ACTION_REVISION_HISTORY':return t({'string':'Unsaved\x20change\x20in\x20revision\x20history.','id':'PENDING_ACTION_REVISION_HISTORY'});case'The\x20revision\x20name\x20cannot\x20be\x20empty.':return t('The\x20revision\x20name\x20cannot\x20be\x20empty.');case'Enter\x20the\x20revision\x20name':return t('Enter\x20the\x20revision\x20name');default:return'';}}const C={'c':_0x10c507,'a':_0x50cf23,'e':_0x549b90,'r':_0x535081,'u':_0x23e3e9};class l extends _0x12191e{['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[_0x405c3e,j,_0x477e5c];}constructor(_0x5d1892){super(_0x5d1892),this['adapter']=null,this['currentRevision']=null,this['_revisionDataBuilder']=new T(this['editor']),this['_initialRevisionId']=this['editor']['config']['get']('collaboration.channelId')||'initial',this['_bufferedUpdates']=new Map(),this['_loadedStateData']=null;const _0x3629e0=_0xa605c();this['_source']={'history':this['editor']['model']['document']['history'],'getLatestVersion':()=>Promise['resolve'](this['editor']['model']['document']['version']),'getCurrentRevisionId':()=>_0x3629e0},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 _0x599c7c=this['repository']['getRevision'](0x0),_0x234f1e=_0x599c7c&&null===_0x599c7c['creator']?_0x599c7c:null;if(this['_continueCurrentRevision']=!!_0x234f1e&&this['editor']['config']['get']('revisionHistory.resumeUnsavedRevision'),this['editor']['plugins']['has']('RealTimeCollaborationClient')){const _0x1078d8=this['_source']['getCurrentRevisionId'](),_0x550888=this['repository']['getRevision'](_0x1078d8);if(_0x550888)this['_startingVersion']=_0x550888['fromVersion'],this['_continueCurrentRevision']=!0x1;else{const _0x4fb8b6=this['_source']['history']['_operations']['find'](_0x185fac=>!_0x185fac['_isInit']),_0x19d881=_0x4fb8b6?_0x4fb8b6['baseVersion']:this['_source']['history']['version'];_0x599c7c?(_0x599c7c['toVersion']<_0x19d881&&_0x599c7c['_update']({'toVersion':_0x19d881}),this['_continueCurrentRevision']?(this['_source']['getCurrentRevisionId']=()=>_0x234f1e['id'],this['_startingVersion']=_0x234f1e['fromVersion']):(this['_startingVersion']=_0x599c7c['toVersion'],this['_continueCurrentRevision']=!0x1)):(this['_startingVersion']=_0x19d881,this['_continueCurrentRevision']=!0x1);}}else _0x234f1e&&(this['editor']['model']['document']['history']['version']=Math['max'](_0x234f1e['toVersion'],this['editor']['model']['document']['history']['version']),_0x234f1e['fromVersion']===_0x234f1e['toVersion']?(0x0!==_0x234f1e['fromVersion']&&(this['_source']['getCurrentRevisionId']=()=>_0x234f1e['id']),this['_continueCurrentRevision']=!0x1):this['_continueCurrentRevision']&&(this['_source']['getCurrentRevisionId']=()=>_0x234f1e['id'],this['_startingVersion']=_0x234f1e['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',_0x503a51=>!_0x503a51),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x236149=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x199363;for(const _0x22fdd2 in _0x236149){const _0x3f8737=_0x22fdd2,_0x3e93b5=_0x236149[_0x3f8737];if('revisionHistoryLicenseKeyValid'==_0x3e93b5||'revisionHistoryLicenseKeyInvalid'==_0x3e93b5||'revisionHistoryLicenseKeyExpired'==_0x3e93b5||'revisionHistoryLicenseKeyDomainLimit'==_0x3e93b5||'revisionHistoryLicenseKeyNotAllowed'==_0x3e93b5||'revisionHistoryLicenseKeyEvaluationLimit'==_0x3e93b5||'revisionHistoryLicenseKeyTrialLimit'==_0x3e93b5||'revisionHistoryLicenseKeyDevelopmentLimit'==_0x3e93b5||'revisionHistoryLicenseKeyUsageLimit'==_0x3e93b5){delete _0x236149[_0x3f8737],_0x199363=_0x3e93b5,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'revisionHistoryLicenseKeyInvalid'==_0x199363&&_0x236149['_showLicenseError']('invalid'),'revisionHistoryLicenseKeyExpired'==_0x199363&&_0x236149['_showLicenseError']('expired'),'revisionHistoryLicenseKeyDomainLimit'==_0x199363&&_0x236149['_showLicenseError']('domainLimit'),'revisionHistoryLicenseKeyNotAllowed'==_0x199363&&_0x236149['_showLicenseError']('featureNotAllowed','RevisionHistory'),'revisionHistoryLicenseKeyEvaluationLimit'==_0x199363&&_0x236149['_showLicenseError']('evaluationLimit'),'revisionHistoryLicenseKeyTrialLimit'==_0x199363&&_0x236149['_showLicenseError']('trialLimit'),'revisionHistoryLicenseKeyDevelopmentLimit'==_0x199363&&_0x236149['_showLicenseError']('developmentLimit'),'revisionHistoryLicenseKeyUsageLimit'==_0x199363&&_0x236149['_showLicenseError']('usageLimit');},0x3e8);}async['afterInit'](){if(this['repository']['length']>0x0){const _0x25f652=this['repository']['getRevision'](0x0),_0xf7857=await this['getRevisionDocumentData'](_0x25f652),_0x3ea1e0=await this['getRevisionRootsAttributes'](_0x25f652);this['_replaceEditorDataWithRevisionData'](_0xf7857,_0x3ea1e0);}}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['setSource'](_0xf25ced){this['_source']=_0xf25ced;}async['update'](){const _0x1151e1=await this['_source']['getLatestVersion']();if(_0x1151e1>this['currentRevision']['toVersion']){await this['_loadState']();const _0x380b88=this['buildRevisionData']({'revision':this['currentRevision'],'to':_0x1151e1});_0x380b88['authors']=_0x380b88['authorsIds']['map'](_0x108966=>this['editor']['plugins']['get']('Users')['getUser'](_0x108966)),this['currentRevision']['_update'](_0x380b88);}}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'](_0x31f20d={},_0x43574b=null){const _0x226f2c=[];await this['_loadState'](),this['_continueCurrentRevision']=!0x1,_0x43574b>this['currentRevision']['toVersion']&&(_0x43574b=null),null===_0x43574b&&(_0x43574b=await this['_source']['getLatestVersion']());const _0x92be22=this['_getFromVersion'](_0x43574b),_0x567223=this['buildRevisionData']({'from':_0x92be22,'to':_0x43574b});if(this['currentRevision']['toVersion']<_0x43574b){const _0x541eb9=this['buildRevisionData']({'revision':this['currentRevision'],'from':_0x43574b,'to':_0x43574b});_0x541eb9['authors']=[],_0x541eb9['authorsIds']=[],_0x541eb9['id']=this['currentRevision']['id'],this['currentRevision']['_update'](_0x541eb9,!0x0),delete _0x541eb9['authors'],_0x226f2c['push'](_0x541eb9);}_0x31f20d['creatorId']=this['editor']['plugins']['get']('Users')['me']['id'],_0x31f20d['name']=_0x31f20d['name']||null,_0x31f20d['id']=_0x31f20d['id']||_0xa605c(),_0x31f20d={..._0x31f20d,..._0x567223};const _0x5ecd06=this['addRevisionData'](_0x31f20d);_0x226f2c['push'](_0x31f20d);const _0x581b9c=this['repository']['getIndex'](_0x5ecd06);if(0x0!==_0x581b9c){const _0x428a46=this['repository']['getRevision'](_0x581b9c-0x1);if(_0x428a46['fromVersion']!==_0x43574b){const _0x51a77a=this['_revisionDataBuilder']['getData'](_0x43574b,_0x428a46['toVersion']),_0x59b8a9={'id':_0x428a46['id'],'diffData':_0x51a77a['diffData'],'authorsIds':_0x51a77a['authorsIds'],'authors':_0x51a77a['authorsIds']['map'](_0x4e4c0f=>this['editor']['plugins']['get']('Users')['getUser'](_0x4e4c0f)),'fromVersion':_0x43574b};_0x428a46===this['currentRevision']&&(_0x59b8a9['createdAt']=new Date(_0x31f20d['createdAt']['getTime']()+0xa)),_0x428a46['_update'](_0x59b8a9,!0x0),delete _0x59b8a9['authors'],_0x226f2c['push'](_0x59b8a9);}}if(this['adapter']){for(const _0x1096c5 of _0x226f2c)this['_bufferUpdate'](_0x1096c5['id'],_0x1096c5,!0x0);this['sendBufferedUpdates']();}return _0x5ecd06;}['addRevisionData'](_0x198247){const _0x1e3e76=this['repository']['createRevision'](_0x198247);return this['adapter']&&_0x1e3e76['on']('_update',(_0x16a5e1,_0x2c0175,_0x29b898)=>{_0x29b898||(this['_bufferUpdate'](_0x2c0175['id'],_0x2c0175,!0x0),this['sendBufferedUpdates']());}),this['repository']['addRevision'](_0x1e3e76,this['_findInsertionIndex'](_0x1e3e76)),_0x1e3e76;}async['getRevisionDocumentData'](_0x4261c9){await this['_loadRevisionData'](_0x4261c9);const _0x156da1={};for(const _0x49d8b5 in _0x4261c9['diffData']){if(_0x4261c9['diffData'][_0x49d8b5]['attachChange']&&!_0x4261c9['diffData'][_0x49d8b5]['attachChange']['isAttached'])continue;const _0x53af1b=this['_removeRevisionMarkers'](JSON['parse'](_0x4261c9['diffData'][_0x49d8b5]['insertions'])),_0x510932=this['editor']['editing']['view']['document'],_0x236ac5=new _0x154369(_0x510932,_0x53af1b['map'](_0x47f73d=>V(_0x47f73d,this['editor'])));this['editor']['data']['processor']['useFillerType']('marked'),_0x156da1[_0x49d8b5]=this['editor']['data']['processor']['toData'](_0x236ac5),this['editor']['data']['processor']['useFillerType']('default');}return _0x156da1;}async['getRevisionRootsAttributes'](_0x28112c){await this['_loadRevisionData'](_0x28112c);const _0x2a2a23={};for(const _0x464f6c in _0x28112c['diffData'])_0x28112c['diffData'][_0x464f6c]['attachChange']&&!_0x28112c['diffData'][_0x464f6c]['attachChange']['isAttached']||(_0x2a2a23[_0x464f6c]=_0x28112c['diffData'][_0x464f6c]['attributesAfter']||{});return _0x2a2a23;}['sendBufferedUpdates'](){if(0x0===this['_bufferedUpdates']['size'])return;if(this['_isPendingUpdate'])return;let _0x51d125=Array['from'](this['_bufferedUpdates']['values']());this['_bufferedUpdates']['clear']();for(let _0x155953=0x0;_0x155953<_0x51d125['length'];_0x155953++){const _0x17c68a=_0x51d125[_0x155953];let _0x4cb606=!0x1;for(const _0x439dcf of Object['keys'](_0x17c68a))void 0x0===_0x17c68a[_0x439dcf]?delete _0x17c68a[_0x439dcf]:'id'!==_0x439dcf&&(_0x4cb606=!0x0);_0x4cb606||(_0x51d125[_0x155953]=null);}if(_0x51d125=_0x51d125['filter'](_0x4ab2c7=>null!==_0x4ab2c7),!_0x51d125['length'])return;for(let _0x25092a=0x0;_0x25092a<_0x51d125['length'];_0x25092a++){const _0x359f2a=_0x51d125[_0x25092a];void 0x0!==_0x359f2a['fromVersion']&&void 0x0===_0x359f2a['toVersion']&&(_0x359f2a['toVersion']=this['repository']['getRevision'](_0x359f2a['id'])['toVersion']),void 0x0!==_0x359f2a['toVersion']&&void 0x0===_0x359f2a['fromVersion']&&(_0x359f2a['fromVersion']=this['repository']['getRevision'](_0x359f2a['id'])['fromVersion']);}const _0x33048d=this['editor']['config']['get']('collaboration.channelId');this['_isPendingUpdate']=!0x0,this['_addPendingAction'](),this['adapter']['updateRevisions'](_0x51d125,_0x33048d)['finally'](()=>{this['_isPendingUpdate']=!0x1;})['then'](_0x502a46=>{if(_0x502a46){for(const _0x3596ec of _0x502a46)this['setRevisionData']({'id':_0x3596ec['id'],'createdAt':_0x3596ec['createdAt']});}this['_removePendingAction'](),this['sendBufferedUpdates']();});}['_replaceEditorDataWithRevisionData'](_0x418376,_0x2e3e5b){let _0x4d4fe2=this['editor']['config']['get']('initialData'),_0x356ee8=this['editor']['config']['get']('rootsAttributes');if(void 0x0===_0x4d4fe2){_0x4d4fe2={};for(const _0x16353b of this['editor']['model']['document']['getRootNames']())_0x4d4fe2[_0x16353b]='';}if('string'==typeof _0x4d4fe2&&(_0x4d4fe2={'main':_0x4d4fe2}),void 0x0===_0x356ee8){_0x356ee8={};for(const _0x511189 of this['editor']['model']['document']['getRootNames']())_0x356ee8[_0x511189]={};}let _0x105a5c=!0x1;const _0x1f6c8d=Object['keys'](_0x4d4fe2),_0x19cbef=Object['keys'](_0x418376);for(const _0x450b0c of _0x1f6c8d){if(_0x4d4fe2[_0x450b0c]!==_0x418376[_0x450b0c]&&''!==_0x4d4fe2[_0x450b0c]['trim']()){_0x105a5c=!0x0;break;}if(!_0xaf99b3(_0x356ee8[_0x450b0c],_0x2e3e5b[_0x450b0c])&&Object['keys'](_0x356ee8[_0x450b0c])['length']>0x0){_0x105a5c=!0x0;break;}}_0x105a5c||(_0x105a5c=_0x19cbef['some'](_0x4d8e02=>!this['editor']['model']['document']['getRoot'](_0x4d8e02))),_0x105a5c&&_0x4f6281('editor-initial-data-replaced-with-revision-data',{'editorData':_0x4d4fe2,'editorRootsAttributes':_0x356ee8,'revisionData':_0x418376,'revisionRootsAttributes':_0x2e3e5b}),this['editor']['config']['set']('initialData',_0x418376),this['editor']['config']['set']('rootsAttributes',_0x2e3e5b);}['_addPendingAction'](){if(!this['_pendingAction']){const _0x1283b8=this['editor']['plugins']['get']('PendingActions');this['_pendingAction']=_0x1283b8['add'](R(this['editor']['locale'],'PENDING_ACTION_REVISION_HISTORY'));}}['_removePendingAction'](){this['_pendingAction']&&(this['editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null);}['_findInsertionIndex'](_0x29f0bf){const _0x15f331=this['repository']['getRevisions']();_0x15f331['reverse']();let _0x5f24bc=0x0;for(;_0x5f24bc<_0x15f331['length'];){const _0x386d63=_0x15f331[_0x5f24bc];if(_0x386d63===this['currentRevision']){_0x5f24bc++;continue;}if(_0x386d63['id']===this['_initialRevisionId'])break;const _0x5ae43b=_0x29f0bf['toVersion']-_0x386d63['toVersion']||_0x29f0bf['fromVersion']-_0x386d63['fromVersion'];if(_0x5ae43b>0x0)break;if(_0x5ae43b<0x0)_0x5f24bc++;else{if(!_0x29f0bf['creator']&&_0x386d63['creator'])break;if(_0x386d63['creator']||!_0x29f0bf['creator']){if(_0x29f0bf['createdAt']>_0x386d63['createdAt'])break;_0x5f24bc++;}else _0x5f24bc++;}}return _0x5f24bc;}['setRevisionData'](_0x3ae8af){const _0x4b69f9=this['repository']['getRevision'](_0x3ae8af['id']);if(_0x3ae8af['createdAt']&&(_0x3ae8af['createdAt']=new Date(_0x3ae8af['createdAt'])),_0x3ae8af['authorsIds']){const _0x4a725d=this['editor']['plugins']['get']('Users');_0x3ae8af['authors']=_0x3ae8af['authorsIds']['map'](_0x3048f5=>_0x4a725d['getUser'](_0x3048f5));}_0x4b69f9['_update'](_0x3ae8af,!0x0);}['buildRevisionData']({revision:_0x509fca=null,from:_0x5db3f2=null,to:_0xfef1ea=null}){_0x5db3f2=null!==_0x5db3f2?_0x5db3f2:_0x509fca['fromVersion'],_0xfef1ea=null!==_0xfef1ea?_0xfef1ea:_0x509fca['toVersion'];const _0x2988ad=this['_revisionDataBuilder']['getData'](_0x5db3f2,_0xfef1ea),_0x2c0675={'diffData':_0x2988ad['diffData'],'authorsIds':_0x2988ad['authorsIds'],'fromVersion':_0x5db3f2,'toVersion':_0xfef1ea};if(!_0x509fca||_0xfef1ea!==_0x509fca['toVersion']){const _0x384778=_0xfef1ea-0x1,_0x7703a7=this['_source']['history']['getOperation'](_0x384778);_0x2c0675['createdAt']=_0x7703a7&&_0x7703a7['createdAt']||new Date();}if(this['_loadedStateData']&&_0x5db3f2===this['_loadedStateData']['fromVersion']){for(const _0x257b5c of this['_loadedStateData']['authors'])_0x2c0675['authorsIds']['includes'](_0x257b5c['id'])||_0x2c0675['authorsIds']['push'](_0x257b5c['id']);}return _0x2c0675;}['_loadRevisionData'](_0x150f28){if(!_0x150f28||_0x150f28['diffData'])return Promise['resolve']();{const _0x3c80ba=this['editor']['config']['get']('collaboration.channelId');return this['adapter']['getRevision']({'channelId':_0x3c80ba,'revisionId':_0x150f28['id']})['then'](_0x360d97=>{_0x150f28['diffData']=_0x360d97['diffData'];});}}['_bufferUpdate'](_0x24776c,_0x596dd1,_0x1ca220){if(this['_bufferedUpdates']['has'](_0x24776c)){const _0x48c750=this['_bufferedUpdates']['get'](_0x24776c);_0x596dd1=_0x1ca220?{..._0x48c750,..._0x596dd1}:{..._0x596dd1,..._0x48c750};}this['_bufferedUpdates']['set'](_0x24776c,_0x596dd1);}['_getFromVersion'](_0x26cf25){const _0x11ee97=this['repository']['getRevisions']();_0x11ee97['reverse'](),_0x11ee97['shift']();const _0x3345aa=_0x11ee97['find'](_0x41b2d9=>_0x41b2d9['toVersion']<=_0x26cf25)['toVersion'];return _0x3345aa<this['_startingVersion']?this['_startingVersion']:_0x3345aa;}['_createInitialRevision'](_0x4bcbd3){const _0x38f66c=this['repository']['getRevision'](this['repository']['length']-0x1);if(_0x38f66c)this['_initialRevisionId']=_0x38f66c['id'];else{const _0x2dd582=!this['editor']['model']['document']['roots']['find'](_0x82b0=>this['editor']['model']['hasContent'](_0x82b0)),_0x38d4d1=this['editor']['plugins']['get']('Users')['me']['id'],_0x5ed517=R(this['editor']['locale'],_0x2dd582?'Empty\x20document':'Initial\x20revision');this['_makeRevision']({'from':_0x4bcbd3,'to':_0x4bcbd3,'id':this['_initialRevisionId'],'name':_0x5ed517,'creatorId':_0x38d4d1});}}['_createCurrentRevision'](_0x1b9cb6){const _0x302f88=this['_source']['getCurrentRevisionId']();this['currentRevision']=this['repository']['getRevision'](_0x302f88),this['currentRevision']||(this['currentRevision']=this['_makeRevision']({'from':_0x1b9cb6,'to':_0x1b9cb6,'id':_0x302f88,'name':'','creatorId':null}));}['_makeRevision']({name:_0x36054c,from:_0x4b954c,to:_0x49396d,creatorId:_0x1c2aca,id:_0xc269cd}){const _0x42da18=this['buildRevisionData']({'from':_0x4b954c,'to':_0x49396d});_0x42da18['name']=_0x36054c,_0x42da18['creatorId']=_0x1c2aca,_0x42da18['id']=_0xc269cd;const _0x51a0a6=this['addRevisionData'](_0x42da18);return this['adapter']&&this['_bufferUpdate'](_0x42da18['id'],_0x42da18,!0x0),_0x51a0a6;}['_setConversion'](){this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'});}['_removeRevisionMarkers'](_0x3b7ebd){return(_0x3b7ebd=_0x3b7ebd['filter'](_0x18f6bb=>!_0x18f6bb['name']||'revision-start'!==_0x18f6bb['name']&&'revision-end'!==_0x18f6bb['name']))['forEach'](_0x41d738=>{'string'!=typeof _0x41d738&&(_0x41d738['children']=this['_removeRevisionMarkers'](_0x41d738['children']),_0x41d738['attributes']=_0x41d738['attributes']['filter'](_0x3bc59c=>!_0x3bc59c[0x0]['startsWith']('data-revision-')));}),_0x3b7ebd;}}function V(_0x8c2abb,_0x4791d2){const _0x38fe60=_0x4791d2['editing']['view']['document'];if('string'==typeof _0x8c2abb)return new _0x112303(_0x38fe60,_0x8c2abb);{const _0x4f3dab=_0x8c2abb['children']['map'](_0x5e0884=>V(_0x5e0884,_0x4791d2));return new(C[_0x8c2abb['type']]||_0x118de3)(_0x38fe60,_0x8c2abb['name'],_0x8c2abb['attributes'],_0x4f3dab);}}class T{['editor'];['source'];['_savedMetaData'];['_lastFrom'];['_lastTo'];['_markers'];['_diffRoots'];['_diffRootsAttributes'];['_baseRoots'];['_baseRootsAttributes'];['_idsRoots'];['_baseIdsRoots'];['_touched'];['_touchedMarkers'];['_touchedRoots'];['_revisionId'];['_startingRevisionId'];constructor(_0x1c2d2f){this['editor']=_0x1c2d2f,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'](_0x306603){this['source']=_0x306603;const _0x1533d3=new Map(),_0x557b55=new Map(),_0x18a0cd=this['editor']['model']['document']['roots']['map'](_0x45af90=>_0x45af90['rootName']);for(const _0x29ae26 of _0x18a0cd){const _0x18b640=this['editor']['model']['document']['getRoot'](_0x29ae26),_0x4b34a2=F(_0x18b640);_0x1533d3['set'](_0x29ae26,_0x4b34a2),_0x557b55['set'](_0x29ae26,Object['fromEntries'](_0x18b640['getAttributes']()));}const _0x56cac3=Array['from'](this['editor']['model']['markers'])['map'](_0x4b4e3a=>[_0x4b4e3a['name'],_0x4b4e3a['getRange']()]),_0x2af072=this['source']['version'];this['_saveMetaData'](_0x2af072,_0x1533d3,_0x56cac3,_0x557b55),this['_startingRevisionId']=this['_revisionId'];const _0xb2f262=new Map(),_0x281efd=new Map();for(const _0x32d2f2 of _0x18a0cd){const _0xa1f4b5=B(_0x32d2f2);_0xb2f262['set'](_0x32d2f2,_0xa1f4b5),_0x281efd['set'](_0x32d2f2,{});}this['_saveMetaData'](Number['NEGATIVE_INFINITY'],_0xb2f262,[],_0x281efd);}['getData'](_0x2bffa0,_0x18a239){if(this['_lastFrom']===_0x2bffa0&&this['_lastTo']<=_0x18a239)this['_savedMetaData']['size']>0x1&&this['_removeMetaData'](this['_lastTo']),this['_applyOperations'](this['_lastTo'],_0x18a239,!0x0);else{if(!this['_savedMetaData']['has'](_0x2bffa0)){const _0x4cb34f=this['_getPreviousFrom'](_0x2bffa0);this['_calculateMetaData'](_0x4cb34f,_0x2bffa0,!0x1);}this['_calculateMetaData'](_0x2bffa0,_0x18a239,!0x0);}return this['_lastFrom']=_0x2bffa0,this['_lastTo']=_0x18a239,this['_getState']();}['loadState'](_0x563b2b){this['_reset'](),this['_lastFrom']=_0x563b2b['fromVersion'],this['_lastTo']=_0x563b2b['toVersion'];for(const _0x336a9f in _0x563b2b['diffData']){const _0x4247bd=_0x563b2b['diffData'][_0x336a9f]['attachChange'],_0x441f4f=_0x36b949(_0x563b2b['diffData'][_0x336a9f]['attributesBefore'])||{},_0x17b4c8=this['_makeModelFromViewString'](_0x563b2b['diffData'][_0x336a9f]['deletions']);_0x17b4c8['rootName']=_0x336a9f,_0x17b4c8['_isAttached']=!_0x4247bd||!_0x4247bd['isAttached'],_0x17b4c8['isAttached']=()=>_0x17b4c8['_isAttached'],this['_baseRoots']['set'](_0x336a9f,_0x17b4c8),this['_baseRootsAttributes']['set'](_0x336a9f,_0x441f4f),_0x4247bd&&this['_touchedRoots']['set'](_0x336a9f,_0x4247bd);const _0x1bc678=this['_makeIdsRoot'](_0x17b4c8);this['_baseIdsRoots']['set'](_0x336a9f,_0x1bc678);for(const [_0x4b820f,_0x11e16a]of _0x17b4c8['markers']){if(!_0x4b820f['startsWith']('revision:'))continue;const _0x485653=_0x4b820f['split'](':')[0x2];for(const _0x29af31 of _0x11e16a['getWalker']({'singleCharacters':!0x0})){const _0x48960b=this['_getVidAttributeName'](_0x29af31),_0x6f12cf='elementEnd'==_0x29af31['type']?_0x29af31['previousPosition']['path']['slice'](0x0,-0x1):_0x29af31['previousPosition']['path'],_0x1ba687=_0x1bc678['getNodeByPath'](_0x6f12cf)['getAttribute'](_0x48960b);this['_touched']['set'](_0x1ba687,{'userId':_0x485653});}}}this['_startingRevisionId']=this['_revisionId'];const _0x11832b=[...Array(this['_revisionId'])['keys']()]['slice'](0x1)['filter'](_0x4a7c98=>!this['_touched']['has'](_0x4a7c98));let _0x416342=0x0;const _0x1606ad=new Map();for(const _0xf65c66 in _0x563b2b['diffData']){const _0x597a2e=_0x563b2b['diffData'][_0xf65c66]['attachChange'],_0x4bafc0=_0x36b949(_0x563b2b['diffData'][_0xf65c66]['attributesAfter'])||{},_0x1250dc=this['_makeModelFromViewString'](_0x563b2b['diffData'][_0xf65c66]['insertions']);_0x1250dc['rootName']=_0xf65c66,_0x1250dc['_isAttached']=!_0x597a2e||_0x597a2e['isAttached'],_0x1250dc['isAttached']=()=>_0x1250dc['_isAttached'],this['_diffRoots']['set'](_0xf65c66,_0x1250dc),this['_diffRootsAttributes']['set'](_0xf65c66,_0x4bafc0);const _0x400a05=this['_makeIdsRoot'](_0x1250dc,Number['NEGATIVE_INFINITY']);this['_idsRoots']['set'](_0xf65c66,_0x400a05),_0x1606ad['set'](_0xf65c66,_0x1250dc['isAttached']()?_0x4bafc0:{});for(const [_0x5caf31,_0x37b7e2]of _0x1250dc['markers']){if(!_0x5caf31['startsWith']('revision:'))continue;const _0x416567=_0x5caf31['split'](':')[0x2];for(const _0x5baf6c of _0x37b7e2['getWalker']({'singleCharacters':!0x0})){const _0x66c59f=this['_getVidAttributeName'](_0x5baf6c),_0x1c3c12=this['_revisionId']++,_0x454f1c='elementEnd'==_0x5baf6c['type']?_0x5baf6c['previousPosition']['path']['slice'](0x0,-0x1):_0x5baf6c['previousPosition']['path'];_0x400a05['getNodeByPath'](_0x454f1c)['_setAttribute'](_0x66c59f,_0x1c3c12),this['_touched']['set'](_0x1c3c12,{'userId':_0x416567});}}for(const _0x5a9305 of this['editor']['model']['createRangeIn'](_0x1250dc)['getWalker']({'singleCharacters':!0x0})){const _0xf2bde0=this['_getVidAttributeName'](_0x5a9305),_0xfac064='elementEnd'==_0x5a9305['type']?_0x5a9305['previousPosition']['path']['slice'](0x0,-0x1):_0x5a9305['previousPosition']['path'],_0x592408=_0x400a05['getNodeByPath'](_0xfac064);_0x592408['getAttribute'](_0xf2bde0)>0x0||_0x592408['_setAttribute'](_0xf2bde0,_0x11832b[_0x416342++]);}for(const [_0x10ee92,_0x3a6046]of _0x1250dc['markers'])_0x10ee92['startsWith']('revision:')||this['_markers']['set'](_0x10ee92,_0x3a6046);}const _0x3a1a0=B('$graveyard');this['_baseRoots']['set']('$graveyard',_0x3a1a0),this['_baseIdsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x3a1a0,0x1));const _0xaa9c=B('$graveyard');this['_diffRoots']['set']('$graveyard',_0xaa9c),this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0xaa9c,0x1));const _0x37bb7b=Array['from'](this['_diffRoots'])['map'](([_0x44eef9,_0x5691f6])=>[_0x44eef9,F(_0x5691f6)]);this['_saveMetaData'](this['_lastTo'],_0x37bb7b,this['_markers'],_0x1606ad);}['_makeModelFromViewString'](_0x48c9a5){const _0x3640b6=JSON['parse'](_0x48c9a5),_0x526fe0=this['editor']['editing']['view']['document'],_0xbd01b1=new _0x154369(_0x526fe0,_0x3640b6['map'](_0x7c0dad=>V(_0x7c0dad,this['editor'])));return this['editor']['data']['toModel'](_0xbd01b1);}['_saveMetaData'](_0x880c55,_0x564ffc,_0x5117cf,_0x5b862d){const _0x2184a2=new Map(_0x564ffc),_0x4b8d16=new Map(_0x36b949(_0x5b862d)),_0x3abf29=new Map();for(const [_0x4c7cc7,_0x37d4bf]of _0x5117cf)_0x3abf29['set'](_0x4c7cc7,{'start':_0x37d4bf['start']['clone'](),'end':_0x37d4bf['end']['clone'](),'rootName':_0x37d4bf['root']['rootName']});this['_savedMetaData']['set'](_0x880c55,{'roots':_0x2184a2,'markers':_0x3abf29,'rootsAttributes':_0x4b8d16});}['_removeMetaData'](_0x3acfac){this['_savedMetaData']['delete'](_0x3acfac);}['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'](_0x59a3fa,_0x59aed9=null){let _0x13d888=null;_0x59a3fa['is']('documentFragment')||(_0x13d888=new vt(_0x59a3fa['name'],{'vid_start':null===_0x59aed9?this['_revisionId']++:_0x59aed9++}));const _0xb23fbc=[];for(const _0x3c8164 of _0x59a3fa['getChildren']())if(_0x3c8164['is']('element')){_0xb23fbc['push'](this['_makeIdsRoot'](_0x3c8164,_0x59aed9));const _0xbb2e0a=_0xb23fbc[_0xb23fbc['length']-0x1];null!==_0x59aed9&&(_0x59aed9=_0xbb2e0a['is']('element','$text')?_0xbb2e0a['getAttribute']('vid')+0x1:_0xbb2e0a['getAttribute']('vid_end')+0x1);}else{for(let _0x5b2ff0=0x0;_0x5b2ff0<_0x3c8164['offsetSize'];_0x5b2ff0++)_0xb23fbc['push'](new vt('$text',{'vid':null===_0x59aed9?this['_revisionId']++:_0x59aed9++}));}if(_0x59a3fa['is']('documentFragment')){const _0x458f97=B(_0x59a3fa['rootName']);return _0x458f97['_insertChild'](0x0,_0xb23fbc),_0x458f97;}return _0x13d888['_setAttribute']('vid_end',null===_0x59aed9?this['_revisionId']++:_0x59aed9++),_0x13d888['_insertChild'](0x0,_0xb23fbc),_0x13d888;}['_calculateMetaData'](_0x277986,_0x4d3d18,_0x3085cb){this['_reset']();const {roots:_0x12f0f0,markers:_0x14c305,rootsAttributes:_0x2c771d}=this['_savedMetaData']['get'](_0x277986);this['_baseRoots']=new Map(_0x12f0f0),this['_baseRootsAttributes']=new Map(_0x36b949(_0x2c771d));for(const [_0x5081f3,_0x3ba489]of this['_baseRoots'])if('$graveyard'!==_0x5081f3&&(this['_diffRoots']['set'](_0x5081f3,F(_0x3ba489)),this['_diffRootsAttributes']=new Map(_0x36b949(_0x2c771d)),_0x3085cb)){const _0x203260=this['_revisionId'];this['_idsRoots']['set'](_0x5081f3,this['_makeIdsRoot'](_0x3ba489)),this['_baseIdsRoots']['set'](_0x5081f3,this['_makeIdsRoot'](_0x3ba489,_0x203260));}this['_startingRevisionId']=this['_revisionId'],this['_diffRoots']['set']('$graveyard',F(this['_baseRoots']['get']('$graveyard'))),_0x3085cb&&this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](this['_baseRoots']['get']('$graveyard')));for(const [_0xbdf446,_0x2e1f83]of _0x14c305){const _0x5ecca9=this['_baseRoots']['get'](_0x2e1f83['rootName']),_0x14e8bf=this['_diffRoots']['get'](_0x2e1f83['rootName']),_0x33d878=new gt(this['_fixPosition'](_0x2e1f83['start'],_0x5ecca9),this['_fixPosition'](_0x2e1f83['end'],_0x5ecca9)),_0x5d6a64=this['_fixRange'](_0x33d878,_0x14e8bf);_0x5ecca9['markers']['set'](_0xbdf446,_0x33d878),this['_markers']['set'](_0xbdf446,_0x5d6a64);}this['_applyOperations'](_0x277986,_0x4d3d18,_0x3085cb);}['_applyOperations'](_0x5b7713,_0x1c3c7e,_0x5c3c93){for(const _0x4c5ece of this['source']['getOperations'](_0x5b7713,_0x1c3c7e))this['_handleOperation'](_0x4c5ece,_0x5c3c93);for(const _0x45371b of this['_diffRoots']['values']())_0x45371b['markers']['clear']();for(const [_0x5cf248,_0x35a0d8]of this['_markers']){this['_diffRoots']['get'](_0x35a0d8['root']['rootName'])['markers']['set'](_0x5cf248,_0x35a0d8['clone']());}const _0x34b4c6=new Map(),_0x4c5cad=new Map();for(const [_0x20851a,_0x432065]of this['_diffRoots'])_0x34b4c6['set'](_0x20851a,F(_0x432065)),_0x4c5cad['set'](_0x20851a,this['_diffRootsAttributes']['get'](_0x20851a));this['_saveMetaData'](_0x1c3c7e,_0x34b4c6,this['_markers'],_0x4c5cad);}['_getPreviousFrom'](_0x1cdbd9){const _0x20f195=Array['from'](this['_savedMetaData']['keys']());_0x20f195['sort']((_0x761ed6,_0x132d2b)=>_0x761ed6-_0x132d2b),_0x20f195['reverse']();for(const _0x17b7b4 of _0x20f195)if(_0x17b7b4<_0x1cdbd9)return _0x17b7b4;return Number['NEGATIVE_INFINITY'];}['_copyMarkers'](_0x26ea08,_0xa83a29){const _0x538228=Array['from'](_0xa83a29['markers'])['map'](([_0x3e37cc,_0x4d57c5])=>[_0x3e37cc,this['_fixRange'](_0x4d57c5,_0x26ea08)]);_0x26ea08['markers']=new Map(_0x538228);}['_transformMarkers'](_0x463591){for(const _0x515f73 of this['_markers']['values']()){const _0x2f7ffa=_0x515f73['getTransformedByOperation'](_0x463591),_0x28c9c7=gt['_createFromRanges'](_0x2f7ffa);_0x515f73['start']=_0x28c9c7['start'],_0x515f73['end']=_0x28c9c7['end'];}}['_handleOperation'](_0x370969,_0x11c196){if('addRoot'!=_0x370969['type']&&'detachRoot'!=_0x370969['type']){if('insert'==_0x370969['type']){const _0x297986=_0x370969['position']['root']['rootName'];this['_diffRoots']['has'](_0x297986)||(this['_diffRoots']['set'](_0x297986,B(_0x297986,!0x0)),this['_diffRootsAttributes']['set'](_0x297986,{}),_0x11c196&&this['_idsRoots']['set'](_0x297986,B(_0x297986,!0x0)));}else{if('addRootAttribute'==_0x370969['type']||'removeRootAttribute'==_0x370969['type']||'changeRootAttribute'==_0x370969['type'])return void this['_handleRootAttributeOperation'](_0x370969);'marker'==_0x370969['type']&&this['_handleMarkerOperation'](_0x370969);}if('marker'!==_0x370969['type']){const _0x8dd4fa=this['_cloneOperation'](_0x370969,this['_diffRoots']);_0x8dd4fa['_execute'](),this['_transformMarkers'](_0x8dd4fa);}if(_0x11c196)switch(_0x370969['type']){case'insert':this['_handleInsertOperation'](_0x370969);break;case'move':case'remove':case'reinsert':this['_handleMoveOperation'](_0x370969);break;case'merge':this['_handleMergeOperation'](_0x370969);break;case'split':this['_handleSplitOperation'](_0x370969);}}else this['_handleRootOperation'](_0x370969,_0x11c196);}['_cloneOperation'](_0x5bc75e,_0x24f5a6){const _0x40b204=_0x5bc75e['clone']();return _0x40b204['_authorId']=_0x5bc75e['_authorId'],this['_fixOperation'](_0x40b204,_0x24f5a6),_0x40b204;}['_getBaseVids'](_0x485daa){return _0x485daa['map'](_0x58957c=>{const _0x18396b=this['_getVidAttributeName'](_0x58957c);return Number(_0x58957c['item']['getAttribute'](_0x18396b));});}['_generateTape'](_0x40278e,_0xed9223){if(_0x40278e['is']('element','$text'))_0xed9223['push']({'item':_0x40278e,'type':'text'});else{_0x40278e['is']('element')&&_0xed9223['push']({'item':_0x40278e,'type':'elementStart'});for(const _0x52df71 of _0x40278e['getChildren']())this['_generateTape'](_0x52df71,_0xed9223);_0x40278e['is']('element')&&_0xed9223['push']({'item':_0x40278e,'type':'elementEnd'});}return _0xed9223;}['_getState'](){const _0x209e39=new Map(this['_touched']),_0x3d6a8d=new Map(_0x209e39),_0x49788f=new Map(),_0x46b920={'insertions':{},'deletions':{}},_0x4e9931={'insertions':{},'deletions':{}},_0x41ed3c=new Map(),_0x4c855d=new Set([...this['_baseRoots']['keys'](),...this['_diffRoots']['keys']()]);_0x4c855d['delete']('$graveyard');for(const _0x128a17 of _0x4c855d){const _0x5e54a0=this['_diffRoots']['get'](_0x128a17)||B(_0x128a17,!0x1),_0x9569e8=this['_baseRoots']['get'](_0x128a17)||B(_0x128a17,!0x1);_0x5e54a0['isAttached']()||_0x9569e8['isAttached']()?(_0x46b920['insertions'][_0x128a17]=F(_0x5e54a0),_0x46b920['deletions'][_0x128a17]=F(_0x9569e8),this['_copyMarkers'](_0x46b920['deletions'][_0x128a17],_0x9569e8),this['_copyMarkers'](_0x46b920['insertions'][_0x128a17],_0x5e54a0),_0x4e9931['insertions'][_0x128a17]=this['_generateTape'](this['_idsRoots']['get'](_0x128a17),[]),_0x4e9931['deletions'][_0x128a17]=this['_generateTape'](this['_baseIdsRoots']['get'](_0x128a17)||B(_0x128a17,!0x1),[])):_0x4c855d['delete'](_0x128a17);}for(const _0x44bd30 of _0x4c855d){const _0x1fd642=_0x4e9931['insertions'][_0x44bd30];for(const _0x904ccc of _0x1fd642){const _0xf66e54=this['_getVidAttributeName'](_0x904ccc),_0x5cb049=_0x904ccc['item']['getAttribute'](_0xf66e54);_0x3d6a8d['delete'](_0x5cb049),_0x5cb049>=this['_startingRevisionId']&&_0x49788f['set'](_0x5cb049,_0x209e39['get'](_0x5cb049));}}for(const _0x1fda76 of _0x4c855d){const _0x9e066a=_0x4e9931['insertions'][_0x1fda76],_0x156fc9=this['_getBaseVids'](_0x4e9931['deletions'][_0x1fda76]);let _0x3b659f=0x0;for(const _0x29aa64 of _0x9e066a){const _0x339be6=this['_getVidAttributeName'](_0x29aa64),_0x54b6e3=_0x29aa64['item']['getAttribute'](_0x339be6);if(!_0x49788f['has'](_0x54b6e3)&&!_0x41ed3c['has'](_0x54b6e3)){if(_0x3d6a8d['has'](_0x54b6e3))_0x3b659f++;else{if(_0x54b6e3!=_0x156fc9[_0x3b659f]){const _0x6cfe86=_0x209e39['get'](_0x54b6e3)||_0x209e39['get'](_0x156fc9[_0x3b659f]);for(;_0x54b6e3!=_0x156fc9[_0x3b659f];)_0x3d6a8d['has'](_0x156fc9[_0x3b659f])||(_0x41ed3c['set'](_0x156fc9[_0x3b659f],_0x6cfe86),_0x209e39['set'](_0x156fc9[_0x3b659f],_0x6cfe86)),_0x3b659f++;}_0x3b659f++;}}}}for(const _0x59f97e of _0x4c855d){const _0x3c7433=_0x4e9931['insertions'][_0x59f97e];for(const _0x1872db of _0x3c7433){const _0x1a5b46=this['_getVidAttributeName'](_0x1872db),_0x564d14=_0x1872db['item']['getAttribute'](_0x1a5b46);if(_0x41ed3c['has'](_0x564d14)){const _0x40d135=_0x41ed3c['get'](_0x564d14);_0x3d6a8d['has'](_0x564d14)||_0x3d6a8d['set'](_0x564d14,{..._0x40d135}),_0x49788f['set'](_0x564d14,{..._0x40d135});}}}for(const _0x3d08a2 of _0x3d6a8d['keys']())_0x3d08a2>=this['_startingRevisionId']&&_0x3d6a8d['delete'](_0x3d08a2);const _0x21601c=new Map();for(const _0x50de9b of _0x4c855d){let _0x2b136e=_0x4e9931['insertions'][_0x50de9b];for(const _0x1c6836 of _0x2b136e)if(_0x1c6836['item']['is']('element','tableCell')){const _0x379ba7=this['_getVidAttributeName'](_0x1c6836),_0x28764a=_0x1c6836['item']['getAttribute'](_0x379ba7);if(_0x49788f['has'](_0x28764a)){const _0x4683e2=_0x1c6836['item']['parent']['parent']['getAttribute']('vid_start'),_0x438c4d=_0x21601c['get'](_0x4683e2)||new Set();_0x438c4d['add'](_0x49788f['get'](_0x28764a)['userId']),_0x21601c['set'](_0x4683e2,_0x438c4d);}}_0x2b136e=_0x4e9931['deletions'][_0x50de9b];for(const _0x3a27fd of _0x2b136e)if(_0x3a27fd['item']['is']('element','tableCell')){const _0x3db31a=this['_getVidAttributeName'](_0x3a27fd),_0x575143=_0x3a27fd['item']['getAttribute'](_0x3db31a);if(_0x3d6a8d['has'](_0x575143)){const _0x10658a=_0x3a27fd['item']['parent']['parent']['getAttribute']('vid_start'),_0x8d0d2e=_0x21601c['get'](_0x10658a)||new Set();_0x8d0d2e['add'](_0x3d6a8d['get'](_0x575143)['userId']),_0x21601c['set'](_0x10658a,_0x8d0d2e);}}for(const _0x5e6a36 of _0x21601c['keys']())(_0x49788f['has'](_0x5e6a36)||_0x3d6a8d['has'](_0x5e6a36))&&_0x21601c['delete'](_0x5e6a36);}for(const _0x2b61bf of _0x4c855d){const _0x31366e=_0x4e9931['insertions'][_0x2b61bf];let _0x1d65fb=null,_0x1fc81f=null;for(const _0x5726f1 of _0x31366e){const _0x49cce2=this['_getVidAttributeName'](_0x5726f1),_0x362e7a=_0x5726f1['item']['getAttribute'](_0x49cce2),_0x85ec20=_0x21601c['get'](_0x362e7a);_0x85ec20&&'elementStart'==_0x5726f1['type']&&(_0x1d65fb=Array['from'](_0x85ec20)[0x0],_0x1fc81f=_0x5726f1['item']['getAttribute']('vid_end')),_0x1d65fb&&(_0x3d6a8d['set'](_0x362e7a,{'userId':_0x1d65fb}),_0x49788f['set'](_0x362e7a,{'userId':_0x1d65fb})),_0x362e7a==_0x1fc81f&&(_0x1d65fb=null,_0x1fc81f=null);}}const _0x3ce85b={},_0x374b25=new Set();for(const _0x3f6c98 of _0x4c855d){const _0xde4cee=_0x46b920['deletions'][_0x3f6c98],_0x5974f1=_0x46b920['insertions'][_0x3f6c98];for(const {userId:_0x50176a}of this['_touchedMarkers']['values']())null!==_0x50176a&&_0x374b25['add'](_0x50176a);for(const {userId:_0x208fdf}of this['_touchedRoots']['values']())null!==_0x208fdf&&_0x374b25['add'](_0x208fdf);this['_markChanges'](_0x5974f1,_0x4e9931['insertions'][_0x3f6c98],_0x49788f,'insertion',_0x374b25),this['_markChanges'](_0xde4cee,_0x4e9931['deletions'][_0x3f6c98],_0x3d6a8d,'deletion',_0x374b25),_0x3ce85b[_0x3f6c98]={'insertions':this['_prepareViewToSave'](_0x5974f1),'deletions':this['_prepareViewToSave'](_0xde4cee),'attachChange':this['_touchedRoots']['get'](_0x3f6c98)||null,'attributesBefore':_0x36b949(this['_baseRootsAttributes']['get'](_0x3f6c98))||{},'attributesAfter':_0x36b949(this['_diffRootsAttributes']['get'](_0x3f6c98))};}return{'diffData':_0x3ce85b,'authorsIds':Array['from'](_0x374b25)};}['_processRootBeforeSave'](_0x4ca69b){for(const [,_0x163c20]of _0x4ca69b['markers']){const _0x511dc3=_0x163c20['start']['getAncestors']()['filter'](_0x1e1925=>'tableCell'==_0x1e1925['name']);for(const _0x27b0d4 of _0x511dc3)0x1==_0x27b0d4['childCount']&&_0x27b0d4['getChild'](0x0)['is']('element','paragraph')&&_0x27b0d4['getChild'](0x0)['_setAttribute']('keepParagraph',!0x0);}}['_prepareViewToSave'](_0x586b24){this['_processRootBeforeSave'](_0x586b24);const _0x38c404=this['editor']['data']['toView'](_0x586b24,{}),_0xa65872=Array['from'](_0x38c404['getChildren']())['map'](_0x354dda=>this['_getViewJson'](_0x354dda));return JSON['stringify'](_0xa65872);}['_getViewJson'](_0x348fb5){if(_0x348fb5['is']('$text'))return _0x348fb5['data'];{const _0x526256=_0x348fb5;return{'type':Object['keys'](C)['find'](_0x1bc129=>_0x348fb5 instanceof C[_0x1bc129]),'name':_0x526256['name'],'attributes':Array['from'](_0x526256['getAttributes']()),'children':Array['from'](_0x526256['getChildren']())['map'](_0x51905d=>this['_getViewJson'](_0x51905d))};}}['_markChanges'](_0x1578d9,_0x2755fe,_0x139b64,_0x5adab8,_0x174498){let _0x1e1466=null,_0x13b561=null,_0x462e70=0x0;const _0x14a78d=this['editor']['model'];for(let _0x126341=0x0;_0x126341<_0x2755fe['length'];_0x126341++){const _0x1eb720=this['_getVidAttributeName'](_0x2755fe[_0x126341]),_0x3d8d8d=_0x2755fe[_0x126341]['item']['getAttribute'](_0x1eb720),_0x1ad10b=_0x139b64['get'](_0x3d8d8d),_0x587af7=_0x126341==_0x2755fe['length']-0x1;(!_0x1e1466&&_0x1ad10b&&(_0x1e1466=_0x1ad10b,_0x13b561=_0x2755fe[_0x126341]),_0x1e1466&&(!_0x1ad10b||_0x1ad10b['userId']!=_0x1e1466['userId']))&&(_0x21c84e(_0x1ad10b,J(_0x13b561,_0x1578d9,_0x14a78d),J(_0x2755fe[_0x126341],_0x1578d9,_0x14a78d)),_0x1e1466=_0x1ad10b||null,_0x13b561=_0x1ad10b?_0x2755fe[_0x126341]:null),_0x1e1466&&_0x587af7&&_0x21c84e(_0x1ad10b,J(_0x13b561,_0x1578d9,_0x14a78d),q(_0x2755fe[_0x126341],_0x1578d9,_0x14a78d));}function _0x21c84e(_0x4167db,_0x307496,_0x480669){const _0x512673=_0x1e1466['userId'],_0xb9b0e3='revision:'+_0x5adab8+':'+_0x512673+':'+_0x462e70++,_0x24ae1d=_0x14a78d['createRange'](_0x307496,_0x480669);_0x1578d9['markers']['set'](_0xb9b0e3,_0x24ae1d),null!==_0x512673&&_0x174498['add'](_0x512673);}}['_getVidAttributeName'](_0x59f75f){switch(_0x59f75f['type']){case'elementStart':return'vid_start';case'elementEnd':return'vid_end';default:return'vid';}}['_fixOperation'](_0x25d1b2,_0x244e40){_0x25d1b2['baseVersion']=null;for(const _0x3769bb in _0x25d1b2){const _0x3790ba=_0x25d1b2[_0x3769bb];if(_0x3790ba instanceof mt){const _0x4deea4=_0x244e40['get'](_0x3790ba['root']['rootName']);_0x25d1b2[_0x3769bb]=this['_fixPosition'](_0x3790ba,_0x4deea4);}if(_0x3790ba instanceof gt){const _0x51c13a=_0x244e40['get'](_0x3790ba['root']['rootName']);_0x25d1b2[_0x3769bb]=this['_fixRange'](_0x3790ba,_0x51c13a);}'root'===_0x3769bb&&(_0x25d1b2['root']=_0x244e40['get'](_0x25d1b2['root']['rootName']));}}['_fixRange'](_0x3c9c87,_0x52a686){return this['editor']['model']['createRange'](this['_fixPosition'](_0x3c9c87['start'],_0x52a686),this['_fixPosition'](_0x3c9c87['end'],_0x52a686));}['_fixPosition'](_0x1e65d2,_0x3c152d){return this['editor']['model']['createPositionFromPath'](_0x3c152d,_0x1e65d2['path'],_0x1e65d2['stickiness']);}['_handleInsertOperation'](_0x3a5e9c){const _0x177e38=this['_idsRoots']['get'](_0x3a5e9c['position']['root']['rootName']),_0x3c1896=this['_fixPosition'](_0x3a5e9c['position'],_0x177e38),_0xc12765=null===_0x3a5e9c['_authorId']?null:_0x3a5e9c['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x1d0923=_0x3c1896['parent'],_0x3869fa=this['_revisionId'],_0x364b20=[];for(const _0xaada64 of _0x3a5e9c['nodes'])if(_0xaada64['is']('element'))_0x364b20['push'](this['_makeIdsRoot'](_0xaada64));else{for(let _0x2819be=0x0;_0x2819be<_0xaada64['offsetSize'];_0x2819be++)_0x364b20['push'](new vt('$text',{'vid':this['_revisionId']++}));}const _0x2228d9=this['_revisionId'];for(let _0x42583d=_0x3869fa;_0x42583d<_0x2228d9;_0x42583d++)this['_touched']['set'](_0x42583d,{'userId':_0xc12765});_0x1d0923['_insertChild'](_0x3c1896['offset'],_0x364b20);}['_handleMoveOperation'](_0xba48ef){(_0xba48ef=this['_cloneOperation'](_0xba48ef,this['_idsRoots']))['_execute']();const _0x1d4f15=null===_0xba48ef['_authorId']?null:_0xba48ef['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0xfd1a17=_0xba48ef['getMovedRangeStart'](),_0x5db776=_0xfd1a17['parent'],_0x4cbc0e=_0xfd1a17['offset'];!function _0x275bbc(_0x5e1b72,_0x40278c,_0x2c6c8b,_0x312a90){for(let _0x4ecaf9=_0x2c6c8b;_0x4ecaf9<_0x312a90;_0x4ecaf9++){const _0x41407b=_0x40278c['getChild'](_0x4ecaf9);_0x41407b['is']('element','$text')?_0x5e1b72['set'](_0x41407b['getAttribute']('vid'),{'userId':_0x1d4f15}):(_0x5e1b72['set'](_0x41407b['getAttribute']('vid_start'),{'userId':_0x1d4f15}),_0x275bbc(_0x5e1b72,_0x41407b,0x0,_0x41407b['childCount']),_0x5e1b72['set'](_0x41407b['getAttribute']('vid_end'),{'userId':_0x1d4f15}));}}(this['_touched'],_0x5db776,_0x4cbc0e,_0x4cbc0e+_0xba48ef['howMany']);}['_handleMergeOperation'](_0x22539f){const _0x34212e=null===(_0x22539f=this['_cloneOperation'](_0x22539f,this['_idsRoots']))['_authorId']?null:_0x22539f['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x2a40c6=_0x22539f['targetPosition']['parent'],_0x9e98fb=_0x22539f['sourcePosition']['parent'],_0x5bb46f=_0x2a40c6['getAttribute']('vid_end'),_0x9187d8=_0x9e98fb['getAttribute']('vid_start');_0x2a40c6['_setAttribute']('vid_end',_0x9e98fb['getAttribute']('vid_end')),_0x9e98fb['_setAttribute']('vid_end',_0x5bb46f),this['_touched']['set'](_0x9187d8,{'userId':_0x34212e}),this['_touched']['set'](_0x5bb46f,{'userId':_0x34212e}),_0x22539f['_execute']();}['_handleSplitOperation'](_0x542c7f){const _0x35ecc2=null===(_0x542c7f=this['_cloneOperation'](_0x542c7f,this['_idsRoots']))['_authorId']?null:_0x542c7f['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x533894=_0x542c7f['graveyardPosition'],_0xbf9424=_0x542c7f['splitPosition']['parent'];_0x542c7f['_execute']();const _0x145d5e=_0xbf9424['getAttribute']('vid_end'),_0x7f4541=_0x542c7f['insertionPosition']['nodeAfter'];if(_0x533894){const _0x47a5e7=_0x7f4541['getAttribute']('vid_end'),_0x2ba150=_0xbf9424['getAttribute']('vid_end');_0xbf9424['_setAttribute']('vid_end',_0x47a5e7),_0x7f4541['_setAttribute']('vid_end',_0x2ba150),this['_touched']['set'](_0xbf9424['getAttribute']('vid_end'),{'userId':_0x35ecc2}),this['_touched']['set'](_0x7f4541['getAttribute']('vid_start'),{'userId':_0x35ecc2});}else{const _0xf0c14=this['_revisionId']++,_0x33d071=this['_revisionId']++;_0xbf9424['_setAttribute']('vid_end',_0xf0c14),_0x7f4541['_setAttribute']('vid_start',_0x33d071),_0x7f4541['_setAttribute']('vid_end',_0x145d5e),this['_touched']['set'](_0xf0c14,{'userId':_0x35ecc2}),this['_touched']['set'](_0x33d071,{'userId':_0x35ecc2});}}['_handleMarkerOperation'](_0x2ba2c8){if(!_0x2ba2c8['affectsData'])return;const _0x24671c=(_0x2ba2c8=this['_cloneOperation'](_0x2ba2c8,this['_diffRoots']))['oldRange']?_0x2ba2c8['oldRange']['root']:null,_0x3827e8=_0x2ba2c8['newRange']?_0x2ba2c8['newRange']['root']:null;_0x24671c&&this['_markers']['delete'](_0x2ba2c8['name']),_0x3827e8&&this['_markers']['set'](_0x2ba2c8['name'],_0x2ba2c8['newRange']['clone']());const _0x158402=null===_0x2ba2c8['_authorId']?null:_0x2ba2c8['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x431d99=_0x2ba2c8['name'];if(!this['_touchedMarkers']['has'](_0x431d99))return void this['_touchedMarkers']['set'](_0x431d99,{'range':_0x2ba2c8['oldRange'],'userId':_0x158402});const _0x14a997=this['_touchedMarkers']['get'](_0x431d99),_0x1f7499=_0x14a997['range'],_0x5987a4=_0x2ba2c8['newRange'];null==_0x1f7499&&null==_0x5987a4||_0x1f7499&&_0x5987a4&&_0x1f7499['isEqual'](_0x5987a4)?this['_touchedMarkers']['delete'](_0x2ba2c8['name']):_0x14a997['userId']=_0x158402;}['_handleRootOperation'](_0x1b3026,_0x4b7be5){this['_diffRoots']['has'](_0x1b3026['rootName'])?this['_diffRoots']['get'](_0x1b3026['rootName'])['_isAttached']=_0x1b3026['isAdd']:(this['_diffRoots']['set'](_0x1b3026['rootName'],B(_0x1b3026['rootName'],!0x0)),this['_diffRootsAttributes']['set'](_0x1b3026['rootName'],{}),_0x4b7be5&&this['_idsRoots']['set'](_0x1b3026['rootName'],B(_0x1b3026['rootName'],!0x0)));const _0x263c57=null===_0x1b3026['_authorId']?null:_0x1b3026['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x5e3303=this['_touchedRoots']['get'](_0x1b3026['rootName']);_0x5e3303&&_0x5e3303['userId']===_0x263c57?this['_touchedRoots']['delete'](_0x1b3026['rootName']):this['_touchedRoots']['set'](_0x1b3026['rootName'],{'userId':_0x263c57,'isAttached':_0x1b3026['isAdd']});}['_handleRootAttributeOperation'](_0xcbeb92){const _0x5cc3eb=this['_diffRootsAttributes']['get'](_0xcbeb92['root']['rootName']);null===_0xcbeb92['newValue']?delete _0x5cc3eb[_0xcbeb92['key']]:_0x5cc3eb[_0xcbeb92['key']]=_0xcbeb92['newValue'];}}function F(_0x764428){const _0x15a7af=B(_0x764428['rootName'],_0x764428['isAttached']());for(const _0x44361e of _0x764428['getChildren']()){const _0x424356=_0x44361e['_clone'](!0x0);_0x15a7af['_appendChild'](_0x424356);}return _0x15a7af;}function B(_0x5835ba,_0x16dfee=!0x0){const _0x1d3172=new ft();return _0x1d3172['rootName']=_0x5835ba,_0x1d3172['_isAttached']=_0x16dfee,_0x1d3172['isAttached']=()=>_0x1d3172['_isAttached'],_0x1d3172;}function J(_0x5bd3da,_0x5073df,_0x577b99){const _0x36bc18='elementEnd'==_0x5bd3da['type']?_0x577b99['createPositionAt'](_0x5bd3da['item'],'end'):_0x577b99['createPositionBefore'](_0x5bd3da['item']);return _0x577b99['createPositionFromPath'](_0x5073df,_0x36bc18['path'],_0x36bc18['stickiness']);}function q(_0x2a7052,_0x233e41,_0x1516ef){const _0x1046e3='elementStart'==_0x2a7052['type']?_0x1516ef['createPositionAt'](_0x2a7052['item'],0x0):_0x1516ef['createPositionAfter'](_0x2a7052['item']);return _0x1516ef['createPositionFromPath'](_0x233e41,_0x1046e3['path'],_0x1046e3['stickiness']);}class hs extends ts{['focusTracker'];['keystrokes'];['revisionNameInputView'];constructor(_0x2346f7,_0x1cb6f7){super(_0x2346f7),this['focusTracker']=new _0xece5a1(),this['keystrokes']=new _0x2e607c(),this['set']('revisionNameInputValue',''),this['revisionNameInputView']=this['_createRevisionNameInput'](_0x1cb6f7),this['setTemplate']({'tag':'form','attributes':{'class':['ck','ck-revision-history-save-revision-form','ck-responsive-form'],'tabindex':'-1'},'children':[this['revisionNameInputView']]}),_0xdc3b0(this);}['render'](){super['render'](),_0x34890e({'view':this}),this['focusTracker']['add'](this['revisionNameInputView']['element']),this['keystrokes']['listenTo'](this['element']);const _0x590804=_0x1313d9=>_0x1313d9['stopPropagation']();this['keystrokes']['set']('arrowright',_0x590804),this['keystrokes']['set']('arrowleft',_0x590804),this['keystrokes']['set']('arrowup',_0x590804),this['keystrokes']['set']('arrowdown',_0x590804);}['focus'](){this['revisionNameInputView']['focus']();}get['revisionName'](){return this['revisionNameInputView']['fieldView']['element']['value']['trim']();}set['revisionName'](_0x52af7e){this['revisionNameInputView']['fieldView']['element']['value']=_0x52af7e['trim']();}['reset'](){this['revisionNameInputView']['fieldView']['element']['value']='',this['revisionNameInputView']['errorText']=null;}['_createRevisionNameInput'](_0x137d0f){const _0x4d4df3=new _0x562d35(this['locale'],_0x428faa),_0x2a3dc3=_0x4d4df3['fieldView'];_0x2a3dc3['extendTemplate']({'attributes':{'maxlength':'220'}});let _0x52f601=R(this['locale'],'Name\x20of\x20the\x20revision');return!_0x137d0f&&(_0x52f601+='\x20('+R(this['locale'],'optional')+')'),(_0x4d4df3['label']=_0x52f601,_0x2a3dc3['on']('input',()=>{this['revisionNameInputValue']=_0x2a3dc3['element']['value']['trim']();}),_0x4d4df3);}}class u extends _0x12191e{static get['pluginName'](){return'RevisionHistoryUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[l];}['_saveRevisionFormView'];['init'](){const _0x298575=this['editor'],_0x15e68c=_0x298575['plugins']['get']('RevisionTracker');_0x298575['ui']['componentFactory']['add']('revisionHistory',_0x15cc91=>{const _0x2d1c90=_0x31370f(_0x15cc91),_0x5dd98b=_0x2d1c90['panelView']['children'],_0xf02cf4=new _0x2d6e81(_0x15cc91),_0x4b5f88=new _0x446983(_0x15cc91),_0x5a03a8=new te(_0x15cc91),_0x59c4d2=new _0x446983(_0x15cc91),_0x230492=new te(_0x15cc91);return _0x2d1c90['bind']('isEnabled')['to'](_0x15e68c,'isReady',_0x15e68c,'isEnabled',_0x298575,'isReadOnly',(_0x647666,_0x23555b,_0x5efdff)=>_0x647666&&_0x23555b&&!_0x5efdff),_0x2d1c90['buttonView']['set']({'icon':_0x48c017['history'],'label':R(_0x15cc91,'Revision\x20history'),'tooltip':!0x0}),_0x5a03a8['set']({'label':R(_0x15cc91,'Save\x20current\x20revision'),'withText':!0x0,'role':'menuitem'}),_0x5a03a8['bind']('isEnabled')['to'](_0x15e68c,'isReady',_0x15e68c,'isEnabled',_0x298575,'isReadOnly',(_0x372b95,_0x775587,_0x3afe1a)=>_0x372b95&&_0x775587&&!_0x3afe1a),_0x5a03a8['on']('execute',()=>this['_showDialog']()),_0x230492['set']({'label':R(_0x15cc91,'Open\x20revision\x20history'),'withText':!0x0,'role':'menuitem'}),_0x230492['bind']('isEnabled')['to'](_0x15e68c,'isReady',_0x298575,'isReadOnly',(_0x50484f,_0x38447c)=>_0x50484f&&!_0x38447c),_0x230492['on']('execute',()=>{_0x298575['config']['get']('revisionHistory')['showRevisionViewerCallback'](),_0x2d1c90['isOpen']=!0x1,_0x298575['editing']['view']['focus']();}),_0x4b5f88['children']['add'](_0x5a03a8),_0x59c4d2['children']['add'](_0x230492),_0xf02cf4['role']='menu',_0xf02cf4['items']['addMany']([_0x4b5f88,_0x59c4d2]),_0x5dd98b['add'](_0xf02cf4),_0x2d1c90;}),_0x298575['ui']['componentFactory']['add']('menuBar:revisionHistory',()=>this['_registerMenuComponent']());}['_registerMenuComponent'](){const _0x3d7d37=this['editor'],_0x33aad1=_0x3d7d37['locale'],_0x58cea2=new _0x25990b(_0x33aad1),_0x524018=new _0x23dbcd(_0x33aad1);_0x58cea2['buttonView']['set']({'icon':_0x48c017['history'],'label':R(_0x33aad1,'Revision\x20history')});const _0x217fa9=new _0x2fe944(_0x33aad1,_0x58cea2),_0x5717ad=new _0x55715e(_0x33aad1);_0x5717ad['set']({'label':R(_0x33aad1,'Save\x20current\x20revision')}),_0x5717ad['delegate']('execute')['to'](_0x58cea2),_0x5717ad['on']('execute',()=>{this['_showDialog']();}),_0x217fa9['children']['add'](_0x5717ad),_0x524018['items']['add'](_0x217fa9);const _0x4aa81e=new _0x2fe944(_0x33aad1,_0x58cea2),_0x2bcf5e=new _0x55715e(_0x33aad1);return _0x2bcf5e['set']({'label':R(_0x33aad1,'Open\x20revision\x20history')}),_0x2bcf5e['delegate']('execute')['to'](_0x58cea2),_0x2bcf5e['on']('execute',()=>{_0x3d7d37['config']['get']('revisionHistory')['showRevisionViewerCallback']();}),_0x4aa81e['children']['add'](_0x2bcf5e),_0x524018['items']['add'](_0x4aa81e),_0x58cea2['panelView']['children']['add'](_0x524018),_0x58cea2;}['_showDialog'](){const _0x288651=this['editor'],_0x154fc5=_0x288651['locale'],_0x186f36=_0x288651['plugins']['get']('Dialog'),_0x263099=_0x288651['plugins']['get']('RevisionTracker');function _0x307ce8(_0x5c37a8){_0x288651['config']['get']('revisionHistory.requireRevisionName')&&''===_0x5c37a8['revisionName']?_0x5c37a8['revisionNameInputView']['errorText']=R(_0x154fc5,'The\x20revision\x20name\x20cannot\x20be\x20empty.'):(_0x288651['plugins']['get'](l)['saveRevision']({'name':_0x5c37a8['revisionName']}),_0x186f36['hide']());}this['_saveRevisionFormView']||(this['_createSaveRevisionFormView'](),this['_saveRevisionFormView']['on']('submit',()=>_0x307ce8(this['_saveRevisionFormView']))),this['_saveRevisionFormView']['reset'](),_0x186f36['show']({'id':'revisionSave','title':R(_0x154fc5,'Save\x20current\x20revision'),'isModal':!0x0,'content':this['_saveRevisionFormView'],'actionButtons':[{'label':R(_0x288651['locale'],'Cancel'),'withText':!0x0,'onExecute':()=>_0x186f36['hide']()},{'label':R(_0x288651['locale'],'Accept'),'class':'ck-button-action','withText':!0x0,'onCreate'(_0x936285){_0x936285['bind']('isEnabled')['to'](_0x263099,'isReady',_0x263099,'isEnabled',_0x288651,'isReadOnly',(_0x4954e0,_0x2c4875,_0x3ebf85)=>_0x4954e0&&_0x2c4875&&!_0x3ebf85);},'onExecute':()=>_0x307ce8(this['_saveRevisionFormView'])}]});}['_createSaveRevisionFormView'](){const _0x547a3a=this['editor'],_0x3f6ad0=_0x547a3a['locale'];this['_saveRevisionFormView']=new hs(_0x3f6ad0,_0x547a3a['config']['get']('revisionHistory.requireRevisionName')),this['_saveRevisionFormView']['render']();}}class Y extends ts{['changeId'];['_model'];constructor(_0x5b9540,_0x1e3be2){super(_0x5b9540),this['_model']=_0x1e3be2,this['changeId']=_0x1e3be2['id'];const _0x540647=this['bindTemplate'],_0x2869fa=R(_0x5b9540,_0x1e3be2['data']['isSuggestion']?'Suggested\x20by':'add'==_0x1e3be2['type']?'Added\x20by':'Removed\x20by');this['set']('type',_0x1e3be2['type']),this['setTemplate']({'tag':'div','attributes':{'class':['ck-annotation','ck-revision-change',_0x540647['to']('type',_0xb28d2d=>'ck-revision-change__'+_0xb28d2d)],'tabindex':-0x1},'children':[{'tag':'span','children':[{'tag':'span','attributes':{'class':['ck-revision-change__label']},'children':[{'text':_0x2869fa}]},{'text':'\x20'+_0x1e3be2['author']['name']}]}]});}['focus'](){this['element']['focus']();}}class r extends/* #__PURE__ -- @preserve */
25
- _0x4cc0bc(){['id'];['author'];['type'];['data'];['rootName'];constructor(_0x3c17ae){super(),this['id']=_0x3c17ae['id']||_0xa605c(),this['author']=_0x3c17ae['author'],this['type']=_0x3c17ae['type'],this['data']=_0x3c17ae['data']||{},this['rootName']=_0x3c17ae['rootName'],this['set']('createdAt',_0x3c17ae['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(_0x1d8eec,_0x21f7e7){this['newRevisionId']=_0x1d8eec,this['oldRevisionId']=_0x21f7e7,this['changes']=new _0x18cc15();}['_setChanges'](_0x4c87c8){for(const _0x48bdf1 of _0x4c87c8)this['changes']['add'](_0x48bdf1);}}const Z={'c':_0x10c507,'a':_0x50cf23,'e':_0x549b90,'r':_0x535081,'u':_0x23e3e9};class d extends _0x12191e{['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[_0x405c3e,_0x5584b5,j];}constructor(_0x110f20){super(_0x110f20),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',(_0x46ef2e,_0x3311de,_0x2cd701)=>{this['activeChange']=null,this['activeView']=null,this['editor']['editing']['view']['change'](_0x4aa1e0=>{for(const _0x34c3ff of this['editor']['editing']['view']['document']['roots'])_0x2cd701?_0x4aa1e0['removeClass']('ck-editor__editable__overlay',_0x34c3ff):_0x4aa1e0['addClass']('ck-editor__editable__overlay',_0x34c3ff);});}),this['bind']('isNavigationMode')['to'](this,'activeChange',_0x32827b=>null!==_0x32827b),this['bind']('currentChangeNumber')['to'](this,'isReady',this,'diff',this,'activeChange',(_0x2b6436,_0x4dbd53,_0x3e9469)=>_0x2b6436&&_0x3e9469?_0x4dbd53['changes']['getIndex'](_0x3e9469):0x0),this['bind']('numberOfChanges')['to'](this,'isReady',this,'diff',(_0x5a5dca,_0x2edf4a)=>_0x5a5dca?_0x2edf4a['changes']['length']:0x0),this['_changeView']=null,this['_changeIdToChange']=new Map(),this['adapter']=null,this['_balloon']=this['editor']['plugins']['get'](_0x5584b5);}['init'](){const _0x32a39d=this['editor'],_0xf5e540=new yt(_0x32a39d,{'direction':'backward'}),_0x12cd91=new yt(_0x32a39d,{'direction':'forward'});(_0x32a39d['commands']['add']('showPreviousChange',_0xf5e540),_0x32a39d['commands']['add']('showNextChange',_0x12cd91),_0x32a39d['commands']['add']('restoreRevision',new _t(_0x32a39d)),this['on']('change:numberOfChanges',()=>{_0xf5e540['refresh'](),_0x12cd91['refresh']();}),this['_setConversion'](),this['_initInteractions'](),_0x32a39d['enableReadOnlyMode']('revision-viewer'),_0x32a39d['plugins']['has']('WidgetToolbarRepository'))&&_0x32a39d['plugins']['get']('WidgetToolbarRepository')['forceDisabled']('revision-viewer');}async['getRevisionData'](_0x12ecfd){await this['loadRevisionData'](_0x12ecfd);const _0x1650a9={};for(const _0x144c06 in _0x12ecfd['diffData']){if(_0x12ecfd['diffData'][_0x144c06]['attachChange']&&!_0x12ecfd['diffData'][_0x144c06]['attachChange']['isAttached'])continue;const _0xa2fdc0=this['_removeRevisionMarkers'](JSON['parse'](_0x12ecfd['diffData'][_0x144c06]['insertions'])),_0x166f1d=this['editor']['editing']['view']['document'],_0x16c745=new _0x154369(_0x166f1d,_0xa2fdc0['map'](_0x4707ef=>this['_getViewObj'](_0x4707ef)));this['editor']['data']['processor']['useFillerType']('marked'),_0x1650a9[_0x144c06]=this['editor']['data']['processor']['toData'](_0x16c745),this['editor']['data']['processor']['useFillerType']('default');}return _0x1650a9;}async['getRevisionRootsAttributes'](_0x78b10d){await this['loadRevisionData'](_0x78b10d);const _0x9121f8={};for(const _0x1a95fc in _0x78b10d['diffData'])_0x78b10d['diffData'][_0x1a95fc]['attachChange']&&!_0x78b10d['diffData'][_0x1a95fc]['attachChange']['isAttached']||(_0x9121f8[_0x1a95fc]=_0x78b10d['diffData'][_0x1a95fc]['attributesAfter']||{});return _0x9121f8;}['_removeRevisionMarkers'](_0x4e6f58){return(_0x4e6f58=_0x4e6f58['filter'](_0x260d73=>!_0x260d73['name']||'revision-start'!==_0x260d73['name']&&'revision-end'!==_0x260d73['name']))['forEach'](_0x43c873=>{'string'!=typeof _0x43c873&&(_0x43c873['children']=this['_removeRevisionMarkers'](_0x43c873['children']),_0x43c873['attributes']=_0x43c873['attributes']['filter'](_0x37913a=>!_0x37913a[0x0]['startsWith']('data-revision-')));}),_0x4e6f58;}async['compare'](_0x59530f,_0x156ea8,_0x46ad2e=!0x1){if(!this['isEnabled'])return;const _0x1eaa35=this['diff'],_0x51e1ae=this['repository'],_0x3d3a28='string'==typeof _0x59530f?_0x51e1ae['getRevision'](_0x59530f):_0x59530f,_0x42ae94='string'==typeof _0x156ea8?_0x51e1ae['getRevision'](_0x156ea8):_0x156ea8,_0x4686a7=_0x3d3a28['id'],_0x3f13c1=_0x42ae94?_0x42ae94['id']:null;if(!_0x46ad2e&&this['diff']&&this['diff']['newRevisionId']===_0x4686a7&&this['diff']['oldRevisionId']===_0x3f13c1)return Promise['resolve']();this['isReady']=!0x1,this['activeView']=null,this['activeChange']=null,this['diff']=new f(_0x4686a7,_0x3f13c1);const _0x5442d1=this['_getRevisionsRange'](_0x3d3a28,_0x42ae94,!0x0)['map'](_0x58a9a8=>this['loadRevisionData'](_0x58a9a8));return _0x5442d1['push'](new Promise(_0x4bf3d6=>{setTimeout(_0x4bf3d6,0x14);})),Promise['all'](_0x5442d1)['then'](()=>{if(!this['isEnabled'])return;this['_cleanUp']();const _0x17f3aa=this['_getDiff'](_0x4686a7,_0x3f13c1);for(const _0x3a59d3 of _0x17f3aa['changes'])this['_changeIdToChange']['set'](_0x3a59d3['id'],_0x3a59d3);this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x25ff1b=>{for(const _0x1a54ca of this['editor']['model']['document']['getRootNames']())_0x25ff1b['detachRoot'](_0x1a54ca);for(const _0x498bf1 of Object['keys'](_0x17f3aa['model'])){const _0x471b56=_0x25ff1b['addRoot'](_0x498bf1);for(const _0x1b94e7 of Object['keys'](_0x17f3aa['attributes'][_0x498bf1]))_0x25ff1b['setAttribute'](_0x1b94e7,_0x17f3aa['attributes'][_0x498bf1][_0x1b94e7],_0x471b56);_0x25ff1b['insert'](_0x17f3aa['model'][_0x498bf1],_0x471b56,0x0);}}),this['diff']['_setChanges'](this['_sortAndFilterDiffChanges'](_0x17f3aa['changes'])),this['isReady']=!0x0;})['catch'](_0x30f501=>{console['error'](_0x30f501),this['_cleanUp'](),_0x1eaa35&&(this['diff']=_0x1eaa35),this['isReady']=!0x0;});}['addRevisionData'](_0x1d6b83,_0xb9c051){const _0x3f56fd=this['repository']['createRevision'](_0x1d6b83);return _0x3f56fd['on']('_update',(_0x2a9ac4,_0x3514de,_0xe0726f)=>_0xb9c051(_0x3514de,_0xe0726f,_0x3f56fd)),this['repository']['addRevision'](_0x3f56fd),_0x3f56fd;}['loadRevisionData'](_0x5bc09f){if(!_0x5bc09f||_0x5bc09f['diffData'])return Promise['resolve']();{const _0x10d8aa=this['editor']['config']['get']('collaboration.channelId');return this['adapter']['getRevision']({'channelId':_0x10d8aa,'revisionId':_0x5bc09f['id']})['then'](_0x31b3d0=>{_0x5bc09f['_update']({'diffData':_0x31b3d0['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},_0x3fada5=>{for(const _0x26e652 of this['editor']['model']['document']['getRootNames']())_0x3fada5['detachRoot'](_0x26e652);});}['_sortAndFilterDiffChanges'](_0x420d2d){const _0x29df1f=[],_0x31bd5d=new Map();for(const _0x2bf06a of this['editor']['model']['document']['getRootNames']()){const _0x34b2af=this['editor']['editing']['view']['getDomRoot'](_0x2bf06a);if(!_0x34b2af)continue;const _0x21770e=_0x34b2af['getClientRects']()['item'](0x0);_0x21770e&&(_0x29df1f['push'](_0x2bf06a),_0x31bd5d['set'](_0x2bf06a,_0x21770e));}return _0x29df1f['sort']((_0x143ea8,_0x1155bb)=>{const _0x986d90=_0x31bd5d['get'](_0x143ea8),_0x16f3b7=_0x31bd5d['get'](_0x1155bb);return _0x986d90['y']-_0x16f3b7['y']||_0x986d90['x']-_0x16f3b7['x'];}),(_0x420d2d=_0x420d2d['filter'](_0x2abaa5=>_0x29df1f['includes'](_0x2abaa5['rootName'])))['sort']((_0x4649fd,_0x385f8f)=>_0x29df1f['indexOf'](_0x4649fd['rootName'])-_0x29df1f['indexOf'](_0x385f8f['rootName'])),_0x420d2d;}['_makeTape'](_0x5f03ef){const _0x86d9af=Array['from'](_0x5f03ef['markers'])['filter'](([_0x47a50f,_0x47faca])=>_0x47a50f['startsWith']('revision:')&&!_0x47faca['isCollapsed']),_0x4d637a=Array['from'](this['editor']['model']['createRangeIn'](_0x5f03ef)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0x86d9af['length'])for(const _0x3fe6f5 of _0x4d637a){const [_0x11df84,_0x2613e5]=_0x86d9af[0x0],[,_0x5f4161,_0x3e7a71]=_0x11df84['split'](':');if(_0x2613e5['end']['isEqual'](_0x3fe6f5['nextPosition'])&&_0x86d9af['shift'](),(_0x3fe6f5['previousPosition']['isEqual'](_0x2613e5['start'])||_0x3fe6f5['previousPosition']['isAfter'](_0x2613e5['start']))&&('insertion'==_0x5f4161?_0x3fe6f5['isAdded']={'userId':_0x3e7a71}:'deletion'==_0x5f4161&&(_0x3fe6f5['isRemoved']={'userId':_0x3e7a71})),0x0==_0x86d9af['length'])break;}return _0x4d637a;}['_refreshStartEndIndex'](_0x30c2ea){const _0x296d22=new Map();for(let _0x3bc4a8=0x0;_0x3bc4a8<_0x30c2ea['length'];_0x3bc4a8++)'text'===_0x30c2ea[_0x3bc4a8]['type']?(_0x30c2ea[_0x3bc4a8]['item']['startIndex']=_0x3bc4a8,_0x30c2ea[_0x3bc4a8]['item']['endIndex']=_0x3bc4a8):('elementStart'===_0x30c2ea[_0x3bc4a8]['type']?_0x30c2ea[_0x3bc4a8]['item']['startIndex']=_0x3bc4a8:'elementEnd'===_0x30c2ea[_0x3bc4a8]['type']&&(_0x30c2ea[_0x3bc4a8]['item']['endIndex']=_0x3bc4a8),_0x296d22['set'](_0x30c2ea[_0x3bc4a8]['id'],_0x3bc4a8));for(const _0x2d8580 of _0x296d22['values']())'elementStart'===_0x30c2ea[_0x2d8580]['type']?_0x30c2ea[_0x2d8580]['item']['endIndex']=_0x296d22['get'](_0x30c2ea[_0x2d8580]['pairId']):'elementEnd'===_0x30c2ea[_0x2d8580]['type']&&(_0x30c2ea[_0x2d8580]['item']['startIndex']=_0x296d22['get'](_0x30c2ea[_0x2d8580]['pairId']));}['_processTape'](_0x5d8a12){for(let _0xb4b245=0x0;_0xb4b245<_0x5d8a12['length'];_0xb4b245++){if('elementStart'===_0x5d8a12[_0xb4b245]['type'])_0x5d8a12[_0xb4b245]['item']['startIndex']=_0xb4b245;else{if('elementEnd'===_0x5d8a12[_0xb4b245]['type']){_0x5d8a12[_0xb4b245]['item']['endIndex']=_0xb4b245;const _0x249992=_0x5d8a12[_0xb4b245]['item']['startIndex'];_0x5d8a12[_0x249992]['pairId']=_0x5d8a12[_0xb4b245]['id'],_0x5d8a12[_0xb4b245]['pairId']=_0x5d8a12[_0x249992]['id'];}else _0x5d8a12[_0xb4b245]['item']['startIndex']=_0xb4b245,_0x5d8a12[_0xb4b245]['item']['endIndex']=_0xb4b245,_0x5d8a12[_0xb4b245]['pairId']=null;}_0x5d8a12[_0xb4b245]['markersStart']||(_0x5d8a12[_0xb4b245]['markersStart']=[],_0x5d8a12[_0xb4b245]['markersEnd']=[]);}}['_markInsertions'](_0x1b4200,_0x1b9661){const _0x540e47=_0x1b4200['filter'](_0x5bd518=>!_0x5bd518['isAdded']);for(let _0x52bc93=0x0;_0x52bc93<_0x1b9661['length'];_0x52bc93++)_0x1b9661[_0x52bc93]['isAdded']&&(_0x540e47[_0x52bc93]['isAdded']=_0x1b9661[_0x52bc93]['isAdded']);}['_makeModelFromViewString'](_0x503aa2){const _0x108ed5=JSON['parse'](_0x503aa2),_0xafe3ff=this['editor']['editing']['view']['document'],_0x4817c6=new _0x154369(_0xafe3ff,_0x108ed5['map'](_0x9e9d8c=>this['_getViewObj'](_0x9e9d8c)));return this['editor']['data']['toModel'](_0x4817c6);}['_getViewObj'](_0x244caa){const _0x18176e=this['editor']['editing']['view']['document'];if('string'==typeof _0x244caa)return new _0x112303(_0x18176e,_0x244caa);{const _0x8aee06=_0x244caa['children']['map'](_0xb2bf3b=>this['_getViewObj'](_0xb2bf3b));return new(Z[_0x244caa['type']]||_0x118de3)(_0x18176e,_0x244caa['name'],_0x244caa['attributes'],_0x8aee06);}}['_getDiff'](_0x5a49bf,_0x274c27=null){const _0xdfc680=this['repository']['getRevision'](_0x5a49bf),_0x4a0e29=_0x274c27?this['repository']['getRevision'](_0x274c27):null,_0x8fbf09=this['_getRevisionsRange'](_0xdfc680,_0x4a0e29),_0xf13729=_0x8fbf09[_0x8fbf09['length']-0x1],_0x1ba5ce=new Map(),_0x1047da={'model':{},'attributes':{},'changes':[]},_0x2bdc1e=new Set(),_0x4951bd=new Map();for(let _0x59a143=_0x8fbf09['length']-0x1;_0x59a143>=0x0;_0x59a143--){const _0x217d35=_0x8fbf09[_0x59a143];for(const _0x8893c5 of Object['keys'](_0x217d35['diffData']))if(_0x217d35['diffData'][_0x8893c5]['attachChange']){const _0x2c38b0=_0x217d35['diffData'][_0x8893c5]['attachChange'];_0x2c38b0['isAttached']?(_0x2bdc1e['add'](_0x8893c5),_0x4951bd['has'](_0x8893c5)&&_0x4951bd['get'](_0x8893c5)['userId']==_0x2c38b0['userId']?_0x4951bd['delete'](_0x8893c5):_0x4951bd['set'](_0x8893c5,_0x2c38b0)):_0x4951bd['has'](_0x8893c5)?(_0x2bdc1e['delete'](_0x8893c5),_0x4951bd['delete'](_0x8893c5)):(_0x2bdc1e['add'](_0x8893c5),_0x4951bd['set'](_0x8893c5,_0x2c38b0));}else _0x2bdc1e['add'](_0x8893c5);}for(const _0x412cb5 of _0x2bdc1e){const _0x2584bc=_0x4951bd['has'](_0x412cb5)&&!_0x4951bd['get'](_0x412cb5)['isAttached'];let _0x5f0889=_0x2584bc?_0x8fbf09['length']-0x1:0x0;const _0x1af4b4=_0x2584bc?-0x1:0x1;for(;_0x8fbf09[_0x5f0889];){const _0x5840f8=_0x8fbf09[_0x5f0889];if(_0x5840f8['diffData'][_0x412cb5]){const _0xad175a=_0x2584bc?_0x5840f8['diffData'][_0x412cb5]['attributesBefore']:_0x5840f8['diffData'][_0x412cb5]['attributesAfter'];_0x1047da['attributes'][_0x412cb5]=_0xad175a?_0x36b949(_0xad175a):{};break;}_0x5f0889+=_0x1af4b4;}}for(const _0x3c112d of _0x8fbf09){_0x3c112d['model']={};for(const _0x7bafe4 of _0x3c112d['authors'])_0x1ba5ce['set'](_0x7bafe4['id'],_0x7bafe4);for(const _0x37b13c of _0x2bdc1e){const _0x2ab88d=_0x3c112d['diffData'][_0x37b13c]?_0x3c112d['diffData'][_0x37b13c]['insertions']:'[]',_0x282c03=_0x3c112d['diffData'][_0x37b13c]?_0x3c112d['diffData'][_0x37b13c]['deletions']:'[]';_0x3c112d['model'][_0x37b13c]={'insertions':this['_makeModelFromViewString'](_0x2ab88d),'deletions':this['_makeModelFromViewString'](_0x282c03)};}}for(const _0x11c50f of _0x2bdc1e){let _0x538a0e=null,_0x91c121=0x0;const _0x3f6661=new Map(Array['from'](_0xdfc680['model'][_0x11c50f]['insertions']['markers'])['filter'](([_0x41d50b])=>!_0x41d50b['startsWith']('revision:')));let _0x431d9c=0x0;for(const _0x2cdefb of _0x8fbf09){const _0x1f0c9b=this['_makeTape'](_0x2cdefb['model'][_0x11c50f]['insertions']);_0x2cdefb==_0xdfc680?(_0x538a0e=_0x1f0c9b,_0x91c121=_0x538a0e['length'],_0x538a0e['forEach'](_0x47ee24=>{_0x47ee24['id']=_0x431d9c++;}),this['_processTape'](_0x538a0e)):this['_markInsertions'](_0x538a0e,_0x1f0c9b);const _0x1a134b=_0x538a0e['filter'](_0x1a8444=>!_0x1a8444['isAdded'])['map'](_0x1e1735=>_0x1e1735['id']);let _0x5ba77b=0x0;const _0x22a97a=this['_makeTape'](_0x2cdefb['model'][_0x11c50f]['deletions']);_0x22a97a['forEach'](_0x467e85=>{_0x467e85['isRemoved']?_0x467e85['id']=_0x91c121++:_0x467e85['id']=_0x1a134b[_0x5ba77b++];}),this['_processTape'](_0x22a97a),this['_setDistance'](_0x538a0e,'isAdded'),this['_setDistance'](_0x22a97a,'isRemoved'),_0x2cdefb==_0xdfc680&&this['_markMarkers'](_0x538a0e,_0x3f6661),_0x538a0e=this['_joinTapes'](_0x538a0e,_0x22a97a),this['_refreshStartEndIndex'](_0x538a0e),this['_setDistance'](_0x538a0e,'isRemoved');}_0x538a0e=_0x538a0e['filter'](_0x19e10b=>!(_0x19e10b['isAdded']&&_0x19e10b['isRemoved']));const _0x5774db=new Map(_0xf13729['model'][_0x11c50f]['deletions']['markers']),_0x47bf68=new Set(_0x3f6661['keys']());for(const _0x4f996b of _0x5774db['keys']())_0x47bf68['delete'](_0x4f996b);this['_markSuggestions'](_0x538a0e,_0x47bf68),this['_fixObsoleteTags'](_0x538a0e),_0x538a0e=this['_removeMissingPairs'](_0x538a0e),_0x538a0e=this['_markMismatchedRemovedTags'](_0x538a0e),_0x538a0e=this['_removeUnsupportedChanges'](_0x538a0e);const {root:_0x1a4a3e,changes:_0x1e2f7f}=this['_makeModelFromTape'](_0x538a0e,_0x1ba5ce,_0x11c50f);_0x1047da['model'][_0x11c50f]=_0x1a4a3e;const _0x4ab478=_0x4951bd['get'](_0x11c50f);if(_0x4ab478){const _0x34e7b5=_0x1ba5ce['get'](_0x4ab478['userId']),_0x2b23a6=new r({'author':_0x34e7b5,'type':_0x4ab478['isAttached']?'add':'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x11c50f});_0x1e2f7f['unshift'](_0x2b23a6),_0x1047da['attributes'][_0x11c50f]['revisionHistoryAttachChange']=_0x2b23a6['id'];}_0x1047da['changes']=_0x1047da['changes']['concat'](_0x1e2f7f);}return _0x1047da;}['_markMarkers'](_0x2a8101,_0x572a68){for(let _0x443254=0x0;_0x443254<_0x2a8101['length'];_0x443254++)for(const [_0xbf033c,_0x42d4d5]of _0x572a68)_0x42d4d5['start']['isEqual'](_0x2a8101[_0x443254]['previousPosition'])&&_0x2a8101[_0x443254]['markersStart']['push'](_0xbf033c),_0x42d4d5['end']['isEqual'](_0x2a8101[_0x443254]['nextPosition'])&&_0x2a8101[_0x443254]['markersEnd']['push'](_0xbf033c);}['_joinTapes'](_0x525388,_0x5f49c4){let _0x10705b=[],_0x18e0a6=0x0,_0x379616=0x0;for(;_0x18e0a6<_0x525388['length']||_0x379616<_0x5f49c4['length'];){const _0x2778a7=_0x525388[_0x18e0a6]||{},_0x4b9c8f=_0x5f49c4[_0x379616]||{};if(_0x2778a7['id']==_0x4b9c8f['id'])_0x18e0a6++,_0x379616++,_0x10705b['push'](_0x2778a7);else{if(_0x4b9c8f['isRemoved']&&_0x2778a7['isAdded']){const {commonTape:_0x17719d,iEnd:_0x238afb,jEnd:_0x490735}=this['_threeWayMerge'](_0x525388,_0x18e0a6,_0x5f49c4,_0x379616);_0x10705b=_0x10705b['concat'](_0x17719d),_0x18e0a6=_0x238afb,_0x379616=_0x490735;}else _0x4b9c8f['isRemoved']?(_0x379616++,_0x10705b['push'](_0x4b9c8f)):(_0x18e0a6++,_0x10705b['push'](_0x2778a7));}}return _0x10705b;}['_markSuggestions'](_0x1f66ec,_0x7473d7){const _0x28ab09=[];for(let _0x2e9af5=0x0;_0x2e9af5<_0x1f66ec['length'];_0x2e9af5++){for(let _0x16a523=0x0;_0x16a523<_0x1f66ec[_0x2e9af5]['markersStart']['length'];_0x16a523++){const _0x26bbf7=_0x1f66ec[_0x2e9af5]['markersStart'][_0x16a523];if(!_0x7473d7['has'](_0x26bbf7))continue;const {group:_0x28b4bb,type:_0x5dfccd,authorId:_0x320b25}=_0x41eae7(_0x26bbf7);'revision-suggestion'!=_0x28b4bb||'insertion'!=_0x5dfccd&&'deletion'!=_0x5dfccd||(_0x28ab09['unshift']({'type':_0x5dfccd,'name':_0x26bbf7,'userId':_0x320b25}),_0x1f66ec[_0x2e9af5]['markersStart']['splice'](_0x16a523,0x1),_0x16a523--);}_0x44124b(_0x1f66ec[_0x2e9af5]);for(let _0xb6239d=0x0;_0xb6239d<_0x1f66ec[_0x2e9af5]['markersEnd']['length'];_0xb6239d++){const _0x5bbee7=_0x1f66ec[_0x2e9af5]['markersEnd'][_0xb6239d];if(!_0x7473d7['has'](_0x5bbee7))continue;const {group:_0x52e6ab,type:_0x400449}=_0x41eae7(_0x5bbee7);if('revision-suggestion'!=_0x52e6ab||'insertion'!=_0x400449&&'deletion'!=_0x400449)continue;_0x1f66ec[_0x2e9af5]['markersEnd']['splice'](_0xb6239d,0x1),_0xb6239d--;const _0x1e6cfc=_0x28ab09['findIndex'](_0x1b85e2=>_0x1b85e2['name']==_0x5bbee7);_0x1e6cfc>-0x1&&_0x28ab09['splice'](_0x1e6cfc,0x1);}}function _0x41eae7(_0x514716){const _0x1a9a33=_0x514716['split'](':');return{'group':_0x1a9a33[0x0],'type':_0x1a9a33[0x1],'subType':_0x1a9a33['length']>=0x5?_0x1a9a33[0x2]:null,'id':_0x1a9a33['length']<0x5?_0x1a9a33[0x2]:_0x1a9a33[0x3],'authorId':_0x1a9a33['length']<0x5?_0x1a9a33[0x3]:_0x1a9a33[0x4],'markerCount':0x6==_0x1a9a33['length']?_0x1a9a33[0x5]:null};}function _0x44124b(_0x4c05b6){for(let _0x2a5fd4=0x0;_0x2a5fd4<_0x28ab09['length'];_0x2a5fd4++){if(_0x4c05b6['isAdded']&&'insertion'==_0x28ab09[_0x2a5fd4]['type'])return _0x4c05b6['isAddSuggestion']=_0x28ab09[_0x2a5fd4],void delete _0x4c05b6['isAdded'];if(!_0x4c05b6['isAdded']&&!_0x4c05b6['isRemoved']&&'deletion'==_0x28ab09[_0x2a5fd4]['type'])return void(_0x4c05b6['isRemoveSuggestion']=_0x28ab09[_0x2a5fd4]);}}}['_setDistance'](_0x187351,_0x235ac6){let _0x5551e0=0x0,_0x54847f=!0x1;const _0x46b444=new Map();for(const _0xd28124 of _0x187351)_0xd28124[_0x235ac6]?_0x54847f&&(_0x5551e0++,_0x54847f=!0x1):(_0x5551e0++,_0x54847f=!0x0),_0x46b444['set'](_0xd28124['id'],_0x5551e0);for(let _0x5a92b6=0x0;_0x5a92b6<_0x187351['length'];_0x5a92b6++){if('isRemoved'==_0x235ac6&&_0x187351[_0x5a92b6]['isAdded']||'isAdded'==_0x235ac6&&_0x187351[_0x5a92b6]['isRemoved'])continue;if('text'==_0x187351[_0x5a92b6]['type']){_0x187351[_0x5a92b6]['distance']=0x0;continue;}const _0x4beec5=_0x46b444['get'](_0x187351[_0x5a92b6]['pairId']),_0x4f831a=_0x46b444['get'](_0x187351[_0x5a92b6]['id']);_0x187351[_0x5a92b6]['distance']=_0x4beec5-_0x4f831a;}}['_getRevisionsRange'](_0x4fe681,_0xcdd2c3,_0x1c5e14=!0x1){const _0x353c54=[];let _0x1a49a1=this['repository']['getIndex'](_0x4fe681),_0x4fde9d=this['repository']['getIndex'](_0xcdd2c3);for(-0x1==_0x4fde9d&&(_0x4fde9d=this['repository']['_revisions']['length'],_0x1c5e14=!0x1);_0x1a49a1<_0x4fde9d;)_0x353c54['push'](this['repository']['getRevision'](_0x1a49a1)),_0x1a49a1++;return _0x1c5e14&&_0x353c54['push'](this['repository']['getRevision'](_0x1a49a1)),_0x353c54;}['_threeWayMerge'](_0xcbf09c,_0x5eb6ee,_0x4a0aba,_0x3a97db){const _0x1b08b4=this['editor']['model']['schema'];let _0x3d9214=_0x5eb6ee;for(;_0xcbf09c[_0x3d9214]&&_0xcbf09c[_0x3d9214]['isAdded'];)_0x3d9214++;let _0x5ac515=_0x3a97db;for(;_0x4a0aba[_0x5ac515]&&_0x4a0aba[_0x5ac515]['isRemoved'];)_0x5ac515++;_0x4f993a(_0xcbf09c,_0x5eb6ee,_0x3d9214),_0x4f993a(_0x4a0aba,_0x3a97db,_0x5ac515);const _0x1562d1=_0x4a0aba['slice'](_0x3a97db,_0x5ac515)['concat'](_0xcbf09c['slice'](_0x5eb6ee,_0x3d9214));return _0x1562d1['sort']((_0xfeea99,_0x52667a)=>_0xfeea99['side']!=_0x52667a['side']?_0xfeea99['side']-_0x52667a['side']:_0xfeea99['level']!=_0x52667a['level']?_0xfeea99['level']-_0x52667a['level']:_0xfeea99['distance']!=_0x52667a['distance']?_0x52667a['distance']-_0xfeea99['distance']:!!_0xfeea99['isAdded']!=!!_0x52667a['isAdded']?-0x1==_0xfeea99['side']||0x0==_0xfeea99['side']?_0xfeea99['isAdded']?-0x1:0x1:_0xfeea99['isAdded']?0x1:-0x1:_0xfeea99['index']-_0x52667a['index']),{'commonTape':_0x1562d1,'iEnd':_0x3d9214,'jEnd':_0x5ac515};function _0x4f993a(_0x13f830,_0x155d1d,_0x8e5d95){let _0x1f58d2=-0x1,_0x3a461f=Number['POSITIVE_INFINITY'],_0x44b0ae=!0x0;for(let _0x42e11a=_0x155d1d;_0x42e11a<_0x8e5d95;_0x42e11a++)if(_0x1b08b4['isInline'](_0x13f830[_0x42e11a]['item'])||(_0x44b0ae=!0x1),_0x13f830[_0x42e11a]['item']['startIndex']<_0x155d1d&&(_0x1f58d2=_0x42e11a),_0x13f830[_0x42e11a]['item']['endIndex']>=_0x8e5d95){_0x3a461f=_0x42e11a;break;}_0x44b0ae&&(_0x1f58d2=_0x8e5d95-0x1);for(let _0x4a2d2f=_0x155d1d;_0x4a2d2f<_0x8e5d95;_0x4a2d2f++)_0x13f830[_0x4a2d2f]['side']=_0x4a2d2f<=_0x1f58d2?-0x1:_0x4a2d2f<_0x3a461f?0x0:0x1,_0x13f830[_0x4a2d2f]['index']=_0x4a2d2f;let _0x5bd496=0x0;for(let _0x56b657=_0x155d1d;_0x56b657<=_0x1f58d2;_0x56b657++)0x0==_0x13f830[_0x56b657]['distance']?_0x13f830[_0x56b657]['level']=_0x5bd496:(_0x5bd496++,_0x13f830[_0x56b657]['level']=_0x5bd496,_0x5bd496++);for(let _0x20b070=_0x155d1d;_0x20b070<_0x8e5d95;_0x20b070++)0x0==_0x13f830[_0x20b070]['side']&&(_0x13f830[_0x20b070]['level']=_0x5bd496);_0x5bd496=0x0;for(let _0x2b4d06=_0x8e5d95-0x1;_0x2b4d06>=_0x3a461f;_0x2b4d06--)0x0==_0x13f830[_0x2b4d06]['distance']?_0x13f830[_0x2b4d06]['level']=_0x5bd496:(_0x5bd496--,_0x13f830[_0x2b4d06]['level']=_0x5bd496,_0x5bd496--);}}['_fixObsoleteTags'](_0xe1adc4){const _0x2ead34=new Map(),_0x3df41f=this['editor']['model']['schema'];for(let _0x2f232b=0x1;_0x2f232b<_0xe1adc4['length'];_0x2f232b++){let _0x5df545,_0x18994a,_0x2b7c6e;const _0x6815a6=_0xe1adc4[_0x2f232b],_0x458ffc=_0xe1adc4[_0x2f232b-0x1];if('text'==_0x6815a6['type'])continue;if(_0x6815a6['type']!=_0x458ffc['type'])continue;if(!_0x3df41f['isBlock'](_0x458ffc['item'])||_0x3df41f['isLimit'](_0x458ffc['item']))continue;if(!_0x3df41f['isBlock'](_0x6815a6['item'])||_0x3df41f['isLimit'](_0x6815a6['item']))continue;if((_0xe1adc4[_0x2f232b]['isAdded']||_0xe1adc4[_0x2f232b]['isAddSuggestion'])&&_0xe1adc4[_0x2f232b-0x1]['isRemoved'])_0x5df545=_0xe1adc4[_0x2f232b],_0x18994a=_0xe1adc4[_0x2f232b-0x1],_0x2b7c6e=_0x2f232b-0x1;else{if(!_0xe1adc4[_0x2f232b]['isRemoved']||!_0xe1adc4[_0x2f232b-0x1]['isAdded']&&!_0xe1adc4[_0x2f232b-0x1]['isAddSuggestion'])continue;_0x5df545=_0xe1adc4[_0x2f232b-0x1],_0x18994a=_0xe1adc4[_0x2f232b],_0x2b7c6e=_0x2f232b;}const _0x308aec=_0x5df545['level']==_0x18994a['level'],_0x41631c=Math['abs'](_0x5df545['level'])<Math['abs'](_0x18994a['level'])&&0x0==_0x18994a['distance'];(_0x308aec||_0x41631c)&&(_0x2ead34['set'](_0x18994a['id'],_0x5df545['id']),_0xe1adc4['splice'](_0x2b7c6e,0x1),_0x2f232b--,_0x5df545['isAdded']=!0x1);}for(let _0x252841=0x0;_0x252841<_0xe1adc4['length'];_0x252841++)_0x2ead34['has'](_0xe1adc4[_0x252841]['pairId'])&&(_0xe1adc4[_0x252841]['pairId']=_0x2ead34['get'](_0xe1adc4[_0x252841]['pairId']));}['_removeMissingPairs'](_0x41535d){const _0x58c4db=new Set(_0x41535d['map'](_0x241b65=>_0x241b65['id']));for(let _0x3ddecf=0x0;_0x3ddecf<_0x41535d['length'];_0x3ddecf++)_0x58c4db['has'](_0x41535d[_0x3ddecf]['pairId'])||0x0==_0x41535d[_0x3ddecf]['distance']||(_0x41535d[_0x3ddecf]['isIncorrect']=!0x0);return _0x41535d['filter'](_0x5db71e=>!_0x5db71e['isIncorrect']);}['_markMismatchedRemovedTags'](_0x31b77f){const _0x444ef9=new Set();for(let _0x597dce=0x0;_0x597dce<_0x31b77f['length'];_0x597dce++){if(_0x444ef9['has'](_0x31b77f[_0x597dce]['id'])&&_0x31b77f[_0x597dce]['isRemoved']&&(_0x31b77f[_0x597dce]['isIncorrect']=!0x0),_0x31b77f[_0x597dce]['isIncorrect'])continue;if(0x0==_0x31b77f[_0x597dce]['distance'])continue;if('elementStart'!=_0x31b77f[_0x597dce]['type'])continue;if(null==_0x31b77f[_0x597dce]['pairId'])continue;let _0x29194a=_0x597dce+0x1,_0x5521ad=0x0;for(;_0x31b77f[_0x29194a]['id']!=_0x31b77f[_0x597dce]['pairId'];)'elementStart'==_0x31b77f[_0x29194a]['type']?_0x5521ad++:'elementEnd'==_0x31b77f[_0x29194a]['type']&&_0x5521ad--,_0x29194a++;if(0x0!=_0x5521ad){if(_0x31b77f[_0x597dce]['isRemoved'])_0x31b77f[_0x597dce]['isIncorrect']=!0x0;else{for(;_0x29194a!=_0x597dce;)_0x31b77f[_0x29194a]['isRemoved']&&0x0!=_0x31b77f[_0x29194a]['distance']&&(_0x31b77f[_0x29194a]['isIncorrect']=!0x0,_0x444ef9['add'](_0x31b77f[_0x29194a]['pairId'])),_0x29194a--;}}}return _0x31b77f['filter'](_0x5e3f44=>!_0x5e3f44['isIncorrect']);}['_removeUnsupportedChanges'](_0x34b51d){const _0x23606b=this['editor']['model']['schema'];for(let _0x18a95d=0x0;_0x18a95d<_0x34b51d['length'];_0x18a95d++){if(!(_0x34b51d[_0x18a95d]['isAdded']||_0x34b51d[_0x18a95d]['isAddSuggestion']||_0x34b51d[_0x18a95d]['isRemoved']||_0x34b51d[_0x18a95d]['isRemoveSuggestion']))continue;if(0x0==_0x34b51d[_0x18a95d]['distance'])continue;const _0x310854=_0x34b51d[_0x18a95d]['item'];_0x23606b['isBlock'](_0x310854)||_0x23606b['isLimit'](_0x310854)||(_0x34b51d[_0x18a95d]['isAdded']&&delete _0x34b51d[_0x18a95d]['isAdded'],_0x34b51d[_0x18a95d]['isAddSuggestion']&&delete _0x34b51d[_0x18a95d]['isAddSuggestion'],_0x34b51d[_0x18a95d]['isRemoveSuggestion']&&delete _0x34b51d[_0x18a95d]['isRemoveSuggestion'],_0x34b51d[_0x18a95d]['isRemoved']&&(_0x34b51d[_0x18a95d]['isIncorrect']=!0x0));}return _0x34b51d['filter'](_0x552385=>!_0x552385['isIncorrect']);}['_makeModelFromTape'](_0x2e8766,_0x1ebbff,_0x1d9666){const _0x3727ff=new ft(),_0x240d06=[],_0x300b4a=new Map(),_0x507518=this['editor']['model'],_0x386149=_0x507518['schema'],_0xff52f5=[_0x3727ff],_0x26eb95={},_0x14736e={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x1561ec=null;const _0x2a9c2b=[0x0];for(let _0x1dc16b=0x0;_0x1dc16b<_0x2e8766['length'];_0x1dc16b++)if('elementStart'===_0x2e8766[_0x1dc16b]['type']){_0x2e8766[_0x1dc16b]['previousPosition']=_0x507518['createPositionFromPath'](_0x3727ff,_0x2a9c2b);const _0x33da54=new vt(_0x2e8766[_0x1dc16b]['item']['name'],_0x2e8766[_0x1dc16b]['item']['getAttributes']());_0xff52f5[0x0]['_appendChild'](_0x33da54),_0x2a9c2b['push'](0x0),_0xff52f5['unshift'](_0x33da54),_0x2e8766[_0x1dc16b]['nextPosition']=_0x507518['createPositionFromPath'](_0x3727ff,_0x2a9c2b);}else'elementEnd'===_0x2e8766[_0x1dc16b]['type']?(_0xff52f5['shift'](),_0x2e8766[_0x1dc16b]['previousPosition']=_0x507518['createPositionFromPath'](_0x3727ff,_0x2a9c2b),_0x2a9c2b['pop'](),_0x2a9c2b[_0x2a9c2b['length']-0x1]++,_0x2e8766[_0x1dc16b]['nextPosition']=_0x507518['createPositionFromPath'](_0x3727ff,_0x2a9c2b)):(_0x2e8766[_0x1dc16b]['previousPosition']=_0x507518['createPositionFromPath'](_0x3727ff,_0x2a9c2b),_0x1561ec?_0x1561ec['_data']+=_0x2e8766[_0x1dc16b]['item']['data']:_0x1561ec=new wt(_0x2e8766[_0x1dc16b]['item']['data'],_0x2e8766[_0x1dc16b]['item']['getAttributes']()),_0x2e8766[_0x1dc16b+0x1]&&'text'===_0x2e8766[_0x1dc16b+0x1]['type']&&_0x46dcae(_0x1561ec,_0x2e8766[_0x1dc16b+0x1]['item'])||(_0xff52f5[0x0]['_appendChild'](_0x1561ec),_0x1561ec=null),_0x2a9c2b[_0x2a9c2b['length']-0x1]+=_0x2e8766[_0x1dc16b]['item']['offsetSize'],_0x2e8766[_0x1dc16b]['nextPosition']=_0x507518['createPositionFromPath'](_0x3727ff,_0x2a9c2b));for(let _0x214a4a=0x0;_0x214a4a<_0x2e8766['length'];_0x214a4a++){const _0x396d14=_0x2e8766[_0x214a4a]['previousPosition'],_0x5ec47c=_0x2e8766[_0x214a4a]['nextPosition'];for(const _0x2f8720 of _0x2e8766[_0x214a4a]['markersStart'])_0x300b4a['set'](_0x2f8720,{'start':_0x396d14,'end':null});_0x381423('isRemoveSuggestion',_0x214a4a,_0x396d14,_0x5ec47c),_0x381423('isAddSuggestion',_0x214a4a,_0x396d14,_0x5ec47c),_0x381423('isRemoved',_0x214a4a,_0x396d14,_0x5ec47c),_0x381423('isAdded',_0x214a4a,_0x396d14,_0x5ec47c);for(const _0x2bbd71 of _0x2e8766[_0x214a4a]['markersEnd']){_0x300b4a['get'](_0x2bbd71)['end']=_0x5ec47c;}}for(const [_0x3ec4e6,_0x208fbd]of _0x300b4a){const _0x2dd0e4=this['editor']['model']['createRange'](_0x208fbd['start'],_0x208fbd['end']);_0x3727ff['markers']['set'](_0x3ec4e6,_0x2dd0e4);}return _0x240d06['sort']((_0x23f588,_0x2ac450)=>{const _0x46bb36=_0x3727ff['markers']['get']('revision:'+_0x23f588['id']),_0xa572c7=_0x3727ff['markers']['get']('revision:'+_0x2ac450['id']);return _0x46bb36['start']['isBefore'](_0xa572c7['start'])?-0x1:_0x46bb36['start']['isAfter'](_0xa572c7['start'])?0x1:_0x46bb36['end']['isBefore'](_0xa572c7['end'])?-0x1:_0x46bb36['end']['isAfter'](_0xa572c7['end'])?0x1:'add'===_0x23f588['type']?-0x1:0x1;}),{'root':_0x3727ff,'changes':_0x240d06};function _0x381423(_0x2fdfa7,_0x14f111,_0x3b253c,_0x1d08d2){const _0xf21068=!!_0x2e8766[_0x14f111][_0x2fdfa7],_0xd7d2c2=_0xf21068?_0x2e8766[_0x14f111][_0x2fdfa7]['userId']:null,_0x3502c5=_0x14f111===_0x2e8766['length']-0x1,_0x6883c=_0x14736e[_0x2fdfa7][0x0],_0x919415=_0x386149['isObject'](_0x2e8766[_0x14f111]['item']);!_0x26eb95[_0x2fdfa7]&&_0xf21068?_0x26eb95[_0x2fdfa7]={'start':_0x3b253c,'tapeItem':_0x2e8766[_0x14f111],'userId':_0xd7d2c2,'type':_0x2fdfa7}:_0x26eb95[_0x2fdfa7]&&!_0xf21068?(_0x26eb95[_0x2fdfa7]['end']=_0x3b253c,_0x115889(_0x26eb95[_0x2fdfa7]),_0x26eb95[_0x2fdfa7]=null):_0x26eb95[_0x2fdfa7]&&_0xf21068&&_0x26eb95[_0x2fdfa7]['userId']!==_0xd7d2c2&&(_0x26eb95[_0x2fdfa7]['end']=_0x3b253c,_0x6883c&&_0x6883c['userId']===_0x26eb95[_0x2fdfa7]['userId']||_0x115889(_0x26eb95[_0x2fdfa7]),_0x26eb95[_0x2fdfa7]={'start':_0x3b253c,'tapeItem':_0x2e8766[_0x14f111],'userId':_0xd7d2c2,'type':_0x2fdfa7}),_0x26eb95[_0x2fdfa7]&&_0x919415&&('elementStart'!==_0x2e8766[_0x14f111]['type']||_0x6883c&&_0x6883c['userId']===_0xd7d2c2||_0x14736e[_0x2fdfa7]['unshift']({'userId':_0xd7d2c2,'object':_0x2e8766[_0x14f111]['item'],'change':_0x26eb95[_0x2fdfa7]}),'elementEnd'===_0x2e8766[_0x14f111]['type']&&_0x6883c&&_0x6883c['object']===_0x2e8766[_0x14f111]['item']&&(_0x14736e[_0x2fdfa7]['shift'](),_0x26eb95[_0x2fdfa7]=_0x6883c['change'])),_0x26eb95[_0x2fdfa7]&&_0x3502c5&&(_0x26eb95[_0x2fdfa7]['end']=_0x1d08d2,_0x115889(_0x26eb95[_0x2fdfa7]),_0x26eb95[_0x2fdfa7]=null);}function _0x115889({start:_0x2c1e77,end:_0x55bfe5,tapeItem:_0x2cb933,userId:_0x1d3dd2,type:_0x301c89}){const _0x4bdb52=_0x2cb933['item'],_0x512bdb=_0x507518['schema']['isBlock'](_0x4bdb52)&&!_0x507518['schema']['isLimit'](_0x4bdb52),_0x506cdd=_0x2c1e77['nodeAfter']==_0x55bfe5['parent']&&_0x55bfe5['isAtStart'];if(_0x512bdb&&_0x506cdd)return;const _0xc6ed72=_0x507518['createRange'](_0x2c1e77,_0x55bfe5),_0x4aaeb9=_0x1ebbff['get'](_0x1d3dd2),_0x17f67b=new r({'author':_0x4aaeb9,'type':'isAdded'==_0x301c89||'isAddSuggestion'==_0x301c89?'add':'remove','data':{'isSuggestion':'isAddSuggestion'==_0x301c89||'isRemoveSuggestion'==_0x301c89},'createdAt':new Date(),'rootName':_0x1d9666});_0x240d06['push'](_0x17f67b),_0x3727ff['markers']['set']('revision:'+_0x17f67b['id'],_0xc6ed72);}function _0x46dcae(_0x5ead52,_0x13ccf6){const _0x5294e9=_0x5ead52['getAttributes'](),_0x1a27f8=_0x13ccf6['getAttributes']();for(const _0x390e93 of _0x5294e9){if(_0x390e93[0x1]!==_0x13ccf6['getAttribute'](_0x390e93[0x0]))return!0x1;_0x1a27f8['next']();}return _0x1a27f8['next']()['done'];}}['_setConversion'](){this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision','view':_0x3e756d=>{const _0x19abfd=_0x3e756d['markerName']['split'](':')[0x1],_0x880bf7=this['_getChangeFromId'](_0x19abfd);if(!_0x880bf7)return null;const _0x2c9096='add'==_0x880bf7['type']?'insertion':'deletion',_0x453814=['ck-suggestion-marker','ck-suggestion-marker-'+_0x2c9096];return _0x880bf7['data']['isSuggestion']&&_0x453814['push']('ck-suggestion-marker-'+_0x2c9096+'-new'),this['activeChange']==_0x880bf7&&_0x453814['push']('ck-suggestion-marker--active'),{'classes':_0x453814,'attributes':{'data-change-id':_0x19abfd}};}}),this['editor']['conversion']['for']('upcast')['add'](_0x4dfe5f=>{_0x4dfe5f['on']('element:pre',(_0x4f1554,_0x3b1097,_0x2d972c)=>{const _0x557f41=_0x3b1097['viewItem']['getChild'](0x0);if(!_0x557f41||!_0x557f41['is']('element','code'))return;if(!_0x2d972c['consumable']['consume'](_0x557f41,{'attributes':['vid_start','vid_end']}))return;const _0x3029b0=_0x3b1097['modelRange']['start']['nodeAfter'];_0x2d972c['writer']['setAttribute']('vid_start',_0x557f41['getAttribute']('vid_start'),_0x3029b0),_0x2d972c['writer']['setAttribute']('vid_end',_0x557f41['getAttribute']('vid_end'),_0x3029b0);},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['add'](_0xe4572f=>{_0xe4572f['on']('element',(_0x9dcc17,_0x182ecd,_0x48629b)=>{if(!_0x48629b['consumable']['consume'](_0x182ecd['viewItem'],{'attributes':['vid_start','vid_end']}))return;if(_0x182ecd['modelRange']['isCollapsed'])return;const _0x571d6c=_0x182ecd['modelRange']['start']['nodeAfter'];_0x571d6c['hasAttribute']('vid_start')||_0x571d6c['hasAttribute']('vid')||(_0x48629b['writer']['setAttribute']('vid_start',_0x182ecd['viewItem']['getAttribute']('vid_start'),_0x571d6c),_0x48629b['writer']['setAttribute']('vid_end',_0x182ecd['viewItem']['getAttribute']('vid_end'),_0x571d6c));},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['elementToAttribute']({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0x56b017=>_0x56b017['getAttribute']('vid')}}),this['editor']['model']['schema']['on']('checkAttribute',(_0x229551,[,_0x4e8b8b])=>{['vid_start','vid_end','vid']['includes'](_0x4e8b8b)&&(_0x229551['return']=!0x0,_0x229551['stop']());},{'priority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x202cac=>{_0x202cac['on']('attribute:vid',(_0x415e93,_0x238980,_0x13c98f)=>{if('\x20'!=_0x238980['item']['data']||_0x238980['item']['parent']['maxOffset']>0x1)return;if(!_0x13c98f['consumable']['consume'](_0x238980['item'],_0x415e93['name']))return;const _0x278724=_0x13c98f['writer'],_0x2bef00=_0x13c98f['mapper']['toViewRange'](_0x238980['range']);_0x278724['wrap'](_0x2bef00,_0x278724['createAttributeElement']('span'));});}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',function(_0xea316){const _0x138a05=_0xea316['plugins']['get']('RevisionViewer');return(_0x14d894,_0x59b38b,_0x3816fb)=>{const _0x92cd07=_0x59b38b['markerName']['split'](':')[0x1],_0x3e1fab=_0x138a05['_getChangeFromId'](_0x92cd07);if(!_0x3e1fab)return null;const _0x530de9='add'==_0x3e1fab['type']?'split':'merge';if(!_0x3816fb['consumable']['test'](_0x59b38b['markerRange'],_0x14d894['name']))return;const _0x141034=_0x59b38b['markerRange']['getWalker'](),_0x25d0c5=_0x59b38b['markerRange']['start'],_0x172aa6=_0xea316['model']['schema'];let _0x344113=null,_0x46a8fb=null,_0x413e60=!0x1,_0xe3f6d6=!0x1;for(const _0x182578 of _0x141034){const _0x22ec5e=_0x182578['item'];_0x413e60=_0x413e60||_0x172aa6['isContent'](_0x22ec5e);const _0x3bc8d0=_0x3816fb['mapper']['toViewElement'](_0x22ec5e);if(_0x3bc8d0&&_0x3bc8d0['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x182578['type']&&(_0x172aa6['isBlock'](_0x22ec5e)&&!_0x172aa6['isLimit'](_0x22ec5e)&&(_0x22ec5e['nextSibling']||_0x25d0c5['isAtEnd']?_0x344113&&_0x344113['parent']==_0x22ec5e||(_0x344113=_0x22ec5e,_0x95429(_0x182578['previousPosition']),_0xe3f6d6=!0x0):_0x46a8fb=_0x46a8fb||_0x182578['previousPosition']));}function _0x95429(_0x3568ea){const _0x572c14=_0x3816fb['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x530de9}),_0x12c90a=_0x3816fb['mapper']['toViewPosition'](_0x3568ea);_0x3e1fab['data']['isSuggestion']&&_0x3816fb['writer']['addClass']('ck-suggestion-marker-'+_0x530de9+'-new',_0x572c14),_0x138a05['activeChange']==_0x3e1fab&&_0x3816fb['writer']['addClass']('ck-suggestion-marker--active',_0x572c14),_0x3816fb['writer']['insert'](_0x12c90a,_0x572c14),_0x3816fb['mapper']['bindElementToMarker'](_0x572c14,_0x59b38b['markerName']);}_0x413e60||_0xe3f6d6||!_0x46a8fb||_0x95429(_0x46a8fb);};}(this['editor']),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision',(_0xb7293d,_0x5707bf,_0xbb1f9d)=>{const _0x57ac81=_0xbb1f9d['mapper']['markerNameToElements'](_0x5707bf['markerName']);if(_0x57ac81){for(const _0x3872c9 of _0x57ac81)(_0x3872c9['hasClass']('ck-suggestion-marker-split')||_0x3872c9['hasClass']('ck-suggestion-marker-merge'))&&(_0xbb1f9d['mapper']['unbindElementFromMarkerName'](_0x3872c9,_0x5707bf['markerName']),_0xbb1f9d['writer']['remove'](_0x3872c9));}},{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',(_0x1546a4,_0x3a87fa,_0x47bf29)=>{const _0x41815b=_0x3a87fa['markerName']['split'](':')[0x1],_0x160462=this['_getChangeFromId'](_0x41815b);if(!_0x160462)return null;const _0x4ff2a9='add'==_0x160462['type']?'split':'merge';if(_0x47bf29['consumable']['test'](_0x3a87fa['markerRange'],_0x1546a4['name']))for(const _0x3b22b4 of _0x3a87fa['markerRange']['getItems']()){if(!_0x3b22b4['is']('element','softBreak'))continue;const _0x19ae32=_0x47bf29['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x4ff2a9}),_0xad29=_0x47bf29['mapper']['toViewPosition'](this['editor']['model']['createPositionBefore'](_0x3b22b4));_0x160462['data']['isSuggestion']&&_0x47bf29['writer']['addClass']('ck-suggestion-marker-'+_0x4ff2a9+'-new',_0x19ae32),this['activeChange']==_0x160462&&_0x47bf29['writer']['addClass']('ck-suggestion-marker--active',_0x19ae32),_0x47bf29['writer']['insert'](_0xad29,_0x19ae32),_0x47bf29['mapper']['bindElementToMarker'](_0x19ae32,_0x3a87fa['markerName']);}},{'priority':'high'}),this['editor']['model']['document']['on']('change',()=>{this['editor']['editing']['view']['change'](_0x204416=>{for(const _0xb8a8ee of this['editor']['model']['document']['getRootNames']()){const _0x5154ca=this['editor']['model']['document']['getRoot'](_0xb8a8ee),_0x2cefab=this['editor']['editing']['view']['document']['getRoot'](_0xb8a8ee);if(_0x2cefab){const _0x57c0fb=_0x5154ca['getAttribute']('revisionHistoryAttachChange');if(_0x204416['removeAttribute']('data-change-id',_0x2cefab),_0x204416['removeClass']('ck-revision-history-root-add',_0x2cefab),_0x204416['removeClass']('ck-revision-history-root-remove',_0x2cefab),_0x204416['removeClass']('ck-revision-history-root--active',_0x2cefab),_0x57c0fb){const _0x2c1513=this['_getChangeFromId'](_0x57c0fb);if(!_0x2c1513)return null;_0x204416['setAttribute']('data-change-id',_0x57c0fb,_0x2cefab),_0x204416['addClass']('ck-revision-history-root-'+_0x2c1513['type'],_0x2cefab),this['activeChange']==_0x2c1513&&_0x204416['addClass']('ck-revision-history-root--active',_0x2cefab);}}}});}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'comment','model':_0x5ac5c6=>'revision-comment:'+_0x5ac5c6,'converterPriority':'highest'}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion','model':_0x4893dd=>'revision-suggestion:'+_0x4893dd,'converterPriority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision-suggestion','view':_0x420283=>({'name':'suggestion:'+_0x420283,'group':'revision-suggestion'}),'converterPriority':'highest'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision-suggestion','view':_0x128fd0=>{const _0x7aa974=_0x128fd0['markerName']['split'](':')[0x1];return'insertion'!=_0x7aa974&&'deletion'!=_0x7aa974?null:{'classes':['ck-suggestion-preview-marker','ck-suggestion-preview-marker-'+_0x7aa974]};}}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:deletion',tt(this['editor'],'merge'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:insertion',tt(this['editor'],'split'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision-suggestion',(_0x5865b7,_0x3f409c,_0x23e76a)=>{const _0x4e228e=_0x23e76a['mapper']['markerNameToElements'](_0x3f409c['markerName']);if(_0x4e228e){for(const _0x7dc96 of _0x4e228e)_0x7dc96['is']('uiElement')&&(_0x23e76a['mapper']['unbindElementFromMarkerName'](_0x7dc96,_0x3f409c['markerName']),_0x23e76a['writer']['remove'](_0x7dc96));}},{'priority':'high'});}['_getChangeFromId'](_0x4b4993){return this['_changeIdToChange']['get'](_0x4b4993);}['_getViewForChange'](_0x4c825a){return this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=new Y(this['editor']['locale'],_0x4c825a),this['_changeView'];}['_initInteractions'](){this['editor']['model']['document']['selection']['observeMarkers']('revision'),this['on']('change:activeView',(_0x2f3c11,_0x1df242,_0x550ddd,_0x37a5ba)=>{_0x37a5ba&&this['_balloon']['remove'](_0x37a5ba),_0x550ddd&&(this['_balloon']['add']({'view':_0x550ddd,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0x2f6011=this['editor']['editing'],_0xe72391=this['_getChangeFromId'](_0x550ddd['changeId']);let _0x5d8e7d;if(_0xe72391['data']['isOnRoot']){const _0x2e3dde=_0x2f6011['view']['getDomRoot'](_0xe72391['rootName']);_0x5d8e7d=Array['from'](_0x2e3dde['getClientRects']());}else{const _0x2ce17a=this['editor']['model']['markers']['get']('revision:'+_0x550ddd['changeId']);_0x5d8e7d=Array['from'](_0x2f6011['mapper']['markerNameToElements'](_0x2ce17a['name']))['map'](_0x3cca2c=>_0x2f6011['view']['domConverter']['mapViewToDom'](_0x3cca2c))['map'](_0x288308=>Array['from'](_0x288308['getClientRects']()))['flat']();}if(!this['_activeViewTarget'])return _0x5d8e7d[0x0];return _0x5d8e7d['find'](_0x4da02f=>_0x4da02f['top']-0x3<=this['_activeViewTarget']['y']&&_0x4da02f['bottom']+0x3>=this['_activeViewTarget']['y']&&_0x4da02f['left']-0x3<=this['_activeViewTarget']['x']&&_0x4da02f['right']+0x3>=this['_activeViewTarget']['x'])||_0x5d8e7d[0x0];}}}),this['_balloon']['showStack']('revisionHistoryLabel'));}),this['on']('change:activeChange',(_0x260a8c,_0x253e89,_0x4a8149,_0x3fb66c)=>{this['activeView']=_0x4a8149?this['_getViewForChange'](_0x4a8149):null,this['editor']['model']['change'](()=>{const _0x28a09f=this['editor']['editing'];_0x3fb66c&&(_0x3fb66c['data']['isOnRoot']?_0x28a09f['view']['change'](_0x23f704=>{_0x23f704['removeClass']('ck-revision-history-root--active',_0x28a09f['view']['document']['getRoot'](_0x3fb66c['rootName']));}):_0x28a09f['reconvertMarker']('revision:'+_0x3fb66c['id'])),_0x4a8149&&(_0x4a8149['data']['isOnRoot']?_0x28a09f['view']['change'](_0x1ca514=>{_0x1ca514['addClass']('ck-revision-history-root--active',_0x28a09f['view']['document']['getRoot'](_0x4a8149['rootName']));}):_0x28a09f['reconvertMarker']('revision:'+_0x4a8149['id']));});}),this['listenTo'](this['editor']['editing']['view']['document'],'mouseover',(_0x5e2659,_0x4e34da)=>{if(this['activeChange'])return;const _0x24acf9=this['_findChangeIdFromDomTarget'](_0x4e34da['target']),_0x53c060=this['_changeIdToChange']['get'](_0x24acf9);_0x53c060?(this['_activeViewTarget']={'x':_0x4e34da['domEvent']['x'],'y':_0x4e34da['domEvent']['y']},this['activeView']=this['_getViewForChange'](_0x53c060)):(this['_activeViewTarget']=null,this['activeView']=null);}),this['listenTo'](this['editor']['editing']['view']['document'],'mousedown',(_0x26de44,_0x1d4bbb)=>{const _0x23f5a4=this['_findChangeIdFromDomTarget'](_0x1d4bbb['target']),_0x37c8b6=this['_changeIdToChange']['get'](_0x23f5a4);_0x37c8b6?(this['_activeViewTarget']={'x':_0x1d4bbb['domEvent']['x'],'y':_0x1d4bbb['domEvent']['y']},_0x37c8b6===this['activeChange']?this['_balloon']['updatePosition']():this['activeChange']=_0x37c8b6):(this['_activeViewTarget']=null,this['activeChange']=null);});}['_findChangeIdFromDomTarget'](_0x23c77d){do{const _0x565aad=_0x23c77d['getAttribute']('data-change-id');if(_0x565aad)return _0x565aad;_0x23c77d=_0x23c77d['parent'];}while(_0x23c77d);return null;}['_cleanMarkers'](){this['editor']['model']['change'](_0x2c83aa=>{for(const _0x1ee0e1 of this['editor']['model']['markers'])_0x2c83aa['removeMarker'](_0x1ee0e1);});}}function tt(_0x4ee1f0,_0x4a0f57){return(_0x5699bd,_0x3bb069,_0x3d964c)=>{if(!_0x3d964c['consumable']['test'](_0x3bb069['markerRange'],_0x5699bd['name']))return;const _0x29aec1=_0x3bb069['markerRange']['getWalker'](),_0x5a3c9f=_0x3bb069['markerRange']['start'],_0x223236=_0x4ee1f0['model']['schema'];let _0x2f3eb6=null,_0x4f27a1=null,_0x2977c2=!0x1,_0x50f877=!0x1;for(const _0x2a6792 of _0x29aec1){const _0xa4681a=_0x2a6792['item'];_0x2977c2=_0x2977c2||_0x223236['isContent'](_0xa4681a);const _0x4355ea=_0x3d964c['mapper']['toViewElement'](_0xa4681a);if(_0x4355ea&&_0x4355ea['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x2a6792['type']&&(_0x223236['isBlock'](_0xa4681a)&&!_0x223236['isLimit'](_0xa4681a)&&(_0xa4681a['nextSibling']||_0x5a3c9f['isAtEnd']?_0x2f3eb6&&_0x2f3eb6['parent']==_0xa4681a||(_0x2f3eb6=_0xa4681a,_0x1825e2(_0x2a6792['previousPosition']),_0x50f877=!0x0):_0x4f27a1=_0x4f27a1||_0x2a6792['previousPosition']));}function _0x1825e2(_0x202b43){const _0x130f91=_0x3d964c['mapper']['toViewPosition'](_0x202b43),_0x38f50d=_0x3d964c['writer']['createUIElement']('span',{'class':'ck-suggestion-preview-marker-'+_0x4a0f57});_0x3d964c['writer']['insert'](_0x130f91,_0x38f50d),_0x3d964c['mapper']['bindElementToMarker'](_0x38f50d,_0x3bb069['markerName']);}_0x2977c2||_0x50f877||!_0x4f27a1||_0x1825e2(_0x4f27a1);};}class _t extends _0x57ae62{constructor(_0x1fd973){super(_0x1fd973);const _0x28b12=_0x1fd973['plugins']['get'](d);this['affectsData']=!0x1,this['listenTo'](_0x28b12,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x28b12,'change:isEnabled',()=>this['refresh']());}['execute'](){const _0xecfba7=this['editor'],_0x1fe4f0=_0xecfba7['plugins']['get'](d),_0x5d03ad=_0x1fe4f0['isReady']?_0x1fe4f0['diff']['newRevisionId']:null;_0xecfba7['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x5d03ad);}['refresh'](){const {isReady:_0x1b976f,isEnabled:_0x5ba652}=this['editor']['plugins']['get'](d);this['isEnabled']=_0x1b976f&&_0x5ba652;}}class yt extends _0x57ae62{['_step'];constructor(_0x1b0f3b,{direction:_0xa04aed}){super(_0x1b0f3b);const _0x10ec70=_0x1b0f3b['plugins']['get'](d);this['affectsData']=!0x1,this['_step']='forward'===_0xa04aed?0x1:-0x1,this['listenTo'](_0x10ec70,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x10ec70,'change:isEnabled',()=>this['refresh']()),this['listenTo'](_0x10ec70,'change:activeChange',()=>this['refresh']());}['execute'](){const _0x2e97a5=this['editor'],_0x27b197=_0x2e97a5['plugins']['get'](d),{isNavigationMode:_0x31361e,currentChangeNumber:_0x5e6814}=_0x27b197;let _0x33f89d;if(_0x27b197['activeChange']=_0x31361e?_0x27b197['diff']['changes']['get'](_0x5e6814+this['_step']):_0x27b197['diff']['changes']['first'],_0x27b197['activeChange']['data']['isOnRoot'])_0x33f89d=_0x2e97a5['editing']['view']['getDomRoot'](_0x27b197['activeChange']['rootName']);else{const _0x5ca420=_0x2e97a5['model']['markers']['get']('revision:'+_0x27b197['activeChange']['id']);_0x33f89d=_0x2d9dc8(_0x2e97a5['editing'],_0x5ca420);}_0x1936d6({'target':_0x33f89d,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0x2e2f82,currentChangeNumber:_0x372c6e,numberOfChanges:_0x1460b5,isReady:_0x9a7de0,isEnabled:_0x5df253}=this['editor']['plugins']['get'](d);this['isEnabled']=!!(_0x5df253&&_0x9a7de0&&_0x1460b5)&&(!_0x2e2f82||(0x1===this['_step']?_0x372c6e<_0x1460b5-0x1:_0x372c6e>0x0));}}class ei extends ts{constructor(_0x54fae6){super(_0x54fae6);const _0x14e6e4=this['bindTemplate'],_0x5a5bea=new te(_0x54fae6),_0x5afdfd=new te(_0x54fae6);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',(_0x307bb7,_0x595885)=>_0x307bb7&&_0x595885>0x0),this['bind']('_statusText')['to'](this,'isReady',this,'currentChangeNumber',this,'numberOfChanges',this,'isNavigationMode',(_0x148c4c,_0x5b4a5b,_0x54875f,_0x55ab91)=>{if(!_0x148c4c)return R(_0x54fae6,'Loading...');if(!_0x54875f)return R(_0x54fae6,'No\x20changes');const _0x3d1387=R(_0x54fae6,'NUMBER_OF_CHANGES',_0x54875f);return _0x55ab91?R(_0x54fae6,'X_OF_Y_CHANGES',[_0x5b4a5b+0x1,_0x54875f]):_0x3d1387;}),_0x5a5bea['set']({'label':R(_0x54fae6,'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'}),_0x5afdfd['set']({'label':R(_0x54fae6,'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'}),_0x5a5bea['bind']('isEnabled')['to'](this,'isBackwardNavigationEnabled'),_0x5afdfd['bind']('isEnabled')['to'](this,'isForwardNavigationEnabled'),_0x5a5bea['on']('execute',()=>this['fire']('execute','backward')),_0x5afdfd['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',_0x14e6e4['if']('_isStatusLabelVisible','ck-hidden',_0x1db240=>!_0x1db240)]},'children':[{'text':_0x14e6e4['to']('isNavigationMode',_0x580491=>_0x580491?R(_0x54fae6,'EDIT_X_OF_Y_REVISIONS')+':\x20':R(_0x54fae6,'Total')+':\x20')}]},{'text':_0x14e6e4['to']('_statusText')}]},new _0x6c342d(),{'tag':'div','attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0x5a5bea,_0x5afdfd]}]});}}const le='ck-editor__editable__loading-overlay';class de extends _0x12191e{static get['pluginName'](){return'RevisionViewerLoadingOverlay';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['show'](){const _0x573b2f=this['editor']['editing']['view'];_0x573b2f['change'](_0x1822bd=>{for(const _0x786608 of _0x573b2f['document']['roots'])_0x1822bd['addClass'](le,_0x786608);});}['hide'](){const _0x4a3462=this['editor']['editing']['view'];_0x4a3462['change'](_0x23b60f=>{for(const _0x3ff223 of _0x4a3462['document']['roots'])_0x23b60f['removeClass'](le,_0x3ff223);});}}class m extends _0x12191e{static get['pluginName'](){return'RevisionViewerUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[d,de];}['init'](){const _0x2e63aa=this['editor'],_0x3b6ace=_0x2e63aa['plugins']['get'](d),_0x189831=_0x2e63aa['plugins']['get'](de);_0x2e63aa['ui']['componentFactory']['add']('exitToEditing',_0x2040a4=>{const _0x423b3d=new te(_0x2040a4);return _0x423b3d['set']({'label':R(_0x2040a4,'Back\x20to\x20editing'),'icon':_0x48c017['undo'],'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this['listenTo'](_0x423b3d,'execute',()=>{_0x2e63aa['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}),_0x423b3d;}),_0x2e63aa['ui']['componentFactory']['add']('restoreRevision',_0x1fc20f=>{const _0x5092f1=new te(_0x1fc20f);return _0x5092f1['set']({'label':R(_0x1fc20f,'Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0x5092f1['bind']('isEnabled')['to'](_0x2e63aa['commands']['get']('restoreRevision')),this['listenTo'](_0x5092f1,'execute',()=>_0x2e63aa['execute']('restoreRevision')),_0x5092f1;}),_0x2e63aa['ui']['componentFactory']['add']('changesNavigation',_0x5bdaed=>{const _0x474123=new ei(_0x5bdaed),_0x2adafc=_0x2e63aa['commands']['get']('showPreviousChange'),_0xdb3e34=_0x2e63aa['commands']['get']('showNextChange');return _0x474123['bind']('isBackwardNavigationEnabled')['to'](_0x2adafc,'isEnabled'),_0x474123['bind']('isForwardNavigationEnabled')['to'](_0xdb3e34,'isEnabled'),_0x474123['bind']('isReady','currentChangeNumber','numberOfChanges','isNavigationMode')['to'](_0x3b6ace),this['listenTo'](_0x474123,'execute',(_0x2507e0,_0x3f9d45)=>{_0x2e63aa['execute']('forward'===_0x3f9d45?'showNextChange':'showPreviousChange');}),_0x474123;}),_0x189831['show'](),_0x3b6ace['on']('change:isReady',(_0x4f140c,_0x4575f1,_0x30c0ce)=>{_0x30c0ce?_0x189831['hide']():_0x189831['show']();});}}class pt extends _0x562d35{['_resizeObserver']=null;constructor(_0x13c152,_0x506caa){super(_0x13c152,_0x506caa);const _0x3d4bb7=this['bindTemplate'];this['set']({'label':R(_0x13c152,'Revision\x20name'),'_tooltipString':''}),this['fieldView']['placeholder']=R(_0x13c152,'Enter\x20the\x20revision\x20name'),this['extendTemplate']({'tag':'span','attributes':{'class':['ck-revision-history-sidebar__revision-name'],'data-cke-tooltip-text':_0x3d4bb7['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 _0x5e91aa=this['fieldView']['element'];this['_tooltipString']=_0x5e91aa['scrollWidth']>_0x5e91aa['clientWidth']&&_0x5e91aa['value']||'';}}class ai extends ts{constructor(_0x13483d,_0x472cbf,_0x3f5814){super(_0x13483d);const _0x4f94c2=new _0x3742bc();_0x4f94c2['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 _0x114849=['ck','ck-revision-history-sidebar__revision-author'];_0x3f5814&&_0x114849['push']('ck-revision-history-sidebar__revision-author_creator');const _0x2932bf=[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':R(_0x13483d,_0x3f5814?'Revision\x20creator':'Revision\x20author')},'children':[_0x4f94c2,_0x472cbf['name']]}];this['setTemplate']({'tag':'li','attributes':{'class':_0x114849},'children':_0x2932bf});}}function _i(_0x673905,_0x51afcf){const _0x40209f=_0x673905['bindTemplate'],_0x1423c4=_0x673905['locale'],_0x269cb8=_0x31370f(_0x1423c4);_0x269cb8['panelPosition']='sw';const _0x392394=function(_0x559879,_0x3f32fa){const _0x4d2a24=function(_0x567b1b,_0x394535){const _0x2b6687=_0x567b1b['locale'],_0x459f68={'Compare\x20against\x20selected':R(_0x2b6687,'Compare\x20against\x20selected'),'Name\x20this\x20revision':R(_0x2b6687,'Name\x20this\x20revision'),'Restore\x20this\x20revision':R(_0x2b6687,'Restore\x20this\x20revision')};return _0x394535['map'](_0x29c607=>{const _0x340971=_0x459f68[_0x29c607['name']];return _0x340971&&_0x340971!==_0x29c607['name']&&(_0x29c607['name']=_0x340971),_0x29c607;});}(_0x559879,_0x3f32fa),_0x5ebae0=new _0x18cc15();for(const _0x4bbdc0 of _0x4d2a24){const _0x48c3bd={'type':'button','model':new _0x4cf5b2({'label':_0x4bbdc0['name'],'class':_0x4bbdc0['class'],'withText':!0x0,'role':'menuitem','_action':_0x4bbdc0['action']})};_0x48c3bd['model']['bind']('isEnabled')['to'](_0x559879,'isActionsDropdownOpen',_0xe35252=>'function'!=typeof _0x4bbdc0['isEnabled']||(!_0xe35252||_0x4bbdc0['isEnabled'](_0x559879))),_0x5ebae0['add'](_0x48c3bd);}return _0x5ebae0;}(_0x673905,_0x51afcf);return _0x673905['bind']('isActionsDropdownOpen')['to'](_0x269cb8,'isOpen'),_0x269cb8['buttonView']['set']({'label':R(_0x1423c4,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x48c017['threeVerticalDots']}),_0x269cb8['extendTemplate']({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0x40209f['if']('isActionsDropdownOpen','ck-on')]},'on':{'click':_0x40209f['to'](_0x2a7cd4=>_0x2a7cd4['stopPropagation']())}}),_0x269cb8['on']('execute',_0x300270=>{_0x673905['isReady']&&'function'==typeof _0x300270['source']['_action']&&_0x300270['source']['_action'](_0x673905);}),to(_0x269cb8,_0x392394,{'role':'menu'}),_0x269cb8['listenTo'](_0x673905,'change:isActionsDropdownOpen',(_0x18f1f3,_0x2bdf9e,_0x30ef65)=>{if(_0x30ef65)for(const _0x26eadb of _0x269cb8['listView']['items']){const _0x3b512a=_0x26eadb['children']['first'],_0x3ddf3d=_0x51afcf['find'](_0x17317e=>_0x17317e['action']===_0x3b512a['_action'])['isVisible'];_0x26eadb['isVisible']=void 0x0===_0x3ddf3d||_0x3ddf3d(_0x673905);}}),_0x269cb8;}class ri extends/* #__PURE__ -- @preserve */
26
- _0x2cc4fb(ts){['id'];['revisionNameView'];['revisionActionsView'];['_revision'];['_requireRevisionName'];constructor(_0x21998b,_0x1396e4,_0x20a1df,_0x50abbe){super(_0x21998b);const _0x3218ad=this['bindTemplate'],_0xfeae5f=function(_0x249ea8,_0x59cb0d){const _0x81b0cc=Array['from'](_0x59cb0d['authors'])['filter'](_0x414c22=>_0x414c22!=_0x59cb0d['creator']);return _0x59cb0d['creator']&&_0x81b0cc['unshift'](_0x59cb0d['creator']),_0x81b0cc['map'](_0x186bc8=>new ai(_0x249ea8,_0x186bc8,_0x186bc8==_0x59cb0d['creator']));}(_0x21998b,_0x1396e4);this['id']=_0x1396e4['id'],this['_revision']=_0x1396e4,this['_requireRevisionName']=_0x50abbe,this['bind']('name','createdAt')['to'](_0x1396e4),this['bind']('_createdAtFormatted')['to'](this,'createdAt',_0x7d241e=>{return _0x59f245=_0x21998b['uiLanguage'],(_0x144edc=_0x7d241e)['toLocaleDateString'](_0x59f245,{'month':'long','day':'numeric'})+',\x20'+_0x144edc['toLocaleTimeString'](_0x59f245,{'hour':'numeric','minute':'numeric'});var _0x59f245,_0x144edc;}),this['set']('isSelected',!0x1),this['set']('isHighlighted',!0x1),this['set']('isActionsDropdownOpen',!0x1),this['set']('isReady',!0x1),this['set']('isEnabled',!0x1),this['revisionNameView']=new pt(_0x21998b,_0x428faa),this['revisionNameView']['fieldView']['extendTemplate']({'attributes':{'maxlength':'220'}}),this['revisionNameView']['fieldView']['bind']('value')['to'](this,'name',_0x8ae9b0=>_0x8ae9b0||this['_createdAtFormatted']),this['revisionNameView']['bind']('isEnabled')['to'](this,'isSelected',this,'isEnabled',(_0x1e1550,_0x2e0bac)=>_0x1e1550&&_0x2e0bac),this['revisionActionsView']=_0x20a1df&&_0x20a1df['length']?_i(this,_0x20a1df):'',this['revisionActionsView']&&this['revisionActionsView']['bind']('isEnabled')['to'](this),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision-wrapper',_0x3218ad['if']('isConfirm','ck-revision-history-sidebar__revision-wrapper_confirmation_visible')]},'children':[{'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision',_0x3218ad['if']('isEnabled','ck-disabled',_0x43b64f=>!_0x43b64f),_0x3218ad['if']('isSelected','ck-revision-history-sidebar__revision_selected'),_0x3218ad['if']('isHighlighted','ck-revision-history-sidebar__revision_highlighted'),_0x3218ad['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':_0x3218ad['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':_0xfeae5f}]},this['revisionActionsView']],'on':{'click':_0x3218ad['to'](_0x18b0bb=>{_0x18b0bb['srcElement']['closest']('.ck-thread__remove-confirm')||this['isReady']&&this['isEnabled']&&this['fire']('select',{'id':this['id']});})}}]});}['render'](){super['render']();const _0x32eba3=this['revisionNameView']['fieldView']['element'];this['listenTo'](_0x32eba3,'change',()=>{this['_requireRevisionName']&&!_0x32eba3['value']||this['fire']('setName',{'id':this['id'],'name':_0x32eba3['value']}),_0x32eba3['value']||(_0x32eba3['value']=this['name']?this['name']:this['_createdAtFormatted']);});}['select'](){this['isSelected']=!0x0;}['deselect'](){this['isSelected']=!0x1;}['highlight'](){this['isHighlighted']=!0x0;}['unhighlight'](){this['isHighlighted']=!0x1;}}function oi(_0x49f733,_0x1b58b5){const _0x833ca5=_0x2f8240['fromJSDate'](_0x49f733)['setLocale'](_0x1b58b5),_0x2a57cc=_0x2f8240['local'](),_0x2efcce=_0x2a57cc['minus']({'days':0x1})['startOf']('day');let _0x421963,_0x3f04be;return _0x833ca5['hasSame'](_0x2a57cc,'day')?(_0x421963=_0x833ca5['startOf']('day')['toJSDate'](),_0x3f04be=_0x833ca5['toRelativeCalendar']()):_0x833ca5['hasSame'](_0x2efcce,'day')?(_0x421963=_0x2efcce['toJSDate'](),_0x3f04be=_0x833ca5['toRelativeCalendar']()):_0x833ca5['hasSame'](_0x2a57cc,'week')?(_0x421963=_0x833ca5['startOf']('week')['toJSDate'](),_0x3f04be=_0x833ca5['weekdayLong']||''):_0x833ca5['hasSame'](_0x2a57cc,'year')?(_0x421963=_0x833ca5['startOf']('month')['toJSDate'](),_0x3f04be=_0x833ca5['monthLong']||''):(_0x421963=_0x833ca5['startOf']('year')['toJSDate'](),_0x3f04be=String(_0x833ca5['year'])),{'startDate':_0x421963,'localizedPeriodName':_0x3f04be};}class hi extends ts{['startDate'];['revisionViews'];['_revisionActions'];['_requireRevisionName'];constructor(_0x25072e,_0x3ad5d9,_0x17ce31,_0x72f2e){super(_0x25072e);const _0x300d13=oi(_0x3ad5d9,this['locale']['uiLanguage'])['localizedPeriodName'];this['startDate']=_0x3ad5d9,this['revisionViews']=this['createCollection'](),this['_revisionActions']=_0x17ce31,this['_requireRevisionName']=_0x72f2e,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':_0x300d13}]},{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__time-period__revisions']},'children':this['revisionViews']}]});}['addRevision'](_0x2cb835){const _0x5e9b61=new ri(this['locale'],_0x2cb835,this['_revisionActions'],this['_requireRevisionName']);this['revisionViews']['add'](_0x5e9b61);}['removeRevision'](_0x4315f6){const _0x2bf487=this['revisionViews']['find'](_0x253311=>_0x253311['id']===_0x4315f6['id']);this['revisionViews']['remove'](_0x2bf487);}}class cs extends ts{constructor(_0x1eef77){super(_0x1eef77);const _0x1c21e0=new _0x3742bc();_0x1c21e0['content']=_0x48c017['history'],this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all','ck-revision-history-sidebar__header']},'children':[_0x1c21e0,{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__header__label']},'children':[R(_0x1eef77,'Revision\x20history')]}]});}}class ni extends ts{['timePeriodViews'];['_revisions'];['_revisionActions'];['_requireRevisionName'];constructor(_0x15e68b,_0x7eebcf,_0x1b5726,_0x516979){super(_0x15e68b);const _0x5abf48=this['bindTemplate'];this['timePeriodViews']=this['createCollection'](),this['timePeriodViews']['delegate']('select')['to'](this),this['timePeriodViews']['delegate']('setName')['to'](this),this['_revisions']=_0x7eebcf,this['_revisionActions']=_0x1b5726,this['_requireRevisionName']=_0x516979,this['on']('select',(_0x5d0264,_0x540839)=>{this['fire']('revisionSelected',_0x540839);}),this['on']('setName',(_0x3ecbe7,_0x5626aa)=>{this['fire']('revisionSetName',_0x5626aa);}),this['set']('isEnabled',!0x1),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-rounded-corners','ck-revision-history-sidebar']},'children':[new cs(_0x15e68b),{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__timeline',_0x5abf48['if']('isEnabled','ck-disabled',_0x3306ca=>!_0x3306ca)]},'children':this['timePeriodViews']}]});}['render'](){super['render']();for(const _0x1181ae of this['_revisions'])this['_addRevision'](_0x1181ae);this['_revisions']['on']('add',(_0x21858d,_0x294544)=>{this['_addRevision'](_0x294544);}),this['_revisions']['on']('remove',(_0x1c2e53,_0x4811bf)=>{this['_removeRevision'](_0x4811bf);});}get['revisionViews'](){return this['timePeriodViews']['map'](_0x54aebf=>_0x54aebf['revisionViews']['map'](_0x488a4c=>_0x488a4c))['flat']();}['selectRevision'](_0x558d70){for(const _0x432db5 of this['revisionViews'])_0x558d70&&_0x558d70['id']===_0x432db5['id']?_0x432db5['select']():_0x432db5['deselect']();}['highlightRevisions'](_0x214aff){for(const _0x43b935 of this['revisionViews'])_0x214aff['some'](({id:_0x626a28})=>_0x626a28===_0x43b935['id'])?_0x43b935['highlight']():_0x43b935['unhighlight']();}['_addRevision'](_0x20df68){const _0x381546=oi(_0x20df68['createdAt'],this['locale']['uiLanguage'])['startDate'];let _0x1ca9b3=this['timePeriodViews']['get'](0x0);_0x1ca9b3&&_0x1ca9b3['startDate']['getTime']()===_0x381546['getTime']()||(_0x1ca9b3=new hi(this['locale'],_0x381546,this['_revisionActions'],this['_requireRevisionName']),this['timePeriodViews']['add'](_0x1ca9b3)),_0x1ca9b3['addRevision'](_0x20df68);}['_removeRevision'](_0x22bde3){const _0x471b46=oi(_0x22bde3['createdAt'],this['locale']['uiLanguage'])['startDate'];this['_getTimePeriodViewByStartDate'](_0x471b46)['removeRevision'](_0x22bde3);}['_getTimePeriodViewByStartDate'](_0x46e65c){return this['timePeriodViews']['find'](_0x530a91=>_0x530a91['startDate']['getTime']()===_0x46e65c['getTime']());}}class g extends _0x12191e{['_revisionViewer'];['_revisionsRepository'];['_sidebarView'];static ['defaultRevisionActions']=/* #__PURE__ -- @preserve */
23
+ import{ObservableMixin as _0x2d9fa2,uid as _0x20cbb6,Collection as _0x3101f7,logWarning as _0x5015ec,FocusTracker as _0x145988,KeystrokeHandler as _0x467d25,scrollViewportToShowTarget as _0x47c73b,ResizeObserver as pt,ElementReplacer as ct,CKEditorError as _0x3df807}from'@ckeditor/ckeditor5-utils/dist/index.js';import{cloneDeep as _0x1fb55a,set as _0x239703,unset as _0x302331,isEqual as _0x5c996c}from'lodash-es';import{Plugin as _0x4d79c3,PendingActions as _0x56a235,icons as _0x242327,Command as _0x491a06,ElementApiMixin as rt,Editor as it}from'@ckeditor/ckeditor5-core/dist/index.js';import{Users as _0x49181d,getMarkerDomElement as _0xbe21a1,ConfirmMixin as _0xfcd923,sanitizeEditorConfig as _0x2b5783}from'ckeditor5-collaboration/dist/index.js';import{DocumentFragment as ft,ViewDocumentFragment as _0x5f2b4d,ViewText as _0x7460ad,ViewUIElement as _0x112385,ViewRawElement as _0xc6f0ba,ViewEmptyElement as _0xe52ebd,ViewAttributeElement as _0x4ac225,ViewContainerElement as _0x2b13a5,ViewElement as _0xc0f395,Element as vt,Range as gt,Position as wt,Text as _t}from'@ckeditor/ckeditor5-engine/dist/index.js';import{View as _0x316821,injectCssTransitionDisabler as ts,submitHandler as _0x31630c,LabeledFieldView as at,createLabeledInputText as _0xe78c44,createDropdown as _0x4c2de5,ListView as _0x306d40,ListItemView as te,ButtonView as _0x5a4262,MenuBarMenuView as _0x3a6d47,MenuBarMenuListView as _0x36bdfa,MenuBarMenuListItemView as _0xef6591,MenuBarMenuListItemButtonView as _0x23ed94,ContextualBalloon as _0x3a5f83,ToolbarSeparatorView as _0x2d0281,IconView as _0x5841c1,ViewModel as to,addListToDropdown as _0x368a11,EditorUI as ot,normalizeToolbarConfig as ht,BoxedEditorUIView as dt,StickyPanelView as lt,ToolbarView as nt,InlineEditableUIView as ut}from'@ckeditor/ckeditor5-ui/dist/index.js';import{DateTime as _0x1543f7}from'luxon';class a extends/* #__PURE__ -- @preserve */
24
+ _0x2d9fa2(){['id'];['creator'];['authors'];['diffData'];['toVersion'];['fromVersion'];['model'];constructor(_0x18dcef){super(),this['id']=_0x18dcef['id']||_0x20cbb6(),this['creator']=_0x18dcef['creator']||null,this['authors']=_0x18dcef['authors']||[],this['diffData']=_0x18dcef['diffData']||null,this['toVersion']=_0x18dcef['toVersion']||0x0,this['fromVersion']=_0x18dcef['fromVersion']||0x0,this['set']('name',_0x18dcef['name']||''),this['set']('createdAt',_0x18dcef['createdAt']||new Date()),this['set']('attributes',_0x18dcef['attributes']||{});}['setName'](_0x1a0e27){this['_update']({'name':_0x1a0e27});}['setAttribute'](_0xb7286,_0xdc5618){const _0x22b48e=_0x1fb55a(this['attributes']);_0x239703(_0x22b48e,_0xb7286,_0xdc5618),this['_update']({'attributes':_0x22b48e});}['removeAttribute'](_0x131d6b){const _0xbba9a8=_0x1fb55a(this['attributes']);_0x302331(_0xbba9a8,_0x131d6b),this['_update']({'attributes':_0xbba9a8});}['_update'](_0x587d30,_0x45db91=!0x1){let _0x50c432=!0x1;const _0x1ed414={'id':this['id']},_0xadc332=['name','createdAt','diffData','authors','attributes','toVersion','fromVersion','creatorId'];for(const _0x1f59f8 of _0xadc332){const _0x3f145c=_0x587d30[_0x1f59f8];void 0x0!==_0x3f145c&&_0x3f145c!==this[_0x1f59f8]&&(this[_0x1f59f8]=_0x3f145c,_0x1ed414[_0x1f59f8]=_0x3f145c,_0x50c432=!0x0);}_0x50c432&&(_0x1ed414['authors']&&(_0x1ed414['authorsIds']=_0x1ed414['authors']['map'](_0x2c2db7=>_0x2c2db7['id']),delete _0x1ed414['authors']),this['fire']('_update',_0x1ed414,_0x45db91));}['toJSON'](){return{'id':this['id'],'name':this['name'],'creatorId':this['creator']?this['creator']['id']:null,'authorsIds':this['authors']['map'](_0x2c97a8=>_0x2c97a8['id']),'diffData':this['diffData'],'createdAt':this['createdAt'],'attributes':this['attributes'],'fromVersion':this['fromVersion'],'toVersion':this['toVersion']};}}class j extends _0x4d79c3{['_revisions'];static get['requires'](){return[_0x49181d];}static get['pluginName'](){return'RevisionsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['length'](){return this['_revisions']['length'];}constructor(_0xc7cc45){super(_0xc7cc45),this['_revisions']=new _0x3101f7();}['afterInit'](){!async function(_0x57fd0e){const _0x38ea52=_0xa42361([0x73,0x47,0x61,0x4e,0x6b,0x78,0x74,0x76,0x4a,0x6f,0x42,0x57,0x6a,0x38,0x36,0x31,0x58,0x50,0x71,0x69,0x54,0x6d,0x65,0x34,0x68,0x53,0x72,0x33,0x55,0x41,0x56,0x43,0x37,0x63,0x44,0x64,0x75,0x62,0x46,0x7a,0x66,0x32,0x39,0x6c,0x70,0x4b,0x51,0x4c,0x6e,0x5a,0x30,0x35,0x52,0x77,0x48,0x4f,0x67,0x49,0x45,0x4d,0x79,0x59]),_0x157588=0xeb829,_0x427782=0x1b988286,_0xa20116=0x1b9fd5a6^_0x427782,_0x5a4c35=window[_0xa42361([0x44,0x61,0x74,0x65])][_0xa42361([0x6e,0x6f,0x77])](),_0x382e6a=_0x57fd0e[_0xa42361([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x1568e0=new window[(_0xa42361([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1f630e=>{_0x382e6a[_0xa42361([0x6f,0x6e,0x63,0x65])](_0xa42361([0x72,0x65,0x61,0x64,0x79]),_0x1f630e);}),_0x25d8d2={[_0xa42361([0x6b,0x74,0x79])]:_0xa42361([0x45,0x43]),[_0xa42361([0x75,0x73,0x65])]:_0xa42361([0x73,0x69,0x67]),[_0xa42361([0x63,0x72,0x76])]:_0xa42361([0x50,0x2d,0x32,0x35,0x36]),[_0xa42361([0x78])]:_0xa42361([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]),[_0xa42361([0x79])]:_0xa42361([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]),[_0xa42361([0x61,0x6c,0x67])]:_0xa42361([0x45,0x53,0x32,0x35,0x36])},_0x5cc942=_0x382e6a[_0xa42361([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0xa42361([0x67,0x65,0x74])](_0xa42361([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x2c2ba0(){let _0x4d8afd,_0x4aa399=null,_0x968123=null;try{if(_0x5cc942==_0xa42361([0x47,0x50,0x4c]))return _0xa42361([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x4d8afd=_0x272de8(),!_0x4d8afd)return _0xa42361([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x4d8afd[_0xa42361([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x968123=_0x121af4(_0x4d8afd[_0xa42361([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x4d8afd[_0xa42361([0x6a,0x74,0x69])])),await _0x1ca682()?_0x5d90b3()?_0x5a0f10()?_0xa42361([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x33b2cc()?(_0x4d8afd[_0xa42361([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0xa42361([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x4aa399=_0x481c1a(_0xa42361([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x4d8afd[_0xa42361([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0xa42361([0x74,0x72,0x69,0x61,0x6c])&&(_0x4aa399=_0x481c1a(_0xa42361([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),_0x4d8afd[_0xa42361([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0xa42361([0x64,0x65,0x76,0x65,0x6c,0x6f,0x70,0x6d,0x65,0x6e,0x74])&&(_0x4aa399=_0x481c1a(_0xa42361([0x44,0x65,0x76,0x65,0x6c,0x6f,0x70,0x6d,0x65,0x6e,0x74,0x4c,0x69,0x6d,0x69,0x74]))),await _0x4e96df()):_0xa42361([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0xa42361([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0xa42361([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x244f47){return _0xa42361([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x5a0f10(){const _0x43bec3=[_0xa42361([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0xa42361([0x74,0x72,0x69,0x61,0x6c])][_0xa42361([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4d8afd[_0xa42361([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x5a4c35/0x3e8:0xe10*_0xa20116;return _0x4d8afd[_0xa42361([0x65,0x78,0x70])]<_0x43bec3;}function _0x5d90b3(){const _0x55e823=_0x4d8afd[_0xa42361([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x55e823&&(!!_0x55e823[_0xa42361([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xa42361([0x2a]))||(!!_0x55e823[_0xa42361([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xa42361([0x52,0x48]))||!(!_0x55e823[_0xa42361([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xa42361([0x52,0x52,0x48]))||!_0x134d11())));}function _0x33b2cc(){const _0x468b39=_0x4d8afd[_0xa42361([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x468b39||0x0==_0x468b39[_0xa42361([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x4aac0e}=new URL(window[_0xa42361([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x468b39[_0xa42361([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4aac0e))return!0x0;const _0x142173=_0x4aac0e[_0xa42361([0x73,0x70,0x6c,0x69,0x74])](_0xa42361([0x2e]));return _0x468b39[_0xa42361([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x3d60fd=>_0x3d60fd[_0xa42361([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xa42361([0x2a])))[_0xa42361([0x6d,0x61,0x70])](_0x4a1f9d=>_0x4a1f9d[_0xa42361([0x73,0x70,0x6c,0x69,0x74])](_0xa42361([0x2e])))[_0xa42361([0x73,0x6f,0x6d,0x65])](_0x310f0e=>_0x142173[_0xa42361([0x65,0x76,0x65,0x72,0x79])]((_0x413782,_0x543ff8)=>_0x310f0e[_0x543ff8]===_0x413782||_0x310f0e[_0x543ff8]===_0xa42361([0x2a])));}function _0x4e96df(){return _0x4aa399&&_0x968123?new window[(_0xa42361([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x47a30c,_0x378c6b)=>{_0x4aa399[_0xa42361([0x74,0x68,0x65,0x6e])](_0x47a30c,_0x378c6b),_0x968123[_0xa42361([0x74,0x68,0x65,0x6e])](_0x291436=>{_0x291436!=_0xa42361([0x56,0x61,0x6c,0x69,0x64])&&_0x47a30c(_0x291436);},_0x378c6b);}):_0x4aa399||_0x968123||_0xa42361([0x56,0x61,0x6c,0x69,0x64]);}}function _0x121af4(_0x19ebdf,_0x427236){return new window[(_0xa42361([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x475dcd=>{if(_0x131b5e())return _0x475dcd(_0xa42361([0x56,0x61,0x6c,0x69,0x64]));_0x2fb8fd(),_0x382e6a[_0xa42361([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0xa42361([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x1cb788=!0x1;const _0xe7a3d3=_0x20cbb6();function _0x4eb9dd(_0x4ef0be){return!!_0x4ef0be&&(typeof _0x4ef0be===_0xa42361([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x4ef0be===_0xa42361([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x4ef0be[_0xa42361([0x74,0x68,0x65,0x6e])]===_0xa42361([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x4ef0be[_0xa42361([0x63,0x61,0x74,0x63,0x68])]===_0xa42361([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x207dfc(_0x5d2ddd){_0x1679ef(_0x5d2ddd)[_0xa42361([0x74,0x68,0x65,0x6e])](_0x2b5f50=>{if(!_0x2b5f50||_0x2b5f50[_0xa42361([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0xa42361([0x6f,0x6b]))return _0xa42361([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x8a31ca(_0x4cf2cb(_0xe7a3d3+_0x427236))!=_0x2b5f50[_0xa42361([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0xa42361([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0xa42361([0x56,0x61,0x6c,0x69,0x64]);})[_0xa42361([0x74,0x68,0x65,0x6e])](_0xbcc38c=>(_0x2cd184(),_0xbcc38c),()=>{const _0x2aba5b=_0x2db53a();return null==_0x2aba5b?(_0x2cd184(),_0xa42361([0x56,0x61,0x6c,0x69,0x64])):_0xa42361(_0x5a4c35-_0x2aba5b>(0x3f940686^_0x427782)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0xa42361([0x74,0x68,0x65,0x6e])](_0x475dcd)[_0xa42361([0x63,0x61,0x74,0x63,0x68])](()=>{_0x475dcd(_0xa42361([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x3d0590=0x1bae6c06^_0x427782;function _0x2cd184(){const _0xb1b316=_0xa42361([0x6c,0x6c,0x63,0x74,0x2d])+_0x8a31ca(_0x4cf2cb(_0x19ebdf)),_0xfe4727=_0x52515a(_0x8a31ca(window[_0xa42361([0x4d,0x61,0x74,0x68])][_0xa42361([0x63,0x65,0x69,0x6c])](_0x5a4c35/_0x3d0590)));window[_0xa42361([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0xa42361([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0xb1b316,_0xfe4727);}function _0x2db53a(){const _0x4e8b50=_0xa42361([0x6c,0x6c,0x63,0x74,0x2d])+_0x8a31ca(_0x4cf2cb(_0x19ebdf)),_0x3f05d9=window[_0xa42361([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0xa42361([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4e8b50);return _0x3f05d9?window[_0xa42361([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x52515a(_0x3f05d9),0x10)*_0x3d0590:null;}function _0x1679ef(_0x1d804e){return new window[(_0xa42361([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x187f82,_0x448226)=>{_0x1d804e[_0xa42361([0x74,0x68,0x65,0x6e])](_0x187f82,_0x448226),window[_0xa42361([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x448226,0x1b995646^_0x427782);});}}_0x382e6a[_0xa42361([0x6f,0x6e])](_0xa42361([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x229d62,_0x41d776)=>{if(_0x41d776[0x0]!=_0x19ebdf)return _0x475dcd(_0xa42361([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x41d776[0x1]={..._0x41d776[0x1],[_0xa42361([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0xe7a3d3};},{[_0xa42361([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0xa42361([0x68,0x69,0x67,0x68])}),_0x382e6a[_0xa42361([0x6f,0x6e])](_0xa42361([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x1a056b=>{_0x4eb9dd(_0x1a056b[_0xa42361([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x1cb788=!0x0,_0x207dfc(_0x1a056b[_0xa42361([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0xa42361([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0xa42361([0x6c,0x6f,0x77])}),_0x1568e0[_0xa42361([0x74,0x68,0x65,0x6e])](()=>{_0x1cb788||_0x475dcd(_0xa42361([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x131b5e(){return _0x382e6a[_0xa42361([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0xa42361([0x76,0x69,0x65,0x77])][_0xa42361([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0xa42361([0x61,0x75,0x74,0x6f]);}function _0x2fb8fd(){_0x382e6a[_0xa42361([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0xa42361([0x76,0x69,0x65,0x77])][_0xa42361([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0xa42361([0x61,0x75,0x74,0x6f]);}}function _0x481c1a(_0x2fbfca){const _0x2ec323=[new window[(_0xa42361([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3bbdbe=>setTimeout(_0x3bbdbe,0x1b91bc4a^_0x427782)),_0x1568e0[_0xa42361([0x74,0x68,0x65,0x6e])](()=>new window[(_0xa42361([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x43d213=>{const _0x246d21=0x1b988281^_0x427782,_0x491909=_0x57fd0e[_0xa42361([0x5f,0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x73])];function _0xbf46d8(){_0x491909[_0xa42361([0x6c,0x65,0x6e,0x67,0x74,0x68])]>=_0x246d21&&_0x43d213();}_0xbf46d8(),_0x491909[_0xa42361([0x6f,0x6e])](_0xa42361([0x61,0x64,0x64]),_0xbf46d8);})),new window[(_0xa42361([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x8358a=>{function _0x14a76d(){for(const _0x4a4d6f in window)if(window[_0xa42361([0x4e,0x75,0x6d,0x62,0x65,0x72])]['isNaN'](window[_0xa42361([0x4e,0x75,0x6d,0x62,0x65,0x72])](_0x4a4d6f))&&window[_0x4a4d6f]==_0x157588)return _0x8358a();_0x382e6a[_0xa42361([0x73,0x74,0x61,0x74,0x65])]!=_0xa42361([0x64,0x65,0x73,0x74,0x72,0x6f,0x79,0x65,0x64])&&window[_0xa42361([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x14a76d,0x1b98910e^_0x427782);}_0x6e6be7(_0xa42361([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))&&_0x14a76d();})];return window[_0xa42361([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0xa42361([0x72,0x61,0x63,0x65])](_0x2ec323)[_0xa42361([0x74,0x68,0x65,0x6e])](()=>_0x2fbfca);}async function _0x3f1748(){if(await _0x1568e0,_0x6e6be7(_0xa42361([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))){const _0x5b012f=_0x57fd0e[_0xa42361([0x67,0x65,0x74,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])](0x0),_0x2763e7=_0x57fd0e[_0xa42361([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])](_0x5b012f[_0xa42361([0x69,0x64])]),_0x596380=_0x2e9d92(_0xa42361([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]));return await _0x596380[_0xa42361([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])](_0x5b012f['id'],_0x2763e7?_0x2763e7['id']:null,!0x0),_0x596380[_0xa42361([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0xa42361([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x596380[_0xa42361([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x596380[_0xa42361([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])]=_0x33e0cf,void(_0x596380[_0xa42361([0x5f,0x67,0x65,0x74,0x44,0x69,0x66,0x66])]=_0x33e0cf);}if(_0x6e6be7(_0xa42361([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]))){const _0x1236a6=_0x2e9d92(_0xa42361([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]));_0x1236a6[_0xa42361([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0xa42361([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x1236a6[_0xa42361([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x1236a6[_0xa42361([0x75,0x70,0x64,0x61,0x74,0x65])]=_0x33e0cf,_0x1236a6[_0xa42361([0x73,0x61,0x76,0x65,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])]=_0x33e0cf;}_0x382e6a[_0xa42361([0x6d,0x6f,0x64,0x65,0x6c])][_0xa42361([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x33e0cf,_0x382e6a[_0xa42361([0x6d,0x6f,0x64,0x65,0x6c])][_0xa42361([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x33e0cf,_0x382e6a[_0xa42361([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0xa42361([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x134d11(){return _0x6e6be7(_0xa42361([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x2e9d92(_0xa42361([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0xa42361([0x73,0x74,0x61,0x74,0x65])]==_0xa42361([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x227c56(_0x558cc5){const _0x57e146=_0x4c1b2f();_0x382e6a[_0x57e146]=_0xa42361([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])+_0x558cc5,_0x558cc5[_0xa42361([0x65,0x6e,0x64,0x73,0x57,0x69,0x74,0x68])](_0xa42361([0x4c,0x69,0x6d,0x69,0x74]))&&(window[_0x4c1b2f()]=_0x157588),_0x558cc5!=_0xa42361([0x56,0x61,0x6c,0x69,0x64])&&_0x3f1748();}function _0x4c1b2f(){const _0x5cd20f=window[_0xa42361([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0xa42361([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0xa42361([0x6e,0x6f,0x77])]())[_0xa42361([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0xa42361([0x2e]),'');let _0x27225d=_0xa42361([0x73]);for(let _0x26bff5=0x0;_0x26bff5<_0x5cd20f[_0xa42361([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x26bff5+=0x2){let _0x27126e=window[_0xa42361([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5cd20f[_0xa42361([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x26bff5,_0x26bff5+0x2));_0x27126e>=_0x38ea52[_0xa42361([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x27126e-=_0x38ea52[_0xa42361([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x27225d+=_0x38ea52[_0x27126e];}return _0x27225d;}function _0x272de8(){const _0x3ad613=_0x5cc942[_0xa42361([0x73,0x70,0x6c,0x69,0x74])](_0xa42361([0x2e]));if(0x3!=_0x3ad613[_0xa42361([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x5ef4b6(_0x3ad613[0x1]);function _0x5ef4b6(_0x41b2c5){const _0x31556d=_0x3b02a7(_0x41b2c5);return _0x31556d&&_0x386bd5()?_0x31556d:null;function _0x386bd5(){const _0x3a88a3=_0x31556d[_0xa42361([0x6a,0x74,0x69])],_0x3a36c4=window[_0xa42361([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3a88a3[_0xa42361([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3a88a3[_0xa42361([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x2b83b3={..._0x31556d,[_0xa42361([0x6a,0x74,0x69])]:_0x3a88a3[_0xa42361([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x3a88a3[_0xa42361([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x2b83b3[_0xa42361([0x76,0x63])],_0x4cf2cb(_0x2b83b3)==_0x3a36c4;}}}async function _0x1ca682(){let _0xfe8219=!0x0;try{const _0x5e956f=_0x5cc942[_0xa42361([0x73,0x70,0x6c,0x69,0x74])](_0xa42361([0x2e])),[_0x368434,_0x23c03b,_0x1fb87a]=_0x5e956f;return _0x514f93(_0x368434),await _0x1341b9(_0x368434,_0x23c03b,_0x1fb87a),_0xfe8219;}catch(_0x4e5a0a){return!0x1;}function _0x514f93(_0x35eb28){const _0x229d39=_0x3b02a7(_0x35eb28);_0x229d39&&_0x229d39[_0xa42361([0x61,0x6c,0x67])]==_0xa42361([0x45,0x53,0x32,0x35,0x36])||(_0xfe8219=!0x1);}async function _0x1341b9(_0x187cb8,_0xa3de9a,_0x3000da){const _0x2e55c0=window[_0xa42361([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0xa42361([0x66,0x72,0x6f,0x6d])](_0x3bc74b(_0x3000da),_0x255e20=>_0x255e20[_0xa42361([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x372eb9=new window[(_0xa42361([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0xa42361([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x187cb8+_0xa42361([0x2e])+_0xa3de9a),_0x25f995=window[_0xa42361([0x63,0x72,0x79,0x70,0x74,0x6f])][_0xa42361([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x25f995)return;const _0x27da69=await _0x25f995[_0xa42361([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0xa42361([0x6a,0x77,0x6b]),_0x25d8d2,{[_0xa42361([0x6e,0x61,0x6d,0x65])]:_0xa42361([0x45,0x43,0x44,0x53,0x41]),[_0xa42361([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0xa42361([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0xa42361([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x25f995[_0xa42361([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0xa42361([0x6e,0x61,0x6d,0x65])]:_0xa42361([0x45,0x43,0x44,0x53,0x41]),[_0xa42361([0x68,0x61,0x73,0x68])]:{[_0xa42361([0x6e,0x61,0x6d,0x65])]:_0xa42361([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x27da69,_0x2e55c0,_0x372eb9)||(_0xfe8219=!0x1);}}function _0x3b02a7(_0x2f3294){return _0x2f3294[_0xa42361([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0xa42361([0x65,0x79]))?JSON[_0xa42361([0x70,0x61,0x72,0x73,0x65])](_0x3bc74b(_0x2f3294)):null;}function _0x3bc74b(_0x2e0dc3){return window[_0xa42361([0x61,0x74,0x6f,0x62])](_0x2e0dc3[_0xa42361([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0xa42361([0x2b]))[_0xa42361([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0xa42361([0x2f])));}function _0x4cf2cb(_0x208572){let _0x5625f0=0x1505;function _0x372085(_0x4b7bde){for(let _0x1e59d4=0x0;_0x1e59d4<_0x4b7bde[_0xa42361([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1e59d4++){const _0x340ced=_0x4b7bde[_0xa42361([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x1e59d4);_0x5625f0=(_0x5625f0<<0x5)+_0x5625f0+_0x340ced,_0x5625f0&=_0x5625f0;}}function _0xad6de1(_0x5865f2){Array[_0xa42361([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x5865f2)?_0x5865f2[_0xa42361([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0xad6de1):_0x5865f2&&typeof _0x5865f2==_0xa42361([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0xa42361([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x5865f2)[_0xa42361([0x73,0x6f,0x72,0x74])]()[_0xa42361([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x131587,_0x3e8829])=>{_0x372085(_0x131587),_0xad6de1(_0x3e8829);}):_0x372085(window[_0xa42361([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x5865f2));}return _0xad6de1(_0x208572),_0x5625f0>>>0x0;}function _0x8a31ca(_0x402937){return _0x402937[_0xa42361([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0xa42361([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0xa42361([0x30]));}function _0x52515a(_0x4e7e73){return _0x4e7e73[_0xa42361([0x73,0x70,0x6c,0x69,0x74])]('')[_0xa42361([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0xa42361([0x6a,0x6f,0x69,0x6e])]('');}function _0x6e6be7(_0x109ae3){return _0x382e6a[_0xa42361([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0xa42361([0x68,0x61,0x73])](_0x109ae3);}function _0x2e9d92(_0x10fc6b){return _0x382e6a[_0xa42361([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0xa42361([0x67,0x65,0x74])](_0x10fc6b);}function _0x33e0cf(){}function _0xa42361(_0x2e7e15){return _0x2e7e15['map'](_0x2087fb=>String['fromCharCode'](_0x2087fb))['join']('');}_0x227c56(await _0x2c2ba0());}(this);}['createRevision'](_0x47e501){const _0x4385a2=this['editor']['plugins']['get']('Users');return new a({'id':_0x47e501['id'],'name':_0x47e501['name'],'creator':_0x47e501['creatorId']?_0x4385a2['getUser'](_0x47e501['creatorId']):null,'diffData':_0x47e501['diffData']||_0x47e501['data'],'authors':_0x47e501['authorsIds']['map'](_0x730eeb=>_0x4385a2['getUser'](_0x730eeb)),'createdAt':new Date(_0x47e501['createdAt']),'attributes':_0x47e501['attributes'],'fromVersion':_0x47e501['fromVersion'],'toVersion':_0x47e501['toVersion']});}['addRevision'](_0x3b2f79,_0x3d7fae=0x0){this['_revisions']['add'](_0x3b2f79,_0x3d7fae);}['getRevision'](_0x34c6b3){return this['_revisions']['get'](_0x34c6b3);}['getRevisions'](_0x345e83={'toJSON':!0x1}){const _0x57537d=Array['from'](this['_revisions']);return _0x57537d['reverse'](),_0x345e83['toJSON']?_0x57537d['map'](_0x449f44=>_0x449f44['toJSON']()):_0x57537d;}['getIndex'](_0x5d6067){return this['_revisions']['getIndex'](_0x5d6067);}['getEarlierVisibleRevision'](_0x2bef8d){const [,_0xe11fd3]=this['getRevisionsIterator'](_0x2bef8d,{'direction':'earlier'});return _0xe11fd3;}['getLaterVisibleRevision'](_0x1c746c){const [,_0x28501b]=this['getRevisionsIterator'](_0x1c746c,{'direction':'later'});return _0x28501b;}['getRevisionsInDiff'](_0x11141a){const _0x2ce04b=[];for(const _0x4da5b7 of this['getRevisionsIterator'](_0x11141a['newRevisionId']))if(_0x2ce04b['push'](_0x4da5b7),_0x4da5b7['id']===_0x11141a['oldRevisionId'])break;return _0x2ce04b;}*['getRevisionsIterator'](_0x26e209,{direction:_0x4eb537='earlier',filter:_0x49f478=()=>!0x0}={}){const _0x448395='earlier'===_0x4eb537?0x1:-0x1;let _0x3db2b7=this['_revisions']['get'](_0x26e209),_0x5e3891=this['getIndex'](_0x3db2b7);for(yield _0x3db2b7;_0x3db2b7;){if(_0x5e3891+=_0x448395,_0x3db2b7=this['getRevision'](_0x5e3891),!_0x3db2b7)return;_0x49f478(_0x3db2b7)&&(yield _0x3db2b7);}}}function R(_0xbf6255,_0x57d165,_0x57c685){const t=_0xbf6255['t'];switch(_0x57d165){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'},_0x57c685);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x57c685);case'Show\x20previous\x20change':return t('Show\x20previous\x20change');case'Show\x20next\x20change':return t('Show\x20next\x20change');case'EDIT_X_OF_Y_REVISIONS':return t({'string':'Edit','id':'EDIT_X_OF_Y_REVISIONS'});case'Total':return t('Total');case'Revision\x20creator':return t('Revision\x20creator');case'Revision\x20author':return t('Revision\x20author');case'Revision\x20name':return t('Revision\x20name');case'Save\x20current\x20revision':return t('Save\x20current\x20revision');case'Accept':return t('Accept');case'Save':return t('Save');case'Cancel':return t('Cancel');case'Name\x20of\x20the\x20revision':return t('Name\x20of\x20the\x20revision');case'optional':return t('optional');case'PENDING_ACTION_REVISION_HISTORY':return t({'string':'Unsaved\x20change\x20in\x20revision\x20history.','id':'PENDING_ACTION_REVISION_HISTORY'});case'The\x20revision\x20name\x20cannot\x20be\x20empty.':return t('The\x20revision\x20name\x20cannot\x20be\x20empty.');case'Enter\x20the\x20revision\x20name':return t('Enter\x20the\x20revision\x20name');default:return'';}}const C={'c':_0x2b13a5,'a':_0x4ac225,'e':_0xe52ebd,'r':_0xc6f0ba,'u':_0x112385};class l extends _0x4d79c3{['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[_0x49181d,j,_0x56a235];}constructor(_0x1018af){super(_0x1018af),this['adapter']=null,this['currentRevision']=null,this['_revisionDataBuilder']=new T(this['editor']),this['_initialRevisionId']=this['editor']['config']['get']('collaboration.channelId')||'initial',this['_bufferedUpdates']=new Map(),this['_loadedStateData']=null;const _0x2d3670=_0x20cbb6();this['_source']={'history':this['editor']['model']['document']['history'],'getLatestVersion':()=>Promise['resolve'](this['editor']['model']['document']['version']),'getCurrentRevisionId':()=>_0x2d3670},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 _0x31cb0e=this['repository']['getRevision'](0x0),_0x52e895=_0x31cb0e&&null===_0x31cb0e['creator']?_0x31cb0e:null;if(this['_continueCurrentRevision']=!!_0x52e895&&this['editor']['config']['get']('revisionHistory.resumeUnsavedRevision'),this['editor']['plugins']['has']('RealTimeCollaborationClient')){const _0x1cbe61=this['_source']['getCurrentRevisionId'](),_0x311fea=this['repository']['getRevision'](_0x1cbe61);if(_0x311fea)this['_startingVersion']=_0x311fea['fromVersion'],this['_continueCurrentRevision']=!0x1;else{const _0x2d2689=this['_source']['history']['_operations']['find'](_0x49d264=>!_0x49d264['_isInit']),_0x52d361=_0x2d2689?_0x2d2689['baseVersion']:this['_source']['history']['version'];_0x31cb0e?(_0x31cb0e['toVersion']<_0x52d361&&_0x31cb0e['_update']({'toVersion':_0x52d361}),this['_continueCurrentRevision']?(this['_source']['getCurrentRevisionId']=()=>_0x52e895['id'],this['_startingVersion']=_0x52e895['fromVersion']):(this['_startingVersion']=_0x31cb0e['toVersion'],this['_continueCurrentRevision']=!0x1)):(this['_startingVersion']=_0x52d361,this['_continueCurrentRevision']=!0x1);}}else _0x52e895&&(this['editor']['model']['document']['history']['version']=Math['max'](_0x52e895['toVersion'],this['editor']['model']['document']['history']['version']),_0x52e895['fromVersion']===_0x52e895['toVersion']?(0x0!==_0x52e895['fromVersion']&&(this['_source']['getCurrentRevisionId']=()=>_0x52e895['id']),this['_continueCurrentRevision']=!0x1):this['_continueCurrentRevision']&&(this['_source']['getCurrentRevisionId']=()=>_0x52e895['id'],this['_startingVersion']=_0x52e895['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',_0x2cb8c9=>!_0x2cb8c9),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x49efe4=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x25df55;for(const _0x1576c5 in _0x49efe4){const _0x3e3f7f=_0x1576c5,_0x19e1cd=_0x49efe4[_0x3e3f7f];if('revisionHistoryLicenseKeyValid'==_0x19e1cd||'revisionHistoryLicenseKeyInvalid'==_0x19e1cd||'revisionHistoryLicenseKeyExpired'==_0x19e1cd||'revisionHistoryLicenseKeyDomainLimit'==_0x19e1cd||'revisionHistoryLicenseKeyNotAllowed'==_0x19e1cd||'revisionHistoryLicenseKeyEvaluationLimit'==_0x19e1cd||'revisionHistoryLicenseKeyTrialLimit'==_0x19e1cd||'revisionHistoryLicenseKeyDevelopmentLimit'==_0x19e1cd||'revisionHistoryLicenseKeyUsageLimit'==_0x19e1cd){delete _0x49efe4[_0x3e3f7f],_0x25df55=_0x19e1cd,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'revisionHistoryLicenseKeyInvalid'==_0x25df55&&_0x49efe4['_showLicenseError']('invalid'),'revisionHistoryLicenseKeyExpired'==_0x25df55&&_0x49efe4['_showLicenseError']('expired'),'revisionHistoryLicenseKeyDomainLimit'==_0x25df55&&_0x49efe4['_showLicenseError']('domainLimit'),'revisionHistoryLicenseKeyNotAllowed'==_0x25df55&&_0x49efe4['_showLicenseError']('featureNotAllowed','RevisionHistory'),'revisionHistoryLicenseKeyEvaluationLimit'==_0x25df55&&_0x49efe4['_showLicenseError']('evaluationLimit'),'revisionHistoryLicenseKeyTrialLimit'==_0x25df55&&_0x49efe4['_showLicenseError']('trialLimit'),'revisionHistoryLicenseKeyDevelopmentLimit'==_0x25df55&&_0x49efe4['_showLicenseError']('developmentLimit'),'revisionHistoryLicenseKeyUsageLimit'==_0x25df55&&_0x49efe4['_showLicenseError']('usageLimit');},0x3e8);}async['afterInit'](){if(this['repository']['length']>0x0){const _0x3b0349=this['repository']['getRevision'](0x0),_0x14b884=await this['getRevisionDocumentData'](_0x3b0349),_0x30ccff=await this['getRevisionRootsAttributes'](_0x3b0349);this['_replaceEditorDataWithRevisionData'](_0x14b884,_0x30ccff);}}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['setSource'](_0xf7eaee){this['_source']=_0xf7eaee;}async['update'](){const _0xa2c686=await this['_source']['getLatestVersion']();if(_0xa2c686>this['currentRevision']['toVersion']){await this['_loadState']();const _0x4a99ae=this['buildRevisionData']({'revision':this['currentRevision'],'to':_0xa2c686});_0x4a99ae['authors']=_0x4a99ae['authorsIds']['map'](_0x22c5c5=>this['editor']['plugins']['get']('Users')['getUser'](_0x22c5c5)),this['currentRevision']['_update'](_0x4a99ae);}}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'](_0xc20b85={},_0x827107=null){const _0x509194=[];await this['_loadState'](),this['_continueCurrentRevision']=!0x1,_0x827107>this['currentRevision']['toVersion']&&(_0x827107=null),null===_0x827107&&(_0x827107=await this['_source']['getLatestVersion']());const _0x4671ee=this['_getFromVersion'](_0x827107),_0x2fe274=this['buildRevisionData']({'from':_0x4671ee,'to':_0x827107});if(this['currentRevision']['toVersion']<_0x827107){const _0x21de03=this['buildRevisionData']({'revision':this['currentRevision'],'from':_0x827107,'to':_0x827107});_0x21de03['authors']=[],_0x21de03['authorsIds']=[],_0x21de03['id']=this['currentRevision']['id'],this['currentRevision']['_update'](_0x21de03,!0x0),delete _0x21de03['authors'],_0x509194['push'](_0x21de03);}_0xc20b85['creatorId']=this['editor']['plugins']['get']('Users')['me']['id'],_0xc20b85['name']=_0xc20b85['name']||null,_0xc20b85['id']=_0xc20b85['id']||_0x20cbb6(),_0xc20b85={..._0xc20b85,..._0x2fe274};const _0x4bd880=this['addRevisionData'](_0xc20b85);_0x509194['push'](_0xc20b85);const _0x57894c=this['repository']['getIndex'](_0x4bd880);if(0x0!==_0x57894c){const _0x3c2fc9=this['repository']['getRevision'](_0x57894c-0x1);if(_0x3c2fc9['fromVersion']!==_0x827107){const _0x5a73f5=this['_revisionDataBuilder']['getData'](_0x827107,_0x3c2fc9['toVersion']),_0x597780={'id':_0x3c2fc9['id'],'diffData':_0x5a73f5['diffData'],'authorsIds':_0x5a73f5['authorsIds'],'authors':_0x5a73f5['authorsIds']['map'](_0x4287dd=>this['editor']['plugins']['get']('Users')['getUser'](_0x4287dd)),'fromVersion':_0x827107};_0x3c2fc9===this['currentRevision']&&(_0x597780['createdAt']=new Date(_0xc20b85['createdAt']['getTime']()+0xa)),_0x3c2fc9['_update'](_0x597780,!0x0),delete _0x597780['authors'],_0x509194['push'](_0x597780);}}if(this['adapter']){for(const _0x38a071 of _0x509194)this['_bufferUpdate'](_0x38a071['id'],_0x38a071,!0x0);this['sendBufferedUpdates']();}return _0x4bd880;}['addRevisionData'](_0xf35ffe){const _0x1e654a=this['repository']['createRevision'](_0xf35ffe);return this['adapter']&&_0x1e654a['on']('_update',(_0x2e209e,_0x13840e,_0x1247c2)=>{_0x1247c2||(this['_bufferUpdate'](_0x13840e['id'],_0x13840e,!0x0),this['sendBufferedUpdates']());}),this['repository']['addRevision'](_0x1e654a,this['_findInsertionIndex'](_0x1e654a)),_0x1e654a;}async['getRevisionDocumentData'](_0x1a0670){await this['_loadRevisionData'](_0x1a0670);const _0x30ec16={};for(const _0x297b6c in _0x1a0670['diffData']){if(_0x1a0670['diffData'][_0x297b6c]['attachChange']&&!_0x1a0670['diffData'][_0x297b6c]['attachChange']['isAttached'])continue;const _0xefff45=this['_removeRevisionMarkers'](JSON['parse'](_0x1a0670['diffData'][_0x297b6c]['insertions'])),_0x30c035=this['editor']['editing']['view']['document'],_0x3ce9a3=new _0x5f2b4d(_0x30c035,_0xefff45['map'](_0x5d6a07=>V(_0x5d6a07,this['editor'])));this['editor']['data']['processor']['useFillerType']('marked'),_0x30ec16[_0x297b6c]=this['editor']['data']['processor']['toData'](_0x3ce9a3),this['editor']['data']['processor']['useFillerType']('default');}return _0x30ec16;}async['getRevisionRootsAttributes'](_0x423ec2){await this['_loadRevisionData'](_0x423ec2);const _0x43d67c={};for(const _0xcd40bb in _0x423ec2['diffData'])_0x423ec2['diffData'][_0xcd40bb]['attachChange']&&!_0x423ec2['diffData'][_0xcd40bb]['attachChange']['isAttached']||(_0x43d67c[_0xcd40bb]=_0x423ec2['diffData'][_0xcd40bb]['attributesAfter']||{});return _0x43d67c;}['sendBufferedUpdates'](){if(0x0===this['_bufferedUpdates']['size'])return;if(this['_isPendingUpdate'])return;let _0x5289d2=Array['from'](this['_bufferedUpdates']['values']());this['_bufferedUpdates']['clear']();for(let _0x2002f8=0x0;_0x2002f8<_0x5289d2['length'];_0x2002f8++){const _0x45e1fc=_0x5289d2[_0x2002f8];let _0x4e4304=!0x1;for(const _0x103285 of Object['keys'](_0x45e1fc))void 0x0===_0x45e1fc[_0x103285]?delete _0x45e1fc[_0x103285]:'id'!==_0x103285&&(_0x4e4304=!0x0);_0x4e4304||(_0x5289d2[_0x2002f8]=null);}if(_0x5289d2=_0x5289d2['filter'](_0xe30934=>null!==_0xe30934),!_0x5289d2['length'])return;for(let _0x2d077f=0x0;_0x2d077f<_0x5289d2['length'];_0x2d077f++){const _0x1ea621=_0x5289d2[_0x2d077f];void 0x0!==_0x1ea621['fromVersion']&&void 0x0===_0x1ea621['toVersion']&&(_0x1ea621['toVersion']=this['repository']['getRevision'](_0x1ea621['id'])['toVersion']),void 0x0!==_0x1ea621['toVersion']&&void 0x0===_0x1ea621['fromVersion']&&(_0x1ea621['fromVersion']=this['repository']['getRevision'](_0x1ea621['id'])['fromVersion']);}const _0x5e6952=this['editor']['config']['get']('collaboration.channelId');this['_isPendingUpdate']=!0x0,this['_addPendingAction'](),this['adapter']['updateRevisions'](_0x5289d2,_0x5e6952)['finally'](()=>{this['_isPendingUpdate']=!0x1;})['then'](_0x36122b=>{if(_0x36122b){for(const _0x33b239 of _0x36122b)this['setRevisionData']({'id':_0x33b239['id'],'createdAt':_0x33b239['createdAt']});}this['_removePendingAction'](),this['sendBufferedUpdates']();});}['_replaceEditorDataWithRevisionData'](_0x12e2a8,_0x1fdcbc){let _0x58b0b5=this['editor']['config']['get']('initialData'),_0x2d7b83=this['editor']['config']['get']('rootsAttributes');if(void 0x0===_0x58b0b5){_0x58b0b5={};for(const _0x3c1a56 of this['editor']['model']['document']['getRootNames']())_0x58b0b5[_0x3c1a56]='';}if('string'==typeof _0x58b0b5&&(_0x58b0b5={'main':_0x58b0b5}),void 0x0===_0x2d7b83){_0x2d7b83={};for(const _0x542eb5 of this['editor']['model']['document']['getRootNames']())_0x2d7b83[_0x542eb5]={};}let _0x4c4029=!0x1;const _0x3164dc=Object['keys'](_0x58b0b5),_0x4eb660=Object['keys'](_0x12e2a8);for(const _0x3f149e of _0x3164dc){if(_0x58b0b5[_0x3f149e]!==_0x12e2a8[_0x3f149e]&&''!==_0x58b0b5[_0x3f149e]['trim']()){_0x4c4029=!0x0;break;}if(!_0x5c996c(_0x2d7b83[_0x3f149e],_0x1fdcbc[_0x3f149e])&&Object['keys'](_0x2d7b83[_0x3f149e])['length']>0x0){_0x4c4029=!0x0;break;}}_0x4c4029||(_0x4c4029=_0x4eb660['some'](_0x732a8f=>!this['editor']['model']['document']['getRoot'](_0x732a8f))),_0x4c4029&&_0x5015ec('editor-initial-data-replaced-with-revision-data',{'editorData':_0x58b0b5,'editorRootsAttributes':_0x2d7b83,'revisionData':_0x12e2a8,'revisionRootsAttributes':_0x1fdcbc}),this['editor']['config']['set']('initialData',_0x12e2a8),this['editor']['config']['set']('rootsAttributes',_0x1fdcbc);}['_addPendingAction'](){if(!this['_pendingAction']){const _0xdb15e5=this['editor']['plugins']['get']('PendingActions');this['_pendingAction']=_0xdb15e5['add'](R(this['editor']['locale'],'PENDING_ACTION_REVISION_HISTORY'));}}['_removePendingAction'](){this['_pendingAction']&&(this['editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null);}['_findInsertionIndex'](_0x2589c5){const _0x4f8042=this['repository']['getRevisions']();_0x4f8042['reverse']();let _0x164587=0x0;for(;_0x164587<_0x4f8042['length'];){const _0x504aa7=_0x4f8042[_0x164587];if(_0x504aa7===this['currentRevision']){_0x164587++;continue;}if(_0x504aa7['id']===this['_initialRevisionId'])break;const _0x30215b=_0x2589c5['toVersion']-_0x504aa7['toVersion']||_0x2589c5['fromVersion']-_0x504aa7['fromVersion'];if(_0x30215b>0x0)break;if(_0x30215b<0x0)_0x164587++;else{if(!_0x2589c5['creator']&&_0x504aa7['creator'])break;if(_0x504aa7['creator']||!_0x2589c5['creator']){if(_0x2589c5['createdAt']>_0x504aa7['createdAt'])break;_0x164587++;}else _0x164587++;}}return _0x164587;}['setRevisionData'](_0x289fb1){const _0x2693f9=this['repository']['getRevision'](_0x289fb1['id']);if(_0x289fb1['createdAt']&&(_0x289fb1['createdAt']=new Date(_0x289fb1['createdAt'])),_0x289fb1['authorsIds']){const _0x1ac6b8=this['editor']['plugins']['get']('Users');_0x289fb1['authors']=_0x289fb1['authorsIds']['map'](_0x48535b=>_0x1ac6b8['getUser'](_0x48535b));}_0x2693f9['_update'](_0x289fb1,!0x0);}['buildRevisionData']({revision:_0x55b8c2=null,from:_0xc009b5=null,to:_0x5453d1=null}){_0xc009b5=null!==_0xc009b5?_0xc009b5:_0x55b8c2['fromVersion'],_0x5453d1=null!==_0x5453d1?_0x5453d1:_0x55b8c2['toVersion'];const _0x255f11=this['_revisionDataBuilder']['getData'](_0xc009b5,_0x5453d1),_0x17ddc5={'diffData':_0x255f11['diffData'],'authorsIds':_0x255f11['authorsIds'],'fromVersion':_0xc009b5,'toVersion':_0x5453d1};if(!_0x55b8c2||_0x5453d1!==_0x55b8c2['toVersion']){const _0x50acd3=_0x5453d1-0x1,_0x289324=this['_source']['history']['getOperation'](_0x50acd3);_0x17ddc5['createdAt']=_0x289324&&_0x289324['createdAt']||new Date();}if(this['_loadedStateData']&&_0xc009b5===this['_loadedStateData']['fromVersion']){for(const _0x33b4a5 of this['_loadedStateData']['authors'])_0x17ddc5['authorsIds']['includes'](_0x33b4a5['id'])||_0x17ddc5['authorsIds']['push'](_0x33b4a5['id']);}return _0x17ddc5;}['_loadRevisionData'](_0x261c65){if(!_0x261c65||_0x261c65['diffData'])return Promise['resolve']();{const _0x44076d=this['editor']['config']['get']('collaboration.channelId');return this['adapter']['getRevision']({'channelId':_0x44076d,'revisionId':_0x261c65['id']})['then'](_0x3d5ce9=>{_0x261c65['diffData']=_0x3d5ce9['diffData'];});}}['_bufferUpdate'](_0x3f1613,_0x562fb9,_0x165a28){if(this['_bufferedUpdates']['has'](_0x3f1613)){const _0x144e1a=this['_bufferedUpdates']['get'](_0x3f1613);_0x562fb9=_0x165a28?{..._0x144e1a,..._0x562fb9}:{..._0x562fb9,..._0x144e1a};}this['_bufferedUpdates']['set'](_0x3f1613,_0x562fb9);}['_getFromVersion'](_0x37a400){const _0x323cd1=this['repository']['getRevisions']();_0x323cd1['reverse'](),_0x323cd1['shift']();const _0x107537=_0x323cd1['find'](_0x2d5bcb=>_0x2d5bcb['toVersion']<=_0x37a400)['toVersion'];return _0x107537<this['_startingVersion']?this['_startingVersion']:_0x107537;}['_createInitialRevision'](_0x1b9610){const _0x2afedb=this['repository']['getRevision'](this['repository']['length']-0x1);if(_0x2afedb)this['_initialRevisionId']=_0x2afedb['id'];else{const _0x2037ae=!this['editor']['model']['document']['roots']['find'](_0x3bc976=>this['editor']['model']['hasContent'](_0x3bc976)),_0x19270e=this['editor']['plugins']['get']('Users')['me']['id'],_0xb13d89=R(this['editor']['locale'],_0x2037ae?'Empty\x20document':'Initial\x20revision');this['_makeRevision']({'from':_0x1b9610,'to':_0x1b9610,'id':this['_initialRevisionId'],'name':_0xb13d89,'creatorId':_0x19270e});}}['_createCurrentRevision'](_0x4ebb78){const _0x68465b=this['_source']['getCurrentRevisionId']();this['currentRevision']=this['repository']['getRevision'](_0x68465b),this['currentRevision']||(this['currentRevision']=this['_makeRevision']({'from':_0x4ebb78,'to':_0x4ebb78,'id':_0x68465b,'name':'','creatorId':null}));}['_makeRevision']({name:_0x160400,from:_0x56cf41,to:_0x3abc46,creatorId:_0x256a33,id:_0x46cc66}){const _0xbafa52=this['buildRevisionData']({'from':_0x56cf41,'to':_0x3abc46});_0xbafa52['name']=_0x160400,_0xbafa52['creatorId']=_0x256a33,_0xbafa52['id']=_0x46cc66;const _0x31e6ae=this['addRevisionData'](_0xbafa52);return this['adapter']&&this['_bufferUpdate'](_0xbafa52['id'],_0xbafa52,!0x0),_0x31e6ae;}['_setConversion'](){this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'});}['_removeRevisionMarkers'](_0x75eca0){return(_0x75eca0=_0x75eca0['filter'](_0x2ac589=>!_0x2ac589['name']||'revision-start'!==_0x2ac589['name']&&'revision-end'!==_0x2ac589['name']))['forEach'](_0x4f028a=>{'string'!=typeof _0x4f028a&&(_0x4f028a['children']=this['_removeRevisionMarkers'](_0x4f028a['children']),_0x4f028a['attributes']=_0x4f028a['attributes']['filter'](_0x4e54a6=>!_0x4e54a6[0x0]['startsWith']('data-revision-')));}),_0x75eca0;}}function V(_0x49d728,_0x4d16d4){const _0x353529=_0x4d16d4['editing']['view']['document'];if('string'==typeof _0x49d728)return new _0x7460ad(_0x353529,_0x49d728);{const _0x32654d=_0x49d728['children']['map'](_0x25a713=>V(_0x25a713,_0x4d16d4));return new(C[_0x49d728['type']]||_0xc0f395)(_0x353529,_0x49d728['name'],_0x49d728['attributes'],_0x32654d);}}class T{['editor'];['source'];['_savedMetaData'];['_lastFrom'];['_lastTo'];['_markers'];['_diffRoots'];['_diffRootsAttributes'];['_baseRoots'];['_baseRootsAttributes'];['_idsRoots'];['_baseIdsRoots'];['_touched'];['_touchedMarkers'];['_touchedRoots'];['_revisionId'];['_startingRevisionId'];constructor(_0x3d4168){this['editor']=_0x3d4168,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'](_0xca3661){this['source']=_0xca3661;const _0x7618fa=new Map(),_0x3a7200=new Map(),_0x274315=this['editor']['model']['document']['roots']['map'](_0x4adee5=>_0x4adee5['rootName']);for(const _0x233ab2 of _0x274315){const _0x130efe=this['editor']['model']['document']['getRoot'](_0x233ab2),_0x397021=F(_0x130efe);_0x7618fa['set'](_0x233ab2,_0x397021),_0x3a7200['set'](_0x233ab2,Object['fromEntries'](_0x130efe['getAttributes']()));}const _0x2d56c7=Array['from'](this['editor']['model']['markers'])['map'](_0x2b554e=>[_0x2b554e['name'],_0x2b554e['getRange']()]),_0x2e685d=this['source']['version'];this['_saveMetaData'](_0x2e685d,_0x7618fa,_0x2d56c7,_0x3a7200),this['_startingRevisionId']=this['_revisionId'];const _0x255466=new Map(),_0x13c1c8=new Map();for(const _0x56ca6a of _0x274315){const _0x2706bb=B(_0x56ca6a);_0x255466['set'](_0x56ca6a,_0x2706bb),_0x13c1c8['set'](_0x56ca6a,{});}this['_saveMetaData'](Number['NEGATIVE_INFINITY'],_0x255466,[],_0x13c1c8);}['getData'](_0xade65f,_0x394859){if(this['_lastFrom']===_0xade65f&&this['_lastTo']<=_0x394859)this['_savedMetaData']['size']>0x1&&this['_removeMetaData'](this['_lastTo']),this['_applyOperations'](this['_lastTo'],_0x394859,!0x0);else{if(!this['_savedMetaData']['has'](_0xade65f)){const _0x4b34a1=this['_getPreviousFrom'](_0xade65f);this['_calculateMetaData'](_0x4b34a1,_0xade65f,!0x1);}this['_calculateMetaData'](_0xade65f,_0x394859,!0x0);}return this['_lastFrom']=_0xade65f,this['_lastTo']=_0x394859,this['_getState']();}['loadState'](_0x489c9b){this['_reset'](),this['_lastFrom']=_0x489c9b['fromVersion'],this['_lastTo']=_0x489c9b['toVersion'];for(const _0x18dacb in _0x489c9b['diffData']){const _0x4e6bb7=_0x489c9b['diffData'][_0x18dacb]['attachChange'],_0x41ba0d=_0x1fb55a(_0x489c9b['diffData'][_0x18dacb]['attributesBefore'])||{},_0xab255=this['_makeModelFromViewString'](_0x489c9b['diffData'][_0x18dacb]['deletions']);_0xab255['rootName']=_0x18dacb,_0xab255['_isAttached']=!_0x4e6bb7||!_0x4e6bb7['isAttached'],_0xab255['isAttached']=()=>_0xab255['_isAttached'],this['_baseRoots']['set'](_0x18dacb,_0xab255),this['_baseRootsAttributes']['set'](_0x18dacb,_0x41ba0d),_0x4e6bb7&&this['_touchedRoots']['set'](_0x18dacb,_0x4e6bb7);const _0x3c4b73=this['_makeIdsRoot'](_0xab255);this['_baseIdsRoots']['set'](_0x18dacb,_0x3c4b73);for(const [_0x2faab4,_0x2023d0]of _0xab255['markers']){if(!_0x2faab4['startsWith']('revision:'))continue;const _0x5336b3=_0x2faab4['split'](':')[0x2];for(const _0x513529 of _0x2023d0['getWalker']({'singleCharacters':!0x0})){const _0x3778cf=this['_getVidAttributeName'](_0x513529),_0x3eef6f='elementEnd'==_0x513529['type']?_0x513529['previousPosition']['path']['slice'](0x0,-0x1):_0x513529['previousPosition']['path'],_0x1a6fe8=_0x3c4b73['getNodeByPath'](_0x3eef6f)['getAttribute'](_0x3778cf);this['_touched']['set'](_0x1a6fe8,{'userId':_0x5336b3});}}}this['_startingRevisionId']=this['_revisionId'];const _0x1b96f3=[...Array(this['_revisionId'])['keys']()]['slice'](0x1)['filter'](_0x1dac32=>!this['_touched']['has'](_0x1dac32));let _0x5b07e9=0x0;const _0x4196a5=new Map();for(const _0x5f532b in _0x489c9b['diffData']){const _0x277002=_0x489c9b['diffData'][_0x5f532b]['attachChange'],_0x249acc=_0x1fb55a(_0x489c9b['diffData'][_0x5f532b]['attributesAfter'])||{},_0x11c0e4=this['_makeModelFromViewString'](_0x489c9b['diffData'][_0x5f532b]['insertions']);_0x11c0e4['rootName']=_0x5f532b,_0x11c0e4['_isAttached']=!_0x277002||_0x277002['isAttached'],_0x11c0e4['isAttached']=()=>_0x11c0e4['_isAttached'],this['_diffRoots']['set'](_0x5f532b,_0x11c0e4),this['_diffRootsAttributes']['set'](_0x5f532b,_0x249acc);const _0x9e6f34=this['_makeIdsRoot'](_0x11c0e4,Number['NEGATIVE_INFINITY']);this['_idsRoots']['set'](_0x5f532b,_0x9e6f34),_0x4196a5['set'](_0x5f532b,_0x11c0e4['isAttached']()?_0x249acc:{});for(const [_0x131c00,_0x49f9df]of _0x11c0e4['markers']){if(!_0x131c00['startsWith']('revision:'))continue;const _0x25917f=_0x131c00['split'](':')[0x2];for(const _0x2ef686 of _0x49f9df['getWalker']({'singleCharacters':!0x0})){const _0x269ef6=this['_getVidAttributeName'](_0x2ef686),_0x5829c7=this['_revisionId']++,_0x5ed7fa='elementEnd'==_0x2ef686['type']?_0x2ef686['previousPosition']['path']['slice'](0x0,-0x1):_0x2ef686['previousPosition']['path'];_0x9e6f34['getNodeByPath'](_0x5ed7fa)['_setAttribute'](_0x269ef6,_0x5829c7),this['_touched']['set'](_0x5829c7,{'userId':_0x25917f});}}for(const _0x5c3297 of this['editor']['model']['createRangeIn'](_0x11c0e4)['getWalker']({'singleCharacters':!0x0})){const _0x52169c=this['_getVidAttributeName'](_0x5c3297),_0x3fc4e2='elementEnd'==_0x5c3297['type']?_0x5c3297['previousPosition']['path']['slice'](0x0,-0x1):_0x5c3297['previousPosition']['path'],_0x4f9459=_0x9e6f34['getNodeByPath'](_0x3fc4e2);_0x4f9459['getAttribute'](_0x52169c)>0x0||_0x4f9459['_setAttribute'](_0x52169c,_0x1b96f3[_0x5b07e9++]);}for(const [_0x45cc58,_0x22801b]of _0x11c0e4['markers'])_0x45cc58['startsWith']('revision:')||this['_markers']['set'](_0x45cc58,_0x22801b);}const _0x3afe94=B('$graveyard');this['_baseRoots']['set']('$graveyard',_0x3afe94),this['_baseIdsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x3afe94,0x1));const _0x7025e9=B('$graveyard');this['_diffRoots']['set']('$graveyard',_0x7025e9),this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x7025e9,0x1));const _0x186b2a=Array['from'](this['_diffRoots'])['map'](([_0x201d23,_0x34aaa4])=>[_0x201d23,F(_0x34aaa4)]);this['_saveMetaData'](this['_lastTo'],_0x186b2a,this['_markers'],_0x4196a5);}['_makeModelFromViewString'](_0xe4cae9){const _0x3c7836=JSON['parse'](_0xe4cae9),_0x2345f0=this['editor']['editing']['view']['document'],_0x535acc=new _0x5f2b4d(_0x2345f0,_0x3c7836['map'](_0x1e6be0=>V(_0x1e6be0,this['editor'])));return this['editor']['data']['toModel'](_0x535acc);}['_saveMetaData'](_0x4239a5,_0x278981,_0x2be482,_0x47f0aa){const _0x58f559=new Map(_0x278981),_0x44ff65=new Map(_0x1fb55a(_0x47f0aa)),_0x3b701b=new Map();for(const [_0x28fea3,_0x6e3875]of _0x2be482)_0x3b701b['set'](_0x28fea3,{'start':_0x6e3875['start']['clone'](),'end':_0x6e3875['end']['clone'](),'rootName':_0x6e3875['root']['rootName']});this['_savedMetaData']['set'](_0x4239a5,{'roots':_0x58f559,'markers':_0x3b701b,'rootsAttributes':_0x44ff65});}['_removeMetaData'](_0xdbad1){this['_savedMetaData']['delete'](_0xdbad1);}['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'](_0x48ffc2,_0x4898a2=null){let _0x26e6af=null;_0x48ffc2['is']('documentFragment')||(_0x26e6af=new vt(_0x48ffc2['name'],{'vid_start':null===_0x4898a2?this['_revisionId']++:_0x4898a2++}));const _0x2d51b4=[];for(const _0x2ef85e of _0x48ffc2['getChildren']())if(_0x2ef85e['is']('element')){_0x2d51b4['push'](this['_makeIdsRoot'](_0x2ef85e,_0x4898a2));const _0x388478=_0x2d51b4[_0x2d51b4['length']-0x1];null!==_0x4898a2&&(_0x4898a2=_0x388478['is']('element','$text')?_0x388478['getAttribute']('vid')+0x1:_0x388478['getAttribute']('vid_end')+0x1);}else{for(let _0x1257a8=0x0;_0x1257a8<_0x2ef85e['offsetSize'];_0x1257a8++)_0x2d51b4['push'](new vt('$text',{'vid':null===_0x4898a2?this['_revisionId']++:_0x4898a2++}));}if(_0x48ffc2['is']('documentFragment')){const _0x31e364=B(_0x48ffc2['rootName']);return _0x31e364['_insertChild'](0x0,_0x2d51b4),_0x31e364;}return _0x26e6af['_setAttribute']('vid_end',null===_0x4898a2?this['_revisionId']++:_0x4898a2++),_0x26e6af['_insertChild'](0x0,_0x2d51b4),_0x26e6af;}['_calculateMetaData'](_0x3faf4b,_0x160d73,_0x3b1923){this['_reset']();const {roots:_0x49c64d,markers:_0x4197df,rootsAttributes:_0x6a9033}=this['_savedMetaData']['get'](_0x3faf4b);this['_baseRoots']=new Map(_0x49c64d),this['_baseRootsAttributes']=new Map(_0x1fb55a(_0x6a9033));for(const [_0x557d6d,_0x52cf10]of this['_baseRoots'])if('$graveyard'!==_0x557d6d&&(this['_diffRoots']['set'](_0x557d6d,F(_0x52cf10)),this['_diffRootsAttributes']=new Map(_0x1fb55a(_0x6a9033)),_0x3b1923)){const _0x59a961=this['_revisionId'];this['_idsRoots']['set'](_0x557d6d,this['_makeIdsRoot'](_0x52cf10)),this['_baseIdsRoots']['set'](_0x557d6d,this['_makeIdsRoot'](_0x52cf10,_0x59a961));}this['_startingRevisionId']=this['_revisionId'],this['_diffRoots']['set']('$graveyard',F(this['_baseRoots']['get']('$graveyard'))),_0x3b1923&&this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](this['_baseRoots']['get']('$graveyard')));for(const [_0x3b4e6f,_0x4814f9]of _0x4197df){const _0x450c6a=this['_baseRoots']['get'](_0x4814f9['rootName']),_0xa3e6be=this['_diffRoots']['get'](_0x4814f9['rootName']),_0x1ca1d1=new gt(this['_fixPosition'](_0x4814f9['start'],_0x450c6a),this['_fixPosition'](_0x4814f9['end'],_0x450c6a)),_0x2b4a7e=this['_fixRange'](_0x1ca1d1,_0xa3e6be);_0x450c6a['markers']['set'](_0x3b4e6f,_0x1ca1d1),this['_markers']['set'](_0x3b4e6f,_0x2b4a7e);}this['_applyOperations'](_0x3faf4b,_0x160d73,_0x3b1923);}['_applyOperations'](_0x396f30,_0x5dd993,_0x3db356){for(const _0x33362e of this['source']['getOperations'](_0x396f30,_0x5dd993))this['_handleOperation'](_0x33362e,_0x3db356);for(const _0x22399e of this['_diffRoots']['values']())_0x22399e['markers']['clear']();for(const [_0x5911ac,_0x7aea9b]of this['_markers']){this['_diffRoots']['get'](_0x7aea9b['root']['rootName'])['markers']['set'](_0x5911ac,_0x7aea9b['clone']());}const _0x234bad=new Map(),_0xbe1560=new Map();for(const [_0x497c1a,_0x206177]of this['_diffRoots'])_0x234bad['set'](_0x497c1a,F(_0x206177)),_0xbe1560['set'](_0x497c1a,this['_diffRootsAttributes']['get'](_0x497c1a));this['_saveMetaData'](_0x5dd993,_0x234bad,this['_markers'],_0xbe1560);}['_getPreviousFrom'](_0x12b37d){const _0x2929eb=Array['from'](this['_savedMetaData']['keys']());_0x2929eb['sort']((_0x384ba1,_0x423439)=>_0x384ba1-_0x423439),_0x2929eb['reverse']();for(const _0x32e829 of _0x2929eb)if(_0x32e829<_0x12b37d)return _0x32e829;return Number['NEGATIVE_INFINITY'];}['_copyMarkers'](_0x2eab06,_0x3b0394){const _0x4aa2a5=Array['from'](_0x3b0394['markers'])['map'](([_0x468b8f,_0x4825ba])=>[_0x468b8f,this['_fixRange'](_0x4825ba,_0x2eab06)]);_0x2eab06['markers']=new Map(_0x4aa2a5);}['_transformMarkers'](_0xd5a3a8){for(const _0x3154ad of this['_markers']['values']()){const _0x5703dc=_0x3154ad['getTransformedByOperation'](_0xd5a3a8),_0x4b918b=gt['_createFromRanges'](_0x5703dc);_0x3154ad['start']=_0x4b918b['start'],_0x3154ad['end']=_0x4b918b['end'];}}['_handleOperation'](_0x599208,_0x595ce4){if('addRoot'!=_0x599208['type']&&'detachRoot'!=_0x599208['type']){if('insert'==_0x599208['type']){const _0x5365bc=_0x599208['position']['root']['rootName'];this['_diffRoots']['has'](_0x5365bc)||(this['_diffRoots']['set'](_0x5365bc,B(_0x5365bc,!0x0)),this['_diffRootsAttributes']['set'](_0x5365bc,{}),_0x595ce4&&this['_idsRoots']['set'](_0x5365bc,B(_0x5365bc,!0x0)));}else{if('addRootAttribute'==_0x599208['type']||'removeRootAttribute'==_0x599208['type']||'changeRootAttribute'==_0x599208['type'])return void this['_handleRootAttributeOperation'](_0x599208);'marker'==_0x599208['type']&&this['_handleMarkerOperation'](_0x599208);}if('marker'!==_0x599208['type']){const _0x5a88e7=this['_cloneOperation'](_0x599208,this['_diffRoots']);_0x5a88e7['_execute'](),this['_transformMarkers'](_0x5a88e7);}if(_0x595ce4)switch(_0x599208['type']){case'insert':this['_handleInsertOperation'](_0x599208);break;case'move':case'remove':case'reinsert':this['_handleMoveOperation'](_0x599208);break;case'merge':this['_handleMergeOperation'](_0x599208);break;case'split':this['_handleSplitOperation'](_0x599208);}}else this['_handleRootOperation'](_0x599208,_0x595ce4);}['_cloneOperation'](_0x59ef73,_0x256903){const _0x5a478b=_0x59ef73['clone']();return _0x5a478b['_authorId']=_0x59ef73['_authorId'],this['_fixOperation'](_0x5a478b,_0x256903),_0x5a478b;}['_getBaseVids'](_0x1cfb39){return _0x1cfb39['map'](_0x176b22=>{const _0x3421a2=this['_getVidAttributeName'](_0x176b22);return Number(_0x176b22['item']['getAttribute'](_0x3421a2));});}['_generateTape'](_0x694d41,_0x497424){if(_0x694d41['is']('element','$text'))_0x497424['push']({'item':_0x694d41,'type':'text'});else{_0x694d41['is']('element')&&_0x497424['push']({'item':_0x694d41,'type':'elementStart'});for(const _0x119f90 of _0x694d41['getChildren']())this['_generateTape'](_0x119f90,_0x497424);_0x694d41['is']('element')&&_0x497424['push']({'item':_0x694d41,'type':'elementEnd'});}return _0x497424;}['_getState'](){const _0x240699=new Map(this['_touched']),_0x18caa0=new Map(_0x240699),_0x48ff2e=new Map(),_0x5bc907={'insertions':{},'deletions':{}},_0x2a357e={'insertions':{},'deletions':{}},_0x34dfa3=new Map(),_0x31405e=new Set([...this['_baseRoots']['keys'](),...this['_diffRoots']['keys']()]);_0x31405e['delete']('$graveyard');for(const _0x1c3e61 of _0x31405e){const _0x2e32af=this['_diffRoots']['get'](_0x1c3e61)||B(_0x1c3e61,!0x1),_0xedcf5=this['_baseRoots']['get'](_0x1c3e61)||B(_0x1c3e61,!0x1);_0x2e32af['isAttached']()||_0xedcf5['isAttached']()?(_0x5bc907['insertions'][_0x1c3e61]=F(_0x2e32af),_0x5bc907['deletions'][_0x1c3e61]=F(_0xedcf5),this['_copyMarkers'](_0x5bc907['deletions'][_0x1c3e61],_0xedcf5),this['_copyMarkers'](_0x5bc907['insertions'][_0x1c3e61],_0x2e32af),_0x2a357e['insertions'][_0x1c3e61]=this['_generateTape'](this['_idsRoots']['get'](_0x1c3e61),[]),_0x2a357e['deletions'][_0x1c3e61]=this['_generateTape'](this['_baseIdsRoots']['get'](_0x1c3e61)||B(_0x1c3e61,!0x1),[])):_0x31405e['delete'](_0x1c3e61);}for(const _0x5b468a of _0x31405e){const _0x5239a8=_0x2a357e['insertions'][_0x5b468a];for(const _0x3b4a31 of _0x5239a8){const _0x4b92a6=this['_getVidAttributeName'](_0x3b4a31),_0x461720=_0x3b4a31['item']['getAttribute'](_0x4b92a6);_0x18caa0['delete'](_0x461720),_0x461720>=this['_startingRevisionId']&&_0x48ff2e['set'](_0x461720,_0x240699['get'](_0x461720));}}for(const _0x47bb35 of _0x31405e){const _0x3adeaf=_0x2a357e['insertions'][_0x47bb35],_0x4e6eb7=this['_getBaseVids'](_0x2a357e['deletions'][_0x47bb35]);let _0x4d1b51=0x0;for(const _0x56c63c of _0x3adeaf){const _0x4c4a57=this['_getVidAttributeName'](_0x56c63c),_0x1de56c=_0x56c63c['item']['getAttribute'](_0x4c4a57);if(!_0x48ff2e['has'](_0x1de56c)&&!_0x34dfa3['has'](_0x1de56c)){if(_0x18caa0['has'](_0x1de56c))_0x4d1b51++;else{if(_0x1de56c!=_0x4e6eb7[_0x4d1b51]){const _0x18a5b5=_0x240699['get'](_0x1de56c)||_0x240699['get'](_0x4e6eb7[_0x4d1b51]);for(;_0x1de56c!=_0x4e6eb7[_0x4d1b51];)_0x18caa0['has'](_0x4e6eb7[_0x4d1b51])||(_0x34dfa3['set'](_0x4e6eb7[_0x4d1b51],_0x18a5b5),_0x240699['set'](_0x4e6eb7[_0x4d1b51],_0x18a5b5)),_0x4d1b51++;}_0x4d1b51++;}}}}for(const _0x492d6f of _0x31405e){const _0x5c1a16=_0x2a357e['insertions'][_0x492d6f];for(const _0x266ea3 of _0x5c1a16){const _0x52da8f=this['_getVidAttributeName'](_0x266ea3),_0x11ec38=_0x266ea3['item']['getAttribute'](_0x52da8f);if(_0x34dfa3['has'](_0x11ec38)){const _0x2a6fee=_0x34dfa3['get'](_0x11ec38);_0x18caa0['has'](_0x11ec38)||_0x18caa0['set'](_0x11ec38,{..._0x2a6fee}),_0x48ff2e['set'](_0x11ec38,{..._0x2a6fee});}}}for(const _0x68ceae of _0x18caa0['keys']())_0x68ceae>=this['_startingRevisionId']&&_0x18caa0['delete'](_0x68ceae);const _0x392888=new Map();for(const _0x281ede of _0x31405e){let _0x421e7c=_0x2a357e['insertions'][_0x281ede];for(const _0x20b7a8 of _0x421e7c)if(_0x20b7a8['item']['is']('element','tableCell')){const _0x6f33bf=this['_getVidAttributeName'](_0x20b7a8),_0x4551dd=_0x20b7a8['item']['getAttribute'](_0x6f33bf);if(_0x48ff2e['has'](_0x4551dd)){const _0x5a28ce=_0x20b7a8['item']['parent']['parent']['getAttribute']('vid_start'),_0x29140e=_0x392888['get'](_0x5a28ce)||new Set();_0x29140e['add'](_0x48ff2e['get'](_0x4551dd)['userId']),_0x392888['set'](_0x5a28ce,_0x29140e);}}_0x421e7c=_0x2a357e['deletions'][_0x281ede];for(const _0x2f6097 of _0x421e7c)if(_0x2f6097['item']['is']('element','tableCell')){const _0x50b0ba=this['_getVidAttributeName'](_0x2f6097),_0x3b13d7=_0x2f6097['item']['getAttribute'](_0x50b0ba);if(_0x18caa0['has'](_0x3b13d7)){const _0x2b46b4=_0x2f6097['item']['parent']['parent']['getAttribute']('vid_start'),_0x7d8b37=_0x392888['get'](_0x2b46b4)||new Set();_0x7d8b37['add'](_0x18caa0['get'](_0x3b13d7)['userId']),_0x392888['set'](_0x2b46b4,_0x7d8b37);}}for(const _0x13a72c of _0x392888['keys']())(_0x48ff2e['has'](_0x13a72c)||_0x18caa0['has'](_0x13a72c))&&_0x392888['delete'](_0x13a72c);}for(const _0x495e91 of _0x31405e){const _0x56d81f=_0x2a357e['insertions'][_0x495e91];let _0x4b7d63=null,_0x40b742=null;for(const _0x44dac5 of _0x56d81f){const _0x33cf91=this['_getVidAttributeName'](_0x44dac5),_0x50f028=_0x44dac5['item']['getAttribute'](_0x33cf91),_0x1410ec=_0x392888['get'](_0x50f028);_0x1410ec&&'elementStart'==_0x44dac5['type']&&(_0x4b7d63=Array['from'](_0x1410ec)[0x0],_0x40b742=_0x44dac5['item']['getAttribute']('vid_end')),_0x4b7d63&&(_0x18caa0['set'](_0x50f028,{'userId':_0x4b7d63}),_0x48ff2e['set'](_0x50f028,{'userId':_0x4b7d63})),_0x50f028==_0x40b742&&(_0x4b7d63=null,_0x40b742=null);}}const _0x298633={},_0x5f1c62=new Set();for(const _0x444c4e of _0x31405e){const _0x47d4d7=_0x5bc907['deletions'][_0x444c4e],_0x36c9b2=_0x5bc907['insertions'][_0x444c4e];for(const {userId:_0x17a814}of this['_touchedMarkers']['values']())null!==_0x17a814&&_0x5f1c62['add'](_0x17a814);for(const {userId:_0x9bf5c6}of this['_touchedRoots']['values']())null!==_0x9bf5c6&&_0x5f1c62['add'](_0x9bf5c6);this['_markChanges'](_0x36c9b2,_0x2a357e['insertions'][_0x444c4e],_0x48ff2e,'insertion',_0x5f1c62),this['_markChanges'](_0x47d4d7,_0x2a357e['deletions'][_0x444c4e],_0x18caa0,'deletion',_0x5f1c62),_0x298633[_0x444c4e]={'insertions':this['_prepareViewToSave'](_0x36c9b2),'deletions':this['_prepareViewToSave'](_0x47d4d7),'attachChange':this['_touchedRoots']['get'](_0x444c4e)||null,'attributesBefore':_0x1fb55a(this['_baseRootsAttributes']['get'](_0x444c4e))||{},'attributesAfter':_0x1fb55a(this['_diffRootsAttributes']['get'](_0x444c4e))};}return{'diffData':_0x298633,'authorsIds':Array['from'](_0x5f1c62)};}['_processRootBeforeSave'](_0x58ab18){for(const [,_0x4927bf]of _0x58ab18['markers']){const _0x7d4070=_0x4927bf['start']['getAncestors']()['filter'](_0x6f1d90=>'tableCell'==_0x6f1d90['name']);for(const _0x3e4c2b of _0x7d4070)0x1==_0x3e4c2b['childCount']&&_0x3e4c2b['getChild'](0x0)['is']('element','paragraph')&&_0x3e4c2b['getChild'](0x0)['_setAttribute']('keepParagraph',!0x0);}}['_prepareViewToSave'](_0x5c4b27){this['_processRootBeforeSave'](_0x5c4b27);const _0x9553ab=this['editor']['data']['toView'](_0x5c4b27,{}),_0x5e1121=Array['from'](_0x9553ab['getChildren']())['map'](_0x316d4a=>this['_getViewJson'](_0x316d4a));return JSON['stringify'](_0x5e1121);}['_getViewJson'](_0x1e653f){if(_0x1e653f['is']('$text'))return _0x1e653f['data'];{const _0x415abb=_0x1e653f;return{'type':Object['keys'](C)['find'](_0x47d5c3=>_0x1e653f instanceof C[_0x47d5c3]),'name':_0x415abb['name'],'attributes':Array['from'](_0x415abb['getAttributes']()),'children':Array['from'](_0x415abb['getChildren']())['map'](_0x46ad3b=>this['_getViewJson'](_0x46ad3b))};}}['_markChanges'](_0x2eedcd,_0x384ee6,_0x2dfd6c,_0x49fe2f,_0x3e9a0f){let _0x3cb3c7=null,_0x5752d9=null,_0x342ee7=0x0;const _0x146a75=this['editor']['model'];for(let _0x1cdbd0=0x0;_0x1cdbd0<_0x384ee6['length'];_0x1cdbd0++){const _0x346b18=this['_getVidAttributeName'](_0x384ee6[_0x1cdbd0]),_0x405eb7=_0x384ee6[_0x1cdbd0]['item']['getAttribute'](_0x346b18),_0x4eb3db=_0x2dfd6c['get'](_0x405eb7),_0x418991=_0x1cdbd0==_0x384ee6['length']-0x1;(!_0x3cb3c7&&_0x4eb3db&&(_0x3cb3c7=_0x4eb3db,_0x5752d9=_0x384ee6[_0x1cdbd0]),_0x3cb3c7&&(!_0x4eb3db||_0x4eb3db['userId']!=_0x3cb3c7['userId']))&&(_0x1e4d90(_0x4eb3db,J(_0x5752d9,_0x2eedcd,_0x146a75),J(_0x384ee6[_0x1cdbd0],_0x2eedcd,_0x146a75)),_0x3cb3c7=_0x4eb3db||null,_0x5752d9=_0x4eb3db?_0x384ee6[_0x1cdbd0]:null),_0x3cb3c7&&_0x418991&&_0x1e4d90(_0x4eb3db,J(_0x5752d9,_0x2eedcd,_0x146a75),q(_0x384ee6[_0x1cdbd0],_0x2eedcd,_0x146a75));}function _0x1e4d90(_0x5effa7,_0x3415cd,_0x20717d){const _0x192cc1=_0x3cb3c7['userId'],_0x883e7='revision:'+_0x49fe2f+':'+_0x192cc1+':'+_0x342ee7++,_0x1d92d1=_0x146a75['createRange'](_0x3415cd,_0x20717d);_0x2eedcd['markers']['set'](_0x883e7,_0x1d92d1),null!==_0x192cc1&&_0x3e9a0f['add'](_0x192cc1);}}['_getVidAttributeName'](_0x5de3be){switch(_0x5de3be['type']){case'elementStart':return'vid_start';case'elementEnd':return'vid_end';default:return'vid';}}['_fixOperation'](_0x412308,_0x163064){_0x412308['baseVersion']=null;for(const _0x5590c1 in _0x412308){const _0x4d531d=_0x412308[_0x5590c1];if(_0x4d531d instanceof wt){const _0x579996=_0x163064['get'](_0x4d531d['root']['rootName']);_0x412308[_0x5590c1]=this['_fixPosition'](_0x4d531d,_0x579996);}if(_0x4d531d instanceof gt){const _0x4b5a11=_0x163064['get'](_0x4d531d['root']['rootName']);_0x412308[_0x5590c1]=this['_fixRange'](_0x4d531d,_0x4b5a11);}'root'===_0x5590c1&&(_0x412308['root']=_0x163064['get'](_0x412308['root']['rootName']));}}['_fixRange'](_0x274afb,_0x318320){return this['editor']['model']['createRange'](this['_fixPosition'](_0x274afb['start'],_0x318320),this['_fixPosition'](_0x274afb['end'],_0x318320));}['_fixPosition'](_0x5e4128,_0x5a057c){return this['editor']['model']['createPositionFromPath'](_0x5a057c,_0x5e4128['path'],_0x5e4128['stickiness']);}['_handleInsertOperation'](_0x322c96){const _0x37f643=this['_idsRoots']['get'](_0x322c96['position']['root']['rootName']),_0xbdeab=this['_fixPosition'](_0x322c96['position'],_0x37f643),_0x5d03ed=null===_0x322c96['_authorId']?null:_0x322c96['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x46f475=_0xbdeab['parent'],_0x5db262=this['_revisionId'],_0x981f3=[];for(const _0x2e9333 of _0x322c96['nodes'])if(_0x2e9333['is']('element'))_0x981f3['push'](this['_makeIdsRoot'](_0x2e9333));else{for(let _0x3f5b78=0x0;_0x3f5b78<_0x2e9333['offsetSize'];_0x3f5b78++)_0x981f3['push'](new vt('$text',{'vid':this['_revisionId']++}));}const _0xb72833=this['_revisionId'];for(let _0x293107=_0x5db262;_0x293107<_0xb72833;_0x293107++)this['_touched']['set'](_0x293107,{'userId':_0x5d03ed});_0x46f475['_insertChild'](_0xbdeab['offset'],_0x981f3);}['_handleMoveOperation'](_0x3434c1){(_0x3434c1=this['_cloneOperation'](_0x3434c1,this['_idsRoots']))['_execute']();const _0x346624=null===_0x3434c1['_authorId']?null:_0x3434c1['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x23cbdf=_0x3434c1['getMovedRangeStart'](),_0x596e6f=_0x23cbdf['parent'],_0x4fe6b5=_0x23cbdf['offset'];!function _0x37c408(_0x4041e9,_0x1bfa5b,_0x4d24bc,_0x5c508e){for(let _0x38c8f9=_0x4d24bc;_0x38c8f9<_0x5c508e;_0x38c8f9++){const _0x123f06=_0x1bfa5b['getChild'](_0x38c8f9);_0x123f06['is']('element','$text')?_0x4041e9['set'](_0x123f06['getAttribute']('vid'),{'userId':_0x346624}):(_0x4041e9['set'](_0x123f06['getAttribute']('vid_start'),{'userId':_0x346624}),_0x37c408(_0x4041e9,_0x123f06,0x0,_0x123f06['childCount']),_0x4041e9['set'](_0x123f06['getAttribute']('vid_end'),{'userId':_0x346624}));}}(this['_touched'],_0x596e6f,_0x4fe6b5,_0x4fe6b5+_0x3434c1['howMany']);}['_handleMergeOperation'](_0x3f26da){const _0x58707d=null===(_0x3f26da=this['_cloneOperation'](_0x3f26da,this['_idsRoots']))['_authorId']?null:_0x3f26da['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x30db27=_0x3f26da['targetPosition']['parent'],_0x602f93=_0x3f26da['sourcePosition']['parent'],_0x335754=_0x30db27['getAttribute']('vid_end'),_0x431cbb=_0x602f93['getAttribute']('vid_start');_0x30db27['_setAttribute']('vid_end',_0x602f93['getAttribute']('vid_end')),_0x602f93['_setAttribute']('vid_end',_0x335754),this['_touched']['set'](_0x431cbb,{'userId':_0x58707d}),this['_touched']['set'](_0x335754,{'userId':_0x58707d}),_0x3f26da['_execute']();}['_handleSplitOperation'](_0x1e55cd){const _0x435e6e=null===(_0x1e55cd=this['_cloneOperation'](_0x1e55cd,this['_idsRoots']))['_authorId']?null:_0x1e55cd['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x2cc0a4=_0x1e55cd['graveyardPosition'],_0x1862b7=_0x1e55cd['splitPosition']['parent'];_0x1e55cd['_execute']();const _0x46a300=_0x1862b7['getAttribute']('vid_end'),_0x6a21ea=_0x1e55cd['insertionPosition']['nodeAfter'];if(_0x2cc0a4){const _0x438288=_0x6a21ea['getAttribute']('vid_end'),_0x2f5de0=_0x1862b7['getAttribute']('vid_end');_0x1862b7['_setAttribute']('vid_end',_0x438288),_0x6a21ea['_setAttribute']('vid_end',_0x2f5de0),this['_touched']['set'](_0x1862b7['getAttribute']('vid_end'),{'userId':_0x435e6e}),this['_touched']['set'](_0x6a21ea['getAttribute']('vid_start'),{'userId':_0x435e6e});}else{const _0x29a232=this['_revisionId']++,_0x344cd7=this['_revisionId']++;_0x1862b7['_setAttribute']('vid_end',_0x29a232),_0x6a21ea['_setAttribute']('vid_start',_0x344cd7),_0x6a21ea['_setAttribute']('vid_end',_0x46a300),this['_touched']['set'](_0x29a232,{'userId':_0x435e6e}),this['_touched']['set'](_0x344cd7,{'userId':_0x435e6e});}}['_handleMarkerOperation'](_0x233fe2){if(!_0x233fe2['affectsData'])return;const _0x48a185=(_0x233fe2=this['_cloneOperation'](_0x233fe2,this['_diffRoots']))['oldRange']?_0x233fe2['oldRange']['root']:null,_0x76fe0e=_0x233fe2['newRange']?_0x233fe2['newRange']['root']:null;_0x48a185&&this['_markers']['delete'](_0x233fe2['name']),_0x76fe0e&&this['_markers']['set'](_0x233fe2['name'],_0x233fe2['newRange']['clone']());const _0x8bb068=null===_0x233fe2['_authorId']?null:_0x233fe2['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x3d97f9=_0x233fe2['name'];if(!this['_touchedMarkers']['has'](_0x3d97f9))return void this['_touchedMarkers']['set'](_0x3d97f9,{'range':_0x233fe2['oldRange'],'userId':_0x8bb068});const _0x5243ff=this['_touchedMarkers']['get'](_0x3d97f9),_0x30c6f9=_0x5243ff['range'],_0x234ca8=_0x233fe2['newRange'];null==_0x30c6f9&&null==_0x234ca8||_0x30c6f9&&_0x234ca8&&_0x30c6f9['isEqual'](_0x234ca8)?this['_touchedMarkers']['delete'](_0x233fe2['name']):_0x5243ff['userId']=_0x8bb068;}['_handleRootOperation'](_0x2d3032,_0x5a96d1){this['_diffRoots']['has'](_0x2d3032['rootName'])?this['_diffRoots']['get'](_0x2d3032['rootName'])['_isAttached']=_0x2d3032['isAdd']:(this['_diffRoots']['set'](_0x2d3032['rootName'],B(_0x2d3032['rootName'],!0x0)),this['_diffRootsAttributes']['set'](_0x2d3032['rootName'],{}),_0x5a96d1&&this['_idsRoots']['set'](_0x2d3032['rootName'],B(_0x2d3032['rootName'],!0x0)));const _0x33495d=null===_0x2d3032['_authorId']?null:_0x2d3032['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x102314=this['_touchedRoots']['get'](_0x2d3032['rootName']);_0x102314&&_0x102314['userId']===_0x33495d?this['_touchedRoots']['delete'](_0x2d3032['rootName']):this['_touchedRoots']['set'](_0x2d3032['rootName'],{'userId':_0x33495d,'isAttached':_0x2d3032['isAdd']});}['_handleRootAttributeOperation'](_0x49f442){const _0x5bdf02=this['_diffRootsAttributes']['get'](_0x49f442['root']['rootName']);null===_0x49f442['newValue']?delete _0x5bdf02[_0x49f442['key']]:_0x5bdf02[_0x49f442['key']]=_0x49f442['newValue'];}}function F(_0x9f1a1e){const _0x40321b=B(_0x9f1a1e['rootName'],_0x9f1a1e['isAttached']());for(const _0x417654 of _0x9f1a1e['getChildren']()){const _0x534040=_0x417654['_clone'](!0x0);_0x40321b['_appendChild'](_0x534040);}return _0x40321b;}function B(_0x3d1121,_0x295d43=!0x0){const _0x3e72f2=new ft();return _0x3e72f2['rootName']=_0x3d1121,_0x3e72f2['_isAttached']=_0x295d43,_0x3e72f2['isAttached']=()=>_0x3e72f2['_isAttached'],_0x3e72f2;}function J(_0x5c2bee,_0x5dfa84,_0xe9f5f2){const _0x15d144='elementEnd'==_0x5c2bee['type']?_0xe9f5f2['createPositionAt'](_0x5c2bee['item'],'end'):_0xe9f5f2['createPositionBefore'](_0x5c2bee['item']);return _0xe9f5f2['createPositionFromPath'](_0x5dfa84,_0x15d144['path'],_0x15d144['stickiness']);}function q(_0xb1621d,_0x555ebd,_0x372294){const _0x12aaf9='elementStart'==_0xb1621d['type']?_0x372294['createPositionAt'](_0xb1621d['item'],0x0):_0x372294['createPositionAfter'](_0xb1621d['item']);return _0x372294['createPositionFromPath'](_0x555ebd,_0x12aaf9['path'],_0x12aaf9['stickiness']);}class hs extends _0x316821{['focusTracker'];['keystrokes'];['revisionNameInputView'];constructor(_0x1971fe,_0x3a7925){super(_0x1971fe),this['focusTracker']=new _0x145988(),this['keystrokes']=new _0x467d25(),this['set']('revisionNameInputValue',''),this['revisionNameInputView']=this['_createRevisionNameInput'](_0x3a7925),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'](),_0x31630c({'view':this}),this['focusTracker']['add'](this['revisionNameInputView']['element']),this['keystrokes']['listenTo'](this['element']);const _0x45361f=_0xad3898=>_0xad3898['stopPropagation']();this['keystrokes']['set']('arrowright',_0x45361f),this['keystrokes']['set']('arrowleft',_0x45361f),this['keystrokes']['set']('arrowup',_0x45361f),this['keystrokes']['set']('arrowdown',_0x45361f);}['focus'](){this['revisionNameInputView']['focus']();}get['revisionName'](){return this['revisionNameInputView']['fieldView']['element']['value']['trim']();}set['revisionName'](_0x1eddf9){this['revisionNameInputView']['fieldView']['element']['value']=_0x1eddf9['trim']();}['reset'](){this['revisionNameInputView']['fieldView']['element']['value']='',this['revisionNameInputView']['errorText']=null;}['_createRevisionNameInput'](_0x14fb18){const _0x3a6b73=new at(this['locale'],_0xe78c44),_0x259d9f=_0x3a6b73['fieldView'];_0x259d9f['extendTemplate']({'attributes':{'maxlength':'220'}});let _0x4d7a0b=R(this['locale'],'Name\x20of\x20the\x20revision');return!_0x14fb18&&(_0x4d7a0b+='\x20('+R(this['locale'],'optional')+')'),(_0x3a6b73['label']=_0x4d7a0b,_0x259d9f['on']('input',()=>{this['revisionNameInputValue']=_0x259d9f['element']['value']['trim']();}),_0x3a6b73);}}class u extends _0x4d79c3{static get['pluginName'](){return'RevisionHistoryUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[l];}['_saveRevisionFormView'];['init'](){const _0x24c146=this['editor'],_0x1c511c=_0x24c146['plugins']['get']('RevisionTracker');_0x24c146['ui']['componentFactory']['add']('revisionHistory',_0x2d2873=>{const _0x4463e0=_0x4c2de5(_0x2d2873),_0x40badf=_0x4463e0['panelView']['children'],_0x79ba81=new _0x306d40(_0x2d2873),_0x472dd6=new te(_0x2d2873),_0x4e78b9=new _0x5a4262(_0x2d2873),_0x2b3887=new te(_0x2d2873),_0x1b7041=new _0x5a4262(_0x2d2873);return _0x4463e0['bind']('isEnabled')['to'](_0x1c511c,'isReady',_0x1c511c,'isEnabled',_0x24c146,'isReadOnly',(_0x5b37eb,_0x51d86a,_0x26a764)=>_0x5b37eb&&_0x51d86a&&!_0x26a764),_0x4463e0['buttonView']['set']({'icon':_0x242327['history'],'label':R(_0x2d2873,'Revision\x20history'),'tooltip':!0x0}),_0x4e78b9['set']({'label':R(_0x2d2873,'Save\x20current\x20revision'),'withText':!0x0,'role':'menuitem'}),_0x4e78b9['bind']('isEnabled')['to'](_0x1c511c,'isReady',_0x1c511c,'isEnabled',_0x24c146,'isReadOnly',(_0x3600e0,_0x59d449,_0x1a415a)=>_0x3600e0&&_0x59d449&&!_0x1a415a),_0x4e78b9['on']('execute',()=>this['_showDialog']()),_0x1b7041['set']({'label':R(_0x2d2873,'Open\x20revision\x20history'),'withText':!0x0,'role':'menuitem'}),_0x1b7041['bind']('isEnabled')['to'](_0x1c511c,'isReady',_0x24c146,'isReadOnly',(_0xac4d08,_0x173ffa)=>_0xac4d08&&!_0x173ffa),_0x1b7041['on']('execute',()=>{_0x24c146['config']['get']('revisionHistory')['showRevisionViewerCallback'](),_0x4463e0['isOpen']=!0x1,_0x24c146['editing']['view']['focus']();}),_0x472dd6['children']['add'](_0x4e78b9),_0x2b3887['children']['add'](_0x1b7041),_0x79ba81['role']='menu',_0x79ba81['items']['addMany']([_0x472dd6,_0x2b3887]),_0x40badf['add'](_0x79ba81),_0x4463e0;}),_0x24c146['ui']['componentFactory']['add']('menuBar:revisionHistory',()=>this['_registerMenuComponent']());}['_registerMenuComponent'](){const _0x1e3c28=this['editor'],_0x4f18ce=_0x1e3c28['locale'],_0x25129d=new _0x3a6d47(_0x4f18ce),_0x321a23=new _0x36bdfa(_0x4f18ce);_0x25129d['buttonView']['set']({'icon':_0x242327['history'],'label':R(_0x4f18ce,'Revision\x20history')});const _0x4f4d48=new _0xef6591(_0x4f18ce,_0x25129d),_0x1a8032=new _0x23ed94(_0x4f18ce);_0x1a8032['set']({'label':R(_0x4f18ce,'Save\x20current\x20revision')}),_0x1a8032['delegate']('execute')['to'](_0x25129d),_0x1a8032['on']('execute',()=>{this['_showDialog']();}),_0x4f4d48['children']['add'](_0x1a8032),_0x321a23['items']['add'](_0x4f4d48);const _0x42b540=new _0xef6591(_0x4f18ce,_0x25129d),_0x3190b5=new _0x23ed94(_0x4f18ce);return _0x3190b5['set']({'label':R(_0x4f18ce,'Open\x20revision\x20history')}),_0x3190b5['delegate']('execute')['to'](_0x25129d),_0x3190b5['on']('execute',()=>{_0x1e3c28['config']['get']('revisionHistory')['showRevisionViewerCallback']();}),_0x42b540['children']['add'](_0x3190b5),_0x321a23['items']['add'](_0x42b540),_0x25129d['panelView']['children']['add'](_0x321a23),_0x25129d;}['_showDialog'](){const _0xc9d00=this['editor'],_0x418609=_0xc9d00['locale'],_0x59f815=_0xc9d00['plugins']['get']('Dialog'),_0x110897=_0xc9d00['plugins']['get']('RevisionTracker');function _0x4f0008(_0x3eead0){_0xc9d00['config']['get']('revisionHistory.requireRevisionName')&&''===_0x3eead0['revisionName']?_0x3eead0['revisionNameInputView']['errorText']=R(_0x418609,'The\x20revision\x20name\x20cannot\x20be\x20empty.'):(_0xc9d00['plugins']['get'](l)['saveRevision']({'name':_0x3eead0['revisionName']}),_0x59f815['hide']());}this['_saveRevisionFormView']||(this['_createSaveRevisionFormView'](),this['_saveRevisionFormView']['on']('submit',()=>_0x4f0008(this['_saveRevisionFormView']))),this['_saveRevisionFormView']['reset'](),_0x59f815['show']({'id':'revisionSave','title':R(_0x418609,'Save\x20current\x20revision'),'isModal':!0x0,'content':this['_saveRevisionFormView'],'actionButtons':[{'label':R(_0xc9d00['locale'],'Cancel'),'withText':!0x0,'onExecute':()=>_0x59f815['hide']()},{'label':R(_0xc9d00['locale'],'Accept'),'class':'ck-button-action','withText':!0x0,'onCreate'(_0x35851d){_0x35851d['bind']('isEnabled')['to'](_0x110897,'isReady',_0x110897,'isEnabled',_0xc9d00,'isReadOnly',(_0x17b27a,_0x16083a,_0x4e03ce)=>_0x17b27a&&_0x16083a&&!_0x4e03ce);},'onExecute':()=>_0x4f0008(this['_saveRevisionFormView'])}]});}['_createSaveRevisionFormView'](){const _0x4b75bf=this['editor'],_0x5124aa=_0x4b75bf['locale'];this['_saveRevisionFormView']=new hs(_0x5124aa,_0x4b75bf['config']['get']('revisionHistory.requireRevisionName')),this['_saveRevisionFormView']['render']();}}class Y extends _0x316821{['changeId'];['_model'];constructor(_0x18f0ad,_0xb14526){super(_0x18f0ad),this['_model']=_0xb14526,this['changeId']=_0xb14526['id'];const _0x168a2f=this['bindTemplate'],_0x38745c=R(_0x18f0ad,_0xb14526['data']['isSuggestion']?'Suggested\x20by':'add'==_0xb14526['type']?'Added\x20by':'Removed\x20by');this['set']('type',_0xb14526['type']),this['setTemplate']({'tag':'div','attributes':{'class':['ck-annotation','ck-revision-change',_0x168a2f['to']('type',_0x1f429b=>'ck-revision-change__'+_0x1f429b)],'tabindex':-0x1},'children':[{'tag':'span','children':[{'tag':'span','attributes':{'class':['ck-revision-change__label']},'children':[{'text':_0x38745c}]},{'text':'\x20'+_0xb14526['author']['name']}]}]});}['focus'](){this['element']['focus']();}}class r extends/* #__PURE__ -- @preserve */
25
+ _0x2d9fa2(){['id'];['author'];['type'];['data'];['rootName'];constructor(_0x819835){super(),this['id']=_0x819835['id']||_0x20cbb6(),this['author']=_0x819835['author'],this['type']=_0x819835['type'],this['data']=_0x819835['data']||{},this['rootName']=_0x819835['rootName'],this['set']('createdAt',_0x819835['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(_0x2dd11b,_0x66cc56){this['newRevisionId']=_0x2dd11b,this['oldRevisionId']=_0x66cc56,this['changes']=new _0x3101f7();}['_setChanges'](_0x11c110){for(const _0x5eea2d of _0x11c110)this['changes']['add'](_0x5eea2d);}}const Z={'c':_0x2b13a5,'a':_0x4ac225,'e':_0xe52ebd,'r':_0xc6f0ba,'u':_0x112385};class d extends _0x4d79c3{['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[_0x49181d,_0x3a5f83,j];}constructor(_0x47080){super(_0x47080),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',(_0xaa9798,_0x8a3491,_0x329d68)=>{this['activeChange']=null,this['activeView']=null,this['editor']['editing']['view']['change'](_0x2989fa=>{for(const _0x2597ab of this['editor']['editing']['view']['document']['roots'])_0x329d68?_0x2989fa['removeClass']('ck-editor__editable__overlay',_0x2597ab):_0x2989fa['addClass']('ck-editor__editable__overlay',_0x2597ab);});}),this['bind']('isNavigationMode')['to'](this,'activeChange',_0x1da692=>null!==_0x1da692),this['bind']('currentChangeNumber')['to'](this,'isReady',this,'diff',this,'activeChange',(_0x51d8f3,_0x1e8194,_0x39ce53)=>_0x51d8f3&&_0x39ce53?_0x1e8194['changes']['getIndex'](_0x39ce53):0x0),this['bind']('numberOfChanges')['to'](this,'isReady',this,'diff',(_0x43e4f7,_0x3641dd)=>_0x43e4f7?_0x3641dd['changes']['length']:0x0),this['_changeView']=null,this['_changeIdToChange']=new Map(),this['adapter']=null,this['_balloon']=this['editor']['plugins']['get'](_0x3a5f83);}['init'](){const _0x5eaf20=this['editor'],_0x154770=new bt(_0x5eaf20,{'direction':'backward'}),_0x369b4b=new bt(_0x5eaf20,{'direction':'forward'});(_0x5eaf20['commands']['add']('showPreviousChange',_0x154770),_0x5eaf20['commands']['add']('showNextChange',_0x369b4b),_0x5eaf20['commands']['add']('restoreRevision',new yt(_0x5eaf20)),this['on']('change:numberOfChanges',()=>{_0x154770['refresh'](),_0x369b4b['refresh']();}),this['_setConversion'](),this['_initInteractions'](),_0x5eaf20['enableReadOnlyMode']('revision-viewer'),_0x5eaf20['plugins']['has']('WidgetToolbarRepository'))&&_0x5eaf20['plugins']['get']('WidgetToolbarRepository')['forceDisabled']('revision-viewer');}async['getRevisionData'](_0x221d26){await this['loadRevisionData'](_0x221d26);const _0xdb8d3b={};for(const _0x5473d0 in _0x221d26['diffData']){if(_0x221d26['diffData'][_0x5473d0]['attachChange']&&!_0x221d26['diffData'][_0x5473d0]['attachChange']['isAttached'])continue;const _0x5782d2=this['_removeRevisionMarkers'](JSON['parse'](_0x221d26['diffData'][_0x5473d0]['insertions'])),_0x5e8bba=this['editor']['editing']['view']['document'],_0x4bf9cf=new _0x5f2b4d(_0x5e8bba,_0x5782d2['map'](_0x2c1587=>this['_getViewObj'](_0x2c1587)));this['editor']['data']['processor']['useFillerType']('marked'),_0xdb8d3b[_0x5473d0]=this['editor']['data']['processor']['toData'](_0x4bf9cf),this['editor']['data']['processor']['useFillerType']('default');}return _0xdb8d3b;}async['getRevisionRootsAttributes'](_0x2815ee){await this['loadRevisionData'](_0x2815ee);const _0x7dbdaf={};for(const _0x1b225 in _0x2815ee['diffData'])_0x2815ee['diffData'][_0x1b225]['attachChange']&&!_0x2815ee['diffData'][_0x1b225]['attachChange']['isAttached']||(_0x7dbdaf[_0x1b225]=_0x2815ee['diffData'][_0x1b225]['attributesAfter']||{});return _0x7dbdaf;}['_removeRevisionMarkers'](_0x5502f2){return(_0x5502f2=_0x5502f2['filter'](_0x1f58e6=>!_0x1f58e6['name']||'revision-start'!==_0x1f58e6['name']&&'revision-end'!==_0x1f58e6['name']))['forEach'](_0x2f079f=>{'string'!=typeof _0x2f079f&&(_0x2f079f['children']=this['_removeRevisionMarkers'](_0x2f079f['children']),_0x2f079f['attributes']=_0x2f079f['attributes']['filter'](_0x45ddef=>!_0x45ddef[0x0]['startsWith']('data-revision-')));}),_0x5502f2;}async['compare'](_0x4489e1,_0x4d592f,_0x43dcd1=!0x1){if(!this['isEnabled'])return;const _0x1d531c=this['diff'],_0x2b89f2=this['repository'],_0x6ce90d='string'==typeof _0x4489e1?_0x2b89f2['getRevision'](_0x4489e1):_0x4489e1,_0x510d70='string'==typeof _0x4d592f?_0x2b89f2['getRevision'](_0x4d592f):_0x4d592f,_0x5a9b6c=_0x6ce90d['id'],_0x8e3a56=_0x510d70?_0x510d70['id']:null;if(!_0x43dcd1&&this['diff']&&this['diff']['newRevisionId']===_0x5a9b6c&&this['diff']['oldRevisionId']===_0x8e3a56)return Promise['resolve']();this['isReady']=!0x1,this['activeView']=null,this['activeChange']=null,this['diff']=new f(_0x5a9b6c,_0x8e3a56);const _0x2e1f18=this['_getRevisionsRange'](_0x6ce90d,_0x510d70,!0x0)['map'](_0x5ccb7e=>this['loadRevisionData'](_0x5ccb7e));return _0x2e1f18['push'](new Promise(_0x4eb0a7=>{setTimeout(_0x4eb0a7,0x14);})),Promise['all'](_0x2e1f18)['then'](()=>{if(!this['isEnabled'])return;this['_cleanUp']();const _0x5c6641=this['_getDiff'](_0x5a9b6c,_0x8e3a56);for(const _0x3ff50b of _0x5c6641['changes'])this['_changeIdToChange']['set'](_0x3ff50b['id'],_0x3ff50b);this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x50e68c=>{for(const _0x9aad04 of this['editor']['model']['document']['getRootNames']())_0x50e68c['detachRoot'](_0x9aad04);for(const _0xd09c47 of Object['keys'](_0x5c6641['model'])){const _0x3f3263=_0x50e68c['addRoot'](_0xd09c47);for(const _0x4ab3ff of Object['keys'](_0x5c6641['attributes'][_0xd09c47]))_0x50e68c['setAttribute'](_0x4ab3ff,_0x5c6641['attributes'][_0xd09c47][_0x4ab3ff],_0x3f3263);_0x50e68c['insert'](_0x5c6641['model'][_0xd09c47],_0x3f3263,0x0);}}),this['diff']['_setChanges'](this['_sortAndFilterDiffChanges'](_0x5c6641['changes'])),this['isReady']=!0x0;})['catch'](_0x96e3c3=>{console['error'](_0x96e3c3),this['_cleanUp'](),_0x1d531c&&(this['diff']=_0x1d531c),this['isReady']=!0x0;});}['addRevisionData'](_0x29c422,_0x2dca9e){const _0x38d8d5=this['repository']['createRevision'](_0x29c422);return _0x38d8d5['on']('_update',(_0x946f6a,_0x501990,_0x32c0e9)=>_0x2dca9e(_0x501990,_0x32c0e9,_0x38d8d5)),this['repository']['addRevision'](_0x38d8d5),_0x38d8d5;}['loadRevisionData'](_0x22bbbd){if(!_0x22bbbd||_0x22bbbd['diffData'])return Promise['resolve']();{const _0x33589b=this['editor']['config']['get']('collaboration.channelId');return this['adapter']['getRevision']({'channelId':_0x33589b,'revisionId':_0x22bbbd['id']})['then'](_0x744889=>{_0x22bbbd['_update']({'diffData':_0x744889['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},_0x134d55=>{for(const _0x347c5a of this['editor']['model']['document']['getRootNames']())_0x134d55['detachRoot'](_0x347c5a);});}['_sortAndFilterDiffChanges'](_0x3ea6d2){const _0x2271f3=[],_0x5d53e5=new Map();for(const _0x1b4299 of this['editor']['model']['document']['getRootNames']()){const _0x3c5714=this['editor']['editing']['view']['getDomRoot'](_0x1b4299);if(!_0x3c5714)continue;const _0x3a5ec5=_0x3c5714['getClientRects']()['item'](0x0);_0x3a5ec5&&(_0x2271f3['push'](_0x1b4299),_0x5d53e5['set'](_0x1b4299,_0x3a5ec5));}return _0x2271f3['sort']((_0xea96f8,_0x280f15)=>{const _0x469d79=_0x5d53e5['get'](_0xea96f8),_0x391d5a=_0x5d53e5['get'](_0x280f15);return _0x469d79['y']-_0x391d5a['y']||_0x469d79['x']-_0x391d5a['x'];}),(_0x3ea6d2=_0x3ea6d2['filter'](_0x2d37f2=>_0x2271f3['includes'](_0x2d37f2['rootName'])))['sort']((_0x1734b6,_0xa825f7)=>_0x2271f3['indexOf'](_0x1734b6['rootName'])-_0x2271f3['indexOf'](_0xa825f7['rootName'])),_0x3ea6d2;}['_makeTape'](_0x4ed7c9){const _0x2518e4=Array['from'](_0x4ed7c9['markers'])['filter'](([_0x4c1d33,_0x288816])=>_0x4c1d33['startsWith']('revision:')&&!_0x288816['isCollapsed']),_0x1e6bd1=Array['from'](this['editor']['model']['createRangeIn'](_0x4ed7c9)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0x2518e4['length'])for(const _0x447213 of _0x1e6bd1){const [_0x4ed485,_0x26a7d1]=_0x2518e4[0x0],[,_0x3dfb11,_0x428487]=_0x4ed485['split'](':');if(_0x26a7d1['end']['isEqual'](_0x447213['nextPosition'])&&_0x2518e4['shift'](),(_0x447213['previousPosition']['isEqual'](_0x26a7d1['start'])||_0x447213['previousPosition']['isAfter'](_0x26a7d1['start']))&&('insertion'==_0x3dfb11?_0x447213['isAdded']={'userId':_0x428487}:'deletion'==_0x3dfb11&&(_0x447213['isRemoved']={'userId':_0x428487})),0x0==_0x2518e4['length'])break;}return _0x1e6bd1;}['_refreshStartEndIndex'](_0x21a4c3){const _0x385662=new Map();for(let _0x5e32cc=0x0;_0x5e32cc<_0x21a4c3['length'];_0x5e32cc++)'text'===_0x21a4c3[_0x5e32cc]['type']?(_0x21a4c3[_0x5e32cc]['item']['startIndex']=_0x5e32cc,_0x21a4c3[_0x5e32cc]['item']['endIndex']=_0x5e32cc):('elementStart'===_0x21a4c3[_0x5e32cc]['type']?_0x21a4c3[_0x5e32cc]['item']['startIndex']=_0x5e32cc:'elementEnd'===_0x21a4c3[_0x5e32cc]['type']&&(_0x21a4c3[_0x5e32cc]['item']['endIndex']=_0x5e32cc),_0x385662['set'](_0x21a4c3[_0x5e32cc]['id'],_0x5e32cc));for(const _0xc136f0 of _0x385662['values']())'elementStart'===_0x21a4c3[_0xc136f0]['type']?_0x21a4c3[_0xc136f0]['item']['endIndex']=_0x385662['get'](_0x21a4c3[_0xc136f0]['pairId']):'elementEnd'===_0x21a4c3[_0xc136f0]['type']&&(_0x21a4c3[_0xc136f0]['item']['startIndex']=_0x385662['get'](_0x21a4c3[_0xc136f0]['pairId']));}['_processTape'](_0x1dd8dd){for(let _0x376445=0x0;_0x376445<_0x1dd8dd['length'];_0x376445++){if('elementStart'===_0x1dd8dd[_0x376445]['type'])_0x1dd8dd[_0x376445]['item']['startIndex']=_0x376445;else{if('elementEnd'===_0x1dd8dd[_0x376445]['type']){_0x1dd8dd[_0x376445]['item']['endIndex']=_0x376445;const _0xf5c904=_0x1dd8dd[_0x376445]['item']['startIndex'];_0x1dd8dd[_0xf5c904]['pairId']=_0x1dd8dd[_0x376445]['id'],_0x1dd8dd[_0x376445]['pairId']=_0x1dd8dd[_0xf5c904]['id'];}else _0x1dd8dd[_0x376445]['item']['startIndex']=_0x376445,_0x1dd8dd[_0x376445]['item']['endIndex']=_0x376445,_0x1dd8dd[_0x376445]['pairId']=null;}_0x1dd8dd[_0x376445]['markersStart']||(_0x1dd8dd[_0x376445]['markersStart']=[],_0x1dd8dd[_0x376445]['markersEnd']=[]);}}['_markInsertions'](_0x216550,_0x469ee6){const _0x51bdef=_0x216550['filter'](_0x192613=>!_0x192613['isAdded']);for(let _0x3840f3=0x0;_0x3840f3<_0x469ee6['length'];_0x3840f3++)_0x469ee6[_0x3840f3]['isAdded']&&(_0x51bdef[_0x3840f3]['isAdded']=_0x469ee6[_0x3840f3]['isAdded']);}['_makeModelFromViewString'](_0x3658f6){const _0x45569c=JSON['parse'](_0x3658f6),_0x4b985c=this['editor']['editing']['view']['document'],_0xa46970=new _0x5f2b4d(_0x4b985c,_0x45569c['map'](_0x24221b=>this['_getViewObj'](_0x24221b)));return this['editor']['data']['toModel'](_0xa46970);}['_getViewObj'](_0x1ed182){const _0xc8f7d3=this['editor']['editing']['view']['document'];if('string'==typeof _0x1ed182)return new _0x7460ad(_0xc8f7d3,_0x1ed182);{const _0x4c5111=_0x1ed182['children']['map'](_0x5c5796=>this['_getViewObj'](_0x5c5796));return new(Z[_0x1ed182['type']]||_0xc0f395)(_0xc8f7d3,_0x1ed182['name'],_0x1ed182['attributes'],_0x4c5111);}}['_getDiff'](_0x510890,_0x5dc3e1=null){const _0x44fd23=this['repository']['getRevision'](_0x510890),_0x31d291=_0x5dc3e1?this['repository']['getRevision'](_0x5dc3e1):null,_0x2d5da8=this['_getRevisionsRange'](_0x44fd23,_0x31d291),_0x1af67c=_0x2d5da8[_0x2d5da8['length']-0x1],_0x43458b=new Map(),_0x57b60a={'model':{},'attributes':{},'changes':[]},_0x57c6ed=new Set(),_0x33f594=new Map();for(let _0xdacfb8=_0x2d5da8['length']-0x1;_0xdacfb8>=0x0;_0xdacfb8--){const _0x3004ac=_0x2d5da8[_0xdacfb8];for(const _0x41b330 of Object['keys'](_0x3004ac['diffData']))if(_0x3004ac['diffData'][_0x41b330]['attachChange']){const _0x7488b1=_0x3004ac['diffData'][_0x41b330]['attachChange'];_0x7488b1['isAttached']?(_0x57c6ed['add'](_0x41b330),_0x33f594['has'](_0x41b330)&&_0x33f594['get'](_0x41b330)['userId']==_0x7488b1['userId']?_0x33f594['delete'](_0x41b330):_0x33f594['set'](_0x41b330,_0x7488b1)):_0x33f594['has'](_0x41b330)?(_0x57c6ed['delete'](_0x41b330),_0x33f594['delete'](_0x41b330)):(_0x57c6ed['add'](_0x41b330),_0x33f594['set'](_0x41b330,_0x7488b1));}else _0x57c6ed['add'](_0x41b330);}for(const _0x1ece73 of _0x57c6ed){const _0x148745=_0x33f594['has'](_0x1ece73)&&!_0x33f594['get'](_0x1ece73)['isAttached'];let _0x1b862e=_0x148745?_0x2d5da8['length']-0x1:0x0;const _0x43bbb9=_0x148745?-0x1:0x1;for(;_0x2d5da8[_0x1b862e];){const _0xf15df8=_0x2d5da8[_0x1b862e];if(_0xf15df8['diffData'][_0x1ece73]){const _0x30632c=_0x148745?_0xf15df8['diffData'][_0x1ece73]['attributesBefore']:_0xf15df8['diffData'][_0x1ece73]['attributesAfter'];_0x57b60a['attributes'][_0x1ece73]=_0x30632c?_0x1fb55a(_0x30632c):{};break;}_0x1b862e+=_0x43bbb9;}}for(const _0x3ac6d6 of _0x2d5da8){_0x3ac6d6['model']={};for(const _0x502320 of _0x3ac6d6['authors'])_0x43458b['set'](_0x502320['id'],_0x502320);for(const _0x1d170f of _0x57c6ed){const _0x2bbc41=_0x3ac6d6['diffData'][_0x1d170f]?_0x3ac6d6['diffData'][_0x1d170f]['insertions']:'[]',_0x3432ef=_0x3ac6d6['diffData'][_0x1d170f]?_0x3ac6d6['diffData'][_0x1d170f]['deletions']:'[]';_0x3ac6d6['model'][_0x1d170f]={'insertions':this['_makeModelFromViewString'](_0x2bbc41),'deletions':this['_makeModelFromViewString'](_0x3432ef)};}}for(const _0x5abee2 of _0x57c6ed){let _0x3d532a=null,_0x4fe3e8=0x0;const _0x295a72=new Map(Array['from'](_0x44fd23['model'][_0x5abee2]['insertions']['markers'])['filter'](([_0x1f87d3])=>!_0x1f87d3['startsWith']('revision:')));let _0x39dd79=0x0;for(const _0x30f32b of _0x2d5da8){const _0x287259=this['_makeTape'](_0x30f32b['model'][_0x5abee2]['insertions']);_0x30f32b==_0x44fd23?(_0x3d532a=_0x287259,_0x4fe3e8=_0x3d532a['length'],_0x3d532a['forEach'](_0x3e39b0=>{_0x3e39b0['id']=_0x39dd79++;}),this['_processTape'](_0x3d532a)):this['_markInsertions'](_0x3d532a,_0x287259);const _0x23d649=_0x3d532a['filter'](_0x31885c=>!_0x31885c['isAdded'])['map'](_0x5829de=>_0x5829de['id']);let _0x3990f1=0x0;const _0x216e33=this['_makeTape'](_0x30f32b['model'][_0x5abee2]['deletions']);_0x216e33['forEach'](_0x566f49=>{_0x566f49['isRemoved']?_0x566f49['id']=_0x4fe3e8++:_0x566f49['id']=_0x23d649[_0x3990f1++];}),this['_processTape'](_0x216e33),this['_setDistance'](_0x3d532a,'isAdded'),this['_setDistance'](_0x216e33,'isRemoved'),_0x30f32b==_0x44fd23&&this['_markMarkers'](_0x3d532a,_0x295a72),_0x3d532a=this['_joinTapes'](_0x3d532a,_0x216e33),this['_refreshStartEndIndex'](_0x3d532a),this['_setDistance'](_0x3d532a,'isRemoved');}_0x3d532a=_0x3d532a['filter'](_0x542f6a=>!(_0x542f6a['isAdded']&&_0x542f6a['isRemoved']));const _0x2a09cb=new Map(_0x1af67c['model'][_0x5abee2]['deletions']['markers']),_0x24c405=new Set(_0x295a72['keys']());for(const _0x35c924 of _0x2a09cb['keys']())_0x24c405['delete'](_0x35c924);this['_markSuggestions'](_0x3d532a,_0x24c405),this['_fixObsoleteTags'](_0x3d532a),_0x3d532a=this['_removeMissingPairs'](_0x3d532a),_0x3d532a=this['_markMismatchedRemovedTags'](_0x3d532a),_0x3d532a=this['_removeUnsupportedChanges'](_0x3d532a);const {root:_0x4f44fd,changes:_0x12a531}=this['_makeModelFromTape'](_0x3d532a,_0x43458b,_0x5abee2);_0x57b60a['model'][_0x5abee2]=_0x4f44fd;const _0x2994b9=_0x33f594['get'](_0x5abee2);if(_0x2994b9){const _0x477b7e=_0x43458b['get'](_0x2994b9['userId']),_0x1acfc3=new r({'author':_0x477b7e,'type':_0x2994b9['isAttached']?'add':'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x5abee2});_0x12a531['unshift'](_0x1acfc3),_0x57b60a['attributes'][_0x5abee2]['revisionHistoryAttachChange']=_0x1acfc3['id'];}_0x57b60a['changes']=_0x57b60a['changes']['concat'](_0x12a531);}return _0x57b60a;}['_markMarkers'](_0x236d98,_0x4da62c){for(let _0x1b3a8d=0x0;_0x1b3a8d<_0x236d98['length'];_0x1b3a8d++)for(const [_0x322e01,_0x3c7664]of _0x4da62c)_0x3c7664['start']['isEqual'](_0x236d98[_0x1b3a8d]['previousPosition'])&&_0x236d98[_0x1b3a8d]['markersStart']['push'](_0x322e01),_0x3c7664['end']['isEqual'](_0x236d98[_0x1b3a8d]['nextPosition'])&&_0x236d98[_0x1b3a8d]['markersEnd']['push'](_0x322e01);}['_joinTapes'](_0x24f35f,_0x4bea42){let _0x5122e6=[],_0x1daae2=0x0,_0x5600e9=0x0;for(;_0x1daae2<_0x24f35f['length']||_0x5600e9<_0x4bea42['length'];){const _0x12ff87=_0x24f35f[_0x1daae2]||{},_0xf2eda7=_0x4bea42[_0x5600e9]||{};if(_0x12ff87['id']==_0xf2eda7['id'])_0x1daae2++,_0x5600e9++,_0x5122e6['push'](_0x12ff87);else{if(_0xf2eda7['isRemoved']&&_0x12ff87['isAdded']){const {commonTape:_0x37e6ef,iEnd:_0x513fec,jEnd:_0x54ca95}=this['_threeWayMerge'](_0x24f35f,_0x1daae2,_0x4bea42,_0x5600e9);_0x5122e6=_0x5122e6['concat'](_0x37e6ef),_0x1daae2=_0x513fec,_0x5600e9=_0x54ca95;}else _0xf2eda7['isRemoved']?(_0x5600e9++,_0x5122e6['push'](_0xf2eda7)):(_0x1daae2++,_0x5122e6['push'](_0x12ff87));}}return _0x5122e6;}['_markSuggestions'](_0x4b565f,_0xb7cfbd){const _0x5c85ae=[];for(let _0x227656=0x0;_0x227656<_0x4b565f['length'];_0x227656++){for(let _0x541a0d=0x0;_0x541a0d<_0x4b565f[_0x227656]['markersStart']['length'];_0x541a0d++){const _0x7b1868=_0x4b565f[_0x227656]['markersStart'][_0x541a0d];if(!_0xb7cfbd['has'](_0x7b1868))continue;const {group:_0x6ca168,type:_0x1d5a5b,authorId:_0xe79409}=_0x30ecb9(_0x7b1868);'revision-suggestion'!=_0x6ca168||'insertion'!=_0x1d5a5b&&'deletion'!=_0x1d5a5b||(_0x5c85ae['unshift']({'type':_0x1d5a5b,'name':_0x7b1868,'userId':_0xe79409}),_0x4b565f[_0x227656]['markersStart']['splice'](_0x541a0d,0x1),_0x541a0d--);}_0x2bb386(_0x4b565f[_0x227656]);for(let _0x192fad=0x0;_0x192fad<_0x4b565f[_0x227656]['markersEnd']['length'];_0x192fad++){const _0x1d4e3d=_0x4b565f[_0x227656]['markersEnd'][_0x192fad];if(!_0xb7cfbd['has'](_0x1d4e3d))continue;const {group:_0x425075,type:_0x1a9bf}=_0x30ecb9(_0x1d4e3d);if('revision-suggestion'!=_0x425075||'insertion'!=_0x1a9bf&&'deletion'!=_0x1a9bf)continue;_0x4b565f[_0x227656]['markersEnd']['splice'](_0x192fad,0x1),_0x192fad--;const _0x5bfe8a=_0x5c85ae['findIndex'](_0x34e63e=>_0x34e63e['name']==_0x1d4e3d);_0x5bfe8a>-0x1&&_0x5c85ae['splice'](_0x5bfe8a,0x1);}}function _0x30ecb9(_0x2616a6){const _0x2cdd31=_0x2616a6['split'](':');return{'group':_0x2cdd31[0x0],'type':_0x2cdd31[0x1],'subType':_0x2cdd31['length']>=0x5?_0x2cdd31[0x2]:null,'id':_0x2cdd31['length']<0x5?_0x2cdd31[0x2]:_0x2cdd31[0x3],'authorId':_0x2cdd31['length']<0x5?_0x2cdd31[0x3]:_0x2cdd31[0x4],'markerCount':0x6==_0x2cdd31['length']?_0x2cdd31[0x5]:null};}function _0x2bb386(_0x213b24){for(let _0x21414f=0x0;_0x21414f<_0x5c85ae['length'];_0x21414f++){if(_0x213b24['isAdded']&&'insertion'==_0x5c85ae[_0x21414f]['type'])return _0x213b24['isAddSuggestion']=_0x5c85ae[_0x21414f],void delete _0x213b24['isAdded'];if(!_0x213b24['isAdded']&&!_0x213b24['isRemoved']&&'deletion'==_0x5c85ae[_0x21414f]['type'])return void(_0x213b24['isRemoveSuggestion']=_0x5c85ae[_0x21414f]);}}}['_setDistance'](_0x1452f7,_0x4b6e0c){let _0x4d5fd2=0x0,_0x68b9f8=!0x1;const _0x10394d=new Map();for(const _0x44a79a of _0x1452f7)_0x44a79a[_0x4b6e0c]?_0x68b9f8&&(_0x4d5fd2++,_0x68b9f8=!0x1):(_0x4d5fd2++,_0x68b9f8=!0x0),_0x10394d['set'](_0x44a79a['id'],_0x4d5fd2);for(let _0x442b95=0x0;_0x442b95<_0x1452f7['length'];_0x442b95++){if('isRemoved'==_0x4b6e0c&&_0x1452f7[_0x442b95]['isAdded']||'isAdded'==_0x4b6e0c&&_0x1452f7[_0x442b95]['isRemoved'])continue;if('text'==_0x1452f7[_0x442b95]['type']){_0x1452f7[_0x442b95]['distance']=0x0;continue;}const _0x550887=_0x10394d['get'](_0x1452f7[_0x442b95]['pairId']),_0x182031=_0x10394d['get'](_0x1452f7[_0x442b95]['id']);_0x1452f7[_0x442b95]['distance']=_0x550887-_0x182031;}}['_getRevisionsRange'](_0x3109af,_0x12cdfe,_0x208c15=!0x1){const _0x7a2b27=[];let _0x33fe1b=this['repository']['getIndex'](_0x3109af),_0x5b639e=this['repository']['getIndex'](_0x12cdfe);for(-0x1==_0x5b639e&&(_0x5b639e=this['repository']['_revisions']['length'],_0x208c15=!0x1);_0x33fe1b<_0x5b639e;)_0x7a2b27['push'](this['repository']['getRevision'](_0x33fe1b)),_0x33fe1b++;return _0x208c15&&_0x7a2b27['push'](this['repository']['getRevision'](_0x33fe1b)),_0x7a2b27;}['_threeWayMerge'](_0xb42750,_0x122c5c,_0x3e1341,_0x2fc60a){const _0x11137f=this['editor']['model']['schema'];let _0x4ac45b=_0x122c5c;for(;_0xb42750[_0x4ac45b]&&_0xb42750[_0x4ac45b]['isAdded'];)_0x4ac45b++;let _0x412f20=_0x2fc60a;for(;_0x3e1341[_0x412f20]&&_0x3e1341[_0x412f20]['isRemoved'];)_0x412f20++;_0x12395f(_0xb42750,_0x122c5c,_0x4ac45b),_0x12395f(_0x3e1341,_0x2fc60a,_0x412f20);const _0x2f5846=_0x3e1341['slice'](_0x2fc60a,_0x412f20)['concat'](_0xb42750['slice'](_0x122c5c,_0x4ac45b));return _0x2f5846['sort']((_0x5ac49d,_0x2aafc3)=>_0x5ac49d['side']!=_0x2aafc3['side']?_0x5ac49d['side']-_0x2aafc3['side']:_0x5ac49d['level']!=_0x2aafc3['level']?_0x5ac49d['level']-_0x2aafc3['level']:_0x5ac49d['distance']!=_0x2aafc3['distance']?_0x2aafc3['distance']-_0x5ac49d['distance']:!!_0x5ac49d['isAdded']!=!!_0x2aafc3['isAdded']?-0x1==_0x5ac49d['side']||0x0==_0x5ac49d['side']?_0x5ac49d['isAdded']?-0x1:0x1:_0x5ac49d['isAdded']?0x1:-0x1:_0x5ac49d['index']-_0x2aafc3['index']),{'commonTape':_0x2f5846,'iEnd':_0x4ac45b,'jEnd':_0x412f20};function _0x12395f(_0x20b690,_0x2b6a27,_0x5bb695){let _0x7d5e29=-0x1,_0x8472ff=Number['POSITIVE_INFINITY'],_0x26af3f=!0x0;for(let _0x560819=_0x2b6a27;_0x560819<_0x5bb695;_0x560819++)if(_0x11137f['isInline'](_0x20b690[_0x560819]['item'])||(_0x26af3f=!0x1),_0x20b690[_0x560819]['item']['startIndex']<_0x2b6a27&&(_0x7d5e29=_0x560819),_0x20b690[_0x560819]['item']['endIndex']>=_0x5bb695){_0x8472ff=_0x560819;break;}_0x26af3f&&(_0x7d5e29=_0x5bb695-0x1);for(let _0x4291a9=_0x2b6a27;_0x4291a9<_0x5bb695;_0x4291a9++)_0x20b690[_0x4291a9]['side']=_0x4291a9<=_0x7d5e29?-0x1:_0x4291a9<_0x8472ff?0x0:0x1,_0x20b690[_0x4291a9]['index']=_0x4291a9;let _0x52aa73=0x0;for(let _0x1fc15c=_0x2b6a27;_0x1fc15c<=_0x7d5e29;_0x1fc15c++)0x0==_0x20b690[_0x1fc15c]['distance']?_0x20b690[_0x1fc15c]['level']=_0x52aa73:(_0x52aa73++,_0x20b690[_0x1fc15c]['level']=_0x52aa73,_0x52aa73++);for(let _0x128915=_0x2b6a27;_0x128915<_0x5bb695;_0x128915++)0x0==_0x20b690[_0x128915]['side']&&(_0x20b690[_0x128915]['level']=_0x52aa73);_0x52aa73=0x0;for(let _0x31bc42=_0x5bb695-0x1;_0x31bc42>=_0x8472ff;_0x31bc42--)0x0==_0x20b690[_0x31bc42]['distance']?_0x20b690[_0x31bc42]['level']=_0x52aa73:(_0x52aa73--,_0x20b690[_0x31bc42]['level']=_0x52aa73,_0x52aa73--);}}['_fixObsoleteTags'](_0x2020ad){const _0x3abcad=new Map(),_0x599ef9=this['editor']['model']['schema'];for(let _0x3a8856=0x1;_0x3a8856<_0x2020ad['length'];_0x3a8856++){let _0x53cea1,_0x6ae17e,_0xec1b69;const _0x2509fa=_0x2020ad[_0x3a8856],_0x2ad316=_0x2020ad[_0x3a8856-0x1];if('text'==_0x2509fa['type'])continue;if(_0x2509fa['type']!=_0x2ad316['type'])continue;if(!_0x599ef9['isBlock'](_0x2ad316['item'])||_0x599ef9['isLimit'](_0x2ad316['item']))continue;if(!_0x599ef9['isBlock'](_0x2509fa['item'])||_0x599ef9['isLimit'](_0x2509fa['item']))continue;if((_0x2020ad[_0x3a8856]['isAdded']||_0x2020ad[_0x3a8856]['isAddSuggestion'])&&_0x2020ad[_0x3a8856-0x1]['isRemoved'])_0x53cea1=_0x2020ad[_0x3a8856],_0x6ae17e=_0x2020ad[_0x3a8856-0x1],_0xec1b69=_0x3a8856-0x1;else{if(!_0x2020ad[_0x3a8856]['isRemoved']||!_0x2020ad[_0x3a8856-0x1]['isAdded']&&!_0x2020ad[_0x3a8856-0x1]['isAddSuggestion'])continue;_0x53cea1=_0x2020ad[_0x3a8856-0x1],_0x6ae17e=_0x2020ad[_0x3a8856],_0xec1b69=_0x3a8856;}const _0x2ecaa4=_0x53cea1['level']==_0x6ae17e['level'],_0x72879d=Math['abs'](_0x53cea1['level'])<Math['abs'](_0x6ae17e['level'])&&0x0==_0x6ae17e['distance'];(_0x2ecaa4||_0x72879d)&&(_0x3abcad['set'](_0x6ae17e['id'],_0x53cea1['id']),_0x2020ad['splice'](_0xec1b69,0x1),_0x3a8856--,_0x53cea1['isAdded']=!0x1);}for(let _0x461384=0x0;_0x461384<_0x2020ad['length'];_0x461384++)_0x3abcad['has'](_0x2020ad[_0x461384]['pairId'])&&(_0x2020ad[_0x461384]['pairId']=_0x3abcad['get'](_0x2020ad[_0x461384]['pairId']));}['_removeMissingPairs'](_0x292230){const _0x1415ee=new Set(_0x292230['map'](_0xc3b045=>_0xc3b045['id']));for(let _0x459d7a=0x0;_0x459d7a<_0x292230['length'];_0x459d7a++)_0x1415ee['has'](_0x292230[_0x459d7a]['pairId'])||0x0==_0x292230[_0x459d7a]['distance']||(_0x292230[_0x459d7a]['isIncorrect']=!0x0);return _0x292230['filter'](_0x44b153=>!_0x44b153['isIncorrect']);}['_markMismatchedRemovedTags'](_0x138eab){const _0x5bfaf0=new Set();for(let _0x1582c4=0x0;_0x1582c4<_0x138eab['length'];_0x1582c4++){if(_0x5bfaf0['has'](_0x138eab[_0x1582c4]['id'])&&_0x138eab[_0x1582c4]['isRemoved']&&(_0x138eab[_0x1582c4]['isIncorrect']=!0x0),_0x138eab[_0x1582c4]['isIncorrect'])continue;if(0x0==_0x138eab[_0x1582c4]['distance'])continue;if('elementStart'!=_0x138eab[_0x1582c4]['type'])continue;if(null==_0x138eab[_0x1582c4]['pairId'])continue;let _0x432c42=_0x1582c4+0x1,_0x50c6b4=0x0;for(;_0x138eab[_0x432c42]['id']!=_0x138eab[_0x1582c4]['pairId'];)'elementStart'==_0x138eab[_0x432c42]['type']?_0x50c6b4++:'elementEnd'==_0x138eab[_0x432c42]['type']&&_0x50c6b4--,_0x432c42++;if(0x0!=_0x50c6b4){if(_0x138eab[_0x1582c4]['isRemoved'])_0x138eab[_0x1582c4]['isIncorrect']=!0x0;else{for(;_0x432c42!=_0x1582c4;)_0x138eab[_0x432c42]['isRemoved']&&0x0!=_0x138eab[_0x432c42]['distance']&&(_0x138eab[_0x432c42]['isIncorrect']=!0x0,_0x5bfaf0['add'](_0x138eab[_0x432c42]['pairId'])),_0x432c42--;}}}return _0x138eab['filter'](_0xe188f7=>!_0xe188f7['isIncorrect']);}['_removeUnsupportedChanges'](_0x581602){const _0x2cbc2c=this['editor']['model']['schema'];for(let _0x5617de=0x0;_0x5617de<_0x581602['length'];_0x5617de++){if(!(_0x581602[_0x5617de]['isAdded']||_0x581602[_0x5617de]['isAddSuggestion']||_0x581602[_0x5617de]['isRemoved']||_0x581602[_0x5617de]['isRemoveSuggestion']))continue;if(0x0==_0x581602[_0x5617de]['distance'])continue;const _0x5672ca=_0x581602[_0x5617de]['item'];_0x2cbc2c['isBlock'](_0x5672ca)||_0x2cbc2c['isLimit'](_0x5672ca)||(_0x581602[_0x5617de]['isAdded']&&delete _0x581602[_0x5617de]['isAdded'],_0x581602[_0x5617de]['isAddSuggestion']&&delete _0x581602[_0x5617de]['isAddSuggestion'],_0x581602[_0x5617de]['isRemoveSuggestion']&&delete _0x581602[_0x5617de]['isRemoveSuggestion'],_0x581602[_0x5617de]['isRemoved']&&(_0x581602[_0x5617de]['isIncorrect']=!0x0));}return _0x581602['filter'](_0x2becb0=>!_0x2becb0['isIncorrect']);}['_makeModelFromTape'](_0x1cdf8c,_0x31d632,_0x80467e){const _0xaa392e=new ft(),_0x38bff4=[],_0x3c1e25=new Map(),_0x1b4f5f=this['editor']['model'],_0x67c09f=_0x1b4f5f['schema'],_0x561469=[_0xaa392e],_0x579957={},_0x2f18f9={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0xbe35d=null;const _0x2a554d=[0x0];for(let _0x26dfe7=0x0;_0x26dfe7<_0x1cdf8c['length'];_0x26dfe7++)if('elementStart'===_0x1cdf8c[_0x26dfe7]['type']){_0x1cdf8c[_0x26dfe7]['previousPosition']=_0x1b4f5f['createPositionFromPath'](_0xaa392e,_0x2a554d);const _0x26c5ff=new vt(_0x1cdf8c[_0x26dfe7]['item']['name'],_0x1cdf8c[_0x26dfe7]['item']['getAttributes']());_0x561469[0x0]['_appendChild'](_0x26c5ff),_0x2a554d['push'](0x0),_0x561469['unshift'](_0x26c5ff),_0x1cdf8c[_0x26dfe7]['nextPosition']=_0x1b4f5f['createPositionFromPath'](_0xaa392e,_0x2a554d);}else'elementEnd'===_0x1cdf8c[_0x26dfe7]['type']?(_0x561469['shift'](),_0x1cdf8c[_0x26dfe7]['previousPosition']=_0x1b4f5f['createPositionFromPath'](_0xaa392e,_0x2a554d),_0x2a554d['pop'](),_0x2a554d[_0x2a554d['length']-0x1]++,_0x1cdf8c[_0x26dfe7]['nextPosition']=_0x1b4f5f['createPositionFromPath'](_0xaa392e,_0x2a554d)):(_0x1cdf8c[_0x26dfe7]['previousPosition']=_0x1b4f5f['createPositionFromPath'](_0xaa392e,_0x2a554d),_0xbe35d?_0xbe35d['_data']+=_0x1cdf8c[_0x26dfe7]['item']['data']:_0xbe35d=new _t(_0x1cdf8c[_0x26dfe7]['item']['data'],_0x1cdf8c[_0x26dfe7]['item']['getAttributes']()),_0x1cdf8c[_0x26dfe7+0x1]&&'text'===_0x1cdf8c[_0x26dfe7+0x1]['type']&&_0x15c26c(_0xbe35d,_0x1cdf8c[_0x26dfe7+0x1]['item'])||(_0x561469[0x0]['_appendChild'](_0xbe35d),_0xbe35d=null),_0x2a554d[_0x2a554d['length']-0x1]+=_0x1cdf8c[_0x26dfe7]['item']['offsetSize'],_0x1cdf8c[_0x26dfe7]['nextPosition']=_0x1b4f5f['createPositionFromPath'](_0xaa392e,_0x2a554d));for(let _0x6d3a41=0x0;_0x6d3a41<_0x1cdf8c['length'];_0x6d3a41++){const _0x119a47=_0x1cdf8c[_0x6d3a41]['previousPosition'],_0x567f68=_0x1cdf8c[_0x6d3a41]['nextPosition'];for(const _0x44c9c7 of _0x1cdf8c[_0x6d3a41]['markersStart'])_0x3c1e25['set'](_0x44c9c7,{'start':_0x119a47,'end':null});_0x2b7036('isRemoveSuggestion',_0x6d3a41,_0x119a47,_0x567f68),_0x2b7036('isAddSuggestion',_0x6d3a41,_0x119a47,_0x567f68),_0x2b7036('isRemoved',_0x6d3a41,_0x119a47,_0x567f68),_0x2b7036('isAdded',_0x6d3a41,_0x119a47,_0x567f68);for(const _0x331262 of _0x1cdf8c[_0x6d3a41]['markersEnd']){_0x3c1e25['get'](_0x331262)['end']=_0x567f68;}}for(const [_0x13522c,_0x2e1b96]of _0x3c1e25){const _0x705b89=this['editor']['model']['createRange'](_0x2e1b96['start'],_0x2e1b96['end']);_0xaa392e['markers']['set'](_0x13522c,_0x705b89);}return _0x38bff4['sort']((_0x5071ad,_0x6c0832)=>{const _0x3d647e=_0xaa392e['markers']['get']('revision:'+_0x5071ad['id']),_0x5a862b=_0xaa392e['markers']['get']('revision:'+_0x6c0832['id']);return _0x3d647e['start']['isBefore'](_0x5a862b['start'])?-0x1:_0x3d647e['start']['isAfter'](_0x5a862b['start'])?0x1:_0x3d647e['end']['isBefore'](_0x5a862b['end'])?-0x1:_0x3d647e['end']['isAfter'](_0x5a862b['end'])?0x1:'add'===_0x5071ad['type']?-0x1:0x1;}),{'root':_0xaa392e,'changes':_0x38bff4};function _0x2b7036(_0x400532,_0x3d1fd2,_0x174fbf,_0x2b140e){const _0x340443=!!_0x1cdf8c[_0x3d1fd2][_0x400532],_0x5ef371=_0x340443?_0x1cdf8c[_0x3d1fd2][_0x400532]['userId']:null,_0x6983a3=_0x3d1fd2===_0x1cdf8c['length']-0x1,_0x25e956=_0x2f18f9[_0x400532][0x0],_0x239510=_0x67c09f['isObject'](_0x1cdf8c[_0x3d1fd2]['item']);!_0x579957[_0x400532]&&_0x340443?_0x579957[_0x400532]={'start':_0x174fbf,'tapeItem':_0x1cdf8c[_0x3d1fd2],'userId':_0x5ef371,'type':_0x400532}:_0x579957[_0x400532]&&!_0x340443?(_0x579957[_0x400532]['end']=_0x174fbf,_0x54f01d(_0x579957[_0x400532]),_0x579957[_0x400532]=null):_0x579957[_0x400532]&&_0x340443&&_0x579957[_0x400532]['userId']!==_0x5ef371&&(_0x579957[_0x400532]['end']=_0x174fbf,_0x25e956&&_0x25e956['userId']===_0x579957[_0x400532]['userId']||_0x54f01d(_0x579957[_0x400532]),_0x579957[_0x400532]={'start':_0x174fbf,'tapeItem':_0x1cdf8c[_0x3d1fd2],'userId':_0x5ef371,'type':_0x400532}),_0x579957[_0x400532]&&_0x239510&&('elementStart'!==_0x1cdf8c[_0x3d1fd2]['type']||_0x25e956&&_0x25e956['userId']===_0x5ef371||_0x2f18f9[_0x400532]['unshift']({'userId':_0x5ef371,'object':_0x1cdf8c[_0x3d1fd2]['item'],'change':_0x579957[_0x400532]}),'elementEnd'===_0x1cdf8c[_0x3d1fd2]['type']&&_0x25e956&&_0x25e956['object']===_0x1cdf8c[_0x3d1fd2]['item']&&(_0x2f18f9[_0x400532]['shift'](),_0x579957[_0x400532]=_0x25e956['change'])),_0x579957[_0x400532]&&_0x6983a3&&(_0x579957[_0x400532]['end']=_0x2b140e,_0x54f01d(_0x579957[_0x400532]),_0x579957[_0x400532]=null);}function _0x54f01d({start:_0x374d8f,end:_0x2b37bd,tapeItem:_0x37a389,userId:_0x260144,type:_0x28b8d0}){const _0x27aa63=_0x37a389['item'],_0x33ce8d=_0x1b4f5f['schema']['isBlock'](_0x27aa63)&&!_0x1b4f5f['schema']['isLimit'](_0x27aa63),_0x579269=_0x374d8f['nodeAfter']==_0x2b37bd['parent']&&_0x2b37bd['isAtStart'];if(_0x33ce8d&&_0x579269)return;const _0x452179=_0x1b4f5f['createRange'](_0x374d8f,_0x2b37bd),_0x3cae61=_0x31d632['get'](_0x260144),_0x2dedf2=new r({'author':_0x3cae61,'type':'isAdded'==_0x28b8d0||'isAddSuggestion'==_0x28b8d0?'add':'remove','data':{'isSuggestion':'isAddSuggestion'==_0x28b8d0||'isRemoveSuggestion'==_0x28b8d0},'createdAt':new Date(),'rootName':_0x80467e});_0x38bff4['push'](_0x2dedf2),_0xaa392e['markers']['set']('revision:'+_0x2dedf2['id'],_0x452179);}function _0x15c26c(_0x2036e5,_0x5555ff){const _0x2961b2=_0x2036e5['getAttributes'](),_0xf136f9=_0x5555ff['getAttributes']();for(const _0x2bfaea of _0x2961b2){if(_0x2bfaea[0x1]!==_0x5555ff['getAttribute'](_0x2bfaea[0x0]))return!0x1;_0xf136f9['next']();}return _0xf136f9['next']()['done'];}}['_setConversion'](){this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision','view':_0x39f896=>{const _0xb0ab43=_0x39f896['markerName']['split'](':')[0x1],_0x279745=this['_getChangeFromId'](_0xb0ab43);if(!_0x279745)return null;const _0x16770f='add'==_0x279745['type']?'insertion':'deletion',_0x46562b=['ck-suggestion-marker','ck-suggestion-marker-'+_0x16770f];return _0x279745['data']['isSuggestion']&&_0x46562b['push']('ck-suggestion-marker-'+_0x16770f+'-new'),this['activeChange']==_0x279745&&_0x46562b['push']('ck-suggestion-marker--active'),{'classes':_0x46562b,'attributes':{'data-change-id':_0xb0ab43}};}}),this['editor']['conversion']['for']('upcast')['add'](_0x22bd65=>{_0x22bd65['on']('element:pre',(_0x5c831d,_0x292ef2,_0x337eff)=>{const _0x4c940d=_0x292ef2['viewItem']['getChild'](0x0);if(!_0x4c940d||!_0x4c940d['is']('element','code'))return;if(!_0x337eff['consumable']['consume'](_0x4c940d,{'attributes':['vid_start','vid_end']}))return;const _0x2b1542=_0x292ef2['modelRange']['start']['nodeAfter'];_0x337eff['writer']['setAttribute']('vid_start',_0x4c940d['getAttribute']('vid_start'),_0x2b1542),_0x337eff['writer']['setAttribute']('vid_end',_0x4c940d['getAttribute']('vid_end'),_0x2b1542);},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['add'](_0xffdfa1=>{_0xffdfa1['on']('element',(_0x5b77e5,_0xcde3fc,_0x3ac2bc)=>{if(!_0x3ac2bc['consumable']['consume'](_0xcde3fc['viewItem'],{'attributes':['vid_start','vid_end']}))return;if(_0xcde3fc['modelRange']['isCollapsed'])return;const _0x525e97=_0xcde3fc['modelRange']['start']['nodeAfter'];_0x525e97['hasAttribute']('vid_start')||_0x525e97['hasAttribute']('vid')||(_0x3ac2bc['writer']['setAttribute']('vid_start',_0xcde3fc['viewItem']['getAttribute']('vid_start'),_0x525e97),_0x3ac2bc['writer']['setAttribute']('vid_end',_0xcde3fc['viewItem']['getAttribute']('vid_end'),_0x525e97));},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['elementToAttribute']({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0x195811=>_0x195811['getAttribute']('vid')}}),this['editor']['model']['schema']['on']('checkAttribute',(_0x4e1451,[,_0x315053])=>{['vid_start','vid_end','vid']['includes'](_0x315053)&&(_0x4e1451['return']=!0x0,_0x4e1451['stop']());},{'priority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x553cda=>{_0x553cda['on']('attribute:vid',(_0x4fa1d6,_0xe974ee,_0x189c89)=>{if('\x20'!=_0xe974ee['item']['data']||_0xe974ee['item']['parent']['maxOffset']>0x1)return;if(!_0x189c89['consumable']['consume'](_0xe974ee['item'],_0x4fa1d6['name']))return;const _0x3a1c18=_0x189c89['writer'],_0x1464b9=_0x189c89['mapper']['toViewRange'](_0xe974ee['range']);_0x3a1c18['wrap'](_0x1464b9,_0x3a1c18['createAttributeElement']('span'));});}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',function(_0x2ad03a){const _0x185a7c=_0x2ad03a['plugins']['get']('RevisionViewer');return(_0x3d1378,_0x4ecf2c,_0x45eebb)=>{const _0x1a840c=_0x4ecf2c['markerName']['split'](':')[0x1],_0x2d2a8b=_0x185a7c['_getChangeFromId'](_0x1a840c);if(!_0x2d2a8b)return null;const _0x1fc71c='add'==_0x2d2a8b['type']?'split':'merge';if(!_0x45eebb['consumable']['test'](_0x4ecf2c['markerRange'],_0x3d1378['name']))return;const _0x148ff1=_0x4ecf2c['markerRange']['getWalker'](),_0x5cb22c=_0x4ecf2c['markerRange']['start'],_0x29c186=_0x2ad03a['model']['schema'];let _0x410c7a=null,_0x22ffd9=null,_0x246926=!0x1,_0x2210f6=!0x1;for(const _0x47a820 of _0x148ff1){const _0x2b445b=_0x47a820['item'];_0x246926=_0x246926||_0x29c186['isContent'](_0x2b445b);const _0xc5260c=_0x45eebb['mapper']['toViewElement'](_0x2b445b);if(_0xc5260c&&_0xc5260c['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x47a820['type']&&(_0x29c186['isBlock'](_0x2b445b)&&!_0x29c186['isLimit'](_0x2b445b)&&(_0x2b445b['nextSibling']||_0x5cb22c['isAtEnd']?_0x410c7a&&_0x410c7a['parent']==_0x2b445b||(_0x410c7a=_0x2b445b,_0x19f7e8(_0x47a820['previousPosition']),_0x2210f6=!0x0):_0x22ffd9=_0x22ffd9||_0x47a820['previousPosition']));}function _0x19f7e8(_0x3700fc){const _0x272cd2=_0x45eebb['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x1fc71c}),_0x32aa72=_0x45eebb['mapper']['toViewPosition'](_0x3700fc);_0x2d2a8b['data']['isSuggestion']&&_0x45eebb['writer']['addClass']('ck-suggestion-marker-'+_0x1fc71c+'-new',_0x272cd2),_0x185a7c['activeChange']==_0x2d2a8b&&_0x45eebb['writer']['addClass']('ck-suggestion-marker--active',_0x272cd2),_0x45eebb['writer']['insert'](_0x32aa72,_0x272cd2),_0x45eebb['mapper']['bindElementToMarker'](_0x272cd2,_0x4ecf2c['markerName']);}_0x246926||_0x2210f6||!_0x22ffd9||_0x19f7e8(_0x22ffd9);};}(this['editor']),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision',(_0x63c7aa,_0x58c70d,_0x412073)=>{const _0x29f131=_0x412073['mapper']['markerNameToElements'](_0x58c70d['markerName']);if(_0x29f131){for(const _0x292a96 of _0x29f131)(_0x292a96['hasClass']('ck-suggestion-marker-split')||_0x292a96['hasClass']('ck-suggestion-marker-merge'))&&(_0x412073['mapper']['unbindElementFromMarkerName'](_0x292a96,_0x58c70d['markerName']),_0x412073['writer']['remove'](_0x292a96));}},{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',(_0x496319,_0xd4b343,_0x297fc1)=>{const _0x2dfbef=_0xd4b343['markerName']['split'](':')[0x1],_0x3d2217=this['_getChangeFromId'](_0x2dfbef);if(!_0x3d2217)return null;const _0x9ad937='add'==_0x3d2217['type']?'split':'merge';if(_0x297fc1['consumable']['test'](_0xd4b343['markerRange'],_0x496319['name']))for(const _0x3023bf of _0xd4b343['markerRange']['getItems']()){if(!_0x3023bf['is']('element','softBreak'))continue;const _0x23fbe4=_0x297fc1['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x9ad937}),_0x267eff=_0x297fc1['mapper']['toViewPosition'](this['editor']['model']['createPositionBefore'](_0x3023bf));_0x3d2217['data']['isSuggestion']&&_0x297fc1['writer']['addClass']('ck-suggestion-marker-'+_0x9ad937+'-new',_0x23fbe4),this['activeChange']==_0x3d2217&&_0x297fc1['writer']['addClass']('ck-suggestion-marker--active',_0x23fbe4),_0x297fc1['writer']['insert'](_0x267eff,_0x23fbe4),_0x297fc1['mapper']['bindElementToMarker'](_0x23fbe4,_0xd4b343['markerName']);}},{'priority':'high'}),this['editor']['model']['document']['on']('change',()=>{this['editor']['editing']['view']['change'](_0x483b01=>{for(const _0x33e45a of this['editor']['model']['document']['getRootNames']()){const _0x5978b2=this['editor']['model']['document']['getRoot'](_0x33e45a),_0x1ffcdf=this['editor']['editing']['view']['document']['getRoot'](_0x33e45a);if(_0x1ffcdf){const _0x251e52=_0x5978b2['getAttribute']('revisionHistoryAttachChange');if(_0x483b01['removeAttribute']('data-change-id',_0x1ffcdf),_0x483b01['removeClass']('ck-revision-history-root-add',_0x1ffcdf),_0x483b01['removeClass']('ck-revision-history-root-remove',_0x1ffcdf),_0x483b01['removeClass']('ck-revision-history-root--active',_0x1ffcdf),_0x251e52){const _0x30086a=this['_getChangeFromId'](_0x251e52);if(!_0x30086a)return null;_0x483b01['setAttribute']('data-change-id',_0x251e52,_0x1ffcdf),_0x483b01['addClass']('ck-revision-history-root-'+_0x30086a['type'],_0x1ffcdf),this['activeChange']==_0x30086a&&_0x483b01['addClass']('ck-revision-history-root--active',_0x1ffcdf);}}}});}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'comment','model':_0x2c036c=>'revision-comment:'+_0x2c036c,'converterPriority':'highest'}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion','model':_0x4636ea=>'revision-suggestion:'+_0x4636ea,'converterPriority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision-suggestion','view':_0x34e60a=>({'name':'suggestion:'+_0x34e60a,'group':'revision-suggestion'}),'converterPriority':'highest'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision-suggestion','view':_0x323b26=>{const _0x169c5a=_0x323b26['markerName']['split'](':')[0x1];return'insertion'!=_0x169c5a&&'deletion'!=_0x169c5a?null:{'classes':['ck-suggestion-preview-marker','ck-suggestion-preview-marker-'+_0x169c5a]};}}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:deletion',tt(this['editor'],'merge'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:insertion',tt(this['editor'],'split'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision-suggestion',(_0x4506c7,_0x114177,_0x7640cb)=>{const _0x1e92b4=_0x7640cb['mapper']['markerNameToElements'](_0x114177['markerName']);if(_0x1e92b4){for(const _0x2f3bb3 of _0x1e92b4)_0x2f3bb3['is']('uiElement')&&(_0x7640cb['mapper']['unbindElementFromMarkerName'](_0x2f3bb3,_0x114177['markerName']),_0x7640cb['writer']['remove'](_0x2f3bb3));}},{'priority':'high'});}['_getChangeFromId'](_0xc3ada8){return this['_changeIdToChange']['get'](_0xc3ada8);}['_getViewForChange'](_0x5b72dc){return this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=new Y(this['editor']['locale'],_0x5b72dc),this['_changeView'];}['_initInteractions'](){this['editor']['model']['document']['selection']['observeMarkers']('revision'),this['on']('change:activeView',(_0x2a619c,_0x24a965,_0x1af034,_0x53564b)=>{_0x53564b&&this['_balloon']['remove'](_0x53564b),_0x1af034&&(this['_balloon']['add']({'view':_0x1af034,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0x3c54b6=this['editor']['editing'],_0x1a8814=this['_getChangeFromId'](_0x1af034['changeId']);let _0x418935;if(_0x1a8814['data']['isOnRoot']){const _0x4ae87a=_0x3c54b6['view']['getDomRoot'](_0x1a8814['rootName']);_0x418935=Array['from'](_0x4ae87a['getClientRects']());}else{const _0x1ac767=this['editor']['model']['markers']['get']('revision:'+_0x1af034['changeId']);_0x418935=Array['from'](_0x3c54b6['mapper']['markerNameToElements'](_0x1ac767['name']))['map'](_0x2f6a6d=>_0x3c54b6['view']['domConverter']['mapViewToDom'](_0x2f6a6d))['map'](_0x39992f=>Array['from'](_0x39992f['getClientRects']()))['flat']();}if(!this['_activeViewTarget'])return _0x418935[0x0];return _0x418935['find'](_0x1b6f9d=>_0x1b6f9d['top']-0x3<=this['_activeViewTarget']['y']&&_0x1b6f9d['bottom']+0x3>=this['_activeViewTarget']['y']&&_0x1b6f9d['left']-0x3<=this['_activeViewTarget']['x']&&_0x1b6f9d['right']+0x3>=this['_activeViewTarget']['x'])||_0x418935[0x0];}}}),this['_balloon']['showStack']('revisionHistoryLabel'));}),this['on']('change:activeChange',(_0x2c4ccb,_0x4d0755,_0x427763,_0x18c336)=>{this['activeView']=_0x427763?this['_getViewForChange'](_0x427763):null,this['editor']['model']['change'](()=>{const _0x3ade70=this['editor']['editing'];_0x18c336&&(_0x18c336['data']['isOnRoot']?_0x3ade70['view']['change'](_0xb533bf=>{_0xb533bf['removeClass']('ck-revision-history-root--active',_0x3ade70['view']['document']['getRoot'](_0x18c336['rootName']));}):_0x3ade70['reconvertMarker']('revision:'+_0x18c336['id'])),_0x427763&&(_0x427763['data']['isOnRoot']?_0x3ade70['view']['change'](_0x486f99=>{_0x486f99['addClass']('ck-revision-history-root--active',_0x3ade70['view']['document']['getRoot'](_0x427763['rootName']));}):_0x3ade70['reconvertMarker']('revision:'+_0x427763['id']));});}),this['listenTo'](this['editor']['editing']['view']['document'],'mouseover',(_0x1ccc6f,_0x37fdfe)=>{if(this['activeChange'])return;const _0x3ef0ca=this['_findChangeIdFromDomTarget'](_0x37fdfe['target']),_0x49a646=this['_changeIdToChange']['get'](_0x3ef0ca);_0x49a646?(this['_activeViewTarget']={'x':_0x37fdfe['domEvent']['x'],'y':_0x37fdfe['domEvent']['y']},this['activeView']=this['_getViewForChange'](_0x49a646)):(this['_activeViewTarget']=null,this['activeView']=null);}),this['listenTo'](this['editor']['editing']['view']['document'],'mousedown',(_0x56c249,_0x56a624)=>{const _0x548bc0=this['_findChangeIdFromDomTarget'](_0x56a624['target']),_0xd03853=this['_changeIdToChange']['get'](_0x548bc0);_0xd03853?(this['_activeViewTarget']={'x':_0x56a624['domEvent']['x'],'y':_0x56a624['domEvent']['y']},_0xd03853===this['activeChange']?this['_balloon']['updatePosition']():this['activeChange']=_0xd03853):(this['_activeViewTarget']=null,this['activeChange']=null);});}['_findChangeIdFromDomTarget'](_0x3d5dcc){do{const _0x3b002d=_0x3d5dcc['getAttribute']('data-change-id');if(_0x3b002d)return _0x3b002d;_0x3d5dcc=_0x3d5dcc['parent'];}while(_0x3d5dcc);return null;}['_cleanMarkers'](){this['editor']['model']['change'](_0x2f604e=>{for(const _0x5e9a06 of this['editor']['model']['markers'])_0x2f604e['removeMarker'](_0x5e9a06);});}}function tt(_0x30cace,_0x132453){return(_0x5d2877,_0x4af2de,_0x100ad8)=>{if(!_0x100ad8['consumable']['test'](_0x4af2de['markerRange'],_0x5d2877['name']))return;const _0x4845f3=_0x4af2de['markerRange']['getWalker'](),_0x580fa5=_0x4af2de['markerRange']['start'],_0x3366fc=_0x30cace['model']['schema'];let _0x12cc7b=null,_0x1d9cad=null,_0x13adc3=!0x1,_0x30582c=!0x1;for(const _0x4f2543 of _0x4845f3){const _0x682cd8=_0x4f2543['item'];_0x13adc3=_0x13adc3||_0x3366fc['isContent'](_0x682cd8);const _0x421da0=_0x100ad8['mapper']['toViewElement'](_0x682cd8);if(_0x421da0&&_0x421da0['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x4f2543['type']&&(_0x3366fc['isBlock'](_0x682cd8)&&!_0x3366fc['isLimit'](_0x682cd8)&&(_0x682cd8['nextSibling']||_0x580fa5['isAtEnd']?_0x12cc7b&&_0x12cc7b['parent']==_0x682cd8||(_0x12cc7b=_0x682cd8,_0x1e0585(_0x4f2543['previousPosition']),_0x30582c=!0x0):_0x1d9cad=_0x1d9cad||_0x4f2543['previousPosition']));}function _0x1e0585(_0x7fb851){const _0x165b9b=_0x100ad8['mapper']['toViewPosition'](_0x7fb851),_0xaa74f=_0x100ad8['writer']['createUIElement']('span',{'class':'ck-suggestion-preview-marker-'+_0x132453});_0x100ad8['writer']['insert'](_0x165b9b,_0xaa74f),_0x100ad8['mapper']['bindElementToMarker'](_0xaa74f,_0x4af2de['markerName']);}_0x13adc3||_0x30582c||!_0x1d9cad||_0x1e0585(_0x1d9cad);};}class yt extends _0x491a06{constructor(_0x4ec922){super(_0x4ec922);const _0x48ea36=_0x4ec922['plugins']['get'](d);this['affectsData']=!0x1,this['listenTo'](_0x48ea36,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x48ea36,'change:isEnabled',()=>this['refresh']());}['execute'](){const _0x30ea39=this['editor'],_0x244ef3=_0x30ea39['plugins']['get'](d),_0x3ed74e=_0x244ef3['isReady']?_0x244ef3['diff']['newRevisionId']:null;_0x30ea39['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x3ed74e);}['refresh'](){const {isReady:_0x4af165,isEnabled:_0xe6a01f}=this['editor']['plugins']['get'](d);this['isEnabled']=_0x4af165&&_0xe6a01f;}}class bt extends _0x491a06{['_step'];constructor(_0x546a2f,{direction:_0x570360}){super(_0x546a2f);const _0x1541de=_0x546a2f['plugins']['get'](d);this['affectsData']=!0x1,this['_step']='forward'===_0x570360?0x1:-0x1,this['listenTo'](_0x1541de,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x1541de,'change:isEnabled',()=>this['refresh']()),this['listenTo'](_0x1541de,'change:activeChange',()=>this['refresh']());}['execute'](){const _0x3eeb86=this['editor'],_0xa8ff14=_0x3eeb86['plugins']['get'](d),{isNavigationMode:_0x35a16b,currentChangeNumber:_0x492652}=_0xa8ff14;let _0x45b451;if(_0xa8ff14['activeChange']=_0x35a16b?_0xa8ff14['diff']['changes']['get'](_0x492652+this['_step']):_0xa8ff14['diff']['changes']['first'],_0xa8ff14['activeChange']['data']['isOnRoot'])_0x45b451=_0x3eeb86['editing']['view']['getDomRoot'](_0xa8ff14['activeChange']['rootName']);else{const _0x1b2ea7=_0x3eeb86['model']['markers']['get']('revision:'+_0xa8ff14['activeChange']['id']);_0x45b451=_0xbe21a1(_0x3eeb86['editing'],_0x1b2ea7);}_0x47c73b({'target':_0x45b451,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0x4883fc,currentChangeNumber:_0x5cd747,numberOfChanges:_0x41ffc9,isReady:_0x3c8c83,isEnabled:_0x3fb64a}=this['editor']['plugins']['get'](d);this['isEnabled']=!!(_0x3fb64a&&_0x3c8c83&&_0x41ffc9)&&(!_0x4883fc||(0x1===this['_step']?_0x5cd747<_0x41ffc9-0x1:_0x5cd747>0x0));}}class _i extends _0x316821{constructor(_0x5cb80f){super(_0x5cb80f);const _0x4ee5d3=this['bindTemplate'],_0x108a1b=new _0x5a4262(_0x5cb80f),_0x54351e=new _0x5a4262(_0x5cb80f);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',(_0x21c628,_0x4bdc05)=>_0x21c628&&_0x4bdc05>0x0),this['bind']('_statusText')['to'](this,'isReady',this,'currentChangeNumber',this,'numberOfChanges',this,'isNavigationMode',(_0x4c1590,_0x2b4e2a,_0x2aa474,_0x33f54a)=>{if(!_0x4c1590)return R(_0x5cb80f,'Loading...');if(!_0x2aa474)return R(_0x5cb80f,'No\x20changes');const _0xa83b33=R(_0x5cb80f,'NUMBER_OF_CHANGES',_0x2aa474);return _0x33f54a?R(_0x5cb80f,'X_OF_Y_CHANGES',[_0x2b4e2a+0x1,_0x2aa474]):_0xa83b33;}),_0x108a1b['set']({'label':R(_0x5cb80f,'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'}),_0x54351e['set']({'label':R(_0x5cb80f,'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'}),_0x108a1b['bind']('isEnabled')['to'](this,'isBackwardNavigationEnabled'),_0x54351e['bind']('isEnabled')['to'](this,'isForwardNavigationEnabled'),_0x108a1b['on']('execute',()=>this['fire']('execute','backward')),_0x54351e['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',_0x4ee5d3['if']('_isStatusLabelVisible','ck-hidden',_0xf4def6=>!_0xf4def6)]},'children':[{'text':_0x4ee5d3['to']('isNavigationMode',_0x58c146=>_0x58c146?R(_0x5cb80f,'EDIT_X_OF_Y_REVISIONS')+':\x20':R(_0x5cb80f,'Total')+':\x20')}]},{'text':_0x4ee5d3['to']('_statusText')}]},new _0x2d0281(),{'tag':'div','attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0x108a1b,_0x54351e]}]});}}const ce='ck-editor__editable__loading-overlay';class le extends _0x4d79c3{static get['pluginName'](){return'RevisionViewerLoadingOverlay';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['show'](){const _0x3d3a45=this['editor']['editing']['view'];_0x3d3a45['change'](_0x1cf9cd=>{for(const _0x130361 of _0x3d3a45['document']['roots'])_0x1cf9cd['addClass'](ce,_0x130361);});}['hide'](){const _0x1a2755=this['editor']['editing']['view'];_0x1a2755['change'](_0x268c5b=>{for(const _0x2ae20f of _0x1a2755['document']['roots'])_0x268c5b['removeClass'](ce,_0x2ae20f);});}}class m extends _0x4d79c3{static get['pluginName'](){return'RevisionViewerUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[d,le];}['init'](){const _0x59eb78=this['editor'],_0x272f6e=_0x59eb78['plugins']['get'](d),_0x1dbc42=_0x59eb78['plugins']['get'](le);_0x59eb78['ui']['componentFactory']['add']('exitToEditing',_0x26ebec=>{const _0xc57e42=new _0x5a4262(_0x26ebec);return _0xc57e42['set']({'label':R(_0x26ebec,'Back\x20to\x20editing'),'icon':_0x242327['undo'],'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this['listenTo'](_0xc57e42,'execute',()=>{_0x59eb78['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}),_0xc57e42;}),_0x59eb78['ui']['componentFactory']['add']('restoreRevision',_0x524d7a=>{const _0x240228=new _0x5a4262(_0x524d7a);return _0x240228['set']({'label':R(_0x524d7a,'Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0x240228['bind']('isEnabled')['to'](_0x59eb78['commands']['get']('restoreRevision')),this['listenTo'](_0x240228,'execute',()=>_0x59eb78['execute']('restoreRevision')),_0x240228;}),_0x59eb78['ui']['componentFactory']['add']('changesNavigation',_0x26af48=>{const _0x378fd4=new _i(_0x26af48),_0x16ffd7=_0x59eb78['commands']['get']('showPreviousChange'),_0x13b921=_0x59eb78['commands']['get']('showNextChange');return _0x378fd4['bind']('isBackwardNavigationEnabled')['to'](_0x16ffd7,'isEnabled'),_0x378fd4['bind']('isForwardNavigationEnabled')['to'](_0x13b921,'isEnabled'),_0x378fd4['bind']('isReady','currentChangeNumber','numberOfChanges','isNavigationMode')['to'](_0x272f6e),this['listenTo'](_0x378fd4,'execute',(_0x38aec7,_0x265a99)=>{_0x59eb78['execute']('forward'===_0x265a99?'showNextChange':'showPreviousChange');}),_0x378fd4;}),_0x1dbc42['show'](),_0x272f6e['on']('change:isReady',(_0xd9daea,_0x207a25,_0x3835f6)=>{_0x3835f6?_0x1dbc42['hide']():_0x1dbc42['show']();});}}class mt extends at{['_resizeObserver']=null;constructor(_0x35cbd,_0x3e54c3){super(_0x35cbd,_0x3e54c3);const _0x12da62=this['bindTemplate'];this['set']({'label':R(_0x35cbd,'Revision\x20name'),'_tooltipString':''}),this['fieldView']['placeholder']=R(_0x35cbd,'Enter\x20the\x20revision\x20name'),this['extendTemplate']({'tag':'span','attributes':{'class':['ck-revision-history-sidebar__revision-name'],'data-cke-tooltip-text':_0x12da62['to']('_tooltipString'),'data-cke-tooltip-position':'s','data-cke-tooltip-class':'ck-tooltip_multi-line'}});}['render'](){super['render'](),this['_resizeObserver']=new pt(this['fieldView']['element'],()=>this['_updateTooltipText']()),this['listenTo'](this['fieldView'],'input',()=>this['_updateTooltipText']());}['destroy'](){super['destroy'](),this['_resizeObserver']&&this['_resizeObserver']['destroy']();}['_updateTooltipText'](){const _0x2363af=this['fieldView']['element'];this['_tooltipString']=_0x2363af['scrollWidth']>_0x2363af['clientWidth']&&_0x2363af['value']||'';}}class ti extends _0x316821{constructor(_0x300134,_0x2dbdc9,_0x285134){super(_0x300134);const _0x1776b3=new _0x5841c1();_0x1776b3['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 _0x5d13aa=['ck','ck-revision-history-sidebar__revision-author'];_0x285134&&_0x5d13aa['push']('ck-revision-history-sidebar__revision-author_creator');const _0x4f9a0e=[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':R(_0x300134,_0x285134?'Revision\x20creator':'Revision\x20author')},'children':[_0x1776b3,_0x2dbdc9['name']]}];this['setTemplate']({'tag':'li','attributes':{'class':_0x5d13aa},'children':_0x4f9a0e});}}function ni(_0x68fdb5,_0x530034){const _0xe85eab=_0x68fdb5['bindTemplate'],_0x6950a4=_0x68fdb5['locale'],_0x4a11f4=_0x4c2de5(_0x6950a4);_0x4a11f4['panelPosition']='sw';const _0x5963c9=function(_0x5738ff,_0x1f2c3a){const _0x3972a3=function(_0x3e626b,_0xa2a192){const _0x4d8c84=_0x3e626b['locale'],_0x8fae43={'Compare\x20against\x20selected':R(_0x4d8c84,'Compare\x20against\x20selected'),'Name\x20this\x20revision':R(_0x4d8c84,'Name\x20this\x20revision'),'Restore\x20this\x20revision':R(_0x4d8c84,'Restore\x20this\x20revision')};return _0xa2a192['map'](_0xcd7335=>{const _0x2f2a5b=_0x8fae43[_0xcd7335['name']];return _0x2f2a5b&&_0x2f2a5b!==_0xcd7335['name']&&(_0xcd7335['name']=_0x2f2a5b),_0xcd7335;});}(_0x5738ff,_0x1f2c3a),_0x118b34=new _0x3101f7();for(const _0x328b81 of _0x3972a3){const _0x2ed090={'type':'button','model':new to({'label':_0x328b81['name'],'class':_0x328b81['class'],'withText':!0x0,'role':'menuitem','_action':_0x328b81['action']})};_0x2ed090['model']['bind']('isEnabled')['to'](_0x5738ff,'isActionsDropdownOpen',_0x2987e2=>'function'!=typeof _0x328b81['isEnabled']||(!_0x2987e2||_0x328b81['isEnabled'](_0x5738ff))),_0x118b34['add'](_0x2ed090);}return _0x118b34;}(_0x68fdb5,_0x530034);return _0x68fdb5['bind']('isActionsDropdownOpen')['to'](_0x4a11f4,'isOpen'),_0x4a11f4['buttonView']['set']({'label':R(_0x6950a4,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x242327['threeVerticalDots']}),_0x4a11f4['extendTemplate']({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0xe85eab['if']('isActionsDropdownOpen','ck-on')]},'on':{'click':_0xe85eab['to'](_0x3ac855=>_0x3ac855['stopPropagation']())}}),_0x4a11f4['on']('execute',_0x29f833=>{_0x68fdb5['isReady']&&'function'==typeof _0x29f833['source']['_action']&&_0x29f833['source']['_action'](_0x68fdb5);}),_0x368a11(_0x4a11f4,_0x5963c9,{'role':'menu'}),_0x4a11f4['listenTo'](_0x68fdb5,'change:isActionsDropdownOpen',(_0x99c9e3,_0x146844,_0x1a8086)=>{if(_0x1a8086)for(const _0x237364 of _0x4a11f4['listView']['items']){const _0x358ec8=_0x237364['children']['first'],_0x13e28a=_0x530034['find'](_0x35b942=>_0x35b942['action']===_0x358ec8['_action'])['isVisible'];_0x237364['isVisible']=void 0x0===_0x13e28a||_0x13e28a(_0x68fdb5);}}),_0x4a11f4;}class ai extends/* #__PURE__ -- @preserve */
26
+ _0xfcd923(_0x316821){['id'];['revisionNameView'];['revisionActionsView'];['_revision'];['_requireRevisionName'];constructor(_0x22b57b,_0x3ee656,_0x1c9b8c,_0x248102){super(_0x22b57b);const _0x3b7dba=this['bindTemplate'],_0x1b66ef=function(_0x368a15,_0x96d32b){const _0x5e221b=Array['from'](_0x96d32b['authors'])['filter'](_0x57ac87=>_0x57ac87!=_0x96d32b['creator']);return _0x96d32b['creator']&&_0x5e221b['unshift'](_0x96d32b['creator']),_0x5e221b['map'](_0x983b8b=>new ti(_0x368a15,_0x983b8b,_0x983b8b==_0x96d32b['creator']));}(_0x22b57b,_0x3ee656);this['id']=_0x3ee656['id'],this['_revision']=_0x3ee656,this['_requireRevisionName']=_0x248102,this['bind']('name','createdAt')['to'](_0x3ee656),this['bind']('_createdAtFormatted')['to'](this,'createdAt',_0x45b836=>{return _0x45d4b5=_0x22b57b['uiLanguage'],(_0x25546a=_0x45b836)['toLocaleDateString'](_0x45d4b5,{'month':'long','day':'numeric'})+',\x20'+_0x25546a['toLocaleTimeString'](_0x45d4b5,{'hour':'numeric','minute':'numeric'});var _0x45d4b5,_0x25546a;}),this['set']('isSelected',!0x1),this['set']('isHighlighted',!0x1),this['set']('isActionsDropdownOpen',!0x1),this['set']('isReady',!0x1),this['set']('isEnabled',!0x1),this['revisionNameView']=new mt(_0x22b57b,_0xe78c44),this['revisionNameView']['fieldView']['extendTemplate']({'attributes':{'maxlength':'220'}}),this['revisionNameView']['fieldView']['bind']('value')['to'](this,'name',_0x161123=>_0x161123||this['_createdAtFormatted']),this['revisionNameView']['bind']('isEnabled')['to'](this,'isSelected',this,'isEnabled',(_0x23a7f0,_0x335f8c)=>_0x23a7f0&&_0x335f8c),this['revisionActionsView']=_0x1c9b8c&&_0x1c9b8c['length']?ni(this,_0x1c9b8c):'',this['revisionActionsView']&&this['revisionActionsView']['bind']('isEnabled')['to'](this),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision-wrapper',_0x3b7dba['if']('isConfirm','ck-revision-history-sidebar__revision-wrapper_confirmation_visible')]},'children':[{'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision',_0x3b7dba['if']('isEnabled','ck-disabled',_0x483e61=>!_0x483e61),_0x3b7dba['if']('isSelected','ck-revision-history-sidebar__revision_selected'),_0x3b7dba['if']('isHighlighted','ck-revision-history-sidebar__revision_highlighted'),_0x3b7dba['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':_0x3b7dba['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':_0x1b66ef}]},this['revisionActionsView']],'on':{'click':_0x3b7dba['to'](_0x2a5aea=>{_0x2a5aea['srcElement']['closest']('.ck-thread__remove-confirm')||this['isReady']&&this['isEnabled']&&this['fire']('select',{'id':this['id']});})}}]});}['render'](){super['render']();const _0x30d301=this['revisionNameView']['fieldView']['element'];this['listenTo'](_0x30d301,'change',()=>{this['_requireRevisionName']&&!_0x30d301['value']||this['fire']('setName',{'id':this['id'],'name':_0x30d301['value']}),_0x30d301['value']||(_0x30d301['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(_0x454a5a,_0x4fb8af){const _0x1311c5=_0x1543f7['fromJSDate'](_0x454a5a)['setLocale'](_0x4fb8af),_0x260966=_0x1543f7['local'](),_0x23f856=_0x260966['minus']({'days':0x1})['startOf']('day');let _0x2c3d3f,_0x516996;return _0x1311c5['hasSame'](_0x260966,'day')?(_0x2c3d3f=_0x1311c5['startOf']('day')['toJSDate'](),_0x516996=_0x1311c5['toRelativeCalendar']()):_0x1311c5['hasSame'](_0x23f856,'day')?(_0x2c3d3f=_0x23f856['toJSDate'](),_0x516996=_0x1311c5['toRelativeCalendar']()):_0x1311c5['hasSame'](_0x260966,'week')?(_0x2c3d3f=_0x1311c5['startOf']('week')['toJSDate'](),_0x516996=_0x1311c5['weekdayLong']||''):_0x1311c5['hasSame'](_0x260966,'year')?(_0x2c3d3f=_0x1311c5['startOf']('month')['toJSDate'](),_0x516996=_0x1311c5['monthLong']||''):(_0x2c3d3f=_0x1311c5['startOf']('year')['toJSDate'](),_0x516996=String(_0x1311c5['year'])),{'startDate':_0x2c3d3f,'localizedPeriodName':_0x516996};}class mi extends _0x316821{['startDate'];['revisionViews'];['_revisionActions'];['_requireRevisionName'];constructor(_0x14d248,_0x2e95da,_0x1fd0a2,_0x5aabe7){super(_0x14d248);const _0x2d9889=di(_0x2e95da,this['locale']['uiLanguage'])['localizedPeriodName'];this['startDate']=_0x2e95da,this['revisionViews']=this['createCollection'](),this['_revisionActions']=_0x1fd0a2,this['_requireRevisionName']=_0x5aabe7,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':_0x2d9889}]},{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__time-period__revisions']},'children':this['revisionViews']}]});}['addRevision'](_0x1c9cf8){const _0x163d78=new ai(this['locale'],_0x1c9cf8,this['_revisionActions'],this['_requireRevisionName']);this['revisionViews']['add'](_0x163d78);}['removeRevision'](_0x3486dd){const _0x4ab0a7=this['revisionViews']['find'](_0x3925fd=>_0x3925fd['id']===_0x3486dd['id']);this['revisionViews']['remove'](_0x4ab0a7);}}class rs extends _0x316821{constructor(_0x453492){super(_0x453492);const _0x15f0bc=new _0x5841c1();_0x15f0bc['content']=_0x242327['history'],this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all','ck-revision-history-sidebar__header']},'children':[_0x15f0bc,{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__header__label']},'children':[R(_0x453492,'Revision\x20history')]}]});}}class ci extends _0x316821{['timePeriodViews'];['_revisions'];['_revisionActions'];['_requireRevisionName'];constructor(_0x367494,_0x3f63fc,_0x4b0f3e,_0x2f983d){super(_0x367494);const _0x65b8da=this['bindTemplate'];this['timePeriodViews']=this['createCollection'](),this['timePeriodViews']['delegate']('select')['to'](this),this['timePeriodViews']['delegate']('setName')['to'](this),this['_revisions']=_0x3f63fc,this['_revisionActions']=_0x4b0f3e,this['_requireRevisionName']=_0x2f983d,this['on']('select',(_0x33c162,_0x4189ec)=>{this['fire']('revisionSelected',_0x4189ec);}),this['on']('setName',(_0x4a6ab1,_0x1f1f02)=>{this['fire']('revisionSetName',_0x1f1f02);}),this['set']('isEnabled',!0x1),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-rounded-corners','ck-revision-history-sidebar']},'children':[new rs(_0x367494),{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__timeline',_0x65b8da['if']('isEnabled','ck-disabled',_0x45328c=>!_0x45328c)]},'children':this['timePeriodViews']}]});}['render'](){super['render']();for(const _0xe8593 of this['_revisions'])this['_addRevision'](_0xe8593);this['_revisions']['on']('add',(_0x544fa1,_0x3b7c8c)=>{this['_addRevision'](_0x3b7c8c);}),this['_revisions']['on']('remove',(_0x4a9ffb,_0xae82ce)=>{this['_removeRevision'](_0xae82ce);});}get['revisionViews'](){return this['timePeriodViews']['map'](_0x284aa6=>_0x284aa6['revisionViews']['map'](_0x503dad=>_0x503dad))['flat']();}['selectRevision'](_0x541971){for(const _0xa0b8b2 of this['revisionViews'])_0x541971&&_0x541971['id']===_0xa0b8b2['id']?_0xa0b8b2['select']():_0xa0b8b2['deselect']();}['highlightRevisions'](_0x41997d){for(const _0x2d4a16 of this['revisionViews'])_0x41997d['some'](({id:_0x44314a})=>_0x44314a===_0x2d4a16['id'])?_0x2d4a16['highlight']():_0x2d4a16['unhighlight']();}['_addRevision'](_0x2af10a){const _0x58db9f=di(_0x2af10a['createdAt'],this['locale']['uiLanguage'])['startDate'];let _0x2489ac=this['timePeriodViews']['get'](0x0);_0x2489ac&&_0x2489ac['startDate']['getTime']()===_0x58db9f['getTime']()||(_0x2489ac=new mi(this['locale'],_0x58db9f,this['_revisionActions'],this['_requireRevisionName']),this['timePeriodViews']['add'](_0x2489ac)),_0x2489ac['addRevision'](_0x2af10a);}['_removeRevision'](_0x276178){const _0x17566b=di(_0x276178['createdAt'],this['locale']['uiLanguage'])['startDate'];this['_getTimePeriodViewByStartDate'](_0x17566b)['removeRevision'](_0x276178);}['_getTimePeriodViewByStartDate'](_0x41e102){return this['timePeriodViews']['find'](_0x420cf1=>_0x420cf1['startDate']['getTime']()===_0x41e102['getTime']());}}class g extends _0x4d79c3{['_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(_0x38b6b2){super(_0x38b6b2),this['_revisionViewer']=_0x38b6b2['plugins']['get'](d),this['_revisionsRepository']=this['_revisionViewer']['repository'],this['_sidebarView']=null;}['init'](){const _0x1239f6=this['_revisionsRepository']['_revisions'],_0x7b5e5=this['_createRevisionActions'](),_0xa89ee5=this['editor']['config']['get']('revisionHistory.viewerSidebarContainer');this['_sidebarView']=new ni(this['editor']['locale'],_0x1239f6,_0x7b5e5,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',(_0x364f12,_0x2af4b8)=>{_0x2af4b8['revisionViews']['on']('add',(_0x12b550,_0x3cafbc)=>{_0x3cafbc['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)),_0xa89ee5['appendChild'](this['_sidebarView']['element']);}['destroy'](){this['_sidebarView']['element']['remove'](),this['_sidebarView']['destroy']();}['_handleEditorDataReady'](){const _0x101304=this['_revisionsRepository']['getRevision'](0x0);if(_0x101304){const _0x343359=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x101304['id']);this['_revisionViewer']['compare'](_0x101304,_0x343359);}}['_handleRevisionSelected'](_0x122b0c,_0x54b280){const _0x5b0728=this['_revisionsRepository']['getRevision'](_0x54b280['id']),_0x456db9=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x5b0728['id']);this['_revisionViewer']['compare'](_0x5b0728,_0x456db9);}['_handleRevisionSetName'](_0x4bb588,_0x3770f9){this['_revisionsRepository']['getRevision'](_0x3770f9['id'])['setName'](_0x3770f9['name']);}['_handleDiffChange'](_0x2629b5,_0x560f8c,_0xe14558){const _0x202897=this['_revisionsRepository']['getRevisionsInDiff'](_0xe14558);_0x202897['length']>0x2?(this['_sidebarView']['highlightRevisions'](_0x202897),this['_sidebarView']['selectRevision'](null)):(this['_sidebarView']['highlightRevisions']([]),this['_sidebarView']['selectRevision'](_0x202897[0x0]));}['_createRevisionActions'](){const _0x4f2fd8=this['editor'],_0x3355a4=g['availableRevisionActions'],_0x105b81=_0x4f2fd8['config']['get']('revisionHistory.revisionActions')||g['defaultRevisionActions'];if(_0x105b81['length'])return _0x105b81['map'](_0xf6c034=>{const _0x303ff4='string'==typeof _0xf6c034?Object['assign']({},_0x3355a4[_0xf6c034]):_0xf6c034;return _0x303ff4['action']=_0x303ff4['action']['bind'](this,_0x4f2fd8),_0x303ff4['isVisible']&&(_0x303ff4['isVisible']=_0x303ff4['isVisible']['bind'](this,_0x4f2fd8)),_0x303ff4;});}}function bt(){return{'compareAgainstSelected':{'name':'Compare\x20against\x20selected','action':({plugins:_0x54864c},_0x119120)=>{const _0x187bcd=_0x54864c['get'](d),_0x2a480f=_0x187bcd['repository'];let _0x35cb3f=_0x187bcd['diff']['newRevisionId'],_0x143274=_0x119120['id'];_0x2a480f['getIndex'](_0x35cb3f)>_0x2a480f['getIndex'](_0x143274)&&([_0x35cb3f,_0x143274]=[_0x143274,_0x35cb3f]),_0x187bcd['compare'](_0x35cb3f,_0x143274);},'isVisible':({plugins:_0x550666},_0x1d5baf)=>{const _0x307bbf=_0x550666['get'](d);return!(_0x307bbf['repository']['getRevisionsInDiff'](_0x307bbf['diff'])['length']>0x2)&&!_0x1d5baf['isSelected'];}},'restoreRevision':{'name':'Restore\x20this\x20revision','action':(_0x12c3f8,{id:_0x351b0a})=>{_0x12c3f8['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x351b0a);},'isVisible':({plugins:_0x18f8fd},_0xe59728)=>!!_0x18f8fd['get'](d)['repository']['getLaterVisibleRevision'](_0xe59728['id'])},'nameRevision':{'name':'Name\x20this\x20revision','action':({plugins:_0x49356c},{id:_0x39664f,revisionNameView:_0x41e2c8})=>{const _0x142e75=_0x49356c['get'](d),_0x16a847=_0x142e75['repository']['getEarlierVisibleRevision'](_0x39664f);_0x142e75['compare'](_0x39664f,_0x16a847),_0x41e2c8['focus'](),_0x41e2c8['fieldView']['select']();}}};}class et extends ot{['_view'];['_toolbarConfig'];['_elementReplacer'];get['view'](){return this['_view'];}constructor(_0x4dca8a,_0x432917){super(_0x4dca8a),this['_view']=_0x432917,this['_toolbarConfig']=ht(_0x4dca8a['config']['get']('toolbar')),this['_elementReplacer']=new ct();}get['element'](){return this['view']['element'];}['init'](_0x195b7e){const _0x325726=this['editor'],_0x4e28d4=this['view'],_0xc9ecf8=_0x325726['editing']['view'],_0x168877=_0x4e28d4['editable'],_0x43c0da=_0xc9ecf8['document']['getRoot']();_0x168877['name']=_0x43c0da['rootName'],_0x4e28d4['render']();const _0x429651=_0x168877['element'];this['setEditableElement'](_0x168877['name'],_0x429651),_0x4e28d4['editable']['bind']('isFocused')['to'](this['focusTracker']),_0xc9ecf8['attachDomRoot'](_0x429651),this['_elementReplacer']['replace'](_0x195b7e,this['element']),this['_initToolbar'](),this['fire']('ready');}['destroy'](){super['destroy']();const _0x4ec049=this['view'],_0x41d717=this['editor']['editing']['view'];this['_elementReplacer']['restore'](),_0x41d717['detachDomRoot'](_0x4ec049['editable']['name']),_0x4ec049['destroy']();}['_initToolbar'](){const _0x2e8d76=this['view'];_0x2e8d76['stickyPanel']['bind']('isActive')['to'](this['focusTracker'],'isFocused'),_0x2e8d76['stickyPanel']['limiterElement']=_0x2e8d76['element'],_0x2e8d76['stickyPanel']['bind']('viewportTopOffset')['to'](this,'viewportOffset',({top:_0x251ad0})=>_0x251ad0),_0x2e8d76['toolbar']['fillFromConfig'](this['_toolbarConfig'],this['componentFactory']),this['addToolbar'](_0x2e8d76['toolbar']);}}class st extends dt{['_editable'];['stickyPanel'];['toolbar'];get['editable'](){return this['_editable'];}constructor(_0x4bdbcd,_0x1f64e2,_0x5eb0c9={}){super(_0x4bdbcd),this['stickyPanel']=new lt(_0x4bdbcd),this['toolbar']=new nt(_0x4bdbcd,{'shouldGroupWhenFull':_0x5eb0c9['shouldToolbarGroupWhenFull']}),this['_editable']=new ut(_0x4bdbcd,_0x1f64e2);}['render'](){super['render'](),this['stickyPanel']['content']['add'](this['toolbar']),this['top']['add'](this['stickyPanel']),this['main']['add'](this['editable']);}}class w extends/* #__PURE__ -- @preserve */
29
- rt(it){['_ui'];get['ui'](){return this['_ui'];}constructor(_0x139b98,_0x74f8f7){super(_0x74f8f7),this['sourceElement']=_0x139b98,this['model']['document']['createRoot']();const _0x31ab5d=new st(this['locale'],this['editing']['view'],{'shouldToolbarGroupWhenFull':!0x0});this['_ui']=new et(this,_0x31ab5d);}['destroy'](){return this['updateSourceElement'](),this['ui']['destroy'](),super['destroy']();}static async['create'](_0x5f0aee,_0xe09b8a){const _0x3f360e=new this(_0x5f0aee,_0xe09b8a);return await _0x3f360e['initPlugins'](),await _0x3f360e['ui']['init'](_0x5f0aee),await _0x3f360e['data']['init'](_0x3f360e['config']['get']('initialData')||''),_0x3f360e['fire']('ready'),_0x3f360e;}}const p=['RevisionHistoryUI','RestrictedEditingMode'];class k extends _0x12191e{['result'];static get['pluginName'](){return'RevisionViewerIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x4a8e89){function _0x2afeac(_0x559a59){return _0x559a59['map'](_0x503595=>String['fromCharCode'](_0x503595))['join']('');}super(_0x4a8e89),this['result']='end',_0x4a8e89[_0x2afeac([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2afeac([0x76,0x69,0x65,0x77])][_0x2afeac([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x2afeac([0x61,0x75,0x74,0x6f]),_0x4a8e89[_0x2afeac([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x2afeac([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x2afeac([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x2afeac([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x2afeac([0x6f,0x6b])});}}class H extends _0x12191e{['_viewerEditor'];static get['pluginName'](){return'RevisionHistory';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[l,u];}constructor(_0x23142c){if(super(_0x23142c),!this['editor']['config']['get']('revisionHistory'))throw new _0x2a222f('revision-history-missing-configuration',this);this['_viewerEditor']=null,this['editor']['config']['define']('revisionHistory.showRevisionViewerCallback',_0x3f3c56=>this['_showRevisionViewer']({..._0x3f3c56,'translations':this['editor']['locale']['translations']})),this['editor']['config']['define']('revisionHistory.closeRevisionViewerCallback',_0x57bd8f=>this['_closeRevisionViewer'](_0x57bd8f)),this['editor']['config']['define']('revisionHistory.restoreRevisionCallback',_0x35f1ec=>this['_restoreRevision'](_0x35f1ec)),this['editor']['config']['define']('revisionHistory.requireRevisionName',!0x1),this['_enhanceShowRevisionViewerCallback'](),this['_enhanceCloseRevisionViewerCallback']();}set['adapter'](_0x1b62c7){this['editor']['plugins']['get']('RevisionTracker')['adapter']=_0x1b62c7;}get['adapter'](){return this['editor']['plugins']['get']('RevisionTracker')['adapter'];}['addRevisionData'](_0x114bdb){return this['editor']['plugins']['get']('RevisionTracker')['addRevisionData'](_0x114bdb);}['getRevision'](_0x5be0b6){return this['editor']['plugins']['get']('RevisionsRepository')['getRevision'](_0x5be0b6);}['getRevisions'](_0x8d3c5){return this['editor']['plugins']['get']('RevisionsRepository')['getRevisions'](_0x8d3c5||{'toJSON':!0x1});}['_getRevisionViewerEditorConfig'](){const _0x19663e=this['editor'],_0x59f5f4=_0x356ec2(_0x19663e,p),_0x441bde=_0x19663e['plugins']['get']('RevisionTracker'),_0x5615bb=_0x19663e['plugins']['get']('Users')['users'];return _0x59f5f4['toolbar']=['exitToEditing','restoreRevision','changesNavigation'],delete _0x59f5f4['lazyRoots'],(_0x59f5f4['plugins']['push'](k,d,m,class extends _0x12191e{static get['requires'](){return[d,'Users'];}['init'](){const _0x5dfa39=this['editor']['plugins']['get']('Users');for(const _0x47d9b8 of _0x5615bb)_0x47d9b8['isAnonymous']||_0x5dfa39['getUser'](_0x47d9b8['id'])||_0x5dfa39['addUser'](_0x47d9b8);const _0x5b2bf6=_0x441bde['repository']['getRevisions']();let _0x46fd9b=null;const _0x16080a=this['editor']['plugins']['get']('RevisionViewer');_0x16080a['adapter']=_0x441bde['adapter'],_0x16080a['bind']('isEnabled')['to'](_0x441bde),this['editor']['commands']['get']('restoreRevision')['bind']('isEnabled')['to'](_0x19663e,'isReadOnly',_0xbb90c0=>!_0xbb90c0);for(const _0x10ac0b of _0x5b2bf6){const _0x191172=null===_0x10ac0b['creator'];if(_0x191172&&_0x10ac0b['toVersion']===_0x10ac0b['fromVersion'])continue;const _0x3fe338=_0x10ac0b['toJSON']();_0x16080a['addRevisionData'](_0x3fe338,(_0x14b82b,_0x41f531,_0x527144)=>{if(_0x191172){if(_0x46fd9b)_0x46fd9b['_update'](_0x14b82b,_0x41f531);else{if(!_0x41f531){const _0x17fe40=_0x527144['toJSON']();_0x17fe40['id']=_0xa605c(),_0x441bde['saveRevision'](_0x17fe40,_0x527144['toVersion'])['then'](_0x579021=>{_0x46fd9b=_0x579021;});}}}else _0x10ac0b['_update'](_0x14b82b,_0x41f531);});}}},g),_0x59f5f4);}['_enhanceShowRevisionViewerCallback'](){const _0x37a1f6=this['editor']['config']['get']('revisionHistory')['showRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.showRevisionViewerCallback',async()=>{this['editor']['enableReadOnlyMode']('revision-history-viewer-opened');const _0x1696cd=this['editor']['plugins']['get']('RevisionTracker');if(this['editor']['plugins']['has']('Autosave')){const _0x51303d=this['editor']['plugins']['get']('Autosave');await _0x51303d['save']();}else await _0x1696cd['update']();if(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('Dialog')){const _0x6a9035=this['editor']['plugins']['get']('Dialog');_0x6a9035['isOpen']&&_0x6a9035['hide']();}const _0x4f2a65=this['_getRevisionViewerEditorConfig']();return _0x37a1f6(_0x4f2a65)['then'](_0x4b3f79=>{return(this['_viewerEditor']=_0x4b3f79,this['editor']['plugins']['has']('Annotations'))&&this['editor']['plugins']['get']('Annotations')['refreshVisibility'](),_0x4b3f79;})['catch'](_0x24df8d=>(console['error'](_0x24df8d),this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),null));});}['_enhanceCloseRevisionViewerCallback'](){const _0x207848=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'](),_0x207848(this['_viewerEditor'])['then'](()=>{if(this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),this['_viewerEditor']=null,this['editor']['plugins']['has']('Annotations')){const _0x5f5e0b=this['editor']['plugins']['get']('Annotations');_0x5f5e0b['refreshVisibility'](),_0x5f5e0b['refreshPositioning']();}})));}['_showRevisionViewer'](_0x37d9d9){const _0x252f73=this['editor']['config']['get']('revisionHistory.editorContainer'),_0x42184b=this['editor']['config']['get']('revisionHistory.viewerContainer'),_0x5ba52a=this['editor']['config']['get']('revisionHistory.viewerEditorElement');return w['create'](_0x5ba52a,_0x37d9d9)['then'](_0x14428b=>(_0x42184b['style']['display']='block',_0x252f73['style']['display']='none',_0x14428b));}['_closeRevisionViewer'](_0x2e06a5){const _0x2b9120=this['editor']['config']['get']('revisionHistory.editorContainer');return this['editor']['config']['get']('revisionHistory.viewerContainer')['style']['display']='none',_0x2b9120['style']['display']='',_0x2e06a5['destroy']();}async['_restoreRevision'](_0x3bc44f){const _0x51a0fc=this['editor'],_0x457513=this['_viewerEditor']['plugins']['get']('RevisionViewer'),_0x3a7f82=_0x51a0fc['plugins']['get']('RevisionTracker'),_0x5af9ce=_0x457513['repository']['getRevision'](_0x3bc44f);let _0x1f4ca5,_0x3ae5f6,_0x4f2d01;try{_0x1f4ca5=await _0x457513['getRevisionData'](_0x5af9ce),_0x3ae5f6=await _0x457513['getRevisionRootsAttributes'](_0x5af9ce);}catch(_0x4c5311){return void console['error'](_0x4c5311);}_0x51a0fc['model']['change'](_0x21cc8e=>{for(const _0x2d2d47 of Array['from'](_0x51a0fc['model']['markers']['getMarkersGroup']('restrictedEditingException')))_0x21cc8e['removeMarker'](_0x2d2d47);}),_0x457513['isReady']=!0x1,_0x51a0fc['model']['enqueueChange'](_0x32f427=>{_0x32f427['setSelection'](null),_0x32f427['removeSelectionAttribute'](_0x51a0fc['model']['document']['selection']['getAttributeKeys']());const _0x5112bb=Object['keys'](_0x1f4ca5);for(const _0x579651 of _0x51a0fc['model']['document']['roots'])'$graveyard'!=_0x579651['rootName']&&_0x579651['isAttached']()&&!_0x5112bb['includes'](_0x579651['rootName'])&&_0x32f427['detachRoot'](_0x579651);for(const _0x36f4a3 of _0x5112bb){let _0x4e6df1=_0x51a0fc['model']['document']['getRoot'](_0x36f4a3);_0x4e6df1&&_0x4e6df1['isAttached']()||(_0x4e6df1=_0x32f427['addRoot'](_0x36f4a3));const _0xdd8335=_0x3ae5f6[_0x36f4a3],_0x20b815=Object['keys'](_0xdd8335),_0x5497fb=_0x1f4ca5[_0x36f4a3];for(const _0x240627 of _0x4e6df1['getAttributeKeys']())_0x20b815['includes'](_0x240627)||_0x32f427['removeAttribute'](_0x240627,_0x4e6df1);for(const _0x505579 of _0x20b815)_0x32f427['setAttribute'](_0x505579,_0x3ae5f6[_0x36f4a3][_0x505579],_0x4e6df1);_0x32f427['remove'](_0x32f427['createRangeIn'](_0x4e6df1)),_0x32f427['insert'](_0x51a0fc['data']['parse'](_0x5497fb,_0x4e6df1),_0x4e6df1,0x0);}});const _0x58ee97=R(_0x51a0fc['locale'],'Restored');if(_0x5af9ce['name'])_0x4f2d01=-0x1==_0x5af9ce['name']['indexOf'](_0x58ee97)?_0x58ee97+':\x20'+_0x5af9ce['name']:_0x5af9ce['name'];else _0x4f2d01=_0x58ee97+':\x20'+(_0x5af9ce['createdAt']['toLocaleDateString'](_0x51a0fc['locale']['uiLanguage'],{'month':'long','day':'numeric'})+',\x20'+_0x5af9ce['createdAt']['toLocaleTimeString'](_0x51a0fc['locale']['uiLanguage'],{'hour':'numeric','minute':'numeric'}));return await _0x3a7f82['saveRevision']({'name':_0x4f2d01}),_0x457513['isReady']=!0x0,_0x51a0fc['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}}export{a as Revision,H as RevisionHistory,u as RevisionHistoryUI,l as RevisionTracker,d as RevisionViewer,de as RevisionViewerLoadingOverlay,m as RevisionViewerUI,j as RevisionsRepository,g as RevisionsSidebar};
28
+ Rt();static get['pluginName'](){return'RevisionsSidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[d];}constructor(_0x3b5786){super(_0x3b5786),this['_revisionViewer']=_0x3b5786['plugins']['get'](d),this['_revisionsRepository']=this['_revisionViewer']['repository'],this['_sidebarView']=null;}['init'](){const _0x7825eb=this['_revisionsRepository']['_revisions'],_0x15b3b4=this['_createRevisionActions'](),_0x218e6f=this['editor']['config']['get']('revisionHistory.viewerSidebarContainer');this['_sidebarView']=new ci(this['editor']['locale'],_0x7825eb,_0x15b3b4,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',(_0xbf7fee,_0x2ebe17)=>{_0x2ebe17['revisionViews']['on']('add',(_0x34b5ce,_0xf00774)=>{_0xf00774['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)),_0x218e6f['appendChild'](this['_sidebarView']['element']);}['destroy'](){this['_sidebarView']['element']['remove'](),this['_sidebarView']['destroy']();}['_handleEditorDataReady'](){const _0x399c83=this['_revisionsRepository']['getRevision'](0x0);if(_0x399c83){const _0x5d6aa5=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x399c83['id']);this['_revisionViewer']['compare'](_0x399c83,_0x5d6aa5);}}['_handleRevisionSelected'](_0x6e87d2,_0x35b29f){const _0x490ce3=this['_revisionsRepository']['getRevision'](_0x35b29f['id']),_0x34141a=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x490ce3['id']);this['_revisionViewer']['compare'](_0x490ce3,_0x34141a);}['_handleRevisionSetName'](_0xa7b1a1,_0x4615fe){this['_revisionsRepository']['getRevision'](_0x4615fe['id'])['setName'](_0x4615fe['name']);}['_handleDiffChange'](_0x10af4f,_0x694a64,_0x291d74){const _0x17165a=this['_revisionsRepository']['getRevisionsInDiff'](_0x291d74);_0x17165a['length']>0x2?(this['_sidebarView']['highlightRevisions'](_0x17165a),this['_sidebarView']['selectRevision'](null)):(this['_sidebarView']['highlightRevisions']([]),this['_sidebarView']['selectRevision'](_0x17165a[0x0]));}['_createRevisionActions'](){const _0x3fc4b=this['editor'],_0x3d514a=g['availableRevisionActions'],_0x4dc7fe=_0x3fc4b['config']['get']('revisionHistory.revisionActions')||g['defaultRevisionActions'];if(_0x4dc7fe['length'])return _0x4dc7fe['map'](_0x3c8af6=>{const _0x40ce05='string'==typeof _0x3c8af6?Object['assign']({},_0x3d514a[_0x3c8af6]):_0x3c8af6;return _0x40ce05['action']=_0x40ce05['action']['bind'](this,_0x3fc4b),_0x40ce05['isVisible']&&(_0x40ce05['isVisible']=_0x40ce05['isVisible']['bind'](this,_0x3fc4b)),_0x40ce05;});}}function Rt(){return{'compareAgainstSelected':{'name':'Compare\x20against\x20selected','action':({plugins:_0xd4d4ee},_0x2db15d)=>{const _0x4dfe36=_0xd4d4ee['get'](d),_0x3973bf=_0x4dfe36['repository'];let _0x1fc944=_0x4dfe36['diff']['newRevisionId'],_0x27f4f3=_0x2db15d['id'];_0x3973bf['getIndex'](_0x1fc944)>_0x3973bf['getIndex'](_0x27f4f3)&&([_0x1fc944,_0x27f4f3]=[_0x27f4f3,_0x1fc944]),_0x4dfe36['compare'](_0x1fc944,_0x27f4f3);},'isVisible':({plugins:_0x4a13ed},_0x35272d)=>{const _0x4f2eb8=_0x4a13ed['get'](d);return!(_0x4f2eb8['repository']['getRevisionsInDiff'](_0x4f2eb8['diff'])['length']>0x2)&&!_0x35272d['isSelected'];}},'restoreRevision':{'name':'Restore\x20this\x20revision','action':(_0x3fdb05,{id:_0x373e19})=>{_0x3fdb05['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x373e19);},'isVisible':({plugins:_0x31ac0c},_0x1ce354)=>!!_0x31ac0c['get'](d)['repository']['getLaterVisibleRevision'](_0x1ce354['id'])},'nameRevision':{'name':'Name\x20this\x20revision','action':({plugins:_0x424b29},{id:_0x416c18,revisionNameView:_0x676db})=>{const _0x5c3d6f=_0x424b29['get'](d),_0x48bcc3=_0x5c3d6f['repository']['getEarlierVisibleRevision'](_0x416c18);_0x5c3d6f['compare'](_0x416c18,_0x48bcc3),_0x676db['focus'](),_0x676db['fieldView']['select']();}}};}class et extends ot{['_view'];['_toolbarConfig'];['_elementReplacer'];get['view'](){return this['_view'];}constructor(_0x565604,_0x366b75){super(_0x565604),this['_view']=_0x366b75,this['_toolbarConfig']=ht(_0x565604['config']['get']('toolbar')),this['_elementReplacer']=new ct();}get['element'](){return this['view']['element'];}['init'](_0x2ce477){const _0x3ff593=this['editor'],_0x3475d7=this['view'],_0x28e092=_0x3ff593['editing']['view'],_0x3d110a=_0x3475d7['editable'],_0x2c61c5=_0x28e092['document']['getRoot']();_0x3d110a['name']=_0x2c61c5['rootName'],_0x3475d7['render']();const _0x11bf51=_0x3d110a['element'];this['setEditableElement'](_0x3d110a['name'],_0x11bf51),_0x3475d7['editable']['bind']('isFocused')['to'](this['focusTracker']),_0x28e092['attachDomRoot'](_0x11bf51),this['_elementReplacer']['replace'](_0x2ce477,this['element']),this['_initToolbar'](),this['fire']('ready');}['destroy'](){super['destroy']();const _0x1f5dae=this['view'],_0x32f8a4=this['editor']['editing']['view'];this['_elementReplacer']['restore'](),_0x32f8a4['detachDomRoot'](_0x1f5dae['editable']['name']),_0x1f5dae['destroy']();}['_initToolbar'](){const _0x5e3f12=this['view'];_0x5e3f12['stickyPanel']['bind']('isActive')['to'](this['focusTracker'],'isFocused'),_0x5e3f12['stickyPanel']['limiterElement']=_0x5e3f12['element'],_0x5e3f12['stickyPanel']['bind']('viewportTopOffset')['to'](this,'viewportOffset',({top:_0x1ddd8b})=>_0x1ddd8b),_0x5e3f12['toolbar']['fillFromConfig'](this['_toolbarConfig'],this['componentFactory']),this['addToolbar'](_0x5e3f12['toolbar']);}}class st extends dt{['_editable'];['stickyPanel'];['toolbar'];get['editable'](){return this['_editable'];}constructor(_0x4fe69b,_0x4931a8,_0xa31457={}){super(_0x4fe69b),this['stickyPanel']=new lt(_0x4fe69b),this['toolbar']=new nt(_0x4fe69b,{'shouldGroupWhenFull':_0xa31457['shouldToolbarGroupWhenFull']}),this['_editable']=new ut(_0x4fe69b,_0x4931a8);}['render'](){super['render'](),this['stickyPanel']['content']['add'](this['toolbar']),this['top']['add'](this['stickyPanel']),this['main']['add'](this['editable']);}}class w extends/* #__PURE__ -- @preserve */
29
+ rt(it){['_ui'];get['ui'](){return this['_ui'];}constructor(_0x35e75e,_0x4ab70c){super(_0x4ab70c),this['sourceElement']=_0x35e75e,this['model']['document']['createRoot']();const _0x24347e=new st(this['locale'],this['editing']['view'],{'shouldToolbarGroupWhenFull':!0x0});this['_ui']=new et(this,_0x24347e);}['destroy'](){return this['updateSourceElement'](),this['ui']['destroy'](),super['destroy']();}static async['create'](_0x45dcb5,_0x3c97a9){const _0x2c5ea0=new this(_0x45dcb5,_0x3c97a9);return await _0x2c5ea0['initPlugins'](),await _0x2c5ea0['ui']['init'](_0x45dcb5),await _0x2c5ea0['data']['init'](_0x2c5ea0['config']['get']('initialData')||''),_0x2c5ea0['fire']('ready'),_0x2c5ea0;}}const p=['RevisionHistoryUI','RestrictedEditingMode'];class k extends _0x4d79c3{['result'];static get['pluginName'](){return'RevisionViewerIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x40f5af){function _0x37b6f3(_0x117ee7){return _0x117ee7['map'](_0x347b4a=>String['fromCharCode'](_0x347b4a))['join']('');}super(_0x40f5af),this['result']='end',_0x40f5af[_0x37b6f3([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x37b6f3([0x76,0x69,0x65,0x77])][_0x37b6f3([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x37b6f3([0x61,0x75,0x74,0x6f]),_0x40f5af[_0x37b6f3([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x37b6f3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x37b6f3([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x37b6f3([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x37b6f3([0x6f,0x6b])});}}class H extends _0x4d79c3{['_viewerEditor'];static get['pluginName'](){return'RevisionHistory';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[l,u];}constructor(_0xc04785){if(super(_0xc04785),!this['editor']['config']['get']('revisionHistory'))throw new _0x3df807('revision-history-missing-configuration',this);this['_viewerEditor']=null,this['editor']['config']['define']('revisionHistory.showRevisionViewerCallback',_0x33fdaa=>this['_showRevisionViewer']({..._0x33fdaa,'translations':this['editor']['locale']['translations']})),this['editor']['config']['define']('revisionHistory.closeRevisionViewerCallback',_0x4b7745=>this['_closeRevisionViewer'](_0x4b7745)),this['editor']['config']['define']('revisionHistory.restoreRevisionCallback',_0x32d7e4=>this['_restoreRevision'](_0x32d7e4)),this['editor']['config']['define']('revisionHistory.requireRevisionName',!0x1),this['_enhanceShowRevisionViewerCallback'](),this['_enhanceCloseRevisionViewerCallback']();}set['adapter'](_0x4d2e50){this['editor']['plugins']['get']('RevisionTracker')['adapter']=_0x4d2e50;}get['adapter'](){return this['editor']['plugins']['get']('RevisionTracker')['adapter'];}['addRevisionData'](_0x344ba6){return this['editor']['plugins']['get']('RevisionTracker')['addRevisionData'](_0x344ba6);}['getRevision'](_0x244279){return this['editor']['plugins']['get']('RevisionsRepository')['getRevision'](_0x244279);}['getRevisions'](_0x415698){return this['editor']['plugins']['get']('RevisionsRepository')['getRevisions'](_0x415698||{'toJSON':!0x1});}['_getRevisionViewerEditorConfig'](){const _0x41c201=this['editor'],_0x594258=_0x2b5783(_0x41c201,p),_0x5b8157=_0x41c201['plugins']['get']('RevisionTracker'),_0x38acad=_0x41c201['plugins']['get']('Users')['users'];return _0x594258['toolbar']=['exitToEditing','restoreRevision','changesNavigation'],delete _0x594258['lazyRoots'],(_0x594258['plugins']['push'](k,d,m,class extends _0x4d79c3{static get['requires'](){return[d,'Users'];}['init'](){const _0x1a52ee=this['editor']['plugins']['get']('Users');for(const _0x66a228 of _0x38acad)_0x66a228['isAnonymous']||_0x1a52ee['getUser'](_0x66a228['id'])||_0x1a52ee['addUser'](_0x66a228);const _0x9f65fd=_0x5b8157['repository']['getRevisions']();let _0x5a325d=null;const _0x196451=this['editor']['plugins']['get']('RevisionViewer');_0x196451['adapter']=_0x5b8157['adapter'],_0x196451['bind']('isEnabled')['to'](_0x5b8157),this['editor']['commands']['get']('restoreRevision')['bind']('isEnabled')['to'](_0x41c201,'isReadOnly',_0x4e737d=>!_0x4e737d);for(const _0x3e4061 of _0x9f65fd){const _0x2fecde=null===_0x3e4061['creator'];if(_0x2fecde&&_0x3e4061['toVersion']===_0x3e4061['fromVersion'])continue;const _0x4b2f45=_0x3e4061['toJSON']();_0x196451['addRevisionData'](_0x4b2f45,(_0x121d8e,_0xe7461f,_0x2adfc2)=>{if(_0x2fecde){if(_0x5a325d)_0x5a325d['_update'](_0x121d8e,_0xe7461f);else{if(!_0xe7461f){const _0x49c1ca=_0x2adfc2['toJSON']();_0x49c1ca['id']=_0x20cbb6(),_0x5b8157['saveRevision'](_0x49c1ca,_0x2adfc2['toVersion'])['then'](_0x3b42d2=>{_0x5a325d=_0x3b42d2;});}}}else _0x3e4061['_update'](_0x121d8e,_0xe7461f);});}}},g),_0x594258);}['_enhanceShowRevisionViewerCallback'](){const _0x19b956=this['editor']['config']['get']('revisionHistory')['showRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.showRevisionViewerCallback',async()=>{this['editor']['enableReadOnlyMode']('revision-history-viewer-opened');const _0x7251fc=this['editor']['plugins']['get']('RevisionTracker');if(this['editor']['plugins']['has']('Autosave')){const _0x122dc1=this['editor']['plugins']['get']('Autosave');await _0x122dc1['save']();}else await _0x7251fc['update']();if(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('Dialog')){const _0x35fa90=this['editor']['plugins']['get']('Dialog');_0x35fa90['isOpen']&&_0x35fa90['hide']();}const _0x4a135b=this['_getRevisionViewerEditorConfig']();return _0x19b956(_0x4a135b)['then'](_0x57af37=>{return(this['_viewerEditor']=_0x57af37,this['editor']['plugins']['has']('Annotations'))&&this['editor']['plugins']['get']('Annotations')['refreshVisibility'](),_0x57af37;})['catch'](_0x4863d8=>(console['error'](_0x4863d8),this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),null));});}['_enhanceCloseRevisionViewerCallback'](){const _0x358340=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'](),_0x358340(this['_viewerEditor'])['then'](()=>{if(this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),this['_viewerEditor']=null,this['editor']['plugins']['has']('Annotations')){const _0xda6eb=this['editor']['plugins']['get']('Annotations');_0xda6eb['refreshVisibility'](),_0xda6eb['refreshPositioning']();}})));}['_showRevisionViewer'](_0x4eb5f5){const _0x6ef530=this['editor']['config']['get']('revisionHistory.editorContainer'),_0x457cf0=this['editor']['config']['get']('revisionHistory.viewerContainer'),_0x350d9e=this['editor']['config']['get']('revisionHistory.viewerEditorElement');return w['create'](_0x350d9e,_0x4eb5f5)['then'](_0x348ee3=>(_0x457cf0['style']['display']='block',_0x6ef530['style']['display']='none',_0x348ee3));}['_closeRevisionViewer'](_0x20a606){const _0x5690a0=this['editor']['config']['get']('revisionHistory.editorContainer');return this['editor']['config']['get']('revisionHistory.viewerContainer')['style']['display']='none',_0x5690a0['style']['display']='',_0x20a606['destroy']();}async['_restoreRevision'](_0x4ad38f){const _0x289e9d=this['editor'],_0x2d7dc1=this['_viewerEditor']['plugins']['get']('RevisionViewer'),_0x29f362=_0x289e9d['plugins']['get']('RevisionTracker'),_0x2b43bd=_0x2d7dc1['repository']['getRevision'](_0x4ad38f);let _0xfa9455,_0x23a61c,_0x26ea55;try{_0xfa9455=await _0x2d7dc1['getRevisionData'](_0x2b43bd),_0x23a61c=await _0x2d7dc1['getRevisionRootsAttributes'](_0x2b43bd);}catch(_0x51a27d){return void console['error'](_0x51a27d);}_0x289e9d['model']['change'](_0x33cfc2=>{for(const _0x48feb5 of Array['from'](_0x289e9d['model']['markers']['getMarkersGroup']('restrictedEditingException')))_0x33cfc2['removeMarker'](_0x48feb5);}),_0x2d7dc1['isReady']=!0x1,_0x289e9d['model']['enqueueChange'](_0x437c38=>{_0x437c38['setSelection'](null),_0x437c38['removeSelectionAttribute'](_0x289e9d['model']['document']['selection']['getAttributeKeys']());const _0x2bcf5f=Object['keys'](_0xfa9455);for(const _0x21abc5 of _0x289e9d['model']['document']['roots'])'$graveyard'!=_0x21abc5['rootName']&&_0x21abc5['isAttached']()&&!_0x2bcf5f['includes'](_0x21abc5['rootName'])&&_0x437c38['detachRoot'](_0x21abc5);for(const _0x552b94 of _0x2bcf5f){let _0x334a9d=_0x289e9d['model']['document']['getRoot'](_0x552b94);_0x334a9d&&_0x334a9d['isAttached']()||(_0x334a9d=_0x437c38['addRoot'](_0x552b94));const _0x474fb6=_0x23a61c[_0x552b94],_0x464a23=Object['keys'](_0x474fb6),_0x2251c8=_0xfa9455[_0x552b94];for(const _0x126148 of _0x334a9d['getAttributeKeys']())_0x464a23['includes'](_0x126148)||_0x437c38['removeAttribute'](_0x126148,_0x334a9d);for(const _0x385697 of _0x464a23)_0x437c38['setAttribute'](_0x385697,_0x23a61c[_0x552b94][_0x385697],_0x334a9d);_0x437c38['remove'](_0x437c38['createRangeIn'](_0x334a9d)),_0x437c38['insert'](_0x289e9d['data']['parse'](_0x2251c8,_0x334a9d),_0x334a9d,0x0);}});const _0x4272bc=R(_0x289e9d['locale'],'Restored');if(_0x2b43bd['name'])_0x26ea55=-0x1==_0x2b43bd['name']['indexOf'](_0x4272bc)?_0x4272bc+':\x20'+_0x2b43bd['name']:_0x2b43bd['name'];else _0x26ea55=_0x4272bc+':\x20'+(_0x2b43bd['createdAt']['toLocaleDateString'](_0x289e9d['locale']['uiLanguage'],{'month':'long','day':'numeric'})+',\x20'+_0x2b43bd['createdAt']['toLocaleTimeString'](_0x289e9d['locale']['uiLanguage'],{'hour':'numeric','minute':'numeric'}));return await _0x29f362['saveRevision']({'name':_0x26ea55}),_0x2d7dc1['isReady']=!0x0,_0x289e9d['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}}export{a as Revision,H as RevisionHistory,u as RevisionHistoryUI,l as RevisionTracker,d as RevisionViewer,le as RevisionViewerLoadingOverlay,m as RevisionViewerUI,j as RevisionsRepository,g as RevisionsSidebar};