@ckeditor/ckeditor5-uploadcare 0.0.0-nightly-20250614.0 → 0.0.0-nightly-20250615.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 _0x14262d,Command as _0x364f88}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x627e9d,IconGooglePhotos as _0x288953,IconGoogleDrive as _0x1d894a,IconFacebook as _0x21dc7e,IconDropbox as _0x46e42d,IconUploadcareLink as _0x36c2ed,IconUploadcareImageUpload as _0x4e6123,IconError as _0x5731a5,IconUploadcareImageEdit as _0xbc5585}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x234afe,MenuBarMenuListItemButtonView as _0x4d988d,View as _0x1ac964,FocusCycler as _0x22d7db,Dialog as _0x5a9e69,DialogViewPosition as _0x3cc85e,SpinnerView as _0x3810ef,IconView as _0x3103a8,Notification as _0x549b5e}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x5b27e4,DomEmitterMixin as _0x45d3b2,global as _0xdb3be7,getAncestors as _0x7aea6f,ObservableMixin as _0x25238a,createElement as _0x590871,uid as _0x33a573}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0xce9fa9}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x2d974f,info as _0x22b485}from'@uploadcare/upload-client';import*as _0x480d41 from'@uploadcare/file-uploader';var i=function(_0x2e278c){return _0x2e278c['Local']='local',_0x2e278c['URL']='url',_0x2e278c['Dropbox']='dropbox',_0x2e278c['GDrive']='gdrive',_0x2e278c['Facebook']='facebook',_0x2e278c['GPhotos']='gphotos',_0x2e278c['OneDrive']='onedrive',_0x2e278c;}({});function _(_0x20a3fa,_0x47c093,_0x26e754){const t=_0x20a3fa['t'],_0x46bac3=_0x20a3fa['t'];switch(_0x47c093){case i['Local']:return{'text':_0x46bac3('Insert'===_0x26e754?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x46bac3('From\x20computer')};case i['URL']:return{'text':'Insert'===_0x26e754?_0x46bac3('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x46bac3('Via\x20URL')};case i['Dropbox']:return{'text':t('Insert'===_0x26e754?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case i['Facebook']:return{'text':t('Insert'===_0x26e754?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case i['GDrive']:return{'text':t('Insert'===_0x26e754?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case i['GPhotos']:return{'text':t('Insert'===_0x26e754?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case i['OneDrive']:return{'text':t('Insert'===_0x26e754?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x47c093;}}class e extends _0x14262d{['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 _0x518587=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x32fbde;for(const _0x36dacb in _0x518587){const _0x57ed81=_0x36dacb,_0xb424c7=_0x518587[_0x57ed81];if('uploadcareLicenseKeyValid'==_0xb424c7||'uploadcareLicenseKeyInvalid'==_0xb424c7||'uploadcareLicenseKeyExpired'==_0xb424c7||'uploadcareLicenseKeyDomainLimit'==_0xb424c7||'uploadcareLicenseKeyNotAllowed'==_0xb424c7||'uploadcareLicenseKeyEvaluationLimit'==_0xb424c7||'uploadcareLicenseKeyTrialLimit'==_0xb424c7||'uploadcareLicenseKeyUsageLimit'==_0xb424c7){delete _0x518587[_0x57ed81],_0x32fbde=_0xb424c7,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x32fbde&&_0x518587['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x32fbde&&_0x518587['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x32fbde&&_0x518587['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x32fbde&&_0x518587['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x32fbde&&_0x518587['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyTrialLimit'==_0x32fbde&&_0x518587['_showLicenseError']('trialLimit'),'uploadcareLicenseKeyUsageLimit'==_0x32fbde&&_0x518587['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x5edc5e}=this,_0x3b006=_0x5edc5e['commands']['get']('uploadcare');if(!_0x3b006)return;const _0x37fcf3=this['_normalizeConfigSourceList'](_0x5edc5e['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x419c37,_0x356458)=>{const _0x4b56b9=this['_getIntegrationKey'](_0x356458['type']);return _0x419c37[_0x4b56b9]||(_0x419c37[_0x4b56b9]=[]),_0x419c37[_0x4b56b9]['push'](_0x356458),_0x419c37;},{});_0x5edc5e['plugins']['has']('ImageInsertUI')&&_0x5edc5e['commands']['get']('uploadcare')&&Object['entries'](_0x37fcf3)['forEach'](([_0x50d4f0,_0x3bc048])=>{_0x5edc5e['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x50d4f0,'observable':()=>_0x3b006,'buttonViewCreator':()=>this['_createToolbarButton'](_0x3bc048),'formViewCreator':()=>this['_createDropdownButtons'](_0x3bc048),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x3bc048),'override':'assetManager'!==_0x50d4f0});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x44de2b){const {locale:_0x1bb322}=this['editor'];return _0x44de2b['map'](_0x35b162=>{const _0x35c9db=_(_0x1bb322,_0x35b162,'Insert');switch(_0x35b162){case i['Local']:return{'icon':_0x4e6123,'type':i['Local'],..._0x35c9db};case i['URL']:return{'icon':_0x36c2ed,'type':i['URL'],..._0x35c9db};case i['Dropbox']:return{'icon':_0x46e42d,'type':i['Dropbox'],..._0x35c9db};case i['Facebook']:return{'icon':_0x21dc7e,'type':i['Facebook'],..._0x35c9db};case i['GDrive']:return{'icon':_0x1d894a,'type':i['GDrive'],..._0x35c9db};case i['GPhotos']:return{'icon':_0x288953,'type':i['GPhotos'],..._0x35c9db};case i['OneDrive']:return{'icon':_0x627e9d,'type':i['OneDrive'],..._0x35c9db};}});}['_getIntegrationKey'](_0x1129a0){switch(_0x1129a0){case i['Local']:return'upload';case i['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x1c18b3,_0x23bc5a){const _0x4ae56e=this['editor'],_0x36cfbb=new _0x1c18b3(_0x4ae56e['locale']),_0x12e618=_0x4ae56e['commands']['get']('uploadcare');return _0x36cfbb['bind']('isEnabled')['to'](_0x12e618),_0x36cfbb['on']('execute',()=>{_0x12e618['execute'](_0x23bc5a);}),_0x36cfbb;}['_createToolbarButton'](_0x347632){const {locale:_0xa6ed10}=this['editor'],_0x4769c7=this['editor']['plugins']['get']('ImageInsertUI'),_0x5613f2=_0x347632[0x0],_0x245d9f=this['_createButton'](_0x234afe,_0x5613f2['type']);return _0x245d9f['icon']=_0x5613f2['icon'],_0x245d9f['bind']('label')['to'](_0x4769c7,'isImageSelected',_0xc75809=>_(_0xa6ed10,_0x5613f2['type'],_0xc75809?'Replace':'Insert')['text']),_0x245d9f['tooltip']=!0x0,_0x245d9f;}['_createDropdownButtons'](_0x33bc5b){const {locale:_0x10bddd}=this['editor'],_0x15380e=this['editor']['plugins']['get']('ImageInsertUI');return _0x33bc5b['map'](_0x27d9a5=>{const _0x2f23e7=this['_createButton'](_0x234afe,_0x27d9a5['type']);return _0x2f23e7['withText']=!0x0,_0x2f23e7['icon']=_0x27d9a5['icon'],_0x2f23e7['bind']('label')['to'](_0x15380e,'isImageSelected',_0x27631a=>_(_0x10bddd,_0x27d9a5['type'],_0x27631a?'Replace':'Insert')['text']),_0x2f23e7;});}['_createMenuBarButtons'](_0x436835){return _0x436835['map'](_0xe6a6c3=>{const _0x37c6ba=this['_createButton'](_0x4d988d,_0xe6a6c3['type']);return _0x37c6ba['icon']=_0xe6a6c3['icon'],_0x37c6ba['label']=_0xe6a6c3['shortText'],_0x37c6ba;});}}class F extends _0x1ac964{['focusTracker'];['focusCycler'];constructor(_0x497c77){super(_0x497c77),this['focusTracker']=new _0x5b27e4(),this['focusCycler']=new _0x22d7db({'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 x extends F{constructor(_0x110b78){super(_0x110b78),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 k(_0x2b1a31,_0x120de2){const _0x11371e=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0xce734b=>_0xce734b<=_0x120de2)['map'](_0x1b2b03=>_0x2b1a31['replace'](/\/$/,'')+'/-/resize/'+_0x1b2b03+'x/\x20'+_0x1b2b03+'w');return{'imageFallbackUrl':_0x2b1a31,'imageSources':[{'srcset':_0x11371e['join'](',\x20'),'sizes':'(max-width:\x20'+_0x120de2+'px)\x20100vw,\x20'+_0x120de2+'px','type':'image/webp'}]};}function C(_0x33985f,_0x59abb3,_0xf96f62){const _0x3bf4bf=_0x33985f['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x3bf4bf?parseInt(_0x3bf4bf[0x1],0xa):_0x59abb3,'height':_0x3bf4bf?parseInt(_0x3bf4bf[0x2],0xa):_0xf96f62};}function p(_0x351257,_0x29b677){const _0x26d945=new(_0x45d3b2())(),_0x4e19f5=_0x351257['plugins']['get']('ImageUtils'),_0x955194=_0x351257['editing']['mapper']['toViewElement'](_0x29b677),_0x26aeee=_0x4e19f5['findViewImgElement'](_0x955194),_0x34570a=_0x351257['editing']['view']['domConverter']['viewToDom'](_0x26aeee),_0x3862ed=_0x29b677['getAttribute']('width'),_0x162105=_0x29b677['getAttribute']('height'),_0x1b5507='image-processing';_0x351257['editing']['view']['change'](_0x4d5796=>{_0x4d5796['addClass'](_0x1b5507,_0x955194),_0x4d5796['setStyle']('aspect-ratio',_0x3862ed+'/'+_0x162105,_0x26aeee);}),_0x26d945['listenTo'](_0x34570a,'load',()=>{_0x26d945['stopListening'](_0x34570a,'load'),_0x351257['editing']['view']['change'](_0x1e6787=>{_0x1e6787['removeClass'](_0x1b5507,_0x955194),_0x1e6787['removeStyle']('aspect-ratio',_0x26aeee);});});}function G(_0x3c5785){if(Array['isArray'](_0x3c5785)){const _0x540293=_0x3c5785['map'](G);return _0x3173db=>_0x540293['some'](_0x3f9387=>_0x3f9387(_0x3173db));}if('origin'==_0x3c5785){const _0x3fa71c=_0xdb3be7['window']['location']['origin'];return _0x1d4430=>new URL(_0x1d4430,_0xdb3be7['document']['baseURI'])['origin']==_0x3fa71c;}return'function'==typeof _0x3c5785?_0x3c5785:_0x3c5785 instanceof RegExp?_0x30f5c3=>!(!_0x30f5c3['match'](_0x3c5785)&&!_0x30f5c3['replace'](/^https?:\/\//,'')['match'](_0x3c5785)):()=>!0x1;}function S(_0x486778,_0x222a8d){return _0x7aea6f(_0x486778['target'])['includes'](_0x222a8d);}class n extends/* #__PURE__ -- @preserve */
24
- _0x25238a(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0xb3445a,_0x354e3f,_0x16a6c0){super(),this['_editor']=_0xb3445a,this['_editing']=_0x354e3f,this['_dialog']=_0xb3445a['plugins']['get'](_0x5a9e69),this['_api']=_0x354e3f['ctxElement']['getAPI'](),this['_type']=_0x16a6c0,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:_0x51182d,model:_0x1cd015}=this['_editor'],_0x38195c=_0x1cd015['document']['selection']['getSelectedElement'](),_0x5e871e=_0x38195c&&(_0x38195c['is']('element','imageBlock')||_0x38195c['is']('element','imageInline'));this['_formView']=new x(_0x51182d),this['_dialog']['show']({'id':'uploadCare','icon':_0x4e6123,'title':_(_0x51182d,this['_type'],_0x5e871e?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x3cc85e['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x1a9658=>!S(_0x1a9658,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x35ffe5}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x43008c=>{const _0x1d76c0=_0x35ffe5['length'];for(const _0x34e3d9 of _0x35ffe5){const _0x178629=_0x34e3d9===_0x35ffe5[_0x1d76c0-0x1],{cdnUrl:_0x49a485,fileInfo:_0x47a218}=_0x34e3d9;if(!_0x49a485||!_0x47a218)continue;const {width:_0x1c584e,height:_0x96cc7b}=_0x47a218['imageInfo'],_0x2caf2c=C(_0x49a485,_0x1c584e,_0x96cc7b),_0x5aef3f=k(_0x49a485,_0x2caf2c['width']),_0x2b9fd2={'id':_0x47a218['uuid'],'type':'image','attributes':{'imageDimension':_0x2caf2c,..._0x5aef3f}};this['_insertAsset'](_0x2b9fd2,_0x178629,_0x43008c);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x10a82e=>{'idle'===_0x10a82e['detail']['status']&&!_0x10a82e['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===i['Local']?this['_api']['setCurrentActivity'](i['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x485e9d,_0x254d57,_0xc5ae8f){const _0x5bbb35=this['_editor']['model']['document']['selection'],_0x19c81b=_0x5bbb35['getSelectedElement'](),_0x13e998=!(!_0x19c81b||!_0x19c81b['is']('element','imageInline'));_0xc5ae8f['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x485e9d,_0x13e998),_0x254d57||_0xc5ae8f['setSelection'](_0x5bbb35['getLastPosition']());}['_insertImage'](_0xd8646,_0x4db197){const _0x219bd1=this['_editor'],{imageDimension:_0x189b9b,imageFallbackUrl:_0x1b5840,imageSources:_0x22c29a}=_0xd8646['attributes'];_0x219bd1['execute']('insertImage',{'imageType':_0x4db197?'imageInline':null,'source':{'uploadcareImageId':_0xd8646['id'],'src':_0x1b5840,'sources':_0x22c29a,..._0x189b9b}});}}class w extends _0x364f88{['_editing'];['_controller']=null;static get['requires'](){return[_0x5a9e69,o];}constructor(_0x3b9f6e){super(_0x3b9f6e),this['_editing']=_0x3b9f6e['plugins']['get'](o);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x2b7100){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new n(this['editor'],this['_editing'],_0x2b7100);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class j{static['upload']({file:_0x21b03b,publicKey:_0x2ac524,signal:_0x2ed81d,onProgress:_0x1bd73f}){return _0x2d974f(_0x21b03b,{'publicKey':_0x2ac524,'store':'auto','signal':_0x2ed81d,'onProgress':_0x1bd73f});}static['getInfo'](_0x51a8df,_0x5966f4){return _0x22b485(_0x51a8df,_0x5966f4);}}class f extends _0x14262d{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0xce9fa9,o];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x335f0b=this['editor'];if(!!!_0x335f0b['config']['get']('uploadcare'))return;_0x335f0b['plugins']['get'](_0xce9fa9)['createUploadAdapter']=_0x170ad8=>new A(_0x170ad8,_0x335f0b),_0x335f0b['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x3df0f7,{imageElement:_0x18e979,data:_0x26e55d})=>{_0x335f0b['model']['change'](_0x533b32=>{_0x533b32['setAttribute']('uploadcareImageId',_0x26e55d['uploadcareImageId'],_0x18e979);});});}}class A{['loader'];['editor'];['controller'];constructor(_0xe185f4,_0xaf7db8){this['loader']=_0xe185f4,this['editor']=_0xaf7db8,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x39975a=this['editor']['config']['get']('uploadcare.pubkey'),_0x4371fa=await this['loader']['file'];return j['upload']({'file':_0x4371fa,'publicKey':_0x39975a,'signal':this['controller']['signal'],'onProgress':_0x423539=>{_0x423539&&_0x423539['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x423539['value']);}})['then'](async _0x315936=>{const {imageFallbackUrl:_0x269f9a,imageSources:_0x3f3750}=k(_0x315936['cdnUrl'],_0x315936['imageInfo']['width']);return{'uploadcareImageId':_0x315936['uuid'],'default':_0x269f9a,'sources':_0x3f3750};})['catch'](()=>{const _0xe01dbe=t('Cannot\x20upload\x20file:')+('\x20'+_0x4371fa['name']+'.');return Promise['reject'](_0xe01dbe);});}['abort'](){this['controller']['abort']();}}class o extends _0x14262d{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',f,_0x5a9e69];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}['init'](){const _0x54271c=this['editor'];_0x54271c['commands']['add']('uploadcare',new w(_0x54271c));}['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 _0x5ace20=_0xdb3be7['document']['querySelector']('input[uploadcare-file-input]');_0x5ace20&&_0x5ace20['remove']();}),async function(_0xd08b9e){const _0x4ab03c=_0x453acf([0x42,0x56,0x7a,0x33,0x31,0x57,0x39,0x50,0x4b,0x62,0x64,0x6f,0x36,0x34,0x6a,0x35,0x37,0x79,0x54,0x61,0x4a,0x47,0x5a,0x65,0x4d,0x70,0x4c,0x6d,0x76,0x66,0x71,0x69,0x4e,0x45,0x48,0x6b,0x72,0x51,0x52,0x43,0x68,0x73,0x53,0x74,0x55,0x41,0x58,0x30,0x78,0x77,0x6c,0x63,0x4f,0x38,0x46,0x44,0x49,0x59,0x75,0x32,0x67,0x6e]),_0x28946d=0x28f7ac2d,_0x116ba1=0x28f0c695^_0x28946d,_0x26e06a=window[_0x453acf([0x44,0x61,0x74,0x65])][_0x453acf([0x6e,0x6f,0x77])](),_0x59355d=_0xd08b9e[_0x453acf([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x26e9c6=new window[(_0x453acf([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x11cb8b=>{_0x59355d[_0x453acf([0x6f,0x6e,0x63,0x65])](_0x453acf([0x72,0x65,0x61,0x64,0x79]),_0x11cb8b);}),_0x5449cd={[_0x453acf([0x6b,0x74,0x79])]:_0x453acf([0x45,0x43]),[_0x453acf([0x75,0x73,0x65])]:_0x453acf([0x73,0x69,0x67]),[_0x453acf([0x63,0x72,0x76])]:_0x453acf([0x50,0x2d,0x32,0x35,0x36]),[_0x453acf([0x78])]:_0x453acf([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]),[_0x453acf([0x79])]:_0x453acf([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]),[_0x453acf([0x61,0x6c,0x67])]:_0x453acf([0x45,0x53,0x32,0x35,0x36])},_0x595e76=_0x59355d[_0x453acf([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x453acf([0x67,0x65,0x74])](_0x453acf([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x20a45f(){let _0xf6eb43,_0x157cf5=null,_0x397fde=null;try{if(_0x595e76==_0x453acf([0x47,0x50,0x4c]))return _0x453acf([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0xf6eb43=_0x14fec1(),!_0xf6eb43)return _0x453acf([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0xf6eb43[_0x453acf([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x397fde=_0x1192b5(_0xf6eb43[_0x453acf([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0xf6eb43[_0x453acf([0x6a,0x74,0x69])])),await _0x48de0f()?_0x17aa2d()?_0x55dd4a()?_0x453acf([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x1ce2d3()?(_0xf6eb43[_0x453acf([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x453acf([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x157cf5=_0x2dfd06(_0x453acf([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0xf6eb43[_0x453acf([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x453acf([0x74,0x72,0x69,0x61,0x6c])&&(_0x157cf5=_0x2dfd06(_0x453acf([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x34a48c()):_0x453acf([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x453acf([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x453acf([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x453acf([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x55dd4a(){const _0x874b99=[_0x453acf([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x453acf([0x74,0x72,0x69,0x61,0x6c])][_0x453acf([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xf6eb43[_0x453acf([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x26e06a/0x3e8:0xe10*_0x116ba1;return _0xf6eb43[_0x453acf([0x65,0x78,0x70])]<_0x874b99;}function _0x17aa2d(){const _0x2a386e=_0xf6eb43[_0x453acf([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x2a386e&&(!!_0x2a386e[_0x453acf([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x453acf([0x2a]))||!!_0x2a386e[_0x453acf([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x453acf([0x55,0x50,0x4c,0x43])));}function _0x1ce2d3(){const _0x538e27=_0xf6eb43[_0x453acf([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x538e27||0x0==_0x538e27[_0x453acf([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x2a8382}=new URL(window[_0x453acf([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x538e27[_0x453acf([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2a8382))return!0x0;const _0x7d312e=_0x2a8382[_0x453acf([0x73,0x70,0x6c,0x69,0x74])](_0x453acf([0x2e]));return _0x538e27[_0x453acf([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x51d649=>_0x51d649[_0x453acf([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x453acf([0x2a])))[_0x453acf([0x6d,0x61,0x70])](_0x62e773=>_0x62e773[_0x453acf([0x73,0x70,0x6c,0x69,0x74])](_0x453acf([0x2e])))[_0x453acf([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x17f497=>_0x17f497[_0x453acf([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x7d312e[_0x453acf([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x453acf([0x6d,0x61,0x70])](_0x5f37b7=>Array(_0x7d312e[_0x453acf([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x5f37b7[_0x453acf([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x453acf([0x66,0x69,0x6c,0x6c])](_0x5f37b7[0x0]===_0x453acf([0x2a])?_0x453acf([0x2a]):'')[_0x453acf([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x5f37b7))[_0x453acf([0x73,0x6f,0x6d,0x65])](_0x9c0fbd=>_0x7d312e[_0x453acf([0x65,0x76,0x65,0x72,0x79])]((_0xc4e49f,_0x261427)=>_0x9c0fbd[_0x261427]===_0xc4e49f||_0x9c0fbd[_0x261427]===_0x453acf([0x2a])));}function _0x34a48c(){return _0x157cf5&&_0x397fde?new window[(_0x453acf([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x146e4c,_0xdd7a94)=>{_0x157cf5[_0x453acf([0x74,0x68,0x65,0x6e])](_0x146e4c,_0xdd7a94),_0x397fde[_0x453acf([0x74,0x68,0x65,0x6e])](_0x613a5a=>{_0x613a5a!=_0x453acf([0x56,0x61,0x6c,0x69,0x64])&&_0x146e4c(_0x613a5a);},_0xdd7a94);}):_0x157cf5||_0x397fde||_0x453acf([0x56,0x61,0x6c,0x69,0x64]);}}function _0x1192b5(_0x40ebde,_0x3039a3){return new window[(_0x453acf([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5f93a5=>{if(_0x7fa82b())return _0x5f93a5(_0x453acf([0x56,0x61,0x6c,0x69,0x64]));_0x22bb68(),_0x59355d[_0x453acf([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x453acf([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0xa508bb=!0x1;const _0x519262=_0x33a573();function _0x2921b3(_0x3106da){return!!_0x3106da&&(typeof _0x3106da===_0x453acf([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x3106da===_0x453acf([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x3106da[_0x453acf([0x74,0x68,0x65,0x6e])]===_0x453acf([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x3106da[_0x453acf([0x63,0x61,0x74,0x63,0x68])]===_0x453acf([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x5d3ed5(_0x3bb244){_0x2ad5ec(_0x3bb244)[_0x453acf([0x74,0x68,0x65,0x6e])](_0x41b669=>{if(!_0x41b669||_0x41b669[_0x453acf([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x453acf([0x6f,0x6b]))return _0x453acf([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x170d7b(_0x1e5bfc(_0x519262+_0x3039a3))!=_0x41b669[_0x453acf([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x453acf([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x453acf([0x56,0x61,0x6c,0x69,0x64]);})[_0x453acf([0x74,0x68,0x65,0x6e])](_0x4c5da7=>(_0x31d2c2(),_0x4c5da7),()=>{const _0x1371b4=_0x11bfdb();return null==_0x1371b4?(_0x31d2c2(),_0x453acf([0x56,0x61,0x6c,0x69,0x64])):_0x453acf(_0x26e06a-_0x1371b4>(0xcfb282d^_0x28946d)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x453acf([0x74,0x68,0x65,0x6e])](_0x5f93a5)[_0x453acf([0x63,0x61,0x74,0x63,0x68])](()=>{_0x5f93a5(_0x453acf([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x53af37=0x28c142ad^_0x28946d;function _0x31d2c2(){const _0x3099ef=_0x453acf([0x6c,0x6c,0x63,0x74,0x2d])+_0x170d7b(_0x1e5bfc(_0x40ebde)),_0x333260=_0xf49210(_0x170d7b(window[_0x453acf([0x4d,0x61,0x74,0x68])][_0x453acf([0x63,0x65,0x69,0x6c])](_0x26e06a/_0x53af37)));window[_0x453acf([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x453acf([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3099ef,_0x333260);}function _0x11bfdb(){const _0x31c762=_0x453acf([0x6c,0x6c,0x63,0x74,0x2d])+_0x170d7b(_0x1e5bfc(_0x40ebde)),_0x428aa5=window[_0x453acf([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x453acf([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x31c762);return _0x428aa5?window[_0x453acf([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xf49210(_0x428aa5),0x10)*_0x53af37:null;}function _0x2ad5ec(_0x38400d){return new window[(_0x453acf([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x503844,_0x4fb883)=>{_0x38400d[_0x453acf([0x74,0x68,0x65,0x6e])](_0x503844,_0x4fb883),window[_0x453acf([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x4fb883,0x28f678ed^_0x28946d);});}}_0x59355d[_0x453acf([0x6f,0x6e])](_0x453acf([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x4bb6d9,_0x4654c9)=>{if(_0x4654c9[0x0]!=_0x40ebde)return _0x5f93a5(_0x453acf([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x4654c9[0x1]={..._0x4654c9[0x1],[_0x453acf([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x519262};},{[_0x453acf([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x453acf([0x68,0x69,0x67,0x68])}),_0x59355d[_0x453acf([0x6f,0x6e])](_0x453acf([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x3d8a99=>{_0x2921b3(_0x3d8a99[_0x453acf([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0xa508bb=!0x0,_0x5d3ed5(_0x3d8a99[_0x453acf([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x453acf([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x453acf([0x6c,0x6f,0x77])}),_0x26e9c6[_0x453acf([0x74,0x68,0x65,0x6e])](()=>{_0xa508bb||_0x5f93a5(_0x453acf([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x7fa82b(){return _0x59355d[_0x453acf([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x453acf([0x76,0x69,0x65,0x77])][_0x453acf([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x453acf([0x61,0x75,0x74,0x6f]);}function _0x22bb68(){_0x59355d[_0x453acf([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x453acf([0x76,0x69,0x65,0x77])][_0x453acf([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x453acf([0x61,0x75,0x74,0x6f]);}}function _0x2dfd06(_0x30789e){const _0x497b2a=[new window[(_0x453acf([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2432a8=>setTimeout(_0x2432a8,0x28fe92e1^_0x28946d)),_0x26e9c6[_0x453acf([0x74,0x68,0x65,0x6e])](()=>new window[(_0x453acf([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xa8ef77=>{let _0x308352=0x0;_0x59355d[_0x453acf([0x6d,0x6f,0x64,0x65,0x6c])][_0x453acf([0x6f,0x6e])](_0x453acf([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x6c836d,_0x1249a0)=>{_0x1249a0[0x0][_0x453acf([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x308352++,_0x308352==(0x28f7add5^_0x28946d)&&(_0xa8ef77(),_0x6c836d[_0x453acf([0x6f,0x66,0x66])]());});}))];return window[_0x453acf([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x453acf([0x72,0x61,0x63,0x65])](_0x497b2a)[_0x453acf([0x74,0x68,0x65,0x6e])](()=>_0x30789e);}async function _0x5284c8(){await _0x26e9c6,_0x59355d[_0x453acf([0x6d,0x6f,0x64,0x65,0x6c])][_0x453acf([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x2f2ada,_0x59355d[_0x453acf([0x6d,0x6f,0x64,0x65,0x6c])][_0x453acf([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x2f2ada,_0x59355d[_0x453acf([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x453acf([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x31257f(_0x1ca2c1){const _0x5a7d4c=_0x24fe0b();_0x59355d[_0x5a7d4c]=_0x453acf([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x1ca2c1,_0x1ca2c1!=_0x453acf([0x56,0x61,0x6c,0x69,0x64])&&_0x5284c8();}function _0x24fe0b(){const _0x4afa74=window[_0x453acf([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x453acf([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x453acf([0x6e,0x6f,0x77])]())[_0x453acf([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x453acf([0x2e]),'');let _0x16b14c=_0x453acf([0x42]);for(let _0x1aa70f=0x0;_0x1aa70f<_0x4afa74[_0x453acf([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1aa70f+=0x2){let _0x4e863=window[_0x453acf([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4afa74[_0x453acf([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x1aa70f,_0x1aa70f+0x2));_0x4e863>=_0x4ab03c[_0x453acf([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x4e863-=_0x4ab03c[_0x453acf([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x16b14c+=_0x4ab03c[_0x4e863];}return _0x16b14c;}function _0x14fec1(){const _0x5f19f4=_0x595e76[_0x453acf([0x73,0x70,0x6c,0x69,0x74])](_0x453acf([0x2e]));if(0x3!=_0x5f19f4[_0x453acf([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x5c040d(_0x5f19f4[0x1]);function _0x5c040d(_0x26d7b9){const _0x31ac53=_0x535228(_0x26d7b9);return _0x31ac53&&_0x12e72a()?_0x31ac53:null;function _0x12e72a(){const _0x241c6b=_0x31ac53[_0x453acf([0x6a,0x74,0x69])],_0x353b1f=window[_0x453acf([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x241c6b[_0x453acf([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x241c6b[_0x453acf([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x31b436={..._0x31ac53,[_0x453acf([0x6a,0x74,0x69])]:_0x241c6b[_0x453acf([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x241c6b[_0x453acf([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x31b436[_0x453acf([0x76,0x63])],_0x1e5bfc(_0x31b436)==_0x353b1f;}}}async function _0x48de0f(){let _0x2c03ee=!0x0;try{const _0x7e8a81=_0x595e76[_0x453acf([0x73,0x70,0x6c,0x69,0x74])](_0x453acf([0x2e])),[_0x1ab2dc,_0x595bd6,_0x1dd64d]=_0x7e8a81;return _0x5b33eb(_0x1ab2dc),await _0x2efadd(_0x1ab2dc,_0x595bd6,_0x1dd64d),_0x2c03ee;}catch{return!0x1;}function _0x5b33eb(_0xc34d34){const _0x10bcc0=_0x535228(_0xc34d34);_0x10bcc0&&_0x10bcc0[_0x453acf([0x61,0x6c,0x67])]==_0x453acf([0x45,0x53,0x32,0x35,0x36])||(_0x2c03ee=!0x1);}async function _0x2efadd(_0x144066,_0x35762f,_0x1c46db){const _0x4b18f7=window[_0x453acf([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x453acf([0x66,0x72,0x6f,0x6d])](_0x524f0b(_0x1c46db),_0x14b873=>_0x14b873[_0x453acf([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x30aa48=new window[(_0x453acf([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x453acf([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x144066+_0x453acf([0x2e])+_0x35762f),_0x504b90=window[_0x453acf([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x453acf([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x504b90)return;const _0x461727=await _0x504b90[_0x453acf([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x453acf([0x6a,0x77,0x6b]),_0x5449cd,{[_0x453acf([0x6e,0x61,0x6d,0x65])]:_0x453acf([0x45,0x43,0x44,0x53,0x41]),[_0x453acf([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x453acf([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x453acf([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x504b90[_0x453acf([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x453acf([0x6e,0x61,0x6d,0x65])]:_0x453acf([0x45,0x43,0x44,0x53,0x41]),[_0x453acf([0x68,0x61,0x73,0x68])]:{[_0x453acf([0x6e,0x61,0x6d,0x65])]:_0x453acf([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x461727,_0x4b18f7,_0x30aa48)||(_0x2c03ee=!0x1);}}function _0x535228(_0x1f9875){return _0x1f9875[_0x453acf([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x453acf([0x65,0x79]))?JSON[_0x453acf([0x70,0x61,0x72,0x73,0x65])](_0x524f0b(_0x1f9875)):null;}function _0x524f0b(_0x8b0b1a){return window[_0x453acf([0x61,0x74,0x6f,0x62])](_0x8b0b1a[_0x453acf([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x453acf([0x2b]))[_0x453acf([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x453acf([0x2f])));}function _0x1e5bfc(_0x12499d){let _0x483c53=0x1505;function _0xc03204(_0x39a87b){for(let _0xf324e4=0x0;_0xf324e4<_0x39a87b[_0x453acf([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0xf324e4++){const _0x510709=_0x39a87b[_0x453acf([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0xf324e4);_0x483c53=(_0x483c53<<0x5)+_0x483c53+_0x510709,_0x483c53&=_0x483c53;}}function _0x160e5f(_0x269d12){Array[_0x453acf([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x269d12)?_0x269d12[_0x453acf([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x160e5f):_0x269d12&&typeof _0x269d12==_0x453acf([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x453acf([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x269d12)[_0x453acf([0x73,0x6f,0x72,0x74])]()[_0x453acf([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x4c3e85,_0x430e62])=>{_0xc03204(_0x4c3e85),_0x160e5f(_0x430e62);}):_0xc03204(window[_0x453acf([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x269d12));}return _0x160e5f(_0x12499d),_0x483c53>>>0x0;}function _0x170d7b(_0xb404c2){return _0xb404c2[_0x453acf([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x453acf([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x453acf([0x30]));}function _0xf49210(_0x1ddfbd){return _0x1ddfbd[_0x453acf([0x73,0x70,0x6c,0x69,0x74])]('')[_0x453acf([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x453acf([0x6a,0x6f,0x69,0x6e])]('');}function _0x2f2ada(){}function _0x453acf(_0x217276){return _0x217276['map'](_0xa03830=>String['fromCharCode'](_0xa03830))['join']('');}_0x31257f(await _0x20a45f());}(this);}['_initSchema'](){const _0x47bc76=this['editor']['model']['schema'];_0x47bc76['isRegistered']('imageBlock')&&_0x47bc76['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x47bc76['isRegistered']('imageInline')&&_0x47bc76['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x3c694f=this['editor'];_0x3c694f['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x3c694f['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x56da81=>_0x56da81['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x2f4913=_0x3c694f['commands']['get']('replaceImageSource');_0x2f4913&&this['listenTo'](_0x2f4913,'cleanupImage',(_0x5594a5,[_0x543203,_0x8c8031])=>{_0x543203['removeAttribute']('uploadcareImageId',_0x8c8031);});}['_initConfig'](){const _0x14f5ac=this['editor']['config']['get']('uploadcare.uploader')||{},_0x4e9936=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x590871(_0xdb3be7['document'],'uc-config',{..._0x14f5ac,'pubkey':_0x4e9936,'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']=_0x11f428=>{if('closeMax'==_0x11f428)return'#uc-icon-arrow-down';},_0xdb3be7['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x590871(_0xdb3be7['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader'}),_0xdb3be7['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x52435a=this['editor']['commands']['get']('insertImage');_0x52435a&&this['listenTo'](_0x52435a,'execute',()=>{const _0x45d45d=this['editor']['model']['document']['selection']['getSelectedElement']();_0x45d45d&&_0x45d45d['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x45d45d);});});const _0xc1025=this['editor']['commands']['get']('uploadcareImageReplace');_0xc1025&&this['listenTo'](_0xc1025,'execute',()=>{const _0x6bcf59=this['editor']['model']['document']['selection']['getSelectedElement']();_0x6bcf59&&_0x6bcf59['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x6bcf59);});});}}class tt extends _0x14262d{static get['requires'](){return[o,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x35ed16){super(_0x35ed16),_0x35ed16['config']['define']('uploadcare.uploader.sourceList',[i['Local'],i['URL']]),_0x480d41['defineComponents'](_0x480d41);}}class ii extends _0x1ac964{constructor(_0x4392c9){super(_0x4392c9);const t=_0x4392c9['t'],_0x4a8685=this['bindTemplate'],_0xd6952e=new _0x3810ef();_0xd6952e['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':[_0xd6952e,{'text':_0x4a8685['to']('imageUploadProgress',_0x53c2e1=>t('Loading\x20image...')+'\x20('+(_0x53c2e1||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 ti extends _0x1ac964{constructor(_0x5050b8){super(_0x5050b8);const t=_0x5050b8['t'];this['set']('errorType',null);const _0x394279=new _0x234afe(_0x5050b8);_0x394279['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x394279['withText']=!0x0,_0x394279['class']='ck-button-action',_0x394279['on']('execute',()=>{this['fire']('retry');}),_0x394279['bind']('isVisible')['to'](this,'errorType',_0x23a5e8=>'NotFound'!==_0x23a5e8);const _0xe71f3d=new _0x3103a8();_0xe71f3d['content']=_0x5731a5,_0xe71f3d['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x589f41=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':[_0xe71f3d,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x589f41['to']('errorType',_0x1e455f=>t('NotFound'!==_0x1e455f?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x394279]},{'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 ei extends _0x1ac964{constructor(_0xa9ef2e,_0xe3da2){super(_0xa9ef2e);const _0x524c84=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0xe3da2,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x524c84['to']('imageSrc')}});}}class X extends F{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x6b51fa,_0x2a7979,_0x56e4b5){super(_0x6b51fa),this['_items']=this['createCollection'](),this['_loadingView']=new ii(_0x6b51fa),this['_errorView']=new ti(_0x6b51fa),this['_editingView']=new ei(_0x6b51fa,_0x56e4b5),this['_focusableView']=new _0x1ac964(_0x6b51fa),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x2a7979),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'],_0xcc7a6f=>{this['_addUploadcareImageEditorListeners'](_0xcc7a6f);});}),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'](_0x434024,_0xba389d){const _0x584f5a='uc-cloud-image-editor',_0x205c74=_0x434024['querySelector'](_0x584f5a);if(_0x205c74)return _0xba389d(_0x205c74);const _0x2382d4=new MutationObserver(_0x49acb8=>{const _0x2deb23=_0x49acb8['filter'](_0x15ced2=>_0x15ced2['target']===_0x434024&&_0x15ced2['addedNodes']['length']>0x0&&_0x15ced2['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x584f5a);_0x2deb23['length']&&(_0x2382d4['disconnect'](),_0xba389d(_0x2deb23[0x0]['addedNodes'][0x0]));});_0x2382d4['observe'](_0x434024,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x3c4041){_0x3c4041['addEventListener']('apply',_0x4e42a5=>{this['fire']('apply',{'imageSrc':_0x4e42a5['detail']['cdnUrl']});}),_0x3c4041['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class E extends/* #__PURE__ -- @preserve */
25
- _0x25238a(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x347f16,_0x3755ff,_0x916c15){super(),this['_editor']=_0x347f16,this['_dialog']=_0x3755ff,this['_imageElement']=_0x916c15,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 _0x5623e2=this['_imageElement'],_0x30f668=_0x5623e2['getAttribute']('uploadcareImageId'),_0x308b57=_0x5623e2['getAttribute']('src');if(_0x30f668)await this['_loadImageInfo'](_0x30f668,_0x308b57);else{if(this['_imageCache']['has'](_0x308b57)){const _0x66d99c=this['_imageCache']['get'](_0x308b57);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x66d99c['url'],this['imageDimension']=_0x66d99c['dimension'],this['imageId']=_0x66d99c['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x42516a}=this['_editor'],t=_0x42516a['t'],_0x4f90c8=new X(_0x42516a,this['imageStatus'],this['_attributes']);_0x4f90c8['bind']('status')['to'](this,'imageStatus'),_0x4f90c8['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x4f90c8['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x4f90c8['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x4f90c8,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0xbc5585,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x4f90c8,'position':_0x3cc85e['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x4f90c8['focus']();},'onHide':()=>{_0x4f90c8['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x992987=>!S(_0x992987,_0x4f90c8['element'])}});}['_loadImageInfo'](_0x2cb354,_0x588903){return j['getInfo'](_0x2cb354,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey')})['then'](_0x20c23a=>{const {width:_0x5008b8,height:_0x217c3a}=_0x20c23a['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x588903,this['imageDimension']={'width':_0x5008b8,'height':_0x217c3a},this['imageId']=_0x2cb354;})['catch'](_0x2bcb9b=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x2bcb9b['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x1d8268,_0x321ec2){return this['_getImageAsFile'](_0x1d8268)['then'](_0xce3c45=>j['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'signal':_0x321ec2['signal'],'file':_0xce3c45,'onProgress':_0x29b477=>{_0x29b477&&_0x29b477['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x29b477['value']));}}))['then'](_0x9b24fe=>{const {width:_0x150aaf,height:_0x8ac599}=_0x9b24fe['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x9b24fe['cdnUrl'],this['imageDimension']={'width':_0x150aaf,'height':_0x8ac599},this['imageId']=_0x9b24fe['uuid'],this['imageUploadProgress']=null;const _0x229245=_0x1d8268['getAttribute']('src');this['_imageCache']['set'](_0x229245,{'id':_0x9b24fe['uuid'],'url':_0x9b24fe['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x2a2bea=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x2a2bea['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x441586,_0x4eda60){_0x441586['on']('apply',(_0x503264,_0x3a9d37)=>{this['_replaceImage'](_0x4eda60,_0x3a9d37['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x441586['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x441586['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x549dcd,_0xc69513,_0x4329bf){const _0x4790cb=this['_editor'],{width:_0x1d478b,height:_0x3e8e8e}=C(_0xc69513,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x1ee8c9,imageSources:_0x14cdf0}=k(_0xc69513,_0x1d478b);_0x4790cb['model']['change'](_0x4d6ead=>{if('$graveyard'===_0x549dcd['root']['rootName']){_0x4790cb['execute']('insertImage',{'imageType':_0x549dcd['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x549dcd['getAttributes']()),'uploadcareImageId':_0x4329bf,'src':_0x1ee8c9,'sources':_0x14cdf0,'width':_0x1d478b,'height':_0x3e8e8e}});const _0x28b2d5=_0x549dcd['getChildren']();_0x549dcd=_0x4790cb['model']['document']['selection']['getSelectedElement']();for(const _0x4871d0 of _0x28b2d5)_0x4d6ead['append'](_0x4d6ead['cloneElement'](_0x4871d0),_0x549dcd);}else _0x4d6ead['setSelection'](_0x549dcd,'on'),_0x4790cb['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x549dcd['getAttributes']()),'uploadcareImageId':_0x4329bf,'src':_0x1ee8c9,'sources':_0x14cdf0,'width':_0x1d478b,'height':_0x3e8e8e},_0x549dcd);_0x4d6ead['setSelection'](_0x549dcd,'on');});}async['_getImageAsFile'](_0x4d42a8){const _0x5862dc=_0xdb3be7['window'],_0xd598f4=_0xdb3be7['document']['location']['href'],_0x484ef9=new _0x5862dc['URL'](_0x4d42a8['getAttribute']('src'),_0xd598f4);if('data:'===_0x484ef9['protocol']){const _0x41fb2c=_0x484ef9['href']['split'](','),_0x236106=_0x41fb2c[0x0]['match'](/:(.*?);/)[0x1],_0x4174e7=_0x236106['split']('/')[0x1],_0x4c0b1a=_0x5862dc['atob'](_0x41fb2c[_0x41fb2c['length']-0x1]);let _0x3f53ef=_0x4c0b1a['length'];const _0x3025a0=new _0x5862dc['Uint8Array'](_0x3f53ef);for(;_0x3f53ef--;)_0x3025a0[_0x3f53ef]=_0x4c0b1a['charCodeAt'](_0x3f53ef);return new _0x5862dc['File']([_0x3025a0],'image.'+_0x4174e7,{'type':_0x236106});}const _0x4aed25=_0x484ef9['href']['split']('/'),_0x23c260=_0x4aed25[_0x4aed25['length']-0x1],_0x20bd99=_0x23c260['split']('.')[0x1];return _0x5862dc['fetch'](_0x484ef9['href'])['then'](_0x4efd65=>_0x4efd65['clone']()['blob']())['then'](_0xf92cd2=>new _0x5862dc['File']([_0xf92cd2],_0x23c260,{'type':'image/'+_0x20bd99}));}}class O extends _0x364f88{['imageEditController'];static get['requires'](){return[_0x5a9e69];}['_isEditable'];constructor(_0x20a236){super(_0x20a236),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x33f002){const _0x572012=G(_0x33f002);return _0x240320=>!(!_0x240320||!_0x240320['is']('element','imageBlock')&&!_0x240320['is']('element','imageInline'))&&(!!_0x240320['hasAttribute']('uploadcareImageId')||!!_0x240320['hasAttribute']('src')&&_0x572012(_0x240320['getAttribute']('src')));}(_0x20a236['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x4e4a1e=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x4e4a1e);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x419448=this['editor']['model']['document']['selection']['getSelectedElement']();_0x419448&&(_0x419448['is']('element','imageBlock')||_0x419448['is']('element','imageInline'))&&(this['imageEditController']=new E(this['editor'],this['editor']['plugins']['get'](_0x5a9e69),_0x419448),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class R extends _0x364f88{['refresh'](){const _0x53f534=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x53f534&&(_0x53f534['is']('element','imageBlock')||_0x53f534['is']('element','imageInline')));}['execute'](_0x183a87){const _0x3f9c5e=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0xdb16f9=>{_0xdb16f9['setAttributes'](_0x183a87,_0x3f9c5e),_0xdb16f9['removeAttribute']('srcset',_0x3f9c5e),_0xdb16f9['removeAttribute']('sizes',_0x3f9c5e);});}}class m extends _0x14262d{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[o,_0x549b5e,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x32f119}=this;_0x32f119['commands']['add']('uploadcareImageEdit',new O(_0x32f119)),_0x32f119['commands']['add']('uploadcareImageReplace',new R(_0x32f119));}}class g extends _0x14262d{['_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 _0x25850f=this['editor'];_0x25850f['ui']['componentFactory']['add']('uploadcareImageEdit',_0xe0421=>{const _0xec408d=_0x25850f['commands']['get']('uploadcareImageEdit'),_0x5f5b4b=new _0x234afe(_0xe0421),t=_0xe0421['t'];return _0x5f5b4b['set']({'icon':_0xbc5585,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x5f5b4b['bind']('isEnabled')['to'](_0xec408d),_0x5f5b4b['bind']('isOn')['to'](_0xec408d,'isActive'),this['listenTo'](_0x5f5b4b,'execute',()=>{_0x25850f['execute']('uploadcareImageEdit'),_0x25850f['editing']['view']['focus']();}),_0x5f5b4b;}),this['_initConfig']();}['_initConfig'](){const _0x1d6a87=_0x590871(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x1d6a87),this['listenTo'](this['editor'],'destroy',()=>{_0x1d6a87['remove']();});}}class et extends _0x14262d{static get['pluginName'](){return'UploadcareImageEdit';}static get['requires'](){return[m,g];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{tt as Uploadcare,w as UploadcareCommand,o as UploadcareEditing,et as UploadcareImageEdit,O as UploadcareImageEditCommand,m as UploadcareImageEditEditing,g as UploadcareImageEditUI,e as UploadcareUI,f as UploadcareUploadAdapter};
23
+ import{Plugin as _0x22599c,Command as _0x9a602d}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x270a1a,IconGooglePhotos as _0x460d83,IconGoogleDrive as _0xabdc76,IconFacebook as _0xa771b3,IconDropbox as _0x55a602,IconUploadcareLink as _0x21725b,IconUploadcareImageUpload as _0x312e22,IconError as _0x25d758,IconUploadcareImageEdit as _0x12a505}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x1e52fd,MenuBarMenuListItemButtonView as _0x31d451,View as _0x5a89c8,FocusCycler as _0x508a30,Dialog as _0x222a52,DialogViewPosition as _0x5ac068,SpinnerView as _0x365e5a,IconView as _0xe361fc,Notification as _0x4ad192}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x1bd8e3,DomEmitterMixin as _0x4b390e,global as _0x40cabf,getAncestors as _0x398d75,ObservableMixin as _0x58e818,createElement as _0x4111db,uid as _0x1c4547}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x3816f0}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x481806,info as _0x42cdbd}from'@uploadcare/upload-client';import*as _0x1fffdd from'@uploadcare/file-uploader';var i=function(_0x2438ae){return _0x2438ae['Local']='local',_0x2438ae['URL']='url',_0x2438ae['Dropbox']='dropbox',_0x2438ae['GDrive']='gdrive',_0x2438ae['Facebook']='facebook',_0x2438ae['GPhotos']='gphotos',_0x2438ae['OneDrive']='onedrive',_0x2438ae;}({});function _(_0x2d8cfc,_0x50cb47,_0x445177){const t=_0x2d8cfc['t'],_0x1b3b0c=_0x2d8cfc['t'];switch(_0x50cb47){case i['Local']:return{'text':_0x1b3b0c('Insert'===_0x445177?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x1b3b0c('From\x20computer')};case i['URL']:return{'text':'Insert'===_0x445177?_0x1b3b0c('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x1b3b0c('Via\x20URL')};case i['Dropbox']:return{'text':t('Insert'===_0x445177?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case i['Facebook']:return{'text':t('Insert'===_0x445177?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case i['GDrive']:return{'text':t('Insert'===_0x445177?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case i['GPhotos']:return{'text':t('Insert'===_0x445177?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case i['OneDrive']:return{'text':t('Insert'===_0x445177?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x50cb47;}}class e extends _0x22599c{['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 _0x18b482=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x2b6fa8;for(const _0x387b59 in _0x18b482){const _0x5dc304=_0x387b59,_0x5e2320=_0x18b482[_0x5dc304];if('uploadcareLicenseKeyValid'==_0x5e2320||'uploadcareLicenseKeyInvalid'==_0x5e2320||'uploadcareLicenseKeyExpired'==_0x5e2320||'uploadcareLicenseKeyDomainLimit'==_0x5e2320||'uploadcareLicenseKeyNotAllowed'==_0x5e2320||'uploadcareLicenseKeyEvaluationLimit'==_0x5e2320||'uploadcareLicenseKeyTrialLimit'==_0x5e2320||'uploadcareLicenseKeyUsageLimit'==_0x5e2320){delete _0x18b482[_0x5dc304],_0x2b6fa8=_0x5e2320,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x2b6fa8&&_0x18b482['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x2b6fa8&&_0x18b482['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x2b6fa8&&_0x18b482['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x2b6fa8&&_0x18b482['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x2b6fa8&&_0x18b482['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyTrialLimit'==_0x2b6fa8&&_0x18b482['_showLicenseError']('trialLimit'),'uploadcareLicenseKeyUsageLimit'==_0x2b6fa8&&_0x18b482['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x7e1a1d}=this,_0x4b6cc1=_0x7e1a1d['commands']['get']('uploadcare');if(!_0x4b6cc1)return;const _0x2e5bf3=this['_normalizeConfigSourceList'](_0x7e1a1d['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x553f5f,_0x2cd430)=>{const _0x2f61eb=this['_getIntegrationKey'](_0x2cd430['type']);return _0x553f5f[_0x2f61eb]||(_0x553f5f[_0x2f61eb]=[]),_0x553f5f[_0x2f61eb]['push'](_0x2cd430),_0x553f5f;},{});_0x7e1a1d['plugins']['has']('ImageInsertUI')&&_0x7e1a1d['commands']['get']('uploadcare')&&Object['entries'](_0x2e5bf3)['forEach'](([_0x18b492,_0x708e66])=>{_0x7e1a1d['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x18b492,'observable':()=>_0x4b6cc1,'buttonViewCreator':()=>this['_createToolbarButton'](_0x708e66),'formViewCreator':()=>this['_createDropdownButtons'](_0x708e66),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x708e66),'override':'assetManager'!==_0x18b492});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x4224a2){const {locale:_0x39fde6}=this['editor'];return _0x4224a2['map'](_0x5a9242=>{const _0x1b3100=_(_0x39fde6,_0x5a9242,'Insert');switch(_0x5a9242){case i['Local']:return{'icon':_0x312e22,'type':i['Local'],..._0x1b3100};case i['URL']:return{'icon':_0x21725b,'type':i['URL'],..._0x1b3100};case i['Dropbox']:return{'icon':_0x55a602,'type':i['Dropbox'],..._0x1b3100};case i['Facebook']:return{'icon':_0xa771b3,'type':i['Facebook'],..._0x1b3100};case i['GDrive']:return{'icon':_0xabdc76,'type':i['GDrive'],..._0x1b3100};case i['GPhotos']:return{'icon':_0x460d83,'type':i['GPhotos'],..._0x1b3100};case i['OneDrive']:return{'icon':_0x270a1a,'type':i['OneDrive'],..._0x1b3100};}});}['_getIntegrationKey'](_0x1a1da0){switch(_0x1a1da0){case i['Local']:return'upload';case i['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x508858,_0x4f57f7){const _0x3768f2=this['editor'],_0x162aba=new _0x508858(_0x3768f2['locale']),_0x200355=_0x3768f2['commands']['get']('uploadcare');return _0x162aba['bind']('isEnabled')['to'](_0x200355),_0x162aba['on']('execute',()=>{_0x200355['execute'](_0x4f57f7);}),_0x162aba;}['_createToolbarButton'](_0x39cc1c){const {locale:_0x3c1840}=this['editor'],_0x2e1a43=this['editor']['plugins']['get']('ImageInsertUI'),_0x3db63a=_0x39cc1c[0x0],_0x3c54ca=this['_createButton'](_0x1e52fd,_0x3db63a['type']);return _0x3c54ca['icon']=_0x3db63a['icon'],_0x3c54ca['bind']('label')['to'](_0x2e1a43,'isImageSelected',_0x261b9b=>_(_0x3c1840,_0x3db63a['type'],_0x261b9b?'Replace':'Insert')['text']),_0x3c54ca['tooltip']=!0x0,_0x3c54ca;}['_createDropdownButtons'](_0x4489dc){const {locale:_0x4d4dd4}=this['editor'],_0x3e5ffe=this['editor']['plugins']['get']('ImageInsertUI');return _0x4489dc['map'](_0x5b44c0=>{const _0x320491=this['_createButton'](_0x1e52fd,_0x5b44c0['type']);return _0x320491['withText']=!0x0,_0x320491['icon']=_0x5b44c0['icon'],_0x320491['bind']('label')['to'](_0x3e5ffe,'isImageSelected',_0x30cc21=>_(_0x4d4dd4,_0x5b44c0['type'],_0x30cc21?'Replace':'Insert')['text']),_0x320491;});}['_createMenuBarButtons'](_0x278bd0){return _0x278bd0['map'](_0xb53c3=>{const _0x3967b4=this['_createButton'](_0x31d451,_0xb53c3['type']);return _0x3967b4['icon']=_0xb53c3['icon'],_0x3967b4['label']=_0xb53c3['shortText'],_0x3967b4;});}}class F extends _0x5a89c8{['focusTracker'];['focusCycler'];constructor(_0x1222fd){super(_0x1222fd),this['focusTracker']=new _0x1bd8e3(),this['focusCycler']=new _0x508a30({'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 x extends F{constructor(_0x1df680){super(_0x1df680),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 k(_0x57e799,_0x54f905){const _0x52c2f3=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x11aaf5=>_0x11aaf5<=_0x54f905)['map'](_0x197c8b=>_0x57e799['replace'](/\/$/,'')+'/-/resize/'+_0x197c8b+'x/\x20'+_0x197c8b+'w');return{'imageFallbackUrl':_0x57e799,'imageSources':[{'srcset':_0x52c2f3['join'](',\x20'),'sizes':'(max-width:\x20'+_0x54f905+'px)\x20100vw,\x20'+_0x54f905+'px','type':'image/webp'}]};}function C(_0x29c1e5,_0x1151ce,_0xa5269e){const _0x16a336=_0x29c1e5['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x16a336?parseInt(_0x16a336[0x1],0xa):_0x1151ce,'height':_0x16a336?parseInt(_0x16a336[0x2],0xa):_0xa5269e};}function p(_0x285fa0,_0x3194a3){const _0xdd6338=new(_0x4b390e())(),_0x41f2ef=_0x285fa0['plugins']['get']('ImageUtils'),_0x58de68=_0x285fa0['editing']['mapper']['toViewElement'](_0x3194a3),_0x1caf1d=_0x41f2ef['findViewImgElement'](_0x58de68),_0x36386f=_0x285fa0['editing']['view']['domConverter']['viewToDom'](_0x1caf1d),_0x215593=_0x3194a3['getAttribute']('width'),_0x2b5a2c=_0x3194a3['getAttribute']('height'),_0x33a74d='image-processing';_0x285fa0['editing']['view']['change'](_0xed9f2f=>{_0xed9f2f['addClass'](_0x33a74d,_0x58de68),_0xed9f2f['setStyle']('aspect-ratio',_0x215593+'/'+_0x2b5a2c,_0x1caf1d);}),_0xdd6338['listenTo'](_0x36386f,'load',()=>{_0xdd6338['stopListening'](_0x36386f,'load'),_0x285fa0['editing']['view']['change'](_0x34cf68=>{_0x34cf68['removeClass'](_0x33a74d,_0x58de68),_0x34cf68['removeStyle']('aspect-ratio',_0x1caf1d);});});}function G(_0x4bb615){if(Array['isArray'](_0x4bb615)){const _0x51dd23=_0x4bb615['map'](G);return _0xdb5726=>_0x51dd23['some'](_0x100b81=>_0x100b81(_0xdb5726));}if('origin'==_0x4bb615){const _0x1a7289=_0x40cabf['window']['location']['origin'];return _0x15660e=>new URL(_0x15660e,_0x40cabf['document']['baseURI'])['origin']==_0x1a7289;}return'function'==typeof _0x4bb615?_0x4bb615:_0x4bb615 instanceof RegExp?_0x135c95=>!(!_0x135c95['match'](_0x4bb615)&&!_0x135c95['replace'](/^https?:\/\//,'')['match'](_0x4bb615)):()=>!0x1;}function S(_0xb71662,_0x502b94){return _0x398d75(_0xb71662['target'])['includes'](_0x502b94);}class n extends/* #__PURE__ -- @preserve */
24
+ _0x58e818(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x240230,_0x1abf0c,_0x413932){super(),this['_editor']=_0x240230,this['_editing']=_0x1abf0c,this['_dialog']=_0x240230['plugins']['get'](_0x222a52),this['_api']=_0x1abf0c['ctxElement']['getAPI'](),this['_type']=_0x413932,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:_0x254918,model:_0x1db1d6}=this['_editor'],_0x135b5c=_0x1db1d6['document']['selection']['getSelectedElement'](),_0x27a168=_0x135b5c&&(_0x135b5c['is']('element','imageBlock')||_0x135b5c['is']('element','imageInline'));this['_formView']=new x(_0x254918),this['_dialog']['show']({'id':'uploadCare','icon':_0x312e22,'title':_(_0x254918,this['_type'],_0x27a168?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x5ac068['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x57c081=>!S(_0x57c081,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0xcf337}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x5d8daf=>{const _0x5e527e=_0xcf337['length'];for(const _0x2d3d32 of _0xcf337){const _0x4233dc=_0x2d3d32===_0xcf337[_0x5e527e-0x1],{cdnUrl:_0x3fdcc0,fileInfo:_0x29a767}=_0x2d3d32;if(!_0x3fdcc0||!_0x29a767)continue;const {width:_0x295700,height:_0x103080}=_0x29a767['imageInfo'],_0x5a195e=C(_0x3fdcc0,_0x295700,_0x103080),_0x2c0116=k(_0x3fdcc0,_0x5a195e['width']),_0x414e54={'id':_0x29a767['uuid'],'type':'image','attributes':{'imageDimension':_0x5a195e,..._0x2c0116}};this['_insertAsset'](_0x414e54,_0x4233dc,_0x5d8daf);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x353b2d=>{'idle'===_0x353b2d['detail']['status']&&!_0x353b2d['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===i['Local']?this['_api']['setCurrentActivity'](i['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x25a1a9,_0x29849c,_0x31bfec){const _0x54e89b=this['_editor']['model']['document']['selection'],_0xfccd14=_0x54e89b['getSelectedElement'](),_0x40ce7b=!(!_0xfccd14||!_0xfccd14['is']('element','imageInline'));_0x31bfec['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x25a1a9,_0x40ce7b),_0x29849c||_0x31bfec['setSelection'](_0x54e89b['getLastPosition']());}['_insertImage'](_0x5541b2,_0x360136){const _0x10edc4=this['_editor'],{imageDimension:_0x270dee,imageFallbackUrl:_0x361115,imageSources:_0x14d227}=_0x5541b2['attributes'];_0x10edc4['execute']('insertImage',{'imageType':_0x360136?'imageInline':null,'source':{'uploadcareImageId':_0x5541b2['id'],'src':_0x361115,'sources':_0x14d227,..._0x270dee}});}}class w extends _0x9a602d{['_editing'];['_controller']=null;static get['requires'](){return[_0x222a52,o];}constructor(_0xa276e7){super(_0xa276e7),this['_editing']=_0xa276e7['plugins']['get'](o);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0xf8061){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new n(this['editor'],this['_editing'],_0xf8061);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class j{static['upload']({file:_0x13269b,publicKey:_0x2c4672,signal:_0x20b925,onProgress:_0x28ce5e}){return _0x481806(_0x13269b,{'publicKey':_0x2c4672,'store':'auto','signal':_0x20b925,'onProgress':_0x28ce5e});}static['getInfo'](_0x3f29f1,_0x3a758e){return _0x42cdbd(_0x3f29f1,_0x3a758e);}}class f extends _0x22599c{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x3816f0,o];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x1d7a31=this['editor'];if(!!!_0x1d7a31['config']['get']('uploadcare'))return;_0x1d7a31['plugins']['get'](_0x3816f0)['createUploadAdapter']=_0x6ba39a=>new A(_0x6ba39a,_0x1d7a31),_0x1d7a31['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x1f3fd6,{imageElement:_0xedd5cc,data:_0x40ee92})=>{_0x1d7a31['model']['change'](_0x37d3e3=>{_0x37d3e3['setAttribute']('uploadcareImageId',_0x40ee92['uploadcareImageId'],_0xedd5cc);});});}}class A{['loader'];['editor'];['controller'];constructor(_0x1c4bbc,_0x3cb9c1){this['loader']=_0x1c4bbc,this['editor']=_0x3cb9c1,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x34f801=this['editor']['config']['get']('uploadcare.pubkey'),_0x5db061=await this['loader']['file'];return j['upload']({'file':_0x5db061,'publicKey':_0x34f801,'signal':this['controller']['signal'],'onProgress':_0x18bf1c=>{_0x18bf1c&&_0x18bf1c['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x18bf1c['value']);}})['then'](async _0x2b6a28=>{const {imageFallbackUrl:_0x211521,imageSources:_0x1ef400}=k(_0x2b6a28['cdnUrl'],_0x2b6a28['imageInfo']['width']);return{'uploadcareImageId':_0x2b6a28['uuid'],'default':_0x211521,'sources':_0x1ef400};})['catch'](()=>{const _0x4ca475=t('Cannot\x20upload\x20file:')+('\x20'+_0x5db061['name']+'.');return Promise['reject'](_0x4ca475);});}['abort'](){this['controller']['abort']();}}class o extends _0x22599c{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',f,_0x222a52];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}['init'](){const _0x413acb=this['editor'];_0x413acb['commands']['add']('uploadcare',new w(_0x413acb));}['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 _0x134165=_0x40cabf['document']['querySelector']('input[uploadcare-file-input]');_0x134165&&_0x134165['remove']();}),async function(_0x55a9c2){const _0x1ead6e=_0x1e7199([0x56,0x5a,0x50,0x46,0x70,0x45,0x64,0x7a,0x65,0x71,0x4c,0x6d,0x36,0x37,0x74,0x6c,0x54,0x55,0x52,0x57,0x77,0x61,0x33,0x51,0x42,0x69,0x32,0x6b,0x31,0x53,0x68,0x4d,0x6a,0x43,0x79,0x48,0x35,0x47,0x4a,0x34,0x49,0x4e,0x39,0x58,0x4b,0x66,0x72,0x73,0x4f,0x38,0x78,0x41,0x76,0x67,0x75,0x59,0x30,0x63,0x62,0x44,0x6f,0x6e]),_0x5cb9d4=0x676da686,_0x56fb27=0x676acc56^_0x5cb9d4,_0x4824b9=window[_0x1e7199([0x44,0x61,0x74,0x65])][_0x1e7199([0x6e,0x6f,0x77])](),_0x1f8ee1=_0x55a9c2[_0x1e7199([0x65,0x64,0x69,0x74,0x6f,0x72])],_0xa04b1=new window[(_0x1e7199([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x283d17=>{_0x1f8ee1[_0x1e7199([0x6f,0x6e,0x63,0x65])](_0x1e7199([0x72,0x65,0x61,0x64,0x79]),_0x283d17);}),_0x204c2c={[_0x1e7199([0x6b,0x74,0x79])]:_0x1e7199([0x45,0x43]),[_0x1e7199([0x75,0x73,0x65])]:_0x1e7199([0x73,0x69,0x67]),[_0x1e7199([0x63,0x72,0x76])]:_0x1e7199([0x50,0x2d,0x32,0x35,0x36]),[_0x1e7199([0x78])]:_0x1e7199([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]),[_0x1e7199([0x79])]:_0x1e7199([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]),[_0x1e7199([0x61,0x6c,0x67])]:_0x1e7199([0x45,0x53,0x32,0x35,0x36])},_0x57bd62=_0x1f8ee1[_0x1e7199([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x1e7199([0x67,0x65,0x74])](_0x1e7199([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x5a72d5(){let _0x3049bc,_0x3144dc=null,_0x585c93=null;try{if(_0x57bd62==_0x1e7199([0x47,0x50,0x4c]))return _0x1e7199([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x3049bc=_0x5db312(),!_0x3049bc)return _0x1e7199([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x3049bc[_0x1e7199([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x585c93=_0x4c5ab7(_0x3049bc[_0x1e7199([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x3049bc[_0x1e7199([0x6a,0x74,0x69])])),await _0x5b9e09()?_0x20da4d()?_0x3c635c()?_0x1e7199([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x71b95()?(_0x3049bc[_0x1e7199([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x1e7199([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x3144dc=_0x43e1cf(_0x1e7199([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x3049bc[_0x1e7199([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x1e7199([0x74,0x72,0x69,0x61,0x6c])&&(_0x3144dc=_0x43e1cf(_0x1e7199([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x35e30c()):_0x1e7199([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x1e7199([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x1e7199([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x1e7199([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x3c635c(){const _0x8fa0f3=[_0x1e7199([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x1e7199([0x74,0x72,0x69,0x61,0x6c])][_0x1e7199([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3049bc[_0x1e7199([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x4824b9/0x3e8:0xe10*_0x56fb27;return _0x3049bc[_0x1e7199([0x65,0x78,0x70])]<_0x8fa0f3;}function _0x20da4d(){const _0x4413b6=_0x3049bc[_0x1e7199([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x4413b6&&(!!_0x4413b6[_0x1e7199([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1e7199([0x2a]))||!!_0x4413b6[_0x1e7199([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1e7199([0x55,0x50,0x4c,0x43])));}function _0x71b95(){const _0x365bef=_0x3049bc[_0x1e7199([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x365bef||0x0==_0x365bef[_0x1e7199([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x2368de}=new URL(window[_0x1e7199([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x365bef[_0x1e7199([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2368de))return!0x0;const _0x11deb8=_0x2368de[_0x1e7199([0x73,0x70,0x6c,0x69,0x74])](_0x1e7199([0x2e]));return _0x365bef[_0x1e7199([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x337260=>_0x337260[_0x1e7199([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1e7199([0x2a])))[_0x1e7199([0x6d,0x61,0x70])](_0x5b98cb=>_0x5b98cb[_0x1e7199([0x73,0x70,0x6c,0x69,0x74])](_0x1e7199([0x2e])))[_0x1e7199([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x26ce16=>_0x26ce16[_0x1e7199([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x11deb8[_0x1e7199([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x1e7199([0x6d,0x61,0x70])](_0x5457f4=>Array(_0x11deb8[_0x1e7199([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x5457f4[_0x1e7199([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x1e7199([0x66,0x69,0x6c,0x6c])](_0x5457f4[0x0]===_0x1e7199([0x2a])?_0x1e7199([0x2a]):'')[_0x1e7199([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x5457f4))[_0x1e7199([0x73,0x6f,0x6d,0x65])](_0x3b4bef=>_0x11deb8[_0x1e7199([0x65,0x76,0x65,0x72,0x79])]((_0x4bca63,_0x4f3ea6)=>_0x3b4bef[_0x4f3ea6]===_0x4bca63||_0x3b4bef[_0x4f3ea6]===_0x1e7199([0x2a])));}function _0x35e30c(){return _0x3144dc&&_0x585c93?new window[(_0x1e7199([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x384592,_0x16f0be)=>{_0x3144dc[_0x1e7199([0x74,0x68,0x65,0x6e])](_0x384592,_0x16f0be),_0x585c93[_0x1e7199([0x74,0x68,0x65,0x6e])](_0x5d12af=>{_0x5d12af!=_0x1e7199([0x56,0x61,0x6c,0x69,0x64])&&_0x384592(_0x5d12af);},_0x16f0be);}):_0x3144dc||_0x585c93||_0x1e7199([0x56,0x61,0x6c,0x69,0x64]);}}function _0x4c5ab7(_0x24f458,_0x1b68e3){return new window[(_0x1e7199([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x58914f=>{if(_0x42feb4())return _0x58914f(_0x1e7199([0x56,0x61,0x6c,0x69,0x64]));_0x945235(),_0x1f8ee1[_0x1e7199([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x1e7199([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x34a0e1=!0x1;const _0x8d181a=_0x1c4547();function _0x791c96(_0x3f84cc){return!!_0x3f84cc&&(typeof _0x3f84cc===_0x1e7199([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x3f84cc===_0x1e7199([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x3f84cc[_0x1e7199([0x74,0x68,0x65,0x6e])]===_0x1e7199([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x3f84cc[_0x1e7199([0x63,0x61,0x74,0x63,0x68])]===_0x1e7199([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x2561d1(_0x890aac){_0x3c4661(_0x890aac)[_0x1e7199([0x74,0x68,0x65,0x6e])](_0x3b4215=>{if(!_0x3b4215||_0x3b4215[_0x1e7199([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x1e7199([0x6f,0x6b]))return _0x1e7199([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x54eb03(_0x3cc736(_0x8d181a+_0x1b68e3))!=_0x3b4215[_0x1e7199([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x1e7199([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x1e7199([0x56,0x61,0x6c,0x69,0x64]);})[_0x1e7199([0x74,0x68,0x65,0x6e])](_0x19bba5=>(_0x54eb75(),_0x19bba5),()=>{const _0x31c040=_0x28049a();return null==_0x31c040?(_0x54eb75(),_0x1e7199([0x56,0x61,0x6c,0x69,0x64])):_0x1e7199(_0x4824b9-_0x31c040>(0x43612286^_0x5cb9d4)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x1e7199([0x74,0x68,0x65,0x6e])](_0x58914f)[_0x1e7199([0x63,0x61,0x74,0x63,0x68])](()=>{_0x58914f(_0x1e7199([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x529e1=0x675b4806^_0x5cb9d4;function _0x54eb75(){const _0x10a358=_0x1e7199([0x6c,0x6c,0x63,0x74,0x2d])+_0x54eb03(_0x3cc736(_0x24f458)),_0x210273=_0x1f774a(_0x54eb03(window[_0x1e7199([0x4d,0x61,0x74,0x68])][_0x1e7199([0x63,0x65,0x69,0x6c])](_0x4824b9/_0x529e1)));window[_0x1e7199([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x1e7199([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x10a358,_0x210273);}function _0x28049a(){const _0x57a8fe=_0x1e7199([0x6c,0x6c,0x63,0x74,0x2d])+_0x54eb03(_0x3cc736(_0x24f458)),_0x4042fa=window[_0x1e7199([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x1e7199([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x57a8fe);return _0x4042fa?window[_0x1e7199([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1f774a(_0x4042fa),0x10)*_0x529e1:null;}function _0x3c4661(_0x2c9167){return new window[(_0x1e7199([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x44b5c9,_0x43c47c)=>{_0x2c9167[_0x1e7199([0x74,0x68,0x65,0x6e])](_0x44b5c9,_0x43c47c),window[_0x1e7199([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x43c47c,0x676c7246^_0x5cb9d4);});}}_0x1f8ee1[_0x1e7199([0x6f,0x6e])](_0x1e7199([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0xe01d57,_0x10b58b)=>{if(_0x10b58b[0x0]!=_0x24f458)return _0x58914f(_0x1e7199([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x10b58b[0x1]={..._0x10b58b[0x1],[_0x1e7199([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x8d181a};},{[_0x1e7199([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x1e7199([0x68,0x69,0x67,0x68])}),_0x1f8ee1[_0x1e7199([0x6f,0x6e])](_0x1e7199([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x12873a=>{_0x791c96(_0x12873a[_0x1e7199([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x34a0e1=!0x0,_0x2561d1(_0x12873a[_0x1e7199([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x1e7199([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x1e7199([0x6c,0x6f,0x77])}),_0xa04b1[_0x1e7199([0x74,0x68,0x65,0x6e])](()=>{_0x34a0e1||_0x58914f(_0x1e7199([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x42feb4(){return _0x1f8ee1[_0x1e7199([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1e7199([0x76,0x69,0x65,0x77])][_0x1e7199([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x1e7199([0x61,0x75,0x74,0x6f]);}function _0x945235(){_0x1f8ee1[_0x1e7199([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1e7199([0x76,0x69,0x65,0x77])][_0x1e7199([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x1e7199([0x61,0x75,0x74,0x6f]);}}function _0x43e1cf(_0x58bb33){const _0x445ceb=[new window[(_0x1e7199([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x30d762=>setTimeout(_0x30d762,0x6764984a^_0x5cb9d4)),_0xa04b1[_0x1e7199([0x74,0x68,0x65,0x6e])](()=>new window[(_0x1e7199([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2ee8e4=>{let _0x17dac1=0x0;_0x1f8ee1[_0x1e7199([0x6d,0x6f,0x64,0x65,0x6c])][_0x1e7199([0x6f,0x6e])](_0x1e7199([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x460466,_0x33f72b)=>{_0x33f72b[0x0][_0x1e7199([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x17dac1++,_0x17dac1==(0x676da77e^_0x5cb9d4)&&(_0x2ee8e4(),_0x460466[_0x1e7199([0x6f,0x66,0x66])]());});}))];return window[_0x1e7199([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x1e7199([0x72,0x61,0x63,0x65])](_0x445ceb)[_0x1e7199([0x74,0x68,0x65,0x6e])](()=>_0x58bb33);}async function _0xd1b237(){await _0xa04b1,_0x1f8ee1[_0x1e7199([0x6d,0x6f,0x64,0x65,0x6c])][_0x1e7199([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x36346f,_0x1f8ee1[_0x1e7199([0x6d,0x6f,0x64,0x65,0x6c])][_0x1e7199([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x36346f,_0x1f8ee1[_0x1e7199([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x1e7199([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x562a46(_0x589567){const _0x470e86=_0x25a714();_0x1f8ee1[_0x470e86]=_0x1e7199([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x589567,_0x589567!=_0x1e7199([0x56,0x61,0x6c,0x69,0x64])&&_0xd1b237();}function _0x25a714(){const _0x2456b5=window[_0x1e7199([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x1e7199([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x1e7199([0x6e,0x6f,0x77])]())[_0x1e7199([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x1e7199([0x2e]),'');let _0x4630c7=_0x1e7199([0x56]);for(let _0x4fa984=0x0;_0x4fa984<_0x2456b5[_0x1e7199([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4fa984+=0x2){let _0x102e39=window[_0x1e7199([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2456b5[_0x1e7199([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4fa984,_0x4fa984+0x2));_0x102e39>=_0x1ead6e[_0x1e7199([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x102e39-=_0x1ead6e[_0x1e7199([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x4630c7+=_0x1ead6e[_0x102e39];}return _0x4630c7;}function _0x5db312(){const _0x141eb2=_0x57bd62[_0x1e7199([0x73,0x70,0x6c,0x69,0x74])](_0x1e7199([0x2e]));if(0x3!=_0x141eb2[_0x1e7199([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x40494d(_0x141eb2[0x1]);function _0x40494d(_0x2abaf8){const _0x367355=_0x54a0f8(_0x2abaf8);return _0x367355&&_0x6ea3ce()?_0x367355:null;function _0x6ea3ce(){const _0x25eec3=_0x367355[_0x1e7199([0x6a,0x74,0x69])],_0x56bce0=window[_0x1e7199([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x25eec3[_0x1e7199([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x25eec3[_0x1e7199([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x1cbf57={..._0x367355,[_0x1e7199([0x6a,0x74,0x69])]:_0x25eec3[_0x1e7199([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x25eec3[_0x1e7199([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x1cbf57[_0x1e7199([0x76,0x63])],_0x3cc736(_0x1cbf57)==_0x56bce0;}}}async function _0x5b9e09(){let _0x4ed571=!0x0;try{const _0x471d6b=_0x57bd62[_0x1e7199([0x73,0x70,0x6c,0x69,0x74])](_0x1e7199([0x2e])),[_0x1b0131,_0x284c6c,_0x43f58e]=_0x471d6b;return _0x596566(_0x1b0131),await _0x51f5f1(_0x1b0131,_0x284c6c,_0x43f58e),_0x4ed571;}catch{return!0x1;}function _0x596566(_0x23c140){const _0x27174a=_0x54a0f8(_0x23c140);_0x27174a&&_0x27174a[_0x1e7199([0x61,0x6c,0x67])]==_0x1e7199([0x45,0x53,0x32,0x35,0x36])||(_0x4ed571=!0x1);}async function _0x51f5f1(_0x10d8be,_0x5035cb,_0x307c64){const _0x38c39a=window[_0x1e7199([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x1e7199([0x66,0x72,0x6f,0x6d])](_0x448d6f(_0x307c64),_0x33245e=>_0x33245e[_0x1e7199([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x29bf65=new window[(_0x1e7199([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x1e7199([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x10d8be+_0x1e7199([0x2e])+_0x5035cb),_0x33b2a5=window[_0x1e7199([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x1e7199([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x33b2a5)return;const _0x23190b=await _0x33b2a5[_0x1e7199([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x1e7199([0x6a,0x77,0x6b]),_0x204c2c,{[_0x1e7199([0x6e,0x61,0x6d,0x65])]:_0x1e7199([0x45,0x43,0x44,0x53,0x41]),[_0x1e7199([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x1e7199([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x1e7199([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x33b2a5[_0x1e7199([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x1e7199([0x6e,0x61,0x6d,0x65])]:_0x1e7199([0x45,0x43,0x44,0x53,0x41]),[_0x1e7199([0x68,0x61,0x73,0x68])]:{[_0x1e7199([0x6e,0x61,0x6d,0x65])]:_0x1e7199([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x23190b,_0x38c39a,_0x29bf65)||(_0x4ed571=!0x1);}}function _0x54a0f8(_0xfb31ae){return _0xfb31ae[_0x1e7199([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x1e7199([0x65,0x79]))?JSON[_0x1e7199([0x70,0x61,0x72,0x73,0x65])](_0x448d6f(_0xfb31ae)):null;}function _0x448d6f(_0x53a010){return window[_0x1e7199([0x61,0x74,0x6f,0x62])](_0x53a010[_0x1e7199([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x1e7199([0x2b]))[_0x1e7199([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x1e7199([0x2f])));}function _0x3cc736(_0x25a75e){let _0x3bb685=0x1505;function _0xf55390(_0x210ac2){for(let _0xf2234d=0x0;_0xf2234d<_0x210ac2[_0x1e7199([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0xf2234d++){const _0x162035=_0x210ac2[_0x1e7199([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0xf2234d);_0x3bb685=(_0x3bb685<<0x5)+_0x3bb685+_0x162035,_0x3bb685&=_0x3bb685;}}function _0x3f540b(_0x4d32db){Array[_0x1e7199([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x4d32db)?_0x4d32db[_0x1e7199([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x3f540b):_0x4d32db&&typeof _0x4d32db==_0x1e7199([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x1e7199([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x4d32db)[_0x1e7199([0x73,0x6f,0x72,0x74])]()[_0x1e7199([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x5bb3d9,_0x658213])=>{_0xf55390(_0x5bb3d9),_0x3f540b(_0x658213);}):_0xf55390(window[_0x1e7199([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x4d32db));}return _0x3f540b(_0x25a75e),_0x3bb685>>>0x0;}function _0x54eb03(_0x286342){return _0x286342[_0x1e7199([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x1e7199([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x1e7199([0x30]));}function _0x1f774a(_0x1e39d5){return _0x1e39d5[_0x1e7199([0x73,0x70,0x6c,0x69,0x74])]('')[_0x1e7199([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x1e7199([0x6a,0x6f,0x69,0x6e])]('');}function _0x36346f(){}function _0x1e7199(_0x63bda5){return _0x63bda5['map'](_0x295203=>String['fromCharCode'](_0x295203))['join']('');}_0x562a46(await _0x5a72d5());}(this);}['_initSchema'](){const _0x527fa9=this['editor']['model']['schema'];_0x527fa9['isRegistered']('imageBlock')&&_0x527fa9['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x527fa9['isRegistered']('imageInline')&&_0x527fa9['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x506ded=this['editor'];_0x506ded['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x506ded['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x584650=>_0x584650['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x2dce08=_0x506ded['commands']['get']('replaceImageSource');_0x2dce08&&this['listenTo'](_0x2dce08,'cleanupImage',(_0x519232,[_0x2d49d4,_0x3e2e28])=>{_0x2d49d4['removeAttribute']('uploadcareImageId',_0x3e2e28);});}['_initConfig'](){const _0x5f397d=this['editor']['config']['get']('uploadcare.uploader')||{},_0x28c0f0=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x4111db(_0x40cabf['document'],'uc-config',{..._0x5f397d,'pubkey':_0x28c0f0,'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']=_0x4c9da6=>{if('closeMax'==_0x4c9da6)return'#uc-icon-arrow-down';},_0x40cabf['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x4111db(_0x40cabf['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader'}),_0x40cabf['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x2bc7ba=this['editor']['commands']['get']('insertImage');_0x2bc7ba&&this['listenTo'](_0x2bc7ba,'execute',()=>{const _0x117258=this['editor']['model']['document']['selection']['getSelectedElement']();_0x117258&&_0x117258['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x117258);});});const _0x1075ff=this['editor']['commands']['get']('uploadcareImageReplace');_0x1075ff&&this['listenTo'](_0x1075ff,'execute',()=>{const _0x8e3b47=this['editor']['model']['document']['selection']['getSelectedElement']();_0x8e3b47&&_0x8e3b47['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x8e3b47);});});}}class tt extends _0x22599c{static get['requires'](){return[o,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0xae6b7e){super(_0xae6b7e),_0xae6b7e['config']['define']('uploadcare.uploader.sourceList',[i['Local'],i['URL']]),_0x1fffdd['defineComponents'](_0x1fffdd);}}class ii extends _0x5a89c8{constructor(_0x4f6e44){super(_0x4f6e44);const t=_0x4f6e44['t'],_0x2f93b9=this['bindTemplate'],_0x4e9983=new _0x365e5a();_0x4e9983['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':[_0x4e9983,{'text':_0x2f93b9['to']('imageUploadProgress',_0x15f1c9=>t('Loading\x20image...')+'\x20('+(_0x15f1c9||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 ti extends _0x5a89c8{constructor(_0x4f99b8){super(_0x4f99b8);const t=_0x4f99b8['t'];this['set']('errorType',null);const _0x576015=new _0x1e52fd(_0x4f99b8);_0x576015['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x576015['withText']=!0x0,_0x576015['class']='ck-button-action',_0x576015['on']('execute',()=>{this['fire']('retry');}),_0x576015['bind']('isVisible')['to'](this,'errorType',_0x13c49e=>'NotFound'!==_0x13c49e);const _0x418e6c=new _0xe361fc();_0x418e6c['content']=_0x25d758,_0x418e6c['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x3c0fb8=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':[_0x418e6c,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x3c0fb8['to']('errorType',_0x2bc070=>t('NotFound'!==_0x2bc070?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x576015]},{'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 ei extends _0x5a89c8{constructor(_0x1c09a5,_0x4968c1){super(_0x1c09a5);const _0x38f27c=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x4968c1,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x38f27c['to']('imageSrc')}});}}class X extends F{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x1decaa,_0x351767,_0xbf356b){super(_0x1decaa),this['_items']=this['createCollection'](),this['_loadingView']=new ii(_0x1decaa),this['_errorView']=new ti(_0x1decaa),this['_editingView']=new ei(_0x1decaa,_0xbf356b),this['_focusableView']=new _0x5a89c8(_0x1decaa),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x351767),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'],_0x36d9e6=>{this['_addUploadcareImageEditorListeners'](_0x36d9e6);});}),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'](_0x1998b9,_0x1bbb28){const _0x1c840c='uc-cloud-image-editor',_0x135747=_0x1998b9['querySelector'](_0x1c840c);if(_0x135747)return _0x1bbb28(_0x135747);const _0x2d9464=new MutationObserver(_0x308ad4=>{const _0x407e0e=_0x308ad4['filter'](_0x4167b2=>_0x4167b2['target']===_0x1998b9&&_0x4167b2['addedNodes']['length']>0x0&&_0x4167b2['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x1c840c);_0x407e0e['length']&&(_0x2d9464['disconnect'](),_0x1bbb28(_0x407e0e[0x0]['addedNodes'][0x0]));});_0x2d9464['observe'](_0x1998b9,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x230b1e){_0x230b1e['addEventListener']('apply',_0x34526c=>{this['fire']('apply',{'imageSrc':_0x34526c['detail']['cdnUrl']});}),_0x230b1e['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class E extends/* #__PURE__ -- @preserve */
25
+ _0x58e818(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x27356c,_0x22c43e,_0x80cf0d){super(),this['_editor']=_0x27356c,this['_dialog']=_0x22c43e,this['_imageElement']=_0x80cf0d,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 _0x43da9e=this['_imageElement'],_0x474ab0=_0x43da9e['getAttribute']('uploadcareImageId'),_0x34c40b=_0x43da9e['getAttribute']('src');if(_0x474ab0)await this['_loadImageInfo'](_0x474ab0,_0x34c40b);else{if(this['_imageCache']['has'](_0x34c40b)){const _0x282eb6=this['_imageCache']['get'](_0x34c40b);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x282eb6['url'],this['imageDimension']=_0x282eb6['dimension'],this['imageId']=_0x282eb6['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x2b64b5}=this['_editor'],t=_0x2b64b5['t'],_0x4cf611=new X(_0x2b64b5,this['imageStatus'],this['_attributes']);_0x4cf611['bind']('status')['to'](this,'imageStatus'),_0x4cf611['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x4cf611['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x4cf611['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x4cf611,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x12a505,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x4cf611,'position':_0x5ac068['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x4cf611['focus']();},'onHide':()=>{_0x4cf611['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x546c88=>!S(_0x546c88,_0x4cf611['element'])}});}['_loadImageInfo'](_0x43382b,_0x698a22){return j['getInfo'](_0x43382b,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey')})['then'](_0x4516a0=>{const {width:_0x3d8849,height:_0xaf91e1}=_0x4516a0['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x698a22,this['imageDimension']={'width':_0x3d8849,'height':_0xaf91e1},this['imageId']=_0x43382b;})['catch'](_0x17afe7=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x17afe7['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x5428ce,_0x1c6527){return this['_getImageAsFile'](_0x5428ce)['then'](_0x1103a5=>j['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'signal':_0x1c6527['signal'],'file':_0x1103a5,'onProgress':_0xfcff85=>{_0xfcff85&&_0xfcff85['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0xfcff85['value']));}}))['then'](_0x4d34a0=>{const {width:_0x11ef7d,height:_0x4c6e97}=_0x4d34a0['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x4d34a0['cdnUrl'],this['imageDimension']={'width':_0x11ef7d,'height':_0x4c6e97},this['imageId']=_0x4d34a0['uuid'],this['imageUploadProgress']=null;const _0x443e50=_0x5428ce['getAttribute']('src');this['_imageCache']['set'](_0x443e50,{'id':_0x4d34a0['uuid'],'url':_0x4d34a0['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x3b8bab=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x3b8bab['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x568b3f,_0x20b8bb){_0x568b3f['on']('apply',(_0x111d2e,_0x3423a7)=>{this['_replaceImage'](_0x20b8bb,_0x3423a7['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x568b3f['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x568b3f['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0xf69f60,_0x1a734c,_0x252594){const _0x49ea5c=this['_editor'],{width:_0x17ecd0,height:_0x39de9a}=C(_0x1a734c,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x4ec3f1,imageSources:_0x4205cd}=k(_0x1a734c,_0x17ecd0);_0x49ea5c['model']['change'](_0x470b5d=>{if('$graveyard'===_0xf69f60['root']['rootName']){_0x49ea5c['execute']('insertImage',{'imageType':_0xf69f60['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0xf69f60['getAttributes']()),'uploadcareImageId':_0x252594,'src':_0x4ec3f1,'sources':_0x4205cd,'width':_0x17ecd0,'height':_0x39de9a}});const _0x23bfd9=_0xf69f60['getChildren']();_0xf69f60=_0x49ea5c['model']['document']['selection']['getSelectedElement']();for(const _0x23fae2 of _0x23bfd9)_0x470b5d['append'](_0x470b5d['cloneElement'](_0x23fae2),_0xf69f60);}else _0x470b5d['setSelection'](_0xf69f60,'on'),_0x49ea5c['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0xf69f60['getAttributes']()),'uploadcareImageId':_0x252594,'src':_0x4ec3f1,'sources':_0x4205cd,'width':_0x17ecd0,'height':_0x39de9a},_0xf69f60);_0x470b5d['setSelection'](_0xf69f60,'on');});}async['_getImageAsFile'](_0x359926){const _0xb182d8=_0x40cabf['window'],_0x1c8970=_0x40cabf['document']['location']['href'],_0x59d375=new _0xb182d8['URL'](_0x359926['getAttribute']('src'),_0x1c8970);if('data:'===_0x59d375['protocol']){const _0x19a096=_0x59d375['href']['split'](','),_0x5646ed=_0x19a096[0x0]['match'](/:(.*?);/)[0x1],_0x3b2150=_0x5646ed['split']('/')[0x1],_0x17d6c0=_0xb182d8['atob'](_0x19a096[_0x19a096['length']-0x1]);let _0xa94078=_0x17d6c0['length'];const _0x312a81=new _0xb182d8['Uint8Array'](_0xa94078);for(;_0xa94078--;)_0x312a81[_0xa94078]=_0x17d6c0['charCodeAt'](_0xa94078);return new _0xb182d8['File']([_0x312a81],'image.'+_0x3b2150,{'type':_0x5646ed});}const _0x4e69e8=_0x59d375['href']['split']('/'),_0x3d69e5=_0x4e69e8[_0x4e69e8['length']-0x1],_0x4e730b=_0x3d69e5['split']('.')[0x1];return _0xb182d8['fetch'](_0x59d375['href'])['then'](_0x203cbb=>_0x203cbb['clone']()['blob']())['then'](_0x1848ff=>new _0xb182d8['File']([_0x1848ff],_0x3d69e5,{'type':'image/'+_0x4e730b}));}}class O extends _0x9a602d{['imageEditController'];static get['requires'](){return[_0x222a52];}['_isEditable'];constructor(_0x5cf26a){super(_0x5cf26a),this['imageEditController']=void 0x0,this['_isEditable']=function(_0xef4c0){const _0x4bc419=G(_0xef4c0);return _0xbb1118=>!(!_0xbb1118||!_0xbb1118['is']('element','imageBlock')&&!_0xbb1118['is']('element','imageInline'))&&(!!_0xbb1118['hasAttribute']('uploadcareImageId')||!!_0xbb1118['hasAttribute']('src')&&_0x4bc419(_0xbb1118['getAttribute']('src')));}(_0x5cf26a['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x157ea1=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x157ea1);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x5c2044=this['editor']['model']['document']['selection']['getSelectedElement']();_0x5c2044&&(_0x5c2044['is']('element','imageBlock')||_0x5c2044['is']('element','imageInline'))&&(this['imageEditController']=new E(this['editor'],this['editor']['plugins']['get'](_0x222a52),_0x5c2044),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class R extends _0x9a602d{['refresh'](){const _0x556847=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x556847&&(_0x556847['is']('element','imageBlock')||_0x556847['is']('element','imageInline')));}['execute'](_0xdbb9f3){const _0xf0e092=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x4c8239=>{_0x4c8239['setAttributes'](_0xdbb9f3,_0xf0e092),_0x4c8239['removeAttribute']('srcset',_0xf0e092),_0x4c8239['removeAttribute']('sizes',_0xf0e092);});}}class m extends _0x22599c{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[o,_0x4ad192,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x4a658}=this;_0x4a658['commands']['add']('uploadcareImageEdit',new O(_0x4a658)),_0x4a658['commands']['add']('uploadcareImageReplace',new R(_0x4a658));}}class g extends _0x22599c{['_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 _0x52db22=this['editor'];_0x52db22['ui']['componentFactory']['add']('uploadcareImageEdit',_0x39672b=>{const _0x58ed18=_0x52db22['commands']['get']('uploadcareImageEdit'),_0x3047de=new _0x1e52fd(_0x39672b),t=_0x39672b['t'];return _0x3047de['set']({'icon':_0x12a505,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x3047de['bind']('isEnabled')['to'](_0x58ed18),_0x3047de['bind']('isOn')['to'](_0x58ed18,'isActive'),this['listenTo'](_0x3047de,'execute',()=>{_0x52db22['execute']('uploadcareImageEdit'),_0x52db22['editing']['view']['focus']();}),_0x3047de;}),this['_initConfig']();}['_initConfig'](){const _0x30ab8b=_0x4111db(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x30ab8b),this['listenTo'](this['editor'],'destroy',()=>{_0x30ab8b['remove']();});}}class et extends _0x22599c{static get['pluginName'](){return'UploadcareImageEdit';}static get['requires'](){return[m,g];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{tt as Uploadcare,w as UploadcareCommand,o as UploadcareEditing,et as UploadcareImageEdit,O as UploadcareImageEditCommand,m as UploadcareImageEditEditing,g as UploadcareImageEditUI,e as UploadcareUI,f as UploadcareUploadAdapter};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ckeditor/ckeditor5-uploadcare",
3
- "version": "0.0.0-nightly-20250614.0",
3
+ "version": "0.0.0-nightly-20250615.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-20250614.0",
27
- "@ckeditor/ckeditor5-icons": "0.0.0-nightly-20250614.0",
28
- "@ckeditor/ckeditor5-image": "0.0.0-nightly-20250614.0",
29
- "@ckeditor/ckeditor5-theme-lark": "0.0.0-nightly-20250614.0",
30
- "@ckeditor/ckeditor5-ui": "0.0.0-nightly-20250614.0",
31
- "@ckeditor/ckeditor5-upload": "0.0.0-nightly-20250614.0",
32
- "@ckeditor/ckeditor5-utils": "0.0.0-nightly-20250614.0",
33
- "ckeditor5": "0.0.0-nightly-20250614.0",
26
+ "@ckeditor/ckeditor5-core": "0.0.0-nightly-20250615.0",
27
+ "@ckeditor/ckeditor5-icons": "0.0.0-nightly-20250615.0",
28
+ "@ckeditor/ckeditor5-image": "0.0.0-nightly-20250615.0",
29
+ "@ckeditor/ckeditor5-theme-lark": "0.0.0-nightly-20250615.0",
30
+ "@ckeditor/ckeditor5-ui": "0.0.0-nightly-20250615.0",
31
+ "@ckeditor/ckeditor5-upload": "0.0.0-nightly-20250615.0",
32
+ "@ckeditor/ckeditor5-utils": "0.0.0-nightly-20250615.0",
33
+ "ckeditor5": "0.0.0-nightly-20250615.0",
34
34
  "@uploadcare/file-uploader": "1.16.2",
35
35
  "@uploadcare/upload-client": "6.14.3"
36
36
  },
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x7e6aac=_0x4a06;function _0x32ad(){const _0x1d3d76=['extend','ctxElement','3tvKaIl','uc-upload-ctx-provider','once','isPremiumPlugin','selection','document','PictureEditing','55sZGtdy','8gbTvlK','view','\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','replaceImageSource','imageBlock','destroy','elementToAttribute','_configElement','173094PtjyVK','144260AvEsTb','_ctxElement','2143274xaxjTC','isOfficialPlugin','_initConfig','pluginName','uploadcare','uploadcare.uploader','add','configElement','_initImageProcessingIndicator','fromCharCode','init','getAttribute','attributeToAttribute','for','closeMax','7595631zdPCMV','editing','iconHrefResolver','57PTcEKy','contentLanguage','body','getSelectedElement','#uc-icon-arrow-down','execute','true','appendChild','render','6147205zTmpBB','insertImage','conversion','uc-config','_initSchema','_initCtx','downcast','requires','editor','remove','6geJTpa','40822272LFTunq','href','292210GKwXLu','uploadcareImageReplace','imageInline','locale','join','afterInit','model','removeAttribute','config','input[uploadcare-file-input]','uploadcare.pubkey','data-uc-image-id','map','listenTo','UploadcareEditing','cleanupImage','_initConversion','commands','uploadcareImageId','upcast','uploader','isRegistered','get','schema','querySelector'];_0x32ad=function(){return _0x1d3d76;};return _0x32ad();}(function(_0x1ff786,_0x283127){const _0x3982ad=_0x4a06,_0x2746e3=_0x1ff786();while(!![]){try{const _0x1b667b=-parseInt(_0x3982ad(0x116))/0x1*(-parseInt(_0x3982ad(0x126))/0x2)+-parseInt(_0x3982ad(0xe5))/0x3*(parseInt(_0x3982ad(0x127))/0x4)+-parseInt(_0x3982ad(0xee))/0x5+-parseInt(_0x3982ad(0xf8))/0x6*(parseInt(_0x3982ad(0x129))/0x7)+-parseInt(_0x3982ad(0x11e))/0x8*(parseInt(_0x3982ad(0xe2))/0x9)+-parseInt(_0x3982ad(0xfb))/0xa*(-parseInt(_0x3982ad(0x11d))/0xb)+parseInt(_0x3982ad(0xf9))/0xc;if(_0x1b667b===_0x283127)break;else _0x2746e3['push'](_0x2746e3['shift']());}catch(_0x4ea1fe){_0x2746e3['push'](_0x2746e3['shift']());}}}(_0x32ad,0xb5581));import{Plugin as _0x3bcaa1}from'ckeditor5/src/core.js';function _0x4a06(_0x132a1d,_0x123342){const _0x32ad6a=_0x32ad();return _0x4a06=function(_0x4a06a5,_0x1f874c){_0x4a06a5=_0x4a06a5-0xdc;let _0x148993=_0x32ad6a[_0x4a06a5];return _0x148993;},_0x4a06(_0x132a1d,_0x123342);}import{Dialog as _0x1170b5}from'ckeditor5/src/ui.js';import{createElement as _0x40fcf7,global as _0x178e1f,uid as _0xec4c27}from'ckeditor5/src/utils.js';import{UploadcareCommand as _0xa625a4}from'./uploadcarecommand.js';import{UploadcareUploadAdapter as _0xe0b56e}from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0x27da00}from'./utils/editingutils.js';export class UploadcareEditing extends _0x3bcaa1{[_0x7e6aac(0x125)]=null;[_0x7e6aac(0x128)]=null;static get[_0x7e6aac(0x12c)](){const _0x431187=_0x7e6aac;return _0x431187(0x109);}static get[_0x7e6aac(0xf5)](){const _0x355f3c=_0x7e6aac;return[_0x355f3c(0x11c),_0xe0b56e,_0x1170b5];}static get[_0x7e6aac(0x12a)](){return!0x0;}static get[_0x7e6aac(0x119)](){return!0x0;}get[_0x7e6aac(0x130)](){const _0x2f6f77=_0x7e6aac;return this[_0x2f6f77(0x125)];}get[_0x7e6aac(0x115)](){const _0x538034=_0x7e6aac;return this[_0x538034(0x128)];}[_0x7e6aac(0xdd)](){const _0x95e386=_0x7e6aac,_0x60046a=this[_0x95e386(0xf6)];_0x60046a[_0x95e386(0x10c)][_0x95e386(0x12f)](_0x95e386(0x12d),new _0xa625a4(_0x60046a));}[_0x7e6aac(0x100)](){const _0x19e02f=_0x7e6aac;this[_0x19e02f(0xf2)](),this[_0x19e02f(0x10b)](),this[_0x19e02f(0x12b)](),this[_0x19e02f(0xf3)](),this[_0x19e02f(0x131)](),this[_0x19e02f(0x108)](this[_0x19e02f(0xf6)],_0x19e02f(0x123),()=>{const _0x22fa61=_0x19e02f;this[_0x22fa61(0x125)]&&(this[_0x22fa61(0x125)][_0x22fa61(0xf7)](),this[_0x22fa61(0x125)]=null),this[_0x22fa61(0x128)]&&(this[_0x22fa61(0x128)][_0x22fa61(0xf7)](),this[_0x22fa61(0x128)]=null);const _0x3c7b8e=_0x178e1f[_0x22fa61(0x11b)][_0x22fa61(0x113)](_0x22fa61(0x104));_0x3c7b8e&&_0x3c7b8e[_0x22fa61(0xf7)]();}),async function(_0x2b8c38){const _0xeda939=_0x483d7c([0x42,0x56,0x7a,0x33,0x31,0x57,0x39,0x50,0x4b,0x62,0x64,0x6f,0x36,0x34,0x6a,0x35,0x37,0x79,0x54,0x61,0x4a,0x47,0x5a,0x65,0x4d,0x70,0x4c,0x6d,0x76,0x66,0x71,0x69,0x4e,0x45,0x48,0x6b,0x72,0x51,0x52,0x43,0x68,0x73,0x53,0x74,0x55,0x41,0x58,0x30,0x78,0x77,0x6c,0x63,0x4f,0x38,0x46,0x44,0x49,0x59,0x75,0x32,0x67,0x6e]),_0x20f8f0=0x28f7ac2d,_0x41e83e=0x28f0c695^_0x20f8f0,_0x26a84f=window[_0x483d7c([0x44,0x61,0x74,0x65])][_0x483d7c([0x6e,0x6f,0x77])](),_0x2a4093=_0x2b8c38[_0x483d7c([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x1422c9=new window[(_0x483d7c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x292dcd=>{_0x2a4093[_0x483d7c([0x6f,0x6e,0x63,0x65])](_0x483d7c([0x72,0x65,0x61,0x64,0x79]),_0x292dcd);}),_0xfe77d={[_0x483d7c([0x6b,0x74,0x79])]:_0x483d7c([0x45,0x43]),[_0x483d7c([0x75,0x73,0x65])]:_0x483d7c([0x73,0x69,0x67]),[_0x483d7c([0x63,0x72,0x76])]:_0x483d7c([0x50,0x2d,0x32,0x35,0x36]),[_0x483d7c([0x78])]:_0x483d7c([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]),[_0x483d7c([0x79])]:_0x483d7c([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]),[_0x483d7c([0x61,0x6c,0x67])]:_0x483d7c([0x45,0x53,0x32,0x35,0x36])},_0xb8dd3c=_0x2a4093[_0x483d7c([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x483d7c([0x67,0x65,0x74])](_0x483d7c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x34f431(){let _0x417344,_0x2dfb46=null,_0x385925=null;try{if(_0xb8dd3c==_0x483d7c([0x47,0x50,0x4c]))return _0x483d7c([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x417344=_0x44aeae(),!_0x417344)return _0x483d7c([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x417344[_0x483d7c([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x385925=_0xdef41f(_0x417344[_0x483d7c([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x417344[_0x483d7c([0x6a,0x74,0x69])])),await _0x1c77f1()?_0x161db2()?_0x1d1b42()?_0x483d7c([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x1db7ee()?(_0x417344[_0x483d7c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x483d7c([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x2dfb46=_0x4fe83b(_0x483d7c([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x417344[_0x483d7c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x483d7c([0x74,0x72,0x69,0x61,0x6c])&&(_0x2dfb46=_0x4fe83b(_0x483d7c([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x3f80ea()):_0x483d7c([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x483d7c([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x483d7c([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x483d7c([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x1d1b42(){const _0x48fe14=[_0x483d7c([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x483d7c([0x74,0x72,0x69,0x61,0x6c])][_0x483d7c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x417344[_0x483d7c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x26a84f/0x3e8:0xe10*_0x41e83e;return _0x417344[_0x483d7c([0x65,0x78,0x70])]<_0x48fe14;}function _0x161db2(){const _0x4c3969=_0x417344[_0x483d7c([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x4c3969&&(!!_0x4c3969[_0x483d7c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x483d7c([0x2a]))||!!_0x4c3969[_0x483d7c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x483d7c([0x55,0x50,0x4c,0x43])));}function _0x1db7ee(){const _0x3a799c=_0x4a06,_0xb8800=_0x417344[_0x483d7c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0xb8800||0x0==_0xb8800[_0x483d7c([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x3cc97c}=new URL(window[_0x483d7c([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x3a799c(0xfa)]);if(_0xb8800[_0x483d7c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3cc97c))return!0x0;const _0x4b3c7b=_0x3cc97c[_0x483d7c([0x73,0x70,0x6c,0x69,0x74])](_0x483d7c([0x2e]));return _0xb8800[_0x483d7c([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x52272b=>_0x52272b[_0x483d7c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x483d7c([0x2a])))[_0x483d7c([0x6d,0x61,0x70])](_0x44f2c9=>_0x44f2c9[_0x483d7c([0x73,0x70,0x6c,0x69,0x74])](_0x483d7c([0x2e])))[_0x483d7c([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x2ffe5d=>_0x2ffe5d[_0x483d7c([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x4b3c7b[_0x483d7c([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x483d7c([0x6d,0x61,0x70])](_0x49c46d=>Array(_0x4b3c7b[_0x483d7c([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x49c46d[_0x483d7c([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x483d7c([0x66,0x69,0x6c,0x6c])](_0x49c46d[0x0]===_0x483d7c([0x2a])?_0x483d7c([0x2a]):'')[_0x483d7c([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x49c46d))[_0x483d7c([0x73,0x6f,0x6d,0x65])](_0x12a0b8=>_0x4b3c7b[_0x483d7c([0x65,0x76,0x65,0x72,0x79])]((_0x4040c5,_0x353056)=>_0x12a0b8[_0x353056]===_0x4040c5||_0x12a0b8[_0x353056]===_0x483d7c([0x2a])));}function _0x3f80ea(){return _0x2dfb46&&_0x385925?new window[(_0x483d7c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3b2a81,_0x3500a6)=>{_0x2dfb46[_0x483d7c([0x74,0x68,0x65,0x6e])](_0x3b2a81,_0x3500a6),_0x385925[_0x483d7c([0x74,0x68,0x65,0x6e])](_0x5195f0=>{_0x5195f0!=_0x483d7c([0x56,0x61,0x6c,0x69,0x64])&&_0x3b2a81(_0x5195f0);},_0x3500a6);}):_0x2dfb46||_0x385925||_0x483d7c([0x56,0x61,0x6c,0x69,0x64]);}}function _0xdef41f(_0x171042,_0x57529f){return new window[(_0x483d7c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x450e64=>{if(_0x4dc5ea())return _0x450e64(_0x483d7c([0x56,0x61,0x6c,0x69,0x64]));_0x47354f(),_0x2a4093[_0x483d7c([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x483d7c([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x4c17ca=!0x1;const _0x32c401=_0xec4c27();function _0x32cb8a(_0x34009e){return!!_0x34009e&&(typeof _0x34009e===_0x483d7c([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x34009e===_0x483d7c([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x34009e[_0x483d7c([0x74,0x68,0x65,0x6e])]===_0x483d7c([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x34009e[_0x483d7c([0x63,0x61,0x74,0x63,0x68])]===_0x483d7c([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x2ae96a(_0x38f3d1){_0x2d41ce(_0x38f3d1)[_0x483d7c([0x74,0x68,0x65,0x6e])](_0x2a743a=>{if(!_0x2a743a||_0x2a743a[_0x483d7c([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x483d7c([0x6f,0x6b]))return _0x483d7c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x17b668(_0x2e55dd(_0x32c401+_0x57529f))!=_0x2a743a[_0x483d7c([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x483d7c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x483d7c([0x56,0x61,0x6c,0x69,0x64]);})[_0x483d7c([0x74,0x68,0x65,0x6e])](_0x54042a=>(_0x63de5c(),_0x54042a),()=>{const _0x31c8a8=_0x2a19a3();return null==_0x31c8a8?(_0x63de5c(),_0x483d7c([0x56,0x61,0x6c,0x69,0x64])):_0x483d7c(_0x26a84f-_0x31c8a8>(0xcfb282d^_0x20f8f0)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x483d7c([0x74,0x68,0x65,0x6e])](_0x450e64)[_0x483d7c([0x63,0x61,0x74,0x63,0x68])](()=>{_0x450e64(_0x483d7c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x126310=0x28c142ad^_0x20f8f0;function _0x63de5c(){const _0x27a45c=_0x483d7c([0x6c,0x6c,0x63,0x74,0x2d])+_0x17b668(_0x2e55dd(_0x171042)),_0x13b883=_0x24c6a1(_0x17b668(window[_0x483d7c([0x4d,0x61,0x74,0x68])][_0x483d7c([0x63,0x65,0x69,0x6c])](_0x26a84f/_0x126310)));window[_0x483d7c([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x483d7c([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x27a45c,_0x13b883);}function _0x2a19a3(){const _0x215af1=_0x483d7c([0x6c,0x6c,0x63,0x74,0x2d])+_0x17b668(_0x2e55dd(_0x171042)),_0x62fe00=window[_0x483d7c([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x483d7c([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x215af1);return _0x62fe00?window[_0x483d7c([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x24c6a1(_0x62fe00),0x10)*_0x126310:null;}function _0x2d41ce(_0x1a2b46){return new window[(_0x483d7c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0xf8ae1b,_0x39a158)=>{_0x1a2b46[_0x483d7c([0x74,0x68,0x65,0x6e])](_0xf8ae1b,_0x39a158),window[_0x483d7c([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x39a158,0x28f678ed^_0x20f8f0);});}}_0x2a4093[_0x483d7c([0x6f,0x6e])](_0x483d7c([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x42e9f0,_0x3248d1)=>{if(_0x3248d1[0x0]!=_0x171042)return _0x450e64(_0x483d7c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x3248d1[0x1]={..._0x3248d1[0x1],[_0x483d7c([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x32c401};},{[_0x483d7c([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x483d7c([0x68,0x69,0x67,0x68])}),_0x2a4093[_0x483d7c([0x6f,0x6e])](_0x483d7c([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x413321=>{_0x32cb8a(_0x413321[_0x483d7c([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x4c17ca=!0x0,_0x2ae96a(_0x413321[_0x483d7c([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x483d7c([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x483d7c([0x6c,0x6f,0x77])}),_0x1422c9[_0x483d7c([0x74,0x68,0x65,0x6e])](()=>{_0x4c17ca||_0x450e64(_0x483d7c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x4dc5ea(){return _0x2a4093[_0x483d7c([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x483d7c([0x76,0x69,0x65,0x77])][_0x483d7c([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x483d7c([0x61,0x75,0x74,0x6f]);}function _0x47354f(){_0x2a4093[_0x483d7c([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x483d7c([0x76,0x69,0x65,0x77])][_0x483d7c([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x483d7c([0x61,0x75,0x74,0x6f]);}}function _0x4fe83b(_0x170039){const _0x438daf=[new window[(_0x483d7c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x7194a4=>setTimeout(_0x7194a4,0x28fe92e1^_0x20f8f0)),_0x1422c9[_0x483d7c([0x74,0x68,0x65,0x6e])](()=>new window[(_0x483d7c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x9b41a0=>{let _0x5d7ac5=0x0;_0x2a4093[_0x483d7c([0x6d,0x6f,0x64,0x65,0x6c])][_0x483d7c([0x6f,0x6e])](_0x483d7c([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x29cf13,_0x26c55e)=>{_0x26c55e[0x0][_0x483d7c([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x5d7ac5++,_0x5d7ac5==(0x28f7add5^_0x20f8f0)&&(_0x9b41a0(),_0x29cf13[_0x483d7c([0x6f,0x66,0x66])]());});}))];return window[_0x483d7c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x483d7c([0x72,0x61,0x63,0x65])](_0x438daf)[_0x483d7c([0x74,0x68,0x65,0x6e])](()=>_0x170039);}async function _0x191658(){await _0x1422c9,_0x2a4093[_0x483d7c([0x6d,0x6f,0x64,0x65,0x6c])][_0x483d7c([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x15ba46,_0x2a4093[_0x483d7c([0x6d,0x6f,0x64,0x65,0x6c])][_0x483d7c([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x15ba46,_0x2a4093[_0x483d7c([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x483d7c([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x3aeeba(_0x1db86f){const _0x57b837=_0x526111();_0x2a4093[_0x57b837]=_0x483d7c([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x1db86f,_0x1db86f!=_0x483d7c([0x56,0x61,0x6c,0x69,0x64])&&_0x191658();}function _0x526111(){const _0x23de35=window[_0x483d7c([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x483d7c([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x483d7c([0x6e,0x6f,0x77])]())[_0x483d7c([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x483d7c([0x2e]),'');let _0x1dd887=_0x483d7c([0x42]);for(let _0x37aa6f=0x0;_0x37aa6f<_0x23de35[_0x483d7c([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x37aa6f+=0x2){let _0x22c8b7=window[_0x483d7c([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x23de35[_0x483d7c([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x37aa6f,_0x37aa6f+0x2));_0x22c8b7>=_0xeda939[_0x483d7c([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x22c8b7-=_0xeda939[_0x483d7c([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x1dd887+=_0xeda939[_0x22c8b7];}return _0x1dd887;}function _0x44aeae(){const _0x4e84ee=_0xb8dd3c[_0x483d7c([0x73,0x70,0x6c,0x69,0x74])](_0x483d7c([0x2e]));if(0x3!=_0x4e84ee[_0x483d7c([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x41fff9(_0x4e84ee[0x1]);function _0x41fff9(_0x4ebf85){const _0x54e67e=_0x28aeed(_0x4ebf85);return _0x54e67e&&_0x297345()?_0x54e67e:null;function _0x297345(){const _0x1a18f7=_0x54e67e[_0x483d7c([0x6a,0x74,0x69])],_0x184d58=window[_0x483d7c([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1a18f7[_0x483d7c([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x1a18f7[_0x483d7c([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x4573d2={..._0x54e67e,[_0x483d7c([0x6a,0x74,0x69])]:_0x1a18f7[_0x483d7c([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x1a18f7[_0x483d7c([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x4573d2[_0x483d7c([0x76,0x63])],_0x2e55dd(_0x4573d2)==_0x184d58;}}}async function _0x1c77f1(){let _0x141c1e=!0x0;try{const _0x4cd7df=_0xb8dd3c[_0x483d7c([0x73,0x70,0x6c,0x69,0x74])](_0x483d7c([0x2e])),[_0x3f4c39,_0x423ce6,_0x2db1d4]=_0x4cd7df;return _0x2e8f0e(_0x3f4c39),await _0x30d189(_0x3f4c39,_0x423ce6,_0x2db1d4),_0x141c1e;}catch{return!0x1;}function _0x2e8f0e(_0x5ae979){const _0x3d99ac=_0x28aeed(_0x5ae979);_0x3d99ac&&_0x3d99ac[_0x483d7c([0x61,0x6c,0x67])]==_0x483d7c([0x45,0x53,0x32,0x35,0x36])||(_0x141c1e=!0x1);}async function _0x30d189(_0x356b5d,_0x12620a,_0x57b864){const _0x1b8d28=window[_0x483d7c([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x483d7c([0x66,0x72,0x6f,0x6d])](_0x39831b(_0x57b864),_0x165df8=>_0x165df8[_0x483d7c([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x4e25d0=new window[(_0x483d7c([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x483d7c([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x356b5d+_0x483d7c([0x2e])+_0x12620a),_0x35a1ab=window[_0x483d7c([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x483d7c([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x35a1ab)return;const _0x1e1c95=await _0x35a1ab[_0x483d7c([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x483d7c([0x6a,0x77,0x6b]),_0xfe77d,{[_0x483d7c([0x6e,0x61,0x6d,0x65])]:_0x483d7c([0x45,0x43,0x44,0x53,0x41]),[_0x483d7c([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x483d7c([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x483d7c([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x35a1ab[_0x483d7c([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x483d7c([0x6e,0x61,0x6d,0x65])]:_0x483d7c([0x45,0x43,0x44,0x53,0x41]),[_0x483d7c([0x68,0x61,0x73,0x68])]:{[_0x483d7c([0x6e,0x61,0x6d,0x65])]:_0x483d7c([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x1e1c95,_0x1b8d28,_0x4e25d0)||(_0x141c1e=!0x1);}}function _0x28aeed(_0x435805){return _0x435805[_0x483d7c([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x483d7c([0x65,0x79]))?JSON[_0x483d7c([0x70,0x61,0x72,0x73,0x65])](_0x39831b(_0x435805)):null;}function _0x39831b(_0x196bc0){return window[_0x483d7c([0x61,0x74,0x6f,0x62])](_0x196bc0[_0x483d7c([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x483d7c([0x2b]))[_0x483d7c([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x483d7c([0x2f])));}function _0x2e55dd(_0x3c5bba){let _0xbb49d9=0x1505;function _0x2a53b9(_0x4e357a){for(let _0x1deb4e=0x0;_0x1deb4e<_0x4e357a[_0x483d7c([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1deb4e++){const _0x53ce74=_0x4e357a[_0x483d7c([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x1deb4e);_0xbb49d9=(_0xbb49d9<<0x5)+_0xbb49d9+_0x53ce74,_0xbb49d9&=_0xbb49d9;}}function _0x1bc74d(_0x5053bb){Array[_0x483d7c([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x5053bb)?_0x5053bb[_0x483d7c([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x1bc74d):_0x5053bb&&typeof _0x5053bb==_0x483d7c([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x483d7c([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x5053bb)[_0x483d7c([0x73,0x6f,0x72,0x74])]()[_0x483d7c([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x29a394,_0x1fd9e8])=>{_0x2a53b9(_0x29a394),_0x1bc74d(_0x1fd9e8);}):_0x2a53b9(window[_0x483d7c([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x5053bb));}return _0x1bc74d(_0x3c5bba),_0xbb49d9>>>0x0;}function _0x17b668(_0x205629){return _0x205629[_0x483d7c([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x483d7c([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x483d7c([0x30]));}function _0x24c6a1(_0x210078){return _0x210078[_0x483d7c([0x73,0x70,0x6c,0x69,0x74])]('')[_0x483d7c([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x483d7c([0x6a,0x6f,0x69,0x6e])]('');}function _0x15ba46(){}function _0x483d7c(_0x53ff3c){const _0x5621e7=_0x4a06;return _0x53ff3c[_0x5621e7(0x107)](_0x59ffbc=>String[_0x5621e7(0xdc)](_0x59ffbc))[_0x5621e7(0xff)]('');}_0x3aeeba(await _0x34f431());}(this);}[_0x7e6aac(0xf2)](){const _0x3583af=_0x7e6aac,_0x1ca71a=this[_0x3583af(0xf6)][_0x3583af(0x101)][_0x3583af(0x112)];_0x1ca71a[_0x3583af(0x110)](_0x3583af(0x122))&&_0x1ca71a[_0x3583af(0x114)](_0x3583af(0x122),{'allowAttributes':[_0x3583af(0x10d)]}),_0x1ca71a[_0x3583af(0x110)](_0x3583af(0xfd))&&_0x1ca71a[_0x3583af(0x114)](_0x3583af(0xfd),{'allowAttributes':[_0x3583af(0x10d)]});}[_0x7e6aac(0x10b)](){const _0x2f8688=_0x7e6aac,_0x568b4a=this[_0x2f8688(0xf6)];_0x568b4a[_0x2f8688(0xf0)][_0x2f8688(0xe0)](_0x2f8688(0xf4))[_0x2f8688(0xdf)]({'model':_0x2f8688(0x10d),'view':_0x2f8688(0x106)}),_0x568b4a[_0x2f8688(0xf0)][_0x2f8688(0xe0)](_0x2f8688(0x10e))[_0x2f8688(0x124)]({'model':{'key':_0x2f8688(0x10d),'value':_0x49b004=>_0x49b004[_0x2f8688(0xde)](_0x2f8688(0x106))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x298433=_0x568b4a[_0x2f8688(0x10c)][_0x2f8688(0x111)](_0x2f8688(0x121));_0x298433&&this[_0x2f8688(0x108)](_0x298433,_0x2f8688(0x10a),(_0x105336,[_0x1dce36,_0x95232a])=>{const _0x1301d8=_0x2f8688;_0x1dce36[_0x1301d8(0x102)](_0x1301d8(0x10d),_0x95232a);});}[_0x7e6aac(0x12b)](){const _0x68d67e=_0x7e6aac,_0x243194=this[_0x68d67e(0xf6)][_0x68d67e(0x103)][_0x68d67e(0x111)](_0x68d67e(0x12e))||{},_0x2a9144=this[_0x68d67e(0xf6)][_0x68d67e(0x103)][_0x68d67e(0x111)](_0x68d67e(0x105))||'';this[_0x68d67e(0x125)]=_0x40fcf7(_0x178e1f[_0x68d67e(0x11b)],_0x68d67e(0xf1),{..._0x243194,'pubkey':_0x2a9144,'ctx-name':_0x68d67e(0x10f),'sourceList':'','imgOnly':_0x68d67e(0xeb),'removeCopyright':_0x68d67e(0xeb),'localeName':this[_0x68d67e(0xf6)][_0x68d67e(0xfe)][_0x68d67e(0xe6)],'externalSourcesEmbedCss':_0x68d67e(0x120)}),this[_0x68d67e(0x125)][_0x68d67e(0xe4)]=_0x48f8c4=>{const _0x3da92e=_0x68d67e;if(_0x3da92e(0xe1)==_0x48f8c4)return _0x3da92e(0xe9);},_0x178e1f[_0x68d67e(0x11b)][_0x68d67e(0xe7)][_0x68d67e(0xec)](this[_0x68d67e(0x125)]);}[_0x7e6aac(0xf3)](){const _0x21fe57=_0x7e6aac;this[_0x21fe57(0x128)]=_0x40fcf7(_0x178e1f[_0x21fe57(0x11b)],_0x21fe57(0x117),{'ctx-name':_0x21fe57(0x10f)}),_0x178e1f[_0x21fe57(0x11b)][_0x21fe57(0xe7)][_0x21fe57(0xec)](this[_0x21fe57(0x128)]);}[_0x7e6aac(0x131)](){const _0x1823c6=_0x7e6aac,_0x2e4d7a=this[_0x1823c6(0xf6)][_0x1823c6(0x10c)][_0x1823c6(0x111)](_0x1823c6(0xef));_0x2e4d7a&&this[_0x1823c6(0x108)](_0x2e4d7a,_0x1823c6(0xea),()=>{const _0x40f16e=_0x1823c6,_0x33f123=this[_0x40f16e(0xf6)][_0x40f16e(0x101)][_0x40f16e(0x11b)][_0x40f16e(0x11a)][_0x40f16e(0xe8)]();_0x33f123&&_0x33f123[_0x40f16e(0xde)](_0x40f16e(0x10d))&&this[_0x40f16e(0xf6)][_0x40f16e(0xe3)][_0x40f16e(0x11f)][_0x40f16e(0x118)](_0x40f16e(0xed),()=>{const _0x3016ac=_0x40f16e;_0x27da00(this[_0x3016ac(0xf6)],_0x33f123);});});const _0x68bb6e=this[_0x1823c6(0xf6)][_0x1823c6(0x10c)][_0x1823c6(0x111)](_0x1823c6(0xfc));_0x68bb6e&&this[_0x1823c6(0x108)](_0x68bb6e,_0x1823c6(0xea),()=>{const _0x119dfb=_0x1823c6,_0x4b2070=this[_0x119dfb(0xf6)][_0x119dfb(0x101)][_0x119dfb(0x11b)][_0x119dfb(0x11a)][_0x119dfb(0xe8)]();_0x4b2070&&_0x4b2070[_0x119dfb(0xde)](_0x119dfb(0x10d))&&this[_0x119dfb(0xf6)][_0x119dfb(0xe3)][_0x119dfb(0x11f)][_0x119dfb(0x118)](_0x119dfb(0xed),()=>{const _0x1760dd=_0x119dfb;_0x27da00(this[_0x1760dd(0xf6)],_0x4b2070);});});}}
23
+ const _0x4c3ba5=_0x5bb4;function _0x5d2a(){const _0xbbc54b=['href','pluginName','selection','_configElement','45xtpYpe','12913542uqGcWi','fromCharCode','_initConfig','isPremiumPlugin','_initSchema','removeAttribute','document','imageInline','querySelector','uploadcare.uploader','appendChild','isRegistered','attributeToAttribute','12456GzcQXA','uploadcareImageReplace','afterInit','map','closeMax','schema','downcast','isOfficialPlugin','ctxElement','_initImageProcessingIndicator','for','config','once','body','locale','destroy','elementToAttribute','extend','contentLanguage','2DgxKfX','iconHrefResolver','listenTo','_ctxElement','3004656HCkWSv','getAttribute','remove','359185SFjeEl','join','configElement','input[uploadcare-file-input]','replaceImageSource','conversion','uploader','getSelectedElement','1200882IhIkAb','uc-upload-ctx-provider','insertImage','upcast','get','uploadcareImageId','editing','requires','init','uc-config','\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','_initCtx','_initConversion','view','imageBlock','cleanupImage','data-uc-image-id','true','model','commands','uploadcare','1505686XDaFlV','add','3068094ojBcqo','render','editor','UploadcareEditing','execute','PictureEditing','#uc-icon-arrow-down','uploadcare.pubkey'];_0x5d2a=function(){return _0xbbc54b;};return _0x5d2a();}(function(_0x329185,_0x3795e2){const _0x303e26=_0x5bb4,_0x5c71a2=_0x329185();while(!![]){try{const _0x239e1c=parseInt(_0x303e26(0xd1))/0x1*(parseInt(_0x303e26(0xca))/0x2)+-parseInt(_0x303e26(0xd9))/0x3+-parseInt(_0x303e26(0xb7))/0x4*(parseInt(_0x303e26(0xa9))/0x5)+-parseInt(_0x303e26(0x9d))/0x6+-parseInt(_0x303e26(0x9b))/0x7+-parseInt(_0x303e26(0xce))/0x8+parseInt(_0x303e26(0xaa))/0x9;if(_0x239e1c===_0x3795e2)break;else _0x5c71a2['push'](_0x5c71a2['shift']());}catch(_0x3eedfa){_0x5c71a2['push'](_0x5c71a2['shift']());}}}(_0x5d2a,0x405fa));import{Plugin as _0x20311e}from'ckeditor5/src/core.js';import{Dialog as _0x248cd0}from'ckeditor5/src/ui.js';import{createElement as _0x1a6a1d,global as _0x5472f4,uid as _0x1d5226}from'ckeditor5/src/utils.js';import{UploadcareCommand as _0x2c52ac}from'./uploadcarecommand.js';function _0x5bb4(_0x5d4f2c,_0x3ad184){const _0x5d2afc=_0x5d2a();return _0x5bb4=function(_0x5bb41a,_0x5b8e97){_0x5bb41a=_0x5bb41a-0x88;let _0x30c976=_0x5d2afc[_0x5bb41a];return _0x30c976;},_0x5bb4(_0x5d4f2c,_0x3ad184);}import{UploadcareUploadAdapter as _0x3ce7ad}from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0x29cfbd}from'./utils/editingutils.js';export class UploadcareEditing extends _0x20311e{[_0x4c3ba5(0xa8)]=null;[_0x4c3ba5(0xcd)]=null;static get[_0x4c3ba5(0xa6)](){const _0x349d4c=_0x4c3ba5;return _0x349d4c(0xa0);}static get[_0x4c3ba5(0x8d)](){const _0x1d30ce=_0x4c3ba5;return[_0x1d30ce(0xa2),_0x3ce7ad,_0x248cd0];}static get[_0x4c3ba5(0xbe)](){return!0x0;}static get[_0x4c3ba5(0xad)](){return!0x0;}get[_0x4c3ba5(0xd3)](){const _0x56ab10=_0x4c3ba5;return this[_0x56ab10(0xa8)];}get[_0x4c3ba5(0xbf)](){const _0x4aceb7=_0x4c3ba5;return this[_0x4aceb7(0xcd)];}[_0x4c3ba5(0x8e)](){const _0x4cdced=_0x4c3ba5,_0x52e868=this[_0x4cdced(0x9f)];_0x52e868[_0x4cdced(0x99)][_0x4cdced(0x9c)](_0x4cdced(0x9a),new _0x2c52ac(_0x52e868));}[_0x4c3ba5(0xb9)](){const _0x58be44=_0x4c3ba5;this[_0x58be44(0xae)](),this[_0x58be44(0x92)](),this[_0x58be44(0xac)](),this[_0x58be44(0x91)](),this[_0x58be44(0xc0)](),this[_0x58be44(0xcc)](this[_0x58be44(0x9f)],_0x58be44(0xc6),()=>{const _0x39ebb9=_0x58be44;this[_0x39ebb9(0xa8)]&&(this[_0x39ebb9(0xa8)][_0x39ebb9(0xd0)](),this[_0x39ebb9(0xa8)]=null),this[_0x39ebb9(0xcd)]&&(this[_0x39ebb9(0xcd)][_0x39ebb9(0xd0)](),this[_0x39ebb9(0xcd)]=null);const _0x2bc605=_0x5472f4[_0x39ebb9(0xb0)][_0x39ebb9(0xb2)](_0x39ebb9(0xd4));_0x2bc605&&_0x2bc605[_0x39ebb9(0xd0)]();}),async function(_0x3005d1){const _0x2b5b53=_0xd26c5e([0x56,0x5a,0x50,0x46,0x70,0x45,0x64,0x7a,0x65,0x71,0x4c,0x6d,0x36,0x37,0x74,0x6c,0x54,0x55,0x52,0x57,0x77,0x61,0x33,0x51,0x42,0x69,0x32,0x6b,0x31,0x53,0x68,0x4d,0x6a,0x43,0x79,0x48,0x35,0x47,0x4a,0x34,0x49,0x4e,0x39,0x58,0x4b,0x66,0x72,0x73,0x4f,0x38,0x78,0x41,0x76,0x67,0x75,0x59,0x30,0x63,0x62,0x44,0x6f,0x6e]),_0xfa859d=0x676da686,_0x5c3e0d=0x676acc56^_0xfa859d,_0x4547b7=window[_0xd26c5e([0x44,0x61,0x74,0x65])][_0xd26c5e([0x6e,0x6f,0x77])](),_0x4e9899=_0x3005d1[_0xd26c5e([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x4ca22f=new window[(_0xd26c5e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x817ef0=>{_0x4e9899[_0xd26c5e([0x6f,0x6e,0x63,0x65])](_0xd26c5e([0x72,0x65,0x61,0x64,0x79]),_0x817ef0);}),_0x130f9b={[_0xd26c5e([0x6b,0x74,0x79])]:_0xd26c5e([0x45,0x43]),[_0xd26c5e([0x75,0x73,0x65])]:_0xd26c5e([0x73,0x69,0x67]),[_0xd26c5e([0x63,0x72,0x76])]:_0xd26c5e([0x50,0x2d,0x32,0x35,0x36]),[_0xd26c5e([0x78])]:_0xd26c5e([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]),[_0xd26c5e([0x79])]:_0xd26c5e([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]),[_0xd26c5e([0x61,0x6c,0x67])]:_0xd26c5e([0x45,0x53,0x32,0x35,0x36])},_0x13408e=_0x4e9899[_0xd26c5e([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0xd26c5e([0x67,0x65,0x74])](_0xd26c5e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x4112ec(){let _0x4af4d8,_0x25f9e8=null,_0x28e4e9=null;try{if(_0x13408e==_0xd26c5e([0x47,0x50,0x4c]))return _0xd26c5e([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x4af4d8=_0x59f0d3(),!_0x4af4d8)return _0xd26c5e([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x4af4d8[_0xd26c5e([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x28e4e9=_0x268aea(_0x4af4d8[_0xd26c5e([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x4af4d8[_0xd26c5e([0x6a,0x74,0x69])])),await _0x36f997()?_0x2d352d()?_0x942e6a()?_0xd26c5e([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x4aa13d()?(_0x4af4d8[_0xd26c5e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0xd26c5e([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x25f9e8=_0x144b0d(_0xd26c5e([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x4af4d8[_0xd26c5e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0xd26c5e([0x74,0x72,0x69,0x61,0x6c])&&(_0x25f9e8=_0x144b0d(_0xd26c5e([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x4bf481()):_0xd26c5e([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0xd26c5e([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0xd26c5e([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0xd26c5e([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x942e6a(){const _0x1c21a5=[_0xd26c5e([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0xd26c5e([0x74,0x72,0x69,0x61,0x6c])][_0xd26c5e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4af4d8[_0xd26c5e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x4547b7/0x3e8:0xe10*_0x5c3e0d;return _0x4af4d8[_0xd26c5e([0x65,0x78,0x70])]<_0x1c21a5;}function _0x2d352d(){const _0xcba79=_0x4af4d8[_0xd26c5e([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0xcba79&&(!!_0xcba79[_0xd26c5e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xd26c5e([0x2a]))||!!_0xcba79[_0xd26c5e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xd26c5e([0x55,0x50,0x4c,0x43])));}function _0x4aa13d(){const _0x21f0c9=_0x5bb4,_0x2f3ad4=_0x4af4d8[_0xd26c5e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x2f3ad4||0x0==_0x2f3ad4[_0xd26c5e([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x39d160}=new URL(window[_0xd26c5e([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x21f0c9(0xa5)]);if(_0x2f3ad4[_0xd26c5e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x39d160))return!0x0;const _0xf1cae8=_0x39d160[_0xd26c5e([0x73,0x70,0x6c,0x69,0x74])](_0xd26c5e([0x2e]));return _0x2f3ad4[_0xd26c5e([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x3ca0f2=>_0x3ca0f2[_0xd26c5e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xd26c5e([0x2a])))[_0xd26c5e([0x6d,0x61,0x70])](_0x4adf53=>_0x4adf53[_0xd26c5e([0x73,0x70,0x6c,0x69,0x74])](_0xd26c5e([0x2e])))[_0xd26c5e([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x5015f7=>_0x5015f7[_0xd26c5e([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0xf1cae8[_0xd26c5e([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0xd26c5e([0x6d,0x61,0x70])](_0x3f50a1=>Array(_0xf1cae8[_0xd26c5e([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x3f50a1[_0xd26c5e([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0xd26c5e([0x66,0x69,0x6c,0x6c])](_0x3f50a1[0x0]===_0xd26c5e([0x2a])?_0xd26c5e([0x2a]):'')[_0xd26c5e([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x3f50a1))[_0xd26c5e([0x73,0x6f,0x6d,0x65])](_0x24e111=>_0xf1cae8[_0xd26c5e([0x65,0x76,0x65,0x72,0x79])]((_0x1320bf,_0x4b0bec)=>_0x24e111[_0x4b0bec]===_0x1320bf||_0x24e111[_0x4b0bec]===_0xd26c5e([0x2a])));}function _0x4bf481(){return _0x25f9e8&&_0x28e4e9?new window[(_0xd26c5e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4d6ab0,_0x26fc82)=>{_0x25f9e8[_0xd26c5e([0x74,0x68,0x65,0x6e])](_0x4d6ab0,_0x26fc82),_0x28e4e9[_0xd26c5e([0x74,0x68,0x65,0x6e])](_0x38c43a=>{_0x38c43a!=_0xd26c5e([0x56,0x61,0x6c,0x69,0x64])&&_0x4d6ab0(_0x38c43a);},_0x26fc82);}):_0x25f9e8||_0x28e4e9||_0xd26c5e([0x56,0x61,0x6c,0x69,0x64]);}}function _0x268aea(_0x36c192,_0x1d36e9){return new window[(_0xd26c5e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x29d3e7=>{if(_0x325888())return _0x29d3e7(_0xd26c5e([0x56,0x61,0x6c,0x69,0x64]));_0x5edad2(),_0x4e9899[_0xd26c5e([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0xd26c5e([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x117c65=!0x1;const _0x50abc6=_0x1d5226();function _0xbffb9e(_0x365176){return!!_0x365176&&(typeof _0x365176===_0xd26c5e([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x365176===_0xd26c5e([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x365176[_0xd26c5e([0x74,0x68,0x65,0x6e])]===_0xd26c5e([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x365176[_0xd26c5e([0x63,0x61,0x74,0x63,0x68])]===_0xd26c5e([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x2a660e(_0x4dbbc5){_0x10bd95(_0x4dbbc5)[_0xd26c5e([0x74,0x68,0x65,0x6e])](_0x1195e0=>{if(!_0x1195e0||_0x1195e0[_0xd26c5e([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0xd26c5e([0x6f,0x6b]))return _0xd26c5e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0xccb89c(_0x1c6f42(_0x50abc6+_0x1d36e9))!=_0x1195e0[_0xd26c5e([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0xd26c5e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0xd26c5e([0x56,0x61,0x6c,0x69,0x64]);})[_0xd26c5e([0x74,0x68,0x65,0x6e])](_0x4be2f8=>(_0x35096e(),_0x4be2f8),()=>{const _0x131c47=_0x11e11c();return null==_0x131c47?(_0x35096e(),_0xd26c5e([0x56,0x61,0x6c,0x69,0x64])):_0xd26c5e(_0x4547b7-_0x131c47>(0x43612286^_0xfa859d)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0xd26c5e([0x74,0x68,0x65,0x6e])](_0x29d3e7)[_0xd26c5e([0x63,0x61,0x74,0x63,0x68])](()=>{_0x29d3e7(_0xd26c5e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x1fbe31=0x675b4806^_0xfa859d;function _0x35096e(){const _0x5410a9=_0xd26c5e([0x6c,0x6c,0x63,0x74,0x2d])+_0xccb89c(_0x1c6f42(_0x36c192)),_0x4f012f=_0x3f374b(_0xccb89c(window[_0xd26c5e([0x4d,0x61,0x74,0x68])][_0xd26c5e([0x63,0x65,0x69,0x6c])](_0x4547b7/_0x1fbe31)));window[_0xd26c5e([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0xd26c5e([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x5410a9,_0x4f012f);}function _0x11e11c(){const _0x5a7b8a=_0xd26c5e([0x6c,0x6c,0x63,0x74,0x2d])+_0xccb89c(_0x1c6f42(_0x36c192)),_0x45548a=window[_0xd26c5e([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0xd26c5e([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x5a7b8a);return _0x45548a?window[_0xd26c5e([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3f374b(_0x45548a),0x10)*_0x1fbe31:null;}function _0x10bd95(_0x171fc6){return new window[(_0xd26c5e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x11be01,_0x31b156)=>{_0x171fc6[_0xd26c5e([0x74,0x68,0x65,0x6e])](_0x11be01,_0x31b156),window[_0xd26c5e([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x31b156,0x676c7246^_0xfa859d);});}}_0x4e9899[_0xd26c5e([0x6f,0x6e])](_0xd26c5e([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x1933f1,_0x1082b8)=>{if(_0x1082b8[0x0]!=_0x36c192)return _0x29d3e7(_0xd26c5e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x1082b8[0x1]={..._0x1082b8[0x1],[_0xd26c5e([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x50abc6};},{[_0xd26c5e([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0xd26c5e([0x68,0x69,0x67,0x68])}),_0x4e9899[_0xd26c5e([0x6f,0x6e])](_0xd26c5e([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x2fc072=>{_0xbffb9e(_0x2fc072[_0xd26c5e([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x117c65=!0x0,_0x2a660e(_0x2fc072[_0xd26c5e([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0xd26c5e([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0xd26c5e([0x6c,0x6f,0x77])}),_0x4ca22f[_0xd26c5e([0x74,0x68,0x65,0x6e])](()=>{_0x117c65||_0x29d3e7(_0xd26c5e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x325888(){return _0x4e9899[_0xd26c5e([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0xd26c5e([0x76,0x69,0x65,0x77])][_0xd26c5e([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0xd26c5e([0x61,0x75,0x74,0x6f]);}function _0x5edad2(){_0x4e9899[_0xd26c5e([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0xd26c5e([0x76,0x69,0x65,0x77])][_0xd26c5e([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0xd26c5e([0x61,0x75,0x74,0x6f]);}}function _0x144b0d(_0x39040b){const _0x25e223=[new window[(_0xd26c5e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4da6dc=>setTimeout(_0x4da6dc,0x6764984a^_0xfa859d)),_0x4ca22f[_0xd26c5e([0x74,0x68,0x65,0x6e])](()=>new window[(_0xd26c5e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x23a06b=>{let _0x2142b4=0x0;_0x4e9899[_0xd26c5e([0x6d,0x6f,0x64,0x65,0x6c])][_0xd26c5e([0x6f,0x6e])](_0xd26c5e([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x514876,_0x3120c3)=>{_0x3120c3[0x0][_0xd26c5e([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x2142b4++,_0x2142b4==(0x676da77e^_0xfa859d)&&(_0x23a06b(),_0x514876[_0xd26c5e([0x6f,0x66,0x66])]());});}))];return window[_0xd26c5e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0xd26c5e([0x72,0x61,0x63,0x65])](_0x25e223)[_0xd26c5e([0x74,0x68,0x65,0x6e])](()=>_0x39040b);}async function _0x450e70(){await _0x4ca22f,_0x4e9899[_0xd26c5e([0x6d,0x6f,0x64,0x65,0x6c])][_0xd26c5e([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x1c3e8a,_0x4e9899[_0xd26c5e([0x6d,0x6f,0x64,0x65,0x6c])][_0xd26c5e([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x1c3e8a,_0x4e9899[_0xd26c5e([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0xd26c5e([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x5b684d(_0x25ab93){const _0x8ff9b2=_0x35df22();_0x4e9899[_0x8ff9b2]=_0xd26c5e([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x25ab93,_0x25ab93!=_0xd26c5e([0x56,0x61,0x6c,0x69,0x64])&&_0x450e70();}function _0x35df22(){const _0x4f259b=window[_0xd26c5e([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0xd26c5e([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0xd26c5e([0x6e,0x6f,0x77])]())[_0xd26c5e([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0xd26c5e([0x2e]),'');let _0x2e1de4=_0xd26c5e([0x56]);for(let _0x969512=0x0;_0x969512<_0x4f259b[_0xd26c5e([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x969512+=0x2){let _0x2f5449=window[_0xd26c5e([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4f259b[_0xd26c5e([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x969512,_0x969512+0x2));_0x2f5449>=_0x2b5b53[_0xd26c5e([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x2f5449-=_0x2b5b53[_0xd26c5e([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x2e1de4+=_0x2b5b53[_0x2f5449];}return _0x2e1de4;}function _0x59f0d3(){const _0x4974f9=_0x13408e[_0xd26c5e([0x73,0x70,0x6c,0x69,0x74])](_0xd26c5e([0x2e]));if(0x3!=_0x4974f9[_0xd26c5e([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x14459c(_0x4974f9[0x1]);function _0x14459c(_0x35e1df){const _0x357ce2=_0x1a8634(_0x35e1df);return _0x357ce2&&_0xd6e25a()?_0x357ce2:null;function _0xd6e25a(){const _0x23e97d=_0x357ce2[_0xd26c5e([0x6a,0x74,0x69])],_0x4c60a=window[_0xd26c5e([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x23e97d[_0xd26c5e([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x23e97d[_0xd26c5e([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x47d603={..._0x357ce2,[_0xd26c5e([0x6a,0x74,0x69])]:_0x23e97d[_0xd26c5e([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x23e97d[_0xd26c5e([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x47d603[_0xd26c5e([0x76,0x63])],_0x1c6f42(_0x47d603)==_0x4c60a;}}}async function _0x36f997(){let _0x52331f=!0x0;try{const _0x568ab7=_0x13408e[_0xd26c5e([0x73,0x70,0x6c,0x69,0x74])](_0xd26c5e([0x2e])),[_0x3e3cb6,_0x2a38f7,_0x4a956a]=_0x568ab7;return _0x31b080(_0x3e3cb6),await _0x1ff3e1(_0x3e3cb6,_0x2a38f7,_0x4a956a),_0x52331f;}catch{return!0x1;}function _0x31b080(_0x2f54e0){const _0x15a221=_0x1a8634(_0x2f54e0);_0x15a221&&_0x15a221[_0xd26c5e([0x61,0x6c,0x67])]==_0xd26c5e([0x45,0x53,0x32,0x35,0x36])||(_0x52331f=!0x1);}async function _0x1ff3e1(_0x1d3a53,_0x43eab2,_0x1bf12e){const _0xc01157=window[_0xd26c5e([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0xd26c5e([0x66,0x72,0x6f,0x6d])](_0x4daf84(_0x1bf12e),_0x315aa5=>_0x315aa5[_0xd26c5e([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x36fd89=new window[(_0xd26c5e([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0xd26c5e([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x1d3a53+_0xd26c5e([0x2e])+_0x43eab2),_0x2ae84e=window[_0xd26c5e([0x63,0x72,0x79,0x70,0x74,0x6f])][_0xd26c5e([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x2ae84e)return;const _0x1c5649=await _0x2ae84e[_0xd26c5e([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0xd26c5e([0x6a,0x77,0x6b]),_0x130f9b,{[_0xd26c5e([0x6e,0x61,0x6d,0x65])]:_0xd26c5e([0x45,0x43,0x44,0x53,0x41]),[_0xd26c5e([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0xd26c5e([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0xd26c5e([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x2ae84e[_0xd26c5e([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0xd26c5e([0x6e,0x61,0x6d,0x65])]:_0xd26c5e([0x45,0x43,0x44,0x53,0x41]),[_0xd26c5e([0x68,0x61,0x73,0x68])]:{[_0xd26c5e([0x6e,0x61,0x6d,0x65])]:_0xd26c5e([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x1c5649,_0xc01157,_0x36fd89)||(_0x52331f=!0x1);}}function _0x1a8634(_0x16d755){return _0x16d755[_0xd26c5e([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0xd26c5e([0x65,0x79]))?JSON[_0xd26c5e([0x70,0x61,0x72,0x73,0x65])](_0x4daf84(_0x16d755)):null;}function _0x4daf84(_0x5502a){return window[_0xd26c5e([0x61,0x74,0x6f,0x62])](_0x5502a[_0xd26c5e([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0xd26c5e([0x2b]))[_0xd26c5e([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0xd26c5e([0x2f])));}function _0x1c6f42(_0x4f9423){let _0x37295e=0x1505;function _0x4e1bf4(_0x45ae68){for(let _0xc135c8=0x0;_0xc135c8<_0x45ae68[_0xd26c5e([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0xc135c8++){const _0x382d45=_0x45ae68[_0xd26c5e([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0xc135c8);_0x37295e=(_0x37295e<<0x5)+_0x37295e+_0x382d45,_0x37295e&=_0x37295e;}}function _0x5523d7(_0x589867){Array[_0xd26c5e([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x589867)?_0x589867[_0xd26c5e([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x5523d7):_0x589867&&typeof _0x589867==_0xd26c5e([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0xd26c5e([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x589867)[_0xd26c5e([0x73,0x6f,0x72,0x74])]()[_0xd26c5e([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x23669b,_0x4b842f])=>{_0x4e1bf4(_0x23669b),_0x5523d7(_0x4b842f);}):_0x4e1bf4(window[_0xd26c5e([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x589867));}return _0x5523d7(_0x4f9423),_0x37295e>>>0x0;}function _0xccb89c(_0xed263e){return _0xed263e[_0xd26c5e([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0xd26c5e([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0xd26c5e([0x30]));}function _0x3f374b(_0x1217cb){return _0x1217cb[_0xd26c5e([0x73,0x70,0x6c,0x69,0x74])]('')[_0xd26c5e([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0xd26c5e([0x6a,0x6f,0x69,0x6e])]('');}function _0x1c3e8a(){}function _0xd26c5e(_0x453067){const _0x1dc8d8=_0x5bb4;return _0x453067[_0x1dc8d8(0xba)](_0x3ee9aa=>String[_0x1dc8d8(0xab)](_0x3ee9aa))[_0x1dc8d8(0xd2)]('');}_0x5b684d(await _0x4112ec());}(this);}[_0x4c3ba5(0xae)](){const _0x16d00b=_0x4c3ba5,_0xfbaacb=this[_0x16d00b(0x9f)][_0x16d00b(0x98)][_0x16d00b(0xbc)];_0xfbaacb[_0x16d00b(0xb5)](_0x16d00b(0x94))&&_0xfbaacb[_0x16d00b(0xc8)](_0x16d00b(0x94),{'allowAttributes':[_0x16d00b(0x8b)]}),_0xfbaacb[_0x16d00b(0xb5)](_0x16d00b(0xb1))&&_0xfbaacb[_0x16d00b(0xc8)](_0x16d00b(0xb1),{'allowAttributes':[_0x16d00b(0x8b)]});}[_0x4c3ba5(0x92)](){const _0x4290da=_0x4c3ba5,_0x227799=this[_0x4290da(0x9f)];_0x227799[_0x4290da(0xd6)][_0x4290da(0xc1)](_0x4290da(0xbd))[_0x4290da(0xb6)]({'model':_0x4290da(0x8b),'view':_0x4290da(0x96)}),_0x227799[_0x4290da(0xd6)][_0x4290da(0xc1)](_0x4290da(0x89))[_0x4290da(0xc7)]({'model':{'key':_0x4290da(0x8b),'value':_0x3048db=>_0x3048db[_0x4290da(0xcf)](_0x4290da(0x96))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x15f01b=_0x227799[_0x4290da(0x99)][_0x4290da(0x8a)](_0x4290da(0xd5));_0x15f01b&&this[_0x4290da(0xcc)](_0x15f01b,_0x4290da(0x95),(_0x148702,[_0x271967,_0x36d05f])=>{const _0x286618=_0x4290da;_0x271967[_0x286618(0xaf)](_0x286618(0x8b),_0x36d05f);});}[_0x4c3ba5(0xac)](){const _0x593a54=_0x4c3ba5,_0x576737=this[_0x593a54(0x9f)][_0x593a54(0xc2)][_0x593a54(0x8a)](_0x593a54(0xb3))||{},_0x123dc9=this[_0x593a54(0x9f)][_0x593a54(0xc2)][_0x593a54(0x8a)](_0x593a54(0xa4))||'';this[_0x593a54(0xa8)]=_0x1a6a1d(_0x5472f4[_0x593a54(0xb0)],_0x593a54(0x8f),{..._0x576737,'pubkey':_0x123dc9,'ctx-name':_0x593a54(0xd7),'sourceList':'','imgOnly':_0x593a54(0x97),'removeCopyright':_0x593a54(0x97),'localeName':this[_0x593a54(0x9f)][_0x593a54(0xc5)][_0x593a54(0xc9)],'externalSourcesEmbedCss':_0x593a54(0x90)}),this[_0x593a54(0xa8)][_0x593a54(0xcb)]=_0x4d9d9b=>{const _0x41f47e=_0x593a54;if(_0x41f47e(0xbb)==_0x4d9d9b)return _0x41f47e(0xa3);},_0x5472f4[_0x593a54(0xb0)][_0x593a54(0xc4)][_0x593a54(0xb4)](this[_0x593a54(0xa8)]);}[_0x4c3ba5(0x91)](){const _0xf915ca=_0x4c3ba5;this[_0xf915ca(0xcd)]=_0x1a6a1d(_0x5472f4[_0xf915ca(0xb0)],_0xf915ca(0xda),{'ctx-name':_0xf915ca(0xd7)}),_0x5472f4[_0xf915ca(0xb0)][_0xf915ca(0xc4)][_0xf915ca(0xb4)](this[_0xf915ca(0xcd)]);}[_0x4c3ba5(0xc0)](){const _0x414666=_0x4c3ba5,_0x5302c8=this[_0x414666(0x9f)][_0x414666(0x99)][_0x414666(0x8a)](_0x414666(0x88));_0x5302c8&&this[_0x414666(0xcc)](_0x5302c8,_0x414666(0xa1),()=>{const _0x45220c=_0x414666,_0x5ac779=this[_0x45220c(0x9f)][_0x45220c(0x98)][_0x45220c(0xb0)][_0x45220c(0xa7)][_0x45220c(0xd8)]();_0x5ac779&&_0x5ac779[_0x45220c(0xcf)](_0x45220c(0x8b))&&this[_0x45220c(0x9f)][_0x45220c(0x8c)][_0x45220c(0x93)][_0x45220c(0xc3)](_0x45220c(0x9e),()=>{const _0xab1d71=_0x45220c;_0x29cfbd(this[_0xab1d71(0x9f)],_0x5ac779);});});const _0x5ab5c2=this[_0x414666(0x9f)][_0x414666(0x99)][_0x414666(0x8a)](_0x414666(0xb8));_0x5ab5c2&&this[_0x414666(0xcc)](_0x5ab5c2,_0x414666(0xa1),()=>{const _0x57f531=_0x414666,_0x4ffe17=this[_0x57f531(0x9f)][_0x57f531(0x98)][_0x57f531(0xb0)][_0x57f531(0xa7)][_0x57f531(0xd8)]();_0x4ffe17&&_0x4ffe17[_0x57f531(0xcf)](_0x57f531(0x8b))&&this[_0x57f531(0x9f)][_0x57f531(0x8c)][_0x57f531(0x93)][_0x57f531(0xc3)](_0x57f531(0x9e),()=>{const _0x5b9d89=_0x57f531;_0x29cfbd(this[_0x5b9d89(0x9f)],_0x4ffe17);});});}}