@ckeditor/ckeditor5-uploadcare 0.0.0-nightly-20251003.0 → 0.0.0-nightly-20251004.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/uploadcare.js +1 -1
- package/dist/index.js +3 -3
- package/package.json +9 -9
- package/src/uploadcareediting.js +1 -1
package/dist/index.js
CHANGED
|
@@ -20,6 +20,6 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as _0x3c1b5d,Command as _0x35463a}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x504c1c,IconGooglePhotos as _0x5d9704,IconGoogleDrive as _0x1819cc,IconFacebook as _0x358364,IconDropbox as _0x3d8c0d,IconUploadcareLink as _0x544e12,IconUploadcareImageUpload as _0x3aaf4e,IconError as _0x2e3b2b,IconUploadcareImageEdit as _0x2d05a5}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x36b574,MenuBarMenuListItemButtonView as _0x19eed4,View as _0x1a6eec,FocusCycler as _0x2f8faf,Dialog as _0x405406,DialogViewPosition as _0x4489bd,SpinnerView as _0x304037,IconView as _0x411e06,Notification as _0x1d44ff}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0xbc8dc8,DomEmitterMixin as _0x4fe2a2,global as _0x5c4475,getAncestors as _0xc345d,ObservableMixin as _0x2a04f3,uid as _0x185b7e,createElement as _0x2a12e1}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x5b56fb}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x3e6414,info as _0x305fae}from'@uploadcare/upload-client';import*as _0x11b339 from'@uploadcare/file-uploader';var i=function(_0x2b98d7){return _0x2b98d7['Local']='local',_0x2b98d7['URL']='url',_0x2b98d7['Dropbox']='dropbox',_0x2b98d7['GDrive']='gdrive',_0x2b98d7['Facebook']='facebook',_0x2b98d7['GPhotos']='gphotos',_0x2b98d7['OneDrive']='onedrive',_0x2b98d7;}({});function _(_0x41aaed,_0x10076d,_0xcfa40f){const t=_0x41aaed['t'],_0x3d619a=_0x41aaed['t'];switch(_0x10076d){case i['Local']:return{'text':_0x3d619a('Insert'===_0xcfa40f?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x3d619a('From\x20computer')};case i['URL']:return{'text':'Insert'===_0xcfa40f?_0x3d619a('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x3d619a('Via\x20URL')};case i['Dropbox']:return{'text':t('Insert'===_0xcfa40f?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case i['Facebook']:return{'text':t('Insert'===_0xcfa40f?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case i['GDrive']:return{'text':t('Insert'===_0xcfa40f?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case i['GPhotos']:return{'text':t('Insert'===_0xcfa40f?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case i['OneDrive']:return{'text':t('Insert'===_0xcfa40f?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x10076d;}}class e extends _0x3c1b5d{['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 _0x1b96b3=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x1f2ae0;for(const _0x2f8a38 in _0x1b96b3){const _0xe61dd0=_0x2f8a38,_0x2de34f=_0x1b96b3[_0xe61dd0];if('uploadcareLicenseKeyValid'==_0x2de34f||'uploadcareLicenseKeyInvalid'==_0x2de34f||'uploadcareLicenseKeyExpired'==_0x2de34f||'uploadcareLicenseKeyDomainLimit'==_0x2de34f||'uploadcareLicenseKeyNotAllowed'==_0x2de34f||'uploadcareLicenseKeyEvaluationLimit'==_0x2de34f||'uploadcareLicenseKeyTrialLimit'==_0x2de34f||'uploadcareLicenseKeyUsageLimit'==_0x2de34f){delete _0x1b96b3[_0xe61dd0],_0x1f2ae0=_0x2de34f,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x1f2ae0&&_0x1b96b3['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x1f2ae0&&_0x1b96b3['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x1f2ae0&&_0x1b96b3['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x1f2ae0&&_0x1b96b3['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x1f2ae0&&_0x1b96b3['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyTrialLimit'==_0x1f2ae0&&_0x1b96b3['_showLicenseError']('trialLimit'),'uploadcareLicenseKeyUsageLimit'==_0x1f2ae0&&_0x1b96b3['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x222a59}=this,_0xa44ac6=_0x222a59['commands']['get']('uploadcare');if(!_0xa44ac6)return;const _0x4a50ee=this['_normalizeConfigSourceList'](_0x222a59['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x30a710,_0x4295e3)=>{const _0x2379f6=this['_getIntegrationKey'](_0x4295e3['type']);return _0x30a710[_0x2379f6]||(_0x30a710[_0x2379f6]=[]),_0x30a710[_0x2379f6]['push'](_0x4295e3),_0x30a710;},{});_0x222a59['plugins']['has']('ImageInsertUI')&&_0x222a59['commands']['get']('uploadcare')&&Object['entries'](_0x4a50ee)['forEach'](([_0x430a7c,_0x40b914])=>{_0x222a59['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x430a7c,'observable':()=>_0xa44ac6,'buttonViewCreator':()=>this['_createToolbarButton'](_0x40b914),'formViewCreator':()=>this['_createDropdownButtons'](_0x40b914),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x40b914),'override':'assetManager'!==_0x430a7c});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x8c4d74){const {locale:_0x23ece5}=this['editor'];return _0x8c4d74['map'](_0x4d8654=>{const _0x499ff8=_(_0x23ece5,_0x4d8654,'Insert');switch(_0x4d8654){case i['Local']:return{'icon':_0x3aaf4e,'type':i['Local'],..._0x499ff8};case i['URL']:return{'icon':_0x544e12,'type':i['URL'],..._0x499ff8};case i['Dropbox']:return{'icon':_0x3d8c0d,'type':i['Dropbox'],..._0x499ff8};case i['Facebook']:return{'icon':_0x358364,'type':i['Facebook'],..._0x499ff8};case i['GDrive']:return{'icon':_0x1819cc,'type':i['GDrive'],..._0x499ff8};case i['GPhotos']:return{'icon':_0x5d9704,'type':i['GPhotos'],..._0x499ff8};case i['OneDrive']:return{'icon':_0x504c1c,'type':i['OneDrive'],..._0x499ff8};}});}['_getIntegrationKey'](_0x39af07){switch(_0x39af07){case i['Local']:return'upload';case i['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x13b301,_0xf2a55e){const _0x67612b=this['editor'],_0x3bc5b1=new _0x13b301(_0x67612b['locale']),_0x20e9ce=_0x67612b['commands']['get']('uploadcare');return _0x3bc5b1['bind']('isEnabled')['to'](_0x20e9ce),_0x3bc5b1['on']('execute',()=>{_0x20e9ce['execute'](_0xf2a55e);}),_0x3bc5b1;}['_createToolbarButton'](_0x3d011f){const {locale:_0x61ca4b}=this['editor'],_0x14ba56=this['editor']['plugins']['get']('ImageInsertUI'),_0x2e8955=_0x3d011f[0x0],_0x1dead9=this['_createButton'](_0x36b574,_0x2e8955['type']);return _0x1dead9['icon']=_0x2e8955['icon'],_0x1dead9['bind']('label')['to'](_0x14ba56,'isImageSelected',_0x42ca30=>_(_0x61ca4b,_0x2e8955['type'],_0x42ca30?'Replace':'Insert')['text']),_0x1dead9['tooltip']=!0x0,_0x1dead9;}['_createDropdownButtons'](_0x5742c7){const {locale:_0x519c41}=this['editor'],_0x84f123=this['editor']['plugins']['get']('ImageInsertUI');return _0x5742c7['map'](_0x2276e4=>{const _0x5cab29=this['_createButton'](_0x36b574,_0x2276e4['type']);return _0x5cab29['withText']=!0x0,_0x5cab29['icon']=_0x2276e4['icon'],_0x5cab29['bind']('label')['to'](_0x84f123,'isImageSelected',_0x5b9a3b=>_(_0x519c41,_0x2276e4['type'],_0x5b9a3b?'Replace':'Insert')['text']),_0x5cab29;});}['_createMenuBarButtons'](_0x19f172){return _0x19f172['map'](_0x37460f=>{const _0x49e7dc=this['_createButton'](_0x19eed4,_0x37460f['type']);return _0x49e7dc['icon']=_0x37460f['icon'],_0x49e7dc['label']=_0x37460f['shortText'],_0x49e7dc;});}}class F extends _0x1a6eec{['focusTracker'];['focusCycler'];constructor(_0x1a342e){super(_0x1a342e),this['focusTracker']=new _0xbc8dc8(),this['focusCycler']=new _0x2f8faf({'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(_0xe2deca,_0x539aac){super(_0xe2deca),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-'+_0x539aac}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}}function C(_0x26fe24,_0x3ba3e5){const _0xc82c50=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x48482e=>_0x48482e<=_0x3ba3e5)['map'](_0x2aaad8=>_0x26fe24['replace'](/\/$/,'')+'/-/resize/'+_0x2aaad8+'x/\x20'+_0x2aaad8+'w');return{'imageFallbackUrl':_0x26fe24,'imageSources':[{'srcset':_0xc82c50['join'](',\x20'),'sizes':'(max-width:\x20'+_0x3ba3e5+'px)\x20100vw,\x20'+_0x3ba3e5+'px','type':'image/webp'}]};}function S(_0x995cf0,_0x4c1bf4,_0x99d5a2){const _0x16df6d=_0x995cf0['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x16df6d?parseInt(_0x16df6d[0x1],0xa):_0x4c1bf4,'height':_0x16df6d?parseInt(_0x16df6d[0x2],0xa):_0x99d5a2};}function p(_0x5fc2ad,_0xd4341f){const _0x5de4a5=new(_0x4fe2a2())(),_0x74e36e=_0x5fc2ad['plugins']['get']('ImageUtils'),_0x5e7720=_0x5fc2ad['editing']['mapper']['toViewElement'](_0xd4341f),_0x1fa02d=_0x74e36e['findViewImgElement'](_0x5e7720),_0x2ecca4=_0x5fc2ad['editing']['view']['domConverter']['viewToDom'](_0x1fa02d),_0x2bfa4c=_0xd4341f['getAttribute']('width'),_0x251c30=_0xd4341f['getAttribute']('height'),_0x38a8ba='image-processing';_0x5fc2ad['editing']['view']['change'](_0x597194=>{_0x597194['addClass'](_0x38a8ba,_0x5e7720),_0x597194['setStyle']('aspect-ratio',_0x2bfa4c+'/'+_0x251c30,_0x1fa02d);}),_0x5de4a5['listenTo'](_0x2ecca4,'load',()=>{_0x5de4a5['stopListening'](_0x2ecca4,'load'),_0x5fc2ad['editing']['view']['change'](_0x59ade5=>{_0x59ade5['removeClass'](_0x38a8ba,_0x5e7720),_0x59ade5['removeStyle']('aspect-ratio',_0x1fa02d);});});}function G(_0x105eca){if(Array['isArray'](_0x105eca)){const _0x3b0765=_0x105eca['map'](G);return _0x3c1f49=>_0x3b0765['some'](_0x5cfa69=>_0x5cfa69(_0x3c1f49));}if('origin'==_0x105eca){const _0x415239=_0x5c4475['window']['location']['origin'];return _0x240e58=>new URL(_0x240e58,_0x5c4475['document']['baseURI'])['origin']==_0x415239;}return'function'==typeof _0x105eca?_0x105eca:_0x105eca instanceof RegExp?_0x231a3a=>!(!_0x231a3a['match'](_0x105eca)&&!_0x231a3a['replace'](/^https?:\/\//,'')['match'](_0x105eca)):()=>!0x1;}function A(_0x3e6043,_0x2271d5){return _0xc345d(_0x3e6043['target'])['includes'](_0x2271d5);}class n extends/* #__PURE__ -- @preserve */
|
|
24
|
-
_0x2a04f3(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x35b50e,_0x48a1ea,_0xb40e6a){super(),this['_editor']=_0x35b50e,this['_editing']=_0x48a1ea,this['_dialog']=_0x35b50e['plugins']['get'](_0x405406),this['_api']=_0x48a1ea['ctxElement']['getAPI'](),this['_type']=_0xb40e6a,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:_0xf5edb9,model:_0x304695}=this['_editor'],_0x52f396=_0x304695['document']['selection']['getSelectedElement'](),_0x1cf84c=_0x52f396&&(_0x52f396['is']('element','imageBlock')||_0x52f396['is']('element','imageInline'));this['_formView']=new x(_0xf5edb9,this['_editing']['ucContextId']),this['_dialog']['show']({'id':'uploadCare','icon':_0x3aaf4e,'title':_(_0xf5edb9,this['_type'],_0x1cf84c?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x4489bd['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x2ab1bd=>!A(_0x2ab1bd,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x2be837}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x45719c=>{const _0x1ce569=_0x2be837['length'];for(const _0x53fae4 of _0x2be837){const _0x147289=_0x53fae4===_0x2be837[_0x1ce569-0x1],{cdnUrl:_0x5b8142,fileInfo:_0x3dddb9}=_0x53fae4;if(!_0x5b8142||!_0x3dddb9)continue;const {width:_0x219807,height:_0x59ece0}=_0x3dddb9['imageInfo'],_0x1a6ae3=S(_0x5b8142,_0x219807,_0x59ece0),_0x92b108=C(_0x5b8142,_0x1a6ae3['width']),_0x3a5200={'id':_0x3dddb9['uuid'],'type':'image','attributes':{'imageDimension':_0x1a6ae3,..._0x92b108}};this['_insertAsset'](_0x3a5200,_0x147289,_0x45719c);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x94726f=>{'idle'===_0x94726f['detail']['status']&&!_0x94726f['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===i['Local']?this['_api']['setCurrentActivity'](i['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x131ca0,_0x535cd1,_0xf605a4){const _0x10bdfc=this['_editor']['model']['document']['selection'],_0x5d637a=_0x10bdfc['getSelectedElement'](),_0xeffc77=!(!_0x5d637a||!_0x5d637a['is']('element','imageInline'));_0xf605a4['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x131ca0,_0xeffc77),_0x535cd1||_0xf605a4['setSelection'](_0x10bdfc['getLastPosition']());}['_insertImage'](_0x2de6bc,_0x339773){const _0x2706d3=this['_editor'],{imageDimension:_0x3b0a92,imageFallbackUrl:_0x3ab267,imageSources:_0x158819}=_0x2de6bc['attributes'];_0x2706d3['execute']('insertImage',{'imageType':_0x339773?'imageInline':null,'source':{'uploadcareImageId':_0x2de6bc['id'],'src':_0x3ab267,'sources':_0x158819,..._0x3b0a92}});}}class w extends _0x35463a{['_editing'];['_controller']=null;static get['requires'](){return[_0x405406,o];}constructor(_0x417e93){super(_0x417e93),this['_editing']=_0x417e93['plugins']['get'](o);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x507d6d){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new n(this['editor'],this['_editing'],_0x507d6d);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class j{static['upload']({file:_0x259a07,..._0x321ea6}){return _0x3e6414(_0x259a07,_0x321ea6);}static['getInfo'](_0x46377d,_0x48c0b9){return _0x305fae(_0x46377d,_0x48c0b9);}}class f extends _0x3c1b5d{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x5b56fb,o];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x150539=this['editor'];if(!!!_0x150539['config']['get']('uploadcare'))return;_0x150539['plugins']['get'](_0x5b56fb)['createUploadAdapter']=_0x597adb=>new k(_0x597adb,_0x150539),_0x150539['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x308b98,{imageElement:_0x27ef30,data:_0x343747})=>{_0x150539['model']['change'](_0x4ed7c3=>{_0x4ed7c3['setAttribute']('uploadcareImageId',_0x343747['uploadcareImageId'],_0x27ef30);});});}}class k{['loader'];['editor'];['controller'];constructor(_0xb656fe,_0x2454b3){this['loader']=_0xb656fe,this['editor']=_0x2454b3,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x5832e4=await this['loader']['file'];return j['upload']({'file':_0x5832e4,'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':_0x50a1b0=>{_0x50a1b0&&_0x50a1b0['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x50a1b0['value']);}})['then'](async _0x1a1acb=>{const {imageFallbackUrl:_0x839e53,imageSources:_0x3ae471}=C(_0x1a1acb['cdnUrl'],_0x1a1acb['imageInfo']['width']);return{'uploadcareImageId':_0x1a1acb['uuid'],'default':_0x839e53,'sources':_0x3ae471};})['catch'](()=>{const _0x2d66b6=t('Cannot\x20upload\x20file:')+('\x20'+_0x5832e4['name']+'.');return Promise['reject'](_0x2d66b6);});}['abort'](){this['controller']['abort']();}}class o extends _0x3c1b5d{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',f,_0x405406];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['ucContextId'];get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}constructor(_0x3e1d0f){super(_0x3e1d0f),this['ucContextId']=_0x185b7e();}['init'](){const _0x3d8788=this['editor'];_0x3d8788['commands']['add']('uploadcare',new w(_0x3d8788));}['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 _0x3b7ce0=_0x5c4475['document']['querySelector']('input[uploadcare-file-input]');_0x3b7ce0&&_0x3b7ce0['remove']();}),async function(_0x60434){const _0x195d2c=_0x401b1d([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]),_0x1fa1a9=0x3d8d0df,_0x4bd1ca=0x3dfa5ff^_0x1fa1a9,_0x2f1fde=window[_0x401b1d([0x44,0x61,0x74,0x65])][_0x401b1d([0x6e,0x6f,0x77])](),_0x4be247=_0x60434[_0x401b1d([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x435a21=new window[(_0x401b1d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x52c1c1=>{_0x4be247[_0x401b1d([0x6f,0x6e,0x63,0x65])](_0x401b1d([0x72,0x65,0x61,0x64,0x79]),_0x52c1c1);}),_0xb2d13f={[_0x401b1d([0x6b,0x74,0x79])]:_0x401b1d([0x45,0x43]),[_0x401b1d([0x75,0x73,0x65])]:_0x401b1d([0x73,0x69,0x67]),[_0x401b1d([0x63,0x72,0x76])]:_0x401b1d([0x50,0x2d,0x32,0x35,0x36]),[_0x401b1d([0x78])]:_0x401b1d([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]),[_0x401b1d([0x79])]:_0x401b1d([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]),[_0x401b1d([0x61,0x6c,0x67])]:_0x401b1d([0x45,0x53,0x32,0x35,0x36])},_0x4d9efc=_0x4be247[_0x401b1d([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x401b1d([0x67,0x65,0x74])](_0x401b1d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x3be6bb(){let _0x19c703,_0x29a623=null,_0x52cb8a=null;try{if(_0x4d9efc==_0x401b1d([0x47,0x50,0x4c]))return _0x401b1d([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x19c703=_0x17d8cf(),!_0x19c703)return _0x401b1d([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x19c703[_0x401b1d([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x52cb8a=_0x231eb4(_0x19c703[_0x401b1d([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x19c703[_0x401b1d([0x6a,0x74,0x69])])),await _0x2141fc()?_0x261802()?_0x28fe82()?_0x401b1d([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0xa6383b()?(_0x19c703[_0x401b1d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x401b1d([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x29a623=_0x10a1be(_0x401b1d([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x19c703[_0x401b1d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x401b1d([0x74,0x72,0x69,0x61,0x6c])&&(_0x29a623=_0x10a1be(_0x401b1d([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0xcff84b()):_0x401b1d([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x401b1d([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x401b1d([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x401b1d([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x28fe82(){const _0x533cf9=[_0x401b1d([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x401b1d([0x74,0x72,0x69,0x61,0x6c])][_0x401b1d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x19c703[_0x401b1d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x2f1fde/0x3e8:0xe10*_0x4bd1ca;return _0x19c703[_0x401b1d([0x65,0x78,0x70])]<_0x533cf9;}function _0x261802(){const _0x312376=_0x19c703[_0x401b1d([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x312376&&(!!_0x312376[_0x401b1d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x401b1d([0x2a]))||!!_0x312376[_0x401b1d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x401b1d([0x55,0x50,0x4c,0x43])));}function _0xa6383b(){const _0x107774=_0x19c703[_0x401b1d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x107774||0x0==_0x107774[_0x401b1d([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x358c4c}=new URL(window[_0x401b1d([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x107774[_0x401b1d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x358c4c))return!0x0;const _0x4873e8=_0x358c4c[_0x401b1d([0x73,0x70,0x6c,0x69,0x74])](_0x401b1d([0x2e]));return _0x107774[_0x401b1d([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x1cbba8=>_0x1cbba8[_0x401b1d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x401b1d([0x2a])))[_0x401b1d([0x6d,0x61,0x70])](_0xe83dd7=>_0xe83dd7[_0x401b1d([0x73,0x70,0x6c,0x69,0x74])](_0x401b1d([0x2e])))[_0x401b1d([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x61484=>_0x61484[_0x401b1d([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x4873e8[_0x401b1d([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x401b1d([0x6d,0x61,0x70])](_0x25f992=>Array(_0x4873e8[_0x401b1d([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x25f992[_0x401b1d([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x401b1d([0x66,0x69,0x6c,0x6c])](_0x25f992[0x0]===_0x401b1d([0x2a])?_0x401b1d([0x2a]):'')[_0x401b1d([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x25f992))[_0x401b1d([0x73,0x6f,0x6d,0x65])](_0xe5ef85=>_0x4873e8[_0x401b1d([0x65,0x76,0x65,0x72,0x79])]((_0x116309,_0x2aa581)=>_0xe5ef85[_0x2aa581]===_0x116309||_0xe5ef85[_0x2aa581]===_0x401b1d([0x2a])));}function _0xcff84b(){return _0x29a623&&_0x52cb8a?new window[(_0x401b1d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x59fa83,_0x3f9dba)=>{_0x29a623[_0x401b1d([0x74,0x68,0x65,0x6e])](_0x59fa83,_0x3f9dba),_0x52cb8a[_0x401b1d([0x74,0x68,0x65,0x6e])](_0x1efb2c=>{_0x1efb2c!=_0x401b1d([0x56,0x61,0x6c,0x69,0x64])&&_0x59fa83(_0x1efb2c);},_0x3f9dba);}):_0x29a623||_0x52cb8a||_0x401b1d([0x56,0x61,0x6c,0x69,0x64]);}}function _0x231eb4(_0x6342d9,_0x5e240f){return new window[(_0x401b1d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3ede8e=>{if(_0x3cd34a())return _0x3ede8e(_0x401b1d([0x56,0x61,0x6c,0x69,0x64]));_0x39a77f(),_0x4be247[_0x401b1d([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x401b1d([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x23c30f=!0x1;const _0x3a1f3e=_0x185b7e();function _0x304611(_0x1f79de){return!!_0x1f79de&&(typeof _0x1f79de===_0x401b1d([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x1f79de===_0x401b1d([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x1f79de[_0x401b1d([0x74,0x68,0x65,0x6e])]===_0x401b1d([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x1f79de[_0x401b1d([0x63,0x61,0x74,0x63,0x68])]===_0x401b1d([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x156ac7(_0x532863){_0xe892cf(_0x532863)[_0x401b1d([0x74,0x68,0x65,0x6e])](_0x1be333=>{if(!_0x1be333||_0x1be333[_0x401b1d([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x401b1d([0x6f,0x6b]))return _0x401b1d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x275232(_0x69b384(_0x3a1f3e+_0x5e240f))!=_0x1be333[_0x401b1d([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x401b1d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x401b1d([0x56,0x61,0x6c,0x69,0x64]);})[_0x401b1d([0x74,0x68,0x65,0x6e])](_0x31b0fa=>(_0x141ec6(),_0x31b0fa),()=>{const _0x46c697=_0x2ab175();return null==_0x46c697?(_0x141ec6(),_0x401b1d([0x56,0x61,0x6c,0x69,0x64])):_0x401b1d(_0x2f1fde-_0x46c697>(0x27d454df^_0x1fa1a9)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x401b1d([0x74,0x68,0x65,0x6e])](_0x3ede8e)[_0x401b1d([0x63,0x61,0x74,0x63,0x68])](()=>{_0x3ede8e(_0x401b1d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x258b94=0x3ee3e5f^_0x1fa1a9;function _0x141ec6(){const _0x162fff=_0x401b1d([0x6c,0x6c,0x63,0x74,0x2d])+_0x275232(_0x69b384(_0x6342d9)),_0xee225d=_0x4562df(_0x275232(window[_0x401b1d([0x4d,0x61,0x74,0x68])][_0x401b1d([0x63,0x65,0x69,0x6c])](_0x2f1fde/_0x258b94)));window[_0x401b1d([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x401b1d([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x162fff,_0xee225d);}function _0x2ab175(){const _0x56fc39=_0x401b1d([0x6c,0x6c,0x63,0x74,0x2d])+_0x275232(_0x69b384(_0x6342d9)),_0x4c42d7=window[_0x401b1d([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x401b1d([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x56fc39);return _0x4c42d7?window[_0x401b1d([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4562df(_0x4c42d7),0x10)*_0x258b94:null;}function _0xe892cf(_0x1b3202){return new window[(_0x401b1d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1c3ccc,_0x24c892)=>{_0x1b3202[_0x401b1d([0x74,0x68,0x65,0x6e])](_0x1c3ccc,_0x24c892),window[_0x401b1d([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x24c892,0x3d9041f^_0x1fa1a9);});}}_0x4be247[_0x401b1d([0x6f,0x6e])](_0x401b1d([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x1bcd6a,_0xe8f581)=>{if(_0xe8f581[0x0]!=_0x6342d9)return _0x3ede8e(_0x401b1d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0xe8f581[0x1]={..._0xe8f581[0x1],[_0x401b1d([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x3a1f3e};},{[_0x401b1d([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x401b1d([0x68,0x69,0x67,0x68])}),_0x4be247[_0x401b1d([0x6f,0x6e])](_0x401b1d([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x5e0ce5=>{_0x304611(_0x5e0ce5[_0x401b1d([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x23c30f=!0x0,_0x156ac7(_0x5e0ce5[_0x401b1d([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x401b1d([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x401b1d([0x6c,0x6f,0x77])}),_0x435a21[_0x401b1d([0x74,0x68,0x65,0x6e])](()=>{_0x23c30f||_0x3ede8e(_0x401b1d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x3cd34a(){return _0x4be247[_0x401b1d([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x401b1d([0x76,0x69,0x65,0x77])][_0x401b1d([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x401b1d([0x61,0x75,0x74,0x6f]);}function _0x39a77f(){_0x4be247[_0x401b1d([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x401b1d([0x76,0x69,0x65,0x77])][_0x401b1d([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x401b1d([0x61,0x75,0x74,0x6f]);}}function _0x10a1be(_0x2f3d7e){const _0x5a79e5=[new window[(_0x401b1d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x33412e=>setTimeout(_0x33412e,0x3d1ee13^_0x1fa1a9)),_0x435a21[_0x401b1d([0x74,0x68,0x65,0x6e])](()=>new window[(_0x401b1d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x34d6ef=>{let _0x1efcd5=0x0;_0x4be247[_0x401b1d([0x6d,0x6f,0x64,0x65,0x6c])][_0x401b1d([0x6f,0x6e])](_0x401b1d([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x3ef480,_0xe5c520)=>{_0xe5c520[0x0][_0x401b1d([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x1efcd5++,_0x1efcd5==(0x3d8d127^_0x1fa1a9)&&(_0x34d6ef(),_0x3ef480[_0x401b1d([0x6f,0x66,0x66])]());});}))];return window[_0x401b1d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x401b1d([0x72,0x61,0x63,0x65])](_0x5a79e5)[_0x401b1d([0x74,0x68,0x65,0x6e])](()=>_0x2f3d7e);}async function _0x8d681b(){await _0x435a21,_0x4be247[_0x401b1d([0x6d,0x6f,0x64,0x65,0x6c])][_0x401b1d([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x583624,_0x4be247[_0x401b1d([0x6d,0x6f,0x64,0x65,0x6c])][_0x401b1d([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x583624,_0x4be247[_0x401b1d([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x401b1d([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x5b3c6a(_0x5b8037){const _0x34a26a=_0x1f6eb0();_0x4be247[_0x34a26a]=_0x401b1d([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x5b8037,_0x5b8037!=_0x401b1d([0x56,0x61,0x6c,0x69,0x64])&&_0x8d681b();}function _0x1f6eb0(){const _0x13a938=window[_0x401b1d([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x401b1d([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x401b1d([0x6e,0x6f,0x77])]())[_0x401b1d([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x401b1d([0x2e]),'');let _0x1fd8f1=_0x401b1d([0x52]);for(let _0x20f629=0x0;_0x20f629<_0x13a938[_0x401b1d([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x20f629+=0x2){let _0x980bb3=window[_0x401b1d([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x13a938[_0x401b1d([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x20f629,_0x20f629+0x2));_0x980bb3>=_0x195d2c[_0x401b1d([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x980bb3-=_0x195d2c[_0x401b1d([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x1fd8f1+=_0x195d2c[_0x980bb3];}return _0x1fd8f1;}function _0x17d8cf(){const _0x31a0cb=_0x4d9efc[_0x401b1d([0x73,0x70,0x6c,0x69,0x74])](_0x401b1d([0x2e]));if(0x3!=_0x31a0cb[_0x401b1d([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x165f44(_0x31a0cb[0x1]);function _0x165f44(_0x4e017a){const _0x31e844=_0x598490(_0x4e017a);return _0x31e844&&_0x596868()?_0x31e844:null;function _0x596868(){const _0x55e347=_0x31e844[_0x401b1d([0x6a,0x74,0x69])],_0x1047a3=window[_0x401b1d([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x55e347[_0x401b1d([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x55e347[_0x401b1d([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x2d289c={..._0x31e844,[_0x401b1d([0x6a,0x74,0x69])]:_0x55e347[_0x401b1d([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x55e347[_0x401b1d([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x2d289c[_0x401b1d([0x76,0x63])],_0x69b384(_0x2d289c)==_0x1047a3;}}}async function _0x2141fc(){let _0x512f1d=!0x0;try{const _0x573e89=_0x4d9efc[_0x401b1d([0x73,0x70,0x6c,0x69,0x74])](_0x401b1d([0x2e])),[_0x49f768,_0x2ccaae,_0x9f7ddf]=_0x573e89;return _0x3d4e77(_0x49f768),await _0x5f03ae(_0x49f768,_0x2ccaae,_0x9f7ddf),_0x512f1d;}catch{return!0x1;}function _0x3d4e77(_0x4fc67f){const _0x4cbfc2=_0x598490(_0x4fc67f);_0x4cbfc2&&_0x4cbfc2[_0x401b1d([0x61,0x6c,0x67])]==_0x401b1d([0x45,0x53,0x32,0x35,0x36])||(_0x512f1d=!0x1);}async function _0x5f03ae(_0x4502c7,_0x3cc45b,_0x1b2136){const _0x2083f6=window[_0x401b1d([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x401b1d([0x66,0x72,0x6f,0x6d])](_0x50f92a(_0x1b2136),_0x236889=>_0x236889[_0x401b1d([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x140012=new window[(_0x401b1d([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x401b1d([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x4502c7+_0x401b1d([0x2e])+_0x3cc45b),_0x20a725=window[_0x401b1d([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x401b1d([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x20a725)return;const _0x441667=await _0x20a725[_0x401b1d([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x401b1d([0x6a,0x77,0x6b]),_0xb2d13f,{[_0x401b1d([0x6e,0x61,0x6d,0x65])]:_0x401b1d([0x45,0x43,0x44,0x53,0x41]),[_0x401b1d([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x401b1d([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x401b1d([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x20a725[_0x401b1d([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x401b1d([0x6e,0x61,0x6d,0x65])]:_0x401b1d([0x45,0x43,0x44,0x53,0x41]),[_0x401b1d([0x68,0x61,0x73,0x68])]:{[_0x401b1d([0x6e,0x61,0x6d,0x65])]:_0x401b1d([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x441667,_0x2083f6,_0x140012)||(_0x512f1d=!0x1);}}function _0x598490(_0x5ba5c0){return _0x5ba5c0[_0x401b1d([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x401b1d([0x65,0x79]))?JSON[_0x401b1d([0x70,0x61,0x72,0x73,0x65])](_0x50f92a(_0x5ba5c0)):null;}function _0x50f92a(_0x5f1ebd){return window[_0x401b1d([0x61,0x74,0x6f,0x62])](_0x5f1ebd[_0x401b1d([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x401b1d([0x2b]))[_0x401b1d([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x401b1d([0x2f])));}function _0x69b384(_0x3c64dc){let _0x3dc569=0x1505;function _0x5eac29(_0x27ca6a){for(let _0x30a106=0x0;_0x30a106<_0x27ca6a[_0x401b1d([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x30a106++){const _0x4cf15a=_0x27ca6a[_0x401b1d([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x30a106);_0x3dc569=(_0x3dc569<<0x5)+_0x3dc569+_0x4cf15a,_0x3dc569&=_0x3dc569;}}function _0xf753b4(_0x5c0faa){Array[_0x401b1d([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x5c0faa)?_0x5c0faa[_0x401b1d([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0xf753b4):_0x5c0faa&&typeof _0x5c0faa==_0x401b1d([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x401b1d([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x5c0faa)[_0x401b1d([0x73,0x6f,0x72,0x74])]()[_0x401b1d([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x353bc5,_0x22a69f])=>{_0x5eac29(_0x353bc5),_0xf753b4(_0x22a69f);}):_0x5eac29(window[_0x401b1d([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x5c0faa));}return _0xf753b4(_0x3c64dc),_0x3dc569>>>0x0;}function _0x275232(_0x24c717){return _0x24c717[_0x401b1d([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x401b1d([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x401b1d([0x30]));}function _0x4562df(_0x19b424){return _0x19b424[_0x401b1d([0x73,0x70,0x6c,0x69,0x74])]('')[_0x401b1d([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x401b1d([0x6a,0x6f,0x69,0x6e])]('');}function _0x583624(){}function _0x401b1d(_0x580fe4){return _0x580fe4['map'](_0x1ee889=>String['fromCharCode'](_0x1ee889))['join']('');}_0x5b3c6a(await _0x3be6bb());}(this);}['_initSchema'](){const _0x324d67=this['editor']['model']['schema'];_0x324d67['isRegistered']('imageBlock')&&_0x324d67['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x324d67['isRegistered']('imageInline')&&_0x324d67['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x1c3d94=this['editor'];_0x1c3d94['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x1c3d94['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x9bfc86=>_0x9bfc86['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x1633b5=_0x1c3d94['commands']['get']('replaceImageSource');_0x1633b5&&this['listenTo'](_0x1633b5,'cleanupImage',(_0x505f13,[_0x577cbf,_0x4d8b00])=>{_0x577cbf['removeAttribute']('uploadcareImageId',_0x4d8b00);});}['_initConfig'](){const _0x3c3cb4=this['editor']['config']['get']('uploadcare.uploader')||{},_0x40ca06=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x2a12e1(_0x5c4475['document'],'uc-config',{..._0x3c3cb4,'pubkey':_0x40ca06,'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']=_0xe24c1a=>{if('closeMax'==_0xe24c1a)return'#uc-icon-arrow-down';},_0x5c4475['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x2a12e1(_0x5c4475['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader-'+this['ucContextId']}),_0x5c4475['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x296c98=this['editor']['commands']['get']('insertImage');_0x296c98&&this['listenTo'](_0x296c98,'execute',()=>{const _0x58841b=this['editor']['model']['document']['selection']['getSelectedElement']();_0x58841b&&_0x58841b['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x58841b);});});const _0x4e6438=this['editor']['commands']['get']('uploadcareImageReplace');_0x4e6438&&this['listenTo'](_0x4e6438,'execute',()=>{const _0x53a250=this['editor']['model']['document']['selection']['getSelectedElement']();_0x53a250&&_0x53a250['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x53a250);});});}}class tt extends _0x3c1b5d{static get['requires'](){return[o,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x1d763b){super(_0x1d763b),_0x1d763b['config']['define']('uploadcare.uploader.sourceList',[i['Local'],i['URL']]),_0x11b339['defineComponents'](_0x11b339);}}class ii extends _0x1a6eec{constructor(_0xc8e1b3){super(_0xc8e1b3);const t=_0xc8e1b3['t'],_0x3a0a2b=this['bindTemplate'],_0x163f0e=new _0x304037();_0x163f0e['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':[_0x163f0e,{'text':_0x3a0a2b['to']('imageUploadProgress',_0x420aff=>t('Loading\x20image...')+'\x20('+(_0x420aff||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 _0x1a6eec{constructor(_0x1c84e1){super(_0x1c84e1);const t=_0x1c84e1['t'];this['set']('errorType',null);const _0x496291=new _0x36b574(_0x1c84e1);_0x496291['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x496291['withText']=!0x0,_0x496291['class']='ck-button-action',_0x496291['on']('execute',()=>{this['fire']('retry');}),_0x496291['bind']('isVisible')['to'](this,'errorType',_0x21f092=>'NotFound'!==_0x21f092);const _0x270b15=new _0x411e06();_0x270b15['content']=_0x2e3b2b,_0x270b15['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x257b20=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':[_0x270b15,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x257b20['to']('errorType',_0x17d080=>t('NotFound'!==_0x17d080?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x496291]},{'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 _0x1a6eec{constructor(_0x4948c2,_0x539326){super(_0x4948c2);const _0x2f917d=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x539326,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x2f917d['to']('imageSrc')}});}}class X extends F{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x251e00,_0x5d9428,_0x5303a4){super(_0x251e00),this['_items']=this['createCollection'](),this['_loadingView']=new ii(_0x251e00),this['_errorView']=new ti(_0x251e00),this['_editingView']=new ei(_0x251e00,_0x5303a4),this['_focusableView']=new _0x1a6eec(_0x251e00),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x5d9428),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'],_0x1d2c65=>{this['_addUploadcareImageEditorListeners'](_0x1d2c65);});}),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'](_0x34bfb4,_0x437860){const _0x19f10b='uc-cloud-image-editor',_0x18bfcb=_0x34bfb4['querySelector'](_0x19f10b);if(_0x18bfcb)return _0x437860(_0x18bfcb);const _0x2a1979=new MutationObserver(_0x5bbe0c=>{const _0x3236b0=_0x5bbe0c['filter'](_0x29d0db=>_0x29d0db['target']===_0x34bfb4&&_0x29d0db['addedNodes']['length']>0x0&&_0x29d0db['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x19f10b);_0x3236b0['length']&&(_0x2a1979['disconnect'](),_0x437860(_0x3236b0[0x0]['addedNodes'][0x0]));});_0x2a1979['observe'](_0x34bfb4,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x5631b2){_0x5631b2['addEventListener']('apply',_0x6dd244=>{this['fire']('apply',{'imageSrc':_0x6dd244['detail']['cdnUrl']});}),_0x5631b2['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class E extends/* #__PURE__ -- @preserve */
|
|
25
|
-
_0x2a04f3(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x37c206,_0x33b05e,_0x4c570a){super(),this['_editor']=_0x37c206,this['_dialog']=_0x33b05e,this['_imageElement']=_0x4c570a,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 _0x47d38d=this['_imageElement'],_0x1e0274=_0x47d38d['getAttribute']('uploadcareImageId'),_0x3188df=_0x47d38d['getAttribute']('src');if(_0x1e0274)await this['_loadImageInfo'](_0x1e0274,_0x3188df);else{if(this['_imageCache']['has'](_0x3188df)){const _0x372afc=this['_imageCache']['get'](_0x3188df);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x372afc['url'],this['imageDimension']=_0x372afc['dimension'],this['imageId']=_0x372afc['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x330dd6}=this['_editor'],t=_0x330dd6['t'],_0x100292=new X(_0x330dd6,this['imageStatus'],this['_attributes']);_0x100292['bind']('status')['to'](this,'imageStatus'),_0x100292['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x100292['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x100292['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x100292,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x2d05a5,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x100292,'position':_0x4489bd['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x100292['focus']();},'onHide':()=>{_0x100292['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x414e66=>!A(_0x414e66,_0x100292['element'])}});}['_loadImageInfo'](_0x4645a6,_0x171d6c){return j['getInfo'](_0x4645a6,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl')})['then'](_0x26e581=>{const {width:_0x58fe37,height:_0x4fff51}=_0x26e581['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x171d6c,this['imageDimension']={'width':_0x58fe37,'height':_0x4fff51},this['imageId']=_0x4645a6;})['catch'](_0x10964f=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x10964f['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x432720,_0xd9b3be){return this['_getImageAsFile'](_0x432720)['then'](_0x56060e=>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':_0xd9b3be['signal'],'file':_0x56060e,'onProgress':_0x49ed34=>{_0x49ed34&&_0x49ed34['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x49ed34['value']));}}))['then'](_0x2108a6=>{const {width:_0x4821b8,height:_0x1bb41}=_0x2108a6['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x2108a6['cdnUrl'],this['imageDimension']={'width':_0x4821b8,'height':_0x1bb41},this['imageId']=_0x2108a6['uuid'],this['imageUploadProgress']=null;const _0x817e10=_0x432720['getAttribute']('src');this['_imageCache']['set'](_0x817e10,{'id':_0x2108a6['uuid'],'url':_0x2108a6['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x56d39e=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x56d39e['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x26ede6,_0x9f1078){_0x26ede6['on']('apply',(_0x3220ec,_0x466440)=>{this['_replaceImage'](_0x9f1078,_0x466440['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x26ede6['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x26ede6['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0xcb2268,_0xa7b0f4,_0x11f397){const _0x37847f=this['_editor'],{width:_0x14bcca,height:_0x2c807e}=S(_0xa7b0f4,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x2c66bc,imageSources:_0x299928}=C(_0xa7b0f4,_0x14bcca);_0x37847f['model']['change'](_0x5eedd1=>{if('$graveyard'===_0xcb2268['root']['rootName']){_0x37847f['execute']('insertImage',{'imageType':_0xcb2268['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0xcb2268['getAttributes']()),'uploadcareImageId':_0x11f397,'src':_0x2c66bc,'sources':_0x299928,'width':_0x14bcca,'height':_0x2c807e}});const _0x4d8ee3=_0xcb2268['getChildren']();_0xcb2268=_0x37847f['model']['document']['selection']['getSelectedElement']();for(const _0x2cc91e of _0x4d8ee3)_0x5eedd1['append'](_0x5eedd1['cloneElement'](_0x2cc91e),_0xcb2268);}else _0x5eedd1['setSelection'](_0xcb2268,'on'),_0x37847f['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0xcb2268['getAttributes']()),'uploadcareImageId':_0x11f397,'src':_0x2c66bc,'sources':_0x299928,'width':_0x14bcca,'height':_0x2c807e},_0xcb2268);_0x5eedd1['setSelection'](_0xcb2268,'on');});}async['_getImageAsFile'](_0xbe4c2){const _0x66a350=_0x5c4475['window'],_0x26a3a2=_0x5c4475['document']['location']['href'],_0x2e2872=new _0x66a350['URL'](_0xbe4c2['getAttribute']('src'),_0x26a3a2);if('data:'===_0x2e2872['protocol']){const _0x33c4a9=_0x2e2872['href']['split'](','),_0x10f7bf=_0x33c4a9[0x0]['match'](/:(.*?);/)[0x1],_0x16f4ba=_0x10f7bf['split']('/')[0x1],_0x49e28d=_0x66a350['atob'](_0x33c4a9[_0x33c4a9['length']-0x1]);let _0x5953cf=_0x49e28d['length'];const _0x2661df=new _0x66a350['Uint8Array'](_0x5953cf);for(;_0x5953cf--;)_0x2661df[_0x5953cf]=_0x49e28d['charCodeAt'](_0x5953cf);return new _0x66a350['File']([_0x2661df],'image.'+_0x16f4ba,{'type':_0x10f7bf});}const _0x2f3ef5=_0x2e2872['href']['split']('/'),_0x30a14e=_0x2f3ef5[_0x2f3ef5['length']-0x1],_0x5edc9b=_0x30a14e['split']('.')[0x1];return _0x66a350['fetch'](_0x2e2872['href'])['then'](_0x298914=>_0x298914['clone']()['blob']())['then'](_0x472cc4=>new _0x66a350['File']([_0x472cc4],_0x30a14e,{'type':'image/'+_0x5edc9b}));}}class O extends _0x35463a{['imageEditController'];static get['requires'](){return[_0x405406];}['_isEditable'];constructor(_0x4c44a7){super(_0x4c44a7),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x549c3e){const _0x28bd92=G(_0x549c3e);return _0x5ea995=>!(!_0x5ea995||!_0x5ea995['is']('element','imageBlock')&&!_0x5ea995['is']('element','imageInline'))&&(!!_0x5ea995['hasAttribute']('uploadcareImageId')||!!_0x5ea995['hasAttribute']('src')&&_0x28bd92(_0x5ea995['getAttribute']('src')));}(_0x4c44a7['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0xaa214f=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0xaa214f);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x3c4eaf=this['editor']['model']['document']['selection']['getSelectedElement']();_0x3c4eaf&&(_0x3c4eaf['is']('element','imageBlock')||_0x3c4eaf['is']('element','imageInline'))&&(this['imageEditController']=new E(this['editor'],this['editor']['plugins']['get'](_0x405406),_0x3c4eaf),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class R extends _0x35463a{['refresh'](){const _0x31a8bd=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x31a8bd&&(_0x31a8bd['is']('element','imageBlock')||_0x31a8bd['is']('element','imageInline')));}['execute'](_0x528363){const _0x23c2e2=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x25eab6=>{_0x25eab6['setAttributes'](_0x528363,_0x23c2e2),_0x25eab6['removeAttribute']('srcset',_0x23c2e2),_0x25eab6['removeAttribute']('sizes',_0x23c2e2);});}}class m extends _0x3c1b5d{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[o,_0x1d44ff,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x2cd7a1}=this;_0x2cd7a1['commands']['add']('uploadcareImageEdit',new O(_0x2cd7a1)),_0x2cd7a1['commands']['add']('uploadcareImageReplace',new R(_0x2cd7a1));}}class g extends _0x3c1b5d{['_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 _0x5b3430=this['editor'];_0x5b3430['ui']['componentFactory']['add']('uploadcareImageEdit',_0x1de3a2=>{const _0x1cffe6=_0x5b3430['commands']['get']('uploadcareImageEdit'),_0x5ea443=new _0x36b574(_0x1de3a2),t=_0x1de3a2['t'];return _0x5ea443['set']({'icon':_0x2d05a5,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x5ea443['bind']('isEnabled')['to'](_0x1cffe6),_0x5ea443['bind']('isOn')['to'](_0x1cffe6,'isActive'),this['listenTo'](_0x5ea443,'execute',()=>{_0x5b3430['execute']('uploadcareImageEdit'),_0x5b3430['editing']['view']['focus']();}),_0x5ea443;}),this['_initConfig']();}['_initConfig'](){const _0x2987b9=_0x2a12e1(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x2987b9),this['listenTo'](this['editor'],'destroy',()=>{_0x2987b9['remove']();});}}class et extends _0x3c1b5d{static get['pluginName'](){return'UploadcareImageEdit';}static get['requires'](){return[m,g];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{tt as Uploadcare,w as UploadcareCommand,o as UploadcareEditing,et as UploadcareImageEdit,O as UploadcareImageEditCommand,m as UploadcareImageEditEditing,g as UploadcareImageEditUI,e as UploadcareUI,f as UploadcareUploadAdapter};
|
|
23
|
+
import{Plugin as _0x4e90a5,Command as _0x5f1d1f}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0xefbf34,IconGooglePhotos as _0x5ca237,IconGoogleDrive as _0x4ad234,IconFacebook as _0x26ec44,IconDropbox as _0x13f295,IconUploadcareLink as _0x24a875,IconUploadcareImageUpload as _0x44ac62,IconError as _0x3480a4,IconUploadcareImageEdit as _0x2e3c93}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x566edc,MenuBarMenuListItemButtonView as _0x113034,View as _0x3d5001,FocusCycler as _0x3dff4b,Dialog as _0x1e0111,DialogViewPosition as _0x5a2fae,SpinnerView as _0x5ae89b,IconView as _0x72e258,Notification as _0x56b5e2}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x40aa83,DomEmitterMixin as _0x1b9d30,global as _0x1a5972,getAncestors as _0x1f8380,ObservableMixin as _0x5d37c8,uid as _0x21e5c6,createElement as _0xef2b99}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x49458e}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x20b2c0,info as _0x290f71}from'@uploadcare/upload-client';import*as _0x2fc93b from'@uploadcare/file-uploader';var i=function(_0x4d9ba4){return _0x4d9ba4['Local']='local',_0x4d9ba4['URL']='url',_0x4d9ba4['Dropbox']='dropbox',_0x4d9ba4['GDrive']='gdrive',_0x4d9ba4['Facebook']='facebook',_0x4d9ba4['GPhotos']='gphotos',_0x4d9ba4['OneDrive']='onedrive',_0x4d9ba4;}({});function _(_0x3d0b6b,_0x2f5317,_0x5926da){const t=_0x3d0b6b['t'],_0x5a1d64=_0x3d0b6b['t'];switch(_0x2f5317){case i['Local']:return{'text':_0x5a1d64('Insert'===_0x5926da?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x5a1d64('From\x20computer')};case i['URL']:return{'text':'Insert'===_0x5926da?_0x5a1d64('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x5a1d64('Via\x20URL')};case i['Dropbox']:return{'text':t('Insert'===_0x5926da?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case i['Facebook']:return{'text':t('Insert'===_0x5926da?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case i['GDrive']:return{'text':t('Insert'===_0x5926da?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case i['GPhotos']:return{'text':t('Insert'===_0x5926da?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case i['OneDrive']:return{'text':t('Insert'===_0x5926da?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x2f5317;}}class e extends _0x4e90a5{['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 _0x4dd69d=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x2b33a9;for(const _0x362e52 in _0x4dd69d){const _0x36bef8=_0x362e52,_0xe54880=_0x4dd69d[_0x36bef8];if('uploadcareLicenseKeyValid'==_0xe54880||'uploadcareLicenseKeyInvalid'==_0xe54880||'uploadcareLicenseKeyExpired'==_0xe54880||'uploadcareLicenseKeyDomainLimit'==_0xe54880||'uploadcareLicenseKeyNotAllowed'==_0xe54880||'uploadcareLicenseKeyEvaluationLimit'==_0xe54880||'uploadcareLicenseKeyTrialLimit'==_0xe54880||'uploadcareLicenseKeyUsageLimit'==_0xe54880){delete _0x4dd69d[_0x36bef8],_0x2b33a9=_0xe54880,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x2b33a9&&_0x4dd69d['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x2b33a9&&_0x4dd69d['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x2b33a9&&_0x4dd69d['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x2b33a9&&_0x4dd69d['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x2b33a9&&_0x4dd69d['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyTrialLimit'==_0x2b33a9&&_0x4dd69d['_showLicenseError']('trialLimit'),'uploadcareLicenseKeyUsageLimit'==_0x2b33a9&&_0x4dd69d['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x96666c}=this,_0x21c20a=_0x96666c['commands']['get']('uploadcare');if(!_0x21c20a)return;const _0x4fb71b=this['_normalizeConfigSourceList'](_0x96666c['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x25be8c,_0x185144)=>{const _0x36b135=this['_getIntegrationKey'](_0x185144['type']);return _0x25be8c[_0x36b135]||(_0x25be8c[_0x36b135]=[]),_0x25be8c[_0x36b135]['push'](_0x185144),_0x25be8c;},{});_0x96666c['plugins']['has']('ImageInsertUI')&&_0x96666c['commands']['get']('uploadcare')&&Object['entries'](_0x4fb71b)['forEach'](([_0x2050f7,_0x3d7749])=>{_0x96666c['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x2050f7,'observable':()=>_0x21c20a,'buttonViewCreator':()=>this['_createToolbarButton'](_0x3d7749),'formViewCreator':()=>this['_createDropdownButtons'](_0x3d7749),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x3d7749),'override':'assetManager'!==_0x2050f7});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x131933){const {locale:_0x57d460}=this['editor'];return _0x131933['map'](_0x198a07=>{const _0x4c75ef=_(_0x57d460,_0x198a07,'Insert');switch(_0x198a07){case i['Local']:return{'icon':_0x44ac62,'type':i['Local'],..._0x4c75ef};case i['URL']:return{'icon':_0x24a875,'type':i['URL'],..._0x4c75ef};case i['Dropbox']:return{'icon':_0x13f295,'type':i['Dropbox'],..._0x4c75ef};case i['Facebook']:return{'icon':_0x26ec44,'type':i['Facebook'],..._0x4c75ef};case i['GDrive']:return{'icon':_0x4ad234,'type':i['GDrive'],..._0x4c75ef};case i['GPhotos']:return{'icon':_0x5ca237,'type':i['GPhotos'],..._0x4c75ef};case i['OneDrive']:return{'icon':_0xefbf34,'type':i['OneDrive'],..._0x4c75ef};}});}['_getIntegrationKey'](_0x1dabcf){switch(_0x1dabcf){case i['Local']:return'upload';case i['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x4e4c3e,_0x18b7ef){const _0x1be268=this['editor'],_0x443bb7=new _0x4e4c3e(_0x1be268['locale']),_0x4dfd1c=_0x1be268['commands']['get']('uploadcare');return _0x443bb7['bind']('isEnabled')['to'](_0x4dfd1c),_0x443bb7['on']('execute',()=>{_0x4dfd1c['execute'](_0x18b7ef);}),_0x443bb7;}['_createToolbarButton'](_0x27d310){const {locale:_0x18ecaf}=this['editor'],_0x4908f3=this['editor']['plugins']['get']('ImageInsertUI'),_0x23b268=_0x27d310[0x0],_0x11be6e=this['_createButton'](_0x566edc,_0x23b268['type']);return _0x11be6e['icon']=_0x23b268['icon'],_0x11be6e['bind']('label')['to'](_0x4908f3,'isImageSelected',_0x2d6746=>_(_0x18ecaf,_0x23b268['type'],_0x2d6746?'Replace':'Insert')['text']),_0x11be6e['tooltip']=!0x0,_0x11be6e;}['_createDropdownButtons'](_0x54dd29){const {locale:_0xc3374e}=this['editor'],_0xa96b90=this['editor']['plugins']['get']('ImageInsertUI');return _0x54dd29['map'](_0x4363c6=>{const _0xa78a8d=this['_createButton'](_0x566edc,_0x4363c6['type']);return _0xa78a8d['withText']=!0x0,_0xa78a8d['icon']=_0x4363c6['icon'],_0xa78a8d['bind']('label')['to'](_0xa96b90,'isImageSelected',_0x1620f8=>_(_0xc3374e,_0x4363c6['type'],_0x1620f8?'Replace':'Insert')['text']),_0xa78a8d;});}['_createMenuBarButtons'](_0x41133b){return _0x41133b['map'](_0x5c94e9=>{const _0x561bd8=this['_createButton'](_0x113034,_0x5c94e9['type']);return _0x561bd8['icon']=_0x5c94e9['icon'],_0x561bd8['label']=_0x5c94e9['shortText'],_0x561bd8;});}}class F extends _0x3d5001{['focusTracker'];['focusCycler'];constructor(_0x1e8f7f){super(_0x1e8f7f),this['focusTracker']=new _0x40aa83(),this['focusCycler']=new _0x3dff4b({'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(_0x5ccbfd,_0x50d225){super(_0x5ccbfd),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-'+_0x50d225}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}}function C(_0x4b8489,_0x47f212){const _0x173bb4=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x35fb92=>_0x35fb92<=_0x47f212)['map'](_0x240ada=>_0x4b8489['replace'](/\/$/,'')+'/-/resize/'+_0x240ada+'x/\x20'+_0x240ada+'w');return{'imageFallbackUrl':_0x4b8489,'imageSources':[{'srcset':_0x173bb4['join'](',\x20'),'sizes':'(max-width:\x20'+_0x47f212+'px)\x20100vw,\x20'+_0x47f212+'px','type':'image/webp'}]};}function S(_0x3837ea,_0x2ce254,_0xddc663){const _0x5e4296=_0x3837ea['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x5e4296?parseInt(_0x5e4296[0x1],0xa):_0x2ce254,'height':_0x5e4296?parseInt(_0x5e4296[0x2],0xa):_0xddc663};}function p(_0x582cd0,_0x193df7){const _0xd9c8da=new(_0x1b9d30())(),_0x2abad1=_0x582cd0['plugins']['get']('ImageUtils'),_0x454b43=_0x582cd0['editing']['mapper']['toViewElement'](_0x193df7),_0x3a6ac5=_0x2abad1['findViewImgElement'](_0x454b43),_0x4686b6=_0x582cd0['editing']['view']['domConverter']['viewToDom'](_0x3a6ac5),_0x23ce9c=_0x193df7['getAttribute']('width'),_0x260f8d=_0x193df7['getAttribute']('height'),_0x1a81cb='image-processing';_0x582cd0['editing']['view']['change'](_0xcaa40e=>{_0xcaa40e['addClass'](_0x1a81cb,_0x454b43),_0xcaa40e['setStyle']('aspect-ratio',_0x23ce9c+'/'+_0x260f8d,_0x3a6ac5);}),_0xd9c8da['listenTo'](_0x4686b6,'load',()=>{_0xd9c8da['stopListening'](_0x4686b6,'load'),_0x582cd0['editing']['view']['change'](_0x3fc5c4=>{_0x3fc5c4['removeClass'](_0x1a81cb,_0x454b43),_0x3fc5c4['removeStyle']('aspect-ratio',_0x3a6ac5);});});}function G(_0x353035){if(Array['isArray'](_0x353035)){const _0x2f3a44=_0x353035['map'](G);return _0x4e180a=>_0x2f3a44['some'](_0x50a79f=>_0x50a79f(_0x4e180a));}if('origin'==_0x353035){const _0x5e4354=_0x1a5972['window']['location']['origin'];return _0xf6ea32=>new URL(_0xf6ea32,_0x1a5972['document']['baseURI'])['origin']==_0x5e4354;}return'function'==typeof _0x353035?_0x353035:_0x353035 instanceof RegExp?_0x4f1547=>!(!_0x4f1547['match'](_0x353035)&&!_0x4f1547['replace'](/^https?:\/\//,'')['match'](_0x353035)):()=>!0x1;}function A(_0x1d8020,_0x5f41fc){return _0x1f8380(_0x1d8020['target'])['includes'](_0x5f41fc);}class n extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x5d37c8(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x2c8af6,_0x224ffb,_0x3f0cc3){super(),this['_editor']=_0x2c8af6,this['_editing']=_0x224ffb,this['_dialog']=_0x2c8af6['plugins']['get'](_0x1e0111),this['_api']=_0x224ffb['ctxElement']['getAPI'](),this['_type']=_0x3f0cc3,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:_0x4558bd,model:_0xbbb3f7}=this['_editor'],_0x1d43e6=_0xbbb3f7['document']['selection']['getSelectedElement'](),_0x28034f=_0x1d43e6&&(_0x1d43e6['is']('element','imageBlock')||_0x1d43e6['is']('element','imageInline'));this['_formView']=new x(_0x4558bd,this['_editing']['ucContextId']),this['_dialog']['show']({'id':'uploadCare','icon':_0x44ac62,'title':_(_0x4558bd,this['_type'],_0x28034f?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x5a2fae['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x3b0225=>!A(_0x3b0225,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x597834}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x2d34a4=>{const _0x4ca8c0=_0x597834['length'];for(const _0x3fb01b of _0x597834){const _0xaf7f70=_0x3fb01b===_0x597834[_0x4ca8c0-0x1],{cdnUrl:_0x1710a4,fileInfo:_0xfa90f1}=_0x3fb01b;if(!_0x1710a4||!_0xfa90f1)continue;const {width:_0x2cfa69,height:_0x59c61a}=_0xfa90f1['imageInfo'],_0x50bfe8=S(_0x1710a4,_0x2cfa69,_0x59c61a),_0x4ed66d=C(_0x1710a4,_0x50bfe8['width']),_0x2f8179={'id':_0xfa90f1['uuid'],'type':'image','attributes':{'imageDimension':_0x50bfe8,..._0x4ed66d}};this['_insertAsset'](_0x2f8179,_0xaf7f70,_0x2d34a4);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x1267e7=>{'idle'===_0x1267e7['detail']['status']&&!_0x1267e7['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===i['Local']?this['_api']['setCurrentActivity'](i['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x3b1776,_0xb5fbba,_0x231b0a){const _0x58c9a2=this['_editor']['model']['document']['selection'],_0x1beef2=_0x58c9a2['getSelectedElement'](),_0x59e22e=!(!_0x1beef2||!_0x1beef2['is']('element','imageInline'));_0x231b0a['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x3b1776,_0x59e22e),_0xb5fbba||_0x231b0a['setSelection'](_0x58c9a2['getLastPosition']());}['_insertImage'](_0x1d2dcb,_0x19aed4){const _0x4a1f44=this['_editor'],{imageDimension:_0x2cc1c8,imageFallbackUrl:_0xbc969d,imageSources:_0x54e983}=_0x1d2dcb['attributes'];_0x4a1f44['execute']('insertImage',{'imageType':_0x19aed4?'imageInline':null,'source':{'uploadcareImageId':_0x1d2dcb['id'],'src':_0xbc969d,'sources':_0x54e983,..._0x2cc1c8}});}}class w extends _0x5f1d1f{['_editing'];['_controller']=null;static get['requires'](){return[_0x1e0111,o];}constructor(_0x1fcb54){super(_0x1fcb54),this['_editing']=_0x1fcb54['plugins']['get'](o);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x590244){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new n(this['editor'],this['_editing'],_0x590244);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class j{static['upload']({file:_0x388d2c,..._0x23cf86}){return _0x20b2c0(_0x388d2c,_0x23cf86);}static['getInfo'](_0x27c599,_0x261227){return _0x290f71(_0x27c599,_0x261227);}}class f extends _0x4e90a5{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x49458e,o];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x3bedca=this['editor'];if(!!!_0x3bedca['config']['get']('uploadcare'))return;_0x3bedca['plugins']['get'](_0x49458e)['createUploadAdapter']=_0x565726=>new k(_0x565726,_0x3bedca),_0x3bedca['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x14b272,{imageElement:_0x3e01c1,data:_0x5e4700})=>{_0x3bedca['model']['change'](_0x723e22=>{_0x723e22['setAttribute']('uploadcareImageId',_0x5e4700['uploadcareImageId'],_0x3e01c1);});});}}class k{['loader'];['editor'];['controller'];constructor(_0x28d1ac,_0x11bff9){this['loader']=_0x28d1ac,this['editor']=_0x11bff9,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x59dba5=await this['loader']['file'];return j['upload']({'file':_0x59dba5,'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':_0x28d03b=>{_0x28d03b&&_0x28d03b['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x28d03b['value']);}})['then'](async _0x49a3af=>{const {imageFallbackUrl:_0x2a0d74,imageSources:_0x40ea65}=C(_0x49a3af['cdnUrl'],_0x49a3af['imageInfo']['width']);return{'uploadcareImageId':_0x49a3af['uuid'],'default':_0x2a0d74,'sources':_0x40ea65};})['catch'](()=>{const _0x3ddcbc=t('Cannot\x20upload\x20file:')+('\x20'+_0x59dba5['name']+'.');return Promise['reject'](_0x3ddcbc);});}['abort'](){this['controller']['abort']();}}class o extends _0x4e90a5{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',f,_0x1e0111];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['ucContextId'];get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}constructor(_0xa89ff9){super(_0xa89ff9),this['ucContextId']=_0x21e5c6();}['init'](){const _0x456b9a=this['editor'];_0x456b9a['commands']['add']('uploadcare',new w(_0x456b9a));}['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 _0x414a6b=_0x1a5972['document']['querySelector']('input[uploadcare-file-input]');_0x414a6b&&_0x414a6b['remove']();}),async function(_0x20f052){const _0x462146=_0x2cdbc6([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]),_0x1ca9e2=0x3d8d0df,_0x58484b=0x3dfa5e7^_0x1ca9e2,_0xe3da73=window[_0x2cdbc6([0x44,0x61,0x74,0x65])][_0x2cdbc6([0x6e,0x6f,0x77])](),_0x3367b3=_0x20f052[_0x2cdbc6([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x59c1f2=new window[(_0x2cdbc6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x37d521=>{_0x3367b3[_0x2cdbc6([0x6f,0x6e,0x63,0x65])](_0x2cdbc6([0x72,0x65,0x61,0x64,0x79]),_0x37d521);}),_0x47addd={[_0x2cdbc6([0x6b,0x74,0x79])]:_0x2cdbc6([0x45,0x43]),[_0x2cdbc6([0x75,0x73,0x65])]:_0x2cdbc6([0x73,0x69,0x67]),[_0x2cdbc6([0x63,0x72,0x76])]:_0x2cdbc6([0x50,0x2d,0x32,0x35,0x36]),[_0x2cdbc6([0x78])]:_0x2cdbc6([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]),[_0x2cdbc6([0x79])]:_0x2cdbc6([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]),[_0x2cdbc6([0x61,0x6c,0x67])]:_0x2cdbc6([0x45,0x53,0x32,0x35,0x36])},_0x59e972=_0x3367b3[_0x2cdbc6([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x2cdbc6([0x67,0x65,0x74])](_0x2cdbc6([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x5e5e1c(){let _0x19d645,_0x463a89=null,_0x1950b4=null;try{if(_0x59e972==_0x2cdbc6([0x47,0x50,0x4c]))return _0x2cdbc6([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x19d645=_0x27e5c4(),!_0x19d645)return _0x2cdbc6([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x19d645[_0x2cdbc6([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x1950b4=_0x2ab04a(_0x19d645[_0x2cdbc6([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x19d645[_0x2cdbc6([0x6a,0x74,0x69])])),await _0x38f2ef()?_0x512642()?_0x85e9bd()?_0x2cdbc6([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x3acad9()?(_0x19d645[_0x2cdbc6([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x2cdbc6([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x463a89=_0xb1f36f(_0x2cdbc6([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x19d645[_0x2cdbc6([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x2cdbc6([0x74,0x72,0x69,0x61,0x6c])&&(_0x463a89=_0xb1f36f(_0x2cdbc6([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x575828()):_0x2cdbc6([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x2cdbc6([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x2cdbc6([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x2cdbc6([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x85e9bd(){const _0xc0d0ab=[_0x2cdbc6([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x2cdbc6([0x74,0x72,0x69,0x61,0x6c])][_0x2cdbc6([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x19d645[_0x2cdbc6([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0xe3da73/0x3e8:0xe10*_0x58484b;return _0x19d645[_0x2cdbc6([0x65,0x78,0x70])]<_0xc0d0ab;}function _0x512642(){const _0x2109f3=_0x19d645[_0x2cdbc6([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x2109f3&&(!!_0x2109f3[_0x2cdbc6([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2cdbc6([0x2a]))||!!_0x2109f3[_0x2cdbc6([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2cdbc6([0x55,0x50,0x4c,0x43])));}function _0x3acad9(){const _0x67962b=_0x19d645[_0x2cdbc6([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x67962b||0x0==_0x67962b[_0x2cdbc6([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x1756ee}=new URL(window[_0x2cdbc6([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x67962b[_0x2cdbc6([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1756ee))return!0x0;const _0xd66a3=_0x1756ee[_0x2cdbc6([0x73,0x70,0x6c,0x69,0x74])](_0x2cdbc6([0x2e]));return _0x67962b[_0x2cdbc6([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x41cdee=>_0x41cdee[_0x2cdbc6([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2cdbc6([0x2a])))[_0x2cdbc6([0x6d,0x61,0x70])](_0x119500=>_0x119500[_0x2cdbc6([0x73,0x70,0x6c,0x69,0x74])](_0x2cdbc6([0x2e])))[_0x2cdbc6([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x1c5844=>_0x1c5844[_0x2cdbc6([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0xd66a3[_0x2cdbc6([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x2cdbc6([0x6d,0x61,0x70])](_0xc3b9f1=>Array(_0xd66a3[_0x2cdbc6([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0xc3b9f1[_0x2cdbc6([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x2cdbc6([0x66,0x69,0x6c,0x6c])](_0xc3b9f1[0x0]===_0x2cdbc6([0x2a])?_0x2cdbc6([0x2a]):'')[_0x2cdbc6([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0xc3b9f1))[_0x2cdbc6([0x73,0x6f,0x6d,0x65])](_0x7e9c87=>_0xd66a3[_0x2cdbc6([0x65,0x76,0x65,0x72,0x79])]((_0x4d84a8,_0x1b4648)=>_0x7e9c87[_0x1b4648]===_0x4d84a8||_0x7e9c87[_0x1b4648]===_0x2cdbc6([0x2a])));}function _0x575828(){return _0x463a89&&_0x1950b4?new window[(_0x2cdbc6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x54fb43,_0x2b7265)=>{_0x463a89[_0x2cdbc6([0x74,0x68,0x65,0x6e])](_0x54fb43,_0x2b7265),_0x1950b4[_0x2cdbc6([0x74,0x68,0x65,0x6e])](_0x53f922=>{_0x53f922!=_0x2cdbc6([0x56,0x61,0x6c,0x69,0x64])&&_0x54fb43(_0x53f922);},_0x2b7265);}):_0x463a89||_0x1950b4||_0x2cdbc6([0x56,0x61,0x6c,0x69,0x64]);}}function _0x2ab04a(_0x33d974,_0xd9561){return new window[(_0x2cdbc6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x557344=>{if(_0x55d1f3())return _0x557344(_0x2cdbc6([0x56,0x61,0x6c,0x69,0x64]));_0xc55e4e(),_0x3367b3[_0x2cdbc6([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x2cdbc6([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x54de2d=!0x1;const _0x510ea1=_0x21e5c6();function _0x58b3b8(_0x34f82f){return!!_0x34f82f&&(typeof _0x34f82f===_0x2cdbc6([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x34f82f===_0x2cdbc6([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x34f82f[_0x2cdbc6([0x74,0x68,0x65,0x6e])]===_0x2cdbc6([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x34f82f[_0x2cdbc6([0x63,0x61,0x74,0x63,0x68])]===_0x2cdbc6([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0xd2bd57(_0x105579){_0x36d412(_0x105579)[_0x2cdbc6([0x74,0x68,0x65,0x6e])](_0x36916e=>{if(!_0x36916e||_0x36916e[_0x2cdbc6([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x2cdbc6([0x6f,0x6b]))return _0x2cdbc6([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x898364(_0x2e82dc(_0x510ea1+_0xd9561))!=_0x36916e[_0x2cdbc6([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x2cdbc6([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x2cdbc6([0x56,0x61,0x6c,0x69,0x64]);})[_0x2cdbc6([0x74,0x68,0x65,0x6e])](_0x54fa79=>(_0x1e4fc4(),_0x54fa79),()=>{const _0x47b8bd=_0x4c3c94();return null==_0x47b8bd?(_0x1e4fc4(),_0x2cdbc6([0x56,0x61,0x6c,0x69,0x64])):_0x2cdbc6(_0xe3da73-_0x47b8bd>(0x27d454df^_0x1ca9e2)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x2cdbc6([0x74,0x68,0x65,0x6e])](_0x557344)[_0x2cdbc6([0x63,0x61,0x74,0x63,0x68])](()=>{_0x557344(_0x2cdbc6([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x1fddef=0x3ee3e5f^_0x1ca9e2;function _0x1e4fc4(){const _0xaa2244=_0x2cdbc6([0x6c,0x6c,0x63,0x74,0x2d])+_0x898364(_0x2e82dc(_0x33d974)),_0x4e4c2b=_0x443399(_0x898364(window[_0x2cdbc6([0x4d,0x61,0x74,0x68])][_0x2cdbc6([0x63,0x65,0x69,0x6c])](_0xe3da73/_0x1fddef)));window[_0x2cdbc6([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x2cdbc6([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0xaa2244,_0x4e4c2b);}function _0x4c3c94(){const _0x286565=_0x2cdbc6([0x6c,0x6c,0x63,0x74,0x2d])+_0x898364(_0x2e82dc(_0x33d974)),_0xee2c26=window[_0x2cdbc6([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x2cdbc6([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x286565);return _0xee2c26?window[_0x2cdbc6([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x443399(_0xee2c26),0x10)*_0x1fddef:null;}function _0x36d412(_0x455595){return new window[(_0x2cdbc6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x2cdd74,_0x41c127)=>{_0x455595[_0x2cdbc6([0x74,0x68,0x65,0x6e])](_0x2cdd74,_0x41c127),window[_0x2cdbc6([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x41c127,0x3d9041f^_0x1ca9e2);});}}_0x3367b3[_0x2cdbc6([0x6f,0x6e])](_0x2cdbc6([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0xb271cf,_0x1f5d87)=>{if(_0x1f5d87[0x0]!=_0x33d974)return _0x557344(_0x2cdbc6([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x1f5d87[0x1]={..._0x1f5d87[0x1],[_0x2cdbc6([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x510ea1};},{[_0x2cdbc6([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x2cdbc6([0x68,0x69,0x67,0x68])}),_0x3367b3[_0x2cdbc6([0x6f,0x6e])](_0x2cdbc6([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x13a24e=>{_0x58b3b8(_0x13a24e[_0x2cdbc6([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x54de2d=!0x0,_0xd2bd57(_0x13a24e[_0x2cdbc6([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x2cdbc6([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x2cdbc6([0x6c,0x6f,0x77])}),_0x59c1f2[_0x2cdbc6([0x74,0x68,0x65,0x6e])](()=>{_0x54de2d||_0x557344(_0x2cdbc6([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x55d1f3(){return _0x3367b3[_0x2cdbc6([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2cdbc6([0x76,0x69,0x65,0x77])][_0x2cdbc6([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x2cdbc6([0x61,0x75,0x74,0x6f]);}function _0xc55e4e(){_0x3367b3[_0x2cdbc6([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2cdbc6([0x76,0x69,0x65,0x77])][_0x2cdbc6([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x2cdbc6([0x61,0x75,0x74,0x6f]);}}function _0xb1f36f(_0x5c46bf){const _0x698305=[new window[(_0x2cdbc6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x47c401=>setTimeout(_0x47c401,0x3d1ee13^_0x1ca9e2)),_0x59c1f2[_0x2cdbc6([0x74,0x68,0x65,0x6e])](()=>new window[(_0x2cdbc6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x522295=>{let _0x55dc16=0x0;_0x3367b3[_0x2cdbc6([0x6d,0x6f,0x64,0x65,0x6c])][_0x2cdbc6([0x6f,0x6e])](_0x2cdbc6([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x4e8d3f,_0x1b3983)=>{_0x1b3983[0x0][_0x2cdbc6([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x55dc16++,_0x55dc16==(0x3d8d127^_0x1ca9e2)&&(_0x522295(),_0x4e8d3f[_0x2cdbc6([0x6f,0x66,0x66])]());});}))];return window[_0x2cdbc6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x2cdbc6([0x72,0x61,0x63,0x65])](_0x698305)[_0x2cdbc6([0x74,0x68,0x65,0x6e])](()=>_0x5c46bf);}async function _0x42e3b1(){await _0x59c1f2,_0x3367b3[_0x2cdbc6([0x6d,0x6f,0x64,0x65,0x6c])][_0x2cdbc6([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x15c4e4,_0x3367b3[_0x2cdbc6([0x6d,0x6f,0x64,0x65,0x6c])][_0x2cdbc6([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x15c4e4,_0x3367b3[_0x2cdbc6([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x2cdbc6([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x1c7299(_0x2df966){const _0x595211=_0x1706e8();_0x3367b3[_0x595211]=_0x2cdbc6([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x2df966,_0x2df966!=_0x2cdbc6([0x56,0x61,0x6c,0x69,0x64])&&_0x42e3b1();}function _0x1706e8(){const _0x173ba9=window[_0x2cdbc6([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x2cdbc6([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x2cdbc6([0x6e,0x6f,0x77])]())[_0x2cdbc6([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x2cdbc6([0x2e]),'');let _0x4fa80c=_0x2cdbc6([0x52]);for(let _0x72ef02=0x0;_0x72ef02<_0x173ba9[_0x2cdbc6([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x72ef02+=0x2){let _0x2df548=window[_0x2cdbc6([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x173ba9[_0x2cdbc6([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x72ef02,_0x72ef02+0x2));_0x2df548>=_0x462146[_0x2cdbc6([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x2df548-=_0x462146[_0x2cdbc6([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x4fa80c+=_0x462146[_0x2df548];}return _0x4fa80c;}function _0x27e5c4(){const _0xb82e62=_0x59e972[_0x2cdbc6([0x73,0x70,0x6c,0x69,0x74])](_0x2cdbc6([0x2e]));if(0x3!=_0xb82e62[_0x2cdbc6([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x1ea30a(_0xb82e62[0x1]);function _0x1ea30a(_0x28f80d){const _0x88348a=_0x45cf9f(_0x28f80d);return _0x88348a&&_0x26b8b7()?_0x88348a:null;function _0x26b8b7(){const _0x193862=_0x88348a[_0x2cdbc6([0x6a,0x74,0x69])],_0x2147ed=window[_0x2cdbc6([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x193862[_0x2cdbc6([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x193862[_0x2cdbc6([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0xd7b65f={..._0x88348a,[_0x2cdbc6([0x6a,0x74,0x69])]:_0x193862[_0x2cdbc6([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x193862[_0x2cdbc6([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0xd7b65f[_0x2cdbc6([0x76,0x63])],_0x2e82dc(_0xd7b65f)==_0x2147ed;}}}async function _0x38f2ef(){let _0x4d8e00=!0x0;try{const _0x38cc6e=_0x59e972[_0x2cdbc6([0x73,0x70,0x6c,0x69,0x74])](_0x2cdbc6([0x2e])),[_0x3333ba,_0x361232,_0x20926a]=_0x38cc6e;return _0x4fbdae(_0x3333ba),await _0x44cdc1(_0x3333ba,_0x361232,_0x20926a),_0x4d8e00;}catch{return!0x1;}function _0x4fbdae(_0x1af6c1){const _0x4ad5ae=_0x45cf9f(_0x1af6c1);_0x4ad5ae&&_0x4ad5ae[_0x2cdbc6([0x61,0x6c,0x67])]==_0x2cdbc6([0x45,0x53,0x32,0x35,0x36])||(_0x4d8e00=!0x1);}async function _0x44cdc1(_0xaddb3b,_0x5ac705,_0x1f5be1){const _0x3607f6=window[_0x2cdbc6([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x2cdbc6([0x66,0x72,0x6f,0x6d])](_0x53559e(_0x1f5be1),_0x1ad5d0=>_0x1ad5d0[_0x2cdbc6([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x30deca=new window[(_0x2cdbc6([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x2cdbc6([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0xaddb3b+_0x2cdbc6([0x2e])+_0x5ac705),_0x142e15=window[_0x2cdbc6([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x2cdbc6([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x142e15)return;const _0x3c13e3=await _0x142e15[_0x2cdbc6([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x2cdbc6([0x6a,0x77,0x6b]),_0x47addd,{[_0x2cdbc6([0x6e,0x61,0x6d,0x65])]:_0x2cdbc6([0x45,0x43,0x44,0x53,0x41]),[_0x2cdbc6([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x2cdbc6([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x2cdbc6([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x142e15[_0x2cdbc6([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x2cdbc6([0x6e,0x61,0x6d,0x65])]:_0x2cdbc6([0x45,0x43,0x44,0x53,0x41]),[_0x2cdbc6([0x68,0x61,0x73,0x68])]:{[_0x2cdbc6([0x6e,0x61,0x6d,0x65])]:_0x2cdbc6([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x3c13e3,_0x3607f6,_0x30deca)||(_0x4d8e00=!0x1);}}function _0x45cf9f(_0x349d80){return _0x349d80[_0x2cdbc6([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x2cdbc6([0x65,0x79]))?JSON[_0x2cdbc6([0x70,0x61,0x72,0x73,0x65])](_0x53559e(_0x349d80)):null;}function _0x53559e(_0x56914d){return window[_0x2cdbc6([0x61,0x74,0x6f,0x62])](_0x56914d[_0x2cdbc6([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x2cdbc6([0x2b]))[_0x2cdbc6([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x2cdbc6([0x2f])));}function _0x2e82dc(_0x48b922){let _0x2a6164=0x1505;function _0x1d5e83(_0x131181){for(let _0x3142f9=0x0;_0x3142f9<_0x131181[_0x2cdbc6([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3142f9++){const _0x434570=_0x131181[_0x2cdbc6([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x3142f9);_0x2a6164=(_0x2a6164<<0x5)+_0x2a6164+_0x434570,_0x2a6164&=_0x2a6164;}}function _0xdb76ae(_0x4f6332){Array[_0x2cdbc6([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x4f6332)?_0x4f6332[_0x2cdbc6([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0xdb76ae):_0x4f6332&&typeof _0x4f6332==_0x2cdbc6([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x2cdbc6([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x4f6332)[_0x2cdbc6([0x73,0x6f,0x72,0x74])]()[_0x2cdbc6([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x417852,_0xa1a708])=>{_0x1d5e83(_0x417852),_0xdb76ae(_0xa1a708);}):_0x1d5e83(window[_0x2cdbc6([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x4f6332));}return _0xdb76ae(_0x48b922),_0x2a6164>>>0x0;}function _0x898364(_0x4a798d){return _0x4a798d[_0x2cdbc6([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x2cdbc6([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x2cdbc6([0x30]));}function _0x443399(_0x27fa0c){return _0x27fa0c[_0x2cdbc6([0x73,0x70,0x6c,0x69,0x74])]('')[_0x2cdbc6([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x2cdbc6([0x6a,0x6f,0x69,0x6e])]('');}function _0x15c4e4(){}function _0x2cdbc6(_0x35a2ae){return _0x35a2ae['map'](_0x1562ee=>String['fromCharCode'](_0x1562ee))['join']('');}_0x1c7299(await _0x5e5e1c());}(this);}['_initSchema'](){const _0x41934d=this['editor']['model']['schema'];_0x41934d['isRegistered']('imageBlock')&&_0x41934d['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x41934d['isRegistered']('imageInline')&&_0x41934d['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x5b32eb=this['editor'];_0x5b32eb['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x5b32eb['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x1c319c=>_0x1c319c['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x1db1ad=_0x5b32eb['commands']['get']('replaceImageSource');_0x1db1ad&&this['listenTo'](_0x1db1ad,'cleanupImage',(_0x351b40,[_0x98ccbe,_0x505c4b])=>{_0x98ccbe['removeAttribute']('uploadcareImageId',_0x505c4b);});}['_initConfig'](){const _0x316bfe=this['editor']['config']['get']('uploadcare.uploader')||{},_0x4d41f4=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0xef2b99(_0x1a5972['document'],'uc-config',{..._0x316bfe,'pubkey':_0x4d41f4,'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']=_0x55bd48=>{if('closeMax'==_0x55bd48)return'#uc-icon-arrow-down';},_0x1a5972['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0xef2b99(_0x1a5972['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader-'+this['ucContextId']}),_0x1a5972['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x5987f4=this['editor']['commands']['get']('insertImage');_0x5987f4&&this['listenTo'](_0x5987f4,'execute',()=>{const _0x54b742=this['editor']['model']['document']['selection']['getSelectedElement']();_0x54b742&&_0x54b742['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x54b742);});});const _0x2900ce=this['editor']['commands']['get']('uploadcareImageReplace');_0x2900ce&&this['listenTo'](_0x2900ce,'execute',()=>{const _0xdfeae1=this['editor']['model']['document']['selection']['getSelectedElement']();_0xdfeae1&&_0xdfeae1['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0xdfeae1);});});}}class tt extends _0x4e90a5{static get['requires'](){return[o,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x1f84db){super(_0x1f84db),_0x1f84db['config']['define']('uploadcare.uploader.sourceList',[i['Local'],i['URL']]),_0x2fc93b['defineComponents'](_0x2fc93b);}}class ii extends _0x3d5001{constructor(_0x80e0a8){super(_0x80e0a8);const t=_0x80e0a8['t'],_0x3715da=this['bindTemplate'],_0x44e4ae=new _0x5ae89b();_0x44e4ae['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':[_0x44e4ae,{'text':_0x3715da['to']('imageUploadProgress',_0x595758=>t('Loading\x20image...')+'\x20('+(_0x595758||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 _0x3d5001{constructor(_0x5df11e){super(_0x5df11e);const t=_0x5df11e['t'];this['set']('errorType',null);const _0x9c216b=new _0x566edc(_0x5df11e);_0x9c216b['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x9c216b['withText']=!0x0,_0x9c216b['class']='ck-button-action',_0x9c216b['on']('execute',()=>{this['fire']('retry');}),_0x9c216b['bind']('isVisible')['to'](this,'errorType',_0x1f303=>'NotFound'!==_0x1f303);const _0x1cd938=new _0x72e258();_0x1cd938['content']=_0x3480a4,_0x1cd938['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x41bbc9=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':[_0x1cd938,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x41bbc9['to']('errorType',_0x5624f9=>t('NotFound'!==_0x5624f9?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x9c216b]},{'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 _0x3d5001{constructor(_0x5dd1b6,_0x40ebd3){super(_0x5dd1b6);const _0x14ebb6=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x40ebd3,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x14ebb6['to']('imageSrc')}});}}class X extends F{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x1add45,_0x2364d5,_0x449f7d){super(_0x1add45),this['_items']=this['createCollection'](),this['_loadingView']=new ii(_0x1add45),this['_errorView']=new ti(_0x1add45),this['_editingView']=new ei(_0x1add45,_0x449f7d),this['_focusableView']=new _0x3d5001(_0x1add45),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x2364d5),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'],_0x9866cd=>{this['_addUploadcareImageEditorListeners'](_0x9866cd);});}),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'](_0x1528e4,_0x5b0960){const _0x5a905f='uc-cloud-image-editor',_0x4df5e9=_0x1528e4['querySelector'](_0x5a905f);if(_0x4df5e9)return _0x5b0960(_0x4df5e9);const _0x5a5913=new MutationObserver(_0x59f110=>{const _0xa12018=_0x59f110['filter'](_0x146f81=>_0x146f81['target']===_0x1528e4&&_0x146f81['addedNodes']['length']>0x0&&_0x146f81['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x5a905f);_0xa12018['length']&&(_0x5a5913['disconnect'](),_0x5b0960(_0xa12018[0x0]['addedNodes'][0x0]));});_0x5a5913['observe'](_0x1528e4,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x49fb77){_0x49fb77['addEventListener']('apply',_0x371d45=>{this['fire']('apply',{'imageSrc':_0x371d45['detail']['cdnUrl']});}),_0x49fb77['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class E extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0x5d37c8(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x1cfa26,_0x5ebb83,_0x238cd2){super(),this['_editor']=_0x1cfa26,this['_dialog']=_0x5ebb83,this['_imageElement']=_0x238cd2,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 _0xa78bfa=this['_imageElement'],_0x230762=_0xa78bfa['getAttribute']('uploadcareImageId'),_0xcd7612=_0xa78bfa['getAttribute']('src');if(_0x230762)await this['_loadImageInfo'](_0x230762,_0xcd7612);else{if(this['_imageCache']['has'](_0xcd7612)){const _0x7b58a0=this['_imageCache']['get'](_0xcd7612);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x7b58a0['url'],this['imageDimension']=_0x7b58a0['dimension'],this['imageId']=_0x7b58a0['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0xd5140b}=this['_editor'],t=_0xd5140b['t'],_0x161bae=new X(_0xd5140b,this['imageStatus'],this['_attributes']);_0x161bae['bind']('status')['to'](this,'imageStatus'),_0x161bae['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x161bae['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x161bae['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x161bae,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x2e3c93,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x161bae,'position':_0x5a2fae['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x161bae['focus']();},'onHide':()=>{_0x161bae['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x11e651=>!A(_0x11e651,_0x161bae['element'])}});}['_loadImageInfo'](_0x2f9757,_0x5ad4f5){return j['getInfo'](_0x2f9757,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl')})['then'](_0x5edfce=>{const {width:_0x48a590,height:_0x39e42d}=_0x5edfce['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x5ad4f5,this['imageDimension']={'width':_0x48a590,'height':_0x39e42d},this['imageId']=_0x2f9757;})['catch'](_0xc67d0f=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0xc67d0f['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x484a1e,_0x29179f){return this['_getImageAsFile'](_0x484a1e)['then'](_0x5679fd=>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':_0x29179f['signal'],'file':_0x5679fd,'onProgress':_0xb2632f=>{_0xb2632f&&_0xb2632f['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0xb2632f['value']));}}))['then'](_0x349064=>{const {width:_0x5c8e60,height:_0x27a92b}=_0x349064['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x349064['cdnUrl'],this['imageDimension']={'width':_0x5c8e60,'height':_0x27a92b},this['imageId']=_0x349064['uuid'],this['imageUploadProgress']=null;const _0x436e2f=_0x484a1e['getAttribute']('src');this['_imageCache']['set'](_0x436e2f,{'id':_0x349064['uuid'],'url':_0x349064['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x1c8b3d=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x1c8b3d['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x1596b6,_0x2eafde){_0x1596b6['on']('apply',(_0x154f13,_0x78c8e0)=>{this['_replaceImage'](_0x2eafde,_0x78c8e0['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x1596b6['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x1596b6['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x16eeb3,_0x1ac334,_0x39ae1a){const _0x3dfe46=this['_editor'],{width:_0x1f1744,height:_0x48cfb6}=S(_0x1ac334,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x12546,imageSources:_0x597e11}=C(_0x1ac334,_0x1f1744);_0x3dfe46['model']['change'](_0x4bfb86=>{if('$graveyard'===_0x16eeb3['root']['rootName']){_0x3dfe46['execute']('insertImage',{'imageType':_0x16eeb3['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x16eeb3['getAttributes']()),'uploadcareImageId':_0x39ae1a,'src':_0x12546,'sources':_0x597e11,'width':_0x1f1744,'height':_0x48cfb6}});const _0x242104=_0x16eeb3['getChildren']();_0x16eeb3=_0x3dfe46['model']['document']['selection']['getSelectedElement']();for(const _0x20fc9f of _0x242104)_0x4bfb86['append'](_0x4bfb86['cloneElement'](_0x20fc9f),_0x16eeb3);}else _0x4bfb86['setSelection'](_0x16eeb3,'on'),_0x3dfe46['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x16eeb3['getAttributes']()),'uploadcareImageId':_0x39ae1a,'src':_0x12546,'sources':_0x597e11,'width':_0x1f1744,'height':_0x48cfb6},_0x16eeb3);_0x4bfb86['setSelection'](_0x16eeb3,'on');});}async['_getImageAsFile'](_0x54994b){const _0x94a41=_0x1a5972['window'],_0x253be0=_0x1a5972['document']['location']['href'],_0x493091=new _0x94a41['URL'](_0x54994b['getAttribute']('src'),_0x253be0);if('data:'===_0x493091['protocol']){const _0x120fe6=_0x493091['href']['split'](','),_0x3139be=_0x120fe6[0x0]['match'](/:(.*?);/)[0x1],_0x39ff10=_0x3139be['split']('/')[0x1],_0x425130=_0x94a41['atob'](_0x120fe6[_0x120fe6['length']-0x1]);let _0x163dc4=_0x425130['length'];const _0x4c7bc8=new _0x94a41['Uint8Array'](_0x163dc4);for(;_0x163dc4--;)_0x4c7bc8[_0x163dc4]=_0x425130['charCodeAt'](_0x163dc4);return new _0x94a41['File']([_0x4c7bc8],'image.'+_0x39ff10,{'type':_0x3139be});}const _0x20d3cb=_0x493091['href']['split']('/'),_0x5aa84d=_0x20d3cb[_0x20d3cb['length']-0x1],_0x265df2=_0x5aa84d['split']('.')[0x1];return _0x94a41['fetch'](_0x493091['href'])['then'](_0x3293be=>_0x3293be['clone']()['blob']())['then'](_0x2230bc=>new _0x94a41['File']([_0x2230bc],_0x5aa84d,{'type':'image/'+_0x265df2}));}}class O extends _0x5f1d1f{['imageEditController'];static get['requires'](){return[_0x1e0111];}['_isEditable'];constructor(_0x5d2644){super(_0x5d2644),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x268941){const _0x471b2b=G(_0x268941);return _0x372e53=>!(!_0x372e53||!_0x372e53['is']('element','imageBlock')&&!_0x372e53['is']('element','imageInline'))&&(!!_0x372e53['hasAttribute']('uploadcareImageId')||!!_0x372e53['hasAttribute']('src')&&_0x471b2b(_0x372e53['getAttribute']('src')));}(_0x5d2644['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x17f09f=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x17f09f);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x2fe239=this['editor']['model']['document']['selection']['getSelectedElement']();_0x2fe239&&(_0x2fe239['is']('element','imageBlock')||_0x2fe239['is']('element','imageInline'))&&(this['imageEditController']=new E(this['editor'],this['editor']['plugins']['get'](_0x1e0111),_0x2fe239),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class R extends _0x5f1d1f{['refresh'](){const _0x4753a5=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x4753a5&&(_0x4753a5['is']('element','imageBlock')||_0x4753a5['is']('element','imageInline')));}['execute'](_0x87557){const _0x162717=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x24ac0e=>{_0x24ac0e['setAttributes'](_0x87557,_0x162717),_0x24ac0e['removeAttribute']('srcset',_0x162717),_0x24ac0e['removeAttribute']('sizes',_0x162717);});}}class m extends _0x4e90a5{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[o,_0x56b5e2,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x411518}=this;_0x411518['commands']['add']('uploadcareImageEdit',new O(_0x411518)),_0x411518['commands']['add']('uploadcareImageReplace',new R(_0x411518));}}class g extends _0x4e90a5{['_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 _0x197d8f=this['editor'];_0x197d8f['ui']['componentFactory']['add']('uploadcareImageEdit',_0x1329be=>{const _0x2dd6a6=_0x197d8f['commands']['get']('uploadcareImageEdit'),_0x53c66e=new _0x566edc(_0x1329be),t=_0x1329be['t'];return _0x53c66e['set']({'icon':_0x2e3c93,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x53c66e['bind']('isEnabled')['to'](_0x2dd6a6),_0x53c66e['bind']('isOn')['to'](_0x2dd6a6,'isActive'),this['listenTo'](_0x53c66e,'execute',()=>{_0x197d8f['execute']('uploadcareImageEdit'),_0x197d8f['editing']['view']['focus']();}),_0x53c66e;}),this['_initConfig']();}['_initConfig'](){const _0x3e9b60=_0xef2b99(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x3e9b60),this['listenTo'](this['editor'],'destroy',()=>{_0x3e9b60['remove']();});}}class et extends _0x4e90a5{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-20251004.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-20251004.0",
|
|
27
|
+
"@ckeditor/ckeditor5-icons": "0.0.0-nightly-20251004.0",
|
|
28
|
+
"@ckeditor/ckeditor5-image": "0.0.0-nightly-20251004.0",
|
|
29
|
+
"@ckeditor/ckeditor5-theme-lark": "0.0.0-nightly-20251004.0",
|
|
30
|
+
"@ckeditor/ckeditor5-ui": "0.0.0-nightly-20251004.0",
|
|
31
|
+
"@ckeditor/ckeditor5-upload": "0.0.0-nightly-20251004.0",
|
|
32
|
+
"@ckeditor/ckeditor5-utils": "0.0.0-nightly-20251004.0",
|
|
33
|
+
"ckeditor5": "0.0.0-nightly-20251004.0",
|
|
34
34
|
"@uploadcare/file-uploader": "1.19.4",
|
|
35
35
|
"@uploadcare/upload-client": "6.14.3"
|
|
36
36
|
},
|
package/src/uploadcareediting.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function _0x2bd5(_0x18f1be,_0x32fe8e){const _0x520ccc=_0x520c();return _0x2bd5=function(_0x2bd526,_0xad23ca){_0x2bd526=_0x2bd526-0xdb;let _0x12c211=_0x520ccc[_0x2bd526];return _0x12c211;},_0x2bd5(_0x18f1be,_0x32fe8e);}const _0x163364=_0x2bd5;(function(_0x4df389,_0x485c94){const _0x4b4302=_0x2bd5,_0x3c4a3e=_0x4df389();while(!![]){try{const _0xa83091=parseInt(_0x4b4302(0xf7))/0x1+-parseInt(_0x4b4302(0x10d))/0x2+parseInt(_0x4b4302(0xed))/0x3*(parseInt(_0x4b4302(0x10c))/0x4)+parseInt(_0x4b4302(0x111))/0x5+-parseInt(_0x4b4302(0x114))/0x6+-parseInt(_0x4b4302(0x106))/0x7+parseInt(_0x4b4302(0x110))/0x8;if(_0xa83091===_0x485c94)break;else _0x3c4a3e['push'](_0x3c4a3e['shift']());}catch(_0x66b0b1){_0x3c4a3e['push'](_0x3c4a3e['shift']());}}}(_0x520c,0xb2bdb));function _0x520c(){const _0x960dbc=['ctxElement','listenTo','_initConfig','init','_initConversion','getAttribute','insertImage','extend','_ctxElement','join','render','fromCharCode','href','uc-config','isOfficialPlugin','uploadcareImageReplace','document','commands','ucContextId','locale','for','cleanupImage','_initCtx','schema','body','appendChild','map','model','imageBlock','afterInit','imageInline','getSelectedElement','add','execute','replaceImageSource','isPremiumPlugin','destroy','PictureEditing','_initSchema','iconHrefResolver','uploadcare.uploader','_configElement','upcast','230757PzxAfw','uploadcare','remove','UploadcareEditing','view','requires','\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','config','selection','removeAttribute','1254667AXtKcK','isRegistered','conversion','contentLanguage','pluginName','downcast','data-uc-image-id','attributeToAttribute','closeMax','_initImageProcessingIndicator','true','editor','editing','input[uploadcare-file-input]','once','6160581TbNywm','querySelector','uc-upload-ctx-provider','#uc-icon-arrow-down','get','elementToAttribute','52tzOMhJ','2688678gsZbrH','uploader-','uploadcareImageId','6639984jJZkWk','2564735lkMDLM','uploadcare.pubkey','configElement','3846084jrRDZo'];_0x520c=function(){return _0x960dbc;};return _0x520c();}import{Plugin as _0x1869ba}from'ckeditor5/src/core.js';import{Dialog as _0x2c9028}from'ckeditor5/src/ui.js';import{createElement as _0x4629b9,global as _0x57dc5c,uid as _0x562abd}from'ckeditor5/src/utils.js';import{UploadcareCommand as _0x363299}from'./uploadcarecommand.js';import{UploadcareUploadAdapter as _0x14c9e4}from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0x1a7714}from'./utils/editingutils.js';export class UploadcareEditing extends _0x1869ba{[_0x163364(0xeb)]=null;[_0x163364(0x11d)]=null;static get[_0x163364(0xfb)](){const _0x1edec1=_0x163364;return _0x1edec1(0xf0);}static get[_0x163364(0xf2)](){const _0x520102=_0x163364;return[_0x520102(0xe7),_0x14c9e4,_0x2c9028];}static get[_0x163364(0x123)](){return!0x0;}static get[_0x163364(0xe5)](){return!0x0;}[_0x163364(0x127)];get[_0x163364(0x113)](){const _0x3da55c=_0x163364;return this[_0x3da55c(0xeb)];}get[_0x163364(0x115)](){const _0x36804f=_0x163364;return this[_0x36804f(0x11d)];}constructor(_0xc25ec3){const _0x1f3de0=_0x163364;super(_0xc25ec3),this[_0x1f3de0(0x127)]=_0x562abd();}[_0x163364(0x118)](){const _0x6344d9=_0x163364,_0x2eeed6=this[_0x6344d9(0x102)];_0x2eeed6[_0x6344d9(0x126)][_0x6344d9(0xe2)](_0x6344d9(0xee),new _0x363299(_0x2eeed6));}[_0x163364(0xdf)](){const _0x2de17d=_0x163364;this[_0x2de17d(0xe8)](),this[_0x2de17d(0x119)](),this[_0x2de17d(0x117)](),this[_0x2de17d(0x12b)](),this[_0x2de17d(0x100)](),this[_0x2de17d(0x116)](this[_0x2de17d(0x102)],_0x2de17d(0xe6),()=>{const _0x589a2a=_0x2de17d;this[_0x589a2a(0xeb)]&&(this[_0x589a2a(0xeb)][_0x589a2a(0xef)](),this[_0x589a2a(0xeb)]=null),this[_0x589a2a(0x11d)]&&(this[_0x589a2a(0x11d)][_0x589a2a(0xef)](),this[_0x589a2a(0x11d)]=null);const _0x2d204c=_0x57dc5c[_0x589a2a(0x125)][_0x589a2a(0x107)](_0x589a2a(0x104));_0x2d204c&&_0x2d204c[_0x589a2a(0xef)]();}),async function(_0x4e0c8c){const _0x1e5a1f=_0x9f7c2([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]),_0x23eaa3=0x3d8d0df,_0xa25c14=0x3dfa5ff^_0x23eaa3,_0xe18ed1=window[_0x9f7c2([0x44,0x61,0x74,0x65])][_0x9f7c2([0x6e,0x6f,0x77])](),_0x101bd7=_0x4e0c8c[_0x9f7c2([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x56f837=new window[(_0x9f7c2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x6ce948=>{_0x101bd7[_0x9f7c2([0x6f,0x6e,0x63,0x65])](_0x9f7c2([0x72,0x65,0x61,0x64,0x79]),_0x6ce948);}),_0x49dbe5={[_0x9f7c2([0x6b,0x74,0x79])]:_0x9f7c2([0x45,0x43]),[_0x9f7c2([0x75,0x73,0x65])]:_0x9f7c2([0x73,0x69,0x67]),[_0x9f7c2([0x63,0x72,0x76])]:_0x9f7c2([0x50,0x2d,0x32,0x35,0x36]),[_0x9f7c2([0x78])]:_0x9f7c2([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]),[_0x9f7c2([0x79])]:_0x9f7c2([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]),[_0x9f7c2([0x61,0x6c,0x67])]:_0x9f7c2([0x45,0x53,0x32,0x35,0x36])},_0x27edfb=_0x101bd7[_0x9f7c2([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x9f7c2([0x67,0x65,0x74])](_0x9f7c2([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0xa53d8f(){let _0x304028,_0x1131c4=null,_0x2e28d6=null;try{if(_0x27edfb==_0x9f7c2([0x47,0x50,0x4c]))return _0x9f7c2([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x304028=_0x21806a(),!_0x304028)return _0x9f7c2([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x304028[_0x9f7c2([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x2e28d6=_0xcc550a(_0x304028[_0x9f7c2([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x304028[_0x9f7c2([0x6a,0x74,0x69])])),await _0x2c9a7a()?_0x1bd476()?_0x1f6f44()?_0x9f7c2([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x4e14ff()?(_0x304028[_0x9f7c2([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x9f7c2([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x1131c4=_0x113215(_0x9f7c2([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x304028[_0x9f7c2([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x9f7c2([0x74,0x72,0x69,0x61,0x6c])&&(_0x1131c4=_0x113215(_0x9f7c2([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x24dedf()):_0x9f7c2([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x9f7c2([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x9f7c2([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x9f7c2([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x1f6f44(){const _0x467a63=[_0x9f7c2([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x9f7c2([0x74,0x72,0x69,0x61,0x6c])][_0x9f7c2([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x304028[_0x9f7c2([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0xe18ed1/0x3e8:0xe10*_0xa25c14;return _0x304028[_0x9f7c2([0x65,0x78,0x70])]<_0x467a63;}function _0x1bd476(){const _0x226e85=_0x304028[_0x9f7c2([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x226e85&&(!!_0x226e85[_0x9f7c2([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x9f7c2([0x2a]))||!!_0x226e85[_0x9f7c2([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x9f7c2([0x55,0x50,0x4c,0x43])));}function _0x4e14ff(){const _0x177949=_0x2bd5,_0x43771a=_0x304028[_0x9f7c2([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x43771a||0x0==_0x43771a[_0x9f7c2([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x330661}=new URL(window[_0x9f7c2([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x177949(0x121)]);if(_0x43771a[_0x9f7c2([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x330661))return!0x0;const _0x150dc8=_0x330661[_0x9f7c2([0x73,0x70,0x6c,0x69,0x74])](_0x9f7c2([0x2e]));return _0x43771a[_0x9f7c2([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x2faacd=>_0x2faacd[_0x9f7c2([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x9f7c2([0x2a])))[_0x9f7c2([0x6d,0x61,0x70])](_0x2507f5=>_0x2507f5[_0x9f7c2([0x73,0x70,0x6c,0x69,0x74])](_0x9f7c2([0x2e])))[_0x9f7c2([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x367783=>_0x367783[_0x9f7c2([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x150dc8[_0x9f7c2([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x9f7c2([0x6d,0x61,0x70])](_0x1a5e12=>Array(_0x150dc8[_0x9f7c2([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x1a5e12[_0x9f7c2([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x9f7c2([0x66,0x69,0x6c,0x6c])](_0x1a5e12[0x0]===_0x9f7c2([0x2a])?_0x9f7c2([0x2a]):'')[_0x9f7c2([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x1a5e12))[_0x9f7c2([0x73,0x6f,0x6d,0x65])](_0x416399=>_0x150dc8[_0x9f7c2([0x65,0x76,0x65,0x72,0x79])]((_0x4e801e,_0x35cb65)=>_0x416399[_0x35cb65]===_0x4e801e||_0x416399[_0x35cb65]===_0x9f7c2([0x2a])));}function _0x24dedf(){return _0x1131c4&&_0x2e28d6?new window[(_0x9f7c2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x2b8213,_0x3774ee)=>{_0x1131c4[_0x9f7c2([0x74,0x68,0x65,0x6e])](_0x2b8213,_0x3774ee),_0x2e28d6[_0x9f7c2([0x74,0x68,0x65,0x6e])](_0x4d696d=>{_0x4d696d!=_0x9f7c2([0x56,0x61,0x6c,0x69,0x64])&&_0x2b8213(_0x4d696d);},_0x3774ee);}):_0x1131c4||_0x2e28d6||_0x9f7c2([0x56,0x61,0x6c,0x69,0x64]);}}function _0xcc550a(_0x167983,_0x496435){return new window[(_0x9f7c2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1b7e16=>{if(_0x10ef38())return _0x1b7e16(_0x9f7c2([0x56,0x61,0x6c,0x69,0x64]));_0x1c8e99(),_0x101bd7[_0x9f7c2([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x9f7c2([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x1f8c9b=!0x1;const _0xb24451=_0x562abd();function _0x54ab0c(_0x164a18){return!!_0x164a18&&(typeof _0x164a18===_0x9f7c2([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x164a18===_0x9f7c2([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x164a18[_0x9f7c2([0x74,0x68,0x65,0x6e])]===_0x9f7c2([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x164a18[_0x9f7c2([0x63,0x61,0x74,0x63,0x68])]===_0x9f7c2([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x133095(_0x443999){_0x125fa6(_0x443999)[_0x9f7c2([0x74,0x68,0x65,0x6e])](_0x8171c5=>{if(!_0x8171c5||_0x8171c5[_0x9f7c2([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x9f7c2([0x6f,0x6b]))return _0x9f7c2([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x4c8ce4(_0x48fe58(_0xb24451+_0x496435))!=_0x8171c5[_0x9f7c2([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x9f7c2([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x9f7c2([0x56,0x61,0x6c,0x69,0x64]);})[_0x9f7c2([0x74,0x68,0x65,0x6e])](_0x2c9d4f=>(_0x6c8152(),_0x2c9d4f),()=>{const _0x2aefaa=_0x508dda();return null==_0x2aefaa?(_0x6c8152(),_0x9f7c2([0x56,0x61,0x6c,0x69,0x64])):_0x9f7c2(_0xe18ed1-_0x2aefaa>(0x27d454df^_0x23eaa3)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x9f7c2([0x74,0x68,0x65,0x6e])](_0x1b7e16)[_0x9f7c2([0x63,0x61,0x74,0x63,0x68])](()=>{_0x1b7e16(_0x9f7c2([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x173345=0x3ee3e5f^_0x23eaa3;function _0x6c8152(){const _0x705498=_0x9f7c2([0x6c,0x6c,0x63,0x74,0x2d])+_0x4c8ce4(_0x48fe58(_0x167983)),_0x10c3f1=_0x18839e(_0x4c8ce4(window[_0x9f7c2([0x4d,0x61,0x74,0x68])][_0x9f7c2([0x63,0x65,0x69,0x6c])](_0xe18ed1/_0x173345)));window[_0x9f7c2([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x9f7c2([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x705498,_0x10c3f1);}function _0x508dda(){const _0x588cd3=_0x9f7c2([0x6c,0x6c,0x63,0x74,0x2d])+_0x4c8ce4(_0x48fe58(_0x167983)),_0x564cd2=window[_0x9f7c2([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x9f7c2([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x588cd3);return _0x564cd2?window[_0x9f7c2([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x18839e(_0x564cd2),0x10)*_0x173345:null;}function _0x125fa6(_0x17f344){return new window[(_0x9f7c2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x37a095,_0x45ff77)=>{_0x17f344[_0x9f7c2([0x74,0x68,0x65,0x6e])](_0x37a095,_0x45ff77),window[_0x9f7c2([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x45ff77,0x3d9041f^_0x23eaa3);});}}_0x101bd7[_0x9f7c2([0x6f,0x6e])](_0x9f7c2([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x30f1fe,_0x1c0043)=>{if(_0x1c0043[0x0]!=_0x167983)return _0x1b7e16(_0x9f7c2([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x1c0043[0x1]={..._0x1c0043[0x1],[_0x9f7c2([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0xb24451};},{[_0x9f7c2([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x9f7c2([0x68,0x69,0x67,0x68])}),_0x101bd7[_0x9f7c2([0x6f,0x6e])](_0x9f7c2([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x5601bc=>{_0x54ab0c(_0x5601bc[_0x9f7c2([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x1f8c9b=!0x0,_0x133095(_0x5601bc[_0x9f7c2([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x9f7c2([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x9f7c2([0x6c,0x6f,0x77])}),_0x56f837[_0x9f7c2([0x74,0x68,0x65,0x6e])](()=>{_0x1f8c9b||_0x1b7e16(_0x9f7c2([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x10ef38(){return _0x101bd7[_0x9f7c2([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x9f7c2([0x76,0x69,0x65,0x77])][_0x9f7c2([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x9f7c2([0x61,0x75,0x74,0x6f]);}function _0x1c8e99(){_0x101bd7[_0x9f7c2([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x9f7c2([0x76,0x69,0x65,0x77])][_0x9f7c2([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x9f7c2([0x61,0x75,0x74,0x6f]);}}function _0x113215(_0x30a513){const _0x4b608f=[new window[(_0x9f7c2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x261e4e=>setTimeout(_0x261e4e,0x3d1ee13^_0x23eaa3)),_0x56f837[_0x9f7c2([0x74,0x68,0x65,0x6e])](()=>new window[(_0x9f7c2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x591816=>{let _0x445b66=0x0;_0x101bd7[_0x9f7c2([0x6d,0x6f,0x64,0x65,0x6c])][_0x9f7c2([0x6f,0x6e])](_0x9f7c2([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x3884f3,_0x131496)=>{_0x131496[0x0][_0x9f7c2([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x445b66++,_0x445b66==(0x3d8d127^_0x23eaa3)&&(_0x591816(),_0x3884f3[_0x9f7c2([0x6f,0x66,0x66])]());});}))];return window[_0x9f7c2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x9f7c2([0x72,0x61,0x63,0x65])](_0x4b608f)[_0x9f7c2([0x74,0x68,0x65,0x6e])](()=>_0x30a513);}async function _0x41c3cf(){await _0x56f837,_0x101bd7[_0x9f7c2([0x6d,0x6f,0x64,0x65,0x6c])][_0x9f7c2([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x533a2a,_0x101bd7[_0x9f7c2([0x6d,0x6f,0x64,0x65,0x6c])][_0x9f7c2([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x533a2a,_0x101bd7[_0x9f7c2([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x9f7c2([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x349cda(_0x2d0efe){const _0x26a337=_0x48a216();_0x101bd7[_0x26a337]=_0x9f7c2([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x2d0efe,_0x2d0efe!=_0x9f7c2([0x56,0x61,0x6c,0x69,0x64])&&_0x41c3cf();}function _0x48a216(){const _0x14e479=window[_0x9f7c2([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x9f7c2([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x9f7c2([0x6e,0x6f,0x77])]())[_0x9f7c2([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x9f7c2([0x2e]),'');let _0x145cbf=_0x9f7c2([0x52]);for(let _0x4e741a=0x0;_0x4e741a<_0x14e479[_0x9f7c2([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4e741a+=0x2){let _0x599e31=window[_0x9f7c2([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x14e479[_0x9f7c2([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4e741a,_0x4e741a+0x2));_0x599e31>=_0x1e5a1f[_0x9f7c2([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x599e31-=_0x1e5a1f[_0x9f7c2([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x145cbf+=_0x1e5a1f[_0x599e31];}return _0x145cbf;}function _0x21806a(){const _0x278a0b=_0x27edfb[_0x9f7c2([0x73,0x70,0x6c,0x69,0x74])](_0x9f7c2([0x2e]));if(0x3!=_0x278a0b[_0x9f7c2([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x577093(_0x278a0b[0x1]);function _0x577093(_0x5ee160){const _0x1636bc=_0xb0ceaa(_0x5ee160);return _0x1636bc&&_0x19b5b6()?_0x1636bc:null;function _0x19b5b6(){const _0x23288b=_0x1636bc[_0x9f7c2([0x6a,0x74,0x69])],_0x2ed668=window[_0x9f7c2([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x23288b[_0x9f7c2([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x23288b[_0x9f7c2([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x53e4fe={..._0x1636bc,[_0x9f7c2([0x6a,0x74,0x69])]:_0x23288b[_0x9f7c2([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x23288b[_0x9f7c2([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x53e4fe[_0x9f7c2([0x76,0x63])],_0x48fe58(_0x53e4fe)==_0x2ed668;}}}async function _0x2c9a7a(){let _0x58b10c=!0x0;try{const _0x59aa7c=_0x27edfb[_0x9f7c2([0x73,0x70,0x6c,0x69,0x74])](_0x9f7c2([0x2e])),[_0x34280c,_0x4607d5,_0x5c6a44]=_0x59aa7c;return _0x1528e8(_0x34280c),await _0x1cb926(_0x34280c,_0x4607d5,_0x5c6a44),_0x58b10c;}catch{return!0x1;}function _0x1528e8(_0x1f845a){const _0x4d98ab=_0xb0ceaa(_0x1f845a);_0x4d98ab&&_0x4d98ab[_0x9f7c2([0x61,0x6c,0x67])]==_0x9f7c2([0x45,0x53,0x32,0x35,0x36])||(_0x58b10c=!0x1);}async function _0x1cb926(_0xc22a3e,_0x4aad9c,_0x280cf6){const _0x1b11d3=window[_0x9f7c2([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x9f7c2([0x66,0x72,0x6f,0x6d])](_0x2d1d17(_0x280cf6),_0x1355cf=>_0x1355cf[_0x9f7c2([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x2a724d=new window[(_0x9f7c2([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x9f7c2([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0xc22a3e+_0x9f7c2([0x2e])+_0x4aad9c),_0x2484b4=window[_0x9f7c2([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x9f7c2([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x2484b4)return;const _0x2e4d68=await _0x2484b4[_0x9f7c2([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x9f7c2([0x6a,0x77,0x6b]),_0x49dbe5,{[_0x9f7c2([0x6e,0x61,0x6d,0x65])]:_0x9f7c2([0x45,0x43,0x44,0x53,0x41]),[_0x9f7c2([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x9f7c2([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x9f7c2([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x2484b4[_0x9f7c2([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x9f7c2([0x6e,0x61,0x6d,0x65])]:_0x9f7c2([0x45,0x43,0x44,0x53,0x41]),[_0x9f7c2([0x68,0x61,0x73,0x68])]:{[_0x9f7c2([0x6e,0x61,0x6d,0x65])]:_0x9f7c2([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x2e4d68,_0x1b11d3,_0x2a724d)||(_0x58b10c=!0x1);}}function _0xb0ceaa(_0x463aa5){return _0x463aa5[_0x9f7c2([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x9f7c2([0x65,0x79]))?JSON[_0x9f7c2([0x70,0x61,0x72,0x73,0x65])](_0x2d1d17(_0x463aa5)):null;}function _0x2d1d17(_0xaf66ec){return window[_0x9f7c2([0x61,0x74,0x6f,0x62])](_0xaf66ec[_0x9f7c2([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x9f7c2([0x2b]))[_0x9f7c2([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x9f7c2([0x2f])));}function _0x48fe58(_0x2d8142){let _0x37d9fe=0x1505;function _0x3dccb3(_0x1e7edf){for(let _0x2617fb=0x0;_0x2617fb<_0x1e7edf[_0x9f7c2([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2617fb++){const _0x5da522=_0x1e7edf[_0x9f7c2([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x2617fb);_0x37d9fe=(_0x37d9fe<<0x5)+_0x37d9fe+_0x5da522,_0x37d9fe&=_0x37d9fe;}}function _0x3fbe5c(_0x3d913a){Array[_0x9f7c2([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x3d913a)?_0x3d913a[_0x9f7c2([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x3fbe5c):_0x3d913a&&typeof _0x3d913a==_0x9f7c2([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x9f7c2([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x3d913a)[_0x9f7c2([0x73,0x6f,0x72,0x74])]()[_0x9f7c2([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x559ea5,_0x2f0bed])=>{_0x3dccb3(_0x559ea5),_0x3fbe5c(_0x2f0bed);}):_0x3dccb3(window[_0x9f7c2([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x3d913a));}return _0x3fbe5c(_0x2d8142),_0x37d9fe>>>0x0;}function _0x4c8ce4(_0x281de1){return _0x281de1[_0x9f7c2([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x9f7c2([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x9f7c2([0x30]));}function _0x18839e(_0x30d24a){return _0x30d24a[_0x9f7c2([0x73,0x70,0x6c,0x69,0x74])]('')[_0x9f7c2([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x9f7c2([0x6a,0x6f,0x69,0x6e])]('');}function _0x533a2a(){}function _0x9f7c2(_0x3f6207){const _0x420602=_0x2bd5;return _0x3f6207[_0x420602(0xdc)](_0x4490f8=>String[_0x420602(0x120)](_0x4490f8))[_0x420602(0x11e)]('');}_0x349cda(await _0xa53d8f());}(this);}[_0x163364(0xe8)](){const _0x24defb=_0x163364,_0x46be94=this[_0x24defb(0x102)][_0x24defb(0xdd)][_0x24defb(0x12c)];_0x46be94[_0x24defb(0xf8)](_0x24defb(0xde))&&_0x46be94[_0x24defb(0x11c)](_0x24defb(0xde),{'allowAttributes':[_0x24defb(0x10f)]}),_0x46be94[_0x24defb(0xf8)](_0x24defb(0xe0))&&_0x46be94[_0x24defb(0x11c)](_0x24defb(0xe0),{'allowAttributes':[_0x24defb(0x10f)]});}[_0x163364(0x119)](){const _0x19e111=_0x163364,_0xf7cc32=this[_0x19e111(0x102)];_0xf7cc32[_0x19e111(0xf9)][_0x19e111(0x129)](_0x19e111(0xfc))[_0x19e111(0xfe)]({'model':_0x19e111(0x10f),'view':_0x19e111(0xfd)}),_0xf7cc32[_0x19e111(0xf9)][_0x19e111(0x129)](_0x19e111(0xec))[_0x19e111(0x10b)]({'model':{'key':_0x19e111(0x10f),'value':_0x2355f7=>_0x2355f7[_0x19e111(0x11a)](_0x19e111(0xfd))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x19be76=_0xf7cc32[_0x19e111(0x126)][_0x19e111(0x10a)](_0x19e111(0xe4));_0x19be76&&this[_0x19e111(0x116)](_0x19be76,_0x19e111(0x12a),(_0x2a293f,[_0x47cea9,_0x3eca47])=>{const _0x10a60e=_0x19e111;_0x47cea9[_0x10a60e(0xf6)](_0x10a60e(0x10f),_0x3eca47);});}[_0x163364(0x117)](){const _0x12ae9c=_0x163364,_0x2b3d63=this[_0x12ae9c(0x102)][_0x12ae9c(0xf4)][_0x12ae9c(0x10a)](_0x12ae9c(0xea))||{},_0x39e49a=this[_0x12ae9c(0x102)][_0x12ae9c(0xf4)][_0x12ae9c(0x10a)](_0x12ae9c(0x112))||'';this[_0x12ae9c(0xeb)]=_0x4629b9(_0x57dc5c[_0x12ae9c(0x125)],_0x12ae9c(0x122),{..._0x2b3d63,'pubkey':_0x39e49a,'ctx-name':_0x12ae9c(0x10e)+this[_0x12ae9c(0x127)],'sourceList':'','imgOnly':_0x12ae9c(0x101),'removeCopyright':_0x12ae9c(0x101),'localeName':this[_0x12ae9c(0x102)][_0x12ae9c(0x128)][_0x12ae9c(0xfa)],'externalSourcesEmbedCss':_0x12ae9c(0xf3)}),this[_0x12ae9c(0xeb)][_0x12ae9c(0xe9)]=_0x2b9a64=>{const _0x8a0f7a=_0x12ae9c;if(_0x8a0f7a(0xff)==_0x2b9a64)return _0x8a0f7a(0x109);},_0x57dc5c[_0x12ae9c(0x125)][_0x12ae9c(0x12d)][_0x12ae9c(0xdb)](this[_0x12ae9c(0xeb)]);}[_0x163364(0x12b)](){const _0x96486=_0x163364;this[_0x96486(0x11d)]=_0x4629b9(_0x57dc5c[_0x96486(0x125)],_0x96486(0x108),{'ctx-name':_0x96486(0x10e)+this[_0x96486(0x127)]}),_0x57dc5c[_0x96486(0x125)][_0x96486(0x12d)][_0x96486(0xdb)](this[_0x96486(0x11d)]);}[_0x163364(0x100)](){const _0x1b04f1=_0x163364,_0x4a4c88=this[_0x1b04f1(0x102)][_0x1b04f1(0x126)][_0x1b04f1(0x10a)](_0x1b04f1(0x11b));_0x4a4c88&&this[_0x1b04f1(0x116)](_0x4a4c88,_0x1b04f1(0xe3),()=>{const _0x2d7e2a=_0x1b04f1,_0x247414=this[_0x2d7e2a(0x102)][_0x2d7e2a(0xdd)][_0x2d7e2a(0x125)][_0x2d7e2a(0xf5)][_0x2d7e2a(0xe1)]();_0x247414&&_0x247414[_0x2d7e2a(0x11a)](_0x2d7e2a(0x10f))&&this[_0x2d7e2a(0x102)][_0x2d7e2a(0x103)][_0x2d7e2a(0xf1)][_0x2d7e2a(0x105)](_0x2d7e2a(0x11f),()=>{const _0x2a9b1d=_0x2d7e2a;_0x1a7714(this[_0x2a9b1d(0x102)],_0x247414);});});const _0xa3e99c=this[_0x1b04f1(0x102)][_0x1b04f1(0x126)][_0x1b04f1(0x10a)](_0x1b04f1(0x124));_0xa3e99c&&this[_0x1b04f1(0x116)](_0xa3e99c,_0x1b04f1(0xe3),()=>{const _0x21ebeb=_0x1b04f1,_0x25c976=this[_0x21ebeb(0x102)][_0x21ebeb(0xdd)][_0x21ebeb(0x125)][_0x21ebeb(0xf5)][_0x21ebeb(0xe1)]();_0x25c976&&_0x25c976[_0x21ebeb(0x11a)](_0x21ebeb(0x10f))&&this[_0x21ebeb(0x102)][_0x21ebeb(0x103)][_0x21ebeb(0xf1)][_0x21ebeb(0x105)](_0x21ebeb(0x11f),()=>{const _0x3e3d64=_0x21ebeb;_0x1a7714(this[_0x3e3d64(0x102)],_0x25c976);});});}}
|
|
23
|
+
function _0x13bf(){const _0x28a383=['destroy','data-uc-image-id','removeAttribute','config','once','editor','uploader-','afterInit','downcast','266229NzSABl','_initConfig','configElement','isOfficialPlugin','selection','UploadcareEditing','26ETvQdR','conversion','imageInline','for','22953870sCsukJ','fromCharCode','getAttribute','1444xtPmeP','1162213mEAkka','render','uploadcareImageReplace','9811000WFgkSU','commands','7786242LkoZra','editing','input[uploadcare-file-input]','pluginName','upcast','ucContextId','isPremiumPlugin','get','body','attributeToAttribute','1211OcIkEF','closeMax','_configElement','uploadcareImageId','schema','locale','elementToAttribute','_initImageProcessingIndicator','58326mBubiL','view','contentLanguage','map','uploadcare.pubkey','cleanupImage','uploadcare','_initConversion','uploadcare.uploader','true','href','getSelectedElement','imageBlock','listenTo','model','\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','remove','isRegistered','uc-upload-ctx-provider','join','init','_initSchema','appendChild','document','ctxElement','replaceImageSource','#uc-icon-arrow-down','335azewTW','_ctxElement','requires','insertImage','execute','add','iconHrefResolver','PictureEditing','_initCtx','uc-config','extend','querySelector'];_0x13bf=function(){return _0x28a383;};return _0x13bf();}const _0x40bde4=_0x2c37;function _0x2c37(_0x3c06a8,_0x3000ac){const _0x13bfd6=_0x13bf();return _0x2c37=function(_0x2c370c,_0x3978ca){_0x2c370c=_0x2c370c-0x12b;let _0x131a66=_0x13bfd6[_0x2c370c];return _0x131a66;},_0x2c37(_0x3c06a8,_0x3000ac);}(function(_0x40cf7d,_0x17e72e){const _0x7979f3=_0x2c37,_0x5a294f=_0x40cf7d();while(!![]){try{const _0x1553de=parseInt(_0x7979f3(0x13b))/0x1+parseInt(_0x7979f3(0x133))/0x2*(-parseInt(_0x7979f3(0x12d))/0x3)+-parseInt(_0x7979f3(0x13a))/0x4*(parseInt(_0x7979f3(0x16d))/0x5)+-parseInt(_0x7979f3(0x152))/0x6*(parseInt(_0x7979f3(0x14a))/0x7)+parseInt(_0x7979f3(0x13e))/0x8+-parseInt(_0x7979f3(0x140))/0x9+parseInt(_0x7979f3(0x137))/0xa;if(_0x1553de===_0x17e72e)break;else _0x5a294f['push'](_0x5a294f['shift']());}catch(_0x4d6176){_0x5a294f['push'](_0x5a294f['shift']());}}}(_0x13bf,0xea31a));import{Plugin as _0x1deb27}from'ckeditor5/src/core.js';import{Dialog as _0x301d62}from'ckeditor5/src/ui.js';import{createElement as _0x34def0,global as _0x2aff99,uid as _0x1c9d2d}from'ckeditor5/src/utils.js';import{UploadcareCommand as _0x258d89}from'./uploadcarecommand.js';import{UploadcareUploadAdapter as _0x5efc46}from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0x46ec16}from'./utils/editingutils.js';export class UploadcareEditing extends _0x1deb27{[_0x40bde4(0x14c)]=null;[_0x40bde4(0x16e)]=null;static get[_0x40bde4(0x143)](){const _0x3b3ab9=_0x40bde4;return _0x3b3ab9(0x132);}static get[_0x40bde4(0x16f)](){const _0x2590fe=_0x40bde4;return[_0x2590fe(0x174),_0x5efc46,_0x301d62];}static get[_0x40bde4(0x130)](){return!0x0;}static get[_0x40bde4(0x146)](){return!0x0;}[_0x40bde4(0x145)];get[_0x40bde4(0x12f)](){const _0x3ec7ae=_0x40bde4;return this[_0x3ec7ae(0x14c)];}get[_0x40bde4(0x16a)](){const _0x1ab699=_0x40bde4;return this[_0x1ab699(0x16e)];}constructor(_0x40f2bb){const _0x142736=_0x40bde4;super(_0x40f2bb),this[_0x142736(0x145)]=_0x1c9d2d();}[_0x40bde4(0x166)](){const _0x439345=_0x40bde4,_0xc7e12a=this[_0x439345(0x17e)];_0xc7e12a[_0x439345(0x13f)][_0x439345(0x172)](_0x439345(0x158),new _0x258d89(_0xc7e12a));}[_0x40bde4(0x12b)](){const _0x27527e=_0x40bde4;this[_0x27527e(0x167)](),this[_0x27527e(0x159)](),this[_0x27527e(0x12e)](),this[_0x27527e(0x175)](),this[_0x27527e(0x151)](),this[_0x27527e(0x15f)](this[_0x27527e(0x17e)],_0x27527e(0x179),()=>{const _0x4227f6=_0x27527e;this[_0x4227f6(0x14c)]&&(this[_0x4227f6(0x14c)][_0x4227f6(0x162)](),this[_0x4227f6(0x14c)]=null),this[_0x4227f6(0x16e)]&&(this[_0x4227f6(0x16e)][_0x4227f6(0x162)](),this[_0x4227f6(0x16e)]=null);const _0x353d05=_0x2aff99[_0x4227f6(0x169)][_0x4227f6(0x178)](_0x4227f6(0x142));_0x353d05&&_0x353d05[_0x4227f6(0x162)]();}),async function(_0x5a9b3d){const _0x44ce9b=_0x513808([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]),_0x45fc13=0x3d8d0df,_0x2d9171=0x3dfa5e7^_0x45fc13,_0x2f0ef6=window[_0x513808([0x44,0x61,0x74,0x65])][_0x513808([0x6e,0x6f,0x77])](),_0x59112e=_0x5a9b3d[_0x513808([0x65,0x64,0x69,0x74,0x6f,0x72])],_0xe5ee3e=new window[(_0x513808([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x559533=>{_0x59112e[_0x513808([0x6f,0x6e,0x63,0x65])](_0x513808([0x72,0x65,0x61,0x64,0x79]),_0x559533);}),_0x47be9d={[_0x513808([0x6b,0x74,0x79])]:_0x513808([0x45,0x43]),[_0x513808([0x75,0x73,0x65])]:_0x513808([0x73,0x69,0x67]),[_0x513808([0x63,0x72,0x76])]:_0x513808([0x50,0x2d,0x32,0x35,0x36]),[_0x513808([0x78])]:_0x513808([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]),[_0x513808([0x79])]:_0x513808([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]),[_0x513808([0x61,0x6c,0x67])]:_0x513808([0x45,0x53,0x32,0x35,0x36])},_0x1055da=_0x59112e[_0x513808([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x513808([0x67,0x65,0x74])](_0x513808([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x4da140(){let _0x2453f0,_0x1452f2=null,_0x23e96e=null;try{if(_0x1055da==_0x513808([0x47,0x50,0x4c]))return _0x513808([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x2453f0=_0x3fe415(),!_0x2453f0)return _0x513808([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x2453f0[_0x513808([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x23e96e=_0xeeaa5a(_0x2453f0[_0x513808([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x2453f0[_0x513808([0x6a,0x74,0x69])])),await _0x24618d()?_0x172255()?_0x36c8e8()?_0x513808([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x145c76()?(_0x2453f0[_0x513808([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x513808([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x1452f2=_0x2d2b23(_0x513808([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x2453f0[_0x513808([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x513808([0x74,0x72,0x69,0x61,0x6c])&&(_0x1452f2=_0x2d2b23(_0x513808([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x4b3bdd()):_0x513808([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x513808([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x513808([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x513808([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x36c8e8(){const _0x355ae2=[_0x513808([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x513808([0x74,0x72,0x69,0x61,0x6c])][_0x513808([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2453f0[_0x513808([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x2f0ef6/0x3e8:0xe10*_0x2d9171;return _0x2453f0[_0x513808([0x65,0x78,0x70])]<_0x355ae2;}function _0x172255(){const _0x1f5ebe=_0x2453f0[_0x513808([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x1f5ebe&&(!!_0x1f5ebe[_0x513808([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x513808([0x2a]))||!!_0x1f5ebe[_0x513808([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x513808([0x55,0x50,0x4c,0x43])));}function _0x145c76(){const _0x270c00=_0x2c37,_0x311d66=_0x2453f0[_0x513808([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x311d66||0x0==_0x311d66[_0x513808([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x4c8486}=new URL(window[_0x513808([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x270c00(0x15c)]);if(_0x311d66[_0x513808([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4c8486))return!0x0;const _0x5305b7=_0x4c8486[_0x513808([0x73,0x70,0x6c,0x69,0x74])](_0x513808([0x2e]));return _0x311d66[_0x513808([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x5c2b0d=>_0x5c2b0d[_0x513808([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x513808([0x2a])))[_0x513808([0x6d,0x61,0x70])](_0x383b0d=>_0x383b0d[_0x513808([0x73,0x70,0x6c,0x69,0x74])](_0x513808([0x2e])))[_0x513808([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x3ea0a4=>_0x3ea0a4[_0x513808([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x5305b7[_0x513808([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x513808([0x6d,0x61,0x70])](_0x5b1478=>Array(_0x5305b7[_0x513808([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x5b1478[_0x513808([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x513808([0x66,0x69,0x6c,0x6c])](_0x5b1478[0x0]===_0x513808([0x2a])?_0x513808([0x2a]):'')[_0x513808([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x5b1478))[_0x513808([0x73,0x6f,0x6d,0x65])](_0x36c08d=>_0x5305b7[_0x513808([0x65,0x76,0x65,0x72,0x79])]((_0xdbca7b,_0xec65d1)=>_0x36c08d[_0xec65d1]===_0xdbca7b||_0x36c08d[_0xec65d1]===_0x513808([0x2a])));}function _0x4b3bdd(){return _0x1452f2&&_0x23e96e?new window[(_0x513808([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x39da1d,_0x1e7c3c)=>{_0x1452f2[_0x513808([0x74,0x68,0x65,0x6e])](_0x39da1d,_0x1e7c3c),_0x23e96e[_0x513808([0x74,0x68,0x65,0x6e])](_0x5ce271=>{_0x5ce271!=_0x513808([0x56,0x61,0x6c,0x69,0x64])&&_0x39da1d(_0x5ce271);},_0x1e7c3c);}):_0x1452f2||_0x23e96e||_0x513808([0x56,0x61,0x6c,0x69,0x64]);}}function _0xeeaa5a(_0x4952d3,_0x175c28){return new window[(_0x513808([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x245d8c=>{if(_0x1049c7())return _0x245d8c(_0x513808([0x56,0x61,0x6c,0x69,0x64]));_0x27512b(),_0x59112e[_0x513808([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x513808([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x493f2f=!0x1;const _0x5b514b=_0x1c9d2d();function _0x241227(_0x2642b9){return!!_0x2642b9&&(typeof _0x2642b9===_0x513808([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x2642b9===_0x513808([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x2642b9[_0x513808([0x74,0x68,0x65,0x6e])]===_0x513808([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x2642b9[_0x513808([0x63,0x61,0x74,0x63,0x68])]===_0x513808([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x10b98e(_0x4113c1){_0x3070d0(_0x4113c1)[_0x513808([0x74,0x68,0x65,0x6e])](_0x4f6bdb=>{if(!_0x4f6bdb||_0x4f6bdb[_0x513808([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x513808([0x6f,0x6b]))return _0x513808([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x19680a(_0x20ee95(_0x5b514b+_0x175c28))!=_0x4f6bdb[_0x513808([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x513808([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x513808([0x56,0x61,0x6c,0x69,0x64]);})[_0x513808([0x74,0x68,0x65,0x6e])](_0x273204=>(_0x1f3b6e(),_0x273204),()=>{const _0x262735=_0x2e4a9a();return null==_0x262735?(_0x1f3b6e(),_0x513808([0x56,0x61,0x6c,0x69,0x64])):_0x513808(_0x2f0ef6-_0x262735>(0x27d454df^_0x45fc13)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x513808([0x74,0x68,0x65,0x6e])](_0x245d8c)[_0x513808([0x63,0x61,0x74,0x63,0x68])](()=>{_0x245d8c(_0x513808([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x548105=0x3ee3e5f^_0x45fc13;function _0x1f3b6e(){const _0x5242a4=_0x513808([0x6c,0x6c,0x63,0x74,0x2d])+_0x19680a(_0x20ee95(_0x4952d3)),_0x215f3c=_0x51c9a9(_0x19680a(window[_0x513808([0x4d,0x61,0x74,0x68])][_0x513808([0x63,0x65,0x69,0x6c])](_0x2f0ef6/_0x548105)));window[_0x513808([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x513808([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x5242a4,_0x215f3c);}function _0x2e4a9a(){const _0x1a921a=_0x513808([0x6c,0x6c,0x63,0x74,0x2d])+_0x19680a(_0x20ee95(_0x4952d3)),_0x30b7dc=window[_0x513808([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x513808([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1a921a);return _0x30b7dc?window[_0x513808([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x51c9a9(_0x30b7dc),0x10)*_0x548105:null;}function _0x3070d0(_0x45b185){return new window[(_0x513808([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4d9e15,_0x424f62)=>{_0x45b185[_0x513808([0x74,0x68,0x65,0x6e])](_0x4d9e15,_0x424f62),window[_0x513808([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x424f62,0x3d9041f^_0x45fc13);});}}_0x59112e[_0x513808([0x6f,0x6e])](_0x513808([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x2887c4,_0xe6120b)=>{if(_0xe6120b[0x0]!=_0x4952d3)return _0x245d8c(_0x513808([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0xe6120b[0x1]={..._0xe6120b[0x1],[_0x513808([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x5b514b};},{[_0x513808([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x513808([0x68,0x69,0x67,0x68])}),_0x59112e[_0x513808([0x6f,0x6e])](_0x513808([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x19751a=>{_0x241227(_0x19751a[_0x513808([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x493f2f=!0x0,_0x10b98e(_0x19751a[_0x513808([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x513808([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x513808([0x6c,0x6f,0x77])}),_0xe5ee3e[_0x513808([0x74,0x68,0x65,0x6e])](()=>{_0x493f2f||_0x245d8c(_0x513808([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x1049c7(){return _0x59112e[_0x513808([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x513808([0x76,0x69,0x65,0x77])][_0x513808([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x513808([0x61,0x75,0x74,0x6f]);}function _0x27512b(){_0x59112e[_0x513808([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x513808([0x76,0x69,0x65,0x77])][_0x513808([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x513808([0x61,0x75,0x74,0x6f]);}}function _0x2d2b23(_0x4db538){const _0x5a1d36=[new window[(_0x513808([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5add01=>setTimeout(_0x5add01,0x3d1ee13^_0x45fc13)),_0xe5ee3e[_0x513808([0x74,0x68,0x65,0x6e])](()=>new window[(_0x513808([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x345663=>{let _0x33f981=0x0;_0x59112e[_0x513808([0x6d,0x6f,0x64,0x65,0x6c])][_0x513808([0x6f,0x6e])](_0x513808([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x5c59c3,_0x1c58b9)=>{_0x1c58b9[0x0][_0x513808([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x33f981++,_0x33f981==(0x3d8d127^_0x45fc13)&&(_0x345663(),_0x5c59c3[_0x513808([0x6f,0x66,0x66])]());});}))];return window[_0x513808([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x513808([0x72,0x61,0x63,0x65])](_0x5a1d36)[_0x513808([0x74,0x68,0x65,0x6e])](()=>_0x4db538);}async function _0x3163a9(){await _0xe5ee3e,_0x59112e[_0x513808([0x6d,0x6f,0x64,0x65,0x6c])][_0x513808([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x521700,_0x59112e[_0x513808([0x6d,0x6f,0x64,0x65,0x6c])][_0x513808([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x521700,_0x59112e[_0x513808([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x513808([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x1e2a92(_0x19cb7d){const _0xc9ea0a=_0x3d4181();_0x59112e[_0xc9ea0a]=_0x513808([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x19cb7d,_0x19cb7d!=_0x513808([0x56,0x61,0x6c,0x69,0x64])&&_0x3163a9();}function _0x3d4181(){const _0xb93d8a=window[_0x513808([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x513808([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x513808([0x6e,0x6f,0x77])]())[_0x513808([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x513808([0x2e]),'');let _0xdc5f3c=_0x513808([0x52]);for(let _0x5c2c06=0x0;_0x5c2c06<_0xb93d8a[_0x513808([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x5c2c06+=0x2){let _0x2d4256=window[_0x513808([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xb93d8a[_0x513808([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x5c2c06,_0x5c2c06+0x2));_0x2d4256>=_0x44ce9b[_0x513808([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x2d4256-=_0x44ce9b[_0x513808([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0xdc5f3c+=_0x44ce9b[_0x2d4256];}return _0xdc5f3c;}function _0x3fe415(){const _0x2e487b=_0x1055da[_0x513808([0x73,0x70,0x6c,0x69,0x74])](_0x513808([0x2e]));if(0x3!=_0x2e487b[_0x513808([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x4d8cfc(_0x2e487b[0x1]);function _0x4d8cfc(_0x58a07d){const _0x516e3e=_0xdfa0d(_0x58a07d);return _0x516e3e&&_0x51ab54()?_0x516e3e:null;function _0x51ab54(){const _0x176e36=_0x516e3e[_0x513808([0x6a,0x74,0x69])],_0x1bdb0b=window[_0x513808([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x176e36[_0x513808([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x176e36[_0x513808([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x11781f={..._0x516e3e,[_0x513808([0x6a,0x74,0x69])]:_0x176e36[_0x513808([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x176e36[_0x513808([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x11781f[_0x513808([0x76,0x63])],_0x20ee95(_0x11781f)==_0x1bdb0b;}}}async function _0x24618d(){let _0x2e140c=!0x0;try{const _0x1c4c9b=_0x1055da[_0x513808([0x73,0x70,0x6c,0x69,0x74])](_0x513808([0x2e])),[_0x49ffab,_0x48dc0c,_0x42e7a7]=_0x1c4c9b;return _0x54bd0a(_0x49ffab),await _0x318fd1(_0x49ffab,_0x48dc0c,_0x42e7a7),_0x2e140c;}catch{return!0x1;}function _0x54bd0a(_0x5cba59){const _0xfa1eb2=_0xdfa0d(_0x5cba59);_0xfa1eb2&&_0xfa1eb2[_0x513808([0x61,0x6c,0x67])]==_0x513808([0x45,0x53,0x32,0x35,0x36])||(_0x2e140c=!0x1);}async function _0x318fd1(_0x48b1bb,_0x40fa72,_0x36fd9d){const _0x1164d8=window[_0x513808([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x513808([0x66,0x72,0x6f,0x6d])](_0x314d13(_0x36fd9d),_0x483437=>_0x483437[_0x513808([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x32210b=new window[(_0x513808([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x513808([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x48b1bb+_0x513808([0x2e])+_0x40fa72),_0x3c519e=window[_0x513808([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x513808([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x3c519e)return;const _0x29a521=await _0x3c519e[_0x513808([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x513808([0x6a,0x77,0x6b]),_0x47be9d,{[_0x513808([0x6e,0x61,0x6d,0x65])]:_0x513808([0x45,0x43,0x44,0x53,0x41]),[_0x513808([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x513808([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x513808([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x3c519e[_0x513808([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x513808([0x6e,0x61,0x6d,0x65])]:_0x513808([0x45,0x43,0x44,0x53,0x41]),[_0x513808([0x68,0x61,0x73,0x68])]:{[_0x513808([0x6e,0x61,0x6d,0x65])]:_0x513808([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x29a521,_0x1164d8,_0x32210b)||(_0x2e140c=!0x1);}}function _0xdfa0d(_0x38acd8){return _0x38acd8[_0x513808([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x513808([0x65,0x79]))?JSON[_0x513808([0x70,0x61,0x72,0x73,0x65])](_0x314d13(_0x38acd8)):null;}function _0x314d13(_0x4b9827){return window[_0x513808([0x61,0x74,0x6f,0x62])](_0x4b9827[_0x513808([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x513808([0x2b]))[_0x513808([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x513808([0x2f])));}function _0x20ee95(_0x13ff82){let _0x497ee2=0x1505;function _0x262fd4(_0x607944){for(let _0x11d83a=0x0;_0x11d83a<_0x607944[_0x513808([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x11d83a++){const _0x86a242=_0x607944[_0x513808([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x11d83a);_0x497ee2=(_0x497ee2<<0x5)+_0x497ee2+_0x86a242,_0x497ee2&=_0x497ee2;}}function _0x26d06e(_0x3be619){Array[_0x513808([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x3be619)?_0x3be619[_0x513808([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x26d06e):_0x3be619&&typeof _0x3be619==_0x513808([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x513808([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x3be619)[_0x513808([0x73,0x6f,0x72,0x74])]()[_0x513808([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x53ff2a,_0x927903])=>{_0x262fd4(_0x53ff2a),_0x26d06e(_0x927903);}):_0x262fd4(window[_0x513808([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x3be619));}return _0x26d06e(_0x13ff82),_0x497ee2>>>0x0;}function _0x19680a(_0x2e42c6){return _0x2e42c6[_0x513808([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x513808([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x513808([0x30]));}function _0x51c9a9(_0x3d0980){return _0x3d0980[_0x513808([0x73,0x70,0x6c,0x69,0x74])]('')[_0x513808([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x513808([0x6a,0x6f,0x69,0x6e])]('');}function _0x521700(){}function _0x513808(_0x40b315){const _0x380ed1=_0x2c37;return _0x40b315[_0x380ed1(0x155)](_0x33073c=>String[_0x380ed1(0x138)](_0x33073c))[_0x380ed1(0x165)]('');}_0x1e2a92(await _0x4da140());}(this);}[_0x40bde4(0x167)](){const _0x3976d9=_0x40bde4,_0x4a399f=this[_0x3976d9(0x17e)][_0x3976d9(0x160)][_0x3976d9(0x14e)];_0x4a399f[_0x3976d9(0x163)](_0x3976d9(0x15e))&&_0x4a399f[_0x3976d9(0x177)](_0x3976d9(0x15e),{'allowAttributes':[_0x3976d9(0x14d)]}),_0x4a399f[_0x3976d9(0x163)](_0x3976d9(0x135))&&_0x4a399f[_0x3976d9(0x177)](_0x3976d9(0x135),{'allowAttributes':[_0x3976d9(0x14d)]});}[_0x40bde4(0x159)](){const _0x291145=_0x40bde4,_0x150bdb=this[_0x291145(0x17e)];_0x150bdb[_0x291145(0x134)][_0x291145(0x136)](_0x291145(0x12c))[_0x291145(0x149)]({'model':_0x291145(0x14d),'view':_0x291145(0x17a)}),_0x150bdb[_0x291145(0x134)][_0x291145(0x136)](_0x291145(0x144))[_0x291145(0x150)]({'model':{'key':_0x291145(0x14d),'value':_0x4e4d3a=>_0x4e4d3a[_0x291145(0x139)](_0x291145(0x17a))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x4fdb0d=_0x150bdb[_0x291145(0x13f)][_0x291145(0x147)](_0x291145(0x16b));_0x4fdb0d&&this[_0x291145(0x15f)](_0x4fdb0d,_0x291145(0x157),(_0x35b786,[_0x36a07f,_0x5bf072])=>{const _0x1c578f=_0x291145;_0x36a07f[_0x1c578f(0x17b)](_0x1c578f(0x14d),_0x5bf072);});}[_0x40bde4(0x12e)](){const _0x310f9f=_0x40bde4,_0x1d952e=this[_0x310f9f(0x17e)][_0x310f9f(0x17c)][_0x310f9f(0x147)](_0x310f9f(0x15a))||{},_0x19875b=this[_0x310f9f(0x17e)][_0x310f9f(0x17c)][_0x310f9f(0x147)](_0x310f9f(0x156))||'';this[_0x310f9f(0x14c)]=_0x34def0(_0x2aff99[_0x310f9f(0x169)],_0x310f9f(0x176),{..._0x1d952e,'pubkey':_0x19875b,'ctx-name':_0x310f9f(0x17f)+this[_0x310f9f(0x145)],'sourceList':'','imgOnly':_0x310f9f(0x15b),'removeCopyright':_0x310f9f(0x15b),'localeName':this[_0x310f9f(0x17e)][_0x310f9f(0x14f)][_0x310f9f(0x154)],'externalSourcesEmbedCss':_0x310f9f(0x161)}),this[_0x310f9f(0x14c)][_0x310f9f(0x173)]=_0x2ff159=>{const _0x475f6b=_0x310f9f;if(_0x475f6b(0x14b)==_0x2ff159)return _0x475f6b(0x16c);},_0x2aff99[_0x310f9f(0x169)][_0x310f9f(0x148)][_0x310f9f(0x168)](this[_0x310f9f(0x14c)]);}[_0x40bde4(0x175)](){const _0x143cba=_0x40bde4;this[_0x143cba(0x16e)]=_0x34def0(_0x2aff99[_0x143cba(0x169)],_0x143cba(0x164),{'ctx-name':_0x143cba(0x17f)+this[_0x143cba(0x145)]}),_0x2aff99[_0x143cba(0x169)][_0x143cba(0x148)][_0x143cba(0x168)](this[_0x143cba(0x16e)]);}[_0x40bde4(0x151)](){const _0x40b722=_0x40bde4,_0x5e18b2=this[_0x40b722(0x17e)][_0x40b722(0x13f)][_0x40b722(0x147)](_0x40b722(0x170));_0x5e18b2&&this[_0x40b722(0x15f)](_0x5e18b2,_0x40b722(0x171),()=>{const _0x3bac56=_0x40b722,_0xb87a31=this[_0x3bac56(0x17e)][_0x3bac56(0x160)][_0x3bac56(0x169)][_0x3bac56(0x131)][_0x3bac56(0x15d)]();_0xb87a31&&_0xb87a31[_0x3bac56(0x139)](_0x3bac56(0x14d))&&this[_0x3bac56(0x17e)][_0x3bac56(0x141)][_0x3bac56(0x153)][_0x3bac56(0x17d)](_0x3bac56(0x13c),()=>{const _0x36f203=_0x3bac56;_0x46ec16(this[_0x36f203(0x17e)],_0xb87a31);});});const _0x2c043a=this[_0x40b722(0x17e)][_0x40b722(0x13f)][_0x40b722(0x147)](_0x40b722(0x13d));_0x2c043a&&this[_0x40b722(0x15f)](_0x2c043a,_0x40b722(0x171),()=>{const _0x45fa3d=_0x40b722,_0x189aa6=this[_0x45fa3d(0x17e)][_0x45fa3d(0x160)][_0x45fa3d(0x169)][_0x45fa3d(0x131)][_0x45fa3d(0x15d)]();_0x189aa6&&_0x189aa6[_0x45fa3d(0x139)](_0x45fa3d(0x14d))&&this[_0x45fa3d(0x17e)][_0x45fa3d(0x141)][_0x45fa3d(0x153)][_0x45fa3d(0x17d)](_0x45fa3d(0x13c),()=>{const _0x2d44ed=_0x45fa3d;_0x46ec16(this[_0x2d44ed(0x17e)],_0x189aa6);});});}}
|