@ckeditor/ckeditor5-uploadcare 47.4.0-alpha.3 → 47.4.0-alpha.4

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 _0x46feb1,Command as _0x207e1b}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x210989,IconGooglePhotos as _0x1f08cb,IconGoogleDrive as _0x12c42d,IconFacebook as _0x32fdf7,IconDropbox as _0x26fe24,IconUploadcareLink as _0xe5c044,IconUploadcareImageUpload as _0x382898,IconError as _0x3648d9,IconUploadcareImageEdit as _0x15c8dc}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x48ecd8,MenuBarMenuListItemButtonView as _0x1d53e6,View as _0x497fc2,FocusCycler as _0x54fcf7,Dialog as _0x2b6127,DialogViewPosition as _0x4bbf5e,SpinnerView as _0x286390,IconView as _0x5132f0,Notification as _0x2f6a12}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x558598,DomEmitterMixin as _0x325f8d,global as _0x364592,getAncestors as _0x205299,ObservableMixin as _0x1c66af,uid as _0xe388c3,createElement as _0x224cb9}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x5ef19f}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x1e04ff,info as _0x1c4200}from'@uploadcare/upload-client';import*as _0x42e4a7 from'@uploadcare/file-uploader';var i=function(_0x580980){return _0x580980['Local']='local',_0x580980['URL']='url',_0x580980['Dropbox']='dropbox',_0x580980['GDrive']='gdrive',_0x580980['Facebook']='facebook',_0x580980['GPhotos']='gphotos',_0x580980['OneDrive']='onedrive',_0x580980;}({});function _(_0x1484cf,_0x2a7547,_0x43e4aa){const t=_0x1484cf['t'],_0x43bdbf=_0x1484cf['t'];switch(_0x2a7547){case i['Local']:return{'text':_0x43bdbf('Insert'===_0x43e4aa?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x43bdbf('From\x20computer')};case i['URL']:return{'text':'Insert'===_0x43e4aa?_0x43bdbf('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x43bdbf('Via\x20URL')};case i['Dropbox']:return{'text':t('Insert'===_0x43e4aa?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case i['Facebook']:return{'text':t('Insert'===_0x43e4aa?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case i['GDrive']:return{'text':t('Insert'===_0x43e4aa?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case i['GPhotos']:return{'text':t('Insert'===_0x43e4aa?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case i['OneDrive']:return{'text':t('Insert'===_0x43e4aa?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x2a7547;}}class e extends _0x46feb1{['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 _0x194fa5=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x10036e;for(const _0x44806e in _0x194fa5){const _0xe33f5d=_0x44806e,_0x16f310=_0x194fa5[_0xe33f5d];if('uploadcareLicenseKeyValid'==_0x16f310||'uploadcareLicenseKeyInvalid'==_0x16f310||'uploadcareLicenseKeyExpired'==_0x16f310||'uploadcareLicenseKeyDomainLimit'==_0x16f310||'uploadcareLicenseKeyNotAllowed'==_0x16f310||'uploadcareLicenseKeyEvaluationLimit'==_0x16f310||'uploadcareLicenseKeyUsageLimit'==_0x16f310){delete _0x194fa5[_0xe33f5d],_0x10036e=_0x16f310,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x10036e&&_0x194fa5['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x10036e&&_0x194fa5['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x10036e&&_0x194fa5['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x10036e&&_0x194fa5['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x10036e&&_0x194fa5['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyUsageLimit'==_0x10036e&&_0x194fa5['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x215eb5}=this,_0x408ebe=_0x215eb5['commands']['get']('uploadcare');if(!_0x408ebe)return;const _0x23a4a9=this['_normalizeConfigSourceList'](_0x215eb5['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x2790d4,_0x5be6a7)=>{const _0x49d1ea=this['_getIntegrationKey'](_0x5be6a7['type']);return _0x2790d4[_0x49d1ea]||(_0x2790d4[_0x49d1ea]=[]),_0x2790d4[_0x49d1ea]['push'](_0x5be6a7),_0x2790d4;},{});_0x215eb5['plugins']['has']('ImageInsertUI')&&_0x215eb5['commands']['get']('uploadcare')&&Object['entries'](_0x23a4a9)['forEach'](([_0xe9639d,_0xc7ed57])=>{_0x215eb5['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0xe9639d,'observable':()=>_0x408ebe,'buttonViewCreator':()=>this['_createToolbarButton'](_0xc7ed57),'formViewCreator':()=>this['_createDropdownButtons'](_0xc7ed57),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0xc7ed57),'override':'assetManager'!==_0xe9639d});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x53d795){const {locale:_0x1ed246}=this['editor'];return _0x53d795['map'](_0x3fb210=>{const _0x59f501=_(_0x1ed246,_0x3fb210,'Insert');switch(_0x3fb210){case i['Local']:return{'icon':_0x382898,'type':i['Local'],..._0x59f501};case i['URL']:return{'icon':_0xe5c044,'type':i['URL'],..._0x59f501};case i['Dropbox']:return{'icon':_0x26fe24,'type':i['Dropbox'],..._0x59f501};case i['Facebook']:return{'icon':_0x32fdf7,'type':i['Facebook'],..._0x59f501};case i['GDrive']:return{'icon':_0x12c42d,'type':i['GDrive'],..._0x59f501};case i['GPhotos']:return{'icon':_0x1f08cb,'type':i['GPhotos'],..._0x59f501};case i['OneDrive']:return{'icon':_0x210989,'type':i['OneDrive'],..._0x59f501};}});}['_getIntegrationKey'](_0x7795e8){switch(_0x7795e8){case i['Local']:return'upload';case i['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x359199,_0x3746f6){const _0x2b0425=this['editor'],_0x53fc38=new _0x359199(_0x2b0425['locale']),_0x32fb27=_0x2b0425['commands']['get']('uploadcare');return _0x53fc38['bind']('isEnabled')['to'](_0x32fb27),_0x53fc38['on']('execute',()=>{_0x32fb27['execute'](_0x3746f6);}),_0x53fc38;}['_createToolbarButton'](_0x113a0c){const {locale:_0x45af22}=this['editor'],_0x419880=this['editor']['plugins']['get']('ImageInsertUI'),_0x124d94=_0x113a0c[0x0],_0x410c29=this['_createButton'](_0x48ecd8,_0x124d94['type']);return _0x410c29['icon']=_0x124d94['icon'],_0x410c29['bind']('label')['to'](_0x419880,'isImageSelected',_0x1288cf=>_(_0x45af22,_0x124d94['type'],_0x1288cf?'Replace':'Insert')['text']),_0x410c29['tooltip']=!0x0,_0x410c29;}['_createDropdownButtons'](_0x4aac10){const {locale:_0x485a0a}=this['editor'],_0x18c0c3=this['editor']['plugins']['get']('ImageInsertUI');return _0x4aac10['map'](_0x5818c7=>{const _0x5f2f02=this['_createButton'](_0x48ecd8,_0x5818c7['type']);return _0x5f2f02['withText']=!0x0,_0x5f2f02['icon']=_0x5818c7['icon'],_0x5f2f02['bind']('label')['to'](_0x18c0c3,'isImageSelected',_0x56e95a=>_(_0x485a0a,_0x5818c7['type'],_0x56e95a?'Replace':'Insert')['text']),_0x5f2f02;});}['_createMenuBarButtons'](_0x10e0a9){return _0x10e0a9['map'](_0x352637=>{const _0x2aba0b=this['_createButton'](_0x1d53e6,_0x352637['type']);return _0x2aba0b['icon']=_0x352637['icon'],_0x2aba0b['label']=_0x352637['shortText'],_0x2aba0b;});}}class F extends _0x497fc2{['focusTracker'];['focusCycler'];constructor(_0x1c0006){super(_0x1c0006),this['focusTracker']=new _0x558598(),this['focusCycler']=new _0x54fcf7({'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(_0x4f8c5e,_0x486938){super(_0x4f8c5e),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-'+_0x486938}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}}function C(_0x226c7,_0x4f63b1){const _0x1b2df0=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x49d864=>_0x49d864<=_0x4f63b1)['map'](_0x58373a=>_0x226c7['replace'](/\/$/,'')+'/-/resize/'+_0x58373a+'x/\x20'+_0x58373a+'w');return{'imageFallbackUrl':_0x226c7,'imageSources':[{'srcset':_0x1b2df0['join'](',\x20'),'sizes':'(max-width:\x20'+_0x4f63b1+'px)\x20100vw,\x20'+_0x4f63b1+'px','type':'image/webp'}]};}function S(_0x35bd6e,_0x51d891,_0x4d5ea6){const _0x4ca957=_0x35bd6e['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x4ca957?parseInt(_0x4ca957[0x1],0xa):_0x51d891,'height':_0x4ca957?parseInt(_0x4ca957[0x2],0xa):_0x4d5ea6};}function p(_0x8c0709,_0x3f16dd){const _0x568e47=new(_0x325f8d())(),_0x538e24=_0x8c0709['plugins']['get']('ImageUtils'),_0x4cc515=_0x8c0709['editing']['mapper']['toViewElement'](_0x3f16dd),_0x571877=_0x538e24['findViewImgElement'](_0x4cc515),_0x12ba94=_0x8c0709['editing']['view']['domConverter']['viewToDom'](_0x571877),_0x5616f9=_0x3f16dd['getAttribute']('width'),_0x516f21=_0x3f16dd['getAttribute']('height'),_0x4f7cc8='image-processing';_0x8c0709['editing']['view']['change'](_0x37b8c9=>{_0x37b8c9['addClass'](_0x4f7cc8,_0x4cc515),_0x37b8c9['setStyle']('aspect-ratio',_0x5616f9+'/'+_0x516f21,_0x571877);}),_0x568e47['listenTo'](_0x12ba94,'load',()=>{_0x568e47['stopListening'](_0x12ba94,'load'),_0x8c0709['editing']['view']['change'](_0x41f1a0=>{_0x41f1a0['removeClass'](_0x4f7cc8,_0x4cc515),_0x41f1a0['removeStyle']('aspect-ratio',_0x571877);});});}function z(_0x3b1ec2){if(Array['isArray'](_0x3b1ec2)){const _0x313c93=_0x3b1ec2['map'](z);return _0x2d0aff=>_0x313c93['some'](_0x427e93=>_0x427e93(_0x2d0aff));}if('origin'==_0x3b1ec2){const _0x311d4b=_0x364592['window']['location']['origin'];return _0xd65647=>new URL(_0xd65647,_0x364592['document']['baseURI'])['origin']==_0x311d4b;}return'function'==typeof _0x3b1ec2?_0x3b1ec2:_0x3b1ec2 instanceof RegExp?_0x28d950=>!(!_0x28d950['match'](_0x3b1ec2)&&!_0x28d950['replace'](/^https?:\/\//,'')['match'](_0x3b1ec2)):()=>!0x1;}function A(_0x338975,_0x52c05d){return _0x205299(_0x338975['target'])['includes'](_0x52c05d);}class n extends/* #__PURE__ -- @preserve */
24
- _0x1c66af(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x18528f,_0x299758,_0xe5a6a4){super(),this['_editor']=_0x18528f,this['_editing']=_0x299758,this['_dialog']=_0x18528f['plugins']['get'](_0x2b6127),this['_api']=_0x299758['ctxElement']['getAPI'](),this['_type']=_0xe5a6a4,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:_0x2435c5,model:_0x41b1e7}=this['_editor'],_0x241b94=_0x41b1e7['document']['selection']['getSelectedElement'](),_0x1af825=_0x241b94&&(_0x241b94['is']('element','imageBlock')||_0x241b94['is']('element','imageInline'));this['_formView']=new x(_0x2435c5,this['_editing']['ucContextId']),this['_dialog']['show']({'id':'uploadCare','icon':_0x382898,'title':_(_0x2435c5,this['_type'],_0x1af825?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x4bbf5e['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x5f5e0b=>!A(_0x5f5e0b,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x5dd5c2}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x64b134=>{const _0x425214=_0x5dd5c2['length'];for(const _0x1fd765 of _0x5dd5c2){const _0x2560e3=_0x1fd765===_0x5dd5c2[_0x425214-0x1],{cdnUrl:_0x258bb0,fileInfo:_0xcc36a3}=_0x1fd765;if(!_0x258bb0||!_0xcc36a3)continue;const {width:_0x3dff6a,height:_0x35cf55}=_0xcc36a3['imageInfo'],_0x40cb42=S(_0x258bb0,_0x3dff6a,_0x35cf55),_0x29921e=C(_0x258bb0,_0x40cb42['width']),_0x4040e2={'id':_0xcc36a3['uuid'],'type':'image','attributes':{'imageDimension':_0x40cb42,..._0x29921e}};this['_insertAsset'](_0x4040e2,_0x2560e3,_0x64b134);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x569e2e=>{'idle'===_0x569e2e['detail']['status']&&!_0x569e2e['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===i['Local']?this['_api']['setCurrentActivity'](i['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x56dfba,_0xb94543,_0x23e830){const _0x30c053=this['_editor']['model']['document']['selection'],_0x3d13f6=_0x30c053['getSelectedElement'](),_0x3043d5=!(!_0x3d13f6||!_0x3d13f6['is']('element','imageInline'));_0x23e830['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x56dfba,_0x3043d5),_0xb94543||_0x23e830['setSelection'](_0x30c053['getLastPosition']());}['_insertImage'](_0x411281,_0x37994a){const _0x3e74d9=this['_editor'],{imageDimension:_0x34bcb9,imageFallbackUrl:_0x2a4212,imageSources:_0x2f1d99}=_0x411281['attributes'];_0x3e74d9['execute']('insertImage',{'imageType':_0x37994a?'imageInline':null,'source':{'uploadcareImageId':_0x411281['id'],'src':_0x2a4212,'sources':_0x2f1d99,..._0x34bcb9}});}}class w extends _0x207e1b{['_editing'];['_controller']=null;static get['requires'](){return[_0x2b6127,o];}constructor(_0xcc7862){super(_0xcc7862),this['_editing']=_0xcc7862['plugins']['get'](o);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x504526){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new n(this['editor'],this['_editing'],_0x504526);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class j{static['upload']({file:_0x3b614c,..._0x225903}){return _0x1e04ff(_0x3b614c,_0x225903);}static['getInfo'](_0x250347,_0x34f597){return _0x1c4200(_0x250347,_0x34f597);}}class f extends _0x46feb1{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x5ef19f,o];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x16ce56=this['editor'];if(!!!_0x16ce56['config']['get']('uploadcare'))return;_0x16ce56['plugins']['get'](_0x5ef19f)['createUploadAdapter']=_0xd57c5a=>new k(_0xd57c5a,_0x16ce56),_0x16ce56['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x527923,{imageElement:_0x24a5ae,data:_0x416267})=>{_0x16ce56['model']['change'](_0x4541b4=>{_0x4541b4['setAttribute']('uploadcareImageId',_0x416267['uploadcareImageId'],_0x24a5ae);});});}}class k{['loader'];['editor'];['controller'];constructor(_0x9329cd,_0x384510){this['loader']=_0x9329cd,this['editor']=_0x384510,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x4d1a30=await this['loader']['file'];return j['upload']({'file':_0x4d1a30,'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':_0x566711=>{_0x566711&&_0x566711['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x566711['value']);}})['then'](async _0x364d80=>{const {imageFallbackUrl:_0x273f76,imageSources:_0x1ef153}=C(_0x364d80['cdnUrl'],_0x364d80['imageInfo']['width']);return{'uploadcareImageId':_0x364d80['uuid'],'default':_0x273f76,'sources':_0x1ef153};})['catch'](()=>{const _0x75449d=t('Cannot\x20upload\x20file:')+('\x20'+_0x4d1a30['name']+'.');return Promise['reject'](_0x75449d);});}['abort'](){this['controller']['abort']();}}class o extends _0x46feb1{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',f,_0x2b6127];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['ucContextId'];get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}constructor(_0x59d47e){super(_0x59d47e),this['ucContextId']=_0xe388c3();}['init'](){const _0x349410=this['editor'];_0x349410['commands']['add']('uploadcare',new w(_0x349410));}['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 _0x4bcdec=_0x364592['document']['querySelector']('input[uploadcare-file-input]');_0x4bcdec&&_0x4bcdec['remove']();}),async function(_0x2c29f7){const _0x3e9897=_0x2f1db1([0x68,0x67,0x50,0x36,0x38,0x70,0x71,0x63,0x37,0x4f,0x42,0x4a,0x78,0x39,0x75,0x33,0x7a,0x72,0x48,0x61,0x74,0x59,0x55,0x58,0x66,0x30,0x34,0x54,0x64,0x56,0x6b,0x4d,0x46,0x6d,0x77,0x43,0x73,0x35,0x53,0x44,0x41,0x76,0x6a,0x32,0x31,0x69,0x57,0x51,0x47,0x65,0x5a,0x4b,0x4c,0x79,0x52,0x6c,0x45,0x4e,0x6e,0x6f,0x49,0x62]),_0xf0b079=0x535f8c3a,_0x1bb179=0x5358f2ba^_0xf0b079,_0x1654b0=window[_0x2f1db1([0x44,0x61,0x74,0x65])][_0x2f1db1([0x6e,0x6f,0x77])](),_0x1cef31=_0x2c29f7[_0x2f1db1([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x53eb37=new window[(_0x2f1db1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x51c334=>{_0x1cef31[_0x2f1db1([0x6f,0x6e,0x63,0x65])](_0x2f1db1([0x72,0x65,0x61,0x64,0x79]),_0x51c334);}),_0x3b4981={[_0x2f1db1([0x6b,0x74,0x79])]:_0x2f1db1([0x45,0x43]),[_0x2f1db1([0x75,0x73,0x65])]:_0x2f1db1([0x73,0x69,0x67]),[_0x2f1db1([0x63,0x72,0x76])]:_0x2f1db1([0x50,0x2d,0x32,0x35,0x36]),[_0x2f1db1([0x78])]:_0x2f1db1([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]),[_0x2f1db1([0x79])]:_0x2f1db1([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]),[_0x2f1db1([0x61,0x6c,0x67])]:_0x2f1db1([0x45,0x53,0x32,0x35,0x36])},_0x2b071e=_0x1cef31[_0x2f1db1([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x2f1db1([0x67,0x65,0x74])](_0x2f1db1([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x6c89a8(){let _0x4ec47f,_0x38e1e6=null,_0x37b204=null;try{if(_0x2b071e==_0x2f1db1([0x47,0x50,0x4c]))return _0x2f1db1([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x4ec47f=_0x2fbf22(),!_0x4ec47f)return _0x2f1db1([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x4ec47f[_0x2f1db1([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x37b204=_0x35bd57(_0x4ec47f[_0x2f1db1([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x4ec47f[_0x2f1db1([0x6a,0x74,0x69])])),await _0x42c037()?_0x1a2d5a()?_0xaff8ee()?_0x2f1db1([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x11337f()?(_0x4ec47f[_0x2f1db1([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x2f1db1([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x38e1e6=_0x18afa1(_0x2f1db1([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x278f8c()):_0x2f1db1([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x2f1db1([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x2f1db1([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x2f1db1([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0xaff8ee(){const _0x1081e0=[_0x2f1db1([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x2f1db1([0x74,0x72,0x69,0x61,0x6c])][_0x2f1db1([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4ec47f[_0x2f1db1([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x1654b0/0x3e8:0xe10*_0x1bb179;return _0x4ec47f[_0x2f1db1([0x65,0x78,0x70])]<_0x1081e0;}function _0x1a2d5a(){const _0x580247=_0x4ec47f[_0x2f1db1([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x580247&&(!!_0x580247[_0x2f1db1([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2f1db1([0x2a]))||!!_0x580247[_0x2f1db1([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2f1db1([0x55,0x50,0x4c,0x43])));}function _0x11337f(){const _0x45c105=_0x4ec47f[_0x2f1db1([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x45c105||0x0==_0x45c105[_0x2f1db1([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x34a14c}=new URL(window[_0x2f1db1([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x45c105[_0x2f1db1([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x34a14c))return!0x0;const _0x510bc6=_0x34a14c[_0x2f1db1([0x73,0x70,0x6c,0x69,0x74])](_0x2f1db1([0x2e]));return _0x45c105[_0x2f1db1([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x2457e1=>_0x2457e1[_0x2f1db1([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2f1db1([0x2a])))[_0x2f1db1([0x6d,0x61,0x70])](_0x11ecc8=>_0x11ecc8[_0x2f1db1([0x73,0x70,0x6c,0x69,0x74])](_0x2f1db1([0x2e])))[_0x2f1db1([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x18fa15=>_0x18fa15[_0x2f1db1([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x510bc6[_0x2f1db1([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x2f1db1([0x6d,0x61,0x70])](_0x2c6a71=>Array(_0x510bc6[_0x2f1db1([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x2c6a71[_0x2f1db1([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x2f1db1([0x66,0x69,0x6c,0x6c])](_0x2c6a71[0x0]===_0x2f1db1([0x2a])?_0x2f1db1([0x2a]):'')[_0x2f1db1([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x2c6a71))[_0x2f1db1([0x73,0x6f,0x6d,0x65])](_0x429ed3=>_0x510bc6[_0x2f1db1([0x65,0x76,0x65,0x72,0x79])]((_0x1c040b,_0x370def)=>_0x429ed3[_0x370def]===_0x1c040b||_0x429ed3[_0x370def]===_0x2f1db1([0x2a])));}function _0x278f8c(){return _0x38e1e6&&_0x37b204?new window[(_0x2f1db1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3f5ac9,_0x257239)=>{_0x38e1e6[_0x2f1db1([0x74,0x68,0x65,0x6e])](_0x3f5ac9,_0x257239),_0x37b204[_0x2f1db1([0x74,0x68,0x65,0x6e])](_0x51c4b6=>{_0x51c4b6!=_0x2f1db1([0x56,0x61,0x6c,0x69,0x64])&&_0x3f5ac9(_0x51c4b6);},_0x257239);}):_0x38e1e6||_0x37b204||_0x2f1db1([0x56,0x61,0x6c,0x69,0x64]);}}function _0x35bd57(_0xe59715,_0x551bc5){return new window[(_0x2f1db1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3daf42=>{if(_0x3db1cf())return _0x3daf42(_0x2f1db1([0x56,0x61,0x6c,0x69,0x64]));_0xf9b21a(),_0x1cef31[_0x2f1db1([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x2f1db1([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0xe7eb9b=!0x1;const _0x4ac003=_0xe388c3();function _0x23f596(_0x40eaf5){return!!_0x40eaf5&&(typeof _0x40eaf5===_0x2f1db1([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x40eaf5===_0x2f1db1([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x40eaf5[_0x2f1db1([0x74,0x68,0x65,0x6e])]===_0x2f1db1([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x40eaf5[_0x2f1db1([0x63,0x61,0x74,0x63,0x68])]===_0x2f1db1([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x47c534(_0xbdf68b){_0x1d31f7(_0xbdf68b)[_0x2f1db1([0x74,0x68,0x65,0x6e])](_0x3a094c=>{if(!_0x3a094c||_0x3a094c[_0x2f1db1([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x2f1db1([0x6f,0x6b]))return _0x2f1db1([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x80cff0(_0x2c792d(_0x4ac003+_0x551bc5))!=_0x3a094c[_0x2f1db1([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x2f1db1([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x2f1db1([0x56,0x61,0x6c,0x69,0x64]);})[_0x2f1db1([0x74,0x68,0x65,0x6e])](_0x22a355=>(_0x37dbce(),_0x22a355),()=>{const _0x5e41e3=_0xc07616();return null==_0x5e41e3?(_0x37dbce(),_0x2f1db1([0x56,0x61,0x6c,0x69,0x64])):_0x2f1db1(_0x1654b0-_0x5e41e3>(0x7753083a^_0xf0b079)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x2f1db1([0x74,0x68,0x65,0x6e])](_0x3daf42)[_0x2f1db1([0x63,0x61,0x74,0x63,0x68])](()=>{_0x3daf42(_0x2f1db1([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x4d7c4f=0x536962ba^_0xf0b079;function _0x37dbce(){const _0x17725c=_0x2f1db1([0x6c,0x6c,0x63,0x74,0x2d])+_0x80cff0(_0x2c792d(_0xe59715)),_0x237b0b=_0x122276(_0x80cff0(window[_0x2f1db1([0x4d,0x61,0x74,0x68])][_0x2f1db1([0x63,0x65,0x69,0x6c])](_0x1654b0/_0x4d7c4f)));window[_0x2f1db1([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x2f1db1([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x17725c,_0x237b0b);}function _0xc07616(){const _0xf2af91=_0x2f1db1([0x6c,0x6c,0x63,0x74,0x2d])+_0x80cff0(_0x2c792d(_0xe59715)),_0x46790b=window[_0x2f1db1([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x2f1db1([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0xf2af91);return _0x46790b?window[_0x2f1db1([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x122276(_0x46790b),0x10)*_0x4d7c4f:null;}function _0x1d31f7(_0x3655fe){return new window[(_0x2f1db1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x274979,_0x53b636)=>{_0x3655fe[_0x2f1db1([0x74,0x68,0x65,0x6e])](_0x274979,_0x53b636),window[_0x2f1db1([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x53b636,0x535e58fa^_0xf0b079);});}}_0x1cef31[_0x2f1db1([0x6f,0x6e])](_0x2f1db1([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x7ff81,_0x6e80b1)=>{if(_0x6e80b1[0x0]!=_0xe59715)return _0x3daf42(_0x2f1db1([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x6e80b1[0x1]={..._0x6e80b1[0x1],[_0x2f1db1([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x4ac003};},{[_0x2f1db1([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x2f1db1([0x68,0x69,0x67,0x68])}),_0x1cef31[_0x2f1db1([0x6f,0x6e])](_0x2f1db1([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x378032=>{_0x23f596(_0x378032[_0x2f1db1([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0xe7eb9b=!0x0,_0x47c534(_0x378032[_0x2f1db1([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x2f1db1([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x2f1db1([0x6c,0x6f,0x77])}),_0x53eb37[_0x2f1db1([0x74,0x68,0x65,0x6e])](()=>{_0xe7eb9b||_0x3daf42(_0x2f1db1([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x3db1cf(){return _0x1cef31[_0x2f1db1([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2f1db1([0x76,0x69,0x65,0x77])][_0x2f1db1([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x2f1db1([0x61,0x75,0x74,0x6f]);}function _0xf9b21a(){_0x1cef31[_0x2f1db1([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2f1db1([0x76,0x69,0x65,0x77])][_0x2f1db1([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x2f1db1([0x61,0x75,0x74,0x6f]);}}function _0x18afa1(_0x421bc6){const _0x33338e=[new window[(_0x2f1db1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x14eb0b=>setTimeout(_0x14eb0b,0x5356b2f6^_0xf0b079)),_0x53eb37[_0x2f1db1([0x74,0x68,0x65,0x6e])](()=>new window[(_0x2f1db1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3ff408=>{let _0x148614=0x0;_0x1cef31[_0x2f1db1([0x6d,0x6f,0x64,0x65,0x6c])][_0x2f1db1([0x6f,0x6e])](_0x2f1db1([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0xea09a,_0x8e6156)=>{_0x8e6156[0x0][_0x2f1db1([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x148614++,_0x148614==(0x535f89d2^_0xf0b079)&&(_0x3ff408(),_0xea09a[_0x2f1db1([0x6f,0x66,0x66])]());});}))];return window[_0x2f1db1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x2f1db1([0x72,0x61,0x63,0x65])](_0x33338e)[_0x2f1db1([0x74,0x68,0x65,0x6e])](()=>_0x421bc6);}async function _0x4b6a4d(){await _0x53eb37,_0x1cef31[_0x2f1db1([0x6d,0x6f,0x64,0x65,0x6c])][_0x2f1db1([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x1d5204,_0x1cef31[_0x2f1db1([0x6d,0x6f,0x64,0x65,0x6c])][_0x2f1db1([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x1d5204,_0x1cef31[_0x2f1db1([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x2f1db1([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x51fa23(_0x437c95){const _0x19f86f=_0x19a8b8();_0x1cef31[_0x19f86f]=_0x2f1db1([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x437c95,_0x437c95!=_0x2f1db1([0x56,0x61,0x6c,0x69,0x64])&&_0x4b6a4d();}function _0x19a8b8(){const _0x4a616e=window[_0x2f1db1([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x2f1db1([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x2f1db1([0x6e,0x6f,0x77])]())[_0x2f1db1([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x2f1db1([0x2e]),'');let _0x5a0ba6=_0x2f1db1([0x68]);for(let _0xbfdeb9=0x0;_0xbfdeb9<_0x4a616e[_0x2f1db1([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0xbfdeb9+=0x2){let _0x3bee67=window[_0x2f1db1([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4a616e[_0x2f1db1([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0xbfdeb9,_0xbfdeb9+0x2));_0x3bee67>=_0x3e9897[_0x2f1db1([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x3bee67-=_0x3e9897[_0x2f1db1([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x5a0ba6+=_0x3e9897[_0x3bee67];}return _0x5a0ba6;}function _0x2fbf22(){const _0x4d1ca5=_0x2b071e[_0x2f1db1([0x73,0x70,0x6c,0x69,0x74])](_0x2f1db1([0x2e]));if(0x3!=_0x4d1ca5[_0x2f1db1([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x3c80b4(_0x4d1ca5[0x1]);function _0x3c80b4(_0x3fd727){const _0x3ccc94=_0x3bc886(_0x3fd727);return _0x3ccc94&&_0x1b74e4()?_0x3ccc94:null;function _0x1b74e4(){const _0x1428fe=_0x3ccc94[_0x2f1db1([0x6a,0x74,0x69])],_0x522c18=window[_0x2f1db1([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1428fe[_0x2f1db1([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x1428fe[_0x2f1db1([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x133cad={..._0x3ccc94,[_0x2f1db1([0x6a,0x74,0x69])]:_0x1428fe[_0x2f1db1([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x1428fe[_0x2f1db1([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x133cad[_0x2f1db1([0x76,0x63])],_0x2c792d(_0x133cad)==_0x522c18;}}}async function _0x42c037(){let _0x2be07a=!0x0;try{const _0x5deeb5=_0x2b071e[_0x2f1db1([0x73,0x70,0x6c,0x69,0x74])](_0x2f1db1([0x2e])),[_0x51ea3c,_0x53692c,_0x118cc3]=_0x5deeb5;return _0x1214ec(_0x51ea3c),await _0x47557c(_0x51ea3c,_0x53692c,_0x118cc3),_0x2be07a;}catch{return!0x1;}function _0x1214ec(_0x5f489e){const _0x4a3f4=_0x3bc886(_0x5f489e);_0x4a3f4&&_0x4a3f4[_0x2f1db1([0x61,0x6c,0x67])]==_0x2f1db1([0x45,0x53,0x32,0x35,0x36])||(_0x2be07a=!0x1);}async function _0x47557c(_0x505bf6,_0x2af31c,_0x5c7815){const _0x52bafe=window[_0x2f1db1([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x2f1db1([0x66,0x72,0x6f,0x6d])](_0x5ef0e9(_0x5c7815),_0x442ee7=>_0x442ee7[_0x2f1db1([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x59aa07=new window[(_0x2f1db1([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x2f1db1([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x505bf6+_0x2f1db1([0x2e])+_0x2af31c),_0x5a766f=window[_0x2f1db1([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x2f1db1([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x5a766f)return;const _0x1499d6=await _0x5a766f[_0x2f1db1([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x2f1db1([0x6a,0x77,0x6b]),_0x3b4981,{[_0x2f1db1([0x6e,0x61,0x6d,0x65])]:_0x2f1db1([0x45,0x43,0x44,0x53,0x41]),[_0x2f1db1([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x2f1db1([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x2f1db1([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x5a766f[_0x2f1db1([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x2f1db1([0x6e,0x61,0x6d,0x65])]:_0x2f1db1([0x45,0x43,0x44,0x53,0x41]),[_0x2f1db1([0x68,0x61,0x73,0x68])]:{[_0x2f1db1([0x6e,0x61,0x6d,0x65])]:_0x2f1db1([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x1499d6,_0x52bafe,_0x59aa07)||(_0x2be07a=!0x1);}}function _0x3bc886(_0x3ed9f4){return _0x3ed9f4[_0x2f1db1([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x2f1db1([0x65,0x79]))?JSON[_0x2f1db1([0x70,0x61,0x72,0x73,0x65])](_0x5ef0e9(_0x3ed9f4)):null;}function _0x5ef0e9(_0x1b483b){return window[_0x2f1db1([0x61,0x74,0x6f,0x62])](_0x1b483b[_0x2f1db1([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x2f1db1([0x2b]))[_0x2f1db1([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x2f1db1([0x2f])));}function _0x2c792d(_0x14c1b6){let _0x4b351c=0x1505;function _0x3139be(_0x16cf4a){for(let _0x591d9a=0x0;_0x591d9a<_0x16cf4a[_0x2f1db1([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x591d9a++){const _0x341048=_0x16cf4a[_0x2f1db1([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x591d9a);_0x4b351c=(_0x4b351c<<0x5)+_0x4b351c+_0x341048,_0x4b351c&=_0x4b351c;}}function _0x28c9f6(_0x538f1c){Array[_0x2f1db1([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x538f1c)?_0x538f1c[_0x2f1db1([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x28c9f6):_0x538f1c&&typeof _0x538f1c==_0x2f1db1([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x2f1db1([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x538f1c)[_0x2f1db1([0x73,0x6f,0x72,0x74])]()[_0x2f1db1([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0xfe7fce,_0xb2f017])=>{_0x3139be(_0xfe7fce),_0x28c9f6(_0xb2f017);}):_0x3139be(window[_0x2f1db1([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x538f1c));}return _0x28c9f6(_0x14c1b6),_0x4b351c>>>0x0;}function _0x80cff0(_0x306725){return _0x306725[_0x2f1db1([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x2f1db1([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x2f1db1([0x30]));}function _0x122276(_0x613b59){return _0x613b59[_0x2f1db1([0x73,0x70,0x6c,0x69,0x74])]('')[_0x2f1db1([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x2f1db1([0x6a,0x6f,0x69,0x6e])]('');}function _0x1d5204(){}function _0x2f1db1(_0x2261c7){return _0x2261c7['map'](_0x14840f=>String['fromCharCode'](_0x14840f))['join']('');}_0x51fa23(await _0x6c89a8());}(this);}['_initSchema'](){const _0x303708=this['editor']['model']['schema'];_0x303708['isRegistered']('imageBlock')&&_0x303708['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x303708['isRegistered']('imageInline')&&_0x303708['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x57c931=this['editor'];_0x57c931['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x57c931['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x3c5b32=>_0x3c5b32['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x5b2e1=_0x57c931['commands']['get']('replaceImageSource');_0x5b2e1&&this['listenTo'](_0x5b2e1,'cleanupImage',(_0x10fd2b,[_0x251a4d,_0xe4f635])=>{_0x251a4d['removeAttribute']('uploadcareImageId',_0xe4f635);});}['_initConfig'](){const _0xaa4eb4=this['editor']['config']['get']('uploadcare.uploader')||{},_0x11e4b4=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x224cb9(_0x364592['document'],'uc-config',{..._0xaa4eb4,'pubkey':_0x11e4b4,'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']=_0x283f5a=>{if('closeMax'==_0x283f5a)return'#uc-icon-arrow-down';},_0x364592['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x224cb9(_0x364592['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader-'+this['ucContextId']}),_0x364592['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x1c55f8=this['editor']['commands']['get']('insertImage');_0x1c55f8&&this['listenTo'](_0x1c55f8,'execute',()=>{const _0x57f96d=this['editor']['model']['document']['selection']['getSelectedElement']();_0x57f96d&&_0x57f96d['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x57f96d);});});const _0x216090=this['editor']['commands']['get']('uploadcareImageReplace');_0x216090&&this['listenTo'](_0x216090,'execute',()=>{const _0x4dc2fc=this['editor']['model']['document']['selection']['getSelectedElement']();_0x4dc2fc&&_0x4dc2fc['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x4dc2fc);});});}}class tt extends _0x46feb1{static get['requires'](){return[o,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x3f8a8e){super(_0x3f8a8e),_0x3f8a8e['config']['define']('uploadcare.uploader.sourceList',[i['Local'],i['URL']]),_0x42e4a7['defineComponents'](_0x42e4a7),this['_defineLocale']();}['_defineLocale'](){const _0x52869a=this['editor']['config']['get']('uploadcare.locale'),_0x198bf5=this['editor']['locale']['contentLanguage'];_0x52869a&&_0x42e4a7['defineLocale'](_0x198bf5,_0x52869a);}}class ii extends _0x497fc2{constructor(_0x2e8434){super(_0x2e8434);const t=_0x2e8434['t'],_0x2679b1=this['bindTemplate'],_0x80028d=new _0x286390();_0x80028d['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':[_0x80028d,{'text':_0x2679b1['to']('imageUploadProgress',_0x276dc0=>t('Loading\x20image...')+'\x20('+(_0x276dc0||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 _0x497fc2{constructor(_0x570841){super(_0x570841);const t=_0x570841['t'];this['set']('errorType',null);const _0x4f363e=new _0x48ecd8(_0x570841);_0x4f363e['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x4f363e['withText']=!0x0,_0x4f363e['class']='ck-button-action',_0x4f363e['on']('execute',()=>{this['fire']('retry');}),_0x4f363e['bind']('isVisible')['to'](this,'errorType',_0x2c4807=>'NotFound'!==_0x2c4807);const _0x677384=new _0x5132f0();_0x677384['content']=_0x3648d9,_0x677384['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x418a97=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':[_0x677384,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x418a97['to']('errorType',_0x486dca=>t('NotFound'!==_0x486dca?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x4f363e]},{'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 _0x497fc2{constructor(_0x56f9ee,_0x4b8b3b){super(_0x56f9ee);const _0x461d76=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x4b8b3b,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x461d76['to']('imageSrc')}});}}class X extends F{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x23aabc,_0x398bbd,_0x3d9579){super(_0x23aabc),this['_items']=this['createCollection'](),this['_loadingView']=new ii(_0x23aabc),this['_errorView']=new ti(_0x23aabc),this['_editingView']=new ei(_0x23aabc,_0x3d9579),this['_focusableView']=new _0x497fc2(_0x23aabc),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x398bbd),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'],_0x301514=>{this['_addUploadcareImageEditorListeners'](_0x301514);});}),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'](_0x7d19cd,_0x14e3f6){const _0x2c5022='uc-cloud-image-editor',_0x3eb932=_0x7d19cd['querySelector'](_0x2c5022);if(_0x3eb932)return _0x14e3f6(_0x3eb932);const _0x11f825=new MutationObserver(_0x311f43=>{const _0x3cc5d3=_0x311f43['filter'](_0x4345f=>_0x4345f['target']===_0x7d19cd&&_0x4345f['addedNodes']['length']>0x0&&_0x4345f['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x2c5022);_0x3cc5d3['length']&&(_0x11f825['disconnect'](),_0x14e3f6(_0x3cc5d3[0x0]['addedNodes'][0x0]));});_0x11f825['observe'](_0x7d19cd,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x114979){_0x114979['addEventListener']('apply',_0x2e3316=>{this['fire']('apply',{'imageSrc':_0x2e3316['detail']['cdnUrl']});}),_0x114979['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class N extends/* #__PURE__ -- @preserve */
25
- _0x1c66af(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x3afba0,_0x33e1d9,_0x1e9d7d){super(),this['_editor']=_0x3afba0,this['_dialog']=_0x33e1d9,this['_imageElement']=_0x1e9d7d,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 _0x348c6c=this['_imageElement'],_0x95a419=_0x348c6c['getAttribute']('uploadcareImageId'),_0x5585d9=_0x348c6c['getAttribute']('src');if(_0x95a419)await this['_loadImageInfo'](_0x95a419,_0x5585d9);else{if(this['_imageCache']['has'](_0x5585d9)){const _0x20b8e6=this['_imageCache']['get'](_0x5585d9);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x20b8e6['url'],this['imageDimension']=_0x20b8e6['dimension'],this['imageId']=_0x20b8e6['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x101f0b}=this['_editor'],t=_0x101f0b['t'],_0x2e6a65=new X(_0x101f0b,this['imageStatus'],this['_attributes']);_0x2e6a65['bind']('status')['to'](this,'imageStatus'),_0x2e6a65['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x2e6a65['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x2e6a65['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x2e6a65,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x15c8dc,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x2e6a65,'position':_0x4bbf5e['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x2e6a65['focus']();},'onHide':()=>{_0x2e6a65['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x39782f=>!A(_0x39782f,_0x2e6a65['element'])}});}['_loadImageInfo'](_0x5e06d7,_0x363641){return j['getInfo'](_0x5e06d7,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl')})['then'](_0x328638=>{const {width:_0x2532f0,height:_0x364998}=_0x328638['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x363641,this['imageDimension']={'width':_0x2532f0,'height':_0x364998},this['imageId']=_0x5e06d7;})['catch'](_0x4154f1=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x4154f1['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x3ec90d,_0x4f0de7){return this['_getImageAsFile'](_0x3ec90d)['then'](_0x46a1e7=>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':_0x4f0de7['signal'],'file':_0x46a1e7,'onProgress':_0x252e1e=>{_0x252e1e&&_0x252e1e['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x252e1e['value']));}}))['then'](_0x1e48c1=>{const {width:_0x1a957c,height:_0x56a1fb}=_0x1e48c1['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x1e48c1['cdnUrl'],this['imageDimension']={'width':_0x1a957c,'height':_0x56a1fb},this['imageId']=_0x1e48c1['uuid'],this['imageUploadProgress']=null;const _0x15df40=_0x3ec90d['getAttribute']('src');this['_imageCache']['set'](_0x15df40,{'id':_0x1e48c1['uuid'],'url':_0x1e48c1['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x559068=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x559068['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x48bc73,_0x1092ed){_0x48bc73['on']('apply',(_0x341deb,_0x2a47c2)=>{this['_replaceImage'](_0x1092ed,_0x2a47c2['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x48bc73['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x48bc73['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x4ee876,_0x86afd5,_0x31e027){const _0x3bbfb8=this['_editor'],{width:_0x4b2584,height:_0x513c8b}=S(_0x86afd5,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x9dc512,imageSources:_0x3c8720}=C(_0x86afd5,_0x4b2584);_0x3bbfb8['model']['change'](_0x2bd60f=>{if('$graveyard'===_0x4ee876['root']['rootName']){_0x3bbfb8['execute']('insertImage',{'imageType':_0x4ee876['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x4ee876['getAttributes']()),'uploadcareImageId':_0x31e027,'src':_0x9dc512,'sources':_0x3c8720,'width':_0x4b2584,'height':_0x513c8b}});const _0x440f7f=_0x4ee876['getChildren']();_0x4ee876=_0x3bbfb8['model']['document']['selection']['getSelectedElement']();for(const _0x174a85 of _0x440f7f)_0x2bd60f['append'](_0x2bd60f['cloneElement'](_0x174a85),_0x4ee876);}else _0x2bd60f['setSelection'](_0x4ee876,'on'),_0x3bbfb8['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x4ee876['getAttributes']()),'uploadcareImageId':_0x31e027,'src':_0x9dc512,'sources':_0x3c8720,'width':_0x4b2584,'height':_0x513c8b},_0x4ee876);_0x2bd60f['setSelection'](_0x4ee876,'on');});}async['_getImageAsFile'](_0x14d896){const _0x3de058=_0x364592['window'],_0x4600ce=_0x364592['document']['location']['href'],_0x355338=new _0x3de058['URL'](_0x14d896['getAttribute']('src'),_0x4600ce);if('data:'===_0x355338['protocol']){const _0x194fd6=_0x355338['href']['split'](','),_0x2ea3aa=_0x194fd6[0x0]['match'](/:(.*?);/)[0x1],_0x560c11=_0x2ea3aa['split']('/')[0x1],_0x2e507e=_0x3de058['atob'](_0x194fd6[_0x194fd6['length']-0x1]);let _0x4d5d57=_0x2e507e['length'];const _0x1d9fc2=new _0x3de058['Uint8Array'](_0x4d5d57);for(;_0x4d5d57--;)_0x1d9fc2[_0x4d5d57]=_0x2e507e['charCodeAt'](_0x4d5d57);return new _0x3de058['File']([_0x1d9fc2],'image.'+_0x560c11,{'type':_0x2ea3aa});}const _0x29e451=_0x355338['href']['split']('/'),_0x460acf=_0x29e451[_0x29e451['length']-0x1],_0x23e8e4=_0x460acf['split']('.')[0x1];return _0x3de058['fetch'](_0x355338['href'])['then'](_0x4f1254=>_0x4f1254['clone']()['blob']())['then'](_0x351aab=>new _0x3de058['File']([_0x351aab],_0x460acf,{'type':'image/'+_0x23e8e4}));}}class Q extends _0x207e1b{['imageEditController'];static get['requires'](){return[_0x2b6127];}['_isEditable'];constructor(_0x577d0f){super(_0x577d0f),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x2e9250){const _0x5b1115=z(_0x2e9250);return _0x3593c5=>!(!_0x3593c5||!_0x3593c5['is']('element','imageBlock')&&!_0x3593c5['is']('element','imageInline'))&&(!!_0x3593c5['hasAttribute']('uploadcareImageId')||!!_0x3593c5['hasAttribute']('src')&&_0x5b1115(_0x3593c5['getAttribute']('src')));}(_0x577d0f['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x58ab8d=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x58ab8d);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x5b641f=this['editor']['model']['document']['selection']['getSelectedElement']();_0x5b641f&&(_0x5b641f['is']('element','imageBlock')||_0x5b641f['is']('element','imageInline'))&&(this['imageEditController']=new N(this['editor'],this['editor']['plugins']['get'](_0x2b6127),_0x5b641f),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class V extends _0x207e1b{['refresh'](){const _0x129bfc=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x129bfc&&(_0x129bfc['is']('element','imageBlock')||_0x129bfc['is']('element','imageInline')));}['execute'](_0x5870b3){const _0x70dd14=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x46d619=>{_0x46d619['setAttributes'](_0x5870b3,_0x70dd14),_0x46d619['removeAttribute']('srcset',_0x70dd14),_0x46d619['removeAttribute']('sizes',_0x70dd14);});}}class m extends _0x46feb1{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[o,_0x2f6a12,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x115282}=this;_0x115282['commands']['add']('uploadcareImageEdit',new Q(_0x115282)),_0x115282['commands']['add']('uploadcareImageReplace',new V(_0x115282));}}class g extends _0x46feb1{['_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 _0x2cf388=this['editor'];_0x2cf388['ui']['componentFactory']['add']('uploadcareImageEdit',_0x35ce96=>{const _0x15d437=_0x2cf388['commands']['get']('uploadcareImageEdit'),_0x3ab798=new _0x48ecd8(_0x35ce96),t=_0x35ce96['t'];return _0x3ab798['set']({'icon':_0x15c8dc,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x3ab798['bind']('isEnabled')['to'](_0x15d437),_0x3ab798['bind']('isOn')['to'](_0x15d437,'isActive'),this['listenTo'](_0x3ab798,'execute',()=>{_0x2cf388['execute']('uploadcareImageEdit'),_0x2cf388['editing']['view']['focus']();}),_0x3ab798;}),this['_initConfig']();}['_initConfig'](){const _0x4998a8=_0x224cb9(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x4998a8),this['listenTo'](this['editor'],'destroy',()=>{_0x4998a8['remove']();});}}class et extends _0x46feb1{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 _0x5e5b75,Command as _0x5b5250}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x7a380c,IconGooglePhotos as _0x577ced,IconGoogleDrive as _0x493a4c,IconFacebook as _0x50f466,IconDropbox as _0x251fa4,IconUploadcareLink as _0x58efce,IconUploadcareImageUpload as _0x21d571,IconError as _0x29e476,IconUploadcareImageEdit as _0x3a6507}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x2fdd6d,MenuBarMenuListItemButtonView as _0x41414e,View as _0x4e29b2,FocusCycler as _0xb089db,Dialog as _0x4f93e4,DialogViewPosition as _0x5965e9,SpinnerView as _0x3f513c,IconView as _0x270023,Notification as _0x51acdf}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x485e34,DomEmitterMixin as _0x6d4950,global as _0x3b421d,getAncestors as _0xf3e525,ObservableMixin as _0x3d34e2,uid as _0x72b675,createElement as _0x51e8e3}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x22e926}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x3a01d7,info as _0x30fa2b}from'@uploadcare/upload-client';import*as _0x4bf5a8 from'@uploadcare/file-uploader';var i=function(_0x5d54d5){return _0x5d54d5['Local']='local',_0x5d54d5['URL']='url',_0x5d54d5['Dropbox']='dropbox',_0x5d54d5['GDrive']='gdrive',_0x5d54d5['Facebook']='facebook',_0x5d54d5['GPhotos']='gphotos',_0x5d54d5['OneDrive']='onedrive',_0x5d54d5;}({});function _(_0x2a061a,_0x2f0d52,_0x2536b8){const t=_0x2a061a['t'],_0x137af6=_0x2a061a['t'];switch(_0x2f0d52){case i['Local']:return{'text':_0x137af6('Insert'===_0x2536b8?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x137af6('From\x20computer')};case i['URL']:return{'text':'Insert'===_0x2536b8?_0x137af6('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x137af6('Via\x20URL')};case i['Dropbox']:return{'text':t('Insert'===_0x2536b8?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case i['Facebook']:return{'text':t('Insert'===_0x2536b8?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case i['GDrive']:return{'text':t('Insert'===_0x2536b8?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case i['GPhotos']:return{'text':t('Insert'===_0x2536b8?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case i['OneDrive']:return{'text':t('Insert'===_0x2536b8?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x2f0d52;}}class e extends _0x5e5b75{['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 _0x43950b=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x1bcd4a;for(const _0x166987 in _0x43950b){const _0x32f04d=_0x166987,_0x219025=_0x43950b[_0x32f04d];if('uploadcareLicenseKeyValid'==_0x219025||'uploadcareLicenseKeyInvalid'==_0x219025||'uploadcareLicenseKeyExpired'==_0x219025||'uploadcareLicenseKeyDomainLimit'==_0x219025||'uploadcareLicenseKeyNotAllowed'==_0x219025||'uploadcareLicenseKeyEvaluationLimit'==_0x219025||'uploadcareLicenseKeyUsageLimit'==_0x219025){delete _0x43950b[_0x32f04d],_0x1bcd4a=_0x219025,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x1bcd4a&&_0x43950b['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x1bcd4a&&_0x43950b['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x1bcd4a&&_0x43950b['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x1bcd4a&&_0x43950b['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x1bcd4a&&_0x43950b['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyUsageLimit'==_0x1bcd4a&&_0x43950b['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x28ffce}=this,_0x5a7f38=_0x28ffce['commands']['get']('uploadcare');if(!_0x5a7f38)return;const _0x2f9a20=this['_normalizeConfigSourceList'](_0x28ffce['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x2fe5a2,_0x16e471)=>{const _0x3fdfa1=this['_getIntegrationKey'](_0x16e471['type']);return _0x2fe5a2[_0x3fdfa1]||(_0x2fe5a2[_0x3fdfa1]=[]),_0x2fe5a2[_0x3fdfa1]['push'](_0x16e471),_0x2fe5a2;},{});_0x28ffce['plugins']['has']('ImageInsertUI')&&_0x28ffce['commands']['get']('uploadcare')&&Object['entries'](_0x2f9a20)['forEach'](([_0x57a9f5,_0x31ea82])=>{_0x28ffce['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x57a9f5,'observable':()=>_0x5a7f38,'buttonViewCreator':()=>this['_createToolbarButton'](_0x31ea82),'formViewCreator':()=>this['_createDropdownButtons'](_0x31ea82),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x31ea82),'override':'assetManager'!==_0x57a9f5});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x372d3f){const {locale:_0x17f4a9}=this['editor'];return _0x372d3f['map'](_0x562926=>{const _0x406393=_(_0x17f4a9,_0x562926,'Insert');switch(_0x562926){case i['Local']:return{'icon':_0x21d571,'type':i['Local'],..._0x406393};case i['URL']:return{'icon':_0x58efce,'type':i['URL'],..._0x406393};case i['Dropbox']:return{'icon':_0x251fa4,'type':i['Dropbox'],..._0x406393};case i['Facebook']:return{'icon':_0x50f466,'type':i['Facebook'],..._0x406393};case i['GDrive']:return{'icon':_0x493a4c,'type':i['GDrive'],..._0x406393};case i['GPhotos']:return{'icon':_0x577ced,'type':i['GPhotos'],..._0x406393};case i['OneDrive']:return{'icon':_0x7a380c,'type':i['OneDrive'],..._0x406393};}});}['_getIntegrationKey'](_0x2ef5d7){switch(_0x2ef5d7){case i['Local']:return'upload';case i['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x316e6e,_0x27ac6e){const _0x1c186b=this['editor'],_0x5603d5=new _0x316e6e(_0x1c186b['locale']),_0x143a4d=_0x1c186b['commands']['get']('uploadcare');return _0x5603d5['bind']('isEnabled')['to'](_0x143a4d),_0x5603d5['on']('execute',()=>{_0x143a4d['execute'](_0x27ac6e);}),_0x5603d5;}['_createToolbarButton'](_0x2890d2){const {locale:_0x31d9cc}=this['editor'],_0x122846=this['editor']['plugins']['get']('ImageInsertUI'),_0x3fded0=_0x2890d2[0x0],_0x2f747c=this['_createButton'](_0x2fdd6d,_0x3fded0['type']);return _0x2f747c['icon']=_0x3fded0['icon'],_0x2f747c['bind']('label')['to'](_0x122846,'isImageSelected',_0x1206a7=>_(_0x31d9cc,_0x3fded0['type'],_0x1206a7?'Replace':'Insert')['text']),_0x2f747c['tooltip']=!0x0,_0x2f747c;}['_createDropdownButtons'](_0xdfc87b){const {locale:_0x1066f5}=this['editor'],_0x13d500=this['editor']['plugins']['get']('ImageInsertUI');return _0xdfc87b['map'](_0x29b594=>{const _0x41acf7=this['_createButton'](_0x2fdd6d,_0x29b594['type']);return _0x41acf7['withText']=!0x0,_0x41acf7['icon']=_0x29b594['icon'],_0x41acf7['bind']('label')['to'](_0x13d500,'isImageSelected',_0x1063c8=>_(_0x1066f5,_0x29b594['type'],_0x1063c8?'Replace':'Insert')['text']),_0x41acf7;});}['_createMenuBarButtons'](_0x4f4417){return _0x4f4417['map'](_0x221ba9=>{const _0x754614=this['_createButton'](_0x41414e,_0x221ba9['type']);return _0x754614['icon']=_0x221ba9['icon'],_0x754614['label']=_0x221ba9['shortText'],_0x754614;});}}class F extends _0x4e29b2{['focusTracker'];['focusCycler'];constructor(_0x26d5a3){super(_0x26d5a3),this['focusTracker']=new _0x485e34(),this['focusCycler']=new _0xb089db({'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(_0x50b5b3,_0x2526c1){super(_0x50b5b3),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-'+_0x2526c1}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}}function C(_0x39335a,_0x185ca7){const _0x4cb508=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x22749c=>_0x22749c<=_0x185ca7)['map'](_0x123ed2=>_0x39335a['replace'](/\/$/,'')+'/-/resize/'+_0x123ed2+'x/\x20'+_0x123ed2+'w');return{'imageFallbackUrl':_0x39335a,'imageSources':[{'srcset':_0x4cb508['join'](',\x20'),'sizes':'(max-width:\x20'+_0x185ca7+'px)\x20100vw,\x20'+_0x185ca7+'px','type':'image/webp'}]};}function S(_0x148502,_0x5c0159,_0x11b9c6){const _0x573f9b=_0x148502['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x573f9b?parseInt(_0x573f9b[0x1],0xa):_0x5c0159,'height':_0x573f9b?parseInt(_0x573f9b[0x2],0xa):_0x11b9c6};}function p(_0x3b4b26,_0x62a5f6){const _0x451ca8=new(_0x6d4950())(),_0x5e58a2=_0x3b4b26['plugins']['get']('ImageUtils'),_0x3309a5=_0x3b4b26['editing']['mapper']['toViewElement'](_0x62a5f6),_0x17ae09=_0x5e58a2['findViewImgElement'](_0x3309a5),_0x3c5670=_0x3b4b26['editing']['view']['domConverter']['viewToDom'](_0x17ae09),_0x2500a3=_0x62a5f6['getAttribute']('width'),_0x166b18=_0x62a5f6['getAttribute']('height'),_0x4e79c4='image-processing';_0x3b4b26['editing']['view']['change'](_0x284f09=>{_0x284f09['addClass'](_0x4e79c4,_0x3309a5),_0x284f09['setStyle']('aspect-ratio',_0x2500a3+'/'+_0x166b18,_0x17ae09);}),_0x451ca8['listenTo'](_0x3c5670,'load',()=>{_0x451ca8['stopListening'](_0x3c5670,'load'),_0x3b4b26['editing']['view']['change'](_0x3ba8ac=>{_0x3ba8ac['removeClass'](_0x4e79c4,_0x3309a5),_0x3ba8ac['removeStyle']('aspect-ratio',_0x17ae09);});});}function z(_0x5b8297){if(Array['isArray'](_0x5b8297)){const _0x780def=_0x5b8297['map'](z);return _0x4ca7ae=>_0x780def['some'](_0x474079=>_0x474079(_0x4ca7ae));}if('origin'==_0x5b8297){const _0x4ce223=_0x3b421d['window']['location']['origin'];return _0x3f462e=>new URL(_0x3f462e,_0x3b421d['document']['baseURI'])['origin']==_0x4ce223;}return'function'==typeof _0x5b8297?_0x5b8297:_0x5b8297 instanceof RegExp?_0x28a53b=>!(!_0x28a53b['match'](_0x5b8297)&&!_0x28a53b['replace'](/^https?:\/\//,'')['match'](_0x5b8297)):()=>!0x1;}function A(_0x18ccc4,_0x2e5169){return _0xf3e525(_0x18ccc4['target'])['includes'](_0x2e5169);}class n extends/* #__PURE__ -- @preserve */
24
+ _0x3d34e2(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x18c44c,_0x227004,_0xf1bd5d){super(),this['_editor']=_0x18c44c,this['_editing']=_0x227004,this['_dialog']=_0x18c44c['plugins']['get'](_0x4f93e4),this['_api']=_0x227004['ctxElement']['getAPI'](),this['_type']=_0xf1bd5d,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:_0x4a231a,model:_0x2c87c1}=this['_editor'],_0x57cbc3=_0x2c87c1['document']['selection']['getSelectedElement'](),_0x1e9429=_0x57cbc3&&(_0x57cbc3['is']('element','imageBlock')||_0x57cbc3['is']('element','imageInline'));this['_formView']=new x(_0x4a231a,this['_editing']['ucContextId']),this['_dialog']['show']({'id':'uploadCare','icon':_0x21d571,'title':_(_0x4a231a,this['_type'],_0x1e9429?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x5965e9['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x46bdcf=>!A(_0x46bdcf,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x33aacf}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x3c2486=>{const _0x322ec3=_0x33aacf['length'];for(const _0x3b1938 of _0x33aacf){const _0x3af473=_0x3b1938===_0x33aacf[_0x322ec3-0x1],{cdnUrl:_0x188920,fileInfo:_0xb4e6c2}=_0x3b1938;if(!_0x188920||!_0xb4e6c2)continue;const {width:_0x59d41f,height:_0x5ef177}=_0xb4e6c2['imageInfo'],_0x2ba84c=S(_0x188920,_0x59d41f,_0x5ef177),_0x61467=C(_0x188920,_0x2ba84c['width']),_0x374c2d={'id':_0xb4e6c2['uuid'],'type':'image','attributes':{'imageDimension':_0x2ba84c,..._0x61467}};this['_insertAsset'](_0x374c2d,_0x3af473,_0x3c2486);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x467069=>{'idle'===_0x467069['detail']['status']&&!_0x467069['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===i['Local']?this['_api']['setCurrentActivity'](i['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x2ec3e1,_0x553158,_0xbd3aba){const _0x4a750d=this['_editor']['model']['document']['selection'],_0x1aa77b=_0x4a750d['getSelectedElement'](),_0x4b2546=!(!_0x1aa77b||!_0x1aa77b['is']('element','imageInline'));_0xbd3aba['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x2ec3e1,_0x4b2546),_0x553158||_0xbd3aba['setSelection'](_0x4a750d['getLastPosition']());}['_insertImage'](_0xd80b2a,_0x41909d){const _0x5efabb=this['_editor'],{imageDimension:_0xa2a215,imageFallbackUrl:_0x43ef1c,imageSources:_0x776539}=_0xd80b2a['attributes'];_0x5efabb['execute']('insertImage',{'imageType':_0x41909d?'imageInline':null,'source':{'uploadcareImageId':_0xd80b2a['id'],'src':_0x43ef1c,'sources':_0x776539,..._0xa2a215}});}}class w extends _0x5b5250{['_editing'];['_controller']=null;static get['requires'](){return[_0x4f93e4,o];}constructor(_0x1fb7fb){super(_0x1fb7fb),this['_editing']=_0x1fb7fb['plugins']['get'](o);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x156e7f){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new n(this['editor'],this['_editing'],_0x156e7f);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class j{static['upload']({file:_0x46012e,..._0x11a0b5}){return _0x3a01d7(_0x46012e,_0x11a0b5);}static['getInfo'](_0x1ad1a3,_0x2d105d){return _0x30fa2b(_0x1ad1a3,_0x2d105d);}}class f extends _0x5e5b75{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x22e926,o];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x50377b=this['editor'];if(!!!_0x50377b['config']['get']('uploadcare'))return;_0x50377b['plugins']['get'](_0x22e926)['createUploadAdapter']=_0x3642cf=>new k(_0x3642cf,_0x50377b),_0x50377b['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x15b510,{imageElement:_0x5adc06,data:_0x452f1f})=>{_0x50377b['model']['change'](_0x16c387=>{_0x16c387['setAttribute']('uploadcareImageId',_0x452f1f['uploadcareImageId'],_0x5adc06);});});}}class k{['loader'];['editor'];['controller'];constructor(_0x9edb9c,_0x4d2b1c){this['loader']=_0x9edb9c,this['editor']=_0x4d2b1c,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x593344=await this['loader']['file'];return j['upload']({'file':_0x593344,'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':_0x1458fa=>{_0x1458fa&&_0x1458fa['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x1458fa['value']);}})['then'](async _0x4cb910=>{const {imageFallbackUrl:_0x125c22,imageSources:_0x232acd}=C(_0x4cb910['cdnUrl'],_0x4cb910['imageInfo']['width']);return{'uploadcareImageId':_0x4cb910['uuid'],'default':_0x125c22,'sources':_0x232acd};})['catch'](()=>{const _0x33cb5a=t('Cannot\x20upload\x20file:')+('\x20'+_0x593344['name']+'.');return Promise['reject'](_0x33cb5a);});}['abort'](){this['controller']['abort']();}}class o extends _0x5e5b75{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',f,_0x4f93e4];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['ucContextId'];get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}constructor(_0xd512db){super(_0xd512db),this['ucContextId']=_0x72b675();}['init'](){const _0x23303f=this['editor'];_0x23303f['commands']['add']('uploadcare',new w(_0x23303f));}['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 _0x2bf034=_0x3b421d['document']['querySelector']('input[uploadcare-file-input]');_0x2bf034&&_0x2bf034['remove']();}),async function(_0x513e7d){const _0x49c745=_0x2dbdeb([0x68,0x67,0x50,0x36,0x38,0x70,0x71,0x63,0x37,0x4f,0x42,0x4a,0x78,0x39,0x75,0x33,0x7a,0x72,0x48,0x61,0x74,0x59,0x55,0x58,0x66,0x30,0x34,0x54,0x64,0x56,0x6b,0x4d,0x46,0x6d,0x77,0x43,0x73,0x35,0x53,0x44,0x41,0x76,0x6a,0x32,0x31,0x69,0x57,0x51,0x47,0x65,0x5a,0x4b,0x4c,0x79,0x52,0x6c,0x45,0x4e,0x6e,0x6f,0x49,0x62]),_0x27ecb6=0x535f8c3a,_0x45a180=0x5358f2a2^_0x27ecb6,_0x1bff4e=window[_0x2dbdeb([0x44,0x61,0x74,0x65])][_0x2dbdeb([0x6e,0x6f,0x77])](),_0x48a3c0=_0x513e7d[_0x2dbdeb([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x3ff0ef=new window[(_0x2dbdeb([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x15b0db=>{_0x48a3c0[_0x2dbdeb([0x6f,0x6e,0x63,0x65])](_0x2dbdeb([0x72,0x65,0x61,0x64,0x79]),_0x15b0db);}),_0x351da4={[_0x2dbdeb([0x6b,0x74,0x79])]:_0x2dbdeb([0x45,0x43]),[_0x2dbdeb([0x75,0x73,0x65])]:_0x2dbdeb([0x73,0x69,0x67]),[_0x2dbdeb([0x63,0x72,0x76])]:_0x2dbdeb([0x50,0x2d,0x32,0x35,0x36]),[_0x2dbdeb([0x78])]:_0x2dbdeb([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]),[_0x2dbdeb([0x79])]:_0x2dbdeb([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]),[_0x2dbdeb([0x61,0x6c,0x67])]:_0x2dbdeb([0x45,0x53,0x32,0x35,0x36])},_0x2b744e=_0x48a3c0[_0x2dbdeb([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x2dbdeb([0x67,0x65,0x74])](_0x2dbdeb([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x54c182(){let _0x9a42f1,_0x57eb47=null,_0x2418a0=null;try{if(_0x2b744e==_0x2dbdeb([0x47,0x50,0x4c]))return _0x2dbdeb([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x9a42f1=_0x5494d7(),!_0x9a42f1)return _0x2dbdeb([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x9a42f1[_0x2dbdeb([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x2418a0=_0x102717(_0x9a42f1[_0x2dbdeb([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x9a42f1[_0x2dbdeb([0x6a,0x74,0x69])])),await _0x269fe1()?_0x2e4db0()?_0x3e1025()?_0x2dbdeb([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x5800ef()?(_0x9a42f1[_0x2dbdeb([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x2dbdeb([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x57eb47=_0x24d6a1(_0x2dbdeb([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x59850f()):_0x2dbdeb([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x2dbdeb([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x2dbdeb([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x2dbdeb([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x3e1025(){const _0x330f68=[_0x2dbdeb([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x2dbdeb([0x74,0x72,0x69,0x61,0x6c])][_0x2dbdeb([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x9a42f1[_0x2dbdeb([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x1bff4e/0x3e8:0xe10*_0x45a180;return _0x9a42f1[_0x2dbdeb([0x65,0x78,0x70])]<_0x330f68;}function _0x2e4db0(){const _0x56d53c=_0x9a42f1[_0x2dbdeb([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x56d53c&&(!!_0x56d53c[_0x2dbdeb([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2dbdeb([0x2a]))||!!_0x56d53c[_0x2dbdeb([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2dbdeb([0x55,0x50,0x4c,0x43])));}function _0x5800ef(){const _0x20c4a3=_0x9a42f1[_0x2dbdeb([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x20c4a3||0x0==_0x20c4a3[_0x2dbdeb([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0xfbf3bf}=new URL(window[_0x2dbdeb([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x20c4a3[_0x2dbdeb([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xfbf3bf))return!0x0;const _0x4564f7=_0xfbf3bf[_0x2dbdeb([0x73,0x70,0x6c,0x69,0x74])](_0x2dbdeb([0x2e]));return _0x20c4a3[_0x2dbdeb([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x251d7f=>_0x251d7f[_0x2dbdeb([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2dbdeb([0x2a])))[_0x2dbdeb([0x6d,0x61,0x70])](_0x4a0034=>_0x4a0034[_0x2dbdeb([0x73,0x70,0x6c,0x69,0x74])](_0x2dbdeb([0x2e])))[_0x2dbdeb([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x452ae6=>_0x452ae6[_0x2dbdeb([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x4564f7[_0x2dbdeb([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x2dbdeb([0x6d,0x61,0x70])](_0x2c87dc=>Array(_0x4564f7[_0x2dbdeb([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x2c87dc[_0x2dbdeb([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x2dbdeb([0x66,0x69,0x6c,0x6c])](_0x2c87dc[0x0]===_0x2dbdeb([0x2a])?_0x2dbdeb([0x2a]):'')[_0x2dbdeb([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x2c87dc))[_0x2dbdeb([0x73,0x6f,0x6d,0x65])](_0x5264a2=>_0x4564f7[_0x2dbdeb([0x65,0x76,0x65,0x72,0x79])]((_0x376ee9,_0x334823)=>_0x5264a2[_0x334823]===_0x376ee9||_0x5264a2[_0x334823]===_0x2dbdeb([0x2a])));}function _0x59850f(){return _0x57eb47&&_0x2418a0?new window[(_0x2dbdeb([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x167af4,_0x48c55c)=>{_0x57eb47[_0x2dbdeb([0x74,0x68,0x65,0x6e])](_0x167af4,_0x48c55c),_0x2418a0[_0x2dbdeb([0x74,0x68,0x65,0x6e])](_0x28d7dd=>{_0x28d7dd!=_0x2dbdeb([0x56,0x61,0x6c,0x69,0x64])&&_0x167af4(_0x28d7dd);},_0x48c55c);}):_0x57eb47||_0x2418a0||_0x2dbdeb([0x56,0x61,0x6c,0x69,0x64]);}}function _0x102717(_0x49a0f5,_0xe70c41){return new window[(_0x2dbdeb([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2fc593=>{if(_0x5812e2())return _0x2fc593(_0x2dbdeb([0x56,0x61,0x6c,0x69,0x64]));_0x2ccec1(),_0x48a3c0[_0x2dbdeb([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x2dbdeb([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x1c509e=!0x1;const _0x5679a2=_0x72b675();function _0x3c0c78(_0x20fabb){return!!_0x20fabb&&(typeof _0x20fabb===_0x2dbdeb([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x20fabb===_0x2dbdeb([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x20fabb[_0x2dbdeb([0x74,0x68,0x65,0x6e])]===_0x2dbdeb([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x20fabb[_0x2dbdeb([0x63,0x61,0x74,0x63,0x68])]===_0x2dbdeb([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x1e8818(_0x5d2bc4){_0x50c149(_0x5d2bc4)[_0x2dbdeb([0x74,0x68,0x65,0x6e])](_0x45729d=>{if(!_0x45729d||_0x45729d[_0x2dbdeb([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x2dbdeb([0x6f,0x6b]))return _0x2dbdeb([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x4a004e(_0x39b6a4(_0x5679a2+_0xe70c41))!=_0x45729d[_0x2dbdeb([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x2dbdeb([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x2dbdeb([0x56,0x61,0x6c,0x69,0x64]);})[_0x2dbdeb([0x74,0x68,0x65,0x6e])](_0x3f3c67=>(_0x3c9212(),_0x3f3c67),()=>{const _0x29ecde=_0x2fd3e8();return null==_0x29ecde?(_0x3c9212(),_0x2dbdeb([0x56,0x61,0x6c,0x69,0x64])):_0x2dbdeb(_0x1bff4e-_0x29ecde>(0x7753083a^_0x27ecb6)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x2dbdeb([0x74,0x68,0x65,0x6e])](_0x2fc593)[_0x2dbdeb([0x63,0x61,0x74,0x63,0x68])](()=>{_0x2fc593(_0x2dbdeb([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x27f9a8=0x536962ba^_0x27ecb6;function _0x3c9212(){const _0x539c88=_0x2dbdeb([0x6c,0x6c,0x63,0x74,0x2d])+_0x4a004e(_0x39b6a4(_0x49a0f5)),_0x2114a1=_0x530de6(_0x4a004e(window[_0x2dbdeb([0x4d,0x61,0x74,0x68])][_0x2dbdeb([0x63,0x65,0x69,0x6c])](_0x1bff4e/_0x27f9a8)));window[_0x2dbdeb([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x2dbdeb([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x539c88,_0x2114a1);}function _0x2fd3e8(){const _0x36f197=_0x2dbdeb([0x6c,0x6c,0x63,0x74,0x2d])+_0x4a004e(_0x39b6a4(_0x49a0f5)),_0x29277f=window[_0x2dbdeb([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x2dbdeb([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x36f197);return _0x29277f?window[_0x2dbdeb([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x530de6(_0x29277f),0x10)*_0x27f9a8:null;}function _0x50c149(_0x2f3d96){return new window[(_0x2dbdeb([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3c5bf8,_0x5d4ebf)=>{_0x2f3d96[_0x2dbdeb([0x74,0x68,0x65,0x6e])](_0x3c5bf8,_0x5d4ebf),window[_0x2dbdeb([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x5d4ebf,0x535e58fa^_0x27ecb6);});}}_0x48a3c0[_0x2dbdeb([0x6f,0x6e])](_0x2dbdeb([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x22b332,_0x2997f7)=>{if(_0x2997f7[0x0]!=_0x49a0f5)return _0x2fc593(_0x2dbdeb([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x2997f7[0x1]={..._0x2997f7[0x1],[_0x2dbdeb([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x5679a2};},{[_0x2dbdeb([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x2dbdeb([0x68,0x69,0x67,0x68])}),_0x48a3c0[_0x2dbdeb([0x6f,0x6e])](_0x2dbdeb([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x216059=>{_0x3c0c78(_0x216059[_0x2dbdeb([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x1c509e=!0x0,_0x1e8818(_0x216059[_0x2dbdeb([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x2dbdeb([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x2dbdeb([0x6c,0x6f,0x77])}),_0x3ff0ef[_0x2dbdeb([0x74,0x68,0x65,0x6e])](()=>{_0x1c509e||_0x2fc593(_0x2dbdeb([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x5812e2(){return _0x48a3c0[_0x2dbdeb([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2dbdeb([0x76,0x69,0x65,0x77])][_0x2dbdeb([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x2dbdeb([0x61,0x75,0x74,0x6f]);}function _0x2ccec1(){_0x48a3c0[_0x2dbdeb([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2dbdeb([0x76,0x69,0x65,0x77])][_0x2dbdeb([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x2dbdeb([0x61,0x75,0x74,0x6f]);}}function _0x24d6a1(_0x5cf242){const _0x3a7782=[new window[(_0x2dbdeb([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x476d5a=>setTimeout(_0x476d5a,0x5356b2f6^_0x27ecb6)),_0x3ff0ef[_0x2dbdeb([0x74,0x68,0x65,0x6e])](()=>new window[(_0x2dbdeb([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x52b576=>{let _0x5e028d=0x0;_0x48a3c0[_0x2dbdeb([0x6d,0x6f,0x64,0x65,0x6c])][_0x2dbdeb([0x6f,0x6e])](_0x2dbdeb([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x461d27,_0xeb023e)=>{_0xeb023e[0x0][_0x2dbdeb([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x5e028d++,_0x5e028d==(0x535f89d2^_0x27ecb6)&&(_0x52b576(),_0x461d27[_0x2dbdeb([0x6f,0x66,0x66])]());});}))];return window[_0x2dbdeb([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x2dbdeb([0x72,0x61,0x63,0x65])](_0x3a7782)[_0x2dbdeb([0x74,0x68,0x65,0x6e])](()=>_0x5cf242);}async function _0x40885b(){await _0x3ff0ef,_0x48a3c0[_0x2dbdeb([0x6d,0x6f,0x64,0x65,0x6c])][_0x2dbdeb([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x20f44e,_0x48a3c0[_0x2dbdeb([0x6d,0x6f,0x64,0x65,0x6c])][_0x2dbdeb([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x20f44e,_0x48a3c0[_0x2dbdeb([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x2dbdeb([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x40474d(_0x2d6c8e){const _0x3dc709=_0x2f9dcf();_0x48a3c0[_0x3dc709]=_0x2dbdeb([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x2d6c8e,_0x2d6c8e!=_0x2dbdeb([0x56,0x61,0x6c,0x69,0x64])&&_0x40885b();}function _0x2f9dcf(){const _0x129266=window[_0x2dbdeb([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x2dbdeb([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x2dbdeb([0x6e,0x6f,0x77])]())[_0x2dbdeb([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x2dbdeb([0x2e]),'');let _0x5415e6=_0x2dbdeb([0x68]);for(let _0x3b6baa=0x0;_0x3b6baa<_0x129266[_0x2dbdeb([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3b6baa+=0x2){let _0x2ee73a=window[_0x2dbdeb([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x129266[_0x2dbdeb([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3b6baa,_0x3b6baa+0x2));_0x2ee73a>=_0x49c745[_0x2dbdeb([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x2ee73a-=_0x49c745[_0x2dbdeb([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x5415e6+=_0x49c745[_0x2ee73a];}return _0x5415e6;}function _0x5494d7(){const _0x592305=_0x2b744e[_0x2dbdeb([0x73,0x70,0x6c,0x69,0x74])](_0x2dbdeb([0x2e]));if(0x3!=_0x592305[_0x2dbdeb([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x5313fc(_0x592305[0x1]);function _0x5313fc(_0x25e114){const _0x4f14db=_0x54f9f7(_0x25e114);return _0x4f14db&&_0x39fbeb()?_0x4f14db:null;function _0x39fbeb(){const _0x285401=_0x4f14db[_0x2dbdeb([0x6a,0x74,0x69])],_0x4ff788=window[_0x2dbdeb([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x285401[_0x2dbdeb([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x285401[_0x2dbdeb([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x1f723e={..._0x4f14db,[_0x2dbdeb([0x6a,0x74,0x69])]:_0x285401[_0x2dbdeb([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x285401[_0x2dbdeb([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x1f723e[_0x2dbdeb([0x76,0x63])],_0x39b6a4(_0x1f723e)==_0x4ff788;}}}async function _0x269fe1(){let _0x1a03bc=!0x0;try{const _0x35c79f=_0x2b744e[_0x2dbdeb([0x73,0x70,0x6c,0x69,0x74])](_0x2dbdeb([0x2e])),[_0x499563,_0x1148bd,_0x575226]=_0x35c79f;return _0xd65154(_0x499563),await _0x138c6d(_0x499563,_0x1148bd,_0x575226),_0x1a03bc;}catch{return!0x1;}function _0xd65154(_0x13ec1a){const _0x2c7e02=_0x54f9f7(_0x13ec1a);_0x2c7e02&&_0x2c7e02[_0x2dbdeb([0x61,0x6c,0x67])]==_0x2dbdeb([0x45,0x53,0x32,0x35,0x36])||(_0x1a03bc=!0x1);}async function _0x138c6d(_0x124424,_0x3e0046,_0x23acc0){const _0x3e5bd9=window[_0x2dbdeb([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x2dbdeb([0x66,0x72,0x6f,0x6d])](_0x3dd178(_0x23acc0),_0x2db057=>_0x2db057[_0x2dbdeb([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x559e18=new window[(_0x2dbdeb([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x2dbdeb([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x124424+_0x2dbdeb([0x2e])+_0x3e0046),_0x3680ea=window[_0x2dbdeb([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x2dbdeb([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x3680ea)return;const _0x258e4d=await _0x3680ea[_0x2dbdeb([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x2dbdeb([0x6a,0x77,0x6b]),_0x351da4,{[_0x2dbdeb([0x6e,0x61,0x6d,0x65])]:_0x2dbdeb([0x45,0x43,0x44,0x53,0x41]),[_0x2dbdeb([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x2dbdeb([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x2dbdeb([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x3680ea[_0x2dbdeb([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x2dbdeb([0x6e,0x61,0x6d,0x65])]:_0x2dbdeb([0x45,0x43,0x44,0x53,0x41]),[_0x2dbdeb([0x68,0x61,0x73,0x68])]:{[_0x2dbdeb([0x6e,0x61,0x6d,0x65])]:_0x2dbdeb([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x258e4d,_0x3e5bd9,_0x559e18)||(_0x1a03bc=!0x1);}}function _0x54f9f7(_0x4d6729){return _0x4d6729[_0x2dbdeb([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x2dbdeb([0x65,0x79]))?JSON[_0x2dbdeb([0x70,0x61,0x72,0x73,0x65])](_0x3dd178(_0x4d6729)):null;}function _0x3dd178(_0x5831bf){return window[_0x2dbdeb([0x61,0x74,0x6f,0x62])](_0x5831bf[_0x2dbdeb([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x2dbdeb([0x2b]))[_0x2dbdeb([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x2dbdeb([0x2f])));}function _0x39b6a4(_0xc957b0){let _0x1e5f3e=0x1505;function _0x2b8563(_0x507ce0){for(let _0x2064cd=0x0;_0x2064cd<_0x507ce0[_0x2dbdeb([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2064cd++){const _0x5b3809=_0x507ce0[_0x2dbdeb([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x2064cd);_0x1e5f3e=(_0x1e5f3e<<0x5)+_0x1e5f3e+_0x5b3809,_0x1e5f3e&=_0x1e5f3e;}}function _0x108a36(_0x265302){Array[_0x2dbdeb([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x265302)?_0x265302[_0x2dbdeb([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x108a36):_0x265302&&typeof _0x265302==_0x2dbdeb([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x2dbdeb([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x265302)[_0x2dbdeb([0x73,0x6f,0x72,0x74])]()[_0x2dbdeb([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x411047,_0x421012])=>{_0x2b8563(_0x411047),_0x108a36(_0x421012);}):_0x2b8563(window[_0x2dbdeb([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x265302));}return _0x108a36(_0xc957b0),_0x1e5f3e>>>0x0;}function _0x4a004e(_0x1611e0){return _0x1611e0[_0x2dbdeb([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x2dbdeb([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x2dbdeb([0x30]));}function _0x530de6(_0x5605fe){return _0x5605fe[_0x2dbdeb([0x73,0x70,0x6c,0x69,0x74])]('')[_0x2dbdeb([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x2dbdeb([0x6a,0x6f,0x69,0x6e])]('');}function _0x20f44e(){}function _0x2dbdeb(_0x3f56a1){return _0x3f56a1['map'](_0x542535=>String['fromCharCode'](_0x542535))['join']('');}_0x40474d(await _0x54c182());}(this);}['_initSchema'](){const _0x177891=this['editor']['model']['schema'];_0x177891['isRegistered']('imageBlock')&&_0x177891['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x177891['isRegistered']('imageInline')&&_0x177891['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x350b12=this['editor'];_0x350b12['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x350b12['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x185483=>_0x185483['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x2fabad=_0x350b12['commands']['get']('replaceImageSource');_0x2fabad&&this['listenTo'](_0x2fabad,'cleanupImage',(_0x3d3907,[_0x946cc2,_0x4a18b5])=>{_0x946cc2['removeAttribute']('uploadcareImageId',_0x4a18b5);});}['_initConfig'](){const _0x110b99=this['editor']['config']['get']('uploadcare.uploader')||{},_0x31755b=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x51e8e3(_0x3b421d['document'],'uc-config',{..._0x110b99,'pubkey':_0x31755b,'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']=_0x28c19a=>{if('closeMax'==_0x28c19a)return'#uc-icon-arrow-down';},_0x3b421d['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x51e8e3(_0x3b421d['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader-'+this['ucContextId']}),_0x3b421d['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x121c08=this['editor']['commands']['get']('insertImage');_0x121c08&&this['listenTo'](_0x121c08,'execute',()=>{const _0x1a8bd4=this['editor']['model']['document']['selection']['getSelectedElement']();_0x1a8bd4&&_0x1a8bd4['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x1a8bd4);});});const _0x7b2c49=this['editor']['commands']['get']('uploadcareImageReplace');_0x7b2c49&&this['listenTo'](_0x7b2c49,'execute',()=>{const _0x3349ed=this['editor']['model']['document']['selection']['getSelectedElement']();_0x3349ed&&_0x3349ed['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x3349ed);});});}}class tt extends _0x5e5b75{static get['requires'](){return[o,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x1e2b13){super(_0x1e2b13),_0x1e2b13['config']['define']('uploadcare.uploader.sourceList',[i['Local'],i['URL']]),_0x4bf5a8['defineComponents'](_0x4bf5a8),this['_defineLocale']();}['_defineLocale'](){const _0x301209=this['editor']['config']['get']('uploadcare.locale'),_0x2ef21f=this['editor']['locale']['contentLanguage'];_0x301209&&_0x4bf5a8['defineLocale'](_0x2ef21f,_0x301209);}}class ii extends _0x4e29b2{constructor(_0x48eca8){super(_0x48eca8);const t=_0x48eca8['t'],_0xf38b6e=this['bindTemplate'],_0x45934b=new _0x3f513c();_0x45934b['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':[_0x45934b,{'text':_0xf38b6e['to']('imageUploadProgress',_0x44efd0=>t('Loading\x20image...')+'\x20('+(_0x44efd0||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 _0x4e29b2{constructor(_0x27eb43){super(_0x27eb43);const t=_0x27eb43['t'];this['set']('errorType',null);const _0x382074=new _0x2fdd6d(_0x27eb43);_0x382074['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x382074['withText']=!0x0,_0x382074['class']='ck-button-action',_0x382074['on']('execute',()=>{this['fire']('retry');}),_0x382074['bind']('isVisible')['to'](this,'errorType',_0x4e8994=>'NotFound'!==_0x4e8994);const _0x12f04e=new _0x270023();_0x12f04e['content']=_0x29e476,_0x12f04e['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x56f755=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':[_0x12f04e,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x56f755['to']('errorType',_0x2d527d=>t('NotFound'!==_0x2d527d?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x382074]},{'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 _0x4e29b2{constructor(_0x54f414,_0x13db58){super(_0x54f414);const _0x591f25=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x13db58,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x591f25['to']('imageSrc')}});}}class X extends F{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x4e0273,_0x4b99ce,_0x8a7d88){super(_0x4e0273),this['_items']=this['createCollection'](),this['_loadingView']=new ii(_0x4e0273),this['_errorView']=new ti(_0x4e0273),this['_editingView']=new ei(_0x4e0273,_0x8a7d88),this['_focusableView']=new _0x4e29b2(_0x4e0273),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x4b99ce),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'],_0x3f1e4c=>{this['_addUploadcareImageEditorListeners'](_0x3f1e4c);});}),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'](_0x33ea75,_0x1e5cee){const _0x44cacd='uc-cloud-image-editor',_0x18e9fb=_0x33ea75['querySelector'](_0x44cacd);if(_0x18e9fb)return _0x1e5cee(_0x18e9fb);const _0x4c2269=new MutationObserver(_0x25b7ea=>{const _0x37278c=_0x25b7ea['filter'](_0x49ee4e=>_0x49ee4e['target']===_0x33ea75&&_0x49ee4e['addedNodes']['length']>0x0&&_0x49ee4e['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x44cacd);_0x37278c['length']&&(_0x4c2269['disconnect'](),_0x1e5cee(_0x37278c[0x0]['addedNodes'][0x0]));});_0x4c2269['observe'](_0x33ea75,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x41d25a){_0x41d25a['addEventListener']('apply',_0x5bac27=>{this['fire']('apply',{'imageSrc':_0x5bac27['detail']['cdnUrl']});}),_0x41d25a['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class N extends/* #__PURE__ -- @preserve */
25
+ _0x3d34e2(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x340b4f,_0x33b8af,_0x4a1a97){super(),this['_editor']=_0x340b4f,this['_dialog']=_0x33b8af,this['_imageElement']=_0x4a1a97,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 _0x46794e=this['_imageElement'],_0x5a5c66=_0x46794e['getAttribute']('uploadcareImageId'),_0x18cf4e=_0x46794e['getAttribute']('src');if(_0x5a5c66)await this['_loadImageInfo'](_0x5a5c66,_0x18cf4e);else{if(this['_imageCache']['has'](_0x18cf4e)){const _0x1eda9c=this['_imageCache']['get'](_0x18cf4e);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x1eda9c['url'],this['imageDimension']=_0x1eda9c['dimension'],this['imageId']=_0x1eda9c['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x402174}=this['_editor'],t=_0x402174['t'],_0x3aae36=new X(_0x402174,this['imageStatus'],this['_attributes']);_0x3aae36['bind']('status')['to'](this,'imageStatus'),_0x3aae36['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x3aae36['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x3aae36['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x3aae36,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x3a6507,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x3aae36,'position':_0x5965e9['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x3aae36['focus']();},'onHide':()=>{_0x3aae36['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x2bf158=>!A(_0x2bf158,_0x3aae36['element'])}});}['_loadImageInfo'](_0x26232c,_0x4ff4d3){return j['getInfo'](_0x26232c,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl')})['then'](_0x35f498=>{const {width:_0x23f849,height:_0x2bad25}=_0x35f498['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x4ff4d3,this['imageDimension']={'width':_0x23f849,'height':_0x2bad25},this['imageId']=_0x26232c;})['catch'](_0x19df4f=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x19df4f['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x431d5e,_0x355c0b){return this['_getImageAsFile'](_0x431d5e)['then'](_0x339f3e=>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':_0x355c0b['signal'],'file':_0x339f3e,'onProgress':_0x18c61a=>{_0x18c61a&&_0x18c61a['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x18c61a['value']));}}))['then'](_0x55da5e=>{const {width:_0x3b8c4e,height:_0x271fa2}=_0x55da5e['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x55da5e['cdnUrl'],this['imageDimension']={'width':_0x3b8c4e,'height':_0x271fa2},this['imageId']=_0x55da5e['uuid'],this['imageUploadProgress']=null;const _0x5e95ed=_0x431d5e['getAttribute']('src');this['_imageCache']['set'](_0x5e95ed,{'id':_0x55da5e['uuid'],'url':_0x55da5e['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x592735=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x592735['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x3ba7f2,_0x106c0d){_0x3ba7f2['on']('apply',(_0x3f7c03,_0x3538e3)=>{this['_replaceImage'](_0x106c0d,_0x3538e3['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x3ba7f2['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x3ba7f2['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x30cac7,_0x38cca9,_0x342437){const _0x1fbf43=this['_editor'],{width:_0x32314a,height:_0x173d90}=S(_0x38cca9,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x4ca542,imageSources:_0x56df11}=C(_0x38cca9,_0x32314a);_0x1fbf43['model']['change'](_0x287fe0=>{if('$graveyard'===_0x30cac7['root']['rootName']){_0x1fbf43['execute']('insertImage',{'imageType':_0x30cac7['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x30cac7['getAttributes']()),'uploadcareImageId':_0x342437,'src':_0x4ca542,'sources':_0x56df11,'width':_0x32314a,'height':_0x173d90}});const _0x1af68a=_0x30cac7['getChildren']();_0x30cac7=_0x1fbf43['model']['document']['selection']['getSelectedElement']();for(const _0x4b5785 of _0x1af68a)_0x287fe0['append'](_0x287fe0['cloneElement'](_0x4b5785),_0x30cac7);}else _0x287fe0['setSelection'](_0x30cac7,'on'),_0x1fbf43['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x30cac7['getAttributes']()),'uploadcareImageId':_0x342437,'src':_0x4ca542,'sources':_0x56df11,'width':_0x32314a,'height':_0x173d90},_0x30cac7);_0x287fe0['setSelection'](_0x30cac7,'on');});}async['_getImageAsFile'](_0x2d6219){const _0x5a5604=_0x3b421d['window'],_0x402572=_0x3b421d['document']['location']['href'],_0x27e38f=new _0x5a5604['URL'](_0x2d6219['getAttribute']('src'),_0x402572);if('data:'===_0x27e38f['protocol']){const _0x1d9356=_0x27e38f['href']['split'](','),_0x3944b8=_0x1d9356[0x0]['match'](/:(.*?);/)[0x1],_0x406cce=_0x3944b8['split']('/')[0x1],_0x5010b7=_0x5a5604['atob'](_0x1d9356[_0x1d9356['length']-0x1]);let _0x5a40e4=_0x5010b7['length'];const _0x350c63=new _0x5a5604['Uint8Array'](_0x5a40e4);for(;_0x5a40e4--;)_0x350c63[_0x5a40e4]=_0x5010b7['charCodeAt'](_0x5a40e4);return new _0x5a5604['File']([_0x350c63],'image.'+_0x406cce,{'type':_0x3944b8});}const _0x1e03cd=_0x27e38f['href']['split']('/'),_0x4cbc59=_0x1e03cd[_0x1e03cd['length']-0x1],_0x4834f2=_0x4cbc59['split']('.')[0x1];return _0x5a5604['fetch'](_0x27e38f['href'])['then'](_0x2a58c4=>_0x2a58c4['clone']()['blob']())['then'](_0x5911cb=>new _0x5a5604['File']([_0x5911cb],_0x4cbc59,{'type':'image/'+_0x4834f2}));}}class Q extends _0x5b5250{['imageEditController'];static get['requires'](){return[_0x4f93e4];}['_isEditable'];constructor(_0x106a42){super(_0x106a42),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x139a3a){const _0x9f6516=z(_0x139a3a);return _0x3aa791=>!(!_0x3aa791||!_0x3aa791['is']('element','imageBlock')&&!_0x3aa791['is']('element','imageInline'))&&(!!_0x3aa791['hasAttribute']('uploadcareImageId')||!!_0x3aa791['hasAttribute']('src')&&_0x9f6516(_0x3aa791['getAttribute']('src')));}(_0x106a42['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x133823=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x133823);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x5632a3=this['editor']['model']['document']['selection']['getSelectedElement']();_0x5632a3&&(_0x5632a3['is']('element','imageBlock')||_0x5632a3['is']('element','imageInline'))&&(this['imageEditController']=new N(this['editor'],this['editor']['plugins']['get'](_0x4f93e4),_0x5632a3),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class V extends _0x5b5250{['refresh'](){const _0x42d60f=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x42d60f&&(_0x42d60f['is']('element','imageBlock')||_0x42d60f['is']('element','imageInline')));}['execute'](_0x2c519d){const _0x5a6c55=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x551fe5=>{_0x551fe5['setAttributes'](_0x2c519d,_0x5a6c55),_0x551fe5['removeAttribute']('srcset',_0x5a6c55),_0x551fe5['removeAttribute']('sizes',_0x5a6c55);});}}class m extends _0x5e5b75{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[o,_0x51acdf,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x42bf69}=this;_0x42bf69['commands']['add']('uploadcareImageEdit',new Q(_0x42bf69)),_0x42bf69['commands']['add']('uploadcareImageReplace',new V(_0x42bf69));}}class g extends _0x5e5b75{['_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 _0x545d02=this['editor'];_0x545d02['ui']['componentFactory']['add']('uploadcareImageEdit',_0x35596d=>{const _0x3b9b16=_0x545d02['commands']['get']('uploadcareImageEdit'),_0x241b7e=new _0x2fdd6d(_0x35596d),t=_0x35596d['t'];return _0x241b7e['set']({'icon':_0x3a6507,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x241b7e['bind']('isEnabled')['to'](_0x3b9b16),_0x241b7e['bind']('isOn')['to'](_0x3b9b16,'isActive'),this['listenTo'](_0x241b7e,'execute',()=>{_0x545d02['execute']('uploadcareImageEdit'),_0x545d02['editing']['view']['focus']();}),_0x241b7e;}),this['_initConfig']();}['_initConfig'](){const _0x1f04f8=_0x51e8e3(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x1f04f8),this['listenTo'](this['editor'],'destroy',()=>{_0x1f04f8['remove']();});}}class et extends _0x5e5b75{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": "47.4.0-alpha.3",
3
+ "version": "47.4.0-alpha.4",
4
4
  "description": "Uploadcare feature for CKEditor 5.",
5
5
  "license": "SEE LICENSE IN LICENSE.md",
6
6
  "author": "CKSource (http://cksource.com/)",
@@ -23,14 +23,14 @@
23
23
  "framework"
24
24
  ],
25
25
  "dependencies": {
26
- "@ckeditor/ckeditor5-core": "47.4.0-alpha.3",
27
- "@ckeditor/ckeditor5-icons": "47.4.0-alpha.3",
28
- "@ckeditor/ckeditor5-image": "47.4.0-alpha.3",
29
- "@ckeditor/ckeditor5-theme-lark": "47.4.0-alpha.3",
30
- "@ckeditor/ckeditor5-ui": "47.4.0-alpha.3",
31
- "@ckeditor/ckeditor5-upload": "47.4.0-alpha.3",
32
- "@ckeditor/ckeditor5-utils": "47.4.0-alpha.3",
33
- "ckeditor5": "47.4.0-alpha.3",
26
+ "@ckeditor/ckeditor5-core": "47.4.0-alpha.4",
27
+ "@ckeditor/ckeditor5-icons": "47.4.0-alpha.4",
28
+ "@ckeditor/ckeditor5-image": "47.4.0-alpha.4",
29
+ "@ckeditor/ckeditor5-theme-lark": "47.4.0-alpha.4",
30
+ "@ckeditor/ckeditor5-ui": "47.4.0-alpha.4",
31
+ "@ckeditor/ckeditor5-upload": "47.4.0-alpha.4",
32
+ "@ckeditor/ckeditor5-utils": "47.4.0-alpha.4",
33
+ "ckeditor5": "47.4.0-alpha.4",
34
34
  "@uploadcare/file-uploader": "1.24.5",
35
35
  "@uploadcare/upload-client": "6.14.3"
36
36
  },
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0xc14627=_0x54ab;(function(_0xd87a85,_0x57926e){const _0x2d9b25=_0x54ab,_0x3ae0d=_0xd87a85();while(!![]){try{const _0xec3af0=-parseInt(_0x2d9b25(0x1f1))/0x1+parseInt(_0x2d9b25(0x1c7))/0x2+parseInt(_0x2d9b25(0x1d6))/0x3*(-parseInt(_0x2d9b25(0x1eb))/0x4)+-parseInt(_0x2d9b25(0x1fc))/0x5+parseInt(_0x2d9b25(0x203))/0x6+parseInt(_0x2d9b25(0x201))/0x7+parseInt(_0x2d9b25(0x1d1))/0x8*(-parseInt(_0x2d9b25(0x1e9))/0x9);if(_0xec3af0===_0x57926e)break;else _0x3ae0d['push'](_0x3ae0d['shift']());}catch(_0x36cfc0){_0x3ae0d['push'](_0x3ae0d['shift']());}}}(_0x1767,0xe1350));import{Plugin as _0x293eff}from'ckeditor5/src/core.js';import{Dialog as _0x293a03}from'ckeditor5/src/ui.js';import{createElement as _0x19f09a,global as _0x26496c,uid as _0x1b7072}from'ckeditor5/src/utils.js';function _0x1767(){const _0x36ff77=['_initConfig','uc-config','1093219PiGKHz','_configElement','href','iconHrefResolver','body','uploadcare','isOfficialPlugin','input[uploadcare-file-input]','for','render','getSelectedElement','2958220zFjqrP','\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','imageBlock','replaceImageSource','querySelector','5431790JWzuJc','extend','5964132ccOJWi','uploader-','listenTo','document','appendChild','_ctxElement','upcast','once','config','_initCtx','closeMax','model','PictureEditing','true','downcast','fromCharCode','pluginName','removeAttribute','isPremiumPlugin','_initImageProcessingIndicator','editor','data-uc-image-id','commands','UploadcareEditing','2887132WTWhVS','uploadcare.uploader','add','destroy','insertImage','requires','elementToAttribute','isRegistered','_initConversion','_initSchema','208448nzPFrL','ucContextId','uploadcareImageReplace','locale','imageInline','10947gVDmFT','map','uploadcare.pubkey','schema','ctxElement','remove','afterInit','getAttribute','selection','attributeToAttribute','conversion','editing','contentLanguage','view','execute','#uc-icon-arrow-down','uploadcareImageId','init','cleanupImage','9ZWMtpv','uc-upload-ctx-provider','636TALdtS','get','configElement','join'];_0x1767=function(){return _0x36ff77;};return _0x1767();}function _0x54ab(_0xcee219,_0x1303a0){const _0x176798=_0x1767();return _0x54ab=function(_0x54ab4e,_0x5195d3){_0x54ab4e=_0x54ab4e-0x1bc;let _0x388dbb=_0x176798[_0x54ab4e];return _0x388dbb;},_0x54ab(_0xcee219,_0x1303a0);}import{UploadcareCommand as _0x3490d6}from'./uploadcarecommand.js';import{UploadcareUploadAdapter as _0x3a6358}from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0xa1f7a}from'./utils/editingutils.js';export class UploadcareEditing extends _0x293eff{[_0xc14627(0x1f2)]=null;[_0xc14627(0x208)]=null;static get[_0xc14627(0x1bf)](){const _0x5ce517=_0xc14627;return _0x5ce517(0x1c6);}static get[_0xc14627(0x1cc)](){const _0x4a3c8e=_0xc14627;return[_0x4a3c8e(0x20f),_0x3a6358,_0x293a03];}static get[_0xc14627(0x1f7)](){return!0x0;}static get[_0xc14627(0x1c1)](){return!0x0;}[_0xc14627(0x1d2)];get[_0xc14627(0x1ed)](){const _0x55526a=_0xc14627;return this[_0x55526a(0x1f2)];}get[_0xc14627(0x1da)](){const _0x297e82=_0xc14627;return this[_0x297e82(0x208)];}constructor(_0x6723ba){const _0x49825e=_0xc14627;super(_0x6723ba),this[_0x49825e(0x1d2)]=_0x1b7072();}[_0xc14627(0x1e7)](){const _0x3808ee=_0xc14627,_0x5d34f5=this[_0x3808ee(0x1c3)];_0x5d34f5[_0x3808ee(0x1c5)][_0x3808ee(0x1c9)](_0x3808ee(0x1f6),new _0x3490d6(_0x5d34f5));}[_0xc14627(0x1dc)](){const _0x38e4cc=_0xc14627;this[_0x38e4cc(0x1d0)](),this[_0x38e4cc(0x1cf)](),this[_0x38e4cc(0x1ef)](),this[_0x38e4cc(0x20c)](),this[_0x38e4cc(0x1c2)](),this[_0x38e4cc(0x205)](this[_0x38e4cc(0x1c3)],_0x38e4cc(0x1ca),()=>{const _0x58a2af=_0x38e4cc;this[_0x58a2af(0x1f2)]&&(this[_0x58a2af(0x1f2)][_0x58a2af(0x1db)](),this[_0x58a2af(0x1f2)]=null),this[_0x58a2af(0x208)]&&(this[_0x58a2af(0x208)][_0x58a2af(0x1db)](),this[_0x58a2af(0x208)]=null);const _0x2349d0=_0x26496c[_0x58a2af(0x206)][_0x58a2af(0x200)](_0x58a2af(0x1f8));_0x2349d0&&_0x2349d0[_0x58a2af(0x1db)]();}),async function(_0x46ca24){const _0x44dbbd=_0x46a931([0x68,0x67,0x50,0x36,0x38,0x70,0x71,0x63,0x37,0x4f,0x42,0x4a,0x78,0x39,0x75,0x33,0x7a,0x72,0x48,0x61,0x74,0x59,0x55,0x58,0x66,0x30,0x34,0x54,0x64,0x56,0x6b,0x4d,0x46,0x6d,0x77,0x43,0x73,0x35,0x53,0x44,0x41,0x76,0x6a,0x32,0x31,0x69,0x57,0x51,0x47,0x65,0x5a,0x4b,0x4c,0x79,0x52,0x6c,0x45,0x4e,0x6e,0x6f,0x49,0x62]),_0x56a1b1=0x535f8c3a,_0x3bf46f=0x5358f2ba^_0x56a1b1,_0x714355=window[_0x46a931([0x44,0x61,0x74,0x65])][_0x46a931([0x6e,0x6f,0x77])](),_0x318eea=_0x46ca24[_0x46a931([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x2b6037=new window[(_0x46a931([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3e673d=>{_0x318eea[_0x46a931([0x6f,0x6e,0x63,0x65])](_0x46a931([0x72,0x65,0x61,0x64,0x79]),_0x3e673d);}),_0x3e39e5={[_0x46a931([0x6b,0x74,0x79])]:_0x46a931([0x45,0x43]),[_0x46a931([0x75,0x73,0x65])]:_0x46a931([0x73,0x69,0x67]),[_0x46a931([0x63,0x72,0x76])]:_0x46a931([0x50,0x2d,0x32,0x35,0x36]),[_0x46a931([0x78])]:_0x46a931([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]),[_0x46a931([0x79])]:_0x46a931([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]),[_0x46a931([0x61,0x6c,0x67])]:_0x46a931([0x45,0x53,0x32,0x35,0x36])},_0x48f07c=_0x318eea[_0x46a931([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x46a931([0x67,0x65,0x74])](_0x46a931([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x3bcb2f(){let _0x14b050,_0x1e1f1c=null,_0x32a788=null;try{if(_0x48f07c==_0x46a931([0x47,0x50,0x4c]))return _0x46a931([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x14b050=_0x1abfd3(),!_0x14b050)return _0x46a931([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x14b050[_0x46a931([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x32a788=_0x424fef(_0x14b050[_0x46a931([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x14b050[_0x46a931([0x6a,0x74,0x69])])),await _0xc21085()?_0x4abfa3()?_0x1e8f3b()?_0x46a931([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x11b85c()?(_0x14b050[_0x46a931([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x46a931([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x1e1f1c=_0x11c381(_0x46a931([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x137503()):_0x46a931([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x46a931([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x46a931([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x46a931([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x1e8f3b(){const _0xa52117=[_0x46a931([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x46a931([0x74,0x72,0x69,0x61,0x6c])][_0x46a931([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x14b050[_0x46a931([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x714355/0x3e8:0xe10*_0x3bf46f;return _0x14b050[_0x46a931([0x65,0x78,0x70])]<_0xa52117;}function _0x4abfa3(){const _0x423579=_0x14b050[_0x46a931([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x423579&&(!!_0x423579[_0x46a931([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x46a931([0x2a]))||!!_0x423579[_0x46a931([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x46a931([0x55,0x50,0x4c,0x43])));}function _0x11b85c(){const _0x2dc33b=_0x54ab,_0x36c566=_0x14b050[_0x46a931([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x36c566||0x0==_0x36c566[_0x46a931([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x49a54a}=new URL(window[_0x46a931([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x2dc33b(0x1f3)]);if(_0x36c566[_0x46a931([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x49a54a))return!0x0;const _0x25cd52=_0x49a54a[_0x46a931([0x73,0x70,0x6c,0x69,0x74])](_0x46a931([0x2e]));return _0x36c566[_0x46a931([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x146840=>_0x146840[_0x46a931([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x46a931([0x2a])))[_0x46a931([0x6d,0x61,0x70])](_0x134f41=>_0x134f41[_0x46a931([0x73,0x70,0x6c,0x69,0x74])](_0x46a931([0x2e])))[_0x46a931([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x4e7810=>_0x4e7810[_0x46a931([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x25cd52[_0x46a931([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x46a931([0x6d,0x61,0x70])](_0x27dd46=>Array(_0x25cd52[_0x46a931([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x27dd46[_0x46a931([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x46a931([0x66,0x69,0x6c,0x6c])](_0x27dd46[0x0]===_0x46a931([0x2a])?_0x46a931([0x2a]):'')[_0x46a931([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x27dd46))[_0x46a931([0x73,0x6f,0x6d,0x65])](_0x3f0db0=>_0x25cd52[_0x46a931([0x65,0x76,0x65,0x72,0x79])]((_0x2f4013,_0x4c0458)=>_0x3f0db0[_0x4c0458]===_0x2f4013||_0x3f0db0[_0x4c0458]===_0x46a931([0x2a])));}function _0x137503(){return _0x1e1f1c&&_0x32a788?new window[(_0x46a931([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4b637f,_0xe9c2a4)=>{_0x1e1f1c[_0x46a931([0x74,0x68,0x65,0x6e])](_0x4b637f,_0xe9c2a4),_0x32a788[_0x46a931([0x74,0x68,0x65,0x6e])](_0x299e1c=>{_0x299e1c!=_0x46a931([0x56,0x61,0x6c,0x69,0x64])&&_0x4b637f(_0x299e1c);},_0xe9c2a4);}):_0x1e1f1c||_0x32a788||_0x46a931([0x56,0x61,0x6c,0x69,0x64]);}}function _0x424fef(_0x169847,_0x329aee){return new window[(_0x46a931([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1e3d0e=>{if(_0x3c7e08())return _0x1e3d0e(_0x46a931([0x56,0x61,0x6c,0x69,0x64]));_0x4dcc73(),_0x318eea[_0x46a931([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x46a931([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x39d9a6=!0x1;const _0xaf9aa9=_0x1b7072();function _0x31dc92(_0x3ea20c){return!!_0x3ea20c&&(typeof _0x3ea20c===_0x46a931([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x3ea20c===_0x46a931([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x3ea20c[_0x46a931([0x74,0x68,0x65,0x6e])]===_0x46a931([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x3ea20c[_0x46a931([0x63,0x61,0x74,0x63,0x68])]===_0x46a931([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x1a3905(_0x8eb8d3){_0x1d9f5d(_0x8eb8d3)[_0x46a931([0x74,0x68,0x65,0x6e])](_0x188ea2=>{if(!_0x188ea2||_0x188ea2[_0x46a931([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x46a931([0x6f,0x6b]))return _0x46a931([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x315483(_0x3396b6(_0xaf9aa9+_0x329aee))!=_0x188ea2[_0x46a931([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x46a931([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x46a931([0x56,0x61,0x6c,0x69,0x64]);})[_0x46a931([0x74,0x68,0x65,0x6e])](_0x31813c=>(_0x2d7b91(),_0x31813c),()=>{const _0x56fc79=_0xafdb83();return null==_0x56fc79?(_0x2d7b91(),_0x46a931([0x56,0x61,0x6c,0x69,0x64])):_0x46a931(_0x714355-_0x56fc79>(0x7753083a^_0x56a1b1)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x46a931([0x74,0x68,0x65,0x6e])](_0x1e3d0e)[_0x46a931([0x63,0x61,0x74,0x63,0x68])](()=>{_0x1e3d0e(_0x46a931([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x9a552c=0x536962ba^_0x56a1b1;function _0x2d7b91(){const _0x2c724c=_0x46a931([0x6c,0x6c,0x63,0x74,0x2d])+_0x315483(_0x3396b6(_0x169847)),_0x4d03be=_0x121350(_0x315483(window[_0x46a931([0x4d,0x61,0x74,0x68])][_0x46a931([0x63,0x65,0x69,0x6c])](_0x714355/_0x9a552c)));window[_0x46a931([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x46a931([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2c724c,_0x4d03be);}function _0xafdb83(){const _0xfe29=_0x46a931([0x6c,0x6c,0x63,0x74,0x2d])+_0x315483(_0x3396b6(_0x169847)),_0x268c5c=window[_0x46a931([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x46a931([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0xfe29);return _0x268c5c?window[_0x46a931([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x121350(_0x268c5c),0x10)*_0x9a552c:null;}function _0x1d9f5d(_0x317321){return new window[(_0x46a931([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0xfdff0,_0x317695)=>{_0x317321[_0x46a931([0x74,0x68,0x65,0x6e])](_0xfdff0,_0x317695),window[_0x46a931([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x317695,0x535e58fa^_0x56a1b1);});}}_0x318eea[_0x46a931([0x6f,0x6e])](_0x46a931([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x49f73d,_0x35683c)=>{if(_0x35683c[0x0]!=_0x169847)return _0x1e3d0e(_0x46a931([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x35683c[0x1]={..._0x35683c[0x1],[_0x46a931([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0xaf9aa9};},{[_0x46a931([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x46a931([0x68,0x69,0x67,0x68])}),_0x318eea[_0x46a931([0x6f,0x6e])](_0x46a931([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x1866ee=>{_0x31dc92(_0x1866ee[_0x46a931([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x39d9a6=!0x0,_0x1a3905(_0x1866ee[_0x46a931([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x46a931([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x46a931([0x6c,0x6f,0x77])}),_0x2b6037[_0x46a931([0x74,0x68,0x65,0x6e])](()=>{_0x39d9a6||_0x1e3d0e(_0x46a931([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x3c7e08(){return _0x318eea[_0x46a931([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x46a931([0x76,0x69,0x65,0x77])][_0x46a931([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x46a931([0x61,0x75,0x74,0x6f]);}function _0x4dcc73(){_0x318eea[_0x46a931([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x46a931([0x76,0x69,0x65,0x77])][_0x46a931([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x46a931([0x61,0x75,0x74,0x6f]);}}function _0x11c381(_0x2bafff){const _0x4ea52a=[new window[(_0x46a931([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2ccbcb=>setTimeout(_0x2ccbcb,0x5356b2f6^_0x56a1b1)),_0x2b6037[_0x46a931([0x74,0x68,0x65,0x6e])](()=>new window[(_0x46a931([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x40d78e=>{let _0x3fd669=0x0;_0x318eea[_0x46a931([0x6d,0x6f,0x64,0x65,0x6c])][_0x46a931([0x6f,0x6e])](_0x46a931([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x461a28,_0x5b7bc8)=>{_0x5b7bc8[0x0][_0x46a931([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x3fd669++,_0x3fd669==(0x535f89d2^_0x56a1b1)&&(_0x40d78e(),_0x461a28[_0x46a931([0x6f,0x66,0x66])]());});}))];return window[_0x46a931([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x46a931([0x72,0x61,0x63,0x65])](_0x4ea52a)[_0x46a931([0x74,0x68,0x65,0x6e])](()=>_0x2bafff);}async function _0x455cdd(){await _0x2b6037,_0x318eea[_0x46a931([0x6d,0x6f,0x64,0x65,0x6c])][_0x46a931([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x1263a7,_0x318eea[_0x46a931([0x6d,0x6f,0x64,0x65,0x6c])][_0x46a931([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x1263a7,_0x318eea[_0x46a931([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x46a931([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x4c6493(_0x1c08cc){const _0xabf5db=_0x4e1ebe();_0x318eea[_0xabf5db]=_0x46a931([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x1c08cc,_0x1c08cc!=_0x46a931([0x56,0x61,0x6c,0x69,0x64])&&_0x455cdd();}function _0x4e1ebe(){const _0x103f1c=window[_0x46a931([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x46a931([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x46a931([0x6e,0x6f,0x77])]())[_0x46a931([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x46a931([0x2e]),'');let _0x4a6a62=_0x46a931([0x68]);for(let _0x26eaf2=0x0;_0x26eaf2<_0x103f1c[_0x46a931([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x26eaf2+=0x2){let _0x47de22=window[_0x46a931([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x103f1c[_0x46a931([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x26eaf2,_0x26eaf2+0x2));_0x47de22>=_0x44dbbd[_0x46a931([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x47de22-=_0x44dbbd[_0x46a931([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x4a6a62+=_0x44dbbd[_0x47de22];}return _0x4a6a62;}function _0x1abfd3(){const _0x504ed3=_0x48f07c[_0x46a931([0x73,0x70,0x6c,0x69,0x74])](_0x46a931([0x2e]));if(0x3!=_0x504ed3[_0x46a931([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x223859(_0x504ed3[0x1]);function _0x223859(_0x1fcd6f){const _0x2c4df0=_0x2da138(_0x1fcd6f);return _0x2c4df0&&_0x123902()?_0x2c4df0:null;function _0x123902(){const _0x33cca2=_0x2c4df0[_0x46a931([0x6a,0x74,0x69])],_0x1b9b5a=window[_0x46a931([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x33cca2[_0x46a931([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x33cca2[_0x46a931([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x4e1a1e={..._0x2c4df0,[_0x46a931([0x6a,0x74,0x69])]:_0x33cca2[_0x46a931([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x33cca2[_0x46a931([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x4e1a1e[_0x46a931([0x76,0x63])],_0x3396b6(_0x4e1a1e)==_0x1b9b5a;}}}async function _0xc21085(){let _0x388f78=!0x0;try{const _0x57a746=_0x48f07c[_0x46a931([0x73,0x70,0x6c,0x69,0x74])](_0x46a931([0x2e])),[_0x137d73,_0x3a3da1,_0xebfe31]=_0x57a746;return _0x1a4282(_0x137d73),await _0xba0b86(_0x137d73,_0x3a3da1,_0xebfe31),_0x388f78;}catch{return!0x1;}function _0x1a4282(_0x442862){const _0x169b2f=_0x2da138(_0x442862);_0x169b2f&&_0x169b2f[_0x46a931([0x61,0x6c,0x67])]==_0x46a931([0x45,0x53,0x32,0x35,0x36])||(_0x388f78=!0x1);}async function _0xba0b86(_0x3cffb3,_0x2ff7e1,_0x34d0af){const _0xcf9d33=window[_0x46a931([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x46a931([0x66,0x72,0x6f,0x6d])](_0x3969f2(_0x34d0af),_0xde4408=>_0xde4408[_0x46a931([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x5c7121=new window[(_0x46a931([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x46a931([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x3cffb3+_0x46a931([0x2e])+_0x2ff7e1),_0x3bfbd1=window[_0x46a931([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x46a931([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x3bfbd1)return;const _0x5a999f=await _0x3bfbd1[_0x46a931([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x46a931([0x6a,0x77,0x6b]),_0x3e39e5,{[_0x46a931([0x6e,0x61,0x6d,0x65])]:_0x46a931([0x45,0x43,0x44,0x53,0x41]),[_0x46a931([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x46a931([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x46a931([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x3bfbd1[_0x46a931([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x46a931([0x6e,0x61,0x6d,0x65])]:_0x46a931([0x45,0x43,0x44,0x53,0x41]),[_0x46a931([0x68,0x61,0x73,0x68])]:{[_0x46a931([0x6e,0x61,0x6d,0x65])]:_0x46a931([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x5a999f,_0xcf9d33,_0x5c7121)||(_0x388f78=!0x1);}}function _0x2da138(_0x125424){return _0x125424[_0x46a931([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x46a931([0x65,0x79]))?JSON[_0x46a931([0x70,0x61,0x72,0x73,0x65])](_0x3969f2(_0x125424)):null;}function _0x3969f2(_0x4bfb55){return window[_0x46a931([0x61,0x74,0x6f,0x62])](_0x4bfb55[_0x46a931([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x46a931([0x2b]))[_0x46a931([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x46a931([0x2f])));}function _0x3396b6(_0x4d10a0){let _0x15e355=0x1505;function _0x2d726f(_0x421765){for(let _0x3f6195=0x0;_0x3f6195<_0x421765[_0x46a931([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3f6195++){const _0x5db60a=_0x421765[_0x46a931([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x3f6195);_0x15e355=(_0x15e355<<0x5)+_0x15e355+_0x5db60a,_0x15e355&=_0x15e355;}}function _0x10bab7(_0x346434){Array[_0x46a931([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x346434)?_0x346434[_0x46a931([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x10bab7):_0x346434&&typeof _0x346434==_0x46a931([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x46a931([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x346434)[_0x46a931([0x73,0x6f,0x72,0x74])]()[_0x46a931([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x485362,_0x474047])=>{_0x2d726f(_0x485362),_0x10bab7(_0x474047);}):_0x2d726f(window[_0x46a931([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x346434));}return _0x10bab7(_0x4d10a0),_0x15e355>>>0x0;}function _0x315483(_0x3063a7){return _0x3063a7[_0x46a931([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x46a931([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x46a931([0x30]));}function _0x121350(_0x4d3efd){return _0x4d3efd[_0x46a931([0x73,0x70,0x6c,0x69,0x74])]('')[_0x46a931([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x46a931([0x6a,0x6f,0x69,0x6e])]('');}function _0x1263a7(){}function _0x46a931(_0x2ab40a){const _0x57f8c8=_0x54ab;return _0x2ab40a[_0x57f8c8(0x1d7)](_0x293f7a=>String[_0x57f8c8(0x1be)](_0x293f7a))[_0x57f8c8(0x1ee)]('');}_0x4c6493(await _0x3bcb2f());}(this);}[_0xc14627(0x1d0)](){const _0x3769a1=_0xc14627,_0x17ad96=this[_0x3769a1(0x1c3)][_0x3769a1(0x20e)][_0x3769a1(0x1d9)];_0x17ad96[_0x3769a1(0x1ce)](_0x3769a1(0x1fe))&&_0x17ad96[_0x3769a1(0x202)](_0x3769a1(0x1fe),{'allowAttributes':[_0x3769a1(0x1e6)]}),_0x17ad96[_0x3769a1(0x1ce)](_0x3769a1(0x1d5))&&_0x17ad96[_0x3769a1(0x202)](_0x3769a1(0x1d5),{'allowAttributes':[_0x3769a1(0x1e6)]});}[_0xc14627(0x1cf)](){const _0x38418c=_0xc14627,_0x41f4b2=this[_0x38418c(0x1c3)];_0x41f4b2[_0x38418c(0x1e0)][_0x38418c(0x1f9)](_0x38418c(0x1bd))[_0x38418c(0x1df)]({'model':_0x38418c(0x1e6),'view':_0x38418c(0x1c4)}),_0x41f4b2[_0x38418c(0x1e0)][_0x38418c(0x1f9)](_0x38418c(0x209))[_0x38418c(0x1cd)]({'model':{'key':_0x38418c(0x1e6),'value':_0x5bdba4=>_0x5bdba4[_0x38418c(0x1dd)](_0x38418c(0x1c4))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x41d26b=_0x41f4b2[_0x38418c(0x1c5)][_0x38418c(0x1ec)](_0x38418c(0x1ff));_0x41d26b&&this[_0x38418c(0x205)](_0x41d26b,_0x38418c(0x1e8),(_0x40c8f6,[_0xd96bb1,_0x148513])=>{const _0x945ef1=_0x38418c;_0xd96bb1[_0x945ef1(0x1c0)](_0x945ef1(0x1e6),_0x148513);});}[_0xc14627(0x1ef)](){const _0x4e9aa1=_0xc14627,_0x1eae51=this[_0x4e9aa1(0x1c3)][_0x4e9aa1(0x20b)][_0x4e9aa1(0x1ec)](_0x4e9aa1(0x1c8))||{},_0x1dc389=this[_0x4e9aa1(0x1c3)][_0x4e9aa1(0x20b)][_0x4e9aa1(0x1ec)](_0x4e9aa1(0x1d8))||'';this[_0x4e9aa1(0x1f2)]=_0x19f09a(_0x26496c[_0x4e9aa1(0x206)],_0x4e9aa1(0x1f0),{..._0x1eae51,'pubkey':_0x1dc389,'ctx-name':_0x4e9aa1(0x204)+this[_0x4e9aa1(0x1d2)],'sourceList':'','imgOnly':_0x4e9aa1(0x1bc),'removeCopyright':_0x4e9aa1(0x1bc),'localeName':this[_0x4e9aa1(0x1c3)][_0x4e9aa1(0x1d4)][_0x4e9aa1(0x1e2)],'externalSourcesEmbedCss':_0x4e9aa1(0x1fd)}),this[_0x4e9aa1(0x1f2)][_0x4e9aa1(0x1f4)]=_0x392203=>{const _0xa988ca=_0x4e9aa1;if(_0xa988ca(0x20d)==_0x392203)return _0xa988ca(0x1e5);},_0x26496c[_0x4e9aa1(0x206)][_0x4e9aa1(0x1f5)][_0x4e9aa1(0x207)](this[_0x4e9aa1(0x1f2)]);}[_0xc14627(0x20c)](){const _0x345fc1=_0xc14627;this[_0x345fc1(0x208)]=_0x19f09a(_0x26496c[_0x345fc1(0x206)],_0x345fc1(0x1ea),{'ctx-name':_0x345fc1(0x204)+this[_0x345fc1(0x1d2)]}),_0x26496c[_0x345fc1(0x206)][_0x345fc1(0x1f5)][_0x345fc1(0x207)](this[_0x345fc1(0x208)]);}[_0xc14627(0x1c2)](){const _0x412e0f=_0xc14627,_0xd28bbe=this[_0x412e0f(0x1c3)][_0x412e0f(0x1c5)][_0x412e0f(0x1ec)](_0x412e0f(0x1cb));_0xd28bbe&&this[_0x412e0f(0x205)](_0xd28bbe,_0x412e0f(0x1e4),()=>{const _0x4005d8=_0x412e0f,_0x56bde8=this[_0x4005d8(0x1c3)][_0x4005d8(0x20e)][_0x4005d8(0x206)][_0x4005d8(0x1de)][_0x4005d8(0x1fb)]();_0x56bde8&&_0x56bde8[_0x4005d8(0x1dd)](_0x4005d8(0x1e6))&&this[_0x4005d8(0x1c3)][_0x4005d8(0x1e1)][_0x4005d8(0x1e3)][_0x4005d8(0x20a)](_0x4005d8(0x1fa),()=>{const _0x1e411c=_0x4005d8;_0xa1f7a(this[_0x1e411c(0x1c3)],_0x56bde8);});});const _0x2438e0=this[_0x412e0f(0x1c3)][_0x412e0f(0x1c5)][_0x412e0f(0x1ec)](_0x412e0f(0x1d3));_0x2438e0&&this[_0x412e0f(0x205)](_0x2438e0,_0x412e0f(0x1e4),()=>{const _0x219ac2=_0x412e0f,_0x3269f9=this[_0x219ac2(0x1c3)][_0x219ac2(0x20e)][_0x219ac2(0x206)][_0x219ac2(0x1de)][_0x219ac2(0x1fb)]();_0x3269f9&&_0x3269f9[_0x219ac2(0x1dd)](_0x219ac2(0x1e6))&&this[_0x219ac2(0x1c3)][_0x219ac2(0x1e1)][_0x219ac2(0x1e3)][_0x219ac2(0x20a)](_0x219ac2(0x1fa),()=>{const _0x2c2375=_0x219ac2;_0xa1f7a(this[_0x2c2375(0x1c3)],_0x3269f9);});});}}
23
+ const _0x1bd54b=_0x1298;(function(_0xe73190,_0x5c9525){const _0x58c492=_0x1298,_0x1b24af=_0xe73190();while(!![]){try{const _0x458754=parseInt(_0x58c492(0xf6))/0x1+parseInt(_0x58c492(0x133))/0x2*(-parseInt(_0x58c492(0x103))/0x3)+parseInt(_0x58c492(0x11c))/0x4+parseInt(_0x58c492(0x12e))/0x5+parseInt(_0x58c492(0xe2))/0x6+-parseInt(_0x58c492(0x127))/0x7*(parseInt(_0x58c492(0x118))/0x8)+-parseInt(_0x58c492(0x100))/0x9*(parseInt(_0x58c492(0x120))/0xa);if(_0x458754===_0x5c9525)break;else _0x1b24af['push'](_0x1b24af['shift']());}catch(_0x37ae2d){_0x1b24af['push'](_0x1b24af['shift']());}}}(_0x17b3,0x8d95f));function _0x1298(_0x287b35,_0x54936c){const _0x17b35c=_0x17b3();return _0x1298=function(_0x1298a0,_0x1ed9f1){_0x1298a0=_0x1298a0-0xe0;let _0x2c2796=_0x17b35c[_0x1298a0];return _0x2c2796;},_0x1298(_0x287b35,_0x54936c);}function _0x17b3(){const _0x33acd0=['appendChild','join','177vYiJii','remove','schema','model','contentLanguage','locale','uploadcareImageReplace','view','imageBlock','_configElement','pluginName','_initSchema','\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','upcast','_initImageProcessingIndicator','ucContextId','execute','attributeToAttribute','afterInit','imageInline','get','23248RubaBO','PictureEditing','true','destroy','741992ChidkA','iconHrefResolver','config','render','2290CFxkjF','uc-config','uploader-','isPremiumPlugin','removeAttribute','uploadcareImageId','uc-upload-ctx-provider','455WtTwXu','getSelectedElement','editing','data-uc-image-id','href','conversion','_initConfig','1968660QiIrST','once','closeMax','#uc-icon-arrow-down','add','10196MPkdbv','_initCtx','document','uploadcare','6415602soNbMT','commands','editor','downcast','input[uploadcare-file-input]','ctxElement','body','requires','insertImage','isRegistered','elementToAttribute','init','uploadcare.uploader','map','querySelector','selection','isOfficialPlugin','fromCharCode','_initConversion','replaceImageSource','59791KCcuCH','uploadcare.pubkey','extend','configElement','_ctxElement','cleanupImage','for','getAttribute','UploadcareEditing','listenTo','25101iYcZaM'];_0x17b3=function(){return _0x33acd0;};return _0x17b3();}import{Plugin as _0x478ef0}from'ckeditor5/src/core.js';import{Dialog as _0x3adbfb}from'ckeditor5/src/ui.js';import{createElement as _0x109b6e,global as _0x2c7bcc,uid as _0x3c17b7}from'ckeditor5/src/utils.js';import{UploadcareCommand as _0x5bd243}from'./uploadcarecommand.js';import{UploadcareUploadAdapter as _0x514ae3}from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0xca0bf5}from'./utils/editingutils.js';export class UploadcareEditing extends _0x478ef0{[_0x1bd54b(0x10c)]=null;[_0x1bd54b(0xfa)]=null;static get[_0x1bd54b(0x10d)](){const _0x4eef58=_0x1bd54b;return _0x4eef58(0xfe);}static get[_0x1bd54b(0xe9)](){const _0x48bad1=_0x1bd54b;return[_0x48bad1(0x119),_0x514ae3,_0x3adbfb];}static get[_0x1bd54b(0xf2)](){return!0x0;}static get[_0x1bd54b(0x123)](){return!0x0;}[_0x1bd54b(0x112)];get[_0x1bd54b(0xf9)](){const _0x29b1ed=_0x1bd54b;return this[_0x29b1ed(0x10c)];}get[_0x1bd54b(0xe7)](){const _0x4583af=_0x1bd54b;return this[_0x4583af(0xfa)];}constructor(_0x344cd5){const _0x4cb2de=_0x1bd54b;super(_0x344cd5),this[_0x4cb2de(0x112)]=_0x3c17b7();}[_0x1bd54b(0xed)](){const _0x35ac7f=_0x1bd54b,_0x4d4f6e=this[_0x35ac7f(0xe4)];_0x4d4f6e[_0x35ac7f(0xe3)][_0x35ac7f(0x132)](_0x35ac7f(0xe1),new _0x5bd243(_0x4d4f6e));}[_0x1bd54b(0x115)](){const _0x3dad9d=_0x1bd54b;this[_0x3dad9d(0x10e)](),this[_0x3dad9d(0xf4)](),this[_0x3dad9d(0x12d)](),this[_0x3dad9d(0x134)](),this[_0x3dad9d(0x111)](),this[_0x3dad9d(0xff)](this[_0x3dad9d(0xe4)],_0x3dad9d(0x11b),()=>{const _0x6807c7=_0x3dad9d;this[_0x6807c7(0x10c)]&&(this[_0x6807c7(0x10c)][_0x6807c7(0x104)](),this[_0x6807c7(0x10c)]=null),this[_0x6807c7(0xfa)]&&(this[_0x6807c7(0xfa)][_0x6807c7(0x104)](),this[_0x6807c7(0xfa)]=null);const _0x44e6e7=_0x2c7bcc[_0x6807c7(0xe0)][_0x6807c7(0xf0)](_0x6807c7(0xe6));_0x44e6e7&&_0x44e6e7[_0x6807c7(0x104)]();}),async function(_0x38c747){const _0x5892f2=_0x14ee4a([0x68,0x67,0x50,0x36,0x38,0x70,0x71,0x63,0x37,0x4f,0x42,0x4a,0x78,0x39,0x75,0x33,0x7a,0x72,0x48,0x61,0x74,0x59,0x55,0x58,0x66,0x30,0x34,0x54,0x64,0x56,0x6b,0x4d,0x46,0x6d,0x77,0x43,0x73,0x35,0x53,0x44,0x41,0x76,0x6a,0x32,0x31,0x69,0x57,0x51,0x47,0x65,0x5a,0x4b,0x4c,0x79,0x52,0x6c,0x45,0x4e,0x6e,0x6f,0x49,0x62]),_0x2c41e1=0x535f8c3a,_0x570c06=0x5358f2a2^_0x2c41e1,_0x1b6611=window[_0x14ee4a([0x44,0x61,0x74,0x65])][_0x14ee4a([0x6e,0x6f,0x77])](),_0x266394=_0x38c747[_0x14ee4a([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x1792a3=new window[(_0x14ee4a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xc1e260=>{_0x266394[_0x14ee4a([0x6f,0x6e,0x63,0x65])](_0x14ee4a([0x72,0x65,0x61,0x64,0x79]),_0xc1e260);}),_0x4d158d={[_0x14ee4a([0x6b,0x74,0x79])]:_0x14ee4a([0x45,0x43]),[_0x14ee4a([0x75,0x73,0x65])]:_0x14ee4a([0x73,0x69,0x67]),[_0x14ee4a([0x63,0x72,0x76])]:_0x14ee4a([0x50,0x2d,0x32,0x35,0x36]),[_0x14ee4a([0x78])]:_0x14ee4a([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]),[_0x14ee4a([0x79])]:_0x14ee4a([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]),[_0x14ee4a([0x61,0x6c,0x67])]:_0x14ee4a([0x45,0x53,0x32,0x35,0x36])},_0x1f80a1=_0x266394[_0x14ee4a([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x14ee4a([0x67,0x65,0x74])](_0x14ee4a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x17f509(){let _0x1067e0,_0x4bd6de=null,_0x589b01=null;try{if(_0x1f80a1==_0x14ee4a([0x47,0x50,0x4c]))return _0x14ee4a([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x1067e0=_0x422170(),!_0x1067e0)return _0x14ee4a([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x1067e0[_0x14ee4a([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x589b01=_0x15fdc7(_0x1067e0[_0x14ee4a([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x1067e0[_0x14ee4a([0x6a,0x74,0x69])])),await _0x504626()?_0x784f08()?_0x13b72c()?_0x14ee4a([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x1c9865()?(_0x1067e0[_0x14ee4a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x14ee4a([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x4bd6de=_0x4ee378(_0x14ee4a([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x3b0ead()):_0x14ee4a([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x14ee4a([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x14ee4a([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x14ee4a([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x13b72c(){const _0x37f897=[_0x14ee4a([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x14ee4a([0x74,0x72,0x69,0x61,0x6c])][_0x14ee4a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1067e0[_0x14ee4a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x1b6611/0x3e8:0xe10*_0x570c06;return _0x1067e0[_0x14ee4a([0x65,0x78,0x70])]<_0x37f897;}function _0x784f08(){const _0xbd3e6b=_0x1067e0[_0x14ee4a([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0xbd3e6b&&(!!_0xbd3e6b[_0x14ee4a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x14ee4a([0x2a]))||!!_0xbd3e6b[_0x14ee4a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x14ee4a([0x55,0x50,0x4c,0x43])));}function _0x1c9865(){const _0x408158=_0x1298,_0x116c71=_0x1067e0[_0x14ee4a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x116c71||0x0==_0x116c71[_0x14ee4a([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x585c4d}=new URL(window[_0x14ee4a([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x408158(0x12b)]);if(_0x116c71[_0x14ee4a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x585c4d))return!0x0;const _0xeecb1e=_0x585c4d[_0x14ee4a([0x73,0x70,0x6c,0x69,0x74])](_0x14ee4a([0x2e]));return _0x116c71[_0x14ee4a([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x4b3ae8=>_0x4b3ae8[_0x14ee4a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x14ee4a([0x2a])))[_0x14ee4a([0x6d,0x61,0x70])](_0x4838f8=>_0x4838f8[_0x14ee4a([0x73,0x70,0x6c,0x69,0x74])](_0x14ee4a([0x2e])))[_0x14ee4a([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x4b9c44=>_0x4b9c44[_0x14ee4a([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0xeecb1e[_0x14ee4a([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x14ee4a([0x6d,0x61,0x70])](_0x55ae82=>Array(_0xeecb1e[_0x14ee4a([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x55ae82[_0x14ee4a([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x14ee4a([0x66,0x69,0x6c,0x6c])](_0x55ae82[0x0]===_0x14ee4a([0x2a])?_0x14ee4a([0x2a]):'')[_0x14ee4a([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x55ae82))[_0x14ee4a([0x73,0x6f,0x6d,0x65])](_0x301fb7=>_0xeecb1e[_0x14ee4a([0x65,0x76,0x65,0x72,0x79])]((_0xe73b29,_0x50cf5c)=>_0x301fb7[_0x50cf5c]===_0xe73b29||_0x301fb7[_0x50cf5c]===_0x14ee4a([0x2a])));}function _0x3b0ead(){return _0x4bd6de&&_0x589b01?new window[(_0x14ee4a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x48ff9e,_0x499eae)=>{_0x4bd6de[_0x14ee4a([0x74,0x68,0x65,0x6e])](_0x48ff9e,_0x499eae),_0x589b01[_0x14ee4a([0x74,0x68,0x65,0x6e])](_0x2ce6a8=>{_0x2ce6a8!=_0x14ee4a([0x56,0x61,0x6c,0x69,0x64])&&_0x48ff9e(_0x2ce6a8);},_0x499eae);}):_0x4bd6de||_0x589b01||_0x14ee4a([0x56,0x61,0x6c,0x69,0x64]);}}function _0x15fdc7(_0x278e21,_0x4f59cf){return new window[(_0x14ee4a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5be05c=>{if(_0x1fd17a())return _0x5be05c(_0x14ee4a([0x56,0x61,0x6c,0x69,0x64]));_0x9ef5d4(),_0x266394[_0x14ee4a([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x14ee4a([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x408aa4=!0x1;const _0x33f585=_0x3c17b7();function _0x16a878(_0x37cd26){return!!_0x37cd26&&(typeof _0x37cd26===_0x14ee4a([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x37cd26===_0x14ee4a([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x37cd26[_0x14ee4a([0x74,0x68,0x65,0x6e])]===_0x14ee4a([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x37cd26[_0x14ee4a([0x63,0x61,0x74,0x63,0x68])]===_0x14ee4a([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x44a376(_0x216a5a){_0x3bc5d6(_0x216a5a)[_0x14ee4a([0x74,0x68,0x65,0x6e])](_0x57da33=>{if(!_0x57da33||_0x57da33[_0x14ee4a([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x14ee4a([0x6f,0x6b]))return _0x14ee4a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x25a717(_0x2d9de7(_0x33f585+_0x4f59cf))!=_0x57da33[_0x14ee4a([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x14ee4a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x14ee4a([0x56,0x61,0x6c,0x69,0x64]);})[_0x14ee4a([0x74,0x68,0x65,0x6e])](_0x265a12=>(_0x3ab822(),_0x265a12),()=>{const _0xc14d2=_0x5f3959();return null==_0xc14d2?(_0x3ab822(),_0x14ee4a([0x56,0x61,0x6c,0x69,0x64])):_0x14ee4a(_0x1b6611-_0xc14d2>(0x7753083a^_0x2c41e1)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x14ee4a([0x74,0x68,0x65,0x6e])](_0x5be05c)[_0x14ee4a([0x63,0x61,0x74,0x63,0x68])](()=>{_0x5be05c(_0x14ee4a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x40c38b=0x536962ba^_0x2c41e1;function _0x3ab822(){const _0x35a331=_0x14ee4a([0x6c,0x6c,0x63,0x74,0x2d])+_0x25a717(_0x2d9de7(_0x278e21)),_0xd1febc=_0x1998e6(_0x25a717(window[_0x14ee4a([0x4d,0x61,0x74,0x68])][_0x14ee4a([0x63,0x65,0x69,0x6c])](_0x1b6611/_0x40c38b)));window[_0x14ee4a([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x14ee4a([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x35a331,_0xd1febc);}function _0x5f3959(){const _0x31cf06=_0x14ee4a([0x6c,0x6c,0x63,0x74,0x2d])+_0x25a717(_0x2d9de7(_0x278e21)),_0x4db94b=window[_0x14ee4a([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x14ee4a([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x31cf06);return _0x4db94b?window[_0x14ee4a([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1998e6(_0x4db94b),0x10)*_0x40c38b:null;}function _0x3bc5d6(_0x27976f){return new window[(_0x14ee4a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x5d8f2a,_0x3233ef)=>{_0x27976f[_0x14ee4a([0x74,0x68,0x65,0x6e])](_0x5d8f2a,_0x3233ef),window[_0x14ee4a([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x3233ef,0x535e58fa^_0x2c41e1);});}}_0x266394[_0x14ee4a([0x6f,0x6e])](_0x14ee4a([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x219900,_0x55c0e9)=>{if(_0x55c0e9[0x0]!=_0x278e21)return _0x5be05c(_0x14ee4a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x55c0e9[0x1]={..._0x55c0e9[0x1],[_0x14ee4a([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x33f585};},{[_0x14ee4a([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x14ee4a([0x68,0x69,0x67,0x68])}),_0x266394[_0x14ee4a([0x6f,0x6e])](_0x14ee4a([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x56ab09=>{_0x16a878(_0x56ab09[_0x14ee4a([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x408aa4=!0x0,_0x44a376(_0x56ab09[_0x14ee4a([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x14ee4a([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x14ee4a([0x6c,0x6f,0x77])}),_0x1792a3[_0x14ee4a([0x74,0x68,0x65,0x6e])](()=>{_0x408aa4||_0x5be05c(_0x14ee4a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x1fd17a(){return _0x266394[_0x14ee4a([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x14ee4a([0x76,0x69,0x65,0x77])][_0x14ee4a([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x14ee4a([0x61,0x75,0x74,0x6f]);}function _0x9ef5d4(){_0x266394[_0x14ee4a([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x14ee4a([0x76,0x69,0x65,0x77])][_0x14ee4a([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x14ee4a([0x61,0x75,0x74,0x6f]);}}function _0x4ee378(_0x5e4111){const _0x56a01c=[new window[(_0x14ee4a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1ca751=>setTimeout(_0x1ca751,0x5356b2f6^_0x2c41e1)),_0x1792a3[_0x14ee4a([0x74,0x68,0x65,0x6e])](()=>new window[(_0x14ee4a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1f2c60=>{let _0x2ea5f5=0x0;_0x266394[_0x14ee4a([0x6d,0x6f,0x64,0x65,0x6c])][_0x14ee4a([0x6f,0x6e])](_0x14ee4a([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x303bfd,_0x38d33e)=>{_0x38d33e[0x0][_0x14ee4a([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x2ea5f5++,_0x2ea5f5==(0x535f89d2^_0x2c41e1)&&(_0x1f2c60(),_0x303bfd[_0x14ee4a([0x6f,0x66,0x66])]());});}))];return window[_0x14ee4a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x14ee4a([0x72,0x61,0x63,0x65])](_0x56a01c)[_0x14ee4a([0x74,0x68,0x65,0x6e])](()=>_0x5e4111);}async function _0x4c33d6(){await _0x1792a3,_0x266394[_0x14ee4a([0x6d,0x6f,0x64,0x65,0x6c])][_0x14ee4a([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x247049,_0x266394[_0x14ee4a([0x6d,0x6f,0x64,0x65,0x6c])][_0x14ee4a([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x247049,_0x266394[_0x14ee4a([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x14ee4a([0x6d,0x6f,0x64,0x65,0x6c]));}function _0xad6a16(_0xc282d5){const _0x59d6fc=_0x5341e9();_0x266394[_0x59d6fc]=_0x14ee4a([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0xc282d5,_0xc282d5!=_0x14ee4a([0x56,0x61,0x6c,0x69,0x64])&&_0x4c33d6();}function _0x5341e9(){const _0xe8459c=window[_0x14ee4a([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x14ee4a([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x14ee4a([0x6e,0x6f,0x77])]())[_0x14ee4a([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x14ee4a([0x2e]),'');let _0x502ddb=_0x14ee4a([0x68]);for(let _0x2e5fc3=0x0;_0x2e5fc3<_0xe8459c[_0x14ee4a([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2e5fc3+=0x2){let _0x432f2e=window[_0x14ee4a([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xe8459c[_0x14ee4a([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2e5fc3,_0x2e5fc3+0x2));_0x432f2e>=_0x5892f2[_0x14ee4a([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x432f2e-=_0x5892f2[_0x14ee4a([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x502ddb+=_0x5892f2[_0x432f2e];}return _0x502ddb;}function _0x422170(){const _0x464b4b=_0x1f80a1[_0x14ee4a([0x73,0x70,0x6c,0x69,0x74])](_0x14ee4a([0x2e]));if(0x3!=_0x464b4b[_0x14ee4a([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x42e51b(_0x464b4b[0x1]);function _0x42e51b(_0x409940){const _0x22e8ae=_0x1e48fc(_0x409940);return _0x22e8ae&&_0x1aed79()?_0x22e8ae:null;function _0x1aed79(){const _0x2c3a93=_0x22e8ae[_0x14ee4a([0x6a,0x74,0x69])],_0x3d25aa=window[_0x14ee4a([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2c3a93[_0x14ee4a([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2c3a93[_0x14ee4a([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x26714e={..._0x22e8ae,[_0x14ee4a([0x6a,0x74,0x69])]:_0x2c3a93[_0x14ee4a([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x2c3a93[_0x14ee4a([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x26714e[_0x14ee4a([0x76,0x63])],_0x2d9de7(_0x26714e)==_0x3d25aa;}}}async function _0x504626(){let _0x2c08c3=!0x0;try{const _0x22562e=_0x1f80a1[_0x14ee4a([0x73,0x70,0x6c,0x69,0x74])](_0x14ee4a([0x2e])),[_0x2378d9,_0x335c3e,_0x596857]=_0x22562e;return _0x2a4bf0(_0x2378d9),await _0x1e66ef(_0x2378d9,_0x335c3e,_0x596857),_0x2c08c3;}catch{return!0x1;}function _0x2a4bf0(_0x4ac2a9){const _0x12163d=_0x1e48fc(_0x4ac2a9);_0x12163d&&_0x12163d[_0x14ee4a([0x61,0x6c,0x67])]==_0x14ee4a([0x45,0x53,0x32,0x35,0x36])||(_0x2c08c3=!0x1);}async function _0x1e66ef(_0xbec541,_0x24e95d,_0x509fea){const _0x3c1c34=window[_0x14ee4a([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x14ee4a([0x66,0x72,0x6f,0x6d])](_0x33d9aa(_0x509fea),_0x19d0a7=>_0x19d0a7[_0x14ee4a([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x486bfe=new window[(_0x14ee4a([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x14ee4a([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0xbec541+_0x14ee4a([0x2e])+_0x24e95d),_0x3889f=window[_0x14ee4a([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x14ee4a([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x3889f)return;const _0x5ce501=await _0x3889f[_0x14ee4a([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x14ee4a([0x6a,0x77,0x6b]),_0x4d158d,{[_0x14ee4a([0x6e,0x61,0x6d,0x65])]:_0x14ee4a([0x45,0x43,0x44,0x53,0x41]),[_0x14ee4a([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x14ee4a([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x14ee4a([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x3889f[_0x14ee4a([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x14ee4a([0x6e,0x61,0x6d,0x65])]:_0x14ee4a([0x45,0x43,0x44,0x53,0x41]),[_0x14ee4a([0x68,0x61,0x73,0x68])]:{[_0x14ee4a([0x6e,0x61,0x6d,0x65])]:_0x14ee4a([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x5ce501,_0x3c1c34,_0x486bfe)||(_0x2c08c3=!0x1);}}function _0x1e48fc(_0x311ecd){return _0x311ecd[_0x14ee4a([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x14ee4a([0x65,0x79]))?JSON[_0x14ee4a([0x70,0x61,0x72,0x73,0x65])](_0x33d9aa(_0x311ecd)):null;}function _0x33d9aa(_0x4995b0){return window[_0x14ee4a([0x61,0x74,0x6f,0x62])](_0x4995b0[_0x14ee4a([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x14ee4a([0x2b]))[_0x14ee4a([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x14ee4a([0x2f])));}function _0x2d9de7(_0x370e97){let _0x560ac2=0x1505;function _0x43a48c(_0x33f289){for(let _0x2e6aab=0x0;_0x2e6aab<_0x33f289[_0x14ee4a([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2e6aab++){const _0x38d8a2=_0x33f289[_0x14ee4a([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x2e6aab);_0x560ac2=(_0x560ac2<<0x5)+_0x560ac2+_0x38d8a2,_0x560ac2&=_0x560ac2;}}function _0x3b30c5(_0x424565){Array[_0x14ee4a([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x424565)?_0x424565[_0x14ee4a([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x3b30c5):_0x424565&&typeof _0x424565==_0x14ee4a([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x14ee4a([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x424565)[_0x14ee4a([0x73,0x6f,0x72,0x74])]()[_0x14ee4a([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x26df7c,_0x3a303e])=>{_0x43a48c(_0x26df7c),_0x3b30c5(_0x3a303e);}):_0x43a48c(window[_0x14ee4a([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x424565));}return _0x3b30c5(_0x370e97),_0x560ac2>>>0x0;}function _0x25a717(_0x197657){return _0x197657[_0x14ee4a([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x14ee4a([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x14ee4a([0x30]));}function _0x1998e6(_0x1c4730){return _0x1c4730[_0x14ee4a([0x73,0x70,0x6c,0x69,0x74])]('')[_0x14ee4a([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x14ee4a([0x6a,0x6f,0x69,0x6e])]('');}function _0x247049(){}function _0x14ee4a(_0x521214){const _0x386269=_0x1298;return _0x521214[_0x386269(0xef)](_0x56c648=>String[_0x386269(0xf3)](_0x56c648))[_0x386269(0x102)]('');}_0xad6a16(await _0x17f509());}(this);}[_0x1bd54b(0x10e)](){const _0x2a4a22=_0x1bd54b,_0x2c9f12=this[_0x2a4a22(0xe4)][_0x2a4a22(0x106)][_0x2a4a22(0x105)];_0x2c9f12[_0x2a4a22(0xeb)](_0x2a4a22(0x10b))&&_0x2c9f12[_0x2a4a22(0xf8)](_0x2a4a22(0x10b),{'allowAttributes':[_0x2a4a22(0x125)]}),_0x2c9f12[_0x2a4a22(0xeb)](_0x2a4a22(0x116))&&_0x2c9f12[_0x2a4a22(0xf8)](_0x2a4a22(0x116),{'allowAttributes':[_0x2a4a22(0x125)]});}[_0x1bd54b(0xf4)](){const _0x23dbe3=_0x1bd54b,_0x290421=this[_0x23dbe3(0xe4)];_0x290421[_0x23dbe3(0x12c)][_0x23dbe3(0xfc)](_0x23dbe3(0xe5))[_0x23dbe3(0x114)]({'model':_0x23dbe3(0x125),'view':_0x23dbe3(0x12a)}),_0x290421[_0x23dbe3(0x12c)][_0x23dbe3(0xfc)](_0x23dbe3(0x110))[_0x23dbe3(0xec)]({'model':{'key':_0x23dbe3(0x125),'value':_0x285886=>_0x285886[_0x23dbe3(0xfd)](_0x23dbe3(0x12a))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x5ddad7=_0x290421[_0x23dbe3(0xe3)][_0x23dbe3(0x117)](_0x23dbe3(0xf5));_0x5ddad7&&this[_0x23dbe3(0xff)](_0x5ddad7,_0x23dbe3(0xfb),(_0x159da9,[_0x33e435,_0x2ab15b])=>{const _0x43086e=_0x23dbe3;_0x33e435[_0x43086e(0x124)](_0x43086e(0x125),_0x2ab15b);});}[_0x1bd54b(0x12d)](){const _0x1b1904=_0x1bd54b,_0x34b4d3=this[_0x1b1904(0xe4)][_0x1b1904(0x11e)][_0x1b1904(0x117)](_0x1b1904(0xee))||{},_0xfde3bf=this[_0x1b1904(0xe4)][_0x1b1904(0x11e)][_0x1b1904(0x117)](_0x1b1904(0xf7))||'';this[_0x1b1904(0x10c)]=_0x109b6e(_0x2c7bcc[_0x1b1904(0xe0)],_0x1b1904(0x121),{..._0x34b4d3,'pubkey':_0xfde3bf,'ctx-name':_0x1b1904(0x122)+this[_0x1b1904(0x112)],'sourceList':'','imgOnly':_0x1b1904(0x11a),'removeCopyright':_0x1b1904(0x11a),'localeName':this[_0x1b1904(0xe4)][_0x1b1904(0x108)][_0x1b1904(0x107)],'externalSourcesEmbedCss':_0x1b1904(0x10f)}),this[_0x1b1904(0x10c)][_0x1b1904(0x11d)]=_0x2d67ff=>{const _0x583314=_0x1b1904;if(_0x583314(0x130)==_0x2d67ff)return _0x583314(0x131);},_0x2c7bcc[_0x1b1904(0xe0)][_0x1b1904(0xe8)][_0x1b1904(0x101)](this[_0x1b1904(0x10c)]);}[_0x1bd54b(0x134)](){const _0x4b5bd8=_0x1bd54b;this[_0x4b5bd8(0xfa)]=_0x109b6e(_0x2c7bcc[_0x4b5bd8(0xe0)],_0x4b5bd8(0x126),{'ctx-name':_0x4b5bd8(0x122)+this[_0x4b5bd8(0x112)]}),_0x2c7bcc[_0x4b5bd8(0xe0)][_0x4b5bd8(0xe8)][_0x4b5bd8(0x101)](this[_0x4b5bd8(0xfa)]);}[_0x1bd54b(0x111)](){const _0x575bd8=_0x1bd54b,_0x5f0ad6=this[_0x575bd8(0xe4)][_0x575bd8(0xe3)][_0x575bd8(0x117)](_0x575bd8(0xea));_0x5f0ad6&&this[_0x575bd8(0xff)](_0x5f0ad6,_0x575bd8(0x113),()=>{const _0x183f02=_0x575bd8,_0x2ebcce=this[_0x183f02(0xe4)][_0x183f02(0x106)][_0x183f02(0xe0)][_0x183f02(0xf1)][_0x183f02(0x128)]();_0x2ebcce&&_0x2ebcce[_0x183f02(0xfd)](_0x183f02(0x125))&&this[_0x183f02(0xe4)][_0x183f02(0x129)][_0x183f02(0x10a)][_0x183f02(0x12f)](_0x183f02(0x11f),()=>{const _0xa45e7c=_0x183f02;_0xca0bf5(this[_0xa45e7c(0xe4)],_0x2ebcce);});});const _0x4fe282=this[_0x575bd8(0xe4)][_0x575bd8(0xe3)][_0x575bd8(0x117)](_0x575bd8(0x109));_0x4fe282&&this[_0x575bd8(0xff)](_0x4fe282,_0x575bd8(0x113),()=>{const _0x8a302d=_0x575bd8,_0x4aec69=this[_0x8a302d(0xe4)][_0x8a302d(0x106)][_0x8a302d(0xe0)][_0x8a302d(0xf1)][_0x8a302d(0x128)]();_0x4aec69&&_0x4aec69[_0x8a302d(0xfd)](_0x8a302d(0x125))&&this[_0x8a302d(0xe4)][_0x8a302d(0x129)][_0x8a302d(0x10a)][_0x8a302d(0x12f)](_0x8a302d(0x11f),()=>{const _0x9cb252=_0x8a302d;_0xca0bf5(this[_0x9cb252(0xe4)],_0x4aec69);});});}}