@ckeditor/ckeditor5-uploadcare 0.0.0-nightly-20251129.0 → 0.0.0-nightly-20251201.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/uploadcare.js +1 -1
- package/dist/index.js +3 -3
- package/package.json +9 -9
- package/src/uploadcareediting.js +1 -1
package/dist/index.js
CHANGED
|
@@ -20,6 +20,6 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as _0x20fef7,Command as _0x252380}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x461cd9,IconGooglePhotos as _0x286a4b,IconGoogleDrive as _0x4dab0,IconFacebook as _0x95ae7b,IconDropbox as _0x54af93,IconUploadcareLink as _0x2af3a1,IconUploadcareImageUpload as _0x24b477,IconError as _0x71f2d3,IconUploadcareImageEdit as _0x2e734e}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x166585,MenuBarMenuListItemButtonView as _0x1ad5fb,View as _0x168403,FocusCycler as _0x25b54f,Dialog as _0x289807,DialogViewPosition as _0x59eb6a,SpinnerView as _0x1fdc1f,IconView as _0x1d7b20,Notification as _0x2654f3}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x58f0e2,DomEmitterMixin as _0x323d1a,global as _0x1424b6,getAncestors as _0x54da65,ObservableMixin as _0xf74261,uid as _0x484902,createElement as _0x62c1a3}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x138367}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x48d7e6,info as _0x3c3b62}from'@uploadcare/upload-client';import*as _0x4fc6b from'@uploadcare/file-uploader';var i=function(_0x328e9d){return _0x328e9d['Local']='local',_0x328e9d['URL']='url',_0x328e9d['Dropbox']='dropbox',_0x328e9d['GDrive']='gdrive',_0x328e9d['Facebook']='facebook',_0x328e9d['GPhotos']='gphotos',_0x328e9d['OneDrive']='onedrive',_0x328e9d;}({});function _(_0x1c98ed,_0x14e7b6,_0xc4a2c8){const t=_0x1c98ed['t'],_0x486bda=_0x1c98ed['t'];switch(_0x14e7b6){case i['Local']:return{'text':_0x486bda('Insert'===_0xc4a2c8?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x486bda('From\x20computer')};case i['URL']:return{'text':'Insert'===_0xc4a2c8?_0x486bda('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x486bda('Via\x20URL')};case i['Dropbox']:return{'text':t('Insert'===_0xc4a2c8?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case i['Facebook']:return{'text':t('Insert'===_0xc4a2c8?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case i['GDrive']:return{'text':t('Insert'===_0xc4a2c8?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case i['GPhotos']:return{'text':t('Insert'===_0xc4a2c8?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case i['OneDrive']:return{'text':t('Insert'===_0xc4a2c8?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x14e7b6;}}class e extends _0x20fef7{['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 _0x12b686=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x48659f;for(const _0x461e70 in _0x12b686){const _0x28b623=_0x461e70,_0x665365=_0x12b686[_0x28b623];if('uploadcareLicenseKeyValid'==_0x665365||'uploadcareLicenseKeyInvalid'==_0x665365||'uploadcareLicenseKeyExpired'==_0x665365||'uploadcareLicenseKeyDomainLimit'==_0x665365||'uploadcareLicenseKeyNotAllowed'==_0x665365||'uploadcareLicenseKeyEvaluationLimit'==_0x665365||'uploadcareLicenseKeyTrialLimit'==_0x665365||'uploadcareLicenseKeyUsageLimit'==_0x665365){delete _0x12b686[_0x28b623],_0x48659f=_0x665365,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x48659f&&_0x12b686['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x48659f&&_0x12b686['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x48659f&&_0x12b686['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x48659f&&_0x12b686['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x48659f&&_0x12b686['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyTrialLimit'==_0x48659f&&_0x12b686['_showLicenseError']('trialLimit'),'uploadcareLicenseKeyUsageLimit'==_0x48659f&&_0x12b686['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0xeabdd2}=this,_0xeb4009=_0xeabdd2['commands']['get']('uploadcare');if(!_0xeb4009)return;const _0x4086b9=this['_normalizeConfigSourceList'](_0xeabdd2['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x4a6f42,_0x5034ab)=>{const _0x731afe=this['_getIntegrationKey'](_0x5034ab['type']);return _0x4a6f42[_0x731afe]||(_0x4a6f42[_0x731afe]=[]),_0x4a6f42[_0x731afe]['push'](_0x5034ab),_0x4a6f42;},{});_0xeabdd2['plugins']['has']('ImageInsertUI')&&_0xeabdd2['commands']['get']('uploadcare')&&Object['entries'](_0x4086b9)['forEach'](([_0x47f5c1,_0x24e5a9])=>{_0xeabdd2['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x47f5c1,'observable':()=>_0xeb4009,'buttonViewCreator':()=>this['_createToolbarButton'](_0x24e5a9),'formViewCreator':()=>this['_createDropdownButtons'](_0x24e5a9),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x24e5a9),'override':'assetManager'!==_0x47f5c1});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x43d232){const {locale:_0x264026}=this['editor'];return _0x43d232['map'](_0x1a9700=>{const _0x361fff=_(_0x264026,_0x1a9700,'Insert');switch(_0x1a9700){case i['Local']:return{'icon':_0x24b477,'type':i['Local'],..._0x361fff};case i['URL']:return{'icon':_0x2af3a1,'type':i['URL'],..._0x361fff};case i['Dropbox']:return{'icon':_0x54af93,'type':i['Dropbox'],..._0x361fff};case i['Facebook']:return{'icon':_0x95ae7b,'type':i['Facebook'],..._0x361fff};case i['GDrive']:return{'icon':_0x4dab0,'type':i['GDrive'],..._0x361fff};case i['GPhotos']:return{'icon':_0x286a4b,'type':i['GPhotos'],..._0x361fff};case i['OneDrive']:return{'icon':_0x461cd9,'type':i['OneDrive'],..._0x361fff};}});}['_getIntegrationKey'](_0x344d30){switch(_0x344d30){case i['Local']:return'upload';case i['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x46ce00,_0x5df03d){const _0x5e4030=this['editor'],_0x4e6f93=new _0x46ce00(_0x5e4030['locale']),_0x3225bf=_0x5e4030['commands']['get']('uploadcare');return _0x4e6f93['bind']('isEnabled')['to'](_0x3225bf),_0x4e6f93['on']('execute',()=>{_0x3225bf['execute'](_0x5df03d);}),_0x4e6f93;}['_createToolbarButton'](_0x2997ee){const {locale:_0x3ffdd2}=this['editor'],_0x18dbe3=this['editor']['plugins']['get']('ImageInsertUI'),_0x15496c=_0x2997ee[0x0],_0x2a96be=this['_createButton'](_0x166585,_0x15496c['type']);return _0x2a96be['icon']=_0x15496c['icon'],_0x2a96be['bind']('label')['to'](_0x18dbe3,'isImageSelected',_0x3a7ba7=>_(_0x3ffdd2,_0x15496c['type'],_0x3a7ba7?'Replace':'Insert')['text']),_0x2a96be['tooltip']=!0x0,_0x2a96be;}['_createDropdownButtons'](_0x59843b){const {locale:_0x36ad6b}=this['editor'],_0x3a5f34=this['editor']['plugins']['get']('ImageInsertUI');return _0x59843b['map'](_0x2e7287=>{const _0x47bd01=this['_createButton'](_0x166585,_0x2e7287['type']);return _0x47bd01['withText']=!0x0,_0x47bd01['icon']=_0x2e7287['icon'],_0x47bd01['bind']('label')['to'](_0x3a5f34,'isImageSelected',_0x3db811=>_(_0x36ad6b,_0x2e7287['type'],_0x3db811?'Replace':'Insert')['text']),_0x47bd01;});}['_createMenuBarButtons'](_0x5e8d78){return _0x5e8d78['map'](_0x5caeb5=>{const _0x32ebcc=this['_createButton'](_0x1ad5fb,_0x5caeb5['type']);return _0x32ebcc['icon']=_0x5caeb5['icon'],_0x32ebcc['label']=_0x5caeb5['shortText'],_0x32ebcc;});}}class F extends _0x168403{['focusTracker'];['focusCycler'];constructor(_0x2e592e){super(_0x2e592e),this['focusTracker']=new _0x58f0e2(),this['focusCycler']=new _0x25b54f({'focusables':this['createCollection'](),'focusTracker':this['focusTracker']});}['getFocusableElement'](){return{'tag':'div','attributes':{'aria-hidden':'true','tabindex':'0'},'on':{'focus':this['bindTemplate']['to'](()=>{this['focusCycler']['fire']('forwardCycle');})}};}}class x extends F{constructor(_0x26f942,_0x31008a){super(_0x26f942),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-'+_0x31008a}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}}function C(_0x375325,_0x1a7063){const _0x23572d=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x36f375=>_0x36f375<=_0x1a7063)['map'](_0x586b2f=>_0x375325['replace'](/\/$/,'')+'/-/resize/'+_0x586b2f+'x/\x20'+_0x586b2f+'w');return{'imageFallbackUrl':_0x375325,'imageSources':[{'srcset':_0x23572d['join'](',\x20'),'sizes':'(max-width:\x20'+_0x1a7063+'px)\x20100vw,\x20'+_0x1a7063+'px','type':'image/webp'}]};}function S(_0x269143,_0x1bcd55,_0xb7451b){const _0x3e5b13=_0x269143['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x3e5b13?parseInt(_0x3e5b13[0x1],0xa):_0x1bcd55,'height':_0x3e5b13?parseInt(_0x3e5b13[0x2],0xa):_0xb7451b};}function p(_0x4208ca,_0x5e8eeb){const _0x382053=new(_0x323d1a())(),_0x3952c0=_0x4208ca['plugins']['get']('ImageUtils'),_0x348318=_0x4208ca['editing']['mapper']['toViewElement'](_0x5e8eeb),_0x3c2045=_0x3952c0['findViewImgElement'](_0x348318),_0x58881f=_0x4208ca['editing']['view']['domConverter']['viewToDom'](_0x3c2045),_0x508375=_0x5e8eeb['getAttribute']('width'),_0x308ffa=_0x5e8eeb['getAttribute']('height'),_0x235f1b='image-processing';_0x4208ca['editing']['view']['change'](_0x38536a=>{_0x38536a['addClass'](_0x235f1b,_0x348318),_0x38536a['setStyle']('aspect-ratio',_0x508375+'/'+_0x308ffa,_0x3c2045);}),_0x382053['listenTo'](_0x58881f,'load',()=>{_0x382053['stopListening'](_0x58881f,'load'),_0x4208ca['editing']['view']['change'](_0x27f22f=>{_0x27f22f['removeClass'](_0x235f1b,_0x348318),_0x27f22f['removeStyle']('aspect-ratio',_0x3c2045);});});}function G(_0x313861){if(Array['isArray'](_0x313861)){const _0x4c8148=_0x313861['map'](G);return _0x47e8ec=>_0x4c8148['some'](_0x54e8ac=>_0x54e8ac(_0x47e8ec));}if('origin'==_0x313861){const _0x512d0e=_0x1424b6['window']['location']['origin'];return _0x43c0dc=>new URL(_0x43c0dc,_0x1424b6['document']['baseURI'])['origin']==_0x512d0e;}return'function'==typeof _0x313861?_0x313861:_0x313861 instanceof RegExp?_0x9c4f3d=>!(!_0x9c4f3d['match'](_0x313861)&&!_0x9c4f3d['replace'](/^https?:\/\//,'')['match'](_0x313861)):()=>!0x1;}function A(_0x11f9e6,_0x1f006d){return _0x54da65(_0x11f9e6['target'])['includes'](_0x1f006d);}class n extends/* #__PURE__ -- @preserve */
|
|
24
|
-
_0xf74261(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x15262d,_0x3467f9,_0x266d00){super(),this['_editor']=_0x15262d,this['_editing']=_0x3467f9,this['_dialog']=_0x15262d['plugins']['get'](_0x289807),this['_api']=_0x3467f9['ctxElement']['getAPI'](),this['_type']=_0x266d00,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:_0x3a4b4e,model:_0x41e4aa}=this['_editor'],_0x281e98=_0x41e4aa['document']['selection']['getSelectedElement'](),_0x170376=_0x281e98&&(_0x281e98['is']('element','imageBlock')||_0x281e98['is']('element','imageInline'));this['_formView']=new x(_0x3a4b4e,this['_editing']['ucContextId']),this['_dialog']['show']({'id':'uploadCare','icon':_0x24b477,'title':_(_0x3a4b4e,this['_type'],_0x170376?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x59eb6a['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x305195=>!A(_0x305195,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x4e1b4}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x4ebecf=>{const _0x46b56c=_0x4e1b4['length'];for(const _0x412b8f of _0x4e1b4){const _0x14eac4=_0x412b8f===_0x4e1b4[_0x46b56c-0x1],{cdnUrl:_0x39c697,fileInfo:_0x4ecd3a}=_0x412b8f;if(!_0x39c697||!_0x4ecd3a)continue;const {width:_0x41c240,height:_0x1902e3}=_0x4ecd3a['imageInfo'],_0xd088cb=S(_0x39c697,_0x41c240,_0x1902e3),_0x20d364=C(_0x39c697,_0xd088cb['width']),_0x59eb5c={'id':_0x4ecd3a['uuid'],'type':'image','attributes':{'imageDimension':_0xd088cb,..._0x20d364}};this['_insertAsset'](_0x59eb5c,_0x14eac4,_0x4ebecf);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x15507e=>{'idle'===_0x15507e['detail']['status']&&!_0x15507e['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===i['Local']?this['_api']['setCurrentActivity'](i['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x458b13,_0x52def5,_0x4de6da){const _0x3b980e=this['_editor']['model']['document']['selection'],_0xb4d778=_0x3b980e['getSelectedElement'](),_0x3b2752=!(!_0xb4d778||!_0xb4d778['is']('element','imageInline'));_0x4de6da['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x458b13,_0x3b2752),_0x52def5||_0x4de6da['setSelection'](_0x3b980e['getLastPosition']());}['_insertImage'](_0x1063a6,_0x207ffc){const _0x5851d4=this['_editor'],{imageDimension:_0x1cf5e6,imageFallbackUrl:_0x4b886a,imageSources:_0x5c1c6}=_0x1063a6['attributes'];_0x5851d4['execute']('insertImage',{'imageType':_0x207ffc?'imageInline':null,'source':{'uploadcareImageId':_0x1063a6['id'],'src':_0x4b886a,'sources':_0x5c1c6,..._0x1cf5e6}});}}class w extends _0x252380{['_editing'];['_controller']=null;static get['requires'](){return[_0x289807,o];}constructor(_0x5b2e6a){super(_0x5b2e6a),this['_editing']=_0x5b2e6a['plugins']['get'](o);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x25d175){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new n(this['editor'],this['_editing'],_0x25d175);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class j{static['upload']({file:_0x5ba274,..._0x113e8c}){return _0x48d7e6(_0x5ba274,_0x113e8c);}static['getInfo'](_0x332ca1,_0x532ba0){return _0x3c3b62(_0x332ca1,_0x532ba0);}}class f extends _0x20fef7{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x138367,o];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x11708c=this['editor'];if(!!!_0x11708c['config']['get']('uploadcare'))return;_0x11708c['plugins']['get'](_0x138367)['createUploadAdapter']=_0x4649c9=>new k(_0x4649c9,_0x11708c),_0x11708c['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x1dca1d,{imageElement:_0x2ccee3,data:_0x50d893})=>{_0x11708c['model']['change'](_0x3165f6=>{_0x3165f6['setAttribute']('uploadcareImageId',_0x50d893['uploadcareImageId'],_0x2ccee3);});});}}class k{['loader'];['editor'];['controller'];constructor(_0x4f318a,_0x1d6897){this['loader']=_0x4f318a,this['editor']=_0x1d6897,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0xb7e544=await this['loader']['file'];return j['upload']({'file':_0xb7e544,'publicKey':this['editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['editor']['config']['get']('uploadcare.uploader.baseUrl'),'baseCDN':this['editor']['config']['get']('uploadcare.uploader.cdnCname'),'signal':this['controller']['signal'],'onProgress':_0x1e1e3d=>{_0x1e1e3d&&_0x1e1e3d['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x1e1e3d['value']);}})['then'](async _0x373240=>{const {imageFallbackUrl:_0x221614,imageSources:_0xcf459}=C(_0x373240['cdnUrl'],_0x373240['imageInfo']['width']);return{'uploadcareImageId':_0x373240['uuid'],'default':_0x221614,'sources':_0xcf459};})['catch'](()=>{const _0x4893db=t('Cannot\x20upload\x20file:')+('\x20'+_0xb7e544['name']+'.');return Promise['reject'](_0x4893db);});}['abort'](){this['controller']['abort']();}}class o extends _0x20fef7{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',f,_0x289807];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['ucContextId'];get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}constructor(_0x4606bf){super(_0x4606bf),this['ucContextId']=_0x484902();}['init'](){const _0x55d78b=this['editor'];_0x55d78b['commands']['add']('uploadcare',new w(_0x55d78b));}['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 _0x29602d=_0x1424b6['document']['querySelector']('input[uploadcare-file-input]');_0x29602d&&_0x29602d['remove']();}),async function(_0x4cccb1){const _0x361c58=_0x24e524([0x68,0x67,0x50,0x36,0x38,0x70,0x71,0x63,0x37,0x4f,0x42,0x4a,0x78,0x39,0x75,0x33,0x7a,0x72,0x48,0x61,0x74,0x59,0x55,0x58,0x66,0x30,0x34,0x54,0x64,0x56,0x6b,0x4d,0x46,0x6d,0x77,0x43,0x73,0x35,0x53,0x44,0x41,0x76,0x6a,0x32,0x31,0x69,0x57,0x51,0x47,0x65,0x5a,0x4b,0x4c,0x79,0x52,0x6c,0x45,0x4e,0x6e,0x6f,0x49,0x62]),_0x48843c=0x535f8c3a,_0x2604e1=0x5358f642^_0x48843c,_0x132163=window[_0x24e524([0x44,0x61,0x74,0x65])][_0x24e524([0x6e,0x6f,0x77])](),_0x9fba3c=_0x4cccb1[_0x24e524([0x65,0x64,0x69,0x74,0x6f,0x72])],_0xc8ed69=new window[(_0x24e524([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x513c40=>{_0x9fba3c[_0x24e524([0x6f,0x6e,0x63,0x65])](_0x24e524([0x72,0x65,0x61,0x64,0x79]),_0x513c40);}),_0x5d1f90={[_0x24e524([0x6b,0x74,0x79])]:_0x24e524([0x45,0x43]),[_0x24e524([0x75,0x73,0x65])]:_0x24e524([0x73,0x69,0x67]),[_0x24e524([0x63,0x72,0x76])]:_0x24e524([0x50,0x2d,0x32,0x35,0x36]),[_0x24e524([0x78])]:_0x24e524([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]),[_0x24e524([0x79])]:_0x24e524([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]),[_0x24e524([0x61,0x6c,0x67])]:_0x24e524([0x45,0x53,0x32,0x35,0x36])},_0x2c3993=_0x9fba3c[_0x24e524([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x24e524([0x67,0x65,0x74])](_0x24e524([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x561ba0(){let _0x485a39,_0x54df64=null,_0x90be0=null;try{if(_0x2c3993==_0x24e524([0x47,0x50,0x4c]))return _0x24e524([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x485a39=_0x423a8c(),!_0x485a39)return _0x24e524([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x485a39[_0x24e524([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x90be0=_0x486ad7(_0x485a39[_0x24e524([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x485a39[_0x24e524([0x6a,0x74,0x69])])),await _0x4d5f69()?_0x2269ed()?_0x50f8bb()?_0x24e524([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x394d81()?(_0x485a39[_0x24e524([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x24e524([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x54df64=_0x19e8eb(_0x24e524([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x485a39[_0x24e524([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x24e524([0x74,0x72,0x69,0x61,0x6c])&&(_0x54df64=_0x19e8eb(_0x24e524([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x1f2a13()):_0x24e524([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x24e524([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x24e524([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x24e524([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x50f8bb(){const _0x49b66a=[_0x24e524([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x24e524([0x74,0x72,0x69,0x61,0x6c])][_0x24e524([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x485a39[_0x24e524([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x132163/0x3e8:0xe10*_0x2604e1;return _0x485a39[_0x24e524([0x65,0x78,0x70])]<_0x49b66a;}function _0x2269ed(){const _0x4c610=_0x485a39[_0x24e524([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x4c610&&(!!_0x4c610[_0x24e524([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x24e524([0x2a]))||!!_0x4c610[_0x24e524([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x24e524([0x55,0x50,0x4c,0x43])));}function _0x394d81(){const _0x361d3e=_0x485a39[_0x24e524([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x361d3e||0x0==_0x361d3e[_0x24e524([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x5034c6}=new URL(window[_0x24e524([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x361d3e[_0x24e524([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5034c6))return!0x0;const _0x46464b=_0x5034c6[_0x24e524([0x73,0x70,0x6c,0x69,0x74])](_0x24e524([0x2e]));return _0x361d3e[_0x24e524([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x41a904=>_0x41a904[_0x24e524([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x24e524([0x2a])))[_0x24e524([0x6d,0x61,0x70])](_0x4d9b74=>_0x4d9b74[_0x24e524([0x73,0x70,0x6c,0x69,0x74])](_0x24e524([0x2e])))[_0x24e524([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x188e1c=>_0x188e1c[_0x24e524([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x46464b[_0x24e524([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x24e524([0x6d,0x61,0x70])](_0x6b6f4f=>Array(_0x46464b[_0x24e524([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x6b6f4f[_0x24e524([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x24e524([0x66,0x69,0x6c,0x6c])](_0x6b6f4f[0x0]===_0x24e524([0x2a])?_0x24e524([0x2a]):'')[_0x24e524([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x6b6f4f))[_0x24e524([0x73,0x6f,0x6d,0x65])](_0x4b9f59=>_0x46464b[_0x24e524([0x65,0x76,0x65,0x72,0x79])]((_0x59ba85,_0x319302)=>_0x4b9f59[_0x319302]===_0x59ba85||_0x4b9f59[_0x319302]===_0x24e524([0x2a])));}function _0x1f2a13(){return _0x54df64&&_0x90be0?new window[(_0x24e524([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x542b57,_0x2cff7d)=>{_0x54df64[_0x24e524([0x74,0x68,0x65,0x6e])](_0x542b57,_0x2cff7d),_0x90be0[_0x24e524([0x74,0x68,0x65,0x6e])](_0x35e7e0=>{_0x35e7e0!=_0x24e524([0x56,0x61,0x6c,0x69,0x64])&&_0x542b57(_0x35e7e0);},_0x2cff7d);}):_0x54df64||_0x90be0||_0x24e524([0x56,0x61,0x6c,0x69,0x64]);}}function _0x486ad7(_0x3fee39,_0x35692f){return new window[(_0x24e524([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xef874d=>{if(_0x313c53())return _0xef874d(_0x24e524([0x56,0x61,0x6c,0x69,0x64]));_0x2df828(),_0x9fba3c[_0x24e524([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x24e524([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x230e55=!0x1;const _0x31bdbb=_0x484902();function _0x116db3(_0x35994a){return!!_0x35994a&&(typeof _0x35994a===_0x24e524([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x35994a===_0x24e524([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x35994a[_0x24e524([0x74,0x68,0x65,0x6e])]===_0x24e524([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x35994a[_0x24e524([0x63,0x61,0x74,0x63,0x68])]===_0x24e524([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x59c99f(_0x15ad18){_0x1df03a(_0x15ad18)[_0x24e524([0x74,0x68,0x65,0x6e])](_0x4030fd=>{if(!_0x4030fd||_0x4030fd[_0x24e524([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x24e524([0x6f,0x6b]))return _0x24e524([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x4fa581(_0x45cefa(_0x31bdbb+_0x35692f))!=_0x4030fd[_0x24e524([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x24e524([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x24e524([0x56,0x61,0x6c,0x69,0x64]);})[_0x24e524([0x74,0x68,0x65,0x6e])](_0x5347e0=>(_0x2107a6(),_0x5347e0),()=>{const _0x184c4b=_0x393939();return null==_0x184c4b?(_0x2107a6(),_0x24e524([0x56,0x61,0x6c,0x69,0x64])):_0x24e524(_0x132163-_0x184c4b>(0x7753083a^_0x48843c)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x24e524([0x74,0x68,0x65,0x6e])](_0xef874d)[_0x24e524([0x63,0x61,0x74,0x63,0x68])](()=>{_0xef874d(_0x24e524([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x41936a=0x536962ba^_0x48843c;function _0x2107a6(){const _0x219bd1=_0x24e524([0x6c,0x6c,0x63,0x74,0x2d])+_0x4fa581(_0x45cefa(_0x3fee39)),_0x327a40=_0x9a9943(_0x4fa581(window[_0x24e524([0x4d,0x61,0x74,0x68])][_0x24e524([0x63,0x65,0x69,0x6c])](_0x132163/_0x41936a)));window[_0x24e524([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x24e524([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x219bd1,_0x327a40);}function _0x393939(){const _0x3cda99=_0x24e524([0x6c,0x6c,0x63,0x74,0x2d])+_0x4fa581(_0x45cefa(_0x3fee39)),_0x25fd87=window[_0x24e524([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x24e524([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3cda99);return _0x25fd87?window[_0x24e524([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x9a9943(_0x25fd87),0x10)*_0x41936a:null;}function _0x1df03a(_0x215ab3){return new window[(_0x24e524([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x10aff5,_0x115147)=>{_0x215ab3[_0x24e524([0x74,0x68,0x65,0x6e])](_0x10aff5,_0x115147),window[_0x24e524([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x115147,0x535e58fa^_0x48843c);});}}_0x9fba3c[_0x24e524([0x6f,0x6e])](_0x24e524([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0xee59fe,_0x13b26f)=>{if(_0x13b26f[0x0]!=_0x3fee39)return _0xef874d(_0x24e524([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x13b26f[0x1]={..._0x13b26f[0x1],[_0x24e524([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x31bdbb};},{[_0x24e524([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x24e524([0x68,0x69,0x67,0x68])}),_0x9fba3c[_0x24e524([0x6f,0x6e])](_0x24e524([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x122a53=>{_0x116db3(_0x122a53[_0x24e524([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x230e55=!0x0,_0x59c99f(_0x122a53[_0x24e524([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x24e524([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x24e524([0x6c,0x6f,0x77])}),_0xc8ed69[_0x24e524([0x74,0x68,0x65,0x6e])](()=>{_0x230e55||_0xef874d(_0x24e524([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x313c53(){return _0x9fba3c[_0x24e524([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x24e524([0x76,0x69,0x65,0x77])][_0x24e524([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x24e524([0x61,0x75,0x74,0x6f]);}function _0x2df828(){_0x9fba3c[_0x24e524([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x24e524([0x76,0x69,0x65,0x77])][_0x24e524([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x24e524([0x61,0x75,0x74,0x6f]);}}function _0x19e8eb(_0x4532df){const _0x2b863c=[new window[(_0x24e524([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3f9d07=>setTimeout(_0x3f9d07,0x5356b2f6^_0x48843c)),_0xc8ed69[_0x24e524([0x74,0x68,0x65,0x6e])](()=>new window[(_0x24e524([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2a1160=>{let _0x5a084c=0x0;_0x9fba3c[_0x24e524([0x6d,0x6f,0x64,0x65,0x6c])][_0x24e524([0x6f,0x6e])](_0x24e524([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x3411fc,_0x364280)=>{_0x364280[0x0][_0x24e524([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x5a084c++,_0x5a084c==(0x535f8dc2^_0x48843c)&&(_0x2a1160(),_0x3411fc[_0x24e524([0x6f,0x66,0x66])]());});}))];return window[_0x24e524([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x24e524([0x72,0x61,0x63,0x65])](_0x2b863c)[_0x24e524([0x74,0x68,0x65,0x6e])](()=>_0x4532df);}async function _0x1e796e(){await _0xc8ed69,_0x9fba3c[_0x24e524([0x6d,0x6f,0x64,0x65,0x6c])][_0x24e524([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x45848c,_0x9fba3c[_0x24e524([0x6d,0x6f,0x64,0x65,0x6c])][_0x24e524([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x45848c,_0x9fba3c[_0x24e524([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x24e524([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x1c70df(_0x3ed093){const _0x3c6567=_0x49e090();_0x9fba3c[_0x3c6567]=_0x24e524([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x3ed093,_0x3ed093!=_0x24e524([0x56,0x61,0x6c,0x69,0x64])&&_0x1e796e();}function _0x49e090(){const _0x3f1692=window[_0x24e524([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x24e524([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x24e524([0x6e,0x6f,0x77])]())[_0x24e524([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x24e524([0x2e]),'');let _0x226695=_0x24e524([0x68]);for(let _0xc985cf=0x0;_0xc985cf<_0x3f1692[_0x24e524([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0xc985cf+=0x2){let _0x5097d8=window[_0x24e524([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3f1692[_0x24e524([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0xc985cf,_0xc985cf+0x2));_0x5097d8>=_0x361c58[_0x24e524([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x5097d8-=_0x361c58[_0x24e524([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x226695+=_0x361c58[_0x5097d8];}return _0x226695;}function _0x423a8c(){const _0x4854fd=_0x2c3993[_0x24e524([0x73,0x70,0x6c,0x69,0x74])](_0x24e524([0x2e]));if(0x3!=_0x4854fd[_0x24e524([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x555d87(_0x4854fd[0x1]);function _0x555d87(_0x5a9141){const _0x5ad944=_0x2298fe(_0x5a9141);return _0x5ad944&&_0x55a1af()?_0x5ad944:null;function _0x55a1af(){const _0x487332=_0x5ad944[_0x24e524([0x6a,0x74,0x69])],_0x3759cd=window[_0x24e524([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x487332[_0x24e524([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x487332[_0x24e524([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x225164={..._0x5ad944,[_0x24e524([0x6a,0x74,0x69])]:_0x487332[_0x24e524([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x487332[_0x24e524([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x225164[_0x24e524([0x76,0x63])],_0x45cefa(_0x225164)==_0x3759cd;}}}async function _0x4d5f69(){let _0x2d7b28=!0x0;try{const _0x283103=_0x2c3993[_0x24e524([0x73,0x70,0x6c,0x69,0x74])](_0x24e524([0x2e])),[_0x1d7081,_0x32818a,_0x80ba7e]=_0x283103;return _0x2cc9ae(_0x1d7081),await _0x338e68(_0x1d7081,_0x32818a,_0x80ba7e),_0x2d7b28;}catch{return!0x1;}function _0x2cc9ae(_0x6ce263){const _0x5c7e85=_0x2298fe(_0x6ce263);_0x5c7e85&&_0x5c7e85[_0x24e524([0x61,0x6c,0x67])]==_0x24e524([0x45,0x53,0x32,0x35,0x36])||(_0x2d7b28=!0x1);}async function _0x338e68(_0x117dc4,_0x750941,_0x2fed33){const _0x4e472a=window[_0x24e524([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x24e524([0x66,0x72,0x6f,0x6d])](_0x2836bb(_0x2fed33),_0x2bd57f=>_0x2bd57f[_0x24e524([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x197643=new window[(_0x24e524([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x24e524([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x117dc4+_0x24e524([0x2e])+_0x750941),_0x1d4822=window[_0x24e524([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x24e524([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x1d4822)return;const _0x587456=await _0x1d4822[_0x24e524([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x24e524([0x6a,0x77,0x6b]),_0x5d1f90,{[_0x24e524([0x6e,0x61,0x6d,0x65])]:_0x24e524([0x45,0x43,0x44,0x53,0x41]),[_0x24e524([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x24e524([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x24e524([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x1d4822[_0x24e524([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x24e524([0x6e,0x61,0x6d,0x65])]:_0x24e524([0x45,0x43,0x44,0x53,0x41]),[_0x24e524([0x68,0x61,0x73,0x68])]:{[_0x24e524([0x6e,0x61,0x6d,0x65])]:_0x24e524([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x587456,_0x4e472a,_0x197643)||(_0x2d7b28=!0x1);}}function _0x2298fe(_0x53a80f){return _0x53a80f[_0x24e524([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x24e524([0x65,0x79]))?JSON[_0x24e524([0x70,0x61,0x72,0x73,0x65])](_0x2836bb(_0x53a80f)):null;}function _0x2836bb(_0x52ff34){return window[_0x24e524([0x61,0x74,0x6f,0x62])](_0x52ff34[_0x24e524([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x24e524([0x2b]))[_0x24e524([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x24e524([0x2f])));}function _0x45cefa(_0x14b4c1){let _0x36617a=0x1505;function _0x47aad9(_0x51bb68){for(let _0x5229d7=0x0;_0x5229d7<_0x51bb68[_0x24e524([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x5229d7++){const _0x2f0394=_0x51bb68[_0x24e524([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x5229d7);_0x36617a=(_0x36617a<<0x5)+_0x36617a+_0x2f0394,_0x36617a&=_0x36617a;}}function _0x20fb95(_0x145319){Array[_0x24e524([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x145319)?_0x145319[_0x24e524([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x20fb95):_0x145319&&typeof _0x145319==_0x24e524([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x24e524([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x145319)[_0x24e524([0x73,0x6f,0x72,0x74])]()[_0x24e524([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x15f71e,_0x1cc195])=>{_0x47aad9(_0x15f71e),_0x20fb95(_0x1cc195);}):_0x47aad9(window[_0x24e524([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x145319));}return _0x20fb95(_0x14b4c1),_0x36617a>>>0x0;}function _0x4fa581(_0x1cf23f){return _0x1cf23f[_0x24e524([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x24e524([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x24e524([0x30]));}function _0x9a9943(_0x3a9144){return _0x3a9144[_0x24e524([0x73,0x70,0x6c,0x69,0x74])]('')[_0x24e524([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x24e524([0x6a,0x6f,0x69,0x6e])]('');}function _0x45848c(){}function _0x24e524(_0x1429f1){return _0x1429f1['map'](_0x339c63=>String['fromCharCode'](_0x339c63))['join']('');}_0x1c70df(await _0x561ba0());}(this);}['_initSchema'](){const _0x11571c=this['editor']['model']['schema'];_0x11571c['isRegistered']('imageBlock')&&_0x11571c['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x11571c['isRegistered']('imageInline')&&_0x11571c['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x5b5be0=this['editor'];_0x5b5be0['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x5b5be0['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x1a44a9=>_0x1a44a9['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x120d57=_0x5b5be0['commands']['get']('replaceImageSource');_0x120d57&&this['listenTo'](_0x120d57,'cleanupImage',(_0x3e9b85,[_0x2d1838,_0x171460])=>{_0x2d1838['removeAttribute']('uploadcareImageId',_0x171460);});}['_initConfig'](){const _0x5abc1c=this['editor']['config']['get']('uploadcare.uploader')||{},_0x2d7649=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x62c1a3(_0x1424b6['document'],'uc-config',{..._0x5abc1c,'pubkey':_0x2d7649,'ctx-name':'uploader-'+this['ucContextId'],'sourceList':'','imgOnly':'true','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage'],'externalSourcesEmbedCss':'\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup\x20{\x20padding:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-menu\x20{\x20gap:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-footer\x20{\x20padding-top:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__separator\x20{\x20margin:\x200;\x20}\x0a\x09\x09\x09'}),this['_configElement']['iconHrefResolver']=_0x4b4e9e=>{if('closeMax'==_0x4b4e9e)return'#uc-icon-arrow-down';},_0x1424b6['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x62c1a3(_0x1424b6['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader-'+this['ucContextId']}),_0x1424b6['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x2ab3e4=this['editor']['commands']['get']('insertImage');_0x2ab3e4&&this['listenTo'](_0x2ab3e4,'execute',()=>{const _0x59ec4e=this['editor']['model']['document']['selection']['getSelectedElement']();_0x59ec4e&&_0x59ec4e['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x59ec4e);});});const _0x346fa2=this['editor']['commands']['get']('uploadcareImageReplace');_0x346fa2&&this['listenTo'](_0x346fa2,'execute',()=>{const _0x14512f=this['editor']['model']['document']['selection']['getSelectedElement']();_0x14512f&&_0x14512f['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x14512f);});});}}class tt extends _0x20fef7{static get['requires'](){return[o,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x49aa97){super(_0x49aa97),_0x49aa97['config']['define']('uploadcare.uploader.sourceList',[i['Local'],i['URL']]),_0x4fc6b['defineComponents'](_0x4fc6b),this['_defineLocale']();}['_defineLocale'](){const _0x1a9c32=this['editor']['config']['get']('uploadcare.locale'),_0x81a527=this['editor']['locale']['contentLanguage'];_0x1a9c32&&_0x4fc6b['defineLocale'](_0x81a527,_0x1a9c32);}}class ii extends _0x168403{constructor(_0x2d46f0){super(_0x2d46f0);const t=_0x2d46f0['t'],_0x2c3b75=this['bindTemplate'],_0x20a3ba=new _0x1fdc1f();_0x20a3ba['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':[_0x20a3ba,{'text':_0x2c3b75['to']('imageUploadProgress',_0x5824b3=>t('Loading\x20image...')+'\x20('+(_0x5824b3||0x0)+'%)')}]},{'tag':'div','attributes':{'class':['ck-uploadcare-form__skeleton']},'children':[{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'}]},{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'}]}]}]});}}class ti extends _0x168403{constructor(_0x304fa3){super(_0x304fa3);const t=_0x304fa3['t'];this['set']('errorType',null);const _0x252c13=new _0x166585(_0x304fa3);_0x252c13['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x252c13['withText']=!0x0,_0x252c13['class']='ck-button-action',_0x252c13['on']('execute',()=>{this['fire']('retry');}),_0x252c13['bind']('isVisible')['to'](this,'errorType',_0x702a53=>'NotFound'!==_0x702a53);const _0xed99a1=new _0x1d7b20();_0xed99a1['content']=_0x71f2d3,_0xed99a1['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x33cc6e=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':[_0xed99a1,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x33cc6e['to']('errorType',_0x42b742=>t('NotFound'!==_0x42b742?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x252c13]},{'tag':'div','attributes':{'class':['ck-uploadcare-form__skeleton']},'children':[{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'}]},{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'}]}]}]});}}class ei extends _0x168403{constructor(_0x27a73c,_0x535a49){super(_0x27a73c);const _0x2bd2d6=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x535a49,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x2bd2d6['to']('imageSrc')}});}}class X extends F{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0xc7d875,_0x7d6f24,_0x10b0b4){super(_0xc7d875),this['_items']=this['createCollection'](),this['_loadingView']=new ii(_0xc7d875),this['_errorView']=new ti(_0xc7d875),this['_editingView']=new ei(_0xc7d875,_0x10b0b4),this['_focusableView']=new _0x168403(_0xc7d875),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x7d6f24),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'],_0x5c38ff=>{this['_addUploadcareImageEditorListeners'](_0x5c38ff);});}),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'](_0x1211bd,_0x517549){const _0x6e155c='uc-cloud-image-editor',_0x13ff2b=_0x1211bd['querySelector'](_0x6e155c);if(_0x13ff2b)return _0x517549(_0x13ff2b);const _0x1a38a7=new MutationObserver(_0x3e1702=>{const _0x2f5ed3=_0x3e1702['filter'](_0x59b0d5=>_0x59b0d5['target']===_0x1211bd&&_0x59b0d5['addedNodes']['length']>0x0&&_0x59b0d5['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x6e155c);_0x2f5ed3['length']&&(_0x1a38a7['disconnect'](),_0x517549(_0x2f5ed3[0x0]['addedNodes'][0x0]));});_0x1a38a7['observe'](_0x1211bd,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x1d1cff){_0x1d1cff['addEventListener']('apply',_0x257d54=>{this['fire']('apply',{'imageSrc':_0x257d54['detail']['cdnUrl']});}),_0x1d1cff['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class E extends/* #__PURE__ -- @preserve */
|
|
25
|
-
_0xf74261(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x5897ba,_0x5a60fe,_0x10d985){super(),this['_editor']=_0x5897ba,this['_dialog']=_0x5a60fe,this['_imageElement']=_0x10d985,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 _0x18b186=this['_imageElement'],_0x44f360=_0x18b186['getAttribute']('uploadcareImageId'),_0x23b0e8=_0x18b186['getAttribute']('src');if(_0x44f360)await this['_loadImageInfo'](_0x44f360,_0x23b0e8);else{if(this['_imageCache']['has'](_0x23b0e8)){const _0x4fe143=this['_imageCache']['get'](_0x23b0e8);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x4fe143['url'],this['imageDimension']=_0x4fe143['dimension'],this['imageId']=_0x4fe143['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x14dcc9}=this['_editor'],t=_0x14dcc9['t'],_0x1eef07=new X(_0x14dcc9,this['imageStatus'],this['_attributes']);_0x1eef07['bind']('status')['to'](this,'imageStatus'),_0x1eef07['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x1eef07['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x1eef07['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x1eef07,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x2e734e,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x1eef07,'position':_0x59eb6a['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x1eef07['focus']();},'onHide':()=>{_0x1eef07['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0xa89741=>!A(_0xa89741,_0x1eef07['element'])}});}['_loadImageInfo'](_0x9e28f1,_0x245ff2){return j['getInfo'](_0x9e28f1,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl')})['then'](_0x497d06=>{const {width:_0x51fd96,height:_0x36a13d}=_0x497d06['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x245ff2,this['imageDimension']={'width':_0x51fd96,'height':_0x36a13d},this['imageId']=_0x9e28f1;})['catch'](_0x19b672=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x19b672['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x2c2316,_0x2fd0eb){return this['_getImageAsFile'](_0x2c2316)['then'](_0x478f52=>j['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl'),'baseCDN':this['_editor']['config']['get']('uploadcare.uploader.cdnCname'),'signal':_0x2fd0eb['signal'],'file':_0x478f52,'onProgress':_0x3069ed=>{_0x3069ed&&_0x3069ed['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x3069ed['value']));}}))['then'](_0x3c9da2=>{const {width:_0x4ee1f6,height:_0x5843d6}=_0x3c9da2['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x3c9da2['cdnUrl'],this['imageDimension']={'width':_0x4ee1f6,'height':_0x5843d6},this['imageId']=_0x3c9da2['uuid'],this['imageUploadProgress']=null;const _0x435906=_0x2c2316['getAttribute']('src');this['_imageCache']['set'](_0x435906,{'id':_0x3c9da2['uuid'],'url':_0x3c9da2['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x60614d=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x60614d['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x3f46db,_0x31feb1){_0x3f46db['on']('apply',(_0x59e79f,_0x7ef0c3)=>{this['_replaceImage'](_0x31feb1,_0x7ef0c3['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x3f46db['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x3f46db['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x5cd1fb,_0x105cae,_0xe7dd7){const _0x41525d=this['_editor'],{width:_0x27a8bb,height:_0x57da16}=S(_0x105cae,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x1e98a9,imageSources:_0x5e0ed6}=C(_0x105cae,_0x27a8bb);_0x41525d['model']['change'](_0x30e597=>{if('$graveyard'===_0x5cd1fb['root']['rootName']){_0x41525d['execute']('insertImage',{'imageType':_0x5cd1fb['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x5cd1fb['getAttributes']()),'uploadcareImageId':_0xe7dd7,'src':_0x1e98a9,'sources':_0x5e0ed6,'width':_0x27a8bb,'height':_0x57da16}});const _0x299f5e=_0x5cd1fb['getChildren']();_0x5cd1fb=_0x41525d['model']['document']['selection']['getSelectedElement']();for(const _0x1e7fb4 of _0x299f5e)_0x30e597['append'](_0x30e597['cloneElement'](_0x1e7fb4),_0x5cd1fb);}else _0x30e597['setSelection'](_0x5cd1fb,'on'),_0x41525d['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x5cd1fb['getAttributes']()),'uploadcareImageId':_0xe7dd7,'src':_0x1e98a9,'sources':_0x5e0ed6,'width':_0x27a8bb,'height':_0x57da16},_0x5cd1fb);_0x30e597['setSelection'](_0x5cd1fb,'on');});}async['_getImageAsFile'](_0x2bd24e){const _0x3a78c5=_0x1424b6['window'],_0x3b5954=_0x1424b6['document']['location']['href'],_0x16ba76=new _0x3a78c5['URL'](_0x2bd24e['getAttribute']('src'),_0x3b5954);if('data:'===_0x16ba76['protocol']){const _0x449fd2=_0x16ba76['href']['split'](','),_0x300d91=_0x449fd2[0x0]['match'](/:(.*?);/)[0x1],_0x4f651e=_0x300d91['split']('/')[0x1],_0x4656f5=_0x3a78c5['atob'](_0x449fd2[_0x449fd2['length']-0x1]);let _0x4ec83a=_0x4656f5['length'];const _0x178984=new _0x3a78c5['Uint8Array'](_0x4ec83a);for(;_0x4ec83a--;)_0x178984[_0x4ec83a]=_0x4656f5['charCodeAt'](_0x4ec83a);return new _0x3a78c5['File']([_0x178984],'image.'+_0x4f651e,{'type':_0x300d91});}const _0x11eb0c=_0x16ba76['href']['split']('/'),_0x137f2d=_0x11eb0c[_0x11eb0c['length']-0x1],_0x5ba4cc=_0x137f2d['split']('.')[0x1];return _0x3a78c5['fetch'](_0x16ba76['href'])['then'](_0x58955a=>_0x58955a['clone']()['blob']())['then'](_0x155ca5=>new _0x3a78c5['File']([_0x155ca5],_0x137f2d,{'type':'image/'+_0x5ba4cc}));}}class O extends _0x252380{['imageEditController'];static get['requires'](){return[_0x289807];}['_isEditable'];constructor(_0x3273cc){super(_0x3273cc),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x7f6c44){const _0x41126d=G(_0x7f6c44);return _0x2cdadc=>!(!_0x2cdadc||!_0x2cdadc['is']('element','imageBlock')&&!_0x2cdadc['is']('element','imageInline'))&&(!!_0x2cdadc['hasAttribute']('uploadcareImageId')||!!_0x2cdadc['hasAttribute']('src')&&_0x41126d(_0x2cdadc['getAttribute']('src')));}(_0x3273cc['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x28f834=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x28f834);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x8c2b58=this['editor']['model']['document']['selection']['getSelectedElement']();_0x8c2b58&&(_0x8c2b58['is']('element','imageBlock')||_0x8c2b58['is']('element','imageInline'))&&(this['imageEditController']=new E(this['editor'],this['editor']['plugins']['get'](_0x289807),_0x8c2b58),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class R extends _0x252380{['refresh'](){const _0x214170=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x214170&&(_0x214170['is']('element','imageBlock')||_0x214170['is']('element','imageInline')));}['execute'](_0x32b32c){const _0x563bc5=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x5db41b=>{_0x5db41b['setAttributes'](_0x32b32c,_0x563bc5),_0x5db41b['removeAttribute']('srcset',_0x563bc5),_0x5db41b['removeAttribute']('sizes',_0x563bc5);});}}class m extends _0x20fef7{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[o,_0x2654f3,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x287880}=this;_0x287880['commands']['add']('uploadcareImageEdit',new O(_0x287880)),_0x287880['commands']['add']('uploadcareImageReplace',new R(_0x287880));}}class g extends _0x20fef7{['_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 _0x29ae67=this['editor'];_0x29ae67['ui']['componentFactory']['add']('uploadcareImageEdit',_0x8003a8=>{const _0x52566d=_0x29ae67['commands']['get']('uploadcareImageEdit'),_0x2b7160=new _0x166585(_0x8003a8),t=_0x8003a8['t'];return _0x2b7160['set']({'icon':_0x2e734e,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x2b7160['bind']('isEnabled')['to'](_0x52566d),_0x2b7160['bind']('isOn')['to'](_0x52566d,'isActive'),this['listenTo'](_0x2b7160,'execute',()=>{_0x29ae67['execute']('uploadcareImageEdit'),_0x29ae67['editing']['view']['focus']();}),_0x2b7160;}),this['_initConfig']();}['_initConfig'](){const _0x3dc277=_0x62c1a3(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x3dc277),this['listenTo'](this['editor'],'destroy',()=>{_0x3dc277['remove']();});}}class et extends _0x20fef7{static get['pluginName'](){return'UploadcareImageEdit';}static get['requires'](){return[m,g];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{tt as Uploadcare,w as UploadcareCommand,o as UploadcareEditing,et as UploadcareImageEdit,O as UploadcareImageEditCommand,m as UploadcareImageEditEditing,g as UploadcareImageEditUI,e as UploadcareUI,f as UploadcareUploadAdapter};
|
|
23
|
+
import{Plugin as _0x2f77e5,Command as _0x331d01}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x18cb1f,IconGooglePhotos as _0x17c309,IconGoogleDrive as _0x58c5b5,IconFacebook as _0x52fb6f,IconDropbox as _0x5cad13,IconUploadcareLink as _0xfcb526,IconUploadcareImageUpload as _0x7c2c5f,IconError as _0x475554,IconUploadcareImageEdit as _0x5a249f}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x51a914,MenuBarMenuListItemButtonView as _0xbf69df,View as _0x178ac9,FocusCycler as _0x406826,Dialog as _0x51643a,DialogViewPosition as _0x136fe8,SpinnerView as _0x7b70d3,IconView as _0x5cf7bc,Notification as _0xb0e3c9}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x41bca7,DomEmitterMixin as _0x3c6164,global as _0x49f1eb,getAncestors as _0x4a7880,ObservableMixin as _0x40249e,uid as _0x2a311a,createElement as _0xdce142}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x4c4e66}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x5c8d28,info as _0x4caba5}from'@uploadcare/upload-client';import*as _0x3225ce from'@uploadcare/file-uploader';var i=function(_0x38feb2){return _0x38feb2['Local']='local',_0x38feb2['URL']='url',_0x38feb2['Dropbox']='dropbox',_0x38feb2['GDrive']='gdrive',_0x38feb2['Facebook']='facebook',_0x38feb2['GPhotos']='gphotos',_0x38feb2['OneDrive']='onedrive',_0x38feb2;}({});function _(_0x2206b9,_0x5305dc,_0x1e3dc8){const t=_0x2206b9['t'],_0x26dccb=_0x2206b9['t'];switch(_0x5305dc){case i['Local']:return{'text':_0x26dccb('Insert'===_0x1e3dc8?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x26dccb('From\x20computer')};case i['URL']:return{'text':'Insert'===_0x1e3dc8?_0x26dccb('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x26dccb('Via\x20URL')};case i['Dropbox']:return{'text':t('Insert'===_0x1e3dc8?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case i['Facebook']:return{'text':t('Insert'===_0x1e3dc8?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case i['GDrive']:return{'text':t('Insert'===_0x1e3dc8?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case i['GPhotos']:return{'text':t('Insert'===_0x1e3dc8?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case i['OneDrive']:return{'text':t('Insert'===_0x1e3dc8?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x5305dc;}}class e extends _0x2f77e5{['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 _0x41f67e=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x1988de;for(const _0x22f8f4 in _0x41f67e){const _0x172da5=_0x22f8f4,_0xcc001b=_0x41f67e[_0x172da5];if('uploadcareLicenseKeyValid'==_0xcc001b||'uploadcareLicenseKeyInvalid'==_0xcc001b||'uploadcareLicenseKeyExpired'==_0xcc001b||'uploadcareLicenseKeyDomainLimit'==_0xcc001b||'uploadcareLicenseKeyNotAllowed'==_0xcc001b||'uploadcareLicenseKeyEvaluationLimit'==_0xcc001b||'uploadcareLicenseKeyTrialLimit'==_0xcc001b||'uploadcareLicenseKeyUsageLimit'==_0xcc001b){delete _0x41f67e[_0x172da5],_0x1988de=_0xcc001b,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x1988de&&_0x41f67e['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x1988de&&_0x41f67e['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x1988de&&_0x41f67e['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x1988de&&_0x41f67e['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x1988de&&_0x41f67e['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyTrialLimit'==_0x1988de&&_0x41f67e['_showLicenseError']('trialLimit'),'uploadcareLicenseKeyUsageLimit'==_0x1988de&&_0x41f67e['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x586d68}=this,_0x231f87=_0x586d68['commands']['get']('uploadcare');if(!_0x231f87)return;const _0x36538c=this['_normalizeConfigSourceList'](_0x586d68['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x52cd2d,_0x4930ae)=>{const _0x2730af=this['_getIntegrationKey'](_0x4930ae['type']);return _0x52cd2d[_0x2730af]||(_0x52cd2d[_0x2730af]=[]),_0x52cd2d[_0x2730af]['push'](_0x4930ae),_0x52cd2d;},{});_0x586d68['plugins']['has']('ImageInsertUI')&&_0x586d68['commands']['get']('uploadcare')&&Object['entries'](_0x36538c)['forEach'](([_0x40deb6,_0x2aa5dd])=>{_0x586d68['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x40deb6,'observable':()=>_0x231f87,'buttonViewCreator':()=>this['_createToolbarButton'](_0x2aa5dd),'formViewCreator':()=>this['_createDropdownButtons'](_0x2aa5dd),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x2aa5dd),'override':'assetManager'!==_0x40deb6});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x312e0c){const {locale:_0x1040b9}=this['editor'];return _0x312e0c['map'](_0x494bfe=>{const _0x5800dd=_(_0x1040b9,_0x494bfe,'Insert');switch(_0x494bfe){case i['Local']:return{'icon':_0x7c2c5f,'type':i['Local'],..._0x5800dd};case i['URL']:return{'icon':_0xfcb526,'type':i['URL'],..._0x5800dd};case i['Dropbox']:return{'icon':_0x5cad13,'type':i['Dropbox'],..._0x5800dd};case i['Facebook']:return{'icon':_0x52fb6f,'type':i['Facebook'],..._0x5800dd};case i['GDrive']:return{'icon':_0x58c5b5,'type':i['GDrive'],..._0x5800dd};case i['GPhotos']:return{'icon':_0x17c309,'type':i['GPhotos'],..._0x5800dd};case i['OneDrive']:return{'icon':_0x18cb1f,'type':i['OneDrive'],..._0x5800dd};}});}['_getIntegrationKey'](_0x4319f9){switch(_0x4319f9){case i['Local']:return'upload';case i['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x56435f,_0x5bb91e){const _0x199f41=this['editor'],_0x55a9d5=new _0x56435f(_0x199f41['locale']),_0x397523=_0x199f41['commands']['get']('uploadcare');return _0x55a9d5['bind']('isEnabled')['to'](_0x397523),_0x55a9d5['on']('execute',()=>{_0x397523['execute'](_0x5bb91e);}),_0x55a9d5;}['_createToolbarButton'](_0xdb5798){const {locale:_0x329cf7}=this['editor'],_0x2572a7=this['editor']['plugins']['get']('ImageInsertUI'),_0x3273d3=_0xdb5798[0x0],_0xb57ab2=this['_createButton'](_0x51a914,_0x3273d3['type']);return _0xb57ab2['icon']=_0x3273d3['icon'],_0xb57ab2['bind']('label')['to'](_0x2572a7,'isImageSelected',_0x8d2bfd=>_(_0x329cf7,_0x3273d3['type'],_0x8d2bfd?'Replace':'Insert')['text']),_0xb57ab2['tooltip']=!0x0,_0xb57ab2;}['_createDropdownButtons'](_0x5ea72d){const {locale:_0x28a1e1}=this['editor'],_0x45243f=this['editor']['plugins']['get']('ImageInsertUI');return _0x5ea72d['map'](_0x2e6ef6=>{const _0x4fde38=this['_createButton'](_0x51a914,_0x2e6ef6['type']);return _0x4fde38['withText']=!0x0,_0x4fde38['icon']=_0x2e6ef6['icon'],_0x4fde38['bind']('label')['to'](_0x45243f,'isImageSelected',_0x528154=>_(_0x28a1e1,_0x2e6ef6['type'],_0x528154?'Replace':'Insert')['text']),_0x4fde38;});}['_createMenuBarButtons'](_0x2780b7){return _0x2780b7['map'](_0xe3aa74=>{const _0x269791=this['_createButton'](_0xbf69df,_0xe3aa74['type']);return _0x269791['icon']=_0xe3aa74['icon'],_0x269791['label']=_0xe3aa74['shortText'],_0x269791;});}}class F extends _0x178ac9{['focusTracker'];['focusCycler'];constructor(_0x594852){super(_0x594852),this['focusTracker']=new _0x41bca7(),this['focusCycler']=new _0x406826({'focusables':this['createCollection'](),'focusTracker':this['focusTracker']});}['getFocusableElement'](){return{'tag':'div','attributes':{'aria-hidden':'true','tabindex':'0'},'on':{'focus':this['bindTemplate']['to'](()=>{this['focusCycler']['fire']('forwardCycle');})}};}}class x extends F{constructor(_0x436ec6,_0xf7b62d){super(_0x436ec6),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-'+_0xf7b62d}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}}function C(_0xb2ad8,_0x3d9a8e){const _0x5351e0=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x559fd9=>_0x559fd9<=_0x3d9a8e)['map'](_0x58971c=>_0xb2ad8['replace'](/\/$/,'')+'/-/resize/'+_0x58971c+'x/\x20'+_0x58971c+'w');return{'imageFallbackUrl':_0xb2ad8,'imageSources':[{'srcset':_0x5351e0['join'](',\x20'),'sizes':'(max-width:\x20'+_0x3d9a8e+'px)\x20100vw,\x20'+_0x3d9a8e+'px','type':'image/webp'}]};}function S(_0x46cfc1,_0xe13dc3,_0x2907a9){const _0x347f72=_0x46cfc1['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x347f72?parseInt(_0x347f72[0x1],0xa):_0xe13dc3,'height':_0x347f72?parseInt(_0x347f72[0x2],0xa):_0x2907a9};}function p(_0x1dc4ed,_0xcb9c1e){const _0x5d0234=new(_0x3c6164())(),_0x360aa3=_0x1dc4ed['plugins']['get']('ImageUtils'),_0x170796=_0x1dc4ed['editing']['mapper']['toViewElement'](_0xcb9c1e),_0x52121c=_0x360aa3['findViewImgElement'](_0x170796),_0x1e8dde=_0x1dc4ed['editing']['view']['domConverter']['viewToDom'](_0x52121c),_0x229f02=_0xcb9c1e['getAttribute']('width'),_0x2c42a2=_0xcb9c1e['getAttribute']('height'),_0x59d430='image-processing';_0x1dc4ed['editing']['view']['change'](_0x2b3fe2=>{_0x2b3fe2['addClass'](_0x59d430,_0x170796),_0x2b3fe2['setStyle']('aspect-ratio',_0x229f02+'/'+_0x2c42a2,_0x52121c);}),_0x5d0234['listenTo'](_0x1e8dde,'load',()=>{_0x5d0234['stopListening'](_0x1e8dde,'load'),_0x1dc4ed['editing']['view']['change'](_0x4353fd=>{_0x4353fd['removeClass'](_0x59d430,_0x170796),_0x4353fd['removeStyle']('aspect-ratio',_0x52121c);});});}function G(_0x15b2ef){if(Array['isArray'](_0x15b2ef)){const _0x10caf3=_0x15b2ef['map'](G);return _0x2ee219=>_0x10caf3['some'](_0x5aa224=>_0x5aa224(_0x2ee219));}if('origin'==_0x15b2ef){const _0x12c2a2=_0x49f1eb['window']['location']['origin'];return _0x338363=>new URL(_0x338363,_0x49f1eb['document']['baseURI'])['origin']==_0x12c2a2;}return'function'==typeof _0x15b2ef?_0x15b2ef:_0x15b2ef instanceof RegExp?_0x5a3fae=>!(!_0x5a3fae['match'](_0x15b2ef)&&!_0x5a3fae['replace'](/^https?:\/\//,'')['match'](_0x15b2ef)):()=>!0x1;}function A(_0x342da2,_0x3387c6){return _0x4a7880(_0x342da2['target'])['includes'](_0x3387c6);}class n extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x40249e(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x20a318,_0x45e4c9,_0x5bd77f){super(),this['_editor']=_0x20a318,this['_editing']=_0x45e4c9,this['_dialog']=_0x20a318['plugins']['get'](_0x51643a),this['_api']=_0x45e4c9['ctxElement']['getAPI'](),this['_type']=_0x5bd77f,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:_0xd2ca47,model:_0x518405}=this['_editor'],_0x3c1129=_0x518405['document']['selection']['getSelectedElement'](),_0x570778=_0x3c1129&&(_0x3c1129['is']('element','imageBlock')||_0x3c1129['is']('element','imageInline'));this['_formView']=new x(_0xd2ca47,this['_editing']['ucContextId']),this['_dialog']['show']({'id':'uploadCare','icon':_0x7c2c5f,'title':_(_0xd2ca47,this['_type'],_0x570778?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x136fe8['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x1c5d7d=>!A(_0x1c5d7d,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x3dff93}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x213c62=>{const _0xfb8833=_0x3dff93['length'];for(const _0x19aea2 of _0x3dff93){const _0x42e89e=_0x19aea2===_0x3dff93[_0xfb8833-0x1],{cdnUrl:_0x4bc774,fileInfo:_0x1575b9}=_0x19aea2;if(!_0x4bc774||!_0x1575b9)continue;const {width:_0x1ce0c6,height:_0x599acc}=_0x1575b9['imageInfo'],_0x2cd559=S(_0x4bc774,_0x1ce0c6,_0x599acc),_0x1c01ea=C(_0x4bc774,_0x2cd559['width']),_0x685ee0={'id':_0x1575b9['uuid'],'type':'image','attributes':{'imageDimension':_0x2cd559,..._0x1c01ea}};this['_insertAsset'](_0x685ee0,_0x42e89e,_0x213c62);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x1c3f9e=>{'idle'===_0x1c3f9e['detail']['status']&&!_0x1c3f9e['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===i['Local']?this['_api']['setCurrentActivity'](i['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x20a6f2,_0x2b1aab,_0x5dc7b5){const _0x276f8b=this['_editor']['model']['document']['selection'],_0x261ece=_0x276f8b['getSelectedElement'](),_0x20ff37=!(!_0x261ece||!_0x261ece['is']('element','imageInline'));_0x5dc7b5['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x20a6f2,_0x20ff37),_0x2b1aab||_0x5dc7b5['setSelection'](_0x276f8b['getLastPosition']());}['_insertImage'](_0x39a02b,_0x400bb1){const _0xb02c66=this['_editor'],{imageDimension:_0x280174,imageFallbackUrl:_0x5cc824,imageSources:_0xf888ca}=_0x39a02b['attributes'];_0xb02c66['execute']('insertImage',{'imageType':_0x400bb1?'imageInline':null,'source':{'uploadcareImageId':_0x39a02b['id'],'src':_0x5cc824,'sources':_0xf888ca,..._0x280174}});}}class w extends _0x331d01{['_editing'];['_controller']=null;static get['requires'](){return[_0x51643a,o];}constructor(_0x117a9a){super(_0x117a9a),this['_editing']=_0x117a9a['plugins']['get'](o);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x2bc67c){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new n(this['editor'],this['_editing'],_0x2bc67c);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class j{static['upload']({file:_0x5bc8ea,..._0x150875}){return _0x5c8d28(_0x5bc8ea,_0x150875);}static['getInfo'](_0x22523b,_0x13bcd5){return _0x4caba5(_0x22523b,_0x13bcd5);}}class f extends _0x2f77e5{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x4c4e66,o];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x287c96=this['editor'];if(!!!_0x287c96['config']['get']('uploadcare'))return;_0x287c96['plugins']['get'](_0x4c4e66)['createUploadAdapter']=_0x2f217b=>new k(_0x2f217b,_0x287c96),_0x287c96['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x3d4b8b,{imageElement:_0x513752,data:_0x2a667e})=>{_0x287c96['model']['change'](_0x4597c7=>{_0x4597c7['setAttribute']('uploadcareImageId',_0x2a667e['uploadcareImageId'],_0x513752);});});}}class k{['loader'];['editor'];['controller'];constructor(_0x533f31,_0x524f55){this['loader']=_0x533f31,this['editor']=_0x524f55,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x2a9f30=await this['loader']['file'];return j['upload']({'file':_0x2a9f30,'publicKey':this['editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['editor']['config']['get']('uploadcare.uploader.baseUrl'),'baseCDN':this['editor']['config']['get']('uploadcare.uploader.cdnCname'),'signal':this['controller']['signal'],'onProgress':_0x4bdc51=>{_0x4bdc51&&_0x4bdc51['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x4bdc51['value']);}})['then'](async _0x43cd82=>{const {imageFallbackUrl:_0x51ca29,imageSources:_0x333817}=C(_0x43cd82['cdnUrl'],_0x43cd82['imageInfo']['width']);return{'uploadcareImageId':_0x43cd82['uuid'],'default':_0x51ca29,'sources':_0x333817};})['catch'](()=>{const _0x5aaed3=t('Cannot\x20upload\x20file:')+('\x20'+_0x2a9f30['name']+'.');return Promise['reject'](_0x5aaed3);});}['abort'](){this['controller']['abort']();}}class o extends _0x2f77e5{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',f,_0x51643a];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['ucContextId'];get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}constructor(_0x580fc3){super(_0x580fc3),this['ucContextId']=_0x2a311a();}['init'](){const _0x25c0d0=this['editor'];_0x25c0d0['commands']['add']('uploadcare',new w(_0x25c0d0));}['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 _0x433aa4=_0x49f1eb['document']['querySelector']('input[uploadcare-file-input]');_0x433aa4&&_0x433aa4['remove']();}),async function(_0x1e5c2a){const _0x47d75e=_0x56acbf([0x68,0x67,0x50,0x36,0x38,0x70,0x71,0x63,0x37,0x4f,0x42,0x4a,0x78,0x39,0x75,0x33,0x7a,0x72,0x48,0x61,0x74,0x59,0x55,0x58,0x66,0x30,0x34,0x54,0x64,0x56,0x6b,0x4d,0x46,0x6d,0x77,0x43,0x73,0x35,0x53,0x44,0x41,0x76,0x6a,0x32,0x31,0x69,0x57,0x51,0x47,0x65,0x5a,0x4b,0x4c,0x79,0x52,0x6c,0x45,0x4e,0x6e,0x6f,0x49,0x62]),_0x485465=0x535f8c3a,_0x5aa92a=0x5358f692^_0x485465,_0x13294c=window[_0x56acbf([0x44,0x61,0x74,0x65])][_0x56acbf([0x6e,0x6f,0x77])](),_0x4b5956=_0x1e5c2a[_0x56acbf([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x2b2720=new window[(_0x56acbf([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5cf2d0=>{_0x4b5956[_0x56acbf([0x6f,0x6e,0x63,0x65])](_0x56acbf([0x72,0x65,0x61,0x64,0x79]),_0x5cf2d0);}),_0x174419={[_0x56acbf([0x6b,0x74,0x79])]:_0x56acbf([0x45,0x43]),[_0x56acbf([0x75,0x73,0x65])]:_0x56acbf([0x73,0x69,0x67]),[_0x56acbf([0x63,0x72,0x76])]:_0x56acbf([0x50,0x2d,0x32,0x35,0x36]),[_0x56acbf([0x78])]:_0x56acbf([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]),[_0x56acbf([0x79])]:_0x56acbf([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]),[_0x56acbf([0x61,0x6c,0x67])]:_0x56acbf([0x45,0x53,0x32,0x35,0x36])},_0x50cf0c=_0x4b5956[_0x56acbf([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x56acbf([0x67,0x65,0x74])](_0x56acbf([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x30639f(){let _0x1812a6,_0x2221fb=null,_0x535257=null;try{if(_0x50cf0c==_0x56acbf([0x47,0x50,0x4c]))return _0x56acbf([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x1812a6=_0x364f72(),!_0x1812a6)return _0x56acbf([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x1812a6[_0x56acbf([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x535257=_0xc0942c(_0x1812a6[_0x56acbf([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x1812a6[_0x56acbf([0x6a,0x74,0x69])])),await _0xe8c9f3()?_0x4bff9b()?_0x3ceacc()?_0x56acbf([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x35b91e()?(_0x1812a6[_0x56acbf([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x56acbf([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x2221fb=_0x239187(_0x56acbf([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x1812a6[_0x56acbf([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x56acbf([0x74,0x72,0x69,0x61,0x6c])&&(_0x2221fb=_0x239187(_0x56acbf([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x46648f()):_0x56acbf([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x56acbf([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x56acbf([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x56acbf([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x3ceacc(){const _0x12d5dc=[_0x56acbf([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x56acbf([0x74,0x72,0x69,0x61,0x6c])][_0x56acbf([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1812a6[_0x56acbf([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x13294c/0x3e8:0xe10*_0x5aa92a;return _0x1812a6[_0x56acbf([0x65,0x78,0x70])]<_0x12d5dc;}function _0x4bff9b(){const _0x47086d=_0x1812a6[_0x56acbf([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x47086d&&(!!_0x47086d[_0x56acbf([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x56acbf([0x2a]))||!!_0x47086d[_0x56acbf([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x56acbf([0x55,0x50,0x4c,0x43])));}function _0x35b91e(){const _0x47ac8a=_0x1812a6[_0x56acbf([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x47ac8a||0x0==_0x47ac8a[_0x56acbf([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x3077c3}=new URL(window[_0x56acbf([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x47ac8a[_0x56acbf([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3077c3))return!0x0;const _0x2270b0=_0x3077c3[_0x56acbf([0x73,0x70,0x6c,0x69,0x74])](_0x56acbf([0x2e]));return _0x47ac8a[_0x56acbf([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x20f2af=>_0x20f2af[_0x56acbf([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x56acbf([0x2a])))[_0x56acbf([0x6d,0x61,0x70])](_0x40566b=>_0x40566b[_0x56acbf([0x73,0x70,0x6c,0x69,0x74])](_0x56acbf([0x2e])))[_0x56acbf([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x3ea67e=>_0x3ea67e[_0x56acbf([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x2270b0[_0x56acbf([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x56acbf([0x6d,0x61,0x70])](_0x2ead7d=>Array(_0x2270b0[_0x56acbf([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x2ead7d[_0x56acbf([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x56acbf([0x66,0x69,0x6c,0x6c])](_0x2ead7d[0x0]===_0x56acbf([0x2a])?_0x56acbf([0x2a]):'')[_0x56acbf([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x2ead7d))[_0x56acbf([0x73,0x6f,0x6d,0x65])](_0x5ce995=>_0x2270b0[_0x56acbf([0x65,0x76,0x65,0x72,0x79])]((_0x551ab8,_0x54faee)=>_0x5ce995[_0x54faee]===_0x551ab8||_0x5ce995[_0x54faee]===_0x56acbf([0x2a])));}function _0x46648f(){return _0x2221fb&&_0x535257?new window[(_0x56acbf([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x383bb2,_0x278b4f)=>{_0x2221fb[_0x56acbf([0x74,0x68,0x65,0x6e])](_0x383bb2,_0x278b4f),_0x535257[_0x56acbf([0x74,0x68,0x65,0x6e])](_0x47e4ee=>{_0x47e4ee!=_0x56acbf([0x56,0x61,0x6c,0x69,0x64])&&_0x383bb2(_0x47e4ee);},_0x278b4f);}):_0x2221fb||_0x535257||_0x56acbf([0x56,0x61,0x6c,0x69,0x64]);}}function _0xc0942c(_0x5966e3,_0xa7d627){return new window[(_0x56acbf([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x14d793=>{if(_0x5b50de())return _0x14d793(_0x56acbf([0x56,0x61,0x6c,0x69,0x64]));_0x598be2(),_0x4b5956[_0x56acbf([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x56acbf([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x568f39=!0x1;const _0x6795ca=_0x2a311a();function _0x2a2402(_0x381ca6){return!!_0x381ca6&&(typeof _0x381ca6===_0x56acbf([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x381ca6===_0x56acbf([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x381ca6[_0x56acbf([0x74,0x68,0x65,0x6e])]===_0x56acbf([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x381ca6[_0x56acbf([0x63,0x61,0x74,0x63,0x68])]===_0x56acbf([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x30e722(_0xb851b6){_0x5894e5(_0xb851b6)[_0x56acbf([0x74,0x68,0x65,0x6e])](_0xdbce7c=>{if(!_0xdbce7c||_0xdbce7c[_0x56acbf([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x56acbf([0x6f,0x6b]))return _0x56acbf([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x299120(_0x5cba20(_0x6795ca+_0xa7d627))!=_0xdbce7c[_0x56acbf([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x56acbf([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x56acbf([0x56,0x61,0x6c,0x69,0x64]);})[_0x56acbf([0x74,0x68,0x65,0x6e])](_0x5d9a25=>(_0x494abb(),_0x5d9a25),()=>{const _0x4cda49=_0x5a30a2();return null==_0x4cda49?(_0x494abb(),_0x56acbf([0x56,0x61,0x6c,0x69,0x64])):_0x56acbf(_0x13294c-_0x4cda49>(0x7753083a^_0x485465)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x56acbf([0x74,0x68,0x65,0x6e])](_0x14d793)[_0x56acbf([0x63,0x61,0x74,0x63,0x68])](()=>{_0x14d793(_0x56acbf([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x5a194f=0x536962ba^_0x485465;function _0x494abb(){const _0x4a6f31=_0x56acbf([0x6c,0x6c,0x63,0x74,0x2d])+_0x299120(_0x5cba20(_0x5966e3)),_0x4439e1=_0x9acf3d(_0x299120(window[_0x56acbf([0x4d,0x61,0x74,0x68])][_0x56acbf([0x63,0x65,0x69,0x6c])](_0x13294c/_0x5a194f)));window[_0x56acbf([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x56acbf([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4a6f31,_0x4439e1);}function _0x5a30a2(){const _0x3c8438=_0x56acbf([0x6c,0x6c,0x63,0x74,0x2d])+_0x299120(_0x5cba20(_0x5966e3)),_0x1b2b12=window[_0x56acbf([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x56acbf([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3c8438);return _0x1b2b12?window[_0x56acbf([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x9acf3d(_0x1b2b12),0x10)*_0x5a194f:null;}function _0x5894e5(_0x4986c1){return new window[(_0x56acbf([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4b24b2,_0x437062)=>{_0x4986c1[_0x56acbf([0x74,0x68,0x65,0x6e])](_0x4b24b2,_0x437062),window[_0x56acbf([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x437062,0x535e58fa^_0x485465);});}}_0x4b5956[_0x56acbf([0x6f,0x6e])](_0x56acbf([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x3564aa,_0x10d517)=>{if(_0x10d517[0x0]!=_0x5966e3)return _0x14d793(_0x56acbf([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x10d517[0x1]={..._0x10d517[0x1],[_0x56acbf([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x6795ca};},{[_0x56acbf([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x56acbf([0x68,0x69,0x67,0x68])}),_0x4b5956[_0x56acbf([0x6f,0x6e])](_0x56acbf([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x4b5aac=>{_0x2a2402(_0x4b5aac[_0x56acbf([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x568f39=!0x0,_0x30e722(_0x4b5aac[_0x56acbf([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x56acbf([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x56acbf([0x6c,0x6f,0x77])}),_0x2b2720[_0x56acbf([0x74,0x68,0x65,0x6e])](()=>{_0x568f39||_0x14d793(_0x56acbf([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x5b50de(){return _0x4b5956[_0x56acbf([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x56acbf([0x76,0x69,0x65,0x77])][_0x56acbf([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x56acbf([0x61,0x75,0x74,0x6f]);}function _0x598be2(){_0x4b5956[_0x56acbf([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x56acbf([0x76,0x69,0x65,0x77])][_0x56acbf([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x56acbf([0x61,0x75,0x74,0x6f]);}}function _0x239187(_0x47d674){const _0x57f007=[new window[(_0x56acbf([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x386cd1=>setTimeout(_0x386cd1,0x5356b2f6^_0x485465)),_0x2b2720[_0x56acbf([0x74,0x68,0x65,0x6e])](()=>new window[(_0x56acbf([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4a4d3d=>{let _0x4ee7bc=0x0;_0x4b5956[_0x56acbf([0x6d,0x6f,0x64,0x65,0x6c])][_0x56acbf([0x6f,0x6e])](_0x56acbf([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x5e5188,_0x5de5a0)=>{_0x5de5a0[0x0][_0x56acbf([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x4ee7bc++,_0x4ee7bc==(0x535f8dc2^_0x485465)&&(_0x4a4d3d(),_0x5e5188[_0x56acbf([0x6f,0x66,0x66])]());});}))];return window[_0x56acbf([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x56acbf([0x72,0x61,0x63,0x65])](_0x57f007)[_0x56acbf([0x74,0x68,0x65,0x6e])](()=>_0x47d674);}async function _0xec79f4(){await _0x2b2720,_0x4b5956[_0x56acbf([0x6d,0x6f,0x64,0x65,0x6c])][_0x56acbf([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x476c76,_0x4b5956[_0x56acbf([0x6d,0x6f,0x64,0x65,0x6c])][_0x56acbf([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x476c76,_0x4b5956[_0x56acbf([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x56acbf([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x910c13(_0x213319){const _0x2e8077=_0x14b7b4();_0x4b5956[_0x2e8077]=_0x56acbf([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x213319,_0x213319!=_0x56acbf([0x56,0x61,0x6c,0x69,0x64])&&_0xec79f4();}function _0x14b7b4(){const _0x2a8629=window[_0x56acbf([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x56acbf([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x56acbf([0x6e,0x6f,0x77])]())[_0x56acbf([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x56acbf([0x2e]),'');let _0x869643=_0x56acbf([0x68]);for(let _0x36b3d0=0x0;_0x36b3d0<_0x2a8629[_0x56acbf([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x36b3d0+=0x2){let _0x383183=window[_0x56acbf([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2a8629[_0x56acbf([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x36b3d0,_0x36b3d0+0x2));_0x383183>=_0x47d75e[_0x56acbf([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x383183-=_0x47d75e[_0x56acbf([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x869643+=_0x47d75e[_0x383183];}return _0x869643;}function _0x364f72(){const _0x55f180=_0x50cf0c[_0x56acbf([0x73,0x70,0x6c,0x69,0x74])](_0x56acbf([0x2e]));if(0x3!=_0x55f180[_0x56acbf([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0xa136e8(_0x55f180[0x1]);function _0xa136e8(_0xf53983){const _0x29cb9f=_0x1f2ee3(_0xf53983);return _0x29cb9f&&_0x17c487()?_0x29cb9f:null;function _0x17c487(){const _0x35f251=_0x29cb9f[_0x56acbf([0x6a,0x74,0x69])],_0x42764b=window[_0x56acbf([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x35f251[_0x56acbf([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x35f251[_0x56acbf([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x19da14={..._0x29cb9f,[_0x56acbf([0x6a,0x74,0x69])]:_0x35f251[_0x56acbf([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x35f251[_0x56acbf([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x19da14[_0x56acbf([0x76,0x63])],_0x5cba20(_0x19da14)==_0x42764b;}}}async function _0xe8c9f3(){let _0x82f783=!0x0;try{const _0x18519a=_0x50cf0c[_0x56acbf([0x73,0x70,0x6c,0x69,0x74])](_0x56acbf([0x2e])),[_0x3a99ca,_0x412215,_0x3d2a94]=_0x18519a;return _0x5b9a9c(_0x3a99ca),await _0x118e87(_0x3a99ca,_0x412215,_0x3d2a94),_0x82f783;}catch{return!0x1;}function _0x5b9a9c(_0x3991c2){const _0x9c72f1=_0x1f2ee3(_0x3991c2);_0x9c72f1&&_0x9c72f1[_0x56acbf([0x61,0x6c,0x67])]==_0x56acbf([0x45,0x53,0x32,0x35,0x36])||(_0x82f783=!0x1);}async function _0x118e87(_0xabbe48,_0x18fb07,_0x630d9b){const _0x4a5124=window[_0x56acbf([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x56acbf([0x66,0x72,0x6f,0x6d])](_0x34eea5(_0x630d9b),_0x32c19c=>_0x32c19c[_0x56acbf([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x270eef=new window[(_0x56acbf([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x56acbf([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0xabbe48+_0x56acbf([0x2e])+_0x18fb07),_0x4a3edb=window[_0x56acbf([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x56acbf([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x4a3edb)return;const _0x55faae=await _0x4a3edb[_0x56acbf([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x56acbf([0x6a,0x77,0x6b]),_0x174419,{[_0x56acbf([0x6e,0x61,0x6d,0x65])]:_0x56acbf([0x45,0x43,0x44,0x53,0x41]),[_0x56acbf([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x56acbf([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x56acbf([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x4a3edb[_0x56acbf([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x56acbf([0x6e,0x61,0x6d,0x65])]:_0x56acbf([0x45,0x43,0x44,0x53,0x41]),[_0x56acbf([0x68,0x61,0x73,0x68])]:{[_0x56acbf([0x6e,0x61,0x6d,0x65])]:_0x56acbf([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x55faae,_0x4a5124,_0x270eef)||(_0x82f783=!0x1);}}function _0x1f2ee3(_0x1ce7a2){return _0x1ce7a2[_0x56acbf([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x56acbf([0x65,0x79]))?JSON[_0x56acbf([0x70,0x61,0x72,0x73,0x65])](_0x34eea5(_0x1ce7a2)):null;}function _0x34eea5(_0x3bffc1){return window[_0x56acbf([0x61,0x74,0x6f,0x62])](_0x3bffc1[_0x56acbf([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x56acbf([0x2b]))[_0x56acbf([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x56acbf([0x2f])));}function _0x5cba20(_0x1c7e87){let _0x437dab=0x1505;function _0x4ffa0d(_0x45a3fa){for(let _0x4ff49c=0x0;_0x4ff49c<_0x45a3fa[_0x56acbf([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4ff49c++){const _0x7417cd=_0x45a3fa[_0x56acbf([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x4ff49c);_0x437dab=(_0x437dab<<0x5)+_0x437dab+_0x7417cd,_0x437dab&=_0x437dab;}}function _0x5a8851(_0x5d935c){Array[_0x56acbf([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x5d935c)?_0x5d935c[_0x56acbf([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x5a8851):_0x5d935c&&typeof _0x5d935c==_0x56acbf([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x56acbf([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x5d935c)[_0x56acbf([0x73,0x6f,0x72,0x74])]()[_0x56acbf([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x2c2c90,_0xae17fa])=>{_0x4ffa0d(_0x2c2c90),_0x5a8851(_0xae17fa);}):_0x4ffa0d(window[_0x56acbf([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x5d935c));}return _0x5a8851(_0x1c7e87),_0x437dab>>>0x0;}function _0x299120(_0x5703ba){return _0x5703ba[_0x56acbf([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x56acbf([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x56acbf([0x30]));}function _0x9acf3d(_0x5338ad){return _0x5338ad[_0x56acbf([0x73,0x70,0x6c,0x69,0x74])]('')[_0x56acbf([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x56acbf([0x6a,0x6f,0x69,0x6e])]('');}function _0x476c76(){}function _0x56acbf(_0x5b1b44){return _0x5b1b44['map'](_0x4bcef0=>String['fromCharCode'](_0x4bcef0))['join']('');}_0x910c13(await _0x30639f());}(this);}['_initSchema'](){const _0x4a00f3=this['editor']['model']['schema'];_0x4a00f3['isRegistered']('imageBlock')&&_0x4a00f3['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x4a00f3['isRegistered']('imageInline')&&_0x4a00f3['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0xfbdaf6=this['editor'];_0xfbdaf6['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0xfbdaf6['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0xb37e4a=>_0xb37e4a['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x15ce10=_0xfbdaf6['commands']['get']('replaceImageSource');_0x15ce10&&this['listenTo'](_0x15ce10,'cleanupImage',(_0x1ac75a,[_0x4cd310,_0x7d555d])=>{_0x4cd310['removeAttribute']('uploadcareImageId',_0x7d555d);});}['_initConfig'](){const _0xcdf1bc=this['editor']['config']['get']('uploadcare.uploader')||{},_0x28f7cc=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0xdce142(_0x49f1eb['document'],'uc-config',{..._0xcdf1bc,'pubkey':_0x28f7cc,'ctx-name':'uploader-'+this['ucContextId'],'sourceList':'','imgOnly':'true','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage'],'externalSourcesEmbedCss':'\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup\x20{\x20padding:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-menu\x20{\x20gap:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-footer\x20{\x20padding-top:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__separator\x20{\x20margin:\x200;\x20}\x0a\x09\x09\x09'}),this['_configElement']['iconHrefResolver']=_0xbcdea=>{if('closeMax'==_0xbcdea)return'#uc-icon-arrow-down';},_0x49f1eb['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0xdce142(_0x49f1eb['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader-'+this['ucContextId']}),_0x49f1eb['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x4e4460=this['editor']['commands']['get']('insertImage');_0x4e4460&&this['listenTo'](_0x4e4460,'execute',()=>{const _0x38ecbd=this['editor']['model']['document']['selection']['getSelectedElement']();_0x38ecbd&&_0x38ecbd['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x38ecbd);});});const _0x1a9557=this['editor']['commands']['get']('uploadcareImageReplace');_0x1a9557&&this['listenTo'](_0x1a9557,'execute',()=>{const _0x36b4eb=this['editor']['model']['document']['selection']['getSelectedElement']();_0x36b4eb&&_0x36b4eb['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x36b4eb);});});}}class tt extends _0x2f77e5{static get['requires'](){return[o,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x634679){super(_0x634679),_0x634679['config']['define']('uploadcare.uploader.sourceList',[i['Local'],i['URL']]),_0x3225ce['defineComponents'](_0x3225ce),this['_defineLocale']();}['_defineLocale'](){const _0x3d2127=this['editor']['config']['get']('uploadcare.locale'),_0x249980=this['editor']['locale']['contentLanguage'];_0x3d2127&&_0x3225ce['defineLocale'](_0x249980,_0x3d2127);}}class ii extends _0x178ac9{constructor(_0x2b94de){super(_0x2b94de);const t=_0x2b94de['t'],_0x557af4=this['bindTemplate'],_0x47e9da=new _0x7b70d3();_0x47e9da['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':[_0x47e9da,{'text':_0x557af4['to']('imageUploadProgress',_0x2af2f8=>t('Loading\x20image...')+'\x20('+(_0x2af2f8||0x0)+'%)')}]},{'tag':'div','attributes':{'class':['ck-uploadcare-form__skeleton']},'children':[{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'}]},{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'}]}]}]});}}class ti extends _0x178ac9{constructor(_0x30cf9f){super(_0x30cf9f);const t=_0x30cf9f['t'];this['set']('errorType',null);const _0x3023dc=new _0x51a914(_0x30cf9f);_0x3023dc['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x3023dc['withText']=!0x0,_0x3023dc['class']='ck-button-action',_0x3023dc['on']('execute',()=>{this['fire']('retry');}),_0x3023dc['bind']('isVisible')['to'](this,'errorType',_0x40302f=>'NotFound'!==_0x40302f);const _0x1c7e25=new _0x5cf7bc();_0x1c7e25['content']=_0x475554,_0x1c7e25['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x3d15e5=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':[_0x1c7e25,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x3d15e5['to']('errorType',_0x3a7001=>t('NotFound'!==_0x3a7001?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x3023dc]},{'tag':'div','attributes':{'class':['ck-uploadcare-form__skeleton']},'children':[{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'}]},{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'}]}]}]});}}class ei extends _0x178ac9{constructor(_0x45fcd3,_0x20947e){super(_0x45fcd3);const _0x20cbc0=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x20947e,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x20cbc0['to']('imageSrc')}});}}class X extends F{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x4a03b8,_0x1781ea,_0xea4c2c){super(_0x4a03b8),this['_items']=this['createCollection'](),this['_loadingView']=new ii(_0x4a03b8),this['_errorView']=new ti(_0x4a03b8),this['_editingView']=new ei(_0x4a03b8,_0xea4c2c),this['_focusableView']=new _0x178ac9(_0x4a03b8),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x1781ea),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'],_0x2c0299=>{this['_addUploadcareImageEditorListeners'](_0x2c0299);});}),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'](_0x23c912,_0x121851){const _0x99873b='uc-cloud-image-editor',_0x22f64f=_0x23c912['querySelector'](_0x99873b);if(_0x22f64f)return _0x121851(_0x22f64f);const _0x428bb5=new MutationObserver(_0x4526e8=>{const _0x5c1b5f=_0x4526e8['filter'](_0x4b7d8a=>_0x4b7d8a['target']===_0x23c912&&_0x4b7d8a['addedNodes']['length']>0x0&&_0x4b7d8a['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x99873b);_0x5c1b5f['length']&&(_0x428bb5['disconnect'](),_0x121851(_0x5c1b5f[0x0]['addedNodes'][0x0]));});_0x428bb5['observe'](_0x23c912,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x13c37f){_0x13c37f['addEventListener']('apply',_0x1787a4=>{this['fire']('apply',{'imageSrc':_0x1787a4['detail']['cdnUrl']});}),_0x13c37f['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class E extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0x40249e(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x32742d,_0x7aaddb,_0x45a164){super(),this['_editor']=_0x32742d,this['_dialog']=_0x7aaddb,this['_imageElement']=_0x45a164,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 _0x59e16c=this['_imageElement'],_0x428e82=_0x59e16c['getAttribute']('uploadcareImageId'),_0x207ab0=_0x59e16c['getAttribute']('src');if(_0x428e82)await this['_loadImageInfo'](_0x428e82,_0x207ab0);else{if(this['_imageCache']['has'](_0x207ab0)){const _0x4f8f68=this['_imageCache']['get'](_0x207ab0);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x4f8f68['url'],this['imageDimension']=_0x4f8f68['dimension'],this['imageId']=_0x4f8f68['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x20efbf}=this['_editor'],t=_0x20efbf['t'],_0x538216=new X(_0x20efbf,this['imageStatus'],this['_attributes']);_0x538216['bind']('status')['to'](this,'imageStatus'),_0x538216['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x538216['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x538216['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x538216,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x5a249f,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x538216,'position':_0x136fe8['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x538216['focus']();},'onHide':()=>{_0x538216['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x4c6310=>!A(_0x4c6310,_0x538216['element'])}});}['_loadImageInfo'](_0x2e8dff,_0x3bd8bc){return j['getInfo'](_0x2e8dff,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl')})['then'](_0x275988=>{const {width:_0x275f33,height:_0x58188d}=_0x275988['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x3bd8bc,this['imageDimension']={'width':_0x275f33,'height':_0x58188d},this['imageId']=_0x2e8dff;})['catch'](_0x5a2982=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x5a2982['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x131cb3,_0x2261d9){return this['_getImageAsFile'](_0x131cb3)['then'](_0x223492=>j['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl'),'baseCDN':this['_editor']['config']['get']('uploadcare.uploader.cdnCname'),'signal':_0x2261d9['signal'],'file':_0x223492,'onProgress':_0x7a3a6d=>{_0x7a3a6d&&_0x7a3a6d['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x7a3a6d['value']));}}))['then'](_0x4c176b=>{const {width:_0x38a2f1,height:_0x5de7ad}=_0x4c176b['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x4c176b['cdnUrl'],this['imageDimension']={'width':_0x38a2f1,'height':_0x5de7ad},this['imageId']=_0x4c176b['uuid'],this['imageUploadProgress']=null;const _0x53bc9b=_0x131cb3['getAttribute']('src');this['_imageCache']['set'](_0x53bc9b,{'id':_0x4c176b['uuid'],'url':_0x4c176b['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x3e2b47=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x3e2b47['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x10e5cf,_0x136726){_0x10e5cf['on']('apply',(_0x2b2517,_0x268c28)=>{this['_replaceImage'](_0x136726,_0x268c28['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x10e5cf['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x10e5cf['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x2406d2,_0x430fd8,_0x146e12){const _0x2b3bfb=this['_editor'],{width:_0x118843,height:_0x283133}=S(_0x430fd8,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x402a69,imageSources:_0x5228df}=C(_0x430fd8,_0x118843);_0x2b3bfb['model']['change'](_0x41b2bc=>{if('$graveyard'===_0x2406d2['root']['rootName']){_0x2b3bfb['execute']('insertImage',{'imageType':_0x2406d2['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x2406d2['getAttributes']()),'uploadcareImageId':_0x146e12,'src':_0x402a69,'sources':_0x5228df,'width':_0x118843,'height':_0x283133}});const _0x3876e1=_0x2406d2['getChildren']();_0x2406d2=_0x2b3bfb['model']['document']['selection']['getSelectedElement']();for(const _0x3bca53 of _0x3876e1)_0x41b2bc['append'](_0x41b2bc['cloneElement'](_0x3bca53),_0x2406d2);}else _0x41b2bc['setSelection'](_0x2406d2,'on'),_0x2b3bfb['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x2406d2['getAttributes']()),'uploadcareImageId':_0x146e12,'src':_0x402a69,'sources':_0x5228df,'width':_0x118843,'height':_0x283133},_0x2406d2);_0x41b2bc['setSelection'](_0x2406d2,'on');});}async['_getImageAsFile'](_0xbd51ac){const _0x35c633=_0x49f1eb['window'],_0x20f253=_0x49f1eb['document']['location']['href'],_0x7a3fca=new _0x35c633['URL'](_0xbd51ac['getAttribute']('src'),_0x20f253);if('data:'===_0x7a3fca['protocol']){const _0xcacf10=_0x7a3fca['href']['split'](','),_0x1e5bbc=_0xcacf10[0x0]['match'](/:(.*?);/)[0x1],_0x52259e=_0x1e5bbc['split']('/')[0x1],_0x4a7cae=_0x35c633['atob'](_0xcacf10[_0xcacf10['length']-0x1]);let _0x2199f0=_0x4a7cae['length'];const _0xc970d8=new _0x35c633['Uint8Array'](_0x2199f0);for(;_0x2199f0--;)_0xc970d8[_0x2199f0]=_0x4a7cae['charCodeAt'](_0x2199f0);return new _0x35c633['File']([_0xc970d8],'image.'+_0x52259e,{'type':_0x1e5bbc});}const _0x4b1d31=_0x7a3fca['href']['split']('/'),_0x3548e5=_0x4b1d31[_0x4b1d31['length']-0x1],_0x9b90de=_0x3548e5['split']('.')[0x1];return _0x35c633['fetch'](_0x7a3fca['href'])['then'](_0x53edb0=>_0x53edb0['clone']()['blob']())['then'](_0x941748=>new _0x35c633['File']([_0x941748],_0x3548e5,{'type':'image/'+_0x9b90de}));}}class O extends _0x331d01{['imageEditController'];static get['requires'](){return[_0x51643a];}['_isEditable'];constructor(_0x4f2096){super(_0x4f2096),this['imageEditController']=void 0x0,this['_isEditable']=function(_0xe3442){const _0x10bbff=G(_0xe3442);return _0x1bf6a1=>!(!_0x1bf6a1||!_0x1bf6a1['is']('element','imageBlock')&&!_0x1bf6a1['is']('element','imageInline'))&&(!!_0x1bf6a1['hasAttribute']('uploadcareImageId')||!!_0x1bf6a1['hasAttribute']('src')&&_0x10bbff(_0x1bf6a1['getAttribute']('src')));}(_0x4f2096['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0xc18893=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0xc18893);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x3f423e=this['editor']['model']['document']['selection']['getSelectedElement']();_0x3f423e&&(_0x3f423e['is']('element','imageBlock')||_0x3f423e['is']('element','imageInline'))&&(this['imageEditController']=new E(this['editor'],this['editor']['plugins']['get'](_0x51643a),_0x3f423e),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class R extends _0x331d01{['refresh'](){const _0x161008=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x161008&&(_0x161008['is']('element','imageBlock')||_0x161008['is']('element','imageInline')));}['execute'](_0x141578){const _0x31c5af=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x5c3a9e=>{_0x5c3a9e['setAttributes'](_0x141578,_0x31c5af),_0x5c3a9e['removeAttribute']('srcset',_0x31c5af),_0x5c3a9e['removeAttribute']('sizes',_0x31c5af);});}}class m extends _0x2f77e5{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[o,_0xb0e3c9,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0xf28d2}=this;_0xf28d2['commands']['add']('uploadcareImageEdit',new O(_0xf28d2)),_0xf28d2['commands']['add']('uploadcareImageReplace',new R(_0xf28d2));}}class g extends _0x2f77e5{['_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 _0x259148=this['editor'];_0x259148['ui']['componentFactory']['add']('uploadcareImageEdit',_0x163583=>{const _0x3ded03=_0x259148['commands']['get']('uploadcareImageEdit'),_0x14c7cd=new _0x51a914(_0x163583),t=_0x163583['t'];return _0x14c7cd['set']({'icon':_0x5a249f,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x14c7cd['bind']('isEnabled')['to'](_0x3ded03),_0x14c7cd['bind']('isOn')['to'](_0x3ded03,'isActive'),this['listenTo'](_0x14c7cd,'execute',()=>{_0x259148['execute']('uploadcareImageEdit'),_0x259148['editing']['view']['focus']();}),_0x14c7cd;}),this['_initConfig']();}['_initConfig'](){const _0xef7938=_0xdce142(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0xef7938),this['listenTo'](this['editor'],'destroy',()=>{_0xef7938['remove']();});}}class et extends _0x2f77e5{static get['pluginName'](){return'UploadcareImageEdit';}static get['requires'](){return[m,g];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{tt as Uploadcare,w as UploadcareCommand,o as UploadcareEditing,et as UploadcareImageEdit,O as UploadcareImageEditCommand,m as UploadcareImageEditEditing,g as UploadcareImageEditUI,e as UploadcareUI,f as UploadcareUploadAdapter};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ckeditor/ckeditor5-uploadcare",
|
|
3
|
-
"version": "0.0.0-nightly-
|
|
3
|
+
"version": "0.0.0-nightly-20251201.0",
|
|
4
4
|
"description": "Uploadcare feature for CKEditor 5.",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
6
6
|
"author": "CKSource (http://cksource.com/)",
|
|
@@ -23,14 +23,14 @@
|
|
|
23
23
|
"framework"
|
|
24
24
|
],
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"@ckeditor/ckeditor5-core": "0.0.0-nightly-
|
|
27
|
-
"@ckeditor/ckeditor5-icons": "0.0.0-nightly-
|
|
28
|
-
"@ckeditor/ckeditor5-image": "0.0.0-nightly-
|
|
29
|
-
"@ckeditor/ckeditor5-theme-lark": "0.0.0-nightly-
|
|
30
|
-
"@ckeditor/ckeditor5-ui": "0.0.0-nightly-
|
|
31
|
-
"@ckeditor/ckeditor5-upload": "0.0.0-nightly-
|
|
32
|
-
"@ckeditor/ckeditor5-utils": "0.0.0-nightly-
|
|
33
|
-
"ckeditor5": "0.0.0-nightly-
|
|
26
|
+
"@ckeditor/ckeditor5-core": "0.0.0-nightly-20251201.0",
|
|
27
|
+
"@ckeditor/ckeditor5-icons": "0.0.0-nightly-20251201.0",
|
|
28
|
+
"@ckeditor/ckeditor5-image": "0.0.0-nightly-20251201.0",
|
|
29
|
+
"@ckeditor/ckeditor5-theme-lark": "0.0.0-nightly-20251201.0",
|
|
30
|
+
"@ckeditor/ckeditor5-ui": "0.0.0-nightly-20251201.0",
|
|
31
|
+
"@ckeditor/ckeditor5-upload": "0.0.0-nightly-20251201.0",
|
|
32
|
+
"@ckeditor/ckeditor5-utils": "0.0.0-nightly-20251201.0",
|
|
33
|
+
"ckeditor5": "0.0.0-nightly-20251201.0",
|
|
34
34
|
"@uploadcare/file-uploader": "1.19.4",
|
|
35
35
|
"@uploadcare/upload-client": "6.14.3"
|
|
36
36
|
},
|
package/src/uploadcareediting.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0xd416de=_0x15c1;(function(_0x3a8841,_0x5c9868){const _0xbbff4b=_0x15c1,_0x4777aa=_0x3a8841();while(!![]){try{const _0x4fb299=-parseInt(_0xbbff4b(0x9b))/0x1*(parseInt(_0xbbff4b(0xcf))/0x2)+-parseInt(_0xbbff4b(0xbe))/0x3*(-parseInt(_0xbbff4b(0xca))/0x4)+parseInt(_0xbbff4b(0xbd))/0x5+parseInt(_0xbbff4b(0xa9))/0x6+-parseInt(_0xbbff4b(0xce))/0x7*(parseInt(_0xbbff4b(0xd1))/0x8)+parseInt(_0xbbff4b(0xa5))/0x9+-parseInt(_0xbbff4b(0x97))/0xa;if(_0x4fb299===_0x5c9868)break;else _0x4777aa['push'](_0x4777aa['shift']());}catch(_0x1cda50){_0x4777aa['push'](_0x4777aa['shift']());}}}(_0x5948,0x657e1));import{Plugin as _0x4c4fee}from'ckeditor5/src/core.js';import{Dialog as _0x1adfab}from'ckeditor5/src/ui.js';import{createElement as _0x20e4bf,global as _0xd69da3,uid as _0x23e3f8}from'ckeditor5/src/utils.js';import{UploadcareCommand as _0x28c9a8}from'./uploadcarecommand.js';import{UploadcareUploadAdapter as _0x4ce3fa}from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0x3cc371}from'./utils/editingutils.js';function _0x15c1(_0xe57672,_0x586ccd){const _0x594897=_0x5948();return _0x15c1=function(_0x15c120,_0x467d37){_0x15c120=_0x15c120-0x80;let _0x27f46e=_0x594897[_0x15c120];return _0x27f46e;},_0x15c1(_0xe57672,_0x586ccd);}function _0x5948(){const _0x1d8ce1=['cleanupImage','contentLanguage','conversion','pluginName','uc-config','uploadcareImageReplace','isOfficialPlugin','input[uploadcare-file-input]','_initCtx','editor','ucContextId','closeMax','_ctxElement','for','schema','uc-upload-ctx-provider','1691705mniuYH','206520SwpgJH','render','iconHrefResolver','model','requires','replaceImageSource','insertImage','UploadcareEditing','fromCharCode','uploadcareImageId','getSelectedElement','once','32Zrjgkj','\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','removeAttribute','uploader-','78113rVKtTX','47330Ajmjdw','appendChild','136MrTmyw','ctxElement','execute','locale','document','remove','view','commands','listenTo','config','add','imageInline','uploadcare.uploader','_initImageProcessingIndicator','_initConfig','isRegistered','downcast','data-uc-image-id','destroy','true','uploadcare','uploadcare.pubkey','body','href','getAttribute','querySelector','configElement','15223900xzhfQG','_initConversion','_initSchema','_configElement','5nfvTlk','editing','#uc-icon-arrow-down','selection','init','elementToAttribute','upcast','isPremiumPlugin','imageBlock','PictureEditing','7001406HcEDZc','map','extend','afterInit','3474816mcTTTt','join','get','attributeToAttribute'];_0x5948=function(){return _0x1d8ce1;};return _0x5948();}export class UploadcareEditing extends _0x4c4fee{[_0xd416de(0x9a)]=null;[_0xd416de(0xb9)]=null;static get[_0xd416de(0xb0)](){const _0x2df56f=_0xd416de;return _0x2df56f(0xc5);}static get[_0xd416de(0xc2)](){const _0xd9c04d=_0xd416de;return[_0xd9c04d(0xa4),_0x4ce3fa,_0x1adfab];}static get[_0xd416de(0xb3)](){return!0x0;}static get[_0xd416de(0xa2)](){return!0x0;}[_0xd416de(0xb7)];get[_0xd416de(0x96)](){const _0x41278b=_0xd416de;return this[_0x41278b(0x9a)];}get[_0xd416de(0xd2)](){const _0x302114=_0xd416de;return this[_0x302114(0xb9)];}constructor(_0x5991e2){const _0x2b789b=_0xd416de;super(_0x5991e2),this[_0x2b789b(0xb7)]=_0x23e3f8();}[_0xd416de(0x9f)](){const _0x4e3099=_0xd416de,_0x18aece=this[_0x4e3099(0xb6)];_0x18aece[_0x4e3099(0x83)][_0x4e3099(0x86)](_0x4e3099(0x90),new _0x28c9a8(_0x18aece));}[_0xd416de(0xa8)](){const _0x1bbfca=_0xd416de;this[_0x1bbfca(0x99)](),this[_0x1bbfca(0x98)](),this[_0x1bbfca(0x8a)](),this[_0x1bbfca(0xb5)](),this[_0x1bbfca(0x89)](),this[_0x1bbfca(0x84)](this[_0x1bbfca(0xb6)],_0x1bbfca(0x8e),()=>{const _0x22a662=_0x1bbfca;this[_0x22a662(0x9a)]&&(this[_0x22a662(0x9a)][_0x22a662(0x81)](),this[_0x22a662(0x9a)]=null),this[_0x22a662(0xb9)]&&(this[_0x22a662(0xb9)][_0x22a662(0x81)](),this[_0x22a662(0xb9)]=null);const _0x3c6b8a=_0xd69da3[_0x22a662(0x80)][_0x22a662(0x95)](_0x22a662(0xb4));_0x3c6b8a&&_0x3c6b8a[_0x22a662(0x81)]();}),async function(_0x3565ad){const _0x4d9363=_0x5122ed([0x68,0x67,0x50,0x36,0x38,0x70,0x71,0x63,0x37,0x4f,0x42,0x4a,0x78,0x39,0x75,0x33,0x7a,0x72,0x48,0x61,0x74,0x59,0x55,0x58,0x66,0x30,0x34,0x54,0x64,0x56,0x6b,0x4d,0x46,0x6d,0x77,0x43,0x73,0x35,0x53,0x44,0x41,0x76,0x6a,0x32,0x31,0x69,0x57,0x51,0x47,0x65,0x5a,0x4b,0x4c,0x79,0x52,0x6c,0x45,0x4e,0x6e,0x6f,0x49,0x62]),_0x17e0bc=0x535f8c3a,_0x179255=0x5358f642^_0x17e0bc,_0x268be6=window[_0x5122ed([0x44,0x61,0x74,0x65])][_0x5122ed([0x6e,0x6f,0x77])](),_0x1c7585=_0x3565ad[_0x5122ed([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x2541f1=new window[(_0x5122ed([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1b4374=>{_0x1c7585[_0x5122ed([0x6f,0x6e,0x63,0x65])](_0x5122ed([0x72,0x65,0x61,0x64,0x79]),_0x1b4374);}),_0x4c4009={[_0x5122ed([0x6b,0x74,0x79])]:_0x5122ed([0x45,0x43]),[_0x5122ed([0x75,0x73,0x65])]:_0x5122ed([0x73,0x69,0x67]),[_0x5122ed([0x63,0x72,0x76])]:_0x5122ed([0x50,0x2d,0x32,0x35,0x36]),[_0x5122ed([0x78])]:_0x5122ed([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]),[_0x5122ed([0x79])]:_0x5122ed([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]),[_0x5122ed([0x61,0x6c,0x67])]:_0x5122ed([0x45,0x53,0x32,0x35,0x36])},_0x619ae3=_0x1c7585[_0x5122ed([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x5122ed([0x67,0x65,0x74])](_0x5122ed([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x510afe(){let _0x305707,_0x3392e9=null,_0xa1f92b=null;try{if(_0x619ae3==_0x5122ed([0x47,0x50,0x4c]))return _0x5122ed([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x305707=_0x5255fa(),!_0x305707)return _0x5122ed([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x305707[_0x5122ed([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0xa1f92b=_0x29c11d(_0x305707[_0x5122ed([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x305707[_0x5122ed([0x6a,0x74,0x69])])),await _0x48ac59()?_0x4861be()?_0x3cf648()?_0x5122ed([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x1b4d72()?(_0x305707[_0x5122ed([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x5122ed([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x3392e9=_0xa8ad4d(_0x5122ed([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x305707[_0x5122ed([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x5122ed([0x74,0x72,0x69,0x61,0x6c])&&(_0x3392e9=_0xa8ad4d(_0x5122ed([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x2f16d6()):_0x5122ed([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x5122ed([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x5122ed([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x5122ed([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x3cf648(){const _0x131516=[_0x5122ed([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x5122ed([0x74,0x72,0x69,0x61,0x6c])][_0x5122ed([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x305707[_0x5122ed([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x268be6/0x3e8:0xe10*_0x179255;return _0x305707[_0x5122ed([0x65,0x78,0x70])]<_0x131516;}function _0x4861be(){const _0x513533=_0x305707[_0x5122ed([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x513533&&(!!_0x513533[_0x5122ed([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5122ed([0x2a]))||!!_0x513533[_0x5122ed([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5122ed([0x55,0x50,0x4c,0x43])));}function _0x1b4d72(){const _0x10f1fa=_0x15c1,_0x1fe847=_0x305707[_0x5122ed([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x1fe847||0x0==_0x1fe847[_0x5122ed([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x3b45dc}=new URL(window[_0x5122ed([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x10f1fa(0x93)]);if(_0x1fe847[_0x5122ed([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3b45dc))return!0x0;const _0x118635=_0x3b45dc[_0x5122ed([0x73,0x70,0x6c,0x69,0x74])](_0x5122ed([0x2e]));return _0x1fe847[_0x5122ed([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x4f7b8a=>_0x4f7b8a[_0x5122ed([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5122ed([0x2a])))[_0x5122ed([0x6d,0x61,0x70])](_0x47f2ce=>_0x47f2ce[_0x5122ed([0x73,0x70,0x6c,0x69,0x74])](_0x5122ed([0x2e])))[_0x5122ed([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x3c77f3=>_0x3c77f3[_0x5122ed([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x118635[_0x5122ed([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x5122ed([0x6d,0x61,0x70])](_0x439a50=>Array(_0x118635[_0x5122ed([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x439a50[_0x5122ed([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x5122ed([0x66,0x69,0x6c,0x6c])](_0x439a50[0x0]===_0x5122ed([0x2a])?_0x5122ed([0x2a]):'')[_0x5122ed([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x439a50))[_0x5122ed([0x73,0x6f,0x6d,0x65])](_0x3c42ef=>_0x118635[_0x5122ed([0x65,0x76,0x65,0x72,0x79])]((_0x5cc3b1,_0x1f6feb)=>_0x3c42ef[_0x1f6feb]===_0x5cc3b1||_0x3c42ef[_0x1f6feb]===_0x5122ed([0x2a])));}function _0x2f16d6(){return _0x3392e9&&_0xa1f92b?new window[(_0x5122ed([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x59f338,_0x3e55ed)=>{_0x3392e9[_0x5122ed([0x74,0x68,0x65,0x6e])](_0x59f338,_0x3e55ed),_0xa1f92b[_0x5122ed([0x74,0x68,0x65,0x6e])](_0x2472f6=>{_0x2472f6!=_0x5122ed([0x56,0x61,0x6c,0x69,0x64])&&_0x59f338(_0x2472f6);},_0x3e55ed);}):_0x3392e9||_0xa1f92b||_0x5122ed([0x56,0x61,0x6c,0x69,0x64]);}}function _0x29c11d(_0x19eef9,_0x997a6a){return new window[(_0x5122ed([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x25510a=>{if(_0x589510())return _0x25510a(_0x5122ed([0x56,0x61,0x6c,0x69,0x64]));_0xc64d27(),_0x1c7585[_0x5122ed([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x5122ed([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x552600=!0x1;const _0x2facca=_0x23e3f8();function _0x49e375(_0xf5a6c8){return!!_0xf5a6c8&&(typeof _0xf5a6c8===_0x5122ed([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0xf5a6c8===_0x5122ed([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0xf5a6c8[_0x5122ed([0x74,0x68,0x65,0x6e])]===_0x5122ed([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0xf5a6c8[_0x5122ed([0x63,0x61,0x74,0x63,0x68])]===_0x5122ed([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0xd4e76b(_0x4ec719){_0x5f5aac(_0x4ec719)[_0x5122ed([0x74,0x68,0x65,0x6e])](_0x37fdfd=>{if(!_0x37fdfd||_0x37fdfd[_0x5122ed([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x5122ed([0x6f,0x6b]))return _0x5122ed([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x18aea1(_0xaf3793(_0x2facca+_0x997a6a))!=_0x37fdfd[_0x5122ed([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x5122ed([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x5122ed([0x56,0x61,0x6c,0x69,0x64]);})[_0x5122ed([0x74,0x68,0x65,0x6e])](_0x4de30a=>(_0x16240d(),_0x4de30a),()=>{const _0x5564f7=_0x248f21();return null==_0x5564f7?(_0x16240d(),_0x5122ed([0x56,0x61,0x6c,0x69,0x64])):_0x5122ed(_0x268be6-_0x5564f7>(0x7753083a^_0x17e0bc)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x5122ed([0x74,0x68,0x65,0x6e])](_0x25510a)[_0x5122ed([0x63,0x61,0x74,0x63,0x68])](()=>{_0x25510a(_0x5122ed([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x419a2e=0x536962ba^_0x17e0bc;function _0x16240d(){const _0x2c63ed=_0x5122ed([0x6c,0x6c,0x63,0x74,0x2d])+_0x18aea1(_0xaf3793(_0x19eef9)),_0xb7eb02=_0x441814(_0x18aea1(window[_0x5122ed([0x4d,0x61,0x74,0x68])][_0x5122ed([0x63,0x65,0x69,0x6c])](_0x268be6/_0x419a2e)));window[_0x5122ed([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x5122ed([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2c63ed,_0xb7eb02);}function _0x248f21(){const _0x56446a=_0x5122ed([0x6c,0x6c,0x63,0x74,0x2d])+_0x18aea1(_0xaf3793(_0x19eef9)),_0x96a34e=window[_0x5122ed([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x5122ed([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x56446a);return _0x96a34e?window[_0x5122ed([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x441814(_0x96a34e),0x10)*_0x419a2e:null;}function _0x5f5aac(_0x31351f){return new window[(_0x5122ed([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x26c0dc,_0x221793)=>{_0x31351f[_0x5122ed([0x74,0x68,0x65,0x6e])](_0x26c0dc,_0x221793),window[_0x5122ed([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x221793,0x535e58fa^_0x17e0bc);});}}_0x1c7585[_0x5122ed([0x6f,0x6e])](_0x5122ed([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x19ff40,_0x40d62d)=>{if(_0x40d62d[0x0]!=_0x19eef9)return _0x25510a(_0x5122ed([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x40d62d[0x1]={..._0x40d62d[0x1],[_0x5122ed([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x2facca};},{[_0x5122ed([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x5122ed([0x68,0x69,0x67,0x68])}),_0x1c7585[_0x5122ed([0x6f,0x6e])](_0x5122ed([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x2fff7c=>{_0x49e375(_0x2fff7c[_0x5122ed([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x552600=!0x0,_0xd4e76b(_0x2fff7c[_0x5122ed([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x5122ed([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x5122ed([0x6c,0x6f,0x77])}),_0x2541f1[_0x5122ed([0x74,0x68,0x65,0x6e])](()=>{_0x552600||_0x25510a(_0x5122ed([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x589510(){return _0x1c7585[_0x5122ed([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5122ed([0x76,0x69,0x65,0x77])][_0x5122ed([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x5122ed([0x61,0x75,0x74,0x6f]);}function _0xc64d27(){_0x1c7585[_0x5122ed([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5122ed([0x76,0x69,0x65,0x77])][_0x5122ed([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x5122ed([0x61,0x75,0x74,0x6f]);}}function _0xa8ad4d(_0x492c5c){const _0xc7bd93=[new window[(_0x5122ed([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x132cc9=>setTimeout(_0x132cc9,0x5356b2f6^_0x17e0bc)),_0x2541f1[_0x5122ed([0x74,0x68,0x65,0x6e])](()=>new window[(_0x5122ed([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4bd839=>{let _0x59a556=0x0;_0x1c7585[_0x5122ed([0x6d,0x6f,0x64,0x65,0x6c])][_0x5122ed([0x6f,0x6e])](_0x5122ed([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x5b31a1,_0x525ecd)=>{_0x525ecd[0x0][_0x5122ed([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x59a556++,_0x59a556==(0x535f8dc2^_0x17e0bc)&&(_0x4bd839(),_0x5b31a1[_0x5122ed([0x6f,0x66,0x66])]());});}))];return window[_0x5122ed([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x5122ed([0x72,0x61,0x63,0x65])](_0xc7bd93)[_0x5122ed([0x74,0x68,0x65,0x6e])](()=>_0x492c5c);}async function _0x5288d5(){await _0x2541f1,_0x1c7585[_0x5122ed([0x6d,0x6f,0x64,0x65,0x6c])][_0x5122ed([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x3637cc,_0x1c7585[_0x5122ed([0x6d,0x6f,0x64,0x65,0x6c])][_0x5122ed([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x3637cc,_0x1c7585[_0x5122ed([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x5122ed([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x5bedbe(_0x59dce4){const _0x2a0f8c=_0x3c1691();_0x1c7585[_0x2a0f8c]=_0x5122ed([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x59dce4,_0x59dce4!=_0x5122ed([0x56,0x61,0x6c,0x69,0x64])&&_0x5288d5();}function _0x3c1691(){const _0xad175e=window[_0x5122ed([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x5122ed([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x5122ed([0x6e,0x6f,0x77])]())[_0x5122ed([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x5122ed([0x2e]),'');let _0x325faa=_0x5122ed([0x68]);for(let _0x4bc5fa=0x0;_0x4bc5fa<_0xad175e[_0x5122ed([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4bc5fa+=0x2){let _0x54bd8e=window[_0x5122ed([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xad175e[_0x5122ed([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4bc5fa,_0x4bc5fa+0x2));_0x54bd8e>=_0x4d9363[_0x5122ed([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x54bd8e-=_0x4d9363[_0x5122ed([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x325faa+=_0x4d9363[_0x54bd8e];}return _0x325faa;}function _0x5255fa(){const _0x5af8c8=_0x619ae3[_0x5122ed([0x73,0x70,0x6c,0x69,0x74])](_0x5122ed([0x2e]));if(0x3!=_0x5af8c8[_0x5122ed([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x591ef1(_0x5af8c8[0x1]);function _0x591ef1(_0x5a4462){const _0x14a4ac=_0x5e6f95(_0x5a4462);return _0x14a4ac&&_0x5794d5()?_0x14a4ac:null;function _0x5794d5(){const _0x2825ba=_0x14a4ac[_0x5122ed([0x6a,0x74,0x69])],_0xf24ef1=window[_0x5122ed([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2825ba[_0x5122ed([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2825ba[_0x5122ed([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x5d2cc0={..._0x14a4ac,[_0x5122ed([0x6a,0x74,0x69])]:_0x2825ba[_0x5122ed([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x2825ba[_0x5122ed([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x5d2cc0[_0x5122ed([0x76,0x63])],_0xaf3793(_0x5d2cc0)==_0xf24ef1;}}}async function _0x48ac59(){let _0x2e14fa=!0x0;try{const _0x1914fe=_0x619ae3[_0x5122ed([0x73,0x70,0x6c,0x69,0x74])](_0x5122ed([0x2e])),[_0xd93aec,_0x19bebe,_0x245221]=_0x1914fe;return _0x5bb384(_0xd93aec),await _0x181548(_0xd93aec,_0x19bebe,_0x245221),_0x2e14fa;}catch{return!0x1;}function _0x5bb384(_0x527ebe){const _0x358c6a=_0x5e6f95(_0x527ebe);_0x358c6a&&_0x358c6a[_0x5122ed([0x61,0x6c,0x67])]==_0x5122ed([0x45,0x53,0x32,0x35,0x36])||(_0x2e14fa=!0x1);}async function _0x181548(_0x1f3e3a,_0x3f8600,_0xc3c2c8){const _0x5e4dc5=window[_0x5122ed([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x5122ed([0x66,0x72,0x6f,0x6d])](_0x67bba7(_0xc3c2c8),_0x35e016=>_0x35e016[_0x5122ed([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x23028=new window[(_0x5122ed([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x5122ed([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x1f3e3a+_0x5122ed([0x2e])+_0x3f8600),_0x43f8d8=window[_0x5122ed([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x5122ed([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x43f8d8)return;const _0x34a198=await _0x43f8d8[_0x5122ed([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x5122ed([0x6a,0x77,0x6b]),_0x4c4009,{[_0x5122ed([0x6e,0x61,0x6d,0x65])]:_0x5122ed([0x45,0x43,0x44,0x53,0x41]),[_0x5122ed([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x5122ed([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x5122ed([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x43f8d8[_0x5122ed([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x5122ed([0x6e,0x61,0x6d,0x65])]:_0x5122ed([0x45,0x43,0x44,0x53,0x41]),[_0x5122ed([0x68,0x61,0x73,0x68])]:{[_0x5122ed([0x6e,0x61,0x6d,0x65])]:_0x5122ed([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x34a198,_0x5e4dc5,_0x23028)||(_0x2e14fa=!0x1);}}function _0x5e6f95(_0x5f59ac){return _0x5f59ac[_0x5122ed([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x5122ed([0x65,0x79]))?JSON[_0x5122ed([0x70,0x61,0x72,0x73,0x65])](_0x67bba7(_0x5f59ac)):null;}function _0x67bba7(_0x1b05f3){return window[_0x5122ed([0x61,0x74,0x6f,0x62])](_0x1b05f3[_0x5122ed([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x5122ed([0x2b]))[_0x5122ed([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x5122ed([0x2f])));}function _0xaf3793(_0x40b80c){let _0x872a44=0x1505;function _0x5b5fe0(_0x59bf0a){for(let _0x2db10d=0x0;_0x2db10d<_0x59bf0a[_0x5122ed([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2db10d++){const _0x48b82f=_0x59bf0a[_0x5122ed([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x2db10d);_0x872a44=(_0x872a44<<0x5)+_0x872a44+_0x48b82f,_0x872a44&=_0x872a44;}}function _0x4a6146(_0x4f8c55){Array[_0x5122ed([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x4f8c55)?_0x4f8c55[_0x5122ed([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x4a6146):_0x4f8c55&&typeof _0x4f8c55==_0x5122ed([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x5122ed([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x4f8c55)[_0x5122ed([0x73,0x6f,0x72,0x74])]()[_0x5122ed([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x1c8d61,_0x1aeeeb])=>{_0x5b5fe0(_0x1c8d61),_0x4a6146(_0x1aeeeb);}):_0x5b5fe0(window[_0x5122ed([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x4f8c55));}return _0x4a6146(_0x40b80c),_0x872a44>>>0x0;}function _0x18aea1(_0x17e1d3){return _0x17e1d3[_0x5122ed([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x5122ed([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x5122ed([0x30]));}function _0x441814(_0x4fec9b){return _0x4fec9b[_0x5122ed([0x73,0x70,0x6c,0x69,0x74])]('')[_0x5122ed([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x5122ed([0x6a,0x6f,0x69,0x6e])]('');}function _0x3637cc(){}function _0x5122ed(_0x2850dc){const _0x2df30c=_0x15c1;return _0x2850dc[_0x2df30c(0xa6)](_0x16186f=>String[_0x2df30c(0xc6)](_0x16186f))[_0x2df30c(0xaa)]('');}_0x5bedbe(await _0x510afe());}(this);}[_0xd416de(0x99)](){const _0x1974ea=_0xd416de,_0x57390d=this[_0x1974ea(0xb6)][_0x1974ea(0xc1)][_0x1974ea(0xbb)];_0x57390d[_0x1974ea(0x8b)](_0x1974ea(0xa3))&&_0x57390d[_0x1974ea(0xa7)](_0x1974ea(0xa3),{'allowAttributes':[_0x1974ea(0xc7)]}),_0x57390d[_0x1974ea(0x8b)](_0x1974ea(0x87))&&_0x57390d[_0x1974ea(0xa7)](_0x1974ea(0x87),{'allowAttributes':[_0x1974ea(0xc7)]});}[_0xd416de(0x98)](){const _0x1bc77f=_0xd416de,_0x3c88e2=this[_0x1bc77f(0xb6)];_0x3c88e2[_0x1bc77f(0xaf)][_0x1bc77f(0xba)](_0x1bc77f(0x8c))[_0x1bc77f(0xac)]({'model':_0x1bc77f(0xc7),'view':_0x1bc77f(0x8d)}),_0x3c88e2[_0x1bc77f(0xaf)][_0x1bc77f(0xba)](_0x1bc77f(0xa1))[_0x1bc77f(0xa0)]({'model':{'key':_0x1bc77f(0xc7),'value':_0x3af3bf=>_0x3af3bf[_0x1bc77f(0x94)](_0x1bc77f(0x8d))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x4e0ffa=_0x3c88e2[_0x1bc77f(0x83)][_0x1bc77f(0xab)](_0x1bc77f(0xc3));_0x4e0ffa&&this[_0x1bc77f(0x84)](_0x4e0ffa,_0x1bc77f(0xad),(_0x5ea0ab,[_0x451e45,_0x2f8592])=>{const _0x471df9=_0x1bc77f;_0x451e45[_0x471df9(0xcc)](_0x471df9(0xc7),_0x2f8592);});}[_0xd416de(0x8a)](){const _0x2e453d=_0xd416de,_0xb0b541=this[_0x2e453d(0xb6)][_0x2e453d(0x85)][_0x2e453d(0xab)](_0x2e453d(0x88))||{},_0x251c8b=this[_0x2e453d(0xb6)][_0x2e453d(0x85)][_0x2e453d(0xab)](_0x2e453d(0x91))||'';this[_0x2e453d(0x9a)]=_0x20e4bf(_0xd69da3[_0x2e453d(0x80)],_0x2e453d(0xb1),{..._0xb0b541,'pubkey':_0x251c8b,'ctx-name':_0x2e453d(0xcd)+this[_0x2e453d(0xb7)],'sourceList':'','imgOnly':_0x2e453d(0x8f),'removeCopyright':_0x2e453d(0x8f),'localeName':this[_0x2e453d(0xb6)][_0x2e453d(0xd4)][_0x2e453d(0xae)],'externalSourcesEmbedCss':_0x2e453d(0xcb)}),this[_0x2e453d(0x9a)][_0x2e453d(0xc0)]=_0x25d56f=>{const _0x14a561=_0x2e453d;if(_0x14a561(0xb8)==_0x25d56f)return _0x14a561(0x9d);},_0xd69da3[_0x2e453d(0x80)][_0x2e453d(0x92)][_0x2e453d(0xd0)](this[_0x2e453d(0x9a)]);}[_0xd416de(0xb5)](){const _0x3de3a9=_0xd416de;this[_0x3de3a9(0xb9)]=_0x20e4bf(_0xd69da3[_0x3de3a9(0x80)],_0x3de3a9(0xbc),{'ctx-name':_0x3de3a9(0xcd)+this[_0x3de3a9(0xb7)]}),_0xd69da3[_0x3de3a9(0x80)][_0x3de3a9(0x92)][_0x3de3a9(0xd0)](this[_0x3de3a9(0xb9)]);}[_0xd416de(0x89)](){const _0x3003a1=_0xd416de,_0x24825b=this[_0x3003a1(0xb6)][_0x3003a1(0x83)][_0x3003a1(0xab)](_0x3003a1(0xc4));_0x24825b&&this[_0x3003a1(0x84)](_0x24825b,_0x3003a1(0xd3),()=>{const _0x4f7e3c=_0x3003a1,_0x2a7e56=this[_0x4f7e3c(0xb6)][_0x4f7e3c(0xc1)][_0x4f7e3c(0x80)][_0x4f7e3c(0x9e)][_0x4f7e3c(0xc8)]();_0x2a7e56&&_0x2a7e56[_0x4f7e3c(0x94)](_0x4f7e3c(0xc7))&&this[_0x4f7e3c(0xb6)][_0x4f7e3c(0x9c)][_0x4f7e3c(0x82)][_0x4f7e3c(0xc9)](_0x4f7e3c(0xbf),()=>{const _0x4ed509=_0x4f7e3c;_0x3cc371(this[_0x4ed509(0xb6)],_0x2a7e56);});});const _0x12b107=this[_0x3003a1(0xb6)][_0x3003a1(0x83)][_0x3003a1(0xab)](_0x3003a1(0xb2));_0x12b107&&this[_0x3003a1(0x84)](_0x12b107,_0x3003a1(0xd3),()=>{const _0x2516f2=_0x3003a1,_0xd6a4aa=this[_0x2516f2(0xb6)][_0x2516f2(0xc1)][_0x2516f2(0x80)][_0x2516f2(0x9e)][_0x2516f2(0xc8)]();_0xd6a4aa&&_0xd6a4aa[_0x2516f2(0x94)](_0x2516f2(0xc7))&&this[_0x2516f2(0xb6)][_0x2516f2(0x9c)][_0x2516f2(0x82)][_0x2516f2(0xc9)](_0x2516f2(0xbf),()=>{const _0x1393ce=_0x2516f2;_0x3cc371(this[_0x1393ce(0xb6)],_0xd6a4aa);});});}}
|
|
23
|
+
const _0x1a3bce=_0xf3a3;(function(_0x56d257,_0x5dd7e6){const _0x492b5f=_0xf3a3,_0xd3dd0a=_0x56d257();while(!![]){try{const _0x557984=parseInt(_0x492b5f(0xa5))/0x1+parseInt(_0x492b5f(0xd2))/0x2*(parseInt(_0x492b5f(0xc2))/0x3)+-parseInt(_0x492b5f(0x90))/0x4+-parseInt(_0x492b5f(0xa0))/0x5+-parseInt(_0x492b5f(0xa9))/0x6+parseInt(_0x492b5f(0xd8))/0x7+parseInt(_0x492b5f(0xbc))/0x8;if(_0x557984===_0x5dd7e6)break;else _0xd3dd0a['push'](_0xd3dd0a['shift']());}catch(_0x1bb269){_0xd3dd0a['push'](_0xd3dd0a['shift']());}}}(_0x49b9,0xa62c2));function _0xf3a3(_0x5245ef,_0x3d75d2){const _0x49b9bb=_0x49b9();return _0xf3a3=function(_0xf3a380,_0x93cd6b){_0xf3a380=_0xf3a380-0x89;let _0x24fd04=_0x49b9bb[_0xf3a380];return _0x24fd04;},_0xf3a3(_0x5245ef,_0x3d75d2);}import{Plugin as _0x1551c1}from'ckeditor5/src/core.js';import{Dialog as _0xe8373e}from'ckeditor5/src/ui.js';import{createElement as _0x47029f,global as _0x2b4bd0,uid as _0x5035bc}from'ckeditor5/src/utils.js';import{UploadcareCommand as _0x2eecff}from'./uploadcarecommand.js';import{UploadcareUploadAdapter as _0xa0cd43}from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0x3f1661}from'./utils/editingutils.js';export class UploadcareEditing extends _0x1551c1{[_0x1a3bce(0xa1)]=null;[_0x1a3bce(0x95)]=null;static get[_0x1a3bce(0xbd)](){const _0x31289c=_0x1a3bce;return _0x31289c(0xba);}static get[_0x1a3bce(0x9c)](){const _0x50af38=_0x1a3bce;return[_0x50af38(0x98),_0xa0cd43,_0xe8373e];}static get[_0x1a3bce(0x9b)](){return!0x0;}static get[_0x1a3bce(0x96)](){return!0x0;}[_0x1a3bce(0x99)];get[_0x1a3bce(0xb3)](){const _0x487cd4=_0x1a3bce;return this[_0x487cd4(0xa1)];}get[_0x1a3bce(0xdb)](){const _0x43fe10=_0x1a3bce;return this[_0x43fe10(0x95)];}constructor(_0x31ce09){const _0x9ca3ec=_0x1a3bce;super(_0x31ce09),this[_0x9ca3ec(0x99)]=_0x5035bc();}[_0x1a3bce(0xcd)](){const _0x5c0c65=_0x1a3bce,_0x2771a0=this[_0x5c0c65(0xb1)];_0x2771a0[_0x5c0c65(0xb6)][_0x5c0c65(0xb0)](_0x5c0c65(0x9d),new _0x2eecff(_0x2771a0));}[_0x1a3bce(0xc8)](){const _0x266724=_0x1a3bce;this[_0x266724(0xae)](),this[_0x266724(0x8b)](),this[_0x266724(0x8e)](),this[_0x266724(0xca)](),this[_0x266724(0x92)](),this[_0x266724(0x97)](this[_0x266724(0xb1)],_0x266724(0xb7),()=>{const _0x1b51ca=_0x266724;this[_0x1b51ca(0xa1)]&&(this[_0x1b51ca(0xa1)][_0x1b51ca(0x8f)](),this[_0x1b51ca(0xa1)]=null),this[_0x1b51ca(0x95)]&&(this[_0x1b51ca(0x95)][_0x1b51ca(0x8f)](),this[_0x1b51ca(0x95)]=null);const _0x4dfabc=_0x2b4bd0[_0x1b51ca(0xc9)][_0x1b51ca(0xad)](_0x1b51ca(0xce));_0x4dfabc&&_0x4dfabc[_0x1b51ca(0x8f)]();}),async function(_0xe15f3d){const _0x5dd5b4=_0x21d995([0x68,0x67,0x50,0x36,0x38,0x70,0x71,0x63,0x37,0x4f,0x42,0x4a,0x78,0x39,0x75,0x33,0x7a,0x72,0x48,0x61,0x74,0x59,0x55,0x58,0x66,0x30,0x34,0x54,0x64,0x56,0x6b,0x4d,0x46,0x6d,0x77,0x43,0x73,0x35,0x53,0x44,0x41,0x76,0x6a,0x32,0x31,0x69,0x57,0x51,0x47,0x65,0x5a,0x4b,0x4c,0x79,0x52,0x6c,0x45,0x4e,0x6e,0x6f,0x49,0x62]),_0x5872af=0x535f8c3a,_0x42111e=0x5358f692^_0x5872af,_0x2b63fe=window[_0x21d995([0x44,0x61,0x74,0x65])][_0x21d995([0x6e,0x6f,0x77])](),_0xcb524c=_0xe15f3d[_0x21d995([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x1e44d0=new window[(_0x21d995([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4afe66=>{_0xcb524c[_0x21d995([0x6f,0x6e,0x63,0x65])](_0x21d995([0x72,0x65,0x61,0x64,0x79]),_0x4afe66);}),_0x496812={[_0x21d995([0x6b,0x74,0x79])]:_0x21d995([0x45,0x43]),[_0x21d995([0x75,0x73,0x65])]:_0x21d995([0x73,0x69,0x67]),[_0x21d995([0x63,0x72,0x76])]:_0x21d995([0x50,0x2d,0x32,0x35,0x36]),[_0x21d995([0x78])]:_0x21d995([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]),[_0x21d995([0x79])]:_0x21d995([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]),[_0x21d995([0x61,0x6c,0x67])]:_0x21d995([0x45,0x53,0x32,0x35,0x36])},_0x1415b5=_0xcb524c[_0x21d995([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x21d995([0x67,0x65,0x74])](_0x21d995([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x9016cd(){let _0x5b2da2,_0x31d70f=null,_0x508f2f=null;try{if(_0x1415b5==_0x21d995([0x47,0x50,0x4c]))return _0x21d995([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x5b2da2=_0x4c5ca1(),!_0x5b2da2)return _0x21d995([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x5b2da2[_0x21d995([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x508f2f=_0x30c5b1(_0x5b2da2[_0x21d995([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x5b2da2[_0x21d995([0x6a,0x74,0x69])])),await _0x2dea8f()?_0x41b499()?_0x1ed785()?_0x21d995([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x13147b()?(_0x5b2da2[_0x21d995([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x21d995([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x31d70f=_0x11fd24(_0x21d995([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x5b2da2[_0x21d995([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x21d995([0x74,0x72,0x69,0x61,0x6c])&&(_0x31d70f=_0x11fd24(_0x21d995([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0xbe497b()):_0x21d995([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x21d995([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x21d995([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x21d995([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x1ed785(){const _0x384a04=[_0x21d995([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x21d995([0x74,0x72,0x69,0x61,0x6c])][_0x21d995([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5b2da2[_0x21d995([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x2b63fe/0x3e8:0xe10*_0x42111e;return _0x5b2da2[_0x21d995([0x65,0x78,0x70])]<_0x384a04;}function _0x41b499(){const _0x2e3127=_0x5b2da2[_0x21d995([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x2e3127&&(!!_0x2e3127[_0x21d995([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x21d995([0x2a]))||!!_0x2e3127[_0x21d995([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x21d995([0x55,0x50,0x4c,0x43])));}function _0x13147b(){const _0x5c173f=_0xf3a3,_0x45d274=_0x5b2da2[_0x21d995([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x45d274||0x0==_0x45d274[_0x21d995([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x1103bf}=new URL(window[_0x21d995([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x5c173f(0xc1)]);if(_0x45d274[_0x21d995([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1103bf))return!0x0;const _0x320be7=_0x1103bf[_0x21d995([0x73,0x70,0x6c,0x69,0x74])](_0x21d995([0x2e]));return _0x45d274[_0x21d995([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x71682d=>_0x71682d[_0x21d995([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x21d995([0x2a])))[_0x21d995([0x6d,0x61,0x70])](_0x492973=>_0x492973[_0x21d995([0x73,0x70,0x6c,0x69,0x74])](_0x21d995([0x2e])))[_0x21d995([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x2a4dd6=>_0x2a4dd6[_0x21d995([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x320be7[_0x21d995([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x21d995([0x6d,0x61,0x70])](_0x16a1a3=>Array(_0x320be7[_0x21d995([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x16a1a3[_0x21d995([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x21d995([0x66,0x69,0x6c,0x6c])](_0x16a1a3[0x0]===_0x21d995([0x2a])?_0x21d995([0x2a]):'')[_0x21d995([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x16a1a3))[_0x21d995([0x73,0x6f,0x6d,0x65])](_0x19df00=>_0x320be7[_0x21d995([0x65,0x76,0x65,0x72,0x79])]((_0x52e126,_0x530703)=>_0x19df00[_0x530703]===_0x52e126||_0x19df00[_0x530703]===_0x21d995([0x2a])));}function _0xbe497b(){return _0x31d70f&&_0x508f2f?new window[(_0x21d995([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x21c6eb,_0x2024d5)=>{_0x31d70f[_0x21d995([0x74,0x68,0x65,0x6e])](_0x21c6eb,_0x2024d5),_0x508f2f[_0x21d995([0x74,0x68,0x65,0x6e])](_0x46e26a=>{_0x46e26a!=_0x21d995([0x56,0x61,0x6c,0x69,0x64])&&_0x21c6eb(_0x46e26a);},_0x2024d5);}):_0x31d70f||_0x508f2f||_0x21d995([0x56,0x61,0x6c,0x69,0x64]);}}function _0x30c5b1(_0x4bf847,_0x3b6bef){return new window[(_0x21d995([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x40539d=>{if(_0x336b74())return _0x40539d(_0x21d995([0x56,0x61,0x6c,0x69,0x64]));_0x1838e3(),_0xcb524c[_0x21d995([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x21d995([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x45ef6f=!0x1;const _0x13d2da=_0x5035bc();function _0x458ee5(_0x479505){return!!_0x479505&&(typeof _0x479505===_0x21d995([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x479505===_0x21d995([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x479505[_0x21d995([0x74,0x68,0x65,0x6e])]===_0x21d995([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x479505[_0x21d995([0x63,0x61,0x74,0x63,0x68])]===_0x21d995([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x26361e(_0x25626a){_0x422bf9(_0x25626a)[_0x21d995([0x74,0x68,0x65,0x6e])](_0x58d5f0=>{if(!_0x58d5f0||_0x58d5f0[_0x21d995([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x21d995([0x6f,0x6b]))return _0x21d995([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x4c4e28(_0x3eeec0(_0x13d2da+_0x3b6bef))!=_0x58d5f0[_0x21d995([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x21d995([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x21d995([0x56,0x61,0x6c,0x69,0x64]);})[_0x21d995([0x74,0x68,0x65,0x6e])](_0x4b6c79=>(_0x25fa41(),_0x4b6c79),()=>{const _0x21442a=_0x1d900c();return null==_0x21442a?(_0x25fa41(),_0x21d995([0x56,0x61,0x6c,0x69,0x64])):_0x21d995(_0x2b63fe-_0x21442a>(0x7753083a^_0x5872af)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x21d995([0x74,0x68,0x65,0x6e])](_0x40539d)[_0x21d995([0x63,0x61,0x74,0x63,0x68])](()=>{_0x40539d(_0x21d995([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x144929=0x536962ba^_0x5872af;function _0x25fa41(){const _0x41ac16=_0x21d995([0x6c,0x6c,0x63,0x74,0x2d])+_0x4c4e28(_0x3eeec0(_0x4bf847)),_0x2e070f=_0x5a33a6(_0x4c4e28(window[_0x21d995([0x4d,0x61,0x74,0x68])][_0x21d995([0x63,0x65,0x69,0x6c])](_0x2b63fe/_0x144929)));window[_0x21d995([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x21d995([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x41ac16,_0x2e070f);}function _0x1d900c(){const _0x1738e1=_0x21d995([0x6c,0x6c,0x63,0x74,0x2d])+_0x4c4e28(_0x3eeec0(_0x4bf847)),_0x4f3ba7=window[_0x21d995([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x21d995([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1738e1);return _0x4f3ba7?window[_0x21d995([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5a33a6(_0x4f3ba7),0x10)*_0x144929:null;}function _0x422bf9(_0xe9ef9){return new window[(_0x21d995([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x2936cc,_0x459568)=>{_0xe9ef9[_0x21d995([0x74,0x68,0x65,0x6e])](_0x2936cc,_0x459568),window[_0x21d995([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x459568,0x535e58fa^_0x5872af);});}}_0xcb524c[_0x21d995([0x6f,0x6e])](_0x21d995([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0xcda637,_0x2afedd)=>{if(_0x2afedd[0x0]!=_0x4bf847)return _0x40539d(_0x21d995([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x2afedd[0x1]={..._0x2afedd[0x1],[_0x21d995([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x13d2da};},{[_0x21d995([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x21d995([0x68,0x69,0x67,0x68])}),_0xcb524c[_0x21d995([0x6f,0x6e])](_0x21d995([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x437022=>{_0x458ee5(_0x437022[_0x21d995([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x45ef6f=!0x0,_0x26361e(_0x437022[_0x21d995([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x21d995([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x21d995([0x6c,0x6f,0x77])}),_0x1e44d0[_0x21d995([0x74,0x68,0x65,0x6e])](()=>{_0x45ef6f||_0x40539d(_0x21d995([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x336b74(){return _0xcb524c[_0x21d995([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x21d995([0x76,0x69,0x65,0x77])][_0x21d995([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x21d995([0x61,0x75,0x74,0x6f]);}function _0x1838e3(){_0xcb524c[_0x21d995([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x21d995([0x76,0x69,0x65,0x77])][_0x21d995([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x21d995([0x61,0x75,0x74,0x6f]);}}function _0x11fd24(_0x1a7984){const _0x468c1b=[new window[(_0x21d995([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x10bd58=>setTimeout(_0x10bd58,0x5356b2f6^_0x5872af)),_0x1e44d0[_0x21d995([0x74,0x68,0x65,0x6e])](()=>new window[(_0x21d995([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5a78c3=>{let _0x581d16=0x0;_0xcb524c[_0x21d995([0x6d,0x6f,0x64,0x65,0x6c])][_0x21d995([0x6f,0x6e])](_0x21d995([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x4d285c,_0x1fb45d)=>{_0x1fb45d[0x0][_0x21d995([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x581d16++,_0x581d16==(0x535f8dc2^_0x5872af)&&(_0x5a78c3(),_0x4d285c[_0x21d995([0x6f,0x66,0x66])]());});}))];return window[_0x21d995([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x21d995([0x72,0x61,0x63,0x65])](_0x468c1b)[_0x21d995([0x74,0x68,0x65,0x6e])](()=>_0x1a7984);}async function _0x2d60ea(){await _0x1e44d0,_0xcb524c[_0x21d995([0x6d,0x6f,0x64,0x65,0x6c])][_0x21d995([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0xf6fa78,_0xcb524c[_0x21d995([0x6d,0x6f,0x64,0x65,0x6c])][_0x21d995([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0xf6fa78,_0xcb524c[_0x21d995([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x21d995([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x4c2ee7(_0x1d455f){const _0x1e3f54=_0x58f0cf();_0xcb524c[_0x1e3f54]=_0x21d995([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x1d455f,_0x1d455f!=_0x21d995([0x56,0x61,0x6c,0x69,0x64])&&_0x2d60ea();}function _0x58f0cf(){const _0x3bb48b=window[_0x21d995([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x21d995([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x21d995([0x6e,0x6f,0x77])]())[_0x21d995([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x21d995([0x2e]),'');let _0x542af0=_0x21d995([0x68]);for(let _0x554163=0x0;_0x554163<_0x3bb48b[_0x21d995([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x554163+=0x2){let _0x24d59e=window[_0x21d995([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3bb48b[_0x21d995([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x554163,_0x554163+0x2));_0x24d59e>=_0x5dd5b4[_0x21d995([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x24d59e-=_0x5dd5b4[_0x21d995([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x542af0+=_0x5dd5b4[_0x24d59e];}return _0x542af0;}function _0x4c5ca1(){const _0x271674=_0x1415b5[_0x21d995([0x73,0x70,0x6c,0x69,0x74])](_0x21d995([0x2e]));if(0x3!=_0x271674[_0x21d995([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x3abdb8(_0x271674[0x1]);function _0x3abdb8(_0xc1ae87){const _0x436a3d=_0x2fc0a2(_0xc1ae87);return _0x436a3d&&_0x14bda0()?_0x436a3d:null;function _0x14bda0(){const _0x3011fb=_0x436a3d[_0x21d995([0x6a,0x74,0x69])],_0xb1ca27=window[_0x21d995([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3011fb[_0x21d995([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3011fb[_0x21d995([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x18358f={..._0x436a3d,[_0x21d995([0x6a,0x74,0x69])]:_0x3011fb[_0x21d995([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x3011fb[_0x21d995([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x18358f[_0x21d995([0x76,0x63])],_0x3eeec0(_0x18358f)==_0xb1ca27;}}}async function _0x2dea8f(){let _0x16c6eb=!0x0;try{const _0x246c6e=_0x1415b5[_0x21d995([0x73,0x70,0x6c,0x69,0x74])](_0x21d995([0x2e])),[_0x2fde71,_0x3b7e33,_0xdaf2bf]=_0x246c6e;return _0x2a2055(_0x2fde71),await _0xb345fe(_0x2fde71,_0x3b7e33,_0xdaf2bf),_0x16c6eb;}catch{return!0x1;}function _0x2a2055(_0xe667e5){const _0x5b6221=_0x2fc0a2(_0xe667e5);_0x5b6221&&_0x5b6221[_0x21d995([0x61,0x6c,0x67])]==_0x21d995([0x45,0x53,0x32,0x35,0x36])||(_0x16c6eb=!0x1);}async function _0xb345fe(_0x6e63cf,_0x1567db,_0x2b949d){const _0x33a967=window[_0x21d995([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x21d995([0x66,0x72,0x6f,0x6d])](_0x2c595a(_0x2b949d),_0x31f749=>_0x31f749[_0x21d995([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x5a93f5=new window[(_0x21d995([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x21d995([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x6e63cf+_0x21d995([0x2e])+_0x1567db),_0x5018b5=window[_0x21d995([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x21d995([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x5018b5)return;const _0x514fce=await _0x5018b5[_0x21d995([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x21d995([0x6a,0x77,0x6b]),_0x496812,{[_0x21d995([0x6e,0x61,0x6d,0x65])]:_0x21d995([0x45,0x43,0x44,0x53,0x41]),[_0x21d995([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x21d995([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x21d995([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x5018b5[_0x21d995([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x21d995([0x6e,0x61,0x6d,0x65])]:_0x21d995([0x45,0x43,0x44,0x53,0x41]),[_0x21d995([0x68,0x61,0x73,0x68])]:{[_0x21d995([0x6e,0x61,0x6d,0x65])]:_0x21d995([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x514fce,_0x33a967,_0x5a93f5)||(_0x16c6eb=!0x1);}}function _0x2fc0a2(_0x431ae0){return _0x431ae0[_0x21d995([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x21d995([0x65,0x79]))?JSON[_0x21d995([0x70,0x61,0x72,0x73,0x65])](_0x2c595a(_0x431ae0)):null;}function _0x2c595a(_0x5754af){return window[_0x21d995([0x61,0x74,0x6f,0x62])](_0x5754af[_0x21d995([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x21d995([0x2b]))[_0x21d995([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x21d995([0x2f])));}function _0x3eeec0(_0x2c1e7a){let _0x48819c=0x1505;function _0x196be8(_0xa9eabc){for(let _0x12759a=0x0;_0x12759a<_0xa9eabc[_0x21d995([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x12759a++){const _0x5bd01=_0xa9eabc[_0x21d995([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x12759a);_0x48819c=(_0x48819c<<0x5)+_0x48819c+_0x5bd01,_0x48819c&=_0x48819c;}}function _0x302989(_0x4f8ffc){Array[_0x21d995([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x4f8ffc)?_0x4f8ffc[_0x21d995([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x302989):_0x4f8ffc&&typeof _0x4f8ffc==_0x21d995([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x21d995([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x4f8ffc)[_0x21d995([0x73,0x6f,0x72,0x74])]()[_0x21d995([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x5b3b21,_0x13c18c])=>{_0x196be8(_0x5b3b21),_0x302989(_0x13c18c);}):_0x196be8(window[_0x21d995([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x4f8ffc));}return _0x302989(_0x2c1e7a),_0x48819c>>>0x0;}function _0x4c4e28(_0x40d150){return _0x40d150[_0x21d995([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x21d995([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x21d995([0x30]));}function _0x5a33a6(_0x1933d3){return _0x1933d3[_0x21d995([0x73,0x70,0x6c,0x69,0x74])]('')[_0x21d995([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x21d995([0x6a,0x6f,0x69,0x6e])]('');}function _0xf6fa78(){}function _0x21d995(_0x592640){const _0x3a827e=_0xf3a3;return _0x592640[_0x3a827e(0xda)](_0x143f44=>String[_0x3a827e(0xd9)](_0x143f44))[_0x3a827e(0xd7)]('');}_0x4c2ee7(await _0x9016cd());}(this);}[_0x1a3bce(0xae)](){const _0x56e5e1=_0x1a3bce,_0x348821=this[_0x56e5e1(0xb1)][_0x56e5e1(0xc0)][_0x56e5e1(0xc5)];_0x348821[_0x56e5e1(0xac)](_0x56e5e1(0x9e))&&_0x348821[_0x56e5e1(0x8d)](_0x56e5e1(0x9e),{'allowAttributes':[_0x56e5e1(0x93)]}),_0x348821[_0x56e5e1(0xac)](_0x56e5e1(0xa3))&&_0x348821[_0x56e5e1(0x8d)](_0x56e5e1(0xa3),{'allowAttributes':[_0x56e5e1(0x93)]});}[_0x1a3bce(0x8b)](){const _0x391fd0=_0x1a3bce,_0x4a3d94=this[_0x391fd0(0xb1)];_0x4a3d94[_0x391fd0(0xbb)][_0x391fd0(0x9f)](_0x391fd0(0xb5))[_0x391fd0(0xd4)]({'model':_0x391fd0(0x93),'view':_0x391fd0(0xcb)}),_0x4a3d94[_0x391fd0(0xbb)][_0x391fd0(0x9f)](_0x391fd0(0xb9))[_0x391fd0(0xab)]({'model':{'key':_0x391fd0(0x93),'value':_0x33c9fb=>_0x33c9fb[_0x391fd0(0xc6)](_0x391fd0(0xcb))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x3fd6ea=_0x4a3d94[_0x391fd0(0xb6)][_0x391fd0(0xc7)](_0x391fd0(0x8c));_0x3fd6ea&&this[_0x391fd0(0x97)](_0x3fd6ea,_0x391fd0(0xaa),(_0x4f02c2,[_0x2769be,_0x4f3d75])=>{const _0x292c59=_0x391fd0;_0x2769be[_0x292c59(0xc4)](_0x292c59(0x93),_0x4f3d75);});}[_0x1a3bce(0x8e)](){const _0x4e9c8b=_0x1a3bce,_0x5f1d20=this[_0x4e9c8b(0xb1)][_0x4e9c8b(0xaf)][_0x4e9c8b(0xc7)](_0x4e9c8b(0xc3))||{},_0x4cb76d=this[_0x4e9c8b(0xb1)][_0x4e9c8b(0xaf)][_0x4e9c8b(0xc7)](_0x4e9c8b(0xa4))||'';this[_0x4e9c8b(0xa1)]=_0x47029f(_0x2b4bd0[_0x4e9c8b(0xc9)],_0x4e9c8b(0xa7),{..._0x5f1d20,'pubkey':_0x4cb76d,'ctx-name':_0x4e9c8b(0xd0)+this[_0x4e9c8b(0x99)],'sourceList':'','imgOnly':_0x4e9c8b(0xb4),'removeCopyright':_0x4e9c8b(0xb4),'localeName':this[_0x4e9c8b(0xb1)][_0x4e9c8b(0xbf)][_0x4e9c8b(0xbe)],'externalSourcesEmbedCss':_0x4e9c8b(0xa2)}),this[_0x4e9c8b(0xa1)][_0x4e9c8b(0xa6)]=_0x269a63=>{const _0x137ef4=_0x4e9c8b;if(_0x137ef4(0xb2)==_0x269a63)return _0x137ef4(0xd3);},_0x2b4bd0[_0x4e9c8b(0xc9)][_0x4e9c8b(0xd6)][_0x4e9c8b(0x8a)](this[_0x4e9c8b(0xa1)]);}[_0x1a3bce(0xca)](){const _0x546b0e=_0x1a3bce;this[_0x546b0e(0x95)]=_0x47029f(_0x2b4bd0[_0x546b0e(0xc9)],_0x546b0e(0x91),{'ctx-name':_0x546b0e(0xd0)+this[_0x546b0e(0x99)]}),_0x2b4bd0[_0x546b0e(0xc9)][_0x546b0e(0xd6)][_0x546b0e(0x8a)](this[_0x546b0e(0x95)]);}[_0x1a3bce(0x92)](){const _0x5232e1=_0x1a3bce,_0x5226d8=this[_0x5232e1(0xb1)][_0x5232e1(0xb6)][_0x5232e1(0xc7)](_0x5232e1(0xd5));_0x5226d8&&this[_0x5232e1(0x97)](_0x5226d8,_0x5232e1(0xa8),()=>{const _0x50cf11=_0x5232e1,_0x3457cb=this[_0x50cf11(0xb1)][_0x50cf11(0xc0)][_0x50cf11(0xc9)][_0x50cf11(0xcf)][_0x50cf11(0x94)]();_0x3457cb&&_0x3457cb[_0x50cf11(0xc6)](_0x50cf11(0x93))&&this[_0x50cf11(0xb1)][_0x50cf11(0xb8)][_0x50cf11(0xd1)][_0x50cf11(0x89)](_0x50cf11(0x9a),()=>{const _0x13292d=_0x50cf11;_0x3f1661(this[_0x13292d(0xb1)],_0x3457cb);});});const _0x58d3d9=this[_0x5232e1(0xb1)][_0x5232e1(0xb6)][_0x5232e1(0xc7)](_0x5232e1(0xcc));_0x58d3d9&&this[_0x5232e1(0x97)](_0x58d3d9,_0x5232e1(0xa8),()=>{const _0x47c75b=_0x5232e1,_0x39c25a=this[_0x47c75b(0xb1)][_0x47c75b(0xc0)][_0x47c75b(0xc9)][_0x47c75b(0xcf)][_0x47c75b(0x94)]();_0x39c25a&&_0x39c25a[_0x47c75b(0xc6)](_0x47c75b(0x93))&&this[_0x47c75b(0xb1)][_0x47c75b(0xb8)][_0x47c75b(0xd1)][_0x47c75b(0x89)](_0x47c75b(0x9a),()=>{const _0x5b46c1=_0x47c75b;_0x3f1661(this[_0x5b46c1(0xb1)],_0x39c25a);});});}}function _0x49b9(){const _0x3aaa5c=['extend','_initConfig','remove','3691064FgOAlO','uc-upload-ctx-provider','_initImageProcessingIndicator','uploadcareImageId','getSelectedElement','_ctxElement','isPremiumPlugin','listenTo','PictureEditing','ucContextId','render','isOfficialPlugin','requires','uploadcare','imageBlock','for','5623525NTapbq','_configElement','\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','imageInline','uploadcare.pubkey','108173kVuHJJ','iconHrefResolver','uc-config','execute','6444288eSSQNE','cleanupImage','elementToAttribute','isRegistered','querySelector','_initSchema','config','add','editor','closeMax','configElement','true','downcast','commands','destroy','editing','upcast','UploadcareEditing','conversion','18669024nQmNCZ','pluginName','contentLanguage','locale','model','href','3UREKGC','uploadcare.uploader','removeAttribute','schema','getAttribute','get','afterInit','document','_initCtx','data-uc-image-id','uploadcareImageReplace','init','input[uploadcare-file-input]','selection','uploader-','view','1046778dFGfoA','#uc-icon-arrow-down','attributeToAttribute','insertImage','body','join','5858797BcRzel','fromCharCode','map','ctxElement','once','appendChild','_initConversion','replaceImageSource'];_0x49b9=function(){return _0x3aaa5c;};return _0x49b9();}
|