@ckeditor/ckeditor5-uploadcare 0.0.0-nightly-20250703.0 → 0.0.0-nightly-20250704.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 _0x39631d,Command as _0x537ce5}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x1b2e25,IconGooglePhotos as _0x554b43,IconGoogleDrive as _0x28d72d,IconFacebook as _0xb67d1,IconDropbox as _0x2cd90a,IconUploadcareLink as _0x803687,IconUploadcareImageUpload as _0x23f555,IconError as _0x4dfb04,IconUploadcareImageEdit as _0x11e3f7}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x4a5ac7,MenuBarMenuListItemButtonView as _0x27d8cf,View as _0x483ebc,FocusCycler as _0x588ad7,Dialog as _0x337d90,DialogViewPosition as _0x1f0185,SpinnerView as _0x4fe468,IconView as _0x153943,Notification as _0x11cfe2}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0xedb9b6,DomEmitterMixin as _0x43d864,global as _0x1e6b42,getAncestors as _0x3f8976,ObservableMixin as _0x3a83cd,uid as _0x29f306,createElement as _0x1098e0}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x55a0b1}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x293906,info as _0x13dd6f}from'@uploadcare/upload-client';import*as _0x265677 from'@uploadcare/file-uploader';var i=function(_0x35aea1){return _0x35aea1['Local']='local',_0x35aea1['URL']='url',_0x35aea1['Dropbox']='dropbox',_0x35aea1['GDrive']='gdrive',_0x35aea1['Facebook']='facebook',_0x35aea1['GPhotos']='gphotos',_0x35aea1['OneDrive']='onedrive',_0x35aea1;}({});function _(_0x565017,_0x38cf20,_0xc824f1){const t=_0x565017['t'],_0x5a91b5=_0x565017['t'];switch(_0x38cf20){case i['Local']:return{'text':_0x5a91b5('Insert'===_0xc824f1?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x5a91b5('From\x20computer')};case i['URL']:return{'text':'Insert'===_0xc824f1?_0x5a91b5('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x5a91b5('Via\x20URL')};case i['Dropbox']:return{'text':t('Insert'===_0xc824f1?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case i['Facebook']:return{'text':t('Insert'===_0xc824f1?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case i['GDrive']:return{'text':t('Insert'===_0xc824f1?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case i['GPhotos']:return{'text':t('Insert'===_0xc824f1?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case i['OneDrive']:return{'text':t('Insert'===_0xc824f1?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x38cf20;}}class e extends _0x39631d{['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 _0x44c4ed=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x11f6f9;for(const _0x1f4fc6 in _0x44c4ed){const _0x543910=_0x1f4fc6,_0x4cf893=_0x44c4ed[_0x543910];if('uploadcareLicenseKeyValid'==_0x4cf893||'uploadcareLicenseKeyInvalid'==_0x4cf893||'uploadcareLicenseKeyExpired'==_0x4cf893||'uploadcareLicenseKeyDomainLimit'==_0x4cf893||'uploadcareLicenseKeyNotAllowed'==_0x4cf893||'uploadcareLicenseKeyEvaluationLimit'==_0x4cf893||'uploadcareLicenseKeyTrialLimit'==_0x4cf893||'uploadcareLicenseKeyUsageLimit'==_0x4cf893){delete _0x44c4ed[_0x543910],_0x11f6f9=_0x4cf893,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x11f6f9&&_0x44c4ed['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x11f6f9&&_0x44c4ed['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x11f6f9&&_0x44c4ed['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x11f6f9&&_0x44c4ed['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x11f6f9&&_0x44c4ed['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyTrialLimit'==_0x11f6f9&&_0x44c4ed['_showLicenseError']('trialLimit'),'uploadcareLicenseKeyUsageLimit'==_0x11f6f9&&_0x44c4ed['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0xa00e1d}=this,_0x4866e9=_0xa00e1d['commands']['get']('uploadcare');if(!_0x4866e9)return;const _0x386159=this['_normalizeConfigSourceList'](_0xa00e1d['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x5962e2,_0x3ba7bb)=>{const _0x5e2670=this['_getIntegrationKey'](_0x3ba7bb['type']);return _0x5962e2[_0x5e2670]||(_0x5962e2[_0x5e2670]=[]),_0x5962e2[_0x5e2670]['push'](_0x3ba7bb),_0x5962e2;},{});_0xa00e1d['plugins']['has']('ImageInsertUI')&&_0xa00e1d['commands']['get']('uploadcare')&&Object['entries'](_0x386159)['forEach'](([_0x4ceabc,_0x4be582])=>{_0xa00e1d['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x4ceabc,'observable':()=>_0x4866e9,'buttonViewCreator':()=>this['_createToolbarButton'](_0x4be582),'formViewCreator':()=>this['_createDropdownButtons'](_0x4be582),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x4be582),'override':'assetManager'!==_0x4ceabc});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x2d0fec){const {locale:_0x514e44}=this['editor'];return _0x2d0fec['map'](_0x15e143=>{const _0x4c80a7=_(_0x514e44,_0x15e143,'Insert');switch(_0x15e143){case i['Local']:return{'icon':_0x23f555,'type':i['Local'],..._0x4c80a7};case i['URL']:return{'icon':_0x803687,'type':i['URL'],..._0x4c80a7};case i['Dropbox']:return{'icon':_0x2cd90a,'type':i['Dropbox'],..._0x4c80a7};case i['Facebook']:return{'icon':_0xb67d1,'type':i['Facebook'],..._0x4c80a7};case i['GDrive']:return{'icon':_0x28d72d,'type':i['GDrive'],..._0x4c80a7};case i['GPhotos']:return{'icon':_0x554b43,'type':i['GPhotos'],..._0x4c80a7};case i['OneDrive']:return{'icon':_0x1b2e25,'type':i['OneDrive'],..._0x4c80a7};}});}['_getIntegrationKey'](_0x2df6a6){switch(_0x2df6a6){case i['Local']:return'upload';case i['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x32d133,_0x43c346){const _0x5a9577=this['editor'],_0xb439dd=new _0x32d133(_0x5a9577['locale']),_0x582535=_0x5a9577['commands']['get']('uploadcare');return _0xb439dd['bind']('isEnabled')['to'](_0x582535),_0xb439dd['on']('execute',()=>{_0x582535['execute'](_0x43c346);}),_0xb439dd;}['_createToolbarButton'](_0x3a0f08){const {locale:_0x514aa0}=this['editor'],_0x2aed2f=this['editor']['plugins']['get']('ImageInsertUI'),_0x50adac=_0x3a0f08[0x0],_0x545586=this['_createButton'](_0x4a5ac7,_0x50adac['type']);return _0x545586['icon']=_0x50adac['icon'],_0x545586['bind']('label')['to'](_0x2aed2f,'isImageSelected',_0x4e7f8e=>_(_0x514aa0,_0x50adac['type'],_0x4e7f8e?'Replace':'Insert')['text']),_0x545586['tooltip']=!0x0,_0x545586;}['_createDropdownButtons'](_0x3d522a){const {locale:_0x14274c}=this['editor'],_0x514c06=this['editor']['plugins']['get']('ImageInsertUI');return _0x3d522a['map'](_0x35c004=>{const _0x288a3d=this['_createButton'](_0x4a5ac7,_0x35c004['type']);return _0x288a3d['withText']=!0x0,_0x288a3d['icon']=_0x35c004['icon'],_0x288a3d['bind']('label')['to'](_0x514c06,'isImageSelected',_0x5837dd=>_(_0x14274c,_0x35c004['type'],_0x5837dd?'Replace':'Insert')['text']),_0x288a3d;});}['_createMenuBarButtons'](_0x1e9eda){return _0x1e9eda['map'](_0x37301b=>{const _0x5a5d51=this['_createButton'](_0x27d8cf,_0x37301b['type']);return _0x5a5d51['icon']=_0x37301b['icon'],_0x5a5d51['label']=_0x37301b['shortText'],_0x5a5d51;});}}class F extends _0x483ebc{['focusTracker'];['focusCycler'];constructor(_0x55b3ce){super(_0x55b3ce),this['focusTracker']=new _0xedb9b6(),this['focusCycler']=new _0x588ad7({'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(_0x2d3a5b,_0x17e548){super(_0x2d3a5b),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-'+_0x17e548}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}}function k(_0x53bdc5,_0x3a0fd9){const _0x468942=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x1f1c2e=>_0x1f1c2e<=_0x3a0fd9)['map'](_0x3cd070=>_0x53bdc5['replace'](/\/$/,'')+'/-/resize/'+_0x3cd070+'x/\x20'+_0x3cd070+'w');return{'imageFallbackUrl':_0x53bdc5,'imageSources':[{'srcset':_0x468942['join'](',\x20'),'sizes':'(max-width:\x20'+_0x3a0fd9+'px)\x20100vw,\x20'+_0x3a0fd9+'px','type':'image/webp'}]};}function C(_0x30ad57,_0x4bd7bf,_0x58ff01){const _0x1089ff=_0x30ad57['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x1089ff?parseInt(_0x1089ff[0x1],0xa):_0x4bd7bf,'height':_0x1089ff?parseInt(_0x1089ff[0x2],0xa):_0x58ff01};}function p(_0x338add,_0x11e357){const _0x353add=new(_0x43d864())(),_0x57212e=_0x338add['plugins']['get']('ImageUtils'),_0x3cad40=_0x338add['editing']['mapper']['toViewElement'](_0x11e357),_0x2c8f80=_0x57212e['findViewImgElement'](_0x3cad40),_0x317412=_0x338add['editing']['view']['domConverter']['viewToDom'](_0x2c8f80),_0x1f8afd=_0x11e357['getAttribute']('width'),_0x103d40=_0x11e357['getAttribute']('height'),_0x3800fe='image-processing';_0x338add['editing']['view']['change'](_0x9689f8=>{_0x9689f8['addClass'](_0x3800fe,_0x3cad40),_0x9689f8['setStyle']('aspect-ratio',_0x1f8afd+'/'+_0x103d40,_0x2c8f80);}),_0x353add['listenTo'](_0x317412,'load',()=>{_0x353add['stopListening'](_0x317412,'load'),_0x338add['editing']['view']['change'](_0x43bd70=>{_0x43bd70['removeClass'](_0x3800fe,_0x3cad40),_0x43bd70['removeStyle']('aspect-ratio',_0x2c8f80);});});}function G(_0xd80b6a){if(Array['isArray'](_0xd80b6a)){const _0x19147a=_0xd80b6a['map'](G);return _0x1dc76d=>_0x19147a['some'](_0x3a5946=>_0x3a5946(_0x1dc76d));}if('origin'==_0xd80b6a){const _0x362e99=_0x1e6b42['window']['location']['origin'];return _0x5fd92e=>new URL(_0x5fd92e,_0x1e6b42['document']['baseURI'])['origin']==_0x362e99;}return'function'==typeof _0xd80b6a?_0xd80b6a:_0xd80b6a instanceof RegExp?_0x100e82=>!(!_0x100e82['match'](_0xd80b6a)&&!_0x100e82['replace'](/^https?:\/\//,'')['match'](_0xd80b6a)):()=>!0x1;}function S(_0x5163bb,_0x11d75a){return _0x3f8976(_0x5163bb['target'])['includes'](_0x11d75a);}class n extends/* #__PURE__ -- @preserve */
24
- _0x3a83cd(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x93405d,_0x53222d,_0x494d97){super(),this['_editor']=_0x93405d,this['_editing']=_0x53222d,this['_dialog']=_0x93405d['plugins']['get'](_0x337d90),this['_api']=_0x53222d['ctxElement']['getAPI'](),this['_type']=_0x494d97,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:_0x4cf5d9,model:_0x44bdad}=this['_editor'],_0x4a3b5f=_0x44bdad['document']['selection']['getSelectedElement'](),_0x1aa545=_0x4a3b5f&&(_0x4a3b5f['is']('element','imageBlock')||_0x4a3b5f['is']('element','imageInline'));this['_formView']=new x(_0x4cf5d9,this['_editing']['ucContextId']),this['_dialog']['show']({'id':'uploadCare','icon':_0x23f555,'title':_(_0x4cf5d9,this['_type'],_0x1aa545?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x1f0185['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x2ca152=>!S(_0x2ca152,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x39b98d}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x1dec55=>{const _0xcaeb1e=_0x39b98d['length'];for(const _0x1b899d of _0x39b98d){const _0x44896b=_0x1b899d===_0x39b98d[_0xcaeb1e-0x1],{cdnUrl:_0xf3cacb,fileInfo:_0x3ac792}=_0x1b899d;if(!_0xf3cacb||!_0x3ac792)continue;const {width:_0x1b9da2,height:_0x2762d4}=_0x3ac792['imageInfo'],_0x23c70b=C(_0xf3cacb,_0x1b9da2,_0x2762d4),_0x5b2c26=k(_0xf3cacb,_0x23c70b['width']),_0x2c6885={'id':_0x3ac792['uuid'],'type':'image','attributes':{'imageDimension':_0x23c70b,..._0x5b2c26}};this['_insertAsset'](_0x2c6885,_0x44896b,_0x1dec55);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x369dd1=>{'idle'===_0x369dd1['detail']['status']&&!_0x369dd1['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===i['Local']?this['_api']['setCurrentActivity'](i['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x1c41c0,_0x5dc74c,_0x2952ba){const _0x41c917=this['_editor']['model']['document']['selection'],_0x5e7758=_0x41c917['getSelectedElement'](),_0x33c507=!(!_0x5e7758||!_0x5e7758['is']('element','imageInline'));_0x2952ba['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x1c41c0,_0x33c507),_0x5dc74c||_0x2952ba['setSelection'](_0x41c917['getLastPosition']());}['_insertImage'](_0x2e9ece,_0x20d47f){const _0x5da413=this['_editor'],{imageDimension:_0x4ce36c,imageFallbackUrl:_0x1b0c1d,imageSources:_0xc34923}=_0x2e9ece['attributes'];_0x5da413['execute']('insertImage',{'imageType':_0x20d47f?'imageInline':null,'source':{'uploadcareImageId':_0x2e9ece['id'],'src':_0x1b0c1d,'sources':_0xc34923,..._0x4ce36c}});}}class w extends _0x537ce5{['_editing'];['_controller']=null;static get['requires'](){return[_0x337d90,o];}constructor(_0x139d84){super(_0x139d84),this['_editing']=_0x139d84['plugins']['get'](o);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x27c60d){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new n(this['editor'],this['_editing'],_0x27c60d);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class j{static['upload']({file:_0x1f0d32,publicKey:_0x487199,signal:_0x1db39f,onProgress:_0xff689f}){return _0x293906(_0x1f0d32,{'publicKey':_0x487199,'store':'auto','signal':_0x1db39f,'onProgress':_0xff689f});}static['getInfo'](_0x326491,_0x125bb7){return _0x13dd6f(_0x326491,_0x125bb7);}}class f extends _0x39631d{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x55a0b1,o];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x4a39be=this['editor'];if(!!!_0x4a39be['config']['get']('uploadcare'))return;_0x4a39be['plugins']['get'](_0x55a0b1)['createUploadAdapter']=_0x39a0fc=>new A(_0x39a0fc,_0x4a39be),_0x4a39be['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x315a3d,{imageElement:_0x28082c,data:_0x1534a3})=>{_0x4a39be['model']['change'](_0x250b5b=>{_0x250b5b['setAttribute']('uploadcareImageId',_0x1534a3['uploadcareImageId'],_0x28082c);});});}}class A{['loader'];['editor'];['controller'];constructor(_0xc2673a,_0x159416){this['loader']=_0xc2673a,this['editor']=_0x159416,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x2455bf=this['editor']['config']['get']('uploadcare.pubkey'),_0x2dd17e=await this['loader']['file'];return j['upload']({'file':_0x2dd17e,'publicKey':_0x2455bf,'signal':this['controller']['signal'],'onProgress':_0x136944=>{_0x136944&&_0x136944['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x136944['value']);}})['then'](async _0xca3820=>{const {imageFallbackUrl:_0x2b3de1,imageSources:_0x3c30f0}=k(_0xca3820['cdnUrl'],_0xca3820['imageInfo']['width']);return{'uploadcareImageId':_0xca3820['uuid'],'default':_0x2b3de1,'sources':_0x3c30f0};})['catch'](()=>{const _0x2776be=t('Cannot\x20upload\x20file:')+('\x20'+_0x2dd17e['name']+'.');return Promise['reject'](_0x2776be);});}['abort'](){this['controller']['abort']();}}class o extends _0x39631d{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',f,_0x337d90];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['ucContextId'];get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}constructor(_0x3ae837){super(_0x3ae837),this['ucContextId']=_0x29f306();}['init'](){const _0x228a69=this['editor'];_0x228a69['commands']['add']('uploadcare',new w(_0x228a69));}['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 _0x26cede=_0x1e6b42['document']['querySelector']('input[uploadcare-file-input]');_0x26cede&&_0x26cede['remove']();}),async function(_0x55eb1e){const _0x170a04=_0x3f2409([0x66,0x39,0x65,0x4e,0x44,0x34,0x6a,0x4f,0x6b,0x31,0x52,0x4a,0x37,0x43,0x77,0x55,0x63,0x36,0x6c,0x38,0x58,0x53,0x32,0x45,0x33,0x76,0x6d,0x67,0x69,0x50,0x74,0x57,0x73,0x61,0x5a,0x4b,0x7a,0x6e,0x68,0x71,0x46,0x51,0x64,0x42,0x79,0x59,0x4d,0x47,0x75,0x72,0x48,0x54,0x41,0x56,0x6f,0x4c,0x35,0x49,0x30,0x62,0x70,0x78]),_0x216c83=0x442d3be8,_0x59fcb0=0x442a5768^_0x216c83,_0x49a5b3=window[_0x3f2409([0x44,0x61,0x74,0x65])][_0x3f2409([0x6e,0x6f,0x77])](),_0x541a99=_0x55eb1e[_0x3f2409([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x3da41e=new window[(_0x3f2409([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xbc7b40=>{_0x541a99[_0x3f2409([0x6f,0x6e,0x63,0x65])](_0x3f2409([0x72,0x65,0x61,0x64,0x79]),_0xbc7b40);}),_0x21bc84={[_0x3f2409([0x6b,0x74,0x79])]:_0x3f2409([0x45,0x43]),[_0x3f2409([0x75,0x73,0x65])]:_0x3f2409([0x73,0x69,0x67]),[_0x3f2409([0x63,0x72,0x76])]:_0x3f2409([0x50,0x2d,0x32,0x35,0x36]),[_0x3f2409([0x78])]:_0x3f2409([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]),[_0x3f2409([0x79])]:_0x3f2409([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]),[_0x3f2409([0x61,0x6c,0x67])]:_0x3f2409([0x45,0x53,0x32,0x35,0x36])},_0x368425=_0x541a99[_0x3f2409([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x3f2409([0x67,0x65,0x74])](_0x3f2409([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x4992a6(){let _0x1c67ec,_0x4cdacd=null,_0xd7fff8=null;try{if(_0x368425==_0x3f2409([0x47,0x50,0x4c]))return _0x3f2409([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x1c67ec=_0x5cb954(),!_0x1c67ec)return _0x3f2409([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x1c67ec[_0x3f2409([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0xd7fff8=_0xe7bdd6(_0x1c67ec[_0x3f2409([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x1c67ec[_0x3f2409([0x6a,0x74,0x69])])),await _0x2c4d60()?_0x420808()?_0x31f3d7()?_0x3f2409([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0xb0b1ee()?(_0x1c67ec[_0x3f2409([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3f2409([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x4cdacd=_0x1e7136(_0x3f2409([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x1c67ec[_0x3f2409([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3f2409([0x74,0x72,0x69,0x61,0x6c])&&(_0x4cdacd=_0x1e7136(_0x3f2409([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x346f17()):_0x3f2409([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x3f2409([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x3f2409([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x3f2409([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x31f3d7(){const _0x571008=[_0x3f2409([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x3f2409([0x74,0x72,0x69,0x61,0x6c])][_0x3f2409([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1c67ec[_0x3f2409([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x49a5b3/0x3e8:0xe10*_0x59fcb0;return _0x1c67ec[_0x3f2409([0x65,0x78,0x70])]<_0x571008;}function _0x420808(){const _0x3b5f8a=_0x1c67ec[_0x3f2409([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x3b5f8a&&(!!_0x3b5f8a[_0x3f2409([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3f2409([0x2a]))||!!_0x3b5f8a[_0x3f2409([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3f2409([0x55,0x50,0x4c,0x43])));}function _0xb0b1ee(){const _0x2c501e=_0x1c67ec[_0x3f2409([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x2c501e||0x0==_0x2c501e[_0x3f2409([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x5b4739}=new URL(window[_0x3f2409([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x2c501e[_0x3f2409([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5b4739))return!0x0;const _0x1257a2=_0x5b4739[_0x3f2409([0x73,0x70,0x6c,0x69,0x74])](_0x3f2409([0x2e]));return _0x2c501e[_0x3f2409([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x5d9467=>_0x5d9467[_0x3f2409([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3f2409([0x2a])))[_0x3f2409([0x6d,0x61,0x70])](_0xf7aeb7=>_0xf7aeb7[_0x3f2409([0x73,0x70,0x6c,0x69,0x74])](_0x3f2409([0x2e])))[_0x3f2409([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x4b5e54=>_0x4b5e54[_0x3f2409([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x1257a2[_0x3f2409([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x3f2409([0x6d,0x61,0x70])](_0x55e17b=>Array(_0x1257a2[_0x3f2409([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x55e17b[_0x3f2409([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x3f2409([0x66,0x69,0x6c,0x6c])](_0x55e17b[0x0]===_0x3f2409([0x2a])?_0x3f2409([0x2a]):'')[_0x3f2409([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x55e17b))[_0x3f2409([0x73,0x6f,0x6d,0x65])](_0x199729=>_0x1257a2[_0x3f2409([0x65,0x76,0x65,0x72,0x79])]((_0x3c79ab,_0x5e8e56)=>_0x199729[_0x5e8e56]===_0x3c79ab||_0x199729[_0x5e8e56]===_0x3f2409([0x2a])));}function _0x346f17(){return _0x4cdacd&&_0xd7fff8?new window[(_0x3f2409([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x22866d,_0x52762f)=>{_0x4cdacd[_0x3f2409([0x74,0x68,0x65,0x6e])](_0x22866d,_0x52762f),_0xd7fff8[_0x3f2409([0x74,0x68,0x65,0x6e])](_0x5d653e=>{_0x5d653e!=_0x3f2409([0x56,0x61,0x6c,0x69,0x64])&&_0x22866d(_0x5d653e);},_0x52762f);}):_0x4cdacd||_0xd7fff8||_0x3f2409([0x56,0x61,0x6c,0x69,0x64]);}}function _0xe7bdd6(_0x38e229,_0x2e3b2d){return new window[(_0x3f2409([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x520cba=>{if(_0xbb53dd())return _0x520cba(_0x3f2409([0x56,0x61,0x6c,0x69,0x64]));_0x270297(),_0x541a99[_0x3f2409([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x3f2409([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x5dc049=!0x1;const _0x42258c=_0x29f306();function _0x32036d(_0x3c46f1){return!!_0x3c46f1&&(typeof _0x3c46f1===_0x3f2409([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x3c46f1===_0x3f2409([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x3c46f1[_0x3f2409([0x74,0x68,0x65,0x6e])]===_0x3f2409([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x3c46f1[_0x3f2409([0x63,0x61,0x74,0x63,0x68])]===_0x3f2409([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x4cfc73(_0x470ac3){_0x4e6b76(_0x470ac3)[_0x3f2409([0x74,0x68,0x65,0x6e])](_0x4292d9=>{if(!_0x4292d9||_0x4292d9[_0x3f2409([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x3f2409([0x6f,0x6b]))return _0x3f2409([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x3c2cfb(_0x3d38ec(_0x42258c+_0x2e3b2d))!=_0x4292d9[_0x3f2409([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x3f2409([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x3f2409([0x56,0x61,0x6c,0x69,0x64]);})[_0x3f2409([0x74,0x68,0x65,0x6e])](_0xd19c3e=>(_0x2fd0be(),_0xd19c3e),()=>{const _0x4f7ca0=_0x3b7278();return null==_0x4f7ca0?(_0x2fd0be(),_0x3f2409([0x56,0x61,0x6c,0x69,0x64])):_0x3f2409(_0x49a5b3-_0x4f7ca0>(0x6021bfe8^_0x216c83)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x3f2409([0x74,0x68,0x65,0x6e])](_0x520cba)[_0x3f2409([0x63,0x61,0x74,0x63,0x68])](()=>{_0x520cba(_0x3f2409([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x4fd26d=0x441bd568^_0x216c83;function _0x2fd0be(){const _0xcad5ed=_0x3f2409([0x6c,0x6c,0x63,0x74,0x2d])+_0x3c2cfb(_0x3d38ec(_0x38e229)),_0x35e5c0=_0x31dc8d(_0x3c2cfb(window[_0x3f2409([0x4d,0x61,0x74,0x68])][_0x3f2409([0x63,0x65,0x69,0x6c])](_0x49a5b3/_0x4fd26d)));window[_0x3f2409([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3f2409([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0xcad5ed,_0x35e5c0);}function _0x3b7278(){const _0x1c86f0=_0x3f2409([0x6c,0x6c,0x63,0x74,0x2d])+_0x3c2cfb(_0x3d38ec(_0x38e229)),_0x2e6005=window[_0x3f2409([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3f2409([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1c86f0);return _0x2e6005?window[_0x3f2409([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x31dc8d(_0x2e6005),0x10)*_0x4fd26d:null;}function _0x4e6b76(_0x3d5513){return new window[(_0x3f2409([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x2ae89a,_0x12c639)=>{_0x3d5513[_0x3f2409([0x74,0x68,0x65,0x6e])](_0x2ae89a,_0x12c639),window[_0x3f2409([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x12c639,0x442cef28^_0x216c83);});}}_0x541a99[_0x3f2409([0x6f,0x6e])](_0x3f2409([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x211515,_0x14c5d1)=>{if(_0x14c5d1[0x0]!=_0x38e229)return _0x520cba(_0x3f2409([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x14c5d1[0x1]={..._0x14c5d1[0x1],[_0x3f2409([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x42258c};},{[_0x3f2409([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3f2409([0x68,0x69,0x67,0x68])}),_0x541a99[_0x3f2409([0x6f,0x6e])](_0x3f2409([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0xc32848=>{_0x32036d(_0xc32848[_0x3f2409([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x5dc049=!0x0,_0x4cfc73(_0xc32848[_0x3f2409([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x3f2409([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3f2409([0x6c,0x6f,0x77])}),_0x3da41e[_0x3f2409([0x74,0x68,0x65,0x6e])](()=>{_0x5dc049||_0x520cba(_0x3f2409([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0xbb53dd(){return _0x541a99[_0x3f2409([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3f2409([0x76,0x69,0x65,0x77])][_0x3f2409([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x3f2409([0x61,0x75,0x74,0x6f]);}function _0x270297(){_0x541a99[_0x3f2409([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3f2409([0x76,0x69,0x65,0x77])][_0x3f2409([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x3f2409([0x61,0x75,0x74,0x6f]);}}function _0x1e7136(_0x594f14){const _0xfc8411=[new window[(_0x3f2409([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4e0625=>setTimeout(_0x4e0625,0x44240524^_0x216c83)),_0x3da41e[_0x3f2409([0x74,0x68,0x65,0x6e])](()=>new window[(_0x3f2409([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4f6324=>{let _0x504a9f=0x0;_0x541a99[_0x3f2409([0x6d,0x6f,0x64,0x65,0x6c])][_0x3f2409([0x6f,0x6e])](_0x3f2409([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x5f28e7,_0x8007d)=>{_0x8007d[0x0][_0x3f2409([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x504a9f++,_0x504a9f==(0x442d3a10^_0x216c83)&&(_0x4f6324(),_0x5f28e7[_0x3f2409([0x6f,0x66,0x66])]());});}))];return window[_0x3f2409([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x3f2409([0x72,0x61,0x63,0x65])](_0xfc8411)[_0x3f2409([0x74,0x68,0x65,0x6e])](()=>_0x594f14);}async function _0x4663d7(){await _0x3da41e,_0x541a99[_0x3f2409([0x6d,0x6f,0x64,0x65,0x6c])][_0x3f2409([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x24f06f,_0x541a99[_0x3f2409([0x6d,0x6f,0x64,0x65,0x6c])][_0x3f2409([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x24f06f,_0x541a99[_0x3f2409([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x3f2409([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x2e10e2(_0x102bde){const _0x366ba9=_0xe7d326();_0x541a99[_0x366ba9]=_0x3f2409([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x102bde,_0x102bde!=_0x3f2409([0x56,0x61,0x6c,0x69,0x64])&&_0x4663d7();}function _0xe7d326(){const _0x32d039=window[_0x3f2409([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x3f2409([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x3f2409([0x6e,0x6f,0x77])]())[_0x3f2409([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x3f2409([0x2e]),'');let _0x3c6a0e=_0x3f2409([0x66]);for(let _0x4fc597=0x0;_0x4fc597<_0x32d039[_0x3f2409([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4fc597+=0x2){let _0x5373c1=window[_0x3f2409([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x32d039[_0x3f2409([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4fc597,_0x4fc597+0x2));_0x5373c1>=_0x170a04[_0x3f2409([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x5373c1-=_0x170a04[_0x3f2409([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x3c6a0e+=_0x170a04[_0x5373c1];}return _0x3c6a0e;}function _0x5cb954(){const _0x570f4c=_0x368425[_0x3f2409([0x73,0x70,0x6c,0x69,0x74])](_0x3f2409([0x2e]));if(0x3!=_0x570f4c[_0x3f2409([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x1f7d32(_0x570f4c[0x1]);function _0x1f7d32(_0x61eb91){const _0x7f70a1=_0x200316(_0x61eb91);return _0x7f70a1&&_0x5d9070()?_0x7f70a1:null;function _0x5d9070(){const _0x4d4220=_0x7f70a1[_0x3f2409([0x6a,0x74,0x69])],_0x633d3=window[_0x3f2409([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4d4220[_0x3f2409([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4d4220[_0x3f2409([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x309064={..._0x7f70a1,[_0x3f2409([0x6a,0x74,0x69])]:_0x4d4220[_0x3f2409([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x4d4220[_0x3f2409([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x309064[_0x3f2409([0x76,0x63])],_0x3d38ec(_0x309064)==_0x633d3;}}}async function _0x2c4d60(){let _0x560622=!0x0;try{const _0x31b7aa=_0x368425[_0x3f2409([0x73,0x70,0x6c,0x69,0x74])](_0x3f2409([0x2e])),[_0x505c6a,_0x6d019f,_0x54d80e]=_0x31b7aa;return _0x194ddf(_0x505c6a),await _0x1a18f6(_0x505c6a,_0x6d019f,_0x54d80e),_0x560622;}catch{return!0x1;}function _0x194ddf(_0x5d5bd3){const _0x55ff31=_0x200316(_0x5d5bd3);_0x55ff31&&_0x55ff31[_0x3f2409([0x61,0x6c,0x67])]==_0x3f2409([0x45,0x53,0x32,0x35,0x36])||(_0x560622=!0x1);}async function _0x1a18f6(_0x896c67,_0xaf2ecc,_0xdb57bc){const _0x17193d=window[_0x3f2409([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x3f2409([0x66,0x72,0x6f,0x6d])](_0x1ae413(_0xdb57bc),_0x2c142b=>_0x2c142b[_0x3f2409([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x44f403=new window[(_0x3f2409([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x3f2409([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x896c67+_0x3f2409([0x2e])+_0xaf2ecc),_0x24ebaf=window[_0x3f2409([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x3f2409([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x24ebaf)return;const _0x4db397=await _0x24ebaf[_0x3f2409([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x3f2409([0x6a,0x77,0x6b]),_0x21bc84,{[_0x3f2409([0x6e,0x61,0x6d,0x65])]:_0x3f2409([0x45,0x43,0x44,0x53,0x41]),[_0x3f2409([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x3f2409([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x3f2409([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x24ebaf[_0x3f2409([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x3f2409([0x6e,0x61,0x6d,0x65])]:_0x3f2409([0x45,0x43,0x44,0x53,0x41]),[_0x3f2409([0x68,0x61,0x73,0x68])]:{[_0x3f2409([0x6e,0x61,0x6d,0x65])]:_0x3f2409([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x4db397,_0x17193d,_0x44f403)||(_0x560622=!0x1);}}function _0x200316(_0x8c64b4){return _0x8c64b4[_0x3f2409([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x3f2409([0x65,0x79]))?JSON[_0x3f2409([0x70,0x61,0x72,0x73,0x65])](_0x1ae413(_0x8c64b4)):null;}function _0x1ae413(_0x53726f){return window[_0x3f2409([0x61,0x74,0x6f,0x62])](_0x53726f[_0x3f2409([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x3f2409([0x2b]))[_0x3f2409([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x3f2409([0x2f])));}function _0x3d38ec(_0x357460){let _0x258f3c=0x1505;function _0x3deef8(_0x4a5de6){for(let _0x83d032=0x0;_0x83d032<_0x4a5de6[_0x3f2409([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x83d032++){const _0x5be013=_0x4a5de6[_0x3f2409([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x83d032);_0x258f3c=(_0x258f3c<<0x5)+_0x258f3c+_0x5be013,_0x258f3c&=_0x258f3c;}}function _0x5ebf58(_0x3405bc){Array[_0x3f2409([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x3405bc)?_0x3405bc[_0x3f2409([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x5ebf58):_0x3405bc&&typeof _0x3405bc==_0x3f2409([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x3f2409([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x3405bc)[_0x3f2409([0x73,0x6f,0x72,0x74])]()[_0x3f2409([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x564752,_0x2dfd27])=>{_0x3deef8(_0x564752),_0x5ebf58(_0x2dfd27);}):_0x3deef8(window[_0x3f2409([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x3405bc));}return _0x5ebf58(_0x357460),_0x258f3c>>>0x0;}function _0x3c2cfb(_0x2db155){return _0x2db155[_0x3f2409([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x3f2409([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x3f2409([0x30]));}function _0x31dc8d(_0x295aaf){return _0x295aaf[_0x3f2409([0x73,0x70,0x6c,0x69,0x74])]('')[_0x3f2409([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x3f2409([0x6a,0x6f,0x69,0x6e])]('');}function _0x24f06f(){}function _0x3f2409(_0x2da659){return _0x2da659['map'](_0x479272=>String['fromCharCode'](_0x479272))['join']('');}_0x2e10e2(await _0x4992a6());}(this);}['_initSchema'](){const _0x3a20d7=this['editor']['model']['schema'];_0x3a20d7['isRegistered']('imageBlock')&&_0x3a20d7['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x3a20d7['isRegistered']('imageInline')&&_0x3a20d7['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x960050=this['editor'];_0x960050['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x960050['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x42ab56=>_0x42ab56['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x2b1299=_0x960050['commands']['get']('replaceImageSource');_0x2b1299&&this['listenTo'](_0x2b1299,'cleanupImage',(_0x2e8720,[_0x36172f,_0x4347c1])=>{_0x36172f['removeAttribute']('uploadcareImageId',_0x4347c1);});}['_initConfig'](){const _0x3e1647=this['editor']['config']['get']('uploadcare.uploader')||{},_0x460244=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x1098e0(_0x1e6b42['document'],'uc-config',{..._0x3e1647,'pubkey':_0x460244,'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']=_0x5244f6=>{if('closeMax'==_0x5244f6)return'#uc-icon-arrow-down';},_0x1e6b42['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x1098e0(_0x1e6b42['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader-'+this['ucContextId']}),_0x1e6b42['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x4f2835=this['editor']['commands']['get']('insertImage');_0x4f2835&&this['listenTo'](_0x4f2835,'execute',()=>{const _0x545b2a=this['editor']['model']['document']['selection']['getSelectedElement']();_0x545b2a&&_0x545b2a['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x545b2a);});});const _0x566b1=this['editor']['commands']['get']('uploadcareImageReplace');_0x566b1&&this['listenTo'](_0x566b1,'execute',()=>{const _0x5044f2=this['editor']['model']['document']['selection']['getSelectedElement']();_0x5044f2&&_0x5044f2['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x5044f2);});});}}class tt extends _0x39631d{static get['requires'](){return[o,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x1a7ec2){super(_0x1a7ec2),_0x1a7ec2['config']['define']('uploadcare.uploader.sourceList',[i['Local'],i['URL']]),_0x265677['defineComponents'](_0x265677);}}class ii extends _0x483ebc{constructor(_0x519f11){super(_0x519f11);const t=_0x519f11['t'],_0x427646=this['bindTemplate'],_0x17e64c=new _0x4fe468();_0x17e64c['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':[_0x17e64c,{'text':_0x427646['to']('imageUploadProgress',_0x53ce01=>t('Loading\x20image...')+'\x20('+(_0x53ce01||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 _0x483ebc{constructor(_0x4344fa){super(_0x4344fa);const t=_0x4344fa['t'];this['set']('errorType',null);const _0x4abec4=new _0x4a5ac7(_0x4344fa);_0x4abec4['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x4abec4['withText']=!0x0,_0x4abec4['class']='ck-button-action',_0x4abec4['on']('execute',()=>{this['fire']('retry');}),_0x4abec4['bind']('isVisible')['to'](this,'errorType',_0x14ed25=>'NotFound'!==_0x14ed25);const _0x486c61=new _0x153943();_0x486c61['content']=_0x4dfb04,_0x486c61['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x2c3e0f=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':[_0x486c61,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x2c3e0f['to']('errorType',_0x2e6314=>t('NotFound'!==_0x2e6314?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x4abec4]},{'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 _0x483ebc{constructor(_0x3a6696,_0x1b8b76){super(_0x3a6696);const _0x526fb8=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x1b8b76,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x526fb8['to']('imageSrc')}});}}class X extends F{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0xbe5f51,_0x7e951e,_0x25908f){super(_0xbe5f51),this['_items']=this['createCollection'](),this['_loadingView']=new ii(_0xbe5f51),this['_errorView']=new ti(_0xbe5f51),this['_editingView']=new ei(_0xbe5f51,_0x25908f),this['_focusableView']=new _0x483ebc(_0xbe5f51),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x7e951e),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'],_0x5e1ef1=>{this['_addUploadcareImageEditorListeners'](_0x5e1ef1);});}),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'](_0x369f65,_0x2b0d89){const _0x5eeb6a='uc-cloud-image-editor',_0x39c37c=_0x369f65['querySelector'](_0x5eeb6a);if(_0x39c37c)return _0x2b0d89(_0x39c37c);const _0x23170d=new MutationObserver(_0x39e0a9=>{const _0x542ee8=_0x39e0a9['filter'](_0x450b81=>_0x450b81['target']===_0x369f65&&_0x450b81['addedNodes']['length']>0x0&&_0x450b81['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x5eeb6a);_0x542ee8['length']&&(_0x23170d['disconnect'](),_0x2b0d89(_0x542ee8[0x0]['addedNodes'][0x0]));});_0x23170d['observe'](_0x369f65,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0xe64ede){_0xe64ede['addEventListener']('apply',_0x5486ec=>{this['fire']('apply',{'imageSrc':_0x5486ec['detail']['cdnUrl']});}),_0xe64ede['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class E extends/* #__PURE__ -- @preserve */
25
- _0x3a83cd(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x4ee7fa,_0x53fe0a,_0x5cee26){super(),this['_editor']=_0x4ee7fa,this['_dialog']=_0x53fe0a,this['_imageElement']=_0x5cee26,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 _0x5f0ddb=this['_imageElement'],_0x2bd8b7=_0x5f0ddb['getAttribute']('uploadcareImageId'),_0x25bcf0=_0x5f0ddb['getAttribute']('src');if(_0x2bd8b7)await this['_loadImageInfo'](_0x2bd8b7,_0x25bcf0);else{if(this['_imageCache']['has'](_0x25bcf0)){const _0x446994=this['_imageCache']['get'](_0x25bcf0);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x446994['url'],this['imageDimension']=_0x446994['dimension'],this['imageId']=_0x446994['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x14e491}=this['_editor'],t=_0x14e491['t'],_0x3f9b65=new X(_0x14e491,this['imageStatus'],this['_attributes']);_0x3f9b65['bind']('status')['to'](this,'imageStatus'),_0x3f9b65['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x3f9b65['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x3f9b65['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x3f9b65,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x11e3f7,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x3f9b65,'position':_0x1f0185['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x3f9b65['focus']();},'onHide':()=>{_0x3f9b65['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x2c5b73=>!S(_0x2c5b73,_0x3f9b65['element'])}});}['_loadImageInfo'](_0x51a163,_0x500184){return j['getInfo'](_0x51a163,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey')})['then'](_0x4fdc8c=>{const {width:_0x1982a8,height:_0x3fd9fe}=_0x4fdc8c['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x500184,this['imageDimension']={'width':_0x1982a8,'height':_0x3fd9fe},this['imageId']=_0x51a163;})['catch'](_0x4a5fcf=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x4a5fcf['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x58348a,_0x2a2bfa){return this['_getImageAsFile'](_0x58348a)['then'](_0x3d98cc=>j['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'signal':_0x2a2bfa['signal'],'file':_0x3d98cc,'onProgress':_0x4a7ae6=>{_0x4a7ae6&&_0x4a7ae6['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x4a7ae6['value']));}}))['then'](_0x5891cb=>{const {width:_0x1380b1,height:_0x278900}=_0x5891cb['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x5891cb['cdnUrl'],this['imageDimension']={'width':_0x1380b1,'height':_0x278900},this['imageId']=_0x5891cb['uuid'],this['imageUploadProgress']=null;const _0x3ffa1d=_0x58348a['getAttribute']('src');this['_imageCache']['set'](_0x3ffa1d,{'id':_0x5891cb['uuid'],'url':_0x5891cb['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x22bd43=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x22bd43['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x282779,_0x31a5d9){_0x282779['on']('apply',(_0x50519f,_0x151867)=>{this['_replaceImage'](_0x31a5d9,_0x151867['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x282779['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x282779['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x1a8e45,_0x1c9f3a,_0x2aa512){const _0x2486f0=this['_editor'],{width:_0x2bca4e,height:_0x4753ff}=C(_0x1c9f3a,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x179aea,imageSources:_0x5876da}=k(_0x1c9f3a,_0x2bca4e);_0x2486f0['model']['change'](_0x3bacf8=>{if('$graveyard'===_0x1a8e45['root']['rootName']){_0x2486f0['execute']('insertImage',{'imageType':_0x1a8e45['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x1a8e45['getAttributes']()),'uploadcareImageId':_0x2aa512,'src':_0x179aea,'sources':_0x5876da,'width':_0x2bca4e,'height':_0x4753ff}});const _0x1df77e=_0x1a8e45['getChildren']();_0x1a8e45=_0x2486f0['model']['document']['selection']['getSelectedElement']();for(const _0x579b3b of _0x1df77e)_0x3bacf8['append'](_0x3bacf8['cloneElement'](_0x579b3b),_0x1a8e45);}else _0x3bacf8['setSelection'](_0x1a8e45,'on'),_0x2486f0['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x1a8e45['getAttributes']()),'uploadcareImageId':_0x2aa512,'src':_0x179aea,'sources':_0x5876da,'width':_0x2bca4e,'height':_0x4753ff},_0x1a8e45);_0x3bacf8['setSelection'](_0x1a8e45,'on');});}async['_getImageAsFile'](_0x44a6d8){const _0x45857e=_0x1e6b42['window'],_0x6fbee4=_0x1e6b42['document']['location']['href'],_0x1cde5b=new _0x45857e['URL'](_0x44a6d8['getAttribute']('src'),_0x6fbee4);if('data:'===_0x1cde5b['protocol']){const _0x541b0e=_0x1cde5b['href']['split'](','),_0x434b66=_0x541b0e[0x0]['match'](/:(.*?);/)[0x1],_0x53c241=_0x434b66['split']('/')[0x1],_0x585413=_0x45857e['atob'](_0x541b0e[_0x541b0e['length']-0x1]);let _0x17b965=_0x585413['length'];const _0xb7e80c=new _0x45857e['Uint8Array'](_0x17b965);for(;_0x17b965--;)_0xb7e80c[_0x17b965]=_0x585413['charCodeAt'](_0x17b965);return new _0x45857e['File']([_0xb7e80c],'image.'+_0x53c241,{'type':_0x434b66});}const _0x266dcf=_0x1cde5b['href']['split']('/'),_0x300b76=_0x266dcf[_0x266dcf['length']-0x1],_0x12f1b4=_0x300b76['split']('.')[0x1];return _0x45857e['fetch'](_0x1cde5b['href'])['then'](_0x23f10a=>_0x23f10a['clone']()['blob']())['then'](_0x215dbb=>new _0x45857e['File']([_0x215dbb],_0x300b76,{'type':'image/'+_0x12f1b4}));}}class O extends _0x537ce5{['imageEditController'];static get['requires'](){return[_0x337d90];}['_isEditable'];constructor(_0x448acf){super(_0x448acf),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x59b7e0){const _0xb1cd88=G(_0x59b7e0);return _0x5e3942=>!(!_0x5e3942||!_0x5e3942['is']('element','imageBlock')&&!_0x5e3942['is']('element','imageInline'))&&(!!_0x5e3942['hasAttribute']('uploadcareImageId')||!!_0x5e3942['hasAttribute']('src')&&_0xb1cd88(_0x5e3942['getAttribute']('src')));}(_0x448acf['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x698101=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x698101);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x5c5ab6=this['editor']['model']['document']['selection']['getSelectedElement']();_0x5c5ab6&&(_0x5c5ab6['is']('element','imageBlock')||_0x5c5ab6['is']('element','imageInline'))&&(this['imageEditController']=new E(this['editor'],this['editor']['plugins']['get'](_0x337d90),_0x5c5ab6),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class R extends _0x537ce5{['refresh'](){const _0x34e23d=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x34e23d&&(_0x34e23d['is']('element','imageBlock')||_0x34e23d['is']('element','imageInline')));}['execute'](_0x214ec0){const _0x3cf269=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x565076=>{_0x565076['setAttributes'](_0x214ec0,_0x3cf269),_0x565076['removeAttribute']('srcset',_0x3cf269),_0x565076['removeAttribute']('sizes',_0x3cf269);});}}class m extends _0x39631d{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[o,_0x11cfe2,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0xe45fc5}=this;_0xe45fc5['commands']['add']('uploadcareImageEdit',new O(_0xe45fc5)),_0xe45fc5['commands']['add']('uploadcareImageReplace',new R(_0xe45fc5));}}class g extends _0x39631d{['_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 _0x56f638=this['editor'];_0x56f638['ui']['componentFactory']['add']('uploadcareImageEdit',_0x5d31d2=>{const _0x353144=_0x56f638['commands']['get']('uploadcareImageEdit'),_0x2415a2=new _0x4a5ac7(_0x5d31d2),t=_0x5d31d2['t'];return _0x2415a2['set']({'icon':_0x11e3f7,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x2415a2['bind']('isEnabled')['to'](_0x353144),_0x2415a2['bind']('isOn')['to'](_0x353144,'isActive'),this['listenTo'](_0x2415a2,'execute',()=>{_0x56f638['execute']('uploadcareImageEdit'),_0x56f638['editing']['view']['focus']();}),_0x2415a2;}),this['_initConfig']();}['_initConfig'](){const _0x1e7668=_0x1098e0(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x1e7668),this['listenTo'](this['editor'],'destroy',()=>{_0x1e7668['remove']();});}}class et extends _0x39631d{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 _0x3121c6,Command as _0x5a8679}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x9f1444,IconGooglePhotos as _0x3cdd53,IconGoogleDrive as _0x1cb60f,IconFacebook as _0x505dce,IconDropbox as _0x392efd,IconUploadcareLink as _0x4393c1,IconUploadcareImageUpload as _0x280ac4,IconError as _0x493203,IconUploadcareImageEdit as _0x105cde}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x129811,MenuBarMenuListItemButtonView as _0x30ec5c,View as _0x245756,FocusCycler as _0x4c5a14,Dialog as _0x5444bb,DialogViewPosition as _0x5b63f2,SpinnerView as _0x3ba814,IconView as _0x23e5a5,Notification as _0xcc9eb3}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x402a08,DomEmitterMixin as _0x242d8b,global as _0x595290,getAncestors as _0x377cc2,ObservableMixin as _0x466e99,uid as _0x63562b,createElement as _0x3e93e9}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x25befe}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x3835b6,info as _0x42922e}from'@uploadcare/upload-client';import*as _0x34b332 from'@uploadcare/file-uploader';var i=function(_0x5b0b46){return _0x5b0b46['Local']='local',_0x5b0b46['URL']='url',_0x5b0b46['Dropbox']='dropbox',_0x5b0b46['GDrive']='gdrive',_0x5b0b46['Facebook']='facebook',_0x5b0b46['GPhotos']='gphotos',_0x5b0b46['OneDrive']='onedrive',_0x5b0b46;}({});function _(_0x2b7b50,_0x132f04,_0x2ad38a){const t=_0x2b7b50['t'],_0x5d8ea0=_0x2b7b50['t'];switch(_0x132f04){case i['Local']:return{'text':_0x5d8ea0('Insert'===_0x2ad38a?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x5d8ea0('From\x20computer')};case i['URL']:return{'text':'Insert'===_0x2ad38a?_0x5d8ea0('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x5d8ea0('Via\x20URL')};case i['Dropbox']:return{'text':t('Insert'===_0x2ad38a?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case i['Facebook']:return{'text':t('Insert'===_0x2ad38a?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case i['GDrive']:return{'text':t('Insert'===_0x2ad38a?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case i['GPhotos']:return{'text':t('Insert'===_0x2ad38a?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case i['OneDrive']:return{'text':t('Insert'===_0x2ad38a?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x132f04;}}class e extends _0x3121c6{['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 _0x12bf4d=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x1a8d0d;for(const _0x2c0957 in _0x12bf4d){const _0x580167=_0x2c0957,_0x58a73d=_0x12bf4d[_0x580167];if('uploadcareLicenseKeyValid'==_0x58a73d||'uploadcareLicenseKeyInvalid'==_0x58a73d||'uploadcareLicenseKeyExpired'==_0x58a73d||'uploadcareLicenseKeyDomainLimit'==_0x58a73d||'uploadcareLicenseKeyNotAllowed'==_0x58a73d||'uploadcareLicenseKeyEvaluationLimit'==_0x58a73d||'uploadcareLicenseKeyTrialLimit'==_0x58a73d||'uploadcareLicenseKeyUsageLimit'==_0x58a73d){delete _0x12bf4d[_0x580167],_0x1a8d0d=_0x58a73d,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x1a8d0d&&_0x12bf4d['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x1a8d0d&&_0x12bf4d['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x1a8d0d&&_0x12bf4d['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x1a8d0d&&_0x12bf4d['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x1a8d0d&&_0x12bf4d['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyTrialLimit'==_0x1a8d0d&&_0x12bf4d['_showLicenseError']('trialLimit'),'uploadcareLicenseKeyUsageLimit'==_0x1a8d0d&&_0x12bf4d['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x429a12}=this,_0x36b178=_0x429a12['commands']['get']('uploadcare');if(!_0x36b178)return;const _0x2ee134=this['_normalizeConfigSourceList'](_0x429a12['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x442a0f,_0x468510)=>{const _0x5d9d04=this['_getIntegrationKey'](_0x468510['type']);return _0x442a0f[_0x5d9d04]||(_0x442a0f[_0x5d9d04]=[]),_0x442a0f[_0x5d9d04]['push'](_0x468510),_0x442a0f;},{});_0x429a12['plugins']['has']('ImageInsertUI')&&_0x429a12['commands']['get']('uploadcare')&&Object['entries'](_0x2ee134)['forEach'](([_0x2d288c,_0x4ea861])=>{_0x429a12['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x2d288c,'observable':()=>_0x36b178,'buttonViewCreator':()=>this['_createToolbarButton'](_0x4ea861),'formViewCreator':()=>this['_createDropdownButtons'](_0x4ea861),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x4ea861),'override':'assetManager'!==_0x2d288c});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x202517){const {locale:_0x2a5ad2}=this['editor'];return _0x202517['map'](_0x356e5f=>{const _0x2c7591=_(_0x2a5ad2,_0x356e5f,'Insert');switch(_0x356e5f){case i['Local']:return{'icon':_0x280ac4,'type':i['Local'],..._0x2c7591};case i['URL']:return{'icon':_0x4393c1,'type':i['URL'],..._0x2c7591};case i['Dropbox']:return{'icon':_0x392efd,'type':i['Dropbox'],..._0x2c7591};case i['Facebook']:return{'icon':_0x505dce,'type':i['Facebook'],..._0x2c7591};case i['GDrive']:return{'icon':_0x1cb60f,'type':i['GDrive'],..._0x2c7591};case i['GPhotos']:return{'icon':_0x3cdd53,'type':i['GPhotos'],..._0x2c7591};case i['OneDrive']:return{'icon':_0x9f1444,'type':i['OneDrive'],..._0x2c7591};}});}['_getIntegrationKey'](_0x1a966c){switch(_0x1a966c){case i['Local']:return'upload';case i['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x6e3c0e,_0x46a43f){const _0x14bfa4=this['editor'],_0x468331=new _0x6e3c0e(_0x14bfa4['locale']),_0x5dcb6e=_0x14bfa4['commands']['get']('uploadcare');return _0x468331['bind']('isEnabled')['to'](_0x5dcb6e),_0x468331['on']('execute',()=>{_0x5dcb6e['execute'](_0x46a43f);}),_0x468331;}['_createToolbarButton'](_0x255d13){const {locale:_0x1b4413}=this['editor'],_0x178649=this['editor']['plugins']['get']('ImageInsertUI'),_0x203b07=_0x255d13[0x0],_0x8b4e6=this['_createButton'](_0x129811,_0x203b07['type']);return _0x8b4e6['icon']=_0x203b07['icon'],_0x8b4e6['bind']('label')['to'](_0x178649,'isImageSelected',_0x2d7e11=>_(_0x1b4413,_0x203b07['type'],_0x2d7e11?'Replace':'Insert')['text']),_0x8b4e6['tooltip']=!0x0,_0x8b4e6;}['_createDropdownButtons'](_0x534dd9){const {locale:_0x5d0bcc}=this['editor'],_0x40943d=this['editor']['plugins']['get']('ImageInsertUI');return _0x534dd9['map'](_0x29bc93=>{const _0x572a05=this['_createButton'](_0x129811,_0x29bc93['type']);return _0x572a05['withText']=!0x0,_0x572a05['icon']=_0x29bc93['icon'],_0x572a05['bind']('label')['to'](_0x40943d,'isImageSelected',_0x4aff7a=>_(_0x5d0bcc,_0x29bc93['type'],_0x4aff7a?'Replace':'Insert')['text']),_0x572a05;});}['_createMenuBarButtons'](_0x2eddfb){return _0x2eddfb['map'](_0x4b7a12=>{const _0x3401cc=this['_createButton'](_0x30ec5c,_0x4b7a12['type']);return _0x3401cc['icon']=_0x4b7a12['icon'],_0x3401cc['label']=_0x4b7a12['shortText'],_0x3401cc;});}}class F extends _0x245756{['focusTracker'];['focusCycler'];constructor(_0x4edbcf){super(_0x4edbcf),this['focusTracker']=new _0x402a08(),this['focusCycler']=new _0x4c5a14({'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(_0xc6f96f,_0x105086){super(_0xc6f96f),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-'+_0x105086}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}}function k(_0x35282c,_0x2046bc){const _0x1da5ad=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x121326=>_0x121326<=_0x2046bc)['map'](_0x490249=>_0x35282c['replace'](/\/$/,'')+'/-/resize/'+_0x490249+'x/\x20'+_0x490249+'w');return{'imageFallbackUrl':_0x35282c,'imageSources':[{'srcset':_0x1da5ad['join'](',\x20'),'sizes':'(max-width:\x20'+_0x2046bc+'px)\x20100vw,\x20'+_0x2046bc+'px','type':'image/webp'}]};}function C(_0x37e6ed,_0x555bd2,_0x5153e3){const _0x5ccdce=_0x37e6ed['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x5ccdce?parseInt(_0x5ccdce[0x1],0xa):_0x555bd2,'height':_0x5ccdce?parseInt(_0x5ccdce[0x2],0xa):_0x5153e3};}function p(_0x981b6e,_0x25ad5d){const _0x4c14fa=new(_0x242d8b())(),_0xf1a477=_0x981b6e['plugins']['get']('ImageUtils'),_0x479c00=_0x981b6e['editing']['mapper']['toViewElement'](_0x25ad5d),_0x38b1a=_0xf1a477['findViewImgElement'](_0x479c00),_0x5228ea=_0x981b6e['editing']['view']['domConverter']['viewToDom'](_0x38b1a),_0x447a5b=_0x25ad5d['getAttribute']('width'),_0x4352cb=_0x25ad5d['getAttribute']('height'),_0x4e68bf='image-processing';_0x981b6e['editing']['view']['change'](_0x42b778=>{_0x42b778['addClass'](_0x4e68bf,_0x479c00),_0x42b778['setStyle']('aspect-ratio',_0x447a5b+'/'+_0x4352cb,_0x38b1a);}),_0x4c14fa['listenTo'](_0x5228ea,'load',()=>{_0x4c14fa['stopListening'](_0x5228ea,'load'),_0x981b6e['editing']['view']['change'](_0x14a199=>{_0x14a199['removeClass'](_0x4e68bf,_0x479c00),_0x14a199['removeStyle']('aspect-ratio',_0x38b1a);});});}function G(_0x89a1e8){if(Array['isArray'](_0x89a1e8)){const _0x4e28c6=_0x89a1e8['map'](G);return _0x48fae2=>_0x4e28c6['some'](_0x3d6b25=>_0x3d6b25(_0x48fae2));}if('origin'==_0x89a1e8){const _0x49be0e=_0x595290['window']['location']['origin'];return _0x37c1a7=>new URL(_0x37c1a7,_0x595290['document']['baseURI'])['origin']==_0x49be0e;}return'function'==typeof _0x89a1e8?_0x89a1e8:_0x89a1e8 instanceof RegExp?_0x257844=>!(!_0x257844['match'](_0x89a1e8)&&!_0x257844['replace'](/^https?:\/\//,'')['match'](_0x89a1e8)):()=>!0x1;}function S(_0x19ab5f,_0x337a2f){return _0x377cc2(_0x19ab5f['target'])['includes'](_0x337a2f);}class n extends/* #__PURE__ -- @preserve */
24
+ _0x466e99(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x3b72ea,_0x3b9839,_0x52602d){super(),this['_editor']=_0x3b72ea,this['_editing']=_0x3b9839,this['_dialog']=_0x3b72ea['plugins']['get'](_0x5444bb),this['_api']=_0x3b9839['ctxElement']['getAPI'](),this['_type']=_0x52602d,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:_0x439655,model:_0x107e69}=this['_editor'],_0x4c10ac=_0x107e69['document']['selection']['getSelectedElement'](),_0x3f2bee=_0x4c10ac&&(_0x4c10ac['is']('element','imageBlock')||_0x4c10ac['is']('element','imageInline'));this['_formView']=new x(_0x439655,this['_editing']['ucContextId']),this['_dialog']['show']({'id':'uploadCare','icon':_0x280ac4,'title':_(_0x439655,this['_type'],_0x3f2bee?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x5b63f2['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x32a89c=>!S(_0x32a89c,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x23d881}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x4e0011=>{const _0x398296=_0x23d881['length'];for(const _0x8253ec of _0x23d881){const _0x575e47=_0x8253ec===_0x23d881[_0x398296-0x1],{cdnUrl:_0x1dbc4c,fileInfo:_0xb9ea28}=_0x8253ec;if(!_0x1dbc4c||!_0xb9ea28)continue;const {width:_0x636fc4,height:_0x1a778a}=_0xb9ea28['imageInfo'],_0x74ed52=C(_0x1dbc4c,_0x636fc4,_0x1a778a),_0x5db944=k(_0x1dbc4c,_0x74ed52['width']),_0x2b9cce={'id':_0xb9ea28['uuid'],'type':'image','attributes':{'imageDimension':_0x74ed52,..._0x5db944}};this['_insertAsset'](_0x2b9cce,_0x575e47,_0x4e0011);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x5cc9a9=>{'idle'===_0x5cc9a9['detail']['status']&&!_0x5cc9a9['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===i['Local']?this['_api']['setCurrentActivity'](i['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x321826,_0x1a65a0,_0x4bce93){const _0x2c7825=this['_editor']['model']['document']['selection'],_0xea684a=_0x2c7825['getSelectedElement'](),_0x4df1fb=!(!_0xea684a||!_0xea684a['is']('element','imageInline'));_0x4bce93['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x321826,_0x4df1fb),_0x1a65a0||_0x4bce93['setSelection'](_0x2c7825['getLastPosition']());}['_insertImage'](_0x2e103b,_0x51cae7){const _0x47c2dc=this['_editor'],{imageDimension:_0x55a5df,imageFallbackUrl:_0x3855e2,imageSources:_0x40870d}=_0x2e103b['attributes'];_0x47c2dc['execute']('insertImage',{'imageType':_0x51cae7?'imageInline':null,'source':{'uploadcareImageId':_0x2e103b['id'],'src':_0x3855e2,'sources':_0x40870d,..._0x55a5df}});}}class w extends _0x5a8679{['_editing'];['_controller']=null;static get['requires'](){return[_0x5444bb,o];}constructor(_0x18266a){super(_0x18266a),this['_editing']=_0x18266a['plugins']['get'](o);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x112541){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new n(this['editor'],this['_editing'],_0x112541);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class j{static['upload']({file:_0x411d17,publicKey:_0xaa21d2,signal:_0xc3f091,onProgress:_0x29f19b}){return _0x3835b6(_0x411d17,{'publicKey':_0xaa21d2,'store':'auto','signal':_0xc3f091,'onProgress':_0x29f19b});}static['getInfo'](_0x40a6e6,_0x4a6dc9){return _0x42922e(_0x40a6e6,_0x4a6dc9);}}class f extends _0x3121c6{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x25befe,o];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x182441=this['editor'];if(!!!_0x182441['config']['get']('uploadcare'))return;_0x182441['plugins']['get'](_0x25befe)['createUploadAdapter']=_0x28b604=>new A(_0x28b604,_0x182441),_0x182441['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x16162a,{imageElement:_0x1576a2,data:_0x4f6928})=>{_0x182441['model']['change'](_0x2f6253=>{_0x2f6253['setAttribute']('uploadcareImageId',_0x4f6928['uploadcareImageId'],_0x1576a2);});});}}class A{['loader'];['editor'];['controller'];constructor(_0x16a085,_0x1f9060){this['loader']=_0x16a085,this['editor']=_0x1f9060,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x3a08b5=this['editor']['config']['get']('uploadcare.pubkey'),_0x9484ca=await this['loader']['file'];return j['upload']({'file':_0x9484ca,'publicKey':_0x3a08b5,'signal':this['controller']['signal'],'onProgress':_0x1767a5=>{_0x1767a5&&_0x1767a5['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x1767a5['value']);}})['then'](async _0xd9bf1c=>{const {imageFallbackUrl:_0x2bda3d,imageSources:_0x16a26c}=k(_0xd9bf1c['cdnUrl'],_0xd9bf1c['imageInfo']['width']);return{'uploadcareImageId':_0xd9bf1c['uuid'],'default':_0x2bda3d,'sources':_0x16a26c};})['catch'](()=>{const _0x1d01de=t('Cannot\x20upload\x20file:')+('\x20'+_0x9484ca['name']+'.');return Promise['reject'](_0x1d01de);});}['abort'](){this['controller']['abort']();}}class o extends _0x3121c6{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',f,_0x5444bb];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['ucContextId'];get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}constructor(_0x2daa71){super(_0x2daa71),this['ucContextId']=_0x63562b();}['init'](){const _0x55ebb4=this['editor'];_0x55ebb4['commands']['add']('uploadcare',new w(_0x55ebb4));}['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 _0x3ac1f5=_0x595290['document']['querySelector']('input[uploadcare-file-input]');_0x3ac1f5&&_0x3ac1f5['remove']();}),async function(_0x22683f){const _0x470953=_0x5d8914([0x4d,0x52,0x79,0x65,0x74,0x76,0x37,0x58,0x55,0x4b,0x6b,0x64,0x42,0x33,0x56,0x49,0x53,0x6e,0x57,0x4c,0x6d,0x39,0x63,0x48,0x5a,0x54,0x4e,0x7a,0x59,0x61,0x70,0x77,0x47,0x6f,0x62,0x34,0x69,0x78,0x38,0x36,0x4a,0x66,0x6a,0x72,0x46,0x43,0x6c,0x75,0x50,0x4f,0x45,0x35,0x31,0x51,0x71,0x41,0x73,0x67,0x44,0x32,0x30,0x68]),_0x1128fc=0x1dfbad9a,_0x5a97fa=0x1dfcc102^_0x1128fc,_0x392643=window[_0x5d8914([0x44,0x61,0x74,0x65])][_0x5d8914([0x6e,0x6f,0x77])](),_0x21979e=_0x22683f[_0x5d8914([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x9ea513=new window[(_0x5d8914([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x57fd2e=>{_0x21979e[_0x5d8914([0x6f,0x6e,0x63,0x65])](_0x5d8914([0x72,0x65,0x61,0x64,0x79]),_0x57fd2e);}),_0xaad0b7={[_0x5d8914([0x6b,0x74,0x79])]:_0x5d8914([0x45,0x43]),[_0x5d8914([0x75,0x73,0x65])]:_0x5d8914([0x73,0x69,0x67]),[_0x5d8914([0x63,0x72,0x76])]:_0x5d8914([0x50,0x2d,0x32,0x35,0x36]),[_0x5d8914([0x78])]:_0x5d8914([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]),[_0x5d8914([0x79])]:_0x5d8914([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]),[_0x5d8914([0x61,0x6c,0x67])]:_0x5d8914([0x45,0x53,0x32,0x35,0x36])},_0x37b3a6=_0x21979e[_0x5d8914([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x5d8914([0x67,0x65,0x74])](_0x5d8914([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x323da1(){let _0x5393e2,_0x21c73a=null,_0x56bbbc=null;try{if(_0x37b3a6==_0x5d8914([0x47,0x50,0x4c]))return _0x5d8914([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x5393e2=_0x4f2b54(),!_0x5393e2)return _0x5d8914([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x5393e2[_0x5d8914([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x56bbbc=_0x32cee6(_0x5393e2[_0x5d8914([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x5393e2[_0x5d8914([0x6a,0x74,0x69])])),await _0x11ac5d()?_0x1d8c57()?_0x5d9011()?_0x5d8914([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0xb29438()?(_0x5393e2[_0x5d8914([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x5d8914([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x21c73a=_0x185015(_0x5d8914([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x5393e2[_0x5d8914([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x5d8914([0x74,0x72,0x69,0x61,0x6c])&&(_0x21c73a=_0x185015(_0x5d8914([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x4ae56f()):_0x5d8914([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x5d8914([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x5d8914([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x5d8914([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x5d9011(){const _0x53bc9f=[_0x5d8914([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x5d8914([0x74,0x72,0x69,0x61,0x6c])][_0x5d8914([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5393e2[_0x5d8914([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x392643/0x3e8:0xe10*_0x5a97fa;return _0x5393e2[_0x5d8914([0x65,0x78,0x70])]<_0x53bc9f;}function _0x1d8c57(){const _0x1e3ee1=_0x5393e2[_0x5d8914([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x1e3ee1&&(!!_0x1e3ee1[_0x5d8914([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5d8914([0x2a]))||!!_0x1e3ee1[_0x5d8914([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5d8914([0x55,0x50,0x4c,0x43])));}function _0xb29438(){const _0x145d1f=_0x5393e2[_0x5d8914([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x145d1f||0x0==_0x145d1f[_0x5d8914([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x4387c2}=new URL(window[_0x5d8914([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x145d1f[_0x5d8914([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4387c2))return!0x0;const _0x573150=_0x4387c2[_0x5d8914([0x73,0x70,0x6c,0x69,0x74])](_0x5d8914([0x2e]));return _0x145d1f[_0x5d8914([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x81c4ec=>_0x81c4ec[_0x5d8914([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5d8914([0x2a])))[_0x5d8914([0x6d,0x61,0x70])](_0x89a673=>_0x89a673[_0x5d8914([0x73,0x70,0x6c,0x69,0x74])](_0x5d8914([0x2e])))[_0x5d8914([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x1794e0=>_0x1794e0[_0x5d8914([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x573150[_0x5d8914([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x5d8914([0x6d,0x61,0x70])](_0xbff8f0=>Array(_0x573150[_0x5d8914([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0xbff8f0[_0x5d8914([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x5d8914([0x66,0x69,0x6c,0x6c])](_0xbff8f0[0x0]===_0x5d8914([0x2a])?_0x5d8914([0x2a]):'')[_0x5d8914([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0xbff8f0))[_0x5d8914([0x73,0x6f,0x6d,0x65])](_0x556caf=>_0x573150[_0x5d8914([0x65,0x76,0x65,0x72,0x79])]((_0x5c8c53,_0x4773f2)=>_0x556caf[_0x4773f2]===_0x5c8c53||_0x556caf[_0x4773f2]===_0x5d8914([0x2a])));}function _0x4ae56f(){return _0x21c73a&&_0x56bbbc?new window[(_0x5d8914([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4fd1a2,_0x5152c6)=>{_0x21c73a[_0x5d8914([0x74,0x68,0x65,0x6e])](_0x4fd1a2,_0x5152c6),_0x56bbbc[_0x5d8914([0x74,0x68,0x65,0x6e])](_0x1f7792=>{_0x1f7792!=_0x5d8914([0x56,0x61,0x6c,0x69,0x64])&&_0x4fd1a2(_0x1f7792);},_0x5152c6);}):_0x21c73a||_0x56bbbc||_0x5d8914([0x56,0x61,0x6c,0x69,0x64]);}}function _0x32cee6(_0x2eed1d,_0x49e91f){return new window[(_0x5d8914([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x25ea26=>{if(_0x13786())return _0x25ea26(_0x5d8914([0x56,0x61,0x6c,0x69,0x64]));_0x3b21bb(),_0x21979e[_0x5d8914([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x5d8914([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x391547=!0x1;const _0xe72f5e=_0x63562b();function _0x25c854(_0x120658){return!!_0x120658&&(typeof _0x120658===_0x5d8914([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x120658===_0x5d8914([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x120658[_0x5d8914([0x74,0x68,0x65,0x6e])]===_0x5d8914([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x120658[_0x5d8914([0x63,0x61,0x74,0x63,0x68])]===_0x5d8914([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x16301d(_0x5920a6){_0x5dca3d(_0x5920a6)[_0x5d8914([0x74,0x68,0x65,0x6e])](_0x1dea44=>{if(!_0x1dea44||_0x1dea44[_0x5d8914([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x5d8914([0x6f,0x6b]))return _0x5d8914([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x38982d(_0x1dcb13(_0xe72f5e+_0x49e91f))!=_0x1dea44[_0x5d8914([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x5d8914([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x5d8914([0x56,0x61,0x6c,0x69,0x64]);})[_0x5d8914([0x74,0x68,0x65,0x6e])](_0x638a0d=>(_0x637dca(),_0x638a0d),()=>{const _0x1f0d1c=_0x1d6660();return null==_0x1f0d1c?(_0x637dca(),_0x5d8914([0x56,0x61,0x6c,0x69,0x64])):_0x5d8914(_0x392643-_0x1f0d1c>(0x39f7299a^_0x1128fc)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x5d8914([0x74,0x68,0x65,0x6e])](_0x25ea26)[_0x5d8914([0x63,0x61,0x74,0x63,0x68])](()=>{_0x25ea26(_0x5d8914([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x52a8e7=0x1dcd431a^_0x1128fc;function _0x637dca(){const _0x46757f=_0x5d8914([0x6c,0x6c,0x63,0x74,0x2d])+_0x38982d(_0x1dcb13(_0x2eed1d)),_0xab8e0f=_0x503ab9(_0x38982d(window[_0x5d8914([0x4d,0x61,0x74,0x68])][_0x5d8914([0x63,0x65,0x69,0x6c])](_0x392643/_0x52a8e7)));window[_0x5d8914([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x5d8914([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x46757f,_0xab8e0f);}function _0x1d6660(){const _0x5ea12a=_0x5d8914([0x6c,0x6c,0x63,0x74,0x2d])+_0x38982d(_0x1dcb13(_0x2eed1d)),_0x465d96=window[_0x5d8914([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x5d8914([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x5ea12a);return _0x465d96?window[_0x5d8914([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x503ab9(_0x465d96),0x10)*_0x52a8e7:null;}function _0x5dca3d(_0x542713){return new window[(_0x5d8914([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x23f4d2,_0x53b7a2)=>{_0x542713[_0x5d8914([0x74,0x68,0x65,0x6e])](_0x23f4d2,_0x53b7a2),window[_0x5d8914([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x53b7a2,0x1dfa795a^_0x1128fc);});}}_0x21979e[_0x5d8914([0x6f,0x6e])](_0x5d8914([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x4bf93d,_0x53f60d)=>{if(_0x53f60d[0x0]!=_0x2eed1d)return _0x25ea26(_0x5d8914([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x53f60d[0x1]={..._0x53f60d[0x1],[_0x5d8914([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0xe72f5e};},{[_0x5d8914([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x5d8914([0x68,0x69,0x67,0x68])}),_0x21979e[_0x5d8914([0x6f,0x6e])](_0x5d8914([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x37c194=>{_0x25c854(_0x37c194[_0x5d8914([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x391547=!0x0,_0x16301d(_0x37c194[_0x5d8914([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x5d8914([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x5d8914([0x6c,0x6f,0x77])}),_0x9ea513[_0x5d8914([0x74,0x68,0x65,0x6e])](()=>{_0x391547||_0x25ea26(_0x5d8914([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x13786(){return _0x21979e[_0x5d8914([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5d8914([0x76,0x69,0x65,0x77])][_0x5d8914([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x5d8914([0x61,0x75,0x74,0x6f]);}function _0x3b21bb(){_0x21979e[_0x5d8914([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5d8914([0x76,0x69,0x65,0x77])][_0x5d8914([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x5d8914([0x61,0x75,0x74,0x6f]);}}function _0x185015(_0x1e051c){const _0x269fac=[new window[(_0x5d8914([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4d079e=>setTimeout(_0x4d079e,0x1df29356^_0x1128fc)),_0x9ea513[_0x5d8914([0x74,0x68,0x65,0x6e])](()=>new window[(_0x5d8914([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x13b7ac=>{let _0x1fdb61=0x0;_0x21979e[_0x5d8914([0x6d,0x6f,0x64,0x65,0x6c])][_0x5d8914([0x6f,0x6e])](_0x5d8914([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x24d494,_0x41567c)=>{_0x41567c[0x0][_0x5d8914([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x1fdb61++,_0x1fdb61==(0x1dfbac62^_0x1128fc)&&(_0x13b7ac(),_0x24d494[_0x5d8914([0x6f,0x66,0x66])]());});}))];return window[_0x5d8914([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x5d8914([0x72,0x61,0x63,0x65])](_0x269fac)[_0x5d8914([0x74,0x68,0x65,0x6e])](()=>_0x1e051c);}async function _0x26ba42(){await _0x9ea513,_0x21979e[_0x5d8914([0x6d,0x6f,0x64,0x65,0x6c])][_0x5d8914([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x4335fa,_0x21979e[_0x5d8914([0x6d,0x6f,0x64,0x65,0x6c])][_0x5d8914([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x4335fa,_0x21979e[_0x5d8914([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x5d8914([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x419b2c(_0x459d4d){const _0x34f282=_0x2c0fc6();_0x21979e[_0x34f282]=_0x5d8914([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x459d4d,_0x459d4d!=_0x5d8914([0x56,0x61,0x6c,0x69,0x64])&&_0x26ba42();}function _0x2c0fc6(){const _0x3b93a5=window[_0x5d8914([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x5d8914([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x5d8914([0x6e,0x6f,0x77])]())[_0x5d8914([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x5d8914([0x2e]),'');let _0x6c5840=_0x5d8914([0x4d]);for(let _0x3f8640=0x0;_0x3f8640<_0x3b93a5[_0x5d8914([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3f8640+=0x2){let _0x542842=window[_0x5d8914([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3b93a5[_0x5d8914([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3f8640,_0x3f8640+0x2));_0x542842>=_0x470953[_0x5d8914([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x542842-=_0x470953[_0x5d8914([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x6c5840+=_0x470953[_0x542842];}return _0x6c5840;}function _0x4f2b54(){const _0x65368c=_0x37b3a6[_0x5d8914([0x73,0x70,0x6c,0x69,0x74])](_0x5d8914([0x2e]));if(0x3!=_0x65368c[_0x5d8914([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x501632(_0x65368c[0x1]);function _0x501632(_0x39f7c1){const _0x187b9a=_0x41aa1c(_0x39f7c1);return _0x187b9a&&_0x48e640()?_0x187b9a:null;function _0x48e640(){const _0x308f1c=_0x187b9a[_0x5d8914([0x6a,0x74,0x69])],_0x2686f8=window[_0x5d8914([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x308f1c[_0x5d8914([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x308f1c[_0x5d8914([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x5126d3={..._0x187b9a,[_0x5d8914([0x6a,0x74,0x69])]:_0x308f1c[_0x5d8914([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x308f1c[_0x5d8914([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x5126d3[_0x5d8914([0x76,0x63])],_0x1dcb13(_0x5126d3)==_0x2686f8;}}}async function _0x11ac5d(){let _0xc5ddc0=!0x0;try{const _0x4f704a=_0x37b3a6[_0x5d8914([0x73,0x70,0x6c,0x69,0x74])](_0x5d8914([0x2e])),[_0x222bae,_0x5d6a5f,_0x38f0de]=_0x4f704a;return _0x468bc4(_0x222bae),await _0x5932e2(_0x222bae,_0x5d6a5f,_0x38f0de),_0xc5ddc0;}catch{return!0x1;}function _0x468bc4(_0x100daa){const _0x4f1f87=_0x41aa1c(_0x100daa);_0x4f1f87&&_0x4f1f87[_0x5d8914([0x61,0x6c,0x67])]==_0x5d8914([0x45,0x53,0x32,0x35,0x36])||(_0xc5ddc0=!0x1);}async function _0x5932e2(_0x15d748,_0x41ac10,_0x485033){const _0x391689=window[_0x5d8914([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x5d8914([0x66,0x72,0x6f,0x6d])](_0x3787ae(_0x485033),_0x95c470=>_0x95c470[_0x5d8914([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x34b8ac=new window[(_0x5d8914([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x5d8914([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x15d748+_0x5d8914([0x2e])+_0x41ac10),_0x10a81d=window[_0x5d8914([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x5d8914([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x10a81d)return;const _0x444659=await _0x10a81d[_0x5d8914([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x5d8914([0x6a,0x77,0x6b]),_0xaad0b7,{[_0x5d8914([0x6e,0x61,0x6d,0x65])]:_0x5d8914([0x45,0x43,0x44,0x53,0x41]),[_0x5d8914([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x5d8914([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x5d8914([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x10a81d[_0x5d8914([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x5d8914([0x6e,0x61,0x6d,0x65])]:_0x5d8914([0x45,0x43,0x44,0x53,0x41]),[_0x5d8914([0x68,0x61,0x73,0x68])]:{[_0x5d8914([0x6e,0x61,0x6d,0x65])]:_0x5d8914([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x444659,_0x391689,_0x34b8ac)||(_0xc5ddc0=!0x1);}}function _0x41aa1c(_0xf8d256){return _0xf8d256[_0x5d8914([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x5d8914([0x65,0x79]))?JSON[_0x5d8914([0x70,0x61,0x72,0x73,0x65])](_0x3787ae(_0xf8d256)):null;}function _0x3787ae(_0x19327f){return window[_0x5d8914([0x61,0x74,0x6f,0x62])](_0x19327f[_0x5d8914([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x5d8914([0x2b]))[_0x5d8914([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x5d8914([0x2f])));}function _0x1dcb13(_0x3d21f3){let _0x4851b2=0x1505;function _0x426052(_0x52f23a){for(let _0x2cd2f7=0x0;_0x2cd2f7<_0x52f23a[_0x5d8914([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2cd2f7++){const _0x213b3c=_0x52f23a[_0x5d8914([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x2cd2f7);_0x4851b2=(_0x4851b2<<0x5)+_0x4851b2+_0x213b3c,_0x4851b2&=_0x4851b2;}}function _0x27b85(_0x1e9bee){Array[_0x5d8914([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x1e9bee)?_0x1e9bee[_0x5d8914([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x27b85):_0x1e9bee&&typeof _0x1e9bee==_0x5d8914([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x5d8914([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x1e9bee)[_0x5d8914([0x73,0x6f,0x72,0x74])]()[_0x5d8914([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x9a3abe,_0x57e836])=>{_0x426052(_0x9a3abe),_0x27b85(_0x57e836);}):_0x426052(window[_0x5d8914([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x1e9bee));}return _0x27b85(_0x3d21f3),_0x4851b2>>>0x0;}function _0x38982d(_0x55df00){return _0x55df00[_0x5d8914([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x5d8914([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x5d8914([0x30]));}function _0x503ab9(_0x35b2bb){return _0x35b2bb[_0x5d8914([0x73,0x70,0x6c,0x69,0x74])]('')[_0x5d8914([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x5d8914([0x6a,0x6f,0x69,0x6e])]('');}function _0x4335fa(){}function _0x5d8914(_0x2e7aa1){return _0x2e7aa1['map'](_0x24abf2=>String['fromCharCode'](_0x24abf2))['join']('');}_0x419b2c(await _0x323da1());}(this);}['_initSchema'](){const _0x48962e=this['editor']['model']['schema'];_0x48962e['isRegistered']('imageBlock')&&_0x48962e['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x48962e['isRegistered']('imageInline')&&_0x48962e['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x3014c7=this['editor'];_0x3014c7['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x3014c7['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x2b1445=>_0x2b1445['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x3c8660=_0x3014c7['commands']['get']('replaceImageSource');_0x3c8660&&this['listenTo'](_0x3c8660,'cleanupImage',(_0x161b6d,[_0x3bc906,_0x3dffae])=>{_0x3bc906['removeAttribute']('uploadcareImageId',_0x3dffae);});}['_initConfig'](){const _0x45eb46=this['editor']['config']['get']('uploadcare.uploader')||{},_0x2a9bdb=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x3e93e9(_0x595290['document'],'uc-config',{..._0x45eb46,'pubkey':_0x2a9bdb,'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']=_0x28f446=>{if('closeMax'==_0x28f446)return'#uc-icon-arrow-down';},_0x595290['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x3e93e9(_0x595290['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader-'+this['ucContextId']}),_0x595290['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x3dd338=this['editor']['commands']['get']('insertImage');_0x3dd338&&this['listenTo'](_0x3dd338,'execute',()=>{const _0x20580c=this['editor']['model']['document']['selection']['getSelectedElement']();_0x20580c&&_0x20580c['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x20580c);});});const _0x3790e4=this['editor']['commands']['get']('uploadcareImageReplace');_0x3790e4&&this['listenTo'](_0x3790e4,'execute',()=>{const _0x2e6263=this['editor']['model']['document']['selection']['getSelectedElement']();_0x2e6263&&_0x2e6263['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x2e6263);});});}}class tt extends _0x3121c6{static get['requires'](){return[o,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x3e815d){super(_0x3e815d),_0x3e815d['config']['define']('uploadcare.uploader.sourceList',[i['Local'],i['URL']]),_0x34b332['defineComponents'](_0x34b332);}}class ii extends _0x245756{constructor(_0x51a77b){super(_0x51a77b);const t=_0x51a77b['t'],_0x22a6fd=this['bindTemplate'],_0x66ddcf=new _0x3ba814();_0x66ddcf['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':[_0x66ddcf,{'text':_0x22a6fd['to']('imageUploadProgress',_0x5b907a=>t('Loading\x20image...')+'\x20('+(_0x5b907a||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 _0x245756{constructor(_0x48f5cf){super(_0x48f5cf);const t=_0x48f5cf['t'];this['set']('errorType',null);const _0x38f9db=new _0x129811(_0x48f5cf);_0x38f9db['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x38f9db['withText']=!0x0,_0x38f9db['class']='ck-button-action',_0x38f9db['on']('execute',()=>{this['fire']('retry');}),_0x38f9db['bind']('isVisible')['to'](this,'errorType',_0x548421=>'NotFound'!==_0x548421);const _0x2e0137=new _0x23e5a5();_0x2e0137['content']=_0x493203,_0x2e0137['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x2ef583=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':[_0x2e0137,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x2ef583['to']('errorType',_0x31071b=>t('NotFound'!==_0x31071b?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x38f9db]},{'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 _0x245756{constructor(_0x4b6c70,_0x411493){super(_0x4b6c70);const _0x569a08=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x411493,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x569a08['to']('imageSrc')}});}}class X extends F{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x2bd724,_0x1a96c8,_0x10a278){super(_0x2bd724),this['_items']=this['createCollection'](),this['_loadingView']=new ii(_0x2bd724),this['_errorView']=new ti(_0x2bd724),this['_editingView']=new ei(_0x2bd724,_0x10a278),this['_focusableView']=new _0x245756(_0x2bd724),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x1a96c8),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'],_0x18e695=>{this['_addUploadcareImageEditorListeners'](_0x18e695);});}),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'](_0x2053e3,_0x50e2bb){const _0x53396a='uc-cloud-image-editor',_0x2ae744=_0x2053e3['querySelector'](_0x53396a);if(_0x2ae744)return _0x50e2bb(_0x2ae744);const _0x149091=new MutationObserver(_0x3cd787=>{const _0x51afc0=_0x3cd787['filter'](_0x92b475=>_0x92b475['target']===_0x2053e3&&_0x92b475['addedNodes']['length']>0x0&&_0x92b475['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x53396a);_0x51afc0['length']&&(_0x149091['disconnect'](),_0x50e2bb(_0x51afc0[0x0]['addedNodes'][0x0]));});_0x149091['observe'](_0x2053e3,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x3b46d6){_0x3b46d6['addEventListener']('apply',_0x1d8240=>{this['fire']('apply',{'imageSrc':_0x1d8240['detail']['cdnUrl']});}),_0x3b46d6['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class E extends/* #__PURE__ -- @preserve */
25
+ _0x466e99(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x53acd9,_0x5beab6,_0x2244f7){super(),this['_editor']=_0x53acd9,this['_dialog']=_0x5beab6,this['_imageElement']=_0x2244f7,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 _0x4a36c3=this['_imageElement'],_0x23a568=_0x4a36c3['getAttribute']('uploadcareImageId'),_0x56d065=_0x4a36c3['getAttribute']('src');if(_0x23a568)await this['_loadImageInfo'](_0x23a568,_0x56d065);else{if(this['_imageCache']['has'](_0x56d065)){const _0x239986=this['_imageCache']['get'](_0x56d065);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x239986['url'],this['imageDimension']=_0x239986['dimension'],this['imageId']=_0x239986['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x296f42}=this['_editor'],t=_0x296f42['t'],_0x1480f5=new X(_0x296f42,this['imageStatus'],this['_attributes']);_0x1480f5['bind']('status')['to'](this,'imageStatus'),_0x1480f5['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x1480f5['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x1480f5['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x1480f5,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x105cde,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x1480f5,'position':_0x5b63f2['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x1480f5['focus']();},'onHide':()=>{_0x1480f5['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x4d4bc6=>!S(_0x4d4bc6,_0x1480f5['element'])}});}['_loadImageInfo'](_0x161216,_0x66cfb1){return j['getInfo'](_0x161216,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey')})['then'](_0x2f122b=>{const {width:_0x4ab87c,height:_0x56ea0b}=_0x2f122b['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x66cfb1,this['imageDimension']={'width':_0x4ab87c,'height':_0x56ea0b},this['imageId']=_0x161216;})['catch'](_0x48b76d=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x48b76d['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x1d9831,_0x10b5bb){return this['_getImageAsFile'](_0x1d9831)['then'](_0x3df74c=>j['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'signal':_0x10b5bb['signal'],'file':_0x3df74c,'onProgress':_0x2a8014=>{_0x2a8014&&_0x2a8014['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x2a8014['value']));}}))['then'](_0x53d6aa=>{const {width:_0x286b8b,height:_0x36b289}=_0x53d6aa['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x53d6aa['cdnUrl'],this['imageDimension']={'width':_0x286b8b,'height':_0x36b289},this['imageId']=_0x53d6aa['uuid'],this['imageUploadProgress']=null;const _0x3b3011=_0x1d9831['getAttribute']('src');this['_imageCache']['set'](_0x3b3011,{'id':_0x53d6aa['uuid'],'url':_0x53d6aa['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x5de5dc=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x5de5dc['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x3b3f3f,_0x12cdac){_0x3b3f3f['on']('apply',(_0x45750a,_0x7539bd)=>{this['_replaceImage'](_0x12cdac,_0x7539bd['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x3b3f3f['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x3b3f3f['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x15c263,_0x287027,_0x2607d7){const _0x1ba1c7=this['_editor'],{width:_0x505bc6,height:_0x4e2d6c}=C(_0x287027,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x49aa64,imageSources:_0x513f2a}=k(_0x287027,_0x505bc6);_0x1ba1c7['model']['change'](_0x1011e4=>{if('$graveyard'===_0x15c263['root']['rootName']){_0x1ba1c7['execute']('insertImage',{'imageType':_0x15c263['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x15c263['getAttributes']()),'uploadcareImageId':_0x2607d7,'src':_0x49aa64,'sources':_0x513f2a,'width':_0x505bc6,'height':_0x4e2d6c}});const _0x638fc1=_0x15c263['getChildren']();_0x15c263=_0x1ba1c7['model']['document']['selection']['getSelectedElement']();for(const _0x5065d2 of _0x638fc1)_0x1011e4['append'](_0x1011e4['cloneElement'](_0x5065d2),_0x15c263);}else _0x1011e4['setSelection'](_0x15c263,'on'),_0x1ba1c7['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x15c263['getAttributes']()),'uploadcareImageId':_0x2607d7,'src':_0x49aa64,'sources':_0x513f2a,'width':_0x505bc6,'height':_0x4e2d6c},_0x15c263);_0x1011e4['setSelection'](_0x15c263,'on');});}async['_getImageAsFile'](_0x42cc3d){const _0x1ae670=_0x595290['window'],_0x1de44d=_0x595290['document']['location']['href'],_0x1b2c63=new _0x1ae670['URL'](_0x42cc3d['getAttribute']('src'),_0x1de44d);if('data:'===_0x1b2c63['protocol']){const _0xdcdc51=_0x1b2c63['href']['split'](','),_0x53ed18=_0xdcdc51[0x0]['match'](/:(.*?);/)[0x1],_0x2088ae=_0x53ed18['split']('/')[0x1],_0x44bf92=_0x1ae670['atob'](_0xdcdc51[_0xdcdc51['length']-0x1]);let _0x36903a=_0x44bf92['length'];const _0x1689f2=new _0x1ae670['Uint8Array'](_0x36903a);for(;_0x36903a--;)_0x1689f2[_0x36903a]=_0x44bf92['charCodeAt'](_0x36903a);return new _0x1ae670['File']([_0x1689f2],'image.'+_0x2088ae,{'type':_0x53ed18});}const _0x7a2c0d=_0x1b2c63['href']['split']('/'),_0x2e0bef=_0x7a2c0d[_0x7a2c0d['length']-0x1],_0x180f37=_0x2e0bef['split']('.')[0x1];return _0x1ae670['fetch'](_0x1b2c63['href'])['then'](_0x9589e=>_0x9589e['clone']()['blob']())['then'](_0x1bd927=>new _0x1ae670['File']([_0x1bd927],_0x2e0bef,{'type':'image/'+_0x180f37}));}}class O extends _0x5a8679{['imageEditController'];static get['requires'](){return[_0x5444bb];}['_isEditable'];constructor(_0x4735bc){super(_0x4735bc),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x31cf41){const _0x52178d=G(_0x31cf41);return _0x20e886=>!(!_0x20e886||!_0x20e886['is']('element','imageBlock')&&!_0x20e886['is']('element','imageInline'))&&(!!_0x20e886['hasAttribute']('uploadcareImageId')||!!_0x20e886['hasAttribute']('src')&&_0x52178d(_0x20e886['getAttribute']('src')));}(_0x4735bc['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x49bc1e=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x49bc1e);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0xa25a0e=this['editor']['model']['document']['selection']['getSelectedElement']();_0xa25a0e&&(_0xa25a0e['is']('element','imageBlock')||_0xa25a0e['is']('element','imageInline'))&&(this['imageEditController']=new E(this['editor'],this['editor']['plugins']['get'](_0x5444bb),_0xa25a0e),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class R extends _0x5a8679{['refresh'](){const _0x955557=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x955557&&(_0x955557['is']('element','imageBlock')||_0x955557['is']('element','imageInline')));}['execute'](_0x128e50){const _0x1f667e=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x4bf533=>{_0x4bf533['setAttributes'](_0x128e50,_0x1f667e),_0x4bf533['removeAttribute']('srcset',_0x1f667e),_0x4bf533['removeAttribute']('sizes',_0x1f667e);});}}class m extends _0x3121c6{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[o,_0xcc9eb3,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x1df9a8}=this;_0x1df9a8['commands']['add']('uploadcareImageEdit',new O(_0x1df9a8)),_0x1df9a8['commands']['add']('uploadcareImageReplace',new R(_0x1df9a8));}}class g extends _0x3121c6{['_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 _0xef8c99=this['editor'];_0xef8c99['ui']['componentFactory']['add']('uploadcareImageEdit',_0x1070c6=>{const _0x39b232=_0xef8c99['commands']['get']('uploadcareImageEdit'),_0x25ae0e=new _0x129811(_0x1070c6),t=_0x1070c6['t'];return _0x25ae0e['set']({'icon':_0x105cde,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x25ae0e['bind']('isEnabled')['to'](_0x39b232),_0x25ae0e['bind']('isOn')['to'](_0x39b232,'isActive'),this['listenTo'](_0x25ae0e,'execute',()=>{_0xef8c99['execute']('uploadcareImageEdit'),_0xef8c99['editing']['view']['focus']();}),_0x25ae0e;}),this['_initConfig']();}['_initConfig'](){const _0x26ce7b=_0x3e93e9(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x26ce7b),this['listenTo'](this['editor'],'destroy',()=>{_0x26ce7b['remove']();});}}class et extends _0x3121c6{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-20250703.0",
3
+ "version": "0.0.0-nightly-20250704.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-20250703.0",
27
- "@ckeditor/ckeditor5-icons": "0.0.0-nightly-20250703.0",
28
- "@ckeditor/ckeditor5-image": "0.0.0-nightly-20250703.0",
29
- "@ckeditor/ckeditor5-theme-lark": "0.0.0-nightly-20250703.0",
30
- "@ckeditor/ckeditor5-ui": "0.0.0-nightly-20250703.0",
31
- "@ckeditor/ckeditor5-upload": "0.0.0-nightly-20250703.0",
32
- "@ckeditor/ckeditor5-utils": "0.0.0-nightly-20250703.0",
33
- "ckeditor5": "0.0.0-nightly-20250703.0",
26
+ "@ckeditor/ckeditor5-core": "0.0.0-nightly-20250704.0",
27
+ "@ckeditor/ckeditor5-icons": "0.0.0-nightly-20250704.0",
28
+ "@ckeditor/ckeditor5-image": "0.0.0-nightly-20250704.0",
29
+ "@ckeditor/ckeditor5-theme-lark": "0.0.0-nightly-20250704.0",
30
+ "@ckeditor/ckeditor5-ui": "0.0.0-nightly-20250704.0",
31
+ "@ckeditor/ckeditor5-upload": "0.0.0-nightly-20250704.0",
32
+ "@ckeditor/ckeditor5-utils": "0.0.0-nightly-20250704.0",
33
+ "ckeditor5": "0.0.0-nightly-20250704.0",
34
34
  "@uploadcare/file-uploader": "1.16.3-alpha.0",
35
35
  "@uploadcare/upload-client": "6.14.3"
36
36
  },
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x50d38e=_0x57b3;(function(_0x1f62cf,_0x2bfc7c){const _0x5c82d1=_0x57b3,_0x3a2ab2=_0x1f62cf();while(!![]){try{const _0xbb2214=parseInt(_0x5c82d1(0x209))/0x1*(parseInt(_0x5c82d1(0x1f6))/0x2)+-parseInt(_0x5c82d1(0x1d3))/0x3+parseInt(_0x5c82d1(0x1e0))/0x4*(parseInt(_0x5c82d1(0x1e4))/0x5)+parseInt(_0x5c82d1(0x20a))/0x6*(-parseInt(_0x5c82d1(0x1ed))/0x7)+-parseInt(_0x5c82d1(0x1f3))/0x8+parseInt(_0x5c82d1(0x1ce))/0x9+-parseInt(_0x5c82d1(0x1df))/0xa*(parseInt(_0x5c82d1(0x1e9))/0xb);if(_0xbb2214===_0x2bfc7c)break;else _0x3a2ab2['push'](_0x3a2ab2['shift']());}catch(_0x533875){_0x3a2ab2['push'](_0x3a2ab2['shift']());}}}(_0x5e2d,0x5902f));import{Plugin as _0xbc0859}from'ckeditor5/src/core.js';import{Dialog as _0x5e2b87}from'ckeditor5/src/ui.js';import{createElement as _0x6121fb,global as _0x478856,uid as _0x527715}from'ckeditor5/src/utils.js';import{UploadcareCommand as _0x4f46a2}from'./uploadcarecommand.js';function _0x57b3(_0x4475dc,_0x3f4f6e){const _0x5e2d7b=_0x5e2d();return _0x57b3=function(_0x57b37f,_0x106783){_0x57b37f=_0x57b37f-0x1c9;let _0x29f41f=_0x5e2d7b[_0x57b37f];return _0x29f41f;},_0x57b3(_0x4475dc,_0x3f4f6e);}import{UploadcareUploadAdapter as _0x57d587}from'./uploadcareuploadadapter.js';function _0x5e2d(){const _0x410409=['config','_initConfig','_initImageProcessingIndicator','1770GSQhIT','1235244itmInv','extend','_ctxElement','get','5AlWLiZ','uploadcare.uploader','schema','model','destroy','23430VakMNq','getSelectedElement','for','selection','28oSaFOL','getAttribute','attributeToAttribute','join','uploadcareImageReplace','render','774912EdhaNL','uploader-','iconHrefResolver','2gkQgeJ','data-uc-image-id','UploadcareEditing','remove','contentLanguage','cleanupImage','upcast','insertImage','_configElement','uc-config','elementToAttribute','downcast','editor','isRegistered','ctxElement','closeMax','view','uploadcareImageId','map','615599eyWMHP','25752douYrv','_initConversion','imageInline','requires','ucContextId','body','removeAttribute','execute','_initSchema','init','href','locale','querySelector','_initCtx','#uc-icon-arrow-down','document','pluginName','true','editing','uploadcare.pubkey','isOfficialPlugin','\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','isPremiumPlugin','once','imageBlock','uploadcare','1177560BaUuNf','replaceImageSource','PictureEditing','add','fromCharCode','598851XDiBnA','uc-upload-ctx-provider','listenTo','conversion','appendChild','configElement','commands','afterInit','input[uploadcare-file-input]'];_0x5e2d=function(){return _0x410409;};return _0x5e2d();}import{showImageProcessingIndicator as _0x5cc4aa}from'./utils/editingutils.js';export class UploadcareEditing extends _0xbc0859{[_0x50d38e(0x1fe)]=null;[_0x50d38e(0x1e2)]=null;static get[_0x50d38e(0x21a)](){const _0x447622=_0x50d38e;return _0x447622(0x1f8);}static get[_0x50d38e(0x20d)](){const _0x4c47ac=_0x50d38e;return[_0x4c47ac(0x1d0),_0x57d587,_0x5e2b87];}static get[_0x50d38e(0x21e)](){return!0x0;}static get[_0x50d38e(0x1ca)](){return!0x0;}[_0x50d38e(0x20e)];get[_0x50d38e(0x1d8)](){const _0x33a3de=_0x50d38e;return this[_0x33a3de(0x1fe)];}get[_0x50d38e(0x204)](){const _0x3e204f=_0x50d38e;return this[_0x3e204f(0x1e2)];}constructor(_0x4a30b3){const _0xa79aa8=_0x50d38e;super(_0x4a30b3),this[_0xa79aa8(0x20e)]=_0x527715();}[_0x50d38e(0x213)](){const _0x1ac7ba=_0x50d38e,_0x59e459=this[_0x1ac7ba(0x202)];_0x59e459[_0x1ac7ba(0x1d9)][_0x1ac7ba(0x1d1)](_0x1ac7ba(0x1cd),new _0x4f46a2(_0x59e459));}[_0x50d38e(0x1da)](){const _0x3e558e=_0x50d38e;this[_0x3e558e(0x212)](),this[_0x3e558e(0x20b)](),this[_0x3e558e(0x1dd)](),this[_0x3e558e(0x217)](),this[_0x3e558e(0x1de)](),this[_0x3e558e(0x1d5)](this[_0x3e558e(0x202)],_0x3e558e(0x1e8),()=>{const _0x4be660=_0x3e558e;this[_0x4be660(0x1fe)]&&(this[_0x4be660(0x1fe)][_0x4be660(0x1f9)](),this[_0x4be660(0x1fe)]=null),this[_0x4be660(0x1e2)]&&(this[_0x4be660(0x1e2)][_0x4be660(0x1f9)](),this[_0x4be660(0x1e2)]=null);const _0x1bdbc9=_0x478856[_0x4be660(0x219)][_0x4be660(0x216)](_0x4be660(0x1db));_0x1bdbc9&&_0x1bdbc9[_0x4be660(0x1f9)]();}),async function(_0x1a8710){const _0x33cc44=_0x4ab55f([0x66,0x39,0x65,0x4e,0x44,0x34,0x6a,0x4f,0x6b,0x31,0x52,0x4a,0x37,0x43,0x77,0x55,0x63,0x36,0x6c,0x38,0x58,0x53,0x32,0x45,0x33,0x76,0x6d,0x67,0x69,0x50,0x74,0x57,0x73,0x61,0x5a,0x4b,0x7a,0x6e,0x68,0x71,0x46,0x51,0x64,0x42,0x79,0x59,0x4d,0x47,0x75,0x72,0x48,0x54,0x41,0x56,0x6f,0x4c,0x35,0x49,0x30,0x62,0x70,0x78]),_0x5191d2=0x442d3be8,_0x5ae790=0x442a5768^_0x5191d2,_0x3dfb95=window[_0x4ab55f([0x44,0x61,0x74,0x65])][_0x4ab55f([0x6e,0x6f,0x77])](),_0x1380ca=_0x1a8710[_0x4ab55f([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x3f63df=new window[(_0x4ab55f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x45368d=>{_0x1380ca[_0x4ab55f([0x6f,0x6e,0x63,0x65])](_0x4ab55f([0x72,0x65,0x61,0x64,0x79]),_0x45368d);}),_0x512bbd={[_0x4ab55f([0x6b,0x74,0x79])]:_0x4ab55f([0x45,0x43]),[_0x4ab55f([0x75,0x73,0x65])]:_0x4ab55f([0x73,0x69,0x67]),[_0x4ab55f([0x63,0x72,0x76])]:_0x4ab55f([0x50,0x2d,0x32,0x35,0x36]),[_0x4ab55f([0x78])]:_0x4ab55f([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]),[_0x4ab55f([0x79])]:_0x4ab55f([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]),[_0x4ab55f([0x61,0x6c,0x67])]:_0x4ab55f([0x45,0x53,0x32,0x35,0x36])},_0x494f25=_0x1380ca[_0x4ab55f([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x4ab55f([0x67,0x65,0x74])](_0x4ab55f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x38ae81(){let _0x507450,_0x26c8fd=null,_0x29b800=null;try{if(_0x494f25==_0x4ab55f([0x47,0x50,0x4c]))return _0x4ab55f([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x507450=_0x15a3f4(),!_0x507450)return _0x4ab55f([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x507450[_0x4ab55f([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x29b800=_0x386338(_0x507450[_0x4ab55f([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x507450[_0x4ab55f([0x6a,0x74,0x69])])),await _0x32532d()?_0x42743c()?_0x4f779b()?_0x4ab55f([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x133e30()?(_0x507450[_0x4ab55f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x4ab55f([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x26c8fd=_0x3b24a5(_0x4ab55f([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x507450[_0x4ab55f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x4ab55f([0x74,0x72,0x69,0x61,0x6c])&&(_0x26c8fd=_0x3b24a5(_0x4ab55f([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x543c09()):_0x4ab55f([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x4ab55f([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x4ab55f([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x4ab55f([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x4f779b(){const _0x2d0569=[_0x4ab55f([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x4ab55f([0x74,0x72,0x69,0x61,0x6c])][_0x4ab55f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x507450[_0x4ab55f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x3dfb95/0x3e8:0xe10*_0x5ae790;return _0x507450[_0x4ab55f([0x65,0x78,0x70])]<_0x2d0569;}function _0x42743c(){const _0x31f15b=_0x507450[_0x4ab55f([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x31f15b&&(!!_0x31f15b[_0x4ab55f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4ab55f([0x2a]))||!!_0x31f15b[_0x4ab55f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4ab55f([0x55,0x50,0x4c,0x43])));}function _0x133e30(){const _0x300723=_0x57b3,_0x726b42=_0x507450[_0x4ab55f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x726b42||0x0==_0x726b42[_0x4ab55f([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x349545}=new URL(window[_0x4ab55f([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x300723(0x214)]);if(_0x726b42[_0x4ab55f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x349545))return!0x0;const _0x26b5bb=_0x349545[_0x4ab55f([0x73,0x70,0x6c,0x69,0x74])](_0x4ab55f([0x2e]));return _0x726b42[_0x4ab55f([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x3b0025=>_0x3b0025[_0x4ab55f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4ab55f([0x2a])))[_0x4ab55f([0x6d,0x61,0x70])](_0x5a92c2=>_0x5a92c2[_0x4ab55f([0x73,0x70,0x6c,0x69,0x74])](_0x4ab55f([0x2e])))[_0x4ab55f([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x32744b=>_0x32744b[_0x4ab55f([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x26b5bb[_0x4ab55f([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x4ab55f([0x6d,0x61,0x70])](_0x3853eb=>Array(_0x26b5bb[_0x4ab55f([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x3853eb[_0x4ab55f([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x4ab55f([0x66,0x69,0x6c,0x6c])](_0x3853eb[0x0]===_0x4ab55f([0x2a])?_0x4ab55f([0x2a]):'')[_0x4ab55f([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x3853eb))[_0x4ab55f([0x73,0x6f,0x6d,0x65])](_0x315041=>_0x26b5bb[_0x4ab55f([0x65,0x76,0x65,0x72,0x79])]((_0x4b30ea,_0x170a97)=>_0x315041[_0x170a97]===_0x4b30ea||_0x315041[_0x170a97]===_0x4ab55f([0x2a])));}function _0x543c09(){return _0x26c8fd&&_0x29b800?new window[(_0x4ab55f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x381ef6,_0x395c3d)=>{_0x26c8fd[_0x4ab55f([0x74,0x68,0x65,0x6e])](_0x381ef6,_0x395c3d),_0x29b800[_0x4ab55f([0x74,0x68,0x65,0x6e])](_0x2329a8=>{_0x2329a8!=_0x4ab55f([0x56,0x61,0x6c,0x69,0x64])&&_0x381ef6(_0x2329a8);},_0x395c3d);}):_0x26c8fd||_0x29b800||_0x4ab55f([0x56,0x61,0x6c,0x69,0x64]);}}function _0x386338(_0x43f5a4,_0x113cc2){return new window[(_0x4ab55f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x32c8ea=>{if(_0x36b488())return _0x32c8ea(_0x4ab55f([0x56,0x61,0x6c,0x69,0x64]));_0x4a743b(),_0x1380ca[_0x4ab55f([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x4ab55f([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x1472fd=!0x1;const _0xbb88a5=_0x527715();function _0x180514(_0x18c9ec){return!!_0x18c9ec&&(typeof _0x18c9ec===_0x4ab55f([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x18c9ec===_0x4ab55f([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x18c9ec[_0x4ab55f([0x74,0x68,0x65,0x6e])]===_0x4ab55f([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x18c9ec[_0x4ab55f([0x63,0x61,0x74,0x63,0x68])]===_0x4ab55f([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x4e9367(_0x3d898e){_0x875afd(_0x3d898e)[_0x4ab55f([0x74,0x68,0x65,0x6e])](_0x3e02ef=>{if(!_0x3e02ef||_0x3e02ef[_0x4ab55f([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x4ab55f([0x6f,0x6b]))return _0x4ab55f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x4b5bd6(_0x4db476(_0xbb88a5+_0x113cc2))!=_0x3e02ef[_0x4ab55f([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x4ab55f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x4ab55f([0x56,0x61,0x6c,0x69,0x64]);})[_0x4ab55f([0x74,0x68,0x65,0x6e])](_0x2613f4=>(_0x455f5f(),_0x2613f4),()=>{const _0x2222bb=_0x3b36d0();return null==_0x2222bb?(_0x455f5f(),_0x4ab55f([0x56,0x61,0x6c,0x69,0x64])):_0x4ab55f(_0x3dfb95-_0x2222bb>(0x6021bfe8^_0x5191d2)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x4ab55f([0x74,0x68,0x65,0x6e])](_0x32c8ea)[_0x4ab55f([0x63,0x61,0x74,0x63,0x68])](()=>{_0x32c8ea(_0x4ab55f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x55f5f2=0x441bd568^_0x5191d2;function _0x455f5f(){const _0x3a2c1a=_0x4ab55f([0x6c,0x6c,0x63,0x74,0x2d])+_0x4b5bd6(_0x4db476(_0x43f5a4)),_0x3c2900=_0x246d84(_0x4b5bd6(window[_0x4ab55f([0x4d,0x61,0x74,0x68])][_0x4ab55f([0x63,0x65,0x69,0x6c])](_0x3dfb95/_0x55f5f2)));window[_0x4ab55f([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4ab55f([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3a2c1a,_0x3c2900);}function _0x3b36d0(){const _0x12b0bd=_0x4ab55f([0x6c,0x6c,0x63,0x74,0x2d])+_0x4b5bd6(_0x4db476(_0x43f5a4)),_0x1dbf5f=window[_0x4ab55f([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4ab55f([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x12b0bd);return _0x1dbf5f?window[_0x4ab55f([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x246d84(_0x1dbf5f),0x10)*_0x55f5f2:null;}function _0x875afd(_0x39d2c7){return new window[(_0x4ab55f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x43a205,_0x4fb93a)=>{_0x39d2c7[_0x4ab55f([0x74,0x68,0x65,0x6e])](_0x43a205,_0x4fb93a),window[_0x4ab55f([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x4fb93a,0x442cef28^_0x5191d2);});}}_0x1380ca[_0x4ab55f([0x6f,0x6e])](_0x4ab55f([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x48533b,_0x5a7207)=>{if(_0x5a7207[0x0]!=_0x43f5a4)return _0x32c8ea(_0x4ab55f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x5a7207[0x1]={..._0x5a7207[0x1],[_0x4ab55f([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0xbb88a5};},{[_0x4ab55f([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4ab55f([0x68,0x69,0x67,0x68])}),_0x1380ca[_0x4ab55f([0x6f,0x6e])](_0x4ab55f([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x454229=>{_0x180514(_0x454229[_0x4ab55f([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x1472fd=!0x0,_0x4e9367(_0x454229[_0x4ab55f([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x4ab55f([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4ab55f([0x6c,0x6f,0x77])}),_0x3f63df[_0x4ab55f([0x74,0x68,0x65,0x6e])](()=>{_0x1472fd||_0x32c8ea(_0x4ab55f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x36b488(){return _0x1380ca[_0x4ab55f([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4ab55f([0x76,0x69,0x65,0x77])][_0x4ab55f([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x4ab55f([0x61,0x75,0x74,0x6f]);}function _0x4a743b(){_0x1380ca[_0x4ab55f([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4ab55f([0x76,0x69,0x65,0x77])][_0x4ab55f([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x4ab55f([0x61,0x75,0x74,0x6f]);}}function _0x3b24a5(_0x211b0d){const _0x164a0e=[new window[(_0x4ab55f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1dca9e=>setTimeout(_0x1dca9e,0x44240524^_0x5191d2)),_0x3f63df[_0x4ab55f([0x74,0x68,0x65,0x6e])](()=>new window[(_0x4ab55f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1c1ceb=>{let _0x2324e3=0x0;_0x1380ca[_0x4ab55f([0x6d,0x6f,0x64,0x65,0x6c])][_0x4ab55f([0x6f,0x6e])](_0x4ab55f([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x4fff5f,_0x1a1e64)=>{_0x1a1e64[0x0][_0x4ab55f([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x2324e3++,_0x2324e3==(0x442d3a10^_0x5191d2)&&(_0x1c1ceb(),_0x4fff5f[_0x4ab55f([0x6f,0x66,0x66])]());});}))];return window[_0x4ab55f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x4ab55f([0x72,0x61,0x63,0x65])](_0x164a0e)[_0x4ab55f([0x74,0x68,0x65,0x6e])](()=>_0x211b0d);}async function _0x5048a4(){await _0x3f63df,_0x1380ca[_0x4ab55f([0x6d,0x6f,0x64,0x65,0x6c])][_0x4ab55f([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0xc5e053,_0x1380ca[_0x4ab55f([0x6d,0x6f,0x64,0x65,0x6c])][_0x4ab55f([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0xc5e053,_0x1380ca[_0x4ab55f([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x4ab55f([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x416357(_0x2b444d){const _0x54bb05=_0x39d136();_0x1380ca[_0x54bb05]=_0x4ab55f([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x2b444d,_0x2b444d!=_0x4ab55f([0x56,0x61,0x6c,0x69,0x64])&&_0x5048a4();}function _0x39d136(){const _0x59f1fc=window[_0x4ab55f([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x4ab55f([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x4ab55f([0x6e,0x6f,0x77])]())[_0x4ab55f([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x4ab55f([0x2e]),'');let _0x425681=_0x4ab55f([0x66]);for(let _0x1a4505=0x0;_0x1a4505<_0x59f1fc[_0x4ab55f([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1a4505+=0x2){let _0x4a9755=window[_0x4ab55f([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x59f1fc[_0x4ab55f([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x1a4505,_0x1a4505+0x2));_0x4a9755>=_0x33cc44[_0x4ab55f([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x4a9755-=_0x33cc44[_0x4ab55f([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x425681+=_0x33cc44[_0x4a9755];}return _0x425681;}function _0x15a3f4(){const _0x3e3919=_0x494f25[_0x4ab55f([0x73,0x70,0x6c,0x69,0x74])](_0x4ab55f([0x2e]));if(0x3!=_0x3e3919[_0x4ab55f([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x316091(_0x3e3919[0x1]);function _0x316091(_0x37d286){const _0x1e3d2f=_0x5855af(_0x37d286);return _0x1e3d2f&&_0x2c928b()?_0x1e3d2f:null;function _0x2c928b(){const _0x4192a3=_0x1e3d2f[_0x4ab55f([0x6a,0x74,0x69])],_0xf5fc2e=window[_0x4ab55f([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4192a3[_0x4ab55f([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4192a3[_0x4ab55f([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x39acee={..._0x1e3d2f,[_0x4ab55f([0x6a,0x74,0x69])]:_0x4192a3[_0x4ab55f([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x4192a3[_0x4ab55f([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x39acee[_0x4ab55f([0x76,0x63])],_0x4db476(_0x39acee)==_0xf5fc2e;}}}async function _0x32532d(){let _0x40cf35=!0x0;try{const _0x1b9257=_0x494f25[_0x4ab55f([0x73,0x70,0x6c,0x69,0x74])](_0x4ab55f([0x2e])),[_0x5e6124,_0x303d15,_0x454517]=_0x1b9257;return _0x494cd0(_0x5e6124),await _0x23ef0c(_0x5e6124,_0x303d15,_0x454517),_0x40cf35;}catch{return!0x1;}function _0x494cd0(_0x563a02){const _0xae74f3=_0x5855af(_0x563a02);_0xae74f3&&_0xae74f3[_0x4ab55f([0x61,0x6c,0x67])]==_0x4ab55f([0x45,0x53,0x32,0x35,0x36])||(_0x40cf35=!0x1);}async function _0x23ef0c(_0x58643c,_0x1f1035,_0x28b206){const _0x38f0ca=window[_0x4ab55f([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x4ab55f([0x66,0x72,0x6f,0x6d])](_0x47ecb1(_0x28b206),_0x324963=>_0x324963[_0x4ab55f([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x5aee1c=new window[(_0x4ab55f([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x4ab55f([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x58643c+_0x4ab55f([0x2e])+_0x1f1035),_0x1c8110=window[_0x4ab55f([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x4ab55f([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x1c8110)return;const _0x4a2304=await _0x1c8110[_0x4ab55f([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x4ab55f([0x6a,0x77,0x6b]),_0x512bbd,{[_0x4ab55f([0x6e,0x61,0x6d,0x65])]:_0x4ab55f([0x45,0x43,0x44,0x53,0x41]),[_0x4ab55f([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x4ab55f([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x4ab55f([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x1c8110[_0x4ab55f([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x4ab55f([0x6e,0x61,0x6d,0x65])]:_0x4ab55f([0x45,0x43,0x44,0x53,0x41]),[_0x4ab55f([0x68,0x61,0x73,0x68])]:{[_0x4ab55f([0x6e,0x61,0x6d,0x65])]:_0x4ab55f([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x4a2304,_0x38f0ca,_0x5aee1c)||(_0x40cf35=!0x1);}}function _0x5855af(_0xee57d1){return _0xee57d1[_0x4ab55f([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x4ab55f([0x65,0x79]))?JSON[_0x4ab55f([0x70,0x61,0x72,0x73,0x65])](_0x47ecb1(_0xee57d1)):null;}function _0x47ecb1(_0x5b83db){return window[_0x4ab55f([0x61,0x74,0x6f,0x62])](_0x5b83db[_0x4ab55f([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x4ab55f([0x2b]))[_0x4ab55f([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x4ab55f([0x2f])));}function _0x4db476(_0x529fdf){let _0x23d11d=0x1505;function _0x4a4ea9(_0xca91fe){for(let _0x43f873=0x0;_0x43f873<_0xca91fe[_0x4ab55f([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x43f873++){const _0x3b47ef=_0xca91fe[_0x4ab55f([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x43f873);_0x23d11d=(_0x23d11d<<0x5)+_0x23d11d+_0x3b47ef,_0x23d11d&=_0x23d11d;}}function _0x238ad0(_0x13df9e){Array[_0x4ab55f([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x13df9e)?_0x13df9e[_0x4ab55f([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x238ad0):_0x13df9e&&typeof _0x13df9e==_0x4ab55f([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x4ab55f([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x13df9e)[_0x4ab55f([0x73,0x6f,0x72,0x74])]()[_0x4ab55f([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0xf6df82,_0x39e1b4])=>{_0x4a4ea9(_0xf6df82),_0x238ad0(_0x39e1b4);}):_0x4a4ea9(window[_0x4ab55f([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x13df9e));}return _0x238ad0(_0x529fdf),_0x23d11d>>>0x0;}function _0x4b5bd6(_0x1eba9a){return _0x1eba9a[_0x4ab55f([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x4ab55f([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x4ab55f([0x30]));}function _0x246d84(_0xc32375){return _0xc32375[_0x4ab55f([0x73,0x70,0x6c,0x69,0x74])]('')[_0x4ab55f([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x4ab55f([0x6a,0x6f,0x69,0x6e])]('');}function _0xc5e053(){}function _0x4ab55f(_0x8fd2d6){const _0xf4d233=_0x57b3;return _0x8fd2d6[_0xf4d233(0x208)](_0x315a3d=>String[_0xf4d233(0x1d2)](_0x315a3d))[_0xf4d233(0x1f0)]('');}_0x416357(await _0x38ae81());}(this);}[_0x50d38e(0x212)](){const _0x90a053=_0x50d38e,_0x29fe79=this[_0x90a053(0x202)][_0x90a053(0x1e7)][_0x90a053(0x1e6)];_0x29fe79[_0x90a053(0x203)](_0x90a053(0x1cc))&&_0x29fe79[_0x90a053(0x1e1)](_0x90a053(0x1cc),{'allowAttributes':[_0x90a053(0x207)]}),_0x29fe79[_0x90a053(0x203)](_0x90a053(0x20c))&&_0x29fe79[_0x90a053(0x1e1)](_0x90a053(0x20c),{'allowAttributes':[_0x90a053(0x207)]});}[_0x50d38e(0x20b)](){const _0x3cbfad=_0x50d38e,_0x3cebfb=this[_0x3cbfad(0x202)];_0x3cebfb[_0x3cbfad(0x1d6)][_0x3cbfad(0x1eb)](_0x3cbfad(0x201))[_0x3cbfad(0x1ef)]({'model':_0x3cbfad(0x207),'view':_0x3cbfad(0x1f7)}),_0x3cebfb[_0x3cbfad(0x1d6)][_0x3cbfad(0x1eb)](_0x3cbfad(0x1fc))[_0x3cbfad(0x200)]({'model':{'key':_0x3cbfad(0x207),'value':_0x4dcee4=>_0x4dcee4[_0x3cbfad(0x1ee)](_0x3cbfad(0x1f7))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x591ae3=_0x3cebfb[_0x3cbfad(0x1d9)][_0x3cbfad(0x1e3)](_0x3cbfad(0x1cf));_0x591ae3&&this[_0x3cbfad(0x1d5)](_0x591ae3,_0x3cbfad(0x1fb),(_0x1310d1,[_0xa58849,_0x31cd64])=>{const _0x23f15e=_0x3cbfad;_0xa58849[_0x23f15e(0x210)](_0x23f15e(0x207),_0x31cd64);});}[_0x50d38e(0x1dd)](){const _0x4729de=_0x50d38e,_0x5671ad=this[_0x4729de(0x202)][_0x4729de(0x1dc)][_0x4729de(0x1e3)](_0x4729de(0x1e5))||{},_0x1ea7c2=this[_0x4729de(0x202)][_0x4729de(0x1dc)][_0x4729de(0x1e3)](_0x4729de(0x21d))||'';this[_0x4729de(0x1fe)]=_0x6121fb(_0x478856[_0x4729de(0x219)],_0x4729de(0x1ff),{..._0x5671ad,'pubkey':_0x1ea7c2,'ctx-name':_0x4729de(0x1f4)+this[_0x4729de(0x20e)],'sourceList':'','imgOnly':_0x4729de(0x21b),'removeCopyright':_0x4729de(0x21b),'localeName':this[_0x4729de(0x202)][_0x4729de(0x215)][_0x4729de(0x1fa)],'externalSourcesEmbedCss':_0x4729de(0x1c9)}),this[_0x4729de(0x1fe)][_0x4729de(0x1f5)]=_0x2289d9=>{const _0x57eb20=_0x4729de;if(_0x57eb20(0x205)==_0x2289d9)return _0x57eb20(0x218);},_0x478856[_0x4729de(0x219)][_0x4729de(0x20f)][_0x4729de(0x1d7)](this[_0x4729de(0x1fe)]);}[_0x50d38e(0x217)](){const _0x262af9=_0x50d38e;this[_0x262af9(0x1e2)]=_0x6121fb(_0x478856[_0x262af9(0x219)],_0x262af9(0x1d4),{'ctx-name':_0x262af9(0x1f4)+this[_0x262af9(0x20e)]}),_0x478856[_0x262af9(0x219)][_0x262af9(0x20f)][_0x262af9(0x1d7)](this[_0x262af9(0x1e2)]);}[_0x50d38e(0x1de)](){const _0x323fdf=_0x50d38e,_0x56a257=this[_0x323fdf(0x202)][_0x323fdf(0x1d9)][_0x323fdf(0x1e3)](_0x323fdf(0x1fd));_0x56a257&&this[_0x323fdf(0x1d5)](_0x56a257,_0x323fdf(0x211),()=>{const _0x3a2754=_0x323fdf,_0x18df2d=this[_0x3a2754(0x202)][_0x3a2754(0x1e7)][_0x3a2754(0x219)][_0x3a2754(0x1ec)][_0x3a2754(0x1ea)]();_0x18df2d&&_0x18df2d[_0x3a2754(0x1ee)](_0x3a2754(0x207))&&this[_0x3a2754(0x202)][_0x3a2754(0x21c)][_0x3a2754(0x206)][_0x3a2754(0x1cb)](_0x3a2754(0x1f2),()=>{const _0x1a1baa=_0x3a2754;_0x5cc4aa(this[_0x1a1baa(0x202)],_0x18df2d);});});const _0x2f2652=this[_0x323fdf(0x202)][_0x323fdf(0x1d9)][_0x323fdf(0x1e3)](_0x323fdf(0x1f1));_0x2f2652&&this[_0x323fdf(0x1d5)](_0x2f2652,_0x323fdf(0x211),()=>{const _0x17d709=_0x323fdf,_0x53858d=this[_0x17d709(0x202)][_0x17d709(0x1e7)][_0x17d709(0x219)][_0x17d709(0x1ec)][_0x17d709(0x1ea)]();_0x53858d&&_0x53858d[_0x17d709(0x1ee)](_0x17d709(0x207))&&this[_0x17d709(0x202)][_0x17d709(0x21c)][_0x17d709(0x206)][_0x17d709(0x1cb)](_0x17d709(0x1f2),()=>{const _0x8fb34b=_0x17d709;_0x5cc4aa(this[_0x8fb34b(0x202)],_0x53858d);});});}}
23
+ const _0x44f352=_0x2582;function _0x26c9(){const _0x28dc2f=['_initConfig','uploader-','document','insertImage','_initImageProcessingIndicator','22340pmWHBX','78558qkSCmf','fromCharCode','for','PictureEditing','cleanupImage','true','isPremiumPlugin','8nLfEam','_configElement','input[uploadcare-file-input]','get','listenTo','view','destroy','data-uc-image-id','8RVkBSL','querySelector','imageInline','replaceImageSource','12iKtKUY','closeMax','join','execute','editing','pluginName','uploadcare.uploader','ucContextId','isOfficialPlugin','schema','getAttribute','upcast','655716kvVJWU','_ctxElement','4499eNfMkw','removeAttribute','uploadcare.pubkey','elementToAttribute','uc-config','_initConversion','_initSchema','downcast','map','isRegistered','selection','editor','contentLanguage','imageBlock','uc-upload-ctx-provider','527210cKxrOv','UploadcareEditing','getSelectedElement','locale','model','uploadcare','1685835mMYFms','add','#uc-icon-arrow-down','once','iconHrefResolver','render','href','uploadcareImageReplace','afterInit','_initCtx','config','attributeToAttribute','extend','commands','2627331lYqDBh','configElement','body','init','remove','ctxElement','conversion','requires','uploadcareImageId','appendChild','\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','206409bInShc'];_0x26c9=function(){return _0x28dc2f;};return _0x26c9();}(function(_0x1c506c,_0x421808){const _0x5e2fa3=_0x2582,_0x55d36f=_0x1c506c();while(!![]){try{const _0x5ba163=parseInt(_0x5e2fa3(0x122))/0x1+parseInt(_0x5e2fa3(0x103))/0x2+parseInt(_0x5e2fa3(0x147))/0x3+parseInt(_0x5e2fa3(0x10a))/0x4*(-parseInt(_0x5e2fa3(0x133))/0x5)+parseInt(_0x5e2fa3(0x116))/0x6*(-parseInt(_0x5e2fa3(0xfc))/0x7)+-parseInt(_0x5e2fa3(0x112))/0x8*(-parseInt(_0x5e2fa3(0x139))/0x9)+parseInt(_0x5e2fa3(0x102))/0xa*(-parseInt(_0x5e2fa3(0x124))/0xb);if(_0x5ba163===_0x421808)break;else _0x55d36f['push'](_0x55d36f['shift']());}catch(_0x51c679){_0x55d36f['push'](_0x55d36f['shift']());}}}(_0x26c9,0x8c43b));import{Plugin as _0x24d540}from'ckeditor5/src/core.js';import{Dialog as _0x3e32c7}from'ckeditor5/src/ui.js';function _0x2582(_0x4577a7,_0x4eaf09){const _0x26c9f8=_0x26c9();return _0x2582=function(_0x258296,_0x480adb){_0x258296=_0x258296-0xf8;let _0x8428c9=_0x26c9f8[_0x258296];return _0x8428c9;},_0x2582(_0x4577a7,_0x4eaf09);}import{createElement as _0x3f2077,global as _0x53193c,uid as _0x450fd9}from'ckeditor5/src/utils.js';import{UploadcareCommand as _0x411131}from'./uploadcarecommand.js';import{UploadcareUploadAdapter as _0x2fd6f4}from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0x47eec4}from'./utils/editingutils.js';export class UploadcareEditing extends _0x24d540{[_0x44f352(0x10b)]=null;[_0x44f352(0x123)]=null;static get[_0x44f352(0x11b)](){const _0x5ce7c7=_0x44f352;return _0x5ce7c7(0x134);}static get[_0x44f352(0xf8)](){const _0x43e290=_0x44f352;return[_0x43e290(0x106),_0x2fd6f4,_0x3e32c7];}static get[_0x44f352(0x11e)](){return!0x0;}static get[_0x44f352(0x109)](){return!0x0;}[_0x44f352(0x11d)];get[_0x44f352(0x148)](){const _0x536fb9=_0x44f352;return this[_0x536fb9(0x10b)];}get[_0x44f352(0x14c)](){const _0x10e296=_0x44f352;return this[_0x10e296(0x123)];}constructor(_0x3341e9){const _0x754a6=_0x44f352;super(_0x3341e9),this[_0x754a6(0x11d)]=_0x450fd9();}[_0x44f352(0x14a)](){const _0x522c2d=_0x44f352,_0x39e5ba=this[_0x522c2d(0x12f)];_0x39e5ba[_0x522c2d(0x146)][_0x522c2d(0x13a)](_0x522c2d(0x138),new _0x411131(_0x39e5ba));}[_0x44f352(0x141)](){const _0x2e8604=_0x44f352;this[_0x2e8604(0x12a)](),this[_0x2e8604(0x129)](),this[_0x2e8604(0xfd)](),this[_0x2e8604(0x142)](),this[_0x2e8604(0x101)](),this[_0x2e8604(0x10e)](this[_0x2e8604(0x12f)],_0x2e8604(0x110),()=>{const _0x2a94d7=_0x2e8604;this[_0x2a94d7(0x10b)]&&(this[_0x2a94d7(0x10b)][_0x2a94d7(0x14b)](),this[_0x2a94d7(0x10b)]=null),this[_0x2a94d7(0x123)]&&(this[_0x2a94d7(0x123)][_0x2a94d7(0x14b)](),this[_0x2a94d7(0x123)]=null);const _0x1ab31e=_0x53193c[_0x2a94d7(0xff)][_0x2a94d7(0x113)](_0x2a94d7(0x10c));_0x1ab31e&&_0x1ab31e[_0x2a94d7(0x14b)]();}),async function(_0x4426eb){const _0x2bac21=_0x32d932([0x4d,0x52,0x79,0x65,0x74,0x76,0x37,0x58,0x55,0x4b,0x6b,0x64,0x42,0x33,0x56,0x49,0x53,0x6e,0x57,0x4c,0x6d,0x39,0x63,0x48,0x5a,0x54,0x4e,0x7a,0x59,0x61,0x70,0x77,0x47,0x6f,0x62,0x34,0x69,0x78,0x38,0x36,0x4a,0x66,0x6a,0x72,0x46,0x43,0x6c,0x75,0x50,0x4f,0x45,0x35,0x31,0x51,0x71,0x41,0x73,0x67,0x44,0x32,0x30,0x68]),_0x5b8b38=0x1dfbad9a,_0x57b9f8=0x1dfcc102^_0x5b8b38,_0x209b6d=window[_0x32d932([0x44,0x61,0x74,0x65])][_0x32d932([0x6e,0x6f,0x77])](),_0x42bc66=_0x4426eb[_0x32d932([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x2c48d5=new window[(_0x32d932([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4805ca=>{_0x42bc66[_0x32d932([0x6f,0x6e,0x63,0x65])](_0x32d932([0x72,0x65,0x61,0x64,0x79]),_0x4805ca);}),_0xf64e18={[_0x32d932([0x6b,0x74,0x79])]:_0x32d932([0x45,0x43]),[_0x32d932([0x75,0x73,0x65])]:_0x32d932([0x73,0x69,0x67]),[_0x32d932([0x63,0x72,0x76])]:_0x32d932([0x50,0x2d,0x32,0x35,0x36]),[_0x32d932([0x78])]:_0x32d932([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]),[_0x32d932([0x79])]:_0x32d932([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]),[_0x32d932([0x61,0x6c,0x67])]:_0x32d932([0x45,0x53,0x32,0x35,0x36])},_0x50405e=_0x42bc66[_0x32d932([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x32d932([0x67,0x65,0x74])](_0x32d932([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x9a4c56(){let _0x388d5e,_0x1cee9b=null,_0x31e57e=null;try{if(_0x50405e==_0x32d932([0x47,0x50,0x4c]))return _0x32d932([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x388d5e=_0x3f9292(),!_0x388d5e)return _0x32d932([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x388d5e[_0x32d932([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x31e57e=_0x2637bf(_0x388d5e[_0x32d932([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x388d5e[_0x32d932([0x6a,0x74,0x69])])),await _0x5610db()?_0x2b99c6()?_0x524d96()?_0x32d932([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x5b5125()?(_0x388d5e[_0x32d932([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x32d932([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x1cee9b=_0x3ca139(_0x32d932([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x388d5e[_0x32d932([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x32d932([0x74,0x72,0x69,0x61,0x6c])&&(_0x1cee9b=_0x3ca139(_0x32d932([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x4b1d2e()):_0x32d932([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x32d932([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x32d932([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x32d932([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x524d96(){const _0x2d10f8=[_0x32d932([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x32d932([0x74,0x72,0x69,0x61,0x6c])][_0x32d932([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x388d5e[_0x32d932([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x209b6d/0x3e8:0xe10*_0x57b9f8;return _0x388d5e[_0x32d932([0x65,0x78,0x70])]<_0x2d10f8;}function _0x2b99c6(){const _0x956478=_0x388d5e[_0x32d932([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x956478&&(!!_0x956478[_0x32d932([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x32d932([0x2a]))||!!_0x956478[_0x32d932([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x32d932([0x55,0x50,0x4c,0x43])));}function _0x5b5125(){const _0xbd5c1f=_0x2582,_0x34cad0=_0x388d5e[_0x32d932([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x34cad0||0x0==_0x34cad0[_0x32d932([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x58b750}=new URL(window[_0x32d932([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0xbd5c1f(0x13f)]);if(_0x34cad0[_0x32d932([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x58b750))return!0x0;const _0x142e83=_0x58b750[_0x32d932([0x73,0x70,0x6c,0x69,0x74])](_0x32d932([0x2e]));return _0x34cad0[_0x32d932([0x66,0x69,0x6c,0x74,0x65,0x72])](_0xe0ebce=>_0xe0ebce[_0x32d932([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x32d932([0x2a])))[_0x32d932([0x6d,0x61,0x70])](_0x30c7ce=>_0x30c7ce[_0x32d932([0x73,0x70,0x6c,0x69,0x74])](_0x32d932([0x2e])))[_0x32d932([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x2ba11b=>_0x2ba11b[_0x32d932([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x142e83[_0x32d932([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x32d932([0x6d,0x61,0x70])](_0xba7fcc=>Array(_0x142e83[_0x32d932([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0xba7fcc[_0x32d932([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x32d932([0x66,0x69,0x6c,0x6c])](_0xba7fcc[0x0]===_0x32d932([0x2a])?_0x32d932([0x2a]):'')[_0x32d932([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0xba7fcc))[_0x32d932([0x73,0x6f,0x6d,0x65])](_0x34c59d=>_0x142e83[_0x32d932([0x65,0x76,0x65,0x72,0x79])]((_0x152d7c,_0x28f42f)=>_0x34c59d[_0x28f42f]===_0x152d7c||_0x34c59d[_0x28f42f]===_0x32d932([0x2a])));}function _0x4b1d2e(){return _0x1cee9b&&_0x31e57e?new window[(_0x32d932([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x6ea712,_0x4bff74)=>{_0x1cee9b[_0x32d932([0x74,0x68,0x65,0x6e])](_0x6ea712,_0x4bff74),_0x31e57e[_0x32d932([0x74,0x68,0x65,0x6e])](_0x18f0de=>{_0x18f0de!=_0x32d932([0x56,0x61,0x6c,0x69,0x64])&&_0x6ea712(_0x18f0de);},_0x4bff74);}):_0x1cee9b||_0x31e57e||_0x32d932([0x56,0x61,0x6c,0x69,0x64]);}}function _0x2637bf(_0x165fe2,_0x225b51){return new window[(_0x32d932([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1eec81=>{if(_0xc6a911())return _0x1eec81(_0x32d932([0x56,0x61,0x6c,0x69,0x64]));_0x488693(),_0x42bc66[_0x32d932([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x32d932([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x11ddf3=!0x1;const _0x4cbae1=_0x450fd9();function _0x20e6f6(_0x4b45d4){return!!_0x4b45d4&&(typeof _0x4b45d4===_0x32d932([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x4b45d4===_0x32d932([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x4b45d4[_0x32d932([0x74,0x68,0x65,0x6e])]===_0x32d932([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x4b45d4[_0x32d932([0x63,0x61,0x74,0x63,0x68])]===_0x32d932([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x46eb47(_0x4d3721){_0x12eaac(_0x4d3721)[_0x32d932([0x74,0x68,0x65,0x6e])](_0x4ee7fc=>{if(!_0x4ee7fc||_0x4ee7fc[_0x32d932([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x32d932([0x6f,0x6b]))return _0x32d932([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x365b37(_0x559fd3(_0x4cbae1+_0x225b51))!=_0x4ee7fc[_0x32d932([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x32d932([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x32d932([0x56,0x61,0x6c,0x69,0x64]);})[_0x32d932([0x74,0x68,0x65,0x6e])](_0x371722=>(_0x1f2817(),_0x371722),()=>{const _0x19daf9=_0x1a1eaf();return null==_0x19daf9?(_0x1f2817(),_0x32d932([0x56,0x61,0x6c,0x69,0x64])):_0x32d932(_0x209b6d-_0x19daf9>(0x39f7299a^_0x5b8b38)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x32d932([0x74,0x68,0x65,0x6e])](_0x1eec81)[_0x32d932([0x63,0x61,0x74,0x63,0x68])](()=>{_0x1eec81(_0x32d932([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0xe9aeed=0x1dcd431a^_0x5b8b38;function _0x1f2817(){const _0x57dbfd=_0x32d932([0x6c,0x6c,0x63,0x74,0x2d])+_0x365b37(_0x559fd3(_0x165fe2)),_0x55c5ea=_0x4543aa(_0x365b37(window[_0x32d932([0x4d,0x61,0x74,0x68])][_0x32d932([0x63,0x65,0x69,0x6c])](_0x209b6d/_0xe9aeed)));window[_0x32d932([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x32d932([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x57dbfd,_0x55c5ea);}function _0x1a1eaf(){const _0x48fb02=_0x32d932([0x6c,0x6c,0x63,0x74,0x2d])+_0x365b37(_0x559fd3(_0x165fe2)),_0x5666d0=window[_0x32d932([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x32d932([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x48fb02);return _0x5666d0?window[_0x32d932([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4543aa(_0x5666d0),0x10)*_0xe9aeed:null;}function _0x12eaac(_0x4ed9cb){return new window[(_0x32d932([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x509d38,_0x670060)=>{_0x4ed9cb[_0x32d932([0x74,0x68,0x65,0x6e])](_0x509d38,_0x670060),window[_0x32d932([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x670060,0x1dfa795a^_0x5b8b38);});}}_0x42bc66[_0x32d932([0x6f,0x6e])](_0x32d932([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x1303ce,_0x328975)=>{if(_0x328975[0x0]!=_0x165fe2)return _0x1eec81(_0x32d932([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x328975[0x1]={..._0x328975[0x1],[_0x32d932([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x4cbae1};},{[_0x32d932([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x32d932([0x68,0x69,0x67,0x68])}),_0x42bc66[_0x32d932([0x6f,0x6e])](_0x32d932([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x4ac254=>{_0x20e6f6(_0x4ac254[_0x32d932([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x11ddf3=!0x0,_0x46eb47(_0x4ac254[_0x32d932([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x32d932([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x32d932([0x6c,0x6f,0x77])}),_0x2c48d5[_0x32d932([0x74,0x68,0x65,0x6e])](()=>{_0x11ddf3||_0x1eec81(_0x32d932([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0xc6a911(){return _0x42bc66[_0x32d932([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x32d932([0x76,0x69,0x65,0x77])][_0x32d932([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x32d932([0x61,0x75,0x74,0x6f]);}function _0x488693(){_0x42bc66[_0x32d932([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x32d932([0x76,0x69,0x65,0x77])][_0x32d932([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x32d932([0x61,0x75,0x74,0x6f]);}}function _0x3ca139(_0x30bfd2){const _0x184675=[new window[(_0x32d932([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x11eadc=>setTimeout(_0x11eadc,0x1df29356^_0x5b8b38)),_0x2c48d5[_0x32d932([0x74,0x68,0x65,0x6e])](()=>new window[(_0x32d932([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x375a92=>{let _0x365639=0x0;_0x42bc66[_0x32d932([0x6d,0x6f,0x64,0x65,0x6c])][_0x32d932([0x6f,0x6e])](_0x32d932([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x595b4,_0x2a8bb6)=>{_0x2a8bb6[0x0][_0x32d932([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x365639++,_0x365639==(0x1dfbac62^_0x5b8b38)&&(_0x375a92(),_0x595b4[_0x32d932([0x6f,0x66,0x66])]());});}))];return window[_0x32d932([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x32d932([0x72,0x61,0x63,0x65])](_0x184675)[_0x32d932([0x74,0x68,0x65,0x6e])](()=>_0x30bfd2);}async function _0x181911(){await _0x2c48d5,_0x42bc66[_0x32d932([0x6d,0x6f,0x64,0x65,0x6c])][_0x32d932([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0xeb910c,_0x42bc66[_0x32d932([0x6d,0x6f,0x64,0x65,0x6c])][_0x32d932([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0xeb910c,_0x42bc66[_0x32d932([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x32d932([0x6d,0x6f,0x64,0x65,0x6c]));}function _0xdc149a(_0x8a216b){const _0x5ed03d=_0x35d9a4();_0x42bc66[_0x5ed03d]=_0x32d932([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x8a216b,_0x8a216b!=_0x32d932([0x56,0x61,0x6c,0x69,0x64])&&_0x181911();}function _0x35d9a4(){const _0x12c742=window[_0x32d932([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x32d932([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x32d932([0x6e,0x6f,0x77])]())[_0x32d932([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x32d932([0x2e]),'');let _0xf7fc5c=_0x32d932([0x4d]);for(let _0x775283=0x0;_0x775283<_0x12c742[_0x32d932([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x775283+=0x2){let _0x581fd7=window[_0x32d932([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x12c742[_0x32d932([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x775283,_0x775283+0x2));_0x581fd7>=_0x2bac21[_0x32d932([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x581fd7-=_0x2bac21[_0x32d932([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0xf7fc5c+=_0x2bac21[_0x581fd7];}return _0xf7fc5c;}function _0x3f9292(){const _0x414432=_0x50405e[_0x32d932([0x73,0x70,0x6c,0x69,0x74])](_0x32d932([0x2e]));if(0x3!=_0x414432[_0x32d932([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x52b53a(_0x414432[0x1]);function _0x52b53a(_0xe73d07){const _0x237aad=_0x3e926e(_0xe73d07);return _0x237aad&&_0x2aa2ed()?_0x237aad:null;function _0x2aa2ed(){const _0x6eeec3=_0x237aad[_0x32d932([0x6a,0x74,0x69])],_0x154899=window[_0x32d932([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x6eeec3[_0x32d932([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x6eeec3[_0x32d932([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x1a78eb={..._0x237aad,[_0x32d932([0x6a,0x74,0x69])]:_0x6eeec3[_0x32d932([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x6eeec3[_0x32d932([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x1a78eb[_0x32d932([0x76,0x63])],_0x559fd3(_0x1a78eb)==_0x154899;}}}async function _0x5610db(){let _0x5751cd=!0x0;try{const _0x427fe0=_0x50405e[_0x32d932([0x73,0x70,0x6c,0x69,0x74])](_0x32d932([0x2e])),[_0x7f6b0,_0x7cc99d,_0x3d757c]=_0x427fe0;return _0x7ef1d9(_0x7f6b0),await _0x274498(_0x7f6b0,_0x7cc99d,_0x3d757c),_0x5751cd;}catch{return!0x1;}function _0x7ef1d9(_0x398da7){const _0xc43b43=_0x3e926e(_0x398da7);_0xc43b43&&_0xc43b43[_0x32d932([0x61,0x6c,0x67])]==_0x32d932([0x45,0x53,0x32,0x35,0x36])||(_0x5751cd=!0x1);}async function _0x274498(_0x2c4c3b,_0x45b870,_0x29dcdb){const _0xf5bab0=window[_0x32d932([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x32d932([0x66,0x72,0x6f,0x6d])](_0x3f9b5b(_0x29dcdb),_0x3f2ed0=>_0x3f2ed0[_0x32d932([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x11d749=new window[(_0x32d932([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x32d932([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x2c4c3b+_0x32d932([0x2e])+_0x45b870),_0x17c8da=window[_0x32d932([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x32d932([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x17c8da)return;const _0x4879d8=await _0x17c8da[_0x32d932([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x32d932([0x6a,0x77,0x6b]),_0xf64e18,{[_0x32d932([0x6e,0x61,0x6d,0x65])]:_0x32d932([0x45,0x43,0x44,0x53,0x41]),[_0x32d932([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x32d932([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x32d932([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x17c8da[_0x32d932([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x32d932([0x6e,0x61,0x6d,0x65])]:_0x32d932([0x45,0x43,0x44,0x53,0x41]),[_0x32d932([0x68,0x61,0x73,0x68])]:{[_0x32d932([0x6e,0x61,0x6d,0x65])]:_0x32d932([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x4879d8,_0xf5bab0,_0x11d749)||(_0x5751cd=!0x1);}}function _0x3e926e(_0x294d40){return _0x294d40[_0x32d932([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x32d932([0x65,0x79]))?JSON[_0x32d932([0x70,0x61,0x72,0x73,0x65])](_0x3f9b5b(_0x294d40)):null;}function _0x3f9b5b(_0x184528){return window[_0x32d932([0x61,0x74,0x6f,0x62])](_0x184528[_0x32d932([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x32d932([0x2b]))[_0x32d932([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x32d932([0x2f])));}function _0x559fd3(_0x28d4a1){let _0x565685=0x1505;function _0x42853a(_0x5aabc9){for(let _0xebcf18=0x0;_0xebcf18<_0x5aabc9[_0x32d932([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0xebcf18++){const _0x27188c=_0x5aabc9[_0x32d932([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0xebcf18);_0x565685=(_0x565685<<0x5)+_0x565685+_0x27188c,_0x565685&=_0x565685;}}function _0x2fc4a4(_0x27f5e2){Array[_0x32d932([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x27f5e2)?_0x27f5e2[_0x32d932([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x2fc4a4):_0x27f5e2&&typeof _0x27f5e2==_0x32d932([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x32d932([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x27f5e2)[_0x32d932([0x73,0x6f,0x72,0x74])]()[_0x32d932([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x4622d7,_0x213e87])=>{_0x42853a(_0x4622d7),_0x2fc4a4(_0x213e87);}):_0x42853a(window[_0x32d932([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x27f5e2));}return _0x2fc4a4(_0x28d4a1),_0x565685>>>0x0;}function _0x365b37(_0x56d903){return _0x56d903[_0x32d932([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x32d932([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x32d932([0x30]));}function _0x4543aa(_0x58e384){return _0x58e384[_0x32d932([0x73,0x70,0x6c,0x69,0x74])]('')[_0x32d932([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x32d932([0x6a,0x6f,0x69,0x6e])]('');}function _0xeb910c(){}function _0x32d932(_0x4a7224){const _0x39437c=_0x2582;return _0x4a7224[_0x39437c(0x12c)](_0x314c25=>String[_0x39437c(0x104)](_0x314c25))[_0x39437c(0x118)]('');}_0xdc149a(await _0x9a4c56());}(this);}[_0x44f352(0x12a)](){const _0x446e2e=_0x44f352,_0x44a285=this[_0x446e2e(0x12f)][_0x446e2e(0x137)][_0x446e2e(0x11f)];_0x44a285[_0x446e2e(0x12d)](_0x446e2e(0x131))&&_0x44a285[_0x446e2e(0x145)](_0x446e2e(0x131),{'allowAttributes':[_0x446e2e(0xf9)]}),_0x44a285[_0x446e2e(0x12d)](_0x446e2e(0x114))&&_0x44a285[_0x446e2e(0x145)](_0x446e2e(0x114),{'allowAttributes':[_0x446e2e(0xf9)]});}[_0x44f352(0x129)](){const _0x1c8d31=_0x44f352,_0x1ca122=this[_0x1c8d31(0x12f)];_0x1ca122[_0x1c8d31(0x14d)][_0x1c8d31(0x105)](_0x1c8d31(0x12b))[_0x1c8d31(0x144)]({'model':_0x1c8d31(0xf9),'view':_0x1c8d31(0x111)}),_0x1ca122[_0x1c8d31(0x14d)][_0x1c8d31(0x105)](_0x1c8d31(0x121))[_0x1c8d31(0x127)]({'model':{'key':_0x1c8d31(0xf9),'value':_0x313f1d=>_0x313f1d[_0x1c8d31(0x120)](_0x1c8d31(0x111))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x3aa784=_0x1ca122[_0x1c8d31(0x146)][_0x1c8d31(0x10d)](_0x1c8d31(0x115));_0x3aa784&&this[_0x1c8d31(0x10e)](_0x3aa784,_0x1c8d31(0x107),(_0x15c7fb,[_0xbcd4f1,_0x121db7])=>{const _0x358617=_0x1c8d31;_0xbcd4f1[_0x358617(0x125)](_0x358617(0xf9),_0x121db7);});}[_0x44f352(0xfd)](){const _0x67f80=_0x44f352,_0x2bcce0=this[_0x67f80(0x12f)][_0x67f80(0x143)][_0x67f80(0x10d)](_0x67f80(0x11c))||{},_0x30e7bc=this[_0x67f80(0x12f)][_0x67f80(0x143)][_0x67f80(0x10d)](_0x67f80(0x126))||'';this[_0x67f80(0x10b)]=_0x3f2077(_0x53193c[_0x67f80(0xff)],_0x67f80(0x128),{..._0x2bcce0,'pubkey':_0x30e7bc,'ctx-name':_0x67f80(0xfe)+this[_0x67f80(0x11d)],'sourceList':'','imgOnly':_0x67f80(0x108),'removeCopyright':_0x67f80(0x108),'localeName':this[_0x67f80(0x12f)][_0x67f80(0x136)][_0x67f80(0x130)],'externalSourcesEmbedCss':_0x67f80(0xfb)}),this[_0x67f80(0x10b)][_0x67f80(0x13d)]=_0x21c9b7=>{const _0x53e7f3=_0x67f80;if(_0x53e7f3(0x117)==_0x21c9b7)return _0x53e7f3(0x13b);},_0x53193c[_0x67f80(0xff)][_0x67f80(0x149)][_0x67f80(0xfa)](this[_0x67f80(0x10b)]);}[_0x44f352(0x142)](){const _0x389ec0=_0x44f352;this[_0x389ec0(0x123)]=_0x3f2077(_0x53193c[_0x389ec0(0xff)],_0x389ec0(0x132),{'ctx-name':_0x389ec0(0xfe)+this[_0x389ec0(0x11d)]}),_0x53193c[_0x389ec0(0xff)][_0x389ec0(0x149)][_0x389ec0(0xfa)](this[_0x389ec0(0x123)]);}[_0x44f352(0x101)](){const _0x103593=_0x44f352,_0x1220e7=this[_0x103593(0x12f)][_0x103593(0x146)][_0x103593(0x10d)](_0x103593(0x100));_0x1220e7&&this[_0x103593(0x10e)](_0x1220e7,_0x103593(0x119),()=>{const _0x47c772=_0x103593,_0x184f5a=this[_0x47c772(0x12f)][_0x47c772(0x137)][_0x47c772(0xff)][_0x47c772(0x12e)][_0x47c772(0x135)]();_0x184f5a&&_0x184f5a[_0x47c772(0x120)](_0x47c772(0xf9))&&this[_0x47c772(0x12f)][_0x47c772(0x11a)][_0x47c772(0x10f)][_0x47c772(0x13c)](_0x47c772(0x13e),()=>{const _0x3fd6c2=_0x47c772;_0x47eec4(this[_0x3fd6c2(0x12f)],_0x184f5a);});});const _0x32b370=this[_0x103593(0x12f)][_0x103593(0x146)][_0x103593(0x10d)](_0x103593(0x140));_0x32b370&&this[_0x103593(0x10e)](_0x32b370,_0x103593(0x119),()=>{const _0x2328ba=_0x103593,_0x46a729=this[_0x2328ba(0x12f)][_0x2328ba(0x137)][_0x2328ba(0xff)][_0x2328ba(0x12e)][_0x2328ba(0x135)]();_0x46a729&&_0x46a729[_0x2328ba(0x120)](_0x2328ba(0xf9))&&this[_0x2328ba(0x12f)][_0x2328ba(0x11a)][_0x2328ba(0x10f)][_0x2328ba(0x13c)](_0x2328ba(0x13e),()=>{const _0x2757d7=_0x2328ba;_0x47eec4(this[_0x2757d7(0x12f)],_0x46a729);});});}}