@ckeditor/ckeditor5-uploadcare 0.0.0-nightly-next-20250213.0 → 0.0.0-nightly-next-20250214.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 _0x5a982b,Command as _0x50207d}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x20855a,IconInstagram as _0x4c9839,IconGooglePhotos as _0x2daf17,IconGoogleDrive as _0x214af1,IconFacebook as _0x256ad3,IconDropbox as _0x53a01d,IconUploadcareLink as _0x3cfe31,IconUploadcareImageUpload as _0x2ee407,IconError as et,IconUploadcareImageEdit as _0x1ed10a}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x5ac191,MenuBarMenuListItemButtonView as _0xa6e908,View as _0x518dfe,FocusCycler as _0x138457,Dialog as _0x2c8ca1,DialogViewPosition as _0x1c745d,SpinnerView as _0x477856,IconView as at,Notification as _0x62d8b1}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x2deaf1,DomEmitterMixin as _0x52036e,global as _0x1c350d,getAncestors as _0x23a250,ObservableMixin as _0x148e8d,createElement as _0x8e0716,uid as _0x1ef4d6}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x342f98}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x319c72,info as _0x65e138}from'@uploadcare/upload-client';import*as _0xd01ef8 from'@uploadcare/file-uploader';var o=function(_0x30a7bf){return _0x30a7bf['Local']='local',_0x30a7bf['URL']='url',_0x30a7bf['Dropbox']='dropbox',_0x30a7bf['GDrive']='gdrive',_0x30a7bf['Facebook']='facebook',_0x30a7bf['GPhotos']='gphotos',_0x30a7bf['Instagram']='instagram',_0x30a7bf['OneDrive']='onedrive',_0x30a7bf;}({});function x(_0x425c73,_0x17afc0,_0xe0315c){const t=_0x425c73['t'],_0xffb707=_0x425c73['t'];switch(_0x17afc0){case o['Local']:return{'text':_0xffb707('Insert'===_0xe0315c?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0xffb707('From\x20computer')};case o['URL']:return{'text':'Insert'===_0xe0315c?_0xffb707('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0xffb707('Via\x20URL')};case o['Dropbox']:return{'text':t('Insert'===_0xe0315c?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case o['Facebook']:return{'text':t('Insert'===_0xe0315c?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case o['GDrive']:return{'text':t('Insert'===_0xe0315c?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case o['GPhotos']:return{'text':t('Insert'===_0xe0315c?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case o['Instagram']:return{'text':t('Insert'===_0xe0315c?'Insert\x20with\x20Instagram':'Replace\x20with\x20Instagram'),'shortText':t('With\x20Instagram')};case o['OneDrive']:return{'text':t('Insert'===_0xe0315c?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x17afc0;}}class e extends _0x5a982b{['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 _0x52ae94=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x842f42;for(const _0x2ef058 in _0x52ae94){const _0x10414a=_0x2ef058,_0x36a394=_0x52ae94[_0x10414a];if('uploadcareLicenseKeyValid'==_0x36a394||'uploadcareLicenseKeyInvalid'==_0x36a394||'uploadcareLicenseKeyExpired'==_0x36a394||'uploadcareLicenseKeyDomainLimit'==_0x36a394||'uploadcareLicenseKeyNotAllowed'==_0x36a394||'uploadcareLicenseKeyEvaluationLimit'==_0x36a394||'uploadcareLicenseKeyTrialLimit'==_0x36a394||'uploadcareLicenseKeyUsageLimit'==_0x36a394){delete _0x52ae94[_0x10414a],_0x842f42=_0x36a394,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x842f42&&_0x52ae94['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x842f42&&_0x52ae94['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x842f42&&_0x52ae94['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x842f42&&_0x52ae94['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x842f42&&_0x52ae94['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyTrialLimit'==_0x842f42&&_0x52ae94['_showLicenseError']('trialLimit'),'uploadcareLicenseKeyUsageLimit'==_0x842f42&&_0x52ae94['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x4dda3e}=this,_0x3a5283=_0x4dda3e['commands']['get']('uploadcare');if(!_0x3a5283)return;const _0x4d0652=this['_normalizeConfigSourceList'](_0x4dda3e['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x5b70ec,_0x5984b8)=>{const _0x184c28=this['_getIntegrationKey'](_0x5984b8['type']);return _0x5b70ec[_0x184c28]||(_0x5b70ec[_0x184c28]=[]),_0x5b70ec[_0x184c28]['push'](_0x5984b8),_0x5b70ec;},{});_0x4dda3e['plugins']['has']('ImageInsertUI')&&_0x4dda3e['commands']['get']('uploadcare')&&Object['entries'](_0x4d0652)['forEach'](([_0x3d3561,_0x14871b])=>{_0x4dda3e['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x3d3561,'observable':()=>_0x3a5283,'buttonViewCreator':()=>this['_createToolbarButton'](_0x14871b),'formViewCreator':()=>this['_createDropdownButtons'](_0x14871b),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x14871b),'override':'assetManager'!==_0x3d3561});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x286f84){const {locale:_0x3d8337}=this['editor'];return _0x286f84['map'](_0x1b2347=>{const _0x2556c9=x(_0x3d8337,_0x1b2347,'Insert');switch(_0x1b2347){case o['Local']:return{'icon':_0x2ee407,'type':o['Local'],..._0x2556c9};case o['URL']:return{'icon':_0x3cfe31,'type':o['URL'],..._0x2556c9};case o['Dropbox']:return{'icon':_0x53a01d,'type':o['Dropbox'],..._0x2556c9};case o['Facebook']:return{'icon':_0x256ad3,'type':o['Facebook'],..._0x2556c9};case o['GDrive']:return{'icon':_0x214af1,'type':o['GDrive'],..._0x2556c9};case o['GPhotos']:return{'icon':_0x2daf17,'type':o['GPhotos'],..._0x2556c9};case o['Instagram']:return{'icon':_0x4c9839,'type':o['Instagram'],..._0x2556c9};case o['OneDrive']:return{'icon':_0x20855a,'type':o['OneDrive'],..._0x2556c9};}});}['_getIntegrationKey'](_0x3f5287){switch(_0x3f5287){case o['Local']:return'upload';case o['URL']:return'url';default:return'assetManager';}}['_createButton'](_0xda02d3,_0x489a46){const _0x5246e6=this['editor'],_0x5e9db0=new _0xda02d3(_0x5246e6['locale']),_0x50d351=_0x5246e6['commands']['get']('uploadcare');return _0x5e9db0['bind']('isEnabled')['to'](_0x50d351),_0x5e9db0['on']('execute',()=>{_0x50d351['execute'](_0x489a46);}),_0x5e9db0;}['_createToolbarButton'](_0x465e1a){const {locale:_0x7a97e1}=this['editor'],_0x301e92=this['editor']['plugins']['get']('ImageInsertUI'),_0x4a5a18=_0x465e1a[0x0],_0x40441d=this['_createButton'](_0x5ac191,_0x4a5a18['type']);return _0x40441d['icon']=_0x4a5a18['icon'],_0x40441d['bind']('label')['to'](_0x301e92,'isImageSelected',_0x412b0d=>x(_0x7a97e1,_0x4a5a18['type'],_0x412b0d?'Replace':'Insert')['text']),_0x40441d['tooltip']=!0x0,_0x40441d;}['_createDropdownButtons'](_0x20a97){const {locale:_0x4ea4be}=this['editor'],_0xfda915=this['editor']['plugins']['get']('ImageInsertUI');return _0x20a97['map'](_0x3c7fd7=>{const _0x43a651=this['_createButton'](_0x5ac191,_0x3c7fd7['type']);return _0x43a651['withText']=!0x0,_0x43a651['icon']=_0x3c7fd7['icon'],_0x43a651['bind']('label')['to'](_0xfda915,'isImageSelected',_0x4821df=>x(_0x4ea4be,_0x3c7fd7['type'],_0x4821df?'Replace':'Insert')['text']),_0x43a651;});}['_createMenuBarButtons'](_0x3d08d2){return _0x3d08d2['map'](_0x260573=>{const _0x3906ba=this['_createButton'](_0xa6e908,_0x260573['type']);return _0x3906ba['icon']=_0x260573['icon'],_0x3906ba['label']=_0x260573['shortText'],_0x3906ba;});}}class q extends _0x518dfe{['focusTracker'];['focusCycler'];constructor(_0x41d5eb){super(_0x41d5eb),this['focusTracker']=new _0x2deaf1(),this['focusCycler']=new _0x138457({'focusables':this['createCollection'](),'focusTracker':this['focusTracker']});}['getFocusableElement'](){return{'tag':'div','attributes':{'aria-hidden':'true','tabindex':'0'},'on':{'focus':this['bindTemplate']['to'](()=>{this['focusCycler']['fire']('forwardCycle');})}};}}class S extends q{constructor(_0x518acf){super(_0x518acf),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all-excluded','ck-uploadcare-form'],'tabindex':'-1'},'children':[{'tag':'uc-file-uploader-inline','attributes':{'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'uploader'}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}}function E(_0x573d29,_0x525bbe){const _0x115693=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x3f6c20=>_0x3f6c20<=_0x525bbe)['map'](_0x5b876d=>_0x573d29['replace'](/\/$/,'')+'/-/resize/'+_0x5b876d+'x/\x20'+_0x5b876d+'w');return{'imageFallbackUrl':_0x573d29,'imageSources':[{'srcset':_0x115693['join'](',\x20'),'sizes':'(max-width:\x20'+_0x525bbe+'px)\x20100vw,\x20'+_0x525bbe+'px','type':'image/webp'}]};}function F(_0x3d67da,_0x19250a,_0x512e2){const _0x56f3e8=_0x3d67da['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x56f3e8?parseInt(_0x56f3e8[0x1],0xa):_0x19250a,'height':_0x56f3e8?parseInt(_0x56f3e8[0x2],0xa):_0x512e2};}function m(_0x9d8fd7,_0x10394e){const _0x443cce=Object['create'](_0x52036e),_0x5d6780=_0x9d8fd7['plugins']['get']('ImageUtils'),_0x4e5dd8=_0x9d8fd7['editing']['mapper']['toViewElement'](_0x10394e),_0x294ab2=_0x5d6780['findViewImgElement'](_0x4e5dd8),_0x2df258=_0x9d8fd7['editing']['view']['domConverter']['viewToDom'](_0x294ab2),_0x506f14=_0x10394e['getAttribute']('width'),_0x2835b7=_0x10394e['getAttribute']('height'),_0x3aa357='image-processing';_0x9d8fd7['editing']['view']['change'](_0xbcc320=>{_0xbcc320['addClass'](_0x3aa357,_0x4e5dd8),_0xbcc320['setStyle']('aspect-ratio',_0x506f14+'/'+_0x2835b7,_0x294ab2);}),_0x443cce['listenTo'](_0x2df258,'load',()=>{_0x443cce['stopListening'](_0x2df258,'load'),_0x9d8fd7['editing']['view']['change'](_0x4a0331=>{_0x4a0331['removeClass'](_0x3aa357,_0x4e5dd8),_0x4a0331['removeStyle']('aspect-ratio',_0x294ab2);});});}function W(_0x4ce1e8){if(Array['isArray'](_0x4ce1e8)){const _0x425425=_0x4ce1e8['map'](W);return _0x3edb85=>_0x425425['some'](_0x10d09e=>_0x10d09e(_0x3edb85));}if('origin'==_0x4ce1e8){const _0x4a261e=_0x1c350d['window']['location']['origin'];return _0x16de78=>new URL(_0x16de78,_0x1c350d['document']['baseURI'])['origin']==_0x4a261e;}return'function'==typeof _0x4ce1e8?_0x4ce1e8:_0x4ce1e8 instanceof RegExp?_0x429c39=>!(!_0x429c39['match'](_0x4ce1e8)&&!_0x429c39['replace'](/^https?:\/\//,'')['match'](_0x4ce1e8)):()=>!0x1;}function M(_0x3acfff,_0x1c853e){return _0x23a250(_0x3acfff['target'])['includes'](_0x1c853e);}class l extends/* #__PURE__ -- @preserve */
24
- _0x148e8d(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x342dcf,_0x503377,_0x987661){super(),this['_editor']=_0x342dcf,this['_editing']=_0x503377,this['_dialog']=_0x342dcf['plugins']['get'](_0x2c8ca1),this['_api']=_0x503377['ctxElement']['getAPI'](),this['_type']=_0x987661,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:_0x2a6a8d,model:_0x23f5e2}=this['_editor'],_0xe62b0=_0x23f5e2['document']['selection']['getSelectedElement'](),_0x2690db=_0xe62b0&&(_0xe62b0['is']('element','imageBlock')||_0xe62b0['is']('element','imageInline'));this['_formView']=new S(_0x2a6a8d),this['_dialog']['show']({'id':'uploadCare','icon':_0x2ee407,'title':x(_0x2a6a8d,this['_type'],_0x2690db?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x1c745d['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x5c17a4=>!M(_0x5c17a4,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x17d2ba}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x535a49=>{const _0x19238e=_0x17d2ba['length'];for(const _0x3bdf16 of _0x17d2ba){const _0x22b560=_0x3bdf16===_0x17d2ba[_0x19238e-0x1],{cdnUrl:_0x4536a6,fileInfo:_0x477159}=_0x3bdf16;if(!_0x4536a6||!_0x477159)continue;const {width:_0x4ed67c,height:_0x374474}=_0x477159['imageInfo'],_0x19d1a2=F(_0x4536a6,_0x4ed67c,_0x374474),_0x30aace=E(_0x4536a6,_0x19d1a2['width']),_0x23459b={'id':_0x477159['uuid'],'type':'image','attributes':{'imageDimension':_0x19d1a2,..._0x30aace}};this['_insertAsset'](_0x23459b,_0x22b560,_0x535a49);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x11e10e=>{'idle'===_0x11e10e['detail']['status']&&!_0x11e10e['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===o['Local']?this['_api']['setCurrentActivity'](o['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x1325e4,_0x424002,_0x369d09){const _0x432a52=this['_editor']['model']['document']['selection'],_0x381273=_0x432a52['getSelectedElement'](),_0x1734a6=!(!_0x381273||!_0x381273['is']('element','imageInline'));_0x369d09['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x1325e4,_0x1734a6),_0x424002||_0x369d09['setSelection'](_0x432a52['getLastPosition']());}['_insertImage'](_0x2ae268,_0x226c9c){const _0x508d21=this['_editor'],{imageDimension:_0x1c42f5,imageFallbackUrl:_0x47b30f,imageSources:_0x1c8bec}=_0x2ae268['attributes'];_0x508d21['execute']('insertImage',{'imageType':_0x226c9c?'imageInline':null,'source':{'uploadcareImageId':_0x2ae268['id'],'src':_0x47b30f,'sources':_0x1c8bec,..._0x1c42f5}});}}class n extends _0x50207d{['_editing'];['_controller']=null;static get['requires'](){return[_0x2c8ca1,i];}constructor(_0x165a89){super(_0x165a89),this['_editing']=_0x165a89['plugins']['get'](i);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x21b871){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new l(this['editor'],this['_editing'],_0x21b871);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class C{static['upload']({file:_0x591d71,publicKey:_0x14d34f,signal:_0x13d1e6,onProgress:_0xba96bc}){return _0x319c72(_0x591d71,{'publicKey':_0x14d34f,'store':'auto','signal':_0x13d1e6,'onProgress':_0xba96bc});}static['getInfo'](_0x13e317,_0xc11c87){return _0x65e138(_0x13e317,_0xc11c87);}}class p extends _0x5a982b{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x342f98,i];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x20f877=this['editor'];if(!!!_0x20f877['config']['get']('uploadcare'))return;_0x20f877['plugins']['get'](_0x342f98)['createUploadAdapter']=_0x105b62=>new A(_0x105b62,_0x20f877),_0x20f877['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x585f0f,{imageElement:_0x42d048,data:_0x3912b7})=>{_0x20f877['model']['change'](_0x2a9e4d=>{_0x2a9e4d['setAttribute']('uploadcareImageId',_0x3912b7['uploadcareImageId'],_0x42d048);});});}}class A{['loader'];['editor'];['controller'];constructor(_0x4dccb5,_0x3bf006){this['loader']=_0x4dccb5,this['editor']=_0x3bf006,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x420e69=this['editor']['config']['get']('uploadcare.pubkey'),_0x5c4f6b=await this['loader']['file'];return C['upload']({'file':_0x5c4f6b,'publicKey':_0x420e69,'signal':this['controller']['signal'],'onProgress':_0x43f753=>{_0x43f753&&_0x43f753['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x43f753['value']);}})['then'](async _0x2e13bf=>{const {imageFallbackUrl:_0x16e955,imageSources:_0x1ace37}=E(_0x2e13bf['cdnUrl'],_0x2e13bf['imageInfo']['width']);return{'uploadcareImageId':_0x2e13bf['uuid'],'default':_0x16e955,'sources':_0x1ace37};})['catch'](()=>{const _0x43cb68=t('Cannot\x20upload\x20file:')+('\x20'+_0x5c4f6b['name']+'.');return Promise['reject'](_0x43cb68);});}['abort'](){this['controller']['abort']();}}class i extends _0x5a982b{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',p,_0x2c8ca1];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}['init'](){const _0x268c7b=this['editor'];_0x268c7b['commands']['add']('uploadcare',new n(_0x268c7b));}['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 _0x162c8a=_0x1c350d['document']['querySelector']('input[uploadcare-file-input]');_0x162c8a&&_0x162c8a['remove']();}),async function(_0x2c0206){const _0x187f72=_0x1029a8([0x6f,0x72,0x46,0x79,0x57,0x5a,0x69,0x38,0x43,0x37,0x70,0x62,0x4f,0x75,0x4a,0x44,0x41,0x49,0x78,0x4e,0x42,0x76,0x61,0x63,0x6e,0x34,0x47,0x33,0x30,0x77,0x35,0x53,0x6b,0x52,0x65,0x71,0x4c,0x4d,0x59,0x51,0x36,0x6a,0x6d,0x55,0x64,0x74,0x48,0x39,0x66,0x58,0x73,0x56,0x31,0x45,0x32,0x67,0x68,0x6c,0x50,0x4b,0x54,0x7a]),_0x57c4e2=0x475be8b1,_0x1a6beb=0x475cb7d1^_0x57c4e2,_0x53d989=window[_0x1029a8([0x44,0x61,0x74,0x65])][_0x1029a8([0x6e,0x6f,0x77])](),_0x346609=_0x2c0206[_0x1029a8([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x5680c4=new window[(_0x1029a8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x515bb0=>{_0x346609[_0x1029a8([0x6f,0x6e,0x63,0x65])](_0x1029a8([0x72,0x65,0x61,0x64,0x79]),_0x515bb0);}),_0x575cfa={[_0x1029a8([0x6b,0x74,0x79])]:_0x1029a8([0x45,0x43]),[_0x1029a8([0x75,0x73,0x65])]:_0x1029a8([0x73,0x69,0x67]),[_0x1029a8([0x63,0x72,0x76])]:_0x1029a8([0x50,0x2d,0x32,0x35,0x36]),[_0x1029a8([0x78])]:_0x1029a8([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]),[_0x1029a8([0x79])]:_0x1029a8([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]),[_0x1029a8([0x61,0x6c,0x67])]:_0x1029a8([0x45,0x53,0x32,0x35,0x36])},_0x5c0459=_0x346609[_0x1029a8([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x1029a8([0x67,0x65,0x74])](_0x1029a8([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x2a7453(){let _0x4df472,_0x417e4e=null,_0x5279aa=null;try{if(_0x5c0459==_0x1029a8([0x47,0x50,0x4c]))return _0x1029a8([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x4df472=_0x4f2566(),!_0x4df472)return _0x1029a8([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x4df472[_0x1029a8([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x5279aa=_0x482d21(_0x4df472[_0x1029a8([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x4df472[_0x1029a8([0x6a,0x74,0x69])])),await _0x12e514()?_0x246400()?_0x3bb2f6()?_0x1029a8([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0xda48fe()?(_0x4df472[_0x1029a8([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x1029a8([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x417e4e=_0x7681fe(_0x1029a8([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x4df472[_0x1029a8([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x1029a8([0x74,0x72,0x69,0x61,0x6c])&&(_0x417e4e=_0x7681fe(_0x1029a8([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x56e891()):_0x1029a8([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x1029a8([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x1029a8([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x17facb){return _0x1029a8([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x3bb2f6(){const _0x3167b0=[_0x1029a8([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x1029a8([0x74,0x72,0x69,0x61,0x6c])][_0x1029a8([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4df472[_0x1029a8([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x53d989/0x3e8:0xe10*_0x1a6beb;return _0x4df472[_0x1029a8([0x65,0x78,0x70])]<_0x3167b0;}function _0x246400(){const _0xcc538=_0x4df472[_0x1029a8([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0xcc538&&(!!_0xcc538[_0x1029a8([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1029a8([0x2a]))||!!_0xcc538[_0x1029a8([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1029a8([0x55,0x50,0x4c,0x43])));}function _0xda48fe(){const _0x2efdfa=_0x4df472[_0x1029a8([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x2efdfa||0x0==_0x2efdfa[_0x1029a8([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x2d9ff4}=new URL(window[_0x1029a8([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x2efdfa[_0x1029a8([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2d9ff4))return!0x0;const _0xfb1a01=_0x2d9ff4[_0x1029a8([0x73,0x70,0x6c,0x69,0x74])](_0x1029a8([0x2e]));return _0x2efdfa[_0x1029a8([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x2fe42b=>_0x2fe42b[_0x1029a8([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1029a8([0x2a])))[_0x1029a8([0x6d,0x61,0x70])](_0x4922a0=>_0x4922a0[_0x1029a8([0x73,0x70,0x6c,0x69,0x74])](_0x1029a8([0x2e])))[_0x1029a8([0x73,0x6f,0x6d,0x65])](_0x31942d=>_0xfb1a01[_0x1029a8([0x65,0x76,0x65,0x72,0x79])]((_0x473950,_0x5c9f12)=>_0x31942d[_0x5c9f12]===_0x473950||_0x31942d[_0x5c9f12]===_0x1029a8([0x2a])));}function _0x56e891(){return _0x417e4e&&_0x5279aa?new window[(_0x1029a8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3d4f72,_0x4af7ef)=>{_0x417e4e[_0x1029a8([0x74,0x68,0x65,0x6e])](_0x3d4f72,_0x4af7ef),_0x5279aa[_0x1029a8([0x74,0x68,0x65,0x6e])](_0x30c587=>{_0x30c587!=_0x1029a8([0x56,0x61,0x6c,0x69,0x64])&&_0x3d4f72(_0x30c587);},_0x4af7ef);}):_0x417e4e||_0x5279aa||_0x1029a8([0x56,0x61,0x6c,0x69,0x64]);}}function _0x482d21(_0x515849,_0x4de604){return new window[(_0x1029a8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x11fa29=>{if(_0xd72cc2())return _0x11fa29(_0x1029a8([0x56,0x61,0x6c,0x69,0x64]));_0x5060c6(),_0x346609[_0x1029a8([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x1029a8([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x4cc83f=!0x1;const _0x409d73=_0x1ef4d6();function _0x4b95ec(_0x2330d8){return!!_0x2330d8&&(typeof _0x2330d8===_0x1029a8([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x2330d8===_0x1029a8([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x2330d8[_0x1029a8([0x74,0x68,0x65,0x6e])]===_0x1029a8([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x2330d8[_0x1029a8([0x63,0x61,0x74,0x63,0x68])]===_0x1029a8([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x167cbb(_0x37eca9){_0x5eee4a(_0x37eca9)[_0x1029a8([0x74,0x68,0x65,0x6e])](_0x370ec1=>{if(!_0x370ec1||_0x370ec1[_0x1029a8([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x1029a8([0x6f,0x6b]))return _0x1029a8([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x58bb75(_0x1c2875(_0x409d73+_0x4de604))!=_0x370ec1[_0x1029a8([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x1029a8([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x1029a8([0x56,0x61,0x6c,0x69,0x64]);})[_0x1029a8([0x74,0x68,0x65,0x6e])](_0x4610f7=>(_0x280979(),_0x4610f7),()=>{const _0x56116a=_0x250264();return null==_0x56116a?(_0x280979(),_0x1029a8([0x56,0x61,0x6c,0x69,0x64])):_0x1029a8(_0x53d989-_0x56116a>(0x63576cb1^_0x57c4e2)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x1029a8([0x74,0x68,0x65,0x6e])](_0x11fa29)[_0x1029a8([0x63,0x61,0x74,0x63,0x68])](()=>{_0x11fa29(_0x1029a8([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x3bf58e=0x476d0631^_0x57c4e2;function _0x280979(){const _0x37ab9a=_0x1029a8([0x6c,0x6c,0x63,0x74,0x2d])+_0x58bb75(_0x1c2875(_0x515849)),_0x1b5723=_0x19306e(_0x58bb75(window[_0x1029a8([0x4d,0x61,0x74,0x68])][_0x1029a8([0x63,0x65,0x69,0x6c])](_0x53d989/_0x3bf58e)));window[_0x1029a8([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x1029a8([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x37ab9a,_0x1b5723);}function _0x250264(){const _0x1a8f08=_0x1029a8([0x6c,0x6c,0x63,0x74,0x2d])+_0x58bb75(_0x1c2875(_0x515849)),_0x1252ec=window[_0x1029a8([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x1029a8([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1a8f08);return _0x1252ec?window[_0x1029a8([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x19306e(_0x1252ec),0x10)*_0x3bf58e:null;}function _0x5eee4a(_0x2cbec7){return new window[(_0x1029a8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x140978,_0xdadb24)=>{_0x2cbec7[_0x1029a8([0x74,0x68,0x65,0x6e])](_0x140978,_0xdadb24),window[_0x1029a8([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0xdadb24,0x475a3c71^_0x57c4e2);});}}_0x346609[_0x1029a8([0x6f,0x6e])](_0x1029a8([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x5a9f0d,_0x314851)=>{if(_0x314851[0x0]!=_0x515849)return _0x11fa29(_0x1029a8([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x314851[0x1]={..._0x314851[0x1],[_0x1029a8([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x409d73};},{[_0x1029a8([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x1029a8([0x68,0x69,0x67,0x68])}),_0x346609[_0x1029a8([0x6f,0x6e])](_0x1029a8([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x2a42e6=>{_0x4b95ec(_0x2a42e6[_0x1029a8([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x4cc83f=!0x0,_0x167cbb(_0x2a42e6[_0x1029a8([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x1029a8([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x1029a8([0x6c,0x6f,0x77])}),_0x5680c4[_0x1029a8([0x74,0x68,0x65,0x6e])](()=>{_0x4cc83f||_0x11fa29(_0x1029a8([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0xd72cc2(){return _0x346609[_0x1029a8([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1029a8([0x76,0x69,0x65,0x77])][_0x1029a8([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x1029a8([0x61,0x75,0x74,0x6f]);}function _0x5060c6(){_0x346609[_0x1029a8([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1029a8([0x76,0x69,0x65,0x77])][_0x1029a8([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x1029a8([0x61,0x75,0x74,0x6f]);}}function _0x7681fe(_0xd8b015){const _0x5891db=[new window[(_0x1029a8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3ca750=>setTimeout(_0x3ca750,0x4752d67d^_0x57c4e2)),_0x5680c4[_0x1029a8([0x74,0x68,0x65,0x6e])](()=>new window[(_0x1029a8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x17cc74=>{let _0x3d67a0=0x0;_0x346609[_0x1029a8([0x6d,0x6f,0x64,0x65,0x6c])][_0x1029a8([0x6f,0x6e])](_0x1029a8([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x298f43,_0x29e6d5)=>{_0x29e6d5[0x0][_0x1029a8([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x3d67a0++,_0x3d67a0==(0x475be949^_0x57c4e2)&&(_0x17cc74(),_0x298f43[_0x1029a8([0x6f,0x66,0x66])]());});}))];return window[_0x1029a8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x1029a8([0x72,0x61,0x63,0x65])](_0x5891db)[_0x1029a8([0x74,0x68,0x65,0x6e])](()=>_0xd8b015);}async function _0x4395be(){await _0x5680c4,_0x346609[_0x1029a8([0x6d,0x6f,0x64,0x65,0x6c])][_0x1029a8([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x52093f,_0x346609[_0x1029a8([0x6d,0x6f,0x64,0x65,0x6c])][_0x1029a8([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x52093f,_0x346609[_0x1029a8([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x1029a8([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x3b48dd(_0x97f10e){const _0x2513f3=_0x44b4c4();_0x346609[_0x2513f3]=_0x1029a8([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x97f10e,_0x97f10e!=_0x1029a8([0x56,0x61,0x6c,0x69,0x64])&&_0x4395be();}function _0x44b4c4(){const _0x4f0dcb=window[_0x1029a8([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x1029a8([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x1029a8([0x6e,0x6f,0x77])]())[_0x1029a8([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x1029a8([0x2e]),'');let _0x1a817b=_0x1029a8([0x6f]);for(let _0x39a549=0x0;_0x39a549<_0x4f0dcb[_0x1029a8([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x39a549+=0x2){let _0x4d29ba=window[_0x1029a8([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4f0dcb[_0x1029a8([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x39a549,_0x39a549+0x2));_0x4d29ba>=_0x187f72[_0x1029a8([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x4d29ba-=_0x187f72[_0x1029a8([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x1a817b+=_0x187f72[_0x4d29ba];}return _0x1a817b;}function _0x4f2566(){const _0x537adf=_0x5c0459[_0x1029a8([0x73,0x70,0x6c,0x69,0x74])](_0x1029a8([0x2e]));if(0x3!=_0x537adf[_0x1029a8([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x1c4830(_0x537adf[0x1]);function _0x1c4830(_0x125850){const _0x4deaeb=_0x7fe82e(_0x125850);return _0x4deaeb&&_0x432411()?_0x4deaeb:null;function _0x432411(){const _0x2dfcff=_0x4deaeb[_0x1029a8([0x6a,0x74,0x69])],_0xf0798f=window[_0x1029a8([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2dfcff[_0x1029a8([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2dfcff[_0x1029a8([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0xcc998f={..._0x4deaeb,[_0x1029a8([0x6a,0x74,0x69])]:_0x2dfcff[_0x1029a8([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x2dfcff[_0x1029a8([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0xcc998f[_0x1029a8([0x76,0x63])],_0x1c2875(_0xcc998f)==_0xf0798f;}}}async function _0x12e514(){let _0x226a34=!0x0;try{const _0xfbbeec=_0x5c0459[_0x1029a8([0x73,0x70,0x6c,0x69,0x74])](_0x1029a8([0x2e])),[_0x13d60a,_0x4fd3c2,_0x342613]=_0xfbbeec;return _0x5c0260(_0x13d60a),await _0x32c2a3(_0x13d60a,_0x4fd3c2,_0x342613),_0x226a34;}catch(_0x2860f5){return!0x1;}function _0x5c0260(_0x2ac5f7){const _0x4cf963=_0x7fe82e(_0x2ac5f7);_0x4cf963&&_0x4cf963[_0x1029a8([0x61,0x6c,0x67])]==_0x1029a8([0x45,0x53,0x32,0x35,0x36])||(_0x226a34=!0x1);}async function _0x32c2a3(_0x23d3dc,_0x3fec6a,_0x3a5111){const _0x1107e5=window[_0x1029a8([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x1029a8([0x66,0x72,0x6f,0x6d])](_0x4aa35b(_0x3a5111),_0x58a8e9=>_0x58a8e9[_0x1029a8([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0xed1db9=new window[(_0x1029a8([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x1029a8([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x23d3dc+_0x1029a8([0x2e])+_0x3fec6a),_0x1a4ae1=window[_0x1029a8([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x1029a8([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x1a4ae1)return;const _0xcd2b9f=await _0x1a4ae1[_0x1029a8([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x1029a8([0x6a,0x77,0x6b]),_0x575cfa,{[_0x1029a8([0x6e,0x61,0x6d,0x65])]:_0x1029a8([0x45,0x43,0x44,0x53,0x41]),[_0x1029a8([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x1029a8([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x1029a8([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x1a4ae1[_0x1029a8([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x1029a8([0x6e,0x61,0x6d,0x65])]:_0x1029a8([0x45,0x43,0x44,0x53,0x41]),[_0x1029a8([0x68,0x61,0x73,0x68])]:{[_0x1029a8([0x6e,0x61,0x6d,0x65])]:_0x1029a8([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0xcd2b9f,_0x1107e5,_0xed1db9)||(_0x226a34=!0x1);}}function _0x7fe82e(_0x5c3e16){return _0x5c3e16[_0x1029a8([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x1029a8([0x65,0x79]))?JSON[_0x1029a8([0x70,0x61,0x72,0x73,0x65])](_0x4aa35b(_0x5c3e16)):null;}function _0x4aa35b(_0x58768a){return window[_0x1029a8([0x61,0x74,0x6f,0x62])](_0x58768a[_0x1029a8([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x1029a8([0x2b]))[_0x1029a8([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x1029a8([0x2f])));}function _0x1c2875(_0x3dbf1d){let _0x2b6694=0x1505;function _0x5b8ca7(_0xcd5009){for(let _0x10f2e8=0x0;_0x10f2e8<_0xcd5009[_0x1029a8([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x10f2e8++){const _0x4f834c=_0xcd5009[_0x1029a8([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x10f2e8);_0x2b6694=(_0x2b6694<<0x5)+_0x2b6694+_0x4f834c,_0x2b6694&=_0x2b6694;}}function _0x220254(_0xa0a302){Array[_0x1029a8([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0xa0a302)?_0xa0a302[_0x1029a8([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x220254):_0xa0a302&&typeof _0xa0a302==_0x1029a8([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x1029a8([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0xa0a302)[_0x1029a8([0x73,0x6f,0x72,0x74])]()[_0x1029a8([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x30e538,_0x32a9e1])=>{_0x5b8ca7(_0x30e538),_0x220254(_0x32a9e1);}):_0x5b8ca7(window[_0x1029a8([0x53,0x74,0x72,0x69,0x6e,0x67])](_0xa0a302));}return _0x220254(_0x3dbf1d),_0x2b6694>>>0x0;}function _0x58bb75(_0x48f1d7){return _0x48f1d7[_0x1029a8([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x1029a8([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x1029a8([0x30]));}function _0x19306e(_0x1b6093){return _0x1b6093[_0x1029a8([0x73,0x70,0x6c,0x69,0x74])]('')[_0x1029a8([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x1029a8([0x6a,0x6f,0x69,0x6e])]('');}function _0x52093f(){}function _0x1029a8(_0x385a2c){return _0x385a2c['map'](_0x2bb208=>String['fromCharCode'](_0x2bb208))['join']('');}_0x3b48dd(await _0x2a7453());}(this);}['_initSchema'](){const _0x2cdeca=this['editor']['model']['schema'];_0x2cdeca['isRegistered']('imageBlock')&&_0x2cdeca['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x2cdeca['isRegistered']('imageInline')&&_0x2cdeca['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x278a3c=this['editor'];_0x278a3c['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x278a3c['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x117a85=>_0x117a85['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x419316=_0x278a3c['commands']['get']('replaceImageSource');_0x419316&&this['listenTo'](_0x419316,'cleanupImage',(_0x1514a0,[_0x233302,_0x469533])=>{_0x233302['removeAttribute']('uploadcareImageId',_0x469533);});}['_initConfig'](){const _0x55c5af=this['editor']['config']['get']('uploadcare.uploader')||{},_0x300871=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x8e0716(_0x1c350d['document'],'uc-config',{..._0x55c5af,'pubkey':_0x300871,'ctx-name':'uploader','sourceList':'','imgOnly':'true','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage'],'externalSourcesEmbedCss':'\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup\x20{\x20padding:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-menu\x20{\x20gap:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-footer\x20{\x20padding-top:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__separator\x20{\x20margin:\x200;\x20}\x0a\x09\x09\x09'}),this['_configElement']['iconHrefResolver']=_0x48e48c=>{if('closeMax'==_0x48e48c)return'#uc-icon-arrow-down';},_0x1c350d['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x8e0716(_0x1c350d['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader'}),_0x1c350d['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x30a8a3=this['editor']['commands']['get']('insertImage');_0x30a8a3&&this['listenTo'](_0x30a8a3,'execute',()=>{const _0x1481b7=this['editor']['model']['document']['selection']['getSelectedElement']();_0x1481b7&&_0x1481b7['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{m(this['editor'],_0x1481b7);});});const _0x35875d=this['editor']['commands']['get']('uploadcareImageReplace');_0x35875d&&this['listenTo'](_0x35875d,'execute',()=>{const _0x4b329e=this['editor']['model']['document']['selection']['getSelectedElement']();_0x4b329e&&_0x4b329e['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{m(this['editor'],_0x4b329e);});});}}class u extends _0x5a982b{static get['requires'](){return[i,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x440d97){super(_0x440d97),_0x440d97['config']['define']('uploadcare.uploader.sourceList',[o['Local'],o['URL']]),_0xd01ef8['defineComponents'](_0xd01ef8);}}class ta extends _0x518dfe{constructor(_0x178a82){super(_0x178a82);const t=_0x178a82['t'],_0x1235d9=this['bindTemplate'],_0x4b2788=new _0x477856();_0x4b2788['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':[_0x4b2788,{'text':_0x1235d9['to']('imageUploadProgress',_0x12c789=>t('Loading\x20image...')+'\x20('+(_0x12c789||0x0)+'%)')}]},{'tag':'div','attributes':{'class':['ck-uploadcare-form__skeleton']},'children':[{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'}]},{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'}]}]}]});}}class rt extends _0x518dfe{constructor(_0x48c513){super(_0x48c513);const t=_0x48c513['t'];this['set']('errorType',null);const _0x19a533=new _0x5ac191(_0x48c513);_0x19a533['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x19a533['withText']=!0x0,_0x19a533['class']='ck-button-action',_0x19a533['on']('execute',()=>{this['fire']('retry');}),_0x19a533['bind']('isVisible')['to'](this,'errorType',_0x106b2f=>'NotFound'!==_0x106b2f);const _0x2d0ea2=new at();_0x2d0ea2['content']=et,_0x2d0ea2['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x2b99a8=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':[_0x2d0ea2,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x2b99a8['to']('errorType',_0x2e33b2=>t('NotFound'!==_0x2e33b2?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x19a533]},{'tag':'div','attributes':{'class':['ck-uploadcare-form__skeleton']},'children':[{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'}]},{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'}]}]}]});}}class tt extends _0x518dfe{constructor(_0x157f26,_0x3f666c){super(_0x157f26);const _0x4d3774=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x3f666c,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x4d3774['to']('imageSrc')}});}}class ii extends q{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x163a57,_0x48d185,_0xfdcf1d){super(_0x163a57),this['_items']=this['createCollection'](),this['_loadingView']=new ta(_0x163a57),this['_errorView']=new rt(_0x163a57),this['_editingView']=new tt(_0x163a57,_0xfdcf1d),this['_focusableView']=new _0x518dfe(_0x163a57),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x48d185),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'],_0x4daffb=>{this['_addUploadcareImageEditorListeners'](_0x4daffb);});}),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'](_0x40abe7,_0x4268d8){const _0x43be7c='uc-cloud-image-editor',_0x5e7110=_0x40abe7['querySelector'](_0x43be7c);if(_0x5e7110)return _0x4268d8(_0x5e7110);const _0x2c1f63=new MutationObserver(_0x131177=>{const _0x4f2309=_0x131177['filter'](_0xa45096=>_0xa45096['target']===_0x40abe7&&_0xa45096['addedNodes']['length']>0x0&&_0xa45096['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x43be7c);_0x4f2309['length']&&(_0x2c1f63['disconnect'](),_0x4268d8(_0x4f2309[0x0]['addedNodes'][0x0]));});_0x2c1f63['observe'](_0x40abe7,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x214373){_0x214373['addEventListener']('apply',_0x28ae53=>{this['fire']('apply',{'imageSrc':_0x28ae53['detail']['cdnUrl']});}),_0x214373['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class z extends/* #__PURE__ -- @preserve */
25
- _0x148e8d(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x49cfee,_0x3426bf,_0x259c4d){super(),this['_editor']=_0x49cfee,this['_dialog']=_0x3426bf,this['_imageElement']=_0x259c4d,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 _0x1f8316=this['_imageElement'],_0x5b763a=_0x1f8316['getAttribute']('uploadcareImageId'),_0x535dfd=_0x1f8316['getAttribute']('src');if(_0x5b763a)await this['_loadImageInfo'](_0x5b763a,_0x535dfd);else{if(this['_imageCache']['has'](_0x535dfd)){const _0x164885=this['_imageCache']['get'](_0x535dfd);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x164885['url'],this['imageDimension']=_0x164885['dimension'],this['imageId']=_0x164885['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x2fa5d5}=this['_editor'],t=_0x2fa5d5['t'],_0x28082c=new ii(_0x2fa5d5,this['imageStatus'],this['_attributes']);_0x28082c['bind']('status')['to'](this,'imageStatus'),_0x28082c['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x28082c['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x28082c['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x28082c,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x1ed10a,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x28082c,'position':_0x1c745d['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x28082c['focus']();},'onHide':()=>{_0x28082c['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x534f1e=>!M(_0x534f1e,_0x28082c['element'])}});}['_loadImageInfo'](_0x3263a1,_0x231074){return C['getInfo'](_0x3263a1,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey')})['then'](_0x2a8c09=>{const {width:_0x35493e,height:_0x4d630f}=_0x2a8c09['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x231074,this['imageDimension']={'width':_0x35493e,'height':_0x4d630f},this['imageId']=_0x3263a1;})['catch'](_0xe668a4=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0xe668a4['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x59d6e8,_0x521f31){return this['_getImageAsFile'](_0x59d6e8)['then'](_0x5ab671=>C['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'signal':_0x521f31['signal'],'file':_0x5ab671,'onProgress':_0x2457a9=>{_0x2457a9&&_0x2457a9['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x2457a9['value']));}}))['then'](_0x502e6=>{const {width:_0x21ad2c,height:_0x45f52f}=_0x502e6['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x502e6['cdnUrl'],this['imageDimension']={'width':_0x21ad2c,'height':_0x45f52f},this['imageId']=_0x502e6['uuid'],this['imageUploadProgress']=null;const _0x1b4917=_0x59d6e8['getAttribute']('src');this['_imageCache']['set'](_0x1b4917,{'id':_0x502e6['uuid'],'url':_0x502e6['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x2012bc=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x2012bc['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x472469,_0x30fd7b){_0x472469['on']('apply',(_0x37ee5f,_0x51d313)=>{this['_replaceImage'](_0x30fd7b,_0x51d313['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x472469['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x472469['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x513806,_0x879fe2,_0x488fec){const _0x535d8a=this['_editor'],{width:_0x5b3644,height:_0x3f2746}=F(_0x879fe2,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x2f1fa1,imageSources:_0x359989}=E(_0x879fe2,_0x5b3644);_0x535d8a['model']['change'](_0x5aef86=>{if('$graveyard'===_0x513806['root']['rootName']){_0x535d8a['execute']('insertImage',{'imageType':_0x513806['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x513806['getAttributes']()),'uploadcareImageId':_0x488fec,'src':_0x2f1fa1,'sources':_0x359989,'width':_0x5b3644,'height':_0x3f2746}});const _0x21d105=_0x513806['getChildren']();_0x513806=_0x535d8a['model']['document']['selection']['getSelectedElement']();for(const _0x417fc4 of _0x21d105)_0x5aef86['append'](_0x5aef86['cloneElement'](_0x417fc4),_0x513806);}else _0x5aef86['setSelection'](_0x513806,'on'),_0x535d8a['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x513806['getAttributes']()),'uploadcareImageId':_0x488fec,'src':_0x2f1fa1,'sources':_0x359989,'width':_0x5b3644,'height':_0x3f2746},_0x513806);_0x5aef86['setSelection'](_0x513806,'on');});}async['_getImageAsFile'](_0x377498){const _0x43674c=_0x1c350d['window'],_0x154ff5=_0x1c350d['document']['location']['href'],_0x735bae=new _0x43674c['URL'](_0x377498['getAttribute']('src'),_0x154ff5);if('data:'===_0x735bae['protocol']){const _0x968e9c=_0x735bae['href']['split'](','),_0x2aa2bc=_0x968e9c[0x0]['match'](/:(.*?);/)[0x1],_0x495f=_0x2aa2bc['split']('/')[0x1],_0x7acab4=_0x43674c['atob'](_0x968e9c[_0x968e9c['length']-0x1]);let _0x5d7163=_0x7acab4['length'];const _0x452088=new _0x43674c['Uint8Array'](_0x5d7163);for(;_0x5d7163--;)_0x452088[_0x5d7163]=_0x7acab4['charCodeAt'](_0x5d7163);return new _0x43674c['File']([_0x452088],'image.'+_0x495f,{'type':_0x2aa2bc});}const _0x5e658f=_0x735bae['href']['split']('/'),_0x224092=_0x5e658f[_0x5e658f['length']-0x1],_0xd92847=_0x224092['split']('.')[0x1];return _0x43674c['fetch'](_0x735bae['href'])['then'](_0x211d7b=>_0x211d7b['clone']()['blob']())['then'](_0x36f848=>new _0x43674c['File']([_0x36f848],_0x224092,{'type':'image/'+_0xd92847}));}}class J extends _0x50207d{['imageEditController'];static get['requires'](){return[_0x2c8ca1];}['_isEditable'];constructor(_0xa7bfc6){super(_0xa7bfc6),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x2b5f34){const _0x3da9bd=W(_0x2b5f34);return _0x4457a8=>!(!_0x4457a8||!_0x4457a8['is']('element','imageBlock')&&!_0x4457a8['is']('element','imageInline'))&&(!!_0x4457a8['hasAttribute']('uploadcareImageId')||!!_0x4457a8['hasAttribute']('src')&&_0x3da9bd(_0x4457a8['getAttribute']('src')));}(_0xa7bfc6['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x19ad22=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x19ad22);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x256832=this['editor']['model']['document']['selection']['getSelectedElement']();_0x256832&&(_0x256832['is']('element','imageBlock')||_0x256832['is']('element','imageInline'))&&(this['imageEditController']=new z(this['editor'],this['editor']['plugins']['get'](_0x2c8ca1),_0x256832),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class O extends _0x50207d{['refresh'](){const _0x2adf31=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x2adf31&&(_0x2adf31['is']('element','imageBlock')||_0x2adf31['is']('element','imageInline')));}['execute'](_0x1948d6){const _0x5da3d4=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x317455=>{_0x317455['setAttributes'](_0x1948d6,_0x5da3d4),_0x317455['removeAttribute']('srcset',_0x5da3d4),_0x317455['removeAttribute']('sizes',_0x5da3d4);});}}class g extends _0x5a982b{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[i,_0x62d8b1,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x25adb0}=this;_0x25adb0['commands']['add']('uploadcareImageEdit',new J(_0x25adb0)),_0x25adb0['commands']['add']('uploadcareImageReplace',new O(_0x25adb0));}}class j extends _0x5a982b{['_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 _0x263682=this['editor'];_0x263682['ui']['componentFactory']['add']('uploadcareImageEdit',_0x126bc3=>{const _0x28d49e=_0x263682['commands']['get']('uploadcareImageEdit'),_0x689147=new _0x5ac191(_0x126bc3),t=_0x126bc3['t'];return _0x689147['set']({'icon':_0x1ed10a,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x689147['bind']('isEnabled')['to'](_0x28d49e),_0x689147['bind']('isOn')['to'](_0x28d49e,'isActive'),this['listenTo'](_0x689147,'execute',()=>{_0x263682['execute']('uploadcareImageEdit'),_0x263682['editing']['view']['focus']();}),_0x689147;}),this['_initConfig']();}['_initConfig'](){const _0x427799=_0x8e0716(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x427799),this['listenTo'](this['editor'],'destroy',()=>{_0x427799['remove']();});}}class P extends _0x5a982b{static get['pluginName'](){return'UploadcareImageEdit';}static get['requires'](){return[g,j];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{u as Uploadcare,i as UploadcareEditing,P as UploadcareImageEdit,g as UploadcareImageEditEditing,j as UploadcareImageEditUI,e as UploadcareUI};
23
+ import{Plugin as _0x515b4b,Command as _0x56f085}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x411a4a,IconInstagram as _0xb1f563,IconGooglePhotos as _0x2e62c1,IconGoogleDrive as _0xed89,IconFacebook as _0x16c24b,IconDropbox as _0x35ee28,IconUploadcareLink as _0x51a9f2,IconUploadcareImageUpload as _0x3185c7,IconError as et,IconUploadcareImageEdit as _0x105564}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0xea9523,MenuBarMenuListItemButtonView as _0x559fbd,View as _0x31b8ae,FocusCycler as _0x317fe8,Dialog as _0x4c0f93,DialogViewPosition as _0x2455bf,SpinnerView as _0x15cbd8,IconView as at,Notification as _0x26191d}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x51eadd,DomEmitterMixin as _0x5af42d,global as _0x4d33a0,getAncestors as _0x327093,ObservableMixin as _0x39fd43,createElement as _0x13c25e,uid as _0x54e4ca}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x436c3b}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x5d5e6a,info as _0x5a3827}from'@uploadcare/upload-client';import*as _0x50bad2 from'@uploadcare/file-uploader';var o=function(_0x2612dd){return _0x2612dd['Local']='local',_0x2612dd['URL']='url',_0x2612dd['Dropbox']='dropbox',_0x2612dd['GDrive']='gdrive',_0x2612dd['Facebook']='facebook',_0x2612dd['GPhotos']='gphotos',_0x2612dd['Instagram']='instagram',_0x2612dd['OneDrive']='onedrive',_0x2612dd;}({});function x(_0xe40e1b,_0x4f3a5b,_0x12a58e){const t=_0xe40e1b['t'],_0x5d82a4=_0xe40e1b['t'];switch(_0x4f3a5b){case o['Local']:return{'text':_0x5d82a4('Insert'===_0x12a58e?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x5d82a4('From\x20computer')};case o['URL']:return{'text':'Insert'===_0x12a58e?_0x5d82a4('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x5d82a4('Via\x20URL')};case o['Dropbox']:return{'text':t('Insert'===_0x12a58e?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case o['Facebook']:return{'text':t('Insert'===_0x12a58e?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case o['GDrive']:return{'text':t('Insert'===_0x12a58e?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case o['GPhotos']:return{'text':t('Insert'===_0x12a58e?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case o['Instagram']:return{'text':t('Insert'===_0x12a58e?'Insert\x20with\x20Instagram':'Replace\x20with\x20Instagram'),'shortText':t('With\x20Instagram')};case o['OneDrive']:return{'text':t('Insert'===_0x12a58e?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x4f3a5b;}}class e extends _0x515b4b{['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 _0x26f857=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x1d5ceb;for(const _0x155b4c in _0x26f857){const _0x3d355f=_0x155b4c,_0x5dbcf5=_0x26f857[_0x3d355f];if('uploadcareLicenseKeyValid'==_0x5dbcf5||'uploadcareLicenseKeyInvalid'==_0x5dbcf5||'uploadcareLicenseKeyExpired'==_0x5dbcf5||'uploadcareLicenseKeyDomainLimit'==_0x5dbcf5||'uploadcareLicenseKeyNotAllowed'==_0x5dbcf5||'uploadcareLicenseKeyEvaluationLimit'==_0x5dbcf5||'uploadcareLicenseKeyTrialLimit'==_0x5dbcf5||'uploadcareLicenseKeyUsageLimit'==_0x5dbcf5){delete _0x26f857[_0x3d355f],_0x1d5ceb=_0x5dbcf5,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x1d5ceb&&_0x26f857['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x1d5ceb&&_0x26f857['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x1d5ceb&&_0x26f857['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x1d5ceb&&_0x26f857['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x1d5ceb&&_0x26f857['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyTrialLimit'==_0x1d5ceb&&_0x26f857['_showLicenseError']('trialLimit'),'uploadcareLicenseKeyUsageLimit'==_0x1d5ceb&&_0x26f857['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x4574b0}=this,_0x4fd95b=_0x4574b0['commands']['get']('uploadcare');if(!_0x4fd95b)return;const _0x201955=this['_normalizeConfigSourceList'](_0x4574b0['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x412dd4,_0x33d4ca)=>{const _0x1d0b8b=this['_getIntegrationKey'](_0x33d4ca['type']);return _0x412dd4[_0x1d0b8b]||(_0x412dd4[_0x1d0b8b]=[]),_0x412dd4[_0x1d0b8b]['push'](_0x33d4ca),_0x412dd4;},{});_0x4574b0['plugins']['has']('ImageInsertUI')&&_0x4574b0['commands']['get']('uploadcare')&&Object['entries'](_0x201955)['forEach'](([_0x42e28d,_0x5e102b])=>{_0x4574b0['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x42e28d,'observable':()=>_0x4fd95b,'buttonViewCreator':()=>this['_createToolbarButton'](_0x5e102b),'formViewCreator':()=>this['_createDropdownButtons'](_0x5e102b),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x5e102b),'override':'assetManager'!==_0x42e28d});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x2f2d86){const {locale:_0x3451e5}=this['editor'];return _0x2f2d86['map'](_0x173344=>{const _0x4557ba=x(_0x3451e5,_0x173344,'Insert');switch(_0x173344){case o['Local']:return{'icon':_0x3185c7,'type':o['Local'],..._0x4557ba};case o['URL']:return{'icon':_0x51a9f2,'type':o['URL'],..._0x4557ba};case o['Dropbox']:return{'icon':_0x35ee28,'type':o['Dropbox'],..._0x4557ba};case o['Facebook']:return{'icon':_0x16c24b,'type':o['Facebook'],..._0x4557ba};case o['GDrive']:return{'icon':_0xed89,'type':o['GDrive'],..._0x4557ba};case o['GPhotos']:return{'icon':_0x2e62c1,'type':o['GPhotos'],..._0x4557ba};case o['Instagram']:return{'icon':_0xb1f563,'type':o['Instagram'],..._0x4557ba};case o['OneDrive']:return{'icon':_0x411a4a,'type':o['OneDrive'],..._0x4557ba};}});}['_getIntegrationKey'](_0x3c2802){switch(_0x3c2802){case o['Local']:return'upload';case o['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x29591c,_0xfeb29e){const _0x1852dd=this['editor'],_0x316401=new _0x29591c(_0x1852dd['locale']),_0x517356=_0x1852dd['commands']['get']('uploadcare');return _0x316401['bind']('isEnabled')['to'](_0x517356),_0x316401['on']('execute',()=>{_0x517356['execute'](_0xfeb29e);}),_0x316401;}['_createToolbarButton'](_0x3fd287){const {locale:_0x259935}=this['editor'],_0x5a5f8b=this['editor']['plugins']['get']('ImageInsertUI'),_0x439b08=_0x3fd287[0x0],_0x54ba1c=this['_createButton'](_0xea9523,_0x439b08['type']);return _0x54ba1c['icon']=_0x439b08['icon'],_0x54ba1c['bind']('label')['to'](_0x5a5f8b,'isImageSelected',_0x531c6d=>x(_0x259935,_0x439b08['type'],_0x531c6d?'Replace':'Insert')['text']),_0x54ba1c['tooltip']=!0x0,_0x54ba1c;}['_createDropdownButtons'](_0xeb7a80){const {locale:_0x5d2487}=this['editor'],_0x588b70=this['editor']['plugins']['get']('ImageInsertUI');return _0xeb7a80['map'](_0x3d3a6b=>{const _0x717ae3=this['_createButton'](_0xea9523,_0x3d3a6b['type']);return _0x717ae3['withText']=!0x0,_0x717ae3['icon']=_0x3d3a6b['icon'],_0x717ae3['bind']('label')['to'](_0x588b70,'isImageSelected',_0x54ff2d=>x(_0x5d2487,_0x3d3a6b['type'],_0x54ff2d?'Replace':'Insert')['text']),_0x717ae3;});}['_createMenuBarButtons'](_0x5abe0c){return _0x5abe0c['map'](_0x1da1db=>{const _0x35fa25=this['_createButton'](_0x559fbd,_0x1da1db['type']);return _0x35fa25['icon']=_0x1da1db['icon'],_0x35fa25['label']=_0x1da1db['shortText'],_0x35fa25;});}}class q extends _0x31b8ae{['focusTracker'];['focusCycler'];constructor(_0x4c0157){super(_0x4c0157),this['focusTracker']=new _0x51eadd(),this['focusCycler']=new _0x317fe8({'focusables':this['createCollection'](),'focusTracker':this['focusTracker']});}['getFocusableElement'](){return{'tag':'div','attributes':{'aria-hidden':'true','tabindex':'0'},'on':{'focus':this['bindTemplate']['to'](()=>{this['focusCycler']['fire']('forwardCycle');})}};}}class S extends q{constructor(_0x205543){super(_0x205543),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all-excluded','ck-uploadcare-form'],'tabindex':'-1'},'children':[{'tag':'uc-file-uploader-inline','attributes':{'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'uploader'}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}}function E(_0x6a99f6,_0x2947ee){const _0x379176=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0xa82496=>_0xa82496<=_0x2947ee)['map'](_0x55dbc7=>_0x6a99f6['replace'](/\/$/,'')+'/-/resize/'+_0x55dbc7+'x/\x20'+_0x55dbc7+'w');return{'imageFallbackUrl':_0x6a99f6,'imageSources':[{'srcset':_0x379176['join'](',\x20'),'sizes':'(max-width:\x20'+_0x2947ee+'px)\x20100vw,\x20'+_0x2947ee+'px','type':'image/webp'}]};}function F(_0x31d8c3,_0xc59b4,_0x331bd2){const _0x205849=_0x31d8c3['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x205849?parseInt(_0x205849[0x1],0xa):_0xc59b4,'height':_0x205849?parseInt(_0x205849[0x2],0xa):_0x331bd2};}function m(_0x2ccf30,_0x388b32){const _0x4ab7fd=Object['create'](_0x5af42d),_0x4361d0=_0x2ccf30['plugins']['get']('ImageUtils'),_0xbcaba3=_0x2ccf30['editing']['mapper']['toViewElement'](_0x388b32),_0x54c6f6=_0x4361d0['findViewImgElement'](_0xbcaba3),_0xc5fc0f=_0x2ccf30['editing']['view']['domConverter']['viewToDom'](_0x54c6f6),_0x300f85=_0x388b32['getAttribute']('width'),_0x2d7d68=_0x388b32['getAttribute']('height'),_0x57090d='image-processing';_0x2ccf30['editing']['view']['change'](_0x299587=>{_0x299587['addClass'](_0x57090d,_0xbcaba3),_0x299587['setStyle']('aspect-ratio',_0x300f85+'/'+_0x2d7d68,_0x54c6f6);}),_0x4ab7fd['listenTo'](_0xc5fc0f,'load',()=>{_0x4ab7fd['stopListening'](_0xc5fc0f,'load'),_0x2ccf30['editing']['view']['change'](_0x238529=>{_0x238529['removeClass'](_0x57090d,_0xbcaba3),_0x238529['removeStyle']('aspect-ratio',_0x54c6f6);});});}function R(_0x54be28){if(Array['isArray'](_0x54be28)){const _0x4e8775=_0x54be28['map'](R);return _0x7fd09b=>_0x4e8775['some'](_0x4d25cf=>_0x4d25cf(_0x7fd09b));}if('origin'==_0x54be28){const _0x4cf8cb=_0x4d33a0['window']['location']['origin'];return _0x45f8c3=>new URL(_0x45f8c3,_0x4d33a0['document']['baseURI'])['origin']==_0x4cf8cb;}return'function'==typeof _0x54be28?_0x54be28:_0x54be28 instanceof RegExp?_0x2eabeb=>!(!_0x2eabeb['match'](_0x54be28)&&!_0x2eabeb['replace'](/^https?:\/\//,'')['match'](_0x54be28)):()=>!0x1;}function M(_0x5d2834,_0x1f97f7){return _0x327093(_0x5d2834['target'])['includes'](_0x1f97f7);}class l extends/* #__PURE__ -- @preserve */
24
+ _0x39fd43(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x1041ae,_0x45fcd4,_0xea4548){super(),this['_editor']=_0x1041ae,this['_editing']=_0x45fcd4,this['_dialog']=_0x1041ae['plugins']['get'](_0x4c0f93),this['_api']=_0x45fcd4['ctxElement']['getAPI'](),this['_type']=_0xea4548,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:_0x247f17,model:_0x1dd034}=this['_editor'],_0xbf1d32=_0x1dd034['document']['selection']['getSelectedElement'](),_0x1ed0a2=_0xbf1d32&&(_0xbf1d32['is']('element','imageBlock')||_0xbf1d32['is']('element','imageInline'));this['_formView']=new S(_0x247f17),this['_dialog']['show']({'id':'uploadCare','icon':_0x3185c7,'title':x(_0x247f17,this['_type'],_0x1ed0a2?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x2455bf['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x3f0f46=>!M(_0x3f0f46,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0xcadeda}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0xe4d080=>{const _0x4d70a5=_0xcadeda['length'];for(const _0x276281 of _0xcadeda){const _0x404ac1=_0x276281===_0xcadeda[_0x4d70a5-0x1],{cdnUrl:_0x558282,fileInfo:_0x285398}=_0x276281;if(!_0x558282||!_0x285398)continue;const {width:_0x56843c,height:_0x503eb7}=_0x285398['imageInfo'],_0x409a3a=F(_0x558282,_0x56843c,_0x503eb7),_0xee1cdf=E(_0x558282,_0x409a3a['width']),_0x23532c={'id':_0x285398['uuid'],'type':'image','attributes':{'imageDimension':_0x409a3a,..._0xee1cdf}};this['_insertAsset'](_0x23532c,_0x404ac1,_0xe4d080);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x42112d=>{'idle'===_0x42112d['detail']['status']&&!_0x42112d['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===o['Local']?this['_api']['setCurrentActivity'](o['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x2d13cd,_0x554c35,_0x491d0e){const _0x2916de=this['_editor']['model']['document']['selection'],_0x5942d4=_0x2916de['getSelectedElement'](),_0x11d648=!(!_0x5942d4||!_0x5942d4['is']('element','imageInline'));_0x491d0e['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x2d13cd,_0x11d648),_0x554c35||_0x491d0e['setSelection'](_0x2916de['getLastPosition']());}['_insertImage'](_0x2d26d9,_0x6be77c){const _0xeccbb=this['_editor'],{imageDimension:_0x221356,imageFallbackUrl:_0x19d95a,imageSources:_0x586186}=_0x2d26d9['attributes'];_0xeccbb['execute']('insertImage',{'imageType':_0x6be77c?'imageInline':null,'source':{'uploadcareImageId':_0x2d26d9['id'],'src':_0x19d95a,'sources':_0x586186,..._0x221356}});}}class n extends _0x56f085{['_editing'];['_controller']=null;static get['requires'](){return[_0x4c0f93,i];}constructor(_0x12a1a1){super(_0x12a1a1),this['_editing']=_0x12a1a1['plugins']['get'](i);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x38605c){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new l(this['editor'],this['_editing'],_0x38605c);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class C{static['upload']({file:_0x17a451,publicKey:_0x5388ec,signal:_0x2fb936,onProgress:_0x3d1f95}){return _0x5d5e6a(_0x17a451,{'publicKey':_0x5388ec,'store':'auto','signal':_0x2fb936,'onProgress':_0x3d1f95});}static['getInfo'](_0x373a54,_0x4f9e22){return _0x5a3827(_0x373a54,_0x4f9e22);}}class p extends _0x515b4b{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x436c3b,i];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x2e4de8=this['editor'];if(!!!_0x2e4de8['config']['get']('uploadcare'))return;_0x2e4de8['plugins']['get'](_0x436c3b)['createUploadAdapter']=_0x4625b5=>new A(_0x4625b5,_0x2e4de8),_0x2e4de8['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x1aeacf,{imageElement:_0xdc8541,data:_0x4ba48c})=>{_0x2e4de8['model']['change'](_0x3ec61b=>{_0x3ec61b['setAttribute']('uploadcareImageId',_0x4ba48c['uploadcareImageId'],_0xdc8541);});});}}class A{['loader'];['editor'];['controller'];constructor(_0x52c5c8,_0x4cdf28){this['loader']=_0x52c5c8,this['editor']=_0x4cdf28,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x34f31e=this['editor']['config']['get']('uploadcare.pubkey'),_0x3390f8=await this['loader']['file'];return C['upload']({'file':_0x3390f8,'publicKey':_0x34f31e,'signal':this['controller']['signal'],'onProgress':_0x1b30b6=>{_0x1b30b6&&_0x1b30b6['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x1b30b6['value']);}})['then'](async _0x276b15=>{const {imageFallbackUrl:_0x2cf7ef,imageSources:_0x262fd7}=E(_0x276b15['cdnUrl'],_0x276b15['imageInfo']['width']);return{'uploadcareImageId':_0x276b15['uuid'],'default':_0x2cf7ef,'sources':_0x262fd7};})['catch'](()=>{const _0x279e97=t('Cannot\x20upload\x20file:')+('\x20'+_0x3390f8['name']+'.');return Promise['reject'](_0x279e97);});}['abort'](){this['controller']['abort']();}}class i extends _0x515b4b{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',p,_0x4c0f93];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}['init'](){const _0x45429e=this['editor'];_0x45429e['commands']['add']('uploadcare',new n(_0x45429e));}['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 _0xb232d3=_0x4d33a0['document']['querySelector']('input[uploadcare-file-input]');_0xb232d3&&_0xb232d3['remove']();}),async function(_0x5db06a){const _0x3265c7=_0x469fff([0x6d,0x4b,0x6f,0x73,0x4e,0x39,0x6a,0x53,0x67,0x56,0x64,0x74,0x47,0x71,0x6c,0x42,0x61,0x46,0x4c,0x41,0x37,0x43,0x49,0x66,0x62,0x50,0x77,0x58,0x70,0x79,0x6b,0x54,0x55,0x4a,0x63,0x30,0x76,0x6e,0x7a,0x65,0x69,0x44,0x52,0x48,0x35,0x72,0x4d,0x31,0x68,0x45,0x38,0x57,0x51,0x34,0x59,0x32,0x5a,0x36,0x33,0x75,0x4f,0x78]),_0x235270=0x3e0d1096,_0x3c1c85=0x3e0a4fee^_0x235270,_0x2e1d77=window[_0x469fff([0x44,0x61,0x74,0x65])][_0x469fff([0x6e,0x6f,0x77])](),_0x194d1a=_0x5db06a[_0x469fff([0x65,0x64,0x69,0x74,0x6f,0x72])],_0xb2dc07=new window[(_0x469fff([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x49bd45=>{_0x194d1a[_0x469fff([0x6f,0x6e,0x63,0x65])](_0x469fff([0x72,0x65,0x61,0x64,0x79]),_0x49bd45);}),_0x58c812={[_0x469fff([0x6b,0x74,0x79])]:_0x469fff([0x45,0x43]),[_0x469fff([0x75,0x73,0x65])]:_0x469fff([0x73,0x69,0x67]),[_0x469fff([0x63,0x72,0x76])]:_0x469fff([0x50,0x2d,0x32,0x35,0x36]),[_0x469fff([0x78])]:_0x469fff([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]),[_0x469fff([0x79])]:_0x469fff([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]),[_0x469fff([0x61,0x6c,0x67])]:_0x469fff([0x45,0x53,0x32,0x35,0x36])},_0x431458=_0x194d1a[_0x469fff([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x469fff([0x67,0x65,0x74])](_0x469fff([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x5f408b(){let _0x4297ad,_0x2fef07=null,_0x4d8809=null;try{if(_0x431458==_0x469fff([0x47,0x50,0x4c]))return _0x469fff([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x4297ad=_0x504099(),!_0x4297ad)return _0x469fff([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x4297ad[_0x469fff([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x4d8809=_0xf45762(_0x4297ad[_0x469fff([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x4297ad[_0x469fff([0x6a,0x74,0x69])])),await _0x3cf87d()?_0x4d6aaf()?_0x4a6c92()?_0x469fff([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0xb7afbe()?(_0x4297ad[_0x469fff([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x469fff([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x2fef07=_0x237f8e(_0x469fff([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x4297ad[_0x469fff([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x469fff([0x74,0x72,0x69,0x61,0x6c])&&(_0x2fef07=_0x237f8e(_0x469fff([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x1112bf()):_0x469fff([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x469fff([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x469fff([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x39df4c){return _0x469fff([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x4a6c92(){const _0x1cb1aa=[_0x469fff([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x469fff([0x74,0x72,0x69,0x61,0x6c])][_0x469fff([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4297ad[_0x469fff([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x2e1d77/0x3e8:0xe10*_0x3c1c85;return _0x4297ad[_0x469fff([0x65,0x78,0x70])]<_0x1cb1aa;}function _0x4d6aaf(){const _0x576a16=_0x4297ad[_0x469fff([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x576a16&&(!!_0x576a16[_0x469fff([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x469fff([0x2a]))||!!_0x576a16[_0x469fff([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x469fff([0x55,0x50,0x4c,0x43])));}function _0xb7afbe(){const _0x79a620=_0x4297ad[_0x469fff([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x79a620||0x0==_0x79a620[_0x469fff([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x43cfc3}=new URL(window[_0x469fff([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x79a620[_0x469fff([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x43cfc3))return!0x0;const _0x12e574=_0x43cfc3[_0x469fff([0x73,0x70,0x6c,0x69,0x74])](_0x469fff([0x2e]));return _0x79a620[_0x469fff([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x1a4997=>_0x1a4997[_0x469fff([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x469fff([0x2a])))[_0x469fff([0x6d,0x61,0x70])](_0x1c6b28=>_0x1c6b28[_0x469fff([0x73,0x70,0x6c,0x69,0x74])](_0x469fff([0x2e])))[_0x469fff([0x73,0x6f,0x6d,0x65])](_0x5a6db9=>_0x12e574[_0x469fff([0x65,0x76,0x65,0x72,0x79])]((_0x4655a6,_0x25fb69)=>_0x5a6db9[_0x25fb69]===_0x4655a6||_0x5a6db9[_0x25fb69]===_0x469fff([0x2a])));}function _0x1112bf(){return _0x2fef07&&_0x4d8809?new window[(_0x469fff([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4ea9b5,_0x1146aa)=>{_0x2fef07[_0x469fff([0x74,0x68,0x65,0x6e])](_0x4ea9b5,_0x1146aa),_0x4d8809[_0x469fff([0x74,0x68,0x65,0x6e])](_0x2fcd44=>{_0x2fcd44!=_0x469fff([0x56,0x61,0x6c,0x69,0x64])&&_0x4ea9b5(_0x2fcd44);},_0x1146aa);}):_0x2fef07||_0x4d8809||_0x469fff([0x56,0x61,0x6c,0x69,0x64]);}}function _0xf45762(_0x1ffb1c,_0x3d5e81){return new window[(_0x469fff([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2284d6=>{if(_0x26a4ee())return _0x2284d6(_0x469fff([0x56,0x61,0x6c,0x69,0x64]));_0x2cc844(),_0x194d1a[_0x469fff([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x469fff([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x2b6fb7=!0x1;const _0x1951f4=_0x54e4ca();function _0x1c0de0(_0x5f315e){return!!_0x5f315e&&(typeof _0x5f315e===_0x469fff([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x5f315e===_0x469fff([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x5f315e[_0x469fff([0x74,0x68,0x65,0x6e])]===_0x469fff([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x5f315e[_0x469fff([0x63,0x61,0x74,0x63,0x68])]===_0x469fff([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x48aa17(_0x5975d2){_0x40ec3c(_0x5975d2)[_0x469fff([0x74,0x68,0x65,0x6e])](_0x1f416a=>{if(!_0x1f416a||_0x1f416a[_0x469fff([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x469fff([0x6f,0x6b]))return _0x469fff([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x54caa4(_0x3147c1(_0x1951f4+_0x3d5e81))!=_0x1f416a[_0x469fff([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x469fff([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x469fff([0x56,0x61,0x6c,0x69,0x64]);})[_0x469fff([0x74,0x68,0x65,0x6e])](_0x2630ca=>(_0x43015b(),_0x2630ca),()=>{const _0x600d33=_0x30a23d();return null==_0x600d33?(_0x43015b(),_0x469fff([0x56,0x61,0x6c,0x69,0x64])):_0x469fff(_0x2e1d77-_0x600d33>(0x1a019496^_0x235270)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x469fff([0x74,0x68,0x65,0x6e])](_0x2284d6)[_0x469fff([0x63,0x61,0x74,0x63,0x68])](()=>{_0x2284d6(_0x469fff([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x586a89=0x3e3bfe16^_0x235270;function _0x43015b(){const _0x19144a=_0x469fff([0x6c,0x6c,0x63,0x74,0x2d])+_0x54caa4(_0x3147c1(_0x1ffb1c)),_0x132325=_0x28a8b0(_0x54caa4(window[_0x469fff([0x4d,0x61,0x74,0x68])][_0x469fff([0x63,0x65,0x69,0x6c])](_0x2e1d77/_0x586a89)));window[_0x469fff([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x469fff([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x19144a,_0x132325);}function _0x30a23d(){const _0x4ba89b=_0x469fff([0x6c,0x6c,0x63,0x74,0x2d])+_0x54caa4(_0x3147c1(_0x1ffb1c)),_0x508ccb=window[_0x469fff([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x469fff([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4ba89b);return _0x508ccb?window[_0x469fff([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x28a8b0(_0x508ccb),0x10)*_0x586a89:null;}function _0x40ec3c(_0x10a41b){return new window[(_0x469fff([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x5d8a09,_0x550695)=>{_0x10a41b[_0x469fff([0x74,0x68,0x65,0x6e])](_0x5d8a09,_0x550695),window[_0x469fff([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x550695,0x3e0cc456^_0x235270);});}}_0x194d1a[_0x469fff([0x6f,0x6e])](_0x469fff([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x540689,_0x34be9f)=>{if(_0x34be9f[0x0]!=_0x1ffb1c)return _0x2284d6(_0x469fff([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x34be9f[0x1]={..._0x34be9f[0x1],[_0x469fff([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x1951f4};},{[_0x469fff([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x469fff([0x68,0x69,0x67,0x68])}),_0x194d1a[_0x469fff([0x6f,0x6e])](_0x469fff([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x28fed3=>{_0x1c0de0(_0x28fed3[_0x469fff([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x2b6fb7=!0x0,_0x48aa17(_0x28fed3[_0x469fff([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x469fff([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x469fff([0x6c,0x6f,0x77])}),_0xb2dc07[_0x469fff([0x74,0x68,0x65,0x6e])](()=>{_0x2b6fb7||_0x2284d6(_0x469fff([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x26a4ee(){return _0x194d1a[_0x469fff([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x469fff([0x76,0x69,0x65,0x77])][_0x469fff([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x469fff([0x61,0x75,0x74,0x6f]);}function _0x2cc844(){_0x194d1a[_0x469fff([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x469fff([0x76,0x69,0x65,0x77])][_0x469fff([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x469fff([0x61,0x75,0x74,0x6f]);}}function _0x237f8e(_0x81a515){const _0x3ce7e0=[new window[(_0x469fff([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x42ff1e=>setTimeout(_0x42ff1e,0x3e042e5a^_0x235270)),_0xb2dc07[_0x469fff([0x74,0x68,0x65,0x6e])](()=>new window[(_0x469fff([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x53a4ac=>{let _0x5dc6e9=0x0;_0x194d1a[_0x469fff([0x6d,0x6f,0x64,0x65,0x6c])][_0x469fff([0x6f,0x6e])](_0x469fff([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x1b0d98,_0xb9b4f2)=>{_0xb9b4f2[0x0][_0x469fff([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x5dc6e9++,_0x5dc6e9==(0x3e0d116e^_0x235270)&&(_0x53a4ac(),_0x1b0d98[_0x469fff([0x6f,0x66,0x66])]());});}))];return window[_0x469fff([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x469fff([0x72,0x61,0x63,0x65])](_0x3ce7e0)[_0x469fff([0x74,0x68,0x65,0x6e])](()=>_0x81a515);}async function _0x543195(){await _0xb2dc07,_0x194d1a[_0x469fff([0x6d,0x6f,0x64,0x65,0x6c])][_0x469fff([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x55d1aa,_0x194d1a[_0x469fff([0x6d,0x6f,0x64,0x65,0x6c])][_0x469fff([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x55d1aa,_0x194d1a[_0x469fff([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x469fff([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x61f762(_0x226c01){const _0x4c6db8=_0x5884f0();_0x194d1a[_0x4c6db8]=_0x469fff([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x226c01,_0x226c01!=_0x469fff([0x56,0x61,0x6c,0x69,0x64])&&_0x543195();}function _0x5884f0(){const _0x2f6d3f=window[_0x469fff([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x469fff([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x469fff([0x6e,0x6f,0x77])]())[_0x469fff([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x469fff([0x2e]),'');let _0x297ffb=_0x469fff([0x6d]);for(let _0x292ce6=0x0;_0x292ce6<_0x2f6d3f[_0x469fff([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x292ce6+=0x2){let _0x30d04a=window[_0x469fff([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2f6d3f[_0x469fff([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x292ce6,_0x292ce6+0x2));_0x30d04a>=_0x3265c7[_0x469fff([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x30d04a-=_0x3265c7[_0x469fff([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x297ffb+=_0x3265c7[_0x30d04a];}return _0x297ffb;}function _0x504099(){const _0x51119d=_0x431458[_0x469fff([0x73,0x70,0x6c,0x69,0x74])](_0x469fff([0x2e]));if(0x3!=_0x51119d[_0x469fff([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x1ccd2b(_0x51119d[0x1]);function _0x1ccd2b(_0x23ee3a){const _0x36be52=_0x1246a3(_0x23ee3a);return _0x36be52&&_0x24aa94()?_0x36be52:null;function _0x24aa94(){const _0x5f5dd1=_0x36be52[_0x469fff([0x6a,0x74,0x69])],_0x50c881=window[_0x469fff([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5f5dd1[_0x469fff([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x5f5dd1[_0x469fff([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x188cb0={..._0x36be52,[_0x469fff([0x6a,0x74,0x69])]:_0x5f5dd1[_0x469fff([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x5f5dd1[_0x469fff([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x188cb0[_0x469fff([0x76,0x63])],_0x3147c1(_0x188cb0)==_0x50c881;}}}async function _0x3cf87d(){let _0x44378e=!0x0;try{const _0x14b921=_0x431458[_0x469fff([0x73,0x70,0x6c,0x69,0x74])](_0x469fff([0x2e])),[_0x14f920,_0x2e82f5,_0x5040be]=_0x14b921;return _0x1a0974(_0x14f920),await _0x27dfdc(_0x14f920,_0x2e82f5,_0x5040be),_0x44378e;}catch(_0x16cf49){return!0x1;}function _0x1a0974(_0x8050d2){const _0x4f1116=_0x1246a3(_0x8050d2);_0x4f1116&&_0x4f1116[_0x469fff([0x61,0x6c,0x67])]==_0x469fff([0x45,0x53,0x32,0x35,0x36])||(_0x44378e=!0x1);}async function _0x27dfdc(_0x4f5134,_0x1cc047,_0x23ac95){const _0x114eaf=window[_0x469fff([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x469fff([0x66,0x72,0x6f,0x6d])](_0x38ce7d(_0x23ac95),_0xc19add=>_0xc19add[_0x469fff([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x1f19ce=new window[(_0x469fff([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x469fff([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x4f5134+_0x469fff([0x2e])+_0x1cc047),_0x2ba208=window[_0x469fff([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x469fff([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x2ba208)return;const _0x1856d5=await _0x2ba208[_0x469fff([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x469fff([0x6a,0x77,0x6b]),_0x58c812,{[_0x469fff([0x6e,0x61,0x6d,0x65])]:_0x469fff([0x45,0x43,0x44,0x53,0x41]),[_0x469fff([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x469fff([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x469fff([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x2ba208[_0x469fff([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x469fff([0x6e,0x61,0x6d,0x65])]:_0x469fff([0x45,0x43,0x44,0x53,0x41]),[_0x469fff([0x68,0x61,0x73,0x68])]:{[_0x469fff([0x6e,0x61,0x6d,0x65])]:_0x469fff([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x1856d5,_0x114eaf,_0x1f19ce)||(_0x44378e=!0x1);}}function _0x1246a3(_0x328d5f){return _0x328d5f[_0x469fff([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x469fff([0x65,0x79]))?JSON[_0x469fff([0x70,0x61,0x72,0x73,0x65])](_0x38ce7d(_0x328d5f)):null;}function _0x38ce7d(_0x72dc3d){return window[_0x469fff([0x61,0x74,0x6f,0x62])](_0x72dc3d[_0x469fff([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x469fff([0x2b]))[_0x469fff([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x469fff([0x2f])));}function _0x3147c1(_0x3680fb){let _0x4c4d45=0x1505;function _0x4fc8fb(_0x3f644d){for(let _0x5776aa=0x0;_0x5776aa<_0x3f644d[_0x469fff([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x5776aa++){const _0x32adac=_0x3f644d[_0x469fff([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x5776aa);_0x4c4d45=(_0x4c4d45<<0x5)+_0x4c4d45+_0x32adac,_0x4c4d45&=_0x4c4d45;}}function _0x2c1e0a(_0x27afd8){Array[_0x469fff([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x27afd8)?_0x27afd8[_0x469fff([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x2c1e0a):_0x27afd8&&typeof _0x27afd8==_0x469fff([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x469fff([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x27afd8)[_0x469fff([0x73,0x6f,0x72,0x74])]()[_0x469fff([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x55bc54,_0x26d90e])=>{_0x4fc8fb(_0x55bc54),_0x2c1e0a(_0x26d90e);}):_0x4fc8fb(window[_0x469fff([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x27afd8));}return _0x2c1e0a(_0x3680fb),_0x4c4d45>>>0x0;}function _0x54caa4(_0x5552e4){return _0x5552e4[_0x469fff([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x469fff([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x469fff([0x30]));}function _0x28a8b0(_0x1feae6){return _0x1feae6[_0x469fff([0x73,0x70,0x6c,0x69,0x74])]('')[_0x469fff([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x469fff([0x6a,0x6f,0x69,0x6e])]('');}function _0x55d1aa(){}function _0x469fff(_0xf4e00){return _0xf4e00['map'](_0x771c8c=>String['fromCharCode'](_0x771c8c))['join']('');}_0x61f762(await _0x5f408b());}(this);}['_initSchema'](){const _0x2a8e6a=this['editor']['model']['schema'];_0x2a8e6a['isRegistered']('imageBlock')&&_0x2a8e6a['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x2a8e6a['isRegistered']('imageInline')&&_0x2a8e6a['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x2ba507=this['editor'];_0x2ba507['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x2ba507['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x2bbc77=>_0x2bbc77['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x30f9c6=_0x2ba507['commands']['get']('replaceImageSource');_0x30f9c6&&this['listenTo'](_0x30f9c6,'cleanupImage',(_0x7421ec,[_0x207496,_0x5f09ec])=>{_0x207496['removeAttribute']('uploadcareImageId',_0x5f09ec);});}['_initConfig'](){const _0x26588a=this['editor']['config']['get']('uploadcare.uploader')||{},_0x409705=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x13c25e(_0x4d33a0['document'],'uc-config',{..._0x26588a,'pubkey':_0x409705,'ctx-name':'uploader','sourceList':'','imgOnly':'true','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage'],'externalSourcesEmbedCss':'\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup\x20{\x20padding:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-menu\x20{\x20gap:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-footer\x20{\x20padding-top:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__separator\x20{\x20margin:\x200;\x20}\x0a\x09\x09\x09'}),this['_configElement']['iconHrefResolver']=_0x13a09d=>{if('closeMax'==_0x13a09d)return'#uc-icon-arrow-down';},_0x4d33a0['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x13c25e(_0x4d33a0['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader'}),_0x4d33a0['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x46bba9=this['editor']['commands']['get']('insertImage');_0x46bba9&&this['listenTo'](_0x46bba9,'execute',()=>{const _0x16d8ac=this['editor']['model']['document']['selection']['getSelectedElement']();_0x16d8ac&&_0x16d8ac['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{m(this['editor'],_0x16d8ac);});});const _0x2543e6=this['editor']['commands']['get']('uploadcareImageReplace');_0x2543e6&&this['listenTo'](_0x2543e6,'execute',()=>{const _0x4540fa=this['editor']['model']['document']['selection']['getSelectedElement']();_0x4540fa&&_0x4540fa['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{m(this['editor'],_0x4540fa);});});}}class u extends _0x515b4b{static get['requires'](){return[i,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x53398c){super(_0x53398c),_0x53398c['config']['define']('uploadcare.uploader.sourceList',[o['Local'],o['URL']]),_0x50bad2['defineComponents'](_0x50bad2);}}class ta extends _0x31b8ae{constructor(_0x218a7d){super(_0x218a7d);const t=_0x218a7d['t'],_0x55f5cf=this['bindTemplate'],_0xd81f91=new _0x15cbd8();_0xd81f91['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':[_0xd81f91,{'text':_0x55f5cf['to']('imageUploadProgress',_0x50ba1b=>t('Loading\x20image...')+'\x20('+(_0x50ba1b||0x0)+'%)')}]},{'tag':'div','attributes':{'class':['ck-uploadcare-form__skeleton']},'children':[{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'}]},{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'}]}]}]});}}class rt extends _0x31b8ae{constructor(_0x292739){super(_0x292739);const t=_0x292739['t'];this['set']('errorType',null);const _0xac366=new _0xea9523(_0x292739);_0xac366['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0xac366['withText']=!0x0,_0xac366['class']='ck-button-action',_0xac366['on']('execute',()=>{this['fire']('retry');}),_0xac366['bind']('isVisible')['to'](this,'errorType',_0x18f7a5=>'NotFound'!==_0x18f7a5);const _0x1d2c0e=new at();_0x1d2c0e['content']=et,_0x1d2c0e['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x506d63=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':[_0x1d2c0e,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x506d63['to']('errorType',_0x225fa3=>t('NotFound'!==_0x225fa3?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0xac366]},{'tag':'div','attributes':{'class':['ck-uploadcare-form__skeleton']},'children':[{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'}]},{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'}]}]}]});}}class tt extends _0x31b8ae{constructor(_0x456ce4,_0x4988d2){super(_0x456ce4);const _0x3357cb=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x4988d2,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x3357cb['to']('imageSrc')}});}}class ii extends q{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x3c7ee3,_0x2fc64d,_0x379dff){super(_0x3c7ee3),this['_items']=this['createCollection'](),this['_loadingView']=new ta(_0x3c7ee3),this['_errorView']=new rt(_0x3c7ee3),this['_editingView']=new tt(_0x3c7ee3,_0x379dff),this['_focusableView']=new _0x31b8ae(_0x3c7ee3),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x2fc64d),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'],_0x5cac7b=>{this['_addUploadcareImageEditorListeners'](_0x5cac7b);});}),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'](_0x33299b,_0x4a31c6){const _0x13fea2='uc-cloud-image-editor',_0x56d450=_0x33299b['querySelector'](_0x13fea2);if(_0x56d450)return _0x4a31c6(_0x56d450);const _0x5482b8=new MutationObserver(_0x5f0d6c=>{const _0x3e6235=_0x5f0d6c['filter'](_0x45e710=>_0x45e710['target']===_0x33299b&&_0x45e710['addedNodes']['length']>0x0&&_0x45e710['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x13fea2);_0x3e6235['length']&&(_0x5482b8['disconnect'](),_0x4a31c6(_0x3e6235[0x0]['addedNodes'][0x0]));});_0x5482b8['observe'](_0x33299b,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x18d3a1){_0x18d3a1['addEventListener']('apply',_0x49dd73=>{this['fire']('apply',{'imageSrc':_0x49dd73['detail']['cdnUrl']});}),_0x18d3a1['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class Q extends/* #__PURE__ -- @preserve */
25
+ _0x39fd43(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x28f0fc,_0x4be27f,_0x21099e){super(),this['_editor']=_0x28f0fc,this['_dialog']=_0x4be27f,this['_imageElement']=_0x21099e,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 _0x29d038=this['_imageElement'],_0x449498=_0x29d038['getAttribute']('uploadcareImageId'),_0xde3d5c=_0x29d038['getAttribute']('src');if(_0x449498)await this['_loadImageInfo'](_0x449498,_0xde3d5c);else{if(this['_imageCache']['has'](_0xde3d5c)){const _0x2296cf=this['_imageCache']['get'](_0xde3d5c);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x2296cf['url'],this['imageDimension']=_0x2296cf['dimension'],this['imageId']=_0x2296cf['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x43d52b}=this['_editor'],t=_0x43d52b['t'],_0x1453c9=new ii(_0x43d52b,this['imageStatus'],this['_attributes']);_0x1453c9['bind']('status')['to'](this,'imageStatus'),_0x1453c9['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x1453c9['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x1453c9['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x1453c9,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x105564,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x1453c9,'position':_0x2455bf['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x1453c9['focus']();},'onHide':()=>{_0x1453c9['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x4b1856=>!M(_0x4b1856,_0x1453c9['element'])}});}['_loadImageInfo'](_0x17467f,_0x3e5c89){return C['getInfo'](_0x17467f,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey')})['then'](_0x4b21aa=>{const {width:_0x24a8ec,height:_0x39dcdc}=_0x4b21aa['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x3e5c89,this['imageDimension']={'width':_0x24a8ec,'height':_0x39dcdc},this['imageId']=_0x17467f;})['catch'](_0x300914=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x300914['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x424488,_0x46261f){return this['_getImageAsFile'](_0x424488)['then'](_0x5b7c07=>C['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'signal':_0x46261f['signal'],'file':_0x5b7c07,'onProgress':_0x2535b5=>{_0x2535b5&&_0x2535b5['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x2535b5['value']));}}))['then'](_0x2dcca8=>{const {width:_0x33abff,height:_0x5ce75a}=_0x2dcca8['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x2dcca8['cdnUrl'],this['imageDimension']={'width':_0x33abff,'height':_0x5ce75a},this['imageId']=_0x2dcca8['uuid'],this['imageUploadProgress']=null;const _0x5938b9=_0x424488['getAttribute']('src');this['_imageCache']['set'](_0x5938b9,{'id':_0x2dcca8['uuid'],'url':_0x2dcca8['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x4a02f8=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x4a02f8['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x4ef53,_0x5d5c7b){_0x4ef53['on']('apply',(_0x46e563,_0x7dff90)=>{this['_replaceImage'](_0x5d5c7b,_0x7dff90['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x4ef53['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x4ef53['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x32aabd,_0x12b18b,_0x5ea47c){const _0x381735=this['_editor'],{width:_0x1ee724,height:_0xb04fcb}=F(_0x12b18b,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x533d6d,imageSources:_0x4722f7}=E(_0x12b18b,_0x1ee724);_0x381735['model']['change'](_0x13b33b=>{if('$graveyard'===_0x32aabd['root']['rootName']){_0x381735['execute']('insertImage',{'imageType':_0x32aabd['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x32aabd['getAttributes']()),'uploadcareImageId':_0x5ea47c,'src':_0x533d6d,'sources':_0x4722f7,'width':_0x1ee724,'height':_0xb04fcb}});const _0x2941cf=_0x32aabd['getChildren']();_0x32aabd=_0x381735['model']['document']['selection']['getSelectedElement']();for(const _0x573ebf of _0x2941cf)_0x13b33b['append'](_0x13b33b['cloneElement'](_0x573ebf),_0x32aabd);}else _0x13b33b['setSelection'](_0x32aabd,'on'),_0x381735['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x32aabd['getAttributes']()),'uploadcareImageId':_0x5ea47c,'src':_0x533d6d,'sources':_0x4722f7,'width':_0x1ee724,'height':_0xb04fcb},_0x32aabd);_0x13b33b['setSelection'](_0x32aabd,'on');});}async['_getImageAsFile'](_0x50b321){const _0x2080dd=_0x4d33a0['window'],_0x5989e3=_0x4d33a0['document']['location']['href'],_0x4586bf=new _0x2080dd['URL'](_0x50b321['getAttribute']('src'),_0x5989e3);if('data:'===_0x4586bf['protocol']){const _0x308313=_0x4586bf['href']['split'](','),_0x17edb5=_0x308313[0x0]['match'](/:(.*?);/)[0x1],_0xbe6a67=_0x17edb5['split']('/')[0x1],_0xc316e=_0x2080dd['atob'](_0x308313[_0x308313['length']-0x1]);let _0x5cd631=_0xc316e['length'];const _0x258dc0=new _0x2080dd['Uint8Array'](_0x5cd631);for(;_0x5cd631--;)_0x258dc0[_0x5cd631]=_0xc316e['charCodeAt'](_0x5cd631);return new _0x2080dd['File']([_0x258dc0],'image.'+_0xbe6a67,{'type':_0x17edb5});}const _0x2a377f=_0x4586bf['href']['split']('/'),_0x739427=_0x2a377f[_0x2a377f['length']-0x1],_0x6b870a=_0x739427['split']('.')[0x1];return _0x2080dd['fetch'](_0x4586bf['href'])['then'](_0xfd6cba=>_0xfd6cba['clone']()['blob']())['then'](_0x170171=>new _0x2080dd['File']([_0x170171],_0x739427,{'type':'image/'+_0x6b870a}));}}class W extends _0x56f085{['imageEditController'];static get['requires'](){return[_0x4c0f93];}['_isEditable'];constructor(_0x5f2153){super(_0x5f2153),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x41fe21){const _0x1811d1=R(_0x41fe21);return _0x738a2f=>!(!_0x738a2f||!_0x738a2f['is']('element','imageBlock')&&!_0x738a2f['is']('element','imageInline'))&&(!!_0x738a2f['hasAttribute']('uploadcareImageId')||!!_0x738a2f['hasAttribute']('src')&&_0x1811d1(_0x738a2f['getAttribute']('src')));}(_0x5f2153['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x422e8a=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x422e8a);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x3c993b=this['editor']['model']['document']['selection']['getSelectedElement']();_0x3c993b&&(_0x3c993b['is']('element','imageBlock')||_0x3c993b['is']('element','imageInline'))&&(this['imageEditController']=new Q(this['editor'],this['editor']['plugins']['get'](_0x4c0f93),_0x3c993b),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class Y extends _0x56f085{['refresh'](){const _0x298723=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x298723&&(_0x298723['is']('element','imageBlock')||_0x298723['is']('element','imageInline')));}['execute'](_0x3ea191){const _0x51c385=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x586537=>{_0x586537['setAttributes'](_0x3ea191,_0x51c385),_0x586537['removeAttribute']('srcset',_0x51c385),_0x586537['removeAttribute']('sizes',_0x51c385);});}}class g extends _0x515b4b{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[i,_0x26191d,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x50ce3d}=this;_0x50ce3d['commands']['add']('uploadcareImageEdit',new W(_0x50ce3d)),_0x50ce3d['commands']['add']('uploadcareImageReplace',new Y(_0x50ce3d));}}class j extends _0x515b4b{['_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 _0x4b791f=this['editor'];_0x4b791f['ui']['componentFactory']['add']('uploadcareImageEdit',_0x5c43cc=>{const _0xf03e15=_0x4b791f['commands']['get']('uploadcareImageEdit'),_0x596df9=new _0xea9523(_0x5c43cc),t=_0x5c43cc['t'];return _0x596df9['set']({'icon':_0x105564,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x596df9['bind']('isEnabled')['to'](_0xf03e15),_0x596df9['bind']('isOn')['to'](_0xf03e15,'isActive'),this['listenTo'](_0x596df9,'execute',()=>{_0x4b791f['execute']('uploadcareImageEdit'),_0x4b791f['editing']['view']['focus']();}),_0x596df9;}),this['_initConfig']();}['_initConfig'](){const _0x48d340=_0x13c25e(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x48d340),this['listenTo'](this['editor'],'destroy',()=>{_0x48d340['remove']();});}}class P extends _0x515b4b{static get['pluginName'](){return'UploadcareImageEdit';}static get['requires'](){return[g,j];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{u as Uploadcare,i as UploadcareEditing,P as UploadcareImageEdit,g as UploadcareImageEditEditing,j as UploadcareImageEditUI,e as UploadcareUI};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ckeditor/ckeditor5-uploadcare",
3
- "version": "0.0.0-nightly-next-20250213.0",
3
+ "version": "0.0.0-nightly-next-20250214.0",
4
4
  "description": "Uploadcare feature for CKEditor 5.",
5
5
  "license": "SEE LICENSE IN LICENSE.md",
6
6
  "author": "CKSource (http://cksource.com/)",
@@ -23,14 +23,14 @@
23
23
  "framework"
24
24
  ],
25
25
  "dependencies": {
26
- "@ckeditor/ckeditor5-core": "0.0.0-nightly-next-20250213.0",
27
- "@ckeditor/ckeditor5-icons": "0.0.0-nightly-next-20250213.0",
28
- "@ckeditor/ckeditor5-image": "0.0.0-nightly-next-20250213.0",
29
- "@ckeditor/ckeditor5-theme-lark": "0.0.0-nightly-next-20250213.0",
30
- "@ckeditor/ckeditor5-ui": "0.0.0-nightly-next-20250213.0",
31
- "@ckeditor/ckeditor5-upload": "0.0.0-nightly-next-20250213.0",
32
- "@ckeditor/ckeditor5-utils": "0.0.0-nightly-next-20250213.0",
33
- "ckeditor5": "0.0.0-nightly-next-20250213.0",
26
+ "@ckeditor/ckeditor5-core": "0.0.0-nightly-next-20250214.0",
27
+ "@ckeditor/ckeditor5-icons": "0.0.0-nightly-next-20250214.0",
28
+ "@ckeditor/ckeditor5-image": "0.0.0-nightly-next-20250214.0",
29
+ "@ckeditor/ckeditor5-theme-lark": "0.0.0-nightly-next-20250214.0",
30
+ "@ckeditor/ckeditor5-ui": "0.0.0-nightly-next-20250214.0",
31
+ "@ckeditor/ckeditor5-upload": "0.0.0-nightly-next-20250214.0",
32
+ "@ckeditor/ckeditor5-utils": "0.0.0-nightly-next-20250214.0",
33
+ "ckeditor5": "0.0.0-nightly-next-20250214.0",
34
34
  "@uploadcare/file-uploader": "1.12.0",
35
35
  "@uploadcare/upload-client": "6.14.1"
36
36
  },
package/src/index.js CHANGED
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- (function(_0x34bfcc,_0x3fd2e2){var _0x76dfd9=_0x25a9,_0x273677=_0x34bfcc();while(!![]){try{var _0x2f71f7=parseInt(_0x76dfd9(0x1b9))/0x1+-parseInt(_0x76dfd9(0x1b2))/0x2*(parseInt(_0x76dfd9(0x1b3))/0x3)+-parseInt(_0x76dfd9(0x1b8))/0x4*(-parseInt(_0x76dfd9(0x1b4))/0x5)+parseInt(_0x76dfd9(0x1b5))/0x6+-parseInt(_0x76dfd9(0x1b6))/0x7+-parseInt(_0x76dfd9(0x1b7))/0x8+parseInt(_0x76dfd9(0x1ba))/0x9;if(_0x2f71f7===_0x3fd2e2)break;else _0x273677['push'](_0x273677['shift']());}catch(_0x3e8599){_0x273677['push'](_0x273677['shift']());}}}(_0x2e71,0x99aba));function _0x2e71(){var _0x128698=['4717062DKuuDM','157633qBiOIA','7910416ofQHxM','716OLDCqK','240877bvHerF','11827935IJgGXV','1420360VssEKP','3BPuRQK','270xCqHhG'];_0x2e71=function(){return _0x128698;};return _0x2e71();}function _0x25a9(_0x541c0f,_0x51a58a){var _0x2e7180=_0x2e71();return _0x25a9=function(_0x25a93e,_0x20d5a5){_0x25a93e=_0x25a93e-0x1b2;var _0x49d62a=_0x2e7180[_0x25a93e];return _0x49d62a;},_0x25a9(_0x541c0f,_0x51a58a);}export{default as Uploadcare}from'./uploadcare.js';export{default as UploadcareEditing}from'./uploadcareediting.js';export{default as UploadcareUI}from'./uploadcareui.js';export{default as UploadcareImageEdit}from'./uploadcareimageedit.js';export{default as UploadcareImageEditUI}from'./uploadcareimageedit/uploadcareimageeditui.js';export{default as UploadcareImageEditEditing}from'./uploadcareimageedit/uploadcareimageeditediting.js';import'./augmentation.js';
23
+ (function(_0x226a68,_0x444151){var _0x3b8216=_0x2738,_0x58c6c6=_0x226a68();while(!![]){try{var _0x2cbfe6=parseInt(_0x3b8216(0xb1))/0x1+-parseInt(_0x3b8216(0xac))/0x2*(parseInt(_0x3b8216(0xa9))/0x3)+parseInt(_0x3b8216(0xa8))/0x4+parseInt(_0x3b8216(0xae))/0x5+parseInt(_0x3b8216(0xb0))/0x6*(parseInt(_0x3b8216(0xb2))/0x7)+-parseInt(_0x3b8216(0xaa))/0x8*(-parseInt(_0x3b8216(0xab))/0x9)+parseInt(_0x3b8216(0xad))/0xa*(-parseInt(_0x3b8216(0xaf))/0xb);if(_0x2cbfe6===_0x444151)break;else _0x58c6c6['push'](_0x58c6c6['shift']());}catch(_0x30400c){_0x58c6c6['push'](_0x58c6c6['shift']());}}}(_0x1f9f,0xe5ab0));export{default as Uploadcare}from'./uploadcare.js';export{default as UploadcareEditing}from'./uploadcareediting.js';export{default as UploadcareUI}from'./uploadcareui.js';export{default as UploadcareImageEdit}from'./uploadcareimageedit.js';export{default as UploadcareImageEditUI}from'./uploadcareimageedit/uploadcareimageeditui.js';function _0x1f9f(){var _0x3a91d9=['2508252ZxShmg','3BKBHTF','144tYgXqL','493866UmNlhK','413628PteABe','30PsKNWN','555140PcjmNI','10570483rjSdyc','6bQSFTx','1677877LfKOdU','4386851xfbsIr'];_0x1f9f=function(){return _0x3a91d9;};return _0x1f9f();}function _0x2738(_0x2465ec,_0x5d23e3){var _0x1f9faf=_0x1f9f();return _0x2738=function(_0x2738a8,_0x1072fb){_0x2738a8=_0x2738a8-0xa8;var _0x24ec56=_0x1f9faf[_0x2738a8];return _0x24ec56;},_0x2738(_0x2465ec,_0x5d23e3);}export{default as UploadcareImageEditEditing}from'./uploadcareimageedit/uploadcareimageeditediting.js';import'./augmentation.js';
@@ -20,5 +20,5 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x757039=_0x57bc;(function(_0xd27b75,_0x8e745c){const _0x20c92f=_0x57bc,_0x3df7eb=_0xd27b75();while(!![]){try{const _0x5e9ec6=parseInt(_0x20c92f(0xc1))/0x1+-parseInt(_0x20c92f(0xd4))/0x2*(parseInt(_0x20c92f(0xc6))/0x3)+-parseInt(_0x20c92f(0xc8))/0x4+parseInt(_0x20c92f(0xdd))/0x5+-parseInt(_0x20c92f(0xb0))/0x6*(-parseInt(_0x20c92f(0xcc))/0x7)+parseInt(_0x20c92f(0xb7))/0x8+-parseInt(_0x20c92f(0xa6))/0x9*(-parseInt(_0x20c92f(0xc2))/0xa);if(_0x5e9ec6===_0x8e745c)break;else _0x3df7eb['push'](_0x3df7eb['shift']());}catch(_0x4da84d){_0x3df7eb['push'](_0x3df7eb['shift']());}}}(_0x37ab,0xa228f));function _0x37ab(){const _0x285f4e=['_formView','getOutputCollectionState','1799GeyZXN','imageInfo','destroy','focus','stopDelegating','execute','idle','_insertImage','6lHbwil','configElement','hide','insertImage','uploadCare','_dialog','imageBlock','change','_initDialog','606590vqosmu','width','stopListening','_initListeners','removeAllFiles','imageInline','isOpen','detail','getAPI','Local','element','linkHref','editing','image','length','getSelectedElement','_type','get','2979aQfbCi','view','addEventListener','uuid','Replace','selection','text','allEntries','show','Insert','28242oRIuYw','setSelection','_api','setCurrentActivity','model','removeSelectionAttribute','ctxElement','7785360iIuzXY','source-list','document','done-click','attributes','plugins','_insertAsset','initFlow','status','getLastPosition','141254clMSrd','24100snuVsp','doneFlow','setAttribute','EDITOR_TOP_CENTER','1298487rJXGIU','_editing','5121828pUHgTM','_editor'];_0x37ab=function(){return _0x285f4e;};return _0x37ab();}import{IconUploadcareImageUpload as _0x286b51}from'ckeditor5/src/icons.js';import{ObservableMixin as _0x1f7223}from'ckeditor5/src/utils.js';import{Dialog as _0x4981a4,DialogViewPosition as _0xbb0112}from'ckeditor5/src/ui.js';import _0x220d50 from'./uploadcareformview.js';import{UploadcareSource as _0x288a09}from'../uploadcareconfig.js';import{getTranslation as _0x1d5134}from'../utils/common-translations.js';function _0x57bc(_0x55110f,_0x3b8745){const _0x37ab8d=_0x37ab();return _0x57bc=function(_0x57bcc9,_0x26048d){_0x57bcc9=_0x57bcc9-0x9b;let _0x17eff1=_0x37ab8d[_0x57bcc9];return _0x17eff1;},_0x57bc(_0x55110f,_0x3b8745);}import{getImageUrls as _0x32fad2,getImageDimension as _0x2e62df}from'../utils/editingutils.js';import{isAncestor as _0x43f0af}from'../utils/isancestor.js';export default class l extends/* #__PURE__ -- @preserve */
24
- _0x1f7223(){[_0x757039(0xc9)];[_0x757039(0xd9)];[_0x757039(0xc7)];[_0x757039(0xb2)];[_0x757039(0xa4)]=null;[_0x757039(0xca)]=null;constructor(_0x1c04bb,_0x460904,_0x31e8e6){const _0x11e3fc=_0x757039;super(),this[_0x11e3fc(0xc9)]=_0x1c04bb,this[_0x11e3fc(0xc7)]=_0x460904,this[_0x11e3fc(0xd9)]=_0x1c04bb[_0x11e3fc(0xbc)][_0x11e3fc(0xa5)](_0x4981a4),this[_0x11e3fc(0xb2)]=_0x460904[_0x11e3fc(0xb6)][_0x11e3fc(0x9c)](),this[_0x11e3fc(0xa4)]=_0x31e8e6,this[_0x11e3fc(0xc7)][_0x11e3fc(0xd5)][_0x11e3fc(0xc4)](_0x11e3fc(0xb8),this[_0x11e3fc(0xa4)]),this[_0x11e3fc(0xdc)](),this[_0x11e3fc(0xe0)](),this[_0x11e3fc(0xb2)][_0x11e3fc(0xbe)]();}[_0x757039(0xce)](){const _0x47a7bd=_0x757039;this[_0x47a7bd(0xca)]&&(this[_0x47a7bd(0xca)][_0x47a7bd(0xce)](),this[_0x47a7bd(0xca)]=null),this[_0x47a7bd(0xb2)]&&this[_0x47a7bd(0xb2)][_0x47a7bd(0xc3)](),this[_0x47a7bd(0xdf)](),this[_0x47a7bd(0xd0)]();}[_0x757039(0xdc)](){const _0x150259=_0x757039,{locale:_0x4982da,model:_0x1dea35}=this[_0x150259(0xc9)],_0x5db8c0=_0x1dea35[_0x150259(0xb9)][_0x150259(0xab)][_0x150259(0xa3)](),_0x1c10c9=_0x5db8c0&&(_0x5db8c0['is'](_0x150259(0x9e),_0x150259(0xda))||_0x5db8c0['is'](_0x150259(0x9e),_0x150259(0xe2)));this[_0x150259(0xca)]=new _0x220d50(_0x4982da),this[_0x150259(0xd9)][_0x150259(0xae)]({'id':_0x150259(0xd8),'icon':_0x286b51,'title':_0x1d5134(_0x4982da,this[_0x150259(0xa4)],_0x1c10c9?_0x150259(0xaa):_0x150259(0xaf))[_0x150259(0xac)],'content':this[_0x150259(0xca)],'position':_0xbb0112[_0x150259(0xc5)],'isModal':!0x0,'onShow':()=>{const _0x391a29=_0x150259;this[_0x391a29(0xca)][_0x391a29(0xcf)]();},'onHide':()=>{const _0x25836a=_0x150259;this[_0x25836a(0xb2)][_0x25836a(0xe1)](),this[_0x25836a(0xc9)][_0x25836a(0xa0)][_0x25836a(0xa7)][_0x25836a(0xcf)](),this[_0x25836a(0xce)]();},'keystrokeHandlerOptions':{'filter':_0x514d81=>!_0x43f0af(_0x514d81,this[_0x150259(0xca)][_0x150259(0x9e)])}});}[_0x757039(0xe0)](){const _0x5806f5=_0x757039;this[_0x5806f5(0xc7)][_0x5806f5(0xb6)][_0x5806f5(0xa8)](_0x5806f5(0xba),()=>{const _0x2ace56=_0x5806f5,{allEntries:_0x32683f}=this[_0x2ace56(0xb2)][_0x2ace56(0xcb)]();this[_0x2ace56(0xc9)][_0x2ace56(0xb4)][_0x2ace56(0xdb)](_0x581eab=>{const _0x4db6c9=_0x2ace56,_0x23cc2a=_0x32683f[_0x4db6c9(0xa2)];for(const _0x39b1d2 of _0x32683f){const _0x69b478=_0x39b1d2===_0x32683f[_0x23cc2a-0x1],{cdnUrl:_0x3dfdec,fileInfo:_0xc155a6}=_0x39b1d2;if(!_0x3dfdec||!_0xc155a6)continue;const {width:_0x27efbe,height:_0xc00d38}=_0xc155a6[_0x4db6c9(0xcd)],_0x375919=_0x2e62df(_0x3dfdec,_0x27efbe,_0xc00d38),_0x369f50=_0x32fad2(_0x3dfdec,_0x375919[_0x4db6c9(0xde)]),_0x1e8d95={'id':_0xc155a6[_0x4db6c9(0xa9)],'type':_0x4db6c9(0xa1),'attributes':{'imageDimension':_0x375919,..._0x369f50}};this[_0x4db6c9(0xbd)](_0x1e8d95,_0x69b478,_0x581eab);}}),this[_0x2ace56(0xd9)][_0x2ace56(0xd6)]();}),this[_0x5806f5(0xc7)][_0x5806f5(0xb6)][_0x5806f5(0xa8)](_0x5806f5(0xdb),_0x487f89=>{const _0x4ec8b7=_0x5806f5;_0x4ec8b7(0xd2)===_0x487f89[_0x4ec8b7(0x9b)][_0x4ec8b7(0xbf)]&&!_0x487f89[_0x4ec8b7(0x9b)][_0x4ec8b7(0xad)][_0x4ec8b7(0xa2)]&&this[_0x4ec8b7(0xd9)][_0x4ec8b7(0xe3)]&&(this[_0x4ec8b7(0xa4)]===_0x288a09[_0x4ec8b7(0x9d)]?this[_0x4ec8b7(0xb2)][_0x4ec8b7(0xb3)](_0x288a09[_0x4ec8b7(0x9d)]):this[_0x4ec8b7(0xb2)][_0x4ec8b7(0xbe)]());});}[_0x757039(0xbd)](_0x5cfc1f,_0x2675c5,_0x47585f){const _0x519803=_0x757039,_0x365bfb=this[_0x519803(0xc9)][_0x519803(0xb4)][_0x519803(0xb9)][_0x519803(0xab)],_0x18dad1=_0x365bfb[_0x519803(0xa3)](),_0x3bf5e6=!(!_0x18dad1||!_0x18dad1['is'](_0x519803(0x9e),_0x519803(0xe2)));_0x47585f[_0x519803(0xb5)](_0x519803(0x9f)),this[_0x519803(0xd3)](_0x5cfc1f,_0x3bf5e6),_0x2675c5||_0x47585f[_0x519803(0xb1)](_0x365bfb[_0x519803(0xc0)]());}[_0x757039(0xd3)](_0x17dbe3,_0x1df83f){const _0x583761=_0x757039,_0x2a06a0=this[_0x583761(0xc9)],{imageDimension:_0x54449e,imageFallbackUrl:_0x4ef3ec,imageSources:_0x5bb9f5}=_0x17dbe3[_0x583761(0xbb)];_0x2a06a0[_0x583761(0xd1)](_0x583761(0xd7),{'imageType':_0x1df83f?_0x583761(0xe2):null,'source':{'uploadcareImageId':_0x17dbe3['id'],'src':_0x4ef3ec,'sources':_0x5bb9f5,..._0x54449e}});}}
23
+ const _0x106699=_0x754b;(function(_0x3ac48a,_0x2472aa){const _0x42cf7f=_0x754b,_0x589a1c=_0x3ac48a();while(!![]){try{const _0x234156=parseInt(_0x42cf7f(0x129))/0x1*(-parseInt(_0x42cf7f(0x152))/0x2)+-parseInt(_0x42cf7f(0x137))/0x3*(-parseInt(_0x42cf7f(0x12f))/0x4)+-parseInt(_0x42cf7f(0x122))/0x5*(parseInt(_0x42cf7f(0x12d))/0x6)+-parseInt(_0x42cf7f(0x160))/0x7*(-parseInt(_0x42cf7f(0x13b))/0x8)+-parseInt(_0x42cf7f(0x13e))/0x9*(parseInt(_0x42cf7f(0x12c))/0xa)+-parseInt(_0x42cf7f(0x15c))/0xb*(parseInt(_0x42cf7f(0x154))/0xc)+-parseInt(_0x42cf7f(0x16a))/0xd*(-parseInt(_0x42cf7f(0x15f))/0xe);if(_0x234156===_0x2472aa)break;else _0x589a1c['push'](_0x589a1c['shift']());}catch(_0x4686ff){_0x589a1c['push'](_0x589a1c['shift']());}}}(_0x3d56,0xb3884));function _0x754b(_0x5298a2,_0x5f2113){const _0x3d5649=_0x3d56();return _0x754b=function(_0x754bc,_0x39960b){_0x754bc=_0x754bc-0x11e;let _0x3c4e6a=_0x3d5649[_0x754bc];return _0x3c4e6a;},_0x754b(_0x5298a2,_0x5f2113);}import{IconUploadcareImageUpload as _0x1a1928}from'ckeditor5/src/icons.js';import{ObservableMixin as _0x4ceebc}from'ckeditor5/src/utils.js';import{Dialog as _0x6860be,DialogViewPosition as _0x24c031}from'ckeditor5/src/ui.js';import _0x151223 from'./uploadcareformview.js';function _0x3d56(){const _0x203286=['source-list','length','configElement','imageBlock','stopDelegating','EDITOR_TOP_CENTER','_insertAsset','17059081PigKcA','allEntries','imageInfo','_dialog','status','90FwFjVb','destroy','insertImage','change','model','_initDialog','_initListeners','37KilBti','hide','_formView','383530VMBCps','319086bfuina','Insert','12CkgeEz','editing','linkHref','doneFlow','detail','view','selection','addEventListener','214116pAtxvX','removeSelectionAttribute','getSelectedElement','removeAllFiles','292296YqYOOL','uuid','ctxElement','234PXXiRd','show','done-click','initFlow','_type','text','_api','Replace','imageInline','isOpen','setAttribute','attributes','_insertImage','setCurrentActivity','setSelection','_editor','get','execute','element','document','5372JrfwNa','getOutputCollectionState','12VTCZXL','width','focus','_editing','idle','stopListening','image','uploadCare','11394977IFoukS','plugins','getLastPosition','28YLCNpw','189CPdGwE','getAPI','Local'];_0x3d56=function(){return _0x203286;};return _0x3d56();}import{UploadcareSource as _0x168601}from'../uploadcareconfig.js';import{getTranslation as _0x9eb1f}from'../utils/common-translations.js';import{getImageUrls as _0x3e0d8a,getImageDimension as _0x19d0ed}from'../utils/editingutils.js';import{isAncestor as _0x5b1a32}from'../utils/isancestor.js';export default class l extends/* #__PURE__ -- @preserve */
24
+ _0x4ceebc(){[_0x106699(0x14d)];[_0x106699(0x120)];[_0x106699(0x157)];[_0x106699(0x144)];[_0x106699(0x142)]=null;[_0x106699(0x12b)]=null;constructor(_0x9fe1ac,_0x3647dd,_0x34f80f){const _0x24a11e=_0x106699;super(),this[_0x24a11e(0x14d)]=_0x9fe1ac,this[_0x24a11e(0x157)]=_0x3647dd,this[_0x24a11e(0x120)]=_0x9fe1ac[_0x24a11e(0x15d)][_0x24a11e(0x14e)](_0x6860be),this[_0x24a11e(0x144)]=_0x3647dd[_0x24a11e(0x13d)][_0x24a11e(0x161)](),this[_0x24a11e(0x142)]=_0x34f80f,this[_0x24a11e(0x157)][_0x24a11e(0x165)][_0x24a11e(0x148)](_0x24a11e(0x163),this[_0x24a11e(0x142)]),this[_0x24a11e(0x127)](),this[_0x24a11e(0x128)](),this[_0x24a11e(0x144)][_0x24a11e(0x141)]();}[_0x106699(0x123)](){const _0x138755=_0x106699;this[_0x138755(0x12b)]&&(this[_0x138755(0x12b)][_0x138755(0x123)](),this[_0x138755(0x12b)]=null),this[_0x138755(0x144)]&&this[_0x138755(0x144)][_0x138755(0x132)](),this[_0x138755(0x159)](),this[_0x138755(0x167)]();}[_0x106699(0x127)](){const _0x493b3d=_0x106699,{locale:_0x20eb66,model:_0x6c7547}=this[_0x493b3d(0x14d)],_0x4ae4ac=_0x6c7547[_0x493b3d(0x151)][_0x493b3d(0x135)][_0x493b3d(0x139)](),_0x1e5bf4=_0x4ae4ac&&(_0x4ae4ac['is'](_0x493b3d(0x150),_0x493b3d(0x166))||_0x4ae4ac['is'](_0x493b3d(0x150),_0x493b3d(0x146)));this[_0x493b3d(0x12b)]=new _0x151223(_0x20eb66),this[_0x493b3d(0x120)][_0x493b3d(0x13f)]({'id':_0x493b3d(0x15b),'icon':_0x1a1928,'title':_0x9eb1f(_0x20eb66,this[_0x493b3d(0x142)],_0x1e5bf4?_0x493b3d(0x145):_0x493b3d(0x12e))[_0x493b3d(0x143)],'content':this[_0x493b3d(0x12b)],'position':_0x24c031[_0x493b3d(0x168)],'isModal':!0x0,'onShow':()=>{const _0x2028f0=_0x493b3d;this[_0x2028f0(0x12b)][_0x2028f0(0x156)]();},'onHide':()=>{const _0x24184d=_0x493b3d;this[_0x24184d(0x144)][_0x24184d(0x13a)](),this[_0x24184d(0x14d)][_0x24184d(0x130)][_0x24184d(0x134)][_0x24184d(0x156)](),this[_0x24184d(0x123)]();},'keystrokeHandlerOptions':{'filter':_0x5d64a6=>!_0x5b1a32(_0x5d64a6,this[_0x493b3d(0x12b)][_0x493b3d(0x150)])}});}[_0x106699(0x128)](){const _0x10118e=_0x106699;this[_0x10118e(0x157)][_0x10118e(0x13d)][_0x10118e(0x136)](_0x10118e(0x140),()=>{const _0x4d54de=_0x10118e,{allEntries:_0x3a5dab}=this[_0x4d54de(0x144)][_0x4d54de(0x153)]();this[_0x4d54de(0x14d)][_0x4d54de(0x126)][_0x4d54de(0x125)](_0x57a43e=>{const _0x5d4094=_0x4d54de,_0xd5df47=_0x3a5dab[_0x5d4094(0x164)];for(const _0x5c2232 of _0x3a5dab){const _0x1acb2a=_0x5c2232===_0x3a5dab[_0xd5df47-0x1],{cdnUrl:_0x4c340b,fileInfo:_0x1627bb}=_0x5c2232;if(!_0x4c340b||!_0x1627bb)continue;const {width:_0x26d5f6,height:_0x5b234e}=_0x1627bb[_0x5d4094(0x11f)],_0x5477e5=_0x19d0ed(_0x4c340b,_0x26d5f6,_0x5b234e),_0x47e36d=_0x3e0d8a(_0x4c340b,_0x5477e5[_0x5d4094(0x155)]),_0x30ab50={'id':_0x1627bb[_0x5d4094(0x13c)],'type':_0x5d4094(0x15a),'attributes':{'imageDimension':_0x5477e5,..._0x47e36d}};this[_0x5d4094(0x169)](_0x30ab50,_0x1acb2a,_0x57a43e);}}),this[_0x4d54de(0x120)][_0x4d54de(0x12a)]();}),this[_0x10118e(0x157)][_0x10118e(0x13d)][_0x10118e(0x136)](_0x10118e(0x125),_0x35008d=>{const _0x26294e=_0x10118e;_0x26294e(0x158)===_0x35008d[_0x26294e(0x133)][_0x26294e(0x121)]&&!_0x35008d[_0x26294e(0x133)][_0x26294e(0x11e)][_0x26294e(0x164)]&&this[_0x26294e(0x120)][_0x26294e(0x147)]&&(this[_0x26294e(0x142)]===_0x168601[_0x26294e(0x162)]?this[_0x26294e(0x144)][_0x26294e(0x14b)](_0x168601[_0x26294e(0x162)]):this[_0x26294e(0x144)][_0x26294e(0x141)]());});}[_0x106699(0x169)](_0xa457de,_0x3fac73,_0x40eb11){const _0x105732=_0x106699,_0x537d1e=this[_0x105732(0x14d)][_0x105732(0x126)][_0x105732(0x151)][_0x105732(0x135)],_0x14fbaf=_0x537d1e[_0x105732(0x139)](),_0x3dac48=!(!_0x14fbaf||!_0x14fbaf['is'](_0x105732(0x150),_0x105732(0x146)));_0x40eb11[_0x105732(0x138)](_0x105732(0x131)),this[_0x105732(0x14a)](_0xa457de,_0x3dac48),_0x3fac73||_0x40eb11[_0x105732(0x14c)](_0x537d1e[_0x105732(0x15e)]());}[_0x106699(0x14a)](_0x2cdca7,_0x240736){const _0x4eeb40=_0x106699,_0x27d354=this[_0x4eeb40(0x14d)],{imageDimension:_0x4a7c96,imageFallbackUrl:_0x579339,imageSources:_0xd710f}=_0x2cdca7[_0x4eeb40(0x149)];_0x27d354[_0x4eeb40(0x14f)](_0x4eeb40(0x124),{'imageType':_0x240736?_0x4eeb40(0x146):null,'source':{'uploadcareImageId':_0x2cdca7['id'],'src':_0x579339,'sources':_0xd710f,..._0x4a7c96}});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x2ff6(_0x10a325,_0x199eb7){var _0x28c11e=_0x28c1();return _0x2ff6=function(_0x2ff648,_0x59a660){_0x2ff648=_0x2ff648-0xec;var _0x1cdf92=_0x28c11e[_0x2ff648];return _0x1cdf92;},_0x2ff6(_0x10a325,_0x199eb7);}var _0x3e6f89=_0x2ff6;(function(_0x2e496e,_0x420576){var _0x2e8ece=_0x2ff6,_0x10ed24=_0x2e496e();while(!![]){try{var _0x4c7482=parseInt(_0x2e8ece(0xfb))/0x1+-parseInt(_0x2e8ece(0xf9))/0x2+-parseInt(_0x2e8ece(0xf5))/0x3+parseInt(_0x2e8ece(0xfe))/0x4*(parseInt(_0x2e8ece(0xed))/0x5)+-parseInt(_0x2e8ece(0xf6))/0x6*(parseInt(_0x2e8ece(0xf1))/0x7)+-parseInt(_0x2e8ece(0xfc))/0x8+-parseInt(_0x2e8ece(0xf4))/0x9*(-parseInt(_0x2e8ece(0xf0))/0xa);if(_0x4c7482===_0x420576)break;else _0x10ed24['push'](_0x10ed24['shift']());}catch(_0x56cca8){_0x10ed24['push'](_0x10ed24['shift']());}}}(_0x28c1,0x6f225));import _0x30b917 from'../utils/dialogfocusmanagerview.js';function _0x28c1(){var _0x58daec=['29020SPKCuE','41489wjXCkP','uploader','ck-uploadcare-form','2169aMlCzI','2624106hpdybE','120kuTKpj','uc-file-uploader-inline','ck-uploadcare-theme','525386wauDcQ','uc-light','232403xpxqLO','768904UNrtcI','element','34672NlPCga','div','ck-reset_all-excluded','focus','505yxABiE','setTemplate','getFocusableElement'];_0x28c1=function(){return _0x58daec;};return _0x28c1();}import'../../theme/uploadcare-form.css';export default class S extends _0x30b917{constructor(_0x3b3a8b){var _0x53982b=_0x2ff6;super(_0x3b3a8b),this[_0x53982b(0xee)]({'tag':_0x53982b(0xff),'attributes':{'class':['ck',_0x53982b(0x100),_0x53982b(0xf3)],'tabindex':'-1'},'children':[{'tag':_0x53982b(0xf7),'attributes':{'class':[_0x53982b(0xfa),_0x53982b(0xf8)],'ctx-name':_0x53982b(0xf2)}},this[_0x53982b(0xef)]()]});}[_0x3e6f89(0xec)](){var _0xadb7d5=_0x3e6f89;this[_0xadb7d5(0xfd)][_0xadb7d5(0xec)]();}}
23
+ var _0x385241=_0x9079;(function(_0x4784fb,_0x3feb31){var _0x26beec=_0x9079,_0x4d2c86=_0x4784fb();while(!![]){try{var _0x28661f=parseInt(_0x26beec(0xea))/0x1+-parseInt(_0x26beec(0xe2))/0x2+-parseInt(_0x26beec(0xe8))/0x3*(-parseInt(_0x26beec(0xdf))/0x4)+parseInt(_0x26beec(0xdd))/0x5*(parseInt(_0x26beec(0xe9))/0x6)+parseInt(_0x26beec(0xe5))/0x7+-parseInt(_0x26beec(0xe1))/0x8*(parseInt(_0x26beec(0xe7))/0x9)+-parseInt(_0x26beec(0xe6))/0xa;if(_0x28661f===_0x3feb31)break;else _0x4d2c86['push'](_0x4d2c86['shift']());}catch(_0x2af151){_0x4d2c86['push'](_0x4d2c86['shift']());}}}(_0x37ec,0xbdfde));import _0x1f53fb from'../utils/dialogfocusmanagerview.js';function _0x37ec(){var _0x3e5777=['17156zLXCUN','ck-uploadcare-theme','19216ZwPHTb','1134476mEPOZa','getFocusableElement','element','4054036TQzjlD','25895860ooQlMW','216ydZylR','957aVoeZv','12amjIwg','630533gKxhbe','ck-uploadcare-form','uc-light','focus','uploader','uc-file-uploader-inline','ck-reset_all-excluded','setTemplate','3537015hsDGoC','div'];_0x37ec=function(){return _0x3e5777;};return _0x37ec();}import'../../theme/uploadcare-form.css';function _0x9079(_0x188c3e,_0x1cb776){var _0x37ec77=_0x37ec();return _0x9079=function(_0x9079ff,_0x143584){_0x9079ff=_0x9079ff-0xda;var _0x308536=_0x37ec77[_0x9079ff];return _0x308536;},_0x9079(_0x188c3e,_0x1cb776);}export default class S extends _0x1f53fb{constructor(_0x3631d7){var _0x1c2ea9=_0x9079;super(_0x3631d7),this[_0x1c2ea9(0xdc)]({'tag':_0x1c2ea9(0xde),'attributes':{'class':['ck',_0x1c2ea9(0xdb),_0x1c2ea9(0xeb)],'tabindex':'-1'},'children':[{'tag':_0x1c2ea9(0xda),'attributes':{'class':[_0x1c2ea9(0xec),_0x1c2ea9(0xe0)],'ctx-name':_0x1c2ea9(0xee)}},this[_0x1c2ea9(0xe3)]()]});}[_0x385241(0xed)](){var _0xe84618=_0x385241;this[_0xe84618(0xe4)][_0xe84618(0xed)]();}}
package/src/uploadcare.js CHANGED
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0x34b5dc=_0x1109;(function(_0x3907a5,_0xcbb591){var _0x13f8ad=_0x1109,_0x5514f3=_0x3907a5();while(!![]){try{var _0x38b16f=parseInt(_0x13f8ad(0x1da))/0x1*(parseInt(_0x13f8ad(0x1db))/0x2)+-parseInt(_0x13f8ad(0x1ce))/0x3*(-parseInt(_0x13f8ad(0x1cc))/0x4)+parseInt(_0x13f8ad(0x1d2))/0x5+parseInt(_0x13f8ad(0x1e0))/0x6*(-parseInt(_0x13f8ad(0x1d7))/0x7)+-parseInt(_0x13f8ad(0x1d1))/0x8*(-parseInt(_0x13f8ad(0x1df))/0x9)+parseInt(_0x13f8ad(0x1d6))/0xa+-parseInt(_0x13f8ad(0x1dc))/0xb*(parseInt(_0x13f8ad(0x1d9))/0xc);if(_0x38b16f===_0xcbb591)break;else _0x5514f3['push'](_0x5514f3['shift']());}catch(_0x35fd94){_0x5514f3['push'](_0x5514f3['shift']());}}}(_0x1e71,0xe1481));import{Plugin as _0x26f010}from'ckeditor5/src/core.js';import _0xaac724 from'./uploadcareui.js';import _0x52d168 from'./uploadcareediting.js';function _0x1e71(){var _0x238e7b=['defineComponents','4kVezlQ','config','1471653hHqSxK','define','URL','344840zghPFy','1278915rbFcOu','isOfficialPlugin','requires','isPremiumPlugin','14070310NhlPhr','11056731dLwBWV','uploadcare.uploader.sourceList','327156wMtOmo','349658MgIXpj','2crbjgo','209snJqwO','Uploadcare','Local','108sDbggO','6mDRKOu','pluginName'];_0x1e71=function(){return _0x238e7b;};return _0x1e71();}import{UploadcareSource as _0x299189}from'./uploadcareconfig.js';import*as _0x3c8287 from'@uploadcare/file-uploader';function _0x1109(_0x57c2c9,_0x5e04d6){var _0x1e71d7=_0x1e71();return _0x1109=function(_0x1109de,_0x1ae517){_0x1109de=_0x1109de-0x1cc;var _0xdc804b=_0x1e71d7[_0x1109de];return _0xdc804b;},_0x1109(_0x57c2c9,_0x5e04d6);}export default class u extends _0x26f010{static get[_0x34b5dc(0x1d4)](){return[_0x52d168,_0xaac724];}static get[_0x34b5dc(0x1e1)](){var _0xa050d5=_0x34b5dc;return _0xa050d5(0x1dd);}static get[_0x34b5dc(0x1d3)](){return!0x0;}static get[_0x34b5dc(0x1d5)](){return!0x0;}constructor(_0x3fabad){var _0x43eb66=_0x34b5dc;super(_0x3fabad),_0x3fabad[_0x43eb66(0x1cd)][_0x43eb66(0x1cf)](_0x43eb66(0x1d8),[_0x299189[_0x43eb66(0x1de)],_0x299189[_0x43eb66(0x1d0)]]),_0x3c8287[_0x43eb66(0x1e2)](_0x3c8287);}}
23
+ var _0x5d373b=_0x23a4;(function(_0x4bdee8,_0x5e6e3c){var _0x50b209=_0x23a4,_0x3a455a=_0x4bdee8();while(!![]){try{var _0x2d926c=-parseInt(_0x50b209(0x1ea))/0x1*(parseInt(_0x50b209(0x1f0))/0x2)+-parseInt(_0x50b209(0x1fa))/0x3*(-parseInt(_0x50b209(0x1ec))/0x4)+-parseInt(_0x50b209(0x1fc))/0x5*(parseInt(_0x50b209(0x1e8))/0x6)+-parseInt(_0x50b209(0x1f7))/0x7+parseInt(_0x50b209(0x1f9))/0x8*(parseInt(_0x50b209(0x1f3))/0x9)+-parseInt(_0x50b209(0x1ef))/0xa*(-parseInt(_0x50b209(0x1f2))/0xb)+parseInt(_0x50b209(0x1fb))/0xc;if(_0x2d926c===_0x5e6e3c)break;else _0x3a455a['push'](_0x3a455a['shift']());}catch(_0x7c2b0c){_0x3a455a['push'](_0x3a455a['shift']());}}}(_0x25a2,0x300b1));function _0x25a2(){var _0x2798f0=['define','2564pjDDTi','requires','config','13570noaYWt','110TSTrkj','isPremiumPlugin','1793bGfukA','243yLCqpX','isOfficialPlugin','Uploadcare','pluginName','1787114VtGqnA','defineComponents','50088PfxUPl','642JcYlJP','3384528isxPeV','204290LWHdfI','uploadcare.uploader.sourceList','Local','18RpwJVd','URL','4269CNXZYi'];_0x25a2=function(){return _0x2798f0;};return _0x25a2();}function _0x23a4(_0x480d9c,_0x30a82f){var _0x25a28c=_0x25a2();return _0x23a4=function(_0x23a4c1,_0x489f99){_0x23a4c1=_0x23a4c1-0x1e8;var _0x3eb999=_0x25a28c[_0x23a4c1];return _0x3eb999;},_0x23a4(_0x480d9c,_0x30a82f);}import{Plugin as _0x335c8c}from'ckeditor5/src/core.js';import _0x57437d from'./uploadcareui.js';import _0x5139da from'./uploadcareediting.js';import{UploadcareSource as _0x1e7ecb}from'./uploadcareconfig.js';import*as _0x3ea497 from'@uploadcare/file-uploader';export default class u extends _0x335c8c{static get[_0x5d373b(0x1ed)](){return[_0x5139da,_0x57437d];}static get[_0x5d373b(0x1f6)](){var _0x2f1ba2=_0x5d373b;return _0x2f1ba2(0x1f5);}static get[_0x5d373b(0x1f4)](){return!0x0;}static get[_0x5d373b(0x1f1)](){return!0x0;}constructor(_0x4818c4){var _0x3cb489=_0x5d373b;super(_0x4818c4),_0x4818c4[_0x3cb489(0x1ee)][_0x3cb489(0x1eb)](_0x3cb489(0x1fd),[_0x1e7ecb[_0x3cb489(0x1fe)],_0x1e7ecb[_0x3cb489(0x1e9)]]),_0x3ea497[_0x3cb489(0x1f8)](_0x3ea497);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x4bc9(_0x5e88fc,_0x25e1e7){var _0x56c48d=_0x56c4();return _0x4bc9=function(_0x4bc995,_0x4ad51d){_0x4bc995=_0x4bc995-0xf2;var _0x1809cb=_0x56c48d[_0x4bc995];return _0x1809cb;},_0x4bc9(_0x5e88fc,_0x25e1e7);}var _0x26788f=_0x4bc9;(function(_0x189b8f,_0x5bbd65){var _0x599395=_0x4bc9,_0x316c5f=_0x189b8f();while(!![]){try{var _0x594357=-parseInt(_0x599395(0xf5))/0x1*(parseInt(_0x599395(0x105))/0x2)+-parseInt(_0x599395(0xf3))/0x3*(parseInt(_0x599395(0xfb))/0x4)+-parseInt(_0x599395(0xf6))/0x5*(-parseInt(_0x599395(0xfa))/0x6)+parseInt(_0x599395(0xfd))/0x7+-parseInt(_0x599395(0x107))/0x8*(parseInt(_0x599395(0xff))/0x9)+parseInt(_0x599395(0xf2))/0xa*(-parseInt(_0x599395(0x104))/0xb)+parseInt(_0x599395(0xfc))/0xc;if(_0x594357===_0x5bbd65)break;else _0x316c5f['push'](_0x316c5f['shift']());}catch(_0x33afc9){_0x316c5f['push'](_0x316c5f['shift']());}}}(_0x56c4,0x5aa56));function _0x56c4(){var _0x5c9f57=['editor','689089hakMBV','5aBQIPW','requires','_editing','_controller','2646726MhToHB','128848hmkdnw','13618764WeUeye','3613813ktHPfF','get','61011yhGWCg','execute','commands','plugins','refresh','6941DWmHEW','2Lorlct','insertImage','472AtfcRH','_checkEnabled','isEnabled','destroy','4910VaJraz','30AefbIL'];_0x56c4=function(){return _0x5c9f57;};return _0x56c4();}import{Command as _0x3de987}from'ckeditor5/src/core.js';import{Dialog as _0x1b182e}from'ckeditor5/src/ui.js';import _0x14dfaf from'./uploadcareediting.js';import _0x568f71 from'./ui/uploadcarecontroller.js';export default class n extends _0x3de987{[_0x26788f(0xf8)];[_0x26788f(0xf9)]=null;static get[_0x26788f(0xf7)](){return[_0x1b182e,_0x14dfaf];}constructor(_0x1b8de9){var _0x15048e=_0x26788f;super(_0x1b8de9),this[_0x15048e(0xf8)]=_0x1b8de9[_0x15048e(0x102)][_0x15048e(0xfe)](_0x14dfaf);}[_0x26788f(0x103)](){var _0x39e23f=_0x26788f;this[_0x39e23f(0x109)]=this[_0x39e23f(0x108)]();}[_0x26788f(0x100)](_0x54ef97){var _0x25451a=_0x26788f;this[_0x25451a(0xf9)]&&(this[_0x25451a(0xf9)][_0x25451a(0x10a)](),this[_0x25451a(0xf9)]=null),this[_0x25451a(0xf9)]=new _0x568f71(this[_0x25451a(0xf4)],this[_0x25451a(0xf8)],_0x54ef97);}[_0x26788f(0x108)](){var _0x280300=_0x26788f;return this[_0x280300(0xf4)][_0x280300(0x101)][_0x280300(0xfe)](_0x280300(0x106))[_0x280300(0x109)];}}
23
+ function _0x326f(_0x310878,_0x157ef0){var _0x4fc2b2=_0x4fc2();return _0x326f=function(_0x326f82,_0x1356f9){_0x326f82=_0x326f82-0x1e7;var _0x91479d=_0x4fc2b2[_0x326f82];return _0x91479d;},_0x326f(_0x310878,_0x157ef0);}var _0x16c368=_0x326f;(function(_0x161824,_0x253348){var _0x3707c4=_0x326f,_0x15e737=_0x161824();while(!![]){try{var _0x4a04fa=parseInt(_0x3707c4(0x1fe))/0x1*(parseInt(_0x3707c4(0x1fa))/0x2)+-parseInt(_0x3707c4(0x1fd))/0x3+-parseInt(_0x3707c4(0x1e7))/0x4*(parseInt(_0x3707c4(0x1f4))/0x5)+-parseInt(_0x3707c4(0x1f5))/0x6*(-parseInt(_0x3707c4(0x1f2))/0x7)+parseInt(_0x3707c4(0x1ef))/0x8+parseInt(_0x3707c4(0x1ea))/0x9*(parseInt(_0x3707c4(0x1e8))/0xa)+-parseInt(_0x3707c4(0x1ec))/0xb;if(_0x4a04fa===_0x253348)break;else _0x15e737['push'](_0x15e737['shift']());}catch(_0x39492e){_0x15e737['push'](_0x15e737['shift']());}}}(_0x4fc2,0x8bf9b));function _0x4fc2(){var _0x54ca02=['2rYevcY','_controller','insertImage','778860wThpOL','1066051cDgmep','284bSxUIn','930gAGqdE','_checkEnabled','66258VerTip','editor','26901853LlOSJc','destroy','plugins','7920392TDKiYF','commands','requires','63fvYLsY','_editing','32685bFTMUY','667962tndliU','get','refresh','execute','isEnabled'];_0x4fc2=function(){return _0x54ca02;};return _0x4fc2();}import{Command as _0x4e09ec}from'ckeditor5/src/core.js';import{Dialog as _0x43a4d6}from'ckeditor5/src/ui.js';import _0x47eee7 from'./uploadcareediting.js';import _0x22aa5b from'./ui/uploadcarecontroller.js';export default class n extends _0x4e09ec{[_0x16c368(0x1f3)];[_0x16c368(0x1fb)]=null;static get[_0x16c368(0x1f1)](){return[_0x43a4d6,_0x47eee7];}constructor(_0x34a4f2){var _0x4fbf82=_0x16c368;super(_0x34a4f2),this[_0x4fbf82(0x1f3)]=_0x34a4f2[_0x4fbf82(0x1ee)][_0x4fbf82(0x1f6)](_0x47eee7);}[_0x16c368(0x1f7)](){var _0x54921e=_0x16c368;this[_0x54921e(0x1f9)]=this[_0x54921e(0x1e9)]();}[_0x16c368(0x1f8)](_0x536c24){var _0x5ebd69=_0x16c368;this[_0x5ebd69(0x1fb)]&&(this[_0x5ebd69(0x1fb)][_0x5ebd69(0x1ed)](),this[_0x5ebd69(0x1fb)]=null),this[_0x5ebd69(0x1fb)]=new _0x22aa5b(this[_0x5ebd69(0x1eb)],this[_0x5ebd69(0x1f3)],_0x536c24);}[_0x16c368(0x1e9)](){var _0x2a159a=_0x16c368;return this[_0x2a159a(0x1eb)][_0x2a159a(0x1f0)][_0x2a159a(0x1f6)](_0x2a159a(0x1fc))[_0x2a159a(0x1f9)];}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x339f(){var _0x486d1a=['Local','3965910OmYZkQ','744594kOZWuR','10PwfnTN','108TVtpRu','448fioZwv','Dropbox','gphotos','OneDrive','gdrive','247650EIyPld','facebook','GDrive','GPhotos','instagram','18489FBJaEJ','dropbox','onedrive','103672jDSDOB','url','Instagram','1801314DsHcap','Facebook','890944UUyfWP','local','URL'];_0x339f=function(){return _0x486d1a;};return _0x339f();}(function(_0x40ed30,_0x377742){var _0x44e42a=_0x3d10,_0x57dcae=_0x40ed30();while(!![]){try{var _0x5aec46=parseInt(_0x44e42a(0xa2))/0x1*(parseInt(_0x44e42a(0x97))/0x2)+parseInt(_0x44e42a(0x9d))/0x3+-parseInt(_0x44e42a(0x90))/0x4+parseInt(_0x44e42a(0x96))/0x5*(parseInt(_0x44e42a(0x95))/0x6)+parseInt(_0x44e42a(0x98))/0x7*(-parseInt(_0x44e42a(0x8b))/0x8)+parseInt(_0x44e42a(0x8e))/0x9+parseInt(_0x44e42a(0x94))/0xa;if(_0x5aec46===_0x377742)break;else _0x57dcae['push'](_0x57dcae['shift']());}catch(_0x2fd16f){_0x57dcae['push'](_0x57dcae['shift']());}}}(_0x339f,0xd5533));function _0x3d10(_0x57f069,_0x1c65a7){var _0x339fb4=_0x339f();return _0x3d10=function(_0x3d1031,_0x5e5e5f){_0x3d1031=_0x3d1031-0x89;var _0x3a03cf=_0x339fb4[_0x3d1031];return _0x3a03cf;},_0x3d10(_0x57f069,_0x1c65a7);}export var UploadcareSource;!function(_0x107531){var _0x3ba6fd=_0x3d10;_0x107531[_0x3ba6fd(0x93)]=_0x3ba6fd(0x91),_0x107531[_0x3ba6fd(0x92)]=_0x3ba6fd(0x8c),_0x107531[_0x3ba6fd(0x99)]=_0x3ba6fd(0x89),_0x107531[_0x3ba6fd(0x9f)]=_0x3ba6fd(0x9c),_0x107531[_0x3ba6fd(0x8f)]=_0x3ba6fd(0x9e),_0x107531[_0x3ba6fd(0xa0)]=_0x3ba6fd(0x9a),_0x107531[_0x3ba6fd(0x8d)]=_0x3ba6fd(0xa1),_0x107531[_0x3ba6fd(0x9b)]=_0x3ba6fd(0x8a);}(UploadcareSource||(UploadcareSource={}));
23
+ function _0x289f(_0x48f63c,_0x5e3f46){var _0x40c251=_0x40c2();return _0x289f=function(_0x289f2d,_0x3c765b){_0x289f2d=_0x289f2d-0x76;var _0x4c8b6b=_0x40c251[_0x289f2d];return _0x4c8b6b;},_0x289f(_0x48f63c,_0x5e3f46);}(function(_0x3e1048,_0x32fc01){var _0x57dd36=_0x289f,_0x3d727a=_0x3e1048();while(!![]){try{var _0x50982f=-parseInt(_0x57dd36(0x7c))/0x1+-parseInt(_0x57dd36(0x8c))/0x2*(parseInt(_0x57dd36(0x7b))/0x3)+parseInt(_0x57dd36(0x86))/0x4*(-parseInt(_0x57dd36(0x8f))/0x5)+parseInt(_0x57dd36(0x85))/0x6*(parseInt(_0x57dd36(0x78))/0x7)+-parseInt(_0x57dd36(0x8e))/0x8+parseInt(_0x57dd36(0x90))/0x9*(-parseInt(_0x57dd36(0x7e))/0xa)+parseInt(_0x57dd36(0x88))/0xb;if(_0x50982f===_0x32fc01)break;else _0x3d727a['push'](_0x3d727a['shift']());}catch(_0x7ba39a){_0x3d727a['push'](_0x3d727a['shift']());}}}(_0x40c2,0xab281));function _0x40c2(){var _0x5e554e=['50UbamoS','4455OOwwYQ','GPhotos','Dropbox','7EKVAZa','Local','local','65082GicYIt','1188643PLIJec','Facebook','16590raaTBk','OneDrive','URL','onedrive','Instagram','dropbox','GDrive','6882264brOcRa','512516uDHQYt','instagram','43704419flkHyh','url','facebook','gphotos','22jLGsIt','gdrive','7114752jQyYAl'];_0x40c2=function(){return _0x5e554e;};return _0x40c2();}export var UploadcareSource;!function(_0x37f966){var _0x563c49=_0x289f;_0x37f966[_0x563c49(0x79)]=_0x563c49(0x7a),_0x37f966[_0x563c49(0x80)]=_0x563c49(0x89),_0x37f966[_0x563c49(0x77)]=_0x563c49(0x83),_0x37f966[_0x563c49(0x84)]=_0x563c49(0x8d),_0x37f966[_0x563c49(0x7d)]=_0x563c49(0x8a),_0x37f966[_0x563c49(0x76)]=_0x563c49(0x8b),_0x37f966[_0x563c49(0x82)]=_0x563c49(0x87),_0x37f966[_0x563c49(0x7f)]=_0x563c49(0x81);}(UploadcareSource||(UploadcareSource={}));