@ckeditor/ckeditor5-uploadcare 0.0.0-nightly-20250621.0 → 0.0.0-nightly-20250623.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 _0x180771,Command as _0x21c05b}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x4abe2d,IconGooglePhotos as _0x540326,IconGoogleDrive as _0x16ed7c,IconFacebook as _0x5c8db5,IconDropbox as _0x3498e2,IconUploadcareLink as _0x3a186e,IconUploadcareImageUpload as _0x5e8796,IconError as _0x1f4132,IconUploadcareImageEdit as _0xbc9925}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x3e33ba,MenuBarMenuListItemButtonView as _0x503f46,View as _0x4517d6,FocusCycler as _0x7417ef,Dialog as _0x257f15,DialogViewPosition as _0x8bd1d1,SpinnerView as _0x106ac0,IconView as _0x30aa8d,Notification as _0x30826e}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x21ae59,DomEmitterMixin as _0x3a0846,global as _0x551b4f,getAncestors as _0x2dcdac,ObservableMixin as _0x3ce896,uid as _0x2a1a0d,createElement as _0x538b64}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x20029c}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x55ab4a,info as _0x30a2a9}from'@uploadcare/upload-client';import*as _0x2e2afe from'@uploadcare/file-uploader';var i=function(_0x510f70){return _0x510f70['Local']='local',_0x510f70['URL']='url',_0x510f70['Dropbox']='dropbox',_0x510f70['GDrive']='gdrive',_0x510f70['Facebook']='facebook',_0x510f70['GPhotos']='gphotos',_0x510f70['OneDrive']='onedrive',_0x510f70;}({});function _(_0x4004ea,_0x59735e,_0x3f63c3){const t=_0x4004ea['t'],_0x1e8537=_0x4004ea['t'];switch(_0x59735e){case i['Local']:return{'text':_0x1e8537('Insert'===_0x3f63c3?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x1e8537('From\x20computer')};case i['URL']:return{'text':'Insert'===_0x3f63c3?_0x1e8537('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x1e8537('Via\x20URL')};case i['Dropbox']:return{'text':t('Insert'===_0x3f63c3?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case i['Facebook']:return{'text':t('Insert'===_0x3f63c3?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case i['GDrive']:return{'text':t('Insert'===_0x3f63c3?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case i['GPhotos']:return{'text':t('Insert'===_0x3f63c3?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case i['OneDrive']:return{'text':t('Insert'===_0x3f63c3?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x59735e;}}class e extends _0x180771{['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 _0x4eab8e=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x38eedd;for(const _0x207ab6 in _0x4eab8e){const _0xa39963=_0x207ab6,_0x3ed2d6=_0x4eab8e[_0xa39963];if('uploadcareLicenseKeyValid'==_0x3ed2d6||'uploadcareLicenseKeyInvalid'==_0x3ed2d6||'uploadcareLicenseKeyExpired'==_0x3ed2d6||'uploadcareLicenseKeyDomainLimit'==_0x3ed2d6||'uploadcareLicenseKeyNotAllowed'==_0x3ed2d6||'uploadcareLicenseKeyEvaluationLimit'==_0x3ed2d6||'uploadcareLicenseKeyTrialLimit'==_0x3ed2d6||'uploadcareLicenseKeyUsageLimit'==_0x3ed2d6){delete _0x4eab8e[_0xa39963],_0x38eedd=_0x3ed2d6,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x38eedd&&_0x4eab8e['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x38eedd&&_0x4eab8e['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x38eedd&&_0x4eab8e['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x38eedd&&_0x4eab8e['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x38eedd&&_0x4eab8e['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyTrialLimit'==_0x38eedd&&_0x4eab8e['_showLicenseError']('trialLimit'),'uploadcareLicenseKeyUsageLimit'==_0x38eedd&&_0x4eab8e['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x33f9f5}=this,_0x5bb1b4=_0x33f9f5['commands']['get']('uploadcare');if(!_0x5bb1b4)return;const _0x239439=this['_normalizeConfigSourceList'](_0x33f9f5['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x432071,_0x44cef6)=>{const _0x40f91b=this['_getIntegrationKey'](_0x44cef6['type']);return _0x432071[_0x40f91b]||(_0x432071[_0x40f91b]=[]),_0x432071[_0x40f91b]['push'](_0x44cef6),_0x432071;},{});_0x33f9f5['plugins']['has']('ImageInsertUI')&&_0x33f9f5['commands']['get']('uploadcare')&&Object['entries'](_0x239439)['forEach'](([_0x29984e,_0x5eba30])=>{_0x33f9f5['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x29984e,'observable':()=>_0x5bb1b4,'buttonViewCreator':()=>this['_createToolbarButton'](_0x5eba30),'formViewCreator':()=>this['_createDropdownButtons'](_0x5eba30),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x5eba30),'override':'assetManager'!==_0x29984e});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x6ae54d){const {locale:_0x40a0e3}=this['editor'];return _0x6ae54d['map'](_0x5db0b1=>{const _0x5e335f=_(_0x40a0e3,_0x5db0b1,'Insert');switch(_0x5db0b1){case i['Local']:return{'icon':_0x5e8796,'type':i['Local'],..._0x5e335f};case i['URL']:return{'icon':_0x3a186e,'type':i['URL'],..._0x5e335f};case i['Dropbox']:return{'icon':_0x3498e2,'type':i['Dropbox'],..._0x5e335f};case i['Facebook']:return{'icon':_0x5c8db5,'type':i['Facebook'],..._0x5e335f};case i['GDrive']:return{'icon':_0x16ed7c,'type':i['GDrive'],..._0x5e335f};case i['GPhotos']:return{'icon':_0x540326,'type':i['GPhotos'],..._0x5e335f};case i['OneDrive']:return{'icon':_0x4abe2d,'type':i['OneDrive'],..._0x5e335f};}});}['_getIntegrationKey'](_0x3c1e4c){switch(_0x3c1e4c){case i['Local']:return'upload';case i['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x13dd58,_0x5cf6c1){const _0x4514fd=this['editor'],_0x2ec3d4=new _0x13dd58(_0x4514fd['locale']),_0x297826=_0x4514fd['commands']['get']('uploadcare');return _0x2ec3d4['bind']('isEnabled')['to'](_0x297826),_0x2ec3d4['on']('execute',()=>{_0x297826['execute'](_0x5cf6c1);}),_0x2ec3d4;}['_createToolbarButton'](_0x59bc79){const {locale:_0x3143c6}=this['editor'],_0x2e283d=this['editor']['plugins']['get']('ImageInsertUI'),_0xfee68=_0x59bc79[0x0],_0x55393a=this['_createButton'](_0x3e33ba,_0xfee68['type']);return _0x55393a['icon']=_0xfee68['icon'],_0x55393a['bind']('label')['to'](_0x2e283d,'isImageSelected',_0x285215=>_(_0x3143c6,_0xfee68['type'],_0x285215?'Replace':'Insert')['text']),_0x55393a['tooltip']=!0x0,_0x55393a;}['_createDropdownButtons'](_0x5e4bcc){const {locale:_0x2b76a9}=this['editor'],_0x31e106=this['editor']['plugins']['get']('ImageInsertUI');return _0x5e4bcc['map'](_0x5bc7af=>{const _0x5d21bc=this['_createButton'](_0x3e33ba,_0x5bc7af['type']);return _0x5d21bc['withText']=!0x0,_0x5d21bc['icon']=_0x5bc7af['icon'],_0x5d21bc['bind']('label')['to'](_0x31e106,'isImageSelected',_0x4f18fb=>_(_0x2b76a9,_0x5bc7af['type'],_0x4f18fb?'Replace':'Insert')['text']),_0x5d21bc;});}['_createMenuBarButtons'](_0x4858d3){return _0x4858d3['map'](_0xb5bd2d=>{const _0x336775=this['_createButton'](_0x503f46,_0xb5bd2d['type']);return _0x336775['icon']=_0xb5bd2d['icon'],_0x336775['label']=_0xb5bd2d['shortText'],_0x336775;});}}class F extends _0x4517d6{['focusTracker'];['focusCycler'];constructor(_0x4192c7){super(_0x4192c7),this['focusTracker']=new _0x21ae59(),this['focusCycler']=new _0x7417ef({'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(_0x5befaa,_0x3b2008){super(_0x5befaa),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-'+_0x3b2008}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}}function k(_0x2fb0d3,_0x5cb913){const _0x155ba0=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x3004c1=>_0x3004c1<=_0x5cb913)['map'](_0x26957c=>_0x2fb0d3['replace'](/\/$/,'')+'/-/resize/'+_0x26957c+'x/\x20'+_0x26957c+'w');return{'imageFallbackUrl':_0x2fb0d3,'imageSources':[{'srcset':_0x155ba0['join'](',\x20'),'sizes':'(max-width:\x20'+_0x5cb913+'px)\x20100vw,\x20'+_0x5cb913+'px','type':'image/webp'}]};}function C(_0x314de1,_0x555635,_0x353b2e){const _0x38d71d=_0x314de1['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x38d71d?parseInt(_0x38d71d[0x1],0xa):_0x555635,'height':_0x38d71d?parseInt(_0x38d71d[0x2],0xa):_0x353b2e};}function p(_0x396b9a,_0x2e7cec){const _0x477fd8=new(_0x3a0846())(),_0x1d47c4=_0x396b9a['plugins']['get']('ImageUtils'),_0xddaa09=_0x396b9a['editing']['mapper']['toViewElement'](_0x2e7cec),_0x4c1fdc=_0x1d47c4['findViewImgElement'](_0xddaa09),_0x34384c=_0x396b9a['editing']['view']['domConverter']['viewToDom'](_0x4c1fdc),_0x59c830=_0x2e7cec['getAttribute']('width'),_0x56e082=_0x2e7cec['getAttribute']('height'),_0x12d2f2='image-processing';_0x396b9a['editing']['view']['change'](_0x5a35bf=>{_0x5a35bf['addClass'](_0x12d2f2,_0xddaa09),_0x5a35bf['setStyle']('aspect-ratio',_0x59c830+'/'+_0x56e082,_0x4c1fdc);}),_0x477fd8['listenTo'](_0x34384c,'load',()=>{_0x477fd8['stopListening'](_0x34384c,'load'),_0x396b9a['editing']['view']['change'](_0xcdaf0=>{_0xcdaf0['removeClass'](_0x12d2f2,_0xddaa09),_0xcdaf0['removeStyle']('aspect-ratio',_0x4c1fdc);});});}function G(_0x2c6d9f){if(Array['isArray'](_0x2c6d9f)){const _0x42e658=_0x2c6d9f['map'](G);return _0x2b8172=>_0x42e658['some'](_0x34e904=>_0x34e904(_0x2b8172));}if('origin'==_0x2c6d9f){const _0x8f45c=_0x551b4f['window']['location']['origin'];return _0x1cd366=>new URL(_0x1cd366,_0x551b4f['document']['baseURI'])['origin']==_0x8f45c;}return'function'==typeof _0x2c6d9f?_0x2c6d9f:_0x2c6d9f instanceof RegExp?_0x536e07=>!(!_0x536e07['match'](_0x2c6d9f)&&!_0x536e07['replace'](/^https?:\/\//,'')['match'](_0x2c6d9f)):()=>!0x1;}function S(_0x22e4f6,_0x5e1d09){return _0x2dcdac(_0x22e4f6['target'])['includes'](_0x5e1d09);}class n extends/* #__PURE__ -- @preserve */
24
- _0x3ce896(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x33b909,_0x3eaf63,_0x449d0a){super(),this['_editor']=_0x33b909,this['_editing']=_0x3eaf63,this['_dialog']=_0x33b909['plugins']['get'](_0x257f15),this['_api']=_0x3eaf63['ctxElement']['getAPI'](),this['_type']=_0x449d0a,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:_0x4230c8,model:_0x2d5bc0}=this['_editor'],_0x1ee87a=_0x2d5bc0['document']['selection']['getSelectedElement'](),_0x6dc5fb=_0x1ee87a&&(_0x1ee87a['is']('element','imageBlock')||_0x1ee87a['is']('element','imageInline'));this['_formView']=new x(_0x4230c8,this['_editing']['ucContextId']),this['_dialog']['show']({'id':'uploadCare','icon':_0x5e8796,'title':_(_0x4230c8,this['_type'],_0x6dc5fb?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x8bd1d1['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x5ba37c=>!S(_0x5ba37c,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0xfc333c}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x5a8c38=>{const _0x3d289c=_0xfc333c['length'];for(const _0x2a1d68 of _0xfc333c){const _0x81be17=_0x2a1d68===_0xfc333c[_0x3d289c-0x1],{cdnUrl:_0x49cb9e,fileInfo:_0x41eb60}=_0x2a1d68;if(!_0x49cb9e||!_0x41eb60)continue;const {width:_0x458045,height:_0x33cfca}=_0x41eb60['imageInfo'],_0x44d186=C(_0x49cb9e,_0x458045,_0x33cfca),_0x591265=k(_0x49cb9e,_0x44d186['width']),_0x3b9ffb={'id':_0x41eb60['uuid'],'type':'image','attributes':{'imageDimension':_0x44d186,..._0x591265}};this['_insertAsset'](_0x3b9ffb,_0x81be17,_0x5a8c38);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x58132d=>{'idle'===_0x58132d['detail']['status']&&!_0x58132d['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===i['Local']?this['_api']['setCurrentActivity'](i['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x591be2,_0x5558df,_0x5971b4){const _0x5465e5=this['_editor']['model']['document']['selection'],_0x4e8094=_0x5465e5['getSelectedElement'](),_0x3eded2=!(!_0x4e8094||!_0x4e8094['is']('element','imageInline'));_0x5971b4['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x591be2,_0x3eded2),_0x5558df||_0x5971b4['setSelection'](_0x5465e5['getLastPosition']());}['_insertImage'](_0x456a6d,_0x395408){const _0x12a2e2=this['_editor'],{imageDimension:_0x584c2f,imageFallbackUrl:_0x21b1a8,imageSources:_0x2118bd}=_0x456a6d['attributes'];_0x12a2e2['execute']('insertImage',{'imageType':_0x395408?'imageInline':null,'source':{'uploadcareImageId':_0x456a6d['id'],'src':_0x21b1a8,'sources':_0x2118bd,..._0x584c2f}});}}class w extends _0x21c05b{['_editing'];['_controller']=null;static get['requires'](){return[_0x257f15,o];}constructor(_0x581afe){super(_0x581afe),this['_editing']=_0x581afe['plugins']['get'](o);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x4382a3){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new n(this['editor'],this['_editing'],_0x4382a3);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class j{static['upload']({file:_0x2f5d1e,publicKey:_0x174943,signal:_0x1f3836,onProgress:_0x25a101}){return _0x55ab4a(_0x2f5d1e,{'publicKey':_0x174943,'store':'auto','signal':_0x1f3836,'onProgress':_0x25a101});}static['getInfo'](_0x18bf2c,_0x32ed82){return _0x30a2a9(_0x18bf2c,_0x32ed82);}}class f extends _0x180771{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x20029c,o];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x4386ab=this['editor'];if(!!!_0x4386ab['config']['get']('uploadcare'))return;_0x4386ab['plugins']['get'](_0x20029c)['createUploadAdapter']=_0x555ff9=>new A(_0x555ff9,_0x4386ab),_0x4386ab['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x190034,{imageElement:_0x340ff4,data:_0x45f41e})=>{_0x4386ab['model']['change'](_0x577c7a=>{_0x577c7a['setAttribute']('uploadcareImageId',_0x45f41e['uploadcareImageId'],_0x340ff4);});});}}class A{['loader'];['editor'];['controller'];constructor(_0x51298d,_0xdd19d7){this['loader']=_0x51298d,this['editor']=_0xdd19d7,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x3c13ff=this['editor']['config']['get']('uploadcare.pubkey'),_0x2d7b24=await this['loader']['file'];return j['upload']({'file':_0x2d7b24,'publicKey':_0x3c13ff,'signal':this['controller']['signal'],'onProgress':_0x4d28ab=>{_0x4d28ab&&_0x4d28ab['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x4d28ab['value']);}})['then'](async _0x4ca4ea=>{const {imageFallbackUrl:_0x57a7d3,imageSources:_0x477cbc}=k(_0x4ca4ea['cdnUrl'],_0x4ca4ea['imageInfo']['width']);return{'uploadcareImageId':_0x4ca4ea['uuid'],'default':_0x57a7d3,'sources':_0x477cbc};})['catch'](()=>{const _0x4236ef=t('Cannot\x20upload\x20file:')+('\x20'+_0x2d7b24['name']+'.');return Promise['reject'](_0x4236ef);});}['abort'](){this['controller']['abort']();}}class o extends _0x180771{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',f,_0x257f15];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['ucContextId'];get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}constructor(_0x4149cb){super(_0x4149cb),this['ucContextId']=_0x2a1a0d();}['init'](){const _0x3883ec=this['editor'];_0x3883ec['commands']['add']('uploadcare',new w(_0x3883ec));}['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 _0x1a9ba9=_0x551b4f['document']['querySelector']('input[uploadcare-file-input]');_0x1a9ba9&&_0x1a9ba9['remove']();}),async function(_0x592f68){const _0xb08c1d=_0x37443([0x4e,0x34,0x41,0x46,0x38,0x59,0x4d,0x45,0x58,0x47,0x4f,0x43,0x51,0x44,0x32,0x67,0x42,0x33,0x52,0x64,0x6f,0x4b,0x61,0x73,0x77,0x5a,0x6e,0x56,0x39,0x4c,0x50,0x68,0x71,0x66,0x6b,0x53,0x49,0x70,0x79,0x35,0x31,0x7a,0x72,0x6c,0x4a,0x48,0x37,0x57,0x75,0x54,0x62,0x63,0x76,0x69,0x6a,0x65,0x6d,0x55,0x30,0x36,0x74,0x78]),_0x1b0665=0x31aa5c0f,_0x4da2a7=0x31ad376f^_0x1b0665,_0x3d6363=window[_0x37443([0x44,0x61,0x74,0x65])][_0x37443([0x6e,0x6f,0x77])](),_0x173866=_0x592f68[_0x37443([0x65,0x64,0x69,0x74,0x6f,0x72])],_0xcfdc9f=new window[(_0x37443([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x17496f=>{_0x173866[_0x37443([0x6f,0x6e,0x63,0x65])](_0x37443([0x72,0x65,0x61,0x64,0x79]),_0x17496f);}),_0x13d711={[_0x37443([0x6b,0x74,0x79])]:_0x37443([0x45,0x43]),[_0x37443([0x75,0x73,0x65])]:_0x37443([0x73,0x69,0x67]),[_0x37443([0x63,0x72,0x76])]:_0x37443([0x50,0x2d,0x32,0x35,0x36]),[_0x37443([0x78])]:_0x37443([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]),[_0x37443([0x79])]:_0x37443([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]),[_0x37443([0x61,0x6c,0x67])]:_0x37443([0x45,0x53,0x32,0x35,0x36])},_0x25b5e9=_0x173866[_0x37443([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x37443([0x67,0x65,0x74])](_0x37443([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x3cb6e5(){let _0x310317,_0x3f91b6=null,_0x5b4714=null;try{if(_0x25b5e9==_0x37443([0x47,0x50,0x4c]))return _0x37443([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x310317=_0x5c316c(),!_0x310317)return _0x37443([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x310317[_0x37443([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x5b4714=_0x1b50cc(_0x310317[_0x37443([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x310317[_0x37443([0x6a,0x74,0x69])])),await _0x47b6c4()?_0x545926()?_0x851226()?_0x37443([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x3feaaf()?(_0x310317[_0x37443([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x37443([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x3f91b6=_0x39e35b(_0x37443([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x310317[_0x37443([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x37443([0x74,0x72,0x69,0x61,0x6c])&&(_0x3f91b6=_0x39e35b(_0x37443([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x204855()):_0x37443([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x37443([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x37443([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x37443([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x851226(){const _0x5275f7=[_0x37443([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x37443([0x74,0x72,0x69,0x61,0x6c])][_0x37443([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x310317[_0x37443([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x3d6363/0x3e8:0xe10*_0x4da2a7;return _0x310317[_0x37443([0x65,0x78,0x70])]<_0x5275f7;}function _0x545926(){const _0x3ccbbf=_0x310317[_0x37443([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x3ccbbf&&(!!_0x3ccbbf[_0x37443([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x37443([0x2a]))||!!_0x3ccbbf[_0x37443([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x37443([0x55,0x50,0x4c,0x43])));}function _0x3feaaf(){const _0x243a5c=_0x310317[_0x37443([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x243a5c||0x0==_0x243a5c[_0x37443([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x53f33b}=new URL(window[_0x37443([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x243a5c[_0x37443([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x53f33b))return!0x0;const _0x49b8a6=_0x53f33b[_0x37443([0x73,0x70,0x6c,0x69,0x74])](_0x37443([0x2e]));return _0x243a5c[_0x37443([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x13bdb2=>_0x13bdb2[_0x37443([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x37443([0x2a])))[_0x37443([0x6d,0x61,0x70])](_0x45dad0=>_0x45dad0[_0x37443([0x73,0x70,0x6c,0x69,0x74])](_0x37443([0x2e])))[_0x37443([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x24312a=>_0x24312a[_0x37443([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x49b8a6[_0x37443([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x37443([0x6d,0x61,0x70])](_0x5e4d84=>Array(_0x49b8a6[_0x37443([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x5e4d84[_0x37443([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x37443([0x66,0x69,0x6c,0x6c])](_0x5e4d84[0x0]===_0x37443([0x2a])?_0x37443([0x2a]):'')[_0x37443([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x5e4d84))[_0x37443([0x73,0x6f,0x6d,0x65])](_0x314601=>_0x49b8a6[_0x37443([0x65,0x76,0x65,0x72,0x79])]((_0x5acd80,_0x49b9b2)=>_0x314601[_0x49b9b2]===_0x5acd80||_0x314601[_0x49b9b2]===_0x37443([0x2a])));}function _0x204855(){return _0x3f91b6&&_0x5b4714?new window[(_0x37443([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1d3c15,_0x4de6d9)=>{_0x3f91b6[_0x37443([0x74,0x68,0x65,0x6e])](_0x1d3c15,_0x4de6d9),_0x5b4714[_0x37443([0x74,0x68,0x65,0x6e])](_0x54b2e5=>{_0x54b2e5!=_0x37443([0x56,0x61,0x6c,0x69,0x64])&&_0x1d3c15(_0x54b2e5);},_0x4de6d9);}):_0x3f91b6||_0x5b4714||_0x37443([0x56,0x61,0x6c,0x69,0x64]);}}function _0x1b50cc(_0x50ec16,_0x3b58a1){return new window[(_0x37443([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xb58e89=>{if(_0x1e38e1())return _0xb58e89(_0x37443([0x56,0x61,0x6c,0x69,0x64]));_0x4475ca(),_0x173866[_0x37443([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x37443([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x4418fd=!0x1;const _0x26f405=_0x2a1a0d();function _0x16cdd5(_0x5074b5){return!!_0x5074b5&&(typeof _0x5074b5===_0x37443([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x5074b5===_0x37443([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x5074b5[_0x37443([0x74,0x68,0x65,0x6e])]===_0x37443([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x5074b5[_0x37443([0x63,0x61,0x74,0x63,0x68])]===_0x37443([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0xf9fbef(_0x54a5f9){_0x5abdc0(_0x54a5f9)[_0x37443([0x74,0x68,0x65,0x6e])](_0x25f0df=>{if(!_0x25f0df||_0x25f0df[_0x37443([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x37443([0x6f,0x6b]))return _0x37443([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x4aee5b(_0x355760(_0x26f405+_0x3b58a1))!=_0x25f0df[_0x37443([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x37443([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x37443([0x56,0x61,0x6c,0x69,0x64]);})[_0x37443([0x74,0x68,0x65,0x6e])](_0x2ccb34=>(_0x27b772(),_0x2ccb34),()=>{const _0x30382f=_0x23ccbd();return null==_0x30382f?(_0x27b772(),_0x37443([0x56,0x61,0x6c,0x69,0x64])):_0x37443(_0x3d6363-_0x30382f>(0x15a6d80f^_0x1b0665)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x37443([0x74,0x68,0x65,0x6e])](_0xb58e89)[_0x37443([0x63,0x61,0x74,0x63,0x68])](()=>{_0xb58e89(_0x37443([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x47da02=0x319cb28f^_0x1b0665;function _0x27b772(){const _0x22e39d=_0x37443([0x6c,0x6c,0x63,0x74,0x2d])+_0x4aee5b(_0x355760(_0x50ec16)),_0x1053ed=_0x1ece22(_0x4aee5b(window[_0x37443([0x4d,0x61,0x74,0x68])][_0x37443([0x63,0x65,0x69,0x6c])](_0x3d6363/_0x47da02)));window[_0x37443([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x37443([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x22e39d,_0x1053ed);}function _0x23ccbd(){const _0x1d8bed=_0x37443([0x6c,0x6c,0x63,0x74,0x2d])+_0x4aee5b(_0x355760(_0x50ec16)),_0x27d512=window[_0x37443([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x37443([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1d8bed);return _0x27d512?window[_0x37443([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1ece22(_0x27d512),0x10)*_0x47da02:null;}function _0x5abdc0(_0x4522ad){return new window[(_0x37443([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x53aae7,_0x306e9b)=>{_0x4522ad[_0x37443([0x74,0x68,0x65,0x6e])](_0x53aae7,_0x306e9b),window[_0x37443([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x306e9b,0x31ab88cf^_0x1b0665);});}}_0x173866[_0x37443([0x6f,0x6e])](_0x37443([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x36dbc6,_0x4c2b7b)=>{if(_0x4c2b7b[0x0]!=_0x50ec16)return _0xb58e89(_0x37443([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x4c2b7b[0x1]={..._0x4c2b7b[0x1],[_0x37443([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x26f405};},{[_0x37443([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x37443([0x68,0x69,0x67,0x68])}),_0x173866[_0x37443([0x6f,0x6e])](_0x37443([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x5cd37e=>{_0x16cdd5(_0x5cd37e[_0x37443([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x4418fd=!0x0,_0xf9fbef(_0x5cd37e[_0x37443([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x37443([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x37443([0x6c,0x6f,0x77])}),_0xcfdc9f[_0x37443([0x74,0x68,0x65,0x6e])](()=>{_0x4418fd||_0xb58e89(_0x37443([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x1e38e1(){return _0x173866[_0x37443([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x37443([0x76,0x69,0x65,0x77])][_0x37443([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x37443([0x61,0x75,0x74,0x6f]);}function _0x4475ca(){_0x173866[_0x37443([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x37443([0x76,0x69,0x65,0x77])][_0x37443([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x37443([0x61,0x75,0x74,0x6f]);}}function _0x39e35b(_0x4336ca){const _0x1eca45=[new window[(_0x37443([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1140c9=>setTimeout(_0x1140c9,0x31a362c3^_0x1b0665)),_0xcfdc9f[_0x37443([0x74,0x68,0x65,0x6e])](()=>new window[(_0x37443([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1aeada=>{let _0x3f52f6=0x0;_0x173866[_0x37443([0x6d,0x6f,0x64,0x65,0x6c])][_0x37443([0x6f,0x6e])](_0x37443([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x318810,_0x2cab65)=>{_0x2cab65[0x0][_0x37443([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x3f52f6++,_0x3f52f6==(0x31aa5df7^_0x1b0665)&&(_0x1aeada(),_0x318810[_0x37443([0x6f,0x66,0x66])]());});}))];return window[_0x37443([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x37443([0x72,0x61,0x63,0x65])](_0x1eca45)[_0x37443([0x74,0x68,0x65,0x6e])](()=>_0x4336ca);}async function _0x52ad5e(){await _0xcfdc9f,_0x173866[_0x37443([0x6d,0x6f,0x64,0x65,0x6c])][_0x37443([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x2fc694,_0x173866[_0x37443([0x6d,0x6f,0x64,0x65,0x6c])][_0x37443([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x2fc694,_0x173866[_0x37443([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x37443([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x25e602(_0x52ba5f){const _0x51775a=_0x1a00ed();_0x173866[_0x51775a]=_0x37443([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x52ba5f,_0x52ba5f!=_0x37443([0x56,0x61,0x6c,0x69,0x64])&&_0x52ad5e();}function _0x1a00ed(){const _0xd65fda=window[_0x37443([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x37443([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x37443([0x6e,0x6f,0x77])]())[_0x37443([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x37443([0x2e]),'');let _0x4a1226=_0x37443([0x4e]);for(let _0x244e2b=0x0;_0x244e2b<_0xd65fda[_0x37443([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x244e2b+=0x2){let _0x4e9996=window[_0x37443([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xd65fda[_0x37443([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x244e2b,_0x244e2b+0x2));_0x4e9996>=_0xb08c1d[_0x37443([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x4e9996-=_0xb08c1d[_0x37443([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x4a1226+=_0xb08c1d[_0x4e9996];}return _0x4a1226;}function _0x5c316c(){const _0x440ad6=_0x25b5e9[_0x37443([0x73,0x70,0x6c,0x69,0x74])](_0x37443([0x2e]));if(0x3!=_0x440ad6[_0x37443([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x4c95a6(_0x440ad6[0x1]);function _0x4c95a6(_0x4c39b5){const _0x5acde5=_0x43b881(_0x4c39b5);return _0x5acde5&&_0x207c7e()?_0x5acde5:null;function _0x207c7e(){const _0x19c7c0=_0x5acde5[_0x37443([0x6a,0x74,0x69])],_0x50e67e=window[_0x37443([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x19c7c0[_0x37443([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x19c7c0[_0x37443([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x1ce598={..._0x5acde5,[_0x37443([0x6a,0x74,0x69])]:_0x19c7c0[_0x37443([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x19c7c0[_0x37443([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x1ce598[_0x37443([0x76,0x63])],_0x355760(_0x1ce598)==_0x50e67e;}}}async function _0x47b6c4(){let _0x54dcf5=!0x0;try{const _0x307c4d=_0x25b5e9[_0x37443([0x73,0x70,0x6c,0x69,0x74])](_0x37443([0x2e])),[_0x5ed700,_0x1808cd,_0x1e9d3e]=_0x307c4d;return _0x4e07f0(_0x5ed700),await _0x3a917b(_0x5ed700,_0x1808cd,_0x1e9d3e),_0x54dcf5;}catch{return!0x1;}function _0x4e07f0(_0x261a8f){const _0x1b4028=_0x43b881(_0x261a8f);_0x1b4028&&_0x1b4028[_0x37443([0x61,0x6c,0x67])]==_0x37443([0x45,0x53,0x32,0x35,0x36])||(_0x54dcf5=!0x1);}async function _0x3a917b(_0x14870f,_0x55b078,_0x5ec6c6){const _0x3ec5bc=window[_0x37443([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x37443([0x66,0x72,0x6f,0x6d])](_0x44ec69(_0x5ec6c6),_0x198119=>_0x198119[_0x37443([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x308687=new window[(_0x37443([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x37443([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x14870f+_0x37443([0x2e])+_0x55b078),_0x133ed9=window[_0x37443([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x37443([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x133ed9)return;const _0x5111e3=await _0x133ed9[_0x37443([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x37443([0x6a,0x77,0x6b]),_0x13d711,{[_0x37443([0x6e,0x61,0x6d,0x65])]:_0x37443([0x45,0x43,0x44,0x53,0x41]),[_0x37443([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x37443([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x37443([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x133ed9[_0x37443([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x37443([0x6e,0x61,0x6d,0x65])]:_0x37443([0x45,0x43,0x44,0x53,0x41]),[_0x37443([0x68,0x61,0x73,0x68])]:{[_0x37443([0x6e,0x61,0x6d,0x65])]:_0x37443([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x5111e3,_0x3ec5bc,_0x308687)||(_0x54dcf5=!0x1);}}function _0x43b881(_0x74546a){return _0x74546a[_0x37443([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x37443([0x65,0x79]))?JSON[_0x37443([0x70,0x61,0x72,0x73,0x65])](_0x44ec69(_0x74546a)):null;}function _0x44ec69(_0x390b5a){return window[_0x37443([0x61,0x74,0x6f,0x62])](_0x390b5a[_0x37443([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x37443([0x2b]))[_0x37443([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x37443([0x2f])));}function _0x355760(_0x5b289e){let _0x29b027=0x1505;function _0x371963(_0x370e87){for(let _0x440130=0x0;_0x440130<_0x370e87[_0x37443([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x440130++){const _0xcc3e1e=_0x370e87[_0x37443([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x440130);_0x29b027=(_0x29b027<<0x5)+_0x29b027+_0xcc3e1e,_0x29b027&=_0x29b027;}}function _0x25244b(_0x2d1a73){Array[_0x37443([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x2d1a73)?_0x2d1a73[_0x37443([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x25244b):_0x2d1a73&&typeof _0x2d1a73==_0x37443([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x37443([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x2d1a73)[_0x37443([0x73,0x6f,0x72,0x74])]()[_0x37443([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x1102dd,_0x44698a])=>{_0x371963(_0x1102dd),_0x25244b(_0x44698a);}):_0x371963(window[_0x37443([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x2d1a73));}return _0x25244b(_0x5b289e),_0x29b027>>>0x0;}function _0x4aee5b(_0x47ef40){return _0x47ef40[_0x37443([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x37443([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x37443([0x30]));}function _0x1ece22(_0x275426){return _0x275426[_0x37443([0x73,0x70,0x6c,0x69,0x74])]('')[_0x37443([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x37443([0x6a,0x6f,0x69,0x6e])]('');}function _0x2fc694(){}function _0x37443(_0x18b09b){return _0x18b09b['map'](_0x195139=>String['fromCharCode'](_0x195139))['join']('');}_0x25e602(await _0x3cb6e5());}(this);}['_initSchema'](){const _0x5e43ad=this['editor']['model']['schema'];_0x5e43ad['isRegistered']('imageBlock')&&_0x5e43ad['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x5e43ad['isRegistered']('imageInline')&&_0x5e43ad['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0xa703d9=this['editor'];_0xa703d9['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0xa703d9['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x295711=>_0x295711['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x2980a6=_0xa703d9['commands']['get']('replaceImageSource');_0x2980a6&&this['listenTo'](_0x2980a6,'cleanupImage',(_0x551b4c,[_0x345a33,_0x46c12f])=>{_0x345a33['removeAttribute']('uploadcareImageId',_0x46c12f);});}['_initConfig'](){const _0x1d98a2=this['editor']['config']['get']('uploadcare.uploader')||{},_0x4fd356=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x538b64(_0x551b4f['document'],'uc-config',{..._0x1d98a2,'pubkey':_0x4fd356,'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']=_0x4af882=>{if('closeMax'==_0x4af882)return'#uc-icon-arrow-down';},_0x551b4f['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x538b64(_0x551b4f['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader-'+this['ucContextId']}),_0x551b4f['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x5d15ac=this['editor']['commands']['get']('insertImage');_0x5d15ac&&this['listenTo'](_0x5d15ac,'execute',()=>{const _0x55438f=this['editor']['model']['document']['selection']['getSelectedElement']();_0x55438f&&_0x55438f['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x55438f);});});const _0x1927f7=this['editor']['commands']['get']('uploadcareImageReplace');_0x1927f7&&this['listenTo'](_0x1927f7,'execute',()=>{const _0x2e7428=this['editor']['model']['document']['selection']['getSelectedElement']();_0x2e7428&&_0x2e7428['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x2e7428);});});}}class tt extends _0x180771{static get['requires'](){return[o,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x23def2){super(_0x23def2),_0x23def2['config']['define']('uploadcare.uploader.sourceList',[i['Local'],i['URL']]),_0x2e2afe['defineComponents'](_0x2e2afe);}}class ii extends _0x4517d6{constructor(_0x3e2d2f){super(_0x3e2d2f);const t=_0x3e2d2f['t'],_0x5ad33f=this['bindTemplate'],_0x42286d=new _0x106ac0();_0x42286d['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':[_0x42286d,{'text':_0x5ad33f['to']('imageUploadProgress',_0x3c5234=>t('Loading\x20image...')+'\x20('+(_0x3c5234||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 _0x4517d6{constructor(_0x350074){super(_0x350074);const t=_0x350074['t'];this['set']('errorType',null);const _0x47910e=new _0x3e33ba(_0x350074);_0x47910e['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x47910e['withText']=!0x0,_0x47910e['class']='ck-button-action',_0x47910e['on']('execute',()=>{this['fire']('retry');}),_0x47910e['bind']('isVisible')['to'](this,'errorType',_0x1ccc0c=>'NotFound'!==_0x1ccc0c);const _0x4ab6bd=new _0x30aa8d();_0x4ab6bd['content']=_0x1f4132,_0x4ab6bd['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x2e5948=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':[_0x4ab6bd,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x2e5948['to']('errorType',_0x39f96c=>t('NotFound'!==_0x39f96c?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x47910e]},{'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 _0x4517d6{constructor(_0x358c8b,_0x30a57f){super(_0x358c8b);const _0x4f33a5=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x30a57f,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x4f33a5['to']('imageSrc')}});}}class X extends F{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x2b3440,_0x531207,_0x18f35c){super(_0x2b3440),this['_items']=this['createCollection'](),this['_loadingView']=new ii(_0x2b3440),this['_errorView']=new ti(_0x2b3440),this['_editingView']=new ei(_0x2b3440,_0x18f35c),this['_focusableView']=new _0x4517d6(_0x2b3440),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x531207),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'],_0x21ffd4=>{this['_addUploadcareImageEditorListeners'](_0x21ffd4);});}),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'](_0x50ed49,_0x2d9ac2){const _0x58c407='uc-cloud-image-editor',_0x96de63=_0x50ed49['querySelector'](_0x58c407);if(_0x96de63)return _0x2d9ac2(_0x96de63);const _0x30af3e=new MutationObserver(_0x2b696e=>{const _0x591a58=_0x2b696e['filter'](_0x504875=>_0x504875['target']===_0x50ed49&&_0x504875['addedNodes']['length']>0x0&&_0x504875['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x58c407);_0x591a58['length']&&(_0x30af3e['disconnect'](),_0x2d9ac2(_0x591a58[0x0]['addedNodes'][0x0]));});_0x30af3e['observe'](_0x50ed49,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x361092){_0x361092['addEventListener']('apply',_0x29eab6=>{this['fire']('apply',{'imageSrc':_0x29eab6['detail']['cdnUrl']});}),_0x361092['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class E extends/* #__PURE__ -- @preserve */
25
- _0x3ce896(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x5d7b66,_0x137443,_0x454620){super(),this['_editor']=_0x5d7b66,this['_dialog']=_0x137443,this['_imageElement']=_0x454620,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 _0x3d5b6=this['_imageElement'],_0x60998a=_0x3d5b6['getAttribute']('uploadcareImageId'),_0x4cd41d=_0x3d5b6['getAttribute']('src');if(_0x60998a)await this['_loadImageInfo'](_0x60998a,_0x4cd41d);else{if(this['_imageCache']['has'](_0x4cd41d)){const _0x34fadb=this['_imageCache']['get'](_0x4cd41d);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x34fadb['url'],this['imageDimension']=_0x34fadb['dimension'],this['imageId']=_0x34fadb['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x2800b2}=this['_editor'],t=_0x2800b2['t'],_0x469512=new X(_0x2800b2,this['imageStatus'],this['_attributes']);_0x469512['bind']('status')['to'](this,'imageStatus'),_0x469512['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x469512['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x469512['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x469512,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0xbc9925,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x469512,'position':_0x8bd1d1['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x469512['focus']();},'onHide':()=>{_0x469512['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x21bc23=>!S(_0x21bc23,_0x469512['element'])}});}['_loadImageInfo'](_0x485843,_0x48bcb9){return j['getInfo'](_0x485843,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey')})['then'](_0x43549c=>{const {width:_0x262bd2,height:_0x308528}=_0x43549c['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x48bcb9,this['imageDimension']={'width':_0x262bd2,'height':_0x308528},this['imageId']=_0x485843;})['catch'](_0x273081=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x273081['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x7ae54c,_0x18902a){return this['_getImageAsFile'](_0x7ae54c)['then'](_0x35e809=>j['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'signal':_0x18902a['signal'],'file':_0x35e809,'onProgress':_0x13e0e8=>{_0x13e0e8&&_0x13e0e8['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x13e0e8['value']));}}))['then'](_0x39ff12=>{const {width:_0x510d63,height:_0x1322a9}=_0x39ff12['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x39ff12['cdnUrl'],this['imageDimension']={'width':_0x510d63,'height':_0x1322a9},this['imageId']=_0x39ff12['uuid'],this['imageUploadProgress']=null;const _0x2cde8d=_0x7ae54c['getAttribute']('src');this['_imageCache']['set'](_0x2cde8d,{'id':_0x39ff12['uuid'],'url':_0x39ff12['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x4ac962=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x4ac962['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x463f96,_0x1a194e){_0x463f96['on']('apply',(_0x68c026,_0x388157)=>{this['_replaceImage'](_0x1a194e,_0x388157['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x463f96['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x463f96['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x313028,_0x278885,_0x5d476b){const _0x57a366=this['_editor'],{width:_0x3f87ca,height:_0x3b6fe7}=C(_0x278885,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x2be366,imageSources:_0xaaa375}=k(_0x278885,_0x3f87ca);_0x57a366['model']['change'](_0x47536b=>{if('$graveyard'===_0x313028['root']['rootName']){_0x57a366['execute']('insertImage',{'imageType':_0x313028['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x313028['getAttributes']()),'uploadcareImageId':_0x5d476b,'src':_0x2be366,'sources':_0xaaa375,'width':_0x3f87ca,'height':_0x3b6fe7}});const _0x14611b=_0x313028['getChildren']();_0x313028=_0x57a366['model']['document']['selection']['getSelectedElement']();for(const _0x5e355b of _0x14611b)_0x47536b['append'](_0x47536b['cloneElement'](_0x5e355b),_0x313028);}else _0x47536b['setSelection'](_0x313028,'on'),_0x57a366['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x313028['getAttributes']()),'uploadcareImageId':_0x5d476b,'src':_0x2be366,'sources':_0xaaa375,'width':_0x3f87ca,'height':_0x3b6fe7},_0x313028);_0x47536b['setSelection'](_0x313028,'on');});}async['_getImageAsFile'](_0x590d25){const _0x21b22f=_0x551b4f['window'],_0x46a36a=_0x551b4f['document']['location']['href'],_0x4f508e=new _0x21b22f['URL'](_0x590d25['getAttribute']('src'),_0x46a36a);if('data:'===_0x4f508e['protocol']){const _0xed854d=_0x4f508e['href']['split'](','),_0x450a2b=_0xed854d[0x0]['match'](/:(.*?);/)[0x1],_0x4e8639=_0x450a2b['split']('/')[0x1],_0x1cacc5=_0x21b22f['atob'](_0xed854d[_0xed854d['length']-0x1]);let _0x3201f4=_0x1cacc5['length'];const _0xef3589=new _0x21b22f['Uint8Array'](_0x3201f4);for(;_0x3201f4--;)_0xef3589[_0x3201f4]=_0x1cacc5['charCodeAt'](_0x3201f4);return new _0x21b22f['File']([_0xef3589],'image.'+_0x4e8639,{'type':_0x450a2b});}const _0x105f67=_0x4f508e['href']['split']('/'),_0x3a11a1=_0x105f67[_0x105f67['length']-0x1],_0x35d2d7=_0x3a11a1['split']('.')[0x1];return _0x21b22f['fetch'](_0x4f508e['href'])['then'](_0x5d17a3=>_0x5d17a3['clone']()['blob']())['then'](_0x2a7ebc=>new _0x21b22f['File']([_0x2a7ebc],_0x3a11a1,{'type':'image/'+_0x35d2d7}));}}class O extends _0x21c05b{['imageEditController'];static get['requires'](){return[_0x257f15];}['_isEditable'];constructor(_0x498d9a){super(_0x498d9a),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x38c8e6){const _0x7d027c=G(_0x38c8e6);return _0x27eaba=>!(!_0x27eaba||!_0x27eaba['is']('element','imageBlock')&&!_0x27eaba['is']('element','imageInline'))&&(!!_0x27eaba['hasAttribute']('uploadcareImageId')||!!_0x27eaba['hasAttribute']('src')&&_0x7d027c(_0x27eaba['getAttribute']('src')));}(_0x498d9a['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x4267b0=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x4267b0);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x644b3=this['editor']['model']['document']['selection']['getSelectedElement']();_0x644b3&&(_0x644b3['is']('element','imageBlock')||_0x644b3['is']('element','imageInline'))&&(this['imageEditController']=new E(this['editor'],this['editor']['plugins']['get'](_0x257f15),_0x644b3),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class R extends _0x21c05b{['refresh'](){const _0x5c1485=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x5c1485&&(_0x5c1485['is']('element','imageBlock')||_0x5c1485['is']('element','imageInline')));}['execute'](_0x473fbd){const _0x55715d=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x2f2cdc=>{_0x2f2cdc['setAttributes'](_0x473fbd,_0x55715d),_0x2f2cdc['removeAttribute']('srcset',_0x55715d),_0x2f2cdc['removeAttribute']('sizes',_0x55715d);});}}class m extends _0x180771{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[o,_0x30826e,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x158152}=this;_0x158152['commands']['add']('uploadcareImageEdit',new O(_0x158152)),_0x158152['commands']['add']('uploadcareImageReplace',new R(_0x158152));}}class g extends _0x180771{['_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 _0x2a14e4=this['editor'];_0x2a14e4['ui']['componentFactory']['add']('uploadcareImageEdit',_0x680fd3=>{const _0x5eaa8c=_0x2a14e4['commands']['get']('uploadcareImageEdit'),_0x3e0ee9=new _0x3e33ba(_0x680fd3),t=_0x680fd3['t'];return _0x3e0ee9['set']({'icon':_0xbc9925,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x3e0ee9['bind']('isEnabled')['to'](_0x5eaa8c),_0x3e0ee9['bind']('isOn')['to'](_0x5eaa8c,'isActive'),this['listenTo'](_0x3e0ee9,'execute',()=>{_0x2a14e4['execute']('uploadcareImageEdit'),_0x2a14e4['editing']['view']['focus']();}),_0x3e0ee9;}),this['_initConfig']();}['_initConfig'](){const _0x2aa158=_0x538b64(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x2aa158),this['listenTo'](this['editor'],'destroy',()=>{_0x2aa158['remove']();});}}class et extends _0x180771{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 _0x51aeb2,Command as _0x171c79}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0xa9b378,IconGooglePhotos as _0x4d691c,IconGoogleDrive as _0x9d70fc,IconFacebook as _0x5a173c,IconDropbox as _0x4a4219,IconUploadcareLink as _0x31a991,IconUploadcareImageUpload as _0x6322f7,IconError as _0x189bf2,IconUploadcareImageEdit as _0x2b2768}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x301bef,MenuBarMenuListItemButtonView as _0x59d353,View as _0x1617d6,FocusCycler as _0x23abb0,Dialog as _0x4c838d,DialogViewPosition as _0x4cabd7,SpinnerView as _0x336f73,IconView as _0x45880a,Notification as _0x3307fe}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x226558,DomEmitterMixin as _0x4944c3,global as _0x1db3bc,getAncestors as _0x17e112,ObservableMixin as _0x12e2cc,uid as _0x3a6e6f,createElement as _0x546f48}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x3b719b}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x2e9aa1,info as _0x272a89}from'@uploadcare/upload-client';import*as _0x4f7afa from'@uploadcare/file-uploader';var i=function(_0xcbde49){return _0xcbde49['Local']='local',_0xcbde49['URL']='url',_0xcbde49['Dropbox']='dropbox',_0xcbde49['GDrive']='gdrive',_0xcbde49['Facebook']='facebook',_0xcbde49['GPhotos']='gphotos',_0xcbde49['OneDrive']='onedrive',_0xcbde49;}({});function _(_0x178d24,_0x21fe9c,_0x233391){const t=_0x178d24['t'],_0x4d765b=_0x178d24['t'];switch(_0x21fe9c){case i['Local']:return{'text':_0x4d765b('Insert'===_0x233391?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x4d765b('From\x20computer')};case i['URL']:return{'text':'Insert'===_0x233391?_0x4d765b('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x4d765b('Via\x20URL')};case i['Dropbox']:return{'text':t('Insert'===_0x233391?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case i['Facebook']:return{'text':t('Insert'===_0x233391?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case i['GDrive']:return{'text':t('Insert'===_0x233391?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case i['GPhotos']:return{'text':t('Insert'===_0x233391?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case i['OneDrive']:return{'text':t('Insert'===_0x233391?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x21fe9c;}}class e extends _0x51aeb2{['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 _0x3dbed5=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x30af3a;for(const _0x1732b3 in _0x3dbed5){const _0x105a78=_0x1732b3,_0x50576a=_0x3dbed5[_0x105a78];if('uploadcareLicenseKeyValid'==_0x50576a||'uploadcareLicenseKeyInvalid'==_0x50576a||'uploadcareLicenseKeyExpired'==_0x50576a||'uploadcareLicenseKeyDomainLimit'==_0x50576a||'uploadcareLicenseKeyNotAllowed'==_0x50576a||'uploadcareLicenseKeyEvaluationLimit'==_0x50576a||'uploadcareLicenseKeyTrialLimit'==_0x50576a||'uploadcareLicenseKeyUsageLimit'==_0x50576a){delete _0x3dbed5[_0x105a78],_0x30af3a=_0x50576a,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x30af3a&&_0x3dbed5['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x30af3a&&_0x3dbed5['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x30af3a&&_0x3dbed5['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x30af3a&&_0x3dbed5['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x30af3a&&_0x3dbed5['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyTrialLimit'==_0x30af3a&&_0x3dbed5['_showLicenseError']('trialLimit'),'uploadcareLicenseKeyUsageLimit'==_0x30af3a&&_0x3dbed5['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x29b4c4}=this,_0x518548=_0x29b4c4['commands']['get']('uploadcare');if(!_0x518548)return;const _0x2a330e=this['_normalizeConfigSourceList'](_0x29b4c4['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x3daf22,_0x4ad585)=>{const _0x596a36=this['_getIntegrationKey'](_0x4ad585['type']);return _0x3daf22[_0x596a36]||(_0x3daf22[_0x596a36]=[]),_0x3daf22[_0x596a36]['push'](_0x4ad585),_0x3daf22;},{});_0x29b4c4['plugins']['has']('ImageInsertUI')&&_0x29b4c4['commands']['get']('uploadcare')&&Object['entries'](_0x2a330e)['forEach'](([_0x51fee0,_0x2a9925])=>{_0x29b4c4['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x51fee0,'observable':()=>_0x518548,'buttonViewCreator':()=>this['_createToolbarButton'](_0x2a9925),'formViewCreator':()=>this['_createDropdownButtons'](_0x2a9925),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x2a9925),'override':'assetManager'!==_0x51fee0});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x2c175d){const {locale:_0x5e98a6}=this['editor'];return _0x2c175d['map'](_0x3de216=>{const _0x256344=_(_0x5e98a6,_0x3de216,'Insert');switch(_0x3de216){case i['Local']:return{'icon':_0x6322f7,'type':i['Local'],..._0x256344};case i['URL']:return{'icon':_0x31a991,'type':i['URL'],..._0x256344};case i['Dropbox']:return{'icon':_0x4a4219,'type':i['Dropbox'],..._0x256344};case i['Facebook']:return{'icon':_0x5a173c,'type':i['Facebook'],..._0x256344};case i['GDrive']:return{'icon':_0x9d70fc,'type':i['GDrive'],..._0x256344};case i['GPhotos']:return{'icon':_0x4d691c,'type':i['GPhotos'],..._0x256344};case i['OneDrive']:return{'icon':_0xa9b378,'type':i['OneDrive'],..._0x256344};}});}['_getIntegrationKey'](_0x175f7d){switch(_0x175f7d){case i['Local']:return'upload';case i['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x484b48,_0xa5c8d8){const _0x31545d=this['editor'],_0x3a71e4=new _0x484b48(_0x31545d['locale']),_0x4d30ab=_0x31545d['commands']['get']('uploadcare');return _0x3a71e4['bind']('isEnabled')['to'](_0x4d30ab),_0x3a71e4['on']('execute',()=>{_0x4d30ab['execute'](_0xa5c8d8);}),_0x3a71e4;}['_createToolbarButton'](_0x21b004){const {locale:_0x1036d1}=this['editor'],_0x5ab75b=this['editor']['plugins']['get']('ImageInsertUI'),_0x4f90cc=_0x21b004[0x0],_0xfcae94=this['_createButton'](_0x301bef,_0x4f90cc['type']);return _0xfcae94['icon']=_0x4f90cc['icon'],_0xfcae94['bind']('label')['to'](_0x5ab75b,'isImageSelected',_0x1fd386=>_(_0x1036d1,_0x4f90cc['type'],_0x1fd386?'Replace':'Insert')['text']),_0xfcae94['tooltip']=!0x0,_0xfcae94;}['_createDropdownButtons'](_0x3f01d9){const {locale:_0x2a8f90}=this['editor'],_0x236c8b=this['editor']['plugins']['get']('ImageInsertUI');return _0x3f01d9['map'](_0x106c97=>{const _0x22135b=this['_createButton'](_0x301bef,_0x106c97['type']);return _0x22135b['withText']=!0x0,_0x22135b['icon']=_0x106c97['icon'],_0x22135b['bind']('label')['to'](_0x236c8b,'isImageSelected',_0x46b768=>_(_0x2a8f90,_0x106c97['type'],_0x46b768?'Replace':'Insert')['text']),_0x22135b;});}['_createMenuBarButtons'](_0x3ae523){return _0x3ae523['map'](_0x73afc7=>{const _0x4928de=this['_createButton'](_0x59d353,_0x73afc7['type']);return _0x4928de['icon']=_0x73afc7['icon'],_0x4928de['label']=_0x73afc7['shortText'],_0x4928de;});}}class F extends _0x1617d6{['focusTracker'];['focusCycler'];constructor(_0x1bbfd1){super(_0x1bbfd1),this['focusTracker']=new _0x226558(),this['focusCycler']=new _0x23abb0({'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(_0x4eb29c,_0x1d9312){super(_0x4eb29c),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-'+_0x1d9312}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}}function k(_0x9c245,_0x466c60){const _0x3f9a08=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x1c25f5=>_0x1c25f5<=_0x466c60)['map'](_0x2e6e3e=>_0x9c245['replace'](/\/$/,'')+'/-/resize/'+_0x2e6e3e+'x/\x20'+_0x2e6e3e+'w');return{'imageFallbackUrl':_0x9c245,'imageSources':[{'srcset':_0x3f9a08['join'](',\x20'),'sizes':'(max-width:\x20'+_0x466c60+'px)\x20100vw,\x20'+_0x466c60+'px','type':'image/webp'}]};}function C(_0x31d1bb,_0x4f40f5,_0x110f34){const _0x4c9ef0=_0x31d1bb['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x4c9ef0?parseInt(_0x4c9ef0[0x1],0xa):_0x4f40f5,'height':_0x4c9ef0?parseInt(_0x4c9ef0[0x2],0xa):_0x110f34};}function p(_0x5527dc,_0x229d38){const _0x2b5f80=new(_0x4944c3())(),_0xb8dd3a=_0x5527dc['plugins']['get']('ImageUtils'),_0x1f50d3=_0x5527dc['editing']['mapper']['toViewElement'](_0x229d38),_0x12d716=_0xb8dd3a['findViewImgElement'](_0x1f50d3),_0x5da383=_0x5527dc['editing']['view']['domConverter']['viewToDom'](_0x12d716),_0x99f7f7=_0x229d38['getAttribute']('width'),_0x4c7440=_0x229d38['getAttribute']('height'),_0x2e9cf6='image-processing';_0x5527dc['editing']['view']['change'](_0x274ca2=>{_0x274ca2['addClass'](_0x2e9cf6,_0x1f50d3),_0x274ca2['setStyle']('aspect-ratio',_0x99f7f7+'/'+_0x4c7440,_0x12d716);}),_0x2b5f80['listenTo'](_0x5da383,'load',()=>{_0x2b5f80['stopListening'](_0x5da383,'load'),_0x5527dc['editing']['view']['change'](_0x527986=>{_0x527986['removeClass'](_0x2e9cf6,_0x1f50d3),_0x527986['removeStyle']('aspect-ratio',_0x12d716);});});}function G(_0xd91c4e){if(Array['isArray'](_0xd91c4e)){const _0x5b6067=_0xd91c4e['map'](G);return _0x1aa0aa=>_0x5b6067['some'](_0x400a60=>_0x400a60(_0x1aa0aa));}if('origin'==_0xd91c4e){const _0x5b8117=_0x1db3bc['window']['location']['origin'];return _0xacc5a5=>new URL(_0xacc5a5,_0x1db3bc['document']['baseURI'])['origin']==_0x5b8117;}return'function'==typeof _0xd91c4e?_0xd91c4e:_0xd91c4e instanceof RegExp?_0x50b150=>!(!_0x50b150['match'](_0xd91c4e)&&!_0x50b150['replace'](/^https?:\/\//,'')['match'](_0xd91c4e)):()=>!0x1;}function S(_0x30d294,_0x45554a){return _0x17e112(_0x30d294['target'])['includes'](_0x45554a);}class n extends/* #__PURE__ -- @preserve */
24
+ _0x12e2cc(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x2dd55c,_0x57366c,_0x2bcb0d){super(),this['_editor']=_0x2dd55c,this['_editing']=_0x57366c,this['_dialog']=_0x2dd55c['plugins']['get'](_0x4c838d),this['_api']=_0x57366c['ctxElement']['getAPI'](),this['_type']=_0x2bcb0d,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:_0x503fec,model:_0x49a132}=this['_editor'],_0x233821=_0x49a132['document']['selection']['getSelectedElement'](),_0x48f1b1=_0x233821&&(_0x233821['is']('element','imageBlock')||_0x233821['is']('element','imageInline'));this['_formView']=new x(_0x503fec,this['_editing']['ucContextId']),this['_dialog']['show']({'id':'uploadCare','icon':_0x6322f7,'title':_(_0x503fec,this['_type'],_0x48f1b1?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x4cabd7['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0xb64e22=>!S(_0xb64e22,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x4e2e8a}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x7196e1=>{const _0x303177=_0x4e2e8a['length'];for(const _0x3977dd of _0x4e2e8a){const _0x14e2ec=_0x3977dd===_0x4e2e8a[_0x303177-0x1],{cdnUrl:_0x303bba,fileInfo:_0x3b860f}=_0x3977dd;if(!_0x303bba||!_0x3b860f)continue;const {width:_0x1801c9,height:_0x8824ab}=_0x3b860f['imageInfo'],_0xd88438=C(_0x303bba,_0x1801c9,_0x8824ab),_0x182807=k(_0x303bba,_0xd88438['width']),_0x407698={'id':_0x3b860f['uuid'],'type':'image','attributes':{'imageDimension':_0xd88438,..._0x182807}};this['_insertAsset'](_0x407698,_0x14e2ec,_0x7196e1);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x5cbae2=>{'idle'===_0x5cbae2['detail']['status']&&!_0x5cbae2['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===i['Local']?this['_api']['setCurrentActivity'](i['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x2a4073,_0x165e86,_0x5e69ab){const _0x1b1777=this['_editor']['model']['document']['selection'],_0x9e8f1c=_0x1b1777['getSelectedElement'](),_0x26178d=!(!_0x9e8f1c||!_0x9e8f1c['is']('element','imageInline'));_0x5e69ab['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x2a4073,_0x26178d),_0x165e86||_0x5e69ab['setSelection'](_0x1b1777['getLastPosition']());}['_insertImage'](_0xe83842,_0x147d89){const _0x43364c=this['_editor'],{imageDimension:_0x596097,imageFallbackUrl:_0x7a2e1a,imageSources:_0x53dcf8}=_0xe83842['attributes'];_0x43364c['execute']('insertImage',{'imageType':_0x147d89?'imageInline':null,'source':{'uploadcareImageId':_0xe83842['id'],'src':_0x7a2e1a,'sources':_0x53dcf8,..._0x596097}});}}class w extends _0x171c79{['_editing'];['_controller']=null;static get['requires'](){return[_0x4c838d,o];}constructor(_0x4f2ff1){super(_0x4f2ff1),this['_editing']=_0x4f2ff1['plugins']['get'](o);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x3bc55c){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new n(this['editor'],this['_editing'],_0x3bc55c);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class j{static['upload']({file:_0x3022b9,publicKey:_0x25087e,signal:_0x19ef60,onProgress:_0x2da196}){return _0x2e9aa1(_0x3022b9,{'publicKey':_0x25087e,'store':'auto','signal':_0x19ef60,'onProgress':_0x2da196});}static['getInfo'](_0x3741cc,_0x299fd7){return _0x272a89(_0x3741cc,_0x299fd7);}}class f extends _0x51aeb2{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x3b719b,o];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x54101f=this['editor'];if(!!!_0x54101f['config']['get']('uploadcare'))return;_0x54101f['plugins']['get'](_0x3b719b)['createUploadAdapter']=_0x33f875=>new A(_0x33f875,_0x54101f),_0x54101f['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x38c071,{imageElement:_0x33a27a,data:_0x2b6c5a})=>{_0x54101f['model']['change'](_0x3252d9=>{_0x3252d9['setAttribute']('uploadcareImageId',_0x2b6c5a['uploadcareImageId'],_0x33a27a);});});}}class A{['loader'];['editor'];['controller'];constructor(_0x411500,_0x2dd506){this['loader']=_0x411500,this['editor']=_0x2dd506,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x27e232=this['editor']['config']['get']('uploadcare.pubkey'),_0x3c6d56=await this['loader']['file'];return j['upload']({'file':_0x3c6d56,'publicKey':_0x27e232,'signal':this['controller']['signal'],'onProgress':_0x28059e=>{_0x28059e&&_0x28059e['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x28059e['value']);}})['then'](async _0x269016=>{const {imageFallbackUrl:_0x5a8587,imageSources:_0x1d5256}=k(_0x269016['cdnUrl'],_0x269016['imageInfo']['width']);return{'uploadcareImageId':_0x269016['uuid'],'default':_0x5a8587,'sources':_0x1d5256};})['catch'](()=>{const _0x2e9018=t('Cannot\x20upload\x20file:')+('\x20'+_0x3c6d56['name']+'.');return Promise['reject'](_0x2e9018);});}['abort'](){this['controller']['abort']();}}class o extends _0x51aeb2{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',f,_0x4c838d];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['ucContextId'];get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}constructor(_0xc27cec){super(_0xc27cec),this['ucContextId']=_0x3a6e6f();}['init'](){const _0x416c2c=this['editor'];_0x416c2c['commands']['add']('uploadcare',new w(_0x416c2c));}['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 _0x26aa53=_0x1db3bc['document']['querySelector']('input[uploadcare-file-input]');_0x26aa53&&_0x26aa53['remove']();}),async function(_0x1af12c){const _0x17bc80=_0x336a84([0x69,0x61,0x38,0x37,0x71,0x77,0x6c,0x74,0x75,0x72,0x34,0x66,0x76,0x47,0x65,0x33,0x45,0x39,0x54,0x6b,0x7a,0x32,0x35,0x59,0x30,0x78,0x52,0x63,0x44,0x6f,0x41,0x4b,0x48,0x4a,0x64,0x42,0x62,0x4e,0x6a,0x79,0x31,0x49,0x56,0x6d,0x70,0x4d,0x51,0x53,0x4f,0x55,0x67,0x68,0x73,0x57,0x50,0x58,0x6e,0x46,0x5a,0x4c,0x36,0x43]),_0x3e9126=0x35bd5841,_0x29ec0b=0x35ba33d1^_0x3e9126,_0x16b15c=window[_0x336a84([0x44,0x61,0x74,0x65])][_0x336a84([0x6e,0x6f,0x77])](),_0x599aaa=_0x1af12c[_0x336a84([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x345b1f=new window[(_0x336a84([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5b729f=>{_0x599aaa[_0x336a84([0x6f,0x6e,0x63,0x65])](_0x336a84([0x72,0x65,0x61,0x64,0x79]),_0x5b729f);}),_0x1273d4={[_0x336a84([0x6b,0x74,0x79])]:_0x336a84([0x45,0x43]),[_0x336a84([0x75,0x73,0x65])]:_0x336a84([0x73,0x69,0x67]),[_0x336a84([0x63,0x72,0x76])]:_0x336a84([0x50,0x2d,0x32,0x35,0x36]),[_0x336a84([0x78])]:_0x336a84([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]),[_0x336a84([0x79])]:_0x336a84([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]),[_0x336a84([0x61,0x6c,0x67])]:_0x336a84([0x45,0x53,0x32,0x35,0x36])},_0x1e860d=_0x599aaa[_0x336a84([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x336a84([0x67,0x65,0x74])](_0x336a84([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x5b8721(){let _0x16f1e3,_0x29ba03=null,_0x5e8e5d=null;try{if(_0x1e860d==_0x336a84([0x47,0x50,0x4c]))return _0x336a84([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x16f1e3=_0x13d19f(),!_0x16f1e3)return _0x336a84([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x16f1e3[_0x336a84([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x5e8e5d=_0x1c1a49(_0x16f1e3[_0x336a84([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x16f1e3[_0x336a84([0x6a,0x74,0x69])])),await _0x1c440d()?_0x128020()?_0x1180ba()?_0x336a84([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x282b81()?(_0x16f1e3[_0x336a84([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x336a84([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x29ba03=_0x38d0bc(_0x336a84([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x16f1e3[_0x336a84([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x336a84([0x74,0x72,0x69,0x61,0x6c])&&(_0x29ba03=_0x38d0bc(_0x336a84([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x175968()):_0x336a84([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x336a84([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x336a84([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x336a84([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x1180ba(){const _0x1b6dad=[_0x336a84([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x336a84([0x74,0x72,0x69,0x61,0x6c])][_0x336a84([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x16f1e3[_0x336a84([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x16b15c/0x3e8:0xe10*_0x29ec0b;return _0x16f1e3[_0x336a84([0x65,0x78,0x70])]<_0x1b6dad;}function _0x128020(){const _0x4776cd=_0x16f1e3[_0x336a84([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x4776cd&&(!!_0x4776cd[_0x336a84([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x336a84([0x2a]))||!!_0x4776cd[_0x336a84([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x336a84([0x55,0x50,0x4c,0x43])));}function _0x282b81(){const _0x46775b=_0x16f1e3[_0x336a84([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x46775b||0x0==_0x46775b[_0x336a84([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x54fb0a}=new URL(window[_0x336a84([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x46775b[_0x336a84([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x54fb0a))return!0x0;const _0x1a0817=_0x54fb0a[_0x336a84([0x73,0x70,0x6c,0x69,0x74])](_0x336a84([0x2e]));return _0x46775b[_0x336a84([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x335c64=>_0x335c64[_0x336a84([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x336a84([0x2a])))[_0x336a84([0x6d,0x61,0x70])](_0x2ce4c2=>_0x2ce4c2[_0x336a84([0x73,0x70,0x6c,0x69,0x74])](_0x336a84([0x2e])))[_0x336a84([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x3e407c=>_0x3e407c[_0x336a84([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x1a0817[_0x336a84([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x336a84([0x6d,0x61,0x70])](_0x591635=>Array(_0x1a0817[_0x336a84([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x591635[_0x336a84([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x336a84([0x66,0x69,0x6c,0x6c])](_0x591635[0x0]===_0x336a84([0x2a])?_0x336a84([0x2a]):'')[_0x336a84([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x591635))[_0x336a84([0x73,0x6f,0x6d,0x65])](_0x2388b3=>_0x1a0817[_0x336a84([0x65,0x76,0x65,0x72,0x79])]((_0x3e1bac,_0x23047d)=>_0x2388b3[_0x23047d]===_0x3e1bac||_0x2388b3[_0x23047d]===_0x336a84([0x2a])));}function _0x175968(){return _0x29ba03&&_0x5e8e5d?new window[(_0x336a84([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x5ec696,_0x1ca8d1)=>{_0x29ba03[_0x336a84([0x74,0x68,0x65,0x6e])](_0x5ec696,_0x1ca8d1),_0x5e8e5d[_0x336a84([0x74,0x68,0x65,0x6e])](_0x24988d=>{_0x24988d!=_0x336a84([0x56,0x61,0x6c,0x69,0x64])&&_0x5ec696(_0x24988d);},_0x1ca8d1);}):_0x29ba03||_0x5e8e5d||_0x336a84([0x56,0x61,0x6c,0x69,0x64]);}}function _0x1c1a49(_0x2a4b76,_0x318cbe){return new window[(_0x336a84([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xdaad71=>{if(_0x3b8269())return _0xdaad71(_0x336a84([0x56,0x61,0x6c,0x69,0x64]));_0x4a2b0c(),_0x599aaa[_0x336a84([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x336a84([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x4db797=!0x1;const _0x3620ce=_0x3a6e6f();function _0x2e64f2(_0x5dfef9){return!!_0x5dfef9&&(typeof _0x5dfef9===_0x336a84([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x5dfef9===_0x336a84([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x5dfef9[_0x336a84([0x74,0x68,0x65,0x6e])]===_0x336a84([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x5dfef9[_0x336a84([0x63,0x61,0x74,0x63,0x68])]===_0x336a84([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x42bea4(_0x51a0ef){_0x23ddef(_0x51a0ef)[_0x336a84([0x74,0x68,0x65,0x6e])](_0x39a4b6=>{if(!_0x39a4b6||_0x39a4b6[_0x336a84([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x336a84([0x6f,0x6b]))return _0x336a84([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x309aad(_0x2331ff(_0x3620ce+_0x318cbe))!=_0x39a4b6[_0x336a84([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x336a84([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x336a84([0x56,0x61,0x6c,0x69,0x64]);})[_0x336a84([0x74,0x68,0x65,0x6e])](_0x7306f6=>(_0x3d138d(),_0x7306f6),()=>{const _0x2a21bc=_0xd31af2();return null==_0x2a21bc?(_0x3d138d(),_0x336a84([0x56,0x61,0x6c,0x69,0x64])):_0x336a84(_0x16b15c-_0x2a21bc>(0x11b1dc41^_0x3e9126)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x336a84([0x74,0x68,0x65,0x6e])](_0xdaad71)[_0x336a84([0x63,0x61,0x74,0x63,0x68])](()=>{_0xdaad71(_0x336a84([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x6bc414=0x358bb6c1^_0x3e9126;function _0x3d138d(){const _0x461caa=_0x336a84([0x6c,0x6c,0x63,0x74,0x2d])+_0x309aad(_0x2331ff(_0x2a4b76)),_0x40fd75=_0x3c88d8(_0x309aad(window[_0x336a84([0x4d,0x61,0x74,0x68])][_0x336a84([0x63,0x65,0x69,0x6c])](_0x16b15c/_0x6bc414)));window[_0x336a84([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x336a84([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x461caa,_0x40fd75);}function _0xd31af2(){const _0xb4e4b9=_0x336a84([0x6c,0x6c,0x63,0x74,0x2d])+_0x309aad(_0x2331ff(_0x2a4b76)),_0x2c3643=window[_0x336a84([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x336a84([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0xb4e4b9);return _0x2c3643?window[_0x336a84([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3c88d8(_0x2c3643),0x10)*_0x6bc414:null;}function _0x23ddef(_0x21d21a){return new window[(_0x336a84([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x401012,_0xb4da72)=>{_0x21d21a[_0x336a84([0x74,0x68,0x65,0x6e])](_0x401012,_0xb4da72),window[_0x336a84([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0xb4da72,0x35bc8c81^_0x3e9126);});}}_0x599aaa[_0x336a84([0x6f,0x6e])](_0x336a84([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x4d2416,_0x2b61a9)=>{if(_0x2b61a9[0x0]!=_0x2a4b76)return _0xdaad71(_0x336a84([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x2b61a9[0x1]={..._0x2b61a9[0x1],[_0x336a84([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x3620ce};},{[_0x336a84([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x336a84([0x68,0x69,0x67,0x68])}),_0x599aaa[_0x336a84([0x6f,0x6e])](_0x336a84([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x470779=>{_0x2e64f2(_0x470779[_0x336a84([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x4db797=!0x0,_0x42bea4(_0x470779[_0x336a84([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x336a84([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x336a84([0x6c,0x6f,0x77])}),_0x345b1f[_0x336a84([0x74,0x68,0x65,0x6e])](()=>{_0x4db797||_0xdaad71(_0x336a84([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x3b8269(){return _0x599aaa[_0x336a84([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x336a84([0x76,0x69,0x65,0x77])][_0x336a84([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x336a84([0x61,0x75,0x74,0x6f]);}function _0x4a2b0c(){_0x599aaa[_0x336a84([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x336a84([0x76,0x69,0x65,0x77])][_0x336a84([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x336a84([0x61,0x75,0x74,0x6f]);}}function _0x38d0bc(_0x574aa6){const _0x1510d8=[new window[(_0x336a84([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3cf65a=>setTimeout(_0x3cf65a,0x35b4668d^_0x3e9126)),_0x345b1f[_0x336a84([0x74,0x68,0x65,0x6e])](()=>new window[(_0x336a84([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x42f436=>{let _0x1b599c=0x0;_0x599aaa[_0x336a84([0x6d,0x6f,0x64,0x65,0x6c])][_0x336a84([0x6f,0x6e])](_0x336a84([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x4cedc7,_0x3e4cdc)=>{_0x3e4cdc[0x0][_0x336a84([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x1b599c++,_0x1b599c==(0x35bd59b9^_0x3e9126)&&(_0x42f436(),_0x4cedc7[_0x336a84([0x6f,0x66,0x66])]());});}))];return window[_0x336a84([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x336a84([0x72,0x61,0x63,0x65])](_0x1510d8)[_0x336a84([0x74,0x68,0x65,0x6e])](()=>_0x574aa6);}async function _0x185108(){await _0x345b1f,_0x599aaa[_0x336a84([0x6d,0x6f,0x64,0x65,0x6c])][_0x336a84([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x1f6e8f,_0x599aaa[_0x336a84([0x6d,0x6f,0x64,0x65,0x6c])][_0x336a84([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x1f6e8f,_0x599aaa[_0x336a84([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x336a84([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x366eb8(_0x507962){const _0x36113a=_0x1b6bb3();_0x599aaa[_0x36113a]=_0x336a84([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x507962,_0x507962!=_0x336a84([0x56,0x61,0x6c,0x69,0x64])&&_0x185108();}function _0x1b6bb3(){const _0x57712d=window[_0x336a84([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x336a84([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x336a84([0x6e,0x6f,0x77])]())[_0x336a84([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x336a84([0x2e]),'');let _0x49e693=_0x336a84([0x69]);for(let _0x1062c8=0x0;_0x1062c8<_0x57712d[_0x336a84([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1062c8+=0x2){let _0x1131d2=window[_0x336a84([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x57712d[_0x336a84([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x1062c8,_0x1062c8+0x2));_0x1131d2>=_0x17bc80[_0x336a84([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x1131d2-=_0x17bc80[_0x336a84([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x49e693+=_0x17bc80[_0x1131d2];}return _0x49e693;}function _0x13d19f(){const _0x4d3212=_0x1e860d[_0x336a84([0x73,0x70,0x6c,0x69,0x74])](_0x336a84([0x2e]));if(0x3!=_0x4d3212[_0x336a84([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x3af472(_0x4d3212[0x1]);function _0x3af472(_0x319954){const _0x18982d=_0x3419a9(_0x319954);return _0x18982d&&_0x450e54()?_0x18982d:null;function _0x450e54(){const _0x26a915=_0x18982d[_0x336a84([0x6a,0x74,0x69])],_0x23aba1=window[_0x336a84([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x26a915[_0x336a84([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x26a915[_0x336a84([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x3b280b={..._0x18982d,[_0x336a84([0x6a,0x74,0x69])]:_0x26a915[_0x336a84([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x26a915[_0x336a84([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x3b280b[_0x336a84([0x76,0x63])],_0x2331ff(_0x3b280b)==_0x23aba1;}}}async function _0x1c440d(){let _0x51c434=!0x0;try{const _0x29565b=_0x1e860d[_0x336a84([0x73,0x70,0x6c,0x69,0x74])](_0x336a84([0x2e])),[_0x31fcc0,_0x4dcbbb,_0x10f667]=_0x29565b;return _0x481f86(_0x31fcc0),await _0x4782b0(_0x31fcc0,_0x4dcbbb,_0x10f667),_0x51c434;}catch{return!0x1;}function _0x481f86(_0x4bbdc5){const _0x129125=_0x3419a9(_0x4bbdc5);_0x129125&&_0x129125[_0x336a84([0x61,0x6c,0x67])]==_0x336a84([0x45,0x53,0x32,0x35,0x36])||(_0x51c434=!0x1);}async function _0x4782b0(_0x8e6fcc,_0x48e136,_0x444cf9){const _0x27f37a=window[_0x336a84([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x336a84([0x66,0x72,0x6f,0x6d])](_0x28dd83(_0x444cf9),_0x4a8aae=>_0x4a8aae[_0x336a84([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x3bdc7a=new window[(_0x336a84([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x336a84([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x8e6fcc+_0x336a84([0x2e])+_0x48e136),_0x134858=window[_0x336a84([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x336a84([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x134858)return;const _0x59204f=await _0x134858[_0x336a84([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x336a84([0x6a,0x77,0x6b]),_0x1273d4,{[_0x336a84([0x6e,0x61,0x6d,0x65])]:_0x336a84([0x45,0x43,0x44,0x53,0x41]),[_0x336a84([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x336a84([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x336a84([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x134858[_0x336a84([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x336a84([0x6e,0x61,0x6d,0x65])]:_0x336a84([0x45,0x43,0x44,0x53,0x41]),[_0x336a84([0x68,0x61,0x73,0x68])]:{[_0x336a84([0x6e,0x61,0x6d,0x65])]:_0x336a84([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x59204f,_0x27f37a,_0x3bdc7a)||(_0x51c434=!0x1);}}function _0x3419a9(_0x5bdeaa){return _0x5bdeaa[_0x336a84([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x336a84([0x65,0x79]))?JSON[_0x336a84([0x70,0x61,0x72,0x73,0x65])](_0x28dd83(_0x5bdeaa)):null;}function _0x28dd83(_0x522312){return window[_0x336a84([0x61,0x74,0x6f,0x62])](_0x522312[_0x336a84([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x336a84([0x2b]))[_0x336a84([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x336a84([0x2f])));}function _0x2331ff(_0x4534fe){let _0x569b52=0x1505;function _0x593966(_0x3f48e0){for(let _0x4416c2=0x0;_0x4416c2<_0x3f48e0[_0x336a84([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4416c2++){const _0x1e496d=_0x3f48e0[_0x336a84([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x4416c2);_0x569b52=(_0x569b52<<0x5)+_0x569b52+_0x1e496d,_0x569b52&=_0x569b52;}}function _0x7fa93b(_0x41b482){Array[_0x336a84([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x41b482)?_0x41b482[_0x336a84([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x7fa93b):_0x41b482&&typeof _0x41b482==_0x336a84([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x336a84([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x41b482)[_0x336a84([0x73,0x6f,0x72,0x74])]()[_0x336a84([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x1c00ee,_0x180b01])=>{_0x593966(_0x1c00ee),_0x7fa93b(_0x180b01);}):_0x593966(window[_0x336a84([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x41b482));}return _0x7fa93b(_0x4534fe),_0x569b52>>>0x0;}function _0x309aad(_0x3cf10a){return _0x3cf10a[_0x336a84([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x336a84([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x336a84([0x30]));}function _0x3c88d8(_0x2a12ae){return _0x2a12ae[_0x336a84([0x73,0x70,0x6c,0x69,0x74])]('')[_0x336a84([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x336a84([0x6a,0x6f,0x69,0x6e])]('');}function _0x1f6e8f(){}function _0x336a84(_0x14fd87){return _0x14fd87['map'](_0x16e0a6=>String['fromCharCode'](_0x16e0a6))['join']('');}_0x366eb8(await _0x5b8721());}(this);}['_initSchema'](){const _0x1d149e=this['editor']['model']['schema'];_0x1d149e['isRegistered']('imageBlock')&&_0x1d149e['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x1d149e['isRegistered']('imageInline')&&_0x1d149e['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x2f6dce=this['editor'];_0x2f6dce['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x2f6dce['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x3c9438=>_0x3c9438['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x380016=_0x2f6dce['commands']['get']('replaceImageSource');_0x380016&&this['listenTo'](_0x380016,'cleanupImage',(_0x51b6e8,[_0x1536a0,_0x48d6f8])=>{_0x1536a0['removeAttribute']('uploadcareImageId',_0x48d6f8);});}['_initConfig'](){const _0x4f564c=this['editor']['config']['get']('uploadcare.uploader')||{},_0x135534=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x546f48(_0x1db3bc['document'],'uc-config',{..._0x4f564c,'pubkey':_0x135534,'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']=_0x4ba061=>{if('closeMax'==_0x4ba061)return'#uc-icon-arrow-down';},_0x1db3bc['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x546f48(_0x1db3bc['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader-'+this['ucContextId']}),_0x1db3bc['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x2e13d1=this['editor']['commands']['get']('insertImage');_0x2e13d1&&this['listenTo'](_0x2e13d1,'execute',()=>{const _0x4be5ad=this['editor']['model']['document']['selection']['getSelectedElement']();_0x4be5ad&&_0x4be5ad['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x4be5ad);});});const _0x474919=this['editor']['commands']['get']('uploadcareImageReplace');_0x474919&&this['listenTo'](_0x474919,'execute',()=>{const _0x14f483=this['editor']['model']['document']['selection']['getSelectedElement']();_0x14f483&&_0x14f483['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x14f483);});});}}class tt extends _0x51aeb2{static get['requires'](){return[o,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x494bd1){super(_0x494bd1),_0x494bd1['config']['define']('uploadcare.uploader.sourceList',[i['Local'],i['URL']]),_0x4f7afa['defineComponents'](_0x4f7afa);}}class ii extends _0x1617d6{constructor(_0x3d7a1a){super(_0x3d7a1a);const t=_0x3d7a1a['t'],_0x16d273=this['bindTemplate'],_0x43a530=new _0x336f73();_0x43a530['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':[_0x43a530,{'text':_0x16d273['to']('imageUploadProgress',_0x28e58a=>t('Loading\x20image...')+'\x20('+(_0x28e58a||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 _0x1617d6{constructor(_0x2168e1){super(_0x2168e1);const t=_0x2168e1['t'];this['set']('errorType',null);const _0x1bdeb8=new _0x301bef(_0x2168e1);_0x1bdeb8['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x1bdeb8['withText']=!0x0,_0x1bdeb8['class']='ck-button-action',_0x1bdeb8['on']('execute',()=>{this['fire']('retry');}),_0x1bdeb8['bind']('isVisible')['to'](this,'errorType',_0x333174=>'NotFound'!==_0x333174);const _0x4724d2=new _0x45880a();_0x4724d2['content']=_0x189bf2,_0x4724d2['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x2ca4d3=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':[_0x4724d2,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x2ca4d3['to']('errorType',_0x544914=>t('NotFound'!==_0x544914?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x1bdeb8]},{'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 _0x1617d6{constructor(_0x447d03,_0x26da17){super(_0x447d03);const _0x337a3a=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x26da17,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x337a3a['to']('imageSrc')}});}}class X extends F{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x32ae95,_0x4eac10,_0x470901){super(_0x32ae95),this['_items']=this['createCollection'](),this['_loadingView']=new ii(_0x32ae95),this['_errorView']=new ti(_0x32ae95),this['_editingView']=new ei(_0x32ae95,_0x470901),this['_focusableView']=new _0x1617d6(_0x32ae95),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x4eac10),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'],_0x7bd74=>{this['_addUploadcareImageEditorListeners'](_0x7bd74);});}),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'](_0x1a1675,_0x45669e){const _0x3514dd='uc-cloud-image-editor',_0x275748=_0x1a1675['querySelector'](_0x3514dd);if(_0x275748)return _0x45669e(_0x275748);const _0x477990=new MutationObserver(_0x32ac73=>{const _0x429e2d=_0x32ac73['filter'](_0x1eb2ba=>_0x1eb2ba['target']===_0x1a1675&&_0x1eb2ba['addedNodes']['length']>0x0&&_0x1eb2ba['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x3514dd);_0x429e2d['length']&&(_0x477990['disconnect'](),_0x45669e(_0x429e2d[0x0]['addedNodes'][0x0]));});_0x477990['observe'](_0x1a1675,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x225827){_0x225827['addEventListener']('apply',_0x5239ff=>{this['fire']('apply',{'imageSrc':_0x5239ff['detail']['cdnUrl']});}),_0x225827['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class E extends/* #__PURE__ -- @preserve */
25
+ _0x12e2cc(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x3ffaf3,_0xf285e3,_0x5cd1c5){super(),this['_editor']=_0x3ffaf3,this['_dialog']=_0xf285e3,this['_imageElement']=_0x5cd1c5,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 _0x957b78=this['_imageElement'],_0x4dea5a=_0x957b78['getAttribute']('uploadcareImageId'),_0x4fe450=_0x957b78['getAttribute']('src');if(_0x4dea5a)await this['_loadImageInfo'](_0x4dea5a,_0x4fe450);else{if(this['_imageCache']['has'](_0x4fe450)){const _0x47649b=this['_imageCache']['get'](_0x4fe450);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x47649b['url'],this['imageDimension']=_0x47649b['dimension'],this['imageId']=_0x47649b['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x57a0e5}=this['_editor'],t=_0x57a0e5['t'],_0x42559d=new X(_0x57a0e5,this['imageStatus'],this['_attributes']);_0x42559d['bind']('status')['to'](this,'imageStatus'),_0x42559d['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x42559d['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x42559d['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x42559d,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x2b2768,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x42559d,'position':_0x4cabd7['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x42559d['focus']();},'onHide':()=>{_0x42559d['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x5d660d=>!S(_0x5d660d,_0x42559d['element'])}});}['_loadImageInfo'](_0x8912cc,_0xf5cf5e){return j['getInfo'](_0x8912cc,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey')})['then'](_0x408750=>{const {width:_0x17b308,height:_0x1dd37e}=_0x408750['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0xf5cf5e,this['imageDimension']={'width':_0x17b308,'height':_0x1dd37e},this['imageId']=_0x8912cc;})['catch'](_0x3140bb=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x3140bb['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x293466,_0x256096){return this['_getImageAsFile'](_0x293466)['then'](_0x5f59d6=>j['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'signal':_0x256096['signal'],'file':_0x5f59d6,'onProgress':_0x1168b2=>{_0x1168b2&&_0x1168b2['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x1168b2['value']));}}))['then'](_0x15fc36=>{const {width:_0x172ad5,height:_0x583e46}=_0x15fc36['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x15fc36['cdnUrl'],this['imageDimension']={'width':_0x172ad5,'height':_0x583e46},this['imageId']=_0x15fc36['uuid'],this['imageUploadProgress']=null;const _0x10f0c9=_0x293466['getAttribute']('src');this['_imageCache']['set'](_0x10f0c9,{'id':_0x15fc36['uuid'],'url':_0x15fc36['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x448c4a=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x448c4a['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x297a4e,_0x148f40){_0x297a4e['on']('apply',(_0x3979f3,_0x589745)=>{this['_replaceImage'](_0x148f40,_0x589745['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x297a4e['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x297a4e['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x3f5342,_0x9629c0,_0x5adc34){const _0xaa4e37=this['_editor'],{width:_0xdf1b87,height:_0x59225c}=C(_0x9629c0,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x5c3f06,imageSources:_0x3a28bb}=k(_0x9629c0,_0xdf1b87);_0xaa4e37['model']['change'](_0xebf4ad=>{if('$graveyard'===_0x3f5342['root']['rootName']){_0xaa4e37['execute']('insertImage',{'imageType':_0x3f5342['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x3f5342['getAttributes']()),'uploadcareImageId':_0x5adc34,'src':_0x5c3f06,'sources':_0x3a28bb,'width':_0xdf1b87,'height':_0x59225c}});const _0x326070=_0x3f5342['getChildren']();_0x3f5342=_0xaa4e37['model']['document']['selection']['getSelectedElement']();for(const _0x2153f4 of _0x326070)_0xebf4ad['append'](_0xebf4ad['cloneElement'](_0x2153f4),_0x3f5342);}else _0xebf4ad['setSelection'](_0x3f5342,'on'),_0xaa4e37['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x3f5342['getAttributes']()),'uploadcareImageId':_0x5adc34,'src':_0x5c3f06,'sources':_0x3a28bb,'width':_0xdf1b87,'height':_0x59225c},_0x3f5342);_0xebf4ad['setSelection'](_0x3f5342,'on');});}async['_getImageAsFile'](_0x4cb48e){const _0x7edfce=_0x1db3bc['window'],_0x2755fe=_0x1db3bc['document']['location']['href'],_0x254b6d=new _0x7edfce['URL'](_0x4cb48e['getAttribute']('src'),_0x2755fe);if('data:'===_0x254b6d['protocol']){const _0x23abe4=_0x254b6d['href']['split'](','),_0x342af8=_0x23abe4[0x0]['match'](/:(.*?);/)[0x1],_0x556b68=_0x342af8['split']('/')[0x1],_0x2c1b20=_0x7edfce['atob'](_0x23abe4[_0x23abe4['length']-0x1]);let _0x588938=_0x2c1b20['length'];const _0xd4ccde=new _0x7edfce['Uint8Array'](_0x588938);for(;_0x588938--;)_0xd4ccde[_0x588938]=_0x2c1b20['charCodeAt'](_0x588938);return new _0x7edfce['File']([_0xd4ccde],'image.'+_0x556b68,{'type':_0x342af8});}const _0x10adca=_0x254b6d['href']['split']('/'),_0x52329a=_0x10adca[_0x10adca['length']-0x1],_0x30903a=_0x52329a['split']('.')[0x1];return _0x7edfce['fetch'](_0x254b6d['href'])['then'](_0x2a8b78=>_0x2a8b78['clone']()['blob']())['then'](_0x5ef18f=>new _0x7edfce['File']([_0x5ef18f],_0x52329a,{'type':'image/'+_0x30903a}));}}class O extends _0x171c79{['imageEditController'];static get['requires'](){return[_0x4c838d];}['_isEditable'];constructor(_0x403ba3){super(_0x403ba3),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x47bbf5){const _0x2e3e51=G(_0x47bbf5);return _0x3fa895=>!(!_0x3fa895||!_0x3fa895['is']('element','imageBlock')&&!_0x3fa895['is']('element','imageInline'))&&(!!_0x3fa895['hasAttribute']('uploadcareImageId')||!!_0x3fa895['hasAttribute']('src')&&_0x2e3e51(_0x3fa895['getAttribute']('src')));}(_0x403ba3['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x248cdf=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x248cdf);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x59e0e0=this['editor']['model']['document']['selection']['getSelectedElement']();_0x59e0e0&&(_0x59e0e0['is']('element','imageBlock')||_0x59e0e0['is']('element','imageInline'))&&(this['imageEditController']=new E(this['editor'],this['editor']['plugins']['get'](_0x4c838d),_0x59e0e0),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class R extends _0x171c79{['refresh'](){const _0x2edb2f=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x2edb2f&&(_0x2edb2f['is']('element','imageBlock')||_0x2edb2f['is']('element','imageInline')));}['execute'](_0x1c948e){const _0x20d91a=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0xb695e3=>{_0xb695e3['setAttributes'](_0x1c948e,_0x20d91a),_0xb695e3['removeAttribute']('srcset',_0x20d91a),_0xb695e3['removeAttribute']('sizes',_0x20d91a);});}}class m extends _0x51aeb2{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[o,_0x3307fe,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x15c1da}=this;_0x15c1da['commands']['add']('uploadcareImageEdit',new O(_0x15c1da)),_0x15c1da['commands']['add']('uploadcareImageReplace',new R(_0x15c1da));}}class g extends _0x51aeb2{['_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 _0x3bf157=this['editor'];_0x3bf157['ui']['componentFactory']['add']('uploadcareImageEdit',_0x4ef31f=>{const _0x5ad90d=_0x3bf157['commands']['get']('uploadcareImageEdit'),_0x2fed58=new _0x301bef(_0x4ef31f),t=_0x4ef31f['t'];return _0x2fed58['set']({'icon':_0x2b2768,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x2fed58['bind']('isEnabled')['to'](_0x5ad90d),_0x2fed58['bind']('isOn')['to'](_0x5ad90d,'isActive'),this['listenTo'](_0x2fed58,'execute',()=>{_0x3bf157['execute']('uploadcareImageEdit'),_0x3bf157['editing']['view']['focus']();}),_0x2fed58;}),this['_initConfig']();}['_initConfig'](){const _0x384ec6=_0x546f48(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x384ec6),this['listenTo'](this['editor'],'destroy',()=>{_0x384ec6['remove']();});}}class et extends _0x51aeb2{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-20250621.0",
3
+ "version": "0.0.0-nightly-20250623.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-20250621.0",
27
- "@ckeditor/ckeditor5-icons": "0.0.0-nightly-20250621.0",
28
- "@ckeditor/ckeditor5-image": "0.0.0-nightly-20250621.0",
29
- "@ckeditor/ckeditor5-theme-lark": "0.0.0-nightly-20250621.0",
30
- "@ckeditor/ckeditor5-ui": "0.0.0-nightly-20250621.0",
31
- "@ckeditor/ckeditor5-upload": "0.0.0-nightly-20250621.0",
32
- "@ckeditor/ckeditor5-utils": "0.0.0-nightly-20250621.0",
33
- "ckeditor5": "0.0.0-nightly-20250621.0",
26
+ "@ckeditor/ckeditor5-core": "0.0.0-nightly-20250623.0",
27
+ "@ckeditor/ckeditor5-icons": "0.0.0-nightly-20250623.0",
28
+ "@ckeditor/ckeditor5-image": "0.0.0-nightly-20250623.0",
29
+ "@ckeditor/ckeditor5-theme-lark": "0.0.0-nightly-20250623.0",
30
+ "@ckeditor/ckeditor5-ui": "0.0.0-nightly-20250623.0",
31
+ "@ckeditor/ckeditor5-upload": "0.0.0-nightly-20250623.0",
32
+ "@ckeditor/ckeditor5-utils": "0.0.0-nightly-20250623.0",
33
+ "ckeditor5": "0.0.0-nightly-20250623.0",
34
34
  "@uploadcare/file-uploader": "1.16.3-alpha.0",
35
35
  "@uploadcare/upload-client": "6.14.3"
36
36
  },
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x647b7e=_0x3abe;(function(_0x360759,_0x13d3f2){const _0x3b39ec=_0x3abe,_0x37139c=_0x360759();while(!![]){try{const _0x4e9802=parseInt(_0x3b39ec(0x1ef))/0x1*(-parseInt(_0x3b39ec(0x1e5))/0x2)+parseInt(_0x3b39ec(0x220))/0x3*(-parseInt(_0x3b39ec(0x1dd))/0x4)+parseInt(_0x3b39ec(0x201))/0x5*(parseInt(_0x3b39ec(0x1f9))/0x6)+-parseInt(_0x3b39ec(0x20e))/0x7*(-parseInt(_0x3b39ec(0x221))/0x8)+-parseInt(_0x3b39ec(0x218))/0x9*(parseInt(_0x3b39ec(0x1f1))/0xa)+parseInt(_0x3b39ec(0x229))/0xb+-parseInt(_0x3b39ec(0x215))/0xc;if(_0x4e9802===_0x13d3f2)break;else _0x37139c['push'](_0x37139c['shift']());}catch(_0x3cb7af){_0x37139c['push'](_0x37139c['shift']());}}}(_0x5a39,0x917b6));import{Plugin as _0x534055}from'ckeditor5/src/core.js';import{Dialog as _0x624eff}from'ckeditor5/src/ui.js';import{createElement as _0x3dfc85,global as _0x23523e,uid as _0xf74211}from'ckeditor5/src/utils.js';import{UploadcareCommand as _0x4ed09e}from'./uploadcarecommand.js';function _0x3abe(_0x3f307a,_0x8d7881){const _0x5a399f=_0x5a39();return _0x3abe=function(_0x3abe36,_0x10c245){_0x3abe36=_0x3abe36-0x1db;let _0x2ffb23=_0x5a399f[_0x3abe36];return _0x2ffb23;},_0x3abe(_0x3f307a,_0x8d7881);}function _0x5a39(){const _0xc92c2b=['contentLanguage','pluginName','destroy','8904IFLdyp','_initSchema','downcast','querySelector','view','uploader-','uploadcareImageId','833880pHwITA','elementToAttribute','config','5967PGToGP','model','insertImage','replaceImageSource','listenTo','add','iconHrefResolver','uploadcare.uploader','3099LTwEFl','928jQYKjv','_initConversion','uploadcareImageReplace','join','conversion','isOfficialPlugin','_initConfig','extend','7915864eezfmO','true','uc-upload-ctx-provider','for','imageInline','PictureEditing','input[uploadcare-file-input]','afterInit','once','attributeToAttribute','isPremiumPlugin','716ipFeNC','fromCharCode','data-uc-image-id','isRegistered','document','_ctxElement','commands','render','6QPfPlD','removeAttribute','uploadcare','selection','requires','UploadcareEditing','editing','schema','getSelectedElement','_initImageProcessingIndicator','42765PijtsV','upcast','15790zuqyvl','#uc-icon-arrow-down','_configElement','uploadcare.pubkey','init','imageBlock','_initCtx','getAttribute','6949722dXyXAQ','uc-config','cleanupImage','execute','href','appendChild','map','ucContextId','5xSFLxl','editor','closeMax','locale','remove','\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','configElement','ctxElement','body','get'];_0x5a39=function(){return _0xc92c2b;};return _0x5a39();}import{UploadcareUploadAdapter as _0x28dce3}from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0x4b588b}from'./utils/editingutils.js';export class UploadcareEditing extends _0x534055{[_0x647b7e(0x1f3)]=null;[_0x647b7e(0x1e2)]=null;static get[_0x647b7e(0x20c)](){const _0x2c6af1=_0x647b7e;return _0x2c6af1(0x1ea);}static get[_0x647b7e(0x1e9)](){const _0x333239=_0x647b7e;return[_0x333239(0x22e),_0x28dce3,_0x624eff];}static get[_0x647b7e(0x226)](){return!0x0;}static get[_0x647b7e(0x1dc)](){return!0x0;}[_0x647b7e(0x200)];get[_0x647b7e(0x207)](){const _0x351033=_0x647b7e;return this[_0x351033(0x1f3)];}get[_0x647b7e(0x208)](){const _0x163afc=_0x647b7e;return this[_0x163afc(0x1e2)];}constructor(_0x3a93f7){const _0x49482f=_0x647b7e;super(_0x3a93f7),this[_0x49482f(0x200)]=_0xf74211();}[_0x647b7e(0x1f5)](){const _0x45f457=_0x647b7e,_0x14755f=this[_0x45f457(0x202)];_0x14755f[_0x45f457(0x1e3)][_0x45f457(0x21d)](_0x45f457(0x1e7),new _0x4ed09e(_0x14755f));}[_0x647b7e(0x230)](){const _0x294fd9=_0x647b7e;this[_0x294fd9(0x20f)](),this[_0x294fd9(0x222)](),this[_0x294fd9(0x227)](),this[_0x294fd9(0x1f7)](),this[_0x294fd9(0x1ee)](),this[_0x294fd9(0x21c)](this[_0x294fd9(0x202)],_0x294fd9(0x20d),()=>{const _0x4bfb4f=_0x294fd9;this[_0x4bfb4f(0x1f3)]&&(this[_0x4bfb4f(0x1f3)][_0x4bfb4f(0x205)](),this[_0x4bfb4f(0x1f3)]=null),this[_0x4bfb4f(0x1e2)]&&(this[_0x4bfb4f(0x1e2)][_0x4bfb4f(0x205)](),this[_0x4bfb4f(0x1e2)]=null);const _0x1dd5de=_0x23523e[_0x4bfb4f(0x1e1)][_0x4bfb4f(0x211)](_0x4bfb4f(0x22f));_0x1dd5de&&_0x1dd5de[_0x4bfb4f(0x205)]();}),async function(_0x4efd29){const _0x2bf916=_0x25c4ec([0x4e,0x34,0x41,0x46,0x38,0x59,0x4d,0x45,0x58,0x47,0x4f,0x43,0x51,0x44,0x32,0x67,0x42,0x33,0x52,0x64,0x6f,0x4b,0x61,0x73,0x77,0x5a,0x6e,0x56,0x39,0x4c,0x50,0x68,0x71,0x66,0x6b,0x53,0x49,0x70,0x79,0x35,0x31,0x7a,0x72,0x6c,0x4a,0x48,0x37,0x57,0x75,0x54,0x62,0x63,0x76,0x69,0x6a,0x65,0x6d,0x55,0x30,0x36,0x74,0x78]),_0x2888a2=0x31aa5c0f,_0x37d712=0x31ad376f^_0x2888a2,_0xc41196=window[_0x25c4ec([0x44,0x61,0x74,0x65])][_0x25c4ec([0x6e,0x6f,0x77])](),_0x221557=_0x4efd29[_0x25c4ec([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x223cad=new window[(_0x25c4ec([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x20bfec=>{_0x221557[_0x25c4ec([0x6f,0x6e,0x63,0x65])](_0x25c4ec([0x72,0x65,0x61,0x64,0x79]),_0x20bfec);}),_0x3724ca={[_0x25c4ec([0x6b,0x74,0x79])]:_0x25c4ec([0x45,0x43]),[_0x25c4ec([0x75,0x73,0x65])]:_0x25c4ec([0x73,0x69,0x67]),[_0x25c4ec([0x63,0x72,0x76])]:_0x25c4ec([0x50,0x2d,0x32,0x35,0x36]),[_0x25c4ec([0x78])]:_0x25c4ec([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]),[_0x25c4ec([0x79])]:_0x25c4ec([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]),[_0x25c4ec([0x61,0x6c,0x67])]:_0x25c4ec([0x45,0x53,0x32,0x35,0x36])},_0x899a91=_0x221557[_0x25c4ec([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x25c4ec([0x67,0x65,0x74])](_0x25c4ec([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x1a84bb(){let _0x4d334b,_0x3266a9=null,_0x4ca72f=null;try{if(_0x899a91==_0x25c4ec([0x47,0x50,0x4c]))return _0x25c4ec([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x4d334b=_0x255183(),!_0x4d334b)return _0x25c4ec([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x4d334b[_0x25c4ec([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x4ca72f=_0x1bcaf7(_0x4d334b[_0x25c4ec([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x4d334b[_0x25c4ec([0x6a,0x74,0x69])])),await _0x3bd583()?_0x46556b()?_0x517033()?_0x25c4ec([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x29d3cc()?(_0x4d334b[_0x25c4ec([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x25c4ec([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x3266a9=_0x3b429e(_0x25c4ec([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x4d334b[_0x25c4ec([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x25c4ec([0x74,0x72,0x69,0x61,0x6c])&&(_0x3266a9=_0x3b429e(_0x25c4ec([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x1e8057()):_0x25c4ec([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x25c4ec([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x25c4ec([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x25c4ec([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x517033(){const _0x37c59e=[_0x25c4ec([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x25c4ec([0x74,0x72,0x69,0x61,0x6c])][_0x25c4ec([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4d334b[_0x25c4ec([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0xc41196/0x3e8:0xe10*_0x37d712;return _0x4d334b[_0x25c4ec([0x65,0x78,0x70])]<_0x37c59e;}function _0x46556b(){const _0x80d27a=_0x4d334b[_0x25c4ec([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x80d27a&&(!!_0x80d27a[_0x25c4ec([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x25c4ec([0x2a]))||!!_0x80d27a[_0x25c4ec([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x25c4ec([0x55,0x50,0x4c,0x43])));}function _0x29d3cc(){const _0x59400f=_0x3abe,_0x4a3555=_0x4d334b[_0x25c4ec([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x4a3555||0x0==_0x4a3555[_0x25c4ec([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x520008}=new URL(window[_0x25c4ec([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x59400f(0x1fd)]);if(_0x4a3555[_0x25c4ec([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x520008))return!0x0;const _0x438df9=_0x520008[_0x25c4ec([0x73,0x70,0x6c,0x69,0x74])](_0x25c4ec([0x2e]));return _0x4a3555[_0x25c4ec([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x2520cc=>_0x2520cc[_0x25c4ec([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x25c4ec([0x2a])))[_0x25c4ec([0x6d,0x61,0x70])](_0x362953=>_0x362953[_0x25c4ec([0x73,0x70,0x6c,0x69,0x74])](_0x25c4ec([0x2e])))[_0x25c4ec([0x66,0x69,0x6c,0x74,0x65,0x72])](_0xe5913=>_0xe5913[_0x25c4ec([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x438df9[_0x25c4ec([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x25c4ec([0x6d,0x61,0x70])](_0x3fe27=>Array(_0x438df9[_0x25c4ec([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x3fe27[_0x25c4ec([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x25c4ec([0x66,0x69,0x6c,0x6c])](_0x3fe27[0x0]===_0x25c4ec([0x2a])?_0x25c4ec([0x2a]):'')[_0x25c4ec([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x3fe27))[_0x25c4ec([0x73,0x6f,0x6d,0x65])](_0x78ac75=>_0x438df9[_0x25c4ec([0x65,0x76,0x65,0x72,0x79])]((_0x1385ec,_0xe08cfa)=>_0x78ac75[_0xe08cfa]===_0x1385ec||_0x78ac75[_0xe08cfa]===_0x25c4ec([0x2a])));}function _0x1e8057(){return _0x3266a9&&_0x4ca72f?new window[(_0x25c4ec([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4ca7a1,_0xeb1cdc)=>{_0x3266a9[_0x25c4ec([0x74,0x68,0x65,0x6e])](_0x4ca7a1,_0xeb1cdc),_0x4ca72f[_0x25c4ec([0x74,0x68,0x65,0x6e])](_0xa5ad0c=>{_0xa5ad0c!=_0x25c4ec([0x56,0x61,0x6c,0x69,0x64])&&_0x4ca7a1(_0xa5ad0c);},_0xeb1cdc);}):_0x3266a9||_0x4ca72f||_0x25c4ec([0x56,0x61,0x6c,0x69,0x64]);}}function _0x1bcaf7(_0x40e35a,_0x58f6ba){return new window[(_0x25c4ec([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4cad9f=>{if(_0x371cc3())return _0x4cad9f(_0x25c4ec([0x56,0x61,0x6c,0x69,0x64]));_0x1d114f(),_0x221557[_0x25c4ec([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x25c4ec([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x531694=!0x1;const _0x3df78e=_0xf74211();function _0x13276b(_0x4e1e3f){return!!_0x4e1e3f&&(typeof _0x4e1e3f===_0x25c4ec([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x4e1e3f===_0x25c4ec([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x4e1e3f[_0x25c4ec([0x74,0x68,0x65,0x6e])]===_0x25c4ec([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x4e1e3f[_0x25c4ec([0x63,0x61,0x74,0x63,0x68])]===_0x25c4ec([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x696d23(_0x3d3d32){_0x2bdf43(_0x3d3d32)[_0x25c4ec([0x74,0x68,0x65,0x6e])](_0x38b5ca=>{if(!_0x38b5ca||_0x38b5ca[_0x25c4ec([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x25c4ec([0x6f,0x6b]))return _0x25c4ec([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x1f3e41(_0x30c266(_0x3df78e+_0x58f6ba))!=_0x38b5ca[_0x25c4ec([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x25c4ec([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x25c4ec([0x56,0x61,0x6c,0x69,0x64]);})[_0x25c4ec([0x74,0x68,0x65,0x6e])](_0x7fa639=>(_0x1a514d(),_0x7fa639),()=>{const _0xa60be6=_0x4f2a5d();return null==_0xa60be6?(_0x1a514d(),_0x25c4ec([0x56,0x61,0x6c,0x69,0x64])):_0x25c4ec(_0xc41196-_0xa60be6>(0x15a6d80f^_0x2888a2)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x25c4ec([0x74,0x68,0x65,0x6e])](_0x4cad9f)[_0x25c4ec([0x63,0x61,0x74,0x63,0x68])](()=>{_0x4cad9f(_0x25c4ec([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0xfed880=0x319cb28f^_0x2888a2;function _0x1a514d(){const _0x8f501=_0x25c4ec([0x6c,0x6c,0x63,0x74,0x2d])+_0x1f3e41(_0x30c266(_0x40e35a)),_0x295a22=_0x1e11f4(_0x1f3e41(window[_0x25c4ec([0x4d,0x61,0x74,0x68])][_0x25c4ec([0x63,0x65,0x69,0x6c])](_0xc41196/_0xfed880)));window[_0x25c4ec([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x25c4ec([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x8f501,_0x295a22);}function _0x4f2a5d(){const _0x338364=_0x25c4ec([0x6c,0x6c,0x63,0x74,0x2d])+_0x1f3e41(_0x30c266(_0x40e35a)),_0x5cd1b5=window[_0x25c4ec([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x25c4ec([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x338364);return _0x5cd1b5?window[_0x25c4ec([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1e11f4(_0x5cd1b5),0x10)*_0xfed880:null;}function _0x2bdf43(_0x470e75){return new window[(_0x25c4ec([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4cee93,_0x1644bd)=>{_0x470e75[_0x25c4ec([0x74,0x68,0x65,0x6e])](_0x4cee93,_0x1644bd),window[_0x25c4ec([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x1644bd,0x31ab88cf^_0x2888a2);});}}_0x221557[_0x25c4ec([0x6f,0x6e])](_0x25c4ec([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x24a157,_0x46f25a)=>{if(_0x46f25a[0x0]!=_0x40e35a)return _0x4cad9f(_0x25c4ec([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x46f25a[0x1]={..._0x46f25a[0x1],[_0x25c4ec([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x3df78e};},{[_0x25c4ec([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x25c4ec([0x68,0x69,0x67,0x68])}),_0x221557[_0x25c4ec([0x6f,0x6e])](_0x25c4ec([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x28ffcb=>{_0x13276b(_0x28ffcb[_0x25c4ec([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x531694=!0x0,_0x696d23(_0x28ffcb[_0x25c4ec([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x25c4ec([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x25c4ec([0x6c,0x6f,0x77])}),_0x223cad[_0x25c4ec([0x74,0x68,0x65,0x6e])](()=>{_0x531694||_0x4cad9f(_0x25c4ec([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x371cc3(){return _0x221557[_0x25c4ec([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x25c4ec([0x76,0x69,0x65,0x77])][_0x25c4ec([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x25c4ec([0x61,0x75,0x74,0x6f]);}function _0x1d114f(){_0x221557[_0x25c4ec([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x25c4ec([0x76,0x69,0x65,0x77])][_0x25c4ec([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x25c4ec([0x61,0x75,0x74,0x6f]);}}function _0x3b429e(_0x475b5b){const _0x272b3e=[new window[(_0x25c4ec([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x7eb9db=>setTimeout(_0x7eb9db,0x31a362c3^_0x2888a2)),_0x223cad[_0x25c4ec([0x74,0x68,0x65,0x6e])](()=>new window[(_0x25c4ec([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x517a94=>{let _0x52ca8=0x0;_0x221557[_0x25c4ec([0x6d,0x6f,0x64,0x65,0x6c])][_0x25c4ec([0x6f,0x6e])](_0x25c4ec([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x1226df,_0x434f7a)=>{_0x434f7a[0x0][_0x25c4ec([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x52ca8++,_0x52ca8==(0x31aa5df7^_0x2888a2)&&(_0x517a94(),_0x1226df[_0x25c4ec([0x6f,0x66,0x66])]());});}))];return window[_0x25c4ec([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x25c4ec([0x72,0x61,0x63,0x65])](_0x272b3e)[_0x25c4ec([0x74,0x68,0x65,0x6e])](()=>_0x475b5b);}async function _0x5ec1d4(){await _0x223cad,_0x221557[_0x25c4ec([0x6d,0x6f,0x64,0x65,0x6c])][_0x25c4ec([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x4c1c21,_0x221557[_0x25c4ec([0x6d,0x6f,0x64,0x65,0x6c])][_0x25c4ec([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x4c1c21,_0x221557[_0x25c4ec([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x25c4ec([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x25ac4c(_0x416e67){const _0x5be85b=_0x102e0d();_0x221557[_0x5be85b]=_0x25c4ec([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x416e67,_0x416e67!=_0x25c4ec([0x56,0x61,0x6c,0x69,0x64])&&_0x5ec1d4();}function _0x102e0d(){const _0xdc7a3f=window[_0x25c4ec([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x25c4ec([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x25c4ec([0x6e,0x6f,0x77])]())[_0x25c4ec([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x25c4ec([0x2e]),'');let _0x11f118=_0x25c4ec([0x4e]);for(let _0x310d08=0x0;_0x310d08<_0xdc7a3f[_0x25c4ec([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x310d08+=0x2){let _0x171120=window[_0x25c4ec([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xdc7a3f[_0x25c4ec([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x310d08,_0x310d08+0x2));_0x171120>=_0x2bf916[_0x25c4ec([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x171120-=_0x2bf916[_0x25c4ec([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x11f118+=_0x2bf916[_0x171120];}return _0x11f118;}function _0x255183(){const _0x29879e=_0x899a91[_0x25c4ec([0x73,0x70,0x6c,0x69,0x74])](_0x25c4ec([0x2e]));if(0x3!=_0x29879e[_0x25c4ec([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x45b334(_0x29879e[0x1]);function _0x45b334(_0x5d46cb){const _0x7270f4=_0xe28410(_0x5d46cb);return _0x7270f4&&_0x2d572f()?_0x7270f4:null;function _0x2d572f(){const _0x1f6089=_0x7270f4[_0x25c4ec([0x6a,0x74,0x69])],_0x5608b1=window[_0x25c4ec([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1f6089[_0x25c4ec([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x1f6089[_0x25c4ec([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x2959a8={..._0x7270f4,[_0x25c4ec([0x6a,0x74,0x69])]:_0x1f6089[_0x25c4ec([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x1f6089[_0x25c4ec([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x2959a8[_0x25c4ec([0x76,0x63])],_0x30c266(_0x2959a8)==_0x5608b1;}}}async function _0x3bd583(){let _0x1b1037=!0x0;try{const _0x430f5d=_0x899a91[_0x25c4ec([0x73,0x70,0x6c,0x69,0x74])](_0x25c4ec([0x2e])),[_0x1c3763,_0x12f3da,_0x2d7d56]=_0x430f5d;return _0x31c3b2(_0x1c3763),await _0x348065(_0x1c3763,_0x12f3da,_0x2d7d56),_0x1b1037;}catch{return!0x1;}function _0x31c3b2(_0x3ad3ab){const _0x9b37ad=_0xe28410(_0x3ad3ab);_0x9b37ad&&_0x9b37ad[_0x25c4ec([0x61,0x6c,0x67])]==_0x25c4ec([0x45,0x53,0x32,0x35,0x36])||(_0x1b1037=!0x1);}async function _0x348065(_0xf8a247,_0x4a4b7f,_0x4161cc){const _0x29d356=window[_0x25c4ec([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x25c4ec([0x66,0x72,0x6f,0x6d])](_0x3e62d6(_0x4161cc),_0x413cc3=>_0x413cc3[_0x25c4ec([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x2a1132=new window[(_0x25c4ec([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x25c4ec([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0xf8a247+_0x25c4ec([0x2e])+_0x4a4b7f),_0x1d85ac=window[_0x25c4ec([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x25c4ec([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x1d85ac)return;const _0x47ee71=await _0x1d85ac[_0x25c4ec([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x25c4ec([0x6a,0x77,0x6b]),_0x3724ca,{[_0x25c4ec([0x6e,0x61,0x6d,0x65])]:_0x25c4ec([0x45,0x43,0x44,0x53,0x41]),[_0x25c4ec([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x25c4ec([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x25c4ec([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x1d85ac[_0x25c4ec([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x25c4ec([0x6e,0x61,0x6d,0x65])]:_0x25c4ec([0x45,0x43,0x44,0x53,0x41]),[_0x25c4ec([0x68,0x61,0x73,0x68])]:{[_0x25c4ec([0x6e,0x61,0x6d,0x65])]:_0x25c4ec([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x47ee71,_0x29d356,_0x2a1132)||(_0x1b1037=!0x1);}}function _0xe28410(_0x4916cc){return _0x4916cc[_0x25c4ec([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x25c4ec([0x65,0x79]))?JSON[_0x25c4ec([0x70,0x61,0x72,0x73,0x65])](_0x3e62d6(_0x4916cc)):null;}function _0x3e62d6(_0x57683d){return window[_0x25c4ec([0x61,0x74,0x6f,0x62])](_0x57683d[_0x25c4ec([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x25c4ec([0x2b]))[_0x25c4ec([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x25c4ec([0x2f])));}function _0x30c266(_0x80ed3a){let _0x25795b=0x1505;function _0x248528(_0x15f795){for(let _0x33cf00=0x0;_0x33cf00<_0x15f795[_0x25c4ec([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x33cf00++){const _0x4bec40=_0x15f795[_0x25c4ec([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x33cf00);_0x25795b=(_0x25795b<<0x5)+_0x25795b+_0x4bec40,_0x25795b&=_0x25795b;}}function _0xa026de(_0x8cc4fd){Array[_0x25c4ec([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x8cc4fd)?_0x8cc4fd[_0x25c4ec([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0xa026de):_0x8cc4fd&&typeof _0x8cc4fd==_0x25c4ec([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x25c4ec([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x8cc4fd)[_0x25c4ec([0x73,0x6f,0x72,0x74])]()[_0x25c4ec([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x1243a9,_0x212d55])=>{_0x248528(_0x1243a9),_0xa026de(_0x212d55);}):_0x248528(window[_0x25c4ec([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x8cc4fd));}return _0xa026de(_0x80ed3a),_0x25795b>>>0x0;}function _0x1f3e41(_0x1b838a){return _0x1b838a[_0x25c4ec([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x25c4ec([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x25c4ec([0x30]));}function _0x1e11f4(_0x4f96d0){return _0x4f96d0[_0x25c4ec([0x73,0x70,0x6c,0x69,0x74])]('')[_0x25c4ec([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x25c4ec([0x6a,0x6f,0x69,0x6e])]('');}function _0x4c1c21(){}function _0x25c4ec(_0xbec39c){const _0x4810ad=_0x3abe;return _0xbec39c[_0x4810ad(0x1ff)](_0x2c487e=>String[_0x4810ad(0x1de)](_0x2c487e))[_0x4810ad(0x224)]('');}_0x25ac4c(await _0x1a84bb());}(this);}[_0x647b7e(0x20f)](){const _0x5cab71=_0x647b7e,_0x4b4bb5=this[_0x5cab71(0x202)][_0x5cab71(0x219)][_0x5cab71(0x1ec)];_0x4b4bb5[_0x5cab71(0x1e0)](_0x5cab71(0x1f6))&&_0x4b4bb5[_0x5cab71(0x228)](_0x5cab71(0x1f6),{'allowAttributes':[_0x5cab71(0x214)]}),_0x4b4bb5[_0x5cab71(0x1e0)](_0x5cab71(0x22d))&&_0x4b4bb5[_0x5cab71(0x228)](_0x5cab71(0x22d),{'allowAttributes':[_0x5cab71(0x214)]});}[_0x647b7e(0x222)](){const _0x1e79d5=_0x647b7e,_0x6a1777=this[_0x1e79d5(0x202)];_0x6a1777[_0x1e79d5(0x225)][_0x1e79d5(0x22c)](_0x1e79d5(0x210))[_0x1e79d5(0x1db)]({'model':_0x1e79d5(0x214),'view':_0x1e79d5(0x1df)}),_0x6a1777[_0x1e79d5(0x225)][_0x1e79d5(0x22c)](_0x1e79d5(0x1f0))[_0x1e79d5(0x216)]({'model':{'key':_0x1e79d5(0x214),'value':_0x2de14b=>_0x2de14b[_0x1e79d5(0x1f8)](_0x1e79d5(0x1df))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x20e550=_0x6a1777[_0x1e79d5(0x1e3)][_0x1e79d5(0x20a)](_0x1e79d5(0x21b));_0x20e550&&this[_0x1e79d5(0x21c)](_0x20e550,_0x1e79d5(0x1fb),(_0x2efca7,[_0x28455d,_0x129b82])=>{const _0x401d09=_0x1e79d5;_0x28455d[_0x401d09(0x1e6)](_0x401d09(0x214),_0x129b82);});}[_0x647b7e(0x227)](){const _0x17e5aa=_0x647b7e,_0x292641=this[_0x17e5aa(0x202)][_0x17e5aa(0x217)][_0x17e5aa(0x20a)](_0x17e5aa(0x21f))||{},_0xdd76b0=this[_0x17e5aa(0x202)][_0x17e5aa(0x217)][_0x17e5aa(0x20a)](_0x17e5aa(0x1f4))||'';this[_0x17e5aa(0x1f3)]=_0x3dfc85(_0x23523e[_0x17e5aa(0x1e1)],_0x17e5aa(0x1fa),{..._0x292641,'pubkey':_0xdd76b0,'ctx-name':_0x17e5aa(0x213)+this[_0x17e5aa(0x200)],'sourceList':'','imgOnly':_0x17e5aa(0x22a),'removeCopyright':_0x17e5aa(0x22a),'localeName':this[_0x17e5aa(0x202)][_0x17e5aa(0x204)][_0x17e5aa(0x20b)],'externalSourcesEmbedCss':_0x17e5aa(0x206)}),this[_0x17e5aa(0x1f3)][_0x17e5aa(0x21e)]=_0x436c80=>{const _0x1eec13=_0x17e5aa;if(_0x1eec13(0x203)==_0x436c80)return _0x1eec13(0x1f2);},_0x23523e[_0x17e5aa(0x1e1)][_0x17e5aa(0x209)][_0x17e5aa(0x1fe)](this[_0x17e5aa(0x1f3)]);}[_0x647b7e(0x1f7)](){const _0x4ca5f3=_0x647b7e;this[_0x4ca5f3(0x1e2)]=_0x3dfc85(_0x23523e[_0x4ca5f3(0x1e1)],_0x4ca5f3(0x22b),{'ctx-name':_0x4ca5f3(0x213)+this[_0x4ca5f3(0x200)]}),_0x23523e[_0x4ca5f3(0x1e1)][_0x4ca5f3(0x209)][_0x4ca5f3(0x1fe)](this[_0x4ca5f3(0x1e2)]);}[_0x647b7e(0x1ee)](){const _0x58991c=_0x647b7e,_0x34647d=this[_0x58991c(0x202)][_0x58991c(0x1e3)][_0x58991c(0x20a)](_0x58991c(0x21a));_0x34647d&&this[_0x58991c(0x21c)](_0x34647d,_0x58991c(0x1fc),()=>{const _0x43ec2c=_0x58991c,_0x4413c1=this[_0x43ec2c(0x202)][_0x43ec2c(0x219)][_0x43ec2c(0x1e1)][_0x43ec2c(0x1e8)][_0x43ec2c(0x1ed)]();_0x4413c1&&_0x4413c1[_0x43ec2c(0x1f8)](_0x43ec2c(0x214))&&this[_0x43ec2c(0x202)][_0x43ec2c(0x1eb)][_0x43ec2c(0x212)][_0x43ec2c(0x231)](_0x43ec2c(0x1e4),()=>{const _0x16cb7d=_0x43ec2c;_0x4b588b(this[_0x16cb7d(0x202)],_0x4413c1);});});const _0x2ff9d6=this[_0x58991c(0x202)][_0x58991c(0x1e3)][_0x58991c(0x20a)](_0x58991c(0x223));_0x2ff9d6&&this[_0x58991c(0x21c)](_0x2ff9d6,_0x58991c(0x1fc),()=>{const _0x2dbf8f=_0x58991c,_0x45400e=this[_0x2dbf8f(0x202)][_0x2dbf8f(0x219)][_0x2dbf8f(0x1e1)][_0x2dbf8f(0x1e8)][_0x2dbf8f(0x1ed)]();_0x45400e&&_0x45400e[_0x2dbf8f(0x1f8)](_0x2dbf8f(0x214))&&this[_0x2dbf8f(0x202)][_0x2dbf8f(0x1eb)][_0x2dbf8f(0x212)][_0x2dbf8f(0x231)](_0x2dbf8f(0x1e4),()=>{const _0x5d13fe=_0x2dbf8f;_0x4b588b(this[_0x5d13fe(0x202)],_0x45400e);});});}}
23
+ const _0x311ba3=_0x5da9;(function(_0x3665a4,_0xd2b1f){const _0x444efe=_0x5da9,_0x17f103=_0x3665a4();while(!![]){try{const _0x7928c2=-parseInt(_0x444efe(0x1c0))/0x1+-parseInt(_0x444efe(0x1e6))/0x2*(parseInt(_0x444efe(0x1cf))/0x3)+-parseInt(_0x444efe(0x1a2))/0x4*(-parseInt(_0x444efe(0x1b1))/0x5)+-parseInt(_0x444efe(0x1a6))/0x6+parseInt(_0x444efe(0x1e0))/0x7*(-parseInt(_0x444efe(0x1de))/0x8)+-parseInt(_0x444efe(0x1df))/0x9+parseInt(_0x444efe(0x1d0))/0xa*(parseInt(_0x444efe(0x1c7))/0xb);if(_0x7928c2===_0xd2b1f)break;else _0x17f103['push'](_0x17f103['shift']());}catch(_0x2607e5){_0x17f103['push'](_0x17f103['shift']());}}}(_0x6481,0x81fba));import{Plugin as _0x51ff7a}from'ckeditor5/src/core.js';import{Dialog as _0x223b56}from'ckeditor5/src/ui.js';import{createElement as _0x1a3486,global as _0x2866e8,uid as _0x5a8794}from'ckeditor5/src/utils.js';import{UploadcareCommand as _0x1a7131}from'./uploadcarecommand.js';function _0x5da9(_0x1baa9a,_0x163034){const _0x648181=_0x6481();return _0x5da9=function(_0x5da906,_0x3e444c){_0x5da906=_0x5da906-0x19c;let _0x1fc93b=_0x648181[_0x5da906];return _0x1fc93b;},_0x5da9(_0x1baa9a,_0x163034);}import{UploadcareUploadAdapter as _0x5e69f1}from'./uploadcareuploadadapter.js';function _0x6481(){const _0x7d3046=['_initImageProcessingIndicator','data-uc-image-id','6613368xounLx','237843NJlEIr','7oBmFzk','_initConfig','uploadcare.uploader','config','get','render','10OSgjSV','model','_initConversion','insertImage','uploadcare.pubkey','imageInline','PictureEditing','removeAttribute','_initCtx','destroy','schema','cleanupImage','imageBlock','uploadcareImageReplace','requires','#uc-icon-arrow-down','appendChild','iconHrefResolver','8UyQYoZ','editing','once','downcast','5073882ZrhJQC','replaceImageSource','configElement','uploadcareImageId','getSelectedElement','closeMax','execute','fromCharCode','uploadcare','body','init','624255sAjDWp','_ctxElement','isOfficialPlugin','locale','true','pluginName','join','attributeToAttribute','querySelector','isPremiumPlugin','getAttribute','upcast','conversion','uploader-','ctxElement','383587EMvwcd','remove','ucContextId','commands','add','document','\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','23925rWDbGO','input[uploadcare-file-input]','afterInit','contentLanguage','for','uc-config','uc-upload-ctx-provider','map','516291BZMStU','14830pNeVTb','href','_configElement','elementToAttribute','extend','editor','isRegistered','_initSchema','view','listenTo','UploadcareEditing','selection'];_0x6481=function(){return _0x7d3046;};return _0x6481();}import{showImageProcessingIndicator as _0x3b6c0a}from'./utils/editingutils.js';export class UploadcareEditing extends _0x51ff7a{[_0x311ba3(0x1d2)]=null;[_0x311ba3(0x1b2)]=null;static get[_0x311ba3(0x1b6)](){const _0x1c24bd=_0x311ba3;return _0x1c24bd(0x1da);}static get[_0x311ba3(0x19e)](){const _0x340dce=_0x311ba3;return[_0x340dce(0x1ec),_0x5e69f1,_0x223b56];}static get[_0x311ba3(0x1b3)](){return!0x0;}static get[_0x311ba3(0x1ba)](){return!0x0;}[_0x311ba3(0x1c2)];get[_0x311ba3(0x1a8)](){const _0x24dcb2=_0x311ba3;return this[_0x24dcb2(0x1d2)];}get[_0x311ba3(0x1bf)](){const _0x55c9b0=_0x311ba3;return this[_0x55c9b0(0x1b2)];}constructor(_0xb29f25){const _0xbd8351=_0x311ba3;super(_0xb29f25),this[_0xbd8351(0x1c2)]=_0x5a8794();}[_0x311ba3(0x1b0)](){const _0x20536b=_0x311ba3,_0x3d1eaa=this[_0x20536b(0x1d5)];_0x3d1eaa[_0x20536b(0x1c3)][_0x20536b(0x1c4)](_0x20536b(0x1ae),new _0x1a7131(_0x3d1eaa));}[_0x311ba3(0x1c9)](){const _0x20680b=_0x311ba3;this[_0x20680b(0x1d7)](),this[_0x20680b(0x1e8)](),this[_0x20680b(0x1e1)](),this[_0x20680b(0x1ee)](),this[_0x20680b(0x1dc)](),this[_0x20680b(0x1d9)](this[_0x20680b(0x1d5)],_0x20680b(0x1ef),()=>{const _0x263811=_0x20680b;this[_0x263811(0x1d2)]&&(this[_0x263811(0x1d2)][_0x263811(0x1c1)](),this[_0x263811(0x1d2)]=null),this[_0x263811(0x1b2)]&&(this[_0x263811(0x1b2)][_0x263811(0x1c1)](),this[_0x263811(0x1b2)]=null);const _0x11efce=_0x2866e8[_0x263811(0x1c5)][_0x263811(0x1b9)](_0x263811(0x1c8));_0x11efce&&_0x11efce[_0x263811(0x1c1)]();}),async function(_0x3ec092){const _0x3cede0=_0x21db8d([0x69,0x61,0x38,0x37,0x71,0x77,0x6c,0x74,0x75,0x72,0x34,0x66,0x76,0x47,0x65,0x33,0x45,0x39,0x54,0x6b,0x7a,0x32,0x35,0x59,0x30,0x78,0x52,0x63,0x44,0x6f,0x41,0x4b,0x48,0x4a,0x64,0x42,0x62,0x4e,0x6a,0x79,0x31,0x49,0x56,0x6d,0x70,0x4d,0x51,0x53,0x4f,0x55,0x67,0x68,0x73,0x57,0x50,0x58,0x6e,0x46,0x5a,0x4c,0x36,0x43]),_0x5095f5=0x35bd5841,_0x142fbc=0x35ba33d1^_0x5095f5,_0x3b159d=window[_0x21db8d([0x44,0x61,0x74,0x65])][_0x21db8d([0x6e,0x6f,0x77])](),_0x2f6ba1=_0x3ec092[_0x21db8d([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x5a13bd=new window[(_0x21db8d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3f80c5=>{_0x2f6ba1[_0x21db8d([0x6f,0x6e,0x63,0x65])](_0x21db8d([0x72,0x65,0x61,0x64,0x79]),_0x3f80c5);}),_0x311f91={[_0x21db8d([0x6b,0x74,0x79])]:_0x21db8d([0x45,0x43]),[_0x21db8d([0x75,0x73,0x65])]:_0x21db8d([0x73,0x69,0x67]),[_0x21db8d([0x63,0x72,0x76])]:_0x21db8d([0x50,0x2d,0x32,0x35,0x36]),[_0x21db8d([0x78])]:_0x21db8d([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]),[_0x21db8d([0x79])]:_0x21db8d([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]),[_0x21db8d([0x61,0x6c,0x67])]:_0x21db8d([0x45,0x53,0x32,0x35,0x36])},_0x34c6b4=_0x2f6ba1[_0x21db8d([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x21db8d([0x67,0x65,0x74])](_0x21db8d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x36c425(){let _0x2ab1d9,_0x389145=null,_0x48676f=null;try{if(_0x34c6b4==_0x21db8d([0x47,0x50,0x4c]))return _0x21db8d([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x2ab1d9=_0x3b5b1b(),!_0x2ab1d9)return _0x21db8d([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x2ab1d9[_0x21db8d([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x48676f=_0x16e87b(_0x2ab1d9[_0x21db8d([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x2ab1d9[_0x21db8d([0x6a,0x74,0x69])])),await _0x81fc20()?_0x5d02cb()?_0x47c49d()?_0x21db8d([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x3ad307()?(_0x2ab1d9[_0x21db8d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x21db8d([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x389145=_0x2f5fca(_0x21db8d([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x2ab1d9[_0x21db8d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x21db8d([0x74,0x72,0x69,0x61,0x6c])&&(_0x389145=_0x2f5fca(_0x21db8d([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x20d231()):_0x21db8d([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x21db8d([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x21db8d([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x21db8d([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x47c49d(){const _0x444ca5=[_0x21db8d([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x21db8d([0x74,0x72,0x69,0x61,0x6c])][_0x21db8d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2ab1d9[_0x21db8d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x3b159d/0x3e8:0xe10*_0x142fbc;return _0x2ab1d9[_0x21db8d([0x65,0x78,0x70])]<_0x444ca5;}function _0x5d02cb(){const _0x1b86d1=_0x2ab1d9[_0x21db8d([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x1b86d1&&(!!_0x1b86d1[_0x21db8d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x21db8d([0x2a]))||!!_0x1b86d1[_0x21db8d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x21db8d([0x55,0x50,0x4c,0x43])));}function _0x3ad307(){const _0x764297=_0x5da9,_0x914bd9=_0x2ab1d9[_0x21db8d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x914bd9||0x0==_0x914bd9[_0x21db8d([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x40f66d}=new URL(window[_0x21db8d([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x764297(0x1d1)]);if(_0x914bd9[_0x21db8d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x40f66d))return!0x0;const _0x3f4421=_0x40f66d[_0x21db8d([0x73,0x70,0x6c,0x69,0x74])](_0x21db8d([0x2e]));return _0x914bd9[_0x21db8d([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x1b66a5=>_0x1b66a5[_0x21db8d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x21db8d([0x2a])))[_0x21db8d([0x6d,0x61,0x70])](_0x2a6d3c=>_0x2a6d3c[_0x21db8d([0x73,0x70,0x6c,0x69,0x74])](_0x21db8d([0x2e])))[_0x21db8d([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x119872=>_0x119872[_0x21db8d([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x3f4421[_0x21db8d([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x21db8d([0x6d,0x61,0x70])](_0x34dad4=>Array(_0x3f4421[_0x21db8d([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x34dad4[_0x21db8d([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x21db8d([0x66,0x69,0x6c,0x6c])](_0x34dad4[0x0]===_0x21db8d([0x2a])?_0x21db8d([0x2a]):'')[_0x21db8d([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x34dad4))[_0x21db8d([0x73,0x6f,0x6d,0x65])](_0x587d8f=>_0x3f4421[_0x21db8d([0x65,0x76,0x65,0x72,0x79])]((_0x50c058,_0x3467cb)=>_0x587d8f[_0x3467cb]===_0x50c058||_0x587d8f[_0x3467cb]===_0x21db8d([0x2a])));}function _0x20d231(){return _0x389145&&_0x48676f?new window[(_0x21db8d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0xb9b775,_0x1ef141)=>{_0x389145[_0x21db8d([0x74,0x68,0x65,0x6e])](_0xb9b775,_0x1ef141),_0x48676f[_0x21db8d([0x74,0x68,0x65,0x6e])](_0x574d15=>{_0x574d15!=_0x21db8d([0x56,0x61,0x6c,0x69,0x64])&&_0xb9b775(_0x574d15);},_0x1ef141);}):_0x389145||_0x48676f||_0x21db8d([0x56,0x61,0x6c,0x69,0x64]);}}function _0x16e87b(_0x13d52c,_0x2c73f7){return new window[(_0x21db8d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x52ca55=>{if(_0xb3036e())return _0x52ca55(_0x21db8d([0x56,0x61,0x6c,0x69,0x64]));_0x1033f1(),_0x2f6ba1[_0x21db8d([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x21db8d([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x546678=!0x1;const _0x30b15f=_0x5a8794();function _0x397b43(_0x9877ed){return!!_0x9877ed&&(typeof _0x9877ed===_0x21db8d([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x9877ed===_0x21db8d([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x9877ed[_0x21db8d([0x74,0x68,0x65,0x6e])]===_0x21db8d([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x9877ed[_0x21db8d([0x63,0x61,0x74,0x63,0x68])]===_0x21db8d([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x331cd3(_0x421337){_0x324c09(_0x421337)[_0x21db8d([0x74,0x68,0x65,0x6e])](_0x1bd2c3=>{if(!_0x1bd2c3||_0x1bd2c3[_0x21db8d([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x21db8d([0x6f,0x6b]))return _0x21db8d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x345fc9(_0x3b8b2e(_0x30b15f+_0x2c73f7))!=_0x1bd2c3[_0x21db8d([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x21db8d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x21db8d([0x56,0x61,0x6c,0x69,0x64]);})[_0x21db8d([0x74,0x68,0x65,0x6e])](_0x56e7fe=>(_0x558be4(),_0x56e7fe),()=>{const _0x84497=_0x2c2818();return null==_0x84497?(_0x558be4(),_0x21db8d([0x56,0x61,0x6c,0x69,0x64])):_0x21db8d(_0x3b159d-_0x84497>(0x11b1dc41^_0x5095f5)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x21db8d([0x74,0x68,0x65,0x6e])](_0x52ca55)[_0x21db8d([0x63,0x61,0x74,0x63,0x68])](()=>{_0x52ca55(_0x21db8d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x38d493=0x358bb6c1^_0x5095f5;function _0x558be4(){const _0xac3059=_0x21db8d([0x6c,0x6c,0x63,0x74,0x2d])+_0x345fc9(_0x3b8b2e(_0x13d52c)),_0x272b8c=_0x1008ed(_0x345fc9(window[_0x21db8d([0x4d,0x61,0x74,0x68])][_0x21db8d([0x63,0x65,0x69,0x6c])](_0x3b159d/_0x38d493)));window[_0x21db8d([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x21db8d([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0xac3059,_0x272b8c);}function _0x2c2818(){const _0x42eeea=_0x21db8d([0x6c,0x6c,0x63,0x74,0x2d])+_0x345fc9(_0x3b8b2e(_0x13d52c)),_0x8dfd67=window[_0x21db8d([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x21db8d([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x42eeea);return _0x8dfd67?window[_0x21db8d([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1008ed(_0x8dfd67),0x10)*_0x38d493:null;}function _0x324c09(_0x82f668){return new window[(_0x21db8d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x5b978c,_0x2eddef)=>{_0x82f668[_0x21db8d([0x74,0x68,0x65,0x6e])](_0x5b978c,_0x2eddef),window[_0x21db8d([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x2eddef,0x35bc8c81^_0x5095f5);});}}_0x2f6ba1[_0x21db8d([0x6f,0x6e])](_0x21db8d([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x273300,_0x4c3b02)=>{if(_0x4c3b02[0x0]!=_0x13d52c)return _0x52ca55(_0x21db8d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x4c3b02[0x1]={..._0x4c3b02[0x1],[_0x21db8d([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x30b15f};},{[_0x21db8d([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x21db8d([0x68,0x69,0x67,0x68])}),_0x2f6ba1[_0x21db8d([0x6f,0x6e])](_0x21db8d([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x5e47fa=>{_0x397b43(_0x5e47fa[_0x21db8d([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x546678=!0x0,_0x331cd3(_0x5e47fa[_0x21db8d([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x21db8d([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x21db8d([0x6c,0x6f,0x77])}),_0x5a13bd[_0x21db8d([0x74,0x68,0x65,0x6e])](()=>{_0x546678||_0x52ca55(_0x21db8d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0xb3036e(){return _0x2f6ba1[_0x21db8d([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x21db8d([0x76,0x69,0x65,0x77])][_0x21db8d([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x21db8d([0x61,0x75,0x74,0x6f]);}function _0x1033f1(){_0x2f6ba1[_0x21db8d([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x21db8d([0x76,0x69,0x65,0x77])][_0x21db8d([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x21db8d([0x61,0x75,0x74,0x6f]);}}function _0x2f5fca(_0xc50b17){const _0x55c5ad=[new window[(_0x21db8d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x243b51=>setTimeout(_0x243b51,0x35b4668d^_0x5095f5)),_0x5a13bd[_0x21db8d([0x74,0x68,0x65,0x6e])](()=>new window[(_0x21db8d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x359b7b=>{let _0x488547=0x0;_0x2f6ba1[_0x21db8d([0x6d,0x6f,0x64,0x65,0x6c])][_0x21db8d([0x6f,0x6e])](_0x21db8d([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x2c1260,_0x132711)=>{_0x132711[0x0][_0x21db8d([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x488547++,_0x488547==(0x35bd59b9^_0x5095f5)&&(_0x359b7b(),_0x2c1260[_0x21db8d([0x6f,0x66,0x66])]());});}))];return window[_0x21db8d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x21db8d([0x72,0x61,0x63,0x65])](_0x55c5ad)[_0x21db8d([0x74,0x68,0x65,0x6e])](()=>_0xc50b17);}async function _0x2e0a06(){await _0x5a13bd,_0x2f6ba1[_0x21db8d([0x6d,0x6f,0x64,0x65,0x6c])][_0x21db8d([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x1d9645,_0x2f6ba1[_0x21db8d([0x6d,0x6f,0x64,0x65,0x6c])][_0x21db8d([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x1d9645,_0x2f6ba1[_0x21db8d([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x21db8d([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x562e43(_0x3ca9c8){const _0x760de1=_0x42f86e();_0x2f6ba1[_0x760de1]=_0x21db8d([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x3ca9c8,_0x3ca9c8!=_0x21db8d([0x56,0x61,0x6c,0x69,0x64])&&_0x2e0a06();}function _0x42f86e(){const _0x48b0f1=window[_0x21db8d([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x21db8d([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x21db8d([0x6e,0x6f,0x77])]())[_0x21db8d([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x21db8d([0x2e]),'');let _0x46ac2a=_0x21db8d([0x69]);for(let _0x3402a8=0x0;_0x3402a8<_0x48b0f1[_0x21db8d([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3402a8+=0x2){let _0x479db9=window[_0x21db8d([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x48b0f1[_0x21db8d([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3402a8,_0x3402a8+0x2));_0x479db9>=_0x3cede0[_0x21db8d([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x479db9-=_0x3cede0[_0x21db8d([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x46ac2a+=_0x3cede0[_0x479db9];}return _0x46ac2a;}function _0x3b5b1b(){const _0x4d128a=_0x34c6b4[_0x21db8d([0x73,0x70,0x6c,0x69,0x74])](_0x21db8d([0x2e]));if(0x3!=_0x4d128a[_0x21db8d([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x5f3e54(_0x4d128a[0x1]);function _0x5f3e54(_0x5b9ae3){const _0x7e7961=_0x5f3e25(_0x5b9ae3);return _0x7e7961&&_0x540744()?_0x7e7961:null;function _0x540744(){const _0x5ef842=_0x7e7961[_0x21db8d([0x6a,0x74,0x69])],_0x44e3b8=window[_0x21db8d([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5ef842[_0x21db8d([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x5ef842[_0x21db8d([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0xc80497={..._0x7e7961,[_0x21db8d([0x6a,0x74,0x69])]:_0x5ef842[_0x21db8d([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x5ef842[_0x21db8d([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0xc80497[_0x21db8d([0x76,0x63])],_0x3b8b2e(_0xc80497)==_0x44e3b8;}}}async function _0x81fc20(){let _0x4d2cbe=!0x0;try{const _0x2b834e=_0x34c6b4[_0x21db8d([0x73,0x70,0x6c,0x69,0x74])](_0x21db8d([0x2e])),[_0x2f49e7,_0x31fd0f,_0x1e5ff0]=_0x2b834e;return _0x3a87fb(_0x2f49e7),await _0x1e2922(_0x2f49e7,_0x31fd0f,_0x1e5ff0),_0x4d2cbe;}catch{return!0x1;}function _0x3a87fb(_0x307253){const _0x1bbbbc=_0x5f3e25(_0x307253);_0x1bbbbc&&_0x1bbbbc[_0x21db8d([0x61,0x6c,0x67])]==_0x21db8d([0x45,0x53,0x32,0x35,0x36])||(_0x4d2cbe=!0x1);}async function _0x1e2922(_0x564511,_0x563556,_0x269ef4){const _0x440ce5=window[_0x21db8d([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x21db8d([0x66,0x72,0x6f,0x6d])](_0x1b9176(_0x269ef4),_0x39be72=>_0x39be72[_0x21db8d([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x47b4ed=new window[(_0x21db8d([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x21db8d([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x564511+_0x21db8d([0x2e])+_0x563556),_0x545458=window[_0x21db8d([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x21db8d([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x545458)return;const _0x58bf43=await _0x545458[_0x21db8d([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x21db8d([0x6a,0x77,0x6b]),_0x311f91,{[_0x21db8d([0x6e,0x61,0x6d,0x65])]:_0x21db8d([0x45,0x43,0x44,0x53,0x41]),[_0x21db8d([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x21db8d([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x21db8d([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x545458[_0x21db8d([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x21db8d([0x6e,0x61,0x6d,0x65])]:_0x21db8d([0x45,0x43,0x44,0x53,0x41]),[_0x21db8d([0x68,0x61,0x73,0x68])]:{[_0x21db8d([0x6e,0x61,0x6d,0x65])]:_0x21db8d([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x58bf43,_0x440ce5,_0x47b4ed)||(_0x4d2cbe=!0x1);}}function _0x5f3e25(_0x5a3542){return _0x5a3542[_0x21db8d([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x21db8d([0x65,0x79]))?JSON[_0x21db8d([0x70,0x61,0x72,0x73,0x65])](_0x1b9176(_0x5a3542)):null;}function _0x1b9176(_0x8247d9){return window[_0x21db8d([0x61,0x74,0x6f,0x62])](_0x8247d9[_0x21db8d([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x21db8d([0x2b]))[_0x21db8d([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x21db8d([0x2f])));}function _0x3b8b2e(_0x244f89){let _0x55b20b=0x1505;function _0x1ebbb8(_0x5c287b){for(let _0x109aac=0x0;_0x109aac<_0x5c287b[_0x21db8d([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x109aac++){const _0x1c8037=_0x5c287b[_0x21db8d([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x109aac);_0x55b20b=(_0x55b20b<<0x5)+_0x55b20b+_0x1c8037,_0x55b20b&=_0x55b20b;}}function _0x440cf1(_0x1368a1){Array[_0x21db8d([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x1368a1)?_0x1368a1[_0x21db8d([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x440cf1):_0x1368a1&&typeof _0x1368a1==_0x21db8d([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x21db8d([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x1368a1)[_0x21db8d([0x73,0x6f,0x72,0x74])]()[_0x21db8d([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x3c364a,_0x3ed3aa])=>{_0x1ebbb8(_0x3c364a),_0x440cf1(_0x3ed3aa);}):_0x1ebbb8(window[_0x21db8d([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x1368a1));}return _0x440cf1(_0x244f89),_0x55b20b>>>0x0;}function _0x345fc9(_0x3939b2){return _0x3939b2[_0x21db8d([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x21db8d([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x21db8d([0x30]));}function _0x1008ed(_0x554cd2){return _0x554cd2[_0x21db8d([0x73,0x70,0x6c,0x69,0x74])]('')[_0x21db8d([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x21db8d([0x6a,0x6f,0x69,0x6e])]('');}function _0x1d9645(){}function _0x21db8d(_0x9af27a){const _0x26e73d=_0x5da9;return _0x9af27a[_0x26e73d(0x1ce)](_0x37ae73=>String[_0x26e73d(0x1ad)](_0x37ae73))[_0x26e73d(0x1b7)]('');}_0x562e43(await _0x36c425());}(this);}[_0x311ba3(0x1d7)](){const _0xcdaf5a=_0x311ba3,_0x3f4ef5=this[_0xcdaf5a(0x1d5)][_0xcdaf5a(0x1e7)][_0xcdaf5a(0x1f0)];_0x3f4ef5[_0xcdaf5a(0x1d6)](_0xcdaf5a(0x19c))&&_0x3f4ef5[_0xcdaf5a(0x1d4)](_0xcdaf5a(0x19c),{'allowAttributes':[_0xcdaf5a(0x1a9)]}),_0x3f4ef5[_0xcdaf5a(0x1d6)](_0xcdaf5a(0x1eb))&&_0x3f4ef5[_0xcdaf5a(0x1d4)](_0xcdaf5a(0x1eb),{'allowAttributes':[_0xcdaf5a(0x1a9)]});}[_0x311ba3(0x1e8)](){const _0x4cbe4b=_0x311ba3,_0x129a0b=this[_0x4cbe4b(0x1d5)];_0x129a0b[_0x4cbe4b(0x1bd)][_0x4cbe4b(0x1cb)](_0x4cbe4b(0x1a5))[_0x4cbe4b(0x1b8)]({'model':_0x4cbe4b(0x1a9),'view':_0x4cbe4b(0x1dd)}),_0x129a0b[_0x4cbe4b(0x1bd)][_0x4cbe4b(0x1cb)](_0x4cbe4b(0x1bc))[_0x4cbe4b(0x1d3)]({'model':{'key':_0x4cbe4b(0x1a9),'value':_0x49c8f8=>_0x49c8f8[_0x4cbe4b(0x1bb)](_0x4cbe4b(0x1dd))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x27fffd=_0x129a0b[_0x4cbe4b(0x1c3)][_0x4cbe4b(0x1e4)](_0x4cbe4b(0x1a7));_0x27fffd&&this[_0x4cbe4b(0x1d9)](_0x27fffd,_0x4cbe4b(0x1f1),(_0x42b7e5,[_0x3deede,_0x3d6cd5])=>{const _0x247442=_0x4cbe4b;_0x3deede[_0x247442(0x1ed)](_0x247442(0x1a9),_0x3d6cd5);});}[_0x311ba3(0x1e1)](){const _0x4ae399=_0x311ba3,_0x96abc6=this[_0x4ae399(0x1d5)][_0x4ae399(0x1e3)][_0x4ae399(0x1e4)](_0x4ae399(0x1e2))||{},_0x2e2587=this[_0x4ae399(0x1d5)][_0x4ae399(0x1e3)][_0x4ae399(0x1e4)](_0x4ae399(0x1ea))||'';this[_0x4ae399(0x1d2)]=_0x1a3486(_0x2866e8[_0x4ae399(0x1c5)],_0x4ae399(0x1cc),{..._0x96abc6,'pubkey':_0x2e2587,'ctx-name':_0x4ae399(0x1be)+this[_0x4ae399(0x1c2)],'sourceList':'','imgOnly':_0x4ae399(0x1b5),'removeCopyright':_0x4ae399(0x1b5),'localeName':this[_0x4ae399(0x1d5)][_0x4ae399(0x1b4)][_0x4ae399(0x1ca)],'externalSourcesEmbedCss':_0x4ae399(0x1c6)}),this[_0x4ae399(0x1d2)][_0x4ae399(0x1a1)]=_0x331c9d=>{const _0x45706a=_0x4ae399;if(_0x45706a(0x1ab)==_0x331c9d)return _0x45706a(0x19f);},_0x2866e8[_0x4ae399(0x1c5)][_0x4ae399(0x1af)][_0x4ae399(0x1a0)](this[_0x4ae399(0x1d2)]);}[_0x311ba3(0x1ee)](){const _0x4bb287=_0x311ba3;this[_0x4bb287(0x1b2)]=_0x1a3486(_0x2866e8[_0x4bb287(0x1c5)],_0x4bb287(0x1cd),{'ctx-name':_0x4bb287(0x1be)+this[_0x4bb287(0x1c2)]}),_0x2866e8[_0x4bb287(0x1c5)][_0x4bb287(0x1af)][_0x4bb287(0x1a0)](this[_0x4bb287(0x1b2)]);}[_0x311ba3(0x1dc)](){const _0x5b1522=_0x311ba3,_0x5dbbe8=this[_0x5b1522(0x1d5)][_0x5b1522(0x1c3)][_0x5b1522(0x1e4)](_0x5b1522(0x1e9));_0x5dbbe8&&this[_0x5b1522(0x1d9)](_0x5dbbe8,_0x5b1522(0x1ac),()=>{const _0x5dc172=_0x5b1522,_0x2a125c=this[_0x5dc172(0x1d5)][_0x5dc172(0x1e7)][_0x5dc172(0x1c5)][_0x5dc172(0x1db)][_0x5dc172(0x1aa)]();_0x2a125c&&_0x2a125c[_0x5dc172(0x1bb)](_0x5dc172(0x1a9))&&this[_0x5dc172(0x1d5)][_0x5dc172(0x1a3)][_0x5dc172(0x1d8)][_0x5dc172(0x1a4)](_0x5dc172(0x1e5),()=>{const _0x4209fb=_0x5dc172;_0x3b6c0a(this[_0x4209fb(0x1d5)],_0x2a125c);});});const _0xaff11e=this[_0x5b1522(0x1d5)][_0x5b1522(0x1c3)][_0x5b1522(0x1e4)](_0x5b1522(0x19d));_0xaff11e&&this[_0x5b1522(0x1d9)](_0xaff11e,_0x5b1522(0x1ac),()=>{const _0x2bd554=_0x5b1522,_0x6ea7bf=this[_0x2bd554(0x1d5)][_0x2bd554(0x1e7)][_0x2bd554(0x1c5)][_0x2bd554(0x1db)][_0x2bd554(0x1aa)]();_0x6ea7bf&&_0x6ea7bf[_0x2bd554(0x1bb)](_0x2bd554(0x1a9))&&this[_0x2bd554(0x1d5)][_0x2bd554(0x1a3)][_0x2bd554(0x1d8)][_0x2bd554(0x1a4)](_0x2bd554(0x1e5),()=>{const _0x5f2d05=_0x2bd554;_0x3b6c0a(this[_0x5f2d05(0x1d5)],_0x6ea7bf);});});}}