@ckeditor/ckeditor5-uploadcare 0.0.0-nightly-20250921.0 → 0.0.0-nightly-20250922.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/ui/uploadcarecontroller.js +2 -2
- package/src/ui/uploadcareformview.js +1 -1
- package/src/uploadcareediting.js +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditcontroller.js +2 -2
- package/src/uploadcareimageedit/ui/uploadcareimageeditformeditingview.js +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditformerrorview.js +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditformloadingview.js +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditformview.js +1 -1
- package/src/uploadcareimageedit/uploadcareimageeditcommand.js +1 -1
- package/src/uploadcareimageedit/uploadcareimageeditediting.js +1 -1
- package/src/uploadcareimageedit/uploadcareimageeditui.js +1 -1
- package/src/utils/dialogfocusmanagerview.js +1 -1
- package/src/utils/editingutils.js +1 -1
- package/src/utils/isancestor.js +1 -1
- package/src/utils/uploadutils.js +1 -1
package/dist/index.js
CHANGED
|
@@ -20,6 +20,6 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as _0x7e36d9,Command as _0x131bcf}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x55b81b,IconGooglePhotos as _0x271b90,IconGoogleDrive as _0x5c6253,IconFacebook as _0x3abd6b,IconDropbox as _0x239cc5,IconUploadcareLink as _0x4e0ca1,IconUploadcareImageUpload as _0x2a6800,IconError as _0x281f89,IconUploadcareImageEdit as _0x37f45c}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x19dd91,MenuBarMenuListItemButtonView as _0x50613f,View as _0x3511ae,FocusCycler as _0x20728b,Dialog as _0x43377a,DialogViewPosition as _0x5e8274,SpinnerView as _0x51ce7b,IconView as _0x3e32d6,Notification as _0x238cd8}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x2fc920,DomEmitterMixin as _0x4b25ed,global as _0x4a05f8,getAncestors as _0x10f532,ObservableMixin as _0x4a7605,uid as _0x14e977,createElement as _0x389e16}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x510314}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x5a5fe5,info as _0x3273c8}from'@uploadcare/upload-client';import*as _0x10d61a from'@uploadcare/file-uploader';var i=function(_0x38692f){return _0x38692f['Local']='local',_0x38692f['URL']='url',_0x38692f['Dropbox']='dropbox',_0x38692f['GDrive']='gdrive',_0x38692f['Facebook']='facebook',_0x38692f['GPhotos']='gphotos',_0x38692f['OneDrive']='onedrive',_0x38692f;}({});function _(_0x1e049c,_0x6d8a6c,_0x3a7f22){const t=_0x1e049c['t'],_0x7c8a5=_0x1e049c['t'];switch(_0x6d8a6c){case i['Local']:return{'text':_0x7c8a5('Insert'===_0x3a7f22?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x7c8a5('From\x20computer')};case i['URL']:return{'text':'Insert'===_0x3a7f22?_0x7c8a5('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x7c8a5('Via\x20URL')};case i['Dropbox']:return{'text':t('Insert'===_0x3a7f22?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case i['Facebook']:return{'text':t('Insert'===_0x3a7f22?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case i['GDrive']:return{'text':t('Insert'===_0x3a7f22?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case i['GPhotos']:return{'text':t('Insert'===_0x3a7f22?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case i['OneDrive']:return{'text':t('Insert'===_0x3a7f22?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x6d8a6c;}}class e extends _0x7e36d9{['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 _0x315321=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x79a999;for(const _0x58dd4a in _0x315321){const _0x217333=_0x58dd4a,_0x2e0bdf=_0x315321[_0x217333];if('uploadcareLicenseKeyValid'==_0x2e0bdf||'uploadcareLicenseKeyInvalid'==_0x2e0bdf||'uploadcareLicenseKeyExpired'==_0x2e0bdf||'uploadcareLicenseKeyDomainLimit'==_0x2e0bdf||'uploadcareLicenseKeyNotAllowed'==_0x2e0bdf||'uploadcareLicenseKeyEvaluationLimit'==_0x2e0bdf||'uploadcareLicenseKeyTrialLimit'==_0x2e0bdf||'uploadcareLicenseKeyUsageLimit'==_0x2e0bdf){delete _0x315321[_0x217333],_0x79a999=_0x2e0bdf,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x79a999&&_0x315321['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x79a999&&_0x315321['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x79a999&&_0x315321['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x79a999&&_0x315321['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x79a999&&_0x315321['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyTrialLimit'==_0x79a999&&_0x315321['_showLicenseError']('trialLimit'),'uploadcareLicenseKeyUsageLimit'==_0x79a999&&_0x315321['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x2e4965}=this,_0x3df0f7=_0x2e4965['commands']['get']('uploadcare');if(!_0x3df0f7)return;const _0x434873=this['_normalizeConfigSourceList'](_0x2e4965['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x54a60e,_0x3e3fc6)=>{const _0x155934=this['_getIntegrationKey'](_0x3e3fc6['type']);return _0x54a60e[_0x155934]||(_0x54a60e[_0x155934]=[]),_0x54a60e[_0x155934]['push'](_0x3e3fc6),_0x54a60e;},{});_0x2e4965['plugins']['has']('ImageInsertUI')&&_0x2e4965['commands']['get']('uploadcare')&&Object['entries'](_0x434873)['forEach'](([_0x25f217,_0x1dec62])=>{_0x2e4965['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x25f217,'observable':()=>_0x3df0f7,'buttonViewCreator':()=>this['_createToolbarButton'](_0x1dec62),'formViewCreator':()=>this['_createDropdownButtons'](_0x1dec62),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x1dec62),'override':'assetManager'!==_0x25f217});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x378142){const {locale:_0x1ef480}=this['editor'];return _0x378142['map'](_0x51144b=>{const _0x264ed4=_(_0x1ef480,_0x51144b,'Insert');switch(_0x51144b){case i['Local']:return{'icon':_0x2a6800,'type':i['Local'],..._0x264ed4};case i['URL']:return{'icon':_0x4e0ca1,'type':i['URL'],..._0x264ed4};case i['Dropbox']:return{'icon':_0x239cc5,'type':i['Dropbox'],..._0x264ed4};case i['Facebook']:return{'icon':_0x3abd6b,'type':i['Facebook'],..._0x264ed4};case i['GDrive']:return{'icon':_0x5c6253,'type':i['GDrive'],..._0x264ed4};case i['GPhotos']:return{'icon':_0x271b90,'type':i['GPhotos'],..._0x264ed4};case i['OneDrive']:return{'icon':_0x55b81b,'type':i['OneDrive'],..._0x264ed4};}});}['_getIntegrationKey'](_0x3d8074){switch(_0x3d8074){case i['Local']:return'upload';case i['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x73061,_0x2c5b04){const _0x4ed196=this['editor'],_0x265a16=new _0x73061(_0x4ed196['locale']),_0x204c8b=_0x4ed196['commands']['get']('uploadcare');return _0x265a16['bind']('isEnabled')['to'](_0x204c8b),_0x265a16['on']('execute',()=>{_0x204c8b['execute'](_0x2c5b04);}),_0x265a16;}['_createToolbarButton'](_0x1dc0ba){const {locale:_0x3b0177}=this['editor'],_0x41c3ec=this['editor']['plugins']['get']('ImageInsertUI'),_0x20a138=_0x1dc0ba[0x0],_0x520d86=this['_createButton'](_0x19dd91,_0x20a138['type']);return _0x520d86['icon']=_0x20a138['icon'],_0x520d86['bind']('label')['to'](_0x41c3ec,'isImageSelected',_0x473682=>_(_0x3b0177,_0x20a138['type'],_0x473682?'Replace':'Insert')['text']),_0x520d86['tooltip']=!0x0,_0x520d86;}['_createDropdownButtons'](_0x4daaca){const {locale:_0x18f6d9}=this['editor'],_0x138cfd=this['editor']['plugins']['get']('ImageInsertUI');return _0x4daaca['map'](_0x2a4279=>{const _0x2ef012=this['_createButton'](_0x19dd91,_0x2a4279['type']);return _0x2ef012['withText']=!0x0,_0x2ef012['icon']=_0x2a4279['icon'],_0x2ef012['bind']('label')['to'](_0x138cfd,'isImageSelected',_0x38a77a=>_(_0x18f6d9,_0x2a4279['type'],_0x38a77a?'Replace':'Insert')['text']),_0x2ef012;});}['_createMenuBarButtons'](_0x2905b4){return _0x2905b4['map'](_0x3d4d01=>{const _0x4095d7=this['_createButton'](_0x50613f,_0x3d4d01['type']);return _0x4095d7['icon']=_0x3d4d01['icon'],_0x4095d7['label']=_0x3d4d01['shortText'],_0x4095d7;});}}class W extends _0x3511ae{['focusTracker'];['focusCycler'];constructor(_0x5c65ae){super(_0x5c65ae),this['focusTracker']=new _0x2fc920(),this['focusCycler']=new _0x20728b({'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 R extends W{constructor(_0x522f5e,_0x37c18d){super(_0x522f5e),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-'+_0x37c18d}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}}function C(_0x284c07,_0x3adeb1){const _0x319cd8=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x5d11f2=>_0x5d11f2<=_0x3adeb1)['map'](_0x8a5345=>_0x284c07['replace'](/\/$/,'')+'/-/resize/'+_0x8a5345+'x/\x20'+_0x8a5345+'w');return{'imageFallbackUrl':_0x284c07,'imageSources':[{'srcset':_0x319cd8['join'](',\x20'),'sizes':'(max-width:\x20'+_0x3adeb1+'px)\x20100vw,\x20'+_0x3adeb1+'px','type':'image/webp'}]};}function V(_0x3bdfda,_0x52699c,_0x278183){const _0x22d5bc=_0x3bdfda['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x22d5bc?parseInt(_0x22d5bc[0x1],0xa):_0x52699c,'height':_0x22d5bc?parseInt(_0x22d5bc[0x2],0xa):_0x278183};}function p(_0x3c0730,_0x2e7a45){const _0xcbe2c6=new(_0x4b25ed())(),_0x1b6b3f=_0x3c0730['plugins']['get']('ImageUtils'),_0x16011d=_0x3c0730['editing']['mapper']['toViewElement'](_0x2e7a45),_0x84c1c1=_0x1b6b3f['findViewImgElement'](_0x16011d),_0x3caf3e=_0x3c0730['editing']['view']['domConverter']['viewToDom'](_0x84c1c1),_0x5f1a3d=_0x2e7a45['getAttribute']('width'),_0x8f7359=_0x2e7a45['getAttribute']('height'),_0x5cb506='image-processing';_0x3c0730['editing']['view']['change'](_0xe8a78=>{_0xe8a78['addClass'](_0x5cb506,_0x16011d),_0xe8a78['setStyle']('aspect-ratio',_0x5f1a3d+'/'+_0x8f7359,_0x84c1c1);}),_0xcbe2c6['listenTo'](_0x3caf3e,'load',()=>{_0xcbe2c6['stopListening'](_0x3caf3e,'load'),_0x3c0730['editing']['view']['change'](_0x2b914d=>{_0x2b914d['removeClass'](_0x5cb506,_0x16011d),_0x2b914d['removeStyle']('aspect-ratio',_0x84c1c1);});});}function z(_0x435c27){if(Array['isArray'](_0x435c27)){const _0x5eb5f4=_0x435c27['map'](z);return _0x4a9cd7=>_0x5eb5f4['some'](_0x346045=>_0x346045(_0x4a9cd7));}if('origin'==_0x435c27){const _0x5e295c=_0x4a05f8['window']['location']['origin'];return _0x54361c=>new URL(_0x54361c,_0x4a05f8['document']['baseURI'])['origin']==_0x5e295c;}return'function'==typeof _0x435c27?_0x435c27:_0x435c27 instanceof RegExp?_0x2fab6b=>!(!_0x2fab6b['match'](_0x435c27)&&!_0x2fab6b['replace'](/^https?:\/\//,'')['match'](_0x435c27)):()=>!0x1;}function Q(_0xa1a198,_0x28e0){return _0x10f532(_0xa1a198['target'])['includes'](_0x28e0);}class n extends/* #__PURE__ -- @preserve */
|
|
24
|
-
_0x4a7605(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x3f8018,_0x4b48b4,_0x4edf4a){super(),this['_editor']=_0x3f8018,this['_editing']=_0x4b48b4,this['_dialog']=_0x3f8018['plugins']['get'](_0x43377a),this['_api']=_0x4b48b4['ctxElement']['getAPI'](),this['_type']=_0x4edf4a,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:_0x5ea629,model:_0x188e21}=this['_editor'],_0x4fa82=_0x188e21['document']['selection']['getSelectedElement'](),_0x4012e9=_0x4fa82&&(_0x4fa82['is']('element','imageBlock')||_0x4fa82['is']('element','imageInline'));this['_formView']=new R(_0x5ea629,this['_editing']['ucContextId']),this['_dialog']['show']({'id':'uploadCare','icon':_0x2a6800,'title':_(_0x5ea629,this['_type'],_0x4012e9?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x5e8274['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x4ae52e=>!Q(_0x4ae52e,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x285654}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x5b15f0=>{const _0x5d964a=_0x285654['length'];for(const _0x4e95d8 of _0x285654){const _0x3718d0=_0x4e95d8===_0x285654[_0x5d964a-0x1],{cdnUrl:_0x5593e0,fileInfo:_0x1924dd}=_0x4e95d8;if(!_0x5593e0||!_0x1924dd)continue;const {width:_0x4c02c6,height:_0x4b6b92}=_0x1924dd['imageInfo'],_0x58b153=V(_0x5593e0,_0x4c02c6,_0x4b6b92),_0x3cdb49=C(_0x5593e0,_0x58b153['width']),_0x3c7d3d={'id':_0x1924dd['uuid'],'type':'image','attributes':{'imageDimension':_0x58b153,..._0x3cdb49}};this['_insertAsset'](_0x3c7d3d,_0x3718d0,_0x5b15f0);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x1c58b2=>{'idle'===_0x1c58b2['detail']['status']&&!_0x1c58b2['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===i['Local']?this['_api']['setCurrentActivity'](i['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x11603b,_0x22399f,_0xfd1ff1){const _0x5e0f5d=this['_editor']['model']['document']['selection'],_0x52a551=_0x5e0f5d['getSelectedElement'](),_0x12033b=!(!_0x52a551||!_0x52a551['is']('element','imageInline'));_0xfd1ff1['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x11603b,_0x12033b),_0x22399f||_0xfd1ff1['setSelection'](_0x5e0f5d['getLastPosition']());}['_insertImage'](_0x40b40e,_0x4f5a86){const _0x1c675c=this['_editor'],{imageDimension:_0x4ad7f0,imageFallbackUrl:_0x2896bd,imageSources:_0x12c59f}=_0x40b40e['attributes'];_0x1c675c['execute']('insertImage',{'imageType':_0x4f5a86?'imageInline':null,'source':{'uploadcareImageId':_0x40b40e['id'],'src':_0x2896bd,'sources':_0x12c59f,..._0x4ad7f0}});}}class w extends _0x131bcf{['_editing'];['_controller']=null;static get['requires'](){return[_0x43377a,o];}constructor(_0x4a5b9d){super(_0x4a5b9d),this['_editing']=_0x4a5b9d['plugins']['get'](o);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x162058){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new n(this['editor'],this['_editing'],_0x162058);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class j{static['upload']({file:_0x48bb36,..._0x1d0858}){return _0x5a5fe5(_0x48bb36,_0x1d0858);}static['getInfo'](_0x550fa1,_0x4f09f2){return _0x3273c8(_0x550fa1,_0x4f09f2);}}class f extends _0x7e36d9{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x510314,o];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x4a9ef6=this['editor'];if(!!!_0x4a9ef6['config']['get']('uploadcare'))return;_0x4a9ef6['plugins']['get'](_0x510314)['createUploadAdapter']=_0x1a139f=>new k(_0x1a139f,_0x4a9ef6),_0x4a9ef6['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x2bf82e,{imageElement:_0x2df768,data:_0x147125})=>{_0x4a9ef6['model']['change'](_0x41c6ee=>{_0x41c6ee['setAttribute']('uploadcareImageId',_0x147125['uploadcareImageId'],_0x2df768);});});}}class k{['loader'];['editor'];['controller'];constructor(_0x5dc5f1,_0x43d11){this['loader']=_0x5dc5f1,this['editor']=_0x43d11,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x20a9e4=await this['loader']['file'];return j['upload']({'file':_0x20a9e4,'publicKey':this['editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['editor']['config']['get']('uploadcare.uploader.baseUrl'),'baseCDN':this['editor']['config']['get']('uploadcare.uploader.cdnCname'),'signal':this['controller']['signal'],'onProgress':_0x319d84=>{_0x319d84&&_0x319d84['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x319d84['value']);}})['then'](async _0x383f07=>{const {imageFallbackUrl:_0x5782b0,imageSources:_0x2be460}=C(_0x383f07['cdnUrl'],_0x383f07['imageInfo']['width']);return{'uploadcareImageId':_0x383f07['uuid'],'default':_0x5782b0,'sources':_0x2be460};})['catch'](()=>{const _0x36402f=t('Cannot\x20upload\x20file:')+('\x20'+_0x20a9e4['name']+'.');return Promise['reject'](_0x36402f);});}['abort'](){this['controller']['abort']();}}class o extends _0x7e36d9{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',f,_0x43377a];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['ucContextId'];get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}constructor(_0x28af52){super(_0x28af52),this['ucContextId']=_0x14e977();}['init'](){const _0x1c2d3b=this['editor'];_0x1c2d3b['commands']['add']('uploadcare',new w(_0x1c2d3b));}['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 _0x122781=_0x4a05f8['document']['querySelector']('input[uploadcare-file-input]');_0x122781&&_0x122781['remove']();}),async function(_0x13eb09){const _0x59ec2b=_0x22ac9d([0x52,0x42,0x63,0x58,0x64,0x47,0x66,0x35,0x36,0x37,0x6d,0x4e,0x6a,0x4b,0x39,0x44,0x54,0x70,0x50,0x30,0x49,0x79,0x69,0x33,0x67,0x65,0x61,0x38,0x5a,0x76,0x7a,0x6c,0x45,0x34,0x62,0x46,0x75,0x57,0x72,0x77,0x73,0x48,0x31,0x68,0x6e,0x4f,0x53,0x4c,0x71,0x6b,0x59,0x32,0x4d,0x51,0x4a,0x78,0x6f,0x56,0x41,0x55,0x74,0x43]),_0x215335=0x3d8d0df,_0x2c55f9=0x3dfa4df^_0x215335,_0x58d979=window[_0x22ac9d([0x44,0x61,0x74,0x65])][_0x22ac9d([0x6e,0x6f,0x77])](),_0x1a6ec8=_0x13eb09[_0x22ac9d([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x30dc26=new window[(_0x22ac9d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3c4953=>{_0x1a6ec8[_0x22ac9d([0x6f,0x6e,0x63,0x65])](_0x22ac9d([0x72,0x65,0x61,0x64,0x79]),_0x3c4953);}),_0x5a4da2={[_0x22ac9d([0x6b,0x74,0x79])]:_0x22ac9d([0x45,0x43]),[_0x22ac9d([0x75,0x73,0x65])]:_0x22ac9d([0x73,0x69,0x67]),[_0x22ac9d([0x63,0x72,0x76])]:_0x22ac9d([0x50,0x2d,0x32,0x35,0x36]),[_0x22ac9d([0x78])]:_0x22ac9d([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]),[_0x22ac9d([0x79])]:_0x22ac9d([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]),[_0x22ac9d([0x61,0x6c,0x67])]:_0x22ac9d([0x45,0x53,0x32,0x35,0x36])},_0x3bfe59=_0x1a6ec8[_0x22ac9d([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x22ac9d([0x67,0x65,0x74])](_0x22ac9d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x47d1af(){let _0x4464cb,_0x534fb2=null,_0x429e8a=null;try{if(_0x3bfe59==_0x22ac9d([0x47,0x50,0x4c]))return _0x22ac9d([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x4464cb=_0x4e131c(),!_0x4464cb)return _0x22ac9d([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x4464cb[_0x22ac9d([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x429e8a=_0x456629(_0x4464cb[_0x22ac9d([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x4464cb[_0x22ac9d([0x6a,0x74,0x69])])),await _0x26253f()?_0x521af0()?_0x45b9e8()?_0x22ac9d([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x36023d()?(_0x4464cb[_0x22ac9d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x22ac9d([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x534fb2=_0x28e570(_0x22ac9d([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x4464cb[_0x22ac9d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x22ac9d([0x74,0x72,0x69,0x61,0x6c])&&(_0x534fb2=_0x28e570(_0x22ac9d([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x3edd4e()):_0x22ac9d([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x22ac9d([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x22ac9d([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x22ac9d([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x45b9e8(){const _0x3dd6e4=[_0x22ac9d([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x22ac9d([0x74,0x72,0x69,0x61,0x6c])][_0x22ac9d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4464cb[_0x22ac9d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x58d979/0x3e8:0xe10*_0x2c55f9;return _0x4464cb[_0x22ac9d([0x65,0x78,0x70])]<_0x3dd6e4;}function _0x521af0(){const _0x566ecb=_0x4464cb[_0x22ac9d([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x566ecb&&(!!_0x566ecb[_0x22ac9d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x22ac9d([0x2a]))||!!_0x566ecb[_0x22ac9d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x22ac9d([0x55,0x50,0x4c,0x43])));}function _0x36023d(){const _0x216b57=_0x4464cb[_0x22ac9d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x216b57||0x0==_0x216b57[_0x22ac9d([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0xc25dc9}=new URL(window[_0x22ac9d([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x216b57[_0x22ac9d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xc25dc9))return!0x0;const _0xa241cd=_0xc25dc9[_0x22ac9d([0x73,0x70,0x6c,0x69,0x74])](_0x22ac9d([0x2e]));return _0x216b57[_0x22ac9d([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x29c484=>_0x29c484[_0x22ac9d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x22ac9d([0x2a])))[_0x22ac9d([0x6d,0x61,0x70])](_0x3baefd=>_0x3baefd[_0x22ac9d([0x73,0x70,0x6c,0x69,0x74])](_0x22ac9d([0x2e])))[_0x22ac9d([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x390d49=>_0x390d49[_0x22ac9d([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0xa241cd[_0x22ac9d([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x22ac9d([0x6d,0x61,0x70])](_0x15afd0=>Array(_0xa241cd[_0x22ac9d([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x15afd0[_0x22ac9d([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x22ac9d([0x66,0x69,0x6c,0x6c])](_0x15afd0[0x0]===_0x22ac9d([0x2a])?_0x22ac9d([0x2a]):'')[_0x22ac9d([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x15afd0))[_0x22ac9d([0x73,0x6f,0x6d,0x65])](_0x167646=>_0xa241cd[_0x22ac9d([0x65,0x76,0x65,0x72,0x79])]((_0xbfcf7d,_0x2c4530)=>_0x167646[_0x2c4530]===_0xbfcf7d||_0x167646[_0x2c4530]===_0x22ac9d([0x2a])));}function _0x3edd4e(){return _0x534fb2&&_0x429e8a?new window[(_0x22ac9d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x2d6795,_0x201614)=>{_0x534fb2[_0x22ac9d([0x74,0x68,0x65,0x6e])](_0x2d6795,_0x201614),_0x429e8a[_0x22ac9d([0x74,0x68,0x65,0x6e])](_0x58806f=>{_0x58806f!=_0x22ac9d([0x56,0x61,0x6c,0x69,0x64])&&_0x2d6795(_0x58806f);},_0x201614);}):_0x534fb2||_0x429e8a||_0x22ac9d([0x56,0x61,0x6c,0x69,0x64]);}}function _0x456629(_0x3abe4d,_0x2f26f8){return new window[(_0x22ac9d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x282eb0=>{if(_0x5c103d())return _0x282eb0(_0x22ac9d([0x56,0x61,0x6c,0x69,0x64]));_0x5acf78(),_0x1a6ec8[_0x22ac9d([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x22ac9d([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x1e0534=!0x1;const _0x59e25a=_0x14e977();function _0x5936d4(_0x22acc8){return!!_0x22acc8&&(typeof _0x22acc8===_0x22ac9d([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x22acc8===_0x22ac9d([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x22acc8[_0x22ac9d([0x74,0x68,0x65,0x6e])]===_0x22ac9d([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x22acc8[_0x22ac9d([0x63,0x61,0x74,0x63,0x68])]===_0x22ac9d([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x2c41e7(_0x1c3ab7){_0x46701f(_0x1c3ab7)[_0x22ac9d([0x74,0x68,0x65,0x6e])](_0x503556=>{if(!_0x503556||_0x503556[_0x22ac9d([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x22ac9d([0x6f,0x6b]))return _0x22ac9d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x8af6d9(_0xb309a2(_0x59e25a+_0x2f26f8))!=_0x503556[_0x22ac9d([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x22ac9d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x22ac9d([0x56,0x61,0x6c,0x69,0x64]);})[_0x22ac9d([0x74,0x68,0x65,0x6e])](_0xc554ab=>(_0x5d5d6d(),_0xc554ab),()=>{const _0x4b7ffa=_0x517bd5();return null==_0x4b7ffa?(_0x5d5d6d(),_0x22ac9d([0x56,0x61,0x6c,0x69,0x64])):_0x22ac9d(_0x58d979-_0x4b7ffa>(0x27d454df^_0x215335)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x22ac9d([0x74,0x68,0x65,0x6e])](_0x282eb0)[_0x22ac9d([0x63,0x61,0x74,0x63,0x68])](()=>{_0x282eb0(_0x22ac9d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x3d612d=0x3ee3e5f^_0x215335;function _0x5d5d6d(){const _0x3e2243=_0x22ac9d([0x6c,0x6c,0x63,0x74,0x2d])+_0x8af6d9(_0xb309a2(_0x3abe4d)),_0x3fae5f=_0x326378(_0x8af6d9(window[_0x22ac9d([0x4d,0x61,0x74,0x68])][_0x22ac9d([0x63,0x65,0x69,0x6c])](_0x58d979/_0x3d612d)));window[_0x22ac9d([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x22ac9d([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3e2243,_0x3fae5f);}function _0x517bd5(){const _0x370e96=_0x22ac9d([0x6c,0x6c,0x63,0x74,0x2d])+_0x8af6d9(_0xb309a2(_0x3abe4d)),_0x1bb8b5=window[_0x22ac9d([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x22ac9d([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x370e96);return _0x1bb8b5?window[_0x22ac9d([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x326378(_0x1bb8b5),0x10)*_0x3d612d:null;}function _0x46701f(_0x3a1086){return new window[(_0x22ac9d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x18e218,_0x20caa2)=>{_0x3a1086[_0x22ac9d([0x74,0x68,0x65,0x6e])](_0x18e218,_0x20caa2),window[_0x22ac9d([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x20caa2,0x3d9041f^_0x215335);});}}_0x1a6ec8[_0x22ac9d([0x6f,0x6e])](_0x22ac9d([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x454a8a,_0x20f6f7)=>{if(_0x20f6f7[0x0]!=_0x3abe4d)return _0x282eb0(_0x22ac9d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x20f6f7[0x1]={..._0x20f6f7[0x1],[_0x22ac9d([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x59e25a};},{[_0x22ac9d([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x22ac9d([0x68,0x69,0x67,0x68])}),_0x1a6ec8[_0x22ac9d([0x6f,0x6e])](_0x22ac9d([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x2a8252=>{_0x5936d4(_0x2a8252[_0x22ac9d([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x1e0534=!0x0,_0x2c41e7(_0x2a8252[_0x22ac9d([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x22ac9d([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x22ac9d([0x6c,0x6f,0x77])}),_0x30dc26[_0x22ac9d([0x74,0x68,0x65,0x6e])](()=>{_0x1e0534||_0x282eb0(_0x22ac9d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x5c103d(){return _0x1a6ec8[_0x22ac9d([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x22ac9d([0x76,0x69,0x65,0x77])][_0x22ac9d([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x22ac9d([0x61,0x75,0x74,0x6f]);}function _0x5acf78(){_0x1a6ec8[_0x22ac9d([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x22ac9d([0x76,0x69,0x65,0x77])][_0x22ac9d([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x22ac9d([0x61,0x75,0x74,0x6f]);}}function _0x28e570(_0x4748f8){const _0x591bbb=[new window[(_0x22ac9d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2fa158=>setTimeout(_0x2fa158,0x3d1ee13^_0x215335)),_0x30dc26[_0x22ac9d([0x74,0x68,0x65,0x6e])](()=>new window[(_0x22ac9d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xfe9cf4=>{let _0x28e7fb=0x0;_0x1a6ec8[_0x22ac9d([0x6d,0x6f,0x64,0x65,0x6c])][_0x22ac9d([0x6f,0x6e])](_0x22ac9d([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x363bdb,_0xb0509a)=>{_0xb0509a[0x0][_0x22ac9d([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x28e7fb++,_0x28e7fb==(0x3d8d127^_0x215335)&&(_0xfe9cf4(),_0x363bdb[_0x22ac9d([0x6f,0x66,0x66])]());});}))];return window[_0x22ac9d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x22ac9d([0x72,0x61,0x63,0x65])](_0x591bbb)[_0x22ac9d([0x74,0x68,0x65,0x6e])](()=>_0x4748f8);}async function _0x5e670d(){await _0x30dc26,_0x1a6ec8[_0x22ac9d([0x6d,0x6f,0x64,0x65,0x6c])][_0x22ac9d([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x2477ba,_0x1a6ec8[_0x22ac9d([0x6d,0x6f,0x64,0x65,0x6c])][_0x22ac9d([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x2477ba,_0x1a6ec8[_0x22ac9d([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x22ac9d([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x429a1f(_0x31f24b){const _0x238325=_0x80b8ea();_0x1a6ec8[_0x238325]=_0x22ac9d([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x31f24b,_0x31f24b!=_0x22ac9d([0x56,0x61,0x6c,0x69,0x64])&&_0x5e670d();}function _0x80b8ea(){const _0x29a516=window[_0x22ac9d([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x22ac9d([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x22ac9d([0x6e,0x6f,0x77])]())[_0x22ac9d([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x22ac9d([0x2e]),'');let _0x26b5c7=_0x22ac9d([0x52]);for(let _0x270750=0x0;_0x270750<_0x29a516[_0x22ac9d([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x270750+=0x2){let _0x43cc84=window[_0x22ac9d([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x29a516[_0x22ac9d([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x270750,_0x270750+0x2));_0x43cc84>=_0x59ec2b[_0x22ac9d([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x43cc84-=_0x59ec2b[_0x22ac9d([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x26b5c7+=_0x59ec2b[_0x43cc84];}return _0x26b5c7;}function _0x4e131c(){const _0x55027=_0x3bfe59[_0x22ac9d([0x73,0x70,0x6c,0x69,0x74])](_0x22ac9d([0x2e]));if(0x3!=_0x55027[_0x22ac9d([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x4665be(_0x55027[0x1]);function _0x4665be(_0x490152){const _0x61cf50=_0x4fb778(_0x490152);return _0x61cf50&&_0xd1ca52()?_0x61cf50:null;function _0xd1ca52(){const _0x1792a8=_0x61cf50[_0x22ac9d([0x6a,0x74,0x69])],_0xedf601=window[_0x22ac9d([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1792a8[_0x22ac9d([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x1792a8[_0x22ac9d([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x526134={..._0x61cf50,[_0x22ac9d([0x6a,0x74,0x69])]:_0x1792a8[_0x22ac9d([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x1792a8[_0x22ac9d([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x526134[_0x22ac9d([0x76,0x63])],_0xb309a2(_0x526134)==_0xedf601;}}}async function _0x26253f(){let _0x191d7b=!0x0;try{const _0x72d98e=_0x3bfe59[_0x22ac9d([0x73,0x70,0x6c,0x69,0x74])](_0x22ac9d([0x2e])),[_0x2f0a81,_0x2ed514,_0x1e812e]=_0x72d98e;return _0x5453e9(_0x2f0a81),await _0x1cd124(_0x2f0a81,_0x2ed514,_0x1e812e),_0x191d7b;}catch{return!0x1;}function _0x5453e9(_0x51db91){const _0x594ed7=_0x4fb778(_0x51db91);_0x594ed7&&_0x594ed7[_0x22ac9d([0x61,0x6c,0x67])]==_0x22ac9d([0x45,0x53,0x32,0x35,0x36])||(_0x191d7b=!0x1);}async function _0x1cd124(_0x43e68c,_0x5e5f25,_0x2d4bbe){const _0x2bafcd=window[_0x22ac9d([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x22ac9d([0x66,0x72,0x6f,0x6d])](_0x5751b9(_0x2d4bbe),_0x1f870a=>_0x1f870a[_0x22ac9d([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0xa498f7=new window[(_0x22ac9d([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x22ac9d([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x43e68c+_0x22ac9d([0x2e])+_0x5e5f25),_0x26ba30=window[_0x22ac9d([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x22ac9d([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x26ba30)return;const _0x9e871c=await _0x26ba30[_0x22ac9d([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x22ac9d([0x6a,0x77,0x6b]),_0x5a4da2,{[_0x22ac9d([0x6e,0x61,0x6d,0x65])]:_0x22ac9d([0x45,0x43,0x44,0x53,0x41]),[_0x22ac9d([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x22ac9d([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x22ac9d([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x26ba30[_0x22ac9d([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x22ac9d([0x6e,0x61,0x6d,0x65])]:_0x22ac9d([0x45,0x43,0x44,0x53,0x41]),[_0x22ac9d([0x68,0x61,0x73,0x68])]:{[_0x22ac9d([0x6e,0x61,0x6d,0x65])]:_0x22ac9d([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x9e871c,_0x2bafcd,_0xa498f7)||(_0x191d7b=!0x1);}}function _0x4fb778(_0x22cb97){return _0x22cb97[_0x22ac9d([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x22ac9d([0x65,0x79]))?JSON[_0x22ac9d([0x70,0x61,0x72,0x73,0x65])](_0x5751b9(_0x22cb97)):null;}function _0x5751b9(_0x40e5a6){return window[_0x22ac9d([0x61,0x74,0x6f,0x62])](_0x40e5a6[_0x22ac9d([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x22ac9d([0x2b]))[_0x22ac9d([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x22ac9d([0x2f])));}function _0xb309a2(_0x39010b){let _0x20d21a=0x1505;function _0x5dfc60(_0x42e89b){for(let _0x4a4a04=0x0;_0x4a4a04<_0x42e89b[_0x22ac9d([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4a4a04++){const _0xe76b8b=_0x42e89b[_0x22ac9d([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x4a4a04);_0x20d21a=(_0x20d21a<<0x5)+_0x20d21a+_0xe76b8b,_0x20d21a&=_0x20d21a;}}function _0x15df91(_0x378cb4){Array[_0x22ac9d([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x378cb4)?_0x378cb4[_0x22ac9d([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x15df91):_0x378cb4&&typeof _0x378cb4==_0x22ac9d([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x22ac9d([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x378cb4)[_0x22ac9d([0x73,0x6f,0x72,0x74])]()[_0x22ac9d([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x2e412c,_0x5c93ee])=>{_0x5dfc60(_0x2e412c),_0x15df91(_0x5c93ee);}):_0x5dfc60(window[_0x22ac9d([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x378cb4));}return _0x15df91(_0x39010b),_0x20d21a>>>0x0;}function _0x8af6d9(_0x4a1a27){return _0x4a1a27[_0x22ac9d([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x22ac9d([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x22ac9d([0x30]));}function _0x326378(_0x2fab46){return _0x2fab46[_0x22ac9d([0x73,0x70,0x6c,0x69,0x74])]('')[_0x22ac9d([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x22ac9d([0x6a,0x6f,0x69,0x6e])]('');}function _0x2477ba(){}function _0x22ac9d(_0x4b6bf6){return _0x4b6bf6['map'](_0x59cf40=>String['fromCharCode'](_0x59cf40))['join']('');}_0x429a1f(await _0x47d1af());}(this);}['_initSchema'](){const _0x27db95=this['editor']['model']['schema'];_0x27db95['isRegistered']('imageBlock')&&_0x27db95['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x27db95['isRegistered']('imageInline')&&_0x27db95['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x9d9a99=this['editor'];_0x9d9a99['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x9d9a99['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x681083=>_0x681083['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x1e6fd3=_0x9d9a99['commands']['get']('replaceImageSource');_0x1e6fd3&&this['listenTo'](_0x1e6fd3,'cleanupImage',(_0x3e48cf,[_0x523c6c,_0xcf2fca])=>{_0x523c6c['removeAttribute']('uploadcareImageId',_0xcf2fca);});}['_initConfig'](){const _0x7dcffb=this['editor']['config']['get']('uploadcare.uploader')||{},_0x189b0b=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x389e16(_0x4a05f8['document'],'uc-config',{..._0x7dcffb,'pubkey':_0x189b0b,'ctx-name':'uploader-'+this['ucContextId'],'sourceList':'','imgOnly':'true','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage'],'externalSourcesEmbedCss':'\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup\x20{\x20padding:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-menu\x20{\x20gap:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-footer\x20{\x20padding-top:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__separator\x20{\x20margin:\x200;\x20}\x0a\x09\x09\x09'}),this['_configElement']['iconHrefResolver']=_0x2ffb4b=>{if('closeMax'==_0x2ffb4b)return'#uc-icon-arrow-down';},_0x4a05f8['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x389e16(_0x4a05f8['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader-'+this['ucContextId']}),_0x4a05f8['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x5176ca=this['editor']['commands']['get']('insertImage');_0x5176ca&&this['listenTo'](_0x5176ca,'execute',()=>{const _0x25cf85=this['editor']['model']['document']['selection']['getSelectedElement']();_0x25cf85&&_0x25cf85['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x25cf85);});});const _0xf54c63=this['editor']['commands']['get']('uploadcareImageReplace');_0xf54c63&&this['listenTo'](_0xf54c63,'execute',()=>{const _0x26bcd0=this['editor']['model']['document']['selection']['getSelectedElement']();_0x26bcd0&&_0x26bcd0['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x26bcd0);});});}}class tt extends _0x7e36d9{static get['requires'](){return[o,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0xeb4895){super(_0xeb4895),_0xeb4895['config']['define']('uploadcare.uploader.sourceList',[i['Local'],i['URL']]),_0x10d61a['defineComponents'](_0x10d61a);}}class ii extends _0x3511ae{constructor(_0x25df89){super(_0x25df89);const t=_0x25df89['t'],_0x3fb29b=this['bindTemplate'],_0x492d1c=new _0x51ce7b();_0x492d1c['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':[_0x492d1c,{'text':_0x3fb29b['to']('imageUploadProgress',_0x2ef0f9=>t('Loading\x20image...')+'\x20('+(_0x2ef0f9||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 _0x3511ae{constructor(_0x15e764){super(_0x15e764);const t=_0x15e764['t'];this['set']('errorType',null);const _0x793485=new _0x19dd91(_0x15e764);_0x793485['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x793485['withText']=!0x0,_0x793485['class']='ck-button-action',_0x793485['on']('execute',()=>{this['fire']('retry');}),_0x793485['bind']('isVisible')['to'](this,'errorType',_0x2d5566=>'NotFound'!==_0x2d5566);const _0x3b5bc7=new _0x3e32d6();_0x3b5bc7['content']=_0x281f89,_0x3b5bc7['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x54a965=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':[_0x3b5bc7,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x54a965['to']('errorType',_0x3df479=>t('NotFound'!==_0x3df479?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x793485]},{'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 _0x3511ae{constructor(_0x25893f,_0x2a39b5){super(_0x25893f);const _0x22fea2=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x2a39b5,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x22fea2['to']('imageSrc')}});}}class X extends W{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x25fce7,_0x281751,_0x2dff99){super(_0x25fce7),this['_items']=this['createCollection'](),this['_loadingView']=new ii(_0x25fce7),this['_errorView']=new ti(_0x25fce7),this['_editingView']=new ei(_0x25fce7,_0x2dff99),this['_focusableView']=new _0x3511ae(_0x25fce7),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x281751),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'],_0x13373d=>{this['_addUploadcareImageEditorListeners'](_0x13373d);});}),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'](_0x5d9e0e,_0x50cb54){const _0x5b9785='uc-cloud-image-editor',_0x37883e=_0x5d9e0e['querySelector'](_0x5b9785);if(_0x37883e)return _0x50cb54(_0x37883e);const _0x5da897=new MutationObserver(_0x319df8=>{const _0x390bab=_0x319df8['filter'](_0x38ac85=>_0x38ac85['target']===_0x5d9e0e&&_0x38ac85['addedNodes']['length']>0x0&&_0x38ac85['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x5b9785);_0x390bab['length']&&(_0x5da897['disconnect'](),_0x50cb54(_0x390bab[0x0]['addedNodes'][0x0]));});_0x5da897['observe'](_0x5d9e0e,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x132851){_0x132851['addEventListener']('apply',_0x4b77ad=>{this['fire']('apply',{'imageSrc':_0x4b77ad['detail']['cdnUrl']});}),_0x132851['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class E extends/* #__PURE__ -- @preserve */
|
|
25
|
-
_0x4a7605(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x40467e,_0x12b62e,_0x51564e){super(),this['_editor']=_0x40467e,this['_dialog']=_0x12b62e,this['_imageElement']=_0x51564e,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 _0x49ca35=this['_imageElement'],_0x2443f6=_0x49ca35['getAttribute']('uploadcareImageId'),_0x680803=_0x49ca35['getAttribute']('src');if(_0x2443f6)await this['_loadImageInfo'](_0x2443f6,_0x680803);else{if(this['_imageCache']['has'](_0x680803)){const _0x40f24e=this['_imageCache']['get'](_0x680803);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x40f24e['url'],this['imageDimension']=_0x40f24e['dimension'],this['imageId']=_0x40f24e['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x2e163c}=this['_editor'],t=_0x2e163c['t'],_0x197634=new X(_0x2e163c,this['imageStatus'],this['_attributes']);_0x197634['bind']('status')['to'](this,'imageStatus'),_0x197634['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x197634['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x197634['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x197634,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x37f45c,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x197634,'position':_0x5e8274['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x197634['focus']();},'onHide':()=>{_0x197634['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x19a8b5=>!Q(_0x19a8b5,_0x197634['element'])}});}['_loadImageInfo'](_0x9b921f,_0x1eb093){return j['getInfo'](_0x9b921f,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl')})['then'](_0xc1984=>{const {width:_0x52bcc8,height:_0x503ddd}=_0xc1984['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x1eb093,this['imageDimension']={'width':_0x52bcc8,'height':_0x503ddd},this['imageId']=_0x9b921f;})['catch'](_0x874632=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x874632['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x4b5e55,_0xee2931){return this['_getImageAsFile'](_0x4b5e55)['then'](_0x582fa7=>j['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl'),'baseCDN':this['_editor']['config']['get']('uploadcare.uploader.cdnCname'),'signal':_0xee2931['signal'],'file':_0x582fa7,'onProgress':_0x32ddfa=>{_0x32ddfa&&_0x32ddfa['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x32ddfa['value']));}}))['then'](_0x573984=>{const {width:_0x264e14,height:_0x2362c6}=_0x573984['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x573984['cdnUrl'],this['imageDimension']={'width':_0x264e14,'height':_0x2362c6},this['imageId']=_0x573984['uuid'],this['imageUploadProgress']=null;const _0xce286=_0x4b5e55['getAttribute']('src');this['_imageCache']['set'](_0xce286,{'id':_0x573984['uuid'],'url':_0x573984['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x152ebf=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x152ebf['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x4f56b6,_0x5d15c7){_0x4f56b6['on']('apply',(_0x502511,_0x5ddddd)=>{this['_replaceImage'](_0x5d15c7,_0x5ddddd['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x4f56b6['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x4f56b6['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0xc6cbdb,_0x3c4f74,_0x2a5967){const _0x587336=this['_editor'],{width:_0x12c058,height:_0x35925f}=V(_0x3c4f74,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x358dab,imageSources:_0x5ced45}=C(_0x3c4f74,_0x12c058);_0x587336['model']['change'](_0x3f233f=>{if('$graveyard'===_0xc6cbdb['root']['rootName']){_0x587336['execute']('insertImage',{'imageType':_0xc6cbdb['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0xc6cbdb['getAttributes']()),'uploadcareImageId':_0x2a5967,'src':_0x358dab,'sources':_0x5ced45,'width':_0x12c058,'height':_0x35925f}});const _0x4e6864=_0xc6cbdb['getChildren']();_0xc6cbdb=_0x587336['model']['document']['selection']['getSelectedElement']();for(const _0x263b17 of _0x4e6864)_0x3f233f['append'](_0x3f233f['cloneElement'](_0x263b17),_0xc6cbdb);}else _0x3f233f['setSelection'](_0xc6cbdb,'on'),_0x587336['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0xc6cbdb['getAttributes']()),'uploadcareImageId':_0x2a5967,'src':_0x358dab,'sources':_0x5ced45,'width':_0x12c058,'height':_0x35925f},_0xc6cbdb);_0x3f233f['setSelection'](_0xc6cbdb,'on');});}async['_getImageAsFile'](_0x271333){const _0x24334d=_0x4a05f8['window'],_0x2e0381=_0x4a05f8['document']['location']['href'],_0x59c200=new _0x24334d['URL'](_0x271333['getAttribute']('src'),_0x2e0381);if('data:'===_0x59c200['protocol']){const _0x2819cc=_0x59c200['href']['split'](','),_0x3991c9=_0x2819cc[0x0]['match'](/:(.*?);/)[0x1],_0x58b456=_0x3991c9['split']('/')[0x1],_0x484780=_0x24334d['atob'](_0x2819cc[_0x2819cc['length']-0x1]);let _0x15bf64=_0x484780['length'];const _0x463066=new _0x24334d['Uint8Array'](_0x15bf64);for(;_0x15bf64--;)_0x463066[_0x15bf64]=_0x484780['charCodeAt'](_0x15bf64);return new _0x24334d['File']([_0x463066],'image.'+_0x58b456,{'type':_0x3991c9});}const _0x626bca=_0x59c200['href']['split']('/'),_0x220eaf=_0x626bca[_0x626bca['length']-0x1],_0x3fc069=_0x220eaf['split']('.')[0x1];return _0x24334d['fetch'](_0x59c200['href'])['then'](_0x4bdcce=>_0x4bdcce['clone']()['blob']())['then'](_0x3e3433=>new _0x24334d['File']([_0x3e3433],_0x220eaf,{'type':'image/'+_0x3fc069}));}}class N extends _0x131bcf{['imageEditController'];static get['requires'](){return[_0x43377a];}['_isEditable'];constructor(_0xbefd6e){super(_0xbefd6e),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x26b13b){const _0x49220e=z(_0x26b13b);return _0x55210c=>!(!_0x55210c||!_0x55210c['is']('element','imageBlock')&&!_0x55210c['is']('element','imageInline'))&&(!!_0x55210c['hasAttribute']('uploadcareImageId')||!!_0x55210c['hasAttribute']('src')&&_0x49220e(_0x55210c['getAttribute']('src')));}(_0xbefd6e['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x20cd7e=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x20cd7e);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0xbb5332=this['editor']['model']['document']['selection']['getSelectedElement']();_0xbb5332&&(_0xbb5332['is']('element','imageBlock')||_0xbb5332['is']('element','imageInline'))&&(this['imageEditController']=new E(this['editor'],this['editor']['plugins']['get'](_0x43377a),_0xbb5332),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class O extends _0x131bcf{['refresh'](){const _0xb4c597=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0xb4c597&&(_0xb4c597['is']('element','imageBlock')||_0xb4c597['is']('element','imageInline')));}['execute'](_0x1a9905){const _0x5afa79=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0xc29f4a=>{_0xc29f4a['setAttributes'](_0x1a9905,_0x5afa79),_0xc29f4a['removeAttribute']('srcset',_0x5afa79),_0xc29f4a['removeAttribute']('sizes',_0x5afa79);});}}class m extends _0x7e36d9{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[o,_0x238cd8,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x416be8}=this;_0x416be8['commands']['add']('uploadcareImageEdit',new N(_0x416be8)),_0x416be8['commands']['add']('uploadcareImageReplace',new O(_0x416be8));}}class g extends _0x7e36d9{['_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 _0x2a9ace=this['editor'];_0x2a9ace['ui']['componentFactory']['add']('uploadcareImageEdit',_0x46099b=>{const _0x55de39=_0x2a9ace['commands']['get']('uploadcareImageEdit'),_0x3b7504=new _0x19dd91(_0x46099b),t=_0x46099b['t'];return _0x3b7504['set']({'icon':_0x37f45c,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x3b7504['bind']('isEnabled')['to'](_0x55de39),_0x3b7504['bind']('isOn')['to'](_0x55de39,'isActive'),this['listenTo'](_0x3b7504,'execute',()=>{_0x2a9ace['execute']('uploadcareImageEdit'),_0x2a9ace['editing']['view']['focus']();}),_0x3b7504;}),this['_initConfig']();}['_initConfig'](){const _0x53e613=_0x389e16(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x53e613),this['listenTo'](this['editor'],'destroy',()=>{_0x53e613['remove']();});}}class et extends _0x7e36d9{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,N as UploadcareImageEditCommand,m as UploadcareImageEditEditing,g as UploadcareImageEditUI,e as UploadcareUI,f as UploadcareUploadAdapter};
|
|
23
|
+
import{Plugin as _0x5ba322,Command as _0x2ef60a}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x520590,IconGooglePhotos as _0x2856ff,IconGoogleDrive as _0x2f9664,IconFacebook as _0x478fb0,IconDropbox as _0x3d6825,IconUploadcareLink as _0x27dc10,IconUploadcareImageUpload as _0x4a0409,IconError as _0x222c91,IconUploadcareImageEdit as _0x5b3293}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x39f50d,MenuBarMenuListItemButtonView as _0x4b1f38,View as _0x1ac545,FocusCycler as _0x1e8eb3,Dialog as _0x5f1bcf,DialogViewPosition as _0x37fdf6,SpinnerView as _0x38df43,IconView as _0x4924ef,Notification as _0x36f06d}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0xcf2c89,DomEmitterMixin as _0x1af22c,global as _0x16b173,getAncestors as _0x350951,ObservableMixin as _0x29ffde,uid as _0x26ebeb,createElement as _0x136a00}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0xd2c423}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x5ae9b3,info as _0x543e76}from'@uploadcare/upload-client';import*as _0x2dd39c from'@uploadcare/file-uploader';var i=function(_0x152646){return _0x152646['Local']='local',_0x152646['URL']='url',_0x152646['Dropbox']='dropbox',_0x152646['GDrive']='gdrive',_0x152646['Facebook']='facebook',_0x152646['GPhotos']='gphotos',_0x152646['OneDrive']='onedrive',_0x152646;}({});function _(_0x460487,_0x4f08a6,_0xb7fb7f){const t=_0x460487['t'],_0x525555=_0x460487['t'];switch(_0x4f08a6){case i['Local']:return{'text':_0x525555('Insert'===_0xb7fb7f?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x525555('From\x20computer')};case i['URL']:return{'text':'Insert'===_0xb7fb7f?_0x525555('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x525555('Via\x20URL')};case i['Dropbox']:return{'text':t('Insert'===_0xb7fb7f?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case i['Facebook']:return{'text':t('Insert'===_0xb7fb7f?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case i['GDrive']:return{'text':t('Insert'===_0xb7fb7f?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case i['GPhotos']:return{'text':t('Insert'===_0xb7fb7f?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case i['OneDrive']:return{'text':t('Insert'===_0xb7fb7f?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x4f08a6;}}class e extends _0x5ba322{['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 _0x437652=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x45b1db;for(const _0x4e0628 in _0x437652){const _0x2f75a1=_0x4e0628,_0x47c4df=_0x437652[_0x2f75a1];if('uploadcareLicenseKeyValid'==_0x47c4df||'uploadcareLicenseKeyInvalid'==_0x47c4df||'uploadcareLicenseKeyExpired'==_0x47c4df||'uploadcareLicenseKeyDomainLimit'==_0x47c4df||'uploadcareLicenseKeyNotAllowed'==_0x47c4df||'uploadcareLicenseKeyEvaluationLimit'==_0x47c4df||'uploadcareLicenseKeyTrialLimit'==_0x47c4df||'uploadcareLicenseKeyUsageLimit'==_0x47c4df){delete _0x437652[_0x2f75a1],_0x45b1db=_0x47c4df,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x45b1db&&_0x437652['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x45b1db&&_0x437652['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x45b1db&&_0x437652['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x45b1db&&_0x437652['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x45b1db&&_0x437652['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyTrialLimit'==_0x45b1db&&_0x437652['_showLicenseError']('trialLimit'),'uploadcareLicenseKeyUsageLimit'==_0x45b1db&&_0x437652['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x5778d6}=this,_0x36ed34=_0x5778d6['commands']['get']('uploadcare');if(!_0x36ed34)return;const _0x3eb283=this['_normalizeConfigSourceList'](_0x5778d6['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x5b460c,_0x35608b)=>{const _0x3e36b0=this['_getIntegrationKey'](_0x35608b['type']);return _0x5b460c[_0x3e36b0]||(_0x5b460c[_0x3e36b0]=[]),_0x5b460c[_0x3e36b0]['push'](_0x35608b),_0x5b460c;},{});_0x5778d6['plugins']['has']('ImageInsertUI')&&_0x5778d6['commands']['get']('uploadcare')&&Object['entries'](_0x3eb283)['forEach'](([_0x41162d,_0x1da876])=>{_0x5778d6['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x41162d,'observable':()=>_0x36ed34,'buttonViewCreator':()=>this['_createToolbarButton'](_0x1da876),'formViewCreator':()=>this['_createDropdownButtons'](_0x1da876),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x1da876),'override':'assetManager'!==_0x41162d});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x401b83){const {locale:_0x512107}=this['editor'];return _0x401b83['map'](_0xdc3d35=>{const _0x2523be=_(_0x512107,_0xdc3d35,'Insert');switch(_0xdc3d35){case i['Local']:return{'icon':_0x4a0409,'type':i['Local'],..._0x2523be};case i['URL']:return{'icon':_0x27dc10,'type':i['URL'],..._0x2523be};case i['Dropbox']:return{'icon':_0x3d6825,'type':i['Dropbox'],..._0x2523be};case i['Facebook']:return{'icon':_0x478fb0,'type':i['Facebook'],..._0x2523be};case i['GDrive']:return{'icon':_0x2f9664,'type':i['GDrive'],..._0x2523be};case i['GPhotos']:return{'icon':_0x2856ff,'type':i['GPhotos'],..._0x2523be};case i['OneDrive']:return{'icon':_0x520590,'type':i['OneDrive'],..._0x2523be};}});}['_getIntegrationKey'](_0x478ea0){switch(_0x478ea0){case i['Local']:return'upload';case i['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x58c785,_0xcd0571){const _0x4d32d5=this['editor'],_0x4baeb0=new _0x58c785(_0x4d32d5['locale']),_0x540858=_0x4d32d5['commands']['get']('uploadcare');return _0x4baeb0['bind']('isEnabled')['to'](_0x540858),_0x4baeb0['on']('execute',()=>{_0x540858['execute'](_0xcd0571);}),_0x4baeb0;}['_createToolbarButton'](_0x197203){const {locale:_0x32cbd1}=this['editor'],_0x229a9a=this['editor']['plugins']['get']('ImageInsertUI'),_0x1db08d=_0x197203[0x0],_0x2b9cc3=this['_createButton'](_0x39f50d,_0x1db08d['type']);return _0x2b9cc3['icon']=_0x1db08d['icon'],_0x2b9cc3['bind']('label')['to'](_0x229a9a,'isImageSelected',_0x2575a7=>_(_0x32cbd1,_0x1db08d['type'],_0x2575a7?'Replace':'Insert')['text']),_0x2b9cc3['tooltip']=!0x0,_0x2b9cc3;}['_createDropdownButtons'](_0x3c5a0f){const {locale:_0xee1fd5}=this['editor'],_0xe0388c=this['editor']['plugins']['get']('ImageInsertUI');return _0x3c5a0f['map'](_0x2769b3=>{const _0x53955f=this['_createButton'](_0x39f50d,_0x2769b3['type']);return _0x53955f['withText']=!0x0,_0x53955f['icon']=_0x2769b3['icon'],_0x53955f['bind']('label')['to'](_0xe0388c,'isImageSelected',_0x3da5de=>_(_0xee1fd5,_0x2769b3['type'],_0x3da5de?'Replace':'Insert')['text']),_0x53955f;});}['_createMenuBarButtons'](_0x24ae96){return _0x24ae96['map'](_0x38db57=>{const _0xe582c5=this['_createButton'](_0x4b1f38,_0x38db57['type']);return _0xe582c5['icon']=_0x38db57['icon'],_0xe582c5['label']=_0x38db57['shortText'],_0xe582c5;});}}class F extends _0x1ac545{['focusTracker'];['focusCycler'];constructor(_0xc18d18){super(_0xc18d18),this['focusTracker']=new _0xcf2c89(),this['focusCycler']=new _0x1e8eb3({'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(_0x53ee79,_0x1226c6){super(_0x53ee79),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-'+_0x1226c6}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}}function C(_0x2b18eb,_0x2188f0){const _0x3655ab=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x3cfc82=>_0x3cfc82<=_0x2188f0)['map'](_0x3b93eb=>_0x2b18eb['replace'](/\/$/,'')+'/-/resize/'+_0x3b93eb+'x/\x20'+_0x3b93eb+'w');return{'imageFallbackUrl':_0x2b18eb,'imageSources':[{'srcset':_0x3655ab['join'](',\x20'),'sizes':'(max-width:\x20'+_0x2188f0+'px)\x20100vw,\x20'+_0x2188f0+'px','type':'image/webp'}]};}function S(_0x48acdc,_0x42550a,_0x1fb17b){const _0x5b2f6b=_0x48acdc['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x5b2f6b?parseInt(_0x5b2f6b[0x1],0xa):_0x42550a,'height':_0x5b2f6b?parseInt(_0x5b2f6b[0x2],0xa):_0x1fb17b};}function p(_0x1d3c8a,_0x31ba02){const _0x227343=new(_0x1af22c())(),_0x3400db=_0x1d3c8a['plugins']['get']('ImageUtils'),_0x2eedba=_0x1d3c8a['editing']['mapper']['toViewElement'](_0x31ba02),_0x422a7d=_0x3400db['findViewImgElement'](_0x2eedba),_0xe8e28f=_0x1d3c8a['editing']['view']['domConverter']['viewToDom'](_0x422a7d),_0x4fb87d=_0x31ba02['getAttribute']('width'),_0x4456e2=_0x31ba02['getAttribute']('height'),_0x4fddd1='image-processing';_0x1d3c8a['editing']['view']['change'](_0x4c8928=>{_0x4c8928['addClass'](_0x4fddd1,_0x2eedba),_0x4c8928['setStyle']('aspect-ratio',_0x4fb87d+'/'+_0x4456e2,_0x422a7d);}),_0x227343['listenTo'](_0xe8e28f,'load',()=>{_0x227343['stopListening'](_0xe8e28f,'load'),_0x1d3c8a['editing']['view']['change'](_0x491a3a=>{_0x491a3a['removeClass'](_0x4fddd1,_0x2eedba),_0x491a3a['removeStyle']('aspect-ratio',_0x422a7d);});});}function G(_0x52b592){if(Array['isArray'](_0x52b592)){const _0x4b52fc=_0x52b592['map'](G);return _0x1c09fc=>_0x4b52fc['some'](_0x2fe532=>_0x2fe532(_0x1c09fc));}if('origin'==_0x52b592){const _0x33d0f2=_0x16b173['window']['location']['origin'];return _0x237906=>new URL(_0x237906,_0x16b173['document']['baseURI'])['origin']==_0x33d0f2;}return'function'==typeof _0x52b592?_0x52b592:_0x52b592 instanceof RegExp?_0xa30e86=>!(!_0xa30e86['match'](_0x52b592)&&!_0xa30e86['replace'](/^https?:\/\//,'')['match'](_0x52b592)):()=>!0x1;}function A(_0x44cbce,_0x75b33f){return _0x350951(_0x44cbce['target'])['includes'](_0x75b33f);}class n extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x29ffde(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x480115,_0x5f0f8e,_0x251de1){super(),this['_editor']=_0x480115,this['_editing']=_0x5f0f8e,this['_dialog']=_0x480115['plugins']['get'](_0x5f1bcf),this['_api']=_0x5f0f8e['ctxElement']['getAPI'](),this['_type']=_0x251de1,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:_0x2c75b9,model:_0x5bb009}=this['_editor'],_0x37ee31=_0x5bb009['document']['selection']['getSelectedElement'](),_0x5be262=_0x37ee31&&(_0x37ee31['is']('element','imageBlock')||_0x37ee31['is']('element','imageInline'));this['_formView']=new x(_0x2c75b9,this['_editing']['ucContextId']),this['_dialog']['show']({'id':'uploadCare','icon':_0x4a0409,'title':_(_0x2c75b9,this['_type'],_0x5be262?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x37fdf6['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x293904=>!A(_0x293904,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x5c778e}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x5c64e0=>{const _0x588a61=_0x5c778e['length'];for(const _0x552adb of _0x5c778e){const _0x362bb8=_0x552adb===_0x5c778e[_0x588a61-0x1],{cdnUrl:_0x8c2882,fileInfo:_0x45d780}=_0x552adb;if(!_0x8c2882||!_0x45d780)continue;const {width:_0x9c2464,height:_0x455874}=_0x45d780['imageInfo'],_0x671b46=S(_0x8c2882,_0x9c2464,_0x455874),_0x23a681=C(_0x8c2882,_0x671b46['width']),_0x4189f0={'id':_0x45d780['uuid'],'type':'image','attributes':{'imageDimension':_0x671b46,..._0x23a681}};this['_insertAsset'](_0x4189f0,_0x362bb8,_0x5c64e0);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0xb3a7f3=>{'idle'===_0xb3a7f3['detail']['status']&&!_0xb3a7f3['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===i['Local']?this['_api']['setCurrentActivity'](i['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x20819d,_0x37792a,_0x214dab){const _0x30f31c=this['_editor']['model']['document']['selection'],_0x5be34c=_0x30f31c['getSelectedElement'](),_0x43119c=!(!_0x5be34c||!_0x5be34c['is']('element','imageInline'));_0x214dab['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x20819d,_0x43119c),_0x37792a||_0x214dab['setSelection'](_0x30f31c['getLastPosition']());}['_insertImage'](_0x799377,_0x514137){const _0x648399=this['_editor'],{imageDimension:_0x1a6cf9,imageFallbackUrl:_0x10daaf,imageSources:_0x180c96}=_0x799377['attributes'];_0x648399['execute']('insertImage',{'imageType':_0x514137?'imageInline':null,'source':{'uploadcareImageId':_0x799377['id'],'src':_0x10daaf,'sources':_0x180c96,..._0x1a6cf9}});}}class w extends _0x2ef60a{['_editing'];['_controller']=null;static get['requires'](){return[_0x5f1bcf,o];}constructor(_0x2050eb){super(_0x2050eb),this['_editing']=_0x2050eb['plugins']['get'](o);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x1ce85d){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new n(this['editor'],this['_editing'],_0x1ce85d);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class j{static['upload']({file:_0x1341af,..._0x1502a9}){return _0x5ae9b3(_0x1341af,_0x1502a9);}static['getInfo'](_0x1392e9,_0x30427a){return _0x543e76(_0x1392e9,_0x30427a);}}class f extends _0x5ba322{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0xd2c423,o];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x6e2f73=this['editor'];if(!!!_0x6e2f73['config']['get']('uploadcare'))return;_0x6e2f73['plugins']['get'](_0xd2c423)['createUploadAdapter']=_0x4e1c03=>new k(_0x4e1c03,_0x6e2f73),_0x6e2f73['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x3f30ed,{imageElement:_0x4e7dcf,data:_0x476ee0})=>{_0x6e2f73['model']['change'](_0x449fed=>{_0x449fed['setAttribute']('uploadcareImageId',_0x476ee0['uploadcareImageId'],_0x4e7dcf);});});}}class k{['loader'];['editor'];['controller'];constructor(_0x44b4a5,_0x4836d7){this['loader']=_0x44b4a5,this['editor']=_0x4836d7,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x3fd32d=await this['loader']['file'];return j['upload']({'file':_0x3fd32d,'publicKey':this['editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['editor']['config']['get']('uploadcare.uploader.baseUrl'),'baseCDN':this['editor']['config']['get']('uploadcare.uploader.cdnCname'),'signal':this['controller']['signal'],'onProgress':_0x53bf5d=>{_0x53bf5d&&_0x53bf5d['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x53bf5d['value']);}})['then'](async _0x60eabe=>{const {imageFallbackUrl:_0x412ecd,imageSources:_0x3a5bee}=C(_0x60eabe['cdnUrl'],_0x60eabe['imageInfo']['width']);return{'uploadcareImageId':_0x60eabe['uuid'],'default':_0x412ecd,'sources':_0x3a5bee};})['catch'](()=>{const _0x30a5fb=t('Cannot\x20upload\x20file:')+('\x20'+_0x3fd32d['name']+'.');return Promise['reject'](_0x30a5fb);});}['abort'](){this['controller']['abort']();}}class o extends _0x5ba322{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',f,_0x5f1bcf];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['ucContextId'];get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}constructor(_0x1136a6){super(_0x1136a6),this['ucContextId']=_0x26ebeb();}['init'](){const _0x499bee=this['editor'];_0x499bee['commands']['add']('uploadcare',new w(_0x499bee));}['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 _0x2732a2=_0x16b173['document']['querySelector']('input[uploadcare-file-input]');_0x2732a2&&_0x2732a2['remove']();}),async function(_0x342bb0){const _0x1d0fad=_0x431d0b([0x52,0x42,0x63,0x58,0x64,0x47,0x66,0x35,0x36,0x37,0x6d,0x4e,0x6a,0x4b,0x39,0x44,0x54,0x70,0x50,0x30,0x49,0x79,0x69,0x33,0x67,0x65,0x61,0x38,0x5a,0x76,0x7a,0x6c,0x45,0x34,0x62,0x46,0x75,0x57,0x72,0x77,0x73,0x48,0x31,0x68,0x6e,0x4f,0x53,0x4c,0x71,0x6b,0x59,0x32,0x4d,0x51,0x4a,0x78,0x6f,0x56,0x41,0x55,0x74,0x43]),_0x8b87ad=0x3d8d0df,_0x59c8e9=0x3dfa4c7^_0x8b87ad,_0x143f87=window[_0x431d0b([0x44,0x61,0x74,0x65])][_0x431d0b([0x6e,0x6f,0x77])](),_0x39ef4d=_0x342bb0[_0x431d0b([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x71d5ec=new window[(_0x431d0b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x19ee67=>{_0x39ef4d[_0x431d0b([0x6f,0x6e,0x63,0x65])](_0x431d0b([0x72,0x65,0x61,0x64,0x79]),_0x19ee67);}),_0x4322f5={[_0x431d0b([0x6b,0x74,0x79])]:_0x431d0b([0x45,0x43]),[_0x431d0b([0x75,0x73,0x65])]:_0x431d0b([0x73,0x69,0x67]),[_0x431d0b([0x63,0x72,0x76])]:_0x431d0b([0x50,0x2d,0x32,0x35,0x36]),[_0x431d0b([0x78])]:_0x431d0b([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]),[_0x431d0b([0x79])]:_0x431d0b([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]),[_0x431d0b([0x61,0x6c,0x67])]:_0x431d0b([0x45,0x53,0x32,0x35,0x36])},_0xd4251d=_0x39ef4d[_0x431d0b([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x431d0b([0x67,0x65,0x74])](_0x431d0b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x574104(){let _0x238d5b,_0x7808c5=null,_0x24f677=null;try{if(_0xd4251d==_0x431d0b([0x47,0x50,0x4c]))return _0x431d0b([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x238d5b=_0x54c95f(),!_0x238d5b)return _0x431d0b([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x238d5b[_0x431d0b([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x24f677=_0x6f9820(_0x238d5b[_0x431d0b([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x238d5b[_0x431d0b([0x6a,0x74,0x69])])),await _0x2599c6()?_0x4125bf()?_0x25ce6f()?_0x431d0b([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x53fa30()?(_0x238d5b[_0x431d0b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x431d0b([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x7808c5=_0x4a352f(_0x431d0b([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x238d5b[_0x431d0b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x431d0b([0x74,0x72,0x69,0x61,0x6c])&&(_0x7808c5=_0x4a352f(_0x431d0b([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x102238()):_0x431d0b([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x431d0b([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x431d0b([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x431d0b([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x25ce6f(){const _0x531bf6=[_0x431d0b([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x431d0b([0x74,0x72,0x69,0x61,0x6c])][_0x431d0b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x238d5b[_0x431d0b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x143f87/0x3e8:0xe10*_0x59c8e9;return _0x238d5b[_0x431d0b([0x65,0x78,0x70])]<_0x531bf6;}function _0x4125bf(){const _0x21092e=_0x238d5b[_0x431d0b([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x21092e&&(!!_0x21092e[_0x431d0b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x431d0b([0x2a]))||!!_0x21092e[_0x431d0b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x431d0b([0x55,0x50,0x4c,0x43])));}function _0x53fa30(){const _0x35c328=_0x238d5b[_0x431d0b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x35c328||0x0==_0x35c328[_0x431d0b([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x58aa13}=new URL(window[_0x431d0b([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x35c328[_0x431d0b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x58aa13))return!0x0;const _0x30b1e8=_0x58aa13[_0x431d0b([0x73,0x70,0x6c,0x69,0x74])](_0x431d0b([0x2e]));return _0x35c328[_0x431d0b([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x4377f8=>_0x4377f8[_0x431d0b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x431d0b([0x2a])))[_0x431d0b([0x6d,0x61,0x70])](_0x586fe7=>_0x586fe7[_0x431d0b([0x73,0x70,0x6c,0x69,0x74])](_0x431d0b([0x2e])))[_0x431d0b([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x399f19=>_0x399f19[_0x431d0b([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x30b1e8[_0x431d0b([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x431d0b([0x6d,0x61,0x70])](_0x50d627=>Array(_0x30b1e8[_0x431d0b([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x50d627[_0x431d0b([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x431d0b([0x66,0x69,0x6c,0x6c])](_0x50d627[0x0]===_0x431d0b([0x2a])?_0x431d0b([0x2a]):'')[_0x431d0b([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x50d627))[_0x431d0b([0x73,0x6f,0x6d,0x65])](_0x4a48c6=>_0x30b1e8[_0x431d0b([0x65,0x76,0x65,0x72,0x79])]((_0x18bfc0,_0x4062bd)=>_0x4a48c6[_0x4062bd]===_0x18bfc0||_0x4a48c6[_0x4062bd]===_0x431d0b([0x2a])));}function _0x102238(){return _0x7808c5&&_0x24f677?new window[(_0x431d0b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x47a40d,_0x148877)=>{_0x7808c5[_0x431d0b([0x74,0x68,0x65,0x6e])](_0x47a40d,_0x148877),_0x24f677[_0x431d0b([0x74,0x68,0x65,0x6e])](_0x260f20=>{_0x260f20!=_0x431d0b([0x56,0x61,0x6c,0x69,0x64])&&_0x47a40d(_0x260f20);},_0x148877);}):_0x7808c5||_0x24f677||_0x431d0b([0x56,0x61,0x6c,0x69,0x64]);}}function _0x6f9820(_0x131298,_0x5487e6){return new window[(_0x431d0b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3c5f14=>{if(_0x32301e())return _0x3c5f14(_0x431d0b([0x56,0x61,0x6c,0x69,0x64]));_0x4ab0b3(),_0x39ef4d[_0x431d0b([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x431d0b([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x222443=!0x1;const _0x4e151e=_0x26ebeb();function _0x18d11c(_0x17978f){return!!_0x17978f&&(typeof _0x17978f===_0x431d0b([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x17978f===_0x431d0b([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x17978f[_0x431d0b([0x74,0x68,0x65,0x6e])]===_0x431d0b([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x17978f[_0x431d0b([0x63,0x61,0x74,0x63,0x68])]===_0x431d0b([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x1dfe91(_0x448876){_0xf48017(_0x448876)[_0x431d0b([0x74,0x68,0x65,0x6e])](_0x15b214=>{if(!_0x15b214||_0x15b214[_0x431d0b([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x431d0b([0x6f,0x6b]))return _0x431d0b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x37cce4(_0x382d13(_0x4e151e+_0x5487e6))!=_0x15b214[_0x431d0b([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x431d0b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x431d0b([0x56,0x61,0x6c,0x69,0x64]);})[_0x431d0b([0x74,0x68,0x65,0x6e])](_0x10c2c3=>(_0x1aeb01(),_0x10c2c3),()=>{const _0x43a4c7=_0x452bbc();return null==_0x43a4c7?(_0x1aeb01(),_0x431d0b([0x56,0x61,0x6c,0x69,0x64])):_0x431d0b(_0x143f87-_0x43a4c7>(0x27d454df^_0x8b87ad)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x431d0b([0x74,0x68,0x65,0x6e])](_0x3c5f14)[_0x431d0b([0x63,0x61,0x74,0x63,0x68])](()=>{_0x3c5f14(_0x431d0b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x524ac2=0x3ee3e5f^_0x8b87ad;function _0x1aeb01(){const _0x119eeb=_0x431d0b([0x6c,0x6c,0x63,0x74,0x2d])+_0x37cce4(_0x382d13(_0x131298)),_0x168761=_0x358810(_0x37cce4(window[_0x431d0b([0x4d,0x61,0x74,0x68])][_0x431d0b([0x63,0x65,0x69,0x6c])](_0x143f87/_0x524ac2)));window[_0x431d0b([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x431d0b([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x119eeb,_0x168761);}function _0x452bbc(){const _0x1f50e3=_0x431d0b([0x6c,0x6c,0x63,0x74,0x2d])+_0x37cce4(_0x382d13(_0x131298)),_0x25e503=window[_0x431d0b([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x431d0b([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1f50e3);return _0x25e503?window[_0x431d0b([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x358810(_0x25e503),0x10)*_0x524ac2:null;}function _0xf48017(_0xbc7b6e){return new window[(_0x431d0b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x31aa0f,_0x2ac9be)=>{_0xbc7b6e[_0x431d0b([0x74,0x68,0x65,0x6e])](_0x31aa0f,_0x2ac9be),window[_0x431d0b([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x2ac9be,0x3d9041f^_0x8b87ad);});}}_0x39ef4d[_0x431d0b([0x6f,0x6e])](_0x431d0b([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x5f9546,_0x247c77)=>{if(_0x247c77[0x0]!=_0x131298)return _0x3c5f14(_0x431d0b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x247c77[0x1]={..._0x247c77[0x1],[_0x431d0b([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x4e151e};},{[_0x431d0b([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x431d0b([0x68,0x69,0x67,0x68])}),_0x39ef4d[_0x431d0b([0x6f,0x6e])](_0x431d0b([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x126516=>{_0x18d11c(_0x126516[_0x431d0b([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x222443=!0x0,_0x1dfe91(_0x126516[_0x431d0b([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x431d0b([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x431d0b([0x6c,0x6f,0x77])}),_0x71d5ec[_0x431d0b([0x74,0x68,0x65,0x6e])](()=>{_0x222443||_0x3c5f14(_0x431d0b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x32301e(){return _0x39ef4d[_0x431d0b([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x431d0b([0x76,0x69,0x65,0x77])][_0x431d0b([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x431d0b([0x61,0x75,0x74,0x6f]);}function _0x4ab0b3(){_0x39ef4d[_0x431d0b([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x431d0b([0x76,0x69,0x65,0x77])][_0x431d0b([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x431d0b([0x61,0x75,0x74,0x6f]);}}function _0x4a352f(_0x18f50a){const _0x2e95d0=[new window[(_0x431d0b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2832f3=>setTimeout(_0x2832f3,0x3d1ee13^_0x8b87ad)),_0x71d5ec[_0x431d0b([0x74,0x68,0x65,0x6e])](()=>new window[(_0x431d0b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x32538a=>{let _0x640209=0x0;_0x39ef4d[_0x431d0b([0x6d,0x6f,0x64,0x65,0x6c])][_0x431d0b([0x6f,0x6e])](_0x431d0b([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0xcd2d05,_0x213890)=>{_0x213890[0x0][_0x431d0b([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x640209++,_0x640209==(0x3d8d127^_0x8b87ad)&&(_0x32538a(),_0xcd2d05[_0x431d0b([0x6f,0x66,0x66])]());});}))];return window[_0x431d0b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x431d0b([0x72,0x61,0x63,0x65])](_0x2e95d0)[_0x431d0b([0x74,0x68,0x65,0x6e])](()=>_0x18f50a);}async function _0x4dd4d8(){await _0x71d5ec,_0x39ef4d[_0x431d0b([0x6d,0x6f,0x64,0x65,0x6c])][_0x431d0b([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x457471,_0x39ef4d[_0x431d0b([0x6d,0x6f,0x64,0x65,0x6c])][_0x431d0b([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x457471,_0x39ef4d[_0x431d0b([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x431d0b([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x2c6a47(_0x582392){const _0x338e5c=_0x1715ed();_0x39ef4d[_0x338e5c]=_0x431d0b([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x582392,_0x582392!=_0x431d0b([0x56,0x61,0x6c,0x69,0x64])&&_0x4dd4d8();}function _0x1715ed(){const _0x5117d4=window[_0x431d0b([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x431d0b([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x431d0b([0x6e,0x6f,0x77])]())[_0x431d0b([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x431d0b([0x2e]),'');let _0x21dca0=_0x431d0b([0x52]);for(let _0x4258a8=0x0;_0x4258a8<_0x5117d4[_0x431d0b([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4258a8+=0x2){let _0x3ba408=window[_0x431d0b([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5117d4[_0x431d0b([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4258a8,_0x4258a8+0x2));_0x3ba408>=_0x1d0fad[_0x431d0b([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x3ba408-=_0x1d0fad[_0x431d0b([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x21dca0+=_0x1d0fad[_0x3ba408];}return _0x21dca0;}function _0x54c95f(){const _0x44e701=_0xd4251d[_0x431d0b([0x73,0x70,0x6c,0x69,0x74])](_0x431d0b([0x2e]));if(0x3!=_0x44e701[_0x431d0b([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x406f74(_0x44e701[0x1]);function _0x406f74(_0x4a76b7){const _0x16d1c3=_0x1b57e3(_0x4a76b7);return _0x16d1c3&&_0x5d2da8()?_0x16d1c3:null;function _0x5d2da8(){const _0x586cd2=_0x16d1c3[_0x431d0b([0x6a,0x74,0x69])],_0x4cf2b1=window[_0x431d0b([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x586cd2[_0x431d0b([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x586cd2[_0x431d0b([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x45d8f4={..._0x16d1c3,[_0x431d0b([0x6a,0x74,0x69])]:_0x586cd2[_0x431d0b([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x586cd2[_0x431d0b([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x45d8f4[_0x431d0b([0x76,0x63])],_0x382d13(_0x45d8f4)==_0x4cf2b1;}}}async function _0x2599c6(){let _0x47062b=!0x0;try{const _0x3f696d=_0xd4251d[_0x431d0b([0x73,0x70,0x6c,0x69,0x74])](_0x431d0b([0x2e])),[_0x1339cc,_0x5066de,_0xc6e24]=_0x3f696d;return _0x727731(_0x1339cc),await _0x172c49(_0x1339cc,_0x5066de,_0xc6e24),_0x47062b;}catch{return!0x1;}function _0x727731(_0x12aa78){const _0x558e99=_0x1b57e3(_0x12aa78);_0x558e99&&_0x558e99[_0x431d0b([0x61,0x6c,0x67])]==_0x431d0b([0x45,0x53,0x32,0x35,0x36])||(_0x47062b=!0x1);}async function _0x172c49(_0x2e9db6,_0x505fc7,_0x5820fa){const _0x41ccbe=window[_0x431d0b([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x431d0b([0x66,0x72,0x6f,0x6d])](_0x39f370(_0x5820fa),_0x415bf6=>_0x415bf6[_0x431d0b([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x19d7ec=new window[(_0x431d0b([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x431d0b([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x2e9db6+_0x431d0b([0x2e])+_0x505fc7),_0x3dcd3a=window[_0x431d0b([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x431d0b([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x3dcd3a)return;const _0x10c1cd=await _0x3dcd3a[_0x431d0b([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x431d0b([0x6a,0x77,0x6b]),_0x4322f5,{[_0x431d0b([0x6e,0x61,0x6d,0x65])]:_0x431d0b([0x45,0x43,0x44,0x53,0x41]),[_0x431d0b([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x431d0b([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x431d0b([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x3dcd3a[_0x431d0b([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x431d0b([0x6e,0x61,0x6d,0x65])]:_0x431d0b([0x45,0x43,0x44,0x53,0x41]),[_0x431d0b([0x68,0x61,0x73,0x68])]:{[_0x431d0b([0x6e,0x61,0x6d,0x65])]:_0x431d0b([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x10c1cd,_0x41ccbe,_0x19d7ec)||(_0x47062b=!0x1);}}function _0x1b57e3(_0x567ef6){return _0x567ef6[_0x431d0b([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x431d0b([0x65,0x79]))?JSON[_0x431d0b([0x70,0x61,0x72,0x73,0x65])](_0x39f370(_0x567ef6)):null;}function _0x39f370(_0x4002eb){return window[_0x431d0b([0x61,0x74,0x6f,0x62])](_0x4002eb[_0x431d0b([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x431d0b([0x2b]))[_0x431d0b([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x431d0b([0x2f])));}function _0x382d13(_0x3d3274){let _0x54c81c=0x1505;function _0x406d1c(_0x557fac){for(let _0x5a8b4e=0x0;_0x5a8b4e<_0x557fac[_0x431d0b([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x5a8b4e++){const _0x301b4a=_0x557fac[_0x431d0b([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x5a8b4e);_0x54c81c=(_0x54c81c<<0x5)+_0x54c81c+_0x301b4a,_0x54c81c&=_0x54c81c;}}function _0x4e62af(_0x37f266){Array[_0x431d0b([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x37f266)?_0x37f266[_0x431d0b([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x4e62af):_0x37f266&&typeof _0x37f266==_0x431d0b([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x431d0b([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x37f266)[_0x431d0b([0x73,0x6f,0x72,0x74])]()[_0x431d0b([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x32f0a7,_0x464e36])=>{_0x406d1c(_0x32f0a7),_0x4e62af(_0x464e36);}):_0x406d1c(window[_0x431d0b([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x37f266));}return _0x4e62af(_0x3d3274),_0x54c81c>>>0x0;}function _0x37cce4(_0x3cb1d4){return _0x3cb1d4[_0x431d0b([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x431d0b([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x431d0b([0x30]));}function _0x358810(_0x322653){return _0x322653[_0x431d0b([0x73,0x70,0x6c,0x69,0x74])]('')[_0x431d0b([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x431d0b([0x6a,0x6f,0x69,0x6e])]('');}function _0x457471(){}function _0x431d0b(_0x3b06d2){return _0x3b06d2['map'](_0x3967af=>String['fromCharCode'](_0x3967af))['join']('');}_0x2c6a47(await _0x574104());}(this);}['_initSchema'](){const _0x1f1ed1=this['editor']['model']['schema'];_0x1f1ed1['isRegistered']('imageBlock')&&_0x1f1ed1['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x1f1ed1['isRegistered']('imageInline')&&_0x1f1ed1['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x425324=this['editor'];_0x425324['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x425324['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x2bf9c5=>_0x2bf9c5['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x39e6c7=_0x425324['commands']['get']('replaceImageSource');_0x39e6c7&&this['listenTo'](_0x39e6c7,'cleanupImage',(_0x12aa82,[_0x1bcbdf,_0x305688])=>{_0x1bcbdf['removeAttribute']('uploadcareImageId',_0x305688);});}['_initConfig'](){const _0x237438=this['editor']['config']['get']('uploadcare.uploader')||{},_0x51ce1b=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x136a00(_0x16b173['document'],'uc-config',{..._0x237438,'pubkey':_0x51ce1b,'ctx-name':'uploader-'+this['ucContextId'],'sourceList':'','imgOnly':'true','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage'],'externalSourcesEmbedCss':'\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup\x20{\x20padding:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-menu\x20{\x20gap:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-footer\x20{\x20padding-top:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__separator\x20{\x20margin:\x200;\x20}\x0a\x09\x09\x09'}),this['_configElement']['iconHrefResolver']=_0x419e2b=>{if('closeMax'==_0x419e2b)return'#uc-icon-arrow-down';},_0x16b173['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x136a00(_0x16b173['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader-'+this['ucContextId']}),_0x16b173['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0xf6c5ed=this['editor']['commands']['get']('insertImage');_0xf6c5ed&&this['listenTo'](_0xf6c5ed,'execute',()=>{const _0x589934=this['editor']['model']['document']['selection']['getSelectedElement']();_0x589934&&_0x589934['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x589934);});});const _0x5502ff=this['editor']['commands']['get']('uploadcareImageReplace');_0x5502ff&&this['listenTo'](_0x5502ff,'execute',()=>{const _0xdbe563=this['editor']['model']['document']['selection']['getSelectedElement']();_0xdbe563&&_0xdbe563['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0xdbe563);});});}}class tt extends _0x5ba322{static get['requires'](){return[o,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x586038){super(_0x586038),_0x586038['config']['define']('uploadcare.uploader.sourceList',[i['Local'],i['URL']]),_0x2dd39c['defineComponents'](_0x2dd39c);}}class ii extends _0x1ac545{constructor(_0x52ceca){super(_0x52ceca);const t=_0x52ceca['t'],_0x34863=this['bindTemplate'],_0x340f94=new _0x38df43();_0x340f94['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':[_0x340f94,{'text':_0x34863['to']('imageUploadProgress',_0x36b390=>t('Loading\x20image...')+'\x20('+(_0x36b390||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 _0x1ac545{constructor(_0x5469a8){super(_0x5469a8);const t=_0x5469a8['t'];this['set']('errorType',null);const _0x4c5581=new _0x39f50d(_0x5469a8);_0x4c5581['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x4c5581['withText']=!0x0,_0x4c5581['class']='ck-button-action',_0x4c5581['on']('execute',()=>{this['fire']('retry');}),_0x4c5581['bind']('isVisible')['to'](this,'errorType',_0x4ba384=>'NotFound'!==_0x4ba384);const _0x410e53=new _0x4924ef();_0x410e53['content']=_0x222c91,_0x410e53['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x28091f=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':[_0x410e53,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x28091f['to']('errorType',_0x59964c=>t('NotFound'!==_0x59964c?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x4c5581]},{'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 _0x1ac545{constructor(_0x23153,_0x4e9643){super(_0x23153);const _0x51a83b=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x4e9643,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x51a83b['to']('imageSrc')}});}}class X extends F{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x16dc41,_0x455753,_0x3ce909){super(_0x16dc41),this['_items']=this['createCollection'](),this['_loadingView']=new ii(_0x16dc41),this['_errorView']=new ti(_0x16dc41),this['_editingView']=new ei(_0x16dc41,_0x3ce909),this['_focusableView']=new _0x1ac545(_0x16dc41),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x455753),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'],_0x159aaa=>{this['_addUploadcareImageEditorListeners'](_0x159aaa);});}),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'](_0x39d1e7,_0x134ba8){const _0x1ba364='uc-cloud-image-editor',_0x44a18e=_0x39d1e7['querySelector'](_0x1ba364);if(_0x44a18e)return _0x134ba8(_0x44a18e);const _0x8e67e2=new MutationObserver(_0xa8ef65=>{const _0x3108af=_0xa8ef65['filter'](_0x50e6cf=>_0x50e6cf['target']===_0x39d1e7&&_0x50e6cf['addedNodes']['length']>0x0&&_0x50e6cf['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x1ba364);_0x3108af['length']&&(_0x8e67e2['disconnect'](),_0x134ba8(_0x3108af[0x0]['addedNodes'][0x0]));});_0x8e67e2['observe'](_0x39d1e7,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x3ef401){_0x3ef401['addEventListener']('apply',_0x16a5d2=>{this['fire']('apply',{'imageSrc':_0x16a5d2['detail']['cdnUrl']});}),_0x3ef401['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class E extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0x29ffde(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0xb5f966,_0x49516a,_0x4ef2b1){super(),this['_editor']=_0xb5f966,this['_dialog']=_0x49516a,this['_imageElement']=_0x4ef2b1,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 _0x28c3ba=this['_imageElement'],_0x4568f8=_0x28c3ba['getAttribute']('uploadcareImageId'),_0x159fea=_0x28c3ba['getAttribute']('src');if(_0x4568f8)await this['_loadImageInfo'](_0x4568f8,_0x159fea);else{if(this['_imageCache']['has'](_0x159fea)){const _0x19fae6=this['_imageCache']['get'](_0x159fea);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x19fae6['url'],this['imageDimension']=_0x19fae6['dimension'],this['imageId']=_0x19fae6['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x10d7d3}=this['_editor'],t=_0x10d7d3['t'],_0x40dc4e=new X(_0x10d7d3,this['imageStatus'],this['_attributes']);_0x40dc4e['bind']('status')['to'](this,'imageStatus'),_0x40dc4e['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x40dc4e['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x40dc4e['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x40dc4e,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x5b3293,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x40dc4e,'position':_0x37fdf6['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x40dc4e['focus']();},'onHide':()=>{_0x40dc4e['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x41bb98=>!A(_0x41bb98,_0x40dc4e['element'])}});}['_loadImageInfo'](_0x3de6cf,_0x304945){return j['getInfo'](_0x3de6cf,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl')})['then'](_0x48a2a1=>{const {width:_0x2c1194,height:_0x327c5d}=_0x48a2a1['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x304945,this['imageDimension']={'width':_0x2c1194,'height':_0x327c5d},this['imageId']=_0x3de6cf;})['catch'](_0x359484=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x359484['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x53778b,_0x268212){return this['_getImageAsFile'](_0x53778b)['then'](_0x4c169e=>j['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl'),'baseCDN':this['_editor']['config']['get']('uploadcare.uploader.cdnCname'),'signal':_0x268212['signal'],'file':_0x4c169e,'onProgress':_0x55e434=>{_0x55e434&&_0x55e434['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x55e434['value']));}}))['then'](_0xf4b12e=>{const {width:_0x1f6410,height:_0x53c306}=_0xf4b12e['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0xf4b12e['cdnUrl'],this['imageDimension']={'width':_0x1f6410,'height':_0x53c306},this['imageId']=_0xf4b12e['uuid'],this['imageUploadProgress']=null;const _0x2d984f=_0x53778b['getAttribute']('src');this['_imageCache']['set'](_0x2d984f,{'id':_0xf4b12e['uuid'],'url':_0xf4b12e['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0xe4914e=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0xe4914e['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x5525dd,_0x54dc1b){_0x5525dd['on']('apply',(_0xd1f912,_0x1f60d5)=>{this['_replaceImage'](_0x54dc1b,_0x1f60d5['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x5525dd['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x5525dd['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x441fca,_0x29912c,_0x54cc88){const _0x620e90=this['_editor'],{width:_0x46bd93,height:_0x460b6d}=S(_0x29912c,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x38d3cd,imageSources:_0x173fab}=C(_0x29912c,_0x46bd93);_0x620e90['model']['change'](_0xe4cf67=>{if('$graveyard'===_0x441fca['root']['rootName']){_0x620e90['execute']('insertImage',{'imageType':_0x441fca['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x441fca['getAttributes']()),'uploadcareImageId':_0x54cc88,'src':_0x38d3cd,'sources':_0x173fab,'width':_0x46bd93,'height':_0x460b6d}});const _0x48329c=_0x441fca['getChildren']();_0x441fca=_0x620e90['model']['document']['selection']['getSelectedElement']();for(const _0x182894 of _0x48329c)_0xe4cf67['append'](_0xe4cf67['cloneElement'](_0x182894),_0x441fca);}else _0xe4cf67['setSelection'](_0x441fca,'on'),_0x620e90['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x441fca['getAttributes']()),'uploadcareImageId':_0x54cc88,'src':_0x38d3cd,'sources':_0x173fab,'width':_0x46bd93,'height':_0x460b6d},_0x441fca);_0xe4cf67['setSelection'](_0x441fca,'on');});}async['_getImageAsFile'](_0x5a7e8c){const _0x383876=_0x16b173['window'],_0x531a2f=_0x16b173['document']['location']['href'],_0x1e4e3c=new _0x383876['URL'](_0x5a7e8c['getAttribute']('src'),_0x531a2f);if('data:'===_0x1e4e3c['protocol']){const _0x346818=_0x1e4e3c['href']['split'](','),_0x1c2d23=_0x346818[0x0]['match'](/:(.*?);/)[0x1],_0x28d9a2=_0x1c2d23['split']('/')[0x1],_0xf1ed66=_0x383876['atob'](_0x346818[_0x346818['length']-0x1]);let _0x1113a4=_0xf1ed66['length'];const _0x581b35=new _0x383876['Uint8Array'](_0x1113a4);for(;_0x1113a4--;)_0x581b35[_0x1113a4]=_0xf1ed66['charCodeAt'](_0x1113a4);return new _0x383876['File']([_0x581b35],'image.'+_0x28d9a2,{'type':_0x1c2d23});}const _0x4a1200=_0x1e4e3c['href']['split']('/'),_0x3a6fb1=_0x4a1200[_0x4a1200['length']-0x1],_0x4005bc=_0x3a6fb1['split']('.')[0x1];return _0x383876['fetch'](_0x1e4e3c['href'])['then'](_0x159077=>_0x159077['clone']()['blob']())['then'](_0x4c1bdd=>new _0x383876['File']([_0x4c1bdd],_0x3a6fb1,{'type':'image/'+_0x4005bc}));}}class O extends _0x2ef60a{['imageEditController'];static get['requires'](){return[_0x5f1bcf];}['_isEditable'];constructor(_0xed7f61){super(_0xed7f61),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x47fdfb){const _0x288f84=G(_0x47fdfb);return _0x588af9=>!(!_0x588af9||!_0x588af9['is']('element','imageBlock')&&!_0x588af9['is']('element','imageInline'))&&(!!_0x588af9['hasAttribute']('uploadcareImageId')||!!_0x588af9['hasAttribute']('src')&&_0x288f84(_0x588af9['getAttribute']('src')));}(_0xed7f61['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x3ef61e=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x3ef61e);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x74f849=this['editor']['model']['document']['selection']['getSelectedElement']();_0x74f849&&(_0x74f849['is']('element','imageBlock')||_0x74f849['is']('element','imageInline'))&&(this['imageEditController']=new E(this['editor'],this['editor']['plugins']['get'](_0x5f1bcf),_0x74f849),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class R extends _0x2ef60a{['refresh'](){const _0xf8558=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0xf8558&&(_0xf8558['is']('element','imageBlock')||_0xf8558['is']('element','imageInline')));}['execute'](_0x43e9d5){const _0x43693a=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x127134=>{_0x127134['setAttributes'](_0x43e9d5,_0x43693a),_0x127134['removeAttribute']('srcset',_0x43693a),_0x127134['removeAttribute']('sizes',_0x43693a);});}}class m extends _0x5ba322{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[o,_0x36f06d,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x34d89d}=this;_0x34d89d['commands']['add']('uploadcareImageEdit',new O(_0x34d89d)),_0x34d89d['commands']['add']('uploadcareImageReplace',new R(_0x34d89d));}}class g extends _0x5ba322{['_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 _0x245b54=this['editor'];_0x245b54['ui']['componentFactory']['add']('uploadcareImageEdit',_0x3e5e75=>{const _0x7d20a7=_0x245b54['commands']['get']('uploadcareImageEdit'),_0x510e21=new _0x39f50d(_0x3e5e75),t=_0x3e5e75['t'];return _0x510e21['set']({'icon':_0x5b3293,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x510e21['bind']('isEnabled')['to'](_0x7d20a7),_0x510e21['bind']('isOn')['to'](_0x7d20a7,'isActive'),this['listenTo'](_0x510e21,'execute',()=>{_0x245b54['execute']('uploadcareImageEdit'),_0x245b54['editing']['view']['focus']();}),_0x510e21;}),this['_initConfig']();}['_initConfig'](){const _0x1305c4=_0x136a00(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x1305c4),this['listenTo'](this['editor'],'destroy',()=>{_0x1305c4['remove']();});}}class et extends _0x5ba322{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-20250922.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-20250922.0",
|
|
27
|
+
"@ckeditor/ckeditor5-icons": "0.0.0-nightly-20250922.0",
|
|
28
|
+
"@ckeditor/ckeditor5-image": "0.0.0-nightly-20250922.0",
|
|
29
|
+
"@ckeditor/ckeditor5-theme-lark": "0.0.0-nightly-20250922.0",
|
|
30
|
+
"@ckeditor/ckeditor5-ui": "0.0.0-nightly-20250922.0",
|
|
31
|
+
"@ckeditor/ckeditor5-upload": "0.0.0-nightly-20250922.0",
|
|
32
|
+
"@ckeditor/ckeditor5-utils": "0.0.0-nightly-20250922.0",
|
|
33
|
+
"ckeditor5": "0.0.0-nightly-20250922.0",
|
|
34
34
|
"@uploadcare/file-uploader": "1.19.4",
|
|
35
35
|
"@uploadcare/upload-client": "6.14.3"
|
|
36
36
|
},
|
|
@@ -20,5 +20,5 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
24
|
-
|
|
23
|
+
const _0x2148fc=_0x5d2b;(function(_0x26ca95,_0x48c6ce){const _0x907194=_0x5d2b,_0x759e5d=_0x26ca95();while(!![]){try{const _0xe9fc48=parseInt(_0x907194(0x1c4))/0x1*(-parseInt(_0x907194(0x1a2))/0x2)+parseInt(_0x907194(0x1ce))/0x3+-parseInt(_0x907194(0x1d8))/0x4*(parseInt(_0x907194(0x1d6))/0x5)+parseInt(_0x907194(0x1bc))/0x6*(parseInt(_0x907194(0x199))/0x7)+parseInt(_0x907194(0x1e0))/0x8*(-parseInt(_0x907194(0x1ac))/0x9)+parseInt(_0x907194(0x1bb))/0xa*(-parseInt(_0x907194(0x1be))/0xb)+parseInt(_0x907194(0x1ca))/0xc;if(_0xe9fc48===_0x48c6ce)break;else _0x759e5d['push'](_0x759e5d['shift']());}catch(_0x56275e){_0x759e5d['push'](_0x759e5d['shift']());}}}(_0x3faa,0x84428));function _0x5d2b(_0x2b531d,_0x10f6dd){const _0x3faa92=_0x3faa();return _0x5d2b=function(_0x5d2b3e,_0x2662ef){_0x5d2b3e=_0x5d2b3e-0x195;let _0x295eac=_0x3faa92[_0x5d2b3e];return _0x295eac;},_0x5d2b(_0x2b531d,_0x10f6dd);}import{IconUploadcareImageUpload as _0x69a48d}from'ckeditor5/src/icons.js';import{ObservableMixin as _0x4d8611}from'ckeditor5/src/utils.js';import{Dialog as _0x5339d2,DialogViewPosition as _0x1c64ca}from'ckeditor5/src/ui.js';import{UploadcareFormView as _0x4c6f31}from'./uploadcareformview.js';import{UploadcareSource as _0x4c9daf}from'../uploadcareconfig.js';import{getTranslation as _0x51189a}from'../utils/common-translations.js';function _0x3faa(){const _0x52d3bc=['document','linkHref','stopListening','image','removeSelectionAttribute','_initDialog','8860OuNvaj','6MfhUVm','_insertAsset','7447WjjtjB','width','stopDelegating','get','_api','doneFlow','3559xuQKWn','imageInfo','source-list','show','plugins','_dialog','13313820vVAadl','_initListeners','hide','element','687750XrOqDI','setAttribute','getLastPosition','length','selection','EDITOR_TOP_CENTER','attributes','allEntries','26585gMvcpw','_formView','60gxpSFf','ctxElement','setCurrentActivity','text','detail','getOutputCollectionState','Replace','uuid','90872UQQnVP','status','ucContextId','change','Insert','4975474NOYyYD','destroy','insertImage','idle','done-click','imageBlock','isOpen','editing','Local','242UXUxbH','imageInline','getAPI','_editing','_insertImage','execute','focus','setSelection','removeAllFiles','uploadCare','315NhWRWl','configElement','initFlow','getSelectedElement','model','_type','addEventListener','_editor','view'];_0x3faa=function(){return _0x52d3bc;};return _0x3faa();}import{getImageUrls as _0x19ad13,getImageDimension as _0x267cf8}from'../utils/editingutils.js';import{isAncestor as _0x2485d7}from'../utils/isancestor.js';export class UploadcareController extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x4d8611(){[_0x2148fc(0x1b3)];[_0x2148fc(0x1c9)];[_0x2148fc(0x1a5)];[_0x2148fc(0x1c2)];[_0x2148fc(0x1b1)]=null;[_0x2148fc(0x1d7)]=null;constructor(_0x31a414,_0x235f0e,_0x482897){const _0x1a0631=_0x2148fc;super(),this[_0x1a0631(0x1b3)]=_0x31a414,this[_0x1a0631(0x1a5)]=_0x235f0e,this[_0x1a0631(0x1c9)]=_0x31a414[_0x1a0631(0x1c8)][_0x1a0631(0x1c1)](_0x5339d2),this[_0x1a0631(0x1c2)]=_0x235f0e[_0x1a0631(0x1d9)][_0x1a0631(0x1a4)](),this[_0x1a0631(0x1b1)]=_0x482897,this[_0x1a0631(0x1a5)][_0x1a0631(0x1ad)][_0x1a0631(0x1cf)](_0x1a0631(0x1c6),this[_0x1a0631(0x1b1)]),this[_0x1a0631(0x1ba)](),this[_0x1a0631(0x1cb)](),this[_0x1a0631(0x1c2)][_0x1a0631(0x1ae)]();}[_0x2148fc(0x19a)](){const _0x200bb3=_0x2148fc;this[_0x200bb3(0x1d7)]&&(this[_0x200bb3(0x1d7)][_0x200bb3(0x19a)](),this[_0x200bb3(0x1d7)]=null),this[_0x200bb3(0x1c2)]&&this[_0x200bb3(0x1c2)][_0x200bb3(0x1c3)](),this[_0x200bb3(0x1b7)](),this[_0x200bb3(0x1c0)]();}[_0x2148fc(0x1ba)](){const _0x13949b=_0x2148fc,{locale:_0x3d4496,model:_0x5051a9}=this[_0x13949b(0x1b3)],_0x7e4788=_0x5051a9[_0x13949b(0x1b5)][_0x13949b(0x1d2)][_0x13949b(0x1af)](),_0x155fb9=_0x7e4788&&(_0x7e4788['is'](_0x13949b(0x1cd),_0x13949b(0x19e))||_0x7e4788['is'](_0x13949b(0x1cd),_0x13949b(0x1a3)));this[_0x13949b(0x1d7)]=new _0x4c6f31(_0x3d4496,this[_0x13949b(0x1a5)][_0x13949b(0x196)]),this[_0x13949b(0x1c9)][_0x13949b(0x1c7)]({'id':_0x13949b(0x1ab),'icon':_0x69a48d,'title':_0x51189a(_0x3d4496,this[_0x13949b(0x1b1)],_0x155fb9?_0x13949b(0x1de):_0x13949b(0x198))[_0x13949b(0x1db)],'content':this[_0x13949b(0x1d7)],'position':_0x1c64ca[_0x13949b(0x1d3)],'isModal':!0x0,'onShow':()=>{const _0x1682f7=_0x13949b;this[_0x1682f7(0x1d7)][_0x1682f7(0x1a8)]();},'onHide':()=>{const _0x5339c2=_0x13949b;this[_0x5339c2(0x1c2)][_0x5339c2(0x1aa)](),this[_0x5339c2(0x1b3)][_0x5339c2(0x1a0)][_0x5339c2(0x1b4)][_0x5339c2(0x1a8)](),this[_0x5339c2(0x19a)]();},'keystrokeHandlerOptions':{'filter':_0x5be5ec=>!_0x2485d7(_0x5be5ec,this[_0x13949b(0x1d7)][_0x13949b(0x1cd)])}});}[_0x2148fc(0x1cb)](){const _0x3a8b82=_0x2148fc;this[_0x3a8b82(0x1a5)][_0x3a8b82(0x1d9)][_0x3a8b82(0x1b2)](_0x3a8b82(0x19d),()=>{const _0x4afdab=_0x3a8b82,{allEntries:_0x3430cf}=this[_0x4afdab(0x1c2)][_0x4afdab(0x1dd)]();this[_0x4afdab(0x1b3)][_0x4afdab(0x1b0)][_0x4afdab(0x197)](_0xe5ea48=>{const _0x3983de=_0x4afdab,_0x1b5451=_0x3430cf[_0x3983de(0x1d1)];for(const _0x3d92f5 of _0x3430cf){const _0x1169b9=_0x3d92f5===_0x3430cf[_0x1b5451-0x1],{cdnUrl:_0x2126ed,fileInfo:_0x1ff607}=_0x3d92f5;if(!_0x2126ed||!_0x1ff607)continue;const {width:_0x345669,height:_0x23844f}=_0x1ff607[_0x3983de(0x1c5)],_0x2f6a02=_0x267cf8(_0x2126ed,_0x345669,_0x23844f),_0x29c611=_0x19ad13(_0x2126ed,_0x2f6a02[_0x3983de(0x1bf)]),_0x1c5553={'id':_0x1ff607[_0x3983de(0x1df)],'type':_0x3983de(0x1b8),'attributes':{'imageDimension':_0x2f6a02,..._0x29c611}};this[_0x3983de(0x1bd)](_0x1c5553,_0x1169b9,_0xe5ea48);}}),this[_0x4afdab(0x1c9)][_0x4afdab(0x1cc)]();}),this[_0x3a8b82(0x1a5)][_0x3a8b82(0x1d9)][_0x3a8b82(0x1b2)](_0x3a8b82(0x197),_0x3cad50=>{const _0x93a7df=_0x3a8b82;_0x93a7df(0x19c)===_0x3cad50[_0x93a7df(0x1dc)][_0x93a7df(0x195)]&&!_0x3cad50[_0x93a7df(0x1dc)][_0x93a7df(0x1d5)][_0x93a7df(0x1d1)]&&this[_0x93a7df(0x1c9)][_0x93a7df(0x19f)]&&(this[_0x93a7df(0x1b1)]===_0x4c9daf[_0x93a7df(0x1a1)]?this[_0x93a7df(0x1c2)][_0x93a7df(0x1da)](_0x4c9daf[_0x93a7df(0x1a1)]):this[_0x93a7df(0x1c2)][_0x93a7df(0x1ae)]());});}[_0x2148fc(0x1bd)](_0x457d11,_0x1dffbd,_0x4f1df6){const _0x6156f2=_0x2148fc,_0x211b5b=this[_0x6156f2(0x1b3)][_0x6156f2(0x1b0)][_0x6156f2(0x1b5)][_0x6156f2(0x1d2)],_0x26d5ca=_0x211b5b[_0x6156f2(0x1af)](),_0x10225a=!(!_0x26d5ca||!_0x26d5ca['is'](_0x6156f2(0x1cd),_0x6156f2(0x1a3)));_0x4f1df6[_0x6156f2(0x1b9)](_0x6156f2(0x1b6)),this[_0x6156f2(0x1a6)](_0x457d11,_0x10225a),_0x1dffbd||_0x4f1df6[_0x6156f2(0x1a9)](_0x211b5b[_0x6156f2(0x1d0)]());}[_0x2148fc(0x1a6)](_0x3a0dc6,_0x34a562){const _0x35be21=_0x2148fc,_0x2440c8=this[_0x35be21(0x1b3)],{imageDimension:_0x32d1ec,imageFallbackUrl:_0x5a03bb,imageSources:_0x33b43d}=_0x3a0dc6[_0x35be21(0x1d4)];_0x2440c8[_0x35be21(0x1a7)](_0x35be21(0x19b),{'imageType':_0x34a562?_0x35be21(0x1a3):null,'source':{'uploadcareImageId':_0x3a0dc6['id'],'src':_0x5a03bb,'sources':_0x33b43d,..._0x32d1ec}});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
var _0x1b1696=_0x5302;(function(_0x52daf1,_0x573b84){var _0x2e6673=_0x5302,_0xc44cfc=_0x52daf1();while(!![]){try{var _0x2e9cb0=-parseInt(_0x2e6673(0x9d))/0x1+-parseInt(_0x2e6673(0xa6))/0x2+-parseInt(_0x2e6673(0xa7))/0x3+-parseInt(_0x2e6673(0x9b))/0x4+parseInt(_0x2e6673(0x99))/0x5+-parseInt(_0x2e6673(0x97))/0x6+-parseInt(_0x2e6673(0x95))/0x7*(-parseInt(_0x2e6673(0xa5))/0x8);if(_0x2e9cb0===_0x573b84)break;else _0xc44cfc['push'](_0xc44cfc['shift']());}catch(_0x4be825){_0xc44cfc['push'](_0xc44cfc['shift']());}}}(_0x3737,0x3b236));import{DialogFocusManagerView as _0x234bb6}from'../utils/dialogfocusmanagerview.js';import'../../theme/uploadcare-form.css';function _0x5302(_0x53f6ab,_0xd82e3a){var _0x373795=_0x3737();return _0x5302=function(_0x530226,_0x19c8e5){_0x530226=_0x530226-0x95;var _0x178376=_0x373795[_0x530226];return _0x178376;},_0x5302(_0x53f6ab,_0xd82e3a);}export class UploadcareFormView extends _0x234bb6{constructor(_0x36d3c7,_0x11b0c4){var _0x273b7d=_0x5302;super(_0x36d3c7),this[_0x273b7d(0x98)]({'tag':_0x273b7d(0x9f),'attributes':{'class':['ck',_0x273b7d(0xa1),_0x273b7d(0x9c)],'tabindex':'-1'},'children':[{'tag':_0x273b7d(0x96),'attributes':{'class':[_0x273b7d(0x9e),_0x273b7d(0xa4)],'ctx-name':_0x273b7d(0xa3)+_0x11b0c4}},this[_0x273b7d(0xa2)]()]});}[_0x1b1696(0xa0)](){var _0x119162=_0x1b1696;this[_0x119162(0x9a)][_0x119162(0xa0)]();}}function _0x3737(){var _0x3b3e2c=['277968Xsnwco','ck-uploadcare-form','6590ftNrat','uc-light','div','focus','ck-reset_all-excluded','getFocusableElement','uploader-','ck-uploadcare-theme','1448gvhEPr','695682rOlXAR','215991IwOJtz','26383QkXFzy','uc-file-uploader-inline','2358504SiRlIF','setTemplate','2245225TkVnjU','element'];_0x3737=function(){return _0x3b3e2c;};return _0x3737();}
|
package/src/uploadcareediting.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x2517ff=_0x58ce;(function(_0x15d92e,_0xa724c4){const _0x2521ba=_0x58ce,_0x1839d7=_0x15d92e();while(!![]){try{const _0x16d95f=parseInt(_0x2521ba(0x1b6))/0x1+-parseInt(_0x2521ba(0x194))/0x2*(parseInt(_0x2521ba(0x1ac))/0x3)+-parseInt(_0x2521ba(0x1b4))/0x4*(-parseInt(_0x2521ba(0x16f))/0x5)+parseInt(_0x2521ba(0x182))/0x6+parseInt(_0x2521ba(0x199))/0x7+parseInt(_0x2521ba(0x1b8))/0x8+-parseInt(_0x2521ba(0x174))/0x9;if(_0x16d95f===_0xa724c4)break;else _0x1839d7['push'](_0x1839d7['shift']());}catch(_0x2b999a){_0x1839d7['push'](_0x1839d7['shift']());}}}(_0x136d,0x3d6c7));import{Plugin as _0xd99538}from'ckeditor5/src/core.js';import{Dialog as _0x4f6c26}from'ckeditor5/src/ui.js';import{createElement as _0x39762e,global as _0x3d572f,uid as _0x417ff9}from'ckeditor5/src/utils.js';import{UploadcareCommand as _0x365375}from'./uploadcarecommand.js';function _0x136d(){const _0x25174d=['pluginName','PictureEditing','elementToAttribute','_initSchema','_ctxElement','#uc-icon-arrow-down','true','removeAttribute','config','input[uploadcare-file-input]','listenTo','cleanupImage','_initConversion','2456616vfacFB','view','uploadcare.pubkey','editing','contentLanguage','imageInline','closeMax','extend','destroy','execute','getSelectedElement','remove','schema','upcast','locale','uploader-','uploadcare.uploader','for','15898gCtKIU','fromCharCode','ctxElement','editor','uc-upload-ctx-provider','2123240pNozAs','commands','_initCtx','ucContextId','_initImageProcessingIndicator','uploadcareImageId','insertImage','afterInit','get','document','model','imageBlock','map','uploadcare','render','_initConfig','downcast','uc-config','join','75KXrwsD','body','getAttribute','isPremiumPlugin','add','isOfficialPlugin','UploadcareEditing','_configElement','14552yftYRR','replaceImageSource','291179JGaJpH','conversion','3634200asbIzz','data-uc-image-id','configElement','init','uploadcareImageReplace','once','requires','selection','attributeToAttribute','appendChild','isRegistered','115MPvpAz','\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','href','querySelector','iconHrefResolver','9824112lqeETv'];_0x136d=function(){return _0x25174d;};return _0x136d();}function _0x58ce(_0x48498c,_0x1e3c5f){const _0x136ddf=_0x136d();return _0x58ce=function(_0x58cede,_0x5439cb){_0x58cede=_0x58cede-0x166;let _0x49ed18=_0x136ddf[_0x58cede];return _0x49ed18;},_0x58ce(_0x48498c,_0x1e3c5f);}import{UploadcareUploadAdapter as _0x13fec0}from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0x242ca4}from'./utils/editingutils.js';export class UploadcareEditing extends _0xd99538{[_0x2517ff(0x1b3)]=null;[_0x2517ff(0x179)]=null;static get[_0x2517ff(0x175)](){const _0x4b5874=_0x2517ff;return _0x4b5874(0x1b2);}static get[_0x2517ff(0x16a)](){const _0x524c2a=_0x2517ff;return[_0x524c2a(0x176),_0x13fec0,_0x4f6c26];}static get[_0x2517ff(0x1b1)](){return!0x0;}static get[_0x2517ff(0x1af)](){return!0x0;}[_0x2517ff(0x19c)];get[_0x2517ff(0x166)](){const _0x3a1f96=_0x2517ff;return this[_0x3a1f96(0x1b3)];}get[_0x2517ff(0x196)](){const _0x234f85=_0x2517ff;return this[_0x234f85(0x179)];}constructor(_0x37a4cd){const _0x114a65=_0x2517ff;super(_0x37a4cd),this[_0x114a65(0x19c)]=_0x417ff9();}[_0x2517ff(0x167)](){const _0x5007e6=_0x2517ff,_0x5833e8=this[_0x5007e6(0x197)];_0x5833e8[_0x5007e6(0x19a)][_0x5007e6(0x1b0)](_0x5007e6(0x1a6),new _0x365375(_0x5833e8));}[_0x2517ff(0x1a0)](){const _0x37188f=_0x2517ff;this[_0x37188f(0x178)](),this[_0x37188f(0x181)](),this[_0x37188f(0x1a8)](),this[_0x37188f(0x19b)](),this[_0x37188f(0x19d)](),this[_0x37188f(0x17f)](this[_0x37188f(0x197)],_0x37188f(0x18a),()=>{const _0x37901a=_0x37188f;this[_0x37901a(0x1b3)]&&(this[_0x37901a(0x1b3)][_0x37901a(0x18d)](),this[_0x37901a(0x1b3)]=null),this[_0x37901a(0x179)]&&(this[_0x37901a(0x179)][_0x37901a(0x18d)](),this[_0x37901a(0x179)]=null);const _0x66b99e=_0x3d572f[_0x37901a(0x1a2)][_0x37901a(0x172)](_0x37901a(0x17e));_0x66b99e&&_0x66b99e[_0x37901a(0x18d)]();}),async function(_0x36ca59){const _0x9f4c60=_0x1cb8d4([0x52,0x42,0x63,0x58,0x64,0x47,0x66,0x35,0x36,0x37,0x6d,0x4e,0x6a,0x4b,0x39,0x44,0x54,0x70,0x50,0x30,0x49,0x79,0x69,0x33,0x67,0x65,0x61,0x38,0x5a,0x76,0x7a,0x6c,0x45,0x34,0x62,0x46,0x75,0x57,0x72,0x77,0x73,0x48,0x31,0x68,0x6e,0x4f,0x53,0x4c,0x71,0x6b,0x59,0x32,0x4d,0x51,0x4a,0x78,0x6f,0x56,0x41,0x55,0x74,0x43]),_0x10ac02=0x3d8d0df,_0x28bce0=0x3dfa4df^_0x10ac02,_0x1ec45a=window[_0x1cb8d4([0x44,0x61,0x74,0x65])][_0x1cb8d4([0x6e,0x6f,0x77])](),_0x331c3c=_0x36ca59[_0x1cb8d4([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x46c911=new window[(_0x1cb8d4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5c5b4e=>{_0x331c3c[_0x1cb8d4([0x6f,0x6e,0x63,0x65])](_0x1cb8d4([0x72,0x65,0x61,0x64,0x79]),_0x5c5b4e);}),_0x44c5ac={[_0x1cb8d4([0x6b,0x74,0x79])]:_0x1cb8d4([0x45,0x43]),[_0x1cb8d4([0x75,0x73,0x65])]:_0x1cb8d4([0x73,0x69,0x67]),[_0x1cb8d4([0x63,0x72,0x76])]:_0x1cb8d4([0x50,0x2d,0x32,0x35,0x36]),[_0x1cb8d4([0x78])]:_0x1cb8d4([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]),[_0x1cb8d4([0x79])]:_0x1cb8d4([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]),[_0x1cb8d4([0x61,0x6c,0x67])]:_0x1cb8d4([0x45,0x53,0x32,0x35,0x36])},_0x46784a=_0x331c3c[_0x1cb8d4([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x1cb8d4([0x67,0x65,0x74])](_0x1cb8d4([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x59e7e7(){let _0x76754e,_0x541c9d=null,_0x5643d3=null;try{if(_0x46784a==_0x1cb8d4([0x47,0x50,0x4c]))return _0x1cb8d4([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x76754e=_0x328a98(),!_0x76754e)return _0x1cb8d4([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x76754e[_0x1cb8d4([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x5643d3=_0x3a113d(_0x76754e[_0x1cb8d4([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x76754e[_0x1cb8d4([0x6a,0x74,0x69])])),await _0x31a5ad()?_0x12cea4()?_0x1ab403()?_0x1cb8d4([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x1cb3c9()?(_0x76754e[_0x1cb8d4([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x1cb8d4([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x541c9d=_0x23162f(_0x1cb8d4([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x76754e[_0x1cb8d4([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x1cb8d4([0x74,0x72,0x69,0x61,0x6c])&&(_0x541c9d=_0x23162f(_0x1cb8d4([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x22df10()):_0x1cb8d4([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x1cb8d4([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x1cb8d4([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x1cb8d4([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x1ab403(){const _0x485d5f=[_0x1cb8d4([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x1cb8d4([0x74,0x72,0x69,0x61,0x6c])][_0x1cb8d4([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x76754e[_0x1cb8d4([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x1ec45a/0x3e8:0xe10*_0x28bce0;return _0x76754e[_0x1cb8d4([0x65,0x78,0x70])]<_0x485d5f;}function _0x12cea4(){const _0x3476c8=_0x76754e[_0x1cb8d4([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x3476c8&&(!!_0x3476c8[_0x1cb8d4([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1cb8d4([0x2a]))||!!_0x3476c8[_0x1cb8d4([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1cb8d4([0x55,0x50,0x4c,0x43])));}function _0x1cb3c9(){const _0x576117=_0x58ce,_0x41b00f=_0x76754e[_0x1cb8d4([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x41b00f||0x0==_0x41b00f[_0x1cb8d4([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x4be203}=new URL(window[_0x1cb8d4([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x576117(0x171)]);if(_0x41b00f[_0x1cb8d4([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4be203))return!0x0;const _0xf0c973=_0x4be203[_0x1cb8d4([0x73,0x70,0x6c,0x69,0x74])](_0x1cb8d4([0x2e]));return _0x41b00f[_0x1cb8d4([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x434a61=>_0x434a61[_0x1cb8d4([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1cb8d4([0x2a])))[_0x1cb8d4([0x6d,0x61,0x70])](_0x4cb9e9=>_0x4cb9e9[_0x1cb8d4([0x73,0x70,0x6c,0x69,0x74])](_0x1cb8d4([0x2e])))[_0x1cb8d4([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x4f0148=>_0x4f0148[_0x1cb8d4([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0xf0c973[_0x1cb8d4([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x1cb8d4([0x6d,0x61,0x70])](_0x2d1b15=>Array(_0xf0c973[_0x1cb8d4([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x2d1b15[_0x1cb8d4([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x1cb8d4([0x66,0x69,0x6c,0x6c])](_0x2d1b15[0x0]===_0x1cb8d4([0x2a])?_0x1cb8d4([0x2a]):'')[_0x1cb8d4([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x2d1b15))[_0x1cb8d4([0x73,0x6f,0x6d,0x65])](_0x5e5b7b=>_0xf0c973[_0x1cb8d4([0x65,0x76,0x65,0x72,0x79])]((_0x13ab87,_0x356a3b)=>_0x5e5b7b[_0x356a3b]===_0x13ab87||_0x5e5b7b[_0x356a3b]===_0x1cb8d4([0x2a])));}function _0x22df10(){return _0x541c9d&&_0x5643d3?new window[(_0x1cb8d4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x138dae,_0x420ba0)=>{_0x541c9d[_0x1cb8d4([0x74,0x68,0x65,0x6e])](_0x138dae,_0x420ba0),_0x5643d3[_0x1cb8d4([0x74,0x68,0x65,0x6e])](_0x190b31=>{_0x190b31!=_0x1cb8d4([0x56,0x61,0x6c,0x69,0x64])&&_0x138dae(_0x190b31);},_0x420ba0);}):_0x541c9d||_0x5643d3||_0x1cb8d4([0x56,0x61,0x6c,0x69,0x64]);}}function _0x3a113d(_0x1813d9,_0x2ed250){return new window[(_0x1cb8d4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4b9aac=>{if(_0x393c41())return _0x4b9aac(_0x1cb8d4([0x56,0x61,0x6c,0x69,0x64]));_0x2057ba(),_0x331c3c[_0x1cb8d4([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x1cb8d4([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x56784d=!0x1;const _0x428ad9=_0x417ff9();function _0x52f7ac(_0x291027){return!!_0x291027&&(typeof _0x291027===_0x1cb8d4([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x291027===_0x1cb8d4([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x291027[_0x1cb8d4([0x74,0x68,0x65,0x6e])]===_0x1cb8d4([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x291027[_0x1cb8d4([0x63,0x61,0x74,0x63,0x68])]===_0x1cb8d4([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x18b7de(_0x36181a){_0xb45e1a(_0x36181a)[_0x1cb8d4([0x74,0x68,0x65,0x6e])](_0x55f894=>{if(!_0x55f894||_0x55f894[_0x1cb8d4([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x1cb8d4([0x6f,0x6b]))return _0x1cb8d4([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x3d68c8(_0x4e9e69(_0x428ad9+_0x2ed250))!=_0x55f894[_0x1cb8d4([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x1cb8d4([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x1cb8d4([0x56,0x61,0x6c,0x69,0x64]);})[_0x1cb8d4([0x74,0x68,0x65,0x6e])](_0xa828d9=>(_0x4ecccf(),_0xa828d9),()=>{const _0x233967=_0x32d6eb();return null==_0x233967?(_0x4ecccf(),_0x1cb8d4([0x56,0x61,0x6c,0x69,0x64])):_0x1cb8d4(_0x1ec45a-_0x233967>(0x27d454df^_0x10ac02)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x1cb8d4([0x74,0x68,0x65,0x6e])](_0x4b9aac)[_0x1cb8d4([0x63,0x61,0x74,0x63,0x68])](()=>{_0x4b9aac(_0x1cb8d4([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x10c9c1=0x3ee3e5f^_0x10ac02;function _0x4ecccf(){const _0x526660=_0x1cb8d4([0x6c,0x6c,0x63,0x74,0x2d])+_0x3d68c8(_0x4e9e69(_0x1813d9)),_0x29086f=_0x14a007(_0x3d68c8(window[_0x1cb8d4([0x4d,0x61,0x74,0x68])][_0x1cb8d4([0x63,0x65,0x69,0x6c])](_0x1ec45a/_0x10c9c1)));window[_0x1cb8d4([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x1cb8d4([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x526660,_0x29086f);}function _0x32d6eb(){const _0xf076f0=_0x1cb8d4([0x6c,0x6c,0x63,0x74,0x2d])+_0x3d68c8(_0x4e9e69(_0x1813d9)),_0x18ebe8=window[_0x1cb8d4([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x1cb8d4([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0xf076f0);return _0x18ebe8?window[_0x1cb8d4([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x14a007(_0x18ebe8),0x10)*_0x10c9c1:null;}function _0xb45e1a(_0xd76f4b){return new window[(_0x1cb8d4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x18ec2f,_0x35cd34)=>{_0xd76f4b[_0x1cb8d4([0x74,0x68,0x65,0x6e])](_0x18ec2f,_0x35cd34),window[_0x1cb8d4([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x35cd34,0x3d9041f^_0x10ac02);});}}_0x331c3c[_0x1cb8d4([0x6f,0x6e])](_0x1cb8d4([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x4f7b5d,_0x163d9c)=>{if(_0x163d9c[0x0]!=_0x1813d9)return _0x4b9aac(_0x1cb8d4([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x163d9c[0x1]={..._0x163d9c[0x1],[_0x1cb8d4([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x428ad9};},{[_0x1cb8d4([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x1cb8d4([0x68,0x69,0x67,0x68])}),_0x331c3c[_0x1cb8d4([0x6f,0x6e])](_0x1cb8d4([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x3d9708=>{_0x52f7ac(_0x3d9708[_0x1cb8d4([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x56784d=!0x0,_0x18b7de(_0x3d9708[_0x1cb8d4([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x1cb8d4([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x1cb8d4([0x6c,0x6f,0x77])}),_0x46c911[_0x1cb8d4([0x74,0x68,0x65,0x6e])](()=>{_0x56784d||_0x4b9aac(_0x1cb8d4([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x393c41(){return _0x331c3c[_0x1cb8d4([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1cb8d4([0x76,0x69,0x65,0x77])][_0x1cb8d4([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x1cb8d4([0x61,0x75,0x74,0x6f]);}function _0x2057ba(){_0x331c3c[_0x1cb8d4([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1cb8d4([0x76,0x69,0x65,0x77])][_0x1cb8d4([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x1cb8d4([0x61,0x75,0x74,0x6f]);}}function _0x23162f(_0x7c6ce8){const _0x381a46=[new window[(_0x1cb8d4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5ba402=>setTimeout(_0x5ba402,0x3d1ee13^_0x10ac02)),_0x46c911[_0x1cb8d4([0x74,0x68,0x65,0x6e])](()=>new window[(_0x1cb8d4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2dd38f=>{let _0x2ea72c=0x0;_0x331c3c[_0x1cb8d4([0x6d,0x6f,0x64,0x65,0x6c])][_0x1cb8d4([0x6f,0x6e])](_0x1cb8d4([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x33513b,_0x20c07b)=>{_0x20c07b[0x0][_0x1cb8d4([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x2ea72c++,_0x2ea72c==(0x3d8d127^_0x10ac02)&&(_0x2dd38f(),_0x33513b[_0x1cb8d4([0x6f,0x66,0x66])]());});}))];return window[_0x1cb8d4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x1cb8d4([0x72,0x61,0x63,0x65])](_0x381a46)[_0x1cb8d4([0x74,0x68,0x65,0x6e])](()=>_0x7c6ce8);}async function _0x7090e1(){await _0x46c911,_0x331c3c[_0x1cb8d4([0x6d,0x6f,0x64,0x65,0x6c])][_0x1cb8d4([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x1473a7,_0x331c3c[_0x1cb8d4([0x6d,0x6f,0x64,0x65,0x6c])][_0x1cb8d4([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x1473a7,_0x331c3c[_0x1cb8d4([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x1cb8d4([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x443cc2(_0x26f768){const _0x64ff56=_0x5601e3();_0x331c3c[_0x64ff56]=_0x1cb8d4([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x26f768,_0x26f768!=_0x1cb8d4([0x56,0x61,0x6c,0x69,0x64])&&_0x7090e1();}function _0x5601e3(){const _0x472655=window[_0x1cb8d4([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x1cb8d4([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x1cb8d4([0x6e,0x6f,0x77])]())[_0x1cb8d4([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x1cb8d4([0x2e]),'');let _0x10afd5=_0x1cb8d4([0x52]);for(let _0x3b1533=0x0;_0x3b1533<_0x472655[_0x1cb8d4([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3b1533+=0x2){let _0x549055=window[_0x1cb8d4([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x472655[_0x1cb8d4([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3b1533,_0x3b1533+0x2));_0x549055>=_0x9f4c60[_0x1cb8d4([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x549055-=_0x9f4c60[_0x1cb8d4([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x10afd5+=_0x9f4c60[_0x549055];}return _0x10afd5;}function _0x328a98(){const _0x566579=_0x46784a[_0x1cb8d4([0x73,0x70,0x6c,0x69,0x74])](_0x1cb8d4([0x2e]));if(0x3!=_0x566579[_0x1cb8d4([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x3794b4(_0x566579[0x1]);function _0x3794b4(_0x32cc48){const _0x1ba4f4=_0x376d69(_0x32cc48);return _0x1ba4f4&&_0x116c42()?_0x1ba4f4:null;function _0x116c42(){const _0x531600=_0x1ba4f4[_0x1cb8d4([0x6a,0x74,0x69])],_0x2b645e=window[_0x1cb8d4([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x531600[_0x1cb8d4([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x531600[_0x1cb8d4([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x4e9de8={..._0x1ba4f4,[_0x1cb8d4([0x6a,0x74,0x69])]:_0x531600[_0x1cb8d4([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x531600[_0x1cb8d4([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x4e9de8[_0x1cb8d4([0x76,0x63])],_0x4e9e69(_0x4e9de8)==_0x2b645e;}}}async function _0x31a5ad(){let _0x11240c=!0x0;try{const _0x165259=_0x46784a[_0x1cb8d4([0x73,0x70,0x6c,0x69,0x74])](_0x1cb8d4([0x2e])),[_0x57339b,_0xb21a96,_0x508725]=_0x165259;return _0x278638(_0x57339b),await _0x213db1(_0x57339b,_0xb21a96,_0x508725),_0x11240c;}catch{return!0x1;}function _0x278638(_0x3731b6){const _0x2d3aef=_0x376d69(_0x3731b6);_0x2d3aef&&_0x2d3aef[_0x1cb8d4([0x61,0x6c,0x67])]==_0x1cb8d4([0x45,0x53,0x32,0x35,0x36])||(_0x11240c=!0x1);}async function _0x213db1(_0x2c75d4,_0x22e0c5,_0x3b2c83){const _0x345ffc=window[_0x1cb8d4([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x1cb8d4([0x66,0x72,0x6f,0x6d])](_0x189726(_0x3b2c83),_0x384d07=>_0x384d07[_0x1cb8d4([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x5a9a1c=new window[(_0x1cb8d4([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x1cb8d4([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x2c75d4+_0x1cb8d4([0x2e])+_0x22e0c5),_0x4a9c90=window[_0x1cb8d4([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x1cb8d4([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x4a9c90)return;const _0x291755=await _0x4a9c90[_0x1cb8d4([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x1cb8d4([0x6a,0x77,0x6b]),_0x44c5ac,{[_0x1cb8d4([0x6e,0x61,0x6d,0x65])]:_0x1cb8d4([0x45,0x43,0x44,0x53,0x41]),[_0x1cb8d4([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x1cb8d4([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x1cb8d4([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x4a9c90[_0x1cb8d4([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x1cb8d4([0x6e,0x61,0x6d,0x65])]:_0x1cb8d4([0x45,0x43,0x44,0x53,0x41]),[_0x1cb8d4([0x68,0x61,0x73,0x68])]:{[_0x1cb8d4([0x6e,0x61,0x6d,0x65])]:_0x1cb8d4([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x291755,_0x345ffc,_0x5a9a1c)||(_0x11240c=!0x1);}}function _0x376d69(_0x1c5aa1){return _0x1c5aa1[_0x1cb8d4([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x1cb8d4([0x65,0x79]))?JSON[_0x1cb8d4([0x70,0x61,0x72,0x73,0x65])](_0x189726(_0x1c5aa1)):null;}function _0x189726(_0x4a1e31){return window[_0x1cb8d4([0x61,0x74,0x6f,0x62])](_0x4a1e31[_0x1cb8d4([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x1cb8d4([0x2b]))[_0x1cb8d4([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x1cb8d4([0x2f])));}function _0x4e9e69(_0x11d94a){let _0x1e2bd7=0x1505;function _0xef145a(_0x2723db){for(let _0x31f4b5=0x0;_0x31f4b5<_0x2723db[_0x1cb8d4([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x31f4b5++){const _0x63cd88=_0x2723db[_0x1cb8d4([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x31f4b5);_0x1e2bd7=(_0x1e2bd7<<0x5)+_0x1e2bd7+_0x63cd88,_0x1e2bd7&=_0x1e2bd7;}}function _0x2f63c0(_0x31291c){Array[_0x1cb8d4([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x31291c)?_0x31291c[_0x1cb8d4([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x2f63c0):_0x31291c&&typeof _0x31291c==_0x1cb8d4([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x1cb8d4([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x31291c)[_0x1cb8d4([0x73,0x6f,0x72,0x74])]()[_0x1cb8d4([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x1001eb,_0x3aec58])=>{_0xef145a(_0x1001eb),_0x2f63c0(_0x3aec58);}):_0xef145a(window[_0x1cb8d4([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x31291c));}return _0x2f63c0(_0x11d94a),_0x1e2bd7>>>0x0;}function _0x3d68c8(_0x3ca5e7){return _0x3ca5e7[_0x1cb8d4([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x1cb8d4([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x1cb8d4([0x30]));}function _0x14a007(_0x37e24e){return _0x37e24e[_0x1cb8d4([0x73,0x70,0x6c,0x69,0x74])]('')[_0x1cb8d4([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x1cb8d4([0x6a,0x6f,0x69,0x6e])]('');}function _0x1473a7(){}function _0x1cb8d4(_0x744866){const _0x53dae8=_0x58ce;return _0x744866[_0x53dae8(0x1a5)](_0x426a9d=>String[_0x53dae8(0x195)](_0x426a9d))[_0x53dae8(0x1ab)]('');}_0x443cc2(await _0x59e7e7());}(this);}[_0x2517ff(0x178)](){const _0x1f7d03=_0x2517ff,_0xfcdfd2=this[_0x1f7d03(0x197)][_0x1f7d03(0x1a3)][_0x1f7d03(0x18e)];_0xfcdfd2[_0x1f7d03(0x16e)](_0x1f7d03(0x1a4))&&_0xfcdfd2[_0x1f7d03(0x189)](_0x1f7d03(0x1a4),{'allowAttributes':[_0x1f7d03(0x19e)]}),_0xfcdfd2[_0x1f7d03(0x16e)](_0x1f7d03(0x187))&&_0xfcdfd2[_0x1f7d03(0x189)](_0x1f7d03(0x187),{'allowAttributes':[_0x1f7d03(0x19e)]});}[_0x2517ff(0x181)](){const _0x59e6c1=_0x2517ff,_0x2b7a4f=this[_0x59e6c1(0x197)];_0x2b7a4f[_0x59e6c1(0x1b7)][_0x59e6c1(0x193)](_0x59e6c1(0x1a9))[_0x59e6c1(0x16c)]({'model':_0x59e6c1(0x19e),'view':_0x59e6c1(0x1b9)}),_0x2b7a4f[_0x59e6c1(0x1b7)][_0x59e6c1(0x193)](_0x59e6c1(0x18f))[_0x59e6c1(0x177)]({'model':{'key':_0x59e6c1(0x19e),'value':_0x5c39a3=>_0x5c39a3[_0x59e6c1(0x1ae)](_0x59e6c1(0x1b9))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x259ce4=_0x2b7a4f[_0x59e6c1(0x19a)][_0x59e6c1(0x1a1)](_0x59e6c1(0x1b5));_0x259ce4&&this[_0x59e6c1(0x17f)](_0x259ce4,_0x59e6c1(0x180),(_0x1cb1a2,[_0x3463cd,_0x4f9a39])=>{const _0x373813=_0x59e6c1;_0x3463cd[_0x373813(0x17c)](_0x373813(0x19e),_0x4f9a39);});}[_0x2517ff(0x1a8)](){const _0x5a2a1a=_0x2517ff,_0x42a09a=this[_0x5a2a1a(0x197)][_0x5a2a1a(0x17d)][_0x5a2a1a(0x1a1)](_0x5a2a1a(0x192))||{},_0x1c1af9=this[_0x5a2a1a(0x197)][_0x5a2a1a(0x17d)][_0x5a2a1a(0x1a1)](_0x5a2a1a(0x184))||'';this[_0x5a2a1a(0x1b3)]=_0x39762e(_0x3d572f[_0x5a2a1a(0x1a2)],_0x5a2a1a(0x1aa),{..._0x42a09a,'pubkey':_0x1c1af9,'ctx-name':_0x5a2a1a(0x191)+this[_0x5a2a1a(0x19c)],'sourceList':'','imgOnly':_0x5a2a1a(0x17b),'removeCopyright':_0x5a2a1a(0x17b),'localeName':this[_0x5a2a1a(0x197)][_0x5a2a1a(0x190)][_0x5a2a1a(0x186)],'externalSourcesEmbedCss':_0x5a2a1a(0x170)}),this[_0x5a2a1a(0x1b3)][_0x5a2a1a(0x173)]=_0x172177=>{const _0x4707fa=_0x5a2a1a;if(_0x4707fa(0x188)==_0x172177)return _0x4707fa(0x17a);},_0x3d572f[_0x5a2a1a(0x1a2)][_0x5a2a1a(0x1ad)][_0x5a2a1a(0x16d)](this[_0x5a2a1a(0x1b3)]);}[_0x2517ff(0x19b)](){const _0xabfc18=_0x2517ff;this[_0xabfc18(0x179)]=_0x39762e(_0x3d572f[_0xabfc18(0x1a2)],_0xabfc18(0x198),{'ctx-name':_0xabfc18(0x191)+this[_0xabfc18(0x19c)]}),_0x3d572f[_0xabfc18(0x1a2)][_0xabfc18(0x1ad)][_0xabfc18(0x16d)](this[_0xabfc18(0x179)]);}[_0x2517ff(0x19d)](){const _0x2e218d=_0x2517ff,_0x2268d0=this[_0x2e218d(0x197)][_0x2e218d(0x19a)][_0x2e218d(0x1a1)](_0x2e218d(0x19f));_0x2268d0&&this[_0x2e218d(0x17f)](_0x2268d0,_0x2e218d(0x18b),()=>{const _0x615547=_0x2e218d,_0x410fc9=this[_0x615547(0x197)][_0x615547(0x1a3)][_0x615547(0x1a2)][_0x615547(0x16b)][_0x615547(0x18c)]();_0x410fc9&&_0x410fc9[_0x615547(0x1ae)](_0x615547(0x19e))&&this[_0x615547(0x197)][_0x615547(0x185)][_0x615547(0x183)][_0x615547(0x169)](_0x615547(0x1a7),()=>{const _0x2f3c14=_0x615547;_0x242ca4(this[_0x2f3c14(0x197)],_0x410fc9);});});const _0x31550b=this[_0x2e218d(0x197)][_0x2e218d(0x19a)][_0x2e218d(0x1a1)](_0x2e218d(0x168));_0x31550b&&this[_0x2e218d(0x17f)](_0x31550b,_0x2e218d(0x18b),()=>{const _0x405e40=_0x2e218d,_0x1c92bb=this[_0x405e40(0x197)][_0x405e40(0x1a3)][_0x405e40(0x1a2)][_0x405e40(0x16b)][_0x405e40(0x18c)]();_0x1c92bb&&_0x1c92bb[_0x405e40(0x1ae)](_0x405e40(0x19e))&&this[_0x405e40(0x197)][_0x405e40(0x185)][_0x405e40(0x183)][_0x405e40(0x169)](_0x405e40(0x1a7),()=>{const _0x49e5ea=_0x405e40;_0x242ca4(this[_0x49e5ea(0x197)],_0x1c92bb);});});}}
|
|
23
|
+
function _0x55bd(){const _0x5b8011=['_initImageProcessingIndicator','execute','downcast','elementToAttribute','ctxElement','contentLanguage','config','isPremiumPlugin','uploadcareImageId','uploadcare','afterInit','93783HIRkaL','map','upcast','getAttribute','PictureEditing','imageBlock','_initConfig','uc-config','uploadcare.uploader','listenTo','editor','requires','replaceImageSource','remove','6GAqajh','closeMax','true','689nOciYL','data-uc-image-id','_configElement','_initCtx','getSelectedElement','selection','1632XmuSgF','extend','_initSchema','3883584wZIKsA','uc-upload-ctx-provider','insertImage','document','commands','fromCharCode','_ctxElement','#uc-icon-arrow-down','editing','input[uploadcare-file-input]','removeAttribute','for','conversion','querySelector','cleanupImage','destroy','init','attributeToAttribute','imageInline','2193728bvKJHs','schema','add','iconHrefResolver','\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','uploadcare.pubkey','ucContextId','model','uploader-','body','_initConversion','render','view','join','once','pluginName','16186086THrHnQ','appendChild','get','3492685EhXhif','configElement','uploadcareImageReplace','UploadcareEditing','isOfficialPlugin','isRegistered','locale','href','1830965KSGnaQ'];_0x55bd=function(){return _0x5b8011;};return _0x55bd();}const _0x5b72c6=_0x1427;function _0x1427(_0x523512,_0x4b22cd){const _0x55bde2=_0x55bd();return _0x1427=function(_0x1427ad,_0x5ce525){_0x1427ad=_0x1427ad-0xce;let _0x43931b=_0x55bde2[_0x1427ad];return _0x43931b;},_0x1427(_0x523512,_0x4b22cd);}(function(_0x5942c0,_0x6ba0b1){const _0x1590f6=_0x1427,_0x2cea24=_0x5942c0();while(!![]){try{const _0xd1f6dc=-parseInt(_0x1590f6(0xf6))/0x1*(parseInt(_0x1590f6(0xfc))/0x2)+-parseInt(_0x1590f6(0xe5))/0x3+-parseInt(_0x1590f6(0x112))/0x4+parseInt(_0x1590f6(0xd9))/0x5*(-parseInt(_0x1590f6(0xf3))/0x6)+parseInt(_0x1590f6(0xd1))/0x7+-parseInt(_0x1590f6(0xff))/0x8+parseInt(_0x1590f6(0xce))/0x9;if(_0xd1f6dc===_0x6ba0b1)break;else _0x2cea24['push'](_0x2cea24['shift']());}catch(_0x58cc90){_0x2cea24['push'](_0x2cea24['shift']());}}}(_0x55bd,0x4a2eb));import{Plugin as _0x70e65e}from'ckeditor5/src/core.js';import{Dialog as _0x5aadf2}from'ckeditor5/src/ui.js';import{createElement as _0x35a106,global as _0x3075b5,uid as _0x15ef42}from'ckeditor5/src/utils.js';import{UploadcareCommand as _0x197496}from'./uploadcarecommand.js';import{UploadcareUploadAdapter as _0x392ff9}from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0x5278f9}from'./utils/editingutils.js';export class UploadcareEditing extends _0x70e65e{[_0x5b72c6(0xf8)]=null;[_0x5b72c6(0x105)]=null;static get[_0x5b72c6(0x121)](){const _0x394d91=_0x5b72c6;return _0x394d91(0xd4);}static get[_0x5b72c6(0xf0)](){const _0x19dab7=_0x5b72c6;return[_0x19dab7(0xe9),_0x392ff9,_0x5aadf2];}static get[_0x5b72c6(0xd5)](){return!0x0;}static get[_0x5b72c6(0xe1)](){return!0x0;}[_0x5b72c6(0x118)];get[_0x5b72c6(0xd2)](){const _0x5f2372=_0x5b72c6;return this[_0x5f2372(0xf8)];}get[_0x5b72c6(0xde)](){const _0x595415=_0x5b72c6;return this[_0x595415(0x105)];}constructor(_0x5308ac){const _0x479cc8=_0x5b72c6;super(_0x5308ac),this[_0x479cc8(0x118)]=_0x15ef42();}[_0x5b72c6(0x10f)](){const _0x1fda0d=_0x5b72c6,_0xd89a87=this[_0x1fda0d(0xef)];_0xd89a87[_0x1fda0d(0x103)][_0x1fda0d(0x114)](_0x1fda0d(0xe3),new _0x197496(_0xd89a87));}[_0x5b72c6(0xe4)](){const _0x5cb2c9=_0x5b72c6;this[_0x5cb2c9(0xfe)](),this[_0x5cb2c9(0x11c)](),this[_0x5cb2c9(0xeb)](),this[_0x5cb2c9(0xf9)](),this[_0x5cb2c9(0xda)](),this[_0x5cb2c9(0xee)](this[_0x5cb2c9(0xef)],_0x5cb2c9(0x10e),()=>{const _0x188798=_0x5cb2c9;this[_0x188798(0xf8)]&&(this[_0x188798(0xf8)][_0x188798(0xf2)](),this[_0x188798(0xf8)]=null),this[_0x188798(0x105)]&&(this[_0x188798(0x105)][_0x188798(0xf2)](),this[_0x188798(0x105)]=null);const _0x5075f5=_0x3075b5[_0x188798(0x102)][_0x188798(0x10c)](_0x188798(0x108));_0x5075f5&&_0x5075f5[_0x188798(0xf2)]();}),async function(_0x15874c){const _0x2393c6=_0x24aaf3([0x52,0x42,0x63,0x58,0x64,0x47,0x66,0x35,0x36,0x37,0x6d,0x4e,0x6a,0x4b,0x39,0x44,0x54,0x70,0x50,0x30,0x49,0x79,0x69,0x33,0x67,0x65,0x61,0x38,0x5a,0x76,0x7a,0x6c,0x45,0x34,0x62,0x46,0x75,0x57,0x72,0x77,0x73,0x48,0x31,0x68,0x6e,0x4f,0x53,0x4c,0x71,0x6b,0x59,0x32,0x4d,0x51,0x4a,0x78,0x6f,0x56,0x41,0x55,0x74,0x43]),_0x226379=0x3d8d0df,_0x25fca3=0x3dfa4c7^_0x226379,_0xcdcf86=window[_0x24aaf3([0x44,0x61,0x74,0x65])][_0x24aaf3([0x6e,0x6f,0x77])](),_0x4073be=_0x15874c[_0x24aaf3([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x2f8aee=new window[(_0x24aaf3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5f3672=>{_0x4073be[_0x24aaf3([0x6f,0x6e,0x63,0x65])](_0x24aaf3([0x72,0x65,0x61,0x64,0x79]),_0x5f3672);}),_0x485507={[_0x24aaf3([0x6b,0x74,0x79])]:_0x24aaf3([0x45,0x43]),[_0x24aaf3([0x75,0x73,0x65])]:_0x24aaf3([0x73,0x69,0x67]),[_0x24aaf3([0x63,0x72,0x76])]:_0x24aaf3([0x50,0x2d,0x32,0x35,0x36]),[_0x24aaf3([0x78])]:_0x24aaf3([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]),[_0x24aaf3([0x79])]:_0x24aaf3([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]),[_0x24aaf3([0x61,0x6c,0x67])]:_0x24aaf3([0x45,0x53,0x32,0x35,0x36])},_0x97a453=_0x4073be[_0x24aaf3([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x24aaf3([0x67,0x65,0x74])](_0x24aaf3([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x24d445(){let _0x41c24d,_0x43db28=null,_0x164291=null;try{if(_0x97a453==_0x24aaf3([0x47,0x50,0x4c]))return _0x24aaf3([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x41c24d=_0x27e8a1(),!_0x41c24d)return _0x24aaf3([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x41c24d[_0x24aaf3([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x164291=_0x4a7ae6(_0x41c24d[_0x24aaf3([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x41c24d[_0x24aaf3([0x6a,0x74,0x69])])),await _0x4e1155()?_0x3fb801()?_0x231658()?_0x24aaf3([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x2dcd2a()?(_0x41c24d[_0x24aaf3([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x24aaf3([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x43db28=_0x165ec1(_0x24aaf3([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x41c24d[_0x24aaf3([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x24aaf3([0x74,0x72,0x69,0x61,0x6c])&&(_0x43db28=_0x165ec1(_0x24aaf3([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x278c59()):_0x24aaf3([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x24aaf3([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x24aaf3([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x24aaf3([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x231658(){const _0x1271bb=[_0x24aaf3([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x24aaf3([0x74,0x72,0x69,0x61,0x6c])][_0x24aaf3([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x41c24d[_0x24aaf3([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0xcdcf86/0x3e8:0xe10*_0x25fca3;return _0x41c24d[_0x24aaf3([0x65,0x78,0x70])]<_0x1271bb;}function _0x3fb801(){const _0x2d17a1=_0x41c24d[_0x24aaf3([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x2d17a1&&(!!_0x2d17a1[_0x24aaf3([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x24aaf3([0x2a]))||!!_0x2d17a1[_0x24aaf3([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x24aaf3([0x55,0x50,0x4c,0x43])));}function _0x2dcd2a(){const _0x1c5ea1=_0x1427,_0x508d18=_0x41c24d[_0x24aaf3([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x508d18||0x0==_0x508d18[_0x24aaf3([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x5e97c7}=new URL(window[_0x24aaf3([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x1c5ea1(0xd8)]);if(_0x508d18[_0x24aaf3([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5e97c7))return!0x0;const _0x4c7dd6=_0x5e97c7[_0x24aaf3([0x73,0x70,0x6c,0x69,0x74])](_0x24aaf3([0x2e]));return _0x508d18[_0x24aaf3([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x5dc217=>_0x5dc217[_0x24aaf3([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x24aaf3([0x2a])))[_0x24aaf3([0x6d,0x61,0x70])](_0x2c2474=>_0x2c2474[_0x24aaf3([0x73,0x70,0x6c,0x69,0x74])](_0x24aaf3([0x2e])))[_0x24aaf3([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x5a10a1=>_0x5a10a1[_0x24aaf3([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x4c7dd6[_0x24aaf3([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x24aaf3([0x6d,0x61,0x70])](_0x33c544=>Array(_0x4c7dd6[_0x24aaf3([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x33c544[_0x24aaf3([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x24aaf3([0x66,0x69,0x6c,0x6c])](_0x33c544[0x0]===_0x24aaf3([0x2a])?_0x24aaf3([0x2a]):'')[_0x24aaf3([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x33c544))[_0x24aaf3([0x73,0x6f,0x6d,0x65])](_0x2aa0a3=>_0x4c7dd6[_0x24aaf3([0x65,0x76,0x65,0x72,0x79])]((_0x59fb41,_0x3b6542)=>_0x2aa0a3[_0x3b6542]===_0x59fb41||_0x2aa0a3[_0x3b6542]===_0x24aaf3([0x2a])));}function _0x278c59(){return _0x43db28&&_0x164291?new window[(_0x24aaf3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x496958,_0x18ff72)=>{_0x43db28[_0x24aaf3([0x74,0x68,0x65,0x6e])](_0x496958,_0x18ff72),_0x164291[_0x24aaf3([0x74,0x68,0x65,0x6e])](_0xd807cd=>{_0xd807cd!=_0x24aaf3([0x56,0x61,0x6c,0x69,0x64])&&_0x496958(_0xd807cd);},_0x18ff72);}):_0x43db28||_0x164291||_0x24aaf3([0x56,0x61,0x6c,0x69,0x64]);}}function _0x4a7ae6(_0x5ee1f0,_0x3e88d8){return new window[(_0x24aaf3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x490e10=>{if(_0x49095f())return _0x490e10(_0x24aaf3([0x56,0x61,0x6c,0x69,0x64]));_0x5e8835(),_0x4073be[_0x24aaf3([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x24aaf3([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x1ca900=!0x1;const _0xcbafe8=_0x15ef42();function _0x2058ed(_0x2dbfd7){return!!_0x2dbfd7&&(typeof _0x2dbfd7===_0x24aaf3([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x2dbfd7===_0x24aaf3([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x2dbfd7[_0x24aaf3([0x74,0x68,0x65,0x6e])]===_0x24aaf3([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x2dbfd7[_0x24aaf3([0x63,0x61,0x74,0x63,0x68])]===_0x24aaf3([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x5cd513(_0x26df0c){_0x1cd49e(_0x26df0c)[_0x24aaf3([0x74,0x68,0x65,0x6e])](_0x49df8f=>{if(!_0x49df8f||_0x49df8f[_0x24aaf3([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x24aaf3([0x6f,0x6b]))return _0x24aaf3([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0xa8fca3(_0x291d8a(_0xcbafe8+_0x3e88d8))!=_0x49df8f[_0x24aaf3([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x24aaf3([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x24aaf3([0x56,0x61,0x6c,0x69,0x64]);})[_0x24aaf3([0x74,0x68,0x65,0x6e])](_0x1e8449=>(_0x5cfd12(),_0x1e8449),()=>{const _0x3fe200=_0x2e5ed2();return null==_0x3fe200?(_0x5cfd12(),_0x24aaf3([0x56,0x61,0x6c,0x69,0x64])):_0x24aaf3(_0xcdcf86-_0x3fe200>(0x27d454df^_0x226379)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x24aaf3([0x74,0x68,0x65,0x6e])](_0x490e10)[_0x24aaf3([0x63,0x61,0x74,0x63,0x68])](()=>{_0x490e10(_0x24aaf3([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x3d5909=0x3ee3e5f^_0x226379;function _0x5cfd12(){const _0x4d86c5=_0x24aaf3([0x6c,0x6c,0x63,0x74,0x2d])+_0xa8fca3(_0x291d8a(_0x5ee1f0)),_0x107f3f=_0x300625(_0xa8fca3(window[_0x24aaf3([0x4d,0x61,0x74,0x68])][_0x24aaf3([0x63,0x65,0x69,0x6c])](_0xcdcf86/_0x3d5909)));window[_0x24aaf3([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x24aaf3([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4d86c5,_0x107f3f);}function _0x2e5ed2(){const _0x8347e7=_0x24aaf3([0x6c,0x6c,0x63,0x74,0x2d])+_0xa8fca3(_0x291d8a(_0x5ee1f0)),_0x4a42e7=window[_0x24aaf3([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x24aaf3([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x8347e7);return _0x4a42e7?window[_0x24aaf3([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x300625(_0x4a42e7),0x10)*_0x3d5909:null;}function _0x1cd49e(_0x2beb12){return new window[(_0x24aaf3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4101d9,_0x26bca2)=>{_0x2beb12[_0x24aaf3([0x74,0x68,0x65,0x6e])](_0x4101d9,_0x26bca2),window[_0x24aaf3([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x26bca2,0x3d9041f^_0x226379);});}}_0x4073be[_0x24aaf3([0x6f,0x6e])](_0x24aaf3([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x357390,_0x2acb04)=>{if(_0x2acb04[0x0]!=_0x5ee1f0)return _0x490e10(_0x24aaf3([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x2acb04[0x1]={..._0x2acb04[0x1],[_0x24aaf3([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0xcbafe8};},{[_0x24aaf3([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x24aaf3([0x68,0x69,0x67,0x68])}),_0x4073be[_0x24aaf3([0x6f,0x6e])](_0x24aaf3([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x44dd28=>{_0x2058ed(_0x44dd28[_0x24aaf3([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x1ca900=!0x0,_0x5cd513(_0x44dd28[_0x24aaf3([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x24aaf3([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x24aaf3([0x6c,0x6f,0x77])}),_0x2f8aee[_0x24aaf3([0x74,0x68,0x65,0x6e])](()=>{_0x1ca900||_0x490e10(_0x24aaf3([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x49095f(){return _0x4073be[_0x24aaf3([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x24aaf3([0x76,0x69,0x65,0x77])][_0x24aaf3([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x24aaf3([0x61,0x75,0x74,0x6f]);}function _0x5e8835(){_0x4073be[_0x24aaf3([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x24aaf3([0x76,0x69,0x65,0x77])][_0x24aaf3([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x24aaf3([0x61,0x75,0x74,0x6f]);}}function _0x165ec1(_0x1491ef){const _0x2100da=[new window[(_0x24aaf3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2c3ffa=>setTimeout(_0x2c3ffa,0x3d1ee13^_0x226379)),_0x2f8aee[_0x24aaf3([0x74,0x68,0x65,0x6e])](()=>new window[(_0x24aaf3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x293aad=>{let _0x1fdce9=0x0;_0x4073be[_0x24aaf3([0x6d,0x6f,0x64,0x65,0x6c])][_0x24aaf3([0x6f,0x6e])](_0x24aaf3([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x50f78b,_0x1bf084)=>{_0x1bf084[0x0][_0x24aaf3([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x1fdce9++,_0x1fdce9==(0x3d8d127^_0x226379)&&(_0x293aad(),_0x50f78b[_0x24aaf3([0x6f,0x66,0x66])]());});}))];return window[_0x24aaf3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x24aaf3([0x72,0x61,0x63,0x65])](_0x2100da)[_0x24aaf3([0x74,0x68,0x65,0x6e])](()=>_0x1491ef);}async function _0x50f693(){await _0x2f8aee,_0x4073be[_0x24aaf3([0x6d,0x6f,0x64,0x65,0x6c])][_0x24aaf3([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x2094f7,_0x4073be[_0x24aaf3([0x6d,0x6f,0x64,0x65,0x6c])][_0x24aaf3([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x2094f7,_0x4073be[_0x24aaf3([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x24aaf3([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x4fb309(_0xcba2f2){const _0x557261=_0x3f2aa0();_0x4073be[_0x557261]=_0x24aaf3([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0xcba2f2,_0xcba2f2!=_0x24aaf3([0x56,0x61,0x6c,0x69,0x64])&&_0x50f693();}function _0x3f2aa0(){const _0x26ee88=window[_0x24aaf3([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x24aaf3([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x24aaf3([0x6e,0x6f,0x77])]())[_0x24aaf3([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x24aaf3([0x2e]),'');let _0x45ba2e=_0x24aaf3([0x52]);for(let _0x5559e7=0x0;_0x5559e7<_0x26ee88[_0x24aaf3([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x5559e7+=0x2){let _0x3ace51=window[_0x24aaf3([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x26ee88[_0x24aaf3([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x5559e7,_0x5559e7+0x2));_0x3ace51>=_0x2393c6[_0x24aaf3([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x3ace51-=_0x2393c6[_0x24aaf3([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x45ba2e+=_0x2393c6[_0x3ace51];}return _0x45ba2e;}function _0x27e8a1(){const _0xbecb69=_0x97a453[_0x24aaf3([0x73,0x70,0x6c,0x69,0x74])](_0x24aaf3([0x2e]));if(0x3!=_0xbecb69[_0x24aaf3([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x3ea47c(_0xbecb69[0x1]);function _0x3ea47c(_0x54c53d){const _0x5d3432=_0x15dd0e(_0x54c53d);return _0x5d3432&&_0x2e4628()?_0x5d3432:null;function _0x2e4628(){const _0x5e0748=_0x5d3432[_0x24aaf3([0x6a,0x74,0x69])],_0x2f8a9a=window[_0x24aaf3([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5e0748[_0x24aaf3([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x5e0748[_0x24aaf3([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x4fcb33={..._0x5d3432,[_0x24aaf3([0x6a,0x74,0x69])]:_0x5e0748[_0x24aaf3([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x5e0748[_0x24aaf3([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x4fcb33[_0x24aaf3([0x76,0x63])],_0x291d8a(_0x4fcb33)==_0x2f8a9a;}}}async function _0x4e1155(){let _0x3e259d=!0x0;try{const _0x60e36c=_0x97a453[_0x24aaf3([0x73,0x70,0x6c,0x69,0x74])](_0x24aaf3([0x2e])),[_0x327ce3,_0x2d605e,_0x10fef6]=_0x60e36c;return _0x2c18f0(_0x327ce3),await _0x47f97d(_0x327ce3,_0x2d605e,_0x10fef6),_0x3e259d;}catch{return!0x1;}function _0x2c18f0(_0x294c61){const _0x2c8f35=_0x15dd0e(_0x294c61);_0x2c8f35&&_0x2c8f35[_0x24aaf3([0x61,0x6c,0x67])]==_0x24aaf3([0x45,0x53,0x32,0x35,0x36])||(_0x3e259d=!0x1);}async function _0x47f97d(_0x379d5f,_0x3b5cfc,_0x1b7eba){const _0x42563b=window[_0x24aaf3([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x24aaf3([0x66,0x72,0x6f,0x6d])](_0x6b24cd(_0x1b7eba),_0x238a5c=>_0x238a5c[_0x24aaf3([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x458a5d=new window[(_0x24aaf3([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x24aaf3([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x379d5f+_0x24aaf3([0x2e])+_0x3b5cfc),_0x2443ee=window[_0x24aaf3([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x24aaf3([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x2443ee)return;const _0x3d9544=await _0x2443ee[_0x24aaf3([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x24aaf3([0x6a,0x77,0x6b]),_0x485507,{[_0x24aaf3([0x6e,0x61,0x6d,0x65])]:_0x24aaf3([0x45,0x43,0x44,0x53,0x41]),[_0x24aaf3([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x24aaf3([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x24aaf3([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x2443ee[_0x24aaf3([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x24aaf3([0x6e,0x61,0x6d,0x65])]:_0x24aaf3([0x45,0x43,0x44,0x53,0x41]),[_0x24aaf3([0x68,0x61,0x73,0x68])]:{[_0x24aaf3([0x6e,0x61,0x6d,0x65])]:_0x24aaf3([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x3d9544,_0x42563b,_0x458a5d)||(_0x3e259d=!0x1);}}function _0x15dd0e(_0x211119){return _0x211119[_0x24aaf3([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x24aaf3([0x65,0x79]))?JSON[_0x24aaf3([0x70,0x61,0x72,0x73,0x65])](_0x6b24cd(_0x211119)):null;}function _0x6b24cd(_0x26d2d5){return window[_0x24aaf3([0x61,0x74,0x6f,0x62])](_0x26d2d5[_0x24aaf3([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x24aaf3([0x2b]))[_0x24aaf3([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x24aaf3([0x2f])));}function _0x291d8a(_0x4cb64f){let _0x21771c=0x1505;function _0x185526(_0x88ac4a){for(let _0x44bbe6=0x0;_0x44bbe6<_0x88ac4a[_0x24aaf3([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x44bbe6++){const _0x56de3d=_0x88ac4a[_0x24aaf3([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x44bbe6);_0x21771c=(_0x21771c<<0x5)+_0x21771c+_0x56de3d,_0x21771c&=_0x21771c;}}function _0x527e48(_0x1abab2){Array[_0x24aaf3([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x1abab2)?_0x1abab2[_0x24aaf3([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x527e48):_0x1abab2&&typeof _0x1abab2==_0x24aaf3([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x24aaf3([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x1abab2)[_0x24aaf3([0x73,0x6f,0x72,0x74])]()[_0x24aaf3([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x4f8703,_0x2ad2ac])=>{_0x185526(_0x4f8703),_0x527e48(_0x2ad2ac);}):_0x185526(window[_0x24aaf3([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x1abab2));}return _0x527e48(_0x4cb64f),_0x21771c>>>0x0;}function _0xa8fca3(_0x1ba081){return _0x1ba081[_0x24aaf3([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x24aaf3([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x24aaf3([0x30]));}function _0x300625(_0x5501a1){return _0x5501a1[_0x24aaf3([0x73,0x70,0x6c,0x69,0x74])]('')[_0x24aaf3([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x24aaf3([0x6a,0x6f,0x69,0x6e])]('');}function _0x2094f7(){}function _0x24aaf3(_0x2e95f6){const _0x5ee1da=_0x1427;return _0x2e95f6[_0x5ee1da(0xe6)](_0x5b6ca9=>String[_0x5ee1da(0x104)](_0x5b6ca9))[_0x5ee1da(0x11f)]('');}_0x4fb309(await _0x24d445());}(this);}[_0x5b72c6(0xfe)](){const _0x3826c6=_0x5b72c6,_0x107228=this[_0x3826c6(0xef)][_0x3826c6(0x119)][_0x3826c6(0x113)];_0x107228[_0x3826c6(0xd6)](_0x3826c6(0xea))&&_0x107228[_0x3826c6(0xfd)](_0x3826c6(0xea),{'allowAttributes':[_0x3826c6(0xe2)]}),_0x107228[_0x3826c6(0xd6)](_0x3826c6(0x111))&&_0x107228[_0x3826c6(0xfd)](_0x3826c6(0x111),{'allowAttributes':[_0x3826c6(0xe2)]});}[_0x5b72c6(0x11c)](){const _0x1cc1cc=_0x5b72c6,_0x1c3fd4=this[_0x1cc1cc(0xef)];_0x1c3fd4[_0x1cc1cc(0x10b)][_0x1cc1cc(0x10a)](_0x1cc1cc(0xdc))[_0x1cc1cc(0x110)]({'model':_0x1cc1cc(0xe2),'view':_0x1cc1cc(0xf7)}),_0x1c3fd4[_0x1cc1cc(0x10b)][_0x1cc1cc(0x10a)](_0x1cc1cc(0xe7))[_0x1cc1cc(0xdd)]({'model':{'key':_0x1cc1cc(0xe2),'value':_0x1d2dfa=>_0x1d2dfa[_0x1cc1cc(0xe8)](_0x1cc1cc(0xf7))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0xf3dcf1=_0x1c3fd4[_0x1cc1cc(0x103)][_0x1cc1cc(0xd0)](_0x1cc1cc(0xf1));_0xf3dcf1&&this[_0x1cc1cc(0xee)](_0xf3dcf1,_0x1cc1cc(0x10d),(_0x5d767f,[_0x535a78,_0x479e84])=>{const _0x443901=_0x1cc1cc;_0x535a78[_0x443901(0x109)](_0x443901(0xe2),_0x479e84);});}[_0x5b72c6(0xeb)](){const _0x2f939c=_0x5b72c6,_0x17f045=this[_0x2f939c(0xef)][_0x2f939c(0xe0)][_0x2f939c(0xd0)](_0x2f939c(0xed))||{},_0x2cd5d1=this[_0x2f939c(0xef)][_0x2f939c(0xe0)][_0x2f939c(0xd0)](_0x2f939c(0x117))||'';this[_0x2f939c(0xf8)]=_0x35a106(_0x3075b5[_0x2f939c(0x102)],_0x2f939c(0xec),{..._0x17f045,'pubkey':_0x2cd5d1,'ctx-name':_0x2f939c(0x11a)+this[_0x2f939c(0x118)],'sourceList':'','imgOnly':_0x2f939c(0xf5),'removeCopyright':_0x2f939c(0xf5),'localeName':this[_0x2f939c(0xef)][_0x2f939c(0xd7)][_0x2f939c(0xdf)],'externalSourcesEmbedCss':_0x2f939c(0x116)}),this[_0x2f939c(0xf8)][_0x2f939c(0x115)]=_0x4bdd23=>{const _0x4306c2=_0x2f939c;if(_0x4306c2(0xf4)==_0x4bdd23)return _0x4306c2(0x106);},_0x3075b5[_0x2f939c(0x102)][_0x2f939c(0x11b)][_0x2f939c(0xcf)](this[_0x2f939c(0xf8)]);}[_0x5b72c6(0xf9)](){const _0x402975=_0x5b72c6;this[_0x402975(0x105)]=_0x35a106(_0x3075b5[_0x402975(0x102)],_0x402975(0x100),{'ctx-name':_0x402975(0x11a)+this[_0x402975(0x118)]}),_0x3075b5[_0x402975(0x102)][_0x402975(0x11b)][_0x402975(0xcf)](this[_0x402975(0x105)]);}[_0x5b72c6(0xda)](){const _0x4bb6f6=_0x5b72c6,_0x16e3e6=this[_0x4bb6f6(0xef)][_0x4bb6f6(0x103)][_0x4bb6f6(0xd0)](_0x4bb6f6(0x101));_0x16e3e6&&this[_0x4bb6f6(0xee)](_0x16e3e6,_0x4bb6f6(0xdb),()=>{const _0x15d505=_0x4bb6f6,_0x45df9c=this[_0x15d505(0xef)][_0x15d505(0x119)][_0x15d505(0x102)][_0x15d505(0xfb)][_0x15d505(0xfa)]();_0x45df9c&&_0x45df9c[_0x15d505(0xe8)](_0x15d505(0xe2))&&this[_0x15d505(0xef)][_0x15d505(0x107)][_0x15d505(0x11e)][_0x15d505(0x120)](_0x15d505(0x11d),()=>{const _0x86fa10=_0x15d505;_0x5278f9(this[_0x86fa10(0xef)],_0x45df9c);});});const _0x159032=this[_0x4bb6f6(0xef)][_0x4bb6f6(0x103)][_0x4bb6f6(0xd0)](_0x4bb6f6(0xd3));_0x159032&&this[_0x4bb6f6(0xee)](_0x159032,_0x4bb6f6(0xdb),()=>{const _0x16cfd0=_0x4bb6f6,_0x47f6f0=this[_0x16cfd0(0xef)][_0x16cfd0(0x119)][_0x16cfd0(0x102)][_0x16cfd0(0xfb)][_0x16cfd0(0xfa)]();_0x47f6f0&&_0x47f6f0[_0x16cfd0(0xe8)](_0x16cfd0(0xe2))&&this[_0x16cfd0(0xef)][_0x16cfd0(0x107)][_0x16cfd0(0x11e)][_0x16cfd0(0x120)](_0x16cfd0(0x11d),()=>{const _0x121ff9=_0x16cfd0;_0x5278f9(this[_0x121ff9(0xef)],_0x47f6f0);});});}}
|