@ckeditor/ckeditor5-uploadcare 0.0.0-nightly-next-20251209.0 → 0.0.0-nightly-next-20251210.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 _0x14517a,Command as _0x91f916}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x2ab01c,IconGooglePhotos as _0xc1e77c,IconGoogleDrive as _0xb90c5c,IconFacebook as _0x55bf04,IconDropbox as _0xdc0293,IconUploadcareLink as _0x57f730,IconUploadcareImageUpload as _0x355919,IconError as _0x675836,IconUploadcareImageEdit as _0x4a9795}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x4ca767,MenuBarMenuListItemButtonView as _0x2849c5,View as _0x5735fe,FocusCycler as _0x4ad639,Dialog as _0x2685a2,DialogViewPosition as _0x1d6f90,SpinnerView as _0x5ca8b5,IconView as _0x1f1bbb,Notification as _0x972c8c}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x3b6327,DomEmitterMixin as _0x5b78d7,global as _0x5eaaec,getAncestors as _0x5d9f79,ObservableMixin as _0x279c7c,uid as _0x55945e,createElement as _0x3b284a}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x390c56}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x505aa1,info as _0x318814}from'@uploadcare/upload-client';import*as _0x28f87f from'@uploadcare/file-uploader';var i=function(_0x2e215d){return _0x2e215d['Local']='local',_0x2e215d['URL']='url',_0x2e215d['Dropbox']='dropbox',_0x2e215d['GDrive']='gdrive',_0x2e215d['Facebook']='facebook',_0x2e215d['GPhotos']='gphotos',_0x2e215d['OneDrive']='onedrive',_0x2e215d;}({});function _(_0x1e5c5c,_0x1c7956,_0xeec2cd){const t=_0x1e5c5c['t'],_0x3b960a=_0x1e5c5c['t'];switch(_0x1c7956){case i['Local']:return{'text':_0x3b960a('Insert'===_0xeec2cd?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x3b960a('From\x20computer')};case i['URL']:return{'text':'Insert'===_0xeec2cd?_0x3b960a('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x3b960a('Via\x20URL')};case i['Dropbox']:return{'text':t('Insert'===_0xeec2cd?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case i['Facebook']:return{'text':t('Insert'===_0xeec2cd?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case i['GDrive']:return{'text':t('Insert'===_0xeec2cd?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case i['GPhotos']:return{'text':t('Insert'===_0xeec2cd?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case i['OneDrive']:return{'text':t('Insert'===_0xeec2cd?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x1c7956;}}class e extends _0x14517a{['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 _0x326c8c=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x2f331e;for(const _0x2c2efd in _0x326c8c){const _0x353786=_0x2c2efd,_0x315485=_0x326c8c[_0x353786];if('uploadcareLicenseKeyValid'==_0x315485||'uploadcareLicenseKeyInvalid'==_0x315485||'uploadcareLicenseKeyExpired'==_0x315485||'uploadcareLicenseKeyDomainLimit'==_0x315485||'uploadcareLicenseKeyNotAllowed'==_0x315485||'uploadcareLicenseKeyEvaluationLimit'==_0x315485||'uploadcareLicenseKeyTrialLimit'==_0x315485||'uploadcareLicenseKeyUsageLimit'==_0x315485){delete _0x326c8c[_0x353786],_0x2f331e=_0x315485,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x2f331e&&_0x326c8c['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x2f331e&&_0x326c8c['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x2f331e&&_0x326c8c['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x2f331e&&_0x326c8c['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x2f331e&&_0x326c8c['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyTrialLimit'==_0x2f331e&&_0x326c8c['_showLicenseError']('trialLimit'),'uploadcareLicenseKeyUsageLimit'==_0x2f331e&&_0x326c8c['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x2d5789}=this,_0x32bcb5=_0x2d5789['commands']['get']('uploadcare');if(!_0x32bcb5)return;const _0x4783d4=this['_normalizeConfigSourceList'](_0x2d5789['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x37e42a,_0x375c7e)=>{const _0x5a5a2b=this['_getIntegrationKey'](_0x375c7e['type']);return _0x37e42a[_0x5a5a2b]||(_0x37e42a[_0x5a5a2b]=[]),_0x37e42a[_0x5a5a2b]['push'](_0x375c7e),_0x37e42a;},{});_0x2d5789['plugins']['has']('ImageInsertUI')&&_0x2d5789['commands']['get']('uploadcare')&&Object['entries'](_0x4783d4)['forEach'](([_0x442ff8,_0x383460])=>{_0x2d5789['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x442ff8,'observable':()=>_0x32bcb5,'buttonViewCreator':()=>this['_createToolbarButton'](_0x383460),'formViewCreator':()=>this['_createDropdownButtons'](_0x383460),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x383460),'override':'assetManager'!==_0x442ff8});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x54dfe6){const {locale:_0x5d5da5}=this['editor'];return _0x54dfe6['map'](_0x360cb9=>{const _0xaf762=_(_0x5d5da5,_0x360cb9,'Insert');switch(_0x360cb9){case i['Local']:return{'icon':_0x355919,'type':i['Local'],..._0xaf762};case i['URL']:return{'icon':_0x57f730,'type':i['URL'],..._0xaf762};case i['Dropbox']:return{'icon':_0xdc0293,'type':i['Dropbox'],..._0xaf762};case i['Facebook']:return{'icon':_0x55bf04,'type':i['Facebook'],..._0xaf762};case i['GDrive']:return{'icon':_0xb90c5c,'type':i['GDrive'],..._0xaf762};case i['GPhotos']:return{'icon':_0xc1e77c,'type':i['GPhotos'],..._0xaf762};case i['OneDrive']:return{'icon':_0x2ab01c,'type':i['OneDrive'],..._0xaf762};}});}['_getIntegrationKey'](_0x29b265){switch(_0x29b265){case i['Local']:return'upload';case i['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x3a9f27,_0x57fc32){const _0x4dce6f=this['editor'],_0x435e4e=new _0x3a9f27(_0x4dce6f['locale']),_0x75cc72=_0x4dce6f['commands']['get']('uploadcare');return _0x435e4e['bind']('isEnabled')['to'](_0x75cc72),_0x435e4e['on']('execute',()=>{_0x75cc72['execute'](_0x57fc32);}),_0x435e4e;}['_createToolbarButton'](_0x962991){const {locale:_0x3f1239}=this['editor'],_0x331fb7=this['editor']['plugins']['get']('ImageInsertUI'),_0x16de19=_0x962991[0x0],_0x41c6e4=this['_createButton'](_0x4ca767,_0x16de19['type']);return _0x41c6e4['icon']=_0x16de19['icon'],_0x41c6e4['bind']('label')['to'](_0x331fb7,'isImageSelected',_0x57f54c=>_(_0x3f1239,_0x16de19['type'],_0x57f54c?'Replace':'Insert')['text']),_0x41c6e4['tooltip']=!0x0,_0x41c6e4;}['_createDropdownButtons'](_0x3862eb){const {locale:_0x303888}=this['editor'],_0x285ab6=this['editor']['plugins']['get']('ImageInsertUI');return _0x3862eb['map'](_0x27bc91=>{const _0x5c86ac=this['_createButton'](_0x4ca767,_0x27bc91['type']);return _0x5c86ac['withText']=!0x0,_0x5c86ac['icon']=_0x27bc91['icon'],_0x5c86ac['bind']('label')['to'](_0x285ab6,'isImageSelected',_0x2e4bc3=>_(_0x303888,_0x27bc91['type'],_0x2e4bc3?'Replace':'Insert')['text']),_0x5c86ac;});}['_createMenuBarButtons'](_0x42a93c){return _0x42a93c['map'](_0x2b03c8=>{const _0x121c2e=this['_createButton'](_0x2849c5,_0x2b03c8['type']);return _0x121c2e['icon']=_0x2b03c8['icon'],_0x121c2e['label']=_0x2b03c8['shortText'],_0x121c2e;});}}class F extends _0x5735fe{['focusTracker'];['focusCycler'];constructor(_0x417115){super(_0x417115),this['focusTracker']=new _0x3b6327(),this['focusCycler']=new _0x4ad639({'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(_0x6540ca,_0x31ae2f){super(_0x6540ca),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-'+_0x31ae2f}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}}function C(_0x26c9de,_0x887574){const _0x291d0a=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x2ef713=>_0x2ef713<=_0x887574)['map'](_0x440f49=>_0x26c9de['replace'](/\/$/,'')+'/-/resize/'+_0x440f49+'x/\x20'+_0x440f49+'w');return{'imageFallbackUrl':_0x26c9de,'imageSources':[{'srcset':_0x291d0a['join'](',\x20'),'sizes':'(max-width:\x20'+_0x887574+'px)\x20100vw,\x20'+_0x887574+'px','type':'image/webp'}]};}function S(_0x2aa5a7,_0x1e5ba7,_0x3e2da9){const _0x350cd3=_0x2aa5a7['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x350cd3?parseInt(_0x350cd3[0x1],0xa):_0x1e5ba7,'height':_0x350cd3?parseInt(_0x350cd3[0x2],0xa):_0x3e2da9};}function p(_0x25a389,_0x1f4523){const _0x26dc8a=new(_0x5b78d7())(),_0x5d94a2=_0x25a389['plugins']['get']('ImageUtils'),_0x4c841a=_0x25a389['editing']['mapper']['toViewElement'](_0x1f4523),_0x4f5e7e=_0x5d94a2['findViewImgElement'](_0x4c841a),_0x4778c1=_0x25a389['editing']['view']['domConverter']['viewToDom'](_0x4f5e7e),_0x744647=_0x1f4523['getAttribute']('width'),_0x285ace=_0x1f4523['getAttribute']('height'),_0x197dac='image-processing';_0x25a389['editing']['view']['change'](_0x412ea2=>{_0x412ea2['addClass'](_0x197dac,_0x4c841a),_0x412ea2['setStyle']('aspect-ratio',_0x744647+'/'+_0x285ace,_0x4f5e7e);}),_0x26dc8a['listenTo'](_0x4778c1,'load',()=>{_0x26dc8a['stopListening'](_0x4778c1,'load'),_0x25a389['editing']['view']['change'](_0x4b47c0=>{_0x4b47c0['removeClass'](_0x197dac,_0x4c841a),_0x4b47c0['removeStyle']('aspect-ratio',_0x4f5e7e);});});}function G(_0x395c5e){if(Array['isArray'](_0x395c5e)){const _0x570a58=_0x395c5e['map'](G);return _0x334ca1=>_0x570a58['some'](_0x2bf9ee=>_0x2bf9ee(_0x334ca1));}if('origin'==_0x395c5e){const _0x957c52=_0x5eaaec['window']['location']['origin'];return _0x2cc959=>new URL(_0x2cc959,_0x5eaaec['document']['baseURI'])['origin']==_0x957c52;}return'function'==typeof _0x395c5e?_0x395c5e:_0x395c5e instanceof RegExp?_0x28cd69=>!(!_0x28cd69['match'](_0x395c5e)&&!_0x28cd69['replace'](/^https?:\/\//,'')['match'](_0x395c5e)):()=>!0x1;}function A(_0x296c32,_0x377f0d){return _0x5d9f79(_0x296c32['target'])['includes'](_0x377f0d);}class n extends/* #__PURE__ -- @preserve */
24
- _0x279c7c(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x2a38f4,_0x439c88,_0x1859d7){super(),this['_editor']=_0x2a38f4,this['_editing']=_0x439c88,this['_dialog']=_0x2a38f4['plugins']['get'](_0x2685a2),this['_api']=_0x439c88['ctxElement']['getAPI'](),this['_type']=_0x1859d7,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:_0x3a1a2e,model:_0x518f33}=this['_editor'],_0x1c619e=_0x518f33['document']['selection']['getSelectedElement'](),_0x52f789=_0x1c619e&&(_0x1c619e['is']('element','imageBlock')||_0x1c619e['is']('element','imageInline'));this['_formView']=new x(_0x3a1a2e,this['_editing']['ucContextId']),this['_dialog']['show']({'id':'uploadCare','icon':_0x355919,'title':_(_0x3a1a2e,this['_type'],_0x52f789?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x1d6f90['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x3fbad0=>!A(_0x3fbad0,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x1ac0c1}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0xfb9a61=>{const _0x6c81fd=_0x1ac0c1['length'];for(const _0x355c9d of _0x1ac0c1){const _0x5985c0=_0x355c9d===_0x1ac0c1[_0x6c81fd-0x1],{cdnUrl:_0xd04c13,fileInfo:_0xbbda13}=_0x355c9d;if(!_0xd04c13||!_0xbbda13)continue;const {width:_0x5d757f,height:_0x21a5ff}=_0xbbda13['imageInfo'],_0x325790=S(_0xd04c13,_0x5d757f,_0x21a5ff),_0x4adf30=C(_0xd04c13,_0x325790['width']),_0x4e6f67={'id':_0xbbda13['uuid'],'type':'image','attributes':{'imageDimension':_0x325790,..._0x4adf30}};this['_insertAsset'](_0x4e6f67,_0x5985c0,_0xfb9a61);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x4d68d9=>{'idle'===_0x4d68d9['detail']['status']&&!_0x4d68d9['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===i['Local']?this['_api']['setCurrentActivity'](i['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x30b956,_0x577740,_0x454e65){const _0x58f2a4=this['_editor']['model']['document']['selection'],_0x486fff=_0x58f2a4['getSelectedElement'](),_0x1d7087=!(!_0x486fff||!_0x486fff['is']('element','imageInline'));_0x454e65['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x30b956,_0x1d7087),_0x577740||_0x454e65['setSelection'](_0x58f2a4['getLastPosition']());}['_insertImage'](_0x583395,_0x2aeb39){const _0x3b9ab6=this['_editor'],{imageDimension:_0x2ca802,imageFallbackUrl:_0x20cf69,imageSources:_0x226c93}=_0x583395['attributes'];_0x3b9ab6['execute']('insertImage',{'imageType':_0x2aeb39?'imageInline':null,'source':{'uploadcareImageId':_0x583395['id'],'src':_0x20cf69,'sources':_0x226c93,..._0x2ca802}});}}class w extends _0x91f916{['_editing'];['_controller']=null;static get['requires'](){return[_0x2685a2,o];}constructor(_0x5ab882){super(_0x5ab882),this['_editing']=_0x5ab882['plugins']['get'](o);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x456e46){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new n(this['editor'],this['_editing'],_0x456e46);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class j{static['upload']({file:_0x2fc373,..._0x1d6b43}){return _0x505aa1(_0x2fc373,_0x1d6b43);}static['getInfo'](_0x1b4dd9,_0x17a3ca){return _0x318814(_0x1b4dd9,_0x17a3ca);}}class f extends _0x14517a{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x390c56,o];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x1180ff=this['editor'];if(!!!_0x1180ff['config']['get']('uploadcare'))return;_0x1180ff['plugins']['get'](_0x390c56)['createUploadAdapter']=_0x19bed7=>new k(_0x19bed7,_0x1180ff),_0x1180ff['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x8c84a3,{imageElement:_0x23f14c,data:_0x23d6a6})=>{_0x1180ff['model']['change'](_0x5229a6=>{_0x5229a6['setAttribute']('uploadcareImageId',_0x23d6a6['uploadcareImageId'],_0x23f14c);});});}}class k{['loader'];['editor'];['controller'];constructor(_0x295b13,_0x247de6){this['loader']=_0x295b13,this['editor']=_0x247de6,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x1e0019=await this['loader']['file'];return j['upload']({'file':_0x1e0019,'publicKey':this['editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['editor']['config']['get']('uploadcare.uploader.baseUrl'),'baseCDN':this['editor']['config']['get']('uploadcare.uploader.cdnCname'),'signal':this['controller']['signal'],'onProgress':_0x47aac5=>{_0x47aac5&&_0x47aac5['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x47aac5['value']);}})['then'](async _0x149ca7=>{const {imageFallbackUrl:_0x4f71f8,imageSources:_0x38ae41}=C(_0x149ca7['cdnUrl'],_0x149ca7['imageInfo']['width']);return{'uploadcareImageId':_0x149ca7['uuid'],'default':_0x4f71f8,'sources':_0x38ae41};})['catch'](()=>{const _0x3494e7=t('Cannot\x20upload\x20file:')+('\x20'+_0x1e0019['name']+'.');return Promise['reject'](_0x3494e7);});}['abort'](){this['controller']['abort']();}}class o extends _0x14517a{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',f,_0x2685a2];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['ucContextId'];get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}constructor(_0x34e420){super(_0x34e420),this['ucContextId']=_0x55945e();}['init'](){const _0x4217e8=this['editor'];_0x4217e8['commands']['add']('uploadcare',new w(_0x4217e8));}['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 _0x26a4b6=_0x5eaaec['document']['querySelector']('input[uploadcare-file-input]');_0x26a4b6&&_0x26a4b6['remove']();}),async function(_0x357c6d){const _0x282ecd=_0x4ed040([0x68,0x67,0x50,0x36,0x38,0x70,0x71,0x63,0x37,0x4f,0x42,0x4a,0x78,0x39,0x75,0x33,0x7a,0x72,0x48,0x61,0x74,0x59,0x55,0x58,0x66,0x30,0x34,0x54,0x64,0x56,0x6b,0x4d,0x46,0x6d,0x77,0x43,0x73,0x35,0x53,0x44,0x41,0x76,0x6a,0x32,0x31,0x69,0x57,0x51,0x47,0x65,0x5a,0x4b,0x4c,0x79,0x52,0x6c,0x45,0x4e,0x6e,0x6f,0x49,0x62]),_0x33268a=0x535f8c3a,_0xceb39=0x5358f752^_0x33268a,_0x12f69b=window[_0x4ed040([0x44,0x61,0x74,0x65])][_0x4ed040([0x6e,0x6f,0x77])](),_0x1332fb=_0x357c6d[_0x4ed040([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x5620a9=new window[(_0x4ed040([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2d1f41=>{_0x1332fb[_0x4ed040([0x6f,0x6e,0x63,0x65])](_0x4ed040([0x72,0x65,0x61,0x64,0x79]),_0x2d1f41);}),_0x1aac92={[_0x4ed040([0x6b,0x74,0x79])]:_0x4ed040([0x45,0x43]),[_0x4ed040([0x75,0x73,0x65])]:_0x4ed040([0x73,0x69,0x67]),[_0x4ed040([0x63,0x72,0x76])]:_0x4ed040([0x50,0x2d,0x32,0x35,0x36]),[_0x4ed040([0x78])]:_0x4ed040([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]),[_0x4ed040([0x79])]:_0x4ed040([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]),[_0x4ed040([0x61,0x6c,0x67])]:_0x4ed040([0x45,0x53,0x32,0x35,0x36])},_0x5c1c5a=_0x1332fb[_0x4ed040([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x4ed040([0x67,0x65,0x74])](_0x4ed040([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x57e326(){let _0x5a21ce,_0x3d492e=null,_0x4e10ce=null;try{if(_0x5c1c5a==_0x4ed040([0x47,0x50,0x4c]))return _0x4ed040([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x5a21ce=_0x49fcb7(),!_0x5a21ce)return _0x4ed040([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x5a21ce[_0x4ed040([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x4e10ce=_0x4202bd(_0x5a21ce[_0x4ed040([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x5a21ce[_0x4ed040([0x6a,0x74,0x69])])),await _0x17460b()?_0x70591e()?_0x36a732()?_0x4ed040([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0xe13577()?(_0x5a21ce[_0x4ed040([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x4ed040([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x3d492e=_0x16a848(_0x4ed040([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x5a21ce[_0x4ed040([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x4ed040([0x74,0x72,0x69,0x61,0x6c])&&(_0x3d492e=_0x16a848(_0x4ed040([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x34e5fe()):_0x4ed040([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x4ed040([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x4ed040([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x4ed040([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x36a732(){const _0x144e29=[_0x4ed040([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x4ed040([0x74,0x72,0x69,0x61,0x6c])][_0x4ed040([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5a21ce[_0x4ed040([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x12f69b/0x3e8:0xe10*_0xceb39;return _0x5a21ce[_0x4ed040([0x65,0x78,0x70])]<_0x144e29;}function _0x70591e(){const _0x123ce0=_0x5a21ce[_0x4ed040([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x123ce0&&(!!_0x123ce0[_0x4ed040([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4ed040([0x2a]))||!!_0x123ce0[_0x4ed040([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4ed040([0x55,0x50,0x4c,0x43])));}function _0xe13577(){const _0x44e8e3=_0x5a21ce[_0x4ed040([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x44e8e3||0x0==_0x44e8e3[_0x4ed040([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x3352bf}=new URL(window[_0x4ed040([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x44e8e3[_0x4ed040([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3352bf))return!0x0;const _0x160741=_0x3352bf[_0x4ed040([0x73,0x70,0x6c,0x69,0x74])](_0x4ed040([0x2e]));return _0x44e8e3[_0x4ed040([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x5d1cb4=>_0x5d1cb4[_0x4ed040([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4ed040([0x2a])))[_0x4ed040([0x6d,0x61,0x70])](_0x28d4f7=>_0x28d4f7[_0x4ed040([0x73,0x70,0x6c,0x69,0x74])](_0x4ed040([0x2e])))[_0x4ed040([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x508c58=>_0x508c58[_0x4ed040([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x160741[_0x4ed040([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x4ed040([0x6d,0x61,0x70])](_0x31f2bc=>Array(_0x160741[_0x4ed040([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x31f2bc[_0x4ed040([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x4ed040([0x66,0x69,0x6c,0x6c])](_0x31f2bc[0x0]===_0x4ed040([0x2a])?_0x4ed040([0x2a]):'')[_0x4ed040([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x31f2bc))[_0x4ed040([0x73,0x6f,0x6d,0x65])](_0x4f3fe9=>_0x160741[_0x4ed040([0x65,0x76,0x65,0x72,0x79])]((_0x21db55,_0x25ef4e)=>_0x4f3fe9[_0x25ef4e]===_0x21db55||_0x4f3fe9[_0x25ef4e]===_0x4ed040([0x2a])));}function _0x34e5fe(){return _0x3d492e&&_0x4e10ce?new window[(_0x4ed040([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x155f53,_0x5949e5)=>{_0x3d492e[_0x4ed040([0x74,0x68,0x65,0x6e])](_0x155f53,_0x5949e5),_0x4e10ce[_0x4ed040([0x74,0x68,0x65,0x6e])](_0x2d6ce4=>{_0x2d6ce4!=_0x4ed040([0x56,0x61,0x6c,0x69,0x64])&&_0x155f53(_0x2d6ce4);},_0x5949e5);}):_0x3d492e||_0x4e10ce||_0x4ed040([0x56,0x61,0x6c,0x69,0x64]);}}function _0x4202bd(_0x59113c,_0x28956c){return new window[(_0x4ed040([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1cbe88=>{if(_0xd97371())return _0x1cbe88(_0x4ed040([0x56,0x61,0x6c,0x69,0x64]));_0x357ac6(),_0x1332fb[_0x4ed040([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x4ed040([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0xb84d8c=!0x1;const _0x18bd15=_0x55945e();function _0x957c9c(_0x25fc07){return!!_0x25fc07&&(typeof _0x25fc07===_0x4ed040([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x25fc07===_0x4ed040([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x25fc07[_0x4ed040([0x74,0x68,0x65,0x6e])]===_0x4ed040([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x25fc07[_0x4ed040([0x63,0x61,0x74,0x63,0x68])]===_0x4ed040([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x71135(_0x163b17){_0x3b8dec(_0x163b17)[_0x4ed040([0x74,0x68,0x65,0x6e])](_0x177aa7=>{if(!_0x177aa7||_0x177aa7[_0x4ed040([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x4ed040([0x6f,0x6b]))return _0x4ed040([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x2fb8fc(_0x1682ff(_0x18bd15+_0x28956c))!=_0x177aa7[_0x4ed040([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x4ed040([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x4ed040([0x56,0x61,0x6c,0x69,0x64]);})[_0x4ed040([0x74,0x68,0x65,0x6e])](_0x1eecf1=>(_0x26a155(),_0x1eecf1),()=>{const _0xbfd34c=_0x1bb69d();return null==_0xbfd34c?(_0x26a155(),_0x4ed040([0x56,0x61,0x6c,0x69,0x64])):_0x4ed040(_0x12f69b-_0xbfd34c>(0x7753083a^_0x33268a)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x4ed040([0x74,0x68,0x65,0x6e])](_0x1cbe88)[_0x4ed040([0x63,0x61,0x74,0x63,0x68])](()=>{_0x1cbe88(_0x4ed040([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x4a7647=0x536962ba^_0x33268a;function _0x26a155(){const _0x470cd2=_0x4ed040([0x6c,0x6c,0x63,0x74,0x2d])+_0x2fb8fc(_0x1682ff(_0x59113c)),_0x28ba8b=_0x3ca011(_0x2fb8fc(window[_0x4ed040([0x4d,0x61,0x74,0x68])][_0x4ed040([0x63,0x65,0x69,0x6c])](_0x12f69b/_0x4a7647)));window[_0x4ed040([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4ed040([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x470cd2,_0x28ba8b);}function _0x1bb69d(){const _0x2c2a11=_0x4ed040([0x6c,0x6c,0x63,0x74,0x2d])+_0x2fb8fc(_0x1682ff(_0x59113c)),_0x36d1d2=window[_0x4ed040([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4ed040([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2c2a11);return _0x36d1d2?window[_0x4ed040([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3ca011(_0x36d1d2),0x10)*_0x4a7647:null;}function _0x3b8dec(_0x1c0bb5){return new window[(_0x4ed040([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x41a63e,_0x46715f)=>{_0x1c0bb5[_0x4ed040([0x74,0x68,0x65,0x6e])](_0x41a63e,_0x46715f),window[_0x4ed040([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x46715f,0x535e58fa^_0x33268a);});}}_0x1332fb[_0x4ed040([0x6f,0x6e])](_0x4ed040([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x418269,_0x40ab81)=>{if(_0x40ab81[0x0]!=_0x59113c)return _0x1cbe88(_0x4ed040([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x40ab81[0x1]={..._0x40ab81[0x1],[_0x4ed040([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x18bd15};},{[_0x4ed040([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4ed040([0x68,0x69,0x67,0x68])}),_0x1332fb[_0x4ed040([0x6f,0x6e])](_0x4ed040([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x2908d7=>{_0x957c9c(_0x2908d7[_0x4ed040([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0xb84d8c=!0x0,_0x71135(_0x2908d7[_0x4ed040([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x4ed040([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4ed040([0x6c,0x6f,0x77])}),_0x5620a9[_0x4ed040([0x74,0x68,0x65,0x6e])](()=>{_0xb84d8c||_0x1cbe88(_0x4ed040([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0xd97371(){return _0x1332fb[_0x4ed040([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4ed040([0x76,0x69,0x65,0x77])][_0x4ed040([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x4ed040([0x61,0x75,0x74,0x6f]);}function _0x357ac6(){_0x1332fb[_0x4ed040([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4ed040([0x76,0x69,0x65,0x77])][_0x4ed040([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x4ed040([0x61,0x75,0x74,0x6f]);}}function _0x16a848(_0x20c6a3){const _0x3c5ece=[new window[(_0x4ed040([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x52be61=>setTimeout(_0x52be61,0x5356b2f6^_0x33268a)),_0x5620a9[_0x4ed040([0x74,0x68,0x65,0x6e])](()=>new window[(_0x4ed040([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3e2d9c=>{let _0x4e4423=0x0;_0x1332fb[_0x4ed040([0x6d,0x6f,0x64,0x65,0x6c])][_0x4ed040([0x6f,0x6e])](_0x4ed040([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x509483,_0x2bffb8)=>{_0x2bffb8[0x0][_0x4ed040([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x4e4423++,_0x4e4423==(0x535f8dc2^_0x33268a)&&(_0x3e2d9c(),_0x509483[_0x4ed040([0x6f,0x66,0x66])]());});}))];return window[_0x4ed040([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x4ed040([0x72,0x61,0x63,0x65])](_0x3c5ece)[_0x4ed040([0x74,0x68,0x65,0x6e])](()=>_0x20c6a3);}async function _0x528b86(){await _0x5620a9,_0x1332fb[_0x4ed040([0x6d,0x6f,0x64,0x65,0x6c])][_0x4ed040([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x1e2082,_0x1332fb[_0x4ed040([0x6d,0x6f,0x64,0x65,0x6c])][_0x4ed040([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x1e2082,_0x1332fb[_0x4ed040([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x4ed040([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x42b1ae(_0xe4a9a4){const _0x43e538=_0x2e9a5e();_0x1332fb[_0x43e538]=_0x4ed040([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0xe4a9a4,_0xe4a9a4!=_0x4ed040([0x56,0x61,0x6c,0x69,0x64])&&_0x528b86();}function _0x2e9a5e(){const _0x532c83=window[_0x4ed040([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x4ed040([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x4ed040([0x6e,0x6f,0x77])]())[_0x4ed040([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x4ed040([0x2e]),'');let _0xdaa2fa=_0x4ed040([0x68]);for(let _0x3d3ce1=0x0;_0x3d3ce1<_0x532c83[_0x4ed040([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3d3ce1+=0x2){let _0x1774a7=window[_0x4ed040([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x532c83[_0x4ed040([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3d3ce1,_0x3d3ce1+0x2));_0x1774a7>=_0x282ecd[_0x4ed040([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x1774a7-=_0x282ecd[_0x4ed040([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0xdaa2fa+=_0x282ecd[_0x1774a7];}return _0xdaa2fa;}function _0x49fcb7(){const _0x3dd786=_0x5c1c5a[_0x4ed040([0x73,0x70,0x6c,0x69,0x74])](_0x4ed040([0x2e]));if(0x3!=_0x3dd786[_0x4ed040([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x5cef0b(_0x3dd786[0x1]);function _0x5cef0b(_0x5972b3){const _0x468edf=_0x176c2b(_0x5972b3);return _0x468edf&&_0x5dc648()?_0x468edf:null;function _0x5dc648(){const _0x1e28e0=_0x468edf[_0x4ed040([0x6a,0x74,0x69])],_0x3cba6c=window[_0x4ed040([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1e28e0[_0x4ed040([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x1e28e0[_0x4ed040([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x44b6a3={..._0x468edf,[_0x4ed040([0x6a,0x74,0x69])]:_0x1e28e0[_0x4ed040([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x1e28e0[_0x4ed040([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x44b6a3[_0x4ed040([0x76,0x63])],_0x1682ff(_0x44b6a3)==_0x3cba6c;}}}async function _0x17460b(){let _0x18b207=!0x0;try{const _0x496756=_0x5c1c5a[_0x4ed040([0x73,0x70,0x6c,0x69,0x74])](_0x4ed040([0x2e])),[_0x3fd28b,_0x3577a8,_0x14273e]=_0x496756;return _0x22caf1(_0x3fd28b),await _0x50c53f(_0x3fd28b,_0x3577a8,_0x14273e),_0x18b207;}catch{return!0x1;}function _0x22caf1(_0x590b8e){const _0x1d344b=_0x176c2b(_0x590b8e);_0x1d344b&&_0x1d344b[_0x4ed040([0x61,0x6c,0x67])]==_0x4ed040([0x45,0x53,0x32,0x35,0x36])||(_0x18b207=!0x1);}async function _0x50c53f(_0x3eb505,_0x3c126c,_0x119e55){const _0x49ed89=window[_0x4ed040([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x4ed040([0x66,0x72,0x6f,0x6d])](_0xd36cc7(_0x119e55),_0x47bed4=>_0x47bed4[_0x4ed040([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x4d24bb=new window[(_0x4ed040([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x4ed040([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x3eb505+_0x4ed040([0x2e])+_0x3c126c),_0x55a47d=window[_0x4ed040([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x4ed040([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x55a47d)return;const _0x5d215b=await _0x55a47d[_0x4ed040([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x4ed040([0x6a,0x77,0x6b]),_0x1aac92,{[_0x4ed040([0x6e,0x61,0x6d,0x65])]:_0x4ed040([0x45,0x43,0x44,0x53,0x41]),[_0x4ed040([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x4ed040([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x4ed040([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x55a47d[_0x4ed040([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x4ed040([0x6e,0x61,0x6d,0x65])]:_0x4ed040([0x45,0x43,0x44,0x53,0x41]),[_0x4ed040([0x68,0x61,0x73,0x68])]:{[_0x4ed040([0x6e,0x61,0x6d,0x65])]:_0x4ed040([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x5d215b,_0x49ed89,_0x4d24bb)||(_0x18b207=!0x1);}}function _0x176c2b(_0x1d4524){return _0x1d4524[_0x4ed040([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x4ed040([0x65,0x79]))?JSON[_0x4ed040([0x70,0x61,0x72,0x73,0x65])](_0xd36cc7(_0x1d4524)):null;}function _0xd36cc7(_0x4fe3ac){return window[_0x4ed040([0x61,0x74,0x6f,0x62])](_0x4fe3ac[_0x4ed040([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x4ed040([0x2b]))[_0x4ed040([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x4ed040([0x2f])));}function _0x1682ff(_0x187588){let _0x499b8b=0x1505;function _0x488679(_0x589bc){for(let _0x4df496=0x0;_0x4df496<_0x589bc[_0x4ed040([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4df496++){const _0x347787=_0x589bc[_0x4ed040([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x4df496);_0x499b8b=(_0x499b8b<<0x5)+_0x499b8b+_0x347787,_0x499b8b&=_0x499b8b;}}function _0x37b889(_0x1e9cf0){Array[_0x4ed040([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x1e9cf0)?_0x1e9cf0[_0x4ed040([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x37b889):_0x1e9cf0&&typeof _0x1e9cf0==_0x4ed040([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x4ed040([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x1e9cf0)[_0x4ed040([0x73,0x6f,0x72,0x74])]()[_0x4ed040([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x4c059e,_0x5b3d35])=>{_0x488679(_0x4c059e),_0x37b889(_0x5b3d35);}):_0x488679(window[_0x4ed040([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x1e9cf0));}return _0x37b889(_0x187588),_0x499b8b>>>0x0;}function _0x2fb8fc(_0x1276cc){return _0x1276cc[_0x4ed040([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x4ed040([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x4ed040([0x30]));}function _0x3ca011(_0x393706){return _0x393706[_0x4ed040([0x73,0x70,0x6c,0x69,0x74])]('')[_0x4ed040([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x4ed040([0x6a,0x6f,0x69,0x6e])]('');}function _0x1e2082(){}function _0x4ed040(_0x44490a){return _0x44490a['map'](_0x29ee13=>String['fromCharCode'](_0x29ee13))['join']('');}_0x42b1ae(await _0x57e326());}(this);}['_initSchema'](){const _0x300e51=this['editor']['model']['schema'];_0x300e51['isRegistered']('imageBlock')&&_0x300e51['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x300e51['isRegistered']('imageInline')&&_0x300e51['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x4e34b4=this['editor'];_0x4e34b4['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x4e34b4['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x12fb37=>_0x12fb37['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x4796df=_0x4e34b4['commands']['get']('replaceImageSource');_0x4796df&&this['listenTo'](_0x4796df,'cleanupImage',(_0x19794c,[_0x4ca52a,_0x204cd3])=>{_0x4ca52a['removeAttribute']('uploadcareImageId',_0x204cd3);});}['_initConfig'](){const _0xe7ee22=this['editor']['config']['get']('uploadcare.uploader')||{},_0x413a3c=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x3b284a(_0x5eaaec['document'],'uc-config',{..._0xe7ee22,'pubkey':_0x413a3c,'ctx-name':'uploader-'+this['ucContextId'],'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']=_0xc00dd5=>{if('closeMax'==_0xc00dd5)return'#uc-icon-arrow-down';},_0x5eaaec['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x3b284a(_0x5eaaec['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader-'+this['ucContextId']}),_0x5eaaec['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x3987d3=this['editor']['commands']['get']('insertImage');_0x3987d3&&this['listenTo'](_0x3987d3,'execute',()=>{const _0x30d86d=this['editor']['model']['document']['selection']['getSelectedElement']();_0x30d86d&&_0x30d86d['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x30d86d);});});const _0x4482bc=this['editor']['commands']['get']('uploadcareImageReplace');_0x4482bc&&this['listenTo'](_0x4482bc,'execute',()=>{const _0x1ab665=this['editor']['model']['document']['selection']['getSelectedElement']();_0x1ab665&&_0x1ab665['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x1ab665);});});}}class tt extends _0x14517a{static get['requires'](){return[o,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x2130d9){super(_0x2130d9),_0x2130d9['config']['define']('uploadcare.uploader.sourceList',[i['Local'],i['URL']]),_0x28f87f['defineComponents'](_0x28f87f),this['_defineLocale']();}['_defineLocale'](){const _0x428758=this['editor']['config']['get']('uploadcare.locale'),_0x60d825=this['editor']['locale']['contentLanguage'];_0x428758&&_0x28f87f['defineLocale'](_0x60d825,_0x428758);}}class ii extends _0x5735fe{constructor(_0x2b25fc){super(_0x2b25fc);const t=_0x2b25fc['t'],_0x2c7faf=this['bindTemplate'],_0x2fd33e=new _0x5ca8b5();_0x2fd33e['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':[_0x2fd33e,{'text':_0x2c7faf['to']('imageUploadProgress',_0x37f59e=>t('Loading\x20image...')+'\x20('+(_0x37f59e||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 _0x5735fe{constructor(_0x425301){super(_0x425301);const t=_0x425301['t'];this['set']('errorType',null);const _0xa3acb2=new _0x4ca767(_0x425301);_0xa3acb2['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0xa3acb2['withText']=!0x0,_0xa3acb2['class']='ck-button-action',_0xa3acb2['on']('execute',()=>{this['fire']('retry');}),_0xa3acb2['bind']('isVisible')['to'](this,'errorType',_0x103232=>'NotFound'!==_0x103232);const _0x24e67a=new _0x1f1bbb();_0x24e67a['content']=_0x675836,_0x24e67a['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x567ab4=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':[_0x24e67a,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x567ab4['to']('errorType',_0x11356d=>t('NotFound'!==_0x11356d?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0xa3acb2]},{'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 _0x5735fe{constructor(_0xf049eb,_0x58da9b){super(_0xf049eb);const _0x862f38=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x58da9b,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x862f38['to']('imageSrc')}});}}class X extends F{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0xae23ba,_0x5125b3,_0x46c3f9){super(_0xae23ba),this['_items']=this['createCollection'](),this['_loadingView']=new ii(_0xae23ba),this['_errorView']=new ti(_0xae23ba),this['_editingView']=new ei(_0xae23ba,_0x46c3f9),this['_focusableView']=new _0x5735fe(_0xae23ba),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x5125b3),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'],_0x1dea84=>{this['_addUploadcareImageEditorListeners'](_0x1dea84);});}),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'](_0x3269dc,_0x3c5237){const _0x2ce0a2='uc-cloud-image-editor',_0xaa5127=_0x3269dc['querySelector'](_0x2ce0a2);if(_0xaa5127)return _0x3c5237(_0xaa5127);const _0xc45fa4=new MutationObserver(_0x248ac2=>{const _0x25cbb7=_0x248ac2['filter'](_0x330232=>_0x330232['target']===_0x3269dc&&_0x330232['addedNodes']['length']>0x0&&_0x330232['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x2ce0a2);_0x25cbb7['length']&&(_0xc45fa4['disconnect'](),_0x3c5237(_0x25cbb7[0x0]['addedNodes'][0x0]));});_0xc45fa4['observe'](_0x3269dc,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x26ddd){_0x26ddd['addEventListener']('apply',_0x3e3841=>{this['fire']('apply',{'imageSrc':_0x3e3841['detail']['cdnUrl']});}),_0x26ddd['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class E extends/* #__PURE__ -- @preserve */
25
- _0x279c7c(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x464d7e,_0x3380d7,_0x2e86d3){super(),this['_editor']=_0x464d7e,this['_dialog']=_0x3380d7,this['_imageElement']=_0x2e86d3,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 _0x1cb28d=this['_imageElement'],_0x235336=_0x1cb28d['getAttribute']('uploadcareImageId'),_0x1c92c5=_0x1cb28d['getAttribute']('src');if(_0x235336)await this['_loadImageInfo'](_0x235336,_0x1c92c5);else{if(this['_imageCache']['has'](_0x1c92c5)){const _0x34adc7=this['_imageCache']['get'](_0x1c92c5);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x34adc7['url'],this['imageDimension']=_0x34adc7['dimension'],this['imageId']=_0x34adc7['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x858716}=this['_editor'],t=_0x858716['t'],_0x515750=new X(_0x858716,this['imageStatus'],this['_attributes']);_0x515750['bind']('status')['to'](this,'imageStatus'),_0x515750['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x515750['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x515750['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x515750,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x4a9795,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x515750,'position':_0x1d6f90['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x515750['focus']();},'onHide':()=>{_0x515750['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x328261=>!A(_0x328261,_0x515750['element'])}});}['_loadImageInfo'](_0x30568c,_0xd7da48){return j['getInfo'](_0x30568c,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl')})['then'](_0x395594=>{const {width:_0xde0d4b,height:_0x58248a}=_0x395594['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0xd7da48,this['imageDimension']={'width':_0xde0d4b,'height':_0x58248a},this['imageId']=_0x30568c;})['catch'](_0x14b82a=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x14b82a['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x2dcbc4,_0x1e66c1){return this['_getImageAsFile'](_0x2dcbc4)['then'](_0x163b2a=>j['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl'),'baseCDN':this['_editor']['config']['get']('uploadcare.uploader.cdnCname'),'signal':_0x1e66c1['signal'],'file':_0x163b2a,'onProgress':_0x42a842=>{_0x42a842&&_0x42a842['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x42a842['value']));}}))['then'](_0x274645=>{const {width:_0x2e5f7a,height:_0x30ebb0}=_0x274645['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x274645['cdnUrl'],this['imageDimension']={'width':_0x2e5f7a,'height':_0x30ebb0},this['imageId']=_0x274645['uuid'],this['imageUploadProgress']=null;const _0x2cba63=_0x2dcbc4['getAttribute']('src');this['_imageCache']['set'](_0x2cba63,{'id':_0x274645['uuid'],'url':_0x274645['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x551014=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x551014['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x141096,_0x347c16){_0x141096['on']('apply',(_0x5523a5,_0x1000b8)=>{this['_replaceImage'](_0x347c16,_0x1000b8['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x141096['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x141096['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x503596,_0x166cc7,_0x410af7){const _0x31b691=this['_editor'],{width:_0x2f82aa,height:_0x596230}=S(_0x166cc7,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x14d6f8,imageSources:_0x4c91d4}=C(_0x166cc7,_0x2f82aa);_0x31b691['model']['change'](_0x5e859b=>{if('$graveyard'===_0x503596['root']['rootName']){_0x31b691['execute']('insertImage',{'imageType':_0x503596['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x503596['getAttributes']()),'uploadcareImageId':_0x410af7,'src':_0x14d6f8,'sources':_0x4c91d4,'width':_0x2f82aa,'height':_0x596230}});const _0x455bb2=_0x503596['getChildren']();_0x503596=_0x31b691['model']['document']['selection']['getSelectedElement']();for(const _0x3f3f00 of _0x455bb2)_0x5e859b['append'](_0x5e859b['cloneElement'](_0x3f3f00),_0x503596);}else _0x5e859b['setSelection'](_0x503596,'on'),_0x31b691['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x503596['getAttributes']()),'uploadcareImageId':_0x410af7,'src':_0x14d6f8,'sources':_0x4c91d4,'width':_0x2f82aa,'height':_0x596230},_0x503596);_0x5e859b['setSelection'](_0x503596,'on');});}async['_getImageAsFile'](_0x52a717){const _0x27027c=_0x5eaaec['window'],_0xde7620=_0x5eaaec['document']['location']['href'],_0x33a854=new _0x27027c['URL'](_0x52a717['getAttribute']('src'),_0xde7620);if('data:'===_0x33a854['protocol']){const _0x55a9d9=_0x33a854['href']['split'](','),_0x411fd1=_0x55a9d9[0x0]['match'](/:(.*?);/)[0x1],_0x5c57c7=_0x411fd1['split']('/')[0x1],_0x599675=_0x27027c['atob'](_0x55a9d9[_0x55a9d9['length']-0x1]);let _0x530615=_0x599675['length'];const _0x2fe6e6=new _0x27027c['Uint8Array'](_0x530615);for(;_0x530615--;)_0x2fe6e6[_0x530615]=_0x599675['charCodeAt'](_0x530615);return new _0x27027c['File']([_0x2fe6e6],'image.'+_0x5c57c7,{'type':_0x411fd1});}const _0x891c3e=_0x33a854['href']['split']('/'),_0x423d87=_0x891c3e[_0x891c3e['length']-0x1],_0x29903d=_0x423d87['split']('.')[0x1];return _0x27027c['fetch'](_0x33a854['href'])['then'](_0x4a5f1b=>_0x4a5f1b['clone']()['blob']())['then'](_0x5bbadb=>new _0x27027c['File']([_0x5bbadb],_0x423d87,{'type':'image/'+_0x29903d}));}}class O extends _0x91f916{['imageEditController'];static get['requires'](){return[_0x2685a2];}['_isEditable'];constructor(_0x1cdffa){super(_0x1cdffa),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x464f63){const _0x1226b7=G(_0x464f63);return _0x440ad4=>!(!_0x440ad4||!_0x440ad4['is']('element','imageBlock')&&!_0x440ad4['is']('element','imageInline'))&&(!!_0x440ad4['hasAttribute']('uploadcareImageId')||!!_0x440ad4['hasAttribute']('src')&&_0x1226b7(_0x440ad4['getAttribute']('src')));}(_0x1cdffa['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x67f00e=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x67f00e);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x29ed2f=this['editor']['model']['document']['selection']['getSelectedElement']();_0x29ed2f&&(_0x29ed2f['is']('element','imageBlock')||_0x29ed2f['is']('element','imageInline'))&&(this['imageEditController']=new E(this['editor'],this['editor']['plugins']['get'](_0x2685a2),_0x29ed2f),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class R extends _0x91f916{['refresh'](){const _0x405687=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x405687&&(_0x405687['is']('element','imageBlock')||_0x405687['is']('element','imageInline')));}['execute'](_0x579a81){const _0x2e2272=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x20a525=>{_0x20a525['setAttributes'](_0x579a81,_0x2e2272),_0x20a525['removeAttribute']('srcset',_0x2e2272),_0x20a525['removeAttribute']('sizes',_0x2e2272);});}}class m extends _0x14517a{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[o,_0x972c8c,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x2a3c6f}=this;_0x2a3c6f['commands']['add']('uploadcareImageEdit',new O(_0x2a3c6f)),_0x2a3c6f['commands']['add']('uploadcareImageReplace',new R(_0x2a3c6f));}}class g extends _0x14517a{['_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 _0x2bd659=this['editor'];_0x2bd659['ui']['componentFactory']['add']('uploadcareImageEdit',_0x2b8c2e=>{const _0x547f4c=_0x2bd659['commands']['get']('uploadcareImageEdit'),_0x111b4f=new _0x4ca767(_0x2b8c2e),t=_0x2b8c2e['t'];return _0x111b4f['set']({'icon':_0x4a9795,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x111b4f['bind']('isEnabled')['to'](_0x547f4c),_0x111b4f['bind']('isOn')['to'](_0x547f4c,'isActive'),this['listenTo'](_0x111b4f,'execute',()=>{_0x2bd659['execute']('uploadcareImageEdit'),_0x2bd659['editing']['view']['focus']();}),_0x111b4f;}),this['_initConfig']();}['_initConfig'](){const _0x18d38c=_0x3b284a(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x18d38c),this['listenTo'](this['editor'],'destroy',()=>{_0x18d38c['remove']();});}}class et extends _0x14517a{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 _0x496d66,Command as _0x49bbc0}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0xb8d94e,IconGooglePhotos as _0x1e6ef5,IconGoogleDrive as _0x26a3b7,IconFacebook as _0x53fa87,IconDropbox as _0x166c68,IconUploadcareLink as _0x3201d7,IconUploadcareImageUpload as _0x7e39e0,IconError as _0x20e545,IconUploadcareImageEdit as _0x3db1e7}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x5b6d1b,MenuBarMenuListItemButtonView as _0x5282c4,View as _0x136462,FocusCycler as _0x372140,Dialog as _0x574d96,DialogViewPosition as _0x35c226,SpinnerView as _0xb51fca,IconView as _0x892fb9,Notification as _0x40a795}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x1fa7f2,DomEmitterMixin as _0x5759e2,global as _0x7007fb,getAncestors as _0x34b239,ObservableMixin as _0x3c7c96,uid as _0x3f73f2,createElement as _0x2c3410}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x26ee08}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x57f6ce,info as _0x2961de}from'@uploadcare/upload-client';import*as _0x316cec from'@uploadcare/file-uploader';var i=function(_0x16d326){return _0x16d326['Local']='local',_0x16d326['URL']='url',_0x16d326['Dropbox']='dropbox',_0x16d326['GDrive']='gdrive',_0x16d326['Facebook']='facebook',_0x16d326['GPhotos']='gphotos',_0x16d326['OneDrive']='onedrive',_0x16d326;}({});function _(_0x1b04a9,_0x5dec86,_0x3b41c5){const t=_0x1b04a9['t'],_0x131d9b=_0x1b04a9['t'];switch(_0x5dec86){case i['Local']:return{'text':_0x131d9b('Insert'===_0x3b41c5?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x131d9b('From\x20computer')};case i['URL']:return{'text':'Insert'===_0x3b41c5?_0x131d9b('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x131d9b('Via\x20URL')};case i['Dropbox']:return{'text':t('Insert'===_0x3b41c5?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case i['Facebook']:return{'text':t('Insert'===_0x3b41c5?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case i['GDrive']:return{'text':t('Insert'===_0x3b41c5?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case i['GPhotos']:return{'text':t('Insert'===_0x3b41c5?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case i['OneDrive']:return{'text':t('Insert'===_0x3b41c5?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x5dec86;}}class e extends _0x496d66{['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 _0x5962a3=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x4d4ebe;for(const _0x1b81e3 in _0x5962a3){const _0x5bb87e=_0x1b81e3,_0x37ece7=_0x5962a3[_0x5bb87e];if('uploadcareLicenseKeyValid'==_0x37ece7||'uploadcareLicenseKeyInvalid'==_0x37ece7||'uploadcareLicenseKeyExpired'==_0x37ece7||'uploadcareLicenseKeyDomainLimit'==_0x37ece7||'uploadcareLicenseKeyNotAllowed'==_0x37ece7||'uploadcareLicenseKeyEvaluationLimit'==_0x37ece7||'uploadcareLicenseKeyTrialLimit'==_0x37ece7||'uploadcareLicenseKeyUsageLimit'==_0x37ece7){delete _0x5962a3[_0x5bb87e],_0x4d4ebe=_0x37ece7,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x4d4ebe&&_0x5962a3['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x4d4ebe&&_0x5962a3['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x4d4ebe&&_0x5962a3['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x4d4ebe&&_0x5962a3['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x4d4ebe&&_0x5962a3['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyTrialLimit'==_0x4d4ebe&&_0x5962a3['_showLicenseError']('trialLimit'),'uploadcareLicenseKeyUsageLimit'==_0x4d4ebe&&_0x5962a3['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0xfd1634}=this,_0x7867ef=_0xfd1634['commands']['get']('uploadcare');if(!_0x7867ef)return;const _0x5598d5=this['_normalizeConfigSourceList'](_0xfd1634['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x3861ea,_0x11e44c)=>{const _0x264f68=this['_getIntegrationKey'](_0x11e44c['type']);return _0x3861ea[_0x264f68]||(_0x3861ea[_0x264f68]=[]),_0x3861ea[_0x264f68]['push'](_0x11e44c),_0x3861ea;},{});_0xfd1634['plugins']['has']('ImageInsertUI')&&_0xfd1634['commands']['get']('uploadcare')&&Object['entries'](_0x5598d5)['forEach'](([_0x407c95,_0x42a63c])=>{_0xfd1634['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x407c95,'observable':()=>_0x7867ef,'buttonViewCreator':()=>this['_createToolbarButton'](_0x42a63c),'formViewCreator':()=>this['_createDropdownButtons'](_0x42a63c),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x42a63c),'override':'assetManager'!==_0x407c95});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x4e6598){const {locale:_0x5e2c80}=this['editor'];return _0x4e6598['map'](_0x4095e3=>{const _0xa3632a=_(_0x5e2c80,_0x4095e3,'Insert');switch(_0x4095e3){case i['Local']:return{'icon':_0x7e39e0,'type':i['Local'],..._0xa3632a};case i['URL']:return{'icon':_0x3201d7,'type':i['URL'],..._0xa3632a};case i['Dropbox']:return{'icon':_0x166c68,'type':i['Dropbox'],..._0xa3632a};case i['Facebook']:return{'icon':_0x53fa87,'type':i['Facebook'],..._0xa3632a};case i['GDrive']:return{'icon':_0x26a3b7,'type':i['GDrive'],..._0xa3632a};case i['GPhotos']:return{'icon':_0x1e6ef5,'type':i['GPhotos'],..._0xa3632a};case i['OneDrive']:return{'icon':_0xb8d94e,'type':i['OneDrive'],..._0xa3632a};}});}['_getIntegrationKey'](_0x1e30a3){switch(_0x1e30a3){case i['Local']:return'upload';case i['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x16b3e5,_0x3eacb9){const _0xc77048=this['editor'],_0x2fbcda=new _0x16b3e5(_0xc77048['locale']),_0xaf883b=_0xc77048['commands']['get']('uploadcare');return _0x2fbcda['bind']('isEnabled')['to'](_0xaf883b),_0x2fbcda['on']('execute',()=>{_0xaf883b['execute'](_0x3eacb9);}),_0x2fbcda;}['_createToolbarButton'](_0x21f100){const {locale:_0x3916df}=this['editor'],_0x133716=this['editor']['plugins']['get']('ImageInsertUI'),_0x249932=_0x21f100[0x0],_0x42904a=this['_createButton'](_0x5b6d1b,_0x249932['type']);return _0x42904a['icon']=_0x249932['icon'],_0x42904a['bind']('label')['to'](_0x133716,'isImageSelected',_0x42155d=>_(_0x3916df,_0x249932['type'],_0x42155d?'Replace':'Insert')['text']),_0x42904a['tooltip']=!0x0,_0x42904a;}['_createDropdownButtons'](_0x1f1d10){const {locale:_0x465fed}=this['editor'],_0xa2d46=this['editor']['plugins']['get']('ImageInsertUI');return _0x1f1d10['map'](_0x4e3c14=>{const _0x184695=this['_createButton'](_0x5b6d1b,_0x4e3c14['type']);return _0x184695['withText']=!0x0,_0x184695['icon']=_0x4e3c14['icon'],_0x184695['bind']('label')['to'](_0xa2d46,'isImageSelected',_0x2f4546=>_(_0x465fed,_0x4e3c14['type'],_0x2f4546?'Replace':'Insert')['text']),_0x184695;});}['_createMenuBarButtons'](_0x30ab71){return _0x30ab71['map'](_0x5ed883=>{const _0x21bb2f=this['_createButton'](_0x5282c4,_0x5ed883['type']);return _0x21bb2f['icon']=_0x5ed883['icon'],_0x21bb2f['label']=_0x5ed883['shortText'],_0x21bb2f;});}}class F extends _0x136462{['focusTracker'];['focusCycler'];constructor(_0x87ce93){super(_0x87ce93),this['focusTracker']=new _0x1fa7f2(),this['focusCycler']=new _0x372140({'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(_0x58680e,_0x215c32){super(_0x58680e),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-'+_0x215c32}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}}function C(_0x20b61d,_0x179d1c){const _0x114140=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x368aec=>_0x368aec<=_0x179d1c)['map'](_0x4f3f1f=>_0x20b61d['replace'](/\/$/,'')+'/-/resize/'+_0x4f3f1f+'x/\x20'+_0x4f3f1f+'w');return{'imageFallbackUrl':_0x20b61d,'imageSources':[{'srcset':_0x114140['join'](',\x20'),'sizes':'(max-width:\x20'+_0x179d1c+'px)\x20100vw,\x20'+_0x179d1c+'px','type':'image/webp'}]};}function S(_0x21ecf5,_0x11371f,_0x20cfdb){const _0x49ed99=_0x21ecf5['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x49ed99?parseInt(_0x49ed99[0x1],0xa):_0x11371f,'height':_0x49ed99?parseInt(_0x49ed99[0x2],0xa):_0x20cfdb};}function p(_0x57407b,_0x372322){const _0x583293=new(_0x5759e2())(),_0x399386=_0x57407b['plugins']['get']('ImageUtils'),_0x4e0613=_0x57407b['editing']['mapper']['toViewElement'](_0x372322),_0x29f161=_0x399386['findViewImgElement'](_0x4e0613),_0x6c14af=_0x57407b['editing']['view']['domConverter']['viewToDom'](_0x29f161),_0x407ffe=_0x372322['getAttribute']('width'),_0x1b6fb4=_0x372322['getAttribute']('height'),_0x386a14='image-processing';_0x57407b['editing']['view']['change'](_0x147743=>{_0x147743['addClass'](_0x386a14,_0x4e0613),_0x147743['setStyle']('aspect-ratio',_0x407ffe+'/'+_0x1b6fb4,_0x29f161);}),_0x583293['listenTo'](_0x6c14af,'load',()=>{_0x583293['stopListening'](_0x6c14af,'load'),_0x57407b['editing']['view']['change'](_0x1fbea9=>{_0x1fbea9['removeClass'](_0x386a14,_0x4e0613),_0x1fbea9['removeStyle']('aspect-ratio',_0x29f161);});});}function G(_0x4ca9d7){if(Array['isArray'](_0x4ca9d7)){const _0x2ab085=_0x4ca9d7['map'](G);return _0x563af4=>_0x2ab085['some'](_0x3714f8=>_0x3714f8(_0x563af4));}if('origin'==_0x4ca9d7){const _0x1924f7=_0x7007fb['window']['location']['origin'];return _0x4e60b6=>new URL(_0x4e60b6,_0x7007fb['document']['baseURI'])['origin']==_0x1924f7;}return'function'==typeof _0x4ca9d7?_0x4ca9d7:_0x4ca9d7 instanceof RegExp?_0x490e09=>!(!_0x490e09['match'](_0x4ca9d7)&&!_0x490e09['replace'](/^https?:\/\//,'')['match'](_0x4ca9d7)):()=>!0x1;}function A(_0x3853bc,_0x34d2b9){return _0x34b239(_0x3853bc['target'])['includes'](_0x34d2b9);}class n extends/* #__PURE__ -- @preserve */
24
+ _0x3c7c96(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x26cc50,_0x30f3b2,_0x26f549){super(),this['_editor']=_0x26cc50,this['_editing']=_0x30f3b2,this['_dialog']=_0x26cc50['plugins']['get'](_0x574d96),this['_api']=_0x30f3b2['ctxElement']['getAPI'](),this['_type']=_0x26f549,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:_0x2091d0,model:_0x77f6ab}=this['_editor'],_0x29a483=_0x77f6ab['document']['selection']['getSelectedElement'](),_0x5cadde=_0x29a483&&(_0x29a483['is']('element','imageBlock')||_0x29a483['is']('element','imageInline'));this['_formView']=new x(_0x2091d0,this['_editing']['ucContextId']),this['_dialog']['show']({'id':'uploadCare','icon':_0x7e39e0,'title':_(_0x2091d0,this['_type'],_0x5cadde?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x35c226['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x478d18=>!A(_0x478d18,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x20877c}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x4ba977=>{const _0x1af424=_0x20877c['length'];for(const _0xef02a4 of _0x20877c){const _0x1074b1=_0xef02a4===_0x20877c[_0x1af424-0x1],{cdnUrl:_0x1d88bb,fileInfo:_0x4d01cb}=_0xef02a4;if(!_0x1d88bb||!_0x4d01cb)continue;const {width:_0x4bfeed,height:_0x339a88}=_0x4d01cb['imageInfo'],_0x2acaea=S(_0x1d88bb,_0x4bfeed,_0x339a88),_0x501b83=C(_0x1d88bb,_0x2acaea['width']),_0x590c8c={'id':_0x4d01cb['uuid'],'type':'image','attributes':{'imageDimension':_0x2acaea,..._0x501b83}};this['_insertAsset'](_0x590c8c,_0x1074b1,_0x4ba977);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x18d934=>{'idle'===_0x18d934['detail']['status']&&!_0x18d934['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===i['Local']?this['_api']['setCurrentActivity'](i['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x5178b2,_0x55e9ef,_0x35315a){const _0x1f5625=this['_editor']['model']['document']['selection'],_0x165918=_0x1f5625['getSelectedElement'](),_0x29cec2=!(!_0x165918||!_0x165918['is']('element','imageInline'));_0x35315a['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x5178b2,_0x29cec2),_0x55e9ef||_0x35315a['setSelection'](_0x1f5625['getLastPosition']());}['_insertImage'](_0x23b600,_0x5891d0){const _0x14f0b3=this['_editor'],{imageDimension:_0x1d6961,imageFallbackUrl:_0x2a5fc1,imageSources:_0x2ab9e1}=_0x23b600['attributes'];_0x14f0b3['execute']('insertImage',{'imageType':_0x5891d0?'imageInline':null,'source':{'uploadcareImageId':_0x23b600['id'],'src':_0x2a5fc1,'sources':_0x2ab9e1,..._0x1d6961}});}}class w extends _0x49bbc0{['_editing'];['_controller']=null;static get['requires'](){return[_0x574d96,o];}constructor(_0x46803e){super(_0x46803e),this['_editing']=_0x46803e['plugins']['get'](o);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x16fe89){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new n(this['editor'],this['_editing'],_0x16fe89);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class j{static['upload']({file:_0x52416d,..._0x7b213e}){return _0x57f6ce(_0x52416d,_0x7b213e);}static['getInfo'](_0x102f0d,_0x2f8bc6){return _0x2961de(_0x102f0d,_0x2f8bc6);}}class f extends _0x496d66{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x26ee08,o];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x1c5034=this['editor'];if(!!!_0x1c5034['config']['get']('uploadcare'))return;_0x1c5034['plugins']['get'](_0x26ee08)['createUploadAdapter']=_0x2f085d=>new k(_0x2f085d,_0x1c5034),_0x1c5034['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x241dd3,{imageElement:_0x1a827a,data:_0x813aae})=>{_0x1c5034['model']['change'](_0x376bef=>{_0x376bef['setAttribute']('uploadcareImageId',_0x813aae['uploadcareImageId'],_0x1a827a);});});}}class k{['loader'];['editor'];['controller'];constructor(_0xb28a58,_0x344657){this['loader']=_0xb28a58,this['editor']=_0x344657,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x1618e2=await this['loader']['file'];return j['upload']({'file':_0x1618e2,'publicKey':this['editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['editor']['config']['get']('uploadcare.uploader.baseUrl'),'baseCDN':this['editor']['config']['get']('uploadcare.uploader.cdnCname'),'signal':this['controller']['signal'],'onProgress':_0x4962c8=>{_0x4962c8&&_0x4962c8['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x4962c8['value']);}})['then'](async _0x464d9c=>{const {imageFallbackUrl:_0x2967e1,imageSources:_0x4331c6}=C(_0x464d9c['cdnUrl'],_0x464d9c['imageInfo']['width']);return{'uploadcareImageId':_0x464d9c['uuid'],'default':_0x2967e1,'sources':_0x4331c6};})['catch'](()=>{const _0x139913=t('Cannot\x20upload\x20file:')+('\x20'+_0x1618e2['name']+'.');return Promise['reject'](_0x139913);});}['abort'](){this['controller']['abort']();}}class o extends _0x496d66{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',f,_0x574d96];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['ucContextId'];get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}constructor(_0x2a2378){super(_0x2a2378),this['ucContextId']=_0x3f73f2();}['init'](){const _0x4b1115=this['editor'];_0x4b1115['commands']['add']('uploadcare',new w(_0x4b1115));}['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 _0x4cb49c=_0x7007fb['document']['querySelector']('input[uploadcare-file-input]');_0x4cb49c&&_0x4cb49c['remove']();}),async function(_0x2ef6f4){const _0x528ad7=_0x5909b6([0x68,0x67,0x50,0x36,0x38,0x70,0x71,0x63,0x37,0x4f,0x42,0x4a,0x78,0x39,0x75,0x33,0x7a,0x72,0x48,0x61,0x74,0x59,0x55,0x58,0x66,0x30,0x34,0x54,0x64,0x56,0x6b,0x4d,0x46,0x6d,0x77,0x43,0x73,0x35,0x53,0x44,0x41,0x76,0x6a,0x32,0x31,0x69,0x57,0x51,0x47,0x65,0x5a,0x4b,0x4c,0x79,0x52,0x6c,0x45,0x4e,0x6e,0x6f,0x49,0x62]),_0x143c18=0x535f8c3a,_0x86abea=0x5358f7ba^_0x143c18,_0x188359=window[_0x5909b6([0x44,0x61,0x74,0x65])][_0x5909b6([0x6e,0x6f,0x77])](),_0x199a9c=_0x2ef6f4[_0x5909b6([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x1961b1=new window[(_0x5909b6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5f0135=>{_0x199a9c[_0x5909b6([0x6f,0x6e,0x63,0x65])](_0x5909b6([0x72,0x65,0x61,0x64,0x79]),_0x5f0135);}),_0x4c9122={[_0x5909b6([0x6b,0x74,0x79])]:_0x5909b6([0x45,0x43]),[_0x5909b6([0x75,0x73,0x65])]:_0x5909b6([0x73,0x69,0x67]),[_0x5909b6([0x63,0x72,0x76])]:_0x5909b6([0x50,0x2d,0x32,0x35,0x36]),[_0x5909b6([0x78])]:_0x5909b6([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]),[_0x5909b6([0x79])]:_0x5909b6([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]),[_0x5909b6([0x61,0x6c,0x67])]:_0x5909b6([0x45,0x53,0x32,0x35,0x36])},_0x1498a1=_0x199a9c[_0x5909b6([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x5909b6([0x67,0x65,0x74])](_0x5909b6([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x20149d(){let _0x2686d2,_0x49a89f=null,_0xafa16b=null;try{if(_0x1498a1==_0x5909b6([0x47,0x50,0x4c]))return _0x5909b6([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x2686d2=_0x37a859(),!_0x2686d2)return _0x5909b6([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x2686d2[_0x5909b6([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0xafa16b=_0x34114e(_0x2686d2[_0x5909b6([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x2686d2[_0x5909b6([0x6a,0x74,0x69])])),await _0x42f772()?_0x5c952a()?_0x86f8e2()?_0x5909b6([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x317654()?(_0x2686d2[_0x5909b6([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x5909b6([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x49a89f=_0x512a02(_0x5909b6([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x2686d2[_0x5909b6([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x5909b6([0x74,0x72,0x69,0x61,0x6c])&&(_0x49a89f=_0x512a02(_0x5909b6([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x4e946a()):_0x5909b6([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x5909b6([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x5909b6([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x5909b6([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x86f8e2(){const _0x2c0c4c=[_0x5909b6([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x5909b6([0x74,0x72,0x69,0x61,0x6c])][_0x5909b6([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2686d2[_0x5909b6([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x188359/0x3e8:0xe10*_0x86abea;return _0x2686d2[_0x5909b6([0x65,0x78,0x70])]<_0x2c0c4c;}function _0x5c952a(){const _0x42bf70=_0x2686d2[_0x5909b6([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x42bf70&&(!!_0x42bf70[_0x5909b6([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5909b6([0x2a]))||!!_0x42bf70[_0x5909b6([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5909b6([0x55,0x50,0x4c,0x43])));}function _0x317654(){const _0x33ca22=_0x2686d2[_0x5909b6([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x33ca22||0x0==_0x33ca22[_0x5909b6([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x36e861}=new URL(window[_0x5909b6([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x33ca22[_0x5909b6([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x36e861))return!0x0;const _0x113e16=_0x36e861[_0x5909b6([0x73,0x70,0x6c,0x69,0x74])](_0x5909b6([0x2e]));return _0x33ca22[_0x5909b6([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x401af1=>_0x401af1[_0x5909b6([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5909b6([0x2a])))[_0x5909b6([0x6d,0x61,0x70])](_0x403ddd=>_0x403ddd[_0x5909b6([0x73,0x70,0x6c,0x69,0x74])](_0x5909b6([0x2e])))[_0x5909b6([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x2e1768=>_0x2e1768[_0x5909b6([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x113e16[_0x5909b6([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x5909b6([0x6d,0x61,0x70])](_0x16a55e=>Array(_0x113e16[_0x5909b6([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x16a55e[_0x5909b6([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x5909b6([0x66,0x69,0x6c,0x6c])](_0x16a55e[0x0]===_0x5909b6([0x2a])?_0x5909b6([0x2a]):'')[_0x5909b6([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x16a55e))[_0x5909b6([0x73,0x6f,0x6d,0x65])](_0x279436=>_0x113e16[_0x5909b6([0x65,0x76,0x65,0x72,0x79])]((_0x1d2594,_0x48c543)=>_0x279436[_0x48c543]===_0x1d2594||_0x279436[_0x48c543]===_0x5909b6([0x2a])));}function _0x4e946a(){return _0x49a89f&&_0xafa16b?new window[(_0x5909b6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x202c28,_0x42cbaf)=>{_0x49a89f[_0x5909b6([0x74,0x68,0x65,0x6e])](_0x202c28,_0x42cbaf),_0xafa16b[_0x5909b6([0x74,0x68,0x65,0x6e])](_0x2edd16=>{_0x2edd16!=_0x5909b6([0x56,0x61,0x6c,0x69,0x64])&&_0x202c28(_0x2edd16);},_0x42cbaf);}):_0x49a89f||_0xafa16b||_0x5909b6([0x56,0x61,0x6c,0x69,0x64]);}}function _0x34114e(_0x3ba739,_0xa0e964){return new window[(_0x5909b6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x204928=>{if(_0x5e3177())return _0x204928(_0x5909b6([0x56,0x61,0x6c,0x69,0x64]));_0x95eb6e(),_0x199a9c[_0x5909b6([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x5909b6([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x9e1dd4=!0x1;const _0x5b9956=_0x3f73f2();function _0x63c9b2(_0x4a1883){return!!_0x4a1883&&(typeof _0x4a1883===_0x5909b6([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x4a1883===_0x5909b6([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x4a1883[_0x5909b6([0x74,0x68,0x65,0x6e])]===_0x5909b6([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x4a1883[_0x5909b6([0x63,0x61,0x74,0x63,0x68])]===_0x5909b6([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x1f0d24(_0x4c70bb){_0x3357ec(_0x4c70bb)[_0x5909b6([0x74,0x68,0x65,0x6e])](_0x3ef099=>{if(!_0x3ef099||_0x3ef099[_0x5909b6([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x5909b6([0x6f,0x6b]))return _0x5909b6([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x55ebb7(_0x5d95d7(_0x5b9956+_0xa0e964))!=_0x3ef099[_0x5909b6([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x5909b6([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x5909b6([0x56,0x61,0x6c,0x69,0x64]);})[_0x5909b6([0x74,0x68,0x65,0x6e])](_0x126006=>(_0x43d0ac(),_0x126006),()=>{const _0x33d8fd=_0x596a25();return null==_0x33d8fd?(_0x43d0ac(),_0x5909b6([0x56,0x61,0x6c,0x69,0x64])):_0x5909b6(_0x188359-_0x33d8fd>(0x7753083a^_0x143c18)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x5909b6([0x74,0x68,0x65,0x6e])](_0x204928)[_0x5909b6([0x63,0x61,0x74,0x63,0x68])](()=>{_0x204928(_0x5909b6([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x1b1221=0x536962ba^_0x143c18;function _0x43d0ac(){const _0x25002f=_0x5909b6([0x6c,0x6c,0x63,0x74,0x2d])+_0x55ebb7(_0x5d95d7(_0x3ba739)),_0x254814=_0x148159(_0x55ebb7(window[_0x5909b6([0x4d,0x61,0x74,0x68])][_0x5909b6([0x63,0x65,0x69,0x6c])](_0x188359/_0x1b1221)));window[_0x5909b6([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x5909b6([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x25002f,_0x254814);}function _0x596a25(){const _0x11fdde=_0x5909b6([0x6c,0x6c,0x63,0x74,0x2d])+_0x55ebb7(_0x5d95d7(_0x3ba739)),_0x1ad3be=window[_0x5909b6([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x5909b6([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x11fdde);return _0x1ad3be?window[_0x5909b6([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x148159(_0x1ad3be),0x10)*_0x1b1221:null;}function _0x3357ec(_0x2f3d0e){return new window[(_0x5909b6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x8d4775,_0x22357f)=>{_0x2f3d0e[_0x5909b6([0x74,0x68,0x65,0x6e])](_0x8d4775,_0x22357f),window[_0x5909b6([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x22357f,0x535e58fa^_0x143c18);});}}_0x199a9c[_0x5909b6([0x6f,0x6e])](_0x5909b6([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x4ed353,_0x52e077)=>{if(_0x52e077[0x0]!=_0x3ba739)return _0x204928(_0x5909b6([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x52e077[0x1]={..._0x52e077[0x1],[_0x5909b6([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x5b9956};},{[_0x5909b6([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x5909b6([0x68,0x69,0x67,0x68])}),_0x199a9c[_0x5909b6([0x6f,0x6e])](_0x5909b6([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0xb0e806=>{_0x63c9b2(_0xb0e806[_0x5909b6([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x9e1dd4=!0x0,_0x1f0d24(_0xb0e806[_0x5909b6([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x5909b6([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x5909b6([0x6c,0x6f,0x77])}),_0x1961b1[_0x5909b6([0x74,0x68,0x65,0x6e])](()=>{_0x9e1dd4||_0x204928(_0x5909b6([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x5e3177(){return _0x199a9c[_0x5909b6([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5909b6([0x76,0x69,0x65,0x77])][_0x5909b6([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x5909b6([0x61,0x75,0x74,0x6f]);}function _0x95eb6e(){_0x199a9c[_0x5909b6([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5909b6([0x76,0x69,0x65,0x77])][_0x5909b6([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x5909b6([0x61,0x75,0x74,0x6f]);}}function _0x512a02(_0x3d9a29){const _0x2ce4b1=[new window[(_0x5909b6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x26cc05=>setTimeout(_0x26cc05,0x5356b2f6^_0x143c18)),_0x1961b1[_0x5909b6([0x74,0x68,0x65,0x6e])](()=>new window[(_0x5909b6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3a6946=>{let _0x200bcb=0x0;_0x199a9c[_0x5909b6([0x6d,0x6f,0x64,0x65,0x6c])][_0x5909b6([0x6f,0x6e])](_0x5909b6([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x1e8618,_0xc31720)=>{_0xc31720[0x0][_0x5909b6([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x200bcb++,_0x200bcb==(0x535f8dc2^_0x143c18)&&(_0x3a6946(),_0x1e8618[_0x5909b6([0x6f,0x66,0x66])]());});}))];return window[_0x5909b6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x5909b6([0x72,0x61,0x63,0x65])](_0x2ce4b1)[_0x5909b6([0x74,0x68,0x65,0x6e])](()=>_0x3d9a29);}async function _0x234395(){await _0x1961b1,_0x199a9c[_0x5909b6([0x6d,0x6f,0x64,0x65,0x6c])][_0x5909b6([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x379ab9,_0x199a9c[_0x5909b6([0x6d,0x6f,0x64,0x65,0x6c])][_0x5909b6([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x379ab9,_0x199a9c[_0x5909b6([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x5909b6([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x5e8a25(_0x46f5f1){const _0x3a0ea1=_0x4016cb();_0x199a9c[_0x3a0ea1]=_0x5909b6([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x46f5f1,_0x46f5f1!=_0x5909b6([0x56,0x61,0x6c,0x69,0x64])&&_0x234395();}function _0x4016cb(){const _0x438987=window[_0x5909b6([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x5909b6([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x5909b6([0x6e,0x6f,0x77])]())[_0x5909b6([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x5909b6([0x2e]),'');let _0x380828=_0x5909b6([0x68]);for(let _0x1f9999=0x0;_0x1f9999<_0x438987[_0x5909b6([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1f9999+=0x2){let _0x11cd4a=window[_0x5909b6([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x438987[_0x5909b6([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x1f9999,_0x1f9999+0x2));_0x11cd4a>=_0x528ad7[_0x5909b6([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x11cd4a-=_0x528ad7[_0x5909b6([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x380828+=_0x528ad7[_0x11cd4a];}return _0x380828;}function _0x37a859(){const _0x1c3f76=_0x1498a1[_0x5909b6([0x73,0x70,0x6c,0x69,0x74])](_0x5909b6([0x2e]));if(0x3!=_0x1c3f76[_0x5909b6([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x494994(_0x1c3f76[0x1]);function _0x494994(_0xf111aa){const _0x4a4d8e=_0x540ca8(_0xf111aa);return _0x4a4d8e&&_0xc73055()?_0x4a4d8e:null;function _0xc73055(){const _0x3ae8d1=_0x4a4d8e[_0x5909b6([0x6a,0x74,0x69])],_0x37ccc9=window[_0x5909b6([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3ae8d1[_0x5909b6([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3ae8d1[_0x5909b6([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x31da7f={..._0x4a4d8e,[_0x5909b6([0x6a,0x74,0x69])]:_0x3ae8d1[_0x5909b6([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x3ae8d1[_0x5909b6([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x31da7f[_0x5909b6([0x76,0x63])],_0x5d95d7(_0x31da7f)==_0x37ccc9;}}}async function _0x42f772(){let _0x459652=!0x0;try{const _0x1252ad=_0x1498a1[_0x5909b6([0x73,0x70,0x6c,0x69,0x74])](_0x5909b6([0x2e])),[_0x187018,_0x287a51,_0x364572]=_0x1252ad;return _0x2d22e8(_0x187018),await _0x190968(_0x187018,_0x287a51,_0x364572),_0x459652;}catch{return!0x1;}function _0x2d22e8(_0x279bd9){const _0x33644c=_0x540ca8(_0x279bd9);_0x33644c&&_0x33644c[_0x5909b6([0x61,0x6c,0x67])]==_0x5909b6([0x45,0x53,0x32,0x35,0x36])||(_0x459652=!0x1);}async function _0x190968(_0x13b375,_0x3ab659,_0xfaf0b5){const _0xc3a513=window[_0x5909b6([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x5909b6([0x66,0x72,0x6f,0x6d])](_0x2aa753(_0xfaf0b5),_0x39e3a3=>_0x39e3a3[_0x5909b6([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0xf1bedf=new window[(_0x5909b6([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x5909b6([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x13b375+_0x5909b6([0x2e])+_0x3ab659),_0x41ebe3=window[_0x5909b6([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x5909b6([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x41ebe3)return;const _0xf6b14f=await _0x41ebe3[_0x5909b6([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x5909b6([0x6a,0x77,0x6b]),_0x4c9122,{[_0x5909b6([0x6e,0x61,0x6d,0x65])]:_0x5909b6([0x45,0x43,0x44,0x53,0x41]),[_0x5909b6([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x5909b6([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x5909b6([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x41ebe3[_0x5909b6([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x5909b6([0x6e,0x61,0x6d,0x65])]:_0x5909b6([0x45,0x43,0x44,0x53,0x41]),[_0x5909b6([0x68,0x61,0x73,0x68])]:{[_0x5909b6([0x6e,0x61,0x6d,0x65])]:_0x5909b6([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0xf6b14f,_0xc3a513,_0xf1bedf)||(_0x459652=!0x1);}}function _0x540ca8(_0x4bf010){return _0x4bf010[_0x5909b6([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x5909b6([0x65,0x79]))?JSON[_0x5909b6([0x70,0x61,0x72,0x73,0x65])](_0x2aa753(_0x4bf010)):null;}function _0x2aa753(_0x302207){return window[_0x5909b6([0x61,0x74,0x6f,0x62])](_0x302207[_0x5909b6([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x5909b6([0x2b]))[_0x5909b6([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x5909b6([0x2f])));}function _0x5d95d7(_0x52fe3e){let _0x1e6080=0x1505;function _0x134b93(_0x56bf0a){for(let _0x4a3493=0x0;_0x4a3493<_0x56bf0a[_0x5909b6([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4a3493++){const _0x574cc0=_0x56bf0a[_0x5909b6([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x4a3493);_0x1e6080=(_0x1e6080<<0x5)+_0x1e6080+_0x574cc0,_0x1e6080&=_0x1e6080;}}function _0x4440eb(_0x3f01e7){Array[_0x5909b6([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x3f01e7)?_0x3f01e7[_0x5909b6([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x4440eb):_0x3f01e7&&typeof _0x3f01e7==_0x5909b6([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x5909b6([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x3f01e7)[_0x5909b6([0x73,0x6f,0x72,0x74])]()[_0x5909b6([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x1435e2,_0x397051])=>{_0x134b93(_0x1435e2),_0x4440eb(_0x397051);}):_0x134b93(window[_0x5909b6([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x3f01e7));}return _0x4440eb(_0x52fe3e),_0x1e6080>>>0x0;}function _0x55ebb7(_0x3db309){return _0x3db309[_0x5909b6([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x5909b6([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x5909b6([0x30]));}function _0x148159(_0x8f4fde){return _0x8f4fde[_0x5909b6([0x73,0x70,0x6c,0x69,0x74])]('')[_0x5909b6([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x5909b6([0x6a,0x6f,0x69,0x6e])]('');}function _0x379ab9(){}function _0x5909b6(_0x5152b1){return _0x5152b1['map'](_0x12a2a5=>String['fromCharCode'](_0x12a2a5))['join']('');}_0x5e8a25(await _0x20149d());}(this);}['_initSchema'](){const _0x9ad844=this['editor']['model']['schema'];_0x9ad844['isRegistered']('imageBlock')&&_0x9ad844['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x9ad844['isRegistered']('imageInline')&&_0x9ad844['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x3f2a8b=this['editor'];_0x3f2a8b['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x3f2a8b['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x153f94=>_0x153f94['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x32efa5=_0x3f2a8b['commands']['get']('replaceImageSource');_0x32efa5&&this['listenTo'](_0x32efa5,'cleanupImage',(_0x92ebea,[_0x53fbe5,_0x3ae0f5])=>{_0x53fbe5['removeAttribute']('uploadcareImageId',_0x3ae0f5);});}['_initConfig'](){const _0x35f9d7=this['editor']['config']['get']('uploadcare.uploader')||{},_0x5a1433=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x2c3410(_0x7007fb['document'],'uc-config',{..._0x35f9d7,'pubkey':_0x5a1433,'ctx-name':'uploader-'+this['ucContextId'],'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']=_0x4ed1cc=>{if('closeMax'==_0x4ed1cc)return'#uc-icon-arrow-down';},_0x7007fb['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x2c3410(_0x7007fb['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader-'+this['ucContextId']}),_0x7007fb['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x33d9e3=this['editor']['commands']['get']('insertImage');_0x33d9e3&&this['listenTo'](_0x33d9e3,'execute',()=>{const _0x387bd2=this['editor']['model']['document']['selection']['getSelectedElement']();_0x387bd2&&_0x387bd2['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x387bd2);});});const _0x5a68ee=this['editor']['commands']['get']('uploadcareImageReplace');_0x5a68ee&&this['listenTo'](_0x5a68ee,'execute',()=>{const _0x1395c4=this['editor']['model']['document']['selection']['getSelectedElement']();_0x1395c4&&_0x1395c4['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x1395c4);});});}}class tt extends _0x496d66{static get['requires'](){return[o,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x3d4d29){super(_0x3d4d29),_0x3d4d29['config']['define']('uploadcare.uploader.sourceList',[i['Local'],i['URL']]),_0x316cec['defineComponents'](_0x316cec),this['_defineLocale']();}['_defineLocale'](){const _0x2e5917=this['editor']['config']['get']('uploadcare.locale'),_0x5bc76a=this['editor']['locale']['contentLanguage'];_0x2e5917&&_0x316cec['defineLocale'](_0x5bc76a,_0x2e5917);}}class ii extends _0x136462{constructor(_0x1ecfe5){super(_0x1ecfe5);const t=_0x1ecfe5['t'],_0x2cc556=this['bindTemplate'],_0x567ae8=new _0xb51fca();_0x567ae8['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':[_0x567ae8,{'text':_0x2cc556['to']('imageUploadProgress',_0x5363d2=>t('Loading\x20image...')+'\x20('+(_0x5363d2||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 _0x136462{constructor(_0xfb6900){super(_0xfb6900);const t=_0xfb6900['t'];this['set']('errorType',null);const _0x38b58c=new _0x5b6d1b(_0xfb6900);_0x38b58c['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x38b58c['withText']=!0x0,_0x38b58c['class']='ck-button-action',_0x38b58c['on']('execute',()=>{this['fire']('retry');}),_0x38b58c['bind']('isVisible')['to'](this,'errorType',_0x552cca=>'NotFound'!==_0x552cca);const _0x2e1706=new _0x892fb9();_0x2e1706['content']=_0x20e545,_0x2e1706['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0xce04fc=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':[_0x2e1706,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0xce04fc['to']('errorType',_0xc8f8e4=>t('NotFound'!==_0xc8f8e4?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x38b58c]},{'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 _0x136462{constructor(_0x405d1f,_0x47b0c2){super(_0x405d1f);const _0x4809a7=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x47b0c2,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x4809a7['to']('imageSrc')}});}}class X extends F{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x23573f,_0x4ac9fa,_0x38b2d6){super(_0x23573f),this['_items']=this['createCollection'](),this['_loadingView']=new ii(_0x23573f),this['_errorView']=new ti(_0x23573f),this['_editingView']=new ei(_0x23573f,_0x38b2d6),this['_focusableView']=new _0x136462(_0x23573f),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x4ac9fa),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'],_0x237058=>{this['_addUploadcareImageEditorListeners'](_0x237058);});}),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'](_0x4c9cc7,_0x331638){const _0x223a0a='uc-cloud-image-editor',_0x154ace=_0x4c9cc7['querySelector'](_0x223a0a);if(_0x154ace)return _0x331638(_0x154ace);const _0x893022=new MutationObserver(_0x2250b1=>{const _0x327090=_0x2250b1['filter'](_0x759ab5=>_0x759ab5['target']===_0x4c9cc7&&_0x759ab5['addedNodes']['length']>0x0&&_0x759ab5['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x223a0a);_0x327090['length']&&(_0x893022['disconnect'](),_0x331638(_0x327090[0x0]['addedNodes'][0x0]));});_0x893022['observe'](_0x4c9cc7,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x2571b9){_0x2571b9['addEventListener']('apply',_0x5bb761=>{this['fire']('apply',{'imageSrc':_0x5bb761['detail']['cdnUrl']});}),_0x2571b9['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class E extends/* #__PURE__ -- @preserve */
25
+ _0x3c7c96(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x3745d4,_0x4dbf89,_0xedc149){super(),this['_editor']=_0x3745d4,this['_dialog']=_0x4dbf89,this['_imageElement']=_0xedc149,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 _0x19a708=this['_imageElement'],_0x1134ca=_0x19a708['getAttribute']('uploadcareImageId'),_0x541222=_0x19a708['getAttribute']('src');if(_0x1134ca)await this['_loadImageInfo'](_0x1134ca,_0x541222);else{if(this['_imageCache']['has'](_0x541222)){const _0x49bce0=this['_imageCache']['get'](_0x541222);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x49bce0['url'],this['imageDimension']=_0x49bce0['dimension'],this['imageId']=_0x49bce0['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x3389c8}=this['_editor'],t=_0x3389c8['t'],_0x3c78b9=new X(_0x3389c8,this['imageStatus'],this['_attributes']);_0x3c78b9['bind']('status')['to'](this,'imageStatus'),_0x3c78b9['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x3c78b9['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x3c78b9['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x3c78b9,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x3db1e7,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x3c78b9,'position':_0x35c226['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x3c78b9['focus']();},'onHide':()=>{_0x3c78b9['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x4beb44=>!A(_0x4beb44,_0x3c78b9['element'])}});}['_loadImageInfo'](_0x1f5245,_0x960414){return j['getInfo'](_0x1f5245,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl')})['then'](_0xe0add4=>{const {width:_0x3589e7,height:_0x7c9559}=_0xe0add4['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x960414,this['imageDimension']={'width':_0x3589e7,'height':_0x7c9559},this['imageId']=_0x1f5245;})['catch'](_0x2bfbc5=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x2bfbc5['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x35985b,_0x125e1d){return this['_getImageAsFile'](_0x35985b)['then'](_0xcad21c=>j['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl'),'baseCDN':this['_editor']['config']['get']('uploadcare.uploader.cdnCname'),'signal':_0x125e1d['signal'],'file':_0xcad21c,'onProgress':_0x56435f=>{_0x56435f&&_0x56435f['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x56435f['value']));}}))['then'](_0xbd7846=>{const {width:_0x20376f,height:_0x1f64bd}=_0xbd7846['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0xbd7846['cdnUrl'],this['imageDimension']={'width':_0x20376f,'height':_0x1f64bd},this['imageId']=_0xbd7846['uuid'],this['imageUploadProgress']=null;const _0x4dba44=_0x35985b['getAttribute']('src');this['_imageCache']['set'](_0x4dba44,{'id':_0xbd7846['uuid'],'url':_0xbd7846['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x2da041=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x2da041['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x540b92,_0x5008ec){_0x540b92['on']('apply',(_0x16f005,_0x503d27)=>{this['_replaceImage'](_0x5008ec,_0x503d27['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x540b92['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x540b92['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x277fe9,_0x3d9273,_0xef5c58){const _0x319d29=this['_editor'],{width:_0x56352a,height:_0xc40b1a}=S(_0x3d9273,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x3a6db6,imageSources:_0x26a448}=C(_0x3d9273,_0x56352a);_0x319d29['model']['change'](_0x4168ec=>{if('$graveyard'===_0x277fe9['root']['rootName']){_0x319d29['execute']('insertImage',{'imageType':_0x277fe9['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x277fe9['getAttributes']()),'uploadcareImageId':_0xef5c58,'src':_0x3a6db6,'sources':_0x26a448,'width':_0x56352a,'height':_0xc40b1a}});const _0x5096c0=_0x277fe9['getChildren']();_0x277fe9=_0x319d29['model']['document']['selection']['getSelectedElement']();for(const _0x187abf of _0x5096c0)_0x4168ec['append'](_0x4168ec['cloneElement'](_0x187abf),_0x277fe9);}else _0x4168ec['setSelection'](_0x277fe9,'on'),_0x319d29['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x277fe9['getAttributes']()),'uploadcareImageId':_0xef5c58,'src':_0x3a6db6,'sources':_0x26a448,'width':_0x56352a,'height':_0xc40b1a},_0x277fe9);_0x4168ec['setSelection'](_0x277fe9,'on');});}async['_getImageAsFile'](_0x1b993f){const _0x2e8e39=_0x7007fb['window'],_0x39ff97=_0x7007fb['document']['location']['href'],_0x1c8a0f=new _0x2e8e39['URL'](_0x1b993f['getAttribute']('src'),_0x39ff97);if('data:'===_0x1c8a0f['protocol']){const _0x4f88d5=_0x1c8a0f['href']['split'](','),_0x43ebc6=_0x4f88d5[0x0]['match'](/:(.*?);/)[0x1],_0x50f232=_0x43ebc6['split']('/')[0x1],_0x2ffd23=_0x2e8e39['atob'](_0x4f88d5[_0x4f88d5['length']-0x1]);let _0x6028d6=_0x2ffd23['length'];const _0x5c2d86=new _0x2e8e39['Uint8Array'](_0x6028d6);for(;_0x6028d6--;)_0x5c2d86[_0x6028d6]=_0x2ffd23['charCodeAt'](_0x6028d6);return new _0x2e8e39['File']([_0x5c2d86],'image.'+_0x50f232,{'type':_0x43ebc6});}const _0x53a53c=_0x1c8a0f['href']['split']('/'),_0x51ff31=_0x53a53c[_0x53a53c['length']-0x1],_0x3bcd76=_0x51ff31['split']('.')[0x1];return _0x2e8e39['fetch'](_0x1c8a0f['href'])['then'](_0x58e79b=>_0x58e79b['clone']()['blob']())['then'](_0x1156df=>new _0x2e8e39['File']([_0x1156df],_0x51ff31,{'type':'image/'+_0x3bcd76}));}}class O extends _0x49bbc0{['imageEditController'];static get['requires'](){return[_0x574d96];}['_isEditable'];constructor(_0x4da471){super(_0x4da471),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x47709e){const _0x1d3ee3=G(_0x47709e);return _0x4045c4=>!(!_0x4045c4||!_0x4045c4['is']('element','imageBlock')&&!_0x4045c4['is']('element','imageInline'))&&(!!_0x4045c4['hasAttribute']('uploadcareImageId')||!!_0x4045c4['hasAttribute']('src')&&_0x1d3ee3(_0x4045c4['getAttribute']('src')));}(_0x4da471['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x16d860=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x16d860);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x211f83=this['editor']['model']['document']['selection']['getSelectedElement']();_0x211f83&&(_0x211f83['is']('element','imageBlock')||_0x211f83['is']('element','imageInline'))&&(this['imageEditController']=new E(this['editor'],this['editor']['plugins']['get'](_0x574d96),_0x211f83),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class R extends _0x49bbc0{['refresh'](){const _0x20940c=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x20940c&&(_0x20940c['is']('element','imageBlock')||_0x20940c['is']('element','imageInline')));}['execute'](_0xa7797d){const _0x36b339=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x39036d=>{_0x39036d['setAttributes'](_0xa7797d,_0x36b339),_0x39036d['removeAttribute']('srcset',_0x36b339),_0x39036d['removeAttribute']('sizes',_0x36b339);});}}class m extends _0x496d66{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[o,_0x40a795,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x4b053d}=this;_0x4b053d['commands']['add']('uploadcareImageEdit',new O(_0x4b053d)),_0x4b053d['commands']['add']('uploadcareImageReplace',new R(_0x4b053d));}}class g extends _0x496d66{['_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 _0x54ecf7=this['editor'];_0x54ecf7['ui']['componentFactory']['add']('uploadcareImageEdit',_0x4a975d=>{const _0x513755=_0x54ecf7['commands']['get']('uploadcareImageEdit'),_0x2bfdfd=new _0x5b6d1b(_0x4a975d),t=_0x4a975d['t'];return _0x2bfdfd['set']({'icon':_0x3db1e7,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x2bfdfd['bind']('isEnabled')['to'](_0x513755),_0x2bfdfd['bind']('isOn')['to'](_0x513755,'isActive'),this['listenTo'](_0x2bfdfd,'execute',()=>{_0x54ecf7['execute']('uploadcareImageEdit'),_0x54ecf7['editing']['view']['focus']();}),_0x2bfdfd;}),this['_initConfig']();}['_initConfig'](){const _0xd1c7d5=_0x2c3410(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0xd1c7d5),this['listenTo'](this['editor'],'destroy',()=>{_0xd1c7d5['remove']();});}}class et extends _0x496d66{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-next-20251209.0",
3
+ "version": "0.0.0-nightly-next-20251210.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-next-20251209.0",
27
- "@ckeditor/ckeditor5-icons": "0.0.0-nightly-next-20251209.0",
28
- "@ckeditor/ckeditor5-image": "0.0.0-nightly-next-20251209.0",
29
- "@ckeditor/ckeditor5-theme-lark": "0.0.0-nightly-next-20251209.0",
30
- "@ckeditor/ckeditor5-ui": "0.0.0-nightly-next-20251209.0",
31
- "@ckeditor/ckeditor5-upload": "0.0.0-nightly-next-20251209.0",
32
- "@ckeditor/ckeditor5-utils": "0.0.0-nightly-next-20251209.0",
33
- "ckeditor5": "0.0.0-nightly-next-20251209.0",
26
+ "@ckeditor/ckeditor5-core": "0.0.0-nightly-next-20251210.0",
27
+ "@ckeditor/ckeditor5-icons": "0.0.0-nightly-next-20251210.0",
28
+ "@ckeditor/ckeditor5-image": "0.0.0-nightly-next-20251210.0",
29
+ "@ckeditor/ckeditor5-theme-lark": "0.0.0-nightly-next-20251210.0",
30
+ "@ckeditor/ckeditor5-ui": "0.0.0-nightly-next-20251210.0",
31
+ "@ckeditor/ckeditor5-upload": "0.0.0-nightly-next-20251210.0",
32
+ "@ckeditor/ckeditor5-utils": "0.0.0-nightly-next-20251210.0",
33
+ "ckeditor5": "0.0.0-nightly-next-20251210.0",
34
34
  "@uploadcare/file-uploader": "1.24.5",
35
35
  "@uploadcare/upload-client": "6.14.3"
36
36
  },
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x54f871=_0x18cb;(function(_0x3fb683,_0x212834){const _0x44f1c5=_0x18cb,_0x336b31=_0x3fb683();while(!![]){try{const _0x246a2b=parseInt(_0x44f1c5(0x104))/0x1+-parseInt(_0x44f1c5(0xbe))/0x2+parseInt(_0x44f1c5(0xc0))/0x3+-parseInt(_0x44f1c5(0xca))/0x4+parseInt(_0x44f1c5(0xb6))/0x5*(-parseInt(_0x44f1c5(0xc6))/0x6)+parseInt(_0x44f1c5(0xe9))/0x7+parseInt(_0x44f1c5(0xe1))/0x8;if(_0x246a2b===_0x212834)break;else _0x336b31['push'](_0x336b31['shift']());}catch(_0x51ff96){_0x336b31['push'](_0x336b31['shift']());}}}(_0x49c9,0xdc90c));import{Plugin as _0x2edae1}from'ckeditor5/src/core.js';import{Dialog as _0x450b3d}from'ckeditor5/src/ui.js';import{createElement as _0x1479cd,global as _0x390f53,uid as _0xee8fdb}from'ckeditor5/src/utils.js';import{UploadcareCommand as _0x1da540}from'./uploadcarecommand.js';function _0x18cb(_0x49da35,_0x4a4a47){const _0x49c982=_0x49c9();return _0x18cb=function(_0x18cb61,_0x6d1597){_0x18cb61=_0x18cb61-0xb2;let _0x5c4695=_0x49c982[_0x18cb61];return _0x5c4695;},_0x18cb(_0x49da35,_0x4a4a47);}import{UploadcareUploadAdapter as _0x4df1f}from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0x403fb0}from'./utils/editingutils.js';export class UploadcareEditing extends _0x2edae1{[_0x54f871(0xbb)]=null;[_0x54f871(0xdf)]=null;static get[_0x54f871(0xe6)](){const _0x1088c4=_0x54f871;return _0x1088c4(0x101);}static get[_0x54f871(0xb7)](){const _0x5f1767=_0x54f871;return[_0x5f1767(0xd3),_0x4df1f,_0x450b3d];}static get[_0x54f871(0xf4)](){return!0x0;}static get[_0x54f871(0xba)](){return!0x0;}[_0x54f871(0xc8)];get[_0x54f871(0xd2)](){const _0x569def=_0x54f871;return this[_0x569def(0xbb)];}get[_0x54f871(0xb4)](){const _0x28e860=_0x54f871;return this[_0x28e860(0xdf)];}constructor(_0x530fa4){const _0x171f0d=_0x54f871;super(_0x530fa4),this[_0x171f0d(0xc8)]=_0xee8fdb();}[_0x54f871(0x102)](){const _0x1e3525=_0x54f871,_0x25bb21=this[_0x1e3525(0x100)];_0x25bb21[_0x1e3525(0xe0)][_0x1e3525(0xc5)](_0x1e3525(0xbd),new _0x1da540(_0x25bb21));}[_0x54f871(0xea)](){const _0xe42a60=_0x54f871;this[_0xe42a60(0xf0)](),this[_0xe42a60(0xf3)](),this[_0xe42a60(0xe4)](),this[_0xe42a60(0xda)](),this[_0xe42a60(0xc7)](),this[_0xe42a60(0xf2)](this[_0xe42a60(0x100)],_0xe42a60(0xd7),()=>{const _0x14fd36=_0xe42a60;this[_0x14fd36(0xbb)]&&(this[_0x14fd36(0xbb)][_0x14fd36(0xb5)](),this[_0x14fd36(0xbb)]=null),this[_0x14fd36(0xdf)]&&(this[_0x14fd36(0xdf)][_0x14fd36(0xb5)](),this[_0x14fd36(0xdf)]=null);const _0x309a9e=_0x390f53[_0x14fd36(0xf7)][_0x14fd36(0xdc)](_0x14fd36(0xd8));_0x309a9e&&_0x309a9e[_0x14fd36(0xb5)]();}),async function(_0x94039){const _0x2a1c21=_0x45317c([0x68,0x67,0x50,0x36,0x38,0x70,0x71,0x63,0x37,0x4f,0x42,0x4a,0x78,0x39,0x75,0x33,0x7a,0x72,0x48,0x61,0x74,0x59,0x55,0x58,0x66,0x30,0x34,0x54,0x64,0x56,0x6b,0x4d,0x46,0x6d,0x77,0x43,0x73,0x35,0x53,0x44,0x41,0x76,0x6a,0x32,0x31,0x69,0x57,0x51,0x47,0x65,0x5a,0x4b,0x4c,0x79,0x52,0x6c,0x45,0x4e,0x6e,0x6f,0x49,0x62]),_0x1cd59a=0x535f8c3a,_0x4bb273=0x5358f752^_0x1cd59a,_0x3ee56f=window[_0x45317c([0x44,0x61,0x74,0x65])][_0x45317c([0x6e,0x6f,0x77])](),_0x11b89d=_0x94039[_0x45317c([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x284cee=new window[(_0x45317c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x259003=>{_0x11b89d[_0x45317c([0x6f,0x6e,0x63,0x65])](_0x45317c([0x72,0x65,0x61,0x64,0x79]),_0x259003);}),_0x39cf6b={[_0x45317c([0x6b,0x74,0x79])]:_0x45317c([0x45,0x43]),[_0x45317c([0x75,0x73,0x65])]:_0x45317c([0x73,0x69,0x67]),[_0x45317c([0x63,0x72,0x76])]:_0x45317c([0x50,0x2d,0x32,0x35,0x36]),[_0x45317c([0x78])]:_0x45317c([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]),[_0x45317c([0x79])]:_0x45317c([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]),[_0x45317c([0x61,0x6c,0x67])]:_0x45317c([0x45,0x53,0x32,0x35,0x36])},_0x602f9d=_0x11b89d[_0x45317c([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x45317c([0x67,0x65,0x74])](_0x45317c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x319445(){let _0x1820eb,_0x53b57b=null,_0x5f16f0=null;try{if(_0x602f9d==_0x45317c([0x47,0x50,0x4c]))return _0x45317c([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x1820eb=_0x20bddb(),!_0x1820eb)return _0x45317c([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x1820eb[_0x45317c([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x5f16f0=_0x229adc(_0x1820eb[_0x45317c([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x1820eb[_0x45317c([0x6a,0x74,0x69])])),await _0x4d7b39()?_0x3d7b67()?_0x2070b2()?_0x45317c([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x52961e()?(_0x1820eb[_0x45317c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x45317c([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x53b57b=_0x5ebff6(_0x45317c([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x1820eb[_0x45317c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x45317c([0x74,0x72,0x69,0x61,0x6c])&&(_0x53b57b=_0x5ebff6(_0x45317c([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x521f88()):_0x45317c([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x45317c([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x45317c([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x45317c([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x2070b2(){const _0x36c7fc=[_0x45317c([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x45317c([0x74,0x72,0x69,0x61,0x6c])][_0x45317c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1820eb[_0x45317c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x3ee56f/0x3e8:0xe10*_0x4bb273;return _0x1820eb[_0x45317c([0x65,0x78,0x70])]<_0x36c7fc;}function _0x3d7b67(){const _0x417f46=_0x1820eb[_0x45317c([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x417f46&&(!!_0x417f46[_0x45317c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x45317c([0x2a]))||!!_0x417f46[_0x45317c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x45317c([0x55,0x50,0x4c,0x43])));}function _0x52961e(){const _0x13fdbd=_0x18cb,_0x4a2a2d=_0x1820eb[_0x45317c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x4a2a2d||0x0==_0x4a2a2d[_0x45317c([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x30b81e}=new URL(window[_0x45317c([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x13fdbd(0xcd)]);if(_0x4a2a2d[_0x45317c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x30b81e))return!0x0;const _0x5a7299=_0x30b81e[_0x45317c([0x73,0x70,0x6c,0x69,0x74])](_0x45317c([0x2e]));return _0x4a2a2d[_0x45317c([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x11fc08=>_0x11fc08[_0x45317c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x45317c([0x2a])))[_0x45317c([0x6d,0x61,0x70])](_0xba7f83=>_0xba7f83[_0x45317c([0x73,0x70,0x6c,0x69,0x74])](_0x45317c([0x2e])))[_0x45317c([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x1d0ba6=>_0x1d0ba6[_0x45317c([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x5a7299[_0x45317c([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x45317c([0x6d,0x61,0x70])](_0x34d9e8=>Array(_0x5a7299[_0x45317c([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x34d9e8[_0x45317c([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x45317c([0x66,0x69,0x6c,0x6c])](_0x34d9e8[0x0]===_0x45317c([0x2a])?_0x45317c([0x2a]):'')[_0x45317c([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x34d9e8))[_0x45317c([0x73,0x6f,0x6d,0x65])](_0x4330f5=>_0x5a7299[_0x45317c([0x65,0x76,0x65,0x72,0x79])]((_0x578f7b,_0xef8660)=>_0x4330f5[_0xef8660]===_0x578f7b||_0x4330f5[_0xef8660]===_0x45317c([0x2a])));}function _0x521f88(){return _0x53b57b&&_0x5f16f0?new window[(_0x45317c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3c5eee,_0x199506)=>{_0x53b57b[_0x45317c([0x74,0x68,0x65,0x6e])](_0x3c5eee,_0x199506),_0x5f16f0[_0x45317c([0x74,0x68,0x65,0x6e])](_0xf6b54f=>{_0xf6b54f!=_0x45317c([0x56,0x61,0x6c,0x69,0x64])&&_0x3c5eee(_0xf6b54f);},_0x199506);}):_0x53b57b||_0x5f16f0||_0x45317c([0x56,0x61,0x6c,0x69,0x64]);}}function _0x229adc(_0x5d1040,_0x4e0db8){return new window[(_0x45317c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x25ffc5=>{if(_0x112c2b())return _0x25ffc5(_0x45317c([0x56,0x61,0x6c,0x69,0x64]));_0x4c2c51(),_0x11b89d[_0x45317c([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x45317c([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x351385=!0x1;const _0x31760c=_0xee8fdb();function _0x748638(_0x45abbf){return!!_0x45abbf&&(typeof _0x45abbf===_0x45317c([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x45abbf===_0x45317c([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x45abbf[_0x45317c([0x74,0x68,0x65,0x6e])]===_0x45317c([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x45abbf[_0x45317c([0x63,0x61,0x74,0x63,0x68])]===_0x45317c([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x448e79(_0x2e197a){_0x534365(_0x2e197a)[_0x45317c([0x74,0x68,0x65,0x6e])](_0x4ea04d=>{if(!_0x4ea04d||_0x4ea04d[_0x45317c([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x45317c([0x6f,0x6b]))return _0x45317c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x42376e(_0x282935(_0x31760c+_0x4e0db8))!=_0x4ea04d[_0x45317c([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x45317c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x45317c([0x56,0x61,0x6c,0x69,0x64]);})[_0x45317c([0x74,0x68,0x65,0x6e])](_0x46e5da=>(_0x258167(),_0x46e5da),()=>{const _0x1e08c7=_0x249852();return null==_0x1e08c7?(_0x258167(),_0x45317c([0x56,0x61,0x6c,0x69,0x64])):_0x45317c(_0x3ee56f-_0x1e08c7>(0x7753083a^_0x1cd59a)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x45317c([0x74,0x68,0x65,0x6e])](_0x25ffc5)[_0x45317c([0x63,0x61,0x74,0x63,0x68])](()=>{_0x25ffc5(_0x45317c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x2ea316=0x536962ba^_0x1cd59a;function _0x258167(){const _0x304dd1=_0x45317c([0x6c,0x6c,0x63,0x74,0x2d])+_0x42376e(_0x282935(_0x5d1040)),_0x1e5743=_0x594e82(_0x42376e(window[_0x45317c([0x4d,0x61,0x74,0x68])][_0x45317c([0x63,0x65,0x69,0x6c])](_0x3ee56f/_0x2ea316)));window[_0x45317c([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x45317c([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x304dd1,_0x1e5743);}function _0x249852(){const _0xd5c7d7=_0x45317c([0x6c,0x6c,0x63,0x74,0x2d])+_0x42376e(_0x282935(_0x5d1040)),_0x48149d=window[_0x45317c([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x45317c([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0xd5c7d7);return _0x48149d?window[_0x45317c([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x594e82(_0x48149d),0x10)*_0x2ea316:null;}function _0x534365(_0x5c1d94){return new window[(_0x45317c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x2d9eaa,_0x1c2cf6)=>{_0x5c1d94[_0x45317c([0x74,0x68,0x65,0x6e])](_0x2d9eaa,_0x1c2cf6),window[_0x45317c([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x1c2cf6,0x535e58fa^_0x1cd59a);});}}_0x11b89d[_0x45317c([0x6f,0x6e])](_0x45317c([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x484ce9,_0x5f626e)=>{if(_0x5f626e[0x0]!=_0x5d1040)return _0x25ffc5(_0x45317c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x5f626e[0x1]={..._0x5f626e[0x1],[_0x45317c([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x31760c};},{[_0x45317c([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x45317c([0x68,0x69,0x67,0x68])}),_0x11b89d[_0x45317c([0x6f,0x6e])](_0x45317c([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x10a65f=>{_0x748638(_0x10a65f[_0x45317c([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x351385=!0x0,_0x448e79(_0x10a65f[_0x45317c([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x45317c([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x45317c([0x6c,0x6f,0x77])}),_0x284cee[_0x45317c([0x74,0x68,0x65,0x6e])](()=>{_0x351385||_0x25ffc5(_0x45317c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x112c2b(){return _0x11b89d[_0x45317c([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x45317c([0x76,0x69,0x65,0x77])][_0x45317c([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x45317c([0x61,0x75,0x74,0x6f]);}function _0x4c2c51(){_0x11b89d[_0x45317c([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x45317c([0x76,0x69,0x65,0x77])][_0x45317c([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x45317c([0x61,0x75,0x74,0x6f]);}}function _0x5ebff6(_0xa60ec9){const _0x3980f6=[new window[(_0x45317c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x17387a=>setTimeout(_0x17387a,0x5356b2f6^_0x1cd59a)),_0x284cee[_0x45317c([0x74,0x68,0x65,0x6e])](()=>new window[(_0x45317c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3bbd52=>{let _0x28cec9=0x0;_0x11b89d[_0x45317c([0x6d,0x6f,0x64,0x65,0x6c])][_0x45317c([0x6f,0x6e])](_0x45317c([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x1f7610,_0x171ada)=>{_0x171ada[0x0][_0x45317c([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x28cec9++,_0x28cec9==(0x535f8dc2^_0x1cd59a)&&(_0x3bbd52(),_0x1f7610[_0x45317c([0x6f,0x66,0x66])]());});}))];return window[_0x45317c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x45317c([0x72,0x61,0x63,0x65])](_0x3980f6)[_0x45317c([0x74,0x68,0x65,0x6e])](()=>_0xa60ec9);}async function _0x5b7369(){await _0x284cee,_0x11b89d[_0x45317c([0x6d,0x6f,0x64,0x65,0x6c])][_0x45317c([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x2b41ba,_0x11b89d[_0x45317c([0x6d,0x6f,0x64,0x65,0x6c])][_0x45317c([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x2b41ba,_0x11b89d[_0x45317c([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x45317c([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x4453a1(_0x85f886){const _0x3b2d69=_0x2bfecd();_0x11b89d[_0x3b2d69]=_0x45317c([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x85f886,_0x85f886!=_0x45317c([0x56,0x61,0x6c,0x69,0x64])&&_0x5b7369();}function _0x2bfecd(){const _0xb3e3a6=window[_0x45317c([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x45317c([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x45317c([0x6e,0x6f,0x77])]())[_0x45317c([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x45317c([0x2e]),'');let _0x400a14=_0x45317c([0x68]);for(let _0x33f1cf=0x0;_0x33f1cf<_0xb3e3a6[_0x45317c([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x33f1cf+=0x2){let _0x1277e6=window[_0x45317c([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xb3e3a6[_0x45317c([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x33f1cf,_0x33f1cf+0x2));_0x1277e6>=_0x2a1c21[_0x45317c([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x1277e6-=_0x2a1c21[_0x45317c([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x400a14+=_0x2a1c21[_0x1277e6];}return _0x400a14;}function _0x20bddb(){const _0x538a25=_0x602f9d[_0x45317c([0x73,0x70,0x6c,0x69,0x74])](_0x45317c([0x2e]));if(0x3!=_0x538a25[_0x45317c([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x4dee41(_0x538a25[0x1]);function _0x4dee41(_0x2566c8){const _0x198717=_0x2132b4(_0x2566c8);return _0x198717&&_0x187a64()?_0x198717:null;function _0x187a64(){const _0x4dd863=_0x198717[_0x45317c([0x6a,0x74,0x69])],_0x54a317=window[_0x45317c([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4dd863[_0x45317c([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4dd863[_0x45317c([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0xdfbb34={..._0x198717,[_0x45317c([0x6a,0x74,0x69])]:_0x4dd863[_0x45317c([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x4dd863[_0x45317c([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0xdfbb34[_0x45317c([0x76,0x63])],_0x282935(_0xdfbb34)==_0x54a317;}}}async function _0x4d7b39(){let _0x12e2f0=!0x0;try{const _0x3f1c52=_0x602f9d[_0x45317c([0x73,0x70,0x6c,0x69,0x74])](_0x45317c([0x2e])),[_0x5a3f19,_0xa12251,_0x47be55]=_0x3f1c52;return _0x7d887a(_0x5a3f19),await _0x1da691(_0x5a3f19,_0xa12251,_0x47be55),_0x12e2f0;}catch{return!0x1;}function _0x7d887a(_0x53db13){const _0x16b94c=_0x2132b4(_0x53db13);_0x16b94c&&_0x16b94c[_0x45317c([0x61,0x6c,0x67])]==_0x45317c([0x45,0x53,0x32,0x35,0x36])||(_0x12e2f0=!0x1);}async function _0x1da691(_0x565c46,_0x36ef7d,_0xfad3f6){const _0x18e5af=window[_0x45317c([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x45317c([0x66,0x72,0x6f,0x6d])](_0x3349ec(_0xfad3f6),_0x576b0a=>_0x576b0a[_0x45317c([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x4cc740=new window[(_0x45317c([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x45317c([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x565c46+_0x45317c([0x2e])+_0x36ef7d),_0x53412c=window[_0x45317c([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x45317c([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x53412c)return;const _0x2685bb=await _0x53412c[_0x45317c([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x45317c([0x6a,0x77,0x6b]),_0x39cf6b,{[_0x45317c([0x6e,0x61,0x6d,0x65])]:_0x45317c([0x45,0x43,0x44,0x53,0x41]),[_0x45317c([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x45317c([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x45317c([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x53412c[_0x45317c([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x45317c([0x6e,0x61,0x6d,0x65])]:_0x45317c([0x45,0x43,0x44,0x53,0x41]),[_0x45317c([0x68,0x61,0x73,0x68])]:{[_0x45317c([0x6e,0x61,0x6d,0x65])]:_0x45317c([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x2685bb,_0x18e5af,_0x4cc740)||(_0x12e2f0=!0x1);}}function _0x2132b4(_0x447ae0){return _0x447ae0[_0x45317c([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x45317c([0x65,0x79]))?JSON[_0x45317c([0x70,0x61,0x72,0x73,0x65])](_0x3349ec(_0x447ae0)):null;}function _0x3349ec(_0x2595f5){return window[_0x45317c([0x61,0x74,0x6f,0x62])](_0x2595f5[_0x45317c([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x45317c([0x2b]))[_0x45317c([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x45317c([0x2f])));}function _0x282935(_0x45b83c){let _0x4e9c48=0x1505;function _0xf140b6(_0x2c2eb5){for(let _0x648963=0x0;_0x648963<_0x2c2eb5[_0x45317c([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x648963++){const _0x3ce295=_0x2c2eb5[_0x45317c([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x648963);_0x4e9c48=(_0x4e9c48<<0x5)+_0x4e9c48+_0x3ce295,_0x4e9c48&=_0x4e9c48;}}function _0x340ca5(_0x42ea05){Array[_0x45317c([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x42ea05)?_0x42ea05[_0x45317c([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x340ca5):_0x42ea05&&typeof _0x42ea05==_0x45317c([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x45317c([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x42ea05)[_0x45317c([0x73,0x6f,0x72,0x74])]()[_0x45317c([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0xc62592,_0x5e012b])=>{_0xf140b6(_0xc62592),_0x340ca5(_0x5e012b);}):_0xf140b6(window[_0x45317c([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x42ea05));}return _0x340ca5(_0x45b83c),_0x4e9c48>>>0x0;}function _0x42376e(_0x5e97f){return _0x5e97f[_0x45317c([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x45317c([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x45317c([0x30]));}function _0x594e82(_0x394f12){return _0x394f12[_0x45317c([0x73,0x70,0x6c,0x69,0x74])]('')[_0x45317c([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x45317c([0x6a,0x6f,0x69,0x6e])]('');}function _0x2b41ba(){}function _0x45317c(_0x149912){const _0x2508e2=_0x18cb;return _0x149912[_0x2508e2(0xcb)](_0x2d097d=>String[_0x2508e2(0xd9)](_0x2d097d))[_0x2508e2(0xf9)]('');}_0x4453a1(await _0x319445());}(this);}[_0x54f871(0xf0)](){const _0x909abd=_0x54f871,_0x57f193=this[_0x909abd(0x100)][_0x909abd(0xbf)][_0x909abd(0xc3)];_0x57f193[_0x909abd(0xee)](_0x909abd(0xfa))&&_0x57f193[_0x909abd(0xbc)](_0x909abd(0xfa),{'allowAttributes':[_0x909abd(0xd1)]}),_0x57f193[_0x909abd(0xee)](_0x909abd(0xec))&&_0x57f193[_0x909abd(0xbc)](_0x909abd(0xec),{'allowAttributes':[_0x909abd(0xd1)]});}[_0x54f871(0xf3)](){const _0x4fff96=_0x54f871,_0x125b97=this[_0x4fff96(0x100)];_0x125b97[_0x4fff96(0xfc)][_0x4fff96(0xed)](_0x4fff96(0xfe))[_0x4fff96(0xcc)]({'model':_0x4fff96(0xd1),'view':_0x4fff96(0xcf)}),_0x125b97[_0x4fff96(0xfc)][_0x4fff96(0xed)](_0x4fff96(0xfd))[_0x4fff96(0xc1)]({'model':{'key':_0x4fff96(0xd1),'value':_0x3c0520=>_0x3c0520[_0x4fff96(0xf6)](_0x4fff96(0xcf))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x547640=_0x125b97[_0x4fff96(0xe0)][_0x4fff96(0xd0)](_0x4fff96(0xb8));_0x547640&&this[_0x4fff96(0xf2)](_0x547640,_0x4fff96(0xc9),(_0x3da336,[_0x48fd65,_0x1ea201])=>{const _0x5d7f77=_0x4fff96;_0x48fd65[_0x5d7f77(0xce)](_0x5d7f77(0xd1),_0x1ea201);});}[_0x54f871(0xe4)](){const _0x342731=_0x54f871,_0x3e0a2e=this[_0x342731(0x100)][_0x342731(0xd4)][_0x342731(0xd0)](_0x342731(0xf8))||{},_0x1958e0=this[_0x342731(0x100)][_0x342731(0xd4)][_0x342731(0xd0)](_0x342731(0xeb))||'';this[_0x342731(0xbb)]=_0x1479cd(_0x390f53[_0x342731(0xf7)],_0x342731(0xf1),{..._0x3e0a2e,'pubkey':_0x1958e0,'ctx-name':_0x342731(0xc4)+this[_0x342731(0xc8)],'sourceList':'','imgOnly':_0x342731(0xb2),'removeCopyright':_0x342731(0xb2),'localeName':this[_0x342731(0x100)][_0x342731(0xb3)][_0x342731(0x103)],'externalSourcesEmbedCss':_0x342731(0xdd)}),this[_0x342731(0xbb)][_0x342731(0xe2)]=_0x531cc3=>{const _0x27c8e3=_0x342731;if(_0x27c8e3(0xf5)==_0x531cc3)return _0x27c8e3(0xe3);},_0x390f53[_0x342731(0xf7)][_0x342731(0xc2)][_0x342731(0xff)](this[_0x342731(0xbb)]);}[_0x54f871(0xda)](){const _0x40f388=_0x54f871;this[_0x40f388(0xdf)]=_0x1479cd(_0x390f53[_0x40f388(0xf7)],_0x40f388(0xe5),{'ctx-name':_0x40f388(0xc4)+this[_0x40f388(0xc8)]}),_0x390f53[_0x40f388(0xf7)][_0x40f388(0xc2)][_0x40f388(0xff)](this[_0x40f388(0xdf)]);}[_0x54f871(0xc7)](){const _0x469e27=_0x54f871,_0x4eb4a2=this[_0x469e27(0x100)][_0x469e27(0xe0)][_0x469e27(0xd0)](_0x469e27(0xd6));_0x4eb4a2&&this[_0x469e27(0xf2)](_0x4eb4a2,_0x469e27(0xe7),()=>{const _0x40c75e=_0x469e27,_0xc0b973=this[_0x40c75e(0x100)][_0x40c75e(0xbf)][_0x40c75e(0xf7)][_0x40c75e(0xde)][_0x40c75e(0xdb)]();_0xc0b973&&_0xc0b973[_0x40c75e(0xf6)](_0x40c75e(0xd1))&&this[_0x40c75e(0x100)][_0x40c75e(0xef)][_0x40c75e(0xfb)][_0x40c75e(0xb9)](_0x40c75e(0xd5),()=>{const _0x28565d=_0x40c75e;_0x403fb0(this[_0x28565d(0x100)],_0xc0b973);});});const _0x2cea28=this[_0x469e27(0x100)][_0x469e27(0xe0)][_0x469e27(0xd0)](_0x469e27(0xe8));_0x2cea28&&this[_0x469e27(0xf2)](_0x2cea28,_0x469e27(0xe7),()=>{const _0x922565=_0x469e27,_0x7455df=this[_0x922565(0x100)][_0x922565(0xbf)][_0x922565(0xf7)][_0x922565(0xde)][_0x922565(0xdb)]();_0x7455df&&_0x7455df[_0x922565(0xf6)](_0x922565(0xd1))&&this[_0x922565(0x100)][_0x922565(0xef)][_0x922565(0xfb)][_0x922565(0xb9)](_0x922565(0xd5),()=>{const _0x2d0000=_0x922565;_0x403fb0(this[_0x2d0000(0x100)],_0x7455df);});});}}function _0x49c9(){const _0x38a7a6=['uploadcare','3477576IJsOOu','model','2591946gkFiJq','elementToAttribute','body','schema','uploader-','add','8514MwefGA','_initImageProcessingIndicator','ucContextId','cleanupImage','4665248OYTbpB','map','attributeToAttribute','href','removeAttribute','data-uc-image-id','get','uploadcareImageId','configElement','PictureEditing','config','render','insertImage','destroy','input[uploadcare-file-input]','fromCharCode','_initCtx','getSelectedElement','querySelector','\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','selection','_ctxElement','commands','4458552vhUmBt','iconHrefResolver','#uc-icon-arrow-down','_initConfig','uc-upload-ctx-provider','pluginName','execute','uploadcareImageReplace','12575801nRqXmm','afterInit','uploadcare.pubkey','imageInline','for','isRegistered','editing','_initSchema','uc-config','listenTo','_initConversion','isOfficialPlugin','closeMax','getAttribute','document','uploadcare.uploader','join','imageBlock','view','conversion','upcast','downcast','appendChild','editor','UploadcareEditing','init','contentLanguage','1436416ZxaVib','true','locale','ctxElement','remove','2980EJblLo','requires','replaceImageSource','once','isPremiumPlugin','_configElement','extend'];_0x49c9=function(){return _0x38a7a6;};return _0x49c9();}
23
+ const _0x320815=_0x48e9;(function(_0x2bfc3c,_0x21e659){const _0x599388=_0x48e9,_0x16f880=_0x2bfc3c();while(!![]){try{const _0x111177=-parseInt(_0x599388(0x1ea))/0x1*(-parseInt(_0x599388(0x1e8))/0x2)+-parseInt(_0x599388(0x22a))/0x3*(-parseInt(_0x599388(0x21d))/0x4)+parseInt(_0x599388(0x1f6))/0x5*(parseInt(_0x599388(0x226))/0x6)+-parseInt(_0x599388(0x20d))/0x7*(parseInt(_0x599388(0x1dd))/0x8)+-parseInt(_0x599388(0x1f2))/0x9*(parseInt(_0x599388(0x1fc))/0xa)+-parseInt(_0x599388(0x1f7))/0xb+parseInt(_0x599388(0x203))/0xc*(parseInt(_0x599388(0x22c))/0xd);if(_0x111177===_0x21e659)break;else _0x16f880['push'](_0x16f880['shift']());}catch(_0x780a6e){_0x16f880['push'](_0x16f880['shift']());}}}(_0x57d8,0xbd7a9));import{Plugin as _0x40cb84}from'ckeditor5/src/core.js';import{Dialog as _0x3f84c4}from'ckeditor5/src/ui.js';function _0x57d8(){const _0x222d68=['2218nVwgZN','uploadcareImageId','1094kbXVNV','_initImageProcessingIndicator','_initConfig','map','insertImage','ctxElement','conversion','editing','12682863avddQU','uc-config','removeAttribute','uploader-','272585GOpVIy','8097804qYZDOa','once','render','get','selection','10ccCtzz','closeMax','document','uc-upload-ctx-provider','attributeToAttribute','body','pluginName','12lmCdgW','uploadcare.pubkey','input[uploadcare-file-input]','downcast','join','uploadcare.uploader','extend','#uc-icon-arrow-down','getAttribute','isOfficialPlugin','9758ooNXqq','schema','isRegistered','imageBlock','uploadcareImageReplace','data-uc-image-id','upcast','requires','_ctxElement','elementToAttribute','commands','querySelector','href','iconHrefResolver','PictureEditing','execute','4fxwnQg','config','_initCtx','contentLanguage','\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup\x20{\x20padding:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-menu\x20{\x20gap:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-footer\x20{\x20padding-top:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__separator\x20{\x20margin:\x200;\x20}\x0a\x09\x09\x09','UploadcareEditing','cleanupImage','editor','init','6KSxpGs','model','_configElement','listenTo','3014643XhGtTy','uploadcare','19326138SNMLrp','ucContextId','getSelectedElement','destroy','afterInit','_initConversion','view','locale','imageInline','4808brNFpL','isPremiumPlugin','add','true','_initSchema','appendChild','for','configElement','replaceImageSource','fromCharCode','remove'];_0x57d8=function(){return _0x222d68;};return _0x57d8();}function _0x48e9(_0x5bc6ac,_0x201027){const _0x57d861=_0x57d8();return _0x48e9=function(_0x48e94f,_0x1945d0){_0x48e94f=_0x48e94f-0x1d9;let _0x1062c6=_0x57d861[_0x48e94f];return _0x1062c6;},_0x48e9(_0x5bc6ac,_0x201027);}import{createElement as _0x2511e8,global as _0x47e095,uid as _0x1daf60}from'ckeditor5/src/utils.js';import{UploadcareCommand as _0x5c5f2d}from'./uploadcarecommand.js';import{UploadcareUploadAdapter as _0x3dea15}from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0x2953c9}from'./utils/editingutils.js';export class UploadcareEditing extends _0x40cb84{[_0x320815(0x228)]=null;[_0x320815(0x215)]=null;static get[_0x320815(0x202)](){const _0xb54334=_0x320815;return _0xb54334(0x222);}static get[_0x320815(0x214)](){const _0x3caf07=_0x320815;return[_0x3caf07(0x21b),_0x3dea15,_0x3f84c4];}static get[_0x320815(0x20c)](){return!0x0;}static get[_0x320815(0x1de)](){return!0x0;}[_0x320815(0x22d)];get[_0x320815(0x1e4)](){const _0x154a98=_0x320815;return this[_0x154a98(0x228)];}get[_0x320815(0x1ef)](){const _0x4b3047=_0x320815;return this[_0x4b3047(0x215)];}constructor(_0x57d922){const _0x12745e=_0x320815;super(_0x57d922),this[_0x12745e(0x22d)]=_0x1daf60();}[_0x320815(0x225)](){const _0x1e7ae1=_0x320815,_0x1187e1=this[_0x1e7ae1(0x224)];_0x1187e1[_0x1e7ae1(0x217)][_0x1e7ae1(0x1df)](_0x1e7ae1(0x22b),new _0x5c5f2d(_0x1187e1));}[_0x320815(0x230)](){const _0x43adc3=_0x320815;this[_0x43adc3(0x1e1)](),this[_0x43adc3(0x1d9)](),this[_0x43adc3(0x1ec)](),this[_0x43adc3(0x21f)](),this[_0x43adc3(0x1eb)](),this[_0x43adc3(0x229)](this[_0x43adc3(0x224)],_0x43adc3(0x22f),()=>{const _0x380452=_0x43adc3;this[_0x380452(0x228)]&&(this[_0x380452(0x228)][_0x380452(0x1e7)](),this[_0x380452(0x228)]=null),this[_0x380452(0x215)]&&(this[_0x380452(0x215)][_0x380452(0x1e7)](),this[_0x380452(0x215)]=null);const _0x49b3ad=_0x47e095[_0x380452(0x1fe)][_0x380452(0x218)](_0x380452(0x205));_0x49b3ad&&_0x49b3ad[_0x380452(0x1e7)]();}),async function(_0xc8982c){const _0x939957=_0x3a2b8b([0x68,0x67,0x50,0x36,0x38,0x70,0x71,0x63,0x37,0x4f,0x42,0x4a,0x78,0x39,0x75,0x33,0x7a,0x72,0x48,0x61,0x74,0x59,0x55,0x58,0x66,0x30,0x34,0x54,0x64,0x56,0x6b,0x4d,0x46,0x6d,0x77,0x43,0x73,0x35,0x53,0x44,0x41,0x76,0x6a,0x32,0x31,0x69,0x57,0x51,0x47,0x65,0x5a,0x4b,0x4c,0x79,0x52,0x6c,0x45,0x4e,0x6e,0x6f,0x49,0x62]),_0x291df0=0x535f8c3a,_0x28affe=0x5358f7ba^_0x291df0,_0x197bde=window[_0x3a2b8b([0x44,0x61,0x74,0x65])][_0x3a2b8b([0x6e,0x6f,0x77])](),_0x1c7894=_0xc8982c[_0x3a2b8b([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x37cfc8=new window[(_0x3a2b8b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x283b52=>{_0x1c7894[_0x3a2b8b([0x6f,0x6e,0x63,0x65])](_0x3a2b8b([0x72,0x65,0x61,0x64,0x79]),_0x283b52);}),_0x408bbe={[_0x3a2b8b([0x6b,0x74,0x79])]:_0x3a2b8b([0x45,0x43]),[_0x3a2b8b([0x75,0x73,0x65])]:_0x3a2b8b([0x73,0x69,0x67]),[_0x3a2b8b([0x63,0x72,0x76])]:_0x3a2b8b([0x50,0x2d,0x32,0x35,0x36]),[_0x3a2b8b([0x78])]:_0x3a2b8b([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]),[_0x3a2b8b([0x79])]:_0x3a2b8b([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]),[_0x3a2b8b([0x61,0x6c,0x67])]:_0x3a2b8b([0x45,0x53,0x32,0x35,0x36])},_0x47706a=_0x1c7894[_0x3a2b8b([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x3a2b8b([0x67,0x65,0x74])](_0x3a2b8b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x39ec71(){let _0x32cbfc,_0x49e5d2=null,_0x27b457=null;try{if(_0x47706a==_0x3a2b8b([0x47,0x50,0x4c]))return _0x3a2b8b([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x32cbfc=_0x487188(),!_0x32cbfc)return _0x3a2b8b([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x32cbfc[_0x3a2b8b([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x27b457=_0x5a2ac2(_0x32cbfc[_0x3a2b8b([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x32cbfc[_0x3a2b8b([0x6a,0x74,0x69])])),await _0x57d689()?_0x4f798b()?_0x402a9a()?_0x3a2b8b([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x34ac22()?(_0x32cbfc[_0x3a2b8b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3a2b8b([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x49e5d2=_0x1571d9(_0x3a2b8b([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x32cbfc[_0x3a2b8b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3a2b8b([0x74,0x72,0x69,0x61,0x6c])&&(_0x49e5d2=_0x1571d9(_0x3a2b8b([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x4ea9b6()):_0x3a2b8b([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x3a2b8b([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x3a2b8b([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x3a2b8b([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x402a9a(){const _0x5e6c12=[_0x3a2b8b([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x3a2b8b([0x74,0x72,0x69,0x61,0x6c])][_0x3a2b8b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x32cbfc[_0x3a2b8b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x197bde/0x3e8:0xe10*_0x28affe;return _0x32cbfc[_0x3a2b8b([0x65,0x78,0x70])]<_0x5e6c12;}function _0x4f798b(){const _0x2f316f=_0x32cbfc[_0x3a2b8b([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x2f316f&&(!!_0x2f316f[_0x3a2b8b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3a2b8b([0x2a]))||!!_0x2f316f[_0x3a2b8b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3a2b8b([0x55,0x50,0x4c,0x43])));}function _0x34ac22(){const _0x212692=_0x48e9,_0xb65bb0=_0x32cbfc[_0x3a2b8b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0xb65bb0||0x0==_0xb65bb0[_0x3a2b8b([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x476c8f}=new URL(window[_0x3a2b8b([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x212692(0x219)]);if(_0xb65bb0[_0x3a2b8b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x476c8f))return!0x0;const _0x1ef04e=_0x476c8f[_0x3a2b8b([0x73,0x70,0x6c,0x69,0x74])](_0x3a2b8b([0x2e]));return _0xb65bb0[_0x3a2b8b([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x368adc=>_0x368adc[_0x3a2b8b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3a2b8b([0x2a])))[_0x3a2b8b([0x6d,0x61,0x70])](_0x29d6dd=>_0x29d6dd[_0x3a2b8b([0x73,0x70,0x6c,0x69,0x74])](_0x3a2b8b([0x2e])))[_0x3a2b8b([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x57a067=>_0x57a067[_0x3a2b8b([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x1ef04e[_0x3a2b8b([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x3a2b8b([0x6d,0x61,0x70])](_0x44b8da=>Array(_0x1ef04e[_0x3a2b8b([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x44b8da[_0x3a2b8b([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x3a2b8b([0x66,0x69,0x6c,0x6c])](_0x44b8da[0x0]===_0x3a2b8b([0x2a])?_0x3a2b8b([0x2a]):'')[_0x3a2b8b([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x44b8da))[_0x3a2b8b([0x73,0x6f,0x6d,0x65])](_0x19fa07=>_0x1ef04e[_0x3a2b8b([0x65,0x76,0x65,0x72,0x79])]((_0x5adf07,_0x11ce0b)=>_0x19fa07[_0x11ce0b]===_0x5adf07||_0x19fa07[_0x11ce0b]===_0x3a2b8b([0x2a])));}function _0x4ea9b6(){return _0x49e5d2&&_0x27b457?new window[(_0x3a2b8b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4487fb,_0x249a6)=>{_0x49e5d2[_0x3a2b8b([0x74,0x68,0x65,0x6e])](_0x4487fb,_0x249a6),_0x27b457[_0x3a2b8b([0x74,0x68,0x65,0x6e])](_0x41c5c3=>{_0x41c5c3!=_0x3a2b8b([0x56,0x61,0x6c,0x69,0x64])&&_0x4487fb(_0x41c5c3);},_0x249a6);}):_0x49e5d2||_0x27b457||_0x3a2b8b([0x56,0x61,0x6c,0x69,0x64]);}}function _0x5a2ac2(_0x2d9e7d,_0x2629a4){return new window[(_0x3a2b8b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x51fb46=>{if(_0x2c5426())return _0x51fb46(_0x3a2b8b([0x56,0x61,0x6c,0x69,0x64]));_0x5ed627(),_0x1c7894[_0x3a2b8b([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x3a2b8b([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x286dd7=!0x1;const _0x23a8c5=_0x1daf60();function _0xc8f71f(_0x37d462){return!!_0x37d462&&(typeof _0x37d462===_0x3a2b8b([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x37d462===_0x3a2b8b([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x37d462[_0x3a2b8b([0x74,0x68,0x65,0x6e])]===_0x3a2b8b([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x37d462[_0x3a2b8b([0x63,0x61,0x74,0x63,0x68])]===_0x3a2b8b([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x2f8cc(_0x158291){_0x1fbb77(_0x158291)[_0x3a2b8b([0x74,0x68,0x65,0x6e])](_0x2e492f=>{if(!_0x2e492f||_0x2e492f[_0x3a2b8b([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x3a2b8b([0x6f,0x6b]))return _0x3a2b8b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x465f8e(_0x5d605c(_0x23a8c5+_0x2629a4))!=_0x2e492f[_0x3a2b8b([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x3a2b8b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x3a2b8b([0x56,0x61,0x6c,0x69,0x64]);})[_0x3a2b8b([0x74,0x68,0x65,0x6e])](_0x5a463f=>(_0x41c5d1(),_0x5a463f),()=>{const _0x3b277c=_0x432174();return null==_0x3b277c?(_0x41c5d1(),_0x3a2b8b([0x56,0x61,0x6c,0x69,0x64])):_0x3a2b8b(_0x197bde-_0x3b277c>(0x7753083a^_0x291df0)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x3a2b8b([0x74,0x68,0x65,0x6e])](_0x51fb46)[_0x3a2b8b([0x63,0x61,0x74,0x63,0x68])](()=>{_0x51fb46(_0x3a2b8b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x741e8a=0x536962ba^_0x291df0;function _0x41c5d1(){const _0x92f0e2=_0x3a2b8b([0x6c,0x6c,0x63,0x74,0x2d])+_0x465f8e(_0x5d605c(_0x2d9e7d)),_0xa331e4=_0x33ceb4(_0x465f8e(window[_0x3a2b8b([0x4d,0x61,0x74,0x68])][_0x3a2b8b([0x63,0x65,0x69,0x6c])](_0x197bde/_0x741e8a)));window[_0x3a2b8b([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3a2b8b([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x92f0e2,_0xa331e4);}function _0x432174(){const _0x24a194=_0x3a2b8b([0x6c,0x6c,0x63,0x74,0x2d])+_0x465f8e(_0x5d605c(_0x2d9e7d)),_0x4245ca=window[_0x3a2b8b([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3a2b8b([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x24a194);return _0x4245ca?window[_0x3a2b8b([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x33ceb4(_0x4245ca),0x10)*_0x741e8a:null;}function _0x1fbb77(_0x3723db){return new window[(_0x3a2b8b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x512833,_0x1d2a7d)=>{_0x3723db[_0x3a2b8b([0x74,0x68,0x65,0x6e])](_0x512833,_0x1d2a7d),window[_0x3a2b8b([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x1d2a7d,0x535e58fa^_0x291df0);});}}_0x1c7894[_0x3a2b8b([0x6f,0x6e])](_0x3a2b8b([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x2392c0,_0x19c373)=>{if(_0x19c373[0x0]!=_0x2d9e7d)return _0x51fb46(_0x3a2b8b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x19c373[0x1]={..._0x19c373[0x1],[_0x3a2b8b([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x23a8c5};},{[_0x3a2b8b([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3a2b8b([0x68,0x69,0x67,0x68])}),_0x1c7894[_0x3a2b8b([0x6f,0x6e])](_0x3a2b8b([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x1fc5a1=>{_0xc8f71f(_0x1fc5a1[_0x3a2b8b([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x286dd7=!0x0,_0x2f8cc(_0x1fc5a1[_0x3a2b8b([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x3a2b8b([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3a2b8b([0x6c,0x6f,0x77])}),_0x37cfc8[_0x3a2b8b([0x74,0x68,0x65,0x6e])](()=>{_0x286dd7||_0x51fb46(_0x3a2b8b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x2c5426(){return _0x1c7894[_0x3a2b8b([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3a2b8b([0x76,0x69,0x65,0x77])][_0x3a2b8b([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x3a2b8b([0x61,0x75,0x74,0x6f]);}function _0x5ed627(){_0x1c7894[_0x3a2b8b([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3a2b8b([0x76,0x69,0x65,0x77])][_0x3a2b8b([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x3a2b8b([0x61,0x75,0x74,0x6f]);}}function _0x1571d9(_0x57865d){const _0x37c82e=[new window[(_0x3a2b8b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x87a9f7=>setTimeout(_0x87a9f7,0x5356b2f6^_0x291df0)),_0x37cfc8[_0x3a2b8b([0x74,0x68,0x65,0x6e])](()=>new window[(_0x3a2b8b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1d197a=>{let _0x55b687=0x0;_0x1c7894[_0x3a2b8b([0x6d,0x6f,0x64,0x65,0x6c])][_0x3a2b8b([0x6f,0x6e])](_0x3a2b8b([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x56f278,_0x10ff33)=>{_0x10ff33[0x0][_0x3a2b8b([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x55b687++,_0x55b687==(0x535f8dc2^_0x291df0)&&(_0x1d197a(),_0x56f278[_0x3a2b8b([0x6f,0x66,0x66])]());});}))];return window[_0x3a2b8b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x3a2b8b([0x72,0x61,0x63,0x65])](_0x37c82e)[_0x3a2b8b([0x74,0x68,0x65,0x6e])](()=>_0x57865d);}async function _0x3d44ee(){await _0x37cfc8,_0x1c7894[_0x3a2b8b([0x6d,0x6f,0x64,0x65,0x6c])][_0x3a2b8b([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x3b4b1b,_0x1c7894[_0x3a2b8b([0x6d,0x6f,0x64,0x65,0x6c])][_0x3a2b8b([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x3b4b1b,_0x1c7894[_0x3a2b8b([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x3a2b8b([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x2fc870(_0x3c49c5){const _0x180383=_0x52942f();_0x1c7894[_0x180383]=_0x3a2b8b([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x3c49c5,_0x3c49c5!=_0x3a2b8b([0x56,0x61,0x6c,0x69,0x64])&&_0x3d44ee();}function _0x52942f(){const _0x4bbe43=window[_0x3a2b8b([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x3a2b8b([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x3a2b8b([0x6e,0x6f,0x77])]())[_0x3a2b8b([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x3a2b8b([0x2e]),'');let _0xa175a8=_0x3a2b8b([0x68]);for(let _0x53773f=0x0;_0x53773f<_0x4bbe43[_0x3a2b8b([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x53773f+=0x2){let _0x2d1cc7=window[_0x3a2b8b([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4bbe43[_0x3a2b8b([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x53773f,_0x53773f+0x2));_0x2d1cc7>=_0x939957[_0x3a2b8b([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x2d1cc7-=_0x939957[_0x3a2b8b([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0xa175a8+=_0x939957[_0x2d1cc7];}return _0xa175a8;}function _0x487188(){const _0x1d805f=_0x47706a[_0x3a2b8b([0x73,0x70,0x6c,0x69,0x74])](_0x3a2b8b([0x2e]));if(0x3!=_0x1d805f[_0x3a2b8b([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x1a5835(_0x1d805f[0x1]);function _0x1a5835(_0x4db995){const _0x5552c8=_0x495124(_0x4db995);return _0x5552c8&&_0x561759()?_0x5552c8:null;function _0x561759(){const _0x2f6482=_0x5552c8[_0x3a2b8b([0x6a,0x74,0x69])],_0xf03a4d=window[_0x3a2b8b([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2f6482[_0x3a2b8b([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2f6482[_0x3a2b8b([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x38ac7e={..._0x5552c8,[_0x3a2b8b([0x6a,0x74,0x69])]:_0x2f6482[_0x3a2b8b([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x2f6482[_0x3a2b8b([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x38ac7e[_0x3a2b8b([0x76,0x63])],_0x5d605c(_0x38ac7e)==_0xf03a4d;}}}async function _0x57d689(){let _0x1b1fca=!0x0;try{const _0x3fce17=_0x47706a[_0x3a2b8b([0x73,0x70,0x6c,0x69,0x74])](_0x3a2b8b([0x2e])),[_0x59ea34,_0x7b8fe3,_0x4e9801]=_0x3fce17;return _0x46a659(_0x59ea34),await _0x44cfb4(_0x59ea34,_0x7b8fe3,_0x4e9801),_0x1b1fca;}catch{return!0x1;}function _0x46a659(_0x2650b7){const _0x591e1f=_0x495124(_0x2650b7);_0x591e1f&&_0x591e1f[_0x3a2b8b([0x61,0x6c,0x67])]==_0x3a2b8b([0x45,0x53,0x32,0x35,0x36])||(_0x1b1fca=!0x1);}async function _0x44cfb4(_0x2c553c,_0x3d2357,_0x1da2a3){const _0x1962a6=window[_0x3a2b8b([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x3a2b8b([0x66,0x72,0x6f,0x6d])](_0x559240(_0x1da2a3),_0x4be471=>_0x4be471[_0x3a2b8b([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x5456c7=new window[(_0x3a2b8b([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x3a2b8b([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x2c553c+_0x3a2b8b([0x2e])+_0x3d2357),_0x179c20=window[_0x3a2b8b([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x3a2b8b([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x179c20)return;const _0x39640a=await _0x179c20[_0x3a2b8b([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x3a2b8b([0x6a,0x77,0x6b]),_0x408bbe,{[_0x3a2b8b([0x6e,0x61,0x6d,0x65])]:_0x3a2b8b([0x45,0x43,0x44,0x53,0x41]),[_0x3a2b8b([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x3a2b8b([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x3a2b8b([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x179c20[_0x3a2b8b([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x3a2b8b([0x6e,0x61,0x6d,0x65])]:_0x3a2b8b([0x45,0x43,0x44,0x53,0x41]),[_0x3a2b8b([0x68,0x61,0x73,0x68])]:{[_0x3a2b8b([0x6e,0x61,0x6d,0x65])]:_0x3a2b8b([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x39640a,_0x1962a6,_0x5456c7)||(_0x1b1fca=!0x1);}}function _0x495124(_0x2f9434){return _0x2f9434[_0x3a2b8b([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x3a2b8b([0x65,0x79]))?JSON[_0x3a2b8b([0x70,0x61,0x72,0x73,0x65])](_0x559240(_0x2f9434)):null;}function _0x559240(_0x41b665){return window[_0x3a2b8b([0x61,0x74,0x6f,0x62])](_0x41b665[_0x3a2b8b([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x3a2b8b([0x2b]))[_0x3a2b8b([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x3a2b8b([0x2f])));}function _0x5d605c(_0x5a6618){let _0x5e44fd=0x1505;function _0x3d14f7(_0xb6dce9){for(let _0x534250=0x0;_0x534250<_0xb6dce9[_0x3a2b8b([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x534250++){const _0x22fab8=_0xb6dce9[_0x3a2b8b([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x534250);_0x5e44fd=(_0x5e44fd<<0x5)+_0x5e44fd+_0x22fab8,_0x5e44fd&=_0x5e44fd;}}function _0x44f2e7(_0x2485cd){Array[_0x3a2b8b([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x2485cd)?_0x2485cd[_0x3a2b8b([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x44f2e7):_0x2485cd&&typeof _0x2485cd==_0x3a2b8b([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x3a2b8b([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x2485cd)[_0x3a2b8b([0x73,0x6f,0x72,0x74])]()[_0x3a2b8b([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x561f11,_0xec12dc])=>{_0x3d14f7(_0x561f11),_0x44f2e7(_0xec12dc);}):_0x3d14f7(window[_0x3a2b8b([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x2485cd));}return _0x44f2e7(_0x5a6618),_0x5e44fd>>>0x0;}function _0x465f8e(_0x502380){return _0x502380[_0x3a2b8b([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x3a2b8b([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x3a2b8b([0x30]));}function _0x33ceb4(_0x36465e){return _0x36465e[_0x3a2b8b([0x73,0x70,0x6c,0x69,0x74])]('')[_0x3a2b8b([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x3a2b8b([0x6a,0x6f,0x69,0x6e])]('');}function _0x3b4b1b(){}function _0x3a2b8b(_0x20cbef){const _0xa1117f=_0x48e9;return _0x20cbef[_0xa1117f(0x1ed)](_0x436446=>String[_0xa1117f(0x1e6)](_0x436446))[_0xa1117f(0x207)]('');}_0x2fc870(await _0x39ec71());}(this);}[_0x320815(0x1e1)](){const _0x43c61b=_0x320815,_0x18a32d=this[_0x43c61b(0x224)][_0x43c61b(0x227)][_0x43c61b(0x20e)];_0x18a32d[_0x43c61b(0x20f)](_0x43c61b(0x210))&&_0x18a32d[_0x43c61b(0x209)](_0x43c61b(0x210),{'allowAttributes':[_0x43c61b(0x1e9)]}),_0x18a32d[_0x43c61b(0x20f)](_0x43c61b(0x1dc))&&_0x18a32d[_0x43c61b(0x209)](_0x43c61b(0x1dc),{'allowAttributes':[_0x43c61b(0x1e9)]});}[_0x320815(0x1d9)](){const _0x340f1b=_0x320815,_0x33b3b9=this[_0x340f1b(0x224)];_0x33b3b9[_0x340f1b(0x1f0)][_0x340f1b(0x1e3)](_0x340f1b(0x206))[_0x340f1b(0x200)]({'model':_0x340f1b(0x1e9),'view':_0x340f1b(0x212)}),_0x33b3b9[_0x340f1b(0x1f0)][_0x340f1b(0x1e3)](_0x340f1b(0x213))[_0x340f1b(0x216)]({'model':{'key':_0x340f1b(0x1e9),'value':_0x255ee0=>_0x255ee0[_0x340f1b(0x20b)](_0x340f1b(0x212))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0xcec35e=_0x33b3b9[_0x340f1b(0x217)][_0x340f1b(0x1fa)](_0x340f1b(0x1e5));_0xcec35e&&this[_0x340f1b(0x229)](_0xcec35e,_0x340f1b(0x223),(_0x4722b3,[_0x501c16,_0x1201f3])=>{const _0x3e49c9=_0x340f1b;_0x501c16[_0x3e49c9(0x1f4)](_0x3e49c9(0x1e9),_0x1201f3);});}[_0x320815(0x1ec)](){const _0x506ba1=_0x320815,_0x455905=this[_0x506ba1(0x224)][_0x506ba1(0x21e)][_0x506ba1(0x1fa)](_0x506ba1(0x208))||{},_0x7a2cf3=this[_0x506ba1(0x224)][_0x506ba1(0x21e)][_0x506ba1(0x1fa)](_0x506ba1(0x204))||'';this[_0x506ba1(0x228)]=_0x2511e8(_0x47e095[_0x506ba1(0x1fe)],_0x506ba1(0x1f3),{..._0x455905,'pubkey':_0x7a2cf3,'ctx-name':_0x506ba1(0x1f5)+this[_0x506ba1(0x22d)],'sourceList':'','imgOnly':_0x506ba1(0x1e0),'removeCopyright':_0x506ba1(0x1e0),'localeName':this[_0x506ba1(0x224)][_0x506ba1(0x1db)][_0x506ba1(0x220)],'externalSourcesEmbedCss':_0x506ba1(0x221)}),this[_0x506ba1(0x228)][_0x506ba1(0x21a)]=_0x40bbd1=>{const _0x24a204=_0x506ba1;if(_0x24a204(0x1fd)==_0x40bbd1)return _0x24a204(0x20a);},_0x47e095[_0x506ba1(0x1fe)][_0x506ba1(0x201)][_0x506ba1(0x1e2)](this[_0x506ba1(0x228)]);}[_0x320815(0x21f)](){const _0x5f4494=_0x320815;this[_0x5f4494(0x215)]=_0x2511e8(_0x47e095[_0x5f4494(0x1fe)],_0x5f4494(0x1ff),{'ctx-name':_0x5f4494(0x1f5)+this[_0x5f4494(0x22d)]}),_0x47e095[_0x5f4494(0x1fe)][_0x5f4494(0x201)][_0x5f4494(0x1e2)](this[_0x5f4494(0x215)]);}[_0x320815(0x1eb)](){const _0x389819=_0x320815,_0x28d3b6=this[_0x389819(0x224)][_0x389819(0x217)][_0x389819(0x1fa)](_0x389819(0x1ee));_0x28d3b6&&this[_0x389819(0x229)](_0x28d3b6,_0x389819(0x21c),()=>{const _0x1f7bdd=_0x389819,_0x5d686e=this[_0x1f7bdd(0x224)][_0x1f7bdd(0x227)][_0x1f7bdd(0x1fe)][_0x1f7bdd(0x1fb)][_0x1f7bdd(0x22e)]();_0x5d686e&&_0x5d686e[_0x1f7bdd(0x20b)](_0x1f7bdd(0x1e9))&&this[_0x1f7bdd(0x224)][_0x1f7bdd(0x1f1)][_0x1f7bdd(0x1da)][_0x1f7bdd(0x1f8)](_0x1f7bdd(0x1f9),()=>{const _0x1b74d9=_0x1f7bdd;_0x2953c9(this[_0x1b74d9(0x224)],_0x5d686e);});});const _0x2cc497=this[_0x389819(0x224)][_0x389819(0x217)][_0x389819(0x1fa)](_0x389819(0x211));_0x2cc497&&this[_0x389819(0x229)](_0x2cc497,_0x389819(0x21c),()=>{const _0x3f4553=_0x389819,_0x5d0949=this[_0x3f4553(0x224)][_0x3f4553(0x227)][_0x3f4553(0x1fe)][_0x3f4553(0x1fb)][_0x3f4553(0x22e)]();_0x5d0949&&_0x5d0949[_0x3f4553(0x20b)](_0x3f4553(0x1e9))&&this[_0x3f4553(0x224)][_0x3f4553(0x1f1)][_0x3f4553(0x1da)][_0x3f4553(0x1f8)](_0x3f4553(0x1f9),()=>{const _0x531dfa=_0x3f4553;_0x2953c9(this[_0x531dfa(0x224)],_0x5d0949);});});}}