@ckeditor/ckeditor5-uploadcare 0.0.0-nightly-20250614.0 → 0.0.0-nightly-20250616.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/build/uploadcare.js +1 -1
- package/dist/index.js +3 -3
- package/package.json +9 -9
- package/src/uploadcareediting.js +1 -1
package/dist/index.js
CHANGED
|
@@ -20,6 +20,6 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as _0x14262d,Command as _0x364f88}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x627e9d,IconGooglePhotos as _0x288953,IconGoogleDrive as _0x1d894a,IconFacebook as _0x21dc7e,IconDropbox as _0x46e42d,IconUploadcareLink as _0x36c2ed,IconUploadcareImageUpload as _0x4e6123,IconError as _0x5731a5,IconUploadcareImageEdit as _0xbc5585}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x234afe,MenuBarMenuListItemButtonView as _0x4d988d,View as _0x1ac964,FocusCycler as _0x22d7db,Dialog as _0x5a9e69,DialogViewPosition as _0x3cc85e,SpinnerView as _0x3810ef,IconView as _0x3103a8,Notification as _0x549b5e}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x5b27e4,DomEmitterMixin as _0x45d3b2,global as _0xdb3be7,getAncestors as _0x7aea6f,ObservableMixin as _0x25238a,createElement as _0x590871,uid as _0x33a573}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0xce9fa9}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x2d974f,info as _0x22b485}from'@uploadcare/upload-client';import*as _0x480d41 from'@uploadcare/file-uploader';var i=function(_0x2e278c){return _0x2e278c['Local']='local',_0x2e278c['URL']='url',_0x2e278c['Dropbox']='dropbox',_0x2e278c['GDrive']='gdrive',_0x2e278c['Facebook']='facebook',_0x2e278c['GPhotos']='gphotos',_0x2e278c['OneDrive']='onedrive',_0x2e278c;}({});function _(_0x20a3fa,_0x47c093,_0x26e754){const t=_0x20a3fa['t'],_0x46bac3=_0x20a3fa['t'];switch(_0x47c093){case i['Local']:return{'text':_0x46bac3('Insert'===_0x26e754?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x46bac3('From\x20computer')};case i['URL']:return{'text':'Insert'===_0x26e754?_0x46bac3('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x46bac3('Via\x20URL')};case i['Dropbox']:return{'text':t('Insert'===_0x26e754?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case i['Facebook']:return{'text':t('Insert'===_0x26e754?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case i['GDrive']:return{'text':t('Insert'===_0x26e754?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case i['GPhotos']:return{'text':t('Insert'===_0x26e754?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case i['OneDrive']:return{'text':t('Insert'===_0x26e754?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x47c093;}}class e extends _0x14262d{['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 _0x518587=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x32fbde;for(const _0x36dacb in _0x518587){const _0x57ed81=_0x36dacb,_0xb424c7=_0x518587[_0x57ed81];if('uploadcareLicenseKeyValid'==_0xb424c7||'uploadcareLicenseKeyInvalid'==_0xb424c7||'uploadcareLicenseKeyExpired'==_0xb424c7||'uploadcareLicenseKeyDomainLimit'==_0xb424c7||'uploadcareLicenseKeyNotAllowed'==_0xb424c7||'uploadcareLicenseKeyEvaluationLimit'==_0xb424c7||'uploadcareLicenseKeyTrialLimit'==_0xb424c7||'uploadcareLicenseKeyUsageLimit'==_0xb424c7){delete _0x518587[_0x57ed81],_0x32fbde=_0xb424c7,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x32fbde&&_0x518587['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x32fbde&&_0x518587['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x32fbde&&_0x518587['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x32fbde&&_0x518587['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x32fbde&&_0x518587['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyTrialLimit'==_0x32fbde&&_0x518587['_showLicenseError']('trialLimit'),'uploadcareLicenseKeyUsageLimit'==_0x32fbde&&_0x518587['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x5edc5e}=this,_0x3b006=_0x5edc5e['commands']['get']('uploadcare');if(!_0x3b006)return;const _0x37fcf3=this['_normalizeConfigSourceList'](_0x5edc5e['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x419c37,_0x356458)=>{const _0x4b56b9=this['_getIntegrationKey'](_0x356458['type']);return _0x419c37[_0x4b56b9]||(_0x419c37[_0x4b56b9]=[]),_0x419c37[_0x4b56b9]['push'](_0x356458),_0x419c37;},{});_0x5edc5e['plugins']['has']('ImageInsertUI')&&_0x5edc5e['commands']['get']('uploadcare')&&Object['entries'](_0x37fcf3)['forEach'](([_0x50d4f0,_0x3bc048])=>{_0x5edc5e['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x50d4f0,'observable':()=>_0x3b006,'buttonViewCreator':()=>this['_createToolbarButton'](_0x3bc048),'formViewCreator':()=>this['_createDropdownButtons'](_0x3bc048),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x3bc048),'override':'assetManager'!==_0x50d4f0});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x44de2b){const {locale:_0x1bb322}=this['editor'];return _0x44de2b['map'](_0x35b162=>{const _0x35c9db=_(_0x1bb322,_0x35b162,'Insert');switch(_0x35b162){case i['Local']:return{'icon':_0x4e6123,'type':i['Local'],..._0x35c9db};case i['URL']:return{'icon':_0x36c2ed,'type':i['URL'],..._0x35c9db};case i['Dropbox']:return{'icon':_0x46e42d,'type':i['Dropbox'],..._0x35c9db};case i['Facebook']:return{'icon':_0x21dc7e,'type':i['Facebook'],..._0x35c9db};case i['GDrive']:return{'icon':_0x1d894a,'type':i['GDrive'],..._0x35c9db};case i['GPhotos']:return{'icon':_0x288953,'type':i['GPhotos'],..._0x35c9db};case i['OneDrive']:return{'icon':_0x627e9d,'type':i['OneDrive'],..._0x35c9db};}});}['_getIntegrationKey'](_0x1129a0){switch(_0x1129a0){case i['Local']:return'upload';case i['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x1c18b3,_0x23bc5a){const _0x4ae56e=this['editor'],_0x36cfbb=new _0x1c18b3(_0x4ae56e['locale']),_0x12e618=_0x4ae56e['commands']['get']('uploadcare');return _0x36cfbb['bind']('isEnabled')['to'](_0x12e618),_0x36cfbb['on']('execute',()=>{_0x12e618['execute'](_0x23bc5a);}),_0x36cfbb;}['_createToolbarButton'](_0x347632){const {locale:_0xa6ed10}=this['editor'],_0x4769c7=this['editor']['plugins']['get']('ImageInsertUI'),_0x5613f2=_0x347632[0x0],_0x245d9f=this['_createButton'](_0x234afe,_0x5613f2['type']);return _0x245d9f['icon']=_0x5613f2['icon'],_0x245d9f['bind']('label')['to'](_0x4769c7,'isImageSelected',_0xc75809=>_(_0xa6ed10,_0x5613f2['type'],_0xc75809?'Replace':'Insert')['text']),_0x245d9f['tooltip']=!0x0,_0x245d9f;}['_createDropdownButtons'](_0x33bc5b){const {locale:_0x10bddd}=this['editor'],_0x15380e=this['editor']['plugins']['get']('ImageInsertUI');return _0x33bc5b['map'](_0x27d9a5=>{const _0x2f23e7=this['_createButton'](_0x234afe,_0x27d9a5['type']);return _0x2f23e7['withText']=!0x0,_0x2f23e7['icon']=_0x27d9a5['icon'],_0x2f23e7['bind']('label')['to'](_0x15380e,'isImageSelected',_0x27631a=>_(_0x10bddd,_0x27d9a5['type'],_0x27631a?'Replace':'Insert')['text']),_0x2f23e7;});}['_createMenuBarButtons'](_0x436835){return _0x436835['map'](_0xe6a6c3=>{const _0x37c6ba=this['_createButton'](_0x4d988d,_0xe6a6c3['type']);return _0x37c6ba['icon']=_0xe6a6c3['icon'],_0x37c6ba['label']=_0xe6a6c3['shortText'],_0x37c6ba;});}}class F extends _0x1ac964{['focusTracker'];['focusCycler'];constructor(_0x497c77){super(_0x497c77),this['focusTracker']=new _0x5b27e4(),this['focusCycler']=new _0x22d7db({'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(_0x110b78){super(_0x110b78),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all-excluded','ck-uploadcare-form'],'tabindex':'-1'},'children':[{'tag':'uc-file-uploader-inline','attributes':{'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'uploader'}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}}function k(_0x2b1a31,_0x120de2){const _0x11371e=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0xce734b=>_0xce734b<=_0x120de2)['map'](_0x1b2b03=>_0x2b1a31['replace'](/\/$/,'')+'/-/resize/'+_0x1b2b03+'x/\x20'+_0x1b2b03+'w');return{'imageFallbackUrl':_0x2b1a31,'imageSources':[{'srcset':_0x11371e['join'](',\x20'),'sizes':'(max-width:\x20'+_0x120de2+'px)\x20100vw,\x20'+_0x120de2+'px','type':'image/webp'}]};}function C(_0x33985f,_0x59abb3,_0xf96f62){const _0x3bf4bf=_0x33985f['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x3bf4bf?parseInt(_0x3bf4bf[0x1],0xa):_0x59abb3,'height':_0x3bf4bf?parseInt(_0x3bf4bf[0x2],0xa):_0xf96f62};}function p(_0x351257,_0x29b677){const _0x26d945=new(_0x45d3b2())(),_0x4e19f5=_0x351257['plugins']['get']('ImageUtils'),_0x955194=_0x351257['editing']['mapper']['toViewElement'](_0x29b677),_0x26aeee=_0x4e19f5['findViewImgElement'](_0x955194),_0x34570a=_0x351257['editing']['view']['domConverter']['viewToDom'](_0x26aeee),_0x3862ed=_0x29b677['getAttribute']('width'),_0x162105=_0x29b677['getAttribute']('height'),_0x1b5507='image-processing';_0x351257['editing']['view']['change'](_0x4d5796=>{_0x4d5796['addClass'](_0x1b5507,_0x955194),_0x4d5796['setStyle']('aspect-ratio',_0x3862ed+'/'+_0x162105,_0x26aeee);}),_0x26d945['listenTo'](_0x34570a,'load',()=>{_0x26d945['stopListening'](_0x34570a,'load'),_0x351257['editing']['view']['change'](_0x1e6787=>{_0x1e6787['removeClass'](_0x1b5507,_0x955194),_0x1e6787['removeStyle']('aspect-ratio',_0x26aeee);});});}function G(_0x3c5785){if(Array['isArray'](_0x3c5785)){const _0x540293=_0x3c5785['map'](G);return _0x3173db=>_0x540293['some'](_0x3f9387=>_0x3f9387(_0x3173db));}if('origin'==_0x3c5785){const _0x3fa71c=_0xdb3be7['window']['location']['origin'];return _0x1d4430=>new URL(_0x1d4430,_0xdb3be7['document']['baseURI'])['origin']==_0x3fa71c;}return'function'==typeof _0x3c5785?_0x3c5785:_0x3c5785 instanceof RegExp?_0x30f5c3=>!(!_0x30f5c3['match'](_0x3c5785)&&!_0x30f5c3['replace'](/^https?:\/\//,'')['match'](_0x3c5785)):()=>!0x1;}function S(_0x486778,_0x222a8d){return _0x7aea6f(_0x486778['target'])['includes'](_0x222a8d);}class n extends/* #__PURE__ -- @preserve */
|
|
24
|
-
_0x25238a(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0xb3445a,_0x354e3f,_0x16a6c0){super(),this['_editor']=_0xb3445a,this['_editing']=_0x354e3f,this['_dialog']=_0xb3445a['plugins']['get'](_0x5a9e69),this['_api']=_0x354e3f['ctxElement']['getAPI'](),this['_type']=_0x16a6c0,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:_0x51182d,model:_0x1cd015}=this['_editor'],_0x38195c=_0x1cd015['document']['selection']['getSelectedElement'](),_0x5e871e=_0x38195c&&(_0x38195c['is']('element','imageBlock')||_0x38195c['is']('element','imageInline'));this['_formView']=new x(_0x51182d),this['_dialog']['show']({'id':'uploadCare','icon':_0x4e6123,'title':_(_0x51182d,this['_type'],_0x5e871e?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x3cc85e['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x1a9658=>!S(_0x1a9658,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x35ffe5}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x43008c=>{const _0x1d76c0=_0x35ffe5['length'];for(const _0x34e3d9 of _0x35ffe5){const _0x178629=_0x34e3d9===_0x35ffe5[_0x1d76c0-0x1],{cdnUrl:_0x49a485,fileInfo:_0x47a218}=_0x34e3d9;if(!_0x49a485||!_0x47a218)continue;const {width:_0x1c584e,height:_0x96cc7b}=_0x47a218['imageInfo'],_0x2caf2c=C(_0x49a485,_0x1c584e,_0x96cc7b),_0x5aef3f=k(_0x49a485,_0x2caf2c['width']),_0x2b9fd2={'id':_0x47a218['uuid'],'type':'image','attributes':{'imageDimension':_0x2caf2c,..._0x5aef3f}};this['_insertAsset'](_0x2b9fd2,_0x178629,_0x43008c);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x10a82e=>{'idle'===_0x10a82e['detail']['status']&&!_0x10a82e['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===i['Local']?this['_api']['setCurrentActivity'](i['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x485e9d,_0x254d57,_0xc5ae8f){const _0x5bbb35=this['_editor']['model']['document']['selection'],_0x19c81b=_0x5bbb35['getSelectedElement'](),_0x13e998=!(!_0x19c81b||!_0x19c81b['is']('element','imageInline'));_0xc5ae8f['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x485e9d,_0x13e998),_0x254d57||_0xc5ae8f['setSelection'](_0x5bbb35['getLastPosition']());}['_insertImage'](_0xd8646,_0x4db197){const _0x219bd1=this['_editor'],{imageDimension:_0x189b9b,imageFallbackUrl:_0x1b5840,imageSources:_0x22c29a}=_0xd8646['attributes'];_0x219bd1['execute']('insertImage',{'imageType':_0x4db197?'imageInline':null,'source':{'uploadcareImageId':_0xd8646['id'],'src':_0x1b5840,'sources':_0x22c29a,..._0x189b9b}});}}class w extends _0x364f88{['_editing'];['_controller']=null;static get['requires'](){return[_0x5a9e69,o];}constructor(_0x3b9f6e){super(_0x3b9f6e),this['_editing']=_0x3b9f6e['plugins']['get'](o);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x2b7100){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new n(this['editor'],this['_editing'],_0x2b7100);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class j{static['upload']({file:_0x21b03b,publicKey:_0x2ac524,signal:_0x2ed81d,onProgress:_0x1bd73f}){return _0x2d974f(_0x21b03b,{'publicKey':_0x2ac524,'store':'auto','signal':_0x2ed81d,'onProgress':_0x1bd73f});}static['getInfo'](_0x51a8df,_0x5966f4){return _0x22b485(_0x51a8df,_0x5966f4);}}class f extends _0x14262d{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0xce9fa9,o];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x335f0b=this['editor'];if(!!!_0x335f0b['config']['get']('uploadcare'))return;_0x335f0b['plugins']['get'](_0xce9fa9)['createUploadAdapter']=_0x170ad8=>new A(_0x170ad8,_0x335f0b),_0x335f0b['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x3df0f7,{imageElement:_0x18e979,data:_0x26e55d})=>{_0x335f0b['model']['change'](_0x533b32=>{_0x533b32['setAttribute']('uploadcareImageId',_0x26e55d['uploadcareImageId'],_0x18e979);});});}}class A{['loader'];['editor'];['controller'];constructor(_0xe185f4,_0xaf7db8){this['loader']=_0xe185f4,this['editor']=_0xaf7db8,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x39975a=this['editor']['config']['get']('uploadcare.pubkey'),_0x4371fa=await this['loader']['file'];return j['upload']({'file':_0x4371fa,'publicKey':_0x39975a,'signal':this['controller']['signal'],'onProgress':_0x423539=>{_0x423539&&_0x423539['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x423539['value']);}})['then'](async _0x315936=>{const {imageFallbackUrl:_0x269f9a,imageSources:_0x3f3750}=k(_0x315936['cdnUrl'],_0x315936['imageInfo']['width']);return{'uploadcareImageId':_0x315936['uuid'],'default':_0x269f9a,'sources':_0x3f3750};})['catch'](()=>{const _0xe01dbe=t('Cannot\x20upload\x20file:')+('\x20'+_0x4371fa['name']+'.');return Promise['reject'](_0xe01dbe);});}['abort'](){this['controller']['abort']();}}class o extends _0x14262d{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',f,_0x5a9e69];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}['init'](){const _0x54271c=this['editor'];_0x54271c['commands']['add']('uploadcare',new w(_0x54271c));}['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 _0x5ace20=_0xdb3be7['document']['querySelector']('input[uploadcare-file-input]');_0x5ace20&&_0x5ace20['remove']();}),async function(_0xd08b9e){const _0x4ab03c=_0x453acf([0x42,0x56,0x7a,0x33,0x31,0x57,0x39,0x50,0x4b,0x62,0x64,0x6f,0x36,0x34,0x6a,0x35,0x37,0x79,0x54,0x61,0x4a,0x47,0x5a,0x65,0x4d,0x70,0x4c,0x6d,0x76,0x66,0x71,0x69,0x4e,0x45,0x48,0x6b,0x72,0x51,0x52,0x43,0x68,0x73,0x53,0x74,0x55,0x41,0x58,0x30,0x78,0x77,0x6c,0x63,0x4f,0x38,0x46,0x44,0x49,0x59,0x75,0x32,0x67,0x6e]),_0x28946d=0x28f7ac2d,_0x116ba1=0x28f0c695^_0x28946d,_0x26e06a=window[_0x453acf([0x44,0x61,0x74,0x65])][_0x453acf([0x6e,0x6f,0x77])](),_0x59355d=_0xd08b9e[_0x453acf([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x26e9c6=new window[(_0x453acf([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x11cb8b=>{_0x59355d[_0x453acf([0x6f,0x6e,0x63,0x65])](_0x453acf([0x72,0x65,0x61,0x64,0x79]),_0x11cb8b);}),_0x5449cd={[_0x453acf([0x6b,0x74,0x79])]:_0x453acf([0x45,0x43]),[_0x453acf([0x75,0x73,0x65])]:_0x453acf([0x73,0x69,0x67]),[_0x453acf([0x63,0x72,0x76])]:_0x453acf([0x50,0x2d,0x32,0x35,0x36]),[_0x453acf([0x78])]:_0x453acf([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]),[_0x453acf([0x79])]:_0x453acf([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]),[_0x453acf([0x61,0x6c,0x67])]:_0x453acf([0x45,0x53,0x32,0x35,0x36])},_0x595e76=_0x59355d[_0x453acf([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x453acf([0x67,0x65,0x74])](_0x453acf([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x20a45f(){let _0xf6eb43,_0x157cf5=null,_0x397fde=null;try{if(_0x595e76==_0x453acf([0x47,0x50,0x4c]))return _0x453acf([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0xf6eb43=_0x14fec1(),!_0xf6eb43)return _0x453acf([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0xf6eb43[_0x453acf([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x397fde=_0x1192b5(_0xf6eb43[_0x453acf([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0xf6eb43[_0x453acf([0x6a,0x74,0x69])])),await _0x48de0f()?_0x17aa2d()?_0x55dd4a()?_0x453acf([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x1ce2d3()?(_0xf6eb43[_0x453acf([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x453acf([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x157cf5=_0x2dfd06(_0x453acf([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0xf6eb43[_0x453acf([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x453acf([0x74,0x72,0x69,0x61,0x6c])&&(_0x157cf5=_0x2dfd06(_0x453acf([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x34a48c()):_0x453acf([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x453acf([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x453acf([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x453acf([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x55dd4a(){const _0x874b99=[_0x453acf([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x453acf([0x74,0x72,0x69,0x61,0x6c])][_0x453acf([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xf6eb43[_0x453acf([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x26e06a/0x3e8:0xe10*_0x116ba1;return _0xf6eb43[_0x453acf([0x65,0x78,0x70])]<_0x874b99;}function _0x17aa2d(){const _0x2a386e=_0xf6eb43[_0x453acf([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x2a386e&&(!!_0x2a386e[_0x453acf([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x453acf([0x2a]))||!!_0x2a386e[_0x453acf([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x453acf([0x55,0x50,0x4c,0x43])));}function _0x1ce2d3(){const _0x538e27=_0xf6eb43[_0x453acf([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x538e27||0x0==_0x538e27[_0x453acf([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x2a8382}=new URL(window[_0x453acf([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x538e27[_0x453acf([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2a8382))return!0x0;const _0x7d312e=_0x2a8382[_0x453acf([0x73,0x70,0x6c,0x69,0x74])](_0x453acf([0x2e]));return _0x538e27[_0x453acf([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x51d649=>_0x51d649[_0x453acf([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x453acf([0x2a])))[_0x453acf([0x6d,0x61,0x70])](_0x62e773=>_0x62e773[_0x453acf([0x73,0x70,0x6c,0x69,0x74])](_0x453acf([0x2e])))[_0x453acf([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x17f497=>_0x17f497[_0x453acf([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x7d312e[_0x453acf([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x453acf([0x6d,0x61,0x70])](_0x5f37b7=>Array(_0x7d312e[_0x453acf([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x5f37b7[_0x453acf([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x453acf([0x66,0x69,0x6c,0x6c])](_0x5f37b7[0x0]===_0x453acf([0x2a])?_0x453acf([0x2a]):'')[_0x453acf([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x5f37b7))[_0x453acf([0x73,0x6f,0x6d,0x65])](_0x9c0fbd=>_0x7d312e[_0x453acf([0x65,0x76,0x65,0x72,0x79])]((_0xc4e49f,_0x261427)=>_0x9c0fbd[_0x261427]===_0xc4e49f||_0x9c0fbd[_0x261427]===_0x453acf([0x2a])));}function _0x34a48c(){return _0x157cf5&&_0x397fde?new window[(_0x453acf([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x146e4c,_0xdd7a94)=>{_0x157cf5[_0x453acf([0x74,0x68,0x65,0x6e])](_0x146e4c,_0xdd7a94),_0x397fde[_0x453acf([0x74,0x68,0x65,0x6e])](_0x613a5a=>{_0x613a5a!=_0x453acf([0x56,0x61,0x6c,0x69,0x64])&&_0x146e4c(_0x613a5a);},_0xdd7a94);}):_0x157cf5||_0x397fde||_0x453acf([0x56,0x61,0x6c,0x69,0x64]);}}function _0x1192b5(_0x40ebde,_0x3039a3){return new window[(_0x453acf([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5f93a5=>{if(_0x7fa82b())return _0x5f93a5(_0x453acf([0x56,0x61,0x6c,0x69,0x64]));_0x22bb68(),_0x59355d[_0x453acf([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x453acf([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0xa508bb=!0x1;const _0x519262=_0x33a573();function _0x2921b3(_0x3106da){return!!_0x3106da&&(typeof _0x3106da===_0x453acf([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x3106da===_0x453acf([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x3106da[_0x453acf([0x74,0x68,0x65,0x6e])]===_0x453acf([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x3106da[_0x453acf([0x63,0x61,0x74,0x63,0x68])]===_0x453acf([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x5d3ed5(_0x3bb244){_0x2ad5ec(_0x3bb244)[_0x453acf([0x74,0x68,0x65,0x6e])](_0x41b669=>{if(!_0x41b669||_0x41b669[_0x453acf([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x453acf([0x6f,0x6b]))return _0x453acf([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x170d7b(_0x1e5bfc(_0x519262+_0x3039a3))!=_0x41b669[_0x453acf([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x453acf([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x453acf([0x56,0x61,0x6c,0x69,0x64]);})[_0x453acf([0x74,0x68,0x65,0x6e])](_0x4c5da7=>(_0x31d2c2(),_0x4c5da7),()=>{const _0x1371b4=_0x11bfdb();return null==_0x1371b4?(_0x31d2c2(),_0x453acf([0x56,0x61,0x6c,0x69,0x64])):_0x453acf(_0x26e06a-_0x1371b4>(0xcfb282d^_0x28946d)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x453acf([0x74,0x68,0x65,0x6e])](_0x5f93a5)[_0x453acf([0x63,0x61,0x74,0x63,0x68])](()=>{_0x5f93a5(_0x453acf([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x53af37=0x28c142ad^_0x28946d;function _0x31d2c2(){const _0x3099ef=_0x453acf([0x6c,0x6c,0x63,0x74,0x2d])+_0x170d7b(_0x1e5bfc(_0x40ebde)),_0x333260=_0xf49210(_0x170d7b(window[_0x453acf([0x4d,0x61,0x74,0x68])][_0x453acf([0x63,0x65,0x69,0x6c])](_0x26e06a/_0x53af37)));window[_0x453acf([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x453acf([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3099ef,_0x333260);}function _0x11bfdb(){const _0x31c762=_0x453acf([0x6c,0x6c,0x63,0x74,0x2d])+_0x170d7b(_0x1e5bfc(_0x40ebde)),_0x428aa5=window[_0x453acf([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x453acf([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x31c762);return _0x428aa5?window[_0x453acf([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xf49210(_0x428aa5),0x10)*_0x53af37:null;}function _0x2ad5ec(_0x38400d){return new window[(_0x453acf([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x503844,_0x4fb883)=>{_0x38400d[_0x453acf([0x74,0x68,0x65,0x6e])](_0x503844,_0x4fb883),window[_0x453acf([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x4fb883,0x28f678ed^_0x28946d);});}}_0x59355d[_0x453acf([0x6f,0x6e])](_0x453acf([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x4bb6d9,_0x4654c9)=>{if(_0x4654c9[0x0]!=_0x40ebde)return _0x5f93a5(_0x453acf([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x4654c9[0x1]={..._0x4654c9[0x1],[_0x453acf([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x519262};},{[_0x453acf([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x453acf([0x68,0x69,0x67,0x68])}),_0x59355d[_0x453acf([0x6f,0x6e])](_0x453acf([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x3d8a99=>{_0x2921b3(_0x3d8a99[_0x453acf([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0xa508bb=!0x0,_0x5d3ed5(_0x3d8a99[_0x453acf([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x453acf([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x453acf([0x6c,0x6f,0x77])}),_0x26e9c6[_0x453acf([0x74,0x68,0x65,0x6e])](()=>{_0xa508bb||_0x5f93a5(_0x453acf([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x7fa82b(){return _0x59355d[_0x453acf([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x453acf([0x76,0x69,0x65,0x77])][_0x453acf([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x453acf([0x61,0x75,0x74,0x6f]);}function _0x22bb68(){_0x59355d[_0x453acf([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x453acf([0x76,0x69,0x65,0x77])][_0x453acf([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x453acf([0x61,0x75,0x74,0x6f]);}}function _0x2dfd06(_0x30789e){const _0x497b2a=[new window[(_0x453acf([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2432a8=>setTimeout(_0x2432a8,0x28fe92e1^_0x28946d)),_0x26e9c6[_0x453acf([0x74,0x68,0x65,0x6e])](()=>new window[(_0x453acf([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xa8ef77=>{let _0x308352=0x0;_0x59355d[_0x453acf([0x6d,0x6f,0x64,0x65,0x6c])][_0x453acf([0x6f,0x6e])](_0x453acf([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x6c836d,_0x1249a0)=>{_0x1249a0[0x0][_0x453acf([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x308352++,_0x308352==(0x28f7add5^_0x28946d)&&(_0xa8ef77(),_0x6c836d[_0x453acf([0x6f,0x66,0x66])]());});}))];return window[_0x453acf([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x453acf([0x72,0x61,0x63,0x65])](_0x497b2a)[_0x453acf([0x74,0x68,0x65,0x6e])](()=>_0x30789e);}async function _0x5284c8(){await _0x26e9c6,_0x59355d[_0x453acf([0x6d,0x6f,0x64,0x65,0x6c])][_0x453acf([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x2f2ada,_0x59355d[_0x453acf([0x6d,0x6f,0x64,0x65,0x6c])][_0x453acf([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x2f2ada,_0x59355d[_0x453acf([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x453acf([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x31257f(_0x1ca2c1){const _0x5a7d4c=_0x24fe0b();_0x59355d[_0x5a7d4c]=_0x453acf([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x1ca2c1,_0x1ca2c1!=_0x453acf([0x56,0x61,0x6c,0x69,0x64])&&_0x5284c8();}function _0x24fe0b(){const _0x4afa74=window[_0x453acf([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x453acf([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x453acf([0x6e,0x6f,0x77])]())[_0x453acf([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x453acf([0x2e]),'');let _0x16b14c=_0x453acf([0x42]);for(let _0x1aa70f=0x0;_0x1aa70f<_0x4afa74[_0x453acf([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1aa70f+=0x2){let _0x4e863=window[_0x453acf([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4afa74[_0x453acf([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x1aa70f,_0x1aa70f+0x2));_0x4e863>=_0x4ab03c[_0x453acf([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x4e863-=_0x4ab03c[_0x453acf([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x16b14c+=_0x4ab03c[_0x4e863];}return _0x16b14c;}function _0x14fec1(){const _0x5f19f4=_0x595e76[_0x453acf([0x73,0x70,0x6c,0x69,0x74])](_0x453acf([0x2e]));if(0x3!=_0x5f19f4[_0x453acf([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x5c040d(_0x5f19f4[0x1]);function _0x5c040d(_0x26d7b9){const _0x31ac53=_0x535228(_0x26d7b9);return _0x31ac53&&_0x12e72a()?_0x31ac53:null;function _0x12e72a(){const _0x241c6b=_0x31ac53[_0x453acf([0x6a,0x74,0x69])],_0x353b1f=window[_0x453acf([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x241c6b[_0x453acf([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x241c6b[_0x453acf([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x31b436={..._0x31ac53,[_0x453acf([0x6a,0x74,0x69])]:_0x241c6b[_0x453acf([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x241c6b[_0x453acf([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x31b436[_0x453acf([0x76,0x63])],_0x1e5bfc(_0x31b436)==_0x353b1f;}}}async function _0x48de0f(){let _0x2c03ee=!0x0;try{const _0x7e8a81=_0x595e76[_0x453acf([0x73,0x70,0x6c,0x69,0x74])](_0x453acf([0x2e])),[_0x1ab2dc,_0x595bd6,_0x1dd64d]=_0x7e8a81;return _0x5b33eb(_0x1ab2dc),await _0x2efadd(_0x1ab2dc,_0x595bd6,_0x1dd64d),_0x2c03ee;}catch{return!0x1;}function _0x5b33eb(_0xc34d34){const _0x10bcc0=_0x535228(_0xc34d34);_0x10bcc0&&_0x10bcc0[_0x453acf([0x61,0x6c,0x67])]==_0x453acf([0x45,0x53,0x32,0x35,0x36])||(_0x2c03ee=!0x1);}async function _0x2efadd(_0x144066,_0x35762f,_0x1c46db){const _0x4b18f7=window[_0x453acf([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x453acf([0x66,0x72,0x6f,0x6d])](_0x524f0b(_0x1c46db),_0x14b873=>_0x14b873[_0x453acf([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x30aa48=new window[(_0x453acf([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x453acf([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x144066+_0x453acf([0x2e])+_0x35762f),_0x504b90=window[_0x453acf([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x453acf([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x504b90)return;const _0x461727=await _0x504b90[_0x453acf([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x453acf([0x6a,0x77,0x6b]),_0x5449cd,{[_0x453acf([0x6e,0x61,0x6d,0x65])]:_0x453acf([0x45,0x43,0x44,0x53,0x41]),[_0x453acf([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x453acf([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x453acf([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x504b90[_0x453acf([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x453acf([0x6e,0x61,0x6d,0x65])]:_0x453acf([0x45,0x43,0x44,0x53,0x41]),[_0x453acf([0x68,0x61,0x73,0x68])]:{[_0x453acf([0x6e,0x61,0x6d,0x65])]:_0x453acf([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x461727,_0x4b18f7,_0x30aa48)||(_0x2c03ee=!0x1);}}function _0x535228(_0x1f9875){return _0x1f9875[_0x453acf([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x453acf([0x65,0x79]))?JSON[_0x453acf([0x70,0x61,0x72,0x73,0x65])](_0x524f0b(_0x1f9875)):null;}function _0x524f0b(_0x8b0b1a){return window[_0x453acf([0x61,0x74,0x6f,0x62])](_0x8b0b1a[_0x453acf([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x453acf([0x2b]))[_0x453acf([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x453acf([0x2f])));}function _0x1e5bfc(_0x12499d){let _0x483c53=0x1505;function _0xc03204(_0x39a87b){for(let _0xf324e4=0x0;_0xf324e4<_0x39a87b[_0x453acf([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0xf324e4++){const _0x510709=_0x39a87b[_0x453acf([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0xf324e4);_0x483c53=(_0x483c53<<0x5)+_0x483c53+_0x510709,_0x483c53&=_0x483c53;}}function _0x160e5f(_0x269d12){Array[_0x453acf([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x269d12)?_0x269d12[_0x453acf([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x160e5f):_0x269d12&&typeof _0x269d12==_0x453acf([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x453acf([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x269d12)[_0x453acf([0x73,0x6f,0x72,0x74])]()[_0x453acf([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x4c3e85,_0x430e62])=>{_0xc03204(_0x4c3e85),_0x160e5f(_0x430e62);}):_0xc03204(window[_0x453acf([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x269d12));}return _0x160e5f(_0x12499d),_0x483c53>>>0x0;}function _0x170d7b(_0xb404c2){return _0xb404c2[_0x453acf([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x453acf([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x453acf([0x30]));}function _0xf49210(_0x1ddfbd){return _0x1ddfbd[_0x453acf([0x73,0x70,0x6c,0x69,0x74])]('')[_0x453acf([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x453acf([0x6a,0x6f,0x69,0x6e])]('');}function _0x2f2ada(){}function _0x453acf(_0x217276){return _0x217276['map'](_0xa03830=>String['fromCharCode'](_0xa03830))['join']('');}_0x31257f(await _0x20a45f());}(this);}['_initSchema'](){const _0x47bc76=this['editor']['model']['schema'];_0x47bc76['isRegistered']('imageBlock')&&_0x47bc76['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x47bc76['isRegistered']('imageInline')&&_0x47bc76['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x3c694f=this['editor'];_0x3c694f['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x3c694f['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x56da81=>_0x56da81['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x2f4913=_0x3c694f['commands']['get']('replaceImageSource');_0x2f4913&&this['listenTo'](_0x2f4913,'cleanupImage',(_0x5594a5,[_0x543203,_0x8c8031])=>{_0x543203['removeAttribute']('uploadcareImageId',_0x8c8031);});}['_initConfig'](){const _0x14f5ac=this['editor']['config']['get']('uploadcare.uploader')||{},_0x4e9936=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x590871(_0xdb3be7['document'],'uc-config',{..._0x14f5ac,'pubkey':_0x4e9936,'ctx-name':'uploader','sourceList':'','imgOnly':'true','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage'],'externalSourcesEmbedCss':'\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup\x20{\x20padding:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-menu\x20{\x20gap:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-footer\x20{\x20padding-top:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__separator\x20{\x20margin:\x200;\x20}\x0a\x09\x09\x09'}),this['_configElement']['iconHrefResolver']=_0x11f428=>{if('closeMax'==_0x11f428)return'#uc-icon-arrow-down';},_0xdb3be7['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x590871(_0xdb3be7['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader'}),_0xdb3be7['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x52435a=this['editor']['commands']['get']('insertImage');_0x52435a&&this['listenTo'](_0x52435a,'execute',()=>{const _0x45d45d=this['editor']['model']['document']['selection']['getSelectedElement']();_0x45d45d&&_0x45d45d['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x45d45d);});});const _0xc1025=this['editor']['commands']['get']('uploadcareImageReplace');_0xc1025&&this['listenTo'](_0xc1025,'execute',()=>{const _0x6bcf59=this['editor']['model']['document']['selection']['getSelectedElement']();_0x6bcf59&&_0x6bcf59['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x6bcf59);});});}}class tt extends _0x14262d{static get['requires'](){return[o,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x35ed16){super(_0x35ed16),_0x35ed16['config']['define']('uploadcare.uploader.sourceList',[i['Local'],i['URL']]),_0x480d41['defineComponents'](_0x480d41);}}class ii extends _0x1ac964{constructor(_0x4392c9){super(_0x4392c9);const t=_0x4392c9['t'],_0x4a8685=this['bindTemplate'],_0xd6952e=new _0x3810ef();_0xd6952e['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':[_0xd6952e,{'text':_0x4a8685['to']('imageUploadProgress',_0x53c2e1=>t('Loading\x20image...')+'\x20('+(_0x53c2e1||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 _0x1ac964{constructor(_0x5050b8){super(_0x5050b8);const t=_0x5050b8['t'];this['set']('errorType',null);const _0x394279=new _0x234afe(_0x5050b8);_0x394279['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x394279['withText']=!0x0,_0x394279['class']='ck-button-action',_0x394279['on']('execute',()=>{this['fire']('retry');}),_0x394279['bind']('isVisible')['to'](this,'errorType',_0x23a5e8=>'NotFound'!==_0x23a5e8);const _0xe71f3d=new _0x3103a8();_0xe71f3d['content']=_0x5731a5,_0xe71f3d['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x589f41=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':[_0xe71f3d,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x589f41['to']('errorType',_0x1e455f=>t('NotFound'!==_0x1e455f?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x394279]},{'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 _0x1ac964{constructor(_0xa9ef2e,_0xe3da2){super(_0xa9ef2e);const _0x524c84=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0xe3da2,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x524c84['to']('imageSrc')}});}}class X extends F{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x6b51fa,_0x2a7979,_0x56e4b5){super(_0x6b51fa),this['_items']=this['createCollection'](),this['_loadingView']=new ii(_0x6b51fa),this['_errorView']=new ti(_0x6b51fa),this['_editingView']=new ei(_0x6b51fa,_0x56e4b5),this['_focusableView']=new _0x1ac964(_0x6b51fa),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x2a7979),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'],_0xcc7a6f=>{this['_addUploadcareImageEditorListeners'](_0xcc7a6f);});}),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'](_0x434024,_0xba389d){const _0x584f5a='uc-cloud-image-editor',_0x205c74=_0x434024['querySelector'](_0x584f5a);if(_0x205c74)return _0xba389d(_0x205c74);const _0x2382d4=new MutationObserver(_0x49acb8=>{const _0x2deb23=_0x49acb8['filter'](_0x15ced2=>_0x15ced2['target']===_0x434024&&_0x15ced2['addedNodes']['length']>0x0&&_0x15ced2['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x584f5a);_0x2deb23['length']&&(_0x2382d4['disconnect'](),_0xba389d(_0x2deb23[0x0]['addedNodes'][0x0]));});_0x2382d4['observe'](_0x434024,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x3c4041){_0x3c4041['addEventListener']('apply',_0x4e42a5=>{this['fire']('apply',{'imageSrc':_0x4e42a5['detail']['cdnUrl']});}),_0x3c4041['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class E extends/* #__PURE__ -- @preserve */
|
|
25
|
-
_0x25238a(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x347f16,_0x3755ff,_0x916c15){super(),this['_editor']=_0x347f16,this['_dialog']=_0x3755ff,this['_imageElement']=_0x916c15,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 _0x5623e2=this['_imageElement'],_0x30f668=_0x5623e2['getAttribute']('uploadcareImageId'),_0x308b57=_0x5623e2['getAttribute']('src');if(_0x30f668)await this['_loadImageInfo'](_0x30f668,_0x308b57);else{if(this['_imageCache']['has'](_0x308b57)){const _0x66d99c=this['_imageCache']['get'](_0x308b57);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x66d99c['url'],this['imageDimension']=_0x66d99c['dimension'],this['imageId']=_0x66d99c['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x42516a}=this['_editor'],t=_0x42516a['t'],_0x4f90c8=new X(_0x42516a,this['imageStatus'],this['_attributes']);_0x4f90c8['bind']('status')['to'](this,'imageStatus'),_0x4f90c8['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x4f90c8['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x4f90c8['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x4f90c8,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0xbc5585,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x4f90c8,'position':_0x3cc85e['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x4f90c8['focus']();},'onHide':()=>{_0x4f90c8['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x992987=>!S(_0x992987,_0x4f90c8['element'])}});}['_loadImageInfo'](_0x2cb354,_0x588903){return j['getInfo'](_0x2cb354,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey')})['then'](_0x20c23a=>{const {width:_0x5008b8,height:_0x217c3a}=_0x20c23a['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x588903,this['imageDimension']={'width':_0x5008b8,'height':_0x217c3a},this['imageId']=_0x2cb354;})['catch'](_0x2bcb9b=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x2bcb9b['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x1d8268,_0x321ec2){return this['_getImageAsFile'](_0x1d8268)['then'](_0xce3c45=>j['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'signal':_0x321ec2['signal'],'file':_0xce3c45,'onProgress':_0x29b477=>{_0x29b477&&_0x29b477['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x29b477['value']));}}))['then'](_0x9b24fe=>{const {width:_0x150aaf,height:_0x8ac599}=_0x9b24fe['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x9b24fe['cdnUrl'],this['imageDimension']={'width':_0x150aaf,'height':_0x8ac599},this['imageId']=_0x9b24fe['uuid'],this['imageUploadProgress']=null;const _0x229245=_0x1d8268['getAttribute']('src');this['_imageCache']['set'](_0x229245,{'id':_0x9b24fe['uuid'],'url':_0x9b24fe['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x2a2bea=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x2a2bea['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x441586,_0x4eda60){_0x441586['on']('apply',(_0x503264,_0x3a9d37)=>{this['_replaceImage'](_0x4eda60,_0x3a9d37['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x441586['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x441586['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x549dcd,_0xc69513,_0x4329bf){const _0x4790cb=this['_editor'],{width:_0x1d478b,height:_0x3e8e8e}=C(_0xc69513,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x1ee8c9,imageSources:_0x14cdf0}=k(_0xc69513,_0x1d478b);_0x4790cb['model']['change'](_0x4d6ead=>{if('$graveyard'===_0x549dcd['root']['rootName']){_0x4790cb['execute']('insertImage',{'imageType':_0x549dcd['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x549dcd['getAttributes']()),'uploadcareImageId':_0x4329bf,'src':_0x1ee8c9,'sources':_0x14cdf0,'width':_0x1d478b,'height':_0x3e8e8e}});const _0x28b2d5=_0x549dcd['getChildren']();_0x549dcd=_0x4790cb['model']['document']['selection']['getSelectedElement']();for(const _0x4871d0 of _0x28b2d5)_0x4d6ead['append'](_0x4d6ead['cloneElement'](_0x4871d0),_0x549dcd);}else _0x4d6ead['setSelection'](_0x549dcd,'on'),_0x4790cb['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x549dcd['getAttributes']()),'uploadcareImageId':_0x4329bf,'src':_0x1ee8c9,'sources':_0x14cdf0,'width':_0x1d478b,'height':_0x3e8e8e},_0x549dcd);_0x4d6ead['setSelection'](_0x549dcd,'on');});}async['_getImageAsFile'](_0x4d42a8){const _0x5862dc=_0xdb3be7['window'],_0xd598f4=_0xdb3be7['document']['location']['href'],_0x484ef9=new _0x5862dc['URL'](_0x4d42a8['getAttribute']('src'),_0xd598f4);if('data:'===_0x484ef9['protocol']){const _0x41fb2c=_0x484ef9['href']['split'](','),_0x236106=_0x41fb2c[0x0]['match'](/:(.*?);/)[0x1],_0x4174e7=_0x236106['split']('/')[0x1],_0x4c0b1a=_0x5862dc['atob'](_0x41fb2c[_0x41fb2c['length']-0x1]);let _0x3f53ef=_0x4c0b1a['length'];const _0x3025a0=new _0x5862dc['Uint8Array'](_0x3f53ef);for(;_0x3f53ef--;)_0x3025a0[_0x3f53ef]=_0x4c0b1a['charCodeAt'](_0x3f53ef);return new _0x5862dc['File']([_0x3025a0],'image.'+_0x4174e7,{'type':_0x236106});}const _0x4aed25=_0x484ef9['href']['split']('/'),_0x23c260=_0x4aed25[_0x4aed25['length']-0x1],_0x20bd99=_0x23c260['split']('.')[0x1];return _0x5862dc['fetch'](_0x484ef9['href'])['then'](_0x4efd65=>_0x4efd65['clone']()['blob']())['then'](_0xf92cd2=>new _0x5862dc['File']([_0xf92cd2],_0x23c260,{'type':'image/'+_0x20bd99}));}}class O extends _0x364f88{['imageEditController'];static get['requires'](){return[_0x5a9e69];}['_isEditable'];constructor(_0x20a236){super(_0x20a236),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x33f002){const _0x572012=G(_0x33f002);return _0x240320=>!(!_0x240320||!_0x240320['is']('element','imageBlock')&&!_0x240320['is']('element','imageInline'))&&(!!_0x240320['hasAttribute']('uploadcareImageId')||!!_0x240320['hasAttribute']('src')&&_0x572012(_0x240320['getAttribute']('src')));}(_0x20a236['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x4e4a1e=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x4e4a1e);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x419448=this['editor']['model']['document']['selection']['getSelectedElement']();_0x419448&&(_0x419448['is']('element','imageBlock')||_0x419448['is']('element','imageInline'))&&(this['imageEditController']=new E(this['editor'],this['editor']['plugins']['get'](_0x5a9e69),_0x419448),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class R extends _0x364f88{['refresh'](){const _0x53f534=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x53f534&&(_0x53f534['is']('element','imageBlock')||_0x53f534['is']('element','imageInline')));}['execute'](_0x183a87){const _0x3f9c5e=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0xdb16f9=>{_0xdb16f9['setAttributes'](_0x183a87,_0x3f9c5e),_0xdb16f9['removeAttribute']('srcset',_0x3f9c5e),_0xdb16f9['removeAttribute']('sizes',_0x3f9c5e);});}}class m extends _0x14262d{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[o,_0x549b5e,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x32f119}=this;_0x32f119['commands']['add']('uploadcareImageEdit',new O(_0x32f119)),_0x32f119['commands']['add']('uploadcareImageReplace',new R(_0x32f119));}}class g extends _0x14262d{['_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 _0x25850f=this['editor'];_0x25850f['ui']['componentFactory']['add']('uploadcareImageEdit',_0xe0421=>{const _0xec408d=_0x25850f['commands']['get']('uploadcareImageEdit'),_0x5f5b4b=new _0x234afe(_0xe0421),t=_0xe0421['t'];return _0x5f5b4b['set']({'icon':_0xbc5585,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x5f5b4b['bind']('isEnabled')['to'](_0xec408d),_0x5f5b4b['bind']('isOn')['to'](_0xec408d,'isActive'),this['listenTo'](_0x5f5b4b,'execute',()=>{_0x25850f['execute']('uploadcareImageEdit'),_0x25850f['editing']['view']['focus']();}),_0x5f5b4b;}),this['_initConfig']();}['_initConfig'](){const _0x1d6a87=_0x590871(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x1d6a87),this['listenTo'](this['editor'],'destroy',()=>{_0x1d6a87['remove']();});}}class et extends _0x14262d{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 _0x4a984b,Command as _0x36d961}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x7caaf5,IconGooglePhotos as _0x38e42,IconGoogleDrive as _0x60fcbd,IconFacebook as _0x14bef6,IconDropbox as _0x4e41bb,IconUploadcareLink as _0x483d77,IconUploadcareImageUpload as _0xf280e8,IconError as _0x4cfd49,IconUploadcareImageEdit as _0xcc08}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x4a1729,MenuBarMenuListItemButtonView as _0x3bcc21,View as _0x429902,FocusCycler as _0x73b108,Dialog as _0x2269f1,DialogViewPosition as _0x466743,SpinnerView as _0x2d73c2,IconView as _0x115457,Notification as _0x50d031}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x419141,DomEmitterMixin as _0x1ad474,global as _0x1769cf,getAncestors as _0x48bda9,ObservableMixin as _0xe99d8f,createElement as _0x949c90,uid as _0x4b6330}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x44bcdd}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0xc2d213,info as _0x100881}from'@uploadcare/upload-client';import*as _0x3e6419 from'@uploadcare/file-uploader';var i=function(_0x24b105){return _0x24b105['Local']='local',_0x24b105['URL']='url',_0x24b105['Dropbox']='dropbox',_0x24b105['GDrive']='gdrive',_0x24b105['Facebook']='facebook',_0x24b105['GPhotos']='gphotos',_0x24b105['OneDrive']='onedrive',_0x24b105;}({});function _(_0x53ec2e,_0x4153b1,_0x46158b){const t=_0x53ec2e['t'],_0x1dfe7e=_0x53ec2e['t'];switch(_0x4153b1){case i['Local']:return{'text':_0x1dfe7e('Insert'===_0x46158b?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x1dfe7e('From\x20computer')};case i['URL']:return{'text':'Insert'===_0x46158b?_0x1dfe7e('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x1dfe7e('Via\x20URL')};case i['Dropbox']:return{'text':t('Insert'===_0x46158b?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case i['Facebook']:return{'text':t('Insert'===_0x46158b?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case i['GDrive']:return{'text':t('Insert'===_0x46158b?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case i['GPhotos']:return{'text':t('Insert'===_0x46158b?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case i['OneDrive']:return{'text':t('Insert'===_0x46158b?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x4153b1;}}class e extends _0x4a984b{['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 _0x1ac49b=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x5d325e;for(const _0x2e595e in _0x1ac49b){const _0x97bfdf=_0x2e595e,_0x259e53=_0x1ac49b[_0x97bfdf];if('uploadcareLicenseKeyValid'==_0x259e53||'uploadcareLicenseKeyInvalid'==_0x259e53||'uploadcareLicenseKeyExpired'==_0x259e53||'uploadcareLicenseKeyDomainLimit'==_0x259e53||'uploadcareLicenseKeyNotAllowed'==_0x259e53||'uploadcareLicenseKeyEvaluationLimit'==_0x259e53||'uploadcareLicenseKeyTrialLimit'==_0x259e53||'uploadcareLicenseKeyUsageLimit'==_0x259e53){delete _0x1ac49b[_0x97bfdf],_0x5d325e=_0x259e53,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x5d325e&&_0x1ac49b['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x5d325e&&_0x1ac49b['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x5d325e&&_0x1ac49b['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x5d325e&&_0x1ac49b['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x5d325e&&_0x1ac49b['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyTrialLimit'==_0x5d325e&&_0x1ac49b['_showLicenseError']('trialLimit'),'uploadcareLicenseKeyUsageLimit'==_0x5d325e&&_0x1ac49b['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x3511d7}=this,_0x24246d=_0x3511d7['commands']['get']('uploadcare');if(!_0x24246d)return;const _0x1cabf8=this['_normalizeConfigSourceList'](_0x3511d7['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x194f30,_0x38f6f3)=>{const _0x24c8eb=this['_getIntegrationKey'](_0x38f6f3['type']);return _0x194f30[_0x24c8eb]||(_0x194f30[_0x24c8eb]=[]),_0x194f30[_0x24c8eb]['push'](_0x38f6f3),_0x194f30;},{});_0x3511d7['plugins']['has']('ImageInsertUI')&&_0x3511d7['commands']['get']('uploadcare')&&Object['entries'](_0x1cabf8)['forEach'](([_0x2ca9ce,_0x2e3134])=>{_0x3511d7['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x2ca9ce,'observable':()=>_0x24246d,'buttonViewCreator':()=>this['_createToolbarButton'](_0x2e3134),'formViewCreator':()=>this['_createDropdownButtons'](_0x2e3134),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x2e3134),'override':'assetManager'!==_0x2ca9ce});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x138646){const {locale:_0x5ded1f}=this['editor'];return _0x138646['map'](_0x2368e3=>{const _0x527c42=_(_0x5ded1f,_0x2368e3,'Insert');switch(_0x2368e3){case i['Local']:return{'icon':_0xf280e8,'type':i['Local'],..._0x527c42};case i['URL']:return{'icon':_0x483d77,'type':i['URL'],..._0x527c42};case i['Dropbox']:return{'icon':_0x4e41bb,'type':i['Dropbox'],..._0x527c42};case i['Facebook']:return{'icon':_0x14bef6,'type':i['Facebook'],..._0x527c42};case i['GDrive']:return{'icon':_0x60fcbd,'type':i['GDrive'],..._0x527c42};case i['GPhotos']:return{'icon':_0x38e42,'type':i['GPhotos'],..._0x527c42};case i['OneDrive']:return{'icon':_0x7caaf5,'type':i['OneDrive'],..._0x527c42};}});}['_getIntegrationKey'](_0x59a8ac){switch(_0x59a8ac){case i['Local']:return'upload';case i['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x2dcf7e,_0x128965){const _0x1bfbc4=this['editor'],_0x2de8b7=new _0x2dcf7e(_0x1bfbc4['locale']),_0xbef31c=_0x1bfbc4['commands']['get']('uploadcare');return _0x2de8b7['bind']('isEnabled')['to'](_0xbef31c),_0x2de8b7['on']('execute',()=>{_0xbef31c['execute'](_0x128965);}),_0x2de8b7;}['_createToolbarButton'](_0x3e75d5){const {locale:_0x3fbf56}=this['editor'],_0x138e3d=this['editor']['plugins']['get']('ImageInsertUI'),_0x4f58ff=_0x3e75d5[0x0],_0x43aeb8=this['_createButton'](_0x4a1729,_0x4f58ff['type']);return _0x43aeb8['icon']=_0x4f58ff['icon'],_0x43aeb8['bind']('label')['to'](_0x138e3d,'isImageSelected',_0x3a5406=>_(_0x3fbf56,_0x4f58ff['type'],_0x3a5406?'Replace':'Insert')['text']),_0x43aeb8['tooltip']=!0x0,_0x43aeb8;}['_createDropdownButtons'](_0xeec8db){const {locale:_0x4ce5b9}=this['editor'],_0x39d191=this['editor']['plugins']['get']('ImageInsertUI');return _0xeec8db['map'](_0x51b328=>{const _0x3286b7=this['_createButton'](_0x4a1729,_0x51b328['type']);return _0x3286b7['withText']=!0x0,_0x3286b7['icon']=_0x51b328['icon'],_0x3286b7['bind']('label')['to'](_0x39d191,'isImageSelected',_0x42a3b0=>_(_0x4ce5b9,_0x51b328['type'],_0x42a3b0?'Replace':'Insert')['text']),_0x3286b7;});}['_createMenuBarButtons'](_0x36359e){return _0x36359e['map'](_0x18eb48=>{const _0x16ba1a=this['_createButton'](_0x3bcc21,_0x18eb48['type']);return _0x16ba1a['icon']=_0x18eb48['icon'],_0x16ba1a['label']=_0x18eb48['shortText'],_0x16ba1a;});}}class F extends _0x429902{['focusTracker'];['focusCycler'];constructor(_0x319348){super(_0x319348),this['focusTracker']=new _0x419141(),this['focusCycler']=new _0x73b108({'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(_0x269a74){super(_0x269a74),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all-excluded','ck-uploadcare-form'],'tabindex':'-1'},'children':[{'tag':'uc-file-uploader-inline','attributes':{'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'uploader'}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}}function k(_0x1fef8a,_0x32eb50){const _0x66e704=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x4a1fda=>_0x4a1fda<=_0x32eb50)['map'](_0x1ba4fc=>_0x1fef8a['replace'](/\/$/,'')+'/-/resize/'+_0x1ba4fc+'x/\x20'+_0x1ba4fc+'w');return{'imageFallbackUrl':_0x1fef8a,'imageSources':[{'srcset':_0x66e704['join'](',\x20'),'sizes':'(max-width:\x20'+_0x32eb50+'px)\x20100vw,\x20'+_0x32eb50+'px','type':'image/webp'}]};}function C(_0x56c1cd,_0xce087d,_0x749148){const _0x585386=_0x56c1cd['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x585386?parseInt(_0x585386[0x1],0xa):_0xce087d,'height':_0x585386?parseInt(_0x585386[0x2],0xa):_0x749148};}function p(_0x590410,_0x160a92){const _0x51b88b=new(_0x1ad474())(),_0x213b39=_0x590410['plugins']['get']('ImageUtils'),_0x574884=_0x590410['editing']['mapper']['toViewElement'](_0x160a92),_0x176a9c=_0x213b39['findViewImgElement'](_0x574884),_0xf0ae58=_0x590410['editing']['view']['domConverter']['viewToDom'](_0x176a9c),_0x5ef1cd=_0x160a92['getAttribute']('width'),_0x74fd2f=_0x160a92['getAttribute']('height'),_0x4dbd83='image-processing';_0x590410['editing']['view']['change'](_0x1df317=>{_0x1df317['addClass'](_0x4dbd83,_0x574884),_0x1df317['setStyle']('aspect-ratio',_0x5ef1cd+'/'+_0x74fd2f,_0x176a9c);}),_0x51b88b['listenTo'](_0xf0ae58,'load',()=>{_0x51b88b['stopListening'](_0xf0ae58,'load'),_0x590410['editing']['view']['change'](_0x5cd850=>{_0x5cd850['removeClass'](_0x4dbd83,_0x574884),_0x5cd850['removeStyle']('aspect-ratio',_0x176a9c);});});}function G(_0x32164b){if(Array['isArray'](_0x32164b)){const _0x50adac=_0x32164b['map'](G);return _0x59688d=>_0x50adac['some'](_0x459d87=>_0x459d87(_0x59688d));}if('origin'==_0x32164b){const _0x15aaef=_0x1769cf['window']['location']['origin'];return _0x2d19d0=>new URL(_0x2d19d0,_0x1769cf['document']['baseURI'])['origin']==_0x15aaef;}return'function'==typeof _0x32164b?_0x32164b:_0x32164b instanceof RegExp?_0x43c60e=>!(!_0x43c60e['match'](_0x32164b)&&!_0x43c60e['replace'](/^https?:\/\//,'')['match'](_0x32164b)):()=>!0x1;}function S(_0x565f2b,_0xbd679){return _0x48bda9(_0x565f2b['target'])['includes'](_0xbd679);}class n extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0xe99d8f(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x1ffee9,_0x27517a,_0x368fc8){super(),this['_editor']=_0x1ffee9,this['_editing']=_0x27517a,this['_dialog']=_0x1ffee9['plugins']['get'](_0x2269f1),this['_api']=_0x27517a['ctxElement']['getAPI'](),this['_type']=_0x368fc8,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:_0x16cb8c,model:_0x3bfedb}=this['_editor'],_0x186ec4=_0x3bfedb['document']['selection']['getSelectedElement'](),_0x1ee5c5=_0x186ec4&&(_0x186ec4['is']('element','imageBlock')||_0x186ec4['is']('element','imageInline'));this['_formView']=new x(_0x16cb8c),this['_dialog']['show']({'id':'uploadCare','icon':_0xf280e8,'title':_(_0x16cb8c,this['_type'],_0x1ee5c5?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x466743['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x34a65e=>!S(_0x34a65e,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x296fb0}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x1d4c8e=>{const _0x540bbd=_0x296fb0['length'];for(const _0x3e29fd of _0x296fb0){const _0x36300b=_0x3e29fd===_0x296fb0[_0x540bbd-0x1],{cdnUrl:_0x18da78,fileInfo:_0x32385d}=_0x3e29fd;if(!_0x18da78||!_0x32385d)continue;const {width:_0xa89ce5,height:_0x535937}=_0x32385d['imageInfo'],_0x3c13d7=C(_0x18da78,_0xa89ce5,_0x535937),_0xc4f39c=k(_0x18da78,_0x3c13d7['width']),_0x39c421={'id':_0x32385d['uuid'],'type':'image','attributes':{'imageDimension':_0x3c13d7,..._0xc4f39c}};this['_insertAsset'](_0x39c421,_0x36300b,_0x1d4c8e);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x2a1a7f=>{'idle'===_0x2a1a7f['detail']['status']&&!_0x2a1a7f['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===i['Local']?this['_api']['setCurrentActivity'](i['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x229e66,_0x1fd604,_0x4ad25f){const _0x2c8b08=this['_editor']['model']['document']['selection'],_0x1dd3a7=_0x2c8b08['getSelectedElement'](),_0x168345=!(!_0x1dd3a7||!_0x1dd3a7['is']('element','imageInline'));_0x4ad25f['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x229e66,_0x168345),_0x1fd604||_0x4ad25f['setSelection'](_0x2c8b08['getLastPosition']());}['_insertImage'](_0x2d8180,_0x4bec63){const _0x4f73c2=this['_editor'],{imageDimension:_0x2d3189,imageFallbackUrl:_0x14f11a,imageSources:_0x2207fd}=_0x2d8180['attributes'];_0x4f73c2['execute']('insertImage',{'imageType':_0x4bec63?'imageInline':null,'source':{'uploadcareImageId':_0x2d8180['id'],'src':_0x14f11a,'sources':_0x2207fd,..._0x2d3189}});}}class w extends _0x36d961{['_editing'];['_controller']=null;static get['requires'](){return[_0x2269f1,o];}constructor(_0x5a7e2b){super(_0x5a7e2b),this['_editing']=_0x5a7e2b['plugins']['get'](o);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x330202){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new n(this['editor'],this['_editing'],_0x330202);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class j{static['upload']({file:_0x38a6c5,publicKey:_0x16fa82,signal:_0x81a1aa,onProgress:_0x725cda}){return _0xc2d213(_0x38a6c5,{'publicKey':_0x16fa82,'store':'auto','signal':_0x81a1aa,'onProgress':_0x725cda});}static['getInfo'](_0x4372d8,_0x458456){return _0x100881(_0x4372d8,_0x458456);}}class f extends _0x4a984b{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x44bcdd,o];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x413ceb=this['editor'];if(!!!_0x413ceb['config']['get']('uploadcare'))return;_0x413ceb['plugins']['get'](_0x44bcdd)['createUploadAdapter']=_0x267bcf=>new A(_0x267bcf,_0x413ceb),_0x413ceb['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x2dd49b,{imageElement:_0x2b3cb1,data:_0x1e12fd})=>{_0x413ceb['model']['change'](_0x2f8edf=>{_0x2f8edf['setAttribute']('uploadcareImageId',_0x1e12fd['uploadcareImageId'],_0x2b3cb1);});});}}class A{['loader'];['editor'];['controller'];constructor(_0x1eee3f,_0xf19ab7){this['loader']=_0x1eee3f,this['editor']=_0xf19ab7,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x121f77=this['editor']['config']['get']('uploadcare.pubkey'),_0x5004ef=await this['loader']['file'];return j['upload']({'file':_0x5004ef,'publicKey':_0x121f77,'signal':this['controller']['signal'],'onProgress':_0x13d4b7=>{_0x13d4b7&&_0x13d4b7['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x13d4b7['value']);}})['then'](async _0x501a9c=>{const {imageFallbackUrl:_0x3e8872,imageSources:_0x4f8471}=k(_0x501a9c['cdnUrl'],_0x501a9c['imageInfo']['width']);return{'uploadcareImageId':_0x501a9c['uuid'],'default':_0x3e8872,'sources':_0x4f8471};})['catch'](()=>{const _0x1a97e4=t('Cannot\x20upload\x20file:')+('\x20'+_0x5004ef['name']+'.');return Promise['reject'](_0x1a97e4);});}['abort'](){this['controller']['abort']();}}class o extends _0x4a984b{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',f,_0x2269f1];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}['init'](){const _0x59ab7e=this['editor'];_0x59ab7e['commands']['add']('uploadcare',new w(_0x59ab7e));}['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 _0x3c4870=_0x1769cf['document']['querySelector']('input[uploadcare-file-input]');_0x3c4870&&_0x3c4870['remove']();}),async function(_0x179310){const _0x1897f9=_0x3b8aff([0x46,0x64,0x61,0x72,0x57,0x53,0x66,0x6a,0x31,0x78,0x4e,0x62,0x4f,0x74,0x45,0x77,0x48,0x4d,0x39,0x6e,0x7a,0x32,0x35,0x73,0x51,0x75,0x76,0x42,0x4c,0x50,0x44,0x58,0x41,0x30,0x47,0x4a,0x49,0x63,0x59,0x6c,0x79,0x43,0x55,0x4b,0x5a,0x36,0x69,0x52,0x56,0x71,0x6d,0x6f,0x34,0x54,0x68,0x38,0x6b,0x67,0x70,0x37,0x65,0x33]),_0x50b599=0x7b37c444,_0x1a6e01=0x7b30aeac^_0x50b599,_0x5602b1=window[_0x3b8aff([0x44,0x61,0x74,0x65])][_0x3b8aff([0x6e,0x6f,0x77])](),_0x87ca50=_0x179310[_0x3b8aff([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x59293f=new window[(_0x3b8aff([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5e39d0=>{_0x87ca50[_0x3b8aff([0x6f,0x6e,0x63,0x65])](_0x3b8aff([0x72,0x65,0x61,0x64,0x79]),_0x5e39d0);}),_0x4a1f2e={[_0x3b8aff([0x6b,0x74,0x79])]:_0x3b8aff([0x45,0x43]),[_0x3b8aff([0x75,0x73,0x65])]:_0x3b8aff([0x73,0x69,0x67]),[_0x3b8aff([0x63,0x72,0x76])]:_0x3b8aff([0x50,0x2d,0x32,0x35,0x36]),[_0x3b8aff([0x78])]:_0x3b8aff([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]),[_0x3b8aff([0x79])]:_0x3b8aff([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]),[_0x3b8aff([0x61,0x6c,0x67])]:_0x3b8aff([0x45,0x53,0x32,0x35,0x36])},_0x3197bf=_0x87ca50[_0x3b8aff([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x3b8aff([0x67,0x65,0x74])](_0x3b8aff([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x350ae0(){let _0x89dc09,_0x18a097=null,_0x62e2f0=null;try{if(_0x3197bf==_0x3b8aff([0x47,0x50,0x4c]))return _0x3b8aff([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x89dc09=_0x1b566f(),!_0x89dc09)return _0x3b8aff([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x89dc09[_0x3b8aff([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x62e2f0=_0x2f65e0(_0x89dc09[_0x3b8aff([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x89dc09[_0x3b8aff([0x6a,0x74,0x69])])),await _0x3dcc5a()?_0x2bde76()?_0x69e368()?_0x3b8aff([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x15c40d()?(_0x89dc09[_0x3b8aff([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3b8aff([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x18a097=_0x1951f6(_0x3b8aff([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x89dc09[_0x3b8aff([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3b8aff([0x74,0x72,0x69,0x61,0x6c])&&(_0x18a097=_0x1951f6(_0x3b8aff([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x5ccfc2()):_0x3b8aff([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x3b8aff([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x3b8aff([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x3b8aff([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x69e368(){const _0x10b80b=[_0x3b8aff([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x3b8aff([0x74,0x72,0x69,0x61,0x6c])][_0x3b8aff([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x89dc09[_0x3b8aff([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x5602b1/0x3e8:0xe10*_0x1a6e01;return _0x89dc09[_0x3b8aff([0x65,0x78,0x70])]<_0x10b80b;}function _0x2bde76(){const _0x2e36eb=_0x89dc09[_0x3b8aff([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x2e36eb&&(!!_0x2e36eb[_0x3b8aff([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3b8aff([0x2a]))||!!_0x2e36eb[_0x3b8aff([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3b8aff([0x55,0x50,0x4c,0x43])));}function _0x15c40d(){const _0x536b58=_0x89dc09[_0x3b8aff([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x536b58||0x0==_0x536b58[_0x3b8aff([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x3fdd13}=new URL(window[_0x3b8aff([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x536b58[_0x3b8aff([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3fdd13))return!0x0;const _0x2cebd0=_0x3fdd13[_0x3b8aff([0x73,0x70,0x6c,0x69,0x74])](_0x3b8aff([0x2e]));return _0x536b58[_0x3b8aff([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x46c259=>_0x46c259[_0x3b8aff([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3b8aff([0x2a])))[_0x3b8aff([0x6d,0x61,0x70])](_0xcd8737=>_0xcd8737[_0x3b8aff([0x73,0x70,0x6c,0x69,0x74])](_0x3b8aff([0x2e])))[_0x3b8aff([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x1468f2=>_0x1468f2[_0x3b8aff([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x2cebd0[_0x3b8aff([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x3b8aff([0x6d,0x61,0x70])](_0x27517e=>Array(_0x2cebd0[_0x3b8aff([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x27517e[_0x3b8aff([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x3b8aff([0x66,0x69,0x6c,0x6c])](_0x27517e[0x0]===_0x3b8aff([0x2a])?_0x3b8aff([0x2a]):'')[_0x3b8aff([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x27517e))[_0x3b8aff([0x73,0x6f,0x6d,0x65])](_0x34db92=>_0x2cebd0[_0x3b8aff([0x65,0x76,0x65,0x72,0x79])]((_0x2e65ea,_0x4c62a1)=>_0x34db92[_0x4c62a1]===_0x2e65ea||_0x34db92[_0x4c62a1]===_0x3b8aff([0x2a])));}function _0x5ccfc2(){return _0x18a097&&_0x62e2f0?new window[(_0x3b8aff([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1ad25c,_0x572157)=>{_0x18a097[_0x3b8aff([0x74,0x68,0x65,0x6e])](_0x1ad25c,_0x572157),_0x62e2f0[_0x3b8aff([0x74,0x68,0x65,0x6e])](_0x39f7c8=>{_0x39f7c8!=_0x3b8aff([0x56,0x61,0x6c,0x69,0x64])&&_0x1ad25c(_0x39f7c8);},_0x572157);}):_0x18a097||_0x62e2f0||_0x3b8aff([0x56,0x61,0x6c,0x69,0x64]);}}function _0x2f65e0(_0x1c3650,_0x4283a8){return new window[(_0x3b8aff([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1253ab=>{if(_0x72dbf1())return _0x1253ab(_0x3b8aff([0x56,0x61,0x6c,0x69,0x64]));_0xb81f1e(),_0x87ca50[_0x3b8aff([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x3b8aff([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x5c5dfd=!0x1;const _0x5b673f=_0x4b6330();function _0x16a463(_0x413954){return!!_0x413954&&(typeof _0x413954===_0x3b8aff([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x413954===_0x3b8aff([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x413954[_0x3b8aff([0x74,0x68,0x65,0x6e])]===_0x3b8aff([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x413954[_0x3b8aff([0x63,0x61,0x74,0x63,0x68])]===_0x3b8aff([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x175012(_0x5cd995){_0x3f135f(_0x5cd995)[_0x3b8aff([0x74,0x68,0x65,0x6e])](_0x5c2068=>{if(!_0x5c2068||_0x5c2068[_0x3b8aff([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x3b8aff([0x6f,0x6b]))return _0x3b8aff([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x5b066d(_0x18d0bb(_0x5b673f+_0x4283a8))!=_0x5c2068[_0x3b8aff([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x3b8aff([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x3b8aff([0x56,0x61,0x6c,0x69,0x64]);})[_0x3b8aff([0x74,0x68,0x65,0x6e])](_0x264519=>(_0x4b28a3(),_0x264519),()=>{const _0x2bf728=_0x7f7fc8();return null==_0x2bf728?(_0x4b28a3(),_0x3b8aff([0x56,0x61,0x6c,0x69,0x64])):_0x3b8aff(_0x5602b1-_0x2bf728>(0x5f3b4044^_0x50b599)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x3b8aff([0x74,0x68,0x65,0x6e])](_0x1253ab)[_0x3b8aff([0x63,0x61,0x74,0x63,0x68])](()=>{_0x1253ab(_0x3b8aff([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x1eb0d9=0x7b012ac4^_0x50b599;function _0x4b28a3(){const _0x3841b7=_0x3b8aff([0x6c,0x6c,0x63,0x74,0x2d])+_0x5b066d(_0x18d0bb(_0x1c3650)),_0x5f4b67=_0x124cd7(_0x5b066d(window[_0x3b8aff([0x4d,0x61,0x74,0x68])][_0x3b8aff([0x63,0x65,0x69,0x6c])](_0x5602b1/_0x1eb0d9)));window[_0x3b8aff([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3b8aff([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3841b7,_0x5f4b67);}function _0x7f7fc8(){const _0x5b507d=_0x3b8aff([0x6c,0x6c,0x63,0x74,0x2d])+_0x5b066d(_0x18d0bb(_0x1c3650)),_0x934666=window[_0x3b8aff([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3b8aff([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x5b507d);return _0x934666?window[_0x3b8aff([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x124cd7(_0x934666),0x10)*_0x1eb0d9:null;}function _0x3f135f(_0x2afafe){return new window[(_0x3b8aff([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x100bc0,_0x145c8a)=>{_0x2afafe[_0x3b8aff([0x74,0x68,0x65,0x6e])](_0x100bc0,_0x145c8a),window[_0x3b8aff([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x145c8a,0x7b361084^_0x50b599);});}}_0x87ca50[_0x3b8aff([0x6f,0x6e])](_0x3b8aff([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x36faef,_0x12e81e)=>{if(_0x12e81e[0x0]!=_0x1c3650)return _0x1253ab(_0x3b8aff([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x12e81e[0x1]={..._0x12e81e[0x1],[_0x3b8aff([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x5b673f};},{[_0x3b8aff([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3b8aff([0x68,0x69,0x67,0x68])}),_0x87ca50[_0x3b8aff([0x6f,0x6e])](_0x3b8aff([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x3f235c=>{_0x16a463(_0x3f235c[_0x3b8aff([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x5c5dfd=!0x0,_0x175012(_0x3f235c[_0x3b8aff([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x3b8aff([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3b8aff([0x6c,0x6f,0x77])}),_0x59293f[_0x3b8aff([0x74,0x68,0x65,0x6e])](()=>{_0x5c5dfd||_0x1253ab(_0x3b8aff([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x72dbf1(){return _0x87ca50[_0x3b8aff([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3b8aff([0x76,0x69,0x65,0x77])][_0x3b8aff([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x3b8aff([0x61,0x75,0x74,0x6f]);}function _0xb81f1e(){_0x87ca50[_0x3b8aff([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3b8aff([0x76,0x69,0x65,0x77])][_0x3b8aff([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x3b8aff([0x61,0x75,0x74,0x6f]);}}function _0x1951f6(_0x1fd6fe){const _0xfc5068=[new window[(_0x3b8aff([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x463a6b=>setTimeout(_0x463a6b,0x7b3efa88^_0x50b599)),_0x59293f[_0x3b8aff([0x74,0x68,0x65,0x6e])](()=>new window[(_0x3b8aff([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x229f88=>{let _0x209f60=0x0;_0x87ca50[_0x3b8aff([0x6d,0x6f,0x64,0x65,0x6c])][_0x3b8aff([0x6f,0x6e])](_0x3b8aff([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x4287cf,_0x2aec1f)=>{_0x2aec1f[0x0][_0x3b8aff([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x209f60++,_0x209f60==(0x7b37c5bc^_0x50b599)&&(_0x229f88(),_0x4287cf[_0x3b8aff([0x6f,0x66,0x66])]());});}))];return window[_0x3b8aff([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x3b8aff([0x72,0x61,0x63,0x65])](_0xfc5068)[_0x3b8aff([0x74,0x68,0x65,0x6e])](()=>_0x1fd6fe);}async function _0x258521(){await _0x59293f,_0x87ca50[_0x3b8aff([0x6d,0x6f,0x64,0x65,0x6c])][_0x3b8aff([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x7f779e,_0x87ca50[_0x3b8aff([0x6d,0x6f,0x64,0x65,0x6c])][_0x3b8aff([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x7f779e,_0x87ca50[_0x3b8aff([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x3b8aff([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x5d5456(_0xc5f1a5){const _0x476e7e=_0x7aaa45();_0x87ca50[_0x476e7e]=_0x3b8aff([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0xc5f1a5,_0xc5f1a5!=_0x3b8aff([0x56,0x61,0x6c,0x69,0x64])&&_0x258521();}function _0x7aaa45(){const _0x8bc546=window[_0x3b8aff([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x3b8aff([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x3b8aff([0x6e,0x6f,0x77])]())[_0x3b8aff([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x3b8aff([0x2e]),'');let _0x1b37bc=_0x3b8aff([0x46]);for(let _0x3b5d54=0x0;_0x3b5d54<_0x8bc546[_0x3b8aff([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3b5d54+=0x2){let _0xf5b18d=window[_0x3b8aff([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x8bc546[_0x3b8aff([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3b5d54,_0x3b5d54+0x2));_0xf5b18d>=_0x1897f9[_0x3b8aff([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0xf5b18d-=_0x1897f9[_0x3b8aff([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x1b37bc+=_0x1897f9[_0xf5b18d];}return _0x1b37bc;}function _0x1b566f(){const _0x480687=_0x3197bf[_0x3b8aff([0x73,0x70,0x6c,0x69,0x74])](_0x3b8aff([0x2e]));if(0x3!=_0x480687[_0x3b8aff([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x553524(_0x480687[0x1]);function _0x553524(_0x2aec5f){const _0x5ae8c9=_0x40193d(_0x2aec5f);return _0x5ae8c9&&_0x3736d1()?_0x5ae8c9:null;function _0x3736d1(){const _0x31419c=_0x5ae8c9[_0x3b8aff([0x6a,0x74,0x69])],_0x576ffd=window[_0x3b8aff([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x31419c[_0x3b8aff([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x31419c[_0x3b8aff([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x5519b4={..._0x5ae8c9,[_0x3b8aff([0x6a,0x74,0x69])]:_0x31419c[_0x3b8aff([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x31419c[_0x3b8aff([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x5519b4[_0x3b8aff([0x76,0x63])],_0x18d0bb(_0x5519b4)==_0x576ffd;}}}async function _0x3dcc5a(){let _0x182808=!0x0;try{const _0x16a83f=_0x3197bf[_0x3b8aff([0x73,0x70,0x6c,0x69,0x74])](_0x3b8aff([0x2e])),[_0x195c74,_0x538363,_0x315090]=_0x16a83f;return _0x492494(_0x195c74),await _0x42833d(_0x195c74,_0x538363,_0x315090),_0x182808;}catch{return!0x1;}function _0x492494(_0x30dc38){const _0x238d56=_0x40193d(_0x30dc38);_0x238d56&&_0x238d56[_0x3b8aff([0x61,0x6c,0x67])]==_0x3b8aff([0x45,0x53,0x32,0x35,0x36])||(_0x182808=!0x1);}async function _0x42833d(_0x26b7ef,_0x38e4c0,_0xe0b06){const _0x3eaff2=window[_0x3b8aff([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x3b8aff([0x66,0x72,0x6f,0x6d])](_0x18db24(_0xe0b06),_0x237857=>_0x237857[_0x3b8aff([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x253b9d=new window[(_0x3b8aff([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x3b8aff([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x26b7ef+_0x3b8aff([0x2e])+_0x38e4c0),_0x4ca5ae=window[_0x3b8aff([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x3b8aff([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x4ca5ae)return;const _0x56114c=await _0x4ca5ae[_0x3b8aff([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x3b8aff([0x6a,0x77,0x6b]),_0x4a1f2e,{[_0x3b8aff([0x6e,0x61,0x6d,0x65])]:_0x3b8aff([0x45,0x43,0x44,0x53,0x41]),[_0x3b8aff([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x3b8aff([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x3b8aff([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x4ca5ae[_0x3b8aff([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x3b8aff([0x6e,0x61,0x6d,0x65])]:_0x3b8aff([0x45,0x43,0x44,0x53,0x41]),[_0x3b8aff([0x68,0x61,0x73,0x68])]:{[_0x3b8aff([0x6e,0x61,0x6d,0x65])]:_0x3b8aff([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x56114c,_0x3eaff2,_0x253b9d)||(_0x182808=!0x1);}}function _0x40193d(_0x4d1798){return _0x4d1798[_0x3b8aff([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x3b8aff([0x65,0x79]))?JSON[_0x3b8aff([0x70,0x61,0x72,0x73,0x65])](_0x18db24(_0x4d1798)):null;}function _0x18db24(_0x2da08b){return window[_0x3b8aff([0x61,0x74,0x6f,0x62])](_0x2da08b[_0x3b8aff([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x3b8aff([0x2b]))[_0x3b8aff([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x3b8aff([0x2f])));}function _0x18d0bb(_0x4201ae){let _0x25c340=0x1505;function _0x2c5ebb(_0x710888){for(let _0x1aa990=0x0;_0x1aa990<_0x710888[_0x3b8aff([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1aa990++){const _0x590966=_0x710888[_0x3b8aff([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x1aa990);_0x25c340=(_0x25c340<<0x5)+_0x25c340+_0x590966,_0x25c340&=_0x25c340;}}function _0x33c5cf(_0x24a578){Array[_0x3b8aff([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x24a578)?_0x24a578[_0x3b8aff([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x33c5cf):_0x24a578&&typeof _0x24a578==_0x3b8aff([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x3b8aff([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x24a578)[_0x3b8aff([0x73,0x6f,0x72,0x74])]()[_0x3b8aff([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x4d7b69,_0x5a6dbb])=>{_0x2c5ebb(_0x4d7b69),_0x33c5cf(_0x5a6dbb);}):_0x2c5ebb(window[_0x3b8aff([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x24a578));}return _0x33c5cf(_0x4201ae),_0x25c340>>>0x0;}function _0x5b066d(_0x538110){return _0x538110[_0x3b8aff([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x3b8aff([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x3b8aff([0x30]));}function _0x124cd7(_0x28229d){return _0x28229d[_0x3b8aff([0x73,0x70,0x6c,0x69,0x74])]('')[_0x3b8aff([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x3b8aff([0x6a,0x6f,0x69,0x6e])]('');}function _0x7f779e(){}function _0x3b8aff(_0x54c067){return _0x54c067['map'](_0x4355ad=>String['fromCharCode'](_0x4355ad))['join']('');}_0x5d5456(await _0x350ae0());}(this);}['_initSchema'](){const _0x36b826=this['editor']['model']['schema'];_0x36b826['isRegistered']('imageBlock')&&_0x36b826['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x36b826['isRegistered']('imageInline')&&_0x36b826['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x39d9c1=this['editor'];_0x39d9c1['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x39d9c1['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x4b01eb=>_0x4b01eb['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x2d42f3=_0x39d9c1['commands']['get']('replaceImageSource');_0x2d42f3&&this['listenTo'](_0x2d42f3,'cleanupImage',(_0x1d9000,[_0x154a91,_0x1e5d7b])=>{_0x154a91['removeAttribute']('uploadcareImageId',_0x1e5d7b);});}['_initConfig'](){const _0x38a221=this['editor']['config']['get']('uploadcare.uploader')||{},_0x2cc966=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x949c90(_0x1769cf['document'],'uc-config',{..._0x38a221,'pubkey':_0x2cc966,'ctx-name':'uploader','sourceList':'','imgOnly':'true','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage'],'externalSourcesEmbedCss':'\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup\x20{\x20padding:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-menu\x20{\x20gap:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-footer\x20{\x20padding-top:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__separator\x20{\x20margin:\x200;\x20}\x0a\x09\x09\x09'}),this['_configElement']['iconHrefResolver']=_0x48c7f0=>{if('closeMax'==_0x48c7f0)return'#uc-icon-arrow-down';},_0x1769cf['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x949c90(_0x1769cf['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader'}),_0x1769cf['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x56741a=this['editor']['commands']['get']('insertImage');_0x56741a&&this['listenTo'](_0x56741a,'execute',()=>{const _0xbfaf7=this['editor']['model']['document']['selection']['getSelectedElement']();_0xbfaf7&&_0xbfaf7['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0xbfaf7);});});const _0x194637=this['editor']['commands']['get']('uploadcareImageReplace');_0x194637&&this['listenTo'](_0x194637,'execute',()=>{const _0x208e67=this['editor']['model']['document']['selection']['getSelectedElement']();_0x208e67&&_0x208e67['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x208e67);});});}}class tt extends _0x4a984b{static get['requires'](){return[o,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0xf8b493){super(_0xf8b493),_0xf8b493['config']['define']('uploadcare.uploader.sourceList',[i['Local'],i['URL']]),_0x3e6419['defineComponents'](_0x3e6419);}}class ii extends _0x429902{constructor(_0x4106b5){super(_0x4106b5);const t=_0x4106b5['t'],_0x52d6ee=this['bindTemplate'],_0x1d3c9d=new _0x2d73c2();_0x1d3c9d['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':[_0x1d3c9d,{'text':_0x52d6ee['to']('imageUploadProgress',_0x5e1021=>t('Loading\x20image...')+'\x20('+(_0x5e1021||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 _0x429902{constructor(_0x585ae8){super(_0x585ae8);const t=_0x585ae8['t'];this['set']('errorType',null);const _0x3de2c0=new _0x4a1729(_0x585ae8);_0x3de2c0['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x3de2c0['withText']=!0x0,_0x3de2c0['class']='ck-button-action',_0x3de2c0['on']('execute',()=>{this['fire']('retry');}),_0x3de2c0['bind']('isVisible')['to'](this,'errorType',_0xc876ee=>'NotFound'!==_0xc876ee);const _0x21540d=new _0x115457();_0x21540d['content']=_0x4cfd49,_0x21540d['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x1e246a=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':[_0x21540d,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x1e246a['to']('errorType',_0x3a3375=>t('NotFound'!==_0x3a3375?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x3de2c0]},{'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 _0x429902{constructor(_0x254d88,_0x31fd86){super(_0x254d88);const _0xfe585d=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x31fd86,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0xfe585d['to']('imageSrc')}});}}class X extends F{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x2f9643,_0x568efc,_0x42fd92){super(_0x2f9643),this['_items']=this['createCollection'](),this['_loadingView']=new ii(_0x2f9643),this['_errorView']=new ti(_0x2f9643),this['_editingView']=new ei(_0x2f9643,_0x42fd92),this['_focusableView']=new _0x429902(_0x2f9643),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x568efc),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'],_0x5cabd3=>{this['_addUploadcareImageEditorListeners'](_0x5cabd3);});}),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'](_0x23c560,_0x1e2027){const _0xbec7ea='uc-cloud-image-editor',_0x32a06f=_0x23c560['querySelector'](_0xbec7ea);if(_0x32a06f)return _0x1e2027(_0x32a06f);const _0x4c2d20=new MutationObserver(_0x17f54a=>{const _0x1fa07e=_0x17f54a['filter'](_0x58e8bf=>_0x58e8bf['target']===_0x23c560&&_0x58e8bf['addedNodes']['length']>0x0&&_0x58e8bf['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0xbec7ea);_0x1fa07e['length']&&(_0x4c2d20['disconnect'](),_0x1e2027(_0x1fa07e[0x0]['addedNodes'][0x0]));});_0x4c2d20['observe'](_0x23c560,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x2a8df3){_0x2a8df3['addEventListener']('apply',_0x2c665c=>{this['fire']('apply',{'imageSrc':_0x2c665c['detail']['cdnUrl']});}),_0x2a8df3['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class E extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0xe99d8f(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x14c77c,_0x5bbfbd,_0xd41ecf){super(),this['_editor']=_0x14c77c,this['_dialog']=_0x5bbfbd,this['_imageElement']=_0xd41ecf,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 _0x2dfa28=this['_imageElement'],_0x2b60ec=_0x2dfa28['getAttribute']('uploadcareImageId'),_0x2fc393=_0x2dfa28['getAttribute']('src');if(_0x2b60ec)await this['_loadImageInfo'](_0x2b60ec,_0x2fc393);else{if(this['_imageCache']['has'](_0x2fc393)){const _0x2171fc=this['_imageCache']['get'](_0x2fc393);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x2171fc['url'],this['imageDimension']=_0x2171fc['dimension'],this['imageId']=_0x2171fc['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x498629}=this['_editor'],t=_0x498629['t'],_0xcd910e=new X(_0x498629,this['imageStatus'],this['_attributes']);_0xcd910e['bind']('status')['to'](this,'imageStatus'),_0xcd910e['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0xcd910e['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0xcd910e['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0xcd910e,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0xcc08,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0xcd910e,'position':_0x466743['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0xcd910e['focus']();},'onHide':()=>{_0xcd910e['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x2cacf7=>!S(_0x2cacf7,_0xcd910e['element'])}});}['_loadImageInfo'](_0x260eab,_0x27eb0d){return j['getInfo'](_0x260eab,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey')})['then'](_0x6e12ab=>{const {width:_0x474ed2,height:_0x470a31}=_0x6e12ab['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x27eb0d,this['imageDimension']={'width':_0x474ed2,'height':_0x470a31},this['imageId']=_0x260eab;})['catch'](_0x2ed65c=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x2ed65c['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x1d4ca2,_0x3240b6){return this['_getImageAsFile'](_0x1d4ca2)['then'](_0x40df35=>j['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'signal':_0x3240b6['signal'],'file':_0x40df35,'onProgress':_0x5ddea3=>{_0x5ddea3&&_0x5ddea3['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x5ddea3['value']));}}))['then'](_0x52422c=>{const {width:_0x554301,height:_0x5b3c15}=_0x52422c['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x52422c['cdnUrl'],this['imageDimension']={'width':_0x554301,'height':_0x5b3c15},this['imageId']=_0x52422c['uuid'],this['imageUploadProgress']=null;const _0x3e4400=_0x1d4ca2['getAttribute']('src');this['_imageCache']['set'](_0x3e4400,{'id':_0x52422c['uuid'],'url':_0x52422c['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x597ac7=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x597ac7['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x1dad78,_0x3bdcaf){_0x1dad78['on']('apply',(_0x8027a4,_0x48c3be)=>{this['_replaceImage'](_0x3bdcaf,_0x48c3be['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x1dad78['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x1dad78['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x2bdde4,_0xffaa76,_0x20c1da){const _0x3cc8b5=this['_editor'],{width:_0x4613a7,height:_0x53a068}=C(_0xffaa76,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x35aa2b,imageSources:_0x14a9f4}=k(_0xffaa76,_0x4613a7);_0x3cc8b5['model']['change'](_0x4dbae1=>{if('$graveyard'===_0x2bdde4['root']['rootName']){_0x3cc8b5['execute']('insertImage',{'imageType':_0x2bdde4['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x2bdde4['getAttributes']()),'uploadcareImageId':_0x20c1da,'src':_0x35aa2b,'sources':_0x14a9f4,'width':_0x4613a7,'height':_0x53a068}});const _0x17d996=_0x2bdde4['getChildren']();_0x2bdde4=_0x3cc8b5['model']['document']['selection']['getSelectedElement']();for(const _0x117224 of _0x17d996)_0x4dbae1['append'](_0x4dbae1['cloneElement'](_0x117224),_0x2bdde4);}else _0x4dbae1['setSelection'](_0x2bdde4,'on'),_0x3cc8b5['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x2bdde4['getAttributes']()),'uploadcareImageId':_0x20c1da,'src':_0x35aa2b,'sources':_0x14a9f4,'width':_0x4613a7,'height':_0x53a068},_0x2bdde4);_0x4dbae1['setSelection'](_0x2bdde4,'on');});}async['_getImageAsFile'](_0x359082){const _0x22a426=_0x1769cf['window'],_0x49b5c6=_0x1769cf['document']['location']['href'],_0x4195e1=new _0x22a426['URL'](_0x359082['getAttribute']('src'),_0x49b5c6);if('data:'===_0x4195e1['protocol']){const _0x20984d=_0x4195e1['href']['split'](','),_0x2fb848=_0x20984d[0x0]['match'](/:(.*?);/)[0x1],_0x3371ee=_0x2fb848['split']('/')[0x1],_0x5f423c=_0x22a426['atob'](_0x20984d[_0x20984d['length']-0x1]);let _0x2a9da6=_0x5f423c['length'];const _0x5d5276=new _0x22a426['Uint8Array'](_0x2a9da6);for(;_0x2a9da6--;)_0x5d5276[_0x2a9da6]=_0x5f423c['charCodeAt'](_0x2a9da6);return new _0x22a426['File']([_0x5d5276],'image.'+_0x3371ee,{'type':_0x2fb848});}const _0x55a924=_0x4195e1['href']['split']('/'),_0x200e53=_0x55a924[_0x55a924['length']-0x1],_0x357b1a=_0x200e53['split']('.')[0x1];return _0x22a426['fetch'](_0x4195e1['href'])['then'](_0x3df313=>_0x3df313['clone']()['blob']())['then'](_0x95e4af=>new _0x22a426['File']([_0x95e4af],_0x200e53,{'type':'image/'+_0x357b1a}));}}class O extends _0x36d961{['imageEditController'];static get['requires'](){return[_0x2269f1];}['_isEditable'];constructor(_0x3062f3){super(_0x3062f3),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x5ed6d2){const _0x362870=G(_0x5ed6d2);return _0x57615a=>!(!_0x57615a||!_0x57615a['is']('element','imageBlock')&&!_0x57615a['is']('element','imageInline'))&&(!!_0x57615a['hasAttribute']('uploadcareImageId')||!!_0x57615a['hasAttribute']('src')&&_0x362870(_0x57615a['getAttribute']('src')));}(_0x3062f3['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x182f9d=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x182f9d);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x1b4489=this['editor']['model']['document']['selection']['getSelectedElement']();_0x1b4489&&(_0x1b4489['is']('element','imageBlock')||_0x1b4489['is']('element','imageInline'))&&(this['imageEditController']=new E(this['editor'],this['editor']['plugins']['get'](_0x2269f1),_0x1b4489),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class R extends _0x36d961{['refresh'](){const _0x6b3391=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x6b3391&&(_0x6b3391['is']('element','imageBlock')||_0x6b3391['is']('element','imageInline')));}['execute'](_0x3854c4){const _0x7fdcd5=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x448a3d=>{_0x448a3d['setAttributes'](_0x3854c4,_0x7fdcd5),_0x448a3d['removeAttribute']('srcset',_0x7fdcd5),_0x448a3d['removeAttribute']('sizes',_0x7fdcd5);});}}class m extends _0x4a984b{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[o,_0x50d031,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x38d12e}=this;_0x38d12e['commands']['add']('uploadcareImageEdit',new O(_0x38d12e)),_0x38d12e['commands']['add']('uploadcareImageReplace',new R(_0x38d12e));}}class g extends _0x4a984b{['_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 _0x9388a6=this['editor'];_0x9388a6['ui']['componentFactory']['add']('uploadcareImageEdit',_0x22a407=>{const _0x2ed168=_0x9388a6['commands']['get']('uploadcareImageEdit'),_0x1e5f5a=new _0x4a1729(_0x22a407),t=_0x22a407['t'];return _0x1e5f5a['set']({'icon':_0xcc08,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x1e5f5a['bind']('isEnabled')['to'](_0x2ed168),_0x1e5f5a['bind']('isOn')['to'](_0x2ed168,'isActive'),this['listenTo'](_0x1e5f5a,'execute',()=>{_0x9388a6['execute']('uploadcareImageEdit'),_0x9388a6['editing']['view']['focus']();}),_0x1e5f5a;}),this['_initConfig']();}['_initConfig'](){const _0x1d0086=_0x949c90(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x1d0086),this['listenTo'](this['editor'],'destroy',()=>{_0x1d0086['remove']();});}}class et extends _0x4a984b{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-
|
|
3
|
+
"version": "0.0.0-nightly-20250616.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-
|
|
27
|
-
"@ckeditor/ckeditor5-icons": "0.0.0-nightly-
|
|
28
|
-
"@ckeditor/ckeditor5-image": "0.0.0-nightly-
|
|
29
|
-
"@ckeditor/ckeditor5-theme-lark": "0.0.0-nightly-
|
|
30
|
-
"@ckeditor/ckeditor5-ui": "0.0.0-nightly-
|
|
31
|
-
"@ckeditor/ckeditor5-upload": "0.0.0-nightly-
|
|
32
|
-
"@ckeditor/ckeditor5-utils": "0.0.0-nightly-
|
|
33
|
-
"ckeditor5": "0.0.0-nightly-
|
|
26
|
+
"@ckeditor/ckeditor5-core": "0.0.0-nightly-20250616.0",
|
|
27
|
+
"@ckeditor/ckeditor5-icons": "0.0.0-nightly-20250616.0",
|
|
28
|
+
"@ckeditor/ckeditor5-image": "0.0.0-nightly-20250616.0",
|
|
29
|
+
"@ckeditor/ckeditor5-theme-lark": "0.0.0-nightly-20250616.0",
|
|
30
|
+
"@ckeditor/ckeditor5-ui": "0.0.0-nightly-20250616.0",
|
|
31
|
+
"@ckeditor/ckeditor5-upload": "0.0.0-nightly-20250616.0",
|
|
32
|
+
"@ckeditor/ckeditor5-utils": "0.0.0-nightly-20250616.0",
|
|
33
|
+
"ckeditor5": "0.0.0-nightly-20250616.0",
|
|
34
34
|
"@uploadcare/file-uploader": "1.16.2",
|
|
35
35
|
"@uploadcare/upload-client": "6.14.3"
|
|
36
36
|
},
|
package/src/uploadcareediting.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x7e6aac=_0x4a06;function _0x32ad(){const _0x1d3d76=['extend','ctxElement','3tvKaIl','uc-upload-ctx-provider','once','isPremiumPlugin','selection','document','PictureEditing','55sZGtdy','8gbTvlK','view','\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','replaceImageSource','imageBlock','destroy','elementToAttribute','_configElement','173094PtjyVK','144260AvEsTb','_ctxElement','2143274xaxjTC','isOfficialPlugin','_initConfig','pluginName','uploadcare','uploadcare.uploader','add','configElement','_initImageProcessingIndicator','fromCharCode','init','getAttribute','attributeToAttribute','for','closeMax','7595631zdPCMV','editing','iconHrefResolver','57PTcEKy','contentLanguage','body','getSelectedElement','#uc-icon-arrow-down','execute','true','appendChild','render','6147205zTmpBB','insertImage','conversion','uc-config','_initSchema','_initCtx','downcast','requires','editor','remove','6geJTpa','40822272LFTunq','href','292210GKwXLu','uploadcareImageReplace','imageInline','locale','join','afterInit','model','removeAttribute','config','input[uploadcare-file-input]','uploadcare.pubkey','data-uc-image-id','map','listenTo','UploadcareEditing','cleanupImage','_initConversion','commands','uploadcareImageId','upcast','uploader','isRegistered','get','schema','querySelector'];_0x32ad=function(){return _0x1d3d76;};return _0x32ad();}(function(_0x1ff786,_0x283127){const _0x3982ad=_0x4a06,_0x2746e3=_0x1ff786();while(!![]){try{const _0x1b667b=-parseInt(_0x3982ad(0x116))/0x1*(-parseInt(_0x3982ad(0x126))/0x2)+-parseInt(_0x3982ad(0xe5))/0x3*(parseInt(_0x3982ad(0x127))/0x4)+-parseInt(_0x3982ad(0xee))/0x5+-parseInt(_0x3982ad(0xf8))/0x6*(parseInt(_0x3982ad(0x129))/0x7)+-parseInt(_0x3982ad(0x11e))/0x8*(parseInt(_0x3982ad(0xe2))/0x9)+-parseInt(_0x3982ad(0xfb))/0xa*(-parseInt(_0x3982ad(0x11d))/0xb)+parseInt(_0x3982ad(0xf9))/0xc;if(_0x1b667b===_0x283127)break;else _0x2746e3['push'](_0x2746e3['shift']());}catch(_0x4ea1fe){_0x2746e3['push'](_0x2746e3['shift']());}}}(_0x32ad,0xb5581));import{Plugin as _0x3bcaa1}from'ckeditor5/src/core.js';function _0x4a06(_0x132a1d,_0x123342){const _0x32ad6a=_0x32ad();return _0x4a06=function(_0x4a06a5,_0x1f874c){_0x4a06a5=_0x4a06a5-0xdc;let _0x148993=_0x32ad6a[_0x4a06a5];return _0x148993;},_0x4a06(_0x132a1d,_0x123342);}import{Dialog as _0x1170b5}from'ckeditor5/src/ui.js';import{createElement as _0x40fcf7,global as _0x178e1f,uid as _0xec4c27}from'ckeditor5/src/utils.js';import{UploadcareCommand as _0xa625a4}from'./uploadcarecommand.js';import{UploadcareUploadAdapter as _0xe0b56e}from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0x27da00}from'./utils/editingutils.js';export class UploadcareEditing extends _0x3bcaa1{[_0x7e6aac(0x125)]=null;[_0x7e6aac(0x128)]=null;static get[_0x7e6aac(0x12c)](){const _0x431187=_0x7e6aac;return _0x431187(0x109);}static get[_0x7e6aac(0xf5)](){const _0x355f3c=_0x7e6aac;return[_0x355f3c(0x11c),_0xe0b56e,_0x1170b5];}static get[_0x7e6aac(0x12a)](){return!0x0;}static get[_0x7e6aac(0x119)](){return!0x0;}get[_0x7e6aac(0x130)](){const _0x2f6f77=_0x7e6aac;return this[_0x2f6f77(0x125)];}get[_0x7e6aac(0x115)](){const _0x538034=_0x7e6aac;return this[_0x538034(0x128)];}[_0x7e6aac(0xdd)](){const _0x95e386=_0x7e6aac,_0x60046a=this[_0x95e386(0xf6)];_0x60046a[_0x95e386(0x10c)][_0x95e386(0x12f)](_0x95e386(0x12d),new _0xa625a4(_0x60046a));}[_0x7e6aac(0x100)](){const _0x19e02f=_0x7e6aac;this[_0x19e02f(0xf2)](),this[_0x19e02f(0x10b)](),this[_0x19e02f(0x12b)](),this[_0x19e02f(0xf3)](),this[_0x19e02f(0x131)](),this[_0x19e02f(0x108)](this[_0x19e02f(0xf6)],_0x19e02f(0x123),()=>{const _0x22fa61=_0x19e02f;this[_0x22fa61(0x125)]&&(this[_0x22fa61(0x125)][_0x22fa61(0xf7)](),this[_0x22fa61(0x125)]=null),this[_0x22fa61(0x128)]&&(this[_0x22fa61(0x128)][_0x22fa61(0xf7)](),this[_0x22fa61(0x128)]=null);const _0x3c7b8e=_0x178e1f[_0x22fa61(0x11b)][_0x22fa61(0x113)](_0x22fa61(0x104));_0x3c7b8e&&_0x3c7b8e[_0x22fa61(0xf7)]();}),async function(_0x2b8c38){const _0xeda939=_0x483d7c([0x42,0x56,0x7a,0x33,0x31,0x57,0x39,0x50,0x4b,0x62,0x64,0x6f,0x36,0x34,0x6a,0x35,0x37,0x79,0x54,0x61,0x4a,0x47,0x5a,0x65,0x4d,0x70,0x4c,0x6d,0x76,0x66,0x71,0x69,0x4e,0x45,0x48,0x6b,0x72,0x51,0x52,0x43,0x68,0x73,0x53,0x74,0x55,0x41,0x58,0x30,0x78,0x77,0x6c,0x63,0x4f,0x38,0x46,0x44,0x49,0x59,0x75,0x32,0x67,0x6e]),_0x20f8f0=0x28f7ac2d,_0x41e83e=0x28f0c695^_0x20f8f0,_0x26a84f=window[_0x483d7c([0x44,0x61,0x74,0x65])][_0x483d7c([0x6e,0x6f,0x77])](),_0x2a4093=_0x2b8c38[_0x483d7c([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x1422c9=new window[(_0x483d7c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x292dcd=>{_0x2a4093[_0x483d7c([0x6f,0x6e,0x63,0x65])](_0x483d7c([0x72,0x65,0x61,0x64,0x79]),_0x292dcd);}),_0xfe77d={[_0x483d7c([0x6b,0x74,0x79])]:_0x483d7c([0x45,0x43]),[_0x483d7c([0x75,0x73,0x65])]:_0x483d7c([0x73,0x69,0x67]),[_0x483d7c([0x63,0x72,0x76])]:_0x483d7c([0x50,0x2d,0x32,0x35,0x36]),[_0x483d7c([0x78])]:_0x483d7c([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]),[_0x483d7c([0x79])]:_0x483d7c([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]),[_0x483d7c([0x61,0x6c,0x67])]:_0x483d7c([0x45,0x53,0x32,0x35,0x36])},_0xb8dd3c=_0x2a4093[_0x483d7c([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x483d7c([0x67,0x65,0x74])](_0x483d7c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x34f431(){let _0x417344,_0x2dfb46=null,_0x385925=null;try{if(_0xb8dd3c==_0x483d7c([0x47,0x50,0x4c]))return _0x483d7c([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x417344=_0x44aeae(),!_0x417344)return _0x483d7c([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x417344[_0x483d7c([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x385925=_0xdef41f(_0x417344[_0x483d7c([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x417344[_0x483d7c([0x6a,0x74,0x69])])),await _0x1c77f1()?_0x161db2()?_0x1d1b42()?_0x483d7c([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x1db7ee()?(_0x417344[_0x483d7c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x483d7c([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x2dfb46=_0x4fe83b(_0x483d7c([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x417344[_0x483d7c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x483d7c([0x74,0x72,0x69,0x61,0x6c])&&(_0x2dfb46=_0x4fe83b(_0x483d7c([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x3f80ea()):_0x483d7c([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x483d7c([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x483d7c([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x483d7c([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x1d1b42(){const _0x48fe14=[_0x483d7c([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x483d7c([0x74,0x72,0x69,0x61,0x6c])][_0x483d7c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x417344[_0x483d7c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x26a84f/0x3e8:0xe10*_0x41e83e;return _0x417344[_0x483d7c([0x65,0x78,0x70])]<_0x48fe14;}function _0x161db2(){const _0x4c3969=_0x417344[_0x483d7c([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x4c3969&&(!!_0x4c3969[_0x483d7c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x483d7c([0x2a]))||!!_0x4c3969[_0x483d7c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x483d7c([0x55,0x50,0x4c,0x43])));}function _0x1db7ee(){const _0x3a799c=_0x4a06,_0xb8800=_0x417344[_0x483d7c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0xb8800||0x0==_0xb8800[_0x483d7c([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x3cc97c}=new URL(window[_0x483d7c([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x3a799c(0xfa)]);if(_0xb8800[_0x483d7c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3cc97c))return!0x0;const _0x4b3c7b=_0x3cc97c[_0x483d7c([0x73,0x70,0x6c,0x69,0x74])](_0x483d7c([0x2e]));return _0xb8800[_0x483d7c([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x52272b=>_0x52272b[_0x483d7c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x483d7c([0x2a])))[_0x483d7c([0x6d,0x61,0x70])](_0x44f2c9=>_0x44f2c9[_0x483d7c([0x73,0x70,0x6c,0x69,0x74])](_0x483d7c([0x2e])))[_0x483d7c([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x2ffe5d=>_0x2ffe5d[_0x483d7c([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x4b3c7b[_0x483d7c([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x483d7c([0x6d,0x61,0x70])](_0x49c46d=>Array(_0x4b3c7b[_0x483d7c([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x49c46d[_0x483d7c([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x483d7c([0x66,0x69,0x6c,0x6c])](_0x49c46d[0x0]===_0x483d7c([0x2a])?_0x483d7c([0x2a]):'')[_0x483d7c([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x49c46d))[_0x483d7c([0x73,0x6f,0x6d,0x65])](_0x12a0b8=>_0x4b3c7b[_0x483d7c([0x65,0x76,0x65,0x72,0x79])]((_0x4040c5,_0x353056)=>_0x12a0b8[_0x353056]===_0x4040c5||_0x12a0b8[_0x353056]===_0x483d7c([0x2a])));}function _0x3f80ea(){return _0x2dfb46&&_0x385925?new window[(_0x483d7c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3b2a81,_0x3500a6)=>{_0x2dfb46[_0x483d7c([0x74,0x68,0x65,0x6e])](_0x3b2a81,_0x3500a6),_0x385925[_0x483d7c([0x74,0x68,0x65,0x6e])](_0x5195f0=>{_0x5195f0!=_0x483d7c([0x56,0x61,0x6c,0x69,0x64])&&_0x3b2a81(_0x5195f0);},_0x3500a6);}):_0x2dfb46||_0x385925||_0x483d7c([0x56,0x61,0x6c,0x69,0x64]);}}function _0xdef41f(_0x171042,_0x57529f){return new window[(_0x483d7c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x450e64=>{if(_0x4dc5ea())return _0x450e64(_0x483d7c([0x56,0x61,0x6c,0x69,0x64]));_0x47354f(),_0x2a4093[_0x483d7c([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x483d7c([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x4c17ca=!0x1;const _0x32c401=_0xec4c27();function _0x32cb8a(_0x34009e){return!!_0x34009e&&(typeof _0x34009e===_0x483d7c([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x34009e===_0x483d7c([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x34009e[_0x483d7c([0x74,0x68,0x65,0x6e])]===_0x483d7c([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x34009e[_0x483d7c([0x63,0x61,0x74,0x63,0x68])]===_0x483d7c([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x2ae96a(_0x38f3d1){_0x2d41ce(_0x38f3d1)[_0x483d7c([0x74,0x68,0x65,0x6e])](_0x2a743a=>{if(!_0x2a743a||_0x2a743a[_0x483d7c([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x483d7c([0x6f,0x6b]))return _0x483d7c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x17b668(_0x2e55dd(_0x32c401+_0x57529f))!=_0x2a743a[_0x483d7c([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x483d7c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x483d7c([0x56,0x61,0x6c,0x69,0x64]);})[_0x483d7c([0x74,0x68,0x65,0x6e])](_0x54042a=>(_0x63de5c(),_0x54042a),()=>{const _0x31c8a8=_0x2a19a3();return null==_0x31c8a8?(_0x63de5c(),_0x483d7c([0x56,0x61,0x6c,0x69,0x64])):_0x483d7c(_0x26a84f-_0x31c8a8>(0xcfb282d^_0x20f8f0)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x483d7c([0x74,0x68,0x65,0x6e])](_0x450e64)[_0x483d7c([0x63,0x61,0x74,0x63,0x68])](()=>{_0x450e64(_0x483d7c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x126310=0x28c142ad^_0x20f8f0;function _0x63de5c(){const _0x27a45c=_0x483d7c([0x6c,0x6c,0x63,0x74,0x2d])+_0x17b668(_0x2e55dd(_0x171042)),_0x13b883=_0x24c6a1(_0x17b668(window[_0x483d7c([0x4d,0x61,0x74,0x68])][_0x483d7c([0x63,0x65,0x69,0x6c])](_0x26a84f/_0x126310)));window[_0x483d7c([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x483d7c([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x27a45c,_0x13b883);}function _0x2a19a3(){const _0x215af1=_0x483d7c([0x6c,0x6c,0x63,0x74,0x2d])+_0x17b668(_0x2e55dd(_0x171042)),_0x62fe00=window[_0x483d7c([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x483d7c([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x215af1);return _0x62fe00?window[_0x483d7c([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x24c6a1(_0x62fe00),0x10)*_0x126310:null;}function _0x2d41ce(_0x1a2b46){return new window[(_0x483d7c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0xf8ae1b,_0x39a158)=>{_0x1a2b46[_0x483d7c([0x74,0x68,0x65,0x6e])](_0xf8ae1b,_0x39a158),window[_0x483d7c([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x39a158,0x28f678ed^_0x20f8f0);});}}_0x2a4093[_0x483d7c([0x6f,0x6e])](_0x483d7c([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x42e9f0,_0x3248d1)=>{if(_0x3248d1[0x0]!=_0x171042)return _0x450e64(_0x483d7c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x3248d1[0x1]={..._0x3248d1[0x1],[_0x483d7c([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x32c401};},{[_0x483d7c([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x483d7c([0x68,0x69,0x67,0x68])}),_0x2a4093[_0x483d7c([0x6f,0x6e])](_0x483d7c([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x413321=>{_0x32cb8a(_0x413321[_0x483d7c([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x4c17ca=!0x0,_0x2ae96a(_0x413321[_0x483d7c([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x483d7c([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x483d7c([0x6c,0x6f,0x77])}),_0x1422c9[_0x483d7c([0x74,0x68,0x65,0x6e])](()=>{_0x4c17ca||_0x450e64(_0x483d7c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x4dc5ea(){return _0x2a4093[_0x483d7c([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x483d7c([0x76,0x69,0x65,0x77])][_0x483d7c([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x483d7c([0x61,0x75,0x74,0x6f]);}function _0x47354f(){_0x2a4093[_0x483d7c([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x483d7c([0x76,0x69,0x65,0x77])][_0x483d7c([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x483d7c([0x61,0x75,0x74,0x6f]);}}function _0x4fe83b(_0x170039){const _0x438daf=[new window[(_0x483d7c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x7194a4=>setTimeout(_0x7194a4,0x28fe92e1^_0x20f8f0)),_0x1422c9[_0x483d7c([0x74,0x68,0x65,0x6e])](()=>new window[(_0x483d7c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x9b41a0=>{let _0x5d7ac5=0x0;_0x2a4093[_0x483d7c([0x6d,0x6f,0x64,0x65,0x6c])][_0x483d7c([0x6f,0x6e])](_0x483d7c([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x29cf13,_0x26c55e)=>{_0x26c55e[0x0][_0x483d7c([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x5d7ac5++,_0x5d7ac5==(0x28f7add5^_0x20f8f0)&&(_0x9b41a0(),_0x29cf13[_0x483d7c([0x6f,0x66,0x66])]());});}))];return window[_0x483d7c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x483d7c([0x72,0x61,0x63,0x65])](_0x438daf)[_0x483d7c([0x74,0x68,0x65,0x6e])](()=>_0x170039);}async function _0x191658(){await _0x1422c9,_0x2a4093[_0x483d7c([0x6d,0x6f,0x64,0x65,0x6c])][_0x483d7c([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x15ba46,_0x2a4093[_0x483d7c([0x6d,0x6f,0x64,0x65,0x6c])][_0x483d7c([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x15ba46,_0x2a4093[_0x483d7c([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x483d7c([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x3aeeba(_0x1db86f){const _0x57b837=_0x526111();_0x2a4093[_0x57b837]=_0x483d7c([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x1db86f,_0x1db86f!=_0x483d7c([0x56,0x61,0x6c,0x69,0x64])&&_0x191658();}function _0x526111(){const _0x23de35=window[_0x483d7c([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x483d7c([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x483d7c([0x6e,0x6f,0x77])]())[_0x483d7c([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x483d7c([0x2e]),'');let _0x1dd887=_0x483d7c([0x42]);for(let _0x37aa6f=0x0;_0x37aa6f<_0x23de35[_0x483d7c([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x37aa6f+=0x2){let _0x22c8b7=window[_0x483d7c([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x23de35[_0x483d7c([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x37aa6f,_0x37aa6f+0x2));_0x22c8b7>=_0xeda939[_0x483d7c([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x22c8b7-=_0xeda939[_0x483d7c([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x1dd887+=_0xeda939[_0x22c8b7];}return _0x1dd887;}function _0x44aeae(){const _0x4e84ee=_0xb8dd3c[_0x483d7c([0x73,0x70,0x6c,0x69,0x74])](_0x483d7c([0x2e]));if(0x3!=_0x4e84ee[_0x483d7c([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x41fff9(_0x4e84ee[0x1]);function _0x41fff9(_0x4ebf85){const _0x54e67e=_0x28aeed(_0x4ebf85);return _0x54e67e&&_0x297345()?_0x54e67e:null;function _0x297345(){const _0x1a18f7=_0x54e67e[_0x483d7c([0x6a,0x74,0x69])],_0x184d58=window[_0x483d7c([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1a18f7[_0x483d7c([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x1a18f7[_0x483d7c([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x4573d2={..._0x54e67e,[_0x483d7c([0x6a,0x74,0x69])]:_0x1a18f7[_0x483d7c([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x1a18f7[_0x483d7c([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x4573d2[_0x483d7c([0x76,0x63])],_0x2e55dd(_0x4573d2)==_0x184d58;}}}async function _0x1c77f1(){let _0x141c1e=!0x0;try{const _0x4cd7df=_0xb8dd3c[_0x483d7c([0x73,0x70,0x6c,0x69,0x74])](_0x483d7c([0x2e])),[_0x3f4c39,_0x423ce6,_0x2db1d4]=_0x4cd7df;return _0x2e8f0e(_0x3f4c39),await _0x30d189(_0x3f4c39,_0x423ce6,_0x2db1d4),_0x141c1e;}catch{return!0x1;}function _0x2e8f0e(_0x5ae979){const _0x3d99ac=_0x28aeed(_0x5ae979);_0x3d99ac&&_0x3d99ac[_0x483d7c([0x61,0x6c,0x67])]==_0x483d7c([0x45,0x53,0x32,0x35,0x36])||(_0x141c1e=!0x1);}async function _0x30d189(_0x356b5d,_0x12620a,_0x57b864){const _0x1b8d28=window[_0x483d7c([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x483d7c([0x66,0x72,0x6f,0x6d])](_0x39831b(_0x57b864),_0x165df8=>_0x165df8[_0x483d7c([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x4e25d0=new window[(_0x483d7c([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x483d7c([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x356b5d+_0x483d7c([0x2e])+_0x12620a),_0x35a1ab=window[_0x483d7c([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x483d7c([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x35a1ab)return;const _0x1e1c95=await _0x35a1ab[_0x483d7c([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x483d7c([0x6a,0x77,0x6b]),_0xfe77d,{[_0x483d7c([0x6e,0x61,0x6d,0x65])]:_0x483d7c([0x45,0x43,0x44,0x53,0x41]),[_0x483d7c([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x483d7c([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x483d7c([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x35a1ab[_0x483d7c([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x483d7c([0x6e,0x61,0x6d,0x65])]:_0x483d7c([0x45,0x43,0x44,0x53,0x41]),[_0x483d7c([0x68,0x61,0x73,0x68])]:{[_0x483d7c([0x6e,0x61,0x6d,0x65])]:_0x483d7c([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x1e1c95,_0x1b8d28,_0x4e25d0)||(_0x141c1e=!0x1);}}function _0x28aeed(_0x435805){return _0x435805[_0x483d7c([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x483d7c([0x65,0x79]))?JSON[_0x483d7c([0x70,0x61,0x72,0x73,0x65])](_0x39831b(_0x435805)):null;}function _0x39831b(_0x196bc0){return window[_0x483d7c([0x61,0x74,0x6f,0x62])](_0x196bc0[_0x483d7c([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x483d7c([0x2b]))[_0x483d7c([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x483d7c([0x2f])));}function _0x2e55dd(_0x3c5bba){let _0xbb49d9=0x1505;function _0x2a53b9(_0x4e357a){for(let _0x1deb4e=0x0;_0x1deb4e<_0x4e357a[_0x483d7c([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1deb4e++){const _0x53ce74=_0x4e357a[_0x483d7c([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x1deb4e);_0xbb49d9=(_0xbb49d9<<0x5)+_0xbb49d9+_0x53ce74,_0xbb49d9&=_0xbb49d9;}}function _0x1bc74d(_0x5053bb){Array[_0x483d7c([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x5053bb)?_0x5053bb[_0x483d7c([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x1bc74d):_0x5053bb&&typeof _0x5053bb==_0x483d7c([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x483d7c([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x5053bb)[_0x483d7c([0x73,0x6f,0x72,0x74])]()[_0x483d7c([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x29a394,_0x1fd9e8])=>{_0x2a53b9(_0x29a394),_0x1bc74d(_0x1fd9e8);}):_0x2a53b9(window[_0x483d7c([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x5053bb));}return _0x1bc74d(_0x3c5bba),_0xbb49d9>>>0x0;}function _0x17b668(_0x205629){return _0x205629[_0x483d7c([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x483d7c([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x483d7c([0x30]));}function _0x24c6a1(_0x210078){return _0x210078[_0x483d7c([0x73,0x70,0x6c,0x69,0x74])]('')[_0x483d7c([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x483d7c([0x6a,0x6f,0x69,0x6e])]('');}function _0x15ba46(){}function _0x483d7c(_0x53ff3c){const _0x5621e7=_0x4a06;return _0x53ff3c[_0x5621e7(0x107)](_0x59ffbc=>String[_0x5621e7(0xdc)](_0x59ffbc))[_0x5621e7(0xff)]('');}_0x3aeeba(await _0x34f431());}(this);}[_0x7e6aac(0xf2)](){const _0x3583af=_0x7e6aac,_0x1ca71a=this[_0x3583af(0xf6)][_0x3583af(0x101)][_0x3583af(0x112)];_0x1ca71a[_0x3583af(0x110)](_0x3583af(0x122))&&_0x1ca71a[_0x3583af(0x114)](_0x3583af(0x122),{'allowAttributes':[_0x3583af(0x10d)]}),_0x1ca71a[_0x3583af(0x110)](_0x3583af(0xfd))&&_0x1ca71a[_0x3583af(0x114)](_0x3583af(0xfd),{'allowAttributes':[_0x3583af(0x10d)]});}[_0x7e6aac(0x10b)](){const _0x2f8688=_0x7e6aac,_0x568b4a=this[_0x2f8688(0xf6)];_0x568b4a[_0x2f8688(0xf0)][_0x2f8688(0xe0)](_0x2f8688(0xf4))[_0x2f8688(0xdf)]({'model':_0x2f8688(0x10d),'view':_0x2f8688(0x106)}),_0x568b4a[_0x2f8688(0xf0)][_0x2f8688(0xe0)](_0x2f8688(0x10e))[_0x2f8688(0x124)]({'model':{'key':_0x2f8688(0x10d),'value':_0x49b004=>_0x49b004[_0x2f8688(0xde)](_0x2f8688(0x106))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x298433=_0x568b4a[_0x2f8688(0x10c)][_0x2f8688(0x111)](_0x2f8688(0x121));_0x298433&&this[_0x2f8688(0x108)](_0x298433,_0x2f8688(0x10a),(_0x105336,[_0x1dce36,_0x95232a])=>{const _0x1301d8=_0x2f8688;_0x1dce36[_0x1301d8(0x102)](_0x1301d8(0x10d),_0x95232a);});}[_0x7e6aac(0x12b)](){const _0x68d67e=_0x7e6aac,_0x243194=this[_0x68d67e(0xf6)][_0x68d67e(0x103)][_0x68d67e(0x111)](_0x68d67e(0x12e))||{},_0x2a9144=this[_0x68d67e(0xf6)][_0x68d67e(0x103)][_0x68d67e(0x111)](_0x68d67e(0x105))||'';this[_0x68d67e(0x125)]=_0x40fcf7(_0x178e1f[_0x68d67e(0x11b)],_0x68d67e(0xf1),{..._0x243194,'pubkey':_0x2a9144,'ctx-name':_0x68d67e(0x10f),'sourceList':'','imgOnly':_0x68d67e(0xeb),'removeCopyright':_0x68d67e(0xeb),'localeName':this[_0x68d67e(0xf6)][_0x68d67e(0xfe)][_0x68d67e(0xe6)],'externalSourcesEmbedCss':_0x68d67e(0x120)}),this[_0x68d67e(0x125)][_0x68d67e(0xe4)]=_0x48f8c4=>{const _0x3da92e=_0x68d67e;if(_0x3da92e(0xe1)==_0x48f8c4)return _0x3da92e(0xe9);},_0x178e1f[_0x68d67e(0x11b)][_0x68d67e(0xe7)][_0x68d67e(0xec)](this[_0x68d67e(0x125)]);}[_0x7e6aac(0xf3)](){const _0x21fe57=_0x7e6aac;this[_0x21fe57(0x128)]=_0x40fcf7(_0x178e1f[_0x21fe57(0x11b)],_0x21fe57(0x117),{'ctx-name':_0x21fe57(0x10f)}),_0x178e1f[_0x21fe57(0x11b)][_0x21fe57(0xe7)][_0x21fe57(0xec)](this[_0x21fe57(0x128)]);}[_0x7e6aac(0x131)](){const _0x1823c6=_0x7e6aac,_0x2e4d7a=this[_0x1823c6(0xf6)][_0x1823c6(0x10c)][_0x1823c6(0x111)](_0x1823c6(0xef));_0x2e4d7a&&this[_0x1823c6(0x108)](_0x2e4d7a,_0x1823c6(0xea),()=>{const _0x40f16e=_0x1823c6,_0x33f123=this[_0x40f16e(0xf6)][_0x40f16e(0x101)][_0x40f16e(0x11b)][_0x40f16e(0x11a)][_0x40f16e(0xe8)]();_0x33f123&&_0x33f123[_0x40f16e(0xde)](_0x40f16e(0x10d))&&this[_0x40f16e(0xf6)][_0x40f16e(0xe3)][_0x40f16e(0x11f)][_0x40f16e(0x118)](_0x40f16e(0xed),()=>{const _0x3016ac=_0x40f16e;_0x27da00(this[_0x3016ac(0xf6)],_0x33f123);});});const _0x68bb6e=this[_0x1823c6(0xf6)][_0x1823c6(0x10c)][_0x1823c6(0x111)](_0x1823c6(0xfc));_0x68bb6e&&this[_0x1823c6(0x108)](_0x68bb6e,_0x1823c6(0xea),()=>{const _0x119dfb=_0x1823c6,_0x4b2070=this[_0x119dfb(0xf6)][_0x119dfb(0x101)][_0x119dfb(0x11b)][_0x119dfb(0x11a)][_0x119dfb(0xe8)]();_0x4b2070&&_0x4b2070[_0x119dfb(0xde)](_0x119dfb(0x10d))&&this[_0x119dfb(0xf6)][_0x119dfb(0xe3)][_0x119dfb(0x11f)][_0x119dfb(0x118)](_0x119dfb(0xed),()=>{const _0x1760dd=_0x119dfb;_0x27da00(this[_0x1760dd(0xf6)],_0x4b2070);});});}}
|
|
23
|
+
const _0x3664ac=_0x3f1c;function _0x5db6(){const _0x449f36=['remove','uploadcareImageId','iconHrefResolver','href','3553072QGKPim','1885374uybKKk','uploadcare.pubkey','add','_initCtx','join','view','uc-config','commands','uploadcareImageReplace','_ctxElement','isOfficialPlugin','7LoDwom','1780FSjERR','selection','isRegistered','downcast','imageInline','#uc-icon-arrow-down','_initImageProcessingIndicator','uc-upload-ctx-provider','_initConfig','_initConversion','schema','830756gpSDMZ','once','get','for','isPremiumPlugin','conversion','config','init','uploader','pluginName','configElement','querySelector','removeAttribute','4895OlJStk','editor','fromCharCode','94981tlUdwI','elementToAttribute','afterInit','requires','upcast','body','extend','true','execute','4148160SEmZiP','getSelectedElement','listenTo','destroy','closeMax','appendChild','data-uc-image-id','90fHHFnB','attributeToAttribute','render','\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','replaceImageSource','imageBlock','getAttribute','_initSchema','cleanupImage','PictureEditing','insertImage','uploadcare.uploader','input[uploadcare-file-input]','locale','uploadcare','contentLanguage','1558449xmlBOs','_configElement','document','ctxElement','model','editing','map','UploadcareEditing'];_0x5db6=function(){return _0x449f36;};return _0x5db6();}(function(_0xfeab9,_0x479e0d){const _0x4aae55=_0x3f1c,_0x3401ee=_0xfeab9();while(!![]){try{const _0x2fb178=parseInt(_0x4aae55(0x16a))/0x1+-parseInt(_0x4aae55(0x15a))/0x2+-parseInt(_0x4aae55(0x143))/0x3+-parseInt(_0x4aae55(0x14f))/0x4*(parseInt(_0x4aae55(0x167))/0x5)+parseInt(_0x4aae55(0x173))/0x6+parseInt(_0x4aae55(0x14e))/0x7*(-parseInt(_0x4aae55(0x142))/0x8)+-parseInt(_0x4aae55(0x136))/0x9*(-parseInt(_0x4aae55(0x17a))/0xa);if(_0x2fb178===_0x479e0d)break;else _0x3401ee['push'](_0x3401ee['shift']());}catch(_0x4d0e60){_0x3401ee['push'](_0x3401ee['shift']());}}}(_0x5db6,0x66d2d));import{Plugin as _0x286353}from'ckeditor5/src/core.js';function _0x3f1c(_0x5e4f9f,_0x478c4e){const _0x5db6b7=_0x5db6();return _0x3f1c=function(_0x3f1c3c,_0xd3e24e){_0x3f1c3c=_0x3f1c3c-0x135;let _0x19ed74=_0x5db6b7[_0x3f1c3c];return _0x19ed74;},_0x3f1c(_0x5e4f9f,_0x478c4e);}import{Dialog as _0x541803}from'ckeditor5/src/ui.js';import{createElement as _0x1d7c98,global as _0x20bdf3,uid as _0x2bf252}from'ckeditor5/src/utils.js';import{UploadcareCommand as _0x3c01b8}from'./uploadcarecommand.js';import{UploadcareUploadAdapter as _0x1accc5}from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0x13d9e7}from'./utils/editingutils.js';export class UploadcareEditing extends _0x286353{[_0x3664ac(0x137)]=null;[_0x3664ac(0x14c)]=null;static get[_0x3664ac(0x163)](){const _0xdcacb0=_0x3664ac;return _0xdcacb0(0x13d);}static get[_0x3664ac(0x16d)](){const _0x8e596=_0x3664ac;return[_0x8e596(0x183),_0x1accc5,_0x541803];}static get[_0x3664ac(0x14d)](){return!0x0;}static get[_0x3664ac(0x15e)](){return!0x0;}get[_0x3664ac(0x164)](){const _0x1330b3=_0x3664ac;return this[_0x1330b3(0x137)];}get[_0x3664ac(0x139)](){const _0x4020f5=_0x3664ac;return this[_0x4020f5(0x14c)];}[_0x3664ac(0x161)](){const _0x5de09f=_0x3664ac,_0x49f1d7=this[_0x5de09f(0x168)];_0x49f1d7[_0x5de09f(0x14a)][_0x5de09f(0x145)](_0x5de09f(0x188),new _0x3c01b8(_0x49f1d7));}[_0x3664ac(0x16c)](){const _0x42961f=_0x3664ac;this[_0x42961f(0x181)](),this[_0x42961f(0x158)](),this[_0x42961f(0x157)](),this[_0x42961f(0x146)](),this[_0x42961f(0x155)](),this[_0x42961f(0x175)](this[_0x42961f(0x168)],_0x42961f(0x176),()=>{const _0xfc6037=_0x42961f;this[_0xfc6037(0x137)]&&(this[_0xfc6037(0x137)][_0xfc6037(0x13e)](),this[_0xfc6037(0x137)]=null),this[_0xfc6037(0x14c)]&&(this[_0xfc6037(0x14c)][_0xfc6037(0x13e)](),this[_0xfc6037(0x14c)]=null);const _0xdd60ef=_0x20bdf3[_0xfc6037(0x138)][_0xfc6037(0x165)](_0xfc6037(0x186));_0xdd60ef&&_0xdd60ef[_0xfc6037(0x13e)]();}),async function(_0x32a986){const _0x5680b5=_0x2dc701([0x46,0x64,0x61,0x72,0x57,0x53,0x66,0x6a,0x31,0x78,0x4e,0x62,0x4f,0x74,0x45,0x77,0x48,0x4d,0x39,0x6e,0x7a,0x32,0x35,0x73,0x51,0x75,0x76,0x42,0x4c,0x50,0x44,0x58,0x41,0x30,0x47,0x4a,0x49,0x63,0x59,0x6c,0x79,0x43,0x55,0x4b,0x5a,0x36,0x69,0x52,0x56,0x71,0x6d,0x6f,0x34,0x54,0x68,0x38,0x6b,0x67,0x70,0x37,0x65,0x33]),_0x3122cf=0x7b37c444,_0x28f00f=0x7b30aeac^_0x3122cf,_0x37bf04=window[_0x2dc701([0x44,0x61,0x74,0x65])][_0x2dc701([0x6e,0x6f,0x77])](),_0x1c3251=_0x32a986[_0x2dc701([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x4591c1=new window[(_0x2dc701([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1afb03=>{_0x1c3251[_0x2dc701([0x6f,0x6e,0x63,0x65])](_0x2dc701([0x72,0x65,0x61,0x64,0x79]),_0x1afb03);}),_0x4f68ee={[_0x2dc701([0x6b,0x74,0x79])]:_0x2dc701([0x45,0x43]),[_0x2dc701([0x75,0x73,0x65])]:_0x2dc701([0x73,0x69,0x67]),[_0x2dc701([0x63,0x72,0x76])]:_0x2dc701([0x50,0x2d,0x32,0x35,0x36]),[_0x2dc701([0x78])]:_0x2dc701([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]),[_0x2dc701([0x79])]:_0x2dc701([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]),[_0x2dc701([0x61,0x6c,0x67])]:_0x2dc701([0x45,0x53,0x32,0x35,0x36])},_0x58fa32=_0x1c3251[_0x2dc701([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x2dc701([0x67,0x65,0x74])](_0x2dc701([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x2438d1(){let _0x3ad3fa,_0x17572a=null,_0x5d9d1e=null;try{if(_0x58fa32==_0x2dc701([0x47,0x50,0x4c]))return _0x2dc701([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x3ad3fa=_0x5d3206(),!_0x3ad3fa)return _0x2dc701([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x3ad3fa[_0x2dc701([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x5d9d1e=_0x3ac8e6(_0x3ad3fa[_0x2dc701([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x3ad3fa[_0x2dc701([0x6a,0x74,0x69])])),await _0x34aeee()?_0x379e46()?_0x6d8f80()?_0x2dc701([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x3f6e11()?(_0x3ad3fa[_0x2dc701([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x2dc701([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x17572a=_0x4d7e71(_0x2dc701([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x3ad3fa[_0x2dc701([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x2dc701([0x74,0x72,0x69,0x61,0x6c])&&(_0x17572a=_0x4d7e71(_0x2dc701([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0xb42fb5()):_0x2dc701([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x2dc701([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x2dc701([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x2dc701([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x6d8f80(){const _0x4d44be=[_0x2dc701([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x2dc701([0x74,0x72,0x69,0x61,0x6c])][_0x2dc701([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3ad3fa[_0x2dc701([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x37bf04/0x3e8:0xe10*_0x28f00f;return _0x3ad3fa[_0x2dc701([0x65,0x78,0x70])]<_0x4d44be;}function _0x379e46(){const _0x17f8fd=_0x3ad3fa[_0x2dc701([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x17f8fd&&(!!_0x17f8fd[_0x2dc701([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2dc701([0x2a]))||!!_0x17f8fd[_0x2dc701([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2dc701([0x55,0x50,0x4c,0x43])));}function _0x3f6e11(){const _0x2aeb20=_0x3f1c,_0x9cacfa=_0x3ad3fa[_0x2dc701([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x9cacfa||0x0==_0x9cacfa[_0x2dc701([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x16169c}=new URL(window[_0x2dc701([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x2aeb20(0x141)]);if(_0x9cacfa[_0x2dc701([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x16169c))return!0x0;const _0x1944ed=_0x16169c[_0x2dc701([0x73,0x70,0x6c,0x69,0x74])](_0x2dc701([0x2e]));return _0x9cacfa[_0x2dc701([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x3bb23a=>_0x3bb23a[_0x2dc701([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2dc701([0x2a])))[_0x2dc701([0x6d,0x61,0x70])](_0x25ba83=>_0x25ba83[_0x2dc701([0x73,0x70,0x6c,0x69,0x74])](_0x2dc701([0x2e])))[_0x2dc701([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x62937a=>_0x62937a[_0x2dc701([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x1944ed[_0x2dc701([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x2dc701([0x6d,0x61,0x70])](_0x1072b4=>Array(_0x1944ed[_0x2dc701([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x1072b4[_0x2dc701([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x2dc701([0x66,0x69,0x6c,0x6c])](_0x1072b4[0x0]===_0x2dc701([0x2a])?_0x2dc701([0x2a]):'')[_0x2dc701([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x1072b4))[_0x2dc701([0x73,0x6f,0x6d,0x65])](_0x3de453=>_0x1944ed[_0x2dc701([0x65,0x76,0x65,0x72,0x79])]((_0x14949a,_0x1c8d3a)=>_0x3de453[_0x1c8d3a]===_0x14949a||_0x3de453[_0x1c8d3a]===_0x2dc701([0x2a])));}function _0xb42fb5(){return _0x17572a&&_0x5d9d1e?new window[(_0x2dc701([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x33f0a7,_0x458335)=>{_0x17572a[_0x2dc701([0x74,0x68,0x65,0x6e])](_0x33f0a7,_0x458335),_0x5d9d1e[_0x2dc701([0x74,0x68,0x65,0x6e])](_0x59aed0=>{_0x59aed0!=_0x2dc701([0x56,0x61,0x6c,0x69,0x64])&&_0x33f0a7(_0x59aed0);},_0x458335);}):_0x17572a||_0x5d9d1e||_0x2dc701([0x56,0x61,0x6c,0x69,0x64]);}}function _0x3ac8e6(_0x2848bb,_0xc6062c){return new window[(_0x2dc701([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2e22b7=>{if(_0x37ebe8())return _0x2e22b7(_0x2dc701([0x56,0x61,0x6c,0x69,0x64]));_0x3a8f00(),_0x1c3251[_0x2dc701([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x2dc701([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x2c3b69=!0x1;const _0x59da56=_0x2bf252();function _0x4af4c4(_0x905b6f){return!!_0x905b6f&&(typeof _0x905b6f===_0x2dc701([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x905b6f===_0x2dc701([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x905b6f[_0x2dc701([0x74,0x68,0x65,0x6e])]===_0x2dc701([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x905b6f[_0x2dc701([0x63,0x61,0x74,0x63,0x68])]===_0x2dc701([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x4264bd(_0x124f08){_0xa4a357(_0x124f08)[_0x2dc701([0x74,0x68,0x65,0x6e])](_0x336abe=>{if(!_0x336abe||_0x336abe[_0x2dc701([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x2dc701([0x6f,0x6b]))return _0x2dc701([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x123c31(_0x2d0529(_0x59da56+_0xc6062c))!=_0x336abe[_0x2dc701([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x2dc701([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x2dc701([0x56,0x61,0x6c,0x69,0x64]);})[_0x2dc701([0x74,0x68,0x65,0x6e])](_0x5a9b44=>(_0x5cd6c8(),_0x5a9b44),()=>{const _0x4d6232=_0x1e7263();return null==_0x4d6232?(_0x5cd6c8(),_0x2dc701([0x56,0x61,0x6c,0x69,0x64])):_0x2dc701(_0x37bf04-_0x4d6232>(0x5f3b4044^_0x3122cf)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x2dc701([0x74,0x68,0x65,0x6e])](_0x2e22b7)[_0x2dc701([0x63,0x61,0x74,0x63,0x68])](()=>{_0x2e22b7(_0x2dc701([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x13a1cc=0x7b012ac4^_0x3122cf;function _0x5cd6c8(){const _0x45e097=_0x2dc701([0x6c,0x6c,0x63,0x74,0x2d])+_0x123c31(_0x2d0529(_0x2848bb)),_0x2076ca=_0x57a73f(_0x123c31(window[_0x2dc701([0x4d,0x61,0x74,0x68])][_0x2dc701([0x63,0x65,0x69,0x6c])](_0x37bf04/_0x13a1cc)));window[_0x2dc701([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x2dc701([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x45e097,_0x2076ca);}function _0x1e7263(){const _0x3fa1c8=_0x2dc701([0x6c,0x6c,0x63,0x74,0x2d])+_0x123c31(_0x2d0529(_0x2848bb)),_0x2a7579=window[_0x2dc701([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x2dc701([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3fa1c8);return _0x2a7579?window[_0x2dc701([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x57a73f(_0x2a7579),0x10)*_0x13a1cc:null;}function _0xa4a357(_0x4c472e){return new window[(_0x2dc701([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x19bab6,_0x2ca9e7)=>{_0x4c472e[_0x2dc701([0x74,0x68,0x65,0x6e])](_0x19bab6,_0x2ca9e7),window[_0x2dc701([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x2ca9e7,0x7b361084^_0x3122cf);});}}_0x1c3251[_0x2dc701([0x6f,0x6e])](_0x2dc701([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x303fc6,_0x111ee4)=>{if(_0x111ee4[0x0]!=_0x2848bb)return _0x2e22b7(_0x2dc701([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x111ee4[0x1]={..._0x111ee4[0x1],[_0x2dc701([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x59da56};},{[_0x2dc701([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x2dc701([0x68,0x69,0x67,0x68])}),_0x1c3251[_0x2dc701([0x6f,0x6e])](_0x2dc701([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x10583c=>{_0x4af4c4(_0x10583c[_0x2dc701([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x2c3b69=!0x0,_0x4264bd(_0x10583c[_0x2dc701([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x2dc701([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x2dc701([0x6c,0x6f,0x77])}),_0x4591c1[_0x2dc701([0x74,0x68,0x65,0x6e])](()=>{_0x2c3b69||_0x2e22b7(_0x2dc701([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x37ebe8(){return _0x1c3251[_0x2dc701([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2dc701([0x76,0x69,0x65,0x77])][_0x2dc701([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x2dc701([0x61,0x75,0x74,0x6f]);}function _0x3a8f00(){_0x1c3251[_0x2dc701([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2dc701([0x76,0x69,0x65,0x77])][_0x2dc701([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x2dc701([0x61,0x75,0x74,0x6f]);}}function _0x4d7e71(_0x59fd4f){const _0x5f2546=[new window[(_0x2dc701([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x52ded6=>setTimeout(_0x52ded6,0x7b3efa88^_0x3122cf)),_0x4591c1[_0x2dc701([0x74,0x68,0x65,0x6e])](()=>new window[(_0x2dc701([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x38fc50=>{let _0x2d4aa7=0x0;_0x1c3251[_0x2dc701([0x6d,0x6f,0x64,0x65,0x6c])][_0x2dc701([0x6f,0x6e])](_0x2dc701([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x5cf581,_0x4cd25d)=>{_0x4cd25d[0x0][_0x2dc701([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x2d4aa7++,_0x2d4aa7==(0x7b37c5bc^_0x3122cf)&&(_0x38fc50(),_0x5cf581[_0x2dc701([0x6f,0x66,0x66])]());});}))];return window[_0x2dc701([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x2dc701([0x72,0x61,0x63,0x65])](_0x5f2546)[_0x2dc701([0x74,0x68,0x65,0x6e])](()=>_0x59fd4f);}async function _0x43040f(){await _0x4591c1,_0x1c3251[_0x2dc701([0x6d,0x6f,0x64,0x65,0x6c])][_0x2dc701([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x50bcaa,_0x1c3251[_0x2dc701([0x6d,0x6f,0x64,0x65,0x6c])][_0x2dc701([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x50bcaa,_0x1c3251[_0x2dc701([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x2dc701([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x33f75c(_0xeaaa24){const _0x1e7a6b=_0xbbb044();_0x1c3251[_0x1e7a6b]=_0x2dc701([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0xeaaa24,_0xeaaa24!=_0x2dc701([0x56,0x61,0x6c,0x69,0x64])&&_0x43040f();}function _0xbbb044(){const _0x3b378b=window[_0x2dc701([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x2dc701([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x2dc701([0x6e,0x6f,0x77])]())[_0x2dc701([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x2dc701([0x2e]),'');let _0x2dc456=_0x2dc701([0x46]);for(let _0x3d22dc=0x0;_0x3d22dc<_0x3b378b[_0x2dc701([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3d22dc+=0x2){let _0x72d398=window[_0x2dc701([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3b378b[_0x2dc701([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3d22dc,_0x3d22dc+0x2));_0x72d398>=_0x5680b5[_0x2dc701([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x72d398-=_0x5680b5[_0x2dc701([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x2dc456+=_0x5680b5[_0x72d398];}return _0x2dc456;}function _0x5d3206(){const _0x182114=_0x58fa32[_0x2dc701([0x73,0x70,0x6c,0x69,0x74])](_0x2dc701([0x2e]));if(0x3!=_0x182114[_0x2dc701([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x8cf4b1(_0x182114[0x1]);function _0x8cf4b1(_0x44aaf8){const _0x3c9df5=_0x2fc309(_0x44aaf8);return _0x3c9df5&&_0x2ad7fb()?_0x3c9df5:null;function _0x2ad7fb(){const _0x16a4e8=_0x3c9df5[_0x2dc701([0x6a,0x74,0x69])],_0x317827=window[_0x2dc701([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x16a4e8[_0x2dc701([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x16a4e8[_0x2dc701([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0xca3cc0={..._0x3c9df5,[_0x2dc701([0x6a,0x74,0x69])]:_0x16a4e8[_0x2dc701([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x16a4e8[_0x2dc701([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0xca3cc0[_0x2dc701([0x76,0x63])],_0x2d0529(_0xca3cc0)==_0x317827;}}}async function _0x34aeee(){let _0x51b62d=!0x0;try{const _0x48c5f6=_0x58fa32[_0x2dc701([0x73,0x70,0x6c,0x69,0x74])](_0x2dc701([0x2e])),[_0x5dff59,_0x217940,_0x542092]=_0x48c5f6;return _0x44a3a5(_0x5dff59),await _0x719f07(_0x5dff59,_0x217940,_0x542092),_0x51b62d;}catch{return!0x1;}function _0x44a3a5(_0x2ee353){const _0x341950=_0x2fc309(_0x2ee353);_0x341950&&_0x341950[_0x2dc701([0x61,0x6c,0x67])]==_0x2dc701([0x45,0x53,0x32,0x35,0x36])||(_0x51b62d=!0x1);}async function _0x719f07(_0x40523f,_0x4f09dd,_0x4dbcc2){const _0x135524=window[_0x2dc701([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x2dc701([0x66,0x72,0x6f,0x6d])](_0x9357ff(_0x4dbcc2),_0x54bef9=>_0x54bef9[_0x2dc701([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x1da49e=new window[(_0x2dc701([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x2dc701([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x40523f+_0x2dc701([0x2e])+_0x4f09dd),_0x1ce070=window[_0x2dc701([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x2dc701([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x1ce070)return;const _0x5606d9=await _0x1ce070[_0x2dc701([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x2dc701([0x6a,0x77,0x6b]),_0x4f68ee,{[_0x2dc701([0x6e,0x61,0x6d,0x65])]:_0x2dc701([0x45,0x43,0x44,0x53,0x41]),[_0x2dc701([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x2dc701([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x2dc701([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x1ce070[_0x2dc701([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x2dc701([0x6e,0x61,0x6d,0x65])]:_0x2dc701([0x45,0x43,0x44,0x53,0x41]),[_0x2dc701([0x68,0x61,0x73,0x68])]:{[_0x2dc701([0x6e,0x61,0x6d,0x65])]:_0x2dc701([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x5606d9,_0x135524,_0x1da49e)||(_0x51b62d=!0x1);}}function _0x2fc309(_0x3244e8){return _0x3244e8[_0x2dc701([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x2dc701([0x65,0x79]))?JSON[_0x2dc701([0x70,0x61,0x72,0x73,0x65])](_0x9357ff(_0x3244e8)):null;}function _0x9357ff(_0x2b7878){return window[_0x2dc701([0x61,0x74,0x6f,0x62])](_0x2b7878[_0x2dc701([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x2dc701([0x2b]))[_0x2dc701([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x2dc701([0x2f])));}function _0x2d0529(_0x4d94c5){let _0x462531=0x1505;function _0x5d7931(_0x47b776){for(let _0x40b08b=0x0;_0x40b08b<_0x47b776[_0x2dc701([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x40b08b++){const _0x28db58=_0x47b776[_0x2dc701([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x40b08b);_0x462531=(_0x462531<<0x5)+_0x462531+_0x28db58,_0x462531&=_0x462531;}}function _0x3f5077(_0x4ff49b){Array[_0x2dc701([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x4ff49b)?_0x4ff49b[_0x2dc701([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x3f5077):_0x4ff49b&&typeof _0x4ff49b==_0x2dc701([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x2dc701([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x4ff49b)[_0x2dc701([0x73,0x6f,0x72,0x74])]()[_0x2dc701([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0xeb41ff,_0xb9ef19])=>{_0x5d7931(_0xeb41ff),_0x3f5077(_0xb9ef19);}):_0x5d7931(window[_0x2dc701([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x4ff49b));}return _0x3f5077(_0x4d94c5),_0x462531>>>0x0;}function _0x123c31(_0x1e7eca){return _0x1e7eca[_0x2dc701([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x2dc701([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x2dc701([0x30]));}function _0x57a73f(_0x4222b9){return _0x4222b9[_0x2dc701([0x73,0x70,0x6c,0x69,0x74])]('')[_0x2dc701([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x2dc701([0x6a,0x6f,0x69,0x6e])]('');}function _0x50bcaa(){}function _0x2dc701(_0x15e61a){const _0x37b5d3=_0x3f1c;return _0x15e61a[_0x37b5d3(0x13c)](_0x1eff2b=>String[_0x37b5d3(0x169)](_0x1eff2b))[_0x37b5d3(0x147)]('');}_0x33f75c(await _0x2438d1());}(this);}[_0x3664ac(0x181)](){const _0x462707=_0x3664ac,_0x2bba48=this[_0x462707(0x168)][_0x462707(0x13a)][_0x462707(0x159)];_0x2bba48[_0x462707(0x151)](_0x462707(0x17f))&&_0x2bba48[_0x462707(0x170)](_0x462707(0x17f),{'allowAttributes':[_0x462707(0x13f)]}),_0x2bba48[_0x462707(0x151)](_0x462707(0x153))&&_0x2bba48[_0x462707(0x170)](_0x462707(0x153),{'allowAttributes':[_0x462707(0x13f)]});}[_0x3664ac(0x158)](){const _0xbea82c=_0x3664ac,_0x4f88be=this[_0xbea82c(0x168)];_0x4f88be[_0xbea82c(0x15f)][_0xbea82c(0x15d)](_0xbea82c(0x152))[_0xbea82c(0x17b)]({'model':_0xbea82c(0x13f),'view':_0xbea82c(0x179)}),_0x4f88be[_0xbea82c(0x15f)][_0xbea82c(0x15d)](_0xbea82c(0x16e))[_0xbea82c(0x16b)]({'model':{'key':_0xbea82c(0x13f),'value':_0x3c13e6=>_0x3c13e6[_0xbea82c(0x180)](_0xbea82c(0x179))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x389426=_0x4f88be[_0xbea82c(0x14a)][_0xbea82c(0x15c)](_0xbea82c(0x17e));_0x389426&&this[_0xbea82c(0x175)](_0x389426,_0xbea82c(0x182),(_0x246de8,[_0x43a662,_0x3b3d9d])=>{const _0x2feccb=_0xbea82c;_0x43a662[_0x2feccb(0x166)](_0x2feccb(0x13f),_0x3b3d9d);});}[_0x3664ac(0x157)](){const _0x129c9c=_0x3664ac,_0x1f682d=this[_0x129c9c(0x168)][_0x129c9c(0x160)][_0x129c9c(0x15c)](_0x129c9c(0x185))||{},_0x4a53fe=this[_0x129c9c(0x168)][_0x129c9c(0x160)][_0x129c9c(0x15c)](_0x129c9c(0x144))||'';this[_0x129c9c(0x137)]=_0x1d7c98(_0x20bdf3[_0x129c9c(0x138)],_0x129c9c(0x149),{..._0x1f682d,'pubkey':_0x4a53fe,'ctx-name':_0x129c9c(0x162),'sourceList':'','imgOnly':_0x129c9c(0x171),'removeCopyright':_0x129c9c(0x171),'localeName':this[_0x129c9c(0x168)][_0x129c9c(0x187)][_0x129c9c(0x135)],'externalSourcesEmbedCss':_0x129c9c(0x17d)}),this[_0x129c9c(0x137)][_0x129c9c(0x140)]=_0x4615c5=>{const _0x403e05=_0x129c9c;if(_0x403e05(0x177)==_0x4615c5)return _0x403e05(0x154);},_0x20bdf3[_0x129c9c(0x138)][_0x129c9c(0x16f)][_0x129c9c(0x178)](this[_0x129c9c(0x137)]);}[_0x3664ac(0x146)](){const _0x549936=_0x3664ac;this[_0x549936(0x14c)]=_0x1d7c98(_0x20bdf3[_0x549936(0x138)],_0x549936(0x156),{'ctx-name':_0x549936(0x162)}),_0x20bdf3[_0x549936(0x138)][_0x549936(0x16f)][_0x549936(0x178)](this[_0x549936(0x14c)]);}[_0x3664ac(0x155)](){const _0x5c3f48=_0x3664ac,_0xb97dfd=this[_0x5c3f48(0x168)][_0x5c3f48(0x14a)][_0x5c3f48(0x15c)](_0x5c3f48(0x184));_0xb97dfd&&this[_0x5c3f48(0x175)](_0xb97dfd,_0x5c3f48(0x172),()=>{const _0x4d321d=_0x5c3f48,_0x5d797e=this[_0x4d321d(0x168)][_0x4d321d(0x13a)][_0x4d321d(0x138)][_0x4d321d(0x150)][_0x4d321d(0x174)]();_0x5d797e&&_0x5d797e[_0x4d321d(0x180)](_0x4d321d(0x13f))&&this[_0x4d321d(0x168)][_0x4d321d(0x13b)][_0x4d321d(0x148)][_0x4d321d(0x15b)](_0x4d321d(0x17c),()=>{const _0x145ce2=_0x4d321d;_0x13d9e7(this[_0x145ce2(0x168)],_0x5d797e);});});const _0x542b8b=this[_0x5c3f48(0x168)][_0x5c3f48(0x14a)][_0x5c3f48(0x15c)](_0x5c3f48(0x14b));_0x542b8b&&this[_0x5c3f48(0x175)](_0x542b8b,_0x5c3f48(0x172),()=>{const _0x2ac3eb=_0x5c3f48,_0x526c7d=this[_0x2ac3eb(0x168)][_0x2ac3eb(0x13a)][_0x2ac3eb(0x138)][_0x2ac3eb(0x150)][_0x2ac3eb(0x174)]();_0x526c7d&&_0x526c7d[_0x2ac3eb(0x180)](_0x2ac3eb(0x13f))&&this[_0x2ac3eb(0x168)][_0x2ac3eb(0x13b)][_0x2ac3eb(0x148)][_0x2ac3eb(0x15b)](_0x2ac3eb(0x17c),()=>{const _0x37d637=_0x2ac3eb;_0x13d9e7(this[_0x37d637(0x168)],_0x526c7d);});});}}
|