@ckeditor/ckeditor5-uploadcare 0.0.0-nightly-20250416.0 → 0.0.0-nightly-20250418.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,6 +20,6 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{Plugin as _0x1caa67,Command as _0x3fe2f6}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x4601c7,IconGooglePhotos as _0xdb891f,IconGoogleDrive as _0x869f54,IconFacebook as _0x1a7d13,IconDropbox as _0x51c970,IconUploadcareLink as _0x2736fa,IconUploadcareImageUpload as _0x5b4cb3,IconError as et,IconUploadcareImageEdit as _0x556d87}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x442e83,MenuBarMenuListItemButtonView as _0x13866f,View as _0x4f37ad,FocusCycler as _0x1703dc,Dialog as _0x4fbd5f,DialogViewPosition as _0x25f52,SpinnerView as _0x54cf49,IconView as at,Notification as _0x34c38c}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x40fabf,DomEmitterMixin as _0x2557d4,global as _0x928dd7,getAncestors as _0x4e923d,ObservableMixin as _0x131431,createElement as _0x185835,uid as _0x43d811}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x1be048}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x3116ee,info as _0x3ea42e}from'@uploadcare/upload-client';import*as _0x21c8a4 from'@uploadcare/file-uploader';var o=function(_0xc5fee){return _0xc5fee['Local']='local',_0xc5fee['URL']='url',_0xc5fee['Dropbox']='dropbox',_0xc5fee['GDrive']='gdrive',_0xc5fee['Facebook']='facebook',_0xc5fee['GPhotos']='gphotos',_0xc5fee['OneDrive']='onedrive',_0xc5fee;}({});function _(_0x80a19a,_0x472ffc,_0x15fbff){const t=_0x80a19a['t'],_0xe2a00e=_0x80a19a['t'];switch(_0x472ffc){case o['Local']:return{'text':_0xe2a00e('Insert'===_0x15fbff?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0xe2a00e('From\x20computer')};case o['URL']:return{'text':'Insert'===_0x15fbff?_0xe2a00e('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0xe2a00e('Via\x20URL')};case o['Dropbox']:return{'text':t('Insert'===_0x15fbff?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case o['Facebook']:return{'text':t('Insert'===_0x15fbff?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case o['GDrive']:return{'text':t('Insert'===_0x15fbff?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case o['GPhotos']:return{'text':t('Insert'===_0x15fbff?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case o['OneDrive']:return{'text':t('Insert'===_0x15fbff?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x472ffc;}}class e extends _0x1caa67{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'UploadcareUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x538a44=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x237d78;for(const _0xbd2010 in _0x538a44){const _0x8313c0=_0xbd2010,_0x1ebffd=_0x538a44[_0x8313c0];if('uploadcareLicenseKeyValid'==_0x1ebffd||'uploadcareLicenseKeyInvalid'==_0x1ebffd||'uploadcareLicenseKeyExpired'==_0x1ebffd||'uploadcareLicenseKeyDomainLimit'==_0x1ebffd||'uploadcareLicenseKeyNotAllowed'==_0x1ebffd||'uploadcareLicenseKeyEvaluationLimit'==_0x1ebffd||'uploadcareLicenseKeyTrialLimit'==_0x1ebffd||'uploadcareLicenseKeyUsageLimit'==_0x1ebffd){delete _0x538a44[_0x8313c0],_0x237d78=_0x1ebffd,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x237d78&&_0x538a44['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x237d78&&_0x538a44['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x237d78&&_0x538a44['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x237d78&&_0x538a44['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x237d78&&_0x538a44['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyTrialLimit'==_0x237d78&&_0x538a44['_showLicenseError']('trialLimit'),'uploadcareLicenseKeyUsageLimit'==_0x237d78&&_0x538a44['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x16c6e4}=this,_0x35db13=_0x16c6e4['commands']['get']('uploadcare');if(!_0x35db13)return;const _0x3e0e27=this['_normalizeConfigSourceList'](_0x16c6e4['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x6a12d8,_0x1046c5)=>{const _0x2d4fa9=this['_getIntegrationKey'](_0x1046c5['type']);return _0x6a12d8[_0x2d4fa9]||(_0x6a12d8[_0x2d4fa9]=[]),_0x6a12d8[_0x2d4fa9]['push'](_0x1046c5),_0x6a12d8;},{});_0x16c6e4['plugins']['has']('ImageInsertUI')&&_0x16c6e4['commands']['get']('uploadcare')&&Object['entries'](_0x3e0e27)['forEach'](([_0xf60a06,_0x2588c3])=>{_0x16c6e4['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0xf60a06,'observable':()=>_0x35db13,'buttonViewCreator':()=>this['_createToolbarButton'](_0x2588c3),'formViewCreator':()=>this['_createDropdownButtons'](_0x2588c3),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x2588c3),'override':'assetManager'!==_0xf60a06});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x53ebf8){const {locale:_0xf92cc0}=this['editor'];return _0x53ebf8['map'](_0x33d3af=>{const _0x337005=_(_0xf92cc0,_0x33d3af,'Insert');switch(_0x33d3af){case o['Local']:return{'icon':_0x5b4cb3,'type':o['Local'],..._0x337005};case o['URL']:return{'icon':_0x2736fa,'type':o['URL'],..._0x337005};case o['Dropbox']:return{'icon':_0x51c970,'type':o['Dropbox'],..._0x337005};case o['Facebook']:return{'icon':_0x1a7d13,'type':o['Facebook'],..._0x337005};case o['GDrive']:return{'icon':_0x869f54,'type':o['GDrive'],..._0x337005};case o['GPhotos']:return{'icon':_0xdb891f,'type':o['GPhotos'],..._0x337005};case o['OneDrive']:return{'icon':_0x4601c7,'type':o['OneDrive'],..._0x337005};}});}['_getIntegrationKey'](_0x298493){switch(_0x298493){case o['Local']:return'upload';case o['URL']:return'url';default:return'assetManager';}}['_createButton'](_0xf92477,_0x596adc){const _0x14c25c=this['editor'],_0x47b67d=new _0xf92477(_0x14c25c['locale']),_0x366ed7=_0x14c25c['commands']['get']('uploadcare');return _0x47b67d['bind']('isEnabled')['to'](_0x366ed7),_0x47b67d['on']('execute',()=>{_0x366ed7['execute'](_0x596adc);}),_0x47b67d;}['_createToolbarButton'](_0x1afc6e){const {locale:_0x10e71e}=this['editor'],_0x51f82c=this['editor']['plugins']['get']('ImageInsertUI'),_0xb44994=_0x1afc6e[0x0],_0x4ce60c=this['_createButton'](_0x442e83,_0xb44994['type']);return _0x4ce60c['icon']=_0xb44994['icon'],_0x4ce60c['bind']('label')['to'](_0x51f82c,'isImageSelected',_0x1a0011=>_(_0x10e71e,_0xb44994['type'],_0x1a0011?'Replace':'Insert')['text']),_0x4ce60c['tooltip']=!0x0,_0x4ce60c;}['_createDropdownButtons'](_0x426764){const {locale:_0x36323d}=this['editor'],_0x236c65=this['editor']['plugins']['get']('ImageInsertUI');return _0x426764['map'](_0xb7caa7=>{const _0x59680b=this['_createButton'](_0x442e83,_0xb7caa7['type']);return _0x59680b['withText']=!0x0,_0x59680b['icon']=_0xb7caa7['icon'],_0x59680b['bind']('label')['to'](_0x236c65,'isImageSelected',_0x51b47f=>_(_0x36323d,_0xb7caa7['type'],_0x51b47f?'Replace':'Insert')['text']),_0x59680b;});}['_createMenuBarButtons'](_0x2f6675){return _0x2f6675['map'](_0x487fc8=>{const _0x46b72d=this['_createButton'](_0x13866f,_0x487fc8['type']);return _0x46b72d['icon']=_0x487fc8['icon'],_0x46b72d['label']=_0x487fc8['shortText'],_0x46b72d;});}}class q extends _0x4f37ad{['focusTracker'];['focusCycler'];constructor(_0x2543cd){super(_0x2543cd),this['focusTracker']=new _0x40fabf(),this['focusCycler']=new _0x1703dc({'focusables':this['createCollection'](),'focusTracker':this['focusTracker']});}['getFocusableElement'](){return{'tag':'div','attributes':{'aria-hidden':'true','tabindex':'0'},'on':{'focus':this['bindTemplate']['to'](()=>{this['focusCycler']['fire']('forwardCycle');})}};}}class S extends q{constructor(_0x526712){super(_0x526712),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all-excluded','ck-uploadcare-form'],'tabindex':'-1'},'children':[{'tag':'uc-file-uploader-inline','attributes':{'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'uploader'}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}}function E(_0x5a4e29,_0x2a70d1){const _0x45d1d9=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x4d4411=>_0x4d4411<=_0x2a70d1)['map'](_0x225492=>_0x5a4e29['replace'](/\/$/,'')+'/-/resize/'+_0x225492+'x/\x20'+_0x225492+'w');return{'imageFallbackUrl':_0x5a4e29,'imageSources':[{'srcset':_0x45d1d9['join'](',\x20'),'sizes':'(max-width:\x20'+_0x2a70d1+'px)\x20100vw,\x20'+_0x2a70d1+'px','type':'image/webp'}]};}function A(_0x2304b1,_0x5efd4b,_0x3e52d7){const _0x29f9b7=_0x2304b1['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x29f9b7?parseInt(_0x29f9b7[0x1],0xa):_0x5efd4b,'height':_0x29f9b7?parseInt(_0x29f9b7[0x2],0xa):_0x3e52d7};}function m(_0x2d4ee2,_0x48775c){const _0x18ce3a=Object['create'](_0x2557d4),_0x28726b=_0x2d4ee2['plugins']['get']('ImageUtils'),_0x1818d2=_0x2d4ee2['editing']['mapper']['toViewElement'](_0x48775c),_0x1b4904=_0x28726b['findViewImgElement'](_0x1818d2),_0x158056=_0x2d4ee2['editing']['view']['domConverter']['viewToDom'](_0x1b4904),_0x749612=_0x48775c['getAttribute']('width'),_0x230220=_0x48775c['getAttribute']('height'),_0x5f3d86='image-processing';_0x2d4ee2['editing']['view']['change'](_0x5b6611=>{_0x5b6611['addClass'](_0x5f3d86,_0x1818d2),_0x5b6611['setStyle']('aspect-ratio',_0x749612+'/'+_0x230220,_0x1b4904);}),_0x18ce3a['listenTo'](_0x158056,'load',()=>{_0x18ce3a['stopListening'](_0x158056,'load'),_0x2d4ee2['editing']['view']['change'](_0x13447a=>{_0x13447a['removeClass'](_0x5f3d86,_0x1818d2),_0x13447a['removeStyle']('aspect-ratio',_0x1b4904);});});}function V(_0x4b1511){if(Array['isArray'](_0x4b1511)){const _0x4a8f99=_0x4b1511['map'](V);return _0x5b4a7b=>_0x4a8f99['some'](_0x424575=>_0x424575(_0x5b4a7b));}if('origin'==_0x4b1511){const _0x43ff24=_0x928dd7['window']['location']['origin'];return _0x5422a9=>new URL(_0x5422a9,_0x928dd7['document']['baseURI'])['origin']==_0x43ff24;}return'function'==typeof _0x4b1511?_0x4b1511:_0x4b1511 instanceof RegExp?_0x4220b7=>!(!_0x4220b7['match'](_0x4b1511)&&!_0x4220b7['replace'](/^https?:\/\//,'')['match'](_0x4b1511)):()=>!0x1;}function F(_0x4a6979,_0x537f85){return _0x4e923d(_0x4a6979['target'])['includes'](_0x537f85);}class l extends/* #__PURE__ -- @preserve */
24
- _0x131431(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x524ab4,_0x3071a3,_0x1fb30a){super(),this['_editor']=_0x524ab4,this['_editing']=_0x3071a3,this['_dialog']=_0x524ab4['plugins']['get'](_0x4fbd5f),this['_api']=_0x3071a3['ctxElement']['getAPI'](),this['_type']=_0x1fb30a,this['_editing']['configElement']['setAttribute']('source-list',this['_type']),this['_initDialog'](),this['_initListeners'](),this['_api']['initFlow']();}['destroy'](){this['_formView']&&(this['_formView']['destroy'](),this['_formView']=null),this['_api']&&this['_api']['doneFlow'](),this['stopListening'](),this['stopDelegating']();}['_initDialog'](){const {locale:_0x295785,model:_0x33e8b0}=this['_editor'],_0x4c179b=_0x33e8b0['document']['selection']['getSelectedElement'](),_0x9227fd=_0x4c179b&&(_0x4c179b['is']('element','imageBlock')||_0x4c179b['is']('element','imageInline'));this['_formView']=new S(_0x295785),this['_dialog']['show']({'id':'uploadCare','icon':_0x5b4cb3,'title':_(_0x295785,this['_type'],_0x9227fd?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x25f52['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x562919=>!F(_0x562919,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x2e9181}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x3774b0=>{const _0x359b29=_0x2e9181['length'];for(const _0xac50f0 of _0x2e9181){const _0x8318c3=_0xac50f0===_0x2e9181[_0x359b29-0x1],{cdnUrl:_0xb64966,fileInfo:_0x4d3fe1}=_0xac50f0;if(!_0xb64966||!_0x4d3fe1)continue;const {width:_0x21610b,height:_0x293b06}=_0x4d3fe1['imageInfo'],_0x1de0ce=A(_0xb64966,_0x21610b,_0x293b06),_0x5dd8e6=E(_0xb64966,_0x1de0ce['width']),_0x56485e={'id':_0x4d3fe1['uuid'],'type':'image','attributes':{'imageDimension':_0x1de0ce,..._0x5dd8e6}};this['_insertAsset'](_0x56485e,_0x8318c3,_0x3774b0);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x2e38fe=>{'idle'===_0x2e38fe['detail']['status']&&!_0x2e38fe['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===o['Local']?this['_api']['setCurrentActivity'](o['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x35f0cb,_0x16e7d5,_0x2fce67){const _0x479cfe=this['_editor']['model']['document']['selection'],_0x289815=_0x479cfe['getSelectedElement'](),_0x4a5211=!(!_0x289815||!_0x289815['is']('element','imageInline'));_0x2fce67['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x35f0cb,_0x4a5211),_0x16e7d5||_0x2fce67['setSelection'](_0x479cfe['getLastPosition']());}['_insertImage'](_0x777f3e,_0x1f1f6b){const _0x19aa74=this['_editor'],{imageDimension:_0x22ae0d,imageFallbackUrl:_0x29b1bd,imageSources:_0x5c574a}=_0x777f3e['attributes'];_0x19aa74['execute']('insertImage',{'imageType':_0x1f1f6b?'imageInline':null,'source':{'uploadcareImageId':_0x777f3e['id'],'src':_0x29b1bd,'sources':_0x5c574a,..._0x22ae0d}});}}class n extends _0x3fe2f6{['_editing'];['_controller']=null;static get['requires'](){return[_0x4fbd5f,i];}constructor(_0x59b656){super(_0x59b656),this['_editing']=_0x59b656['plugins']['get'](i);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0xf7a042){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new l(this['editor'],this['_editing'],_0xf7a042);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class C{static['upload']({file:_0x5a1b6b,publicKey:_0x347419,signal:_0x15f6fd,onProgress:_0x1bda34}){return _0x3116ee(_0x5a1b6b,{'publicKey':_0x347419,'store':'auto','signal':_0x15f6fd,'onProgress':_0x1bda34});}static['getInfo'](_0x5ac1f3,_0x7b2818){return _0x3ea42e(_0x5ac1f3,_0x7b2818);}}class p extends _0x1caa67{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x1be048,i];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x551e70=this['editor'];if(!!!_0x551e70['config']['get']('uploadcare'))return;_0x551e70['plugins']['get'](_0x1be048)['createUploadAdapter']=_0x5e43f2=>new x(_0x5e43f2,_0x551e70),_0x551e70['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x5eefed,{imageElement:_0x3b26dd,data:_0x54506c})=>{_0x551e70['model']['change'](_0x4391d3=>{_0x4391d3['setAttribute']('uploadcareImageId',_0x54506c['uploadcareImageId'],_0x3b26dd);});});}}class x{['loader'];['editor'];['controller'];constructor(_0x41c958,_0x574641){this['loader']=_0x41c958,this['editor']=_0x574641,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x552612=this['editor']['config']['get']('uploadcare.pubkey'),_0xfc8936=await this['loader']['file'];return C['upload']({'file':_0xfc8936,'publicKey':_0x552612,'signal':this['controller']['signal'],'onProgress':_0x394abb=>{_0x394abb&&_0x394abb['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x394abb['value']);}})['then'](async _0x4dcf9c=>{const {imageFallbackUrl:_0x11007b,imageSources:_0xbc3862}=E(_0x4dcf9c['cdnUrl'],_0x4dcf9c['imageInfo']['width']);return{'uploadcareImageId':_0x4dcf9c['uuid'],'default':_0x11007b,'sources':_0xbc3862};})['catch'](()=>{const _0x40c072=t('Cannot\x20upload\x20file:')+('\x20'+_0xfc8936['name']+'.');return Promise['reject'](_0x40c072);});}['abort'](){this['controller']['abort']();}}class i extends _0x1caa67{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',p,_0x4fbd5f];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}['init'](){const _0x2f9630=this['editor'];_0x2f9630['commands']['add']('uploadcare',new n(_0x2f9630));}['afterInit'](){this['_initSchema'](),this['_initConversion'](),this['_initConfig'](),this['_initCtx'](),this['_initImageProcessingIndicator'](),this['listenTo'](this['editor'],'destroy',()=>{this['_configElement']&&(this['_configElement']['remove'](),this['_configElement']=null),this['_ctxElement']&&(this['_ctxElement']['remove'](),this['_ctxElement']=null);const _0x1fd8d8=_0x928dd7['document']['querySelector']('input[uploadcare-file-input]');_0x1fd8d8&&_0x1fd8d8['remove']();}),async function(_0x4ac974){const _0x4cca4d=_0x404a00([0x77,0x59,0x37,0x53,0x4f,0x31,0x4d,0x42,0x4c,0x54,0x36,0x46,0x33,0x35,0x78,0x75,0x64,0x6a,0x72,0x30,0x4a,0x66,0x6c,0x4b,0x48,0x58,0x4e,0x32,0x47,0x69,0x43,0x55,0x65,0x45,0x41,0x73,0x34,0x79,0x6d,0x7a,0x6f,0x50,0x39,0x57,0x61,0x74,0x68,0x71,0x38,0x56,0x52,0x76,0x67,0x6b,0x51,0x5a,0x62,0x63,0x49,0x6e,0x44,0x70]),_0x494892=0x7f57a1d6,_0x2e986e=0x7f50c4e6^_0x494892,_0x205f1d=window[_0x404a00([0x44,0x61,0x74,0x65])][_0x404a00([0x6e,0x6f,0x77])](),_0x19be8b=_0x4ac974[_0x404a00([0x65,0x64,0x69,0x74,0x6f,0x72])],_0xe2a48b=new window[(_0x404a00([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x31eec4=>{_0x19be8b[_0x404a00([0x6f,0x6e,0x63,0x65])](_0x404a00([0x72,0x65,0x61,0x64,0x79]),_0x31eec4);}),_0x541318={[_0x404a00([0x6b,0x74,0x79])]:_0x404a00([0x45,0x43]),[_0x404a00([0x75,0x73,0x65])]:_0x404a00([0x73,0x69,0x67]),[_0x404a00([0x63,0x72,0x76])]:_0x404a00([0x50,0x2d,0x32,0x35,0x36]),[_0x404a00([0x78])]:_0x404a00([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]),[_0x404a00([0x79])]:_0x404a00([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]),[_0x404a00([0x61,0x6c,0x67])]:_0x404a00([0x45,0x53,0x32,0x35,0x36])},_0x53afdf=_0x19be8b[_0x404a00([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x404a00([0x67,0x65,0x74])](_0x404a00([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x34c285(){let _0x45e947,_0x5ac25b=null,_0x1ad484=null;try{if(_0x53afdf==_0x404a00([0x47,0x50,0x4c]))return _0x404a00([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x45e947=_0x878d28(),!_0x45e947)return _0x404a00([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x45e947[_0x404a00([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x1ad484=_0x529756(_0x45e947[_0x404a00([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x45e947[_0x404a00([0x6a,0x74,0x69])])),await _0x1d08ca()?_0x1e0cf7()?_0x24735c()?_0x404a00([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x50c789()?(_0x45e947[_0x404a00([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x404a00([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x5ac25b=_0x1e29bf(_0x404a00([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x45e947[_0x404a00([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x404a00([0x74,0x72,0x69,0x61,0x6c])&&(_0x5ac25b=_0x1e29bf(_0x404a00([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x268be4()):_0x404a00([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x404a00([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x404a00([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x303865){return _0x404a00([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x24735c(){const _0x43db30=[_0x404a00([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x404a00([0x74,0x72,0x69,0x61,0x6c])][_0x404a00([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x45e947[_0x404a00([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x205f1d/0x3e8:0xe10*_0x2e986e;return _0x45e947[_0x404a00([0x65,0x78,0x70])]<_0x43db30;}function _0x1e0cf7(){const _0x2fa984=_0x45e947[_0x404a00([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x2fa984&&(!!_0x2fa984[_0x404a00([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x404a00([0x2a]))||!!_0x2fa984[_0x404a00([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x404a00([0x55,0x50,0x4c,0x43])));}function _0x50c789(){const _0x4a2716=_0x45e947[_0x404a00([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x4a2716||0x0==_0x4a2716[_0x404a00([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0xe9d6d8}=new URL(window[_0x404a00([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x4a2716[_0x404a00([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xe9d6d8))return!0x0;const _0x36c0ef=_0xe9d6d8[_0x404a00([0x73,0x70,0x6c,0x69,0x74])](_0x404a00([0x2e]));return _0x4a2716[_0x404a00([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x4bbcf0=>_0x4bbcf0[_0x404a00([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x404a00([0x2a])))[_0x404a00([0x6d,0x61,0x70])](_0x38d2ac=>_0x38d2ac[_0x404a00([0x73,0x70,0x6c,0x69,0x74])](_0x404a00([0x2e])))[_0x404a00([0x73,0x6f,0x6d,0x65])](_0x372a0c=>_0x36c0ef[_0x404a00([0x65,0x76,0x65,0x72,0x79])]((_0x95c354,_0x252069)=>_0x372a0c[_0x252069]===_0x95c354||_0x372a0c[_0x252069]===_0x404a00([0x2a])));}function _0x268be4(){return _0x5ac25b&&_0x1ad484?new window[(_0x404a00([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x500ddf,_0x478d21)=>{_0x5ac25b[_0x404a00([0x74,0x68,0x65,0x6e])](_0x500ddf,_0x478d21),_0x1ad484[_0x404a00([0x74,0x68,0x65,0x6e])](_0x59284d=>{_0x59284d!=_0x404a00([0x56,0x61,0x6c,0x69,0x64])&&_0x500ddf(_0x59284d);},_0x478d21);}):_0x5ac25b||_0x1ad484||_0x404a00([0x56,0x61,0x6c,0x69,0x64]);}}function _0x529756(_0x285a2c,_0x378d24){return new window[(_0x404a00([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5aaf24=>{if(_0x25342a())return _0x5aaf24(_0x404a00([0x56,0x61,0x6c,0x69,0x64]));_0x3ff8da(),_0x19be8b[_0x404a00([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x404a00([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x19da9e=!0x1;const _0x1b1347=_0x43d811();function _0x53cc44(_0x11d4b3){return!!_0x11d4b3&&(typeof _0x11d4b3===_0x404a00([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x11d4b3===_0x404a00([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x11d4b3[_0x404a00([0x74,0x68,0x65,0x6e])]===_0x404a00([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x11d4b3[_0x404a00([0x63,0x61,0x74,0x63,0x68])]===_0x404a00([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x1af3e0(_0x4300d0){_0x1058a0(_0x4300d0)[_0x404a00([0x74,0x68,0x65,0x6e])](_0x43fd5d=>{if(!_0x43fd5d||_0x43fd5d[_0x404a00([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x404a00([0x6f,0x6b]))return _0x404a00([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x3e9b9c(_0x447f67(_0x1b1347+_0x378d24))!=_0x43fd5d[_0x404a00([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x404a00([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x404a00([0x56,0x61,0x6c,0x69,0x64]);})[_0x404a00([0x74,0x68,0x65,0x6e])](_0xd5d847=>(_0x381e36(),_0xd5d847),()=>{const _0x2ff12a=_0x35750c();return null==_0x2ff12a?(_0x381e36(),_0x404a00([0x56,0x61,0x6c,0x69,0x64])):_0x404a00(_0x205f1d-_0x2ff12a>(0x5b5b25d6^_0x494892)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x404a00([0x74,0x68,0x65,0x6e])](_0x5aaf24)[_0x404a00([0x63,0x61,0x74,0x63,0x68])](()=>{_0x5aaf24(_0x404a00([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x1eec21=0x7f614f56^_0x494892;function _0x381e36(){const _0x4db5fa=_0x404a00([0x6c,0x6c,0x63,0x74,0x2d])+_0x3e9b9c(_0x447f67(_0x285a2c)),_0x50cc5f=_0x27aab1(_0x3e9b9c(window[_0x404a00([0x4d,0x61,0x74,0x68])][_0x404a00([0x63,0x65,0x69,0x6c])](_0x205f1d/_0x1eec21)));window[_0x404a00([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x404a00([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4db5fa,_0x50cc5f);}function _0x35750c(){const _0x16ec7c=_0x404a00([0x6c,0x6c,0x63,0x74,0x2d])+_0x3e9b9c(_0x447f67(_0x285a2c)),_0x46902a=window[_0x404a00([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x404a00([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x16ec7c);return _0x46902a?window[_0x404a00([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x27aab1(_0x46902a),0x10)*_0x1eec21:null;}function _0x1058a0(_0x1e2b2d){return new window[(_0x404a00([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4a7517,_0x2ef660)=>{_0x1e2b2d[_0x404a00([0x74,0x68,0x65,0x6e])](_0x4a7517,_0x2ef660),window[_0x404a00([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x2ef660,0x7f567516^_0x494892);});}}_0x19be8b[_0x404a00([0x6f,0x6e])](_0x404a00([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x26f94a,_0x1980bd)=>{if(_0x1980bd[0x0]!=_0x285a2c)return _0x5aaf24(_0x404a00([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x1980bd[0x1]={..._0x1980bd[0x1],[_0x404a00([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x1b1347};},{[_0x404a00([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x404a00([0x68,0x69,0x67,0x68])}),_0x19be8b[_0x404a00([0x6f,0x6e])](_0x404a00([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x143376=>{_0x53cc44(_0x143376[_0x404a00([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x19da9e=!0x0,_0x1af3e0(_0x143376[_0x404a00([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x404a00([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x404a00([0x6c,0x6f,0x77])}),_0xe2a48b[_0x404a00([0x74,0x68,0x65,0x6e])](()=>{_0x19da9e||_0x5aaf24(_0x404a00([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x25342a(){return _0x19be8b[_0x404a00([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x404a00([0x76,0x69,0x65,0x77])][_0x404a00([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x404a00([0x61,0x75,0x74,0x6f]);}function _0x3ff8da(){_0x19be8b[_0x404a00([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x404a00([0x76,0x69,0x65,0x77])][_0x404a00([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x404a00([0x61,0x75,0x74,0x6f]);}}function _0x1e29bf(_0xbd7c0f){const _0x11e312=[new window[(_0x404a00([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x108052=>setTimeout(_0x108052,0x7f5e9f1a^_0x494892)),_0xe2a48b[_0x404a00([0x74,0x68,0x65,0x6e])](()=>new window[(_0x404a00([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4cd43d=>{let _0x14c054=0x0;_0x19be8b[_0x404a00([0x6d,0x6f,0x64,0x65,0x6c])][_0x404a00([0x6f,0x6e])](_0x404a00([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x143be4,_0x46907f)=>{_0x46907f[0x0][_0x404a00([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x14c054++,_0x14c054==(0x7f57a02e^_0x494892)&&(_0x4cd43d(),_0x143be4[_0x404a00([0x6f,0x66,0x66])]());});}))];return window[_0x404a00([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x404a00([0x72,0x61,0x63,0x65])](_0x11e312)[_0x404a00([0x74,0x68,0x65,0x6e])](()=>_0xbd7c0f);}async function _0x59ea2b(){await _0xe2a48b,_0x19be8b[_0x404a00([0x6d,0x6f,0x64,0x65,0x6c])][_0x404a00([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0xe173ff,_0x19be8b[_0x404a00([0x6d,0x6f,0x64,0x65,0x6c])][_0x404a00([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0xe173ff,_0x19be8b[_0x404a00([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x404a00([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x17b0d5(_0x597299){const _0x16115d=_0x18f415();_0x19be8b[_0x16115d]=_0x404a00([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x597299,_0x597299!=_0x404a00([0x56,0x61,0x6c,0x69,0x64])&&_0x59ea2b();}function _0x18f415(){const _0x43fc02=window[_0x404a00([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x404a00([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x404a00([0x6e,0x6f,0x77])]())[_0x404a00([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x404a00([0x2e]),'');let _0x4a36af=_0x404a00([0x77]);for(let _0x1201dc=0x0;_0x1201dc<_0x43fc02[_0x404a00([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1201dc+=0x2){let _0x184873=window[_0x404a00([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x43fc02[_0x404a00([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x1201dc,_0x1201dc+0x2));_0x184873>=_0x4cca4d[_0x404a00([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x184873-=_0x4cca4d[_0x404a00([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x4a36af+=_0x4cca4d[_0x184873];}return _0x4a36af;}function _0x878d28(){const _0x187b2f=_0x53afdf[_0x404a00([0x73,0x70,0x6c,0x69,0x74])](_0x404a00([0x2e]));if(0x3!=_0x187b2f[_0x404a00([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x3b8449(_0x187b2f[0x1]);function _0x3b8449(_0x3f9ff0){const _0x126fe8=_0x5c05ac(_0x3f9ff0);return _0x126fe8&&_0x5c5f5b()?_0x126fe8:null;function _0x5c5f5b(){const _0x328171=_0x126fe8[_0x404a00([0x6a,0x74,0x69])],_0x146c40=window[_0x404a00([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x328171[_0x404a00([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x328171[_0x404a00([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x5cba2b={..._0x126fe8,[_0x404a00([0x6a,0x74,0x69])]:_0x328171[_0x404a00([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x328171[_0x404a00([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x5cba2b[_0x404a00([0x76,0x63])],_0x447f67(_0x5cba2b)==_0x146c40;}}}async function _0x1d08ca(){let _0x350dfc=!0x0;try{const _0x32d0bb=_0x53afdf[_0x404a00([0x73,0x70,0x6c,0x69,0x74])](_0x404a00([0x2e])),[_0x12af25,_0x3568cb,_0x22d2d1]=_0x32d0bb;return _0x37224e(_0x12af25),await _0x2f7849(_0x12af25,_0x3568cb,_0x22d2d1),_0x350dfc;}catch(_0x4999a4){return!0x1;}function _0x37224e(_0x56ee5e){const _0x3d5559=_0x5c05ac(_0x56ee5e);_0x3d5559&&_0x3d5559[_0x404a00([0x61,0x6c,0x67])]==_0x404a00([0x45,0x53,0x32,0x35,0x36])||(_0x350dfc=!0x1);}async function _0x2f7849(_0x2069d3,_0x28e35c,_0x24c105){const _0x15ce9b=window[_0x404a00([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x404a00([0x66,0x72,0x6f,0x6d])](_0x498dd3(_0x24c105),_0x1f7235=>_0x1f7235[_0x404a00([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x5698ba=new window[(_0x404a00([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x404a00([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x2069d3+_0x404a00([0x2e])+_0x28e35c),_0x624a7d=window[_0x404a00([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x404a00([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x624a7d)return;const _0x1ee542=await _0x624a7d[_0x404a00([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x404a00([0x6a,0x77,0x6b]),_0x541318,{[_0x404a00([0x6e,0x61,0x6d,0x65])]:_0x404a00([0x45,0x43,0x44,0x53,0x41]),[_0x404a00([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x404a00([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x404a00([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x624a7d[_0x404a00([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x404a00([0x6e,0x61,0x6d,0x65])]:_0x404a00([0x45,0x43,0x44,0x53,0x41]),[_0x404a00([0x68,0x61,0x73,0x68])]:{[_0x404a00([0x6e,0x61,0x6d,0x65])]:_0x404a00([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x1ee542,_0x15ce9b,_0x5698ba)||(_0x350dfc=!0x1);}}function _0x5c05ac(_0x2c8584){return _0x2c8584[_0x404a00([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x404a00([0x65,0x79]))?JSON[_0x404a00([0x70,0x61,0x72,0x73,0x65])](_0x498dd3(_0x2c8584)):null;}function _0x498dd3(_0x1bdec9){return window[_0x404a00([0x61,0x74,0x6f,0x62])](_0x1bdec9[_0x404a00([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x404a00([0x2b]))[_0x404a00([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x404a00([0x2f])));}function _0x447f67(_0x260d6a){let _0x5c5c96=0x1505;function _0x48df5e(_0x5c5a7e){for(let _0x2351bb=0x0;_0x2351bb<_0x5c5a7e[_0x404a00([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2351bb++){const _0x529dc7=_0x5c5a7e[_0x404a00([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x2351bb);_0x5c5c96=(_0x5c5c96<<0x5)+_0x5c5c96+_0x529dc7,_0x5c5c96&=_0x5c5c96;}}function _0x404196(_0x1457b4){Array[_0x404a00([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x1457b4)?_0x1457b4[_0x404a00([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x404196):_0x1457b4&&typeof _0x1457b4==_0x404a00([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x404a00([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x1457b4)[_0x404a00([0x73,0x6f,0x72,0x74])]()[_0x404a00([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x230cf3,_0x4ead86])=>{_0x48df5e(_0x230cf3),_0x404196(_0x4ead86);}):_0x48df5e(window[_0x404a00([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x1457b4));}return _0x404196(_0x260d6a),_0x5c5c96>>>0x0;}function _0x3e9b9c(_0x2b3fe0){return _0x2b3fe0[_0x404a00([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x404a00([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x404a00([0x30]));}function _0x27aab1(_0x51e752){return _0x51e752[_0x404a00([0x73,0x70,0x6c,0x69,0x74])]('')[_0x404a00([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x404a00([0x6a,0x6f,0x69,0x6e])]('');}function _0xe173ff(){}function _0x404a00(_0xc338f6){return _0xc338f6['map'](_0x24eb4d=>String['fromCharCode'](_0x24eb4d))['join']('');}_0x17b0d5(await _0x34c285());}(this);}['_initSchema'](){const _0x11264b=this['editor']['model']['schema'];_0x11264b['isRegistered']('imageBlock')&&_0x11264b['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x11264b['isRegistered']('imageInline')&&_0x11264b['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x39bd72=this['editor'];_0x39bd72['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x39bd72['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x592ff3=>_0x592ff3['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x5e1328=_0x39bd72['commands']['get']('replaceImageSource');_0x5e1328&&this['listenTo'](_0x5e1328,'cleanupImage',(_0x554435,[_0x1324f0,_0x42731f])=>{_0x1324f0['removeAttribute']('uploadcareImageId',_0x42731f);});}['_initConfig'](){const _0x1b02a6=this['editor']['config']['get']('uploadcare.uploader')||{},_0x4d6104=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x185835(_0x928dd7['document'],'uc-config',{..._0x1b02a6,'pubkey':_0x4d6104,'ctx-name':'uploader','sourceList':'','imgOnly':'true','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage'],'externalSourcesEmbedCss':'\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup\x20{\x20padding:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-menu\x20{\x20gap:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-footer\x20{\x20padding-top:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__separator\x20{\x20margin:\x200;\x20}\x0a\x09\x09\x09'}),this['_configElement']['iconHrefResolver']=_0x273f5c=>{if('closeMax'==_0x273f5c)return'#uc-icon-arrow-down';},_0x928dd7['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x185835(_0x928dd7['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader'}),_0x928dd7['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x3aa2bf=this['editor']['commands']['get']('insertImage');_0x3aa2bf&&this['listenTo'](_0x3aa2bf,'execute',()=>{const _0x451796=this['editor']['model']['document']['selection']['getSelectedElement']();_0x451796&&_0x451796['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{m(this['editor'],_0x451796);});});const _0x20fd16=this['editor']['commands']['get']('uploadcareImageReplace');_0x20fd16&&this['listenTo'](_0x20fd16,'execute',()=>{const _0x424d0e=this['editor']['model']['document']['selection']['getSelectedElement']();_0x424d0e&&_0x424d0e['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{m(this['editor'],_0x424d0e);});});}}class u extends _0x1caa67{static get['requires'](){return[i,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x5796cb){super(_0x5796cb),_0x5796cb['config']['define']('uploadcare.uploader.sourceList',[o['Local'],o['URL']]),_0x21c8a4['defineComponents'](_0x21c8a4);}}class ta extends _0x4f37ad{constructor(_0x3cef14){super(_0x3cef14);const t=_0x3cef14['t'],_0x192cd6=this['bindTemplate'],_0x99278=new _0x54cf49();_0x99278['isVisible']=!0x0,this['setTemplate']({'tag':'div','attributes':{'class':['ck-uploadcare-form__loading'],'tabindex':'-1'},'children':[{'tag':'div','attributes':{'class':['ck-uploadcare-form__loading-spinner']},'children':[_0x99278,{'text':_0x192cd6['to']('imageUploadProgress',_0x202a7e=>t('Loading\x20image...')+'\x20('+(_0x202a7e||0x0)+'%)')}]},{'tag':'div','attributes':{'class':['ck-uploadcare-form__skeleton']},'children':[{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'}]},{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'}]}]}]});}}class rt extends _0x4f37ad{constructor(_0x245381){super(_0x245381);const t=_0x245381['t'];this['set']('errorType',null);const _0x3bea8f=new _0x442e83(_0x245381);_0x3bea8f['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x3bea8f['withText']=!0x0,_0x3bea8f['class']='ck-button-action',_0x3bea8f['on']('execute',()=>{this['fire']('retry');}),_0x3bea8f['bind']('isVisible')['to'](this,'errorType',_0x424b23=>'NotFound'!==_0x424b23);const _0x191f0a=new at();_0x191f0a['content']=et,_0x191f0a['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x145cf6=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':{'class':['ck-uploadcare-form__error'],'tabindex':'-1'},'children':[{'tag':'div','attributes':{'class':['ck-uploadcare-form__error-contents']},'children':[_0x191f0a,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x145cf6['to']('errorType',_0x287618=>t('NotFound'!==_0x287618?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x3bea8f]},{'tag':'div','attributes':{'class':['ck-uploadcare-form__skeleton']},'children':[{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'}]},{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'}]}]}]});}}class tt extends _0x4f37ad{constructor(_0x506605,_0x5c40bc){super(_0x506605);const _0x33de4d=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x5c40bc,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x33de4d['to']('imageSrc')}});}}class Z extends q{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x414ad7,_0x12015c,_0x38c410){super(_0x414ad7),this['_items']=this['createCollection'](),this['_loadingView']=new ta(_0x414ad7),this['_errorView']=new rt(_0x414ad7),this['_editingView']=new tt(_0x414ad7,_0x38c410),this['_focusableView']=new _0x4f37ad(_0x414ad7),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x12015c),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all-excluded','ck-uploadcare-form'],'tabindex':'-1'},'children':this['_items']}),this['_setView'](),this['once']('render',()=>{this['_waitForImageEditorComponent'](this['element'],_0x53321d=>{this['_addUploadcareImageEditorListeners'](_0x53321d);});}),this['on']('change:status',()=>{this['_setView']();}),this['_addErrorViewListeners']();}['focus'](){this['element']['focus']();}['_setView'](){switch(this['_items']['clear'](),this['status']){case'uploading':this['_items']['add'](this['_loadingView']);break;case'error':this['_items']['add'](this['_errorView']);break;case'ready':this['_items']['addMany']([this['_editingView'],this['_focusableView']]);}}['_waitForImageEditorComponent'](_0xe71d48,_0x1951d4){const _0x12c655='uc-cloud-image-editor',_0x3c3820=_0xe71d48['querySelector'](_0x12c655);if(_0x3c3820)return _0x1951d4(_0x3c3820);const _0x4b6913=new MutationObserver(_0x1c6ef4=>{const _0x329a76=_0x1c6ef4['filter'](_0x55446f=>_0x55446f['target']===_0xe71d48&&_0x55446f['addedNodes']['length']>0x0&&_0x55446f['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x12c655);_0x329a76['length']&&(_0x4b6913['disconnect'](),_0x1951d4(_0x329a76[0x0]['addedNodes'][0x0]));});_0x4b6913['observe'](_0xe71d48,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x516ab4){_0x516ab4['addEventListener']('apply',_0x1fedd7=>{this['fire']('apply',{'imageSrc':_0x1fedd7['detail']['cdnUrl']});}),_0x516ab4['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class z extends/* #__PURE__ -- @preserve */
25
- _0x131431(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x26384e,_0xa0194e,_0x150835){super(),this['_editor']=_0x26384e,this['_dialog']=_0xa0194e,this['_imageElement']=_0x150835,this['_imageCache']=this['_editor']['plugins']['get']('UploadcareImageEditUI')['imageCache'],this['_attributes']=this['_editor']['config']['get']('uploadcare.editor')||{},this['set']({'isActive':!0x0,'imageStatus':'ready','imageErrorType':null,'imageId':null,'imageSrc':null,'imageDimension':null,'imageUploadProgress':null}),this['_prepareImage'](),this['_showDialog']();}['destroy'](){this['isActive']=!0x1,this['stopListening'](),this['stopDelegating'](),'uploading'===this['imageStatus']&&this['_controller']&&this['_controller']['abort']();}async['_prepareImage'](){const _0x595325=this['_imageElement'],_0x1202f4=_0x595325['getAttribute']('uploadcareImageId'),_0x593d67=_0x595325['getAttribute']('src');if(_0x1202f4)await this['_loadImageInfo'](_0x1202f4,_0x593d67);else{if(this['_imageCache']['has'](_0x593d67)){const _0x505607=this['_imageCache']['get'](_0x593d67);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x505607['url'],this['imageDimension']=_0x505607['dimension'],this['imageId']=_0x505607['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0xbaa6cd}=this['_editor'],t=_0xbaa6cd['t'],_0x108cad=new Z(_0xbaa6cd,this['imageStatus'],this['_attributes']);_0x108cad['bind']('status')['to'](this,'imageStatus'),_0x108cad['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x108cad['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x108cad['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x108cad,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x556d87,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x108cad,'position':_0x25f52['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x108cad['focus']();},'onHide':()=>{_0x108cad['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x990c74=>!F(_0x990c74,_0x108cad['element'])}});}['_loadImageInfo'](_0xdab8fa,_0x41346a){return C['getInfo'](_0xdab8fa,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey')})['then'](_0x2cbb66=>{const {width:_0x8c23f5,height:_0x16f4ab}=_0x2cbb66['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x41346a,this['imageDimension']={'width':_0x8c23f5,'height':_0x16f4ab},this['imageId']=_0xdab8fa;})['catch'](_0x2a4e6f=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x2a4e6f['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x2c0b70,_0x300814){return this['_getImageAsFile'](_0x2c0b70)['then'](_0x18148d=>C['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'signal':_0x300814['signal'],'file':_0x18148d,'onProgress':_0x4ec068=>{_0x4ec068&&_0x4ec068['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x4ec068['value']));}}))['then'](_0x276f8a=>{const {width:_0x1ac355,height:_0x119202}=_0x276f8a['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x276f8a['cdnUrl'],this['imageDimension']={'width':_0x1ac355,'height':_0x119202},this['imageId']=_0x276f8a['uuid'],this['imageUploadProgress']=null;const _0x479d15=_0x2c0b70['getAttribute']('src');this['_imageCache']['set'](_0x479d15,{'id':_0x276f8a['uuid'],'url':_0x276f8a['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x1ef7d4=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x1ef7d4['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x1b4c4b,_0x3a7066){_0x1b4c4b['on']('apply',(_0x152481,_0x4dcb1e)=>{this['_replaceImage'](_0x3a7066,_0x4dcb1e['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x1b4c4b['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x1b4c4b['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x1f6cee,_0x57b2d7,_0x545b51){const _0x4c48ad=this['_editor'],{width:_0x417ce8,height:_0x5c50a9}=A(_0x57b2d7,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x36aff9,imageSources:_0x5d53a9}=E(_0x57b2d7,_0x417ce8);_0x4c48ad['model']['change'](_0x1275c6=>{if('$graveyard'===_0x1f6cee['root']['rootName']){_0x4c48ad['execute']('insertImage',{'imageType':_0x1f6cee['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x1f6cee['getAttributes']()),'uploadcareImageId':_0x545b51,'src':_0x36aff9,'sources':_0x5d53a9,'width':_0x417ce8,'height':_0x5c50a9}});const _0x2788b9=_0x1f6cee['getChildren']();_0x1f6cee=_0x4c48ad['model']['document']['selection']['getSelectedElement']();for(const _0x5657cb of _0x2788b9)_0x1275c6['append'](_0x1275c6['cloneElement'](_0x5657cb),_0x1f6cee);}else _0x1275c6['setSelection'](_0x1f6cee,'on'),_0x4c48ad['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x1f6cee['getAttributes']()),'uploadcareImageId':_0x545b51,'src':_0x36aff9,'sources':_0x5d53a9,'width':_0x417ce8,'height':_0x5c50a9},_0x1f6cee);_0x1275c6['setSelection'](_0x1f6cee,'on');});}async['_getImageAsFile'](_0x31a5f0){const _0x144cf5=_0x928dd7['window'],_0x32e01d=_0x928dd7['document']['location']['href'],_0x5e7a6e=new _0x144cf5['URL'](_0x31a5f0['getAttribute']('src'),_0x32e01d);if('data:'===_0x5e7a6e['protocol']){const _0x274d6f=_0x5e7a6e['href']['split'](','),_0x18039d=_0x274d6f[0x0]['match'](/:(.*?);/)[0x1],_0x19018b=_0x18039d['split']('/')[0x1],_0x1d5fda=_0x144cf5['atob'](_0x274d6f[_0x274d6f['length']-0x1]);let _0x5acb21=_0x1d5fda['length'];const _0x42d8cc=new _0x144cf5['Uint8Array'](_0x5acb21);for(;_0x5acb21--;)_0x42d8cc[_0x5acb21]=_0x1d5fda['charCodeAt'](_0x5acb21);return new _0x144cf5['File']([_0x42d8cc],'image.'+_0x19018b,{'type':_0x18039d});}const _0x2c2d7c=_0x5e7a6e['href']['split']('/'),_0x3734aa=_0x2c2d7c[_0x2c2d7c['length']-0x1],_0x1195bf=_0x3734aa['split']('.')[0x1];return _0x144cf5['fetch'](_0x5e7a6e['href'])['then'](_0x2c48f0=>_0x2c48f0['clone']()['blob']())['then'](_0x47d942=>new _0x144cf5['File']([_0x47d942],_0x3734aa,{'type':'image/'+_0x1195bf}));}}class J extends _0x3fe2f6{['imageEditController'];static get['requires'](){return[_0x4fbd5f];}['_isEditable'];constructor(_0x43c342){super(_0x43c342),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x22ace6){const _0x394281=V(_0x22ace6);return _0xaf8717=>!(!_0xaf8717||!_0xaf8717['is']('element','imageBlock')&&!_0xaf8717['is']('element','imageInline'))&&(!!_0xaf8717['hasAttribute']('uploadcareImageId')||!!_0xaf8717['hasAttribute']('src')&&_0x394281(_0xaf8717['getAttribute']('src')));}(_0x43c342['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x4c06f9=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x4c06f9);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x63010a=this['editor']['model']['document']['selection']['getSelectedElement']();_0x63010a&&(_0x63010a['is']('element','imageBlock')||_0x63010a['is']('element','imageInline'))&&(this['imageEditController']=new z(this['editor'],this['editor']['plugins']['get'](_0x4fbd5f),_0x63010a),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class O extends _0x3fe2f6{['refresh'](){const _0x28aafe=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x28aafe&&(_0x28aafe['is']('element','imageBlock')||_0x28aafe['is']('element','imageInline')));}['execute'](_0x1fc16e){const _0xfe0892=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x671e2f=>{_0x671e2f['setAttributes'](_0x1fc16e,_0xfe0892),_0x671e2f['removeAttribute']('srcset',_0xfe0892),_0x671e2f['removeAttribute']('sizes',_0xfe0892);});}}class g extends _0x1caa67{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[i,_0x34c38c,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0xda83fc}=this;_0xda83fc['commands']['add']('uploadcareImageEdit',new J(_0xda83fc)),_0xda83fc['commands']['add']('uploadcareImageReplace',new O(_0xda83fc));}}class j extends _0x1caa67{['_imageCache']=new Map();static get['pluginName'](){return'UploadcareImageEditUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['imageCache'](){return this['_imageCache'];}['init'](){const _0x113446=this['editor'];_0x113446['ui']['componentFactory']['add']('uploadcareImageEdit',_0x5f2372=>{const _0x37d056=_0x113446['commands']['get']('uploadcareImageEdit'),_0x262594=new _0x442e83(_0x5f2372),t=_0x5f2372['t'];return _0x262594['set']({'icon':_0x556d87,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x262594['bind']('isEnabled')['to'](_0x37d056),_0x262594['bind']('isOn')['to'](_0x37d056,'isActive'),this['listenTo'](_0x262594,'execute',()=>{_0x113446['execute']('uploadcareImageEdit'),_0x113446['editing']['view']['focus']();}),_0x262594;}),this['_initConfig']();}['_initConfig'](){const _0x46ac30=_0x185835(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x46ac30),this['listenTo'](this['editor'],'destroy',()=>{_0x46ac30['remove']();});}}class P extends _0x1caa67{static get['pluginName'](){return'UploadcareImageEdit';}static get['requires'](){return[g,j];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{u as Uploadcare,i as UploadcareEditing,P as UploadcareImageEdit,g as UploadcareImageEditEditing,j as UploadcareImageEditUI,e as UploadcareUI};
23
+ import{Plugin as _0x51e1a9,Command as _0x29a9f3}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x3395eb,IconGooglePhotos as _0x4ec5b2,IconGoogleDrive as _0x5e7c08,IconFacebook as _0x4aa127,IconDropbox as _0x1853eb,IconUploadcareLink as _0x3559be,IconUploadcareImageUpload as _0x4e2291,IconError as et,IconUploadcareImageEdit as _0x3539a5}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x56ca7a,MenuBarMenuListItemButtonView as _0x453d00,View as _0x59edb5,FocusCycler as _0x27c90c,Dialog as _0x4cefb7,DialogViewPosition as _0xa7f5da,SpinnerView as _0x5381a9,IconView as at,Notification as _0x38b10f}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x4d6c02,DomEmitterMixin as _0x2fba2b,global as _0x3416d5,getAncestors as _0x5586d7,ObservableMixin as _0x322056,createElement as _0x3eb501,uid as _0x27e0ae}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x1124e1}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x33ff05,info as _0x3421fd}from'@uploadcare/upload-client';import*as _0x9c75c1 from'@uploadcare/file-uploader';var o=function(_0x33c5f0){return _0x33c5f0['Local']='local',_0x33c5f0['URL']='url',_0x33c5f0['Dropbox']='dropbox',_0x33c5f0['GDrive']='gdrive',_0x33c5f0['Facebook']='facebook',_0x33c5f0['GPhotos']='gphotos',_0x33c5f0['OneDrive']='onedrive',_0x33c5f0;}({});function _(_0x411c58,_0x3988d6,_0x4eee6a){const t=_0x411c58['t'],_0x95e57c=_0x411c58['t'];switch(_0x3988d6){case o['Local']:return{'text':_0x95e57c('Insert'===_0x4eee6a?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x95e57c('From\x20computer')};case o['URL']:return{'text':'Insert'===_0x4eee6a?_0x95e57c('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x95e57c('Via\x20URL')};case o['Dropbox']:return{'text':t('Insert'===_0x4eee6a?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case o['Facebook']:return{'text':t('Insert'===_0x4eee6a?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case o['GDrive']:return{'text':t('Insert'===_0x4eee6a?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case o['GPhotos']:return{'text':t('Insert'===_0x4eee6a?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case o['OneDrive']:return{'text':t('Insert'===_0x4eee6a?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x3988d6;}}class e extends _0x51e1a9{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'UploadcareUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x116dc1=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x364808;for(const _0x5232f5 in _0x116dc1){const _0x442a55=_0x5232f5,_0x4f7888=_0x116dc1[_0x442a55];if('uploadcareLicenseKeyValid'==_0x4f7888||'uploadcareLicenseKeyInvalid'==_0x4f7888||'uploadcareLicenseKeyExpired'==_0x4f7888||'uploadcareLicenseKeyDomainLimit'==_0x4f7888||'uploadcareLicenseKeyNotAllowed'==_0x4f7888||'uploadcareLicenseKeyEvaluationLimit'==_0x4f7888||'uploadcareLicenseKeyTrialLimit'==_0x4f7888||'uploadcareLicenseKeyUsageLimit'==_0x4f7888){delete _0x116dc1[_0x442a55],_0x364808=_0x4f7888,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x364808&&_0x116dc1['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x364808&&_0x116dc1['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x364808&&_0x116dc1['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x364808&&_0x116dc1['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x364808&&_0x116dc1['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyTrialLimit'==_0x364808&&_0x116dc1['_showLicenseError']('trialLimit'),'uploadcareLicenseKeyUsageLimit'==_0x364808&&_0x116dc1['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x335381}=this,_0xc40763=_0x335381['commands']['get']('uploadcare');if(!_0xc40763)return;const _0x407907=this['_normalizeConfigSourceList'](_0x335381['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x4228c6,_0x2898b2)=>{const _0x3aca56=this['_getIntegrationKey'](_0x2898b2['type']);return _0x4228c6[_0x3aca56]||(_0x4228c6[_0x3aca56]=[]),_0x4228c6[_0x3aca56]['push'](_0x2898b2),_0x4228c6;},{});_0x335381['plugins']['has']('ImageInsertUI')&&_0x335381['commands']['get']('uploadcare')&&Object['entries'](_0x407907)['forEach'](([_0x325f36,_0x494e19])=>{_0x335381['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x325f36,'observable':()=>_0xc40763,'buttonViewCreator':()=>this['_createToolbarButton'](_0x494e19),'formViewCreator':()=>this['_createDropdownButtons'](_0x494e19),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x494e19),'override':'assetManager'!==_0x325f36});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x5c063f){const {locale:_0x1eb39b}=this['editor'];return _0x5c063f['map'](_0x30b4ed=>{const _0x1eeb84=_(_0x1eb39b,_0x30b4ed,'Insert');switch(_0x30b4ed){case o['Local']:return{'icon':_0x4e2291,'type':o['Local'],..._0x1eeb84};case o['URL']:return{'icon':_0x3559be,'type':o['URL'],..._0x1eeb84};case o['Dropbox']:return{'icon':_0x1853eb,'type':o['Dropbox'],..._0x1eeb84};case o['Facebook']:return{'icon':_0x4aa127,'type':o['Facebook'],..._0x1eeb84};case o['GDrive']:return{'icon':_0x5e7c08,'type':o['GDrive'],..._0x1eeb84};case o['GPhotos']:return{'icon':_0x4ec5b2,'type':o['GPhotos'],..._0x1eeb84};case o['OneDrive']:return{'icon':_0x3395eb,'type':o['OneDrive'],..._0x1eeb84};}});}['_getIntegrationKey'](_0x4f923b){switch(_0x4f923b){case o['Local']:return'upload';case o['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x5722ba,_0x3ab52d){const _0x2167a5=this['editor'],_0x47fa02=new _0x5722ba(_0x2167a5['locale']),_0x324c1b=_0x2167a5['commands']['get']('uploadcare');return _0x47fa02['bind']('isEnabled')['to'](_0x324c1b),_0x47fa02['on']('execute',()=>{_0x324c1b['execute'](_0x3ab52d);}),_0x47fa02;}['_createToolbarButton'](_0x3102cd){const {locale:_0x18c90d}=this['editor'],_0x534ef2=this['editor']['plugins']['get']('ImageInsertUI'),_0x43acfc=_0x3102cd[0x0],_0x1651a2=this['_createButton'](_0x56ca7a,_0x43acfc['type']);return _0x1651a2['icon']=_0x43acfc['icon'],_0x1651a2['bind']('label')['to'](_0x534ef2,'isImageSelected',_0x15db12=>_(_0x18c90d,_0x43acfc['type'],_0x15db12?'Replace':'Insert')['text']),_0x1651a2['tooltip']=!0x0,_0x1651a2;}['_createDropdownButtons'](_0x35964a){const {locale:_0x6c1ab6}=this['editor'],_0xb311f3=this['editor']['plugins']['get']('ImageInsertUI');return _0x35964a['map'](_0x3e3133=>{const _0x5a387a=this['_createButton'](_0x56ca7a,_0x3e3133['type']);return _0x5a387a['withText']=!0x0,_0x5a387a['icon']=_0x3e3133['icon'],_0x5a387a['bind']('label')['to'](_0xb311f3,'isImageSelected',_0x32cd92=>_(_0x6c1ab6,_0x3e3133['type'],_0x32cd92?'Replace':'Insert')['text']),_0x5a387a;});}['_createMenuBarButtons'](_0x37dddb){return _0x37dddb['map'](_0x40c4b1=>{const _0x42d547=this['_createButton'](_0x453d00,_0x40c4b1['type']);return _0x42d547['icon']=_0x40c4b1['icon'],_0x42d547['label']=_0x40c4b1['shortText'],_0x42d547;});}}class q extends _0x59edb5{['focusTracker'];['focusCycler'];constructor(_0x173989){super(_0x173989),this['focusTracker']=new _0x4d6c02(),this['focusCycler']=new _0x27c90c({'focusables':this['createCollection'](),'focusTracker':this['focusTracker']});}['getFocusableElement'](){return{'tag':'div','attributes':{'aria-hidden':'true','tabindex':'0'},'on':{'focus':this['bindTemplate']['to'](()=>{this['focusCycler']['fire']('forwardCycle');})}};}}class S extends q{constructor(_0x2f5725){super(_0x2f5725),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all-excluded','ck-uploadcare-form'],'tabindex':'-1'},'children':[{'tag':'uc-file-uploader-inline','attributes':{'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'uploader'}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}}function E(_0x425dd0,_0x28be8e){const _0x10fb5b=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x5ba613=>_0x5ba613<=_0x28be8e)['map'](_0x276f24=>_0x425dd0['replace'](/\/$/,'')+'/-/resize/'+_0x276f24+'x/\x20'+_0x276f24+'w');return{'imageFallbackUrl':_0x425dd0,'imageSources':[{'srcset':_0x10fb5b['join'](',\x20'),'sizes':'(max-width:\x20'+_0x28be8e+'px)\x20100vw,\x20'+_0x28be8e+'px','type':'image/webp'}]};}function A(_0x1f6a76,_0x2dd733,_0x22bdae){const _0x4727be=_0x1f6a76['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x4727be?parseInt(_0x4727be[0x1],0xa):_0x2dd733,'height':_0x4727be?parseInt(_0x4727be[0x2],0xa):_0x22bdae};}function m(_0x59a99f,_0x531a3e){const _0x5863d4=Object['create'](_0x2fba2b),_0x366672=_0x59a99f['plugins']['get']('ImageUtils'),_0x54ecd0=_0x59a99f['editing']['mapper']['toViewElement'](_0x531a3e),_0x4ee0ce=_0x366672['findViewImgElement'](_0x54ecd0),_0x47cbaf=_0x59a99f['editing']['view']['domConverter']['viewToDom'](_0x4ee0ce),_0x3f0af7=_0x531a3e['getAttribute']('width'),_0x70cd8b=_0x531a3e['getAttribute']('height'),_0x3ab960='image-processing';_0x59a99f['editing']['view']['change'](_0x3d8429=>{_0x3d8429['addClass'](_0x3ab960,_0x54ecd0),_0x3d8429['setStyle']('aspect-ratio',_0x3f0af7+'/'+_0x70cd8b,_0x4ee0ce);}),_0x5863d4['listenTo'](_0x47cbaf,'load',()=>{_0x5863d4['stopListening'](_0x47cbaf,'load'),_0x59a99f['editing']['view']['change'](_0x4691d6=>{_0x4691d6['removeClass'](_0x3ab960,_0x54ecd0),_0x4691d6['removeStyle']('aspect-ratio',_0x4ee0ce);});});}function V(_0x7f0115){if(Array['isArray'](_0x7f0115)){const _0x2babf2=_0x7f0115['map'](V);return _0x2e196b=>_0x2babf2['some'](_0x4ead3a=>_0x4ead3a(_0x2e196b));}if('origin'==_0x7f0115){const _0x3e320b=_0x3416d5['window']['location']['origin'];return _0x448fe2=>new URL(_0x448fe2,_0x3416d5['document']['baseURI'])['origin']==_0x3e320b;}return'function'==typeof _0x7f0115?_0x7f0115:_0x7f0115 instanceof RegExp?_0x87c6f0=>!(!_0x87c6f0['match'](_0x7f0115)&&!_0x87c6f0['replace'](/^https?:\/\//,'')['match'](_0x7f0115)):()=>!0x1;}function F(_0x2f8c81,_0x25c267){return _0x5586d7(_0x2f8c81['target'])['includes'](_0x25c267);}class l extends/* #__PURE__ -- @preserve */
24
+ _0x322056(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x20305a,_0x1a5496,_0x4a8bb6){super(),this['_editor']=_0x20305a,this['_editing']=_0x1a5496,this['_dialog']=_0x20305a['plugins']['get'](_0x4cefb7),this['_api']=_0x1a5496['ctxElement']['getAPI'](),this['_type']=_0x4a8bb6,this['_editing']['configElement']['setAttribute']('source-list',this['_type']),this['_initDialog'](),this['_initListeners'](),this['_api']['initFlow']();}['destroy'](){this['_formView']&&(this['_formView']['destroy'](),this['_formView']=null),this['_api']&&this['_api']['doneFlow'](),this['stopListening'](),this['stopDelegating']();}['_initDialog'](){const {locale:_0x5d5ad3,model:_0x44f3ac}=this['_editor'],_0x50b433=_0x44f3ac['document']['selection']['getSelectedElement'](),_0x5131da=_0x50b433&&(_0x50b433['is']('element','imageBlock')||_0x50b433['is']('element','imageInline'));this['_formView']=new S(_0x5d5ad3),this['_dialog']['show']({'id':'uploadCare','icon':_0x4e2291,'title':_(_0x5d5ad3,this['_type'],_0x5131da?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0xa7f5da['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x569656=>!F(_0x569656,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0xaedfc}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x372b51=>{const _0x44b841=_0xaedfc['length'];for(const _0x53ab2c of _0xaedfc){const _0x4f40d3=_0x53ab2c===_0xaedfc[_0x44b841-0x1],{cdnUrl:_0xf53803,fileInfo:_0x5e1f3d}=_0x53ab2c;if(!_0xf53803||!_0x5e1f3d)continue;const {width:_0x19596e,height:_0x3c4731}=_0x5e1f3d['imageInfo'],_0x108177=A(_0xf53803,_0x19596e,_0x3c4731),_0x4d3a19=E(_0xf53803,_0x108177['width']),_0x539aa4={'id':_0x5e1f3d['uuid'],'type':'image','attributes':{'imageDimension':_0x108177,..._0x4d3a19}};this['_insertAsset'](_0x539aa4,_0x4f40d3,_0x372b51);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x331c36=>{'idle'===_0x331c36['detail']['status']&&!_0x331c36['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===o['Local']?this['_api']['setCurrentActivity'](o['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x10ac41,_0x37e921,_0x4cfc8b){const _0x1791a6=this['_editor']['model']['document']['selection'],_0x2eceef=_0x1791a6['getSelectedElement'](),_0x1ddade=!(!_0x2eceef||!_0x2eceef['is']('element','imageInline'));_0x4cfc8b['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x10ac41,_0x1ddade),_0x37e921||_0x4cfc8b['setSelection'](_0x1791a6['getLastPosition']());}['_insertImage'](_0x2e876d,_0x1d4798){const _0x149bd1=this['_editor'],{imageDimension:_0x56d6f2,imageFallbackUrl:_0x4b7a96,imageSources:_0x3d8c9e}=_0x2e876d['attributes'];_0x149bd1['execute']('insertImage',{'imageType':_0x1d4798?'imageInline':null,'source':{'uploadcareImageId':_0x2e876d['id'],'src':_0x4b7a96,'sources':_0x3d8c9e,..._0x56d6f2}});}}class n extends _0x29a9f3{['_editing'];['_controller']=null;static get['requires'](){return[_0x4cefb7,i];}constructor(_0x5af4ac){super(_0x5af4ac),this['_editing']=_0x5af4ac['plugins']['get'](i);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x39547e){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new l(this['editor'],this['_editing'],_0x39547e);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class C{static['upload']({file:_0x494293,publicKey:_0x4c0f26,signal:_0x13c6cf,onProgress:_0x3695bd}){return _0x33ff05(_0x494293,{'publicKey':_0x4c0f26,'store':'auto','signal':_0x13c6cf,'onProgress':_0x3695bd});}static['getInfo'](_0x373082,_0x36909f){return _0x3421fd(_0x373082,_0x36909f);}}class p extends _0x51e1a9{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x1124e1,i];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x3a55b8=this['editor'];if(!!!_0x3a55b8['config']['get']('uploadcare'))return;_0x3a55b8['plugins']['get'](_0x1124e1)['createUploadAdapter']=_0x53f7ce=>new x(_0x53f7ce,_0x3a55b8),_0x3a55b8['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x52508b,{imageElement:_0x2b2dae,data:_0x4cc642})=>{_0x3a55b8['model']['change'](_0x241a18=>{_0x241a18['setAttribute']('uploadcareImageId',_0x4cc642['uploadcareImageId'],_0x2b2dae);});});}}class x{['loader'];['editor'];['controller'];constructor(_0x486a66,_0x16bf90){this['loader']=_0x486a66,this['editor']=_0x16bf90,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0xf7c8dd=this['editor']['config']['get']('uploadcare.pubkey'),_0x52cb3c=await this['loader']['file'];return C['upload']({'file':_0x52cb3c,'publicKey':_0xf7c8dd,'signal':this['controller']['signal'],'onProgress':_0x16e4cb=>{_0x16e4cb&&_0x16e4cb['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x16e4cb['value']);}})['then'](async _0x4827f7=>{const {imageFallbackUrl:_0x316bca,imageSources:_0xf8c06e}=E(_0x4827f7['cdnUrl'],_0x4827f7['imageInfo']['width']);return{'uploadcareImageId':_0x4827f7['uuid'],'default':_0x316bca,'sources':_0xf8c06e};})['catch'](()=>{const _0x10e893=t('Cannot\x20upload\x20file:')+('\x20'+_0x52cb3c['name']+'.');return Promise['reject'](_0x10e893);});}['abort'](){this['controller']['abort']();}}class i extends _0x51e1a9{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',p,_0x4cefb7];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}['init'](){const _0x2e245d=this['editor'];_0x2e245d['commands']['add']('uploadcare',new n(_0x2e245d));}['afterInit'](){this['_initSchema'](),this['_initConversion'](),this['_initConfig'](),this['_initCtx'](),this['_initImageProcessingIndicator'](),this['listenTo'](this['editor'],'destroy',()=>{this['_configElement']&&(this['_configElement']['remove'](),this['_configElement']=null),this['_ctxElement']&&(this['_ctxElement']['remove'](),this['_ctxElement']=null);const _0x3b6cea=_0x3416d5['document']['querySelector']('input[uploadcare-file-input]');_0x3b6cea&&_0x3b6cea['remove']();}),async function(_0x1f9adb){const _0x1fdcfa=_0x40aed8([0x74,0x36,0x6b,0x77,0x72,0x48,0x31,0x32,0x68,0x6d,0x37,0x4c,0x58,0x6c,0x62,0x49,0x38,0x75,0x46,0x4a,0x4b,0x63,0x45,0x55,0x44,0x43,0x79,0x57,0x64,0x70,0x35,0x53,0x67,0x4e,0x6e,0x76,0x6a,0x39,0x66,0x34,0x33,0x7a,0x51,0x54,0x69,0x73,0x61,0x78,0x65,0x59,0x47,0x71,0x30,0x41,0x42,0x4f,0x52,0x5a,0x4d,0x6f,0x56,0x50]),_0x55d5df=0x3b715275,_0x27ca96=0x3b763715^_0x55d5df,_0x1026d9=window[_0x40aed8([0x44,0x61,0x74,0x65])][_0x40aed8([0x6e,0x6f,0x77])](),_0x4c810c=_0x1f9adb[_0x40aed8([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x23bcb7=new window[(_0x40aed8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x52f1fe=>{_0x4c810c[_0x40aed8([0x6f,0x6e,0x63,0x65])](_0x40aed8([0x72,0x65,0x61,0x64,0x79]),_0x52f1fe);}),_0x5e1a66={[_0x40aed8([0x6b,0x74,0x79])]:_0x40aed8([0x45,0x43]),[_0x40aed8([0x75,0x73,0x65])]:_0x40aed8([0x73,0x69,0x67]),[_0x40aed8([0x63,0x72,0x76])]:_0x40aed8([0x50,0x2d,0x32,0x35,0x36]),[_0x40aed8([0x78])]:_0x40aed8([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]),[_0x40aed8([0x79])]:_0x40aed8([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]),[_0x40aed8([0x61,0x6c,0x67])]:_0x40aed8([0x45,0x53,0x32,0x35,0x36])},_0x43359e=_0x4c810c[_0x40aed8([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x40aed8([0x67,0x65,0x74])](_0x40aed8([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x32d954(){let _0x4ad893,_0x21fc9b=null,_0x16cad9=null;try{if(_0x43359e==_0x40aed8([0x47,0x50,0x4c]))return _0x40aed8([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x4ad893=_0xaa385d(),!_0x4ad893)return _0x40aed8([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x4ad893[_0x40aed8([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x16cad9=_0x37da4a(_0x4ad893[_0x40aed8([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x4ad893[_0x40aed8([0x6a,0x74,0x69])])),await _0xeac73b()?_0x539e06()?_0x1bdac9()?_0x40aed8([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x59661d()?(_0x4ad893[_0x40aed8([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x40aed8([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x21fc9b=_0x3ba13e(_0x40aed8([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x4ad893[_0x40aed8([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x40aed8([0x74,0x72,0x69,0x61,0x6c])&&(_0x21fc9b=_0x3ba13e(_0x40aed8([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x5c1531()):_0x40aed8([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x40aed8([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x40aed8([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x156450){return _0x40aed8([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x1bdac9(){const _0x55100d=[_0x40aed8([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x40aed8([0x74,0x72,0x69,0x61,0x6c])][_0x40aed8([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4ad893[_0x40aed8([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x1026d9/0x3e8:0xe10*_0x27ca96;return _0x4ad893[_0x40aed8([0x65,0x78,0x70])]<_0x55100d;}function _0x539e06(){const _0x1af765=_0x4ad893[_0x40aed8([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x1af765&&(!!_0x1af765[_0x40aed8([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x40aed8([0x2a]))||!!_0x1af765[_0x40aed8([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x40aed8([0x55,0x50,0x4c,0x43])));}function _0x59661d(){const _0x3a30b0=_0x4ad893[_0x40aed8([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x3a30b0||0x0==_0x3a30b0[_0x40aed8([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x43d623}=new URL(window[_0x40aed8([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x3a30b0[_0x40aed8([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x43d623))return!0x0;const _0x2c7481=_0x43d623[_0x40aed8([0x73,0x70,0x6c,0x69,0x74])](_0x40aed8([0x2e]));return _0x3a30b0[_0x40aed8([0x66,0x69,0x6c,0x74,0x65,0x72])](_0xe4d391=>_0xe4d391[_0x40aed8([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x40aed8([0x2a])))[_0x40aed8([0x6d,0x61,0x70])](_0xe3d011=>_0xe3d011[_0x40aed8([0x73,0x70,0x6c,0x69,0x74])](_0x40aed8([0x2e])))[_0x40aed8([0x73,0x6f,0x6d,0x65])](_0xb26d5c=>_0x2c7481[_0x40aed8([0x65,0x76,0x65,0x72,0x79])]((_0x3bc7bc,_0x4a1cb8)=>_0xb26d5c[_0x4a1cb8]===_0x3bc7bc||_0xb26d5c[_0x4a1cb8]===_0x40aed8([0x2a])));}function _0x5c1531(){return _0x21fc9b&&_0x16cad9?new window[(_0x40aed8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x11e3e0,_0x5d4523)=>{_0x21fc9b[_0x40aed8([0x74,0x68,0x65,0x6e])](_0x11e3e0,_0x5d4523),_0x16cad9[_0x40aed8([0x74,0x68,0x65,0x6e])](_0xe95b7b=>{_0xe95b7b!=_0x40aed8([0x56,0x61,0x6c,0x69,0x64])&&_0x11e3e0(_0xe95b7b);},_0x5d4523);}):_0x21fc9b||_0x16cad9||_0x40aed8([0x56,0x61,0x6c,0x69,0x64]);}}function _0x37da4a(_0x32aa4b,_0x13fe67){return new window[(_0x40aed8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x130051=>{if(_0x264c41())return _0x130051(_0x40aed8([0x56,0x61,0x6c,0x69,0x64]));_0x4227b2(),_0x4c810c[_0x40aed8([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x40aed8([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x93503e=!0x1;const _0x2bbbe7=_0x27e0ae();function _0x14e0b4(_0x2c690e){return!!_0x2c690e&&(typeof _0x2c690e===_0x40aed8([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x2c690e===_0x40aed8([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x2c690e[_0x40aed8([0x74,0x68,0x65,0x6e])]===_0x40aed8([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x2c690e[_0x40aed8([0x63,0x61,0x74,0x63,0x68])]===_0x40aed8([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x152414(_0x1b2cbc){_0x54ce3e(_0x1b2cbc)[_0x40aed8([0x74,0x68,0x65,0x6e])](_0x404434=>{if(!_0x404434||_0x404434[_0x40aed8([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x40aed8([0x6f,0x6b]))return _0x40aed8([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x5cc2aa(_0x18b9ef(_0x2bbbe7+_0x13fe67))!=_0x404434[_0x40aed8([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x40aed8([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x40aed8([0x56,0x61,0x6c,0x69,0x64]);})[_0x40aed8([0x74,0x68,0x65,0x6e])](_0x5d6f49=>(_0x26dde1(),_0x5d6f49),()=>{const _0x2c4ce2=_0xd4c1d3();return null==_0x2c4ce2?(_0x26dde1(),_0x40aed8([0x56,0x61,0x6c,0x69,0x64])):_0x40aed8(_0x1026d9-_0x2c4ce2>(0x1f7dd675^_0x55d5df)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x40aed8([0x74,0x68,0x65,0x6e])](_0x130051)[_0x40aed8([0x63,0x61,0x74,0x63,0x68])](()=>{_0x130051(_0x40aed8([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x5a7ac8=0x3b47bcf5^_0x55d5df;function _0x26dde1(){const _0x4cf75f=_0x40aed8([0x6c,0x6c,0x63,0x74,0x2d])+_0x5cc2aa(_0x18b9ef(_0x32aa4b)),_0x3ba061=_0x2c2e1e(_0x5cc2aa(window[_0x40aed8([0x4d,0x61,0x74,0x68])][_0x40aed8([0x63,0x65,0x69,0x6c])](_0x1026d9/_0x5a7ac8)));window[_0x40aed8([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x40aed8([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4cf75f,_0x3ba061);}function _0xd4c1d3(){const _0x46772e=_0x40aed8([0x6c,0x6c,0x63,0x74,0x2d])+_0x5cc2aa(_0x18b9ef(_0x32aa4b)),_0x8ca94b=window[_0x40aed8([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x40aed8([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x46772e);return _0x8ca94b?window[_0x40aed8([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2c2e1e(_0x8ca94b),0x10)*_0x5a7ac8:null;}function _0x54ce3e(_0x1a7d45){return new window[(_0x40aed8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0xe2118d,_0x18f77b)=>{_0x1a7d45[_0x40aed8([0x74,0x68,0x65,0x6e])](_0xe2118d,_0x18f77b),window[_0x40aed8([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x18f77b,0x3b7086b5^_0x55d5df);});}}_0x4c810c[_0x40aed8([0x6f,0x6e])](_0x40aed8([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0xa53609,_0x4abfb6)=>{if(_0x4abfb6[0x0]!=_0x32aa4b)return _0x130051(_0x40aed8([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x4abfb6[0x1]={..._0x4abfb6[0x1],[_0x40aed8([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x2bbbe7};},{[_0x40aed8([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x40aed8([0x68,0x69,0x67,0x68])}),_0x4c810c[_0x40aed8([0x6f,0x6e])](_0x40aed8([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x1acce4=>{_0x14e0b4(_0x1acce4[_0x40aed8([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x93503e=!0x0,_0x152414(_0x1acce4[_0x40aed8([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x40aed8([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x40aed8([0x6c,0x6f,0x77])}),_0x23bcb7[_0x40aed8([0x74,0x68,0x65,0x6e])](()=>{_0x93503e||_0x130051(_0x40aed8([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x264c41(){return _0x4c810c[_0x40aed8([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x40aed8([0x76,0x69,0x65,0x77])][_0x40aed8([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x40aed8([0x61,0x75,0x74,0x6f]);}function _0x4227b2(){_0x4c810c[_0x40aed8([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x40aed8([0x76,0x69,0x65,0x77])][_0x40aed8([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x40aed8([0x61,0x75,0x74,0x6f]);}}function _0x3ba13e(_0x3e9715){const _0x4a5534=[new window[(_0x40aed8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x438e95=>setTimeout(_0x438e95,0x3b786cb9^_0x55d5df)),_0x23bcb7[_0x40aed8([0x74,0x68,0x65,0x6e])](()=>new window[(_0x40aed8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x153b99=>{let _0x2ac549=0x0;_0x4c810c[_0x40aed8([0x6d,0x6f,0x64,0x65,0x6c])][_0x40aed8([0x6f,0x6e])](_0x40aed8([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x2aaddb,_0x3a62f8)=>{_0x3a62f8[0x0][_0x40aed8([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x2ac549++,_0x2ac549==(0x3b71538d^_0x55d5df)&&(_0x153b99(),_0x2aaddb[_0x40aed8([0x6f,0x66,0x66])]());});}))];return window[_0x40aed8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x40aed8([0x72,0x61,0x63,0x65])](_0x4a5534)[_0x40aed8([0x74,0x68,0x65,0x6e])](()=>_0x3e9715);}async function _0x2448ee(){await _0x23bcb7,_0x4c810c[_0x40aed8([0x6d,0x6f,0x64,0x65,0x6c])][_0x40aed8([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x2f6ee2,_0x4c810c[_0x40aed8([0x6d,0x6f,0x64,0x65,0x6c])][_0x40aed8([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x2f6ee2,_0x4c810c[_0x40aed8([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x40aed8([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x333ecf(_0x116d5b){const _0x50eca5=_0x3e4b03();_0x4c810c[_0x50eca5]=_0x40aed8([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x116d5b,_0x116d5b!=_0x40aed8([0x56,0x61,0x6c,0x69,0x64])&&_0x2448ee();}function _0x3e4b03(){const _0x1f48fb=window[_0x40aed8([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x40aed8([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x40aed8([0x6e,0x6f,0x77])]())[_0x40aed8([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x40aed8([0x2e]),'');let _0x5dab99=_0x40aed8([0x74]);for(let _0x508624=0x0;_0x508624<_0x1f48fb[_0x40aed8([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x508624+=0x2){let _0x1509d5=window[_0x40aed8([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1f48fb[_0x40aed8([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x508624,_0x508624+0x2));_0x1509d5>=_0x1fdcfa[_0x40aed8([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x1509d5-=_0x1fdcfa[_0x40aed8([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x5dab99+=_0x1fdcfa[_0x1509d5];}return _0x5dab99;}function _0xaa385d(){const _0x5aa2f7=_0x43359e[_0x40aed8([0x73,0x70,0x6c,0x69,0x74])](_0x40aed8([0x2e]));if(0x3!=_0x5aa2f7[_0x40aed8([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x5e0051(_0x5aa2f7[0x1]);function _0x5e0051(_0xd39635){const _0x4a6106=_0x3cbfe0(_0xd39635);return _0x4a6106&&_0x581cca()?_0x4a6106:null;function _0x581cca(){const _0x1f265d=_0x4a6106[_0x40aed8([0x6a,0x74,0x69])],_0x33c17b=window[_0x40aed8([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1f265d[_0x40aed8([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x1f265d[_0x40aed8([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x372e8d={..._0x4a6106,[_0x40aed8([0x6a,0x74,0x69])]:_0x1f265d[_0x40aed8([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x1f265d[_0x40aed8([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x372e8d[_0x40aed8([0x76,0x63])],_0x18b9ef(_0x372e8d)==_0x33c17b;}}}async function _0xeac73b(){let _0x498c90=!0x0;try{const _0x11073e=_0x43359e[_0x40aed8([0x73,0x70,0x6c,0x69,0x74])](_0x40aed8([0x2e])),[_0x25069b,_0x5559df,_0x2745e7]=_0x11073e;return _0x33f2f4(_0x25069b),await _0x5520b8(_0x25069b,_0x5559df,_0x2745e7),_0x498c90;}catch(_0x349e2b){return!0x1;}function _0x33f2f4(_0x105672){const _0xfd97b1=_0x3cbfe0(_0x105672);_0xfd97b1&&_0xfd97b1[_0x40aed8([0x61,0x6c,0x67])]==_0x40aed8([0x45,0x53,0x32,0x35,0x36])||(_0x498c90=!0x1);}async function _0x5520b8(_0x2e62a7,_0x8e443b,_0x124336){const _0x5b41a9=window[_0x40aed8([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x40aed8([0x66,0x72,0x6f,0x6d])](_0x34c146(_0x124336),_0x1fc650=>_0x1fc650[_0x40aed8([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x2e95c5=new window[(_0x40aed8([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x40aed8([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x2e62a7+_0x40aed8([0x2e])+_0x8e443b),_0x557125=window[_0x40aed8([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x40aed8([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x557125)return;const _0x7299a6=await _0x557125[_0x40aed8([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x40aed8([0x6a,0x77,0x6b]),_0x5e1a66,{[_0x40aed8([0x6e,0x61,0x6d,0x65])]:_0x40aed8([0x45,0x43,0x44,0x53,0x41]),[_0x40aed8([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x40aed8([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x40aed8([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x557125[_0x40aed8([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x40aed8([0x6e,0x61,0x6d,0x65])]:_0x40aed8([0x45,0x43,0x44,0x53,0x41]),[_0x40aed8([0x68,0x61,0x73,0x68])]:{[_0x40aed8([0x6e,0x61,0x6d,0x65])]:_0x40aed8([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x7299a6,_0x5b41a9,_0x2e95c5)||(_0x498c90=!0x1);}}function _0x3cbfe0(_0x504535){return _0x504535[_0x40aed8([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x40aed8([0x65,0x79]))?JSON[_0x40aed8([0x70,0x61,0x72,0x73,0x65])](_0x34c146(_0x504535)):null;}function _0x34c146(_0x30ceac){return window[_0x40aed8([0x61,0x74,0x6f,0x62])](_0x30ceac[_0x40aed8([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x40aed8([0x2b]))[_0x40aed8([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x40aed8([0x2f])));}function _0x18b9ef(_0x510cb4){let _0x2cc4af=0x1505;function _0x494cd1(_0x4188e9){for(let _0x4896be=0x0;_0x4896be<_0x4188e9[_0x40aed8([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4896be++){const _0x596570=_0x4188e9[_0x40aed8([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x4896be);_0x2cc4af=(_0x2cc4af<<0x5)+_0x2cc4af+_0x596570,_0x2cc4af&=_0x2cc4af;}}function _0x41fa23(_0x5e98f8){Array[_0x40aed8([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x5e98f8)?_0x5e98f8[_0x40aed8([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x41fa23):_0x5e98f8&&typeof _0x5e98f8==_0x40aed8([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x40aed8([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x5e98f8)[_0x40aed8([0x73,0x6f,0x72,0x74])]()[_0x40aed8([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x4670f3,_0x5186d6])=>{_0x494cd1(_0x4670f3),_0x41fa23(_0x5186d6);}):_0x494cd1(window[_0x40aed8([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x5e98f8));}return _0x41fa23(_0x510cb4),_0x2cc4af>>>0x0;}function _0x5cc2aa(_0x22ec94){return _0x22ec94[_0x40aed8([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x40aed8([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x40aed8([0x30]));}function _0x2c2e1e(_0x45f49e){return _0x45f49e[_0x40aed8([0x73,0x70,0x6c,0x69,0x74])]('')[_0x40aed8([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x40aed8([0x6a,0x6f,0x69,0x6e])]('');}function _0x2f6ee2(){}function _0x40aed8(_0x9bed36){return _0x9bed36['map'](_0x282224=>String['fromCharCode'](_0x282224))['join']('');}_0x333ecf(await _0x32d954());}(this);}['_initSchema'](){const _0x189b35=this['editor']['model']['schema'];_0x189b35['isRegistered']('imageBlock')&&_0x189b35['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x189b35['isRegistered']('imageInline')&&_0x189b35['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x2719d5=this['editor'];_0x2719d5['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x2719d5['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x2852af=>_0x2852af['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x57f481=_0x2719d5['commands']['get']('replaceImageSource');_0x57f481&&this['listenTo'](_0x57f481,'cleanupImage',(_0x56b2b0,[_0xe8bf61,_0x34c5da])=>{_0xe8bf61['removeAttribute']('uploadcareImageId',_0x34c5da);});}['_initConfig'](){const _0x57b35e=this['editor']['config']['get']('uploadcare.uploader')||{},_0x284eca=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x3eb501(_0x3416d5['document'],'uc-config',{..._0x57b35e,'pubkey':_0x284eca,'ctx-name':'uploader','sourceList':'','imgOnly':'true','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage'],'externalSourcesEmbedCss':'\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup\x20{\x20padding:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-menu\x20{\x20gap:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-footer\x20{\x20padding-top:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__separator\x20{\x20margin:\x200;\x20}\x0a\x09\x09\x09'}),this['_configElement']['iconHrefResolver']=_0x2cb7d2=>{if('closeMax'==_0x2cb7d2)return'#uc-icon-arrow-down';},_0x3416d5['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x3eb501(_0x3416d5['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader'}),_0x3416d5['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x220800=this['editor']['commands']['get']('insertImage');_0x220800&&this['listenTo'](_0x220800,'execute',()=>{const _0x38640e=this['editor']['model']['document']['selection']['getSelectedElement']();_0x38640e&&_0x38640e['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{m(this['editor'],_0x38640e);});});const _0x167a70=this['editor']['commands']['get']('uploadcareImageReplace');_0x167a70&&this['listenTo'](_0x167a70,'execute',()=>{const _0x275425=this['editor']['model']['document']['selection']['getSelectedElement']();_0x275425&&_0x275425['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{m(this['editor'],_0x275425);});});}}class u extends _0x51e1a9{static get['requires'](){return[i,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x49c0c9){super(_0x49c0c9),_0x49c0c9['config']['define']('uploadcare.uploader.sourceList',[o['Local'],o['URL']]),_0x9c75c1['defineComponents'](_0x9c75c1);}}class ta extends _0x59edb5{constructor(_0x379939){super(_0x379939);const t=_0x379939['t'],_0xd692a7=this['bindTemplate'],_0x7b3bf0=new _0x5381a9();_0x7b3bf0['isVisible']=!0x0,this['setTemplate']({'tag':'div','attributes':{'class':['ck-uploadcare-form__loading'],'tabindex':'-1'},'children':[{'tag':'div','attributes':{'class':['ck-uploadcare-form__loading-spinner']},'children':[_0x7b3bf0,{'text':_0xd692a7['to']('imageUploadProgress',_0x186dda=>t('Loading\x20image...')+'\x20('+(_0x186dda||0x0)+'%)')}]},{'tag':'div','attributes':{'class':['ck-uploadcare-form__skeleton']},'children':[{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'}]},{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'}]}]}]});}}class rt extends _0x59edb5{constructor(_0x38813b){super(_0x38813b);const t=_0x38813b['t'];this['set']('errorType',null);const _0x1f4019=new _0x56ca7a(_0x38813b);_0x1f4019['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x1f4019['withText']=!0x0,_0x1f4019['class']='ck-button-action',_0x1f4019['on']('execute',()=>{this['fire']('retry');}),_0x1f4019['bind']('isVisible')['to'](this,'errorType',_0x24d237=>'NotFound'!==_0x24d237);const _0x45db1d=new at();_0x45db1d['content']=et,_0x45db1d['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x4619ba=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':{'class':['ck-uploadcare-form__error'],'tabindex':'-1'},'children':[{'tag':'div','attributes':{'class':['ck-uploadcare-form__error-contents']},'children':[_0x45db1d,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x4619ba['to']('errorType',_0x38c2a6=>t('NotFound'!==_0x38c2a6?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x1f4019]},{'tag':'div','attributes':{'class':['ck-uploadcare-form__skeleton']},'children':[{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'}]},{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'}]}]}]});}}class tt extends _0x59edb5{constructor(_0x148154,_0x1a52c8){super(_0x148154);const _0x2c898d=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x1a52c8,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x2c898d['to']('imageSrc')}});}}class Z extends q{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x6c1c5d,_0x1398bb,_0x264ebe){super(_0x6c1c5d),this['_items']=this['createCollection'](),this['_loadingView']=new ta(_0x6c1c5d),this['_errorView']=new rt(_0x6c1c5d),this['_editingView']=new tt(_0x6c1c5d,_0x264ebe),this['_focusableView']=new _0x59edb5(_0x6c1c5d),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x1398bb),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all-excluded','ck-uploadcare-form'],'tabindex':'-1'},'children':this['_items']}),this['_setView'](),this['once']('render',()=>{this['_waitForImageEditorComponent'](this['element'],_0x34d276=>{this['_addUploadcareImageEditorListeners'](_0x34d276);});}),this['on']('change:status',()=>{this['_setView']();}),this['_addErrorViewListeners']();}['focus'](){this['element']['focus']();}['_setView'](){switch(this['_items']['clear'](),this['status']){case'uploading':this['_items']['add'](this['_loadingView']);break;case'error':this['_items']['add'](this['_errorView']);break;case'ready':this['_items']['addMany']([this['_editingView'],this['_focusableView']]);}}['_waitForImageEditorComponent'](_0x215bf0,_0x48820a){const _0x2d4f44='uc-cloud-image-editor',_0xfe1ec2=_0x215bf0['querySelector'](_0x2d4f44);if(_0xfe1ec2)return _0x48820a(_0xfe1ec2);const _0x5f0517=new MutationObserver(_0x48b0f6=>{const _0x57140f=_0x48b0f6['filter'](_0xf10af=>_0xf10af['target']===_0x215bf0&&_0xf10af['addedNodes']['length']>0x0&&_0xf10af['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x2d4f44);_0x57140f['length']&&(_0x5f0517['disconnect'](),_0x48820a(_0x57140f[0x0]['addedNodes'][0x0]));});_0x5f0517['observe'](_0x215bf0,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0xb64bfc){_0xb64bfc['addEventListener']('apply',_0x551cfd=>{this['fire']('apply',{'imageSrc':_0x551cfd['detail']['cdnUrl']});}),_0xb64bfc['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class z extends/* #__PURE__ -- @preserve */
25
+ _0x322056(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x5f1e3b,_0x5e370f,_0x2a3e19){super(),this['_editor']=_0x5f1e3b,this['_dialog']=_0x5e370f,this['_imageElement']=_0x2a3e19,this['_imageCache']=this['_editor']['plugins']['get']('UploadcareImageEditUI')['imageCache'],this['_attributes']=this['_editor']['config']['get']('uploadcare.editor')||{},this['set']({'isActive':!0x0,'imageStatus':'ready','imageErrorType':null,'imageId':null,'imageSrc':null,'imageDimension':null,'imageUploadProgress':null}),this['_prepareImage'](),this['_showDialog']();}['destroy'](){this['isActive']=!0x1,this['stopListening'](),this['stopDelegating'](),'uploading'===this['imageStatus']&&this['_controller']&&this['_controller']['abort']();}async['_prepareImage'](){const _0x431f4f=this['_imageElement'],_0x11acc0=_0x431f4f['getAttribute']('uploadcareImageId'),_0x46e7c9=_0x431f4f['getAttribute']('src');if(_0x11acc0)await this['_loadImageInfo'](_0x11acc0,_0x46e7c9);else{if(this['_imageCache']['has'](_0x46e7c9)){const _0x36561f=this['_imageCache']['get'](_0x46e7c9);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x36561f['url'],this['imageDimension']=_0x36561f['dimension'],this['imageId']=_0x36561f['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x5e0849}=this['_editor'],t=_0x5e0849['t'],_0x235230=new Z(_0x5e0849,this['imageStatus'],this['_attributes']);_0x235230['bind']('status')['to'](this,'imageStatus'),_0x235230['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x235230['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x235230['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x235230,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x3539a5,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x235230,'position':_0xa7f5da['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x235230['focus']();},'onHide':()=>{_0x235230['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x2cb6aa=>!F(_0x2cb6aa,_0x235230['element'])}});}['_loadImageInfo'](_0x53c4a5,_0x12c5a7){return C['getInfo'](_0x53c4a5,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey')})['then'](_0x388dbf=>{const {width:_0x1839e0,height:_0xe5b37d}=_0x388dbf['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x12c5a7,this['imageDimension']={'width':_0x1839e0,'height':_0xe5b37d},this['imageId']=_0x53c4a5;})['catch'](_0x54a321=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x54a321['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x5dd85a,_0x58ed3d){return this['_getImageAsFile'](_0x5dd85a)['then'](_0x2ba8b6=>C['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'signal':_0x58ed3d['signal'],'file':_0x2ba8b6,'onProgress':_0x59ab73=>{_0x59ab73&&_0x59ab73['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x59ab73['value']));}}))['then'](_0x27e4b2=>{const {width:_0x3f8d64,height:_0x4c799d}=_0x27e4b2['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x27e4b2['cdnUrl'],this['imageDimension']={'width':_0x3f8d64,'height':_0x4c799d},this['imageId']=_0x27e4b2['uuid'],this['imageUploadProgress']=null;const _0x42b193=_0x5dd85a['getAttribute']('src');this['_imageCache']['set'](_0x42b193,{'id':_0x27e4b2['uuid'],'url':_0x27e4b2['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x246b96=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x246b96['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x4c49f9,_0x488d93){_0x4c49f9['on']('apply',(_0x4fd052,_0x5329f5)=>{this['_replaceImage'](_0x488d93,_0x5329f5['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x4c49f9['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x4c49f9['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x675cdc,_0x3fd38f,_0x57f52d){const _0x41a2ef=this['_editor'],{width:_0x4e161b,height:_0xe2af5f}=A(_0x3fd38f,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x3d7e6c,imageSources:_0x3f3afe}=E(_0x3fd38f,_0x4e161b);_0x41a2ef['model']['change'](_0xc959ff=>{if('$graveyard'===_0x675cdc['root']['rootName']){_0x41a2ef['execute']('insertImage',{'imageType':_0x675cdc['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x675cdc['getAttributes']()),'uploadcareImageId':_0x57f52d,'src':_0x3d7e6c,'sources':_0x3f3afe,'width':_0x4e161b,'height':_0xe2af5f}});const _0x2a2027=_0x675cdc['getChildren']();_0x675cdc=_0x41a2ef['model']['document']['selection']['getSelectedElement']();for(const _0x882373 of _0x2a2027)_0xc959ff['append'](_0xc959ff['cloneElement'](_0x882373),_0x675cdc);}else _0xc959ff['setSelection'](_0x675cdc,'on'),_0x41a2ef['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x675cdc['getAttributes']()),'uploadcareImageId':_0x57f52d,'src':_0x3d7e6c,'sources':_0x3f3afe,'width':_0x4e161b,'height':_0xe2af5f},_0x675cdc);_0xc959ff['setSelection'](_0x675cdc,'on');});}async['_getImageAsFile'](_0x65f6fd){const _0x8750b=_0x3416d5['window'],_0x179741=_0x3416d5['document']['location']['href'],_0xbc2851=new _0x8750b['URL'](_0x65f6fd['getAttribute']('src'),_0x179741);if('data:'===_0xbc2851['protocol']){const _0x367107=_0xbc2851['href']['split'](','),_0x4e87f8=_0x367107[0x0]['match'](/:(.*?);/)[0x1],_0x4bd308=_0x4e87f8['split']('/')[0x1],_0x111a82=_0x8750b['atob'](_0x367107[_0x367107['length']-0x1]);let _0xd1463d=_0x111a82['length'];const _0x5d6c22=new _0x8750b['Uint8Array'](_0xd1463d);for(;_0xd1463d--;)_0x5d6c22[_0xd1463d]=_0x111a82['charCodeAt'](_0xd1463d);return new _0x8750b['File']([_0x5d6c22],'image.'+_0x4bd308,{'type':_0x4e87f8});}const _0x575b2c=_0xbc2851['href']['split']('/'),_0x31b2a5=_0x575b2c[_0x575b2c['length']-0x1],_0x1323f2=_0x31b2a5['split']('.')[0x1];return _0x8750b['fetch'](_0xbc2851['href'])['then'](_0x3593f4=>_0x3593f4['clone']()['blob']())['then'](_0x3a1dd9=>new _0x8750b['File']([_0x3a1dd9],_0x31b2a5,{'type':'image/'+_0x1323f2}));}}class J extends _0x29a9f3{['imageEditController'];static get['requires'](){return[_0x4cefb7];}['_isEditable'];constructor(_0x1529e4){super(_0x1529e4),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x20a24b){const _0x55d5ea=V(_0x20a24b);return _0x23a306=>!(!_0x23a306||!_0x23a306['is']('element','imageBlock')&&!_0x23a306['is']('element','imageInline'))&&(!!_0x23a306['hasAttribute']('uploadcareImageId')||!!_0x23a306['hasAttribute']('src')&&_0x55d5ea(_0x23a306['getAttribute']('src')));}(_0x1529e4['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x18c725=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x18c725);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x3cdd33=this['editor']['model']['document']['selection']['getSelectedElement']();_0x3cdd33&&(_0x3cdd33['is']('element','imageBlock')||_0x3cdd33['is']('element','imageInline'))&&(this['imageEditController']=new z(this['editor'],this['editor']['plugins']['get'](_0x4cefb7),_0x3cdd33),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class O extends _0x29a9f3{['refresh'](){const _0x3230c8=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x3230c8&&(_0x3230c8['is']('element','imageBlock')||_0x3230c8['is']('element','imageInline')));}['execute'](_0x3b1ba6){const _0x25092d=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x2a4489=>{_0x2a4489['setAttributes'](_0x3b1ba6,_0x25092d),_0x2a4489['removeAttribute']('srcset',_0x25092d),_0x2a4489['removeAttribute']('sizes',_0x25092d);});}}class g extends _0x51e1a9{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[i,_0x38b10f,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x1b66ec}=this;_0x1b66ec['commands']['add']('uploadcareImageEdit',new J(_0x1b66ec)),_0x1b66ec['commands']['add']('uploadcareImageReplace',new O(_0x1b66ec));}}class j extends _0x51e1a9{['_imageCache']=new Map();static get['pluginName'](){return'UploadcareImageEditUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['imageCache'](){return this['_imageCache'];}['init'](){const _0x2eef87=this['editor'];_0x2eef87['ui']['componentFactory']['add']('uploadcareImageEdit',_0x36aeda=>{const _0x1cb19b=_0x2eef87['commands']['get']('uploadcareImageEdit'),_0x4e5f4d=new _0x56ca7a(_0x36aeda),t=_0x36aeda['t'];return _0x4e5f4d['set']({'icon':_0x3539a5,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x4e5f4d['bind']('isEnabled')['to'](_0x1cb19b),_0x4e5f4d['bind']('isOn')['to'](_0x1cb19b,'isActive'),this['listenTo'](_0x4e5f4d,'execute',()=>{_0x2eef87['execute']('uploadcareImageEdit'),_0x2eef87['editing']['view']['focus']();}),_0x4e5f4d;}),this['_initConfig']();}['_initConfig'](){const _0x47d974=_0x3eb501(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x47d974),this['listenTo'](this['editor'],'destroy',()=>{_0x47d974['remove']();});}}class P extends _0x51e1a9{static get['pluginName'](){return'UploadcareImageEdit';}static get['requires'](){return[g,j];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{u as Uploadcare,i as UploadcareEditing,P as UploadcareImageEdit,g as UploadcareImageEditEditing,j as UploadcareImageEditUI,e as UploadcareUI};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ckeditor/ckeditor5-uploadcare",
3
- "version": "0.0.0-nightly-20250416.0",
3
+ "version": "0.0.0-nightly-20250418.0",
4
4
  "description": "Uploadcare feature for CKEditor 5.",
5
5
  "license": "SEE LICENSE IN LICENSE.md",
6
6
  "author": "CKSource (http://cksource.com/)",
@@ -23,14 +23,14 @@
23
23
  "framework"
24
24
  ],
25
25
  "dependencies": {
26
- "@ckeditor/ckeditor5-core": "0.0.0-nightly-20250416.0",
27
- "@ckeditor/ckeditor5-icons": "0.0.0-nightly-20250416.0",
28
- "@ckeditor/ckeditor5-image": "0.0.0-nightly-20250416.0",
29
- "@ckeditor/ckeditor5-theme-lark": "0.0.0-nightly-20250416.0",
30
- "@ckeditor/ckeditor5-ui": "0.0.0-nightly-20250416.0",
31
- "@ckeditor/ckeditor5-upload": "0.0.0-nightly-20250416.0",
32
- "@ckeditor/ckeditor5-utils": "0.0.0-nightly-20250416.0",
33
- "ckeditor5": "0.0.0-nightly-20250416.0",
26
+ "@ckeditor/ckeditor5-core": "0.0.0-nightly-20250418.0",
27
+ "@ckeditor/ckeditor5-icons": "0.0.0-nightly-20250418.0",
28
+ "@ckeditor/ckeditor5-image": "0.0.0-nightly-20250418.0",
29
+ "@ckeditor/ckeditor5-theme-lark": "0.0.0-nightly-20250418.0",
30
+ "@ckeditor/ckeditor5-ui": "0.0.0-nightly-20250418.0",
31
+ "@ckeditor/ckeditor5-upload": "0.0.0-nightly-20250418.0",
32
+ "@ckeditor/ckeditor5-utils": "0.0.0-nightly-20250418.0",
33
+ "ckeditor5": "0.0.0-nightly-20250418.0",
34
34
  "@uploadcare/file-uploader": "1.12.0",
35
35
  "@uploadcare/upload-client": "6.14.1"
36
36
  },
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x49f0d8=_0x2d58;(function(_0x1256c0,_0x18b2c6){const _0x4eaec1=_0x2d58,_0x309496=_0x1256c0();while(!![]){try{const _0x2c7248=-parseInt(_0x4eaec1(0x9f))/0x1*(parseInt(_0x4eaec1(0xa3))/0x2)+-parseInt(_0x4eaec1(0xba))/0x3*(-parseInt(_0x4eaec1(0xb4))/0x4)+-parseInt(_0x4eaec1(0xc8))/0x5*(-parseInt(_0x4eaec1(0xbe))/0x6)+-parseInt(_0x4eaec1(0x85))/0x7+-parseInt(_0x4eaec1(0x8e))/0x8+parseInt(_0x4eaec1(0x8b))/0x9*(parseInt(_0x4eaec1(0x9c))/0xa)+parseInt(_0x4eaec1(0xc1))/0xb*(parseInt(_0x4eaec1(0x9e))/0xc);if(_0x2c7248===_0x18b2c6)break;else _0x309496['push'](_0x309496['shift']());}catch(_0x27ab00){_0x309496['push'](_0x309496['shift']());}}}(_0x5c03,0xf29b9));import{Plugin as _0x12f8bf}from'ckeditor5/src/core.js';function _0x2d58(_0x463924,_0x11e014){const _0x5c03dd=_0x5c03();return _0x2d58=function(_0x2d58e5,_0x1fc2a0){_0x2d58e5=_0x2d58e5-0x7e;let _0x1fdf3d=_0x5c03dd[_0x2d58e5];return _0x1fdf3d;},_0x2d58(_0x463924,_0x11e014);}import{Dialog as _0x586320}from'ckeditor5/src/ui.js';import{createElement as _0x3951aa,global as _0x527a10,uid as _0x265890}from'ckeditor5/src/utils.js';import _0x1fe654 from'./uploadcarecommand.js';import _0x3d4b69 from'./uploadcareuploadadapter.js';function _0x5c03(){const _0x547c43=['afterInit','requires','UploadcareEditing','extend','input[uploadcare-file-input]','render','execute','uc-config','true','map','commands','getSelectedElement','model','ctxElement','7974596qQAtTm','join','_configElement','fromCharCode','body','config','144AQSoek','uploader','closeMax','11346224NseLmd','view','upcast','uploadcare','_initConversion','add','uc-upload-ctx-provider','cleanupImage','imageInline','editing','schema','listenTo','_ctxElement','replaceImageSource','327820lZXshC','PictureEditing','36fWDkyK','65761CnzvFW','imageBlock','downcast','insertImage','4VYcJCp','elementToAttribute','get','data-uc-image-id','uploadcareImageId','isPremiumPlugin','configElement','_initConfig','isRegistered','href','_initCtx','\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup\x20{\x20padding:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-menu\x20{\x20gap:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-footer\x20{\x20padding-top:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__separator\x20{\x20margin:\x200;\x20}\x0a\x09\x09\x09','getAttribute','_initImageProcessingIndicator','attributeToAttribute','uploadcareImageReplace','once','3884TtevOO','uploadcare.pubkey','selection','isOfficialPlugin','removeAttribute','#uc-icon-arrow-down','1983egAEIB','destroy','contentLanguage','document','167004JOtSUC','appendChild','uploadcare.uploader','7287720DSIILr','for','pluginName','_initSchema','init','editor','iconHrefResolver','95BaRUDW','querySelector','remove','locale','conversion'];_0x5c03=function(){return _0x547c43;};return _0x5c03();}import{showImageProcessingIndicator as _0x57b1d0}from'./utils/editingutils.js';export default class i extends _0x12f8bf{[_0x49f0d8(0x87)]=null;[_0x49f0d8(0x9a)]=null;static get[_0x49f0d8(0xc3)](){const _0x5a80fb=_0x49f0d8;return _0x5a80fb(0xcf);}static get[_0x49f0d8(0xce)](){const _0x3bec0f=_0x49f0d8;return[_0x3bec0f(0x9d),_0x3d4b69,_0x586320];}static get[_0x49f0d8(0xb7)](){return!0x0;}static get[_0x49f0d8(0xa8)](){return!0x0;}get[_0x49f0d8(0xa9)](){const _0x3efd90=_0x49f0d8;return this[_0x3efd90(0x87)];}get[_0x49f0d8(0x84)](){const _0x1d62d7=_0x49f0d8;return this[_0x1d62d7(0x9a)];}[_0x49f0d8(0xc5)](){const _0x361b52=_0x49f0d8,_0x51699f=this[_0x361b52(0xc6)];_0x51699f[_0x361b52(0x81)][_0x361b52(0x93)](_0x361b52(0x91),new _0x1fe654(_0x51699f));}[_0x49f0d8(0xcd)](){const _0x4a9635=_0x49f0d8;this[_0x4a9635(0xc4)](),this[_0x4a9635(0x92)](),this[_0x4a9635(0xaa)](),this[_0x4a9635(0xad)](),this[_0x4a9635(0xb0)](),this[_0x4a9635(0x99)](this[_0x4a9635(0xc6)],_0x4a9635(0xbb),()=>{const _0x45eea5=_0x4a9635;this[_0x45eea5(0x87)]&&(this[_0x45eea5(0x87)][_0x45eea5(0xca)](),this[_0x45eea5(0x87)]=null),this[_0x45eea5(0x9a)]&&(this[_0x45eea5(0x9a)][_0x45eea5(0xca)](),this[_0x45eea5(0x9a)]=null);const _0x1bb9e9=_0x527a10[_0x45eea5(0xbd)][_0x45eea5(0xc9)](_0x45eea5(0xd1));_0x1bb9e9&&_0x1bb9e9[_0x45eea5(0xca)]();}),async function(_0x20fd95){const _0x512d96=_0x7abe63([0x77,0x59,0x37,0x53,0x4f,0x31,0x4d,0x42,0x4c,0x54,0x36,0x46,0x33,0x35,0x78,0x75,0x64,0x6a,0x72,0x30,0x4a,0x66,0x6c,0x4b,0x48,0x58,0x4e,0x32,0x47,0x69,0x43,0x55,0x65,0x45,0x41,0x73,0x34,0x79,0x6d,0x7a,0x6f,0x50,0x39,0x57,0x61,0x74,0x68,0x71,0x38,0x56,0x52,0x76,0x67,0x6b,0x51,0x5a,0x62,0x63,0x49,0x6e,0x44,0x70]),_0x434fd7=0x7f57a1d6,_0x536bc8=0x7f50c4e6^_0x434fd7,_0x2763ed=window[_0x7abe63([0x44,0x61,0x74,0x65])][_0x7abe63([0x6e,0x6f,0x77])](),_0x3683b2=_0x20fd95[_0x7abe63([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x4a0669=new window[(_0x7abe63([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x48bc62=>{_0x3683b2[_0x7abe63([0x6f,0x6e,0x63,0x65])](_0x7abe63([0x72,0x65,0x61,0x64,0x79]),_0x48bc62);}),_0x1ca3be={[_0x7abe63([0x6b,0x74,0x79])]:_0x7abe63([0x45,0x43]),[_0x7abe63([0x75,0x73,0x65])]:_0x7abe63([0x73,0x69,0x67]),[_0x7abe63([0x63,0x72,0x76])]:_0x7abe63([0x50,0x2d,0x32,0x35,0x36]),[_0x7abe63([0x78])]:_0x7abe63([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]),[_0x7abe63([0x79])]:_0x7abe63([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]),[_0x7abe63([0x61,0x6c,0x67])]:_0x7abe63([0x45,0x53,0x32,0x35,0x36])},_0x356183=_0x3683b2[_0x7abe63([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x7abe63([0x67,0x65,0x74])](_0x7abe63([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x59407d(){let _0x584cf7,_0x38f815=null,_0x1d82ee=null;try{if(_0x356183==_0x7abe63([0x47,0x50,0x4c]))return _0x7abe63([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x584cf7=_0xb10c9e(),!_0x584cf7)return _0x7abe63([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x584cf7[_0x7abe63([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x1d82ee=_0x4d81dc(_0x584cf7[_0x7abe63([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x584cf7[_0x7abe63([0x6a,0x74,0x69])])),await _0x3c9a69()?_0x218615()?_0x320696()?_0x7abe63([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x473b5c()?(_0x584cf7[_0x7abe63([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x7abe63([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x38f815=_0x39438a(_0x7abe63([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x584cf7[_0x7abe63([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x7abe63([0x74,0x72,0x69,0x61,0x6c])&&(_0x38f815=_0x39438a(_0x7abe63([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x3fa376()):_0x7abe63([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x7abe63([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x7abe63([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x4e22d3){return _0x7abe63([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x320696(){const _0x47649e=[_0x7abe63([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x7abe63([0x74,0x72,0x69,0x61,0x6c])][_0x7abe63([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x584cf7[_0x7abe63([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x2763ed/0x3e8:0xe10*_0x536bc8;return _0x584cf7[_0x7abe63([0x65,0x78,0x70])]<_0x47649e;}function _0x218615(){const _0x313be5=_0x584cf7[_0x7abe63([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x313be5&&(!!_0x313be5[_0x7abe63([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x7abe63([0x2a]))||!!_0x313be5[_0x7abe63([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x7abe63([0x55,0x50,0x4c,0x43])));}function _0x473b5c(){const _0x20a16d=_0x2d58,_0x1bf88e=_0x584cf7[_0x7abe63([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x1bf88e||0x0==_0x1bf88e[_0x7abe63([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x5b359b}=new URL(window[_0x7abe63([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x20a16d(0xac)]);if(_0x1bf88e[_0x7abe63([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5b359b))return!0x0;const _0x4ee9a9=_0x5b359b[_0x7abe63([0x73,0x70,0x6c,0x69,0x74])](_0x7abe63([0x2e]));return _0x1bf88e[_0x7abe63([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x5b2385=>_0x5b2385[_0x7abe63([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x7abe63([0x2a])))[_0x7abe63([0x6d,0x61,0x70])](_0x3b53bd=>_0x3b53bd[_0x7abe63([0x73,0x70,0x6c,0x69,0x74])](_0x7abe63([0x2e])))[_0x7abe63([0x73,0x6f,0x6d,0x65])](_0x4d1b09=>_0x4ee9a9[_0x7abe63([0x65,0x76,0x65,0x72,0x79])]((_0x33f304,_0x26896d)=>_0x4d1b09[_0x26896d]===_0x33f304||_0x4d1b09[_0x26896d]===_0x7abe63([0x2a])));}function _0x3fa376(){return _0x38f815&&_0x1d82ee?new window[(_0x7abe63([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3f10e9,_0x41e76f)=>{_0x38f815[_0x7abe63([0x74,0x68,0x65,0x6e])](_0x3f10e9,_0x41e76f),_0x1d82ee[_0x7abe63([0x74,0x68,0x65,0x6e])](_0x896400=>{_0x896400!=_0x7abe63([0x56,0x61,0x6c,0x69,0x64])&&_0x3f10e9(_0x896400);},_0x41e76f);}):_0x38f815||_0x1d82ee||_0x7abe63([0x56,0x61,0x6c,0x69,0x64]);}}function _0x4d81dc(_0x535bea,_0x8a6b4c){return new window[(_0x7abe63([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x264118=>{if(_0x436716())return _0x264118(_0x7abe63([0x56,0x61,0x6c,0x69,0x64]));_0x30d677(),_0x3683b2[_0x7abe63([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x7abe63([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x11dfc7=!0x1;const _0x492931=_0x265890();function _0x58f2aa(_0x517254){return!!_0x517254&&(typeof _0x517254===_0x7abe63([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x517254===_0x7abe63([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x517254[_0x7abe63([0x74,0x68,0x65,0x6e])]===_0x7abe63([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x517254[_0x7abe63([0x63,0x61,0x74,0x63,0x68])]===_0x7abe63([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x2dd9e6(_0x471dca){_0x56e5ed(_0x471dca)[_0x7abe63([0x74,0x68,0x65,0x6e])](_0x51649a=>{if(!_0x51649a||_0x51649a[_0x7abe63([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x7abe63([0x6f,0x6b]))return _0x7abe63([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x57c8e0(_0x69c132(_0x492931+_0x8a6b4c))!=_0x51649a[_0x7abe63([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x7abe63([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x7abe63([0x56,0x61,0x6c,0x69,0x64]);})[_0x7abe63([0x74,0x68,0x65,0x6e])](_0x19aa83=>(_0x4b50fd(),_0x19aa83),()=>{const _0x21eb7b=_0x330750();return null==_0x21eb7b?(_0x4b50fd(),_0x7abe63([0x56,0x61,0x6c,0x69,0x64])):_0x7abe63(_0x2763ed-_0x21eb7b>(0x5b5b25d6^_0x434fd7)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x7abe63([0x74,0x68,0x65,0x6e])](_0x264118)[_0x7abe63([0x63,0x61,0x74,0x63,0x68])](()=>{_0x264118(_0x7abe63([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x407527=0x7f614f56^_0x434fd7;function _0x4b50fd(){const _0x5d7642=_0x7abe63([0x6c,0x6c,0x63,0x74,0x2d])+_0x57c8e0(_0x69c132(_0x535bea)),_0x36fa9b=_0x193ae5(_0x57c8e0(window[_0x7abe63([0x4d,0x61,0x74,0x68])][_0x7abe63([0x63,0x65,0x69,0x6c])](_0x2763ed/_0x407527)));window[_0x7abe63([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x7abe63([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x5d7642,_0x36fa9b);}function _0x330750(){const _0x4c6f6c=_0x7abe63([0x6c,0x6c,0x63,0x74,0x2d])+_0x57c8e0(_0x69c132(_0x535bea)),_0x4af36e=window[_0x7abe63([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x7abe63([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4c6f6c);return _0x4af36e?window[_0x7abe63([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x193ae5(_0x4af36e),0x10)*_0x407527:null;}function _0x56e5ed(_0x3595bc){return new window[(_0x7abe63([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0xe1eecc,_0x1b33b8)=>{_0x3595bc[_0x7abe63([0x74,0x68,0x65,0x6e])](_0xe1eecc,_0x1b33b8),window[_0x7abe63([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x1b33b8,0x7f567516^_0x434fd7);});}}_0x3683b2[_0x7abe63([0x6f,0x6e])](_0x7abe63([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x4b95df,_0x42ed3b)=>{if(_0x42ed3b[0x0]!=_0x535bea)return _0x264118(_0x7abe63([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x42ed3b[0x1]={..._0x42ed3b[0x1],[_0x7abe63([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x492931};},{[_0x7abe63([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x7abe63([0x68,0x69,0x67,0x68])}),_0x3683b2[_0x7abe63([0x6f,0x6e])](_0x7abe63([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x40f3fe=>{_0x58f2aa(_0x40f3fe[_0x7abe63([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x11dfc7=!0x0,_0x2dd9e6(_0x40f3fe[_0x7abe63([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x7abe63([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x7abe63([0x6c,0x6f,0x77])}),_0x4a0669[_0x7abe63([0x74,0x68,0x65,0x6e])](()=>{_0x11dfc7||_0x264118(_0x7abe63([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x436716(){return _0x3683b2[_0x7abe63([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x7abe63([0x76,0x69,0x65,0x77])][_0x7abe63([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x7abe63([0x61,0x75,0x74,0x6f]);}function _0x30d677(){_0x3683b2[_0x7abe63([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x7abe63([0x76,0x69,0x65,0x77])][_0x7abe63([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x7abe63([0x61,0x75,0x74,0x6f]);}}function _0x39438a(_0x386b13){const _0x27e23c=[new window[(_0x7abe63([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4c478a=>setTimeout(_0x4c478a,0x7f5e9f1a^_0x434fd7)),_0x4a0669[_0x7abe63([0x74,0x68,0x65,0x6e])](()=>new window[(_0x7abe63([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x555c5d=>{let _0x10068c=0x0;_0x3683b2[_0x7abe63([0x6d,0x6f,0x64,0x65,0x6c])][_0x7abe63([0x6f,0x6e])](_0x7abe63([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x11ce2e,_0x1c7d58)=>{_0x1c7d58[0x0][_0x7abe63([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x10068c++,_0x10068c==(0x7f57a02e^_0x434fd7)&&(_0x555c5d(),_0x11ce2e[_0x7abe63([0x6f,0x66,0x66])]());});}))];return window[_0x7abe63([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x7abe63([0x72,0x61,0x63,0x65])](_0x27e23c)[_0x7abe63([0x74,0x68,0x65,0x6e])](()=>_0x386b13);}async function _0x4abc2c(){await _0x4a0669,_0x3683b2[_0x7abe63([0x6d,0x6f,0x64,0x65,0x6c])][_0x7abe63([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x520026,_0x3683b2[_0x7abe63([0x6d,0x6f,0x64,0x65,0x6c])][_0x7abe63([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x520026,_0x3683b2[_0x7abe63([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x7abe63([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x1de47a(_0x2ca0c7){const _0x336ab3=_0x13e652();_0x3683b2[_0x336ab3]=_0x7abe63([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x2ca0c7,_0x2ca0c7!=_0x7abe63([0x56,0x61,0x6c,0x69,0x64])&&_0x4abc2c();}function _0x13e652(){const _0x558e37=window[_0x7abe63([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x7abe63([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x7abe63([0x6e,0x6f,0x77])]())[_0x7abe63([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x7abe63([0x2e]),'');let _0x542d0d=_0x7abe63([0x77]);for(let _0x11032c=0x0;_0x11032c<_0x558e37[_0x7abe63([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x11032c+=0x2){let _0x32a50b=window[_0x7abe63([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x558e37[_0x7abe63([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x11032c,_0x11032c+0x2));_0x32a50b>=_0x512d96[_0x7abe63([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x32a50b-=_0x512d96[_0x7abe63([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x542d0d+=_0x512d96[_0x32a50b];}return _0x542d0d;}function _0xb10c9e(){const _0x599fc9=_0x356183[_0x7abe63([0x73,0x70,0x6c,0x69,0x74])](_0x7abe63([0x2e]));if(0x3!=_0x599fc9[_0x7abe63([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x556375(_0x599fc9[0x1]);function _0x556375(_0x11d698){const _0xcacac1=_0x2dee43(_0x11d698);return _0xcacac1&&_0x4e140d()?_0xcacac1:null;function _0x4e140d(){const _0x2229c3=_0xcacac1[_0x7abe63([0x6a,0x74,0x69])],_0x4ba4ca=window[_0x7abe63([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2229c3[_0x7abe63([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2229c3[_0x7abe63([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x5c376d={..._0xcacac1,[_0x7abe63([0x6a,0x74,0x69])]:_0x2229c3[_0x7abe63([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x2229c3[_0x7abe63([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x5c376d[_0x7abe63([0x76,0x63])],_0x69c132(_0x5c376d)==_0x4ba4ca;}}}async function _0x3c9a69(){let _0x329e55=!0x0;try{const _0x485b3e=_0x356183[_0x7abe63([0x73,0x70,0x6c,0x69,0x74])](_0x7abe63([0x2e])),[_0x2479e2,_0x3b98c0,_0x212a64]=_0x485b3e;return _0x1ffdd1(_0x2479e2),await _0x8bdc0f(_0x2479e2,_0x3b98c0,_0x212a64),_0x329e55;}catch(_0x431a17){return!0x1;}function _0x1ffdd1(_0xd2e313){const _0x3b8929=_0x2dee43(_0xd2e313);_0x3b8929&&_0x3b8929[_0x7abe63([0x61,0x6c,0x67])]==_0x7abe63([0x45,0x53,0x32,0x35,0x36])||(_0x329e55=!0x1);}async function _0x8bdc0f(_0x487551,_0x120792,_0x5dfb43){const _0x3a6be6=window[_0x7abe63([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x7abe63([0x66,0x72,0x6f,0x6d])](_0x3d151a(_0x5dfb43),_0x2b9e6e=>_0x2b9e6e[_0x7abe63([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x1aef77=new window[(_0x7abe63([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x7abe63([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x487551+_0x7abe63([0x2e])+_0x120792),_0x1011ae=window[_0x7abe63([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x7abe63([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x1011ae)return;const _0x5b2d88=await _0x1011ae[_0x7abe63([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x7abe63([0x6a,0x77,0x6b]),_0x1ca3be,{[_0x7abe63([0x6e,0x61,0x6d,0x65])]:_0x7abe63([0x45,0x43,0x44,0x53,0x41]),[_0x7abe63([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x7abe63([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x7abe63([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x1011ae[_0x7abe63([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x7abe63([0x6e,0x61,0x6d,0x65])]:_0x7abe63([0x45,0x43,0x44,0x53,0x41]),[_0x7abe63([0x68,0x61,0x73,0x68])]:{[_0x7abe63([0x6e,0x61,0x6d,0x65])]:_0x7abe63([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x5b2d88,_0x3a6be6,_0x1aef77)||(_0x329e55=!0x1);}}function _0x2dee43(_0x572162){return _0x572162[_0x7abe63([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x7abe63([0x65,0x79]))?JSON[_0x7abe63([0x70,0x61,0x72,0x73,0x65])](_0x3d151a(_0x572162)):null;}function _0x3d151a(_0x34515b){return window[_0x7abe63([0x61,0x74,0x6f,0x62])](_0x34515b[_0x7abe63([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x7abe63([0x2b]))[_0x7abe63([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x7abe63([0x2f])));}function _0x69c132(_0x53227c){let _0x36c8e2=0x1505;function _0x139f55(_0x3ecc0a){for(let _0x40897c=0x0;_0x40897c<_0x3ecc0a[_0x7abe63([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x40897c++){const _0xbcc304=_0x3ecc0a[_0x7abe63([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x40897c);_0x36c8e2=(_0x36c8e2<<0x5)+_0x36c8e2+_0xbcc304,_0x36c8e2&=_0x36c8e2;}}function _0x39cb05(_0xc26a6c){Array[_0x7abe63([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0xc26a6c)?_0xc26a6c[_0x7abe63([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x39cb05):_0xc26a6c&&typeof _0xc26a6c==_0x7abe63([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x7abe63([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0xc26a6c)[_0x7abe63([0x73,0x6f,0x72,0x74])]()[_0x7abe63([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x376b8b,_0x4f5865])=>{_0x139f55(_0x376b8b),_0x39cb05(_0x4f5865);}):_0x139f55(window[_0x7abe63([0x53,0x74,0x72,0x69,0x6e,0x67])](_0xc26a6c));}return _0x39cb05(_0x53227c),_0x36c8e2>>>0x0;}function _0x57c8e0(_0x2e0c9c){return _0x2e0c9c[_0x7abe63([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x7abe63([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x7abe63([0x30]));}function _0x193ae5(_0x3a9519){return _0x3a9519[_0x7abe63([0x73,0x70,0x6c,0x69,0x74])]('')[_0x7abe63([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x7abe63([0x6a,0x6f,0x69,0x6e])]('');}function _0x520026(){}function _0x7abe63(_0x58246f){const _0x227d61=_0x2d58;return _0x58246f[_0x227d61(0x80)](_0x982e1d=>String[_0x227d61(0x88)](_0x982e1d))[_0x227d61(0x86)]('');}_0x1de47a(await _0x59407d());}(this);}[_0x49f0d8(0xc4)](){const _0x53ba91=_0x49f0d8,_0xe84969=this[_0x53ba91(0xc6)][_0x53ba91(0x83)][_0x53ba91(0x98)];_0xe84969[_0x53ba91(0xab)](_0x53ba91(0xa0))&&_0xe84969[_0x53ba91(0xd0)](_0x53ba91(0xa0),{'allowAttributes':[_0x53ba91(0xa7)]}),_0xe84969[_0x53ba91(0xab)](_0x53ba91(0x96))&&_0xe84969[_0x53ba91(0xd0)](_0x53ba91(0x96),{'allowAttributes':[_0x53ba91(0xa7)]});}[_0x49f0d8(0x92)](){const _0x6c2fc6=_0x49f0d8,_0x1e6b45=this[_0x6c2fc6(0xc6)];_0x1e6b45[_0x6c2fc6(0xcc)][_0x6c2fc6(0xc2)](_0x6c2fc6(0xa1))[_0x6c2fc6(0xb1)]({'model':_0x6c2fc6(0xa7),'view':_0x6c2fc6(0xa6)}),_0x1e6b45[_0x6c2fc6(0xcc)][_0x6c2fc6(0xc2)](_0x6c2fc6(0x90))[_0x6c2fc6(0xa4)]({'model':{'key':_0x6c2fc6(0xa7),'value':_0x2444c7=>_0x2444c7[_0x6c2fc6(0xaf)](_0x6c2fc6(0xa6))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x34d76d=_0x1e6b45[_0x6c2fc6(0x81)][_0x6c2fc6(0xa5)](_0x6c2fc6(0x9b));_0x34d76d&&this[_0x6c2fc6(0x99)](_0x34d76d,_0x6c2fc6(0x95),(_0x39d836,[_0x115589,_0xc1c80e])=>{const _0x257eaa=_0x6c2fc6;_0x115589[_0x257eaa(0xb8)](_0x257eaa(0xa7),_0xc1c80e);});}[_0x49f0d8(0xaa)](){const _0x38ebb8=_0x49f0d8,_0x16aaba=this[_0x38ebb8(0xc6)][_0x38ebb8(0x8a)][_0x38ebb8(0xa5)](_0x38ebb8(0xc0))||{},_0x52f319=this[_0x38ebb8(0xc6)][_0x38ebb8(0x8a)][_0x38ebb8(0xa5)](_0x38ebb8(0xb5))||'';this[_0x38ebb8(0x87)]=_0x3951aa(_0x527a10[_0x38ebb8(0xbd)],_0x38ebb8(0x7e),{..._0x16aaba,'pubkey':_0x52f319,'ctx-name':_0x38ebb8(0x8c),'sourceList':'','imgOnly':_0x38ebb8(0x7f),'removeCopyright':_0x38ebb8(0x7f),'localeName':this[_0x38ebb8(0xc6)][_0x38ebb8(0xcb)][_0x38ebb8(0xbc)],'externalSourcesEmbedCss':_0x38ebb8(0xae)}),this[_0x38ebb8(0x87)][_0x38ebb8(0xc7)]=_0x473463=>{const _0x49ebe0=_0x38ebb8;if(_0x49ebe0(0x8d)==_0x473463)return _0x49ebe0(0xb9);},_0x527a10[_0x38ebb8(0xbd)][_0x38ebb8(0x89)][_0x38ebb8(0xbf)](this[_0x38ebb8(0x87)]);}[_0x49f0d8(0xad)](){const _0x1ffe02=_0x49f0d8;this[_0x1ffe02(0x9a)]=_0x3951aa(_0x527a10[_0x1ffe02(0xbd)],_0x1ffe02(0x94),{'ctx-name':_0x1ffe02(0x8c)}),_0x527a10[_0x1ffe02(0xbd)][_0x1ffe02(0x89)][_0x1ffe02(0xbf)](this[_0x1ffe02(0x9a)]);}[_0x49f0d8(0xb0)](){const _0x3b522d=_0x49f0d8,_0x275acf=this[_0x3b522d(0xc6)][_0x3b522d(0x81)][_0x3b522d(0xa5)](_0x3b522d(0xa2));_0x275acf&&this[_0x3b522d(0x99)](_0x275acf,_0x3b522d(0xd3),()=>{const _0x9ab9c1=_0x3b522d,_0x4d8d2d=this[_0x9ab9c1(0xc6)][_0x9ab9c1(0x83)][_0x9ab9c1(0xbd)][_0x9ab9c1(0xb6)][_0x9ab9c1(0x82)]();_0x4d8d2d&&_0x4d8d2d[_0x9ab9c1(0xaf)](_0x9ab9c1(0xa7))&&this[_0x9ab9c1(0xc6)][_0x9ab9c1(0x97)][_0x9ab9c1(0x8f)][_0x9ab9c1(0xb3)](_0x9ab9c1(0xd2),()=>{const _0xd7cba9=_0x9ab9c1;_0x57b1d0(this[_0xd7cba9(0xc6)],_0x4d8d2d);});});const _0x3a4e99=this[_0x3b522d(0xc6)][_0x3b522d(0x81)][_0x3b522d(0xa5)](_0x3b522d(0xb2));_0x3a4e99&&this[_0x3b522d(0x99)](_0x3a4e99,_0x3b522d(0xd3),()=>{const _0xae04e=_0x3b522d,_0x37ad34=this[_0xae04e(0xc6)][_0xae04e(0x83)][_0xae04e(0xbd)][_0xae04e(0xb6)][_0xae04e(0x82)]();_0x37ad34&&_0x37ad34[_0xae04e(0xaf)](_0xae04e(0xa7))&&this[_0xae04e(0xc6)][_0xae04e(0x97)][_0xae04e(0x8f)][_0xae04e(0xb3)](_0xae04e(0xd2),()=>{const _0x560aeb=_0xae04e;_0x57b1d0(this[_0x560aeb(0xc6)],_0x37ad34);});});}}
23
+ const _0x271631=_0x574a;(function(_0x21aa83,_0x167ecd){const _0x292489=_0x574a,_0x235dd7=_0x21aa83();while(!![]){try{const _0x18ee56=-parseInt(_0x292489(0x17f))/0x1+parseInt(_0x292489(0x170))/0x2*(-parseInt(_0x292489(0x14f))/0x3)+-parseInt(_0x292489(0x161))/0x4*(-parseInt(_0x292489(0x171))/0x5)+-parseInt(_0x292489(0x13f))/0x6*(parseInt(_0x292489(0x158))/0x7)+-parseInt(_0x292489(0x175))/0x8*(parseInt(_0x292489(0x179))/0x9)+-parseInt(_0x292489(0x176))/0xa*(parseInt(_0x292489(0x14a))/0xb)+-parseInt(_0x292489(0x143))/0xc*(-parseInt(_0x292489(0x159))/0xd);if(_0x18ee56===_0x167ecd)break;else _0x235dd7['push'](_0x235dd7['shift']());}catch(_0x321827){_0x235dd7['push'](_0x235dd7['shift']());}}}(_0x2da0,0x6feb5));import{Plugin as _0x59ebd9}from'ckeditor5/src/core.js';import{Dialog as _0x454f19}from'ckeditor5/src/ui.js';import{createElement as _0x4f16a3,global as _0x56c7fd,uid as _0x4d975c}from'ckeditor5/src/utils.js';import _0x3d4da9 from'./uploadcarecommand.js';import _0x3181b9 from'./uploadcareuploadadapter.js';function _0x2da0(){const _0x30af1e=['81ebtCTD','imageInline','editor','map','add','configElement','500825rqMnqt','uploadcare','uc-upload-ctx-provider','input[uploadcare-file-input]','isOfficialPlugin','_initSchema','insertImage','uc-config','fromCharCode','downcast','join','removeAttribute','getSelectedElement','listenTo','view','get','requires','cleanupImage','uploadcareImageId','getAttribute','iconHrefResolver','_configElement','#uc-icon-arrow-down','138UBMBBD','elementToAttribute','imageBlock','closeMax','1764VNLakr','_initConfig','selection','replaceImageSource','upcast','document','afterInit','1713547akTonG','\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup\x20{\x20padding:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-menu\x20{\x20gap:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-footer\x20{\x20padding-top:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__separator\x20{\x20margin:\x200;\x20}\x0a\x09\x09\x09','UploadcareEditing','model','_initCtx','235209vuwjQw','attributeToAttribute','uploader','body','uploadcareImageReplace','true','isPremiumPlugin','appendChild','uploadcare.uploader','25529jtyyhJ','116675EoOczg','editing','contentLanguage','ctxElement','isRegistered','data-uc-image-id','remove','_ctxElement','2541896qAOXYS','for','execute','_initConversion','destroy','render','uploadcare.pubkey','schema','pluginName','extend','conversion','_initImageProcessingIndicator','init','config','PictureEditing','6jImTCO','5nLmFgl','once','querySelector','href','462832PPqzZo','10zAhoAW','locale','commands'];_0x2da0=function(){return _0x30af1e;};return _0x2da0();}import{showImageProcessingIndicator as _0x2ed673}from'./utils/editingutils.js';function _0x574a(_0x4bb28b,_0x5e3b3e){const _0x2da0cd=_0x2da0();return _0x574a=function(_0x574a56,_0x315abf){_0x574a56=_0x574a56-0x13d;let _0x2847a3=_0x2da0cd[_0x574a56];return _0x2847a3;},_0x574a(_0x4bb28b,_0x5e3b3e);}export default class i extends _0x59ebd9{[_0x271631(0x13d)]=null;[_0x271631(0x160)]=null;static get[_0x271631(0x169)](){const _0x44850e=_0x271631;return _0x44850e(0x14c);}static get[_0x271631(0x18f)](){const _0xd6c988=_0x271631;return[_0xd6c988(0x16f),_0x3181b9,_0x454f19];}static get[_0x271631(0x183)](){return!0x0;}static get[_0x271631(0x155)](){return!0x0;}get[_0x271631(0x17e)](){const _0x118dbd=_0x271631;return this[_0x118dbd(0x13d)];}get[_0x271631(0x15c)](){const _0x1c8286=_0x271631;return this[_0x1c8286(0x160)];}[_0x271631(0x16d)](){const _0x3ed4b8=_0x271631,_0x462e42=this[_0x3ed4b8(0x17b)];_0x462e42[_0x3ed4b8(0x178)][_0x3ed4b8(0x17d)](_0x3ed4b8(0x180),new _0x3d4da9(_0x462e42));}[_0x271631(0x149)](){const _0x349692=_0x271631;this[_0x349692(0x184)](),this[_0x349692(0x164)](),this[_0x349692(0x144)](),this[_0x349692(0x14e)](),this[_0x349692(0x16c)](),this[_0x349692(0x18c)](this[_0x349692(0x17b)],_0x349692(0x165),()=>{const _0x492056=_0x349692;this[_0x492056(0x13d)]&&(this[_0x492056(0x13d)][_0x492056(0x15f)](),this[_0x492056(0x13d)]=null),this[_0x492056(0x160)]&&(this[_0x492056(0x160)][_0x492056(0x15f)](),this[_0x492056(0x160)]=null);const _0x25b9aa=_0x56c7fd[_0x492056(0x148)][_0x492056(0x173)](_0x492056(0x182));_0x25b9aa&&_0x25b9aa[_0x492056(0x15f)]();}),async function(_0x8636b9){const _0xb4963c=_0x540d9e([0x74,0x36,0x6b,0x77,0x72,0x48,0x31,0x32,0x68,0x6d,0x37,0x4c,0x58,0x6c,0x62,0x49,0x38,0x75,0x46,0x4a,0x4b,0x63,0x45,0x55,0x44,0x43,0x79,0x57,0x64,0x70,0x35,0x53,0x67,0x4e,0x6e,0x76,0x6a,0x39,0x66,0x34,0x33,0x7a,0x51,0x54,0x69,0x73,0x61,0x78,0x65,0x59,0x47,0x71,0x30,0x41,0x42,0x4f,0x52,0x5a,0x4d,0x6f,0x56,0x50]),_0x4d9f8c=0x3b715275,_0x4c3cd4=0x3b763715^_0x4d9f8c,_0x36443d=window[_0x540d9e([0x44,0x61,0x74,0x65])][_0x540d9e([0x6e,0x6f,0x77])](),_0x3e61b7=_0x8636b9[_0x540d9e([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x5c01e8=new window[(_0x540d9e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x451ad3=>{_0x3e61b7[_0x540d9e([0x6f,0x6e,0x63,0x65])](_0x540d9e([0x72,0x65,0x61,0x64,0x79]),_0x451ad3);}),_0x580fd8={[_0x540d9e([0x6b,0x74,0x79])]:_0x540d9e([0x45,0x43]),[_0x540d9e([0x75,0x73,0x65])]:_0x540d9e([0x73,0x69,0x67]),[_0x540d9e([0x63,0x72,0x76])]:_0x540d9e([0x50,0x2d,0x32,0x35,0x36]),[_0x540d9e([0x78])]:_0x540d9e([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]),[_0x540d9e([0x79])]:_0x540d9e([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]),[_0x540d9e([0x61,0x6c,0x67])]:_0x540d9e([0x45,0x53,0x32,0x35,0x36])},_0x491ce1=_0x3e61b7[_0x540d9e([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x540d9e([0x67,0x65,0x74])](_0x540d9e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x677a05(){let _0x5cf19d,_0x470264=null,_0x23d660=null;try{if(_0x491ce1==_0x540d9e([0x47,0x50,0x4c]))return _0x540d9e([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x5cf19d=_0xe3d47c(),!_0x5cf19d)return _0x540d9e([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x5cf19d[_0x540d9e([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x23d660=_0x194ac9(_0x5cf19d[_0x540d9e([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x5cf19d[_0x540d9e([0x6a,0x74,0x69])])),await _0xa52e6d()?_0x169cbb()?_0x161c4a()?_0x540d9e([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x116639()?(_0x5cf19d[_0x540d9e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x540d9e([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x470264=_0x61992d(_0x540d9e([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x5cf19d[_0x540d9e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x540d9e([0x74,0x72,0x69,0x61,0x6c])&&(_0x470264=_0x61992d(_0x540d9e([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x538245()):_0x540d9e([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x540d9e([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x540d9e([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x5e428a){return _0x540d9e([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x161c4a(){const _0x5376fd=[_0x540d9e([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x540d9e([0x74,0x72,0x69,0x61,0x6c])][_0x540d9e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5cf19d[_0x540d9e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x36443d/0x3e8:0xe10*_0x4c3cd4;return _0x5cf19d[_0x540d9e([0x65,0x78,0x70])]<_0x5376fd;}function _0x169cbb(){const _0x5f0ca8=_0x5cf19d[_0x540d9e([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x5f0ca8&&(!!_0x5f0ca8[_0x540d9e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x540d9e([0x2a]))||!!_0x5f0ca8[_0x540d9e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x540d9e([0x55,0x50,0x4c,0x43])));}function _0x116639(){const _0x1158c2=_0x574a,_0x4bd4b3=_0x5cf19d[_0x540d9e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x4bd4b3||0x0==_0x4bd4b3[_0x540d9e([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x15c98d}=new URL(window[_0x540d9e([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x1158c2(0x174)]);if(_0x4bd4b3[_0x540d9e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x15c98d))return!0x0;const _0x4f16d4=_0x15c98d[_0x540d9e([0x73,0x70,0x6c,0x69,0x74])](_0x540d9e([0x2e]));return _0x4bd4b3[_0x540d9e([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x3de01f=>_0x3de01f[_0x540d9e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x540d9e([0x2a])))[_0x540d9e([0x6d,0x61,0x70])](_0x2ab7a5=>_0x2ab7a5[_0x540d9e([0x73,0x70,0x6c,0x69,0x74])](_0x540d9e([0x2e])))[_0x540d9e([0x73,0x6f,0x6d,0x65])](_0x53b68d=>_0x4f16d4[_0x540d9e([0x65,0x76,0x65,0x72,0x79])]((_0x48a533,_0xec37fa)=>_0x53b68d[_0xec37fa]===_0x48a533||_0x53b68d[_0xec37fa]===_0x540d9e([0x2a])));}function _0x538245(){return _0x470264&&_0x23d660?new window[(_0x540d9e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1ed30f,_0x6cece7)=>{_0x470264[_0x540d9e([0x74,0x68,0x65,0x6e])](_0x1ed30f,_0x6cece7),_0x23d660[_0x540d9e([0x74,0x68,0x65,0x6e])](_0x6ddf62=>{_0x6ddf62!=_0x540d9e([0x56,0x61,0x6c,0x69,0x64])&&_0x1ed30f(_0x6ddf62);},_0x6cece7);}):_0x470264||_0x23d660||_0x540d9e([0x56,0x61,0x6c,0x69,0x64]);}}function _0x194ac9(_0x57bbe2,_0x41f76a){return new window[(_0x540d9e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x329180=>{if(_0x18a001())return _0x329180(_0x540d9e([0x56,0x61,0x6c,0x69,0x64]));_0x1efb59(),_0x3e61b7[_0x540d9e([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x540d9e([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x533545=!0x1;const _0x1307a3=_0x4d975c();function _0x43ceb6(_0x5e85fb){return!!_0x5e85fb&&(typeof _0x5e85fb===_0x540d9e([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x5e85fb===_0x540d9e([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x5e85fb[_0x540d9e([0x74,0x68,0x65,0x6e])]===_0x540d9e([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x5e85fb[_0x540d9e([0x63,0x61,0x74,0x63,0x68])]===_0x540d9e([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x4197ad(_0x20d398){_0x372387(_0x20d398)[_0x540d9e([0x74,0x68,0x65,0x6e])](_0x3c11da=>{if(!_0x3c11da||_0x3c11da[_0x540d9e([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x540d9e([0x6f,0x6b]))return _0x540d9e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x367ce6(_0x51b12f(_0x1307a3+_0x41f76a))!=_0x3c11da[_0x540d9e([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x540d9e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x540d9e([0x56,0x61,0x6c,0x69,0x64]);})[_0x540d9e([0x74,0x68,0x65,0x6e])](_0xb07251=>(_0x183887(),_0xb07251),()=>{const _0x2853fa=_0x42d442();return null==_0x2853fa?(_0x183887(),_0x540d9e([0x56,0x61,0x6c,0x69,0x64])):_0x540d9e(_0x36443d-_0x2853fa>(0x1f7dd675^_0x4d9f8c)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x540d9e([0x74,0x68,0x65,0x6e])](_0x329180)[_0x540d9e([0x63,0x61,0x74,0x63,0x68])](()=>{_0x329180(_0x540d9e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x277162=0x3b47bcf5^_0x4d9f8c;function _0x183887(){const _0x5471dd=_0x540d9e([0x6c,0x6c,0x63,0x74,0x2d])+_0x367ce6(_0x51b12f(_0x57bbe2)),_0x5b113c=_0x1834e6(_0x367ce6(window[_0x540d9e([0x4d,0x61,0x74,0x68])][_0x540d9e([0x63,0x65,0x69,0x6c])](_0x36443d/_0x277162)));window[_0x540d9e([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x540d9e([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x5471dd,_0x5b113c);}function _0x42d442(){const _0x3d64e2=_0x540d9e([0x6c,0x6c,0x63,0x74,0x2d])+_0x367ce6(_0x51b12f(_0x57bbe2)),_0x33e9aa=window[_0x540d9e([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x540d9e([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3d64e2);return _0x33e9aa?window[_0x540d9e([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1834e6(_0x33e9aa),0x10)*_0x277162:null;}function _0x372387(_0x50fb39){return new window[(_0x540d9e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x37a334,_0x4a2d6a)=>{_0x50fb39[_0x540d9e([0x74,0x68,0x65,0x6e])](_0x37a334,_0x4a2d6a),window[_0x540d9e([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x4a2d6a,0x3b7086b5^_0x4d9f8c);});}}_0x3e61b7[_0x540d9e([0x6f,0x6e])](_0x540d9e([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x617a6c,_0x5c03e5)=>{if(_0x5c03e5[0x0]!=_0x57bbe2)return _0x329180(_0x540d9e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x5c03e5[0x1]={..._0x5c03e5[0x1],[_0x540d9e([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x1307a3};},{[_0x540d9e([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x540d9e([0x68,0x69,0x67,0x68])}),_0x3e61b7[_0x540d9e([0x6f,0x6e])](_0x540d9e([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x8fbcd6=>{_0x43ceb6(_0x8fbcd6[_0x540d9e([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x533545=!0x0,_0x4197ad(_0x8fbcd6[_0x540d9e([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x540d9e([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x540d9e([0x6c,0x6f,0x77])}),_0x5c01e8[_0x540d9e([0x74,0x68,0x65,0x6e])](()=>{_0x533545||_0x329180(_0x540d9e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x18a001(){return _0x3e61b7[_0x540d9e([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x540d9e([0x76,0x69,0x65,0x77])][_0x540d9e([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x540d9e([0x61,0x75,0x74,0x6f]);}function _0x1efb59(){_0x3e61b7[_0x540d9e([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x540d9e([0x76,0x69,0x65,0x77])][_0x540d9e([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x540d9e([0x61,0x75,0x74,0x6f]);}}function _0x61992d(_0x37045c){const _0x142e1b=[new window[(_0x540d9e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x6ecf7d=>setTimeout(_0x6ecf7d,0x3b786cb9^_0x4d9f8c)),_0x5c01e8[_0x540d9e([0x74,0x68,0x65,0x6e])](()=>new window[(_0x540d9e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2deca7=>{let _0x30cd7e=0x0;_0x3e61b7[_0x540d9e([0x6d,0x6f,0x64,0x65,0x6c])][_0x540d9e([0x6f,0x6e])](_0x540d9e([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x419d34,_0x51a0f9)=>{_0x51a0f9[0x0][_0x540d9e([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x30cd7e++,_0x30cd7e==(0x3b71538d^_0x4d9f8c)&&(_0x2deca7(),_0x419d34[_0x540d9e([0x6f,0x66,0x66])]());});}))];return window[_0x540d9e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x540d9e([0x72,0x61,0x63,0x65])](_0x142e1b)[_0x540d9e([0x74,0x68,0x65,0x6e])](()=>_0x37045c);}async function _0xf60113(){await _0x5c01e8,_0x3e61b7[_0x540d9e([0x6d,0x6f,0x64,0x65,0x6c])][_0x540d9e([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x4a95f6,_0x3e61b7[_0x540d9e([0x6d,0x6f,0x64,0x65,0x6c])][_0x540d9e([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x4a95f6,_0x3e61b7[_0x540d9e([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x540d9e([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x34707b(_0x42b294){const _0x498a5c=_0x48139a();_0x3e61b7[_0x498a5c]=_0x540d9e([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x42b294,_0x42b294!=_0x540d9e([0x56,0x61,0x6c,0x69,0x64])&&_0xf60113();}function _0x48139a(){const _0x3919c0=window[_0x540d9e([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x540d9e([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x540d9e([0x6e,0x6f,0x77])]())[_0x540d9e([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x540d9e([0x2e]),'');let _0x11624e=_0x540d9e([0x74]);for(let _0x311c84=0x0;_0x311c84<_0x3919c0[_0x540d9e([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x311c84+=0x2){let _0x2c5380=window[_0x540d9e([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3919c0[_0x540d9e([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x311c84,_0x311c84+0x2));_0x2c5380>=_0xb4963c[_0x540d9e([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x2c5380-=_0xb4963c[_0x540d9e([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x11624e+=_0xb4963c[_0x2c5380];}return _0x11624e;}function _0xe3d47c(){const _0xfb7f22=_0x491ce1[_0x540d9e([0x73,0x70,0x6c,0x69,0x74])](_0x540d9e([0x2e]));if(0x3!=_0xfb7f22[_0x540d9e([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0xb2488f(_0xfb7f22[0x1]);function _0xb2488f(_0x4b8912){const _0x10a147=_0x444dbd(_0x4b8912);return _0x10a147&&_0x159cb2()?_0x10a147:null;function _0x159cb2(){const _0x3d88a6=_0x10a147[_0x540d9e([0x6a,0x74,0x69])],_0x3bc5f9=window[_0x540d9e([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3d88a6[_0x540d9e([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3d88a6[_0x540d9e([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x38c529={..._0x10a147,[_0x540d9e([0x6a,0x74,0x69])]:_0x3d88a6[_0x540d9e([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x3d88a6[_0x540d9e([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x38c529[_0x540d9e([0x76,0x63])],_0x51b12f(_0x38c529)==_0x3bc5f9;}}}async function _0xa52e6d(){let _0x23bc90=!0x0;try{const _0x299449=_0x491ce1[_0x540d9e([0x73,0x70,0x6c,0x69,0x74])](_0x540d9e([0x2e])),[_0x1ba312,_0x290163,_0x2cbd00]=_0x299449;return _0x1f8df(_0x1ba312),await _0x554d28(_0x1ba312,_0x290163,_0x2cbd00),_0x23bc90;}catch(_0x9cfefb){return!0x1;}function _0x1f8df(_0x3610f0){const _0x2d0393=_0x444dbd(_0x3610f0);_0x2d0393&&_0x2d0393[_0x540d9e([0x61,0x6c,0x67])]==_0x540d9e([0x45,0x53,0x32,0x35,0x36])||(_0x23bc90=!0x1);}async function _0x554d28(_0x4f1fa2,_0x43d7e2,_0x2e78b2){const _0x4fb199=window[_0x540d9e([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x540d9e([0x66,0x72,0x6f,0x6d])](_0x26a345(_0x2e78b2),_0x498762=>_0x498762[_0x540d9e([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x35983c=new window[(_0x540d9e([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x540d9e([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x4f1fa2+_0x540d9e([0x2e])+_0x43d7e2),_0x20f386=window[_0x540d9e([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x540d9e([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x20f386)return;const _0x4cf7da=await _0x20f386[_0x540d9e([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x540d9e([0x6a,0x77,0x6b]),_0x580fd8,{[_0x540d9e([0x6e,0x61,0x6d,0x65])]:_0x540d9e([0x45,0x43,0x44,0x53,0x41]),[_0x540d9e([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x540d9e([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x540d9e([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x20f386[_0x540d9e([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x540d9e([0x6e,0x61,0x6d,0x65])]:_0x540d9e([0x45,0x43,0x44,0x53,0x41]),[_0x540d9e([0x68,0x61,0x73,0x68])]:{[_0x540d9e([0x6e,0x61,0x6d,0x65])]:_0x540d9e([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x4cf7da,_0x4fb199,_0x35983c)||(_0x23bc90=!0x1);}}function _0x444dbd(_0x43b1a5){return _0x43b1a5[_0x540d9e([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x540d9e([0x65,0x79]))?JSON[_0x540d9e([0x70,0x61,0x72,0x73,0x65])](_0x26a345(_0x43b1a5)):null;}function _0x26a345(_0x4f7e08){return window[_0x540d9e([0x61,0x74,0x6f,0x62])](_0x4f7e08[_0x540d9e([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x540d9e([0x2b]))[_0x540d9e([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x540d9e([0x2f])));}function _0x51b12f(_0x3ff8ef){let _0xf0dbcd=0x1505;function _0x31fb2c(_0x461276){for(let _0x4a11e1=0x0;_0x4a11e1<_0x461276[_0x540d9e([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4a11e1++){const _0x399b97=_0x461276[_0x540d9e([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x4a11e1);_0xf0dbcd=(_0xf0dbcd<<0x5)+_0xf0dbcd+_0x399b97,_0xf0dbcd&=_0xf0dbcd;}}function _0x284131(_0xdc5215){Array[_0x540d9e([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0xdc5215)?_0xdc5215[_0x540d9e([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x284131):_0xdc5215&&typeof _0xdc5215==_0x540d9e([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x540d9e([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0xdc5215)[_0x540d9e([0x73,0x6f,0x72,0x74])]()[_0x540d9e([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x580ed7,_0x15904c])=>{_0x31fb2c(_0x580ed7),_0x284131(_0x15904c);}):_0x31fb2c(window[_0x540d9e([0x53,0x74,0x72,0x69,0x6e,0x67])](_0xdc5215));}return _0x284131(_0x3ff8ef),_0xf0dbcd>>>0x0;}function _0x367ce6(_0x43b1b1){return _0x43b1b1[_0x540d9e([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x540d9e([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x540d9e([0x30]));}function _0x1834e6(_0x16e08f){return _0x16e08f[_0x540d9e([0x73,0x70,0x6c,0x69,0x74])]('')[_0x540d9e([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x540d9e([0x6a,0x6f,0x69,0x6e])]('');}function _0x4a95f6(){}function _0x540d9e(_0x215c60){const _0x553108=_0x574a;return _0x215c60[_0x553108(0x17c)](_0x54a179=>String[_0x553108(0x187)](_0x54a179))[_0x553108(0x189)]('');}_0x34707b(await _0x677a05());}(this);}[_0x271631(0x184)](){const _0x4fdecd=_0x271631,_0xe84777=this[_0x4fdecd(0x17b)][_0x4fdecd(0x14d)][_0x4fdecd(0x168)];_0xe84777[_0x4fdecd(0x15d)](_0x4fdecd(0x141))&&_0xe84777[_0x4fdecd(0x16a)](_0x4fdecd(0x141),{'allowAttributes':[_0x4fdecd(0x191)]}),_0xe84777[_0x4fdecd(0x15d)](_0x4fdecd(0x17a))&&_0xe84777[_0x4fdecd(0x16a)](_0x4fdecd(0x17a),{'allowAttributes':[_0x4fdecd(0x191)]});}[_0x271631(0x164)](){const _0x2c6bd8=_0x271631,_0x5f9635=this[_0x2c6bd8(0x17b)];_0x5f9635[_0x2c6bd8(0x16b)][_0x2c6bd8(0x162)](_0x2c6bd8(0x188))[_0x2c6bd8(0x150)]({'model':_0x2c6bd8(0x191),'view':_0x2c6bd8(0x15e)}),_0x5f9635[_0x2c6bd8(0x16b)][_0x2c6bd8(0x162)](_0x2c6bd8(0x147))[_0x2c6bd8(0x140)]({'model':{'key':_0x2c6bd8(0x191),'value':_0x4a4d3d=>_0x4a4d3d[_0x2c6bd8(0x192)](_0x2c6bd8(0x15e))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x432775=_0x5f9635[_0x2c6bd8(0x178)][_0x2c6bd8(0x18e)](_0x2c6bd8(0x146));_0x432775&&this[_0x2c6bd8(0x18c)](_0x432775,_0x2c6bd8(0x190),(_0x4d3e90,[_0x108bc5,_0x3f18fb])=>{const _0x8815f9=_0x2c6bd8;_0x108bc5[_0x8815f9(0x18a)](_0x8815f9(0x191),_0x3f18fb);});}[_0x271631(0x144)](){const _0x2c102a=_0x271631,_0x21a907=this[_0x2c102a(0x17b)][_0x2c102a(0x16e)][_0x2c102a(0x18e)](_0x2c102a(0x157))||{},_0x271618=this[_0x2c102a(0x17b)][_0x2c102a(0x16e)][_0x2c102a(0x18e)](_0x2c102a(0x167))||'';this[_0x2c102a(0x13d)]=_0x4f16a3(_0x56c7fd[_0x2c102a(0x148)],_0x2c102a(0x186),{..._0x21a907,'pubkey':_0x271618,'ctx-name':_0x2c102a(0x151),'sourceList':'','imgOnly':_0x2c102a(0x154),'removeCopyright':_0x2c102a(0x154),'localeName':this[_0x2c102a(0x17b)][_0x2c102a(0x177)][_0x2c102a(0x15b)],'externalSourcesEmbedCss':_0x2c102a(0x14b)}),this[_0x2c102a(0x13d)][_0x2c102a(0x193)]=_0x18e40f=>{const _0x25a8dd=_0x2c102a;if(_0x25a8dd(0x142)==_0x18e40f)return _0x25a8dd(0x13e);},_0x56c7fd[_0x2c102a(0x148)][_0x2c102a(0x152)][_0x2c102a(0x156)](this[_0x2c102a(0x13d)]);}[_0x271631(0x14e)](){const _0x4e343e=_0x271631;this[_0x4e343e(0x160)]=_0x4f16a3(_0x56c7fd[_0x4e343e(0x148)],_0x4e343e(0x181),{'ctx-name':_0x4e343e(0x151)}),_0x56c7fd[_0x4e343e(0x148)][_0x4e343e(0x152)][_0x4e343e(0x156)](this[_0x4e343e(0x160)]);}[_0x271631(0x16c)](){const _0x42258d=_0x271631,_0x253836=this[_0x42258d(0x17b)][_0x42258d(0x178)][_0x42258d(0x18e)](_0x42258d(0x185));_0x253836&&this[_0x42258d(0x18c)](_0x253836,_0x42258d(0x163),()=>{const _0x1d9163=_0x42258d,_0x229f2e=this[_0x1d9163(0x17b)][_0x1d9163(0x14d)][_0x1d9163(0x148)][_0x1d9163(0x145)][_0x1d9163(0x18b)]();_0x229f2e&&_0x229f2e[_0x1d9163(0x192)](_0x1d9163(0x191))&&this[_0x1d9163(0x17b)][_0x1d9163(0x15a)][_0x1d9163(0x18d)][_0x1d9163(0x172)](_0x1d9163(0x166),()=>{const _0x2ea652=_0x1d9163;_0x2ed673(this[_0x2ea652(0x17b)],_0x229f2e);});});const _0x317346=this[_0x42258d(0x17b)][_0x42258d(0x178)][_0x42258d(0x18e)](_0x42258d(0x153));_0x317346&&this[_0x42258d(0x18c)](_0x317346,_0x42258d(0x163),()=>{const _0x104ef2=_0x42258d,_0x228cc9=this[_0x104ef2(0x17b)][_0x104ef2(0x14d)][_0x104ef2(0x148)][_0x104ef2(0x145)][_0x104ef2(0x18b)]();_0x228cc9&&_0x228cc9[_0x104ef2(0x192)](_0x104ef2(0x191))&&this[_0x104ef2(0x17b)][_0x104ef2(0x15a)][_0x104ef2(0x18d)][_0x104ef2(0x172)](_0x104ef2(0x166),()=>{const _0x2c81a2=_0x104ef2;_0x2ed673(this[_0x2c81a2(0x17b)],_0x228cc9);});});}}