@ckeditor/ckeditor5-uploadcare 45.1.0-alpha.0 → 45.1.0-alpha.1

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 _0x50ec4a,Command as _0x2b86bf}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x1ab763,IconGooglePhotos as _0x5dfb15,IconGoogleDrive as _0x16c998,IconFacebook as _0x3c4b82,IconDropbox as _0x1a70a0,IconUploadcareLink as _0x22c203,IconUploadcareImageUpload as _0x9fc304,IconError as et,IconUploadcareImageEdit as _0x3e460a}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x4a4b18,MenuBarMenuListItemButtonView as _0x37fa05,View as _0x1d48b0,FocusCycler as _0xfae937,Dialog as _0x19a61e,DialogViewPosition as _0x4cd24c,SpinnerView as _0x3eb641,IconView as at,Notification as _0x493ea4}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0xeb4d88,DomEmitterMixin as _0x41473a,global as _0x5edf6e,getAncestors as _0xe3814b,ObservableMixin as _0x2d6bf3,createElement as _0x873785,uid as _0x3dbd77}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x3965c2}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0xb1658f,info as _0x417a19}from'@uploadcare/upload-client';import*as _0x5891b3 from'@uploadcare/file-uploader';var o=function(_0x47cbec){return _0x47cbec['Local']='local',_0x47cbec['URL']='url',_0x47cbec['Dropbox']='dropbox',_0x47cbec['GDrive']='gdrive',_0x47cbec['Facebook']='facebook',_0x47cbec['GPhotos']='gphotos',_0x47cbec['OneDrive']='onedrive',_0x47cbec;}({});function _(_0x523c51,_0x1979c0,_0x596c1f){const t=_0x523c51['t'],_0x1ae294=_0x523c51['t'];switch(_0x1979c0){case o['Local']:return{'text':_0x1ae294('Insert'===_0x596c1f?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x1ae294('From\x20computer')};case o['URL']:return{'text':'Insert'===_0x596c1f?_0x1ae294('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x1ae294('Via\x20URL')};case o['Dropbox']:return{'text':t('Insert'===_0x596c1f?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case o['Facebook']:return{'text':t('Insert'===_0x596c1f?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case o['GDrive']:return{'text':t('Insert'===_0x596c1f?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case o['GPhotos']:return{'text':t('Insert'===_0x596c1f?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case o['OneDrive']:return{'text':t('Insert'===_0x596c1f?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x1979c0;}}class e extends _0x50ec4a{['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 _0x1a1d70=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x53a37e;for(const _0x3a340e in _0x1a1d70){const _0x441fbf=_0x3a340e,_0x2ad8fa=_0x1a1d70[_0x441fbf];if('uploadcareLicenseKeyValid'==_0x2ad8fa||'uploadcareLicenseKeyInvalid'==_0x2ad8fa||'uploadcareLicenseKeyExpired'==_0x2ad8fa||'uploadcareLicenseKeyDomainLimit'==_0x2ad8fa||'uploadcareLicenseKeyNotAllowed'==_0x2ad8fa||'uploadcareLicenseKeyEvaluationLimit'==_0x2ad8fa||'uploadcareLicenseKeyTrialLimit'==_0x2ad8fa||'uploadcareLicenseKeyUsageLimit'==_0x2ad8fa){delete _0x1a1d70[_0x441fbf],_0x53a37e=_0x2ad8fa,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x53a37e&&_0x1a1d70['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x53a37e&&_0x1a1d70['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x53a37e&&_0x1a1d70['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x53a37e&&_0x1a1d70['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x53a37e&&_0x1a1d70['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyTrialLimit'==_0x53a37e&&_0x1a1d70['_showLicenseError']('trialLimit'),'uploadcareLicenseKeyUsageLimit'==_0x53a37e&&_0x1a1d70['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x5b1830}=this,_0x1cb48a=_0x5b1830['commands']['get']('uploadcare');if(!_0x1cb48a)return;const _0x21af04=this['_normalizeConfigSourceList'](_0x5b1830['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x384152,_0x282bed)=>{const _0x5a5999=this['_getIntegrationKey'](_0x282bed['type']);return _0x384152[_0x5a5999]||(_0x384152[_0x5a5999]=[]),_0x384152[_0x5a5999]['push'](_0x282bed),_0x384152;},{});_0x5b1830['plugins']['has']('ImageInsertUI')&&_0x5b1830['commands']['get']('uploadcare')&&Object['entries'](_0x21af04)['forEach'](([_0x22f223,_0x4746cd])=>{_0x5b1830['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x22f223,'observable':()=>_0x1cb48a,'buttonViewCreator':()=>this['_createToolbarButton'](_0x4746cd),'formViewCreator':()=>this['_createDropdownButtons'](_0x4746cd),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x4746cd),'override':'assetManager'!==_0x22f223});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x2f5cb0){const {locale:_0x4d6d16}=this['editor'];return _0x2f5cb0['map'](_0x455dd9=>{const _0x36cb6b=_(_0x4d6d16,_0x455dd9,'Insert');switch(_0x455dd9){case o['Local']:return{'icon':_0x9fc304,'type':o['Local'],..._0x36cb6b};case o['URL']:return{'icon':_0x22c203,'type':o['URL'],..._0x36cb6b};case o['Dropbox']:return{'icon':_0x1a70a0,'type':o['Dropbox'],..._0x36cb6b};case o['Facebook']:return{'icon':_0x3c4b82,'type':o['Facebook'],..._0x36cb6b};case o['GDrive']:return{'icon':_0x16c998,'type':o['GDrive'],..._0x36cb6b};case o['GPhotos']:return{'icon':_0x5dfb15,'type':o['GPhotos'],..._0x36cb6b};case o['OneDrive']:return{'icon':_0x1ab763,'type':o['OneDrive'],..._0x36cb6b};}});}['_getIntegrationKey'](_0x374c12){switch(_0x374c12){case o['Local']:return'upload';case o['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x15e429,_0x1d6d4f){const _0x32db29=this['editor'],_0x2ebba7=new _0x15e429(_0x32db29['locale']),_0x46293b=_0x32db29['commands']['get']('uploadcare');return _0x2ebba7['bind']('isEnabled')['to'](_0x46293b),_0x2ebba7['on']('execute',()=>{_0x46293b['execute'](_0x1d6d4f);}),_0x2ebba7;}['_createToolbarButton'](_0x4f99c){const {locale:_0x32f941}=this['editor'],_0x2745df=this['editor']['plugins']['get']('ImageInsertUI'),_0x1e4e39=_0x4f99c[0x0],_0x391811=this['_createButton'](_0x4a4b18,_0x1e4e39['type']);return _0x391811['icon']=_0x1e4e39['icon'],_0x391811['bind']('label')['to'](_0x2745df,'isImageSelected',_0x38c0c6=>_(_0x32f941,_0x1e4e39['type'],_0x38c0c6?'Replace':'Insert')['text']),_0x391811['tooltip']=!0x0,_0x391811;}['_createDropdownButtons'](_0x4e3f4f){const {locale:_0x57f01d}=this['editor'],_0xe572e5=this['editor']['plugins']['get']('ImageInsertUI');return _0x4e3f4f['map'](_0x4d7d7a=>{const _0x10a52b=this['_createButton'](_0x4a4b18,_0x4d7d7a['type']);return _0x10a52b['withText']=!0x0,_0x10a52b['icon']=_0x4d7d7a['icon'],_0x10a52b['bind']('label')['to'](_0xe572e5,'isImageSelected',_0x309fb2=>_(_0x57f01d,_0x4d7d7a['type'],_0x309fb2?'Replace':'Insert')['text']),_0x10a52b;});}['_createMenuBarButtons'](_0x316999){return _0x316999['map'](_0x3edca0=>{const _0x48fec3=this['_createButton'](_0x37fa05,_0x3edca0['type']);return _0x48fec3['icon']=_0x3edca0['icon'],_0x48fec3['label']=_0x3edca0['shortText'],_0x48fec3;});}}class q extends _0x1d48b0{['focusTracker'];['focusCycler'];constructor(_0x20e131){super(_0x20e131),this['focusTracker']=new _0xeb4d88(),this['focusCycler']=new _0xfae937({'focusables':this['createCollection'](),'focusTracker':this['focusTracker']});}['getFocusableElement'](){return{'tag':'div','attributes':{'aria-hidden':'true','tabindex':'0'},'on':{'focus':this['bindTemplate']['to'](()=>{this['focusCycler']['fire']('forwardCycle');})}};}}class S extends q{constructor(_0x414dd0){super(_0x414dd0),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all-excluded','ck-uploadcare-form'],'tabindex':'-1'},'children':[{'tag':'uc-file-uploader-inline','attributes':{'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'uploader'}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}}function E(_0x260364,_0x102b69){const _0x11a638=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x1cef8c=>_0x1cef8c<=_0x102b69)['map'](_0x4172be=>_0x260364['replace'](/\/$/,'')+'/-/resize/'+_0x4172be+'x/\x20'+_0x4172be+'w');return{'imageFallbackUrl':_0x260364,'imageSources':[{'srcset':_0x11a638['join'](',\x20'),'sizes':'(max-width:\x20'+_0x102b69+'px)\x20100vw,\x20'+_0x102b69+'px','type':'image/webp'}]};}function A(_0x13cc76,_0x50d7ee,_0x3e5861){const _0x4f7e80=_0x13cc76['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x4f7e80?parseInt(_0x4f7e80[0x1],0xa):_0x50d7ee,'height':_0x4f7e80?parseInt(_0x4f7e80[0x2],0xa):_0x3e5861};}function m(_0x2f2719,_0x107241){const _0x1c7854=Object['create'](_0x41473a),_0x129564=_0x2f2719['plugins']['get']('ImageUtils'),_0x41d257=_0x2f2719['editing']['mapper']['toViewElement'](_0x107241),_0x5383c7=_0x129564['findViewImgElement'](_0x41d257),_0x1afb92=_0x2f2719['editing']['view']['domConverter']['viewToDom'](_0x5383c7),_0x169f22=_0x107241['getAttribute']('width'),_0x49d6b3=_0x107241['getAttribute']('height'),_0x4de22e='image-processing';_0x2f2719['editing']['view']['change'](_0x4855af=>{_0x4855af['addClass'](_0x4de22e,_0x41d257),_0x4855af['setStyle']('aspect-ratio',_0x169f22+'/'+_0x49d6b3,_0x5383c7);}),_0x1c7854['listenTo'](_0x1afb92,'load',()=>{_0x1c7854['stopListening'](_0x1afb92,'load'),_0x2f2719['editing']['view']['change'](_0x577224=>{_0x577224['removeClass'](_0x4de22e,_0x41d257),_0x577224['removeStyle']('aspect-ratio',_0x5383c7);});});}function V(_0x196541){if(Array['isArray'](_0x196541)){const _0x336818=_0x196541['map'](V);return _0x210e26=>_0x336818['some'](_0x3ee608=>_0x3ee608(_0x210e26));}if('origin'==_0x196541){const _0x267d92=_0x5edf6e['window']['location']['origin'];return _0x197069=>new URL(_0x197069,_0x5edf6e['document']['baseURI'])['origin']==_0x267d92;}return'function'==typeof _0x196541?_0x196541:_0x196541 instanceof RegExp?_0x8a91cd=>!(!_0x8a91cd['match'](_0x196541)&&!_0x8a91cd['replace'](/^https?:\/\//,'')['match'](_0x196541)):()=>!0x1;}function F(_0x1a76e0,_0x3208c9){return _0xe3814b(_0x1a76e0['target'])['includes'](_0x3208c9);}class l extends/* #__PURE__ -- @preserve */
24
- _0x2d6bf3(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x12341c,_0x31f649,_0x490f1a){super(),this['_editor']=_0x12341c,this['_editing']=_0x31f649,this['_dialog']=_0x12341c['plugins']['get'](_0x19a61e),this['_api']=_0x31f649['ctxElement']['getAPI'](),this['_type']=_0x490f1a,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:_0x49f66b,model:_0x2cd3a7}=this['_editor'],_0x10e084=_0x2cd3a7['document']['selection']['getSelectedElement'](),_0x274368=_0x10e084&&(_0x10e084['is']('element','imageBlock')||_0x10e084['is']('element','imageInline'));this['_formView']=new S(_0x49f66b),this['_dialog']['show']({'id':'uploadCare','icon':_0x9fc304,'title':_(_0x49f66b,this['_type'],_0x274368?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x4cd24c['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x48f900=>!F(_0x48f900,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x954c5c}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x16b662=>{const _0x4d38ea=_0x954c5c['length'];for(const _0x28ea43 of _0x954c5c){const _0x292b5f=_0x28ea43===_0x954c5c[_0x4d38ea-0x1],{cdnUrl:_0x5c4a04,fileInfo:_0x231e78}=_0x28ea43;if(!_0x5c4a04||!_0x231e78)continue;const {width:_0x40b44c,height:_0x50e99d}=_0x231e78['imageInfo'],_0xff07e2=A(_0x5c4a04,_0x40b44c,_0x50e99d),_0x2a5fa1=E(_0x5c4a04,_0xff07e2['width']),_0x2d326d={'id':_0x231e78['uuid'],'type':'image','attributes':{'imageDimension':_0xff07e2,..._0x2a5fa1}};this['_insertAsset'](_0x2d326d,_0x292b5f,_0x16b662);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x57a346=>{'idle'===_0x57a346['detail']['status']&&!_0x57a346['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===o['Local']?this['_api']['setCurrentActivity'](o['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x411592,_0x2d3a2a,_0x15a191){const _0x5c532b=this['_editor']['model']['document']['selection'],_0x4e5bc0=_0x5c532b['getSelectedElement'](),_0x300cdf=!(!_0x4e5bc0||!_0x4e5bc0['is']('element','imageInline'));_0x15a191['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x411592,_0x300cdf),_0x2d3a2a||_0x15a191['setSelection'](_0x5c532b['getLastPosition']());}['_insertImage'](_0x15030e,_0x5bada6){const _0x165164=this['_editor'],{imageDimension:_0x2e9d65,imageFallbackUrl:_0x3821af,imageSources:_0x52c437}=_0x15030e['attributes'];_0x165164['execute']('insertImage',{'imageType':_0x5bada6?'imageInline':null,'source':{'uploadcareImageId':_0x15030e['id'],'src':_0x3821af,'sources':_0x52c437,..._0x2e9d65}});}}class n extends _0x2b86bf{['_editing'];['_controller']=null;static get['requires'](){return[_0x19a61e,i];}constructor(_0x2174ef){super(_0x2174ef),this['_editing']=_0x2174ef['plugins']['get'](i);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x1175b8){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new l(this['editor'],this['_editing'],_0x1175b8);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class C{static['upload']({file:_0x33f08a,publicKey:_0x1e84c3,signal:_0x223fa3,onProgress:_0x15b157}){return _0xb1658f(_0x33f08a,{'publicKey':_0x1e84c3,'store':'auto','signal':_0x223fa3,'onProgress':_0x15b157});}static['getInfo'](_0x52d51b,_0x5c5e08){return _0x417a19(_0x52d51b,_0x5c5e08);}}class p extends _0x50ec4a{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x3965c2,i];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0xd01f68=this['editor'];if(!!!_0xd01f68['config']['get']('uploadcare'))return;_0xd01f68['plugins']['get'](_0x3965c2)['createUploadAdapter']=_0x46c848=>new x(_0x46c848,_0xd01f68),_0xd01f68['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0xeb67b0,{imageElement:_0x4f3f83,data:_0x3cd2bf})=>{_0xd01f68['model']['change'](_0x191927=>{_0x191927['setAttribute']('uploadcareImageId',_0x3cd2bf['uploadcareImageId'],_0x4f3f83);});});}}class x{['loader'];['editor'];['controller'];constructor(_0x3f913f,_0x2bcfad){this['loader']=_0x3f913f,this['editor']=_0x2bcfad,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x456cdd=this['editor']['config']['get']('uploadcare.pubkey'),_0x1be21b=await this['loader']['file'];return C['upload']({'file':_0x1be21b,'publicKey':_0x456cdd,'signal':this['controller']['signal'],'onProgress':_0xd02a5e=>{_0xd02a5e&&_0xd02a5e['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0xd02a5e['value']);}})['then'](async _0x5dc114=>{const {imageFallbackUrl:_0x1e3698,imageSources:_0x836513}=E(_0x5dc114['cdnUrl'],_0x5dc114['imageInfo']['width']);return{'uploadcareImageId':_0x5dc114['uuid'],'default':_0x1e3698,'sources':_0x836513};})['catch'](()=>{const _0x361c11=t('Cannot\x20upload\x20file:')+('\x20'+_0x1be21b['name']+'.');return Promise['reject'](_0x361c11);});}['abort'](){this['controller']['abort']();}}class i extends _0x50ec4a{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',p,_0x19a61e];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}['init'](){const _0x406d24=this['editor'];_0x406d24['commands']['add']('uploadcare',new n(_0x406d24));}['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 _0x3816f0=_0x5edf6e['document']['querySelector']('input[uploadcare-file-input]');_0x3816f0&&_0x3816f0['remove']();}),async function(_0x4e5347){const _0x1f5f27=_0x4ac6c4([0x55,0x5a,0x51,0x69,0x72,0x70,0x7a,0x58,0x57,0x65,0x52,0x6f,0x36,0x46,0x79,0x4e,0x59,0x53,0x67,0x30,0x44,0x6b,0x34,0x4a,0x48,0x37,0x4c,0x64,0x31,0x62,0x76,0x61,0x6e,0x71,0x68,0x41,0x6a,0x33,0x47,0x39,0x45,0x42,0x4b,0x4f,0x4d,0x74,0x75,0x35,0x54,0x49,0x43,0x50,0x63,0x77,0x73,0x32,0x56,0x66,0x38,0x6d,0x78,0x6c]),_0x529854=0x54808abb,_0x48972c=0x5487ed93^_0x529854,_0x441421=window[_0x4ac6c4([0x44,0x61,0x74,0x65])][_0x4ac6c4([0x6e,0x6f,0x77])](),_0x3d36f5=_0x4e5347[_0x4ac6c4([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x2e3b56=new window[(_0x4ac6c4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x47262c=>{_0x3d36f5[_0x4ac6c4([0x6f,0x6e,0x63,0x65])](_0x4ac6c4([0x72,0x65,0x61,0x64,0x79]),_0x47262c);}),_0x7881be={[_0x4ac6c4([0x6b,0x74,0x79])]:_0x4ac6c4([0x45,0x43]),[_0x4ac6c4([0x75,0x73,0x65])]:_0x4ac6c4([0x73,0x69,0x67]),[_0x4ac6c4([0x63,0x72,0x76])]:_0x4ac6c4([0x50,0x2d,0x32,0x35,0x36]),[_0x4ac6c4([0x78])]:_0x4ac6c4([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]),[_0x4ac6c4([0x79])]:_0x4ac6c4([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]),[_0x4ac6c4([0x61,0x6c,0x67])]:_0x4ac6c4([0x45,0x53,0x32,0x35,0x36])},_0x2f4b01=_0x3d36f5[_0x4ac6c4([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x4ac6c4([0x67,0x65,0x74])](_0x4ac6c4([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x56a378(){let _0xe07885,_0x1f6d7a=null,_0x2acc98=null;try{if(_0x2f4b01==_0x4ac6c4([0x47,0x50,0x4c]))return _0x4ac6c4([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0xe07885=_0x3cb10e(),!_0xe07885)return _0x4ac6c4([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0xe07885[_0x4ac6c4([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x2acc98=_0x223f59(_0xe07885[_0x4ac6c4([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0xe07885[_0x4ac6c4([0x6a,0x74,0x69])])),await _0x4a7935()?_0x1af54a()?_0x5410c1()?_0x4ac6c4([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x869e27()?(_0xe07885[_0x4ac6c4([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x4ac6c4([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x1f6d7a=_0x5b8c0b(_0x4ac6c4([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0xe07885[_0x4ac6c4([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x4ac6c4([0x74,0x72,0x69,0x61,0x6c])&&(_0x1f6d7a=_0x5b8c0b(_0x4ac6c4([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x43205b()):_0x4ac6c4([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x4ac6c4([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x4ac6c4([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x2dc054){return _0x4ac6c4([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x5410c1(){const _0x4db857=[_0x4ac6c4([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x4ac6c4([0x74,0x72,0x69,0x61,0x6c])][_0x4ac6c4([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xe07885[_0x4ac6c4([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x441421/0x3e8:0xe10*_0x48972c;return _0xe07885[_0x4ac6c4([0x65,0x78,0x70])]<_0x4db857;}function _0x1af54a(){const _0x3b3773=_0xe07885[_0x4ac6c4([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x3b3773&&(!!_0x3b3773[_0x4ac6c4([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4ac6c4([0x2a]))||!!_0x3b3773[_0x4ac6c4([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4ac6c4([0x55,0x50,0x4c,0x43])));}function _0x869e27(){const _0x2eeab6=_0xe07885[_0x4ac6c4([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x2eeab6||0x0==_0x2eeab6[_0x4ac6c4([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x1c4a10}=new URL(window[_0x4ac6c4([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x2eeab6[_0x4ac6c4([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1c4a10))return!0x0;const _0x183d7b=_0x1c4a10[_0x4ac6c4([0x73,0x70,0x6c,0x69,0x74])](_0x4ac6c4([0x2e]));return _0x2eeab6[_0x4ac6c4([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x24bd5d=>_0x24bd5d[_0x4ac6c4([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4ac6c4([0x2a])))[_0x4ac6c4([0x6d,0x61,0x70])](_0x3c8fee=>_0x3c8fee[_0x4ac6c4([0x73,0x70,0x6c,0x69,0x74])](_0x4ac6c4([0x2e])))[_0x4ac6c4([0x73,0x6f,0x6d,0x65])](_0x3a9dcd=>_0x183d7b[_0x4ac6c4([0x65,0x76,0x65,0x72,0x79])]((_0x3507cb,_0x2b2479)=>_0x3a9dcd[_0x2b2479]===_0x3507cb||_0x3a9dcd[_0x2b2479]===_0x4ac6c4([0x2a])));}function _0x43205b(){return _0x1f6d7a&&_0x2acc98?new window[(_0x4ac6c4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0xc2e789,_0x587099)=>{_0x1f6d7a[_0x4ac6c4([0x74,0x68,0x65,0x6e])](_0xc2e789,_0x587099),_0x2acc98[_0x4ac6c4([0x74,0x68,0x65,0x6e])](_0x477bfe=>{_0x477bfe!=_0x4ac6c4([0x56,0x61,0x6c,0x69,0x64])&&_0xc2e789(_0x477bfe);},_0x587099);}):_0x1f6d7a||_0x2acc98||_0x4ac6c4([0x56,0x61,0x6c,0x69,0x64]);}}function _0x223f59(_0x419102,_0x2aeedf){return new window[(_0x4ac6c4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x57ba96=>{if(_0x42870c())return _0x57ba96(_0x4ac6c4([0x56,0x61,0x6c,0x69,0x64]));_0x55bc27(),_0x3d36f5[_0x4ac6c4([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x4ac6c4([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x34637f=!0x1;const _0x32d137=_0x3dbd77();function _0x2f2fcf(_0x509429){return!!_0x509429&&(typeof _0x509429===_0x4ac6c4([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x509429===_0x4ac6c4([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x509429[_0x4ac6c4([0x74,0x68,0x65,0x6e])]===_0x4ac6c4([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x509429[_0x4ac6c4([0x63,0x61,0x74,0x63,0x68])]===_0x4ac6c4([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x399ded(_0x1950e3){_0x2b587c(_0x1950e3)[_0x4ac6c4([0x74,0x68,0x65,0x6e])](_0xa7ebf6=>{if(!_0xa7ebf6||_0xa7ebf6[_0x4ac6c4([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x4ac6c4([0x6f,0x6b]))return _0x4ac6c4([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x4652d2(_0x5e9d25(_0x32d137+_0x2aeedf))!=_0xa7ebf6[_0x4ac6c4([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x4ac6c4([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x4ac6c4([0x56,0x61,0x6c,0x69,0x64]);})[_0x4ac6c4([0x74,0x68,0x65,0x6e])](_0x24ffcb=>(_0x495bd0(),_0x24ffcb),()=>{const _0x4647ec=_0x43a237();return null==_0x4647ec?(_0x495bd0(),_0x4ac6c4([0x56,0x61,0x6c,0x69,0x64])):_0x4ac6c4(_0x441421-_0x4647ec>(0x708c0ebb^_0x529854)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x4ac6c4([0x74,0x68,0x65,0x6e])](_0x57ba96)[_0x4ac6c4([0x63,0x61,0x74,0x63,0x68])](()=>{_0x57ba96(_0x4ac6c4([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x46aa1d=0x54b6643b^_0x529854;function _0x495bd0(){const _0x1cbad2=_0x4ac6c4([0x6c,0x6c,0x63,0x74,0x2d])+_0x4652d2(_0x5e9d25(_0x419102)),_0x34621b=_0x463634(_0x4652d2(window[_0x4ac6c4([0x4d,0x61,0x74,0x68])][_0x4ac6c4([0x63,0x65,0x69,0x6c])](_0x441421/_0x46aa1d)));window[_0x4ac6c4([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4ac6c4([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1cbad2,_0x34621b);}function _0x43a237(){const _0x1ff3e8=_0x4ac6c4([0x6c,0x6c,0x63,0x74,0x2d])+_0x4652d2(_0x5e9d25(_0x419102)),_0x3fb135=window[_0x4ac6c4([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4ac6c4([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1ff3e8);return _0x3fb135?window[_0x4ac6c4([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x463634(_0x3fb135),0x10)*_0x46aa1d:null;}function _0x2b587c(_0xc79db2){return new window[(_0x4ac6c4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x2499cc,_0x4b48a0)=>{_0xc79db2[_0x4ac6c4([0x74,0x68,0x65,0x6e])](_0x2499cc,_0x4b48a0),window[_0x4ac6c4([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x4b48a0,0x54815e7b^_0x529854);});}}_0x3d36f5[_0x4ac6c4([0x6f,0x6e])](_0x4ac6c4([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x35920f,_0x351dc9)=>{if(_0x351dc9[0x0]!=_0x419102)return _0x57ba96(_0x4ac6c4([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x351dc9[0x1]={..._0x351dc9[0x1],[_0x4ac6c4([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x32d137};},{[_0x4ac6c4([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4ac6c4([0x68,0x69,0x67,0x68])}),_0x3d36f5[_0x4ac6c4([0x6f,0x6e])](_0x4ac6c4([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x3733f3=>{_0x2f2fcf(_0x3733f3[_0x4ac6c4([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x34637f=!0x0,_0x399ded(_0x3733f3[_0x4ac6c4([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x4ac6c4([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4ac6c4([0x6c,0x6f,0x77])}),_0x2e3b56[_0x4ac6c4([0x74,0x68,0x65,0x6e])](()=>{_0x34637f||_0x57ba96(_0x4ac6c4([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x42870c(){return _0x3d36f5[_0x4ac6c4([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4ac6c4([0x76,0x69,0x65,0x77])][_0x4ac6c4([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x4ac6c4([0x61,0x75,0x74,0x6f]);}function _0x55bc27(){_0x3d36f5[_0x4ac6c4([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4ac6c4([0x76,0x69,0x65,0x77])][_0x4ac6c4([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x4ac6c4([0x61,0x75,0x74,0x6f]);}}function _0x5b8c0b(_0x4d8294){const _0x5cc107=[new window[(_0x4ac6c4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x8e299=>setTimeout(_0x8e299,0x5489b477^_0x529854)),_0x2e3b56[_0x4ac6c4([0x74,0x68,0x65,0x6e])](()=>new window[(_0x4ac6c4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x49389d=>{let _0x5ce493=0x0;_0x3d36f5[_0x4ac6c4([0x6d,0x6f,0x64,0x65,0x6c])][_0x4ac6c4([0x6f,0x6e])](_0x4ac6c4([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x26d09b,_0x49b8b0)=>{_0x49b8b0[0x0][_0x4ac6c4([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x5ce493++,_0x5ce493==(0x54808b43^_0x529854)&&(_0x49389d(),_0x26d09b[_0x4ac6c4([0x6f,0x66,0x66])]());});}))];return window[_0x4ac6c4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x4ac6c4([0x72,0x61,0x63,0x65])](_0x5cc107)[_0x4ac6c4([0x74,0x68,0x65,0x6e])](()=>_0x4d8294);}async function _0x1e56e6(){await _0x2e3b56,_0x3d36f5[_0x4ac6c4([0x6d,0x6f,0x64,0x65,0x6c])][_0x4ac6c4([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x5d7ae8,_0x3d36f5[_0x4ac6c4([0x6d,0x6f,0x64,0x65,0x6c])][_0x4ac6c4([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x5d7ae8,_0x3d36f5[_0x4ac6c4([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x4ac6c4([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x2fc11a(_0x464e1b){const _0x212d86=_0x2f5c0b();_0x3d36f5[_0x212d86]=_0x4ac6c4([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x464e1b,_0x464e1b!=_0x4ac6c4([0x56,0x61,0x6c,0x69,0x64])&&_0x1e56e6();}function _0x2f5c0b(){const _0x42924c=window[_0x4ac6c4([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x4ac6c4([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x4ac6c4([0x6e,0x6f,0x77])]())[_0x4ac6c4([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x4ac6c4([0x2e]),'');let _0x114397=_0x4ac6c4([0x55]);for(let _0x26a551=0x0;_0x26a551<_0x42924c[_0x4ac6c4([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x26a551+=0x2){let _0x271e64=window[_0x4ac6c4([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x42924c[_0x4ac6c4([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x26a551,_0x26a551+0x2));_0x271e64>=_0x1f5f27[_0x4ac6c4([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x271e64-=_0x1f5f27[_0x4ac6c4([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x114397+=_0x1f5f27[_0x271e64];}return _0x114397;}function _0x3cb10e(){const _0x59e262=_0x2f4b01[_0x4ac6c4([0x73,0x70,0x6c,0x69,0x74])](_0x4ac6c4([0x2e]));if(0x3!=_0x59e262[_0x4ac6c4([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x56e000(_0x59e262[0x1]);function _0x56e000(_0xcbfe3a){const _0x48a05b=_0x3b31ab(_0xcbfe3a);return _0x48a05b&&_0x5c8893()?_0x48a05b:null;function _0x5c8893(){const _0x4132b3=_0x48a05b[_0x4ac6c4([0x6a,0x74,0x69])],_0x1981c5=window[_0x4ac6c4([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4132b3[_0x4ac6c4([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4132b3[_0x4ac6c4([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x2dd317={..._0x48a05b,[_0x4ac6c4([0x6a,0x74,0x69])]:_0x4132b3[_0x4ac6c4([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x4132b3[_0x4ac6c4([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x2dd317[_0x4ac6c4([0x76,0x63])],_0x5e9d25(_0x2dd317)==_0x1981c5;}}}async function _0x4a7935(){let _0x54914f=!0x0;try{const _0xe44ed4=_0x2f4b01[_0x4ac6c4([0x73,0x70,0x6c,0x69,0x74])](_0x4ac6c4([0x2e])),[_0x45fbee,_0x3731ec,_0x45939e]=_0xe44ed4;return _0x449d7b(_0x45fbee),await _0x3d00c5(_0x45fbee,_0x3731ec,_0x45939e),_0x54914f;}catch(_0x4aa578){return!0x1;}function _0x449d7b(_0x3d5175){const _0x3f4064=_0x3b31ab(_0x3d5175);_0x3f4064&&_0x3f4064[_0x4ac6c4([0x61,0x6c,0x67])]==_0x4ac6c4([0x45,0x53,0x32,0x35,0x36])||(_0x54914f=!0x1);}async function _0x3d00c5(_0xd87dc5,_0x5a306a,_0x2d048b){const _0x3ee987=window[_0x4ac6c4([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x4ac6c4([0x66,0x72,0x6f,0x6d])](_0x3963cc(_0x2d048b),_0x340799=>_0x340799[_0x4ac6c4([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x127fab=new window[(_0x4ac6c4([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x4ac6c4([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0xd87dc5+_0x4ac6c4([0x2e])+_0x5a306a),_0x1e6999=window[_0x4ac6c4([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x4ac6c4([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x1e6999)return;const _0xc526c7=await _0x1e6999[_0x4ac6c4([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x4ac6c4([0x6a,0x77,0x6b]),_0x7881be,{[_0x4ac6c4([0x6e,0x61,0x6d,0x65])]:_0x4ac6c4([0x45,0x43,0x44,0x53,0x41]),[_0x4ac6c4([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x4ac6c4([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x4ac6c4([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x1e6999[_0x4ac6c4([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x4ac6c4([0x6e,0x61,0x6d,0x65])]:_0x4ac6c4([0x45,0x43,0x44,0x53,0x41]),[_0x4ac6c4([0x68,0x61,0x73,0x68])]:{[_0x4ac6c4([0x6e,0x61,0x6d,0x65])]:_0x4ac6c4([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0xc526c7,_0x3ee987,_0x127fab)||(_0x54914f=!0x1);}}function _0x3b31ab(_0x10e7e3){return _0x10e7e3[_0x4ac6c4([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x4ac6c4([0x65,0x79]))?JSON[_0x4ac6c4([0x70,0x61,0x72,0x73,0x65])](_0x3963cc(_0x10e7e3)):null;}function _0x3963cc(_0x40d27c){return window[_0x4ac6c4([0x61,0x74,0x6f,0x62])](_0x40d27c[_0x4ac6c4([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x4ac6c4([0x2b]))[_0x4ac6c4([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x4ac6c4([0x2f])));}function _0x5e9d25(_0x52387b){let _0x23a2f9=0x1505;function _0x49b11f(_0x178248){for(let _0x295d7e=0x0;_0x295d7e<_0x178248[_0x4ac6c4([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x295d7e++){const _0x39c5d8=_0x178248[_0x4ac6c4([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x295d7e);_0x23a2f9=(_0x23a2f9<<0x5)+_0x23a2f9+_0x39c5d8,_0x23a2f9&=_0x23a2f9;}}function _0x334be2(_0x2a924c){Array[_0x4ac6c4([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x2a924c)?_0x2a924c[_0x4ac6c4([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x334be2):_0x2a924c&&typeof _0x2a924c==_0x4ac6c4([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x4ac6c4([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x2a924c)[_0x4ac6c4([0x73,0x6f,0x72,0x74])]()[_0x4ac6c4([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x2f6450,_0x256c6a])=>{_0x49b11f(_0x2f6450),_0x334be2(_0x256c6a);}):_0x49b11f(window[_0x4ac6c4([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x2a924c));}return _0x334be2(_0x52387b),_0x23a2f9>>>0x0;}function _0x4652d2(_0x145dfb){return _0x145dfb[_0x4ac6c4([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x4ac6c4([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x4ac6c4([0x30]));}function _0x463634(_0x24b01f){return _0x24b01f[_0x4ac6c4([0x73,0x70,0x6c,0x69,0x74])]('')[_0x4ac6c4([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x4ac6c4([0x6a,0x6f,0x69,0x6e])]('');}function _0x5d7ae8(){}function _0x4ac6c4(_0x41b8a7){return _0x41b8a7['map'](_0x1ac8ca=>String['fromCharCode'](_0x1ac8ca))['join']('');}_0x2fc11a(await _0x56a378());}(this);}['_initSchema'](){const _0x44831d=this['editor']['model']['schema'];_0x44831d['isRegistered']('imageBlock')&&_0x44831d['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x44831d['isRegistered']('imageInline')&&_0x44831d['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x1bb707=this['editor'];_0x1bb707['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x1bb707['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x317255=>_0x317255['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x44d0a5=_0x1bb707['commands']['get']('replaceImageSource');_0x44d0a5&&this['listenTo'](_0x44d0a5,'cleanupImage',(_0x2c26c1,[_0x4e2e4b,_0x48e133])=>{_0x4e2e4b['removeAttribute']('uploadcareImageId',_0x48e133);});}['_initConfig'](){const _0xe48013=this['editor']['config']['get']('uploadcare.uploader')||{},_0x2d2d7b=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x873785(_0x5edf6e['document'],'uc-config',{..._0xe48013,'pubkey':_0x2d2d7b,'ctx-name':'uploader','sourceList':'','imgOnly':'true','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage'],'externalSourcesEmbedCss':'\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup\x20{\x20padding:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-menu\x20{\x20gap:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-footer\x20{\x20padding-top:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__separator\x20{\x20margin:\x200;\x20}\x0a\x09\x09\x09'}),this['_configElement']['iconHrefResolver']=_0x434b7d=>{if('closeMax'==_0x434b7d)return'#uc-icon-arrow-down';},_0x5edf6e['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x873785(_0x5edf6e['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader'}),_0x5edf6e['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x257224=this['editor']['commands']['get']('insertImage');_0x257224&&this['listenTo'](_0x257224,'execute',()=>{const _0x4c701e=this['editor']['model']['document']['selection']['getSelectedElement']();_0x4c701e&&_0x4c701e['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{m(this['editor'],_0x4c701e);});});const _0x4b7323=this['editor']['commands']['get']('uploadcareImageReplace');_0x4b7323&&this['listenTo'](_0x4b7323,'execute',()=>{const _0x4c05bd=this['editor']['model']['document']['selection']['getSelectedElement']();_0x4c05bd&&_0x4c05bd['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{m(this['editor'],_0x4c05bd);});});}}class u extends _0x50ec4a{static get['requires'](){return[i,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x26cd8f){super(_0x26cd8f),_0x26cd8f['config']['define']('uploadcare.uploader.sourceList',[o['Local'],o['URL']]),_0x5891b3['defineComponents'](_0x5891b3);}}class ta extends _0x1d48b0{constructor(_0x1c2cf4){super(_0x1c2cf4);const t=_0x1c2cf4['t'],_0x20385d=this['bindTemplate'],_0x5793c2=new _0x3eb641();_0x5793c2['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':[_0x5793c2,{'text':_0x20385d['to']('imageUploadProgress',_0x222cb0=>t('Loading\x20image...')+'\x20('+(_0x222cb0||0x0)+'%)')}]},{'tag':'div','attributes':{'class':['ck-uploadcare-form__skeleton']},'children':[{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'}]},{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'}]}]}]});}}class rt extends _0x1d48b0{constructor(_0x382635){super(_0x382635);const t=_0x382635['t'];this['set']('errorType',null);const _0x56023e=new _0x4a4b18(_0x382635);_0x56023e['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x56023e['withText']=!0x0,_0x56023e['class']='ck-button-action',_0x56023e['on']('execute',()=>{this['fire']('retry');}),_0x56023e['bind']('isVisible')['to'](this,'errorType',_0x536655=>'NotFound'!==_0x536655);const _0x3e2cf0=new at();_0x3e2cf0['content']=et,_0x3e2cf0['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x3dba2b=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':[_0x3e2cf0,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x3dba2b['to']('errorType',_0x2f0416=>t('NotFound'!==_0x2f0416?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x56023e]},{'tag':'div','attributes':{'class':['ck-uploadcare-form__skeleton']},'children':[{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'}]},{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'}]}]}]});}}class tt extends _0x1d48b0{constructor(_0x350a2b,_0x3ffb26){super(_0x350a2b);const _0x35546d=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x3ffb26,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x35546d['to']('imageSrc')}});}}class Z extends q{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0xd5fb91,_0x4bf30a,_0x31e423){super(_0xd5fb91),this['_items']=this['createCollection'](),this['_loadingView']=new ta(_0xd5fb91),this['_errorView']=new rt(_0xd5fb91),this['_editingView']=new tt(_0xd5fb91,_0x31e423),this['_focusableView']=new _0x1d48b0(_0xd5fb91),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x4bf30a),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'],_0x263c79=>{this['_addUploadcareImageEditorListeners'](_0x263c79);});}),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'](_0x249644,_0x3b4ff7){const _0x26cd55='uc-cloud-image-editor',_0x500905=_0x249644['querySelector'](_0x26cd55);if(_0x500905)return _0x3b4ff7(_0x500905);const _0x3f3550=new MutationObserver(_0x3de1d6=>{const _0x1418b2=_0x3de1d6['filter'](_0x21f789=>_0x21f789['target']===_0x249644&&_0x21f789['addedNodes']['length']>0x0&&_0x21f789['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x26cd55);_0x1418b2['length']&&(_0x3f3550['disconnect'](),_0x3b4ff7(_0x1418b2[0x0]['addedNodes'][0x0]));});_0x3f3550['observe'](_0x249644,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x433f5b){_0x433f5b['addEventListener']('apply',_0x18f2ed=>{this['fire']('apply',{'imageSrc':_0x18f2ed['detail']['cdnUrl']});}),_0x433f5b['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class z extends/* #__PURE__ -- @preserve */
25
- _0x2d6bf3(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0xc31d5,_0x2f6a39,_0x2ec54d){super(),this['_editor']=_0xc31d5,this['_dialog']=_0x2f6a39,this['_imageElement']=_0x2ec54d,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 _0x3ed53a=this['_imageElement'],_0x216848=_0x3ed53a['getAttribute']('uploadcareImageId'),_0x54e2ec=_0x3ed53a['getAttribute']('src');if(_0x216848)await this['_loadImageInfo'](_0x216848,_0x54e2ec);else{if(this['_imageCache']['has'](_0x54e2ec)){const _0xad162b=this['_imageCache']['get'](_0x54e2ec);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0xad162b['url'],this['imageDimension']=_0xad162b['dimension'],this['imageId']=_0xad162b['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x5e06c7}=this['_editor'],t=_0x5e06c7['t'],_0x3d1721=new Z(_0x5e06c7,this['imageStatus'],this['_attributes']);_0x3d1721['bind']('status')['to'](this,'imageStatus'),_0x3d1721['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x3d1721['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x3d1721['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x3d1721,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x3e460a,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x3d1721,'position':_0x4cd24c['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x3d1721['focus']();},'onHide':()=>{_0x3d1721['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x962372=>!F(_0x962372,_0x3d1721['element'])}});}['_loadImageInfo'](_0x4eafe7,_0x2974b5){return C['getInfo'](_0x4eafe7,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey')})['then'](_0xf64f1e=>{const {width:_0xde1aef,height:_0x4778a0}=_0xf64f1e['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x2974b5,this['imageDimension']={'width':_0xde1aef,'height':_0x4778a0},this['imageId']=_0x4eafe7;})['catch'](_0x4c8ced=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x4c8ced['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x1c068a,_0x410a07){return this['_getImageAsFile'](_0x1c068a)['then'](_0xf2fa5f=>C['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'signal':_0x410a07['signal'],'file':_0xf2fa5f,'onProgress':_0x399181=>{_0x399181&&_0x399181['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x399181['value']));}}))['then'](_0x4ad7d3=>{const {width:_0x5af1fe,height:_0x478c67}=_0x4ad7d3['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x4ad7d3['cdnUrl'],this['imageDimension']={'width':_0x5af1fe,'height':_0x478c67},this['imageId']=_0x4ad7d3['uuid'],this['imageUploadProgress']=null;const _0xf8daac=_0x1c068a['getAttribute']('src');this['_imageCache']['set'](_0xf8daac,{'id':_0x4ad7d3['uuid'],'url':_0x4ad7d3['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x32a48f=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x32a48f['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x42206a,_0x409d60){_0x42206a['on']('apply',(_0x1080fa,_0x5df0b9)=>{this['_replaceImage'](_0x409d60,_0x5df0b9['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x42206a['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x42206a['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x549d96,_0x5db13e,_0x394ed0){const _0x314501=this['_editor'],{width:_0x11b41f,height:_0x400f39}=A(_0x5db13e,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x3fad22,imageSources:_0x238c3e}=E(_0x5db13e,_0x11b41f);_0x314501['model']['change'](_0x5a4c1b=>{if('$graveyard'===_0x549d96['root']['rootName']){_0x314501['execute']('insertImage',{'imageType':_0x549d96['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x549d96['getAttributes']()),'uploadcareImageId':_0x394ed0,'src':_0x3fad22,'sources':_0x238c3e,'width':_0x11b41f,'height':_0x400f39}});const _0x25efa6=_0x549d96['getChildren']();_0x549d96=_0x314501['model']['document']['selection']['getSelectedElement']();for(const _0x7cf3c5 of _0x25efa6)_0x5a4c1b['append'](_0x5a4c1b['cloneElement'](_0x7cf3c5),_0x549d96);}else _0x5a4c1b['setSelection'](_0x549d96,'on'),_0x314501['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x549d96['getAttributes']()),'uploadcareImageId':_0x394ed0,'src':_0x3fad22,'sources':_0x238c3e,'width':_0x11b41f,'height':_0x400f39},_0x549d96);_0x5a4c1b['setSelection'](_0x549d96,'on');});}async['_getImageAsFile'](_0x1cef73){const _0x481c34=_0x5edf6e['window'],_0x3a4888=_0x5edf6e['document']['location']['href'],_0x4f4fd8=new _0x481c34['URL'](_0x1cef73['getAttribute']('src'),_0x3a4888);if('data:'===_0x4f4fd8['protocol']){const _0x2981ee=_0x4f4fd8['href']['split'](','),_0x5e95c3=_0x2981ee[0x0]['match'](/:(.*?);/)[0x1],_0x2980a8=_0x5e95c3['split']('/')[0x1],_0x5b01c5=_0x481c34['atob'](_0x2981ee[_0x2981ee['length']-0x1]);let _0x49344d=_0x5b01c5['length'];const _0x54db7b=new _0x481c34['Uint8Array'](_0x49344d);for(;_0x49344d--;)_0x54db7b[_0x49344d]=_0x5b01c5['charCodeAt'](_0x49344d);return new _0x481c34['File']([_0x54db7b],'image.'+_0x2980a8,{'type':_0x5e95c3});}const _0x53ac81=_0x4f4fd8['href']['split']('/'),_0xc9add0=_0x53ac81[_0x53ac81['length']-0x1],_0x170f59=_0xc9add0['split']('.')[0x1];return _0x481c34['fetch'](_0x4f4fd8['href'])['then'](_0x4c9510=>_0x4c9510['clone']()['blob']())['then'](_0x38adbc=>new _0x481c34['File']([_0x38adbc],_0xc9add0,{'type':'image/'+_0x170f59}));}}class J extends _0x2b86bf{['imageEditController'];static get['requires'](){return[_0x19a61e];}['_isEditable'];constructor(_0x1dd9cb){super(_0x1dd9cb),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x4016b5){const _0x25ca78=V(_0x4016b5);return _0x4bb77a=>!(!_0x4bb77a||!_0x4bb77a['is']('element','imageBlock')&&!_0x4bb77a['is']('element','imageInline'))&&(!!_0x4bb77a['hasAttribute']('uploadcareImageId')||!!_0x4bb77a['hasAttribute']('src')&&_0x25ca78(_0x4bb77a['getAttribute']('src')));}(_0x1dd9cb['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x3c9caf=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x3c9caf);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x3ba7a=this['editor']['model']['document']['selection']['getSelectedElement']();_0x3ba7a&&(_0x3ba7a['is']('element','imageBlock')||_0x3ba7a['is']('element','imageInline'))&&(this['imageEditController']=new z(this['editor'],this['editor']['plugins']['get'](_0x19a61e),_0x3ba7a),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class O extends _0x2b86bf{['refresh'](){const _0x245d8e=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x245d8e&&(_0x245d8e['is']('element','imageBlock')||_0x245d8e['is']('element','imageInline')));}['execute'](_0x198e11){const _0x51524e=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x386798=>{_0x386798['setAttributes'](_0x198e11,_0x51524e),_0x386798['removeAttribute']('srcset',_0x51524e),_0x386798['removeAttribute']('sizes',_0x51524e);});}}class g extends _0x50ec4a{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[i,_0x493ea4,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x1a3dd8}=this;_0x1a3dd8['commands']['add']('uploadcareImageEdit',new J(_0x1a3dd8)),_0x1a3dd8['commands']['add']('uploadcareImageReplace',new O(_0x1a3dd8));}}class j extends _0x50ec4a{['_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 _0x29b2d7=this['editor'];_0x29b2d7['ui']['componentFactory']['add']('uploadcareImageEdit',_0x3ab014=>{const _0x5465d5=_0x29b2d7['commands']['get']('uploadcareImageEdit'),_0x3b1f72=new _0x4a4b18(_0x3ab014),t=_0x3ab014['t'];return _0x3b1f72['set']({'icon':_0x3e460a,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x3b1f72['bind']('isEnabled')['to'](_0x5465d5),_0x3b1f72['bind']('isOn')['to'](_0x5465d5,'isActive'),this['listenTo'](_0x3b1f72,'execute',()=>{_0x29b2d7['execute']('uploadcareImageEdit'),_0x29b2d7['editing']['view']['focus']();}),_0x3b1f72;}),this['_initConfig']();}['_initConfig'](){const _0x4c7670=_0x873785(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x4c7670),this['listenTo'](this['editor'],'destroy',()=>{_0x4c7670['remove']();});}}class P extends _0x50ec4a{static get['pluginName'](){return'UploadcareImageEdit';}static get['requires'](){return[g,j];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{u as Uploadcare,i as UploadcareEditing,P as UploadcareImageEdit,g as UploadcareImageEditEditing,j as UploadcareImageEditUI,e as UploadcareUI};
23
+ import{Plugin as _0x46c2fe,Command as _0x39d543}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x557665,IconGooglePhotos as _0x57b5ee,IconGoogleDrive as _0x5cac58,IconFacebook as _0x350405,IconDropbox as _0x1cb802,IconUploadcareLink as _0x120b42,IconUploadcareImageUpload as _0x42cdae,IconError as et,IconUploadcareImageEdit as _0x318c1b}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0xa6b267,MenuBarMenuListItemButtonView as _0xd527c9,View as _0x10bc53,FocusCycler as _0x18cfa4,Dialog as _0x324185,DialogViewPosition as _0xc3e8b,SpinnerView as _0x541b8e,IconView as at,Notification as _0xa72122}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0xc5265,DomEmitterMixin as _0x3bc6f8,global as _0x459f38,getAncestors as _0xae05e6,ObservableMixin as _0x345e3f,createElement as _0x4bcdac,uid as _0x46df2a}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x331ab8}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x5cda30,info as _0x1430fa}from'@uploadcare/upload-client';import*as _0x41031f from'@uploadcare/file-uploader';var o=function(_0x2f5846){return _0x2f5846['Local']='local',_0x2f5846['URL']='url',_0x2f5846['Dropbox']='dropbox',_0x2f5846['GDrive']='gdrive',_0x2f5846['Facebook']='facebook',_0x2f5846['GPhotos']='gphotos',_0x2f5846['OneDrive']='onedrive',_0x2f5846;}({});function _(_0x4b0076,_0x41e40a,_0x34e2b7){const t=_0x4b0076['t'],_0x3bedcf=_0x4b0076['t'];switch(_0x41e40a){case o['Local']:return{'text':_0x3bedcf('Insert'===_0x34e2b7?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x3bedcf('From\x20computer')};case o['URL']:return{'text':'Insert'===_0x34e2b7?_0x3bedcf('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x3bedcf('Via\x20URL')};case o['Dropbox']:return{'text':t('Insert'===_0x34e2b7?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case o['Facebook']:return{'text':t('Insert'===_0x34e2b7?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case o['GDrive']:return{'text':t('Insert'===_0x34e2b7?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case o['GPhotos']:return{'text':t('Insert'===_0x34e2b7?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case o['OneDrive']:return{'text':t('Insert'===_0x34e2b7?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x41e40a;}}class e extends _0x46c2fe{['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 _0x35b942=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x3b149a;for(const _0x126d7b in _0x35b942){const _0x1fc1e3=_0x126d7b,_0x2a2610=_0x35b942[_0x1fc1e3];if('uploadcareLicenseKeyValid'==_0x2a2610||'uploadcareLicenseKeyInvalid'==_0x2a2610||'uploadcareLicenseKeyExpired'==_0x2a2610||'uploadcareLicenseKeyDomainLimit'==_0x2a2610||'uploadcareLicenseKeyNotAllowed'==_0x2a2610||'uploadcareLicenseKeyEvaluationLimit'==_0x2a2610||'uploadcareLicenseKeyTrialLimit'==_0x2a2610||'uploadcareLicenseKeyUsageLimit'==_0x2a2610){delete _0x35b942[_0x1fc1e3],_0x3b149a=_0x2a2610,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x3b149a&&_0x35b942['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x3b149a&&_0x35b942['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x3b149a&&_0x35b942['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x3b149a&&_0x35b942['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x3b149a&&_0x35b942['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyTrialLimit'==_0x3b149a&&_0x35b942['_showLicenseError']('trialLimit'),'uploadcareLicenseKeyUsageLimit'==_0x3b149a&&_0x35b942['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x442332}=this,_0x5bb301=_0x442332['commands']['get']('uploadcare');if(!_0x5bb301)return;const _0x3d866a=this['_normalizeConfigSourceList'](_0x442332['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x36c544,_0x4af45e)=>{const _0x40c017=this['_getIntegrationKey'](_0x4af45e['type']);return _0x36c544[_0x40c017]||(_0x36c544[_0x40c017]=[]),_0x36c544[_0x40c017]['push'](_0x4af45e),_0x36c544;},{});_0x442332['plugins']['has']('ImageInsertUI')&&_0x442332['commands']['get']('uploadcare')&&Object['entries'](_0x3d866a)['forEach'](([_0x42ecec,_0x52a35e])=>{_0x442332['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x42ecec,'observable':()=>_0x5bb301,'buttonViewCreator':()=>this['_createToolbarButton'](_0x52a35e),'formViewCreator':()=>this['_createDropdownButtons'](_0x52a35e),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x52a35e),'override':'assetManager'!==_0x42ecec});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x5ed3f2){const {locale:_0x58c3e4}=this['editor'];return _0x5ed3f2['map'](_0x10ae21=>{const _0x3f3b19=_(_0x58c3e4,_0x10ae21,'Insert');switch(_0x10ae21){case o['Local']:return{'icon':_0x42cdae,'type':o['Local'],..._0x3f3b19};case o['URL']:return{'icon':_0x120b42,'type':o['URL'],..._0x3f3b19};case o['Dropbox']:return{'icon':_0x1cb802,'type':o['Dropbox'],..._0x3f3b19};case o['Facebook']:return{'icon':_0x350405,'type':o['Facebook'],..._0x3f3b19};case o['GDrive']:return{'icon':_0x5cac58,'type':o['GDrive'],..._0x3f3b19};case o['GPhotos']:return{'icon':_0x57b5ee,'type':o['GPhotos'],..._0x3f3b19};case o['OneDrive']:return{'icon':_0x557665,'type':o['OneDrive'],..._0x3f3b19};}});}['_getIntegrationKey'](_0x3ec6cd){switch(_0x3ec6cd){case o['Local']:return'upload';case o['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x5d6546,_0x5762a4){const _0x21216c=this['editor'],_0x4735d9=new _0x5d6546(_0x21216c['locale']),_0x503366=_0x21216c['commands']['get']('uploadcare');return _0x4735d9['bind']('isEnabled')['to'](_0x503366),_0x4735d9['on']('execute',()=>{_0x503366['execute'](_0x5762a4);}),_0x4735d9;}['_createToolbarButton'](_0x379241){const {locale:_0x4cd384}=this['editor'],_0x44bde5=this['editor']['plugins']['get']('ImageInsertUI'),_0x9278c0=_0x379241[0x0],_0x423615=this['_createButton'](_0xa6b267,_0x9278c0['type']);return _0x423615['icon']=_0x9278c0['icon'],_0x423615['bind']('label')['to'](_0x44bde5,'isImageSelected',_0x2d5a47=>_(_0x4cd384,_0x9278c0['type'],_0x2d5a47?'Replace':'Insert')['text']),_0x423615['tooltip']=!0x0,_0x423615;}['_createDropdownButtons'](_0x3b46ae){const {locale:_0x217d9f}=this['editor'],_0x58e455=this['editor']['plugins']['get']('ImageInsertUI');return _0x3b46ae['map'](_0x4205e8=>{const _0x4027f4=this['_createButton'](_0xa6b267,_0x4205e8['type']);return _0x4027f4['withText']=!0x0,_0x4027f4['icon']=_0x4205e8['icon'],_0x4027f4['bind']('label')['to'](_0x58e455,'isImageSelected',_0x3ef661=>_(_0x217d9f,_0x4205e8['type'],_0x3ef661?'Replace':'Insert')['text']),_0x4027f4;});}['_createMenuBarButtons'](_0x17bca5){return _0x17bca5['map'](_0x566dab=>{const _0xccd85a=this['_createButton'](_0xd527c9,_0x566dab['type']);return _0xccd85a['icon']=_0x566dab['icon'],_0xccd85a['label']=_0x566dab['shortText'],_0xccd85a;});}}class q extends _0x10bc53{['focusTracker'];['focusCycler'];constructor(_0x22efbe){super(_0x22efbe),this['focusTracker']=new _0xc5265(),this['focusCycler']=new _0x18cfa4({'focusables':this['createCollection'](),'focusTracker':this['focusTracker']});}['getFocusableElement'](){return{'tag':'div','attributes':{'aria-hidden':'true','tabindex':'0'},'on':{'focus':this['bindTemplate']['to'](()=>{this['focusCycler']['fire']('forwardCycle');})}};}}class S extends q{constructor(_0x5030c7){super(_0x5030c7),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all-excluded','ck-uploadcare-form'],'tabindex':'-1'},'children':[{'tag':'uc-file-uploader-inline','attributes':{'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'uploader'}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}}function E(_0x2797c7,_0x2e3090){const _0x3efbee=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x4858d9=>_0x4858d9<=_0x2e3090)['map'](_0x413a97=>_0x2797c7['replace'](/\/$/,'')+'/-/resize/'+_0x413a97+'x/\x20'+_0x413a97+'w');return{'imageFallbackUrl':_0x2797c7,'imageSources':[{'srcset':_0x3efbee['join'](',\x20'),'sizes':'(max-width:\x20'+_0x2e3090+'px)\x20100vw,\x20'+_0x2e3090+'px','type':'image/webp'}]};}function A(_0xf1483,_0x414a27,_0x44ac62){const _0x52fc7e=_0xf1483['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x52fc7e?parseInt(_0x52fc7e[0x1],0xa):_0x414a27,'height':_0x52fc7e?parseInt(_0x52fc7e[0x2],0xa):_0x44ac62};}function m(_0x1bed15,_0x6853c5){const _0x37f036=Object['create'](_0x3bc6f8),_0x100218=_0x1bed15['plugins']['get']('ImageUtils'),_0x3d4fb8=_0x1bed15['editing']['mapper']['toViewElement'](_0x6853c5),_0x521ec7=_0x100218['findViewImgElement'](_0x3d4fb8),_0x5782be=_0x1bed15['editing']['view']['domConverter']['viewToDom'](_0x521ec7),_0x29a6f9=_0x6853c5['getAttribute']('width'),_0x16ee1a=_0x6853c5['getAttribute']('height'),_0x4f3447='image-processing';_0x1bed15['editing']['view']['change'](_0x3e1ef7=>{_0x3e1ef7['addClass'](_0x4f3447,_0x3d4fb8),_0x3e1ef7['setStyle']('aspect-ratio',_0x29a6f9+'/'+_0x16ee1a,_0x521ec7);}),_0x37f036['listenTo'](_0x5782be,'load',()=>{_0x37f036['stopListening'](_0x5782be,'load'),_0x1bed15['editing']['view']['change'](_0x1f4bd8=>{_0x1f4bd8['removeClass'](_0x4f3447,_0x3d4fb8),_0x1f4bd8['removeStyle']('aspect-ratio',_0x521ec7);});});}function V(_0x1823b7){if(Array['isArray'](_0x1823b7)){const _0x1a8f76=_0x1823b7['map'](V);return _0x28d9ad=>_0x1a8f76['some'](_0x1786e2=>_0x1786e2(_0x28d9ad));}if('origin'==_0x1823b7){const _0x175b3c=_0x459f38['window']['location']['origin'];return _0xfe7eaf=>new URL(_0xfe7eaf,_0x459f38['document']['baseURI'])['origin']==_0x175b3c;}return'function'==typeof _0x1823b7?_0x1823b7:_0x1823b7 instanceof RegExp?_0x45a95c=>!(!_0x45a95c['match'](_0x1823b7)&&!_0x45a95c['replace'](/^https?:\/\//,'')['match'](_0x1823b7)):()=>!0x1;}function F(_0x2067bc,_0x2d28cf){return _0xae05e6(_0x2067bc['target'])['includes'](_0x2d28cf);}class l extends/* #__PURE__ -- @preserve */
24
+ _0x345e3f(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x3e259f,_0x5f599a,_0x1b72c7){super(),this['_editor']=_0x3e259f,this['_editing']=_0x5f599a,this['_dialog']=_0x3e259f['plugins']['get'](_0x324185),this['_api']=_0x5f599a['ctxElement']['getAPI'](),this['_type']=_0x1b72c7,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:_0x24e54a,model:_0x2ae863}=this['_editor'],_0x5d0477=_0x2ae863['document']['selection']['getSelectedElement'](),_0x552afc=_0x5d0477&&(_0x5d0477['is']('element','imageBlock')||_0x5d0477['is']('element','imageInline'));this['_formView']=new S(_0x24e54a),this['_dialog']['show']({'id':'uploadCare','icon':_0x42cdae,'title':_(_0x24e54a,this['_type'],_0x552afc?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0xc3e8b['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x49c607=>!F(_0x49c607,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x1fa3d4}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x14e50c=>{const _0x159a70=_0x1fa3d4['length'];for(const _0x47c71a of _0x1fa3d4){const _0x398bdd=_0x47c71a===_0x1fa3d4[_0x159a70-0x1],{cdnUrl:_0x3ec0bc,fileInfo:_0x1e934b}=_0x47c71a;if(!_0x3ec0bc||!_0x1e934b)continue;const {width:_0x4d13b9,height:_0x4511a2}=_0x1e934b['imageInfo'],_0x1f4981=A(_0x3ec0bc,_0x4d13b9,_0x4511a2),_0x19427f=E(_0x3ec0bc,_0x1f4981['width']),_0x32878c={'id':_0x1e934b['uuid'],'type':'image','attributes':{'imageDimension':_0x1f4981,..._0x19427f}};this['_insertAsset'](_0x32878c,_0x398bdd,_0x14e50c);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x5292be=>{'idle'===_0x5292be['detail']['status']&&!_0x5292be['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===o['Local']?this['_api']['setCurrentActivity'](o['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x4d5030,_0x5d745d,_0x1761f5){const _0x375970=this['_editor']['model']['document']['selection'],_0x43e2e9=_0x375970['getSelectedElement'](),_0x397e32=!(!_0x43e2e9||!_0x43e2e9['is']('element','imageInline'));_0x1761f5['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x4d5030,_0x397e32),_0x5d745d||_0x1761f5['setSelection'](_0x375970['getLastPosition']());}['_insertImage'](_0x1cf11e,_0xea6d5f){const _0x337f64=this['_editor'],{imageDimension:_0x6860a8,imageFallbackUrl:_0x2db21c,imageSources:_0x9e8680}=_0x1cf11e['attributes'];_0x337f64['execute']('insertImage',{'imageType':_0xea6d5f?'imageInline':null,'source':{'uploadcareImageId':_0x1cf11e['id'],'src':_0x2db21c,'sources':_0x9e8680,..._0x6860a8}});}}class n extends _0x39d543{['_editing'];['_controller']=null;static get['requires'](){return[_0x324185,i];}constructor(_0x978131){super(_0x978131),this['_editing']=_0x978131['plugins']['get'](i);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x29efcc){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new l(this['editor'],this['_editing'],_0x29efcc);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class C{static['upload']({file:_0x1634c7,publicKey:_0xa67c83,signal:_0xdf06dd,onProgress:_0x40c41c}){return _0x5cda30(_0x1634c7,{'publicKey':_0xa67c83,'store':'auto','signal':_0xdf06dd,'onProgress':_0x40c41c});}static['getInfo'](_0x32f4f5,_0xd82bc3){return _0x1430fa(_0x32f4f5,_0xd82bc3);}}class p extends _0x46c2fe{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x331ab8,i];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x242bc6=this['editor'];if(!!!_0x242bc6['config']['get']('uploadcare'))return;_0x242bc6['plugins']['get'](_0x331ab8)['createUploadAdapter']=_0x2a9df5=>new x(_0x2a9df5,_0x242bc6),_0x242bc6['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x36cfbd,{imageElement:_0x27715e,data:_0x3f026a})=>{_0x242bc6['model']['change'](_0xc1cbff=>{_0xc1cbff['setAttribute']('uploadcareImageId',_0x3f026a['uploadcareImageId'],_0x27715e);});});}}class x{['loader'];['editor'];['controller'];constructor(_0x5a2f2c,_0x246efe){this['loader']=_0x5a2f2c,this['editor']=_0x246efe,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0xb8bd78=this['editor']['config']['get']('uploadcare.pubkey'),_0x4e142e=await this['loader']['file'];return C['upload']({'file':_0x4e142e,'publicKey':_0xb8bd78,'signal':this['controller']['signal'],'onProgress':_0xa1263a=>{_0xa1263a&&_0xa1263a['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0xa1263a['value']);}})['then'](async _0x11d247=>{const {imageFallbackUrl:_0x10924b,imageSources:_0x15cac1}=E(_0x11d247['cdnUrl'],_0x11d247['imageInfo']['width']);return{'uploadcareImageId':_0x11d247['uuid'],'default':_0x10924b,'sources':_0x15cac1};})['catch'](()=>{const _0x165062=t('Cannot\x20upload\x20file:')+('\x20'+_0x4e142e['name']+'.');return Promise['reject'](_0x165062);});}['abort'](){this['controller']['abort']();}}class i extends _0x46c2fe{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',p,_0x324185];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}['init'](){const _0x1505c7=this['editor'];_0x1505c7['commands']['add']('uploadcare',new n(_0x1505c7));}['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 _0x1cbc3c=_0x459f38['document']['querySelector']('input[uploadcare-file-input]');_0x1cbc3c&&_0x1cbc3c['remove']();}),async function(_0x1827cd){const _0x43839d=_0x5d7c28([0x35,0x57,0x76,0x6b,0x6d,0x6a,0x4a,0x4c,0x65,0x69,0x73,0x54,0x55,0x61,0x7a,0x51,0x37,0x62,0x48,0x64,0x38,0x52,0x53,0x41,0x47,0x66,0x49,0x79,0x4b,0x4d,0x34,0x77,0x43,0x75,0x56,0x58,0x63,0x42,0x33,0x72,0x70,0x4f,0x68,0x50,0x59,0x31,0x32,0x78,0x46,0x71,0x6c,0x74,0x39,0x5a,0x45,0x6e,0x67,0x44,0x6f,0x4e,0x30,0x36]),_0xe51ffa=0x5032bd09,_0x1169ef=0x5035da49^_0xe51ffa,_0x55172c=window[_0x5d7c28([0x44,0x61,0x74,0x65])][_0x5d7c28([0x6e,0x6f,0x77])](),_0x4f29c9=_0x1827cd[_0x5d7c28([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x3ad288=new window[(_0x5d7c28([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x26cfba=>{_0x4f29c9[_0x5d7c28([0x6f,0x6e,0x63,0x65])](_0x5d7c28([0x72,0x65,0x61,0x64,0x79]),_0x26cfba);}),_0x4745c2={[_0x5d7c28([0x6b,0x74,0x79])]:_0x5d7c28([0x45,0x43]),[_0x5d7c28([0x75,0x73,0x65])]:_0x5d7c28([0x73,0x69,0x67]),[_0x5d7c28([0x63,0x72,0x76])]:_0x5d7c28([0x50,0x2d,0x32,0x35,0x36]),[_0x5d7c28([0x78])]:_0x5d7c28([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]),[_0x5d7c28([0x79])]:_0x5d7c28([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]),[_0x5d7c28([0x61,0x6c,0x67])]:_0x5d7c28([0x45,0x53,0x32,0x35,0x36])},_0x51cf02=_0x4f29c9[_0x5d7c28([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x5d7c28([0x67,0x65,0x74])](_0x5d7c28([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x1c1a7a(){let _0x43ca3c,_0x108d11=null,_0x4f179d=null;try{if(_0x51cf02==_0x5d7c28([0x47,0x50,0x4c]))return _0x5d7c28([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x43ca3c=_0x5779f8(),!_0x43ca3c)return _0x5d7c28([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x43ca3c[_0x5d7c28([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x4f179d=_0x12bc96(_0x43ca3c[_0x5d7c28([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x43ca3c[_0x5d7c28([0x6a,0x74,0x69])])),await _0x32144b()?_0x550e17()?_0x43052c()?_0x5d7c28([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x35d7c8()?(_0x43ca3c[_0x5d7c28([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x5d7c28([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x108d11=_0x5698fd(_0x5d7c28([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x43ca3c[_0x5d7c28([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x5d7c28([0x74,0x72,0x69,0x61,0x6c])&&(_0x108d11=_0x5698fd(_0x5d7c28([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0xc432bf()):_0x5d7c28([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x5d7c28([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x5d7c28([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x3e1e56){return _0x5d7c28([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x43052c(){const _0x196e4a=[_0x5d7c28([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x5d7c28([0x74,0x72,0x69,0x61,0x6c])][_0x5d7c28([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x43ca3c[_0x5d7c28([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x55172c/0x3e8:0xe10*_0x1169ef;return _0x43ca3c[_0x5d7c28([0x65,0x78,0x70])]<_0x196e4a;}function _0x550e17(){const _0x51e289=_0x43ca3c[_0x5d7c28([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x51e289&&(!!_0x51e289[_0x5d7c28([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5d7c28([0x2a]))||!!_0x51e289[_0x5d7c28([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5d7c28([0x55,0x50,0x4c,0x43])));}function _0x35d7c8(){const _0x5343b7=_0x43ca3c[_0x5d7c28([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x5343b7||0x0==_0x5343b7[_0x5d7c28([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x2e07b7}=new URL(window[_0x5d7c28([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x5343b7[_0x5d7c28([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2e07b7))return!0x0;const _0x483e5b=_0x2e07b7[_0x5d7c28([0x73,0x70,0x6c,0x69,0x74])](_0x5d7c28([0x2e]));return _0x5343b7[_0x5d7c28([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x5cbee0=>_0x5cbee0[_0x5d7c28([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5d7c28([0x2a])))[_0x5d7c28([0x6d,0x61,0x70])](_0x19982c=>_0x19982c[_0x5d7c28([0x73,0x70,0x6c,0x69,0x74])](_0x5d7c28([0x2e])))[_0x5d7c28([0x73,0x6f,0x6d,0x65])](_0x35eb0=>_0x483e5b[_0x5d7c28([0x65,0x76,0x65,0x72,0x79])]((_0x1a05f9,_0x4269e2)=>_0x35eb0[_0x4269e2]===_0x1a05f9||_0x35eb0[_0x4269e2]===_0x5d7c28([0x2a])));}function _0xc432bf(){return _0x108d11&&_0x4f179d?new window[(_0x5d7c28([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x310107,_0x1bddb4)=>{_0x108d11[_0x5d7c28([0x74,0x68,0x65,0x6e])](_0x310107,_0x1bddb4),_0x4f179d[_0x5d7c28([0x74,0x68,0x65,0x6e])](_0x463db0=>{_0x463db0!=_0x5d7c28([0x56,0x61,0x6c,0x69,0x64])&&_0x310107(_0x463db0);},_0x1bddb4);}):_0x108d11||_0x4f179d||_0x5d7c28([0x56,0x61,0x6c,0x69,0x64]);}}function _0x12bc96(_0xa70bc,_0x1fc3c0){return new window[(_0x5d7c28([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2a9301=>{if(_0x5c02c4())return _0x2a9301(_0x5d7c28([0x56,0x61,0x6c,0x69,0x64]));_0x277cca(),_0x4f29c9[_0x5d7c28([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x5d7c28([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x351346=!0x1;const _0x4aa89b=_0x46df2a();function _0x51cbb1(_0x3be341){return!!_0x3be341&&(typeof _0x3be341===_0x5d7c28([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x3be341===_0x5d7c28([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x3be341[_0x5d7c28([0x74,0x68,0x65,0x6e])]===_0x5d7c28([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x3be341[_0x5d7c28([0x63,0x61,0x74,0x63,0x68])]===_0x5d7c28([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x4db7c7(_0x3466e6){_0x2b123e(_0x3466e6)[_0x5d7c28([0x74,0x68,0x65,0x6e])](_0x1488e9=>{if(!_0x1488e9||_0x1488e9[_0x5d7c28([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x5d7c28([0x6f,0x6b]))return _0x5d7c28([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x1dbcfd(_0x2ab9e1(_0x4aa89b+_0x1fc3c0))!=_0x1488e9[_0x5d7c28([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x5d7c28([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x5d7c28([0x56,0x61,0x6c,0x69,0x64]);})[_0x5d7c28([0x74,0x68,0x65,0x6e])](_0x56850d=>(_0x479972(),_0x56850d),()=>{const _0x31cc9e=_0x41e7a8();return null==_0x31cc9e?(_0x479972(),_0x5d7c28([0x56,0x61,0x6c,0x69,0x64])):_0x5d7c28(_0x55172c-_0x31cc9e>(0x743e3909^_0xe51ffa)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x5d7c28([0x74,0x68,0x65,0x6e])](_0x2a9301)[_0x5d7c28([0x63,0x61,0x74,0x63,0x68])](()=>{_0x2a9301(_0x5d7c28([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x12e7ad=0x50045389^_0xe51ffa;function _0x479972(){const _0x49558d=_0x5d7c28([0x6c,0x6c,0x63,0x74,0x2d])+_0x1dbcfd(_0x2ab9e1(_0xa70bc)),_0x27b6d5=_0x95421d(_0x1dbcfd(window[_0x5d7c28([0x4d,0x61,0x74,0x68])][_0x5d7c28([0x63,0x65,0x69,0x6c])](_0x55172c/_0x12e7ad)));window[_0x5d7c28([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x5d7c28([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x49558d,_0x27b6d5);}function _0x41e7a8(){const _0x58c44b=_0x5d7c28([0x6c,0x6c,0x63,0x74,0x2d])+_0x1dbcfd(_0x2ab9e1(_0xa70bc)),_0x56e735=window[_0x5d7c28([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x5d7c28([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x58c44b);return _0x56e735?window[_0x5d7c28([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x95421d(_0x56e735),0x10)*_0x12e7ad:null;}function _0x2b123e(_0x3f9fb7){return new window[(_0x5d7c28([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1257b8,_0x962af5)=>{_0x3f9fb7[_0x5d7c28([0x74,0x68,0x65,0x6e])](_0x1257b8,_0x962af5),window[_0x5d7c28([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x962af5,0x503369c9^_0xe51ffa);});}}_0x4f29c9[_0x5d7c28([0x6f,0x6e])](_0x5d7c28([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x41f473,_0x430ffe)=>{if(_0x430ffe[0x0]!=_0xa70bc)return _0x2a9301(_0x5d7c28([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x430ffe[0x1]={..._0x430ffe[0x1],[_0x5d7c28([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x4aa89b};},{[_0x5d7c28([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x5d7c28([0x68,0x69,0x67,0x68])}),_0x4f29c9[_0x5d7c28([0x6f,0x6e])](_0x5d7c28([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x58e8a7=>{_0x51cbb1(_0x58e8a7[_0x5d7c28([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x351346=!0x0,_0x4db7c7(_0x58e8a7[_0x5d7c28([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x5d7c28([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x5d7c28([0x6c,0x6f,0x77])}),_0x3ad288[_0x5d7c28([0x74,0x68,0x65,0x6e])](()=>{_0x351346||_0x2a9301(_0x5d7c28([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x5c02c4(){return _0x4f29c9[_0x5d7c28([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5d7c28([0x76,0x69,0x65,0x77])][_0x5d7c28([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x5d7c28([0x61,0x75,0x74,0x6f]);}function _0x277cca(){_0x4f29c9[_0x5d7c28([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5d7c28([0x76,0x69,0x65,0x77])][_0x5d7c28([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x5d7c28([0x61,0x75,0x74,0x6f]);}}function _0x5698fd(_0x184bc6){const _0x292f31=[new window[(_0x5d7c28([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x173e3d=>setTimeout(_0x173e3d,0x503b83c5^_0xe51ffa)),_0x3ad288[_0x5d7c28([0x74,0x68,0x65,0x6e])](()=>new window[(_0x5d7c28([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2e227c=>{let _0x1bebec=0x0;_0x4f29c9[_0x5d7c28([0x6d,0x6f,0x64,0x65,0x6c])][_0x5d7c28([0x6f,0x6e])](_0x5d7c28([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x69fe10,_0x5120ab)=>{_0x5120ab[0x0][_0x5d7c28([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x1bebec++,_0x1bebec==(0x5032bcf1^_0xe51ffa)&&(_0x2e227c(),_0x69fe10[_0x5d7c28([0x6f,0x66,0x66])]());});}))];return window[_0x5d7c28([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x5d7c28([0x72,0x61,0x63,0x65])](_0x292f31)[_0x5d7c28([0x74,0x68,0x65,0x6e])](()=>_0x184bc6);}async function _0x4ac01d(){await _0x3ad288,_0x4f29c9[_0x5d7c28([0x6d,0x6f,0x64,0x65,0x6c])][_0x5d7c28([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x18f88c,_0x4f29c9[_0x5d7c28([0x6d,0x6f,0x64,0x65,0x6c])][_0x5d7c28([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x18f88c,_0x4f29c9[_0x5d7c28([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x5d7c28([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x4aafd1(_0x940c93){const _0x340491=_0x3c5d8f();_0x4f29c9[_0x340491]=_0x5d7c28([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x940c93,_0x940c93!=_0x5d7c28([0x56,0x61,0x6c,0x69,0x64])&&_0x4ac01d();}function _0x3c5d8f(){const _0x1d123c=window[_0x5d7c28([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x5d7c28([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x5d7c28([0x6e,0x6f,0x77])]())[_0x5d7c28([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x5d7c28([0x2e]),'');let _0x1d6260=_0x5d7c28([0x57]);for(let _0x2c52c6=0x0;_0x2c52c6<_0x1d123c[_0x5d7c28([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2c52c6+=0x2){let _0x68d331=window[_0x5d7c28([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1d123c[_0x5d7c28([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2c52c6,_0x2c52c6+0x2));_0x68d331>=_0x43839d[_0x5d7c28([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x68d331-=_0x43839d[_0x5d7c28([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x1d6260+=_0x43839d[_0x68d331];}return _0x1d6260;}function _0x5779f8(){const _0x369760=_0x51cf02[_0x5d7c28([0x73,0x70,0x6c,0x69,0x74])](_0x5d7c28([0x2e]));if(0x3!=_0x369760[_0x5d7c28([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x423a00(_0x369760[0x1]);function _0x423a00(_0x2bf8b5){const _0x5e23dc=_0x448016(_0x2bf8b5);return _0x5e23dc&&_0x1abe0b()?_0x5e23dc:null;function _0x1abe0b(){const _0x480645=_0x5e23dc[_0x5d7c28([0x6a,0x74,0x69])],_0x422d2f=window[_0x5d7c28([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x480645[_0x5d7c28([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x480645[_0x5d7c28([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0xa623f2={..._0x5e23dc,[_0x5d7c28([0x6a,0x74,0x69])]:_0x480645[_0x5d7c28([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x480645[_0x5d7c28([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0xa623f2[_0x5d7c28([0x76,0x63])],_0x2ab9e1(_0xa623f2)==_0x422d2f;}}}async function _0x32144b(){let _0x4baef0=!0x0;try{const _0x1cbd92=_0x51cf02[_0x5d7c28([0x73,0x70,0x6c,0x69,0x74])](_0x5d7c28([0x2e])),[_0x4827e3,_0x2534b0,_0x39806b]=_0x1cbd92;return _0x4840d3(_0x4827e3),await _0x638e2d(_0x4827e3,_0x2534b0,_0x39806b),_0x4baef0;}catch(_0x475cd1){return!0x1;}function _0x4840d3(_0x179983){const _0x13aaa3=_0x448016(_0x179983);_0x13aaa3&&_0x13aaa3[_0x5d7c28([0x61,0x6c,0x67])]==_0x5d7c28([0x45,0x53,0x32,0x35,0x36])||(_0x4baef0=!0x1);}async function _0x638e2d(_0x3ae664,_0x5f022d,_0x587882){const _0x43ed87=window[_0x5d7c28([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x5d7c28([0x66,0x72,0x6f,0x6d])](_0x23f084(_0x587882),_0x25158e=>_0x25158e[_0x5d7c28([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x1f6afb=new window[(_0x5d7c28([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x5d7c28([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x3ae664+_0x5d7c28([0x2e])+_0x5f022d),_0x42f1af=window[_0x5d7c28([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x5d7c28([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x42f1af)return;const _0x17996f=await _0x42f1af[_0x5d7c28([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x5d7c28([0x6a,0x77,0x6b]),_0x4745c2,{[_0x5d7c28([0x6e,0x61,0x6d,0x65])]:_0x5d7c28([0x45,0x43,0x44,0x53,0x41]),[_0x5d7c28([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x5d7c28([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x5d7c28([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x42f1af[_0x5d7c28([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x5d7c28([0x6e,0x61,0x6d,0x65])]:_0x5d7c28([0x45,0x43,0x44,0x53,0x41]),[_0x5d7c28([0x68,0x61,0x73,0x68])]:{[_0x5d7c28([0x6e,0x61,0x6d,0x65])]:_0x5d7c28([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x17996f,_0x43ed87,_0x1f6afb)||(_0x4baef0=!0x1);}}function _0x448016(_0x39770a){return _0x39770a[_0x5d7c28([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x5d7c28([0x65,0x79]))?JSON[_0x5d7c28([0x70,0x61,0x72,0x73,0x65])](_0x23f084(_0x39770a)):null;}function _0x23f084(_0x528244){return window[_0x5d7c28([0x61,0x74,0x6f,0x62])](_0x528244[_0x5d7c28([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x5d7c28([0x2b]))[_0x5d7c28([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x5d7c28([0x2f])));}function _0x2ab9e1(_0xd6c9e9){let _0x37b163=0x1505;function _0x5adf6a(_0x574f10){for(let _0xaf56f6=0x0;_0xaf56f6<_0x574f10[_0x5d7c28([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0xaf56f6++){const _0x3d87fd=_0x574f10[_0x5d7c28([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0xaf56f6);_0x37b163=(_0x37b163<<0x5)+_0x37b163+_0x3d87fd,_0x37b163&=_0x37b163;}}function _0x24331e(_0x502d2e){Array[_0x5d7c28([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x502d2e)?_0x502d2e[_0x5d7c28([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x24331e):_0x502d2e&&typeof _0x502d2e==_0x5d7c28([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x5d7c28([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x502d2e)[_0x5d7c28([0x73,0x6f,0x72,0x74])]()[_0x5d7c28([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x50e8f3,_0x2af627])=>{_0x5adf6a(_0x50e8f3),_0x24331e(_0x2af627);}):_0x5adf6a(window[_0x5d7c28([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x502d2e));}return _0x24331e(_0xd6c9e9),_0x37b163>>>0x0;}function _0x1dbcfd(_0x2b344b){return _0x2b344b[_0x5d7c28([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x5d7c28([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x5d7c28([0x30]));}function _0x95421d(_0x45b05f){return _0x45b05f[_0x5d7c28([0x73,0x70,0x6c,0x69,0x74])]('')[_0x5d7c28([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x5d7c28([0x6a,0x6f,0x69,0x6e])]('');}function _0x18f88c(){}function _0x5d7c28(_0x2d679d){return _0x2d679d['map'](_0x1a821c=>String['fromCharCode'](_0x1a821c))['join']('');}_0x4aafd1(await _0x1c1a7a());}(this);}['_initSchema'](){const _0x1d4ed9=this['editor']['model']['schema'];_0x1d4ed9['isRegistered']('imageBlock')&&_0x1d4ed9['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x1d4ed9['isRegistered']('imageInline')&&_0x1d4ed9['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x389f52=this['editor'];_0x389f52['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x389f52['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x360b51=>_0x360b51['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x4db132=_0x389f52['commands']['get']('replaceImageSource');_0x4db132&&this['listenTo'](_0x4db132,'cleanupImage',(_0x8e38b2,[_0x2e1bff,_0x3e985b])=>{_0x2e1bff['removeAttribute']('uploadcareImageId',_0x3e985b);});}['_initConfig'](){const _0x3a0592=this['editor']['config']['get']('uploadcare.uploader')||{},_0xefba7d=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x4bcdac(_0x459f38['document'],'uc-config',{..._0x3a0592,'pubkey':_0xefba7d,'ctx-name':'uploader','sourceList':'','imgOnly':'true','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage'],'externalSourcesEmbedCss':'\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup\x20{\x20padding:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-menu\x20{\x20gap:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-footer\x20{\x20padding-top:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__separator\x20{\x20margin:\x200;\x20}\x0a\x09\x09\x09'}),this['_configElement']['iconHrefResolver']=_0x3552be=>{if('closeMax'==_0x3552be)return'#uc-icon-arrow-down';},_0x459f38['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x4bcdac(_0x459f38['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader'}),_0x459f38['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x2a8126=this['editor']['commands']['get']('insertImage');_0x2a8126&&this['listenTo'](_0x2a8126,'execute',()=>{const _0x47b2da=this['editor']['model']['document']['selection']['getSelectedElement']();_0x47b2da&&_0x47b2da['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{m(this['editor'],_0x47b2da);});});const _0x2353ea=this['editor']['commands']['get']('uploadcareImageReplace');_0x2353ea&&this['listenTo'](_0x2353ea,'execute',()=>{const _0x2aa6f3=this['editor']['model']['document']['selection']['getSelectedElement']();_0x2aa6f3&&_0x2aa6f3['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{m(this['editor'],_0x2aa6f3);});});}}class u extends _0x46c2fe{static get['requires'](){return[i,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x3d1e4a){super(_0x3d1e4a),_0x3d1e4a['config']['define']('uploadcare.uploader.sourceList',[o['Local'],o['URL']]),_0x41031f['defineComponents'](_0x41031f);}}class ta extends _0x10bc53{constructor(_0x196e72){super(_0x196e72);const t=_0x196e72['t'],_0x4b47a1=this['bindTemplate'],_0x4ac996=new _0x541b8e();_0x4ac996['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':[_0x4ac996,{'text':_0x4b47a1['to']('imageUploadProgress',_0x8ed1c7=>t('Loading\x20image...')+'\x20('+(_0x8ed1c7||0x0)+'%)')}]},{'tag':'div','attributes':{'class':['ck-uploadcare-form__skeleton']},'children':[{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'}]},{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'}]}]}]});}}class rt extends _0x10bc53{constructor(_0x1aaaed){super(_0x1aaaed);const t=_0x1aaaed['t'];this['set']('errorType',null);const _0x2a8966=new _0xa6b267(_0x1aaaed);_0x2a8966['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x2a8966['withText']=!0x0,_0x2a8966['class']='ck-button-action',_0x2a8966['on']('execute',()=>{this['fire']('retry');}),_0x2a8966['bind']('isVisible')['to'](this,'errorType',_0x29a15b=>'NotFound'!==_0x29a15b);const _0x39aad6=new at();_0x39aad6['content']=et,_0x39aad6['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x4e791b=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':[_0x39aad6,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x4e791b['to']('errorType',_0x5e9228=>t('NotFound'!==_0x5e9228?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x2a8966]},{'tag':'div','attributes':{'class':['ck-uploadcare-form__skeleton']},'children':[{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'}]},{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'}]}]}]});}}class tt extends _0x10bc53{constructor(_0x3967c5,_0x6d0db7){super(_0x3967c5);const _0x16b146=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x6d0db7,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x16b146['to']('imageSrc')}});}}class Z extends q{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x155d7c,_0x775269,_0x20e75d){super(_0x155d7c),this['_items']=this['createCollection'](),this['_loadingView']=new ta(_0x155d7c),this['_errorView']=new rt(_0x155d7c),this['_editingView']=new tt(_0x155d7c,_0x20e75d),this['_focusableView']=new _0x10bc53(_0x155d7c),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x775269),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'],_0x17e98e=>{this['_addUploadcareImageEditorListeners'](_0x17e98e);});}),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'](_0x3b5412,_0x5139aa){const _0x2173a6='uc-cloud-image-editor',_0x7cc706=_0x3b5412['querySelector'](_0x2173a6);if(_0x7cc706)return _0x5139aa(_0x7cc706);const _0x41a87d=new MutationObserver(_0x40ea41=>{const _0x41b92f=_0x40ea41['filter'](_0x1b40a5=>_0x1b40a5['target']===_0x3b5412&&_0x1b40a5['addedNodes']['length']>0x0&&_0x1b40a5['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x2173a6);_0x41b92f['length']&&(_0x41a87d['disconnect'](),_0x5139aa(_0x41b92f[0x0]['addedNodes'][0x0]));});_0x41a87d['observe'](_0x3b5412,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x37c0ab){_0x37c0ab['addEventListener']('apply',_0x2fddb7=>{this['fire']('apply',{'imageSrc':_0x2fddb7['detail']['cdnUrl']});}),_0x37c0ab['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class z extends/* #__PURE__ -- @preserve */
25
+ _0x345e3f(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x507bb5,_0x172f73,_0x4085cb){super(),this['_editor']=_0x507bb5,this['_dialog']=_0x172f73,this['_imageElement']=_0x4085cb,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 _0x129ca5=this['_imageElement'],_0x384e56=_0x129ca5['getAttribute']('uploadcareImageId'),_0x5bbec6=_0x129ca5['getAttribute']('src');if(_0x384e56)await this['_loadImageInfo'](_0x384e56,_0x5bbec6);else{if(this['_imageCache']['has'](_0x5bbec6)){const _0x588e9d=this['_imageCache']['get'](_0x5bbec6);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x588e9d['url'],this['imageDimension']=_0x588e9d['dimension'],this['imageId']=_0x588e9d['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x5bf3a4}=this['_editor'],t=_0x5bf3a4['t'],_0x13ca7d=new Z(_0x5bf3a4,this['imageStatus'],this['_attributes']);_0x13ca7d['bind']('status')['to'](this,'imageStatus'),_0x13ca7d['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x13ca7d['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x13ca7d['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x13ca7d,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x318c1b,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x13ca7d,'position':_0xc3e8b['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x13ca7d['focus']();},'onHide':()=>{_0x13ca7d['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x26a173=>!F(_0x26a173,_0x13ca7d['element'])}});}['_loadImageInfo'](_0x172790,_0x331261){return C['getInfo'](_0x172790,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey')})['then'](_0x5dd719=>{const {width:_0x3ae61b,height:_0x4664d4}=_0x5dd719['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x331261,this['imageDimension']={'width':_0x3ae61b,'height':_0x4664d4},this['imageId']=_0x172790;})['catch'](_0x500914=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x500914['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x49a3b1,_0x5182a8){return this['_getImageAsFile'](_0x49a3b1)['then'](_0x2a7a06=>C['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'signal':_0x5182a8['signal'],'file':_0x2a7a06,'onProgress':_0x5b9275=>{_0x5b9275&&_0x5b9275['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x5b9275['value']));}}))['then'](_0x50e834=>{const {width:_0x3de2e6,height:_0x4ebe3f}=_0x50e834['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x50e834['cdnUrl'],this['imageDimension']={'width':_0x3de2e6,'height':_0x4ebe3f},this['imageId']=_0x50e834['uuid'],this['imageUploadProgress']=null;const _0xa953fb=_0x49a3b1['getAttribute']('src');this['_imageCache']['set'](_0xa953fb,{'id':_0x50e834['uuid'],'url':_0x50e834['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x5dadc6=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x5dadc6['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x2682ff,_0x238051){_0x2682ff['on']('apply',(_0x386719,_0x34850b)=>{this['_replaceImage'](_0x238051,_0x34850b['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x2682ff['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x2682ff['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x9b65f,_0x9282bd,_0x155582){const _0x3de916=this['_editor'],{width:_0x580e06,height:_0x322c68}=A(_0x9282bd,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x34f710,imageSources:_0x266f11}=E(_0x9282bd,_0x580e06);_0x3de916['model']['change'](_0x5c3904=>{if('$graveyard'===_0x9b65f['root']['rootName']){_0x3de916['execute']('insertImage',{'imageType':_0x9b65f['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x9b65f['getAttributes']()),'uploadcareImageId':_0x155582,'src':_0x34f710,'sources':_0x266f11,'width':_0x580e06,'height':_0x322c68}});const _0x19d27a=_0x9b65f['getChildren']();_0x9b65f=_0x3de916['model']['document']['selection']['getSelectedElement']();for(const _0xd03441 of _0x19d27a)_0x5c3904['append'](_0x5c3904['cloneElement'](_0xd03441),_0x9b65f);}else _0x5c3904['setSelection'](_0x9b65f,'on'),_0x3de916['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x9b65f['getAttributes']()),'uploadcareImageId':_0x155582,'src':_0x34f710,'sources':_0x266f11,'width':_0x580e06,'height':_0x322c68},_0x9b65f);_0x5c3904['setSelection'](_0x9b65f,'on');});}async['_getImageAsFile'](_0x3e5681){const _0x213a68=_0x459f38['window'],_0x274194=_0x459f38['document']['location']['href'],_0x3fffb6=new _0x213a68['URL'](_0x3e5681['getAttribute']('src'),_0x274194);if('data:'===_0x3fffb6['protocol']){const _0x285083=_0x3fffb6['href']['split'](','),_0x80d1b5=_0x285083[0x0]['match'](/:(.*?);/)[0x1],_0x9ffe94=_0x80d1b5['split']('/')[0x1],_0x4df62d=_0x213a68['atob'](_0x285083[_0x285083['length']-0x1]);let _0xf6d348=_0x4df62d['length'];const _0x53f181=new _0x213a68['Uint8Array'](_0xf6d348);for(;_0xf6d348--;)_0x53f181[_0xf6d348]=_0x4df62d['charCodeAt'](_0xf6d348);return new _0x213a68['File']([_0x53f181],'image.'+_0x9ffe94,{'type':_0x80d1b5});}const _0x690c16=_0x3fffb6['href']['split']('/'),_0x442e96=_0x690c16[_0x690c16['length']-0x1],_0x2da89e=_0x442e96['split']('.')[0x1];return _0x213a68['fetch'](_0x3fffb6['href'])['then'](_0x5581f4=>_0x5581f4['clone']()['blob']())['then'](_0x2c454e=>new _0x213a68['File']([_0x2c454e],_0x442e96,{'type':'image/'+_0x2da89e}));}}class J extends _0x39d543{['imageEditController'];static get['requires'](){return[_0x324185];}['_isEditable'];constructor(_0x3aad29){super(_0x3aad29),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x110c67){const _0x2f6993=V(_0x110c67);return _0x2e68d0=>!(!_0x2e68d0||!_0x2e68d0['is']('element','imageBlock')&&!_0x2e68d0['is']('element','imageInline'))&&(!!_0x2e68d0['hasAttribute']('uploadcareImageId')||!!_0x2e68d0['hasAttribute']('src')&&_0x2f6993(_0x2e68d0['getAttribute']('src')));}(_0x3aad29['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x14ad71=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x14ad71);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x3067e6=this['editor']['model']['document']['selection']['getSelectedElement']();_0x3067e6&&(_0x3067e6['is']('element','imageBlock')||_0x3067e6['is']('element','imageInline'))&&(this['imageEditController']=new z(this['editor'],this['editor']['plugins']['get'](_0x324185),_0x3067e6),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class O extends _0x39d543{['refresh'](){const _0x2a5249=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x2a5249&&(_0x2a5249['is']('element','imageBlock')||_0x2a5249['is']('element','imageInline')));}['execute'](_0x40b402){const _0x207b2c=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x1093ff=>{_0x1093ff['setAttributes'](_0x40b402,_0x207b2c),_0x1093ff['removeAttribute']('srcset',_0x207b2c),_0x1093ff['removeAttribute']('sizes',_0x207b2c);});}}class g extends _0x46c2fe{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[i,_0xa72122,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x4a106d}=this;_0x4a106d['commands']['add']('uploadcareImageEdit',new J(_0x4a106d)),_0x4a106d['commands']['add']('uploadcareImageReplace',new O(_0x4a106d));}}class j extends _0x46c2fe{['_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 _0x53bb93=this['editor'];_0x53bb93['ui']['componentFactory']['add']('uploadcareImageEdit',_0x392542=>{const _0x4c3351=_0x53bb93['commands']['get']('uploadcareImageEdit'),_0x46a757=new _0xa6b267(_0x392542),t=_0x392542['t'];return _0x46a757['set']({'icon':_0x318c1b,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x46a757['bind']('isEnabled')['to'](_0x4c3351),_0x46a757['bind']('isOn')['to'](_0x4c3351,'isActive'),this['listenTo'](_0x46a757,'execute',()=>{_0x53bb93['execute']('uploadcareImageEdit'),_0x53bb93['editing']['view']['focus']();}),_0x46a757;}),this['_initConfig']();}['_initConfig'](){const _0x4d8a2b=_0x4bcdac(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x4d8a2b),this['listenTo'](this['editor'],'destroy',()=>{_0x4d8a2b['remove']();});}}class P extends _0x46c2fe{static get['pluginName'](){return'UploadcareImageEdit';}static get['requires'](){return[g,j];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{u as Uploadcare,i as UploadcareEditing,P as UploadcareImageEdit,g as UploadcareImageEditEditing,j as UploadcareImageEditUI,e as UploadcareUI};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ckeditor/ckeditor5-uploadcare",
3
- "version": "45.1.0-alpha.0",
3
+ "version": "45.1.0-alpha.1",
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": "45.1.0-alpha.0",
27
- "@ckeditor/ckeditor5-icons": "45.1.0-alpha.0",
28
- "@ckeditor/ckeditor5-image": "45.1.0-alpha.0",
29
- "@ckeditor/ckeditor5-theme-lark": "45.1.0-alpha.0",
30
- "@ckeditor/ckeditor5-ui": "45.1.0-alpha.0",
31
- "@ckeditor/ckeditor5-upload": "45.1.0-alpha.0",
32
- "@ckeditor/ckeditor5-utils": "45.1.0-alpha.0",
33
- "ckeditor5": "45.1.0-alpha.0",
26
+ "@ckeditor/ckeditor5-core": "45.1.0-alpha.1",
27
+ "@ckeditor/ckeditor5-icons": "45.1.0-alpha.1",
28
+ "@ckeditor/ckeditor5-image": "45.1.0-alpha.1",
29
+ "@ckeditor/ckeditor5-theme-lark": "45.1.0-alpha.1",
30
+ "@ckeditor/ckeditor5-ui": "45.1.0-alpha.1",
31
+ "@ckeditor/ckeditor5-upload": "45.1.0-alpha.1",
32
+ "@ckeditor/ckeditor5-utils": "45.1.0-alpha.1",
33
+ "ckeditor5": "45.1.0-alpha.1",
34
34
  "@uploadcare/file-uploader": "1.12.0",
35
35
  "@uploadcare/upload-client": "6.14.1"
36
36
  },
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x4aad92=_0x85ea;(function(_0x743556,_0x42955b){const _0x500643=_0x85ea,_0x10b79a=_0x743556();while(!![]){try{const _0x3703a0=-parseInt(_0x500643(0x107))/0x1+-parseInt(_0x500643(0x112))/0x2*(-parseInt(_0x500643(0xf8))/0x3)+parseInt(_0x500643(0xf1))/0x4+-parseInt(_0x500643(0xd7))/0x5*(parseInt(_0x500643(0xf3))/0x6)+parseInt(_0x500643(0x102))/0x7*(parseInt(_0x500643(0x108))/0x8)+parseInt(_0x500643(0xcd))/0x9+-parseInt(_0x500643(0x11e))/0xa;if(_0x3703a0===_0x42955b)break;else _0x10b79a['push'](_0x10b79a['shift']());}catch(_0x40e1e6){_0x10b79a['push'](_0x10b79a['shift']());}}}(_0x4c6b,0x4da54));import{Plugin as _0x2bb356}from'ckeditor5/src/core.js';import{Dialog as _0x31e3b2}from'ckeditor5/src/ui.js';import{createElement as _0x17e54c,global as _0x2b126d,uid as _0x1e117f}from'ckeditor5/src/utils.js';import _0xc59a6e from'./uploadcarecommand.js';function _0x85ea(_0x302cb5,_0x221a9d){const _0x4c6bc3=_0x4c6b();return _0x85ea=function(_0x85ea2f,_0x55d386){_0x85ea2f=_0x85ea2f-0xcb;let _0x3f6a55=_0x4c6bc3[_0x85ea2f];return _0x3f6a55;},_0x85ea(_0x302cb5,_0x221a9d);}import _0xc1eead from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0x25b518}from'./utils/editingutils.js';export default class i extends _0x2bb356{[_0x4aad92(0x117)]=null;[_0x4aad92(0xe9)]=null;static get[_0x4aad92(0x11b)](){const _0x11bc7a=_0x4aad92;return _0x11bc7a(0xe4);}static get[_0x4aad92(0x116)](){const _0x287c22=_0x4aad92;return[_0x287c22(0xf4),_0xc1eead,_0x31e3b2];}static get[_0x4aad92(0xd1)](){return!0x0;}static get[_0x4aad92(0x10c)](){return!0x0;}get[_0x4aad92(0xfb)](){const _0xa2ad64=_0x4aad92;return this[_0xa2ad64(0x117)];}get[_0x4aad92(0xe0)](){const _0x129693=_0x4aad92;return this[_0x129693(0xe9)];}[_0x4aad92(0x10a)](){const _0x1393ac=_0x4aad92,_0x405418=this[_0x1393ac(0xdf)];_0x405418[_0x1393ac(0xdc)][_0x1393ac(0xdb)](_0x1393ac(0xda),new _0xc59a6e(_0x405418));}[_0x4aad92(0xff)](){const _0x47bfa6=_0x4aad92;this[_0x47bfa6(0xd8)](),this[_0x47bfa6(0x105)](),this[_0x47bfa6(0xe3)](),this[_0x47bfa6(0xdd)](),this[_0x47bfa6(0xcc)](),this[_0x47bfa6(0xfa)](this[_0x47bfa6(0xdf)],_0x47bfa6(0x11a),()=>{const _0x3728c5=_0x47bfa6;this[_0x3728c5(0x117)]&&(this[_0x3728c5(0x117)][_0x3728c5(0xde)](),this[_0x3728c5(0x117)]=null),this[_0x3728c5(0xe9)]&&(this[_0x3728c5(0xe9)][_0x3728c5(0xde)](),this[_0x3728c5(0xe9)]=null);const _0x4282b6=_0x2b126d[_0x3728c5(0x114)][_0x3728c5(0xcb)](_0x3728c5(0xd5));_0x4282b6&&_0x4282b6[_0x3728c5(0xde)]();}),async function(_0x24bfcb){const _0x5855bc=_0x3fafe1([0x55,0x5a,0x51,0x69,0x72,0x70,0x7a,0x58,0x57,0x65,0x52,0x6f,0x36,0x46,0x79,0x4e,0x59,0x53,0x67,0x30,0x44,0x6b,0x34,0x4a,0x48,0x37,0x4c,0x64,0x31,0x62,0x76,0x61,0x6e,0x71,0x68,0x41,0x6a,0x33,0x47,0x39,0x45,0x42,0x4b,0x4f,0x4d,0x74,0x75,0x35,0x54,0x49,0x43,0x50,0x63,0x77,0x73,0x32,0x56,0x66,0x38,0x6d,0x78,0x6c]),_0xf0ec2d=0x54808abb,_0xcee78c=0x5487ed93^_0xf0ec2d,_0x71e8bf=window[_0x3fafe1([0x44,0x61,0x74,0x65])][_0x3fafe1([0x6e,0x6f,0x77])](),_0x3306ca=_0x24bfcb[_0x3fafe1([0x65,0x64,0x69,0x74,0x6f,0x72])],_0xb4ae25=new window[(_0x3fafe1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x482388=>{_0x3306ca[_0x3fafe1([0x6f,0x6e,0x63,0x65])](_0x3fafe1([0x72,0x65,0x61,0x64,0x79]),_0x482388);}),_0x8befb6={[_0x3fafe1([0x6b,0x74,0x79])]:_0x3fafe1([0x45,0x43]),[_0x3fafe1([0x75,0x73,0x65])]:_0x3fafe1([0x73,0x69,0x67]),[_0x3fafe1([0x63,0x72,0x76])]:_0x3fafe1([0x50,0x2d,0x32,0x35,0x36]),[_0x3fafe1([0x78])]:_0x3fafe1([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]),[_0x3fafe1([0x79])]:_0x3fafe1([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]),[_0x3fafe1([0x61,0x6c,0x67])]:_0x3fafe1([0x45,0x53,0x32,0x35,0x36])},_0x125084=_0x3306ca[_0x3fafe1([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x3fafe1([0x67,0x65,0x74])](_0x3fafe1([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x3dd237(){let _0x99db46,_0x2f0e1e=null,_0x36b7cc=null;try{if(_0x125084==_0x3fafe1([0x47,0x50,0x4c]))return _0x3fafe1([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x99db46=_0x2f4f9a(),!_0x99db46)return _0x3fafe1([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x99db46[_0x3fafe1([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x36b7cc=_0x4a68da(_0x99db46[_0x3fafe1([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x99db46[_0x3fafe1([0x6a,0x74,0x69])])),await _0x375321()?_0xb00920()?_0x1e9a8b()?_0x3fafe1([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x1ff611()?(_0x99db46[_0x3fafe1([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3fafe1([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x2f0e1e=_0x1ecf95(_0x3fafe1([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x99db46[_0x3fafe1([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3fafe1([0x74,0x72,0x69,0x61,0x6c])&&(_0x2f0e1e=_0x1ecf95(_0x3fafe1([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0xa5cc09()):_0x3fafe1([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x3fafe1([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x3fafe1([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x3b5c15){return _0x3fafe1([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x1e9a8b(){const _0x4d1e5b=[_0x3fafe1([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x3fafe1([0x74,0x72,0x69,0x61,0x6c])][_0x3fafe1([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x99db46[_0x3fafe1([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x71e8bf/0x3e8:0xe10*_0xcee78c;return _0x99db46[_0x3fafe1([0x65,0x78,0x70])]<_0x4d1e5b;}function _0xb00920(){const _0x5af7e0=_0x99db46[_0x3fafe1([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x5af7e0&&(!!_0x5af7e0[_0x3fafe1([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3fafe1([0x2a]))||!!_0x5af7e0[_0x3fafe1([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3fafe1([0x55,0x50,0x4c,0x43])));}function _0x1ff611(){const _0x588283=_0x85ea,_0x1b9762=_0x99db46[_0x3fafe1([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x1b9762||0x0==_0x1b9762[_0x3fafe1([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x19fd0a}=new URL(window[_0x3fafe1([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x588283(0x106)]);if(_0x1b9762[_0x3fafe1([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x19fd0a))return!0x0;const _0x3022fb=_0x19fd0a[_0x3fafe1([0x73,0x70,0x6c,0x69,0x74])](_0x3fafe1([0x2e]));return _0x1b9762[_0x3fafe1([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x12c8c9=>_0x12c8c9[_0x3fafe1([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3fafe1([0x2a])))[_0x3fafe1([0x6d,0x61,0x70])](_0x5bc2f0=>_0x5bc2f0[_0x3fafe1([0x73,0x70,0x6c,0x69,0x74])](_0x3fafe1([0x2e])))[_0x3fafe1([0x73,0x6f,0x6d,0x65])](_0x31a619=>_0x3022fb[_0x3fafe1([0x65,0x76,0x65,0x72,0x79])]((_0xcf4fdd,_0xc98f86)=>_0x31a619[_0xc98f86]===_0xcf4fdd||_0x31a619[_0xc98f86]===_0x3fafe1([0x2a])));}function _0xa5cc09(){return _0x2f0e1e&&_0x36b7cc?new window[(_0x3fafe1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4235e6,_0x1d5796)=>{_0x2f0e1e[_0x3fafe1([0x74,0x68,0x65,0x6e])](_0x4235e6,_0x1d5796),_0x36b7cc[_0x3fafe1([0x74,0x68,0x65,0x6e])](_0xd18647=>{_0xd18647!=_0x3fafe1([0x56,0x61,0x6c,0x69,0x64])&&_0x4235e6(_0xd18647);},_0x1d5796);}):_0x2f0e1e||_0x36b7cc||_0x3fafe1([0x56,0x61,0x6c,0x69,0x64]);}}function _0x4a68da(_0x2bdda2,_0x114c00){return new window[(_0x3fafe1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x42f01d=>{if(_0x225426())return _0x42f01d(_0x3fafe1([0x56,0x61,0x6c,0x69,0x64]));_0x2ff1f0(),_0x3306ca[_0x3fafe1([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x3fafe1([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x4cf3da=!0x1;const _0x53ecf9=_0x1e117f();function _0x46f565(_0x51c1bd){return!!_0x51c1bd&&(typeof _0x51c1bd===_0x3fafe1([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x51c1bd===_0x3fafe1([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x51c1bd[_0x3fafe1([0x74,0x68,0x65,0x6e])]===_0x3fafe1([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x51c1bd[_0x3fafe1([0x63,0x61,0x74,0x63,0x68])]===_0x3fafe1([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x518eb7(_0x5a62ed){_0x162ee7(_0x5a62ed)[_0x3fafe1([0x74,0x68,0x65,0x6e])](_0x3dc32b=>{if(!_0x3dc32b||_0x3dc32b[_0x3fafe1([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x3fafe1([0x6f,0x6b]))return _0x3fafe1([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x2ab059(_0x24cd11(_0x53ecf9+_0x114c00))!=_0x3dc32b[_0x3fafe1([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x3fafe1([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x3fafe1([0x56,0x61,0x6c,0x69,0x64]);})[_0x3fafe1([0x74,0x68,0x65,0x6e])](_0x34eafb=>(_0x1fa9c7(),_0x34eafb),()=>{const _0x1a52a8=_0x2aea81();return null==_0x1a52a8?(_0x1fa9c7(),_0x3fafe1([0x56,0x61,0x6c,0x69,0x64])):_0x3fafe1(_0x71e8bf-_0x1a52a8>(0x708c0ebb^_0xf0ec2d)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x3fafe1([0x74,0x68,0x65,0x6e])](_0x42f01d)[_0x3fafe1([0x63,0x61,0x74,0x63,0x68])](()=>{_0x42f01d(_0x3fafe1([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x585624=0x54b6643b^_0xf0ec2d;function _0x1fa9c7(){const _0x2872d7=_0x3fafe1([0x6c,0x6c,0x63,0x74,0x2d])+_0x2ab059(_0x24cd11(_0x2bdda2)),_0xe4b65a=_0x3d56f3(_0x2ab059(window[_0x3fafe1([0x4d,0x61,0x74,0x68])][_0x3fafe1([0x63,0x65,0x69,0x6c])](_0x71e8bf/_0x585624)));window[_0x3fafe1([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3fafe1([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2872d7,_0xe4b65a);}function _0x2aea81(){const _0x3214c8=_0x3fafe1([0x6c,0x6c,0x63,0x74,0x2d])+_0x2ab059(_0x24cd11(_0x2bdda2)),_0x191aa4=window[_0x3fafe1([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3fafe1([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3214c8);return _0x191aa4?window[_0x3fafe1([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3d56f3(_0x191aa4),0x10)*_0x585624:null;}function _0x162ee7(_0x2f7dc4){return new window[(_0x3fafe1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x36a202,_0x7256bb)=>{_0x2f7dc4[_0x3fafe1([0x74,0x68,0x65,0x6e])](_0x36a202,_0x7256bb),window[_0x3fafe1([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x7256bb,0x54815e7b^_0xf0ec2d);});}}_0x3306ca[_0x3fafe1([0x6f,0x6e])](_0x3fafe1([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x41b2b2,_0x2da47e)=>{if(_0x2da47e[0x0]!=_0x2bdda2)return _0x42f01d(_0x3fafe1([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x2da47e[0x1]={..._0x2da47e[0x1],[_0x3fafe1([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x53ecf9};},{[_0x3fafe1([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3fafe1([0x68,0x69,0x67,0x68])}),_0x3306ca[_0x3fafe1([0x6f,0x6e])](_0x3fafe1([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x19d021=>{_0x46f565(_0x19d021[_0x3fafe1([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x4cf3da=!0x0,_0x518eb7(_0x19d021[_0x3fafe1([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x3fafe1([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3fafe1([0x6c,0x6f,0x77])}),_0xb4ae25[_0x3fafe1([0x74,0x68,0x65,0x6e])](()=>{_0x4cf3da||_0x42f01d(_0x3fafe1([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x225426(){return _0x3306ca[_0x3fafe1([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3fafe1([0x76,0x69,0x65,0x77])][_0x3fafe1([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x3fafe1([0x61,0x75,0x74,0x6f]);}function _0x2ff1f0(){_0x3306ca[_0x3fafe1([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3fafe1([0x76,0x69,0x65,0x77])][_0x3fafe1([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x3fafe1([0x61,0x75,0x74,0x6f]);}}function _0x1ecf95(_0x313cc5){const _0x447348=[new window[(_0x3fafe1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5b7e40=>setTimeout(_0x5b7e40,0x5489b477^_0xf0ec2d)),_0xb4ae25[_0x3fafe1([0x74,0x68,0x65,0x6e])](()=>new window[(_0x3fafe1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x254b20=>{let _0x33d0f6=0x0;_0x3306ca[_0x3fafe1([0x6d,0x6f,0x64,0x65,0x6c])][_0x3fafe1([0x6f,0x6e])](_0x3fafe1([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x1d394e,_0x54f82c)=>{_0x54f82c[0x0][_0x3fafe1([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x33d0f6++,_0x33d0f6==(0x54808b43^_0xf0ec2d)&&(_0x254b20(),_0x1d394e[_0x3fafe1([0x6f,0x66,0x66])]());});}))];return window[_0x3fafe1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x3fafe1([0x72,0x61,0x63,0x65])](_0x447348)[_0x3fafe1([0x74,0x68,0x65,0x6e])](()=>_0x313cc5);}async function _0xb93af6(){await _0xb4ae25,_0x3306ca[_0x3fafe1([0x6d,0x6f,0x64,0x65,0x6c])][_0x3fafe1([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x76ccc,_0x3306ca[_0x3fafe1([0x6d,0x6f,0x64,0x65,0x6c])][_0x3fafe1([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x76ccc,_0x3306ca[_0x3fafe1([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x3fafe1([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x1b6194(_0xdc8c26){const _0x27d711=_0x3c6082();_0x3306ca[_0x27d711]=_0x3fafe1([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0xdc8c26,_0xdc8c26!=_0x3fafe1([0x56,0x61,0x6c,0x69,0x64])&&_0xb93af6();}function _0x3c6082(){const _0x4abc4e=window[_0x3fafe1([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x3fafe1([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x3fafe1([0x6e,0x6f,0x77])]())[_0x3fafe1([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x3fafe1([0x2e]),'');let _0x10a067=_0x3fafe1([0x55]);for(let _0x72ee7d=0x0;_0x72ee7d<_0x4abc4e[_0x3fafe1([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x72ee7d+=0x2){let _0x1ad835=window[_0x3fafe1([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4abc4e[_0x3fafe1([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x72ee7d,_0x72ee7d+0x2));_0x1ad835>=_0x5855bc[_0x3fafe1([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x1ad835-=_0x5855bc[_0x3fafe1([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x10a067+=_0x5855bc[_0x1ad835];}return _0x10a067;}function _0x2f4f9a(){const _0x1b4885=_0x125084[_0x3fafe1([0x73,0x70,0x6c,0x69,0x74])](_0x3fafe1([0x2e]));if(0x3!=_0x1b4885[_0x3fafe1([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0xd6e45d(_0x1b4885[0x1]);function _0xd6e45d(_0x2677d3){const _0x552019=_0x38b2b1(_0x2677d3);return _0x552019&&_0x29c20d()?_0x552019:null;function _0x29c20d(){const _0x3ebc53=_0x552019[_0x3fafe1([0x6a,0x74,0x69])],_0x2ae900=window[_0x3fafe1([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3ebc53[_0x3fafe1([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3ebc53[_0x3fafe1([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x4eeeb0={..._0x552019,[_0x3fafe1([0x6a,0x74,0x69])]:_0x3ebc53[_0x3fafe1([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x3ebc53[_0x3fafe1([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x4eeeb0[_0x3fafe1([0x76,0x63])],_0x24cd11(_0x4eeeb0)==_0x2ae900;}}}async function _0x375321(){let _0x444b46=!0x0;try{const _0x33d958=_0x125084[_0x3fafe1([0x73,0x70,0x6c,0x69,0x74])](_0x3fafe1([0x2e])),[_0x176bbb,_0x33d356,_0x209219]=_0x33d958;return _0x2892a0(_0x176bbb),await _0x4e091d(_0x176bbb,_0x33d356,_0x209219),_0x444b46;}catch(_0x2f421b){return!0x1;}function _0x2892a0(_0xa4fd4d){const _0x2d9389=_0x38b2b1(_0xa4fd4d);_0x2d9389&&_0x2d9389[_0x3fafe1([0x61,0x6c,0x67])]==_0x3fafe1([0x45,0x53,0x32,0x35,0x36])||(_0x444b46=!0x1);}async function _0x4e091d(_0x2022f4,_0x16f611,_0x312fbc){const _0x3a27b2=window[_0x3fafe1([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x3fafe1([0x66,0x72,0x6f,0x6d])](_0x767ebf(_0x312fbc),_0x455048=>_0x455048[_0x3fafe1([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x586828=new window[(_0x3fafe1([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x3fafe1([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x2022f4+_0x3fafe1([0x2e])+_0x16f611),_0x48b1d7=window[_0x3fafe1([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x3fafe1([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x48b1d7)return;const _0x51f7f5=await _0x48b1d7[_0x3fafe1([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x3fafe1([0x6a,0x77,0x6b]),_0x8befb6,{[_0x3fafe1([0x6e,0x61,0x6d,0x65])]:_0x3fafe1([0x45,0x43,0x44,0x53,0x41]),[_0x3fafe1([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x3fafe1([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x3fafe1([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x48b1d7[_0x3fafe1([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x3fafe1([0x6e,0x61,0x6d,0x65])]:_0x3fafe1([0x45,0x43,0x44,0x53,0x41]),[_0x3fafe1([0x68,0x61,0x73,0x68])]:{[_0x3fafe1([0x6e,0x61,0x6d,0x65])]:_0x3fafe1([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x51f7f5,_0x3a27b2,_0x586828)||(_0x444b46=!0x1);}}function _0x38b2b1(_0x51630a){return _0x51630a[_0x3fafe1([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x3fafe1([0x65,0x79]))?JSON[_0x3fafe1([0x70,0x61,0x72,0x73,0x65])](_0x767ebf(_0x51630a)):null;}function _0x767ebf(_0x540bbf){return window[_0x3fafe1([0x61,0x74,0x6f,0x62])](_0x540bbf[_0x3fafe1([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x3fafe1([0x2b]))[_0x3fafe1([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x3fafe1([0x2f])));}function _0x24cd11(_0x6700e5){let _0x5b205d=0x1505;function _0x21cd81(_0x892077){for(let _0x8939fe=0x0;_0x8939fe<_0x892077[_0x3fafe1([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x8939fe++){const _0x430f9e=_0x892077[_0x3fafe1([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x8939fe);_0x5b205d=(_0x5b205d<<0x5)+_0x5b205d+_0x430f9e,_0x5b205d&=_0x5b205d;}}function _0x56437d(_0x388a61){Array[_0x3fafe1([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x388a61)?_0x388a61[_0x3fafe1([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x56437d):_0x388a61&&typeof _0x388a61==_0x3fafe1([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x3fafe1([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x388a61)[_0x3fafe1([0x73,0x6f,0x72,0x74])]()[_0x3fafe1([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x29e55b,_0x4b7dab])=>{_0x21cd81(_0x29e55b),_0x56437d(_0x4b7dab);}):_0x21cd81(window[_0x3fafe1([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x388a61));}return _0x56437d(_0x6700e5),_0x5b205d>>>0x0;}function _0x2ab059(_0x405535){return _0x405535[_0x3fafe1([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x3fafe1([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x3fafe1([0x30]));}function _0x3d56f3(_0x269672){return _0x269672[_0x3fafe1([0x73,0x70,0x6c,0x69,0x74])]('')[_0x3fafe1([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x3fafe1([0x6a,0x6f,0x69,0x6e])]('');}function _0x76ccc(){}function _0x3fafe1(_0x3e040c){const _0x40bfdb=_0x85ea;return _0x3e040c[_0x40bfdb(0xfd)](_0x1adb99=>String[_0x40bfdb(0xea)](_0x1adb99))[_0x40bfdb(0xe6)]('');}_0x1b6194(await _0x3dd237());}(this);}[_0x4aad92(0xd8)](){const _0x2b46fa=_0x4aad92,_0x2a0b3a=this[_0x2b46fa(0xdf)][_0x2b46fa(0x118)][_0x2b46fa(0x115)];_0x2a0b3a[_0x2b46fa(0xd4)](_0x2b46fa(0xf7))&&_0x2a0b3a[_0x2b46fa(0xec)](_0x2b46fa(0xf7),{'allowAttributes':[_0x2b46fa(0xf9)]}),_0x2a0b3a[_0x2b46fa(0xd4)](_0x2b46fa(0xe5))&&_0x2a0b3a[_0x2b46fa(0xec)](_0x2b46fa(0xe5),{'allowAttributes':[_0x2b46fa(0xf9)]});}[_0x4aad92(0x105)](){const _0x2e90d8=_0x4aad92,_0x216c43=this[_0x2e90d8(0xdf)];_0x216c43[_0x2e90d8(0xeb)][_0x2e90d8(0xf2)](_0x2e90d8(0xe7))[_0x2e90d8(0x113)]({'model':_0x2e90d8(0xf9),'view':_0x2e90d8(0xd3)}),_0x216c43[_0x2e90d8(0xeb)][_0x2e90d8(0xf2)](_0x2e90d8(0x109))[_0x2e90d8(0x11d)]({'model':{'key':_0x2e90d8(0xf9),'value':_0x49b909=>_0x49b909[_0x2e90d8(0xcf)](_0x2e90d8(0xd3))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0xea72eb=_0x216c43[_0x2e90d8(0xdc)][_0x2e90d8(0xd6)](_0x2e90d8(0x10b));_0xea72eb&&this[_0x2e90d8(0xfa)](_0xea72eb,_0x2e90d8(0x101),(_0x258457,[_0x75b456,_0x2c1dc7])=>{const _0x6d6528=_0x2e90d8;_0x75b456[_0x6d6528(0xe8)](_0x6d6528(0xf9),_0x2c1dc7);});}[_0x4aad92(0xe3)](){const _0xef5867=_0x4aad92,_0x59c9fe=this[_0xef5867(0xdf)][_0xef5867(0xee)][_0xef5867(0xd6)](_0xef5867(0x100))||{},_0x14c2e6=this[_0xef5867(0xdf)][_0xef5867(0xee)][_0xef5867(0xd6)](_0xef5867(0x11c))||'';this[_0xef5867(0x117)]=_0x17e54c(_0x2b126d[_0xef5867(0x114)],_0xef5867(0xef),{..._0x59c9fe,'pubkey':_0x14c2e6,'ctx-name':_0xef5867(0x10f),'sourceList':'','imgOnly':_0xef5867(0xfc),'removeCopyright':_0xef5867(0xfc),'localeName':this[_0xef5867(0xdf)][_0xef5867(0x10e)][_0xef5867(0xe1)],'externalSourcesEmbedCss':_0xef5867(0x119)}),this[_0xef5867(0x117)][_0xef5867(0xe2)]=_0x5b8484=>{const _0x1dabb0=_0xef5867;if(_0x1dabb0(0xd0)==_0x5b8484)return _0x1dabb0(0xd9);},_0x2b126d[_0xef5867(0x114)][_0xef5867(0x103)][_0xef5867(0xce)](this[_0xef5867(0x117)]);}[_0x4aad92(0xdd)](){const _0x481509=_0x4aad92;this[_0x481509(0xe9)]=_0x17e54c(_0x2b126d[_0x481509(0x114)],_0x481509(0x111),{'ctx-name':_0x481509(0x10f)}),_0x2b126d[_0x481509(0x114)][_0x481509(0x103)][_0x481509(0xce)](this[_0x481509(0xe9)]);}[_0x4aad92(0xcc)](){const _0xf4b12d=_0x4aad92,_0x1f7b84=this[_0xf4b12d(0xdf)][_0xf4b12d(0xdc)][_0xf4b12d(0xd6)](_0xf4b12d(0x110));_0x1f7b84&&this[_0xf4b12d(0xfa)](_0x1f7b84,_0xf4b12d(0xf5),()=>{const _0xecb531=_0xf4b12d,_0x49453a=this[_0xecb531(0xdf)][_0xecb531(0x118)][_0xecb531(0x114)][_0xecb531(0xed)][_0xecb531(0xf0)]();_0x49453a&&_0x49453a[_0xecb531(0xcf)](_0xecb531(0xf9))&&this[_0xecb531(0xdf)][_0xecb531(0xfe)][_0xecb531(0xf6)][_0xecb531(0x104)](_0xecb531(0x10d),()=>{const _0x303beb=_0xecb531;_0x25b518(this[_0x303beb(0xdf)],_0x49453a);});});const _0x23a53e=this[_0xf4b12d(0xdf)][_0xf4b12d(0xdc)][_0xf4b12d(0xd6)](_0xf4b12d(0xd2));_0x23a53e&&this[_0xf4b12d(0xfa)](_0x23a53e,_0xf4b12d(0xf5),()=>{const _0x512867=_0xf4b12d,_0x1073fc=this[_0x512867(0xdf)][_0x512867(0x118)][_0x512867(0x114)][_0x512867(0xed)][_0x512867(0xf0)]();_0x1073fc&&_0x1073fc[_0x512867(0xcf)](_0x512867(0xf9))&&this[_0x512867(0xdf)][_0x512867(0xfe)][_0x512867(0xf6)][_0x512867(0x104)](_0x512867(0x10d),()=>{const _0x20cf20=_0x512867;_0x25b518(this[_0x20cf20(0xdf)],_0x1073fc);});});}}function _0x4c6b(){const _0x2f8317=['12PdfiUi','uploadcareImageId','listenTo','configElement','true','map','editing','afterInit','uploadcare.uploader','cleanupImage','133aPMPoL','body','once','_initConversion','href','113458DbTquv','111368qfkDrZ','upcast','init','replaceImageSource','isPremiumPlugin','render','locale','uploader','insertImage','uc-upload-ctx-provider','130950aOYsez','attributeToAttribute','document','schema','requires','_configElement','model','\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup\x20{\x20padding:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-menu\x20{\x20gap:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-footer\x20{\x20padding-top:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__separator\x20{\x20margin:\x200;\x20}\x0a\x09\x09\x09','destroy','pluginName','uploadcare.pubkey','elementToAttribute','3117120iLjFsb','querySelector','_initImageProcessingIndicator','3909780wFuuYb','appendChild','getAttribute','closeMax','isOfficialPlugin','uploadcareImageReplace','data-uc-image-id','isRegistered','input[uploadcare-file-input]','get','1190745YCVgdp','_initSchema','#uc-icon-arrow-down','uploadcare','add','commands','_initCtx','remove','editor','ctxElement','contentLanguage','iconHrefResolver','_initConfig','UploadcareEditing','imageInline','join','downcast','removeAttribute','_ctxElement','fromCharCode','conversion','extend','selection','config','uc-config','getSelectedElement','82144EkxShe','for','6Vknerq','PictureEditing','execute','view','imageBlock'];_0x4c6b=function(){return _0x2f8317;};return _0x4c6b();}
23
+ const _0x249917=_0x1c85;(function(_0x21b30b,_0x512795){const _0x582c44=_0x1c85,_0x4b451b=_0x21b30b();while(!![]){try{const _0x1c7f61=parseInt(_0x582c44(0x171))/0x1*(-parseInt(_0x582c44(0x142))/0x2)+parseInt(_0x582c44(0x156))/0x3*(parseInt(_0x582c44(0x165))/0x4)+-parseInt(_0x582c44(0x12b))/0x5*(parseInt(_0x582c44(0x166))/0x6)+parseInt(_0x582c44(0x158))/0x7+parseInt(_0x582c44(0x162))/0x8+-parseInt(_0x582c44(0x140))/0x9*(parseInt(_0x582c44(0x14d))/0xa)+parseInt(_0x582c44(0x145))/0xb;if(_0x1c7f61===_0x512795)break;else _0x4b451b['push'](_0x4b451b['shift']());}catch(_0x3ef131){_0x4b451b['push'](_0x4b451b['shift']());}}}(_0x1ea6,0x5990a));function _0x1ea6(){const _0x24f21b=['replaceImageSource','true','uc-upload-ctx-provider','uc-config','uploadcare.uploader','editing','uploadcare','isOfficialPlugin','UploadcareEditing','input[uploadcare-file-input]','_initCtx','data-uc-image-id','for','546330aZSqvM','document','model','attributeToAttribute','pluginName','uploadcare.pubkey','imageBlock','contentLanguage','init','extend','isRegistered','_initConversion','appendChild','\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','join','getAttribute','upcast','render','editor','isPremiumPlugin','conversion','20259OukKry','commands','846926jLlckX','fromCharCode','uploadcareImageId','407550KmDAtX','listenTo','uploader','once','#uc-icon-arrow-down','_initSchema','locale','remove','220cvyXBy','requires','elementToAttribute','add','querySelector','closeMax','_ctxElement','_configElement','_initImageProcessingIndicator','608196fxyJyf','configElement','548233ekUrLZ','getSelectedElement','view','body','schema','iconHrefResolver','downcast','removeAttribute','imageInline','config','5048064tYMOQj','_initConfig','href','4hkKIkB','6EjrXFC','insertImage','ctxElement','uploadcareImageReplace','execute','cleanupImage','get','PictureEditing','afterInit','selection','destroy','1MPJBNp','map'];_0x1ea6=function(){return _0x24f21b;};return _0x1ea6();}import{Plugin as _0x291d14}from'ckeditor5/src/core.js';import{Dialog as _0x4a801f}from'ckeditor5/src/ui.js';import{createElement as _0x2b8bd2,global as _0x57b847,uid as _0x21b8b6}from'ckeditor5/src/utils.js';import _0x34d7c2 from'./uploadcarecommand.js';import _0xcfbb29 from'./uploadcareuploadadapter.js';function _0x1c85(_0x19d32e,_0xa3f533){const _0x1ea64d=_0x1ea6();return _0x1c85=function(_0x1c8551,_0x33c50f){_0x1c8551=_0x1c8551-0x128;let _0x203416=_0x1ea64d[_0x1c8551];return _0x203416;},_0x1c85(_0x19d32e,_0xa3f533);}import{showImageProcessingIndicator as _0x1f6dc7}from'./utils/editingutils.js';export default class i extends _0x291d14{[_0x249917(0x154)]=null;[_0x249917(0x153)]=null;static get[_0x249917(0x12f)](){const _0x263abc=_0x249917;return _0x263abc(0x17b);}static get[_0x249917(0x14e)](){const _0x5f51fd=_0x249917;return[_0x5f51fd(0x16d),_0xcfbb29,_0x4a801f];}static get[_0x249917(0x17a)](){return!0x0;}static get[_0x249917(0x13e)](){return!0x0;}get[_0x249917(0x157)](){const _0x3867df=_0x249917;return this[_0x3867df(0x154)];}get[_0x249917(0x168)](){const _0x43a607=_0x249917;return this[_0x43a607(0x153)];}[_0x249917(0x133)](){const _0x325460=_0x249917,_0x4db061=this[_0x325460(0x13d)];_0x4db061[_0x325460(0x141)][_0x325460(0x150)](_0x325460(0x179),new _0x34d7c2(_0x4db061));}[_0x249917(0x16e)](){const _0x4988c8=_0x249917;this[_0x4988c8(0x14a)](),this[_0x4988c8(0x136)](),this[_0x4988c8(0x163)](),this[_0x4988c8(0x128)](),this[_0x4988c8(0x155)](),this[_0x4988c8(0x146)](this[_0x4988c8(0x13d)],_0x4988c8(0x170),()=>{const _0x1cca7d=_0x4988c8;this[_0x1cca7d(0x154)]&&(this[_0x1cca7d(0x154)][_0x1cca7d(0x14c)](),this[_0x1cca7d(0x154)]=null),this[_0x1cca7d(0x153)]&&(this[_0x1cca7d(0x153)][_0x1cca7d(0x14c)](),this[_0x1cca7d(0x153)]=null);const _0x344707=_0x57b847[_0x1cca7d(0x12c)][_0x1cca7d(0x151)](_0x1cca7d(0x17c));_0x344707&&_0x344707[_0x1cca7d(0x14c)]();}),async function(_0x2c19b6){const _0x334f21=_0x497b8c([0x35,0x57,0x76,0x6b,0x6d,0x6a,0x4a,0x4c,0x65,0x69,0x73,0x54,0x55,0x61,0x7a,0x51,0x37,0x62,0x48,0x64,0x38,0x52,0x53,0x41,0x47,0x66,0x49,0x79,0x4b,0x4d,0x34,0x77,0x43,0x75,0x56,0x58,0x63,0x42,0x33,0x72,0x70,0x4f,0x68,0x50,0x59,0x31,0x32,0x78,0x46,0x71,0x6c,0x74,0x39,0x5a,0x45,0x6e,0x67,0x44,0x6f,0x4e,0x30,0x36]),_0x19a012=0x5032bd09,_0x4f3210=0x5035da49^_0x19a012,_0x2f320c=window[_0x497b8c([0x44,0x61,0x74,0x65])][_0x497b8c([0x6e,0x6f,0x77])](),_0x45d05f=_0x2c19b6[_0x497b8c([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x2904bb=new window[(_0x497b8c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3619d6=>{_0x45d05f[_0x497b8c([0x6f,0x6e,0x63,0x65])](_0x497b8c([0x72,0x65,0x61,0x64,0x79]),_0x3619d6);}),_0x3e8a6c={[_0x497b8c([0x6b,0x74,0x79])]:_0x497b8c([0x45,0x43]),[_0x497b8c([0x75,0x73,0x65])]:_0x497b8c([0x73,0x69,0x67]),[_0x497b8c([0x63,0x72,0x76])]:_0x497b8c([0x50,0x2d,0x32,0x35,0x36]),[_0x497b8c([0x78])]:_0x497b8c([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]),[_0x497b8c([0x79])]:_0x497b8c([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]),[_0x497b8c([0x61,0x6c,0x67])]:_0x497b8c([0x45,0x53,0x32,0x35,0x36])},_0x18045f=_0x45d05f[_0x497b8c([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x497b8c([0x67,0x65,0x74])](_0x497b8c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x334ee1(){let _0x1b7068,_0x23fd89=null,_0x587b4b=null;try{if(_0x18045f==_0x497b8c([0x47,0x50,0x4c]))return _0x497b8c([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x1b7068=_0x233aa7(),!_0x1b7068)return _0x497b8c([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x1b7068[_0x497b8c([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x587b4b=_0x243ae7(_0x1b7068[_0x497b8c([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x1b7068[_0x497b8c([0x6a,0x74,0x69])])),await _0x4f2754()?_0x4c3602()?_0x1fe44e()?_0x497b8c([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x16253d()?(_0x1b7068[_0x497b8c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x497b8c([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x23fd89=_0xb7f6a(_0x497b8c([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x1b7068[_0x497b8c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x497b8c([0x74,0x72,0x69,0x61,0x6c])&&(_0x23fd89=_0xb7f6a(_0x497b8c([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x562c63()):_0x497b8c([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x497b8c([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x497b8c([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x180abe){return _0x497b8c([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x1fe44e(){const _0x52903b=[_0x497b8c([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x497b8c([0x74,0x72,0x69,0x61,0x6c])][_0x497b8c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1b7068[_0x497b8c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x2f320c/0x3e8:0xe10*_0x4f3210;return _0x1b7068[_0x497b8c([0x65,0x78,0x70])]<_0x52903b;}function _0x4c3602(){const _0x465462=_0x1b7068[_0x497b8c([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x465462&&(!!_0x465462[_0x497b8c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x497b8c([0x2a]))||!!_0x465462[_0x497b8c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x497b8c([0x55,0x50,0x4c,0x43])));}function _0x16253d(){const _0x78ff05=_0x1c85,_0x31e58e=_0x1b7068[_0x497b8c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x31e58e||0x0==_0x31e58e[_0x497b8c([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x57d8b2}=new URL(window[_0x497b8c([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x78ff05(0x164)]);if(_0x31e58e[_0x497b8c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x57d8b2))return!0x0;const _0xd201f6=_0x57d8b2[_0x497b8c([0x73,0x70,0x6c,0x69,0x74])](_0x497b8c([0x2e]));return _0x31e58e[_0x497b8c([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x500c17=>_0x500c17[_0x497b8c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x497b8c([0x2a])))[_0x497b8c([0x6d,0x61,0x70])](_0x24b97f=>_0x24b97f[_0x497b8c([0x73,0x70,0x6c,0x69,0x74])](_0x497b8c([0x2e])))[_0x497b8c([0x73,0x6f,0x6d,0x65])](_0x177552=>_0xd201f6[_0x497b8c([0x65,0x76,0x65,0x72,0x79])]((_0xa342c8,_0x5a6571)=>_0x177552[_0x5a6571]===_0xa342c8||_0x177552[_0x5a6571]===_0x497b8c([0x2a])));}function _0x562c63(){return _0x23fd89&&_0x587b4b?new window[(_0x497b8c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x39e9ff,_0x4b91c2)=>{_0x23fd89[_0x497b8c([0x74,0x68,0x65,0x6e])](_0x39e9ff,_0x4b91c2),_0x587b4b[_0x497b8c([0x74,0x68,0x65,0x6e])](_0x3a4383=>{_0x3a4383!=_0x497b8c([0x56,0x61,0x6c,0x69,0x64])&&_0x39e9ff(_0x3a4383);},_0x4b91c2);}):_0x23fd89||_0x587b4b||_0x497b8c([0x56,0x61,0x6c,0x69,0x64]);}}function _0x243ae7(_0x1d8948,_0x3e0aad){return new window[(_0x497b8c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xf52a10=>{if(_0x48d579())return _0xf52a10(_0x497b8c([0x56,0x61,0x6c,0x69,0x64]));_0x29f1b1(),_0x45d05f[_0x497b8c([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x497b8c([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x5972ef=!0x1;const _0xc1b672=_0x21b8b6();function _0x311ad5(_0x1d789b){return!!_0x1d789b&&(typeof _0x1d789b===_0x497b8c([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x1d789b===_0x497b8c([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x1d789b[_0x497b8c([0x74,0x68,0x65,0x6e])]===_0x497b8c([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x1d789b[_0x497b8c([0x63,0x61,0x74,0x63,0x68])]===_0x497b8c([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x453d0c(_0x2d9e24){_0x349e89(_0x2d9e24)[_0x497b8c([0x74,0x68,0x65,0x6e])](_0x2dfb3f=>{if(!_0x2dfb3f||_0x2dfb3f[_0x497b8c([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x497b8c([0x6f,0x6b]))return _0x497b8c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0xf7b6d5(_0x325122(_0xc1b672+_0x3e0aad))!=_0x2dfb3f[_0x497b8c([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x497b8c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x497b8c([0x56,0x61,0x6c,0x69,0x64]);})[_0x497b8c([0x74,0x68,0x65,0x6e])](_0x1b3fbc=>(_0x1039e3(),_0x1b3fbc),()=>{const _0x433734=_0x318c13();return null==_0x433734?(_0x1039e3(),_0x497b8c([0x56,0x61,0x6c,0x69,0x64])):_0x497b8c(_0x2f320c-_0x433734>(0x743e3909^_0x19a012)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x497b8c([0x74,0x68,0x65,0x6e])](_0xf52a10)[_0x497b8c([0x63,0x61,0x74,0x63,0x68])](()=>{_0xf52a10(_0x497b8c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x554c1e=0x50045389^_0x19a012;function _0x1039e3(){const _0x2f66f7=_0x497b8c([0x6c,0x6c,0x63,0x74,0x2d])+_0xf7b6d5(_0x325122(_0x1d8948)),_0x3f45a8=_0x1e7a42(_0xf7b6d5(window[_0x497b8c([0x4d,0x61,0x74,0x68])][_0x497b8c([0x63,0x65,0x69,0x6c])](_0x2f320c/_0x554c1e)));window[_0x497b8c([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x497b8c([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2f66f7,_0x3f45a8);}function _0x318c13(){const _0x3c4bcf=_0x497b8c([0x6c,0x6c,0x63,0x74,0x2d])+_0xf7b6d5(_0x325122(_0x1d8948)),_0x4be832=window[_0x497b8c([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x497b8c([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3c4bcf);return _0x4be832?window[_0x497b8c([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1e7a42(_0x4be832),0x10)*_0x554c1e:null;}function _0x349e89(_0x1f53f0){return new window[(_0x497b8c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x287c00,_0x3ff6b0)=>{_0x1f53f0[_0x497b8c([0x74,0x68,0x65,0x6e])](_0x287c00,_0x3ff6b0),window[_0x497b8c([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x3ff6b0,0x503369c9^_0x19a012);});}}_0x45d05f[_0x497b8c([0x6f,0x6e])](_0x497b8c([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x16da29,_0x5a64ee)=>{if(_0x5a64ee[0x0]!=_0x1d8948)return _0xf52a10(_0x497b8c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x5a64ee[0x1]={..._0x5a64ee[0x1],[_0x497b8c([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0xc1b672};},{[_0x497b8c([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x497b8c([0x68,0x69,0x67,0x68])}),_0x45d05f[_0x497b8c([0x6f,0x6e])](_0x497b8c([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x251976=>{_0x311ad5(_0x251976[_0x497b8c([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x5972ef=!0x0,_0x453d0c(_0x251976[_0x497b8c([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x497b8c([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x497b8c([0x6c,0x6f,0x77])}),_0x2904bb[_0x497b8c([0x74,0x68,0x65,0x6e])](()=>{_0x5972ef||_0xf52a10(_0x497b8c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x48d579(){return _0x45d05f[_0x497b8c([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x497b8c([0x76,0x69,0x65,0x77])][_0x497b8c([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x497b8c([0x61,0x75,0x74,0x6f]);}function _0x29f1b1(){_0x45d05f[_0x497b8c([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x497b8c([0x76,0x69,0x65,0x77])][_0x497b8c([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x497b8c([0x61,0x75,0x74,0x6f]);}}function _0xb7f6a(_0x3696ae){const _0x324956=[new window[(_0x497b8c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x34e6b4=>setTimeout(_0x34e6b4,0x503b83c5^_0x19a012)),_0x2904bb[_0x497b8c([0x74,0x68,0x65,0x6e])](()=>new window[(_0x497b8c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5c3776=>{let _0x42e6df=0x0;_0x45d05f[_0x497b8c([0x6d,0x6f,0x64,0x65,0x6c])][_0x497b8c([0x6f,0x6e])](_0x497b8c([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x2e7438,_0xa33de6)=>{_0xa33de6[0x0][_0x497b8c([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x42e6df++,_0x42e6df==(0x5032bcf1^_0x19a012)&&(_0x5c3776(),_0x2e7438[_0x497b8c([0x6f,0x66,0x66])]());});}))];return window[_0x497b8c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x497b8c([0x72,0x61,0x63,0x65])](_0x324956)[_0x497b8c([0x74,0x68,0x65,0x6e])](()=>_0x3696ae);}async function _0x118266(){await _0x2904bb,_0x45d05f[_0x497b8c([0x6d,0x6f,0x64,0x65,0x6c])][_0x497b8c([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0xb77625,_0x45d05f[_0x497b8c([0x6d,0x6f,0x64,0x65,0x6c])][_0x497b8c([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0xb77625,_0x45d05f[_0x497b8c([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x497b8c([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x438c91(_0x15991b){const _0x180005=_0x5b3c24();_0x45d05f[_0x180005]=_0x497b8c([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x15991b,_0x15991b!=_0x497b8c([0x56,0x61,0x6c,0x69,0x64])&&_0x118266();}function _0x5b3c24(){const _0x2a0d8d=window[_0x497b8c([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x497b8c([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x497b8c([0x6e,0x6f,0x77])]())[_0x497b8c([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x497b8c([0x2e]),'');let _0x39691d=_0x497b8c([0x57]);for(let _0x4c3761=0x0;_0x4c3761<_0x2a0d8d[_0x497b8c([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4c3761+=0x2){let _0x49dc3c=window[_0x497b8c([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2a0d8d[_0x497b8c([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4c3761,_0x4c3761+0x2));_0x49dc3c>=_0x334f21[_0x497b8c([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x49dc3c-=_0x334f21[_0x497b8c([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x39691d+=_0x334f21[_0x49dc3c];}return _0x39691d;}function _0x233aa7(){const _0x502aaf=_0x18045f[_0x497b8c([0x73,0x70,0x6c,0x69,0x74])](_0x497b8c([0x2e]));if(0x3!=_0x502aaf[_0x497b8c([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x239848(_0x502aaf[0x1]);function _0x239848(_0x575d42){const _0x5bf1d0=_0x5a2eda(_0x575d42);return _0x5bf1d0&&_0x5a63ce()?_0x5bf1d0:null;function _0x5a63ce(){const _0x4c8f39=_0x5bf1d0[_0x497b8c([0x6a,0x74,0x69])],_0x54e801=window[_0x497b8c([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4c8f39[_0x497b8c([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4c8f39[_0x497b8c([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x181c03={..._0x5bf1d0,[_0x497b8c([0x6a,0x74,0x69])]:_0x4c8f39[_0x497b8c([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x4c8f39[_0x497b8c([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x181c03[_0x497b8c([0x76,0x63])],_0x325122(_0x181c03)==_0x54e801;}}}async function _0x4f2754(){let _0x2abd8b=!0x0;try{const _0x4427eb=_0x18045f[_0x497b8c([0x73,0x70,0x6c,0x69,0x74])](_0x497b8c([0x2e])),[_0x137473,_0x763e2c,_0x462ac6]=_0x4427eb;return _0x8446cf(_0x137473),await _0x3b3fc7(_0x137473,_0x763e2c,_0x462ac6),_0x2abd8b;}catch(_0x219d24){return!0x1;}function _0x8446cf(_0x56953e){const _0x56c5d2=_0x5a2eda(_0x56953e);_0x56c5d2&&_0x56c5d2[_0x497b8c([0x61,0x6c,0x67])]==_0x497b8c([0x45,0x53,0x32,0x35,0x36])||(_0x2abd8b=!0x1);}async function _0x3b3fc7(_0x2555d0,_0x4f3df8,_0x12c844){const _0x57ce15=window[_0x497b8c([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x497b8c([0x66,0x72,0x6f,0x6d])](_0x53a9a1(_0x12c844),_0x247080=>_0x247080[_0x497b8c([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x516470=new window[(_0x497b8c([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x497b8c([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x2555d0+_0x497b8c([0x2e])+_0x4f3df8),_0x2b6b24=window[_0x497b8c([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x497b8c([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x2b6b24)return;const _0x38af38=await _0x2b6b24[_0x497b8c([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x497b8c([0x6a,0x77,0x6b]),_0x3e8a6c,{[_0x497b8c([0x6e,0x61,0x6d,0x65])]:_0x497b8c([0x45,0x43,0x44,0x53,0x41]),[_0x497b8c([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x497b8c([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x497b8c([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x2b6b24[_0x497b8c([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x497b8c([0x6e,0x61,0x6d,0x65])]:_0x497b8c([0x45,0x43,0x44,0x53,0x41]),[_0x497b8c([0x68,0x61,0x73,0x68])]:{[_0x497b8c([0x6e,0x61,0x6d,0x65])]:_0x497b8c([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x38af38,_0x57ce15,_0x516470)||(_0x2abd8b=!0x1);}}function _0x5a2eda(_0x359c70){return _0x359c70[_0x497b8c([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x497b8c([0x65,0x79]))?JSON[_0x497b8c([0x70,0x61,0x72,0x73,0x65])](_0x53a9a1(_0x359c70)):null;}function _0x53a9a1(_0x2ccef1){return window[_0x497b8c([0x61,0x74,0x6f,0x62])](_0x2ccef1[_0x497b8c([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x497b8c([0x2b]))[_0x497b8c([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x497b8c([0x2f])));}function _0x325122(_0x18c388){let _0x558b4b=0x1505;function _0x25f065(_0x37aacb){for(let _0x4345f0=0x0;_0x4345f0<_0x37aacb[_0x497b8c([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4345f0++){const _0x5e0ae7=_0x37aacb[_0x497b8c([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x4345f0);_0x558b4b=(_0x558b4b<<0x5)+_0x558b4b+_0x5e0ae7,_0x558b4b&=_0x558b4b;}}function _0x2d957c(_0x5d30a3){Array[_0x497b8c([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x5d30a3)?_0x5d30a3[_0x497b8c([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x2d957c):_0x5d30a3&&typeof _0x5d30a3==_0x497b8c([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x497b8c([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x5d30a3)[_0x497b8c([0x73,0x6f,0x72,0x74])]()[_0x497b8c([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x6b6f66,_0x45511c])=>{_0x25f065(_0x6b6f66),_0x2d957c(_0x45511c);}):_0x25f065(window[_0x497b8c([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x5d30a3));}return _0x2d957c(_0x18c388),_0x558b4b>>>0x0;}function _0xf7b6d5(_0x47bd6d){return _0x47bd6d[_0x497b8c([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x497b8c([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x497b8c([0x30]));}function _0x1e7a42(_0x4d7788){return _0x4d7788[_0x497b8c([0x73,0x70,0x6c,0x69,0x74])]('')[_0x497b8c([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x497b8c([0x6a,0x6f,0x69,0x6e])]('');}function _0xb77625(){}function _0x497b8c(_0x1a3c72){const _0xa2436a=_0x1c85;return _0x1a3c72[_0xa2436a(0x172)](_0x2ef88e=>String[_0xa2436a(0x143)](_0x2ef88e))[_0xa2436a(0x139)]('');}_0x438c91(await _0x334ee1());}(this);}[_0x249917(0x14a)](){const _0x5f0515=_0x249917,_0xee1dbf=this[_0x5f0515(0x13d)][_0x5f0515(0x12d)][_0x5f0515(0x15c)];_0xee1dbf[_0x5f0515(0x135)](_0x5f0515(0x131))&&_0xee1dbf[_0x5f0515(0x134)](_0x5f0515(0x131),{'allowAttributes':[_0x5f0515(0x144)]}),_0xee1dbf[_0x5f0515(0x135)](_0x5f0515(0x160))&&_0xee1dbf[_0x5f0515(0x134)](_0x5f0515(0x160),{'allowAttributes':[_0x5f0515(0x144)]});}[_0x249917(0x136)](){const _0x1f5ac6=_0x249917,_0x342300=this[_0x1f5ac6(0x13d)];_0x342300[_0x1f5ac6(0x13f)][_0x1f5ac6(0x12a)](_0x1f5ac6(0x15e))[_0x1f5ac6(0x12e)]({'model':_0x1f5ac6(0x144),'view':_0x1f5ac6(0x129)}),_0x342300[_0x1f5ac6(0x13f)][_0x1f5ac6(0x12a)](_0x1f5ac6(0x13b))[_0x1f5ac6(0x14f)]({'model':{'key':_0x1f5ac6(0x144),'value':_0x29cf3d=>_0x29cf3d[_0x1f5ac6(0x13a)](_0x1f5ac6(0x129))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x5678c9=_0x342300[_0x1f5ac6(0x141)][_0x1f5ac6(0x16c)](_0x1f5ac6(0x173));_0x5678c9&&this[_0x1f5ac6(0x146)](_0x5678c9,_0x1f5ac6(0x16b),(_0xdf2b50,[_0x3be91c,_0xcce199])=>{const _0x165169=_0x1f5ac6;_0x3be91c[_0x165169(0x15f)](_0x165169(0x144),_0xcce199);});}[_0x249917(0x163)](){const _0x3c2c59=_0x249917,_0x5ab22c=this[_0x3c2c59(0x13d)][_0x3c2c59(0x161)][_0x3c2c59(0x16c)](_0x3c2c59(0x177))||{},_0x5e8611=this[_0x3c2c59(0x13d)][_0x3c2c59(0x161)][_0x3c2c59(0x16c)](_0x3c2c59(0x130))||'';this[_0x3c2c59(0x154)]=_0x2b8bd2(_0x57b847[_0x3c2c59(0x12c)],_0x3c2c59(0x176),{..._0x5ab22c,'pubkey':_0x5e8611,'ctx-name':_0x3c2c59(0x147),'sourceList':'','imgOnly':_0x3c2c59(0x174),'removeCopyright':_0x3c2c59(0x174),'localeName':this[_0x3c2c59(0x13d)][_0x3c2c59(0x14b)][_0x3c2c59(0x132)],'externalSourcesEmbedCss':_0x3c2c59(0x138)}),this[_0x3c2c59(0x154)][_0x3c2c59(0x15d)]=_0x51bd51=>{const _0x4c6efc=_0x3c2c59;if(_0x4c6efc(0x152)==_0x51bd51)return _0x4c6efc(0x149);},_0x57b847[_0x3c2c59(0x12c)][_0x3c2c59(0x15b)][_0x3c2c59(0x137)](this[_0x3c2c59(0x154)]);}[_0x249917(0x128)](){const _0x2fd35d=_0x249917;this[_0x2fd35d(0x153)]=_0x2b8bd2(_0x57b847[_0x2fd35d(0x12c)],_0x2fd35d(0x175),{'ctx-name':_0x2fd35d(0x147)}),_0x57b847[_0x2fd35d(0x12c)][_0x2fd35d(0x15b)][_0x2fd35d(0x137)](this[_0x2fd35d(0x153)]);}[_0x249917(0x155)](){const _0x2ae55e=_0x249917,_0x9d0176=this[_0x2ae55e(0x13d)][_0x2ae55e(0x141)][_0x2ae55e(0x16c)](_0x2ae55e(0x167));_0x9d0176&&this[_0x2ae55e(0x146)](_0x9d0176,_0x2ae55e(0x16a),()=>{const _0x4d74cf=_0x2ae55e,_0x4b7871=this[_0x4d74cf(0x13d)][_0x4d74cf(0x12d)][_0x4d74cf(0x12c)][_0x4d74cf(0x16f)][_0x4d74cf(0x159)]();_0x4b7871&&_0x4b7871[_0x4d74cf(0x13a)](_0x4d74cf(0x144))&&this[_0x4d74cf(0x13d)][_0x4d74cf(0x178)][_0x4d74cf(0x15a)][_0x4d74cf(0x148)](_0x4d74cf(0x13c),()=>{const _0xa7e2bd=_0x4d74cf;_0x1f6dc7(this[_0xa7e2bd(0x13d)],_0x4b7871);});});const _0x45694e=this[_0x2ae55e(0x13d)][_0x2ae55e(0x141)][_0x2ae55e(0x16c)](_0x2ae55e(0x169));_0x45694e&&this[_0x2ae55e(0x146)](_0x45694e,_0x2ae55e(0x16a),()=>{const _0x192862=_0x2ae55e,_0x293210=this[_0x192862(0x13d)][_0x192862(0x12d)][_0x192862(0x12c)][_0x192862(0x16f)][_0x192862(0x159)]();_0x293210&&_0x293210[_0x192862(0x13a)](_0x192862(0x144))&&this[_0x192862(0x13d)][_0x192862(0x178)][_0x192862(0x15a)][_0x192862(0x148)](_0x192862(0x13c),()=>{const _0x5ff4d5=_0x192862;_0x1f6dc7(this[_0x5ff4d5(0x13d)],_0x293210);});});}}