@ckeditor/ckeditor5-uploadcare 0.0.0-nightly-20250326.1 → 0.0.0-nightly-20250326.2
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 _0x4333de,Command as _0x135d2e}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x51074f,IconGooglePhotos as _0x267773,IconGoogleDrive as _0x185629,IconFacebook as _0x40221f,IconDropbox as _0x47478d,IconUploadcareLink as _0x7018ee,IconUploadcareImageUpload as _0xb5119d,IconError as et,IconUploadcareImageEdit as _0x5eb1a6}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x58bd15,MenuBarMenuListItemButtonView as _0x5d37be,View as _0x13aaf0,FocusCycler as _0x28d159,Dialog as _0x30f676,DialogViewPosition as _0x4e3bbe,SpinnerView as _0xa3d33e,IconView as at,Notification as _0x523ea9}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x53545e,DomEmitterMixin as _0x1e99fe,global as _0x473d6d,getAncestors as _0x38dc8d,ObservableMixin as _0x1bae02,createElement as _0x3ad914,uid as _0x5d4a18}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x49cdee}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x5643eb,info as _0x2533eb}from'@uploadcare/upload-client';import*as _0xecb867 from'@uploadcare/file-uploader';var o=function(_0x2e14eb){return _0x2e14eb['Local']='local',_0x2e14eb['URL']='url',_0x2e14eb['Dropbox']='dropbox',_0x2e14eb['GDrive']='gdrive',_0x2e14eb['Facebook']='facebook',_0x2e14eb['GPhotos']='gphotos',_0x2e14eb['OneDrive']='onedrive',_0x2e14eb;}({});function _(_0x300f35,_0x2ef0d8,_0x388074){const t=_0x300f35['t'],_0x16e1e9=_0x300f35['t'];switch(_0x2ef0d8){case o['Local']:return{'text':_0x16e1e9('Insert'===_0x388074?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x16e1e9('From\x20computer')};case o['URL']:return{'text':'Insert'===_0x388074?_0x16e1e9('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x16e1e9('Via\x20URL')};case o['Dropbox']:return{'text':t('Insert'===_0x388074?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case o['Facebook']:return{'text':t('Insert'===_0x388074?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case o['GDrive']:return{'text':t('Insert'===_0x388074?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case o['GPhotos']:return{'text':t('Insert'===_0x388074?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case o['OneDrive']:return{'text':t('Insert'===_0x388074?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x2ef0d8;}}class e extends _0x4333de{['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 _0x39fb96=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x22142d;for(const _0x185941 in _0x39fb96){const _0x52aecc=_0x185941,_0x5af340=_0x39fb96[_0x52aecc];if('uploadcareLicenseKeyValid'==_0x5af340||'uploadcareLicenseKeyInvalid'==_0x5af340||'uploadcareLicenseKeyExpired'==_0x5af340||'uploadcareLicenseKeyDomainLimit'==_0x5af340||'uploadcareLicenseKeyNotAllowed'==_0x5af340||'uploadcareLicenseKeyEvaluationLimit'==_0x5af340||'uploadcareLicenseKeyTrialLimit'==_0x5af340||'uploadcareLicenseKeyUsageLimit'==_0x5af340){delete _0x39fb96[_0x52aecc],_0x22142d=_0x5af340,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x22142d&&_0x39fb96['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x22142d&&_0x39fb96['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x22142d&&_0x39fb96['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x22142d&&_0x39fb96['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x22142d&&_0x39fb96['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyTrialLimit'==_0x22142d&&_0x39fb96['_showLicenseError']('trialLimit'),'uploadcareLicenseKeyUsageLimit'==_0x22142d&&_0x39fb96['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0xc48409}=this,_0xfdfbd7=_0xc48409['commands']['get']('uploadcare');if(!_0xfdfbd7)return;const _0x37055c=this['_normalizeConfigSourceList'](_0xc48409['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x28d606,_0x1b8cf4)=>{const _0x39d28e=this['_getIntegrationKey'](_0x1b8cf4['type']);return _0x28d606[_0x39d28e]||(_0x28d606[_0x39d28e]=[]),_0x28d606[_0x39d28e]['push'](_0x1b8cf4),_0x28d606;},{});_0xc48409['plugins']['has']('ImageInsertUI')&&_0xc48409['commands']['get']('uploadcare')&&Object['entries'](_0x37055c)['forEach'](([_0x4aefdb,_0x1267ad])=>{_0xc48409['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x4aefdb,'observable':()=>_0xfdfbd7,'buttonViewCreator':()=>this['_createToolbarButton'](_0x1267ad),'formViewCreator':()=>this['_createDropdownButtons'](_0x1267ad),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x1267ad),'override':'assetManager'!==_0x4aefdb});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x58e413){const {locale:_0x14e28f}=this['editor'];return _0x58e413['map'](_0x20ca90=>{const _0x5bdc0d=_(_0x14e28f,_0x20ca90,'Insert');switch(_0x20ca90){case o['Local']:return{'icon':_0xb5119d,'type':o['Local'],..._0x5bdc0d};case o['URL']:return{'icon':_0x7018ee,'type':o['URL'],..._0x5bdc0d};case o['Dropbox']:return{'icon':_0x47478d,'type':o['Dropbox'],..._0x5bdc0d};case o['Facebook']:return{'icon':_0x40221f,'type':o['Facebook'],..._0x5bdc0d};case o['GDrive']:return{'icon':_0x185629,'type':o['GDrive'],..._0x5bdc0d};case o['GPhotos']:return{'icon':_0x267773,'type':o['GPhotos'],..._0x5bdc0d};case o['OneDrive']:return{'icon':_0x51074f,'type':o['OneDrive'],..._0x5bdc0d};}});}['_getIntegrationKey'](_0x32aa4f){switch(_0x32aa4f){case o['Local']:return'upload';case o['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x3ae63e,_0x544921){const _0x1c26a2=this['editor'],_0x2189fa=new _0x3ae63e(_0x1c26a2['locale']),_0x30a8f0=_0x1c26a2['commands']['get']('uploadcare');return _0x2189fa['bind']('isEnabled')['to'](_0x30a8f0),_0x2189fa['on']('execute',()=>{_0x30a8f0['execute'](_0x544921);}),_0x2189fa;}['_createToolbarButton'](_0x2728dd){const {locale:_0x572ba4}=this['editor'],_0x5206c0=this['editor']['plugins']['get']('ImageInsertUI'),_0x18669b=_0x2728dd[0x0],_0x2290d7=this['_createButton'](_0x58bd15,_0x18669b['type']);return _0x2290d7['icon']=_0x18669b['icon'],_0x2290d7['bind']('label')['to'](_0x5206c0,'isImageSelected',_0x285638=>_(_0x572ba4,_0x18669b['type'],_0x285638?'Replace':'Insert')['text']),_0x2290d7['tooltip']=!0x0,_0x2290d7;}['_createDropdownButtons'](_0x36fcdb){const {locale:_0xe1fcb1}=this['editor'],_0x1eb4c3=this['editor']['plugins']['get']('ImageInsertUI');return _0x36fcdb['map'](_0x19e261=>{const _0x25f97e=this['_createButton'](_0x58bd15,_0x19e261['type']);return _0x25f97e['withText']=!0x0,_0x25f97e['icon']=_0x19e261['icon'],_0x25f97e['bind']('label')['to'](_0x1eb4c3,'isImageSelected',_0x50560e=>_(_0xe1fcb1,_0x19e261['type'],_0x50560e?'Replace':'Insert')['text']),_0x25f97e;});}['_createMenuBarButtons'](_0x5ace8e){return _0x5ace8e['map'](_0x5a38ba=>{const _0x1f3b7c=this['_createButton'](_0x5d37be,_0x5a38ba['type']);return _0x1f3b7c['icon']=_0x5a38ba['icon'],_0x1f3b7c['label']=_0x5a38ba['shortText'],_0x1f3b7c;});}}class q extends _0x13aaf0{['focusTracker'];['focusCycler'];constructor(_0xf5b71d){super(_0xf5b71d),this['focusTracker']=new _0x53545e(),this['focusCycler']=new _0x28d159({'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 S extends q{constructor(_0x184009){super(_0x184009),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all-excluded','ck-uploadcare-form'],'tabindex':'-1'},'children':[{'tag':'uc-file-uploader-inline','attributes':{'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'uploader'}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}}function E(_0x3eb081,_0x4cdd22){const _0x2c70af=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x2e0cdb=>_0x2e0cdb<=_0x4cdd22)['map'](_0x3b0565=>_0x3eb081['replace'](/\/$/,'')+'/-/resize/'+_0x3b0565+'x/\x20'+_0x3b0565+'w');return{'imageFallbackUrl':_0x3eb081,'imageSources':[{'srcset':_0x2c70af['join'](',\x20'),'sizes':'(max-width:\x20'+_0x4cdd22+'px)\x20100vw,\x20'+_0x4cdd22+'px','type':'image/webp'}]};}function A(_0x7d989,_0x13ece9,_0x3a6a1d){const _0x51b232=_0x7d989['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x51b232?parseInt(_0x51b232[0x1],0xa):_0x13ece9,'height':_0x51b232?parseInt(_0x51b232[0x2],0xa):_0x3a6a1d};}function m(_0x56fdd5,_0x2b632e){const _0x51ac06=Object['create'](_0x1e99fe),_0x4bb215=_0x56fdd5['plugins']['get']('ImageUtils'),_0x2091d8=_0x56fdd5['editing']['mapper']['toViewElement'](_0x2b632e),_0x349389=_0x4bb215['findViewImgElement'](_0x2091d8),_0x127250=_0x56fdd5['editing']['view']['domConverter']['viewToDom'](_0x349389),_0x59a62d=_0x2b632e['getAttribute']('width'),_0x49a759=_0x2b632e['getAttribute']('height'),_0x4a889e='image-processing';_0x56fdd5['editing']['view']['change'](_0x567859=>{_0x567859['addClass'](_0x4a889e,_0x2091d8),_0x567859['setStyle']('aspect-ratio',_0x59a62d+'/'+_0x49a759,_0x349389);}),_0x51ac06['listenTo'](_0x127250,'load',()=>{_0x51ac06['stopListening'](_0x127250,'load'),_0x56fdd5['editing']['view']['change'](_0x4af108=>{_0x4af108['removeClass'](_0x4a889e,_0x2091d8),_0x4af108['removeStyle']('aspect-ratio',_0x349389);});});}function V(_0x75495a){if(Array['isArray'](_0x75495a)){const _0x271c69=_0x75495a['map'](V);return _0x267963=>_0x271c69['some'](_0x355bdc=>_0x355bdc(_0x267963));}if('origin'==_0x75495a){const _0x221413=_0x473d6d['window']['location']['origin'];return _0x447401=>new URL(_0x447401,_0x473d6d['document']['baseURI'])['origin']==_0x221413;}return'function'==typeof _0x75495a?_0x75495a:_0x75495a instanceof RegExp?_0x11fdc9=>!(!_0x11fdc9['match'](_0x75495a)&&!_0x11fdc9['replace'](/^https?:\/\//,'')['match'](_0x75495a)):()=>!0x1;}function F(_0x1d591f,_0x105c85){return _0x38dc8d(_0x1d591f['target'])['includes'](_0x105c85);}class l extends/* #__PURE__ -- @preserve */
|
|
24
|
-
_0x1bae02(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0xa37199,_0x1f6a2f,_0x389f3d){super(),this['_editor']=_0xa37199,this['_editing']=_0x1f6a2f,this['_dialog']=_0xa37199['plugins']['get'](_0x30f676),this['_api']=_0x1f6a2f['ctxElement']['getAPI'](),this['_type']=_0x389f3d,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:_0x19a626,model:_0x3f5312}=this['_editor'],_0xe6b67b=_0x3f5312['document']['selection']['getSelectedElement'](),_0x30476d=_0xe6b67b&&(_0xe6b67b['is']('element','imageBlock')||_0xe6b67b['is']('element','imageInline'));this['_formView']=new S(_0x19a626),this['_dialog']['show']({'id':'uploadCare','icon':_0xb5119d,'title':_(_0x19a626,this['_type'],_0x30476d?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x4e3bbe['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x54123a=>!F(_0x54123a,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x61101e}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x48715c=>{const _0x4a0b2e=_0x61101e['length'];for(const _0x4e87b2 of _0x61101e){const _0x45383f=_0x4e87b2===_0x61101e[_0x4a0b2e-0x1],{cdnUrl:_0x55c3c4,fileInfo:_0x2d7945}=_0x4e87b2;if(!_0x55c3c4||!_0x2d7945)continue;const {width:_0x33a576,height:_0x1d3279}=_0x2d7945['imageInfo'],_0x40de2c=A(_0x55c3c4,_0x33a576,_0x1d3279),_0x5e1900=E(_0x55c3c4,_0x40de2c['width']),_0x44fc91={'id':_0x2d7945['uuid'],'type':'image','attributes':{'imageDimension':_0x40de2c,..._0x5e1900}};this['_insertAsset'](_0x44fc91,_0x45383f,_0x48715c);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x51acd6=>{'idle'===_0x51acd6['detail']['status']&&!_0x51acd6['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===o['Local']?this['_api']['setCurrentActivity'](o['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x255708,_0x530ca5,_0x19e8de){const _0x44889c=this['_editor']['model']['document']['selection'],_0x7a8e2c=_0x44889c['getSelectedElement'](),_0x213e17=!(!_0x7a8e2c||!_0x7a8e2c['is']('element','imageInline'));_0x19e8de['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x255708,_0x213e17),_0x530ca5||_0x19e8de['setSelection'](_0x44889c['getLastPosition']());}['_insertImage'](_0x205eca,_0x4fd7f9){const _0x3fd766=this['_editor'],{imageDimension:_0x2cd6b5,imageFallbackUrl:_0x3bbee5,imageSources:_0x355406}=_0x205eca['attributes'];_0x3fd766['execute']('insertImage',{'imageType':_0x4fd7f9?'imageInline':null,'source':{'uploadcareImageId':_0x205eca['id'],'src':_0x3bbee5,'sources':_0x355406,..._0x2cd6b5}});}}class n extends _0x135d2e{['_editing'];['_controller']=null;static get['requires'](){return[_0x30f676,i];}constructor(_0x2e47a2){super(_0x2e47a2),this['_editing']=_0x2e47a2['plugins']['get'](i);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x2adfe3){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new l(this['editor'],this['_editing'],_0x2adfe3);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class C{static['upload']({file:_0x4e28dc,publicKey:_0x1e8efb,signal:_0x42e806,onProgress:_0x5b3ac2}){return _0x5643eb(_0x4e28dc,{'publicKey':_0x1e8efb,'store':'auto','signal':_0x42e806,'onProgress':_0x5b3ac2});}static['getInfo'](_0xbf1c2e,_0x403e4b){return _0x2533eb(_0xbf1c2e,_0x403e4b);}}class p extends _0x4333de{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x49cdee,i];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x379ec2=this['editor'];if(!!!_0x379ec2['config']['get']('uploadcare'))return;_0x379ec2['plugins']['get'](_0x49cdee)['createUploadAdapter']=_0x5bf004=>new x(_0x5bf004,_0x379ec2),_0x379ec2['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x2b1934,{imageElement:_0x5279e9,data:_0x957ea8})=>{_0x379ec2['model']['change'](_0xb5dc5a=>{_0xb5dc5a['setAttribute']('uploadcareImageId',_0x957ea8['uploadcareImageId'],_0x5279e9);});});}}class x{['loader'];['editor'];['controller'];constructor(_0x585aa6,_0x4a5270){this['loader']=_0x585aa6,this['editor']=_0x4a5270,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x3962ae=this['editor']['config']['get']('uploadcare.pubkey'),_0x43614a=await this['loader']['file'];return C['upload']({'file':_0x43614a,'publicKey':_0x3962ae,'signal':this['controller']['signal'],'onProgress':_0x4cd67d=>{_0x4cd67d&&_0x4cd67d['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x4cd67d['value']);}})['then'](async _0x302a53=>{const {imageFallbackUrl:_0x5f4c19,imageSources:_0x14cbbc}=E(_0x302a53['cdnUrl'],_0x302a53['imageInfo']['width']);return{'uploadcareImageId':_0x302a53['uuid'],'default':_0x5f4c19,'sources':_0x14cbbc};})['catch'](()=>{const _0x2caa8c=t('Cannot\x20upload\x20file:')+('\x20'+_0x43614a['name']+'.');return Promise['reject'](_0x2caa8c);});}['abort'](){this['controller']['abort']();}}class i extends _0x4333de{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',p,_0x30f676];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}['init'](){const _0x3273b1=this['editor'];_0x3273b1['commands']['add']('uploadcare',new n(_0x3273b1));}['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 _0x4ace2c=_0x473d6d['document']['querySelector']('input[uploadcare-file-input]');_0x4ace2c&&_0x4ace2c['remove']();}),async function(_0x1cb741){const _0x439f2a=_0x59febc([0x46,0x6d,0x57,0x64,0x79,0x48,0x54,0x35,0x36,0x62,0x59,0x44,0x53,0x31,0x37,0x63,0x4d,0x33,0x45,0x65,0x6b,0x42,0x74,0x5a,0x50,0x32,0x72,0x6c,0x38,0x61,0x4f,0x6f,0x4b,0x66,0x43,0x51,0x78,0x4c,0x4a,0x47,0x49,0x55,0x34,0x41,0x30,0x75,0x39,0x4e,0x77,0x68,0x58,0x70,0x71,0x56,0x73,0x6e,0x52,0x76,0x6a,0x69,0x67,0x7a]),_0x53ca16=0x1a535ede,_0x31525c=0x1a543de6^_0x53ca16,_0x4be2b7=window[_0x59febc([0x44,0x61,0x74,0x65])][_0x59febc([0x6e,0x6f,0x77])](),_0x218031=_0x1cb741[_0x59febc([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x6637b3=new window[(_0x59febc([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2bd35c=>{_0x218031[_0x59febc([0x6f,0x6e,0x63,0x65])](_0x59febc([0x72,0x65,0x61,0x64,0x79]),_0x2bd35c);}),_0x1a4ffa={[_0x59febc([0x6b,0x74,0x79])]:_0x59febc([0x45,0x43]),[_0x59febc([0x75,0x73,0x65])]:_0x59febc([0x73,0x69,0x67]),[_0x59febc([0x63,0x72,0x76])]:_0x59febc([0x50,0x2d,0x32,0x35,0x36]),[_0x59febc([0x78])]:_0x59febc([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]),[_0x59febc([0x79])]:_0x59febc([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]),[_0x59febc([0x61,0x6c,0x67])]:_0x59febc([0x45,0x53,0x32,0x35,0x36])},_0x4f97e3=_0x218031[_0x59febc([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x59febc([0x67,0x65,0x74])](_0x59febc([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x4a9ae5(){let _0x2de5e6,_0x5a0fda=null,_0x5daba3=null;try{if(_0x4f97e3==_0x59febc([0x47,0x50,0x4c]))return _0x59febc([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x2de5e6=_0x200a3b(),!_0x2de5e6)return _0x59febc([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x2de5e6[_0x59febc([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x5daba3=_0x58185d(_0x2de5e6[_0x59febc([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x2de5e6[_0x59febc([0x6a,0x74,0x69])])),await _0x39085b()?_0x455d39()?_0x47856f()?_0x59febc([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x102d9c()?(_0x2de5e6[_0x59febc([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x59febc([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x5a0fda=_0xe5fbc1(_0x59febc([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x2de5e6[_0x59febc([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x59febc([0x74,0x72,0x69,0x61,0x6c])&&(_0x5a0fda=_0xe5fbc1(_0x59febc([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x21784a()):_0x59febc([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x59febc([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x59febc([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x543f2a){return _0x59febc([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x47856f(){const _0x5436f5=[_0x59febc([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x59febc([0x74,0x72,0x69,0x61,0x6c])][_0x59febc([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2de5e6[_0x59febc([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x4be2b7/0x3e8:0xe10*_0x31525c;return _0x2de5e6[_0x59febc([0x65,0x78,0x70])]<_0x5436f5;}function _0x455d39(){const _0x116f9b=_0x2de5e6[_0x59febc([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x116f9b&&(!!_0x116f9b[_0x59febc([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x59febc([0x2a]))||!!_0x116f9b[_0x59febc([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x59febc([0x55,0x50,0x4c,0x43])));}function _0x102d9c(){const _0x3d2d3a=_0x2de5e6[_0x59febc([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x3d2d3a||0x0==_0x3d2d3a[_0x59febc([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x208937}=new URL(window[_0x59febc([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x3d2d3a[_0x59febc([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x208937))return!0x0;const _0x4ca0ea=_0x208937[_0x59febc([0x73,0x70,0x6c,0x69,0x74])](_0x59febc([0x2e]));return _0x3d2d3a[_0x59febc([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x2a5b7c=>_0x2a5b7c[_0x59febc([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x59febc([0x2a])))[_0x59febc([0x6d,0x61,0x70])](_0x2c1ac1=>_0x2c1ac1[_0x59febc([0x73,0x70,0x6c,0x69,0x74])](_0x59febc([0x2e])))[_0x59febc([0x73,0x6f,0x6d,0x65])](_0x29f612=>_0x4ca0ea[_0x59febc([0x65,0x76,0x65,0x72,0x79])]((_0x226358,_0x14d425)=>_0x29f612[_0x14d425]===_0x226358||_0x29f612[_0x14d425]===_0x59febc([0x2a])));}function _0x21784a(){return _0x5a0fda&&_0x5daba3?new window[(_0x59febc([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x42cafb,_0x238924)=>{_0x5a0fda[_0x59febc([0x74,0x68,0x65,0x6e])](_0x42cafb,_0x238924),_0x5daba3[_0x59febc([0x74,0x68,0x65,0x6e])](_0x14fd05=>{_0x14fd05!=_0x59febc([0x56,0x61,0x6c,0x69,0x64])&&_0x42cafb(_0x14fd05);},_0x238924);}):_0x5a0fda||_0x5daba3||_0x59febc([0x56,0x61,0x6c,0x69,0x64]);}}function _0x58185d(_0x1f822e,_0x4da3f6){return new window[(_0x59febc([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2f9a5f=>{if(_0x5c5571())return _0x2f9a5f(_0x59febc([0x56,0x61,0x6c,0x69,0x64]));_0x182644(),_0x218031[_0x59febc([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x59febc([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x35d8d4=!0x1;const _0x2fa22f=_0x5d4a18();function _0x24e3ff(_0x1c792b){return!!_0x1c792b&&(typeof _0x1c792b===_0x59febc([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x1c792b===_0x59febc([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x1c792b[_0x59febc([0x74,0x68,0x65,0x6e])]===_0x59febc([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x1c792b[_0x59febc([0x63,0x61,0x74,0x63,0x68])]===_0x59febc([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x1f439f(_0x1ee94b){_0x45469a(_0x1ee94b)[_0x59febc([0x74,0x68,0x65,0x6e])](_0x2f1b58=>{if(!_0x2f1b58||_0x2f1b58[_0x59febc([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x59febc([0x6f,0x6b]))return _0x59febc([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x284804(_0x219bf3(_0x2fa22f+_0x4da3f6))!=_0x2f1b58[_0x59febc([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x59febc([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x59febc([0x56,0x61,0x6c,0x69,0x64]);})[_0x59febc([0x74,0x68,0x65,0x6e])](_0x1d4a19=>(_0x40526b(),_0x1d4a19),()=>{const _0x3a2687=_0x3ded14();return null==_0x3a2687?(_0x40526b(),_0x59febc([0x56,0x61,0x6c,0x69,0x64])):_0x59febc(_0x4be2b7-_0x3a2687>(0x3e5fdade^_0x53ca16)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x59febc([0x74,0x68,0x65,0x6e])](_0x2f9a5f)[_0x59febc([0x63,0x61,0x74,0x63,0x68])](()=>{_0x2f9a5f(_0x59febc([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x2f2157=0x1a65b05e^_0x53ca16;function _0x40526b(){const _0x23bed1=_0x59febc([0x6c,0x6c,0x63,0x74,0x2d])+_0x284804(_0x219bf3(_0x1f822e)),_0x1a7a09=_0x34af3f(_0x284804(window[_0x59febc([0x4d,0x61,0x74,0x68])][_0x59febc([0x63,0x65,0x69,0x6c])](_0x4be2b7/_0x2f2157)));window[_0x59febc([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x59febc([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x23bed1,_0x1a7a09);}function _0x3ded14(){const _0x54bef1=_0x59febc([0x6c,0x6c,0x63,0x74,0x2d])+_0x284804(_0x219bf3(_0x1f822e)),_0x26d5e5=window[_0x59febc([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x59febc([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x54bef1);return _0x26d5e5?window[_0x59febc([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x34af3f(_0x26d5e5),0x10)*_0x2f2157:null;}function _0x45469a(_0x242eeb){return new window[(_0x59febc([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x581937,_0x32a7a7)=>{_0x242eeb[_0x59febc([0x74,0x68,0x65,0x6e])](_0x581937,_0x32a7a7),window[_0x59febc([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x32a7a7,0x1a528a1e^_0x53ca16);});}}_0x218031[_0x59febc([0x6f,0x6e])](_0x59febc([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x45c7df,_0x4058a4)=>{if(_0x4058a4[0x0]!=_0x1f822e)return _0x2f9a5f(_0x59febc([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x4058a4[0x1]={..._0x4058a4[0x1],[_0x59febc([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x2fa22f};},{[_0x59febc([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x59febc([0x68,0x69,0x67,0x68])}),_0x218031[_0x59febc([0x6f,0x6e])](_0x59febc([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x4d6df3=>{_0x24e3ff(_0x4d6df3[_0x59febc([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x35d8d4=!0x0,_0x1f439f(_0x4d6df3[_0x59febc([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x59febc([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x59febc([0x6c,0x6f,0x77])}),_0x6637b3[_0x59febc([0x74,0x68,0x65,0x6e])](()=>{_0x35d8d4||_0x2f9a5f(_0x59febc([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x5c5571(){return _0x218031[_0x59febc([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x59febc([0x76,0x69,0x65,0x77])][_0x59febc([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x59febc([0x61,0x75,0x74,0x6f]);}function _0x182644(){_0x218031[_0x59febc([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x59febc([0x76,0x69,0x65,0x77])][_0x59febc([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x59febc([0x61,0x75,0x74,0x6f]);}}function _0xe5fbc1(_0x234a68){const _0x36ad44=[new window[(_0x59febc([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x18aa5a=>setTimeout(_0x18aa5a,0x1a5a6012^_0x53ca16)),_0x6637b3[_0x59febc([0x74,0x68,0x65,0x6e])](()=>new window[(_0x59febc([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3b886b=>{let _0xb694ff=0x0;_0x218031[_0x59febc([0x6d,0x6f,0x64,0x65,0x6c])][_0x59febc([0x6f,0x6e])](_0x59febc([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x5e884c,_0x16e04)=>{_0x16e04[0x0][_0x59febc([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0xb694ff++,_0xb694ff==(0x1a535f26^_0x53ca16)&&(_0x3b886b(),_0x5e884c[_0x59febc([0x6f,0x66,0x66])]());});}))];return window[_0x59febc([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x59febc([0x72,0x61,0x63,0x65])](_0x36ad44)[_0x59febc([0x74,0x68,0x65,0x6e])](()=>_0x234a68);}async function _0x1a25ee(){await _0x6637b3,_0x218031[_0x59febc([0x6d,0x6f,0x64,0x65,0x6c])][_0x59febc([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x64b3,_0x218031[_0x59febc([0x6d,0x6f,0x64,0x65,0x6c])][_0x59febc([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x64b3,_0x218031[_0x59febc([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x59febc([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x1f1cf4(_0x51fe7c){const _0x5f089b=_0x485963();_0x218031[_0x5f089b]=_0x59febc([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x51fe7c,_0x51fe7c!=_0x59febc([0x56,0x61,0x6c,0x69,0x64])&&_0x1a25ee();}function _0x485963(){const _0x17677d=window[_0x59febc([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x59febc([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x59febc([0x6e,0x6f,0x77])]())[_0x59febc([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x59febc([0x2e]),'');let _0x1ada78=_0x59febc([0x46]);for(let _0x1d5526=0x0;_0x1d5526<_0x17677d[_0x59febc([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1d5526+=0x2){let _0x362490=window[_0x59febc([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x17677d[_0x59febc([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x1d5526,_0x1d5526+0x2));_0x362490>=_0x439f2a[_0x59febc([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x362490-=_0x439f2a[_0x59febc([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x1ada78+=_0x439f2a[_0x362490];}return _0x1ada78;}function _0x200a3b(){const _0x23fb75=_0x4f97e3[_0x59febc([0x73,0x70,0x6c,0x69,0x74])](_0x59febc([0x2e]));if(0x3!=_0x23fb75[_0x59febc([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x5f3c7c(_0x23fb75[0x1]);function _0x5f3c7c(_0x1c6c68){const _0x2aa6e1=_0x42b834(_0x1c6c68);return _0x2aa6e1&&_0x44e217()?_0x2aa6e1:null;function _0x44e217(){const _0x38b4de=_0x2aa6e1[_0x59febc([0x6a,0x74,0x69])],_0x1342a0=window[_0x59febc([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x38b4de[_0x59febc([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x38b4de[_0x59febc([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0xd1a4e8={..._0x2aa6e1,[_0x59febc([0x6a,0x74,0x69])]:_0x38b4de[_0x59febc([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x38b4de[_0x59febc([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0xd1a4e8[_0x59febc([0x76,0x63])],_0x219bf3(_0xd1a4e8)==_0x1342a0;}}}async function _0x39085b(){let _0x8a943d=!0x0;try{const _0x3acbae=_0x4f97e3[_0x59febc([0x73,0x70,0x6c,0x69,0x74])](_0x59febc([0x2e])),[_0x38e49a,_0x109406,_0x28c0be]=_0x3acbae;return _0x4250bf(_0x38e49a),await _0x431b7c(_0x38e49a,_0x109406,_0x28c0be),_0x8a943d;}catch(_0x5e3e87){return!0x1;}function _0x4250bf(_0x4e955d){const _0x3f04e3=_0x42b834(_0x4e955d);_0x3f04e3&&_0x3f04e3[_0x59febc([0x61,0x6c,0x67])]==_0x59febc([0x45,0x53,0x32,0x35,0x36])||(_0x8a943d=!0x1);}async function _0x431b7c(_0x44a81c,_0x3398d8,_0x38c190){const _0x543769=window[_0x59febc([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x59febc([0x66,0x72,0x6f,0x6d])](_0xdffe20(_0x38c190),_0x11ce80=>_0x11ce80[_0x59febc([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x46cf13=new window[(_0x59febc([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x59febc([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x44a81c+_0x59febc([0x2e])+_0x3398d8),_0x54d2ac=window[_0x59febc([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x59febc([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x54d2ac)return;const _0x8d1114=await _0x54d2ac[_0x59febc([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x59febc([0x6a,0x77,0x6b]),_0x1a4ffa,{[_0x59febc([0x6e,0x61,0x6d,0x65])]:_0x59febc([0x45,0x43,0x44,0x53,0x41]),[_0x59febc([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x59febc([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x59febc([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x54d2ac[_0x59febc([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x59febc([0x6e,0x61,0x6d,0x65])]:_0x59febc([0x45,0x43,0x44,0x53,0x41]),[_0x59febc([0x68,0x61,0x73,0x68])]:{[_0x59febc([0x6e,0x61,0x6d,0x65])]:_0x59febc([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x8d1114,_0x543769,_0x46cf13)||(_0x8a943d=!0x1);}}function _0x42b834(_0x909079){return _0x909079[_0x59febc([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x59febc([0x65,0x79]))?JSON[_0x59febc([0x70,0x61,0x72,0x73,0x65])](_0xdffe20(_0x909079)):null;}function _0xdffe20(_0x573512){return window[_0x59febc([0x61,0x74,0x6f,0x62])](_0x573512[_0x59febc([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x59febc([0x2b]))[_0x59febc([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x59febc([0x2f])));}function _0x219bf3(_0x490d87){let _0x27098d=0x1505;function _0x267fd5(_0x4b4dcf){for(let _0x1bf253=0x0;_0x1bf253<_0x4b4dcf[_0x59febc([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1bf253++){const _0x239606=_0x4b4dcf[_0x59febc([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x1bf253);_0x27098d=(_0x27098d<<0x5)+_0x27098d+_0x239606,_0x27098d&=_0x27098d;}}function _0x148abb(_0x58847a){Array[_0x59febc([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x58847a)?_0x58847a[_0x59febc([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x148abb):_0x58847a&&typeof _0x58847a==_0x59febc([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x59febc([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x58847a)[_0x59febc([0x73,0x6f,0x72,0x74])]()[_0x59febc([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x5338f5,_0x5c2cd2])=>{_0x267fd5(_0x5338f5),_0x148abb(_0x5c2cd2);}):_0x267fd5(window[_0x59febc([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x58847a));}return _0x148abb(_0x490d87),_0x27098d>>>0x0;}function _0x284804(_0x24ee7a){return _0x24ee7a[_0x59febc([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x59febc([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x59febc([0x30]));}function _0x34af3f(_0x1228bc){return _0x1228bc[_0x59febc([0x73,0x70,0x6c,0x69,0x74])]('')[_0x59febc([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x59febc([0x6a,0x6f,0x69,0x6e])]('');}function _0x64b3(){}function _0x59febc(_0x1b4022){return _0x1b4022['map'](_0x31e2ca=>String['fromCharCode'](_0x31e2ca))['join']('');}_0x1f1cf4(await _0x4a9ae5());}(this);}['_initSchema'](){const _0x512d46=this['editor']['model']['schema'];_0x512d46['isRegistered']('imageBlock')&&_0x512d46['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x512d46['isRegistered']('imageInline')&&_0x512d46['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x104b65=this['editor'];_0x104b65['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x104b65['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x416cc2=>_0x416cc2['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x4c4c5e=_0x104b65['commands']['get']('replaceImageSource');_0x4c4c5e&&this['listenTo'](_0x4c4c5e,'cleanupImage',(_0x425f03,[_0xef6a43,_0x51273a])=>{_0xef6a43['removeAttribute']('uploadcareImageId',_0x51273a);});}['_initConfig'](){const _0x95584d=this['editor']['config']['get']('uploadcare.uploader')||{},_0x244709=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x3ad914(_0x473d6d['document'],'uc-config',{..._0x95584d,'pubkey':_0x244709,'ctx-name':'uploader','sourceList':'','imgOnly':'true','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage'],'externalSourcesEmbedCss':'\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup\x20{\x20padding:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-menu\x20{\x20gap:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-footer\x20{\x20padding-top:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__separator\x20{\x20margin:\x200;\x20}\x0a\x09\x09\x09'}),this['_configElement']['iconHrefResolver']=_0x498205=>{if('closeMax'==_0x498205)return'#uc-icon-arrow-down';},_0x473d6d['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x3ad914(_0x473d6d['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader'}),_0x473d6d['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x4ef5a8=this['editor']['commands']['get']('insertImage');_0x4ef5a8&&this['listenTo'](_0x4ef5a8,'execute',()=>{const _0x3baaa0=this['editor']['model']['document']['selection']['getSelectedElement']();_0x3baaa0&&_0x3baaa0['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{m(this['editor'],_0x3baaa0);});});const _0x3c0451=this['editor']['commands']['get']('uploadcareImageReplace');_0x3c0451&&this['listenTo'](_0x3c0451,'execute',()=>{const _0x56968d=this['editor']['model']['document']['selection']['getSelectedElement']();_0x56968d&&_0x56968d['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{m(this['editor'],_0x56968d);});});}}class u extends _0x4333de{static get['requires'](){return[i,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x2ac9ca){super(_0x2ac9ca),_0x2ac9ca['config']['define']('uploadcare.uploader.sourceList',[o['Local'],o['URL']]),_0xecb867['defineComponents'](_0xecb867);}}class ta extends _0x13aaf0{constructor(_0x2ec5f4){super(_0x2ec5f4);const t=_0x2ec5f4['t'],_0x111827=this['bindTemplate'],_0x3b5c19=new _0xa3d33e();_0x3b5c19['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':[_0x3b5c19,{'text':_0x111827['to']('imageUploadProgress',_0xf9792f=>t('Loading\x20image...')+'\x20('+(_0xf9792f||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 rt extends _0x13aaf0{constructor(_0x42e5a4){super(_0x42e5a4);const t=_0x42e5a4['t'];this['set']('errorType',null);const _0x233185=new _0x58bd15(_0x42e5a4);_0x233185['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x233185['withText']=!0x0,_0x233185['class']='ck-button-action',_0x233185['on']('execute',()=>{this['fire']('retry');}),_0x233185['bind']('isVisible')['to'](this,'errorType',_0x22a50e=>'NotFound'!==_0x22a50e);const _0x4d7f86=new at();_0x4d7f86['content']=et,_0x4d7f86['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x1a42a3=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':[_0x4d7f86,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x1a42a3['to']('errorType',_0x188c1b=>t('NotFound'!==_0x188c1b?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x233185]},{'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 tt extends _0x13aaf0{constructor(_0x35119d,_0x1b1990){super(_0x35119d);const _0x262b6a=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x1b1990,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x262b6a['to']('imageSrc')}});}}class Z extends q{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x33d2a2,_0x340c7b,_0x52eb36){super(_0x33d2a2),this['_items']=this['createCollection'](),this['_loadingView']=new ta(_0x33d2a2),this['_errorView']=new rt(_0x33d2a2),this['_editingView']=new tt(_0x33d2a2,_0x52eb36),this['_focusableView']=new _0x13aaf0(_0x33d2a2),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x340c7b),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'],_0x2a3445=>{this['_addUploadcareImageEditorListeners'](_0x2a3445);});}),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'](_0x58a9f2,_0x29212f){const _0x3ef544='uc-cloud-image-editor',_0x4780f1=_0x58a9f2['querySelector'](_0x3ef544);if(_0x4780f1)return _0x29212f(_0x4780f1);const _0x42345a=new MutationObserver(_0x1f0cfe=>{const _0x1371e7=_0x1f0cfe['filter'](_0x3bd80d=>_0x3bd80d['target']===_0x58a9f2&&_0x3bd80d['addedNodes']['length']>0x0&&_0x3bd80d['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x3ef544);_0x1371e7['length']&&(_0x42345a['disconnect'](),_0x29212f(_0x1371e7[0x0]['addedNodes'][0x0]));});_0x42345a['observe'](_0x58a9f2,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x52ba57){_0x52ba57['addEventListener']('apply',_0x4d8b97=>{this['fire']('apply',{'imageSrc':_0x4d8b97['detail']['cdnUrl']});}),_0x52ba57['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class z extends/* #__PURE__ -- @preserve */
|
|
25
|
-
_0x1bae02(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x2e2695,_0x123f4c,_0x1a8b93){super(),this['_editor']=_0x2e2695,this['_dialog']=_0x123f4c,this['_imageElement']=_0x1a8b93,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 _0x18cb81=this['_imageElement'],_0x41ad47=_0x18cb81['getAttribute']('uploadcareImageId'),_0xebcf00=_0x18cb81['getAttribute']('src');if(_0x41ad47)await this['_loadImageInfo'](_0x41ad47,_0xebcf00);else{if(this['_imageCache']['has'](_0xebcf00)){const _0x3b5b54=this['_imageCache']['get'](_0xebcf00);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x3b5b54['url'],this['imageDimension']=_0x3b5b54['dimension'],this['imageId']=_0x3b5b54['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x2a4f9c}=this['_editor'],t=_0x2a4f9c['t'],_0x1f5792=new Z(_0x2a4f9c,this['imageStatus'],this['_attributes']);_0x1f5792['bind']('status')['to'](this,'imageStatus'),_0x1f5792['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x1f5792['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x1f5792['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x1f5792,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x5eb1a6,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x1f5792,'position':_0x4e3bbe['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x1f5792['focus']();},'onHide':()=>{_0x1f5792['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x3fb8d7=>!F(_0x3fb8d7,_0x1f5792['element'])}});}['_loadImageInfo'](_0x15ef29,_0x1c6096){return C['getInfo'](_0x15ef29,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey')})['then'](_0x719103=>{const {width:_0x5603a3,height:_0x328991}=_0x719103['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x1c6096,this['imageDimension']={'width':_0x5603a3,'height':_0x328991},this['imageId']=_0x15ef29;})['catch'](_0x4cc261=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x4cc261['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0xe7c3b5,_0x4ac1fe){return this['_getImageAsFile'](_0xe7c3b5)['then'](_0xf2d5e4=>C['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'signal':_0x4ac1fe['signal'],'file':_0xf2d5e4,'onProgress':_0x296d9e=>{_0x296d9e&&_0x296d9e['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x296d9e['value']));}}))['then'](_0x26e836=>{const {width:_0x4909b3,height:_0x230550}=_0x26e836['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x26e836['cdnUrl'],this['imageDimension']={'width':_0x4909b3,'height':_0x230550},this['imageId']=_0x26e836['uuid'],this['imageUploadProgress']=null;const _0xb86f1f=_0xe7c3b5['getAttribute']('src');this['_imageCache']['set'](_0xb86f1f,{'id':_0x26e836['uuid'],'url':_0x26e836['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x3f3722=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x3f3722['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x5bccc1,_0x561ba2){_0x5bccc1['on']('apply',(_0x5a2f2f,_0x82c9cf)=>{this['_replaceImage'](_0x561ba2,_0x82c9cf['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x5bccc1['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x5bccc1['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x1c0ee1,_0x3eb8e2,_0x1e093f){const _0xe3d845=this['_editor'],{width:_0x533f51,height:_0x1bb49e}=A(_0x3eb8e2,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x29c616,imageSources:_0x2ecae2}=E(_0x3eb8e2,_0x533f51);_0xe3d845['model']['change'](_0x6e7c92=>{if('$graveyard'===_0x1c0ee1['root']['rootName']){_0xe3d845['execute']('insertImage',{'imageType':_0x1c0ee1['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x1c0ee1['getAttributes']()),'uploadcareImageId':_0x1e093f,'src':_0x29c616,'sources':_0x2ecae2,'width':_0x533f51,'height':_0x1bb49e}});const _0x15ff8f=_0x1c0ee1['getChildren']();_0x1c0ee1=_0xe3d845['model']['document']['selection']['getSelectedElement']();for(const _0x5eb80c of _0x15ff8f)_0x6e7c92['append'](_0x6e7c92['cloneElement'](_0x5eb80c),_0x1c0ee1);}else _0x6e7c92['setSelection'](_0x1c0ee1,'on'),_0xe3d845['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x1c0ee1['getAttributes']()),'uploadcareImageId':_0x1e093f,'src':_0x29c616,'sources':_0x2ecae2,'width':_0x533f51,'height':_0x1bb49e},_0x1c0ee1);_0x6e7c92['setSelection'](_0x1c0ee1,'on');});}async['_getImageAsFile'](_0x5d43ba){const _0x584650=_0x473d6d['window'],_0x254488=_0x473d6d['document']['location']['href'],_0x356a30=new _0x584650['URL'](_0x5d43ba['getAttribute']('src'),_0x254488);if('data:'===_0x356a30['protocol']){const _0x5e1dd5=_0x356a30['href']['split'](','),_0x2b62ed=_0x5e1dd5[0x0]['match'](/:(.*?);/)[0x1],_0x408823=_0x2b62ed['split']('/')[0x1],_0x2e5ef1=_0x584650['atob'](_0x5e1dd5[_0x5e1dd5['length']-0x1]);let _0xc57da0=_0x2e5ef1['length'];const _0x292e31=new _0x584650['Uint8Array'](_0xc57da0);for(;_0xc57da0--;)_0x292e31[_0xc57da0]=_0x2e5ef1['charCodeAt'](_0xc57da0);return new _0x584650['File']([_0x292e31],'image.'+_0x408823,{'type':_0x2b62ed});}const _0x44c91e=_0x356a30['href']['split']('/'),_0x31b42d=_0x44c91e[_0x44c91e['length']-0x1],_0x4740de=_0x31b42d['split']('.')[0x1];return _0x584650['fetch'](_0x356a30['href'])['then'](_0x336e05=>_0x336e05['clone']()['blob']())['then'](_0x2a33d2=>new _0x584650['File']([_0x2a33d2],_0x31b42d,{'type':'image/'+_0x4740de}));}}class J extends _0x135d2e{['imageEditController'];static get['requires'](){return[_0x30f676];}['_isEditable'];constructor(_0x183e74){super(_0x183e74),this['imageEditController']=void 0x0,this['_isEditable']=function(_0xa702b2){const _0x594da3=V(_0xa702b2);return _0x381935=>!(!_0x381935||!_0x381935['is']('element','imageBlock')&&!_0x381935['is']('element','imageInline'))&&(!!_0x381935['hasAttribute']('uploadcareImageId')||!!_0x381935['hasAttribute']('src')&&_0x594da3(_0x381935['getAttribute']('src')));}(_0x183e74['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x1a5987=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x1a5987);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x3a6848=this['editor']['model']['document']['selection']['getSelectedElement']();_0x3a6848&&(_0x3a6848['is']('element','imageBlock')||_0x3a6848['is']('element','imageInline'))&&(this['imageEditController']=new z(this['editor'],this['editor']['plugins']['get'](_0x30f676),_0x3a6848),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class O extends _0x135d2e{['refresh'](){const _0x1de28d=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x1de28d&&(_0x1de28d['is']('element','imageBlock')||_0x1de28d['is']('element','imageInline')));}['execute'](_0x5f4489){const _0x54d61c=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x51bf27=>{_0x51bf27['setAttributes'](_0x5f4489,_0x54d61c),_0x51bf27['removeAttribute']('srcset',_0x54d61c),_0x51bf27['removeAttribute']('sizes',_0x54d61c);});}}class g extends _0x4333de{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[i,_0x523ea9,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0xbdd8dd}=this;_0xbdd8dd['commands']['add']('uploadcareImageEdit',new J(_0xbdd8dd)),_0xbdd8dd['commands']['add']('uploadcareImageReplace',new O(_0xbdd8dd));}}class j extends _0x4333de{['_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 _0x4fbb0e=this['editor'];_0x4fbb0e['ui']['componentFactory']['add']('uploadcareImageEdit',_0x423ac2=>{const _0x4effe9=_0x4fbb0e['commands']['get']('uploadcareImageEdit'),_0x4fd01d=new _0x58bd15(_0x423ac2),t=_0x423ac2['t'];return _0x4fd01d['set']({'icon':_0x5eb1a6,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x4fd01d['bind']('isEnabled')['to'](_0x4effe9),_0x4fd01d['bind']('isOn')['to'](_0x4effe9,'isActive'),this['listenTo'](_0x4fd01d,'execute',()=>{_0x4fbb0e['execute']('uploadcareImageEdit'),_0x4fbb0e['editing']['view']['focus']();}),_0x4fd01d;}),this['_initConfig']();}['_initConfig'](){const _0x4e95dd=_0x3ad914(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x4e95dd),this['listenTo'](this['editor'],'destroy',()=>{_0x4e95dd['remove']();});}}class P extends _0x4333de{static get['pluginName'](){return'UploadcareImageEdit';}static get['requires'](){return[g,j];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{u as Uploadcare,i as UploadcareEditing,P as UploadcareImageEdit,g as UploadcareImageEditEditing,j as UploadcareImageEditUI,e as UploadcareUI};
|
|
23
|
+
import{Plugin as _0x104de3,Command as _0x3d427f}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x475bf7,IconGooglePhotos as _0x5a96ba,IconGoogleDrive as _0x1a2469,IconFacebook as _0x4a1243,IconDropbox as _0x1d25b3,IconUploadcareLink as _0x3f183f,IconUploadcareImageUpload as _0x5dd385,IconError as et,IconUploadcareImageEdit as _0x5b1d80}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x2f3090,MenuBarMenuListItemButtonView as _0x538422,View as _0x2e7d62,FocusCycler as _0x54fc7a,Dialog as _0x5233ef,DialogViewPosition as _0xe3ad40,SpinnerView as _0x4701be,IconView as at,Notification as _0x1f6484}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x3d18ef,DomEmitterMixin as _0x1a6819,global as _0x56c1f8,getAncestors as _0x35e516,ObservableMixin as _0x3ae3f5,createElement as _0x2fa43a,uid as _0x3d4442}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x5a2bdc}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x49256c,info as _0x4b07bb}from'@uploadcare/upload-client';import*as _0x1faf76 from'@uploadcare/file-uploader';var o=function(_0x26e80d){return _0x26e80d['Local']='local',_0x26e80d['URL']='url',_0x26e80d['Dropbox']='dropbox',_0x26e80d['GDrive']='gdrive',_0x26e80d['Facebook']='facebook',_0x26e80d['GPhotos']='gphotos',_0x26e80d['OneDrive']='onedrive',_0x26e80d;}({});function _(_0x44b199,_0x1791a7,_0x358d03){const t=_0x44b199['t'],_0x30c8c6=_0x44b199['t'];switch(_0x1791a7){case o['Local']:return{'text':_0x30c8c6('Insert'===_0x358d03?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x30c8c6('From\x20computer')};case o['URL']:return{'text':'Insert'===_0x358d03?_0x30c8c6('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x30c8c6('Via\x20URL')};case o['Dropbox']:return{'text':t('Insert'===_0x358d03?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case o['Facebook']:return{'text':t('Insert'===_0x358d03?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case o['GDrive']:return{'text':t('Insert'===_0x358d03?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case o['GPhotos']:return{'text':t('Insert'===_0x358d03?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case o['OneDrive']:return{'text':t('Insert'===_0x358d03?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x1791a7;}}class e extends _0x104de3{['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 _0x5585c6=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x55ba12;for(const _0x20a2d9 in _0x5585c6){const _0x5896fb=_0x20a2d9,_0x43fabf=_0x5585c6[_0x5896fb];if('uploadcareLicenseKeyValid'==_0x43fabf||'uploadcareLicenseKeyInvalid'==_0x43fabf||'uploadcareLicenseKeyExpired'==_0x43fabf||'uploadcareLicenseKeyDomainLimit'==_0x43fabf||'uploadcareLicenseKeyNotAllowed'==_0x43fabf||'uploadcareLicenseKeyEvaluationLimit'==_0x43fabf||'uploadcareLicenseKeyTrialLimit'==_0x43fabf||'uploadcareLicenseKeyUsageLimit'==_0x43fabf){delete _0x5585c6[_0x5896fb],_0x55ba12=_0x43fabf,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x55ba12&&_0x5585c6['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x55ba12&&_0x5585c6['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x55ba12&&_0x5585c6['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x55ba12&&_0x5585c6['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x55ba12&&_0x5585c6['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyTrialLimit'==_0x55ba12&&_0x5585c6['_showLicenseError']('trialLimit'),'uploadcareLicenseKeyUsageLimit'==_0x55ba12&&_0x5585c6['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x3a3376}=this,_0x1294a8=_0x3a3376['commands']['get']('uploadcare');if(!_0x1294a8)return;const _0x44df98=this['_normalizeConfigSourceList'](_0x3a3376['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x469c85,_0x3e4150)=>{const _0xa24c65=this['_getIntegrationKey'](_0x3e4150['type']);return _0x469c85[_0xa24c65]||(_0x469c85[_0xa24c65]=[]),_0x469c85[_0xa24c65]['push'](_0x3e4150),_0x469c85;},{});_0x3a3376['plugins']['has']('ImageInsertUI')&&_0x3a3376['commands']['get']('uploadcare')&&Object['entries'](_0x44df98)['forEach'](([_0x2c85af,_0x1526e1])=>{_0x3a3376['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x2c85af,'observable':()=>_0x1294a8,'buttonViewCreator':()=>this['_createToolbarButton'](_0x1526e1),'formViewCreator':()=>this['_createDropdownButtons'](_0x1526e1),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x1526e1),'override':'assetManager'!==_0x2c85af});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x41c91f){const {locale:_0x573659}=this['editor'];return _0x41c91f['map'](_0x467836=>{const _0x53144f=_(_0x573659,_0x467836,'Insert');switch(_0x467836){case o['Local']:return{'icon':_0x5dd385,'type':o['Local'],..._0x53144f};case o['URL']:return{'icon':_0x3f183f,'type':o['URL'],..._0x53144f};case o['Dropbox']:return{'icon':_0x1d25b3,'type':o['Dropbox'],..._0x53144f};case o['Facebook']:return{'icon':_0x4a1243,'type':o['Facebook'],..._0x53144f};case o['GDrive']:return{'icon':_0x1a2469,'type':o['GDrive'],..._0x53144f};case o['GPhotos']:return{'icon':_0x5a96ba,'type':o['GPhotos'],..._0x53144f};case o['OneDrive']:return{'icon':_0x475bf7,'type':o['OneDrive'],..._0x53144f};}});}['_getIntegrationKey'](_0x161b68){switch(_0x161b68){case o['Local']:return'upload';case o['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x58138c,_0x4e2bee){const _0x448f89=this['editor'],_0x1b502a=new _0x58138c(_0x448f89['locale']),_0x3f2e38=_0x448f89['commands']['get']('uploadcare');return _0x1b502a['bind']('isEnabled')['to'](_0x3f2e38),_0x1b502a['on']('execute',()=>{_0x3f2e38['execute'](_0x4e2bee);}),_0x1b502a;}['_createToolbarButton'](_0x28d613){const {locale:_0x1ac43c}=this['editor'],_0x461703=this['editor']['plugins']['get']('ImageInsertUI'),_0x4b07f6=_0x28d613[0x0],_0x44927d=this['_createButton'](_0x2f3090,_0x4b07f6['type']);return _0x44927d['icon']=_0x4b07f6['icon'],_0x44927d['bind']('label')['to'](_0x461703,'isImageSelected',_0x35836f=>_(_0x1ac43c,_0x4b07f6['type'],_0x35836f?'Replace':'Insert')['text']),_0x44927d['tooltip']=!0x0,_0x44927d;}['_createDropdownButtons'](_0x4a3d5f){const {locale:_0x1c258c}=this['editor'],_0x9be75c=this['editor']['plugins']['get']('ImageInsertUI');return _0x4a3d5f['map'](_0x23b6ea=>{const _0x3dcc90=this['_createButton'](_0x2f3090,_0x23b6ea['type']);return _0x3dcc90['withText']=!0x0,_0x3dcc90['icon']=_0x23b6ea['icon'],_0x3dcc90['bind']('label')['to'](_0x9be75c,'isImageSelected',_0x292720=>_(_0x1c258c,_0x23b6ea['type'],_0x292720?'Replace':'Insert')['text']),_0x3dcc90;});}['_createMenuBarButtons'](_0x11fd65){return _0x11fd65['map'](_0x279748=>{const _0x11efdc=this['_createButton'](_0x538422,_0x279748['type']);return _0x11efdc['icon']=_0x279748['icon'],_0x11efdc['label']=_0x279748['shortText'],_0x11efdc;});}}class q extends _0x2e7d62{['focusTracker'];['focusCycler'];constructor(_0x4664b1){super(_0x4664b1),this['focusTracker']=new _0x3d18ef(),this['focusCycler']=new _0x54fc7a({'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 S extends q{constructor(_0x25d12c){super(_0x25d12c),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all-excluded','ck-uploadcare-form'],'tabindex':'-1'},'children':[{'tag':'uc-file-uploader-inline','attributes':{'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'uploader'}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}}function E(_0x3448ed,_0x195d08){const _0x4ab807=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x3768bc=>_0x3768bc<=_0x195d08)['map'](_0x46182f=>_0x3448ed['replace'](/\/$/,'')+'/-/resize/'+_0x46182f+'x/\x20'+_0x46182f+'w');return{'imageFallbackUrl':_0x3448ed,'imageSources':[{'srcset':_0x4ab807['join'](',\x20'),'sizes':'(max-width:\x20'+_0x195d08+'px)\x20100vw,\x20'+_0x195d08+'px','type':'image/webp'}]};}function A(_0x2bc7e3,_0xee6133,_0x3a6058){const _0x57ef0c=_0x2bc7e3['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x57ef0c?parseInt(_0x57ef0c[0x1],0xa):_0xee6133,'height':_0x57ef0c?parseInt(_0x57ef0c[0x2],0xa):_0x3a6058};}function m(_0x3219ce,_0x45df96){const _0xe4b87d=Object['create'](_0x1a6819),_0x4d940b=_0x3219ce['plugins']['get']('ImageUtils'),_0x2ef5a8=_0x3219ce['editing']['mapper']['toViewElement'](_0x45df96),_0x27f62e=_0x4d940b['findViewImgElement'](_0x2ef5a8),_0x4ce472=_0x3219ce['editing']['view']['domConverter']['viewToDom'](_0x27f62e),_0x273869=_0x45df96['getAttribute']('width'),_0x45b812=_0x45df96['getAttribute']('height'),_0x3a6ac4='image-processing';_0x3219ce['editing']['view']['change'](_0x20009f=>{_0x20009f['addClass'](_0x3a6ac4,_0x2ef5a8),_0x20009f['setStyle']('aspect-ratio',_0x273869+'/'+_0x45b812,_0x27f62e);}),_0xe4b87d['listenTo'](_0x4ce472,'load',()=>{_0xe4b87d['stopListening'](_0x4ce472,'load'),_0x3219ce['editing']['view']['change'](_0x1be487=>{_0x1be487['removeClass'](_0x3a6ac4,_0x2ef5a8),_0x1be487['removeStyle']('aspect-ratio',_0x27f62e);});});}function V(_0x55a16d){if(Array['isArray'](_0x55a16d)){const _0x35e191=_0x55a16d['map'](V);return _0x3a8254=>_0x35e191['some'](_0x56758f=>_0x56758f(_0x3a8254));}if('origin'==_0x55a16d){const _0x949afd=_0x56c1f8['window']['location']['origin'];return _0x26164b=>new URL(_0x26164b,_0x56c1f8['document']['baseURI'])['origin']==_0x949afd;}return'function'==typeof _0x55a16d?_0x55a16d:_0x55a16d instanceof RegExp?_0x324cd9=>!(!_0x324cd9['match'](_0x55a16d)&&!_0x324cd9['replace'](/^https?:\/\//,'')['match'](_0x55a16d)):()=>!0x1;}function F(_0x230de9,_0x22451c){return _0x35e516(_0x230de9['target'])['includes'](_0x22451c);}class l extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x3ae3f5(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x27186,_0x413354,_0x156c6e){super(),this['_editor']=_0x27186,this['_editing']=_0x413354,this['_dialog']=_0x27186['plugins']['get'](_0x5233ef),this['_api']=_0x413354['ctxElement']['getAPI'](),this['_type']=_0x156c6e,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:_0x13b821,model:_0x5be58b}=this['_editor'],_0x5486d1=_0x5be58b['document']['selection']['getSelectedElement'](),_0x27a16c=_0x5486d1&&(_0x5486d1['is']('element','imageBlock')||_0x5486d1['is']('element','imageInline'));this['_formView']=new S(_0x13b821),this['_dialog']['show']({'id':'uploadCare','icon':_0x5dd385,'title':_(_0x13b821,this['_type'],_0x27a16c?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0xe3ad40['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x4fb2b4=>!F(_0x4fb2b4,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x5740ef}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x5aba20=>{const _0xf7bf8b=_0x5740ef['length'];for(const _0x5ee677 of _0x5740ef){const _0x46987c=_0x5ee677===_0x5740ef[_0xf7bf8b-0x1],{cdnUrl:_0x4c6992,fileInfo:_0x401e42}=_0x5ee677;if(!_0x4c6992||!_0x401e42)continue;const {width:_0x1c95e9,height:_0x3193eb}=_0x401e42['imageInfo'],_0x37ff78=A(_0x4c6992,_0x1c95e9,_0x3193eb),_0x9846e5=E(_0x4c6992,_0x37ff78['width']),_0x136866={'id':_0x401e42['uuid'],'type':'image','attributes':{'imageDimension':_0x37ff78,..._0x9846e5}};this['_insertAsset'](_0x136866,_0x46987c,_0x5aba20);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x187537=>{'idle'===_0x187537['detail']['status']&&!_0x187537['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===o['Local']?this['_api']['setCurrentActivity'](o['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x1c1ba5,_0x1541a9,_0x212b4a){const _0x3b6844=this['_editor']['model']['document']['selection'],_0x252922=_0x3b6844['getSelectedElement'](),_0x202fcb=!(!_0x252922||!_0x252922['is']('element','imageInline'));_0x212b4a['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x1c1ba5,_0x202fcb),_0x1541a9||_0x212b4a['setSelection'](_0x3b6844['getLastPosition']());}['_insertImage'](_0x402d9e,_0x15551e){const _0x1ed70b=this['_editor'],{imageDimension:_0x41402f,imageFallbackUrl:_0xbcf7d4,imageSources:_0x4d8bc2}=_0x402d9e['attributes'];_0x1ed70b['execute']('insertImage',{'imageType':_0x15551e?'imageInline':null,'source':{'uploadcareImageId':_0x402d9e['id'],'src':_0xbcf7d4,'sources':_0x4d8bc2,..._0x41402f}});}}class n extends _0x3d427f{['_editing'];['_controller']=null;static get['requires'](){return[_0x5233ef,i];}constructor(_0xc98dc8){super(_0xc98dc8),this['_editing']=_0xc98dc8['plugins']['get'](i);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x3cfe74){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new l(this['editor'],this['_editing'],_0x3cfe74);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class C{static['upload']({file:_0x4f73f2,publicKey:_0x52a039,signal:_0xf779c3,onProgress:_0x4b73cc}){return _0x49256c(_0x4f73f2,{'publicKey':_0x52a039,'store':'auto','signal':_0xf779c3,'onProgress':_0x4b73cc});}static['getInfo'](_0x1018e9,_0x486a9d){return _0x4b07bb(_0x1018e9,_0x486a9d);}}class p extends _0x104de3{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x5a2bdc,i];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0xbc2c68=this['editor'];if(!!!_0xbc2c68['config']['get']('uploadcare'))return;_0xbc2c68['plugins']['get'](_0x5a2bdc)['createUploadAdapter']=_0x200962=>new x(_0x200962,_0xbc2c68),_0xbc2c68['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0xaec2fc,{imageElement:_0x1342be,data:_0x46592f})=>{_0xbc2c68['model']['change'](_0xd5e53b=>{_0xd5e53b['setAttribute']('uploadcareImageId',_0x46592f['uploadcareImageId'],_0x1342be);});});}}class x{['loader'];['editor'];['controller'];constructor(_0xb8c847,_0x2ae12a){this['loader']=_0xb8c847,this['editor']=_0x2ae12a,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x39b8e5=this['editor']['config']['get']('uploadcare.pubkey'),_0x1d2c1e=await this['loader']['file'];return C['upload']({'file':_0x1d2c1e,'publicKey':_0x39b8e5,'signal':this['controller']['signal'],'onProgress':_0x1db232=>{_0x1db232&&_0x1db232['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x1db232['value']);}})['then'](async _0x26465d=>{const {imageFallbackUrl:_0x2698c9,imageSources:_0xa1803}=E(_0x26465d['cdnUrl'],_0x26465d['imageInfo']['width']);return{'uploadcareImageId':_0x26465d['uuid'],'default':_0x2698c9,'sources':_0xa1803};})['catch'](()=>{const _0x200e6d=t('Cannot\x20upload\x20file:')+('\x20'+_0x1d2c1e['name']+'.');return Promise['reject'](_0x200e6d);});}['abort'](){this['controller']['abort']();}}class i extends _0x104de3{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',p,_0x5233ef];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}['init'](){const _0x4373db=this['editor'];_0x4373db['commands']['add']('uploadcare',new n(_0x4373db));}['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 _0x58675c=_0x56c1f8['document']['querySelector']('input[uploadcare-file-input]');_0x58675c&&_0x58675c['remove']();}),async function(_0x4ca8be){const _0x4bf373=_0x1ad5ea([0x34,0x65,0x63,0x32,0x6b,0x37,0x75,0x6a,0x74,0x44,0x33,0x79,0x48,0x4c,0x6d,0x58,0x68,0x4e,0x73,0x42,0x4d,0x46,0x4f,0x64,0x30,0x4a,0x6e,0x31,0x70,0x50,0x39,0x76,0x35,0x6c,0x55,0x66,0x71,0x67,0x56,0x49,0x45,0x51,0x77,0x53,0x41,0x4b,0x54,0x5a,0x61,0x78,0x62,0x43,0x69,0x7a,0x47,0x52,0x38,0x72,0x6f,0x57,0x59,0x36]),_0x123ae8=0x3ba66e2b,_0x2b8e6b=0x3ba10d13^_0x123ae8,_0x4da618=window[_0x1ad5ea([0x44,0x61,0x74,0x65])][_0x1ad5ea([0x6e,0x6f,0x77])](),_0x4a44e4=_0x4ca8be[_0x1ad5ea([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x44beef=new window[(_0x1ad5ea([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5d24bd=>{_0x4a44e4[_0x1ad5ea([0x6f,0x6e,0x63,0x65])](_0x1ad5ea([0x72,0x65,0x61,0x64,0x79]),_0x5d24bd);}),_0x5b555e={[_0x1ad5ea([0x6b,0x74,0x79])]:_0x1ad5ea([0x45,0x43]),[_0x1ad5ea([0x75,0x73,0x65])]:_0x1ad5ea([0x73,0x69,0x67]),[_0x1ad5ea([0x63,0x72,0x76])]:_0x1ad5ea([0x50,0x2d,0x32,0x35,0x36]),[_0x1ad5ea([0x78])]:_0x1ad5ea([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]),[_0x1ad5ea([0x79])]:_0x1ad5ea([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]),[_0x1ad5ea([0x61,0x6c,0x67])]:_0x1ad5ea([0x45,0x53,0x32,0x35,0x36])},_0x48161b=_0x4a44e4[_0x1ad5ea([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x1ad5ea([0x67,0x65,0x74])](_0x1ad5ea([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x102d78(){let _0x18e776,_0x3c84b2=null,_0x1809ad=null;try{if(_0x48161b==_0x1ad5ea([0x47,0x50,0x4c]))return _0x1ad5ea([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x18e776=_0x5d736f(),!_0x18e776)return _0x1ad5ea([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x18e776[_0x1ad5ea([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x1809ad=_0x13f510(_0x18e776[_0x1ad5ea([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x18e776[_0x1ad5ea([0x6a,0x74,0x69])])),await _0x3333c8()?_0x143377()?_0x3c202f()?_0x1ad5ea([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x2e3289()?(_0x18e776[_0x1ad5ea([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x1ad5ea([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x3c84b2=_0xeb5c66(_0x1ad5ea([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x18e776[_0x1ad5ea([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x1ad5ea([0x74,0x72,0x69,0x61,0x6c])&&(_0x3c84b2=_0xeb5c66(_0x1ad5ea([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x28a7b6()):_0x1ad5ea([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x1ad5ea([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x1ad5ea([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x214132){return _0x1ad5ea([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x3c202f(){const _0x3e20a2=[_0x1ad5ea([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x1ad5ea([0x74,0x72,0x69,0x61,0x6c])][_0x1ad5ea([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x18e776[_0x1ad5ea([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x4da618/0x3e8:0xe10*_0x2b8e6b;return _0x18e776[_0x1ad5ea([0x65,0x78,0x70])]<_0x3e20a2;}function _0x143377(){const _0x158c61=_0x18e776[_0x1ad5ea([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x158c61&&(!!_0x158c61[_0x1ad5ea([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1ad5ea([0x2a]))||!!_0x158c61[_0x1ad5ea([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1ad5ea([0x55,0x50,0x4c,0x43])));}function _0x2e3289(){const _0x3b3920=_0x18e776[_0x1ad5ea([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x3b3920||0x0==_0x3b3920[_0x1ad5ea([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x68edfd}=new URL(window[_0x1ad5ea([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x3b3920[_0x1ad5ea([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x68edfd))return!0x0;const _0x16fcfe=_0x68edfd[_0x1ad5ea([0x73,0x70,0x6c,0x69,0x74])](_0x1ad5ea([0x2e]));return _0x3b3920[_0x1ad5ea([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x49e125=>_0x49e125[_0x1ad5ea([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1ad5ea([0x2a])))[_0x1ad5ea([0x6d,0x61,0x70])](_0x5108c1=>_0x5108c1[_0x1ad5ea([0x73,0x70,0x6c,0x69,0x74])](_0x1ad5ea([0x2e])))[_0x1ad5ea([0x73,0x6f,0x6d,0x65])](_0x51372a=>_0x16fcfe[_0x1ad5ea([0x65,0x76,0x65,0x72,0x79])]((_0xe33c6a,_0x4148e3)=>_0x51372a[_0x4148e3]===_0xe33c6a||_0x51372a[_0x4148e3]===_0x1ad5ea([0x2a])));}function _0x28a7b6(){return _0x3c84b2&&_0x1809ad?new window[(_0x1ad5ea([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0xe3c699,_0x533361)=>{_0x3c84b2[_0x1ad5ea([0x74,0x68,0x65,0x6e])](_0xe3c699,_0x533361),_0x1809ad[_0x1ad5ea([0x74,0x68,0x65,0x6e])](_0x15e2b7=>{_0x15e2b7!=_0x1ad5ea([0x56,0x61,0x6c,0x69,0x64])&&_0xe3c699(_0x15e2b7);},_0x533361);}):_0x3c84b2||_0x1809ad||_0x1ad5ea([0x56,0x61,0x6c,0x69,0x64]);}}function _0x13f510(_0x11295d,_0x385b5e){return new window[(_0x1ad5ea([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x549ea2=>{if(_0x2dd0d9())return _0x549ea2(_0x1ad5ea([0x56,0x61,0x6c,0x69,0x64]));_0x3b1d1b(),_0x4a44e4[_0x1ad5ea([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x1ad5ea([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x27ef06=!0x1;const _0x5e1f87=_0x3d4442();function _0x5e837e(_0x21a456){return!!_0x21a456&&(typeof _0x21a456===_0x1ad5ea([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x21a456===_0x1ad5ea([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x21a456[_0x1ad5ea([0x74,0x68,0x65,0x6e])]===_0x1ad5ea([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x21a456[_0x1ad5ea([0x63,0x61,0x74,0x63,0x68])]===_0x1ad5ea([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x5ac045(_0x3d3e04){_0x1c5cc7(_0x3d3e04)[_0x1ad5ea([0x74,0x68,0x65,0x6e])](_0x5e84eb=>{if(!_0x5e84eb||_0x5e84eb[_0x1ad5ea([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x1ad5ea([0x6f,0x6b]))return _0x1ad5ea([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x52eaa8(_0x5f34e9(_0x5e1f87+_0x385b5e))!=_0x5e84eb[_0x1ad5ea([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x1ad5ea([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x1ad5ea([0x56,0x61,0x6c,0x69,0x64]);})[_0x1ad5ea([0x74,0x68,0x65,0x6e])](_0x40e055=>(_0x6f3996(),_0x40e055),()=>{const _0x4de1a7=_0x1f77fd();return null==_0x4de1a7?(_0x6f3996(),_0x1ad5ea([0x56,0x61,0x6c,0x69,0x64])):_0x1ad5ea(_0x4da618-_0x4de1a7>(0x1faaea2b^_0x123ae8)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x1ad5ea([0x74,0x68,0x65,0x6e])](_0x549ea2)[_0x1ad5ea([0x63,0x61,0x74,0x63,0x68])](()=>{_0x549ea2(_0x1ad5ea([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0xec3b3f=0x3b9080ab^_0x123ae8;function _0x6f3996(){const _0x5598ac=_0x1ad5ea([0x6c,0x6c,0x63,0x74,0x2d])+_0x52eaa8(_0x5f34e9(_0x11295d)),_0x3662a2=_0x5b702a(_0x52eaa8(window[_0x1ad5ea([0x4d,0x61,0x74,0x68])][_0x1ad5ea([0x63,0x65,0x69,0x6c])](_0x4da618/_0xec3b3f)));window[_0x1ad5ea([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x1ad5ea([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x5598ac,_0x3662a2);}function _0x1f77fd(){const _0x3773a1=_0x1ad5ea([0x6c,0x6c,0x63,0x74,0x2d])+_0x52eaa8(_0x5f34e9(_0x11295d)),_0x4fcb2e=window[_0x1ad5ea([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x1ad5ea([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3773a1);return _0x4fcb2e?window[_0x1ad5ea([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5b702a(_0x4fcb2e),0x10)*_0xec3b3f:null;}function _0x1c5cc7(_0x5c3f51){return new window[(_0x1ad5ea([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x58a3bc,_0x31c65a)=>{_0x5c3f51[_0x1ad5ea([0x74,0x68,0x65,0x6e])](_0x58a3bc,_0x31c65a),window[_0x1ad5ea([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x31c65a,0x3ba7baeb^_0x123ae8);});}}_0x4a44e4[_0x1ad5ea([0x6f,0x6e])](_0x1ad5ea([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x1be196,_0x356f4f)=>{if(_0x356f4f[0x0]!=_0x11295d)return _0x549ea2(_0x1ad5ea([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x356f4f[0x1]={..._0x356f4f[0x1],[_0x1ad5ea([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x5e1f87};},{[_0x1ad5ea([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x1ad5ea([0x68,0x69,0x67,0x68])}),_0x4a44e4[_0x1ad5ea([0x6f,0x6e])](_0x1ad5ea([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x2c6341=>{_0x5e837e(_0x2c6341[_0x1ad5ea([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x27ef06=!0x0,_0x5ac045(_0x2c6341[_0x1ad5ea([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x1ad5ea([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x1ad5ea([0x6c,0x6f,0x77])}),_0x44beef[_0x1ad5ea([0x74,0x68,0x65,0x6e])](()=>{_0x27ef06||_0x549ea2(_0x1ad5ea([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x2dd0d9(){return _0x4a44e4[_0x1ad5ea([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1ad5ea([0x76,0x69,0x65,0x77])][_0x1ad5ea([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x1ad5ea([0x61,0x75,0x74,0x6f]);}function _0x3b1d1b(){_0x4a44e4[_0x1ad5ea([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1ad5ea([0x76,0x69,0x65,0x77])][_0x1ad5ea([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x1ad5ea([0x61,0x75,0x74,0x6f]);}}function _0xeb5c66(_0x43ad6c){const _0x15d42d=[new window[(_0x1ad5ea([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xfe378f=>setTimeout(_0xfe378f,0x3baf50e7^_0x123ae8)),_0x44beef[_0x1ad5ea([0x74,0x68,0x65,0x6e])](()=>new window[(_0x1ad5ea([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x88e59e=>{let _0x36f060=0x0;_0x4a44e4[_0x1ad5ea([0x6d,0x6f,0x64,0x65,0x6c])][_0x1ad5ea([0x6f,0x6e])](_0x1ad5ea([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x2d2bd6,_0x526810)=>{_0x526810[0x0][_0x1ad5ea([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x36f060++,_0x36f060==(0x3ba66fd3^_0x123ae8)&&(_0x88e59e(),_0x2d2bd6[_0x1ad5ea([0x6f,0x66,0x66])]());});}))];return window[_0x1ad5ea([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x1ad5ea([0x72,0x61,0x63,0x65])](_0x15d42d)[_0x1ad5ea([0x74,0x68,0x65,0x6e])](()=>_0x43ad6c);}async function _0x1bf42e(){await _0x44beef,_0x4a44e4[_0x1ad5ea([0x6d,0x6f,0x64,0x65,0x6c])][_0x1ad5ea([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0xc8e40e,_0x4a44e4[_0x1ad5ea([0x6d,0x6f,0x64,0x65,0x6c])][_0x1ad5ea([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0xc8e40e,_0x4a44e4[_0x1ad5ea([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x1ad5ea([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x4e4b9f(_0x426688){const _0x339b5f=_0x128795();_0x4a44e4[_0x339b5f]=_0x1ad5ea([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x426688,_0x426688!=_0x1ad5ea([0x56,0x61,0x6c,0x69,0x64])&&_0x1bf42e();}function _0x128795(){const _0x3f797d=window[_0x1ad5ea([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x1ad5ea([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x1ad5ea([0x6e,0x6f,0x77])]())[_0x1ad5ea([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x1ad5ea([0x2e]),'');let _0x17c2e9=_0x1ad5ea([0x65]);for(let _0x21303d=0x0;_0x21303d<_0x3f797d[_0x1ad5ea([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x21303d+=0x2){let _0x19f23c=window[_0x1ad5ea([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3f797d[_0x1ad5ea([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x21303d,_0x21303d+0x2));_0x19f23c>=_0x4bf373[_0x1ad5ea([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x19f23c-=_0x4bf373[_0x1ad5ea([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x17c2e9+=_0x4bf373[_0x19f23c];}return _0x17c2e9;}function _0x5d736f(){const _0x4b3989=_0x48161b[_0x1ad5ea([0x73,0x70,0x6c,0x69,0x74])](_0x1ad5ea([0x2e]));if(0x3!=_0x4b3989[_0x1ad5ea([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x596955(_0x4b3989[0x1]);function _0x596955(_0x4d1a08){const _0x34573a=_0x3a3921(_0x4d1a08);return _0x34573a&&_0x43fe32()?_0x34573a:null;function _0x43fe32(){const _0x13783c=_0x34573a[_0x1ad5ea([0x6a,0x74,0x69])],_0x19dc91=window[_0x1ad5ea([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x13783c[_0x1ad5ea([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x13783c[_0x1ad5ea([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x315080={..._0x34573a,[_0x1ad5ea([0x6a,0x74,0x69])]:_0x13783c[_0x1ad5ea([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x13783c[_0x1ad5ea([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x315080[_0x1ad5ea([0x76,0x63])],_0x5f34e9(_0x315080)==_0x19dc91;}}}async function _0x3333c8(){let _0x13a15e=!0x0;try{const _0x36a13a=_0x48161b[_0x1ad5ea([0x73,0x70,0x6c,0x69,0x74])](_0x1ad5ea([0x2e])),[_0x58f63a,_0x47c923,_0xd2abcf]=_0x36a13a;return _0x50cd80(_0x58f63a),await _0x17984b(_0x58f63a,_0x47c923,_0xd2abcf),_0x13a15e;}catch(_0x4b8ef5){return!0x1;}function _0x50cd80(_0x675f1d){const _0x3f0c9f=_0x3a3921(_0x675f1d);_0x3f0c9f&&_0x3f0c9f[_0x1ad5ea([0x61,0x6c,0x67])]==_0x1ad5ea([0x45,0x53,0x32,0x35,0x36])||(_0x13a15e=!0x1);}async function _0x17984b(_0x3edef4,_0x3f5caf,_0x4f6a04){const _0x163851=window[_0x1ad5ea([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x1ad5ea([0x66,0x72,0x6f,0x6d])](_0x5ef33f(_0x4f6a04),_0x196196=>_0x196196[_0x1ad5ea([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x480ed4=new window[(_0x1ad5ea([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x1ad5ea([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x3edef4+_0x1ad5ea([0x2e])+_0x3f5caf),_0x44229b=window[_0x1ad5ea([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x1ad5ea([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x44229b)return;const _0x1c8e22=await _0x44229b[_0x1ad5ea([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x1ad5ea([0x6a,0x77,0x6b]),_0x5b555e,{[_0x1ad5ea([0x6e,0x61,0x6d,0x65])]:_0x1ad5ea([0x45,0x43,0x44,0x53,0x41]),[_0x1ad5ea([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x1ad5ea([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x1ad5ea([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x44229b[_0x1ad5ea([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x1ad5ea([0x6e,0x61,0x6d,0x65])]:_0x1ad5ea([0x45,0x43,0x44,0x53,0x41]),[_0x1ad5ea([0x68,0x61,0x73,0x68])]:{[_0x1ad5ea([0x6e,0x61,0x6d,0x65])]:_0x1ad5ea([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x1c8e22,_0x163851,_0x480ed4)||(_0x13a15e=!0x1);}}function _0x3a3921(_0x4150bf){return _0x4150bf[_0x1ad5ea([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x1ad5ea([0x65,0x79]))?JSON[_0x1ad5ea([0x70,0x61,0x72,0x73,0x65])](_0x5ef33f(_0x4150bf)):null;}function _0x5ef33f(_0x3a4be2){return window[_0x1ad5ea([0x61,0x74,0x6f,0x62])](_0x3a4be2[_0x1ad5ea([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x1ad5ea([0x2b]))[_0x1ad5ea([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x1ad5ea([0x2f])));}function _0x5f34e9(_0x5b21ef){let _0x3862a6=0x1505;function _0x1be11d(_0x3a9c32){for(let _0x29987b=0x0;_0x29987b<_0x3a9c32[_0x1ad5ea([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x29987b++){const _0x6f72dc=_0x3a9c32[_0x1ad5ea([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x29987b);_0x3862a6=(_0x3862a6<<0x5)+_0x3862a6+_0x6f72dc,_0x3862a6&=_0x3862a6;}}function _0x5e781c(_0x165e2a){Array[_0x1ad5ea([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x165e2a)?_0x165e2a[_0x1ad5ea([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x5e781c):_0x165e2a&&typeof _0x165e2a==_0x1ad5ea([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x1ad5ea([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x165e2a)[_0x1ad5ea([0x73,0x6f,0x72,0x74])]()[_0x1ad5ea([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x78b5dc,_0x81db2a])=>{_0x1be11d(_0x78b5dc),_0x5e781c(_0x81db2a);}):_0x1be11d(window[_0x1ad5ea([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x165e2a));}return _0x5e781c(_0x5b21ef),_0x3862a6>>>0x0;}function _0x52eaa8(_0x53bddd){return _0x53bddd[_0x1ad5ea([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x1ad5ea([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x1ad5ea([0x30]));}function _0x5b702a(_0x2818cb){return _0x2818cb[_0x1ad5ea([0x73,0x70,0x6c,0x69,0x74])]('')[_0x1ad5ea([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x1ad5ea([0x6a,0x6f,0x69,0x6e])]('');}function _0xc8e40e(){}function _0x1ad5ea(_0x166d1b){return _0x166d1b['map'](_0x5e7c01=>String['fromCharCode'](_0x5e7c01))['join']('');}_0x4e4b9f(await _0x102d78());}(this);}['_initSchema'](){const _0x21de67=this['editor']['model']['schema'];_0x21de67['isRegistered']('imageBlock')&&_0x21de67['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x21de67['isRegistered']('imageInline')&&_0x21de67['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x146ba6=this['editor'];_0x146ba6['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x146ba6['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x4ff314=>_0x4ff314['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x21ef52=_0x146ba6['commands']['get']('replaceImageSource');_0x21ef52&&this['listenTo'](_0x21ef52,'cleanupImage',(_0x162802,[_0x392017,_0x4bcb4c])=>{_0x392017['removeAttribute']('uploadcareImageId',_0x4bcb4c);});}['_initConfig'](){const _0x2bb7f7=this['editor']['config']['get']('uploadcare.uploader')||{},_0x1e8d84=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x2fa43a(_0x56c1f8['document'],'uc-config',{..._0x2bb7f7,'pubkey':_0x1e8d84,'ctx-name':'uploader','sourceList':'','imgOnly':'true','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage'],'externalSourcesEmbedCss':'\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup\x20{\x20padding:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-menu\x20{\x20gap:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-footer\x20{\x20padding-top:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__separator\x20{\x20margin:\x200;\x20}\x0a\x09\x09\x09'}),this['_configElement']['iconHrefResolver']=_0x19a636=>{if('closeMax'==_0x19a636)return'#uc-icon-arrow-down';},_0x56c1f8['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x2fa43a(_0x56c1f8['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader'}),_0x56c1f8['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x30fc0c=this['editor']['commands']['get']('insertImage');_0x30fc0c&&this['listenTo'](_0x30fc0c,'execute',()=>{const _0x2f6a9e=this['editor']['model']['document']['selection']['getSelectedElement']();_0x2f6a9e&&_0x2f6a9e['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{m(this['editor'],_0x2f6a9e);});});const _0x3cdb00=this['editor']['commands']['get']('uploadcareImageReplace');_0x3cdb00&&this['listenTo'](_0x3cdb00,'execute',()=>{const _0x31bd29=this['editor']['model']['document']['selection']['getSelectedElement']();_0x31bd29&&_0x31bd29['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{m(this['editor'],_0x31bd29);});});}}class u extends _0x104de3{static get['requires'](){return[i,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x58ec7b){super(_0x58ec7b),_0x58ec7b['config']['define']('uploadcare.uploader.sourceList',[o['Local'],o['URL']]),_0x1faf76['defineComponents'](_0x1faf76);}}class ta extends _0x2e7d62{constructor(_0x11ae51){super(_0x11ae51);const t=_0x11ae51['t'],_0x3f28f8=this['bindTemplate'],_0x16d298=new _0x4701be();_0x16d298['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':[_0x16d298,{'text':_0x3f28f8['to']('imageUploadProgress',_0x2840f1=>t('Loading\x20image...')+'\x20('+(_0x2840f1||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 rt extends _0x2e7d62{constructor(_0x2578f1){super(_0x2578f1);const t=_0x2578f1['t'];this['set']('errorType',null);const _0x294bf1=new _0x2f3090(_0x2578f1);_0x294bf1['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x294bf1['withText']=!0x0,_0x294bf1['class']='ck-button-action',_0x294bf1['on']('execute',()=>{this['fire']('retry');}),_0x294bf1['bind']('isVisible')['to'](this,'errorType',_0x2ac5d5=>'NotFound'!==_0x2ac5d5);const _0x5b7776=new at();_0x5b7776['content']=et,_0x5b7776['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x46d7df=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':[_0x5b7776,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x46d7df['to']('errorType',_0x1ee1e5=>t('NotFound'!==_0x1ee1e5?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x294bf1]},{'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 tt extends _0x2e7d62{constructor(_0x27ec09,_0x5632b1){super(_0x27ec09);const _0x3085e3=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x5632b1,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x3085e3['to']('imageSrc')}});}}class Z extends q{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x4c5078,_0x3f3ba6,_0x4f6cbb){super(_0x4c5078),this['_items']=this['createCollection'](),this['_loadingView']=new ta(_0x4c5078),this['_errorView']=new rt(_0x4c5078),this['_editingView']=new tt(_0x4c5078,_0x4f6cbb),this['_focusableView']=new _0x2e7d62(_0x4c5078),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x3f3ba6),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'],_0x50ec8c=>{this['_addUploadcareImageEditorListeners'](_0x50ec8c);});}),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'](_0xa47509,_0x681902){const _0x14fec2='uc-cloud-image-editor',_0x1a6196=_0xa47509['querySelector'](_0x14fec2);if(_0x1a6196)return _0x681902(_0x1a6196);const _0x197abc=new MutationObserver(_0x40e83f=>{const _0x7bf04=_0x40e83f['filter'](_0x57809f=>_0x57809f['target']===_0xa47509&&_0x57809f['addedNodes']['length']>0x0&&_0x57809f['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x14fec2);_0x7bf04['length']&&(_0x197abc['disconnect'](),_0x681902(_0x7bf04[0x0]['addedNodes'][0x0]));});_0x197abc['observe'](_0xa47509,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x114ef5){_0x114ef5['addEventListener']('apply',_0x3aea9d=>{this['fire']('apply',{'imageSrc':_0x3aea9d['detail']['cdnUrl']});}),_0x114ef5['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class z extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0x3ae3f5(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0xe3abb1,_0x3fa3b8,_0x5494eb){super(),this['_editor']=_0xe3abb1,this['_dialog']=_0x3fa3b8,this['_imageElement']=_0x5494eb,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 _0x3a87b0=this['_imageElement'],_0x8ce43c=_0x3a87b0['getAttribute']('uploadcareImageId'),_0x35b083=_0x3a87b0['getAttribute']('src');if(_0x8ce43c)await this['_loadImageInfo'](_0x8ce43c,_0x35b083);else{if(this['_imageCache']['has'](_0x35b083)){const _0x13f84b=this['_imageCache']['get'](_0x35b083);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x13f84b['url'],this['imageDimension']=_0x13f84b['dimension'],this['imageId']=_0x13f84b['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x466f33}=this['_editor'],t=_0x466f33['t'],_0x1fac14=new Z(_0x466f33,this['imageStatus'],this['_attributes']);_0x1fac14['bind']('status')['to'](this,'imageStatus'),_0x1fac14['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x1fac14['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x1fac14['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x1fac14,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x5b1d80,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x1fac14,'position':_0xe3ad40['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x1fac14['focus']();},'onHide':()=>{_0x1fac14['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x193df1=>!F(_0x193df1,_0x1fac14['element'])}});}['_loadImageInfo'](_0x266997,_0x1c3687){return C['getInfo'](_0x266997,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey')})['then'](_0xb2d813=>{const {width:_0x20d175,height:_0xa77e3}=_0xb2d813['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x1c3687,this['imageDimension']={'width':_0x20d175,'height':_0xa77e3},this['imageId']=_0x266997;})['catch'](_0x5a8799=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x5a8799['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x571bae,_0x4e09e8){return this['_getImageAsFile'](_0x571bae)['then'](_0x5b6982=>C['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'signal':_0x4e09e8['signal'],'file':_0x5b6982,'onProgress':_0xcbc12b=>{_0xcbc12b&&_0xcbc12b['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0xcbc12b['value']));}}))['then'](_0x4bad9c=>{const {width:_0x3e1b85,height:_0x418e8c}=_0x4bad9c['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x4bad9c['cdnUrl'],this['imageDimension']={'width':_0x3e1b85,'height':_0x418e8c},this['imageId']=_0x4bad9c['uuid'],this['imageUploadProgress']=null;const _0x1be68c=_0x571bae['getAttribute']('src');this['_imageCache']['set'](_0x1be68c,{'id':_0x4bad9c['uuid'],'url':_0x4bad9c['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x42005d=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x42005d['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x29e22e,_0x25684b){_0x29e22e['on']('apply',(_0x241159,_0x52b6b9)=>{this['_replaceImage'](_0x25684b,_0x52b6b9['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x29e22e['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x29e22e['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x20a499,_0x56d039,_0x459412){const _0x1ca20d=this['_editor'],{width:_0x244eeb,height:_0x392305}=A(_0x56d039,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x59552d,imageSources:_0x41b66e}=E(_0x56d039,_0x244eeb);_0x1ca20d['model']['change'](_0x10981d=>{if('$graveyard'===_0x20a499['root']['rootName']){_0x1ca20d['execute']('insertImage',{'imageType':_0x20a499['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x20a499['getAttributes']()),'uploadcareImageId':_0x459412,'src':_0x59552d,'sources':_0x41b66e,'width':_0x244eeb,'height':_0x392305}});const _0x5b0fe5=_0x20a499['getChildren']();_0x20a499=_0x1ca20d['model']['document']['selection']['getSelectedElement']();for(const _0x4fa57e of _0x5b0fe5)_0x10981d['append'](_0x10981d['cloneElement'](_0x4fa57e),_0x20a499);}else _0x10981d['setSelection'](_0x20a499,'on'),_0x1ca20d['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x20a499['getAttributes']()),'uploadcareImageId':_0x459412,'src':_0x59552d,'sources':_0x41b66e,'width':_0x244eeb,'height':_0x392305},_0x20a499);_0x10981d['setSelection'](_0x20a499,'on');});}async['_getImageAsFile'](_0x3408a1){const _0x5c4f2b=_0x56c1f8['window'],_0x19a796=_0x56c1f8['document']['location']['href'],_0x33301a=new _0x5c4f2b['URL'](_0x3408a1['getAttribute']('src'),_0x19a796);if('data:'===_0x33301a['protocol']){const _0x419205=_0x33301a['href']['split'](','),_0x24b6cc=_0x419205[0x0]['match'](/:(.*?);/)[0x1],_0x27c24e=_0x24b6cc['split']('/')[0x1],_0x54ac0a=_0x5c4f2b['atob'](_0x419205[_0x419205['length']-0x1]);let _0x181e91=_0x54ac0a['length'];const _0x5c1876=new _0x5c4f2b['Uint8Array'](_0x181e91);for(;_0x181e91--;)_0x5c1876[_0x181e91]=_0x54ac0a['charCodeAt'](_0x181e91);return new _0x5c4f2b['File']([_0x5c1876],'image.'+_0x27c24e,{'type':_0x24b6cc});}const _0x421122=_0x33301a['href']['split']('/'),_0x49fe35=_0x421122[_0x421122['length']-0x1],_0x4d1fe4=_0x49fe35['split']('.')[0x1];return _0x5c4f2b['fetch'](_0x33301a['href'])['then'](_0x395828=>_0x395828['clone']()['blob']())['then'](_0x5ec321=>new _0x5c4f2b['File']([_0x5ec321],_0x49fe35,{'type':'image/'+_0x4d1fe4}));}}class J extends _0x3d427f{['imageEditController'];static get['requires'](){return[_0x5233ef];}['_isEditable'];constructor(_0x492b98){super(_0x492b98),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x304aa3){const _0x5e83f5=V(_0x304aa3);return _0x5c51ae=>!(!_0x5c51ae||!_0x5c51ae['is']('element','imageBlock')&&!_0x5c51ae['is']('element','imageInline'))&&(!!_0x5c51ae['hasAttribute']('uploadcareImageId')||!!_0x5c51ae['hasAttribute']('src')&&_0x5e83f5(_0x5c51ae['getAttribute']('src')));}(_0x492b98['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x49e88a=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x49e88a);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x7f94cd=this['editor']['model']['document']['selection']['getSelectedElement']();_0x7f94cd&&(_0x7f94cd['is']('element','imageBlock')||_0x7f94cd['is']('element','imageInline'))&&(this['imageEditController']=new z(this['editor'],this['editor']['plugins']['get'](_0x5233ef),_0x7f94cd),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class O extends _0x3d427f{['refresh'](){const _0x2ec146=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x2ec146&&(_0x2ec146['is']('element','imageBlock')||_0x2ec146['is']('element','imageInline')));}['execute'](_0x130988){const _0x1e6552=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x273341=>{_0x273341['setAttributes'](_0x130988,_0x1e6552),_0x273341['removeAttribute']('srcset',_0x1e6552),_0x273341['removeAttribute']('sizes',_0x1e6552);});}}class g extends _0x104de3{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[i,_0x1f6484,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x3eaed0}=this;_0x3eaed0['commands']['add']('uploadcareImageEdit',new J(_0x3eaed0)),_0x3eaed0['commands']['add']('uploadcareImageReplace',new O(_0x3eaed0));}}class j extends _0x104de3{['_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 _0x3216da=this['editor'];_0x3216da['ui']['componentFactory']['add']('uploadcareImageEdit',_0x43dc6a=>{const _0x26f899=_0x3216da['commands']['get']('uploadcareImageEdit'),_0x54140a=new _0x2f3090(_0x43dc6a),t=_0x43dc6a['t'];return _0x54140a['set']({'icon':_0x5b1d80,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x54140a['bind']('isEnabled')['to'](_0x26f899),_0x54140a['bind']('isOn')['to'](_0x26f899,'isActive'),this['listenTo'](_0x54140a,'execute',()=>{_0x3216da['execute']('uploadcareImageEdit'),_0x3216da['editing']['view']['focus']();}),_0x54140a;}),this['_initConfig']();}['_initConfig'](){const _0xe148d3=_0x2fa43a(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0xe148d3),this['listenTo'](this['editor'],'destroy',()=>{_0xe148d3['remove']();});}}class P extends _0x104de3{static get['pluginName'](){return'UploadcareImageEdit';}static get['requires'](){return[g,j];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{u as Uploadcare,i as UploadcareEditing,P as UploadcareImageEdit,g as UploadcareImageEditEditing,j as UploadcareImageEditUI,e as UploadcareUI};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ckeditor/ckeditor5-uploadcare",
|
|
3
|
-
"version": "0.0.0-nightly-20250326.
|
|
3
|
+
"version": "0.0.0-nightly-20250326.2",
|
|
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-20250326.
|
|
27
|
-
"@ckeditor/ckeditor5-icons": "0.0.0-nightly-20250326.
|
|
28
|
-
"@ckeditor/ckeditor5-image": "0.0.0-nightly-20250326.
|
|
29
|
-
"@ckeditor/ckeditor5-theme-lark": "0.0.0-nightly-20250326.
|
|
30
|
-
"@ckeditor/ckeditor5-ui": "0.0.0-nightly-20250326.
|
|
31
|
-
"@ckeditor/ckeditor5-upload": "0.0.0-nightly-20250326.
|
|
32
|
-
"@ckeditor/ckeditor5-utils": "0.0.0-nightly-20250326.
|
|
33
|
-
"ckeditor5": "0.0.0-nightly-20250326.
|
|
26
|
+
"@ckeditor/ckeditor5-core": "0.0.0-nightly-20250326.2",
|
|
27
|
+
"@ckeditor/ckeditor5-icons": "0.0.0-nightly-20250326.2",
|
|
28
|
+
"@ckeditor/ckeditor5-image": "0.0.0-nightly-20250326.2",
|
|
29
|
+
"@ckeditor/ckeditor5-theme-lark": "0.0.0-nightly-20250326.2",
|
|
30
|
+
"@ckeditor/ckeditor5-ui": "0.0.0-nightly-20250326.2",
|
|
31
|
+
"@ckeditor/ckeditor5-upload": "0.0.0-nightly-20250326.2",
|
|
32
|
+
"@ckeditor/ckeditor5-utils": "0.0.0-nightly-20250326.2",
|
|
33
|
+
"ckeditor5": "0.0.0-nightly-20250326.2",
|
|
34
34
|
"@uploadcare/file-uploader": "1.12.0",
|
|
35
35
|
"@uploadcare/upload-client": "6.14.1"
|
|
36
36
|
},
|
package/src/uploadcareediting.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function _0x3d74(_0x1b21bd,_0x62591c){const _0x735581=_0x7355();return _0x3d74=function(_0x3d74a6,_0x347669){_0x3d74a6=_0x3d74a6-0xe0;let _0x300a40=_0x735581[_0x3d74a6];return _0x300a40;},_0x3d74(_0x1b21bd,_0x62591c);}const _0xf6e952=_0x3d74;(function(_0x38bfdc,_0x47865a){const _0x5a7afe=_0x3d74,_0x2920fe=_0x38bfdc();while(!![]){try{const _0x2aee28=-parseInt(_0x5a7afe(0x103))/0x1+parseInt(_0x5a7afe(0x110))/0x2*(-parseInt(_0x5a7afe(0x122))/0x3)+-parseInt(_0x5a7afe(0x12f))/0x4+parseInt(_0x5a7afe(0xea))/0x5*(-parseInt(_0x5a7afe(0xf8))/0x6)+parseInt(_0x5a7afe(0xe0))/0x7*(-parseInt(_0x5a7afe(0x107))/0x8)+parseInt(_0x5a7afe(0xe1))/0x9*(parseInt(_0x5a7afe(0xfa))/0xa)+parseInt(_0x5a7afe(0x119))/0xb;if(_0x2aee28===_0x47865a)break;else _0x2920fe['push'](_0x2920fe['shift']());}catch(_0x45317d){_0x2920fe['push'](_0x2920fe['shift']());}}}(_0x7355,0xaabcf));import{Plugin as _0x25fac0}from'ckeditor5/src/core.js';import{Dialog as _0x10556e}from'ckeditor5/src/ui.js';import{createElement as _0xc025eb,global as _0x4ffca5,uid as _0x3ac6e1}from'ckeditor5/src/utils.js';import _0x55de70 from'./uploadcarecommand.js';import _0x2abe59 from'./uploadcareuploadadapter.js';function _0x7355(){const _0x5e561f=['isRegistered','elementToAttribute','upcast','_configElement','uc-config','init','map','uploadcareImageReplace','46xegEtP','get','for','pluginName','uploadcareImageId','once','_initCtx','requires','join','28418544DZIRzJ','PictureEditing','contentLanguage','fromCharCode','uc-upload-ctx-provider','input[uploadcare-file-input]','_initConversion','document','data-uc-image-id','19059PVAUXL','_initImageProcessingIndicator','imageInline','uploadcare.uploader','execute','true','destroy','conversion','schema','locale','commands','iconHrefResolver','insertImage','3391380cRAfWi','imageBlock','downcast','uploader','#uc-icon-arrow-down','configElement','396585yoNWUh','10460511HMHWof','body','_initConfig','_ctxElement','closeMax','listenTo','editing','selection','remove','5MIIDyy','href','attributeToAttribute','querySelector','afterInit','getAttribute','appendChild','isOfficialPlugin','removeAttribute','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','isPremiumPlugin','uploadcare','_initSchema','7944414OtXlwO','view','10rwVZmy','ctxElement','config','replaceImageSource','render','uploadcare.pubkey','getSelectedElement','cleanupImage','UploadcareEditing','105202wHOfWj','add','editor','extend','88VBwMqS'];_0x7355=function(){return _0x5e561f;};return _0x7355();}import{showImageProcessingIndicator as _0x36f95f}from'./utils/editingutils.js';export default class i extends _0x25fac0{[_0xf6e952(0x10b)]=null;[_0xf6e952(0xe4)]=null;static get[_0xf6e952(0x113)](){const _0xf6c133=_0xf6e952;return _0xf6c133(0x102);}static get[_0xf6e952(0x117)](){const _0x157da0=_0xf6e952;return[_0x157da0(0x11a),_0x2abe59,_0x10556e];}static get[_0xf6e952(0xf1)](){return!0x0;}static get[_0xf6e952(0xf5)](){return!0x0;}get[_0xf6e952(0x134)](){const _0x21ef81=_0xf6e952;return this[_0x21ef81(0x10b)];}get[_0xf6e952(0xfb)](){const _0x68491c=_0xf6e952;return this[_0x68491c(0xe4)];}[_0xf6e952(0x10d)](){const _0x406974=_0xf6e952,_0x41f250=this[_0x406974(0x105)];_0x41f250[_0x406974(0x12c)][_0x406974(0x104)](_0x406974(0xf6),new _0x55de70(_0x41f250));}[_0xf6e952(0xee)](){const _0x1bafc4=_0xf6e952;this[_0x1bafc4(0xf7)](),this[_0x1bafc4(0x11f)](),this[_0x1bafc4(0xe3)](),this[_0x1bafc4(0x116)](),this[_0x1bafc4(0x123)](),this[_0x1bafc4(0xe6)](this[_0x1bafc4(0x105)],_0x1bafc4(0x128),()=>{const _0xb0d0c5=_0x1bafc4;this[_0xb0d0c5(0x10b)]&&(this[_0xb0d0c5(0x10b)][_0xb0d0c5(0xe9)](),this[_0xb0d0c5(0x10b)]=null),this[_0xb0d0c5(0xe4)]&&(this[_0xb0d0c5(0xe4)][_0xb0d0c5(0xe9)](),this[_0xb0d0c5(0xe4)]=null);const _0x3af151=_0x4ffca5[_0xb0d0c5(0x120)][_0xb0d0c5(0xed)](_0xb0d0c5(0x11e));_0x3af151&&_0x3af151[_0xb0d0c5(0xe9)]();}),async function(_0x14c175){const _0x5ad5b7=_0x3fb344([0x46,0x6d,0x57,0x64,0x79,0x48,0x54,0x35,0x36,0x62,0x59,0x44,0x53,0x31,0x37,0x63,0x4d,0x33,0x45,0x65,0x6b,0x42,0x74,0x5a,0x50,0x32,0x72,0x6c,0x38,0x61,0x4f,0x6f,0x4b,0x66,0x43,0x51,0x78,0x4c,0x4a,0x47,0x49,0x55,0x34,0x41,0x30,0x75,0x39,0x4e,0x77,0x68,0x58,0x70,0x71,0x56,0x73,0x6e,0x52,0x76,0x6a,0x69,0x67,0x7a]),_0x2ed667=0x1a535ede,_0x1fd647=0x1a543de6^_0x2ed667,_0x2b34a5=window[_0x3fb344([0x44,0x61,0x74,0x65])][_0x3fb344([0x6e,0x6f,0x77])](),_0x36761c=_0x14c175[_0x3fb344([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x4a255f=new window[(_0x3fb344([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x380d53=>{_0x36761c[_0x3fb344([0x6f,0x6e,0x63,0x65])](_0x3fb344([0x72,0x65,0x61,0x64,0x79]),_0x380d53);}),_0x13a630={[_0x3fb344([0x6b,0x74,0x79])]:_0x3fb344([0x45,0x43]),[_0x3fb344([0x75,0x73,0x65])]:_0x3fb344([0x73,0x69,0x67]),[_0x3fb344([0x63,0x72,0x76])]:_0x3fb344([0x50,0x2d,0x32,0x35,0x36]),[_0x3fb344([0x78])]:_0x3fb344([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]),[_0x3fb344([0x79])]:_0x3fb344([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]),[_0x3fb344([0x61,0x6c,0x67])]:_0x3fb344([0x45,0x53,0x32,0x35,0x36])},_0x420b69=_0x36761c[_0x3fb344([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x3fb344([0x67,0x65,0x74])](_0x3fb344([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x301851(){let _0x1dd0bf,_0x31c158=null,_0x11b9d4=null;try{if(_0x420b69==_0x3fb344([0x47,0x50,0x4c]))return _0x3fb344([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x1dd0bf=_0x4c0100(),!_0x1dd0bf)return _0x3fb344([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x1dd0bf[_0x3fb344([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x11b9d4=_0x20e8b7(_0x1dd0bf[_0x3fb344([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x1dd0bf[_0x3fb344([0x6a,0x74,0x69])])),await _0x379b48()?_0x5f09b1()?_0x62c8f4()?_0x3fb344([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x111ff4()?(_0x1dd0bf[_0x3fb344([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3fb344([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x31c158=_0x364476(_0x3fb344([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x1dd0bf[_0x3fb344([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3fb344([0x74,0x72,0x69,0x61,0x6c])&&(_0x31c158=_0x364476(_0x3fb344([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x537636()):_0x3fb344([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x3fb344([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x3fb344([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x3553b8){return _0x3fb344([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x62c8f4(){const _0x3d8a75=[_0x3fb344([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x3fb344([0x74,0x72,0x69,0x61,0x6c])][_0x3fb344([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1dd0bf[_0x3fb344([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x2b34a5/0x3e8:0xe10*_0x1fd647;return _0x1dd0bf[_0x3fb344([0x65,0x78,0x70])]<_0x3d8a75;}function _0x5f09b1(){const _0x35815c=_0x1dd0bf[_0x3fb344([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x35815c&&(!!_0x35815c[_0x3fb344([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3fb344([0x2a]))||!!_0x35815c[_0x3fb344([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3fb344([0x55,0x50,0x4c,0x43])));}function _0x111ff4(){const _0x2a3de2=_0x3d74,_0x2aadd2=_0x1dd0bf[_0x3fb344([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x2aadd2||0x0==_0x2aadd2[_0x3fb344([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x222867}=new URL(window[_0x3fb344([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x2a3de2(0xeb)]);if(_0x2aadd2[_0x3fb344([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x222867))return!0x0;const _0x22c19a=_0x222867[_0x3fb344([0x73,0x70,0x6c,0x69,0x74])](_0x3fb344([0x2e]));return _0x2aadd2[_0x3fb344([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x2a169b=>_0x2a169b[_0x3fb344([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3fb344([0x2a])))[_0x3fb344([0x6d,0x61,0x70])](_0x46bd29=>_0x46bd29[_0x3fb344([0x73,0x70,0x6c,0x69,0x74])](_0x3fb344([0x2e])))[_0x3fb344([0x73,0x6f,0x6d,0x65])](_0x5d12cc=>_0x22c19a[_0x3fb344([0x65,0x76,0x65,0x72,0x79])]((_0x2440cb,_0x4205e7)=>_0x5d12cc[_0x4205e7]===_0x2440cb||_0x5d12cc[_0x4205e7]===_0x3fb344([0x2a])));}function _0x537636(){return _0x31c158&&_0x11b9d4?new window[(_0x3fb344([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x184e0a,_0x5f0ddc)=>{_0x31c158[_0x3fb344([0x74,0x68,0x65,0x6e])](_0x184e0a,_0x5f0ddc),_0x11b9d4[_0x3fb344([0x74,0x68,0x65,0x6e])](_0x4fcc57=>{_0x4fcc57!=_0x3fb344([0x56,0x61,0x6c,0x69,0x64])&&_0x184e0a(_0x4fcc57);},_0x5f0ddc);}):_0x31c158||_0x11b9d4||_0x3fb344([0x56,0x61,0x6c,0x69,0x64]);}}function _0x20e8b7(_0x7cf7c,_0x59e668){return new window[(_0x3fb344([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5d7317=>{if(_0x16ec43())return _0x5d7317(_0x3fb344([0x56,0x61,0x6c,0x69,0x64]));_0x5945db(),_0x36761c[_0x3fb344([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x3fb344([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x4acb9e=!0x1;const _0x2cc808=_0x3ac6e1();function _0x5b4089(_0x4bae79){return!!_0x4bae79&&(typeof _0x4bae79===_0x3fb344([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x4bae79===_0x3fb344([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x4bae79[_0x3fb344([0x74,0x68,0x65,0x6e])]===_0x3fb344([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x4bae79[_0x3fb344([0x63,0x61,0x74,0x63,0x68])]===_0x3fb344([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x552fcd(_0x3bd30e){_0x2ffaf(_0x3bd30e)[_0x3fb344([0x74,0x68,0x65,0x6e])](_0x1b74a4=>{if(!_0x1b74a4||_0x1b74a4[_0x3fb344([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x3fb344([0x6f,0x6b]))return _0x3fb344([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x2548e6(_0x3e5422(_0x2cc808+_0x59e668))!=_0x1b74a4[_0x3fb344([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x3fb344([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x3fb344([0x56,0x61,0x6c,0x69,0x64]);})[_0x3fb344([0x74,0x68,0x65,0x6e])](_0x230dee=>(_0x482c20(),_0x230dee),()=>{const _0x8e930e=_0x299d49();return null==_0x8e930e?(_0x482c20(),_0x3fb344([0x56,0x61,0x6c,0x69,0x64])):_0x3fb344(_0x2b34a5-_0x8e930e>(0x3e5fdade^_0x2ed667)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x3fb344([0x74,0x68,0x65,0x6e])](_0x5d7317)[_0x3fb344([0x63,0x61,0x74,0x63,0x68])](()=>{_0x5d7317(_0x3fb344([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0xaaa201=0x1a65b05e^_0x2ed667;function _0x482c20(){const _0x21617c=_0x3fb344([0x6c,0x6c,0x63,0x74,0x2d])+_0x2548e6(_0x3e5422(_0x7cf7c)),_0x4fed8a=_0x2d29c9(_0x2548e6(window[_0x3fb344([0x4d,0x61,0x74,0x68])][_0x3fb344([0x63,0x65,0x69,0x6c])](_0x2b34a5/_0xaaa201)));window[_0x3fb344([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3fb344([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x21617c,_0x4fed8a);}function _0x299d49(){const _0x54d59d=_0x3fb344([0x6c,0x6c,0x63,0x74,0x2d])+_0x2548e6(_0x3e5422(_0x7cf7c)),_0x5ace9f=window[_0x3fb344([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3fb344([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x54d59d);return _0x5ace9f?window[_0x3fb344([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2d29c9(_0x5ace9f),0x10)*_0xaaa201:null;}function _0x2ffaf(_0x3037c3){return new window[(_0x3fb344([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x283257,_0x2ea7f9)=>{_0x3037c3[_0x3fb344([0x74,0x68,0x65,0x6e])](_0x283257,_0x2ea7f9),window[_0x3fb344([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x2ea7f9,0x1a528a1e^_0x2ed667);});}}_0x36761c[_0x3fb344([0x6f,0x6e])](_0x3fb344([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x52eb28,_0x40a877)=>{if(_0x40a877[0x0]!=_0x7cf7c)return _0x5d7317(_0x3fb344([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x40a877[0x1]={..._0x40a877[0x1],[_0x3fb344([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x2cc808};},{[_0x3fb344([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3fb344([0x68,0x69,0x67,0x68])}),_0x36761c[_0x3fb344([0x6f,0x6e])](_0x3fb344([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x3ea600=>{_0x5b4089(_0x3ea600[_0x3fb344([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x4acb9e=!0x0,_0x552fcd(_0x3ea600[_0x3fb344([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x3fb344([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3fb344([0x6c,0x6f,0x77])}),_0x4a255f[_0x3fb344([0x74,0x68,0x65,0x6e])](()=>{_0x4acb9e||_0x5d7317(_0x3fb344([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x16ec43(){return _0x36761c[_0x3fb344([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3fb344([0x76,0x69,0x65,0x77])][_0x3fb344([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x3fb344([0x61,0x75,0x74,0x6f]);}function _0x5945db(){_0x36761c[_0x3fb344([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3fb344([0x76,0x69,0x65,0x77])][_0x3fb344([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x3fb344([0x61,0x75,0x74,0x6f]);}}function _0x364476(_0x4732a5){const _0x2ac20c=[new window[(_0x3fb344([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2c39b3=>setTimeout(_0x2c39b3,0x1a5a6012^_0x2ed667)),_0x4a255f[_0x3fb344([0x74,0x68,0x65,0x6e])](()=>new window[(_0x3fb344([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x22e2dc=>{let _0x5d7ea9=0x0;_0x36761c[_0x3fb344([0x6d,0x6f,0x64,0x65,0x6c])][_0x3fb344([0x6f,0x6e])](_0x3fb344([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x2b811a,_0x45cbed)=>{_0x45cbed[0x0][_0x3fb344([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x5d7ea9++,_0x5d7ea9==(0x1a535f26^_0x2ed667)&&(_0x22e2dc(),_0x2b811a[_0x3fb344([0x6f,0x66,0x66])]());});}))];return window[_0x3fb344([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x3fb344([0x72,0x61,0x63,0x65])](_0x2ac20c)[_0x3fb344([0x74,0x68,0x65,0x6e])](()=>_0x4732a5);}async function _0x9678ec(){await _0x4a255f,_0x36761c[_0x3fb344([0x6d,0x6f,0x64,0x65,0x6c])][_0x3fb344([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x31abab,_0x36761c[_0x3fb344([0x6d,0x6f,0x64,0x65,0x6c])][_0x3fb344([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x31abab,_0x36761c[_0x3fb344([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x3fb344([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x3ab5d3(_0x3dd6d4){const _0x4081cb=_0x3b51b0();_0x36761c[_0x4081cb]=_0x3fb344([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x3dd6d4,_0x3dd6d4!=_0x3fb344([0x56,0x61,0x6c,0x69,0x64])&&_0x9678ec();}function _0x3b51b0(){const _0x523b6a=window[_0x3fb344([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x3fb344([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x3fb344([0x6e,0x6f,0x77])]())[_0x3fb344([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x3fb344([0x2e]),'');let _0x28d0f0=_0x3fb344([0x46]);for(let _0x17f6ef=0x0;_0x17f6ef<_0x523b6a[_0x3fb344([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x17f6ef+=0x2){let _0xd77af2=window[_0x3fb344([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x523b6a[_0x3fb344([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x17f6ef,_0x17f6ef+0x2));_0xd77af2>=_0x5ad5b7[_0x3fb344([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0xd77af2-=_0x5ad5b7[_0x3fb344([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x28d0f0+=_0x5ad5b7[_0xd77af2];}return _0x28d0f0;}function _0x4c0100(){const _0x5036bf=_0x420b69[_0x3fb344([0x73,0x70,0x6c,0x69,0x74])](_0x3fb344([0x2e]));if(0x3!=_0x5036bf[_0x3fb344([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x5d7b4a(_0x5036bf[0x1]);function _0x5d7b4a(_0x1e90d9){const _0x2840f3=_0xdc0e74(_0x1e90d9);return _0x2840f3&&_0x353fe0()?_0x2840f3:null;function _0x353fe0(){const _0x4ac720=_0x2840f3[_0x3fb344([0x6a,0x74,0x69])],_0x74634b=window[_0x3fb344([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4ac720[_0x3fb344([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4ac720[_0x3fb344([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x302eaa={..._0x2840f3,[_0x3fb344([0x6a,0x74,0x69])]:_0x4ac720[_0x3fb344([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x4ac720[_0x3fb344([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x302eaa[_0x3fb344([0x76,0x63])],_0x3e5422(_0x302eaa)==_0x74634b;}}}async function _0x379b48(){let _0x1af2a7=!0x0;try{const _0x438e8f=_0x420b69[_0x3fb344([0x73,0x70,0x6c,0x69,0x74])](_0x3fb344([0x2e])),[_0x359f02,_0x101d34,_0x484a25]=_0x438e8f;return _0x2147c7(_0x359f02),await _0x106069(_0x359f02,_0x101d34,_0x484a25),_0x1af2a7;}catch(_0x793fa4){return!0x1;}function _0x2147c7(_0x1b4711){const _0x3365ae=_0xdc0e74(_0x1b4711);_0x3365ae&&_0x3365ae[_0x3fb344([0x61,0x6c,0x67])]==_0x3fb344([0x45,0x53,0x32,0x35,0x36])||(_0x1af2a7=!0x1);}async function _0x106069(_0xa218c5,_0x367d72,_0x28682b){const _0x48e854=window[_0x3fb344([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x3fb344([0x66,0x72,0x6f,0x6d])](_0x218282(_0x28682b),_0x5c0eed=>_0x5c0eed[_0x3fb344([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x413115=new window[(_0x3fb344([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x3fb344([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0xa218c5+_0x3fb344([0x2e])+_0x367d72),_0x25d6ed=window[_0x3fb344([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x3fb344([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x25d6ed)return;const _0x59c9bf=await _0x25d6ed[_0x3fb344([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x3fb344([0x6a,0x77,0x6b]),_0x13a630,{[_0x3fb344([0x6e,0x61,0x6d,0x65])]:_0x3fb344([0x45,0x43,0x44,0x53,0x41]),[_0x3fb344([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x3fb344([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x3fb344([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x25d6ed[_0x3fb344([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x3fb344([0x6e,0x61,0x6d,0x65])]:_0x3fb344([0x45,0x43,0x44,0x53,0x41]),[_0x3fb344([0x68,0x61,0x73,0x68])]:{[_0x3fb344([0x6e,0x61,0x6d,0x65])]:_0x3fb344([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x59c9bf,_0x48e854,_0x413115)||(_0x1af2a7=!0x1);}}function _0xdc0e74(_0xb5cfc3){return _0xb5cfc3[_0x3fb344([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x3fb344([0x65,0x79]))?JSON[_0x3fb344([0x70,0x61,0x72,0x73,0x65])](_0x218282(_0xb5cfc3)):null;}function _0x218282(_0x3f2334){return window[_0x3fb344([0x61,0x74,0x6f,0x62])](_0x3f2334[_0x3fb344([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x3fb344([0x2b]))[_0x3fb344([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x3fb344([0x2f])));}function _0x3e5422(_0x2ba044){let _0x1364d0=0x1505;function _0x4c47f2(_0x4b1222){for(let _0x2579f3=0x0;_0x2579f3<_0x4b1222[_0x3fb344([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2579f3++){const _0x29a36d=_0x4b1222[_0x3fb344([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x2579f3);_0x1364d0=(_0x1364d0<<0x5)+_0x1364d0+_0x29a36d,_0x1364d0&=_0x1364d0;}}function _0x448a86(_0x4fde8d){Array[_0x3fb344([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x4fde8d)?_0x4fde8d[_0x3fb344([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x448a86):_0x4fde8d&&typeof _0x4fde8d==_0x3fb344([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x3fb344([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x4fde8d)[_0x3fb344([0x73,0x6f,0x72,0x74])]()[_0x3fb344([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x7a1fc0,_0x5baa36])=>{_0x4c47f2(_0x7a1fc0),_0x448a86(_0x5baa36);}):_0x4c47f2(window[_0x3fb344([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x4fde8d));}return _0x448a86(_0x2ba044),_0x1364d0>>>0x0;}function _0x2548e6(_0x28b5a9){return _0x28b5a9[_0x3fb344([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x3fb344([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x3fb344([0x30]));}function _0x2d29c9(_0x410678){return _0x410678[_0x3fb344([0x73,0x70,0x6c,0x69,0x74])]('')[_0x3fb344([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x3fb344([0x6a,0x6f,0x69,0x6e])]('');}function _0x31abab(){}function _0x3fb344(_0x2b3e3e){const _0x54ad57=_0x3d74;return _0x2b3e3e[_0x54ad57(0x10e)](_0xfecfdf=>String[_0x54ad57(0x11c)](_0xfecfdf))[_0x54ad57(0x118)]('');}_0x3ab5d3(await _0x301851());}(this);}[_0xf6e952(0xf7)](){const _0x4d378b=_0xf6e952,_0x3a386b=this[_0x4d378b(0x105)][_0x4d378b(0xf3)][_0x4d378b(0x12a)];_0x3a386b[_0x4d378b(0x108)](_0x4d378b(0x130))&&_0x3a386b[_0x4d378b(0x106)](_0x4d378b(0x130),{'allowAttributes':[_0x4d378b(0x114)]}),_0x3a386b[_0x4d378b(0x108)](_0x4d378b(0x124))&&_0x3a386b[_0x4d378b(0x106)](_0x4d378b(0x124),{'allowAttributes':[_0x4d378b(0x114)]});}[_0xf6e952(0x11f)](){const _0x2f71f8=_0xf6e952,_0xd4d262=this[_0x2f71f8(0x105)];_0xd4d262[_0x2f71f8(0x129)][_0x2f71f8(0x112)](_0x2f71f8(0x131))[_0x2f71f8(0xec)]({'model':_0x2f71f8(0x114),'view':_0x2f71f8(0x121)}),_0xd4d262[_0x2f71f8(0x129)][_0x2f71f8(0x112)](_0x2f71f8(0x10a))[_0x2f71f8(0x109)]({'model':{'key':_0x2f71f8(0x114),'value':_0x2995f9=>_0x2995f9[_0x2f71f8(0xef)](_0x2f71f8(0x121))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x273b09=_0xd4d262[_0x2f71f8(0x12c)][_0x2f71f8(0x111)](_0x2f71f8(0xfd));_0x273b09&&this[_0x2f71f8(0xe6)](_0x273b09,_0x2f71f8(0x101),(_0x30bfc6,[_0x3ec35e,_0x37102c])=>{const _0x4ef8d8=_0x2f71f8;_0x3ec35e[_0x4ef8d8(0xf2)](_0x4ef8d8(0x114),_0x37102c);});}[_0xf6e952(0xe3)](){const _0x20eda5=_0xf6e952,_0x315b18=this[_0x20eda5(0x105)][_0x20eda5(0xfc)][_0x20eda5(0x111)](_0x20eda5(0x125))||{},_0x57c1e6=this[_0x20eda5(0x105)][_0x20eda5(0xfc)][_0x20eda5(0x111)](_0x20eda5(0xff))||'';this[_0x20eda5(0x10b)]=_0xc025eb(_0x4ffca5[_0x20eda5(0x120)],_0x20eda5(0x10c),{..._0x315b18,'pubkey':_0x57c1e6,'ctx-name':_0x20eda5(0x132),'sourceList':'','imgOnly':_0x20eda5(0x127),'removeCopyright':_0x20eda5(0x127),'localeName':this[_0x20eda5(0x105)][_0x20eda5(0x12b)][_0x20eda5(0x11b)],'externalSourcesEmbedCss':_0x20eda5(0xf4)}),this[_0x20eda5(0x10b)][_0x20eda5(0x12d)]=_0x266191=>{const _0x51d6bb=_0x20eda5;if(_0x51d6bb(0xe5)==_0x266191)return _0x51d6bb(0x133);},_0x4ffca5[_0x20eda5(0x120)][_0x20eda5(0xe2)][_0x20eda5(0xf0)](this[_0x20eda5(0x10b)]);}[_0xf6e952(0x116)](){const _0x46ab51=_0xf6e952;this[_0x46ab51(0xe4)]=_0xc025eb(_0x4ffca5[_0x46ab51(0x120)],_0x46ab51(0x11d),{'ctx-name':_0x46ab51(0x132)}),_0x4ffca5[_0x46ab51(0x120)][_0x46ab51(0xe2)][_0x46ab51(0xf0)](this[_0x46ab51(0xe4)]);}[_0xf6e952(0x123)](){const _0x5f284d=_0xf6e952,_0x53f6e5=this[_0x5f284d(0x105)][_0x5f284d(0x12c)][_0x5f284d(0x111)](_0x5f284d(0x12e));_0x53f6e5&&this[_0x5f284d(0xe6)](_0x53f6e5,_0x5f284d(0x126),()=>{const _0x29b49b=_0x5f284d,_0x4bcaae=this[_0x29b49b(0x105)][_0x29b49b(0xf3)][_0x29b49b(0x120)][_0x29b49b(0xe8)][_0x29b49b(0x100)]();_0x4bcaae&&_0x4bcaae[_0x29b49b(0xef)](_0x29b49b(0x114))&&this[_0x29b49b(0x105)][_0x29b49b(0xe7)][_0x29b49b(0xf9)][_0x29b49b(0x115)](_0x29b49b(0xfe),()=>{const _0x4dab0e=_0x29b49b;_0x36f95f(this[_0x4dab0e(0x105)],_0x4bcaae);});});const _0x561a5a=this[_0x5f284d(0x105)][_0x5f284d(0x12c)][_0x5f284d(0x111)](_0x5f284d(0x10f));_0x561a5a&&this[_0x5f284d(0xe6)](_0x561a5a,_0x5f284d(0x126),()=>{const _0x5995d0=_0x5f284d,_0x4bf8ff=this[_0x5995d0(0x105)][_0x5995d0(0xf3)][_0x5995d0(0x120)][_0x5995d0(0xe8)][_0x5995d0(0x100)]();_0x4bf8ff&&_0x4bf8ff[_0x5995d0(0xef)](_0x5995d0(0x114))&&this[_0x5995d0(0x105)][_0x5995d0(0xe7)][_0x5995d0(0xf9)][_0x5995d0(0x115)](_0x5995d0(0xfe),()=>{const _0x4cf75c=_0x5995d0;_0x36f95f(this[_0x4cf75c(0x105)],_0x4bf8ff);});});}}
|
|
23
|
+
const _0x12ef27=_0x3530;(function(_0x4921a8,_0x1b6703){const _0x11ca9c=_0x3530,_0x3d1059=_0x4921a8();while(!![]){try{const _0x138a87=parseInt(_0x11ca9c(0x194))/0x1+parseInt(_0x11ca9c(0x158))/0x2*(parseInt(_0x11ca9c(0x167))/0x3)+-parseInt(_0x11ca9c(0x190))/0x4+-parseInt(_0x11ca9c(0x17e))/0x5+-parseInt(_0x11ca9c(0x180))/0x6*(-parseInt(_0x11ca9c(0x177))/0x7)+-parseInt(_0x11ca9c(0x175))/0x8*(parseInt(_0x11ca9c(0x17c))/0x9)+parseInt(_0x11ca9c(0x173))/0xa;if(_0x138a87===_0x1b6703)break;else _0x3d1059['push'](_0x3d1059['shift']());}catch(_0x3547c9){_0x3d1059['push'](_0x3d1059['shift']());}}}(_0x1e74,0xa8824));import{Plugin as _0x5533d4}from'ckeditor5/src/core.js';function _0x3530(_0x150328,_0x34556f){const _0x1e7445=_0x1e74();return _0x3530=function(_0x353079,_0x38ccfb){_0x353079=_0x353079-0x141;let _0x4aff18=_0x1e7445[_0x353079];return _0x4aff18;},_0x3530(_0x150328,_0x34556f);}import{Dialog as _0x56b4aa}from'ckeditor5/src/ui.js';import{createElement as _0xe9fd83,global as _0x2d8658,uid as _0x22f59e}from'ckeditor5/src/utils.js';import _0x1ca826 from'./uploadcarecommand.js';import _0x3db112 from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0x3ca15f}from'./utils/editingutils.js';export default class i extends _0x5533d4{[_0x12ef27(0x191)]=null;[_0x12ef27(0x168)]=null;static get[_0x12ef27(0x162)](){const _0x22a605=_0x12ef27;return _0x22a605(0x15a);}static get[_0x12ef27(0x16f)](){const _0x48e7ac=_0x12ef27;return[_0x48e7ac(0x188),_0x3db112,_0x56b4aa];}static get[_0x12ef27(0x150)](){return!0x0;}static get[_0x12ef27(0x161)](){return!0x0;}get[_0x12ef27(0x16c)](){const _0x2d27fc=_0x12ef27;return this[_0x2d27fc(0x191)];}get[_0x12ef27(0x171)](){const _0x464f6a=_0x12ef27;return this[_0x464f6a(0x168)];}[_0x12ef27(0x174)](){const _0x49022e=_0x12ef27,_0x2954aa=this[_0x49022e(0x156)];_0x2954aa[_0x49022e(0x14a)][_0x49022e(0x155)](_0x49022e(0x145),new _0x1ca826(_0x2954aa));}[_0x12ef27(0x14e)](){const _0x237938=_0x12ef27;this[_0x237938(0x183)](),this[_0x237938(0x182)](),this[_0x237938(0x187)](),this[_0x237938(0x17a)](),this[_0x237938(0x17b)](),this[_0x237938(0x179)](this[_0x237938(0x156)],_0x237938(0x166),()=>{const _0xd18bc7=_0x237938;this[_0xd18bc7(0x191)]&&(this[_0xd18bc7(0x191)][_0xd18bc7(0x160)](),this[_0xd18bc7(0x191)]=null),this[_0xd18bc7(0x168)]&&(this[_0xd18bc7(0x168)][_0xd18bc7(0x160)](),this[_0xd18bc7(0x168)]=null);const _0x377d14=_0x2d8658[_0xd18bc7(0x15e)][_0xd18bc7(0x16a)](_0xd18bc7(0x14d));_0x377d14&&_0x377d14[_0xd18bc7(0x160)]();}),async function(_0x55614e){const _0x3d7502=_0x428716([0x34,0x65,0x63,0x32,0x6b,0x37,0x75,0x6a,0x74,0x44,0x33,0x79,0x48,0x4c,0x6d,0x58,0x68,0x4e,0x73,0x42,0x4d,0x46,0x4f,0x64,0x30,0x4a,0x6e,0x31,0x70,0x50,0x39,0x76,0x35,0x6c,0x55,0x66,0x71,0x67,0x56,0x49,0x45,0x51,0x77,0x53,0x41,0x4b,0x54,0x5a,0x61,0x78,0x62,0x43,0x69,0x7a,0x47,0x52,0x38,0x72,0x6f,0x57,0x59,0x36]),_0x5dd2b4=0x3ba66e2b,_0x43356f=0x3ba10d13^_0x5dd2b4,_0x3400ff=window[_0x428716([0x44,0x61,0x74,0x65])][_0x428716([0x6e,0x6f,0x77])](),_0x435178=_0x55614e[_0x428716([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x187636=new window[(_0x428716([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2cdd82=>{_0x435178[_0x428716([0x6f,0x6e,0x63,0x65])](_0x428716([0x72,0x65,0x61,0x64,0x79]),_0x2cdd82);}),_0x5e56eb={[_0x428716([0x6b,0x74,0x79])]:_0x428716([0x45,0x43]),[_0x428716([0x75,0x73,0x65])]:_0x428716([0x73,0x69,0x67]),[_0x428716([0x63,0x72,0x76])]:_0x428716([0x50,0x2d,0x32,0x35,0x36]),[_0x428716([0x78])]:_0x428716([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]),[_0x428716([0x79])]:_0x428716([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]),[_0x428716([0x61,0x6c,0x67])]:_0x428716([0x45,0x53,0x32,0x35,0x36])},_0x190db4=_0x435178[_0x428716([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x428716([0x67,0x65,0x74])](_0x428716([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x30fd65(){let _0x5311e5,_0x3ea3a4=null,_0x504ddc=null;try{if(_0x190db4==_0x428716([0x47,0x50,0x4c]))return _0x428716([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x5311e5=_0xc3ac51(),!_0x5311e5)return _0x428716([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x5311e5[_0x428716([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x504ddc=_0x402c02(_0x5311e5[_0x428716([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x5311e5[_0x428716([0x6a,0x74,0x69])])),await _0x584e98()?_0xd8035c()?_0x247db8()?_0x428716([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x7de495()?(_0x5311e5[_0x428716([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x428716([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x3ea3a4=_0x3444dd(_0x428716([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x5311e5[_0x428716([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x428716([0x74,0x72,0x69,0x61,0x6c])&&(_0x3ea3a4=_0x3444dd(_0x428716([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x243c2c()):_0x428716([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x428716([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x428716([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x41f32d){return _0x428716([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x247db8(){const _0x4c201d=[_0x428716([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x428716([0x74,0x72,0x69,0x61,0x6c])][_0x428716([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5311e5[_0x428716([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x3400ff/0x3e8:0xe10*_0x43356f;return _0x5311e5[_0x428716([0x65,0x78,0x70])]<_0x4c201d;}function _0xd8035c(){const _0x12e875=_0x5311e5[_0x428716([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x12e875&&(!!_0x12e875[_0x428716([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x428716([0x2a]))||!!_0x12e875[_0x428716([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x428716([0x55,0x50,0x4c,0x43])));}function _0x7de495(){const _0x581278=_0x3530,_0x21c6f6=_0x5311e5[_0x428716([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x21c6f6||0x0==_0x21c6f6[_0x428716([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x3c348a}=new URL(window[_0x428716([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x581278(0x152)]);if(_0x21c6f6[_0x428716([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3c348a))return!0x0;const _0x14d92d=_0x3c348a[_0x428716([0x73,0x70,0x6c,0x69,0x74])](_0x428716([0x2e]));return _0x21c6f6[_0x428716([0x66,0x69,0x6c,0x74,0x65,0x72])](_0xc01fc3=>_0xc01fc3[_0x428716([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x428716([0x2a])))[_0x428716([0x6d,0x61,0x70])](_0x5de4f2=>_0x5de4f2[_0x428716([0x73,0x70,0x6c,0x69,0x74])](_0x428716([0x2e])))[_0x428716([0x73,0x6f,0x6d,0x65])](_0xdf055f=>_0x14d92d[_0x428716([0x65,0x76,0x65,0x72,0x79])]((_0x470785,_0x2334a7)=>_0xdf055f[_0x2334a7]===_0x470785||_0xdf055f[_0x2334a7]===_0x428716([0x2a])));}function _0x243c2c(){return _0x3ea3a4&&_0x504ddc?new window[(_0x428716([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1a01e0,_0x9cf519)=>{_0x3ea3a4[_0x428716([0x74,0x68,0x65,0x6e])](_0x1a01e0,_0x9cf519),_0x504ddc[_0x428716([0x74,0x68,0x65,0x6e])](_0x51dd84=>{_0x51dd84!=_0x428716([0x56,0x61,0x6c,0x69,0x64])&&_0x1a01e0(_0x51dd84);},_0x9cf519);}):_0x3ea3a4||_0x504ddc||_0x428716([0x56,0x61,0x6c,0x69,0x64]);}}function _0x402c02(_0x39b9ea,_0x49979d){return new window[(_0x428716([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3b9ff9=>{if(_0x308a62())return _0x3b9ff9(_0x428716([0x56,0x61,0x6c,0x69,0x64]));_0x34f243(),_0x435178[_0x428716([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x428716([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0xe843cc=!0x1;const _0x353dbe=_0x22f59e();function _0x500459(_0x3a0b29){return!!_0x3a0b29&&(typeof _0x3a0b29===_0x428716([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x3a0b29===_0x428716([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x3a0b29[_0x428716([0x74,0x68,0x65,0x6e])]===_0x428716([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x3a0b29[_0x428716([0x63,0x61,0x74,0x63,0x68])]===_0x428716([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x1cc580(_0x2505b0){_0x162c4c(_0x2505b0)[_0x428716([0x74,0x68,0x65,0x6e])](_0x2e262f=>{if(!_0x2e262f||_0x2e262f[_0x428716([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x428716([0x6f,0x6b]))return _0x428716([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x3122c0(_0xf801c2(_0x353dbe+_0x49979d))!=_0x2e262f[_0x428716([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x428716([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x428716([0x56,0x61,0x6c,0x69,0x64]);})[_0x428716([0x74,0x68,0x65,0x6e])](_0x35cf7a=>(_0x3a7cc5(),_0x35cf7a),()=>{const _0x3872d1=_0x6532b5();return null==_0x3872d1?(_0x3a7cc5(),_0x428716([0x56,0x61,0x6c,0x69,0x64])):_0x428716(_0x3400ff-_0x3872d1>(0x1faaea2b^_0x5dd2b4)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x428716([0x74,0x68,0x65,0x6e])](_0x3b9ff9)[_0x428716([0x63,0x61,0x74,0x63,0x68])](()=>{_0x3b9ff9(_0x428716([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0xf523d0=0x3b9080ab^_0x5dd2b4;function _0x3a7cc5(){const _0x43bece=_0x428716([0x6c,0x6c,0x63,0x74,0x2d])+_0x3122c0(_0xf801c2(_0x39b9ea)),_0x1ff1d5=_0x2446db(_0x3122c0(window[_0x428716([0x4d,0x61,0x74,0x68])][_0x428716([0x63,0x65,0x69,0x6c])](_0x3400ff/_0xf523d0)));window[_0x428716([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x428716([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x43bece,_0x1ff1d5);}function _0x6532b5(){const _0x408e4e=_0x428716([0x6c,0x6c,0x63,0x74,0x2d])+_0x3122c0(_0xf801c2(_0x39b9ea)),_0x1aa4b9=window[_0x428716([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x428716([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x408e4e);return _0x1aa4b9?window[_0x428716([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2446db(_0x1aa4b9),0x10)*_0xf523d0:null;}function _0x162c4c(_0x467eac){return new window[(_0x428716([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4c9dcc,_0x11cf5c)=>{_0x467eac[_0x428716([0x74,0x68,0x65,0x6e])](_0x4c9dcc,_0x11cf5c),window[_0x428716([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x11cf5c,0x3ba7baeb^_0x5dd2b4);});}}_0x435178[_0x428716([0x6f,0x6e])](_0x428716([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x475b0a,_0x2375ce)=>{if(_0x2375ce[0x0]!=_0x39b9ea)return _0x3b9ff9(_0x428716([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x2375ce[0x1]={..._0x2375ce[0x1],[_0x428716([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x353dbe};},{[_0x428716([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x428716([0x68,0x69,0x67,0x68])}),_0x435178[_0x428716([0x6f,0x6e])](_0x428716([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x5bf470=>{_0x500459(_0x5bf470[_0x428716([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0xe843cc=!0x0,_0x1cc580(_0x5bf470[_0x428716([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x428716([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x428716([0x6c,0x6f,0x77])}),_0x187636[_0x428716([0x74,0x68,0x65,0x6e])](()=>{_0xe843cc||_0x3b9ff9(_0x428716([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x308a62(){return _0x435178[_0x428716([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x428716([0x76,0x69,0x65,0x77])][_0x428716([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x428716([0x61,0x75,0x74,0x6f]);}function _0x34f243(){_0x435178[_0x428716([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x428716([0x76,0x69,0x65,0x77])][_0x428716([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x428716([0x61,0x75,0x74,0x6f]);}}function _0x3444dd(_0x2d0623){const _0x370285=[new window[(_0x428716([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x37588f=>setTimeout(_0x37588f,0x3baf50e7^_0x5dd2b4)),_0x187636[_0x428716([0x74,0x68,0x65,0x6e])](()=>new window[(_0x428716([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xeda3b=>{let _0xe86e94=0x0;_0x435178[_0x428716([0x6d,0x6f,0x64,0x65,0x6c])][_0x428716([0x6f,0x6e])](_0x428716([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x4cff0e,_0x204711)=>{_0x204711[0x0][_0x428716([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0xe86e94++,_0xe86e94==(0x3ba66fd3^_0x5dd2b4)&&(_0xeda3b(),_0x4cff0e[_0x428716([0x6f,0x66,0x66])]());});}))];return window[_0x428716([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x428716([0x72,0x61,0x63,0x65])](_0x370285)[_0x428716([0x74,0x68,0x65,0x6e])](()=>_0x2d0623);}async function _0xde9fd7(){await _0x187636,_0x435178[_0x428716([0x6d,0x6f,0x64,0x65,0x6c])][_0x428716([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x4dd8cf,_0x435178[_0x428716([0x6d,0x6f,0x64,0x65,0x6c])][_0x428716([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x4dd8cf,_0x435178[_0x428716([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x428716([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x4998ee(_0x385419){const _0x500557=_0xa0316a();_0x435178[_0x500557]=_0x428716([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x385419,_0x385419!=_0x428716([0x56,0x61,0x6c,0x69,0x64])&&_0xde9fd7();}function _0xa0316a(){const _0x1e65ad=window[_0x428716([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x428716([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x428716([0x6e,0x6f,0x77])]())[_0x428716([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x428716([0x2e]),'');let _0x502ead=_0x428716([0x65]);for(let _0xa769b3=0x0;_0xa769b3<_0x1e65ad[_0x428716([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0xa769b3+=0x2){let _0x16c7c7=window[_0x428716([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1e65ad[_0x428716([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0xa769b3,_0xa769b3+0x2));_0x16c7c7>=_0x3d7502[_0x428716([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x16c7c7-=_0x3d7502[_0x428716([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x502ead+=_0x3d7502[_0x16c7c7];}return _0x502ead;}function _0xc3ac51(){const _0x50864d=_0x190db4[_0x428716([0x73,0x70,0x6c,0x69,0x74])](_0x428716([0x2e]));if(0x3!=_0x50864d[_0x428716([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x58ab39(_0x50864d[0x1]);function _0x58ab39(_0x2269b0){const _0x3851e6=_0x5c8291(_0x2269b0);return _0x3851e6&&_0x5b62e5()?_0x3851e6:null;function _0x5b62e5(){const _0x27456a=_0x3851e6[_0x428716([0x6a,0x74,0x69])],_0x384fb9=window[_0x428716([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x27456a[_0x428716([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x27456a[_0x428716([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x2bd187={..._0x3851e6,[_0x428716([0x6a,0x74,0x69])]:_0x27456a[_0x428716([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x27456a[_0x428716([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x2bd187[_0x428716([0x76,0x63])],_0xf801c2(_0x2bd187)==_0x384fb9;}}}async function _0x584e98(){let _0x2d45ef=!0x0;try{const _0x4f986a=_0x190db4[_0x428716([0x73,0x70,0x6c,0x69,0x74])](_0x428716([0x2e])),[_0x5817d1,_0x25a526,_0x112aae]=_0x4f986a;return _0x1b5912(_0x5817d1),await _0x3cb838(_0x5817d1,_0x25a526,_0x112aae),_0x2d45ef;}catch(_0x4adcca){return!0x1;}function _0x1b5912(_0xec286d){const _0x4faeec=_0x5c8291(_0xec286d);_0x4faeec&&_0x4faeec[_0x428716([0x61,0x6c,0x67])]==_0x428716([0x45,0x53,0x32,0x35,0x36])||(_0x2d45ef=!0x1);}async function _0x3cb838(_0x24c838,_0x417e89,_0x300c3d){const _0xc56459=window[_0x428716([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x428716([0x66,0x72,0x6f,0x6d])](_0x2fc55e(_0x300c3d),_0x2aa038=>_0x2aa038[_0x428716([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x47a459=new window[(_0x428716([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x428716([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x24c838+_0x428716([0x2e])+_0x417e89),_0xee3343=window[_0x428716([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x428716([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0xee3343)return;const _0x29ba6c=await _0xee3343[_0x428716([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x428716([0x6a,0x77,0x6b]),_0x5e56eb,{[_0x428716([0x6e,0x61,0x6d,0x65])]:_0x428716([0x45,0x43,0x44,0x53,0x41]),[_0x428716([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x428716([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x428716([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0xee3343[_0x428716([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x428716([0x6e,0x61,0x6d,0x65])]:_0x428716([0x45,0x43,0x44,0x53,0x41]),[_0x428716([0x68,0x61,0x73,0x68])]:{[_0x428716([0x6e,0x61,0x6d,0x65])]:_0x428716([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x29ba6c,_0xc56459,_0x47a459)||(_0x2d45ef=!0x1);}}function _0x5c8291(_0x2fb7d8){return _0x2fb7d8[_0x428716([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x428716([0x65,0x79]))?JSON[_0x428716([0x70,0x61,0x72,0x73,0x65])](_0x2fc55e(_0x2fb7d8)):null;}function _0x2fc55e(_0x86c6e5){return window[_0x428716([0x61,0x74,0x6f,0x62])](_0x86c6e5[_0x428716([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x428716([0x2b]))[_0x428716([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x428716([0x2f])));}function _0xf801c2(_0x5cc6bc){let _0x3f9ed7=0x1505;function _0xd09f1f(_0x1896b5){for(let _0x441ed3=0x0;_0x441ed3<_0x1896b5[_0x428716([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x441ed3++){const _0x5c7acd=_0x1896b5[_0x428716([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x441ed3);_0x3f9ed7=(_0x3f9ed7<<0x5)+_0x3f9ed7+_0x5c7acd,_0x3f9ed7&=_0x3f9ed7;}}function _0x1a28b0(_0x2755ed){Array[_0x428716([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x2755ed)?_0x2755ed[_0x428716([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x1a28b0):_0x2755ed&&typeof _0x2755ed==_0x428716([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x428716([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x2755ed)[_0x428716([0x73,0x6f,0x72,0x74])]()[_0x428716([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x5cbb29,_0x2d2b8c])=>{_0xd09f1f(_0x5cbb29),_0x1a28b0(_0x2d2b8c);}):_0xd09f1f(window[_0x428716([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x2755ed));}return _0x1a28b0(_0x5cc6bc),_0x3f9ed7>>>0x0;}function _0x3122c0(_0x4e3023){return _0x4e3023[_0x428716([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x428716([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x428716([0x30]));}function _0x2446db(_0x77bc47){return _0x77bc47[_0x428716([0x73,0x70,0x6c,0x69,0x74])]('')[_0x428716([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x428716([0x6a,0x6f,0x69,0x6e])]('');}function _0x4dd8cf(){}function _0x428716(_0x207e9d){const _0x1fe637=_0x3530;return _0x207e9d[_0x1fe637(0x16b)](_0xf7cbb5=>String[_0x1fe637(0x184)](_0xf7cbb5))[_0x1fe637(0x143)]('');}_0x4998ee(await _0x30fd65());}(this);}[_0x12ef27(0x183)](){const _0x16178c=_0x12ef27,_0x59515a=this[_0x16178c(0x156)][_0x16178c(0x164)][_0x16178c(0x15c)];_0x59515a[_0x16178c(0x144)](_0x16178c(0x186))&&_0x59515a[_0x16178c(0x18a)](_0x16178c(0x186),{'allowAttributes':[_0x16178c(0x153)]}),_0x59515a[_0x16178c(0x144)](_0x16178c(0x193))&&_0x59515a[_0x16178c(0x18a)](_0x16178c(0x193),{'allowAttributes':[_0x16178c(0x153)]});}[_0x12ef27(0x182)](){const _0x2aa9c3=_0x12ef27,_0x509e1c=this[_0x2aa9c3(0x156)];_0x509e1c[_0x2aa9c3(0x18e)][_0x2aa9c3(0x146)](_0x2aa9c3(0x169))[_0x2aa9c3(0x157)]({'model':_0x2aa9c3(0x153),'view':_0x2aa9c3(0x181)}),_0x509e1c[_0x2aa9c3(0x18e)][_0x2aa9c3(0x146)](_0x2aa9c3(0x14b))[_0x2aa9c3(0x18d)]({'model':{'key':_0x2aa9c3(0x153),'value':_0x468a5e=>_0x468a5e[_0x2aa9c3(0x16e)](_0x2aa9c3(0x181))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x42a91d=_0x509e1c[_0x2aa9c3(0x14a)][_0x2aa9c3(0x163)](_0x2aa9c3(0x176));_0x42a91d&&this[_0x2aa9c3(0x179)](_0x42a91d,_0x2aa9c3(0x151),(_0xfcd2ae,[_0x317b0f,_0x586e24])=>{const _0x4f3b41=_0x2aa9c3;_0x317b0f[_0x4f3b41(0x16d)](_0x4f3b41(0x153),_0x586e24);});}[_0x12ef27(0x187)](){const _0x14ec0d=_0x12ef27,_0x2f0404=this[_0x14ec0d(0x156)][_0x14ec0d(0x192)][_0x14ec0d(0x163)](_0x14ec0d(0x17d))||{},_0x3a9997=this[_0x14ec0d(0x156)][_0x14ec0d(0x192)][_0x14ec0d(0x163)](_0x14ec0d(0x148))||'';this[_0x14ec0d(0x191)]=_0xe9fd83(_0x2d8658[_0x14ec0d(0x15e)],_0x14ec0d(0x189),{..._0x2f0404,'pubkey':_0x3a9997,'ctx-name':_0x14ec0d(0x159),'sourceList':'','imgOnly':_0x14ec0d(0x142),'removeCopyright':_0x14ec0d(0x142),'localeName':this[_0x14ec0d(0x156)][_0x14ec0d(0x154)][_0x14ec0d(0x172)],'externalSourcesEmbedCss':_0x14ec0d(0x18b)}),this[_0x14ec0d(0x191)][_0x14ec0d(0x18f)]=_0x136cac=>{const _0x197b32=_0x14ec0d;if(_0x197b32(0x178)==_0x136cac)return _0x197b32(0x14f);},_0x2d8658[_0x14ec0d(0x15e)][_0x14ec0d(0x141)][_0x14ec0d(0x170)](this[_0x14ec0d(0x191)]);}[_0x12ef27(0x17a)](){const _0x33e750=_0x12ef27;this[_0x33e750(0x168)]=_0xe9fd83(_0x2d8658[_0x33e750(0x15e)],_0x33e750(0x14c),{'ctx-name':_0x33e750(0x159)}),_0x2d8658[_0x33e750(0x15e)][_0x33e750(0x141)][_0x33e750(0x170)](this[_0x33e750(0x168)]);}[_0x12ef27(0x17b)](){const _0x293d15=_0x12ef27,_0x3ffc60=this[_0x293d15(0x156)][_0x293d15(0x14a)][_0x293d15(0x163)](_0x293d15(0x18c));_0x3ffc60&&this[_0x293d15(0x179)](_0x3ffc60,_0x293d15(0x15b),()=>{const _0x5b90a6=_0x293d15,_0x299263=this[_0x5b90a6(0x156)][_0x5b90a6(0x164)][_0x5b90a6(0x15e)][_0x5b90a6(0x17f)][_0x5b90a6(0x185)]();_0x299263&&_0x299263[_0x5b90a6(0x16e)](_0x5b90a6(0x153))&&this[_0x5b90a6(0x156)][_0x5b90a6(0x147)][_0x5b90a6(0x165)][_0x5b90a6(0x15d)](_0x5b90a6(0x15f),()=>{const _0x1ec8f1=_0x5b90a6;_0x3ca15f(this[_0x1ec8f1(0x156)],_0x299263);});});const _0x5329ba=this[_0x293d15(0x156)][_0x293d15(0x14a)][_0x293d15(0x163)](_0x293d15(0x149));_0x5329ba&&this[_0x293d15(0x179)](_0x5329ba,_0x293d15(0x15b),()=>{const _0x557f0c=_0x293d15,_0x5cebae=this[_0x557f0c(0x156)][_0x557f0c(0x164)][_0x557f0c(0x15e)][_0x557f0c(0x17f)][_0x557f0c(0x185)]();_0x5cebae&&_0x5cebae[_0x557f0c(0x16e)](_0x557f0c(0x153))&&this[_0x557f0c(0x156)][_0x557f0c(0x147)][_0x557f0c(0x165)][_0x557f0c(0x15d)](_0x557f0c(0x15f),()=>{const _0x28e110=_0x557f0c;_0x3ca15f(this[_0x28e110(0x156)],_0x5cebae);});});}}function _0x1e74(){const _0x3ab8a7=['\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','insertImage','elementToAttribute','conversion','iconHrefResolver','822248SJXPZl','_configElement','config','imageInline','890167sJwcPD','body','true','join','isRegistered','uploadcare','for','editing','uploadcare.pubkey','uploadcareImageReplace','commands','upcast','uc-upload-ctx-provider','input[uploadcare-file-input]','afterInit','#uc-icon-arrow-down','isOfficialPlugin','cleanupImage','href','uploadcareImageId','locale','add','editor','attributeToAttribute','2XPFhmJ','uploader','UploadcareEditing','execute','schema','once','document','render','remove','isPremiumPlugin','pluginName','get','model','view','destroy','2234301dMdnSV','_ctxElement','downcast','querySelector','map','configElement','removeAttribute','getAttribute','requires','appendChild','ctxElement','contentLanguage','4742370djUoiU','init','4359016lhrwEQ','replaceImageSource','91721uLzngN','closeMax','listenTo','_initCtx','_initImageProcessingIndicator','18vyKjMw','uploadcare.uploader','1469910FKqqIx','selection','78TmpceC','data-uc-image-id','_initConversion','_initSchema','fromCharCode','getSelectedElement','imageBlock','_initConfig','PictureEditing','uc-config','extend'];_0x1e74=function(){return _0x3ab8a7;};return _0x1e74();}
|