@ckeditor/ckeditor5-uploadcare 47.3.0-alpha.4 → 47.3.0-alpha.5

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/dist/index.js CHANGED
@@ -20,6 +20,6 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{Plugin as _0x18110a,Command as _0x3c77fd}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x592dfa,IconGooglePhotos as _0x2db7bc,IconGoogleDrive as _0x338da4,IconFacebook as _0x2c9bdb,IconDropbox as _0xc0e14d,IconUploadcareLink as _0x514b7a,IconUploadcareImageUpload as _0x1b462d,IconError as _0x3c9387,IconUploadcareImageEdit as _0x5abb25}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x19cf23,MenuBarMenuListItemButtonView as _0xb4dac4,View as _0x242f3a,FocusCycler as _0x34d88b,Dialog as _0x376964,DialogViewPosition as _0x5ebf6b,SpinnerView as _0x41b901,IconView as _0x3b1020,Notification as _0x3e7bce}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x139c13,DomEmitterMixin as _0x5aa97e,global as _0x2ec278,getAncestors as _0x55d019,ObservableMixin as _0x4572f5,uid as _0x3a9229,createElement as _0x33465e}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0xe957f}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x556e2c,info as _0x52d514}from'@uploadcare/upload-client';import*as _0x2a07b6 from'@uploadcare/file-uploader';var i=function(_0x363e33){return _0x363e33['Local']='local',_0x363e33['URL']='url',_0x363e33['Dropbox']='dropbox',_0x363e33['GDrive']='gdrive',_0x363e33['Facebook']='facebook',_0x363e33['GPhotos']='gphotos',_0x363e33['OneDrive']='onedrive',_0x363e33;}({});function _(_0x331d8d,_0x3012e,_0x5dd017){const t=_0x331d8d['t'],_0x4093de=_0x331d8d['t'];switch(_0x3012e){case i['Local']:return{'text':_0x4093de('Insert'===_0x5dd017?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x4093de('From\x20computer')};case i['URL']:return{'text':'Insert'===_0x5dd017?_0x4093de('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x4093de('Via\x20URL')};case i['Dropbox']:return{'text':t('Insert'===_0x5dd017?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case i['Facebook']:return{'text':t('Insert'===_0x5dd017?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case i['GDrive']:return{'text':t('Insert'===_0x5dd017?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case i['GPhotos']:return{'text':t('Insert'===_0x5dd017?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case i['OneDrive']:return{'text':t('Insert'===_0x5dd017?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x3012e;}}class e extends _0x18110a{['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 _0x2d82e5=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x157a95;for(const _0x343873 in _0x2d82e5){const _0x594265=_0x343873,_0x49a93f=_0x2d82e5[_0x594265];if('uploadcareLicenseKeyValid'==_0x49a93f||'uploadcareLicenseKeyInvalid'==_0x49a93f||'uploadcareLicenseKeyExpired'==_0x49a93f||'uploadcareLicenseKeyDomainLimit'==_0x49a93f||'uploadcareLicenseKeyNotAllowed'==_0x49a93f||'uploadcareLicenseKeyEvaluationLimit'==_0x49a93f||'uploadcareLicenseKeyTrialLimit'==_0x49a93f||'uploadcareLicenseKeyUsageLimit'==_0x49a93f){delete _0x2d82e5[_0x594265],_0x157a95=_0x49a93f,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x157a95&&_0x2d82e5['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x157a95&&_0x2d82e5['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x157a95&&_0x2d82e5['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x157a95&&_0x2d82e5['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x157a95&&_0x2d82e5['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyTrialLimit'==_0x157a95&&_0x2d82e5['_showLicenseError']('trialLimit'),'uploadcareLicenseKeyUsageLimit'==_0x157a95&&_0x2d82e5['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x255d68}=this,_0x3a3d60=_0x255d68['commands']['get']('uploadcare');if(!_0x3a3d60)return;const _0x24054d=this['_normalizeConfigSourceList'](_0x255d68['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x4f39e,_0x63f5f9)=>{const _0x35d825=this['_getIntegrationKey'](_0x63f5f9['type']);return _0x4f39e[_0x35d825]||(_0x4f39e[_0x35d825]=[]),_0x4f39e[_0x35d825]['push'](_0x63f5f9),_0x4f39e;},{});_0x255d68['plugins']['has']('ImageInsertUI')&&_0x255d68['commands']['get']('uploadcare')&&Object['entries'](_0x24054d)['forEach'](([_0x5f8edd,_0x5b5b5a])=>{_0x255d68['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x5f8edd,'observable':()=>_0x3a3d60,'buttonViewCreator':()=>this['_createToolbarButton'](_0x5b5b5a),'formViewCreator':()=>this['_createDropdownButtons'](_0x5b5b5a),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x5b5b5a),'override':'assetManager'!==_0x5f8edd});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x419046){const {locale:_0x2147e0}=this['editor'];return _0x419046['map'](_0x57d04b=>{const _0x2d182e=_(_0x2147e0,_0x57d04b,'Insert');switch(_0x57d04b){case i['Local']:return{'icon':_0x1b462d,'type':i['Local'],..._0x2d182e};case i['URL']:return{'icon':_0x514b7a,'type':i['URL'],..._0x2d182e};case i['Dropbox']:return{'icon':_0xc0e14d,'type':i['Dropbox'],..._0x2d182e};case i['Facebook']:return{'icon':_0x2c9bdb,'type':i['Facebook'],..._0x2d182e};case i['GDrive']:return{'icon':_0x338da4,'type':i['GDrive'],..._0x2d182e};case i['GPhotos']:return{'icon':_0x2db7bc,'type':i['GPhotos'],..._0x2d182e};case i['OneDrive']:return{'icon':_0x592dfa,'type':i['OneDrive'],..._0x2d182e};}});}['_getIntegrationKey'](_0x2ac827){switch(_0x2ac827){case i['Local']:return'upload';case i['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x471de1,_0x4ca5a9){const _0x1ceb35=this['editor'],_0x3e9aa5=new _0x471de1(_0x1ceb35['locale']),_0x31e352=_0x1ceb35['commands']['get']('uploadcare');return _0x3e9aa5['bind']('isEnabled')['to'](_0x31e352),_0x3e9aa5['on']('execute',()=>{_0x31e352['execute'](_0x4ca5a9);}),_0x3e9aa5;}['_createToolbarButton'](_0x319496){const {locale:_0x27b363}=this['editor'],_0xfb19a0=this['editor']['plugins']['get']('ImageInsertUI'),_0x4ce24c=_0x319496[0x0],_0x288b92=this['_createButton'](_0x19cf23,_0x4ce24c['type']);return _0x288b92['icon']=_0x4ce24c['icon'],_0x288b92['bind']('label')['to'](_0xfb19a0,'isImageSelected',_0x8ae378=>_(_0x27b363,_0x4ce24c['type'],_0x8ae378?'Replace':'Insert')['text']),_0x288b92['tooltip']=!0x0,_0x288b92;}['_createDropdownButtons'](_0xfcbd53){const {locale:_0x4c32c3}=this['editor'],_0x2c24fe=this['editor']['plugins']['get']('ImageInsertUI');return _0xfcbd53['map'](_0x36fa86=>{const _0xa37852=this['_createButton'](_0x19cf23,_0x36fa86['type']);return _0xa37852['withText']=!0x0,_0xa37852['icon']=_0x36fa86['icon'],_0xa37852['bind']('label')['to'](_0x2c24fe,'isImageSelected',_0xc6a5d0=>_(_0x4c32c3,_0x36fa86['type'],_0xc6a5d0?'Replace':'Insert')['text']),_0xa37852;});}['_createMenuBarButtons'](_0xe03e28){return _0xe03e28['map'](_0x27a85b=>{const _0x2006fe=this['_createButton'](_0xb4dac4,_0x27a85b['type']);return _0x2006fe['icon']=_0x27a85b['icon'],_0x2006fe['label']=_0x27a85b['shortText'],_0x2006fe;});}}class W extends _0x242f3a{['focusTracker'];['focusCycler'];constructor(_0xff8b1f){super(_0xff8b1f),this['focusTracker']=new _0x139c13(),this['focusCycler']=new _0x34d88b({'focusables':this['createCollection'](),'focusTracker':this['focusTracker']});}['getFocusableElement'](){return{'tag':'div','attributes':{'aria-hidden':'true','tabindex':'0'},'on':{'focus':this['bindTemplate']['to'](()=>{this['focusCycler']['fire']('forwardCycle');})}};}}class R extends W{constructor(_0xd6a62f,_0x18d8dd){super(_0xd6a62f),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-'+_0x18d8dd}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}}function C(_0x14569d,_0x34b937){const _0x19aaf3=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x22abec=>_0x22abec<=_0x34b937)['map'](_0x27fcfa=>_0x14569d['replace'](/\/$/,'')+'/-/resize/'+_0x27fcfa+'x/\x20'+_0x27fcfa+'w');return{'imageFallbackUrl':_0x14569d,'imageSources':[{'srcset':_0x19aaf3['join'](',\x20'),'sizes':'(max-width:\x20'+_0x34b937+'px)\x20100vw,\x20'+_0x34b937+'px','type':'image/webp'}]};}function V(_0x440c2f,_0x5eb7b3,_0x4aaeec){const _0x424d9a=_0x440c2f['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x424d9a?parseInt(_0x424d9a[0x1],0xa):_0x5eb7b3,'height':_0x424d9a?parseInt(_0x424d9a[0x2],0xa):_0x4aaeec};}function p(_0x4ebe22,_0x14a0a8){const _0x3925b7=new(_0x5aa97e())(),_0x5313de=_0x4ebe22['plugins']['get']('ImageUtils'),_0x555526=_0x4ebe22['editing']['mapper']['toViewElement'](_0x14a0a8),_0x45d060=_0x5313de['findViewImgElement'](_0x555526),_0x42ceec=_0x4ebe22['editing']['view']['domConverter']['viewToDom'](_0x45d060),_0x5c01e2=_0x14a0a8['getAttribute']('width'),_0x1f2d5a=_0x14a0a8['getAttribute']('height'),_0x353d32='image-processing';_0x4ebe22['editing']['view']['change'](_0x472469=>{_0x472469['addClass'](_0x353d32,_0x555526),_0x472469['setStyle']('aspect-ratio',_0x5c01e2+'/'+_0x1f2d5a,_0x45d060);}),_0x3925b7['listenTo'](_0x42ceec,'load',()=>{_0x3925b7['stopListening'](_0x42ceec,'load'),_0x4ebe22['editing']['view']['change'](_0x13c109=>{_0x13c109['removeClass'](_0x353d32,_0x555526),_0x13c109['removeStyle']('aspect-ratio',_0x45d060);});});}function z(_0x2a38b0){if(Array['isArray'](_0x2a38b0)){const _0x5528ac=_0x2a38b0['map'](z);return _0x1bf106=>_0x5528ac['some'](_0x953293=>_0x953293(_0x1bf106));}if('origin'==_0x2a38b0){const _0xb27315=_0x2ec278['window']['location']['origin'];return _0x5c9cf0=>new URL(_0x5c9cf0,_0x2ec278['document']['baseURI'])['origin']==_0xb27315;}return'function'==typeof _0x2a38b0?_0x2a38b0:_0x2a38b0 instanceof RegExp?_0x2ace3a=>!(!_0x2ace3a['match'](_0x2a38b0)&&!_0x2ace3a['replace'](/^https?:\/\//,'')['match'](_0x2a38b0)):()=>!0x1;}function Q(_0xd4780d,_0x4f549f){return _0x55d019(_0xd4780d['target'])['includes'](_0x4f549f);}class n extends/* #__PURE__ -- @preserve */
24
- _0x4572f5(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x1f2b1c,_0x566937,_0x59ea72){super(),this['_editor']=_0x1f2b1c,this['_editing']=_0x566937,this['_dialog']=_0x1f2b1c['plugins']['get'](_0x376964),this['_api']=_0x566937['ctxElement']['getAPI'](),this['_type']=_0x59ea72,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:_0x14d9b5,model:_0x3c57ff}=this['_editor'],_0x541c7e=_0x3c57ff['document']['selection']['getSelectedElement'](),_0x248fc3=_0x541c7e&&(_0x541c7e['is']('element','imageBlock')||_0x541c7e['is']('element','imageInline'));this['_formView']=new R(_0x14d9b5,this['_editing']['ucContextId']),this['_dialog']['show']({'id':'uploadCare','icon':_0x1b462d,'title':_(_0x14d9b5,this['_type'],_0x248fc3?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x5ebf6b['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x4101bb=>!Q(_0x4101bb,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x313bbf}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x3a6a5b=>{const _0x3887b3=_0x313bbf['length'];for(const _0x3e07ad of _0x313bbf){const _0x2f47e0=_0x3e07ad===_0x313bbf[_0x3887b3-0x1],{cdnUrl:_0x206190,fileInfo:_0x3d8c25}=_0x3e07ad;if(!_0x206190||!_0x3d8c25)continue;const {width:_0x8922ab,height:_0x2fd61f}=_0x3d8c25['imageInfo'],_0x2685d5=V(_0x206190,_0x8922ab,_0x2fd61f),_0x17141a=C(_0x206190,_0x2685d5['width']),_0x1c48d1={'id':_0x3d8c25['uuid'],'type':'image','attributes':{'imageDimension':_0x2685d5,..._0x17141a}};this['_insertAsset'](_0x1c48d1,_0x2f47e0,_0x3a6a5b);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x37a93c=>{'idle'===_0x37a93c['detail']['status']&&!_0x37a93c['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===i['Local']?this['_api']['setCurrentActivity'](i['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x16b6cb,_0x5203f8,_0x378bc8){const _0x244771=this['_editor']['model']['document']['selection'],_0xf3377d=_0x244771['getSelectedElement'](),_0x2ec52d=!(!_0xf3377d||!_0xf3377d['is']('element','imageInline'));_0x378bc8['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x16b6cb,_0x2ec52d),_0x5203f8||_0x378bc8['setSelection'](_0x244771['getLastPosition']());}['_insertImage'](_0x53c8f4,_0x27ee48){const _0x16c63f=this['_editor'],{imageDimension:_0x48cd84,imageFallbackUrl:_0x3129ca,imageSources:_0x9ee65f}=_0x53c8f4['attributes'];_0x16c63f['execute']('insertImage',{'imageType':_0x27ee48?'imageInline':null,'source':{'uploadcareImageId':_0x53c8f4['id'],'src':_0x3129ca,'sources':_0x9ee65f,..._0x48cd84}});}}class w extends _0x3c77fd{['_editing'];['_controller']=null;static get['requires'](){return[_0x376964,o];}constructor(_0x33b048){super(_0x33b048),this['_editing']=_0x33b048['plugins']['get'](o);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x56135b){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new n(this['editor'],this['_editing'],_0x56135b);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class j{static['upload']({file:_0xd80bee,..._0x53577d}){return _0x556e2c(_0xd80bee,_0x53577d);}static['getInfo'](_0x1c1206,_0x27675b){return _0x52d514(_0x1c1206,_0x27675b);}}class f extends _0x18110a{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0xe957f,o];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x1f2ec4=this['editor'];if(!!!_0x1f2ec4['config']['get']('uploadcare'))return;_0x1f2ec4['plugins']['get'](_0xe957f)['createUploadAdapter']=_0x28d0e4=>new k(_0x28d0e4,_0x1f2ec4),_0x1f2ec4['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x2a22f4,{imageElement:_0x187f19,data:_0xd40363})=>{_0x1f2ec4['model']['change'](_0x12c443=>{_0x12c443['setAttribute']('uploadcareImageId',_0xd40363['uploadcareImageId'],_0x187f19);});});}}class k{['loader'];['editor'];['controller'];constructor(_0x3947d3,_0x24ef77){this['loader']=_0x3947d3,this['editor']=_0x24ef77,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x4167fd=await this['loader']['file'];return j['upload']({'file':_0x4167fd,'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':_0x215b85=>{_0x215b85&&_0x215b85['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x215b85['value']);}})['then'](async _0x39d978=>{const {imageFallbackUrl:_0x4ca414,imageSources:_0x142615}=C(_0x39d978['cdnUrl'],_0x39d978['imageInfo']['width']);return{'uploadcareImageId':_0x39d978['uuid'],'default':_0x4ca414,'sources':_0x142615};})['catch'](()=>{const _0x119254=t('Cannot\x20upload\x20file:')+('\x20'+_0x4167fd['name']+'.');return Promise['reject'](_0x119254);});}['abort'](){this['controller']['abort']();}}class o extends _0x18110a{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',f,_0x376964];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['ucContextId'];get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}constructor(_0x417631){super(_0x417631),this['ucContextId']=_0x3a9229();}['init'](){const _0x1b74a8=this['editor'];_0x1b74a8['commands']['add']('uploadcare',new w(_0x1b74a8));}['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 _0x5cd4ca=_0x2ec278['document']['querySelector']('input[uploadcare-file-input]');_0x5cd4ca&&_0x5cd4ca['remove']();}),async function(_0x36c4d7){const _0x5185ae=_0x5520f0([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]),_0x472525=0x535f8c3a,_0x4b4fd5=0x5358f6aa^_0x472525,_0x52f8d4=window[_0x5520f0([0x44,0x61,0x74,0x65])][_0x5520f0([0x6e,0x6f,0x77])](),_0x1332df=_0x36c4d7[_0x5520f0([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x2faf29=new window[(_0x5520f0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5787a1=>{_0x1332df[_0x5520f0([0x6f,0x6e,0x63,0x65])](_0x5520f0([0x72,0x65,0x61,0x64,0x79]),_0x5787a1);}),_0x3eb84c={[_0x5520f0([0x6b,0x74,0x79])]:_0x5520f0([0x45,0x43]),[_0x5520f0([0x75,0x73,0x65])]:_0x5520f0([0x73,0x69,0x67]),[_0x5520f0([0x63,0x72,0x76])]:_0x5520f0([0x50,0x2d,0x32,0x35,0x36]),[_0x5520f0([0x78])]:_0x5520f0([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]),[_0x5520f0([0x79])]:_0x5520f0([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]),[_0x5520f0([0x61,0x6c,0x67])]:_0x5520f0([0x45,0x53,0x32,0x35,0x36])},_0x380515=_0x1332df[_0x5520f0([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x5520f0([0x67,0x65,0x74])](_0x5520f0([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x4886cc(){let _0x583ab7,_0x59b5d5=null,_0x1723bf=null;try{if(_0x380515==_0x5520f0([0x47,0x50,0x4c]))return _0x5520f0([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x583ab7=_0x29b9e1(),!_0x583ab7)return _0x5520f0([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x583ab7[_0x5520f0([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x1723bf=_0x5f38b1(_0x583ab7[_0x5520f0([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x583ab7[_0x5520f0([0x6a,0x74,0x69])])),await _0x2532fc()?_0x31d88c()?_0x1d72f4()?_0x5520f0([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x48b384()?(_0x583ab7[_0x5520f0([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x5520f0([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x59b5d5=_0x37ec75(_0x5520f0([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x583ab7[_0x5520f0([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x5520f0([0x74,0x72,0x69,0x61,0x6c])&&(_0x59b5d5=_0x37ec75(_0x5520f0([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x2c36f6()):_0x5520f0([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x5520f0([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x5520f0([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x5520f0([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x1d72f4(){const _0x229a11=[_0x5520f0([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x5520f0([0x74,0x72,0x69,0x61,0x6c])][_0x5520f0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x583ab7[_0x5520f0([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x52f8d4/0x3e8:0xe10*_0x4b4fd5;return _0x583ab7[_0x5520f0([0x65,0x78,0x70])]<_0x229a11;}function _0x31d88c(){const _0x99203a=_0x583ab7[_0x5520f0([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x99203a&&(!!_0x99203a[_0x5520f0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5520f0([0x2a]))||!!_0x99203a[_0x5520f0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5520f0([0x55,0x50,0x4c,0x43])));}function _0x48b384(){const _0x53c8c7=_0x583ab7[_0x5520f0([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x53c8c7||0x0==_0x53c8c7[_0x5520f0([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x48c329}=new URL(window[_0x5520f0([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x53c8c7[_0x5520f0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x48c329))return!0x0;const _0x28bc15=_0x48c329[_0x5520f0([0x73,0x70,0x6c,0x69,0x74])](_0x5520f0([0x2e]));return _0x53c8c7[_0x5520f0([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x375d88=>_0x375d88[_0x5520f0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5520f0([0x2a])))[_0x5520f0([0x6d,0x61,0x70])](_0x27a189=>_0x27a189[_0x5520f0([0x73,0x70,0x6c,0x69,0x74])](_0x5520f0([0x2e])))[_0x5520f0([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x560c31=>_0x560c31[_0x5520f0([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x28bc15[_0x5520f0([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x5520f0([0x6d,0x61,0x70])](_0x30908b=>Array(_0x28bc15[_0x5520f0([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x30908b[_0x5520f0([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x5520f0([0x66,0x69,0x6c,0x6c])](_0x30908b[0x0]===_0x5520f0([0x2a])?_0x5520f0([0x2a]):'')[_0x5520f0([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x30908b))[_0x5520f0([0x73,0x6f,0x6d,0x65])](_0x13aab0=>_0x28bc15[_0x5520f0([0x65,0x76,0x65,0x72,0x79])]((_0x1a5b6b,_0x7df5b3)=>_0x13aab0[_0x7df5b3]===_0x1a5b6b||_0x13aab0[_0x7df5b3]===_0x5520f0([0x2a])));}function _0x2c36f6(){return _0x59b5d5&&_0x1723bf?new window[(_0x5520f0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x8ed898,_0x85be78)=>{_0x59b5d5[_0x5520f0([0x74,0x68,0x65,0x6e])](_0x8ed898,_0x85be78),_0x1723bf[_0x5520f0([0x74,0x68,0x65,0x6e])](_0x49b2ea=>{_0x49b2ea!=_0x5520f0([0x56,0x61,0x6c,0x69,0x64])&&_0x8ed898(_0x49b2ea);},_0x85be78);}):_0x59b5d5||_0x1723bf||_0x5520f0([0x56,0x61,0x6c,0x69,0x64]);}}function _0x5f38b1(_0x31b49a,_0x5a4ed4){return new window[(_0x5520f0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1d5540=>{if(_0xdfbc96())return _0x1d5540(_0x5520f0([0x56,0x61,0x6c,0x69,0x64]));_0x29090a(),_0x1332df[_0x5520f0([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x5520f0([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x3b38e1=!0x1;const _0x54f066=_0x3a9229();function _0x4a1cbf(_0x1d76f0){return!!_0x1d76f0&&(typeof _0x1d76f0===_0x5520f0([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x1d76f0===_0x5520f0([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x1d76f0[_0x5520f0([0x74,0x68,0x65,0x6e])]===_0x5520f0([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x1d76f0[_0x5520f0([0x63,0x61,0x74,0x63,0x68])]===_0x5520f0([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x2121af(_0x572b6f){_0xa5bd05(_0x572b6f)[_0x5520f0([0x74,0x68,0x65,0x6e])](_0x1ba972=>{if(!_0x1ba972||_0x1ba972[_0x5520f0([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x5520f0([0x6f,0x6b]))return _0x5520f0([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x3d95ad(_0x343dad(_0x54f066+_0x5a4ed4))!=_0x1ba972[_0x5520f0([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x5520f0([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x5520f0([0x56,0x61,0x6c,0x69,0x64]);})[_0x5520f0([0x74,0x68,0x65,0x6e])](_0x3fba2e=>(_0x118f0d(),_0x3fba2e),()=>{const _0xaab422=_0x42326b();return null==_0xaab422?(_0x118f0d(),_0x5520f0([0x56,0x61,0x6c,0x69,0x64])):_0x5520f0(_0x52f8d4-_0xaab422>(0x7753083a^_0x472525)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x5520f0([0x74,0x68,0x65,0x6e])](_0x1d5540)[_0x5520f0([0x63,0x61,0x74,0x63,0x68])](()=>{_0x1d5540(_0x5520f0([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x2cd7a2=0x536962ba^_0x472525;function _0x118f0d(){const _0x473a8d=_0x5520f0([0x6c,0x6c,0x63,0x74,0x2d])+_0x3d95ad(_0x343dad(_0x31b49a)),_0x4886e2=_0x4b10d1(_0x3d95ad(window[_0x5520f0([0x4d,0x61,0x74,0x68])][_0x5520f0([0x63,0x65,0x69,0x6c])](_0x52f8d4/_0x2cd7a2)));window[_0x5520f0([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x5520f0([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x473a8d,_0x4886e2);}function _0x42326b(){const _0x210c4a=_0x5520f0([0x6c,0x6c,0x63,0x74,0x2d])+_0x3d95ad(_0x343dad(_0x31b49a)),_0x18ee51=window[_0x5520f0([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x5520f0([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x210c4a);return _0x18ee51?window[_0x5520f0([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4b10d1(_0x18ee51),0x10)*_0x2cd7a2:null;}function _0xa5bd05(_0x4d411b){return new window[(_0x5520f0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x5f0e63,_0x24a740)=>{_0x4d411b[_0x5520f0([0x74,0x68,0x65,0x6e])](_0x5f0e63,_0x24a740),window[_0x5520f0([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x24a740,0x535e58fa^_0x472525);});}}_0x1332df[_0x5520f0([0x6f,0x6e])](_0x5520f0([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x3ac714,_0x37e5c7)=>{if(_0x37e5c7[0x0]!=_0x31b49a)return _0x1d5540(_0x5520f0([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x37e5c7[0x1]={..._0x37e5c7[0x1],[_0x5520f0([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x54f066};},{[_0x5520f0([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x5520f0([0x68,0x69,0x67,0x68])}),_0x1332df[_0x5520f0([0x6f,0x6e])](_0x5520f0([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x37847f=>{_0x4a1cbf(_0x37847f[_0x5520f0([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x3b38e1=!0x0,_0x2121af(_0x37847f[_0x5520f0([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x5520f0([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x5520f0([0x6c,0x6f,0x77])}),_0x2faf29[_0x5520f0([0x74,0x68,0x65,0x6e])](()=>{_0x3b38e1||_0x1d5540(_0x5520f0([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0xdfbc96(){return _0x1332df[_0x5520f0([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5520f0([0x76,0x69,0x65,0x77])][_0x5520f0([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x5520f0([0x61,0x75,0x74,0x6f]);}function _0x29090a(){_0x1332df[_0x5520f0([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5520f0([0x76,0x69,0x65,0x77])][_0x5520f0([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x5520f0([0x61,0x75,0x74,0x6f]);}}function _0x37ec75(_0x318475){const _0x5969d8=[new window[(_0x5520f0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x313c55=>setTimeout(_0x313c55,0x5356b2f6^_0x472525)),_0x2faf29[_0x5520f0([0x74,0x68,0x65,0x6e])](()=>new window[(_0x5520f0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x6d4342=>{let _0x310a7c=0x0;_0x1332df[_0x5520f0([0x6d,0x6f,0x64,0x65,0x6c])][_0x5520f0([0x6f,0x6e])](_0x5520f0([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x2f5a92,_0x533084)=>{_0x533084[0x0][_0x5520f0([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x310a7c++,_0x310a7c==(0x535f8dc2^_0x472525)&&(_0x6d4342(),_0x2f5a92[_0x5520f0([0x6f,0x66,0x66])]());});}))];return window[_0x5520f0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x5520f0([0x72,0x61,0x63,0x65])](_0x5969d8)[_0x5520f0([0x74,0x68,0x65,0x6e])](()=>_0x318475);}async function _0x23b5eb(){await _0x2faf29,_0x1332df[_0x5520f0([0x6d,0x6f,0x64,0x65,0x6c])][_0x5520f0([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x20f02a,_0x1332df[_0x5520f0([0x6d,0x6f,0x64,0x65,0x6c])][_0x5520f0([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x20f02a,_0x1332df[_0x5520f0([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x5520f0([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x5a515b(_0x1c4f7b){const _0x436a57=_0x371c63();_0x1332df[_0x436a57]=_0x5520f0([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x1c4f7b,_0x1c4f7b!=_0x5520f0([0x56,0x61,0x6c,0x69,0x64])&&_0x23b5eb();}function _0x371c63(){const _0x5c06b6=window[_0x5520f0([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x5520f0([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x5520f0([0x6e,0x6f,0x77])]())[_0x5520f0([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x5520f0([0x2e]),'');let _0x4d9702=_0x5520f0([0x68]);for(let _0x15158d=0x0;_0x15158d<_0x5c06b6[_0x5520f0([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x15158d+=0x2){let _0x565b33=window[_0x5520f0([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5c06b6[_0x5520f0([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x15158d,_0x15158d+0x2));_0x565b33>=_0x5185ae[_0x5520f0([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x565b33-=_0x5185ae[_0x5520f0([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x4d9702+=_0x5185ae[_0x565b33];}return _0x4d9702;}function _0x29b9e1(){const _0x30caa0=_0x380515[_0x5520f0([0x73,0x70,0x6c,0x69,0x74])](_0x5520f0([0x2e]));if(0x3!=_0x30caa0[_0x5520f0([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x216276(_0x30caa0[0x1]);function _0x216276(_0x3a1928){const _0x36020b=_0x173b86(_0x3a1928);return _0x36020b&&_0x20185f()?_0x36020b:null;function _0x20185f(){const _0x489a48=_0x36020b[_0x5520f0([0x6a,0x74,0x69])],_0x13aa22=window[_0x5520f0([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x489a48[_0x5520f0([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x489a48[_0x5520f0([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x2cda8b={..._0x36020b,[_0x5520f0([0x6a,0x74,0x69])]:_0x489a48[_0x5520f0([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x489a48[_0x5520f0([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x2cda8b[_0x5520f0([0x76,0x63])],_0x343dad(_0x2cda8b)==_0x13aa22;}}}async function _0x2532fc(){let _0x2cf9ef=!0x0;try{const _0x2376d7=_0x380515[_0x5520f0([0x73,0x70,0x6c,0x69,0x74])](_0x5520f0([0x2e])),[_0x537a87,_0x60f8d7,_0x4b08bb]=_0x2376d7;return _0x7640eb(_0x537a87),await _0x3f3c73(_0x537a87,_0x60f8d7,_0x4b08bb),_0x2cf9ef;}catch{return!0x1;}function _0x7640eb(_0x2744b5){const _0x5e3aec=_0x173b86(_0x2744b5);_0x5e3aec&&_0x5e3aec[_0x5520f0([0x61,0x6c,0x67])]==_0x5520f0([0x45,0x53,0x32,0x35,0x36])||(_0x2cf9ef=!0x1);}async function _0x3f3c73(_0x524054,_0x1e71dc,_0x22be7d){const _0x5e859c=window[_0x5520f0([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x5520f0([0x66,0x72,0x6f,0x6d])](_0x115c84(_0x22be7d),_0x1985e6=>_0x1985e6[_0x5520f0([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x197c92=new window[(_0x5520f0([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x5520f0([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x524054+_0x5520f0([0x2e])+_0x1e71dc),_0x31dfd3=window[_0x5520f0([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x5520f0([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x31dfd3)return;const _0x3b6a8e=await _0x31dfd3[_0x5520f0([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x5520f0([0x6a,0x77,0x6b]),_0x3eb84c,{[_0x5520f0([0x6e,0x61,0x6d,0x65])]:_0x5520f0([0x45,0x43,0x44,0x53,0x41]),[_0x5520f0([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x5520f0([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x5520f0([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x31dfd3[_0x5520f0([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x5520f0([0x6e,0x61,0x6d,0x65])]:_0x5520f0([0x45,0x43,0x44,0x53,0x41]),[_0x5520f0([0x68,0x61,0x73,0x68])]:{[_0x5520f0([0x6e,0x61,0x6d,0x65])]:_0x5520f0([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x3b6a8e,_0x5e859c,_0x197c92)||(_0x2cf9ef=!0x1);}}function _0x173b86(_0x51ad14){return _0x51ad14[_0x5520f0([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x5520f0([0x65,0x79]))?JSON[_0x5520f0([0x70,0x61,0x72,0x73,0x65])](_0x115c84(_0x51ad14)):null;}function _0x115c84(_0x2b591f){return window[_0x5520f0([0x61,0x74,0x6f,0x62])](_0x2b591f[_0x5520f0([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x5520f0([0x2b]))[_0x5520f0([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x5520f0([0x2f])));}function _0x343dad(_0x47633f){let _0x2f6a58=0x1505;function _0x1bb66a(_0x58a4d9){for(let _0x1cbfe3=0x0;_0x1cbfe3<_0x58a4d9[_0x5520f0([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1cbfe3++){const _0x5c5fef=_0x58a4d9[_0x5520f0([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x1cbfe3);_0x2f6a58=(_0x2f6a58<<0x5)+_0x2f6a58+_0x5c5fef,_0x2f6a58&=_0x2f6a58;}}function _0x5534c5(_0x22b579){Array[_0x5520f0([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x22b579)?_0x22b579[_0x5520f0([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x5534c5):_0x22b579&&typeof _0x22b579==_0x5520f0([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x5520f0([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x22b579)[_0x5520f0([0x73,0x6f,0x72,0x74])]()[_0x5520f0([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x5e4939,_0x1add6a])=>{_0x1bb66a(_0x5e4939),_0x5534c5(_0x1add6a);}):_0x1bb66a(window[_0x5520f0([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x22b579));}return _0x5534c5(_0x47633f),_0x2f6a58>>>0x0;}function _0x3d95ad(_0x2d3f5f){return _0x2d3f5f[_0x5520f0([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x5520f0([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x5520f0([0x30]));}function _0x4b10d1(_0xb2bc4e){return _0xb2bc4e[_0x5520f0([0x73,0x70,0x6c,0x69,0x74])]('')[_0x5520f0([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x5520f0([0x6a,0x6f,0x69,0x6e])]('');}function _0x20f02a(){}function _0x5520f0(_0x3169c8){return _0x3169c8['map'](_0x4f87f6=>String['fromCharCode'](_0x4f87f6))['join']('');}_0x5a515b(await _0x4886cc());}(this);}['_initSchema'](){const _0x3c8f95=this['editor']['model']['schema'];_0x3c8f95['isRegistered']('imageBlock')&&_0x3c8f95['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x3c8f95['isRegistered']('imageInline')&&_0x3c8f95['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x48ecd6=this['editor'];_0x48ecd6['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x48ecd6['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x551f42=>_0x551f42['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x57480a=_0x48ecd6['commands']['get']('replaceImageSource');_0x57480a&&this['listenTo'](_0x57480a,'cleanupImage',(_0x3d6ea6,[_0x5a8ee8,_0x326026])=>{_0x5a8ee8['removeAttribute']('uploadcareImageId',_0x326026);});}['_initConfig'](){const _0x5cd356=this['editor']['config']['get']('uploadcare.uploader')||{},_0x5bf9e9=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x33465e(_0x2ec278['document'],'uc-config',{..._0x5cd356,'pubkey':_0x5bf9e9,'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']=_0x5d8e24=>{if('closeMax'==_0x5d8e24)return'#uc-icon-arrow-down';},_0x2ec278['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x33465e(_0x2ec278['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader-'+this['ucContextId']}),_0x2ec278['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0xc3dcf4=this['editor']['commands']['get']('insertImage');_0xc3dcf4&&this['listenTo'](_0xc3dcf4,'execute',()=>{const _0x23fa31=this['editor']['model']['document']['selection']['getSelectedElement']();_0x23fa31&&_0x23fa31['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x23fa31);});});const _0x248255=this['editor']['commands']['get']('uploadcareImageReplace');_0x248255&&this['listenTo'](_0x248255,'execute',()=>{const _0x3d5b47=this['editor']['model']['document']['selection']['getSelectedElement']();_0x3d5b47&&_0x3d5b47['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x3d5b47);});});}}class tt extends _0x18110a{static get['requires'](){return[o,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x323041){super(_0x323041),_0x323041['config']['define']('uploadcare.uploader.sourceList',[i['Local'],i['URL']]),_0x2a07b6['defineComponents'](_0x2a07b6),this['_defineLocale']();}['_defineLocale'](){const _0xca0154=this['editor']['config']['get']('uploadcare.locale'),_0x266676=this['editor']['locale']['contentLanguage'];_0xca0154&&_0x2a07b6['defineLocale'](_0x266676,_0xca0154);}}class ii extends _0x242f3a{constructor(_0x2cf73d){super(_0x2cf73d);const t=_0x2cf73d['t'],_0x21890e=this['bindTemplate'],_0x3ddc5c=new _0x41b901();_0x3ddc5c['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':[_0x3ddc5c,{'text':_0x21890e['to']('imageUploadProgress',_0x499b6d=>t('Loading\x20image...')+'\x20('+(_0x499b6d||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 _0x242f3a{constructor(_0x456afb){super(_0x456afb);const t=_0x456afb['t'];this['set']('errorType',null);const _0x5c048b=new _0x19cf23(_0x456afb);_0x5c048b['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x5c048b['withText']=!0x0,_0x5c048b['class']='ck-button-action',_0x5c048b['on']('execute',()=>{this['fire']('retry');}),_0x5c048b['bind']('isVisible')['to'](this,'errorType',_0x1a8bb3=>'NotFound'!==_0x1a8bb3);const _0x5acd06=new _0x3b1020();_0x5acd06['content']=_0x3c9387,_0x5acd06['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x19f844=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':[_0x5acd06,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x19f844['to']('errorType',_0x28f4d5=>t('NotFound'!==_0x28f4d5?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x5c048b]},{'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 _0x242f3a{constructor(_0x4190ed,_0x239d8b){super(_0x4190ed);const _0x44b1b8=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x239d8b,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x44b1b8['to']('imageSrc')}});}}class X extends W{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x1c745b,_0x746dff,_0x1e9206){super(_0x1c745b),this['_items']=this['createCollection'](),this['_loadingView']=new ii(_0x1c745b),this['_errorView']=new ti(_0x1c745b),this['_editingView']=new ei(_0x1c745b,_0x1e9206),this['_focusableView']=new _0x242f3a(_0x1c745b),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x746dff),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'],_0x494b7a=>{this['_addUploadcareImageEditorListeners'](_0x494b7a);});}),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'](_0x728d58,_0x5859e9){const _0x423628='uc-cloud-image-editor',_0x107aca=_0x728d58['querySelector'](_0x423628);if(_0x107aca)return _0x5859e9(_0x107aca);const _0x113613=new MutationObserver(_0x492536=>{const _0x347339=_0x492536['filter'](_0x2ce56a=>_0x2ce56a['target']===_0x728d58&&_0x2ce56a['addedNodes']['length']>0x0&&_0x2ce56a['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x423628);_0x347339['length']&&(_0x113613['disconnect'](),_0x5859e9(_0x347339[0x0]['addedNodes'][0x0]));});_0x113613['observe'](_0x728d58,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x5c3730){_0x5c3730['addEventListener']('apply',_0x25fdbe=>{this['fire']('apply',{'imageSrc':_0x25fdbe['detail']['cdnUrl']});}),_0x5c3730['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class E extends/* #__PURE__ -- @preserve */
25
- _0x4572f5(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x20ae51,_0x39afdf,_0x4efb7e){super(),this['_editor']=_0x20ae51,this['_dialog']=_0x39afdf,this['_imageElement']=_0x4efb7e,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 _0x56f71c=this['_imageElement'],_0xd6b2d=_0x56f71c['getAttribute']('uploadcareImageId'),_0x2b809e=_0x56f71c['getAttribute']('src');if(_0xd6b2d)await this['_loadImageInfo'](_0xd6b2d,_0x2b809e);else{if(this['_imageCache']['has'](_0x2b809e)){const _0x2561e0=this['_imageCache']['get'](_0x2b809e);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x2561e0['url'],this['imageDimension']=_0x2561e0['dimension'],this['imageId']=_0x2561e0['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x25bcf2}=this['_editor'],t=_0x25bcf2['t'],_0xe572c=new X(_0x25bcf2,this['imageStatus'],this['_attributes']);_0xe572c['bind']('status')['to'](this,'imageStatus'),_0xe572c['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0xe572c['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0xe572c['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0xe572c,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x5abb25,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0xe572c,'position':_0x5ebf6b['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0xe572c['focus']();},'onHide':()=>{_0xe572c['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x58b3a9=>!Q(_0x58b3a9,_0xe572c['element'])}});}['_loadImageInfo'](_0xfc1b5,_0x310247){return j['getInfo'](_0xfc1b5,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl')})['then'](_0x3f34eb=>{const {width:_0x23fbe7,height:_0x1d2e5d}=_0x3f34eb['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x310247,this['imageDimension']={'width':_0x23fbe7,'height':_0x1d2e5d},this['imageId']=_0xfc1b5;})['catch'](_0x4714d3=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x4714d3['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x4335ea,_0x220a1f){return this['_getImageAsFile'](_0x4335ea)['then'](_0x17863f=>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':_0x220a1f['signal'],'file':_0x17863f,'onProgress':_0x114517=>{_0x114517&&_0x114517['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x114517['value']));}}))['then'](_0x1fd1a9=>{const {width:_0x5e6a95,height:_0x141336}=_0x1fd1a9['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x1fd1a9['cdnUrl'],this['imageDimension']={'width':_0x5e6a95,'height':_0x141336},this['imageId']=_0x1fd1a9['uuid'],this['imageUploadProgress']=null;const _0x171b80=_0x4335ea['getAttribute']('src');this['_imageCache']['set'](_0x171b80,{'id':_0x1fd1a9['uuid'],'url':_0x1fd1a9['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x549c6e=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x549c6e['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x5f1a6e,_0x428a52){_0x5f1a6e['on']('apply',(_0x40ebd,_0x17e08)=>{this['_replaceImage'](_0x428a52,_0x17e08['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x5f1a6e['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x5f1a6e['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x2323e4,_0x4d5998,_0xf7d6dc){const _0x3e9485=this['_editor'],{width:_0x2a2561,height:_0x30b194}=V(_0x4d5998,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x41abf,imageSources:_0x31ccf8}=C(_0x4d5998,_0x2a2561);_0x3e9485['model']['change'](_0x544b5e=>{if('$graveyard'===_0x2323e4['root']['rootName']){_0x3e9485['execute']('insertImage',{'imageType':_0x2323e4['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x2323e4['getAttributes']()),'uploadcareImageId':_0xf7d6dc,'src':_0x41abf,'sources':_0x31ccf8,'width':_0x2a2561,'height':_0x30b194}});const _0x57ad28=_0x2323e4['getChildren']();_0x2323e4=_0x3e9485['model']['document']['selection']['getSelectedElement']();for(const _0x24cf6e of _0x57ad28)_0x544b5e['append'](_0x544b5e['cloneElement'](_0x24cf6e),_0x2323e4);}else _0x544b5e['setSelection'](_0x2323e4,'on'),_0x3e9485['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x2323e4['getAttributes']()),'uploadcareImageId':_0xf7d6dc,'src':_0x41abf,'sources':_0x31ccf8,'width':_0x2a2561,'height':_0x30b194},_0x2323e4);_0x544b5e['setSelection'](_0x2323e4,'on');});}async['_getImageAsFile'](_0x32299d){const _0x30cb12=_0x2ec278['window'],_0x62f36f=_0x2ec278['document']['location']['href'],_0x66b7ce=new _0x30cb12['URL'](_0x32299d['getAttribute']('src'),_0x62f36f);if('data:'===_0x66b7ce['protocol']){const _0x216b51=_0x66b7ce['href']['split'](','),_0x484d30=_0x216b51[0x0]['match'](/:(.*?);/)[0x1],_0x56b235=_0x484d30['split']('/')[0x1],_0x51eba5=_0x30cb12['atob'](_0x216b51[_0x216b51['length']-0x1]);let _0x11c8a3=_0x51eba5['length'];const _0x4cd123=new _0x30cb12['Uint8Array'](_0x11c8a3);for(;_0x11c8a3--;)_0x4cd123[_0x11c8a3]=_0x51eba5['charCodeAt'](_0x11c8a3);return new _0x30cb12['File']([_0x4cd123],'image.'+_0x56b235,{'type':_0x484d30});}const _0x30ba0f=_0x66b7ce['href']['split']('/'),_0x389ce5=_0x30ba0f[_0x30ba0f['length']-0x1],_0x4fe371=_0x389ce5['split']('.')[0x1];return _0x30cb12['fetch'](_0x66b7ce['href'])['then'](_0xdce604=>_0xdce604['clone']()['blob']())['then'](_0x4bc52e=>new _0x30cb12['File']([_0x4bc52e],_0x389ce5,{'type':'image/'+_0x4fe371}));}}class N extends _0x3c77fd{['imageEditController'];static get['requires'](){return[_0x376964];}['_isEditable'];constructor(_0x10b0f4){super(_0x10b0f4),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x3b9b05){const _0x2db499=z(_0x3b9b05);return _0x4ef893=>!(!_0x4ef893||!_0x4ef893['is']('element','imageBlock')&&!_0x4ef893['is']('element','imageInline'))&&(!!_0x4ef893['hasAttribute']('uploadcareImageId')||!!_0x4ef893['hasAttribute']('src')&&_0x2db499(_0x4ef893['getAttribute']('src')));}(_0x10b0f4['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x3e7cca=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x3e7cca);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x2043f1=this['editor']['model']['document']['selection']['getSelectedElement']();_0x2043f1&&(_0x2043f1['is']('element','imageBlock')||_0x2043f1['is']('element','imageInline'))&&(this['imageEditController']=new E(this['editor'],this['editor']['plugins']['get'](_0x376964),_0x2043f1),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class O extends _0x3c77fd{['refresh'](){const _0x2782ef=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x2782ef&&(_0x2782ef['is']('element','imageBlock')||_0x2782ef['is']('element','imageInline')));}['execute'](_0x12d821){const _0xcf6281=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x1506e5=>{_0x1506e5['setAttributes'](_0x12d821,_0xcf6281),_0x1506e5['removeAttribute']('srcset',_0xcf6281),_0x1506e5['removeAttribute']('sizes',_0xcf6281);});}}class m extends _0x18110a{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[o,_0x3e7bce,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x107074}=this;_0x107074['commands']['add']('uploadcareImageEdit',new N(_0x107074)),_0x107074['commands']['add']('uploadcareImageReplace',new O(_0x107074));}}class g extends _0x18110a{['_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 _0x1229c8=this['editor'];_0x1229c8['ui']['componentFactory']['add']('uploadcareImageEdit',_0x151e12=>{const _0x3be2c5=_0x1229c8['commands']['get']('uploadcareImageEdit'),_0x57833e=new _0x19cf23(_0x151e12),t=_0x151e12['t'];return _0x57833e['set']({'icon':_0x5abb25,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x57833e['bind']('isEnabled')['to'](_0x3be2c5),_0x57833e['bind']('isOn')['to'](_0x3be2c5,'isActive'),this['listenTo'](_0x57833e,'execute',()=>{_0x1229c8['execute']('uploadcareImageEdit'),_0x1229c8['editing']['view']['focus']();}),_0x57833e;}),this['_initConfig']();}['_initConfig'](){const _0x431155=_0x33465e(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x431155),this['listenTo'](this['editor'],'destroy',()=>{_0x431155['remove']();});}}class et extends _0x18110a{static get['pluginName'](){return'UploadcareImageEdit';}static get['requires'](){return[m,g];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{tt as Uploadcare,w as UploadcareCommand,o as UploadcareEditing,et as UploadcareImageEdit,N as UploadcareImageEditCommand,m as UploadcareImageEditEditing,g as UploadcareImageEditUI,e as UploadcareUI,f as UploadcareUploadAdapter};
23
+ import{Plugin as _0x40f43f,Command as _0x49e9af}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x3df212,IconGooglePhotos as _0x1b839,IconGoogleDrive as _0x2bdbef,IconFacebook as _0x19482d,IconDropbox as _0x3a5f21,IconUploadcareLink as _0x2983fa,IconUploadcareImageUpload as _0x38c2f1,IconError as _0x3c6794,IconUploadcareImageEdit as _0x1cc838}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x36a838,MenuBarMenuListItemButtonView as _0x11e3cd,View as _0x195d43,FocusCycler as _0x18943b,Dialog as _0x4b34c2,DialogViewPosition as _0x5e892f,SpinnerView as _0x36c641,IconView as _0x426fea,Notification as _0x5ddf90}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x2531fb,DomEmitterMixin as _0x448f34,global as _0x18ade0,getAncestors as _0x2dd113,ObservableMixin as _0x59caef,uid as _0x1013be,createElement as _0x5e85be}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x3225a5}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0xc0835e,info as _0x399194}from'@uploadcare/upload-client';import*as _0x20eee4 from'@uploadcare/file-uploader';var i=function(_0x2c9cf4){return _0x2c9cf4['Local']='local',_0x2c9cf4['URL']='url',_0x2c9cf4['Dropbox']='dropbox',_0x2c9cf4['GDrive']='gdrive',_0x2c9cf4['Facebook']='facebook',_0x2c9cf4['GPhotos']='gphotos',_0x2c9cf4['OneDrive']='onedrive',_0x2c9cf4;}({});function _(_0x5c41a5,_0x18409c,_0x38c846){const t=_0x5c41a5['t'],_0x442df8=_0x5c41a5['t'];switch(_0x18409c){case i['Local']:return{'text':_0x442df8('Insert'===_0x38c846?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x442df8('From\x20computer')};case i['URL']:return{'text':'Insert'===_0x38c846?_0x442df8('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x442df8('Via\x20URL')};case i['Dropbox']:return{'text':t('Insert'===_0x38c846?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case i['Facebook']:return{'text':t('Insert'===_0x38c846?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case i['GDrive']:return{'text':t('Insert'===_0x38c846?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case i['GPhotos']:return{'text':t('Insert'===_0x38c846?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case i['OneDrive']:return{'text':t('Insert'===_0x38c846?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x18409c;}}class e extends _0x40f43f{['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 _0xd64b3c=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x57be16;for(const _0x40dacc in _0xd64b3c){const _0x8483e1=_0x40dacc,_0x5ac442=_0xd64b3c[_0x8483e1];if('uploadcareLicenseKeyValid'==_0x5ac442||'uploadcareLicenseKeyInvalid'==_0x5ac442||'uploadcareLicenseKeyExpired'==_0x5ac442||'uploadcareLicenseKeyDomainLimit'==_0x5ac442||'uploadcareLicenseKeyNotAllowed'==_0x5ac442||'uploadcareLicenseKeyEvaluationLimit'==_0x5ac442||'uploadcareLicenseKeyTrialLimit'==_0x5ac442||'uploadcareLicenseKeyUsageLimit'==_0x5ac442){delete _0xd64b3c[_0x8483e1],_0x57be16=_0x5ac442,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x57be16&&_0xd64b3c['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x57be16&&_0xd64b3c['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x57be16&&_0xd64b3c['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x57be16&&_0xd64b3c['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x57be16&&_0xd64b3c['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyTrialLimit'==_0x57be16&&_0xd64b3c['_showLicenseError']('trialLimit'),'uploadcareLicenseKeyUsageLimit'==_0x57be16&&_0xd64b3c['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x190c07}=this,_0x3999d3=_0x190c07['commands']['get']('uploadcare');if(!_0x3999d3)return;const _0x5c1a14=this['_normalizeConfigSourceList'](_0x190c07['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x151043,_0x3c1cbb)=>{const _0x3da393=this['_getIntegrationKey'](_0x3c1cbb['type']);return _0x151043[_0x3da393]||(_0x151043[_0x3da393]=[]),_0x151043[_0x3da393]['push'](_0x3c1cbb),_0x151043;},{});_0x190c07['plugins']['has']('ImageInsertUI')&&_0x190c07['commands']['get']('uploadcare')&&Object['entries'](_0x5c1a14)['forEach'](([_0x17066e,_0x3a6ff9])=>{_0x190c07['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x17066e,'observable':()=>_0x3999d3,'buttonViewCreator':()=>this['_createToolbarButton'](_0x3a6ff9),'formViewCreator':()=>this['_createDropdownButtons'](_0x3a6ff9),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x3a6ff9),'override':'assetManager'!==_0x17066e});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x3bb7a0){const {locale:_0x1c5426}=this['editor'];return _0x3bb7a0['map'](_0x231e64=>{const _0x11e16f=_(_0x1c5426,_0x231e64,'Insert');switch(_0x231e64){case i['Local']:return{'icon':_0x38c2f1,'type':i['Local'],..._0x11e16f};case i['URL']:return{'icon':_0x2983fa,'type':i['URL'],..._0x11e16f};case i['Dropbox']:return{'icon':_0x3a5f21,'type':i['Dropbox'],..._0x11e16f};case i['Facebook']:return{'icon':_0x19482d,'type':i['Facebook'],..._0x11e16f};case i['GDrive']:return{'icon':_0x2bdbef,'type':i['GDrive'],..._0x11e16f};case i['GPhotos']:return{'icon':_0x1b839,'type':i['GPhotos'],..._0x11e16f};case i['OneDrive']:return{'icon':_0x3df212,'type':i['OneDrive'],..._0x11e16f};}});}['_getIntegrationKey'](_0x5d3d62){switch(_0x5d3d62){case i['Local']:return'upload';case i['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x5041fe,_0x40a9bc){const _0x160b46=this['editor'],_0x18e129=new _0x5041fe(_0x160b46['locale']),_0x547c8a=_0x160b46['commands']['get']('uploadcare');return _0x18e129['bind']('isEnabled')['to'](_0x547c8a),_0x18e129['on']('execute',()=>{_0x547c8a['execute'](_0x40a9bc);}),_0x18e129;}['_createToolbarButton'](_0x1fda36){const {locale:_0x5ce376}=this['editor'],_0x32d9bd=this['editor']['plugins']['get']('ImageInsertUI'),_0x2559b2=_0x1fda36[0x0],_0x5d25e6=this['_createButton'](_0x36a838,_0x2559b2['type']);return _0x5d25e6['icon']=_0x2559b2['icon'],_0x5d25e6['bind']('label')['to'](_0x32d9bd,'isImageSelected',_0x49ab39=>_(_0x5ce376,_0x2559b2['type'],_0x49ab39?'Replace':'Insert')['text']),_0x5d25e6['tooltip']=!0x0,_0x5d25e6;}['_createDropdownButtons'](_0x1da68a){const {locale:_0x232400}=this['editor'],_0x5665bf=this['editor']['plugins']['get']('ImageInsertUI');return _0x1da68a['map'](_0xb7a472=>{const _0x2ac622=this['_createButton'](_0x36a838,_0xb7a472['type']);return _0x2ac622['withText']=!0x0,_0x2ac622['icon']=_0xb7a472['icon'],_0x2ac622['bind']('label')['to'](_0x5665bf,'isImageSelected',_0x5df7fd=>_(_0x232400,_0xb7a472['type'],_0x5df7fd?'Replace':'Insert')['text']),_0x2ac622;});}['_createMenuBarButtons'](_0xe5c961){return _0xe5c961['map'](_0xe7f346=>{const _0x4ec638=this['_createButton'](_0x11e3cd,_0xe7f346['type']);return _0x4ec638['icon']=_0xe7f346['icon'],_0x4ec638['label']=_0xe7f346['shortText'],_0x4ec638;});}}class F extends _0x195d43{['focusTracker'];['focusCycler'];constructor(_0x11f4cf){super(_0x11f4cf),this['focusTracker']=new _0x2531fb(),this['focusCycler']=new _0x18943b({'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(_0x1bdbfb,_0x190287){super(_0x1bdbfb),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-'+_0x190287}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}}function C(_0x33958b,_0x2eb1e8){const _0x415d5e=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x45fbc5=>_0x45fbc5<=_0x2eb1e8)['map'](_0x11674c=>_0x33958b['replace'](/\/$/,'')+'/-/resize/'+_0x11674c+'x/\x20'+_0x11674c+'w');return{'imageFallbackUrl':_0x33958b,'imageSources':[{'srcset':_0x415d5e['join'](',\x20'),'sizes':'(max-width:\x20'+_0x2eb1e8+'px)\x20100vw,\x20'+_0x2eb1e8+'px','type':'image/webp'}]};}function S(_0x185569,_0x1cd5b2,_0x2b6990){const _0x90a046=_0x185569['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x90a046?parseInt(_0x90a046[0x1],0xa):_0x1cd5b2,'height':_0x90a046?parseInt(_0x90a046[0x2],0xa):_0x2b6990};}function p(_0x4a3b55,_0x19cc1d){const _0x4981a1=new(_0x448f34())(),_0x76eff=_0x4a3b55['plugins']['get']('ImageUtils'),_0x25f44e=_0x4a3b55['editing']['mapper']['toViewElement'](_0x19cc1d),_0x4b0176=_0x76eff['findViewImgElement'](_0x25f44e),_0x14d072=_0x4a3b55['editing']['view']['domConverter']['viewToDom'](_0x4b0176),_0x237b9a=_0x19cc1d['getAttribute']('width'),_0x1427f2=_0x19cc1d['getAttribute']('height'),_0x4b9ee2='image-processing';_0x4a3b55['editing']['view']['change'](_0x5d81f8=>{_0x5d81f8['addClass'](_0x4b9ee2,_0x25f44e),_0x5d81f8['setStyle']('aspect-ratio',_0x237b9a+'/'+_0x1427f2,_0x4b0176);}),_0x4981a1['listenTo'](_0x14d072,'load',()=>{_0x4981a1['stopListening'](_0x14d072,'load'),_0x4a3b55['editing']['view']['change'](_0x32db8b=>{_0x32db8b['removeClass'](_0x4b9ee2,_0x25f44e),_0x32db8b['removeStyle']('aspect-ratio',_0x4b0176);});});}function G(_0x4c34d4){if(Array['isArray'](_0x4c34d4)){const _0x579c35=_0x4c34d4['map'](G);return _0x58945f=>_0x579c35['some'](_0x32777a=>_0x32777a(_0x58945f));}if('origin'==_0x4c34d4){const _0x1694c0=_0x18ade0['window']['location']['origin'];return _0x1a6d31=>new URL(_0x1a6d31,_0x18ade0['document']['baseURI'])['origin']==_0x1694c0;}return'function'==typeof _0x4c34d4?_0x4c34d4:_0x4c34d4 instanceof RegExp?_0x4c89d3=>!(!_0x4c89d3['match'](_0x4c34d4)&&!_0x4c89d3['replace'](/^https?:\/\//,'')['match'](_0x4c34d4)):()=>!0x1;}function A(_0x1fcaee,_0x7a079b){return _0x2dd113(_0x1fcaee['target'])['includes'](_0x7a079b);}class n extends/* #__PURE__ -- @preserve */
24
+ _0x59caef(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x4c61d8,_0x5a5787,_0x4d71d9){super(),this['_editor']=_0x4c61d8,this['_editing']=_0x5a5787,this['_dialog']=_0x4c61d8['plugins']['get'](_0x4b34c2),this['_api']=_0x5a5787['ctxElement']['getAPI'](),this['_type']=_0x4d71d9,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:_0x3d1c7d,model:_0x1b43aa}=this['_editor'],_0x449123=_0x1b43aa['document']['selection']['getSelectedElement'](),_0x65cbe=_0x449123&&(_0x449123['is']('element','imageBlock')||_0x449123['is']('element','imageInline'));this['_formView']=new x(_0x3d1c7d,this['_editing']['ucContextId']),this['_dialog']['show']({'id':'uploadCare','icon':_0x38c2f1,'title':_(_0x3d1c7d,this['_type'],_0x65cbe?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x5e892f['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x5a242a=>!A(_0x5a242a,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x196fee}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x449656=>{const _0x12f1dc=_0x196fee['length'];for(const _0x27c9d9 of _0x196fee){const _0x5c6507=_0x27c9d9===_0x196fee[_0x12f1dc-0x1],{cdnUrl:_0x216e70,fileInfo:_0x367791}=_0x27c9d9;if(!_0x216e70||!_0x367791)continue;const {width:_0x414ea6,height:_0x459c9c}=_0x367791['imageInfo'],_0x22d53f=S(_0x216e70,_0x414ea6,_0x459c9c),_0x36c5dc=C(_0x216e70,_0x22d53f['width']),_0xd85ee6={'id':_0x367791['uuid'],'type':'image','attributes':{'imageDimension':_0x22d53f,..._0x36c5dc}};this['_insertAsset'](_0xd85ee6,_0x5c6507,_0x449656);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x5d562b=>{'idle'===_0x5d562b['detail']['status']&&!_0x5d562b['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===i['Local']?this['_api']['setCurrentActivity'](i['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x1a20de,_0x3d7d84,_0x48fcc0){const _0x55c408=this['_editor']['model']['document']['selection'],_0x470432=_0x55c408['getSelectedElement'](),_0x3c5225=!(!_0x470432||!_0x470432['is']('element','imageInline'));_0x48fcc0['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x1a20de,_0x3c5225),_0x3d7d84||_0x48fcc0['setSelection'](_0x55c408['getLastPosition']());}['_insertImage'](_0xea480a,_0x1946a4){const _0x4738ba=this['_editor'],{imageDimension:_0x3dc158,imageFallbackUrl:_0x4fea3a,imageSources:_0x15a5cd}=_0xea480a['attributes'];_0x4738ba['execute']('insertImage',{'imageType':_0x1946a4?'imageInline':null,'source':{'uploadcareImageId':_0xea480a['id'],'src':_0x4fea3a,'sources':_0x15a5cd,..._0x3dc158}});}}class w extends _0x49e9af{['_editing'];['_controller']=null;static get['requires'](){return[_0x4b34c2,o];}constructor(_0x4e302e){super(_0x4e302e),this['_editing']=_0x4e302e['plugins']['get'](o);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x2e1769){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new n(this['editor'],this['_editing'],_0x2e1769);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class j{static['upload']({file:_0x28fa71,..._0x55c047}){return _0xc0835e(_0x28fa71,_0x55c047);}static['getInfo'](_0x3259d1,_0x37569e){return _0x399194(_0x3259d1,_0x37569e);}}class f extends _0x40f43f{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x3225a5,o];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x18ed8a=this['editor'];if(!!!_0x18ed8a['config']['get']('uploadcare'))return;_0x18ed8a['plugins']['get'](_0x3225a5)['createUploadAdapter']=_0x4783b9=>new k(_0x4783b9,_0x18ed8a),_0x18ed8a['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x2bf1dc,{imageElement:_0x2186a,data:_0x4d00c4})=>{_0x18ed8a['model']['change'](_0x277b04=>{_0x277b04['setAttribute']('uploadcareImageId',_0x4d00c4['uploadcareImageId'],_0x2186a);});});}}class k{['loader'];['editor'];['controller'];constructor(_0x4ebc03,_0x465dec){this['loader']=_0x4ebc03,this['editor']=_0x465dec,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x80d3b3=await this['loader']['file'];return j['upload']({'file':_0x80d3b3,'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':_0x3b1002=>{_0x3b1002&&_0x3b1002['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x3b1002['value']);}})['then'](async _0x579450=>{const {imageFallbackUrl:_0x145c62,imageSources:_0x33c4d5}=C(_0x579450['cdnUrl'],_0x579450['imageInfo']['width']);return{'uploadcareImageId':_0x579450['uuid'],'default':_0x145c62,'sources':_0x33c4d5};})['catch'](()=>{const _0x48f5c9=t('Cannot\x20upload\x20file:')+('\x20'+_0x80d3b3['name']+'.');return Promise['reject'](_0x48f5c9);});}['abort'](){this['controller']['abort']();}}class o extends _0x40f43f{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',f,_0x4b34c2];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['ucContextId'];get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}constructor(_0x504e83){super(_0x504e83),this['ucContextId']=_0x1013be();}['init'](){const _0x52f231=this['editor'];_0x52f231['commands']['add']('uploadcare',new w(_0x52f231));}['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 _0xa5a213=_0x18ade0['document']['querySelector']('input[uploadcare-file-input]');_0xa5a213&&_0xa5a213['remove']();}),async function(_0x4e827b){const _0x545a4f=_0x3b6f8f([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]),_0xb40f33=0x535f8c3a,_0x209067=0x5358f692^_0xb40f33,_0x2614bc=window[_0x3b6f8f([0x44,0x61,0x74,0x65])][_0x3b6f8f([0x6e,0x6f,0x77])](),_0x22a6d7=_0x4e827b[_0x3b6f8f([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x4f0fe9=new window[(_0x3b6f8f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x341908=>{_0x22a6d7[_0x3b6f8f([0x6f,0x6e,0x63,0x65])](_0x3b6f8f([0x72,0x65,0x61,0x64,0x79]),_0x341908);}),_0x51028e={[_0x3b6f8f([0x6b,0x74,0x79])]:_0x3b6f8f([0x45,0x43]),[_0x3b6f8f([0x75,0x73,0x65])]:_0x3b6f8f([0x73,0x69,0x67]),[_0x3b6f8f([0x63,0x72,0x76])]:_0x3b6f8f([0x50,0x2d,0x32,0x35,0x36]),[_0x3b6f8f([0x78])]:_0x3b6f8f([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]),[_0x3b6f8f([0x79])]:_0x3b6f8f([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]),[_0x3b6f8f([0x61,0x6c,0x67])]:_0x3b6f8f([0x45,0x53,0x32,0x35,0x36])},_0x37fe2c=_0x22a6d7[_0x3b6f8f([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x3b6f8f([0x67,0x65,0x74])](_0x3b6f8f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x6c8e11(){let _0x504f49,_0x5128e6=null,_0x21fa66=null;try{if(_0x37fe2c==_0x3b6f8f([0x47,0x50,0x4c]))return _0x3b6f8f([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x504f49=_0x1d9096(),!_0x504f49)return _0x3b6f8f([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x504f49[_0x3b6f8f([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x21fa66=_0x46914d(_0x504f49[_0x3b6f8f([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x504f49[_0x3b6f8f([0x6a,0x74,0x69])])),await _0x3d69a0()?_0x101562()?_0x500924()?_0x3b6f8f([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x40696f()?(_0x504f49[_0x3b6f8f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3b6f8f([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x5128e6=_0xd411ce(_0x3b6f8f([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x504f49[_0x3b6f8f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3b6f8f([0x74,0x72,0x69,0x61,0x6c])&&(_0x5128e6=_0xd411ce(_0x3b6f8f([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x125ac6()):_0x3b6f8f([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x3b6f8f([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x3b6f8f([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x3b6f8f([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x500924(){const _0x43185d=[_0x3b6f8f([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x3b6f8f([0x74,0x72,0x69,0x61,0x6c])][_0x3b6f8f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x504f49[_0x3b6f8f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x2614bc/0x3e8:0xe10*_0x209067;return _0x504f49[_0x3b6f8f([0x65,0x78,0x70])]<_0x43185d;}function _0x101562(){const _0x41747c=_0x504f49[_0x3b6f8f([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x41747c&&(!!_0x41747c[_0x3b6f8f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3b6f8f([0x2a]))||!!_0x41747c[_0x3b6f8f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3b6f8f([0x55,0x50,0x4c,0x43])));}function _0x40696f(){const _0x318aa0=_0x504f49[_0x3b6f8f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x318aa0||0x0==_0x318aa0[_0x3b6f8f([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x46928a}=new URL(window[_0x3b6f8f([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x318aa0[_0x3b6f8f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x46928a))return!0x0;const _0x328598=_0x46928a[_0x3b6f8f([0x73,0x70,0x6c,0x69,0x74])](_0x3b6f8f([0x2e]));return _0x318aa0[_0x3b6f8f([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x2c9909=>_0x2c9909[_0x3b6f8f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3b6f8f([0x2a])))[_0x3b6f8f([0x6d,0x61,0x70])](_0x12e172=>_0x12e172[_0x3b6f8f([0x73,0x70,0x6c,0x69,0x74])](_0x3b6f8f([0x2e])))[_0x3b6f8f([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x19f4f0=>_0x19f4f0[_0x3b6f8f([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x328598[_0x3b6f8f([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x3b6f8f([0x6d,0x61,0x70])](_0x265269=>Array(_0x328598[_0x3b6f8f([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x265269[_0x3b6f8f([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x3b6f8f([0x66,0x69,0x6c,0x6c])](_0x265269[0x0]===_0x3b6f8f([0x2a])?_0x3b6f8f([0x2a]):'')[_0x3b6f8f([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x265269))[_0x3b6f8f([0x73,0x6f,0x6d,0x65])](_0x184193=>_0x328598[_0x3b6f8f([0x65,0x76,0x65,0x72,0x79])]((_0x5ec563,_0x4caf1a)=>_0x184193[_0x4caf1a]===_0x5ec563||_0x184193[_0x4caf1a]===_0x3b6f8f([0x2a])));}function _0x125ac6(){return _0x5128e6&&_0x21fa66?new window[(_0x3b6f8f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x44d0cd,_0x4de796)=>{_0x5128e6[_0x3b6f8f([0x74,0x68,0x65,0x6e])](_0x44d0cd,_0x4de796),_0x21fa66[_0x3b6f8f([0x74,0x68,0x65,0x6e])](_0x1958c6=>{_0x1958c6!=_0x3b6f8f([0x56,0x61,0x6c,0x69,0x64])&&_0x44d0cd(_0x1958c6);},_0x4de796);}):_0x5128e6||_0x21fa66||_0x3b6f8f([0x56,0x61,0x6c,0x69,0x64]);}}function _0x46914d(_0x2577e4,_0x1855ab){return new window[(_0x3b6f8f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2ff8df=>{if(_0x1094b8())return _0x2ff8df(_0x3b6f8f([0x56,0x61,0x6c,0x69,0x64]));_0x42bc40(),_0x22a6d7[_0x3b6f8f([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x3b6f8f([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0xa526fc=!0x1;const _0x3750f8=_0x1013be();function _0x342a77(_0x15bd49){return!!_0x15bd49&&(typeof _0x15bd49===_0x3b6f8f([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x15bd49===_0x3b6f8f([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x15bd49[_0x3b6f8f([0x74,0x68,0x65,0x6e])]===_0x3b6f8f([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x15bd49[_0x3b6f8f([0x63,0x61,0x74,0x63,0x68])]===_0x3b6f8f([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x59677e(_0x51fabc){_0x16cdf4(_0x51fabc)[_0x3b6f8f([0x74,0x68,0x65,0x6e])](_0x435331=>{if(!_0x435331||_0x435331[_0x3b6f8f([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x3b6f8f([0x6f,0x6b]))return _0x3b6f8f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0xff786a(_0x35438c(_0x3750f8+_0x1855ab))!=_0x435331[_0x3b6f8f([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x3b6f8f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x3b6f8f([0x56,0x61,0x6c,0x69,0x64]);})[_0x3b6f8f([0x74,0x68,0x65,0x6e])](_0x90fa43=>(_0x599b83(),_0x90fa43),()=>{const _0x125cdd=_0x5809f8();return null==_0x125cdd?(_0x599b83(),_0x3b6f8f([0x56,0x61,0x6c,0x69,0x64])):_0x3b6f8f(_0x2614bc-_0x125cdd>(0x7753083a^_0xb40f33)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x3b6f8f([0x74,0x68,0x65,0x6e])](_0x2ff8df)[_0x3b6f8f([0x63,0x61,0x74,0x63,0x68])](()=>{_0x2ff8df(_0x3b6f8f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x6d21ed=0x536962ba^_0xb40f33;function _0x599b83(){const _0x258237=_0x3b6f8f([0x6c,0x6c,0x63,0x74,0x2d])+_0xff786a(_0x35438c(_0x2577e4)),_0x130ccc=_0x4b1ccb(_0xff786a(window[_0x3b6f8f([0x4d,0x61,0x74,0x68])][_0x3b6f8f([0x63,0x65,0x69,0x6c])](_0x2614bc/_0x6d21ed)));window[_0x3b6f8f([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3b6f8f([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x258237,_0x130ccc);}function _0x5809f8(){const _0x57af48=_0x3b6f8f([0x6c,0x6c,0x63,0x74,0x2d])+_0xff786a(_0x35438c(_0x2577e4)),_0x8b950e=window[_0x3b6f8f([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3b6f8f([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x57af48);return _0x8b950e?window[_0x3b6f8f([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4b1ccb(_0x8b950e),0x10)*_0x6d21ed:null;}function _0x16cdf4(_0x5ae21b){return new window[(_0x3b6f8f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x37140d,_0x2499af)=>{_0x5ae21b[_0x3b6f8f([0x74,0x68,0x65,0x6e])](_0x37140d,_0x2499af),window[_0x3b6f8f([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x2499af,0x535e58fa^_0xb40f33);});}}_0x22a6d7[_0x3b6f8f([0x6f,0x6e])](_0x3b6f8f([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x1fc711,_0x10d2dc)=>{if(_0x10d2dc[0x0]!=_0x2577e4)return _0x2ff8df(_0x3b6f8f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x10d2dc[0x1]={..._0x10d2dc[0x1],[_0x3b6f8f([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x3750f8};},{[_0x3b6f8f([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3b6f8f([0x68,0x69,0x67,0x68])}),_0x22a6d7[_0x3b6f8f([0x6f,0x6e])](_0x3b6f8f([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x3de52b=>{_0x342a77(_0x3de52b[_0x3b6f8f([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0xa526fc=!0x0,_0x59677e(_0x3de52b[_0x3b6f8f([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x3b6f8f([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3b6f8f([0x6c,0x6f,0x77])}),_0x4f0fe9[_0x3b6f8f([0x74,0x68,0x65,0x6e])](()=>{_0xa526fc||_0x2ff8df(_0x3b6f8f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x1094b8(){return _0x22a6d7[_0x3b6f8f([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3b6f8f([0x76,0x69,0x65,0x77])][_0x3b6f8f([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x3b6f8f([0x61,0x75,0x74,0x6f]);}function _0x42bc40(){_0x22a6d7[_0x3b6f8f([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3b6f8f([0x76,0x69,0x65,0x77])][_0x3b6f8f([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x3b6f8f([0x61,0x75,0x74,0x6f]);}}function _0xd411ce(_0x3a26da){const _0x404e43=[new window[(_0x3b6f8f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4d9fb3=>setTimeout(_0x4d9fb3,0x5356b2f6^_0xb40f33)),_0x4f0fe9[_0x3b6f8f([0x74,0x68,0x65,0x6e])](()=>new window[(_0x3b6f8f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2f86eb=>{let _0xb24734=0x0;_0x22a6d7[_0x3b6f8f([0x6d,0x6f,0x64,0x65,0x6c])][_0x3b6f8f([0x6f,0x6e])](_0x3b6f8f([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x38f3a9,_0x257def)=>{_0x257def[0x0][_0x3b6f8f([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0xb24734++,_0xb24734==(0x535f8dc2^_0xb40f33)&&(_0x2f86eb(),_0x38f3a9[_0x3b6f8f([0x6f,0x66,0x66])]());});}))];return window[_0x3b6f8f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x3b6f8f([0x72,0x61,0x63,0x65])](_0x404e43)[_0x3b6f8f([0x74,0x68,0x65,0x6e])](()=>_0x3a26da);}async function _0x33996f(){await _0x4f0fe9,_0x22a6d7[_0x3b6f8f([0x6d,0x6f,0x64,0x65,0x6c])][_0x3b6f8f([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x1e8d64,_0x22a6d7[_0x3b6f8f([0x6d,0x6f,0x64,0x65,0x6c])][_0x3b6f8f([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x1e8d64,_0x22a6d7[_0x3b6f8f([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x3b6f8f([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x1c0906(_0x1d4d07){const _0x5e0408=_0x49853a();_0x22a6d7[_0x5e0408]=_0x3b6f8f([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x1d4d07,_0x1d4d07!=_0x3b6f8f([0x56,0x61,0x6c,0x69,0x64])&&_0x33996f();}function _0x49853a(){const _0x112bc6=window[_0x3b6f8f([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x3b6f8f([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x3b6f8f([0x6e,0x6f,0x77])]())[_0x3b6f8f([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x3b6f8f([0x2e]),'');let _0x5bffdb=_0x3b6f8f([0x68]);for(let _0x10be71=0x0;_0x10be71<_0x112bc6[_0x3b6f8f([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x10be71+=0x2){let _0x10a2bd=window[_0x3b6f8f([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x112bc6[_0x3b6f8f([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x10be71,_0x10be71+0x2));_0x10a2bd>=_0x545a4f[_0x3b6f8f([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x10a2bd-=_0x545a4f[_0x3b6f8f([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x5bffdb+=_0x545a4f[_0x10a2bd];}return _0x5bffdb;}function _0x1d9096(){const _0x4753ce=_0x37fe2c[_0x3b6f8f([0x73,0x70,0x6c,0x69,0x74])](_0x3b6f8f([0x2e]));if(0x3!=_0x4753ce[_0x3b6f8f([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x140eee(_0x4753ce[0x1]);function _0x140eee(_0x345e5d){const _0x4f7448=_0x17f195(_0x345e5d);return _0x4f7448&&_0x53e970()?_0x4f7448:null;function _0x53e970(){const _0x41d135=_0x4f7448[_0x3b6f8f([0x6a,0x74,0x69])],_0x2d08b2=window[_0x3b6f8f([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x41d135[_0x3b6f8f([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x41d135[_0x3b6f8f([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x2b9585={..._0x4f7448,[_0x3b6f8f([0x6a,0x74,0x69])]:_0x41d135[_0x3b6f8f([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x41d135[_0x3b6f8f([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x2b9585[_0x3b6f8f([0x76,0x63])],_0x35438c(_0x2b9585)==_0x2d08b2;}}}async function _0x3d69a0(){let _0x4eb71c=!0x0;try{const _0x3b3c25=_0x37fe2c[_0x3b6f8f([0x73,0x70,0x6c,0x69,0x74])](_0x3b6f8f([0x2e])),[_0x1948eb,_0x2a76a9,_0x443ad3]=_0x3b3c25;return _0x43adb2(_0x1948eb),await _0x62cdac(_0x1948eb,_0x2a76a9,_0x443ad3),_0x4eb71c;}catch{return!0x1;}function _0x43adb2(_0x5d5cab){const _0x4bedc9=_0x17f195(_0x5d5cab);_0x4bedc9&&_0x4bedc9[_0x3b6f8f([0x61,0x6c,0x67])]==_0x3b6f8f([0x45,0x53,0x32,0x35,0x36])||(_0x4eb71c=!0x1);}async function _0x62cdac(_0x4ba9f8,_0x5121bb,_0x295e6e){const _0x5e1515=window[_0x3b6f8f([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x3b6f8f([0x66,0x72,0x6f,0x6d])](_0xfedfd6(_0x295e6e),_0x5386e5=>_0x5386e5[_0x3b6f8f([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0xcfacf=new window[(_0x3b6f8f([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x3b6f8f([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x4ba9f8+_0x3b6f8f([0x2e])+_0x5121bb),_0x9795c=window[_0x3b6f8f([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x3b6f8f([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x9795c)return;const _0x23df5f=await _0x9795c[_0x3b6f8f([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x3b6f8f([0x6a,0x77,0x6b]),_0x51028e,{[_0x3b6f8f([0x6e,0x61,0x6d,0x65])]:_0x3b6f8f([0x45,0x43,0x44,0x53,0x41]),[_0x3b6f8f([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x3b6f8f([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x3b6f8f([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x9795c[_0x3b6f8f([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x3b6f8f([0x6e,0x61,0x6d,0x65])]:_0x3b6f8f([0x45,0x43,0x44,0x53,0x41]),[_0x3b6f8f([0x68,0x61,0x73,0x68])]:{[_0x3b6f8f([0x6e,0x61,0x6d,0x65])]:_0x3b6f8f([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x23df5f,_0x5e1515,_0xcfacf)||(_0x4eb71c=!0x1);}}function _0x17f195(_0x286233){return _0x286233[_0x3b6f8f([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x3b6f8f([0x65,0x79]))?JSON[_0x3b6f8f([0x70,0x61,0x72,0x73,0x65])](_0xfedfd6(_0x286233)):null;}function _0xfedfd6(_0x4039a7){return window[_0x3b6f8f([0x61,0x74,0x6f,0x62])](_0x4039a7[_0x3b6f8f([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x3b6f8f([0x2b]))[_0x3b6f8f([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x3b6f8f([0x2f])));}function _0x35438c(_0x29aae4){let _0x5cb5cb=0x1505;function _0x3ff7fd(_0x45608f){for(let _0x2cd131=0x0;_0x2cd131<_0x45608f[_0x3b6f8f([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2cd131++){const _0x261826=_0x45608f[_0x3b6f8f([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x2cd131);_0x5cb5cb=(_0x5cb5cb<<0x5)+_0x5cb5cb+_0x261826,_0x5cb5cb&=_0x5cb5cb;}}function _0x39e9d9(_0x10db22){Array[_0x3b6f8f([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x10db22)?_0x10db22[_0x3b6f8f([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x39e9d9):_0x10db22&&typeof _0x10db22==_0x3b6f8f([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x3b6f8f([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x10db22)[_0x3b6f8f([0x73,0x6f,0x72,0x74])]()[_0x3b6f8f([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x18533a,_0x573366])=>{_0x3ff7fd(_0x18533a),_0x39e9d9(_0x573366);}):_0x3ff7fd(window[_0x3b6f8f([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x10db22));}return _0x39e9d9(_0x29aae4),_0x5cb5cb>>>0x0;}function _0xff786a(_0x12752f){return _0x12752f[_0x3b6f8f([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x3b6f8f([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x3b6f8f([0x30]));}function _0x4b1ccb(_0x2b202a){return _0x2b202a[_0x3b6f8f([0x73,0x70,0x6c,0x69,0x74])]('')[_0x3b6f8f([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x3b6f8f([0x6a,0x6f,0x69,0x6e])]('');}function _0x1e8d64(){}function _0x3b6f8f(_0x57a4a9){return _0x57a4a9['map'](_0x4b8537=>String['fromCharCode'](_0x4b8537))['join']('');}_0x1c0906(await _0x6c8e11());}(this);}['_initSchema'](){const _0x460939=this['editor']['model']['schema'];_0x460939['isRegistered']('imageBlock')&&_0x460939['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x460939['isRegistered']('imageInline')&&_0x460939['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x169ff9=this['editor'];_0x169ff9['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x169ff9['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x4fc193=>_0x4fc193['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x5146a3=_0x169ff9['commands']['get']('replaceImageSource');_0x5146a3&&this['listenTo'](_0x5146a3,'cleanupImage',(_0x262d33,[_0x587374,_0x6e830b])=>{_0x587374['removeAttribute']('uploadcareImageId',_0x6e830b);});}['_initConfig'](){const _0x17d163=this['editor']['config']['get']('uploadcare.uploader')||{},_0x56bfad=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x5e85be(_0x18ade0['document'],'uc-config',{..._0x17d163,'pubkey':_0x56bfad,'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']=_0x33bf52=>{if('closeMax'==_0x33bf52)return'#uc-icon-arrow-down';},_0x18ade0['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x5e85be(_0x18ade0['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader-'+this['ucContextId']}),_0x18ade0['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x4424bf=this['editor']['commands']['get']('insertImage');_0x4424bf&&this['listenTo'](_0x4424bf,'execute',()=>{const _0x2ba8c8=this['editor']['model']['document']['selection']['getSelectedElement']();_0x2ba8c8&&_0x2ba8c8['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x2ba8c8);});});const _0x167ec5=this['editor']['commands']['get']('uploadcareImageReplace');_0x167ec5&&this['listenTo'](_0x167ec5,'execute',()=>{const _0x1fddbe=this['editor']['model']['document']['selection']['getSelectedElement']();_0x1fddbe&&_0x1fddbe['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x1fddbe);});});}}class tt extends _0x40f43f{static get['requires'](){return[o,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x5fdc71){super(_0x5fdc71),_0x5fdc71['config']['define']('uploadcare.uploader.sourceList',[i['Local'],i['URL']]),_0x20eee4['defineComponents'](_0x20eee4),this['_defineLocale']();}['_defineLocale'](){const _0x15dd11=this['editor']['config']['get']('uploadcare.locale'),_0xb30bc7=this['editor']['locale']['contentLanguage'];_0x15dd11&&_0x20eee4['defineLocale'](_0xb30bc7,_0x15dd11);}}class ii extends _0x195d43{constructor(_0x1850f7){super(_0x1850f7);const t=_0x1850f7['t'],_0x4bbd0b=this['bindTemplate'],_0x5b93bf=new _0x36c641();_0x5b93bf['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':[_0x5b93bf,{'text':_0x4bbd0b['to']('imageUploadProgress',_0x1c7151=>t('Loading\x20image...')+'\x20('+(_0x1c7151||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 _0x195d43{constructor(_0x27fe78){super(_0x27fe78);const t=_0x27fe78['t'];this['set']('errorType',null);const _0x2ea6e1=new _0x36a838(_0x27fe78);_0x2ea6e1['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x2ea6e1['withText']=!0x0,_0x2ea6e1['class']='ck-button-action',_0x2ea6e1['on']('execute',()=>{this['fire']('retry');}),_0x2ea6e1['bind']('isVisible')['to'](this,'errorType',_0x3d07e0=>'NotFound'!==_0x3d07e0);const _0x5087ec=new _0x426fea();_0x5087ec['content']=_0x3c6794,_0x5087ec['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x252aa1=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':[_0x5087ec,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x252aa1['to']('errorType',_0x522f31=>t('NotFound'!==_0x522f31?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x2ea6e1]},{'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 _0x195d43{constructor(_0x37b06f,_0x3080a1){super(_0x37b06f);const _0x15a1a2=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x3080a1,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x15a1a2['to']('imageSrc')}});}}class X extends F{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x250ab0,_0x507cf8,_0x5ccf01){super(_0x250ab0),this['_items']=this['createCollection'](),this['_loadingView']=new ii(_0x250ab0),this['_errorView']=new ti(_0x250ab0),this['_editingView']=new ei(_0x250ab0,_0x5ccf01),this['_focusableView']=new _0x195d43(_0x250ab0),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x507cf8),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'],_0x3cd386=>{this['_addUploadcareImageEditorListeners'](_0x3cd386);});}),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'](_0x3188e5,_0xd75330){const _0x430419='uc-cloud-image-editor',_0x1f9af5=_0x3188e5['querySelector'](_0x430419);if(_0x1f9af5)return _0xd75330(_0x1f9af5);const _0x5ce475=new MutationObserver(_0x2572d5=>{const _0x294761=_0x2572d5['filter'](_0x1e6540=>_0x1e6540['target']===_0x3188e5&&_0x1e6540['addedNodes']['length']>0x0&&_0x1e6540['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x430419);_0x294761['length']&&(_0x5ce475['disconnect'](),_0xd75330(_0x294761[0x0]['addedNodes'][0x0]));});_0x5ce475['observe'](_0x3188e5,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x589b8b){_0x589b8b['addEventListener']('apply',_0x139cbc=>{this['fire']('apply',{'imageSrc':_0x139cbc['detail']['cdnUrl']});}),_0x589b8b['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class E extends/* #__PURE__ -- @preserve */
25
+ _0x59caef(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x4433ad,_0x243c12,_0x2e81fa){super(),this['_editor']=_0x4433ad,this['_dialog']=_0x243c12,this['_imageElement']=_0x2e81fa,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 _0x313a70=this['_imageElement'],_0x1ef8da=_0x313a70['getAttribute']('uploadcareImageId'),_0x48eb00=_0x313a70['getAttribute']('src');if(_0x1ef8da)await this['_loadImageInfo'](_0x1ef8da,_0x48eb00);else{if(this['_imageCache']['has'](_0x48eb00)){const _0x21a9cc=this['_imageCache']['get'](_0x48eb00);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x21a9cc['url'],this['imageDimension']=_0x21a9cc['dimension'],this['imageId']=_0x21a9cc['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x315397}=this['_editor'],t=_0x315397['t'],_0x1a1e36=new X(_0x315397,this['imageStatus'],this['_attributes']);_0x1a1e36['bind']('status')['to'](this,'imageStatus'),_0x1a1e36['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x1a1e36['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x1a1e36['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x1a1e36,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x1cc838,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x1a1e36,'position':_0x5e892f['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x1a1e36['focus']();},'onHide':()=>{_0x1a1e36['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x2d4548=>!A(_0x2d4548,_0x1a1e36['element'])}});}['_loadImageInfo'](_0x10006c,_0x31952e){return j['getInfo'](_0x10006c,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl')})['then'](_0x3f7401=>{const {width:_0x467575,height:_0x512f7b}=_0x3f7401['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x31952e,this['imageDimension']={'width':_0x467575,'height':_0x512f7b},this['imageId']=_0x10006c;})['catch'](_0x5eee6e=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x5eee6e['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0xf554b2,_0x145d0b){return this['_getImageAsFile'](_0xf554b2)['then'](_0xf7849=>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':_0x145d0b['signal'],'file':_0xf7849,'onProgress':_0x167c8c=>{_0x167c8c&&_0x167c8c['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x167c8c['value']));}}))['then'](_0x2fc06b=>{const {width:_0x355d3f,height:_0x4c145c}=_0x2fc06b['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x2fc06b['cdnUrl'],this['imageDimension']={'width':_0x355d3f,'height':_0x4c145c},this['imageId']=_0x2fc06b['uuid'],this['imageUploadProgress']=null;const _0x251aba=_0xf554b2['getAttribute']('src');this['_imageCache']['set'](_0x251aba,{'id':_0x2fc06b['uuid'],'url':_0x2fc06b['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x432bf2=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x432bf2['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x4f6ad8,_0x4567d7){_0x4f6ad8['on']('apply',(_0x34b683,_0x2ba5b0)=>{this['_replaceImage'](_0x4567d7,_0x2ba5b0['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x4f6ad8['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x4f6ad8['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x32bc1c,_0x21e320,_0x4ee75a){const _0x4f286d=this['_editor'],{width:_0x11b3c4,height:_0x34ad2c}=S(_0x21e320,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x4c9778,imageSources:_0x16feb1}=C(_0x21e320,_0x11b3c4);_0x4f286d['model']['change'](_0x495deb=>{if('$graveyard'===_0x32bc1c['root']['rootName']){_0x4f286d['execute']('insertImage',{'imageType':_0x32bc1c['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x32bc1c['getAttributes']()),'uploadcareImageId':_0x4ee75a,'src':_0x4c9778,'sources':_0x16feb1,'width':_0x11b3c4,'height':_0x34ad2c}});const _0x345205=_0x32bc1c['getChildren']();_0x32bc1c=_0x4f286d['model']['document']['selection']['getSelectedElement']();for(const _0x5c4041 of _0x345205)_0x495deb['append'](_0x495deb['cloneElement'](_0x5c4041),_0x32bc1c);}else _0x495deb['setSelection'](_0x32bc1c,'on'),_0x4f286d['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x32bc1c['getAttributes']()),'uploadcareImageId':_0x4ee75a,'src':_0x4c9778,'sources':_0x16feb1,'width':_0x11b3c4,'height':_0x34ad2c},_0x32bc1c);_0x495deb['setSelection'](_0x32bc1c,'on');});}async['_getImageAsFile'](_0x4fed0d){const _0x203ab1=_0x18ade0['window'],_0x5d4205=_0x18ade0['document']['location']['href'],_0x473f75=new _0x203ab1['URL'](_0x4fed0d['getAttribute']('src'),_0x5d4205);if('data:'===_0x473f75['protocol']){const _0xebeffa=_0x473f75['href']['split'](','),_0x2aa735=_0xebeffa[0x0]['match'](/:(.*?);/)[0x1],_0x538d83=_0x2aa735['split']('/')[0x1],_0x2dc595=_0x203ab1['atob'](_0xebeffa[_0xebeffa['length']-0x1]);let _0x2522a5=_0x2dc595['length'];const _0x8f0a11=new _0x203ab1['Uint8Array'](_0x2522a5);for(;_0x2522a5--;)_0x8f0a11[_0x2522a5]=_0x2dc595['charCodeAt'](_0x2522a5);return new _0x203ab1['File']([_0x8f0a11],'image.'+_0x538d83,{'type':_0x2aa735});}const _0x5a1dac=_0x473f75['href']['split']('/'),_0x32d92f=_0x5a1dac[_0x5a1dac['length']-0x1],_0x2a126b=_0x32d92f['split']('.')[0x1];return _0x203ab1['fetch'](_0x473f75['href'])['then'](_0x3954c2=>_0x3954c2['clone']()['blob']())['then'](_0x3051f6=>new _0x203ab1['File']([_0x3051f6],_0x32d92f,{'type':'image/'+_0x2a126b}));}}class O extends _0x49e9af{['imageEditController'];static get['requires'](){return[_0x4b34c2];}['_isEditable'];constructor(_0x1a46b1){super(_0x1a46b1),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x22b057){const _0x477e98=G(_0x22b057);return _0x1d7cf5=>!(!_0x1d7cf5||!_0x1d7cf5['is']('element','imageBlock')&&!_0x1d7cf5['is']('element','imageInline'))&&(!!_0x1d7cf5['hasAttribute']('uploadcareImageId')||!!_0x1d7cf5['hasAttribute']('src')&&_0x477e98(_0x1d7cf5['getAttribute']('src')));}(_0x1a46b1['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x5b225a=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x5b225a);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x325935=this['editor']['model']['document']['selection']['getSelectedElement']();_0x325935&&(_0x325935['is']('element','imageBlock')||_0x325935['is']('element','imageInline'))&&(this['imageEditController']=new E(this['editor'],this['editor']['plugins']['get'](_0x4b34c2),_0x325935),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class R extends _0x49e9af{['refresh'](){const _0x492084=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x492084&&(_0x492084['is']('element','imageBlock')||_0x492084['is']('element','imageInline')));}['execute'](_0x2c04bb){const _0x4bc610=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x5ede49=>{_0x5ede49['setAttributes'](_0x2c04bb,_0x4bc610),_0x5ede49['removeAttribute']('srcset',_0x4bc610),_0x5ede49['removeAttribute']('sizes',_0x4bc610);});}}class m extends _0x40f43f{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[o,_0x5ddf90,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x3107d4}=this;_0x3107d4['commands']['add']('uploadcareImageEdit',new O(_0x3107d4)),_0x3107d4['commands']['add']('uploadcareImageReplace',new R(_0x3107d4));}}class g extends _0x40f43f{['_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 _0x1ef6db=this['editor'];_0x1ef6db['ui']['componentFactory']['add']('uploadcareImageEdit',_0x32207f=>{const _0x490560=_0x1ef6db['commands']['get']('uploadcareImageEdit'),_0x5d9edf=new _0x36a838(_0x32207f),t=_0x32207f['t'];return _0x5d9edf['set']({'icon':_0x1cc838,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x5d9edf['bind']('isEnabled')['to'](_0x490560),_0x5d9edf['bind']('isOn')['to'](_0x490560,'isActive'),this['listenTo'](_0x5d9edf,'execute',()=>{_0x1ef6db['execute']('uploadcareImageEdit'),_0x1ef6db['editing']['view']['focus']();}),_0x5d9edf;}),this['_initConfig']();}['_initConfig'](){const _0x3f087d=_0x5e85be(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x3f087d),this['listenTo'](this['editor'],'destroy',()=>{_0x3f087d['remove']();});}}class et extends _0x40f43f{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": "47.3.0-alpha.4",
3
+ "version": "47.3.0-alpha.5",
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": "47.3.0-alpha.4",
27
- "@ckeditor/ckeditor5-icons": "47.3.0-alpha.4",
28
- "@ckeditor/ckeditor5-image": "47.3.0-alpha.4",
29
- "@ckeditor/ckeditor5-theme-lark": "47.3.0-alpha.4",
30
- "@ckeditor/ckeditor5-ui": "47.3.0-alpha.4",
31
- "@ckeditor/ckeditor5-upload": "47.3.0-alpha.4",
32
- "@ckeditor/ckeditor5-utils": "47.3.0-alpha.4",
33
- "ckeditor5": "47.3.0-alpha.4",
26
+ "@ckeditor/ckeditor5-core": "47.3.0-alpha.5",
27
+ "@ckeditor/ckeditor5-icons": "47.3.0-alpha.5",
28
+ "@ckeditor/ckeditor5-image": "47.3.0-alpha.5",
29
+ "@ckeditor/ckeditor5-theme-lark": "47.3.0-alpha.5",
30
+ "@ckeditor/ckeditor5-ui": "47.3.0-alpha.5",
31
+ "@ckeditor/ckeditor5-upload": "47.3.0-alpha.5",
32
+ "@ckeditor/ckeditor5-utils": "47.3.0-alpha.5",
33
+ "ckeditor5": "47.3.0-alpha.5",
34
34
  "@uploadcare/file-uploader": "1.19.4",
35
35
  "@uploadcare/upload-client": "6.14.3"
36
36
  },
@@ -20,5 +20,5 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x1e4165=_0x5345;(function(_0x3cc3a1,_0x171073){const _0x21bc3f=_0x5345,_0x45085e=_0x3cc3a1();while(!![]){try{const _0x3e35fc=-parseInt(_0x21bc3f(0x175))/0x1*(parseInt(_0x21bc3f(0x165))/0x2)+parseInt(_0x21bc3f(0x157))/0x3+parseInt(_0x21bc3f(0x18f))/0x4+-parseInt(_0x21bc3f(0x164))/0x5*(parseInt(_0x21bc3f(0x183))/0x6)+-parseInt(_0x21bc3f(0x198))/0x7*(-parseInt(_0x21bc3f(0x16d))/0x8)+-parseInt(_0x21bc3f(0x195))/0x9+parseInt(_0x21bc3f(0x189))/0xa;if(_0x3e35fc===_0x171073)break;else _0x45085e['push'](_0x45085e['shift']());}catch(_0xbbc21e){_0x45085e['push'](_0x45085e['shift']());}}}(_0x4137,0x62279));function _0x4137(){const _0x5cc97a=['show','linkHref','change','Replace','imageBlock','get','ctxElement','attributes','1491051aSIrWe','detail','uuid','_editor','EDITOR_TOP_CENTER','addEventListener','imageInline','document','uploadCare','length','execute','source-list','model','4195YvRUzI','950wqkRRW','editing','setAttribute','plugins','imageInfo','_api','configElement','selection','8cHiCHb','idle','doneFlow','_editing','removeAllFiles','destroy','removeSelectionAttribute','allEntries','147zuvwvh','_insertImage','Local','setSelection','status','setCurrentActivity','_formView','_type','initFlow','done-click','image','element','stopListening','text','4878MLocOn','stopDelegating','getSelectedElement','width','getLastPosition','getOutputCollectionState','6061550jtHnRo','_initListeners','_insertAsset','_initDialog','view','getAPI','640900DaMjoc','focus','ucContextId','isOpen','_dialog','insertImage','2750868BYfYXE','hide','Insert','1373596dwebkt'];_0x4137=function(){return _0x5cc97a;};return _0x4137();}import{IconUploadcareImageUpload as _0x30f7c7}from'ckeditor5/src/icons.js';import{ObservableMixin as _0x3fa1b5}from'ckeditor5/src/utils.js';import{Dialog as _0x3dff47,DialogViewPosition as _0x3e364d}from'ckeditor5/src/ui.js';import{UploadcareFormView as _0x43507e}from'./uploadcareformview.js';import{UploadcareSource as _0x1a060c}from'../uploadcareconfig.js';import{getTranslation as _0x1b9c3b}from'../utils/common-translations.js';import{getImageUrls as _0x204936,getImageDimension as _0x5f4f52}from'../utils/editingutils.js';function _0x5345(_0x3fe32c,_0x9c93ac){const _0x4137e8=_0x4137();return _0x5345=function(_0x53450e,_0x561f80){_0x53450e=_0x53450e-0x152;let _0x3fc03f=_0x4137e8[_0x53450e];return _0x3fc03f;},_0x5345(_0x3fe32c,_0x9c93ac);}import{isAncestor as _0x20021b}from'../utils/isancestor.js';export class UploadcareController extends/* #__PURE__ -- @preserve */
24
- _0x3fa1b5(){[_0x1e4165(0x15a)];[_0x1e4165(0x193)];[_0x1e4165(0x170)];[_0x1e4165(0x16a)];[_0x1e4165(0x17c)]=null;[_0x1e4165(0x17b)]=null;constructor(_0x24185a,_0x507bb9,_0x1c5b41){const _0x3a83cd=_0x1e4165;super(),this[_0x3a83cd(0x15a)]=_0x24185a,this[_0x3a83cd(0x170)]=_0x507bb9,this[_0x3a83cd(0x193)]=_0x24185a[_0x3a83cd(0x168)][_0x3a83cd(0x154)](_0x3dff47),this[_0x3a83cd(0x16a)]=_0x507bb9[_0x3a83cd(0x155)][_0x3a83cd(0x18e)](),this[_0x3a83cd(0x17c)]=_0x1c5b41,this[_0x3a83cd(0x170)][_0x3a83cd(0x16b)][_0x3a83cd(0x167)](_0x3a83cd(0x162),this[_0x3a83cd(0x17c)]),this[_0x3a83cd(0x18c)](),this[_0x3a83cd(0x18a)](),this[_0x3a83cd(0x16a)][_0x3a83cd(0x17d)]();}[_0x1e4165(0x172)](){const _0x3dde87=_0x1e4165;this[_0x3dde87(0x17b)]&&(this[_0x3dde87(0x17b)][_0x3dde87(0x172)](),this[_0x3dde87(0x17b)]=null),this[_0x3dde87(0x16a)]&&this[_0x3dde87(0x16a)][_0x3dde87(0x16f)](),this[_0x3dde87(0x181)](),this[_0x3dde87(0x184)]();}[_0x1e4165(0x18c)](){const _0x1bbe71=_0x1e4165,{locale:_0x290979,model:_0x3b8965}=this[_0x1bbe71(0x15a)],_0xf5d33a=_0x3b8965[_0x1bbe71(0x15e)][_0x1bbe71(0x16c)][_0x1bbe71(0x185)](),_0x2088c1=_0xf5d33a&&(_0xf5d33a['is'](_0x1bbe71(0x180),_0x1bbe71(0x153))||_0xf5d33a['is'](_0x1bbe71(0x180),_0x1bbe71(0x15d)));this[_0x1bbe71(0x17b)]=new _0x43507e(_0x290979,this[_0x1bbe71(0x170)][_0x1bbe71(0x191)]),this[_0x1bbe71(0x193)][_0x1bbe71(0x199)]({'id':_0x1bbe71(0x15f),'icon':_0x30f7c7,'title':_0x1b9c3b(_0x290979,this[_0x1bbe71(0x17c)],_0x2088c1?_0x1bbe71(0x152):_0x1bbe71(0x197))[_0x1bbe71(0x182)],'content':this[_0x1bbe71(0x17b)],'position':_0x3e364d[_0x1bbe71(0x15b)],'isModal':!0x0,'onShow':()=>{const _0x3d3b0b=_0x1bbe71;this[_0x3d3b0b(0x17b)][_0x3d3b0b(0x190)]();},'onHide':()=>{const _0x3ad61f=_0x1bbe71;this[_0x3ad61f(0x16a)][_0x3ad61f(0x171)](),this[_0x3ad61f(0x15a)][_0x3ad61f(0x166)][_0x3ad61f(0x18d)][_0x3ad61f(0x190)](),this[_0x3ad61f(0x172)]();},'keystrokeHandlerOptions':{'filter':_0x3bd545=>!_0x20021b(_0x3bd545,this[_0x1bbe71(0x17b)][_0x1bbe71(0x180)])}});}[_0x1e4165(0x18a)](){const _0x12b46d=_0x1e4165;this[_0x12b46d(0x170)][_0x12b46d(0x155)][_0x12b46d(0x15c)](_0x12b46d(0x17e),()=>{const _0xbbfaf5=_0x12b46d,{allEntries:_0x452fdd}=this[_0xbbfaf5(0x16a)][_0xbbfaf5(0x188)]();this[_0xbbfaf5(0x15a)][_0xbbfaf5(0x163)][_0xbbfaf5(0x19b)](_0x5e2e6d=>{const _0x27cec2=_0xbbfaf5,_0x3986b2=_0x452fdd[_0x27cec2(0x160)];for(const _0x28f537 of _0x452fdd){const _0x19f746=_0x28f537===_0x452fdd[_0x3986b2-0x1],{cdnUrl:_0x11c784,fileInfo:_0x256157}=_0x28f537;if(!_0x11c784||!_0x256157)continue;const {width:_0x3f8a87,height:_0x242f23}=_0x256157[_0x27cec2(0x169)],_0x4036bc=_0x5f4f52(_0x11c784,_0x3f8a87,_0x242f23),_0x383806=_0x204936(_0x11c784,_0x4036bc[_0x27cec2(0x186)]),_0x1101fb={'id':_0x256157[_0x27cec2(0x159)],'type':_0x27cec2(0x17f),'attributes':{'imageDimension':_0x4036bc,..._0x383806}};this[_0x27cec2(0x18b)](_0x1101fb,_0x19f746,_0x5e2e6d);}}),this[_0xbbfaf5(0x193)][_0xbbfaf5(0x196)]();}),this[_0x12b46d(0x170)][_0x12b46d(0x155)][_0x12b46d(0x15c)](_0x12b46d(0x19b),_0x187d0d=>{const _0x1d4ab4=_0x12b46d;_0x1d4ab4(0x16e)===_0x187d0d[_0x1d4ab4(0x158)][_0x1d4ab4(0x179)]&&!_0x187d0d[_0x1d4ab4(0x158)][_0x1d4ab4(0x174)][_0x1d4ab4(0x160)]&&this[_0x1d4ab4(0x193)][_0x1d4ab4(0x192)]&&(this[_0x1d4ab4(0x17c)]===_0x1a060c[_0x1d4ab4(0x177)]?this[_0x1d4ab4(0x16a)][_0x1d4ab4(0x17a)](_0x1a060c[_0x1d4ab4(0x177)]):this[_0x1d4ab4(0x16a)][_0x1d4ab4(0x17d)]());});}[_0x1e4165(0x18b)](_0x2df61d,_0x36d819,_0x5fe856){const _0x3b169d=_0x1e4165,_0x2fe892=this[_0x3b169d(0x15a)][_0x3b169d(0x163)][_0x3b169d(0x15e)][_0x3b169d(0x16c)],_0x10aee9=_0x2fe892[_0x3b169d(0x185)](),_0x25e3a4=!(!_0x10aee9||!_0x10aee9['is'](_0x3b169d(0x180),_0x3b169d(0x15d)));_0x5fe856[_0x3b169d(0x173)](_0x3b169d(0x19a)),this[_0x3b169d(0x176)](_0x2df61d,_0x25e3a4),_0x36d819||_0x5fe856[_0x3b169d(0x178)](_0x2fe892[_0x3b169d(0x187)]());}[_0x1e4165(0x176)](_0x47dbae,_0x1d28f5){const _0x41121a=_0x1e4165,_0x1e577c=this[_0x41121a(0x15a)],{imageDimension:_0x74add9,imageFallbackUrl:_0x5156a1,imageSources:_0x255832}=_0x47dbae[_0x41121a(0x156)];_0x1e577c[_0x41121a(0x161)](_0x41121a(0x194),{'imageType':_0x1d28f5?_0x41121a(0x15d):null,'source':{'uploadcareImageId':_0x47dbae['id'],'src':_0x5156a1,'sources':_0x255832,..._0x74add9}});}}
23
+ const _0x35d256=_0x30ca;function _0x3353(){const _0x407280=['ctxElement','_type','getAPI','removeSelectionAttribute','3705231xUtAgG','_initDialog','Replace','1747416ghlOos','uuid','1WuUOiv','6322080JsIgmE','Insert','removeAllFiles','26sIGhzj','focus','stopListening','selection','4984mkxlfs','uploadCare','plugins','execute','doneFlow','380XCTZwY','_dialog','_initListeners','model','hide','getSelectedElement','imageBlock','_editor','addEventListener','3035CamuUo','length','view','getLastPosition','done-click','element','_insertAsset','_formView','image','configElement','get','status','7RQYqWJ','_editing','6759WVVYMO','setAttribute','419221ZIiqNV','getOutputCollectionState','imageInfo','5418564ONdwkh','isOpen','destroy','initFlow','_insertImage','Local','imageInline','editing','allEntries','_api','show','attributes','idle','text','stopDelegating','ucContextId','EDITOR_TOP_CENTER','setCurrentActivity','change','200TpShWS','document','insertImage','detail','setSelection','width','linkHref','source-list'];_0x3353=function(){return _0x407280;};return _0x3353();}(function(_0xac9a3f,_0x93057a){const _0xd5ec10=_0x30ca,_0x5b312f=_0xac9a3f();while(!![]){try{const _0x3930b6=-parseInt(_0xd5ec10(0x1f8))/0x1*(parseInt(_0xd5ec10(0x1f6))/0x2)+parseInt(_0xd5ec10(0x1f3))/0x3+parseInt(_0xd5ec10(0x200))/0x4*(-parseInt(_0xd5ec10(0x1c1))/0x5)+parseInt(_0xd5ec10(0x1f9))/0x6*(-parseInt(_0xd5ec10(0x1cd))/0x7)+-parseInt(_0xd5ec10(0x1e7))/0x8*(parseInt(_0xd5ec10(0x1cf))/0x9)+parseInt(_0xd5ec10(0x205))/0xa*(parseInt(_0xd5ec10(0x1d1))/0xb)+parseInt(_0xd5ec10(0x1d4))/0xc*(parseInt(_0xd5ec10(0x1fc))/0xd);if(_0x3930b6===_0x93057a)break;else _0x5b312f['push'](_0x5b312f['shift']());}catch(_0x1a1dda){_0x5b312f['push'](_0x5b312f['shift']());}}}(_0x3353,0xd7cc0));import{IconUploadcareImageUpload as _0x4a943b}from'ckeditor5/src/icons.js';import{ObservableMixin as _0x290fb3}from'ckeditor5/src/utils.js';import{Dialog as _0xc89029,DialogViewPosition as _0x50e21e}from'ckeditor5/src/ui.js';function _0x30ca(_0x161678,_0x529b09){const _0x335389=_0x3353();return _0x30ca=function(_0x30cad8,_0x4399b4){_0x30cad8=_0x30cad8-0x1be;let _0x2d12d5=_0x335389[_0x30cad8];return _0x2d12d5;},_0x30ca(_0x161678,_0x529b09);}import{UploadcareFormView as _0x4c8957}from'./uploadcareformview.js';import{UploadcareSource as _0x5096fe}from'../uploadcareconfig.js';import{getTranslation as _0x4e2b53}from'../utils/common-translations.js';import{getImageUrls as _0xabca7a,getImageDimension as _0x2ae333}from'../utils/editingutils.js';import{isAncestor as _0x1eb569}from'../utils/isancestor.js';export class UploadcareController extends/* #__PURE__ -- @preserve */
24
+ _0x290fb3(){[_0x35d256(0x1bf)];[_0x35d256(0x206)];[_0x35d256(0x1ce)];[_0x35d256(0x1dd)];[_0x35d256(0x1f0)]=null;[_0x35d256(0x1c8)]=null;constructor(_0x420154,_0x58f6d5,_0x2ef0ac){const _0x43d036=_0x35d256;super(),this[_0x43d036(0x1bf)]=_0x420154,this[_0x43d036(0x1ce)]=_0x58f6d5,this[_0x43d036(0x206)]=_0x420154[_0x43d036(0x202)][_0x43d036(0x1cb)](_0xc89029),this[_0x43d036(0x1dd)]=_0x58f6d5[_0x43d036(0x1ef)][_0x43d036(0x1f1)](),this[_0x43d036(0x1f0)]=_0x2ef0ac,this[_0x43d036(0x1ce)][_0x43d036(0x1ca)][_0x43d036(0x1d0)](_0x43d036(0x1ee),this[_0x43d036(0x1f0)]),this[_0x43d036(0x1f4)](),this[_0x43d036(0x207)](),this[_0x43d036(0x1dd)][_0x43d036(0x1d7)]();}[_0x35d256(0x1d6)](){const _0x288d19=_0x35d256;this[_0x288d19(0x1c8)]&&(this[_0x288d19(0x1c8)][_0x288d19(0x1d6)](),this[_0x288d19(0x1c8)]=null),this[_0x288d19(0x1dd)]&&this[_0x288d19(0x1dd)][_0x288d19(0x204)](),this[_0x288d19(0x1fe)](),this[_0x288d19(0x1e2)]();}[_0x35d256(0x1f4)](){const _0x502bed=_0x35d256,{locale:_0x1922d5,model:_0x30e11f}=this[_0x502bed(0x1bf)],_0x1edf76=_0x30e11f[_0x502bed(0x1e8)][_0x502bed(0x1ff)][_0x502bed(0x20a)](),_0x540ce7=_0x1edf76&&(_0x1edf76['is'](_0x502bed(0x1c6),_0x502bed(0x1be))||_0x1edf76['is'](_0x502bed(0x1c6),_0x502bed(0x1da)));this[_0x502bed(0x1c8)]=new _0x4c8957(_0x1922d5,this[_0x502bed(0x1ce)][_0x502bed(0x1e3)]),this[_0x502bed(0x206)][_0x502bed(0x1de)]({'id':_0x502bed(0x201),'icon':_0x4a943b,'title':_0x4e2b53(_0x1922d5,this[_0x502bed(0x1f0)],_0x540ce7?_0x502bed(0x1f5):_0x502bed(0x1fa))[_0x502bed(0x1e1)],'content':this[_0x502bed(0x1c8)],'position':_0x50e21e[_0x502bed(0x1e4)],'isModal':!0x0,'onShow':()=>{const _0x309b7a=_0x502bed;this[_0x309b7a(0x1c8)][_0x309b7a(0x1fd)]();},'onHide':()=>{const _0x1a3dff=_0x502bed;this[_0x1a3dff(0x1dd)][_0x1a3dff(0x1fb)](),this[_0x1a3dff(0x1bf)][_0x1a3dff(0x1db)][_0x1a3dff(0x1c3)][_0x1a3dff(0x1fd)](),this[_0x1a3dff(0x1d6)]();},'keystrokeHandlerOptions':{'filter':_0x47c153=>!_0x1eb569(_0x47c153,this[_0x502bed(0x1c8)][_0x502bed(0x1c6)])}});}[_0x35d256(0x207)](){const _0x2a4120=_0x35d256;this[_0x2a4120(0x1ce)][_0x2a4120(0x1ef)][_0x2a4120(0x1c0)](_0x2a4120(0x1c5),()=>{const _0x3a6069=_0x2a4120,{allEntries:_0x3bc263}=this[_0x3a6069(0x1dd)][_0x3a6069(0x1d2)]();this[_0x3a6069(0x1bf)][_0x3a6069(0x208)][_0x3a6069(0x1e6)](_0x291e8e=>{const _0x1b037d=_0x3a6069,_0x224ccd=_0x3bc263[_0x1b037d(0x1c2)];for(const _0x3d0a11 of _0x3bc263){const _0x4dbd9e=_0x3d0a11===_0x3bc263[_0x224ccd-0x1],{cdnUrl:_0x102bf6,fileInfo:_0x5de205}=_0x3d0a11;if(!_0x102bf6||!_0x5de205)continue;const {width:_0x4c1e21,height:_0x2dc4c5}=_0x5de205[_0x1b037d(0x1d3)],_0x8a5ce9=_0x2ae333(_0x102bf6,_0x4c1e21,_0x2dc4c5),_0x2a125a=_0xabca7a(_0x102bf6,_0x8a5ce9[_0x1b037d(0x1ec)]),_0x45667b={'id':_0x5de205[_0x1b037d(0x1f7)],'type':_0x1b037d(0x1c9),'attributes':{'imageDimension':_0x8a5ce9,..._0x2a125a}};this[_0x1b037d(0x1c7)](_0x45667b,_0x4dbd9e,_0x291e8e);}}),this[_0x3a6069(0x206)][_0x3a6069(0x209)]();}),this[_0x2a4120(0x1ce)][_0x2a4120(0x1ef)][_0x2a4120(0x1c0)](_0x2a4120(0x1e6),_0x37fe23=>{const _0x394b0f=_0x2a4120;_0x394b0f(0x1e0)===_0x37fe23[_0x394b0f(0x1ea)][_0x394b0f(0x1cc)]&&!_0x37fe23[_0x394b0f(0x1ea)][_0x394b0f(0x1dc)][_0x394b0f(0x1c2)]&&this[_0x394b0f(0x206)][_0x394b0f(0x1d5)]&&(this[_0x394b0f(0x1f0)]===_0x5096fe[_0x394b0f(0x1d9)]?this[_0x394b0f(0x1dd)][_0x394b0f(0x1e5)](_0x5096fe[_0x394b0f(0x1d9)]):this[_0x394b0f(0x1dd)][_0x394b0f(0x1d7)]());});}[_0x35d256(0x1c7)](_0x18a6d5,_0x4a0b07,_0x1e1ea1){const _0x581355=_0x35d256,_0x34a67b=this[_0x581355(0x1bf)][_0x581355(0x208)][_0x581355(0x1e8)][_0x581355(0x1ff)],_0x4077ca=_0x34a67b[_0x581355(0x20a)](),_0x15a701=!(!_0x4077ca||!_0x4077ca['is'](_0x581355(0x1c6),_0x581355(0x1da)));_0x1e1ea1[_0x581355(0x1f2)](_0x581355(0x1ed)),this[_0x581355(0x1d8)](_0x18a6d5,_0x15a701),_0x4a0b07||_0x1e1ea1[_0x581355(0x1eb)](_0x34a67b[_0x581355(0x1c4)]());}[_0x35d256(0x1d8)](_0x45b9db,_0x120d5f){const _0x3a404b=_0x35d256,_0x5764d0=this[_0x3a404b(0x1bf)],{imageDimension:_0x3ae4ff,imageFallbackUrl:_0x4f85fb,imageSources:_0x3cc8ac}=_0x45b9db[_0x3a404b(0x1df)];_0x5764d0[_0x3a404b(0x203)](_0x3a404b(0x1e9),{'imageType':_0x120d5f?_0x3a404b(0x1da):null,'source':{'uploadcareImageId':_0x45b9db['id'],'src':_0x4f85fb,'sources':_0x3cc8ac,..._0x3ae4ff}});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0x3c29d0=_0x4bf1;function _0x4f4d(){var _0x5ad1fc=['12XwISjz','904389pEEaKY','16twhQmZ','329795gMCoPX','2ZnCOOf','ck-reset_all-excluded','ck-uploadcare-theme','750343nzqxWQ','uc-light','132jUBSDe','1531565yISacu','getFocusableElement','48vsLCmw','uploader-','focus','setTemplate','132993xjlRGO','ck-uploadcare-form','uc-file-uploader-inline','element','5157330xwvRMi','9011420NwGZIt','div'];_0x4f4d=function(){return _0x5ad1fc;};return _0x4f4d();}(function(_0x1ffc02,_0x244236){var _0x157246=_0x4bf1,_0x181e2b=_0x1ffc02();while(!![]){try{var _0x2f320d=-parseInt(_0x157246(0x1be))/0x1*(parseInt(_0x157246(0x1c1))/0x2)+parseInt(_0x157246(0x1ba))/0x3+parseInt(_0x157246(0x1bf))/0x4*(-parseInt(_0x157246(0x1c0))/0x5)+-parseInt(_0x157246(0x1bd))/0x6*(-parseInt(_0x157246(0x1c7))/0x7)+parseInt(_0x157246(0x1c9))/0x8*(parseInt(_0x157246(0x1cd))/0x9)+-parseInt(_0x157246(0x1bb))/0xa+-parseInt(_0x157246(0x1c4))/0xb*(-parseInt(_0x157246(0x1c6))/0xc);if(_0x2f320d===_0x244236)break;else _0x181e2b['push'](_0x181e2b['shift']());}catch(_0xde2f1){_0x181e2b['push'](_0x181e2b['shift']());}}}(_0x4f4d,0xe2282));import{DialogFocusManagerView as _0x40aecf}from'../utils/dialogfocusmanagerview.js';function _0x4bf1(_0x482f7b,_0x524f4c){var _0x4f4d35=_0x4f4d();return _0x4bf1=function(_0x4bf1c6,_0xd2a5a9){_0x4bf1c6=_0x4bf1c6-0x1b7;var _0x31f916=_0x4f4d35[_0x4bf1c6];return _0x31f916;},_0x4bf1(_0x482f7b,_0x524f4c);}import'../../theme/uploadcare-form.css';export class UploadcareFormView extends _0x40aecf{constructor(_0x20e1e9,_0x494da8){var _0x338d99=_0x4bf1;super(_0x20e1e9),this[_0x338d99(0x1cc)]({'tag':_0x338d99(0x1bc),'attributes':{'class':['ck',_0x338d99(0x1c2),_0x338d99(0x1b7)],'tabindex':'-1'},'children':[{'tag':_0x338d99(0x1b8),'attributes':{'class':[_0x338d99(0x1c5),_0x338d99(0x1c3)],'ctx-name':_0x338d99(0x1ca)+_0x494da8}},this[_0x338d99(0x1c8)]()]});}[_0x3c29d0(0x1cb)](){var _0x2f49a4=_0x3c29d0;this[_0x2f49a4(0x1b9)][_0x2f49a4(0x1cb)]();}}
23
+ var _0x4d796b=_0x501b;function _0x501b(_0x34985b,_0x24b47c){var _0x4194e2=_0x4194();return _0x501b=function(_0x501b08,_0x257fc8){_0x501b08=_0x501b08-0xa8;var _0x5438c1=_0x4194e2[_0x501b08];return _0x5438c1;},_0x501b(_0x34985b,_0x24b47c);}(function(_0x2d5ba7,_0x5f59ae){var _0x26ee2a=_0x501b,_0x8cc095=_0x2d5ba7();while(!![]){try{var _0x6deb71=-parseInt(_0x26ee2a(0xb3))/0x1+-parseInt(_0x26ee2a(0xb6))/0x2*(-parseInt(_0x26ee2a(0xae))/0x3)+-parseInt(_0x26ee2a(0xb5))/0x4+parseInt(_0x26ee2a(0xb2))/0x5+-parseInt(_0x26ee2a(0xbb))/0x6*(-parseInt(_0x26ee2a(0xb9))/0x7)+-parseInt(_0x26ee2a(0xb7))/0x8*(parseInt(_0x26ee2a(0xaf))/0x9)+-parseInt(_0x26ee2a(0xa8))/0xa*(-parseInt(_0x26ee2a(0xa9))/0xb);if(_0x6deb71===_0x5f59ae)break;else _0x8cc095['push'](_0x8cc095['shift']());}catch(_0x59d271){_0x8cc095['push'](_0x8cc095['shift']());}}}(_0x4194,0x359ef));import{DialogFocusManagerView as _0x194311}from'../utils/dialogfocusmanagerview.js';import'../../theme/uploadcare-form.css';function _0x4194(){var _0xe7f89=['9WLmPfb','getFocusableElement','element','630800yQrara','350973FjXDqD','uploader-','1269564OyWHrA','1222bcsLmv','2577368TyeFbx','focus','924vIzCPe','setTemplate','3846XeaXKq','ck-uploadcare-form','div','1377080uOtCGe','77rksupJ','uc-file-uploader-inline','uc-light','ck-uploadcare-theme','ck-reset_all-excluded','174cAVZVO'];_0x4194=function(){return _0xe7f89;};return _0x4194();}export class UploadcareFormView extends _0x194311{constructor(_0x22a463,_0x5b5357){var _0x121a37=_0x501b;super(_0x22a463),this[_0x121a37(0xba)]({'tag':_0x121a37(0xbd),'attributes':{'class':['ck',_0x121a37(0xad),_0x121a37(0xbc)],'tabindex':'-1'},'children':[{'tag':_0x121a37(0xaa),'attributes':{'class':[_0x121a37(0xab),_0x121a37(0xac)],'ctx-name':_0x121a37(0xb4)+_0x5b5357}},this[_0x121a37(0xb0)]()]});}[_0x4d796b(0xb8)](){var _0x5673d6=_0x4d796b;this[_0x5673d6(0xb1)][_0x5673d6(0xb8)]();}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x11732d=_0x5e8b;function _0x1abc(){const _0x5b3abb=['init','uc-upload-ctx-provider','for','document','uploadcare.pubkey','locale','uploadcare.uploader','getSelectedElement','commands','once','downcast','attributeToAttribute','isPremiumPlugin','destroy','_initImageProcessingIndicator','imageBlock','8055880tcUUsW','elementToAttribute','view','_initSchema','#uc-icon-arrow-down','render','closeMax','data-uc-image-id','uc-config','extend','fromCharCode','8990720TxulOz','configElement','insertImage','removeAttribute','2571682aeYnkk','ctxElement','editing','input[uploadcare-file-input]','config','true','_configElement','listenTo','4507988svPRXn','contentLanguage','uploadcareImageId','_initCtx','isOfficialPlugin','_ctxElement','editor','cleanupImage','_initConversion','map','1flEwbP','391038UKZsIg','model','href','_initConfig','\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','getAttribute','replaceImageSource','uploadcareImageReplace','PictureEditing','UploadcareEditing','requires','join','28264671WSqoiW','add','selection','pluginName','uploader-','remove','body','execute','conversion','appendChild','querySelector','ucContextId','imageInline','isRegistered','uploadcare','45byyrqQ','iconHrefResolver','1894122KkHBPM','get','upcast','afterInit','schema'];_0x1abc=function(){return _0x5b3abb;};return _0x1abc();}(function(_0x252785,_0x22fe42){const _0x350c6e=_0x5e8b,_0x4f7ca9=_0x252785();while(!![]){try{const _0x408a20=-parseInt(_0x350c6e(0xb8))/0x1*(parseInt(_0x350c6e(0xa6))/0x2)+-parseInt(_0x350c6e(0xd6))/0x3+-parseInt(_0x350c6e(0xae))/0x4+parseInt(_0x350c6e(0xd4))/0x5*(parseInt(_0x350c6e(0xb9))/0x6)+-parseInt(_0x350c6e(0xeb))/0x7+parseInt(_0x350c6e(0xf6))/0x8+parseInt(_0x350c6e(0xc5))/0x9;if(_0x408a20===_0x22fe42)break;else _0x4f7ca9['push'](_0x4f7ca9['shift']());}catch(_0x4fbdeb){_0x4f7ca9['push'](_0x4f7ca9['shift']());}}}(_0x1abc,0xa01f8));import{Plugin as _0x1d0116}from'ckeditor5/src/core.js';import{Dialog as _0x135e8b}from'ckeditor5/src/ui.js';import{createElement as _0x2cfefd,global as _0x3cbf60,uid as _0x2d38d6}from'ckeditor5/src/utils.js';function _0x5e8b(_0x297e99,_0x3d8826){const _0x1abcf6=_0x1abc();return _0x5e8b=function(_0x5e8bda,_0x59593a){_0x5e8bda=_0x5e8bda-0xa4;let _0x33f60d=_0x1abcf6[_0x5e8bda];return _0x33f60d;},_0x5e8b(_0x297e99,_0x3d8826);}import{UploadcareCommand as _0xa6a0f4}from'./uploadcarecommand.js';import{UploadcareUploadAdapter as _0x9b1604}from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0x303042}from'./utils/editingutils.js';export class UploadcareEditing extends _0x1d0116{[_0x11732d(0xac)]=null;[_0x11732d(0xb3)]=null;static get[_0x11732d(0xc8)](){const _0x5dce35=_0x11732d;return _0x5dce35(0xc2);}static get[_0x11732d(0xc3)](){const _0x47791d=_0x11732d;return[_0x47791d(0xc1),_0x9b1604,_0x135e8b];}static get[_0x11732d(0xb2)](){return!0x0;}static get[_0x11732d(0xe7)](){return!0x0;}[_0x11732d(0xd0)];get[_0x11732d(0xf7)](){const _0x11d7a5=_0x11732d;return this[_0x11d7a5(0xac)];}get[_0x11732d(0xa7)](){const _0xd3eed9=_0x11732d;return this[_0xd3eed9(0xb3)];}constructor(_0x18b6a8){const _0x42e6ac=_0x11732d;super(_0x18b6a8),this[_0x42e6ac(0xd0)]=_0x2d38d6();}[_0x11732d(0xdb)](){const _0x1fc402=_0x11732d,_0x3bf70e=this[_0x1fc402(0xb4)];_0x3bf70e[_0x1fc402(0xe3)][_0x1fc402(0xc6)](_0x1fc402(0xd3),new _0xa6a0f4(_0x3bf70e));}[_0x11732d(0xd9)](){const _0x16f861=_0x11732d;this[_0x16f861(0xee)](),this[_0x16f861(0xb6)](),this[_0x16f861(0xbc)](),this[_0x16f861(0xb1)](),this[_0x16f861(0xe9)](),this[_0x16f861(0xad)](this[_0x16f861(0xb4)],_0x16f861(0xe8),()=>{const _0x28c89d=_0x16f861;this[_0x28c89d(0xac)]&&(this[_0x28c89d(0xac)][_0x28c89d(0xca)](),this[_0x28c89d(0xac)]=null),this[_0x28c89d(0xb3)]&&(this[_0x28c89d(0xb3)][_0x28c89d(0xca)](),this[_0x28c89d(0xb3)]=null);const _0x23b684=_0x3cbf60[_0x28c89d(0xde)][_0x28c89d(0xcf)](_0x28c89d(0xa9));_0x23b684&&_0x23b684[_0x28c89d(0xca)]();}),async function(_0x5cae09){const _0x180f30=_0x1e5c0b([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]),_0x3b7edd=0x535f8c3a,_0x565a63=0x5358f6aa^_0x3b7edd,_0x51f361=window[_0x1e5c0b([0x44,0x61,0x74,0x65])][_0x1e5c0b([0x6e,0x6f,0x77])](),_0x29a792=_0x5cae09[_0x1e5c0b([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x10caab=new window[(_0x1e5c0b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x30058a=>{_0x29a792[_0x1e5c0b([0x6f,0x6e,0x63,0x65])](_0x1e5c0b([0x72,0x65,0x61,0x64,0x79]),_0x30058a);}),_0x105748={[_0x1e5c0b([0x6b,0x74,0x79])]:_0x1e5c0b([0x45,0x43]),[_0x1e5c0b([0x75,0x73,0x65])]:_0x1e5c0b([0x73,0x69,0x67]),[_0x1e5c0b([0x63,0x72,0x76])]:_0x1e5c0b([0x50,0x2d,0x32,0x35,0x36]),[_0x1e5c0b([0x78])]:_0x1e5c0b([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]),[_0x1e5c0b([0x79])]:_0x1e5c0b([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]),[_0x1e5c0b([0x61,0x6c,0x67])]:_0x1e5c0b([0x45,0x53,0x32,0x35,0x36])},_0x48b1cc=_0x29a792[_0x1e5c0b([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x1e5c0b([0x67,0x65,0x74])](_0x1e5c0b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x3be5f9(){let _0x14d983,_0x57e8b3=null,_0x4d1c8f=null;try{if(_0x48b1cc==_0x1e5c0b([0x47,0x50,0x4c]))return _0x1e5c0b([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x14d983=_0x49b675(),!_0x14d983)return _0x1e5c0b([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x14d983[_0x1e5c0b([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x4d1c8f=_0x190e4c(_0x14d983[_0x1e5c0b([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x14d983[_0x1e5c0b([0x6a,0x74,0x69])])),await _0x585ef8()?_0x326760()?_0x93c5fe()?_0x1e5c0b([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x537f95()?(_0x14d983[_0x1e5c0b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x1e5c0b([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x57e8b3=_0x1880cd(_0x1e5c0b([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x14d983[_0x1e5c0b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x1e5c0b([0x74,0x72,0x69,0x61,0x6c])&&(_0x57e8b3=_0x1880cd(_0x1e5c0b([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x765ce0()):_0x1e5c0b([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x1e5c0b([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x1e5c0b([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x1e5c0b([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x93c5fe(){const _0x54519d=[_0x1e5c0b([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x1e5c0b([0x74,0x72,0x69,0x61,0x6c])][_0x1e5c0b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x14d983[_0x1e5c0b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x51f361/0x3e8:0xe10*_0x565a63;return _0x14d983[_0x1e5c0b([0x65,0x78,0x70])]<_0x54519d;}function _0x326760(){const _0x538abf=_0x14d983[_0x1e5c0b([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x538abf&&(!!_0x538abf[_0x1e5c0b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1e5c0b([0x2a]))||!!_0x538abf[_0x1e5c0b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1e5c0b([0x55,0x50,0x4c,0x43])));}function _0x537f95(){const _0x5821f2=_0x5e8b,_0x4097bf=_0x14d983[_0x1e5c0b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x4097bf||0x0==_0x4097bf[_0x1e5c0b([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x29f744}=new URL(window[_0x1e5c0b([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x5821f2(0xbb)]);if(_0x4097bf[_0x1e5c0b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x29f744))return!0x0;const _0xf629c4=_0x29f744[_0x1e5c0b([0x73,0x70,0x6c,0x69,0x74])](_0x1e5c0b([0x2e]));return _0x4097bf[_0x1e5c0b([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x43a042=>_0x43a042[_0x1e5c0b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1e5c0b([0x2a])))[_0x1e5c0b([0x6d,0x61,0x70])](_0x27c85f=>_0x27c85f[_0x1e5c0b([0x73,0x70,0x6c,0x69,0x74])](_0x1e5c0b([0x2e])))[_0x1e5c0b([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x52a86e=>_0x52a86e[_0x1e5c0b([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0xf629c4[_0x1e5c0b([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x1e5c0b([0x6d,0x61,0x70])](_0x44c036=>Array(_0xf629c4[_0x1e5c0b([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x44c036[_0x1e5c0b([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x1e5c0b([0x66,0x69,0x6c,0x6c])](_0x44c036[0x0]===_0x1e5c0b([0x2a])?_0x1e5c0b([0x2a]):'')[_0x1e5c0b([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x44c036))[_0x1e5c0b([0x73,0x6f,0x6d,0x65])](_0x1d3d34=>_0xf629c4[_0x1e5c0b([0x65,0x76,0x65,0x72,0x79])]((_0x5dceed,_0x1047a3)=>_0x1d3d34[_0x1047a3]===_0x5dceed||_0x1d3d34[_0x1047a3]===_0x1e5c0b([0x2a])));}function _0x765ce0(){return _0x57e8b3&&_0x4d1c8f?new window[(_0x1e5c0b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x135a3b,_0x4439f)=>{_0x57e8b3[_0x1e5c0b([0x74,0x68,0x65,0x6e])](_0x135a3b,_0x4439f),_0x4d1c8f[_0x1e5c0b([0x74,0x68,0x65,0x6e])](_0x5f013a=>{_0x5f013a!=_0x1e5c0b([0x56,0x61,0x6c,0x69,0x64])&&_0x135a3b(_0x5f013a);},_0x4439f);}):_0x57e8b3||_0x4d1c8f||_0x1e5c0b([0x56,0x61,0x6c,0x69,0x64]);}}function _0x190e4c(_0x4c8093,_0x575476){return new window[(_0x1e5c0b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1d5066=>{if(_0x5ac28f())return _0x1d5066(_0x1e5c0b([0x56,0x61,0x6c,0x69,0x64]));_0x5cb8cd(),_0x29a792[_0x1e5c0b([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x1e5c0b([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x533327=!0x1;const _0x4062f4=_0x2d38d6();function _0x128796(_0x453907){return!!_0x453907&&(typeof _0x453907===_0x1e5c0b([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x453907===_0x1e5c0b([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x453907[_0x1e5c0b([0x74,0x68,0x65,0x6e])]===_0x1e5c0b([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x453907[_0x1e5c0b([0x63,0x61,0x74,0x63,0x68])]===_0x1e5c0b([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x487881(_0x5886ac){_0x38bf18(_0x5886ac)[_0x1e5c0b([0x74,0x68,0x65,0x6e])](_0x2efe62=>{if(!_0x2efe62||_0x2efe62[_0x1e5c0b([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x1e5c0b([0x6f,0x6b]))return _0x1e5c0b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x1e6c4b(_0x31e29c(_0x4062f4+_0x575476))!=_0x2efe62[_0x1e5c0b([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x1e5c0b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x1e5c0b([0x56,0x61,0x6c,0x69,0x64]);})[_0x1e5c0b([0x74,0x68,0x65,0x6e])](_0x35d928=>(_0x19bf82(),_0x35d928),()=>{const _0x5eb4f0=_0x2b4e69();return null==_0x5eb4f0?(_0x19bf82(),_0x1e5c0b([0x56,0x61,0x6c,0x69,0x64])):_0x1e5c0b(_0x51f361-_0x5eb4f0>(0x7753083a^_0x3b7edd)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x1e5c0b([0x74,0x68,0x65,0x6e])](_0x1d5066)[_0x1e5c0b([0x63,0x61,0x74,0x63,0x68])](()=>{_0x1d5066(_0x1e5c0b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x2bfd37=0x536962ba^_0x3b7edd;function _0x19bf82(){const _0x4fcd0f=_0x1e5c0b([0x6c,0x6c,0x63,0x74,0x2d])+_0x1e6c4b(_0x31e29c(_0x4c8093)),_0x3f5d9d=_0x525ebb(_0x1e6c4b(window[_0x1e5c0b([0x4d,0x61,0x74,0x68])][_0x1e5c0b([0x63,0x65,0x69,0x6c])](_0x51f361/_0x2bfd37)));window[_0x1e5c0b([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x1e5c0b([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4fcd0f,_0x3f5d9d);}function _0x2b4e69(){const _0x54d8a5=_0x1e5c0b([0x6c,0x6c,0x63,0x74,0x2d])+_0x1e6c4b(_0x31e29c(_0x4c8093)),_0x42cdda=window[_0x1e5c0b([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x1e5c0b([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x54d8a5);return _0x42cdda?window[_0x1e5c0b([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x525ebb(_0x42cdda),0x10)*_0x2bfd37:null;}function _0x38bf18(_0x42f408){return new window[(_0x1e5c0b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x438822,_0x14b82b)=>{_0x42f408[_0x1e5c0b([0x74,0x68,0x65,0x6e])](_0x438822,_0x14b82b),window[_0x1e5c0b([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x14b82b,0x535e58fa^_0x3b7edd);});}}_0x29a792[_0x1e5c0b([0x6f,0x6e])](_0x1e5c0b([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x4f0168,_0xba0f73)=>{if(_0xba0f73[0x0]!=_0x4c8093)return _0x1d5066(_0x1e5c0b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0xba0f73[0x1]={..._0xba0f73[0x1],[_0x1e5c0b([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x4062f4};},{[_0x1e5c0b([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x1e5c0b([0x68,0x69,0x67,0x68])}),_0x29a792[_0x1e5c0b([0x6f,0x6e])](_0x1e5c0b([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x5be508=>{_0x128796(_0x5be508[_0x1e5c0b([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x533327=!0x0,_0x487881(_0x5be508[_0x1e5c0b([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x1e5c0b([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x1e5c0b([0x6c,0x6f,0x77])}),_0x10caab[_0x1e5c0b([0x74,0x68,0x65,0x6e])](()=>{_0x533327||_0x1d5066(_0x1e5c0b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x5ac28f(){return _0x29a792[_0x1e5c0b([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1e5c0b([0x76,0x69,0x65,0x77])][_0x1e5c0b([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x1e5c0b([0x61,0x75,0x74,0x6f]);}function _0x5cb8cd(){_0x29a792[_0x1e5c0b([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1e5c0b([0x76,0x69,0x65,0x77])][_0x1e5c0b([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x1e5c0b([0x61,0x75,0x74,0x6f]);}}function _0x1880cd(_0x3bb85e){const _0x5c321b=[new window[(_0x1e5c0b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2c3160=>setTimeout(_0x2c3160,0x5356b2f6^_0x3b7edd)),_0x10caab[_0x1e5c0b([0x74,0x68,0x65,0x6e])](()=>new window[(_0x1e5c0b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x504b84=>{let _0x3719fe=0x0;_0x29a792[_0x1e5c0b([0x6d,0x6f,0x64,0x65,0x6c])][_0x1e5c0b([0x6f,0x6e])](_0x1e5c0b([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x465faa,_0x21641f)=>{_0x21641f[0x0][_0x1e5c0b([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x3719fe++,_0x3719fe==(0x535f8dc2^_0x3b7edd)&&(_0x504b84(),_0x465faa[_0x1e5c0b([0x6f,0x66,0x66])]());});}))];return window[_0x1e5c0b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x1e5c0b([0x72,0x61,0x63,0x65])](_0x5c321b)[_0x1e5c0b([0x74,0x68,0x65,0x6e])](()=>_0x3bb85e);}async function _0x5f39bc(){await _0x10caab,_0x29a792[_0x1e5c0b([0x6d,0x6f,0x64,0x65,0x6c])][_0x1e5c0b([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x3b781c,_0x29a792[_0x1e5c0b([0x6d,0x6f,0x64,0x65,0x6c])][_0x1e5c0b([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x3b781c,_0x29a792[_0x1e5c0b([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x1e5c0b([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x200f11(_0x1cad54){const _0x3eb342=_0xcc7a95();_0x29a792[_0x3eb342]=_0x1e5c0b([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x1cad54,_0x1cad54!=_0x1e5c0b([0x56,0x61,0x6c,0x69,0x64])&&_0x5f39bc();}function _0xcc7a95(){const _0x3f876d=window[_0x1e5c0b([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x1e5c0b([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x1e5c0b([0x6e,0x6f,0x77])]())[_0x1e5c0b([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x1e5c0b([0x2e]),'');let _0x4180b0=_0x1e5c0b([0x68]);for(let _0x253294=0x0;_0x253294<_0x3f876d[_0x1e5c0b([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x253294+=0x2){let _0x4c0e9e=window[_0x1e5c0b([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3f876d[_0x1e5c0b([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x253294,_0x253294+0x2));_0x4c0e9e>=_0x180f30[_0x1e5c0b([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x4c0e9e-=_0x180f30[_0x1e5c0b([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x4180b0+=_0x180f30[_0x4c0e9e];}return _0x4180b0;}function _0x49b675(){const _0x295592=_0x48b1cc[_0x1e5c0b([0x73,0x70,0x6c,0x69,0x74])](_0x1e5c0b([0x2e]));if(0x3!=_0x295592[_0x1e5c0b([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x598673(_0x295592[0x1]);function _0x598673(_0x5d9b72){const _0x5d0019=_0x3d5197(_0x5d9b72);return _0x5d0019&&_0x5ebf68()?_0x5d0019:null;function _0x5ebf68(){const _0x31ffaf=_0x5d0019[_0x1e5c0b([0x6a,0x74,0x69])],_0x4f0a43=window[_0x1e5c0b([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x31ffaf[_0x1e5c0b([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x31ffaf[_0x1e5c0b([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x48b37c={..._0x5d0019,[_0x1e5c0b([0x6a,0x74,0x69])]:_0x31ffaf[_0x1e5c0b([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x31ffaf[_0x1e5c0b([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x48b37c[_0x1e5c0b([0x76,0x63])],_0x31e29c(_0x48b37c)==_0x4f0a43;}}}async function _0x585ef8(){let _0x127395=!0x0;try{const _0x3a56a6=_0x48b1cc[_0x1e5c0b([0x73,0x70,0x6c,0x69,0x74])](_0x1e5c0b([0x2e])),[_0x15db5a,_0x504dd9,_0x288e75]=_0x3a56a6;return _0x45410d(_0x15db5a),await _0x1974e0(_0x15db5a,_0x504dd9,_0x288e75),_0x127395;}catch{return!0x1;}function _0x45410d(_0x1f51e7){const _0x3154e3=_0x3d5197(_0x1f51e7);_0x3154e3&&_0x3154e3[_0x1e5c0b([0x61,0x6c,0x67])]==_0x1e5c0b([0x45,0x53,0x32,0x35,0x36])||(_0x127395=!0x1);}async function _0x1974e0(_0x202f89,_0x5030bd,_0x2f61c6){const _0x3d40f7=window[_0x1e5c0b([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x1e5c0b([0x66,0x72,0x6f,0x6d])](_0x36e9ac(_0x2f61c6),_0x43abb0=>_0x43abb0[_0x1e5c0b([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x32fb7e=new window[(_0x1e5c0b([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x1e5c0b([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x202f89+_0x1e5c0b([0x2e])+_0x5030bd),_0x3f0a53=window[_0x1e5c0b([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x1e5c0b([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x3f0a53)return;const _0x35489c=await _0x3f0a53[_0x1e5c0b([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x1e5c0b([0x6a,0x77,0x6b]),_0x105748,{[_0x1e5c0b([0x6e,0x61,0x6d,0x65])]:_0x1e5c0b([0x45,0x43,0x44,0x53,0x41]),[_0x1e5c0b([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x1e5c0b([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x1e5c0b([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x3f0a53[_0x1e5c0b([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x1e5c0b([0x6e,0x61,0x6d,0x65])]:_0x1e5c0b([0x45,0x43,0x44,0x53,0x41]),[_0x1e5c0b([0x68,0x61,0x73,0x68])]:{[_0x1e5c0b([0x6e,0x61,0x6d,0x65])]:_0x1e5c0b([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x35489c,_0x3d40f7,_0x32fb7e)||(_0x127395=!0x1);}}function _0x3d5197(_0x304d13){return _0x304d13[_0x1e5c0b([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x1e5c0b([0x65,0x79]))?JSON[_0x1e5c0b([0x70,0x61,0x72,0x73,0x65])](_0x36e9ac(_0x304d13)):null;}function _0x36e9ac(_0x24c461){return window[_0x1e5c0b([0x61,0x74,0x6f,0x62])](_0x24c461[_0x1e5c0b([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x1e5c0b([0x2b]))[_0x1e5c0b([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x1e5c0b([0x2f])));}function _0x31e29c(_0x5731ea){let _0x271eb7=0x1505;function _0x326c02(_0x5d3540){for(let _0x18a321=0x0;_0x18a321<_0x5d3540[_0x1e5c0b([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x18a321++){const _0x1b914c=_0x5d3540[_0x1e5c0b([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x18a321);_0x271eb7=(_0x271eb7<<0x5)+_0x271eb7+_0x1b914c,_0x271eb7&=_0x271eb7;}}function _0x285c65(_0x5ddcac){Array[_0x1e5c0b([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x5ddcac)?_0x5ddcac[_0x1e5c0b([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x285c65):_0x5ddcac&&typeof _0x5ddcac==_0x1e5c0b([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x1e5c0b([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x5ddcac)[_0x1e5c0b([0x73,0x6f,0x72,0x74])]()[_0x1e5c0b([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x139f2e,_0x20f333])=>{_0x326c02(_0x139f2e),_0x285c65(_0x20f333);}):_0x326c02(window[_0x1e5c0b([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x5ddcac));}return _0x285c65(_0x5731ea),_0x271eb7>>>0x0;}function _0x1e6c4b(_0x230b40){return _0x230b40[_0x1e5c0b([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x1e5c0b([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x1e5c0b([0x30]));}function _0x525ebb(_0x5eff9f){return _0x5eff9f[_0x1e5c0b([0x73,0x70,0x6c,0x69,0x74])]('')[_0x1e5c0b([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x1e5c0b([0x6a,0x6f,0x69,0x6e])]('');}function _0x3b781c(){}function _0x1e5c0b(_0x379d9a){const _0x3ee5e0=_0x5e8b;return _0x379d9a[_0x3ee5e0(0xb7)](_0x5aa344=>String[_0x3ee5e0(0xf5)](_0x5aa344))[_0x3ee5e0(0xc4)]('');}_0x200f11(await _0x3be5f9());}(this);}[_0x11732d(0xee)](){const _0x2f7141=_0x11732d,_0x2e2642=this[_0x2f7141(0xb4)][_0x2f7141(0xba)][_0x2f7141(0xda)];_0x2e2642[_0x2f7141(0xd2)](_0x2f7141(0xea))&&_0x2e2642[_0x2f7141(0xf4)](_0x2f7141(0xea),{'allowAttributes':[_0x2f7141(0xb0)]}),_0x2e2642[_0x2f7141(0xd2)](_0x2f7141(0xd1))&&_0x2e2642[_0x2f7141(0xf4)](_0x2f7141(0xd1),{'allowAttributes':[_0x2f7141(0xb0)]});}[_0x11732d(0xb6)](){const _0xf87474=_0x11732d,_0x6c568c=this[_0xf87474(0xb4)];_0x6c568c[_0xf87474(0xcd)][_0xf87474(0xdd)](_0xf87474(0xe5))[_0xf87474(0xe6)]({'model':_0xf87474(0xb0),'view':_0xf87474(0xf2)}),_0x6c568c[_0xf87474(0xcd)][_0xf87474(0xdd)](_0xf87474(0xd8))[_0xf87474(0xec)]({'model':{'key':_0xf87474(0xb0),'value':_0x308845=>_0x308845[_0xf87474(0xbe)](_0xf87474(0xf2))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x29e33d=_0x6c568c[_0xf87474(0xe3)][_0xf87474(0xd7)](_0xf87474(0xbf));_0x29e33d&&this[_0xf87474(0xad)](_0x29e33d,_0xf87474(0xb5),(_0x1338c5,[_0x556f34,_0x3dfa0e])=>{const _0x4ff0e1=_0xf87474;_0x556f34[_0x4ff0e1(0xa5)](_0x4ff0e1(0xb0),_0x3dfa0e);});}[_0x11732d(0xbc)](){const _0x4b21cd=_0x11732d,_0x7b1ae6=this[_0x4b21cd(0xb4)][_0x4b21cd(0xaa)][_0x4b21cd(0xd7)](_0x4b21cd(0xe1))||{},_0x1cad1c=this[_0x4b21cd(0xb4)][_0x4b21cd(0xaa)][_0x4b21cd(0xd7)](_0x4b21cd(0xdf))||'';this[_0x4b21cd(0xac)]=_0x2cfefd(_0x3cbf60[_0x4b21cd(0xde)],_0x4b21cd(0xf3),{..._0x7b1ae6,'pubkey':_0x1cad1c,'ctx-name':_0x4b21cd(0xc9)+this[_0x4b21cd(0xd0)],'sourceList':'','imgOnly':_0x4b21cd(0xab),'removeCopyright':_0x4b21cd(0xab),'localeName':this[_0x4b21cd(0xb4)][_0x4b21cd(0xe0)][_0x4b21cd(0xaf)],'externalSourcesEmbedCss':_0x4b21cd(0xbd)}),this[_0x4b21cd(0xac)][_0x4b21cd(0xd5)]=_0x57df33=>{const _0x4f2290=_0x4b21cd;if(_0x4f2290(0xf1)==_0x57df33)return _0x4f2290(0xef);},_0x3cbf60[_0x4b21cd(0xde)][_0x4b21cd(0xcb)][_0x4b21cd(0xce)](this[_0x4b21cd(0xac)]);}[_0x11732d(0xb1)](){const _0x3c86f5=_0x11732d;this[_0x3c86f5(0xb3)]=_0x2cfefd(_0x3cbf60[_0x3c86f5(0xde)],_0x3c86f5(0xdc),{'ctx-name':_0x3c86f5(0xc9)+this[_0x3c86f5(0xd0)]}),_0x3cbf60[_0x3c86f5(0xde)][_0x3c86f5(0xcb)][_0x3c86f5(0xce)](this[_0x3c86f5(0xb3)]);}[_0x11732d(0xe9)](){const _0x184960=_0x11732d,_0xfd63c7=this[_0x184960(0xb4)][_0x184960(0xe3)][_0x184960(0xd7)](_0x184960(0xa4));_0xfd63c7&&this[_0x184960(0xad)](_0xfd63c7,_0x184960(0xcc),()=>{const _0x285d3f=_0x184960,_0x336df3=this[_0x285d3f(0xb4)][_0x285d3f(0xba)][_0x285d3f(0xde)][_0x285d3f(0xc7)][_0x285d3f(0xe2)]();_0x336df3&&_0x336df3[_0x285d3f(0xbe)](_0x285d3f(0xb0))&&this[_0x285d3f(0xb4)][_0x285d3f(0xa8)][_0x285d3f(0xed)][_0x285d3f(0xe4)](_0x285d3f(0xf0),()=>{const _0x257b88=_0x285d3f;_0x303042(this[_0x257b88(0xb4)],_0x336df3);});});const _0x2f712f=this[_0x184960(0xb4)][_0x184960(0xe3)][_0x184960(0xd7)](_0x184960(0xc0));_0x2f712f&&this[_0x184960(0xad)](_0x2f712f,_0x184960(0xcc),()=>{const _0xadb8b1=_0x184960,_0x5218c6=this[_0xadb8b1(0xb4)][_0xadb8b1(0xba)][_0xadb8b1(0xde)][_0xadb8b1(0xc7)][_0xadb8b1(0xe2)]();_0x5218c6&&_0x5218c6[_0xadb8b1(0xbe)](_0xadb8b1(0xb0))&&this[_0xadb8b1(0xb4)][_0xadb8b1(0xa8)][_0xadb8b1(0xed)][_0xadb8b1(0xe4)](_0xadb8b1(0xf0),()=>{const _0x5c7193=_0xadb8b1;_0x303042(this[_0x5c7193(0xb4)],_0x5218c6);});});}}
23
+ const _0x427347=_0x2cad;(function(_0xe84eb4,_0x59a33a){const _0x42d434=_0x2cad,_0x5e7570=_0xe84eb4();while(!![]){try{const _0x307367=-parseInt(_0x42d434(0x1b4))/0x1*(-parseInt(_0x42d434(0x1cf))/0x2)+parseInt(_0x42d434(0x1b5))/0x3+parseInt(_0x42d434(0x1da))/0x4+-parseInt(_0x42d434(0x1d7))/0x5+parseInt(_0x42d434(0x1c0))/0x6*(-parseInt(_0x42d434(0x200))/0x7)+-parseInt(_0x42d434(0x1bc))/0x8*(-parseInt(_0x42d434(0x1f9))/0x9)+-parseInt(_0x42d434(0x1cd))/0xa;if(_0x307367===_0x59a33a)break;else _0x5e7570['push'](_0x5e7570['shift']());}catch(_0x1e100c){_0x5e7570['push'](_0x5e7570['shift']());}}}(_0x2a37,0x4416b));import{Plugin as _0x4ca206}from'ckeditor5/src/core.js';import{Dialog as _0x260926}from'ckeditor5/src/ui.js';import{createElement as _0x2176f1,global as _0x379515,uid as _0x1608db}from'ckeditor5/src/utils.js';import{UploadcareCommand as _0x484442}from'./uploadcarecommand.js';import{UploadcareUploadAdapter as _0xdc0d4a}from'./uploadcareuploadadapter.js';function _0x2cad(_0xebfec0,_0x46bfdc){const _0x2a378b=_0x2a37();return _0x2cad=function(_0x2cade7,_0x567e82){_0x2cade7=_0x2cade7-0x1b4;let _0x4cec12=_0x2a378b[_0x2cade7];return _0x4cec12;},_0x2cad(_0xebfec0,_0x46bfdc);}function _0x2a37(){const _0x2583ce=['_initImageProcessingIndicator','uc-config','iconHrefResolver','selection','isOfficialPlugin','_configElement','querySelector','2609800yVgUvs','imageBlock','_initConversion','665796nAFLUy','isRegistered','attributeToAttribute','destroy','conversion','uploadcareImageReplace','locale','elementToAttribute','#uc-icon-arrow-down','\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','downcast','get','requires','insertImage','ucContextId','_ctxElement','uploadcare.pubkey','schema','href','body','editing','for','init','listenTo','document','config','cleanupImage','imageInline','_initConfig','true','uploadcare.uploader','1223217onmLSm','PictureEditing','isPremiumPlugin','replaceImageSource','contentLanguage','commands','remove','7nACfOe','extend','getSelectedElement','data-uc-image-id','render','afterInit','input[uploadcare-file-input]','pluginName','_initSchema','213617VNNYRp','610716sCmKsa','uploader-','appendChild','uploadcare','closeMax','view','removeAttribute','8mpGhDm','upcast','join','execute','209298bRKweV','fromCharCode','configElement','ctxElement','getAttribute','uc-upload-ctx-provider','add','UploadcareEditing','once','editor','model','_initCtx','map','974340FMaWhq','uploadcareImageId','4DSWziL'];_0x2a37=function(){return _0x2583ce;};return _0x2a37();}import{showImageProcessingIndicator as _0x5058a4}from'./utils/editingutils.js';export class UploadcareEditing extends _0x4ca206{[_0x427347(0x1d5)]=null;[_0x427347(0x1e9)]=null;static get[_0x427347(0x207)](){const _0x6869ba=_0x427347;return _0x6869ba(0x1c7);}static get[_0x427347(0x1e6)](){const _0x17eaf4=_0x427347;return[_0x17eaf4(0x1fa),_0xdc0d4a,_0x260926];}static get[_0x427347(0x1d4)](){return!0x0;}static get[_0x427347(0x1fb)](){return!0x0;}[_0x427347(0x1e8)];get[_0x427347(0x1c2)](){const _0x421da1=_0x427347;return this[_0x421da1(0x1d5)];}get[_0x427347(0x1c3)](){const _0x462e59=_0x427347;return this[_0x462e59(0x1e9)];}constructor(_0x8dbe4d){const _0x2d2a13=_0x427347;super(_0x8dbe4d),this[_0x2d2a13(0x1e8)]=_0x1608db();}[_0x427347(0x1f0)](){const _0x5886de=_0x427347,_0x5ad597=this[_0x5886de(0x1c9)];_0x5ad597[_0x5886de(0x1fe)][_0x5886de(0x1c6)](_0x5886de(0x1b8),new _0x484442(_0x5ad597));}[_0x427347(0x205)](){const _0x76761b=_0x427347;this[_0x76761b(0x208)](),this[_0x76761b(0x1d9)](),this[_0x76761b(0x1f6)](),this[_0x76761b(0x1cb)](),this[_0x76761b(0x1d0)](),this[_0x76761b(0x1f1)](this[_0x76761b(0x1c9)],_0x76761b(0x1dd),()=>{const _0x36a5c7=_0x76761b;this[_0x36a5c7(0x1d5)]&&(this[_0x36a5c7(0x1d5)][_0x36a5c7(0x1ff)](),this[_0x36a5c7(0x1d5)]=null),this[_0x36a5c7(0x1e9)]&&(this[_0x36a5c7(0x1e9)][_0x36a5c7(0x1ff)](),this[_0x36a5c7(0x1e9)]=null);const _0x1d187=_0x379515[_0x36a5c7(0x1f2)][_0x36a5c7(0x1d6)](_0x36a5c7(0x206));_0x1d187&&_0x1d187[_0x36a5c7(0x1ff)]();}),async function(_0x59f6f1){const _0x2964db=_0x27d09f([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]),_0x175d5e=0x535f8c3a,_0x1e2dec=0x5358f692^_0x175d5e,_0x4a758e=window[_0x27d09f([0x44,0x61,0x74,0x65])][_0x27d09f([0x6e,0x6f,0x77])](),_0x44f539=_0x59f6f1[_0x27d09f([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x58abbb=new window[(_0x27d09f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x583092=>{_0x44f539[_0x27d09f([0x6f,0x6e,0x63,0x65])](_0x27d09f([0x72,0x65,0x61,0x64,0x79]),_0x583092);}),_0x19bbf5={[_0x27d09f([0x6b,0x74,0x79])]:_0x27d09f([0x45,0x43]),[_0x27d09f([0x75,0x73,0x65])]:_0x27d09f([0x73,0x69,0x67]),[_0x27d09f([0x63,0x72,0x76])]:_0x27d09f([0x50,0x2d,0x32,0x35,0x36]),[_0x27d09f([0x78])]:_0x27d09f([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]),[_0x27d09f([0x79])]:_0x27d09f([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]),[_0x27d09f([0x61,0x6c,0x67])]:_0x27d09f([0x45,0x53,0x32,0x35,0x36])},_0x793fb6=_0x44f539[_0x27d09f([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x27d09f([0x67,0x65,0x74])](_0x27d09f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x512982(){let _0x5ba707,_0x21deb8=null,_0x245b9e=null;try{if(_0x793fb6==_0x27d09f([0x47,0x50,0x4c]))return _0x27d09f([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x5ba707=_0x3a669e(),!_0x5ba707)return _0x27d09f([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x5ba707[_0x27d09f([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x245b9e=_0x11b4a3(_0x5ba707[_0x27d09f([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x5ba707[_0x27d09f([0x6a,0x74,0x69])])),await _0x289baa()?_0x1dbab9()?_0x279ad3()?_0x27d09f([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x11e9e6()?(_0x5ba707[_0x27d09f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x27d09f([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x21deb8=_0x3e1fa7(_0x27d09f([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x5ba707[_0x27d09f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x27d09f([0x74,0x72,0x69,0x61,0x6c])&&(_0x21deb8=_0x3e1fa7(_0x27d09f([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x31b2fb()):_0x27d09f([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x27d09f([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x27d09f([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x27d09f([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x279ad3(){const _0x37c042=[_0x27d09f([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x27d09f([0x74,0x72,0x69,0x61,0x6c])][_0x27d09f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5ba707[_0x27d09f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x4a758e/0x3e8:0xe10*_0x1e2dec;return _0x5ba707[_0x27d09f([0x65,0x78,0x70])]<_0x37c042;}function _0x1dbab9(){const _0x391211=_0x5ba707[_0x27d09f([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x391211&&(!!_0x391211[_0x27d09f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x27d09f([0x2a]))||!!_0x391211[_0x27d09f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x27d09f([0x55,0x50,0x4c,0x43])));}function _0x11e9e6(){const _0x327cc4=_0x2cad,_0x1205ad=_0x5ba707[_0x27d09f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x1205ad||0x0==_0x1205ad[_0x27d09f([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x2eb0ec}=new URL(window[_0x27d09f([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x327cc4(0x1ec)]);if(_0x1205ad[_0x27d09f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2eb0ec))return!0x0;const _0x45dc9c=_0x2eb0ec[_0x27d09f([0x73,0x70,0x6c,0x69,0x74])](_0x27d09f([0x2e]));return _0x1205ad[_0x27d09f([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x2408f2=>_0x2408f2[_0x27d09f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x27d09f([0x2a])))[_0x27d09f([0x6d,0x61,0x70])](_0x187ca8=>_0x187ca8[_0x27d09f([0x73,0x70,0x6c,0x69,0x74])](_0x27d09f([0x2e])))[_0x27d09f([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x1bf44a=>_0x1bf44a[_0x27d09f([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x45dc9c[_0x27d09f([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x27d09f([0x6d,0x61,0x70])](_0x2a2675=>Array(_0x45dc9c[_0x27d09f([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x2a2675[_0x27d09f([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x27d09f([0x66,0x69,0x6c,0x6c])](_0x2a2675[0x0]===_0x27d09f([0x2a])?_0x27d09f([0x2a]):'')[_0x27d09f([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x2a2675))[_0x27d09f([0x73,0x6f,0x6d,0x65])](_0x5a0a42=>_0x45dc9c[_0x27d09f([0x65,0x76,0x65,0x72,0x79])]((_0x1d0c23,_0x2a954e)=>_0x5a0a42[_0x2a954e]===_0x1d0c23||_0x5a0a42[_0x2a954e]===_0x27d09f([0x2a])));}function _0x31b2fb(){return _0x21deb8&&_0x245b9e?new window[(_0x27d09f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0xa2bc1f,_0x499890)=>{_0x21deb8[_0x27d09f([0x74,0x68,0x65,0x6e])](_0xa2bc1f,_0x499890),_0x245b9e[_0x27d09f([0x74,0x68,0x65,0x6e])](_0xc729e3=>{_0xc729e3!=_0x27d09f([0x56,0x61,0x6c,0x69,0x64])&&_0xa2bc1f(_0xc729e3);},_0x499890);}):_0x21deb8||_0x245b9e||_0x27d09f([0x56,0x61,0x6c,0x69,0x64]);}}function _0x11b4a3(_0x160e52,_0x4875eb){return new window[(_0x27d09f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x216b2d=>{if(_0x302afd())return _0x216b2d(_0x27d09f([0x56,0x61,0x6c,0x69,0x64]));_0x1f1d8a(),_0x44f539[_0x27d09f([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x27d09f([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x43e5da=!0x1;const _0x38b20b=_0x1608db();function _0x3d9a46(_0x586f0a){return!!_0x586f0a&&(typeof _0x586f0a===_0x27d09f([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x586f0a===_0x27d09f([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x586f0a[_0x27d09f([0x74,0x68,0x65,0x6e])]===_0x27d09f([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x586f0a[_0x27d09f([0x63,0x61,0x74,0x63,0x68])]===_0x27d09f([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x1aa25c(_0x198a90){_0x311b9c(_0x198a90)[_0x27d09f([0x74,0x68,0x65,0x6e])](_0x3585de=>{if(!_0x3585de||_0x3585de[_0x27d09f([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x27d09f([0x6f,0x6b]))return _0x27d09f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x36a805(_0x1cd12a(_0x38b20b+_0x4875eb))!=_0x3585de[_0x27d09f([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x27d09f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x27d09f([0x56,0x61,0x6c,0x69,0x64]);})[_0x27d09f([0x74,0x68,0x65,0x6e])](_0x547b92=>(_0x12d3d3(),_0x547b92),()=>{const _0x410585=_0x1d118a();return null==_0x410585?(_0x12d3d3(),_0x27d09f([0x56,0x61,0x6c,0x69,0x64])):_0x27d09f(_0x4a758e-_0x410585>(0x7753083a^_0x175d5e)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x27d09f([0x74,0x68,0x65,0x6e])](_0x216b2d)[_0x27d09f([0x63,0x61,0x74,0x63,0x68])](()=>{_0x216b2d(_0x27d09f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x115941=0x536962ba^_0x175d5e;function _0x12d3d3(){const _0x2eb73b=_0x27d09f([0x6c,0x6c,0x63,0x74,0x2d])+_0x36a805(_0x1cd12a(_0x160e52)),_0x2e5a2d=_0x436443(_0x36a805(window[_0x27d09f([0x4d,0x61,0x74,0x68])][_0x27d09f([0x63,0x65,0x69,0x6c])](_0x4a758e/_0x115941)));window[_0x27d09f([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x27d09f([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2eb73b,_0x2e5a2d);}function _0x1d118a(){const _0x3f7438=_0x27d09f([0x6c,0x6c,0x63,0x74,0x2d])+_0x36a805(_0x1cd12a(_0x160e52)),_0x2fe3fb=window[_0x27d09f([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x27d09f([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3f7438);return _0x2fe3fb?window[_0x27d09f([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x436443(_0x2fe3fb),0x10)*_0x115941:null;}function _0x311b9c(_0x803235){return new window[(_0x27d09f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x410256,_0x454155)=>{_0x803235[_0x27d09f([0x74,0x68,0x65,0x6e])](_0x410256,_0x454155),window[_0x27d09f([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x454155,0x535e58fa^_0x175d5e);});}}_0x44f539[_0x27d09f([0x6f,0x6e])](_0x27d09f([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x515b4e,_0xe76d07)=>{if(_0xe76d07[0x0]!=_0x160e52)return _0x216b2d(_0x27d09f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0xe76d07[0x1]={..._0xe76d07[0x1],[_0x27d09f([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x38b20b};},{[_0x27d09f([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x27d09f([0x68,0x69,0x67,0x68])}),_0x44f539[_0x27d09f([0x6f,0x6e])](_0x27d09f([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x266224=>{_0x3d9a46(_0x266224[_0x27d09f([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x43e5da=!0x0,_0x1aa25c(_0x266224[_0x27d09f([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x27d09f([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x27d09f([0x6c,0x6f,0x77])}),_0x58abbb[_0x27d09f([0x74,0x68,0x65,0x6e])](()=>{_0x43e5da||_0x216b2d(_0x27d09f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x302afd(){return _0x44f539[_0x27d09f([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x27d09f([0x76,0x69,0x65,0x77])][_0x27d09f([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x27d09f([0x61,0x75,0x74,0x6f]);}function _0x1f1d8a(){_0x44f539[_0x27d09f([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x27d09f([0x76,0x69,0x65,0x77])][_0x27d09f([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x27d09f([0x61,0x75,0x74,0x6f]);}}function _0x3e1fa7(_0x2c37f6){const _0x4411c6=[new window[(_0x27d09f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x321c42=>setTimeout(_0x321c42,0x5356b2f6^_0x175d5e)),_0x58abbb[_0x27d09f([0x74,0x68,0x65,0x6e])](()=>new window[(_0x27d09f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x590d6b=>{let _0x1ae196=0x0;_0x44f539[_0x27d09f([0x6d,0x6f,0x64,0x65,0x6c])][_0x27d09f([0x6f,0x6e])](_0x27d09f([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x258bee,_0x56e945)=>{_0x56e945[0x0][_0x27d09f([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x1ae196++,_0x1ae196==(0x535f8dc2^_0x175d5e)&&(_0x590d6b(),_0x258bee[_0x27d09f([0x6f,0x66,0x66])]());});}))];return window[_0x27d09f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x27d09f([0x72,0x61,0x63,0x65])](_0x4411c6)[_0x27d09f([0x74,0x68,0x65,0x6e])](()=>_0x2c37f6);}async function _0x309d74(){await _0x58abbb,_0x44f539[_0x27d09f([0x6d,0x6f,0x64,0x65,0x6c])][_0x27d09f([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0xaec94,_0x44f539[_0x27d09f([0x6d,0x6f,0x64,0x65,0x6c])][_0x27d09f([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0xaec94,_0x44f539[_0x27d09f([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x27d09f([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x362575(_0x4f70e3){const _0x397a1b=_0x4ebd25();_0x44f539[_0x397a1b]=_0x27d09f([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x4f70e3,_0x4f70e3!=_0x27d09f([0x56,0x61,0x6c,0x69,0x64])&&_0x309d74();}function _0x4ebd25(){const _0x425054=window[_0x27d09f([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x27d09f([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x27d09f([0x6e,0x6f,0x77])]())[_0x27d09f([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x27d09f([0x2e]),'');let _0x5aa9a2=_0x27d09f([0x68]);for(let _0x1eaf38=0x0;_0x1eaf38<_0x425054[_0x27d09f([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1eaf38+=0x2){let _0x45e547=window[_0x27d09f([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x425054[_0x27d09f([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x1eaf38,_0x1eaf38+0x2));_0x45e547>=_0x2964db[_0x27d09f([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x45e547-=_0x2964db[_0x27d09f([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x5aa9a2+=_0x2964db[_0x45e547];}return _0x5aa9a2;}function _0x3a669e(){const _0x2a932c=_0x793fb6[_0x27d09f([0x73,0x70,0x6c,0x69,0x74])](_0x27d09f([0x2e]));if(0x3!=_0x2a932c[_0x27d09f([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x1a5e69(_0x2a932c[0x1]);function _0x1a5e69(_0x5f0187){const _0x17dc64=_0x3e88e9(_0x5f0187);return _0x17dc64&&_0x5bac4a()?_0x17dc64:null;function _0x5bac4a(){const _0x4a67d1=_0x17dc64[_0x27d09f([0x6a,0x74,0x69])],_0x3b1d12=window[_0x27d09f([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4a67d1[_0x27d09f([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4a67d1[_0x27d09f([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x5b6f6d={..._0x17dc64,[_0x27d09f([0x6a,0x74,0x69])]:_0x4a67d1[_0x27d09f([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x4a67d1[_0x27d09f([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x5b6f6d[_0x27d09f([0x76,0x63])],_0x1cd12a(_0x5b6f6d)==_0x3b1d12;}}}async function _0x289baa(){let _0x2aa522=!0x0;try{const _0x1cdcb7=_0x793fb6[_0x27d09f([0x73,0x70,0x6c,0x69,0x74])](_0x27d09f([0x2e])),[_0x5ec165,_0x39b709,_0x318fd5]=_0x1cdcb7;return _0x5b076f(_0x5ec165),await _0x5a2655(_0x5ec165,_0x39b709,_0x318fd5),_0x2aa522;}catch{return!0x1;}function _0x5b076f(_0x1f2a17){const _0x12534c=_0x3e88e9(_0x1f2a17);_0x12534c&&_0x12534c[_0x27d09f([0x61,0x6c,0x67])]==_0x27d09f([0x45,0x53,0x32,0x35,0x36])||(_0x2aa522=!0x1);}async function _0x5a2655(_0x431660,_0x58d7b3,_0x178f90){const _0x5b106a=window[_0x27d09f([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x27d09f([0x66,0x72,0x6f,0x6d])](_0x530baa(_0x178f90),_0x5bd1b9=>_0x5bd1b9[_0x27d09f([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x56313e=new window[(_0x27d09f([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x27d09f([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x431660+_0x27d09f([0x2e])+_0x58d7b3),_0x3059db=window[_0x27d09f([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x27d09f([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x3059db)return;const _0x48c9f4=await _0x3059db[_0x27d09f([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x27d09f([0x6a,0x77,0x6b]),_0x19bbf5,{[_0x27d09f([0x6e,0x61,0x6d,0x65])]:_0x27d09f([0x45,0x43,0x44,0x53,0x41]),[_0x27d09f([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x27d09f([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x27d09f([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x3059db[_0x27d09f([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x27d09f([0x6e,0x61,0x6d,0x65])]:_0x27d09f([0x45,0x43,0x44,0x53,0x41]),[_0x27d09f([0x68,0x61,0x73,0x68])]:{[_0x27d09f([0x6e,0x61,0x6d,0x65])]:_0x27d09f([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x48c9f4,_0x5b106a,_0x56313e)||(_0x2aa522=!0x1);}}function _0x3e88e9(_0x11a056){return _0x11a056[_0x27d09f([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x27d09f([0x65,0x79]))?JSON[_0x27d09f([0x70,0x61,0x72,0x73,0x65])](_0x530baa(_0x11a056)):null;}function _0x530baa(_0x2746ce){return window[_0x27d09f([0x61,0x74,0x6f,0x62])](_0x2746ce[_0x27d09f([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x27d09f([0x2b]))[_0x27d09f([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x27d09f([0x2f])));}function _0x1cd12a(_0x382075){let _0x49fdac=0x1505;function _0x5537ee(_0x5e3f7f){for(let _0x55fb49=0x0;_0x55fb49<_0x5e3f7f[_0x27d09f([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x55fb49++){const _0x478862=_0x5e3f7f[_0x27d09f([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x55fb49);_0x49fdac=(_0x49fdac<<0x5)+_0x49fdac+_0x478862,_0x49fdac&=_0x49fdac;}}function _0x186e7b(_0x565d46){Array[_0x27d09f([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x565d46)?_0x565d46[_0x27d09f([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x186e7b):_0x565d46&&typeof _0x565d46==_0x27d09f([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x27d09f([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x565d46)[_0x27d09f([0x73,0x6f,0x72,0x74])]()[_0x27d09f([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0xc7595,_0x3d9640])=>{_0x5537ee(_0xc7595),_0x186e7b(_0x3d9640);}):_0x5537ee(window[_0x27d09f([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x565d46));}return _0x186e7b(_0x382075),_0x49fdac>>>0x0;}function _0x36a805(_0x26fc71){return _0x26fc71[_0x27d09f([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x27d09f([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x27d09f([0x30]));}function _0x436443(_0x1d86bf){return _0x1d86bf[_0x27d09f([0x73,0x70,0x6c,0x69,0x74])]('')[_0x27d09f([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x27d09f([0x6a,0x6f,0x69,0x6e])]('');}function _0xaec94(){}function _0x27d09f(_0x15b989){const _0x4ec9dd=_0x2cad;return _0x15b989[_0x4ec9dd(0x1cc)](_0x3a1f23=>String[_0x4ec9dd(0x1c1)](_0x3a1f23))[_0x4ec9dd(0x1be)]('');}_0x362575(await _0x512982());}(this);}[_0x427347(0x208)](){const _0x42796a=_0x427347,_0x311e14=this[_0x42796a(0x1c9)][_0x42796a(0x1ca)][_0x42796a(0x1eb)];_0x311e14[_0x42796a(0x1db)](_0x42796a(0x1d8))&&_0x311e14[_0x42796a(0x201)](_0x42796a(0x1d8),{'allowAttributes':[_0x42796a(0x1ce)]}),_0x311e14[_0x42796a(0x1db)](_0x42796a(0x1f5))&&_0x311e14[_0x42796a(0x201)](_0x42796a(0x1f5),{'allowAttributes':[_0x42796a(0x1ce)]});}[_0x427347(0x1d9)](){const _0x56fdff=_0x427347,_0xe8c4a3=this[_0x56fdff(0x1c9)];_0xe8c4a3[_0x56fdff(0x1de)][_0x56fdff(0x1ef)](_0x56fdff(0x1e4))[_0x56fdff(0x1dc)]({'model':_0x56fdff(0x1ce),'view':_0x56fdff(0x203)}),_0xe8c4a3[_0x56fdff(0x1de)][_0x56fdff(0x1ef)](_0x56fdff(0x1bd))[_0x56fdff(0x1e1)]({'model':{'key':_0x56fdff(0x1ce),'value':_0x5c6252=>_0x5c6252[_0x56fdff(0x1c4)](_0x56fdff(0x203))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x37afed=_0xe8c4a3[_0x56fdff(0x1fe)][_0x56fdff(0x1e5)](_0x56fdff(0x1fc));_0x37afed&&this[_0x56fdff(0x1f1)](_0x37afed,_0x56fdff(0x1f4),(_0x21bdfe,[_0x1b8089,_0x1346f3])=>{const _0x45e77f=_0x56fdff;_0x1b8089[_0x45e77f(0x1bb)](_0x45e77f(0x1ce),_0x1346f3);});}[_0x427347(0x1f6)](){const _0x585397=_0x427347,_0x553082=this[_0x585397(0x1c9)][_0x585397(0x1f3)][_0x585397(0x1e5)](_0x585397(0x1f8))||{},_0x3936e4=this[_0x585397(0x1c9)][_0x585397(0x1f3)][_0x585397(0x1e5)](_0x585397(0x1ea))||'';this[_0x585397(0x1d5)]=_0x2176f1(_0x379515[_0x585397(0x1f2)],_0x585397(0x1d1),{..._0x553082,'pubkey':_0x3936e4,'ctx-name':_0x585397(0x1b6)+this[_0x585397(0x1e8)],'sourceList':'','imgOnly':_0x585397(0x1f7),'removeCopyright':_0x585397(0x1f7),'localeName':this[_0x585397(0x1c9)][_0x585397(0x1e0)][_0x585397(0x1fd)],'externalSourcesEmbedCss':_0x585397(0x1e3)}),this[_0x585397(0x1d5)][_0x585397(0x1d2)]=_0x41ab2d=>{const _0x38e31b=_0x585397;if(_0x38e31b(0x1b9)==_0x41ab2d)return _0x38e31b(0x1e2);},_0x379515[_0x585397(0x1f2)][_0x585397(0x1ed)][_0x585397(0x1b7)](this[_0x585397(0x1d5)]);}[_0x427347(0x1cb)](){const _0x15bd6e=_0x427347;this[_0x15bd6e(0x1e9)]=_0x2176f1(_0x379515[_0x15bd6e(0x1f2)],_0x15bd6e(0x1c5),{'ctx-name':_0x15bd6e(0x1b6)+this[_0x15bd6e(0x1e8)]}),_0x379515[_0x15bd6e(0x1f2)][_0x15bd6e(0x1ed)][_0x15bd6e(0x1b7)](this[_0x15bd6e(0x1e9)]);}[_0x427347(0x1d0)](){const _0x5cb918=_0x427347,_0x1123d7=this[_0x5cb918(0x1c9)][_0x5cb918(0x1fe)][_0x5cb918(0x1e5)](_0x5cb918(0x1e7));_0x1123d7&&this[_0x5cb918(0x1f1)](_0x1123d7,_0x5cb918(0x1bf),()=>{const _0x4c099e=_0x5cb918,_0x208a45=this[_0x4c099e(0x1c9)][_0x4c099e(0x1ca)][_0x4c099e(0x1f2)][_0x4c099e(0x1d3)][_0x4c099e(0x202)]();_0x208a45&&_0x208a45[_0x4c099e(0x1c4)](_0x4c099e(0x1ce))&&this[_0x4c099e(0x1c9)][_0x4c099e(0x1ee)][_0x4c099e(0x1ba)][_0x4c099e(0x1c8)](_0x4c099e(0x204),()=>{const _0x5a8b1a=_0x4c099e;_0x5058a4(this[_0x5a8b1a(0x1c9)],_0x208a45);});});const _0x23bbc6=this[_0x5cb918(0x1c9)][_0x5cb918(0x1fe)][_0x5cb918(0x1e5)](_0x5cb918(0x1df));_0x23bbc6&&this[_0x5cb918(0x1f1)](_0x23bbc6,_0x5cb918(0x1bf),()=>{const _0x4ee5ff=_0x5cb918,_0x5a8675=this[_0x4ee5ff(0x1c9)][_0x4ee5ff(0x1ca)][_0x4ee5ff(0x1f2)][_0x4ee5ff(0x1d3)][_0x4ee5ff(0x202)]();_0x5a8675&&_0x5a8675[_0x4ee5ff(0x1c4)](_0x4ee5ff(0x1ce))&&this[_0x4ee5ff(0x1c9)][_0x4ee5ff(0x1ee)][_0x4ee5ff(0x1ba)][_0x4ee5ff(0x1c8)](_0x4ee5ff(0x204),()=>{const _0x4595af=_0x4ee5ff;_0x5058a4(this[_0x4595af(0x1c9)],_0x5a8675);});});}}