@ckeditor/ckeditor5-uploadcare 0.0.0-nightly-next-20251226.0 → 0.0.0-nightly-next-20251227.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -20,6 +20,6 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{Plugin as _0x2f79a5,Command as _0x1830ed}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x5a3636,IconGooglePhotos as _0x25a960,IconGoogleDrive as _0x441b45,IconFacebook as _0x21451d,IconDropbox as _0x503848,IconUploadcareLink as _0x96e075,IconUploadcareImageUpload as _0x553ef2,IconError as _0x19ea19,IconUploadcareImageEdit as _0x5d9d5d}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x484af9,MenuBarMenuListItemButtonView as _0x502fb9,View as _0x119922,FocusCycler as _0x38110b,Dialog as _0x2e6c28,DialogViewPosition as _0x297a66,SpinnerView as _0x7ad9c6,IconView as _0x1494c4,Notification as _0xc388b8}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x35fa52,DomEmitterMixin as _0x185c38,global as _0x4ac7e1,getAncestors as _0x18759c,ObservableMixin as _0xb0242e,uid as _0x3c0092,createElement as _0x414e74}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x390e61}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x24cf34,info as _0x3eb9c5}from'@uploadcare/upload-client';import*as _0x49e498 from'@uploadcare/file-uploader';var i=function(_0x325a14){return _0x325a14['Local']='local',_0x325a14['URL']='url',_0x325a14['Dropbox']='dropbox',_0x325a14['GDrive']='gdrive',_0x325a14['Facebook']='facebook',_0x325a14['GPhotos']='gphotos',_0x325a14['OneDrive']='onedrive',_0x325a14;}({});function _(_0x2d6b06,_0x183019,_0x49e077){const t=_0x2d6b06['t'],_0x1a5b55=_0x2d6b06['t'];switch(_0x183019){case i['Local']:return{'text':_0x1a5b55('Insert'===_0x49e077?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x1a5b55('From\x20computer')};case i['URL']:return{'text':'Insert'===_0x49e077?_0x1a5b55('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x1a5b55('Via\x20URL')};case i['Dropbox']:return{'text':t('Insert'===_0x49e077?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case i['Facebook']:return{'text':t('Insert'===_0x49e077?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case i['GDrive']:return{'text':t('Insert'===_0x49e077?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case i['GPhotos']:return{'text':t('Insert'===_0x49e077?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case i['OneDrive']:return{'text':t('Insert'===_0x49e077?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x183019;}}class e extends _0x2f79a5{['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 _0x2921dd=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x636830;for(const _0x3756a6 in _0x2921dd){const _0x13fbcb=_0x3756a6,_0x1b801e=_0x2921dd[_0x13fbcb];if('uploadcareLicenseKeyValid'==_0x1b801e||'uploadcareLicenseKeyInvalid'==_0x1b801e||'uploadcareLicenseKeyExpired'==_0x1b801e||'uploadcareLicenseKeyDomainLimit'==_0x1b801e||'uploadcareLicenseKeyNotAllowed'==_0x1b801e||'uploadcareLicenseKeyEvaluationLimit'==_0x1b801e||'uploadcareLicenseKeyTrialLimit'==_0x1b801e||'uploadcareLicenseKeyUsageLimit'==_0x1b801e){delete _0x2921dd[_0x13fbcb],_0x636830=_0x1b801e,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x636830&&_0x2921dd['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x636830&&_0x2921dd['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x636830&&_0x2921dd['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x636830&&_0x2921dd['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x636830&&_0x2921dd['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyTrialLimit'==_0x636830&&_0x2921dd['_showLicenseError']('trialLimit'),'uploadcareLicenseKeyUsageLimit'==_0x636830&&_0x2921dd['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x3ddc7d}=this,_0x186551=_0x3ddc7d['commands']['get']('uploadcare');if(!_0x186551)return;const _0x58b055=this['_normalizeConfigSourceList'](_0x3ddc7d['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x5082e3,_0x3632d5)=>{const _0x51cbed=this['_getIntegrationKey'](_0x3632d5['type']);return _0x5082e3[_0x51cbed]||(_0x5082e3[_0x51cbed]=[]),_0x5082e3[_0x51cbed]['push'](_0x3632d5),_0x5082e3;},{});_0x3ddc7d['plugins']['has']('ImageInsertUI')&&_0x3ddc7d['commands']['get']('uploadcare')&&Object['entries'](_0x58b055)['forEach'](([_0xdc1109,_0x963191])=>{_0x3ddc7d['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0xdc1109,'observable':()=>_0x186551,'buttonViewCreator':()=>this['_createToolbarButton'](_0x963191),'formViewCreator':()=>this['_createDropdownButtons'](_0x963191),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x963191),'override':'assetManager'!==_0xdc1109});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x336b77){const {locale:_0x2f656b}=this['editor'];return _0x336b77['map'](_0x3e0c24=>{const _0x538112=_(_0x2f656b,_0x3e0c24,'Insert');switch(_0x3e0c24){case i['Local']:return{'icon':_0x553ef2,'type':i['Local'],..._0x538112};case i['URL']:return{'icon':_0x96e075,'type':i['URL'],..._0x538112};case i['Dropbox']:return{'icon':_0x503848,'type':i['Dropbox'],..._0x538112};case i['Facebook']:return{'icon':_0x21451d,'type':i['Facebook'],..._0x538112};case i['GDrive']:return{'icon':_0x441b45,'type':i['GDrive'],..._0x538112};case i['GPhotos']:return{'icon':_0x25a960,'type':i['GPhotos'],..._0x538112};case i['OneDrive']:return{'icon':_0x5a3636,'type':i['OneDrive'],..._0x538112};}});}['_getIntegrationKey'](_0x1d7d8d){switch(_0x1d7d8d){case i['Local']:return'upload';case i['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x34ec55,_0x1a3fe1){const _0x5a35ae=this['editor'],_0x11c2d2=new _0x34ec55(_0x5a35ae['locale']),_0x4b2f3c=_0x5a35ae['commands']['get']('uploadcare');return _0x11c2d2['bind']('isEnabled')['to'](_0x4b2f3c),_0x11c2d2['on']('execute',()=>{_0x4b2f3c['execute'](_0x1a3fe1);}),_0x11c2d2;}['_createToolbarButton'](_0x2ec1c0){const {locale:_0x53378e}=this['editor'],_0x2ce9b0=this['editor']['plugins']['get']('ImageInsertUI'),_0x1d6bf9=_0x2ec1c0[0x0],_0x481616=this['_createButton'](_0x484af9,_0x1d6bf9['type']);return _0x481616['icon']=_0x1d6bf9['icon'],_0x481616['bind']('label')['to'](_0x2ce9b0,'isImageSelected',_0x4e0a99=>_(_0x53378e,_0x1d6bf9['type'],_0x4e0a99?'Replace':'Insert')['text']),_0x481616['tooltip']=!0x0,_0x481616;}['_createDropdownButtons'](_0x2cc312){const {locale:_0x519454}=this['editor'],_0x3b39cd=this['editor']['plugins']['get']('ImageInsertUI');return _0x2cc312['map'](_0x266041=>{const _0x1bb680=this['_createButton'](_0x484af9,_0x266041['type']);return _0x1bb680['withText']=!0x0,_0x1bb680['icon']=_0x266041['icon'],_0x1bb680['bind']('label')['to'](_0x3b39cd,'isImageSelected',_0x2ebdf1=>_(_0x519454,_0x266041['type'],_0x2ebdf1?'Replace':'Insert')['text']),_0x1bb680;});}['_createMenuBarButtons'](_0x1c4d27){return _0x1c4d27['map'](_0x52e912=>{const _0xe8d872=this['_createButton'](_0x502fb9,_0x52e912['type']);return _0xe8d872['icon']=_0x52e912['icon'],_0xe8d872['label']=_0x52e912['shortText'],_0xe8d872;});}}class F extends _0x119922{['focusTracker'];['focusCycler'];constructor(_0x27a6ae){super(_0x27a6ae),this['focusTracker']=new _0x35fa52(),this['focusCycler']=new _0x38110b({'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(_0x41ec54,_0x1379aa){super(_0x41ec54),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-'+_0x1379aa}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}}function C(_0x3ef60c,_0x143b90){const _0x40d2d1=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x4d6d22=>_0x4d6d22<=_0x143b90)['map'](_0x1115ff=>_0x3ef60c['replace'](/\/$/,'')+'/-/resize/'+_0x1115ff+'x/\x20'+_0x1115ff+'w');return{'imageFallbackUrl':_0x3ef60c,'imageSources':[{'srcset':_0x40d2d1['join'](',\x20'),'sizes':'(max-width:\x20'+_0x143b90+'px)\x20100vw,\x20'+_0x143b90+'px','type':'image/webp'}]};}function S(_0xf21d4f,_0x384449,_0x32247f){const _0x1d41b7=_0xf21d4f['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x1d41b7?parseInt(_0x1d41b7[0x1],0xa):_0x384449,'height':_0x1d41b7?parseInt(_0x1d41b7[0x2],0xa):_0x32247f};}function p(_0x3ebfab,_0x1bcc98){const _0x5ee908=new(_0x185c38())(),_0x363fbf=_0x3ebfab['plugins']['get']('ImageUtils'),_0x12778e=_0x3ebfab['editing']['mapper']['toViewElement'](_0x1bcc98),_0x928d5e=_0x363fbf['findViewImgElement'](_0x12778e),_0x228d63=_0x3ebfab['editing']['view']['domConverter']['viewToDom'](_0x928d5e),_0x386a32=_0x1bcc98['getAttribute']('width'),_0x1cf159=_0x1bcc98['getAttribute']('height'),_0x58ebe5='image-processing';_0x3ebfab['editing']['view']['change'](_0x3c33cb=>{_0x3c33cb['addClass'](_0x58ebe5,_0x12778e),_0x3c33cb['setStyle']('aspect-ratio',_0x386a32+'/'+_0x1cf159,_0x928d5e);}),_0x5ee908['listenTo'](_0x228d63,'load',()=>{_0x5ee908['stopListening'](_0x228d63,'load'),_0x3ebfab['editing']['view']['change'](_0x48ac56=>{_0x48ac56['removeClass'](_0x58ebe5,_0x12778e),_0x48ac56['removeStyle']('aspect-ratio',_0x928d5e);});});}function G(_0x24199b){if(Array['isArray'](_0x24199b)){const _0x281559=_0x24199b['map'](G);return _0x2d4200=>_0x281559['some'](_0x2f1bf9=>_0x2f1bf9(_0x2d4200));}if('origin'==_0x24199b){const _0x425de0=_0x4ac7e1['window']['location']['origin'];return _0x2cd5e6=>new URL(_0x2cd5e6,_0x4ac7e1['document']['baseURI'])['origin']==_0x425de0;}return'function'==typeof _0x24199b?_0x24199b:_0x24199b instanceof RegExp?_0x597412=>!(!_0x597412['match'](_0x24199b)&&!_0x597412['replace'](/^https?:\/\//,'')['match'](_0x24199b)):()=>!0x1;}function A(_0x429110,_0x1f5c54){return _0x18759c(_0x429110['target'])['includes'](_0x1f5c54);}class n extends/* #__PURE__ -- @preserve */
24
- _0xb0242e(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x4b0005,_0x13e7ce,_0x547d62){super(),this['_editor']=_0x4b0005,this['_editing']=_0x13e7ce,this['_dialog']=_0x4b0005['plugins']['get'](_0x2e6c28),this['_api']=_0x13e7ce['ctxElement']['getAPI'](),this['_type']=_0x547d62,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:_0x3f03a8,model:_0x58790b}=this['_editor'],_0x368819=_0x58790b['document']['selection']['getSelectedElement'](),_0x408a03=_0x368819&&(_0x368819['is']('element','imageBlock')||_0x368819['is']('element','imageInline'));this['_formView']=new x(_0x3f03a8,this['_editing']['ucContextId']),this['_dialog']['show']({'id':'uploadCare','icon':_0x553ef2,'title':_(_0x3f03a8,this['_type'],_0x408a03?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x297a66['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x182bf0=>!A(_0x182bf0,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x2e19f4}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x51bee9=>{const _0x40acc9=_0x2e19f4['length'];for(const _0x170752 of _0x2e19f4){const _0x283d19=_0x170752===_0x2e19f4[_0x40acc9-0x1],{cdnUrl:_0x41d02c,fileInfo:_0x5d2712}=_0x170752;if(!_0x41d02c||!_0x5d2712)continue;const {width:_0x55c05d,height:_0x39bf58}=_0x5d2712['imageInfo'],_0x2b1e95=S(_0x41d02c,_0x55c05d,_0x39bf58),_0x18305b=C(_0x41d02c,_0x2b1e95['width']),_0x4ad92b={'id':_0x5d2712['uuid'],'type':'image','attributes':{'imageDimension':_0x2b1e95,..._0x18305b}};this['_insertAsset'](_0x4ad92b,_0x283d19,_0x51bee9);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x5cdc1d=>{'idle'===_0x5cdc1d['detail']['status']&&!_0x5cdc1d['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===i['Local']?this['_api']['setCurrentActivity'](i['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x221ac9,_0xdb6704,_0x482ce1){const _0x2c7ad9=this['_editor']['model']['document']['selection'],_0xd39847=_0x2c7ad9['getSelectedElement'](),_0xd0044d=!(!_0xd39847||!_0xd39847['is']('element','imageInline'));_0x482ce1['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x221ac9,_0xd0044d),_0xdb6704||_0x482ce1['setSelection'](_0x2c7ad9['getLastPosition']());}['_insertImage'](_0x2f0a84,_0x38cdcc){const _0x122cfa=this['_editor'],{imageDimension:_0x4b8add,imageFallbackUrl:_0x5cdce2,imageSources:_0x33a00d}=_0x2f0a84['attributes'];_0x122cfa['execute']('insertImage',{'imageType':_0x38cdcc?'imageInline':null,'source':{'uploadcareImageId':_0x2f0a84['id'],'src':_0x5cdce2,'sources':_0x33a00d,..._0x4b8add}});}}class w extends _0x1830ed{['_editing'];['_controller']=null;static get['requires'](){return[_0x2e6c28,o];}constructor(_0x5148e9){super(_0x5148e9),this['_editing']=_0x5148e9['plugins']['get'](o);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x45f308){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new n(this['editor'],this['_editing'],_0x45f308);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class j{static['upload']({file:_0x955f4,..._0x13b97a}){return _0x24cf34(_0x955f4,_0x13b97a);}static['getInfo'](_0x2e8701,_0x4e9160){return _0x3eb9c5(_0x2e8701,_0x4e9160);}}class f extends _0x2f79a5{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x390e61,o];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x532221=this['editor'];if(!!!_0x532221['config']['get']('uploadcare'))return;_0x532221['plugins']['get'](_0x390e61)['createUploadAdapter']=_0x5312ac=>new k(_0x5312ac,_0x532221),_0x532221['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x980089,{imageElement:_0x22c9d4,data:_0x13df57})=>{_0x532221['model']['change'](_0x5dbcb0=>{_0x5dbcb0['setAttribute']('uploadcareImageId',_0x13df57['uploadcareImageId'],_0x22c9d4);});});}}class k{['loader'];['editor'];['controller'];constructor(_0x35aa85,_0x5b4fd4){this['loader']=_0x35aa85,this['editor']=_0x5b4fd4,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x26e407=await this['loader']['file'];return j['upload']({'file':_0x26e407,'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':_0xc67a02=>{_0xc67a02&&_0xc67a02['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0xc67a02['value']);}})['then'](async _0x376e24=>{const {imageFallbackUrl:_0x17911b,imageSources:_0x8f0e5}=C(_0x376e24['cdnUrl'],_0x376e24['imageInfo']['width']);return{'uploadcareImageId':_0x376e24['uuid'],'default':_0x17911b,'sources':_0x8f0e5};})['catch'](()=>{const _0x2f0296=t('Cannot\x20upload\x20file:')+('\x20'+_0x26e407['name']+'.');return Promise['reject'](_0x2f0296);});}['abort'](){this['controller']['abort']();}}class o extends _0x2f79a5{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',f,_0x2e6c28];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['ucContextId'];get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}constructor(_0x3421d5){super(_0x3421d5),this['ucContextId']=_0x3c0092();}['init'](){const _0x137403=this['editor'];_0x137403['commands']['add']('uploadcare',new w(_0x137403));}['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 _0x2431f4=_0x4ac7e1['document']['querySelector']('input[uploadcare-file-input]');_0x2431f4&&_0x2431f4['remove']();}),async function(_0x332dac){const _0x55cded=_0x126b79([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]),_0x13bcf6=0x535f8c3a,_0x1885d7=0x5358f13a^_0x13bcf6,_0x52667c=window[_0x126b79([0x44,0x61,0x74,0x65])][_0x126b79([0x6e,0x6f,0x77])](),_0xa8df5e=_0x332dac[_0x126b79([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x59be24=new window[(_0x126b79([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1c97ae=>{_0xa8df5e[_0x126b79([0x6f,0x6e,0x63,0x65])](_0x126b79([0x72,0x65,0x61,0x64,0x79]),_0x1c97ae);}),_0x120ca7={[_0x126b79([0x6b,0x74,0x79])]:_0x126b79([0x45,0x43]),[_0x126b79([0x75,0x73,0x65])]:_0x126b79([0x73,0x69,0x67]),[_0x126b79([0x63,0x72,0x76])]:_0x126b79([0x50,0x2d,0x32,0x35,0x36]),[_0x126b79([0x78])]:_0x126b79([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]),[_0x126b79([0x79])]:_0x126b79([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]),[_0x126b79([0x61,0x6c,0x67])]:_0x126b79([0x45,0x53,0x32,0x35,0x36])},_0x81a596=_0xa8df5e[_0x126b79([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x126b79([0x67,0x65,0x74])](_0x126b79([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x172d06(){let _0x44b950,_0x318556=null,_0x32b2f4=null;try{if(_0x81a596==_0x126b79([0x47,0x50,0x4c]))return _0x126b79([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x44b950=_0x5dd5e0(),!_0x44b950)return _0x126b79([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x44b950[_0x126b79([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x32b2f4=_0x51bd60(_0x44b950[_0x126b79([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x44b950[_0x126b79([0x6a,0x74,0x69])])),await _0x570984()?_0x380e00()?_0x2f16d4()?_0x126b79([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x19d8a2()?(_0x44b950[_0x126b79([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x126b79([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x318556=_0x494d0f(_0x126b79([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x44b950[_0x126b79([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x126b79([0x74,0x72,0x69,0x61,0x6c])&&(_0x318556=_0x494d0f(_0x126b79([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x165f0c()):_0x126b79([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x126b79([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x126b79([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x126b79([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x2f16d4(){const _0x495492=[_0x126b79([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x126b79([0x74,0x72,0x69,0x61,0x6c])][_0x126b79([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x44b950[_0x126b79([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x52667c/0x3e8:0xe10*_0x1885d7;return _0x44b950[_0x126b79([0x65,0x78,0x70])]<_0x495492;}function _0x380e00(){const _0x4a14c5=_0x44b950[_0x126b79([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x4a14c5&&(!!_0x4a14c5[_0x126b79([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x126b79([0x2a]))||!!_0x4a14c5[_0x126b79([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x126b79([0x55,0x50,0x4c,0x43])));}function _0x19d8a2(){const _0x433a6f=_0x44b950[_0x126b79([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x433a6f||0x0==_0x433a6f[_0x126b79([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x128d59}=new URL(window[_0x126b79([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x433a6f[_0x126b79([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x128d59))return!0x0;const _0xd8fbf=_0x128d59[_0x126b79([0x73,0x70,0x6c,0x69,0x74])](_0x126b79([0x2e]));return _0x433a6f[_0x126b79([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x400b7b=>_0x400b7b[_0x126b79([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x126b79([0x2a])))[_0x126b79([0x6d,0x61,0x70])](_0x155760=>_0x155760[_0x126b79([0x73,0x70,0x6c,0x69,0x74])](_0x126b79([0x2e])))[_0x126b79([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x5e1d17=>_0x5e1d17[_0x126b79([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0xd8fbf[_0x126b79([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x126b79([0x6d,0x61,0x70])](_0x2c4186=>Array(_0xd8fbf[_0x126b79([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x2c4186[_0x126b79([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x126b79([0x66,0x69,0x6c,0x6c])](_0x2c4186[0x0]===_0x126b79([0x2a])?_0x126b79([0x2a]):'')[_0x126b79([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x2c4186))[_0x126b79([0x73,0x6f,0x6d,0x65])](_0x531596=>_0xd8fbf[_0x126b79([0x65,0x76,0x65,0x72,0x79])]((_0x4430c2,_0x295ab3)=>_0x531596[_0x295ab3]===_0x4430c2||_0x531596[_0x295ab3]===_0x126b79([0x2a])));}function _0x165f0c(){return _0x318556&&_0x32b2f4?new window[(_0x126b79([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x39d22e,_0x5c40a7)=>{_0x318556[_0x126b79([0x74,0x68,0x65,0x6e])](_0x39d22e,_0x5c40a7),_0x32b2f4[_0x126b79([0x74,0x68,0x65,0x6e])](_0x2b2992=>{_0x2b2992!=_0x126b79([0x56,0x61,0x6c,0x69,0x64])&&_0x39d22e(_0x2b2992);},_0x5c40a7);}):_0x318556||_0x32b2f4||_0x126b79([0x56,0x61,0x6c,0x69,0x64]);}}function _0x51bd60(_0x99f5ac,_0x3eab88){return new window[(_0x126b79([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x6ccbf0=>{if(_0x67ab8d())return _0x6ccbf0(_0x126b79([0x56,0x61,0x6c,0x69,0x64]));_0x2b4a44(),_0xa8df5e[_0x126b79([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x126b79([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x40d010=!0x1;const _0x5d689a=_0x3c0092();function _0x5e1149(_0x29665a){return!!_0x29665a&&(typeof _0x29665a===_0x126b79([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x29665a===_0x126b79([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x29665a[_0x126b79([0x74,0x68,0x65,0x6e])]===_0x126b79([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x29665a[_0x126b79([0x63,0x61,0x74,0x63,0x68])]===_0x126b79([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x38bd13(_0x49a520){_0x32562e(_0x49a520)[_0x126b79([0x74,0x68,0x65,0x6e])](_0x3eb0b4=>{if(!_0x3eb0b4||_0x3eb0b4[_0x126b79([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x126b79([0x6f,0x6b]))return _0x126b79([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x24a2f3(_0x433e8a(_0x5d689a+_0x3eab88))!=_0x3eb0b4[_0x126b79([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x126b79([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x126b79([0x56,0x61,0x6c,0x69,0x64]);})[_0x126b79([0x74,0x68,0x65,0x6e])](_0x12d3cd=>(_0x31e640(),_0x12d3cd),()=>{const _0x47b786=_0x3061a0();return null==_0x47b786?(_0x31e640(),_0x126b79([0x56,0x61,0x6c,0x69,0x64])):_0x126b79(_0x52667c-_0x47b786>(0x7753083a^_0x13bcf6)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x126b79([0x74,0x68,0x65,0x6e])](_0x6ccbf0)[_0x126b79([0x63,0x61,0x74,0x63,0x68])](()=>{_0x6ccbf0(_0x126b79([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x44d149=0x536962ba^_0x13bcf6;function _0x31e640(){const _0x294463=_0x126b79([0x6c,0x6c,0x63,0x74,0x2d])+_0x24a2f3(_0x433e8a(_0x99f5ac)),_0x6a8208=_0x1af99a(_0x24a2f3(window[_0x126b79([0x4d,0x61,0x74,0x68])][_0x126b79([0x63,0x65,0x69,0x6c])](_0x52667c/_0x44d149)));window[_0x126b79([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x126b79([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x294463,_0x6a8208);}function _0x3061a0(){const _0x111eef=_0x126b79([0x6c,0x6c,0x63,0x74,0x2d])+_0x24a2f3(_0x433e8a(_0x99f5ac)),_0x42d062=window[_0x126b79([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x126b79([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x111eef);return _0x42d062?window[_0x126b79([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1af99a(_0x42d062),0x10)*_0x44d149:null;}function _0x32562e(_0x418236){return new window[(_0x126b79([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x43db31,_0x10266a)=>{_0x418236[_0x126b79([0x74,0x68,0x65,0x6e])](_0x43db31,_0x10266a),window[_0x126b79([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x10266a,0x535e58fa^_0x13bcf6);});}}_0xa8df5e[_0x126b79([0x6f,0x6e])](_0x126b79([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x5aaa39,_0x339834)=>{if(_0x339834[0x0]!=_0x99f5ac)return _0x6ccbf0(_0x126b79([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x339834[0x1]={..._0x339834[0x1],[_0x126b79([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x5d689a};},{[_0x126b79([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x126b79([0x68,0x69,0x67,0x68])}),_0xa8df5e[_0x126b79([0x6f,0x6e])](_0x126b79([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x359d26=>{_0x5e1149(_0x359d26[_0x126b79([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x40d010=!0x0,_0x38bd13(_0x359d26[_0x126b79([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x126b79([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x126b79([0x6c,0x6f,0x77])}),_0x59be24[_0x126b79([0x74,0x68,0x65,0x6e])](()=>{_0x40d010||_0x6ccbf0(_0x126b79([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x67ab8d(){return _0xa8df5e[_0x126b79([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x126b79([0x76,0x69,0x65,0x77])][_0x126b79([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x126b79([0x61,0x75,0x74,0x6f]);}function _0x2b4a44(){_0xa8df5e[_0x126b79([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x126b79([0x76,0x69,0x65,0x77])][_0x126b79([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x126b79([0x61,0x75,0x74,0x6f]);}}function _0x494d0f(_0x3b3a19){const _0x264257=[new window[(_0x126b79([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x393c9b=>setTimeout(_0x393c9b,0x5356b2f6^_0x13bcf6)),_0x59be24[_0x126b79([0x74,0x68,0x65,0x6e])](()=>new window[(_0x126b79([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1352c0=>{let _0x3e74e3=0x0;_0xa8df5e[_0x126b79([0x6d,0x6f,0x64,0x65,0x6c])][_0x126b79([0x6f,0x6e])](_0x126b79([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x4e6d68,_0x3125fa)=>{_0x3125fa[0x0][_0x126b79([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x3e74e3++,_0x3e74e3==(0x535f89d2^_0x13bcf6)&&(_0x1352c0(),_0x4e6d68[_0x126b79([0x6f,0x66,0x66])]());});}))];return window[_0x126b79([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x126b79([0x72,0x61,0x63,0x65])](_0x264257)[_0x126b79([0x74,0x68,0x65,0x6e])](()=>_0x3b3a19);}async function _0x42e89e(){await _0x59be24,_0xa8df5e[_0x126b79([0x6d,0x6f,0x64,0x65,0x6c])][_0x126b79([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x533dad,_0xa8df5e[_0x126b79([0x6d,0x6f,0x64,0x65,0x6c])][_0x126b79([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x533dad,_0xa8df5e[_0x126b79([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x126b79([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x3cf6d2(_0x3d3ac2){const _0x48808d=_0x2dae30();_0xa8df5e[_0x48808d]=_0x126b79([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x3d3ac2,_0x3d3ac2!=_0x126b79([0x56,0x61,0x6c,0x69,0x64])&&_0x42e89e();}function _0x2dae30(){const _0x40bdbf=window[_0x126b79([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x126b79([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x126b79([0x6e,0x6f,0x77])]())[_0x126b79([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x126b79([0x2e]),'');let _0x31eebc=_0x126b79([0x68]);for(let _0x269368=0x0;_0x269368<_0x40bdbf[_0x126b79([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x269368+=0x2){let _0x18a06f=window[_0x126b79([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x40bdbf[_0x126b79([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x269368,_0x269368+0x2));_0x18a06f>=_0x55cded[_0x126b79([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x18a06f-=_0x55cded[_0x126b79([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x31eebc+=_0x55cded[_0x18a06f];}return _0x31eebc;}function _0x5dd5e0(){const _0x3b2bc5=_0x81a596[_0x126b79([0x73,0x70,0x6c,0x69,0x74])](_0x126b79([0x2e]));if(0x3!=_0x3b2bc5[_0x126b79([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x397a41(_0x3b2bc5[0x1]);function _0x397a41(_0x1d113c){const _0x158849=_0x293297(_0x1d113c);return _0x158849&&_0x367724()?_0x158849:null;function _0x367724(){const _0x5abf0e=_0x158849[_0x126b79([0x6a,0x74,0x69])],_0x56628e=window[_0x126b79([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5abf0e[_0x126b79([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x5abf0e[_0x126b79([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x23abe2={..._0x158849,[_0x126b79([0x6a,0x74,0x69])]:_0x5abf0e[_0x126b79([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x5abf0e[_0x126b79([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x23abe2[_0x126b79([0x76,0x63])],_0x433e8a(_0x23abe2)==_0x56628e;}}}async function _0x570984(){let _0x222359=!0x0;try{const _0x4c2bd4=_0x81a596[_0x126b79([0x73,0x70,0x6c,0x69,0x74])](_0x126b79([0x2e])),[_0xc204dc,_0x280482,_0x2e601c]=_0x4c2bd4;return _0x3eaba8(_0xc204dc),await _0x56fc54(_0xc204dc,_0x280482,_0x2e601c),_0x222359;}catch{return!0x1;}function _0x3eaba8(_0x3ac7a6){const _0x10030b=_0x293297(_0x3ac7a6);_0x10030b&&_0x10030b[_0x126b79([0x61,0x6c,0x67])]==_0x126b79([0x45,0x53,0x32,0x35,0x36])||(_0x222359=!0x1);}async function _0x56fc54(_0x405fa4,_0x3dabdf,_0xc29fb2){const _0xed7538=window[_0x126b79([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x126b79([0x66,0x72,0x6f,0x6d])](_0x1c6716(_0xc29fb2),_0x454373=>_0x454373[_0x126b79([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x14482c=new window[(_0x126b79([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x126b79([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x405fa4+_0x126b79([0x2e])+_0x3dabdf),_0x5a4f89=window[_0x126b79([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x126b79([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x5a4f89)return;const _0xd8e5b6=await _0x5a4f89[_0x126b79([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x126b79([0x6a,0x77,0x6b]),_0x120ca7,{[_0x126b79([0x6e,0x61,0x6d,0x65])]:_0x126b79([0x45,0x43,0x44,0x53,0x41]),[_0x126b79([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x126b79([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x126b79([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x5a4f89[_0x126b79([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x126b79([0x6e,0x61,0x6d,0x65])]:_0x126b79([0x45,0x43,0x44,0x53,0x41]),[_0x126b79([0x68,0x61,0x73,0x68])]:{[_0x126b79([0x6e,0x61,0x6d,0x65])]:_0x126b79([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0xd8e5b6,_0xed7538,_0x14482c)||(_0x222359=!0x1);}}function _0x293297(_0x48ac46){return _0x48ac46[_0x126b79([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x126b79([0x65,0x79]))?JSON[_0x126b79([0x70,0x61,0x72,0x73,0x65])](_0x1c6716(_0x48ac46)):null;}function _0x1c6716(_0x4ddc52){return window[_0x126b79([0x61,0x74,0x6f,0x62])](_0x4ddc52[_0x126b79([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x126b79([0x2b]))[_0x126b79([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x126b79([0x2f])));}function _0x433e8a(_0x53632f){let _0x23c846=0x1505;function _0x87ab(_0x5cfd6f){for(let _0x4aa595=0x0;_0x4aa595<_0x5cfd6f[_0x126b79([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4aa595++){const _0x50fa2f=_0x5cfd6f[_0x126b79([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x4aa595);_0x23c846=(_0x23c846<<0x5)+_0x23c846+_0x50fa2f,_0x23c846&=_0x23c846;}}function _0x2ab192(_0xecb802){Array[_0x126b79([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0xecb802)?_0xecb802[_0x126b79([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x2ab192):_0xecb802&&typeof _0xecb802==_0x126b79([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x126b79([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0xecb802)[_0x126b79([0x73,0x6f,0x72,0x74])]()[_0x126b79([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x1ab822,_0x4f70ae])=>{_0x87ab(_0x1ab822),_0x2ab192(_0x4f70ae);}):_0x87ab(window[_0x126b79([0x53,0x74,0x72,0x69,0x6e,0x67])](_0xecb802));}return _0x2ab192(_0x53632f),_0x23c846>>>0x0;}function _0x24a2f3(_0x12a230){return _0x12a230[_0x126b79([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x126b79([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x126b79([0x30]));}function _0x1af99a(_0x4b1799){return _0x4b1799[_0x126b79([0x73,0x70,0x6c,0x69,0x74])]('')[_0x126b79([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x126b79([0x6a,0x6f,0x69,0x6e])]('');}function _0x533dad(){}function _0x126b79(_0x190a7a){return _0x190a7a['map'](_0x51d8c8=>String['fromCharCode'](_0x51d8c8))['join']('');}_0x3cf6d2(await _0x172d06());}(this);}['_initSchema'](){const _0x1b5ad6=this['editor']['model']['schema'];_0x1b5ad6['isRegistered']('imageBlock')&&_0x1b5ad6['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x1b5ad6['isRegistered']('imageInline')&&_0x1b5ad6['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x3136ee=this['editor'];_0x3136ee['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x3136ee['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x383b11=>_0x383b11['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x50299b=_0x3136ee['commands']['get']('replaceImageSource');_0x50299b&&this['listenTo'](_0x50299b,'cleanupImage',(_0x5c4d55,[_0x59490b,_0x548c78])=>{_0x59490b['removeAttribute']('uploadcareImageId',_0x548c78);});}['_initConfig'](){const _0x513691=this['editor']['config']['get']('uploadcare.uploader')||{},_0x2939e6=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x414e74(_0x4ac7e1['document'],'uc-config',{..._0x513691,'pubkey':_0x2939e6,'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']=_0x258182=>{if('closeMax'==_0x258182)return'#uc-icon-arrow-down';},_0x4ac7e1['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x414e74(_0x4ac7e1['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader-'+this['ucContextId']}),_0x4ac7e1['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x5a3172=this['editor']['commands']['get']('insertImage');_0x5a3172&&this['listenTo'](_0x5a3172,'execute',()=>{const _0x5e1395=this['editor']['model']['document']['selection']['getSelectedElement']();_0x5e1395&&_0x5e1395['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x5e1395);});});const _0x24a4c1=this['editor']['commands']['get']('uploadcareImageReplace');_0x24a4c1&&this['listenTo'](_0x24a4c1,'execute',()=>{const _0x2b0ecd=this['editor']['model']['document']['selection']['getSelectedElement']();_0x2b0ecd&&_0x2b0ecd['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x2b0ecd);});});}}class tt extends _0x2f79a5{static get['requires'](){return[o,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x250d4f){super(_0x250d4f),_0x250d4f['config']['define']('uploadcare.uploader.sourceList',[i['Local'],i['URL']]),_0x49e498['defineComponents'](_0x49e498),this['_defineLocale']();}['_defineLocale'](){const _0xd15c67=this['editor']['config']['get']('uploadcare.locale'),_0x4563cc=this['editor']['locale']['contentLanguage'];_0xd15c67&&_0x49e498['defineLocale'](_0x4563cc,_0xd15c67);}}class ii extends _0x119922{constructor(_0x36a4e0){super(_0x36a4e0);const t=_0x36a4e0['t'],_0x25b67c=this['bindTemplate'],_0x543f83=new _0x7ad9c6();_0x543f83['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':[_0x543f83,{'text':_0x25b67c['to']('imageUploadProgress',_0xf629ff=>t('Loading\x20image...')+'\x20('+(_0xf629ff||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 _0x119922{constructor(_0x145744){super(_0x145744);const t=_0x145744['t'];this['set']('errorType',null);const _0x1b0cd3=new _0x484af9(_0x145744);_0x1b0cd3['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x1b0cd3['withText']=!0x0,_0x1b0cd3['class']='ck-button-action',_0x1b0cd3['on']('execute',()=>{this['fire']('retry');}),_0x1b0cd3['bind']('isVisible')['to'](this,'errorType',_0x4ae395=>'NotFound'!==_0x4ae395);const _0x1b549c=new _0x1494c4();_0x1b549c['content']=_0x19ea19,_0x1b549c['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x4f0df7=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':[_0x1b549c,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x4f0df7['to']('errorType',_0x3e0a8f=>t('NotFound'!==_0x3e0a8f?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x1b0cd3]},{'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 _0x119922{constructor(_0x4b28d0,_0x18f429){super(_0x4b28d0);const _0x17fe18=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x18f429,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x17fe18['to']('imageSrc')}});}}class X extends F{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x3c86a2,_0x4829d8,_0x1f75f6){super(_0x3c86a2),this['_items']=this['createCollection'](),this['_loadingView']=new ii(_0x3c86a2),this['_errorView']=new ti(_0x3c86a2),this['_editingView']=new ei(_0x3c86a2,_0x1f75f6),this['_focusableView']=new _0x119922(_0x3c86a2),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x4829d8),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'],_0x11f5f4=>{this['_addUploadcareImageEditorListeners'](_0x11f5f4);});}),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'](_0x34ac9c,_0x41eb43){const _0x23408b='uc-cloud-image-editor',_0x17d2e8=_0x34ac9c['querySelector'](_0x23408b);if(_0x17d2e8)return _0x41eb43(_0x17d2e8);const _0x5b8c6a=new MutationObserver(_0x453bec=>{const _0x599d17=_0x453bec['filter'](_0xfcc656=>_0xfcc656['target']===_0x34ac9c&&_0xfcc656['addedNodes']['length']>0x0&&_0xfcc656['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x23408b);_0x599d17['length']&&(_0x5b8c6a['disconnect'](),_0x41eb43(_0x599d17[0x0]['addedNodes'][0x0]));});_0x5b8c6a['observe'](_0x34ac9c,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x1ac745){_0x1ac745['addEventListener']('apply',_0x5834dd=>{this['fire']('apply',{'imageSrc':_0x5834dd['detail']['cdnUrl']});}),_0x1ac745['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class E extends/* #__PURE__ -- @preserve */
25
- _0xb0242e(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x9c7986,_0x2e028e,_0x4546c4){super(),this['_editor']=_0x9c7986,this['_dialog']=_0x2e028e,this['_imageElement']=_0x4546c4,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 _0x5bfddd=this['_imageElement'],_0x5838ee=_0x5bfddd['getAttribute']('uploadcareImageId'),_0x1563ee=_0x5bfddd['getAttribute']('src');if(_0x5838ee)await this['_loadImageInfo'](_0x5838ee,_0x1563ee);else{if(this['_imageCache']['has'](_0x1563ee)){const _0x5c97eb=this['_imageCache']['get'](_0x1563ee);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x5c97eb['url'],this['imageDimension']=_0x5c97eb['dimension'],this['imageId']=_0x5c97eb['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x41f410}=this['_editor'],t=_0x41f410['t'],_0x41d100=new X(_0x41f410,this['imageStatus'],this['_attributes']);_0x41d100['bind']('status')['to'](this,'imageStatus'),_0x41d100['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x41d100['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x41d100['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x41d100,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x5d9d5d,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x41d100,'position':_0x297a66['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x41d100['focus']();},'onHide':()=>{_0x41d100['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x3ff7e3=>!A(_0x3ff7e3,_0x41d100['element'])}});}['_loadImageInfo'](_0x32e875,_0x1065a0){return j['getInfo'](_0x32e875,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl')})['then'](_0x9de78a=>{const {width:_0x1ee9b2,height:_0x524137}=_0x9de78a['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x1065a0,this['imageDimension']={'width':_0x1ee9b2,'height':_0x524137},this['imageId']=_0x32e875;})['catch'](_0x5ec250=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x5ec250['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x5ebe96,_0x2e8286){return this['_getImageAsFile'](_0x5ebe96)['then'](_0x3fa770=>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':_0x2e8286['signal'],'file':_0x3fa770,'onProgress':_0x2c3d6b=>{_0x2c3d6b&&_0x2c3d6b['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x2c3d6b['value']));}}))['then'](_0x40bc40=>{const {width:_0x394a31,height:_0x23b3a9}=_0x40bc40['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x40bc40['cdnUrl'],this['imageDimension']={'width':_0x394a31,'height':_0x23b3a9},this['imageId']=_0x40bc40['uuid'],this['imageUploadProgress']=null;const _0x894a87=_0x5ebe96['getAttribute']('src');this['_imageCache']['set'](_0x894a87,{'id':_0x40bc40['uuid'],'url':_0x40bc40['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0xce19bd=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0xce19bd['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x17c1c3,_0x2639db){_0x17c1c3['on']('apply',(_0x42e3fc,_0x13b52d)=>{this['_replaceImage'](_0x2639db,_0x13b52d['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x17c1c3['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x17c1c3['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x506c1a,_0x39d6cf,_0x36b681){const _0x2c1bc4=this['_editor'],{width:_0x1d04b8,height:_0x4c73bb}=S(_0x39d6cf,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x4f3f9e,imageSources:_0x3b0f69}=C(_0x39d6cf,_0x1d04b8);_0x2c1bc4['model']['change'](_0x5e5b8e=>{if('$graveyard'===_0x506c1a['root']['rootName']){_0x2c1bc4['execute']('insertImage',{'imageType':_0x506c1a['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x506c1a['getAttributes']()),'uploadcareImageId':_0x36b681,'src':_0x4f3f9e,'sources':_0x3b0f69,'width':_0x1d04b8,'height':_0x4c73bb}});const _0x3b3d6e=_0x506c1a['getChildren']();_0x506c1a=_0x2c1bc4['model']['document']['selection']['getSelectedElement']();for(const _0x3a97f4 of _0x3b3d6e)_0x5e5b8e['append'](_0x5e5b8e['cloneElement'](_0x3a97f4),_0x506c1a);}else _0x5e5b8e['setSelection'](_0x506c1a,'on'),_0x2c1bc4['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x506c1a['getAttributes']()),'uploadcareImageId':_0x36b681,'src':_0x4f3f9e,'sources':_0x3b0f69,'width':_0x1d04b8,'height':_0x4c73bb},_0x506c1a);_0x5e5b8e['setSelection'](_0x506c1a,'on');});}async['_getImageAsFile'](_0x4e616c){const _0x39e53c=_0x4ac7e1['window'],_0x3ac222=_0x4ac7e1['document']['location']['href'],_0x54f5a5=new _0x39e53c['URL'](_0x4e616c['getAttribute']('src'),_0x3ac222);if('data:'===_0x54f5a5['protocol']){const _0x2c7ab5=_0x54f5a5['href']['split'](','),_0x382c96=_0x2c7ab5[0x0]['match'](/:(.*?);/)[0x1],_0x512f45=_0x382c96['split']('/')[0x1],_0x4ed75c=_0x39e53c['atob'](_0x2c7ab5[_0x2c7ab5['length']-0x1]);let _0x3c2bb8=_0x4ed75c['length'];const _0x25eb1=new _0x39e53c['Uint8Array'](_0x3c2bb8);for(;_0x3c2bb8--;)_0x25eb1[_0x3c2bb8]=_0x4ed75c['charCodeAt'](_0x3c2bb8);return new _0x39e53c['File']([_0x25eb1],'image.'+_0x512f45,{'type':_0x382c96});}const _0x29e455=_0x54f5a5['href']['split']('/'),_0x1b9ddf=_0x29e455[_0x29e455['length']-0x1],_0x53527f=_0x1b9ddf['split']('.')[0x1];return _0x39e53c['fetch'](_0x54f5a5['href'])['then'](_0xf30b89=>_0xf30b89['clone']()['blob']())['then'](_0xbf2db=>new _0x39e53c['File']([_0xbf2db],_0x1b9ddf,{'type':'image/'+_0x53527f}));}}class O extends _0x1830ed{['imageEditController'];static get['requires'](){return[_0x2e6c28];}['_isEditable'];constructor(_0x5d2379){super(_0x5d2379),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x1a750f){const _0x4c85cb=G(_0x1a750f);return _0x1dc681=>!(!_0x1dc681||!_0x1dc681['is']('element','imageBlock')&&!_0x1dc681['is']('element','imageInline'))&&(!!_0x1dc681['hasAttribute']('uploadcareImageId')||!!_0x1dc681['hasAttribute']('src')&&_0x4c85cb(_0x1dc681['getAttribute']('src')));}(_0x5d2379['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x111df7=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x111df7);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x5edff7=this['editor']['model']['document']['selection']['getSelectedElement']();_0x5edff7&&(_0x5edff7['is']('element','imageBlock')||_0x5edff7['is']('element','imageInline'))&&(this['imageEditController']=new E(this['editor'],this['editor']['plugins']['get'](_0x2e6c28),_0x5edff7),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class R extends _0x1830ed{['refresh'](){const _0x3abfde=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x3abfde&&(_0x3abfde['is']('element','imageBlock')||_0x3abfde['is']('element','imageInline')));}['execute'](_0x4e8f11){const _0x579c48=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x309a5b=>{_0x309a5b['setAttributes'](_0x4e8f11,_0x579c48),_0x309a5b['removeAttribute']('srcset',_0x579c48),_0x309a5b['removeAttribute']('sizes',_0x579c48);});}}class m extends _0x2f79a5{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[o,_0xc388b8,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x3e6153}=this;_0x3e6153['commands']['add']('uploadcareImageEdit',new O(_0x3e6153)),_0x3e6153['commands']['add']('uploadcareImageReplace',new R(_0x3e6153));}}class g extends _0x2f79a5{['_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 _0xc6b9d8=this['editor'];_0xc6b9d8['ui']['componentFactory']['add']('uploadcareImageEdit',_0x971d0a=>{const _0x45fac6=_0xc6b9d8['commands']['get']('uploadcareImageEdit'),_0x3481d8=new _0x484af9(_0x971d0a),t=_0x971d0a['t'];return _0x3481d8['set']({'icon':_0x5d9d5d,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x3481d8['bind']('isEnabled')['to'](_0x45fac6),_0x3481d8['bind']('isOn')['to'](_0x45fac6,'isActive'),this['listenTo'](_0x3481d8,'execute',()=>{_0xc6b9d8['execute']('uploadcareImageEdit'),_0xc6b9d8['editing']['view']['focus']();}),_0x3481d8;}),this['_initConfig']();}['_initConfig'](){const _0x20ee2c=_0x414e74(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x20ee2c),this['listenTo'](this['editor'],'destroy',()=>{_0x20ee2c['remove']();});}}class et extends _0x2f79a5{static get['pluginName'](){return'UploadcareImageEdit';}static get['requires'](){return[m,g];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{tt as Uploadcare,w as UploadcareCommand,o as UploadcareEditing,et as UploadcareImageEdit,O as UploadcareImageEditCommand,m as UploadcareImageEditEditing,g as UploadcareImageEditUI,e as UploadcareUI,f as UploadcareUploadAdapter};
23
+ import{Plugin as _0x1b064f,Command as _0x3b0801}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x187d40,IconGooglePhotos as _0x1d0c1f,IconGoogleDrive as _0x1cf962,IconFacebook as _0x26904e,IconDropbox as _0x3b423c,IconUploadcareLink as _0x3642d4,IconUploadcareImageUpload as _0x53da62,IconError as _0x3615d0,IconUploadcareImageEdit as _0x5aed85}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x4005d2,MenuBarMenuListItemButtonView as _0x2350bd,View as _0x1c726e,FocusCycler as _0x4f27cf,Dialog as _0x402fe0,DialogViewPosition as _0x1cc742,SpinnerView as _0x3f9bcd,IconView as _0x4b8abe,Notification as _0x246b07}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x5aae8c,DomEmitterMixin as _0x5b3f05,global as _0x29646b,getAncestors as _0x592d94,ObservableMixin as _0x3f8b0f,uid as _0x2d292f,createElement as _0x39b067}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x429082}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x2100c5,info as _0x448894}from'@uploadcare/upload-client';import*as _0x25d53f from'@uploadcare/file-uploader';var i=function(_0x2284a8){return _0x2284a8['Local']='local',_0x2284a8['URL']='url',_0x2284a8['Dropbox']='dropbox',_0x2284a8['GDrive']='gdrive',_0x2284a8['Facebook']='facebook',_0x2284a8['GPhotos']='gphotos',_0x2284a8['OneDrive']='onedrive',_0x2284a8;}({});function _(_0x10c781,_0x295927,_0x41b639){const t=_0x10c781['t'],_0x3539d4=_0x10c781['t'];switch(_0x295927){case i['Local']:return{'text':_0x3539d4('Insert'===_0x41b639?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x3539d4('From\x20computer')};case i['URL']:return{'text':'Insert'===_0x41b639?_0x3539d4('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x3539d4('Via\x20URL')};case i['Dropbox']:return{'text':t('Insert'===_0x41b639?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case i['Facebook']:return{'text':t('Insert'===_0x41b639?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case i['GDrive']:return{'text':t('Insert'===_0x41b639?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case i['GPhotos']:return{'text':t('Insert'===_0x41b639?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case i['OneDrive']:return{'text':t('Insert'===_0x41b639?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x295927;}}class e extends _0x1b064f{['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 _0x46a658=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x42f97c;for(const _0x4db3d4 in _0x46a658){const _0x1ce1e4=_0x4db3d4,_0x5bbd15=_0x46a658[_0x1ce1e4];if('uploadcareLicenseKeyValid'==_0x5bbd15||'uploadcareLicenseKeyInvalid'==_0x5bbd15||'uploadcareLicenseKeyExpired'==_0x5bbd15||'uploadcareLicenseKeyDomainLimit'==_0x5bbd15||'uploadcareLicenseKeyNotAllowed'==_0x5bbd15||'uploadcareLicenseKeyEvaluationLimit'==_0x5bbd15||'uploadcareLicenseKeyTrialLimit'==_0x5bbd15||'uploadcareLicenseKeyUsageLimit'==_0x5bbd15){delete _0x46a658[_0x1ce1e4],_0x42f97c=_0x5bbd15,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x42f97c&&_0x46a658['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x42f97c&&_0x46a658['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x42f97c&&_0x46a658['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x42f97c&&_0x46a658['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x42f97c&&_0x46a658['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyTrialLimit'==_0x42f97c&&_0x46a658['_showLicenseError']('trialLimit'),'uploadcareLicenseKeyUsageLimit'==_0x42f97c&&_0x46a658['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x18618d}=this,_0x14629e=_0x18618d['commands']['get']('uploadcare');if(!_0x14629e)return;const _0x13fcab=this['_normalizeConfigSourceList'](_0x18618d['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x4d90c9,_0x1f78ca)=>{const _0x2c36af=this['_getIntegrationKey'](_0x1f78ca['type']);return _0x4d90c9[_0x2c36af]||(_0x4d90c9[_0x2c36af]=[]),_0x4d90c9[_0x2c36af]['push'](_0x1f78ca),_0x4d90c9;},{});_0x18618d['plugins']['has']('ImageInsertUI')&&_0x18618d['commands']['get']('uploadcare')&&Object['entries'](_0x13fcab)['forEach'](([_0x2b3663,_0x1dcb1d])=>{_0x18618d['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x2b3663,'observable':()=>_0x14629e,'buttonViewCreator':()=>this['_createToolbarButton'](_0x1dcb1d),'formViewCreator':()=>this['_createDropdownButtons'](_0x1dcb1d),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x1dcb1d),'override':'assetManager'!==_0x2b3663});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x104ff6){const {locale:_0x5940a5}=this['editor'];return _0x104ff6['map'](_0x329acc=>{const _0x25164a=_(_0x5940a5,_0x329acc,'Insert');switch(_0x329acc){case i['Local']:return{'icon':_0x53da62,'type':i['Local'],..._0x25164a};case i['URL']:return{'icon':_0x3642d4,'type':i['URL'],..._0x25164a};case i['Dropbox']:return{'icon':_0x3b423c,'type':i['Dropbox'],..._0x25164a};case i['Facebook']:return{'icon':_0x26904e,'type':i['Facebook'],..._0x25164a};case i['GDrive']:return{'icon':_0x1cf962,'type':i['GDrive'],..._0x25164a};case i['GPhotos']:return{'icon':_0x1d0c1f,'type':i['GPhotos'],..._0x25164a};case i['OneDrive']:return{'icon':_0x187d40,'type':i['OneDrive'],..._0x25164a};}});}['_getIntegrationKey'](_0x48167a){switch(_0x48167a){case i['Local']:return'upload';case i['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x29eb97,_0x2bbbaa){const _0x726e8f=this['editor'],_0x50e509=new _0x29eb97(_0x726e8f['locale']),_0x3b7c49=_0x726e8f['commands']['get']('uploadcare');return _0x50e509['bind']('isEnabled')['to'](_0x3b7c49),_0x50e509['on']('execute',()=>{_0x3b7c49['execute'](_0x2bbbaa);}),_0x50e509;}['_createToolbarButton'](_0x3c9dc6){const {locale:_0x3f30b9}=this['editor'],_0x1152be=this['editor']['plugins']['get']('ImageInsertUI'),_0x2fd10b=_0x3c9dc6[0x0],_0x1708b5=this['_createButton'](_0x4005d2,_0x2fd10b['type']);return _0x1708b5['icon']=_0x2fd10b['icon'],_0x1708b5['bind']('label')['to'](_0x1152be,'isImageSelected',_0x739a4b=>_(_0x3f30b9,_0x2fd10b['type'],_0x739a4b?'Replace':'Insert')['text']),_0x1708b5['tooltip']=!0x0,_0x1708b5;}['_createDropdownButtons'](_0x2d588f){const {locale:_0x30a51a}=this['editor'],_0x526c0a=this['editor']['plugins']['get']('ImageInsertUI');return _0x2d588f['map'](_0x6a84f7=>{const _0x5eab31=this['_createButton'](_0x4005d2,_0x6a84f7['type']);return _0x5eab31['withText']=!0x0,_0x5eab31['icon']=_0x6a84f7['icon'],_0x5eab31['bind']('label')['to'](_0x526c0a,'isImageSelected',_0x20b797=>_(_0x30a51a,_0x6a84f7['type'],_0x20b797?'Replace':'Insert')['text']),_0x5eab31;});}['_createMenuBarButtons'](_0x3f3fb6){return _0x3f3fb6['map'](_0x32ddb5=>{const _0x35fe8f=this['_createButton'](_0x2350bd,_0x32ddb5['type']);return _0x35fe8f['icon']=_0x32ddb5['icon'],_0x35fe8f['label']=_0x32ddb5['shortText'],_0x35fe8f;});}}class F extends _0x1c726e{['focusTracker'];['focusCycler'];constructor(_0x21285b){super(_0x21285b),this['focusTracker']=new _0x5aae8c(),this['focusCycler']=new _0x4f27cf({'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(_0x1c4ba2,_0x5cc981){super(_0x1c4ba2),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-'+_0x5cc981}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}}function C(_0x2cca7a,_0x206de7){const _0x22c1a2=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x3c7c28=>_0x3c7c28<=_0x206de7)['map'](_0x4632d3=>_0x2cca7a['replace'](/\/$/,'')+'/-/resize/'+_0x4632d3+'x/\x20'+_0x4632d3+'w');return{'imageFallbackUrl':_0x2cca7a,'imageSources':[{'srcset':_0x22c1a2['join'](',\x20'),'sizes':'(max-width:\x20'+_0x206de7+'px)\x20100vw,\x20'+_0x206de7+'px','type':'image/webp'}]};}function S(_0x48b897,_0xec3281,_0x5b8765){const _0x1f9782=_0x48b897['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x1f9782?parseInt(_0x1f9782[0x1],0xa):_0xec3281,'height':_0x1f9782?parseInt(_0x1f9782[0x2],0xa):_0x5b8765};}function p(_0x526107,_0x6754e3){const _0x2ead01=new(_0x5b3f05())(),_0x53d1ab=_0x526107['plugins']['get']('ImageUtils'),_0x4d43f9=_0x526107['editing']['mapper']['toViewElement'](_0x6754e3),_0x1199dd=_0x53d1ab['findViewImgElement'](_0x4d43f9),_0x24ce20=_0x526107['editing']['view']['domConverter']['viewToDom'](_0x1199dd),_0x2ae70f=_0x6754e3['getAttribute']('width'),_0x12ce5d=_0x6754e3['getAttribute']('height'),_0x4ef07b='image-processing';_0x526107['editing']['view']['change'](_0x4d4ca2=>{_0x4d4ca2['addClass'](_0x4ef07b,_0x4d43f9),_0x4d4ca2['setStyle']('aspect-ratio',_0x2ae70f+'/'+_0x12ce5d,_0x1199dd);}),_0x2ead01['listenTo'](_0x24ce20,'load',()=>{_0x2ead01['stopListening'](_0x24ce20,'load'),_0x526107['editing']['view']['change'](_0x3ec33a=>{_0x3ec33a['removeClass'](_0x4ef07b,_0x4d43f9),_0x3ec33a['removeStyle']('aspect-ratio',_0x1199dd);});});}function G(_0x10d06e){if(Array['isArray'](_0x10d06e)){const _0x48431d=_0x10d06e['map'](G);return _0x666888=>_0x48431d['some'](_0x3e362f=>_0x3e362f(_0x666888));}if('origin'==_0x10d06e){const _0x5715d8=_0x29646b['window']['location']['origin'];return _0x3e2d24=>new URL(_0x3e2d24,_0x29646b['document']['baseURI'])['origin']==_0x5715d8;}return'function'==typeof _0x10d06e?_0x10d06e:_0x10d06e instanceof RegExp?_0x2f4904=>!(!_0x2f4904['match'](_0x10d06e)&&!_0x2f4904['replace'](/^https?:\/\//,'')['match'](_0x10d06e)):()=>!0x1;}function A(_0x2363dc,_0x377608){return _0x592d94(_0x2363dc['target'])['includes'](_0x377608);}class n extends/* #__PURE__ -- @preserve */
24
+ _0x3f8b0f(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x264833,_0xe69575,_0x1b8d8f){super(),this['_editor']=_0x264833,this['_editing']=_0xe69575,this['_dialog']=_0x264833['plugins']['get'](_0x402fe0),this['_api']=_0xe69575['ctxElement']['getAPI'](),this['_type']=_0x1b8d8f,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:_0x243aa3,model:_0x3a5208}=this['_editor'],_0x568e47=_0x3a5208['document']['selection']['getSelectedElement'](),_0x4069c0=_0x568e47&&(_0x568e47['is']('element','imageBlock')||_0x568e47['is']('element','imageInline'));this['_formView']=new x(_0x243aa3,this['_editing']['ucContextId']),this['_dialog']['show']({'id':'uploadCare','icon':_0x53da62,'title':_(_0x243aa3,this['_type'],_0x4069c0?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x1cc742['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x4855f2=>!A(_0x4855f2,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x1e0670}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x1e51a4=>{const _0x43da6b=_0x1e0670['length'];for(const _0x14247e of _0x1e0670){const _0x3cc999=_0x14247e===_0x1e0670[_0x43da6b-0x1],{cdnUrl:_0x3da384,fileInfo:_0x5bcd62}=_0x14247e;if(!_0x3da384||!_0x5bcd62)continue;const {width:_0x245a49,height:_0x1db130}=_0x5bcd62['imageInfo'],_0x4ab34e=S(_0x3da384,_0x245a49,_0x1db130),_0x35ac0b=C(_0x3da384,_0x4ab34e['width']),_0x500d70={'id':_0x5bcd62['uuid'],'type':'image','attributes':{'imageDimension':_0x4ab34e,..._0x35ac0b}};this['_insertAsset'](_0x500d70,_0x3cc999,_0x1e51a4);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x885fff=>{'idle'===_0x885fff['detail']['status']&&!_0x885fff['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===i['Local']?this['_api']['setCurrentActivity'](i['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x3f743f,_0x4d30ec,_0x4c377e){const _0x3619de=this['_editor']['model']['document']['selection'],_0x294b48=_0x3619de['getSelectedElement'](),_0x35d1c6=!(!_0x294b48||!_0x294b48['is']('element','imageInline'));_0x4c377e['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x3f743f,_0x35d1c6),_0x4d30ec||_0x4c377e['setSelection'](_0x3619de['getLastPosition']());}['_insertImage'](_0x229941,_0x38aac6){const _0x34d224=this['_editor'],{imageDimension:_0xe6e299,imageFallbackUrl:_0x4228f3,imageSources:_0x10f195}=_0x229941['attributes'];_0x34d224['execute']('insertImage',{'imageType':_0x38aac6?'imageInline':null,'source':{'uploadcareImageId':_0x229941['id'],'src':_0x4228f3,'sources':_0x10f195,..._0xe6e299}});}}class w extends _0x3b0801{['_editing'];['_controller']=null;static get['requires'](){return[_0x402fe0,o];}constructor(_0x3676a3){super(_0x3676a3),this['_editing']=_0x3676a3['plugins']['get'](o);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x414b60){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new n(this['editor'],this['_editing'],_0x414b60);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class j{static['upload']({file:_0x62903e,..._0x38f99b}){return _0x2100c5(_0x62903e,_0x38f99b);}static['getInfo'](_0x2aff58,_0x461927){return _0x448894(_0x2aff58,_0x461927);}}class f extends _0x1b064f{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x429082,o];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x1dc03c=this['editor'];if(!!!_0x1dc03c['config']['get']('uploadcare'))return;_0x1dc03c['plugins']['get'](_0x429082)['createUploadAdapter']=_0x2dd9bd=>new k(_0x2dd9bd,_0x1dc03c),_0x1dc03c['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x2c18e8,{imageElement:_0x224f72,data:_0x4c278c})=>{_0x1dc03c['model']['change'](_0x857fb2=>{_0x857fb2['setAttribute']('uploadcareImageId',_0x4c278c['uploadcareImageId'],_0x224f72);});});}}class k{['loader'];['editor'];['controller'];constructor(_0xab0493,_0x1c1790){this['loader']=_0xab0493,this['editor']=_0x1c1790,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x543c92=await this['loader']['file'];return j['upload']({'file':_0x543c92,'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':_0x2247c1=>{_0x2247c1&&_0x2247c1['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x2247c1['value']);}})['then'](async _0xb1046a=>{const {imageFallbackUrl:_0x1104d9,imageSources:_0x1c76e1}=C(_0xb1046a['cdnUrl'],_0xb1046a['imageInfo']['width']);return{'uploadcareImageId':_0xb1046a['uuid'],'default':_0x1104d9,'sources':_0x1c76e1};})['catch'](()=>{const _0x1470ec=t('Cannot\x20upload\x20file:')+('\x20'+_0x543c92['name']+'.');return Promise['reject'](_0x1470ec);});}['abort'](){this['controller']['abort']();}}class o extends _0x1b064f{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',f,_0x402fe0];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['ucContextId'];get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}constructor(_0x4afed7){super(_0x4afed7),this['ucContextId']=_0x2d292f();}['init'](){const _0x724c8c=this['editor'];_0x724c8c['commands']['add']('uploadcare',new w(_0x724c8c));}['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 _0x3cf56b=_0x29646b['document']['querySelector']('input[uploadcare-file-input]');_0x3cf56b&&_0x3cf56b['remove']();}),async function(_0x1f0819){const _0x2a15c9=_0x530cf9([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]),_0x5794d0=0x535f8c3a,_0x3c4002=0x5358f122^_0x5794d0,_0x42982c=window[_0x530cf9([0x44,0x61,0x74,0x65])][_0x530cf9([0x6e,0x6f,0x77])](),_0x5a17d7=_0x1f0819[_0x530cf9([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x1b4044=new window[(_0x530cf9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xc02823=>{_0x5a17d7[_0x530cf9([0x6f,0x6e,0x63,0x65])](_0x530cf9([0x72,0x65,0x61,0x64,0x79]),_0xc02823);}),_0x4ff932={[_0x530cf9([0x6b,0x74,0x79])]:_0x530cf9([0x45,0x43]),[_0x530cf9([0x75,0x73,0x65])]:_0x530cf9([0x73,0x69,0x67]),[_0x530cf9([0x63,0x72,0x76])]:_0x530cf9([0x50,0x2d,0x32,0x35,0x36]),[_0x530cf9([0x78])]:_0x530cf9([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]),[_0x530cf9([0x79])]:_0x530cf9([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]),[_0x530cf9([0x61,0x6c,0x67])]:_0x530cf9([0x45,0x53,0x32,0x35,0x36])},_0x3ba3c0=_0x5a17d7[_0x530cf9([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x530cf9([0x67,0x65,0x74])](_0x530cf9([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x5db71c(){let _0xd57f2b,_0x3b1049=null,_0xa0aa7d=null;try{if(_0x3ba3c0==_0x530cf9([0x47,0x50,0x4c]))return _0x530cf9([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0xd57f2b=_0x407fc0(),!_0xd57f2b)return _0x530cf9([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0xd57f2b[_0x530cf9([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0xa0aa7d=_0x3784b8(_0xd57f2b[_0x530cf9([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0xd57f2b[_0x530cf9([0x6a,0x74,0x69])])),await _0x5ae61c()?_0xb510aa()?_0x163a8b()?_0x530cf9([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0xcd3fd4()?(_0xd57f2b[_0x530cf9([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x530cf9([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x3b1049=_0x575d1e(_0x530cf9([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0xd57f2b[_0x530cf9([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x530cf9([0x74,0x72,0x69,0x61,0x6c])&&(_0x3b1049=_0x575d1e(_0x530cf9([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x40be61()):_0x530cf9([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x530cf9([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x530cf9([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x530cf9([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x163a8b(){const _0x2fb58d=[_0x530cf9([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x530cf9([0x74,0x72,0x69,0x61,0x6c])][_0x530cf9([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xd57f2b[_0x530cf9([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x42982c/0x3e8:0xe10*_0x3c4002;return _0xd57f2b[_0x530cf9([0x65,0x78,0x70])]<_0x2fb58d;}function _0xb510aa(){const _0x64edef=_0xd57f2b[_0x530cf9([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x64edef&&(!!_0x64edef[_0x530cf9([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x530cf9([0x2a]))||!!_0x64edef[_0x530cf9([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x530cf9([0x55,0x50,0x4c,0x43])));}function _0xcd3fd4(){const _0x4d3a36=_0xd57f2b[_0x530cf9([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x4d3a36||0x0==_0x4d3a36[_0x530cf9([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x37ba6f}=new URL(window[_0x530cf9([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x4d3a36[_0x530cf9([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x37ba6f))return!0x0;const _0x3496af=_0x37ba6f[_0x530cf9([0x73,0x70,0x6c,0x69,0x74])](_0x530cf9([0x2e]));return _0x4d3a36[_0x530cf9([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x2dbc3a=>_0x2dbc3a[_0x530cf9([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x530cf9([0x2a])))[_0x530cf9([0x6d,0x61,0x70])](_0x1c5d0a=>_0x1c5d0a[_0x530cf9([0x73,0x70,0x6c,0x69,0x74])](_0x530cf9([0x2e])))[_0x530cf9([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x65c3c8=>_0x65c3c8[_0x530cf9([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x3496af[_0x530cf9([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x530cf9([0x6d,0x61,0x70])](_0x147992=>Array(_0x3496af[_0x530cf9([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x147992[_0x530cf9([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x530cf9([0x66,0x69,0x6c,0x6c])](_0x147992[0x0]===_0x530cf9([0x2a])?_0x530cf9([0x2a]):'')[_0x530cf9([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x147992))[_0x530cf9([0x73,0x6f,0x6d,0x65])](_0x24a478=>_0x3496af[_0x530cf9([0x65,0x76,0x65,0x72,0x79])]((_0x45e346,_0x50861b)=>_0x24a478[_0x50861b]===_0x45e346||_0x24a478[_0x50861b]===_0x530cf9([0x2a])));}function _0x40be61(){return _0x3b1049&&_0xa0aa7d?new window[(_0x530cf9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x50e022,_0x4443ba)=>{_0x3b1049[_0x530cf9([0x74,0x68,0x65,0x6e])](_0x50e022,_0x4443ba),_0xa0aa7d[_0x530cf9([0x74,0x68,0x65,0x6e])](_0xabac62=>{_0xabac62!=_0x530cf9([0x56,0x61,0x6c,0x69,0x64])&&_0x50e022(_0xabac62);},_0x4443ba);}):_0x3b1049||_0xa0aa7d||_0x530cf9([0x56,0x61,0x6c,0x69,0x64]);}}function _0x3784b8(_0x3bbe8,_0x1f34b4){return new window[(_0x530cf9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3c9d06=>{if(_0x2ea730())return _0x3c9d06(_0x530cf9([0x56,0x61,0x6c,0x69,0x64]));_0x1b4310(),_0x5a17d7[_0x530cf9([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x530cf9([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x58f4ae=!0x1;const _0xa26299=_0x2d292f();function _0xa3debe(_0x548b73){return!!_0x548b73&&(typeof _0x548b73===_0x530cf9([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x548b73===_0x530cf9([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x548b73[_0x530cf9([0x74,0x68,0x65,0x6e])]===_0x530cf9([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x548b73[_0x530cf9([0x63,0x61,0x74,0x63,0x68])]===_0x530cf9([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x32ab32(_0x1d63dd){_0x2b67c2(_0x1d63dd)[_0x530cf9([0x74,0x68,0x65,0x6e])](_0x1da345=>{if(!_0x1da345||_0x1da345[_0x530cf9([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x530cf9([0x6f,0x6b]))return _0x530cf9([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x4e7c5a(_0x44c843(_0xa26299+_0x1f34b4))!=_0x1da345[_0x530cf9([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x530cf9([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x530cf9([0x56,0x61,0x6c,0x69,0x64]);})[_0x530cf9([0x74,0x68,0x65,0x6e])](_0x5f3950=>(_0x5e695b(),_0x5f3950),()=>{const _0x4b173d=_0x3e60fb();return null==_0x4b173d?(_0x5e695b(),_0x530cf9([0x56,0x61,0x6c,0x69,0x64])):_0x530cf9(_0x42982c-_0x4b173d>(0x7753083a^_0x5794d0)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x530cf9([0x74,0x68,0x65,0x6e])](_0x3c9d06)[_0x530cf9([0x63,0x61,0x74,0x63,0x68])](()=>{_0x3c9d06(_0x530cf9([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x2df549=0x536962ba^_0x5794d0;function _0x5e695b(){const _0x1a9c36=_0x530cf9([0x6c,0x6c,0x63,0x74,0x2d])+_0x4e7c5a(_0x44c843(_0x3bbe8)),_0x27e36c=_0x15cc16(_0x4e7c5a(window[_0x530cf9([0x4d,0x61,0x74,0x68])][_0x530cf9([0x63,0x65,0x69,0x6c])](_0x42982c/_0x2df549)));window[_0x530cf9([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x530cf9([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1a9c36,_0x27e36c);}function _0x3e60fb(){const _0x37b79e=_0x530cf9([0x6c,0x6c,0x63,0x74,0x2d])+_0x4e7c5a(_0x44c843(_0x3bbe8)),_0x50e85d=window[_0x530cf9([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x530cf9([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x37b79e);return _0x50e85d?window[_0x530cf9([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x15cc16(_0x50e85d),0x10)*_0x2df549:null;}function _0x2b67c2(_0x1bbaf3){return new window[(_0x530cf9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3d20d3,_0x3d5f25)=>{_0x1bbaf3[_0x530cf9([0x74,0x68,0x65,0x6e])](_0x3d20d3,_0x3d5f25),window[_0x530cf9([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x3d5f25,0x535e58fa^_0x5794d0);});}}_0x5a17d7[_0x530cf9([0x6f,0x6e])](_0x530cf9([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x403340,_0x4b680a)=>{if(_0x4b680a[0x0]!=_0x3bbe8)return _0x3c9d06(_0x530cf9([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x4b680a[0x1]={..._0x4b680a[0x1],[_0x530cf9([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0xa26299};},{[_0x530cf9([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x530cf9([0x68,0x69,0x67,0x68])}),_0x5a17d7[_0x530cf9([0x6f,0x6e])](_0x530cf9([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x291158=>{_0xa3debe(_0x291158[_0x530cf9([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x58f4ae=!0x0,_0x32ab32(_0x291158[_0x530cf9([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x530cf9([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x530cf9([0x6c,0x6f,0x77])}),_0x1b4044[_0x530cf9([0x74,0x68,0x65,0x6e])](()=>{_0x58f4ae||_0x3c9d06(_0x530cf9([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x2ea730(){return _0x5a17d7[_0x530cf9([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x530cf9([0x76,0x69,0x65,0x77])][_0x530cf9([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x530cf9([0x61,0x75,0x74,0x6f]);}function _0x1b4310(){_0x5a17d7[_0x530cf9([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x530cf9([0x76,0x69,0x65,0x77])][_0x530cf9([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x530cf9([0x61,0x75,0x74,0x6f]);}}function _0x575d1e(_0x475085){const _0x23592a=[new window[(_0x530cf9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xb70064=>setTimeout(_0xb70064,0x5356b2f6^_0x5794d0)),_0x1b4044[_0x530cf9([0x74,0x68,0x65,0x6e])](()=>new window[(_0x530cf9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4ae239=>{let _0x51de63=0x0;_0x5a17d7[_0x530cf9([0x6d,0x6f,0x64,0x65,0x6c])][_0x530cf9([0x6f,0x6e])](_0x530cf9([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x231797,_0xa175f2)=>{_0xa175f2[0x0][_0x530cf9([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x51de63++,_0x51de63==(0x535f89d2^_0x5794d0)&&(_0x4ae239(),_0x231797[_0x530cf9([0x6f,0x66,0x66])]());});}))];return window[_0x530cf9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x530cf9([0x72,0x61,0x63,0x65])](_0x23592a)[_0x530cf9([0x74,0x68,0x65,0x6e])](()=>_0x475085);}async function _0x3977f2(){await _0x1b4044,_0x5a17d7[_0x530cf9([0x6d,0x6f,0x64,0x65,0x6c])][_0x530cf9([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x5539a3,_0x5a17d7[_0x530cf9([0x6d,0x6f,0x64,0x65,0x6c])][_0x530cf9([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x5539a3,_0x5a17d7[_0x530cf9([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x530cf9([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x35cfae(_0x3657f7){const _0x3a2ac3=_0x50ff26();_0x5a17d7[_0x3a2ac3]=_0x530cf9([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x3657f7,_0x3657f7!=_0x530cf9([0x56,0x61,0x6c,0x69,0x64])&&_0x3977f2();}function _0x50ff26(){const _0x47ba32=window[_0x530cf9([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x530cf9([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x530cf9([0x6e,0x6f,0x77])]())[_0x530cf9([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x530cf9([0x2e]),'');let _0x43680b=_0x530cf9([0x68]);for(let _0x2d0906=0x0;_0x2d0906<_0x47ba32[_0x530cf9([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2d0906+=0x2){let _0x13b0b1=window[_0x530cf9([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x47ba32[_0x530cf9([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2d0906,_0x2d0906+0x2));_0x13b0b1>=_0x2a15c9[_0x530cf9([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x13b0b1-=_0x2a15c9[_0x530cf9([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x43680b+=_0x2a15c9[_0x13b0b1];}return _0x43680b;}function _0x407fc0(){const _0x4fe51c=_0x3ba3c0[_0x530cf9([0x73,0x70,0x6c,0x69,0x74])](_0x530cf9([0x2e]));if(0x3!=_0x4fe51c[_0x530cf9([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x289280(_0x4fe51c[0x1]);function _0x289280(_0x31381a){const _0x2bc856=_0x3c5fc2(_0x31381a);return _0x2bc856&&_0x1279d5()?_0x2bc856:null;function _0x1279d5(){const _0x5c2131=_0x2bc856[_0x530cf9([0x6a,0x74,0x69])],_0x46fb03=window[_0x530cf9([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5c2131[_0x530cf9([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x5c2131[_0x530cf9([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x113632={..._0x2bc856,[_0x530cf9([0x6a,0x74,0x69])]:_0x5c2131[_0x530cf9([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x5c2131[_0x530cf9([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x113632[_0x530cf9([0x76,0x63])],_0x44c843(_0x113632)==_0x46fb03;}}}async function _0x5ae61c(){let _0x46e518=!0x0;try{const _0x17ae89=_0x3ba3c0[_0x530cf9([0x73,0x70,0x6c,0x69,0x74])](_0x530cf9([0x2e])),[_0x274c88,_0x44b7cf,_0x117885]=_0x17ae89;return _0x5889b0(_0x274c88),await _0x5900cf(_0x274c88,_0x44b7cf,_0x117885),_0x46e518;}catch{return!0x1;}function _0x5889b0(_0x260f21){const _0x28d7d4=_0x3c5fc2(_0x260f21);_0x28d7d4&&_0x28d7d4[_0x530cf9([0x61,0x6c,0x67])]==_0x530cf9([0x45,0x53,0x32,0x35,0x36])||(_0x46e518=!0x1);}async function _0x5900cf(_0x5d72b7,_0xaf278a,_0x412b07){const _0x48639d=window[_0x530cf9([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x530cf9([0x66,0x72,0x6f,0x6d])](_0xb9cf5e(_0x412b07),_0x47c854=>_0x47c854[_0x530cf9([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x520eca=new window[(_0x530cf9([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x530cf9([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x5d72b7+_0x530cf9([0x2e])+_0xaf278a),_0x3880cb=window[_0x530cf9([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x530cf9([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x3880cb)return;const _0x51facb=await _0x3880cb[_0x530cf9([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x530cf9([0x6a,0x77,0x6b]),_0x4ff932,{[_0x530cf9([0x6e,0x61,0x6d,0x65])]:_0x530cf9([0x45,0x43,0x44,0x53,0x41]),[_0x530cf9([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x530cf9([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x530cf9([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x3880cb[_0x530cf9([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x530cf9([0x6e,0x61,0x6d,0x65])]:_0x530cf9([0x45,0x43,0x44,0x53,0x41]),[_0x530cf9([0x68,0x61,0x73,0x68])]:{[_0x530cf9([0x6e,0x61,0x6d,0x65])]:_0x530cf9([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x51facb,_0x48639d,_0x520eca)||(_0x46e518=!0x1);}}function _0x3c5fc2(_0x28237b){return _0x28237b[_0x530cf9([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x530cf9([0x65,0x79]))?JSON[_0x530cf9([0x70,0x61,0x72,0x73,0x65])](_0xb9cf5e(_0x28237b)):null;}function _0xb9cf5e(_0x458a25){return window[_0x530cf9([0x61,0x74,0x6f,0x62])](_0x458a25[_0x530cf9([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x530cf9([0x2b]))[_0x530cf9([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x530cf9([0x2f])));}function _0x44c843(_0x490370){let _0x5bd6a6=0x1505;function _0x252b46(_0x364117){for(let _0x308a8b=0x0;_0x308a8b<_0x364117[_0x530cf9([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x308a8b++){const _0xb59516=_0x364117[_0x530cf9([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x308a8b);_0x5bd6a6=(_0x5bd6a6<<0x5)+_0x5bd6a6+_0xb59516,_0x5bd6a6&=_0x5bd6a6;}}function _0x4bf5d2(_0x27f404){Array[_0x530cf9([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x27f404)?_0x27f404[_0x530cf9([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x4bf5d2):_0x27f404&&typeof _0x27f404==_0x530cf9([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x530cf9([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x27f404)[_0x530cf9([0x73,0x6f,0x72,0x74])]()[_0x530cf9([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x56c071,_0x33943f])=>{_0x252b46(_0x56c071),_0x4bf5d2(_0x33943f);}):_0x252b46(window[_0x530cf9([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x27f404));}return _0x4bf5d2(_0x490370),_0x5bd6a6>>>0x0;}function _0x4e7c5a(_0x776f9c){return _0x776f9c[_0x530cf9([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x530cf9([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x530cf9([0x30]));}function _0x15cc16(_0x1be656){return _0x1be656[_0x530cf9([0x73,0x70,0x6c,0x69,0x74])]('')[_0x530cf9([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x530cf9([0x6a,0x6f,0x69,0x6e])]('');}function _0x5539a3(){}function _0x530cf9(_0x2b66e8){return _0x2b66e8['map'](_0x2e2845=>String['fromCharCode'](_0x2e2845))['join']('');}_0x35cfae(await _0x5db71c());}(this);}['_initSchema'](){const _0x387e77=this['editor']['model']['schema'];_0x387e77['isRegistered']('imageBlock')&&_0x387e77['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x387e77['isRegistered']('imageInline')&&_0x387e77['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0xea0349=this['editor'];_0xea0349['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0xea0349['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x141ccb=>_0x141ccb['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x9b4c40=_0xea0349['commands']['get']('replaceImageSource');_0x9b4c40&&this['listenTo'](_0x9b4c40,'cleanupImage',(_0x21132a,[_0x3c2a61,_0x119259])=>{_0x3c2a61['removeAttribute']('uploadcareImageId',_0x119259);});}['_initConfig'](){const _0x4cdd09=this['editor']['config']['get']('uploadcare.uploader')||{},_0x229c97=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x39b067(_0x29646b['document'],'uc-config',{..._0x4cdd09,'pubkey':_0x229c97,'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']=_0xa295f5=>{if('closeMax'==_0xa295f5)return'#uc-icon-arrow-down';},_0x29646b['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x39b067(_0x29646b['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader-'+this['ucContextId']}),_0x29646b['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x310695=this['editor']['commands']['get']('insertImage');_0x310695&&this['listenTo'](_0x310695,'execute',()=>{const _0x11be6d=this['editor']['model']['document']['selection']['getSelectedElement']();_0x11be6d&&_0x11be6d['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x11be6d);});});const _0x59219b=this['editor']['commands']['get']('uploadcareImageReplace');_0x59219b&&this['listenTo'](_0x59219b,'execute',()=>{const _0x27bbb9=this['editor']['model']['document']['selection']['getSelectedElement']();_0x27bbb9&&_0x27bbb9['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x27bbb9);});});}}class tt extends _0x1b064f{static get['requires'](){return[o,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x2bdbf5){super(_0x2bdbf5),_0x2bdbf5['config']['define']('uploadcare.uploader.sourceList',[i['Local'],i['URL']]),_0x25d53f['defineComponents'](_0x25d53f),this['_defineLocale']();}['_defineLocale'](){const _0x25d135=this['editor']['config']['get']('uploadcare.locale'),_0x44e404=this['editor']['locale']['contentLanguage'];_0x25d135&&_0x25d53f['defineLocale'](_0x44e404,_0x25d135);}}class ii extends _0x1c726e{constructor(_0x329065){super(_0x329065);const t=_0x329065['t'],_0x2115e3=this['bindTemplate'],_0x34a0e3=new _0x3f9bcd();_0x34a0e3['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':[_0x34a0e3,{'text':_0x2115e3['to']('imageUploadProgress',_0x21286c=>t('Loading\x20image...')+'\x20('+(_0x21286c||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 _0x1c726e{constructor(_0x23c795){super(_0x23c795);const t=_0x23c795['t'];this['set']('errorType',null);const _0x3dd299=new _0x4005d2(_0x23c795);_0x3dd299['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x3dd299['withText']=!0x0,_0x3dd299['class']='ck-button-action',_0x3dd299['on']('execute',()=>{this['fire']('retry');}),_0x3dd299['bind']('isVisible')['to'](this,'errorType',_0x6496a4=>'NotFound'!==_0x6496a4);const _0x54288b=new _0x4b8abe();_0x54288b['content']=_0x3615d0,_0x54288b['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x1f0f60=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':[_0x54288b,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x1f0f60['to']('errorType',_0x564436=>t('NotFound'!==_0x564436?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x3dd299]},{'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 _0x1c726e{constructor(_0x1a08a5,_0x34b61d){super(_0x1a08a5);const _0x2e0bbf=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x34b61d,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x2e0bbf['to']('imageSrc')}});}}class X extends F{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x2b8419,_0x32649d,_0x1c4cd5){super(_0x2b8419),this['_items']=this['createCollection'](),this['_loadingView']=new ii(_0x2b8419),this['_errorView']=new ti(_0x2b8419),this['_editingView']=new ei(_0x2b8419,_0x1c4cd5),this['_focusableView']=new _0x1c726e(_0x2b8419),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x32649d),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'],_0x15df1f=>{this['_addUploadcareImageEditorListeners'](_0x15df1f);});}),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'](_0x236aba,_0x59ff8d){const _0x2aa65a='uc-cloud-image-editor',_0x3bc4fc=_0x236aba['querySelector'](_0x2aa65a);if(_0x3bc4fc)return _0x59ff8d(_0x3bc4fc);const _0x83805c=new MutationObserver(_0x4bc54f=>{const _0x1327d9=_0x4bc54f['filter'](_0x333ff1=>_0x333ff1['target']===_0x236aba&&_0x333ff1['addedNodes']['length']>0x0&&_0x333ff1['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x2aa65a);_0x1327d9['length']&&(_0x83805c['disconnect'](),_0x59ff8d(_0x1327d9[0x0]['addedNodes'][0x0]));});_0x83805c['observe'](_0x236aba,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x1fd566){_0x1fd566['addEventListener']('apply',_0x379aaa=>{this['fire']('apply',{'imageSrc':_0x379aaa['detail']['cdnUrl']});}),_0x1fd566['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class E extends/* #__PURE__ -- @preserve */
25
+ _0x3f8b0f(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x5e9937,_0xd7e481,_0x10545b){super(),this['_editor']=_0x5e9937,this['_dialog']=_0xd7e481,this['_imageElement']=_0x10545b,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 _0x32c389=this['_imageElement'],_0x554860=_0x32c389['getAttribute']('uploadcareImageId'),_0x5aa6fa=_0x32c389['getAttribute']('src');if(_0x554860)await this['_loadImageInfo'](_0x554860,_0x5aa6fa);else{if(this['_imageCache']['has'](_0x5aa6fa)){const _0x3f40a7=this['_imageCache']['get'](_0x5aa6fa);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x3f40a7['url'],this['imageDimension']=_0x3f40a7['dimension'],this['imageId']=_0x3f40a7['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x749cfd}=this['_editor'],t=_0x749cfd['t'],_0x4ae08b=new X(_0x749cfd,this['imageStatus'],this['_attributes']);_0x4ae08b['bind']('status')['to'](this,'imageStatus'),_0x4ae08b['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x4ae08b['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x4ae08b['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x4ae08b,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x5aed85,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x4ae08b,'position':_0x1cc742['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x4ae08b['focus']();},'onHide':()=>{_0x4ae08b['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x491c3a=>!A(_0x491c3a,_0x4ae08b['element'])}});}['_loadImageInfo'](_0x5babf4,_0xa9c7f){return j['getInfo'](_0x5babf4,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl')})['then'](_0x189690=>{const {width:_0x258271,height:_0x310fbb}=_0x189690['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0xa9c7f,this['imageDimension']={'width':_0x258271,'height':_0x310fbb},this['imageId']=_0x5babf4;})['catch'](_0xcaacce=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0xcaacce['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x52ffd9,_0x2a3953){return this['_getImageAsFile'](_0x52ffd9)['then'](_0x24da41=>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':_0x2a3953['signal'],'file':_0x24da41,'onProgress':_0x3ba274=>{_0x3ba274&&_0x3ba274['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x3ba274['value']));}}))['then'](_0x13d7dc=>{const {width:_0x2d5545,height:_0x2d0bf9}=_0x13d7dc['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x13d7dc['cdnUrl'],this['imageDimension']={'width':_0x2d5545,'height':_0x2d0bf9},this['imageId']=_0x13d7dc['uuid'],this['imageUploadProgress']=null;const _0x3ba557=_0x52ffd9['getAttribute']('src');this['_imageCache']['set'](_0x3ba557,{'id':_0x13d7dc['uuid'],'url':_0x13d7dc['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x533b3f=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x533b3f['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x5dfeac,_0x346707){_0x5dfeac['on']('apply',(_0x2d789d,_0x24d0c7)=>{this['_replaceImage'](_0x346707,_0x24d0c7['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x5dfeac['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x5dfeac['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x1b3d6f,_0x269873,_0x29751a){const _0x4503bc=this['_editor'],{width:_0x2124cb,height:_0x3b9285}=S(_0x269873,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x26ed9e,imageSources:_0x44ed09}=C(_0x269873,_0x2124cb);_0x4503bc['model']['change'](_0x5cf57=>{if('$graveyard'===_0x1b3d6f['root']['rootName']){_0x4503bc['execute']('insertImage',{'imageType':_0x1b3d6f['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x1b3d6f['getAttributes']()),'uploadcareImageId':_0x29751a,'src':_0x26ed9e,'sources':_0x44ed09,'width':_0x2124cb,'height':_0x3b9285}});const _0xc06675=_0x1b3d6f['getChildren']();_0x1b3d6f=_0x4503bc['model']['document']['selection']['getSelectedElement']();for(const _0x152f60 of _0xc06675)_0x5cf57['append'](_0x5cf57['cloneElement'](_0x152f60),_0x1b3d6f);}else _0x5cf57['setSelection'](_0x1b3d6f,'on'),_0x4503bc['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x1b3d6f['getAttributes']()),'uploadcareImageId':_0x29751a,'src':_0x26ed9e,'sources':_0x44ed09,'width':_0x2124cb,'height':_0x3b9285},_0x1b3d6f);_0x5cf57['setSelection'](_0x1b3d6f,'on');});}async['_getImageAsFile'](_0x44ccc1){const _0x2ebe74=_0x29646b['window'],_0xd0d70f=_0x29646b['document']['location']['href'],_0x246764=new _0x2ebe74['URL'](_0x44ccc1['getAttribute']('src'),_0xd0d70f);if('data:'===_0x246764['protocol']){const _0x1d3166=_0x246764['href']['split'](','),_0x3fa9ba=_0x1d3166[0x0]['match'](/:(.*?);/)[0x1],_0x300faa=_0x3fa9ba['split']('/')[0x1],_0xfe33a2=_0x2ebe74['atob'](_0x1d3166[_0x1d3166['length']-0x1]);let _0x22f150=_0xfe33a2['length'];const _0xeb4c29=new _0x2ebe74['Uint8Array'](_0x22f150);for(;_0x22f150--;)_0xeb4c29[_0x22f150]=_0xfe33a2['charCodeAt'](_0x22f150);return new _0x2ebe74['File']([_0xeb4c29],'image.'+_0x300faa,{'type':_0x3fa9ba});}const _0x44e657=_0x246764['href']['split']('/'),_0x4e9909=_0x44e657[_0x44e657['length']-0x1],_0x3ce11b=_0x4e9909['split']('.')[0x1];return _0x2ebe74['fetch'](_0x246764['href'])['then'](_0x3fade4=>_0x3fade4['clone']()['blob']())['then'](_0x3f2b79=>new _0x2ebe74['File']([_0x3f2b79],_0x4e9909,{'type':'image/'+_0x3ce11b}));}}class O extends _0x3b0801{['imageEditController'];static get['requires'](){return[_0x402fe0];}['_isEditable'];constructor(_0x31cfb1){super(_0x31cfb1),this['imageEditController']=void 0x0,this['_isEditable']=function(_0xbbf0b5){const _0x4ee14e=G(_0xbbf0b5);return _0x48a158=>!(!_0x48a158||!_0x48a158['is']('element','imageBlock')&&!_0x48a158['is']('element','imageInline'))&&(!!_0x48a158['hasAttribute']('uploadcareImageId')||!!_0x48a158['hasAttribute']('src')&&_0x4ee14e(_0x48a158['getAttribute']('src')));}(_0x31cfb1['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x4f0675=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x4f0675);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x3914f6=this['editor']['model']['document']['selection']['getSelectedElement']();_0x3914f6&&(_0x3914f6['is']('element','imageBlock')||_0x3914f6['is']('element','imageInline'))&&(this['imageEditController']=new E(this['editor'],this['editor']['plugins']['get'](_0x402fe0),_0x3914f6),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class R extends _0x3b0801{['refresh'](){const _0x2185cf=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x2185cf&&(_0x2185cf['is']('element','imageBlock')||_0x2185cf['is']('element','imageInline')));}['execute'](_0x8f826){const _0xdbf654=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x2f830c=>{_0x2f830c['setAttributes'](_0x8f826,_0xdbf654),_0x2f830c['removeAttribute']('srcset',_0xdbf654),_0x2f830c['removeAttribute']('sizes',_0xdbf654);});}}class m extends _0x1b064f{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[o,_0x246b07,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x1a68b8}=this;_0x1a68b8['commands']['add']('uploadcareImageEdit',new O(_0x1a68b8)),_0x1a68b8['commands']['add']('uploadcareImageReplace',new R(_0x1a68b8));}}class g extends _0x1b064f{['_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 _0x2cad89=this['editor'];_0x2cad89['ui']['componentFactory']['add']('uploadcareImageEdit',_0x307628=>{const _0x4ed140=_0x2cad89['commands']['get']('uploadcareImageEdit'),_0x4476f8=new _0x4005d2(_0x307628),t=_0x307628['t'];return _0x4476f8['set']({'icon':_0x5aed85,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x4476f8['bind']('isEnabled')['to'](_0x4ed140),_0x4476f8['bind']('isOn')['to'](_0x4ed140,'isActive'),this['listenTo'](_0x4476f8,'execute',()=>{_0x2cad89['execute']('uploadcareImageEdit'),_0x2cad89['editing']['view']['focus']();}),_0x4476f8;}),this['_initConfig']();}['_initConfig'](){const _0x3ca50b=_0x39b067(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x3ca50b),this['listenTo'](this['editor'],'destroy',()=>{_0x3ca50b['remove']();});}}class et extends _0x1b064f{static get['pluginName'](){return'UploadcareImageEdit';}static get['requires'](){return[m,g];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{tt as Uploadcare,w as UploadcareCommand,o as UploadcareEditing,et as UploadcareImageEdit,O as UploadcareImageEditCommand,m as UploadcareImageEditEditing,g as UploadcareImageEditUI,e as UploadcareUI,f as UploadcareUploadAdapter};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ckeditor/ckeditor5-uploadcare",
3
- "version": "0.0.0-nightly-next-20251226.0",
3
+ "version": "0.0.0-nightly-next-20251227.0",
4
4
  "description": "Uploadcare feature for CKEditor 5.",
5
5
  "license": "SEE LICENSE IN LICENSE.md",
6
6
  "author": "CKSource (http://cksource.com/)",
@@ -23,14 +23,14 @@
23
23
  "framework"
24
24
  ],
25
25
  "dependencies": {
26
- "@ckeditor/ckeditor5-core": "0.0.0-nightly-next-20251226.0",
27
- "@ckeditor/ckeditor5-icons": "0.0.0-nightly-next-20251226.0",
28
- "@ckeditor/ckeditor5-image": "0.0.0-nightly-next-20251226.0",
29
- "@ckeditor/ckeditor5-theme-lark": "0.0.0-nightly-next-20251226.0",
30
- "@ckeditor/ckeditor5-ui": "0.0.0-nightly-next-20251226.0",
31
- "@ckeditor/ckeditor5-upload": "0.0.0-nightly-next-20251226.0",
32
- "@ckeditor/ckeditor5-utils": "0.0.0-nightly-next-20251226.0",
33
- "ckeditor5": "0.0.0-nightly-next-20251226.0",
26
+ "@ckeditor/ckeditor5-core": "0.0.0-nightly-next-20251227.0",
27
+ "@ckeditor/ckeditor5-icons": "0.0.0-nightly-next-20251227.0",
28
+ "@ckeditor/ckeditor5-image": "0.0.0-nightly-next-20251227.0",
29
+ "@ckeditor/ckeditor5-theme-lark": "0.0.0-nightly-next-20251227.0",
30
+ "@ckeditor/ckeditor5-ui": "0.0.0-nightly-next-20251227.0",
31
+ "@ckeditor/ckeditor5-upload": "0.0.0-nightly-next-20251227.0",
32
+ "@ckeditor/ckeditor5-utils": "0.0.0-nightly-next-20251227.0",
33
+ "ckeditor5": "0.0.0-nightly-next-20251227.0",
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 _0x512f5d=_0x122d;(function(_0x1ce8b0,_0x4e7f0a){const _0x5519ec=_0x122d,_0xdb1d4d=_0x1ce8b0();while(!![]){try{const _0x22b971=parseInt(_0x5519ec(0xdf))/0x1+parseInt(_0x5519ec(0xe0))/0x2*(-parseInt(_0x5519ec(0x108))/0x3)+-parseInt(_0x5519ec(0xee))/0x4*(parseInt(_0x5519ec(0xe7))/0x5)+-parseInt(_0x5519ec(0x10a))/0x6*(parseInt(_0x5519ec(0x114))/0x7)+-parseInt(_0x5519ec(0x111))/0x8*(-parseInt(_0x5519ec(0x10f))/0x9)+parseInt(_0x5519ec(0x11f))/0xa+-parseInt(_0x5519ec(0xf9))/0xb;if(_0x22b971===_0x4e7f0a)break;else _0xdb1d4d['push'](_0xdb1d4d['shift']());}catch(_0x16ba61){_0xdb1d4d['push'](_0xdb1d4d['shift']());}}}(_0x11ca,0x3a290));import{Plugin as _0x428293}from'ckeditor5/src/core.js';import{Dialog as _0x39ced6}from'ckeditor5/src/ui.js';import{createElement as _0x4211fe,global as _0xe13190,uid as _0x5ca483}from'ckeditor5/src/utils.js';import{UploadcareCommand as _0x46179a}from'./uploadcarecommand.js';function _0x11ca(){const _0x193b10=['435710LUzoUC','10796jpkgyC','_configElement','getAttribute','_initImageProcessingIndicator','isPremiumPlugin','view','uploadcareImageId','119740QFzSRH','document','join','appendChild','#uc-icon-arrow-down','model','pluginName','12lmgeWk','conversion','contentLanguage','commands','\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup\x20{\x20padding:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-menu\x20{\x20gap:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-footer\x20{\x20padding-top:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__separator\x20{\x20margin:\x200;\x20}\x0a\x09\x09\x09','extend','true','configElement','querySelector','downcast','once','1209549EJWlgo','elementToAttribute','iconHrefResolver','removeAttribute','init','add','closeMax','map','afterInit','isOfficialPlugin','listenTo','_initConfig','schema','imageInline','ctxElement','51leLgEM','selection','7548HnypeN','attributeToAttribute','_initCtx','uploadcareImageReplace','uploadcare','9iuzFbA','isRegistered','1030552CuYuDg','fromCharCode','remove','1841rAaAUE','getSelectedElement','cleanupImage','destroy','render','execute','replaceImageSource','_initConversion','uploader-','config','uc-config','2781180DFCgLf','uc-upload-ctx-provider','upcast','data-uc-image-id','editing','ucContextId','get','uploadcare.uploader','insertImage','PictureEditing','imageBlock','href','editor','_ctxElement','for','body','UploadcareEditing','_initSchema','locale','requires','input[uploadcare-file-input]','uploadcare.pubkey'];_0x11ca=function(){return _0x193b10;};return _0x11ca();}import{UploadcareUploadAdapter as _0x4a79c5}from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0x378aad}from'./utils/editingutils.js';function _0x122d(_0xacf34,_0x3fac5b){const _0x11caae=_0x11ca();return _0x122d=function(_0x122da7,_0xd3e4f4){_0x122da7=_0x122da7-0xcf;let _0x33e149=_0x11caae[_0x122da7];return _0x33e149;},_0x122d(_0xacf34,_0x3fac5b);}export class UploadcareEditing extends _0x428293{[_0x512f5d(0xe1)]=null;[_0x512f5d(0xd6)]=null;static get[_0x512f5d(0xed)](){const _0x4cd4a5=_0x512f5d;return _0x4cd4a5(0xd9);}static get[_0x512f5d(0xdc)](){const _0x32ede5=_0x512f5d;return[_0x32ede5(0xd2),_0x4a79c5,_0x39ced6];}static get[_0x512f5d(0x102)](){return!0x0;}static get[_0x512f5d(0xe4)](){return!0x0;}[_0x512f5d(0x124)];get[_0x512f5d(0xf5)](){const _0x2d8638=_0x512f5d;return this[_0x2d8638(0xe1)];}get[_0x512f5d(0x107)](){const _0x3791d2=_0x512f5d;return this[_0x3791d2(0xd6)];}constructor(_0x445cec){const _0x1c0d89=_0x512f5d;super(_0x445cec),this[_0x1c0d89(0x124)]=_0x5ca483();}[_0x512f5d(0xfd)](){const _0x1f686a=_0x512f5d,_0x428ef1=this[_0x1f686a(0xd5)];_0x428ef1[_0x1f686a(0xf1)][_0x1f686a(0xfe)](_0x1f686a(0x10e),new _0x46179a(_0x428ef1));}[_0x512f5d(0x101)](){const _0x177fc1=_0x512f5d;this[_0x177fc1(0xda)](),this[_0x177fc1(0x11b)](),this[_0x177fc1(0x104)](),this[_0x177fc1(0x10c)](),this[_0x177fc1(0xe3)](),this[_0x177fc1(0x103)](this[_0x177fc1(0xd5)],_0x177fc1(0x117),()=>{const _0x1f0d58=_0x177fc1;this[_0x1f0d58(0xe1)]&&(this[_0x1f0d58(0xe1)][_0x1f0d58(0x113)](),this[_0x1f0d58(0xe1)]=null),this[_0x1f0d58(0xd6)]&&(this[_0x1f0d58(0xd6)][_0x1f0d58(0x113)](),this[_0x1f0d58(0xd6)]=null);const _0x41b762=_0xe13190[_0x1f0d58(0xe8)][_0x1f0d58(0xf6)](_0x1f0d58(0xdd));_0x41b762&&_0x41b762[_0x1f0d58(0x113)]();}),async function(_0x5850ca){const _0x5a63f8=_0x2b7a6d([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]),_0x5a0c97=0x535f8c3a,_0xbd59ce=0x5358f13a^_0x5a0c97,_0x19a028=window[_0x2b7a6d([0x44,0x61,0x74,0x65])][_0x2b7a6d([0x6e,0x6f,0x77])](),_0x16ee63=_0x5850ca[_0x2b7a6d([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x58bdac=new window[(_0x2b7a6d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3b28f6=>{_0x16ee63[_0x2b7a6d([0x6f,0x6e,0x63,0x65])](_0x2b7a6d([0x72,0x65,0x61,0x64,0x79]),_0x3b28f6);}),_0x16313a={[_0x2b7a6d([0x6b,0x74,0x79])]:_0x2b7a6d([0x45,0x43]),[_0x2b7a6d([0x75,0x73,0x65])]:_0x2b7a6d([0x73,0x69,0x67]),[_0x2b7a6d([0x63,0x72,0x76])]:_0x2b7a6d([0x50,0x2d,0x32,0x35,0x36]),[_0x2b7a6d([0x78])]:_0x2b7a6d([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]),[_0x2b7a6d([0x79])]:_0x2b7a6d([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]),[_0x2b7a6d([0x61,0x6c,0x67])]:_0x2b7a6d([0x45,0x53,0x32,0x35,0x36])},_0x53f678=_0x16ee63[_0x2b7a6d([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x2b7a6d([0x67,0x65,0x74])](_0x2b7a6d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x3d12f4(){let _0x4674ca,_0x259a1b=null,_0x4c4bf9=null;try{if(_0x53f678==_0x2b7a6d([0x47,0x50,0x4c]))return _0x2b7a6d([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x4674ca=_0x4d3ae7(),!_0x4674ca)return _0x2b7a6d([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x4674ca[_0x2b7a6d([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x4c4bf9=_0x1be4c5(_0x4674ca[_0x2b7a6d([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x4674ca[_0x2b7a6d([0x6a,0x74,0x69])])),await _0x1490ad()?_0x5aa564()?_0x55209f()?_0x2b7a6d([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x3432a1()?(_0x4674ca[_0x2b7a6d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x2b7a6d([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x259a1b=_0x254669(_0x2b7a6d([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x4674ca[_0x2b7a6d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x2b7a6d([0x74,0x72,0x69,0x61,0x6c])&&(_0x259a1b=_0x254669(_0x2b7a6d([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x3e48d7()):_0x2b7a6d([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x2b7a6d([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x2b7a6d([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x2b7a6d([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x55209f(){const _0x1a22d1=[_0x2b7a6d([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x2b7a6d([0x74,0x72,0x69,0x61,0x6c])][_0x2b7a6d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4674ca[_0x2b7a6d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x19a028/0x3e8:0xe10*_0xbd59ce;return _0x4674ca[_0x2b7a6d([0x65,0x78,0x70])]<_0x1a22d1;}function _0x5aa564(){const _0x2222f9=_0x4674ca[_0x2b7a6d([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x2222f9&&(!!_0x2222f9[_0x2b7a6d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2b7a6d([0x2a]))||!!_0x2222f9[_0x2b7a6d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2b7a6d([0x55,0x50,0x4c,0x43])));}function _0x3432a1(){const _0x2c758a=_0x122d,_0x13d2dc=_0x4674ca[_0x2b7a6d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x13d2dc||0x0==_0x13d2dc[_0x2b7a6d([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x4f3d5a}=new URL(window[_0x2b7a6d([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x2c758a(0xd4)]);if(_0x13d2dc[_0x2b7a6d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4f3d5a))return!0x0;const _0x33e309=_0x4f3d5a[_0x2b7a6d([0x73,0x70,0x6c,0x69,0x74])](_0x2b7a6d([0x2e]));return _0x13d2dc[_0x2b7a6d([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x1afde4=>_0x1afde4[_0x2b7a6d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2b7a6d([0x2a])))[_0x2b7a6d([0x6d,0x61,0x70])](_0x20f03f=>_0x20f03f[_0x2b7a6d([0x73,0x70,0x6c,0x69,0x74])](_0x2b7a6d([0x2e])))[_0x2b7a6d([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x4ae7c7=>_0x4ae7c7[_0x2b7a6d([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x33e309[_0x2b7a6d([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x2b7a6d([0x6d,0x61,0x70])](_0xfd0a39=>Array(_0x33e309[_0x2b7a6d([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0xfd0a39[_0x2b7a6d([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x2b7a6d([0x66,0x69,0x6c,0x6c])](_0xfd0a39[0x0]===_0x2b7a6d([0x2a])?_0x2b7a6d([0x2a]):'')[_0x2b7a6d([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0xfd0a39))[_0x2b7a6d([0x73,0x6f,0x6d,0x65])](_0x21409f=>_0x33e309[_0x2b7a6d([0x65,0x76,0x65,0x72,0x79])]((_0xa9c617,_0x4cff08)=>_0x21409f[_0x4cff08]===_0xa9c617||_0x21409f[_0x4cff08]===_0x2b7a6d([0x2a])));}function _0x3e48d7(){return _0x259a1b&&_0x4c4bf9?new window[(_0x2b7a6d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1d8eee,_0x4fed90)=>{_0x259a1b[_0x2b7a6d([0x74,0x68,0x65,0x6e])](_0x1d8eee,_0x4fed90),_0x4c4bf9[_0x2b7a6d([0x74,0x68,0x65,0x6e])](_0x268a18=>{_0x268a18!=_0x2b7a6d([0x56,0x61,0x6c,0x69,0x64])&&_0x1d8eee(_0x268a18);},_0x4fed90);}):_0x259a1b||_0x4c4bf9||_0x2b7a6d([0x56,0x61,0x6c,0x69,0x64]);}}function _0x1be4c5(_0x319e31,_0x2447b2){return new window[(_0x2b7a6d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x287533=>{if(_0x179bff())return _0x287533(_0x2b7a6d([0x56,0x61,0x6c,0x69,0x64]));_0x32702e(),_0x16ee63[_0x2b7a6d([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x2b7a6d([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x565e0a=!0x1;const _0x1baf09=_0x5ca483();function _0x58e0dc(_0x5b76ee){return!!_0x5b76ee&&(typeof _0x5b76ee===_0x2b7a6d([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x5b76ee===_0x2b7a6d([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x5b76ee[_0x2b7a6d([0x74,0x68,0x65,0x6e])]===_0x2b7a6d([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x5b76ee[_0x2b7a6d([0x63,0x61,0x74,0x63,0x68])]===_0x2b7a6d([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x3bf226(_0x5354dd){_0x149e5b(_0x5354dd)[_0x2b7a6d([0x74,0x68,0x65,0x6e])](_0x305a0e=>{if(!_0x305a0e||_0x305a0e[_0x2b7a6d([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x2b7a6d([0x6f,0x6b]))return _0x2b7a6d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x4e0726(_0x26b0b4(_0x1baf09+_0x2447b2))!=_0x305a0e[_0x2b7a6d([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x2b7a6d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x2b7a6d([0x56,0x61,0x6c,0x69,0x64]);})[_0x2b7a6d([0x74,0x68,0x65,0x6e])](_0xf0e20b=>(_0x5eebf5(),_0xf0e20b),()=>{const _0x355b0e=_0xdd4613();return null==_0x355b0e?(_0x5eebf5(),_0x2b7a6d([0x56,0x61,0x6c,0x69,0x64])):_0x2b7a6d(_0x19a028-_0x355b0e>(0x7753083a^_0x5a0c97)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x2b7a6d([0x74,0x68,0x65,0x6e])](_0x287533)[_0x2b7a6d([0x63,0x61,0x74,0x63,0x68])](()=>{_0x287533(_0x2b7a6d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x24014d=0x536962ba^_0x5a0c97;function _0x5eebf5(){const _0x396e38=_0x2b7a6d([0x6c,0x6c,0x63,0x74,0x2d])+_0x4e0726(_0x26b0b4(_0x319e31)),_0x508e9d=_0x2f9337(_0x4e0726(window[_0x2b7a6d([0x4d,0x61,0x74,0x68])][_0x2b7a6d([0x63,0x65,0x69,0x6c])](_0x19a028/_0x24014d)));window[_0x2b7a6d([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x2b7a6d([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x396e38,_0x508e9d);}function _0xdd4613(){const _0x5eb1af=_0x2b7a6d([0x6c,0x6c,0x63,0x74,0x2d])+_0x4e0726(_0x26b0b4(_0x319e31)),_0x23241f=window[_0x2b7a6d([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x2b7a6d([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x5eb1af);return _0x23241f?window[_0x2b7a6d([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2f9337(_0x23241f),0x10)*_0x24014d:null;}function _0x149e5b(_0x4fecf2){return new window[(_0x2b7a6d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x40263a,_0x16624a)=>{_0x4fecf2[_0x2b7a6d([0x74,0x68,0x65,0x6e])](_0x40263a,_0x16624a),window[_0x2b7a6d([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x16624a,0x535e58fa^_0x5a0c97);});}}_0x16ee63[_0x2b7a6d([0x6f,0x6e])](_0x2b7a6d([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x3b0bb9,_0x389aca)=>{if(_0x389aca[0x0]!=_0x319e31)return _0x287533(_0x2b7a6d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x389aca[0x1]={..._0x389aca[0x1],[_0x2b7a6d([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x1baf09};},{[_0x2b7a6d([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x2b7a6d([0x68,0x69,0x67,0x68])}),_0x16ee63[_0x2b7a6d([0x6f,0x6e])](_0x2b7a6d([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x5daec8=>{_0x58e0dc(_0x5daec8[_0x2b7a6d([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x565e0a=!0x0,_0x3bf226(_0x5daec8[_0x2b7a6d([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x2b7a6d([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x2b7a6d([0x6c,0x6f,0x77])}),_0x58bdac[_0x2b7a6d([0x74,0x68,0x65,0x6e])](()=>{_0x565e0a||_0x287533(_0x2b7a6d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x179bff(){return _0x16ee63[_0x2b7a6d([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2b7a6d([0x76,0x69,0x65,0x77])][_0x2b7a6d([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x2b7a6d([0x61,0x75,0x74,0x6f]);}function _0x32702e(){_0x16ee63[_0x2b7a6d([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2b7a6d([0x76,0x69,0x65,0x77])][_0x2b7a6d([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x2b7a6d([0x61,0x75,0x74,0x6f]);}}function _0x254669(_0x39c0b5){const _0x32502d=[new window[(_0x2b7a6d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x34ca62=>setTimeout(_0x34ca62,0x5356b2f6^_0x5a0c97)),_0x58bdac[_0x2b7a6d([0x74,0x68,0x65,0x6e])](()=>new window[(_0x2b7a6d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2d33aa=>{let _0x3d7a4d=0x0;_0x16ee63[_0x2b7a6d([0x6d,0x6f,0x64,0x65,0x6c])][_0x2b7a6d([0x6f,0x6e])](_0x2b7a6d([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x591f4e,_0x2c7cbb)=>{_0x2c7cbb[0x0][_0x2b7a6d([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x3d7a4d++,_0x3d7a4d==(0x535f89d2^_0x5a0c97)&&(_0x2d33aa(),_0x591f4e[_0x2b7a6d([0x6f,0x66,0x66])]());});}))];return window[_0x2b7a6d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x2b7a6d([0x72,0x61,0x63,0x65])](_0x32502d)[_0x2b7a6d([0x74,0x68,0x65,0x6e])](()=>_0x39c0b5);}async function _0x727b77(){await _0x58bdac,_0x16ee63[_0x2b7a6d([0x6d,0x6f,0x64,0x65,0x6c])][_0x2b7a6d([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x3bc6ff,_0x16ee63[_0x2b7a6d([0x6d,0x6f,0x64,0x65,0x6c])][_0x2b7a6d([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x3bc6ff,_0x16ee63[_0x2b7a6d([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x2b7a6d([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x4f7209(_0x3ea7a6){const _0x322575=_0x380e15();_0x16ee63[_0x322575]=_0x2b7a6d([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x3ea7a6,_0x3ea7a6!=_0x2b7a6d([0x56,0x61,0x6c,0x69,0x64])&&_0x727b77();}function _0x380e15(){const _0x49f778=window[_0x2b7a6d([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x2b7a6d([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x2b7a6d([0x6e,0x6f,0x77])]())[_0x2b7a6d([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x2b7a6d([0x2e]),'');let _0x2b2245=_0x2b7a6d([0x68]);for(let _0x339725=0x0;_0x339725<_0x49f778[_0x2b7a6d([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x339725+=0x2){let _0x153335=window[_0x2b7a6d([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x49f778[_0x2b7a6d([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x339725,_0x339725+0x2));_0x153335>=_0x5a63f8[_0x2b7a6d([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x153335-=_0x5a63f8[_0x2b7a6d([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x2b2245+=_0x5a63f8[_0x153335];}return _0x2b2245;}function _0x4d3ae7(){const _0x3c6336=_0x53f678[_0x2b7a6d([0x73,0x70,0x6c,0x69,0x74])](_0x2b7a6d([0x2e]));if(0x3!=_0x3c6336[_0x2b7a6d([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x551eb5(_0x3c6336[0x1]);function _0x551eb5(_0x1a113b){const _0x250a12=_0x7085a(_0x1a113b);return _0x250a12&&_0xae7499()?_0x250a12:null;function _0xae7499(){const _0x8eb77f=_0x250a12[_0x2b7a6d([0x6a,0x74,0x69])],_0x3ab6b9=window[_0x2b7a6d([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x8eb77f[_0x2b7a6d([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x8eb77f[_0x2b7a6d([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x193fbd={..._0x250a12,[_0x2b7a6d([0x6a,0x74,0x69])]:_0x8eb77f[_0x2b7a6d([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x8eb77f[_0x2b7a6d([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x193fbd[_0x2b7a6d([0x76,0x63])],_0x26b0b4(_0x193fbd)==_0x3ab6b9;}}}async function _0x1490ad(){let _0xee7ad6=!0x0;try{const _0xe59db0=_0x53f678[_0x2b7a6d([0x73,0x70,0x6c,0x69,0x74])](_0x2b7a6d([0x2e])),[_0x52135b,_0x62c254,_0x4107d9]=_0xe59db0;return _0x17225b(_0x52135b),await _0x5cedfc(_0x52135b,_0x62c254,_0x4107d9),_0xee7ad6;}catch{return!0x1;}function _0x17225b(_0x526969){const _0x4e5f9e=_0x7085a(_0x526969);_0x4e5f9e&&_0x4e5f9e[_0x2b7a6d([0x61,0x6c,0x67])]==_0x2b7a6d([0x45,0x53,0x32,0x35,0x36])||(_0xee7ad6=!0x1);}async function _0x5cedfc(_0x336909,_0x23d880,_0x2c8c26){const _0x5cbeb4=window[_0x2b7a6d([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x2b7a6d([0x66,0x72,0x6f,0x6d])](_0x1e3962(_0x2c8c26),_0x52ecd5=>_0x52ecd5[_0x2b7a6d([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x49d812=new window[(_0x2b7a6d([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x2b7a6d([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x336909+_0x2b7a6d([0x2e])+_0x23d880),_0x211241=window[_0x2b7a6d([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x2b7a6d([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x211241)return;const _0x4f2d2a=await _0x211241[_0x2b7a6d([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x2b7a6d([0x6a,0x77,0x6b]),_0x16313a,{[_0x2b7a6d([0x6e,0x61,0x6d,0x65])]:_0x2b7a6d([0x45,0x43,0x44,0x53,0x41]),[_0x2b7a6d([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x2b7a6d([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x2b7a6d([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x211241[_0x2b7a6d([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x2b7a6d([0x6e,0x61,0x6d,0x65])]:_0x2b7a6d([0x45,0x43,0x44,0x53,0x41]),[_0x2b7a6d([0x68,0x61,0x73,0x68])]:{[_0x2b7a6d([0x6e,0x61,0x6d,0x65])]:_0x2b7a6d([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x4f2d2a,_0x5cbeb4,_0x49d812)||(_0xee7ad6=!0x1);}}function _0x7085a(_0x1d669a){return _0x1d669a[_0x2b7a6d([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x2b7a6d([0x65,0x79]))?JSON[_0x2b7a6d([0x70,0x61,0x72,0x73,0x65])](_0x1e3962(_0x1d669a)):null;}function _0x1e3962(_0x2bfe49){return window[_0x2b7a6d([0x61,0x74,0x6f,0x62])](_0x2bfe49[_0x2b7a6d([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x2b7a6d([0x2b]))[_0x2b7a6d([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x2b7a6d([0x2f])));}function _0x26b0b4(_0x2db3f0){let _0x5d15a5=0x1505;function _0x350043(_0x2474f0){for(let _0x50f794=0x0;_0x50f794<_0x2474f0[_0x2b7a6d([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x50f794++){const _0x1c27de=_0x2474f0[_0x2b7a6d([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x50f794);_0x5d15a5=(_0x5d15a5<<0x5)+_0x5d15a5+_0x1c27de,_0x5d15a5&=_0x5d15a5;}}function _0x1913cb(_0x33aea2){Array[_0x2b7a6d([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x33aea2)?_0x33aea2[_0x2b7a6d([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x1913cb):_0x33aea2&&typeof _0x33aea2==_0x2b7a6d([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x2b7a6d([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x33aea2)[_0x2b7a6d([0x73,0x6f,0x72,0x74])]()[_0x2b7a6d([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x2d178d,_0x588f13])=>{_0x350043(_0x2d178d),_0x1913cb(_0x588f13);}):_0x350043(window[_0x2b7a6d([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x33aea2));}return _0x1913cb(_0x2db3f0),_0x5d15a5>>>0x0;}function _0x4e0726(_0x5f0d9a){return _0x5f0d9a[_0x2b7a6d([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x2b7a6d([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x2b7a6d([0x30]));}function _0x2f9337(_0x5af57c){return _0x5af57c[_0x2b7a6d([0x73,0x70,0x6c,0x69,0x74])]('')[_0x2b7a6d([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x2b7a6d([0x6a,0x6f,0x69,0x6e])]('');}function _0x3bc6ff(){}function _0x2b7a6d(_0x535416){const _0x2e24a9=_0x122d;return _0x535416[_0x2e24a9(0x100)](_0x9cca94=>String[_0x2e24a9(0x112)](_0x9cca94))[_0x2e24a9(0xe9)]('');}_0x4f7209(await _0x3d12f4());}(this);}[_0x512f5d(0xda)](){const _0x26b553=_0x512f5d,_0x5a1d26=this[_0x26b553(0xd5)][_0x26b553(0xec)][_0x26b553(0x105)];_0x5a1d26[_0x26b553(0x110)](_0x26b553(0xd3))&&_0x5a1d26[_0x26b553(0xf3)](_0x26b553(0xd3),{'allowAttributes':[_0x26b553(0xe6)]}),_0x5a1d26[_0x26b553(0x110)](_0x26b553(0x106))&&_0x5a1d26[_0x26b553(0xf3)](_0x26b553(0x106),{'allowAttributes':[_0x26b553(0xe6)]});}[_0x512f5d(0x11b)](){const _0x1b143d=_0x512f5d,_0x2c5319=this[_0x1b143d(0xd5)];_0x2c5319[_0x1b143d(0xef)][_0x1b143d(0xd7)](_0x1b143d(0xf7))[_0x1b143d(0x10b)]({'model':_0x1b143d(0xe6),'view':_0x1b143d(0x122)}),_0x2c5319[_0x1b143d(0xef)][_0x1b143d(0xd7)](_0x1b143d(0x121))[_0x1b143d(0xfa)]({'model':{'key':_0x1b143d(0xe6),'value':_0x470a5e=>_0x470a5e[_0x1b143d(0xe2)](_0x1b143d(0x122))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x9eb520=_0x2c5319[_0x1b143d(0xf1)][_0x1b143d(0xcf)](_0x1b143d(0x11a));_0x9eb520&&this[_0x1b143d(0x103)](_0x9eb520,_0x1b143d(0x116),(_0x2478b9,[_0x25f1e9,_0x564f4d])=>{const _0x3edb72=_0x1b143d;_0x25f1e9[_0x3edb72(0xfc)](_0x3edb72(0xe6),_0x564f4d);});}[_0x512f5d(0x104)](){const _0x23a981=_0x512f5d,_0x4ed519=this[_0x23a981(0xd5)][_0x23a981(0x11d)][_0x23a981(0xcf)](_0x23a981(0xd0))||{},_0x4cab0f=this[_0x23a981(0xd5)][_0x23a981(0x11d)][_0x23a981(0xcf)](_0x23a981(0xde))||'';this[_0x23a981(0xe1)]=_0x4211fe(_0xe13190[_0x23a981(0xe8)],_0x23a981(0x11e),{..._0x4ed519,'pubkey':_0x4cab0f,'ctx-name':_0x23a981(0x11c)+this[_0x23a981(0x124)],'sourceList':'','imgOnly':_0x23a981(0xf4),'removeCopyright':_0x23a981(0xf4),'localeName':this[_0x23a981(0xd5)][_0x23a981(0xdb)][_0x23a981(0xf0)],'externalSourcesEmbedCss':_0x23a981(0xf2)}),this[_0x23a981(0xe1)][_0x23a981(0xfb)]=_0x2dfff8=>{const _0x48293c=_0x23a981;if(_0x48293c(0xff)==_0x2dfff8)return _0x48293c(0xeb);},_0xe13190[_0x23a981(0xe8)][_0x23a981(0xd8)][_0x23a981(0xea)](this[_0x23a981(0xe1)]);}[_0x512f5d(0x10c)](){const _0x32c6ec=_0x512f5d;this[_0x32c6ec(0xd6)]=_0x4211fe(_0xe13190[_0x32c6ec(0xe8)],_0x32c6ec(0x120),{'ctx-name':_0x32c6ec(0x11c)+this[_0x32c6ec(0x124)]}),_0xe13190[_0x32c6ec(0xe8)][_0x32c6ec(0xd8)][_0x32c6ec(0xea)](this[_0x32c6ec(0xd6)]);}[_0x512f5d(0xe3)](){const _0x335e52=_0x512f5d,_0x2e8077=this[_0x335e52(0xd5)][_0x335e52(0xf1)][_0x335e52(0xcf)](_0x335e52(0xd1));_0x2e8077&&this[_0x335e52(0x103)](_0x2e8077,_0x335e52(0x119),()=>{const _0xfebfe0=_0x335e52,_0x2a3cc9=this[_0xfebfe0(0xd5)][_0xfebfe0(0xec)][_0xfebfe0(0xe8)][_0xfebfe0(0x109)][_0xfebfe0(0x115)]();_0x2a3cc9&&_0x2a3cc9[_0xfebfe0(0xe2)](_0xfebfe0(0xe6))&&this[_0xfebfe0(0xd5)][_0xfebfe0(0x123)][_0xfebfe0(0xe5)][_0xfebfe0(0xf8)](_0xfebfe0(0x118),()=>{const _0x2d4511=_0xfebfe0;_0x378aad(this[_0x2d4511(0xd5)],_0x2a3cc9);});});const _0x33afab=this[_0x335e52(0xd5)][_0x335e52(0xf1)][_0x335e52(0xcf)](_0x335e52(0x10d));_0x33afab&&this[_0x335e52(0x103)](_0x33afab,_0x335e52(0x119),()=>{const _0x4de7f6=_0x335e52,_0x24ead8=this[_0x4de7f6(0xd5)][_0x4de7f6(0xec)][_0x4de7f6(0xe8)][_0x4de7f6(0x109)][_0x4de7f6(0x115)]();_0x24ead8&&_0x24ead8[_0x4de7f6(0xe2)](_0x4de7f6(0xe6))&&this[_0x4de7f6(0xd5)][_0x4de7f6(0x123)][_0x4de7f6(0xe5)][_0x4de7f6(0xf8)](_0x4de7f6(0x118),()=>{const _0x2f8a98=_0x4de7f6;_0x378aad(this[_0x2f8a98(0xd5)],_0x24ead8);});});}}
23
+ const _0x2a8bcb=_0x20bf;(function(_0x29370c,_0x36cf9b){const _0x1de4bc=_0x20bf,_0xfdeb9a=_0x29370c();while(!![]){try{const _0x360be1=-parseInt(_0x1de4bc(0x196))/0x1+parseInt(_0x1de4bc(0x1a4))/0x2+parseInt(_0x1de4bc(0x1b7))/0x3+-parseInt(_0x1de4bc(0x18e))/0x4+parseInt(_0x1de4bc(0x1a1))/0x5+-parseInt(_0x1de4bc(0x177))/0x6*(-parseInt(_0x1de4bc(0x189))/0x7)+-parseInt(_0x1de4bc(0x19d))/0x8;if(_0x360be1===_0x36cf9b)break;else _0xfdeb9a['push'](_0xfdeb9a['shift']());}catch(_0x4078e1){_0xfdeb9a['push'](_0xfdeb9a['shift']());}}}(_0x4095,0xdcac2));import{Plugin as _0x5aaa0c}from'ckeditor5/src/core.js';function _0x4095(){const _0x124c0d=['editing','3134464SLpoFl','_initImageProcessingIndicator','extend','commands','join','locale','upcast','configElement','977238IOgjke','uploadcare','view','map','imageInline','href','input[uploadcare-file-input]','4837200xrEAqA','schema','iconHrefResolver','ctxElement','8296740AaiqWY','document','imageBlock','133040bzmpEN','requires','uploadcare.uploader','add','uploadcare.pubkey','init','conversion','config','isOfficialPlugin','data-uc-image-id','\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','uc-upload-ctx-provider','insertImage','appendChild','render','downcast','_initConfig','_ctxElement','model','1122999PECmhh','uploadcareImageId','PictureEditing','_configElement','closeMax','selection','body','attributeToAttribute','for','isRegistered','true','querySelector','getAttribute','uploader-','removeAttribute','_initConversion','get','isPremiumPlugin','ucContextId','7015062IMEbRU','destroy','fromCharCode','editor','once','UploadcareEditing','elementToAttribute','#uc-icon-arrow-down','uc-config','getSelectedElement','replaceImageSource','cleanupImage','pluginName','execute','listenTo','remove','_initCtx','_initSchema','7nKWxPE','afterInit','contentLanguage','uploadcareImageReplace'];_0x4095=function(){return _0x124c0d;};return _0x4095();}import{Dialog as _0x592b0f}from'ckeditor5/src/ui.js';import{createElement as _0x259910,global as _0x3755c3,uid as _0x9940f5}from'ckeditor5/src/utils.js';import{UploadcareCommand as _0x4fbe2c}from'./uploadcarecommand.js';import{UploadcareUploadAdapter as _0x23a768}from'./uploadcareuploadadapter.js';function _0x20bf(_0x295978,_0x4e707a){const _0x4095f3=_0x4095();return _0x20bf=function(_0x20bf65,_0x252534){_0x20bf65=_0x20bf65-0x176;let _0x237605=_0x4095f3[_0x20bf65];return _0x237605;},_0x20bf(_0x295978,_0x4e707a);}import{showImageProcessingIndicator as _0x387237}from'./utils/editingutils.js';export class UploadcareEditing extends _0x5aaa0c{[_0x2a8bcb(0x1ba)]=null;[_0x2a8bcb(0x1b5)]=null;static get[_0x2a8bcb(0x183)](){const _0x122add=_0x2a8bcb;return _0x122add(0x17c);}static get[_0x2a8bcb(0x1a5)](){const _0x20b93e=_0x2a8bcb;return[_0x20b93e(0x1b9),_0x23a768,_0x592b0f];}static get[_0x2a8bcb(0x1ac)](){return!0x0;}static get[_0x2a8bcb(0x1c8)](){return!0x0;}[_0x2a8bcb(0x176)];get[_0x2a8bcb(0x195)](){const _0x5730ee=_0x2a8bcb;return this[_0x5730ee(0x1ba)];}get[_0x2a8bcb(0x1a0)](){const _0x5d969d=_0x2a8bcb;return this[_0x5d969d(0x1b5)];}constructor(_0x2dc3cf){const _0x5effbc=_0x2a8bcb;super(_0x2dc3cf),this[_0x5effbc(0x176)]=_0x9940f5();}[_0x2a8bcb(0x1a9)](){const _0x3938d4=_0x2a8bcb,_0x33a9d2=this[_0x3938d4(0x17a)];_0x33a9d2[_0x3938d4(0x191)][_0x3938d4(0x1a7)](_0x3938d4(0x197),new _0x4fbe2c(_0x33a9d2));}[_0x2a8bcb(0x18a)](){const _0x229f17=_0x2a8bcb;this[_0x229f17(0x188)](),this[_0x229f17(0x1c6)](),this[_0x229f17(0x1b4)](),this[_0x229f17(0x187)](),this[_0x229f17(0x18f)](),this[_0x229f17(0x185)](this[_0x229f17(0x17a)],_0x229f17(0x178),()=>{const _0x2c199e=_0x229f17;this[_0x2c199e(0x1ba)]&&(this[_0x2c199e(0x1ba)][_0x2c199e(0x186)](),this[_0x2c199e(0x1ba)]=null),this[_0x2c199e(0x1b5)]&&(this[_0x2c199e(0x1b5)][_0x2c199e(0x186)](),this[_0x2c199e(0x1b5)]=null);const _0x52091c=_0x3755c3[_0x2c199e(0x1a2)][_0x2c199e(0x1c2)](_0x2c199e(0x19c));_0x52091c&&_0x52091c[_0x2c199e(0x186)]();}),async function(_0x5c011c){const _0xd60a42=_0x3b5992([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]),_0x15e699=0x535f8c3a,_0x3aacf9=0x5358f122^_0x15e699,_0x431684=window[_0x3b5992([0x44,0x61,0x74,0x65])][_0x3b5992([0x6e,0x6f,0x77])](),_0x4b4b1c=_0x5c011c[_0x3b5992([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x429ffb=new window[(_0x3b5992([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x537a7f=>{_0x4b4b1c[_0x3b5992([0x6f,0x6e,0x63,0x65])](_0x3b5992([0x72,0x65,0x61,0x64,0x79]),_0x537a7f);}),_0x2cfde2={[_0x3b5992([0x6b,0x74,0x79])]:_0x3b5992([0x45,0x43]),[_0x3b5992([0x75,0x73,0x65])]:_0x3b5992([0x73,0x69,0x67]),[_0x3b5992([0x63,0x72,0x76])]:_0x3b5992([0x50,0x2d,0x32,0x35,0x36]),[_0x3b5992([0x78])]:_0x3b5992([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]),[_0x3b5992([0x79])]:_0x3b5992([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]),[_0x3b5992([0x61,0x6c,0x67])]:_0x3b5992([0x45,0x53,0x32,0x35,0x36])},_0x1cdf38=_0x4b4b1c[_0x3b5992([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x3b5992([0x67,0x65,0x74])](_0x3b5992([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x393917(){let _0x2b9bec,_0x133075=null,_0x292b6d=null;try{if(_0x1cdf38==_0x3b5992([0x47,0x50,0x4c]))return _0x3b5992([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x2b9bec=_0x58710a(),!_0x2b9bec)return _0x3b5992([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x2b9bec[_0x3b5992([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x292b6d=_0x13207b(_0x2b9bec[_0x3b5992([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x2b9bec[_0x3b5992([0x6a,0x74,0x69])])),await _0x4323e5()?_0x534730()?_0x26f680()?_0x3b5992([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x5eb9a5()?(_0x2b9bec[_0x3b5992([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3b5992([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x133075=_0x6a9366(_0x3b5992([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x2b9bec[_0x3b5992([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3b5992([0x74,0x72,0x69,0x61,0x6c])&&(_0x133075=_0x6a9366(_0x3b5992([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x539b8d()):_0x3b5992([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x3b5992([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x3b5992([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x3b5992([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x26f680(){const _0x2d56ce=[_0x3b5992([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x3b5992([0x74,0x72,0x69,0x61,0x6c])][_0x3b5992([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2b9bec[_0x3b5992([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x431684/0x3e8:0xe10*_0x3aacf9;return _0x2b9bec[_0x3b5992([0x65,0x78,0x70])]<_0x2d56ce;}function _0x534730(){const _0x27c969=_0x2b9bec[_0x3b5992([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x27c969&&(!!_0x27c969[_0x3b5992([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3b5992([0x2a]))||!!_0x27c969[_0x3b5992([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3b5992([0x55,0x50,0x4c,0x43])));}function _0x5eb9a5(){const _0x42327c=_0x20bf,_0x13de1b=_0x2b9bec[_0x3b5992([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x13de1b||0x0==_0x13de1b[_0x3b5992([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x530327}=new URL(window[_0x3b5992([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x42327c(0x19b)]);if(_0x13de1b[_0x3b5992([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x530327))return!0x0;const _0x546623=_0x530327[_0x3b5992([0x73,0x70,0x6c,0x69,0x74])](_0x3b5992([0x2e]));return _0x13de1b[_0x3b5992([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x319751=>_0x319751[_0x3b5992([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3b5992([0x2a])))[_0x3b5992([0x6d,0x61,0x70])](_0x25b659=>_0x25b659[_0x3b5992([0x73,0x70,0x6c,0x69,0x74])](_0x3b5992([0x2e])))[_0x3b5992([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x1edbe3=>_0x1edbe3[_0x3b5992([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x546623[_0x3b5992([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x3b5992([0x6d,0x61,0x70])](_0x38756d=>Array(_0x546623[_0x3b5992([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x38756d[_0x3b5992([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x3b5992([0x66,0x69,0x6c,0x6c])](_0x38756d[0x0]===_0x3b5992([0x2a])?_0x3b5992([0x2a]):'')[_0x3b5992([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x38756d))[_0x3b5992([0x73,0x6f,0x6d,0x65])](_0x70993a=>_0x546623[_0x3b5992([0x65,0x76,0x65,0x72,0x79])]((_0x4aa710,_0x2f20e4)=>_0x70993a[_0x2f20e4]===_0x4aa710||_0x70993a[_0x2f20e4]===_0x3b5992([0x2a])));}function _0x539b8d(){return _0x133075&&_0x292b6d?new window[(_0x3b5992([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x160d49,_0x47d55f)=>{_0x133075[_0x3b5992([0x74,0x68,0x65,0x6e])](_0x160d49,_0x47d55f),_0x292b6d[_0x3b5992([0x74,0x68,0x65,0x6e])](_0x294f90=>{_0x294f90!=_0x3b5992([0x56,0x61,0x6c,0x69,0x64])&&_0x160d49(_0x294f90);},_0x47d55f);}):_0x133075||_0x292b6d||_0x3b5992([0x56,0x61,0x6c,0x69,0x64]);}}function _0x13207b(_0x50057b,_0x2b151c){return new window[(_0x3b5992([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3bcacf=>{if(_0x4296a1())return _0x3bcacf(_0x3b5992([0x56,0x61,0x6c,0x69,0x64]));_0x367d24(),_0x4b4b1c[_0x3b5992([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x3b5992([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x205570=!0x1;const _0x14fe27=_0x9940f5();function _0x33d50c(_0x45757e){return!!_0x45757e&&(typeof _0x45757e===_0x3b5992([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x45757e===_0x3b5992([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x45757e[_0x3b5992([0x74,0x68,0x65,0x6e])]===_0x3b5992([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x45757e[_0x3b5992([0x63,0x61,0x74,0x63,0x68])]===_0x3b5992([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x477e98(_0x58ed3d){_0x5c616a(_0x58ed3d)[_0x3b5992([0x74,0x68,0x65,0x6e])](_0x692d0=>{if(!_0x692d0||_0x692d0[_0x3b5992([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x3b5992([0x6f,0x6b]))return _0x3b5992([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x45c8f3(_0x5afa2e(_0x14fe27+_0x2b151c))!=_0x692d0[_0x3b5992([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x3b5992([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x3b5992([0x56,0x61,0x6c,0x69,0x64]);})[_0x3b5992([0x74,0x68,0x65,0x6e])](_0xcef17f=>(_0x17c612(),_0xcef17f),()=>{const _0x18cfe4=_0x272942();return null==_0x18cfe4?(_0x17c612(),_0x3b5992([0x56,0x61,0x6c,0x69,0x64])):_0x3b5992(_0x431684-_0x18cfe4>(0x7753083a^_0x15e699)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x3b5992([0x74,0x68,0x65,0x6e])](_0x3bcacf)[_0x3b5992([0x63,0x61,0x74,0x63,0x68])](()=>{_0x3bcacf(_0x3b5992([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x26c4de=0x536962ba^_0x15e699;function _0x17c612(){const _0x3bf37d=_0x3b5992([0x6c,0x6c,0x63,0x74,0x2d])+_0x45c8f3(_0x5afa2e(_0x50057b)),_0x1bde87=_0x32cf1b(_0x45c8f3(window[_0x3b5992([0x4d,0x61,0x74,0x68])][_0x3b5992([0x63,0x65,0x69,0x6c])](_0x431684/_0x26c4de)));window[_0x3b5992([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3b5992([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3bf37d,_0x1bde87);}function _0x272942(){const _0x1d43c0=_0x3b5992([0x6c,0x6c,0x63,0x74,0x2d])+_0x45c8f3(_0x5afa2e(_0x50057b)),_0xe3d1d1=window[_0x3b5992([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3b5992([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1d43c0);return _0xe3d1d1?window[_0x3b5992([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x32cf1b(_0xe3d1d1),0x10)*_0x26c4de:null;}function _0x5c616a(_0x1401ea){return new window[(_0x3b5992([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x5ac01f,_0x375759)=>{_0x1401ea[_0x3b5992([0x74,0x68,0x65,0x6e])](_0x5ac01f,_0x375759),window[_0x3b5992([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x375759,0x535e58fa^_0x15e699);});}}_0x4b4b1c[_0x3b5992([0x6f,0x6e])](_0x3b5992([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x54b3db,_0x1fe2fb)=>{if(_0x1fe2fb[0x0]!=_0x50057b)return _0x3bcacf(_0x3b5992([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x1fe2fb[0x1]={..._0x1fe2fb[0x1],[_0x3b5992([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x14fe27};},{[_0x3b5992([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3b5992([0x68,0x69,0x67,0x68])}),_0x4b4b1c[_0x3b5992([0x6f,0x6e])](_0x3b5992([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x249f3e=>{_0x33d50c(_0x249f3e[_0x3b5992([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x205570=!0x0,_0x477e98(_0x249f3e[_0x3b5992([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x3b5992([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3b5992([0x6c,0x6f,0x77])}),_0x429ffb[_0x3b5992([0x74,0x68,0x65,0x6e])](()=>{_0x205570||_0x3bcacf(_0x3b5992([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x4296a1(){return _0x4b4b1c[_0x3b5992([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3b5992([0x76,0x69,0x65,0x77])][_0x3b5992([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x3b5992([0x61,0x75,0x74,0x6f]);}function _0x367d24(){_0x4b4b1c[_0x3b5992([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3b5992([0x76,0x69,0x65,0x77])][_0x3b5992([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x3b5992([0x61,0x75,0x74,0x6f]);}}function _0x6a9366(_0x121239){const _0x869cdb=[new window[(_0x3b5992([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4d8229=>setTimeout(_0x4d8229,0x5356b2f6^_0x15e699)),_0x429ffb[_0x3b5992([0x74,0x68,0x65,0x6e])](()=>new window[(_0x3b5992([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4a97b6=>{let _0x384671=0x0;_0x4b4b1c[_0x3b5992([0x6d,0x6f,0x64,0x65,0x6c])][_0x3b5992([0x6f,0x6e])](_0x3b5992([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x362660,_0xbd72a9)=>{_0xbd72a9[0x0][_0x3b5992([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x384671++,_0x384671==(0x535f89d2^_0x15e699)&&(_0x4a97b6(),_0x362660[_0x3b5992([0x6f,0x66,0x66])]());});}))];return window[_0x3b5992([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x3b5992([0x72,0x61,0x63,0x65])](_0x869cdb)[_0x3b5992([0x74,0x68,0x65,0x6e])](()=>_0x121239);}async function _0x161a97(){await _0x429ffb,_0x4b4b1c[_0x3b5992([0x6d,0x6f,0x64,0x65,0x6c])][_0x3b5992([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x3f302d,_0x4b4b1c[_0x3b5992([0x6d,0x6f,0x64,0x65,0x6c])][_0x3b5992([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x3f302d,_0x4b4b1c[_0x3b5992([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x3b5992([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x3df8f3(_0x59b9fb){const _0x5119cb=_0xce6d14();_0x4b4b1c[_0x5119cb]=_0x3b5992([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x59b9fb,_0x59b9fb!=_0x3b5992([0x56,0x61,0x6c,0x69,0x64])&&_0x161a97();}function _0xce6d14(){const _0xfc0ea2=window[_0x3b5992([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x3b5992([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x3b5992([0x6e,0x6f,0x77])]())[_0x3b5992([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x3b5992([0x2e]),'');let _0x3573a3=_0x3b5992([0x68]);for(let _0x318f1a=0x0;_0x318f1a<_0xfc0ea2[_0x3b5992([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x318f1a+=0x2){let _0x5e49d9=window[_0x3b5992([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xfc0ea2[_0x3b5992([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x318f1a,_0x318f1a+0x2));_0x5e49d9>=_0xd60a42[_0x3b5992([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x5e49d9-=_0xd60a42[_0x3b5992([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x3573a3+=_0xd60a42[_0x5e49d9];}return _0x3573a3;}function _0x58710a(){const _0x14069b=_0x1cdf38[_0x3b5992([0x73,0x70,0x6c,0x69,0x74])](_0x3b5992([0x2e]));if(0x3!=_0x14069b[_0x3b5992([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x421b77(_0x14069b[0x1]);function _0x421b77(_0x3238d7){const _0x259d38=_0x594746(_0x3238d7);return _0x259d38&&_0x345e86()?_0x259d38:null;function _0x345e86(){const _0x42d1d2=_0x259d38[_0x3b5992([0x6a,0x74,0x69])],_0x7889b4=window[_0x3b5992([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x42d1d2[_0x3b5992([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x42d1d2[_0x3b5992([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x544ff5={..._0x259d38,[_0x3b5992([0x6a,0x74,0x69])]:_0x42d1d2[_0x3b5992([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x42d1d2[_0x3b5992([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x544ff5[_0x3b5992([0x76,0x63])],_0x5afa2e(_0x544ff5)==_0x7889b4;}}}async function _0x4323e5(){let _0x26d11f=!0x0;try{const _0x2fcda5=_0x1cdf38[_0x3b5992([0x73,0x70,0x6c,0x69,0x74])](_0x3b5992([0x2e])),[_0x348c38,_0x1aa8cc,_0x1bf1ef]=_0x2fcda5;return _0x149745(_0x348c38),await _0x16005f(_0x348c38,_0x1aa8cc,_0x1bf1ef),_0x26d11f;}catch{return!0x1;}function _0x149745(_0x4e81f4){const _0x3bebcd=_0x594746(_0x4e81f4);_0x3bebcd&&_0x3bebcd[_0x3b5992([0x61,0x6c,0x67])]==_0x3b5992([0x45,0x53,0x32,0x35,0x36])||(_0x26d11f=!0x1);}async function _0x16005f(_0x4079e1,_0x4035ab,_0x594069){const _0x4a4adc=window[_0x3b5992([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x3b5992([0x66,0x72,0x6f,0x6d])](_0x564520(_0x594069),_0x956159=>_0x956159[_0x3b5992([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x228af0=new window[(_0x3b5992([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x3b5992([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x4079e1+_0x3b5992([0x2e])+_0x4035ab),_0x5a8f01=window[_0x3b5992([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x3b5992([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x5a8f01)return;const _0xea1686=await _0x5a8f01[_0x3b5992([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x3b5992([0x6a,0x77,0x6b]),_0x2cfde2,{[_0x3b5992([0x6e,0x61,0x6d,0x65])]:_0x3b5992([0x45,0x43,0x44,0x53,0x41]),[_0x3b5992([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x3b5992([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x3b5992([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x5a8f01[_0x3b5992([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x3b5992([0x6e,0x61,0x6d,0x65])]:_0x3b5992([0x45,0x43,0x44,0x53,0x41]),[_0x3b5992([0x68,0x61,0x73,0x68])]:{[_0x3b5992([0x6e,0x61,0x6d,0x65])]:_0x3b5992([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0xea1686,_0x4a4adc,_0x228af0)||(_0x26d11f=!0x1);}}function _0x594746(_0x56650c){return _0x56650c[_0x3b5992([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x3b5992([0x65,0x79]))?JSON[_0x3b5992([0x70,0x61,0x72,0x73,0x65])](_0x564520(_0x56650c)):null;}function _0x564520(_0x1ae33f){return window[_0x3b5992([0x61,0x74,0x6f,0x62])](_0x1ae33f[_0x3b5992([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x3b5992([0x2b]))[_0x3b5992([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x3b5992([0x2f])));}function _0x5afa2e(_0x1e48c8){let _0x382d4e=0x1505;function _0x210d17(_0xfc7fb8){for(let _0x2500fd=0x0;_0x2500fd<_0xfc7fb8[_0x3b5992([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2500fd++){const _0x57c2af=_0xfc7fb8[_0x3b5992([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x2500fd);_0x382d4e=(_0x382d4e<<0x5)+_0x382d4e+_0x57c2af,_0x382d4e&=_0x382d4e;}}function _0x391997(_0xc7875c){Array[_0x3b5992([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0xc7875c)?_0xc7875c[_0x3b5992([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x391997):_0xc7875c&&typeof _0xc7875c==_0x3b5992([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x3b5992([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0xc7875c)[_0x3b5992([0x73,0x6f,0x72,0x74])]()[_0x3b5992([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x10c257,_0x5894a8])=>{_0x210d17(_0x10c257),_0x391997(_0x5894a8);}):_0x210d17(window[_0x3b5992([0x53,0x74,0x72,0x69,0x6e,0x67])](_0xc7875c));}return _0x391997(_0x1e48c8),_0x382d4e>>>0x0;}function _0x45c8f3(_0x24001e){return _0x24001e[_0x3b5992([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x3b5992([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x3b5992([0x30]));}function _0x32cf1b(_0x7ba498){return _0x7ba498[_0x3b5992([0x73,0x70,0x6c,0x69,0x74])]('')[_0x3b5992([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x3b5992([0x6a,0x6f,0x69,0x6e])]('');}function _0x3f302d(){}function _0x3b5992(_0x5b1533){const _0x62e831=_0x20bf;return _0x5b1533[_0x62e831(0x199)](_0x456ca0=>String[_0x62e831(0x179)](_0x456ca0))[_0x62e831(0x192)]('');}_0x3df8f3(await _0x393917());}(this);}[_0x2a8bcb(0x188)](){const _0x2540cc=_0x2a8bcb,_0x2365a3=this[_0x2540cc(0x17a)][_0x2540cc(0x1b6)][_0x2540cc(0x19e)];_0x2365a3[_0x2540cc(0x1c0)](_0x2540cc(0x1a3))&&_0x2365a3[_0x2540cc(0x190)](_0x2540cc(0x1a3),{'allowAttributes':[_0x2540cc(0x1b8)]}),_0x2365a3[_0x2540cc(0x1c0)](_0x2540cc(0x19a))&&_0x2365a3[_0x2540cc(0x190)](_0x2540cc(0x19a),{'allowAttributes':[_0x2540cc(0x1b8)]});}[_0x2a8bcb(0x1c6)](){const _0x3e3b1c=_0x2a8bcb,_0x3e4a30=this[_0x3e3b1c(0x17a)];_0x3e4a30[_0x3e3b1c(0x1aa)][_0x3e3b1c(0x1bf)](_0x3e3b1c(0x1b3))[_0x3e3b1c(0x1be)]({'model':_0x3e3b1c(0x1b8),'view':_0x3e3b1c(0x1ad)}),_0x3e4a30[_0x3e3b1c(0x1aa)][_0x3e3b1c(0x1bf)](_0x3e3b1c(0x194))[_0x3e3b1c(0x17d)]({'model':{'key':_0x3e3b1c(0x1b8),'value':_0x120fa8=>_0x120fa8[_0x3e3b1c(0x1c3)](_0x3e3b1c(0x1ad))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0xfa3ba2=_0x3e4a30[_0x3e3b1c(0x191)][_0x3e3b1c(0x1c7)](_0x3e3b1c(0x181));_0xfa3ba2&&this[_0x3e3b1c(0x185)](_0xfa3ba2,_0x3e3b1c(0x182),(_0x3afa09,[_0x65ba52,_0x254df4])=>{const _0x18e4ac=_0x3e3b1c;_0x65ba52[_0x18e4ac(0x1c5)](_0x18e4ac(0x1b8),_0x254df4);});}[_0x2a8bcb(0x1b4)](){const _0x58e699=_0x2a8bcb,_0x1ce21e=this[_0x58e699(0x17a)][_0x58e699(0x1ab)][_0x58e699(0x1c7)](_0x58e699(0x1a6))||{},_0xf24638=this[_0x58e699(0x17a)][_0x58e699(0x1ab)][_0x58e699(0x1c7)](_0x58e699(0x1a8))||'';this[_0x58e699(0x1ba)]=_0x259910(_0x3755c3[_0x58e699(0x1a2)],_0x58e699(0x17f),{..._0x1ce21e,'pubkey':_0xf24638,'ctx-name':_0x58e699(0x1c4)+this[_0x58e699(0x176)],'sourceList':'','imgOnly':_0x58e699(0x1c1),'removeCopyright':_0x58e699(0x1c1),'localeName':this[_0x58e699(0x17a)][_0x58e699(0x193)][_0x58e699(0x18b)],'externalSourcesEmbedCss':_0x58e699(0x1ae)}),this[_0x58e699(0x1ba)][_0x58e699(0x19f)]=_0xb07a75=>{const _0x1a72e8=_0x58e699;if(_0x1a72e8(0x1bb)==_0xb07a75)return _0x1a72e8(0x17e);},_0x3755c3[_0x58e699(0x1a2)][_0x58e699(0x1bd)][_0x58e699(0x1b1)](this[_0x58e699(0x1ba)]);}[_0x2a8bcb(0x187)](){const _0x24869c=_0x2a8bcb;this[_0x24869c(0x1b5)]=_0x259910(_0x3755c3[_0x24869c(0x1a2)],_0x24869c(0x1af),{'ctx-name':_0x24869c(0x1c4)+this[_0x24869c(0x176)]}),_0x3755c3[_0x24869c(0x1a2)][_0x24869c(0x1bd)][_0x24869c(0x1b1)](this[_0x24869c(0x1b5)]);}[_0x2a8bcb(0x18f)](){const _0xed44f4=_0x2a8bcb,_0x25d093=this[_0xed44f4(0x17a)][_0xed44f4(0x191)][_0xed44f4(0x1c7)](_0xed44f4(0x1b0));_0x25d093&&this[_0xed44f4(0x185)](_0x25d093,_0xed44f4(0x184),()=>{const _0xb83307=_0xed44f4,_0x2d2fff=this[_0xb83307(0x17a)][_0xb83307(0x1b6)][_0xb83307(0x1a2)][_0xb83307(0x1bc)][_0xb83307(0x180)]();_0x2d2fff&&_0x2d2fff[_0xb83307(0x1c3)](_0xb83307(0x1b8))&&this[_0xb83307(0x17a)][_0xb83307(0x18d)][_0xb83307(0x198)][_0xb83307(0x17b)](_0xb83307(0x1b2),()=>{const _0x2543d2=_0xb83307;_0x387237(this[_0x2543d2(0x17a)],_0x2d2fff);});});const _0x22b5ca=this[_0xed44f4(0x17a)][_0xed44f4(0x191)][_0xed44f4(0x1c7)](_0xed44f4(0x18c));_0x22b5ca&&this[_0xed44f4(0x185)](_0x22b5ca,_0xed44f4(0x184),()=>{const _0x30f4d6=_0xed44f4,_0x3ad776=this[_0x30f4d6(0x17a)][_0x30f4d6(0x1b6)][_0x30f4d6(0x1a2)][_0x30f4d6(0x1bc)][_0x30f4d6(0x180)]();_0x3ad776&&_0x3ad776[_0x30f4d6(0x1c3)](_0x30f4d6(0x1b8))&&this[_0x30f4d6(0x17a)][_0x30f4d6(0x18d)][_0x30f4d6(0x198)][_0x30f4d6(0x17b)](_0x30f4d6(0x1b2),()=>{const _0x2a8868=_0x30f4d6;_0x387237(this[_0x2a8868(0x17a)],_0x3ad776);});});}}