@ckeditor/ckeditor5-uploadcare 0.0.0-nightly-20251229.0 → 0.0.0-nightly-20251230.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 _0xca6ee3,Command as _0x3408de}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x3da4f2,IconGooglePhotos as _0x3cc832,IconGoogleDrive as _0x54a2d6,IconFacebook as _0xb42500,IconDropbox as _0x104970,IconUploadcareLink as _0x32989a,IconUploadcareImageUpload as _0x173ccd,IconError as _0xa0d92e,IconUploadcareImageEdit as _0x3d5915}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x3221aa,MenuBarMenuListItemButtonView as _0x9d2b92,View as _0x5858f0,FocusCycler as _0x43114f,Dialog as _0x226fc6,DialogViewPosition as _0x2146d8,SpinnerView as _0x38c730,IconView as _0x419363,Notification as _0x578432}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x46f2b1,DomEmitterMixin as _0x44b914,global as _0x437982,getAncestors as _0x45132b,ObservableMixin as _0x3ee91d,uid as _0x538856,createElement as _0x39ea77}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x6768d}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x58596c,info as _0x5b89d4}from'@uploadcare/upload-client';import*as _0x6ff85b from'@uploadcare/file-uploader';var i=function(_0x1aae51){return _0x1aae51['Local']='local',_0x1aae51['URL']='url',_0x1aae51['Dropbox']='dropbox',_0x1aae51['GDrive']='gdrive',_0x1aae51['Facebook']='facebook',_0x1aae51['GPhotos']='gphotos',_0x1aae51['OneDrive']='onedrive',_0x1aae51;}({});function _(_0x3bfe0b,_0x23e4e2,_0x5270a4){const t=_0x3bfe0b['t'],_0x1da833=_0x3bfe0b['t'];switch(_0x23e4e2){case i['Local']:return{'text':_0x1da833('Insert'===_0x5270a4?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x1da833('From\x20computer')};case i['URL']:return{'text':'Insert'===_0x5270a4?_0x1da833('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x1da833('Via\x20URL')};case i['Dropbox']:return{'text':t('Insert'===_0x5270a4?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case i['Facebook']:return{'text':t('Insert'===_0x5270a4?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case i['GDrive']:return{'text':t('Insert'===_0x5270a4?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case i['GPhotos']:return{'text':t('Insert'===_0x5270a4?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case i['OneDrive']:return{'text':t('Insert'===_0x5270a4?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x23e4e2;}}class e extends _0xca6ee3{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'UploadcareUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x5265ec=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x18f65a;for(const _0x1f8a84 in _0x5265ec){const _0x1da26d=_0x1f8a84,_0x33677a=_0x5265ec[_0x1da26d];if('uploadcareLicenseKeyValid'==_0x33677a||'uploadcareLicenseKeyInvalid'==_0x33677a||'uploadcareLicenseKeyExpired'==_0x33677a||'uploadcareLicenseKeyDomainLimit'==_0x33677a||'uploadcareLicenseKeyNotAllowed'==_0x33677a||'uploadcareLicenseKeyEvaluationLimit'==_0x33677a||'uploadcareLicenseKeyTrialLimit'==_0x33677a||'uploadcareLicenseKeyUsageLimit'==_0x33677a){delete _0x5265ec[_0x1da26d],_0x18f65a=_0x33677a,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x18f65a&&_0x5265ec['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x18f65a&&_0x5265ec['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x18f65a&&_0x5265ec['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x18f65a&&_0x5265ec['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x18f65a&&_0x5265ec['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyTrialLimit'==_0x18f65a&&_0x5265ec['_showLicenseError']('trialLimit'),'uploadcareLicenseKeyUsageLimit'==_0x18f65a&&_0x5265ec['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x237935}=this,_0x32722e=_0x237935['commands']['get']('uploadcare');if(!_0x32722e)return;const _0x5add22=this['_normalizeConfigSourceList'](_0x237935['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x24fec3,_0x5a317b)=>{const _0x496cf8=this['_getIntegrationKey'](_0x5a317b['type']);return _0x24fec3[_0x496cf8]||(_0x24fec3[_0x496cf8]=[]),_0x24fec3[_0x496cf8]['push'](_0x5a317b),_0x24fec3;},{});_0x237935['plugins']['has']('ImageInsertUI')&&_0x237935['commands']['get']('uploadcare')&&Object['entries'](_0x5add22)['forEach'](([_0x577837,_0x2d3581])=>{_0x237935['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x577837,'observable':()=>_0x32722e,'buttonViewCreator':()=>this['_createToolbarButton'](_0x2d3581),'formViewCreator':()=>this['_createDropdownButtons'](_0x2d3581),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x2d3581),'override':'assetManager'!==_0x577837});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x2da5bb){const {locale:_0x137544}=this['editor'];return _0x2da5bb['map'](_0x3fc468=>{const _0x5d3b67=_(_0x137544,_0x3fc468,'Insert');switch(_0x3fc468){case i['Local']:return{'icon':_0x173ccd,'type':i['Local'],..._0x5d3b67};case i['URL']:return{'icon':_0x32989a,'type':i['URL'],..._0x5d3b67};case i['Dropbox']:return{'icon':_0x104970,'type':i['Dropbox'],..._0x5d3b67};case i['Facebook']:return{'icon':_0xb42500,'type':i['Facebook'],..._0x5d3b67};case i['GDrive']:return{'icon':_0x54a2d6,'type':i['GDrive'],..._0x5d3b67};case i['GPhotos']:return{'icon':_0x3cc832,'type':i['GPhotos'],..._0x5d3b67};case i['OneDrive']:return{'icon':_0x3da4f2,'type':i['OneDrive'],..._0x5d3b67};}});}['_getIntegrationKey'](_0x406dd2){switch(_0x406dd2){case i['Local']:return'upload';case i['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x4e069a,_0x3ab30f){const _0x18613a=this['editor'],_0x518254=new _0x4e069a(_0x18613a['locale']),_0x261a83=_0x18613a['commands']['get']('uploadcare');return _0x518254['bind']('isEnabled')['to'](_0x261a83),_0x518254['on']('execute',()=>{_0x261a83['execute'](_0x3ab30f);}),_0x518254;}['_createToolbarButton'](_0x402a16){const {locale:_0x159db9}=this['editor'],_0x1fccec=this['editor']['plugins']['get']('ImageInsertUI'),_0x2399a5=_0x402a16[0x0],_0x590e46=this['_createButton'](_0x3221aa,_0x2399a5['type']);return _0x590e46['icon']=_0x2399a5['icon'],_0x590e46['bind']('label')['to'](_0x1fccec,'isImageSelected',_0x3b3700=>_(_0x159db9,_0x2399a5['type'],_0x3b3700?'Replace':'Insert')['text']),_0x590e46['tooltip']=!0x0,_0x590e46;}['_createDropdownButtons'](_0x151e69){const {locale:_0x52b7a7}=this['editor'],_0x53f94b=this['editor']['plugins']['get']('ImageInsertUI');return _0x151e69['map'](_0x356335=>{const _0x1e26ea=this['_createButton'](_0x3221aa,_0x356335['type']);return _0x1e26ea['withText']=!0x0,_0x1e26ea['icon']=_0x356335['icon'],_0x1e26ea['bind']('label')['to'](_0x53f94b,'isImageSelected',_0x2eb042=>_(_0x52b7a7,_0x356335['type'],_0x2eb042?'Replace':'Insert')['text']),_0x1e26ea;});}['_createMenuBarButtons'](_0x2e26e0){return _0x2e26e0['map'](_0x3d2357=>{const _0x94b689=this['_createButton'](_0x9d2b92,_0x3d2357['type']);return _0x94b689['icon']=_0x3d2357['icon'],_0x94b689['label']=_0x3d2357['shortText'],_0x94b689;});}}class F extends _0x5858f0{['focusTracker'];['focusCycler'];constructor(_0x1eb215){super(_0x1eb215),this['focusTracker']=new _0x46f2b1(),this['focusCycler']=new _0x43114f({'focusables':this['createCollection'](),'focusTracker':this['focusTracker']});}['getFocusableElement'](){return{'tag':'div','attributes':{'aria-hidden':'true','tabindex':'0'},'on':{'focus':this['bindTemplate']['to'](()=>{this['focusCycler']['fire']('forwardCycle');})}};}}class x extends F{constructor(_0x5e34bb,_0x4d2df1){super(_0x5e34bb),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all-excluded','ck-uploadcare-form'],'tabindex':'-1'},'children':[{'tag':'uc-file-uploader-inline','attributes':{'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'uploader-'+_0x4d2df1}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}}function C(_0x5985f1,_0x5d49e4){const _0x1c6261=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x5380af=>_0x5380af<=_0x5d49e4)['map'](_0xeb4adb=>_0x5985f1['replace'](/\/$/,'')+'/-/resize/'+_0xeb4adb+'x/\x20'+_0xeb4adb+'w');return{'imageFallbackUrl':_0x5985f1,'imageSources':[{'srcset':_0x1c6261['join'](',\x20'),'sizes':'(max-width:\x20'+_0x5d49e4+'px)\x20100vw,\x20'+_0x5d49e4+'px','type':'image/webp'}]};}function S(_0x5a1790,_0x25a13c,_0x41615f){const _0x42339b=_0x5a1790['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x42339b?parseInt(_0x42339b[0x1],0xa):_0x25a13c,'height':_0x42339b?parseInt(_0x42339b[0x2],0xa):_0x41615f};}function p(_0x4cab14,_0x3faaf8){const _0x2dc454=new(_0x44b914())(),_0x183280=_0x4cab14['plugins']['get']('ImageUtils'),_0x5b9cb4=_0x4cab14['editing']['mapper']['toViewElement'](_0x3faaf8),_0x1292e7=_0x183280['findViewImgElement'](_0x5b9cb4),_0x3e338a=_0x4cab14['editing']['view']['domConverter']['viewToDom'](_0x1292e7),_0x3afffd=_0x3faaf8['getAttribute']('width'),_0x53497=_0x3faaf8['getAttribute']('height'),_0xd8cbcc='image-processing';_0x4cab14['editing']['view']['change'](_0x4faa48=>{_0x4faa48['addClass'](_0xd8cbcc,_0x5b9cb4),_0x4faa48['setStyle']('aspect-ratio',_0x3afffd+'/'+_0x53497,_0x1292e7);}),_0x2dc454['listenTo'](_0x3e338a,'load',()=>{_0x2dc454['stopListening'](_0x3e338a,'load'),_0x4cab14['editing']['view']['change'](_0x25922b=>{_0x25922b['removeClass'](_0xd8cbcc,_0x5b9cb4),_0x25922b['removeStyle']('aspect-ratio',_0x1292e7);});});}function G(_0x24ec73){if(Array['isArray'](_0x24ec73)){const _0x5f1225=_0x24ec73['map'](G);return _0x4f8ece=>_0x5f1225['some'](_0x22f55c=>_0x22f55c(_0x4f8ece));}if('origin'==_0x24ec73){const _0x1f6583=_0x437982['window']['location']['origin'];return _0x25ca2d=>new URL(_0x25ca2d,_0x437982['document']['baseURI'])['origin']==_0x1f6583;}return'function'==typeof _0x24ec73?_0x24ec73:_0x24ec73 instanceof RegExp?_0x675f34=>!(!_0x675f34['match'](_0x24ec73)&&!_0x675f34['replace'](/^https?:\/\//,'')['match'](_0x24ec73)):()=>!0x1;}function A(_0x1205ec,_0x14e4ea){return _0x45132b(_0x1205ec['target'])['includes'](_0x14e4ea);}class n extends/* #__PURE__ -- @preserve */
24
- _0x3ee91d(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x52f73a,_0x3f6162,_0x2045c9){super(),this['_editor']=_0x52f73a,this['_editing']=_0x3f6162,this['_dialog']=_0x52f73a['plugins']['get'](_0x226fc6),this['_api']=_0x3f6162['ctxElement']['getAPI'](),this['_type']=_0x2045c9,this['_editing']['configElement']['setAttribute']('source-list',this['_type']),this['_initDialog'](),this['_initListeners'](),this['_api']['initFlow']();}['destroy'](){this['_formView']&&(this['_formView']['destroy'](),this['_formView']=null),this['_api']&&this['_api']['doneFlow'](),this['stopListening'](),this['stopDelegating']();}['_initDialog'](){const {locale:_0x2c945b,model:_0x76b573}=this['_editor'],_0x40bd6a=_0x76b573['document']['selection']['getSelectedElement'](),_0x3b2383=_0x40bd6a&&(_0x40bd6a['is']('element','imageBlock')||_0x40bd6a['is']('element','imageInline'));this['_formView']=new x(_0x2c945b,this['_editing']['ucContextId']),this['_dialog']['show']({'id':'uploadCare','icon':_0x173ccd,'title':_(_0x2c945b,this['_type'],_0x3b2383?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x2146d8['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x5c614f=>!A(_0x5c614f,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0xf9e0a1}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x5b3d3c=>{const _0x3fca8e=_0xf9e0a1['length'];for(const _0x47c61a of _0xf9e0a1){const _0x5e8606=_0x47c61a===_0xf9e0a1[_0x3fca8e-0x1],{cdnUrl:_0x27bf3a,fileInfo:_0x5befde}=_0x47c61a;if(!_0x27bf3a||!_0x5befde)continue;const {width:_0x3d6813,height:_0x162c22}=_0x5befde['imageInfo'],_0x20efac=S(_0x27bf3a,_0x3d6813,_0x162c22),_0xf3b1d3=C(_0x27bf3a,_0x20efac['width']),_0x55f2e2={'id':_0x5befde['uuid'],'type':'image','attributes':{'imageDimension':_0x20efac,..._0xf3b1d3}};this['_insertAsset'](_0x55f2e2,_0x5e8606,_0x5b3d3c);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x392e1b=>{'idle'===_0x392e1b['detail']['status']&&!_0x392e1b['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===i['Local']?this['_api']['setCurrentActivity'](i['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x386af2,_0x347137,_0x1a88ad){const _0x34bd34=this['_editor']['model']['document']['selection'],_0x4d23c3=_0x34bd34['getSelectedElement'](),_0x958bf9=!(!_0x4d23c3||!_0x4d23c3['is']('element','imageInline'));_0x1a88ad['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x386af2,_0x958bf9),_0x347137||_0x1a88ad['setSelection'](_0x34bd34['getLastPosition']());}['_insertImage'](_0xdbc4d2,_0x2c9d48){const _0x1cb14a=this['_editor'],{imageDimension:_0x1be922,imageFallbackUrl:_0x2fd50,imageSources:_0xd787b3}=_0xdbc4d2['attributes'];_0x1cb14a['execute']('insertImage',{'imageType':_0x2c9d48?'imageInline':null,'source':{'uploadcareImageId':_0xdbc4d2['id'],'src':_0x2fd50,'sources':_0xd787b3,..._0x1be922}});}}class w extends _0x3408de{['_editing'];['_controller']=null;static get['requires'](){return[_0x226fc6,o];}constructor(_0x25d82f){super(_0x25d82f),this['_editing']=_0x25d82f['plugins']['get'](o);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x209f5c){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new n(this['editor'],this['_editing'],_0x209f5c);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class j{static['upload']({file:_0x1f5107,..._0x316436}){return _0x58596c(_0x1f5107,_0x316436);}static['getInfo'](_0x4e7d31,_0x19d2e7){return _0x5b89d4(_0x4e7d31,_0x19d2e7);}}class f extends _0xca6ee3{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x6768d,o];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x3b713d=this['editor'];if(!!!_0x3b713d['config']['get']('uploadcare'))return;_0x3b713d['plugins']['get'](_0x6768d)['createUploadAdapter']=_0x3d15b9=>new k(_0x3d15b9,_0x3b713d),_0x3b713d['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x30bce1,{imageElement:_0x19f4fe,data:_0x441f69})=>{_0x3b713d['model']['change'](_0x1cab66=>{_0x1cab66['setAttribute']('uploadcareImageId',_0x441f69['uploadcareImageId'],_0x19f4fe);});});}}class k{['loader'];['editor'];['controller'];constructor(_0x585380,_0x55eadb){this['loader']=_0x585380,this['editor']=_0x55eadb,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x392d89=await this['loader']['file'];return j['upload']({'file':_0x392d89,'publicKey':this['editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['editor']['config']['get']('uploadcare.uploader.baseUrl'),'baseCDN':this['editor']['config']['get']('uploadcare.uploader.cdnCname'),'signal':this['controller']['signal'],'onProgress':_0x1dda10=>{_0x1dda10&&_0x1dda10['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x1dda10['value']);}})['then'](async _0x4086f4=>{const {imageFallbackUrl:_0x104cf3,imageSources:_0x5e00a5}=C(_0x4086f4['cdnUrl'],_0x4086f4['imageInfo']['width']);return{'uploadcareImageId':_0x4086f4['uuid'],'default':_0x104cf3,'sources':_0x5e00a5};})['catch'](()=>{const _0x48b105=t('Cannot\x20upload\x20file:')+('\x20'+_0x392d89['name']+'.');return Promise['reject'](_0x48b105);});}['abort'](){this['controller']['abort']();}}class o extends _0xca6ee3{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',f,_0x226fc6];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['ucContextId'];get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}constructor(_0x371b80){super(_0x371b80),this['ucContextId']=_0x538856();}['init'](){const _0x3e1b0f=this['editor'];_0x3e1b0f['commands']['add']('uploadcare',new w(_0x3e1b0f));}['afterInit'](){this['_initSchema'](),this['_initConversion'](),this['_initConfig'](),this['_initCtx'](),this['_initImageProcessingIndicator'](),this['listenTo'](this['editor'],'destroy',()=>{this['_configElement']&&(this['_configElement']['remove'](),this['_configElement']=null),this['_ctxElement']&&(this['_ctxElement']['remove'](),this['_ctxElement']=null);const _0x450c48=_0x437982['document']['querySelector']('input[uploadcare-file-input]');_0x450c48&&_0x450c48['remove']();}),async function(_0x2da3ce){const _0xa9c322=_0x2b7162([0x68,0x67,0x50,0x36,0x38,0x70,0x71,0x63,0x37,0x4f,0x42,0x4a,0x78,0x39,0x75,0x33,0x7a,0x72,0x48,0x61,0x74,0x59,0x55,0x58,0x66,0x30,0x34,0x54,0x64,0x56,0x6b,0x4d,0x46,0x6d,0x77,0x43,0x73,0x35,0x53,0x44,0x41,0x76,0x6a,0x32,0x31,0x69,0x57,0x51,0x47,0x65,0x5a,0x4b,0x4c,0x79,0x52,0x6c,0x45,0x4e,0x6e,0x6f,0x49,0x62]),_0x1232c7=0x535f8c3a,_0x45b3d5=0x5358f172^_0x1232c7,_0x385c26=window[_0x2b7162([0x44,0x61,0x74,0x65])][_0x2b7162([0x6e,0x6f,0x77])](),_0x160f35=_0x2da3ce[_0x2b7162([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x32dd3e=new window[(_0x2b7162([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x33f9ab=>{_0x160f35[_0x2b7162([0x6f,0x6e,0x63,0x65])](_0x2b7162([0x72,0x65,0x61,0x64,0x79]),_0x33f9ab);}),_0x4f2b90={[_0x2b7162([0x6b,0x74,0x79])]:_0x2b7162([0x45,0x43]),[_0x2b7162([0x75,0x73,0x65])]:_0x2b7162([0x73,0x69,0x67]),[_0x2b7162([0x63,0x72,0x76])]:_0x2b7162([0x50,0x2d,0x32,0x35,0x36]),[_0x2b7162([0x78])]:_0x2b7162([0x69,0x43,0x6a,0x4f,0x43,0x76,0x44,0x46,0x49,0x36,0x6c,0x51,0x48,0x48,0x54,0x31,0x38,0x6a,0x56,0x77,0x52,0x66,0x6b,0x66,0x48,0x51,0x32,0x61,0x5f,0x4d,0x79,0x6d,0x54,0x33,0x35,0x4c,0x51,0x56,0x6f,0x46,0x53,0x41,0x49]),[_0x2b7162([0x79])]:_0x2b7162([0x6b,0x58,0x49,0x79,0x4a,0x34,0x65,0x76,0x74,0x43,0x45,0x46,0x52,0x6d,0x78,0x4b,0x53,0x55,0x70,0x4b,0x39,0x66,0x44,0x57,0x34,0x35,0x39,0x76,0x58,0x4f,0x76,0x56,0x72,0x68,0x66,0x36,0x75,0x51,0x41,0x65,0x4f,0x69,0x6f]),[_0x2b7162([0x61,0x6c,0x67])]:_0x2b7162([0x45,0x53,0x32,0x35,0x36])},_0x1d3752=_0x160f35[_0x2b7162([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x2b7162([0x67,0x65,0x74])](_0x2b7162([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x92b177(){let _0x5979cc,_0x576275=null,_0x38ebbd=null;try{if(_0x1d3752==_0x2b7162([0x47,0x50,0x4c]))return _0x2b7162([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x5979cc=_0x389c61(),!_0x5979cc)return _0x2b7162([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x5979cc[_0x2b7162([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x38ebbd=_0x1598b0(_0x5979cc[_0x2b7162([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x5979cc[_0x2b7162([0x6a,0x74,0x69])])),await _0x3f5d04()?_0x5884e2()?_0x489ebc()?_0x2b7162([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x108f2c()?(_0x5979cc[_0x2b7162([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x2b7162([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x576275=_0x22b8c4(_0x2b7162([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x5979cc[_0x2b7162([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x2b7162([0x74,0x72,0x69,0x61,0x6c])&&(_0x576275=_0x22b8c4(_0x2b7162([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x188c7b()):_0x2b7162([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x2b7162([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x2b7162([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x2b7162([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x489ebc(){const _0x1e9053=[_0x2b7162([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x2b7162([0x74,0x72,0x69,0x61,0x6c])][_0x2b7162([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5979cc[_0x2b7162([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x385c26/0x3e8:0xe10*_0x45b3d5;return _0x5979cc[_0x2b7162([0x65,0x78,0x70])]<_0x1e9053;}function _0x5884e2(){const _0x484805=_0x5979cc[_0x2b7162([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x484805&&(!!_0x484805[_0x2b7162([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2b7162([0x2a]))||!!_0x484805[_0x2b7162([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2b7162([0x55,0x50,0x4c,0x43])));}function _0x108f2c(){const _0x2ee06a=_0x5979cc[_0x2b7162([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x2ee06a||0x0==_0x2ee06a[_0x2b7162([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x575c8e}=new URL(window[_0x2b7162([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x2ee06a[_0x2b7162([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x575c8e))return!0x0;const _0x81ce36=_0x575c8e[_0x2b7162([0x73,0x70,0x6c,0x69,0x74])](_0x2b7162([0x2e]));return _0x2ee06a[_0x2b7162([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x4cb2a5=>_0x4cb2a5[_0x2b7162([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2b7162([0x2a])))[_0x2b7162([0x6d,0x61,0x70])](_0x874e11=>_0x874e11[_0x2b7162([0x73,0x70,0x6c,0x69,0x74])](_0x2b7162([0x2e])))[_0x2b7162([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x47dd2a=>_0x47dd2a[_0x2b7162([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x81ce36[_0x2b7162([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x2b7162([0x6d,0x61,0x70])](_0x33036a=>Array(_0x81ce36[_0x2b7162([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x33036a[_0x2b7162([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x2b7162([0x66,0x69,0x6c,0x6c])](_0x33036a[0x0]===_0x2b7162([0x2a])?_0x2b7162([0x2a]):'')[_0x2b7162([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x33036a))[_0x2b7162([0x73,0x6f,0x6d,0x65])](_0x154091=>_0x81ce36[_0x2b7162([0x65,0x76,0x65,0x72,0x79])]((_0x2172ad,_0x3df1b6)=>_0x154091[_0x3df1b6]===_0x2172ad||_0x154091[_0x3df1b6]===_0x2b7162([0x2a])));}function _0x188c7b(){return _0x576275&&_0x38ebbd?new window[(_0x2b7162([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x466cb8,_0x595478)=>{_0x576275[_0x2b7162([0x74,0x68,0x65,0x6e])](_0x466cb8,_0x595478),_0x38ebbd[_0x2b7162([0x74,0x68,0x65,0x6e])](_0x197ba2=>{_0x197ba2!=_0x2b7162([0x56,0x61,0x6c,0x69,0x64])&&_0x466cb8(_0x197ba2);},_0x595478);}):_0x576275||_0x38ebbd||_0x2b7162([0x56,0x61,0x6c,0x69,0x64]);}}function _0x1598b0(_0xb897d5,_0x2c265d){return new window[(_0x2b7162([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5b39ad=>{if(_0x555e67())return _0x5b39ad(_0x2b7162([0x56,0x61,0x6c,0x69,0x64]));_0x2d5911(),_0x160f35[_0x2b7162([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x2b7162([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0xd32325=!0x1;const _0x44d9c4=_0x538856();function _0x10833c(_0x95966){return!!_0x95966&&(typeof _0x95966===_0x2b7162([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x95966===_0x2b7162([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x95966[_0x2b7162([0x74,0x68,0x65,0x6e])]===_0x2b7162([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x95966[_0x2b7162([0x63,0x61,0x74,0x63,0x68])]===_0x2b7162([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x38b0ae(_0x57541c){_0x53a39d(_0x57541c)[_0x2b7162([0x74,0x68,0x65,0x6e])](_0x569f23=>{if(!_0x569f23||_0x569f23[_0x2b7162([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x2b7162([0x6f,0x6b]))return _0x2b7162([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0xabeb56(_0x14c5ef(_0x44d9c4+_0x2c265d))!=_0x569f23[_0x2b7162([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x2b7162([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x2b7162([0x56,0x61,0x6c,0x69,0x64]);})[_0x2b7162([0x74,0x68,0x65,0x6e])](_0x10a022=>(_0x102de8(),_0x10a022),()=>{const _0x1df726=_0x293295();return null==_0x1df726?(_0x102de8(),_0x2b7162([0x56,0x61,0x6c,0x69,0x64])):_0x2b7162(_0x385c26-_0x1df726>(0x7753083a^_0x1232c7)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x2b7162([0x74,0x68,0x65,0x6e])](_0x5b39ad)[_0x2b7162([0x63,0x61,0x74,0x63,0x68])](()=>{_0x5b39ad(_0x2b7162([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0xc4b60f=0x536962ba^_0x1232c7;function _0x102de8(){const _0x4acc01=_0x2b7162([0x6c,0x6c,0x63,0x74,0x2d])+_0xabeb56(_0x14c5ef(_0xb897d5)),_0xde287f=_0x5aa131(_0xabeb56(window[_0x2b7162([0x4d,0x61,0x74,0x68])][_0x2b7162([0x63,0x65,0x69,0x6c])](_0x385c26/_0xc4b60f)));window[_0x2b7162([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x2b7162([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4acc01,_0xde287f);}function _0x293295(){const _0x5de2dc=_0x2b7162([0x6c,0x6c,0x63,0x74,0x2d])+_0xabeb56(_0x14c5ef(_0xb897d5)),_0x43f97c=window[_0x2b7162([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x2b7162([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x5de2dc);return _0x43f97c?window[_0x2b7162([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5aa131(_0x43f97c),0x10)*_0xc4b60f:null;}function _0x53a39d(_0x1a7293){return new window[(_0x2b7162([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x2d9f68,_0x2d10ac)=>{_0x1a7293[_0x2b7162([0x74,0x68,0x65,0x6e])](_0x2d9f68,_0x2d10ac),window[_0x2b7162([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x2d10ac,0x535e58fa^_0x1232c7);});}}_0x160f35[_0x2b7162([0x6f,0x6e])](_0x2b7162([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x16208b,_0x149862)=>{if(_0x149862[0x0]!=_0xb897d5)return _0x5b39ad(_0x2b7162([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x149862[0x1]={..._0x149862[0x1],[_0x2b7162([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x44d9c4};},{[_0x2b7162([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x2b7162([0x68,0x69,0x67,0x68])}),_0x160f35[_0x2b7162([0x6f,0x6e])](_0x2b7162([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0xc05917=>{_0x10833c(_0xc05917[_0x2b7162([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0xd32325=!0x0,_0x38b0ae(_0xc05917[_0x2b7162([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x2b7162([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x2b7162([0x6c,0x6f,0x77])}),_0x32dd3e[_0x2b7162([0x74,0x68,0x65,0x6e])](()=>{_0xd32325||_0x5b39ad(_0x2b7162([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x555e67(){return _0x160f35[_0x2b7162([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2b7162([0x76,0x69,0x65,0x77])][_0x2b7162([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x2b7162([0x61,0x75,0x74,0x6f]);}function _0x2d5911(){_0x160f35[_0x2b7162([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2b7162([0x76,0x69,0x65,0x77])][_0x2b7162([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x2b7162([0x61,0x75,0x74,0x6f]);}}function _0x22b8c4(_0x7fd429){const _0xc732f2=[new window[(_0x2b7162([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5e35b3=>setTimeout(_0x5e35b3,0x5356b2f6^_0x1232c7)),_0x32dd3e[_0x2b7162([0x74,0x68,0x65,0x6e])](()=>new window[(_0x2b7162([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x11dc8a=>{let _0x1667e4=0x0;_0x160f35[_0x2b7162([0x6d,0x6f,0x64,0x65,0x6c])][_0x2b7162([0x6f,0x6e])](_0x2b7162([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x9990e7,_0x1738d9)=>{_0x1738d9[0x0][_0x2b7162([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x1667e4++,_0x1667e4==(0x535f89d2^_0x1232c7)&&(_0x11dc8a(),_0x9990e7[_0x2b7162([0x6f,0x66,0x66])]());});}))];return window[_0x2b7162([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x2b7162([0x72,0x61,0x63,0x65])](_0xc732f2)[_0x2b7162([0x74,0x68,0x65,0x6e])](()=>_0x7fd429);}async function _0x1732a4(){await _0x32dd3e,_0x160f35[_0x2b7162([0x6d,0x6f,0x64,0x65,0x6c])][_0x2b7162([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x154817,_0x160f35[_0x2b7162([0x6d,0x6f,0x64,0x65,0x6c])][_0x2b7162([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x154817,_0x160f35[_0x2b7162([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x2b7162([0x6d,0x6f,0x64,0x65,0x6c]));}function _0xa4d44e(_0x22f8b4){const _0x475bc1=_0x2e23ae();_0x160f35[_0x475bc1]=_0x2b7162([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x22f8b4,_0x22f8b4!=_0x2b7162([0x56,0x61,0x6c,0x69,0x64])&&_0x1732a4();}function _0x2e23ae(){const _0x4d74bf=window[_0x2b7162([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x2b7162([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x2b7162([0x6e,0x6f,0x77])]())[_0x2b7162([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x2b7162([0x2e]),'');let _0x1dba9e=_0x2b7162([0x68]);for(let _0x2233b9=0x0;_0x2233b9<_0x4d74bf[_0x2b7162([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2233b9+=0x2){let _0x252962=window[_0x2b7162([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4d74bf[_0x2b7162([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2233b9,_0x2233b9+0x2));_0x252962>=_0xa9c322[_0x2b7162([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x252962-=_0xa9c322[_0x2b7162([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x1dba9e+=_0xa9c322[_0x252962];}return _0x1dba9e;}function _0x389c61(){const _0xea629d=_0x1d3752[_0x2b7162([0x73,0x70,0x6c,0x69,0x74])](_0x2b7162([0x2e]));if(0x3!=_0xea629d[_0x2b7162([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x43083b(_0xea629d[0x1]);function _0x43083b(_0x232b37){const _0x14f159=_0x1f963a(_0x232b37);return _0x14f159&&_0x45617c()?_0x14f159:null;function _0x45617c(){const _0x29bd1d=_0x14f159[_0x2b7162([0x6a,0x74,0x69])],_0x50c75d=window[_0x2b7162([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x29bd1d[_0x2b7162([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x29bd1d[_0x2b7162([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x1e41fe={..._0x14f159,[_0x2b7162([0x6a,0x74,0x69])]:_0x29bd1d[_0x2b7162([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x29bd1d[_0x2b7162([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x1e41fe[_0x2b7162([0x76,0x63])],_0x14c5ef(_0x1e41fe)==_0x50c75d;}}}async function _0x3f5d04(){let _0x1dbb8a=!0x0;try{const _0xeba3ee=_0x1d3752[_0x2b7162([0x73,0x70,0x6c,0x69,0x74])](_0x2b7162([0x2e])),[_0x4d921c,_0x42e06f,_0x150ae2]=_0xeba3ee;return _0x50313d(_0x4d921c),await _0xc7d163(_0x4d921c,_0x42e06f,_0x150ae2),_0x1dbb8a;}catch{return!0x1;}function _0x50313d(_0x142adc){const _0x33ffb1=_0x1f963a(_0x142adc);_0x33ffb1&&_0x33ffb1[_0x2b7162([0x61,0x6c,0x67])]==_0x2b7162([0x45,0x53,0x32,0x35,0x36])||(_0x1dbb8a=!0x1);}async function _0xc7d163(_0xd648cd,_0x48a2ce,_0x560972){const _0x583593=window[_0x2b7162([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x2b7162([0x66,0x72,0x6f,0x6d])](_0x4bb40f(_0x560972),_0x3073c6=>_0x3073c6[_0x2b7162([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x4d59f7=new window[(_0x2b7162([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x2b7162([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0xd648cd+_0x2b7162([0x2e])+_0x48a2ce),_0x4d687d=window[_0x2b7162([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x2b7162([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x4d687d)return;const _0x51fa88=await _0x4d687d[_0x2b7162([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x2b7162([0x6a,0x77,0x6b]),_0x4f2b90,{[_0x2b7162([0x6e,0x61,0x6d,0x65])]:_0x2b7162([0x45,0x43,0x44,0x53,0x41]),[_0x2b7162([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x2b7162([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x2b7162([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x4d687d[_0x2b7162([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x2b7162([0x6e,0x61,0x6d,0x65])]:_0x2b7162([0x45,0x43,0x44,0x53,0x41]),[_0x2b7162([0x68,0x61,0x73,0x68])]:{[_0x2b7162([0x6e,0x61,0x6d,0x65])]:_0x2b7162([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x51fa88,_0x583593,_0x4d59f7)||(_0x1dbb8a=!0x1);}}function _0x1f963a(_0x243795){return _0x243795[_0x2b7162([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x2b7162([0x65,0x79]))?JSON[_0x2b7162([0x70,0x61,0x72,0x73,0x65])](_0x4bb40f(_0x243795)):null;}function _0x4bb40f(_0x57e353){return window[_0x2b7162([0x61,0x74,0x6f,0x62])](_0x57e353[_0x2b7162([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x2b7162([0x2b]))[_0x2b7162([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x2b7162([0x2f])));}function _0x14c5ef(_0x53bacd){let _0x30a208=0x1505;function _0x1095fd(_0x493826){for(let _0x5c9e95=0x0;_0x5c9e95<_0x493826[_0x2b7162([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x5c9e95++){const _0x2ca2a5=_0x493826[_0x2b7162([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x5c9e95);_0x30a208=(_0x30a208<<0x5)+_0x30a208+_0x2ca2a5,_0x30a208&=_0x30a208;}}function _0x1a567a(_0x7a8add){Array[_0x2b7162([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x7a8add)?_0x7a8add[_0x2b7162([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x1a567a):_0x7a8add&&typeof _0x7a8add==_0x2b7162([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x2b7162([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x7a8add)[_0x2b7162([0x73,0x6f,0x72,0x74])]()[_0x2b7162([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x294d81,_0x7d4294])=>{_0x1095fd(_0x294d81),_0x1a567a(_0x7d4294);}):_0x1095fd(window[_0x2b7162([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x7a8add));}return _0x1a567a(_0x53bacd),_0x30a208>>>0x0;}function _0xabeb56(_0x4dfe46){return _0x4dfe46[_0x2b7162([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x2b7162([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x2b7162([0x30]));}function _0x5aa131(_0x2ff730){return _0x2ff730[_0x2b7162([0x73,0x70,0x6c,0x69,0x74])]('')[_0x2b7162([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x2b7162([0x6a,0x6f,0x69,0x6e])]('');}function _0x154817(){}function _0x2b7162(_0x2e334a){return _0x2e334a['map'](_0x449f3e=>String['fromCharCode'](_0x449f3e))['join']('');}_0xa4d44e(await _0x92b177());}(this);}['_initSchema'](){const _0x17c606=this['editor']['model']['schema'];_0x17c606['isRegistered']('imageBlock')&&_0x17c606['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x17c606['isRegistered']('imageInline')&&_0x17c606['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x3c30fd=this['editor'];_0x3c30fd['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x3c30fd['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x36e3c0=>_0x36e3c0['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x4b475e=_0x3c30fd['commands']['get']('replaceImageSource');_0x4b475e&&this['listenTo'](_0x4b475e,'cleanupImage',(_0x4029d9,[_0x248a6d,_0x1da429])=>{_0x248a6d['removeAttribute']('uploadcareImageId',_0x1da429);});}['_initConfig'](){const _0xc61fb=this['editor']['config']['get']('uploadcare.uploader')||{},_0x4fa4bb=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x39ea77(_0x437982['document'],'uc-config',{..._0xc61fb,'pubkey':_0x4fa4bb,'ctx-name':'uploader-'+this['ucContextId'],'sourceList':'','imgOnly':'true','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage'],'externalSourcesEmbedCss':'\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup\x20{\x20padding:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-menu\x20{\x20gap:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-footer\x20{\x20padding-top:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__separator\x20{\x20margin:\x200;\x20}\x0a\x09\x09\x09'}),this['_configElement']['iconHrefResolver']=_0xbed9ca=>{if('closeMax'==_0xbed9ca)return'#uc-icon-arrow-down';},_0x437982['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x39ea77(_0x437982['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader-'+this['ucContextId']}),_0x437982['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x449118=this['editor']['commands']['get']('insertImage');_0x449118&&this['listenTo'](_0x449118,'execute',()=>{const _0x4b537a=this['editor']['model']['document']['selection']['getSelectedElement']();_0x4b537a&&_0x4b537a['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x4b537a);});});const _0x8ba479=this['editor']['commands']['get']('uploadcareImageReplace');_0x8ba479&&this['listenTo'](_0x8ba479,'execute',()=>{const _0x2fa27c=this['editor']['model']['document']['selection']['getSelectedElement']();_0x2fa27c&&_0x2fa27c['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x2fa27c);});});}}class tt extends _0xca6ee3{static get['requires'](){return[o,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x11b396){super(_0x11b396),_0x11b396['config']['define']('uploadcare.uploader.sourceList',[i['Local'],i['URL']]),_0x6ff85b['defineComponents'](_0x6ff85b),this['_defineLocale']();}['_defineLocale'](){const _0x3a4ec7=this['editor']['config']['get']('uploadcare.locale'),_0x129cde=this['editor']['locale']['contentLanguage'];_0x3a4ec7&&_0x6ff85b['defineLocale'](_0x129cde,_0x3a4ec7);}}class ii extends _0x5858f0{constructor(_0x2b2c89){super(_0x2b2c89);const t=_0x2b2c89['t'],_0x276e7a=this['bindTemplate'],_0x1201ed=new _0x38c730();_0x1201ed['isVisible']=!0x0,this['setTemplate']({'tag':'div','attributes':{'class':['ck-uploadcare-form__loading'],'tabindex':'-1'},'children':[{'tag':'div','attributes':{'class':['ck-uploadcare-form__loading-spinner']},'children':[_0x1201ed,{'text':_0x276e7a['to']('imageUploadProgress',_0x2d1728=>t('Loading\x20image...')+'\x20('+(_0x2d1728||0x0)+'%)')}]},{'tag':'div','attributes':{'class':['ck-uploadcare-form__skeleton']},'children':[{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'}]},{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'}]}]}]});}}class ti extends _0x5858f0{constructor(_0x319625){super(_0x319625);const t=_0x319625['t'];this['set']('errorType',null);const _0x541f57=new _0x3221aa(_0x319625);_0x541f57['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x541f57['withText']=!0x0,_0x541f57['class']='ck-button-action',_0x541f57['on']('execute',()=>{this['fire']('retry');}),_0x541f57['bind']('isVisible')['to'](this,'errorType',_0x3d3c8b=>'NotFound'!==_0x3d3c8b);const _0x2d130e=new _0x419363();_0x2d130e['content']=_0xa0d92e,_0x2d130e['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x4ba22c=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':{'class':['ck-uploadcare-form__error'],'tabindex':'-1'},'children':[{'tag':'div','attributes':{'class':['ck-uploadcare-form__error-contents']},'children':[_0x2d130e,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x4ba22c['to']('errorType',_0x202e45=>t('NotFound'!==_0x202e45?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x541f57]},{'tag':'div','attributes':{'class':['ck-uploadcare-form__skeleton']},'children':[{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'}]},{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'}]}]}]});}}class ei extends _0x5858f0{constructor(_0x3f758d,_0x1f66dc){super(_0x3f758d);const _0x325c24=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x1f66dc,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x325c24['to']('imageSrc')}});}}class X extends F{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x5e6c74,_0x493218,_0x5daea4){super(_0x5e6c74),this['_items']=this['createCollection'](),this['_loadingView']=new ii(_0x5e6c74),this['_errorView']=new ti(_0x5e6c74),this['_editingView']=new ei(_0x5e6c74,_0x5daea4),this['_focusableView']=new _0x5858f0(_0x5e6c74),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x493218),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all-excluded','ck-uploadcare-form'],'tabindex':'-1'},'children':this['_items']}),this['_setView'](),this['once']('render',()=>{this['_waitForImageEditorComponent'](this['element'],_0x1c3d44=>{this['_addUploadcareImageEditorListeners'](_0x1c3d44);});}),this['on']('change:status',()=>{this['_setView']();}),this['_addErrorViewListeners']();}['focus'](){this['element']['focus']();}['_setView'](){switch(this['_items']['clear'](),this['status']){case'uploading':this['_items']['add'](this['_loadingView']);break;case'error':this['_items']['add'](this['_errorView']);break;case'ready':this['_items']['addMany']([this['_editingView'],this['_focusableView']]);}}['_waitForImageEditorComponent'](_0x581981,_0x3d9458){const _0x582511='uc-cloud-image-editor',_0x3efd95=_0x581981['querySelector'](_0x582511);if(_0x3efd95)return _0x3d9458(_0x3efd95);const _0x1731aa=new MutationObserver(_0x3f5462=>{const _0x2ad43f=_0x3f5462['filter'](_0xe09757=>_0xe09757['target']===_0x581981&&_0xe09757['addedNodes']['length']>0x0&&_0xe09757['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x582511);_0x2ad43f['length']&&(_0x1731aa['disconnect'](),_0x3d9458(_0x2ad43f[0x0]['addedNodes'][0x0]));});_0x1731aa['observe'](_0x581981,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x5376ca){_0x5376ca['addEventListener']('apply',_0x47f488=>{this['fire']('apply',{'imageSrc':_0x47f488['detail']['cdnUrl']});}),_0x5376ca['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class E extends/* #__PURE__ -- @preserve */
25
- _0x3ee91d(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0xe19d24,_0x543a57,_0x391192){super(),this['_editor']=_0xe19d24,this['_dialog']=_0x543a57,this['_imageElement']=_0x391192,this['_imageCache']=this['_editor']['plugins']['get']('UploadcareImageEditUI')['imageCache'],this['_attributes']=this['_editor']['config']['get']('uploadcare.editor')||{},this['set']({'isActive':!0x0,'imageStatus':'ready','imageErrorType':null,'imageId':null,'imageSrc':null,'imageDimension':null,'imageUploadProgress':null}),this['_prepareImage'](),this['_showDialog']();}['destroy'](){this['isActive']=!0x1,this['stopListening'](),this['stopDelegating'](),'uploading'===this['imageStatus']&&this['_controller']&&this['_controller']['abort']();}async['_prepareImage'](){const _0x45aaa6=this['_imageElement'],_0x4514c4=_0x45aaa6['getAttribute']('uploadcareImageId'),_0x5ca999=_0x45aaa6['getAttribute']('src');if(_0x4514c4)await this['_loadImageInfo'](_0x4514c4,_0x5ca999);else{if(this['_imageCache']['has'](_0x5ca999)){const _0x10dbda=this['_imageCache']['get'](_0x5ca999);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x10dbda['url'],this['imageDimension']=_0x10dbda['dimension'],this['imageId']=_0x10dbda['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x431d45}=this['_editor'],t=_0x431d45['t'],_0x1cc928=new X(_0x431d45,this['imageStatus'],this['_attributes']);_0x1cc928['bind']('status')['to'](this,'imageStatus'),_0x1cc928['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x1cc928['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x1cc928['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x1cc928,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x3d5915,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x1cc928,'position':_0x2146d8['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x1cc928['focus']();},'onHide':()=>{_0x1cc928['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x43828f=>!A(_0x43828f,_0x1cc928['element'])}});}['_loadImageInfo'](_0x4b9f9d,_0x547a3c){return j['getInfo'](_0x4b9f9d,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl')})['then'](_0x179dba=>{const {width:_0x53331d,height:_0x1eeed5}=_0x179dba['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x547a3c,this['imageDimension']={'width':_0x53331d,'height':_0x1eeed5},this['imageId']=_0x4b9f9d;})['catch'](_0x43ec67=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x43ec67['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x1dbcdb,_0x507b81){return this['_getImageAsFile'](_0x1dbcdb)['then'](_0x1ae4c2=>j['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl'),'baseCDN':this['_editor']['config']['get']('uploadcare.uploader.cdnCname'),'signal':_0x507b81['signal'],'file':_0x1ae4c2,'onProgress':_0x298011=>{_0x298011&&_0x298011['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x298011['value']));}}))['then'](_0x400967=>{const {width:_0x319d27,height:_0x73280d}=_0x400967['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x400967['cdnUrl'],this['imageDimension']={'width':_0x319d27,'height':_0x73280d},this['imageId']=_0x400967['uuid'],this['imageUploadProgress']=null;const _0x54190c=_0x1dbcdb['getAttribute']('src');this['_imageCache']['set'](_0x54190c,{'id':_0x400967['uuid'],'url':_0x400967['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x33997f=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x33997f['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x20c2b2,_0x224c28){_0x20c2b2['on']('apply',(_0x118f91,_0x3cd654)=>{this['_replaceImage'](_0x224c28,_0x3cd654['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x20c2b2['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x20c2b2['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x1d1315,_0x4698ee,_0x3c6998){const _0x3f0819=this['_editor'],{width:_0x235b99,height:_0x180d40}=S(_0x4698ee,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x18a346,imageSources:_0x3db382}=C(_0x4698ee,_0x235b99);_0x3f0819['model']['change'](_0x1e8d86=>{if('$graveyard'===_0x1d1315['root']['rootName']){_0x3f0819['execute']('insertImage',{'imageType':_0x1d1315['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x1d1315['getAttributes']()),'uploadcareImageId':_0x3c6998,'src':_0x18a346,'sources':_0x3db382,'width':_0x235b99,'height':_0x180d40}});const _0x2271ef=_0x1d1315['getChildren']();_0x1d1315=_0x3f0819['model']['document']['selection']['getSelectedElement']();for(const _0x2ad9f6 of _0x2271ef)_0x1e8d86['append'](_0x1e8d86['cloneElement'](_0x2ad9f6),_0x1d1315);}else _0x1e8d86['setSelection'](_0x1d1315,'on'),_0x3f0819['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x1d1315['getAttributes']()),'uploadcareImageId':_0x3c6998,'src':_0x18a346,'sources':_0x3db382,'width':_0x235b99,'height':_0x180d40},_0x1d1315);_0x1e8d86['setSelection'](_0x1d1315,'on');});}async['_getImageAsFile'](_0x285173){const _0x378fe6=_0x437982['window'],_0x3c6b2e=_0x437982['document']['location']['href'],_0xfd0764=new _0x378fe6['URL'](_0x285173['getAttribute']('src'),_0x3c6b2e);if('data:'===_0xfd0764['protocol']){const _0xc2073e=_0xfd0764['href']['split'](','),_0x38c8f7=_0xc2073e[0x0]['match'](/:(.*?);/)[0x1],_0x19fef8=_0x38c8f7['split']('/')[0x1],_0x51eede=_0x378fe6['atob'](_0xc2073e[_0xc2073e['length']-0x1]);let _0x499a11=_0x51eede['length'];const _0x11a7a9=new _0x378fe6['Uint8Array'](_0x499a11);for(;_0x499a11--;)_0x11a7a9[_0x499a11]=_0x51eede['charCodeAt'](_0x499a11);return new _0x378fe6['File']([_0x11a7a9],'image.'+_0x19fef8,{'type':_0x38c8f7});}const _0x1a3ae7=_0xfd0764['href']['split']('/'),_0x1b0ccd=_0x1a3ae7[_0x1a3ae7['length']-0x1],_0x13ba88=_0x1b0ccd['split']('.')[0x1];return _0x378fe6['fetch'](_0xfd0764['href'])['then'](_0x4717db=>_0x4717db['clone']()['blob']())['then'](_0xb9a597=>new _0x378fe6['File']([_0xb9a597],_0x1b0ccd,{'type':'image/'+_0x13ba88}));}}class O extends _0x3408de{['imageEditController'];static get['requires'](){return[_0x226fc6];}['_isEditable'];constructor(_0x4e6c53){super(_0x4e6c53),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x5cf129){const _0x26ea4d=G(_0x5cf129);return _0x5b9fb3=>!(!_0x5b9fb3||!_0x5b9fb3['is']('element','imageBlock')&&!_0x5b9fb3['is']('element','imageInline'))&&(!!_0x5b9fb3['hasAttribute']('uploadcareImageId')||!!_0x5b9fb3['hasAttribute']('src')&&_0x26ea4d(_0x5b9fb3['getAttribute']('src')));}(_0x4e6c53['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x130a5c=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x130a5c);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x2234d7=this['editor']['model']['document']['selection']['getSelectedElement']();_0x2234d7&&(_0x2234d7['is']('element','imageBlock')||_0x2234d7['is']('element','imageInline'))&&(this['imageEditController']=new E(this['editor'],this['editor']['plugins']['get'](_0x226fc6),_0x2234d7),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class R extends _0x3408de{['refresh'](){const _0x127b89=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x127b89&&(_0x127b89['is']('element','imageBlock')||_0x127b89['is']('element','imageInline')));}['execute'](_0x3a407f){const _0x3d08e9=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x2c67e7=>{_0x2c67e7['setAttributes'](_0x3a407f,_0x3d08e9),_0x2c67e7['removeAttribute']('srcset',_0x3d08e9),_0x2c67e7['removeAttribute']('sizes',_0x3d08e9);});}}class m extends _0xca6ee3{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[o,_0x578432,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x13f71d}=this;_0x13f71d['commands']['add']('uploadcareImageEdit',new O(_0x13f71d)),_0x13f71d['commands']['add']('uploadcareImageReplace',new R(_0x13f71d));}}class g extends _0xca6ee3{['_imageCache']=new Map();static get['pluginName'](){return'UploadcareImageEditUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['imageCache'](){return this['_imageCache'];}['init'](){const _0x1e0bd1=this['editor'];_0x1e0bd1['ui']['componentFactory']['add']('uploadcareImageEdit',_0x5cba94=>{const _0x2e63a8=_0x1e0bd1['commands']['get']('uploadcareImageEdit'),_0x188114=new _0x3221aa(_0x5cba94),t=_0x5cba94['t'];return _0x188114['set']({'icon':_0x3d5915,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x188114['bind']('isEnabled')['to'](_0x2e63a8),_0x188114['bind']('isOn')['to'](_0x2e63a8,'isActive'),this['listenTo'](_0x188114,'execute',()=>{_0x1e0bd1['execute']('uploadcareImageEdit'),_0x1e0bd1['editing']['view']['focus']();}),_0x188114;}),this['_initConfig']();}['_initConfig'](){const _0x366c8f=_0x39ea77(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x366c8f),this['listenTo'](this['editor'],'destroy',()=>{_0x366c8f['remove']();});}}class et extends _0xca6ee3{static get['pluginName'](){return'UploadcareImageEdit';}static get['requires'](){return[m,g];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{tt as Uploadcare,w as UploadcareCommand,o as UploadcareEditing,et as UploadcareImageEdit,O as UploadcareImageEditCommand,m as UploadcareImageEditEditing,g as UploadcareImageEditUI,e as UploadcareUI,f as UploadcareUploadAdapter};
23
+ import{Plugin as _0x5abfab,Command as _0x2b80ae}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x3cbb14,IconGooglePhotos as _0x40b33e,IconGoogleDrive as _0x52e3a0,IconFacebook as _0x47eb87,IconDropbox as _0x4a99da,IconUploadcareLink as _0x398322,IconUploadcareImageUpload as _0x2ff150,IconError as _0x2e5658,IconUploadcareImageEdit as _0x3fe653}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x1c261d,MenuBarMenuListItemButtonView as _0x15b725,View as _0x37c888,FocusCycler as _0x3d4835,Dialog as _0x14d8f9,DialogViewPosition as _0x963131,SpinnerView as _0x24a6ac,IconView as _0x24777d,Notification as _0x7c5aa5}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x27f74a,DomEmitterMixin as _0x42a10d,global as _0x1ff7f8,getAncestors as _0x173eb8,ObservableMixin as _0x232d2f,uid as _0x616a26,createElement as _0x27a560}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x4515a4}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x5ee6d3,info as _0x193740}from'@uploadcare/upload-client';import*as _0x23b23e from'@uploadcare/file-uploader';var i=function(_0x49f3b9){return _0x49f3b9['Local']='local',_0x49f3b9['URL']='url',_0x49f3b9['Dropbox']='dropbox',_0x49f3b9['GDrive']='gdrive',_0x49f3b9['Facebook']='facebook',_0x49f3b9['GPhotos']='gphotos',_0x49f3b9['OneDrive']='onedrive',_0x49f3b9;}({});function _(_0x4aecd7,_0x364de9,_0x31b324){const t=_0x4aecd7['t'],_0x2f4788=_0x4aecd7['t'];switch(_0x364de9){case i['Local']:return{'text':_0x2f4788('Insert'===_0x31b324?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x2f4788('From\x20computer')};case i['URL']:return{'text':'Insert'===_0x31b324?_0x2f4788('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x2f4788('Via\x20URL')};case i['Dropbox']:return{'text':t('Insert'===_0x31b324?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case i['Facebook']:return{'text':t('Insert'===_0x31b324?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case i['GDrive']:return{'text':t('Insert'===_0x31b324?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case i['GPhotos']:return{'text':t('Insert'===_0x31b324?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case i['OneDrive']:return{'text':t('Insert'===_0x31b324?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x364de9;}}class e extends _0x5abfab{['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 _0xf6d8c6=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x2f66e0;for(const _0xab3191 in _0xf6d8c6){const _0x568094=_0xab3191,_0x472a6f=_0xf6d8c6[_0x568094];if('uploadcareLicenseKeyValid'==_0x472a6f||'uploadcareLicenseKeyInvalid'==_0x472a6f||'uploadcareLicenseKeyExpired'==_0x472a6f||'uploadcareLicenseKeyDomainLimit'==_0x472a6f||'uploadcareLicenseKeyNotAllowed'==_0x472a6f||'uploadcareLicenseKeyEvaluationLimit'==_0x472a6f||'uploadcareLicenseKeyTrialLimit'==_0x472a6f||'uploadcareLicenseKeyUsageLimit'==_0x472a6f){delete _0xf6d8c6[_0x568094],_0x2f66e0=_0x472a6f,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x2f66e0&&_0xf6d8c6['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x2f66e0&&_0xf6d8c6['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x2f66e0&&_0xf6d8c6['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x2f66e0&&_0xf6d8c6['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x2f66e0&&_0xf6d8c6['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyTrialLimit'==_0x2f66e0&&_0xf6d8c6['_showLicenseError']('trialLimit'),'uploadcareLicenseKeyUsageLimit'==_0x2f66e0&&_0xf6d8c6['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0xe346be}=this,_0x34495f=_0xe346be['commands']['get']('uploadcare');if(!_0x34495f)return;const _0x438a7f=this['_normalizeConfigSourceList'](_0xe346be['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x590858,_0x311163)=>{const _0x5e484c=this['_getIntegrationKey'](_0x311163['type']);return _0x590858[_0x5e484c]||(_0x590858[_0x5e484c]=[]),_0x590858[_0x5e484c]['push'](_0x311163),_0x590858;},{});_0xe346be['plugins']['has']('ImageInsertUI')&&_0xe346be['commands']['get']('uploadcare')&&Object['entries'](_0x438a7f)['forEach'](([_0x4ee560,_0x241231])=>{_0xe346be['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x4ee560,'observable':()=>_0x34495f,'buttonViewCreator':()=>this['_createToolbarButton'](_0x241231),'formViewCreator':()=>this['_createDropdownButtons'](_0x241231),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x241231),'override':'assetManager'!==_0x4ee560});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x20c795){const {locale:_0xef104d}=this['editor'];return _0x20c795['map'](_0x46e5c2=>{const _0x996fe9=_(_0xef104d,_0x46e5c2,'Insert');switch(_0x46e5c2){case i['Local']:return{'icon':_0x2ff150,'type':i['Local'],..._0x996fe9};case i['URL']:return{'icon':_0x398322,'type':i['URL'],..._0x996fe9};case i['Dropbox']:return{'icon':_0x4a99da,'type':i['Dropbox'],..._0x996fe9};case i['Facebook']:return{'icon':_0x47eb87,'type':i['Facebook'],..._0x996fe9};case i['GDrive']:return{'icon':_0x52e3a0,'type':i['GDrive'],..._0x996fe9};case i['GPhotos']:return{'icon':_0x40b33e,'type':i['GPhotos'],..._0x996fe9};case i['OneDrive']:return{'icon':_0x3cbb14,'type':i['OneDrive'],..._0x996fe9};}});}['_getIntegrationKey'](_0x45975e){switch(_0x45975e){case i['Local']:return'upload';case i['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x220664,_0x309b91){const _0x3ddbf4=this['editor'],_0x3849c8=new _0x220664(_0x3ddbf4['locale']),_0x1dbda2=_0x3ddbf4['commands']['get']('uploadcare');return _0x3849c8['bind']('isEnabled')['to'](_0x1dbda2),_0x3849c8['on']('execute',()=>{_0x1dbda2['execute'](_0x309b91);}),_0x3849c8;}['_createToolbarButton'](_0x7f37b8){const {locale:_0x1e8be0}=this['editor'],_0x51012e=this['editor']['plugins']['get']('ImageInsertUI'),_0x2670af=_0x7f37b8[0x0],_0x1bd12f=this['_createButton'](_0x1c261d,_0x2670af['type']);return _0x1bd12f['icon']=_0x2670af['icon'],_0x1bd12f['bind']('label')['to'](_0x51012e,'isImageSelected',_0x2b03af=>_(_0x1e8be0,_0x2670af['type'],_0x2b03af?'Replace':'Insert')['text']),_0x1bd12f['tooltip']=!0x0,_0x1bd12f;}['_createDropdownButtons'](_0x2c65bf){const {locale:_0x1c4207}=this['editor'],_0x153109=this['editor']['plugins']['get']('ImageInsertUI');return _0x2c65bf['map'](_0x5b24ee=>{const _0x28bda7=this['_createButton'](_0x1c261d,_0x5b24ee['type']);return _0x28bda7['withText']=!0x0,_0x28bda7['icon']=_0x5b24ee['icon'],_0x28bda7['bind']('label')['to'](_0x153109,'isImageSelected',_0xb8616c=>_(_0x1c4207,_0x5b24ee['type'],_0xb8616c?'Replace':'Insert')['text']),_0x28bda7;});}['_createMenuBarButtons'](_0x518e1a){return _0x518e1a['map'](_0x8c0195=>{const _0x236018=this['_createButton'](_0x15b725,_0x8c0195['type']);return _0x236018['icon']=_0x8c0195['icon'],_0x236018['label']=_0x8c0195['shortText'],_0x236018;});}}class F extends _0x37c888{['focusTracker'];['focusCycler'];constructor(_0x3aa482){super(_0x3aa482),this['focusTracker']=new _0x27f74a(),this['focusCycler']=new _0x3d4835({'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(_0x1b0bb5,_0x555c89){super(_0x1b0bb5),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-'+_0x555c89}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}}function C(_0x35e8ab,_0x205141){const _0x325a03=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0xe24d0a=>_0xe24d0a<=_0x205141)['map'](_0x4e3fda=>_0x35e8ab['replace'](/\/$/,'')+'/-/resize/'+_0x4e3fda+'x/\x20'+_0x4e3fda+'w');return{'imageFallbackUrl':_0x35e8ab,'imageSources':[{'srcset':_0x325a03['join'](',\x20'),'sizes':'(max-width:\x20'+_0x205141+'px)\x20100vw,\x20'+_0x205141+'px','type':'image/webp'}]};}function S(_0x6a7391,_0x18e986,_0x5e1bf2){const _0x28ddc8=_0x6a7391['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x28ddc8?parseInt(_0x28ddc8[0x1],0xa):_0x18e986,'height':_0x28ddc8?parseInt(_0x28ddc8[0x2],0xa):_0x5e1bf2};}function p(_0x516353,_0x2ff6cc){const _0x104eaf=new(_0x42a10d())(),_0xbbc6a3=_0x516353['plugins']['get']('ImageUtils'),_0x4190f6=_0x516353['editing']['mapper']['toViewElement'](_0x2ff6cc),_0x6f3225=_0xbbc6a3['findViewImgElement'](_0x4190f6),_0x307929=_0x516353['editing']['view']['domConverter']['viewToDom'](_0x6f3225),_0x2ba4cf=_0x2ff6cc['getAttribute']('width'),_0x46cd06=_0x2ff6cc['getAttribute']('height'),_0x18ff62='image-processing';_0x516353['editing']['view']['change'](_0x2d40a5=>{_0x2d40a5['addClass'](_0x18ff62,_0x4190f6),_0x2d40a5['setStyle']('aspect-ratio',_0x2ba4cf+'/'+_0x46cd06,_0x6f3225);}),_0x104eaf['listenTo'](_0x307929,'load',()=>{_0x104eaf['stopListening'](_0x307929,'load'),_0x516353['editing']['view']['change'](_0x1157e0=>{_0x1157e0['removeClass'](_0x18ff62,_0x4190f6),_0x1157e0['removeStyle']('aspect-ratio',_0x6f3225);});});}function G(_0x2645a4){if(Array['isArray'](_0x2645a4)){const _0x5ed68e=_0x2645a4['map'](G);return _0x227f79=>_0x5ed68e['some'](_0x141bb4=>_0x141bb4(_0x227f79));}if('origin'==_0x2645a4){const _0x75afa2=_0x1ff7f8['window']['location']['origin'];return _0x516a9d=>new URL(_0x516a9d,_0x1ff7f8['document']['baseURI'])['origin']==_0x75afa2;}return'function'==typeof _0x2645a4?_0x2645a4:_0x2645a4 instanceof RegExp?_0x2fbc22=>!(!_0x2fbc22['match'](_0x2645a4)&&!_0x2fbc22['replace'](/^https?:\/\//,'')['match'](_0x2645a4)):()=>!0x1;}function A(_0x5ccf6f,_0x50db9d){return _0x173eb8(_0x5ccf6f['target'])['includes'](_0x50db9d);}class n extends/* #__PURE__ -- @preserve */
24
+ _0x232d2f(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x2428d5,_0x2b17a9,_0x24905c){super(),this['_editor']=_0x2428d5,this['_editing']=_0x2b17a9,this['_dialog']=_0x2428d5['plugins']['get'](_0x14d8f9),this['_api']=_0x2b17a9['ctxElement']['getAPI'](),this['_type']=_0x24905c,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:_0x40881b,model:_0xd418c8}=this['_editor'],_0x31903b=_0xd418c8['document']['selection']['getSelectedElement'](),_0x1ad171=_0x31903b&&(_0x31903b['is']('element','imageBlock')||_0x31903b['is']('element','imageInline'));this['_formView']=new x(_0x40881b,this['_editing']['ucContextId']),this['_dialog']['show']({'id':'uploadCare','icon':_0x2ff150,'title':_(_0x40881b,this['_type'],_0x1ad171?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x963131['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x4e5f25=>!A(_0x4e5f25,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x1f476c}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x5737aa=>{const _0xf5832=_0x1f476c['length'];for(const _0x1c8142 of _0x1f476c){const _0x4ef170=_0x1c8142===_0x1f476c[_0xf5832-0x1],{cdnUrl:_0x58c236,fileInfo:_0x4b5986}=_0x1c8142;if(!_0x58c236||!_0x4b5986)continue;const {width:_0x436f59,height:_0x3a2543}=_0x4b5986['imageInfo'],_0x18580b=S(_0x58c236,_0x436f59,_0x3a2543),_0x3e05e7=C(_0x58c236,_0x18580b['width']),_0xac50b7={'id':_0x4b5986['uuid'],'type':'image','attributes':{'imageDimension':_0x18580b,..._0x3e05e7}};this['_insertAsset'](_0xac50b7,_0x4ef170,_0x5737aa);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x12d2bb=>{'idle'===_0x12d2bb['detail']['status']&&!_0x12d2bb['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===i['Local']?this['_api']['setCurrentActivity'](i['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x2d0938,_0x292aec,_0xedd8e2){const _0x12c59d=this['_editor']['model']['document']['selection'],_0x5845eb=_0x12c59d['getSelectedElement'](),_0x408a0a=!(!_0x5845eb||!_0x5845eb['is']('element','imageInline'));_0xedd8e2['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x2d0938,_0x408a0a),_0x292aec||_0xedd8e2['setSelection'](_0x12c59d['getLastPosition']());}['_insertImage'](_0x890cd4,_0x141714){const _0xb20e7d=this['_editor'],{imageDimension:_0x1a2f79,imageFallbackUrl:_0x16063f,imageSources:_0x4cc73b}=_0x890cd4['attributes'];_0xb20e7d['execute']('insertImage',{'imageType':_0x141714?'imageInline':null,'source':{'uploadcareImageId':_0x890cd4['id'],'src':_0x16063f,'sources':_0x4cc73b,..._0x1a2f79}});}}class w extends _0x2b80ae{['_editing'];['_controller']=null;static get['requires'](){return[_0x14d8f9,o];}constructor(_0x35b67d){super(_0x35b67d),this['_editing']=_0x35b67d['plugins']['get'](o);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0xf38ceb){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new n(this['editor'],this['_editing'],_0xf38ceb);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class j{static['upload']({file:_0x4840ad,..._0x511b95}){return _0x5ee6d3(_0x4840ad,_0x511b95);}static['getInfo'](_0x4ca38f,_0x5599a7){return _0x193740(_0x4ca38f,_0x5599a7);}}class f extends _0x5abfab{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x4515a4,o];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x467ea1=this['editor'];if(!!!_0x467ea1['config']['get']('uploadcare'))return;_0x467ea1['plugins']['get'](_0x4515a4)['createUploadAdapter']=_0x1792e8=>new k(_0x1792e8,_0x467ea1),_0x467ea1['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x2e64ed,{imageElement:_0x44ddba,data:_0x3c9b13})=>{_0x467ea1['model']['change'](_0x41e079=>{_0x41e079['setAttribute']('uploadcareImageId',_0x3c9b13['uploadcareImageId'],_0x44ddba);});});}}class k{['loader'];['editor'];['controller'];constructor(_0x165235,_0x23b66b){this['loader']=_0x165235,this['editor']=_0x23b66b,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x19163b=await this['loader']['file'];return j['upload']({'file':_0x19163b,'publicKey':this['editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['editor']['config']['get']('uploadcare.uploader.baseUrl'),'baseCDN':this['editor']['config']['get']('uploadcare.uploader.cdnCname'),'signal':this['controller']['signal'],'onProgress':_0x54f43e=>{_0x54f43e&&_0x54f43e['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x54f43e['value']);}})['then'](async _0x4d7e68=>{const {imageFallbackUrl:_0x4adae2,imageSources:_0x4de56b}=C(_0x4d7e68['cdnUrl'],_0x4d7e68['imageInfo']['width']);return{'uploadcareImageId':_0x4d7e68['uuid'],'default':_0x4adae2,'sources':_0x4de56b};})['catch'](()=>{const _0x5527b7=t('Cannot\x20upload\x20file:')+('\x20'+_0x19163b['name']+'.');return Promise['reject'](_0x5527b7);});}['abort'](){this['controller']['abort']();}}class o extends _0x5abfab{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',f,_0x14d8f9];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['ucContextId'];get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}constructor(_0xccd4e9){super(_0xccd4e9),this['ucContextId']=_0x616a26();}['init'](){const _0x1a7993=this['editor'];_0x1a7993['commands']['add']('uploadcare',new w(_0x1a7993));}['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 _0x4570c6=_0x1ff7f8['document']['querySelector']('input[uploadcare-file-input]');_0x4570c6&&_0x4570c6['remove']();}),async function(_0x4839f6){const _0x109f3f=_0x5f1131([0x68,0x67,0x50,0x36,0x38,0x70,0x71,0x63,0x37,0x4f,0x42,0x4a,0x78,0x39,0x75,0x33,0x7a,0x72,0x48,0x61,0x74,0x59,0x55,0x58,0x66,0x30,0x34,0x54,0x64,0x56,0x6b,0x4d,0x46,0x6d,0x77,0x43,0x73,0x35,0x53,0x44,0x41,0x76,0x6a,0x32,0x31,0x69,0x57,0x51,0x47,0x65,0x5a,0x4b,0x4c,0x79,0x52,0x6c,0x45,0x4e,0x6e,0x6f,0x49,0x62]),_0x13d670=0x535f8c3a,_0x3a368e=0x5358f15a^_0x13d670,_0x2edeea=window[_0x5f1131([0x44,0x61,0x74,0x65])][_0x5f1131([0x6e,0x6f,0x77])](),_0x12dd3b=_0x4839f6[_0x5f1131([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x41a742=new window[(_0x5f1131([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5bf48f=>{_0x12dd3b[_0x5f1131([0x6f,0x6e,0x63,0x65])](_0x5f1131([0x72,0x65,0x61,0x64,0x79]),_0x5bf48f);}),_0x36c5d8={[_0x5f1131([0x6b,0x74,0x79])]:_0x5f1131([0x45,0x43]),[_0x5f1131([0x75,0x73,0x65])]:_0x5f1131([0x73,0x69,0x67]),[_0x5f1131([0x63,0x72,0x76])]:_0x5f1131([0x50,0x2d,0x32,0x35,0x36]),[_0x5f1131([0x78])]:_0x5f1131([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]),[_0x5f1131([0x79])]:_0x5f1131([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]),[_0x5f1131([0x61,0x6c,0x67])]:_0x5f1131([0x45,0x53,0x32,0x35,0x36])},_0x1ba451=_0x12dd3b[_0x5f1131([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x5f1131([0x67,0x65,0x74])](_0x5f1131([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x172aef(){let _0x3702af,_0x567215=null,_0x17f561=null;try{if(_0x1ba451==_0x5f1131([0x47,0x50,0x4c]))return _0x5f1131([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x3702af=_0x54a468(),!_0x3702af)return _0x5f1131([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x3702af[_0x5f1131([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x17f561=_0x572f41(_0x3702af[_0x5f1131([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x3702af[_0x5f1131([0x6a,0x74,0x69])])),await _0x318fdf()?_0x415e10()?_0x750c2f()?_0x5f1131([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x5d8de7()?(_0x3702af[_0x5f1131([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x5f1131([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x567215=_0x37fa45(_0x5f1131([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x3702af[_0x5f1131([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x5f1131([0x74,0x72,0x69,0x61,0x6c])&&(_0x567215=_0x37fa45(_0x5f1131([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0xe526dc()):_0x5f1131([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x5f1131([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x5f1131([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x5f1131([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x750c2f(){const _0x474d6c=[_0x5f1131([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x5f1131([0x74,0x72,0x69,0x61,0x6c])][_0x5f1131([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3702af[_0x5f1131([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x2edeea/0x3e8:0xe10*_0x3a368e;return _0x3702af[_0x5f1131([0x65,0x78,0x70])]<_0x474d6c;}function _0x415e10(){const _0x181789=_0x3702af[_0x5f1131([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x181789&&(!!_0x181789[_0x5f1131([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5f1131([0x2a]))||!!_0x181789[_0x5f1131([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5f1131([0x55,0x50,0x4c,0x43])));}function _0x5d8de7(){const _0x4a9a6c=_0x3702af[_0x5f1131([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x4a9a6c||0x0==_0x4a9a6c[_0x5f1131([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x36406a}=new URL(window[_0x5f1131([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x4a9a6c[_0x5f1131([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x36406a))return!0x0;const _0x414261=_0x36406a[_0x5f1131([0x73,0x70,0x6c,0x69,0x74])](_0x5f1131([0x2e]));return _0x4a9a6c[_0x5f1131([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x339825=>_0x339825[_0x5f1131([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5f1131([0x2a])))[_0x5f1131([0x6d,0x61,0x70])](_0x571083=>_0x571083[_0x5f1131([0x73,0x70,0x6c,0x69,0x74])](_0x5f1131([0x2e])))[_0x5f1131([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x146811=>_0x146811[_0x5f1131([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x414261[_0x5f1131([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x5f1131([0x6d,0x61,0x70])](_0x1a5324=>Array(_0x414261[_0x5f1131([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x1a5324[_0x5f1131([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x5f1131([0x66,0x69,0x6c,0x6c])](_0x1a5324[0x0]===_0x5f1131([0x2a])?_0x5f1131([0x2a]):'')[_0x5f1131([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x1a5324))[_0x5f1131([0x73,0x6f,0x6d,0x65])](_0x15278b=>_0x414261[_0x5f1131([0x65,0x76,0x65,0x72,0x79])]((_0x9bfa76,_0x7fcab2)=>_0x15278b[_0x7fcab2]===_0x9bfa76||_0x15278b[_0x7fcab2]===_0x5f1131([0x2a])));}function _0xe526dc(){return _0x567215&&_0x17f561?new window[(_0x5f1131([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x5008e1,_0x1dfd20)=>{_0x567215[_0x5f1131([0x74,0x68,0x65,0x6e])](_0x5008e1,_0x1dfd20),_0x17f561[_0x5f1131([0x74,0x68,0x65,0x6e])](_0x18611c=>{_0x18611c!=_0x5f1131([0x56,0x61,0x6c,0x69,0x64])&&_0x5008e1(_0x18611c);},_0x1dfd20);}):_0x567215||_0x17f561||_0x5f1131([0x56,0x61,0x6c,0x69,0x64]);}}function _0x572f41(_0xba230a,_0x567f86){return new window[(_0x5f1131([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1ea6f3=>{if(_0xee8f66())return _0x1ea6f3(_0x5f1131([0x56,0x61,0x6c,0x69,0x64]));_0x3941c6(),_0x12dd3b[_0x5f1131([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x5f1131([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x2a95d7=!0x1;const _0x45ecc9=_0x616a26();function _0x3ca68f(_0x15796a){return!!_0x15796a&&(typeof _0x15796a===_0x5f1131([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x15796a===_0x5f1131([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x15796a[_0x5f1131([0x74,0x68,0x65,0x6e])]===_0x5f1131([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x15796a[_0x5f1131([0x63,0x61,0x74,0x63,0x68])]===_0x5f1131([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x47ddaa(_0x248b5a){_0xd535e3(_0x248b5a)[_0x5f1131([0x74,0x68,0x65,0x6e])](_0x43d0f8=>{if(!_0x43d0f8||_0x43d0f8[_0x5f1131([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x5f1131([0x6f,0x6b]))return _0x5f1131([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x1feb81(_0x141d62(_0x45ecc9+_0x567f86))!=_0x43d0f8[_0x5f1131([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x5f1131([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x5f1131([0x56,0x61,0x6c,0x69,0x64]);})[_0x5f1131([0x74,0x68,0x65,0x6e])](_0xb26a10=>(_0x3b0a65(),_0xb26a10),()=>{const _0x38d4da=_0x2d77b4();return null==_0x38d4da?(_0x3b0a65(),_0x5f1131([0x56,0x61,0x6c,0x69,0x64])):_0x5f1131(_0x2edeea-_0x38d4da>(0x7753083a^_0x13d670)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x5f1131([0x74,0x68,0x65,0x6e])](_0x1ea6f3)[_0x5f1131([0x63,0x61,0x74,0x63,0x68])](()=>{_0x1ea6f3(_0x5f1131([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x5957c4=0x536962ba^_0x13d670;function _0x3b0a65(){const _0x2e45de=_0x5f1131([0x6c,0x6c,0x63,0x74,0x2d])+_0x1feb81(_0x141d62(_0xba230a)),_0x506b65=_0x4a30d7(_0x1feb81(window[_0x5f1131([0x4d,0x61,0x74,0x68])][_0x5f1131([0x63,0x65,0x69,0x6c])](_0x2edeea/_0x5957c4)));window[_0x5f1131([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x5f1131([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2e45de,_0x506b65);}function _0x2d77b4(){const _0x553632=_0x5f1131([0x6c,0x6c,0x63,0x74,0x2d])+_0x1feb81(_0x141d62(_0xba230a)),_0x2b8282=window[_0x5f1131([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x5f1131([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x553632);return _0x2b8282?window[_0x5f1131([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4a30d7(_0x2b8282),0x10)*_0x5957c4:null;}function _0xd535e3(_0x24c28c){return new window[(_0x5f1131([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1506b8,_0x29e21a)=>{_0x24c28c[_0x5f1131([0x74,0x68,0x65,0x6e])](_0x1506b8,_0x29e21a),window[_0x5f1131([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x29e21a,0x535e58fa^_0x13d670);});}}_0x12dd3b[_0x5f1131([0x6f,0x6e])](_0x5f1131([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x43cf6b,_0x4276d5)=>{if(_0x4276d5[0x0]!=_0xba230a)return _0x1ea6f3(_0x5f1131([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x4276d5[0x1]={..._0x4276d5[0x1],[_0x5f1131([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x45ecc9};},{[_0x5f1131([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x5f1131([0x68,0x69,0x67,0x68])}),_0x12dd3b[_0x5f1131([0x6f,0x6e])](_0x5f1131([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x5b2056=>{_0x3ca68f(_0x5b2056[_0x5f1131([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x2a95d7=!0x0,_0x47ddaa(_0x5b2056[_0x5f1131([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x5f1131([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x5f1131([0x6c,0x6f,0x77])}),_0x41a742[_0x5f1131([0x74,0x68,0x65,0x6e])](()=>{_0x2a95d7||_0x1ea6f3(_0x5f1131([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0xee8f66(){return _0x12dd3b[_0x5f1131([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5f1131([0x76,0x69,0x65,0x77])][_0x5f1131([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x5f1131([0x61,0x75,0x74,0x6f]);}function _0x3941c6(){_0x12dd3b[_0x5f1131([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5f1131([0x76,0x69,0x65,0x77])][_0x5f1131([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x5f1131([0x61,0x75,0x74,0x6f]);}}function _0x37fa45(_0x3a81dc){const _0x504f15=[new window[(_0x5f1131([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x508902=>setTimeout(_0x508902,0x5356b2f6^_0x13d670)),_0x41a742[_0x5f1131([0x74,0x68,0x65,0x6e])](()=>new window[(_0x5f1131([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2647d6=>{let _0x3a6ae1=0x0;_0x12dd3b[_0x5f1131([0x6d,0x6f,0x64,0x65,0x6c])][_0x5f1131([0x6f,0x6e])](_0x5f1131([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x3fa146,_0x1b847a)=>{_0x1b847a[0x0][_0x5f1131([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x3a6ae1++,_0x3a6ae1==(0x535f89d2^_0x13d670)&&(_0x2647d6(),_0x3fa146[_0x5f1131([0x6f,0x66,0x66])]());});}))];return window[_0x5f1131([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x5f1131([0x72,0x61,0x63,0x65])](_0x504f15)[_0x5f1131([0x74,0x68,0x65,0x6e])](()=>_0x3a81dc);}async function _0x151353(){await _0x41a742,_0x12dd3b[_0x5f1131([0x6d,0x6f,0x64,0x65,0x6c])][_0x5f1131([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x3e36f7,_0x12dd3b[_0x5f1131([0x6d,0x6f,0x64,0x65,0x6c])][_0x5f1131([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x3e36f7,_0x12dd3b[_0x5f1131([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x5f1131([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x232797(_0x27448c){const _0x3d7e7c=_0x48eb39();_0x12dd3b[_0x3d7e7c]=_0x5f1131([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x27448c,_0x27448c!=_0x5f1131([0x56,0x61,0x6c,0x69,0x64])&&_0x151353();}function _0x48eb39(){const _0x1d4f85=window[_0x5f1131([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x5f1131([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x5f1131([0x6e,0x6f,0x77])]())[_0x5f1131([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x5f1131([0x2e]),'');let _0x103a69=_0x5f1131([0x68]);for(let _0x1f2d7b=0x0;_0x1f2d7b<_0x1d4f85[_0x5f1131([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1f2d7b+=0x2){let _0x1c3d4a=window[_0x5f1131([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1d4f85[_0x5f1131([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x1f2d7b,_0x1f2d7b+0x2));_0x1c3d4a>=_0x109f3f[_0x5f1131([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x1c3d4a-=_0x109f3f[_0x5f1131([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x103a69+=_0x109f3f[_0x1c3d4a];}return _0x103a69;}function _0x54a468(){const _0x4a11b5=_0x1ba451[_0x5f1131([0x73,0x70,0x6c,0x69,0x74])](_0x5f1131([0x2e]));if(0x3!=_0x4a11b5[_0x5f1131([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x2f4cb8(_0x4a11b5[0x1]);function _0x2f4cb8(_0x42c431){const _0x4884ee=_0x5c7a4d(_0x42c431);return _0x4884ee&&_0x5843cb()?_0x4884ee:null;function _0x5843cb(){const _0x3b9aec=_0x4884ee[_0x5f1131([0x6a,0x74,0x69])],_0x2732fb=window[_0x5f1131([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3b9aec[_0x5f1131([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3b9aec[_0x5f1131([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x5462e6={..._0x4884ee,[_0x5f1131([0x6a,0x74,0x69])]:_0x3b9aec[_0x5f1131([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x3b9aec[_0x5f1131([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x5462e6[_0x5f1131([0x76,0x63])],_0x141d62(_0x5462e6)==_0x2732fb;}}}async function _0x318fdf(){let _0xf41eb3=!0x0;try{const _0x53ed0d=_0x1ba451[_0x5f1131([0x73,0x70,0x6c,0x69,0x74])](_0x5f1131([0x2e])),[_0x30ad02,_0x2a6a9e,_0x39af7d]=_0x53ed0d;return _0x181027(_0x30ad02),await _0x294823(_0x30ad02,_0x2a6a9e,_0x39af7d),_0xf41eb3;}catch{return!0x1;}function _0x181027(_0x35fbc1){const _0x41df8e=_0x5c7a4d(_0x35fbc1);_0x41df8e&&_0x41df8e[_0x5f1131([0x61,0x6c,0x67])]==_0x5f1131([0x45,0x53,0x32,0x35,0x36])||(_0xf41eb3=!0x1);}async function _0x294823(_0x1a369c,_0x58ad03,_0x49df2c){const _0x7f8493=window[_0x5f1131([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x5f1131([0x66,0x72,0x6f,0x6d])](_0x2ef835(_0x49df2c),_0x3cdcd4=>_0x3cdcd4[_0x5f1131([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x27f353=new window[(_0x5f1131([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x5f1131([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x1a369c+_0x5f1131([0x2e])+_0x58ad03),_0x35f7cf=window[_0x5f1131([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x5f1131([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x35f7cf)return;const _0x1ee9d1=await _0x35f7cf[_0x5f1131([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x5f1131([0x6a,0x77,0x6b]),_0x36c5d8,{[_0x5f1131([0x6e,0x61,0x6d,0x65])]:_0x5f1131([0x45,0x43,0x44,0x53,0x41]),[_0x5f1131([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x5f1131([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x5f1131([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x35f7cf[_0x5f1131([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x5f1131([0x6e,0x61,0x6d,0x65])]:_0x5f1131([0x45,0x43,0x44,0x53,0x41]),[_0x5f1131([0x68,0x61,0x73,0x68])]:{[_0x5f1131([0x6e,0x61,0x6d,0x65])]:_0x5f1131([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x1ee9d1,_0x7f8493,_0x27f353)||(_0xf41eb3=!0x1);}}function _0x5c7a4d(_0x339411){return _0x339411[_0x5f1131([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x5f1131([0x65,0x79]))?JSON[_0x5f1131([0x70,0x61,0x72,0x73,0x65])](_0x2ef835(_0x339411)):null;}function _0x2ef835(_0x46e24f){return window[_0x5f1131([0x61,0x74,0x6f,0x62])](_0x46e24f[_0x5f1131([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x5f1131([0x2b]))[_0x5f1131([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x5f1131([0x2f])));}function _0x141d62(_0xc67d39){let _0x4202bc=0x1505;function _0x35902d(_0x3ce241){for(let _0x5a67d8=0x0;_0x5a67d8<_0x3ce241[_0x5f1131([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x5a67d8++){const _0x1dd5f8=_0x3ce241[_0x5f1131([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x5a67d8);_0x4202bc=(_0x4202bc<<0x5)+_0x4202bc+_0x1dd5f8,_0x4202bc&=_0x4202bc;}}function _0xa5f843(_0x20ba5a){Array[_0x5f1131([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x20ba5a)?_0x20ba5a[_0x5f1131([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0xa5f843):_0x20ba5a&&typeof _0x20ba5a==_0x5f1131([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x5f1131([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x20ba5a)[_0x5f1131([0x73,0x6f,0x72,0x74])]()[_0x5f1131([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x222ac9,_0x587bf0])=>{_0x35902d(_0x222ac9),_0xa5f843(_0x587bf0);}):_0x35902d(window[_0x5f1131([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x20ba5a));}return _0xa5f843(_0xc67d39),_0x4202bc>>>0x0;}function _0x1feb81(_0x4e38cf){return _0x4e38cf[_0x5f1131([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x5f1131([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x5f1131([0x30]));}function _0x4a30d7(_0x5fdb82){return _0x5fdb82[_0x5f1131([0x73,0x70,0x6c,0x69,0x74])]('')[_0x5f1131([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x5f1131([0x6a,0x6f,0x69,0x6e])]('');}function _0x3e36f7(){}function _0x5f1131(_0x1d93c8){return _0x1d93c8['map'](_0x522d6e=>String['fromCharCode'](_0x522d6e))['join']('');}_0x232797(await _0x172aef());}(this);}['_initSchema'](){const _0x3751a4=this['editor']['model']['schema'];_0x3751a4['isRegistered']('imageBlock')&&_0x3751a4['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x3751a4['isRegistered']('imageInline')&&_0x3751a4['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x5b04ed=this['editor'];_0x5b04ed['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x5b04ed['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x12585e=>_0x12585e['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x418e29=_0x5b04ed['commands']['get']('replaceImageSource');_0x418e29&&this['listenTo'](_0x418e29,'cleanupImage',(_0x609358,[_0x5b6391,_0x56a61a])=>{_0x5b6391['removeAttribute']('uploadcareImageId',_0x56a61a);});}['_initConfig'](){const _0xf31dc2=this['editor']['config']['get']('uploadcare.uploader')||{},_0x5c3579=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x27a560(_0x1ff7f8['document'],'uc-config',{..._0xf31dc2,'pubkey':_0x5c3579,'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']=_0x116a41=>{if('closeMax'==_0x116a41)return'#uc-icon-arrow-down';},_0x1ff7f8['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x27a560(_0x1ff7f8['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader-'+this['ucContextId']}),_0x1ff7f8['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x5cc3b1=this['editor']['commands']['get']('insertImage');_0x5cc3b1&&this['listenTo'](_0x5cc3b1,'execute',()=>{const _0x10ad38=this['editor']['model']['document']['selection']['getSelectedElement']();_0x10ad38&&_0x10ad38['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x10ad38);});});const _0x232657=this['editor']['commands']['get']('uploadcareImageReplace');_0x232657&&this['listenTo'](_0x232657,'execute',()=>{const _0x435458=this['editor']['model']['document']['selection']['getSelectedElement']();_0x435458&&_0x435458['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x435458);});});}}class tt extends _0x5abfab{static get['requires'](){return[o,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x10319d){super(_0x10319d),_0x10319d['config']['define']('uploadcare.uploader.sourceList',[i['Local'],i['URL']]),_0x23b23e['defineComponents'](_0x23b23e),this['_defineLocale']();}['_defineLocale'](){const _0x19bb08=this['editor']['config']['get']('uploadcare.locale'),_0x2367d7=this['editor']['locale']['contentLanguage'];_0x19bb08&&_0x23b23e['defineLocale'](_0x2367d7,_0x19bb08);}}class ii extends _0x37c888{constructor(_0x217764){super(_0x217764);const t=_0x217764['t'],_0x8c903e=this['bindTemplate'],_0x29cd35=new _0x24a6ac();_0x29cd35['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':[_0x29cd35,{'text':_0x8c903e['to']('imageUploadProgress',_0x45e24f=>t('Loading\x20image...')+'\x20('+(_0x45e24f||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 _0x37c888{constructor(_0x56e2e3){super(_0x56e2e3);const t=_0x56e2e3['t'];this['set']('errorType',null);const _0x518dc7=new _0x1c261d(_0x56e2e3);_0x518dc7['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x518dc7['withText']=!0x0,_0x518dc7['class']='ck-button-action',_0x518dc7['on']('execute',()=>{this['fire']('retry');}),_0x518dc7['bind']('isVisible')['to'](this,'errorType',_0x4b0e2f=>'NotFound'!==_0x4b0e2f);const _0x4b64d3=new _0x24777d();_0x4b64d3['content']=_0x2e5658,_0x4b64d3['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0xbef177=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':[_0x4b64d3,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0xbef177['to']('errorType',_0x26aea7=>t('NotFound'!==_0x26aea7?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x518dc7]},{'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 _0x37c888{constructor(_0x5a85c5,_0x23488a){super(_0x5a85c5);const _0x379788=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x23488a,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x379788['to']('imageSrc')}});}}class X extends F{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0xe43843,_0x4d4ccf,_0x5890cf){super(_0xe43843),this['_items']=this['createCollection'](),this['_loadingView']=new ii(_0xe43843),this['_errorView']=new ti(_0xe43843),this['_editingView']=new ei(_0xe43843,_0x5890cf),this['_focusableView']=new _0x37c888(_0xe43843),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x4d4ccf),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'],_0x2c36b7=>{this['_addUploadcareImageEditorListeners'](_0x2c36b7);});}),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'](_0xec68c1,_0x49d950){const _0x39d0e4='uc-cloud-image-editor',_0xf6db8d=_0xec68c1['querySelector'](_0x39d0e4);if(_0xf6db8d)return _0x49d950(_0xf6db8d);const _0x28ce59=new MutationObserver(_0x2f5c37=>{const _0x39557e=_0x2f5c37['filter'](_0x1a8fc0=>_0x1a8fc0['target']===_0xec68c1&&_0x1a8fc0['addedNodes']['length']>0x0&&_0x1a8fc0['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x39d0e4);_0x39557e['length']&&(_0x28ce59['disconnect'](),_0x49d950(_0x39557e[0x0]['addedNodes'][0x0]));});_0x28ce59['observe'](_0xec68c1,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x2ba89a){_0x2ba89a['addEventListener']('apply',_0x9b3278=>{this['fire']('apply',{'imageSrc':_0x9b3278['detail']['cdnUrl']});}),_0x2ba89a['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class E extends/* #__PURE__ -- @preserve */
25
+ _0x232d2f(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x3d8caf,_0x17b460,_0x4d6159){super(),this['_editor']=_0x3d8caf,this['_dialog']=_0x17b460,this['_imageElement']=_0x4d6159,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 _0x29428f=this['_imageElement'],_0x3d178e=_0x29428f['getAttribute']('uploadcareImageId'),_0x8ae947=_0x29428f['getAttribute']('src');if(_0x3d178e)await this['_loadImageInfo'](_0x3d178e,_0x8ae947);else{if(this['_imageCache']['has'](_0x8ae947)){const _0x39726f=this['_imageCache']['get'](_0x8ae947);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x39726f['url'],this['imageDimension']=_0x39726f['dimension'],this['imageId']=_0x39726f['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x30a5e4}=this['_editor'],t=_0x30a5e4['t'],_0x34cabb=new X(_0x30a5e4,this['imageStatus'],this['_attributes']);_0x34cabb['bind']('status')['to'](this,'imageStatus'),_0x34cabb['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x34cabb['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x34cabb['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x34cabb,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x3fe653,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x34cabb,'position':_0x963131['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x34cabb['focus']();},'onHide':()=>{_0x34cabb['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x5cf66c=>!A(_0x5cf66c,_0x34cabb['element'])}});}['_loadImageInfo'](_0x41ecee,_0x398623){return j['getInfo'](_0x41ecee,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl')})['then'](_0x31514c=>{const {width:_0x95c4bc,height:_0x4cf888}=_0x31514c['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x398623,this['imageDimension']={'width':_0x95c4bc,'height':_0x4cf888},this['imageId']=_0x41ecee;})['catch'](_0x301988=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x301988['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x512720,_0x1ad6d4){return this['_getImageAsFile'](_0x512720)['then'](_0x1b658d=>j['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl'),'baseCDN':this['_editor']['config']['get']('uploadcare.uploader.cdnCname'),'signal':_0x1ad6d4['signal'],'file':_0x1b658d,'onProgress':_0x29caa0=>{_0x29caa0&&_0x29caa0['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x29caa0['value']));}}))['then'](_0x4066a3=>{const {width:_0x1fb767,height:_0x2291ec}=_0x4066a3['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x4066a3['cdnUrl'],this['imageDimension']={'width':_0x1fb767,'height':_0x2291ec},this['imageId']=_0x4066a3['uuid'],this['imageUploadProgress']=null;const _0x4f1b5c=_0x512720['getAttribute']('src');this['_imageCache']['set'](_0x4f1b5c,{'id':_0x4066a3['uuid'],'url':_0x4066a3['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x3509d3=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x3509d3['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x26ce9f,_0x5ed4c0){_0x26ce9f['on']('apply',(_0x6d2c3d,_0x592f73)=>{this['_replaceImage'](_0x5ed4c0,_0x592f73['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x26ce9f['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x26ce9f['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x328047,_0x24fb67,_0x434f7a){const _0x2522d8=this['_editor'],{width:_0x5d76e3,height:_0x301bb6}=S(_0x24fb67,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x49ca49,imageSources:_0x3b2f3c}=C(_0x24fb67,_0x5d76e3);_0x2522d8['model']['change'](_0x32f7be=>{if('$graveyard'===_0x328047['root']['rootName']){_0x2522d8['execute']('insertImage',{'imageType':_0x328047['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x328047['getAttributes']()),'uploadcareImageId':_0x434f7a,'src':_0x49ca49,'sources':_0x3b2f3c,'width':_0x5d76e3,'height':_0x301bb6}});const _0x1f07e9=_0x328047['getChildren']();_0x328047=_0x2522d8['model']['document']['selection']['getSelectedElement']();for(const _0x1e8afa of _0x1f07e9)_0x32f7be['append'](_0x32f7be['cloneElement'](_0x1e8afa),_0x328047);}else _0x32f7be['setSelection'](_0x328047,'on'),_0x2522d8['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x328047['getAttributes']()),'uploadcareImageId':_0x434f7a,'src':_0x49ca49,'sources':_0x3b2f3c,'width':_0x5d76e3,'height':_0x301bb6},_0x328047);_0x32f7be['setSelection'](_0x328047,'on');});}async['_getImageAsFile'](_0x511164){const _0x1ef92a=_0x1ff7f8['window'],_0x4add4f=_0x1ff7f8['document']['location']['href'],_0x47b336=new _0x1ef92a['URL'](_0x511164['getAttribute']('src'),_0x4add4f);if('data:'===_0x47b336['protocol']){const _0x646382=_0x47b336['href']['split'](','),_0x205a7b=_0x646382[0x0]['match'](/:(.*?);/)[0x1],_0x4141a9=_0x205a7b['split']('/')[0x1],_0x17cee6=_0x1ef92a['atob'](_0x646382[_0x646382['length']-0x1]);let _0x4f914a=_0x17cee6['length'];const _0x536f55=new _0x1ef92a['Uint8Array'](_0x4f914a);for(;_0x4f914a--;)_0x536f55[_0x4f914a]=_0x17cee6['charCodeAt'](_0x4f914a);return new _0x1ef92a['File']([_0x536f55],'image.'+_0x4141a9,{'type':_0x205a7b});}const _0x4378d8=_0x47b336['href']['split']('/'),_0x5e1424=_0x4378d8[_0x4378d8['length']-0x1],_0x4d8701=_0x5e1424['split']('.')[0x1];return _0x1ef92a['fetch'](_0x47b336['href'])['then'](_0x3cf79a=>_0x3cf79a['clone']()['blob']())['then'](_0x1ad022=>new _0x1ef92a['File']([_0x1ad022],_0x5e1424,{'type':'image/'+_0x4d8701}));}}class O extends _0x2b80ae{['imageEditController'];static get['requires'](){return[_0x14d8f9];}['_isEditable'];constructor(_0x470676){super(_0x470676),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x582cf1){const _0x50a1b1=G(_0x582cf1);return _0x466498=>!(!_0x466498||!_0x466498['is']('element','imageBlock')&&!_0x466498['is']('element','imageInline'))&&(!!_0x466498['hasAttribute']('uploadcareImageId')||!!_0x466498['hasAttribute']('src')&&_0x50a1b1(_0x466498['getAttribute']('src')));}(_0x470676['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x5e273c=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x5e273c);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x1a2148=this['editor']['model']['document']['selection']['getSelectedElement']();_0x1a2148&&(_0x1a2148['is']('element','imageBlock')||_0x1a2148['is']('element','imageInline'))&&(this['imageEditController']=new E(this['editor'],this['editor']['plugins']['get'](_0x14d8f9),_0x1a2148),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class R extends _0x2b80ae{['refresh'](){const _0x171a0a=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x171a0a&&(_0x171a0a['is']('element','imageBlock')||_0x171a0a['is']('element','imageInline')));}['execute'](_0x27767c){const _0x3cd249=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x13fa4c=>{_0x13fa4c['setAttributes'](_0x27767c,_0x3cd249),_0x13fa4c['removeAttribute']('srcset',_0x3cd249),_0x13fa4c['removeAttribute']('sizes',_0x3cd249);});}}class m extends _0x5abfab{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[o,_0x7c5aa5,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x53e9c8}=this;_0x53e9c8['commands']['add']('uploadcareImageEdit',new O(_0x53e9c8)),_0x53e9c8['commands']['add']('uploadcareImageReplace',new R(_0x53e9c8));}}class g extends _0x5abfab{['_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 _0x28930e=this['editor'];_0x28930e['ui']['componentFactory']['add']('uploadcareImageEdit',_0x5f4338=>{const _0x3ce39b=_0x28930e['commands']['get']('uploadcareImageEdit'),_0x2a7dc2=new _0x1c261d(_0x5f4338),t=_0x5f4338['t'];return _0x2a7dc2['set']({'icon':_0x3fe653,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x2a7dc2['bind']('isEnabled')['to'](_0x3ce39b),_0x2a7dc2['bind']('isOn')['to'](_0x3ce39b,'isActive'),this['listenTo'](_0x2a7dc2,'execute',()=>{_0x28930e['execute']('uploadcareImageEdit'),_0x28930e['editing']['view']['focus']();}),_0x2a7dc2;}),this['_initConfig']();}['_initConfig'](){const _0x2cc6c9=_0x27a560(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x2cc6c9),this['listenTo'](this['editor'],'destroy',()=>{_0x2cc6c9['remove']();});}}class et extends _0x5abfab{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-20251229.0",
3
+ "version": "0.0.0-nightly-20251230.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-20251229.0",
27
- "@ckeditor/ckeditor5-icons": "0.0.0-nightly-20251229.0",
28
- "@ckeditor/ckeditor5-image": "0.0.0-nightly-20251229.0",
29
- "@ckeditor/ckeditor5-theme-lark": "0.0.0-nightly-20251229.0",
30
- "@ckeditor/ckeditor5-ui": "0.0.0-nightly-20251229.0",
31
- "@ckeditor/ckeditor5-upload": "0.0.0-nightly-20251229.0",
32
- "@ckeditor/ckeditor5-utils": "0.0.0-nightly-20251229.0",
33
- "ckeditor5": "0.0.0-nightly-20251229.0",
26
+ "@ckeditor/ckeditor5-core": "0.0.0-nightly-20251230.0",
27
+ "@ckeditor/ckeditor5-icons": "0.0.0-nightly-20251230.0",
28
+ "@ckeditor/ckeditor5-image": "0.0.0-nightly-20251230.0",
29
+ "@ckeditor/ckeditor5-theme-lark": "0.0.0-nightly-20251230.0",
30
+ "@ckeditor/ckeditor5-ui": "0.0.0-nightly-20251230.0",
31
+ "@ckeditor/ckeditor5-upload": "0.0.0-nightly-20251230.0",
32
+ "@ckeditor/ckeditor5-utils": "0.0.0-nightly-20251230.0",
33
+ "ckeditor5": "0.0.0-nightly-20251230.0",
34
34
  "@uploadcare/file-uploader": "1.24.5",
35
35
  "@uploadcare/upload-client": "6.14.3"
36
36
  },
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x2a8722=_0x31ff;(function(_0x174a1a,_0x10b1bc){const _0x2f5da0=_0x31ff,_0x31b9d9=_0x174a1a();while(!![]){try{const _0x11e9ab=parseInt(_0x2f5da0(0xa7))/0x1*(-parseInt(_0x2f5da0(0xd1))/0x2)+parseInt(_0x2f5da0(0xa2))/0x3+-parseInt(_0x2f5da0(0x99))/0x4+parseInt(_0x2f5da0(0x98))/0x5+parseInt(_0x2f5da0(0xa6))/0x6+parseInt(_0x2f5da0(0xd7))/0x7*(-parseInt(_0x2f5da0(0xd6))/0x8)+-parseInt(_0x2f5da0(0xd9))/0x9*(-parseInt(_0x2f5da0(0xaf))/0xa);if(_0x11e9ab===_0x10b1bc)break;else _0x31b9d9['push'](_0x31b9d9['shift']());}catch(_0x2c272c){_0x31b9d9['push'](_0x31b9d9['shift']());}}}(_0x1b54,0x5dd5f));import{Plugin as _0x228d9}from'ckeditor5/src/core.js';import{Dialog as _0x3a49a0}from'ckeditor5/src/ui.js';import{createElement as _0x5ad123,global as _0x2fc513,uid as _0x370fff}from'ckeditor5/src/utils.js';import{UploadcareCommand as _0x482e1d}from'./uploadcarecommand.js';import{UploadcareUploadAdapter as _0x3c3759}from'./uploadcareuploadadapter.js';function _0x31ff(_0x2df9d0,_0xc1a558){const _0x1b541d=_0x1b54();return _0x31ff=function(_0x31ff83,_0xcaf5dc){_0x31ff83=_0x31ff83-0x96;let _0x187ce9=_0x1b541d[_0x31ff83];return _0x187ce9;},_0x31ff(_0x2df9d0,_0xc1a558);}function _0x1b54(){const _0x4b5bb5=['632KcuxFu','add','destroy','configElement','isOfficialPlugin','_initConversion','listenTo','fromCharCode','1874450dneuah','join','querySelector','_ctxElement','upcast','href','requires','once','closeMax','body','_configElement','uc-upload-ctx-provider','_initConfig','imageInline','uploader-','document','_initSchema','render','input[uploadcare-file-input]','data-uc-image-id','removeAttribute','uploadcareImageReplace','remove','view','schema','_initCtx','map','editor','replaceImageSource','conversion','insertImage','getSelectedElement','getAttribute','commands','1236MLUFZw','appendChild','uploadcareImageId','extend','true','287288PlVVol','7hrgtKw','\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup\x20{\x20padding:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-menu\x20{\x20gap:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-footer\x20{\x20padding-top:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__separator\x20{\x20margin:\x200;\x20}\x0a\x09\x09\x09','9cBtQdy','_initImageProcessingIndicator','PictureEditing','#uc-icon-arrow-down','uploadcare.pubkey','uc-config','init','imageBlock','contentLanguage','execute','attributeToAttribute','uploadcare','UploadcareEditing','for','iconHrefResolver','editing','downcast','selection','config','ucContextId','2473465WHLdLs','1995700sBwKEc','isRegistered','locale','elementToAttribute','isPremiumPlugin','pluginName','get','uploadcare.uploader','afterInit','1471506NxSLYc','ctxElement','cleanupImage','model','822738sbJLJC'];_0x1b54=function(){return _0x4b5bb5;};return _0x1b54();}import{showImageProcessingIndicator as _0x44e825}from'./utils/editingutils.js';export class UploadcareEditing extends _0x228d9{[_0x2a8722(0xb9)]=null;[_0x2a8722(0xb2)]=null;static get[_0x2a8722(0x9e)](){const _0x2252a6=_0x2a8722;return _0x2252a6(0xe5);}static get[_0x2a8722(0xb5)](){const _0x4cd723=_0x2a8722;return[_0x4cd723(0xdb),_0x3c3759,_0x3a49a0];}static get[_0x2a8722(0xab)](){return!0x0;}static get[_0x2a8722(0x9d)](){return!0x0;}[_0x2a8722(0x97)];get[_0x2a8722(0xaa)](){const _0x4ab894=_0x2a8722;return this[_0x4ab894(0xb9)];}get[_0x2a8722(0xa3)](){const _0x15bd48=_0x2a8722;return this[_0x15bd48(0xb2)];}constructor(_0x1ae9ce){const _0x4014da=_0x2a8722;super(_0x1ae9ce),this[_0x4014da(0x97)]=_0x370fff();}[_0x2a8722(0xdf)](){const _0x264f27=_0x2a8722,_0x23d0f0=this[_0x264f27(0xca)];_0x23d0f0[_0x264f27(0xd0)][_0x264f27(0xa8)](_0x264f27(0xe4),new _0x482e1d(_0x23d0f0));}[_0x2a8722(0xa1)](){const _0x23e71b=_0x2a8722;this[_0x23e71b(0xbf)](),this[_0x23e71b(0xac)](),this[_0x23e71b(0xbb)](),this[_0x23e71b(0xc8)](),this[_0x23e71b(0xda)](),this[_0x23e71b(0xad)](this[_0x23e71b(0xca)],_0x23e71b(0xa9),()=>{const _0x4d6b4c=_0x23e71b;this[_0x4d6b4c(0xb9)]&&(this[_0x4d6b4c(0xb9)][_0x4d6b4c(0xc5)](),this[_0x4d6b4c(0xb9)]=null),this[_0x4d6b4c(0xb2)]&&(this[_0x4d6b4c(0xb2)][_0x4d6b4c(0xc5)](),this[_0x4d6b4c(0xb2)]=null);const _0x47d9db=_0x2fc513[_0x4d6b4c(0xbe)][_0x4d6b4c(0xb1)](_0x4d6b4c(0xc1));_0x47d9db&&_0x47d9db[_0x4d6b4c(0xc5)]();}),async function(_0x49946f){const _0x23b62e=_0x139f47([0x68,0x67,0x50,0x36,0x38,0x70,0x71,0x63,0x37,0x4f,0x42,0x4a,0x78,0x39,0x75,0x33,0x7a,0x72,0x48,0x61,0x74,0x59,0x55,0x58,0x66,0x30,0x34,0x54,0x64,0x56,0x6b,0x4d,0x46,0x6d,0x77,0x43,0x73,0x35,0x53,0x44,0x41,0x76,0x6a,0x32,0x31,0x69,0x57,0x51,0x47,0x65,0x5a,0x4b,0x4c,0x79,0x52,0x6c,0x45,0x4e,0x6e,0x6f,0x49,0x62]),_0xd52bf9=0x535f8c3a,_0x25d6e9=0x5358f172^_0xd52bf9,_0x564cfc=window[_0x139f47([0x44,0x61,0x74,0x65])][_0x139f47([0x6e,0x6f,0x77])](),_0x16bc14=_0x49946f[_0x139f47([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x2be2d4=new window[(_0x139f47([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x19cda5=>{_0x16bc14[_0x139f47([0x6f,0x6e,0x63,0x65])](_0x139f47([0x72,0x65,0x61,0x64,0x79]),_0x19cda5);}),_0x12a1d5={[_0x139f47([0x6b,0x74,0x79])]:_0x139f47([0x45,0x43]),[_0x139f47([0x75,0x73,0x65])]:_0x139f47([0x73,0x69,0x67]),[_0x139f47([0x63,0x72,0x76])]:_0x139f47([0x50,0x2d,0x32,0x35,0x36]),[_0x139f47([0x78])]:_0x139f47([0x69,0x43,0x6a,0x4f,0x43,0x76,0x44,0x46,0x49,0x36,0x6c,0x51,0x48,0x48,0x54,0x31,0x38,0x6a,0x56,0x77,0x52,0x66,0x6b,0x66,0x48,0x51,0x32,0x61,0x5f,0x4d,0x79,0x6d,0x54,0x33,0x35,0x4c,0x51,0x56,0x6f,0x46,0x53,0x41,0x49]),[_0x139f47([0x79])]:_0x139f47([0x6b,0x58,0x49,0x79,0x4a,0x34,0x65,0x76,0x74,0x43,0x45,0x46,0x52,0x6d,0x78,0x4b,0x53,0x55,0x70,0x4b,0x39,0x66,0x44,0x57,0x34,0x35,0x39,0x76,0x58,0x4f,0x76,0x56,0x72,0x68,0x66,0x36,0x75,0x51,0x41,0x65,0x4f,0x69,0x6f]),[_0x139f47([0x61,0x6c,0x67])]:_0x139f47([0x45,0x53,0x32,0x35,0x36])},_0x43c384=_0x16bc14[_0x139f47([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x139f47([0x67,0x65,0x74])](_0x139f47([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x28837f(){let _0x42b418,_0xe3d349=null,_0x3b8262=null;try{if(_0x43c384==_0x139f47([0x47,0x50,0x4c]))return _0x139f47([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x42b418=_0x553b0f(),!_0x42b418)return _0x139f47([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x42b418[_0x139f47([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x3b8262=_0x9a63c4(_0x42b418[_0x139f47([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x42b418[_0x139f47([0x6a,0x74,0x69])])),await _0x1399c3()?_0xe06dd6()?_0x1d15e5()?_0x139f47([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x24ec6e()?(_0x42b418[_0x139f47([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x139f47([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0xe3d349=_0x2c8ff5(_0x139f47([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x42b418[_0x139f47([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x139f47([0x74,0x72,0x69,0x61,0x6c])&&(_0xe3d349=_0x2c8ff5(_0x139f47([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x18fd3d()):_0x139f47([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x139f47([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x139f47([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x139f47([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x1d15e5(){const _0x2b17f2=[_0x139f47([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x139f47([0x74,0x72,0x69,0x61,0x6c])][_0x139f47([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x42b418[_0x139f47([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x564cfc/0x3e8:0xe10*_0x25d6e9;return _0x42b418[_0x139f47([0x65,0x78,0x70])]<_0x2b17f2;}function _0xe06dd6(){const _0x4e0927=_0x42b418[_0x139f47([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x4e0927&&(!!_0x4e0927[_0x139f47([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x139f47([0x2a]))||!!_0x4e0927[_0x139f47([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x139f47([0x55,0x50,0x4c,0x43])));}function _0x24ec6e(){const _0x1bfe48=_0x31ff,_0x2549f9=_0x42b418[_0x139f47([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x2549f9||0x0==_0x2549f9[_0x139f47([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x54aca6}=new URL(window[_0x139f47([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x1bfe48(0xb4)]);if(_0x2549f9[_0x139f47([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x54aca6))return!0x0;const _0x515888=_0x54aca6[_0x139f47([0x73,0x70,0x6c,0x69,0x74])](_0x139f47([0x2e]));return _0x2549f9[_0x139f47([0x66,0x69,0x6c,0x74,0x65,0x72])](_0xb08259=>_0xb08259[_0x139f47([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x139f47([0x2a])))[_0x139f47([0x6d,0x61,0x70])](_0x38d133=>_0x38d133[_0x139f47([0x73,0x70,0x6c,0x69,0x74])](_0x139f47([0x2e])))[_0x139f47([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x463d16=>_0x463d16[_0x139f47([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x515888[_0x139f47([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x139f47([0x6d,0x61,0x70])](_0x5dfaeb=>Array(_0x515888[_0x139f47([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x5dfaeb[_0x139f47([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x139f47([0x66,0x69,0x6c,0x6c])](_0x5dfaeb[0x0]===_0x139f47([0x2a])?_0x139f47([0x2a]):'')[_0x139f47([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x5dfaeb))[_0x139f47([0x73,0x6f,0x6d,0x65])](_0x3c838e=>_0x515888[_0x139f47([0x65,0x76,0x65,0x72,0x79])]((_0x4b81d4,_0x35d53c)=>_0x3c838e[_0x35d53c]===_0x4b81d4||_0x3c838e[_0x35d53c]===_0x139f47([0x2a])));}function _0x18fd3d(){return _0xe3d349&&_0x3b8262?new window[(_0x139f47([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4d3fa9,_0x5707b5)=>{_0xe3d349[_0x139f47([0x74,0x68,0x65,0x6e])](_0x4d3fa9,_0x5707b5),_0x3b8262[_0x139f47([0x74,0x68,0x65,0x6e])](_0xf6ab9=>{_0xf6ab9!=_0x139f47([0x56,0x61,0x6c,0x69,0x64])&&_0x4d3fa9(_0xf6ab9);},_0x5707b5);}):_0xe3d349||_0x3b8262||_0x139f47([0x56,0x61,0x6c,0x69,0x64]);}}function _0x9a63c4(_0x5a5116,_0x34d5a5){return new window[(_0x139f47([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5c3732=>{if(_0x17b127())return _0x5c3732(_0x139f47([0x56,0x61,0x6c,0x69,0x64]));_0x5ad6dc(),_0x16bc14[_0x139f47([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x139f47([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x418744=!0x1;const _0x5d2f18=_0x370fff();function _0x26fd91(_0x47b429){return!!_0x47b429&&(typeof _0x47b429===_0x139f47([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x47b429===_0x139f47([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x47b429[_0x139f47([0x74,0x68,0x65,0x6e])]===_0x139f47([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x47b429[_0x139f47([0x63,0x61,0x74,0x63,0x68])]===_0x139f47([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x46440f(_0x206454){_0x3cd096(_0x206454)[_0x139f47([0x74,0x68,0x65,0x6e])](_0x3cd370=>{if(!_0x3cd370||_0x3cd370[_0x139f47([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x139f47([0x6f,0x6b]))return _0x139f47([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x237113(_0x5176fe(_0x5d2f18+_0x34d5a5))!=_0x3cd370[_0x139f47([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x139f47([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x139f47([0x56,0x61,0x6c,0x69,0x64]);})[_0x139f47([0x74,0x68,0x65,0x6e])](_0x410311=>(_0x29682b(),_0x410311),()=>{const _0x240a10=_0x5f7d56();return null==_0x240a10?(_0x29682b(),_0x139f47([0x56,0x61,0x6c,0x69,0x64])):_0x139f47(_0x564cfc-_0x240a10>(0x7753083a^_0xd52bf9)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x139f47([0x74,0x68,0x65,0x6e])](_0x5c3732)[_0x139f47([0x63,0x61,0x74,0x63,0x68])](()=>{_0x5c3732(_0x139f47([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x1d3c0c=0x536962ba^_0xd52bf9;function _0x29682b(){const _0x305510=_0x139f47([0x6c,0x6c,0x63,0x74,0x2d])+_0x237113(_0x5176fe(_0x5a5116)),_0x212893=_0x14fe39(_0x237113(window[_0x139f47([0x4d,0x61,0x74,0x68])][_0x139f47([0x63,0x65,0x69,0x6c])](_0x564cfc/_0x1d3c0c)));window[_0x139f47([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x139f47([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x305510,_0x212893);}function _0x5f7d56(){const _0x4aaa54=_0x139f47([0x6c,0x6c,0x63,0x74,0x2d])+_0x237113(_0x5176fe(_0x5a5116)),_0x215cf=window[_0x139f47([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x139f47([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4aaa54);return _0x215cf?window[_0x139f47([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x14fe39(_0x215cf),0x10)*_0x1d3c0c:null;}function _0x3cd096(_0x1c6b03){return new window[(_0x139f47([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x57ae61,_0x1cc9e2)=>{_0x1c6b03[_0x139f47([0x74,0x68,0x65,0x6e])](_0x57ae61,_0x1cc9e2),window[_0x139f47([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x1cc9e2,0x535e58fa^_0xd52bf9);});}}_0x16bc14[_0x139f47([0x6f,0x6e])](_0x139f47([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x25efb4,_0x36e505)=>{if(_0x36e505[0x0]!=_0x5a5116)return _0x5c3732(_0x139f47([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x36e505[0x1]={..._0x36e505[0x1],[_0x139f47([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x5d2f18};},{[_0x139f47([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x139f47([0x68,0x69,0x67,0x68])}),_0x16bc14[_0x139f47([0x6f,0x6e])](_0x139f47([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x2a8857=>{_0x26fd91(_0x2a8857[_0x139f47([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x418744=!0x0,_0x46440f(_0x2a8857[_0x139f47([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x139f47([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x139f47([0x6c,0x6f,0x77])}),_0x2be2d4[_0x139f47([0x74,0x68,0x65,0x6e])](()=>{_0x418744||_0x5c3732(_0x139f47([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x17b127(){return _0x16bc14[_0x139f47([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x139f47([0x76,0x69,0x65,0x77])][_0x139f47([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x139f47([0x61,0x75,0x74,0x6f]);}function _0x5ad6dc(){_0x16bc14[_0x139f47([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x139f47([0x76,0x69,0x65,0x77])][_0x139f47([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x139f47([0x61,0x75,0x74,0x6f]);}}function _0x2c8ff5(_0x53534b){const _0x3ccce4=[new window[(_0x139f47([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x26fd1e=>setTimeout(_0x26fd1e,0x5356b2f6^_0xd52bf9)),_0x2be2d4[_0x139f47([0x74,0x68,0x65,0x6e])](()=>new window[(_0x139f47([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4d7805=>{let _0x1921e6=0x0;_0x16bc14[_0x139f47([0x6d,0x6f,0x64,0x65,0x6c])][_0x139f47([0x6f,0x6e])](_0x139f47([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x524c40,_0x396940)=>{_0x396940[0x0][_0x139f47([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x1921e6++,_0x1921e6==(0x535f89d2^_0xd52bf9)&&(_0x4d7805(),_0x524c40[_0x139f47([0x6f,0x66,0x66])]());});}))];return window[_0x139f47([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x139f47([0x72,0x61,0x63,0x65])](_0x3ccce4)[_0x139f47([0x74,0x68,0x65,0x6e])](()=>_0x53534b);}async function _0x326101(){await _0x2be2d4,_0x16bc14[_0x139f47([0x6d,0x6f,0x64,0x65,0x6c])][_0x139f47([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x37cc56,_0x16bc14[_0x139f47([0x6d,0x6f,0x64,0x65,0x6c])][_0x139f47([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x37cc56,_0x16bc14[_0x139f47([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x139f47([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x230e17(_0xa86dbe){const _0x111c17=_0x3ddfdf();_0x16bc14[_0x111c17]=_0x139f47([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0xa86dbe,_0xa86dbe!=_0x139f47([0x56,0x61,0x6c,0x69,0x64])&&_0x326101();}function _0x3ddfdf(){const _0x419f5e=window[_0x139f47([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x139f47([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x139f47([0x6e,0x6f,0x77])]())[_0x139f47([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x139f47([0x2e]),'');let _0x5e2f64=_0x139f47([0x68]);for(let _0x2c2e14=0x0;_0x2c2e14<_0x419f5e[_0x139f47([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2c2e14+=0x2){let _0x3348d6=window[_0x139f47([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x419f5e[_0x139f47([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2c2e14,_0x2c2e14+0x2));_0x3348d6>=_0x23b62e[_0x139f47([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x3348d6-=_0x23b62e[_0x139f47([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x5e2f64+=_0x23b62e[_0x3348d6];}return _0x5e2f64;}function _0x553b0f(){const _0x12a947=_0x43c384[_0x139f47([0x73,0x70,0x6c,0x69,0x74])](_0x139f47([0x2e]));if(0x3!=_0x12a947[_0x139f47([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x2b103f(_0x12a947[0x1]);function _0x2b103f(_0x39bd4c){const _0xe2591=_0x1ef025(_0x39bd4c);return _0xe2591&&_0x2b8f96()?_0xe2591:null;function _0x2b8f96(){const _0x5a108f=_0xe2591[_0x139f47([0x6a,0x74,0x69])],_0x84a22e=window[_0x139f47([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5a108f[_0x139f47([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x5a108f[_0x139f47([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x4b27d7={..._0xe2591,[_0x139f47([0x6a,0x74,0x69])]:_0x5a108f[_0x139f47([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x5a108f[_0x139f47([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x4b27d7[_0x139f47([0x76,0x63])],_0x5176fe(_0x4b27d7)==_0x84a22e;}}}async function _0x1399c3(){let _0x4879c1=!0x0;try{const _0x14f25f=_0x43c384[_0x139f47([0x73,0x70,0x6c,0x69,0x74])](_0x139f47([0x2e])),[_0x1867aa,_0x4e67ba,_0x4d6612]=_0x14f25f;return _0x21945a(_0x1867aa),await _0x1dab3e(_0x1867aa,_0x4e67ba,_0x4d6612),_0x4879c1;}catch{return!0x1;}function _0x21945a(_0x1f446c){const _0x92317c=_0x1ef025(_0x1f446c);_0x92317c&&_0x92317c[_0x139f47([0x61,0x6c,0x67])]==_0x139f47([0x45,0x53,0x32,0x35,0x36])||(_0x4879c1=!0x1);}async function _0x1dab3e(_0x2132f7,_0x3cacfe,_0x2fba04){const _0x9e255a=window[_0x139f47([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x139f47([0x66,0x72,0x6f,0x6d])](_0x22379a(_0x2fba04),_0x1229ca=>_0x1229ca[_0x139f47([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x3ba6df=new window[(_0x139f47([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x139f47([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x2132f7+_0x139f47([0x2e])+_0x3cacfe),_0x654a52=window[_0x139f47([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x139f47([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x654a52)return;const _0x5825e3=await _0x654a52[_0x139f47([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x139f47([0x6a,0x77,0x6b]),_0x12a1d5,{[_0x139f47([0x6e,0x61,0x6d,0x65])]:_0x139f47([0x45,0x43,0x44,0x53,0x41]),[_0x139f47([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x139f47([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x139f47([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x654a52[_0x139f47([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x139f47([0x6e,0x61,0x6d,0x65])]:_0x139f47([0x45,0x43,0x44,0x53,0x41]),[_0x139f47([0x68,0x61,0x73,0x68])]:{[_0x139f47([0x6e,0x61,0x6d,0x65])]:_0x139f47([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x5825e3,_0x9e255a,_0x3ba6df)||(_0x4879c1=!0x1);}}function _0x1ef025(_0x2f73bc){return _0x2f73bc[_0x139f47([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x139f47([0x65,0x79]))?JSON[_0x139f47([0x70,0x61,0x72,0x73,0x65])](_0x22379a(_0x2f73bc)):null;}function _0x22379a(_0x4ea456){return window[_0x139f47([0x61,0x74,0x6f,0x62])](_0x4ea456[_0x139f47([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x139f47([0x2b]))[_0x139f47([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x139f47([0x2f])));}function _0x5176fe(_0x5884c1){let _0x202930=0x1505;function _0x47a780(_0x589e80){for(let _0xed4387=0x0;_0xed4387<_0x589e80[_0x139f47([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0xed4387++){const _0xa3dc51=_0x589e80[_0x139f47([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0xed4387);_0x202930=(_0x202930<<0x5)+_0x202930+_0xa3dc51,_0x202930&=_0x202930;}}function _0x58f258(_0x443c88){Array[_0x139f47([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x443c88)?_0x443c88[_0x139f47([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x58f258):_0x443c88&&typeof _0x443c88==_0x139f47([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x139f47([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x443c88)[_0x139f47([0x73,0x6f,0x72,0x74])]()[_0x139f47([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x3f1828,_0x58f5b0])=>{_0x47a780(_0x3f1828),_0x58f258(_0x58f5b0);}):_0x47a780(window[_0x139f47([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x443c88));}return _0x58f258(_0x5884c1),_0x202930>>>0x0;}function _0x237113(_0xc5e91d){return _0xc5e91d[_0x139f47([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x139f47([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x139f47([0x30]));}function _0x14fe39(_0x16e187){return _0x16e187[_0x139f47([0x73,0x70,0x6c,0x69,0x74])]('')[_0x139f47([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x139f47([0x6a,0x6f,0x69,0x6e])]('');}function _0x37cc56(){}function _0x139f47(_0xd1b792){const _0x51c72e=_0x31ff;return _0xd1b792[_0x51c72e(0xc9)](_0x39b1d6=>String[_0x51c72e(0xae)](_0x39b1d6))[_0x51c72e(0xb0)]('');}_0x230e17(await _0x28837f());}(this);}[_0x2a8722(0xbf)](){const _0x2da0e2=_0x2a8722,_0x359c30=this[_0x2da0e2(0xca)][_0x2da0e2(0xa5)][_0x2da0e2(0xc7)];_0x359c30[_0x2da0e2(0x9a)](_0x2da0e2(0xe0))&&_0x359c30[_0x2da0e2(0xd4)](_0x2da0e2(0xe0),{'allowAttributes':[_0x2da0e2(0xd3)]}),_0x359c30[_0x2da0e2(0x9a)](_0x2da0e2(0xbc))&&_0x359c30[_0x2da0e2(0xd4)](_0x2da0e2(0xbc),{'allowAttributes':[_0x2da0e2(0xd3)]});}[_0x2a8722(0xac)](){const _0x1db3bc=_0x2a8722,_0x45a204=this[_0x1db3bc(0xca)];_0x45a204[_0x1db3bc(0xcc)][_0x1db3bc(0xe6)](_0x1db3bc(0xe9))[_0x1db3bc(0xe3)]({'model':_0x1db3bc(0xd3),'view':_0x1db3bc(0xc2)}),_0x45a204[_0x1db3bc(0xcc)][_0x1db3bc(0xe6)](_0x1db3bc(0xb3))[_0x1db3bc(0x9c)]({'model':{'key':_0x1db3bc(0xd3),'value':_0x3ec508=>_0x3ec508[_0x1db3bc(0xcf)](_0x1db3bc(0xc2))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x1e4ef8=_0x45a204[_0x1db3bc(0xd0)][_0x1db3bc(0x9f)](_0x1db3bc(0xcb));_0x1e4ef8&&this[_0x1db3bc(0xad)](_0x1e4ef8,_0x1db3bc(0xa4),(_0x2a6c5e,[_0xb97017,_0x2c0d51])=>{const _0x34a2b0=_0x1db3bc;_0xb97017[_0x34a2b0(0xc3)](_0x34a2b0(0xd3),_0x2c0d51);});}[_0x2a8722(0xbb)](){const _0x224547=_0x2a8722,_0x43d5e0=this[_0x224547(0xca)][_0x224547(0x96)][_0x224547(0x9f)](_0x224547(0xa0))||{},_0x54a662=this[_0x224547(0xca)][_0x224547(0x96)][_0x224547(0x9f)](_0x224547(0xdd))||'';this[_0x224547(0xb9)]=_0x5ad123(_0x2fc513[_0x224547(0xbe)],_0x224547(0xde),{..._0x43d5e0,'pubkey':_0x54a662,'ctx-name':_0x224547(0xbd)+this[_0x224547(0x97)],'sourceList':'','imgOnly':_0x224547(0xd5),'removeCopyright':_0x224547(0xd5),'localeName':this[_0x224547(0xca)][_0x224547(0x9b)][_0x224547(0xe1)],'externalSourcesEmbedCss':_0x224547(0xd8)}),this[_0x224547(0xb9)][_0x224547(0xe7)]=_0x6c45a9=>{const _0x5351df=_0x224547;if(_0x5351df(0xb7)==_0x6c45a9)return _0x5351df(0xdc);},_0x2fc513[_0x224547(0xbe)][_0x224547(0xb8)][_0x224547(0xd2)](this[_0x224547(0xb9)]);}[_0x2a8722(0xc8)](){const _0x344c6f=_0x2a8722;this[_0x344c6f(0xb2)]=_0x5ad123(_0x2fc513[_0x344c6f(0xbe)],_0x344c6f(0xba),{'ctx-name':_0x344c6f(0xbd)+this[_0x344c6f(0x97)]}),_0x2fc513[_0x344c6f(0xbe)][_0x344c6f(0xb8)][_0x344c6f(0xd2)](this[_0x344c6f(0xb2)]);}[_0x2a8722(0xda)](){const _0x31b052=_0x2a8722,_0x95eb4b=this[_0x31b052(0xca)][_0x31b052(0xd0)][_0x31b052(0x9f)](_0x31b052(0xcd));_0x95eb4b&&this[_0x31b052(0xad)](_0x95eb4b,_0x31b052(0xe2),()=>{const _0x807da9=_0x31b052,_0x3fcf3e=this[_0x807da9(0xca)][_0x807da9(0xa5)][_0x807da9(0xbe)][_0x807da9(0xea)][_0x807da9(0xce)]();_0x3fcf3e&&_0x3fcf3e[_0x807da9(0xcf)](_0x807da9(0xd3))&&this[_0x807da9(0xca)][_0x807da9(0xe8)][_0x807da9(0xc6)][_0x807da9(0xb6)](_0x807da9(0xc0),()=>{const _0x1c388f=_0x807da9;_0x44e825(this[_0x1c388f(0xca)],_0x3fcf3e);});});const _0x400aea=this[_0x31b052(0xca)][_0x31b052(0xd0)][_0x31b052(0x9f)](_0x31b052(0xc4));_0x400aea&&this[_0x31b052(0xad)](_0x400aea,_0x31b052(0xe2),()=>{const _0x24272f=_0x31b052,_0xa843cd=this[_0x24272f(0xca)][_0x24272f(0xa5)][_0x24272f(0xbe)][_0x24272f(0xea)][_0x24272f(0xce)]();_0xa843cd&&_0xa843cd[_0x24272f(0xcf)](_0x24272f(0xd3))&&this[_0x24272f(0xca)][_0x24272f(0xe8)][_0x24272f(0xc6)][_0x24272f(0xb6)](_0x24272f(0xc0),()=>{const _0x3a6db7=_0x24272f;_0x44e825(this[_0x3a6db7(0xca)],_0xa843cd);});});}}
23
+ const _0xd6f4de=_0x3921;(function(_0x2072a0,_0x2df468){const _0x4c25f1=_0x3921,_0x37f53f=_0x2072a0();while(!![]){try{const _0x54cb40=parseInt(_0x4c25f1(0x15a))/0x1*(parseInt(_0x4c25f1(0x193))/0x2)+-parseInt(_0x4c25f1(0x15e))/0x3*(parseInt(_0x4c25f1(0x15d))/0x4)+parseInt(_0x4c25f1(0x16f))/0x5*(parseInt(_0x4c25f1(0x159))/0x6)+parseInt(_0x4c25f1(0x18d))/0x7*(-parseInt(_0x4c25f1(0x188))/0x8)+parseInt(_0x4c25f1(0x164))/0x9+-parseInt(_0x4c25f1(0x19a))/0xa+parseInt(_0x4c25f1(0x1a7))/0xb*(parseInt(_0x4c25f1(0x1a2))/0xc);if(_0x54cb40===_0x2df468)break;else _0x37f53f['push'](_0x37f53f['shift']());}catch(_0x3dc3f4){_0x37f53f['push'](_0x37f53f['shift']());}}}(_0x4dc0,0x4fa83));function _0x3921(_0x1b9436,_0x22ef8a){const _0x4dc037=_0x4dc0();return _0x3921=function(_0x392191,_0x2efd4b){_0x392191=_0x392191-0x155;let _0x5329bd=_0x4dc037[_0x392191];return _0x5329bd;},_0x3921(_0x1b9436,_0x22ef8a);}function _0x4dc0(){const _0xa2cb47=['schema','replaceImageSource','insertImage','_initConversion','pluginName','attributeToAttribute','imageBlock','_initSchema','once','execute','1787528YlPbDl','elementToAttribute','true','querySelector','uploadcare.uploader','7WkvzQb','uploadcare.pubkey','listenTo','_initCtx','_initConfig','closeMax','4rrpnhz','commands','init','ctxElement','editor','_configElement','isRegistered','3832590NovWNU','_initImageProcessingIndicator','uploadcareImageId','uploader-','extend','join','uploadcareImageReplace','body','150648VEHmKA','upcast','destroy','add','map','253JCVmLA','render','#uc-icon-arrow-down','data-uc-image-id','href','cleanupImage','locale','isOfficialPlugin','editing','6unMawq','295523AiKXGy','view','input[uploadcare-file-input]','292eoJLfR','22602ciLVhf','uc-config','fromCharCode','contentLanguage','afterInit','remove','4320774ExEoGH','appendChild','uploadcare','model','document','iconHrefResolver','downcast','config','PictureEditing','UploadcareEditing','getAttribute','615415BcKnSX','requires','uc-upload-ctx-provider','get','for','getSelectedElement','isPremiumPlugin','ucContextId','configElement','removeAttribute','imageInline','_ctxElement','conversion','selection','\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'];_0x4dc0=function(){return _0xa2cb47;};return _0x4dc0();}import{Plugin as _0x3353e2}from'ckeditor5/src/core.js';import{Dialog as _0x2070e3}from'ckeditor5/src/ui.js';import{createElement as _0x36c9b5,global as _0x2ad06c,uid as _0x54da6b}from'ckeditor5/src/utils.js';import{UploadcareCommand as _0xce96dd}from'./uploadcarecommand.js';import{UploadcareUploadAdapter as _0x3f760a}from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0x401d4d}from'./utils/editingutils.js';export class UploadcareEditing extends _0x3353e2{[_0xd6f4de(0x198)]=null;[_0xd6f4de(0x17a)]=null;static get[_0xd6f4de(0x182)](){const _0x2adc2d=_0xd6f4de;return _0x2adc2d(0x16d);}static get[_0xd6f4de(0x170)](){const _0x8806f1=_0xd6f4de;return[_0x8806f1(0x16c),_0x3f760a,_0x2070e3];}static get[_0xd6f4de(0x157)](){return!0x0;}static get[_0xd6f4de(0x175)](){return!0x0;}[_0xd6f4de(0x176)];get[_0xd6f4de(0x177)](){const _0x2c1f23=_0xd6f4de;return this[_0x2c1f23(0x198)];}get[_0xd6f4de(0x196)](){const _0x4f484b=_0xd6f4de;return this[_0x4f484b(0x17a)];}constructor(_0x3a455e){const _0x40d112=_0xd6f4de;super(_0x3a455e),this[_0x40d112(0x176)]=_0x54da6b();}[_0xd6f4de(0x195)](){const _0xee51d4=_0xd6f4de,_0x5ccef5=this[_0xee51d4(0x197)];_0x5ccef5[_0xee51d4(0x194)][_0xee51d4(0x1a5)](_0xee51d4(0x166),new _0xce96dd(_0x5ccef5));}[_0xd6f4de(0x162)](){const _0x11b1e5=_0xd6f4de;this[_0x11b1e5(0x185)](),this[_0x11b1e5(0x181)](),this[_0x11b1e5(0x191)](),this[_0x11b1e5(0x190)](),this[_0x11b1e5(0x19b)](),this[_0x11b1e5(0x18f)](this[_0x11b1e5(0x197)],_0x11b1e5(0x1a4),()=>{const _0x3d0fff=_0x11b1e5;this[_0x3d0fff(0x198)]&&(this[_0x3d0fff(0x198)][_0x3d0fff(0x163)](),this[_0x3d0fff(0x198)]=null),this[_0x3d0fff(0x17a)]&&(this[_0x3d0fff(0x17a)][_0x3d0fff(0x163)](),this[_0x3d0fff(0x17a)]=null);const _0x775a36=_0x2ad06c[_0x3d0fff(0x168)][_0x3d0fff(0x18b)](_0x3d0fff(0x15c));_0x775a36&&_0x775a36[_0x3d0fff(0x163)]();}),async function(_0x1cb4ba){const _0x2bf683=_0x165fbd([0x68,0x67,0x50,0x36,0x38,0x70,0x71,0x63,0x37,0x4f,0x42,0x4a,0x78,0x39,0x75,0x33,0x7a,0x72,0x48,0x61,0x74,0x59,0x55,0x58,0x66,0x30,0x34,0x54,0x64,0x56,0x6b,0x4d,0x46,0x6d,0x77,0x43,0x73,0x35,0x53,0x44,0x41,0x76,0x6a,0x32,0x31,0x69,0x57,0x51,0x47,0x65,0x5a,0x4b,0x4c,0x79,0x52,0x6c,0x45,0x4e,0x6e,0x6f,0x49,0x62]),_0x12e64f=0x535f8c3a,_0x4c2fb0=0x5358f15a^_0x12e64f,_0x2c9652=window[_0x165fbd([0x44,0x61,0x74,0x65])][_0x165fbd([0x6e,0x6f,0x77])](),_0x10ec95=_0x1cb4ba[_0x165fbd([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x1c122a=new window[(_0x165fbd([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x25f4c9=>{_0x10ec95[_0x165fbd([0x6f,0x6e,0x63,0x65])](_0x165fbd([0x72,0x65,0x61,0x64,0x79]),_0x25f4c9);}),_0x1a5c6d={[_0x165fbd([0x6b,0x74,0x79])]:_0x165fbd([0x45,0x43]),[_0x165fbd([0x75,0x73,0x65])]:_0x165fbd([0x73,0x69,0x67]),[_0x165fbd([0x63,0x72,0x76])]:_0x165fbd([0x50,0x2d,0x32,0x35,0x36]),[_0x165fbd([0x78])]:_0x165fbd([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]),[_0x165fbd([0x79])]:_0x165fbd([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]),[_0x165fbd([0x61,0x6c,0x67])]:_0x165fbd([0x45,0x53,0x32,0x35,0x36])},_0x29a3f2=_0x10ec95[_0x165fbd([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x165fbd([0x67,0x65,0x74])](_0x165fbd([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x4d9ae6(){let _0x1a4cb1,_0x1b64c8=null,_0x5ee910=null;try{if(_0x29a3f2==_0x165fbd([0x47,0x50,0x4c]))return _0x165fbd([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x1a4cb1=_0x2b5b53(),!_0x1a4cb1)return _0x165fbd([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x1a4cb1[_0x165fbd([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x5ee910=_0x2becde(_0x1a4cb1[_0x165fbd([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x1a4cb1[_0x165fbd([0x6a,0x74,0x69])])),await _0x108df4()?_0x3b033b()?_0x278095()?_0x165fbd([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x57347f()?(_0x1a4cb1[_0x165fbd([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x165fbd([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x1b64c8=_0xdf1e5d(_0x165fbd([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x1a4cb1[_0x165fbd([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x165fbd([0x74,0x72,0x69,0x61,0x6c])&&(_0x1b64c8=_0xdf1e5d(_0x165fbd([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x5b4bd9()):_0x165fbd([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x165fbd([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x165fbd([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x165fbd([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x278095(){const _0x5526c8=[_0x165fbd([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x165fbd([0x74,0x72,0x69,0x61,0x6c])][_0x165fbd([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1a4cb1[_0x165fbd([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x2c9652/0x3e8:0xe10*_0x4c2fb0;return _0x1a4cb1[_0x165fbd([0x65,0x78,0x70])]<_0x5526c8;}function _0x3b033b(){const _0x4626ca=_0x1a4cb1[_0x165fbd([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x4626ca&&(!!_0x4626ca[_0x165fbd([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x165fbd([0x2a]))||!!_0x4626ca[_0x165fbd([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x165fbd([0x55,0x50,0x4c,0x43])));}function _0x57347f(){const _0xf4bab1=_0x3921,_0xb8eb2a=_0x1a4cb1[_0x165fbd([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0xb8eb2a||0x0==_0xb8eb2a[_0x165fbd([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x4115d8}=new URL(window[_0x165fbd([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0xf4bab1(0x1ab)]);if(_0xb8eb2a[_0x165fbd([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4115d8))return!0x0;const _0x16d56c=_0x4115d8[_0x165fbd([0x73,0x70,0x6c,0x69,0x74])](_0x165fbd([0x2e]));return _0xb8eb2a[_0x165fbd([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x1ecb9a=>_0x1ecb9a[_0x165fbd([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x165fbd([0x2a])))[_0x165fbd([0x6d,0x61,0x70])](_0x18c097=>_0x18c097[_0x165fbd([0x73,0x70,0x6c,0x69,0x74])](_0x165fbd([0x2e])))[_0x165fbd([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x5e1cd7=>_0x5e1cd7[_0x165fbd([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x16d56c[_0x165fbd([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x165fbd([0x6d,0x61,0x70])](_0xf0008c=>Array(_0x16d56c[_0x165fbd([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0xf0008c[_0x165fbd([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x165fbd([0x66,0x69,0x6c,0x6c])](_0xf0008c[0x0]===_0x165fbd([0x2a])?_0x165fbd([0x2a]):'')[_0x165fbd([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0xf0008c))[_0x165fbd([0x73,0x6f,0x6d,0x65])](_0x3e3271=>_0x16d56c[_0x165fbd([0x65,0x76,0x65,0x72,0x79])]((_0x269811,_0x5ac001)=>_0x3e3271[_0x5ac001]===_0x269811||_0x3e3271[_0x5ac001]===_0x165fbd([0x2a])));}function _0x5b4bd9(){return _0x1b64c8&&_0x5ee910?new window[(_0x165fbd([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x47f096,_0x3ca7c9)=>{_0x1b64c8[_0x165fbd([0x74,0x68,0x65,0x6e])](_0x47f096,_0x3ca7c9),_0x5ee910[_0x165fbd([0x74,0x68,0x65,0x6e])](_0x581416=>{_0x581416!=_0x165fbd([0x56,0x61,0x6c,0x69,0x64])&&_0x47f096(_0x581416);},_0x3ca7c9);}):_0x1b64c8||_0x5ee910||_0x165fbd([0x56,0x61,0x6c,0x69,0x64]);}}function _0x2becde(_0x15ec9d,_0x370391){return new window[(_0x165fbd([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2b9b18=>{if(_0x43d09b())return _0x2b9b18(_0x165fbd([0x56,0x61,0x6c,0x69,0x64]));_0xb08619(),_0x10ec95[_0x165fbd([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x165fbd([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0xba7438=!0x1;const _0x54179c=_0x54da6b();function _0x50aa0a(_0x1c7c9a){return!!_0x1c7c9a&&(typeof _0x1c7c9a===_0x165fbd([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x1c7c9a===_0x165fbd([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x1c7c9a[_0x165fbd([0x74,0x68,0x65,0x6e])]===_0x165fbd([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x1c7c9a[_0x165fbd([0x63,0x61,0x74,0x63,0x68])]===_0x165fbd([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x2d142f(_0x289e4a){_0x50325f(_0x289e4a)[_0x165fbd([0x74,0x68,0x65,0x6e])](_0x11801d=>{if(!_0x11801d||_0x11801d[_0x165fbd([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x165fbd([0x6f,0x6b]))return _0x165fbd([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x52b45c(_0x34b4a0(_0x54179c+_0x370391))!=_0x11801d[_0x165fbd([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x165fbd([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x165fbd([0x56,0x61,0x6c,0x69,0x64]);})[_0x165fbd([0x74,0x68,0x65,0x6e])](_0x13137b=>(_0x5dc852(),_0x13137b),()=>{const _0x5e8de6=_0x3ac818();return null==_0x5e8de6?(_0x5dc852(),_0x165fbd([0x56,0x61,0x6c,0x69,0x64])):_0x165fbd(_0x2c9652-_0x5e8de6>(0x7753083a^_0x12e64f)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x165fbd([0x74,0x68,0x65,0x6e])](_0x2b9b18)[_0x165fbd([0x63,0x61,0x74,0x63,0x68])](()=>{_0x2b9b18(_0x165fbd([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x3635bf=0x536962ba^_0x12e64f;function _0x5dc852(){const _0x5f045b=_0x165fbd([0x6c,0x6c,0x63,0x74,0x2d])+_0x52b45c(_0x34b4a0(_0x15ec9d)),_0x2de9f2=_0x5a34be(_0x52b45c(window[_0x165fbd([0x4d,0x61,0x74,0x68])][_0x165fbd([0x63,0x65,0x69,0x6c])](_0x2c9652/_0x3635bf)));window[_0x165fbd([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x165fbd([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x5f045b,_0x2de9f2);}function _0x3ac818(){const _0x1c8941=_0x165fbd([0x6c,0x6c,0x63,0x74,0x2d])+_0x52b45c(_0x34b4a0(_0x15ec9d)),_0x103785=window[_0x165fbd([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x165fbd([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1c8941);return _0x103785?window[_0x165fbd([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5a34be(_0x103785),0x10)*_0x3635bf:null;}function _0x50325f(_0x36718a){return new window[(_0x165fbd([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x16ad18,_0xb8ddbb)=>{_0x36718a[_0x165fbd([0x74,0x68,0x65,0x6e])](_0x16ad18,_0xb8ddbb),window[_0x165fbd([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0xb8ddbb,0x535e58fa^_0x12e64f);});}}_0x10ec95[_0x165fbd([0x6f,0x6e])](_0x165fbd([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x4422e8,_0x82e4de)=>{if(_0x82e4de[0x0]!=_0x15ec9d)return _0x2b9b18(_0x165fbd([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x82e4de[0x1]={..._0x82e4de[0x1],[_0x165fbd([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x54179c};},{[_0x165fbd([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x165fbd([0x68,0x69,0x67,0x68])}),_0x10ec95[_0x165fbd([0x6f,0x6e])](_0x165fbd([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x4767db=>{_0x50aa0a(_0x4767db[_0x165fbd([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0xba7438=!0x0,_0x2d142f(_0x4767db[_0x165fbd([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x165fbd([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x165fbd([0x6c,0x6f,0x77])}),_0x1c122a[_0x165fbd([0x74,0x68,0x65,0x6e])](()=>{_0xba7438||_0x2b9b18(_0x165fbd([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x43d09b(){return _0x10ec95[_0x165fbd([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x165fbd([0x76,0x69,0x65,0x77])][_0x165fbd([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x165fbd([0x61,0x75,0x74,0x6f]);}function _0xb08619(){_0x10ec95[_0x165fbd([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x165fbd([0x76,0x69,0x65,0x77])][_0x165fbd([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x165fbd([0x61,0x75,0x74,0x6f]);}}function _0xdf1e5d(_0x56679d){const _0x1ec6ef=[new window[(_0x165fbd([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4334d8=>setTimeout(_0x4334d8,0x5356b2f6^_0x12e64f)),_0x1c122a[_0x165fbd([0x74,0x68,0x65,0x6e])](()=>new window[(_0x165fbd([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3d2a40=>{let _0x1eb5e7=0x0;_0x10ec95[_0x165fbd([0x6d,0x6f,0x64,0x65,0x6c])][_0x165fbd([0x6f,0x6e])](_0x165fbd([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x188195,_0xe3a3fe)=>{_0xe3a3fe[0x0][_0x165fbd([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x1eb5e7++,_0x1eb5e7==(0x535f89d2^_0x12e64f)&&(_0x3d2a40(),_0x188195[_0x165fbd([0x6f,0x66,0x66])]());});}))];return window[_0x165fbd([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x165fbd([0x72,0x61,0x63,0x65])](_0x1ec6ef)[_0x165fbd([0x74,0x68,0x65,0x6e])](()=>_0x56679d);}async function _0x23a5b8(){await _0x1c122a,_0x10ec95[_0x165fbd([0x6d,0x6f,0x64,0x65,0x6c])][_0x165fbd([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x34f71f,_0x10ec95[_0x165fbd([0x6d,0x6f,0x64,0x65,0x6c])][_0x165fbd([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x34f71f,_0x10ec95[_0x165fbd([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x165fbd([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x39de5f(_0x453d73){const _0x474256=_0x465803();_0x10ec95[_0x474256]=_0x165fbd([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x453d73,_0x453d73!=_0x165fbd([0x56,0x61,0x6c,0x69,0x64])&&_0x23a5b8();}function _0x465803(){const _0x4fe65c=window[_0x165fbd([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x165fbd([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x165fbd([0x6e,0x6f,0x77])]())[_0x165fbd([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x165fbd([0x2e]),'');let _0x1c2181=_0x165fbd([0x68]);for(let _0x53a029=0x0;_0x53a029<_0x4fe65c[_0x165fbd([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x53a029+=0x2){let _0x480e83=window[_0x165fbd([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4fe65c[_0x165fbd([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x53a029,_0x53a029+0x2));_0x480e83>=_0x2bf683[_0x165fbd([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x480e83-=_0x2bf683[_0x165fbd([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x1c2181+=_0x2bf683[_0x480e83];}return _0x1c2181;}function _0x2b5b53(){const _0x3e79b1=_0x29a3f2[_0x165fbd([0x73,0x70,0x6c,0x69,0x74])](_0x165fbd([0x2e]));if(0x3!=_0x3e79b1[_0x165fbd([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x2dccc3(_0x3e79b1[0x1]);function _0x2dccc3(_0x135ecb){const _0x2946c2=_0x39d09c(_0x135ecb);return _0x2946c2&&_0x3a6608()?_0x2946c2:null;function _0x3a6608(){const _0x43dfd8=_0x2946c2[_0x165fbd([0x6a,0x74,0x69])],_0x13f79e=window[_0x165fbd([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x43dfd8[_0x165fbd([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x43dfd8[_0x165fbd([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x2b5552={..._0x2946c2,[_0x165fbd([0x6a,0x74,0x69])]:_0x43dfd8[_0x165fbd([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x43dfd8[_0x165fbd([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x2b5552[_0x165fbd([0x76,0x63])],_0x34b4a0(_0x2b5552)==_0x13f79e;}}}async function _0x108df4(){let _0x153fea=!0x0;try{const _0x1381a6=_0x29a3f2[_0x165fbd([0x73,0x70,0x6c,0x69,0x74])](_0x165fbd([0x2e])),[_0x164271,_0x221be8,_0x22a85d]=_0x1381a6;return _0x7f3bfb(_0x164271),await _0x1e6984(_0x164271,_0x221be8,_0x22a85d),_0x153fea;}catch{return!0x1;}function _0x7f3bfb(_0x59d541){const _0x581a58=_0x39d09c(_0x59d541);_0x581a58&&_0x581a58[_0x165fbd([0x61,0x6c,0x67])]==_0x165fbd([0x45,0x53,0x32,0x35,0x36])||(_0x153fea=!0x1);}async function _0x1e6984(_0x563f0a,_0x46916f,_0x962573){const _0x586354=window[_0x165fbd([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x165fbd([0x66,0x72,0x6f,0x6d])](_0x557551(_0x962573),_0x353037=>_0x353037[_0x165fbd([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x27413d=new window[(_0x165fbd([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x165fbd([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x563f0a+_0x165fbd([0x2e])+_0x46916f),_0x46efea=window[_0x165fbd([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x165fbd([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x46efea)return;const _0x43e2b6=await _0x46efea[_0x165fbd([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x165fbd([0x6a,0x77,0x6b]),_0x1a5c6d,{[_0x165fbd([0x6e,0x61,0x6d,0x65])]:_0x165fbd([0x45,0x43,0x44,0x53,0x41]),[_0x165fbd([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x165fbd([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x165fbd([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x46efea[_0x165fbd([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x165fbd([0x6e,0x61,0x6d,0x65])]:_0x165fbd([0x45,0x43,0x44,0x53,0x41]),[_0x165fbd([0x68,0x61,0x73,0x68])]:{[_0x165fbd([0x6e,0x61,0x6d,0x65])]:_0x165fbd([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x43e2b6,_0x586354,_0x27413d)||(_0x153fea=!0x1);}}function _0x39d09c(_0x3899fa){return _0x3899fa[_0x165fbd([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x165fbd([0x65,0x79]))?JSON[_0x165fbd([0x70,0x61,0x72,0x73,0x65])](_0x557551(_0x3899fa)):null;}function _0x557551(_0x49878e){return window[_0x165fbd([0x61,0x74,0x6f,0x62])](_0x49878e[_0x165fbd([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x165fbd([0x2b]))[_0x165fbd([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x165fbd([0x2f])));}function _0x34b4a0(_0x224c59){let _0x58c85d=0x1505;function _0x5ba9d6(_0x590ca0){for(let _0x3ba261=0x0;_0x3ba261<_0x590ca0[_0x165fbd([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3ba261++){const _0x78b240=_0x590ca0[_0x165fbd([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x3ba261);_0x58c85d=(_0x58c85d<<0x5)+_0x58c85d+_0x78b240,_0x58c85d&=_0x58c85d;}}function _0x18593f(_0x32078b){Array[_0x165fbd([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x32078b)?_0x32078b[_0x165fbd([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x18593f):_0x32078b&&typeof _0x32078b==_0x165fbd([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x165fbd([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x32078b)[_0x165fbd([0x73,0x6f,0x72,0x74])]()[_0x165fbd([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0xb36735,_0x4295c6])=>{_0x5ba9d6(_0xb36735),_0x18593f(_0x4295c6);}):_0x5ba9d6(window[_0x165fbd([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x32078b));}return _0x18593f(_0x224c59),_0x58c85d>>>0x0;}function _0x52b45c(_0x3ddad4){return _0x3ddad4[_0x165fbd([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x165fbd([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x165fbd([0x30]));}function _0x5a34be(_0x1e9a55){return _0x1e9a55[_0x165fbd([0x73,0x70,0x6c,0x69,0x74])]('')[_0x165fbd([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x165fbd([0x6a,0x6f,0x69,0x6e])]('');}function _0x34f71f(){}function _0x165fbd(_0x23ca66){const _0x18b89a=_0x3921;return _0x23ca66[_0x18b89a(0x1a6)](_0x58bbd6=>String[_0x18b89a(0x160)](_0x58bbd6))[_0x18b89a(0x19f)]('');}_0x39de5f(await _0x4d9ae6());}(this);}[_0xd6f4de(0x185)](){const _0x40fc3e=_0xd6f4de,_0x2f86b3=this[_0x40fc3e(0x197)][_0x40fc3e(0x167)][_0x40fc3e(0x17e)];_0x2f86b3[_0x40fc3e(0x199)](_0x40fc3e(0x184))&&_0x2f86b3[_0x40fc3e(0x19e)](_0x40fc3e(0x184),{'allowAttributes':[_0x40fc3e(0x19c)]}),_0x2f86b3[_0x40fc3e(0x199)](_0x40fc3e(0x179))&&_0x2f86b3[_0x40fc3e(0x19e)](_0x40fc3e(0x179),{'allowAttributes':[_0x40fc3e(0x19c)]});}[_0xd6f4de(0x181)](){const _0x869ddd=_0xd6f4de,_0x40ba4c=this[_0x869ddd(0x197)];_0x40ba4c[_0x869ddd(0x17b)][_0x869ddd(0x173)](_0x869ddd(0x16a))[_0x869ddd(0x183)]({'model':_0x869ddd(0x19c),'view':_0x869ddd(0x1aa)}),_0x40ba4c[_0x869ddd(0x17b)][_0x869ddd(0x173)](_0x869ddd(0x1a3))[_0x869ddd(0x189)]({'model':{'key':_0x869ddd(0x19c),'value':_0x2c0271=>_0x2c0271[_0x869ddd(0x16e)](_0x869ddd(0x1aa))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x15450b=_0x40ba4c[_0x869ddd(0x194)][_0x869ddd(0x172)](_0x869ddd(0x17f));_0x15450b&&this[_0x869ddd(0x18f)](_0x15450b,_0x869ddd(0x155),(_0x1ba1df,[_0x13e741,_0x4effd2])=>{const _0x149738=_0x869ddd;_0x13e741[_0x149738(0x178)](_0x149738(0x19c),_0x4effd2);});}[_0xd6f4de(0x191)](){const _0x30f2e7=_0xd6f4de,_0x1ba497=this[_0x30f2e7(0x197)][_0x30f2e7(0x16b)][_0x30f2e7(0x172)](_0x30f2e7(0x18c))||{},_0x4681dd=this[_0x30f2e7(0x197)][_0x30f2e7(0x16b)][_0x30f2e7(0x172)](_0x30f2e7(0x18e))||'';this[_0x30f2e7(0x198)]=_0x36c9b5(_0x2ad06c[_0x30f2e7(0x168)],_0x30f2e7(0x15f),{..._0x1ba497,'pubkey':_0x4681dd,'ctx-name':_0x30f2e7(0x19d)+this[_0x30f2e7(0x176)],'sourceList':'','imgOnly':_0x30f2e7(0x18a),'removeCopyright':_0x30f2e7(0x18a),'localeName':this[_0x30f2e7(0x197)][_0x30f2e7(0x156)][_0x30f2e7(0x161)],'externalSourcesEmbedCss':_0x30f2e7(0x17d)}),this[_0x30f2e7(0x198)][_0x30f2e7(0x169)]=_0x12c41d=>{const _0x2587cd=_0x30f2e7;if(_0x2587cd(0x192)==_0x12c41d)return _0x2587cd(0x1a9);},_0x2ad06c[_0x30f2e7(0x168)][_0x30f2e7(0x1a1)][_0x30f2e7(0x165)](this[_0x30f2e7(0x198)]);}[_0xd6f4de(0x190)](){const _0x53f6bb=_0xd6f4de;this[_0x53f6bb(0x17a)]=_0x36c9b5(_0x2ad06c[_0x53f6bb(0x168)],_0x53f6bb(0x171),{'ctx-name':_0x53f6bb(0x19d)+this[_0x53f6bb(0x176)]}),_0x2ad06c[_0x53f6bb(0x168)][_0x53f6bb(0x1a1)][_0x53f6bb(0x165)](this[_0x53f6bb(0x17a)]);}[_0xd6f4de(0x19b)](){const _0x31131d=_0xd6f4de,_0x403df7=this[_0x31131d(0x197)][_0x31131d(0x194)][_0x31131d(0x172)](_0x31131d(0x180));_0x403df7&&this[_0x31131d(0x18f)](_0x403df7,_0x31131d(0x187),()=>{const _0x5c0368=_0x31131d,_0x36a773=this[_0x5c0368(0x197)][_0x5c0368(0x167)][_0x5c0368(0x168)][_0x5c0368(0x17c)][_0x5c0368(0x174)]();_0x36a773&&_0x36a773[_0x5c0368(0x16e)](_0x5c0368(0x19c))&&this[_0x5c0368(0x197)][_0x5c0368(0x158)][_0x5c0368(0x15b)][_0x5c0368(0x186)](_0x5c0368(0x1a8),()=>{const _0x3353f5=_0x5c0368;_0x401d4d(this[_0x3353f5(0x197)],_0x36a773);});});const _0x38df17=this[_0x31131d(0x197)][_0x31131d(0x194)][_0x31131d(0x172)](_0x31131d(0x1a0));_0x38df17&&this[_0x31131d(0x18f)](_0x38df17,_0x31131d(0x187),()=>{const _0x184f19=_0x31131d,_0x524e8a=this[_0x184f19(0x197)][_0x184f19(0x167)][_0x184f19(0x168)][_0x184f19(0x17c)][_0x184f19(0x174)]();_0x524e8a&&_0x524e8a[_0x184f19(0x16e)](_0x184f19(0x19c))&&this[_0x184f19(0x197)][_0x184f19(0x158)][_0x184f19(0x15b)][_0x184f19(0x186)](_0x184f19(0x1a8),()=>{const _0x3e8f37=_0x184f19;_0x401d4d(this[_0x3e8f37(0x197)],_0x524e8a);});});}}