@ckeditor/ckeditor5-uploadcare 0.0.0-nightly-20260111.0 → 0.0.0-nightly-20260112.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 _0x53e594,Command as _0x3d5f59}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x3bf33f,IconGooglePhotos as _0x46bdee,IconGoogleDrive as _0x4e9925,IconFacebook as _0x24b028,IconDropbox as _0x248759,IconUploadcareLink as _0x114006,IconUploadcareImageUpload as _0x5b8cfa,IconError as _0x5440f8,IconUploadcareImageEdit as _0x39c048}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x28b5fa,MenuBarMenuListItemButtonView as _0x26777b,View as _0x4f922f,FocusCycler as _0x344e12,Dialog as _0x4d37fc,DialogViewPosition as _0x7fd479,SpinnerView as _0x30edda,IconView as _0x26591f,Notification as _0x515009}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x353302,DomEmitterMixin as _0x1e9ec0,global as _0x1eb88f,getAncestors as _0x1bf4b3,ObservableMixin as _0x4f6cbb,uid as _0x50fb5f,createElement as _0x4183e6}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x1bff2a}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x5d947b,info as _0x2ff0d4}from'@uploadcare/upload-client';import*as _0xc82fbc from'@uploadcare/file-uploader';var i=function(_0x547a52){return _0x547a52['Local']='local',_0x547a52['URL']='url',_0x547a52['Dropbox']='dropbox',_0x547a52['GDrive']='gdrive',_0x547a52['Facebook']='facebook',_0x547a52['GPhotos']='gphotos',_0x547a52['OneDrive']='onedrive',_0x547a52;}({});function _(_0x57d20f,_0x6afa1f,_0x4d18a0){const t=_0x57d20f['t'],_0x34b359=_0x57d20f['t'];switch(_0x6afa1f){case i['Local']:return{'text':_0x34b359('Insert'===_0x4d18a0?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x34b359('From\x20computer')};case i['URL']:return{'text':'Insert'===_0x4d18a0?_0x34b359('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x34b359('Via\x20URL')};case i['Dropbox']:return{'text':t('Insert'===_0x4d18a0?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case i['Facebook']:return{'text':t('Insert'===_0x4d18a0?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case i['GDrive']:return{'text':t('Insert'===_0x4d18a0?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case i['GPhotos']:return{'text':t('Insert'===_0x4d18a0?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case i['OneDrive']:return{'text':t('Insert'===_0x4d18a0?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x6afa1f;}}class e extends _0x53e594{['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 _0x451967=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x31508e;for(const _0x58940f in _0x451967){const _0x2956b3=_0x58940f,_0x2ee56e=_0x451967[_0x2956b3];if('uploadcareLicenseKeyValid'==_0x2ee56e||'uploadcareLicenseKeyInvalid'==_0x2ee56e||'uploadcareLicenseKeyExpired'==_0x2ee56e||'uploadcareLicenseKeyDomainLimit'==_0x2ee56e||'uploadcareLicenseKeyNotAllowed'==_0x2ee56e||'uploadcareLicenseKeyEvaluationLimit'==_0x2ee56e||'uploadcareLicenseKeyUsageLimit'==_0x2ee56e){delete _0x451967[_0x2956b3],_0x31508e=_0x2ee56e,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x31508e&&_0x451967['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x31508e&&_0x451967['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x31508e&&_0x451967['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x31508e&&_0x451967['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x31508e&&_0x451967['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyUsageLimit'==_0x31508e&&_0x451967['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x32817f}=this,_0x27a34d=_0x32817f['commands']['get']('uploadcare');if(!_0x27a34d)return;const _0x44692d=this['_normalizeConfigSourceList'](_0x32817f['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x38328b,_0x4fe4bf)=>{const _0x41369e=this['_getIntegrationKey'](_0x4fe4bf['type']);return _0x38328b[_0x41369e]||(_0x38328b[_0x41369e]=[]),_0x38328b[_0x41369e]['push'](_0x4fe4bf),_0x38328b;},{});_0x32817f['plugins']['has']('ImageInsertUI')&&_0x32817f['commands']['get']('uploadcare')&&Object['entries'](_0x44692d)['forEach'](([_0x3d4123,_0x5abcaf])=>{_0x32817f['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x3d4123,'observable':()=>_0x27a34d,'buttonViewCreator':()=>this['_createToolbarButton'](_0x5abcaf),'formViewCreator':()=>this['_createDropdownButtons'](_0x5abcaf),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x5abcaf),'override':'assetManager'!==_0x3d4123});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0xae379d){const {locale:_0x5bff9e}=this['editor'];return _0xae379d['map'](_0x157934=>{const _0x135e4b=_(_0x5bff9e,_0x157934,'Insert');switch(_0x157934){case i['Local']:return{'icon':_0x5b8cfa,'type':i['Local'],..._0x135e4b};case i['URL']:return{'icon':_0x114006,'type':i['URL'],..._0x135e4b};case i['Dropbox']:return{'icon':_0x248759,'type':i['Dropbox'],..._0x135e4b};case i['Facebook']:return{'icon':_0x24b028,'type':i['Facebook'],..._0x135e4b};case i['GDrive']:return{'icon':_0x4e9925,'type':i['GDrive'],..._0x135e4b};case i['GPhotos']:return{'icon':_0x46bdee,'type':i['GPhotos'],..._0x135e4b};case i['OneDrive']:return{'icon':_0x3bf33f,'type':i['OneDrive'],..._0x135e4b};}});}['_getIntegrationKey'](_0x561d7f){switch(_0x561d7f){case i['Local']:return'upload';case i['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x26ba54,_0x5e0424){const _0x58b3fc=this['editor'],_0x5248f4=new _0x26ba54(_0x58b3fc['locale']),_0x47583c=_0x58b3fc['commands']['get']('uploadcare');return _0x5248f4['bind']('isEnabled')['to'](_0x47583c),_0x5248f4['on']('execute',()=>{_0x47583c['execute'](_0x5e0424);}),_0x5248f4;}['_createToolbarButton'](_0x330333){const {locale:_0x458a8d}=this['editor'],_0x5698b3=this['editor']['plugins']['get']('ImageInsertUI'),_0xb34c96=_0x330333[0x0],_0x1866ba=this['_createButton'](_0x28b5fa,_0xb34c96['type']);return _0x1866ba['icon']=_0xb34c96['icon'],_0x1866ba['bind']('label')['to'](_0x5698b3,'isImageSelected',_0x751b4=>_(_0x458a8d,_0xb34c96['type'],_0x751b4?'Replace':'Insert')['text']),_0x1866ba['tooltip']=!0x0,_0x1866ba;}['_createDropdownButtons'](_0x1a4083){const {locale:_0x3274b0}=this['editor'],_0x370dfe=this['editor']['plugins']['get']('ImageInsertUI');return _0x1a4083['map'](_0x175f9a=>{const _0xd936fa=this['_createButton'](_0x28b5fa,_0x175f9a['type']);return _0xd936fa['withText']=!0x0,_0xd936fa['icon']=_0x175f9a['icon'],_0xd936fa['bind']('label')['to'](_0x370dfe,'isImageSelected',_0x15674b=>_(_0x3274b0,_0x175f9a['type'],_0x15674b?'Replace':'Insert')['text']),_0xd936fa;});}['_createMenuBarButtons'](_0x48d820){return _0x48d820['map'](_0x8aeb48=>{const _0xd48a5c=this['_createButton'](_0x26777b,_0x8aeb48['type']);return _0xd48a5c['icon']=_0x8aeb48['icon'],_0xd48a5c['label']=_0x8aeb48['shortText'],_0xd48a5c;});}}class F extends _0x4f922f{['focusTracker'];['focusCycler'];constructor(_0x473996){super(_0x473996),this['focusTracker']=new _0x353302(),this['focusCycler']=new _0x344e12({'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(_0x432388,_0x3f9a45){super(_0x432388),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-'+_0x3f9a45}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}}function C(_0x41ecd3,_0x989277){const _0x155cf4=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x32b2b1=>_0x32b2b1<=_0x989277)['map'](_0x363250=>_0x41ecd3['replace'](/\/$/,'')+'/-/resize/'+_0x363250+'x/\x20'+_0x363250+'w');return{'imageFallbackUrl':_0x41ecd3,'imageSources':[{'srcset':_0x155cf4['join'](',\x20'),'sizes':'(max-width:\x20'+_0x989277+'px)\x20100vw,\x20'+_0x989277+'px','type':'image/webp'}]};}function S(_0x4a0233,_0x40367f,_0x32b28c){const _0x241202=_0x4a0233['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x241202?parseInt(_0x241202[0x1],0xa):_0x40367f,'height':_0x241202?parseInt(_0x241202[0x2],0xa):_0x32b28c};}function p(_0x9b52bd,_0x4ac1d8){const _0x1867c1=new(_0x1e9ec0())(),_0x4a63b9=_0x9b52bd['plugins']['get']('ImageUtils'),_0x15d8d4=_0x9b52bd['editing']['mapper']['toViewElement'](_0x4ac1d8),_0xf2b120=_0x4a63b9['findViewImgElement'](_0x15d8d4),_0x13152d=_0x9b52bd['editing']['view']['domConverter']['viewToDom'](_0xf2b120),_0x15a79a=_0x4ac1d8['getAttribute']('width'),_0x528035=_0x4ac1d8['getAttribute']('height'),_0xe8a503='image-processing';_0x9b52bd['editing']['view']['change'](_0x52a2e0=>{_0x52a2e0['addClass'](_0xe8a503,_0x15d8d4),_0x52a2e0['setStyle']('aspect-ratio',_0x15a79a+'/'+_0x528035,_0xf2b120);}),_0x1867c1['listenTo'](_0x13152d,'load',()=>{_0x1867c1['stopListening'](_0x13152d,'load'),_0x9b52bd['editing']['view']['change'](_0x373fe3=>{_0x373fe3['removeClass'](_0xe8a503,_0x15d8d4),_0x373fe3['removeStyle']('aspect-ratio',_0xf2b120);});});}function G(_0x4e67e9){if(Array['isArray'](_0x4e67e9)){const _0x525e59=_0x4e67e9['map'](G);return _0x967d77=>_0x525e59['some'](_0xa20a2a=>_0xa20a2a(_0x967d77));}if('origin'==_0x4e67e9){const _0x53124b=_0x1eb88f['window']['location']['origin'];return _0x157eb6=>new URL(_0x157eb6,_0x1eb88f['document']['baseURI'])['origin']==_0x53124b;}return'function'==typeof _0x4e67e9?_0x4e67e9:_0x4e67e9 instanceof RegExp?_0x3128f8=>!(!_0x3128f8['match'](_0x4e67e9)&&!_0x3128f8['replace'](/^https?:\/\//,'')['match'](_0x4e67e9)):()=>!0x1;}function A(_0x41a2a9,_0x4a0cb7){return _0x1bf4b3(_0x41a2a9['target'])['includes'](_0x4a0cb7);}class n extends/* #__PURE__ -- @preserve */
24
- _0x4f6cbb(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x3ee718,_0x3a9102,_0x271481){super(),this['_editor']=_0x3ee718,this['_editing']=_0x3a9102,this['_dialog']=_0x3ee718['plugins']['get'](_0x4d37fc),this['_api']=_0x3a9102['ctxElement']['getAPI'](),this['_type']=_0x271481,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:_0x49a9dc,model:_0x3dad04}=this['_editor'],_0x2a63cb=_0x3dad04['document']['selection']['getSelectedElement'](),_0xa7fc95=_0x2a63cb&&(_0x2a63cb['is']('element','imageBlock')||_0x2a63cb['is']('element','imageInline'));this['_formView']=new x(_0x49a9dc,this['_editing']['ucContextId']),this['_dialog']['show']({'id':'uploadCare','icon':_0x5b8cfa,'title':_(_0x49a9dc,this['_type'],_0xa7fc95?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x7fd479['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0xdacd5c=>!A(_0xdacd5c,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x1d0399}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x423f5e=>{const _0x2ff374=_0x1d0399['length'];for(const _0x1d7329 of _0x1d0399){const _0x11c64d=_0x1d7329===_0x1d0399[_0x2ff374-0x1],{cdnUrl:_0x5495c6,fileInfo:_0x25dc55}=_0x1d7329;if(!_0x5495c6||!_0x25dc55)continue;const {width:_0x34e5ea,height:_0x589810}=_0x25dc55['imageInfo'],_0x569709=S(_0x5495c6,_0x34e5ea,_0x589810),_0x47307d=C(_0x5495c6,_0x569709['width']),_0x40924b={'id':_0x25dc55['uuid'],'type':'image','attributes':{'imageDimension':_0x569709,..._0x47307d}};this['_insertAsset'](_0x40924b,_0x11c64d,_0x423f5e);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x1d4193=>{'idle'===_0x1d4193['detail']['status']&&!_0x1d4193['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===i['Local']?this['_api']['setCurrentActivity'](i['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x21f611,_0x4e539c,_0x23de2c){const _0x1732d1=this['_editor']['model']['document']['selection'],_0x5187f5=_0x1732d1['getSelectedElement'](),_0x36269b=!(!_0x5187f5||!_0x5187f5['is']('element','imageInline'));_0x23de2c['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x21f611,_0x36269b),_0x4e539c||_0x23de2c['setSelection'](_0x1732d1['getLastPosition']());}['_insertImage'](_0x41e385,_0x2b24df){const _0x1d0896=this['_editor'],{imageDimension:_0x42441d,imageFallbackUrl:_0x372eb8,imageSources:_0x48441a}=_0x41e385['attributes'];_0x1d0896['execute']('insertImage',{'imageType':_0x2b24df?'imageInline':null,'source':{'uploadcareImageId':_0x41e385['id'],'src':_0x372eb8,'sources':_0x48441a,..._0x42441d}});}}class w extends _0x3d5f59{['_editing'];['_controller']=null;static get['requires'](){return[_0x4d37fc,o];}constructor(_0x2da521){super(_0x2da521),this['_editing']=_0x2da521['plugins']['get'](o);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x26b1b3){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new n(this['editor'],this['_editing'],_0x26b1b3);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class j{static['upload']({file:_0x14526a,..._0x35b1bb}){return _0x5d947b(_0x14526a,_0x35b1bb);}static['getInfo'](_0x5498e0,_0x18f21c){return _0x2ff0d4(_0x5498e0,_0x18f21c);}}class f extends _0x53e594{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x1bff2a,o];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x554bb1=this['editor'];if(!!!_0x554bb1['config']['get']('uploadcare'))return;_0x554bb1['plugins']['get'](_0x1bff2a)['createUploadAdapter']=_0x451f34=>new k(_0x451f34,_0x554bb1),_0x554bb1['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x4e93c5,{imageElement:_0x140d91,data:_0x416d84})=>{_0x554bb1['model']['change'](_0x6cc1a9=>{_0x6cc1a9['setAttribute']('uploadcareImageId',_0x416d84['uploadcareImageId'],_0x140d91);});});}}class k{['loader'];['editor'];['controller'];constructor(_0x1ea078,_0x588dba){this['loader']=_0x1ea078,this['editor']=_0x588dba,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x145b07=await this['loader']['file'];return j['upload']({'file':_0x145b07,'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':_0xeac298=>{_0xeac298&&_0xeac298['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0xeac298['value']);}})['then'](async _0x5b2578=>{const {imageFallbackUrl:_0xdbf25b,imageSources:_0x2fc3da}=C(_0x5b2578['cdnUrl'],_0x5b2578['imageInfo']['width']);return{'uploadcareImageId':_0x5b2578['uuid'],'default':_0xdbf25b,'sources':_0x2fc3da};})['catch'](()=>{const _0x4d4b84=t('Cannot\x20upload\x20file:')+('\x20'+_0x145b07['name']+'.');return Promise['reject'](_0x4d4b84);});}['abort'](){this['controller']['abort']();}}class o extends _0x53e594{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',f,_0x4d37fc];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['ucContextId'];get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}constructor(_0x370fcd){super(_0x370fcd),this['ucContextId']=_0x50fb5f();}['init'](){const _0x4c02f4=this['editor'];_0x4c02f4['commands']['add']('uploadcare',new w(_0x4c02f4));}['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 _0x4791c6=_0x1eb88f['document']['querySelector']('input[uploadcare-file-input]');_0x4791c6&&_0x4791c6['remove']();}),async function(_0x3c10a1){const _0x305403=_0xf91295([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]),_0x5ae313=0x535f8c3a,_0x42d439=0x5358f2ba^_0x5ae313,_0x45e327=window[_0xf91295([0x44,0x61,0x74,0x65])][_0xf91295([0x6e,0x6f,0x77])](),_0x2913d5=_0x3c10a1[_0xf91295([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x4d7a07=new window[(_0xf91295([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1e4545=>{_0x2913d5[_0xf91295([0x6f,0x6e,0x63,0x65])](_0xf91295([0x72,0x65,0x61,0x64,0x79]),_0x1e4545);}),_0x2e8eba={[_0xf91295([0x6b,0x74,0x79])]:_0xf91295([0x45,0x43]),[_0xf91295([0x75,0x73,0x65])]:_0xf91295([0x73,0x69,0x67]),[_0xf91295([0x63,0x72,0x76])]:_0xf91295([0x50,0x2d,0x32,0x35,0x36]),[_0xf91295([0x78])]:_0xf91295([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]),[_0xf91295([0x79])]:_0xf91295([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]),[_0xf91295([0x61,0x6c,0x67])]:_0xf91295([0x45,0x53,0x32,0x35,0x36])},_0xa2e6f7=_0x2913d5[_0xf91295([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0xf91295([0x67,0x65,0x74])](_0xf91295([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x47a696(){let _0x34c157,_0x554f90=null,_0x489da1=null;try{if(_0xa2e6f7==_0xf91295([0x47,0x50,0x4c]))return _0xf91295([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x34c157=_0x2b72c8(),!_0x34c157)return _0xf91295([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x34c157[_0xf91295([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x489da1=_0xcab084(_0x34c157[_0xf91295([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x34c157[_0xf91295([0x6a,0x74,0x69])])),await _0x2bb415()?_0x29bb90()?_0x3d159f()?_0xf91295([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x2a4794()?(_0x34c157[_0xf91295([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0xf91295([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x554f90=_0x4ccf5b(_0xf91295([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0xb66c98()):_0xf91295([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0xf91295([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0xf91295([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0xf91295([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x3d159f(){const _0x2bdeb1=[_0xf91295([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0xf91295([0x74,0x72,0x69,0x61,0x6c])][_0xf91295([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x34c157[_0xf91295([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x45e327/0x3e8:0xe10*_0x42d439;return _0x34c157[_0xf91295([0x65,0x78,0x70])]<_0x2bdeb1;}function _0x29bb90(){const _0x146345=_0x34c157[_0xf91295([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x146345&&(!!_0x146345[_0xf91295([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xf91295([0x2a]))||!!_0x146345[_0xf91295([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xf91295([0x55,0x50,0x4c,0x43])));}function _0x2a4794(){const _0x2e18cc=_0x34c157[_0xf91295([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x2e18cc||0x0==_0x2e18cc[_0xf91295([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x434e0e}=new URL(window[_0xf91295([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x2e18cc[_0xf91295([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x434e0e))return!0x0;const _0x20eefa=_0x434e0e[_0xf91295([0x73,0x70,0x6c,0x69,0x74])](_0xf91295([0x2e]));return _0x2e18cc[_0xf91295([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x367c76=>_0x367c76[_0xf91295([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xf91295([0x2a])))[_0xf91295([0x6d,0x61,0x70])](_0xe03187=>_0xe03187[_0xf91295([0x73,0x70,0x6c,0x69,0x74])](_0xf91295([0x2e])))[_0xf91295([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x190689=>_0x190689[_0xf91295([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x20eefa[_0xf91295([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0xf91295([0x6d,0x61,0x70])](_0x175ebf=>Array(_0x20eefa[_0xf91295([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x175ebf[_0xf91295([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0xf91295([0x66,0x69,0x6c,0x6c])](_0x175ebf[0x0]===_0xf91295([0x2a])?_0xf91295([0x2a]):'')[_0xf91295([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x175ebf))[_0xf91295([0x73,0x6f,0x6d,0x65])](_0x30eabf=>_0x20eefa[_0xf91295([0x65,0x76,0x65,0x72,0x79])]((_0x49da3a,_0x4958b2)=>_0x30eabf[_0x4958b2]===_0x49da3a||_0x30eabf[_0x4958b2]===_0xf91295([0x2a])));}function _0xb66c98(){return _0x554f90&&_0x489da1?new window[(_0xf91295([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x59006c,_0x3bc665)=>{_0x554f90[_0xf91295([0x74,0x68,0x65,0x6e])](_0x59006c,_0x3bc665),_0x489da1[_0xf91295([0x74,0x68,0x65,0x6e])](_0x3ac1aa=>{_0x3ac1aa!=_0xf91295([0x56,0x61,0x6c,0x69,0x64])&&_0x59006c(_0x3ac1aa);},_0x3bc665);}):_0x554f90||_0x489da1||_0xf91295([0x56,0x61,0x6c,0x69,0x64]);}}function _0xcab084(_0x55a67c,_0x293892){return new window[(_0xf91295([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x23d53d=>{if(_0x584547())return _0x23d53d(_0xf91295([0x56,0x61,0x6c,0x69,0x64]));_0x2fb734(),_0x2913d5[_0xf91295([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0xf91295([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x39b1db=!0x1;const _0x3e4c34=_0x50fb5f();function _0x278a79(_0x28885d){return!!_0x28885d&&(typeof _0x28885d===_0xf91295([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x28885d===_0xf91295([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x28885d[_0xf91295([0x74,0x68,0x65,0x6e])]===_0xf91295([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x28885d[_0xf91295([0x63,0x61,0x74,0x63,0x68])]===_0xf91295([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x1899b1(_0x1a5790){_0x1e91f9(_0x1a5790)[_0xf91295([0x74,0x68,0x65,0x6e])](_0x28af11=>{if(!_0x28af11||_0x28af11[_0xf91295([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0xf91295([0x6f,0x6b]))return _0xf91295([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x249e11(_0x30eca5(_0x3e4c34+_0x293892))!=_0x28af11[_0xf91295([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0xf91295([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0xf91295([0x56,0x61,0x6c,0x69,0x64]);})[_0xf91295([0x74,0x68,0x65,0x6e])](_0x51e902=>(_0x175a22(),_0x51e902),()=>{const _0x48d99a=_0x1e4480();return null==_0x48d99a?(_0x175a22(),_0xf91295([0x56,0x61,0x6c,0x69,0x64])):_0xf91295(_0x45e327-_0x48d99a>(0x7753083a^_0x5ae313)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0xf91295([0x74,0x68,0x65,0x6e])](_0x23d53d)[_0xf91295([0x63,0x61,0x74,0x63,0x68])](()=>{_0x23d53d(_0xf91295([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x5cb02a=0x536962ba^_0x5ae313;function _0x175a22(){const _0x246577=_0xf91295([0x6c,0x6c,0x63,0x74,0x2d])+_0x249e11(_0x30eca5(_0x55a67c)),_0x48fb49=_0x518e0d(_0x249e11(window[_0xf91295([0x4d,0x61,0x74,0x68])][_0xf91295([0x63,0x65,0x69,0x6c])](_0x45e327/_0x5cb02a)));window[_0xf91295([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0xf91295([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x246577,_0x48fb49);}function _0x1e4480(){const _0x1b11a2=_0xf91295([0x6c,0x6c,0x63,0x74,0x2d])+_0x249e11(_0x30eca5(_0x55a67c)),_0xe624c0=window[_0xf91295([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0xf91295([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1b11a2);return _0xe624c0?window[_0xf91295([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x518e0d(_0xe624c0),0x10)*_0x5cb02a:null;}function _0x1e91f9(_0xdbed5a){return new window[(_0xf91295([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x2aa6ac,_0x1fbbfa)=>{_0xdbed5a[_0xf91295([0x74,0x68,0x65,0x6e])](_0x2aa6ac,_0x1fbbfa),window[_0xf91295([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x1fbbfa,0x535e58fa^_0x5ae313);});}}_0x2913d5[_0xf91295([0x6f,0x6e])](_0xf91295([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x397c1b,_0x73a167)=>{if(_0x73a167[0x0]!=_0x55a67c)return _0x23d53d(_0xf91295([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x73a167[0x1]={..._0x73a167[0x1],[_0xf91295([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x3e4c34};},{[_0xf91295([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0xf91295([0x68,0x69,0x67,0x68])}),_0x2913d5[_0xf91295([0x6f,0x6e])](_0xf91295([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x3b0c96=>{_0x278a79(_0x3b0c96[_0xf91295([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x39b1db=!0x0,_0x1899b1(_0x3b0c96[_0xf91295([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0xf91295([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0xf91295([0x6c,0x6f,0x77])}),_0x4d7a07[_0xf91295([0x74,0x68,0x65,0x6e])](()=>{_0x39b1db||_0x23d53d(_0xf91295([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x584547(){return _0x2913d5[_0xf91295([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0xf91295([0x76,0x69,0x65,0x77])][_0xf91295([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0xf91295([0x61,0x75,0x74,0x6f]);}function _0x2fb734(){_0x2913d5[_0xf91295([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0xf91295([0x76,0x69,0x65,0x77])][_0xf91295([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0xf91295([0x61,0x75,0x74,0x6f]);}}function _0x4ccf5b(_0x4e9d8f){const _0x55cb0d=[new window[(_0xf91295([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x24fd55=>setTimeout(_0x24fd55,0x5356b2f6^_0x5ae313)),_0x4d7a07[_0xf91295([0x74,0x68,0x65,0x6e])](()=>new window[(_0xf91295([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xacb3e1=>{let _0x1b42c3=0x0;_0x2913d5[_0xf91295([0x6d,0x6f,0x64,0x65,0x6c])][_0xf91295([0x6f,0x6e])](_0xf91295([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x4e29fa,_0x1f8844)=>{_0x1f8844[0x0][_0xf91295([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x1b42c3++,_0x1b42c3==(0x535f89d2^_0x5ae313)&&(_0xacb3e1(),_0x4e29fa[_0xf91295([0x6f,0x66,0x66])]());});}))];return window[_0xf91295([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0xf91295([0x72,0x61,0x63,0x65])](_0x55cb0d)[_0xf91295([0x74,0x68,0x65,0x6e])](()=>_0x4e9d8f);}async function _0x1104e5(){await _0x4d7a07,_0x2913d5[_0xf91295([0x6d,0x6f,0x64,0x65,0x6c])][_0xf91295([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x26764e,_0x2913d5[_0xf91295([0x6d,0x6f,0x64,0x65,0x6c])][_0xf91295([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x26764e,_0x2913d5[_0xf91295([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0xf91295([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x66633b(_0x1c8cf8){const _0x4ea21a=_0x1aeea5();_0x2913d5[_0x4ea21a]=_0xf91295([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x1c8cf8,_0x1c8cf8!=_0xf91295([0x56,0x61,0x6c,0x69,0x64])&&_0x1104e5();}function _0x1aeea5(){const _0x353598=window[_0xf91295([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0xf91295([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0xf91295([0x6e,0x6f,0x77])]())[_0xf91295([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0xf91295([0x2e]),'');let _0x11b9fe=_0xf91295([0x68]);for(let _0xa94fad=0x0;_0xa94fad<_0x353598[_0xf91295([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0xa94fad+=0x2){let _0x4b087e=window[_0xf91295([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x353598[_0xf91295([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0xa94fad,_0xa94fad+0x2));_0x4b087e>=_0x305403[_0xf91295([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x4b087e-=_0x305403[_0xf91295([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x11b9fe+=_0x305403[_0x4b087e];}return _0x11b9fe;}function _0x2b72c8(){const _0x146964=_0xa2e6f7[_0xf91295([0x73,0x70,0x6c,0x69,0x74])](_0xf91295([0x2e]));if(0x3!=_0x146964[_0xf91295([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x257edf(_0x146964[0x1]);function _0x257edf(_0x51e673){const _0x5b3671=_0x1cb2cd(_0x51e673);return _0x5b3671&&_0x1d3058()?_0x5b3671:null;function _0x1d3058(){const _0x50a256=_0x5b3671[_0xf91295([0x6a,0x74,0x69])],_0x286765=window[_0xf91295([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x50a256[_0xf91295([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x50a256[_0xf91295([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x42b8b2={..._0x5b3671,[_0xf91295([0x6a,0x74,0x69])]:_0x50a256[_0xf91295([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x50a256[_0xf91295([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x42b8b2[_0xf91295([0x76,0x63])],_0x30eca5(_0x42b8b2)==_0x286765;}}}async function _0x2bb415(){let _0x3483df=!0x0;try{const _0x5583f1=_0xa2e6f7[_0xf91295([0x73,0x70,0x6c,0x69,0x74])](_0xf91295([0x2e])),[_0x3f016,_0x4a813a,_0x2bf227]=_0x5583f1;return _0x39caf2(_0x3f016),await _0x72e586(_0x3f016,_0x4a813a,_0x2bf227),_0x3483df;}catch{return!0x1;}function _0x39caf2(_0x4e0c4e){const _0x2053ac=_0x1cb2cd(_0x4e0c4e);_0x2053ac&&_0x2053ac[_0xf91295([0x61,0x6c,0x67])]==_0xf91295([0x45,0x53,0x32,0x35,0x36])||(_0x3483df=!0x1);}async function _0x72e586(_0x56ec16,_0x28ba89,_0x284040){const _0x483977=window[_0xf91295([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0xf91295([0x66,0x72,0x6f,0x6d])](_0x20165b(_0x284040),_0x3c0c15=>_0x3c0c15[_0xf91295([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x26fbb0=new window[(_0xf91295([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0xf91295([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x56ec16+_0xf91295([0x2e])+_0x28ba89),_0x5d62e9=window[_0xf91295([0x63,0x72,0x79,0x70,0x74,0x6f])][_0xf91295([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x5d62e9)return;const _0x535515=await _0x5d62e9[_0xf91295([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0xf91295([0x6a,0x77,0x6b]),_0x2e8eba,{[_0xf91295([0x6e,0x61,0x6d,0x65])]:_0xf91295([0x45,0x43,0x44,0x53,0x41]),[_0xf91295([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0xf91295([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0xf91295([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x5d62e9[_0xf91295([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0xf91295([0x6e,0x61,0x6d,0x65])]:_0xf91295([0x45,0x43,0x44,0x53,0x41]),[_0xf91295([0x68,0x61,0x73,0x68])]:{[_0xf91295([0x6e,0x61,0x6d,0x65])]:_0xf91295([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x535515,_0x483977,_0x26fbb0)||(_0x3483df=!0x1);}}function _0x1cb2cd(_0x4ad5be){return _0x4ad5be[_0xf91295([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0xf91295([0x65,0x79]))?JSON[_0xf91295([0x70,0x61,0x72,0x73,0x65])](_0x20165b(_0x4ad5be)):null;}function _0x20165b(_0x344551){return window[_0xf91295([0x61,0x74,0x6f,0x62])](_0x344551[_0xf91295([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0xf91295([0x2b]))[_0xf91295([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0xf91295([0x2f])));}function _0x30eca5(_0x4cc90f){let _0x45f4d1=0x1505;function _0x3c4bca(_0x511731){for(let _0x5457b3=0x0;_0x5457b3<_0x511731[_0xf91295([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x5457b3++){const _0x507593=_0x511731[_0xf91295([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x5457b3);_0x45f4d1=(_0x45f4d1<<0x5)+_0x45f4d1+_0x507593,_0x45f4d1&=_0x45f4d1;}}function _0x2d2c37(_0x1ad747){Array[_0xf91295([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x1ad747)?_0x1ad747[_0xf91295([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x2d2c37):_0x1ad747&&typeof _0x1ad747==_0xf91295([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0xf91295([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x1ad747)[_0xf91295([0x73,0x6f,0x72,0x74])]()[_0xf91295([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x2ced54,_0x755b1c])=>{_0x3c4bca(_0x2ced54),_0x2d2c37(_0x755b1c);}):_0x3c4bca(window[_0xf91295([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x1ad747));}return _0x2d2c37(_0x4cc90f),_0x45f4d1>>>0x0;}function _0x249e11(_0xb6f283){return _0xb6f283[_0xf91295([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0xf91295([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0xf91295([0x30]));}function _0x518e0d(_0x293f73){return _0x293f73[_0xf91295([0x73,0x70,0x6c,0x69,0x74])]('')[_0xf91295([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0xf91295([0x6a,0x6f,0x69,0x6e])]('');}function _0x26764e(){}function _0xf91295(_0x5be65b){return _0x5be65b['map'](_0x41f576=>String['fromCharCode'](_0x41f576))['join']('');}_0x66633b(await _0x47a696());}(this);}['_initSchema'](){const _0x557e71=this['editor']['model']['schema'];_0x557e71['isRegistered']('imageBlock')&&_0x557e71['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x557e71['isRegistered']('imageInline')&&_0x557e71['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x177e8c=this['editor'];_0x177e8c['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x177e8c['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x55345c=>_0x55345c['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x4a3310=_0x177e8c['commands']['get']('replaceImageSource');_0x4a3310&&this['listenTo'](_0x4a3310,'cleanupImage',(_0x5aacba,[_0x3cb80c,_0x49cc38])=>{_0x3cb80c['removeAttribute']('uploadcareImageId',_0x49cc38);});}['_initConfig'](){const _0xe61069=this['editor']['config']['get']('uploadcare.uploader')||{},_0x575743=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x4183e6(_0x1eb88f['document'],'uc-config',{..._0xe61069,'pubkey':_0x575743,'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']=_0x36ede4=>{if('closeMax'==_0x36ede4)return'#uc-icon-arrow-down';},_0x1eb88f['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x4183e6(_0x1eb88f['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader-'+this['ucContextId']}),_0x1eb88f['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x461364=this['editor']['commands']['get']('insertImage');_0x461364&&this['listenTo'](_0x461364,'execute',()=>{const _0x5077c2=this['editor']['model']['document']['selection']['getSelectedElement']();_0x5077c2&&_0x5077c2['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x5077c2);});});const _0x1b0115=this['editor']['commands']['get']('uploadcareImageReplace');_0x1b0115&&this['listenTo'](_0x1b0115,'execute',()=>{const _0x4d2685=this['editor']['model']['document']['selection']['getSelectedElement']();_0x4d2685&&_0x4d2685['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x4d2685);});});}}class tt extends _0x53e594{static get['requires'](){return[o,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0xd661f2){super(_0xd661f2),_0xd661f2['config']['define']('uploadcare.uploader.sourceList',[i['Local'],i['URL']]),_0xc82fbc['defineComponents'](_0xc82fbc),this['_defineLocale']();}['_defineLocale'](){const _0x253830=this['editor']['config']['get']('uploadcare.locale'),_0x4380c6=this['editor']['locale']['contentLanguage'];_0x253830&&_0xc82fbc['defineLocale'](_0x4380c6,_0x253830);}}class ii extends _0x4f922f{constructor(_0x445ac7){super(_0x445ac7);const t=_0x445ac7['t'],_0x4ce767=this['bindTemplate'],_0x694fb=new _0x30edda();_0x694fb['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':[_0x694fb,{'text':_0x4ce767['to']('imageUploadProgress',_0x2307ce=>t('Loading\x20image...')+'\x20('+(_0x2307ce||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 _0x4f922f{constructor(_0x4e21a3){super(_0x4e21a3);const t=_0x4e21a3['t'];this['set']('errorType',null);const _0x355735=new _0x28b5fa(_0x4e21a3);_0x355735['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x355735['withText']=!0x0,_0x355735['class']='ck-button-action',_0x355735['on']('execute',()=>{this['fire']('retry');}),_0x355735['bind']('isVisible')['to'](this,'errorType',_0x2d368c=>'NotFound'!==_0x2d368c);const _0x4e5ef1=new _0x26591f();_0x4e5ef1['content']=_0x5440f8,_0x4e5ef1['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x53d411=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':[_0x4e5ef1,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x53d411['to']('errorType',_0x27cc34=>t('NotFound'!==_0x27cc34?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x355735]},{'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 _0x4f922f{constructor(_0x5ef622,_0x33efcc){super(_0x5ef622);const _0x3fc165=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x33efcc,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x3fc165['to']('imageSrc')}});}}class X extends F{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x41dbc1,_0x1d6abd,_0xcdc0a2){super(_0x41dbc1),this['_items']=this['createCollection'](),this['_loadingView']=new ii(_0x41dbc1),this['_errorView']=new ti(_0x41dbc1),this['_editingView']=new ei(_0x41dbc1,_0xcdc0a2),this['_focusableView']=new _0x4f922f(_0x41dbc1),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x1d6abd),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'],_0x543fff=>{this['_addUploadcareImageEditorListeners'](_0x543fff);});}),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'](_0x27205b,_0x52e359){const _0xa0b556='uc-cloud-image-editor',_0xb177c7=_0x27205b['querySelector'](_0xa0b556);if(_0xb177c7)return _0x52e359(_0xb177c7);const _0x4a3dc5=new MutationObserver(_0x50dea9=>{const _0x41733e=_0x50dea9['filter'](_0x385cc0=>_0x385cc0['target']===_0x27205b&&_0x385cc0['addedNodes']['length']>0x0&&_0x385cc0['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0xa0b556);_0x41733e['length']&&(_0x4a3dc5['disconnect'](),_0x52e359(_0x41733e[0x0]['addedNodes'][0x0]));});_0x4a3dc5['observe'](_0x27205b,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x2d3b01){_0x2d3b01['addEventListener']('apply',_0x1b0feb=>{this['fire']('apply',{'imageSrc':_0x1b0feb['detail']['cdnUrl']});}),_0x2d3b01['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class E extends/* #__PURE__ -- @preserve */
25
- _0x4f6cbb(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x45fda1,_0x4f326f,_0x1fbc8f){super(),this['_editor']=_0x45fda1,this['_dialog']=_0x4f326f,this['_imageElement']=_0x1fbc8f,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 _0x29fe7b=this['_imageElement'],_0x389663=_0x29fe7b['getAttribute']('uploadcareImageId'),_0x1cec62=_0x29fe7b['getAttribute']('src');if(_0x389663)await this['_loadImageInfo'](_0x389663,_0x1cec62);else{if(this['_imageCache']['has'](_0x1cec62)){const _0x31c235=this['_imageCache']['get'](_0x1cec62);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x31c235['url'],this['imageDimension']=_0x31c235['dimension'],this['imageId']=_0x31c235['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x29de06}=this['_editor'],t=_0x29de06['t'],_0xf106bc=new X(_0x29de06,this['imageStatus'],this['_attributes']);_0xf106bc['bind']('status')['to'](this,'imageStatus'),_0xf106bc['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0xf106bc['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0xf106bc['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0xf106bc,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x39c048,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0xf106bc,'position':_0x7fd479['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0xf106bc['focus']();},'onHide':()=>{_0xf106bc['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x58ebee=>!A(_0x58ebee,_0xf106bc['element'])}});}['_loadImageInfo'](_0x23d8ad,_0x570337){return j['getInfo'](_0x23d8ad,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl')})['then'](_0x913474=>{const {width:_0x15e1b3,height:_0x4c1c6d}=_0x913474['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x570337,this['imageDimension']={'width':_0x15e1b3,'height':_0x4c1c6d},this['imageId']=_0x23d8ad;})['catch'](_0xaecbd0=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0xaecbd0['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x4138c9,_0x4ec1a5){return this['_getImageAsFile'](_0x4138c9)['then'](_0x357a53=>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':_0x4ec1a5['signal'],'file':_0x357a53,'onProgress':_0x383953=>{_0x383953&&_0x383953['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x383953['value']));}}))['then'](_0x34c3d3=>{const {width:_0x272095,height:_0x24e622}=_0x34c3d3['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x34c3d3['cdnUrl'],this['imageDimension']={'width':_0x272095,'height':_0x24e622},this['imageId']=_0x34c3d3['uuid'],this['imageUploadProgress']=null;const _0x29dc31=_0x4138c9['getAttribute']('src');this['_imageCache']['set'](_0x29dc31,{'id':_0x34c3d3['uuid'],'url':_0x34c3d3['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x427114=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x427114['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0xefbb92,_0x194e3b){_0xefbb92['on']('apply',(_0x1521e5,_0x5b4b9f)=>{this['_replaceImage'](_0x194e3b,_0x5b4b9f['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0xefbb92['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0xefbb92['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x46d985,_0x6ded9e,_0xd7f209){const _0x387524=this['_editor'],{width:_0x51e025,height:_0x56679a}=S(_0x6ded9e,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x30d159,imageSources:_0x2c4e0f}=C(_0x6ded9e,_0x51e025);_0x387524['model']['change'](_0x826f42=>{if('$graveyard'===_0x46d985['root']['rootName']){_0x387524['execute']('insertImage',{'imageType':_0x46d985['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x46d985['getAttributes']()),'uploadcareImageId':_0xd7f209,'src':_0x30d159,'sources':_0x2c4e0f,'width':_0x51e025,'height':_0x56679a}});const _0x20d00b=_0x46d985['getChildren']();_0x46d985=_0x387524['model']['document']['selection']['getSelectedElement']();for(const _0x1272d1 of _0x20d00b)_0x826f42['append'](_0x826f42['cloneElement'](_0x1272d1),_0x46d985);}else _0x826f42['setSelection'](_0x46d985,'on'),_0x387524['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x46d985['getAttributes']()),'uploadcareImageId':_0xd7f209,'src':_0x30d159,'sources':_0x2c4e0f,'width':_0x51e025,'height':_0x56679a},_0x46d985);_0x826f42['setSelection'](_0x46d985,'on');});}async['_getImageAsFile'](_0x3079f9){const _0x41ceb9=_0x1eb88f['window'],_0x259dc8=_0x1eb88f['document']['location']['href'],_0x5b01f5=new _0x41ceb9['URL'](_0x3079f9['getAttribute']('src'),_0x259dc8);if('data:'===_0x5b01f5['protocol']){const _0x1d8988=_0x5b01f5['href']['split'](','),_0x1dc74a=_0x1d8988[0x0]['match'](/:(.*?);/)[0x1],_0x2471f7=_0x1dc74a['split']('/')[0x1],_0x4b6c5f=_0x41ceb9['atob'](_0x1d8988[_0x1d8988['length']-0x1]);let _0x167cb4=_0x4b6c5f['length'];const _0x5bd619=new _0x41ceb9['Uint8Array'](_0x167cb4);for(;_0x167cb4--;)_0x5bd619[_0x167cb4]=_0x4b6c5f['charCodeAt'](_0x167cb4);return new _0x41ceb9['File']([_0x5bd619],'image.'+_0x2471f7,{'type':_0x1dc74a});}const _0x18f4be=_0x5b01f5['href']['split']('/'),_0x2e2e82=_0x18f4be[_0x18f4be['length']-0x1],_0x52a7f8=_0x2e2e82['split']('.')[0x1];return _0x41ceb9['fetch'](_0x5b01f5['href'])['then'](_0x173e1b=>_0x173e1b['clone']()['blob']())['then'](_0x34f856=>new _0x41ceb9['File']([_0x34f856],_0x2e2e82,{'type':'image/'+_0x52a7f8}));}}class O extends _0x3d5f59{['imageEditController'];static get['requires'](){return[_0x4d37fc];}['_isEditable'];constructor(_0x3ddac1){super(_0x3ddac1),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x1dbdfd){const _0x1098a9=G(_0x1dbdfd);return _0x276918=>!(!_0x276918||!_0x276918['is']('element','imageBlock')&&!_0x276918['is']('element','imageInline'))&&(!!_0x276918['hasAttribute']('uploadcareImageId')||!!_0x276918['hasAttribute']('src')&&_0x1098a9(_0x276918['getAttribute']('src')));}(_0x3ddac1['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x4f1602=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x4f1602);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x497703=this['editor']['model']['document']['selection']['getSelectedElement']();_0x497703&&(_0x497703['is']('element','imageBlock')||_0x497703['is']('element','imageInline'))&&(this['imageEditController']=new E(this['editor'],this['editor']['plugins']['get'](_0x4d37fc),_0x497703),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class R extends _0x3d5f59{['refresh'](){const _0x5e1b9c=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x5e1b9c&&(_0x5e1b9c['is']('element','imageBlock')||_0x5e1b9c['is']('element','imageInline')));}['execute'](_0x499b57){const _0x5f52b0=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x5ccc87=>{_0x5ccc87['setAttributes'](_0x499b57,_0x5f52b0),_0x5ccc87['removeAttribute']('srcset',_0x5f52b0),_0x5ccc87['removeAttribute']('sizes',_0x5f52b0);});}}class m extends _0x53e594{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[o,_0x515009,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x33f7cd}=this;_0x33f7cd['commands']['add']('uploadcareImageEdit',new O(_0x33f7cd)),_0x33f7cd['commands']['add']('uploadcareImageReplace',new R(_0x33f7cd));}}class g extends _0x53e594{['_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 _0xac1e79=this['editor'];_0xac1e79['ui']['componentFactory']['add']('uploadcareImageEdit',_0x4f2c90=>{const _0x154be1=_0xac1e79['commands']['get']('uploadcareImageEdit'),_0x173be2=new _0x28b5fa(_0x4f2c90),t=_0x4f2c90['t'];return _0x173be2['set']({'icon':_0x39c048,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x173be2['bind']('isEnabled')['to'](_0x154be1),_0x173be2['bind']('isOn')['to'](_0x154be1,'isActive'),this['listenTo'](_0x173be2,'execute',()=>{_0xac1e79['execute']('uploadcareImageEdit'),_0xac1e79['editing']['view']['focus']();}),_0x173be2;}),this['_initConfig']();}['_initConfig'](){const _0x6d777b=_0x4183e6(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x6d777b),this['listenTo'](this['editor'],'destroy',()=>{_0x6d777b['remove']();});}}class et extends _0x53e594{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 _0x57badb,Command as _0x44b713}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x4dcfeb,IconGooglePhotos as _0x2eb0b8,IconGoogleDrive as _0x5a091b,IconFacebook as _0x216a39,IconDropbox as _0x125785,IconUploadcareLink as _0x11e48e,IconUploadcareImageUpload as _0x24c625,IconError as _0x485a3c,IconUploadcareImageEdit as _0x5b35e3}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x24a979,MenuBarMenuListItemButtonView as _0x2665a6,View as _0x3d5e1f,FocusCycler as _0x371400,Dialog as _0x82f8a,DialogViewPosition as _0x2214a5,SpinnerView as _0x27bc3f,IconView as _0x4523f8,Notification as _0x516827}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0xa86f41,DomEmitterMixin as _0x3db1f8,global as _0x354fb1,getAncestors as _0x3f148a,ObservableMixin as _0x3eea9a,uid as _0x15ab9c,createElement as _0x23faf0}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x11caee}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x103813,info as _0x22df3f}from'@uploadcare/upload-client';import*as _0x1500fc from'@uploadcare/file-uploader';var i=function(_0x5282d3){return _0x5282d3['Local']='local',_0x5282d3['URL']='url',_0x5282d3['Dropbox']='dropbox',_0x5282d3['GDrive']='gdrive',_0x5282d3['Facebook']='facebook',_0x5282d3['GPhotos']='gphotos',_0x5282d3['OneDrive']='onedrive',_0x5282d3;}({});function _(_0x460983,_0x5b213e,_0x239df7){const t=_0x460983['t'],_0x5d3b7e=_0x460983['t'];switch(_0x5b213e){case i['Local']:return{'text':_0x5d3b7e('Insert'===_0x239df7?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x5d3b7e('From\x20computer')};case i['URL']:return{'text':'Insert'===_0x239df7?_0x5d3b7e('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x5d3b7e('Via\x20URL')};case i['Dropbox']:return{'text':t('Insert'===_0x239df7?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case i['Facebook']:return{'text':t('Insert'===_0x239df7?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case i['GDrive']:return{'text':t('Insert'===_0x239df7?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case i['GPhotos']:return{'text':t('Insert'===_0x239df7?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case i['OneDrive']:return{'text':t('Insert'===_0x239df7?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x5b213e;}}class e extends _0x57badb{['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 _0x2de7d9=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0xa6969b;for(const _0x501c56 in _0x2de7d9){const _0x3eafb8=_0x501c56,_0x225895=_0x2de7d9[_0x3eafb8];if('uploadcareLicenseKeyValid'==_0x225895||'uploadcareLicenseKeyInvalid'==_0x225895||'uploadcareLicenseKeyExpired'==_0x225895||'uploadcareLicenseKeyDomainLimit'==_0x225895||'uploadcareLicenseKeyNotAllowed'==_0x225895||'uploadcareLicenseKeyEvaluationLimit'==_0x225895||'uploadcareLicenseKeyUsageLimit'==_0x225895){delete _0x2de7d9[_0x3eafb8],_0xa6969b=_0x225895,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0xa6969b&&_0x2de7d9['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0xa6969b&&_0x2de7d9['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0xa6969b&&_0x2de7d9['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0xa6969b&&_0x2de7d9['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0xa6969b&&_0x2de7d9['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyUsageLimit'==_0xa6969b&&_0x2de7d9['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x2f962a}=this,_0x25bc6d=_0x2f962a['commands']['get']('uploadcare');if(!_0x25bc6d)return;const _0x376b0a=this['_normalizeConfigSourceList'](_0x2f962a['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x199f13,_0x387e0e)=>{const _0x85a8b1=this['_getIntegrationKey'](_0x387e0e['type']);return _0x199f13[_0x85a8b1]||(_0x199f13[_0x85a8b1]=[]),_0x199f13[_0x85a8b1]['push'](_0x387e0e),_0x199f13;},{});_0x2f962a['plugins']['has']('ImageInsertUI')&&_0x2f962a['commands']['get']('uploadcare')&&Object['entries'](_0x376b0a)['forEach'](([_0x236160,_0x454ff9])=>{_0x2f962a['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x236160,'observable':()=>_0x25bc6d,'buttonViewCreator':()=>this['_createToolbarButton'](_0x454ff9),'formViewCreator':()=>this['_createDropdownButtons'](_0x454ff9),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x454ff9),'override':'assetManager'!==_0x236160});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x1f9b13){const {locale:_0x32e6c2}=this['editor'];return _0x1f9b13['map'](_0x3aa359=>{const _0x160ff4=_(_0x32e6c2,_0x3aa359,'Insert');switch(_0x3aa359){case i['Local']:return{'icon':_0x24c625,'type':i['Local'],..._0x160ff4};case i['URL']:return{'icon':_0x11e48e,'type':i['URL'],..._0x160ff4};case i['Dropbox']:return{'icon':_0x125785,'type':i['Dropbox'],..._0x160ff4};case i['Facebook']:return{'icon':_0x216a39,'type':i['Facebook'],..._0x160ff4};case i['GDrive']:return{'icon':_0x5a091b,'type':i['GDrive'],..._0x160ff4};case i['GPhotos']:return{'icon':_0x2eb0b8,'type':i['GPhotos'],..._0x160ff4};case i['OneDrive']:return{'icon':_0x4dcfeb,'type':i['OneDrive'],..._0x160ff4};}});}['_getIntegrationKey'](_0x410cf2){switch(_0x410cf2){case i['Local']:return'upload';case i['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x20bef2,_0x8111c7){const _0x2177d4=this['editor'],_0x114301=new _0x20bef2(_0x2177d4['locale']),_0x5d65ce=_0x2177d4['commands']['get']('uploadcare');return _0x114301['bind']('isEnabled')['to'](_0x5d65ce),_0x114301['on']('execute',()=>{_0x5d65ce['execute'](_0x8111c7);}),_0x114301;}['_createToolbarButton'](_0x3037f3){const {locale:_0x35f300}=this['editor'],_0x413f80=this['editor']['plugins']['get']('ImageInsertUI'),_0x29e187=_0x3037f3[0x0],_0x441156=this['_createButton'](_0x24a979,_0x29e187['type']);return _0x441156['icon']=_0x29e187['icon'],_0x441156['bind']('label')['to'](_0x413f80,'isImageSelected',_0x3ecd10=>_(_0x35f300,_0x29e187['type'],_0x3ecd10?'Replace':'Insert')['text']),_0x441156['tooltip']=!0x0,_0x441156;}['_createDropdownButtons'](_0x214fb7){const {locale:_0x55fb18}=this['editor'],_0x9920e4=this['editor']['plugins']['get']('ImageInsertUI');return _0x214fb7['map'](_0x174669=>{const _0x4c84ca=this['_createButton'](_0x24a979,_0x174669['type']);return _0x4c84ca['withText']=!0x0,_0x4c84ca['icon']=_0x174669['icon'],_0x4c84ca['bind']('label')['to'](_0x9920e4,'isImageSelected',_0x26cdc3=>_(_0x55fb18,_0x174669['type'],_0x26cdc3?'Replace':'Insert')['text']),_0x4c84ca;});}['_createMenuBarButtons'](_0x1bd69e){return _0x1bd69e['map'](_0x5114a5=>{const _0xbc0ab7=this['_createButton'](_0x2665a6,_0x5114a5['type']);return _0xbc0ab7['icon']=_0x5114a5['icon'],_0xbc0ab7['label']=_0x5114a5['shortText'],_0xbc0ab7;});}}class V extends _0x3d5e1f{['focusTracker'];['focusCycler'];constructor(_0x2e53ad){super(_0x2e53ad),this['focusTracker']=new _0xa86f41(),this['focusCycler']=new _0x371400({'focusables':this['createCollection'](),'focusTracker':this['focusTracker']});}['getFocusableElement'](){return{'tag':'div','attributes':{'aria-hidden':'true','tabindex':'0'},'on':{'focus':this['bindTemplate']['to'](()=>{this['focusCycler']['fire']('forwardCycle');})}};}}class S extends V{constructor(_0x5a5a01,_0x1da5ef){super(_0x5a5a01),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-'+_0x1da5ef}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}}function C(_0xeae710,_0x81181d){const _0xfeea7f=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x21f716=>_0x21f716<=_0x81181d)['map'](_0x368e9b=>_0xeae710['replace'](/\/$/,'')+'/-/resize/'+_0x368e9b+'x/\x20'+_0x368e9b+'w');return{'imageFallbackUrl':_0xeae710,'imageSources':[{'srcset':_0xfeea7f['join'](',\x20'),'sizes':'(max-width:\x20'+_0x81181d+'px)\x20100vw,\x20'+_0x81181d+'px','type':'image/webp'}]};}function F(_0x40f562,_0x9a7804,_0x2290de){const _0x268d4a=_0x40f562['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x268d4a?parseInt(_0x268d4a[0x1],0xa):_0x9a7804,'height':_0x268d4a?parseInt(_0x268d4a[0x2],0xa):_0x2290de};}function p(_0x24d696,_0xd6af22){const _0x4bf427=new(_0x3db1f8())(),_0x251fc3=_0x24d696['plugins']['get']('ImageUtils'),_0x1bbf0c=_0x24d696['editing']['mapper']['toViewElement'](_0xd6af22),_0x205989=_0x251fc3['findViewImgElement'](_0x1bbf0c),_0x5b32bf=_0x24d696['editing']['view']['domConverter']['viewToDom'](_0x205989),_0xc7362b=_0xd6af22['getAttribute']('width'),_0x1caff7=_0xd6af22['getAttribute']('height'),_0x3757e9='image-processing';_0x24d696['editing']['view']['change'](_0x527512=>{_0x527512['addClass'](_0x3757e9,_0x1bbf0c),_0x527512['setStyle']('aspect-ratio',_0xc7362b+'/'+_0x1caff7,_0x205989);}),_0x4bf427['listenTo'](_0x5b32bf,'load',()=>{_0x4bf427['stopListening'](_0x5b32bf,'load'),_0x24d696['editing']['view']['change'](_0x19d0d5=>{_0x19d0d5['removeClass'](_0x3757e9,_0x1bbf0c),_0x19d0d5['removeStyle']('aspect-ratio',_0x205989);});});}function R(_0x2c73cd){if(Array['isArray'](_0x2c73cd)){const _0x458e3e=_0x2c73cd['map'](R);return _0x1dbb4c=>_0x458e3e['some'](_0x242b92=>_0x242b92(_0x1dbb4c));}if('origin'==_0x2c73cd){const _0xee62a=_0x354fb1['window']['location']['origin'];return _0x2c0945=>new URL(_0x2c0945,_0x354fb1['document']['baseURI'])['origin']==_0xee62a;}return'function'==typeof _0x2c73cd?_0x2c73cd:_0x2c73cd instanceof RegExp?_0x4c6113=>!(!_0x4c6113['match'](_0x2c73cd)&&!_0x4c6113['replace'](/^https?:\/\//,'')['match'](_0x2c73cd)):()=>!0x1;}function M(_0x41f57c,_0x21b90e){return _0x3f148a(_0x41f57c['target'])['includes'](_0x21b90e);}class n extends/* #__PURE__ -- @preserve */
24
+ _0x3eea9a(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x78b3b5,_0x1ede30,_0xc19586){super(),this['_editor']=_0x78b3b5,this['_editing']=_0x1ede30,this['_dialog']=_0x78b3b5['plugins']['get'](_0x82f8a),this['_api']=_0x1ede30['ctxElement']['getAPI'](),this['_type']=_0xc19586,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:_0x36ace6,model:_0x5c1b65}=this['_editor'],_0x25b45b=_0x5c1b65['document']['selection']['getSelectedElement'](),_0xa7b46=_0x25b45b&&(_0x25b45b['is']('element','imageBlock')||_0x25b45b['is']('element','imageInline'));this['_formView']=new S(_0x36ace6,this['_editing']['ucContextId']),this['_dialog']['show']({'id':'uploadCare','icon':_0x24c625,'title':_(_0x36ace6,this['_type'],_0xa7b46?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x2214a5['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x3c23f0=>!M(_0x3c23f0,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x54d6ef}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0xd81f92=>{const _0x2cca01=_0x54d6ef['length'];for(const _0x346224 of _0x54d6ef){const _0xd0e511=_0x346224===_0x54d6ef[_0x2cca01-0x1],{cdnUrl:_0x291942,fileInfo:_0x387697}=_0x346224;if(!_0x291942||!_0x387697)continue;const {width:_0xb64049,height:_0x40c765}=_0x387697['imageInfo'],_0x2062bc=F(_0x291942,_0xb64049,_0x40c765),_0x4a84ad=C(_0x291942,_0x2062bc['width']),_0x37c9c1={'id':_0x387697['uuid'],'type':'image','attributes':{'imageDimension':_0x2062bc,..._0x4a84ad}};this['_insertAsset'](_0x37c9c1,_0xd0e511,_0xd81f92);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x4aaf3f=>{'idle'===_0x4aaf3f['detail']['status']&&!_0x4aaf3f['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===i['Local']?this['_api']['setCurrentActivity'](i['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x3f58d3,_0x846561,_0x13a6d9){const _0x3d8681=this['_editor']['model']['document']['selection'],_0x2beb68=_0x3d8681['getSelectedElement'](),_0x2f5fa4=!(!_0x2beb68||!_0x2beb68['is']('element','imageInline'));_0x13a6d9['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x3f58d3,_0x2f5fa4),_0x846561||_0x13a6d9['setSelection'](_0x3d8681['getLastPosition']());}['_insertImage'](_0x3f3c22,_0x30ca66){const _0x1733b1=this['_editor'],{imageDimension:_0x237d35,imageFallbackUrl:_0x42a164,imageSources:_0x5489d2}=_0x3f3c22['attributes'];_0x1733b1['execute']('insertImage',{'imageType':_0x30ca66?'imageInline':null,'source':{'uploadcareImageId':_0x3f3c22['id'],'src':_0x42a164,'sources':_0x5489d2,..._0x237d35}});}}class w extends _0x44b713{['_editing'];['_controller']=null;static get['requires'](){return[_0x82f8a,o];}constructor(_0x207445){super(_0x207445),this['_editing']=_0x207445['plugins']['get'](o);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x17a5f6){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new n(this['editor'],this['_editing'],_0x17a5f6);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class j{static['upload']({file:_0x189081,..._0x16984d}){return _0x103813(_0x189081,_0x16984d);}static['getInfo'](_0x371c7b,_0x49aae6){return _0x22df3f(_0x371c7b,_0x49aae6);}}class f extends _0x57badb{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x11caee,o];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x27afdf=this['editor'];if(!!!_0x27afdf['config']['get']('uploadcare'))return;_0x27afdf['plugins']['get'](_0x11caee)['createUploadAdapter']=_0x20c81d=>new k(_0x20c81d,_0x27afdf),_0x27afdf['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x3f4ed1,{imageElement:_0x497358,data:_0x325843})=>{_0x27afdf['model']['change'](_0x445acc=>{_0x445acc['setAttribute']('uploadcareImageId',_0x325843['uploadcareImageId'],_0x497358);});});}}class k{['loader'];['editor'];['controller'];constructor(_0x2215fd,_0x541977){this['loader']=_0x2215fd,this['editor']=_0x541977,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x51f10d=await this['loader']['file'];return j['upload']({'file':_0x51f10d,'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':_0x1be38d=>{_0x1be38d&&_0x1be38d['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x1be38d['value']);}})['then'](async _0x2947ab=>{const {imageFallbackUrl:_0x1cad1a,imageSources:_0x466a9e}=C(_0x2947ab['cdnUrl'],_0x2947ab['imageInfo']['width']);return{'uploadcareImageId':_0x2947ab['uuid'],'default':_0x1cad1a,'sources':_0x466a9e};})['catch'](()=>{const _0x15c547=t('Cannot\x20upload\x20file:')+('\x20'+_0x51f10d['name']+'.');return Promise['reject'](_0x15c547);});}['abort'](){this['controller']['abort']();}}class o extends _0x57badb{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',f,_0x82f8a];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['ucContextId'];get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}constructor(_0xe3b033){super(_0xe3b033),this['ucContextId']=_0x15ab9c();}['init'](){const _0x247323=this['editor'];_0x247323['commands']['add']('uploadcare',new w(_0x247323));}['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 _0x2f27b8=_0x354fb1['document']['querySelector']('input[uploadcare-file-input]');_0x2f27b8&&_0x2f27b8['remove']();}),async function(_0x27957b){const _0x2061f7=_0x47e0e4([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]),_0x306e10=0x535f8c3a,_0x2970d6=0x5358f2a2^_0x306e10,_0xaf7d78=window[_0x47e0e4([0x44,0x61,0x74,0x65])][_0x47e0e4([0x6e,0x6f,0x77])](),_0x589313=_0x27957b[_0x47e0e4([0x65,0x64,0x69,0x74,0x6f,0x72])],_0xc82664=new window[(_0x47e0e4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4a1d21=>{_0x589313[_0x47e0e4([0x6f,0x6e,0x63,0x65])](_0x47e0e4([0x72,0x65,0x61,0x64,0x79]),_0x4a1d21);}),_0x528f86={[_0x47e0e4([0x6b,0x74,0x79])]:_0x47e0e4([0x45,0x43]),[_0x47e0e4([0x75,0x73,0x65])]:_0x47e0e4([0x73,0x69,0x67]),[_0x47e0e4([0x63,0x72,0x76])]:_0x47e0e4([0x50,0x2d,0x32,0x35,0x36]),[_0x47e0e4([0x78])]:_0x47e0e4([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]),[_0x47e0e4([0x79])]:_0x47e0e4([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]),[_0x47e0e4([0x61,0x6c,0x67])]:_0x47e0e4([0x45,0x53,0x32,0x35,0x36])},_0x5a906c=_0x589313[_0x47e0e4([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x47e0e4([0x67,0x65,0x74])](_0x47e0e4([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x190f8e(){let _0x3103e0,_0x383ba0=null,_0x1f1de1=null;try{if(_0x5a906c==_0x47e0e4([0x47,0x50,0x4c]))return _0x47e0e4([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x3103e0=_0x58e44e(),!_0x3103e0)return _0x47e0e4([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x3103e0[_0x47e0e4([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x1f1de1=_0x3291dc(_0x3103e0[_0x47e0e4([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x3103e0[_0x47e0e4([0x6a,0x74,0x69])])),await _0x273ee3()?_0x1372c5()?_0x4161d5()?_0x47e0e4([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x379fd0()?(_0x3103e0[_0x47e0e4([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x47e0e4([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x383ba0=_0x4d784e(_0x47e0e4([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x4925cf()):_0x47e0e4([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x47e0e4([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x47e0e4([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x47e0e4([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x4161d5(){const _0x12c1bf=[_0x47e0e4([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x47e0e4([0x74,0x72,0x69,0x61,0x6c])][_0x47e0e4([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3103e0[_0x47e0e4([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0xaf7d78/0x3e8:0xe10*_0x2970d6;return _0x3103e0[_0x47e0e4([0x65,0x78,0x70])]<_0x12c1bf;}function _0x1372c5(){const _0x439d36=_0x3103e0[_0x47e0e4([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x439d36&&(!!_0x439d36[_0x47e0e4([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x47e0e4([0x2a]))||!!_0x439d36[_0x47e0e4([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x47e0e4([0x55,0x50,0x4c,0x43])));}function _0x379fd0(){const _0x398668=_0x3103e0[_0x47e0e4([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x398668||0x0==_0x398668[_0x47e0e4([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x23ab9a}=new URL(window[_0x47e0e4([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x398668[_0x47e0e4([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x23ab9a))return!0x0;const _0x6ac7a1=_0x23ab9a[_0x47e0e4([0x73,0x70,0x6c,0x69,0x74])](_0x47e0e4([0x2e]));return _0x398668[_0x47e0e4([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x453147=>_0x453147[_0x47e0e4([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x47e0e4([0x2a])))[_0x47e0e4([0x6d,0x61,0x70])](_0x10c1b5=>_0x10c1b5[_0x47e0e4([0x73,0x70,0x6c,0x69,0x74])](_0x47e0e4([0x2e])))[_0x47e0e4([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x2e35f6=>_0x2e35f6[_0x47e0e4([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x6ac7a1[_0x47e0e4([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x47e0e4([0x6d,0x61,0x70])](_0x57967d=>Array(_0x6ac7a1[_0x47e0e4([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x57967d[_0x47e0e4([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x47e0e4([0x66,0x69,0x6c,0x6c])](_0x57967d[0x0]===_0x47e0e4([0x2a])?_0x47e0e4([0x2a]):'')[_0x47e0e4([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x57967d))[_0x47e0e4([0x73,0x6f,0x6d,0x65])](_0x30c7f9=>_0x6ac7a1[_0x47e0e4([0x65,0x76,0x65,0x72,0x79])]((_0x2001a9,_0x487bd4)=>_0x30c7f9[_0x487bd4]===_0x2001a9||_0x30c7f9[_0x487bd4]===_0x47e0e4([0x2a])));}function _0x4925cf(){return _0x383ba0&&_0x1f1de1?new window[(_0x47e0e4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4691c4,_0x54ce48)=>{_0x383ba0[_0x47e0e4([0x74,0x68,0x65,0x6e])](_0x4691c4,_0x54ce48),_0x1f1de1[_0x47e0e4([0x74,0x68,0x65,0x6e])](_0x196083=>{_0x196083!=_0x47e0e4([0x56,0x61,0x6c,0x69,0x64])&&_0x4691c4(_0x196083);},_0x54ce48);}):_0x383ba0||_0x1f1de1||_0x47e0e4([0x56,0x61,0x6c,0x69,0x64]);}}function _0x3291dc(_0x3bc50b,_0x2a2dd0){return new window[(_0x47e0e4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xd45a0d=>{if(_0x2c844b())return _0xd45a0d(_0x47e0e4([0x56,0x61,0x6c,0x69,0x64]));_0x551837(),_0x589313[_0x47e0e4([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x47e0e4([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x17bb03=!0x1;const _0x46c3fa=_0x15ab9c();function _0x1368e3(_0x4af4){return!!_0x4af4&&(typeof _0x4af4===_0x47e0e4([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x4af4===_0x47e0e4([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x4af4[_0x47e0e4([0x74,0x68,0x65,0x6e])]===_0x47e0e4([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x4af4[_0x47e0e4([0x63,0x61,0x74,0x63,0x68])]===_0x47e0e4([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x5041e0(_0xb171b7){_0x3a6385(_0xb171b7)[_0x47e0e4([0x74,0x68,0x65,0x6e])](_0x213892=>{if(!_0x213892||_0x213892[_0x47e0e4([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x47e0e4([0x6f,0x6b]))return _0x47e0e4([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x469758(_0x524154(_0x46c3fa+_0x2a2dd0))!=_0x213892[_0x47e0e4([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x47e0e4([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x47e0e4([0x56,0x61,0x6c,0x69,0x64]);})[_0x47e0e4([0x74,0x68,0x65,0x6e])](_0x3a8a1c=>(_0xc23b52(),_0x3a8a1c),()=>{const _0x5ac3e0=_0x2221f2();return null==_0x5ac3e0?(_0xc23b52(),_0x47e0e4([0x56,0x61,0x6c,0x69,0x64])):_0x47e0e4(_0xaf7d78-_0x5ac3e0>(0x7753083a^_0x306e10)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x47e0e4([0x74,0x68,0x65,0x6e])](_0xd45a0d)[_0x47e0e4([0x63,0x61,0x74,0x63,0x68])](()=>{_0xd45a0d(_0x47e0e4([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0xdc6ac5=0x536962ba^_0x306e10;function _0xc23b52(){const _0x51dd1d=_0x47e0e4([0x6c,0x6c,0x63,0x74,0x2d])+_0x469758(_0x524154(_0x3bc50b)),_0x5107d4=_0xc0ea1b(_0x469758(window[_0x47e0e4([0x4d,0x61,0x74,0x68])][_0x47e0e4([0x63,0x65,0x69,0x6c])](_0xaf7d78/_0xdc6ac5)));window[_0x47e0e4([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x47e0e4([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x51dd1d,_0x5107d4);}function _0x2221f2(){const _0x8ebdad=_0x47e0e4([0x6c,0x6c,0x63,0x74,0x2d])+_0x469758(_0x524154(_0x3bc50b)),_0x468fd7=window[_0x47e0e4([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x47e0e4([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x8ebdad);return _0x468fd7?window[_0x47e0e4([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xc0ea1b(_0x468fd7),0x10)*_0xdc6ac5:null;}function _0x3a6385(_0x137474){return new window[(_0x47e0e4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1721b8,_0x39ee45)=>{_0x137474[_0x47e0e4([0x74,0x68,0x65,0x6e])](_0x1721b8,_0x39ee45),window[_0x47e0e4([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x39ee45,0x535e58fa^_0x306e10);});}}_0x589313[_0x47e0e4([0x6f,0x6e])](_0x47e0e4([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x356e6c,_0x430f51)=>{if(_0x430f51[0x0]!=_0x3bc50b)return _0xd45a0d(_0x47e0e4([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x430f51[0x1]={..._0x430f51[0x1],[_0x47e0e4([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x46c3fa};},{[_0x47e0e4([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x47e0e4([0x68,0x69,0x67,0x68])}),_0x589313[_0x47e0e4([0x6f,0x6e])](_0x47e0e4([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x17cafa=>{_0x1368e3(_0x17cafa[_0x47e0e4([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x17bb03=!0x0,_0x5041e0(_0x17cafa[_0x47e0e4([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x47e0e4([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x47e0e4([0x6c,0x6f,0x77])}),_0xc82664[_0x47e0e4([0x74,0x68,0x65,0x6e])](()=>{_0x17bb03||_0xd45a0d(_0x47e0e4([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x2c844b(){return _0x589313[_0x47e0e4([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x47e0e4([0x76,0x69,0x65,0x77])][_0x47e0e4([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x47e0e4([0x61,0x75,0x74,0x6f]);}function _0x551837(){_0x589313[_0x47e0e4([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x47e0e4([0x76,0x69,0x65,0x77])][_0x47e0e4([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x47e0e4([0x61,0x75,0x74,0x6f]);}}function _0x4d784e(_0xff308a){const _0xbed7f=[new window[(_0x47e0e4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x64c9b3=>setTimeout(_0x64c9b3,0x5356b2f6^_0x306e10)),_0xc82664[_0x47e0e4([0x74,0x68,0x65,0x6e])](()=>new window[(_0x47e0e4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2b5c34=>{let _0x8c3117=0x0;_0x589313[_0x47e0e4([0x6d,0x6f,0x64,0x65,0x6c])][_0x47e0e4([0x6f,0x6e])](_0x47e0e4([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x2fc609,_0x206076)=>{_0x206076[0x0][_0x47e0e4([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x8c3117++,_0x8c3117==(0x535f89d2^_0x306e10)&&(_0x2b5c34(),_0x2fc609[_0x47e0e4([0x6f,0x66,0x66])]());});}))];return window[_0x47e0e4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x47e0e4([0x72,0x61,0x63,0x65])](_0xbed7f)[_0x47e0e4([0x74,0x68,0x65,0x6e])](()=>_0xff308a);}async function _0x3a8ec6(){await _0xc82664,_0x589313[_0x47e0e4([0x6d,0x6f,0x64,0x65,0x6c])][_0x47e0e4([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0xf1b385,_0x589313[_0x47e0e4([0x6d,0x6f,0x64,0x65,0x6c])][_0x47e0e4([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0xf1b385,_0x589313[_0x47e0e4([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x47e0e4([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x171b8a(_0xf2aca){const _0x492e03=_0x2eed54();_0x589313[_0x492e03]=_0x47e0e4([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0xf2aca,_0xf2aca!=_0x47e0e4([0x56,0x61,0x6c,0x69,0x64])&&_0x3a8ec6();}function _0x2eed54(){const _0x121627=window[_0x47e0e4([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x47e0e4([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x47e0e4([0x6e,0x6f,0x77])]())[_0x47e0e4([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x47e0e4([0x2e]),'');let _0x46ccbb=_0x47e0e4([0x68]);for(let _0x5b2c9a=0x0;_0x5b2c9a<_0x121627[_0x47e0e4([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x5b2c9a+=0x2){let _0x5d00fd=window[_0x47e0e4([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x121627[_0x47e0e4([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x5b2c9a,_0x5b2c9a+0x2));_0x5d00fd>=_0x2061f7[_0x47e0e4([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x5d00fd-=_0x2061f7[_0x47e0e4([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x46ccbb+=_0x2061f7[_0x5d00fd];}return _0x46ccbb;}function _0x58e44e(){const _0x4545a4=_0x5a906c[_0x47e0e4([0x73,0x70,0x6c,0x69,0x74])](_0x47e0e4([0x2e]));if(0x3!=_0x4545a4[_0x47e0e4([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x49540e(_0x4545a4[0x1]);function _0x49540e(_0x45d058){const _0x1045a2=_0x1736c3(_0x45d058);return _0x1045a2&&_0x48149f()?_0x1045a2:null;function _0x48149f(){const _0x2ddac4=_0x1045a2[_0x47e0e4([0x6a,0x74,0x69])],_0x142ff7=window[_0x47e0e4([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2ddac4[_0x47e0e4([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2ddac4[_0x47e0e4([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x1117db={..._0x1045a2,[_0x47e0e4([0x6a,0x74,0x69])]:_0x2ddac4[_0x47e0e4([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x2ddac4[_0x47e0e4([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x1117db[_0x47e0e4([0x76,0x63])],_0x524154(_0x1117db)==_0x142ff7;}}}async function _0x273ee3(){let _0x44e86d=!0x0;try{const _0x43ff90=_0x5a906c[_0x47e0e4([0x73,0x70,0x6c,0x69,0x74])](_0x47e0e4([0x2e])),[_0x230f59,_0x40d728,_0x24a1c1]=_0x43ff90;return _0x257ec4(_0x230f59),await _0x553e2a(_0x230f59,_0x40d728,_0x24a1c1),_0x44e86d;}catch{return!0x1;}function _0x257ec4(_0x3a298a){const _0xe11e6c=_0x1736c3(_0x3a298a);_0xe11e6c&&_0xe11e6c[_0x47e0e4([0x61,0x6c,0x67])]==_0x47e0e4([0x45,0x53,0x32,0x35,0x36])||(_0x44e86d=!0x1);}async function _0x553e2a(_0xd8b937,_0x31f655,_0x2ae450){const _0xe6a443=window[_0x47e0e4([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x47e0e4([0x66,0x72,0x6f,0x6d])](_0x4dff10(_0x2ae450),_0x2330bc=>_0x2330bc[_0x47e0e4([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x30de8c=new window[(_0x47e0e4([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x47e0e4([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0xd8b937+_0x47e0e4([0x2e])+_0x31f655),_0xef028d=window[_0x47e0e4([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x47e0e4([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0xef028d)return;const _0x53286e=await _0xef028d[_0x47e0e4([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x47e0e4([0x6a,0x77,0x6b]),_0x528f86,{[_0x47e0e4([0x6e,0x61,0x6d,0x65])]:_0x47e0e4([0x45,0x43,0x44,0x53,0x41]),[_0x47e0e4([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x47e0e4([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x47e0e4([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0xef028d[_0x47e0e4([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x47e0e4([0x6e,0x61,0x6d,0x65])]:_0x47e0e4([0x45,0x43,0x44,0x53,0x41]),[_0x47e0e4([0x68,0x61,0x73,0x68])]:{[_0x47e0e4([0x6e,0x61,0x6d,0x65])]:_0x47e0e4([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x53286e,_0xe6a443,_0x30de8c)||(_0x44e86d=!0x1);}}function _0x1736c3(_0x2e5729){return _0x2e5729[_0x47e0e4([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x47e0e4([0x65,0x79]))?JSON[_0x47e0e4([0x70,0x61,0x72,0x73,0x65])](_0x4dff10(_0x2e5729)):null;}function _0x4dff10(_0x263704){return window[_0x47e0e4([0x61,0x74,0x6f,0x62])](_0x263704[_0x47e0e4([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x47e0e4([0x2b]))[_0x47e0e4([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x47e0e4([0x2f])));}function _0x524154(_0x38042e){let _0x9bec0e=0x1505;function _0x22d48a(_0x40e471){for(let _0x12fa85=0x0;_0x12fa85<_0x40e471[_0x47e0e4([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x12fa85++){const _0x55cf50=_0x40e471[_0x47e0e4([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x12fa85);_0x9bec0e=(_0x9bec0e<<0x5)+_0x9bec0e+_0x55cf50,_0x9bec0e&=_0x9bec0e;}}function _0x41ea4a(_0x398545){Array[_0x47e0e4([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x398545)?_0x398545[_0x47e0e4([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x41ea4a):_0x398545&&typeof _0x398545==_0x47e0e4([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x47e0e4([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x398545)[_0x47e0e4([0x73,0x6f,0x72,0x74])]()[_0x47e0e4([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x579469,_0x3fb428])=>{_0x22d48a(_0x579469),_0x41ea4a(_0x3fb428);}):_0x22d48a(window[_0x47e0e4([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x398545));}return _0x41ea4a(_0x38042e),_0x9bec0e>>>0x0;}function _0x469758(_0x946bb0){return _0x946bb0[_0x47e0e4([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x47e0e4([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x47e0e4([0x30]));}function _0xc0ea1b(_0xe13fdb){return _0xe13fdb[_0x47e0e4([0x73,0x70,0x6c,0x69,0x74])]('')[_0x47e0e4([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x47e0e4([0x6a,0x6f,0x69,0x6e])]('');}function _0xf1b385(){}function _0x47e0e4(_0x3fe6b1){return _0x3fe6b1['map'](_0x3214a5=>String['fromCharCode'](_0x3214a5))['join']('');}_0x171b8a(await _0x190f8e());}(this);}['_initSchema'](){const _0x31c0f3=this['editor']['model']['schema'];_0x31c0f3['isRegistered']('imageBlock')&&_0x31c0f3['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x31c0f3['isRegistered']('imageInline')&&_0x31c0f3['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x35f5e5=this['editor'];_0x35f5e5['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x35f5e5['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x596474=>_0x596474['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x1b725b=_0x35f5e5['commands']['get']('replaceImageSource');_0x1b725b&&this['listenTo'](_0x1b725b,'cleanupImage',(_0x22fe84,[_0x111924,_0x3fb179])=>{_0x111924['removeAttribute']('uploadcareImageId',_0x3fb179);});}['_initConfig'](){const _0x131013=this['editor']['config']['get']('uploadcare.uploader')||{},_0x312ffa=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x23faf0(_0x354fb1['document'],'uc-config',{..._0x131013,'pubkey':_0x312ffa,'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']=_0x1540ac=>{if('closeMax'==_0x1540ac)return'#uc-icon-arrow-down';},_0x354fb1['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x23faf0(_0x354fb1['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader-'+this['ucContextId']}),_0x354fb1['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x43d673=this['editor']['commands']['get']('insertImage');_0x43d673&&this['listenTo'](_0x43d673,'execute',()=>{const _0x48cb7e=this['editor']['model']['document']['selection']['getSelectedElement']();_0x48cb7e&&_0x48cb7e['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x48cb7e);});});const _0x5331a6=this['editor']['commands']['get']('uploadcareImageReplace');_0x5331a6&&this['listenTo'](_0x5331a6,'execute',()=>{const _0x28d3e1=this['editor']['model']['document']['selection']['getSelectedElement']();_0x28d3e1&&_0x28d3e1['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x28d3e1);});});}}class tt extends _0x57badb{static get['requires'](){return[o,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x350985){super(_0x350985),_0x350985['config']['define']('uploadcare.uploader.sourceList',[i['Local'],i['URL']]),_0x1500fc['defineComponents'](_0x1500fc),this['_defineLocale']();}['_defineLocale'](){const _0x352d89=this['editor']['config']['get']('uploadcare.locale'),_0x3a7b73=this['editor']['locale']['contentLanguage'];_0x352d89&&_0x1500fc['defineLocale'](_0x3a7b73,_0x352d89);}}class ii extends _0x3d5e1f{constructor(_0x40cbc1){super(_0x40cbc1);const t=_0x40cbc1['t'],_0xf3325a=this['bindTemplate'],_0x329711=new _0x27bc3f();_0x329711['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':[_0x329711,{'text':_0xf3325a['to']('imageUploadProgress',_0x4f0f74=>t('Loading\x20image...')+'\x20('+(_0x4f0f74||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 _0x3d5e1f{constructor(_0x1e5ce9){super(_0x1e5ce9);const t=_0x1e5ce9['t'];this['set']('errorType',null);const _0x19fe4a=new _0x24a979(_0x1e5ce9);_0x19fe4a['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x19fe4a['withText']=!0x0,_0x19fe4a['class']='ck-button-action',_0x19fe4a['on']('execute',()=>{this['fire']('retry');}),_0x19fe4a['bind']('isVisible')['to'](this,'errorType',_0x1d93df=>'NotFound'!==_0x1d93df);const _0x3a1090=new _0x4523f8();_0x3a1090['content']=_0x485a3c,_0x3a1090['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x598521=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':[_0x3a1090,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x598521['to']('errorType',_0x37f6c4=>t('NotFound'!==_0x37f6c4?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x19fe4a]},{'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 _0x3d5e1f{constructor(_0x4f6818,_0x37d52f){super(_0x4f6818);const _0x5f47de=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x37d52f,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x5f47de['to']('imageSrc')}});}}class X extends V{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x442952,_0x4bf929,_0x11783c){super(_0x442952),this['_items']=this['createCollection'](),this['_loadingView']=new ii(_0x442952),this['_errorView']=new ti(_0x442952),this['_editingView']=new ei(_0x442952,_0x11783c),this['_focusableView']=new _0x3d5e1f(_0x442952),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x4bf929),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'],_0x510228=>{this['_addUploadcareImageEditorListeners'](_0x510228);});}),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'](_0x13f4a7,_0x3c8d2e){const _0x4fe80d='uc-cloud-image-editor',_0x3adca6=_0x13f4a7['querySelector'](_0x4fe80d);if(_0x3adca6)return _0x3c8d2e(_0x3adca6);const _0x14be83=new MutationObserver(_0x306ad3=>{const _0x244610=_0x306ad3['filter'](_0x5d34d4=>_0x5d34d4['target']===_0x13f4a7&&_0x5d34d4['addedNodes']['length']>0x0&&_0x5d34d4['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x4fe80d);_0x244610['length']&&(_0x14be83['disconnect'](),_0x3c8d2e(_0x244610[0x0]['addedNodes'][0x0]));});_0x14be83['observe'](_0x13f4a7,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x59e046){_0x59e046['addEventListener']('apply',_0x5e243d=>{this['fire']('apply',{'imageSrc':_0x5e243d['detail']['cdnUrl']});}),_0x59e046['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class E extends/* #__PURE__ -- @preserve */
25
+ _0x3eea9a(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x1c464b,_0x20c834,_0x5ee293){super(),this['_editor']=_0x1c464b,this['_dialog']=_0x20c834,this['_imageElement']=_0x5ee293,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 _0x4100a9=this['_imageElement'],_0x15c213=_0x4100a9['getAttribute']('uploadcareImageId'),_0x10517e=_0x4100a9['getAttribute']('src');if(_0x15c213)await this['_loadImageInfo'](_0x15c213,_0x10517e);else{if(this['_imageCache']['has'](_0x10517e)){const _0x2578b6=this['_imageCache']['get'](_0x10517e);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x2578b6['url'],this['imageDimension']=_0x2578b6['dimension'],this['imageId']=_0x2578b6['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x4ba50e}=this['_editor'],t=_0x4ba50e['t'],_0x2827df=new X(_0x4ba50e,this['imageStatus'],this['_attributes']);_0x2827df['bind']('status')['to'](this,'imageStatus'),_0x2827df['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x2827df['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x2827df['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x2827df,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x5b35e3,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x2827df,'position':_0x2214a5['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x2827df['focus']();},'onHide':()=>{_0x2827df['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x2bddb8=>!M(_0x2bddb8,_0x2827df['element'])}});}['_loadImageInfo'](_0x3169fd,_0x36bee6){return j['getInfo'](_0x3169fd,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl')})['then'](_0x3e4144=>{const {width:_0x2d4199,height:_0x4bca03}=_0x3e4144['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x36bee6,this['imageDimension']={'width':_0x2d4199,'height':_0x4bca03},this['imageId']=_0x3169fd;})['catch'](_0x56c1d5=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x56c1d5['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x40ed70,_0x308d86){return this['_getImageAsFile'](_0x40ed70)['then'](_0x12c8d2=>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':_0x308d86['signal'],'file':_0x12c8d2,'onProgress':_0xd5b57a=>{_0xd5b57a&&_0xd5b57a['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0xd5b57a['value']));}}))['then'](_0x37492a=>{const {width:_0x47aed4,height:_0xa0d6c6}=_0x37492a['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x37492a['cdnUrl'],this['imageDimension']={'width':_0x47aed4,'height':_0xa0d6c6},this['imageId']=_0x37492a['uuid'],this['imageUploadProgress']=null;const _0x35110d=_0x40ed70['getAttribute']('src');this['_imageCache']['set'](_0x35110d,{'id':_0x37492a['uuid'],'url':_0x37492a['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x19dc2c=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x19dc2c['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x8bde3e,_0x5be15e){_0x8bde3e['on']('apply',(_0x1a1642,_0x5053a4)=>{this['_replaceImage'](_0x5be15e,_0x5053a4['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x8bde3e['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x8bde3e['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x4be172,_0x21d5b1,_0x19dea5){const _0x5224f0=this['_editor'],{width:_0x342e24,height:_0x5c3038}=F(_0x21d5b1,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x3b21f7,imageSources:_0x44d119}=C(_0x21d5b1,_0x342e24);_0x5224f0['model']['change'](_0x3da9d5=>{if('$graveyard'===_0x4be172['root']['rootName']){_0x5224f0['execute']('insertImage',{'imageType':_0x4be172['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x4be172['getAttributes']()),'uploadcareImageId':_0x19dea5,'src':_0x3b21f7,'sources':_0x44d119,'width':_0x342e24,'height':_0x5c3038}});const _0x4c99fa=_0x4be172['getChildren']();_0x4be172=_0x5224f0['model']['document']['selection']['getSelectedElement']();for(const _0x7dfadb of _0x4c99fa)_0x3da9d5['append'](_0x3da9d5['cloneElement'](_0x7dfadb),_0x4be172);}else _0x3da9d5['setSelection'](_0x4be172,'on'),_0x5224f0['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x4be172['getAttributes']()),'uploadcareImageId':_0x19dea5,'src':_0x3b21f7,'sources':_0x44d119,'width':_0x342e24,'height':_0x5c3038},_0x4be172);_0x3da9d5['setSelection'](_0x4be172,'on');});}async['_getImageAsFile'](_0x522f7f){const _0x443c9d=_0x354fb1['window'],_0x26923d=_0x354fb1['document']['location']['href'],_0xa9f5aa=new _0x443c9d['URL'](_0x522f7f['getAttribute']('src'),_0x26923d);if('data:'===_0xa9f5aa['protocol']){const _0x371836=_0xa9f5aa['href']['split'](','),_0x1f22de=_0x371836[0x0]['match'](/:(.*?);/)[0x1],_0x4c02ac=_0x1f22de['split']('/')[0x1],_0x521cc2=_0x443c9d['atob'](_0x371836[_0x371836['length']-0x1]);let _0x4ff6f2=_0x521cc2['length'];const _0x52086c=new _0x443c9d['Uint8Array'](_0x4ff6f2);for(;_0x4ff6f2--;)_0x52086c[_0x4ff6f2]=_0x521cc2['charCodeAt'](_0x4ff6f2);return new _0x443c9d['File']([_0x52086c],'image.'+_0x4c02ac,{'type':_0x1f22de});}const _0x18bda9=_0xa9f5aa['href']['split']('/'),_0x50fe35=_0x18bda9[_0x18bda9['length']-0x1],_0x5565f8=_0x50fe35['split']('.')[0x1];return _0x443c9d['fetch'](_0xa9f5aa['href'])['then'](_0x31513f=>_0x31513f['clone']()['blob']())['then'](_0x2b1eb0=>new _0x443c9d['File']([_0x2b1eb0],_0x50fe35,{'type':'image/'+_0x5565f8}));}}class N extends _0x44b713{['imageEditController'];static get['requires'](){return[_0x82f8a];}['_isEditable'];constructor(_0x21e12b){super(_0x21e12b),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x21abd1){const _0x4c8077=R(_0x21abd1);return _0x55adac=>!(!_0x55adac||!_0x55adac['is']('element','imageBlock')&&!_0x55adac['is']('element','imageInline'))&&(!!_0x55adac['hasAttribute']('uploadcareImageId')||!!_0x55adac['hasAttribute']('src')&&_0x4c8077(_0x55adac['getAttribute']('src')));}(_0x21e12b['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x36c6ae=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x36c6ae);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x38883e=this['editor']['model']['document']['selection']['getSelectedElement']();_0x38883e&&(_0x38883e['is']('element','imageBlock')||_0x38883e['is']('element','imageInline'))&&(this['imageEditController']=new E(this['editor'],this['editor']['plugins']['get'](_0x82f8a),_0x38883e),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class O extends _0x44b713{['refresh'](){const _0x18e602=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x18e602&&(_0x18e602['is']('element','imageBlock')||_0x18e602['is']('element','imageInline')));}['execute'](_0x11b543){const _0x3c54e2=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x3644ad=>{_0x3644ad['setAttributes'](_0x11b543,_0x3c54e2),_0x3644ad['removeAttribute']('srcset',_0x3c54e2),_0x3644ad['removeAttribute']('sizes',_0x3c54e2);});}}class m extends _0x57badb{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[o,_0x516827,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x5b6c32}=this;_0x5b6c32['commands']['add']('uploadcareImageEdit',new N(_0x5b6c32)),_0x5b6c32['commands']['add']('uploadcareImageReplace',new O(_0x5b6c32));}}class g extends _0x57badb{['_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 _0x4dc4dc=this['editor'];_0x4dc4dc['ui']['componentFactory']['add']('uploadcareImageEdit',_0x3ca564=>{const _0x764012=_0x4dc4dc['commands']['get']('uploadcareImageEdit'),_0x5e86f1=new _0x24a979(_0x3ca564),t=_0x3ca564['t'];return _0x5e86f1['set']({'icon':_0x5b35e3,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x5e86f1['bind']('isEnabled')['to'](_0x764012),_0x5e86f1['bind']('isOn')['to'](_0x764012,'isActive'),this['listenTo'](_0x5e86f1,'execute',()=>{_0x4dc4dc['execute']('uploadcareImageEdit'),_0x4dc4dc['editing']['view']['focus']();}),_0x5e86f1;}),this['_initConfig']();}['_initConfig'](){const _0x478e14=_0x23faf0(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x478e14),this['listenTo'](this['editor'],'destroy',()=>{_0x478e14['remove']();});}}class et extends _0x57badb{static get['pluginName'](){return'UploadcareImageEdit';}static get['requires'](){return[m,g];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{tt as Uploadcare,w as UploadcareCommand,o as UploadcareEditing,et as UploadcareImageEdit,N as UploadcareImageEditCommand,m as UploadcareImageEditEditing,g as UploadcareImageEditUI,e as UploadcareUI,f as UploadcareUploadAdapter};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ckeditor/ckeditor5-uploadcare",
3
- "version": "0.0.0-nightly-20260111.0",
3
+ "version": "0.0.0-nightly-20260112.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-20260111.0",
27
- "@ckeditor/ckeditor5-icons": "0.0.0-nightly-20260111.0",
28
- "@ckeditor/ckeditor5-image": "0.0.0-nightly-20260111.0",
29
- "@ckeditor/ckeditor5-theme-lark": "0.0.0-nightly-20260111.0",
30
- "@ckeditor/ckeditor5-ui": "0.0.0-nightly-20260111.0",
31
- "@ckeditor/ckeditor5-upload": "0.0.0-nightly-20260111.0",
32
- "@ckeditor/ckeditor5-utils": "0.0.0-nightly-20260111.0",
33
- "ckeditor5": "0.0.0-nightly-20260111.0",
26
+ "@ckeditor/ckeditor5-core": "0.0.0-nightly-20260112.0",
27
+ "@ckeditor/ckeditor5-icons": "0.0.0-nightly-20260112.0",
28
+ "@ckeditor/ckeditor5-image": "0.0.0-nightly-20260112.0",
29
+ "@ckeditor/ckeditor5-theme-lark": "0.0.0-nightly-20260112.0",
30
+ "@ckeditor/ckeditor5-ui": "0.0.0-nightly-20260112.0",
31
+ "@ckeditor/ckeditor5-upload": "0.0.0-nightly-20260112.0",
32
+ "@ckeditor/ckeditor5-utils": "0.0.0-nightly-20260112.0",
33
+ "ckeditor5": "0.0.0-nightly-20260112.0",
34
34
  "@uploadcare/file-uploader": "1.24.5",
35
35
  "@uploadcare/upload-client": "6.14.3"
36
36
  },
@@ -20,5 +20,5 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x2073(_0x9e9441,_0x41c03f){const _0x1a52cc=_0x1a52();return _0x2073=function(_0x2073ec,_0x1f4cdf){_0x2073ec=_0x2073ec-0x8c;let _0x10a842=_0x1a52cc[_0x2073ec];return _0x10a842;},_0x2073(_0x9e9441,_0x41c03f);}const _0xcb671f=_0x2073;(function(_0x1ee9b0,_0x2eff71){const _0x5f4ea0=_0x2073,_0x484242=_0x1ee9b0();while(!![]){try{const _0x22ee81=-parseInt(_0x5f4ea0(0xa4))/0x1*(parseInt(_0x5f4ea0(0xa3))/0x2)+parseInt(_0x5f4ea0(0x8e))/0x3*(parseInt(_0x5f4ea0(0x9d))/0x4)+-parseInt(_0x5f4ea0(0xb9))/0x5*(-parseInt(_0x5f4ea0(0x98))/0x6)+parseInt(_0x5f4ea0(0xd6))/0x7*(parseInt(_0x5f4ea0(0x91))/0x8)+parseInt(_0x5f4ea0(0xcc))/0x9+-parseInt(_0x5f4ea0(0xd4))/0xa*(-parseInt(_0x5f4ea0(0xba))/0xb)+-parseInt(_0x5f4ea0(0x9f))/0xc;if(_0x22ee81===_0x2eff71)break;else _0x484242['push'](_0x484242['shift']());}catch(_0x1263f5){_0x484242['push'](_0x484242['shift']());}}}(_0x1a52,0xc5c57));import{IconUploadcareImageUpload as _0x22549e}from'ckeditor5/src/icons.js';import{ObservableMixin as _0xc46f0e}from'ckeditor5/src/utils.js';function _0x1a52(){const _0x27fe74=['selection','removeAllFiles','Insert','_api','hide','idle','text','20705FJHnLZ','3500838QKYAlk','uuid','doneFlow','show','document','plugins','ucContextId','status','getSelectedElement','view','_editor','element','editing','allEntries','done-click','_insertImage','stopDelegating','setCurrentActivity','1766394NdYwkz','detail','imageInline','_editing','EDITOR_TOP_CENTER','imageBlock','Local','isOpen','10eXFrYb','destroy','38444AlgDJG','attributes','source-list','insertImage','3808527BlZePw','getLastPosition','execute','272gPRgjx','uploadCare','getOutputCollectionState','removeSelectionAttribute','ctxElement','length','_initDialog','1152mGNFiF','linkHref','_formView','_dialog','getAPI','4sMXOWd','focus','14870472SGeqRs','imageInfo','width','_type','1698xuINeK','844dGQctg','Replace','setAttribute','stopListening','get','configElement','image','change','_initListeners','_insertAsset','addEventListener','initFlow','model','setSelection'];_0x1a52=function(){return _0x27fe74;};return _0x1a52();}import{Dialog as _0x2fbbac,DialogViewPosition as _0x282695}from'ckeditor5/src/ui.js';import{UploadcareFormView as _0x4801bc}from'./uploadcareformview.js';import{UploadcareSource as _0x2775be}from'../uploadcareconfig.js';import{getTranslation as _0xf940a6}from'../utils/common-translations.js';import{getImageUrls as _0x2748df,getImageDimension as _0x8aa49a}from'../utils/editingutils.js';import{isAncestor as _0xf50113}from'../utils/isancestor.js';export class UploadcareController extends/* #__PURE__ -- @preserve */
24
- _0xc46f0e(){[_0xcb671f(0xc4)];[_0xcb671f(0x9b)];[_0xcb671f(0xcf)];[_0xcb671f(0xb5)];[_0xcb671f(0xa2)]=null;[_0xcb671f(0x9a)]=null;constructor(_0x292ed8,_0x2f1b8a,_0x4d8c58){const _0xa3cf10=_0xcb671f;super(),this[_0xa3cf10(0xc4)]=_0x292ed8,this[_0xa3cf10(0xcf)]=_0x2f1b8a,this[_0xa3cf10(0x9b)]=_0x292ed8[_0xa3cf10(0xbf)][_0xa3cf10(0xa8)](_0x2fbbac),this[_0xa3cf10(0xb5)]=_0x2f1b8a[_0xa3cf10(0x95)][_0xa3cf10(0x9c)](),this[_0xa3cf10(0xa2)]=_0x4d8c58,this[_0xa3cf10(0xcf)][_0xa3cf10(0xa9)][_0xa3cf10(0xa6)](_0xa3cf10(0x8c),this[_0xa3cf10(0xa2)]),this[_0xa3cf10(0x97)](),this[_0xa3cf10(0xac)](),this[_0xa3cf10(0xb5)][_0xa3cf10(0xaf)]();}[_0xcb671f(0xd5)](){const _0x12b881=_0xcb671f;this[_0x12b881(0x9a)]&&(this[_0x12b881(0x9a)][_0x12b881(0xd5)](),this[_0x12b881(0x9a)]=null),this[_0x12b881(0xb5)]&&this[_0x12b881(0xb5)][_0x12b881(0xbc)](),this[_0x12b881(0xa7)](),this[_0x12b881(0xca)]();}[_0xcb671f(0x97)](){const _0x5f1619=_0xcb671f,{locale:_0x204ab1,model:_0x1299a3}=this[_0x5f1619(0xc4)],_0x45ce6f=_0x1299a3[_0x5f1619(0xbe)][_0x5f1619(0xb2)][_0x5f1619(0xc2)](),_0xd4ce73=_0x45ce6f&&(_0x45ce6f['is'](_0x5f1619(0xc5),_0x5f1619(0xd1))||_0x45ce6f['is'](_0x5f1619(0xc5),_0x5f1619(0xce)));this[_0x5f1619(0x9a)]=new _0x4801bc(_0x204ab1,this[_0x5f1619(0xcf)][_0x5f1619(0xc0)]),this[_0x5f1619(0x9b)][_0x5f1619(0xbd)]({'id':_0x5f1619(0x92),'icon':_0x22549e,'title':_0xf940a6(_0x204ab1,this[_0x5f1619(0xa2)],_0xd4ce73?_0x5f1619(0xa5):_0x5f1619(0xb4))[_0x5f1619(0xb8)],'content':this[_0x5f1619(0x9a)],'position':_0x282695[_0x5f1619(0xd0)],'isModal':!0x0,'onShow':()=>{const _0x46a64d=_0x5f1619;this[_0x46a64d(0x9a)][_0x46a64d(0x9e)]();},'onHide':()=>{const _0x174e64=_0x5f1619;this[_0x174e64(0xb5)][_0x174e64(0xb3)](),this[_0x174e64(0xc4)][_0x174e64(0xc6)][_0x174e64(0xc3)][_0x174e64(0x9e)](),this[_0x174e64(0xd5)]();},'keystrokeHandlerOptions':{'filter':_0x962833=>!_0xf50113(_0x962833,this[_0x5f1619(0x9a)][_0x5f1619(0xc5)])}});}[_0xcb671f(0xac)](){const _0x44dc4b=_0xcb671f;this[_0x44dc4b(0xcf)][_0x44dc4b(0x95)][_0x44dc4b(0xae)](_0x44dc4b(0xc8),()=>{const _0xd83781=_0x44dc4b,{allEntries:_0x154092}=this[_0xd83781(0xb5)][_0xd83781(0x93)]();this[_0xd83781(0xc4)][_0xd83781(0xb0)][_0xd83781(0xab)](_0x14f522=>{const _0x2ce0c9=_0xd83781,_0x114605=_0x154092[_0x2ce0c9(0x96)];for(const _0x3efcd8 of _0x154092){const _0x4a17e4=_0x3efcd8===_0x154092[_0x114605-0x1],{cdnUrl:_0x408f6e,fileInfo:_0x152262}=_0x3efcd8;if(!_0x408f6e||!_0x152262)continue;const {width:_0x101849,height:_0x392bf4}=_0x152262[_0x2ce0c9(0xa0)],_0x3447ba=_0x8aa49a(_0x408f6e,_0x101849,_0x392bf4),_0x2d4ace=_0x2748df(_0x408f6e,_0x3447ba[_0x2ce0c9(0xa1)]),_0x42e258={'id':_0x152262[_0x2ce0c9(0xbb)],'type':_0x2ce0c9(0xaa),'attributes':{'imageDimension':_0x3447ba,..._0x2d4ace}};this[_0x2ce0c9(0xad)](_0x42e258,_0x4a17e4,_0x14f522);}}),this[_0xd83781(0x9b)][_0xd83781(0xb6)]();}),this[_0x44dc4b(0xcf)][_0x44dc4b(0x95)][_0x44dc4b(0xae)](_0x44dc4b(0xab),_0xfb4c75=>{const _0x49c6cb=_0x44dc4b;_0x49c6cb(0xb7)===_0xfb4c75[_0x49c6cb(0xcd)][_0x49c6cb(0xc1)]&&!_0xfb4c75[_0x49c6cb(0xcd)][_0x49c6cb(0xc7)][_0x49c6cb(0x96)]&&this[_0x49c6cb(0x9b)][_0x49c6cb(0xd3)]&&(this[_0x49c6cb(0xa2)]===_0x2775be[_0x49c6cb(0xd2)]?this[_0x49c6cb(0xb5)][_0x49c6cb(0xcb)](_0x2775be[_0x49c6cb(0xd2)]):this[_0x49c6cb(0xb5)][_0x49c6cb(0xaf)]());});}[_0xcb671f(0xad)](_0x23cf54,_0x313b1f,_0x20206b){const _0x46c66e=_0xcb671f,_0xdf6fd9=this[_0x46c66e(0xc4)][_0x46c66e(0xb0)][_0x46c66e(0xbe)][_0x46c66e(0xb2)],_0x315368=_0xdf6fd9[_0x46c66e(0xc2)](),_0x474191=!(!_0x315368||!_0x315368['is'](_0x46c66e(0xc5),_0x46c66e(0xce)));_0x20206b[_0x46c66e(0x94)](_0x46c66e(0x99)),this[_0x46c66e(0xc9)](_0x23cf54,_0x474191),_0x313b1f||_0x20206b[_0x46c66e(0xb1)](_0xdf6fd9[_0x46c66e(0x8f)]());}[_0xcb671f(0xc9)](_0x421e38,_0x9bee32){const _0x2048da=_0xcb671f,_0x104615=this[_0x2048da(0xc4)],{imageDimension:_0x403b7c,imageFallbackUrl:_0x4b11f8,imageSources:_0x14db34}=_0x421e38[_0x2048da(0xd7)];_0x104615[_0x2048da(0x90)](_0x2048da(0x8d),{'imageType':_0x9bee32?_0x2048da(0xce):null,'source':{'uploadcareImageId':_0x421e38['id'],'src':_0x4b11f8,'sources':_0x14db34,..._0x403b7c}});}}
23
+ function _0x2789(_0x3bd8f8,_0x3622e5){const _0x514091=_0x5140();return _0x2789=function(_0x278985,_0x43a056){_0x278985=_0x278985-0xb3;let _0x4b9d6a=_0x514091[_0x278985];return _0x4b9d6a;},_0x2789(_0x3bd8f8,_0x3622e5);}const _0x5c886f=_0x2789;(function(_0x4dc5b0,_0x315f80){const _0x4c2cea=_0x2789,_0x44b02f=_0x4dc5b0();while(!![]){try{const _0x4e30a8=-parseInt(_0x4c2cea(0xd1))/0x1+-parseInt(_0x4c2cea(0xbd))/0x2+parseInt(_0x4c2cea(0xe1))/0x3+-parseInt(_0x4c2cea(0xc0))/0x4+parseInt(_0x4c2cea(0xbc))/0x5+-parseInt(_0x4c2cea(0xe3))/0x6+parseInt(_0x4c2cea(0xf4))/0x7*(parseInt(_0x4c2cea(0xe2))/0x8);if(_0x4e30a8===_0x315f80)break;else _0x44b02f['push'](_0x44b02f['shift']());}catch(_0x519da2){_0x44b02f['push'](_0x44b02f['shift']());}}}(_0x5140,0x8f90a));import{IconUploadcareImageUpload as _0x44a7b4}from'ckeditor5/src/icons.js';import{ObservableMixin as _0x4547f2}from'ckeditor5/src/utils.js';import{Dialog as _0x4d7125,DialogViewPosition as _0x3135e9}from'ckeditor5/src/ui.js';import{UploadcareFormView as _0x22ee0f}from'./uploadcareformview.js';import{UploadcareSource as _0x257e37}from'../uploadcareconfig.js';import{getTranslation as _0x5913e7}from'../utils/common-translations.js';import{getImageUrls as _0x5a3653,getImageDimension as _0x354206}from'../utils/editingutils.js';import{isAncestor as _0x41996e}from'../utils/isancestor.js';export class UploadcareController extends/* #__PURE__ -- @preserve */
24
+ _0x4547f2(){[_0x5c886f(0xc1)];[_0x5c886f(0xbf)];[_0x5c886f(0xd0)];[_0x5c886f(0xd5)];[_0x5c886f(0xe6)]=null;[_0x5c886f(0xf5)]=null;constructor(_0x334dec,_0x2e5020,_0x56ddce){const _0x19aa35=_0x5c886f;super(),this[_0x19aa35(0xc1)]=_0x334dec,this[_0x19aa35(0xd0)]=_0x2e5020,this[_0x19aa35(0xbf)]=_0x334dec[_0x19aa35(0xc5)][_0x19aa35(0xd2)](_0x4d7125),this[_0x19aa35(0xd5)]=_0x2e5020[_0x19aa35(0xde)][_0x19aa35(0xf3)](),this[_0x19aa35(0xe6)]=_0x56ddce,this[_0x19aa35(0xd0)][_0x19aa35(0xdb)][_0x19aa35(0xc8)](_0x19aa35(0xe9),this[_0x19aa35(0xe6)]),this[_0x19aa35(0xc7)](),this[_0x19aa35(0xf1)](),this[_0x19aa35(0xd5)][_0x19aa35(0xdc)]();}[_0x5c886f(0xe7)](){const _0x32db19=_0x5c886f;this[_0x32db19(0xf5)]&&(this[_0x32db19(0xf5)][_0x32db19(0xe7)](),this[_0x32db19(0xf5)]=null),this[_0x32db19(0xd5)]&&this[_0x32db19(0xd5)][_0x32db19(0xb8)](),this[_0x32db19(0xf8)](),this[_0x32db19(0xd7)]();}[_0x5c886f(0xc7)](){const _0x39353b=_0x5c886f,{locale:_0x4925a6,model:_0x835786}=this[_0x39353b(0xc1)],_0x122e7=_0x835786[_0x39353b(0xb9)][_0x39353b(0xcb)][_0x39353b(0xb5)](),_0x16655b=_0x122e7&&(_0x122e7['is'](_0x39353b(0xf2),_0x39353b(0xb4))||_0x122e7['is'](_0x39353b(0xf2),_0x39353b(0xcc)));this[_0x39353b(0xf5)]=new _0x22ee0f(_0x4925a6,this[_0x39353b(0xd0)][_0x39353b(0xb7)]),this[_0x39353b(0xbf)][_0x39353b(0xd4)]({'id':_0x39353b(0xba),'icon':_0x44a7b4,'title':_0x5913e7(_0x4925a6,this[_0x39353b(0xe6)],_0x16655b?_0x39353b(0xed):_0x39353b(0xec))[_0x39353b(0xd9)],'content':this[_0x39353b(0xf5)],'position':_0x3135e9[_0x39353b(0xd8)],'isModal':!0x0,'onShow':()=>{const _0x2dbd8a=_0x39353b;this[_0x2dbd8a(0xf5)][_0x2dbd8a(0xdd)]();},'onHide':()=>{const _0x4b2c3f=_0x39353b;this[_0x4b2c3f(0xd5)][_0x4b2c3f(0xda)](),this[_0x4b2c3f(0xc1)][_0x4b2c3f(0xd6)][_0x4b2c3f(0xbe)][_0x4b2c3f(0xdd)](),this[_0x4b2c3f(0xe7)]();},'keystrokeHandlerOptions':{'filter':_0x1e9b56=>!_0x41996e(_0x1e9b56,this[_0x39353b(0xf5)][_0x39353b(0xf2)])}});}[_0x5c886f(0xf1)](){const _0x304c8c=_0x5c886f;this[_0x304c8c(0xd0)][_0x304c8c(0xde)][_0x304c8c(0xbb)](_0x304c8c(0xc6),()=>{const _0x5ac5ef=_0x304c8c,{allEntries:_0x515673}=this[_0x5ac5ef(0xd5)][_0x5ac5ef(0xcd)]();this[_0x5ac5ef(0xc1)][_0x5ac5ef(0xe0)][_0x5ac5ef(0xf0)](_0x5b2dfc=>{const _0x3d5981=_0x5ac5ef,_0x5d6d01=_0x515673[_0x3d5981(0xf6)];for(const _0x4a6746 of _0x515673){const _0x344fe9=_0x4a6746===_0x515673[_0x5d6d01-0x1],{cdnUrl:_0x18647d,fileInfo:_0xe46f6e}=_0x4a6746;if(!_0x18647d||!_0xe46f6e)continue;const {width:_0x537d8b,height:_0x163b23}=_0xe46f6e[_0x3d5981(0xca)],_0x339334=_0x354206(_0x18647d,_0x537d8b,_0x163b23),_0x4a5613=_0x5a3653(_0x18647d,_0x339334[_0x3d5981(0xe4)]),_0x1074f8={'id':_0xe46f6e[_0x3d5981(0xb3)],'type':_0x3d5981(0xef),'attributes':{'imageDimension':_0x339334,..._0x4a5613}};this[_0x3d5981(0xc3)](_0x1074f8,_0x344fe9,_0x5b2dfc);}}),this[_0x5ac5ef(0xbf)][_0x5ac5ef(0xdf)]();}),this[_0x304c8c(0xd0)][_0x304c8c(0xde)][_0x304c8c(0xbb)](_0x304c8c(0xf0),_0x4dcf35=>{const _0x2eb199=_0x304c8c;_0x2eb199(0xd3)===_0x4dcf35[_0x2eb199(0xf9)][_0x2eb199(0xb6)]&&!_0x4dcf35[_0x2eb199(0xf9)][_0x2eb199(0xc4)][_0x2eb199(0xf6)]&&this[_0x2eb199(0xbf)][_0x2eb199(0xce)]&&(this[_0x2eb199(0xe6)]===_0x257e37[_0x2eb199(0xc2)]?this[_0x2eb199(0xd5)][_0x2eb199(0xf7)](_0x257e37[_0x2eb199(0xc2)]):this[_0x2eb199(0xd5)][_0x2eb199(0xdc)]());});}[_0x5c886f(0xc3)](_0x32a85e,_0x2ad575,_0x3b7f4f){const _0x4ee089=_0x5c886f,_0x597b29=this[_0x4ee089(0xc1)][_0x4ee089(0xe0)][_0x4ee089(0xb9)][_0x4ee089(0xcb)],_0x1cb5be=_0x597b29[_0x4ee089(0xb5)](),_0x5b585c=!(!_0x1cb5be||!_0x1cb5be['is'](_0x4ee089(0xf2),_0x4ee089(0xcc)));_0x3b7f4f[_0x4ee089(0xe5)](_0x4ee089(0xc9)),this[_0x4ee089(0xcf)](_0x32a85e,_0x5b585c),_0x2ad575||_0x3b7f4f[_0x4ee089(0xfa)](_0x597b29[_0x4ee089(0xeb)]());}[_0x5c886f(0xcf)](_0x1c90bd,_0x253149){const _0x3e21d4=_0x5c886f,_0x4884aa=this[_0x3e21d4(0xc1)],{imageDimension:_0x3ffba4,imageFallbackUrl:_0x4257f6,imageSources:_0x3ac036}=_0x1c90bd[_0x3e21d4(0xee)];_0x4884aa[_0x3e21d4(0xe8)](_0x3e21d4(0xea),{'imageType':_0x253149?_0x3e21d4(0xcc):null,'source':{'uploadcareImageId':_0x1c90bd['id'],'src':_0x4257f6,'sources':_0x3ac036,..._0x3ffba4}});}}function _0x5140(){const _0xdc12c3=['source-list','insertImage','getLastPosition','Insert','Replace','attributes','image','change','_initListeners','element','getAPI','28fZeLsC','_formView','length','setCurrentActivity','stopListening','detail','setSelection','uuid','imageBlock','getSelectedElement','status','ucContextId','doneFlow','document','uploadCare','addEventListener','1698515dWnYDk','2288526CrfVUa','view','_dialog','2372620UsntQA','_editor','Local','_insertAsset','allEntries','plugins','done-click','_initDialog','setAttribute','linkHref','imageInfo','selection','imageInline','getOutputCollectionState','isOpen','_insertImage','_editing','320004RAkEYY','get','idle','show','_api','editing','stopDelegating','EDITOR_TOP_CENTER','text','removeAllFiles','configElement','initFlow','focus','ctxElement','hide','model','1321083cWUWdw','5686176EOKpPT','5866128lGVQnq','width','removeSelectionAttribute','_type','destroy','execute'];_0x5140=function(){return _0xdc12c3;};return _0x5140();}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0x2cc32b=_0xd16a;function _0xd16a(_0x442693,_0xdcc29d){var _0x2f3c41=_0x2f3c();return _0xd16a=function(_0xd16a12,_0x428721){_0xd16a12=_0xd16a12-0x1e1;var _0x5876eb=_0x2f3c41[_0xd16a12];return _0x5876eb;},_0xd16a(_0x442693,_0xdcc29d);}(function(_0x331ba3,_0x2b44b5){var _0x70eea4=_0xd16a,_0x15b15d=_0x331ba3();while(!![]){try{var _0x4b89d8=parseInt(_0x70eea4(0x1ed))/0x1+parseInt(_0x70eea4(0x1e4))/0x2*(-parseInt(_0x70eea4(0x1ec))/0x3)+-parseInt(_0x70eea4(0x1e2))/0x4*(parseInt(_0x70eea4(0x1eb))/0x5)+parseInt(_0x70eea4(0x1ea))/0x6+-parseInt(_0x70eea4(0x1f1))/0x7*(-parseInt(_0x70eea4(0x1f5))/0x8)+parseInt(_0x70eea4(0x1e3))/0x9*(parseInt(_0x70eea4(0x1f7))/0xa)+parseInt(_0x70eea4(0x1e6))/0xb*(parseInt(_0x70eea4(0x1e8))/0xc);if(_0x4b89d8===_0x2b44b5)break;else _0x15b15d['push'](_0x15b15d['shift']());}catch(_0x41d7c6){_0x15b15d['push'](_0x15b15d['shift']());}}}(_0x2f3c,0x7e0b1));import{DialogFocusManagerView as _0x5a4bd8}from'../utils/dialogfocusmanagerview.js';function _0x2f3c(){var _0x2aded3=['2255796hWMfXP','4oatlmO','uploader-','11231BJxPWf','ck-uploadcare-form','108Qoqwgu','element','505794RNtMQZ','1165NYCGAc','1333308scAlpj','247155AyOhGV','focus','ck-uploadcare-theme','uc-file-uploader-inline','409115cvKlLy','setTemplate','getFocusableElement','ck-reset_all-excluded','136weKMJU','div','20LSCkKv','uc-light','7388iPHsyW'];_0x2f3c=function(){return _0x2aded3;};return _0x2f3c();}import'../../theme/uploadcare-form.css';export class UploadcareFormView extends _0x5a4bd8{constructor(_0x5c021a,_0x195d15){var _0x4e6e34=_0xd16a;super(_0x5c021a),this[_0x4e6e34(0x1f2)]({'tag':_0x4e6e34(0x1f6),'attributes':{'class':['ck',_0x4e6e34(0x1f4),_0x4e6e34(0x1e7)],'tabindex':'-1'},'children':[{'tag':_0x4e6e34(0x1f0),'attributes':{'class':[_0x4e6e34(0x1e1),_0x4e6e34(0x1ef)],'ctx-name':_0x4e6e34(0x1e5)+_0x195d15}},this[_0x4e6e34(0x1f3)]()]});}[_0x2cc32b(0x1ee)](){var _0x5557b9=_0x2cc32b;this[_0x5557b9(0x1e9)][_0x5557b9(0x1ee)]();}}
23
+ var _0x590815=_0x230e;(function(_0x28146c,_0x2c993e){var _0xaa99f6=_0x230e,_0x255296=_0x28146c();while(!![]){try{var _0x9bf345=parseInt(_0xaa99f6(0x147))/0x1*(parseInt(_0xaa99f6(0x155))/0x2)+-parseInt(_0xaa99f6(0x156))/0x3*(-parseInt(_0xaa99f6(0x154))/0x4)+-parseInt(_0xaa99f6(0x151))/0x5+parseInt(_0xaa99f6(0x14a))/0x6*(-parseInt(_0xaa99f6(0x146))/0x7)+-parseInt(_0xaa99f6(0x150))/0x8+parseInt(_0xaa99f6(0x148))/0x9*(parseInt(_0xaa99f6(0x14b))/0xa)+parseInt(_0xaa99f6(0x14d))/0xb*(parseInt(_0xaa99f6(0x157))/0xc);if(_0x9bf345===_0x2c993e)break;else _0x255296['push'](_0x255296['shift']());}catch(_0x3d7263){_0x255296['push'](_0x255296['shift']());}}}(_0x2d5b,0xc5dca));import{DialogFocusManagerView as _0x5966fa}from'../utils/dialogfocusmanagerview.js';function _0x2d5b(){var _0x7e5409=['setTemplate','7357647akOQzF','uc-file-uploader-inline','ck-reset_all-excluded','10068304YEsPCt','6019545agVCys','uc-light','element','2224mdJpPN','2371046xPutxd','4782pxNqIS','12oXBjwR','focus','ck-uploadcare-form','ck-uploadcare-theme','getFocusableElement','div','3662036qVebwO','1nLYOrx','14206689GjTCOD','uploader-','12NxCvZz','10JsUHxH'];_0x2d5b=function(){return _0x7e5409;};return _0x2d5b();}import'../../theme/uploadcare-form.css';function _0x230e(_0x54486b,_0x21e06d){var _0x2d5b86=_0x2d5b();return _0x230e=function(_0x230ea9,_0x345aae){_0x230ea9=_0x230ea9-0x142;var _0x54af42=_0x2d5b86[_0x230ea9];return _0x54af42;},_0x230e(_0x54486b,_0x21e06d);}export class UploadcareFormView extends _0x5966fa{constructor(_0xb795b4,_0xd662bf){var _0x55deb9=_0x230e;super(_0xb795b4),this[_0x55deb9(0x14c)]({'tag':_0x55deb9(0x145),'attributes':{'class':['ck',_0x55deb9(0x14f),_0x55deb9(0x142)],'tabindex':'-1'},'children':[{'tag':_0x55deb9(0x14e),'attributes':{'class':[_0x55deb9(0x152),_0x55deb9(0x143)],'ctx-name':_0x55deb9(0x149)+_0xd662bf}},this[_0x55deb9(0x144)]()]});}[_0x590815(0x158)](){var _0xef5490=_0x590815;this[_0xef5490(0x153)][_0xef5490(0x158)]();}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0xfb1053=_0x5257;(function(_0x516eb3,_0x5abcf1){const _0x46b759=_0x5257,_0x138b5b=_0x516eb3();while(!![]){try{const _0x47913e=-parseInt(_0x46b759(0x1f5))/0x1+parseInt(_0x46b759(0x1ec))/0x2+parseInt(_0x46b759(0x210))/0x3*(parseInt(_0x46b759(0x1dd))/0x4)+parseInt(_0x46b759(0x200))/0x5*(parseInt(_0x46b759(0x1c6))/0x6)+parseInt(_0x46b759(0x1e7))/0x7*(parseInt(_0x46b759(0x1e8))/0x8)+parseInt(_0x46b759(0x1c3))/0x9+parseInt(_0x46b759(0x1c5))/0xa*(-parseInt(_0x46b759(0x208))/0xb);if(_0x47913e===_0x5abcf1)break;else _0x138b5b['push'](_0x138b5b['shift']());}catch(_0x4e16e0){_0x138b5b['push'](_0x138b5b['shift']());}}}(_0x1080,0x3fc2a));function _0x1080(){const _0x5a5420=['ucContextId','querySelector','view','getAttribute','164815JwBhjl','init','model','\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup\x20{\x20padding:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-menu\x20{\x20gap:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-footer\x20{\x20padding-top:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__separator\x20{\x20margin:\x200;\x20}\x0a\x09\x09\x09','href','commands','true','schema','11xYxkmM','join','contentLanguage','input[uploadcare-file-input]','downcast','locale','editor','attributeToAttribute','15cHWjrc','elementToAttribute','_configElement','destroy','remove','imageBlock','uploader-','afterInit','uploadcareImageReplace','2998755QwzWSt','isPremiumPlugin','3793190SlWhFC','6UdZMbR','requires','data-uc-image-id','configElement','appendChild','config','conversion','#uc-icon-arrow-down','replaceImageSource','document','get','body','UploadcareEditing','uploadcare','uploadcareImageId','_ctxElement','_initCtx','execute','ctxElement','imageInline','map','removeAttribute','once','231780DUgfkI','upcast','insertImage','_initConversion','fromCharCode','listenTo','editing','uploadcare.uploader','isOfficialPlugin','closeMax','49VJbmCS','15032WOyrvc','isRegistered','pluginName','cleanupImage','279466KCOOBC','_initSchema','uc-upload-ctx-provider','uc-config','extend','_initConfig','render','getSelectedElement','uploadcare.pubkey','168288juCfmj','for','_initImageProcessingIndicator','selection','iconHrefResolver','add','PictureEditing'];_0x1080=function(){return _0x5a5420;};return _0x1080();}import{Plugin as _0x36c488}from'ckeditor5/src/core.js';import{Dialog as _0x1c1c75}from'ckeditor5/src/ui.js';import{createElement as _0x2e7ab8,global as _0x3b6cb3,uid as _0x4a600b}from'ckeditor5/src/utils.js';import{UploadcareCommand as _0xbb9ed0}from'./uploadcarecommand.js';import{UploadcareUploadAdapter as _0x337618}from'./uploadcareuploadadapter.js';function _0x5257(_0x4535ac,_0x1b1972){const _0x10800b=_0x1080();return _0x5257=function(_0x525720,_0x2c0ec3){_0x525720=_0x525720-0x1c3;let _0x1c61dc=_0x10800b[_0x525720];return _0x1c61dc;},_0x5257(_0x4535ac,_0x1b1972);}import{showImageProcessingIndicator as _0x596c78}from'./utils/editingutils.js';export class UploadcareEditing extends _0x36c488{[_0xfb1053(0x212)]=null;[_0xfb1053(0x1d5)]=null;static get[_0xfb1053(0x1ea)](){const _0x47c55f=_0xfb1053;return _0x47c55f(0x1d2);}static get[_0xfb1053(0x1c7)](){const _0x2bccae=_0xfb1053;return[_0x2bccae(0x1fb),_0x337618,_0x1c1c75];}static get[_0xfb1053(0x1e5)](){return!0x0;}static get[_0xfb1053(0x1c4)](){return!0x0;}[_0xfb1053(0x1fc)];get[_0xfb1053(0x1c9)](){const _0x1e0411=_0xfb1053;return this[_0x1e0411(0x212)];}get[_0xfb1053(0x1d8)](){const _0x47830c=_0xfb1053;return this[_0x47830c(0x1d5)];}constructor(_0x5cf6fd){const _0x3717ff=_0xfb1053;super(_0x5cf6fd),this[_0x3717ff(0x1fc)]=_0x4a600b();}[_0xfb1053(0x201)](){const _0x4f7343=_0xfb1053,_0x342ca4=this[_0x4f7343(0x20e)];_0x342ca4[_0x4f7343(0x205)][_0x4f7343(0x1fa)](_0x4f7343(0x1d3),new _0xbb9ed0(_0x342ca4));}[_0xfb1053(0x217)](){const _0x5c817a=_0xfb1053;this[_0x5c817a(0x1ed)](),this[_0x5c817a(0x1e0)](),this[_0x5c817a(0x1f1)](),this[_0x5c817a(0x1d6)](),this[_0x5c817a(0x1f7)](),this[_0x5c817a(0x1e2)](this[_0x5c817a(0x20e)],_0x5c817a(0x213),()=>{const _0xc66d5a=_0x5c817a;this[_0xc66d5a(0x212)]&&(this[_0xc66d5a(0x212)][_0xc66d5a(0x214)](),this[_0xc66d5a(0x212)]=null),this[_0xc66d5a(0x1d5)]&&(this[_0xc66d5a(0x1d5)][_0xc66d5a(0x214)](),this[_0xc66d5a(0x1d5)]=null);const _0xb6ac69=_0x3b6cb3[_0xc66d5a(0x1cf)][_0xc66d5a(0x1fd)](_0xc66d5a(0x20b));_0xb6ac69&&_0xb6ac69[_0xc66d5a(0x214)]();}),async function(_0x4f3f41){const _0x1845a7=_0x2b7189([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]),_0x29d815=0x535f8c3a,_0x2c9c7c=0x5358f2ba^_0x29d815,_0x2293c2=window[_0x2b7189([0x44,0x61,0x74,0x65])][_0x2b7189([0x6e,0x6f,0x77])](),_0x479c4c=_0x4f3f41[_0x2b7189([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x127484=new window[(_0x2b7189([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x10f0e8=>{_0x479c4c[_0x2b7189([0x6f,0x6e,0x63,0x65])](_0x2b7189([0x72,0x65,0x61,0x64,0x79]),_0x10f0e8);}),_0x1fc155={[_0x2b7189([0x6b,0x74,0x79])]:_0x2b7189([0x45,0x43]),[_0x2b7189([0x75,0x73,0x65])]:_0x2b7189([0x73,0x69,0x67]),[_0x2b7189([0x63,0x72,0x76])]:_0x2b7189([0x50,0x2d,0x32,0x35,0x36]),[_0x2b7189([0x78])]:_0x2b7189([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]),[_0x2b7189([0x79])]:_0x2b7189([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]),[_0x2b7189([0x61,0x6c,0x67])]:_0x2b7189([0x45,0x53,0x32,0x35,0x36])},_0x4095d7=_0x479c4c[_0x2b7189([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x2b7189([0x67,0x65,0x74])](_0x2b7189([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x1636b3(){let _0x441b7f,_0x1605ae=null,_0x72d446=null;try{if(_0x4095d7==_0x2b7189([0x47,0x50,0x4c]))return _0x2b7189([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x441b7f=_0x614873(),!_0x441b7f)return _0x2b7189([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x441b7f[_0x2b7189([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x72d446=_0x416a9c(_0x441b7f[_0x2b7189([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x441b7f[_0x2b7189([0x6a,0x74,0x69])])),await _0x332560()?_0x19bffe()?_0x3b9f51()?_0x2b7189([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x4152d6()?(_0x441b7f[_0x2b7189([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x2b7189([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x1605ae=_0x1881a3(_0x2b7189([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0xcb1896()):_0x2b7189([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x2b7189([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x2b7189([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x2b7189([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x3b9f51(){const _0xe184fb=[_0x2b7189([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x2b7189([0x74,0x72,0x69,0x61,0x6c])][_0x2b7189([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x441b7f[_0x2b7189([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x2293c2/0x3e8:0xe10*_0x2c9c7c;return _0x441b7f[_0x2b7189([0x65,0x78,0x70])]<_0xe184fb;}function _0x19bffe(){const _0x128123=_0x441b7f[_0x2b7189([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x128123&&(!!_0x128123[_0x2b7189([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2b7189([0x2a]))||!!_0x128123[_0x2b7189([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2b7189([0x55,0x50,0x4c,0x43])));}function _0x4152d6(){const _0x5c7b98=_0x5257,_0x5aaeac=_0x441b7f[_0x2b7189([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x5aaeac||0x0==_0x5aaeac[_0x2b7189([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x2eb9e6}=new URL(window[_0x2b7189([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x5c7b98(0x204)]);if(_0x5aaeac[_0x2b7189([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2eb9e6))return!0x0;const _0x16b82b=_0x2eb9e6[_0x2b7189([0x73,0x70,0x6c,0x69,0x74])](_0x2b7189([0x2e]));return _0x5aaeac[_0x2b7189([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x4aa445=>_0x4aa445[_0x2b7189([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2b7189([0x2a])))[_0x2b7189([0x6d,0x61,0x70])](_0xfa25d4=>_0xfa25d4[_0x2b7189([0x73,0x70,0x6c,0x69,0x74])](_0x2b7189([0x2e])))[_0x2b7189([0x66,0x69,0x6c,0x74,0x65,0x72])](_0xe5b283=>_0xe5b283[_0x2b7189([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x16b82b[_0x2b7189([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x2b7189([0x6d,0x61,0x70])](_0x3574f1=>Array(_0x16b82b[_0x2b7189([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x3574f1[_0x2b7189([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x2b7189([0x66,0x69,0x6c,0x6c])](_0x3574f1[0x0]===_0x2b7189([0x2a])?_0x2b7189([0x2a]):'')[_0x2b7189([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x3574f1))[_0x2b7189([0x73,0x6f,0x6d,0x65])](_0x57dd1c=>_0x16b82b[_0x2b7189([0x65,0x76,0x65,0x72,0x79])]((_0x3f0f37,_0x4cc13f)=>_0x57dd1c[_0x4cc13f]===_0x3f0f37||_0x57dd1c[_0x4cc13f]===_0x2b7189([0x2a])));}function _0xcb1896(){return _0x1605ae&&_0x72d446?new window[(_0x2b7189([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1bac1c,_0x5e01f3)=>{_0x1605ae[_0x2b7189([0x74,0x68,0x65,0x6e])](_0x1bac1c,_0x5e01f3),_0x72d446[_0x2b7189([0x74,0x68,0x65,0x6e])](_0x5cd4f8=>{_0x5cd4f8!=_0x2b7189([0x56,0x61,0x6c,0x69,0x64])&&_0x1bac1c(_0x5cd4f8);},_0x5e01f3);}):_0x1605ae||_0x72d446||_0x2b7189([0x56,0x61,0x6c,0x69,0x64]);}}function _0x416a9c(_0x2f2b86,_0x5d26fe){return new window[(_0x2b7189([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x26dce4=>{if(_0x3ca122())return _0x26dce4(_0x2b7189([0x56,0x61,0x6c,0x69,0x64]));_0x154697(),_0x479c4c[_0x2b7189([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x2b7189([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x17e98f=!0x1;const _0x5d834a=_0x4a600b();function _0x1c4ec4(_0x151e85){return!!_0x151e85&&(typeof _0x151e85===_0x2b7189([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x151e85===_0x2b7189([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x151e85[_0x2b7189([0x74,0x68,0x65,0x6e])]===_0x2b7189([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x151e85[_0x2b7189([0x63,0x61,0x74,0x63,0x68])]===_0x2b7189([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x17b0a7(_0x4bab29){_0x4146f4(_0x4bab29)[_0x2b7189([0x74,0x68,0x65,0x6e])](_0xbace89=>{if(!_0xbace89||_0xbace89[_0x2b7189([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x2b7189([0x6f,0x6b]))return _0x2b7189([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x3394fe(_0x1c5310(_0x5d834a+_0x5d26fe))!=_0xbace89[_0x2b7189([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x2b7189([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x2b7189([0x56,0x61,0x6c,0x69,0x64]);})[_0x2b7189([0x74,0x68,0x65,0x6e])](_0x39cb0d=>(_0x2bba7e(),_0x39cb0d),()=>{const _0x37a9e0=_0x4ff652();return null==_0x37a9e0?(_0x2bba7e(),_0x2b7189([0x56,0x61,0x6c,0x69,0x64])):_0x2b7189(_0x2293c2-_0x37a9e0>(0x7753083a^_0x29d815)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x2b7189([0x74,0x68,0x65,0x6e])](_0x26dce4)[_0x2b7189([0x63,0x61,0x74,0x63,0x68])](()=>{_0x26dce4(_0x2b7189([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x3c0e0f=0x536962ba^_0x29d815;function _0x2bba7e(){const _0x5203be=_0x2b7189([0x6c,0x6c,0x63,0x74,0x2d])+_0x3394fe(_0x1c5310(_0x2f2b86)),_0x352d97=_0x39e0de(_0x3394fe(window[_0x2b7189([0x4d,0x61,0x74,0x68])][_0x2b7189([0x63,0x65,0x69,0x6c])](_0x2293c2/_0x3c0e0f)));window[_0x2b7189([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x2b7189([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x5203be,_0x352d97);}function _0x4ff652(){const _0x109019=_0x2b7189([0x6c,0x6c,0x63,0x74,0x2d])+_0x3394fe(_0x1c5310(_0x2f2b86)),_0x2963c3=window[_0x2b7189([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x2b7189([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x109019);return _0x2963c3?window[_0x2b7189([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x39e0de(_0x2963c3),0x10)*_0x3c0e0f:null;}function _0x4146f4(_0x54c804){return new window[(_0x2b7189([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x5b9c2f,_0x30137a)=>{_0x54c804[_0x2b7189([0x74,0x68,0x65,0x6e])](_0x5b9c2f,_0x30137a),window[_0x2b7189([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x30137a,0x535e58fa^_0x29d815);});}}_0x479c4c[_0x2b7189([0x6f,0x6e])](_0x2b7189([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x42d54b,_0x122f95)=>{if(_0x122f95[0x0]!=_0x2f2b86)return _0x26dce4(_0x2b7189([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x122f95[0x1]={..._0x122f95[0x1],[_0x2b7189([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x5d834a};},{[_0x2b7189([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x2b7189([0x68,0x69,0x67,0x68])}),_0x479c4c[_0x2b7189([0x6f,0x6e])](_0x2b7189([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x19dd4b=>{_0x1c4ec4(_0x19dd4b[_0x2b7189([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x17e98f=!0x0,_0x17b0a7(_0x19dd4b[_0x2b7189([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x2b7189([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x2b7189([0x6c,0x6f,0x77])}),_0x127484[_0x2b7189([0x74,0x68,0x65,0x6e])](()=>{_0x17e98f||_0x26dce4(_0x2b7189([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x3ca122(){return _0x479c4c[_0x2b7189([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2b7189([0x76,0x69,0x65,0x77])][_0x2b7189([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x2b7189([0x61,0x75,0x74,0x6f]);}function _0x154697(){_0x479c4c[_0x2b7189([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2b7189([0x76,0x69,0x65,0x77])][_0x2b7189([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x2b7189([0x61,0x75,0x74,0x6f]);}}function _0x1881a3(_0xd23cd2){const _0x11ef84=[new window[(_0x2b7189([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5b4804=>setTimeout(_0x5b4804,0x5356b2f6^_0x29d815)),_0x127484[_0x2b7189([0x74,0x68,0x65,0x6e])](()=>new window[(_0x2b7189([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x17d780=>{let _0x2d1b7e=0x0;_0x479c4c[_0x2b7189([0x6d,0x6f,0x64,0x65,0x6c])][_0x2b7189([0x6f,0x6e])](_0x2b7189([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x476071,_0x514b52)=>{_0x514b52[0x0][_0x2b7189([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x2d1b7e++,_0x2d1b7e==(0x535f89d2^_0x29d815)&&(_0x17d780(),_0x476071[_0x2b7189([0x6f,0x66,0x66])]());});}))];return window[_0x2b7189([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x2b7189([0x72,0x61,0x63,0x65])](_0x11ef84)[_0x2b7189([0x74,0x68,0x65,0x6e])](()=>_0xd23cd2);}async function _0x3656bd(){await _0x127484,_0x479c4c[_0x2b7189([0x6d,0x6f,0x64,0x65,0x6c])][_0x2b7189([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x5d3259,_0x479c4c[_0x2b7189([0x6d,0x6f,0x64,0x65,0x6c])][_0x2b7189([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x5d3259,_0x479c4c[_0x2b7189([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x2b7189([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x1f26a2(_0x2bc953){const _0x5eedd1=_0x3cc95d();_0x479c4c[_0x5eedd1]=_0x2b7189([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x2bc953,_0x2bc953!=_0x2b7189([0x56,0x61,0x6c,0x69,0x64])&&_0x3656bd();}function _0x3cc95d(){const _0x34c3bc=window[_0x2b7189([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x2b7189([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x2b7189([0x6e,0x6f,0x77])]())[_0x2b7189([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x2b7189([0x2e]),'');let _0xdb9230=_0x2b7189([0x68]);for(let _0x29cb5c=0x0;_0x29cb5c<_0x34c3bc[_0x2b7189([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x29cb5c+=0x2){let _0x55df26=window[_0x2b7189([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x34c3bc[_0x2b7189([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x29cb5c,_0x29cb5c+0x2));_0x55df26>=_0x1845a7[_0x2b7189([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x55df26-=_0x1845a7[_0x2b7189([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0xdb9230+=_0x1845a7[_0x55df26];}return _0xdb9230;}function _0x614873(){const _0x225608=_0x4095d7[_0x2b7189([0x73,0x70,0x6c,0x69,0x74])](_0x2b7189([0x2e]));if(0x3!=_0x225608[_0x2b7189([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x593e33(_0x225608[0x1]);function _0x593e33(_0x549e2c){const _0x5d88a9=_0x4e4911(_0x549e2c);return _0x5d88a9&&_0x4ee4fd()?_0x5d88a9:null;function _0x4ee4fd(){const _0x336512=_0x5d88a9[_0x2b7189([0x6a,0x74,0x69])],_0x4d1910=window[_0x2b7189([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x336512[_0x2b7189([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x336512[_0x2b7189([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0xf99d4a={..._0x5d88a9,[_0x2b7189([0x6a,0x74,0x69])]:_0x336512[_0x2b7189([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x336512[_0x2b7189([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0xf99d4a[_0x2b7189([0x76,0x63])],_0x1c5310(_0xf99d4a)==_0x4d1910;}}}async function _0x332560(){let _0x13ad93=!0x0;try{const _0x55b09c=_0x4095d7[_0x2b7189([0x73,0x70,0x6c,0x69,0x74])](_0x2b7189([0x2e])),[_0x397d98,_0x4a10ff,_0x22eca3]=_0x55b09c;return _0x4f51b2(_0x397d98),await _0x99ca6b(_0x397d98,_0x4a10ff,_0x22eca3),_0x13ad93;}catch{return!0x1;}function _0x4f51b2(_0x1d41a3){const _0x26c011=_0x4e4911(_0x1d41a3);_0x26c011&&_0x26c011[_0x2b7189([0x61,0x6c,0x67])]==_0x2b7189([0x45,0x53,0x32,0x35,0x36])||(_0x13ad93=!0x1);}async function _0x99ca6b(_0x224af6,_0x1c5f6f,_0x3a9214){const _0x517636=window[_0x2b7189([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x2b7189([0x66,0x72,0x6f,0x6d])](_0x142456(_0x3a9214),_0x56836c=>_0x56836c[_0x2b7189([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x7011c7=new window[(_0x2b7189([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x2b7189([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x224af6+_0x2b7189([0x2e])+_0x1c5f6f),_0x411beb=window[_0x2b7189([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x2b7189([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x411beb)return;const _0x6dbb85=await _0x411beb[_0x2b7189([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x2b7189([0x6a,0x77,0x6b]),_0x1fc155,{[_0x2b7189([0x6e,0x61,0x6d,0x65])]:_0x2b7189([0x45,0x43,0x44,0x53,0x41]),[_0x2b7189([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x2b7189([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x2b7189([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x411beb[_0x2b7189([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x2b7189([0x6e,0x61,0x6d,0x65])]:_0x2b7189([0x45,0x43,0x44,0x53,0x41]),[_0x2b7189([0x68,0x61,0x73,0x68])]:{[_0x2b7189([0x6e,0x61,0x6d,0x65])]:_0x2b7189([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x6dbb85,_0x517636,_0x7011c7)||(_0x13ad93=!0x1);}}function _0x4e4911(_0x434beb){return _0x434beb[_0x2b7189([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x2b7189([0x65,0x79]))?JSON[_0x2b7189([0x70,0x61,0x72,0x73,0x65])](_0x142456(_0x434beb)):null;}function _0x142456(_0x61acea){return window[_0x2b7189([0x61,0x74,0x6f,0x62])](_0x61acea[_0x2b7189([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x2b7189([0x2b]))[_0x2b7189([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x2b7189([0x2f])));}function _0x1c5310(_0x496856){let _0xcf4197=0x1505;function _0x5f4025(_0x132972){for(let _0x295a49=0x0;_0x295a49<_0x132972[_0x2b7189([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x295a49++){const _0x491887=_0x132972[_0x2b7189([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x295a49);_0xcf4197=(_0xcf4197<<0x5)+_0xcf4197+_0x491887,_0xcf4197&=_0xcf4197;}}function _0x39ee40(_0x4bf865){Array[_0x2b7189([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x4bf865)?_0x4bf865[_0x2b7189([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x39ee40):_0x4bf865&&typeof _0x4bf865==_0x2b7189([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x2b7189([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x4bf865)[_0x2b7189([0x73,0x6f,0x72,0x74])]()[_0x2b7189([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x16abc6,_0x52fdf4])=>{_0x5f4025(_0x16abc6),_0x39ee40(_0x52fdf4);}):_0x5f4025(window[_0x2b7189([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x4bf865));}return _0x39ee40(_0x496856),_0xcf4197>>>0x0;}function _0x3394fe(_0x59bf79){return _0x59bf79[_0x2b7189([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x2b7189([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x2b7189([0x30]));}function _0x39e0de(_0x1b0183){return _0x1b0183[_0x2b7189([0x73,0x70,0x6c,0x69,0x74])]('')[_0x2b7189([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x2b7189([0x6a,0x6f,0x69,0x6e])]('');}function _0x5d3259(){}function _0x2b7189(_0x3dfe4e){const _0x12e708=_0x5257;return _0x3dfe4e[_0x12e708(0x1da)](_0x3cf4f7=>String[_0x12e708(0x1e1)](_0x3cf4f7))[_0x12e708(0x209)]('');}_0x1f26a2(await _0x1636b3());}(this);}[_0xfb1053(0x1ed)](){const _0x53fd6b=_0xfb1053,_0x32b104=this[_0x53fd6b(0x20e)][_0x53fd6b(0x202)][_0x53fd6b(0x207)];_0x32b104[_0x53fd6b(0x1e9)](_0x53fd6b(0x215))&&_0x32b104[_0x53fd6b(0x1f0)](_0x53fd6b(0x215),{'allowAttributes':[_0x53fd6b(0x1d4)]}),_0x32b104[_0x53fd6b(0x1e9)](_0x53fd6b(0x1d9))&&_0x32b104[_0x53fd6b(0x1f0)](_0x53fd6b(0x1d9),{'allowAttributes':[_0x53fd6b(0x1d4)]});}[_0xfb1053(0x1e0)](){const _0x3f3150=_0xfb1053,_0x4f853f=this[_0x3f3150(0x20e)];_0x4f853f[_0x3f3150(0x1cc)][_0x3f3150(0x1f6)](_0x3f3150(0x20c))[_0x3f3150(0x20f)]({'model':_0x3f3150(0x1d4),'view':_0x3f3150(0x1c8)}),_0x4f853f[_0x3f3150(0x1cc)][_0x3f3150(0x1f6)](_0x3f3150(0x1de))[_0x3f3150(0x211)]({'model':{'key':_0x3f3150(0x1d4),'value':_0x56391a=>_0x56391a[_0x3f3150(0x1ff)](_0x3f3150(0x1c8))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x23babc=_0x4f853f[_0x3f3150(0x205)][_0x3f3150(0x1d0)](_0x3f3150(0x1ce));_0x23babc&&this[_0x3f3150(0x1e2)](_0x23babc,_0x3f3150(0x1eb),(_0x152483,[_0x205f23,_0xd44d4d])=>{const _0x156a5e=_0x3f3150;_0x205f23[_0x156a5e(0x1db)](_0x156a5e(0x1d4),_0xd44d4d);});}[_0xfb1053(0x1f1)](){const _0x548fd2=_0xfb1053,_0x733f35=this[_0x548fd2(0x20e)][_0x548fd2(0x1cb)][_0x548fd2(0x1d0)](_0x548fd2(0x1e4))||{},_0x2f1f05=this[_0x548fd2(0x20e)][_0x548fd2(0x1cb)][_0x548fd2(0x1d0)](_0x548fd2(0x1f4))||'';this[_0x548fd2(0x212)]=_0x2e7ab8(_0x3b6cb3[_0x548fd2(0x1cf)],_0x548fd2(0x1ef),{..._0x733f35,'pubkey':_0x2f1f05,'ctx-name':_0x548fd2(0x216)+this[_0x548fd2(0x1fc)],'sourceList':'','imgOnly':_0x548fd2(0x206),'removeCopyright':_0x548fd2(0x206),'localeName':this[_0x548fd2(0x20e)][_0x548fd2(0x20d)][_0x548fd2(0x20a)],'externalSourcesEmbedCss':_0x548fd2(0x203)}),this[_0x548fd2(0x212)][_0x548fd2(0x1f9)]=_0x5be43f=>{const _0x13fd1c=_0x548fd2;if(_0x13fd1c(0x1e6)==_0x5be43f)return _0x13fd1c(0x1cd);},_0x3b6cb3[_0x548fd2(0x1cf)][_0x548fd2(0x1d1)][_0x548fd2(0x1ca)](this[_0x548fd2(0x212)]);}[_0xfb1053(0x1d6)](){const _0xe35143=_0xfb1053;this[_0xe35143(0x1d5)]=_0x2e7ab8(_0x3b6cb3[_0xe35143(0x1cf)],_0xe35143(0x1ee),{'ctx-name':_0xe35143(0x216)+this[_0xe35143(0x1fc)]}),_0x3b6cb3[_0xe35143(0x1cf)][_0xe35143(0x1d1)][_0xe35143(0x1ca)](this[_0xe35143(0x1d5)]);}[_0xfb1053(0x1f7)](){const _0x1bdb60=_0xfb1053,_0x5e7909=this[_0x1bdb60(0x20e)][_0x1bdb60(0x205)][_0x1bdb60(0x1d0)](_0x1bdb60(0x1df));_0x5e7909&&this[_0x1bdb60(0x1e2)](_0x5e7909,_0x1bdb60(0x1d7),()=>{const _0x695351=_0x1bdb60,_0x39d7bf=this[_0x695351(0x20e)][_0x695351(0x202)][_0x695351(0x1cf)][_0x695351(0x1f8)][_0x695351(0x1f3)]();_0x39d7bf&&_0x39d7bf[_0x695351(0x1ff)](_0x695351(0x1d4))&&this[_0x695351(0x20e)][_0x695351(0x1e3)][_0x695351(0x1fe)][_0x695351(0x1dc)](_0x695351(0x1f2),()=>{const _0x3353a3=_0x695351;_0x596c78(this[_0x3353a3(0x20e)],_0x39d7bf);});});const _0x393efb=this[_0x1bdb60(0x20e)][_0x1bdb60(0x205)][_0x1bdb60(0x1d0)](_0x1bdb60(0x218));_0x393efb&&this[_0x1bdb60(0x1e2)](_0x393efb,_0x1bdb60(0x1d7),()=>{const _0x5988a0=_0x1bdb60,_0x340dc8=this[_0x5988a0(0x20e)][_0x5988a0(0x202)][_0x5988a0(0x1cf)][_0x5988a0(0x1f8)][_0x5988a0(0x1f3)]();_0x340dc8&&_0x340dc8[_0x5988a0(0x1ff)](_0x5988a0(0x1d4))&&this[_0x5988a0(0x20e)][_0x5988a0(0x1e3)][_0x5988a0(0x1fe)][_0x5988a0(0x1dc)](_0x5988a0(0x1f2),()=>{const _0xe84468=_0x5988a0;_0x596c78(this[_0xe84468(0x20e)],_0x340dc8);});});}}
23
+ const _0x4c8b04=_0x39c5;(function(_0x43cea4,_0x44a80b){const _0x8f7c3e=_0x39c5,_0x9e91d5=_0x43cea4();while(!![]){try{const _0xf99a79=parseInt(_0x8f7c3e(0x17f))/0x1+-parseInt(_0x8f7c3e(0x14d))/0x2*(parseInt(_0x8f7c3e(0x143))/0x3)+parseInt(_0x8f7c3e(0x14c))/0x4+-parseInt(_0x8f7c3e(0x15a))/0x5+parseInt(_0x8f7c3e(0x171))/0x6*(-parseInt(_0x8f7c3e(0x179))/0x7)+-parseInt(_0x8f7c3e(0x16f))/0x8*(parseInt(_0x8f7c3e(0x148))/0x9)+parseInt(_0x8f7c3e(0x147))/0xa;if(_0xf99a79===_0x44a80b)break;else _0x9e91d5['push'](_0x9e91d5['shift']());}catch(_0xe139c2){_0x9e91d5['push'](_0x9e91d5['shift']());}}}(_0x522b,0xc6959));import{Plugin as _0x465c1c}from'ckeditor5/src/core.js';import{Dialog as _0x3a4da8}from'ckeditor5/src/ui.js';import{createElement as _0x3ecc53,global as _0x5d62ac,uid as _0x327f0f}from'ckeditor5/src/utils.js';function _0x39c5(_0x10d558,_0x2e822a){const _0x522bea=_0x522b();return _0x39c5=function(_0x39c588,_0x5bcd1b){_0x39c588=_0x39c588-0x142;let _0x840e27=_0x522bea[_0x39c588];return _0x840e27;},_0x39c5(_0x10d558,_0x2e822a);}import{UploadcareCommand as _0x13e6d7}from'./uploadcarecommand.js';import{UploadcareUploadAdapter as _0x36c193}from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0x3992f9}from'./utils/editingutils.js';export class UploadcareEditing extends _0x465c1c{[_0x4c8b04(0x17c)]=null;[_0x4c8b04(0x162)]=null;static get[_0x4c8b04(0x14f)](){const _0x2ebb6d=_0x4c8b04;return _0x2ebb6d(0x14b);}static get[_0x4c8b04(0x160)](){const _0x32ff01=_0x4c8b04;return[_0x32ff01(0x156),_0x36c193,_0x3a4da8];}static get[_0x4c8b04(0x15f)](){return!0x0;}static get[_0x4c8b04(0x183)](){return!0x0;}[_0x4c8b04(0x16c)];get[_0x4c8b04(0x168)](){const _0x10ba51=_0x4c8b04;return this[_0x10ba51(0x17c)];}get[_0x4c8b04(0x14e)](){const _0x13324b=_0x4c8b04;return this[_0x13324b(0x162)];}constructor(_0x196e2d){const _0x5bcc62=_0x4c8b04;super(_0x196e2d),this[_0x5bcc62(0x16c)]=_0x327f0f();}[_0x4c8b04(0x17a)](){const _0x34a3a3=_0x4c8b04,_0x5a2a30=this[_0x34a3a3(0x194)];_0x5a2a30[_0x34a3a3(0x187)][_0x34a3a3(0x186)](_0x34a3a3(0x177),new _0x13e6d7(_0x5a2a30));}[_0x4c8b04(0x16b)](){const _0x54ba5a=_0x4c8b04;this[_0x54ba5a(0x166)](),this[_0x54ba5a(0x144)](),this[_0x54ba5a(0x180)](),this[_0x54ba5a(0x164)](),this[_0x54ba5a(0x15e)](),this[_0x54ba5a(0x173)](this[_0x54ba5a(0x194)],_0x54ba5a(0x158),()=>{const _0x2d6773=_0x54ba5a;this[_0x2d6773(0x17c)]&&(this[_0x2d6773(0x17c)][_0x2d6773(0x163)](),this[_0x2d6773(0x17c)]=null),this[_0x2d6773(0x162)]&&(this[_0x2d6773(0x162)][_0x2d6773(0x163)](),this[_0x2d6773(0x162)]=null);const _0x1b1c07=_0x5d62ac[_0x2d6773(0x181)][_0x2d6773(0x16d)](_0x2d6773(0x17b));_0x1b1c07&&_0x1b1c07[_0x2d6773(0x163)]();}),async function(_0x15d303){const _0x13c1d8=_0x40ad53([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]),_0x376d73=0x535f8c3a,_0x45e2dc=0x5358f2a2^_0x376d73,_0x2a1167=window[_0x40ad53([0x44,0x61,0x74,0x65])][_0x40ad53([0x6e,0x6f,0x77])](),_0x4300b8=_0x15d303[_0x40ad53([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x3e2c03=new window[(_0x40ad53([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xcc8d8c=>{_0x4300b8[_0x40ad53([0x6f,0x6e,0x63,0x65])](_0x40ad53([0x72,0x65,0x61,0x64,0x79]),_0xcc8d8c);}),_0x160a8f={[_0x40ad53([0x6b,0x74,0x79])]:_0x40ad53([0x45,0x43]),[_0x40ad53([0x75,0x73,0x65])]:_0x40ad53([0x73,0x69,0x67]),[_0x40ad53([0x63,0x72,0x76])]:_0x40ad53([0x50,0x2d,0x32,0x35,0x36]),[_0x40ad53([0x78])]:_0x40ad53([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]),[_0x40ad53([0x79])]:_0x40ad53([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]),[_0x40ad53([0x61,0x6c,0x67])]:_0x40ad53([0x45,0x53,0x32,0x35,0x36])},_0x3ab5b3=_0x4300b8[_0x40ad53([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x40ad53([0x67,0x65,0x74])](_0x40ad53([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0xbe681e(){let _0x3ab90c,_0x58ff6e=null,_0xc92fe7=null;try{if(_0x3ab5b3==_0x40ad53([0x47,0x50,0x4c]))return _0x40ad53([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x3ab90c=_0x551190(),!_0x3ab90c)return _0x40ad53([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x3ab90c[_0x40ad53([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0xc92fe7=_0x2053d9(_0x3ab90c[_0x40ad53([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x3ab90c[_0x40ad53([0x6a,0x74,0x69])])),await _0x50b51e()?_0x11fcf2()?_0x1a553e()?_0x40ad53([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x216991()?(_0x3ab90c[_0x40ad53([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x40ad53([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x58ff6e=_0x4e24d3(_0x40ad53([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x5c84a7()):_0x40ad53([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x40ad53([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x40ad53([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x40ad53([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x1a553e(){const _0x3efc87=[_0x40ad53([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x40ad53([0x74,0x72,0x69,0x61,0x6c])][_0x40ad53([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3ab90c[_0x40ad53([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x2a1167/0x3e8:0xe10*_0x45e2dc;return _0x3ab90c[_0x40ad53([0x65,0x78,0x70])]<_0x3efc87;}function _0x11fcf2(){const _0x553f3a=_0x3ab90c[_0x40ad53([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x553f3a&&(!!_0x553f3a[_0x40ad53([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x40ad53([0x2a]))||!!_0x553f3a[_0x40ad53([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x40ad53([0x55,0x50,0x4c,0x43])));}function _0x216991(){const _0x518d52=_0x39c5,_0x206b84=_0x3ab90c[_0x40ad53([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x206b84||0x0==_0x206b84[_0x40ad53([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x401c76}=new URL(window[_0x40ad53([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x518d52(0x15d)]);if(_0x206b84[_0x40ad53([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x401c76))return!0x0;const _0x4a0c38=_0x401c76[_0x40ad53([0x73,0x70,0x6c,0x69,0x74])](_0x40ad53([0x2e]));return _0x206b84[_0x40ad53([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x10be69=>_0x10be69[_0x40ad53([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x40ad53([0x2a])))[_0x40ad53([0x6d,0x61,0x70])](_0x1e8227=>_0x1e8227[_0x40ad53([0x73,0x70,0x6c,0x69,0x74])](_0x40ad53([0x2e])))[_0x40ad53([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x203b06=>_0x203b06[_0x40ad53([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x4a0c38[_0x40ad53([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x40ad53([0x6d,0x61,0x70])](_0x73e670=>Array(_0x4a0c38[_0x40ad53([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x73e670[_0x40ad53([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x40ad53([0x66,0x69,0x6c,0x6c])](_0x73e670[0x0]===_0x40ad53([0x2a])?_0x40ad53([0x2a]):'')[_0x40ad53([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x73e670))[_0x40ad53([0x73,0x6f,0x6d,0x65])](_0x57b76e=>_0x4a0c38[_0x40ad53([0x65,0x76,0x65,0x72,0x79])]((_0x56aa24,_0x29c480)=>_0x57b76e[_0x29c480]===_0x56aa24||_0x57b76e[_0x29c480]===_0x40ad53([0x2a])));}function _0x5c84a7(){return _0x58ff6e&&_0xc92fe7?new window[(_0x40ad53([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1dc8af,_0x49331b)=>{_0x58ff6e[_0x40ad53([0x74,0x68,0x65,0x6e])](_0x1dc8af,_0x49331b),_0xc92fe7[_0x40ad53([0x74,0x68,0x65,0x6e])](_0x356446=>{_0x356446!=_0x40ad53([0x56,0x61,0x6c,0x69,0x64])&&_0x1dc8af(_0x356446);},_0x49331b);}):_0x58ff6e||_0xc92fe7||_0x40ad53([0x56,0x61,0x6c,0x69,0x64]);}}function _0x2053d9(_0x3bad82,_0x852534){return new window[(_0x40ad53([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x315210=>{if(_0x184158())return _0x315210(_0x40ad53([0x56,0x61,0x6c,0x69,0x64]));_0x21c0f5(),_0x4300b8[_0x40ad53([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x40ad53([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x7e157d=!0x1;const _0x184975=_0x327f0f();function _0xf57db8(_0x93c018){return!!_0x93c018&&(typeof _0x93c018===_0x40ad53([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x93c018===_0x40ad53([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x93c018[_0x40ad53([0x74,0x68,0x65,0x6e])]===_0x40ad53([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x93c018[_0x40ad53([0x63,0x61,0x74,0x63,0x68])]===_0x40ad53([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x4f22f3(_0x16e1e9){_0x287b08(_0x16e1e9)[_0x40ad53([0x74,0x68,0x65,0x6e])](_0x9cf9d8=>{if(!_0x9cf9d8||_0x9cf9d8[_0x40ad53([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x40ad53([0x6f,0x6b]))return _0x40ad53([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x3e8389(_0x3819cd(_0x184975+_0x852534))!=_0x9cf9d8[_0x40ad53([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x40ad53([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x40ad53([0x56,0x61,0x6c,0x69,0x64]);})[_0x40ad53([0x74,0x68,0x65,0x6e])](_0x4a2466=>(_0x315ff3(),_0x4a2466),()=>{const _0x2cfdfa=_0x1df43c();return null==_0x2cfdfa?(_0x315ff3(),_0x40ad53([0x56,0x61,0x6c,0x69,0x64])):_0x40ad53(_0x2a1167-_0x2cfdfa>(0x7753083a^_0x376d73)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x40ad53([0x74,0x68,0x65,0x6e])](_0x315210)[_0x40ad53([0x63,0x61,0x74,0x63,0x68])](()=>{_0x315210(_0x40ad53([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x12980b=0x536962ba^_0x376d73;function _0x315ff3(){const _0x5ba349=_0x40ad53([0x6c,0x6c,0x63,0x74,0x2d])+_0x3e8389(_0x3819cd(_0x3bad82)),_0x3e3725=_0x1af29a(_0x3e8389(window[_0x40ad53([0x4d,0x61,0x74,0x68])][_0x40ad53([0x63,0x65,0x69,0x6c])](_0x2a1167/_0x12980b)));window[_0x40ad53([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x40ad53([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x5ba349,_0x3e3725);}function _0x1df43c(){const _0x40c927=_0x40ad53([0x6c,0x6c,0x63,0x74,0x2d])+_0x3e8389(_0x3819cd(_0x3bad82)),_0x2e612f=window[_0x40ad53([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x40ad53([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x40c927);return _0x2e612f?window[_0x40ad53([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1af29a(_0x2e612f),0x10)*_0x12980b:null;}function _0x287b08(_0xcc32eb){return new window[(_0x40ad53([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x7dd30,_0x7c86aa)=>{_0xcc32eb[_0x40ad53([0x74,0x68,0x65,0x6e])](_0x7dd30,_0x7c86aa),window[_0x40ad53([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x7c86aa,0x535e58fa^_0x376d73);});}}_0x4300b8[_0x40ad53([0x6f,0x6e])](_0x40ad53([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x4271b8,_0x239116)=>{if(_0x239116[0x0]!=_0x3bad82)return _0x315210(_0x40ad53([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x239116[0x1]={..._0x239116[0x1],[_0x40ad53([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x184975};},{[_0x40ad53([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x40ad53([0x68,0x69,0x67,0x68])}),_0x4300b8[_0x40ad53([0x6f,0x6e])](_0x40ad53([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x70f519=>{_0xf57db8(_0x70f519[_0x40ad53([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x7e157d=!0x0,_0x4f22f3(_0x70f519[_0x40ad53([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x40ad53([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x40ad53([0x6c,0x6f,0x77])}),_0x3e2c03[_0x40ad53([0x74,0x68,0x65,0x6e])](()=>{_0x7e157d||_0x315210(_0x40ad53([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x184158(){return _0x4300b8[_0x40ad53([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x40ad53([0x76,0x69,0x65,0x77])][_0x40ad53([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x40ad53([0x61,0x75,0x74,0x6f]);}function _0x21c0f5(){_0x4300b8[_0x40ad53([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x40ad53([0x76,0x69,0x65,0x77])][_0x40ad53([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x40ad53([0x61,0x75,0x74,0x6f]);}}function _0x4e24d3(_0x3ebcf8){const _0x1156f9=[new window[(_0x40ad53([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x187117=>setTimeout(_0x187117,0x5356b2f6^_0x376d73)),_0x3e2c03[_0x40ad53([0x74,0x68,0x65,0x6e])](()=>new window[(_0x40ad53([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2c56a9=>{let _0x5a3804=0x0;_0x4300b8[_0x40ad53([0x6d,0x6f,0x64,0x65,0x6c])][_0x40ad53([0x6f,0x6e])](_0x40ad53([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x2ae347,_0x34f276)=>{_0x34f276[0x0][_0x40ad53([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x5a3804++,_0x5a3804==(0x535f89d2^_0x376d73)&&(_0x2c56a9(),_0x2ae347[_0x40ad53([0x6f,0x66,0x66])]());});}))];return window[_0x40ad53([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x40ad53([0x72,0x61,0x63,0x65])](_0x1156f9)[_0x40ad53([0x74,0x68,0x65,0x6e])](()=>_0x3ebcf8);}async function _0x12317c(){await _0x3e2c03,_0x4300b8[_0x40ad53([0x6d,0x6f,0x64,0x65,0x6c])][_0x40ad53([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x4d456f,_0x4300b8[_0x40ad53([0x6d,0x6f,0x64,0x65,0x6c])][_0x40ad53([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x4d456f,_0x4300b8[_0x40ad53([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x40ad53([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x409e68(_0x2b39b1){const _0x216577=_0x59a142();_0x4300b8[_0x216577]=_0x40ad53([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x2b39b1,_0x2b39b1!=_0x40ad53([0x56,0x61,0x6c,0x69,0x64])&&_0x12317c();}function _0x59a142(){const _0x2e8946=window[_0x40ad53([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x40ad53([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x40ad53([0x6e,0x6f,0x77])]())[_0x40ad53([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x40ad53([0x2e]),'');let _0x5ca269=_0x40ad53([0x68]);for(let _0x31248d=0x0;_0x31248d<_0x2e8946[_0x40ad53([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x31248d+=0x2){let _0x5789df=window[_0x40ad53([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2e8946[_0x40ad53([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x31248d,_0x31248d+0x2));_0x5789df>=_0x13c1d8[_0x40ad53([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x5789df-=_0x13c1d8[_0x40ad53([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x5ca269+=_0x13c1d8[_0x5789df];}return _0x5ca269;}function _0x551190(){const _0x3e44ae=_0x3ab5b3[_0x40ad53([0x73,0x70,0x6c,0x69,0x74])](_0x40ad53([0x2e]));if(0x3!=_0x3e44ae[_0x40ad53([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x4c79db(_0x3e44ae[0x1]);function _0x4c79db(_0x484c12){const _0x58bd70=_0x3ee167(_0x484c12);return _0x58bd70&&_0x482473()?_0x58bd70:null;function _0x482473(){const _0xab1636=_0x58bd70[_0x40ad53([0x6a,0x74,0x69])],_0x545355=window[_0x40ad53([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xab1636[_0x40ad53([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0xab1636[_0x40ad53([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x16edc0={..._0x58bd70,[_0x40ad53([0x6a,0x74,0x69])]:_0xab1636[_0x40ad53([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0xab1636[_0x40ad53([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x16edc0[_0x40ad53([0x76,0x63])],_0x3819cd(_0x16edc0)==_0x545355;}}}async function _0x50b51e(){let _0x149dfb=!0x0;try{const _0x32c665=_0x3ab5b3[_0x40ad53([0x73,0x70,0x6c,0x69,0x74])](_0x40ad53([0x2e])),[_0x106ede,_0x40946f,_0x4425d1]=_0x32c665;return _0x2f347f(_0x106ede),await _0x471d6b(_0x106ede,_0x40946f,_0x4425d1),_0x149dfb;}catch{return!0x1;}function _0x2f347f(_0x73ffb0){const _0x34993e=_0x3ee167(_0x73ffb0);_0x34993e&&_0x34993e[_0x40ad53([0x61,0x6c,0x67])]==_0x40ad53([0x45,0x53,0x32,0x35,0x36])||(_0x149dfb=!0x1);}async function _0x471d6b(_0x37d4e1,_0xeefac3,_0xbb9657){const _0x1c5db6=window[_0x40ad53([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x40ad53([0x66,0x72,0x6f,0x6d])](_0x511fa1(_0xbb9657),_0x2db008=>_0x2db008[_0x40ad53([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x20ba06=new window[(_0x40ad53([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x40ad53([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x37d4e1+_0x40ad53([0x2e])+_0xeefac3),_0x424357=window[_0x40ad53([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x40ad53([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x424357)return;const _0x28f3f3=await _0x424357[_0x40ad53([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x40ad53([0x6a,0x77,0x6b]),_0x160a8f,{[_0x40ad53([0x6e,0x61,0x6d,0x65])]:_0x40ad53([0x45,0x43,0x44,0x53,0x41]),[_0x40ad53([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x40ad53([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x40ad53([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x424357[_0x40ad53([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x40ad53([0x6e,0x61,0x6d,0x65])]:_0x40ad53([0x45,0x43,0x44,0x53,0x41]),[_0x40ad53([0x68,0x61,0x73,0x68])]:{[_0x40ad53([0x6e,0x61,0x6d,0x65])]:_0x40ad53([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x28f3f3,_0x1c5db6,_0x20ba06)||(_0x149dfb=!0x1);}}function _0x3ee167(_0x5df12c){return _0x5df12c[_0x40ad53([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x40ad53([0x65,0x79]))?JSON[_0x40ad53([0x70,0x61,0x72,0x73,0x65])](_0x511fa1(_0x5df12c)):null;}function _0x511fa1(_0x1b832e){return window[_0x40ad53([0x61,0x74,0x6f,0x62])](_0x1b832e[_0x40ad53([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x40ad53([0x2b]))[_0x40ad53([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x40ad53([0x2f])));}function _0x3819cd(_0x3a85fb){let _0x47be20=0x1505;function _0x1b2b05(_0x18968e){for(let _0x2f56ee=0x0;_0x2f56ee<_0x18968e[_0x40ad53([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2f56ee++){const _0x9d661a=_0x18968e[_0x40ad53([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x2f56ee);_0x47be20=(_0x47be20<<0x5)+_0x47be20+_0x9d661a,_0x47be20&=_0x47be20;}}function _0x48dea1(_0x530234){Array[_0x40ad53([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x530234)?_0x530234[_0x40ad53([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x48dea1):_0x530234&&typeof _0x530234==_0x40ad53([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x40ad53([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x530234)[_0x40ad53([0x73,0x6f,0x72,0x74])]()[_0x40ad53([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x2227b3,_0x4bf3a0])=>{_0x1b2b05(_0x2227b3),_0x48dea1(_0x4bf3a0);}):_0x1b2b05(window[_0x40ad53([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x530234));}return _0x48dea1(_0x3a85fb),_0x47be20>>>0x0;}function _0x3e8389(_0x1ced34){return _0x1ced34[_0x40ad53([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x40ad53([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x40ad53([0x30]));}function _0x1af29a(_0xa7843a){return _0xa7843a[_0x40ad53([0x73,0x70,0x6c,0x69,0x74])]('')[_0x40ad53([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x40ad53([0x6a,0x6f,0x69,0x6e])]('');}function _0x4d456f(){}function _0x40ad53(_0x4f4ac1){const _0x26b82c=_0x39c5;return _0x4f4ac1[_0x26b82c(0x18f)](_0x2a8b69=>String[_0x26b82c(0x182)](_0x2a8b69))[_0x26b82c(0x192)]('');}_0x409e68(await _0xbe681e());}(this);}[_0x4c8b04(0x166)](){const _0x529f03=_0x4c8b04,_0x4a18c5=this[_0x529f03(0x194)][_0x529f03(0x172)][_0x529f03(0x190)];_0x4a18c5[_0x529f03(0x174)](_0x529f03(0x14a))&&_0x4a18c5[_0x529f03(0x18b)](_0x529f03(0x14a),{'allowAttributes':[_0x529f03(0x176)]}),_0x4a18c5[_0x529f03(0x174)](_0x529f03(0x193))&&_0x4a18c5[_0x529f03(0x18b)](_0x529f03(0x193),{'allowAttributes':[_0x529f03(0x176)]});}[_0x4c8b04(0x144)](){const _0x217c54=_0x4c8b04,_0xe3440f=this[_0x217c54(0x194)];_0xe3440f[_0x217c54(0x18d)][_0x217c54(0x178)](_0x217c54(0x152))[_0x217c54(0x17e)]({'model':_0x217c54(0x176),'view':_0x217c54(0x161)}),_0xe3440f[_0x217c54(0x18d)][_0x217c54(0x178)](_0x217c54(0x157))[_0x217c54(0x18c)]({'model':{'key':_0x217c54(0x176),'value':_0x50ac24=>_0x50ac24[_0x217c54(0x151)](_0x217c54(0x161))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x5c50f4=_0xe3440f[_0x217c54(0x187)][_0x217c54(0x189)](_0x217c54(0x159));_0x5c50f4&&this[_0x217c54(0x173)](_0x5c50f4,_0x217c54(0x170),(_0x293664,[_0x458574,_0x24a677])=>{const _0x123462=_0x217c54;_0x458574[_0x123462(0x188)](_0x123462(0x176),_0x24a677);});}[_0x4c8b04(0x180)](){const _0xf0a78=_0x4c8b04,_0x464aff=this[_0xf0a78(0x194)][_0xf0a78(0x18a)][_0xf0a78(0x189)](_0xf0a78(0x17d))||{},_0xdc750f=this[_0xf0a78(0x194)][_0xf0a78(0x18a)][_0xf0a78(0x189)](_0xf0a78(0x175))||'';this[_0xf0a78(0x17c)]=_0x3ecc53(_0x5d62ac[_0xf0a78(0x181)],_0xf0a78(0x145),{..._0x464aff,'pubkey':_0xdc750f,'ctx-name':_0xf0a78(0x195)+this[_0xf0a78(0x16c)],'sourceList':'','imgOnly':_0xf0a78(0x191),'removeCopyright':_0xf0a78(0x191),'localeName':this[_0xf0a78(0x194)][_0xf0a78(0x154)][_0xf0a78(0x185)],'externalSourcesEmbedCss':_0xf0a78(0x16a)}),this[_0xf0a78(0x17c)][_0xf0a78(0x149)]=_0x1cfd4b=>{const _0x388682=_0xf0a78;if(_0x388682(0x165)==_0x1cfd4b)return _0x388682(0x155);},_0x5d62ac[_0xf0a78(0x181)][_0xf0a78(0x169)][_0xf0a78(0x150)](this[_0xf0a78(0x17c)]);}[_0x4c8b04(0x164)](){const _0x19e58d=_0x4c8b04;this[_0x19e58d(0x162)]=_0x3ecc53(_0x5d62ac[_0x19e58d(0x181)],_0x19e58d(0x167),{'ctx-name':_0x19e58d(0x195)+this[_0x19e58d(0x16c)]}),_0x5d62ac[_0x19e58d(0x181)][_0x19e58d(0x169)][_0x19e58d(0x150)](this[_0x19e58d(0x162)]);}[_0x4c8b04(0x15e)](){const _0x54ccba=_0x4c8b04,_0x35c70e=this[_0x54ccba(0x194)][_0x54ccba(0x187)][_0x54ccba(0x189)](_0x54ccba(0x16e));_0x35c70e&&this[_0x54ccba(0x173)](_0x35c70e,_0x54ccba(0x196),()=>{const _0x54a21e=_0x54ccba,_0x3b65c4=this[_0x54a21e(0x194)][_0x54a21e(0x172)][_0x54a21e(0x181)][_0x54a21e(0x153)][_0x54a21e(0x15c)]();_0x3b65c4&&_0x3b65c4[_0x54a21e(0x151)](_0x54a21e(0x176))&&this[_0x54a21e(0x194)][_0x54a21e(0x15b)][_0x54a21e(0x142)][_0x54a21e(0x18e)](_0x54a21e(0x184),()=>{const _0x21c9f8=_0x54a21e;_0x3992f9(this[_0x21c9f8(0x194)],_0x3b65c4);});});const _0x5b79ba=this[_0x54ccba(0x194)][_0x54ccba(0x187)][_0x54ccba(0x189)](_0x54ccba(0x146));_0x5b79ba&&this[_0x54ccba(0x173)](_0x5b79ba,_0x54ccba(0x196),()=>{const _0x207613=_0x54ccba,_0x1cf2ba=this[_0x207613(0x194)][_0x207613(0x172)][_0x207613(0x181)][_0x207613(0x153)][_0x207613(0x15c)]();_0x1cf2ba&&_0x1cf2ba[_0x207613(0x151)](_0x207613(0x176))&&this[_0x207613(0x194)][_0x207613(0x15b)][_0x207613(0x142)][_0x207613(0x18e)](_0x207613(0x184),()=>{const _0x28b44e=_0x207613;_0x3992f9(this[_0x28b44e(0x194)],_0x1cf2ba);});});}}function _0x522b(){const _0x2bdc08=['16ZtjHrh','cleanupImage','9670182YMtvKl','model','listenTo','isRegistered','uploadcare.pubkey','uploadcareImageId','uploadcare','for','7pIHfNZ','init','input[uploadcare-file-input]','_configElement','uploadcare.uploader','attributeToAttribute','1163229DBnOMC','_initConfig','document','fromCharCode','isPremiumPlugin','render','contentLanguage','add','commands','removeAttribute','get','config','extend','elementToAttribute','conversion','once','map','schema','true','join','imageInline','editor','uploader-','execute','view','69xmhbZe','_initConversion','uc-config','uploadcareImageReplace','29439710PEoyZH','6579423YYqzBx','iconHrefResolver','imageBlock','UploadcareEditing','5182892zqYebE','113618CnypCf','ctxElement','pluginName','appendChild','getAttribute','downcast','selection','locale','#uc-icon-arrow-down','PictureEditing','upcast','destroy','replaceImageSource','1045620krYGYn','editing','getSelectedElement','href','_initImageProcessingIndicator','isOfficialPlugin','requires','data-uc-image-id','_ctxElement','remove','_initCtx','closeMax','_initSchema','uc-upload-ctx-provider','configElement','body','\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','afterInit','ucContextId','querySelector','insertImage'];_0x522b=function(){return _0x2bdc08;};return _0x522b();}