@ckeditor/ckeditor5-uploadcare 0.0.0-nightly-20251228.0 → 0.0.0-nightly-20251229.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 _0x2e71c4,Command as _0x4d9c62}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x540390,IconGooglePhotos as _0xf593d7,IconGoogleDrive as _0x56d6a1,IconFacebook as _0xd324dd,IconDropbox as _0x5f4035,IconUploadcareLink as _0x414c40,IconUploadcareImageUpload as _0x4678b0,IconError as _0x4de147,IconUploadcareImageEdit as _0x206ac3}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x38bd2e,MenuBarMenuListItemButtonView as _0x1e27cb,View as _0x523b30,FocusCycler as _0x1e66f5,Dialog as _0x2790d8,DialogViewPosition as _0x21f8af,SpinnerView as _0xa0abdc,IconView as _0x31c21e,Notification as _0x3f5224}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x393a17,DomEmitterMixin as _0x1a645f,global as _0x432d86,getAncestors as _0x228f2a,ObservableMixin as _0x1f9344,uid as _0x3b3034,createElement as _0x545486}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x27eb93}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x1db3af,info as _0x2516e3}from'@uploadcare/upload-client';import*as _0x841330 from'@uploadcare/file-uploader';var i=function(_0xc2d260){return _0xc2d260['Local']='local',_0xc2d260['URL']='url',_0xc2d260['Dropbox']='dropbox',_0xc2d260['GDrive']='gdrive',_0xc2d260['Facebook']='facebook',_0xc2d260['GPhotos']='gphotos',_0xc2d260['OneDrive']='onedrive',_0xc2d260;}({});function _(_0x4a262d,_0x30b09d,_0x593f74){const t=_0x4a262d['t'],_0x5b4b54=_0x4a262d['t'];switch(_0x30b09d){case i['Local']:return{'text':_0x5b4b54('Insert'===_0x593f74?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x5b4b54('From\x20computer')};case i['URL']:return{'text':'Insert'===_0x593f74?_0x5b4b54('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x5b4b54('Via\x20URL')};case i['Dropbox']:return{'text':t('Insert'===_0x593f74?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case i['Facebook']:return{'text':t('Insert'===_0x593f74?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case i['GDrive']:return{'text':t('Insert'===_0x593f74?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case i['GPhotos']:return{'text':t('Insert'===_0x593f74?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case i['OneDrive']:return{'text':t('Insert'===_0x593f74?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x30b09d;}}class e extends _0x2e71c4{['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 _0x2ab871=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x5a7f91;for(const _0x752b62 in _0x2ab871){const _0x54714c=_0x752b62,_0x1571d5=_0x2ab871[_0x54714c];if('uploadcareLicenseKeyValid'==_0x1571d5||'uploadcareLicenseKeyInvalid'==_0x1571d5||'uploadcareLicenseKeyExpired'==_0x1571d5||'uploadcareLicenseKeyDomainLimit'==_0x1571d5||'uploadcareLicenseKeyNotAllowed'==_0x1571d5||'uploadcareLicenseKeyEvaluationLimit'==_0x1571d5||'uploadcareLicenseKeyTrialLimit'==_0x1571d5||'uploadcareLicenseKeyUsageLimit'==_0x1571d5){delete _0x2ab871[_0x54714c],_0x5a7f91=_0x1571d5,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x5a7f91&&_0x2ab871['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x5a7f91&&_0x2ab871['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x5a7f91&&_0x2ab871['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x5a7f91&&_0x2ab871['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x5a7f91&&_0x2ab871['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyTrialLimit'==_0x5a7f91&&_0x2ab871['_showLicenseError']('trialLimit'),'uploadcareLicenseKeyUsageLimit'==_0x5a7f91&&_0x2ab871['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x18bd26}=this,_0x454a75=_0x18bd26['commands']['get']('uploadcare');if(!_0x454a75)return;const _0x4e5938=this['_normalizeConfigSourceList'](_0x18bd26['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x393712,_0x360c2a)=>{const _0x524258=this['_getIntegrationKey'](_0x360c2a['type']);return _0x393712[_0x524258]||(_0x393712[_0x524258]=[]),_0x393712[_0x524258]['push'](_0x360c2a),_0x393712;},{});_0x18bd26['plugins']['has']('ImageInsertUI')&&_0x18bd26['commands']['get']('uploadcare')&&Object['entries'](_0x4e5938)['forEach'](([_0x1b27ee,_0x25c1e1])=>{_0x18bd26['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x1b27ee,'observable':()=>_0x454a75,'buttonViewCreator':()=>this['_createToolbarButton'](_0x25c1e1),'formViewCreator':()=>this['_createDropdownButtons'](_0x25c1e1),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x25c1e1),'override':'assetManager'!==_0x1b27ee});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x1371a9){const {locale:_0x44defb}=this['editor'];return _0x1371a9['map'](_0x34cbbc=>{const _0xcbb5cf=_(_0x44defb,_0x34cbbc,'Insert');switch(_0x34cbbc){case i['Local']:return{'icon':_0x4678b0,'type':i['Local'],..._0xcbb5cf};case i['URL']:return{'icon':_0x414c40,'type':i['URL'],..._0xcbb5cf};case i['Dropbox']:return{'icon':_0x5f4035,'type':i['Dropbox'],..._0xcbb5cf};case i['Facebook']:return{'icon':_0xd324dd,'type':i['Facebook'],..._0xcbb5cf};case i['GDrive']:return{'icon':_0x56d6a1,'type':i['GDrive'],..._0xcbb5cf};case i['GPhotos']:return{'icon':_0xf593d7,'type':i['GPhotos'],..._0xcbb5cf};case i['OneDrive']:return{'icon':_0x540390,'type':i['OneDrive'],..._0xcbb5cf};}});}['_getIntegrationKey'](_0x157e8c){switch(_0x157e8c){case i['Local']:return'upload';case i['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x38771b,_0x6887a1){const _0x3a988a=this['editor'],_0x255576=new _0x38771b(_0x3a988a['locale']),_0x1544a4=_0x3a988a['commands']['get']('uploadcare');return _0x255576['bind']('isEnabled')['to'](_0x1544a4),_0x255576['on']('execute',()=>{_0x1544a4['execute'](_0x6887a1);}),_0x255576;}['_createToolbarButton'](_0x1a3b57){const {locale:_0x3b11e9}=this['editor'],_0x55751d=this['editor']['plugins']['get']('ImageInsertUI'),_0x15af75=_0x1a3b57[0x0],_0x3e1592=this['_createButton'](_0x38bd2e,_0x15af75['type']);return _0x3e1592['icon']=_0x15af75['icon'],_0x3e1592['bind']('label')['to'](_0x55751d,'isImageSelected',_0x14b606=>_(_0x3b11e9,_0x15af75['type'],_0x14b606?'Replace':'Insert')['text']),_0x3e1592['tooltip']=!0x0,_0x3e1592;}['_createDropdownButtons'](_0x5c1443){const {locale:_0x5cc092}=this['editor'],_0x289e1d=this['editor']['plugins']['get']('ImageInsertUI');return _0x5c1443['map'](_0x25dc21=>{const _0xf7aede=this['_createButton'](_0x38bd2e,_0x25dc21['type']);return _0xf7aede['withText']=!0x0,_0xf7aede['icon']=_0x25dc21['icon'],_0xf7aede['bind']('label')['to'](_0x289e1d,'isImageSelected',_0x1b485c=>_(_0x5cc092,_0x25dc21['type'],_0x1b485c?'Replace':'Insert')['text']),_0xf7aede;});}['_createMenuBarButtons'](_0xee33d2){return _0xee33d2['map'](_0xfe349d=>{const _0x5f4f2c=this['_createButton'](_0x1e27cb,_0xfe349d['type']);return _0x5f4f2c['icon']=_0xfe349d['icon'],_0x5f4f2c['label']=_0xfe349d['shortText'],_0x5f4f2c;});}}class F extends _0x523b30{['focusTracker'];['focusCycler'];constructor(_0xfe3c65){super(_0xfe3c65),this['focusTracker']=new _0x393a17(),this['focusCycler']=new _0x1e66f5({'focusables':this['createCollection'](),'focusTracker':this['focusTracker']});}['getFocusableElement'](){return{'tag':'div','attributes':{'aria-hidden':'true','tabindex':'0'},'on':{'focus':this['bindTemplate']['to'](()=>{this['focusCycler']['fire']('forwardCycle');})}};}}class x extends F{constructor(_0x4e93d1,_0xa2f688){super(_0x4e93d1),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-'+_0xa2f688}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}}function C(_0x11bada,_0x478ab5){const _0x500b8c=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x288319=>_0x288319<=_0x478ab5)['map'](_0x122add=>_0x11bada['replace'](/\/$/,'')+'/-/resize/'+_0x122add+'x/\x20'+_0x122add+'w');return{'imageFallbackUrl':_0x11bada,'imageSources':[{'srcset':_0x500b8c['join'](',\x20'),'sizes':'(max-width:\x20'+_0x478ab5+'px)\x20100vw,\x20'+_0x478ab5+'px','type':'image/webp'}]};}function S(_0x5a328d,_0x3d148d,_0x5f1c08){const _0x128f38=_0x5a328d['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x128f38?parseInt(_0x128f38[0x1],0xa):_0x3d148d,'height':_0x128f38?parseInt(_0x128f38[0x2],0xa):_0x5f1c08};}function p(_0x2d732b,_0x5e6ffc){const _0x42bf2f=new(_0x1a645f())(),_0x2301ac=_0x2d732b['plugins']['get']('ImageUtils'),_0x552963=_0x2d732b['editing']['mapper']['toViewElement'](_0x5e6ffc),_0x56888b=_0x2301ac['findViewImgElement'](_0x552963),_0x577e9e=_0x2d732b['editing']['view']['domConverter']['viewToDom'](_0x56888b),_0x4589f2=_0x5e6ffc['getAttribute']('width'),_0x506c20=_0x5e6ffc['getAttribute']('height'),_0x293bd5='image-processing';_0x2d732b['editing']['view']['change'](_0x290eca=>{_0x290eca['addClass'](_0x293bd5,_0x552963),_0x290eca['setStyle']('aspect-ratio',_0x4589f2+'/'+_0x506c20,_0x56888b);}),_0x42bf2f['listenTo'](_0x577e9e,'load',()=>{_0x42bf2f['stopListening'](_0x577e9e,'load'),_0x2d732b['editing']['view']['change'](_0x3a5f7b=>{_0x3a5f7b['removeClass'](_0x293bd5,_0x552963),_0x3a5f7b['removeStyle']('aspect-ratio',_0x56888b);});});}function G(_0x44fa86){if(Array['isArray'](_0x44fa86)){const _0x38d775=_0x44fa86['map'](G);return _0x396497=>_0x38d775['some'](_0x143001=>_0x143001(_0x396497));}if('origin'==_0x44fa86){const _0x48dabf=_0x432d86['window']['location']['origin'];return _0x192e15=>new URL(_0x192e15,_0x432d86['document']['baseURI'])['origin']==_0x48dabf;}return'function'==typeof _0x44fa86?_0x44fa86:_0x44fa86 instanceof RegExp?_0x136c54=>!(!_0x136c54['match'](_0x44fa86)&&!_0x136c54['replace'](/^https?:\/\//,'')['match'](_0x44fa86)):()=>!0x1;}function A(_0x29c816,_0x369778){return _0x228f2a(_0x29c816['target'])['includes'](_0x369778);}class n extends/* #__PURE__ -- @preserve */
24
- _0x1f9344(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x223c4d,_0x34d6d1,_0x36207a){super(),this['_editor']=_0x223c4d,this['_editing']=_0x34d6d1,this['_dialog']=_0x223c4d['plugins']['get'](_0x2790d8),this['_api']=_0x34d6d1['ctxElement']['getAPI'](),this['_type']=_0x36207a,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:_0x3cbfc5,model:_0x8a591}=this['_editor'],_0x27a6eb=_0x8a591['document']['selection']['getSelectedElement'](),_0x39d166=_0x27a6eb&&(_0x27a6eb['is']('element','imageBlock')||_0x27a6eb['is']('element','imageInline'));this['_formView']=new x(_0x3cbfc5,this['_editing']['ucContextId']),this['_dialog']['show']({'id':'uploadCare','icon':_0x4678b0,'title':_(_0x3cbfc5,this['_type'],_0x39d166?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x21f8af['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x3d4e2c=>!A(_0x3d4e2c,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x51fc61}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x45ff45=>{const _0x5cb34f=_0x51fc61['length'];for(const _0x5e3504 of _0x51fc61){const _0x288c4c=_0x5e3504===_0x51fc61[_0x5cb34f-0x1],{cdnUrl:_0x5322b2,fileInfo:_0x4d62ac}=_0x5e3504;if(!_0x5322b2||!_0x4d62ac)continue;const {width:_0x1a2fd8,height:_0x264256}=_0x4d62ac['imageInfo'],_0x3b8406=S(_0x5322b2,_0x1a2fd8,_0x264256),_0x1de2fb=C(_0x5322b2,_0x3b8406['width']),_0x501aad={'id':_0x4d62ac['uuid'],'type':'image','attributes':{'imageDimension':_0x3b8406,..._0x1de2fb}};this['_insertAsset'](_0x501aad,_0x288c4c,_0x45ff45);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x419be6=>{'idle'===_0x419be6['detail']['status']&&!_0x419be6['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===i['Local']?this['_api']['setCurrentActivity'](i['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x2007a7,_0xe2d82e,_0x378a9b){const _0x25969b=this['_editor']['model']['document']['selection'],_0x390cdf=_0x25969b['getSelectedElement'](),_0x34764d=!(!_0x390cdf||!_0x390cdf['is']('element','imageInline'));_0x378a9b['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x2007a7,_0x34764d),_0xe2d82e||_0x378a9b['setSelection'](_0x25969b['getLastPosition']());}['_insertImage'](_0xc25b0e,_0x22070d){const _0x3f8925=this['_editor'],{imageDimension:_0x37b918,imageFallbackUrl:_0x559ef0,imageSources:_0x32b431}=_0xc25b0e['attributes'];_0x3f8925['execute']('insertImage',{'imageType':_0x22070d?'imageInline':null,'source':{'uploadcareImageId':_0xc25b0e['id'],'src':_0x559ef0,'sources':_0x32b431,..._0x37b918}});}}class w extends _0x4d9c62{['_editing'];['_controller']=null;static get['requires'](){return[_0x2790d8,o];}constructor(_0x56f90d){super(_0x56f90d),this['_editing']=_0x56f90d['plugins']['get'](o);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x5c4e9e){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new n(this['editor'],this['_editing'],_0x5c4e9e);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class j{static['upload']({file:_0x5894fa,..._0x15b6f8}){return _0x1db3af(_0x5894fa,_0x15b6f8);}static['getInfo'](_0x38af09,_0x345cfb){return _0x2516e3(_0x38af09,_0x345cfb);}}class f extends _0x2e71c4{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x27eb93,o];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0xce05d0=this['editor'];if(!!!_0xce05d0['config']['get']('uploadcare'))return;_0xce05d0['plugins']['get'](_0x27eb93)['createUploadAdapter']=_0x9331ef=>new k(_0x9331ef,_0xce05d0),_0xce05d0['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0xd7133e,{imageElement:_0x12a70e,data:_0x4e336c})=>{_0xce05d0['model']['change'](_0x37ba04=>{_0x37ba04['setAttribute']('uploadcareImageId',_0x4e336c['uploadcareImageId'],_0x12a70e);});});}}class k{['loader'];['editor'];['controller'];constructor(_0x2525f4,_0x45c72d){this['loader']=_0x2525f4,this['editor']=_0x45c72d,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x2c9cf8=await this['loader']['file'];return j['upload']({'file':_0x2c9cf8,'publicKey':this['editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['editor']['config']['get']('uploadcare.uploader.baseUrl'),'baseCDN':this['editor']['config']['get']('uploadcare.uploader.cdnCname'),'signal':this['controller']['signal'],'onProgress':_0x3e6aea=>{_0x3e6aea&&_0x3e6aea['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x3e6aea['value']);}})['then'](async _0x20d6e4=>{const {imageFallbackUrl:_0x7e0703,imageSources:_0x57403b}=C(_0x20d6e4['cdnUrl'],_0x20d6e4['imageInfo']['width']);return{'uploadcareImageId':_0x20d6e4['uuid'],'default':_0x7e0703,'sources':_0x57403b};})['catch'](()=>{const _0x2f93e1=t('Cannot\x20upload\x20file:')+('\x20'+_0x2c9cf8['name']+'.');return Promise['reject'](_0x2f93e1);});}['abort'](){this['controller']['abort']();}}class o extends _0x2e71c4{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',f,_0x2790d8];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['ucContextId'];get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}constructor(_0x560e70){super(_0x560e70),this['ucContextId']=_0x3b3034();}['init'](){const _0x36201a=this['editor'];_0x36201a['commands']['add']('uploadcare',new w(_0x36201a));}['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 _0x5805ef=_0x432d86['document']['querySelector']('input[uploadcare-file-input]');_0x5805ef&&_0x5805ef['remove']();}),async function(_0x42f42d){const _0x423360=_0x47af32([0x68,0x67,0x50,0x36,0x38,0x70,0x71,0x63,0x37,0x4f,0x42,0x4a,0x78,0x39,0x75,0x33,0x7a,0x72,0x48,0x61,0x74,0x59,0x55,0x58,0x66,0x30,0x34,0x54,0x64,0x56,0x6b,0x4d,0x46,0x6d,0x77,0x43,0x73,0x35,0x53,0x44,0x41,0x76,0x6a,0x32,0x31,0x69,0x57,0x51,0x47,0x65,0x5a,0x4b,0x4c,0x79,0x52,0x6c,0x45,0x4e,0x6e,0x6f,0x49,0x62]),_0x425d8b=0x535f8c3a,_0x4f6021=0x5358f10a^_0x425d8b,_0x43867a=window[_0x47af32([0x44,0x61,0x74,0x65])][_0x47af32([0x6e,0x6f,0x77])](),_0x4b24f8=_0x42f42d[_0x47af32([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x3fdbe3=new window[(_0x47af32([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5f5657=>{_0x4b24f8[_0x47af32([0x6f,0x6e,0x63,0x65])](_0x47af32([0x72,0x65,0x61,0x64,0x79]),_0x5f5657);}),_0xba8019={[_0x47af32([0x6b,0x74,0x79])]:_0x47af32([0x45,0x43]),[_0x47af32([0x75,0x73,0x65])]:_0x47af32([0x73,0x69,0x67]),[_0x47af32([0x63,0x72,0x76])]:_0x47af32([0x50,0x2d,0x32,0x35,0x36]),[_0x47af32([0x78])]:_0x47af32([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]),[_0x47af32([0x79])]:_0x47af32([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]),[_0x47af32([0x61,0x6c,0x67])]:_0x47af32([0x45,0x53,0x32,0x35,0x36])},_0x583cf2=_0x4b24f8[_0x47af32([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x47af32([0x67,0x65,0x74])](_0x47af32([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x2018d7(){let _0x218e47,_0x95fbbf=null,_0x4f9f79=null;try{if(_0x583cf2==_0x47af32([0x47,0x50,0x4c]))return _0x47af32([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x218e47=_0x5666a1(),!_0x218e47)return _0x47af32([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x218e47[_0x47af32([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x4f9f79=_0x53afda(_0x218e47[_0x47af32([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x218e47[_0x47af32([0x6a,0x74,0x69])])),await _0x457342()?_0x4b3ce7()?_0x5da0a3()?_0x47af32([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x346f8b()?(_0x218e47[_0x47af32([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x47af32([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x95fbbf=_0x47add3(_0x47af32([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x218e47[_0x47af32([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x47af32([0x74,0x72,0x69,0x61,0x6c])&&(_0x95fbbf=_0x47add3(_0x47af32([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x517966()):_0x47af32([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x47af32([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x47af32([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x47af32([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x5da0a3(){const _0x2f2657=[_0x47af32([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x47af32([0x74,0x72,0x69,0x61,0x6c])][_0x47af32([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x218e47[_0x47af32([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x43867a/0x3e8:0xe10*_0x4f6021;return _0x218e47[_0x47af32([0x65,0x78,0x70])]<_0x2f2657;}function _0x4b3ce7(){const _0x4307ca=_0x218e47[_0x47af32([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x4307ca&&(!!_0x4307ca[_0x47af32([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x47af32([0x2a]))||!!_0x4307ca[_0x47af32([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x47af32([0x55,0x50,0x4c,0x43])));}function _0x346f8b(){const _0x59d785=_0x218e47[_0x47af32([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x59d785||0x0==_0x59d785[_0x47af32([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x4be897}=new URL(window[_0x47af32([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x59d785[_0x47af32([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4be897))return!0x0;const _0x515995=_0x4be897[_0x47af32([0x73,0x70,0x6c,0x69,0x74])](_0x47af32([0x2e]));return _0x59d785[_0x47af32([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x41c44d=>_0x41c44d[_0x47af32([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x47af32([0x2a])))[_0x47af32([0x6d,0x61,0x70])](_0x4de2eb=>_0x4de2eb[_0x47af32([0x73,0x70,0x6c,0x69,0x74])](_0x47af32([0x2e])))[_0x47af32([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x4a92a0=>_0x4a92a0[_0x47af32([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x515995[_0x47af32([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x47af32([0x6d,0x61,0x70])](_0x27aef0=>Array(_0x515995[_0x47af32([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x27aef0[_0x47af32([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x47af32([0x66,0x69,0x6c,0x6c])](_0x27aef0[0x0]===_0x47af32([0x2a])?_0x47af32([0x2a]):'')[_0x47af32([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x27aef0))[_0x47af32([0x73,0x6f,0x6d,0x65])](_0x11fdad=>_0x515995[_0x47af32([0x65,0x76,0x65,0x72,0x79])]((_0x9ba44f,_0x2b7d8d)=>_0x11fdad[_0x2b7d8d]===_0x9ba44f||_0x11fdad[_0x2b7d8d]===_0x47af32([0x2a])));}function _0x517966(){return _0x95fbbf&&_0x4f9f79?new window[(_0x47af32([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x13745a,_0x3b1221)=>{_0x95fbbf[_0x47af32([0x74,0x68,0x65,0x6e])](_0x13745a,_0x3b1221),_0x4f9f79[_0x47af32([0x74,0x68,0x65,0x6e])](_0x3e0a82=>{_0x3e0a82!=_0x47af32([0x56,0x61,0x6c,0x69,0x64])&&_0x13745a(_0x3e0a82);},_0x3b1221);}):_0x95fbbf||_0x4f9f79||_0x47af32([0x56,0x61,0x6c,0x69,0x64]);}}function _0x53afda(_0x507b0e,_0x407ffd){return new window[(_0x47af32([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x387b4f=>{if(_0x14e8f2())return _0x387b4f(_0x47af32([0x56,0x61,0x6c,0x69,0x64]));_0x5ab301(),_0x4b24f8[_0x47af32([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x47af32([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x36f8df=!0x1;const _0xe0d358=_0x3b3034();function _0x2183b4(_0x18376e){return!!_0x18376e&&(typeof _0x18376e===_0x47af32([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x18376e===_0x47af32([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x18376e[_0x47af32([0x74,0x68,0x65,0x6e])]===_0x47af32([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x18376e[_0x47af32([0x63,0x61,0x74,0x63,0x68])]===_0x47af32([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x10c61f(_0x2387ab){_0x30310c(_0x2387ab)[_0x47af32([0x74,0x68,0x65,0x6e])](_0x4a9857=>{if(!_0x4a9857||_0x4a9857[_0x47af32([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x47af32([0x6f,0x6b]))return _0x47af32([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x5655b1(_0x3e34cb(_0xe0d358+_0x407ffd))!=_0x4a9857[_0x47af32([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x47af32([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x47af32([0x56,0x61,0x6c,0x69,0x64]);})[_0x47af32([0x74,0x68,0x65,0x6e])](_0x389825=>(_0x3a8fc5(),_0x389825),()=>{const _0x5f0900=_0x3ad40d();return null==_0x5f0900?(_0x3a8fc5(),_0x47af32([0x56,0x61,0x6c,0x69,0x64])):_0x47af32(_0x43867a-_0x5f0900>(0x7753083a^_0x425d8b)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x47af32([0x74,0x68,0x65,0x6e])](_0x387b4f)[_0x47af32([0x63,0x61,0x74,0x63,0x68])](()=>{_0x387b4f(_0x47af32([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x4c5f2e=0x536962ba^_0x425d8b;function _0x3a8fc5(){const _0x4f350b=_0x47af32([0x6c,0x6c,0x63,0x74,0x2d])+_0x5655b1(_0x3e34cb(_0x507b0e)),_0x24e77d=_0x4295ae(_0x5655b1(window[_0x47af32([0x4d,0x61,0x74,0x68])][_0x47af32([0x63,0x65,0x69,0x6c])](_0x43867a/_0x4c5f2e)));window[_0x47af32([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x47af32([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4f350b,_0x24e77d);}function _0x3ad40d(){const _0x20ba33=_0x47af32([0x6c,0x6c,0x63,0x74,0x2d])+_0x5655b1(_0x3e34cb(_0x507b0e)),_0x3c9e84=window[_0x47af32([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x47af32([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x20ba33);return _0x3c9e84?window[_0x47af32([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4295ae(_0x3c9e84),0x10)*_0x4c5f2e:null;}function _0x30310c(_0x5779c9){return new window[(_0x47af32([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x54c4e7,_0x43e757)=>{_0x5779c9[_0x47af32([0x74,0x68,0x65,0x6e])](_0x54c4e7,_0x43e757),window[_0x47af32([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x43e757,0x535e58fa^_0x425d8b);});}}_0x4b24f8[_0x47af32([0x6f,0x6e])](_0x47af32([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x326c3e,_0x22ed0c)=>{if(_0x22ed0c[0x0]!=_0x507b0e)return _0x387b4f(_0x47af32([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x22ed0c[0x1]={..._0x22ed0c[0x1],[_0x47af32([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0xe0d358};},{[_0x47af32([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x47af32([0x68,0x69,0x67,0x68])}),_0x4b24f8[_0x47af32([0x6f,0x6e])](_0x47af32([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x38343a=>{_0x2183b4(_0x38343a[_0x47af32([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x36f8df=!0x0,_0x10c61f(_0x38343a[_0x47af32([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x47af32([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x47af32([0x6c,0x6f,0x77])}),_0x3fdbe3[_0x47af32([0x74,0x68,0x65,0x6e])](()=>{_0x36f8df||_0x387b4f(_0x47af32([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x14e8f2(){return _0x4b24f8[_0x47af32([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x47af32([0x76,0x69,0x65,0x77])][_0x47af32([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x47af32([0x61,0x75,0x74,0x6f]);}function _0x5ab301(){_0x4b24f8[_0x47af32([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x47af32([0x76,0x69,0x65,0x77])][_0x47af32([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x47af32([0x61,0x75,0x74,0x6f]);}}function _0x47add3(_0x3fb3a0){const _0x21e628=[new window[(_0x47af32([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x155c90=>setTimeout(_0x155c90,0x5356b2f6^_0x425d8b)),_0x3fdbe3[_0x47af32([0x74,0x68,0x65,0x6e])](()=>new window[(_0x47af32([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1fd0b1=>{let _0x430466=0x0;_0x4b24f8[_0x47af32([0x6d,0x6f,0x64,0x65,0x6c])][_0x47af32([0x6f,0x6e])](_0x47af32([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x26ff71,_0x3720e9)=>{_0x3720e9[0x0][_0x47af32([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x430466++,_0x430466==(0x535f89d2^_0x425d8b)&&(_0x1fd0b1(),_0x26ff71[_0x47af32([0x6f,0x66,0x66])]());});}))];return window[_0x47af32([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x47af32([0x72,0x61,0x63,0x65])](_0x21e628)[_0x47af32([0x74,0x68,0x65,0x6e])](()=>_0x3fb3a0);}async function _0x193bf2(){await _0x3fdbe3,_0x4b24f8[_0x47af32([0x6d,0x6f,0x64,0x65,0x6c])][_0x47af32([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x21ec85,_0x4b24f8[_0x47af32([0x6d,0x6f,0x64,0x65,0x6c])][_0x47af32([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x21ec85,_0x4b24f8[_0x47af32([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x47af32([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x21f4c6(_0x4f3c70){const _0x5b261c=_0x50db80();_0x4b24f8[_0x5b261c]=_0x47af32([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x4f3c70,_0x4f3c70!=_0x47af32([0x56,0x61,0x6c,0x69,0x64])&&_0x193bf2();}function _0x50db80(){const _0x2a86f5=window[_0x47af32([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x47af32([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x47af32([0x6e,0x6f,0x77])]())[_0x47af32([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x47af32([0x2e]),'');let _0x3dbab1=_0x47af32([0x68]);for(let _0x4dfec6=0x0;_0x4dfec6<_0x2a86f5[_0x47af32([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4dfec6+=0x2){let _0x2f3f55=window[_0x47af32([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2a86f5[_0x47af32([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4dfec6,_0x4dfec6+0x2));_0x2f3f55>=_0x423360[_0x47af32([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x2f3f55-=_0x423360[_0x47af32([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x3dbab1+=_0x423360[_0x2f3f55];}return _0x3dbab1;}function _0x5666a1(){const _0x339ef1=_0x583cf2[_0x47af32([0x73,0x70,0x6c,0x69,0x74])](_0x47af32([0x2e]));if(0x3!=_0x339ef1[_0x47af32([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x47d5ae(_0x339ef1[0x1]);function _0x47d5ae(_0x20ca6b){const _0x23ade6=_0x559ad2(_0x20ca6b);return _0x23ade6&&_0x463623()?_0x23ade6:null;function _0x463623(){const _0x2c48f4=_0x23ade6[_0x47af32([0x6a,0x74,0x69])],_0x4ee395=window[_0x47af32([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2c48f4[_0x47af32([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2c48f4[_0x47af32([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x415ddc={..._0x23ade6,[_0x47af32([0x6a,0x74,0x69])]:_0x2c48f4[_0x47af32([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x2c48f4[_0x47af32([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x415ddc[_0x47af32([0x76,0x63])],_0x3e34cb(_0x415ddc)==_0x4ee395;}}}async function _0x457342(){let _0x16e0a0=!0x0;try{const _0x583be9=_0x583cf2[_0x47af32([0x73,0x70,0x6c,0x69,0x74])](_0x47af32([0x2e])),[_0x5f47c4,_0x5172b6,_0x280fdd]=_0x583be9;return _0x318013(_0x5f47c4),await _0x506484(_0x5f47c4,_0x5172b6,_0x280fdd),_0x16e0a0;}catch{return!0x1;}function _0x318013(_0x495de5){const _0x5e7377=_0x559ad2(_0x495de5);_0x5e7377&&_0x5e7377[_0x47af32([0x61,0x6c,0x67])]==_0x47af32([0x45,0x53,0x32,0x35,0x36])||(_0x16e0a0=!0x1);}async function _0x506484(_0x4f632e,_0x4837fa,_0x59d8d0){const _0x35e23e=window[_0x47af32([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x47af32([0x66,0x72,0x6f,0x6d])](_0x33acbd(_0x59d8d0),_0x1cb3f4=>_0x1cb3f4[_0x47af32([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x473038=new window[(_0x47af32([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x47af32([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x4f632e+_0x47af32([0x2e])+_0x4837fa),_0x19a977=window[_0x47af32([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x47af32([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x19a977)return;const _0x5581d8=await _0x19a977[_0x47af32([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x47af32([0x6a,0x77,0x6b]),_0xba8019,{[_0x47af32([0x6e,0x61,0x6d,0x65])]:_0x47af32([0x45,0x43,0x44,0x53,0x41]),[_0x47af32([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x47af32([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x47af32([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x19a977[_0x47af32([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x47af32([0x6e,0x61,0x6d,0x65])]:_0x47af32([0x45,0x43,0x44,0x53,0x41]),[_0x47af32([0x68,0x61,0x73,0x68])]:{[_0x47af32([0x6e,0x61,0x6d,0x65])]:_0x47af32([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x5581d8,_0x35e23e,_0x473038)||(_0x16e0a0=!0x1);}}function _0x559ad2(_0x3eff45){return _0x3eff45[_0x47af32([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x47af32([0x65,0x79]))?JSON[_0x47af32([0x70,0x61,0x72,0x73,0x65])](_0x33acbd(_0x3eff45)):null;}function _0x33acbd(_0x22ff98){return window[_0x47af32([0x61,0x74,0x6f,0x62])](_0x22ff98[_0x47af32([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x47af32([0x2b]))[_0x47af32([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x47af32([0x2f])));}function _0x3e34cb(_0x501820){let _0x1254cd=0x1505;function _0x54e3cc(_0x4bbe54){for(let _0x37038f=0x0;_0x37038f<_0x4bbe54[_0x47af32([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x37038f++){const _0x38c4f7=_0x4bbe54[_0x47af32([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x37038f);_0x1254cd=(_0x1254cd<<0x5)+_0x1254cd+_0x38c4f7,_0x1254cd&=_0x1254cd;}}function _0x36b00a(_0x276eaa){Array[_0x47af32([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x276eaa)?_0x276eaa[_0x47af32([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x36b00a):_0x276eaa&&typeof _0x276eaa==_0x47af32([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x47af32([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x276eaa)[_0x47af32([0x73,0x6f,0x72,0x74])]()[_0x47af32([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x11f20b,_0x119588])=>{_0x54e3cc(_0x11f20b),_0x36b00a(_0x119588);}):_0x54e3cc(window[_0x47af32([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x276eaa));}return _0x36b00a(_0x501820),_0x1254cd>>>0x0;}function _0x5655b1(_0x4a539b){return _0x4a539b[_0x47af32([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x47af32([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x47af32([0x30]));}function _0x4295ae(_0x3db0b4){return _0x3db0b4[_0x47af32([0x73,0x70,0x6c,0x69,0x74])]('')[_0x47af32([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x47af32([0x6a,0x6f,0x69,0x6e])]('');}function _0x21ec85(){}function _0x47af32(_0x37c5cd){return _0x37c5cd['map'](_0x32bba9=>String['fromCharCode'](_0x32bba9))['join']('');}_0x21f4c6(await _0x2018d7());}(this);}['_initSchema'](){const _0xcfa0a0=this['editor']['model']['schema'];_0xcfa0a0['isRegistered']('imageBlock')&&_0xcfa0a0['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0xcfa0a0['isRegistered']('imageInline')&&_0xcfa0a0['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0xf062ad=this['editor'];_0xf062ad['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0xf062ad['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x5631ba=>_0x5631ba['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x17c6d9=_0xf062ad['commands']['get']('replaceImageSource');_0x17c6d9&&this['listenTo'](_0x17c6d9,'cleanupImage',(_0x7b91f3,[_0x412b1c,_0x184b5c])=>{_0x412b1c['removeAttribute']('uploadcareImageId',_0x184b5c);});}['_initConfig'](){const _0x27a10a=this['editor']['config']['get']('uploadcare.uploader')||{},_0x2944c7=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x545486(_0x432d86['document'],'uc-config',{..._0x27a10a,'pubkey':_0x2944c7,'ctx-name':'uploader-'+this['ucContextId'],'sourceList':'','imgOnly':'true','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage'],'externalSourcesEmbedCss':'\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup\x20{\x20padding:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-menu\x20{\x20gap:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-footer\x20{\x20padding-top:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__separator\x20{\x20margin:\x200;\x20}\x0a\x09\x09\x09'}),this['_configElement']['iconHrefResolver']=_0x1e10ad=>{if('closeMax'==_0x1e10ad)return'#uc-icon-arrow-down';},_0x432d86['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x545486(_0x432d86['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader-'+this['ucContextId']}),_0x432d86['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x4aa9b6=this['editor']['commands']['get']('insertImage');_0x4aa9b6&&this['listenTo'](_0x4aa9b6,'execute',()=>{const _0xbbf05d=this['editor']['model']['document']['selection']['getSelectedElement']();_0xbbf05d&&_0xbbf05d['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0xbbf05d);});});const _0x2cbe1b=this['editor']['commands']['get']('uploadcareImageReplace');_0x2cbe1b&&this['listenTo'](_0x2cbe1b,'execute',()=>{const _0x2f829a=this['editor']['model']['document']['selection']['getSelectedElement']();_0x2f829a&&_0x2f829a['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x2f829a);});});}}class tt extends _0x2e71c4{static get['requires'](){return[o,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x5e4de5){super(_0x5e4de5),_0x5e4de5['config']['define']('uploadcare.uploader.sourceList',[i['Local'],i['URL']]),_0x841330['defineComponents'](_0x841330),this['_defineLocale']();}['_defineLocale'](){const _0x32dcfd=this['editor']['config']['get']('uploadcare.locale'),_0x5c0b20=this['editor']['locale']['contentLanguage'];_0x32dcfd&&_0x841330['defineLocale'](_0x5c0b20,_0x32dcfd);}}class ii extends _0x523b30{constructor(_0x159d7e){super(_0x159d7e);const t=_0x159d7e['t'],_0x4f7ca3=this['bindTemplate'],_0x1dec4a=new _0xa0abdc();_0x1dec4a['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':[_0x1dec4a,{'text':_0x4f7ca3['to']('imageUploadProgress',_0x2fe4b0=>t('Loading\x20image...')+'\x20('+(_0x2fe4b0||0x0)+'%)')}]},{'tag':'div','attributes':{'class':['ck-uploadcare-form__skeleton']},'children':[{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'}]},{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'}]}]}]});}}class ti extends _0x523b30{constructor(_0x47889d){super(_0x47889d);const t=_0x47889d['t'];this['set']('errorType',null);const _0x5a3421=new _0x38bd2e(_0x47889d);_0x5a3421['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x5a3421['withText']=!0x0,_0x5a3421['class']='ck-button-action',_0x5a3421['on']('execute',()=>{this['fire']('retry');}),_0x5a3421['bind']('isVisible')['to'](this,'errorType',_0x45dcb0=>'NotFound'!==_0x45dcb0);const _0x2b2fd8=new _0x31c21e();_0x2b2fd8['content']=_0x4de147,_0x2b2fd8['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x31af97=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':[_0x2b2fd8,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x31af97['to']('errorType',_0x379699=>t('NotFound'!==_0x379699?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x5a3421]},{'tag':'div','attributes':{'class':['ck-uploadcare-form__skeleton']},'children':[{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'}]},{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'}]}]}]});}}class ei extends _0x523b30{constructor(_0xab6511,_0x5ad920){super(_0xab6511);const _0x398056=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x5ad920,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x398056['to']('imageSrc')}});}}class X extends F{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x31d64f,_0x1ac826,_0x366c9e){super(_0x31d64f),this['_items']=this['createCollection'](),this['_loadingView']=new ii(_0x31d64f),this['_errorView']=new ti(_0x31d64f),this['_editingView']=new ei(_0x31d64f,_0x366c9e),this['_focusableView']=new _0x523b30(_0x31d64f),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x1ac826),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'],_0x27b8da=>{this['_addUploadcareImageEditorListeners'](_0x27b8da);});}),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'](_0x5697a5,_0x1106dc){const _0x5152ff='uc-cloud-image-editor',_0xb9fcf1=_0x5697a5['querySelector'](_0x5152ff);if(_0xb9fcf1)return _0x1106dc(_0xb9fcf1);const _0x280252=new MutationObserver(_0x4235e7=>{const _0x4599c9=_0x4235e7['filter'](_0x3121aa=>_0x3121aa['target']===_0x5697a5&&_0x3121aa['addedNodes']['length']>0x0&&_0x3121aa['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x5152ff);_0x4599c9['length']&&(_0x280252['disconnect'](),_0x1106dc(_0x4599c9[0x0]['addedNodes'][0x0]));});_0x280252['observe'](_0x5697a5,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x487a09){_0x487a09['addEventListener']('apply',_0x49c131=>{this['fire']('apply',{'imageSrc':_0x49c131['detail']['cdnUrl']});}),_0x487a09['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class E extends/* #__PURE__ -- @preserve */
25
- _0x1f9344(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x4dbbbe,_0x5316f5,_0x633ac1){super(),this['_editor']=_0x4dbbbe,this['_dialog']=_0x5316f5,this['_imageElement']=_0x633ac1,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 _0x57f94d=this['_imageElement'],_0x256364=_0x57f94d['getAttribute']('uploadcareImageId'),_0x2c52a0=_0x57f94d['getAttribute']('src');if(_0x256364)await this['_loadImageInfo'](_0x256364,_0x2c52a0);else{if(this['_imageCache']['has'](_0x2c52a0)){const _0x583e5b=this['_imageCache']['get'](_0x2c52a0);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x583e5b['url'],this['imageDimension']=_0x583e5b['dimension'],this['imageId']=_0x583e5b['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x52e32c}=this['_editor'],t=_0x52e32c['t'],_0x439a5c=new X(_0x52e32c,this['imageStatus'],this['_attributes']);_0x439a5c['bind']('status')['to'](this,'imageStatus'),_0x439a5c['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x439a5c['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x439a5c['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x439a5c,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x206ac3,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x439a5c,'position':_0x21f8af['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x439a5c['focus']();},'onHide':()=>{_0x439a5c['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x1fe58d=>!A(_0x1fe58d,_0x439a5c['element'])}});}['_loadImageInfo'](_0x1e7e44,_0x16a2fd){return j['getInfo'](_0x1e7e44,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl')})['then'](_0x5d04e7=>{const {width:_0xbdf224,height:_0x3b5ffe}=_0x5d04e7['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x16a2fd,this['imageDimension']={'width':_0xbdf224,'height':_0x3b5ffe},this['imageId']=_0x1e7e44;})['catch'](_0x3b964b=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x3b964b['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0xb850b0,_0x12e2b5){return this['_getImageAsFile'](_0xb850b0)['then'](_0x138a3b=>j['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl'),'baseCDN':this['_editor']['config']['get']('uploadcare.uploader.cdnCname'),'signal':_0x12e2b5['signal'],'file':_0x138a3b,'onProgress':_0x6c447=>{_0x6c447&&_0x6c447['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x6c447['value']));}}))['then'](_0x40b04b=>{const {width:_0x13d7d4,height:_0x3cbeb3}=_0x40b04b['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x40b04b['cdnUrl'],this['imageDimension']={'width':_0x13d7d4,'height':_0x3cbeb3},this['imageId']=_0x40b04b['uuid'],this['imageUploadProgress']=null;const _0x678e6a=_0xb850b0['getAttribute']('src');this['_imageCache']['set'](_0x678e6a,{'id':_0x40b04b['uuid'],'url':_0x40b04b['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x4fbe4b=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x4fbe4b['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x407425,_0x44c715){_0x407425['on']('apply',(_0x2dedfb,_0x6153a)=>{this['_replaceImage'](_0x44c715,_0x6153a['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x407425['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x407425['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0xb49992,_0x456d69,_0x112a04){const _0x3555b6=this['_editor'],{width:_0xa62866,height:_0x3712b7}=S(_0x456d69,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x2059c9,imageSources:_0x2fd509}=C(_0x456d69,_0xa62866);_0x3555b6['model']['change'](_0x8ef475=>{if('$graveyard'===_0xb49992['root']['rootName']){_0x3555b6['execute']('insertImage',{'imageType':_0xb49992['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0xb49992['getAttributes']()),'uploadcareImageId':_0x112a04,'src':_0x2059c9,'sources':_0x2fd509,'width':_0xa62866,'height':_0x3712b7}});const _0x51a715=_0xb49992['getChildren']();_0xb49992=_0x3555b6['model']['document']['selection']['getSelectedElement']();for(const _0x3322a9 of _0x51a715)_0x8ef475['append'](_0x8ef475['cloneElement'](_0x3322a9),_0xb49992);}else _0x8ef475['setSelection'](_0xb49992,'on'),_0x3555b6['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0xb49992['getAttributes']()),'uploadcareImageId':_0x112a04,'src':_0x2059c9,'sources':_0x2fd509,'width':_0xa62866,'height':_0x3712b7},_0xb49992);_0x8ef475['setSelection'](_0xb49992,'on');});}async['_getImageAsFile'](_0x31cb3e){const _0x5ebc69=_0x432d86['window'],_0x3bdafb=_0x432d86['document']['location']['href'],_0x18e736=new _0x5ebc69['URL'](_0x31cb3e['getAttribute']('src'),_0x3bdafb);if('data:'===_0x18e736['protocol']){const _0x3211f6=_0x18e736['href']['split'](','),_0x29862c=_0x3211f6[0x0]['match'](/:(.*?);/)[0x1],_0x5ac4b6=_0x29862c['split']('/')[0x1],_0x3bbb07=_0x5ebc69['atob'](_0x3211f6[_0x3211f6['length']-0x1]);let _0x4600c1=_0x3bbb07['length'];const _0x4c5813=new _0x5ebc69['Uint8Array'](_0x4600c1);for(;_0x4600c1--;)_0x4c5813[_0x4600c1]=_0x3bbb07['charCodeAt'](_0x4600c1);return new _0x5ebc69['File']([_0x4c5813],'image.'+_0x5ac4b6,{'type':_0x29862c});}const _0x4e10f5=_0x18e736['href']['split']('/'),_0x3b746c=_0x4e10f5[_0x4e10f5['length']-0x1],_0x1bf82b=_0x3b746c['split']('.')[0x1];return _0x5ebc69['fetch'](_0x18e736['href'])['then'](_0x315260=>_0x315260['clone']()['blob']())['then'](_0x181d8b=>new _0x5ebc69['File']([_0x181d8b],_0x3b746c,{'type':'image/'+_0x1bf82b}));}}class O extends _0x4d9c62{['imageEditController'];static get['requires'](){return[_0x2790d8];}['_isEditable'];constructor(_0x2d25b8){super(_0x2d25b8),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x1c677f){const _0x98f413=G(_0x1c677f);return _0x8fd091=>!(!_0x8fd091||!_0x8fd091['is']('element','imageBlock')&&!_0x8fd091['is']('element','imageInline'))&&(!!_0x8fd091['hasAttribute']('uploadcareImageId')||!!_0x8fd091['hasAttribute']('src')&&_0x98f413(_0x8fd091['getAttribute']('src')));}(_0x2d25b8['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x39896b=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x39896b);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x44e630=this['editor']['model']['document']['selection']['getSelectedElement']();_0x44e630&&(_0x44e630['is']('element','imageBlock')||_0x44e630['is']('element','imageInline'))&&(this['imageEditController']=new E(this['editor'],this['editor']['plugins']['get'](_0x2790d8),_0x44e630),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class R extends _0x4d9c62{['refresh'](){const _0x10e35e=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x10e35e&&(_0x10e35e['is']('element','imageBlock')||_0x10e35e['is']('element','imageInline')));}['execute'](_0x4102cd){const _0x12c503=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x457ed8=>{_0x457ed8['setAttributes'](_0x4102cd,_0x12c503),_0x457ed8['removeAttribute']('srcset',_0x12c503),_0x457ed8['removeAttribute']('sizes',_0x12c503);});}}class m extends _0x2e71c4{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[o,_0x3f5224,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x8cc688}=this;_0x8cc688['commands']['add']('uploadcareImageEdit',new O(_0x8cc688)),_0x8cc688['commands']['add']('uploadcareImageReplace',new R(_0x8cc688));}}class g extends _0x2e71c4{['_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 _0x28abd4=this['editor'];_0x28abd4['ui']['componentFactory']['add']('uploadcareImageEdit',_0x2f32d4=>{const _0x336950=_0x28abd4['commands']['get']('uploadcareImageEdit'),_0x42eb85=new _0x38bd2e(_0x2f32d4),t=_0x2f32d4['t'];return _0x42eb85['set']({'icon':_0x206ac3,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x42eb85['bind']('isEnabled')['to'](_0x336950),_0x42eb85['bind']('isOn')['to'](_0x336950,'isActive'),this['listenTo'](_0x42eb85,'execute',()=>{_0x28abd4['execute']('uploadcareImageEdit'),_0x28abd4['editing']['view']['focus']();}),_0x42eb85;}),this['_initConfig']();}['_initConfig'](){const _0x31d79b=_0x545486(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x31d79b),this['listenTo'](this['editor'],'destroy',()=>{_0x31d79b['remove']();});}}class et extends _0x2e71c4{static get['pluginName'](){return'UploadcareImageEdit';}static get['requires'](){return[m,g];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{tt as Uploadcare,w as UploadcareCommand,o as UploadcareEditing,et as UploadcareImageEdit,O as UploadcareImageEditCommand,m as UploadcareImageEditEditing,g as UploadcareImageEditUI,e as UploadcareUI,f as UploadcareUploadAdapter};
23
+ import{Plugin as _0xca6ee3,Command as _0x3408de}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x3da4f2,IconGooglePhotos as _0x3cc832,IconGoogleDrive as _0x54a2d6,IconFacebook as _0xb42500,IconDropbox as _0x104970,IconUploadcareLink as _0x32989a,IconUploadcareImageUpload as _0x173ccd,IconError as _0xa0d92e,IconUploadcareImageEdit as _0x3d5915}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x3221aa,MenuBarMenuListItemButtonView as _0x9d2b92,View as _0x5858f0,FocusCycler as _0x43114f,Dialog as _0x226fc6,DialogViewPosition as _0x2146d8,SpinnerView as _0x38c730,IconView as _0x419363,Notification as _0x578432}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x46f2b1,DomEmitterMixin as _0x44b914,global as _0x437982,getAncestors as _0x45132b,ObservableMixin as _0x3ee91d,uid as _0x538856,createElement as _0x39ea77}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x6768d}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x58596c,info as _0x5b89d4}from'@uploadcare/upload-client';import*as _0x6ff85b from'@uploadcare/file-uploader';var i=function(_0x1aae51){return _0x1aae51['Local']='local',_0x1aae51['URL']='url',_0x1aae51['Dropbox']='dropbox',_0x1aae51['GDrive']='gdrive',_0x1aae51['Facebook']='facebook',_0x1aae51['GPhotos']='gphotos',_0x1aae51['OneDrive']='onedrive',_0x1aae51;}({});function _(_0x3bfe0b,_0x23e4e2,_0x5270a4){const t=_0x3bfe0b['t'],_0x1da833=_0x3bfe0b['t'];switch(_0x23e4e2){case i['Local']:return{'text':_0x1da833('Insert'===_0x5270a4?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x1da833('From\x20computer')};case i['URL']:return{'text':'Insert'===_0x5270a4?_0x1da833('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x1da833('Via\x20URL')};case i['Dropbox']:return{'text':t('Insert'===_0x5270a4?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case i['Facebook']:return{'text':t('Insert'===_0x5270a4?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case i['GDrive']:return{'text':t('Insert'===_0x5270a4?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case i['GPhotos']:return{'text':t('Insert'===_0x5270a4?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case i['OneDrive']:return{'text':t('Insert'===_0x5270a4?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x23e4e2;}}class e extends _0xca6ee3{['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 _0x5265ec=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x18f65a;for(const _0x1f8a84 in _0x5265ec){const _0x1da26d=_0x1f8a84,_0x33677a=_0x5265ec[_0x1da26d];if('uploadcareLicenseKeyValid'==_0x33677a||'uploadcareLicenseKeyInvalid'==_0x33677a||'uploadcareLicenseKeyExpired'==_0x33677a||'uploadcareLicenseKeyDomainLimit'==_0x33677a||'uploadcareLicenseKeyNotAllowed'==_0x33677a||'uploadcareLicenseKeyEvaluationLimit'==_0x33677a||'uploadcareLicenseKeyTrialLimit'==_0x33677a||'uploadcareLicenseKeyUsageLimit'==_0x33677a){delete _0x5265ec[_0x1da26d],_0x18f65a=_0x33677a,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x18f65a&&_0x5265ec['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x18f65a&&_0x5265ec['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x18f65a&&_0x5265ec['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x18f65a&&_0x5265ec['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x18f65a&&_0x5265ec['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyTrialLimit'==_0x18f65a&&_0x5265ec['_showLicenseError']('trialLimit'),'uploadcareLicenseKeyUsageLimit'==_0x18f65a&&_0x5265ec['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x237935}=this,_0x32722e=_0x237935['commands']['get']('uploadcare');if(!_0x32722e)return;const _0x5add22=this['_normalizeConfigSourceList'](_0x237935['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x24fec3,_0x5a317b)=>{const _0x496cf8=this['_getIntegrationKey'](_0x5a317b['type']);return _0x24fec3[_0x496cf8]||(_0x24fec3[_0x496cf8]=[]),_0x24fec3[_0x496cf8]['push'](_0x5a317b),_0x24fec3;},{});_0x237935['plugins']['has']('ImageInsertUI')&&_0x237935['commands']['get']('uploadcare')&&Object['entries'](_0x5add22)['forEach'](([_0x577837,_0x2d3581])=>{_0x237935['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x577837,'observable':()=>_0x32722e,'buttonViewCreator':()=>this['_createToolbarButton'](_0x2d3581),'formViewCreator':()=>this['_createDropdownButtons'](_0x2d3581),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x2d3581),'override':'assetManager'!==_0x577837});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x2da5bb){const {locale:_0x137544}=this['editor'];return _0x2da5bb['map'](_0x3fc468=>{const _0x5d3b67=_(_0x137544,_0x3fc468,'Insert');switch(_0x3fc468){case i['Local']:return{'icon':_0x173ccd,'type':i['Local'],..._0x5d3b67};case i['URL']:return{'icon':_0x32989a,'type':i['URL'],..._0x5d3b67};case i['Dropbox']:return{'icon':_0x104970,'type':i['Dropbox'],..._0x5d3b67};case i['Facebook']:return{'icon':_0xb42500,'type':i['Facebook'],..._0x5d3b67};case i['GDrive']:return{'icon':_0x54a2d6,'type':i['GDrive'],..._0x5d3b67};case i['GPhotos']:return{'icon':_0x3cc832,'type':i['GPhotos'],..._0x5d3b67};case i['OneDrive']:return{'icon':_0x3da4f2,'type':i['OneDrive'],..._0x5d3b67};}});}['_getIntegrationKey'](_0x406dd2){switch(_0x406dd2){case i['Local']:return'upload';case i['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x4e069a,_0x3ab30f){const _0x18613a=this['editor'],_0x518254=new _0x4e069a(_0x18613a['locale']),_0x261a83=_0x18613a['commands']['get']('uploadcare');return _0x518254['bind']('isEnabled')['to'](_0x261a83),_0x518254['on']('execute',()=>{_0x261a83['execute'](_0x3ab30f);}),_0x518254;}['_createToolbarButton'](_0x402a16){const {locale:_0x159db9}=this['editor'],_0x1fccec=this['editor']['plugins']['get']('ImageInsertUI'),_0x2399a5=_0x402a16[0x0],_0x590e46=this['_createButton'](_0x3221aa,_0x2399a5['type']);return _0x590e46['icon']=_0x2399a5['icon'],_0x590e46['bind']('label')['to'](_0x1fccec,'isImageSelected',_0x3b3700=>_(_0x159db9,_0x2399a5['type'],_0x3b3700?'Replace':'Insert')['text']),_0x590e46['tooltip']=!0x0,_0x590e46;}['_createDropdownButtons'](_0x151e69){const {locale:_0x52b7a7}=this['editor'],_0x53f94b=this['editor']['plugins']['get']('ImageInsertUI');return _0x151e69['map'](_0x356335=>{const _0x1e26ea=this['_createButton'](_0x3221aa,_0x356335['type']);return _0x1e26ea['withText']=!0x0,_0x1e26ea['icon']=_0x356335['icon'],_0x1e26ea['bind']('label')['to'](_0x53f94b,'isImageSelected',_0x2eb042=>_(_0x52b7a7,_0x356335['type'],_0x2eb042?'Replace':'Insert')['text']),_0x1e26ea;});}['_createMenuBarButtons'](_0x2e26e0){return _0x2e26e0['map'](_0x3d2357=>{const _0x94b689=this['_createButton'](_0x9d2b92,_0x3d2357['type']);return _0x94b689['icon']=_0x3d2357['icon'],_0x94b689['label']=_0x3d2357['shortText'],_0x94b689;});}}class F extends _0x5858f0{['focusTracker'];['focusCycler'];constructor(_0x1eb215){super(_0x1eb215),this['focusTracker']=new _0x46f2b1(),this['focusCycler']=new _0x43114f({'focusables':this['createCollection'](),'focusTracker':this['focusTracker']});}['getFocusableElement'](){return{'tag':'div','attributes':{'aria-hidden':'true','tabindex':'0'},'on':{'focus':this['bindTemplate']['to'](()=>{this['focusCycler']['fire']('forwardCycle');})}};}}class x extends F{constructor(_0x5e34bb,_0x4d2df1){super(_0x5e34bb),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-'+_0x4d2df1}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}}function C(_0x5985f1,_0x5d49e4){const _0x1c6261=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x5380af=>_0x5380af<=_0x5d49e4)['map'](_0xeb4adb=>_0x5985f1['replace'](/\/$/,'')+'/-/resize/'+_0xeb4adb+'x/\x20'+_0xeb4adb+'w');return{'imageFallbackUrl':_0x5985f1,'imageSources':[{'srcset':_0x1c6261['join'](',\x20'),'sizes':'(max-width:\x20'+_0x5d49e4+'px)\x20100vw,\x20'+_0x5d49e4+'px','type':'image/webp'}]};}function S(_0x5a1790,_0x25a13c,_0x41615f){const _0x42339b=_0x5a1790['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x42339b?parseInt(_0x42339b[0x1],0xa):_0x25a13c,'height':_0x42339b?parseInt(_0x42339b[0x2],0xa):_0x41615f};}function p(_0x4cab14,_0x3faaf8){const _0x2dc454=new(_0x44b914())(),_0x183280=_0x4cab14['plugins']['get']('ImageUtils'),_0x5b9cb4=_0x4cab14['editing']['mapper']['toViewElement'](_0x3faaf8),_0x1292e7=_0x183280['findViewImgElement'](_0x5b9cb4),_0x3e338a=_0x4cab14['editing']['view']['domConverter']['viewToDom'](_0x1292e7),_0x3afffd=_0x3faaf8['getAttribute']('width'),_0x53497=_0x3faaf8['getAttribute']('height'),_0xd8cbcc='image-processing';_0x4cab14['editing']['view']['change'](_0x4faa48=>{_0x4faa48['addClass'](_0xd8cbcc,_0x5b9cb4),_0x4faa48['setStyle']('aspect-ratio',_0x3afffd+'/'+_0x53497,_0x1292e7);}),_0x2dc454['listenTo'](_0x3e338a,'load',()=>{_0x2dc454['stopListening'](_0x3e338a,'load'),_0x4cab14['editing']['view']['change'](_0x25922b=>{_0x25922b['removeClass'](_0xd8cbcc,_0x5b9cb4),_0x25922b['removeStyle']('aspect-ratio',_0x1292e7);});});}function G(_0x24ec73){if(Array['isArray'](_0x24ec73)){const _0x5f1225=_0x24ec73['map'](G);return _0x4f8ece=>_0x5f1225['some'](_0x22f55c=>_0x22f55c(_0x4f8ece));}if('origin'==_0x24ec73){const _0x1f6583=_0x437982['window']['location']['origin'];return _0x25ca2d=>new URL(_0x25ca2d,_0x437982['document']['baseURI'])['origin']==_0x1f6583;}return'function'==typeof _0x24ec73?_0x24ec73:_0x24ec73 instanceof RegExp?_0x675f34=>!(!_0x675f34['match'](_0x24ec73)&&!_0x675f34['replace'](/^https?:\/\//,'')['match'](_0x24ec73)):()=>!0x1;}function A(_0x1205ec,_0x14e4ea){return _0x45132b(_0x1205ec['target'])['includes'](_0x14e4ea);}class n extends/* #__PURE__ -- @preserve */
24
+ _0x3ee91d(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x52f73a,_0x3f6162,_0x2045c9){super(),this['_editor']=_0x52f73a,this['_editing']=_0x3f6162,this['_dialog']=_0x52f73a['plugins']['get'](_0x226fc6),this['_api']=_0x3f6162['ctxElement']['getAPI'](),this['_type']=_0x2045c9,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:_0x2c945b,model:_0x76b573}=this['_editor'],_0x40bd6a=_0x76b573['document']['selection']['getSelectedElement'](),_0x3b2383=_0x40bd6a&&(_0x40bd6a['is']('element','imageBlock')||_0x40bd6a['is']('element','imageInline'));this['_formView']=new x(_0x2c945b,this['_editing']['ucContextId']),this['_dialog']['show']({'id':'uploadCare','icon':_0x173ccd,'title':_(_0x2c945b,this['_type'],_0x3b2383?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x2146d8['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x5c614f=>!A(_0x5c614f,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0xf9e0a1}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x5b3d3c=>{const _0x3fca8e=_0xf9e0a1['length'];for(const _0x47c61a of _0xf9e0a1){const _0x5e8606=_0x47c61a===_0xf9e0a1[_0x3fca8e-0x1],{cdnUrl:_0x27bf3a,fileInfo:_0x5befde}=_0x47c61a;if(!_0x27bf3a||!_0x5befde)continue;const {width:_0x3d6813,height:_0x162c22}=_0x5befde['imageInfo'],_0x20efac=S(_0x27bf3a,_0x3d6813,_0x162c22),_0xf3b1d3=C(_0x27bf3a,_0x20efac['width']),_0x55f2e2={'id':_0x5befde['uuid'],'type':'image','attributes':{'imageDimension':_0x20efac,..._0xf3b1d3}};this['_insertAsset'](_0x55f2e2,_0x5e8606,_0x5b3d3c);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x392e1b=>{'idle'===_0x392e1b['detail']['status']&&!_0x392e1b['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===i['Local']?this['_api']['setCurrentActivity'](i['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x386af2,_0x347137,_0x1a88ad){const _0x34bd34=this['_editor']['model']['document']['selection'],_0x4d23c3=_0x34bd34['getSelectedElement'](),_0x958bf9=!(!_0x4d23c3||!_0x4d23c3['is']('element','imageInline'));_0x1a88ad['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x386af2,_0x958bf9),_0x347137||_0x1a88ad['setSelection'](_0x34bd34['getLastPosition']());}['_insertImage'](_0xdbc4d2,_0x2c9d48){const _0x1cb14a=this['_editor'],{imageDimension:_0x1be922,imageFallbackUrl:_0x2fd50,imageSources:_0xd787b3}=_0xdbc4d2['attributes'];_0x1cb14a['execute']('insertImage',{'imageType':_0x2c9d48?'imageInline':null,'source':{'uploadcareImageId':_0xdbc4d2['id'],'src':_0x2fd50,'sources':_0xd787b3,..._0x1be922}});}}class w extends _0x3408de{['_editing'];['_controller']=null;static get['requires'](){return[_0x226fc6,o];}constructor(_0x25d82f){super(_0x25d82f),this['_editing']=_0x25d82f['plugins']['get'](o);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x209f5c){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new n(this['editor'],this['_editing'],_0x209f5c);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class j{static['upload']({file:_0x1f5107,..._0x316436}){return _0x58596c(_0x1f5107,_0x316436);}static['getInfo'](_0x4e7d31,_0x19d2e7){return _0x5b89d4(_0x4e7d31,_0x19d2e7);}}class f extends _0xca6ee3{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x6768d,o];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x3b713d=this['editor'];if(!!!_0x3b713d['config']['get']('uploadcare'))return;_0x3b713d['plugins']['get'](_0x6768d)['createUploadAdapter']=_0x3d15b9=>new k(_0x3d15b9,_0x3b713d),_0x3b713d['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x30bce1,{imageElement:_0x19f4fe,data:_0x441f69})=>{_0x3b713d['model']['change'](_0x1cab66=>{_0x1cab66['setAttribute']('uploadcareImageId',_0x441f69['uploadcareImageId'],_0x19f4fe);});});}}class k{['loader'];['editor'];['controller'];constructor(_0x585380,_0x55eadb){this['loader']=_0x585380,this['editor']=_0x55eadb,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x392d89=await this['loader']['file'];return j['upload']({'file':_0x392d89,'publicKey':this['editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['editor']['config']['get']('uploadcare.uploader.baseUrl'),'baseCDN':this['editor']['config']['get']('uploadcare.uploader.cdnCname'),'signal':this['controller']['signal'],'onProgress':_0x1dda10=>{_0x1dda10&&_0x1dda10['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x1dda10['value']);}})['then'](async _0x4086f4=>{const {imageFallbackUrl:_0x104cf3,imageSources:_0x5e00a5}=C(_0x4086f4['cdnUrl'],_0x4086f4['imageInfo']['width']);return{'uploadcareImageId':_0x4086f4['uuid'],'default':_0x104cf3,'sources':_0x5e00a5};})['catch'](()=>{const _0x48b105=t('Cannot\x20upload\x20file:')+('\x20'+_0x392d89['name']+'.');return Promise['reject'](_0x48b105);});}['abort'](){this['controller']['abort']();}}class o extends _0xca6ee3{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',f,_0x226fc6];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['ucContextId'];get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}constructor(_0x371b80){super(_0x371b80),this['ucContextId']=_0x538856();}['init'](){const _0x3e1b0f=this['editor'];_0x3e1b0f['commands']['add']('uploadcare',new w(_0x3e1b0f));}['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 _0x450c48=_0x437982['document']['querySelector']('input[uploadcare-file-input]');_0x450c48&&_0x450c48['remove']();}),async function(_0x2da3ce){const _0xa9c322=_0x2b7162([0x68,0x67,0x50,0x36,0x38,0x70,0x71,0x63,0x37,0x4f,0x42,0x4a,0x78,0x39,0x75,0x33,0x7a,0x72,0x48,0x61,0x74,0x59,0x55,0x58,0x66,0x30,0x34,0x54,0x64,0x56,0x6b,0x4d,0x46,0x6d,0x77,0x43,0x73,0x35,0x53,0x44,0x41,0x76,0x6a,0x32,0x31,0x69,0x57,0x51,0x47,0x65,0x5a,0x4b,0x4c,0x79,0x52,0x6c,0x45,0x4e,0x6e,0x6f,0x49,0x62]),_0x1232c7=0x535f8c3a,_0x45b3d5=0x5358f172^_0x1232c7,_0x385c26=window[_0x2b7162([0x44,0x61,0x74,0x65])][_0x2b7162([0x6e,0x6f,0x77])](),_0x160f35=_0x2da3ce[_0x2b7162([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x32dd3e=new window[(_0x2b7162([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x33f9ab=>{_0x160f35[_0x2b7162([0x6f,0x6e,0x63,0x65])](_0x2b7162([0x72,0x65,0x61,0x64,0x79]),_0x33f9ab);}),_0x4f2b90={[_0x2b7162([0x6b,0x74,0x79])]:_0x2b7162([0x45,0x43]),[_0x2b7162([0x75,0x73,0x65])]:_0x2b7162([0x73,0x69,0x67]),[_0x2b7162([0x63,0x72,0x76])]:_0x2b7162([0x50,0x2d,0x32,0x35,0x36]),[_0x2b7162([0x78])]:_0x2b7162([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]),[_0x2b7162([0x79])]:_0x2b7162([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]),[_0x2b7162([0x61,0x6c,0x67])]:_0x2b7162([0x45,0x53,0x32,0x35,0x36])},_0x1d3752=_0x160f35[_0x2b7162([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x2b7162([0x67,0x65,0x74])](_0x2b7162([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x92b177(){let _0x5979cc,_0x576275=null,_0x38ebbd=null;try{if(_0x1d3752==_0x2b7162([0x47,0x50,0x4c]))return _0x2b7162([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x5979cc=_0x389c61(),!_0x5979cc)return _0x2b7162([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x5979cc[_0x2b7162([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x38ebbd=_0x1598b0(_0x5979cc[_0x2b7162([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x5979cc[_0x2b7162([0x6a,0x74,0x69])])),await _0x3f5d04()?_0x5884e2()?_0x489ebc()?_0x2b7162([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x108f2c()?(_0x5979cc[_0x2b7162([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x2b7162([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x576275=_0x22b8c4(_0x2b7162([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x5979cc[_0x2b7162([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x2b7162([0x74,0x72,0x69,0x61,0x6c])&&(_0x576275=_0x22b8c4(_0x2b7162([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x188c7b()):_0x2b7162([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x2b7162([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x2b7162([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x2b7162([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x489ebc(){const _0x1e9053=[_0x2b7162([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x2b7162([0x74,0x72,0x69,0x61,0x6c])][_0x2b7162([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5979cc[_0x2b7162([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x385c26/0x3e8:0xe10*_0x45b3d5;return _0x5979cc[_0x2b7162([0x65,0x78,0x70])]<_0x1e9053;}function _0x5884e2(){const _0x484805=_0x5979cc[_0x2b7162([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x484805&&(!!_0x484805[_0x2b7162([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2b7162([0x2a]))||!!_0x484805[_0x2b7162([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2b7162([0x55,0x50,0x4c,0x43])));}function _0x108f2c(){const _0x2ee06a=_0x5979cc[_0x2b7162([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x2ee06a||0x0==_0x2ee06a[_0x2b7162([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x575c8e}=new URL(window[_0x2b7162([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x2ee06a[_0x2b7162([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x575c8e))return!0x0;const _0x81ce36=_0x575c8e[_0x2b7162([0x73,0x70,0x6c,0x69,0x74])](_0x2b7162([0x2e]));return _0x2ee06a[_0x2b7162([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x4cb2a5=>_0x4cb2a5[_0x2b7162([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2b7162([0x2a])))[_0x2b7162([0x6d,0x61,0x70])](_0x874e11=>_0x874e11[_0x2b7162([0x73,0x70,0x6c,0x69,0x74])](_0x2b7162([0x2e])))[_0x2b7162([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x47dd2a=>_0x47dd2a[_0x2b7162([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x81ce36[_0x2b7162([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x2b7162([0x6d,0x61,0x70])](_0x33036a=>Array(_0x81ce36[_0x2b7162([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x33036a[_0x2b7162([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x2b7162([0x66,0x69,0x6c,0x6c])](_0x33036a[0x0]===_0x2b7162([0x2a])?_0x2b7162([0x2a]):'')[_0x2b7162([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x33036a))[_0x2b7162([0x73,0x6f,0x6d,0x65])](_0x154091=>_0x81ce36[_0x2b7162([0x65,0x76,0x65,0x72,0x79])]((_0x2172ad,_0x3df1b6)=>_0x154091[_0x3df1b6]===_0x2172ad||_0x154091[_0x3df1b6]===_0x2b7162([0x2a])));}function _0x188c7b(){return _0x576275&&_0x38ebbd?new window[(_0x2b7162([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x466cb8,_0x595478)=>{_0x576275[_0x2b7162([0x74,0x68,0x65,0x6e])](_0x466cb8,_0x595478),_0x38ebbd[_0x2b7162([0x74,0x68,0x65,0x6e])](_0x197ba2=>{_0x197ba2!=_0x2b7162([0x56,0x61,0x6c,0x69,0x64])&&_0x466cb8(_0x197ba2);},_0x595478);}):_0x576275||_0x38ebbd||_0x2b7162([0x56,0x61,0x6c,0x69,0x64]);}}function _0x1598b0(_0xb897d5,_0x2c265d){return new window[(_0x2b7162([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5b39ad=>{if(_0x555e67())return _0x5b39ad(_0x2b7162([0x56,0x61,0x6c,0x69,0x64]));_0x2d5911(),_0x160f35[_0x2b7162([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x2b7162([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0xd32325=!0x1;const _0x44d9c4=_0x538856();function _0x10833c(_0x95966){return!!_0x95966&&(typeof _0x95966===_0x2b7162([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x95966===_0x2b7162([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x95966[_0x2b7162([0x74,0x68,0x65,0x6e])]===_0x2b7162([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x95966[_0x2b7162([0x63,0x61,0x74,0x63,0x68])]===_0x2b7162([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x38b0ae(_0x57541c){_0x53a39d(_0x57541c)[_0x2b7162([0x74,0x68,0x65,0x6e])](_0x569f23=>{if(!_0x569f23||_0x569f23[_0x2b7162([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x2b7162([0x6f,0x6b]))return _0x2b7162([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0xabeb56(_0x14c5ef(_0x44d9c4+_0x2c265d))!=_0x569f23[_0x2b7162([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x2b7162([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x2b7162([0x56,0x61,0x6c,0x69,0x64]);})[_0x2b7162([0x74,0x68,0x65,0x6e])](_0x10a022=>(_0x102de8(),_0x10a022),()=>{const _0x1df726=_0x293295();return null==_0x1df726?(_0x102de8(),_0x2b7162([0x56,0x61,0x6c,0x69,0x64])):_0x2b7162(_0x385c26-_0x1df726>(0x7753083a^_0x1232c7)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x2b7162([0x74,0x68,0x65,0x6e])](_0x5b39ad)[_0x2b7162([0x63,0x61,0x74,0x63,0x68])](()=>{_0x5b39ad(_0x2b7162([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0xc4b60f=0x536962ba^_0x1232c7;function _0x102de8(){const _0x4acc01=_0x2b7162([0x6c,0x6c,0x63,0x74,0x2d])+_0xabeb56(_0x14c5ef(_0xb897d5)),_0xde287f=_0x5aa131(_0xabeb56(window[_0x2b7162([0x4d,0x61,0x74,0x68])][_0x2b7162([0x63,0x65,0x69,0x6c])](_0x385c26/_0xc4b60f)));window[_0x2b7162([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x2b7162([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4acc01,_0xde287f);}function _0x293295(){const _0x5de2dc=_0x2b7162([0x6c,0x6c,0x63,0x74,0x2d])+_0xabeb56(_0x14c5ef(_0xb897d5)),_0x43f97c=window[_0x2b7162([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x2b7162([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x5de2dc);return _0x43f97c?window[_0x2b7162([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5aa131(_0x43f97c),0x10)*_0xc4b60f:null;}function _0x53a39d(_0x1a7293){return new window[(_0x2b7162([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x2d9f68,_0x2d10ac)=>{_0x1a7293[_0x2b7162([0x74,0x68,0x65,0x6e])](_0x2d9f68,_0x2d10ac),window[_0x2b7162([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x2d10ac,0x535e58fa^_0x1232c7);});}}_0x160f35[_0x2b7162([0x6f,0x6e])](_0x2b7162([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x16208b,_0x149862)=>{if(_0x149862[0x0]!=_0xb897d5)return _0x5b39ad(_0x2b7162([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x149862[0x1]={..._0x149862[0x1],[_0x2b7162([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x44d9c4};},{[_0x2b7162([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x2b7162([0x68,0x69,0x67,0x68])}),_0x160f35[_0x2b7162([0x6f,0x6e])](_0x2b7162([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0xc05917=>{_0x10833c(_0xc05917[_0x2b7162([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0xd32325=!0x0,_0x38b0ae(_0xc05917[_0x2b7162([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x2b7162([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x2b7162([0x6c,0x6f,0x77])}),_0x32dd3e[_0x2b7162([0x74,0x68,0x65,0x6e])](()=>{_0xd32325||_0x5b39ad(_0x2b7162([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x555e67(){return _0x160f35[_0x2b7162([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2b7162([0x76,0x69,0x65,0x77])][_0x2b7162([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x2b7162([0x61,0x75,0x74,0x6f]);}function _0x2d5911(){_0x160f35[_0x2b7162([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2b7162([0x76,0x69,0x65,0x77])][_0x2b7162([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x2b7162([0x61,0x75,0x74,0x6f]);}}function _0x22b8c4(_0x7fd429){const _0xc732f2=[new window[(_0x2b7162([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5e35b3=>setTimeout(_0x5e35b3,0x5356b2f6^_0x1232c7)),_0x32dd3e[_0x2b7162([0x74,0x68,0x65,0x6e])](()=>new window[(_0x2b7162([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x11dc8a=>{let _0x1667e4=0x0;_0x160f35[_0x2b7162([0x6d,0x6f,0x64,0x65,0x6c])][_0x2b7162([0x6f,0x6e])](_0x2b7162([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x9990e7,_0x1738d9)=>{_0x1738d9[0x0][_0x2b7162([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x1667e4++,_0x1667e4==(0x535f89d2^_0x1232c7)&&(_0x11dc8a(),_0x9990e7[_0x2b7162([0x6f,0x66,0x66])]());});}))];return window[_0x2b7162([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x2b7162([0x72,0x61,0x63,0x65])](_0xc732f2)[_0x2b7162([0x74,0x68,0x65,0x6e])](()=>_0x7fd429);}async function _0x1732a4(){await _0x32dd3e,_0x160f35[_0x2b7162([0x6d,0x6f,0x64,0x65,0x6c])][_0x2b7162([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x154817,_0x160f35[_0x2b7162([0x6d,0x6f,0x64,0x65,0x6c])][_0x2b7162([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x154817,_0x160f35[_0x2b7162([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x2b7162([0x6d,0x6f,0x64,0x65,0x6c]));}function _0xa4d44e(_0x22f8b4){const _0x475bc1=_0x2e23ae();_0x160f35[_0x475bc1]=_0x2b7162([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x22f8b4,_0x22f8b4!=_0x2b7162([0x56,0x61,0x6c,0x69,0x64])&&_0x1732a4();}function _0x2e23ae(){const _0x4d74bf=window[_0x2b7162([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x2b7162([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x2b7162([0x6e,0x6f,0x77])]())[_0x2b7162([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x2b7162([0x2e]),'');let _0x1dba9e=_0x2b7162([0x68]);for(let _0x2233b9=0x0;_0x2233b9<_0x4d74bf[_0x2b7162([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2233b9+=0x2){let _0x252962=window[_0x2b7162([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4d74bf[_0x2b7162([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2233b9,_0x2233b9+0x2));_0x252962>=_0xa9c322[_0x2b7162([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x252962-=_0xa9c322[_0x2b7162([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x1dba9e+=_0xa9c322[_0x252962];}return _0x1dba9e;}function _0x389c61(){const _0xea629d=_0x1d3752[_0x2b7162([0x73,0x70,0x6c,0x69,0x74])](_0x2b7162([0x2e]));if(0x3!=_0xea629d[_0x2b7162([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x43083b(_0xea629d[0x1]);function _0x43083b(_0x232b37){const _0x14f159=_0x1f963a(_0x232b37);return _0x14f159&&_0x45617c()?_0x14f159:null;function _0x45617c(){const _0x29bd1d=_0x14f159[_0x2b7162([0x6a,0x74,0x69])],_0x50c75d=window[_0x2b7162([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x29bd1d[_0x2b7162([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x29bd1d[_0x2b7162([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x1e41fe={..._0x14f159,[_0x2b7162([0x6a,0x74,0x69])]:_0x29bd1d[_0x2b7162([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x29bd1d[_0x2b7162([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x1e41fe[_0x2b7162([0x76,0x63])],_0x14c5ef(_0x1e41fe)==_0x50c75d;}}}async function _0x3f5d04(){let _0x1dbb8a=!0x0;try{const _0xeba3ee=_0x1d3752[_0x2b7162([0x73,0x70,0x6c,0x69,0x74])](_0x2b7162([0x2e])),[_0x4d921c,_0x42e06f,_0x150ae2]=_0xeba3ee;return _0x50313d(_0x4d921c),await _0xc7d163(_0x4d921c,_0x42e06f,_0x150ae2),_0x1dbb8a;}catch{return!0x1;}function _0x50313d(_0x142adc){const _0x33ffb1=_0x1f963a(_0x142adc);_0x33ffb1&&_0x33ffb1[_0x2b7162([0x61,0x6c,0x67])]==_0x2b7162([0x45,0x53,0x32,0x35,0x36])||(_0x1dbb8a=!0x1);}async function _0xc7d163(_0xd648cd,_0x48a2ce,_0x560972){const _0x583593=window[_0x2b7162([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x2b7162([0x66,0x72,0x6f,0x6d])](_0x4bb40f(_0x560972),_0x3073c6=>_0x3073c6[_0x2b7162([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x4d59f7=new window[(_0x2b7162([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x2b7162([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0xd648cd+_0x2b7162([0x2e])+_0x48a2ce),_0x4d687d=window[_0x2b7162([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x2b7162([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x4d687d)return;const _0x51fa88=await _0x4d687d[_0x2b7162([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x2b7162([0x6a,0x77,0x6b]),_0x4f2b90,{[_0x2b7162([0x6e,0x61,0x6d,0x65])]:_0x2b7162([0x45,0x43,0x44,0x53,0x41]),[_0x2b7162([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x2b7162([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x2b7162([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x4d687d[_0x2b7162([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x2b7162([0x6e,0x61,0x6d,0x65])]:_0x2b7162([0x45,0x43,0x44,0x53,0x41]),[_0x2b7162([0x68,0x61,0x73,0x68])]:{[_0x2b7162([0x6e,0x61,0x6d,0x65])]:_0x2b7162([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x51fa88,_0x583593,_0x4d59f7)||(_0x1dbb8a=!0x1);}}function _0x1f963a(_0x243795){return _0x243795[_0x2b7162([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x2b7162([0x65,0x79]))?JSON[_0x2b7162([0x70,0x61,0x72,0x73,0x65])](_0x4bb40f(_0x243795)):null;}function _0x4bb40f(_0x57e353){return window[_0x2b7162([0x61,0x74,0x6f,0x62])](_0x57e353[_0x2b7162([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x2b7162([0x2b]))[_0x2b7162([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x2b7162([0x2f])));}function _0x14c5ef(_0x53bacd){let _0x30a208=0x1505;function _0x1095fd(_0x493826){for(let _0x5c9e95=0x0;_0x5c9e95<_0x493826[_0x2b7162([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x5c9e95++){const _0x2ca2a5=_0x493826[_0x2b7162([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x5c9e95);_0x30a208=(_0x30a208<<0x5)+_0x30a208+_0x2ca2a5,_0x30a208&=_0x30a208;}}function _0x1a567a(_0x7a8add){Array[_0x2b7162([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x7a8add)?_0x7a8add[_0x2b7162([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x1a567a):_0x7a8add&&typeof _0x7a8add==_0x2b7162([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x2b7162([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x7a8add)[_0x2b7162([0x73,0x6f,0x72,0x74])]()[_0x2b7162([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x294d81,_0x7d4294])=>{_0x1095fd(_0x294d81),_0x1a567a(_0x7d4294);}):_0x1095fd(window[_0x2b7162([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x7a8add));}return _0x1a567a(_0x53bacd),_0x30a208>>>0x0;}function _0xabeb56(_0x4dfe46){return _0x4dfe46[_0x2b7162([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x2b7162([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x2b7162([0x30]));}function _0x5aa131(_0x2ff730){return _0x2ff730[_0x2b7162([0x73,0x70,0x6c,0x69,0x74])]('')[_0x2b7162([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x2b7162([0x6a,0x6f,0x69,0x6e])]('');}function _0x154817(){}function _0x2b7162(_0x2e334a){return _0x2e334a['map'](_0x449f3e=>String['fromCharCode'](_0x449f3e))['join']('');}_0xa4d44e(await _0x92b177());}(this);}['_initSchema'](){const _0x17c606=this['editor']['model']['schema'];_0x17c606['isRegistered']('imageBlock')&&_0x17c606['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x17c606['isRegistered']('imageInline')&&_0x17c606['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x3c30fd=this['editor'];_0x3c30fd['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x3c30fd['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x36e3c0=>_0x36e3c0['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x4b475e=_0x3c30fd['commands']['get']('replaceImageSource');_0x4b475e&&this['listenTo'](_0x4b475e,'cleanupImage',(_0x4029d9,[_0x248a6d,_0x1da429])=>{_0x248a6d['removeAttribute']('uploadcareImageId',_0x1da429);});}['_initConfig'](){const _0xc61fb=this['editor']['config']['get']('uploadcare.uploader')||{},_0x4fa4bb=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x39ea77(_0x437982['document'],'uc-config',{..._0xc61fb,'pubkey':_0x4fa4bb,'ctx-name':'uploader-'+this['ucContextId'],'sourceList':'','imgOnly':'true','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage'],'externalSourcesEmbedCss':'\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup\x20{\x20padding:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-menu\x20{\x20gap:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-footer\x20{\x20padding-top:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__separator\x20{\x20margin:\x200;\x20}\x0a\x09\x09\x09'}),this['_configElement']['iconHrefResolver']=_0xbed9ca=>{if('closeMax'==_0xbed9ca)return'#uc-icon-arrow-down';},_0x437982['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x39ea77(_0x437982['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader-'+this['ucContextId']}),_0x437982['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x449118=this['editor']['commands']['get']('insertImage');_0x449118&&this['listenTo'](_0x449118,'execute',()=>{const _0x4b537a=this['editor']['model']['document']['selection']['getSelectedElement']();_0x4b537a&&_0x4b537a['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x4b537a);});});const _0x8ba479=this['editor']['commands']['get']('uploadcareImageReplace');_0x8ba479&&this['listenTo'](_0x8ba479,'execute',()=>{const _0x2fa27c=this['editor']['model']['document']['selection']['getSelectedElement']();_0x2fa27c&&_0x2fa27c['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x2fa27c);});});}}class tt extends _0xca6ee3{static get['requires'](){return[o,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x11b396){super(_0x11b396),_0x11b396['config']['define']('uploadcare.uploader.sourceList',[i['Local'],i['URL']]),_0x6ff85b['defineComponents'](_0x6ff85b),this['_defineLocale']();}['_defineLocale'](){const _0x3a4ec7=this['editor']['config']['get']('uploadcare.locale'),_0x129cde=this['editor']['locale']['contentLanguage'];_0x3a4ec7&&_0x6ff85b['defineLocale'](_0x129cde,_0x3a4ec7);}}class ii extends _0x5858f0{constructor(_0x2b2c89){super(_0x2b2c89);const t=_0x2b2c89['t'],_0x276e7a=this['bindTemplate'],_0x1201ed=new _0x38c730();_0x1201ed['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':[_0x1201ed,{'text':_0x276e7a['to']('imageUploadProgress',_0x2d1728=>t('Loading\x20image...')+'\x20('+(_0x2d1728||0x0)+'%)')}]},{'tag':'div','attributes':{'class':['ck-uploadcare-form__skeleton']},'children':[{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'}]},{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'}]}]}]});}}class ti extends _0x5858f0{constructor(_0x319625){super(_0x319625);const t=_0x319625['t'];this['set']('errorType',null);const _0x541f57=new _0x3221aa(_0x319625);_0x541f57['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x541f57['withText']=!0x0,_0x541f57['class']='ck-button-action',_0x541f57['on']('execute',()=>{this['fire']('retry');}),_0x541f57['bind']('isVisible')['to'](this,'errorType',_0x3d3c8b=>'NotFound'!==_0x3d3c8b);const _0x2d130e=new _0x419363();_0x2d130e['content']=_0xa0d92e,_0x2d130e['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x4ba22c=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':[_0x2d130e,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x4ba22c['to']('errorType',_0x202e45=>t('NotFound'!==_0x202e45?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x541f57]},{'tag':'div','attributes':{'class':['ck-uploadcare-form__skeleton']},'children':[{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'}]},{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'}]}]}]});}}class ei extends _0x5858f0{constructor(_0x3f758d,_0x1f66dc){super(_0x3f758d);const _0x325c24=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x1f66dc,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x325c24['to']('imageSrc')}});}}class X extends F{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x5e6c74,_0x493218,_0x5daea4){super(_0x5e6c74),this['_items']=this['createCollection'](),this['_loadingView']=new ii(_0x5e6c74),this['_errorView']=new ti(_0x5e6c74),this['_editingView']=new ei(_0x5e6c74,_0x5daea4),this['_focusableView']=new _0x5858f0(_0x5e6c74),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x493218),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'],_0x1c3d44=>{this['_addUploadcareImageEditorListeners'](_0x1c3d44);});}),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'](_0x581981,_0x3d9458){const _0x582511='uc-cloud-image-editor',_0x3efd95=_0x581981['querySelector'](_0x582511);if(_0x3efd95)return _0x3d9458(_0x3efd95);const _0x1731aa=new MutationObserver(_0x3f5462=>{const _0x2ad43f=_0x3f5462['filter'](_0xe09757=>_0xe09757['target']===_0x581981&&_0xe09757['addedNodes']['length']>0x0&&_0xe09757['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x582511);_0x2ad43f['length']&&(_0x1731aa['disconnect'](),_0x3d9458(_0x2ad43f[0x0]['addedNodes'][0x0]));});_0x1731aa['observe'](_0x581981,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x5376ca){_0x5376ca['addEventListener']('apply',_0x47f488=>{this['fire']('apply',{'imageSrc':_0x47f488['detail']['cdnUrl']});}),_0x5376ca['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class E extends/* #__PURE__ -- @preserve */
25
+ _0x3ee91d(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0xe19d24,_0x543a57,_0x391192){super(),this['_editor']=_0xe19d24,this['_dialog']=_0x543a57,this['_imageElement']=_0x391192,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 _0x45aaa6=this['_imageElement'],_0x4514c4=_0x45aaa6['getAttribute']('uploadcareImageId'),_0x5ca999=_0x45aaa6['getAttribute']('src');if(_0x4514c4)await this['_loadImageInfo'](_0x4514c4,_0x5ca999);else{if(this['_imageCache']['has'](_0x5ca999)){const _0x10dbda=this['_imageCache']['get'](_0x5ca999);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x10dbda['url'],this['imageDimension']=_0x10dbda['dimension'],this['imageId']=_0x10dbda['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x431d45}=this['_editor'],t=_0x431d45['t'],_0x1cc928=new X(_0x431d45,this['imageStatus'],this['_attributes']);_0x1cc928['bind']('status')['to'](this,'imageStatus'),_0x1cc928['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x1cc928['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x1cc928['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x1cc928,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x3d5915,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x1cc928,'position':_0x2146d8['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x1cc928['focus']();},'onHide':()=>{_0x1cc928['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x43828f=>!A(_0x43828f,_0x1cc928['element'])}});}['_loadImageInfo'](_0x4b9f9d,_0x547a3c){return j['getInfo'](_0x4b9f9d,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl')})['then'](_0x179dba=>{const {width:_0x53331d,height:_0x1eeed5}=_0x179dba['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x547a3c,this['imageDimension']={'width':_0x53331d,'height':_0x1eeed5},this['imageId']=_0x4b9f9d;})['catch'](_0x43ec67=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x43ec67['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x1dbcdb,_0x507b81){return this['_getImageAsFile'](_0x1dbcdb)['then'](_0x1ae4c2=>j['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl'),'baseCDN':this['_editor']['config']['get']('uploadcare.uploader.cdnCname'),'signal':_0x507b81['signal'],'file':_0x1ae4c2,'onProgress':_0x298011=>{_0x298011&&_0x298011['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x298011['value']));}}))['then'](_0x400967=>{const {width:_0x319d27,height:_0x73280d}=_0x400967['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x400967['cdnUrl'],this['imageDimension']={'width':_0x319d27,'height':_0x73280d},this['imageId']=_0x400967['uuid'],this['imageUploadProgress']=null;const _0x54190c=_0x1dbcdb['getAttribute']('src');this['_imageCache']['set'](_0x54190c,{'id':_0x400967['uuid'],'url':_0x400967['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x33997f=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x33997f['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x20c2b2,_0x224c28){_0x20c2b2['on']('apply',(_0x118f91,_0x3cd654)=>{this['_replaceImage'](_0x224c28,_0x3cd654['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x20c2b2['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x20c2b2['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x1d1315,_0x4698ee,_0x3c6998){const _0x3f0819=this['_editor'],{width:_0x235b99,height:_0x180d40}=S(_0x4698ee,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x18a346,imageSources:_0x3db382}=C(_0x4698ee,_0x235b99);_0x3f0819['model']['change'](_0x1e8d86=>{if('$graveyard'===_0x1d1315['root']['rootName']){_0x3f0819['execute']('insertImage',{'imageType':_0x1d1315['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x1d1315['getAttributes']()),'uploadcareImageId':_0x3c6998,'src':_0x18a346,'sources':_0x3db382,'width':_0x235b99,'height':_0x180d40}});const _0x2271ef=_0x1d1315['getChildren']();_0x1d1315=_0x3f0819['model']['document']['selection']['getSelectedElement']();for(const _0x2ad9f6 of _0x2271ef)_0x1e8d86['append'](_0x1e8d86['cloneElement'](_0x2ad9f6),_0x1d1315);}else _0x1e8d86['setSelection'](_0x1d1315,'on'),_0x3f0819['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x1d1315['getAttributes']()),'uploadcareImageId':_0x3c6998,'src':_0x18a346,'sources':_0x3db382,'width':_0x235b99,'height':_0x180d40},_0x1d1315);_0x1e8d86['setSelection'](_0x1d1315,'on');});}async['_getImageAsFile'](_0x285173){const _0x378fe6=_0x437982['window'],_0x3c6b2e=_0x437982['document']['location']['href'],_0xfd0764=new _0x378fe6['URL'](_0x285173['getAttribute']('src'),_0x3c6b2e);if('data:'===_0xfd0764['protocol']){const _0xc2073e=_0xfd0764['href']['split'](','),_0x38c8f7=_0xc2073e[0x0]['match'](/:(.*?);/)[0x1],_0x19fef8=_0x38c8f7['split']('/')[0x1],_0x51eede=_0x378fe6['atob'](_0xc2073e[_0xc2073e['length']-0x1]);let _0x499a11=_0x51eede['length'];const _0x11a7a9=new _0x378fe6['Uint8Array'](_0x499a11);for(;_0x499a11--;)_0x11a7a9[_0x499a11]=_0x51eede['charCodeAt'](_0x499a11);return new _0x378fe6['File']([_0x11a7a9],'image.'+_0x19fef8,{'type':_0x38c8f7});}const _0x1a3ae7=_0xfd0764['href']['split']('/'),_0x1b0ccd=_0x1a3ae7[_0x1a3ae7['length']-0x1],_0x13ba88=_0x1b0ccd['split']('.')[0x1];return _0x378fe6['fetch'](_0xfd0764['href'])['then'](_0x4717db=>_0x4717db['clone']()['blob']())['then'](_0xb9a597=>new _0x378fe6['File']([_0xb9a597],_0x1b0ccd,{'type':'image/'+_0x13ba88}));}}class O extends _0x3408de{['imageEditController'];static get['requires'](){return[_0x226fc6];}['_isEditable'];constructor(_0x4e6c53){super(_0x4e6c53),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x5cf129){const _0x26ea4d=G(_0x5cf129);return _0x5b9fb3=>!(!_0x5b9fb3||!_0x5b9fb3['is']('element','imageBlock')&&!_0x5b9fb3['is']('element','imageInline'))&&(!!_0x5b9fb3['hasAttribute']('uploadcareImageId')||!!_0x5b9fb3['hasAttribute']('src')&&_0x26ea4d(_0x5b9fb3['getAttribute']('src')));}(_0x4e6c53['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x130a5c=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x130a5c);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x2234d7=this['editor']['model']['document']['selection']['getSelectedElement']();_0x2234d7&&(_0x2234d7['is']('element','imageBlock')||_0x2234d7['is']('element','imageInline'))&&(this['imageEditController']=new E(this['editor'],this['editor']['plugins']['get'](_0x226fc6),_0x2234d7),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class R extends _0x3408de{['refresh'](){const _0x127b89=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x127b89&&(_0x127b89['is']('element','imageBlock')||_0x127b89['is']('element','imageInline')));}['execute'](_0x3a407f){const _0x3d08e9=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x2c67e7=>{_0x2c67e7['setAttributes'](_0x3a407f,_0x3d08e9),_0x2c67e7['removeAttribute']('srcset',_0x3d08e9),_0x2c67e7['removeAttribute']('sizes',_0x3d08e9);});}}class m extends _0xca6ee3{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[o,_0x578432,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x13f71d}=this;_0x13f71d['commands']['add']('uploadcareImageEdit',new O(_0x13f71d)),_0x13f71d['commands']['add']('uploadcareImageReplace',new R(_0x13f71d));}}class g extends _0xca6ee3{['_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 _0x1e0bd1=this['editor'];_0x1e0bd1['ui']['componentFactory']['add']('uploadcareImageEdit',_0x5cba94=>{const _0x2e63a8=_0x1e0bd1['commands']['get']('uploadcareImageEdit'),_0x188114=new _0x3221aa(_0x5cba94),t=_0x5cba94['t'];return _0x188114['set']({'icon':_0x3d5915,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x188114['bind']('isEnabled')['to'](_0x2e63a8),_0x188114['bind']('isOn')['to'](_0x2e63a8,'isActive'),this['listenTo'](_0x188114,'execute',()=>{_0x1e0bd1['execute']('uploadcareImageEdit'),_0x1e0bd1['editing']['view']['focus']();}),_0x188114;}),this['_initConfig']();}['_initConfig'](){const _0x366c8f=_0x39ea77(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x366c8f),this['listenTo'](this['editor'],'destroy',()=>{_0x366c8f['remove']();});}}class et extends _0xca6ee3{static get['pluginName'](){return'UploadcareImageEdit';}static get['requires'](){return[m,g];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{tt as Uploadcare,w as UploadcareCommand,o as UploadcareEditing,et as UploadcareImageEdit,O as UploadcareImageEditCommand,m as UploadcareImageEditEditing,g as UploadcareImageEditUI,e as UploadcareUI,f as UploadcareUploadAdapter};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ckeditor/ckeditor5-uploadcare",
3
- "version": "0.0.0-nightly-20251228.0",
3
+ "version": "0.0.0-nightly-20251229.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-20251228.0",
27
- "@ckeditor/ckeditor5-icons": "0.0.0-nightly-20251228.0",
28
- "@ckeditor/ckeditor5-image": "0.0.0-nightly-20251228.0",
29
- "@ckeditor/ckeditor5-theme-lark": "0.0.0-nightly-20251228.0",
30
- "@ckeditor/ckeditor5-ui": "0.0.0-nightly-20251228.0",
31
- "@ckeditor/ckeditor5-upload": "0.0.0-nightly-20251228.0",
32
- "@ckeditor/ckeditor5-utils": "0.0.0-nightly-20251228.0",
33
- "ckeditor5": "0.0.0-nightly-20251228.0",
26
+ "@ckeditor/ckeditor5-core": "0.0.0-nightly-20251229.0",
27
+ "@ckeditor/ckeditor5-icons": "0.0.0-nightly-20251229.0",
28
+ "@ckeditor/ckeditor5-image": "0.0.0-nightly-20251229.0",
29
+ "@ckeditor/ckeditor5-theme-lark": "0.0.0-nightly-20251229.0",
30
+ "@ckeditor/ckeditor5-ui": "0.0.0-nightly-20251229.0",
31
+ "@ckeditor/ckeditor5-upload": "0.0.0-nightly-20251229.0",
32
+ "@ckeditor/ckeditor5-utils": "0.0.0-nightly-20251229.0",
33
+ "ckeditor5": "0.0.0-nightly-20251229.0",
34
34
  "@uploadcare/file-uploader": "1.24.5",
35
35
  "@uploadcare/upload-client": "6.14.3"
36
36
  },
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x2805cf=_0x12e0;(function(_0x368549,_0x3ba0be){const _0x82a97c=_0x12e0,_0x32646a=_0x368549();while(!![]){try{const _0x3606dd=parseInt(_0x82a97c(0x132))/0x1+parseInt(_0x82a97c(0x124))/0x2+parseInt(_0x82a97c(0x139))/0x3+-parseInt(_0x82a97c(0x11e))/0x4*(parseInt(_0x82a97c(0x14c))/0x5)+-parseInt(_0x82a97c(0x136))/0x6*(-parseInt(_0x82a97c(0x105))/0x7)+parseInt(_0x82a97c(0x10f))/0x8+parseInt(_0x82a97c(0x143))/0x9*(-parseInt(_0x82a97c(0x131))/0xa);if(_0x3606dd===_0x3ba0be)break;else _0x32646a['push'](_0x32646a['shift']());}catch(_0x4617b5){_0x32646a['push'](_0x32646a['shift']());}}}(_0x8a30,0xd05ea));import{Plugin as _0x33ed41}from'ckeditor5/src/core.js';import{Dialog as _0x5b5c1a}from'ckeditor5/src/ui.js';import{createElement as _0x338c62,global as _0x13f9f9,uid as _0x1c5130}from'ckeditor5/src/utils.js';function _0x8a30(){const _0x16c2df=['for','529418ZGXuQA','view','contentLanguage','_initCtx','uploader-','get','uc-upload-ctx-provider','getAttribute','downcast','_ctxElement','ucContextId','_initConversion','execute','6564830MTYZHH','1059195sLkYJh','\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','listenTo','_configElement','232734GkOwIC','config','getSelectedElement','4842045aOkIeV','imageBlock','commands','replaceImageSource','editing','UploadcareEditing','uploadcareImageId','ctxElement','_initImageProcessingIndicator','locale','45CcReTD','upcast','uc-config','iconHrefResolver','uploadcare.uploader','insertImage','requires','document','map','5lIXBAg','PictureEditing','isRegistered','join','uploadcareImageReplace','extend','selection','editor','uploadcare.pubkey','model','_initConfig','attributeToAttribute','imageInline','configElement','301qieJfp','remove','href','#uc-icon-arrow-down','afterInit','data-uc-image-id','cleanupImage','conversion','elementToAttribute','true','430600sVWWbu','removeAttribute','fromCharCode','destroy','closeMax','add','querySelector','input[uploadcare-file-input]','pluginName','_initSchema','render','isOfficialPlugin','schema','appendChild','once','2095096taNGnE','body','init','uploadcare','isPremiumPlugin'];_0x8a30=function(){return _0x16c2df;};return _0x8a30();}function _0x12e0(_0x59a504,_0x3a2bef){const _0x8a3031=_0x8a30();return _0x12e0=function(_0x12e071,_0x51b13d){_0x12e071=_0x12e071-0xfa;let _0x1380bd=_0x8a3031[_0x12e071];return _0x1380bd;},_0x12e0(_0x59a504,_0x3a2bef);}import{UploadcareCommand as _0x1406f2}from'./uploadcarecommand.js';import{UploadcareUploadAdapter as _0x5f1d6d}from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0x5d855f}from'./utils/editingutils.js';export class UploadcareEditing extends _0x33ed41{[_0x2805cf(0x135)]=null;[_0x2805cf(0x12d)]=null;static get[_0x2805cf(0x117)](){const _0x27e8b4=_0x2805cf;return _0x27e8b4(0x13e);}static get[_0x2805cf(0x149)](){const _0x2db780=_0x2805cf;return[_0x2db780(0x14d),_0x5f1d6d,_0x5b5c1a];}static get[_0x2805cf(0x11a)](){return!0x0;}static get[_0x2805cf(0x122)](){return!0x0;}[_0x2805cf(0x12e)];get[_0x2805cf(0x104)](){const _0x3c8510=_0x2805cf;return this[_0x3c8510(0x135)];}get[_0x2805cf(0x140)](){const _0xc79bd7=_0x2805cf;return this[_0xc79bd7(0x12d)];}constructor(_0x36fdee){const _0x199ed8=_0x2805cf;super(_0x36fdee),this[_0x199ed8(0x12e)]=_0x1c5130();}[_0x2805cf(0x120)](){const _0x4404aa=_0x2805cf,_0xb0fb10=this[_0x4404aa(0xfe)];_0xb0fb10[_0x4404aa(0x13b)][_0x4404aa(0x114)](_0x4404aa(0x121),new _0x1406f2(_0xb0fb10));}[_0x2805cf(0x109)](){const _0xf84d45=_0x2805cf;this[_0xf84d45(0x118)](),this[_0xf84d45(0x12f)](),this[_0xf84d45(0x101)](),this[_0xf84d45(0x127)](),this[_0xf84d45(0x141)](),this[_0xf84d45(0x134)](this[_0xf84d45(0xfe)],_0xf84d45(0x112),()=>{const _0x277a5b=_0xf84d45;this[_0x277a5b(0x135)]&&(this[_0x277a5b(0x135)][_0x277a5b(0x106)](),this[_0x277a5b(0x135)]=null),this[_0x277a5b(0x12d)]&&(this[_0x277a5b(0x12d)][_0x277a5b(0x106)](),this[_0x277a5b(0x12d)]=null);const _0x3b6107=_0x13f9f9[_0x277a5b(0x14a)][_0x277a5b(0x115)](_0x277a5b(0x116));_0x3b6107&&_0x3b6107[_0x277a5b(0x106)]();}),async function(_0x1f02f7){const _0xece4cb=_0xb6f152([0x68,0x67,0x50,0x36,0x38,0x70,0x71,0x63,0x37,0x4f,0x42,0x4a,0x78,0x39,0x75,0x33,0x7a,0x72,0x48,0x61,0x74,0x59,0x55,0x58,0x66,0x30,0x34,0x54,0x64,0x56,0x6b,0x4d,0x46,0x6d,0x77,0x43,0x73,0x35,0x53,0x44,0x41,0x76,0x6a,0x32,0x31,0x69,0x57,0x51,0x47,0x65,0x5a,0x4b,0x4c,0x79,0x52,0x6c,0x45,0x4e,0x6e,0x6f,0x49,0x62]),_0x1368aa=0x535f8c3a,_0x10c681=0x5358f10a^_0x1368aa,_0x5f0c60=window[_0xb6f152([0x44,0x61,0x74,0x65])][_0xb6f152([0x6e,0x6f,0x77])](),_0x4f197f=_0x1f02f7[_0xb6f152([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x1e9665=new window[(_0xb6f152([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x903610=>{_0x4f197f[_0xb6f152([0x6f,0x6e,0x63,0x65])](_0xb6f152([0x72,0x65,0x61,0x64,0x79]),_0x903610);}),_0x35c6f1={[_0xb6f152([0x6b,0x74,0x79])]:_0xb6f152([0x45,0x43]),[_0xb6f152([0x75,0x73,0x65])]:_0xb6f152([0x73,0x69,0x67]),[_0xb6f152([0x63,0x72,0x76])]:_0xb6f152([0x50,0x2d,0x32,0x35,0x36]),[_0xb6f152([0x78])]:_0xb6f152([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]),[_0xb6f152([0x79])]:_0xb6f152([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]),[_0xb6f152([0x61,0x6c,0x67])]:_0xb6f152([0x45,0x53,0x32,0x35,0x36])},_0x53d055=_0x4f197f[_0xb6f152([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0xb6f152([0x67,0x65,0x74])](_0xb6f152([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x1ce7e0(){let _0x43b50d,_0x965daa=null,_0x4d739b=null;try{if(_0x53d055==_0xb6f152([0x47,0x50,0x4c]))return _0xb6f152([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x43b50d=_0xe8846b(),!_0x43b50d)return _0xb6f152([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x43b50d[_0xb6f152([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x4d739b=_0x1f0b08(_0x43b50d[_0xb6f152([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x43b50d[_0xb6f152([0x6a,0x74,0x69])])),await _0x55e0d5()?_0x570696()?_0x5bd3ff()?_0xb6f152([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x2ad732()?(_0x43b50d[_0xb6f152([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0xb6f152([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x965daa=_0xb3ad80(_0xb6f152([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x43b50d[_0xb6f152([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0xb6f152([0x74,0x72,0x69,0x61,0x6c])&&(_0x965daa=_0xb3ad80(_0xb6f152([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0xaaacc9()):_0xb6f152([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0xb6f152([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0xb6f152([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0xb6f152([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x5bd3ff(){const _0x22e845=[_0xb6f152([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0xb6f152([0x74,0x72,0x69,0x61,0x6c])][_0xb6f152([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x43b50d[_0xb6f152([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x5f0c60/0x3e8:0xe10*_0x10c681;return _0x43b50d[_0xb6f152([0x65,0x78,0x70])]<_0x22e845;}function _0x570696(){const _0x410330=_0x43b50d[_0xb6f152([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x410330&&(!!_0x410330[_0xb6f152([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xb6f152([0x2a]))||!!_0x410330[_0xb6f152([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xb6f152([0x55,0x50,0x4c,0x43])));}function _0x2ad732(){const _0x2bbd35=_0x12e0,_0x5a6135=_0x43b50d[_0xb6f152([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x5a6135||0x0==_0x5a6135[_0xb6f152([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x349a0f}=new URL(window[_0xb6f152([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x2bbd35(0x107)]);if(_0x5a6135[_0xb6f152([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x349a0f))return!0x0;const _0x6ece4c=_0x349a0f[_0xb6f152([0x73,0x70,0x6c,0x69,0x74])](_0xb6f152([0x2e]));return _0x5a6135[_0xb6f152([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x34e8b0=>_0x34e8b0[_0xb6f152([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xb6f152([0x2a])))[_0xb6f152([0x6d,0x61,0x70])](_0x4a743f=>_0x4a743f[_0xb6f152([0x73,0x70,0x6c,0x69,0x74])](_0xb6f152([0x2e])))[_0xb6f152([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x1452c8=>_0x1452c8[_0xb6f152([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x6ece4c[_0xb6f152([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0xb6f152([0x6d,0x61,0x70])](_0x2f40ce=>Array(_0x6ece4c[_0xb6f152([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x2f40ce[_0xb6f152([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0xb6f152([0x66,0x69,0x6c,0x6c])](_0x2f40ce[0x0]===_0xb6f152([0x2a])?_0xb6f152([0x2a]):'')[_0xb6f152([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x2f40ce))[_0xb6f152([0x73,0x6f,0x6d,0x65])](_0x225ecb=>_0x6ece4c[_0xb6f152([0x65,0x76,0x65,0x72,0x79])]((_0x18bb3e,_0x59300e)=>_0x225ecb[_0x59300e]===_0x18bb3e||_0x225ecb[_0x59300e]===_0xb6f152([0x2a])));}function _0xaaacc9(){return _0x965daa&&_0x4d739b?new window[(_0xb6f152([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x26d1f1,_0xc216d4)=>{_0x965daa[_0xb6f152([0x74,0x68,0x65,0x6e])](_0x26d1f1,_0xc216d4),_0x4d739b[_0xb6f152([0x74,0x68,0x65,0x6e])](_0x301b1d=>{_0x301b1d!=_0xb6f152([0x56,0x61,0x6c,0x69,0x64])&&_0x26d1f1(_0x301b1d);},_0xc216d4);}):_0x965daa||_0x4d739b||_0xb6f152([0x56,0x61,0x6c,0x69,0x64]);}}function _0x1f0b08(_0x3c9a52,_0x198669){return new window[(_0xb6f152([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xa80402=>{if(_0x13802a())return _0xa80402(_0xb6f152([0x56,0x61,0x6c,0x69,0x64]));_0x117415(),_0x4f197f[_0xb6f152([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0xb6f152([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x28f3dc=!0x1;const _0x1045d4=_0x1c5130();function _0x467425(_0x58a9d6){return!!_0x58a9d6&&(typeof _0x58a9d6===_0xb6f152([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x58a9d6===_0xb6f152([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x58a9d6[_0xb6f152([0x74,0x68,0x65,0x6e])]===_0xb6f152([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x58a9d6[_0xb6f152([0x63,0x61,0x74,0x63,0x68])]===_0xb6f152([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x293e4f(_0x51f6d6){_0x5118cf(_0x51f6d6)[_0xb6f152([0x74,0x68,0x65,0x6e])](_0x7bb183=>{if(!_0x7bb183||_0x7bb183[_0xb6f152([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0xb6f152([0x6f,0x6b]))return _0xb6f152([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x4903e1(_0x436336(_0x1045d4+_0x198669))!=_0x7bb183[_0xb6f152([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0xb6f152([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0xb6f152([0x56,0x61,0x6c,0x69,0x64]);})[_0xb6f152([0x74,0x68,0x65,0x6e])](_0x53c5b8=>(_0x2dc761(),_0x53c5b8),()=>{const _0x21630e=_0x57150d();return null==_0x21630e?(_0x2dc761(),_0xb6f152([0x56,0x61,0x6c,0x69,0x64])):_0xb6f152(_0x5f0c60-_0x21630e>(0x7753083a^_0x1368aa)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0xb6f152([0x74,0x68,0x65,0x6e])](_0xa80402)[_0xb6f152([0x63,0x61,0x74,0x63,0x68])](()=>{_0xa80402(_0xb6f152([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x465a14=0x536962ba^_0x1368aa;function _0x2dc761(){const _0x3c2a92=_0xb6f152([0x6c,0x6c,0x63,0x74,0x2d])+_0x4903e1(_0x436336(_0x3c9a52)),_0x3af862=_0xd3d17c(_0x4903e1(window[_0xb6f152([0x4d,0x61,0x74,0x68])][_0xb6f152([0x63,0x65,0x69,0x6c])](_0x5f0c60/_0x465a14)));window[_0xb6f152([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0xb6f152([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3c2a92,_0x3af862);}function _0x57150d(){const _0x4cfe82=_0xb6f152([0x6c,0x6c,0x63,0x74,0x2d])+_0x4903e1(_0x436336(_0x3c9a52)),_0x22fcb7=window[_0xb6f152([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0xb6f152([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4cfe82);return _0x22fcb7?window[_0xb6f152([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xd3d17c(_0x22fcb7),0x10)*_0x465a14:null;}function _0x5118cf(_0x10377c){return new window[(_0xb6f152([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x161d22,_0x42ab31)=>{_0x10377c[_0xb6f152([0x74,0x68,0x65,0x6e])](_0x161d22,_0x42ab31),window[_0xb6f152([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x42ab31,0x535e58fa^_0x1368aa);});}}_0x4f197f[_0xb6f152([0x6f,0x6e])](_0xb6f152([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x78e9ce,_0x3a2660)=>{if(_0x3a2660[0x0]!=_0x3c9a52)return _0xa80402(_0xb6f152([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x3a2660[0x1]={..._0x3a2660[0x1],[_0xb6f152([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x1045d4};},{[_0xb6f152([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0xb6f152([0x68,0x69,0x67,0x68])}),_0x4f197f[_0xb6f152([0x6f,0x6e])](_0xb6f152([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0xf553a7=>{_0x467425(_0xf553a7[_0xb6f152([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x28f3dc=!0x0,_0x293e4f(_0xf553a7[_0xb6f152([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0xb6f152([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0xb6f152([0x6c,0x6f,0x77])}),_0x1e9665[_0xb6f152([0x74,0x68,0x65,0x6e])](()=>{_0x28f3dc||_0xa80402(_0xb6f152([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x13802a(){return _0x4f197f[_0xb6f152([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0xb6f152([0x76,0x69,0x65,0x77])][_0xb6f152([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0xb6f152([0x61,0x75,0x74,0x6f]);}function _0x117415(){_0x4f197f[_0xb6f152([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0xb6f152([0x76,0x69,0x65,0x77])][_0xb6f152([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0xb6f152([0x61,0x75,0x74,0x6f]);}}function _0xb3ad80(_0x61b25b){const _0x3773df=[new window[(_0xb6f152([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x598b16=>setTimeout(_0x598b16,0x5356b2f6^_0x1368aa)),_0x1e9665[_0xb6f152([0x74,0x68,0x65,0x6e])](()=>new window[(_0xb6f152([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x42f8cd=>{let _0x317375=0x0;_0x4f197f[_0xb6f152([0x6d,0x6f,0x64,0x65,0x6c])][_0xb6f152([0x6f,0x6e])](_0xb6f152([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x19ec5,_0x1895fc)=>{_0x1895fc[0x0][_0xb6f152([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x317375++,_0x317375==(0x535f89d2^_0x1368aa)&&(_0x42f8cd(),_0x19ec5[_0xb6f152([0x6f,0x66,0x66])]());});}))];return window[_0xb6f152([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0xb6f152([0x72,0x61,0x63,0x65])](_0x3773df)[_0xb6f152([0x74,0x68,0x65,0x6e])](()=>_0x61b25b);}async function _0xb8cdcd(){await _0x1e9665,_0x4f197f[_0xb6f152([0x6d,0x6f,0x64,0x65,0x6c])][_0xb6f152([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x179ff0,_0x4f197f[_0xb6f152([0x6d,0x6f,0x64,0x65,0x6c])][_0xb6f152([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x179ff0,_0x4f197f[_0xb6f152([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0xb6f152([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x240fff(_0x2c9206){const _0x4a2fbd=_0x32be60();_0x4f197f[_0x4a2fbd]=_0xb6f152([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x2c9206,_0x2c9206!=_0xb6f152([0x56,0x61,0x6c,0x69,0x64])&&_0xb8cdcd();}function _0x32be60(){const _0x1b5275=window[_0xb6f152([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0xb6f152([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0xb6f152([0x6e,0x6f,0x77])]())[_0xb6f152([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0xb6f152([0x2e]),'');let _0x2943f3=_0xb6f152([0x68]);for(let _0x3d7e07=0x0;_0x3d7e07<_0x1b5275[_0xb6f152([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3d7e07+=0x2){let _0x2570f7=window[_0xb6f152([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1b5275[_0xb6f152([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3d7e07,_0x3d7e07+0x2));_0x2570f7>=_0xece4cb[_0xb6f152([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x2570f7-=_0xece4cb[_0xb6f152([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x2943f3+=_0xece4cb[_0x2570f7];}return _0x2943f3;}function _0xe8846b(){const _0x50732b=_0x53d055[_0xb6f152([0x73,0x70,0x6c,0x69,0x74])](_0xb6f152([0x2e]));if(0x3!=_0x50732b[_0xb6f152([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x48b833(_0x50732b[0x1]);function _0x48b833(_0x3e6bf5){const _0x568335=_0x486bd8(_0x3e6bf5);return _0x568335&&_0x100413()?_0x568335:null;function _0x100413(){const _0x8fe65=_0x568335[_0xb6f152([0x6a,0x74,0x69])],_0x2bd140=window[_0xb6f152([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x8fe65[_0xb6f152([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x8fe65[_0xb6f152([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x1b8d70={..._0x568335,[_0xb6f152([0x6a,0x74,0x69])]:_0x8fe65[_0xb6f152([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x8fe65[_0xb6f152([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x1b8d70[_0xb6f152([0x76,0x63])],_0x436336(_0x1b8d70)==_0x2bd140;}}}async function _0x55e0d5(){let _0x199cb4=!0x0;try{const _0x19f5d8=_0x53d055[_0xb6f152([0x73,0x70,0x6c,0x69,0x74])](_0xb6f152([0x2e])),[_0x9a4ab,_0xa831d5,_0x9d44c1]=_0x19f5d8;return _0x3b187a(_0x9a4ab),await _0x2a1074(_0x9a4ab,_0xa831d5,_0x9d44c1),_0x199cb4;}catch{return!0x1;}function _0x3b187a(_0x44511f){const _0x321538=_0x486bd8(_0x44511f);_0x321538&&_0x321538[_0xb6f152([0x61,0x6c,0x67])]==_0xb6f152([0x45,0x53,0x32,0x35,0x36])||(_0x199cb4=!0x1);}async function _0x2a1074(_0x26ad8f,_0x1aaaed,_0x24620b){const _0x2274ab=window[_0xb6f152([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0xb6f152([0x66,0x72,0x6f,0x6d])](_0x1313d7(_0x24620b),_0x580a14=>_0x580a14[_0xb6f152([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x13f12a=new window[(_0xb6f152([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0xb6f152([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x26ad8f+_0xb6f152([0x2e])+_0x1aaaed),_0x279f90=window[_0xb6f152([0x63,0x72,0x79,0x70,0x74,0x6f])][_0xb6f152([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x279f90)return;const _0x3e5b8a=await _0x279f90[_0xb6f152([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0xb6f152([0x6a,0x77,0x6b]),_0x35c6f1,{[_0xb6f152([0x6e,0x61,0x6d,0x65])]:_0xb6f152([0x45,0x43,0x44,0x53,0x41]),[_0xb6f152([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0xb6f152([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0xb6f152([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x279f90[_0xb6f152([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0xb6f152([0x6e,0x61,0x6d,0x65])]:_0xb6f152([0x45,0x43,0x44,0x53,0x41]),[_0xb6f152([0x68,0x61,0x73,0x68])]:{[_0xb6f152([0x6e,0x61,0x6d,0x65])]:_0xb6f152([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x3e5b8a,_0x2274ab,_0x13f12a)||(_0x199cb4=!0x1);}}function _0x486bd8(_0x5b378a){return _0x5b378a[_0xb6f152([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0xb6f152([0x65,0x79]))?JSON[_0xb6f152([0x70,0x61,0x72,0x73,0x65])](_0x1313d7(_0x5b378a)):null;}function _0x1313d7(_0x34abfe){return window[_0xb6f152([0x61,0x74,0x6f,0x62])](_0x34abfe[_0xb6f152([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0xb6f152([0x2b]))[_0xb6f152([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0xb6f152([0x2f])));}function _0x436336(_0x3e3ad2){let _0x35de09=0x1505;function _0x521a32(_0x5dd978){for(let _0x436006=0x0;_0x436006<_0x5dd978[_0xb6f152([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x436006++){const _0x24bbe5=_0x5dd978[_0xb6f152([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x436006);_0x35de09=(_0x35de09<<0x5)+_0x35de09+_0x24bbe5,_0x35de09&=_0x35de09;}}function _0x7a6beb(_0x5d3d36){Array[_0xb6f152([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x5d3d36)?_0x5d3d36[_0xb6f152([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x7a6beb):_0x5d3d36&&typeof _0x5d3d36==_0xb6f152([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0xb6f152([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x5d3d36)[_0xb6f152([0x73,0x6f,0x72,0x74])]()[_0xb6f152([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0xf4cc59,_0x579e58])=>{_0x521a32(_0xf4cc59),_0x7a6beb(_0x579e58);}):_0x521a32(window[_0xb6f152([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x5d3d36));}return _0x7a6beb(_0x3e3ad2),_0x35de09>>>0x0;}function _0x4903e1(_0x2d71aa){return _0x2d71aa[_0xb6f152([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0xb6f152([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0xb6f152([0x30]));}function _0xd3d17c(_0xecae98){return _0xecae98[_0xb6f152([0x73,0x70,0x6c,0x69,0x74])]('')[_0xb6f152([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0xb6f152([0x6a,0x6f,0x69,0x6e])]('');}function _0x179ff0(){}function _0xb6f152(_0x16b9f3){const _0x5dacf8=_0x12e0;return _0x16b9f3[_0x5dacf8(0x14b)](_0x38e9a7=>String[_0x5dacf8(0x111)](_0x38e9a7))[_0x5dacf8(0xfa)]('');}_0x240fff(await _0x1ce7e0());}(this);}[_0x2805cf(0x118)](){const _0x3b6803=_0x2805cf,_0x2c4154=this[_0x3b6803(0xfe)][_0x3b6803(0x100)][_0x3b6803(0x11b)];_0x2c4154[_0x3b6803(0x14e)](_0x3b6803(0x13a))&&_0x2c4154[_0x3b6803(0xfc)](_0x3b6803(0x13a),{'allowAttributes':[_0x3b6803(0x13f)]}),_0x2c4154[_0x3b6803(0x14e)](_0x3b6803(0x103))&&_0x2c4154[_0x3b6803(0xfc)](_0x3b6803(0x103),{'allowAttributes':[_0x3b6803(0x13f)]});}[_0x2805cf(0x12f)](){const _0x53f06f=_0x2805cf,_0x25329d=this[_0x53f06f(0xfe)];_0x25329d[_0x53f06f(0x10c)][_0x53f06f(0x123)](_0x53f06f(0x12c))[_0x53f06f(0x102)]({'model':_0x53f06f(0x13f),'view':_0x53f06f(0x10a)}),_0x25329d[_0x53f06f(0x10c)][_0x53f06f(0x123)](_0x53f06f(0x144))[_0x53f06f(0x10d)]({'model':{'key':_0x53f06f(0x13f),'value':_0x2f894e=>_0x2f894e[_0x53f06f(0x12b)](_0x53f06f(0x10a))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x1fab51=_0x25329d[_0x53f06f(0x13b)][_0x53f06f(0x129)](_0x53f06f(0x13c));_0x1fab51&&this[_0x53f06f(0x134)](_0x1fab51,_0x53f06f(0x10b),(_0x372207,[_0x54711f,_0x5be622])=>{const _0x10711f=_0x53f06f;_0x54711f[_0x10711f(0x110)](_0x10711f(0x13f),_0x5be622);});}[_0x2805cf(0x101)](){const _0xcf7d97=_0x2805cf,_0x212fd4=this[_0xcf7d97(0xfe)][_0xcf7d97(0x137)][_0xcf7d97(0x129)](_0xcf7d97(0x147))||{},_0x420087=this[_0xcf7d97(0xfe)][_0xcf7d97(0x137)][_0xcf7d97(0x129)](_0xcf7d97(0xff))||'';this[_0xcf7d97(0x135)]=_0x338c62(_0x13f9f9[_0xcf7d97(0x14a)],_0xcf7d97(0x145),{..._0x212fd4,'pubkey':_0x420087,'ctx-name':_0xcf7d97(0x128)+this[_0xcf7d97(0x12e)],'sourceList':'','imgOnly':_0xcf7d97(0x10e),'removeCopyright':_0xcf7d97(0x10e),'localeName':this[_0xcf7d97(0xfe)][_0xcf7d97(0x142)][_0xcf7d97(0x126)],'externalSourcesEmbedCss':_0xcf7d97(0x133)}),this[_0xcf7d97(0x135)][_0xcf7d97(0x146)]=_0x528f9c=>{const _0x4c72a0=_0xcf7d97;if(_0x4c72a0(0x113)==_0x528f9c)return _0x4c72a0(0x108);},_0x13f9f9[_0xcf7d97(0x14a)][_0xcf7d97(0x11f)][_0xcf7d97(0x11c)](this[_0xcf7d97(0x135)]);}[_0x2805cf(0x127)](){const _0x54af42=_0x2805cf;this[_0x54af42(0x12d)]=_0x338c62(_0x13f9f9[_0x54af42(0x14a)],_0x54af42(0x12a),{'ctx-name':_0x54af42(0x128)+this[_0x54af42(0x12e)]}),_0x13f9f9[_0x54af42(0x14a)][_0x54af42(0x11f)][_0x54af42(0x11c)](this[_0x54af42(0x12d)]);}[_0x2805cf(0x141)](){const _0x19f456=_0x2805cf,_0x4e2ff5=this[_0x19f456(0xfe)][_0x19f456(0x13b)][_0x19f456(0x129)](_0x19f456(0x148));_0x4e2ff5&&this[_0x19f456(0x134)](_0x4e2ff5,_0x19f456(0x130),()=>{const _0xf2606d=_0x19f456,_0x53252e=this[_0xf2606d(0xfe)][_0xf2606d(0x100)][_0xf2606d(0x14a)][_0xf2606d(0xfd)][_0xf2606d(0x138)]();_0x53252e&&_0x53252e[_0xf2606d(0x12b)](_0xf2606d(0x13f))&&this[_0xf2606d(0xfe)][_0xf2606d(0x13d)][_0xf2606d(0x125)][_0xf2606d(0x11d)](_0xf2606d(0x119),()=>{const _0x565125=_0xf2606d;_0x5d855f(this[_0x565125(0xfe)],_0x53252e);});});const _0x25e846=this[_0x19f456(0xfe)][_0x19f456(0x13b)][_0x19f456(0x129)](_0x19f456(0xfb));_0x25e846&&this[_0x19f456(0x134)](_0x25e846,_0x19f456(0x130),()=>{const _0x58bf85=_0x19f456,_0x28bc6e=this[_0x58bf85(0xfe)][_0x58bf85(0x100)][_0x58bf85(0x14a)][_0x58bf85(0xfd)][_0x58bf85(0x138)]();_0x28bc6e&&_0x28bc6e[_0x58bf85(0x12b)](_0x58bf85(0x13f))&&this[_0x58bf85(0xfe)][_0x58bf85(0x13d)][_0x58bf85(0x125)][_0x58bf85(0x11d)](_0x58bf85(0x119),()=>{const _0x29b6ec=_0x58bf85;_0x5d855f(this[_0x29b6ec(0xfe)],_0x28bc6e);});});}}
23
+ const _0x2a8722=_0x31ff;(function(_0x174a1a,_0x10b1bc){const _0x2f5da0=_0x31ff,_0x31b9d9=_0x174a1a();while(!![]){try{const _0x11e9ab=parseInt(_0x2f5da0(0xa7))/0x1*(-parseInt(_0x2f5da0(0xd1))/0x2)+parseInt(_0x2f5da0(0xa2))/0x3+-parseInt(_0x2f5da0(0x99))/0x4+parseInt(_0x2f5da0(0x98))/0x5+parseInt(_0x2f5da0(0xa6))/0x6+parseInt(_0x2f5da0(0xd7))/0x7*(-parseInt(_0x2f5da0(0xd6))/0x8)+-parseInt(_0x2f5da0(0xd9))/0x9*(-parseInt(_0x2f5da0(0xaf))/0xa);if(_0x11e9ab===_0x10b1bc)break;else _0x31b9d9['push'](_0x31b9d9['shift']());}catch(_0x2c272c){_0x31b9d9['push'](_0x31b9d9['shift']());}}}(_0x1b54,0x5dd5f));import{Plugin as _0x228d9}from'ckeditor5/src/core.js';import{Dialog as _0x3a49a0}from'ckeditor5/src/ui.js';import{createElement as _0x5ad123,global as _0x2fc513,uid as _0x370fff}from'ckeditor5/src/utils.js';import{UploadcareCommand as _0x482e1d}from'./uploadcarecommand.js';import{UploadcareUploadAdapter as _0x3c3759}from'./uploadcareuploadadapter.js';function _0x31ff(_0x2df9d0,_0xc1a558){const _0x1b541d=_0x1b54();return _0x31ff=function(_0x31ff83,_0xcaf5dc){_0x31ff83=_0x31ff83-0x96;let _0x187ce9=_0x1b541d[_0x31ff83];return _0x187ce9;},_0x31ff(_0x2df9d0,_0xc1a558);}function _0x1b54(){const _0x4b5bb5=['632KcuxFu','add','destroy','configElement','isOfficialPlugin','_initConversion','listenTo','fromCharCode','1874450dneuah','join','querySelector','_ctxElement','upcast','href','requires','once','closeMax','body','_configElement','uc-upload-ctx-provider','_initConfig','imageInline','uploader-','document','_initSchema','render','input[uploadcare-file-input]','data-uc-image-id','removeAttribute','uploadcareImageReplace','remove','view','schema','_initCtx','map','editor','replaceImageSource','conversion','insertImage','getSelectedElement','getAttribute','commands','1236MLUFZw','appendChild','uploadcareImageId','extend','true','287288PlVVol','7hrgtKw','\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','9cBtQdy','_initImageProcessingIndicator','PictureEditing','#uc-icon-arrow-down','uploadcare.pubkey','uc-config','init','imageBlock','contentLanguage','execute','attributeToAttribute','uploadcare','UploadcareEditing','for','iconHrefResolver','editing','downcast','selection','config','ucContextId','2473465WHLdLs','1995700sBwKEc','isRegistered','locale','elementToAttribute','isPremiumPlugin','pluginName','get','uploadcare.uploader','afterInit','1471506NxSLYc','ctxElement','cleanupImage','model','822738sbJLJC'];_0x1b54=function(){return _0x4b5bb5;};return _0x1b54();}import{showImageProcessingIndicator as _0x44e825}from'./utils/editingutils.js';export class UploadcareEditing extends _0x228d9{[_0x2a8722(0xb9)]=null;[_0x2a8722(0xb2)]=null;static get[_0x2a8722(0x9e)](){const _0x2252a6=_0x2a8722;return _0x2252a6(0xe5);}static get[_0x2a8722(0xb5)](){const _0x4cd723=_0x2a8722;return[_0x4cd723(0xdb),_0x3c3759,_0x3a49a0];}static get[_0x2a8722(0xab)](){return!0x0;}static get[_0x2a8722(0x9d)](){return!0x0;}[_0x2a8722(0x97)];get[_0x2a8722(0xaa)](){const _0x4ab894=_0x2a8722;return this[_0x4ab894(0xb9)];}get[_0x2a8722(0xa3)](){const _0x15bd48=_0x2a8722;return this[_0x15bd48(0xb2)];}constructor(_0x1ae9ce){const _0x4014da=_0x2a8722;super(_0x1ae9ce),this[_0x4014da(0x97)]=_0x370fff();}[_0x2a8722(0xdf)](){const _0x264f27=_0x2a8722,_0x23d0f0=this[_0x264f27(0xca)];_0x23d0f0[_0x264f27(0xd0)][_0x264f27(0xa8)](_0x264f27(0xe4),new _0x482e1d(_0x23d0f0));}[_0x2a8722(0xa1)](){const _0x23e71b=_0x2a8722;this[_0x23e71b(0xbf)](),this[_0x23e71b(0xac)](),this[_0x23e71b(0xbb)](),this[_0x23e71b(0xc8)](),this[_0x23e71b(0xda)](),this[_0x23e71b(0xad)](this[_0x23e71b(0xca)],_0x23e71b(0xa9),()=>{const _0x4d6b4c=_0x23e71b;this[_0x4d6b4c(0xb9)]&&(this[_0x4d6b4c(0xb9)][_0x4d6b4c(0xc5)](),this[_0x4d6b4c(0xb9)]=null),this[_0x4d6b4c(0xb2)]&&(this[_0x4d6b4c(0xb2)][_0x4d6b4c(0xc5)](),this[_0x4d6b4c(0xb2)]=null);const _0x47d9db=_0x2fc513[_0x4d6b4c(0xbe)][_0x4d6b4c(0xb1)](_0x4d6b4c(0xc1));_0x47d9db&&_0x47d9db[_0x4d6b4c(0xc5)]();}),async function(_0x49946f){const _0x23b62e=_0x139f47([0x68,0x67,0x50,0x36,0x38,0x70,0x71,0x63,0x37,0x4f,0x42,0x4a,0x78,0x39,0x75,0x33,0x7a,0x72,0x48,0x61,0x74,0x59,0x55,0x58,0x66,0x30,0x34,0x54,0x64,0x56,0x6b,0x4d,0x46,0x6d,0x77,0x43,0x73,0x35,0x53,0x44,0x41,0x76,0x6a,0x32,0x31,0x69,0x57,0x51,0x47,0x65,0x5a,0x4b,0x4c,0x79,0x52,0x6c,0x45,0x4e,0x6e,0x6f,0x49,0x62]),_0xd52bf9=0x535f8c3a,_0x25d6e9=0x5358f172^_0xd52bf9,_0x564cfc=window[_0x139f47([0x44,0x61,0x74,0x65])][_0x139f47([0x6e,0x6f,0x77])](),_0x16bc14=_0x49946f[_0x139f47([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x2be2d4=new window[(_0x139f47([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x19cda5=>{_0x16bc14[_0x139f47([0x6f,0x6e,0x63,0x65])](_0x139f47([0x72,0x65,0x61,0x64,0x79]),_0x19cda5);}),_0x12a1d5={[_0x139f47([0x6b,0x74,0x79])]:_0x139f47([0x45,0x43]),[_0x139f47([0x75,0x73,0x65])]:_0x139f47([0x73,0x69,0x67]),[_0x139f47([0x63,0x72,0x76])]:_0x139f47([0x50,0x2d,0x32,0x35,0x36]),[_0x139f47([0x78])]:_0x139f47([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]),[_0x139f47([0x79])]:_0x139f47([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]),[_0x139f47([0x61,0x6c,0x67])]:_0x139f47([0x45,0x53,0x32,0x35,0x36])},_0x43c384=_0x16bc14[_0x139f47([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x139f47([0x67,0x65,0x74])](_0x139f47([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x28837f(){let _0x42b418,_0xe3d349=null,_0x3b8262=null;try{if(_0x43c384==_0x139f47([0x47,0x50,0x4c]))return _0x139f47([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x42b418=_0x553b0f(),!_0x42b418)return _0x139f47([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x42b418[_0x139f47([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x3b8262=_0x9a63c4(_0x42b418[_0x139f47([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x42b418[_0x139f47([0x6a,0x74,0x69])])),await _0x1399c3()?_0xe06dd6()?_0x1d15e5()?_0x139f47([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x24ec6e()?(_0x42b418[_0x139f47([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x139f47([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0xe3d349=_0x2c8ff5(_0x139f47([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x42b418[_0x139f47([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x139f47([0x74,0x72,0x69,0x61,0x6c])&&(_0xe3d349=_0x2c8ff5(_0x139f47([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x18fd3d()):_0x139f47([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x139f47([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x139f47([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x139f47([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x1d15e5(){const _0x2b17f2=[_0x139f47([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x139f47([0x74,0x72,0x69,0x61,0x6c])][_0x139f47([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x42b418[_0x139f47([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x564cfc/0x3e8:0xe10*_0x25d6e9;return _0x42b418[_0x139f47([0x65,0x78,0x70])]<_0x2b17f2;}function _0xe06dd6(){const _0x4e0927=_0x42b418[_0x139f47([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x4e0927&&(!!_0x4e0927[_0x139f47([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x139f47([0x2a]))||!!_0x4e0927[_0x139f47([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x139f47([0x55,0x50,0x4c,0x43])));}function _0x24ec6e(){const _0x1bfe48=_0x31ff,_0x2549f9=_0x42b418[_0x139f47([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x2549f9||0x0==_0x2549f9[_0x139f47([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x54aca6}=new URL(window[_0x139f47([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x1bfe48(0xb4)]);if(_0x2549f9[_0x139f47([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x54aca6))return!0x0;const _0x515888=_0x54aca6[_0x139f47([0x73,0x70,0x6c,0x69,0x74])](_0x139f47([0x2e]));return _0x2549f9[_0x139f47([0x66,0x69,0x6c,0x74,0x65,0x72])](_0xb08259=>_0xb08259[_0x139f47([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x139f47([0x2a])))[_0x139f47([0x6d,0x61,0x70])](_0x38d133=>_0x38d133[_0x139f47([0x73,0x70,0x6c,0x69,0x74])](_0x139f47([0x2e])))[_0x139f47([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x463d16=>_0x463d16[_0x139f47([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x515888[_0x139f47([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x139f47([0x6d,0x61,0x70])](_0x5dfaeb=>Array(_0x515888[_0x139f47([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x5dfaeb[_0x139f47([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x139f47([0x66,0x69,0x6c,0x6c])](_0x5dfaeb[0x0]===_0x139f47([0x2a])?_0x139f47([0x2a]):'')[_0x139f47([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x5dfaeb))[_0x139f47([0x73,0x6f,0x6d,0x65])](_0x3c838e=>_0x515888[_0x139f47([0x65,0x76,0x65,0x72,0x79])]((_0x4b81d4,_0x35d53c)=>_0x3c838e[_0x35d53c]===_0x4b81d4||_0x3c838e[_0x35d53c]===_0x139f47([0x2a])));}function _0x18fd3d(){return _0xe3d349&&_0x3b8262?new window[(_0x139f47([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4d3fa9,_0x5707b5)=>{_0xe3d349[_0x139f47([0x74,0x68,0x65,0x6e])](_0x4d3fa9,_0x5707b5),_0x3b8262[_0x139f47([0x74,0x68,0x65,0x6e])](_0xf6ab9=>{_0xf6ab9!=_0x139f47([0x56,0x61,0x6c,0x69,0x64])&&_0x4d3fa9(_0xf6ab9);},_0x5707b5);}):_0xe3d349||_0x3b8262||_0x139f47([0x56,0x61,0x6c,0x69,0x64]);}}function _0x9a63c4(_0x5a5116,_0x34d5a5){return new window[(_0x139f47([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5c3732=>{if(_0x17b127())return _0x5c3732(_0x139f47([0x56,0x61,0x6c,0x69,0x64]));_0x5ad6dc(),_0x16bc14[_0x139f47([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x139f47([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x418744=!0x1;const _0x5d2f18=_0x370fff();function _0x26fd91(_0x47b429){return!!_0x47b429&&(typeof _0x47b429===_0x139f47([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x47b429===_0x139f47([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x47b429[_0x139f47([0x74,0x68,0x65,0x6e])]===_0x139f47([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x47b429[_0x139f47([0x63,0x61,0x74,0x63,0x68])]===_0x139f47([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x46440f(_0x206454){_0x3cd096(_0x206454)[_0x139f47([0x74,0x68,0x65,0x6e])](_0x3cd370=>{if(!_0x3cd370||_0x3cd370[_0x139f47([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x139f47([0x6f,0x6b]))return _0x139f47([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x237113(_0x5176fe(_0x5d2f18+_0x34d5a5))!=_0x3cd370[_0x139f47([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x139f47([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x139f47([0x56,0x61,0x6c,0x69,0x64]);})[_0x139f47([0x74,0x68,0x65,0x6e])](_0x410311=>(_0x29682b(),_0x410311),()=>{const _0x240a10=_0x5f7d56();return null==_0x240a10?(_0x29682b(),_0x139f47([0x56,0x61,0x6c,0x69,0x64])):_0x139f47(_0x564cfc-_0x240a10>(0x7753083a^_0xd52bf9)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x139f47([0x74,0x68,0x65,0x6e])](_0x5c3732)[_0x139f47([0x63,0x61,0x74,0x63,0x68])](()=>{_0x5c3732(_0x139f47([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x1d3c0c=0x536962ba^_0xd52bf9;function _0x29682b(){const _0x305510=_0x139f47([0x6c,0x6c,0x63,0x74,0x2d])+_0x237113(_0x5176fe(_0x5a5116)),_0x212893=_0x14fe39(_0x237113(window[_0x139f47([0x4d,0x61,0x74,0x68])][_0x139f47([0x63,0x65,0x69,0x6c])](_0x564cfc/_0x1d3c0c)));window[_0x139f47([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x139f47([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x305510,_0x212893);}function _0x5f7d56(){const _0x4aaa54=_0x139f47([0x6c,0x6c,0x63,0x74,0x2d])+_0x237113(_0x5176fe(_0x5a5116)),_0x215cf=window[_0x139f47([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x139f47([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4aaa54);return _0x215cf?window[_0x139f47([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x14fe39(_0x215cf),0x10)*_0x1d3c0c:null;}function _0x3cd096(_0x1c6b03){return new window[(_0x139f47([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x57ae61,_0x1cc9e2)=>{_0x1c6b03[_0x139f47([0x74,0x68,0x65,0x6e])](_0x57ae61,_0x1cc9e2),window[_0x139f47([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x1cc9e2,0x535e58fa^_0xd52bf9);});}}_0x16bc14[_0x139f47([0x6f,0x6e])](_0x139f47([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x25efb4,_0x36e505)=>{if(_0x36e505[0x0]!=_0x5a5116)return _0x5c3732(_0x139f47([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x36e505[0x1]={..._0x36e505[0x1],[_0x139f47([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x5d2f18};},{[_0x139f47([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x139f47([0x68,0x69,0x67,0x68])}),_0x16bc14[_0x139f47([0x6f,0x6e])](_0x139f47([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x2a8857=>{_0x26fd91(_0x2a8857[_0x139f47([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x418744=!0x0,_0x46440f(_0x2a8857[_0x139f47([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x139f47([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x139f47([0x6c,0x6f,0x77])}),_0x2be2d4[_0x139f47([0x74,0x68,0x65,0x6e])](()=>{_0x418744||_0x5c3732(_0x139f47([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x17b127(){return _0x16bc14[_0x139f47([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x139f47([0x76,0x69,0x65,0x77])][_0x139f47([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x139f47([0x61,0x75,0x74,0x6f]);}function _0x5ad6dc(){_0x16bc14[_0x139f47([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x139f47([0x76,0x69,0x65,0x77])][_0x139f47([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x139f47([0x61,0x75,0x74,0x6f]);}}function _0x2c8ff5(_0x53534b){const _0x3ccce4=[new window[(_0x139f47([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x26fd1e=>setTimeout(_0x26fd1e,0x5356b2f6^_0xd52bf9)),_0x2be2d4[_0x139f47([0x74,0x68,0x65,0x6e])](()=>new window[(_0x139f47([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4d7805=>{let _0x1921e6=0x0;_0x16bc14[_0x139f47([0x6d,0x6f,0x64,0x65,0x6c])][_0x139f47([0x6f,0x6e])](_0x139f47([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x524c40,_0x396940)=>{_0x396940[0x0][_0x139f47([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x1921e6++,_0x1921e6==(0x535f89d2^_0xd52bf9)&&(_0x4d7805(),_0x524c40[_0x139f47([0x6f,0x66,0x66])]());});}))];return window[_0x139f47([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x139f47([0x72,0x61,0x63,0x65])](_0x3ccce4)[_0x139f47([0x74,0x68,0x65,0x6e])](()=>_0x53534b);}async function _0x326101(){await _0x2be2d4,_0x16bc14[_0x139f47([0x6d,0x6f,0x64,0x65,0x6c])][_0x139f47([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x37cc56,_0x16bc14[_0x139f47([0x6d,0x6f,0x64,0x65,0x6c])][_0x139f47([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x37cc56,_0x16bc14[_0x139f47([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x139f47([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x230e17(_0xa86dbe){const _0x111c17=_0x3ddfdf();_0x16bc14[_0x111c17]=_0x139f47([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0xa86dbe,_0xa86dbe!=_0x139f47([0x56,0x61,0x6c,0x69,0x64])&&_0x326101();}function _0x3ddfdf(){const _0x419f5e=window[_0x139f47([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x139f47([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x139f47([0x6e,0x6f,0x77])]())[_0x139f47([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x139f47([0x2e]),'');let _0x5e2f64=_0x139f47([0x68]);for(let _0x2c2e14=0x0;_0x2c2e14<_0x419f5e[_0x139f47([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2c2e14+=0x2){let _0x3348d6=window[_0x139f47([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x419f5e[_0x139f47([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2c2e14,_0x2c2e14+0x2));_0x3348d6>=_0x23b62e[_0x139f47([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x3348d6-=_0x23b62e[_0x139f47([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x5e2f64+=_0x23b62e[_0x3348d6];}return _0x5e2f64;}function _0x553b0f(){const _0x12a947=_0x43c384[_0x139f47([0x73,0x70,0x6c,0x69,0x74])](_0x139f47([0x2e]));if(0x3!=_0x12a947[_0x139f47([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x2b103f(_0x12a947[0x1]);function _0x2b103f(_0x39bd4c){const _0xe2591=_0x1ef025(_0x39bd4c);return _0xe2591&&_0x2b8f96()?_0xe2591:null;function _0x2b8f96(){const _0x5a108f=_0xe2591[_0x139f47([0x6a,0x74,0x69])],_0x84a22e=window[_0x139f47([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5a108f[_0x139f47([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x5a108f[_0x139f47([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x4b27d7={..._0xe2591,[_0x139f47([0x6a,0x74,0x69])]:_0x5a108f[_0x139f47([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x5a108f[_0x139f47([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x4b27d7[_0x139f47([0x76,0x63])],_0x5176fe(_0x4b27d7)==_0x84a22e;}}}async function _0x1399c3(){let _0x4879c1=!0x0;try{const _0x14f25f=_0x43c384[_0x139f47([0x73,0x70,0x6c,0x69,0x74])](_0x139f47([0x2e])),[_0x1867aa,_0x4e67ba,_0x4d6612]=_0x14f25f;return _0x21945a(_0x1867aa),await _0x1dab3e(_0x1867aa,_0x4e67ba,_0x4d6612),_0x4879c1;}catch{return!0x1;}function _0x21945a(_0x1f446c){const _0x92317c=_0x1ef025(_0x1f446c);_0x92317c&&_0x92317c[_0x139f47([0x61,0x6c,0x67])]==_0x139f47([0x45,0x53,0x32,0x35,0x36])||(_0x4879c1=!0x1);}async function _0x1dab3e(_0x2132f7,_0x3cacfe,_0x2fba04){const _0x9e255a=window[_0x139f47([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x139f47([0x66,0x72,0x6f,0x6d])](_0x22379a(_0x2fba04),_0x1229ca=>_0x1229ca[_0x139f47([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x3ba6df=new window[(_0x139f47([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x139f47([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x2132f7+_0x139f47([0x2e])+_0x3cacfe),_0x654a52=window[_0x139f47([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x139f47([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x654a52)return;const _0x5825e3=await _0x654a52[_0x139f47([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x139f47([0x6a,0x77,0x6b]),_0x12a1d5,{[_0x139f47([0x6e,0x61,0x6d,0x65])]:_0x139f47([0x45,0x43,0x44,0x53,0x41]),[_0x139f47([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x139f47([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x139f47([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x654a52[_0x139f47([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x139f47([0x6e,0x61,0x6d,0x65])]:_0x139f47([0x45,0x43,0x44,0x53,0x41]),[_0x139f47([0x68,0x61,0x73,0x68])]:{[_0x139f47([0x6e,0x61,0x6d,0x65])]:_0x139f47([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x5825e3,_0x9e255a,_0x3ba6df)||(_0x4879c1=!0x1);}}function _0x1ef025(_0x2f73bc){return _0x2f73bc[_0x139f47([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x139f47([0x65,0x79]))?JSON[_0x139f47([0x70,0x61,0x72,0x73,0x65])](_0x22379a(_0x2f73bc)):null;}function _0x22379a(_0x4ea456){return window[_0x139f47([0x61,0x74,0x6f,0x62])](_0x4ea456[_0x139f47([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x139f47([0x2b]))[_0x139f47([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x139f47([0x2f])));}function _0x5176fe(_0x5884c1){let _0x202930=0x1505;function _0x47a780(_0x589e80){for(let _0xed4387=0x0;_0xed4387<_0x589e80[_0x139f47([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0xed4387++){const _0xa3dc51=_0x589e80[_0x139f47([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0xed4387);_0x202930=(_0x202930<<0x5)+_0x202930+_0xa3dc51,_0x202930&=_0x202930;}}function _0x58f258(_0x443c88){Array[_0x139f47([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x443c88)?_0x443c88[_0x139f47([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x58f258):_0x443c88&&typeof _0x443c88==_0x139f47([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x139f47([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x443c88)[_0x139f47([0x73,0x6f,0x72,0x74])]()[_0x139f47([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x3f1828,_0x58f5b0])=>{_0x47a780(_0x3f1828),_0x58f258(_0x58f5b0);}):_0x47a780(window[_0x139f47([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x443c88));}return _0x58f258(_0x5884c1),_0x202930>>>0x0;}function _0x237113(_0xc5e91d){return _0xc5e91d[_0x139f47([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x139f47([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x139f47([0x30]));}function _0x14fe39(_0x16e187){return _0x16e187[_0x139f47([0x73,0x70,0x6c,0x69,0x74])]('')[_0x139f47([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x139f47([0x6a,0x6f,0x69,0x6e])]('');}function _0x37cc56(){}function _0x139f47(_0xd1b792){const _0x51c72e=_0x31ff;return _0xd1b792[_0x51c72e(0xc9)](_0x39b1d6=>String[_0x51c72e(0xae)](_0x39b1d6))[_0x51c72e(0xb0)]('');}_0x230e17(await _0x28837f());}(this);}[_0x2a8722(0xbf)](){const _0x2da0e2=_0x2a8722,_0x359c30=this[_0x2da0e2(0xca)][_0x2da0e2(0xa5)][_0x2da0e2(0xc7)];_0x359c30[_0x2da0e2(0x9a)](_0x2da0e2(0xe0))&&_0x359c30[_0x2da0e2(0xd4)](_0x2da0e2(0xe0),{'allowAttributes':[_0x2da0e2(0xd3)]}),_0x359c30[_0x2da0e2(0x9a)](_0x2da0e2(0xbc))&&_0x359c30[_0x2da0e2(0xd4)](_0x2da0e2(0xbc),{'allowAttributes':[_0x2da0e2(0xd3)]});}[_0x2a8722(0xac)](){const _0x1db3bc=_0x2a8722,_0x45a204=this[_0x1db3bc(0xca)];_0x45a204[_0x1db3bc(0xcc)][_0x1db3bc(0xe6)](_0x1db3bc(0xe9))[_0x1db3bc(0xe3)]({'model':_0x1db3bc(0xd3),'view':_0x1db3bc(0xc2)}),_0x45a204[_0x1db3bc(0xcc)][_0x1db3bc(0xe6)](_0x1db3bc(0xb3))[_0x1db3bc(0x9c)]({'model':{'key':_0x1db3bc(0xd3),'value':_0x3ec508=>_0x3ec508[_0x1db3bc(0xcf)](_0x1db3bc(0xc2))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x1e4ef8=_0x45a204[_0x1db3bc(0xd0)][_0x1db3bc(0x9f)](_0x1db3bc(0xcb));_0x1e4ef8&&this[_0x1db3bc(0xad)](_0x1e4ef8,_0x1db3bc(0xa4),(_0x2a6c5e,[_0xb97017,_0x2c0d51])=>{const _0x34a2b0=_0x1db3bc;_0xb97017[_0x34a2b0(0xc3)](_0x34a2b0(0xd3),_0x2c0d51);});}[_0x2a8722(0xbb)](){const _0x224547=_0x2a8722,_0x43d5e0=this[_0x224547(0xca)][_0x224547(0x96)][_0x224547(0x9f)](_0x224547(0xa0))||{},_0x54a662=this[_0x224547(0xca)][_0x224547(0x96)][_0x224547(0x9f)](_0x224547(0xdd))||'';this[_0x224547(0xb9)]=_0x5ad123(_0x2fc513[_0x224547(0xbe)],_0x224547(0xde),{..._0x43d5e0,'pubkey':_0x54a662,'ctx-name':_0x224547(0xbd)+this[_0x224547(0x97)],'sourceList':'','imgOnly':_0x224547(0xd5),'removeCopyright':_0x224547(0xd5),'localeName':this[_0x224547(0xca)][_0x224547(0x9b)][_0x224547(0xe1)],'externalSourcesEmbedCss':_0x224547(0xd8)}),this[_0x224547(0xb9)][_0x224547(0xe7)]=_0x6c45a9=>{const _0x5351df=_0x224547;if(_0x5351df(0xb7)==_0x6c45a9)return _0x5351df(0xdc);},_0x2fc513[_0x224547(0xbe)][_0x224547(0xb8)][_0x224547(0xd2)](this[_0x224547(0xb9)]);}[_0x2a8722(0xc8)](){const _0x344c6f=_0x2a8722;this[_0x344c6f(0xb2)]=_0x5ad123(_0x2fc513[_0x344c6f(0xbe)],_0x344c6f(0xba),{'ctx-name':_0x344c6f(0xbd)+this[_0x344c6f(0x97)]}),_0x2fc513[_0x344c6f(0xbe)][_0x344c6f(0xb8)][_0x344c6f(0xd2)](this[_0x344c6f(0xb2)]);}[_0x2a8722(0xda)](){const _0x31b052=_0x2a8722,_0x95eb4b=this[_0x31b052(0xca)][_0x31b052(0xd0)][_0x31b052(0x9f)](_0x31b052(0xcd));_0x95eb4b&&this[_0x31b052(0xad)](_0x95eb4b,_0x31b052(0xe2),()=>{const _0x807da9=_0x31b052,_0x3fcf3e=this[_0x807da9(0xca)][_0x807da9(0xa5)][_0x807da9(0xbe)][_0x807da9(0xea)][_0x807da9(0xce)]();_0x3fcf3e&&_0x3fcf3e[_0x807da9(0xcf)](_0x807da9(0xd3))&&this[_0x807da9(0xca)][_0x807da9(0xe8)][_0x807da9(0xc6)][_0x807da9(0xb6)](_0x807da9(0xc0),()=>{const _0x1c388f=_0x807da9;_0x44e825(this[_0x1c388f(0xca)],_0x3fcf3e);});});const _0x400aea=this[_0x31b052(0xca)][_0x31b052(0xd0)][_0x31b052(0x9f)](_0x31b052(0xc4));_0x400aea&&this[_0x31b052(0xad)](_0x400aea,_0x31b052(0xe2),()=>{const _0x24272f=_0x31b052,_0xa843cd=this[_0x24272f(0xca)][_0x24272f(0xa5)][_0x24272f(0xbe)][_0x24272f(0xea)][_0x24272f(0xce)]();_0xa843cd&&_0xa843cd[_0x24272f(0xcf)](_0x24272f(0xd3))&&this[_0x24272f(0xca)][_0x24272f(0xe8)][_0x24272f(0xc6)][_0x24272f(0xb6)](_0x24272f(0xc0),()=>{const _0x3a6db7=_0x24272f;_0x44e825(this[_0x3a6db7(0xca)],_0xa843cd);});});}}