@ckeditor/ckeditor5-uploadcare 0.0.0-nightly-20251011.0 → 0.0.0-nightly-20251012.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -20,6 +20,6 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{Plugin as _0x55795a,Command as _0x453090}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x30fb44,IconGooglePhotos as _0x1cb31d,IconGoogleDrive as _0x6115df,IconFacebook as _0xf283f6,IconDropbox as _0x54fa39,IconUploadcareLink as _0x30b2fd,IconUploadcareImageUpload as _0x10ba8f,IconError as _0x461168,IconUploadcareImageEdit as _0x4b0aab}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x17b7cf,MenuBarMenuListItemButtonView as _0x322e65,View as _0x2b7683,FocusCycler as _0x40883d,Dialog as _0x23db15,DialogViewPosition as _0x3461e1,SpinnerView as _0x4d0e0e,IconView as _0x1b02c3,Notification as _0x163e8c}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x22b15f,DomEmitterMixin as _0x28671e,global as _0x506da4,getAncestors as _0x4fbc2a,ObservableMixin as _0x15a8fe,uid as _0x2c4b05,createElement as _0x1d5897}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x5b75c7}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0xd23dd4,info as _0x122251}from'@uploadcare/upload-client';import*as _0x4b2ba7 from'@uploadcare/file-uploader';var i=function(_0x17de4e){return _0x17de4e['Local']='local',_0x17de4e['URL']='url',_0x17de4e['Dropbox']='dropbox',_0x17de4e['GDrive']='gdrive',_0x17de4e['Facebook']='facebook',_0x17de4e['GPhotos']='gphotos',_0x17de4e['OneDrive']='onedrive',_0x17de4e;}({});function _(_0x310800,_0xbdeacb,_0x3897d){const t=_0x310800['t'],_0x2d2acf=_0x310800['t'];switch(_0xbdeacb){case i['Local']:return{'text':_0x2d2acf('Insert'===_0x3897d?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x2d2acf('From\x20computer')};case i['URL']:return{'text':'Insert'===_0x3897d?_0x2d2acf('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x2d2acf('Via\x20URL')};case i['Dropbox']:return{'text':t('Insert'===_0x3897d?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case i['Facebook']:return{'text':t('Insert'===_0x3897d?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case i['GDrive']:return{'text':t('Insert'===_0x3897d?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case i['GPhotos']:return{'text':t('Insert'===_0x3897d?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case i['OneDrive']:return{'text':t('Insert'===_0x3897d?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0xbdeacb;}}class e extends _0x55795a{['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 _0x2ee2c0=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x5446a1;for(const _0x4cbeda in _0x2ee2c0){const _0x820e73=_0x4cbeda,_0x4996ed=_0x2ee2c0[_0x820e73];if('uploadcareLicenseKeyValid'==_0x4996ed||'uploadcareLicenseKeyInvalid'==_0x4996ed||'uploadcareLicenseKeyExpired'==_0x4996ed||'uploadcareLicenseKeyDomainLimit'==_0x4996ed||'uploadcareLicenseKeyNotAllowed'==_0x4996ed||'uploadcareLicenseKeyEvaluationLimit'==_0x4996ed||'uploadcareLicenseKeyTrialLimit'==_0x4996ed||'uploadcareLicenseKeyUsageLimit'==_0x4996ed){delete _0x2ee2c0[_0x820e73],_0x5446a1=_0x4996ed,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x5446a1&&_0x2ee2c0['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x5446a1&&_0x2ee2c0['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x5446a1&&_0x2ee2c0['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x5446a1&&_0x2ee2c0['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x5446a1&&_0x2ee2c0['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyTrialLimit'==_0x5446a1&&_0x2ee2c0['_showLicenseError']('trialLimit'),'uploadcareLicenseKeyUsageLimit'==_0x5446a1&&_0x2ee2c0['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x290d91}=this,_0x3fa1d9=_0x290d91['commands']['get']('uploadcare');if(!_0x3fa1d9)return;const _0x16cf65=this['_normalizeConfigSourceList'](_0x290d91['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x510679,_0x5707c4)=>{const _0x5efdd5=this['_getIntegrationKey'](_0x5707c4['type']);return _0x510679[_0x5efdd5]||(_0x510679[_0x5efdd5]=[]),_0x510679[_0x5efdd5]['push'](_0x5707c4),_0x510679;},{});_0x290d91['plugins']['has']('ImageInsertUI')&&_0x290d91['commands']['get']('uploadcare')&&Object['entries'](_0x16cf65)['forEach'](([_0x44c559,_0x5cb4c9])=>{_0x290d91['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x44c559,'observable':()=>_0x3fa1d9,'buttonViewCreator':()=>this['_createToolbarButton'](_0x5cb4c9),'formViewCreator':()=>this['_createDropdownButtons'](_0x5cb4c9),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x5cb4c9),'override':'assetManager'!==_0x44c559});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x44d7cd){const {locale:_0x22efc5}=this['editor'];return _0x44d7cd['map'](_0x3e37f5=>{const _0x3628a4=_(_0x22efc5,_0x3e37f5,'Insert');switch(_0x3e37f5){case i['Local']:return{'icon':_0x10ba8f,'type':i['Local'],..._0x3628a4};case i['URL']:return{'icon':_0x30b2fd,'type':i['URL'],..._0x3628a4};case i['Dropbox']:return{'icon':_0x54fa39,'type':i['Dropbox'],..._0x3628a4};case i['Facebook']:return{'icon':_0xf283f6,'type':i['Facebook'],..._0x3628a4};case i['GDrive']:return{'icon':_0x6115df,'type':i['GDrive'],..._0x3628a4};case i['GPhotos']:return{'icon':_0x1cb31d,'type':i['GPhotos'],..._0x3628a4};case i['OneDrive']:return{'icon':_0x30fb44,'type':i['OneDrive'],..._0x3628a4};}});}['_getIntegrationKey'](_0x3eb7c9){switch(_0x3eb7c9){case i['Local']:return'upload';case i['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x28643b,_0x206238){const _0x336c4c=this['editor'],_0xe95ca=new _0x28643b(_0x336c4c['locale']),_0x2bb86d=_0x336c4c['commands']['get']('uploadcare');return _0xe95ca['bind']('isEnabled')['to'](_0x2bb86d),_0xe95ca['on']('execute',()=>{_0x2bb86d['execute'](_0x206238);}),_0xe95ca;}['_createToolbarButton'](_0x31b556){const {locale:_0x440d2b}=this['editor'],_0x5af12f=this['editor']['plugins']['get']('ImageInsertUI'),_0x214483=_0x31b556[0x0],_0x393727=this['_createButton'](_0x17b7cf,_0x214483['type']);return _0x393727['icon']=_0x214483['icon'],_0x393727['bind']('label')['to'](_0x5af12f,'isImageSelected',_0x3c894c=>_(_0x440d2b,_0x214483['type'],_0x3c894c?'Replace':'Insert')['text']),_0x393727['tooltip']=!0x0,_0x393727;}['_createDropdownButtons'](_0x43ec92){const {locale:_0x161aca}=this['editor'],_0x1dfb66=this['editor']['plugins']['get']('ImageInsertUI');return _0x43ec92['map'](_0x1ced60=>{const _0x5a80f0=this['_createButton'](_0x17b7cf,_0x1ced60['type']);return _0x5a80f0['withText']=!0x0,_0x5a80f0['icon']=_0x1ced60['icon'],_0x5a80f0['bind']('label')['to'](_0x1dfb66,'isImageSelected',_0x4eb242=>_(_0x161aca,_0x1ced60['type'],_0x4eb242?'Replace':'Insert')['text']),_0x5a80f0;});}['_createMenuBarButtons'](_0x26d7bc){return _0x26d7bc['map'](_0x335e78=>{const _0x1633a6=this['_createButton'](_0x322e65,_0x335e78['type']);return _0x1633a6['icon']=_0x335e78['icon'],_0x1633a6['label']=_0x335e78['shortText'],_0x1633a6;});}}class F extends _0x2b7683{['focusTracker'];['focusCycler'];constructor(_0x340816){super(_0x340816),this['focusTracker']=new _0x22b15f(),this['focusCycler']=new _0x40883d({'focusables':this['createCollection'](),'focusTracker':this['focusTracker']});}['getFocusableElement'](){return{'tag':'div','attributes':{'aria-hidden':'true','tabindex':'0'},'on':{'focus':this['bindTemplate']['to'](()=>{this['focusCycler']['fire']('forwardCycle');})}};}}class x extends F{constructor(_0x1bf050,_0x1fa7d5){super(_0x1bf050),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-'+_0x1fa7d5}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}}function C(_0x321d04,_0x2d2641){const _0x48e8d2=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x5bc6f4=>_0x5bc6f4<=_0x2d2641)['map'](_0x5e6d8c=>_0x321d04['replace'](/\/$/,'')+'/-/resize/'+_0x5e6d8c+'x/\x20'+_0x5e6d8c+'w');return{'imageFallbackUrl':_0x321d04,'imageSources':[{'srcset':_0x48e8d2['join'](',\x20'),'sizes':'(max-width:\x20'+_0x2d2641+'px)\x20100vw,\x20'+_0x2d2641+'px','type':'image/webp'}]};}function S(_0x12fd06,_0x140c50,_0x21f4dc){const _0x5498ca=_0x12fd06['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x5498ca?parseInt(_0x5498ca[0x1],0xa):_0x140c50,'height':_0x5498ca?parseInt(_0x5498ca[0x2],0xa):_0x21f4dc};}function p(_0x242d98,_0x1caa4a){const _0x520160=new(_0x28671e())(),_0x222e17=_0x242d98['plugins']['get']('ImageUtils'),_0x20e8ed=_0x242d98['editing']['mapper']['toViewElement'](_0x1caa4a),_0x8aa2d9=_0x222e17['findViewImgElement'](_0x20e8ed),_0x4356a7=_0x242d98['editing']['view']['domConverter']['viewToDom'](_0x8aa2d9),_0xf74a44=_0x1caa4a['getAttribute']('width'),_0x2e980a=_0x1caa4a['getAttribute']('height'),_0x31041a='image-processing';_0x242d98['editing']['view']['change'](_0x3775d4=>{_0x3775d4['addClass'](_0x31041a,_0x20e8ed),_0x3775d4['setStyle']('aspect-ratio',_0xf74a44+'/'+_0x2e980a,_0x8aa2d9);}),_0x520160['listenTo'](_0x4356a7,'load',()=>{_0x520160['stopListening'](_0x4356a7,'load'),_0x242d98['editing']['view']['change'](_0x4d0dd6=>{_0x4d0dd6['removeClass'](_0x31041a,_0x20e8ed),_0x4d0dd6['removeStyle']('aspect-ratio',_0x8aa2d9);});});}function z(_0x238070){if(Array['isArray'](_0x238070)){const _0x12e394=_0x238070['map'](z);return _0x4c2911=>_0x12e394['some'](_0x4c1299=>_0x4c1299(_0x4c2911));}if('origin'==_0x238070){const _0xf66644=_0x506da4['window']['location']['origin'];return _0x2ff320=>new URL(_0x2ff320,_0x506da4['document']['baseURI'])['origin']==_0xf66644;}return'function'==typeof _0x238070?_0x238070:_0x238070 instanceof RegExp?_0x20c6a0=>!(!_0x20c6a0['match'](_0x238070)&&!_0x20c6a0['replace'](/^https?:\/\//,'')['match'](_0x238070)):()=>!0x1;}function A(_0x462a52,_0x17f326){return _0x4fbc2a(_0x462a52['target'])['includes'](_0x17f326);}class n extends/* #__PURE__ -- @preserve */
24
- _0x15a8fe(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x903cbc,_0x501104,_0x1840dc){super(),this['_editor']=_0x903cbc,this['_editing']=_0x501104,this['_dialog']=_0x903cbc['plugins']['get'](_0x23db15),this['_api']=_0x501104['ctxElement']['getAPI'](),this['_type']=_0x1840dc,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:_0x22099f,model:_0x25897c}=this['_editor'],_0x1d34cd=_0x25897c['document']['selection']['getSelectedElement'](),_0x23104c=_0x1d34cd&&(_0x1d34cd['is']('element','imageBlock')||_0x1d34cd['is']('element','imageInline'));this['_formView']=new x(_0x22099f,this['_editing']['ucContextId']),this['_dialog']['show']({'id':'uploadCare','icon':_0x10ba8f,'title':_(_0x22099f,this['_type'],_0x23104c?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x3461e1['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x1ed970=>!A(_0x1ed970,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x5ee201}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x35e2a3=>{const _0x3621a0=_0x5ee201['length'];for(const _0x1a8fd7 of _0x5ee201){const _0x24bfc3=_0x1a8fd7===_0x5ee201[_0x3621a0-0x1],{cdnUrl:_0x532a01,fileInfo:_0x3c4de4}=_0x1a8fd7;if(!_0x532a01||!_0x3c4de4)continue;const {width:_0x2170c4,height:_0xfacf0c}=_0x3c4de4['imageInfo'],_0x45b021=S(_0x532a01,_0x2170c4,_0xfacf0c),_0x148acc=C(_0x532a01,_0x45b021['width']),_0x5785a3={'id':_0x3c4de4['uuid'],'type':'image','attributes':{'imageDimension':_0x45b021,..._0x148acc}};this['_insertAsset'](_0x5785a3,_0x24bfc3,_0x35e2a3);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x16b2ad=>{'idle'===_0x16b2ad['detail']['status']&&!_0x16b2ad['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===i['Local']?this['_api']['setCurrentActivity'](i['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x56e934,_0x5e8075,_0x174d2e){const _0x2e2530=this['_editor']['model']['document']['selection'],_0x8c9b38=_0x2e2530['getSelectedElement'](),_0x311e8d=!(!_0x8c9b38||!_0x8c9b38['is']('element','imageInline'));_0x174d2e['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x56e934,_0x311e8d),_0x5e8075||_0x174d2e['setSelection'](_0x2e2530['getLastPosition']());}['_insertImage'](_0x56155f,_0xf8c3f4){const _0x2e1157=this['_editor'],{imageDimension:_0x15b411,imageFallbackUrl:_0x40a781,imageSources:_0x3c85ae}=_0x56155f['attributes'];_0x2e1157['execute']('insertImage',{'imageType':_0xf8c3f4?'imageInline':null,'source':{'uploadcareImageId':_0x56155f['id'],'src':_0x40a781,'sources':_0x3c85ae,..._0x15b411}});}}class w extends _0x453090{['_editing'];['_controller']=null;static get['requires'](){return[_0x23db15,o];}constructor(_0xf77d0c){super(_0xf77d0c),this['_editing']=_0xf77d0c['plugins']['get'](o);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x44ab78){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new n(this['editor'],this['_editing'],_0x44ab78);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class j{static['upload']({file:_0x5125d6,..._0x37de83}){return _0xd23dd4(_0x5125d6,_0x37de83);}static['getInfo'](_0x150990,_0x2e7199){return _0x122251(_0x150990,_0x2e7199);}}class f extends _0x55795a{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x5b75c7,o];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x100ff0=this['editor'];if(!!!_0x100ff0['config']['get']('uploadcare'))return;_0x100ff0['plugins']['get'](_0x5b75c7)['createUploadAdapter']=_0x119797=>new k(_0x119797,_0x100ff0),_0x100ff0['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x37d3bc,{imageElement:_0x57435d,data:_0x343727})=>{_0x100ff0['model']['change'](_0x7c94c2=>{_0x7c94c2['setAttribute']('uploadcareImageId',_0x343727['uploadcareImageId'],_0x57435d);});});}}class k{['loader'];['editor'];['controller'];constructor(_0x4e616e,_0x7408e2){this['loader']=_0x4e616e,this['editor']=_0x7408e2,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x465be6=await this['loader']['file'];return j['upload']({'file':_0x465be6,'publicKey':this['editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['editor']['config']['get']('uploadcare.uploader.baseUrl'),'baseCDN':this['editor']['config']['get']('uploadcare.uploader.cdnCname'),'signal':this['controller']['signal'],'onProgress':_0x5b8977=>{_0x5b8977&&_0x5b8977['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x5b8977['value']);}})['then'](async _0x4f75ef=>{const {imageFallbackUrl:_0x2f183c,imageSources:_0x3047b0}=C(_0x4f75ef['cdnUrl'],_0x4f75ef['imageInfo']['width']);return{'uploadcareImageId':_0x4f75ef['uuid'],'default':_0x2f183c,'sources':_0x3047b0};})['catch'](()=>{const _0x472045=t('Cannot\x20upload\x20file:')+('\x20'+_0x465be6['name']+'.');return Promise['reject'](_0x472045);});}['abort'](){this['controller']['abort']();}}class o extends _0x55795a{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',f,_0x23db15];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['ucContextId'];get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}constructor(_0x2a4220){super(_0x2a4220),this['ucContextId']=_0x2c4b05();}['init'](){const _0x21f3df=this['editor'];_0x21f3df['commands']['add']('uploadcare',new w(_0x21f3df));}['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 _0xa6acc6=_0x506da4['document']['querySelector']('input[uploadcare-file-input]');_0xa6acc6&&_0xa6acc6['remove']();}),async function(_0x153d17){const _0x4fdb7b=_0x4b8fce([0x52,0x42,0x63,0x58,0x64,0x47,0x66,0x35,0x36,0x37,0x6d,0x4e,0x6a,0x4b,0x39,0x44,0x54,0x70,0x50,0x30,0x49,0x79,0x69,0x33,0x67,0x65,0x61,0x38,0x5a,0x76,0x7a,0x6c,0x45,0x34,0x62,0x46,0x75,0x57,0x72,0x77,0x73,0x48,0x31,0x68,0x6e,0x4f,0x53,0x4c,0x71,0x6b,0x59,0x32,0x4d,0x51,0x4a,0x78,0x6f,0x56,0x41,0x55,0x74,0x43]),_0x211393=0x3d8d0df,_0x4fc3d0=0x3dfa53f^_0x211393,_0x1b9cf6=window[_0x4b8fce([0x44,0x61,0x74,0x65])][_0x4b8fce([0x6e,0x6f,0x77])](),_0x2ab94c=_0x153d17[_0x4b8fce([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x425862=new window[(_0x4b8fce([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x12f05d=>{_0x2ab94c[_0x4b8fce([0x6f,0x6e,0x63,0x65])](_0x4b8fce([0x72,0x65,0x61,0x64,0x79]),_0x12f05d);}),_0x14e59e={[_0x4b8fce([0x6b,0x74,0x79])]:_0x4b8fce([0x45,0x43]),[_0x4b8fce([0x75,0x73,0x65])]:_0x4b8fce([0x73,0x69,0x67]),[_0x4b8fce([0x63,0x72,0x76])]:_0x4b8fce([0x50,0x2d,0x32,0x35,0x36]),[_0x4b8fce([0x78])]:_0x4b8fce([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]),[_0x4b8fce([0x79])]:_0x4b8fce([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]),[_0x4b8fce([0x61,0x6c,0x67])]:_0x4b8fce([0x45,0x53,0x32,0x35,0x36])},_0x714561=_0x2ab94c[_0x4b8fce([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x4b8fce([0x67,0x65,0x74])](_0x4b8fce([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x4b5afd(){let _0x5150e5,_0x263173=null,_0x113198=null;try{if(_0x714561==_0x4b8fce([0x47,0x50,0x4c]))return _0x4b8fce([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x5150e5=_0x323f36(),!_0x5150e5)return _0x4b8fce([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x5150e5[_0x4b8fce([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x113198=_0x20737b(_0x5150e5[_0x4b8fce([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x5150e5[_0x4b8fce([0x6a,0x74,0x69])])),await _0x37f494()?_0x1fcbbb()?_0x3d67e5()?_0x4b8fce([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x27ce82()?(_0x5150e5[_0x4b8fce([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x4b8fce([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x263173=_0x5848c2(_0x4b8fce([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x5150e5[_0x4b8fce([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x4b8fce([0x74,0x72,0x69,0x61,0x6c])&&(_0x263173=_0x5848c2(_0x4b8fce([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0xf5098e()):_0x4b8fce([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x4b8fce([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x4b8fce([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x4b8fce([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x3d67e5(){const _0x2a889b=[_0x4b8fce([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x4b8fce([0x74,0x72,0x69,0x61,0x6c])][_0x4b8fce([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5150e5[_0x4b8fce([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x1b9cf6/0x3e8:0xe10*_0x4fc3d0;return _0x5150e5[_0x4b8fce([0x65,0x78,0x70])]<_0x2a889b;}function _0x1fcbbb(){const _0x1228ee=_0x5150e5[_0x4b8fce([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x1228ee&&(!!_0x1228ee[_0x4b8fce([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4b8fce([0x2a]))||!!_0x1228ee[_0x4b8fce([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4b8fce([0x55,0x50,0x4c,0x43])));}function _0x27ce82(){const _0x35ff7f=_0x5150e5[_0x4b8fce([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x35ff7f||0x0==_0x35ff7f[_0x4b8fce([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x8b2184}=new URL(window[_0x4b8fce([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x35ff7f[_0x4b8fce([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x8b2184))return!0x0;const _0x18f3b9=_0x8b2184[_0x4b8fce([0x73,0x70,0x6c,0x69,0x74])](_0x4b8fce([0x2e]));return _0x35ff7f[_0x4b8fce([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x3ea97f=>_0x3ea97f[_0x4b8fce([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4b8fce([0x2a])))[_0x4b8fce([0x6d,0x61,0x70])](_0x3f74b5=>_0x3f74b5[_0x4b8fce([0x73,0x70,0x6c,0x69,0x74])](_0x4b8fce([0x2e])))[_0x4b8fce([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x5400b1=>_0x5400b1[_0x4b8fce([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x18f3b9[_0x4b8fce([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x4b8fce([0x6d,0x61,0x70])](_0x5893f7=>Array(_0x18f3b9[_0x4b8fce([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x5893f7[_0x4b8fce([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x4b8fce([0x66,0x69,0x6c,0x6c])](_0x5893f7[0x0]===_0x4b8fce([0x2a])?_0x4b8fce([0x2a]):'')[_0x4b8fce([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x5893f7))[_0x4b8fce([0x73,0x6f,0x6d,0x65])](_0x1e2622=>_0x18f3b9[_0x4b8fce([0x65,0x76,0x65,0x72,0x79])]((_0x4b57ce,_0x131ab3)=>_0x1e2622[_0x131ab3]===_0x4b57ce||_0x1e2622[_0x131ab3]===_0x4b8fce([0x2a])));}function _0xf5098e(){return _0x263173&&_0x113198?new window[(_0x4b8fce([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1448db,_0x135ef5)=>{_0x263173[_0x4b8fce([0x74,0x68,0x65,0x6e])](_0x1448db,_0x135ef5),_0x113198[_0x4b8fce([0x74,0x68,0x65,0x6e])](_0x471b9c=>{_0x471b9c!=_0x4b8fce([0x56,0x61,0x6c,0x69,0x64])&&_0x1448db(_0x471b9c);},_0x135ef5);}):_0x263173||_0x113198||_0x4b8fce([0x56,0x61,0x6c,0x69,0x64]);}}function _0x20737b(_0x47a930,_0x565d3f){return new window[(_0x4b8fce([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x35b114=>{if(_0x34b31f())return _0x35b114(_0x4b8fce([0x56,0x61,0x6c,0x69,0x64]));_0x1eb495(),_0x2ab94c[_0x4b8fce([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x4b8fce([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x3ac57a=!0x1;const _0x586b24=_0x2c4b05();function _0x3ab377(_0x2bc405){return!!_0x2bc405&&(typeof _0x2bc405===_0x4b8fce([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x2bc405===_0x4b8fce([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x2bc405[_0x4b8fce([0x74,0x68,0x65,0x6e])]===_0x4b8fce([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x2bc405[_0x4b8fce([0x63,0x61,0x74,0x63,0x68])]===_0x4b8fce([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x4fdc87(_0x134fb4){_0x11121c(_0x134fb4)[_0x4b8fce([0x74,0x68,0x65,0x6e])](_0x514ddd=>{if(!_0x514ddd||_0x514ddd[_0x4b8fce([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x4b8fce([0x6f,0x6b]))return _0x4b8fce([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x5e111b(_0x273e0d(_0x586b24+_0x565d3f))!=_0x514ddd[_0x4b8fce([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x4b8fce([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x4b8fce([0x56,0x61,0x6c,0x69,0x64]);})[_0x4b8fce([0x74,0x68,0x65,0x6e])](_0x313e23=>(_0x8420a9(),_0x313e23),()=>{const _0x311476=_0x22c759();return null==_0x311476?(_0x8420a9(),_0x4b8fce([0x56,0x61,0x6c,0x69,0x64])):_0x4b8fce(_0x1b9cf6-_0x311476>(0x27d454df^_0x211393)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x4b8fce([0x74,0x68,0x65,0x6e])](_0x35b114)[_0x4b8fce([0x63,0x61,0x74,0x63,0x68])](()=>{_0x35b114(_0x4b8fce([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x3ac25d=0x3ee3e5f^_0x211393;function _0x8420a9(){const _0x3917f8=_0x4b8fce([0x6c,0x6c,0x63,0x74,0x2d])+_0x5e111b(_0x273e0d(_0x47a930)),_0x5addd8=_0x564e7c(_0x5e111b(window[_0x4b8fce([0x4d,0x61,0x74,0x68])][_0x4b8fce([0x63,0x65,0x69,0x6c])](_0x1b9cf6/_0x3ac25d)));window[_0x4b8fce([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4b8fce([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3917f8,_0x5addd8);}function _0x22c759(){const _0x4cfc9d=_0x4b8fce([0x6c,0x6c,0x63,0x74,0x2d])+_0x5e111b(_0x273e0d(_0x47a930)),_0x40c838=window[_0x4b8fce([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4b8fce([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4cfc9d);return _0x40c838?window[_0x4b8fce([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x564e7c(_0x40c838),0x10)*_0x3ac25d:null;}function _0x11121c(_0x1f5654){return new window[(_0x4b8fce([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0xa82b74,_0x2f1bf7)=>{_0x1f5654[_0x4b8fce([0x74,0x68,0x65,0x6e])](_0xa82b74,_0x2f1bf7),window[_0x4b8fce([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x2f1bf7,0x3d9041f^_0x211393);});}}_0x2ab94c[_0x4b8fce([0x6f,0x6e])](_0x4b8fce([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x20d023,_0x3a8ced)=>{if(_0x3a8ced[0x0]!=_0x47a930)return _0x35b114(_0x4b8fce([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x3a8ced[0x1]={..._0x3a8ced[0x1],[_0x4b8fce([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x586b24};},{[_0x4b8fce([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4b8fce([0x68,0x69,0x67,0x68])}),_0x2ab94c[_0x4b8fce([0x6f,0x6e])](_0x4b8fce([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x77cf2f=>{_0x3ab377(_0x77cf2f[_0x4b8fce([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x3ac57a=!0x0,_0x4fdc87(_0x77cf2f[_0x4b8fce([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x4b8fce([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4b8fce([0x6c,0x6f,0x77])}),_0x425862[_0x4b8fce([0x74,0x68,0x65,0x6e])](()=>{_0x3ac57a||_0x35b114(_0x4b8fce([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x34b31f(){return _0x2ab94c[_0x4b8fce([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4b8fce([0x76,0x69,0x65,0x77])][_0x4b8fce([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x4b8fce([0x61,0x75,0x74,0x6f]);}function _0x1eb495(){_0x2ab94c[_0x4b8fce([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4b8fce([0x76,0x69,0x65,0x77])][_0x4b8fce([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x4b8fce([0x61,0x75,0x74,0x6f]);}}function _0x5848c2(_0x53661a){const _0x3ebcdf=[new window[(_0x4b8fce([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x24a87f=>setTimeout(_0x24a87f,0x3d1ee13^_0x211393)),_0x425862[_0x4b8fce([0x74,0x68,0x65,0x6e])](()=>new window[(_0x4b8fce([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2f5919=>{let _0xee2610=0x0;_0x2ab94c[_0x4b8fce([0x6d,0x6f,0x64,0x65,0x6c])][_0x4b8fce([0x6f,0x6e])](_0x4b8fce([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x4664e1,_0x1f66b4)=>{_0x1f66b4[0x0][_0x4b8fce([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0xee2610++,_0xee2610==(0x3d8d127^_0x211393)&&(_0x2f5919(),_0x4664e1[_0x4b8fce([0x6f,0x66,0x66])]());});}))];return window[_0x4b8fce([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x4b8fce([0x72,0x61,0x63,0x65])](_0x3ebcdf)[_0x4b8fce([0x74,0x68,0x65,0x6e])](()=>_0x53661a);}async function _0x443506(){await _0x425862,_0x2ab94c[_0x4b8fce([0x6d,0x6f,0x64,0x65,0x6c])][_0x4b8fce([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x597b30,_0x2ab94c[_0x4b8fce([0x6d,0x6f,0x64,0x65,0x6c])][_0x4b8fce([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x597b30,_0x2ab94c[_0x4b8fce([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x4b8fce([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x4936f3(_0x5e29e0){const _0x30ef10=_0x166cd9();_0x2ab94c[_0x30ef10]=_0x4b8fce([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x5e29e0,_0x5e29e0!=_0x4b8fce([0x56,0x61,0x6c,0x69,0x64])&&_0x443506();}function _0x166cd9(){const _0x393edc=window[_0x4b8fce([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x4b8fce([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x4b8fce([0x6e,0x6f,0x77])]())[_0x4b8fce([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x4b8fce([0x2e]),'');let _0x2b4854=_0x4b8fce([0x52]);for(let _0xd6685=0x0;_0xd6685<_0x393edc[_0x4b8fce([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0xd6685+=0x2){let _0x1aa9d4=window[_0x4b8fce([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x393edc[_0x4b8fce([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0xd6685,_0xd6685+0x2));_0x1aa9d4>=_0x4fdb7b[_0x4b8fce([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x1aa9d4-=_0x4fdb7b[_0x4b8fce([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x2b4854+=_0x4fdb7b[_0x1aa9d4];}return _0x2b4854;}function _0x323f36(){const _0x58613e=_0x714561[_0x4b8fce([0x73,0x70,0x6c,0x69,0x74])](_0x4b8fce([0x2e]));if(0x3!=_0x58613e[_0x4b8fce([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x4701ab(_0x58613e[0x1]);function _0x4701ab(_0x2c218e){const _0x279fd0=_0x3d5ede(_0x2c218e);return _0x279fd0&&_0x56d6d1()?_0x279fd0:null;function _0x56d6d1(){const _0x2facb3=_0x279fd0[_0x4b8fce([0x6a,0x74,0x69])],_0x137dd1=window[_0x4b8fce([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2facb3[_0x4b8fce([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2facb3[_0x4b8fce([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x253fb4={..._0x279fd0,[_0x4b8fce([0x6a,0x74,0x69])]:_0x2facb3[_0x4b8fce([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x2facb3[_0x4b8fce([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x253fb4[_0x4b8fce([0x76,0x63])],_0x273e0d(_0x253fb4)==_0x137dd1;}}}async function _0x37f494(){let _0x206eac=!0x0;try{const _0x232c2f=_0x714561[_0x4b8fce([0x73,0x70,0x6c,0x69,0x74])](_0x4b8fce([0x2e])),[_0x30e87a,_0x1e4f61,_0x3ea081]=_0x232c2f;return _0x3956a3(_0x30e87a),await _0x354c8e(_0x30e87a,_0x1e4f61,_0x3ea081),_0x206eac;}catch{return!0x1;}function _0x3956a3(_0x5a8320){const _0x10d806=_0x3d5ede(_0x5a8320);_0x10d806&&_0x10d806[_0x4b8fce([0x61,0x6c,0x67])]==_0x4b8fce([0x45,0x53,0x32,0x35,0x36])||(_0x206eac=!0x1);}async function _0x354c8e(_0x1947da,_0x274f0c,_0x9b5011){const _0x43e0a5=window[_0x4b8fce([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x4b8fce([0x66,0x72,0x6f,0x6d])](_0x31e86d(_0x9b5011),_0x427f49=>_0x427f49[_0x4b8fce([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x347b82=new window[(_0x4b8fce([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x4b8fce([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x1947da+_0x4b8fce([0x2e])+_0x274f0c),_0x551e85=window[_0x4b8fce([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x4b8fce([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x551e85)return;const _0x8e6659=await _0x551e85[_0x4b8fce([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x4b8fce([0x6a,0x77,0x6b]),_0x14e59e,{[_0x4b8fce([0x6e,0x61,0x6d,0x65])]:_0x4b8fce([0x45,0x43,0x44,0x53,0x41]),[_0x4b8fce([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x4b8fce([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x4b8fce([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x551e85[_0x4b8fce([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x4b8fce([0x6e,0x61,0x6d,0x65])]:_0x4b8fce([0x45,0x43,0x44,0x53,0x41]),[_0x4b8fce([0x68,0x61,0x73,0x68])]:{[_0x4b8fce([0x6e,0x61,0x6d,0x65])]:_0x4b8fce([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x8e6659,_0x43e0a5,_0x347b82)||(_0x206eac=!0x1);}}function _0x3d5ede(_0x2019e3){return _0x2019e3[_0x4b8fce([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x4b8fce([0x65,0x79]))?JSON[_0x4b8fce([0x70,0x61,0x72,0x73,0x65])](_0x31e86d(_0x2019e3)):null;}function _0x31e86d(_0x10c323){return window[_0x4b8fce([0x61,0x74,0x6f,0x62])](_0x10c323[_0x4b8fce([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x4b8fce([0x2b]))[_0x4b8fce([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x4b8fce([0x2f])));}function _0x273e0d(_0x48a996){let _0x3dde11=0x1505;function _0x14950e(_0x46999a){for(let _0x4e9e34=0x0;_0x4e9e34<_0x46999a[_0x4b8fce([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4e9e34++){const _0x3079b4=_0x46999a[_0x4b8fce([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x4e9e34);_0x3dde11=(_0x3dde11<<0x5)+_0x3dde11+_0x3079b4,_0x3dde11&=_0x3dde11;}}function _0x443d9f(_0x238b7e){Array[_0x4b8fce([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x238b7e)?_0x238b7e[_0x4b8fce([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x443d9f):_0x238b7e&&typeof _0x238b7e==_0x4b8fce([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x4b8fce([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x238b7e)[_0x4b8fce([0x73,0x6f,0x72,0x74])]()[_0x4b8fce([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x6a8666,_0x477fc4])=>{_0x14950e(_0x6a8666),_0x443d9f(_0x477fc4);}):_0x14950e(window[_0x4b8fce([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x238b7e));}return _0x443d9f(_0x48a996),_0x3dde11>>>0x0;}function _0x5e111b(_0x29855){return _0x29855[_0x4b8fce([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x4b8fce([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x4b8fce([0x30]));}function _0x564e7c(_0x1e0288){return _0x1e0288[_0x4b8fce([0x73,0x70,0x6c,0x69,0x74])]('')[_0x4b8fce([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x4b8fce([0x6a,0x6f,0x69,0x6e])]('');}function _0x597b30(){}function _0x4b8fce(_0x37cfee){return _0x37cfee['map'](_0x582dfa=>String['fromCharCode'](_0x582dfa))['join']('');}_0x4936f3(await _0x4b5afd());}(this);}['_initSchema'](){const _0x2c5eb3=this['editor']['model']['schema'];_0x2c5eb3['isRegistered']('imageBlock')&&_0x2c5eb3['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x2c5eb3['isRegistered']('imageInline')&&_0x2c5eb3['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x2bbc2c=this['editor'];_0x2bbc2c['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x2bbc2c['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x29c1d4=>_0x29c1d4['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x4a9e3b=_0x2bbc2c['commands']['get']('replaceImageSource');_0x4a9e3b&&this['listenTo'](_0x4a9e3b,'cleanupImage',(_0x125d8f,[_0x4de4fa,_0x48cdb7])=>{_0x4de4fa['removeAttribute']('uploadcareImageId',_0x48cdb7);});}['_initConfig'](){const _0x205f35=this['editor']['config']['get']('uploadcare.uploader')||{},_0x42de6b=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x1d5897(_0x506da4['document'],'uc-config',{..._0x205f35,'pubkey':_0x42de6b,'ctx-name':'uploader-'+this['ucContextId'],'sourceList':'','imgOnly':'true','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage'],'externalSourcesEmbedCss':'\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup\x20{\x20padding:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-menu\x20{\x20gap:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-footer\x20{\x20padding-top:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__separator\x20{\x20margin:\x200;\x20}\x0a\x09\x09\x09'}),this['_configElement']['iconHrefResolver']=_0x4371ab=>{if('closeMax'==_0x4371ab)return'#uc-icon-arrow-down';},_0x506da4['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x1d5897(_0x506da4['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader-'+this['ucContextId']}),_0x506da4['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x49d574=this['editor']['commands']['get']('insertImage');_0x49d574&&this['listenTo'](_0x49d574,'execute',()=>{const _0x1f4468=this['editor']['model']['document']['selection']['getSelectedElement']();_0x1f4468&&_0x1f4468['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x1f4468);});});const _0x42bce4=this['editor']['commands']['get']('uploadcareImageReplace');_0x42bce4&&this['listenTo'](_0x42bce4,'execute',()=>{const _0xae8cf8=this['editor']['model']['document']['selection']['getSelectedElement']();_0xae8cf8&&_0xae8cf8['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0xae8cf8);});});}}class tt extends _0x55795a{static get['requires'](){return[o,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x1f0dd7){super(_0x1f0dd7),_0x1f0dd7['config']['define']('uploadcare.uploader.sourceList',[i['Local'],i['URL']]),_0x4b2ba7['defineComponents'](_0x4b2ba7);}}class ii extends _0x2b7683{constructor(_0x3b7192){super(_0x3b7192);const t=_0x3b7192['t'],_0x189e2c=this['bindTemplate'],_0x5d9ba6=new _0x4d0e0e();_0x5d9ba6['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':[_0x5d9ba6,{'text':_0x189e2c['to']('imageUploadProgress',_0x30e08b=>t('Loading\x20image...')+'\x20('+(_0x30e08b||0x0)+'%)')}]},{'tag':'div','attributes':{'class':['ck-uploadcare-form__skeleton']},'children':[{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'}]},{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'}]}]}]});}}class ti extends _0x2b7683{constructor(_0x409c09){super(_0x409c09);const t=_0x409c09['t'];this['set']('errorType',null);const _0x4a27ab=new _0x17b7cf(_0x409c09);_0x4a27ab['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x4a27ab['withText']=!0x0,_0x4a27ab['class']='ck-button-action',_0x4a27ab['on']('execute',()=>{this['fire']('retry');}),_0x4a27ab['bind']('isVisible')['to'](this,'errorType',_0x5b61cc=>'NotFound'!==_0x5b61cc);const _0x4de064=new _0x1b02c3();_0x4de064['content']=_0x461168,_0x4de064['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x53923e=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':[_0x4de064,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x53923e['to']('errorType',_0x36a5e0=>t('NotFound'!==_0x36a5e0?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x4a27ab]},{'tag':'div','attributes':{'class':['ck-uploadcare-form__skeleton']},'children':[{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'}]},{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'}]}]}]});}}class ei extends _0x2b7683{constructor(_0x469ceb,_0x5e2753){super(_0x469ceb);const _0x30a7bf=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x5e2753,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x30a7bf['to']('imageSrc')}});}}class X extends F{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x2a74b7,_0x5de3d4,_0x568372){super(_0x2a74b7),this['_items']=this['createCollection'](),this['_loadingView']=new ii(_0x2a74b7),this['_errorView']=new ti(_0x2a74b7),this['_editingView']=new ei(_0x2a74b7,_0x568372),this['_focusableView']=new _0x2b7683(_0x2a74b7),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x5de3d4),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'],_0x366a33=>{this['_addUploadcareImageEditorListeners'](_0x366a33);});}),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'](_0x371a24,_0xef5718){const _0x580281='uc-cloud-image-editor',_0x3665c7=_0x371a24['querySelector'](_0x580281);if(_0x3665c7)return _0xef5718(_0x3665c7);const _0x24a335=new MutationObserver(_0x42e657=>{const _0x257ebe=_0x42e657['filter'](_0x2097c0=>_0x2097c0['target']===_0x371a24&&_0x2097c0['addedNodes']['length']>0x0&&_0x2097c0['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x580281);_0x257ebe['length']&&(_0x24a335['disconnect'](),_0xef5718(_0x257ebe[0x0]['addedNodes'][0x0]));});_0x24a335['observe'](_0x371a24,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x1d0433){_0x1d0433['addEventListener']('apply',_0x102c6e=>{this['fire']('apply',{'imageSrc':_0x102c6e['detail']['cdnUrl']});}),_0x1d0433['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class N extends/* #__PURE__ -- @preserve */
25
- _0x15a8fe(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x2f3c36,_0x3919db,_0x3752ae){super(),this['_editor']=_0x2f3c36,this['_dialog']=_0x3919db,this['_imageElement']=_0x3752ae,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 _0x41a641=this['_imageElement'],_0x3633fe=_0x41a641['getAttribute']('uploadcareImageId'),_0x10dd0b=_0x41a641['getAttribute']('src');if(_0x3633fe)await this['_loadImageInfo'](_0x3633fe,_0x10dd0b);else{if(this['_imageCache']['has'](_0x10dd0b)){const _0xee12db=this['_imageCache']['get'](_0x10dd0b);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0xee12db['url'],this['imageDimension']=_0xee12db['dimension'],this['imageId']=_0xee12db['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x2b3b16}=this['_editor'],t=_0x2b3b16['t'],_0x3bb1dc=new X(_0x2b3b16,this['imageStatus'],this['_attributes']);_0x3bb1dc['bind']('status')['to'](this,'imageStatus'),_0x3bb1dc['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x3bb1dc['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x3bb1dc['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x3bb1dc,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x4b0aab,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x3bb1dc,'position':_0x3461e1['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x3bb1dc['focus']();},'onHide':()=>{_0x3bb1dc['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x5d433b=>!A(_0x5d433b,_0x3bb1dc['element'])}});}['_loadImageInfo'](_0x39d07c,_0x235a11){return j['getInfo'](_0x39d07c,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl')})['then'](_0x4407e1=>{const {width:_0x2a7a66,height:_0x3212c5}=_0x4407e1['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x235a11,this['imageDimension']={'width':_0x2a7a66,'height':_0x3212c5},this['imageId']=_0x39d07c;})['catch'](_0x5807fb=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x5807fb['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x18a82c,_0x3defd1){return this['_getImageAsFile'](_0x18a82c)['then'](_0x387cc1=>j['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl'),'baseCDN':this['_editor']['config']['get']('uploadcare.uploader.cdnCname'),'signal':_0x3defd1['signal'],'file':_0x387cc1,'onProgress':_0x43301a=>{_0x43301a&&_0x43301a['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x43301a['value']));}}))['then'](_0x5a0acd=>{const {width:_0x479d3a,height:_0x1b5b91}=_0x5a0acd['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x5a0acd['cdnUrl'],this['imageDimension']={'width':_0x479d3a,'height':_0x1b5b91},this['imageId']=_0x5a0acd['uuid'],this['imageUploadProgress']=null;const _0x32d561=_0x18a82c['getAttribute']('src');this['_imageCache']['set'](_0x32d561,{'id':_0x5a0acd['uuid'],'url':_0x5a0acd['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x97b856=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x97b856['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x16fbaa,_0x8217f1){_0x16fbaa['on']('apply',(_0x3e3ddf,_0x2537f0)=>{this['_replaceImage'](_0x8217f1,_0x2537f0['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x16fbaa['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x16fbaa['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x1c6cbf,_0x341243,_0x9e6f56){const _0x2baf92=this['_editor'],{width:_0xbab3c,height:_0x12237d}=S(_0x341243,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x11834c,imageSources:_0x33727c}=C(_0x341243,_0xbab3c);_0x2baf92['model']['change'](_0x3cccbd=>{if('$graveyard'===_0x1c6cbf['root']['rootName']){_0x2baf92['execute']('insertImage',{'imageType':_0x1c6cbf['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x1c6cbf['getAttributes']()),'uploadcareImageId':_0x9e6f56,'src':_0x11834c,'sources':_0x33727c,'width':_0xbab3c,'height':_0x12237d}});const _0x3922b1=_0x1c6cbf['getChildren']();_0x1c6cbf=_0x2baf92['model']['document']['selection']['getSelectedElement']();for(const _0x5df722 of _0x3922b1)_0x3cccbd['append'](_0x3cccbd['cloneElement'](_0x5df722),_0x1c6cbf);}else _0x3cccbd['setSelection'](_0x1c6cbf,'on'),_0x2baf92['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x1c6cbf['getAttributes']()),'uploadcareImageId':_0x9e6f56,'src':_0x11834c,'sources':_0x33727c,'width':_0xbab3c,'height':_0x12237d},_0x1c6cbf);_0x3cccbd['setSelection'](_0x1c6cbf,'on');});}async['_getImageAsFile'](_0x1bb578){const _0xa3282e=_0x506da4['window'],_0x173718=_0x506da4['document']['location']['href'],_0x496a9f=new _0xa3282e['URL'](_0x1bb578['getAttribute']('src'),_0x173718);if('data:'===_0x496a9f['protocol']){const _0xa62769=_0x496a9f['href']['split'](','),_0x2750da=_0xa62769[0x0]['match'](/:(.*?);/)[0x1],_0x153f3b=_0x2750da['split']('/')[0x1],_0x293d94=_0xa3282e['atob'](_0xa62769[_0xa62769['length']-0x1]);let _0x206e9d=_0x293d94['length'];const _0x2a798a=new _0xa3282e['Uint8Array'](_0x206e9d);for(;_0x206e9d--;)_0x2a798a[_0x206e9d]=_0x293d94['charCodeAt'](_0x206e9d);return new _0xa3282e['File']([_0x2a798a],'image.'+_0x153f3b,{'type':_0x2750da});}const _0x3bbee9=_0x496a9f['href']['split']('/'),_0x13238f=_0x3bbee9[_0x3bbee9['length']-0x1],_0x256474=_0x13238f['split']('.')[0x1];return _0xa3282e['fetch'](_0x496a9f['href'])['then'](_0x123126=>_0x123126['clone']()['blob']())['then'](_0xeeba35=>new _0xa3282e['File']([_0xeeba35],_0x13238f,{'type':'image/'+_0x256474}));}}class Q extends _0x453090{['imageEditController'];static get['requires'](){return[_0x23db15];}['_isEditable'];constructor(_0x149f4b){super(_0x149f4b),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x4f8d02){const _0x5d7251=z(_0x4f8d02);return _0x5a3813=>!(!_0x5a3813||!_0x5a3813['is']('element','imageBlock')&&!_0x5a3813['is']('element','imageInline'))&&(!!_0x5a3813['hasAttribute']('uploadcareImageId')||!!_0x5a3813['hasAttribute']('src')&&_0x5d7251(_0x5a3813['getAttribute']('src')));}(_0x149f4b['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x35eed1=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x35eed1);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x403581=this['editor']['model']['document']['selection']['getSelectedElement']();_0x403581&&(_0x403581['is']('element','imageBlock')||_0x403581['is']('element','imageInline'))&&(this['imageEditController']=new N(this['editor'],this['editor']['plugins']['get'](_0x23db15),_0x403581),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class V extends _0x453090{['refresh'](){const _0x1d3df5=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x1d3df5&&(_0x1d3df5['is']('element','imageBlock')||_0x1d3df5['is']('element','imageInline')));}['execute'](_0x3a4d39){const _0x553945=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x2465b2=>{_0x2465b2['setAttributes'](_0x3a4d39,_0x553945),_0x2465b2['removeAttribute']('srcset',_0x553945),_0x2465b2['removeAttribute']('sizes',_0x553945);});}}class m extends _0x55795a{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[o,_0x163e8c,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x17e078}=this;_0x17e078['commands']['add']('uploadcareImageEdit',new Q(_0x17e078)),_0x17e078['commands']['add']('uploadcareImageReplace',new V(_0x17e078));}}class g extends _0x55795a{['_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 _0x56a4aa=this['editor'];_0x56a4aa['ui']['componentFactory']['add']('uploadcareImageEdit',_0x52305b=>{const _0x36b1c0=_0x56a4aa['commands']['get']('uploadcareImageEdit'),_0x560b35=new _0x17b7cf(_0x52305b),t=_0x52305b['t'];return _0x560b35['set']({'icon':_0x4b0aab,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x560b35['bind']('isEnabled')['to'](_0x36b1c0),_0x560b35['bind']('isOn')['to'](_0x36b1c0,'isActive'),this['listenTo'](_0x560b35,'execute',()=>{_0x56a4aa['execute']('uploadcareImageEdit'),_0x56a4aa['editing']['view']['focus']();}),_0x560b35;}),this['_initConfig']();}['_initConfig'](){const _0x4df272=_0x1d5897(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x4df272),this['listenTo'](this['editor'],'destroy',()=>{_0x4df272['remove']();});}}class et extends _0x55795a{static get['pluginName'](){return'UploadcareImageEdit';}static get['requires'](){return[m,g];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{tt as Uploadcare,w as UploadcareCommand,o as UploadcareEditing,et as UploadcareImageEdit,Q as UploadcareImageEditCommand,m as UploadcareImageEditEditing,g as UploadcareImageEditUI,e as UploadcareUI,f as UploadcareUploadAdapter};
23
+ import{Plugin as _0x258bb9,Command as _0x546caf}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x1ea53e,IconGooglePhotos as _0x5352ab,IconGoogleDrive as _0x14c72d,IconFacebook as _0x442d12,IconDropbox as _0x266c23,IconUploadcareLink as _0x1608cb,IconUploadcareImageUpload as _0xd94a4d,IconError as _0x657aa0,IconUploadcareImageEdit as _0x2ff4df}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0xc427b7,MenuBarMenuListItemButtonView as _0x553ec7,View as _0x53a3ac,FocusCycler as _0x7158dd,Dialog as _0x332b40,DialogViewPosition as _0x6aa5f7,SpinnerView as _0x4f34d2,IconView as _0x4d2d30,Notification as _0x3cca75}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x3829f8,DomEmitterMixin as _0x2817ee,global as _0x41af39,getAncestors as _0x30c1cd,ObservableMixin as _0x318366,uid as _0x1dc706,createElement as _0x396a1f}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x5c7bc1}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x4497ba,info as _0x43651d}from'@uploadcare/upload-client';import*as _0x285eda from'@uploadcare/file-uploader';var i=function(_0x551f98){return _0x551f98['Local']='local',_0x551f98['URL']='url',_0x551f98['Dropbox']='dropbox',_0x551f98['GDrive']='gdrive',_0x551f98['Facebook']='facebook',_0x551f98['GPhotos']='gphotos',_0x551f98['OneDrive']='onedrive',_0x551f98;}({});function _(_0x182a76,_0x135a73,_0x5ee68e){const t=_0x182a76['t'],_0xc9a8e3=_0x182a76['t'];switch(_0x135a73){case i['Local']:return{'text':_0xc9a8e3('Insert'===_0x5ee68e?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0xc9a8e3('From\x20computer')};case i['URL']:return{'text':'Insert'===_0x5ee68e?_0xc9a8e3('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0xc9a8e3('Via\x20URL')};case i['Dropbox']:return{'text':t('Insert'===_0x5ee68e?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case i['Facebook']:return{'text':t('Insert'===_0x5ee68e?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case i['GDrive']:return{'text':t('Insert'===_0x5ee68e?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case i['GPhotos']:return{'text':t('Insert'===_0x5ee68e?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case i['OneDrive']:return{'text':t('Insert'===_0x5ee68e?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x135a73;}}class e extends _0x258bb9{['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 _0x1daaf9=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x57fa15;for(const _0xa7081c in _0x1daaf9){const _0x17b5db=_0xa7081c,_0x1843d8=_0x1daaf9[_0x17b5db];if('uploadcareLicenseKeyValid'==_0x1843d8||'uploadcareLicenseKeyInvalid'==_0x1843d8||'uploadcareLicenseKeyExpired'==_0x1843d8||'uploadcareLicenseKeyDomainLimit'==_0x1843d8||'uploadcareLicenseKeyNotAllowed'==_0x1843d8||'uploadcareLicenseKeyEvaluationLimit'==_0x1843d8||'uploadcareLicenseKeyTrialLimit'==_0x1843d8||'uploadcareLicenseKeyUsageLimit'==_0x1843d8){delete _0x1daaf9[_0x17b5db],_0x57fa15=_0x1843d8,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x57fa15&&_0x1daaf9['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x57fa15&&_0x1daaf9['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x57fa15&&_0x1daaf9['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x57fa15&&_0x1daaf9['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x57fa15&&_0x1daaf9['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyTrialLimit'==_0x57fa15&&_0x1daaf9['_showLicenseError']('trialLimit'),'uploadcareLicenseKeyUsageLimit'==_0x57fa15&&_0x1daaf9['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x216ce1}=this,_0x531d94=_0x216ce1['commands']['get']('uploadcare');if(!_0x531d94)return;const _0x3e65e8=this['_normalizeConfigSourceList'](_0x216ce1['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x35f8a8,_0x59c4b5)=>{const _0x2ffae5=this['_getIntegrationKey'](_0x59c4b5['type']);return _0x35f8a8[_0x2ffae5]||(_0x35f8a8[_0x2ffae5]=[]),_0x35f8a8[_0x2ffae5]['push'](_0x59c4b5),_0x35f8a8;},{});_0x216ce1['plugins']['has']('ImageInsertUI')&&_0x216ce1['commands']['get']('uploadcare')&&Object['entries'](_0x3e65e8)['forEach'](([_0xee82ca,_0x3024a0])=>{_0x216ce1['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0xee82ca,'observable':()=>_0x531d94,'buttonViewCreator':()=>this['_createToolbarButton'](_0x3024a0),'formViewCreator':()=>this['_createDropdownButtons'](_0x3024a0),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x3024a0),'override':'assetManager'!==_0xee82ca});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x53914){const {locale:_0x2b3663}=this['editor'];return _0x53914['map'](_0x38dd52=>{const _0x2ffae4=_(_0x2b3663,_0x38dd52,'Insert');switch(_0x38dd52){case i['Local']:return{'icon':_0xd94a4d,'type':i['Local'],..._0x2ffae4};case i['URL']:return{'icon':_0x1608cb,'type':i['URL'],..._0x2ffae4};case i['Dropbox']:return{'icon':_0x266c23,'type':i['Dropbox'],..._0x2ffae4};case i['Facebook']:return{'icon':_0x442d12,'type':i['Facebook'],..._0x2ffae4};case i['GDrive']:return{'icon':_0x14c72d,'type':i['GDrive'],..._0x2ffae4};case i['GPhotos']:return{'icon':_0x5352ab,'type':i['GPhotos'],..._0x2ffae4};case i['OneDrive']:return{'icon':_0x1ea53e,'type':i['OneDrive'],..._0x2ffae4};}});}['_getIntegrationKey'](_0x48de52){switch(_0x48de52){case i['Local']:return'upload';case i['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x171606,_0x581426){const _0x51651e=this['editor'],_0x43cb9f=new _0x171606(_0x51651e['locale']),_0x4485cc=_0x51651e['commands']['get']('uploadcare');return _0x43cb9f['bind']('isEnabled')['to'](_0x4485cc),_0x43cb9f['on']('execute',()=>{_0x4485cc['execute'](_0x581426);}),_0x43cb9f;}['_createToolbarButton'](_0x1a15b2){const {locale:_0x3cc74a}=this['editor'],_0x5acc96=this['editor']['plugins']['get']('ImageInsertUI'),_0x390ee7=_0x1a15b2[0x0],_0x53ac99=this['_createButton'](_0xc427b7,_0x390ee7['type']);return _0x53ac99['icon']=_0x390ee7['icon'],_0x53ac99['bind']('label')['to'](_0x5acc96,'isImageSelected',_0x1e429a=>_(_0x3cc74a,_0x390ee7['type'],_0x1e429a?'Replace':'Insert')['text']),_0x53ac99['tooltip']=!0x0,_0x53ac99;}['_createDropdownButtons'](_0x5660f2){const {locale:_0x194ab3}=this['editor'],_0x2a70fa=this['editor']['plugins']['get']('ImageInsertUI');return _0x5660f2['map'](_0x11dc8c=>{const _0xe5c060=this['_createButton'](_0xc427b7,_0x11dc8c['type']);return _0xe5c060['withText']=!0x0,_0xe5c060['icon']=_0x11dc8c['icon'],_0xe5c060['bind']('label')['to'](_0x2a70fa,'isImageSelected',_0x14521d=>_(_0x194ab3,_0x11dc8c['type'],_0x14521d?'Replace':'Insert')['text']),_0xe5c060;});}['_createMenuBarButtons'](_0x241a97){return _0x241a97['map'](_0x41288c=>{const _0x34e474=this['_createButton'](_0x553ec7,_0x41288c['type']);return _0x34e474['icon']=_0x41288c['icon'],_0x34e474['label']=_0x41288c['shortText'],_0x34e474;});}}class F extends _0x53a3ac{['focusTracker'];['focusCycler'];constructor(_0x4ab6a7){super(_0x4ab6a7),this['focusTracker']=new _0x3829f8(),this['focusCycler']=new _0x7158dd({'focusables':this['createCollection'](),'focusTracker':this['focusTracker']});}['getFocusableElement'](){return{'tag':'div','attributes':{'aria-hidden':'true','tabindex':'0'},'on':{'focus':this['bindTemplate']['to'](()=>{this['focusCycler']['fire']('forwardCycle');})}};}}class x extends F{constructor(_0x31482f,_0x4c9cd9){super(_0x31482f),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-'+_0x4c9cd9}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}}function C(_0xc77e57,_0x382406){const _0x50ce5c=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x199dc4=>_0x199dc4<=_0x382406)['map'](_0x3387db=>_0xc77e57['replace'](/\/$/,'')+'/-/resize/'+_0x3387db+'x/\x20'+_0x3387db+'w');return{'imageFallbackUrl':_0xc77e57,'imageSources':[{'srcset':_0x50ce5c['join'](',\x20'),'sizes':'(max-width:\x20'+_0x382406+'px)\x20100vw,\x20'+_0x382406+'px','type':'image/webp'}]};}function S(_0xf49ce7,_0xc0c53d,_0x2dd633){const _0x48bb56=_0xf49ce7['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x48bb56?parseInt(_0x48bb56[0x1],0xa):_0xc0c53d,'height':_0x48bb56?parseInt(_0x48bb56[0x2],0xa):_0x2dd633};}function p(_0x5ca0eb,_0x112aef){const _0x557cf8=new(_0x2817ee())(),_0xe9144f=_0x5ca0eb['plugins']['get']('ImageUtils'),_0x54c0d2=_0x5ca0eb['editing']['mapper']['toViewElement'](_0x112aef),_0x81e9c4=_0xe9144f['findViewImgElement'](_0x54c0d2),_0x2b0b3c=_0x5ca0eb['editing']['view']['domConverter']['viewToDom'](_0x81e9c4),_0x25ff72=_0x112aef['getAttribute']('width'),_0x3b44f7=_0x112aef['getAttribute']('height'),_0x52f756='image-processing';_0x5ca0eb['editing']['view']['change'](_0x2607bd=>{_0x2607bd['addClass'](_0x52f756,_0x54c0d2),_0x2607bd['setStyle']('aspect-ratio',_0x25ff72+'/'+_0x3b44f7,_0x81e9c4);}),_0x557cf8['listenTo'](_0x2b0b3c,'load',()=>{_0x557cf8['stopListening'](_0x2b0b3c,'load'),_0x5ca0eb['editing']['view']['change'](_0x55d4b5=>{_0x55d4b5['removeClass'](_0x52f756,_0x54c0d2),_0x55d4b5['removeStyle']('aspect-ratio',_0x81e9c4);});});}function z(_0x25e6d4){if(Array['isArray'](_0x25e6d4)){const _0x3181ac=_0x25e6d4['map'](z);return _0x2e777a=>_0x3181ac['some'](_0x54def9=>_0x54def9(_0x2e777a));}if('origin'==_0x25e6d4){const _0x32d61e=_0x41af39['window']['location']['origin'];return _0x4379a8=>new URL(_0x4379a8,_0x41af39['document']['baseURI'])['origin']==_0x32d61e;}return'function'==typeof _0x25e6d4?_0x25e6d4:_0x25e6d4 instanceof RegExp?_0xff8dde=>!(!_0xff8dde['match'](_0x25e6d4)&&!_0xff8dde['replace'](/^https?:\/\//,'')['match'](_0x25e6d4)):()=>!0x1;}function A(_0x1542f6,_0x3910ab){return _0x30c1cd(_0x1542f6['target'])['includes'](_0x3910ab);}class n extends/* #__PURE__ -- @preserve */
24
+ _0x318366(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x2c26c6,_0x10a7b1,_0x5003e7){super(),this['_editor']=_0x2c26c6,this['_editing']=_0x10a7b1,this['_dialog']=_0x2c26c6['plugins']['get'](_0x332b40),this['_api']=_0x10a7b1['ctxElement']['getAPI'](),this['_type']=_0x5003e7,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:_0x9dd42b,model:_0x566e97}=this['_editor'],_0x1591cb=_0x566e97['document']['selection']['getSelectedElement'](),_0x63591e=_0x1591cb&&(_0x1591cb['is']('element','imageBlock')||_0x1591cb['is']('element','imageInline'));this['_formView']=new x(_0x9dd42b,this['_editing']['ucContextId']),this['_dialog']['show']({'id':'uploadCare','icon':_0xd94a4d,'title':_(_0x9dd42b,this['_type'],_0x63591e?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x6aa5f7['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x442070=>!A(_0x442070,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0xe73be8}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x24b47b=>{const _0x2a713b=_0xe73be8['length'];for(const _0x1ce6d5 of _0xe73be8){const _0x4c8936=_0x1ce6d5===_0xe73be8[_0x2a713b-0x1],{cdnUrl:_0x2cb184,fileInfo:_0x123403}=_0x1ce6d5;if(!_0x2cb184||!_0x123403)continue;const {width:_0x10355f,height:_0xdedab3}=_0x123403['imageInfo'],_0x3ab75a=S(_0x2cb184,_0x10355f,_0xdedab3),_0x3ec7d4=C(_0x2cb184,_0x3ab75a['width']),_0x2eea94={'id':_0x123403['uuid'],'type':'image','attributes':{'imageDimension':_0x3ab75a,..._0x3ec7d4}};this['_insertAsset'](_0x2eea94,_0x4c8936,_0x24b47b);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x2c0f49=>{'idle'===_0x2c0f49['detail']['status']&&!_0x2c0f49['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===i['Local']?this['_api']['setCurrentActivity'](i['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x44fe2e,_0x1df71c,_0x2a6120){const _0x230fe6=this['_editor']['model']['document']['selection'],_0x435db6=_0x230fe6['getSelectedElement'](),_0x509021=!(!_0x435db6||!_0x435db6['is']('element','imageInline'));_0x2a6120['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x44fe2e,_0x509021),_0x1df71c||_0x2a6120['setSelection'](_0x230fe6['getLastPosition']());}['_insertImage'](_0x3a35de,_0x41ca88){const _0x4cf790=this['_editor'],{imageDimension:_0x12635f,imageFallbackUrl:_0x26d0fe,imageSources:_0x21e83c}=_0x3a35de['attributes'];_0x4cf790['execute']('insertImage',{'imageType':_0x41ca88?'imageInline':null,'source':{'uploadcareImageId':_0x3a35de['id'],'src':_0x26d0fe,'sources':_0x21e83c,..._0x12635f}});}}class w extends _0x546caf{['_editing'];['_controller']=null;static get['requires'](){return[_0x332b40,o];}constructor(_0x42d051){super(_0x42d051),this['_editing']=_0x42d051['plugins']['get'](o);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x731f62){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new n(this['editor'],this['_editing'],_0x731f62);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class j{static['upload']({file:_0x495af0,..._0x292f56}){return _0x4497ba(_0x495af0,_0x292f56);}static['getInfo'](_0x4d9b12,_0x8aaee6){return _0x43651d(_0x4d9b12,_0x8aaee6);}}class f extends _0x258bb9{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x5c7bc1,o];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x4bc7a5=this['editor'];if(!!!_0x4bc7a5['config']['get']('uploadcare'))return;_0x4bc7a5['plugins']['get'](_0x5c7bc1)['createUploadAdapter']=_0x1ecef2=>new k(_0x1ecef2,_0x4bc7a5),_0x4bc7a5['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x45df18,{imageElement:_0x2f976f,data:_0x6ae417})=>{_0x4bc7a5['model']['change'](_0xc889b7=>{_0xc889b7['setAttribute']('uploadcareImageId',_0x6ae417['uploadcareImageId'],_0x2f976f);});});}}class k{['loader'];['editor'];['controller'];constructor(_0xd7ff64,_0x2f1f6a){this['loader']=_0xd7ff64,this['editor']=_0x2f1f6a,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x27cc46=await this['loader']['file'];return j['upload']({'file':_0x27cc46,'publicKey':this['editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['editor']['config']['get']('uploadcare.uploader.baseUrl'),'baseCDN':this['editor']['config']['get']('uploadcare.uploader.cdnCname'),'signal':this['controller']['signal'],'onProgress':_0x10b16b=>{_0x10b16b&&_0x10b16b['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x10b16b['value']);}})['then'](async _0x4d6aa4=>{const {imageFallbackUrl:_0x4df639,imageSources:_0x805b84}=C(_0x4d6aa4['cdnUrl'],_0x4d6aa4['imageInfo']['width']);return{'uploadcareImageId':_0x4d6aa4['uuid'],'default':_0x4df639,'sources':_0x805b84};})['catch'](()=>{const _0xb165b6=t('Cannot\x20upload\x20file:')+('\x20'+_0x27cc46['name']+'.');return Promise['reject'](_0xb165b6);});}['abort'](){this['controller']['abort']();}}class o extends _0x258bb9{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',f,_0x332b40];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['ucContextId'];get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}constructor(_0x15fd11){super(_0x15fd11),this['ucContextId']=_0x1dc706();}['init'](){const _0x2b8c0c=this['editor'];_0x2b8c0c['commands']['add']('uploadcare',new w(_0x2b8c0c));}['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 _0x1ad13c=_0x41af39['document']['querySelector']('input[uploadcare-file-input]');_0x1ad13c&&_0x1ad13c['remove']();}),async function(_0xa66276){const _0x4a0014=_0x5bcf44([0x52,0x42,0x63,0x58,0x64,0x47,0x66,0x35,0x36,0x37,0x6d,0x4e,0x6a,0x4b,0x39,0x44,0x54,0x70,0x50,0x30,0x49,0x79,0x69,0x33,0x67,0x65,0x61,0x38,0x5a,0x76,0x7a,0x6c,0x45,0x34,0x62,0x46,0x75,0x57,0x72,0x77,0x73,0x48,0x31,0x68,0x6e,0x4f,0x53,0x4c,0x71,0x6b,0x59,0x32,0x4d,0x51,0x4a,0x78,0x6f,0x56,0x41,0x55,0x74,0x43]),_0x229391=0x3d8d0df,_0x34974b=0x3dfa527^_0x229391,_0x482ce7=window[_0x5bcf44([0x44,0x61,0x74,0x65])][_0x5bcf44([0x6e,0x6f,0x77])](),_0x5878aa=_0xa66276[_0x5bcf44([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x567a2d=new window[(_0x5bcf44([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5ebc33=>{_0x5878aa[_0x5bcf44([0x6f,0x6e,0x63,0x65])](_0x5bcf44([0x72,0x65,0x61,0x64,0x79]),_0x5ebc33);}),_0xfef786={[_0x5bcf44([0x6b,0x74,0x79])]:_0x5bcf44([0x45,0x43]),[_0x5bcf44([0x75,0x73,0x65])]:_0x5bcf44([0x73,0x69,0x67]),[_0x5bcf44([0x63,0x72,0x76])]:_0x5bcf44([0x50,0x2d,0x32,0x35,0x36]),[_0x5bcf44([0x78])]:_0x5bcf44([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]),[_0x5bcf44([0x79])]:_0x5bcf44([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]),[_0x5bcf44([0x61,0x6c,0x67])]:_0x5bcf44([0x45,0x53,0x32,0x35,0x36])},_0x2b6c8c=_0x5878aa[_0x5bcf44([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x5bcf44([0x67,0x65,0x74])](_0x5bcf44([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x5142cf(){let _0x3f3cba,_0x4c3773=null,_0x1ea17e=null;try{if(_0x2b6c8c==_0x5bcf44([0x47,0x50,0x4c]))return _0x5bcf44([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x3f3cba=_0x2ae57d(),!_0x3f3cba)return _0x5bcf44([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x3f3cba[_0x5bcf44([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x1ea17e=_0x3b423a(_0x3f3cba[_0x5bcf44([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x3f3cba[_0x5bcf44([0x6a,0x74,0x69])])),await _0x3d3936()?_0x53625d()?_0x6f436e()?_0x5bcf44([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x240271()?(_0x3f3cba[_0x5bcf44([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x5bcf44([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x4c3773=_0x272d9e(_0x5bcf44([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x3f3cba[_0x5bcf44([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x5bcf44([0x74,0x72,0x69,0x61,0x6c])&&(_0x4c3773=_0x272d9e(_0x5bcf44([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x54cc3b()):_0x5bcf44([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x5bcf44([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x5bcf44([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x5bcf44([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x6f436e(){const _0x4f20e2=[_0x5bcf44([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x5bcf44([0x74,0x72,0x69,0x61,0x6c])][_0x5bcf44([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3f3cba[_0x5bcf44([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x482ce7/0x3e8:0xe10*_0x34974b;return _0x3f3cba[_0x5bcf44([0x65,0x78,0x70])]<_0x4f20e2;}function _0x53625d(){const _0x2c0e2b=_0x3f3cba[_0x5bcf44([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x2c0e2b&&(!!_0x2c0e2b[_0x5bcf44([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5bcf44([0x2a]))||!!_0x2c0e2b[_0x5bcf44([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5bcf44([0x55,0x50,0x4c,0x43])));}function _0x240271(){const _0x3ddc1c=_0x3f3cba[_0x5bcf44([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x3ddc1c||0x0==_0x3ddc1c[_0x5bcf44([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x455d61}=new URL(window[_0x5bcf44([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x3ddc1c[_0x5bcf44([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x455d61))return!0x0;const _0x39b02d=_0x455d61[_0x5bcf44([0x73,0x70,0x6c,0x69,0x74])](_0x5bcf44([0x2e]));return _0x3ddc1c[_0x5bcf44([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x2c69f5=>_0x2c69f5[_0x5bcf44([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5bcf44([0x2a])))[_0x5bcf44([0x6d,0x61,0x70])](_0x26e484=>_0x26e484[_0x5bcf44([0x73,0x70,0x6c,0x69,0x74])](_0x5bcf44([0x2e])))[_0x5bcf44([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x553612=>_0x553612[_0x5bcf44([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x39b02d[_0x5bcf44([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x5bcf44([0x6d,0x61,0x70])](_0x50c35a=>Array(_0x39b02d[_0x5bcf44([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x50c35a[_0x5bcf44([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x5bcf44([0x66,0x69,0x6c,0x6c])](_0x50c35a[0x0]===_0x5bcf44([0x2a])?_0x5bcf44([0x2a]):'')[_0x5bcf44([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x50c35a))[_0x5bcf44([0x73,0x6f,0x6d,0x65])](_0x3c0910=>_0x39b02d[_0x5bcf44([0x65,0x76,0x65,0x72,0x79])]((_0x318d26,_0x7861ff)=>_0x3c0910[_0x7861ff]===_0x318d26||_0x3c0910[_0x7861ff]===_0x5bcf44([0x2a])));}function _0x54cc3b(){return _0x4c3773&&_0x1ea17e?new window[(_0x5bcf44([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3675f5,_0x44252a)=>{_0x4c3773[_0x5bcf44([0x74,0x68,0x65,0x6e])](_0x3675f5,_0x44252a),_0x1ea17e[_0x5bcf44([0x74,0x68,0x65,0x6e])](_0x52c2e9=>{_0x52c2e9!=_0x5bcf44([0x56,0x61,0x6c,0x69,0x64])&&_0x3675f5(_0x52c2e9);},_0x44252a);}):_0x4c3773||_0x1ea17e||_0x5bcf44([0x56,0x61,0x6c,0x69,0x64]);}}function _0x3b423a(_0x4cd5d3,_0x33d7f7){return new window[(_0x5bcf44([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x14934d=>{if(_0x5e515b())return _0x14934d(_0x5bcf44([0x56,0x61,0x6c,0x69,0x64]));_0xe0f6bf(),_0x5878aa[_0x5bcf44([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x5bcf44([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x3afd35=!0x1;const _0x39ac8a=_0x1dc706();function _0x1552e3(_0x30f709){return!!_0x30f709&&(typeof _0x30f709===_0x5bcf44([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x30f709===_0x5bcf44([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x30f709[_0x5bcf44([0x74,0x68,0x65,0x6e])]===_0x5bcf44([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x30f709[_0x5bcf44([0x63,0x61,0x74,0x63,0x68])]===_0x5bcf44([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x5a187c(_0x5c7d32){_0x1ca7c6(_0x5c7d32)[_0x5bcf44([0x74,0x68,0x65,0x6e])](_0x1e822c=>{if(!_0x1e822c||_0x1e822c[_0x5bcf44([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x5bcf44([0x6f,0x6b]))return _0x5bcf44([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x1cf1be(_0x11ff8e(_0x39ac8a+_0x33d7f7))!=_0x1e822c[_0x5bcf44([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x5bcf44([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x5bcf44([0x56,0x61,0x6c,0x69,0x64]);})[_0x5bcf44([0x74,0x68,0x65,0x6e])](_0x33225c=>(_0x5a9c3(),_0x33225c),()=>{const _0x337991=_0x1aa566();return null==_0x337991?(_0x5a9c3(),_0x5bcf44([0x56,0x61,0x6c,0x69,0x64])):_0x5bcf44(_0x482ce7-_0x337991>(0x27d454df^_0x229391)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x5bcf44([0x74,0x68,0x65,0x6e])](_0x14934d)[_0x5bcf44([0x63,0x61,0x74,0x63,0x68])](()=>{_0x14934d(_0x5bcf44([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x29d598=0x3ee3e5f^_0x229391;function _0x5a9c3(){const _0x4c6347=_0x5bcf44([0x6c,0x6c,0x63,0x74,0x2d])+_0x1cf1be(_0x11ff8e(_0x4cd5d3)),_0x5594cd=_0x18172d(_0x1cf1be(window[_0x5bcf44([0x4d,0x61,0x74,0x68])][_0x5bcf44([0x63,0x65,0x69,0x6c])](_0x482ce7/_0x29d598)));window[_0x5bcf44([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x5bcf44([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4c6347,_0x5594cd);}function _0x1aa566(){const _0x167cbb=_0x5bcf44([0x6c,0x6c,0x63,0x74,0x2d])+_0x1cf1be(_0x11ff8e(_0x4cd5d3)),_0x3028ae=window[_0x5bcf44([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x5bcf44([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x167cbb);return _0x3028ae?window[_0x5bcf44([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x18172d(_0x3028ae),0x10)*_0x29d598:null;}function _0x1ca7c6(_0x4a1c70){return new window[(_0x5bcf44([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x36745d,_0x276483)=>{_0x4a1c70[_0x5bcf44([0x74,0x68,0x65,0x6e])](_0x36745d,_0x276483),window[_0x5bcf44([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x276483,0x3d9041f^_0x229391);});}}_0x5878aa[_0x5bcf44([0x6f,0x6e])](_0x5bcf44([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x56dab5,_0x46bb3b)=>{if(_0x46bb3b[0x0]!=_0x4cd5d3)return _0x14934d(_0x5bcf44([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x46bb3b[0x1]={..._0x46bb3b[0x1],[_0x5bcf44([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x39ac8a};},{[_0x5bcf44([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x5bcf44([0x68,0x69,0x67,0x68])}),_0x5878aa[_0x5bcf44([0x6f,0x6e])](_0x5bcf44([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x1130b4=>{_0x1552e3(_0x1130b4[_0x5bcf44([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x3afd35=!0x0,_0x5a187c(_0x1130b4[_0x5bcf44([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x5bcf44([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x5bcf44([0x6c,0x6f,0x77])}),_0x567a2d[_0x5bcf44([0x74,0x68,0x65,0x6e])](()=>{_0x3afd35||_0x14934d(_0x5bcf44([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x5e515b(){return _0x5878aa[_0x5bcf44([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5bcf44([0x76,0x69,0x65,0x77])][_0x5bcf44([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x5bcf44([0x61,0x75,0x74,0x6f]);}function _0xe0f6bf(){_0x5878aa[_0x5bcf44([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5bcf44([0x76,0x69,0x65,0x77])][_0x5bcf44([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x5bcf44([0x61,0x75,0x74,0x6f]);}}function _0x272d9e(_0x40d403){const _0x1fe81c=[new window[(_0x5bcf44([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x53b809=>setTimeout(_0x53b809,0x3d1ee13^_0x229391)),_0x567a2d[_0x5bcf44([0x74,0x68,0x65,0x6e])](()=>new window[(_0x5bcf44([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5f5d60=>{let _0x1d9fff=0x0;_0x5878aa[_0x5bcf44([0x6d,0x6f,0x64,0x65,0x6c])][_0x5bcf44([0x6f,0x6e])](_0x5bcf44([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x1c61f3,_0x10d040)=>{_0x10d040[0x0][_0x5bcf44([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x1d9fff++,_0x1d9fff==(0x3d8d127^_0x229391)&&(_0x5f5d60(),_0x1c61f3[_0x5bcf44([0x6f,0x66,0x66])]());});}))];return window[_0x5bcf44([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x5bcf44([0x72,0x61,0x63,0x65])](_0x1fe81c)[_0x5bcf44([0x74,0x68,0x65,0x6e])](()=>_0x40d403);}async function _0x281e84(){await _0x567a2d,_0x5878aa[_0x5bcf44([0x6d,0x6f,0x64,0x65,0x6c])][_0x5bcf44([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x17e03c,_0x5878aa[_0x5bcf44([0x6d,0x6f,0x64,0x65,0x6c])][_0x5bcf44([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x17e03c,_0x5878aa[_0x5bcf44([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x5bcf44([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x32df44(_0x408be5){const _0x55b3cf=_0x3dcfe4();_0x5878aa[_0x55b3cf]=_0x5bcf44([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x408be5,_0x408be5!=_0x5bcf44([0x56,0x61,0x6c,0x69,0x64])&&_0x281e84();}function _0x3dcfe4(){const _0x4ca5e5=window[_0x5bcf44([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x5bcf44([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x5bcf44([0x6e,0x6f,0x77])]())[_0x5bcf44([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x5bcf44([0x2e]),'');let _0x24352a=_0x5bcf44([0x52]);for(let _0x52448b=0x0;_0x52448b<_0x4ca5e5[_0x5bcf44([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x52448b+=0x2){let _0x165ae4=window[_0x5bcf44([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4ca5e5[_0x5bcf44([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x52448b,_0x52448b+0x2));_0x165ae4>=_0x4a0014[_0x5bcf44([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x165ae4-=_0x4a0014[_0x5bcf44([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x24352a+=_0x4a0014[_0x165ae4];}return _0x24352a;}function _0x2ae57d(){const _0x18641d=_0x2b6c8c[_0x5bcf44([0x73,0x70,0x6c,0x69,0x74])](_0x5bcf44([0x2e]));if(0x3!=_0x18641d[_0x5bcf44([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x336202(_0x18641d[0x1]);function _0x336202(_0x426843){const _0x3713f1=_0x323986(_0x426843);return _0x3713f1&&_0x4523bd()?_0x3713f1:null;function _0x4523bd(){const _0xaead5f=_0x3713f1[_0x5bcf44([0x6a,0x74,0x69])],_0x2877c0=window[_0x5bcf44([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xaead5f[_0x5bcf44([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0xaead5f[_0x5bcf44([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x22d833={..._0x3713f1,[_0x5bcf44([0x6a,0x74,0x69])]:_0xaead5f[_0x5bcf44([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0xaead5f[_0x5bcf44([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x22d833[_0x5bcf44([0x76,0x63])],_0x11ff8e(_0x22d833)==_0x2877c0;}}}async function _0x3d3936(){let _0x1388b3=!0x0;try{const _0x5f286b=_0x2b6c8c[_0x5bcf44([0x73,0x70,0x6c,0x69,0x74])](_0x5bcf44([0x2e])),[_0x39351e,_0x48551f,_0x4d75fc]=_0x5f286b;return _0x2b6c43(_0x39351e),await _0x1d8895(_0x39351e,_0x48551f,_0x4d75fc),_0x1388b3;}catch{return!0x1;}function _0x2b6c43(_0x435583){const _0x4a5a8f=_0x323986(_0x435583);_0x4a5a8f&&_0x4a5a8f[_0x5bcf44([0x61,0x6c,0x67])]==_0x5bcf44([0x45,0x53,0x32,0x35,0x36])||(_0x1388b3=!0x1);}async function _0x1d8895(_0x44d02b,_0x2d2e81,_0x30335c){const _0x4983f0=window[_0x5bcf44([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x5bcf44([0x66,0x72,0x6f,0x6d])](_0x35c92a(_0x30335c),_0x499a8e=>_0x499a8e[_0x5bcf44([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x25422d=new window[(_0x5bcf44([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x5bcf44([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x44d02b+_0x5bcf44([0x2e])+_0x2d2e81),_0x334dd0=window[_0x5bcf44([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x5bcf44([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x334dd0)return;const _0x46160b=await _0x334dd0[_0x5bcf44([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x5bcf44([0x6a,0x77,0x6b]),_0xfef786,{[_0x5bcf44([0x6e,0x61,0x6d,0x65])]:_0x5bcf44([0x45,0x43,0x44,0x53,0x41]),[_0x5bcf44([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x5bcf44([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x5bcf44([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x334dd0[_0x5bcf44([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x5bcf44([0x6e,0x61,0x6d,0x65])]:_0x5bcf44([0x45,0x43,0x44,0x53,0x41]),[_0x5bcf44([0x68,0x61,0x73,0x68])]:{[_0x5bcf44([0x6e,0x61,0x6d,0x65])]:_0x5bcf44([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x46160b,_0x4983f0,_0x25422d)||(_0x1388b3=!0x1);}}function _0x323986(_0x553ea8){return _0x553ea8[_0x5bcf44([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x5bcf44([0x65,0x79]))?JSON[_0x5bcf44([0x70,0x61,0x72,0x73,0x65])](_0x35c92a(_0x553ea8)):null;}function _0x35c92a(_0x249a38){return window[_0x5bcf44([0x61,0x74,0x6f,0x62])](_0x249a38[_0x5bcf44([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x5bcf44([0x2b]))[_0x5bcf44([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x5bcf44([0x2f])));}function _0x11ff8e(_0x44e6ea){let _0x193edb=0x1505;function _0x5e0a58(_0x10b5af){for(let _0x561b6c=0x0;_0x561b6c<_0x10b5af[_0x5bcf44([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x561b6c++){const _0xf52210=_0x10b5af[_0x5bcf44([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x561b6c);_0x193edb=(_0x193edb<<0x5)+_0x193edb+_0xf52210,_0x193edb&=_0x193edb;}}function _0x72dab0(_0x344950){Array[_0x5bcf44([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x344950)?_0x344950[_0x5bcf44([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x72dab0):_0x344950&&typeof _0x344950==_0x5bcf44([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x5bcf44([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x344950)[_0x5bcf44([0x73,0x6f,0x72,0x74])]()[_0x5bcf44([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x1ab19c,_0x5113cf])=>{_0x5e0a58(_0x1ab19c),_0x72dab0(_0x5113cf);}):_0x5e0a58(window[_0x5bcf44([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x344950));}return _0x72dab0(_0x44e6ea),_0x193edb>>>0x0;}function _0x1cf1be(_0x380e8e){return _0x380e8e[_0x5bcf44([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x5bcf44([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x5bcf44([0x30]));}function _0x18172d(_0xd619a3){return _0xd619a3[_0x5bcf44([0x73,0x70,0x6c,0x69,0x74])]('')[_0x5bcf44([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x5bcf44([0x6a,0x6f,0x69,0x6e])]('');}function _0x17e03c(){}function _0x5bcf44(_0x3e5fe9){return _0x3e5fe9['map'](_0x33a2d6=>String['fromCharCode'](_0x33a2d6))['join']('');}_0x32df44(await _0x5142cf());}(this);}['_initSchema'](){const _0xd810e8=this['editor']['model']['schema'];_0xd810e8['isRegistered']('imageBlock')&&_0xd810e8['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0xd810e8['isRegistered']('imageInline')&&_0xd810e8['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x431206=this['editor'];_0x431206['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x431206['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x44ca7b=>_0x44ca7b['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x297f05=_0x431206['commands']['get']('replaceImageSource');_0x297f05&&this['listenTo'](_0x297f05,'cleanupImage',(_0x2a2042,[_0x541fc1,_0x19d2e8])=>{_0x541fc1['removeAttribute']('uploadcareImageId',_0x19d2e8);});}['_initConfig'](){const _0xd5c94=this['editor']['config']['get']('uploadcare.uploader')||{},_0x4b84a=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x396a1f(_0x41af39['document'],'uc-config',{..._0xd5c94,'pubkey':_0x4b84a,'ctx-name':'uploader-'+this['ucContextId'],'sourceList':'','imgOnly':'true','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage'],'externalSourcesEmbedCss':'\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup\x20{\x20padding:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-menu\x20{\x20gap:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-footer\x20{\x20padding-top:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__separator\x20{\x20margin:\x200;\x20}\x0a\x09\x09\x09'}),this['_configElement']['iconHrefResolver']=_0x4131d3=>{if('closeMax'==_0x4131d3)return'#uc-icon-arrow-down';},_0x41af39['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x396a1f(_0x41af39['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader-'+this['ucContextId']}),_0x41af39['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x12c182=this['editor']['commands']['get']('insertImage');_0x12c182&&this['listenTo'](_0x12c182,'execute',()=>{const _0x1c88aa=this['editor']['model']['document']['selection']['getSelectedElement']();_0x1c88aa&&_0x1c88aa['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x1c88aa);});});const _0x91886e=this['editor']['commands']['get']('uploadcareImageReplace');_0x91886e&&this['listenTo'](_0x91886e,'execute',()=>{const _0x320257=this['editor']['model']['document']['selection']['getSelectedElement']();_0x320257&&_0x320257['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x320257);});});}}class tt extends _0x258bb9{static get['requires'](){return[o,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x5a4368){super(_0x5a4368),_0x5a4368['config']['define']('uploadcare.uploader.sourceList',[i['Local'],i['URL']]),_0x285eda['defineComponents'](_0x285eda);}}class ii extends _0x53a3ac{constructor(_0x218b5a){super(_0x218b5a);const t=_0x218b5a['t'],_0x2b7a86=this['bindTemplate'],_0x220206=new _0x4f34d2();_0x220206['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':[_0x220206,{'text':_0x2b7a86['to']('imageUploadProgress',_0x20ce3c=>t('Loading\x20image...')+'\x20('+(_0x20ce3c||0x0)+'%)')}]},{'tag':'div','attributes':{'class':['ck-uploadcare-form__skeleton']},'children':[{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'}]},{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'}]}]}]});}}class ti extends _0x53a3ac{constructor(_0x3317e8){super(_0x3317e8);const t=_0x3317e8['t'];this['set']('errorType',null);const _0x4d0ff2=new _0xc427b7(_0x3317e8);_0x4d0ff2['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x4d0ff2['withText']=!0x0,_0x4d0ff2['class']='ck-button-action',_0x4d0ff2['on']('execute',()=>{this['fire']('retry');}),_0x4d0ff2['bind']('isVisible')['to'](this,'errorType',_0x1a3b52=>'NotFound'!==_0x1a3b52);const _0xaf0b7=new _0x4d2d30();_0xaf0b7['content']=_0x657aa0,_0xaf0b7['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x51ce35=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':[_0xaf0b7,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x51ce35['to']('errorType',_0x57eeff=>t('NotFound'!==_0x57eeff?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x4d0ff2]},{'tag':'div','attributes':{'class':['ck-uploadcare-form__skeleton']},'children':[{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'}]},{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'}]}]}]});}}class ei extends _0x53a3ac{constructor(_0x63121b,_0x3f858c){super(_0x63121b);const _0x5d6062=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x3f858c,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x5d6062['to']('imageSrc')}});}}class X extends F{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x14ec62,_0x5becdf,_0x15335e){super(_0x14ec62),this['_items']=this['createCollection'](),this['_loadingView']=new ii(_0x14ec62),this['_errorView']=new ti(_0x14ec62),this['_editingView']=new ei(_0x14ec62,_0x15335e),this['_focusableView']=new _0x53a3ac(_0x14ec62),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x5becdf),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'],_0x1d893c=>{this['_addUploadcareImageEditorListeners'](_0x1d893c);});}),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'](_0x4a5591,_0x5f311){const _0x185624='uc-cloud-image-editor',_0xa773ac=_0x4a5591['querySelector'](_0x185624);if(_0xa773ac)return _0x5f311(_0xa773ac);const _0x40083b=new MutationObserver(_0x2da4d8=>{const _0x52932f=_0x2da4d8['filter'](_0x2a9255=>_0x2a9255['target']===_0x4a5591&&_0x2a9255['addedNodes']['length']>0x0&&_0x2a9255['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x185624);_0x52932f['length']&&(_0x40083b['disconnect'](),_0x5f311(_0x52932f[0x0]['addedNodes'][0x0]));});_0x40083b['observe'](_0x4a5591,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x4bbb68){_0x4bbb68['addEventListener']('apply',_0x74b2b3=>{this['fire']('apply',{'imageSrc':_0x74b2b3['detail']['cdnUrl']});}),_0x4bbb68['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class N extends/* #__PURE__ -- @preserve */
25
+ _0x318366(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x43bbe4,_0x28bf14,_0x2b8bf3){super(),this['_editor']=_0x43bbe4,this['_dialog']=_0x28bf14,this['_imageElement']=_0x2b8bf3,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 _0x5eab4c=this['_imageElement'],_0x3a22a6=_0x5eab4c['getAttribute']('uploadcareImageId'),_0x5c6702=_0x5eab4c['getAttribute']('src');if(_0x3a22a6)await this['_loadImageInfo'](_0x3a22a6,_0x5c6702);else{if(this['_imageCache']['has'](_0x5c6702)){const _0x44eeae=this['_imageCache']['get'](_0x5c6702);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x44eeae['url'],this['imageDimension']=_0x44eeae['dimension'],this['imageId']=_0x44eeae['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x26544d}=this['_editor'],t=_0x26544d['t'],_0x377405=new X(_0x26544d,this['imageStatus'],this['_attributes']);_0x377405['bind']('status')['to'](this,'imageStatus'),_0x377405['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x377405['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x377405['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x377405,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x2ff4df,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x377405,'position':_0x6aa5f7['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x377405['focus']();},'onHide':()=>{_0x377405['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x50689a=>!A(_0x50689a,_0x377405['element'])}});}['_loadImageInfo'](_0x2e6ecf,_0x3338d0){return j['getInfo'](_0x2e6ecf,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl')})['then'](_0x1b19c6=>{const {width:_0xa46d42,height:_0x20a538}=_0x1b19c6['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x3338d0,this['imageDimension']={'width':_0xa46d42,'height':_0x20a538},this['imageId']=_0x2e6ecf;})['catch'](_0x52da2f=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x52da2f['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x3e2ec4,_0x89bf69){return this['_getImageAsFile'](_0x3e2ec4)['then'](_0x55f810=>j['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl'),'baseCDN':this['_editor']['config']['get']('uploadcare.uploader.cdnCname'),'signal':_0x89bf69['signal'],'file':_0x55f810,'onProgress':_0x169a9f=>{_0x169a9f&&_0x169a9f['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x169a9f['value']));}}))['then'](_0x1bae4b=>{const {width:_0x5cb1db,height:_0x1b3690}=_0x1bae4b['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x1bae4b['cdnUrl'],this['imageDimension']={'width':_0x5cb1db,'height':_0x1b3690},this['imageId']=_0x1bae4b['uuid'],this['imageUploadProgress']=null;const _0x22125c=_0x3e2ec4['getAttribute']('src');this['_imageCache']['set'](_0x22125c,{'id':_0x1bae4b['uuid'],'url':_0x1bae4b['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0xeae5fe=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0xeae5fe['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x2884e8,_0x3b6417){_0x2884e8['on']('apply',(_0x266170,_0x275fb2)=>{this['_replaceImage'](_0x3b6417,_0x275fb2['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x2884e8['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x2884e8['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x5e1a46,_0x42762c,_0x5cc089){const _0x2830c2=this['_editor'],{width:_0x85ca51,height:_0x4b8159}=S(_0x42762c,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x469b29,imageSources:_0x39d1b2}=C(_0x42762c,_0x85ca51);_0x2830c2['model']['change'](_0x335b41=>{if('$graveyard'===_0x5e1a46['root']['rootName']){_0x2830c2['execute']('insertImage',{'imageType':_0x5e1a46['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x5e1a46['getAttributes']()),'uploadcareImageId':_0x5cc089,'src':_0x469b29,'sources':_0x39d1b2,'width':_0x85ca51,'height':_0x4b8159}});const _0x297f61=_0x5e1a46['getChildren']();_0x5e1a46=_0x2830c2['model']['document']['selection']['getSelectedElement']();for(const _0x3c2a05 of _0x297f61)_0x335b41['append'](_0x335b41['cloneElement'](_0x3c2a05),_0x5e1a46);}else _0x335b41['setSelection'](_0x5e1a46,'on'),_0x2830c2['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x5e1a46['getAttributes']()),'uploadcareImageId':_0x5cc089,'src':_0x469b29,'sources':_0x39d1b2,'width':_0x85ca51,'height':_0x4b8159},_0x5e1a46);_0x335b41['setSelection'](_0x5e1a46,'on');});}async['_getImageAsFile'](_0x4f2d0c){const _0x4d4b18=_0x41af39['window'],_0x1fc1d1=_0x41af39['document']['location']['href'],_0x40ca00=new _0x4d4b18['URL'](_0x4f2d0c['getAttribute']('src'),_0x1fc1d1);if('data:'===_0x40ca00['protocol']){const _0x273a7f=_0x40ca00['href']['split'](','),_0x2cfb2b=_0x273a7f[0x0]['match'](/:(.*?);/)[0x1],_0xb75568=_0x2cfb2b['split']('/')[0x1],_0xfa2af1=_0x4d4b18['atob'](_0x273a7f[_0x273a7f['length']-0x1]);let _0x2279f2=_0xfa2af1['length'];const _0x214bac=new _0x4d4b18['Uint8Array'](_0x2279f2);for(;_0x2279f2--;)_0x214bac[_0x2279f2]=_0xfa2af1['charCodeAt'](_0x2279f2);return new _0x4d4b18['File']([_0x214bac],'image.'+_0xb75568,{'type':_0x2cfb2b});}const _0x543936=_0x40ca00['href']['split']('/'),_0x431ac0=_0x543936[_0x543936['length']-0x1],_0x578e8c=_0x431ac0['split']('.')[0x1];return _0x4d4b18['fetch'](_0x40ca00['href'])['then'](_0x35cb53=>_0x35cb53['clone']()['blob']())['then'](_0x3e8416=>new _0x4d4b18['File']([_0x3e8416],_0x431ac0,{'type':'image/'+_0x578e8c}));}}class Q extends _0x546caf{['imageEditController'];static get['requires'](){return[_0x332b40];}['_isEditable'];constructor(_0x43f71e){super(_0x43f71e),this['imageEditController']=void 0x0,this['_isEditable']=function(_0xeb6865){const _0x49c3db=z(_0xeb6865);return _0x24ae93=>!(!_0x24ae93||!_0x24ae93['is']('element','imageBlock')&&!_0x24ae93['is']('element','imageInline'))&&(!!_0x24ae93['hasAttribute']('uploadcareImageId')||!!_0x24ae93['hasAttribute']('src')&&_0x49c3db(_0x24ae93['getAttribute']('src')));}(_0x43f71e['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x3a0d5f=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x3a0d5f);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x15145b=this['editor']['model']['document']['selection']['getSelectedElement']();_0x15145b&&(_0x15145b['is']('element','imageBlock')||_0x15145b['is']('element','imageInline'))&&(this['imageEditController']=new N(this['editor'],this['editor']['plugins']['get'](_0x332b40),_0x15145b),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class V extends _0x546caf{['refresh'](){const _0x5ca289=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x5ca289&&(_0x5ca289['is']('element','imageBlock')||_0x5ca289['is']('element','imageInline')));}['execute'](_0x5a84ab){const _0x1e3e15=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x7831b0=>{_0x7831b0['setAttributes'](_0x5a84ab,_0x1e3e15),_0x7831b0['removeAttribute']('srcset',_0x1e3e15),_0x7831b0['removeAttribute']('sizes',_0x1e3e15);});}}class m extends _0x258bb9{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[o,_0x3cca75,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x223d3c}=this;_0x223d3c['commands']['add']('uploadcareImageEdit',new Q(_0x223d3c)),_0x223d3c['commands']['add']('uploadcareImageReplace',new V(_0x223d3c));}}class g extends _0x258bb9{['_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 _0x3fda81=this['editor'];_0x3fda81['ui']['componentFactory']['add']('uploadcareImageEdit',_0x235e94=>{const _0x390ca1=_0x3fda81['commands']['get']('uploadcareImageEdit'),_0x20ba47=new _0xc427b7(_0x235e94),t=_0x235e94['t'];return _0x20ba47['set']({'icon':_0x2ff4df,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x20ba47['bind']('isEnabled')['to'](_0x390ca1),_0x20ba47['bind']('isOn')['to'](_0x390ca1,'isActive'),this['listenTo'](_0x20ba47,'execute',()=>{_0x3fda81['execute']('uploadcareImageEdit'),_0x3fda81['editing']['view']['focus']();}),_0x20ba47;}),this['_initConfig']();}['_initConfig'](){const _0xe16ef0=_0x396a1f(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0xe16ef0),this['listenTo'](this['editor'],'destroy',()=>{_0xe16ef0['remove']();});}}class et extends _0x258bb9{static get['pluginName'](){return'UploadcareImageEdit';}static get['requires'](){return[m,g];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{tt as Uploadcare,w as UploadcareCommand,o as UploadcareEditing,et as UploadcareImageEdit,Q as UploadcareImageEditCommand,m as UploadcareImageEditEditing,g as UploadcareImageEditUI,e as UploadcareUI,f as UploadcareUploadAdapter};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ckeditor/ckeditor5-uploadcare",
3
- "version": "0.0.0-nightly-20251011.0",
3
+ "version": "0.0.0-nightly-20251012.0",
4
4
  "description": "Uploadcare feature for CKEditor 5.",
5
5
  "license": "SEE LICENSE IN LICENSE.md",
6
6
  "author": "CKSource (http://cksource.com/)",
@@ -23,14 +23,14 @@
23
23
  "framework"
24
24
  ],
25
25
  "dependencies": {
26
- "@ckeditor/ckeditor5-core": "0.0.0-nightly-20251011.0",
27
- "@ckeditor/ckeditor5-icons": "0.0.0-nightly-20251011.0",
28
- "@ckeditor/ckeditor5-image": "0.0.0-nightly-20251011.0",
29
- "@ckeditor/ckeditor5-theme-lark": "0.0.0-nightly-20251011.0",
30
- "@ckeditor/ckeditor5-ui": "0.0.0-nightly-20251011.0",
31
- "@ckeditor/ckeditor5-upload": "0.0.0-nightly-20251011.0",
32
- "@ckeditor/ckeditor5-utils": "0.0.0-nightly-20251011.0",
33
- "ckeditor5": "0.0.0-nightly-20251011.0",
26
+ "@ckeditor/ckeditor5-core": "0.0.0-nightly-20251012.0",
27
+ "@ckeditor/ckeditor5-icons": "0.0.0-nightly-20251012.0",
28
+ "@ckeditor/ckeditor5-image": "0.0.0-nightly-20251012.0",
29
+ "@ckeditor/ckeditor5-theme-lark": "0.0.0-nightly-20251012.0",
30
+ "@ckeditor/ckeditor5-ui": "0.0.0-nightly-20251012.0",
31
+ "@ckeditor/ckeditor5-upload": "0.0.0-nightly-20251012.0",
32
+ "@ckeditor/ckeditor5-utils": "0.0.0-nightly-20251012.0",
33
+ "ckeditor5": "0.0.0-nightly-20251012.0",
34
34
  "@uploadcare/file-uploader": "1.19.4",
35
35
  "@uploadcare/upload-client": "6.14.3"
36
36
  },
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x3d52bc=_0xc0c4;(function(_0x1254d9,_0xe08d3f){const _0x3e9df2=_0xc0c4,_0x2fbbe4=_0x1254d9();while(!![]){try{const _0x4ecc0c=-parseInt(_0x3e9df2(0xa7))/0x1+-parseInt(_0x3e9df2(0xc7))/0x2+-parseInt(_0x3e9df2(0x94))/0x3+-parseInt(_0x3e9df2(0xbd))/0x4+-parseInt(_0x3e9df2(0x7a))/0x5*(-parseInt(_0x3e9df2(0x89))/0x6)+-parseInt(_0x3e9df2(0xc0))/0x7*(parseInt(_0x3e9df2(0xa8))/0x8)+parseInt(_0x3e9df2(0x8b))/0x9;if(_0x4ecc0c===_0xe08d3f)break;else _0x2fbbe4['push'](_0x2fbbe4['shift']());}catch(_0xe45a01){_0x2fbbe4['push'](_0x2fbbe4['shift']());}}}(_0x48b1,0x55e87));import{Plugin as _0x2b62f8}from'ckeditor5/src/core.js';import{Dialog as _0x203f0c}from'ckeditor5/src/ui.js';function _0x48b1(){const _0x527d0f=['_initCtx','map','_ctxElement','downcast','once','getSelectedElement','join','config','iconHrefResolver','_initConfig','true','_initConversion','uc-upload-ctx-provider','init','render','uploader-','1407128XvOEiU','replaceImageSource','isRegistered','38444FVvvFU','isPremiumPlugin','remove','editor','imageInline','closeMax','uploadcareImageId','949346obnFJR','UploadcareEditing','listenTo','#uc-icon-arrow-down','view','commands','_initImageProcessingIndicator','1019050dCLNem','insertImage','elementToAttribute','ctxElement','attributeToAttribute','editing','cleanupImage','fromCharCode','conversion','appendChild','isOfficialPlugin','get','contentLanguage','add','querySelector','6TyjDFq','uploadcareImageReplace','22851450cawPQt','\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','extend','upcast','getAttribute','uploadcare','uploadcare.pubkey','locale','ucContextId','1816776xpLCNA','href','uploadcare.uploader','imageBlock','schema','afterInit','selection','model','input[uploadcare-file-input]','body','for','_configElement','uc-config','configElement','document','PictureEditing','requires','execute','pluginName','695318ZwIkgs','384IFKlmj','_initSchema','removeAttribute','destroy','data-uc-image-id'];_0x48b1=function(){return _0x527d0f;};return _0x48b1();}function _0xc0c4(_0x313b33,_0x1c87ea){const _0x48b19d=_0x48b1();return _0xc0c4=function(_0xc0c41e,_0x47df77){_0xc0c41e=_0xc0c41e-0x7a;let _0x47b781=_0x48b19d[_0xc0c41e];return _0x47b781;},_0xc0c4(_0x313b33,_0x1c87ea);}import{createElement as _0x4340ad,global as _0x3bbfed,uid as _0x49e15b}from'ckeditor5/src/utils.js';import{UploadcareCommand as _0x4eb626}from'./uploadcarecommand.js';import{UploadcareUploadAdapter as _0x19a9d7}from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0x3f1cac}from'./utils/editingutils.js';export class UploadcareEditing extends _0x2b62f8{[_0x3d52bc(0x9f)]=null;[_0x3d52bc(0xaf)]=null;static get[_0x3d52bc(0xa6)](){const _0x24c488=_0x3d52bc;return _0x24c488(0xc8);}static get[_0x3d52bc(0xa4)](){const _0x5dd8d0=_0x3d52bc;return[_0x5dd8d0(0xa3),_0x19a9d7,_0x203f0c];}static get[_0x3d52bc(0x84)](){return!0x0;}static get[_0x3d52bc(0xc1)](){return!0x0;}[_0x3d52bc(0x93)];get[_0x3d52bc(0xa1)](){const _0x4508fd=_0x3d52bc;return this[_0x4508fd(0x9f)];}get[_0x3d52bc(0x7d)](){const _0x4dc971=_0x3d52bc;return this[_0x4dc971(0xaf)];}constructor(_0x270f84){const _0x2a5112=_0x3d52bc;super(_0x270f84),this[_0x2a5112(0x93)]=_0x49e15b();}[_0x3d52bc(0xba)](){const _0x37c1f2=_0x3d52bc,_0x239964=this[_0x37c1f2(0xc3)];_0x239964[_0x37c1f2(0xcc)][_0x37c1f2(0x87)](_0x37c1f2(0x90),new _0x4eb626(_0x239964));}[_0x3d52bc(0x99)](){const _0x2b9f7f=_0x3d52bc;this[_0x2b9f7f(0xa9)](),this[_0x2b9f7f(0xb8)](),this[_0x2b9f7f(0xb6)](),this[_0x2b9f7f(0xad)](),this[_0x2b9f7f(0xcd)](),this[_0x2b9f7f(0xc9)](this[_0x2b9f7f(0xc3)],_0x2b9f7f(0xab),()=>{const _0x4afa1f=_0x2b9f7f;this[_0x4afa1f(0x9f)]&&(this[_0x4afa1f(0x9f)][_0x4afa1f(0xc2)](),this[_0x4afa1f(0x9f)]=null),this[_0x4afa1f(0xaf)]&&(this[_0x4afa1f(0xaf)][_0x4afa1f(0xc2)](),this[_0x4afa1f(0xaf)]=null);const _0x25d1cd=_0x3bbfed[_0x4afa1f(0xa2)][_0x4afa1f(0x88)](_0x4afa1f(0x9c));_0x25d1cd&&_0x25d1cd[_0x4afa1f(0xc2)]();}),async function(_0x56009e){const _0x55b7dd=_0x2e1352([0x52,0x42,0x63,0x58,0x64,0x47,0x66,0x35,0x36,0x37,0x6d,0x4e,0x6a,0x4b,0x39,0x44,0x54,0x70,0x50,0x30,0x49,0x79,0x69,0x33,0x67,0x65,0x61,0x38,0x5a,0x76,0x7a,0x6c,0x45,0x34,0x62,0x46,0x75,0x57,0x72,0x77,0x73,0x48,0x31,0x68,0x6e,0x4f,0x53,0x4c,0x71,0x6b,0x59,0x32,0x4d,0x51,0x4a,0x78,0x6f,0x56,0x41,0x55,0x74,0x43]),_0x32995d=0x3d8d0df,_0x504297=0x3dfa53f^_0x32995d,_0x52509d=window[_0x2e1352([0x44,0x61,0x74,0x65])][_0x2e1352([0x6e,0x6f,0x77])](),_0x2a203f=_0x56009e[_0x2e1352([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x3c1386=new window[(_0x2e1352([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x56f0a3=>{_0x2a203f[_0x2e1352([0x6f,0x6e,0x63,0x65])](_0x2e1352([0x72,0x65,0x61,0x64,0x79]),_0x56f0a3);}),_0x1507ad={[_0x2e1352([0x6b,0x74,0x79])]:_0x2e1352([0x45,0x43]),[_0x2e1352([0x75,0x73,0x65])]:_0x2e1352([0x73,0x69,0x67]),[_0x2e1352([0x63,0x72,0x76])]:_0x2e1352([0x50,0x2d,0x32,0x35,0x36]),[_0x2e1352([0x78])]:_0x2e1352([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]),[_0x2e1352([0x79])]:_0x2e1352([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]),[_0x2e1352([0x61,0x6c,0x67])]:_0x2e1352([0x45,0x53,0x32,0x35,0x36])},_0x447c3c=_0x2a203f[_0x2e1352([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x2e1352([0x67,0x65,0x74])](_0x2e1352([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x38257b(){let _0x498462,_0x3f6650=null,_0x59ffad=null;try{if(_0x447c3c==_0x2e1352([0x47,0x50,0x4c]))return _0x2e1352([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x498462=_0x54a3f7(),!_0x498462)return _0x2e1352([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x498462[_0x2e1352([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x59ffad=_0x4f0fbd(_0x498462[_0x2e1352([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x498462[_0x2e1352([0x6a,0x74,0x69])])),await _0x2a42b5()?_0x3710a7()?_0x12692b()?_0x2e1352([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x4913e7()?(_0x498462[_0x2e1352([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x2e1352([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x3f6650=_0x33e131(_0x2e1352([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x498462[_0x2e1352([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x2e1352([0x74,0x72,0x69,0x61,0x6c])&&(_0x3f6650=_0x33e131(_0x2e1352([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x424dd2()):_0x2e1352([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x2e1352([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x2e1352([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x2e1352([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x12692b(){const _0x10f9f6=[_0x2e1352([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x2e1352([0x74,0x72,0x69,0x61,0x6c])][_0x2e1352([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x498462[_0x2e1352([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x52509d/0x3e8:0xe10*_0x504297;return _0x498462[_0x2e1352([0x65,0x78,0x70])]<_0x10f9f6;}function _0x3710a7(){const _0x3aab00=_0x498462[_0x2e1352([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x3aab00&&(!!_0x3aab00[_0x2e1352([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2e1352([0x2a]))||!!_0x3aab00[_0x2e1352([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2e1352([0x55,0x50,0x4c,0x43])));}function _0x4913e7(){const _0xadf817=_0xc0c4,_0x40fe67=_0x498462[_0x2e1352([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x40fe67||0x0==_0x40fe67[_0x2e1352([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x20f702}=new URL(window[_0x2e1352([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0xadf817(0x95)]);if(_0x40fe67[_0x2e1352([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x20f702))return!0x0;const _0x5f51f2=_0x20f702[_0x2e1352([0x73,0x70,0x6c,0x69,0x74])](_0x2e1352([0x2e]));return _0x40fe67[_0x2e1352([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x183908=>_0x183908[_0x2e1352([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2e1352([0x2a])))[_0x2e1352([0x6d,0x61,0x70])](_0x3c3912=>_0x3c3912[_0x2e1352([0x73,0x70,0x6c,0x69,0x74])](_0x2e1352([0x2e])))[_0x2e1352([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x303ce6=>_0x303ce6[_0x2e1352([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x5f51f2[_0x2e1352([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x2e1352([0x6d,0x61,0x70])](_0x21492d=>Array(_0x5f51f2[_0x2e1352([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x21492d[_0x2e1352([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x2e1352([0x66,0x69,0x6c,0x6c])](_0x21492d[0x0]===_0x2e1352([0x2a])?_0x2e1352([0x2a]):'')[_0x2e1352([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x21492d))[_0x2e1352([0x73,0x6f,0x6d,0x65])](_0x38e5ea=>_0x5f51f2[_0x2e1352([0x65,0x76,0x65,0x72,0x79])]((_0x163ca5,_0x254025)=>_0x38e5ea[_0x254025]===_0x163ca5||_0x38e5ea[_0x254025]===_0x2e1352([0x2a])));}function _0x424dd2(){return _0x3f6650&&_0x59ffad?new window[(_0x2e1352([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1cee94,_0x28d658)=>{_0x3f6650[_0x2e1352([0x74,0x68,0x65,0x6e])](_0x1cee94,_0x28d658),_0x59ffad[_0x2e1352([0x74,0x68,0x65,0x6e])](_0x4259ff=>{_0x4259ff!=_0x2e1352([0x56,0x61,0x6c,0x69,0x64])&&_0x1cee94(_0x4259ff);},_0x28d658);}):_0x3f6650||_0x59ffad||_0x2e1352([0x56,0x61,0x6c,0x69,0x64]);}}function _0x4f0fbd(_0x3b4e47,_0x2b42e1){return new window[(_0x2e1352([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5aff95=>{if(_0x7a4869())return _0x5aff95(_0x2e1352([0x56,0x61,0x6c,0x69,0x64]));_0x4f61d2(),_0x2a203f[_0x2e1352([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x2e1352([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x228f27=!0x1;const _0x537eae=_0x49e15b();function _0x3877b0(_0x53cd0c){return!!_0x53cd0c&&(typeof _0x53cd0c===_0x2e1352([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x53cd0c===_0x2e1352([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x53cd0c[_0x2e1352([0x74,0x68,0x65,0x6e])]===_0x2e1352([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x53cd0c[_0x2e1352([0x63,0x61,0x74,0x63,0x68])]===_0x2e1352([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x3e88fd(_0x5e5305){_0x40ab8c(_0x5e5305)[_0x2e1352([0x74,0x68,0x65,0x6e])](_0x5028d6=>{if(!_0x5028d6||_0x5028d6[_0x2e1352([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x2e1352([0x6f,0x6b]))return _0x2e1352([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x394a75(_0x1a1c48(_0x537eae+_0x2b42e1))!=_0x5028d6[_0x2e1352([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x2e1352([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x2e1352([0x56,0x61,0x6c,0x69,0x64]);})[_0x2e1352([0x74,0x68,0x65,0x6e])](_0xa26d14=>(_0x24621c(),_0xa26d14),()=>{const _0x1f3e30=_0xe003ea();return null==_0x1f3e30?(_0x24621c(),_0x2e1352([0x56,0x61,0x6c,0x69,0x64])):_0x2e1352(_0x52509d-_0x1f3e30>(0x27d454df^_0x32995d)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x2e1352([0x74,0x68,0x65,0x6e])](_0x5aff95)[_0x2e1352([0x63,0x61,0x74,0x63,0x68])](()=>{_0x5aff95(_0x2e1352([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x222ce2=0x3ee3e5f^_0x32995d;function _0x24621c(){const _0x27fb57=_0x2e1352([0x6c,0x6c,0x63,0x74,0x2d])+_0x394a75(_0x1a1c48(_0x3b4e47)),_0x1257c0=_0x177b99(_0x394a75(window[_0x2e1352([0x4d,0x61,0x74,0x68])][_0x2e1352([0x63,0x65,0x69,0x6c])](_0x52509d/_0x222ce2)));window[_0x2e1352([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x2e1352([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x27fb57,_0x1257c0);}function _0xe003ea(){const _0x20c7b0=_0x2e1352([0x6c,0x6c,0x63,0x74,0x2d])+_0x394a75(_0x1a1c48(_0x3b4e47)),_0x8f1e88=window[_0x2e1352([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x2e1352([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x20c7b0);return _0x8f1e88?window[_0x2e1352([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x177b99(_0x8f1e88),0x10)*_0x222ce2:null;}function _0x40ab8c(_0x386c88){return new window[(_0x2e1352([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1a91c7,_0xa9542a)=>{_0x386c88[_0x2e1352([0x74,0x68,0x65,0x6e])](_0x1a91c7,_0xa9542a),window[_0x2e1352([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0xa9542a,0x3d9041f^_0x32995d);});}}_0x2a203f[_0x2e1352([0x6f,0x6e])](_0x2e1352([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x173c2d,_0x1fd650)=>{if(_0x1fd650[0x0]!=_0x3b4e47)return _0x5aff95(_0x2e1352([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x1fd650[0x1]={..._0x1fd650[0x1],[_0x2e1352([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x537eae};},{[_0x2e1352([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x2e1352([0x68,0x69,0x67,0x68])}),_0x2a203f[_0x2e1352([0x6f,0x6e])](_0x2e1352([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x172722=>{_0x3877b0(_0x172722[_0x2e1352([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x228f27=!0x0,_0x3e88fd(_0x172722[_0x2e1352([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x2e1352([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x2e1352([0x6c,0x6f,0x77])}),_0x3c1386[_0x2e1352([0x74,0x68,0x65,0x6e])](()=>{_0x228f27||_0x5aff95(_0x2e1352([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x7a4869(){return _0x2a203f[_0x2e1352([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2e1352([0x76,0x69,0x65,0x77])][_0x2e1352([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x2e1352([0x61,0x75,0x74,0x6f]);}function _0x4f61d2(){_0x2a203f[_0x2e1352([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2e1352([0x76,0x69,0x65,0x77])][_0x2e1352([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x2e1352([0x61,0x75,0x74,0x6f]);}}function _0x33e131(_0x5bae9f){const _0x2ce380=[new window[(_0x2e1352([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4db8cb=>setTimeout(_0x4db8cb,0x3d1ee13^_0x32995d)),_0x3c1386[_0x2e1352([0x74,0x68,0x65,0x6e])](()=>new window[(_0x2e1352([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x17a84f=>{let _0x2b5330=0x0;_0x2a203f[_0x2e1352([0x6d,0x6f,0x64,0x65,0x6c])][_0x2e1352([0x6f,0x6e])](_0x2e1352([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x57d270,_0x2d8218)=>{_0x2d8218[0x0][_0x2e1352([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x2b5330++,_0x2b5330==(0x3d8d127^_0x32995d)&&(_0x17a84f(),_0x57d270[_0x2e1352([0x6f,0x66,0x66])]());});}))];return window[_0x2e1352([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x2e1352([0x72,0x61,0x63,0x65])](_0x2ce380)[_0x2e1352([0x74,0x68,0x65,0x6e])](()=>_0x5bae9f);}async function _0x433f77(){await _0x3c1386,_0x2a203f[_0x2e1352([0x6d,0x6f,0x64,0x65,0x6c])][_0x2e1352([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x3fe8f0,_0x2a203f[_0x2e1352([0x6d,0x6f,0x64,0x65,0x6c])][_0x2e1352([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x3fe8f0,_0x2a203f[_0x2e1352([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x2e1352([0x6d,0x6f,0x64,0x65,0x6c]));}function _0xcefe43(_0x3f782f){const _0x2cb582=_0x35f663();_0x2a203f[_0x2cb582]=_0x2e1352([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x3f782f,_0x3f782f!=_0x2e1352([0x56,0x61,0x6c,0x69,0x64])&&_0x433f77();}function _0x35f663(){const _0x1a71a1=window[_0x2e1352([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x2e1352([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x2e1352([0x6e,0x6f,0x77])]())[_0x2e1352([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x2e1352([0x2e]),'');let _0x23ea7f=_0x2e1352([0x52]);for(let _0x364cc0=0x0;_0x364cc0<_0x1a71a1[_0x2e1352([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x364cc0+=0x2){let _0x251e19=window[_0x2e1352([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1a71a1[_0x2e1352([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x364cc0,_0x364cc0+0x2));_0x251e19>=_0x55b7dd[_0x2e1352([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x251e19-=_0x55b7dd[_0x2e1352([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x23ea7f+=_0x55b7dd[_0x251e19];}return _0x23ea7f;}function _0x54a3f7(){const _0x36f680=_0x447c3c[_0x2e1352([0x73,0x70,0x6c,0x69,0x74])](_0x2e1352([0x2e]));if(0x3!=_0x36f680[_0x2e1352([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x1ec7f4(_0x36f680[0x1]);function _0x1ec7f4(_0x21db09){const _0x4a3fcd=_0x5f342a(_0x21db09);return _0x4a3fcd&&_0x40b5fb()?_0x4a3fcd:null;function _0x40b5fb(){const _0x590ead=_0x4a3fcd[_0x2e1352([0x6a,0x74,0x69])],_0x46c388=window[_0x2e1352([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x590ead[_0x2e1352([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x590ead[_0x2e1352([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x393a44={..._0x4a3fcd,[_0x2e1352([0x6a,0x74,0x69])]:_0x590ead[_0x2e1352([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x590ead[_0x2e1352([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x393a44[_0x2e1352([0x76,0x63])],_0x1a1c48(_0x393a44)==_0x46c388;}}}async function _0x2a42b5(){let _0x5249a0=!0x0;try{const _0x105a33=_0x447c3c[_0x2e1352([0x73,0x70,0x6c,0x69,0x74])](_0x2e1352([0x2e])),[_0x47979b,_0x43facd,_0x87d3b4]=_0x105a33;return _0xcf4782(_0x47979b),await _0x51ea54(_0x47979b,_0x43facd,_0x87d3b4),_0x5249a0;}catch{return!0x1;}function _0xcf4782(_0x546e44){const _0x181c21=_0x5f342a(_0x546e44);_0x181c21&&_0x181c21[_0x2e1352([0x61,0x6c,0x67])]==_0x2e1352([0x45,0x53,0x32,0x35,0x36])||(_0x5249a0=!0x1);}async function _0x51ea54(_0x2ddb62,_0x1d2f7e,_0x28b19d){const _0x3309ba=window[_0x2e1352([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x2e1352([0x66,0x72,0x6f,0x6d])](_0x2d7671(_0x28b19d),_0x5e8178=>_0x5e8178[_0x2e1352([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x490e5a=new window[(_0x2e1352([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x2e1352([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x2ddb62+_0x2e1352([0x2e])+_0x1d2f7e),_0x4b9f8a=window[_0x2e1352([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x2e1352([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x4b9f8a)return;const _0x46ddb0=await _0x4b9f8a[_0x2e1352([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x2e1352([0x6a,0x77,0x6b]),_0x1507ad,{[_0x2e1352([0x6e,0x61,0x6d,0x65])]:_0x2e1352([0x45,0x43,0x44,0x53,0x41]),[_0x2e1352([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x2e1352([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x2e1352([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x4b9f8a[_0x2e1352([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x2e1352([0x6e,0x61,0x6d,0x65])]:_0x2e1352([0x45,0x43,0x44,0x53,0x41]),[_0x2e1352([0x68,0x61,0x73,0x68])]:{[_0x2e1352([0x6e,0x61,0x6d,0x65])]:_0x2e1352([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x46ddb0,_0x3309ba,_0x490e5a)||(_0x5249a0=!0x1);}}function _0x5f342a(_0x3843f7){return _0x3843f7[_0x2e1352([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x2e1352([0x65,0x79]))?JSON[_0x2e1352([0x70,0x61,0x72,0x73,0x65])](_0x2d7671(_0x3843f7)):null;}function _0x2d7671(_0x4677cd){return window[_0x2e1352([0x61,0x74,0x6f,0x62])](_0x4677cd[_0x2e1352([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x2e1352([0x2b]))[_0x2e1352([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x2e1352([0x2f])));}function _0x1a1c48(_0x246031){let _0x2b7b8e=0x1505;function _0x76536c(_0x87f004){for(let _0x253996=0x0;_0x253996<_0x87f004[_0x2e1352([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x253996++){const _0xe0c732=_0x87f004[_0x2e1352([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x253996);_0x2b7b8e=(_0x2b7b8e<<0x5)+_0x2b7b8e+_0xe0c732,_0x2b7b8e&=_0x2b7b8e;}}function _0x3f1189(_0x1029f5){Array[_0x2e1352([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x1029f5)?_0x1029f5[_0x2e1352([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x3f1189):_0x1029f5&&typeof _0x1029f5==_0x2e1352([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x2e1352([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x1029f5)[_0x2e1352([0x73,0x6f,0x72,0x74])]()[_0x2e1352([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x35377d,_0x510e53])=>{_0x76536c(_0x35377d),_0x3f1189(_0x510e53);}):_0x76536c(window[_0x2e1352([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x1029f5));}return _0x3f1189(_0x246031),_0x2b7b8e>>>0x0;}function _0x394a75(_0x115c78){return _0x115c78[_0x2e1352([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x2e1352([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x2e1352([0x30]));}function _0x177b99(_0x1fdda9){return _0x1fdda9[_0x2e1352([0x73,0x70,0x6c,0x69,0x74])]('')[_0x2e1352([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x2e1352([0x6a,0x6f,0x69,0x6e])]('');}function _0x3fe8f0(){}function _0x2e1352(_0x39fa84){const _0x3bfb95=_0xc0c4;return _0x39fa84[_0x3bfb95(0xae)](_0xaf4b76=>String[_0x3bfb95(0x81)](_0xaf4b76))[_0x3bfb95(0xb3)]('');}_0xcefe43(await _0x38257b());}(this);}[_0x3d52bc(0xa9)](){const _0x1f6ba2=_0x3d52bc,_0x251b13=this[_0x1f6ba2(0xc3)][_0x1f6ba2(0x9b)][_0x1f6ba2(0x98)];_0x251b13[_0x1f6ba2(0xbf)](_0x1f6ba2(0x97))&&_0x251b13[_0x1f6ba2(0x8d)](_0x1f6ba2(0x97),{'allowAttributes':[_0x1f6ba2(0xc6)]}),_0x251b13[_0x1f6ba2(0xbf)](_0x1f6ba2(0xc4))&&_0x251b13[_0x1f6ba2(0x8d)](_0x1f6ba2(0xc4),{'allowAttributes':[_0x1f6ba2(0xc6)]});}[_0x3d52bc(0xb8)](){const _0x2a2b69=_0x3d52bc,_0x1c9f9d=this[_0x2a2b69(0xc3)];_0x1c9f9d[_0x2a2b69(0x82)][_0x2a2b69(0x9e)](_0x2a2b69(0xb0))[_0x2a2b69(0x7e)]({'model':_0x2a2b69(0xc6),'view':_0x2a2b69(0xac)}),_0x1c9f9d[_0x2a2b69(0x82)][_0x2a2b69(0x9e)](_0x2a2b69(0x8e))[_0x2a2b69(0x7c)]({'model':{'key':_0x2a2b69(0xc6),'value':_0xc8c6bf=>_0xc8c6bf[_0x2a2b69(0x8f)](_0x2a2b69(0xac))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0xd30eae=_0x1c9f9d[_0x2a2b69(0xcc)][_0x2a2b69(0x85)](_0x2a2b69(0xbe));_0xd30eae&&this[_0x2a2b69(0xc9)](_0xd30eae,_0x2a2b69(0x80),(_0xb2b0eb,[_0x474793,_0x23802c])=>{const _0x4be91b=_0x2a2b69;_0x474793[_0x4be91b(0xaa)](_0x4be91b(0xc6),_0x23802c);});}[_0x3d52bc(0xb6)](){const _0xf6f190=_0x3d52bc,_0x4bfc0f=this[_0xf6f190(0xc3)][_0xf6f190(0xb4)][_0xf6f190(0x85)](_0xf6f190(0x96))||{},_0x2dd3e9=this[_0xf6f190(0xc3)][_0xf6f190(0xb4)][_0xf6f190(0x85)](_0xf6f190(0x91))||'';this[_0xf6f190(0x9f)]=_0x4340ad(_0x3bbfed[_0xf6f190(0xa2)],_0xf6f190(0xa0),{..._0x4bfc0f,'pubkey':_0x2dd3e9,'ctx-name':_0xf6f190(0xbc)+this[_0xf6f190(0x93)],'sourceList':'','imgOnly':_0xf6f190(0xb7),'removeCopyright':_0xf6f190(0xb7),'localeName':this[_0xf6f190(0xc3)][_0xf6f190(0x92)][_0xf6f190(0x86)],'externalSourcesEmbedCss':_0xf6f190(0x8c)}),this[_0xf6f190(0x9f)][_0xf6f190(0xb5)]=_0x4a699=>{const _0x360c89=_0xf6f190;if(_0x360c89(0xc5)==_0x4a699)return _0x360c89(0xca);},_0x3bbfed[_0xf6f190(0xa2)][_0xf6f190(0x9d)][_0xf6f190(0x83)](this[_0xf6f190(0x9f)]);}[_0x3d52bc(0xad)](){const _0x540dd7=_0x3d52bc;this[_0x540dd7(0xaf)]=_0x4340ad(_0x3bbfed[_0x540dd7(0xa2)],_0x540dd7(0xb9),{'ctx-name':_0x540dd7(0xbc)+this[_0x540dd7(0x93)]}),_0x3bbfed[_0x540dd7(0xa2)][_0x540dd7(0x9d)][_0x540dd7(0x83)](this[_0x540dd7(0xaf)]);}[_0x3d52bc(0xcd)](){const _0x173617=_0x3d52bc,_0xffb5d2=this[_0x173617(0xc3)][_0x173617(0xcc)][_0x173617(0x85)](_0x173617(0x7b));_0xffb5d2&&this[_0x173617(0xc9)](_0xffb5d2,_0x173617(0xa5),()=>{const _0x2ae0ce=_0x173617,_0xeb789d=this[_0x2ae0ce(0xc3)][_0x2ae0ce(0x9b)][_0x2ae0ce(0xa2)][_0x2ae0ce(0x9a)][_0x2ae0ce(0xb2)]();_0xeb789d&&_0xeb789d[_0x2ae0ce(0x8f)](_0x2ae0ce(0xc6))&&this[_0x2ae0ce(0xc3)][_0x2ae0ce(0x7f)][_0x2ae0ce(0xcb)][_0x2ae0ce(0xb1)](_0x2ae0ce(0xbb),()=>{const _0x299f6e=_0x2ae0ce;_0x3f1cac(this[_0x299f6e(0xc3)],_0xeb789d);});});const _0xef8c30=this[_0x173617(0xc3)][_0x173617(0xcc)][_0x173617(0x85)](_0x173617(0x8a));_0xef8c30&&this[_0x173617(0xc9)](_0xef8c30,_0x173617(0xa5),()=>{const _0x158988=_0x173617,_0x1be52b=this[_0x158988(0xc3)][_0x158988(0x9b)][_0x158988(0xa2)][_0x158988(0x9a)][_0x158988(0xb2)]();_0x1be52b&&_0x1be52b[_0x158988(0x8f)](_0x158988(0xc6))&&this[_0x158988(0xc3)][_0x158988(0x7f)][_0x158988(0xcb)][_0x158988(0xb1)](_0x158988(0xbb),()=>{const _0x5644b9=_0x158988;_0x3f1cac(this[_0x5644b9(0xc3)],_0x1be52b);});});}}
23
+ const _0x540320=_0x3232;(function(_0x18230f,_0x2e760b){const _0x28bc7f=_0x3232,_0x444a43=_0x18230f();while(!![]){try{const _0x3f7ece=-parseInt(_0x28bc7f(0xd0))/0x1+parseInt(_0x28bc7f(0x85))/0x2+-parseInt(_0x28bc7f(0xbc))/0x3+-parseInt(_0x28bc7f(0xa7))/0x4*(parseInt(_0x28bc7f(0xb5))/0x5)+-parseInt(_0x28bc7f(0xc8))/0x6*(-parseInt(_0x28bc7f(0xb0))/0x7)+parseInt(_0x28bc7f(0xb3))/0x8*(parseInt(_0x28bc7f(0x84))/0x9)+-parseInt(_0x28bc7f(0xd4))/0xa*(-parseInt(_0x28bc7f(0x96))/0xb);if(_0x3f7ece===_0x2e760b)break;else _0x444a43['push'](_0x444a43['shift']());}catch(_0x46d1b6){_0x444a43['push'](_0x444a43['shift']());}}}(_0x3003,0xe3dc2));function _0x3232(_0x45d555,_0x5a89a2){const _0x300316=_0x3003();return _0x3232=function(_0x3232cb,_0x1db0d8){_0x3232cb=_0x3232cb-0x7f;let _0x58072c=_0x300316[_0x3232cb];return _0x58072c;},_0x3232(_0x45d555,_0x5a89a2);}import{Plugin as _0x3e9090}from'ckeditor5/src/core.js';import{Dialog as _0x1d9296}from'ckeditor5/src/ui.js';function _0x3003(){const _0x3e3e11=['destroy','#uc-icon-arrow-down','uploadcareImageId','editor','document','for','upcast','extend','map','ctxElement','join','data-uc-image-id','insertImage','236alyndS','imageInline','contentLanguage','href','_initImageProcessingIndicator','uploadcare','pluginName','uploadcare.pubkey','uc-config','7cRxdfm','remove','editing','164336scSYKU','_initConfig','90845swveXi','imageBlock','isPremiumPlugin','downcast','_configElement','closeMax','init','4105974Ldildt','_initSchema','render','fromCharCode','iconHrefResolver','execute','querySelector','afterInit','appendChild','listenTo','elementToAttribute','view','4469664jMynWG','get','isOfficialPlugin','selection','conversion','input[uploadcare-file-input]','replaceImageSource','schema','1345627COpsbd','uploader-','attributeToAttribute','PictureEditing','32535960eKOYxm','uploadcareImageReplace','once','model','_initCtx','_ctxElement','9qzoDIn','1400976oPrtqK','true','cleanupImage','UploadcareEditing','\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup\x20{\x20padding:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-menu\x20{\x20gap:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-footer\x20{\x20padding-top:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__separator\x20{\x20margin:\x200;\x20}\x0a\x09\x09\x09','removeAttribute','uploadcare.uploader','configElement','ucContextId','_initConversion','config','commands','add','body','getAttribute','locale','isRegistered','11BJCibx','getSelectedElement','requires','uc-upload-ctx-provider'];_0x3003=function(){return _0x3e3e11;};return _0x3003();}import{createElement as _0x1506f9,global as _0x1e1bc5,uid as _0x50dba6}from'ckeditor5/src/utils.js';import{UploadcareCommand as _0x3f97f6}from'./uploadcarecommand.js';import{UploadcareUploadAdapter as _0x3c21e8}from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0x1c383f}from'./utils/editingutils.js';export class UploadcareEditing extends _0x3e9090{[_0x540320(0xb9)]=null;[_0x540320(0x83)]=null;static get[_0x540320(0xad)](){const _0x5c51ff=_0x540320;return _0x5c51ff(0x88);}static get[_0x540320(0x98)](){const _0x27d915=_0x540320;return[_0x27d915(0xd3),_0x3c21e8,_0x1d9296];}static get[_0x540320(0xca)](){return!0x0;}static get[_0x540320(0xb7)](){return!0x0;}[_0x540320(0x8d)];get[_0x540320(0x8c)](){const _0x570bf3=_0x540320;return this[_0x570bf3(0xb9)];}get[_0x540320(0xa3)](){const _0x83b543=_0x540320;return this[_0x83b543(0x83)];}constructor(_0x43a055){const _0x217d69=_0x540320;super(_0x43a055),this[_0x217d69(0x8d)]=_0x50dba6();}[_0x540320(0xbb)](){const _0x46916e=_0x540320,_0x49d530=this[_0x46916e(0x9d)];_0x49d530[_0x46916e(0x90)][_0x46916e(0x91)](_0x46916e(0xac),new _0x3f97f6(_0x49d530));}[_0x540320(0xc3)](){const _0x90b4c6=_0x540320;this[_0x90b4c6(0xbd)](),this[_0x90b4c6(0x8e)](),this[_0x90b4c6(0xb4)](),this[_0x90b4c6(0x82)](),this[_0x90b4c6(0xab)](),this[_0x90b4c6(0xc5)](this[_0x90b4c6(0x9d)],_0x90b4c6(0x9a),()=>{const _0x3af2c1=_0x90b4c6;this[_0x3af2c1(0xb9)]&&(this[_0x3af2c1(0xb9)][_0x3af2c1(0xb1)](),this[_0x3af2c1(0xb9)]=null),this[_0x3af2c1(0x83)]&&(this[_0x3af2c1(0x83)][_0x3af2c1(0xb1)](),this[_0x3af2c1(0x83)]=null);const _0x3f21aa=_0x1e1bc5[_0x3af2c1(0x9e)][_0x3af2c1(0xc2)](_0x3af2c1(0xcd));_0x3f21aa&&_0x3f21aa[_0x3af2c1(0xb1)]();}),async function(_0x32e991){const _0x5a5cee=_0xd009d4([0x52,0x42,0x63,0x58,0x64,0x47,0x66,0x35,0x36,0x37,0x6d,0x4e,0x6a,0x4b,0x39,0x44,0x54,0x70,0x50,0x30,0x49,0x79,0x69,0x33,0x67,0x65,0x61,0x38,0x5a,0x76,0x7a,0x6c,0x45,0x34,0x62,0x46,0x75,0x57,0x72,0x77,0x73,0x48,0x31,0x68,0x6e,0x4f,0x53,0x4c,0x71,0x6b,0x59,0x32,0x4d,0x51,0x4a,0x78,0x6f,0x56,0x41,0x55,0x74,0x43]),_0x47d945=0x3d8d0df,_0x493fb5=0x3dfa527^_0x47d945,_0x5636d3=window[_0xd009d4([0x44,0x61,0x74,0x65])][_0xd009d4([0x6e,0x6f,0x77])](),_0x5ca5c7=_0x32e991[_0xd009d4([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x546c9e=new window[(_0xd009d4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xd5bd3a=>{_0x5ca5c7[_0xd009d4([0x6f,0x6e,0x63,0x65])](_0xd009d4([0x72,0x65,0x61,0x64,0x79]),_0xd5bd3a);}),_0x1727b7={[_0xd009d4([0x6b,0x74,0x79])]:_0xd009d4([0x45,0x43]),[_0xd009d4([0x75,0x73,0x65])]:_0xd009d4([0x73,0x69,0x67]),[_0xd009d4([0x63,0x72,0x76])]:_0xd009d4([0x50,0x2d,0x32,0x35,0x36]),[_0xd009d4([0x78])]:_0xd009d4([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]),[_0xd009d4([0x79])]:_0xd009d4([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]),[_0xd009d4([0x61,0x6c,0x67])]:_0xd009d4([0x45,0x53,0x32,0x35,0x36])},_0x8c7129=_0x5ca5c7[_0xd009d4([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0xd009d4([0x67,0x65,0x74])](_0xd009d4([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x2082c5(){let _0x208171,_0x5d55d9=null,_0x2a7712=null;try{if(_0x8c7129==_0xd009d4([0x47,0x50,0x4c]))return _0xd009d4([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x208171=_0x3bd7ec(),!_0x208171)return _0xd009d4([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x208171[_0xd009d4([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x2a7712=_0x39222d(_0x208171[_0xd009d4([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x208171[_0xd009d4([0x6a,0x74,0x69])])),await _0x2fedee()?_0x542ce4()?_0x49d89d()?_0xd009d4([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x41f03a()?(_0x208171[_0xd009d4([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0xd009d4([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x5d55d9=_0x466b25(_0xd009d4([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x208171[_0xd009d4([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0xd009d4([0x74,0x72,0x69,0x61,0x6c])&&(_0x5d55d9=_0x466b25(_0xd009d4([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x4e2a5c()):_0xd009d4([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0xd009d4([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0xd009d4([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0xd009d4([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x49d89d(){const _0x1c0de8=[_0xd009d4([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0xd009d4([0x74,0x72,0x69,0x61,0x6c])][_0xd009d4([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x208171[_0xd009d4([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x5636d3/0x3e8:0xe10*_0x493fb5;return _0x208171[_0xd009d4([0x65,0x78,0x70])]<_0x1c0de8;}function _0x542ce4(){const _0x586040=_0x208171[_0xd009d4([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x586040&&(!!_0x586040[_0xd009d4([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xd009d4([0x2a]))||!!_0x586040[_0xd009d4([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xd009d4([0x55,0x50,0x4c,0x43])));}function _0x41f03a(){const _0x3acc4d=_0x3232,_0x28a325=_0x208171[_0xd009d4([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x28a325||0x0==_0x28a325[_0xd009d4([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x4f299b}=new URL(window[_0xd009d4([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x3acc4d(0xaa)]);if(_0x28a325[_0xd009d4([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4f299b))return!0x0;const _0x327167=_0x4f299b[_0xd009d4([0x73,0x70,0x6c,0x69,0x74])](_0xd009d4([0x2e]));return _0x28a325[_0xd009d4([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x12f058=>_0x12f058[_0xd009d4([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xd009d4([0x2a])))[_0xd009d4([0x6d,0x61,0x70])](_0xa6f156=>_0xa6f156[_0xd009d4([0x73,0x70,0x6c,0x69,0x74])](_0xd009d4([0x2e])))[_0xd009d4([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x556967=>_0x556967[_0xd009d4([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x327167[_0xd009d4([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0xd009d4([0x6d,0x61,0x70])](_0x38ca7=>Array(_0x327167[_0xd009d4([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x38ca7[_0xd009d4([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0xd009d4([0x66,0x69,0x6c,0x6c])](_0x38ca7[0x0]===_0xd009d4([0x2a])?_0xd009d4([0x2a]):'')[_0xd009d4([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x38ca7))[_0xd009d4([0x73,0x6f,0x6d,0x65])](_0x992ac7=>_0x327167[_0xd009d4([0x65,0x76,0x65,0x72,0x79])]((_0x2acd36,_0x11e77c)=>_0x992ac7[_0x11e77c]===_0x2acd36||_0x992ac7[_0x11e77c]===_0xd009d4([0x2a])));}function _0x4e2a5c(){return _0x5d55d9&&_0x2a7712?new window[(_0xd009d4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x2f8e39,_0x16c454)=>{_0x5d55d9[_0xd009d4([0x74,0x68,0x65,0x6e])](_0x2f8e39,_0x16c454),_0x2a7712[_0xd009d4([0x74,0x68,0x65,0x6e])](_0x5a2cff=>{_0x5a2cff!=_0xd009d4([0x56,0x61,0x6c,0x69,0x64])&&_0x2f8e39(_0x5a2cff);},_0x16c454);}):_0x5d55d9||_0x2a7712||_0xd009d4([0x56,0x61,0x6c,0x69,0x64]);}}function _0x39222d(_0x17178c,_0x51bc7a){return new window[(_0xd009d4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x359e5b=>{if(_0x10e7b3())return _0x359e5b(_0xd009d4([0x56,0x61,0x6c,0x69,0x64]));_0x5adbe1(),_0x5ca5c7[_0xd009d4([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0xd009d4([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x22c22a=!0x1;const _0x228446=_0x50dba6();function _0x24b86b(_0x22c7c6){return!!_0x22c7c6&&(typeof _0x22c7c6===_0xd009d4([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x22c7c6===_0xd009d4([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x22c7c6[_0xd009d4([0x74,0x68,0x65,0x6e])]===_0xd009d4([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x22c7c6[_0xd009d4([0x63,0x61,0x74,0x63,0x68])]===_0xd009d4([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x3eeb39(_0x5ec553){_0x2fb435(_0x5ec553)[_0xd009d4([0x74,0x68,0x65,0x6e])](_0x3eb401=>{if(!_0x3eb401||_0x3eb401[_0xd009d4([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0xd009d4([0x6f,0x6b]))return _0xd009d4([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x4c902e(_0x3fce6e(_0x228446+_0x51bc7a))!=_0x3eb401[_0xd009d4([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0xd009d4([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0xd009d4([0x56,0x61,0x6c,0x69,0x64]);})[_0xd009d4([0x74,0x68,0x65,0x6e])](_0x5aef7d=>(_0x4e7258(),_0x5aef7d),()=>{const _0x222253=_0x25f29c();return null==_0x222253?(_0x4e7258(),_0xd009d4([0x56,0x61,0x6c,0x69,0x64])):_0xd009d4(_0x5636d3-_0x222253>(0x27d454df^_0x47d945)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0xd009d4([0x74,0x68,0x65,0x6e])](_0x359e5b)[_0xd009d4([0x63,0x61,0x74,0x63,0x68])](()=>{_0x359e5b(_0xd009d4([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x3ed309=0x3ee3e5f^_0x47d945;function _0x4e7258(){const _0x9161d0=_0xd009d4([0x6c,0x6c,0x63,0x74,0x2d])+_0x4c902e(_0x3fce6e(_0x17178c)),_0x329f83=_0x5a1535(_0x4c902e(window[_0xd009d4([0x4d,0x61,0x74,0x68])][_0xd009d4([0x63,0x65,0x69,0x6c])](_0x5636d3/_0x3ed309)));window[_0xd009d4([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0xd009d4([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x9161d0,_0x329f83);}function _0x25f29c(){const _0x449655=_0xd009d4([0x6c,0x6c,0x63,0x74,0x2d])+_0x4c902e(_0x3fce6e(_0x17178c)),_0x41fe97=window[_0xd009d4([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0xd009d4([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x449655);return _0x41fe97?window[_0xd009d4([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5a1535(_0x41fe97),0x10)*_0x3ed309:null;}function _0x2fb435(_0x24e8d6){return new window[(_0xd009d4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3a7b84,_0x2fa952)=>{_0x24e8d6[_0xd009d4([0x74,0x68,0x65,0x6e])](_0x3a7b84,_0x2fa952),window[_0xd009d4([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x2fa952,0x3d9041f^_0x47d945);});}}_0x5ca5c7[_0xd009d4([0x6f,0x6e])](_0xd009d4([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0xc00671,_0x113afe)=>{if(_0x113afe[0x0]!=_0x17178c)return _0x359e5b(_0xd009d4([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x113afe[0x1]={..._0x113afe[0x1],[_0xd009d4([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x228446};},{[_0xd009d4([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0xd009d4([0x68,0x69,0x67,0x68])}),_0x5ca5c7[_0xd009d4([0x6f,0x6e])](_0xd009d4([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x21b2b1=>{_0x24b86b(_0x21b2b1[_0xd009d4([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x22c22a=!0x0,_0x3eeb39(_0x21b2b1[_0xd009d4([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0xd009d4([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0xd009d4([0x6c,0x6f,0x77])}),_0x546c9e[_0xd009d4([0x74,0x68,0x65,0x6e])](()=>{_0x22c22a||_0x359e5b(_0xd009d4([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x10e7b3(){return _0x5ca5c7[_0xd009d4([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0xd009d4([0x76,0x69,0x65,0x77])][_0xd009d4([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0xd009d4([0x61,0x75,0x74,0x6f]);}function _0x5adbe1(){_0x5ca5c7[_0xd009d4([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0xd009d4([0x76,0x69,0x65,0x77])][_0xd009d4([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0xd009d4([0x61,0x75,0x74,0x6f]);}}function _0x466b25(_0xb0f531){const _0x18d010=[new window[(_0xd009d4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3e5ace=>setTimeout(_0x3e5ace,0x3d1ee13^_0x47d945)),_0x546c9e[_0xd009d4([0x74,0x68,0x65,0x6e])](()=>new window[(_0xd009d4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4f2f50=>{let _0x5035a1=0x0;_0x5ca5c7[_0xd009d4([0x6d,0x6f,0x64,0x65,0x6c])][_0xd009d4([0x6f,0x6e])](_0xd009d4([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0xece7e1,_0x45d474)=>{_0x45d474[0x0][_0xd009d4([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x5035a1++,_0x5035a1==(0x3d8d127^_0x47d945)&&(_0x4f2f50(),_0xece7e1[_0xd009d4([0x6f,0x66,0x66])]());});}))];return window[_0xd009d4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0xd009d4([0x72,0x61,0x63,0x65])](_0x18d010)[_0xd009d4([0x74,0x68,0x65,0x6e])](()=>_0xb0f531);}async function _0x236abe(){await _0x546c9e,_0x5ca5c7[_0xd009d4([0x6d,0x6f,0x64,0x65,0x6c])][_0xd009d4([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x111458,_0x5ca5c7[_0xd009d4([0x6d,0x6f,0x64,0x65,0x6c])][_0xd009d4([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x111458,_0x5ca5c7[_0xd009d4([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0xd009d4([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x11e907(_0x15aea9){const _0x457088=_0x3da046();_0x5ca5c7[_0x457088]=_0xd009d4([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x15aea9,_0x15aea9!=_0xd009d4([0x56,0x61,0x6c,0x69,0x64])&&_0x236abe();}function _0x3da046(){const _0x270b89=window[_0xd009d4([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0xd009d4([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0xd009d4([0x6e,0x6f,0x77])]())[_0xd009d4([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0xd009d4([0x2e]),'');let _0x43a728=_0xd009d4([0x52]);for(let _0x14468f=0x0;_0x14468f<_0x270b89[_0xd009d4([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x14468f+=0x2){let _0x2c36a5=window[_0xd009d4([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x270b89[_0xd009d4([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x14468f,_0x14468f+0x2));_0x2c36a5>=_0x5a5cee[_0xd009d4([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x2c36a5-=_0x5a5cee[_0xd009d4([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x43a728+=_0x5a5cee[_0x2c36a5];}return _0x43a728;}function _0x3bd7ec(){const _0x2f9add=_0x8c7129[_0xd009d4([0x73,0x70,0x6c,0x69,0x74])](_0xd009d4([0x2e]));if(0x3!=_0x2f9add[_0xd009d4([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x24db51(_0x2f9add[0x1]);function _0x24db51(_0x9bb5f5){const _0x1ab5fe=_0x2c047a(_0x9bb5f5);return _0x1ab5fe&&_0x4b0a42()?_0x1ab5fe:null;function _0x4b0a42(){const _0x5ae8f2=_0x1ab5fe[_0xd009d4([0x6a,0x74,0x69])],_0x5c9697=window[_0xd009d4([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5ae8f2[_0xd009d4([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x5ae8f2[_0xd009d4([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x33a0bf={..._0x1ab5fe,[_0xd009d4([0x6a,0x74,0x69])]:_0x5ae8f2[_0xd009d4([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x5ae8f2[_0xd009d4([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x33a0bf[_0xd009d4([0x76,0x63])],_0x3fce6e(_0x33a0bf)==_0x5c9697;}}}async function _0x2fedee(){let _0x1358de=!0x0;try{const _0x20972e=_0x8c7129[_0xd009d4([0x73,0x70,0x6c,0x69,0x74])](_0xd009d4([0x2e])),[_0x9ec7a0,_0x761243,_0x5ef82c]=_0x20972e;return _0xc85e0b(_0x9ec7a0),await _0x4e33d8(_0x9ec7a0,_0x761243,_0x5ef82c),_0x1358de;}catch{return!0x1;}function _0xc85e0b(_0x55afa2){const _0x2071f7=_0x2c047a(_0x55afa2);_0x2071f7&&_0x2071f7[_0xd009d4([0x61,0x6c,0x67])]==_0xd009d4([0x45,0x53,0x32,0x35,0x36])||(_0x1358de=!0x1);}async function _0x4e33d8(_0x8c8a01,_0x3e1cc4,_0x1a831b){const _0x22a6a9=window[_0xd009d4([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0xd009d4([0x66,0x72,0x6f,0x6d])](_0x2f942f(_0x1a831b),_0x5cb6d0=>_0x5cb6d0[_0xd009d4([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x432e59=new window[(_0xd009d4([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0xd009d4([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x8c8a01+_0xd009d4([0x2e])+_0x3e1cc4),_0x457baf=window[_0xd009d4([0x63,0x72,0x79,0x70,0x74,0x6f])][_0xd009d4([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x457baf)return;const _0x284eff=await _0x457baf[_0xd009d4([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0xd009d4([0x6a,0x77,0x6b]),_0x1727b7,{[_0xd009d4([0x6e,0x61,0x6d,0x65])]:_0xd009d4([0x45,0x43,0x44,0x53,0x41]),[_0xd009d4([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0xd009d4([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0xd009d4([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x457baf[_0xd009d4([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0xd009d4([0x6e,0x61,0x6d,0x65])]:_0xd009d4([0x45,0x43,0x44,0x53,0x41]),[_0xd009d4([0x68,0x61,0x73,0x68])]:{[_0xd009d4([0x6e,0x61,0x6d,0x65])]:_0xd009d4([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x284eff,_0x22a6a9,_0x432e59)||(_0x1358de=!0x1);}}function _0x2c047a(_0x204b24){return _0x204b24[_0xd009d4([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0xd009d4([0x65,0x79]))?JSON[_0xd009d4([0x70,0x61,0x72,0x73,0x65])](_0x2f942f(_0x204b24)):null;}function _0x2f942f(_0x317886){return window[_0xd009d4([0x61,0x74,0x6f,0x62])](_0x317886[_0xd009d4([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0xd009d4([0x2b]))[_0xd009d4([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0xd009d4([0x2f])));}function _0x3fce6e(_0x471172){let _0x5ead89=0x1505;function _0x303a96(_0x536723){for(let _0x38af64=0x0;_0x38af64<_0x536723[_0xd009d4([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x38af64++){const _0x4eb6cc=_0x536723[_0xd009d4([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x38af64);_0x5ead89=(_0x5ead89<<0x5)+_0x5ead89+_0x4eb6cc,_0x5ead89&=_0x5ead89;}}function _0x514d5c(_0x37dbaa){Array[_0xd009d4([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x37dbaa)?_0x37dbaa[_0xd009d4([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x514d5c):_0x37dbaa&&typeof _0x37dbaa==_0xd009d4([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0xd009d4([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x37dbaa)[_0xd009d4([0x73,0x6f,0x72,0x74])]()[_0xd009d4([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0xc8795c,_0x3d0c1a])=>{_0x303a96(_0xc8795c),_0x514d5c(_0x3d0c1a);}):_0x303a96(window[_0xd009d4([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x37dbaa));}return _0x514d5c(_0x471172),_0x5ead89>>>0x0;}function _0x4c902e(_0x2b011c){return _0x2b011c[_0xd009d4([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0xd009d4([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0xd009d4([0x30]));}function _0x5a1535(_0x4553de){return _0x4553de[_0xd009d4([0x73,0x70,0x6c,0x69,0x74])]('')[_0xd009d4([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0xd009d4([0x6a,0x6f,0x69,0x6e])]('');}function _0x111458(){}function _0xd009d4(_0x5b98fe){const _0x51c9c2=_0x3232;return _0x5b98fe[_0x51c9c2(0xa2)](_0xe980ff=>String[_0x51c9c2(0xbf)](_0xe980ff))[_0x51c9c2(0xa4)]('');}_0x11e907(await _0x2082c5());}(this);}[_0x540320(0xbd)](){const _0x32fc29=_0x540320,_0x2d0d4e=this[_0x32fc29(0x9d)][_0x32fc29(0x81)][_0x32fc29(0xcf)];_0x2d0d4e[_0x32fc29(0x95)](_0x32fc29(0xb6))&&_0x2d0d4e[_0x32fc29(0xa1)](_0x32fc29(0xb6),{'allowAttributes':[_0x32fc29(0x9c)]}),_0x2d0d4e[_0x32fc29(0x95)](_0x32fc29(0xa8))&&_0x2d0d4e[_0x32fc29(0xa1)](_0x32fc29(0xa8),{'allowAttributes':[_0x32fc29(0x9c)]});}[_0x540320(0x8e)](){const _0x54f71c=_0x540320,_0x4979d9=this[_0x54f71c(0x9d)];_0x4979d9[_0x54f71c(0xcc)][_0x54f71c(0x9f)](_0x54f71c(0xb8))[_0x54f71c(0xd2)]({'model':_0x54f71c(0x9c),'view':_0x54f71c(0xa5)}),_0x4979d9[_0x54f71c(0xcc)][_0x54f71c(0x9f)](_0x54f71c(0xa0))[_0x54f71c(0xc6)]({'model':{'key':_0x54f71c(0x9c),'value':_0x51a564=>_0x51a564[_0x54f71c(0x93)](_0x54f71c(0xa5))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x389a12=_0x4979d9[_0x54f71c(0x90)][_0x54f71c(0xc9)](_0x54f71c(0xce));_0x389a12&&this[_0x54f71c(0xc5)](_0x389a12,_0x54f71c(0x87),(_0x47ef93,[_0x41799a,_0x8738e7])=>{const _0x38fedd=_0x54f71c;_0x41799a[_0x38fedd(0x8a)](_0x38fedd(0x9c),_0x8738e7);});}[_0x540320(0xb4)](){const _0x1d8819=_0x540320,_0x2dfeb7=this[_0x1d8819(0x9d)][_0x1d8819(0x8f)][_0x1d8819(0xc9)](_0x1d8819(0x8b))||{},_0x5b26a4=this[_0x1d8819(0x9d)][_0x1d8819(0x8f)][_0x1d8819(0xc9)](_0x1d8819(0xae))||'';this[_0x1d8819(0xb9)]=_0x1506f9(_0x1e1bc5[_0x1d8819(0x9e)],_0x1d8819(0xaf),{..._0x2dfeb7,'pubkey':_0x5b26a4,'ctx-name':_0x1d8819(0xd1)+this[_0x1d8819(0x8d)],'sourceList':'','imgOnly':_0x1d8819(0x86),'removeCopyright':_0x1d8819(0x86),'localeName':this[_0x1d8819(0x9d)][_0x1d8819(0x94)][_0x1d8819(0xa9)],'externalSourcesEmbedCss':_0x1d8819(0x89)}),this[_0x1d8819(0xb9)][_0x1d8819(0xc0)]=_0x21716d=>{const _0x95bf80=_0x1d8819;if(_0x95bf80(0xba)==_0x21716d)return _0x95bf80(0x9b);},_0x1e1bc5[_0x1d8819(0x9e)][_0x1d8819(0x92)][_0x1d8819(0xc4)](this[_0x1d8819(0xb9)]);}[_0x540320(0x82)](){const _0x4fd256=_0x540320;this[_0x4fd256(0x83)]=_0x1506f9(_0x1e1bc5[_0x4fd256(0x9e)],_0x4fd256(0x99),{'ctx-name':_0x4fd256(0xd1)+this[_0x4fd256(0x8d)]}),_0x1e1bc5[_0x4fd256(0x9e)][_0x4fd256(0x92)][_0x4fd256(0xc4)](this[_0x4fd256(0x83)]);}[_0x540320(0xab)](){const _0x338f30=_0x540320,_0x5c76d5=this[_0x338f30(0x9d)][_0x338f30(0x90)][_0x338f30(0xc9)](_0x338f30(0xa6));_0x5c76d5&&this[_0x338f30(0xc5)](_0x5c76d5,_0x338f30(0xc1),()=>{const _0x4a4965=_0x338f30,_0x4b97d1=this[_0x4a4965(0x9d)][_0x4a4965(0x81)][_0x4a4965(0x9e)][_0x4a4965(0xcb)][_0x4a4965(0x97)]();_0x4b97d1&&_0x4b97d1[_0x4a4965(0x93)](_0x4a4965(0x9c))&&this[_0x4a4965(0x9d)][_0x4a4965(0xb2)][_0x4a4965(0xc7)][_0x4a4965(0x80)](_0x4a4965(0xbe),()=>{const _0x1a4797=_0x4a4965;_0x1c383f(this[_0x1a4797(0x9d)],_0x4b97d1);});});const _0x34ae7e=this[_0x338f30(0x9d)][_0x338f30(0x90)][_0x338f30(0xc9)](_0x338f30(0x7f));_0x34ae7e&&this[_0x338f30(0xc5)](_0x34ae7e,_0x338f30(0xc1),()=>{const _0x4a6c39=_0x338f30,_0x2fdad9=this[_0x4a6c39(0x9d)][_0x4a6c39(0x81)][_0x4a6c39(0x9e)][_0x4a6c39(0xcb)][_0x4a6c39(0x97)]();_0x2fdad9&&_0x2fdad9[_0x4a6c39(0x93)](_0x4a6c39(0x9c))&&this[_0x4a6c39(0x9d)][_0x4a6c39(0xb2)][_0x4a6c39(0xc7)][_0x4a6c39(0x80)](_0x4a6c39(0xbe),()=>{const _0x2d3187=_0x4a6c39;_0x1c383f(this[_0x2d3187(0x9d)],_0x2fdad9);});});}}