@ckeditor/ckeditor5-revision-history 0.0.0-nightly-20250315.0 → 0.0.0-nightly-20250316.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 _0x52eb58,uid as _0x5c4a35,Collection as _0x4f0c48,logWarning as _0x31f074,FocusTracker as _0x5be165,KeystrokeHandler as _0x254006,scrollViewportToShowTarget as _0x3bb261,ResizeObserver as at,ElementReplacer as ht,CKEditorError as _0x33d8e6}from'@ckeditor/ckeditor5-utils/dist/index.js';import{cloneDeep as _0x265c8f,set as _0x4ebe6b,unset as _0x4e5fc9,isEqual as _0x5231b8}from'es-toolkit/compat';import{Plugin as _0x52f205,PendingActions as _0x5d8534,Command as _0x2e2ccd,ElementApiMixin as it,Editor as tt}from'@ckeditor/ckeditor5-core/dist/index.js';import{Users as _0xf61404,getMarkerDomElement as _0x342eda,ConfirmMixin as _0x5085d1,sanitizeEditorConfig as _0x29656a}from'ckeditor5-collaboration/dist/index.js';import{ViewDocumentFragment as _0x52b2a0,Element as ut,Range as ft,ViewUIElement as _0x1ce1ff,ViewRawElement as _0x384be4,ViewEmptyElement as _0x80b66f,ViewAttributeElement as _0x56ca4e,ViewContainerElement as _0x147d6d,Position as vt,ViewText as _0x456b02,ViewElement as _0x33f74e,DocumentFragment as gt,Text as mt}from'@ckeditor/ckeditor5-engine/dist/index.js';import{IconHistory as _0x58ed64,IconChevronUp as ti,IconChevronDown as _0x43cda1,IconUndo as _0x715937,IconUser as _0xe80179,IconThreeVerticalDots as _0x3d261c}from'@ckeditor/ckeditor5-icons/dist/index.js';import{View as ts,injectCssTransitionDisabler as _0x502efa,submitHandler as _0x4b9bcb,LabeledFieldView as _0x122467,createLabeledInputText as _0x5c1472,createDropdown as _0x35ae1b,ListView as _0x3763af,ListItemView as _0x32d21f,ButtonView as te,MenuBarMenuView as _0x55e79f,MenuBarMenuListView as _0x2ddb5c,MenuBarMenuListItemView as _0x4d3bb5,MenuBarMenuListItemButtonView as _0x18b2aa,ContextualBalloon as _0x1c3621,ToolbarSeparatorView as _0x303d1e,IconView as _0x36bb25,addListToDropdown as _0x569d4a,ViewModel as to,EditorUI as st,normalizeToolbarConfig as ot,BoxedEditorUIView as ct,StickyPanelView as lt,ToolbarView as nt,InlineEditableUIView as dt}from'@ckeditor/ckeditor5-ui/dist/index.js';import{DateTime as _0x3f4c6c}from'luxon';class h extends/* #__PURE__ -- @preserve */
24
- _0x52eb58(){['id'];['creator'];['authors'];['diffData'];['toVersion'];['fromVersion'];['model'];constructor(_0x148fde){super(),this['id']=_0x148fde['id']||_0x5c4a35(),this['creator']=_0x148fde['creator']||null,this['authors']=_0x148fde['authors']||[],this['diffData']=_0x148fde['diffData']||null,this['toVersion']=_0x148fde['toVersion']||0x0,this['fromVersion']=_0x148fde['fromVersion']||0x0,this['set']('name',_0x148fde['name']||''),this['set']('createdAt',_0x148fde['createdAt']||new Date()),this['set']('attributes',_0x148fde['attributes']||{});}['setName'](_0xd4f2f){this['_update']({'name':_0xd4f2f});}['setAttribute'](_0x56a273,_0x58b790){const _0x13a02b=_0x265c8f(this['attributes']);_0x4ebe6b(_0x13a02b,_0x56a273,_0x58b790),this['_update']({'attributes':_0x13a02b});}['removeAttribute'](_0x54774b){const _0x472e50=_0x265c8f(this['attributes']);_0x4e5fc9(_0x472e50,_0x54774b),this['_update']({'attributes':_0x472e50});}['_update'](_0x502816,_0x31bc03=!0x1){let _0x29afb6=!0x1;const _0x412b2b={'id':this['id']},_0x29e0ad=['name','createdAt','diffData','authors','attributes','toVersion','fromVersion','creatorId'];for(const _0x6cd800 of _0x29e0ad){const _0xd17f1d=_0x502816[_0x6cd800];void 0x0!==_0xd17f1d&&_0xd17f1d!==this[_0x6cd800]&&(this[_0x6cd800]=_0xd17f1d,_0x412b2b[_0x6cd800]=_0xd17f1d,_0x29afb6=!0x0);}_0x29afb6&&(_0x412b2b['authors']&&(_0x412b2b['authorsIds']=_0x412b2b['authors']['map'](_0x10abe9=>_0x10abe9['id']),delete _0x412b2b['authors']),this['fire']('_update',_0x412b2b,_0x31bc03));}['toJSON'](){return{'id':this['id'],'name':this['name'],'creatorId':this['creator']?this['creator']['id']:null,'authorsIds':this['authors']['map'](_0x7bdfa6=>_0x7bdfa6['id']),'diffData':this['diffData'],'createdAt':this['createdAt'],'attributes':this['attributes'],'fromVersion':this['fromVersion'],'toVersion':this['toVersion']};}}class j extends _0x52f205{['_revisions'];static get['requires'](){return[_0xf61404];}static get['pluginName'](){return'RevisionsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['length'](){return this['_revisions']['length'];}constructor(_0x1bdfd5){super(_0x1bdfd5),this['_revisions']=new _0x4f0c48();}['afterInit'](){!async function(_0x30de02){const _0x30fceb=_0x1dc630([0x42,0x6c,0x71,0x54,0x43,0x37,0x4c,0x65,0x33,0x47,0x79,0x57,0x46,0x30,0x77,0x34,0x63,0x66,0x38,0x64,0x67,0x52,0x45,0x62,0x6b,0x7a,0x4d,0x4a,0x35,0x56,0x78,0x4e,0x76,0x51,0x5a,0x69,0x6e,0x70,0x48,0x55,0x6d,0x73,0x61,0x50,0x31,0x41,0x74,0x6a,0x4b,0x4f,0x72,0x59,0x68,0x53,0x36,0x44,0x58,0x39,0x75,0x6f,0x32,0x49]),_0x1ef500=0xeb829,_0x42c546=0xfee1e98,_0x36b507=0xfe97ca8^_0x42c546,_0x2fe1b0=window[_0x1dc630([0x44,0x61,0x74,0x65])][_0x1dc630([0x6e,0x6f,0x77])](),_0x584851=_0x30de02[_0x1dc630([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x326d8b=new window[(_0x1dc630([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x240181=>{_0x584851[_0x1dc630([0x6f,0x6e,0x63,0x65])](_0x1dc630([0x72,0x65,0x61,0x64,0x79]),_0x240181);}),_0x468d8d={[_0x1dc630([0x6b,0x74,0x79])]:_0x1dc630([0x45,0x43]),[_0x1dc630([0x75,0x73,0x65])]:_0x1dc630([0x73,0x69,0x67]),[_0x1dc630([0x63,0x72,0x76])]:_0x1dc630([0x50,0x2d,0x32,0x35,0x36]),[_0x1dc630([0x78])]:_0x1dc630([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]),[_0x1dc630([0x79])]:_0x1dc630([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]),[_0x1dc630([0x61,0x6c,0x67])]:_0x1dc630([0x45,0x53,0x32,0x35,0x36])},_0x4af7bf=_0x584851[_0x1dc630([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x1dc630([0x67,0x65,0x74])](_0x1dc630([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x5006d5(){let _0x44c129,_0x212298=null,_0xe200d4=null;try{if(_0x4af7bf==_0x1dc630([0x47,0x50,0x4c]))return _0x1dc630([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x44c129=_0x542e37(),!_0x44c129)return _0x1dc630([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x44c129[_0x1dc630([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0xe200d4=_0x22669e(_0x44c129[_0x1dc630([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x44c129[_0x1dc630([0x6a,0x74,0x69])])),await _0x5c4344()?_0x1abe71()?_0x2bf853()?_0x1dc630([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x10eaae()?(_0x44c129[_0x1dc630([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x1dc630([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x212298=_0x37bdc8(_0x1dc630([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x44c129[_0x1dc630([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x1dc630([0x74,0x72,0x69,0x61,0x6c])&&(_0x212298=_0x37bdc8(_0x1dc630([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x397718()):_0x1dc630([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x1dc630([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x1dc630([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x373746){return _0x1dc630([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x2bf853(){const _0x370c23=[_0x1dc630([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x1dc630([0x74,0x72,0x69,0x61,0x6c])][_0x1dc630([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x44c129[_0x1dc630([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x2fe1b0/0x3e8:0xe10*_0x36b507;return _0x44c129[_0x1dc630([0x65,0x78,0x70])]<_0x370c23;}function _0x1abe71(){const _0x1ea69=_0x44c129[_0x1dc630([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x1ea69)return!0x1;if(_0x1ea69[_0x1dc630([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1dc630([0x2a])))return!0x0;if(_0x1ea69[_0x1dc630([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1dc630([0x52,0x48])))return!0x0;if(_0x1ea69[_0x1dc630([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1dc630([0x52,0x52,0x48]))){if(_0x223f21())return!0x0;if(_0x3f8c04()||_0x10257a())return!0x0;}return!0x1;}function _0x10eaae(){const _0x37e707=_0x44c129[_0x1dc630([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x37e707||0x0==_0x37e707[_0x1dc630([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x35ecef}=new URL(window[_0x1dc630([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x37e707[_0x1dc630([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x35ecef))return!0x0;const _0x23644e=_0x35ecef[_0x1dc630([0x73,0x70,0x6c,0x69,0x74])](_0x1dc630([0x2e]));return _0x37e707[_0x1dc630([0x66,0x69,0x6c,0x74,0x65,0x72])](_0xe8de70=>_0xe8de70[_0x1dc630([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1dc630([0x2a])))[_0x1dc630([0x6d,0x61,0x70])](_0x546062=>_0x546062[_0x1dc630([0x73,0x70,0x6c,0x69,0x74])](_0x1dc630([0x2e])))[_0x1dc630([0x73,0x6f,0x6d,0x65])](_0x132904=>_0x23644e[_0x1dc630([0x65,0x76,0x65,0x72,0x79])]((_0x101809,_0x3f8a82)=>_0x132904[_0x3f8a82]===_0x101809||_0x132904[_0x3f8a82]===_0x1dc630([0x2a])));}function _0x397718(){return _0x212298&&_0xe200d4?new window[(_0x1dc630([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x2c1174,_0x526650)=>{_0x212298[_0x1dc630([0x74,0x68,0x65,0x6e])](_0x2c1174,_0x526650),_0xe200d4[_0x1dc630([0x74,0x68,0x65,0x6e])](_0xebe5ed=>{_0xebe5ed!=_0x1dc630([0x56,0x61,0x6c,0x69,0x64])&&_0x2c1174(_0xebe5ed);},_0x526650);}):_0x212298||_0xe200d4||_0x1dc630([0x56,0x61,0x6c,0x69,0x64]);}}function _0x22669e(_0x3a01a5,_0x406f46){return new window[(_0x1dc630([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1643b5=>{if(_0x1bec10())return _0x1643b5(_0x1dc630([0x56,0x61,0x6c,0x69,0x64]));_0x4e02e1(),_0x584851[_0x1dc630([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x1dc630([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x2ae65e=!0x1;const _0x385d4f=_0x5c4a35();function _0x1b14d2(_0x182aec){return!!_0x182aec&&(typeof _0x182aec===_0x1dc630([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x182aec===_0x1dc630([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x182aec[_0x1dc630([0x74,0x68,0x65,0x6e])]===_0x1dc630([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x182aec[_0x1dc630([0x63,0x61,0x74,0x63,0x68])]===_0x1dc630([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x5994ae(_0x4ce499){_0xe970f5(_0x4ce499)[_0x1dc630([0x74,0x68,0x65,0x6e])](_0x5f40a2=>{if(!_0x5f40a2||_0x5f40a2[_0x1dc630([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x1dc630([0x6f,0x6b]))return _0x1dc630([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0xc669de(_0x54b7b0(_0x385d4f+_0x406f46))!=_0x5f40a2[_0x1dc630([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x1dc630([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x1dc630([0x56,0x61,0x6c,0x69,0x64]);})[_0x1dc630([0x74,0x68,0x65,0x6e])](_0xfb9a3=>(_0x2d2309(),_0xfb9a3),()=>{const _0x29bc44=_0x2e0651();return null==_0x29bc44?(_0x2d2309(),_0x1dc630([0x56,0x61,0x6c,0x69,0x64])):_0x1dc630(_0x2fe1b0-_0x29bc44>(0x2be29a98^_0x42c546)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x1dc630([0x74,0x68,0x65,0x6e])](_0x1643b5)[_0x1dc630([0x63,0x61,0x74,0x63,0x68])](()=>{_0x1643b5(_0x1dc630([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x1458a9=0xfd8f018^_0x42c546;function _0x2d2309(){const _0x1b7995=_0x1dc630([0x6c,0x6c,0x63,0x74,0x2d])+_0xc669de(_0x54b7b0(_0x3a01a5)),_0x4e501c=_0x4b75b7(_0xc669de(window[_0x1dc630([0x4d,0x61,0x74,0x68])][_0x1dc630([0x63,0x65,0x69,0x6c])](_0x2fe1b0/_0x1458a9)));window[_0x1dc630([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x1dc630([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1b7995,_0x4e501c);}function _0x2e0651(){const _0x2ac694=_0x1dc630([0x6c,0x6c,0x63,0x74,0x2d])+_0xc669de(_0x54b7b0(_0x3a01a5)),_0x4025c5=window[_0x1dc630([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x1dc630([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2ac694);return _0x4025c5?window[_0x1dc630([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4b75b7(_0x4025c5),0x10)*_0x1458a9:null;}function _0xe970f5(_0x3062be){return new window[(_0x1dc630([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0xf47e44,_0x6a2d69)=>{_0x3062be[_0x1dc630([0x74,0x68,0x65,0x6e])](_0xf47e44,_0x6a2d69),window[_0x1dc630([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x6a2d69,0xfefca58^_0x42c546);});}}_0x584851[_0x1dc630([0x6f,0x6e])](_0x1dc630([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x55f673,_0x744abd)=>{if(_0x744abd[0x0]!=_0x3a01a5)return _0x1643b5(_0x1dc630([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x744abd[0x1]={..._0x744abd[0x1],[_0x1dc630([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x385d4f};},{[_0x1dc630([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x1dc630([0x68,0x69,0x67,0x68])}),_0x584851[_0x1dc630([0x6f,0x6e])](_0x1dc630([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x46b959=>{_0x1b14d2(_0x46b959[_0x1dc630([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x2ae65e=!0x0,_0x5994ae(_0x46b959[_0x1dc630([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x1dc630([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x1dc630([0x6c,0x6f,0x77])}),_0x326d8b[_0x1dc630([0x74,0x68,0x65,0x6e])](()=>{_0x2ae65e||_0x1643b5(_0x1dc630([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x1bec10(){return _0x584851[_0x1dc630([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1dc630([0x76,0x69,0x65,0x77])][_0x1dc630([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x1dc630([0x61,0x75,0x74,0x6f]);}function _0x4e02e1(){_0x584851[_0x1dc630([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1dc630([0x76,0x69,0x65,0x77])][_0x1dc630([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x1dc630([0x61,0x75,0x74,0x6f]);}}function _0x37bdc8(_0xe8e6ca){const _0x4532ee=[new window[(_0x1dc630([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3403ba=>setTimeout(_0x3403ba,0xfe72054^_0x42c546)),_0x326d8b[_0x1dc630([0x74,0x68,0x65,0x6e])](()=>new window[(_0x1dc630([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x50027a=>{const _0x1026b5=0xfee1e9f^_0x42c546,_0x58356f=_0x30de02[_0x1dc630([0x5f,0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x73])];function _0x1935ca(){_0x58356f[_0x1dc630([0x6c,0x65,0x6e,0x67,0x74,0x68])]>=_0x1026b5&&_0x50027a();}_0x1935ca(),_0x58356f[_0x1dc630([0x6f,0x6e])](_0x1dc630([0x61,0x64,0x64]),_0x1935ca);})),new window[(_0x1dc630([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x163b3b=>{function _0x17c7e5(){for(const _0x2a03ca in window)if(window[_0x1dc630([0x4e,0x75,0x6d,0x62,0x65,0x72])]['isNaN'](window[_0x1dc630([0x4e,0x75,0x6d,0x62,0x65,0x72])](_0x2a03ca))&&window[_0x2a03ca]==_0x1ef500)return _0x163b3b();_0x584851[_0x1dc630([0x73,0x74,0x61,0x74,0x65])]!=_0x1dc630([0x64,0x65,0x73,0x74,0x72,0x6f,0x79,0x65,0x64])&&window[_0x1dc630([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x17c7e5,0xfee0d10^_0x42c546);}_0x523dc4(_0x1dc630([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))&&_0x17c7e5();})];return window[_0x1dc630([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x1dc630([0x72,0x61,0x63,0x65])](_0x4532ee)[_0x1dc630([0x74,0x68,0x65,0x6e])](()=>_0xe8e6ca);}async function _0x2a687a(){if(await _0x326d8b,_0x523dc4(_0x1dc630([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))){const _0x62139a=_0x30de02[_0x1dc630([0x67,0x65,0x74,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])](0x0),_0x2aaae4=_0x30de02[_0x1dc630([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])](_0x62139a[_0x1dc630([0x69,0x64])]),_0x14ee04=_0x20642d(_0x1dc630([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]));return await _0x14ee04[_0x1dc630([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])](_0x62139a['id'],_0x2aaae4?_0x2aaae4['id']:null,!0x0),_0x14ee04[_0x1dc630([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x1dc630([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x14ee04[_0x1dc630([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x14ee04[_0x1dc630([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])]=_0x3eda51,void(_0x14ee04[_0x1dc630([0x5f,0x67,0x65,0x74,0x44,0x69,0x66,0x66])]=_0x3eda51);}if(_0x523dc4(_0x1dc630([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]))){const _0x25ded1=_0x20642d(_0x1dc630([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]));_0x25ded1[_0x1dc630([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x1dc630([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x25ded1[_0x1dc630([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x25ded1[_0x1dc630([0x75,0x70,0x64,0x61,0x74,0x65])]=_0x3eda51,_0x25ded1[_0x1dc630([0x73,0x61,0x76,0x65,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])]=_0x3eda51;}_0x584851[_0x1dc630([0x6d,0x6f,0x64,0x65,0x6c])][_0x1dc630([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x3eda51,_0x584851[_0x1dc630([0x6d,0x6f,0x64,0x65,0x6c])][_0x1dc630([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x3eda51,_0x584851[_0x1dc630([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x1dc630([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x223f21(){return _0x523dc4(_0x1dc630([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x20642d(_0x1dc630([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x1dc630([0x73,0x74,0x61,0x74,0x65])]==_0x1dc630([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x3f8c04(){return _0x523dc4(_0x1dc630([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72,0x49,0x6e,0x74,0x65,0x67,0x72,0x61,0x74,0x69,0x6f,0x6e]));}function _0x10257a(){return _0x523dc4(_0x1dc630([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x413ffc(_0x188612){const _0x7fc59c=_0x32c52e();_0x584851[_0x7fc59c]=_0x1dc630([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])+_0x188612,_0x188612[_0x1dc630([0x65,0x6e,0x64,0x73,0x57,0x69,0x74,0x68])](_0x1dc630([0x4c,0x69,0x6d,0x69,0x74]))&&(window[_0x32c52e()]=_0x1ef500),_0x188612!=_0x1dc630([0x56,0x61,0x6c,0x69,0x64])&&_0x2a687a();}function _0x32c52e(){const _0x29c95e=window[_0x1dc630([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x1dc630([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x1dc630([0x6e,0x6f,0x77])]())[_0x1dc630([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x1dc630([0x2e]),'');let _0x82a394=_0x1dc630([0x42]);for(let _0x2e0799=0x0;_0x2e0799<_0x29c95e[_0x1dc630([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2e0799+=0x2){let _0x51329b=window[_0x1dc630([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x29c95e[_0x1dc630([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2e0799,_0x2e0799+0x2));_0x51329b>=_0x30fceb[_0x1dc630([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x51329b-=_0x30fceb[_0x1dc630([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x82a394+=_0x30fceb[_0x51329b];}return _0x82a394;}function _0x542e37(){const _0x57972b=_0x4af7bf[_0x1dc630([0x73,0x70,0x6c,0x69,0x74])](_0x1dc630([0x2e]));if(0x3!=_0x57972b[_0x1dc630([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x183c99(_0x57972b[0x1]);function _0x183c99(_0x57e923){const _0x337b43=_0x259219(_0x57e923);return _0x337b43&&_0x3f456f()?_0x337b43:null;function _0x3f456f(){const _0x5f2b68=_0x337b43[_0x1dc630([0x6a,0x74,0x69])],_0x216a29=window[_0x1dc630([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5f2b68[_0x1dc630([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x5f2b68[_0x1dc630([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x2996e3={..._0x337b43,[_0x1dc630([0x6a,0x74,0x69])]:_0x5f2b68[_0x1dc630([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x5f2b68[_0x1dc630([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x2996e3[_0x1dc630([0x76,0x63])],_0x54b7b0(_0x2996e3)==_0x216a29;}}}async function _0x5c4344(){let _0x6125=!0x0;try{const _0x1612ec=_0x4af7bf[_0x1dc630([0x73,0x70,0x6c,0x69,0x74])](_0x1dc630([0x2e])),[_0x1f90a6,_0x1f972a,_0x1a538e]=_0x1612ec;return _0x5e64a4(_0x1f90a6),await _0x12d344(_0x1f90a6,_0x1f972a,_0x1a538e),_0x6125;}catch(_0x57d996){return!0x1;}function _0x5e64a4(_0x10aeec){const _0x552764=_0x259219(_0x10aeec);_0x552764&&_0x552764[_0x1dc630([0x61,0x6c,0x67])]==_0x1dc630([0x45,0x53,0x32,0x35,0x36])||(_0x6125=!0x1);}async function _0x12d344(_0x12b606,_0x96ed5,_0x4d846c){const _0x197bed=window[_0x1dc630([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x1dc630([0x66,0x72,0x6f,0x6d])](_0x119203(_0x4d846c),_0x184163=>_0x184163[_0x1dc630([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x6a914f=new window[(_0x1dc630([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x1dc630([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x12b606+_0x1dc630([0x2e])+_0x96ed5),_0x2268e5=window[_0x1dc630([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x1dc630([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x2268e5)return;const _0x2aee42=await _0x2268e5[_0x1dc630([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x1dc630([0x6a,0x77,0x6b]),_0x468d8d,{[_0x1dc630([0x6e,0x61,0x6d,0x65])]:_0x1dc630([0x45,0x43,0x44,0x53,0x41]),[_0x1dc630([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x1dc630([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x1dc630([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x2268e5[_0x1dc630([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x1dc630([0x6e,0x61,0x6d,0x65])]:_0x1dc630([0x45,0x43,0x44,0x53,0x41]),[_0x1dc630([0x68,0x61,0x73,0x68])]:{[_0x1dc630([0x6e,0x61,0x6d,0x65])]:_0x1dc630([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x2aee42,_0x197bed,_0x6a914f)||(_0x6125=!0x1);}}function _0x259219(_0x58c59b){return _0x58c59b[_0x1dc630([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x1dc630([0x65,0x79]))?JSON[_0x1dc630([0x70,0x61,0x72,0x73,0x65])](_0x119203(_0x58c59b)):null;}function _0x119203(_0x28d173){return window[_0x1dc630([0x61,0x74,0x6f,0x62])](_0x28d173[_0x1dc630([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x1dc630([0x2b]))[_0x1dc630([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x1dc630([0x2f])));}function _0x54b7b0(_0x56df08){let _0x41a37=0x1505;function _0x5618cb(_0x44abbe){for(let _0x144048=0x0;_0x144048<_0x44abbe[_0x1dc630([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x144048++){const _0x1656c8=_0x44abbe[_0x1dc630([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x144048);_0x41a37=(_0x41a37<<0x5)+_0x41a37+_0x1656c8,_0x41a37&=_0x41a37;}}function _0xa4af69(_0x16e1cf){Array[_0x1dc630([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x16e1cf)?_0x16e1cf[_0x1dc630([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0xa4af69):_0x16e1cf&&typeof _0x16e1cf==_0x1dc630([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x1dc630([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x16e1cf)[_0x1dc630([0x73,0x6f,0x72,0x74])]()[_0x1dc630([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x2904e3,_0x449894])=>{_0x5618cb(_0x2904e3),_0xa4af69(_0x449894);}):_0x5618cb(window[_0x1dc630([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x16e1cf));}return _0xa4af69(_0x56df08),_0x41a37>>>0x0;}function _0xc669de(_0x5bf0f4){return _0x5bf0f4[_0x1dc630([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x1dc630([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x1dc630([0x30]));}function _0x4b75b7(_0x58202f){return _0x58202f[_0x1dc630([0x73,0x70,0x6c,0x69,0x74])]('')[_0x1dc630([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x1dc630([0x6a,0x6f,0x69,0x6e])]('');}function _0x523dc4(_0x1c38e1){return _0x584851[_0x1dc630([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x1dc630([0x68,0x61,0x73])](_0x1c38e1);}function _0x20642d(_0x50e834){return _0x584851[_0x1dc630([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x1dc630([0x67,0x65,0x74])](_0x50e834);}function _0x3eda51(){}function _0x1dc630(_0x5aa2d6){return _0x5aa2d6['map'](_0x12faea=>String['fromCharCode'](_0x12faea))['join']('');}_0x413ffc(await _0x5006d5());}(this);}['createRevision'](_0x3ba4e5){const _0x3c4f5b=this['editor']['plugins']['get']('Users');return new h({'id':_0x3ba4e5['id'],'name':_0x3ba4e5['name'],'creator':_0x3ba4e5['creatorId']?_0x3c4f5b['getUser'](_0x3ba4e5['creatorId']):null,'diffData':_0x3ba4e5['diffData']||_0x3ba4e5['data'],'authors':_0x3ba4e5['authorsIds']['map'](_0xb3294d=>_0x3c4f5b['getUser'](_0xb3294d)),'createdAt':new Date(_0x3ba4e5['createdAt']),'attributes':_0x3ba4e5['attributes'],'fromVersion':_0x3ba4e5['fromVersion'],'toVersion':_0x3ba4e5['toVersion']});}['addRevision'](_0x1b563a,_0x343ff5=0x0){this['_revisions']['add'](_0x1b563a,_0x343ff5);}['getRevision'](_0x3ad8be){return this['_revisions']['get'](_0x3ad8be);}['getRevisions'](_0x2f044b={'toJSON':!0x1}){const _0x1ad155=Array['from'](this['_revisions']);return _0x1ad155['reverse'](),_0x2f044b['toJSON']?_0x1ad155['map'](_0x5a0d45=>_0x5a0d45['toJSON']()):_0x1ad155;}['getIndex'](_0x31eefc){return this['_revisions']['getIndex'](_0x31eefc);}['getEarlierVisibleRevision'](_0x57470a){const [,_0x1a34e4]=this['getRevisionsIterator'](_0x57470a,{'direction':'earlier'});return _0x1a34e4;}['getLaterVisibleRevision'](_0x5697af){const [,_0x541e1b]=this['getRevisionsIterator'](_0x5697af,{'direction':'later'});return _0x541e1b;}['getRevisionsInDiff'](_0x755280){const _0x289014=[];for(const _0x554a75 of this['getRevisionsIterator'](_0x755280['newRevisionId']))if(_0x289014['push'](_0x554a75),_0x554a75['id']===_0x755280['oldRevisionId'])break;return _0x289014;}*['getRevisionsIterator'](_0x1bc644,{direction:_0xbbabe4='earlier',filter:_0x335d32=()=>!0x0}={}){const _0x12528a='earlier'===_0xbbabe4?0x1:-0x1;let _0x5ea8bd=this['_revisions']['get'](_0x1bc644),_0x56fa74=this['getIndex'](_0x5ea8bd);for(yield _0x5ea8bd;_0x5ea8bd;){if(_0x56fa74+=_0x12528a,_0x5ea8bd=this['getRevision'](_0x56fa74),!_0x5ea8bd)return;_0x335d32(_0x5ea8bd)&&(yield _0x5ea8bd);}}}function m(_0x5bc72d,_0x5458b9,_0x23e79c){const t=_0x5bc72d['t'];switch(_0x5458b9){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'},_0x23e79c);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x23e79c);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 E={'c':_0x147d6d,'a':_0x56ca4e,'e':_0x80b66f,'r':_0x384be4,'u':_0x1ce1ff};class u extends _0x52f205{['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[_0xf61404,j,_0x5d8534];}constructor(_0x53306d){super(_0x53306d),this['adapter']=null,this['currentRevision']=null,this['_revisionDataBuilder']=new V(this['editor']),this['_initialRevisionId']=this['editor']['config']['get']('collaboration.channelId')||'initial',this['_bufferedUpdates']=new Map(),this['_loadedStateData']=null;const _0x1c32f6=_0x5c4a35();this['_source']={'history':this['editor']['model']['document']['history'],'getLatestVersion':()=>Promise['resolve'](this['editor']['model']['document']['version']),'getCurrentRevisionId':()=>_0x1c32f6},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 _0x32f746=this['repository']['getRevision'](0x0),_0x181355=_0x32f746&&null===_0x32f746['creator']?_0x32f746:null;if(this['_continueCurrentRevision']=!!_0x181355&&this['editor']['config']['get']('revisionHistory.resumeUnsavedRevision'),this['editor']['plugins']['has']('RealTimeCollaborationClient')){const _0x47d6db=this['_source']['getCurrentRevisionId'](),_0x67c059=this['repository']['getRevision'](_0x47d6db);if(_0x67c059)this['_startingVersion']=_0x67c059['fromVersion'],this['_continueCurrentRevision']=!0x1;else{const _0x5d4636=this['_source']['history']['_operations']['find'](_0x2f1844=>!_0x2f1844['_isInit']),_0xcba8e3=_0x5d4636?_0x5d4636['baseVersion']:this['_source']['history']['version'];_0x32f746?(_0x32f746['toVersion']<_0xcba8e3&&_0x32f746['_update']({'toVersion':_0xcba8e3}),this['_continueCurrentRevision']?(this['_source']['getCurrentRevisionId']=()=>_0x181355['id'],this['_startingVersion']=_0x181355['fromVersion']):(this['_startingVersion']=_0x32f746['toVersion'],this['_continueCurrentRevision']=!0x1)):(this['_startingVersion']=_0xcba8e3,this['_continueCurrentRevision']=!0x1);}}else _0x181355&&(this['editor']['model']['document']['history']['version']=Math['max'](_0x181355['toVersion'],this['editor']['model']['document']['history']['version']),_0x181355['fromVersion']===_0x181355['toVersion']?(0x0!==_0x181355['fromVersion']&&(this['_source']['getCurrentRevisionId']=()=>_0x181355['id']),this['_continueCurrentRevision']=!0x1):this['_continueCurrentRevision']&&(this['_source']['getCurrentRevisionId']=()=>_0x181355['id'],this['_startingVersion']=_0x181355['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',_0x3a11b4=>!_0x3a11b4),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x26a4b6=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x134600;for(const _0x2cdea6 in _0x26a4b6){const _0x30e5f1=_0x2cdea6,_0x1fc10f=_0x26a4b6[_0x30e5f1];if('revisionHistoryLicenseKeyValid'==_0x1fc10f||'revisionHistoryLicenseKeyInvalid'==_0x1fc10f||'revisionHistoryLicenseKeyExpired'==_0x1fc10f||'revisionHistoryLicenseKeyDomainLimit'==_0x1fc10f||'revisionHistoryLicenseKeyNotAllowed'==_0x1fc10f||'revisionHistoryLicenseKeyEvaluationLimit'==_0x1fc10f||'revisionHistoryLicenseKeyTrialLimit'==_0x1fc10f||'revisionHistoryLicenseKeyUsageLimit'==_0x1fc10f){delete _0x26a4b6[_0x30e5f1],_0x134600=_0x1fc10f,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'revisionHistoryLicenseKeyInvalid'==_0x134600&&_0x26a4b6['_showLicenseError']('invalid'),'revisionHistoryLicenseKeyExpired'==_0x134600&&_0x26a4b6['_showLicenseError']('expired'),'revisionHistoryLicenseKeyDomainLimit'==_0x134600&&_0x26a4b6['_showLicenseError']('domainLimit'),'revisionHistoryLicenseKeyNotAllowed'==_0x134600&&_0x26a4b6['_showLicenseError']('featureNotAllowed','RevisionHistory'),'revisionHistoryLicenseKeyEvaluationLimit'==_0x134600&&_0x26a4b6['_showLicenseError']('evaluationLimit'),'revisionHistoryLicenseKeyTrialLimit'==_0x134600&&_0x26a4b6['_showLicenseError']('trialLimit'),'revisionHistoryLicenseKeyUsageLimit'==_0x134600&&_0x26a4b6['_showLicenseError']('usageLimit');},0x3e8);}async['afterInit'](){if(this['repository']['length']>0x0){const _0x258503=this['repository']['getRevision'](0x0),_0x31bd02=await this['getRevisionDocumentData'](_0x258503),_0xf0d268=await this['getRevisionRootsAttributes'](_0x258503);this['_replaceEditorDataWithRevisionData'](_0x31bd02,_0xf0d268);}}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['setSource'](_0x4d4445){this['_source']=_0x4d4445;}async['update'](){const _0x47b0d1=await this['_source']['getLatestVersion']();if(_0x47b0d1>this['currentRevision']['toVersion']){await this['_loadState']();const _0x344074=this['buildRevisionData']({'revision':this['currentRevision'],'to':_0x47b0d1});_0x344074['authors']=_0x344074['authorsIds']['map'](_0x150d2d=>this['editor']['plugins']['get']('Users')['getUser'](_0x150d2d)),this['currentRevision']['_update'](_0x344074);}}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'](_0x3c4ee6={},_0x1dab5f=null){const _0x2be797=[];await this['_loadState'](),this['_continueCurrentRevision']=!0x1,_0x1dab5f>this['currentRevision']['toVersion']&&(_0x1dab5f=null),null===_0x1dab5f&&(_0x1dab5f=await this['_source']['getLatestVersion']());const _0x2a77b6=this['_getFromVersion'](_0x1dab5f),_0x24cb75=this['buildRevisionData']({'from':_0x2a77b6,'to':_0x1dab5f});if(this['currentRevision']['toVersion']<_0x1dab5f){const _0x5150a4=this['buildRevisionData']({'revision':this['currentRevision'],'from':_0x1dab5f,'to':_0x1dab5f});_0x5150a4['authors']=[],_0x5150a4['authorsIds']=[],_0x5150a4['id']=this['currentRevision']['id'],this['currentRevision']['_update'](_0x5150a4,!0x0),delete _0x5150a4['authors'],_0x2be797['push'](_0x5150a4);}_0x3c4ee6['creatorId']=this['editor']['plugins']['get']('Users')['me']['id'],_0x3c4ee6['name']=_0x3c4ee6['name']||null,_0x3c4ee6['id']=_0x3c4ee6['id']||_0x5c4a35(),_0x3c4ee6={..._0x3c4ee6,..._0x24cb75};const _0x38160f=this['addRevisionData'](_0x3c4ee6);_0x2be797['push'](_0x3c4ee6);const _0x501402=this['repository']['getIndex'](_0x38160f);if(0x0!==_0x501402){const _0xa36a2e=this['repository']['getRevision'](_0x501402-0x1);if(_0xa36a2e['fromVersion']!==_0x1dab5f){const _0x508d91=this['_revisionDataBuilder']['getData'](_0x1dab5f,_0xa36a2e['toVersion']),_0x4d8dfd={'id':_0xa36a2e['id'],'diffData':_0x508d91['diffData'],'authorsIds':_0x508d91['authorsIds'],'authors':_0x508d91['authorsIds']['map'](_0x31733a=>this['editor']['plugins']['get']('Users')['getUser'](_0x31733a)),'fromVersion':_0x1dab5f};_0xa36a2e===this['currentRevision']&&(_0x4d8dfd['createdAt']=new Date(_0x3c4ee6['createdAt']['getTime']()+0xa)),_0xa36a2e['_update'](_0x4d8dfd,!0x0),delete _0x4d8dfd['authors'],_0x2be797['push'](_0x4d8dfd);}}if(this['adapter']){for(const _0x4649bc of _0x2be797)this['_bufferUpdate'](_0x4649bc['id'],_0x4649bc,!0x0);this['sendBufferedUpdates']();}return _0x38160f;}['addRevisionData'](_0x3c690a){const _0x35cb42=this['repository']['createRevision'](_0x3c690a);return this['adapter']&&_0x35cb42['on']('_update',(_0x77550d,_0x3c94d7,_0x4a0f53)=>{_0x4a0f53||(this['_bufferUpdate'](_0x3c94d7['id'],_0x3c94d7,!0x0),this['sendBufferedUpdates']());}),this['repository']['addRevision'](_0x35cb42,this['_findInsertionIndex'](_0x35cb42)),_0x35cb42;}async['getRevisionDocumentData'](_0x52e0f9){await this['_loadRevisionData'](_0x52e0f9);const _0x80801c={};for(const _0x441d8f in _0x52e0f9['diffData']){if(_0x52e0f9['diffData'][_0x441d8f]['attachChange']&&!_0x52e0f9['diffData'][_0x441d8f]['attachChange']['isAttached'])continue;const _0x36c4d1=this['_removeRevisionMarkers'](JSON['parse'](_0x52e0f9['diffData'][_0x441d8f]['insertions'])),_0x410da0=this['editor']['editing']['view']['document'],_0x52041d=new _0x52b2a0(_0x410da0,_0x36c4d1['map'](_0x2a9508=>P(_0x2a9508,this['editor'])));this['editor']['data']['processor']['useFillerType']('marked'),_0x80801c[_0x441d8f]=this['editor']['data']['processor']['toData'](_0x52041d),this['editor']['data']['processor']['useFillerType']('default');}return _0x80801c;}async['getRevisionRootsAttributes'](_0x12b94a){await this['_loadRevisionData'](_0x12b94a);const _0x1e92d6={};for(const _0x4ad0f5 in _0x12b94a['diffData'])_0x12b94a['diffData'][_0x4ad0f5]['attachChange']&&!_0x12b94a['diffData'][_0x4ad0f5]['attachChange']['isAttached']||(_0x1e92d6[_0x4ad0f5]=_0x12b94a['diffData'][_0x4ad0f5]['attributesAfter']||{});return _0x1e92d6;}['sendBufferedUpdates'](){if(0x0===this['_bufferedUpdates']['size'])return;if(this['_isPendingUpdate'])return;let _0x242297=Array['from'](this['_bufferedUpdates']['values']());this['_bufferedUpdates']['clear']();for(let _0x44a5f5=0x0;_0x44a5f5<_0x242297['length'];_0x44a5f5++){const _0x25c793=_0x242297[_0x44a5f5];let _0x28f057=!0x1;for(const _0x455723 of Object['keys'](_0x25c793))void 0x0===_0x25c793[_0x455723]?delete _0x25c793[_0x455723]:'id'!==_0x455723&&(_0x28f057=!0x0);_0x28f057||(_0x242297[_0x44a5f5]=null);}if(_0x242297=_0x242297['filter'](_0x4779cf=>null!==_0x4779cf),!_0x242297['length'])return;for(let _0x15d594=0x0;_0x15d594<_0x242297['length'];_0x15d594++){const _0x3f0019=_0x242297[_0x15d594];void 0x0!==_0x3f0019['fromVersion']&&void 0x0===_0x3f0019['toVersion']&&(_0x3f0019['toVersion']=this['repository']['getRevision'](_0x3f0019['id'])['toVersion']),void 0x0!==_0x3f0019['toVersion']&&void 0x0===_0x3f0019['fromVersion']&&(_0x3f0019['fromVersion']=this['repository']['getRevision'](_0x3f0019['id'])['fromVersion']);}const _0x317ae1=this['editor']['config']['get']('collaboration.channelId');this['_isPendingUpdate']=!0x0,this['_addPendingAction'](),this['adapter']['updateRevisions'](_0x242297,_0x317ae1)['finally'](()=>{this['_isPendingUpdate']=!0x1;})['then'](_0x3f181f=>{if(_0x3f181f){for(const _0x3bcf96 of _0x3f181f)this['setRevisionData']({'id':_0x3bcf96['id'],'createdAt':_0x3bcf96['createdAt']});}this['_removePendingAction'](),this['sendBufferedUpdates']();});}['_replaceEditorDataWithRevisionData'](_0x402712,_0x295223){let _0xd5377e=this['editor']['config']['get']('initialData'),_0x365c20=this['editor']['config']['get']('rootsAttributes');if(void 0x0===_0xd5377e){_0xd5377e={};for(const _0x52952d of this['editor']['model']['document']['getRootNames']())_0xd5377e[_0x52952d]='';}if('string'==typeof _0xd5377e&&(_0xd5377e={'main':_0xd5377e}),void 0x0===_0x365c20){_0x365c20={};for(const _0x256588 of this['editor']['model']['document']['getRootNames']())_0x365c20[_0x256588]={};}let _0x50d51e=!0x1;const _0x738d27=Object['keys'](_0xd5377e),_0x400292=Object['keys'](_0x402712);for(const _0x426576 of _0x738d27){if(_0xd5377e[_0x426576]!==_0x402712[_0x426576]&&''!==_0xd5377e[_0x426576]['trim']()){_0x50d51e=!0x0;break;}if(!_0x5231b8(_0x365c20[_0x426576],_0x295223[_0x426576])&&Object['keys'](_0x365c20[_0x426576])['length']>0x0){_0x50d51e=!0x0;break;}}_0x50d51e||(_0x50d51e=_0x400292['some'](_0x22afbc=>!this['editor']['model']['document']['getRoot'](_0x22afbc))),_0x50d51e&&_0x31f074('editor-initial-data-replaced-with-revision-data',{'editorData':_0xd5377e,'editorRootsAttributes':_0x365c20,'revisionData':_0x402712,'revisionRootsAttributes':_0x295223}),this['editor']['config']['set']('initialData',_0x402712),this['editor']['config']['set']('rootsAttributes',_0x295223);}['_addPendingAction'](){if(!this['_pendingAction']){const _0x12b060=this['editor']['plugins']['get']('PendingActions');this['_pendingAction']=_0x12b060['add'](m(this['editor']['locale'],'PENDING_ACTION_REVISION_HISTORY'));}}['_removePendingAction'](){this['_pendingAction']&&(this['editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null);}['_findInsertionIndex'](_0x1424e9){const _0x20b825=this['repository']['getRevisions']();_0x20b825['reverse']();let _0x17a75b=0x0;for(;_0x17a75b<_0x20b825['length'];){const _0x8c86d7=_0x20b825[_0x17a75b];if(_0x8c86d7===this['currentRevision']){_0x17a75b++;continue;}if(_0x8c86d7['id']===this['_initialRevisionId'])break;const _0x31b46c=_0x1424e9['toVersion']-_0x8c86d7['toVersion']||_0x1424e9['fromVersion']-_0x8c86d7['fromVersion'];if(_0x31b46c>0x0)break;if(_0x31b46c<0x0)_0x17a75b++;else{if(!_0x1424e9['creator']&&_0x8c86d7['creator'])break;if(_0x8c86d7['creator']||!_0x1424e9['creator']){if(_0x1424e9['createdAt']>_0x8c86d7['createdAt'])break;_0x17a75b++;}else _0x17a75b++;}}return _0x17a75b;}['setRevisionData'](_0x1e1257){const _0x1f644c=this['repository']['getRevision'](_0x1e1257['id']);if(_0x1e1257['createdAt']&&(_0x1e1257['createdAt']=new Date(_0x1e1257['createdAt'])),_0x1e1257['authorsIds']){const _0x409bd5=this['editor']['plugins']['get']('Users');_0x1e1257['authors']=_0x1e1257['authorsIds']['map'](_0x3e1a8a=>_0x409bd5['getUser'](_0x3e1a8a));}_0x1f644c['_update'](_0x1e1257,!0x0);}['buildRevisionData']({revision:_0xc95a97=null,from:_0x4e28e7=null,to:_0x48f875=null}){_0x4e28e7=null!==_0x4e28e7?_0x4e28e7:_0xc95a97['fromVersion'],_0x48f875=null!==_0x48f875?_0x48f875:_0xc95a97['toVersion'];const _0x3e5ea5=this['_revisionDataBuilder']['getData'](_0x4e28e7,_0x48f875),_0x49100d={'diffData':_0x3e5ea5['diffData'],'authorsIds':_0x3e5ea5['authorsIds'],'fromVersion':_0x4e28e7,'toVersion':_0x48f875};if(!_0xc95a97||_0x48f875!==_0xc95a97['toVersion']){const _0xbd5f88=_0x48f875-0x1,_0x5696e2=this['_source']['history']['getOperation'](_0xbd5f88);_0x49100d['createdAt']=_0x5696e2&&_0x5696e2['createdAt']||new Date();}if(this['_loadedStateData']&&_0x4e28e7===this['_loadedStateData']['fromVersion']){for(const _0x35cc0d of this['_loadedStateData']['authors'])_0x49100d['authorsIds']['includes'](_0x35cc0d['id'])||_0x49100d['authorsIds']['push'](_0x35cc0d['id']);}return _0x49100d;}['_loadRevisionData'](_0x3071e6){if(!_0x3071e6||_0x3071e6['diffData'])return Promise['resolve']();{const _0x43b432=this['editor']['config']['get']('collaboration.channelId');return this['adapter']['getRevision']({'channelId':_0x43b432,'revisionId':_0x3071e6['id']})['then'](_0x331258=>{_0x3071e6['diffData']=_0x331258['diffData'];});}}['_bufferUpdate'](_0x2bbb17,_0x34624c,_0x45a7fc){if(this['_bufferedUpdates']['has'](_0x2bbb17)){const _0x244328=this['_bufferedUpdates']['get'](_0x2bbb17);_0x34624c=_0x45a7fc?{..._0x244328,..._0x34624c}:{..._0x34624c,..._0x244328};}this['_bufferedUpdates']['set'](_0x2bbb17,_0x34624c);}['_getFromVersion'](_0x4b0d13){const _0x35c836=this['repository']['getRevisions']();_0x35c836['reverse'](),_0x35c836['shift']();const _0x5327b2=_0x35c836['find'](_0x4cfc43=>_0x4cfc43['toVersion']<=_0x4b0d13)['toVersion'];return _0x5327b2<this['_startingVersion']?this['_startingVersion']:_0x5327b2;}['_createInitialRevision'](_0x4e7f77){const _0x5b83e0=this['repository']['getRevision'](this['repository']['length']-0x1);if(_0x5b83e0)this['_initialRevisionId']=_0x5b83e0['id'];else{const _0x5f4679=!this['editor']['model']['document']['roots']['find'](_0xaf9fee=>this['editor']['model']['hasContent'](_0xaf9fee)),_0x37ecdc=this['editor']['plugins']['get']('Users')['me']['id'],_0x4616f0=m(this['editor']['locale'],_0x5f4679?'Empty\x20document':'Initial\x20revision');this['_makeRevision']({'from':_0x4e7f77,'to':_0x4e7f77,'id':this['_initialRevisionId'],'name':_0x4616f0,'creatorId':_0x37ecdc});}}['_createCurrentRevision'](_0x5059fe){const _0x87a9b3=this['_source']['getCurrentRevisionId']();this['currentRevision']=this['repository']['getRevision'](_0x87a9b3),this['currentRevision']||(this['currentRevision']=this['_makeRevision']({'from':_0x5059fe,'to':_0x5059fe,'id':_0x87a9b3,'name':'','creatorId':null}));}['_makeRevision']({name:_0x4c78c0,from:_0x5e1cf6,to:_0x11091f,creatorId:_0x4ca102,id:_0x26e8fb}){const _0x526d9f=this['buildRevisionData']({'from':_0x5e1cf6,'to':_0x11091f});_0x526d9f['name']=_0x4c78c0,_0x526d9f['creatorId']=_0x4ca102,_0x526d9f['id']=_0x26e8fb;const _0x58d29a=this['addRevisionData'](_0x526d9f);return this['adapter']&&this['_bufferUpdate'](_0x526d9f['id'],_0x526d9f,!0x0),_0x58d29a;}['_setConversion'](){this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'});}['_removeRevisionMarkers'](_0x2e892e){return(_0x2e892e=_0x2e892e['filter'](_0x3579b4=>!_0x3579b4['name']||'revision-start'!==_0x3579b4['name']&&'revision-end'!==_0x3579b4['name']))['forEach'](_0x17aef5=>{'string'!=typeof _0x17aef5&&(_0x17aef5['children']=this['_removeRevisionMarkers'](_0x17aef5['children']),_0x17aef5['attributes']=_0x17aef5['attributes']['filter'](_0x3cefc8=>!_0x3cefc8[0x0]['startsWith']('data-revision-')));}),_0x2e892e;}}function P(_0x4e8304,_0x1c3b1a){const _0x47ac99=_0x1c3b1a['editing']['view']['document'];if('string'==typeof _0x4e8304)return new _0x456b02(_0x47ac99,_0x4e8304);{const _0x1f9a27=_0x4e8304['children']['map'](_0xcb49b7=>P(_0xcb49b7,_0x1c3b1a));return new(E[_0x4e8304['type']]||_0x33f74e)(_0x47ac99,_0x4e8304['name'],_0x4e8304['attributes'],_0x1f9a27);}}class V{['editor'];['source'];['_savedMetaData'];['_lastFrom'];['_lastTo'];['_markers'];['_diffRoots'];['_diffRootsAttributes'];['_baseRoots'];['_baseRootsAttributes'];['_idsRoots'];['_baseIdsRoots'];['_touched'];['_touchedMarkers'];['_touchedRoots'];['_revisionId'];['_startingRevisionId'];constructor(_0x30f9f9){this['editor']=_0x30f9f9,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'](_0x267d72){this['source']=_0x267d72;const _0x24c596=new Map(),_0x533407=new Map(),_0x49341f=this['editor']['model']['document']['roots']['map'](_0x2ddf80=>_0x2ddf80['rootName']);for(const _0x554bad of _0x49341f){const _0x43ac6b=this['editor']['model']['document']['getRoot'](_0x554bad),_0x35e228=T(_0x43ac6b);_0x24c596['set'](_0x554bad,_0x35e228),_0x533407['set'](_0x554bad,Object['fromEntries'](_0x43ac6b['getAttributes']()));}const _0x232b7c=Array['from'](this['editor']['model']['markers'])['map'](_0x17ed32=>[_0x17ed32['name'],_0x17ed32['getRange']()]),_0x60eb4c=this['source']['version'];this['_saveMetaData'](_0x60eb4c,_0x24c596,_0x232b7c,_0x533407),this['_startingRevisionId']=this['_revisionId'];const _0x3b596a=new Map(),_0x32604b=new Map();for(const _0x1d8457 of _0x49341f){const _0x111af0=F(_0x1d8457);_0x3b596a['set'](_0x1d8457,_0x111af0),_0x32604b['set'](_0x1d8457,{});}this['_saveMetaData'](Number['NEGATIVE_INFINITY'],_0x3b596a,[],_0x32604b);}['getData'](_0x4ec227,_0x228af4){if(this['_lastFrom']===_0x4ec227&&this['_lastTo']<=_0x228af4)this['_savedMetaData']['size']>0x1&&this['_removeMetaData'](this['_lastTo']),this['_applyOperations'](this['_lastTo'],_0x228af4,!0x0);else{if(!this['_savedMetaData']['has'](_0x4ec227)){const _0x2e253d=this['_getPreviousFrom'](_0x4ec227);this['_calculateMetaData'](_0x2e253d,_0x4ec227,!0x1);}this['_calculateMetaData'](_0x4ec227,_0x228af4,!0x0);}return this['_lastFrom']=_0x4ec227,this['_lastTo']=_0x228af4,this['_getState']();}['loadState'](_0x465cb7){this['_reset'](),this['_lastFrom']=_0x465cb7['fromVersion'],this['_lastTo']=_0x465cb7['toVersion'];for(const _0x79fd04 in _0x465cb7['diffData']){const _0x4cd9a9=_0x465cb7['diffData'][_0x79fd04]['attachChange'],_0x1a7644=_0x265c8f(_0x465cb7['diffData'][_0x79fd04]['attributesBefore'])||{},_0xe23ea6=this['_makeModelFromViewString'](_0x465cb7['diffData'][_0x79fd04]['deletions']);_0xe23ea6['rootName']=_0x79fd04,_0xe23ea6['_isAttached']=!_0x4cd9a9||!_0x4cd9a9['isAttached'],_0xe23ea6['isAttached']=()=>_0xe23ea6['_isAttached'],this['_baseRoots']['set'](_0x79fd04,_0xe23ea6),this['_baseRootsAttributes']['set'](_0x79fd04,_0x1a7644),_0x4cd9a9&&this['_touchedRoots']['set'](_0x79fd04,_0x4cd9a9);const _0x1bf3da=this['_makeIdsRoot'](_0xe23ea6);this['_baseIdsRoots']['set'](_0x79fd04,_0x1bf3da);for(const [_0x442379,_0x564ed6]of _0xe23ea6['markers']){if(!_0x442379['startsWith']('revision:'))continue;const _0x3f0192=_0x442379['split'](':')[0x2];for(const _0x9db293 of _0x564ed6['getWalker']({'singleCharacters':!0x0})){const _0xfc93e4=this['_getVidAttributeName'](_0x9db293),_0x4d3efa='elementEnd'==_0x9db293['type']?_0x9db293['previousPosition']['path']['slice'](0x0,-0x1):_0x9db293['previousPosition']['path'],_0x2dc91b=_0x1bf3da['getNodeByPath'](_0x4d3efa)['getAttribute'](_0xfc93e4);this['_touched']['set'](_0x2dc91b,{'userId':_0x3f0192});}}}this['_startingRevisionId']=this['_revisionId'];const _0x2816b6=[...Array(this['_revisionId'])['keys']()]['slice'](0x1)['filter'](_0x349c7d=>!this['_touched']['has'](_0x349c7d));let _0x32a02d=0x0;const _0x3111d2=new Map();for(const _0x41ec71 in _0x465cb7['diffData']){const _0x55b78d=_0x465cb7['diffData'][_0x41ec71]['attachChange'],_0x1a401a=_0x265c8f(_0x465cb7['diffData'][_0x41ec71]['attributesAfter'])||{},_0x86a839=this['_makeModelFromViewString'](_0x465cb7['diffData'][_0x41ec71]['insertions']);_0x86a839['rootName']=_0x41ec71,_0x86a839['_isAttached']=!_0x55b78d||_0x55b78d['isAttached'],_0x86a839['isAttached']=()=>_0x86a839['_isAttached'],this['_diffRoots']['set'](_0x41ec71,_0x86a839),this['_diffRootsAttributes']['set'](_0x41ec71,_0x1a401a);const _0x2e7e67=this['_makeIdsRoot'](_0x86a839,Number['NEGATIVE_INFINITY']);this['_idsRoots']['set'](_0x41ec71,_0x2e7e67),_0x3111d2['set'](_0x41ec71,_0x86a839['isAttached']()?_0x1a401a:{});for(const [_0x1bc90d,_0x100c04]of _0x86a839['markers']){if(!_0x1bc90d['startsWith']('revision:'))continue;const _0x3f73eb=_0x1bc90d['split'](':')[0x2];for(const _0x14b1b3 of _0x100c04['getWalker']({'singleCharacters':!0x0})){const _0x476cef=this['_getVidAttributeName'](_0x14b1b3),_0x6f1bf=this['_revisionId']++,_0x589387='elementEnd'==_0x14b1b3['type']?_0x14b1b3['previousPosition']['path']['slice'](0x0,-0x1):_0x14b1b3['previousPosition']['path'];_0x2e7e67['getNodeByPath'](_0x589387)['_setAttribute'](_0x476cef,_0x6f1bf),this['_touched']['set'](_0x6f1bf,{'userId':_0x3f73eb});}}for(const _0x13d86c of this['editor']['model']['createRangeIn'](_0x86a839)['getWalker']({'singleCharacters':!0x0})){const _0x4a8bd9=this['_getVidAttributeName'](_0x13d86c),_0x1ee8f3='elementEnd'==_0x13d86c['type']?_0x13d86c['previousPosition']['path']['slice'](0x0,-0x1):_0x13d86c['previousPosition']['path'],_0x32ae9c=_0x2e7e67['getNodeByPath'](_0x1ee8f3);_0x32ae9c['getAttribute'](_0x4a8bd9)>0x0||_0x32ae9c['_setAttribute'](_0x4a8bd9,_0x2816b6[_0x32a02d++]);}for(const [_0x4dbf59,_0x462f13]of _0x86a839['markers'])_0x4dbf59['startsWith']('revision:')||this['_markers']['set'](_0x4dbf59,_0x462f13);}const _0x29a48e=F('$graveyard');this['_baseRoots']['set']('$graveyard',_0x29a48e),this['_baseIdsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x29a48e,0x1));const _0x2700e2=F('$graveyard');this['_diffRoots']['set']('$graveyard',_0x2700e2),this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x2700e2,0x1));const _0x471bf7=Array['from'](this['_diffRoots'])['map'](([_0x34699b,_0xe6d427])=>[_0x34699b,T(_0xe6d427)]);this['_saveMetaData'](this['_lastTo'],_0x471bf7,this['_markers'],_0x3111d2);}['_makeModelFromViewString'](_0x5209ff){const _0x18f341=JSON['parse'](_0x5209ff),_0x4c093c=this['editor']['editing']['view']['document'],_0x21315f=new _0x52b2a0(_0x4c093c,_0x18f341['map'](_0x3e08ac=>P(_0x3e08ac,this['editor'])));return this['editor']['data']['toModel'](_0x21315f);}['_saveMetaData'](_0x3ab866,_0x17ae92,_0x2a3da0,_0x3cc95b){const _0x356e09=new Map(_0x17ae92),_0x462245=new Map(_0x265c8f(_0x3cc95b)),_0x3d5e63=new Map();for(const [_0x141e93,_0x43e008]of _0x2a3da0)_0x3d5e63['set'](_0x141e93,{'start':_0x43e008['start']['clone'](),'end':_0x43e008['end']['clone'](),'rootName':_0x43e008['root']['rootName']});this['_savedMetaData']['set'](_0x3ab866,{'roots':_0x356e09,'markers':_0x3d5e63,'rootsAttributes':_0x462245});}['_removeMetaData'](_0x49a465){this['_savedMetaData']['delete'](_0x49a465);}['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'](_0x4b1068,_0x112bd2=null){let _0x4937c6=null;_0x4b1068['is']('documentFragment')||(_0x4937c6=new ut(_0x4b1068['name'],{'vid_start':null===_0x112bd2?this['_revisionId']++:_0x112bd2++}));const _0x204f22=[];for(const _0x1ca981 of _0x4b1068['getChildren']())if(_0x1ca981['is']('element')){_0x204f22['push'](this['_makeIdsRoot'](_0x1ca981,_0x112bd2));const _0x4d1d01=_0x204f22[_0x204f22['length']-0x1];null!==_0x112bd2&&(_0x112bd2=_0x4d1d01['is']('element','$text')?_0x4d1d01['getAttribute']('vid')+0x1:_0x4d1d01['getAttribute']('vid_end')+0x1);}else{for(let _0x410dab=0x0;_0x410dab<_0x1ca981['offsetSize'];_0x410dab++)_0x204f22['push'](new ut('$text',{'vid':null===_0x112bd2?this['_revisionId']++:_0x112bd2++}));}if(_0x4b1068['is']('documentFragment')){const _0x4c3f5b=F(_0x4b1068['rootName']);return _0x4c3f5b['_insertChild'](0x0,_0x204f22),_0x4c3f5b;}return _0x4937c6['_setAttribute']('vid_end',null===_0x112bd2?this['_revisionId']++:_0x112bd2++),_0x4937c6['_insertChild'](0x0,_0x204f22),_0x4937c6;}['_calculateMetaData'](_0x2da826,_0x13702a,_0x7b55e1){this['_reset']();const {roots:_0x5cc6a3,markers:_0x526475,rootsAttributes:_0x1a21cf}=this['_savedMetaData']['get'](_0x2da826);this['_baseRoots']=new Map(_0x5cc6a3),this['_baseRootsAttributes']=new Map(_0x265c8f(_0x1a21cf));for(const [_0x11da86,_0x5c5217]of this['_baseRoots'])if('$graveyard'!==_0x11da86&&(this['_diffRoots']['set'](_0x11da86,T(_0x5c5217)),this['_diffRootsAttributes']=new Map(_0x265c8f(_0x1a21cf)),_0x7b55e1)){const _0x45b3f9=this['_revisionId'];this['_idsRoots']['set'](_0x11da86,this['_makeIdsRoot'](_0x5c5217)),this['_baseIdsRoots']['set'](_0x11da86,this['_makeIdsRoot'](_0x5c5217,_0x45b3f9));}this['_startingRevisionId']=this['_revisionId'],this['_diffRoots']['set']('$graveyard',T(this['_baseRoots']['get']('$graveyard'))),_0x7b55e1&&this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](this['_baseRoots']['get']('$graveyard')));for(const [_0x47badc,_0x49d1c0]of _0x526475){const _0x126375=this['_baseRoots']['get'](_0x49d1c0['rootName']),_0x20fb38=this['_diffRoots']['get'](_0x49d1c0['rootName']),_0x2475e5=new ft(this['_fixPosition'](_0x49d1c0['start'],_0x126375),this['_fixPosition'](_0x49d1c0['end'],_0x126375)),_0x3f6eef=this['_fixRange'](_0x2475e5,_0x20fb38);_0x126375['markers']['set'](_0x47badc,_0x2475e5),this['_markers']['set'](_0x47badc,_0x3f6eef);}this['_applyOperations'](_0x2da826,_0x13702a,_0x7b55e1);}['_applyOperations'](_0xff358a,_0x298713,_0x57eb20){for(const _0x44ef96 of this['source']['getOperations'](_0xff358a,_0x298713))this['_handleOperation'](_0x44ef96,_0x57eb20);for(const _0x129f04 of this['_diffRoots']['values']())_0x129f04['markers']['clear']();for(const [_0x4f847c,_0x148674]of this['_markers']){this['_diffRoots']['get'](_0x148674['root']['rootName'])['markers']['set'](_0x4f847c,_0x148674['clone']());}const _0x14ba8a=new Map(),_0x23378a=new Map();for(const [_0xbe4abc,_0x9ab80d]of this['_diffRoots'])_0x14ba8a['set'](_0xbe4abc,T(_0x9ab80d)),_0x23378a['set'](_0xbe4abc,this['_diffRootsAttributes']['get'](_0xbe4abc));this['_saveMetaData'](_0x298713,_0x14ba8a,this['_markers'],_0x23378a);}['_getPreviousFrom'](_0xfd95d4){const _0x43bbcd=Array['from'](this['_savedMetaData']['keys']());_0x43bbcd['sort']((_0xbc82b8,_0x16b1e8)=>_0xbc82b8-_0x16b1e8),_0x43bbcd['reverse']();for(const _0x49cdfa of _0x43bbcd)if(_0x49cdfa<_0xfd95d4)return _0x49cdfa;return Number['NEGATIVE_INFINITY'];}['_copyMarkers'](_0x57d350,_0x7c6449){const _0x58a0c6=Array['from'](_0x7c6449['markers'])['map'](([_0x1d8224,_0x227338])=>[_0x1d8224,this['_fixRange'](_0x227338,_0x57d350)]);_0x57d350['markers']=new Map(_0x58a0c6);}['_transformMarkers'](_0x426d70){for(const _0x4233ee of this['_markers']['values']()){const _0x3e5638=_0x4233ee['getTransformedByOperation'](_0x426d70),_0x3a4e48=ft['_createFromRanges'](_0x3e5638);_0x4233ee['start']=_0x3a4e48['start'],_0x4233ee['end']=_0x3a4e48['end'];}}['_handleOperation'](_0x3183de,_0x1c0dc6){if('addRoot'!=_0x3183de['type']&&'detachRoot'!=_0x3183de['type']){if('insert'==_0x3183de['type']){const _0x3cec82=_0x3183de['position']['root']['rootName'];this['_diffRoots']['has'](_0x3cec82)||(this['_diffRoots']['set'](_0x3cec82,F(_0x3cec82,!0x0)),this['_diffRootsAttributes']['set'](_0x3cec82,{}),_0x1c0dc6&&this['_idsRoots']['set'](_0x3cec82,F(_0x3cec82,!0x0)));}else{if('addRootAttribute'==_0x3183de['type']||'removeRootAttribute'==_0x3183de['type']||'changeRootAttribute'==_0x3183de['type'])return void this['_handleRootAttributeOperation'](_0x3183de);'marker'==_0x3183de['type']&&this['_handleMarkerOperation'](_0x3183de);}if('marker'!==_0x3183de['type']){const _0x5a6998=this['_cloneOperation'](_0x3183de,this['_diffRoots']);_0x5a6998['_execute'](),this['_transformMarkers'](_0x5a6998);}if(_0x1c0dc6)switch(_0x3183de['type']){case'insert':this['_handleInsertOperation'](_0x3183de);break;case'move':case'remove':case'reinsert':this['_handleMoveOperation'](_0x3183de);break;case'merge':this['_handleMergeOperation'](_0x3183de);break;case'split':this['_handleSplitOperation'](_0x3183de);}}else this['_handleRootOperation'](_0x3183de,_0x1c0dc6);}['_cloneOperation'](_0x42bfc3,_0x598a3f){const _0x4137df=_0x42bfc3['clone']();return _0x4137df['_authorId']=_0x42bfc3['_authorId'],this['_fixOperation'](_0x4137df,_0x598a3f),_0x4137df;}['_getBaseVids'](_0x17ed7f){return _0x17ed7f['map'](_0x553890=>{const _0x5e8858=this['_getVidAttributeName'](_0x553890);return Number(_0x553890['item']['getAttribute'](_0x5e8858));});}['_generateTape'](_0x560687,_0x21a31d){if(_0x560687['is']('element','$text'))_0x21a31d['push']({'item':_0x560687,'type':'text'});else{_0x560687['is']('element')&&_0x21a31d['push']({'item':_0x560687,'type':'elementStart'});for(const _0x27afc9 of _0x560687['getChildren']())this['_generateTape'](_0x27afc9,_0x21a31d);_0x560687['is']('element')&&_0x21a31d['push']({'item':_0x560687,'type':'elementEnd'});}return _0x21a31d;}['_getState'](){const _0x46f25a=new Map(this['_touched']),_0xb7f121=new Map(_0x46f25a),_0x25ac9c=new Map(),_0x3e0fd8={'insertions':{},'deletions':{}},_0x490d41={'insertions':{},'deletions':{}},_0x36c907=new Map(),_0xb11eb2=new Set([...this['_baseRoots']['keys'](),...this['_diffRoots']['keys']()]);_0xb11eb2['delete']('$graveyard');for(const _0x292c5a of _0xb11eb2){const _0x58166d=this['_diffRoots']['get'](_0x292c5a)||F(_0x292c5a,!0x1),_0x3e67be=this['_baseRoots']['get'](_0x292c5a)||F(_0x292c5a,!0x1);_0x58166d['isAttached']()||_0x3e67be['isAttached']()?(_0x3e0fd8['insertions'][_0x292c5a]=T(_0x58166d),_0x3e0fd8['deletions'][_0x292c5a]=T(_0x3e67be),this['_copyMarkers'](_0x3e0fd8['deletions'][_0x292c5a],_0x3e67be),this['_copyMarkers'](_0x3e0fd8['insertions'][_0x292c5a],_0x58166d),_0x490d41['insertions'][_0x292c5a]=this['_generateTape'](this['_idsRoots']['get'](_0x292c5a),[]),_0x490d41['deletions'][_0x292c5a]=this['_generateTape'](this['_baseIdsRoots']['get'](_0x292c5a)||F(_0x292c5a,!0x1),[])):_0xb11eb2['delete'](_0x292c5a);}for(const _0x58725e of _0xb11eb2){const _0x5a998a=_0x490d41['insertions'][_0x58725e];for(const _0xfa29ed of _0x5a998a){const _0x393479=this['_getVidAttributeName'](_0xfa29ed),_0x14f816=_0xfa29ed['item']['getAttribute'](_0x393479);_0xb7f121['delete'](_0x14f816),_0x14f816>=this['_startingRevisionId']&&_0x25ac9c['set'](_0x14f816,_0x46f25a['get'](_0x14f816));}}for(const _0x5f3598 of _0xb11eb2){const _0x5c808d=_0x490d41['insertions'][_0x5f3598],_0x50a4f8=this['_getBaseVids'](_0x490d41['deletions'][_0x5f3598]);let _0x21894b=0x0;for(const _0x431de2 of _0x5c808d){const _0x324d4d=this['_getVidAttributeName'](_0x431de2),_0x6f2049=_0x431de2['item']['getAttribute'](_0x324d4d);if(!_0x25ac9c['has'](_0x6f2049)&&!_0x36c907['has'](_0x6f2049)){if(_0xb7f121['has'](_0x6f2049))_0x21894b++;else{if(_0x6f2049!=_0x50a4f8[_0x21894b]){const _0x1f49bb=_0x46f25a['get'](_0x6f2049)||_0x46f25a['get'](_0x50a4f8[_0x21894b]);for(;_0x6f2049!=_0x50a4f8[_0x21894b];)_0xb7f121['has'](_0x50a4f8[_0x21894b])||(_0x36c907['set'](_0x50a4f8[_0x21894b],_0x1f49bb),_0x46f25a['set'](_0x50a4f8[_0x21894b],_0x1f49bb)),_0x21894b++;}_0x21894b++;}}}}for(const _0xc97190 of _0xb11eb2){const _0x1755aa=_0x490d41['insertions'][_0xc97190];for(const _0x5e0fda of _0x1755aa){const _0x499495=this['_getVidAttributeName'](_0x5e0fda),_0x1159c4=_0x5e0fda['item']['getAttribute'](_0x499495);if(_0x36c907['has'](_0x1159c4)){const _0xeb648b=_0x36c907['get'](_0x1159c4);_0xb7f121['has'](_0x1159c4)||_0xb7f121['set'](_0x1159c4,{..._0xeb648b}),_0x25ac9c['set'](_0x1159c4,{..._0xeb648b});}}}for(const _0x3d84e2 of _0xb7f121['keys']())_0x3d84e2>=this['_startingRevisionId']&&_0xb7f121['delete'](_0x3d84e2);const _0x33490b=new Map();for(const _0x4dd8be of _0xb11eb2){let _0xa43633=_0x490d41['insertions'][_0x4dd8be];for(const _0xe3c945 of _0xa43633)if(_0xe3c945['item']['is']('element','tableCell')){const _0x56300f=this['_getVidAttributeName'](_0xe3c945),_0x21122e=_0xe3c945['item']['getAttribute'](_0x56300f);if(_0x25ac9c['has'](_0x21122e)){const _0x690b44=_0xe3c945['item']['parent']['parent']['getAttribute']('vid_start'),_0x345c94=_0x33490b['get'](_0x690b44)||new Set();_0x345c94['add'](_0x25ac9c['get'](_0x21122e)['userId']),_0x33490b['set'](_0x690b44,_0x345c94);}}_0xa43633=_0x490d41['deletions'][_0x4dd8be];for(const _0x11c594 of _0xa43633)if(_0x11c594['item']['is']('element','tableCell')){const _0xbc78e9=this['_getVidAttributeName'](_0x11c594),_0xcea201=_0x11c594['item']['getAttribute'](_0xbc78e9);if(_0xb7f121['has'](_0xcea201)){const _0x5750ff=_0x11c594['item']['parent']['parent']['getAttribute']('vid_start'),_0x569543=_0x33490b['get'](_0x5750ff)||new Set();_0x569543['add'](_0xb7f121['get'](_0xcea201)['userId']),_0x33490b['set'](_0x5750ff,_0x569543);}}for(const _0x2857fa of _0x33490b['keys']())(_0x25ac9c['has'](_0x2857fa)||_0xb7f121['has'](_0x2857fa))&&_0x33490b['delete'](_0x2857fa);}for(const _0x34e880 of _0xb11eb2){const _0x541529=_0x490d41['insertions'][_0x34e880];let _0x5051c5=null,_0x1b7abc=null;for(const _0x5037c8 of _0x541529){const _0x3e5d9f=this['_getVidAttributeName'](_0x5037c8),_0x42091b=_0x5037c8['item']['getAttribute'](_0x3e5d9f),_0x55d757=_0x33490b['get'](_0x42091b);_0x55d757&&'elementStart'==_0x5037c8['type']&&(_0x5051c5=Array['from'](_0x55d757)[0x0],_0x1b7abc=_0x5037c8['item']['getAttribute']('vid_end')),_0x5051c5&&(_0xb7f121['set'](_0x42091b,{'userId':_0x5051c5}),_0x25ac9c['set'](_0x42091b,{'userId':_0x5051c5})),_0x42091b==_0x1b7abc&&(_0x5051c5=null,_0x1b7abc=null);}}const _0x2bb71a={},_0x58018f=new Set();for(const _0x50aa7d of _0xb11eb2){const _0x33f5e9=_0x3e0fd8['deletions'][_0x50aa7d],_0x47c215=_0x3e0fd8['insertions'][_0x50aa7d];for(const {userId:_0x5c29e4}of this['_touchedMarkers']['values']())null!==_0x5c29e4&&_0x58018f['add'](_0x5c29e4);for(const {userId:_0x512c0d}of this['_touchedRoots']['values']())null!==_0x512c0d&&_0x58018f['add'](_0x512c0d);this['_markChanges'](_0x47c215,_0x490d41['insertions'][_0x50aa7d],_0x25ac9c,'insertion',_0x58018f),this['_markChanges'](_0x33f5e9,_0x490d41['deletions'][_0x50aa7d],_0xb7f121,'deletion',_0x58018f),_0x2bb71a[_0x50aa7d]={'insertions':this['_prepareViewToSave'](_0x47c215),'deletions':this['_prepareViewToSave'](_0x33f5e9),'attachChange':this['_touchedRoots']['get'](_0x50aa7d)||null,'attributesBefore':_0x265c8f(this['_baseRootsAttributes']['get'](_0x50aa7d))||{},'attributesAfter':_0x265c8f(this['_diffRootsAttributes']['get'](_0x50aa7d))};}return{'diffData':_0x2bb71a,'authorsIds':Array['from'](_0x58018f)};}['_processRootBeforeSave'](_0x190f05){for(const [,_0x2488aa]of _0x190f05['markers']){const _0x5803ce=_0x2488aa['start']['getAncestors']()['filter'](_0x1ef134=>'tableCell'==_0x1ef134['name']);for(const _0x55d0b9 of _0x5803ce)0x1==_0x55d0b9['childCount']&&_0x55d0b9['getChild'](0x0)['is']('element','paragraph')&&_0x55d0b9['getChild'](0x0)['_setAttribute']('keepParagraph',!0x0);}}['_prepareViewToSave'](_0x4bbf29){this['_processRootBeforeSave'](_0x4bbf29);const _0x377052=this['editor']['data']['toView'](_0x4bbf29,{}),_0x50ca6b=Array['from'](_0x377052['getChildren']())['map'](_0x557209=>this['_getViewJson'](_0x557209));return JSON['stringify'](_0x50ca6b);}['_getViewJson'](_0x1aa8f2){if(_0x1aa8f2['is']('$text'))return _0x1aa8f2['data'];{const _0x22c16e=_0x1aa8f2;return{'type':Object['keys'](E)['find'](_0x5d0b61=>_0x1aa8f2 instanceof E[_0x5d0b61]),'name':_0x22c16e['name'],'attributes':Array['from'](_0x22c16e['getAttributes']()),'children':Array['from'](_0x22c16e['getChildren']())['map'](_0x5a7b23=>this['_getViewJson'](_0x5a7b23))};}}['_markChanges'](_0x5b04f8,_0x3a73c7,_0x184ecb,_0x4e4d43,_0x3d177e){let _0x2ec12f=null,_0x390e6b=null,_0x272cae=0x0;const _0x4c9504=this['editor']['model'];for(let _0x569c68=0x0;_0x569c68<_0x3a73c7['length'];_0x569c68++){const _0xf4f051=this['_getVidAttributeName'](_0x3a73c7[_0x569c68]),_0x4ed49e=_0x3a73c7[_0x569c68]['item']['getAttribute'](_0xf4f051),_0xb96b77=_0x184ecb['get'](_0x4ed49e),_0x79dfe1=_0x569c68==_0x3a73c7['length']-0x1;(!_0x2ec12f&&_0xb96b77&&(_0x2ec12f=_0xb96b77,_0x390e6b=_0x3a73c7[_0x569c68]),_0x2ec12f&&(!_0xb96b77||_0xb96b77['userId']!=_0x2ec12f['userId']))&&(_0x4b0b62(_0xb96b77,B(_0x390e6b,_0x5b04f8,_0x4c9504),B(_0x3a73c7[_0x569c68],_0x5b04f8,_0x4c9504)),_0x2ec12f=_0xb96b77||null,_0x390e6b=_0xb96b77?_0x3a73c7[_0x569c68]:null),_0x2ec12f&&_0x79dfe1&&_0x4b0b62(_0xb96b77,B(_0x390e6b,_0x5b04f8,_0x4c9504),J(_0x3a73c7[_0x569c68],_0x5b04f8,_0x4c9504));}function _0x4b0b62(_0x2df618,_0x1458f3,_0xcbc15){const _0x1e967d=_0x2ec12f['userId'],_0x523235='revision:'+_0x4e4d43+':'+_0x1e967d+':'+_0x272cae++,_0x5e4b5f=_0x4c9504['createRange'](_0x1458f3,_0xcbc15);_0x5b04f8['markers']['set'](_0x523235,_0x5e4b5f),null!==_0x1e967d&&_0x3d177e['add'](_0x1e967d);}}['_getVidAttributeName'](_0x27ee01){switch(_0x27ee01['type']){case'elementStart':return'vid_start';case'elementEnd':return'vid_end';default:return'vid';}}['_fixOperation'](_0xf82e27,_0x5e6d40){_0xf82e27['baseVersion']=null;for(const _0x11aa4a in _0xf82e27){const _0x59f9f6=_0xf82e27[_0x11aa4a];if(_0x59f9f6 instanceof vt){const _0x4fd969=_0x5e6d40['get'](_0x59f9f6['root']['rootName']);_0xf82e27[_0x11aa4a]=this['_fixPosition'](_0x59f9f6,_0x4fd969);}if(_0x59f9f6 instanceof ft){const _0x3d1b68=_0x5e6d40['get'](_0x59f9f6['root']['rootName']);_0xf82e27[_0x11aa4a]=this['_fixRange'](_0x59f9f6,_0x3d1b68);}'root'===_0x11aa4a&&(_0xf82e27['root']=_0x5e6d40['get'](_0xf82e27['root']['rootName']));}}['_fixRange'](_0x3d7f4d,_0x15558a){return this['editor']['model']['createRange'](this['_fixPosition'](_0x3d7f4d['start'],_0x15558a),this['_fixPosition'](_0x3d7f4d['end'],_0x15558a));}['_fixPosition'](_0x5a8bfe,_0x5e83b7){return this['editor']['model']['createPositionFromPath'](_0x5e83b7,_0x5a8bfe['path'],_0x5a8bfe['stickiness']);}['_handleInsertOperation'](_0x1078c9){const _0x31cbb6=this['_idsRoots']['get'](_0x1078c9['position']['root']['rootName']),_0x2a77e1=this['_fixPosition'](_0x1078c9['position'],_0x31cbb6),_0x4822ac=null===_0x1078c9['_authorId']?null:_0x1078c9['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x5405a5=_0x2a77e1['parent'],_0x1afc00=this['_revisionId'],_0x219f8e=[];for(const _0x1122aa of _0x1078c9['nodes'])if(_0x1122aa['is']('element'))_0x219f8e['push'](this['_makeIdsRoot'](_0x1122aa));else{for(let _0x5d3c28=0x0;_0x5d3c28<_0x1122aa['offsetSize'];_0x5d3c28++)_0x219f8e['push'](new ut('$text',{'vid':this['_revisionId']++}));}const _0x275adb=this['_revisionId'];for(let _0x181adc=_0x1afc00;_0x181adc<_0x275adb;_0x181adc++)this['_touched']['set'](_0x181adc,{'userId':_0x4822ac});_0x5405a5['_insertChild'](_0x2a77e1['offset'],_0x219f8e);}['_handleMoveOperation'](_0x3c5c37){(_0x3c5c37=this['_cloneOperation'](_0x3c5c37,this['_idsRoots']))['_execute']();const _0x3848c2=null===_0x3c5c37['_authorId']?null:_0x3c5c37['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x5ca4ed=_0x3c5c37['getMovedRangeStart'](),_0x178ced=_0x5ca4ed['parent'],_0x31efd2=_0x5ca4ed['offset'];!function _0x569ea3(_0x47d957,_0x4e5776,_0x522c93,_0x3851dc){for(let _0x3aea99=_0x522c93;_0x3aea99<_0x3851dc;_0x3aea99++){const _0x32023f=_0x4e5776['getChild'](_0x3aea99);_0x32023f['is']('element','$text')?_0x47d957['set'](_0x32023f['getAttribute']('vid'),{'userId':_0x3848c2}):(_0x47d957['set'](_0x32023f['getAttribute']('vid_start'),{'userId':_0x3848c2}),_0x569ea3(_0x47d957,_0x32023f,0x0,_0x32023f['childCount']),_0x47d957['set'](_0x32023f['getAttribute']('vid_end'),{'userId':_0x3848c2}));}}(this['_touched'],_0x178ced,_0x31efd2,_0x31efd2+_0x3c5c37['howMany']);}['_handleMergeOperation'](_0x3538ec){const _0x38cc55=null===(_0x3538ec=this['_cloneOperation'](_0x3538ec,this['_idsRoots']))['_authorId']?null:_0x3538ec['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x197fe2=_0x3538ec['targetPosition']['parent'],_0x4d6eef=_0x3538ec['sourcePosition']['parent'],_0x1266c4=_0x197fe2['getAttribute']('vid_end'),_0xe023af=_0x4d6eef['getAttribute']('vid_start');_0x197fe2['_setAttribute']('vid_end',_0x4d6eef['getAttribute']('vid_end')),_0x4d6eef['_setAttribute']('vid_end',_0x1266c4),this['_touched']['set'](_0xe023af,{'userId':_0x38cc55}),this['_touched']['set'](_0x1266c4,{'userId':_0x38cc55}),_0x3538ec['_execute']();}['_handleSplitOperation'](_0x2c9ef7){const _0x4661e9=null===(_0x2c9ef7=this['_cloneOperation'](_0x2c9ef7,this['_idsRoots']))['_authorId']?null:_0x2c9ef7['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x302d0d=_0x2c9ef7['graveyardPosition'],_0x22d14d=_0x2c9ef7['splitPosition']['parent'];_0x2c9ef7['_execute']();const _0x8cca25=_0x22d14d['getAttribute']('vid_end'),_0x113068=_0x2c9ef7['insertionPosition']['nodeAfter'];if(_0x302d0d){const _0x4a5d96=_0x113068['getAttribute']('vid_end'),_0x44164b=_0x22d14d['getAttribute']('vid_end');_0x22d14d['_setAttribute']('vid_end',_0x4a5d96),_0x113068['_setAttribute']('vid_end',_0x44164b),this['_touched']['set'](_0x22d14d['getAttribute']('vid_end'),{'userId':_0x4661e9}),this['_touched']['set'](_0x113068['getAttribute']('vid_start'),{'userId':_0x4661e9});}else{const _0x501cb2=this['_revisionId']++,_0x326e50=this['_revisionId']++;_0x22d14d['_setAttribute']('vid_end',_0x501cb2),_0x113068['_setAttribute']('vid_start',_0x326e50),_0x113068['_setAttribute']('vid_end',_0x8cca25),this['_touched']['set'](_0x501cb2,{'userId':_0x4661e9}),this['_touched']['set'](_0x326e50,{'userId':_0x4661e9});}}['_handleMarkerOperation'](_0x2885e2){if(!_0x2885e2['affectsData'])return;const _0x2f29bf=(_0x2885e2=this['_cloneOperation'](_0x2885e2,this['_diffRoots']))['oldRange']?_0x2885e2['oldRange']['root']:null,_0x3c0d9f=_0x2885e2['newRange']?_0x2885e2['newRange']['root']:null;_0x2f29bf&&this['_markers']['delete'](_0x2885e2['name']),_0x3c0d9f&&this['_markers']['set'](_0x2885e2['name'],_0x2885e2['newRange']['clone']());const _0xe70796=null===_0x2885e2['_authorId']?null:_0x2885e2['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0xcbac8e=_0x2885e2['name'];if(!this['_touchedMarkers']['has'](_0xcbac8e))return void this['_touchedMarkers']['set'](_0xcbac8e,{'range':_0x2885e2['oldRange'],'userId':_0xe70796});const _0x2a73cc=this['_touchedMarkers']['get'](_0xcbac8e),_0x49cc98=_0x2a73cc['range'],_0x341eee=_0x2885e2['newRange'];null==_0x49cc98&&null==_0x341eee||_0x49cc98&&_0x341eee&&_0x49cc98['isEqual'](_0x341eee)?this['_touchedMarkers']['delete'](_0x2885e2['name']):_0x2a73cc['userId']=_0xe70796;}['_handleRootOperation'](_0x2065ca,_0x431220){this['_diffRoots']['has'](_0x2065ca['rootName'])?this['_diffRoots']['get'](_0x2065ca['rootName'])['_isAttached']=_0x2065ca['isAdd']:(this['_diffRoots']['set'](_0x2065ca['rootName'],F(_0x2065ca['rootName'],!0x0)),this['_diffRootsAttributes']['set'](_0x2065ca['rootName'],{}),_0x431220&&this['_idsRoots']['set'](_0x2065ca['rootName'],F(_0x2065ca['rootName'],!0x0)));const _0x31c5e4=null===_0x2065ca['_authorId']?null:_0x2065ca['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x1382f7=this['_touchedRoots']['get'](_0x2065ca['rootName']);_0x1382f7&&_0x1382f7['userId']===_0x31c5e4?this['_touchedRoots']['delete'](_0x2065ca['rootName']):this['_touchedRoots']['set'](_0x2065ca['rootName'],{'userId':_0x31c5e4,'isAttached':_0x2065ca['isAdd']});}['_handleRootAttributeOperation'](_0x59d0ae){const _0x11fd00=this['_diffRootsAttributes']['get'](_0x59d0ae['root']['rootName']);null===_0x59d0ae['newValue']?delete _0x11fd00[_0x59d0ae['key']]:_0x11fd00[_0x59d0ae['key']]=_0x59d0ae['newValue'];}}function T(_0x216539){const _0x5adb1a=F(_0x216539['rootName'],_0x216539['isAttached']());for(const _0x2e3c28 of _0x216539['getChildren']()){const _0x3d4766=_0x2e3c28['_clone'](!0x0);_0x5adb1a['_appendChild'](_0x3d4766);}return _0x5adb1a;}function F(_0x446b0e,_0x167d45=!0x0){const _0x1183ff=new gt();return _0x1183ff['rootName']=_0x446b0e,_0x1183ff['_isAttached']=_0x167d45,_0x1183ff['isAttached']=()=>_0x1183ff['_isAttached'],_0x1183ff;}function B(_0x5744f5,_0x50ceaf,_0x361144){const _0x26a253='elementEnd'==_0x5744f5['type']?_0x361144['createPositionAt'](_0x5744f5['item'],'end'):_0x361144['createPositionBefore'](_0x5744f5['item']);return _0x361144['createPositionFromPath'](_0x50ceaf,_0x26a253['path'],_0x26a253['stickiness']);}function J(_0xd5bc6b,_0x49c1e0,_0x2c2d83){const _0x2de02a='elementStart'==_0xd5bc6b['type']?_0x2c2d83['createPositionAt'](_0xd5bc6b['item'],0x0):_0x2c2d83['createPositionAfter'](_0xd5bc6b['item']);return _0x2c2d83['createPositionFromPath'](_0x49c1e0,_0x2de02a['path'],_0x2de02a['stickiness']);}class hs extends ts{['focusTracker'];['keystrokes'];['revisionNameInputView'];constructor(_0x769c1e,_0x505314){super(_0x769c1e),this['focusTracker']=new _0x5be165(),this['keystrokes']=new _0x254006(),this['set']('revisionNameInputValue',''),this['revisionNameInputView']=this['_createRevisionNameInput'](_0x505314),this['setTemplate']({'tag':'form','attributes':{'class':['ck','ck-revision-history-save-revision-form','ck-responsive-form'],'tabindex':'-1'},'children':[this['revisionNameInputView']]}),_0x502efa(this);}['render'](){super['render'](),_0x4b9bcb({'view':this}),this['focusTracker']['add'](this['revisionNameInputView']['element']),this['keystrokes']['listenTo'](this['element']);const _0x27e3e1=_0x39152c=>_0x39152c['stopPropagation']();this['keystrokes']['set']('arrowright',_0x27e3e1),this['keystrokes']['set']('arrowleft',_0x27e3e1),this['keystrokes']['set']('arrowup',_0x27e3e1),this['keystrokes']['set']('arrowdown',_0x27e3e1);}['focus'](){this['revisionNameInputView']['focus']();}get['revisionName'](){return this['revisionNameInputView']['fieldView']['element']['value']['trim']();}set['revisionName'](_0x5579e5){this['revisionNameInputView']['fieldView']['element']['value']=_0x5579e5['trim']();}['reset'](){this['revisionNameInputView']['fieldView']['element']['value']='',this['revisionNameInputView']['errorText']=null;}['_createRevisionNameInput'](_0x3ac1fe){const _0x53aff1=new _0x122467(this['locale'],_0x5c1472),_0x20d4aa=_0x53aff1['fieldView'];_0x20d4aa['extendTemplate']({'attributes':{'maxlength':'220'}});let _0x407661=m(this['locale'],'Name\x20of\x20the\x20revision');return!_0x3ac1fe&&(_0x407661+='\x20('+m(this['locale'],'optional')+')'),(_0x53aff1['label']=_0x407661,_0x20d4aa['on']('input',()=>{this['revisionNameInputValue']=_0x20d4aa['element']['value']['trim']();}),_0x53aff1);}}class f extends _0x52f205{static get['pluginName'](){return'RevisionHistoryUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[u];}['_saveRevisionFormView'];['init'](){const _0x168cc0=this['editor'],_0x5731b2=_0x168cc0['plugins']['get']('RevisionTracker');_0x168cc0['ui']['componentFactory']['add']('revisionHistory',_0x50d56f=>{const _0x3ac0d6=_0x35ae1b(_0x50d56f),_0x1ca9db=_0x3ac0d6['panelView']['children'],_0x21c629=new _0x3763af(_0x50d56f),_0x4db284=new _0x32d21f(_0x50d56f),_0x4f1873=new te(_0x50d56f),_0x17e8ed=new _0x32d21f(_0x50d56f),_0x5cdbdc=new te(_0x50d56f);return _0x3ac0d6['bind']('isEnabled')['to'](_0x5731b2,'isReady',_0x5731b2,'isEnabled',_0x168cc0,'isReadOnly',(_0x288175,_0x5184af,_0x12b023)=>_0x288175&&_0x5184af&&!_0x12b023),_0x3ac0d6['buttonView']['set']({'icon':_0x58ed64,'label':m(_0x50d56f,'Revision\x20history'),'tooltip':!0x0}),_0x4f1873['set']({'label':m(_0x50d56f,'Save\x20current\x20revision'),'withText':!0x0,'role':'menuitem'}),_0x4f1873['bind']('isEnabled')['to'](_0x5731b2,'isReady',_0x5731b2,'isEnabled',_0x168cc0,'isReadOnly',(_0x2ea3ef,_0x427d8c,_0x2700ea)=>_0x2ea3ef&&_0x427d8c&&!_0x2700ea),_0x4f1873['on']('execute',()=>this['_showDialog']()),_0x5cdbdc['set']({'label':m(_0x50d56f,'Open\x20revision\x20history'),'withText':!0x0,'role':'menuitem'}),_0x5cdbdc['bind']('isEnabled')['to'](_0x5731b2,'isReady',_0x168cc0,'isReadOnly',(_0x110e64,_0x596143)=>_0x110e64&&!_0x596143),_0x5cdbdc['on']('execute',()=>{_0x168cc0['config']['get']('revisionHistory')['showRevisionViewerCallback'](),_0x3ac0d6['isOpen']=!0x1,_0x168cc0['editing']['view']['focus']();}),_0x4db284['children']['add'](_0x4f1873),_0x17e8ed['children']['add'](_0x5cdbdc),_0x21c629['role']='menu',_0x21c629['items']['addMany']([_0x4db284,_0x17e8ed]),_0x1ca9db['add'](_0x21c629),_0x3ac0d6;}),_0x168cc0['ui']['componentFactory']['add']('menuBar:revisionHistory',()=>this['_registerMenuComponent']());}['_registerMenuComponent'](){const _0x40e0aa=this['editor'],_0x264498=_0x40e0aa['locale'],_0x1f7098=new _0x55e79f(_0x264498),_0xde256a=new _0x2ddb5c(_0x264498);_0x1f7098['buttonView']['set']({'icon':_0x58ed64,'label':m(_0x264498,'Revision\x20history')});const _0x515030=new _0x4d3bb5(_0x264498,_0x1f7098),_0x9d26bb=new _0x18b2aa(_0x264498);_0x9d26bb['set']({'label':m(_0x264498,'Save\x20current\x20revision')}),_0x9d26bb['delegate']('execute')['to'](_0x1f7098),_0x9d26bb['on']('execute',()=>{this['_showDialog']();}),_0x515030['children']['add'](_0x9d26bb),_0xde256a['items']['add'](_0x515030);const _0x269f73=new _0x4d3bb5(_0x264498,_0x1f7098),_0x33a197=new _0x18b2aa(_0x264498);return _0x33a197['set']({'label':m(_0x264498,'Open\x20revision\x20history')}),_0x33a197['delegate']('execute')['to'](_0x1f7098),_0x33a197['on']('execute',()=>{_0x40e0aa['config']['get']('revisionHistory')['showRevisionViewerCallback']();}),_0x269f73['children']['add'](_0x33a197),_0xde256a['items']['add'](_0x269f73),_0x1f7098['panelView']['children']['add'](_0xde256a),_0x1f7098;}['_showDialog'](){const _0xdbca7d=this['editor'],_0x4f594d=_0xdbca7d['locale'],_0x28595a=_0xdbca7d['plugins']['get']('Dialog'),_0x2a039b=_0xdbca7d['plugins']['get']('RevisionTracker');function _0x18d67c(_0x5433e1){_0xdbca7d['config']['get']('revisionHistory.requireRevisionName')&&''===_0x5433e1['revisionName']?_0x5433e1['revisionNameInputView']['errorText']=m(_0x4f594d,'The\x20revision\x20name\x20cannot\x20be\x20empty.'):(_0xdbca7d['plugins']['get'](u)['saveRevision']({'name':_0x5433e1['revisionName']}),_0x28595a['hide']());}this['_saveRevisionFormView']||(this['_createSaveRevisionFormView'](),this['_saveRevisionFormView']['on']('submit',()=>_0x18d67c(this['_saveRevisionFormView']))),this['_saveRevisionFormView']['reset'](),_0x28595a['show']({'id':'revisionSave','title':m(_0x4f594d,'Save\x20current\x20revision'),'isModal':!0x0,'content':this['_saveRevisionFormView'],'actionButtons':[{'label':m(_0xdbca7d['locale'],'Cancel'),'withText':!0x0,'onExecute':()=>_0x28595a['hide']()},{'label':m(_0xdbca7d['locale'],'Accept'),'class':'ck-button-action','withText':!0x0,'onCreate'(_0x84938e){_0x84938e['bind']('isEnabled')['to'](_0x2a039b,'isReady',_0x2a039b,'isEnabled',_0xdbca7d,'isReadOnly',(_0x9ee5ca,_0x13f5a6,_0x24dd86)=>_0x9ee5ca&&_0x13f5a6&&!_0x24dd86);},'onExecute':()=>_0x18d67c(this['_saveRevisionFormView'])}]});}['_createSaveRevisionFormView'](){const _0x120090=this['editor'],_0x2498de=_0x120090['locale'];this['_saveRevisionFormView']=new hs(_0x2498de,_0x120090['config']['get']('revisionHistory.requireRevisionName')),this['_saveRevisionFormView']['render']();}}class X extends ts{['changeId'];['_model'];constructor(_0x8a7b67,_0x36ce4b){super(_0x8a7b67),this['_model']=_0x36ce4b,this['changeId']=_0x36ce4b['id'];const _0x335e67=this['bindTemplate'],_0x555078=m(_0x8a7b67,_0x36ce4b['data']['isSuggestion']?'Suggested\x20by':'add'==_0x36ce4b['type']?'Added\x20by':'Removed\x20by');this['set']('type',_0x36ce4b['type']),this['setTemplate']({'tag':'div','attributes':{'class':['ck-annotation','ck-revision-change',_0x335e67['to']('type',_0x25ddeb=>'ck-revision-change__'+_0x25ddeb)],'tabindex':-0x1},'children':[{'tag':'span','children':[{'tag':'span','attributes':{'class':['ck-revision-change__label']},'children':[{'text':_0x555078}]},{'text':'\x20'+_0x36ce4b['author']['name']}]}]});}['focus'](){this['element']['focus']();}}class r extends/* #__PURE__ -- @preserve */
25
- _0x52eb58(){['id'];['author'];['type'];['data'];['rootName'];constructor(_0xa4b81c){super(),this['id']=_0xa4b81c['id']||_0x5c4a35(),this['author']=_0xa4b81c['author'],this['type']=_0xa4b81c['type'],this['data']=_0xa4b81c['data']||{},this['rootName']=_0xa4b81c['rootName'],this['set']('createdAt',_0xa4b81c['createdAt']);}['toJSON'](){return{'id':this['id'],'authorId':this['author']['id'],'type':this['type'],'data':this['data'],'createdAt':this['createdAt']};}}class c{['newRevisionId'];['oldRevisionId'];['changes'];constructor(_0x217573,_0x3e6895){this['newRevisionId']=_0x217573,this['oldRevisionId']=_0x3e6895,this['changes']=new _0x4f0c48();}['_setChanges'](_0x5eb44f){for(const _0x286057 of _0x5eb44f)this['changes']['add'](_0x286057);}}const Y={'c':_0x147d6d,'a':_0x56ca4e,'e':_0x80b66f,'r':_0x384be4,'u':_0x1ce1ff};class d extends _0x52f205{['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[_0xf61404,_0x1c3621,j];}constructor(_0x1277d4){super(_0x1277d4),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',(_0x310f34,_0x4316ed,_0xa30194)=>{this['activeChange']=null,this['activeView']=null,this['editor']['editing']['view']['change'](_0x2854e3=>{for(const _0x1c971a of this['editor']['editing']['view']['document']['roots'])_0xa30194?_0x2854e3['removeClass']('ck-editor__editable__overlay',_0x1c971a):_0x2854e3['addClass']('ck-editor__editable__overlay',_0x1c971a);});}),this['bind']('isNavigationMode')['to'](this,'activeChange',_0x3286e=>null!==_0x3286e),this['bind']('currentChangeNumber')['to'](this,'isReady',this,'diff',this,'activeChange',(_0x509384,_0xc9e03a,_0x2c83e8)=>_0x509384&&_0x2c83e8?_0xc9e03a['changes']['getIndex'](_0x2c83e8):0x0),this['bind']('numberOfChanges')['to'](this,'isReady',this,'diff',(_0x2422c0,_0x33e5ea)=>_0x2422c0?_0x33e5ea['changes']['length']:0x0),this['_changeView']=null,this['_changeIdToChange']=new Map(),this['adapter']=null,this['_balloon']=this['editor']['plugins']['get'](_0x1c3621);}['init'](){const _0x58c927=this['editor'],_0x2f3e40=new _t(_0x58c927,{'direction':'backward'}),_0x4df846=new _t(_0x58c927,{'direction':'forward'});(_0x58c927['commands']['add']('showPreviousChange',_0x2f3e40),_0x58c927['commands']['add']('showNextChange',_0x4df846),_0x58c927['commands']['add']('restoreRevision',new wt(_0x58c927)),this['on']('change:numberOfChanges',()=>{_0x2f3e40['refresh'](),_0x4df846['refresh']();}),this['_setConversion'](),this['_initInteractions'](),_0x58c927['enableReadOnlyMode']('revision-viewer'),_0x58c927['plugins']['has']('WidgetToolbarRepository'))&&_0x58c927['plugins']['get']('WidgetToolbarRepository')['forceDisabled']('revision-viewer');}async['getRevisionData'](_0x5eb1d6){await this['loadRevisionData'](_0x5eb1d6);const _0x23dea1={};for(const _0x163dae in _0x5eb1d6['diffData']){if(_0x5eb1d6['diffData'][_0x163dae]['attachChange']&&!_0x5eb1d6['diffData'][_0x163dae]['attachChange']['isAttached'])continue;const _0x195eff=this['_removeRevisionMarkers'](JSON['parse'](_0x5eb1d6['diffData'][_0x163dae]['insertions'])),_0x24a17b=this['editor']['editing']['view']['document'],_0x384633=new _0x52b2a0(_0x24a17b,_0x195eff['map'](_0x393641=>this['_getViewObj'](_0x393641)));this['editor']['data']['processor']['useFillerType']('marked'),_0x23dea1[_0x163dae]=this['editor']['data']['processor']['toData'](_0x384633),this['editor']['data']['processor']['useFillerType']('default');}return _0x23dea1;}async['getRevisionRootsAttributes'](_0x51ea96){await this['loadRevisionData'](_0x51ea96);const _0x41dfb0={};for(const _0x37d758 in _0x51ea96['diffData'])_0x51ea96['diffData'][_0x37d758]['attachChange']&&!_0x51ea96['diffData'][_0x37d758]['attachChange']['isAttached']||(_0x41dfb0[_0x37d758]=_0x51ea96['diffData'][_0x37d758]['attributesAfter']||{});return _0x41dfb0;}['_removeRevisionMarkers'](_0x16383b){return(_0x16383b=_0x16383b['filter'](_0x250ce8=>!_0x250ce8['name']||'revision-start'!==_0x250ce8['name']&&'revision-end'!==_0x250ce8['name']))['forEach'](_0x4d1cca=>{'string'!=typeof _0x4d1cca&&(_0x4d1cca['children']=this['_removeRevisionMarkers'](_0x4d1cca['children']),_0x4d1cca['attributes']=_0x4d1cca['attributes']['filter'](_0x57090c=>!_0x57090c[0x0]['startsWith']('data-revision-')));}),_0x16383b;}async['compare'](_0x443927,_0x86dd6b,_0x298a68=!0x1){if(!this['isEnabled'])return;const _0x1c5868=this['diff'],_0x1c403a=this['repository'],_0xd52677='string'==typeof _0x443927?_0x1c403a['getRevision'](_0x443927):_0x443927,_0x2e9c63='string'==typeof _0x86dd6b?_0x1c403a['getRevision'](_0x86dd6b):_0x86dd6b,_0x23203b=_0xd52677['id'],_0xaf4e16=_0x2e9c63?_0x2e9c63['id']:null;if(!_0x298a68&&this['diff']&&this['diff']['newRevisionId']===_0x23203b&&this['diff']['oldRevisionId']===_0xaf4e16)return Promise['resolve']();this['isReady']=!0x1,this['activeView']=null,this['activeChange']=null,this['diff']=new c(_0x23203b,_0xaf4e16);const _0x2a0616=this['_getRevisionsRange'](_0xd52677,_0x2e9c63,!0x0)['map'](_0x32c20e=>this['loadRevisionData'](_0x32c20e));return _0x2a0616['push'](new Promise(_0x4d1573=>{setTimeout(_0x4d1573,0x14);})),Promise['all'](_0x2a0616)['then'](()=>{if(!this['isEnabled'])return;this['_cleanUp']();const _0x5bf9d4=this['_getDiff'](_0x23203b,_0xaf4e16);for(const _0x272bbe of _0x5bf9d4['changes'])this['_changeIdToChange']['set'](_0x272bbe['id'],_0x272bbe);this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x181807=>{for(const _0x359652 of this['editor']['model']['document']['getRootNames']())_0x181807['detachRoot'](_0x359652);for(const _0x16aced of Object['keys'](_0x5bf9d4['model'])){const _0x35e674=_0x181807['addRoot'](_0x16aced);for(const _0x74fe90 of Object['keys'](_0x5bf9d4['attributes'][_0x16aced]))_0x181807['setAttribute'](_0x74fe90,_0x5bf9d4['attributes'][_0x16aced][_0x74fe90],_0x35e674);_0x181807['insert'](_0x5bf9d4['model'][_0x16aced],_0x35e674,0x0);}}),this['diff']['_setChanges'](this['_sortAndFilterDiffChanges'](_0x5bf9d4['changes'])),this['isReady']=!0x0;})['catch'](_0x2096e8=>{console['error'](_0x2096e8),this['_cleanUp'](),_0x1c5868&&(this['diff']=_0x1c5868),this['isReady']=!0x0;});}['addRevisionData'](_0x12d7f2,_0x566195){const _0x5786b1=this['repository']['createRevision'](_0x12d7f2);return _0x5786b1['on']('_update',(_0x3b6c70,_0x589216,_0x5eb106)=>_0x566195(_0x589216,_0x5eb106,_0x5786b1)),this['repository']['addRevision'](_0x5786b1),_0x5786b1;}['loadRevisionData'](_0x41b0b7){if(!_0x41b0b7||_0x41b0b7['diffData'])return Promise['resolve']();{const _0x145c52=this['editor']['config']['get']('collaboration.channelId');return this['adapter']['getRevision']({'channelId':_0x145c52,'revisionId':_0x41b0b7['id']})['then'](_0x5bb236=>{_0x41b0b7['_update']({'diffData':_0x5bb236['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},_0x1ba779=>{for(const _0x2093fb of this['editor']['model']['document']['getRootNames']())_0x1ba779['detachRoot'](_0x2093fb);});}['_sortAndFilterDiffChanges'](_0x43d000){const _0x3c8772=[],_0x352f4b=new Map();for(const _0x21a30c of this['editor']['model']['document']['getRootNames']()){const _0x18c9ab=this['editor']['editing']['view']['getDomRoot'](_0x21a30c);if(!_0x18c9ab)continue;const _0x595327=_0x18c9ab['getClientRects']()['item'](0x0);_0x595327&&(_0x3c8772['push'](_0x21a30c),_0x352f4b['set'](_0x21a30c,_0x595327));}return _0x3c8772['sort']((_0xfcdc91,_0x4ed49b)=>{const _0x1d5e89=_0x352f4b['get'](_0xfcdc91),_0x1f3398=_0x352f4b['get'](_0x4ed49b);return _0x1d5e89['y']-_0x1f3398['y']||_0x1d5e89['x']-_0x1f3398['x'];}),(_0x43d000=_0x43d000['filter'](_0x65985f=>_0x3c8772['includes'](_0x65985f['rootName'])))['sort']((_0x432333,_0x384f7f)=>_0x3c8772['indexOf'](_0x432333['rootName'])-_0x3c8772['indexOf'](_0x384f7f['rootName'])),_0x43d000;}['_makeTape'](_0x2cddc3){const _0x585b71=Array['from'](_0x2cddc3['markers'])['filter'](([_0x11b420,_0x5047ee])=>_0x11b420['startsWith']('revision:')&&!_0x5047ee['isCollapsed']),_0xb9be46=Array['from'](this['editor']['model']['createRangeIn'](_0x2cddc3)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0x585b71['length'])for(const _0x1ce284 of _0xb9be46){const [_0x26c74d,_0x1218af]=_0x585b71[0x0],[,_0x354926,_0x3bc7c2]=_0x26c74d['split'](':');if(_0x1218af['end']['isEqual'](_0x1ce284['nextPosition'])&&_0x585b71['shift'](),(_0x1ce284['previousPosition']['isEqual'](_0x1218af['start'])||_0x1ce284['previousPosition']['isAfter'](_0x1218af['start']))&&('insertion'==_0x354926?_0x1ce284['isAdded']={'userId':_0x3bc7c2}:'deletion'==_0x354926&&(_0x1ce284['isRemoved']={'userId':_0x3bc7c2})),0x0==_0x585b71['length'])break;}return _0xb9be46;}['_refreshStartEndIndex'](_0x2ee499){const _0x1ad23d=new Map();for(let _0x2bf07f=0x0;_0x2bf07f<_0x2ee499['length'];_0x2bf07f++)'text'===_0x2ee499[_0x2bf07f]['type']?(_0x2ee499[_0x2bf07f]['item']['startIndex']=_0x2bf07f,_0x2ee499[_0x2bf07f]['item']['endIndex']=_0x2bf07f):('elementStart'===_0x2ee499[_0x2bf07f]['type']?_0x2ee499[_0x2bf07f]['item']['startIndex']=_0x2bf07f:'elementEnd'===_0x2ee499[_0x2bf07f]['type']&&(_0x2ee499[_0x2bf07f]['item']['endIndex']=_0x2bf07f),_0x1ad23d['set'](_0x2ee499[_0x2bf07f]['id'],_0x2bf07f));for(const _0x41314d of _0x1ad23d['values']())'elementStart'===_0x2ee499[_0x41314d]['type']?_0x2ee499[_0x41314d]['item']['endIndex']=_0x1ad23d['get'](_0x2ee499[_0x41314d]['pairId']):'elementEnd'===_0x2ee499[_0x41314d]['type']&&(_0x2ee499[_0x41314d]['item']['startIndex']=_0x1ad23d['get'](_0x2ee499[_0x41314d]['pairId']));}['_processTape'](_0x3d60cc){for(let _0x36b686=0x0;_0x36b686<_0x3d60cc['length'];_0x36b686++){if('elementStart'===_0x3d60cc[_0x36b686]['type'])_0x3d60cc[_0x36b686]['item']['startIndex']=_0x36b686;else{if('elementEnd'===_0x3d60cc[_0x36b686]['type']){_0x3d60cc[_0x36b686]['item']['endIndex']=_0x36b686;const _0x4a1d21=_0x3d60cc[_0x36b686]['item']['startIndex'];_0x3d60cc[_0x4a1d21]['pairId']=_0x3d60cc[_0x36b686]['id'],_0x3d60cc[_0x36b686]['pairId']=_0x3d60cc[_0x4a1d21]['id'];}else _0x3d60cc[_0x36b686]['item']['startIndex']=_0x36b686,_0x3d60cc[_0x36b686]['item']['endIndex']=_0x36b686,_0x3d60cc[_0x36b686]['pairId']=null;}_0x3d60cc[_0x36b686]['markersStart']||(_0x3d60cc[_0x36b686]['markersStart']=[],_0x3d60cc[_0x36b686]['markersEnd']=[]);}}['_markInsertions'](_0xfe043a,_0x27ad3d){const _0x355c0d=_0xfe043a['filter'](_0x384b98=>!_0x384b98['isAdded']);for(let _0x4d4332=0x0;_0x4d4332<_0x27ad3d['length'];_0x4d4332++)_0x27ad3d[_0x4d4332]['isAdded']&&(_0x355c0d[_0x4d4332]['isAdded']=_0x27ad3d[_0x4d4332]['isAdded']);}['_makeModelFromViewString'](_0x12e650){const _0x1faa2e=JSON['parse'](_0x12e650),_0x37d7ff=this['editor']['editing']['view']['document'],_0x1039f4=new _0x52b2a0(_0x37d7ff,_0x1faa2e['map'](_0xe1bc3=>this['_getViewObj'](_0xe1bc3)));return this['editor']['data']['toModel'](_0x1039f4);}['_getViewObj'](_0x5957ff){const _0x5e8de9=this['editor']['editing']['view']['document'];if('string'==typeof _0x5957ff)return new _0x456b02(_0x5e8de9,_0x5957ff);{const _0x5e9e1b=_0x5957ff['children']['map'](_0x41330d=>this['_getViewObj'](_0x41330d));return new(Y[_0x5957ff['type']]||_0x33f74e)(_0x5e8de9,_0x5957ff['name'],_0x5957ff['attributes'],_0x5e9e1b);}}['_getDiff'](_0x3940ab,_0x309671=null){const _0x27e498=this['repository']['getRevision'](_0x3940ab),_0x22bd76=_0x309671?this['repository']['getRevision'](_0x309671):null,_0x554ae2=this['_getRevisionsRange'](_0x27e498,_0x22bd76),_0x29b4b2=_0x554ae2[_0x554ae2['length']-0x1],_0x5f2989=new Map(),_0x1f3a2d={'model':{},'attributes':{},'changes':[]},_0x21cc1b=new Set(),_0x51c01f=new Map();for(let _0x40babf=_0x554ae2['length']-0x1;_0x40babf>=0x0;_0x40babf--){const _0x41c9fa=_0x554ae2[_0x40babf];for(const _0x24aeaf of Object['keys'](_0x41c9fa['diffData']))if(_0x41c9fa['diffData'][_0x24aeaf]['attachChange']){const _0x136916=_0x41c9fa['diffData'][_0x24aeaf]['attachChange'];_0x136916['isAttached']?(_0x21cc1b['add'](_0x24aeaf),_0x51c01f['has'](_0x24aeaf)&&_0x51c01f['get'](_0x24aeaf)['userId']==_0x136916['userId']?_0x51c01f['delete'](_0x24aeaf):_0x51c01f['set'](_0x24aeaf,_0x136916)):_0x51c01f['has'](_0x24aeaf)?(_0x21cc1b['delete'](_0x24aeaf),_0x51c01f['delete'](_0x24aeaf)):(_0x21cc1b['add'](_0x24aeaf),_0x51c01f['set'](_0x24aeaf,_0x136916));}else _0x21cc1b['add'](_0x24aeaf);}for(const _0x267c20 of _0x21cc1b){const _0xde4ca2=_0x51c01f['has'](_0x267c20)&&!_0x51c01f['get'](_0x267c20)['isAttached'];let _0x56a2ab=_0xde4ca2?_0x554ae2['length']-0x1:0x0;const _0x545c08=_0xde4ca2?-0x1:0x1;for(;_0x554ae2[_0x56a2ab];){const _0x18a8dd=_0x554ae2[_0x56a2ab];if(_0x18a8dd['diffData'][_0x267c20]){const _0x287a2d=_0xde4ca2?_0x18a8dd['diffData'][_0x267c20]['attributesBefore']:_0x18a8dd['diffData'][_0x267c20]['attributesAfter'];_0x1f3a2d['attributes'][_0x267c20]=_0x287a2d?_0x265c8f(_0x287a2d):{};break;}_0x56a2ab+=_0x545c08;}}for(const _0x2d3e92 of _0x554ae2){_0x2d3e92['model']={};for(const _0x53a3ba of _0x2d3e92['authors'])_0x5f2989['set'](_0x53a3ba['id'],_0x53a3ba);for(const _0x4bac98 of _0x21cc1b){const _0x263c66=_0x2d3e92['diffData'][_0x4bac98]?_0x2d3e92['diffData'][_0x4bac98]['insertions']:'[]',_0x5dfcf9=_0x2d3e92['diffData'][_0x4bac98]?_0x2d3e92['diffData'][_0x4bac98]['deletions']:'[]';_0x2d3e92['model'][_0x4bac98]={'insertions':this['_makeModelFromViewString'](_0x263c66),'deletions':this['_makeModelFromViewString'](_0x5dfcf9)};}}for(const _0x20bed7 of _0x21cc1b){let _0x2ad9af=null,_0x5ac5c9=0x0;const _0x15074f=new Map(Array['from'](_0x27e498['model'][_0x20bed7]['insertions']['markers'])['filter'](([_0x454ca0])=>!_0x454ca0['startsWith']('revision:')));let _0x18da2c=0x0;for(const _0x1a5059 of _0x554ae2){const _0x5dfe1a=this['_makeTape'](_0x1a5059['model'][_0x20bed7]['insertions']);_0x1a5059==_0x27e498?(_0x2ad9af=_0x5dfe1a,_0x5ac5c9=_0x2ad9af['length'],_0x2ad9af['forEach'](_0x5accd5=>{_0x5accd5['id']=_0x18da2c++;}),this['_processTape'](_0x2ad9af)):this['_markInsertions'](_0x2ad9af,_0x5dfe1a);const _0x4eaa1e=_0x2ad9af['filter'](_0x40032e=>!_0x40032e['isAdded'])['map'](_0x194595=>_0x194595['id']);let _0x1d5a28=0x0;const _0x456c03=this['_makeTape'](_0x1a5059['model'][_0x20bed7]['deletions']);_0x456c03['forEach'](_0x372b4f=>{_0x372b4f['isRemoved']?_0x372b4f['id']=_0x5ac5c9++:_0x372b4f['id']=_0x4eaa1e[_0x1d5a28++];}),this['_processTape'](_0x456c03),this['_setDistance'](_0x2ad9af,'isAdded'),this['_setDistance'](_0x456c03,'isRemoved'),_0x1a5059==_0x27e498&&this['_markMarkers'](_0x2ad9af,_0x15074f),_0x2ad9af=this['_joinTapes'](_0x2ad9af,_0x456c03),this['_refreshStartEndIndex'](_0x2ad9af),this['_setDistance'](_0x2ad9af,'isRemoved');}_0x2ad9af=_0x2ad9af['filter'](_0x3fcecd=>!(_0x3fcecd['isAdded']&&_0x3fcecd['isRemoved']));const _0x412435=new Map(_0x29b4b2['model'][_0x20bed7]['deletions']['markers']),_0x2d9ba5=new Set(_0x15074f['keys']());for(const _0x1273e8 of _0x412435['keys']())_0x2d9ba5['delete'](_0x1273e8);this['_markSuggestions'](_0x2ad9af,_0x2d9ba5),this['_fixObsoleteTags'](_0x2ad9af),_0x2ad9af=this['_removeMissingPairs'](_0x2ad9af),_0x2ad9af=this['_markMismatchedRemovedTags'](_0x2ad9af),_0x2ad9af=this['_removeUnsupportedChanges'](_0x2ad9af);const {root:_0xe139b,changes:_0x58a5ab}=this['_makeModelFromTape'](_0x2ad9af,_0x5f2989,_0x20bed7);_0x1f3a2d['model'][_0x20bed7]=_0xe139b;const _0x332b88=_0x51c01f['get'](_0x20bed7);if(_0x332b88){const _0x3cb92c=_0x5f2989['get'](_0x332b88['userId']),_0x1d6a8c=new r({'author':_0x3cb92c,'type':_0x332b88['isAttached']?'add':'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x20bed7});_0x58a5ab['unshift'](_0x1d6a8c),_0x1f3a2d['attributes'][_0x20bed7]['revisionHistoryAttachChange']=_0x1d6a8c['id'];}_0x1f3a2d['changes']=_0x1f3a2d['changes']['concat'](_0x58a5ab);}return _0x1f3a2d;}['_markMarkers'](_0x275b93,_0x5455df){for(let _0x4670c4=0x0;_0x4670c4<_0x275b93['length'];_0x4670c4++)for(const [_0x1a9d7a,_0x8a598d]of _0x5455df)_0x8a598d['start']['isEqual'](_0x275b93[_0x4670c4]['previousPosition'])&&_0x275b93[_0x4670c4]['markersStart']['push'](_0x1a9d7a),_0x8a598d['end']['isEqual'](_0x275b93[_0x4670c4]['nextPosition'])&&_0x275b93[_0x4670c4]['markersEnd']['push'](_0x1a9d7a);}['_joinTapes'](_0x49bdd5,_0xcea305){let _0xdead7b=[],_0x1da6a7=0x0,_0xa01114=0x0;for(;_0x1da6a7<_0x49bdd5['length']||_0xa01114<_0xcea305['length'];){const _0x32c1d9=_0x49bdd5[_0x1da6a7]||{},_0x596e88=_0xcea305[_0xa01114]||{};if(_0x32c1d9['id']==_0x596e88['id'])_0x1da6a7++,_0xa01114++,_0xdead7b['push'](_0x32c1d9);else{if(_0x596e88['isRemoved']&&_0x32c1d9['isAdded']){const {commonTape:_0x385634,iEnd:_0x1e46b4,jEnd:_0x29f389}=this['_threeWayMerge'](_0x49bdd5,_0x1da6a7,_0xcea305,_0xa01114);_0xdead7b=_0xdead7b['concat'](_0x385634),_0x1da6a7=_0x1e46b4,_0xa01114=_0x29f389;}else _0x596e88['isRemoved']?(_0xa01114++,_0xdead7b['push'](_0x596e88)):(_0x1da6a7++,_0xdead7b['push'](_0x32c1d9));}}return _0xdead7b;}['_markSuggestions'](_0xa4660a,_0x1318de){const _0xe130a8=[];for(let _0x4b5ddd=0x0;_0x4b5ddd<_0xa4660a['length'];_0x4b5ddd++){for(let _0x27b8ab=0x0;_0x27b8ab<_0xa4660a[_0x4b5ddd]['markersStart']['length'];_0x27b8ab++){const _0xf61907=_0xa4660a[_0x4b5ddd]['markersStart'][_0x27b8ab];if(!_0x1318de['has'](_0xf61907))continue;const {group:_0x51ea65,type:_0x2b3953,authorId:_0x420747}=_0x25c3b5(_0xf61907);'revision-suggestion'!=_0x51ea65||'insertion'!=_0x2b3953&&'deletion'!=_0x2b3953||(_0xe130a8['unshift']({'type':_0x2b3953,'name':_0xf61907,'userId':_0x420747}),_0xa4660a[_0x4b5ddd]['markersStart']['splice'](_0x27b8ab,0x1),_0x27b8ab--);}_0x4688c3(_0xa4660a[_0x4b5ddd]);for(let _0x57819b=0x0;_0x57819b<_0xa4660a[_0x4b5ddd]['markersEnd']['length'];_0x57819b++){const _0x553efa=_0xa4660a[_0x4b5ddd]['markersEnd'][_0x57819b];if(!_0x1318de['has'](_0x553efa))continue;const {group:_0xc7bb42,type:_0x2dcdee}=_0x25c3b5(_0x553efa);if('revision-suggestion'!=_0xc7bb42||'insertion'!=_0x2dcdee&&'deletion'!=_0x2dcdee)continue;_0xa4660a[_0x4b5ddd]['markersEnd']['splice'](_0x57819b,0x1),_0x57819b--;const _0x3397bf=_0xe130a8['findIndex'](_0x4b6009=>_0x4b6009['name']==_0x553efa);_0x3397bf>-0x1&&_0xe130a8['splice'](_0x3397bf,0x1);}}function _0x25c3b5(_0x53189f){const _0x5e4ed7=_0x53189f['split'](':');return{'group':_0x5e4ed7[0x0],'type':_0x5e4ed7[0x1],'subType':_0x5e4ed7['length']>=0x5?_0x5e4ed7[0x2]:null,'id':_0x5e4ed7['length']<0x5?_0x5e4ed7[0x2]:_0x5e4ed7[0x3],'authorId':_0x5e4ed7['length']<0x5?_0x5e4ed7[0x3]:_0x5e4ed7[0x4],'markerCount':0x6==_0x5e4ed7['length']?_0x5e4ed7[0x5]:null};}function _0x4688c3(_0x24364d){for(let _0x1b5ffc=0x0;_0x1b5ffc<_0xe130a8['length'];_0x1b5ffc++){if(_0x24364d['isAdded']&&'insertion'==_0xe130a8[_0x1b5ffc]['type'])return _0x24364d['isAddSuggestion']=_0xe130a8[_0x1b5ffc],void delete _0x24364d['isAdded'];if(!_0x24364d['isAdded']&&!_0x24364d['isRemoved']&&'deletion'==_0xe130a8[_0x1b5ffc]['type'])return void(_0x24364d['isRemoveSuggestion']=_0xe130a8[_0x1b5ffc]);}}}['_setDistance'](_0x399365,_0xbc290e){let _0xeb79fb=0x0,_0x5ad8f2=!0x1;const _0x1a88b7=new Map();for(const _0x2438de of _0x399365)_0x2438de[_0xbc290e]?_0x5ad8f2&&(_0xeb79fb++,_0x5ad8f2=!0x1):(_0xeb79fb++,_0x5ad8f2=!0x0),_0x1a88b7['set'](_0x2438de['id'],_0xeb79fb);for(let _0x179369=0x0;_0x179369<_0x399365['length'];_0x179369++){if('isRemoved'==_0xbc290e&&_0x399365[_0x179369]['isAdded']||'isAdded'==_0xbc290e&&_0x399365[_0x179369]['isRemoved'])continue;if('text'==_0x399365[_0x179369]['type']){_0x399365[_0x179369]['distance']=0x0;continue;}const _0x3012eb=_0x1a88b7['get'](_0x399365[_0x179369]['pairId']),_0x48c4e2=_0x1a88b7['get'](_0x399365[_0x179369]['id']);_0x399365[_0x179369]['distance']=_0x3012eb-_0x48c4e2;}}['_getRevisionsRange'](_0x4688c0,_0x12dad5,_0x4464cc=!0x1){const _0x345e6b=[];let _0x57b5f6=this['repository']['getIndex'](_0x4688c0),_0x52c674=this['repository']['getIndex'](_0x12dad5);for(-0x1==_0x52c674&&(_0x52c674=this['repository']['_revisions']['length'],_0x4464cc=!0x1);_0x57b5f6<_0x52c674;)_0x345e6b['push'](this['repository']['getRevision'](_0x57b5f6)),_0x57b5f6++;return _0x4464cc&&_0x345e6b['push'](this['repository']['getRevision'](_0x57b5f6)),_0x345e6b;}['_threeWayMerge'](_0xc83fbe,_0x5abc44,_0x275893,_0x28127e){const _0x5cdb42=this['editor']['model']['schema'];let _0x2e0b39=_0x5abc44;for(;_0xc83fbe[_0x2e0b39]&&_0xc83fbe[_0x2e0b39]['isAdded'];)_0x2e0b39++;let _0x4e0c08=_0x28127e;for(;_0x275893[_0x4e0c08]&&_0x275893[_0x4e0c08]['isRemoved'];)_0x4e0c08++;_0x231bb9(_0xc83fbe,_0x5abc44,_0x2e0b39),_0x231bb9(_0x275893,_0x28127e,_0x4e0c08);const _0x2836a3=_0x275893['slice'](_0x28127e,_0x4e0c08)['concat'](_0xc83fbe['slice'](_0x5abc44,_0x2e0b39));return _0x2836a3['sort']((_0x28b09d,_0x25b4e0)=>_0x28b09d['side']!=_0x25b4e0['side']?_0x28b09d['side']-_0x25b4e0['side']:_0x28b09d['level']!=_0x25b4e0['level']?_0x28b09d['level']-_0x25b4e0['level']:_0x28b09d['distance']!=_0x25b4e0['distance']?_0x25b4e0['distance']-_0x28b09d['distance']:!!_0x28b09d['isAdded']!=!!_0x25b4e0['isAdded']?-0x1==_0x28b09d['side']||0x0==_0x28b09d['side']?_0x28b09d['isAdded']?-0x1:0x1:_0x28b09d['isAdded']?0x1:-0x1:_0x28b09d['index']-_0x25b4e0['index']),{'commonTape':_0x2836a3,'iEnd':_0x2e0b39,'jEnd':_0x4e0c08};function _0x231bb9(_0x493f2c,_0x2861c2,_0x3909cf){let _0xb605a4=-0x1,_0x4a4408=Number['POSITIVE_INFINITY'],_0x18718b=!0x0;for(let _0x140fb3=_0x2861c2;_0x140fb3<_0x3909cf;_0x140fb3++)if(_0x5cdb42['isInline'](_0x493f2c[_0x140fb3]['item'])||(_0x18718b=!0x1),_0x493f2c[_0x140fb3]['item']['startIndex']<_0x2861c2&&(_0xb605a4=_0x140fb3),_0x493f2c[_0x140fb3]['item']['endIndex']>=_0x3909cf){_0x4a4408=_0x140fb3;break;}_0x18718b&&(_0xb605a4=_0x3909cf-0x1);for(let _0x1557f4=_0x2861c2;_0x1557f4<_0x3909cf;_0x1557f4++)_0x493f2c[_0x1557f4]['side']=_0x1557f4<=_0xb605a4?-0x1:_0x1557f4<_0x4a4408?0x0:0x1,_0x493f2c[_0x1557f4]['index']=_0x1557f4;let _0x10666f=0x0;for(let _0x5af1d1=_0x2861c2;_0x5af1d1<=_0xb605a4;_0x5af1d1++)0x0==_0x493f2c[_0x5af1d1]['distance']?_0x493f2c[_0x5af1d1]['level']=_0x10666f:(_0x10666f++,_0x493f2c[_0x5af1d1]['level']=_0x10666f,_0x10666f++);for(let _0x20e9e8=_0x2861c2;_0x20e9e8<_0x3909cf;_0x20e9e8++)0x0==_0x493f2c[_0x20e9e8]['side']&&(_0x493f2c[_0x20e9e8]['level']=_0x10666f);_0x10666f=0x0;for(let _0xec212e=_0x3909cf-0x1;_0xec212e>=_0x4a4408;_0xec212e--)0x0==_0x493f2c[_0xec212e]['distance']?_0x493f2c[_0xec212e]['level']=_0x10666f:(_0x10666f--,_0x493f2c[_0xec212e]['level']=_0x10666f,_0x10666f--);}}['_fixObsoleteTags'](_0x33c299){const _0x3d3432=new Map(),_0x3f0cc0=this['editor']['model']['schema'];for(let _0x23df7a=0x1;_0x23df7a<_0x33c299['length'];_0x23df7a++){let _0x53e8e8,_0x1ce821,_0x206cab;const _0x7155b5=_0x33c299[_0x23df7a],_0xb62020=_0x33c299[_0x23df7a-0x1];if('text'==_0x7155b5['type'])continue;if(_0x7155b5['type']!=_0xb62020['type'])continue;if(!_0x3f0cc0['isBlock'](_0xb62020['item'])||_0x3f0cc0['isLimit'](_0xb62020['item']))continue;if(!_0x3f0cc0['isBlock'](_0x7155b5['item'])||_0x3f0cc0['isLimit'](_0x7155b5['item']))continue;if((_0x33c299[_0x23df7a]['isAdded']||_0x33c299[_0x23df7a]['isAddSuggestion'])&&_0x33c299[_0x23df7a-0x1]['isRemoved'])_0x53e8e8=_0x33c299[_0x23df7a],_0x1ce821=_0x33c299[_0x23df7a-0x1],_0x206cab=_0x23df7a-0x1;else{if(!_0x33c299[_0x23df7a]['isRemoved']||!_0x33c299[_0x23df7a-0x1]['isAdded']&&!_0x33c299[_0x23df7a-0x1]['isAddSuggestion'])continue;_0x53e8e8=_0x33c299[_0x23df7a-0x1],_0x1ce821=_0x33c299[_0x23df7a],_0x206cab=_0x23df7a;}const _0x535354=_0x53e8e8['level']==_0x1ce821['level'],_0x1b8bed=Math['abs'](_0x53e8e8['level'])<Math['abs'](_0x1ce821['level'])&&0x0==_0x1ce821['distance'];(_0x535354||_0x1b8bed)&&(_0x3d3432['set'](_0x1ce821['id'],_0x53e8e8['id']),_0x33c299['splice'](_0x206cab,0x1),_0x23df7a--,_0x53e8e8['isAdded']=!0x1);}for(let _0x46809a=0x0;_0x46809a<_0x33c299['length'];_0x46809a++)_0x3d3432['has'](_0x33c299[_0x46809a]['pairId'])&&(_0x33c299[_0x46809a]['pairId']=_0x3d3432['get'](_0x33c299[_0x46809a]['pairId']));}['_removeMissingPairs'](_0x4b37f2){const _0x5baea9=new Set(_0x4b37f2['map'](_0x3c36cd=>_0x3c36cd['id']));for(let _0xc2116a=0x0;_0xc2116a<_0x4b37f2['length'];_0xc2116a++)_0x5baea9['has'](_0x4b37f2[_0xc2116a]['pairId'])||0x0==_0x4b37f2[_0xc2116a]['distance']||(_0x4b37f2[_0xc2116a]['isIncorrect']=!0x0);return _0x4b37f2['filter'](_0x74470a=>!_0x74470a['isIncorrect']);}['_markMismatchedRemovedTags'](_0x664077){const _0x49b382=new Set();for(let _0x30eff1=0x0;_0x30eff1<_0x664077['length'];_0x30eff1++){if(_0x49b382['has'](_0x664077[_0x30eff1]['id'])&&_0x664077[_0x30eff1]['isRemoved']&&(_0x664077[_0x30eff1]['isIncorrect']=!0x0),_0x664077[_0x30eff1]['isIncorrect'])continue;if(0x0==_0x664077[_0x30eff1]['distance'])continue;if('elementStart'!=_0x664077[_0x30eff1]['type'])continue;if(null==_0x664077[_0x30eff1]['pairId'])continue;let _0x525ddd=_0x30eff1+0x1,_0x19c589=0x0;for(;_0x664077[_0x525ddd]['id']!=_0x664077[_0x30eff1]['pairId'];)'elementStart'==_0x664077[_0x525ddd]['type']?_0x19c589++:'elementEnd'==_0x664077[_0x525ddd]['type']&&_0x19c589--,_0x525ddd++;if(0x0!=_0x19c589){if(_0x664077[_0x30eff1]['isRemoved'])_0x664077[_0x30eff1]['isIncorrect']=!0x0;else{for(;_0x525ddd!=_0x30eff1;)_0x664077[_0x525ddd]['isRemoved']&&0x0!=_0x664077[_0x525ddd]['distance']&&(_0x664077[_0x525ddd]['isIncorrect']=!0x0,_0x49b382['add'](_0x664077[_0x525ddd]['pairId'])),_0x525ddd--;}}}return _0x664077['filter'](_0x71d4f2=>!_0x71d4f2['isIncorrect']);}['_removeUnsupportedChanges'](_0xced6d6){const _0xa36404=this['editor']['model']['schema'];for(let _0x56696d=0x0;_0x56696d<_0xced6d6['length'];_0x56696d++){if(!(_0xced6d6[_0x56696d]['isAdded']||_0xced6d6[_0x56696d]['isAddSuggestion']||_0xced6d6[_0x56696d]['isRemoved']||_0xced6d6[_0x56696d]['isRemoveSuggestion']))continue;if(0x0==_0xced6d6[_0x56696d]['distance'])continue;const _0x730cbb=_0xced6d6[_0x56696d]['item'];_0xa36404['isBlock'](_0x730cbb)||_0xa36404['isLimit'](_0x730cbb)||(_0xced6d6[_0x56696d]['isAdded']&&delete _0xced6d6[_0x56696d]['isAdded'],_0xced6d6[_0x56696d]['isAddSuggestion']&&delete _0xced6d6[_0x56696d]['isAddSuggestion'],_0xced6d6[_0x56696d]['isRemoveSuggestion']&&delete _0xced6d6[_0x56696d]['isRemoveSuggestion'],_0xced6d6[_0x56696d]['isRemoved']&&(_0xced6d6[_0x56696d]['isIncorrect']=!0x0));}return _0xced6d6['filter'](_0x24959e=>!_0x24959e['isIncorrect']);}['_makeModelFromTape'](_0x4fd9cd,_0x108baa,_0x478e81){const _0x15a231=new gt(),_0x358f79=[],_0x117c15=new Map(),_0x8c4533=this['editor']['model'],_0xd18f33=_0x8c4533['schema'],_0x10b817=[_0x15a231],_0x16fa8f={},_0x50984={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x388440=null;const _0x36da36=[0x0];for(let _0x1a0e70=0x0;_0x1a0e70<_0x4fd9cd['length'];_0x1a0e70++)if('elementStart'===_0x4fd9cd[_0x1a0e70]['type']){_0x4fd9cd[_0x1a0e70]['previousPosition']=_0x8c4533['createPositionFromPath'](_0x15a231,_0x36da36);const _0x4c91c1=new ut(_0x4fd9cd[_0x1a0e70]['item']['name'],_0x4fd9cd[_0x1a0e70]['item']['getAttributes']());_0x10b817[0x0]['_appendChild'](_0x4c91c1),_0x36da36['push'](0x0),_0x10b817['unshift'](_0x4c91c1),_0x4fd9cd[_0x1a0e70]['nextPosition']=_0x8c4533['createPositionFromPath'](_0x15a231,_0x36da36);}else'elementEnd'===_0x4fd9cd[_0x1a0e70]['type']?(_0x10b817['shift'](),_0x4fd9cd[_0x1a0e70]['previousPosition']=_0x8c4533['createPositionFromPath'](_0x15a231,_0x36da36),_0x36da36['pop'](),_0x36da36[_0x36da36['length']-0x1]++,_0x4fd9cd[_0x1a0e70]['nextPosition']=_0x8c4533['createPositionFromPath'](_0x15a231,_0x36da36)):(_0x4fd9cd[_0x1a0e70]['previousPosition']=_0x8c4533['createPositionFromPath'](_0x15a231,_0x36da36),_0x388440?_0x388440['_data']+=_0x4fd9cd[_0x1a0e70]['item']['data']:_0x388440=new mt(_0x4fd9cd[_0x1a0e70]['item']['data'],_0x4fd9cd[_0x1a0e70]['item']['getAttributes']()),_0x4fd9cd[_0x1a0e70+0x1]&&'text'===_0x4fd9cd[_0x1a0e70+0x1]['type']&&_0x41963a(_0x388440,_0x4fd9cd[_0x1a0e70+0x1]['item'])||(_0x10b817[0x0]['_appendChild'](_0x388440),_0x388440=null),_0x36da36[_0x36da36['length']-0x1]+=_0x4fd9cd[_0x1a0e70]['item']['offsetSize'],_0x4fd9cd[_0x1a0e70]['nextPosition']=_0x8c4533['createPositionFromPath'](_0x15a231,_0x36da36));for(let _0x46bb9c=0x0;_0x46bb9c<_0x4fd9cd['length'];_0x46bb9c++){const _0x2da13e=_0x4fd9cd[_0x46bb9c]['previousPosition'],_0x4cf12a=_0x4fd9cd[_0x46bb9c]['nextPosition'];for(const _0x40dff5 of _0x4fd9cd[_0x46bb9c]['markersStart'])_0x117c15['set'](_0x40dff5,{'start':_0x2da13e,'end':null});_0x5674b2('isRemoveSuggestion',_0x46bb9c,_0x2da13e,_0x4cf12a),_0x5674b2('isAddSuggestion',_0x46bb9c,_0x2da13e,_0x4cf12a),_0x5674b2('isRemoved',_0x46bb9c,_0x2da13e,_0x4cf12a),_0x5674b2('isAdded',_0x46bb9c,_0x2da13e,_0x4cf12a);for(const _0x3491af of _0x4fd9cd[_0x46bb9c]['markersEnd']){_0x117c15['get'](_0x3491af)['end']=_0x4cf12a;}}for(const [_0x3c6578,_0xe2c6f5]of _0x117c15){const _0x2893bc=this['editor']['model']['createRange'](_0xe2c6f5['start'],_0xe2c6f5['end']);_0x15a231['markers']['set'](_0x3c6578,_0x2893bc);}return _0x358f79['sort']((_0x21cdc6,_0x3edb24)=>{const _0x2d3428=_0x15a231['markers']['get']('revision:'+_0x21cdc6['id']),_0x521044=_0x15a231['markers']['get']('revision:'+_0x3edb24['id']);return _0x2d3428['start']['isBefore'](_0x521044['start'])?-0x1:_0x2d3428['start']['isAfter'](_0x521044['start'])?0x1:_0x2d3428['end']['isBefore'](_0x521044['end'])?-0x1:_0x2d3428['end']['isAfter'](_0x521044['end'])?0x1:'add'===_0x21cdc6['type']?-0x1:0x1;}),{'root':_0x15a231,'changes':_0x358f79};function _0x5674b2(_0x290044,_0x194ad7,_0x2e72b6,_0x34c143){const _0x26fd1f=!!_0x4fd9cd[_0x194ad7][_0x290044],_0x433f34=_0x26fd1f?_0x4fd9cd[_0x194ad7][_0x290044]['userId']:null,_0x2e76bb=_0x194ad7===_0x4fd9cd['length']-0x1,_0x4acb00=_0x50984[_0x290044][0x0],_0x15d58f=_0xd18f33['isObject'](_0x4fd9cd[_0x194ad7]['item']);!_0x16fa8f[_0x290044]&&_0x26fd1f?_0x16fa8f[_0x290044]={'start':_0x2e72b6,'tapeItem':_0x4fd9cd[_0x194ad7],'userId':_0x433f34,'type':_0x290044}:_0x16fa8f[_0x290044]&&!_0x26fd1f?(_0x16fa8f[_0x290044]['end']=_0x2e72b6,_0x4bd859(_0x16fa8f[_0x290044]),_0x16fa8f[_0x290044]=null):_0x16fa8f[_0x290044]&&_0x26fd1f&&_0x16fa8f[_0x290044]['userId']!==_0x433f34&&(_0x16fa8f[_0x290044]['end']=_0x2e72b6,_0x4acb00&&_0x4acb00['userId']===_0x16fa8f[_0x290044]['userId']||_0x4bd859(_0x16fa8f[_0x290044]),_0x16fa8f[_0x290044]={'start':_0x2e72b6,'tapeItem':_0x4fd9cd[_0x194ad7],'userId':_0x433f34,'type':_0x290044}),_0x16fa8f[_0x290044]&&_0x15d58f&&('elementStart'!==_0x4fd9cd[_0x194ad7]['type']||_0x4acb00&&_0x4acb00['userId']===_0x433f34||_0x50984[_0x290044]['unshift']({'userId':_0x433f34,'object':_0x4fd9cd[_0x194ad7]['item'],'change':_0x16fa8f[_0x290044]}),'elementEnd'===_0x4fd9cd[_0x194ad7]['type']&&_0x4acb00&&_0x4acb00['object']===_0x4fd9cd[_0x194ad7]['item']&&(_0x50984[_0x290044]['shift'](),_0x16fa8f[_0x290044]=_0x4acb00['change'])),_0x16fa8f[_0x290044]&&_0x2e76bb&&(_0x16fa8f[_0x290044]['end']=_0x34c143,_0x4bd859(_0x16fa8f[_0x290044]),_0x16fa8f[_0x290044]=null);}function _0x4bd859({start:_0x5873f9,end:_0x35cc20,tapeItem:_0x1fdc15,userId:_0x3ab0d0,type:_0x56ee98}){const _0x54da8c=_0x1fdc15['item'],_0x4f90eb=_0x8c4533['schema']['isBlock'](_0x54da8c)&&!_0x8c4533['schema']['isLimit'](_0x54da8c),_0x128b08=_0x5873f9['nodeAfter']==_0x35cc20['parent']&&_0x35cc20['isAtStart'];if(_0x4f90eb&&_0x128b08)return;const _0x374c21=_0x8c4533['createRange'](_0x5873f9,_0x35cc20),_0x3e2e18=_0x108baa['get'](_0x3ab0d0),_0x26db75=new r({'author':_0x3e2e18,'type':'isAdded'==_0x56ee98||'isAddSuggestion'==_0x56ee98?'add':'remove','data':{'isSuggestion':'isAddSuggestion'==_0x56ee98||'isRemoveSuggestion'==_0x56ee98},'createdAt':new Date(),'rootName':_0x478e81});_0x358f79['push'](_0x26db75),_0x15a231['markers']['set']('revision:'+_0x26db75['id'],_0x374c21);}function _0x41963a(_0xe5b8b4,_0x22a227){const _0x32e14d=_0xe5b8b4['getAttributes'](),_0x22e6b2=_0x22a227['getAttributes']();for(const _0x18f722 of _0x32e14d){if(_0x18f722[0x1]!==_0x22a227['getAttribute'](_0x18f722[0x0]))return!0x1;_0x22e6b2['next']();}return _0x22e6b2['next']()['done'];}}['_setConversion'](){this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision','view':_0x481521=>{const _0x2ac0d9=_0x481521['markerName']['split'](':')[0x1],_0x2c08e0=this['_getChangeFromId'](_0x2ac0d9);if(!_0x2c08e0)return null;const _0x4bec7b='add'==_0x2c08e0['type']?'insertion':'deletion',_0x32795f=['ck-suggestion-marker','ck-suggestion-marker-'+_0x4bec7b];return _0x2c08e0['data']['isSuggestion']&&_0x32795f['push']('ck-suggestion-marker-'+_0x4bec7b+'-new'),this['activeChange']==_0x2c08e0&&_0x32795f['push']('ck-suggestion-marker--active'),{'classes':_0x32795f,'attributes':{'data-change-id':_0x2ac0d9}};}}),this['editor']['conversion']['for']('upcast')['add'](_0x1c1314=>{_0x1c1314['on']('element:pre',(_0x19b5af,_0x2d22a3,_0x31287e)=>{const _0x4c33b0=_0x2d22a3['viewItem']['getChild'](0x0);if(!_0x4c33b0||!_0x4c33b0['is']('element','code'))return;if(!_0x31287e['consumable']['consume'](_0x4c33b0,{'attributes':['vid_start','vid_end']}))return;const _0x22a4a4=_0x2d22a3['modelRange']['start']['nodeAfter'];_0x31287e['writer']['setAttribute']('vid_start',_0x4c33b0['getAttribute']('vid_start'),_0x22a4a4),_0x31287e['writer']['setAttribute']('vid_end',_0x4c33b0['getAttribute']('vid_end'),_0x22a4a4);},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['add'](_0x204e81=>{_0x204e81['on']('element',(_0x24e137,_0x55c6ec,_0x367bec)=>{if(!_0x367bec['consumable']['consume'](_0x55c6ec['viewItem'],{'attributes':['vid_start','vid_end']}))return;if(_0x55c6ec['modelRange']['isCollapsed'])return;const _0x2b6973=_0x55c6ec['modelRange']['start']['nodeAfter'];_0x2b6973['hasAttribute']('vid_start')||_0x2b6973['hasAttribute']('vid')||(_0x367bec['writer']['setAttribute']('vid_start',_0x55c6ec['viewItem']['getAttribute']('vid_start'),_0x2b6973),_0x367bec['writer']['setAttribute']('vid_end',_0x55c6ec['viewItem']['getAttribute']('vid_end'),_0x2b6973));},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['elementToAttribute']({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0xb034bc=>_0xb034bc['getAttribute']('vid')}}),this['editor']['model']['schema']['on']('checkAttribute',(_0x4e9fad,[,_0x3950af])=>{['vid_start','vid_end','vid']['includes'](_0x3950af)&&(_0x4e9fad['return']=!0x0,_0x4e9fad['stop']());},{'priority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x594f55=>{_0x594f55['on']('attribute:vid',(_0x519e8f,_0x25897b,_0x403829)=>{if('\x20'!=_0x25897b['item']['data']||_0x25897b['item']['parent']['maxOffset']>0x1)return;if(!_0x403829['consumable']['consume'](_0x25897b['item'],_0x519e8f['name']))return;const _0x2a31f0=_0x403829['writer'],_0x4f543b=_0x403829['mapper']['toViewRange'](_0x25897b['range']);_0x2a31f0['wrap'](_0x4f543b,_0x2a31f0['createAttributeElement']('span'));});}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',function(_0x766cac){const _0x3762cd=_0x766cac['plugins']['get']('RevisionViewer');return(_0x521fff,_0x3a910d,_0x3d7a5e)=>{const _0xb1338a=_0x3a910d['markerName']['split'](':')[0x1],_0xa6a1b=_0x3762cd['_getChangeFromId'](_0xb1338a);if(!_0xa6a1b)return null;const _0x3548c2='add'==_0xa6a1b['type']?'split':'merge';if(!_0x3d7a5e['consumable']['test'](_0x3a910d['markerRange'],_0x521fff['name']))return;const _0x3de0ac=_0x3a910d['markerRange']['getWalker'](),_0x50d951=_0x3a910d['markerRange']['start'],_0x745c55=_0x766cac['model']['schema'];let _0x349266=null,_0x4ca597=null,_0x2a84ca=!0x1,_0x19da22=!0x1;for(const _0x5145a3 of _0x3de0ac){const _0x54cef4=_0x5145a3['item'];_0x2a84ca=_0x2a84ca||_0x745c55['isContent'](_0x54cef4);const _0x3039e5=_0x3d7a5e['mapper']['toViewElement'](_0x54cef4);if(_0x3039e5&&_0x3039e5['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x5145a3['type']&&(_0x745c55['isBlock'](_0x54cef4)&&!_0x745c55['isLimit'](_0x54cef4)&&(_0x54cef4['nextSibling']||_0x50d951['isAtEnd']?_0x349266&&_0x349266['parent']==_0x54cef4||(_0x349266=_0x54cef4,_0x165081(_0x5145a3['previousPosition']),_0x19da22=!0x0):_0x4ca597=_0x4ca597||_0x5145a3['previousPosition']));}function _0x165081(_0x15cd87){const _0x4fa39b=_0x3d7a5e['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x3548c2}),_0x36ab34=_0x3d7a5e['mapper']['toViewPosition'](_0x15cd87);_0xa6a1b['data']['isSuggestion']&&_0x3d7a5e['writer']['addClass']('ck-suggestion-marker-'+_0x3548c2+'-new',_0x4fa39b),_0x3762cd['activeChange']==_0xa6a1b&&_0x3d7a5e['writer']['addClass']('ck-suggestion-marker--active',_0x4fa39b),_0x3d7a5e['writer']['insert'](_0x36ab34,_0x4fa39b),_0x3d7a5e['mapper']['bindElementToMarker'](_0x4fa39b,_0x3a910d['markerName']);}_0x2a84ca||_0x19da22||!_0x4ca597||_0x165081(_0x4ca597);};}(this['editor']),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision',(_0x47935e,_0x49c2ce,_0xf49dad)=>{const _0x46a6cf=_0xf49dad['mapper']['markerNameToElements'](_0x49c2ce['markerName']);if(_0x46a6cf){for(const _0x15bef6 of _0x46a6cf)(_0x15bef6['hasClass']('ck-suggestion-marker-split')||_0x15bef6['hasClass']('ck-suggestion-marker-merge'))&&(_0xf49dad['mapper']['unbindElementFromMarkerName'](_0x15bef6,_0x49c2ce['markerName']),_0xf49dad['writer']['remove'](_0x15bef6));}},{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',(_0x164830,_0x266721,_0x4bb868)=>{const _0x4857f2=_0x266721['markerName']['split'](':')[0x1],_0x4092a7=this['_getChangeFromId'](_0x4857f2);if(!_0x4092a7)return null;const _0x44c6cb='add'==_0x4092a7['type']?'split':'merge';if(_0x4bb868['consumable']['test'](_0x266721['markerRange'],_0x164830['name']))for(const _0x3849fc of _0x266721['markerRange']['getItems']()){if(!_0x3849fc['is']('element','softBreak'))continue;const _0x3d5442=_0x4bb868['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x44c6cb}),_0x43a084=_0x4bb868['mapper']['toViewPosition'](this['editor']['model']['createPositionBefore'](_0x3849fc));_0x4092a7['data']['isSuggestion']&&_0x4bb868['writer']['addClass']('ck-suggestion-marker-'+_0x44c6cb+'-new',_0x3d5442),this['activeChange']==_0x4092a7&&_0x4bb868['writer']['addClass']('ck-suggestion-marker--active',_0x3d5442),_0x4bb868['writer']['insert'](_0x43a084,_0x3d5442),_0x4bb868['mapper']['bindElementToMarker'](_0x3d5442,_0x266721['markerName']);}},{'priority':'high'}),this['editor']['model']['document']['on']('change',()=>{this['editor']['editing']['view']['change'](_0x3207c6=>{for(const _0x48280b of this['editor']['model']['document']['getRootNames']()){const _0x2c0194=this['editor']['model']['document']['getRoot'](_0x48280b),_0x2193f3=this['editor']['editing']['view']['document']['getRoot'](_0x48280b);if(_0x2193f3){const _0x1f6e54=_0x2c0194['getAttribute']('revisionHistoryAttachChange');if(_0x3207c6['removeAttribute']('data-change-id',_0x2193f3),_0x3207c6['removeClass']('ck-revision-history-root-add',_0x2193f3),_0x3207c6['removeClass']('ck-revision-history-root-remove',_0x2193f3),_0x3207c6['removeClass']('ck-revision-history-root--active',_0x2193f3),_0x1f6e54){const _0x1ea9db=this['_getChangeFromId'](_0x1f6e54);if(!_0x1ea9db)return null;_0x3207c6['setAttribute']('data-change-id',_0x1f6e54,_0x2193f3),_0x3207c6['addClass']('ck-revision-history-root-'+_0x1ea9db['type'],_0x2193f3),this['activeChange']==_0x1ea9db&&_0x3207c6['addClass']('ck-revision-history-root--active',_0x2193f3);}}}});}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'comment','model':_0x28bf87=>'revision-comment:'+_0x28bf87,'converterPriority':'highest'}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion','model':_0x52e1f1=>'revision-suggestion:'+_0x52e1f1,'converterPriority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision-suggestion','view':_0x58a7ae=>({'name':'suggestion:'+_0x58a7ae,'group':'revision-suggestion'}),'converterPriority':'highest'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision-suggestion','view':_0x1be298=>{const _0x43fe08=_0x1be298['markerName']['split'](':')[0x1];return'insertion'!=_0x43fe08&&'deletion'!=_0x43fe08?null:{'classes':['ck-suggestion-preview-marker','ck-suggestion-preview-marker-'+_0x43fe08]};}}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:deletion',Z(this['editor'],'merge'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:insertion',Z(this['editor'],'split'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision-suggestion',(_0x28e6df,_0x2d1485,_0x5964f0)=>{const _0x1db21c=_0x5964f0['mapper']['markerNameToElements'](_0x2d1485['markerName']);if(_0x1db21c){for(const _0x528466 of _0x1db21c)_0x528466['is']('uiElement')&&(_0x5964f0['mapper']['unbindElementFromMarkerName'](_0x528466,_0x2d1485['markerName']),_0x5964f0['writer']['remove'](_0x528466));}},{'priority':'high'});}['_getChangeFromId'](_0x354553){return this['_changeIdToChange']['get'](_0x354553);}['_getViewForChange'](_0x1aaa9c){return this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=new X(this['editor']['locale'],_0x1aaa9c),this['_changeView'];}['_initInteractions'](){this['editor']['model']['document']['selection']['observeMarkers']('revision'),this['on']('change:activeView',(_0x851d92,_0x1d0d0c,_0x1b462d,_0x1da6bb)=>{_0x1da6bb&&this['_balloon']['remove'](_0x1da6bb),_0x1b462d&&(this['_balloon']['add']({'view':_0x1b462d,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0x479ca6=this['editor']['editing'],_0x32c9b2=this['_getChangeFromId'](_0x1b462d['changeId']);let _0x3cf001;if(_0x32c9b2['data']['isOnRoot']){const _0x410ea0=_0x479ca6['view']['getDomRoot'](_0x32c9b2['rootName']);_0x3cf001=Array['from'](_0x410ea0['getClientRects']());}else{const _0x239216=this['editor']['model']['markers']['get']('revision:'+_0x1b462d['changeId']);_0x3cf001=Array['from'](_0x479ca6['mapper']['markerNameToElements'](_0x239216['name']))['map'](_0x120525=>_0x479ca6['view']['domConverter']['mapViewToDom'](_0x120525))['map'](_0x416f1c=>Array['from'](_0x416f1c['getClientRects']()))['flat']();}if(!this['_activeViewTarget'])return _0x3cf001[0x0];return _0x3cf001['find'](_0xa13d0b=>_0xa13d0b['top']-0x3<=this['_activeViewTarget']['y']&&_0xa13d0b['bottom']+0x3>=this['_activeViewTarget']['y']&&_0xa13d0b['left']-0x3<=this['_activeViewTarget']['x']&&_0xa13d0b['right']+0x3>=this['_activeViewTarget']['x'])||_0x3cf001[0x0];}}}),this['_balloon']['showStack']('revisionHistoryLabel'));}),this['on']('change:activeChange',(_0x91624b,_0x4b9fbe,_0x27e017,_0x54b6d8)=>{this['activeView']=_0x27e017?this['_getViewForChange'](_0x27e017):null,this['editor']['model']['change'](()=>{const _0x3f19b=this['editor']['editing'];_0x54b6d8&&(_0x54b6d8['data']['isOnRoot']?_0x3f19b['view']['change'](_0x2a0602=>{_0x2a0602['removeClass']('ck-revision-history-root--active',_0x3f19b['view']['document']['getRoot'](_0x54b6d8['rootName']));}):_0x3f19b['reconvertMarker']('revision:'+_0x54b6d8['id'])),_0x27e017&&(_0x27e017['data']['isOnRoot']?_0x3f19b['view']['change'](_0x128778=>{_0x128778['addClass']('ck-revision-history-root--active',_0x3f19b['view']['document']['getRoot'](_0x27e017['rootName']));}):_0x3f19b['reconvertMarker']('revision:'+_0x27e017['id']));});}),this['listenTo'](this['editor']['editing']['view']['document'],'mouseover',(_0x14a240,_0x4c341e)=>{if(this['activeChange'])return;const _0x2d2f6a=this['_findChangeIdFromDomTarget'](_0x4c341e['target']),_0x4897de=this['_changeIdToChange']['get'](_0x2d2f6a);_0x4897de?(this['_activeViewTarget']={'x':_0x4c341e['domEvent']['x'],'y':_0x4c341e['domEvent']['y']},this['activeView']=this['_getViewForChange'](_0x4897de)):(this['_activeViewTarget']=null,this['activeView']=null);}),this['listenTo'](this['editor']['editing']['view']['document'],'mousedown',(_0x5e8cb4,_0x4f3322)=>{const _0x3ae90e=this['_findChangeIdFromDomTarget'](_0x4f3322['target']),_0x43e529=this['_changeIdToChange']['get'](_0x3ae90e);_0x43e529?(this['_activeViewTarget']={'x':_0x4f3322['domEvent']['x'],'y':_0x4f3322['domEvent']['y']},_0x43e529===this['activeChange']?this['_balloon']['updatePosition']():this['activeChange']=_0x43e529):(this['_activeViewTarget']=null,this['activeChange']=null);});}['_findChangeIdFromDomTarget'](_0x1d393c){do{const _0x336d73=_0x1d393c['getAttribute']('data-change-id');if(_0x336d73)return _0x336d73;_0x1d393c=_0x1d393c['parent'];}while(_0x1d393c);return null;}['_cleanMarkers'](){this['editor']['model']['change'](_0x43010=>{for(const _0x445351 of this['editor']['model']['markers'])_0x43010['removeMarker'](_0x445351);});}}function Z(_0x43932f,_0x34bb18){return(_0x16c45c,_0x1bd30,_0x27bb8c)=>{if(!_0x27bb8c['consumable']['test'](_0x1bd30['markerRange'],_0x16c45c['name']))return;const _0x5e350c=_0x1bd30['markerRange']['getWalker'](),_0x5d6c27=_0x1bd30['markerRange']['start'],_0x1b5fac=_0x43932f['model']['schema'];let _0x4238f4=null,_0x2a1496=null,_0x4c88cb=!0x1,_0x118ed8=!0x1;for(const _0x2d5590 of _0x5e350c){const _0x46327d=_0x2d5590['item'];_0x4c88cb=_0x4c88cb||_0x1b5fac['isContent'](_0x46327d);const _0x224661=_0x27bb8c['mapper']['toViewElement'](_0x46327d);if(_0x224661&&_0x224661['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x2d5590['type']&&(_0x1b5fac['isBlock'](_0x46327d)&&!_0x1b5fac['isLimit'](_0x46327d)&&(_0x46327d['nextSibling']||_0x5d6c27['isAtEnd']?_0x4238f4&&_0x4238f4['parent']==_0x46327d||(_0x4238f4=_0x46327d,_0x161cb8(_0x2d5590['previousPosition']),_0x118ed8=!0x0):_0x2a1496=_0x2a1496||_0x2d5590['previousPosition']));}function _0x161cb8(_0x50ab18){const _0x18322d=_0x27bb8c['mapper']['toViewPosition'](_0x50ab18),_0x3641ac=_0x27bb8c['writer']['createUIElement']('span',{'class':'ck-suggestion-preview-marker-'+_0x34bb18});_0x27bb8c['writer']['insert'](_0x18322d,_0x3641ac),_0x27bb8c['mapper']['bindElementToMarker'](_0x3641ac,_0x1bd30['markerName']);}_0x4c88cb||_0x118ed8||!_0x2a1496||_0x161cb8(_0x2a1496);};}class wt extends _0x2e2ccd{constructor(_0x3bd137){super(_0x3bd137);const _0x1d00fb=_0x3bd137['plugins']['get'](d);this['affectsData']=!0x1,this['listenTo'](_0x1d00fb,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x1d00fb,'change:isEnabled',()=>this['refresh']());}['execute'](){const _0x107453=this['editor'],_0x561b0b=_0x107453['plugins']['get'](d),_0x13a413=_0x561b0b['isReady']?_0x561b0b['diff']['newRevisionId']:null;_0x107453['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x13a413);}['refresh'](){const {isReady:_0x1fcad6,isEnabled:_0x247227,repository:_0x3111f1,diff:_0x4b25eb}=this['editor']['plugins']['get'](d),_0x4f7927=_0x4b25eb&&_0x3111f1['getLaterVisibleRevision'](_0x4b25eb['newRevisionId']);this['isEnabled']=_0x1fcad6&&_0x247227&&Boolean(_0x4f7927);}}class _t extends _0x2e2ccd{['_step'];constructor(_0xb3d9c1,{direction:_0xfdf8a7}){super(_0xb3d9c1);const _0x1dff5a=_0xb3d9c1['plugins']['get'](d);this['affectsData']=!0x1,this['_step']='forward'===_0xfdf8a7?0x1:-0x1,this['listenTo'](_0x1dff5a,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x1dff5a,'change:isEnabled',()=>this['refresh']()),this['listenTo'](_0x1dff5a,'change:activeChange',()=>this['refresh']());}['execute'](){const _0x39d00a=this['editor'],_0x5a5324=_0x39d00a['plugins']['get'](d),{isNavigationMode:_0x40d37e,currentChangeNumber:_0x464ada}=_0x5a5324;let _0x2f7e3f;if(_0x5a5324['activeChange']=_0x40d37e?_0x5a5324['diff']['changes']['get'](_0x464ada+this['_step']):_0x5a5324['diff']['changes']['first'],_0x5a5324['activeChange']['data']['isOnRoot'])_0x2f7e3f=_0x39d00a['editing']['view']['getDomRoot'](_0x5a5324['activeChange']['rootName']);else{const _0x1ad3ae=_0x39d00a['model']['markers']['get']('revision:'+_0x5a5324['activeChange']['id']);_0x2f7e3f=_0x342eda(_0x39d00a['editing'],_0x1ad3ae);}_0x3bb261({'target':_0x2f7e3f,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0x2692e2,currentChangeNumber:_0x2321ad,numberOfChanges:_0x14c0cb,isReady:_0x566f64,isEnabled:_0x112473}=this['editor']['plugins']['get'](d);this['isEnabled']=!!(_0x112473&&_0x566f64&&_0x14c0cb)&&(!_0x2692e2||(0x1===this['_step']?_0x2321ad<_0x14c0cb-0x1:_0x2321ad>0x0));}}class ai extends ts{constructor(_0x3c9565){super(_0x3c9565);const _0x3b76a0=this['bindTemplate'],_0x52948d=new te(_0x3c9565),_0x5373eb=new te(_0x3c9565);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',(_0xf3731e,_0x502381)=>_0xf3731e&&_0x502381>0x0),this['bind']('_statusText')['to'](this,'isReady',this,'currentChangeNumber',this,'numberOfChanges',this,'isNavigationMode',(_0x537400,_0x5da12c,_0x36a6e6,_0x5368a8)=>{if(!_0x537400)return m(_0x3c9565,'Loading...');if(!_0x36a6e6)return m(_0x3c9565,'No\x20changes');const _0x3bb2f1=m(_0x3c9565,'NUMBER_OF_CHANGES',_0x36a6e6);return _0x5368a8?m(_0x3c9565,'X_OF_Y_CHANGES',[_0x5da12c+0x1,_0x36a6e6]):_0x3bb2f1;}),_0x52948d['set']({'label':m(_0x3c9565,'Show\x20previous\x20change'),'tooltip':!0x0,'icon':ti}),_0x5373eb['set']({'label':m(_0x3c9565,'Show\x20next\x20change'),'tooltip':!0x0,'icon':_0x43cda1}),_0x52948d['bind']('isEnabled')['to'](this,'isBackwardNavigationEnabled'),_0x5373eb['bind']('isEnabled')['to'](this,'isForwardNavigationEnabled'),_0x52948d['on']('execute',()=>this['fire']('execute','backward')),_0x5373eb['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',_0x3b76a0['if']('_isStatusLabelVisible','ck-hidden',_0x15ec30=>!_0x15ec30)]},'children':[{'text':_0x3b76a0['to']('isNavigationMode',_0x3e73d0=>_0x3e73d0?m(_0x3c9565,'EDIT_X_OF_Y_REVISIONS')+':\x20':m(_0x3c9565,'Total')+':\x20')}]},{'text':_0x3b76a0['to']('_statusText')}]},new _0x303d1e(),{'tag':'div','attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0x52948d,_0x5373eb]}]});}}const le='ck-editor__editable__loading-overlay';class de extends _0x52f205{static get['pluginName'](){return'RevisionViewerLoadingOverlay';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['show'](){const _0xfc1272=this['editor']['editing']['view'];_0xfc1272['change'](_0x1511fe=>{for(const _0x325d15 of _0xfc1272['document']['roots'])_0x1511fe['addClass'](le,_0x325d15);});}['hide'](){const _0x26c8a4=this['editor']['editing']['view'];_0x26c8a4['change'](_0x218ec6=>{for(const _0x4b64e7 of _0x26c8a4['document']['roots'])_0x218ec6['removeClass'](le,_0x4b64e7);});}}class w extends _0x52f205{static get['pluginName'](){return'RevisionViewerUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[d,de];}['init'](){const _0x44c753=this['editor'],_0x687fc=_0x44c753['plugins']['get'](d),_0x5a033a=_0x44c753['plugins']['get'](de);_0x44c753['ui']['componentFactory']['add']('exitToEditing',_0x4c4c0a=>{const _0x401a57=new te(_0x4c4c0a);return _0x401a57['set']({'label':m(_0x4c4c0a,'Back\x20to\x20editing'),'icon':_0x715937,'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this['listenTo'](_0x401a57,'execute',()=>{_0x44c753['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}),_0x401a57;}),_0x44c753['ui']['componentFactory']['add']('restoreRevision',_0x23729d=>{const _0x1c5894=new te(_0x23729d);return _0x1c5894['set']({'label':m(_0x23729d,'Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0x1c5894['bind']('isEnabled')['to'](_0x44c753['commands']['get']('restoreRevision')),this['listenTo'](_0x1c5894,'execute',()=>_0x44c753['execute']('restoreRevision')),_0x1c5894;}),_0x44c753['ui']['componentFactory']['add']('changesNavigation',_0x12c817=>{const _0x2f76ff=new ai(_0x12c817),_0x162e81=_0x44c753['commands']['get']('showPreviousChange'),_0xde12b9=_0x44c753['commands']['get']('showNextChange');return _0x2f76ff['bind']('isBackwardNavigationEnabled')['to'](_0x162e81,'isEnabled'),_0x2f76ff['bind']('isForwardNavigationEnabled')['to'](_0xde12b9,'isEnabled'),_0x2f76ff['bind']('isReady','currentChangeNumber','numberOfChanges','isNavigationMode')['to'](_0x687fc),this['listenTo'](_0x2f76ff,'execute',(_0x1f2736,_0x3868f4)=>{_0x44c753['execute']('forward'===_0x3868f4?'showNextChange':'showPreviousChange');}),_0x2f76ff;}),_0x5a033a['show'](),_0x687fc['on']('change:isReady',(_0x4b7f68,_0x289f06,_0x37db5a)=>{_0x37db5a?_0x5a033a['hide']():_0x5a033a['show']();});}}class pt extends _0x122467{['_resizeObserver']=null;constructor(_0x578341,_0x160106){super(_0x578341,_0x160106);const _0xba78a4=this['bindTemplate'];this['set']({'label':m(_0x578341,'Revision\x20name'),'_tooltipString':''}),this['fieldView']['placeholder']=m(_0x578341,'Enter\x20the\x20revision\x20name'),this['extendTemplate']({'tag':'span','attributes':{'class':['ck-revision-history-sidebar__revision-name'],'data-cke-tooltip-text':_0xba78a4['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 _0x45c655=this['fieldView']['element'];this['_tooltipString']=_0x45c655['scrollWidth']>_0x45c655['clientWidth']&&_0x45c655['value']||'';}}class ci extends ts{constructor(_0x5ab32d,_0x26353b,_0x9b7d83){super(_0x5ab32d);const _0x16adbf=new _0x36bb25();_0x16adbf['set']({'content':_0xe80179,'viewBox':'0\x200\x2011\x2010'});const _0x4cd33b=['ck','ck-revision-history-sidebar__revision-author'];_0x9b7d83&&_0x4cd33b['push']('ck-revision-history-sidebar__revision-author_creator');const _0x6ccf11=[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':m(_0x5ab32d,_0x9b7d83?'Revision\x20creator':'Revision\x20author')},'children':[_0x16adbf,_0x26353b['name']]}];this['setTemplate']({'tag':'li','attributes':{'class':_0x4cd33b},'children':_0x6ccf11});}}function vi(_0x327fbe,_0x214e22){const _0x474b12=_0x327fbe['bindTemplate'],_0x38fb8a=_0x327fbe['locale'],_0x4b54d1=_0x35ae1b(_0x38fb8a);_0x4b54d1['panelPosition']='sw';const _0x368f13=function(_0x3b89c4,_0x253262){const _0x397560=function(_0x402dd9,_0x15711c){const _0x29ec2b=_0x402dd9['locale'],_0x4b4a22={'Compare\x20against\x20selected':m(_0x29ec2b,'Compare\x20against\x20selected'),'Name\x20this\x20revision':m(_0x29ec2b,'Name\x20this\x20revision'),'Restore\x20this\x20revision':m(_0x29ec2b,'Restore\x20this\x20revision')};return _0x15711c['map'](_0x497d59=>{const _0x365d09=_0x4b4a22[_0x497d59['name']];return _0x365d09&&_0x365d09!==_0x497d59['name']&&(_0x497d59['name']=_0x365d09),_0x497d59;});}(_0x3b89c4,_0x253262),_0x1dd704=new _0x4f0c48();for(const _0x570d2c of _0x397560){const _0x1b0921={'type':'button','model':new to({'label':_0x570d2c['name'],'class':_0x570d2c['class'],'withText':!0x0,'role':'menuitem','_action':_0x570d2c['action']})};_0x1b0921['model']['bind']('isEnabled')['to'](_0x3b89c4,'isActionsDropdownOpen',_0x3418d1=>'function'!=typeof _0x570d2c['isEnabled']||(!_0x3418d1||_0x570d2c['isEnabled'](_0x3b89c4))),_0x1dd704['add'](_0x1b0921);}return _0x1dd704;}(_0x327fbe,_0x214e22);return _0x327fbe['bind']('isActionsDropdownOpen')['to'](_0x4b54d1,'isOpen'),_0x4b54d1['buttonView']['set']({'label':m(_0x38fb8a,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x3d261c}),_0x4b54d1['extendTemplate']({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0x474b12['if']('isActionsDropdownOpen','ck-on')]},'on':{'click':_0x474b12['to'](_0x48c05d=>_0x48c05d['stopPropagation']())}}),_0x4b54d1['on']('execute',_0x2ec71b=>{_0x327fbe['isReady']&&'function'==typeof _0x2ec71b['source']['_action']&&_0x2ec71b['source']['_action'](_0x327fbe);}),_0x569d4a(_0x4b54d1,_0x368f13,{'role':'menu'}),_0x4b54d1['listenTo'](_0x327fbe,'change:isActionsDropdownOpen',(_0x436309,_0x105024,_0x45c26d)=>{if(_0x45c26d)for(const _0x45b2fe of _0x4b54d1['listView']['items']){const _0x390bb8=_0x45b2fe['children']['first'],_0x29e1f4=_0x214e22['find'](_0x2d5a9c=>_0x2d5a9c['action']===_0x390bb8['_action'])['isVisible'];_0x45b2fe['isVisible']=void 0x0===_0x29e1f4||_0x29e1f4(_0x327fbe);}}),_0x4b54d1;}class ri extends/* #__PURE__ -- @preserve */
26
- _0x5085d1(ts){['id'];['revisionNameView'];['revisionActionsView'];['_revision'];['_requireRevisionName'];constructor(_0x566f51,_0x164561,_0x375874,_0x10c670){super(_0x566f51);const _0x2ab582=this['bindTemplate'],_0x147d25=function(_0x5db661,_0x36dc16){const _0x405cca=Array['from'](_0x36dc16['authors'])['filter'](_0x576969=>_0x576969!=_0x36dc16['creator']);return _0x36dc16['creator']&&_0x405cca['unshift'](_0x36dc16['creator']),_0x405cca['map'](_0x4bce31=>new ci(_0x5db661,_0x4bce31,_0x4bce31==_0x36dc16['creator']));}(_0x566f51,_0x164561);this['id']=_0x164561['id'],this['_revision']=_0x164561,this['_requireRevisionName']=_0x10c670,this['bind']('name','createdAt')['to'](_0x164561),this['bind']('_createdAtFormatted')['to'](this,'createdAt',_0x46a8b6=>{return _0x5ba455=_0x566f51['uiLanguage'],(_0x3cec2b=_0x46a8b6)['toLocaleDateString'](_0x5ba455,{'month':'long','day':'numeric'})+',\x20'+_0x3cec2b['toLocaleTimeString'](_0x5ba455,{'hour':'numeric','minute':'numeric'});var _0x5ba455,_0x3cec2b;}),this['set']('isSelected',!0x1),this['set']('isHighlighted',!0x1),this['set']('isActionsDropdownOpen',!0x1),this['set']('isReady',!0x1),this['set']('isEnabled',!0x1),this['revisionNameView']=new pt(_0x566f51,_0x5c1472),this['revisionNameView']['fieldView']['extendTemplate']({'attributes':{'maxlength':'220'}}),this['revisionNameView']['fieldView']['bind']('value')['to'](this,'name',_0x5b51a3=>_0x5b51a3||this['_createdAtFormatted']),this['revisionNameView']['bind']('isEnabled')['to'](this,'isSelected',this,'isEnabled',(_0x301562,_0x11d5e0)=>_0x301562&&_0x11d5e0),this['revisionActionsView']=_0x375874&&_0x375874['length']?vi(this,_0x375874):'',this['revisionActionsView']&&this['revisionActionsView']['bind']('isEnabled')['to'](this),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision-wrapper',_0x2ab582['if']('isConfirm','ck-revision-history-sidebar__revision-wrapper_confirmation_visible')]},'children':[{'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision',_0x2ab582['if']('isEnabled','ck-disabled',_0xff5e10=>!_0xff5e10),_0x2ab582['if']('isSelected','ck-revision-history-sidebar__revision_selected'),_0x2ab582['if']('isHighlighted','ck-revision-history-sidebar__revision_highlighted'),_0x2ab582['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':_0x2ab582['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':_0x147d25}]},this['revisionActionsView']],'on':{'click':_0x2ab582['to'](_0x213cf5=>{_0x213cf5['srcElement']['closest']('.ck-thread__remove-confirm')||this['isReady']&&this['isEnabled']&&this['fire']('select',{'id':this['id']});})}}]});}['render'](){super['render']();const _0x15c1c4=this['revisionNameView']['fieldView']['element'];this['listenTo'](_0x15c1c4,'change',()=>{this['_requireRevisionName']&&!_0x15c1c4['value']||this['fire']('setName',{'id':this['id'],'name':_0x15c1c4['value']}),_0x15c1c4['value']||(_0x15c1c4['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(_0x2bd4c2,_0x1e7e2a){const _0x2bb119=_0x3f4c6c['fromJSDate'](_0x2bd4c2)['setLocale'](_0x1e7e2a),_0x59fca6=_0x3f4c6c['local'](),_0x2cd1d8=_0x59fca6['minus']({'days':0x1})['startOf']('day');let _0x8afed3,_0x4dd753;return _0x2bb119['hasSame'](_0x59fca6,'day')?(_0x8afed3=_0x2bb119['startOf']('day')['toJSDate'](),_0x4dd753=_0x2bb119['toRelativeCalendar']()):_0x2bb119['hasSame'](_0x2cd1d8,'day')?(_0x8afed3=_0x2cd1d8['toJSDate'](),_0x4dd753=_0x2bb119['toRelativeCalendar']()):_0x2bb119['hasSame'](_0x59fca6,'week')?(_0x8afed3=_0x2bb119['startOf']('week')['toJSDate'](),_0x4dd753=_0x2bb119['weekdayLong']||''):_0x2bb119['hasSame'](_0x59fca6,'year')?(_0x8afed3=_0x2bb119['startOf']('month')['toJSDate'](),_0x4dd753=_0x2bb119['monthLong']||''):(_0x8afed3=_0x2bb119['startOf']('year')['toJSDate'](),_0x4dd753=String(_0x2bb119['year'])),{'startDate':_0x8afed3,'localizedPeriodName':_0x4dd753};}class hi extends ts{['startDate'];['revisionViews'];['_revisionActions'];['_requireRevisionName'];constructor(_0x1fc523,_0xcbcea9,_0x51559c,_0x80a37b){super(_0x1fc523);const _0x16e3d1=oi(_0xcbcea9,this['locale']['uiLanguage'])['localizedPeriodName'];this['startDate']=_0xcbcea9,this['revisionViews']=this['createCollection'](),this['_revisionActions']=_0x51559c,this['_requireRevisionName']=_0x80a37b,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':_0x16e3d1}]},{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__time-period__revisions']},'children':this['revisionViews']}]});}['addRevision'](_0x6a0b2a){const _0x44ab1b=new ri(this['locale'],_0x6a0b2a,this['_revisionActions'],this['_requireRevisionName']);this['revisionViews']['add'](_0x44ab1b);}['removeRevision'](_0x51b295){const _0x2cb0f8=this['revisionViews']['find'](_0x266c29=>_0x266c29['id']===_0x51b295['id']);this['revisionViews']['remove'](_0x2cb0f8);}}class cs extends ts{constructor(_0x20dcd4){super(_0x20dcd4);const _0x59fc26=new _0x36bb25();_0x59fc26['content']=_0x58ed64,this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all','ck-revision-history-sidebar__header']},'children':[_0x59fc26,{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__header__label']},'children':[m(_0x20dcd4,'Revision\x20history')]}]});}}class ei extends ts{['timePeriodViews'];['_revisions'];['_revisionActions'];['_requireRevisionName'];constructor(_0x2d7513,_0x454def,_0x4d33f2,_0x379784){super(_0x2d7513);const _0x3831b3=this['bindTemplate'];this['timePeriodViews']=this['createCollection'](),this['timePeriodViews']['delegate']('select')['to'](this),this['timePeriodViews']['delegate']('setName')['to'](this),this['_revisions']=_0x454def,this['_revisionActions']=_0x4d33f2,this['_requireRevisionName']=_0x379784,this['on']('select',(_0x5911e8,_0x260008)=>{this['fire']('revisionSelected',_0x260008);}),this['on']('setName',(_0x16eef3,_0x3e99ae)=>{this['fire']('revisionSetName',_0x3e99ae);}),this['set']('isEnabled',!0x1),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-rounded-corners','ck-revision-history-sidebar']},'children':[new cs(_0x2d7513),{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__timeline',_0x3831b3['if']('isEnabled','ck-disabled',_0x4bbe42=>!_0x4bbe42)]},'children':this['timePeriodViews']}]});}['render'](){super['render']();for(const _0x4cf275 of this['_revisions'])this['_addRevision'](_0x4cf275);this['_revisions']['on']('add',(_0x4374ed,_0x1bc1db)=>{this['_addRevision'](_0x1bc1db);}),this['_revisions']['on']('remove',(_0x56511a,_0x368d13)=>{this['_removeRevision'](_0x368d13);});}get['revisionViews'](){return this['timePeriodViews']['map'](_0x17ccc1=>_0x17ccc1['revisionViews']['map'](_0x297ea9=>_0x297ea9))['flat']();}['selectRevision'](_0x29fa25){for(const _0x3f710c of this['revisionViews'])_0x29fa25&&_0x29fa25['id']===_0x3f710c['id']?_0x3f710c['select']():_0x3f710c['deselect']();}['highlightRevisions'](_0x2b085a){for(const _0x355acc of this['revisionViews'])_0x2b085a['some'](({id:_0x331769})=>_0x331769===_0x355acc['id'])?_0x355acc['highlight']():_0x355acc['unhighlight']();}['_addRevision'](_0x4ae799){const _0x4b13f8=oi(_0x4ae799['createdAt'],this['locale']['uiLanguage'])['startDate'];let _0x4acb1c=this['timePeriodViews']['get'](0x0);_0x4acb1c&&_0x4acb1c['startDate']['getTime']()===_0x4b13f8['getTime']()||(_0x4acb1c=new hi(this['locale'],_0x4b13f8,this['_revisionActions'],this['_requireRevisionName']),this['timePeriodViews']['add'](_0x4acb1c)),_0x4acb1c['addRevision'](_0x4ae799);}['_removeRevision'](_0x40e2df){const _0x4176ee=oi(_0x40e2df['createdAt'],this['locale']['uiLanguage'])['startDate'];this['_getTimePeriodViewByStartDate'](_0x4176ee)['removeRevision'](_0x40e2df);}['_getTimePeriodViewByStartDate'](_0x15e162){return this['timePeriodViews']['find'](_0x174237=>_0x174237['startDate']['getTime']()===_0x15e162['getTime']());}}class g extends _0x52f205{['_revisionViewer'];['_revisionsRepository'];['_sidebarView'];static ['defaultRevisionActions']=/* #__PURE__ -- @preserve */
23
+ import{ObservableMixin as _0x4b2841,uid as _0x663c6b,Collection as _0x2c3527,logWarning as _0x41b40d,FocusTracker as _0x1fbac0,KeystrokeHandler as _0x4a481f,scrollViewportToShowTarget as _0x53c173,ResizeObserver as pt,ElementReplacer as ht,CKEditorError as _0x11f306}from'@ckeditor/ckeditor5-utils/dist/index.js';import{cloneDeep as _0x24b58c,set as _0x440189,unset as _0x5b0888,isEqual as _0x40af19}from'es-toolkit/compat';import{Plugin as _0x41e048,PendingActions as _0x3062d1,Command as _0x1bc561,ElementApiMixin as it,Editor as tt}from'@ckeditor/ckeditor5-core/dist/index.js';import{Users as _0x1b8d32,getMarkerDomElement as _0x665250,ConfirmMixin as _0xdffbcd,sanitizeEditorConfig as _0x52e263}from'ckeditor5-collaboration/dist/index.js';import{ViewDocumentFragment as _0x1c7ac7,Element as ut,Range as ft,ViewUIElement as _0x1409e8,ViewRawElement as _0x3274f3,ViewEmptyElement as _0x2b610f,ViewAttributeElement as _0x1a2d2b,ViewContainerElement as _0x11aa29,Position as vt,ViewText as _0x4a50ef,ViewElement as _0x4fb45b,DocumentFragment as gt,Text as wt}from'@ckeditor/ckeditor5-engine/dist/index.js';import{IconHistory as _0x24e1d6,IconChevronUp as _0x4e8941,IconChevronDown as _0x243940,IconUndo as _0x51d06c,IconUser as _0x2ab0e8,IconThreeVerticalDots as _0x4c20c0}from'@ckeditor/ckeditor5-icons/dist/index.js';import{View as _0x423d80,injectCssTransitionDisabler as ts,submitHandler as _0x189d32,LabeledFieldView as at,createLabeledInputText as ti,createDropdown as _0x4b0e6a,ListView as _0x1371fb,ListItemView as te,ButtonView as _0x4f8d34,MenuBarMenuView as _0x1c964b,MenuBarMenuListView as _0x417ef7,MenuBarMenuListItemView as _0x189cf9,MenuBarMenuListItemButtonView as _0x35e62e,ContextualBalloon as _0x1b3f42,ToolbarSeparatorView as _0x1edbaa,IconView as _0x261fed,addListToDropdown as _0x2cf456,ViewModel as to,EditorUI as st,normalizeToolbarConfig as ot,BoxedEditorUIView as ct,StickyPanelView as lt,ToolbarView as nt,InlineEditableUIView as dt}from'@ckeditor/ckeditor5-ui/dist/index.js';import{DateTime as _0x3a0f57}from'luxon';class h extends/* #__PURE__ -- @preserve */
24
+ _0x4b2841(){['id'];['creator'];['authors'];['diffData'];['toVersion'];['fromVersion'];['model'];constructor(_0x12c13f){super(),this['id']=_0x12c13f['id']||_0x663c6b(),this['creator']=_0x12c13f['creator']||null,this['authors']=_0x12c13f['authors']||[],this['diffData']=_0x12c13f['diffData']||null,this['toVersion']=_0x12c13f['toVersion']||0x0,this['fromVersion']=_0x12c13f['fromVersion']||0x0,this['set']('name',_0x12c13f['name']||''),this['set']('createdAt',_0x12c13f['createdAt']||new Date()),this['set']('attributes',_0x12c13f['attributes']||{});}['setName'](_0x49db7c){this['_update']({'name':_0x49db7c});}['setAttribute'](_0x8bf4a7,_0x87df08){const _0x2f79b2=_0x24b58c(this['attributes']);_0x440189(_0x2f79b2,_0x8bf4a7,_0x87df08),this['_update']({'attributes':_0x2f79b2});}['removeAttribute'](_0x246e47){const _0xe8cbaf=_0x24b58c(this['attributes']);_0x5b0888(_0xe8cbaf,_0x246e47),this['_update']({'attributes':_0xe8cbaf});}['_update'](_0x5bd72c,_0x125115=!0x1){let _0x44e7cb=!0x1;const _0x3b494c={'id':this['id']},_0x5922bf=['name','createdAt','diffData','authors','attributes','toVersion','fromVersion','creatorId'];for(const _0x2316d8 of _0x5922bf){const _0x1a3cf2=_0x5bd72c[_0x2316d8];void 0x0!==_0x1a3cf2&&_0x1a3cf2!==this[_0x2316d8]&&(this[_0x2316d8]=_0x1a3cf2,_0x3b494c[_0x2316d8]=_0x1a3cf2,_0x44e7cb=!0x0);}_0x44e7cb&&(_0x3b494c['authors']&&(_0x3b494c['authorsIds']=_0x3b494c['authors']['map'](_0x52588d=>_0x52588d['id']),delete _0x3b494c['authors']),this['fire']('_update',_0x3b494c,_0x125115));}['toJSON'](){return{'id':this['id'],'name':this['name'],'creatorId':this['creator']?this['creator']['id']:null,'authorsIds':this['authors']['map'](_0x4f6ca6=>_0x4f6ca6['id']),'diffData':this['diffData'],'createdAt':this['createdAt'],'attributes':this['attributes'],'fromVersion':this['fromVersion'],'toVersion':this['toVersion']};}}class j extends _0x41e048{['_revisions'];static get['requires'](){return[_0x1b8d32];}static get['pluginName'](){return'RevisionsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['length'](){return this['_revisions']['length'];}constructor(_0x210764){super(_0x210764),this['_revisions']=new _0x2c3527();}['afterInit'](){!async function(_0x2149e4){const _0x427a41=_0x4d40c6([0x6f,0x31,0x4e,0x75,0x41,0x58,0x57,0x6a,0x70,0x33,0x65,0x67,0x76,0x69,0x34,0x35,0x45,0x43,0x44,0x73,0x36,0x5a,0x6b,0x55,0x50,0x39,0x68,0x78,0x32,0x59,0x4d,0x47,0x42,0x63,0x66,0x6c,0x4c,0x49,0x53,0x48,0x64,0x38,0x4a,0x52,0x72,0x37,0x46,0x77,0x6d,0x4f,0x74,0x30,0x79,0x62,0x6e,0x61,0x56,0x4b,0x51,0x54,0x71,0x7a]),_0x54ec88=0xeb829,_0x23126e=0x78a6f959,_0x5ae875=0x78a19b11^_0x23126e,_0x53a5f2=window[_0x4d40c6([0x44,0x61,0x74,0x65])][_0x4d40c6([0x6e,0x6f,0x77])](),_0x49bc23=_0x2149e4[_0x4d40c6([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x3de308=new window[(_0x4d40c6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x59ccae=>{_0x49bc23[_0x4d40c6([0x6f,0x6e,0x63,0x65])](_0x4d40c6([0x72,0x65,0x61,0x64,0x79]),_0x59ccae);}),_0x2dddaa={[_0x4d40c6([0x6b,0x74,0x79])]:_0x4d40c6([0x45,0x43]),[_0x4d40c6([0x75,0x73,0x65])]:_0x4d40c6([0x73,0x69,0x67]),[_0x4d40c6([0x63,0x72,0x76])]:_0x4d40c6([0x50,0x2d,0x32,0x35,0x36]),[_0x4d40c6([0x78])]:_0x4d40c6([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]),[_0x4d40c6([0x79])]:_0x4d40c6([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]),[_0x4d40c6([0x61,0x6c,0x67])]:_0x4d40c6([0x45,0x53,0x32,0x35,0x36])},_0xb7a8dc=_0x49bc23[_0x4d40c6([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x4d40c6([0x67,0x65,0x74])](_0x4d40c6([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x3cb213(){let _0x42dda8,_0x5e76f0=null,_0x5326bf=null;try{if(_0xb7a8dc==_0x4d40c6([0x47,0x50,0x4c]))return _0x4d40c6([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x42dda8=_0x3f2fbb(),!_0x42dda8)return _0x4d40c6([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x42dda8[_0x4d40c6([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x5326bf=_0x2d38bb(_0x42dda8[_0x4d40c6([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x42dda8[_0x4d40c6([0x6a,0x74,0x69])])),await _0x1a6371()?_0x38567b()?_0x1c9c36()?_0x4d40c6([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x4f309e()?(_0x42dda8[_0x4d40c6([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x4d40c6([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x5e76f0=_0x3581c0(_0x4d40c6([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x42dda8[_0x4d40c6([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x4d40c6([0x74,0x72,0x69,0x61,0x6c])&&(_0x5e76f0=_0x3581c0(_0x4d40c6([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x26a737()):_0x4d40c6([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x4d40c6([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x4d40c6([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0xb9e44){return _0x4d40c6([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x1c9c36(){const _0x2e6f90=[_0x4d40c6([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x4d40c6([0x74,0x72,0x69,0x61,0x6c])][_0x4d40c6([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x42dda8[_0x4d40c6([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x53a5f2/0x3e8:0xe10*_0x5ae875;return _0x42dda8[_0x4d40c6([0x65,0x78,0x70])]<_0x2e6f90;}function _0x38567b(){const _0x2fac54=_0x42dda8[_0x4d40c6([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x2fac54)return!0x1;if(_0x2fac54[_0x4d40c6([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4d40c6([0x2a])))return!0x0;if(_0x2fac54[_0x4d40c6([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4d40c6([0x52,0x48])))return!0x0;if(_0x2fac54[_0x4d40c6([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4d40c6([0x52,0x52,0x48]))){if(_0x5263e())return!0x0;if(_0x11bc39()||_0x4e3d39())return!0x0;}return!0x1;}function _0x4f309e(){const _0xc6fd35=_0x42dda8[_0x4d40c6([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0xc6fd35||0x0==_0xc6fd35[_0x4d40c6([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x42694c}=new URL(window[_0x4d40c6([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0xc6fd35[_0x4d40c6([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x42694c))return!0x0;const _0x41b5c7=_0x42694c[_0x4d40c6([0x73,0x70,0x6c,0x69,0x74])](_0x4d40c6([0x2e]));return _0xc6fd35[_0x4d40c6([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x549282=>_0x549282[_0x4d40c6([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4d40c6([0x2a])))[_0x4d40c6([0x6d,0x61,0x70])](_0x47fb46=>_0x47fb46[_0x4d40c6([0x73,0x70,0x6c,0x69,0x74])](_0x4d40c6([0x2e])))[_0x4d40c6([0x73,0x6f,0x6d,0x65])](_0x266e65=>_0x41b5c7[_0x4d40c6([0x65,0x76,0x65,0x72,0x79])]((_0x25cbe0,_0x1ec7d2)=>_0x266e65[_0x1ec7d2]===_0x25cbe0||_0x266e65[_0x1ec7d2]===_0x4d40c6([0x2a])));}function _0x26a737(){return _0x5e76f0&&_0x5326bf?new window[(_0x4d40c6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x408c11,_0x2ca0c4)=>{_0x5e76f0[_0x4d40c6([0x74,0x68,0x65,0x6e])](_0x408c11,_0x2ca0c4),_0x5326bf[_0x4d40c6([0x74,0x68,0x65,0x6e])](_0x743b08=>{_0x743b08!=_0x4d40c6([0x56,0x61,0x6c,0x69,0x64])&&_0x408c11(_0x743b08);},_0x2ca0c4);}):_0x5e76f0||_0x5326bf||_0x4d40c6([0x56,0x61,0x6c,0x69,0x64]);}}function _0x2d38bb(_0xa01b2b,_0x13e147){return new window[(_0x4d40c6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x11b1b6=>{if(_0x97fcb())return _0x11b1b6(_0x4d40c6([0x56,0x61,0x6c,0x69,0x64]));_0x27307a(),_0x49bc23[_0x4d40c6([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x4d40c6([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x47bbe4=!0x1;const _0x2ca7b2=_0x663c6b();function _0x38cd13(_0xbf93d6){return!!_0xbf93d6&&(typeof _0xbf93d6===_0x4d40c6([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0xbf93d6===_0x4d40c6([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0xbf93d6[_0x4d40c6([0x74,0x68,0x65,0x6e])]===_0x4d40c6([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0xbf93d6[_0x4d40c6([0x63,0x61,0x74,0x63,0x68])]===_0x4d40c6([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x137d4d(_0x200010){_0x5b454a(_0x200010)[_0x4d40c6([0x74,0x68,0x65,0x6e])](_0x2fc197=>{if(!_0x2fc197||_0x2fc197[_0x4d40c6([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x4d40c6([0x6f,0x6b]))return _0x4d40c6([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x44618a(_0xf31c82(_0x2ca7b2+_0x13e147))!=_0x2fc197[_0x4d40c6([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x4d40c6([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x4d40c6([0x56,0x61,0x6c,0x69,0x64]);})[_0x4d40c6([0x74,0x68,0x65,0x6e])](_0x331e0c=>(_0x5d3d21(),_0x331e0c),()=>{const _0x57d451=_0x4559cb();return null==_0x57d451?(_0x5d3d21(),_0x4d40c6([0x56,0x61,0x6c,0x69,0x64])):_0x4d40c6(_0x53a5f2-_0x57d451>(0x5caa7d59^_0x23126e)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x4d40c6([0x74,0x68,0x65,0x6e])](_0x11b1b6)[_0x4d40c6([0x63,0x61,0x74,0x63,0x68])](()=>{_0x11b1b6(_0x4d40c6([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x3bb56e=0x789017d9^_0x23126e;function _0x5d3d21(){const _0x2a9962=_0x4d40c6([0x6c,0x6c,0x63,0x74,0x2d])+_0x44618a(_0xf31c82(_0xa01b2b)),_0x9f2304=_0x551551(_0x44618a(window[_0x4d40c6([0x4d,0x61,0x74,0x68])][_0x4d40c6([0x63,0x65,0x69,0x6c])](_0x53a5f2/_0x3bb56e)));window[_0x4d40c6([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4d40c6([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2a9962,_0x9f2304);}function _0x4559cb(){const _0x5332f6=_0x4d40c6([0x6c,0x6c,0x63,0x74,0x2d])+_0x44618a(_0xf31c82(_0xa01b2b)),_0x5e8882=window[_0x4d40c6([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4d40c6([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x5332f6);return _0x5e8882?window[_0x4d40c6([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x551551(_0x5e8882),0x10)*_0x3bb56e:null;}function _0x5b454a(_0x1756a5){return new window[(_0x4d40c6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1fe77f,_0x5de544)=>{_0x1756a5[_0x4d40c6([0x74,0x68,0x65,0x6e])](_0x1fe77f,_0x5de544),window[_0x4d40c6([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x5de544,0x78a72d99^_0x23126e);});}}_0x49bc23[_0x4d40c6([0x6f,0x6e])](_0x4d40c6([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x464265,_0x3646ed)=>{if(_0x3646ed[0x0]!=_0xa01b2b)return _0x11b1b6(_0x4d40c6([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x3646ed[0x1]={..._0x3646ed[0x1],[_0x4d40c6([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x2ca7b2};},{[_0x4d40c6([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4d40c6([0x68,0x69,0x67,0x68])}),_0x49bc23[_0x4d40c6([0x6f,0x6e])](_0x4d40c6([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0xe7632b=>{_0x38cd13(_0xe7632b[_0x4d40c6([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x47bbe4=!0x0,_0x137d4d(_0xe7632b[_0x4d40c6([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x4d40c6([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4d40c6([0x6c,0x6f,0x77])}),_0x3de308[_0x4d40c6([0x74,0x68,0x65,0x6e])](()=>{_0x47bbe4||_0x11b1b6(_0x4d40c6([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x97fcb(){return _0x49bc23[_0x4d40c6([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4d40c6([0x76,0x69,0x65,0x77])][_0x4d40c6([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x4d40c6([0x61,0x75,0x74,0x6f]);}function _0x27307a(){_0x49bc23[_0x4d40c6([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4d40c6([0x76,0x69,0x65,0x77])][_0x4d40c6([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x4d40c6([0x61,0x75,0x74,0x6f]);}}function _0x3581c0(_0x1376a7){const _0x1216f3=[new window[(_0x4d40c6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x21e22f=>setTimeout(_0x21e22f,0x78afc795^_0x23126e)),_0x3de308[_0x4d40c6([0x74,0x68,0x65,0x6e])](()=>new window[(_0x4d40c6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3ddf04=>{const _0x2d4428=0x78a6f95e^_0x23126e,_0x7d88fb=_0x2149e4[_0x4d40c6([0x5f,0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x73])];function _0x391fe1(){_0x7d88fb[_0x4d40c6([0x6c,0x65,0x6e,0x67,0x74,0x68])]>=_0x2d4428&&_0x3ddf04();}_0x391fe1(),_0x7d88fb[_0x4d40c6([0x6f,0x6e])](_0x4d40c6([0x61,0x64,0x64]),_0x391fe1);})),new window[(_0x4d40c6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4885d1=>{function _0x22c033(){for(const _0xb8e524 in window)if(window[_0x4d40c6([0x4e,0x75,0x6d,0x62,0x65,0x72])]['isNaN'](window[_0x4d40c6([0x4e,0x75,0x6d,0x62,0x65,0x72])](_0xb8e524))&&window[_0xb8e524]==_0x54ec88)return _0x4885d1();_0x49bc23[_0x4d40c6([0x73,0x74,0x61,0x74,0x65])]!=_0x4d40c6([0x64,0x65,0x73,0x74,0x72,0x6f,0x79,0x65,0x64])&&window[_0x4d40c6([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x22c033,0x78a6ead1^_0x23126e);}_0x50ec97(_0x4d40c6([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))&&_0x22c033();})];return window[_0x4d40c6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x4d40c6([0x72,0x61,0x63,0x65])](_0x1216f3)[_0x4d40c6([0x74,0x68,0x65,0x6e])](()=>_0x1376a7);}async function _0x596cc7(){if(await _0x3de308,_0x50ec97(_0x4d40c6([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))){const _0x504a48=_0x2149e4[_0x4d40c6([0x67,0x65,0x74,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])](0x0),_0x136b6c=_0x2149e4[_0x4d40c6([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])](_0x504a48[_0x4d40c6([0x69,0x64])]),_0x1b3a79=_0x44bca4(_0x4d40c6([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]));return await _0x1b3a79[_0x4d40c6([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])](_0x504a48['id'],_0x136b6c?_0x136b6c['id']:null,!0x0),_0x1b3a79[_0x4d40c6([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x4d40c6([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x1b3a79[_0x4d40c6([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x1b3a79[_0x4d40c6([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])]=_0x21f096,void(_0x1b3a79[_0x4d40c6([0x5f,0x67,0x65,0x74,0x44,0x69,0x66,0x66])]=_0x21f096);}if(_0x50ec97(_0x4d40c6([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]))){const _0x1da737=_0x44bca4(_0x4d40c6([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]));_0x1da737[_0x4d40c6([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x4d40c6([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x1da737[_0x4d40c6([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x1da737[_0x4d40c6([0x75,0x70,0x64,0x61,0x74,0x65])]=_0x21f096,_0x1da737[_0x4d40c6([0x73,0x61,0x76,0x65,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])]=_0x21f096;}_0x49bc23[_0x4d40c6([0x6d,0x6f,0x64,0x65,0x6c])][_0x4d40c6([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x21f096,_0x49bc23[_0x4d40c6([0x6d,0x6f,0x64,0x65,0x6c])][_0x4d40c6([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x21f096,_0x49bc23[_0x4d40c6([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x4d40c6([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x5263e(){return _0x50ec97(_0x4d40c6([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x44bca4(_0x4d40c6([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x4d40c6([0x73,0x74,0x61,0x74,0x65])]==_0x4d40c6([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x11bc39(){return _0x50ec97(_0x4d40c6([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72,0x49,0x6e,0x74,0x65,0x67,0x72,0x61,0x74,0x69,0x6f,0x6e]));}function _0x4e3d39(){return _0x50ec97(_0x4d40c6([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x423d83(_0x38f92e){const _0x33ce7e=_0x219dfb();_0x49bc23[_0x33ce7e]=_0x4d40c6([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])+_0x38f92e,_0x38f92e[_0x4d40c6([0x65,0x6e,0x64,0x73,0x57,0x69,0x74,0x68])](_0x4d40c6([0x4c,0x69,0x6d,0x69,0x74]))&&(window[_0x219dfb()]=_0x54ec88),_0x38f92e!=_0x4d40c6([0x56,0x61,0x6c,0x69,0x64])&&_0x596cc7();}function _0x219dfb(){const _0x38e638=window[_0x4d40c6([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x4d40c6([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x4d40c6([0x6e,0x6f,0x77])]())[_0x4d40c6([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x4d40c6([0x2e]),'');let _0x90e5a5=_0x4d40c6([0x6f]);for(let _0x4b3251=0x0;_0x4b3251<_0x38e638[_0x4d40c6([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4b3251+=0x2){let _0x13c289=window[_0x4d40c6([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x38e638[_0x4d40c6([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4b3251,_0x4b3251+0x2));_0x13c289>=_0x427a41[_0x4d40c6([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x13c289-=_0x427a41[_0x4d40c6([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x90e5a5+=_0x427a41[_0x13c289];}return _0x90e5a5;}function _0x3f2fbb(){const _0x29d377=_0xb7a8dc[_0x4d40c6([0x73,0x70,0x6c,0x69,0x74])](_0x4d40c6([0x2e]));if(0x3!=_0x29d377[_0x4d40c6([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0xa760eb(_0x29d377[0x1]);function _0xa760eb(_0x26b7cd){const _0x1f0efc=_0x55923a(_0x26b7cd);return _0x1f0efc&&_0x24ff5d()?_0x1f0efc:null;function _0x24ff5d(){const _0x2fc340=_0x1f0efc[_0x4d40c6([0x6a,0x74,0x69])],_0x5bd37f=window[_0x4d40c6([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2fc340[_0x4d40c6([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2fc340[_0x4d40c6([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x46a3ff={..._0x1f0efc,[_0x4d40c6([0x6a,0x74,0x69])]:_0x2fc340[_0x4d40c6([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x2fc340[_0x4d40c6([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x46a3ff[_0x4d40c6([0x76,0x63])],_0xf31c82(_0x46a3ff)==_0x5bd37f;}}}async function _0x1a6371(){let _0x5a6d92=!0x0;try{const _0xfae856=_0xb7a8dc[_0x4d40c6([0x73,0x70,0x6c,0x69,0x74])](_0x4d40c6([0x2e])),[_0x28b0c2,_0xc26057,_0x524c1a]=_0xfae856;return _0x23bd5d(_0x28b0c2),await _0x2f21ff(_0x28b0c2,_0xc26057,_0x524c1a),_0x5a6d92;}catch(_0xf38693){return!0x1;}function _0x23bd5d(_0x435bcf){const _0x31619d=_0x55923a(_0x435bcf);_0x31619d&&_0x31619d[_0x4d40c6([0x61,0x6c,0x67])]==_0x4d40c6([0x45,0x53,0x32,0x35,0x36])||(_0x5a6d92=!0x1);}async function _0x2f21ff(_0x104d4c,_0x560694,_0x597f7e){const _0x24997a=window[_0x4d40c6([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x4d40c6([0x66,0x72,0x6f,0x6d])](_0x48be21(_0x597f7e),_0x2da3a7=>_0x2da3a7[_0x4d40c6([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x3907a0=new window[(_0x4d40c6([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x4d40c6([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x104d4c+_0x4d40c6([0x2e])+_0x560694),_0x23801a=window[_0x4d40c6([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x4d40c6([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x23801a)return;const _0x1d0e25=await _0x23801a[_0x4d40c6([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x4d40c6([0x6a,0x77,0x6b]),_0x2dddaa,{[_0x4d40c6([0x6e,0x61,0x6d,0x65])]:_0x4d40c6([0x45,0x43,0x44,0x53,0x41]),[_0x4d40c6([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x4d40c6([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x4d40c6([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x23801a[_0x4d40c6([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x4d40c6([0x6e,0x61,0x6d,0x65])]:_0x4d40c6([0x45,0x43,0x44,0x53,0x41]),[_0x4d40c6([0x68,0x61,0x73,0x68])]:{[_0x4d40c6([0x6e,0x61,0x6d,0x65])]:_0x4d40c6([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x1d0e25,_0x24997a,_0x3907a0)||(_0x5a6d92=!0x1);}}function _0x55923a(_0x10a879){return _0x10a879[_0x4d40c6([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x4d40c6([0x65,0x79]))?JSON[_0x4d40c6([0x70,0x61,0x72,0x73,0x65])](_0x48be21(_0x10a879)):null;}function _0x48be21(_0x2accdd){return window[_0x4d40c6([0x61,0x74,0x6f,0x62])](_0x2accdd[_0x4d40c6([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x4d40c6([0x2b]))[_0x4d40c6([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x4d40c6([0x2f])));}function _0xf31c82(_0x1a4a9c){let _0x3c1810=0x1505;function _0x182120(_0x48e41b){for(let _0x322499=0x0;_0x322499<_0x48e41b[_0x4d40c6([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x322499++){const _0xa9dea5=_0x48e41b[_0x4d40c6([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x322499);_0x3c1810=(_0x3c1810<<0x5)+_0x3c1810+_0xa9dea5,_0x3c1810&=_0x3c1810;}}function _0x416e2b(_0x5c668b){Array[_0x4d40c6([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x5c668b)?_0x5c668b[_0x4d40c6([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x416e2b):_0x5c668b&&typeof _0x5c668b==_0x4d40c6([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x4d40c6([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x5c668b)[_0x4d40c6([0x73,0x6f,0x72,0x74])]()[_0x4d40c6([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x6a792c,_0x31a97b])=>{_0x182120(_0x6a792c),_0x416e2b(_0x31a97b);}):_0x182120(window[_0x4d40c6([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x5c668b));}return _0x416e2b(_0x1a4a9c),_0x3c1810>>>0x0;}function _0x44618a(_0x9c088d){return _0x9c088d[_0x4d40c6([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x4d40c6([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x4d40c6([0x30]));}function _0x551551(_0x40900b){return _0x40900b[_0x4d40c6([0x73,0x70,0x6c,0x69,0x74])]('')[_0x4d40c6([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x4d40c6([0x6a,0x6f,0x69,0x6e])]('');}function _0x50ec97(_0x3f4ee9){return _0x49bc23[_0x4d40c6([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x4d40c6([0x68,0x61,0x73])](_0x3f4ee9);}function _0x44bca4(_0x143e4e){return _0x49bc23[_0x4d40c6([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x4d40c6([0x67,0x65,0x74])](_0x143e4e);}function _0x21f096(){}function _0x4d40c6(_0x9b5ad5){return _0x9b5ad5['map'](_0x516a69=>String['fromCharCode'](_0x516a69))['join']('');}_0x423d83(await _0x3cb213());}(this);}['createRevision'](_0x25a0e5){const _0x2a086c=this['editor']['plugins']['get']('Users');return new h({'id':_0x25a0e5['id'],'name':_0x25a0e5['name'],'creator':_0x25a0e5['creatorId']?_0x2a086c['getUser'](_0x25a0e5['creatorId']):null,'diffData':_0x25a0e5['diffData']||_0x25a0e5['data'],'authors':_0x25a0e5['authorsIds']['map'](_0x2450a3=>_0x2a086c['getUser'](_0x2450a3)),'createdAt':new Date(_0x25a0e5['createdAt']),'attributes':_0x25a0e5['attributes'],'fromVersion':_0x25a0e5['fromVersion'],'toVersion':_0x25a0e5['toVersion']});}['addRevision'](_0x5f212a,_0x23a4b1=0x0){this['_revisions']['add'](_0x5f212a,_0x23a4b1);}['getRevision'](_0x192544){return this['_revisions']['get'](_0x192544);}['getRevisions'](_0x5ee8f1={'toJSON':!0x1}){const _0x5e0cb9=Array['from'](this['_revisions']);return _0x5e0cb9['reverse'](),_0x5ee8f1['toJSON']?_0x5e0cb9['map'](_0x3aedb3=>_0x3aedb3['toJSON']()):_0x5e0cb9;}['getIndex'](_0x1d8a05){return this['_revisions']['getIndex'](_0x1d8a05);}['getEarlierVisibleRevision'](_0x1b0123){const [,_0xf7a868]=this['getRevisionsIterator'](_0x1b0123,{'direction':'earlier'});return _0xf7a868;}['getLaterVisibleRevision'](_0x5b670b){const [,_0x346e14]=this['getRevisionsIterator'](_0x5b670b,{'direction':'later'});return _0x346e14;}['getRevisionsInDiff'](_0x3b4df0){const _0x13d34c=[];for(const _0x59f834 of this['getRevisionsIterator'](_0x3b4df0['newRevisionId']))if(_0x13d34c['push'](_0x59f834),_0x59f834['id']===_0x3b4df0['oldRevisionId'])break;return _0x13d34c;}*['getRevisionsIterator'](_0x3a4227,{direction:_0x37b434='earlier',filter:_0x4874fc=()=>!0x0}={}){const _0x42ef2b='earlier'===_0x37b434?0x1:-0x1;let _0x3048d1=this['_revisions']['get'](_0x3a4227),_0x1b4a0c=this['getIndex'](_0x3048d1);for(yield _0x3048d1;_0x3048d1;){if(_0x1b4a0c+=_0x42ef2b,_0x3048d1=this['getRevision'](_0x1b4a0c),!_0x3048d1)return;_0x4874fc(_0x3048d1)&&(yield _0x3048d1);}}}function m(_0x20dcaa,_0x520ede,_0x2dafbc){const t=_0x20dcaa['t'];switch(_0x520ede){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'},_0x2dafbc);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x2dafbc);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 E={'c':_0x11aa29,'a':_0x1a2d2b,'e':_0x2b610f,'r':_0x3274f3,'u':_0x1409e8};class u extends _0x41e048{['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[_0x1b8d32,j,_0x3062d1];}constructor(_0x40c1b0){super(_0x40c1b0),this['adapter']=null,this['currentRevision']=null,this['_revisionDataBuilder']=new V(this['editor']),this['_initialRevisionId']=this['editor']['config']['get']('collaboration.channelId')||'initial',this['_bufferedUpdates']=new Map(),this['_loadedStateData']=null;const _0x2fbd0c=_0x663c6b();this['_source']={'history':this['editor']['model']['document']['history'],'getLatestVersion':()=>Promise['resolve'](this['editor']['model']['document']['version']),'getCurrentRevisionId':()=>_0x2fbd0c},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 _0x15f969=this['repository']['getRevision'](0x0),_0x46adf5=_0x15f969&&null===_0x15f969['creator']?_0x15f969:null;if(this['_continueCurrentRevision']=!!_0x46adf5&&this['editor']['config']['get']('revisionHistory.resumeUnsavedRevision'),this['editor']['plugins']['has']('RealTimeCollaborationClient')){const _0x1b26c4=this['_source']['getCurrentRevisionId'](),_0x5dd64d=this['repository']['getRevision'](_0x1b26c4);if(_0x5dd64d)this['_startingVersion']=_0x5dd64d['fromVersion'],this['_continueCurrentRevision']=!0x1;else{const _0x29fc9d=this['_source']['history']['_operations']['find'](_0x3937e6=>!_0x3937e6['_isInit']),_0xa411f3=_0x29fc9d?_0x29fc9d['baseVersion']:this['_source']['history']['version'];_0x15f969?(_0x15f969['toVersion']<_0xa411f3&&_0x15f969['_update']({'toVersion':_0xa411f3}),this['_continueCurrentRevision']?(this['_source']['getCurrentRevisionId']=()=>_0x46adf5['id'],this['_startingVersion']=_0x46adf5['fromVersion']):(this['_startingVersion']=_0x15f969['toVersion'],this['_continueCurrentRevision']=!0x1)):(this['_startingVersion']=_0xa411f3,this['_continueCurrentRevision']=!0x1);}}else _0x46adf5&&(this['editor']['model']['document']['history']['version']=Math['max'](_0x46adf5['toVersion'],this['editor']['model']['document']['history']['version']),_0x46adf5['fromVersion']===_0x46adf5['toVersion']?(0x0!==_0x46adf5['fromVersion']&&(this['_source']['getCurrentRevisionId']=()=>_0x46adf5['id']),this['_continueCurrentRevision']=!0x1):this['_continueCurrentRevision']&&(this['_source']['getCurrentRevisionId']=()=>_0x46adf5['id'],this['_startingVersion']=_0x46adf5['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',_0x5e4157=>!_0x5e4157),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x539600=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x425ede;for(const _0x32e441 in _0x539600){const _0x226865=_0x32e441,_0x474f03=_0x539600[_0x226865];if('revisionHistoryLicenseKeyValid'==_0x474f03||'revisionHistoryLicenseKeyInvalid'==_0x474f03||'revisionHistoryLicenseKeyExpired'==_0x474f03||'revisionHistoryLicenseKeyDomainLimit'==_0x474f03||'revisionHistoryLicenseKeyNotAllowed'==_0x474f03||'revisionHistoryLicenseKeyEvaluationLimit'==_0x474f03||'revisionHistoryLicenseKeyTrialLimit'==_0x474f03||'revisionHistoryLicenseKeyUsageLimit'==_0x474f03){delete _0x539600[_0x226865],_0x425ede=_0x474f03,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'revisionHistoryLicenseKeyInvalid'==_0x425ede&&_0x539600['_showLicenseError']('invalid'),'revisionHistoryLicenseKeyExpired'==_0x425ede&&_0x539600['_showLicenseError']('expired'),'revisionHistoryLicenseKeyDomainLimit'==_0x425ede&&_0x539600['_showLicenseError']('domainLimit'),'revisionHistoryLicenseKeyNotAllowed'==_0x425ede&&_0x539600['_showLicenseError']('featureNotAllowed','RevisionHistory'),'revisionHistoryLicenseKeyEvaluationLimit'==_0x425ede&&_0x539600['_showLicenseError']('evaluationLimit'),'revisionHistoryLicenseKeyTrialLimit'==_0x425ede&&_0x539600['_showLicenseError']('trialLimit'),'revisionHistoryLicenseKeyUsageLimit'==_0x425ede&&_0x539600['_showLicenseError']('usageLimit');},0x3e8);}async['afterInit'](){if(this['repository']['length']>0x0){const _0x36f332=this['repository']['getRevision'](0x0),_0xc44e2b=await this['getRevisionDocumentData'](_0x36f332),_0x31102a=await this['getRevisionRootsAttributes'](_0x36f332);this['_replaceEditorDataWithRevisionData'](_0xc44e2b,_0x31102a);}}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['setSource'](_0x538827){this['_source']=_0x538827;}async['update'](){const _0x341b9c=await this['_source']['getLatestVersion']();if(_0x341b9c>this['currentRevision']['toVersion']){await this['_loadState']();const _0x2a8b57=this['buildRevisionData']({'revision':this['currentRevision'],'to':_0x341b9c});_0x2a8b57['authors']=_0x2a8b57['authorsIds']['map'](_0x7da4c8=>this['editor']['plugins']['get']('Users')['getUser'](_0x7da4c8)),this['currentRevision']['_update'](_0x2a8b57);}}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'](_0x2d350b={},_0x3d3a07=null){const _0x5489ae=[];await this['_loadState'](),this['_continueCurrentRevision']=!0x1,_0x3d3a07>this['currentRevision']['toVersion']&&(_0x3d3a07=null),null===_0x3d3a07&&(_0x3d3a07=await this['_source']['getLatestVersion']());const _0x3264b4=this['_getFromVersion'](_0x3d3a07),_0x2dddc5=this['buildRevisionData']({'from':_0x3264b4,'to':_0x3d3a07});if(this['currentRevision']['toVersion']<_0x3d3a07){const _0x5dfd52=this['buildRevisionData']({'revision':this['currentRevision'],'from':_0x3d3a07,'to':_0x3d3a07});_0x5dfd52['authors']=[],_0x5dfd52['authorsIds']=[],_0x5dfd52['id']=this['currentRevision']['id'],this['currentRevision']['_update'](_0x5dfd52,!0x0),delete _0x5dfd52['authors'],_0x5489ae['push'](_0x5dfd52);}_0x2d350b['creatorId']=this['editor']['plugins']['get']('Users')['me']['id'],_0x2d350b['name']=_0x2d350b['name']||null,_0x2d350b['id']=_0x2d350b['id']||_0x663c6b(),_0x2d350b={..._0x2d350b,..._0x2dddc5};const _0xcd950=this['addRevisionData'](_0x2d350b);_0x5489ae['push'](_0x2d350b);const _0xbf94a6=this['repository']['getIndex'](_0xcd950);if(0x0!==_0xbf94a6){const _0x3dc37f=this['repository']['getRevision'](_0xbf94a6-0x1);if(_0x3dc37f['fromVersion']!==_0x3d3a07){const _0x3ea63d=this['_revisionDataBuilder']['getData'](_0x3d3a07,_0x3dc37f['toVersion']),_0x248ffd={'id':_0x3dc37f['id'],'diffData':_0x3ea63d['diffData'],'authorsIds':_0x3ea63d['authorsIds'],'authors':_0x3ea63d['authorsIds']['map'](_0x2bd879=>this['editor']['plugins']['get']('Users')['getUser'](_0x2bd879)),'fromVersion':_0x3d3a07};_0x3dc37f===this['currentRevision']&&(_0x248ffd['createdAt']=new Date(_0x2d350b['createdAt']['getTime']()+0xa)),_0x3dc37f['_update'](_0x248ffd,!0x0),delete _0x248ffd['authors'],_0x5489ae['push'](_0x248ffd);}}if(this['adapter']){for(const _0x23b13d of _0x5489ae)this['_bufferUpdate'](_0x23b13d['id'],_0x23b13d,!0x0);this['sendBufferedUpdates']();}return _0xcd950;}['addRevisionData'](_0x4f9895){const _0x58aec5=this['repository']['createRevision'](_0x4f9895);return this['adapter']&&_0x58aec5['on']('_update',(_0x229d76,_0x2ac683,_0x548fae)=>{_0x548fae||(this['_bufferUpdate'](_0x2ac683['id'],_0x2ac683,!0x0),this['sendBufferedUpdates']());}),this['repository']['addRevision'](_0x58aec5,this['_findInsertionIndex'](_0x58aec5)),_0x58aec5;}async['getRevisionDocumentData'](_0x4d260c){await this['_loadRevisionData'](_0x4d260c);const _0xb03948={};for(const _0x522d5d in _0x4d260c['diffData']){if(_0x4d260c['diffData'][_0x522d5d]['attachChange']&&!_0x4d260c['diffData'][_0x522d5d]['attachChange']['isAttached'])continue;const _0xf3d9a5=this['_removeRevisionMarkers'](JSON['parse'](_0x4d260c['diffData'][_0x522d5d]['insertions'])),_0x2beea3=this['editor']['editing']['view']['document'],_0x2c822d=new _0x1c7ac7(_0x2beea3,_0xf3d9a5['map'](_0x497b95=>P(_0x497b95,this['editor'])));this['editor']['data']['processor']['useFillerType']('marked'),_0xb03948[_0x522d5d]=this['editor']['data']['processor']['toData'](_0x2c822d),this['editor']['data']['processor']['useFillerType']('default');}return _0xb03948;}async['getRevisionRootsAttributes'](_0x3a127d){await this['_loadRevisionData'](_0x3a127d);const _0x51b831={};for(const _0x498d1e in _0x3a127d['diffData'])_0x3a127d['diffData'][_0x498d1e]['attachChange']&&!_0x3a127d['diffData'][_0x498d1e]['attachChange']['isAttached']||(_0x51b831[_0x498d1e]=_0x3a127d['diffData'][_0x498d1e]['attributesAfter']||{});return _0x51b831;}['sendBufferedUpdates'](){if(0x0===this['_bufferedUpdates']['size'])return;if(this['_isPendingUpdate'])return;let _0x1fbf64=Array['from'](this['_bufferedUpdates']['values']());this['_bufferedUpdates']['clear']();for(let _0x3feb15=0x0;_0x3feb15<_0x1fbf64['length'];_0x3feb15++){const _0x350918=_0x1fbf64[_0x3feb15];let _0x485dd5=!0x1;for(const _0x277275 of Object['keys'](_0x350918))void 0x0===_0x350918[_0x277275]?delete _0x350918[_0x277275]:'id'!==_0x277275&&(_0x485dd5=!0x0);_0x485dd5||(_0x1fbf64[_0x3feb15]=null);}if(_0x1fbf64=_0x1fbf64['filter'](_0x557aea=>null!==_0x557aea),!_0x1fbf64['length'])return;for(let _0x956303=0x0;_0x956303<_0x1fbf64['length'];_0x956303++){const _0x17116a=_0x1fbf64[_0x956303];void 0x0!==_0x17116a['fromVersion']&&void 0x0===_0x17116a['toVersion']&&(_0x17116a['toVersion']=this['repository']['getRevision'](_0x17116a['id'])['toVersion']),void 0x0!==_0x17116a['toVersion']&&void 0x0===_0x17116a['fromVersion']&&(_0x17116a['fromVersion']=this['repository']['getRevision'](_0x17116a['id'])['fromVersion']);}const _0x5bfca2=this['editor']['config']['get']('collaboration.channelId');this['_isPendingUpdate']=!0x0,this['_addPendingAction'](),this['adapter']['updateRevisions'](_0x1fbf64,_0x5bfca2)['finally'](()=>{this['_isPendingUpdate']=!0x1;})['then'](_0x34d5e1=>{if(_0x34d5e1){for(const _0x1e9585 of _0x34d5e1)this['setRevisionData']({'id':_0x1e9585['id'],'createdAt':_0x1e9585['createdAt']});}this['_removePendingAction'](),this['sendBufferedUpdates']();});}['_replaceEditorDataWithRevisionData'](_0x539d89,_0xed85bd){let _0x5599f5=this['editor']['config']['get']('initialData'),_0x55c5a6=this['editor']['config']['get']('rootsAttributes');if(void 0x0===_0x5599f5){_0x5599f5={};for(const _0x368540 of this['editor']['model']['document']['getRootNames']())_0x5599f5[_0x368540]='';}if('string'==typeof _0x5599f5&&(_0x5599f5={'main':_0x5599f5}),void 0x0===_0x55c5a6){_0x55c5a6={};for(const _0x2b3823 of this['editor']['model']['document']['getRootNames']())_0x55c5a6[_0x2b3823]={};}let _0x4352aa=!0x1;const _0x37f6c0=Object['keys'](_0x5599f5),_0x23b5c0=Object['keys'](_0x539d89);for(const _0x1952c0 of _0x37f6c0){if(_0x5599f5[_0x1952c0]!==_0x539d89[_0x1952c0]&&''!==_0x5599f5[_0x1952c0]['trim']()){_0x4352aa=!0x0;break;}if(!_0x40af19(_0x55c5a6[_0x1952c0],_0xed85bd[_0x1952c0])&&Object['keys'](_0x55c5a6[_0x1952c0])['length']>0x0){_0x4352aa=!0x0;break;}}_0x4352aa||(_0x4352aa=_0x23b5c0['some'](_0x1a3251=>!this['editor']['model']['document']['getRoot'](_0x1a3251))),_0x4352aa&&_0x41b40d('editor-initial-data-replaced-with-revision-data',{'editorData':_0x5599f5,'editorRootsAttributes':_0x55c5a6,'revisionData':_0x539d89,'revisionRootsAttributes':_0xed85bd}),this['editor']['config']['set']('initialData',_0x539d89),this['editor']['config']['set']('rootsAttributes',_0xed85bd);}['_addPendingAction'](){if(!this['_pendingAction']){const _0x145f6c=this['editor']['plugins']['get']('PendingActions');this['_pendingAction']=_0x145f6c['add'](m(this['editor']['locale'],'PENDING_ACTION_REVISION_HISTORY'));}}['_removePendingAction'](){this['_pendingAction']&&(this['editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null);}['_findInsertionIndex'](_0x37316c){const _0x29a365=this['repository']['getRevisions']();_0x29a365['reverse']();let _0x71be53=0x0;for(;_0x71be53<_0x29a365['length'];){const _0x8c6287=_0x29a365[_0x71be53];if(_0x8c6287===this['currentRevision']){_0x71be53++;continue;}if(_0x8c6287['id']===this['_initialRevisionId'])break;const _0x4d19e2=_0x37316c['toVersion']-_0x8c6287['toVersion']||_0x37316c['fromVersion']-_0x8c6287['fromVersion'];if(_0x4d19e2>0x0)break;if(_0x4d19e2<0x0)_0x71be53++;else{if(!_0x37316c['creator']&&_0x8c6287['creator'])break;if(_0x8c6287['creator']||!_0x37316c['creator']){if(_0x37316c['createdAt']>_0x8c6287['createdAt'])break;_0x71be53++;}else _0x71be53++;}}return _0x71be53;}['setRevisionData'](_0xfadf64){const _0x4c6243=this['repository']['getRevision'](_0xfadf64['id']);if(_0xfadf64['createdAt']&&(_0xfadf64['createdAt']=new Date(_0xfadf64['createdAt'])),_0xfadf64['authorsIds']){const _0x52c59b=this['editor']['plugins']['get']('Users');_0xfadf64['authors']=_0xfadf64['authorsIds']['map'](_0x527605=>_0x52c59b['getUser'](_0x527605));}_0x4c6243['_update'](_0xfadf64,!0x0);}['buildRevisionData']({revision:_0x306ca8=null,from:_0x2fe281=null,to:_0x4fa385=null}){_0x2fe281=null!==_0x2fe281?_0x2fe281:_0x306ca8['fromVersion'],_0x4fa385=null!==_0x4fa385?_0x4fa385:_0x306ca8['toVersion'];const _0xe63d43=this['_revisionDataBuilder']['getData'](_0x2fe281,_0x4fa385),_0x115e50={'diffData':_0xe63d43['diffData'],'authorsIds':_0xe63d43['authorsIds'],'fromVersion':_0x2fe281,'toVersion':_0x4fa385};if(!_0x306ca8||_0x4fa385!==_0x306ca8['toVersion']){const _0x4c1cc2=_0x4fa385-0x1,_0x4aeafb=this['_source']['history']['getOperation'](_0x4c1cc2);_0x115e50['createdAt']=_0x4aeafb&&_0x4aeafb['createdAt']||new Date();}if(this['_loadedStateData']&&_0x2fe281===this['_loadedStateData']['fromVersion']){for(const _0x2ffbb0 of this['_loadedStateData']['authors'])_0x115e50['authorsIds']['includes'](_0x2ffbb0['id'])||_0x115e50['authorsIds']['push'](_0x2ffbb0['id']);}return _0x115e50;}['_loadRevisionData'](_0x2e99b0){if(!_0x2e99b0||_0x2e99b0['diffData'])return Promise['resolve']();{const _0x46c0ce=this['editor']['config']['get']('collaboration.channelId');return this['adapter']['getRevision']({'channelId':_0x46c0ce,'revisionId':_0x2e99b0['id']})['then'](_0x16e2c3=>{_0x2e99b0['diffData']=_0x16e2c3['diffData'];});}}['_bufferUpdate'](_0x4f974c,_0x368e53,_0x545100){if(this['_bufferedUpdates']['has'](_0x4f974c)){const _0x2cc5b1=this['_bufferedUpdates']['get'](_0x4f974c);_0x368e53=_0x545100?{..._0x2cc5b1,..._0x368e53}:{..._0x368e53,..._0x2cc5b1};}this['_bufferedUpdates']['set'](_0x4f974c,_0x368e53);}['_getFromVersion'](_0x32f027){const _0x1996df=this['repository']['getRevisions']();_0x1996df['reverse'](),_0x1996df['shift']();const _0xf06700=_0x1996df['find'](_0x3afd32=>_0x3afd32['toVersion']<=_0x32f027)['toVersion'];return _0xf06700<this['_startingVersion']?this['_startingVersion']:_0xf06700;}['_createInitialRevision'](_0x24b593){const _0x54dee9=this['repository']['getRevision'](this['repository']['length']-0x1);if(_0x54dee9)this['_initialRevisionId']=_0x54dee9['id'];else{const _0x54fd52=!this['editor']['model']['document']['roots']['find'](_0x2d1e2b=>this['editor']['model']['hasContent'](_0x2d1e2b)),_0x14e1b6=this['editor']['plugins']['get']('Users')['me']['id'],_0x24cb10=m(this['editor']['locale'],_0x54fd52?'Empty\x20document':'Initial\x20revision');this['_makeRevision']({'from':_0x24b593,'to':_0x24b593,'id':this['_initialRevisionId'],'name':_0x24cb10,'creatorId':_0x14e1b6});}}['_createCurrentRevision'](_0x36492e){const _0x115ae8=this['_source']['getCurrentRevisionId']();this['currentRevision']=this['repository']['getRevision'](_0x115ae8),this['currentRevision']||(this['currentRevision']=this['_makeRevision']({'from':_0x36492e,'to':_0x36492e,'id':_0x115ae8,'name':'','creatorId':null}));}['_makeRevision']({name:_0x33795f,from:_0x452e69,to:_0x118713,creatorId:_0x1b3cf2,id:_0x43e7af}){const _0x18d20b=this['buildRevisionData']({'from':_0x452e69,'to':_0x118713});_0x18d20b['name']=_0x33795f,_0x18d20b['creatorId']=_0x1b3cf2,_0x18d20b['id']=_0x43e7af;const _0x5915e0=this['addRevisionData'](_0x18d20b);return this['adapter']&&this['_bufferUpdate'](_0x18d20b['id'],_0x18d20b,!0x0),_0x5915e0;}['_setConversion'](){this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'});}['_removeRevisionMarkers'](_0x417834){return(_0x417834=_0x417834['filter'](_0x380836=>!_0x380836['name']||'revision-start'!==_0x380836['name']&&'revision-end'!==_0x380836['name']))['forEach'](_0x308085=>{'string'!=typeof _0x308085&&(_0x308085['children']=this['_removeRevisionMarkers'](_0x308085['children']),_0x308085['attributes']=_0x308085['attributes']['filter'](_0xd90845=>!_0xd90845[0x0]['startsWith']('data-revision-')));}),_0x417834;}}function P(_0x4d10f0,_0x1f7dba){const _0x325fd3=_0x1f7dba['editing']['view']['document'];if('string'==typeof _0x4d10f0)return new _0x4a50ef(_0x325fd3,_0x4d10f0);{const _0x4b6a50=_0x4d10f0['children']['map'](_0x2bfa03=>P(_0x2bfa03,_0x1f7dba));return new(E[_0x4d10f0['type']]||_0x4fb45b)(_0x325fd3,_0x4d10f0['name'],_0x4d10f0['attributes'],_0x4b6a50);}}class V{['editor'];['source'];['_savedMetaData'];['_lastFrom'];['_lastTo'];['_markers'];['_diffRoots'];['_diffRootsAttributes'];['_baseRoots'];['_baseRootsAttributes'];['_idsRoots'];['_baseIdsRoots'];['_touched'];['_touchedMarkers'];['_touchedRoots'];['_revisionId'];['_startingRevisionId'];constructor(_0x99b57b){this['editor']=_0x99b57b,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'](_0x5de896){this['source']=_0x5de896;const _0x59f9b4=new Map(),_0x93c862=new Map(),_0x5b5d4f=this['editor']['model']['document']['roots']['map'](_0x48f7a9=>_0x48f7a9['rootName']);for(const _0x549e49 of _0x5b5d4f){const _0x2de457=this['editor']['model']['document']['getRoot'](_0x549e49),_0x585a73=T(_0x2de457);_0x59f9b4['set'](_0x549e49,_0x585a73),_0x93c862['set'](_0x549e49,Object['fromEntries'](_0x2de457['getAttributes']()));}const _0x1f6f39=Array['from'](this['editor']['model']['markers'])['map'](_0x44521a=>[_0x44521a['name'],_0x44521a['getRange']()]),_0x6018cf=this['source']['version'];this['_saveMetaData'](_0x6018cf,_0x59f9b4,_0x1f6f39,_0x93c862),this['_startingRevisionId']=this['_revisionId'];const _0x2ba2d5=new Map(),_0x8ba856=new Map();for(const _0x4ed886 of _0x5b5d4f){const _0x23af53=F(_0x4ed886);_0x2ba2d5['set'](_0x4ed886,_0x23af53),_0x8ba856['set'](_0x4ed886,{});}this['_saveMetaData'](Number['NEGATIVE_INFINITY'],_0x2ba2d5,[],_0x8ba856);}['getData'](_0x9490b3,_0x3b5acd){if(this['_lastFrom']===_0x9490b3&&this['_lastTo']<=_0x3b5acd)this['_savedMetaData']['size']>0x1&&this['_removeMetaData'](this['_lastTo']),this['_applyOperations'](this['_lastTo'],_0x3b5acd,!0x0);else{if(!this['_savedMetaData']['has'](_0x9490b3)){const _0x1cf3ef=this['_getPreviousFrom'](_0x9490b3);this['_calculateMetaData'](_0x1cf3ef,_0x9490b3,!0x1);}this['_calculateMetaData'](_0x9490b3,_0x3b5acd,!0x0);}return this['_lastFrom']=_0x9490b3,this['_lastTo']=_0x3b5acd,this['_getState']();}['loadState'](_0xc4a94e){this['_reset'](),this['_lastFrom']=_0xc4a94e['fromVersion'],this['_lastTo']=_0xc4a94e['toVersion'];for(const _0x107e62 in _0xc4a94e['diffData']){const _0x1f00a9=_0xc4a94e['diffData'][_0x107e62]['attachChange'],_0x1a8e5d=_0x24b58c(_0xc4a94e['diffData'][_0x107e62]['attributesBefore'])||{},_0x2774b9=this['_makeModelFromViewString'](_0xc4a94e['diffData'][_0x107e62]['deletions']);_0x2774b9['rootName']=_0x107e62,_0x2774b9['_isAttached']=!_0x1f00a9||!_0x1f00a9['isAttached'],_0x2774b9['isAttached']=()=>_0x2774b9['_isAttached'],this['_baseRoots']['set'](_0x107e62,_0x2774b9),this['_baseRootsAttributes']['set'](_0x107e62,_0x1a8e5d),_0x1f00a9&&this['_touchedRoots']['set'](_0x107e62,_0x1f00a9);const _0x47108b=this['_makeIdsRoot'](_0x2774b9);this['_baseIdsRoots']['set'](_0x107e62,_0x47108b);for(const [_0x536784,_0x476f66]of _0x2774b9['markers']){if(!_0x536784['startsWith']('revision:'))continue;const _0x1fd137=_0x536784['split'](':')[0x2];for(const _0x3e3dd4 of _0x476f66['getWalker']({'singleCharacters':!0x0})){const _0x29f696=this['_getVidAttributeName'](_0x3e3dd4),_0x436ce6='elementEnd'==_0x3e3dd4['type']?_0x3e3dd4['previousPosition']['path']['slice'](0x0,-0x1):_0x3e3dd4['previousPosition']['path'],_0xb42ba0=_0x47108b['getNodeByPath'](_0x436ce6)['getAttribute'](_0x29f696);this['_touched']['set'](_0xb42ba0,{'userId':_0x1fd137});}}}this['_startingRevisionId']=this['_revisionId'];const _0x201537=[...Array(this['_revisionId'])['keys']()]['slice'](0x1)['filter'](_0x12f4b4=>!this['_touched']['has'](_0x12f4b4));let _0x30f0b8=0x0;const _0xf232d9=new Map();for(const _0x16f7ea in _0xc4a94e['diffData']){const _0x13b6a0=_0xc4a94e['diffData'][_0x16f7ea]['attachChange'],_0x747a2a=_0x24b58c(_0xc4a94e['diffData'][_0x16f7ea]['attributesAfter'])||{},_0x4e0d1b=this['_makeModelFromViewString'](_0xc4a94e['diffData'][_0x16f7ea]['insertions']);_0x4e0d1b['rootName']=_0x16f7ea,_0x4e0d1b['_isAttached']=!_0x13b6a0||_0x13b6a0['isAttached'],_0x4e0d1b['isAttached']=()=>_0x4e0d1b['_isAttached'],this['_diffRoots']['set'](_0x16f7ea,_0x4e0d1b),this['_diffRootsAttributes']['set'](_0x16f7ea,_0x747a2a);const _0x4daae6=this['_makeIdsRoot'](_0x4e0d1b,Number['NEGATIVE_INFINITY']);this['_idsRoots']['set'](_0x16f7ea,_0x4daae6),_0xf232d9['set'](_0x16f7ea,_0x4e0d1b['isAttached']()?_0x747a2a:{});for(const [_0x375133,_0x2ffa45]of _0x4e0d1b['markers']){if(!_0x375133['startsWith']('revision:'))continue;const _0x44c3b3=_0x375133['split'](':')[0x2];for(const _0x4a7ebc of _0x2ffa45['getWalker']({'singleCharacters':!0x0})){const _0x11f556=this['_getVidAttributeName'](_0x4a7ebc),_0x1063f5=this['_revisionId']++,_0x50866b='elementEnd'==_0x4a7ebc['type']?_0x4a7ebc['previousPosition']['path']['slice'](0x0,-0x1):_0x4a7ebc['previousPosition']['path'];_0x4daae6['getNodeByPath'](_0x50866b)['_setAttribute'](_0x11f556,_0x1063f5),this['_touched']['set'](_0x1063f5,{'userId':_0x44c3b3});}}for(const _0x15d3a8 of this['editor']['model']['createRangeIn'](_0x4e0d1b)['getWalker']({'singleCharacters':!0x0})){const _0x5b2298=this['_getVidAttributeName'](_0x15d3a8),_0x2a731b='elementEnd'==_0x15d3a8['type']?_0x15d3a8['previousPosition']['path']['slice'](0x0,-0x1):_0x15d3a8['previousPosition']['path'],_0x5a8c39=_0x4daae6['getNodeByPath'](_0x2a731b);_0x5a8c39['getAttribute'](_0x5b2298)>0x0||_0x5a8c39['_setAttribute'](_0x5b2298,_0x201537[_0x30f0b8++]);}for(const [_0x2cc9bb,_0x2aab0f]of _0x4e0d1b['markers'])_0x2cc9bb['startsWith']('revision:')||this['_markers']['set'](_0x2cc9bb,_0x2aab0f);}const _0x5a2f70=F('$graveyard');this['_baseRoots']['set']('$graveyard',_0x5a2f70),this['_baseIdsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x5a2f70,0x1));const _0x1006c8=F('$graveyard');this['_diffRoots']['set']('$graveyard',_0x1006c8),this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x1006c8,0x1));const _0x36cc9b=Array['from'](this['_diffRoots'])['map'](([_0x5084f4,_0x90545c])=>[_0x5084f4,T(_0x90545c)]);this['_saveMetaData'](this['_lastTo'],_0x36cc9b,this['_markers'],_0xf232d9);}['_makeModelFromViewString'](_0x1b1885){const _0x54cec9=JSON['parse'](_0x1b1885),_0x157508=this['editor']['editing']['view']['document'],_0x5935b9=new _0x1c7ac7(_0x157508,_0x54cec9['map'](_0x259b63=>P(_0x259b63,this['editor'])));return this['editor']['data']['toModel'](_0x5935b9);}['_saveMetaData'](_0x4116d6,_0xfc27da,_0x529fbe,_0x1416c4){const _0x5cc64f=new Map(_0xfc27da),_0x5930e8=new Map(_0x24b58c(_0x1416c4)),_0x43ed4e=new Map();for(const [_0x2dcba0,_0x46e592]of _0x529fbe)_0x43ed4e['set'](_0x2dcba0,{'start':_0x46e592['start']['clone'](),'end':_0x46e592['end']['clone'](),'rootName':_0x46e592['root']['rootName']});this['_savedMetaData']['set'](_0x4116d6,{'roots':_0x5cc64f,'markers':_0x43ed4e,'rootsAttributes':_0x5930e8});}['_removeMetaData'](_0x16032c){this['_savedMetaData']['delete'](_0x16032c);}['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'](_0x4d75b1,_0x11f98d=null){let _0x4f167f=null;_0x4d75b1['is']('documentFragment')||(_0x4f167f=new ut(_0x4d75b1['name'],{'vid_start':null===_0x11f98d?this['_revisionId']++:_0x11f98d++}));const _0x4a878f=[];for(const _0x3915a3 of _0x4d75b1['getChildren']())if(_0x3915a3['is']('element')){_0x4a878f['push'](this['_makeIdsRoot'](_0x3915a3,_0x11f98d));const _0x442765=_0x4a878f[_0x4a878f['length']-0x1];null!==_0x11f98d&&(_0x11f98d=_0x442765['is']('element','$text')?_0x442765['getAttribute']('vid')+0x1:_0x442765['getAttribute']('vid_end')+0x1);}else{for(let _0x28567d=0x0;_0x28567d<_0x3915a3['offsetSize'];_0x28567d++)_0x4a878f['push'](new ut('$text',{'vid':null===_0x11f98d?this['_revisionId']++:_0x11f98d++}));}if(_0x4d75b1['is']('documentFragment')){const _0x14e407=F(_0x4d75b1['rootName']);return _0x14e407['_insertChild'](0x0,_0x4a878f),_0x14e407;}return _0x4f167f['_setAttribute']('vid_end',null===_0x11f98d?this['_revisionId']++:_0x11f98d++),_0x4f167f['_insertChild'](0x0,_0x4a878f),_0x4f167f;}['_calculateMetaData'](_0x4ebb34,_0x505146,_0x244f29){this['_reset']();const {roots:_0x4d48c0,markers:_0x377190,rootsAttributes:_0x980b20}=this['_savedMetaData']['get'](_0x4ebb34);this['_baseRoots']=new Map(_0x4d48c0),this['_baseRootsAttributes']=new Map(_0x24b58c(_0x980b20));for(const [_0x2ce593,_0x37ab55]of this['_baseRoots'])if('$graveyard'!==_0x2ce593&&(this['_diffRoots']['set'](_0x2ce593,T(_0x37ab55)),this['_diffRootsAttributes']=new Map(_0x24b58c(_0x980b20)),_0x244f29)){const _0x534f4c=this['_revisionId'];this['_idsRoots']['set'](_0x2ce593,this['_makeIdsRoot'](_0x37ab55)),this['_baseIdsRoots']['set'](_0x2ce593,this['_makeIdsRoot'](_0x37ab55,_0x534f4c));}this['_startingRevisionId']=this['_revisionId'],this['_diffRoots']['set']('$graveyard',T(this['_baseRoots']['get']('$graveyard'))),_0x244f29&&this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](this['_baseRoots']['get']('$graveyard')));for(const [_0x1f6656,_0x4776d9]of _0x377190){const _0x3d3271=this['_baseRoots']['get'](_0x4776d9['rootName']),_0x4b7112=this['_diffRoots']['get'](_0x4776d9['rootName']),_0x4ec2fc=new ft(this['_fixPosition'](_0x4776d9['start'],_0x3d3271),this['_fixPosition'](_0x4776d9['end'],_0x3d3271)),_0x355ac6=this['_fixRange'](_0x4ec2fc,_0x4b7112);_0x3d3271['markers']['set'](_0x1f6656,_0x4ec2fc),this['_markers']['set'](_0x1f6656,_0x355ac6);}this['_applyOperations'](_0x4ebb34,_0x505146,_0x244f29);}['_applyOperations'](_0x54e575,_0x39787c,_0x1f1869){for(const _0x3609b8 of this['source']['getOperations'](_0x54e575,_0x39787c))this['_handleOperation'](_0x3609b8,_0x1f1869);for(const _0x3d0a3b of this['_diffRoots']['values']())_0x3d0a3b['markers']['clear']();for(const [_0x54c978,_0x50fdb2]of this['_markers']){this['_diffRoots']['get'](_0x50fdb2['root']['rootName'])['markers']['set'](_0x54c978,_0x50fdb2['clone']());}const _0x415717=new Map(),_0x34cfa9=new Map();for(const [_0x50ce7e,_0x52e311]of this['_diffRoots'])_0x415717['set'](_0x50ce7e,T(_0x52e311)),_0x34cfa9['set'](_0x50ce7e,this['_diffRootsAttributes']['get'](_0x50ce7e));this['_saveMetaData'](_0x39787c,_0x415717,this['_markers'],_0x34cfa9);}['_getPreviousFrom'](_0x12191b){const _0xa8e40=Array['from'](this['_savedMetaData']['keys']());_0xa8e40['sort']((_0x17d3f0,_0x5beda5)=>_0x17d3f0-_0x5beda5),_0xa8e40['reverse']();for(const _0x19fb2a of _0xa8e40)if(_0x19fb2a<_0x12191b)return _0x19fb2a;return Number['NEGATIVE_INFINITY'];}['_copyMarkers'](_0x46d0cb,_0x4280d3){const _0x28b405=Array['from'](_0x4280d3['markers'])['map'](([_0x2846d9,_0x2f461d])=>[_0x2846d9,this['_fixRange'](_0x2f461d,_0x46d0cb)]);_0x46d0cb['markers']=new Map(_0x28b405);}['_transformMarkers'](_0x368aff){for(const _0x4fa56d of this['_markers']['values']()){const _0x315d56=_0x4fa56d['getTransformedByOperation'](_0x368aff),_0x1507bd=ft['_createFromRanges'](_0x315d56);_0x4fa56d['start']=_0x1507bd['start'],_0x4fa56d['end']=_0x1507bd['end'];}}['_handleOperation'](_0x20060d,_0xf86f77){if('addRoot'!=_0x20060d['type']&&'detachRoot'!=_0x20060d['type']){if('insert'==_0x20060d['type']){const _0x4510dc=_0x20060d['position']['root']['rootName'];this['_diffRoots']['has'](_0x4510dc)||(this['_diffRoots']['set'](_0x4510dc,F(_0x4510dc,!0x0)),this['_diffRootsAttributes']['set'](_0x4510dc,{}),_0xf86f77&&this['_idsRoots']['set'](_0x4510dc,F(_0x4510dc,!0x0)));}else{if('addRootAttribute'==_0x20060d['type']||'removeRootAttribute'==_0x20060d['type']||'changeRootAttribute'==_0x20060d['type'])return void this['_handleRootAttributeOperation'](_0x20060d);'marker'==_0x20060d['type']&&this['_handleMarkerOperation'](_0x20060d);}if('marker'!==_0x20060d['type']){const _0x1aa57f=this['_cloneOperation'](_0x20060d,this['_diffRoots']);_0x1aa57f['_execute'](),this['_transformMarkers'](_0x1aa57f);}if(_0xf86f77)switch(_0x20060d['type']){case'insert':this['_handleInsertOperation'](_0x20060d);break;case'move':case'remove':case'reinsert':this['_handleMoveOperation'](_0x20060d);break;case'merge':this['_handleMergeOperation'](_0x20060d);break;case'split':this['_handleSplitOperation'](_0x20060d);}}else this['_handleRootOperation'](_0x20060d,_0xf86f77);}['_cloneOperation'](_0x3e9355,_0xeb9566){const _0x180c24=_0x3e9355['clone']();return _0x180c24['_authorId']=_0x3e9355['_authorId'],this['_fixOperation'](_0x180c24,_0xeb9566),_0x180c24;}['_getBaseVids'](_0x397d74){return _0x397d74['map'](_0x475c23=>{const _0x22c0b3=this['_getVidAttributeName'](_0x475c23);return Number(_0x475c23['item']['getAttribute'](_0x22c0b3));});}['_generateTape'](_0x139497,_0x8e71df){if(_0x139497['is']('element','$text'))_0x8e71df['push']({'item':_0x139497,'type':'text'});else{_0x139497['is']('element')&&_0x8e71df['push']({'item':_0x139497,'type':'elementStart'});for(const _0x446e70 of _0x139497['getChildren']())this['_generateTape'](_0x446e70,_0x8e71df);_0x139497['is']('element')&&_0x8e71df['push']({'item':_0x139497,'type':'elementEnd'});}return _0x8e71df;}['_getState'](){const _0x1e0897=new Map(this['_touched']),_0x12ccc2=new Map(_0x1e0897),_0x2864ec=new Map(),_0x4fbd80={'insertions':{},'deletions':{}},_0x23d280={'insertions':{},'deletions':{}},_0x5edbed=new Map(),_0x1388a5=new Set([...this['_baseRoots']['keys'](),...this['_diffRoots']['keys']()]);_0x1388a5['delete']('$graveyard');for(const _0x49efa5 of _0x1388a5){const _0x43b357=this['_diffRoots']['get'](_0x49efa5)||F(_0x49efa5,!0x1),_0x5e75d5=this['_baseRoots']['get'](_0x49efa5)||F(_0x49efa5,!0x1);_0x43b357['isAttached']()||_0x5e75d5['isAttached']()?(_0x4fbd80['insertions'][_0x49efa5]=T(_0x43b357),_0x4fbd80['deletions'][_0x49efa5]=T(_0x5e75d5),this['_copyMarkers'](_0x4fbd80['deletions'][_0x49efa5],_0x5e75d5),this['_copyMarkers'](_0x4fbd80['insertions'][_0x49efa5],_0x43b357),_0x23d280['insertions'][_0x49efa5]=this['_generateTape'](this['_idsRoots']['get'](_0x49efa5),[]),_0x23d280['deletions'][_0x49efa5]=this['_generateTape'](this['_baseIdsRoots']['get'](_0x49efa5)||F(_0x49efa5,!0x1),[])):_0x1388a5['delete'](_0x49efa5);}for(const _0x875b5d of _0x1388a5){const _0x5f05d9=_0x23d280['insertions'][_0x875b5d];for(const _0x11df6c of _0x5f05d9){const _0x3e64b9=this['_getVidAttributeName'](_0x11df6c),_0x2a9d6b=_0x11df6c['item']['getAttribute'](_0x3e64b9);_0x12ccc2['delete'](_0x2a9d6b),_0x2a9d6b>=this['_startingRevisionId']&&_0x2864ec['set'](_0x2a9d6b,_0x1e0897['get'](_0x2a9d6b));}}for(const _0x2cf653 of _0x1388a5){const _0x5547ae=_0x23d280['insertions'][_0x2cf653],_0x162b40=this['_getBaseVids'](_0x23d280['deletions'][_0x2cf653]);let _0x48778d=0x0;for(const _0x1e2428 of _0x5547ae){const _0x409da6=this['_getVidAttributeName'](_0x1e2428),_0x2dfbe1=_0x1e2428['item']['getAttribute'](_0x409da6);if(!_0x2864ec['has'](_0x2dfbe1)&&!_0x5edbed['has'](_0x2dfbe1)){if(_0x12ccc2['has'](_0x2dfbe1))_0x48778d++;else{if(_0x2dfbe1!=_0x162b40[_0x48778d]){const _0x3cdda7=_0x1e0897['get'](_0x2dfbe1)||_0x1e0897['get'](_0x162b40[_0x48778d]);for(;_0x2dfbe1!=_0x162b40[_0x48778d];)_0x12ccc2['has'](_0x162b40[_0x48778d])||(_0x5edbed['set'](_0x162b40[_0x48778d],_0x3cdda7),_0x1e0897['set'](_0x162b40[_0x48778d],_0x3cdda7)),_0x48778d++;}_0x48778d++;}}}}for(const _0x370538 of _0x1388a5){const _0x3f8c46=_0x23d280['insertions'][_0x370538];for(const _0x53397f of _0x3f8c46){const _0x2cbedb=this['_getVidAttributeName'](_0x53397f),_0x2ed601=_0x53397f['item']['getAttribute'](_0x2cbedb);if(_0x5edbed['has'](_0x2ed601)){const _0x31aefd=_0x5edbed['get'](_0x2ed601);_0x12ccc2['has'](_0x2ed601)||_0x12ccc2['set'](_0x2ed601,{..._0x31aefd}),_0x2864ec['set'](_0x2ed601,{..._0x31aefd});}}}for(const _0x1938ee of _0x12ccc2['keys']())_0x1938ee>=this['_startingRevisionId']&&_0x12ccc2['delete'](_0x1938ee);const _0x53827d=new Map();for(const _0x1c8031 of _0x1388a5){let _0x15adbc=_0x23d280['insertions'][_0x1c8031];for(const _0x10c3a8 of _0x15adbc)if(_0x10c3a8['item']['is']('element','tableCell')){const _0x2b9dfa=this['_getVidAttributeName'](_0x10c3a8),_0x8cc722=_0x10c3a8['item']['getAttribute'](_0x2b9dfa);if(_0x2864ec['has'](_0x8cc722)){const _0x49373a=_0x10c3a8['item']['parent']['parent']['getAttribute']('vid_start'),_0x33a72d=_0x53827d['get'](_0x49373a)||new Set();_0x33a72d['add'](_0x2864ec['get'](_0x8cc722)['userId']),_0x53827d['set'](_0x49373a,_0x33a72d);}}_0x15adbc=_0x23d280['deletions'][_0x1c8031];for(const _0x476c2c of _0x15adbc)if(_0x476c2c['item']['is']('element','tableCell')){const _0x358316=this['_getVidAttributeName'](_0x476c2c),_0x187e8b=_0x476c2c['item']['getAttribute'](_0x358316);if(_0x12ccc2['has'](_0x187e8b)){const _0x5b612f=_0x476c2c['item']['parent']['parent']['getAttribute']('vid_start'),_0xd8f3cb=_0x53827d['get'](_0x5b612f)||new Set();_0xd8f3cb['add'](_0x12ccc2['get'](_0x187e8b)['userId']),_0x53827d['set'](_0x5b612f,_0xd8f3cb);}}for(const _0x2cdbda of _0x53827d['keys']())(_0x2864ec['has'](_0x2cdbda)||_0x12ccc2['has'](_0x2cdbda))&&_0x53827d['delete'](_0x2cdbda);}for(const _0xea8aa9 of _0x1388a5){const _0x29eaa3=_0x23d280['insertions'][_0xea8aa9];let _0x4f849d=null,_0x13be86=null;for(const _0xd0a01e of _0x29eaa3){const _0x20d003=this['_getVidAttributeName'](_0xd0a01e),_0x46114c=_0xd0a01e['item']['getAttribute'](_0x20d003),_0x382949=_0x53827d['get'](_0x46114c);_0x382949&&'elementStart'==_0xd0a01e['type']&&(_0x4f849d=Array['from'](_0x382949)[0x0],_0x13be86=_0xd0a01e['item']['getAttribute']('vid_end')),_0x4f849d&&(_0x12ccc2['set'](_0x46114c,{'userId':_0x4f849d}),_0x2864ec['set'](_0x46114c,{'userId':_0x4f849d})),_0x46114c==_0x13be86&&(_0x4f849d=null,_0x13be86=null);}}const _0x58d79e={},_0x296d77=new Set();for(const _0x5b397f of _0x1388a5){const _0x405b56=_0x4fbd80['deletions'][_0x5b397f],_0xb1ccf9=_0x4fbd80['insertions'][_0x5b397f];for(const {userId:_0x72e24a}of this['_touchedMarkers']['values']())null!==_0x72e24a&&_0x296d77['add'](_0x72e24a);for(const {userId:_0x45d304}of this['_touchedRoots']['values']())null!==_0x45d304&&_0x296d77['add'](_0x45d304);this['_markChanges'](_0xb1ccf9,_0x23d280['insertions'][_0x5b397f],_0x2864ec,'insertion',_0x296d77),this['_markChanges'](_0x405b56,_0x23d280['deletions'][_0x5b397f],_0x12ccc2,'deletion',_0x296d77),_0x58d79e[_0x5b397f]={'insertions':this['_prepareViewToSave'](_0xb1ccf9),'deletions':this['_prepareViewToSave'](_0x405b56),'attachChange':this['_touchedRoots']['get'](_0x5b397f)||null,'attributesBefore':_0x24b58c(this['_baseRootsAttributes']['get'](_0x5b397f))||{},'attributesAfter':_0x24b58c(this['_diffRootsAttributes']['get'](_0x5b397f))};}return{'diffData':_0x58d79e,'authorsIds':Array['from'](_0x296d77)};}['_processRootBeforeSave'](_0x4225dd){for(const [,_0x45618d]of _0x4225dd['markers']){const _0x259826=_0x45618d['start']['getAncestors']()['filter'](_0x409b64=>'tableCell'==_0x409b64['name']);for(const _0x5387f9 of _0x259826)0x1==_0x5387f9['childCount']&&_0x5387f9['getChild'](0x0)['is']('element','paragraph')&&_0x5387f9['getChild'](0x0)['_setAttribute']('keepParagraph',!0x0);}}['_prepareViewToSave'](_0x17d421){this['_processRootBeforeSave'](_0x17d421);const _0x16ac5f=this['editor']['data']['toView'](_0x17d421,{}),_0x59320f=Array['from'](_0x16ac5f['getChildren']())['map'](_0x22de35=>this['_getViewJson'](_0x22de35));return JSON['stringify'](_0x59320f);}['_getViewJson'](_0x4fda62){if(_0x4fda62['is']('$text'))return _0x4fda62['data'];{const _0x5ec5a6=_0x4fda62;return{'type':Object['keys'](E)['find'](_0x45045a=>_0x4fda62 instanceof E[_0x45045a]),'name':_0x5ec5a6['name'],'attributes':Array['from'](_0x5ec5a6['getAttributes']()),'children':Array['from'](_0x5ec5a6['getChildren']())['map'](_0x574ef9=>this['_getViewJson'](_0x574ef9))};}}['_markChanges'](_0x4b64df,_0x2b4986,_0x3417fe,_0x3d3be7,_0x2f1a59){let _0x29c041=null,_0x2977a4=null,_0x22a384=0x0;const _0x150d06=this['editor']['model'];for(let _0x43b9b6=0x0;_0x43b9b6<_0x2b4986['length'];_0x43b9b6++){const _0x45114a=this['_getVidAttributeName'](_0x2b4986[_0x43b9b6]),_0x25451d=_0x2b4986[_0x43b9b6]['item']['getAttribute'](_0x45114a),_0x484111=_0x3417fe['get'](_0x25451d),_0x22604d=_0x43b9b6==_0x2b4986['length']-0x1;(!_0x29c041&&_0x484111&&(_0x29c041=_0x484111,_0x2977a4=_0x2b4986[_0x43b9b6]),_0x29c041&&(!_0x484111||_0x484111['userId']!=_0x29c041['userId']))&&(_0x5f3722(_0x484111,B(_0x2977a4,_0x4b64df,_0x150d06),B(_0x2b4986[_0x43b9b6],_0x4b64df,_0x150d06)),_0x29c041=_0x484111||null,_0x2977a4=_0x484111?_0x2b4986[_0x43b9b6]:null),_0x29c041&&_0x22604d&&_0x5f3722(_0x484111,B(_0x2977a4,_0x4b64df,_0x150d06),J(_0x2b4986[_0x43b9b6],_0x4b64df,_0x150d06));}function _0x5f3722(_0x5e3beb,_0xfa4898,_0x251b14){const _0x45aefe=_0x29c041['userId'],_0x546eb5='revision:'+_0x3d3be7+':'+_0x45aefe+':'+_0x22a384++,_0xe5816a=_0x150d06['createRange'](_0xfa4898,_0x251b14);_0x4b64df['markers']['set'](_0x546eb5,_0xe5816a),null!==_0x45aefe&&_0x2f1a59['add'](_0x45aefe);}}['_getVidAttributeName'](_0x4e02ca){switch(_0x4e02ca['type']){case'elementStart':return'vid_start';case'elementEnd':return'vid_end';default:return'vid';}}['_fixOperation'](_0x7799d9,_0x3d6758){_0x7799d9['baseVersion']=null;for(const _0x5a05a1 in _0x7799d9){const _0x4c4e66=_0x7799d9[_0x5a05a1];if(_0x4c4e66 instanceof vt){const _0x5ecd1b=_0x3d6758['get'](_0x4c4e66['root']['rootName']);_0x7799d9[_0x5a05a1]=this['_fixPosition'](_0x4c4e66,_0x5ecd1b);}if(_0x4c4e66 instanceof ft){const _0x10532d=_0x3d6758['get'](_0x4c4e66['root']['rootName']);_0x7799d9[_0x5a05a1]=this['_fixRange'](_0x4c4e66,_0x10532d);}'root'===_0x5a05a1&&(_0x7799d9['root']=_0x3d6758['get'](_0x7799d9['root']['rootName']));}}['_fixRange'](_0x1dcf49,_0x435465){return this['editor']['model']['createRange'](this['_fixPosition'](_0x1dcf49['start'],_0x435465),this['_fixPosition'](_0x1dcf49['end'],_0x435465));}['_fixPosition'](_0xe13511,_0x1c2d3c){return this['editor']['model']['createPositionFromPath'](_0x1c2d3c,_0xe13511['path'],_0xe13511['stickiness']);}['_handleInsertOperation'](_0x53e939){const _0x1923e9=this['_idsRoots']['get'](_0x53e939['position']['root']['rootName']),_0x3436f9=this['_fixPosition'](_0x53e939['position'],_0x1923e9),_0x59dde6=null===_0x53e939['_authorId']?null:_0x53e939['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x496d7e=_0x3436f9['parent'],_0x1d4bbe=this['_revisionId'],_0x391ad3=[];for(const _0x36223e of _0x53e939['nodes'])if(_0x36223e['is']('element'))_0x391ad3['push'](this['_makeIdsRoot'](_0x36223e));else{for(let _0x18b96e=0x0;_0x18b96e<_0x36223e['offsetSize'];_0x18b96e++)_0x391ad3['push'](new ut('$text',{'vid':this['_revisionId']++}));}const _0x4b64c7=this['_revisionId'];for(let _0x3af842=_0x1d4bbe;_0x3af842<_0x4b64c7;_0x3af842++)this['_touched']['set'](_0x3af842,{'userId':_0x59dde6});_0x496d7e['_insertChild'](_0x3436f9['offset'],_0x391ad3);}['_handleMoveOperation'](_0x3ffda6){(_0x3ffda6=this['_cloneOperation'](_0x3ffda6,this['_idsRoots']))['_execute']();const _0x3f0a6f=null===_0x3ffda6['_authorId']?null:_0x3ffda6['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x4c9a7e=_0x3ffda6['getMovedRangeStart'](),_0x564431=_0x4c9a7e['parent'],_0x214ac1=_0x4c9a7e['offset'];!function _0x48d493(_0x593223,_0x4d73b9,_0x96676e,_0x476445){for(let _0x1aa7b1=_0x96676e;_0x1aa7b1<_0x476445;_0x1aa7b1++){const _0x739fc7=_0x4d73b9['getChild'](_0x1aa7b1);_0x739fc7['is']('element','$text')?_0x593223['set'](_0x739fc7['getAttribute']('vid'),{'userId':_0x3f0a6f}):(_0x593223['set'](_0x739fc7['getAttribute']('vid_start'),{'userId':_0x3f0a6f}),_0x48d493(_0x593223,_0x739fc7,0x0,_0x739fc7['childCount']),_0x593223['set'](_0x739fc7['getAttribute']('vid_end'),{'userId':_0x3f0a6f}));}}(this['_touched'],_0x564431,_0x214ac1,_0x214ac1+_0x3ffda6['howMany']);}['_handleMergeOperation'](_0x38cd42){const _0x55b01c=null===(_0x38cd42=this['_cloneOperation'](_0x38cd42,this['_idsRoots']))['_authorId']?null:_0x38cd42['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x5a8b5e=_0x38cd42['targetPosition']['parent'],_0x325e14=_0x38cd42['sourcePosition']['parent'],_0x401214=_0x5a8b5e['getAttribute']('vid_end'),_0x2d2a80=_0x325e14['getAttribute']('vid_start');_0x5a8b5e['_setAttribute']('vid_end',_0x325e14['getAttribute']('vid_end')),_0x325e14['_setAttribute']('vid_end',_0x401214),this['_touched']['set'](_0x2d2a80,{'userId':_0x55b01c}),this['_touched']['set'](_0x401214,{'userId':_0x55b01c}),_0x38cd42['_execute']();}['_handleSplitOperation'](_0x160fe8){const _0x37ce6a=null===(_0x160fe8=this['_cloneOperation'](_0x160fe8,this['_idsRoots']))['_authorId']?null:_0x160fe8['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x4baf96=_0x160fe8['graveyardPosition'],_0x5db90a=_0x160fe8['splitPosition']['parent'];_0x160fe8['_execute']();const _0x3bc55d=_0x5db90a['getAttribute']('vid_end'),_0x49afe4=_0x160fe8['insertionPosition']['nodeAfter'];if(_0x4baf96){const _0x1283a3=_0x49afe4['getAttribute']('vid_end'),_0x18e7b7=_0x5db90a['getAttribute']('vid_end');_0x5db90a['_setAttribute']('vid_end',_0x1283a3),_0x49afe4['_setAttribute']('vid_end',_0x18e7b7),this['_touched']['set'](_0x5db90a['getAttribute']('vid_end'),{'userId':_0x37ce6a}),this['_touched']['set'](_0x49afe4['getAttribute']('vid_start'),{'userId':_0x37ce6a});}else{const _0x1b10f3=this['_revisionId']++,_0x48edfc=this['_revisionId']++;_0x5db90a['_setAttribute']('vid_end',_0x1b10f3),_0x49afe4['_setAttribute']('vid_start',_0x48edfc),_0x49afe4['_setAttribute']('vid_end',_0x3bc55d),this['_touched']['set'](_0x1b10f3,{'userId':_0x37ce6a}),this['_touched']['set'](_0x48edfc,{'userId':_0x37ce6a});}}['_handleMarkerOperation'](_0x1bf915){if(!_0x1bf915['affectsData'])return;const _0x3eaa08=(_0x1bf915=this['_cloneOperation'](_0x1bf915,this['_diffRoots']))['oldRange']?_0x1bf915['oldRange']['root']:null,_0x4d2a62=_0x1bf915['newRange']?_0x1bf915['newRange']['root']:null;_0x3eaa08&&this['_markers']['delete'](_0x1bf915['name']),_0x4d2a62&&this['_markers']['set'](_0x1bf915['name'],_0x1bf915['newRange']['clone']());const _0x576591=null===_0x1bf915['_authorId']?null:_0x1bf915['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x340904=_0x1bf915['name'];if(!this['_touchedMarkers']['has'](_0x340904))return void this['_touchedMarkers']['set'](_0x340904,{'range':_0x1bf915['oldRange'],'userId':_0x576591});const _0x2ec2bf=this['_touchedMarkers']['get'](_0x340904),_0xc9c16c=_0x2ec2bf['range'],_0x5e8381=_0x1bf915['newRange'];null==_0xc9c16c&&null==_0x5e8381||_0xc9c16c&&_0x5e8381&&_0xc9c16c['isEqual'](_0x5e8381)?this['_touchedMarkers']['delete'](_0x1bf915['name']):_0x2ec2bf['userId']=_0x576591;}['_handleRootOperation'](_0x327462,_0x10cd09){this['_diffRoots']['has'](_0x327462['rootName'])?this['_diffRoots']['get'](_0x327462['rootName'])['_isAttached']=_0x327462['isAdd']:(this['_diffRoots']['set'](_0x327462['rootName'],F(_0x327462['rootName'],!0x0)),this['_diffRootsAttributes']['set'](_0x327462['rootName'],{}),_0x10cd09&&this['_idsRoots']['set'](_0x327462['rootName'],F(_0x327462['rootName'],!0x0)));const _0x5dc4d2=null===_0x327462['_authorId']?null:_0x327462['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x5c370e=this['_touchedRoots']['get'](_0x327462['rootName']);_0x5c370e&&_0x5c370e['userId']===_0x5dc4d2?this['_touchedRoots']['delete'](_0x327462['rootName']):this['_touchedRoots']['set'](_0x327462['rootName'],{'userId':_0x5dc4d2,'isAttached':_0x327462['isAdd']});}['_handleRootAttributeOperation'](_0x19a549){const _0x1698a2=this['_diffRootsAttributes']['get'](_0x19a549['root']['rootName']);null===_0x19a549['newValue']?delete _0x1698a2[_0x19a549['key']]:_0x1698a2[_0x19a549['key']]=_0x19a549['newValue'];}}function T(_0x22c9fb){const _0x524b66=F(_0x22c9fb['rootName'],_0x22c9fb['isAttached']());for(const _0x1d3d36 of _0x22c9fb['getChildren']()){const _0x1710b6=_0x1d3d36['_clone'](!0x0);_0x524b66['_appendChild'](_0x1710b6);}return _0x524b66;}function F(_0x59d1a2,_0x226059=!0x0){const _0x28268a=new gt();return _0x28268a['rootName']=_0x59d1a2,_0x28268a['_isAttached']=_0x226059,_0x28268a['isAttached']=()=>_0x28268a['_isAttached'],_0x28268a;}function B(_0x56cdd1,_0x218a89,_0x698a08){const _0x307b30='elementEnd'==_0x56cdd1['type']?_0x698a08['createPositionAt'](_0x56cdd1['item'],'end'):_0x698a08['createPositionBefore'](_0x56cdd1['item']);return _0x698a08['createPositionFromPath'](_0x218a89,_0x307b30['path'],_0x307b30['stickiness']);}function J(_0x2eabcf,_0x5bb3d9,_0x2ab9bc){const _0x34ce23='elementStart'==_0x2eabcf['type']?_0x2ab9bc['createPositionAt'](_0x2eabcf['item'],0x0):_0x2ab9bc['createPositionAfter'](_0x2eabcf['item']);return _0x2ab9bc['createPositionFromPath'](_0x5bb3d9,_0x34ce23['path'],_0x34ce23['stickiness']);}class os extends _0x423d80{['focusTracker'];['keystrokes'];['revisionNameInputView'];constructor(_0x56c531,_0x15e280){super(_0x56c531),this['focusTracker']=new _0x1fbac0(),this['keystrokes']=new _0x4a481f(),this['set']('revisionNameInputValue',''),this['revisionNameInputView']=this['_createRevisionNameInput'](_0x15e280),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'](),_0x189d32({'view':this}),this['focusTracker']['add'](this['revisionNameInputView']['element']),this['keystrokes']['listenTo'](this['element']);const _0x3e561d=_0x3e75d1=>_0x3e75d1['stopPropagation']();this['keystrokes']['set']('arrowright',_0x3e561d),this['keystrokes']['set']('arrowleft',_0x3e561d),this['keystrokes']['set']('arrowup',_0x3e561d),this['keystrokes']['set']('arrowdown',_0x3e561d);}['focus'](){this['revisionNameInputView']['focus']();}get['revisionName'](){return this['revisionNameInputView']['fieldView']['element']['value']['trim']();}set['revisionName'](_0x23702f){this['revisionNameInputView']['fieldView']['element']['value']=_0x23702f['trim']();}['reset'](){this['revisionNameInputView']['fieldView']['element']['value']='',this['revisionNameInputView']['errorText']=null;}['_createRevisionNameInput'](_0x405d50){const _0x410544=new at(this['locale'],ti),_0x583299=_0x410544['fieldView'];_0x583299['extendTemplate']({'attributes':{'maxlength':'220'}});let _0x1591c5=m(this['locale'],'Name\x20of\x20the\x20revision');return!_0x405d50&&(_0x1591c5+='\x20('+m(this['locale'],'optional')+')'),(_0x410544['label']=_0x1591c5,_0x583299['on']('input',()=>{this['revisionNameInputValue']=_0x583299['element']['value']['trim']();}),_0x410544);}}class f extends _0x41e048{static get['pluginName'](){return'RevisionHistoryUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[u];}['_saveRevisionFormView'];['init'](){const _0x296c81=this['editor'],_0x465ed7=_0x296c81['plugins']['get']('RevisionTracker');_0x296c81['ui']['componentFactory']['add']('revisionHistory',_0xfc7a73=>{const _0x1048db=_0x4b0e6a(_0xfc7a73),_0x592af1=_0x1048db['panelView']['children'],_0xeb16e2=new _0x1371fb(_0xfc7a73),_0x5c7acf=new te(_0xfc7a73),_0x18a077=new _0x4f8d34(_0xfc7a73),_0x4009a4=new te(_0xfc7a73),_0x1e31bb=new _0x4f8d34(_0xfc7a73);return _0x1048db['bind']('isEnabled')['to'](_0x465ed7,'isReady',_0x465ed7,'isEnabled',_0x296c81,'isReadOnly',(_0x5dcfca,_0x448de4,_0x3df604)=>_0x5dcfca&&_0x448de4&&!_0x3df604),_0x1048db['buttonView']['set']({'icon':_0x24e1d6,'label':m(_0xfc7a73,'Revision\x20history'),'tooltip':!0x0}),_0x18a077['set']({'label':m(_0xfc7a73,'Save\x20current\x20revision'),'withText':!0x0,'role':'menuitem'}),_0x18a077['bind']('isEnabled')['to'](_0x465ed7,'isReady',_0x465ed7,'isEnabled',_0x296c81,'isReadOnly',(_0xc2a230,_0x143ac0,_0x2ef3d7)=>_0xc2a230&&_0x143ac0&&!_0x2ef3d7),_0x18a077['on']('execute',()=>this['_showDialog']()),_0x1e31bb['set']({'label':m(_0xfc7a73,'Open\x20revision\x20history'),'withText':!0x0,'role':'menuitem'}),_0x1e31bb['bind']('isEnabled')['to'](_0x465ed7,'isReady',_0x296c81,'isReadOnly',(_0xab2c83,_0x48e4bd)=>_0xab2c83&&!_0x48e4bd),_0x1e31bb['on']('execute',()=>{_0x296c81['config']['get']('revisionHistory')['showRevisionViewerCallback'](),_0x1048db['isOpen']=!0x1,_0x296c81['editing']['view']['focus']();}),_0x5c7acf['children']['add'](_0x18a077),_0x4009a4['children']['add'](_0x1e31bb),_0xeb16e2['role']='menu',_0xeb16e2['items']['addMany']([_0x5c7acf,_0x4009a4]),_0x592af1['add'](_0xeb16e2),_0x1048db;}),_0x296c81['ui']['componentFactory']['add']('menuBar:revisionHistory',()=>this['_registerMenuComponent']());}['_registerMenuComponent'](){const _0xc17672=this['editor'],_0x16f2cb=_0xc17672['locale'],_0xd2b38a=new _0x1c964b(_0x16f2cb),_0x5196a6=new _0x417ef7(_0x16f2cb);_0xd2b38a['buttonView']['set']({'icon':_0x24e1d6,'label':m(_0x16f2cb,'Revision\x20history')});const _0xa4e320=new _0x189cf9(_0x16f2cb,_0xd2b38a),_0x51b420=new _0x35e62e(_0x16f2cb);_0x51b420['set']({'label':m(_0x16f2cb,'Save\x20current\x20revision')}),_0x51b420['delegate']('execute')['to'](_0xd2b38a),_0x51b420['on']('execute',()=>{this['_showDialog']();}),_0xa4e320['children']['add'](_0x51b420),_0x5196a6['items']['add'](_0xa4e320);const _0x25e170=new _0x189cf9(_0x16f2cb,_0xd2b38a),_0x5df4c9=new _0x35e62e(_0x16f2cb);return _0x5df4c9['set']({'label':m(_0x16f2cb,'Open\x20revision\x20history')}),_0x5df4c9['delegate']('execute')['to'](_0xd2b38a),_0x5df4c9['on']('execute',()=>{_0xc17672['config']['get']('revisionHistory')['showRevisionViewerCallback']();}),_0x25e170['children']['add'](_0x5df4c9),_0x5196a6['items']['add'](_0x25e170),_0xd2b38a['panelView']['children']['add'](_0x5196a6),_0xd2b38a;}['_showDialog'](){const _0x42cb4f=this['editor'],_0xc24800=_0x42cb4f['locale'],_0x556ae9=_0x42cb4f['plugins']['get']('Dialog'),_0x1698f0=_0x42cb4f['plugins']['get']('RevisionTracker');function _0x3e4817(_0x2139d5){_0x42cb4f['config']['get']('revisionHistory.requireRevisionName')&&''===_0x2139d5['revisionName']?_0x2139d5['revisionNameInputView']['errorText']=m(_0xc24800,'The\x20revision\x20name\x20cannot\x20be\x20empty.'):(_0x42cb4f['plugins']['get'](u)['saveRevision']({'name':_0x2139d5['revisionName']}),_0x556ae9['hide']());}this['_saveRevisionFormView']||(this['_createSaveRevisionFormView'](),this['_saveRevisionFormView']['on']('submit',()=>_0x3e4817(this['_saveRevisionFormView']))),this['_saveRevisionFormView']['reset'](),_0x556ae9['show']({'id':'revisionSave','title':m(_0xc24800,'Save\x20current\x20revision'),'isModal':!0x0,'content':this['_saveRevisionFormView'],'actionButtons':[{'label':m(_0x42cb4f['locale'],'Cancel'),'withText':!0x0,'onExecute':()=>_0x556ae9['hide']()},{'label':m(_0x42cb4f['locale'],'Accept'),'class':'ck-button-action','withText':!0x0,'onCreate'(_0x1ce404){_0x1ce404['bind']('isEnabled')['to'](_0x1698f0,'isReady',_0x1698f0,'isEnabled',_0x42cb4f,'isReadOnly',(_0x2eb489,_0x51ac45,_0x3c49d4)=>_0x2eb489&&_0x51ac45&&!_0x3c49d4);},'onExecute':()=>_0x3e4817(this['_saveRevisionFormView'])}]});}['_createSaveRevisionFormView'](){const _0x27ff52=this['editor'],_0x2cba12=_0x27ff52['locale'];this['_saveRevisionFormView']=new os(_0x2cba12,_0x27ff52['config']['get']('revisionHistory.requireRevisionName')),this['_saveRevisionFormView']['render']();}}class X extends _0x423d80{['changeId'];['_model'];constructor(_0x36596f,_0xd3b390){super(_0x36596f),this['_model']=_0xd3b390,this['changeId']=_0xd3b390['id'];const _0x402342=this['bindTemplate'],_0x136b8e=m(_0x36596f,_0xd3b390['data']['isSuggestion']?'Suggested\x20by':'add'==_0xd3b390['type']?'Added\x20by':'Removed\x20by');this['set']('type',_0xd3b390['type']),this['setTemplate']({'tag':'div','attributes':{'class':['ck-annotation','ck-revision-change',_0x402342['to']('type',_0x4c7ab4=>'ck-revision-change__'+_0x4c7ab4)],'tabindex':-0x1},'children':[{'tag':'span','children':[{'tag':'span','attributes':{'class':['ck-revision-change__label']},'children':[{'text':_0x136b8e}]},{'text':'\x20'+_0xd3b390['author']['name']}]}]});}['focus'](){this['element']['focus']();}}class r extends/* #__PURE__ -- @preserve */
25
+ _0x4b2841(){['id'];['author'];['type'];['data'];['rootName'];constructor(_0x501ed9){super(),this['id']=_0x501ed9['id']||_0x663c6b(),this['author']=_0x501ed9['author'],this['type']=_0x501ed9['type'],this['data']=_0x501ed9['data']||{},this['rootName']=_0x501ed9['rootName'],this['set']('createdAt',_0x501ed9['createdAt']);}['toJSON'](){return{'id':this['id'],'authorId':this['author']['id'],'type':this['type'],'data':this['data'],'createdAt':this['createdAt']};}}class c{['newRevisionId'];['oldRevisionId'];['changes'];constructor(_0x5aedbc,_0x4de110){this['newRevisionId']=_0x5aedbc,this['oldRevisionId']=_0x4de110,this['changes']=new _0x2c3527();}['_setChanges'](_0x410f92){for(const _0x567246 of _0x410f92)this['changes']['add'](_0x567246);}}const Y={'c':_0x11aa29,'a':_0x1a2d2b,'e':_0x2b610f,'r':_0x3274f3,'u':_0x1409e8};class d extends _0x41e048{['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[_0x1b8d32,_0x1b3f42,j];}constructor(_0x13b5ea){super(_0x13b5ea),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',(_0x329691,_0x1c18b0,_0x4acde8)=>{this['activeChange']=null,this['activeView']=null,this['editor']['editing']['view']['change'](_0x772ee7=>{for(const _0x39442e of this['editor']['editing']['view']['document']['roots'])_0x4acde8?_0x772ee7['removeClass']('ck-editor__editable__overlay',_0x39442e):_0x772ee7['addClass']('ck-editor__editable__overlay',_0x39442e);});}),this['bind']('isNavigationMode')['to'](this,'activeChange',_0x16277b=>null!==_0x16277b),this['bind']('currentChangeNumber')['to'](this,'isReady',this,'diff',this,'activeChange',(_0x7b1994,_0x1d240d,_0x49b1b9)=>_0x7b1994&&_0x49b1b9?_0x1d240d['changes']['getIndex'](_0x49b1b9):0x0),this['bind']('numberOfChanges')['to'](this,'isReady',this,'diff',(_0x1f7d9e,_0x31bfab)=>_0x1f7d9e?_0x31bfab['changes']['length']:0x0),this['_changeView']=null,this['_changeIdToChange']=new Map(),this['adapter']=null,this['_balloon']=this['editor']['plugins']['get'](_0x1b3f42);}['init'](){const _0xdd1d50=this['editor'],_0x4c6066=new yt(_0xdd1d50,{'direction':'backward'}),_0x15ccc3=new yt(_0xdd1d50,{'direction':'forward'});(_0xdd1d50['commands']['add']('showPreviousChange',_0x4c6066),_0xdd1d50['commands']['add']('showNextChange',_0x15ccc3),_0xdd1d50['commands']['add']('restoreRevision',new _t(_0xdd1d50)),this['on']('change:numberOfChanges',()=>{_0x4c6066['refresh'](),_0x15ccc3['refresh']();}),this['_setConversion'](),this['_initInteractions'](),_0xdd1d50['enableReadOnlyMode']('revision-viewer'),_0xdd1d50['plugins']['has']('WidgetToolbarRepository'))&&_0xdd1d50['plugins']['get']('WidgetToolbarRepository')['forceDisabled']('revision-viewer');}async['getRevisionData'](_0x56cce3){await this['loadRevisionData'](_0x56cce3);const _0x2fdd6c={};for(const _0x1d0f1a in _0x56cce3['diffData']){if(_0x56cce3['diffData'][_0x1d0f1a]['attachChange']&&!_0x56cce3['diffData'][_0x1d0f1a]['attachChange']['isAttached'])continue;const _0x3292c5=this['_removeRevisionMarkers'](JSON['parse'](_0x56cce3['diffData'][_0x1d0f1a]['insertions'])),_0x260198=this['editor']['editing']['view']['document'],_0x3e36dd=new _0x1c7ac7(_0x260198,_0x3292c5['map'](_0x47f032=>this['_getViewObj'](_0x47f032)));this['editor']['data']['processor']['useFillerType']('marked'),_0x2fdd6c[_0x1d0f1a]=this['editor']['data']['processor']['toData'](_0x3e36dd),this['editor']['data']['processor']['useFillerType']('default');}return _0x2fdd6c;}async['getRevisionRootsAttributes'](_0x458da4){await this['loadRevisionData'](_0x458da4);const _0x3c5a15={};for(const _0x4d111c in _0x458da4['diffData'])_0x458da4['diffData'][_0x4d111c]['attachChange']&&!_0x458da4['diffData'][_0x4d111c]['attachChange']['isAttached']||(_0x3c5a15[_0x4d111c]=_0x458da4['diffData'][_0x4d111c]['attributesAfter']||{});return _0x3c5a15;}['_removeRevisionMarkers'](_0x1dfeab){return(_0x1dfeab=_0x1dfeab['filter'](_0x352a0b=>!_0x352a0b['name']||'revision-start'!==_0x352a0b['name']&&'revision-end'!==_0x352a0b['name']))['forEach'](_0x4b9dec=>{'string'!=typeof _0x4b9dec&&(_0x4b9dec['children']=this['_removeRevisionMarkers'](_0x4b9dec['children']),_0x4b9dec['attributes']=_0x4b9dec['attributes']['filter'](_0x50c5d4=>!_0x50c5d4[0x0]['startsWith']('data-revision-')));}),_0x1dfeab;}async['compare'](_0x41fa2f,_0x3b7a90,_0x16b895=!0x1){if(!this['isEnabled'])return;const _0xe21807=this['diff'],_0x4dd010=this['repository'],_0x1aa649='string'==typeof _0x41fa2f?_0x4dd010['getRevision'](_0x41fa2f):_0x41fa2f,_0x3b1289='string'==typeof _0x3b7a90?_0x4dd010['getRevision'](_0x3b7a90):_0x3b7a90,_0x5046f5=_0x1aa649['id'],_0x3e5109=_0x3b1289?_0x3b1289['id']:null;if(!_0x16b895&&this['diff']&&this['diff']['newRevisionId']===_0x5046f5&&this['diff']['oldRevisionId']===_0x3e5109)return Promise['resolve']();this['isReady']=!0x1,this['activeView']=null,this['activeChange']=null,this['diff']=new c(_0x5046f5,_0x3e5109);const _0x1b980f=this['_getRevisionsRange'](_0x1aa649,_0x3b1289,!0x0)['map'](_0xeb0417=>this['loadRevisionData'](_0xeb0417));return _0x1b980f['push'](new Promise(_0x4cc93a=>{setTimeout(_0x4cc93a,0x14);})),Promise['all'](_0x1b980f)['then'](()=>{if(!this['isEnabled'])return;this['_cleanUp']();const _0x4f3264=this['_getDiff'](_0x5046f5,_0x3e5109);for(const _0x5d5b08 of _0x4f3264['changes'])this['_changeIdToChange']['set'](_0x5d5b08['id'],_0x5d5b08);this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x5734db=>{for(const _0x2ed458 of this['editor']['model']['document']['getRootNames']())_0x5734db['detachRoot'](_0x2ed458);for(const _0x2afc3d of Object['keys'](_0x4f3264['model'])){const _0x26ba98=_0x5734db['addRoot'](_0x2afc3d);for(const _0x20c42d of Object['keys'](_0x4f3264['attributes'][_0x2afc3d]))_0x5734db['setAttribute'](_0x20c42d,_0x4f3264['attributes'][_0x2afc3d][_0x20c42d],_0x26ba98);_0x5734db['insert'](_0x4f3264['model'][_0x2afc3d],_0x26ba98,0x0);}}),this['diff']['_setChanges'](this['_sortAndFilterDiffChanges'](_0x4f3264['changes'])),this['isReady']=!0x0;})['catch'](_0x1a762e=>{console['error'](_0x1a762e),this['_cleanUp'](),_0xe21807&&(this['diff']=_0xe21807),this['isReady']=!0x0;});}['addRevisionData'](_0x4dd61b,_0x1f01a4){const _0x2801b6=this['repository']['createRevision'](_0x4dd61b);return _0x2801b6['on']('_update',(_0x56b985,_0x860c05,_0x48d0dd)=>_0x1f01a4(_0x860c05,_0x48d0dd,_0x2801b6)),this['repository']['addRevision'](_0x2801b6),_0x2801b6;}['loadRevisionData'](_0xa07c3b){if(!_0xa07c3b||_0xa07c3b['diffData'])return Promise['resolve']();{const _0x77df76=this['editor']['config']['get']('collaboration.channelId');return this['adapter']['getRevision']({'channelId':_0x77df76,'revisionId':_0xa07c3b['id']})['then'](_0x2b9a7f=>{_0xa07c3b['_update']({'diffData':_0x2b9a7f['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},_0x2951ac=>{for(const _0x34a62f of this['editor']['model']['document']['getRootNames']())_0x2951ac['detachRoot'](_0x34a62f);});}['_sortAndFilterDiffChanges'](_0x284b2e){const _0x16ee77=[],_0x5403bd=new Map();for(const _0x15a208 of this['editor']['model']['document']['getRootNames']()){const _0x3c1278=this['editor']['editing']['view']['getDomRoot'](_0x15a208);if(!_0x3c1278)continue;const _0x231165=_0x3c1278['getClientRects']()['item'](0x0);_0x231165&&(_0x16ee77['push'](_0x15a208),_0x5403bd['set'](_0x15a208,_0x231165));}return _0x16ee77['sort']((_0x2e1142,_0x225c84)=>{const _0x21fda0=_0x5403bd['get'](_0x2e1142),_0x4b50c1=_0x5403bd['get'](_0x225c84);return _0x21fda0['y']-_0x4b50c1['y']||_0x21fda0['x']-_0x4b50c1['x'];}),(_0x284b2e=_0x284b2e['filter'](_0x218095=>_0x16ee77['includes'](_0x218095['rootName'])))['sort']((_0x4aedc5,_0x2cb74c)=>_0x16ee77['indexOf'](_0x4aedc5['rootName'])-_0x16ee77['indexOf'](_0x2cb74c['rootName'])),_0x284b2e;}['_makeTape'](_0x5ac567){const _0x4e4cc2=Array['from'](_0x5ac567['markers'])['filter'](([_0x4460a6,_0x59a26e])=>_0x4460a6['startsWith']('revision:')&&!_0x59a26e['isCollapsed']),_0x37dd74=Array['from'](this['editor']['model']['createRangeIn'](_0x5ac567)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0x4e4cc2['length'])for(const _0xbe844a of _0x37dd74){const [_0x50cb99,_0x2c9bea]=_0x4e4cc2[0x0],[,_0x1a8fc6,_0xbfc237]=_0x50cb99['split'](':');if(_0x2c9bea['end']['isEqual'](_0xbe844a['nextPosition'])&&_0x4e4cc2['shift'](),(_0xbe844a['previousPosition']['isEqual'](_0x2c9bea['start'])||_0xbe844a['previousPosition']['isAfter'](_0x2c9bea['start']))&&('insertion'==_0x1a8fc6?_0xbe844a['isAdded']={'userId':_0xbfc237}:'deletion'==_0x1a8fc6&&(_0xbe844a['isRemoved']={'userId':_0xbfc237})),0x0==_0x4e4cc2['length'])break;}return _0x37dd74;}['_refreshStartEndIndex'](_0xc4ca79){const _0xbd3b9f=new Map();for(let _0x229b1c=0x0;_0x229b1c<_0xc4ca79['length'];_0x229b1c++)'text'===_0xc4ca79[_0x229b1c]['type']?(_0xc4ca79[_0x229b1c]['item']['startIndex']=_0x229b1c,_0xc4ca79[_0x229b1c]['item']['endIndex']=_0x229b1c):('elementStart'===_0xc4ca79[_0x229b1c]['type']?_0xc4ca79[_0x229b1c]['item']['startIndex']=_0x229b1c:'elementEnd'===_0xc4ca79[_0x229b1c]['type']&&(_0xc4ca79[_0x229b1c]['item']['endIndex']=_0x229b1c),_0xbd3b9f['set'](_0xc4ca79[_0x229b1c]['id'],_0x229b1c));for(const _0x388db1 of _0xbd3b9f['values']())'elementStart'===_0xc4ca79[_0x388db1]['type']?_0xc4ca79[_0x388db1]['item']['endIndex']=_0xbd3b9f['get'](_0xc4ca79[_0x388db1]['pairId']):'elementEnd'===_0xc4ca79[_0x388db1]['type']&&(_0xc4ca79[_0x388db1]['item']['startIndex']=_0xbd3b9f['get'](_0xc4ca79[_0x388db1]['pairId']));}['_processTape'](_0x422575){for(let _0x1c5f97=0x0;_0x1c5f97<_0x422575['length'];_0x1c5f97++){if('elementStart'===_0x422575[_0x1c5f97]['type'])_0x422575[_0x1c5f97]['item']['startIndex']=_0x1c5f97;else{if('elementEnd'===_0x422575[_0x1c5f97]['type']){_0x422575[_0x1c5f97]['item']['endIndex']=_0x1c5f97;const _0x7d46b7=_0x422575[_0x1c5f97]['item']['startIndex'];_0x422575[_0x7d46b7]['pairId']=_0x422575[_0x1c5f97]['id'],_0x422575[_0x1c5f97]['pairId']=_0x422575[_0x7d46b7]['id'];}else _0x422575[_0x1c5f97]['item']['startIndex']=_0x1c5f97,_0x422575[_0x1c5f97]['item']['endIndex']=_0x1c5f97,_0x422575[_0x1c5f97]['pairId']=null;}_0x422575[_0x1c5f97]['markersStart']||(_0x422575[_0x1c5f97]['markersStart']=[],_0x422575[_0x1c5f97]['markersEnd']=[]);}}['_markInsertions'](_0x18f8ea,_0x55cd6e){const _0x2b2005=_0x18f8ea['filter'](_0x3513c0=>!_0x3513c0['isAdded']);for(let _0x26a78e=0x0;_0x26a78e<_0x55cd6e['length'];_0x26a78e++)_0x55cd6e[_0x26a78e]['isAdded']&&(_0x2b2005[_0x26a78e]['isAdded']=_0x55cd6e[_0x26a78e]['isAdded']);}['_makeModelFromViewString'](_0x4e50b9){const _0x58f34e=JSON['parse'](_0x4e50b9),_0x5845cd=this['editor']['editing']['view']['document'],_0x287d88=new _0x1c7ac7(_0x5845cd,_0x58f34e['map'](_0x351490=>this['_getViewObj'](_0x351490)));return this['editor']['data']['toModel'](_0x287d88);}['_getViewObj'](_0x4ff84c){const _0x458bb5=this['editor']['editing']['view']['document'];if('string'==typeof _0x4ff84c)return new _0x4a50ef(_0x458bb5,_0x4ff84c);{const _0x206252=_0x4ff84c['children']['map'](_0x4ea2f6=>this['_getViewObj'](_0x4ea2f6));return new(Y[_0x4ff84c['type']]||_0x4fb45b)(_0x458bb5,_0x4ff84c['name'],_0x4ff84c['attributes'],_0x206252);}}['_getDiff'](_0x20926d,_0x1d4b11=null){const _0x332279=this['repository']['getRevision'](_0x20926d),_0xc35953=_0x1d4b11?this['repository']['getRevision'](_0x1d4b11):null,_0x56977b=this['_getRevisionsRange'](_0x332279,_0xc35953),_0x2fb16a=_0x56977b[_0x56977b['length']-0x1],_0x1b4955=new Map(),_0x38c3df={'model':{},'attributes':{},'changes':[]},_0x18800e=new Set(),_0x4389e8=new Map();for(let _0x1c06b9=_0x56977b['length']-0x1;_0x1c06b9>=0x0;_0x1c06b9--){const _0x2b1822=_0x56977b[_0x1c06b9];for(const _0x946ddf of Object['keys'](_0x2b1822['diffData']))if(_0x2b1822['diffData'][_0x946ddf]['attachChange']){const _0x17cd1c=_0x2b1822['diffData'][_0x946ddf]['attachChange'];_0x17cd1c['isAttached']?(_0x18800e['add'](_0x946ddf),_0x4389e8['has'](_0x946ddf)&&_0x4389e8['get'](_0x946ddf)['userId']==_0x17cd1c['userId']?_0x4389e8['delete'](_0x946ddf):_0x4389e8['set'](_0x946ddf,_0x17cd1c)):_0x4389e8['has'](_0x946ddf)?(_0x18800e['delete'](_0x946ddf),_0x4389e8['delete'](_0x946ddf)):(_0x18800e['add'](_0x946ddf),_0x4389e8['set'](_0x946ddf,_0x17cd1c));}else _0x18800e['add'](_0x946ddf);}for(const _0x35f2f3 of _0x18800e){const _0x18a7df=_0x4389e8['has'](_0x35f2f3)&&!_0x4389e8['get'](_0x35f2f3)['isAttached'];let _0x1381f7=_0x18a7df?_0x56977b['length']-0x1:0x0;const _0x117f56=_0x18a7df?-0x1:0x1;for(;_0x56977b[_0x1381f7];){const _0x151e79=_0x56977b[_0x1381f7];if(_0x151e79['diffData'][_0x35f2f3]){const _0x2889f6=_0x18a7df?_0x151e79['diffData'][_0x35f2f3]['attributesBefore']:_0x151e79['diffData'][_0x35f2f3]['attributesAfter'];_0x38c3df['attributes'][_0x35f2f3]=_0x2889f6?_0x24b58c(_0x2889f6):{};break;}_0x1381f7+=_0x117f56;}}for(const _0x2c8bc9 of _0x56977b){_0x2c8bc9['model']={};for(const _0xc7daa0 of _0x2c8bc9['authors'])_0x1b4955['set'](_0xc7daa0['id'],_0xc7daa0);for(const _0x392b7d of _0x18800e){const _0x1661c6=_0x2c8bc9['diffData'][_0x392b7d]?_0x2c8bc9['diffData'][_0x392b7d]['insertions']:'[]',_0x27fe94=_0x2c8bc9['diffData'][_0x392b7d]?_0x2c8bc9['diffData'][_0x392b7d]['deletions']:'[]';_0x2c8bc9['model'][_0x392b7d]={'insertions':this['_makeModelFromViewString'](_0x1661c6),'deletions':this['_makeModelFromViewString'](_0x27fe94)};}}for(const _0x32ed6b of _0x18800e){let _0x502509=null,_0x5123c7=0x0;const _0xbb63c9=new Map(Array['from'](_0x332279['model'][_0x32ed6b]['insertions']['markers'])['filter'](([_0xca7bd7])=>!_0xca7bd7['startsWith']('revision:')));let _0x31aa6d=0x0;for(const _0x30e87c of _0x56977b){const _0x4e8dfb=this['_makeTape'](_0x30e87c['model'][_0x32ed6b]['insertions']);_0x30e87c==_0x332279?(_0x502509=_0x4e8dfb,_0x5123c7=_0x502509['length'],_0x502509['forEach'](_0x30a028=>{_0x30a028['id']=_0x31aa6d++;}),this['_processTape'](_0x502509)):this['_markInsertions'](_0x502509,_0x4e8dfb);const _0x37b244=_0x502509['filter'](_0x370b12=>!_0x370b12['isAdded'])['map'](_0x3dd27e=>_0x3dd27e['id']);let _0x4d47eb=0x0;const _0x1d21a8=this['_makeTape'](_0x30e87c['model'][_0x32ed6b]['deletions']);_0x1d21a8['forEach'](_0x380fd5=>{_0x380fd5['isRemoved']?_0x380fd5['id']=_0x5123c7++:_0x380fd5['id']=_0x37b244[_0x4d47eb++];}),this['_processTape'](_0x1d21a8),this['_setDistance'](_0x502509,'isAdded'),this['_setDistance'](_0x1d21a8,'isRemoved'),_0x30e87c==_0x332279&&this['_markMarkers'](_0x502509,_0xbb63c9),_0x502509=this['_joinTapes'](_0x502509,_0x1d21a8),this['_refreshStartEndIndex'](_0x502509),this['_setDistance'](_0x502509,'isRemoved');}_0x502509=_0x502509['filter'](_0x589fc1=>!(_0x589fc1['isAdded']&&_0x589fc1['isRemoved']));const _0x4c06a8=new Map(_0x2fb16a['model'][_0x32ed6b]['deletions']['markers']),_0x1547a1=new Set(_0xbb63c9['keys']());for(const _0x407b7e of _0x4c06a8['keys']())_0x1547a1['delete'](_0x407b7e);this['_markSuggestions'](_0x502509,_0x1547a1),this['_fixObsoleteTags'](_0x502509),_0x502509=this['_removeMissingPairs'](_0x502509),_0x502509=this['_markMismatchedRemovedTags'](_0x502509),_0x502509=this['_removeUnsupportedChanges'](_0x502509);const {root:_0x560f3a,changes:_0x214dd8}=this['_makeModelFromTape'](_0x502509,_0x1b4955,_0x32ed6b);_0x38c3df['model'][_0x32ed6b]=_0x560f3a;const _0xa54eb9=_0x4389e8['get'](_0x32ed6b);if(_0xa54eb9){const _0x2f0ff9=_0x1b4955['get'](_0xa54eb9['userId']),_0x299532=new r({'author':_0x2f0ff9,'type':_0xa54eb9['isAttached']?'add':'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x32ed6b});_0x214dd8['unshift'](_0x299532),_0x38c3df['attributes'][_0x32ed6b]['revisionHistoryAttachChange']=_0x299532['id'];}_0x38c3df['changes']=_0x38c3df['changes']['concat'](_0x214dd8);}return _0x38c3df;}['_markMarkers'](_0x40a950,_0x4fcf62){for(let _0x4c17ec=0x0;_0x4c17ec<_0x40a950['length'];_0x4c17ec++)for(const [_0x246d2b,_0x1223ed]of _0x4fcf62)_0x1223ed['start']['isEqual'](_0x40a950[_0x4c17ec]['previousPosition'])&&_0x40a950[_0x4c17ec]['markersStart']['push'](_0x246d2b),_0x1223ed['end']['isEqual'](_0x40a950[_0x4c17ec]['nextPosition'])&&_0x40a950[_0x4c17ec]['markersEnd']['push'](_0x246d2b);}['_joinTapes'](_0x40b70c,_0x44df68){let _0x31d7ea=[],_0x2aeb51=0x0,_0x28ce4a=0x0;for(;_0x2aeb51<_0x40b70c['length']||_0x28ce4a<_0x44df68['length'];){const _0x3464fe=_0x40b70c[_0x2aeb51]||{},_0x8c8865=_0x44df68[_0x28ce4a]||{};if(_0x3464fe['id']==_0x8c8865['id'])_0x2aeb51++,_0x28ce4a++,_0x31d7ea['push'](_0x3464fe);else{if(_0x8c8865['isRemoved']&&_0x3464fe['isAdded']){const {commonTape:_0x41aac5,iEnd:_0x2b777c,jEnd:_0x9a9155}=this['_threeWayMerge'](_0x40b70c,_0x2aeb51,_0x44df68,_0x28ce4a);_0x31d7ea=_0x31d7ea['concat'](_0x41aac5),_0x2aeb51=_0x2b777c,_0x28ce4a=_0x9a9155;}else _0x8c8865['isRemoved']?(_0x28ce4a++,_0x31d7ea['push'](_0x8c8865)):(_0x2aeb51++,_0x31d7ea['push'](_0x3464fe));}}return _0x31d7ea;}['_markSuggestions'](_0x500847,_0x299689){const _0x15921d=[];for(let _0x45e404=0x0;_0x45e404<_0x500847['length'];_0x45e404++){for(let _0x2c4d79=0x0;_0x2c4d79<_0x500847[_0x45e404]['markersStart']['length'];_0x2c4d79++){const _0xf8fac=_0x500847[_0x45e404]['markersStart'][_0x2c4d79];if(!_0x299689['has'](_0xf8fac))continue;const {group:_0x27abe4,type:_0x4fd6be,authorId:_0x1c6680}=_0x140f1d(_0xf8fac);'revision-suggestion'!=_0x27abe4||'insertion'!=_0x4fd6be&&'deletion'!=_0x4fd6be||(_0x15921d['unshift']({'type':_0x4fd6be,'name':_0xf8fac,'userId':_0x1c6680}),_0x500847[_0x45e404]['markersStart']['splice'](_0x2c4d79,0x1),_0x2c4d79--);}_0x2acbf1(_0x500847[_0x45e404]);for(let _0x34b317=0x0;_0x34b317<_0x500847[_0x45e404]['markersEnd']['length'];_0x34b317++){const _0x8d3716=_0x500847[_0x45e404]['markersEnd'][_0x34b317];if(!_0x299689['has'](_0x8d3716))continue;const {group:_0x1bb510,type:_0x55ac61}=_0x140f1d(_0x8d3716);if('revision-suggestion'!=_0x1bb510||'insertion'!=_0x55ac61&&'deletion'!=_0x55ac61)continue;_0x500847[_0x45e404]['markersEnd']['splice'](_0x34b317,0x1),_0x34b317--;const _0x1a027c=_0x15921d['findIndex'](_0x9b010e=>_0x9b010e['name']==_0x8d3716);_0x1a027c>-0x1&&_0x15921d['splice'](_0x1a027c,0x1);}}function _0x140f1d(_0x363f58){const _0x4bb47b=_0x363f58['split'](':');return{'group':_0x4bb47b[0x0],'type':_0x4bb47b[0x1],'subType':_0x4bb47b['length']>=0x5?_0x4bb47b[0x2]:null,'id':_0x4bb47b['length']<0x5?_0x4bb47b[0x2]:_0x4bb47b[0x3],'authorId':_0x4bb47b['length']<0x5?_0x4bb47b[0x3]:_0x4bb47b[0x4],'markerCount':0x6==_0x4bb47b['length']?_0x4bb47b[0x5]:null};}function _0x2acbf1(_0x4ae669){for(let _0x32a34c=0x0;_0x32a34c<_0x15921d['length'];_0x32a34c++){if(_0x4ae669['isAdded']&&'insertion'==_0x15921d[_0x32a34c]['type'])return _0x4ae669['isAddSuggestion']=_0x15921d[_0x32a34c],void delete _0x4ae669['isAdded'];if(!_0x4ae669['isAdded']&&!_0x4ae669['isRemoved']&&'deletion'==_0x15921d[_0x32a34c]['type'])return void(_0x4ae669['isRemoveSuggestion']=_0x15921d[_0x32a34c]);}}}['_setDistance'](_0x20ff4c,_0x585e59){let _0x4a2ac0=0x0,_0x18315f=!0x1;const _0x532ee4=new Map();for(const _0x2dd7d1 of _0x20ff4c)_0x2dd7d1[_0x585e59]?_0x18315f&&(_0x4a2ac0++,_0x18315f=!0x1):(_0x4a2ac0++,_0x18315f=!0x0),_0x532ee4['set'](_0x2dd7d1['id'],_0x4a2ac0);for(let _0x5ebe1d=0x0;_0x5ebe1d<_0x20ff4c['length'];_0x5ebe1d++){if('isRemoved'==_0x585e59&&_0x20ff4c[_0x5ebe1d]['isAdded']||'isAdded'==_0x585e59&&_0x20ff4c[_0x5ebe1d]['isRemoved'])continue;if('text'==_0x20ff4c[_0x5ebe1d]['type']){_0x20ff4c[_0x5ebe1d]['distance']=0x0;continue;}const _0x51ed97=_0x532ee4['get'](_0x20ff4c[_0x5ebe1d]['pairId']),_0x2bf35a=_0x532ee4['get'](_0x20ff4c[_0x5ebe1d]['id']);_0x20ff4c[_0x5ebe1d]['distance']=_0x51ed97-_0x2bf35a;}}['_getRevisionsRange'](_0x330e34,_0xbc57c4,_0x30a5f5=!0x1){const _0x37914d=[];let _0x287713=this['repository']['getIndex'](_0x330e34),_0x5f13c5=this['repository']['getIndex'](_0xbc57c4);for(-0x1==_0x5f13c5&&(_0x5f13c5=this['repository']['_revisions']['length'],_0x30a5f5=!0x1);_0x287713<_0x5f13c5;)_0x37914d['push'](this['repository']['getRevision'](_0x287713)),_0x287713++;return _0x30a5f5&&_0x37914d['push'](this['repository']['getRevision'](_0x287713)),_0x37914d;}['_threeWayMerge'](_0x3e82c4,_0x1994df,_0x5de276,_0x3f1d17){const _0x3f66f8=this['editor']['model']['schema'];let _0x17e14=_0x1994df;for(;_0x3e82c4[_0x17e14]&&_0x3e82c4[_0x17e14]['isAdded'];)_0x17e14++;let _0x180fcb=_0x3f1d17;for(;_0x5de276[_0x180fcb]&&_0x5de276[_0x180fcb]['isRemoved'];)_0x180fcb++;_0x4f5cfd(_0x3e82c4,_0x1994df,_0x17e14),_0x4f5cfd(_0x5de276,_0x3f1d17,_0x180fcb);const _0x3506bd=_0x5de276['slice'](_0x3f1d17,_0x180fcb)['concat'](_0x3e82c4['slice'](_0x1994df,_0x17e14));return _0x3506bd['sort']((_0xaa3fee,_0x56210c)=>_0xaa3fee['side']!=_0x56210c['side']?_0xaa3fee['side']-_0x56210c['side']:_0xaa3fee['level']!=_0x56210c['level']?_0xaa3fee['level']-_0x56210c['level']:_0xaa3fee['distance']!=_0x56210c['distance']?_0x56210c['distance']-_0xaa3fee['distance']:!!_0xaa3fee['isAdded']!=!!_0x56210c['isAdded']?-0x1==_0xaa3fee['side']||0x0==_0xaa3fee['side']?_0xaa3fee['isAdded']?-0x1:0x1:_0xaa3fee['isAdded']?0x1:-0x1:_0xaa3fee['index']-_0x56210c['index']),{'commonTape':_0x3506bd,'iEnd':_0x17e14,'jEnd':_0x180fcb};function _0x4f5cfd(_0x793845,_0x5ed45e,_0x388d29){let _0x362f67=-0x1,_0x675831=Number['POSITIVE_INFINITY'],_0x1a5fba=!0x0;for(let _0x510451=_0x5ed45e;_0x510451<_0x388d29;_0x510451++)if(_0x3f66f8['isInline'](_0x793845[_0x510451]['item'])||(_0x1a5fba=!0x1),_0x793845[_0x510451]['item']['startIndex']<_0x5ed45e&&(_0x362f67=_0x510451),_0x793845[_0x510451]['item']['endIndex']>=_0x388d29){_0x675831=_0x510451;break;}_0x1a5fba&&(_0x362f67=_0x388d29-0x1);for(let _0x436258=_0x5ed45e;_0x436258<_0x388d29;_0x436258++)_0x793845[_0x436258]['side']=_0x436258<=_0x362f67?-0x1:_0x436258<_0x675831?0x0:0x1,_0x793845[_0x436258]['index']=_0x436258;let _0x570cc2=0x0;for(let _0x288a23=_0x5ed45e;_0x288a23<=_0x362f67;_0x288a23++)0x0==_0x793845[_0x288a23]['distance']?_0x793845[_0x288a23]['level']=_0x570cc2:(_0x570cc2++,_0x793845[_0x288a23]['level']=_0x570cc2,_0x570cc2++);for(let _0x45621f=_0x5ed45e;_0x45621f<_0x388d29;_0x45621f++)0x0==_0x793845[_0x45621f]['side']&&(_0x793845[_0x45621f]['level']=_0x570cc2);_0x570cc2=0x0;for(let _0x3600e5=_0x388d29-0x1;_0x3600e5>=_0x675831;_0x3600e5--)0x0==_0x793845[_0x3600e5]['distance']?_0x793845[_0x3600e5]['level']=_0x570cc2:(_0x570cc2--,_0x793845[_0x3600e5]['level']=_0x570cc2,_0x570cc2--);}}['_fixObsoleteTags'](_0x52960f){const _0x38197f=new Map(),_0x58a65a=this['editor']['model']['schema'];for(let _0x4d41fb=0x1;_0x4d41fb<_0x52960f['length'];_0x4d41fb++){let _0x22d8c1,_0x5c9f06,_0x17ea8d;const _0x2d960d=_0x52960f[_0x4d41fb],_0x4ce197=_0x52960f[_0x4d41fb-0x1];if('text'==_0x2d960d['type'])continue;if(_0x2d960d['type']!=_0x4ce197['type'])continue;if(!_0x58a65a['isBlock'](_0x4ce197['item'])||_0x58a65a['isLimit'](_0x4ce197['item']))continue;if(!_0x58a65a['isBlock'](_0x2d960d['item'])||_0x58a65a['isLimit'](_0x2d960d['item']))continue;if((_0x52960f[_0x4d41fb]['isAdded']||_0x52960f[_0x4d41fb]['isAddSuggestion'])&&_0x52960f[_0x4d41fb-0x1]['isRemoved'])_0x22d8c1=_0x52960f[_0x4d41fb],_0x5c9f06=_0x52960f[_0x4d41fb-0x1],_0x17ea8d=_0x4d41fb-0x1;else{if(!_0x52960f[_0x4d41fb]['isRemoved']||!_0x52960f[_0x4d41fb-0x1]['isAdded']&&!_0x52960f[_0x4d41fb-0x1]['isAddSuggestion'])continue;_0x22d8c1=_0x52960f[_0x4d41fb-0x1],_0x5c9f06=_0x52960f[_0x4d41fb],_0x17ea8d=_0x4d41fb;}const _0x316783=_0x22d8c1['level']==_0x5c9f06['level'],_0x36cf60=Math['abs'](_0x22d8c1['level'])<Math['abs'](_0x5c9f06['level'])&&0x0==_0x5c9f06['distance'];(_0x316783||_0x36cf60)&&(_0x38197f['set'](_0x5c9f06['id'],_0x22d8c1['id']),_0x52960f['splice'](_0x17ea8d,0x1),_0x4d41fb--,_0x22d8c1['isAdded']=!0x1);}for(let _0x3de565=0x0;_0x3de565<_0x52960f['length'];_0x3de565++)_0x38197f['has'](_0x52960f[_0x3de565]['pairId'])&&(_0x52960f[_0x3de565]['pairId']=_0x38197f['get'](_0x52960f[_0x3de565]['pairId']));}['_removeMissingPairs'](_0x3a28b5){const _0x49fc2a=new Set(_0x3a28b5['map'](_0x2781ff=>_0x2781ff['id']));for(let _0x87b4a7=0x0;_0x87b4a7<_0x3a28b5['length'];_0x87b4a7++)_0x49fc2a['has'](_0x3a28b5[_0x87b4a7]['pairId'])||0x0==_0x3a28b5[_0x87b4a7]['distance']||(_0x3a28b5[_0x87b4a7]['isIncorrect']=!0x0);return _0x3a28b5['filter'](_0x366f0d=>!_0x366f0d['isIncorrect']);}['_markMismatchedRemovedTags'](_0x46c0ed){const _0x5dd04a=new Set();for(let _0x89cd96=0x0;_0x89cd96<_0x46c0ed['length'];_0x89cd96++){if(_0x5dd04a['has'](_0x46c0ed[_0x89cd96]['id'])&&_0x46c0ed[_0x89cd96]['isRemoved']&&(_0x46c0ed[_0x89cd96]['isIncorrect']=!0x0),_0x46c0ed[_0x89cd96]['isIncorrect'])continue;if(0x0==_0x46c0ed[_0x89cd96]['distance'])continue;if('elementStart'!=_0x46c0ed[_0x89cd96]['type'])continue;if(null==_0x46c0ed[_0x89cd96]['pairId'])continue;let _0x59fd9c=_0x89cd96+0x1,_0x556780=0x0;for(;_0x46c0ed[_0x59fd9c]['id']!=_0x46c0ed[_0x89cd96]['pairId'];)'elementStart'==_0x46c0ed[_0x59fd9c]['type']?_0x556780++:'elementEnd'==_0x46c0ed[_0x59fd9c]['type']&&_0x556780--,_0x59fd9c++;if(0x0!=_0x556780){if(_0x46c0ed[_0x89cd96]['isRemoved'])_0x46c0ed[_0x89cd96]['isIncorrect']=!0x0;else{for(;_0x59fd9c!=_0x89cd96;)_0x46c0ed[_0x59fd9c]['isRemoved']&&0x0!=_0x46c0ed[_0x59fd9c]['distance']&&(_0x46c0ed[_0x59fd9c]['isIncorrect']=!0x0,_0x5dd04a['add'](_0x46c0ed[_0x59fd9c]['pairId'])),_0x59fd9c--;}}}return _0x46c0ed['filter'](_0x50be5b=>!_0x50be5b['isIncorrect']);}['_removeUnsupportedChanges'](_0x28d7f1){const _0xed52dd=this['editor']['model']['schema'];for(let _0x5648fd=0x0;_0x5648fd<_0x28d7f1['length'];_0x5648fd++){if(!(_0x28d7f1[_0x5648fd]['isAdded']||_0x28d7f1[_0x5648fd]['isAddSuggestion']||_0x28d7f1[_0x5648fd]['isRemoved']||_0x28d7f1[_0x5648fd]['isRemoveSuggestion']))continue;if(0x0==_0x28d7f1[_0x5648fd]['distance'])continue;const _0x3229f3=_0x28d7f1[_0x5648fd]['item'];_0xed52dd['isBlock'](_0x3229f3)||_0xed52dd['isLimit'](_0x3229f3)||(_0x28d7f1[_0x5648fd]['isAdded']&&delete _0x28d7f1[_0x5648fd]['isAdded'],_0x28d7f1[_0x5648fd]['isAddSuggestion']&&delete _0x28d7f1[_0x5648fd]['isAddSuggestion'],_0x28d7f1[_0x5648fd]['isRemoveSuggestion']&&delete _0x28d7f1[_0x5648fd]['isRemoveSuggestion'],_0x28d7f1[_0x5648fd]['isRemoved']&&(_0x28d7f1[_0x5648fd]['isIncorrect']=!0x0));}return _0x28d7f1['filter'](_0x406761=>!_0x406761['isIncorrect']);}['_makeModelFromTape'](_0x4cbe25,_0x800919,_0x22adb0){const _0x46781f=new gt(),_0x1d772e=[],_0x225417=new Map(),_0x24f2e5=this['editor']['model'],_0x436970=_0x24f2e5['schema'],_0x35674c=[_0x46781f],_0x1f3f43={},_0x962dfd={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x5eed29=null;const _0xc92de0=[0x0];for(let _0x5be2d3=0x0;_0x5be2d3<_0x4cbe25['length'];_0x5be2d3++)if('elementStart'===_0x4cbe25[_0x5be2d3]['type']){_0x4cbe25[_0x5be2d3]['previousPosition']=_0x24f2e5['createPositionFromPath'](_0x46781f,_0xc92de0);const _0x170672=new ut(_0x4cbe25[_0x5be2d3]['item']['name'],_0x4cbe25[_0x5be2d3]['item']['getAttributes']());_0x35674c[0x0]['_appendChild'](_0x170672),_0xc92de0['push'](0x0),_0x35674c['unshift'](_0x170672),_0x4cbe25[_0x5be2d3]['nextPosition']=_0x24f2e5['createPositionFromPath'](_0x46781f,_0xc92de0);}else'elementEnd'===_0x4cbe25[_0x5be2d3]['type']?(_0x35674c['shift'](),_0x4cbe25[_0x5be2d3]['previousPosition']=_0x24f2e5['createPositionFromPath'](_0x46781f,_0xc92de0),_0xc92de0['pop'](),_0xc92de0[_0xc92de0['length']-0x1]++,_0x4cbe25[_0x5be2d3]['nextPosition']=_0x24f2e5['createPositionFromPath'](_0x46781f,_0xc92de0)):(_0x4cbe25[_0x5be2d3]['previousPosition']=_0x24f2e5['createPositionFromPath'](_0x46781f,_0xc92de0),_0x5eed29?_0x5eed29['_data']+=_0x4cbe25[_0x5be2d3]['item']['data']:_0x5eed29=new wt(_0x4cbe25[_0x5be2d3]['item']['data'],_0x4cbe25[_0x5be2d3]['item']['getAttributes']()),_0x4cbe25[_0x5be2d3+0x1]&&'text'===_0x4cbe25[_0x5be2d3+0x1]['type']&&_0x4124e6(_0x5eed29,_0x4cbe25[_0x5be2d3+0x1]['item'])||(_0x35674c[0x0]['_appendChild'](_0x5eed29),_0x5eed29=null),_0xc92de0[_0xc92de0['length']-0x1]+=_0x4cbe25[_0x5be2d3]['item']['offsetSize'],_0x4cbe25[_0x5be2d3]['nextPosition']=_0x24f2e5['createPositionFromPath'](_0x46781f,_0xc92de0));for(let _0x3cc2f4=0x0;_0x3cc2f4<_0x4cbe25['length'];_0x3cc2f4++){const _0x17c63c=_0x4cbe25[_0x3cc2f4]['previousPosition'],_0x3331bf=_0x4cbe25[_0x3cc2f4]['nextPosition'];for(const _0x4b995c of _0x4cbe25[_0x3cc2f4]['markersStart'])_0x225417['set'](_0x4b995c,{'start':_0x17c63c,'end':null});_0x14c747('isRemoveSuggestion',_0x3cc2f4,_0x17c63c,_0x3331bf),_0x14c747('isAddSuggestion',_0x3cc2f4,_0x17c63c,_0x3331bf),_0x14c747('isRemoved',_0x3cc2f4,_0x17c63c,_0x3331bf),_0x14c747('isAdded',_0x3cc2f4,_0x17c63c,_0x3331bf);for(const _0x2f9006 of _0x4cbe25[_0x3cc2f4]['markersEnd']){_0x225417['get'](_0x2f9006)['end']=_0x3331bf;}}for(const [_0x239587,_0x43bd17]of _0x225417){const _0x4b01b2=this['editor']['model']['createRange'](_0x43bd17['start'],_0x43bd17['end']);_0x46781f['markers']['set'](_0x239587,_0x4b01b2);}return _0x1d772e['sort']((_0x4f6bb4,_0x213f91)=>{const _0xad3915=_0x46781f['markers']['get']('revision:'+_0x4f6bb4['id']),_0x53a1d9=_0x46781f['markers']['get']('revision:'+_0x213f91['id']);return _0xad3915['start']['isBefore'](_0x53a1d9['start'])?-0x1:_0xad3915['start']['isAfter'](_0x53a1d9['start'])?0x1:_0xad3915['end']['isBefore'](_0x53a1d9['end'])?-0x1:_0xad3915['end']['isAfter'](_0x53a1d9['end'])?0x1:'add'===_0x4f6bb4['type']?-0x1:0x1;}),{'root':_0x46781f,'changes':_0x1d772e};function _0x14c747(_0xf203ea,_0x2f6499,_0x4a74e8,_0x6f89e9){const _0x6def4=!!_0x4cbe25[_0x2f6499][_0xf203ea],_0x349fa7=_0x6def4?_0x4cbe25[_0x2f6499][_0xf203ea]['userId']:null,_0x4f63d1=_0x2f6499===_0x4cbe25['length']-0x1,_0x40de26=_0x962dfd[_0xf203ea][0x0],_0x2fd3f6=_0x436970['isObject'](_0x4cbe25[_0x2f6499]['item']);!_0x1f3f43[_0xf203ea]&&_0x6def4?_0x1f3f43[_0xf203ea]={'start':_0x4a74e8,'tapeItem':_0x4cbe25[_0x2f6499],'userId':_0x349fa7,'type':_0xf203ea}:_0x1f3f43[_0xf203ea]&&!_0x6def4?(_0x1f3f43[_0xf203ea]['end']=_0x4a74e8,_0x3804d8(_0x1f3f43[_0xf203ea]),_0x1f3f43[_0xf203ea]=null):_0x1f3f43[_0xf203ea]&&_0x6def4&&_0x1f3f43[_0xf203ea]['userId']!==_0x349fa7&&(_0x1f3f43[_0xf203ea]['end']=_0x4a74e8,_0x40de26&&_0x40de26['userId']===_0x1f3f43[_0xf203ea]['userId']||_0x3804d8(_0x1f3f43[_0xf203ea]),_0x1f3f43[_0xf203ea]={'start':_0x4a74e8,'tapeItem':_0x4cbe25[_0x2f6499],'userId':_0x349fa7,'type':_0xf203ea}),_0x1f3f43[_0xf203ea]&&_0x2fd3f6&&('elementStart'!==_0x4cbe25[_0x2f6499]['type']||_0x40de26&&_0x40de26['userId']===_0x349fa7||_0x962dfd[_0xf203ea]['unshift']({'userId':_0x349fa7,'object':_0x4cbe25[_0x2f6499]['item'],'change':_0x1f3f43[_0xf203ea]}),'elementEnd'===_0x4cbe25[_0x2f6499]['type']&&_0x40de26&&_0x40de26['object']===_0x4cbe25[_0x2f6499]['item']&&(_0x962dfd[_0xf203ea]['shift'](),_0x1f3f43[_0xf203ea]=_0x40de26['change'])),_0x1f3f43[_0xf203ea]&&_0x4f63d1&&(_0x1f3f43[_0xf203ea]['end']=_0x6f89e9,_0x3804d8(_0x1f3f43[_0xf203ea]),_0x1f3f43[_0xf203ea]=null);}function _0x3804d8({start:_0x51d081,end:_0x48849f,tapeItem:_0x57fab8,userId:_0x328a4c,type:_0x12afdf}){const _0x26125e=_0x57fab8['item'],_0x4d70d0=_0x24f2e5['schema']['isBlock'](_0x26125e)&&!_0x24f2e5['schema']['isLimit'](_0x26125e),_0x266b4e=_0x51d081['nodeAfter']==_0x48849f['parent']&&_0x48849f['isAtStart'];if(_0x4d70d0&&_0x266b4e)return;const _0x1da226=_0x24f2e5['createRange'](_0x51d081,_0x48849f),_0x17ff47=_0x800919['get'](_0x328a4c),_0x61ca4f=new r({'author':_0x17ff47,'type':'isAdded'==_0x12afdf||'isAddSuggestion'==_0x12afdf?'add':'remove','data':{'isSuggestion':'isAddSuggestion'==_0x12afdf||'isRemoveSuggestion'==_0x12afdf},'createdAt':new Date(),'rootName':_0x22adb0});_0x1d772e['push'](_0x61ca4f),_0x46781f['markers']['set']('revision:'+_0x61ca4f['id'],_0x1da226);}function _0x4124e6(_0x24f7dd,_0x1c8cf1){const _0xa39ba0=_0x24f7dd['getAttributes'](),_0x58bf4c=_0x1c8cf1['getAttributes']();for(const _0x4707c3 of _0xa39ba0){if(_0x4707c3[0x1]!==_0x1c8cf1['getAttribute'](_0x4707c3[0x0]))return!0x1;_0x58bf4c['next']();}return _0x58bf4c['next']()['done'];}}['_setConversion'](){this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision','view':_0x13e7a6=>{const _0x599695=_0x13e7a6['markerName']['split'](':')[0x1],_0x4326f4=this['_getChangeFromId'](_0x599695);if(!_0x4326f4)return null;const _0x4e49a4='add'==_0x4326f4['type']?'insertion':'deletion',_0x32259e=['ck-suggestion-marker','ck-suggestion-marker-'+_0x4e49a4];return _0x4326f4['data']['isSuggestion']&&_0x32259e['push']('ck-suggestion-marker-'+_0x4e49a4+'-new'),this['activeChange']==_0x4326f4&&_0x32259e['push']('ck-suggestion-marker--active'),{'classes':_0x32259e,'attributes':{'data-change-id':_0x599695}};}}),this['editor']['conversion']['for']('upcast')['add'](_0x1d449e=>{_0x1d449e['on']('element:pre',(_0x1d2329,_0x5a4795,_0x2c2c8c)=>{const _0x345d62=_0x5a4795['viewItem']['getChild'](0x0);if(!_0x345d62||!_0x345d62['is']('element','code'))return;if(!_0x2c2c8c['consumable']['consume'](_0x345d62,{'attributes':['vid_start','vid_end']}))return;const _0x2636ff=_0x5a4795['modelRange']['start']['nodeAfter'];_0x2c2c8c['writer']['setAttribute']('vid_start',_0x345d62['getAttribute']('vid_start'),_0x2636ff),_0x2c2c8c['writer']['setAttribute']('vid_end',_0x345d62['getAttribute']('vid_end'),_0x2636ff);},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['add'](_0x41b5a2=>{_0x41b5a2['on']('element',(_0x34aef4,_0x3ec4f3,_0x133177)=>{if(!_0x133177['consumable']['consume'](_0x3ec4f3['viewItem'],{'attributes':['vid_start','vid_end']}))return;if(_0x3ec4f3['modelRange']['isCollapsed'])return;const _0x5968d7=_0x3ec4f3['modelRange']['start']['nodeAfter'];_0x5968d7['hasAttribute']('vid_start')||_0x5968d7['hasAttribute']('vid')||(_0x133177['writer']['setAttribute']('vid_start',_0x3ec4f3['viewItem']['getAttribute']('vid_start'),_0x5968d7),_0x133177['writer']['setAttribute']('vid_end',_0x3ec4f3['viewItem']['getAttribute']('vid_end'),_0x5968d7));},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['elementToAttribute']({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0x1a1d0e=>_0x1a1d0e['getAttribute']('vid')}}),this['editor']['model']['schema']['on']('checkAttribute',(_0x40b660,[,_0x522211])=>{['vid_start','vid_end','vid']['includes'](_0x522211)&&(_0x40b660['return']=!0x0,_0x40b660['stop']());},{'priority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x129c58=>{_0x129c58['on']('attribute:vid',(_0x5d7d93,_0x2796a1,_0x4377f3)=>{if('\x20'!=_0x2796a1['item']['data']||_0x2796a1['item']['parent']['maxOffset']>0x1)return;if(!_0x4377f3['consumable']['consume'](_0x2796a1['item'],_0x5d7d93['name']))return;const _0x2c3f05=_0x4377f3['writer'],_0x2ef8ac=_0x4377f3['mapper']['toViewRange'](_0x2796a1['range']);_0x2c3f05['wrap'](_0x2ef8ac,_0x2c3f05['createAttributeElement']('span'));});}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',function(_0x28edd5){const _0x5d997a=_0x28edd5['plugins']['get']('RevisionViewer');return(_0xa17e5b,_0x4173b0,_0x4a97d8)=>{const _0x5292d6=_0x4173b0['markerName']['split'](':')[0x1],_0x1067de=_0x5d997a['_getChangeFromId'](_0x5292d6);if(!_0x1067de)return null;const _0xcc1be7='add'==_0x1067de['type']?'split':'merge';if(!_0x4a97d8['consumable']['test'](_0x4173b0['markerRange'],_0xa17e5b['name']))return;const _0x18cc34=_0x4173b0['markerRange']['getWalker'](),_0x8cfe02=_0x4173b0['markerRange']['start'],_0x455bf9=_0x28edd5['model']['schema'];let _0xc011c7=null,_0x48527a=null,_0x423265=!0x1,_0x3cd8c3=!0x1;for(const _0x543589 of _0x18cc34){const _0x147cc8=_0x543589['item'];_0x423265=_0x423265||_0x455bf9['isContent'](_0x147cc8);const _0x437d67=_0x4a97d8['mapper']['toViewElement'](_0x147cc8);if(_0x437d67&&_0x437d67['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x543589['type']&&(_0x455bf9['isBlock'](_0x147cc8)&&!_0x455bf9['isLimit'](_0x147cc8)&&(_0x147cc8['nextSibling']||_0x8cfe02['isAtEnd']?_0xc011c7&&_0xc011c7['parent']==_0x147cc8||(_0xc011c7=_0x147cc8,_0x4119b6(_0x543589['previousPosition']),_0x3cd8c3=!0x0):_0x48527a=_0x48527a||_0x543589['previousPosition']));}function _0x4119b6(_0x1c94e7){const _0x3d9086=_0x4a97d8['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0xcc1be7}),_0x1997b7=_0x4a97d8['mapper']['toViewPosition'](_0x1c94e7);_0x1067de['data']['isSuggestion']&&_0x4a97d8['writer']['addClass']('ck-suggestion-marker-'+_0xcc1be7+'-new',_0x3d9086),_0x5d997a['activeChange']==_0x1067de&&_0x4a97d8['writer']['addClass']('ck-suggestion-marker--active',_0x3d9086),_0x4a97d8['writer']['insert'](_0x1997b7,_0x3d9086),_0x4a97d8['mapper']['bindElementToMarker'](_0x3d9086,_0x4173b0['markerName']);}_0x423265||_0x3cd8c3||!_0x48527a||_0x4119b6(_0x48527a);};}(this['editor']),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision',(_0x2c9a87,_0x323865,_0x29359f)=>{const _0x283cb1=_0x29359f['mapper']['markerNameToElements'](_0x323865['markerName']);if(_0x283cb1){for(const _0x46fb99 of _0x283cb1)(_0x46fb99['hasClass']('ck-suggestion-marker-split')||_0x46fb99['hasClass']('ck-suggestion-marker-merge'))&&(_0x29359f['mapper']['unbindElementFromMarkerName'](_0x46fb99,_0x323865['markerName']),_0x29359f['writer']['remove'](_0x46fb99));}},{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',(_0x3af290,_0x351367,_0xd99224)=>{const _0xb2765a=_0x351367['markerName']['split'](':')[0x1],_0x2e485d=this['_getChangeFromId'](_0xb2765a);if(!_0x2e485d)return null;const _0x11bcc4='add'==_0x2e485d['type']?'split':'merge';if(_0xd99224['consumable']['test'](_0x351367['markerRange'],_0x3af290['name']))for(const _0x2429a0 of _0x351367['markerRange']['getItems']()){if(!_0x2429a0['is']('element','softBreak'))continue;const _0x29f801=_0xd99224['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x11bcc4}),_0x214c8e=_0xd99224['mapper']['toViewPosition'](this['editor']['model']['createPositionBefore'](_0x2429a0));_0x2e485d['data']['isSuggestion']&&_0xd99224['writer']['addClass']('ck-suggestion-marker-'+_0x11bcc4+'-new',_0x29f801),this['activeChange']==_0x2e485d&&_0xd99224['writer']['addClass']('ck-suggestion-marker--active',_0x29f801),_0xd99224['writer']['insert'](_0x214c8e,_0x29f801),_0xd99224['mapper']['bindElementToMarker'](_0x29f801,_0x351367['markerName']);}},{'priority':'high'}),this['editor']['model']['document']['on']('change',()=>{this['editor']['editing']['view']['change'](_0x251691=>{for(const _0x3a8ab9 of this['editor']['model']['document']['getRootNames']()){const _0x5a9e1d=this['editor']['model']['document']['getRoot'](_0x3a8ab9),_0x5991a7=this['editor']['editing']['view']['document']['getRoot'](_0x3a8ab9);if(_0x5991a7){const _0x59b30a=_0x5a9e1d['getAttribute']('revisionHistoryAttachChange');if(_0x251691['removeAttribute']('data-change-id',_0x5991a7),_0x251691['removeClass']('ck-revision-history-root-add',_0x5991a7),_0x251691['removeClass']('ck-revision-history-root-remove',_0x5991a7),_0x251691['removeClass']('ck-revision-history-root--active',_0x5991a7),_0x59b30a){const _0x2c214a=this['_getChangeFromId'](_0x59b30a);if(!_0x2c214a)return null;_0x251691['setAttribute']('data-change-id',_0x59b30a,_0x5991a7),_0x251691['addClass']('ck-revision-history-root-'+_0x2c214a['type'],_0x5991a7),this['activeChange']==_0x2c214a&&_0x251691['addClass']('ck-revision-history-root--active',_0x5991a7);}}}});}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'comment','model':_0xc4248=>'revision-comment:'+_0xc4248,'converterPriority':'highest'}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion','model':_0x904908=>'revision-suggestion:'+_0x904908,'converterPriority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision-suggestion','view':_0x9dc647=>({'name':'suggestion:'+_0x9dc647,'group':'revision-suggestion'}),'converterPriority':'highest'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision-suggestion','view':_0xcc2ddf=>{const _0x52a7e2=_0xcc2ddf['markerName']['split'](':')[0x1];return'insertion'!=_0x52a7e2&&'deletion'!=_0x52a7e2?null:{'classes':['ck-suggestion-preview-marker','ck-suggestion-preview-marker-'+_0x52a7e2]};}}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:deletion',Z(this['editor'],'merge'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:insertion',Z(this['editor'],'split'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision-suggestion',(_0xf7df67,_0x9ec0e,_0x5806e4)=>{const _0x24231d=_0x5806e4['mapper']['markerNameToElements'](_0x9ec0e['markerName']);if(_0x24231d){for(const _0x226420 of _0x24231d)_0x226420['is']('uiElement')&&(_0x5806e4['mapper']['unbindElementFromMarkerName'](_0x226420,_0x9ec0e['markerName']),_0x5806e4['writer']['remove'](_0x226420));}},{'priority':'high'});}['_getChangeFromId'](_0x3c254c){return this['_changeIdToChange']['get'](_0x3c254c);}['_getViewForChange'](_0x2ed854){return this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=new X(this['editor']['locale'],_0x2ed854),this['_changeView'];}['_initInteractions'](){this['editor']['model']['document']['selection']['observeMarkers']('revision'),this['on']('change:activeView',(_0x208027,_0x56ce22,_0x16f488,_0x58adf2)=>{_0x58adf2&&this['_balloon']['remove'](_0x58adf2),_0x16f488&&(this['_balloon']['add']({'view':_0x16f488,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0xa20f59=this['editor']['editing'],_0x9b62d7=this['_getChangeFromId'](_0x16f488['changeId']);let _0x458dda;if(_0x9b62d7['data']['isOnRoot']){const _0x465de7=_0xa20f59['view']['getDomRoot'](_0x9b62d7['rootName']);_0x458dda=Array['from'](_0x465de7['getClientRects']());}else{const _0x1f6845=this['editor']['model']['markers']['get']('revision:'+_0x16f488['changeId']);_0x458dda=Array['from'](_0xa20f59['mapper']['markerNameToElements'](_0x1f6845['name']))['map'](_0x5f2090=>_0xa20f59['view']['domConverter']['mapViewToDom'](_0x5f2090))['map'](_0x4e9aef=>Array['from'](_0x4e9aef['getClientRects']()))['flat']();}if(!this['_activeViewTarget'])return _0x458dda[0x0];return _0x458dda['find'](_0x3fe77a=>_0x3fe77a['top']-0x3<=this['_activeViewTarget']['y']&&_0x3fe77a['bottom']+0x3>=this['_activeViewTarget']['y']&&_0x3fe77a['left']-0x3<=this['_activeViewTarget']['x']&&_0x3fe77a['right']+0x3>=this['_activeViewTarget']['x'])||_0x458dda[0x0];}}}),this['_balloon']['showStack']('revisionHistoryLabel'));}),this['on']('change:activeChange',(_0x55a78c,_0x528826,_0x786f22,_0x2e1c00)=>{this['activeView']=_0x786f22?this['_getViewForChange'](_0x786f22):null,this['editor']['model']['change'](()=>{const _0x683b79=this['editor']['editing'];_0x2e1c00&&(_0x2e1c00['data']['isOnRoot']?_0x683b79['view']['change'](_0x4d7cd7=>{_0x4d7cd7['removeClass']('ck-revision-history-root--active',_0x683b79['view']['document']['getRoot'](_0x2e1c00['rootName']));}):_0x683b79['reconvertMarker']('revision:'+_0x2e1c00['id'])),_0x786f22&&(_0x786f22['data']['isOnRoot']?_0x683b79['view']['change'](_0x1f66e7=>{_0x1f66e7['addClass']('ck-revision-history-root--active',_0x683b79['view']['document']['getRoot'](_0x786f22['rootName']));}):_0x683b79['reconvertMarker']('revision:'+_0x786f22['id']));});}),this['listenTo'](this['editor']['editing']['view']['document'],'mouseover',(_0x3225c2,_0x7d2698)=>{if(this['activeChange'])return;const _0x5b9511=this['_findChangeIdFromDomTarget'](_0x7d2698['target']),_0x16e1c1=this['_changeIdToChange']['get'](_0x5b9511);_0x16e1c1?(this['_activeViewTarget']={'x':_0x7d2698['domEvent']['x'],'y':_0x7d2698['domEvent']['y']},this['activeView']=this['_getViewForChange'](_0x16e1c1)):(this['_activeViewTarget']=null,this['activeView']=null);}),this['listenTo'](this['editor']['editing']['view']['document'],'mousedown',(_0x102e8b,_0x87e911)=>{const _0x2e8338=this['_findChangeIdFromDomTarget'](_0x87e911['target']),_0xc9a3ae=this['_changeIdToChange']['get'](_0x2e8338);_0xc9a3ae?(this['_activeViewTarget']={'x':_0x87e911['domEvent']['x'],'y':_0x87e911['domEvent']['y']},_0xc9a3ae===this['activeChange']?this['_balloon']['updatePosition']():this['activeChange']=_0xc9a3ae):(this['_activeViewTarget']=null,this['activeChange']=null);});}['_findChangeIdFromDomTarget'](_0x5dc0bb){do{const _0x2e2e0b=_0x5dc0bb['getAttribute']('data-change-id');if(_0x2e2e0b)return _0x2e2e0b;_0x5dc0bb=_0x5dc0bb['parent'];}while(_0x5dc0bb);return null;}['_cleanMarkers'](){this['editor']['model']['change'](_0x37db50=>{for(const _0xb13f81 of this['editor']['model']['markers'])_0x37db50['removeMarker'](_0xb13f81);});}}function Z(_0x243502,_0x5792ee){return(_0x52da8a,_0x27ad29,_0x5e7af8)=>{if(!_0x5e7af8['consumable']['test'](_0x27ad29['markerRange'],_0x52da8a['name']))return;const _0x38341c=_0x27ad29['markerRange']['getWalker'](),_0x9e8d6=_0x27ad29['markerRange']['start'],_0x136899=_0x243502['model']['schema'];let _0x49ce7d=null,_0x9cd922=null,_0x40f083=!0x1,_0x42c921=!0x1;for(const _0x19d67b of _0x38341c){const _0x1d0c2b=_0x19d67b['item'];_0x40f083=_0x40f083||_0x136899['isContent'](_0x1d0c2b);const _0x56c19e=_0x5e7af8['mapper']['toViewElement'](_0x1d0c2b);if(_0x56c19e&&_0x56c19e['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x19d67b['type']&&(_0x136899['isBlock'](_0x1d0c2b)&&!_0x136899['isLimit'](_0x1d0c2b)&&(_0x1d0c2b['nextSibling']||_0x9e8d6['isAtEnd']?_0x49ce7d&&_0x49ce7d['parent']==_0x1d0c2b||(_0x49ce7d=_0x1d0c2b,_0xb4bdf(_0x19d67b['previousPosition']),_0x42c921=!0x0):_0x9cd922=_0x9cd922||_0x19d67b['previousPosition']));}function _0xb4bdf(_0x4ae5a2){const _0x1eab63=_0x5e7af8['mapper']['toViewPosition'](_0x4ae5a2),_0x41355a=_0x5e7af8['writer']['createUIElement']('span',{'class':'ck-suggestion-preview-marker-'+_0x5792ee});_0x5e7af8['writer']['insert'](_0x1eab63,_0x41355a),_0x5e7af8['mapper']['bindElementToMarker'](_0x41355a,_0x27ad29['markerName']);}_0x40f083||_0x42c921||!_0x9cd922||_0xb4bdf(_0x9cd922);};}class _t extends _0x1bc561{constructor(_0x382e80){super(_0x382e80);const _0x570739=_0x382e80['plugins']['get'](d);this['affectsData']=!0x1,this['listenTo'](_0x570739,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x570739,'change:isEnabled',()=>this['refresh']());}['execute'](){const _0x14f5a1=this['editor'],_0x4c8204=_0x14f5a1['plugins']['get'](d),_0x14438b=_0x4c8204['isReady']?_0x4c8204['diff']['newRevisionId']:null;_0x14f5a1['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x14438b);}['refresh'](){const {isReady:_0x9b4263,isEnabled:_0x3db13d,repository:_0x436c1c,diff:_0x45ba50}=this['editor']['plugins']['get'](d),_0x16a045=_0x45ba50&&_0x436c1c['getLaterVisibleRevision'](_0x45ba50['newRevisionId']);this['isEnabled']=_0x9b4263&&_0x3db13d&&Boolean(_0x16a045);}}class yt extends _0x1bc561{['_step'];constructor(_0x42d12f,{direction:_0x4ff2d6}){super(_0x42d12f);const _0x194bb1=_0x42d12f['plugins']['get'](d);this['affectsData']=!0x1,this['_step']='forward'===_0x4ff2d6?0x1:-0x1,this['listenTo'](_0x194bb1,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x194bb1,'change:isEnabled',()=>this['refresh']()),this['listenTo'](_0x194bb1,'change:activeChange',()=>this['refresh']());}['execute'](){const _0x5d4a36=this['editor'],_0x494e6b=_0x5d4a36['plugins']['get'](d),{isNavigationMode:_0x458a9e,currentChangeNumber:_0x5274c5}=_0x494e6b;let _0x4e6150;if(_0x494e6b['activeChange']=_0x458a9e?_0x494e6b['diff']['changes']['get'](_0x5274c5+this['_step']):_0x494e6b['diff']['changes']['first'],_0x494e6b['activeChange']['data']['isOnRoot'])_0x4e6150=_0x5d4a36['editing']['view']['getDomRoot'](_0x494e6b['activeChange']['rootName']);else{const _0x1b07df=_0x5d4a36['model']['markers']['get']('revision:'+_0x494e6b['activeChange']['id']);_0x4e6150=_0x665250(_0x5d4a36['editing'],_0x1b07df);}_0x53c173({'target':_0x4e6150,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0x20971e,currentChangeNumber:_0x572f9b,numberOfChanges:_0x192e7d,isReady:_0x43b6aa,isEnabled:_0x2cb1cc}=this['editor']['plugins']['get'](d);this['isEnabled']=!!(_0x2cb1cc&&_0x43b6aa&&_0x192e7d)&&(!_0x20971e||(0x1===this['_step']?_0x572f9b<_0x192e7d-0x1:_0x572f9b>0x0));}}class _i extends _0x423d80{constructor(_0x3047c2){super(_0x3047c2);const _0x180fb1=this['bindTemplate'],_0x165720=new _0x4f8d34(_0x3047c2),_0x4c3a6c=new _0x4f8d34(_0x3047c2);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',(_0x4e942e,_0x13445e)=>_0x4e942e&&_0x13445e>0x0),this['bind']('_statusText')['to'](this,'isReady',this,'currentChangeNumber',this,'numberOfChanges',this,'isNavigationMode',(_0x321362,_0x267c5b,_0x2fedb2,_0x50d8fb)=>{if(!_0x321362)return m(_0x3047c2,'Loading...');if(!_0x2fedb2)return m(_0x3047c2,'No\x20changes');const _0x346174=m(_0x3047c2,'NUMBER_OF_CHANGES',_0x2fedb2);return _0x50d8fb?m(_0x3047c2,'X_OF_Y_CHANGES',[_0x267c5b+0x1,_0x2fedb2]):_0x346174;}),_0x165720['set']({'label':m(_0x3047c2,'Show\x20previous\x20change'),'tooltip':!0x0,'icon':_0x4e8941}),_0x4c3a6c['set']({'label':m(_0x3047c2,'Show\x20next\x20change'),'tooltip':!0x0,'icon':_0x243940}),_0x165720['bind']('isEnabled')['to'](this,'isBackwardNavigationEnabled'),_0x4c3a6c['bind']('isEnabled')['to'](this,'isForwardNavigationEnabled'),_0x165720['on']('execute',()=>this['fire']('execute','backward')),_0x4c3a6c['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',_0x180fb1['if']('_isStatusLabelVisible','ck-hidden',_0x13205c=>!_0x13205c)]},'children':[{'text':_0x180fb1['to']('isNavigationMode',_0x13ec88=>_0x13ec88?m(_0x3047c2,'EDIT_X_OF_Y_REVISIONS')+':\x20':m(_0x3047c2,'Total')+':\x20')}]},{'text':_0x180fb1['to']('_statusText')}]},new _0x1edbaa(),{'tag':'div','attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0x165720,_0x4c3a6c]}]});}}const ce='ck-editor__editable__loading-overlay';class le extends _0x41e048{static get['pluginName'](){return'RevisionViewerLoadingOverlay';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['show'](){const _0x21b10f=this['editor']['editing']['view'];_0x21b10f['change'](_0x2e785b=>{for(const _0x2261d8 of _0x21b10f['document']['roots'])_0x2e785b['addClass'](ce,_0x2261d8);});}['hide'](){const _0x1f8bb1=this['editor']['editing']['view'];_0x1f8bb1['change'](_0x16f85b=>{for(const _0x40368e of _0x1f8bb1['document']['roots'])_0x16f85b['removeClass'](ce,_0x40368e);});}}class w extends _0x41e048{static get['pluginName'](){return'RevisionViewerUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[d,le];}['init'](){const _0x599f86=this['editor'],_0x3cf255=_0x599f86['plugins']['get'](d),_0x538e4e=_0x599f86['plugins']['get'](le);_0x599f86['ui']['componentFactory']['add']('exitToEditing',_0x2e2bad=>{const _0x58fc25=new _0x4f8d34(_0x2e2bad);return _0x58fc25['set']({'label':m(_0x2e2bad,'Back\x20to\x20editing'),'icon':_0x51d06c,'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this['listenTo'](_0x58fc25,'execute',()=>{_0x599f86['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}),_0x58fc25;}),_0x599f86['ui']['componentFactory']['add']('restoreRevision',_0x5df9d9=>{const _0x6eb0e1=new _0x4f8d34(_0x5df9d9);return _0x6eb0e1['set']({'label':m(_0x5df9d9,'Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0x6eb0e1['bind']('isEnabled')['to'](_0x599f86['commands']['get']('restoreRevision')),this['listenTo'](_0x6eb0e1,'execute',()=>_0x599f86['execute']('restoreRevision')),_0x6eb0e1;}),_0x599f86['ui']['componentFactory']['add']('changesNavigation',_0x1b9889=>{const _0x51bb0e=new _i(_0x1b9889),_0xe54015=_0x599f86['commands']['get']('showPreviousChange'),_0x1ffc70=_0x599f86['commands']['get']('showNextChange');return _0x51bb0e['bind']('isBackwardNavigationEnabled')['to'](_0xe54015,'isEnabled'),_0x51bb0e['bind']('isForwardNavigationEnabled')['to'](_0x1ffc70,'isEnabled'),_0x51bb0e['bind']('isReady','currentChangeNumber','numberOfChanges','isNavigationMode')['to'](_0x3cf255),this['listenTo'](_0x51bb0e,'execute',(_0x3d9500,_0x30e1c8)=>{_0x599f86['execute']('forward'===_0x30e1c8?'showNextChange':'showPreviousChange');}),_0x51bb0e;}),_0x538e4e['show'](),_0x3cf255['on']('change:isReady',(_0x1219fe,_0x23a109,_0x3730e4)=>{_0x3730e4?_0x538e4e['hide']():_0x538e4e['show']();});}}class mt extends at{['_resizeObserver']=null;constructor(_0x70f427,_0x3f2cc2){super(_0x70f427,_0x3f2cc2);const _0x549e64=this['bindTemplate'];this['set']({'label':m(_0x70f427,'Revision\x20name'),'_tooltipString':''}),this['fieldView']['placeholder']=m(_0x70f427,'Enter\x20the\x20revision\x20name'),this['extendTemplate']({'tag':'span','attributes':{'class':['ck-revision-history-sidebar__revision-name'],'data-cke-tooltip-text':_0x549e64['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 _0x5b10d6=this['fieldView']['element'];this['_tooltipString']=_0x5b10d6['scrollWidth']>_0x5b10d6['clientWidth']&&_0x5b10d6['value']||'';}}class oi extends _0x423d80{constructor(_0x179420,_0x326407,_0x293f85){super(_0x179420);const _0x31f828=new _0x261fed();_0x31f828['set']({'content':_0x2ab0e8,'viewBox':'0\x200\x2011\x2010'});const _0x4642aa=['ck','ck-revision-history-sidebar__revision-author'];_0x293f85&&_0x4642aa['push']('ck-revision-history-sidebar__revision-author_creator');const _0x587e9d=[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':m(_0x179420,_0x293f85?'Revision\x20creator':'Revision\x20author')},'children':[_0x31f828,_0x326407['name']]}];this['setTemplate']({'tag':'li','attributes':{'class':_0x4642aa},'children':_0x587e9d});}}function ni(_0x3fd00f,_0x38f148){const _0x2e0d61=_0x3fd00f['bindTemplate'],_0x36fb86=_0x3fd00f['locale'],_0x491875=_0x4b0e6a(_0x36fb86);_0x491875['panelPosition']='sw';const _0x3c2abd=function(_0x4c3286,_0x4891f8){const _0x2b0b12=function(_0x5686fb,_0x185aae){const _0x55950e=_0x5686fb['locale'],_0x28aa0a={'Compare\x20against\x20selected':m(_0x55950e,'Compare\x20against\x20selected'),'Name\x20this\x20revision':m(_0x55950e,'Name\x20this\x20revision'),'Restore\x20this\x20revision':m(_0x55950e,'Restore\x20this\x20revision')};return _0x185aae['map'](_0x347b0c=>{const _0x193127=_0x28aa0a[_0x347b0c['name']];return _0x193127&&_0x193127!==_0x347b0c['name']&&(_0x347b0c['name']=_0x193127),_0x347b0c;});}(_0x4c3286,_0x4891f8),_0x1a3748=new _0x2c3527();for(const _0x3223d4 of _0x2b0b12){const _0x2cc03a={'type':'button','model':new to({'label':_0x3223d4['name'],'class':_0x3223d4['class'],'withText':!0x0,'role':'menuitem','_action':_0x3223d4['action']})};_0x2cc03a['model']['bind']('isEnabled')['to'](_0x4c3286,'isActionsDropdownOpen',_0x5157f3=>'function'!=typeof _0x3223d4['isEnabled']||(!_0x5157f3||_0x3223d4['isEnabled'](_0x4c3286))),_0x1a3748['add'](_0x2cc03a);}return _0x1a3748;}(_0x3fd00f,_0x38f148);return _0x3fd00f['bind']('isActionsDropdownOpen')['to'](_0x491875,'isOpen'),_0x491875['buttonView']['set']({'label':m(_0x36fb86,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x4c20c0}),_0x491875['extendTemplate']({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0x2e0d61['if']('isActionsDropdownOpen','ck-on')]},'on':{'click':_0x2e0d61['to'](_0x1a78e1=>_0x1a78e1['stopPropagation']())}}),_0x491875['on']('execute',_0x42bfe5=>{_0x3fd00f['isReady']&&'function'==typeof _0x42bfe5['source']['_action']&&_0x42bfe5['source']['_action'](_0x3fd00f);}),_0x2cf456(_0x491875,_0x3c2abd,{'role':'menu'}),_0x491875['listenTo'](_0x3fd00f,'change:isActionsDropdownOpen',(_0x50f76f,_0x8e44be,_0x28f2f7)=>{if(_0x28f2f7)for(const _0x546835 of _0x491875['listView']['items']){const _0x556fb3=_0x546835['children']['first'],_0x1f7311=_0x38f148['find'](_0x1afd59=>_0x1afd59['action']===_0x556fb3['_action'])['isVisible'];_0x546835['isVisible']=void 0x0===_0x1f7311||_0x1f7311(_0x3fd00f);}}),_0x491875;}class ai extends/* #__PURE__ -- @preserve */
26
+ _0xdffbcd(_0x423d80){['id'];['revisionNameView'];['revisionActionsView'];['_revision'];['_requireRevisionName'];constructor(_0x6205e6,_0x49929d,_0x20191d,_0x36581f){super(_0x6205e6);const _0x5d4ae8=this['bindTemplate'],_0x1ed976=function(_0x237f68,_0x33ffa2){const _0x23d558=Array['from'](_0x33ffa2['authors'])['filter'](_0x49f0e4=>_0x49f0e4!=_0x33ffa2['creator']);return _0x33ffa2['creator']&&_0x23d558['unshift'](_0x33ffa2['creator']),_0x23d558['map'](_0xbcaa03=>new oi(_0x237f68,_0xbcaa03,_0xbcaa03==_0x33ffa2['creator']));}(_0x6205e6,_0x49929d);this['id']=_0x49929d['id'],this['_revision']=_0x49929d,this['_requireRevisionName']=_0x36581f,this['bind']('name','createdAt')['to'](_0x49929d),this['bind']('_createdAtFormatted')['to'](this,'createdAt',_0x185ad8=>{return _0x148ac7=_0x6205e6['uiLanguage'],(_0x166a1d=_0x185ad8)['toLocaleDateString'](_0x148ac7,{'month':'long','day':'numeric'})+',\x20'+_0x166a1d['toLocaleTimeString'](_0x148ac7,{'hour':'numeric','minute':'numeric'});var _0x148ac7,_0x166a1d;}),this['set']('isSelected',!0x1),this['set']('isHighlighted',!0x1),this['set']('isActionsDropdownOpen',!0x1),this['set']('isReady',!0x1),this['set']('isEnabled',!0x1),this['revisionNameView']=new mt(_0x6205e6,ti),this['revisionNameView']['fieldView']['extendTemplate']({'attributes':{'maxlength':'220'}}),this['revisionNameView']['fieldView']['bind']('value')['to'](this,'name',_0x4cd3af=>_0x4cd3af||this['_createdAtFormatted']),this['revisionNameView']['bind']('isEnabled')['to'](this,'isSelected',this,'isEnabled',(_0x282d9f,_0x2b99de)=>_0x282d9f&&_0x2b99de),this['revisionActionsView']=_0x20191d&&_0x20191d['length']?ni(this,_0x20191d):'',this['revisionActionsView']&&this['revisionActionsView']['bind']('isEnabled')['to'](this),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision-wrapper',_0x5d4ae8['if']('isConfirm','ck-revision-history-sidebar__revision-wrapper_confirmation_visible')]},'children':[{'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision',_0x5d4ae8['if']('isEnabled','ck-disabled',_0xfd3f5e=>!_0xfd3f5e),_0x5d4ae8['if']('isSelected','ck-revision-history-sidebar__revision_selected'),_0x5d4ae8['if']('isHighlighted','ck-revision-history-sidebar__revision_highlighted'),_0x5d4ae8['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':_0x5d4ae8['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':_0x1ed976}]},this['revisionActionsView']],'on':{'click':_0x5d4ae8['to'](_0x1c3f42=>{_0x1c3f42['srcElement']['closest']('.ck-thread__remove-confirm')||this['isReady']&&this['isEnabled']&&this['fire']('select',{'id':this['id']});})}}]});}['render'](){super['render']();const _0x263967=this['revisionNameView']['fieldView']['element'];this['listenTo'](_0x263967,'change',()=>{this['_requireRevisionName']&&!_0x263967['value']||this['fire']('setName',{'id':this['id'],'name':_0x263967['value']}),_0x263967['value']||(_0x263967['value']=this['name']?this['name']:this['_createdAtFormatted']);});}['select'](){this['isSelected']=!0x0;}['deselect'](){this['isSelected']=!0x1;}['highlight'](){this['isHighlighted']=!0x0;}['unhighlight'](){this['isHighlighted']=!0x1;}}function vi(_0x109962,_0x90ea97){const _0x239b64=_0x3a0f57['fromJSDate'](_0x109962)['setLocale'](_0x90ea97),_0x4c9369=_0x3a0f57['local'](),_0x98215d=_0x4c9369['minus']({'days':0x1})['startOf']('day');let _0x3bc289,_0x22faca;return _0x239b64['hasSame'](_0x4c9369,'day')?(_0x3bc289=_0x239b64['startOf']('day')['toJSDate'](),_0x22faca=_0x239b64['toRelativeCalendar']()):_0x239b64['hasSame'](_0x98215d,'day')?(_0x3bc289=_0x98215d['toJSDate'](),_0x22faca=_0x239b64['toRelativeCalendar']()):_0x239b64['hasSame'](_0x4c9369,'week')?(_0x3bc289=_0x239b64['startOf']('week')['toJSDate'](),_0x22faca=_0x239b64['weekdayLong']||''):_0x239b64['hasSame'](_0x4c9369,'year')?(_0x3bc289=_0x239b64['startOf']('month')['toJSDate'](),_0x22faca=_0x239b64['monthLong']||''):(_0x3bc289=_0x239b64['startOf']('year')['toJSDate'](),_0x22faca=String(_0x239b64['year'])),{'startDate':_0x3bc289,'localizedPeriodName':_0x22faca};}class mi extends _0x423d80{['startDate'];['revisionViews'];['_revisionActions'];['_requireRevisionName'];constructor(_0x5e3a3a,_0x155be6,_0x3431e0,_0xa958b5){super(_0x5e3a3a);const _0x7384e0=vi(_0x155be6,this['locale']['uiLanguage'])['localizedPeriodName'];this['startDate']=_0x155be6,this['revisionViews']=this['createCollection'](),this['_revisionActions']=_0x3431e0,this['_requireRevisionName']=_0xa958b5,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':_0x7384e0}]},{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__time-period__revisions']},'children':this['revisionViews']}]});}['addRevision'](_0x328654){const _0x392295=new ai(this['locale'],_0x328654,this['_revisionActions'],this['_requireRevisionName']);this['revisionViews']['add'](_0x392295);}['removeRevision'](_0x18f8dd){const _0x4b5f73=this['revisionViews']['find'](_0x404d22=>_0x404d22['id']===_0x18f8dd['id']);this['revisionViews']['remove'](_0x4b5f73);}}class as extends _0x423d80{constructor(_0x5c6a44){super(_0x5c6a44);const _0x3ba063=new _0x261fed();_0x3ba063['content']=_0x24e1d6,this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all','ck-revision-history-sidebar__header']},'children':[_0x3ba063,{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__header__label']},'children':[m(_0x5c6a44,'Revision\x20history')]}]});}}class di extends _0x423d80{['timePeriodViews'];['_revisions'];['_revisionActions'];['_requireRevisionName'];constructor(_0x52b8a6,_0x74b05e,_0x23d38b,_0x9f6e59){super(_0x52b8a6);const _0x17aba1=this['bindTemplate'];this['timePeriodViews']=this['createCollection'](),this['timePeriodViews']['delegate']('select')['to'](this),this['timePeriodViews']['delegate']('setName')['to'](this),this['_revisions']=_0x74b05e,this['_revisionActions']=_0x23d38b,this['_requireRevisionName']=_0x9f6e59,this['on']('select',(_0x4f2d2f,_0x5a7cf1)=>{this['fire']('revisionSelected',_0x5a7cf1);}),this['on']('setName',(_0x58908a,_0x1dc9d1)=>{this['fire']('revisionSetName',_0x1dc9d1);}),this['set']('isEnabled',!0x1),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-rounded-corners','ck-revision-history-sidebar']},'children':[new as(_0x52b8a6),{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__timeline',_0x17aba1['if']('isEnabled','ck-disabled',_0x58685a=>!_0x58685a)]},'children':this['timePeriodViews']}]});}['render'](){super['render']();for(const _0x4d2007 of this['_revisions'])this['_addRevision'](_0x4d2007);this['_revisions']['on']('add',(_0x301acc,_0x27f477)=>{this['_addRevision'](_0x27f477);}),this['_revisions']['on']('remove',(_0x5b1c01,_0x3f599c)=>{this['_removeRevision'](_0x3f599c);});}get['revisionViews'](){return this['timePeriodViews']['map'](_0x3e36cb=>_0x3e36cb['revisionViews']['map'](_0x3690aa=>_0x3690aa))['flat']();}['selectRevision'](_0x3d2484){for(const _0x4cabfc of this['revisionViews'])_0x3d2484&&_0x3d2484['id']===_0x4cabfc['id']?_0x4cabfc['select']():_0x4cabfc['deselect']();}['highlightRevisions'](_0x329d54){for(const _0x3270b7 of this['revisionViews'])_0x329d54['some'](({id:_0x22b1b9})=>_0x22b1b9===_0x3270b7['id'])?_0x3270b7['highlight']():_0x3270b7['unhighlight']();}['_addRevision'](_0x2dc074){const _0x27d029=vi(_0x2dc074['createdAt'],this['locale']['uiLanguage'])['startDate'];let _0x36acbf=this['timePeriodViews']['get'](0x0);_0x36acbf&&_0x36acbf['startDate']['getTime']()===_0x27d029['getTime']()||(_0x36acbf=new mi(this['locale'],_0x27d029,this['_revisionActions'],this['_requireRevisionName']),this['timePeriodViews']['add'](_0x36acbf)),_0x36acbf['addRevision'](_0x2dc074);}['_removeRevision'](_0x59d952){const _0x401622=vi(_0x59d952['createdAt'],this['locale']['uiLanguage'])['startDate'];this['_getTimePeriodViewByStartDate'](_0x401622)['removeRevision'](_0x59d952);}['_getTimePeriodViewByStartDate'](_0x929eb){return this['timePeriodViews']['find'](_0x6aa7c8=>_0x6aa7c8['startDate']['getTime']()===_0x929eb['getTime']());}}class g extends _0x41e048{['_revisionViewer'];['_revisionsRepository'];['_sidebarView'];static ['defaultRevisionActions']=/* #__PURE__ -- @preserve */
27
27
  ((()=>['compareAgainstSelected','restoreRevision','nameRevision'])());static ['availableRevisionActions']=/* #__PURE__ -- @preserve */
28
- yt();static get['pluginName'](){return'RevisionsSidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[d];}constructor(_0x592200){super(_0x592200),this['_revisionViewer']=_0x592200['plugins']['get'](d),this['_revisionsRepository']=this['_revisionViewer']['repository'],this['_sidebarView']=null;}['init'](){const _0x14ce35=this['_revisionsRepository']['_revisions'],_0x14a7da=this['_createRevisionActions'](),_0x4413bc=this['editor']['config']['get']('revisionHistory.viewerSidebarContainer');this['_sidebarView']=new ei(this['editor']['locale'],_0x14ce35,_0x14a7da,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',(_0x47fad7,_0x589cbe)=>{_0x589cbe['revisionViews']['on']('add',(_0x5801b3,_0x44b2e3)=>{_0x44b2e3['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)),_0x4413bc['appendChild'](this['_sidebarView']['element']);}['destroy'](){this['_sidebarView']['element']['remove'](),this['_sidebarView']['destroy']();}['_handleEditorDataReady'](){const _0x180c6f=this['_revisionsRepository']['getRevision'](0x0);if(_0x180c6f){const _0x1c770a=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x180c6f['id']);this['_revisionViewer']['compare'](_0x180c6f,_0x1c770a);}}['_handleRevisionSelected'](_0x21d2fd,_0x144fde){const _0x1fa7b7=this['_revisionsRepository']['getRevision'](_0x144fde['id']),_0x33a43f=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x1fa7b7['id']);this['_revisionViewer']['compare'](_0x1fa7b7,_0x33a43f);}['_handleRevisionSetName'](_0x1a9985,_0x3c6393){this['_revisionsRepository']['getRevision'](_0x3c6393['id'])['setName'](_0x3c6393['name']);}['_handleDiffChange'](_0x4b7505,_0x4a130c,_0x577abd){const _0x36adf1=this['_revisionsRepository']['getRevisionsInDiff'](_0x577abd);_0x36adf1['length']>0x2?(this['_sidebarView']['highlightRevisions'](_0x36adf1),this['_sidebarView']['selectRevision'](null)):(this['_sidebarView']['highlightRevisions']([]),this['_sidebarView']['selectRevision'](_0x36adf1[0x0]));}['_createRevisionActions'](){const _0x2a668d=this['editor'],_0xd9ce72=g['availableRevisionActions'],_0x3c7970=_0x2a668d['config']['get']('revisionHistory.revisionActions')||g['defaultRevisionActions'];if(_0x3c7970['length'])return _0x3c7970['map'](_0x415fd1=>{const _0x59e976='string'==typeof _0x415fd1?Object['assign']({},_0xd9ce72[_0x415fd1]):_0x415fd1;return _0x59e976['action']=_0x59e976['action']['bind'](this,_0x2a668d),_0x59e976['isVisible']&&(_0x59e976['isVisible']=_0x59e976['isVisible']['bind'](this,_0x2a668d)),_0x59e976;});}}function yt(){return{'compareAgainstSelected':{'name':'Compare\x20against\x20selected','action':({plugins:_0x43624a},_0x36b42b)=>{const _0x5b912b=_0x43624a['get'](d),_0x22ada5=_0x5b912b['repository'];let _0x2ff9fd=_0x5b912b['diff']['newRevisionId'],_0x178073=_0x36b42b['id'];_0x22ada5['getIndex'](_0x2ff9fd)>_0x22ada5['getIndex'](_0x178073)&&([_0x2ff9fd,_0x178073]=[_0x178073,_0x2ff9fd]),_0x5b912b['compare'](_0x2ff9fd,_0x178073);},'isVisible':({plugins:_0x105c3a},_0x3c51d6)=>{const _0x46a72f=_0x105c3a['get'](d);return!(_0x46a72f['repository']['getRevisionsInDiff'](_0x46a72f['diff'])['length']>0x2)&&!_0x3c51d6['isSelected'];}},'restoreRevision':{'name':'Restore\x20this\x20revision','action':(_0x3d67a2,{id:_0x382701})=>{_0x3d67a2['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x382701);},'isVisible':({plugins:_0x676cb0},_0x1ea1f8)=>!!_0x676cb0['get'](d)['repository']['getLaterVisibleRevision'](_0x1ea1f8['id'])},'nameRevision':{'name':'Name\x20this\x20revision','action':({plugins:_0x4ee838},{id:_0x41a04c,revisionNameView:_0x344fa9})=>{const _0x308d3d=_0x4ee838['get'](d),_0x5d7392=_0x308d3d['repository']['getEarlierVisibleRevision'](_0x41a04c);_0x308d3d['compare'](_0x41a04c,_0x5d7392),_0x344fa9['focus'](),_0x344fa9['fieldView']['select']();}}};}class rt extends st{['_view'];['_toolbarConfig'];['_elementReplacer'];get['view'](){return this['_view'];}constructor(_0x59d3b9,_0x44874d){super(_0x59d3b9),this['_view']=_0x44874d,this['_toolbarConfig']=ot(_0x59d3b9['config']['get']('toolbar')),this['_elementReplacer']=new ht();}get['element'](){return this['view']['element'];}['init'](_0x2a9d7e){const _0x3a9f9e=this['editor'],_0x3f5754=this['view'],_0x25af30=_0x3a9f9e['editing']['view'],_0xcd4112=_0x3f5754['editable'],_0x3671ed=_0x25af30['document']['getRoot']();_0xcd4112['name']=_0x3671ed['rootName'],_0x3f5754['render']();const _0x2746a3=_0xcd4112['element'];this['setEditableElement'](_0xcd4112['name'],_0x2746a3),_0x3f5754['editable']['bind']('isFocused')['to'](this['focusTracker']),_0x25af30['attachDomRoot'](_0x2746a3),this['_elementReplacer']['replace'](_0x2a9d7e,this['element']),this['_initToolbar'](),this['fire']('ready');}['destroy'](){super['destroy']();const _0x598173=this['view'],_0x3f023d=this['editor']['editing']['view'];this['_elementReplacer']['restore'](),_0x3f023d['detachDomRoot'](_0x598173['editable']['name']),_0x598173['destroy']();}['_initToolbar'](){const _0x14d4ce=this['view'];_0x14d4ce['stickyPanel']['bind']('isActive')['to'](this['focusTracker'],'isFocused'),_0x14d4ce['stickyPanel']['limiterElement']=_0x14d4ce['element'],_0x14d4ce['stickyPanel']['bind']('viewportTopOffset')['to'](this,'viewportOffset',({top:_0x4eaee8})=>_0x4eaee8),_0x14d4ce['toolbar']['fillFromConfig'](this['_toolbarConfig'],this['componentFactory']),this['addToolbar'](_0x14d4ce['toolbar']);}}class et extends ct{['_editable'];['stickyPanel'];['toolbar'];get['editable'](){return this['_editable'];}constructor(_0x1da31d,_0x1d01fa,_0x19e6cc={}){super(_0x1da31d),this['stickyPanel']=new lt(_0x1da31d),this['toolbar']=new nt(_0x1da31d,{'shouldGroupWhenFull':_0x19e6cc['shouldToolbarGroupWhenFull']}),this['_editable']=new dt(_0x1da31d,_0x1d01fa);}['render'](){super['render'](),this['stickyPanel']['content']['add'](this['toolbar']),this['top']['add'](this['stickyPanel']),this['main']['add'](this['editable']);}}class R extends/* #__PURE__ -- @preserve */
29
- it(tt){['_ui'];get['ui'](){return this['_ui'];}constructor(_0x4a7209,_0x517694){super(_0x517694),this['sourceElement']=_0x4a7209,this['model']['document']['createRoot']();const _0x2a69e4=new et(this['locale'],this['editing']['view'],{'shouldToolbarGroupWhenFull':!0x0});this['_ui']=new rt(this,_0x2a69e4);}['destroy'](){return this['updateSourceElement'](),this['ui']['destroy'](),super['destroy']();}static async['create'](_0x5183c3,_0x2eb33e){const _0x26f1ef=new this(_0x5183c3,_0x2eb33e);return await _0x26f1ef['initPlugins'](),await _0x26f1ef['ui']['init'](_0x5183c3),await _0x26f1ef['data']['init'](_0x26f1ef['config']['get']('initialData')||''),_0x26f1ef['fire']('ready'),_0x26f1ef;}}const p=['RevisionHistoryUI','RestrictedEditingMode'];class bt extends _0x52f205{['result'];static get['pluginName'](){return'RevisionViewerIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x1f56cd){function _0x1e74ed(_0x30a253){return _0x30a253['map'](_0x29849a=>String['fromCharCode'](_0x29849a))['join']('');}super(_0x1f56cd),this['result']='end',_0x1f56cd[_0x1e74ed([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1e74ed([0x76,0x69,0x65,0x77])][_0x1e74ed([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x1e74ed([0x61,0x75,0x74,0x6f]),_0x1f56cd[_0x1e74ed([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x1e74ed([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x1e74ed([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x1e74ed([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x1e74ed([0x6f,0x6b])});}}class k extends _0x52f205{['_viewerEditor'];static get['pluginName'](){return'RevisionHistory';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[u,f];}constructor(_0x55a839){if(super(_0x55a839),!this['editor']['config']['get']('revisionHistory'))throw new _0x33d8e6('revision-history-missing-configuration',this);this['_viewerEditor']=null,this['editor']['config']['define']('revisionHistory.showRevisionViewerCallback',_0x55810c=>this['_showRevisionViewer']({..._0x55810c,'translations':this['editor']['locale']['translations']})),this['editor']['config']['define']('revisionHistory.closeRevisionViewerCallback',_0x327403=>this['_closeRevisionViewer'](_0x327403)),this['editor']['config']['define']('revisionHistory.restoreRevisionCallback',_0x3d2cc3=>this['_restoreRevision'](_0x3d2cc3)),this['editor']['config']['define']('revisionHistory.requireRevisionName',!0x1),this['_enhanceShowRevisionViewerCallback'](),this['_enhanceCloseRevisionViewerCallback']();}set['adapter'](_0x35174a){this['editor']['plugins']['get']('RevisionTracker')['adapter']=_0x35174a;}get['adapter'](){return this['editor']['plugins']['get']('RevisionTracker')['adapter'];}['addRevisionData'](_0x46e136){return this['editor']['plugins']['get']('RevisionTracker')['addRevisionData'](_0x46e136);}['getRevision'](_0xd77c97){return this['editor']['plugins']['get']('RevisionsRepository')['getRevision'](_0xd77c97);}['getRevisions'](_0x21f4b3){return this['editor']['plugins']['get']('RevisionsRepository')['getRevisions'](_0x21f4b3||{'toJSON':!0x1});}['_getRevisionViewerEditorConfig'](){const _0x5faa3a=this['editor'],_0x31f670=_0x29656a(_0x5faa3a,p),_0x33f5d2=_0x5faa3a['plugins']['get']('RevisionTracker'),_0x270e5b=_0x5faa3a['plugins']['get']('Users')['users'];return _0x31f670['toolbar']=['exitToEditing','restoreRevision','changesNavigation'],delete _0x31f670['lazyRoots'],(_0x31f670['plugins']['push'](bt,d,w,class extends _0x52f205{static get['requires'](){return[d,'Users'];}['init'](){const _0xb21ce5=this['editor']['plugins']['get']('Users');for(const _0x45d2c3 of _0x270e5b)_0x45d2c3['isAnonymous']||_0xb21ce5['getUser'](_0x45d2c3['id'])||_0xb21ce5['addUser'](_0x45d2c3);const _0x2ffe48=_0x33f5d2['repository']['getRevisions']();let _0x4a45cd=null;const _0x54484f=this['editor']['plugins']['get']('RevisionViewer');_0x54484f['adapter']=_0x33f5d2['adapter'],_0x54484f['bind']('isEnabled')['to'](_0x33f5d2),this['editor']['commands']['get']('restoreRevision')['bind']('isEnabled')['to'](_0x5faa3a,'isReadOnly',_0x16b962=>!_0x16b962);for(const _0x114d0b of _0x2ffe48){const _0x1f0a60=null===_0x114d0b['creator'];if(_0x1f0a60&&_0x114d0b['toVersion']===_0x114d0b['fromVersion'])continue;const _0x3ac0e8=_0x114d0b['toJSON']();_0x54484f['addRevisionData'](_0x3ac0e8,(_0x466fe6,_0x3c3191,_0x6383df)=>{if(_0x1f0a60){if(_0x4a45cd)_0x4a45cd['_update'](_0x466fe6,_0x3c3191);else{if(!_0x3c3191){const _0x5e45be=_0x6383df['toJSON']();_0x5e45be['id']=_0x5c4a35(),_0x33f5d2['saveRevision'](_0x5e45be,_0x6383df['toVersion'])['then'](_0x1d06b3=>{_0x4a45cd=_0x1d06b3;});}}}else _0x114d0b['_update'](_0x466fe6,_0x3c3191);});}}},g),_0x31f670);}['_enhanceShowRevisionViewerCallback'](){const _0x4679da=this['editor']['config']['get']('revisionHistory')['showRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.showRevisionViewerCallback',async()=>{this['editor']['enableReadOnlyMode']('revision-history-viewer-opened');const _0x21d682=this['editor']['plugins']['get']('RevisionTracker');if(this['editor']['plugins']['has']('Autosave')){const _0x3d6522=this['editor']['plugins']['get']('Autosave');await _0x3d6522['save']();}else await _0x21d682['update']();if(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('Dialog')){const _0x278378=this['editor']['plugins']['get']('Dialog');_0x278378['isOpen']&&_0x278378['hide']();}const _0x347c1f=this['_getRevisionViewerEditorConfig']();return _0x4679da(_0x347c1f)['then'](_0x317870=>{return(this['_viewerEditor']=_0x317870,this['editor']['plugins']['has']('Annotations'))&&this['editor']['plugins']['get']('Annotations')['refreshVisibility'](),_0x317870;})['catch'](_0x4d926a=>(console['error'](_0x4d926a),this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),null));});}['_enhanceCloseRevisionViewerCallback'](){const _0x1777f6=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'](),_0x1777f6(this['_viewerEditor'])['then'](()=>{if(this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),this['_viewerEditor']=null,this['editor']['plugins']['has']('Annotations')){const _0x34ae7f=this['editor']['plugins']['get']('Annotations');_0x34ae7f['refreshVisibility'](),_0x34ae7f['refreshPositioning']();}})));}['_showRevisionViewer'](_0x4f0f16){const _0x44760e=this['editor']['config']['get']('revisionHistory.editorContainer'),_0x31842a=this['editor']['config']['get']('revisionHistory.viewerContainer'),_0xccc23e=this['editor']['config']['get']('revisionHistory.viewerEditorElement');return R['create'](_0xccc23e,_0x4f0f16)['then'](_0x317687=>(_0x31842a['style']['display']='block',_0x44760e['style']['display']='none',_0x317687));}['_closeRevisionViewer'](_0x43aebe){const _0x9fc7c2=this['editor']['config']['get']('revisionHistory.editorContainer');return this['editor']['config']['get']('revisionHistory.viewerContainer')['style']['display']='none',_0x9fc7c2['style']['display']='',_0x43aebe['destroy']();}async['_restoreRevision'](_0x26c9e3){const _0x5a28f8=this['editor'],_0x45a00b=this['_viewerEditor']['plugins']['get']('RevisionViewer'),_0x5b7730=_0x5a28f8['plugins']['get']('RevisionTracker'),_0x15b303=_0x45a00b['repository']['getRevision'](_0x26c9e3);let _0xcb3c52,_0x2e1ec0,_0x40afe3;try{_0xcb3c52=await _0x45a00b['getRevisionData'](_0x15b303),_0x2e1ec0=await _0x45a00b['getRevisionRootsAttributes'](_0x15b303);}catch(_0x401979){return void console['error'](_0x401979);}_0x5a28f8['model']['change'](_0x354cce=>{for(const _0x338a1c of Array['from'](_0x5a28f8['model']['markers']['getMarkersGroup']('restrictedEditingException')))_0x354cce['removeMarker'](_0x338a1c);}),_0x45a00b['isReady']=!0x1,_0x5a28f8['model']['enqueueChange'](_0x561da4=>{_0x561da4['setSelection'](null),_0x561da4['removeSelectionAttribute'](_0x5a28f8['model']['document']['selection']['getAttributeKeys']());const _0x317fd4=Object['keys'](_0xcb3c52);for(const _0x40ff39 of _0x5a28f8['model']['document']['roots'])'$graveyard'!=_0x40ff39['rootName']&&_0x40ff39['isAttached']()&&!_0x317fd4['includes'](_0x40ff39['rootName'])&&_0x561da4['detachRoot'](_0x40ff39);for(const _0x476868 of _0x317fd4){let _0x137c56=_0x5a28f8['model']['document']['getRoot'](_0x476868);_0x137c56&&_0x137c56['isAttached']()||(_0x137c56=_0x561da4['addRoot'](_0x476868));const _0x2b8c63=_0x2e1ec0[_0x476868],_0x3900ce=Object['keys'](_0x2b8c63),_0x2c02df=_0xcb3c52[_0x476868];for(const _0x5e0dbf of _0x137c56['getAttributeKeys']())_0x3900ce['includes'](_0x5e0dbf)||_0x561da4['removeAttribute'](_0x5e0dbf,_0x137c56);for(const _0x13532f of _0x3900ce)_0x561da4['setAttribute'](_0x13532f,_0x2e1ec0[_0x476868][_0x13532f],_0x137c56);_0x561da4['remove'](_0x561da4['createRangeIn'](_0x137c56)),_0x561da4['insert'](_0x5a28f8['data']['parse'](_0x2c02df,_0x137c56),_0x137c56,0x0);}});const _0x11060b=m(_0x5a28f8['locale'],'Restored');if(_0x15b303['name'])_0x40afe3=-0x1==_0x15b303['name']['indexOf'](_0x11060b)?_0x11060b+':\x20'+_0x15b303['name']:_0x15b303['name'];else _0x40afe3=_0x11060b+':\x20'+(_0x15b303['createdAt']['toLocaleDateString'](_0x5a28f8['locale']['uiLanguage'],{'month':'long','day':'numeric'})+',\x20'+_0x15b303['createdAt']['toLocaleTimeString'](_0x5a28f8['locale']['uiLanguage'],{'hour':'numeric','minute':'numeric'}));return await _0x5b7730['saveRevision']({'name':_0x40afe3}),_0x45a00b['isReady']=!0x0,_0x5a28f8['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}}export{h as Revision,k as RevisionHistory,f as RevisionHistoryUI,u as RevisionTracker,d as RevisionViewer,de as RevisionViewerLoadingOverlay,w as RevisionViewerUI,j as RevisionsRepository,g as RevisionsSidebar};
28
+ bt();static get['pluginName'](){return'RevisionsSidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[d];}constructor(_0x18df7d){super(_0x18df7d),this['_revisionViewer']=_0x18df7d['plugins']['get'](d),this['_revisionsRepository']=this['_revisionViewer']['repository'],this['_sidebarView']=null;}['init'](){const _0x109311=this['_revisionsRepository']['_revisions'],_0x47b4cd=this['_createRevisionActions'](),_0x4cdcb7=this['editor']['config']['get']('revisionHistory.viewerSidebarContainer');this['_sidebarView']=new di(this['editor']['locale'],_0x109311,_0x47b4cd,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',(_0x3bf4d9,_0x7df416)=>{_0x7df416['revisionViews']['on']('add',(_0x3e959a,_0x4ad2bb)=>{_0x4ad2bb['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)),_0x4cdcb7['appendChild'](this['_sidebarView']['element']);}['destroy'](){this['_sidebarView']['element']['remove'](),this['_sidebarView']['destroy']();}['_handleEditorDataReady'](){const _0x3a664f=this['_revisionsRepository']['getRevision'](0x0);if(_0x3a664f){const _0x3368a4=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x3a664f['id']);this['_revisionViewer']['compare'](_0x3a664f,_0x3368a4);}}['_handleRevisionSelected'](_0x2d9a1c,_0x5922ba){const _0xa67545=this['_revisionsRepository']['getRevision'](_0x5922ba['id']),_0x432091=this['_revisionsRepository']['getEarlierVisibleRevision'](_0xa67545['id']);this['_revisionViewer']['compare'](_0xa67545,_0x432091);}['_handleRevisionSetName'](_0x3d5422,_0xabcac3){this['_revisionsRepository']['getRevision'](_0xabcac3['id'])['setName'](_0xabcac3['name']);}['_handleDiffChange'](_0x27351e,_0x20a4d6,_0x2039ac){const _0x2a0e27=this['_revisionsRepository']['getRevisionsInDiff'](_0x2039ac);_0x2a0e27['length']>0x2?(this['_sidebarView']['highlightRevisions'](_0x2a0e27),this['_sidebarView']['selectRevision'](null)):(this['_sidebarView']['highlightRevisions']([]),this['_sidebarView']['selectRevision'](_0x2a0e27[0x0]));}['_createRevisionActions'](){const _0x4fc56f=this['editor'],_0x21a2d4=g['availableRevisionActions'],_0xb99161=_0x4fc56f['config']['get']('revisionHistory.revisionActions')||g['defaultRevisionActions'];if(_0xb99161['length'])return _0xb99161['map'](_0x205cc0=>{const _0x1f5704='string'==typeof _0x205cc0?Object['assign']({},_0x21a2d4[_0x205cc0]):_0x205cc0;return _0x1f5704['action']=_0x1f5704['action']['bind'](this,_0x4fc56f),_0x1f5704['isVisible']&&(_0x1f5704['isVisible']=_0x1f5704['isVisible']['bind'](this,_0x4fc56f)),_0x1f5704;});}}function bt(){return{'compareAgainstSelected':{'name':'Compare\x20against\x20selected','action':({plugins:_0xcd550},_0x1ea0d4)=>{const _0x4ec534=_0xcd550['get'](d),_0x2ddc0b=_0x4ec534['repository'];let _0x1a646b=_0x4ec534['diff']['newRevisionId'],_0x54fd3e=_0x1ea0d4['id'];_0x2ddc0b['getIndex'](_0x1a646b)>_0x2ddc0b['getIndex'](_0x54fd3e)&&([_0x1a646b,_0x54fd3e]=[_0x54fd3e,_0x1a646b]),_0x4ec534['compare'](_0x1a646b,_0x54fd3e);},'isVisible':({plugins:_0x4f8121},_0xe5b749)=>{const _0x411c0d=_0x4f8121['get'](d);return!(_0x411c0d['repository']['getRevisionsInDiff'](_0x411c0d['diff'])['length']>0x2)&&!_0xe5b749['isSelected'];}},'restoreRevision':{'name':'Restore\x20this\x20revision','action':(_0x12cb33,{id:_0x8857a8})=>{_0x12cb33['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x8857a8);},'isVisible':({plugins:_0x2338af},_0x40e0e0)=>!!_0x2338af['get'](d)['repository']['getLaterVisibleRevision'](_0x40e0e0['id'])},'nameRevision':{'name':'Name\x20this\x20revision','action':({plugins:_0x579814},{id:_0x459192,revisionNameView:_0x2919db})=>{const _0xf166a5=_0x579814['get'](d),_0x2ea806=_0xf166a5['repository']['getEarlierVisibleRevision'](_0x459192);_0xf166a5['compare'](_0x459192,_0x2ea806),_0x2919db['focus'](),_0x2919db['fieldView']['select']();}}};}class rt extends st{['_view'];['_toolbarConfig'];['_elementReplacer'];get['view'](){return this['_view'];}constructor(_0x5adcdb,_0xf5abad){super(_0x5adcdb),this['_view']=_0xf5abad,this['_toolbarConfig']=ot(_0x5adcdb['config']['get']('toolbar')),this['_elementReplacer']=new ht();}get['element'](){return this['view']['element'];}['init'](_0x459cfd){const _0x3db711=this['editor'],_0x54c4d2=this['view'],_0xbc6742=_0x3db711['editing']['view'],_0x265da0=_0x54c4d2['editable'],_0x27bcd8=_0xbc6742['document']['getRoot']();_0x265da0['name']=_0x27bcd8['rootName'],_0x54c4d2['render']();const _0x142fe6=_0x265da0['element'];this['setEditableElement'](_0x265da0['name'],_0x142fe6),_0x54c4d2['editable']['bind']('isFocused')['to'](this['focusTracker']),_0xbc6742['attachDomRoot'](_0x142fe6),this['_elementReplacer']['replace'](_0x459cfd,this['element']),this['_initToolbar'](),this['fire']('ready');}['destroy'](){super['destroy']();const _0x4f6346=this['view'],_0x1128ce=this['editor']['editing']['view'];this['_elementReplacer']['restore'](),_0x1128ce['detachDomRoot'](_0x4f6346['editable']['name']),_0x4f6346['destroy']();}['_initToolbar'](){const _0x59f7ab=this['view'];_0x59f7ab['stickyPanel']['bind']('isActive')['to'](this['focusTracker'],'isFocused'),_0x59f7ab['stickyPanel']['limiterElement']=_0x59f7ab['element'],_0x59f7ab['stickyPanel']['bind']('viewportTopOffset')['to'](this,'viewportOffset',({top:_0x4b3d52})=>_0x4b3d52),_0x59f7ab['toolbar']['fillFromConfig'](this['_toolbarConfig'],this['componentFactory']),this['addToolbar'](_0x59f7ab['toolbar']);}}class et extends ct{['_editable'];['stickyPanel'];['toolbar'];get['editable'](){return this['_editable'];}constructor(_0x752bd9,_0x21abac,_0x282a34={}){super(_0x752bd9),this['stickyPanel']=new lt(_0x752bd9),this['toolbar']=new nt(_0x752bd9,{'shouldGroupWhenFull':_0x282a34['shouldToolbarGroupWhenFull']}),this['_editable']=new dt(_0x752bd9,_0x21abac);}['render'](){super['render'](),this['stickyPanel']['content']['add'](this['toolbar']),this['top']['add'](this['stickyPanel']),this['main']['add'](this['editable']);}}class R extends/* #__PURE__ -- @preserve */
29
+ it(tt){['_ui'];get['ui'](){return this['_ui'];}constructor(_0x14842b,_0x5ce50c){super(_0x5ce50c),this['sourceElement']=_0x14842b,this['model']['document']['createRoot']();const _0x12082c=new et(this['locale'],this['editing']['view'],{'shouldToolbarGroupWhenFull':!0x0});this['_ui']=new rt(this,_0x12082c);}['destroy'](){return this['updateSourceElement'](),this['ui']['destroy'](),super['destroy']();}static async['create'](_0xbcdfaa,_0x270194){const _0x4adac9=new this(_0xbcdfaa,_0x270194);return await _0x4adac9['initPlugins'](),await _0x4adac9['ui']['init'](_0xbcdfaa),await _0x4adac9['data']['init'](_0x4adac9['config']['get']('initialData')||''),_0x4adac9['fire']('ready'),_0x4adac9;}}const p=['RevisionHistoryUI','RestrictedEditingMode'];class Rt extends _0x41e048{['result'];static get['pluginName'](){return'RevisionViewerIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x19755b){function _0x424a99(_0x56c573){return _0x56c573['map'](_0x5151d8=>String['fromCharCode'](_0x5151d8))['join']('');}super(_0x19755b),this['result']='end',_0x19755b[_0x424a99([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x424a99([0x76,0x69,0x65,0x77])][_0x424a99([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x424a99([0x61,0x75,0x74,0x6f]),_0x19755b[_0x424a99([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x424a99([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x424a99([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x424a99([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x424a99([0x6f,0x6b])});}}class k extends _0x41e048{['_viewerEditor'];static get['pluginName'](){return'RevisionHistory';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[u,f];}constructor(_0x214376){if(super(_0x214376),!this['editor']['config']['get']('revisionHistory'))throw new _0x11f306('revision-history-missing-configuration',this);this['_viewerEditor']=null,this['editor']['config']['define']('revisionHistory.showRevisionViewerCallback',_0x1bc933=>this['_showRevisionViewer']({..._0x1bc933,'translations':this['editor']['locale']['translations']})),this['editor']['config']['define']('revisionHistory.closeRevisionViewerCallback',_0x273996=>this['_closeRevisionViewer'](_0x273996)),this['editor']['config']['define']('revisionHistory.restoreRevisionCallback',_0x3a9ff6=>this['_restoreRevision'](_0x3a9ff6)),this['editor']['config']['define']('revisionHistory.requireRevisionName',!0x1),this['_enhanceShowRevisionViewerCallback'](),this['_enhanceCloseRevisionViewerCallback']();}set['adapter'](_0x11d286){this['editor']['plugins']['get']('RevisionTracker')['adapter']=_0x11d286;}get['adapter'](){return this['editor']['plugins']['get']('RevisionTracker')['adapter'];}['addRevisionData'](_0x2b2fa1){return this['editor']['plugins']['get']('RevisionTracker')['addRevisionData'](_0x2b2fa1);}['getRevision'](_0x2d898f){return this['editor']['plugins']['get']('RevisionsRepository')['getRevision'](_0x2d898f);}['getRevisions'](_0x2f2312){return this['editor']['plugins']['get']('RevisionsRepository')['getRevisions'](_0x2f2312||{'toJSON':!0x1});}['_getRevisionViewerEditorConfig'](){const _0x3d5cbc=this['editor'],_0x44ccea=_0x52e263(_0x3d5cbc,p),_0x335ab3=_0x3d5cbc['plugins']['get']('RevisionTracker'),_0x3775ec=_0x3d5cbc['plugins']['get']('Users')['users'];return _0x44ccea['toolbar']=['exitToEditing','restoreRevision','changesNavigation'],delete _0x44ccea['lazyRoots'],(_0x44ccea['plugins']['push'](Rt,d,w,class extends _0x41e048{static get['requires'](){return[d,'Users'];}['init'](){const _0x37df92=this['editor']['plugins']['get']('Users');for(const _0x371344 of _0x3775ec)_0x371344['isAnonymous']||_0x37df92['getUser'](_0x371344['id'])||_0x37df92['addUser'](_0x371344);const _0x10b6ee=_0x335ab3['repository']['getRevisions']();let _0x174fd7=null;const _0x49a69f=this['editor']['plugins']['get']('RevisionViewer');_0x49a69f['adapter']=_0x335ab3['adapter'],_0x49a69f['bind']('isEnabled')['to'](_0x335ab3),this['editor']['commands']['get']('restoreRevision')['bind']('isEnabled')['to'](_0x3d5cbc,'isReadOnly',_0x129f54=>!_0x129f54);for(const _0xd3e77d of _0x10b6ee){const _0x207bf4=null===_0xd3e77d['creator'];if(_0x207bf4&&_0xd3e77d['toVersion']===_0xd3e77d['fromVersion'])continue;const _0x2718d9=_0xd3e77d['toJSON']();_0x49a69f['addRevisionData'](_0x2718d9,(_0x379da4,_0x39a97e,_0x507250)=>{if(_0x207bf4){if(_0x174fd7)_0x174fd7['_update'](_0x379da4,_0x39a97e);else{if(!_0x39a97e){const _0x2c54ef=_0x507250['toJSON']();_0x2c54ef['id']=_0x663c6b(),_0x335ab3['saveRevision'](_0x2c54ef,_0x507250['toVersion'])['then'](_0x33b8f8=>{_0x174fd7=_0x33b8f8;});}}}else _0xd3e77d['_update'](_0x379da4,_0x39a97e);});}}},g),_0x44ccea);}['_enhanceShowRevisionViewerCallback'](){const _0x21f833=this['editor']['config']['get']('revisionHistory')['showRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.showRevisionViewerCallback',async()=>{this['editor']['enableReadOnlyMode']('revision-history-viewer-opened');const _0x3c8c64=this['editor']['plugins']['get']('RevisionTracker');if(this['editor']['plugins']['has']('Autosave')){const _0x36331a=this['editor']['plugins']['get']('Autosave');await _0x36331a['save']();}else await _0x3c8c64['update']();if(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('Dialog')){const _0xc0e43=this['editor']['plugins']['get']('Dialog');_0xc0e43['isOpen']&&_0xc0e43['hide']();}const _0x2ce7b1=this['_getRevisionViewerEditorConfig']();return _0x21f833(_0x2ce7b1)['then'](_0x377c11=>{return(this['_viewerEditor']=_0x377c11,this['editor']['plugins']['has']('Annotations'))&&this['editor']['plugins']['get']('Annotations')['refreshVisibility'](),_0x377c11;})['catch'](_0x77adf=>(console['error'](_0x77adf),this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),null));});}['_enhanceCloseRevisionViewerCallback'](){const _0x55cbc6=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'](),_0x55cbc6(this['_viewerEditor'])['then'](()=>{if(this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),this['_viewerEditor']=null,this['editor']['plugins']['has']('Annotations')){const _0x5d9b0b=this['editor']['plugins']['get']('Annotations');_0x5d9b0b['refreshVisibility'](),_0x5d9b0b['refreshPositioning']();}})));}['_showRevisionViewer'](_0xc5e0e){const _0x2a8794=this['editor']['config']['get']('revisionHistory.editorContainer'),_0x374fbc=this['editor']['config']['get']('revisionHistory.viewerContainer'),_0x37c40c=this['editor']['config']['get']('revisionHistory.viewerEditorElement');return R['create'](_0x37c40c,_0xc5e0e)['then'](_0x109e22=>(_0x374fbc['style']['display']='block',_0x2a8794['style']['display']='none',_0x109e22));}['_closeRevisionViewer'](_0x5c307b){const _0x4c441d=this['editor']['config']['get']('revisionHistory.editorContainer');return this['editor']['config']['get']('revisionHistory.viewerContainer')['style']['display']='none',_0x4c441d['style']['display']='',_0x5c307b['destroy']();}async['_restoreRevision'](_0x580bcd){const _0x55eb69=this['editor'],_0x18f954=this['_viewerEditor']['plugins']['get']('RevisionViewer'),_0x1f7cf8=_0x55eb69['plugins']['get']('RevisionTracker'),_0x22e30b=_0x18f954['repository']['getRevision'](_0x580bcd);let _0x587621,_0x3de206,_0x3f19ec;try{_0x587621=await _0x18f954['getRevisionData'](_0x22e30b),_0x3de206=await _0x18f954['getRevisionRootsAttributes'](_0x22e30b);}catch(_0x489eb4){return void console['error'](_0x489eb4);}_0x55eb69['model']['change'](_0x5d1c96=>{for(const _0x33e089 of Array['from'](_0x55eb69['model']['markers']['getMarkersGroup']('restrictedEditingException')))_0x5d1c96['removeMarker'](_0x33e089);}),_0x18f954['isReady']=!0x1,_0x55eb69['model']['enqueueChange'](_0x12be92=>{_0x12be92['setSelection'](null),_0x12be92['removeSelectionAttribute'](_0x55eb69['model']['document']['selection']['getAttributeKeys']());const _0x3dc51d=Object['keys'](_0x587621);for(const _0x2e6f41 of _0x55eb69['model']['document']['roots'])'$graveyard'!=_0x2e6f41['rootName']&&_0x2e6f41['isAttached']()&&!_0x3dc51d['includes'](_0x2e6f41['rootName'])&&_0x12be92['detachRoot'](_0x2e6f41);for(const _0x322faf of _0x3dc51d){let _0x4c52b4=_0x55eb69['model']['document']['getRoot'](_0x322faf);_0x4c52b4&&_0x4c52b4['isAttached']()||(_0x4c52b4=_0x12be92['addRoot'](_0x322faf));const _0x448505=_0x3de206[_0x322faf],_0x347adb=Object['keys'](_0x448505),_0x3300ef=_0x587621[_0x322faf];for(const _0x1b1eaa of _0x4c52b4['getAttributeKeys']())_0x347adb['includes'](_0x1b1eaa)||_0x12be92['removeAttribute'](_0x1b1eaa,_0x4c52b4);for(const _0x13e4f3 of _0x347adb)_0x12be92['setAttribute'](_0x13e4f3,_0x3de206[_0x322faf][_0x13e4f3],_0x4c52b4);_0x12be92['remove'](_0x12be92['createRangeIn'](_0x4c52b4)),_0x12be92['insert'](_0x55eb69['data']['parse'](_0x3300ef,_0x4c52b4),_0x4c52b4,0x0);}});const _0x9fccb0=m(_0x55eb69['locale'],'Restored');if(_0x22e30b['name'])_0x3f19ec=-0x1==_0x22e30b['name']['indexOf'](_0x9fccb0)?_0x9fccb0+':\x20'+_0x22e30b['name']:_0x22e30b['name'];else _0x3f19ec=_0x9fccb0+':\x20'+(_0x22e30b['createdAt']['toLocaleDateString'](_0x55eb69['locale']['uiLanguage'],{'month':'long','day':'numeric'})+',\x20'+_0x22e30b['createdAt']['toLocaleTimeString'](_0x55eb69['locale']['uiLanguage'],{'hour':'numeric','minute':'numeric'}));return await _0x1f7cf8['saveRevision']({'name':_0x3f19ec}),_0x18f954['isReady']=!0x0,_0x55eb69['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}}export{h as Revision,k as RevisionHistory,f as RevisionHistoryUI,u as RevisionTracker,d as RevisionViewer,le as RevisionViewerLoadingOverlay,w as RevisionViewerUI,j as RevisionsRepository,g as RevisionsSidebar};