@ckeditor/ckeditor5-uploadcare 0.0.0-nightly-next-20250301.0 → 0.0.0-nightly-next-20250302.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 _0x168606,Command as _0x170dd0}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x32322b,IconGooglePhotos as _0x59f69b,IconGoogleDrive as _0x329403,IconFacebook as _0x464daf,IconDropbox as _0x16d74f,IconUploadcareLink as _0x1bf89e,IconUploadcareImageUpload as _0x53099c,IconError as et,IconUploadcareImageEdit as _0x305815}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0xd9efc2,MenuBarMenuListItemButtonView as _0xabd872,View as _0x43b741,FocusCycler as _0x14e83a,Dialog as _0x25b248,DialogViewPosition as _0x56c2e2,SpinnerView as _0x3045c9,IconView as at,Notification as _0x10f7b0}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x5a0705,DomEmitterMixin as _0x5769f8,global as _0x303956,getAncestors as _0x5da303,ObservableMixin as _0x1f0495,createElement as _0x268602,uid as _0x33fd6b}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x24b326}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x218ec8,info as _0x1cf2d1}from'@uploadcare/upload-client';import*as _0x485067 from'@uploadcare/file-uploader';var o=function(_0x33e21c){return _0x33e21c['Local']='local',_0x33e21c['URL']='url',_0x33e21c['Dropbox']='dropbox',_0x33e21c['GDrive']='gdrive',_0x33e21c['Facebook']='facebook',_0x33e21c['GPhotos']='gphotos',_0x33e21c['OneDrive']='onedrive',_0x33e21c;}({});function _(_0x246785,_0x3117f8,_0x3bdda8){const t=_0x246785['t'],_0x2c81b0=_0x246785['t'];switch(_0x3117f8){case o['Local']:return{'text':_0x2c81b0('Insert'===_0x3bdda8?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x2c81b0('From\x20computer')};case o['URL']:return{'text':'Insert'===_0x3bdda8?_0x2c81b0('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x2c81b0('Via\x20URL')};case o['Dropbox']:return{'text':t('Insert'===_0x3bdda8?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case o['Facebook']:return{'text':t('Insert'===_0x3bdda8?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case o['GDrive']:return{'text':t('Insert'===_0x3bdda8?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case o['GPhotos']:return{'text':t('Insert'===_0x3bdda8?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case o['OneDrive']:return{'text':t('Insert'===_0x3bdda8?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x3117f8;}}class e extends _0x168606{['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 _0x54831c=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x6c2f48;for(const _0x35c738 in _0x54831c){const _0x3a4166=_0x35c738,_0xcd1860=_0x54831c[_0x3a4166];if('uploadcareLicenseKeyValid'==_0xcd1860||'uploadcareLicenseKeyInvalid'==_0xcd1860||'uploadcareLicenseKeyExpired'==_0xcd1860||'uploadcareLicenseKeyDomainLimit'==_0xcd1860||'uploadcareLicenseKeyNotAllowed'==_0xcd1860||'uploadcareLicenseKeyEvaluationLimit'==_0xcd1860||'uploadcareLicenseKeyTrialLimit'==_0xcd1860||'uploadcareLicenseKeyUsageLimit'==_0xcd1860){delete _0x54831c[_0x3a4166],_0x6c2f48=_0xcd1860,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x6c2f48&&_0x54831c['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x6c2f48&&_0x54831c['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x6c2f48&&_0x54831c['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x6c2f48&&_0x54831c['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x6c2f48&&_0x54831c['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyTrialLimit'==_0x6c2f48&&_0x54831c['_showLicenseError']('trialLimit'),'uploadcareLicenseKeyUsageLimit'==_0x6c2f48&&_0x54831c['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x562095}=this,_0x141679=_0x562095['commands']['get']('uploadcare');if(!_0x141679)return;const _0x430641=this['_normalizeConfigSourceList'](_0x562095['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x3fe693,_0x4f6c7e)=>{const _0x468f67=this['_getIntegrationKey'](_0x4f6c7e['type']);return _0x3fe693[_0x468f67]||(_0x3fe693[_0x468f67]=[]),_0x3fe693[_0x468f67]['push'](_0x4f6c7e),_0x3fe693;},{});_0x562095['plugins']['has']('ImageInsertUI')&&_0x562095['commands']['get']('uploadcare')&&Object['entries'](_0x430641)['forEach'](([_0x2bf890,_0x313444])=>{_0x562095['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x2bf890,'observable':()=>_0x141679,'buttonViewCreator':()=>this['_createToolbarButton'](_0x313444),'formViewCreator':()=>this['_createDropdownButtons'](_0x313444),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x313444),'override':'assetManager'!==_0x2bf890});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x140a13){const {locale:_0x47aa2e}=this['editor'];return _0x140a13['map'](_0x19c0a1=>{const _0x2b9d68=_(_0x47aa2e,_0x19c0a1,'Insert');switch(_0x19c0a1){case o['Local']:return{'icon':_0x53099c,'type':o['Local'],..._0x2b9d68};case o['URL']:return{'icon':_0x1bf89e,'type':o['URL'],..._0x2b9d68};case o['Dropbox']:return{'icon':_0x16d74f,'type':o['Dropbox'],..._0x2b9d68};case o['Facebook']:return{'icon':_0x464daf,'type':o['Facebook'],..._0x2b9d68};case o['GDrive']:return{'icon':_0x329403,'type':o['GDrive'],..._0x2b9d68};case o['GPhotos']:return{'icon':_0x59f69b,'type':o['GPhotos'],..._0x2b9d68};case o['OneDrive']:return{'icon':_0x32322b,'type':o['OneDrive'],..._0x2b9d68};}});}['_getIntegrationKey'](_0x1e9502){switch(_0x1e9502){case o['Local']:return'upload';case o['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x8ebc8c,_0x51da0c){const _0x1494f1=this['editor'],_0x4d8337=new _0x8ebc8c(_0x1494f1['locale']),_0x19beed=_0x1494f1['commands']['get']('uploadcare');return _0x4d8337['bind']('isEnabled')['to'](_0x19beed),_0x4d8337['on']('execute',()=>{_0x19beed['execute'](_0x51da0c);}),_0x4d8337;}['_createToolbarButton'](_0x5c3b70){const {locale:_0x2a7d35}=this['editor'],_0x26aef2=this['editor']['plugins']['get']('ImageInsertUI'),_0x2c2e08=_0x5c3b70[0x0],_0x42a7fc=this['_createButton'](_0xd9efc2,_0x2c2e08['type']);return _0x42a7fc['icon']=_0x2c2e08['icon'],_0x42a7fc['bind']('label')['to'](_0x26aef2,'isImageSelected',_0x7c87c7=>_(_0x2a7d35,_0x2c2e08['type'],_0x7c87c7?'Replace':'Insert')['text']),_0x42a7fc['tooltip']=!0x0,_0x42a7fc;}['_createDropdownButtons'](_0x4c0f48){const {locale:_0x555331}=this['editor'],_0x369ff6=this['editor']['plugins']['get']('ImageInsertUI');return _0x4c0f48['map'](_0x393494=>{const _0x72e7b6=this['_createButton'](_0xd9efc2,_0x393494['type']);return _0x72e7b6['withText']=!0x0,_0x72e7b6['icon']=_0x393494['icon'],_0x72e7b6['bind']('label')['to'](_0x369ff6,'isImageSelected',_0x2d3b9c=>_(_0x555331,_0x393494['type'],_0x2d3b9c?'Replace':'Insert')['text']),_0x72e7b6;});}['_createMenuBarButtons'](_0x295efe){return _0x295efe['map'](_0x520f36=>{const _0x295323=this['_createButton'](_0xabd872,_0x520f36['type']);return _0x295323['icon']=_0x520f36['icon'],_0x295323['label']=_0x520f36['shortText'],_0x295323;});}}class q extends _0x43b741{['focusTracker'];['focusCycler'];constructor(_0x1932e6){super(_0x1932e6),this['focusTracker']=new _0x5a0705(),this['focusCycler']=new _0x14e83a({'focusables':this['createCollection'](),'focusTracker':this['focusTracker']});}['getFocusableElement'](){return{'tag':'div','attributes':{'aria-hidden':'true','tabindex':'0'},'on':{'focus':this['bindTemplate']['to'](()=>{this['focusCycler']['fire']('forwardCycle');})}};}}class S extends q{constructor(_0x236834){super(_0x236834),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all-excluded','ck-uploadcare-form'],'tabindex':'-1'},'children':[{'tag':'uc-file-uploader-inline','attributes':{'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'uploader'}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}}function E(_0x303240,_0x12015e){const _0x31e9d6=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x379cc9=>_0x379cc9<=_0x12015e)['map'](_0x2454d1=>_0x303240['replace'](/\/$/,'')+'/-/resize/'+_0x2454d1+'x/\x20'+_0x2454d1+'w');return{'imageFallbackUrl':_0x303240,'imageSources':[{'srcset':_0x31e9d6['join'](',\x20'),'sizes':'(max-width:\x20'+_0x12015e+'px)\x20100vw,\x20'+_0x12015e+'px','type':'image/webp'}]};}function A(_0x3a98c8,_0x4e9b6d,_0x28d898){const _0x21e9bb=_0x3a98c8['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x21e9bb?parseInt(_0x21e9bb[0x1],0xa):_0x4e9b6d,'height':_0x21e9bb?parseInt(_0x21e9bb[0x2],0xa):_0x28d898};}function m(_0x499285,_0x4ff463){const _0x4e908e=Object['create'](_0x5769f8),_0xb4550c=_0x499285['plugins']['get']('ImageUtils'),_0x401543=_0x499285['editing']['mapper']['toViewElement'](_0x4ff463),_0x6f5dfe=_0xb4550c['findViewImgElement'](_0x401543),_0x5dbbf4=_0x499285['editing']['view']['domConverter']['viewToDom'](_0x6f5dfe),_0x4bf913=_0x4ff463['getAttribute']('width'),_0x2555fa=_0x4ff463['getAttribute']('height'),_0x29fa8b='image-processing';_0x499285['editing']['view']['change'](_0x2a9263=>{_0x2a9263['addClass'](_0x29fa8b,_0x401543),_0x2a9263['setStyle']('aspect-ratio',_0x4bf913+'/'+_0x2555fa,_0x6f5dfe);}),_0x4e908e['listenTo'](_0x5dbbf4,'load',()=>{_0x4e908e['stopListening'](_0x5dbbf4,'load'),_0x499285['editing']['view']['change'](_0xf504ab=>{_0xf504ab['removeClass'](_0x29fa8b,_0x401543),_0xf504ab['removeStyle']('aspect-ratio',_0x6f5dfe);});});}function V(_0x2feb2a){if(Array['isArray'](_0x2feb2a)){const _0x1af7fe=_0x2feb2a['map'](V);return _0x25bb57=>_0x1af7fe['some'](_0x9923b9=>_0x9923b9(_0x25bb57));}if('origin'==_0x2feb2a){const _0x2c7a8f=_0x303956['window']['location']['origin'];return _0x549c6f=>new URL(_0x549c6f,_0x303956['document']['baseURI'])['origin']==_0x2c7a8f;}return'function'==typeof _0x2feb2a?_0x2feb2a:_0x2feb2a instanceof RegExp?_0x35e1e6=>!(!_0x35e1e6['match'](_0x2feb2a)&&!_0x35e1e6['replace'](/^https?:\/\//,'')['match'](_0x2feb2a)):()=>!0x1;}function F(_0x3c3c48,_0x203a31){return _0x5da303(_0x3c3c48['target'])['includes'](_0x203a31);}class l extends/* #__PURE__ -- @preserve */
24
- _0x1f0495(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x3fe5ce,_0x11c4ae,_0x5f456d){super(),this['_editor']=_0x3fe5ce,this['_editing']=_0x11c4ae,this['_dialog']=_0x3fe5ce['plugins']['get'](_0x25b248),this['_api']=_0x11c4ae['ctxElement']['getAPI'](),this['_type']=_0x5f456d,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:_0x15c72a,model:_0x5e8bfa}=this['_editor'],_0x5643ee=_0x5e8bfa['document']['selection']['getSelectedElement'](),_0x437c05=_0x5643ee&&(_0x5643ee['is']('element','imageBlock')||_0x5643ee['is']('element','imageInline'));this['_formView']=new S(_0x15c72a),this['_dialog']['show']({'id':'uploadCare','icon':_0x53099c,'title':_(_0x15c72a,this['_type'],_0x437c05?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x56c2e2['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x16c63e=>!F(_0x16c63e,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x3390a0}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x3e8ddb=>{const _0x5828b0=_0x3390a0['length'];for(const _0x2f3b54 of _0x3390a0){const _0x5e9ce7=_0x2f3b54===_0x3390a0[_0x5828b0-0x1],{cdnUrl:_0x1af38d,fileInfo:_0x44819c}=_0x2f3b54;if(!_0x1af38d||!_0x44819c)continue;const {width:_0x4c7df9,height:_0x54db51}=_0x44819c['imageInfo'],_0x223262=A(_0x1af38d,_0x4c7df9,_0x54db51),_0x59e05d=E(_0x1af38d,_0x223262['width']),_0x569ea9={'id':_0x44819c['uuid'],'type':'image','attributes':{'imageDimension':_0x223262,..._0x59e05d}};this['_insertAsset'](_0x569ea9,_0x5e9ce7,_0x3e8ddb);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0xbaa7fc=>{'idle'===_0xbaa7fc['detail']['status']&&!_0xbaa7fc['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===o['Local']?this['_api']['setCurrentActivity'](o['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x19f12e,_0x41284c,_0x25200e){const _0x1e0b55=this['_editor']['model']['document']['selection'],_0x167b07=_0x1e0b55['getSelectedElement'](),_0x11a9ee=!(!_0x167b07||!_0x167b07['is']('element','imageInline'));_0x25200e['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x19f12e,_0x11a9ee),_0x41284c||_0x25200e['setSelection'](_0x1e0b55['getLastPosition']());}['_insertImage'](_0x60d46e,_0x60e856){const _0x27563c=this['_editor'],{imageDimension:_0x1be70d,imageFallbackUrl:_0x344f94,imageSources:_0x44c31f}=_0x60d46e['attributes'];_0x27563c['execute']('insertImage',{'imageType':_0x60e856?'imageInline':null,'source':{'uploadcareImageId':_0x60d46e['id'],'src':_0x344f94,'sources':_0x44c31f,..._0x1be70d}});}}class n extends _0x170dd0{['_editing'];['_controller']=null;static get['requires'](){return[_0x25b248,i];}constructor(_0x3a01e4){super(_0x3a01e4),this['_editing']=_0x3a01e4['plugins']['get'](i);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x1d22c9){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new l(this['editor'],this['_editing'],_0x1d22c9);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class C{static['upload']({file:_0x4bc4e0,publicKey:_0x63fcda,signal:_0x2e315a,onProgress:_0x436740}){return _0x218ec8(_0x4bc4e0,{'publicKey':_0x63fcda,'store':'auto','signal':_0x2e315a,'onProgress':_0x436740});}static['getInfo'](_0x19acfd,_0x9ab321){return _0x1cf2d1(_0x19acfd,_0x9ab321);}}class p extends _0x168606{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x24b326,i];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x418e14=this['editor'];if(!!!_0x418e14['config']['get']('uploadcare'))return;_0x418e14['plugins']['get'](_0x24b326)['createUploadAdapter']=_0x7075b5=>new x(_0x7075b5,_0x418e14),_0x418e14['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x47c7f1,{imageElement:_0x147193,data:_0x45ffac})=>{_0x418e14['model']['change'](_0x1b21d5=>{_0x1b21d5['setAttribute']('uploadcareImageId',_0x45ffac['uploadcareImageId'],_0x147193);});});}}class x{['loader'];['editor'];['controller'];constructor(_0x174ac9,_0xb46c97){this['loader']=_0x174ac9,this['editor']=_0xb46c97,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0xad3484=this['editor']['config']['get']('uploadcare.pubkey'),_0x552d9b=await this['loader']['file'];return C['upload']({'file':_0x552d9b,'publicKey':_0xad3484,'signal':this['controller']['signal'],'onProgress':_0x1ff63f=>{_0x1ff63f&&_0x1ff63f['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x1ff63f['value']);}})['then'](async _0x470b30=>{const {imageFallbackUrl:_0x178ebc,imageSources:_0x52f165}=E(_0x470b30['cdnUrl'],_0x470b30['imageInfo']['width']);return{'uploadcareImageId':_0x470b30['uuid'],'default':_0x178ebc,'sources':_0x52f165};})['catch'](()=>{const _0x51638d=t('Cannot\x20upload\x20file:')+('\x20'+_0x552d9b['name']+'.');return Promise['reject'](_0x51638d);});}['abort'](){this['controller']['abort']();}}class i extends _0x168606{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',p,_0x25b248];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}['init'](){const _0x3ca4da=this['editor'];_0x3ca4da['commands']['add']('uploadcare',new n(_0x3ca4da));}['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 _0xa48aab=_0x303956['document']['querySelector']('input[uploadcare-file-input]');_0xa48aab&&_0xa48aab['remove']();}),async function(_0x3cb1cf){const _0x484cdf=_0x1ca809([0x49,0x4f,0x71,0x6a,0x39,0x4c,0x64,0x6c,0x68,0x46,0x77,0x4e,0x31,0x45,0x7a,0x74,0x48,0x32,0x58,0x44,0x35,0x34,0x4a,0x76,0x54,0x6b,0x57,0x69,0x66,0x5a,0x43,0x61,0x4b,0x73,0x59,0x51,0x38,0x72,0x70,0x50,0x65,0x41,0x62,0x56,0x36,0x42,0x63,0x37,0x6e,0x47,0x67,0x4d,0x6f,0x33,0x79,0x75,0x78,0x6d,0x52,0x55,0x53,0x30]),_0x509c0d=0x52401cf0,_0x2155e3=0x52477c10^_0x509c0d,_0x31314b=window[_0x1ca809([0x44,0x61,0x74,0x65])][_0x1ca809([0x6e,0x6f,0x77])](),_0x538309=_0x3cb1cf[_0x1ca809([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x569657=new window[(_0x1ca809([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x55c1a9=>{_0x538309[_0x1ca809([0x6f,0x6e,0x63,0x65])](_0x1ca809([0x72,0x65,0x61,0x64,0x79]),_0x55c1a9);}),_0x494f90={[_0x1ca809([0x6b,0x74,0x79])]:_0x1ca809([0x45,0x43]),[_0x1ca809([0x75,0x73,0x65])]:_0x1ca809([0x73,0x69,0x67]),[_0x1ca809([0x63,0x72,0x76])]:_0x1ca809([0x50,0x2d,0x32,0x35,0x36]),[_0x1ca809([0x78])]:_0x1ca809([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]),[_0x1ca809([0x79])]:_0x1ca809([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]),[_0x1ca809([0x61,0x6c,0x67])]:_0x1ca809([0x45,0x53,0x32,0x35,0x36])},_0x4d025e=_0x538309[_0x1ca809([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x1ca809([0x67,0x65,0x74])](_0x1ca809([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x36869d(){let _0x572839,_0x8d2e18=null,_0x1f7368=null;try{if(_0x4d025e==_0x1ca809([0x47,0x50,0x4c]))return _0x1ca809([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x572839=_0x5196c5(),!_0x572839)return _0x1ca809([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x572839[_0x1ca809([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x1f7368=_0x1e33d9(_0x572839[_0x1ca809([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x572839[_0x1ca809([0x6a,0x74,0x69])])),await _0x336aa4()?_0x10dfe7()?_0x330796()?_0x1ca809([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x48494e()?(_0x572839[_0x1ca809([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x1ca809([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x8d2e18=_0x393323(_0x1ca809([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x572839[_0x1ca809([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x1ca809([0x74,0x72,0x69,0x61,0x6c])&&(_0x8d2e18=_0x393323(_0x1ca809([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x220cc2()):_0x1ca809([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x1ca809([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x1ca809([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x299a1b){return _0x1ca809([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x330796(){const _0x5080dc=[_0x1ca809([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x1ca809([0x74,0x72,0x69,0x61,0x6c])][_0x1ca809([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x572839[_0x1ca809([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x31314b/0x3e8:0xe10*_0x2155e3;return _0x572839[_0x1ca809([0x65,0x78,0x70])]<_0x5080dc;}function _0x10dfe7(){const _0x68d3cc=_0x572839[_0x1ca809([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x68d3cc&&(!!_0x68d3cc[_0x1ca809([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1ca809([0x2a]))||!!_0x68d3cc[_0x1ca809([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1ca809([0x55,0x50,0x4c,0x43])));}function _0x48494e(){const _0xfe0923=_0x572839[_0x1ca809([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0xfe0923||0x0==_0xfe0923[_0x1ca809([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0xf55ab0}=new URL(window[_0x1ca809([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0xfe0923[_0x1ca809([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xf55ab0))return!0x0;const _0x1cbbeb=_0xf55ab0[_0x1ca809([0x73,0x70,0x6c,0x69,0x74])](_0x1ca809([0x2e]));return _0xfe0923[_0x1ca809([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x5bdd67=>_0x5bdd67[_0x1ca809([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1ca809([0x2a])))[_0x1ca809([0x6d,0x61,0x70])](_0x32a18c=>_0x32a18c[_0x1ca809([0x73,0x70,0x6c,0x69,0x74])](_0x1ca809([0x2e])))[_0x1ca809([0x73,0x6f,0x6d,0x65])](_0x398c38=>_0x1cbbeb[_0x1ca809([0x65,0x76,0x65,0x72,0x79])]((_0x3e7c04,_0x4dbce0)=>_0x398c38[_0x4dbce0]===_0x3e7c04||_0x398c38[_0x4dbce0]===_0x1ca809([0x2a])));}function _0x220cc2(){return _0x8d2e18&&_0x1f7368?new window[(_0x1ca809([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x11a199,_0x27e59f)=>{_0x8d2e18[_0x1ca809([0x74,0x68,0x65,0x6e])](_0x11a199,_0x27e59f),_0x1f7368[_0x1ca809([0x74,0x68,0x65,0x6e])](_0x1c8480=>{_0x1c8480!=_0x1ca809([0x56,0x61,0x6c,0x69,0x64])&&_0x11a199(_0x1c8480);},_0x27e59f);}):_0x8d2e18||_0x1f7368||_0x1ca809([0x56,0x61,0x6c,0x69,0x64]);}}function _0x1e33d9(_0x1cf964,_0xdede54){return new window[(_0x1ca809([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4b7a81=>{if(_0x2cbfa8())return _0x4b7a81(_0x1ca809([0x56,0x61,0x6c,0x69,0x64]));_0x269e44(),_0x538309[_0x1ca809([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x1ca809([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x3923bc=!0x1;const _0x456579=_0x33fd6b();function _0x2cb0d7(_0x400ec7){return!!_0x400ec7&&(typeof _0x400ec7===_0x1ca809([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x400ec7===_0x1ca809([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x400ec7[_0x1ca809([0x74,0x68,0x65,0x6e])]===_0x1ca809([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x400ec7[_0x1ca809([0x63,0x61,0x74,0x63,0x68])]===_0x1ca809([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x4de009(_0x1b68f7){_0x3715d5(_0x1b68f7)[_0x1ca809([0x74,0x68,0x65,0x6e])](_0x5497ab=>{if(!_0x5497ab||_0x5497ab[_0x1ca809([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x1ca809([0x6f,0x6b]))return _0x1ca809([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x24f2a3(_0x4ac04f(_0x456579+_0xdede54))!=_0x5497ab[_0x1ca809([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x1ca809([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x1ca809([0x56,0x61,0x6c,0x69,0x64]);})[_0x1ca809([0x74,0x68,0x65,0x6e])](_0x2b03e8=>(_0x4f4139(),_0x2b03e8),()=>{const _0x16e5ef=_0x451fca();return null==_0x16e5ef?(_0x4f4139(),_0x1ca809([0x56,0x61,0x6c,0x69,0x64])):_0x1ca809(_0x31314b-_0x16e5ef>(0x764c98f0^_0x509c0d)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x1ca809([0x74,0x68,0x65,0x6e])](_0x4b7a81)[_0x1ca809([0x63,0x61,0x74,0x63,0x68])](()=>{_0x4b7a81(_0x1ca809([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x3ae7f1=0x5276f270^_0x509c0d;function _0x4f4139(){const _0x8e4b37=_0x1ca809([0x6c,0x6c,0x63,0x74,0x2d])+_0x24f2a3(_0x4ac04f(_0x1cf964)),_0x4473c8=_0x5f2794(_0x24f2a3(window[_0x1ca809([0x4d,0x61,0x74,0x68])][_0x1ca809([0x63,0x65,0x69,0x6c])](_0x31314b/_0x3ae7f1)));window[_0x1ca809([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x1ca809([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x8e4b37,_0x4473c8);}function _0x451fca(){const _0x4df614=_0x1ca809([0x6c,0x6c,0x63,0x74,0x2d])+_0x24f2a3(_0x4ac04f(_0x1cf964)),_0x3d695f=window[_0x1ca809([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x1ca809([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4df614);return _0x3d695f?window[_0x1ca809([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5f2794(_0x3d695f),0x10)*_0x3ae7f1:null;}function _0x3715d5(_0x1b8010){return new window[(_0x1ca809([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x417519,_0x323ac3)=>{_0x1b8010[_0x1ca809([0x74,0x68,0x65,0x6e])](_0x417519,_0x323ac3),window[_0x1ca809([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x323ac3,0x5241c830^_0x509c0d);});}}_0x538309[_0x1ca809([0x6f,0x6e])](_0x1ca809([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x48f1df,_0x4a6942)=>{if(_0x4a6942[0x0]!=_0x1cf964)return _0x4b7a81(_0x1ca809([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x4a6942[0x1]={..._0x4a6942[0x1],[_0x1ca809([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x456579};},{[_0x1ca809([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x1ca809([0x68,0x69,0x67,0x68])}),_0x538309[_0x1ca809([0x6f,0x6e])](_0x1ca809([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x227032=>{_0x2cb0d7(_0x227032[_0x1ca809([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x3923bc=!0x0,_0x4de009(_0x227032[_0x1ca809([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x1ca809([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x1ca809([0x6c,0x6f,0x77])}),_0x569657[_0x1ca809([0x74,0x68,0x65,0x6e])](()=>{_0x3923bc||_0x4b7a81(_0x1ca809([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x2cbfa8(){return _0x538309[_0x1ca809([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1ca809([0x76,0x69,0x65,0x77])][_0x1ca809([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x1ca809([0x61,0x75,0x74,0x6f]);}function _0x269e44(){_0x538309[_0x1ca809([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1ca809([0x76,0x69,0x65,0x77])][_0x1ca809([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x1ca809([0x61,0x75,0x74,0x6f]);}}function _0x393323(_0x32dd57){const _0x152b85=[new window[(_0x1ca809([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5295ab=>setTimeout(_0x5295ab,0x5249223c^_0x509c0d)),_0x569657[_0x1ca809([0x74,0x68,0x65,0x6e])](()=>new window[(_0x1ca809([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2a29ca=>{let _0x5b7d28=0x0;_0x538309[_0x1ca809([0x6d,0x6f,0x64,0x65,0x6c])][_0x1ca809([0x6f,0x6e])](_0x1ca809([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x1ecdfb,_0x55f059)=>{_0x55f059[0x0][_0x1ca809([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x5b7d28++,_0x5b7d28==(0x52401d08^_0x509c0d)&&(_0x2a29ca(),_0x1ecdfb[_0x1ca809([0x6f,0x66,0x66])]());});}))];return window[_0x1ca809([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x1ca809([0x72,0x61,0x63,0x65])](_0x152b85)[_0x1ca809([0x74,0x68,0x65,0x6e])](()=>_0x32dd57);}async function _0x23217b(){await _0x569657,_0x538309[_0x1ca809([0x6d,0x6f,0x64,0x65,0x6c])][_0x1ca809([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0xcac02c,_0x538309[_0x1ca809([0x6d,0x6f,0x64,0x65,0x6c])][_0x1ca809([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0xcac02c,_0x538309[_0x1ca809([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x1ca809([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x2a6805(_0x524432){const _0x41916d=_0x13eabf();_0x538309[_0x41916d]=_0x1ca809([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x524432,_0x524432!=_0x1ca809([0x56,0x61,0x6c,0x69,0x64])&&_0x23217b();}function _0x13eabf(){const _0x3a240b=window[_0x1ca809([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x1ca809([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x1ca809([0x6e,0x6f,0x77])]())[_0x1ca809([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x1ca809([0x2e]),'');let _0x41327b=_0x1ca809([0x49]);for(let _0xe90ae0=0x0;_0xe90ae0<_0x3a240b[_0x1ca809([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0xe90ae0+=0x2){let _0x4d541b=window[_0x1ca809([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3a240b[_0x1ca809([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0xe90ae0,_0xe90ae0+0x2));_0x4d541b>=_0x484cdf[_0x1ca809([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x4d541b-=_0x484cdf[_0x1ca809([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x41327b+=_0x484cdf[_0x4d541b];}return _0x41327b;}function _0x5196c5(){const _0x2e2e59=_0x4d025e[_0x1ca809([0x73,0x70,0x6c,0x69,0x74])](_0x1ca809([0x2e]));if(0x3!=_0x2e2e59[_0x1ca809([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x141282(_0x2e2e59[0x1]);function _0x141282(_0x18445f){const _0xd9a48=_0x546011(_0x18445f);return _0xd9a48&&_0x7cc5b()?_0xd9a48:null;function _0x7cc5b(){const _0x5133c8=_0xd9a48[_0x1ca809([0x6a,0x74,0x69])],_0x50aadb=window[_0x1ca809([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5133c8[_0x1ca809([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x5133c8[_0x1ca809([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x4964e3={..._0xd9a48,[_0x1ca809([0x6a,0x74,0x69])]:_0x5133c8[_0x1ca809([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x5133c8[_0x1ca809([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x4964e3[_0x1ca809([0x76,0x63])],_0x4ac04f(_0x4964e3)==_0x50aadb;}}}async function _0x336aa4(){let _0x383717=!0x0;try{const _0x146c14=_0x4d025e[_0x1ca809([0x73,0x70,0x6c,0x69,0x74])](_0x1ca809([0x2e])),[_0x1e0838,_0x4ce79a,_0x12e85b]=_0x146c14;return _0x2d1f62(_0x1e0838),await _0x3e3602(_0x1e0838,_0x4ce79a,_0x12e85b),_0x383717;}catch(_0x1275e7){return!0x1;}function _0x2d1f62(_0x3e573f){const _0x1e5d7e=_0x546011(_0x3e573f);_0x1e5d7e&&_0x1e5d7e[_0x1ca809([0x61,0x6c,0x67])]==_0x1ca809([0x45,0x53,0x32,0x35,0x36])||(_0x383717=!0x1);}async function _0x3e3602(_0x26ec1a,_0x5992d1,_0x275314){const _0x4d89b6=window[_0x1ca809([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x1ca809([0x66,0x72,0x6f,0x6d])](_0x42db32(_0x275314),_0x11f174=>_0x11f174[_0x1ca809([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x2fb81c=new window[(_0x1ca809([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x1ca809([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x26ec1a+_0x1ca809([0x2e])+_0x5992d1),_0x2e2072=window[_0x1ca809([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x1ca809([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x2e2072)return;const _0x3d752f=await _0x2e2072[_0x1ca809([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x1ca809([0x6a,0x77,0x6b]),_0x494f90,{[_0x1ca809([0x6e,0x61,0x6d,0x65])]:_0x1ca809([0x45,0x43,0x44,0x53,0x41]),[_0x1ca809([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x1ca809([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x1ca809([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x2e2072[_0x1ca809([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x1ca809([0x6e,0x61,0x6d,0x65])]:_0x1ca809([0x45,0x43,0x44,0x53,0x41]),[_0x1ca809([0x68,0x61,0x73,0x68])]:{[_0x1ca809([0x6e,0x61,0x6d,0x65])]:_0x1ca809([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x3d752f,_0x4d89b6,_0x2fb81c)||(_0x383717=!0x1);}}function _0x546011(_0x3e7ba8){return _0x3e7ba8[_0x1ca809([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x1ca809([0x65,0x79]))?JSON[_0x1ca809([0x70,0x61,0x72,0x73,0x65])](_0x42db32(_0x3e7ba8)):null;}function _0x42db32(_0x42e8fc){return window[_0x1ca809([0x61,0x74,0x6f,0x62])](_0x42e8fc[_0x1ca809([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x1ca809([0x2b]))[_0x1ca809([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x1ca809([0x2f])));}function _0x4ac04f(_0x15b46d){let _0x1bbdf8=0x1505;function _0x3f7c57(_0x34e661){for(let _0x5e22ce=0x0;_0x5e22ce<_0x34e661[_0x1ca809([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x5e22ce++){const _0x5b4f1e=_0x34e661[_0x1ca809([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x5e22ce);_0x1bbdf8=(_0x1bbdf8<<0x5)+_0x1bbdf8+_0x5b4f1e,_0x1bbdf8&=_0x1bbdf8;}}function _0x1f9ab6(_0x213629){Array[_0x1ca809([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x213629)?_0x213629[_0x1ca809([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x1f9ab6):_0x213629&&typeof _0x213629==_0x1ca809([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x1ca809([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x213629)[_0x1ca809([0x73,0x6f,0x72,0x74])]()[_0x1ca809([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x27708f,_0x5521dd])=>{_0x3f7c57(_0x27708f),_0x1f9ab6(_0x5521dd);}):_0x3f7c57(window[_0x1ca809([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x213629));}return _0x1f9ab6(_0x15b46d),_0x1bbdf8>>>0x0;}function _0x24f2a3(_0xdda2a6){return _0xdda2a6[_0x1ca809([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x1ca809([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x1ca809([0x30]));}function _0x5f2794(_0xe7f9f0){return _0xe7f9f0[_0x1ca809([0x73,0x70,0x6c,0x69,0x74])]('')[_0x1ca809([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x1ca809([0x6a,0x6f,0x69,0x6e])]('');}function _0xcac02c(){}function _0x1ca809(_0xf4de71){return _0xf4de71['map'](_0x59b2b0=>String['fromCharCode'](_0x59b2b0))['join']('');}_0x2a6805(await _0x36869d());}(this);}['_initSchema'](){const _0x45f4a6=this['editor']['model']['schema'];_0x45f4a6['isRegistered']('imageBlock')&&_0x45f4a6['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x45f4a6['isRegistered']('imageInline')&&_0x45f4a6['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x1c3fdb=this['editor'];_0x1c3fdb['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x1c3fdb['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x494701=>_0x494701['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x57f080=_0x1c3fdb['commands']['get']('replaceImageSource');_0x57f080&&this['listenTo'](_0x57f080,'cleanupImage',(_0x36efee,[_0x540ce0,_0x46c7d8])=>{_0x540ce0['removeAttribute']('uploadcareImageId',_0x46c7d8);});}['_initConfig'](){const _0x2fea41=this['editor']['config']['get']('uploadcare.uploader')||{},_0x114382=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x268602(_0x303956['document'],'uc-config',{..._0x2fea41,'pubkey':_0x114382,'ctx-name':'uploader','sourceList':'','imgOnly':'true','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage'],'externalSourcesEmbedCss':'\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup\x20{\x20padding:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-menu\x20{\x20gap:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-footer\x20{\x20padding-top:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__separator\x20{\x20margin:\x200;\x20}\x0a\x09\x09\x09'}),this['_configElement']['iconHrefResolver']=_0x5dd80f=>{if('closeMax'==_0x5dd80f)return'#uc-icon-arrow-down';},_0x303956['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x268602(_0x303956['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader'}),_0x303956['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0xa35a0b=this['editor']['commands']['get']('insertImage');_0xa35a0b&&this['listenTo'](_0xa35a0b,'execute',()=>{const _0x21f6a9=this['editor']['model']['document']['selection']['getSelectedElement']();_0x21f6a9&&_0x21f6a9['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{m(this['editor'],_0x21f6a9);});});const _0x444b1d=this['editor']['commands']['get']('uploadcareImageReplace');_0x444b1d&&this['listenTo'](_0x444b1d,'execute',()=>{const _0x550703=this['editor']['model']['document']['selection']['getSelectedElement']();_0x550703&&_0x550703['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{m(this['editor'],_0x550703);});});}}class u extends _0x168606{static get['requires'](){return[i,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x1369b8){super(_0x1369b8),_0x1369b8['config']['define']('uploadcare.uploader.sourceList',[o['Local'],o['URL']]),_0x485067['defineComponents'](_0x485067);}}class ta extends _0x43b741{constructor(_0x4ffd5a){super(_0x4ffd5a);const t=_0x4ffd5a['t'],_0x92ca43=this['bindTemplate'],_0x541499=new _0x3045c9();_0x541499['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':[_0x541499,{'text':_0x92ca43['to']('imageUploadProgress',_0x1e31f2=>t('Loading\x20image...')+'\x20('+(_0x1e31f2||0x0)+'%)')}]},{'tag':'div','attributes':{'class':['ck-uploadcare-form__skeleton']},'children':[{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'}]},{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'}]}]}]});}}class rt extends _0x43b741{constructor(_0x3744c9){super(_0x3744c9);const t=_0x3744c9['t'];this['set']('errorType',null);const _0x726e5b=new _0xd9efc2(_0x3744c9);_0x726e5b['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x726e5b['withText']=!0x0,_0x726e5b['class']='ck-button-action',_0x726e5b['on']('execute',()=>{this['fire']('retry');}),_0x726e5b['bind']('isVisible')['to'](this,'errorType',_0xbb9bc4=>'NotFound'!==_0xbb9bc4);const _0x2785ba=new at();_0x2785ba['content']=et,_0x2785ba['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x305356=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':[_0x2785ba,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x305356['to']('errorType',_0x31b17b=>t('NotFound'!==_0x31b17b?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x726e5b]},{'tag':'div','attributes':{'class':['ck-uploadcare-form__skeleton']},'children':[{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'}]},{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'}]}]}]});}}class tt extends _0x43b741{constructor(_0x1cd0a5,_0x2d2608){super(_0x1cd0a5);const _0x29fa5f=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x2d2608,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x29fa5f['to']('imageSrc')}});}}class Z extends q{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x3fe6df,_0x57e385,_0x329ea3){super(_0x3fe6df),this['_items']=this['createCollection'](),this['_loadingView']=new ta(_0x3fe6df),this['_errorView']=new rt(_0x3fe6df),this['_editingView']=new tt(_0x3fe6df,_0x329ea3),this['_focusableView']=new _0x43b741(_0x3fe6df),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x57e385),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'],_0x2f20b3=>{this['_addUploadcareImageEditorListeners'](_0x2f20b3);});}),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'](_0x14266b,_0x428e63){const _0x4a7ffc='uc-cloud-image-editor',_0x1e1b13=_0x14266b['querySelector'](_0x4a7ffc);if(_0x1e1b13)return _0x428e63(_0x1e1b13);const _0x4ceec5=new MutationObserver(_0x10036b=>{const _0x6ff9d6=_0x10036b['filter'](_0x5712c8=>_0x5712c8['target']===_0x14266b&&_0x5712c8['addedNodes']['length']>0x0&&_0x5712c8['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x4a7ffc);_0x6ff9d6['length']&&(_0x4ceec5['disconnect'](),_0x428e63(_0x6ff9d6[0x0]['addedNodes'][0x0]));});_0x4ceec5['observe'](_0x14266b,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x29d4b7){_0x29d4b7['addEventListener']('apply',_0x45d1ec=>{this['fire']('apply',{'imageSrc':_0x45d1ec['detail']['cdnUrl']});}),_0x29d4b7['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class z extends/* #__PURE__ -- @preserve */
25
- _0x1f0495(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x3617df,_0x4b2a0c,_0x6cdd63){super(),this['_editor']=_0x3617df,this['_dialog']=_0x4b2a0c,this['_imageElement']=_0x6cdd63,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 _0x5d483e=this['_imageElement'],_0x1446eb=_0x5d483e['getAttribute']('uploadcareImageId'),_0x6379d1=_0x5d483e['getAttribute']('src');if(_0x1446eb)await this['_loadImageInfo'](_0x1446eb,_0x6379d1);else{if(this['_imageCache']['has'](_0x6379d1)){const _0x310617=this['_imageCache']['get'](_0x6379d1);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x310617['url'],this['imageDimension']=_0x310617['dimension'],this['imageId']=_0x310617['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x29df74}=this['_editor'],t=_0x29df74['t'],_0x1e3c8f=new Z(_0x29df74,this['imageStatus'],this['_attributes']);_0x1e3c8f['bind']('status')['to'](this,'imageStatus'),_0x1e3c8f['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x1e3c8f['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x1e3c8f['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x1e3c8f,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x305815,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x1e3c8f,'position':_0x56c2e2['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x1e3c8f['focus']();},'onHide':()=>{_0x1e3c8f['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x4d75fe=>!F(_0x4d75fe,_0x1e3c8f['element'])}});}['_loadImageInfo'](_0x4d7063,_0x3fcf1c){return C['getInfo'](_0x4d7063,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey')})['then'](_0xf3b167=>{const {width:_0x56ca67,height:_0x2c1f74}=_0xf3b167['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x3fcf1c,this['imageDimension']={'width':_0x56ca67,'height':_0x2c1f74},this['imageId']=_0x4d7063;})['catch'](_0x5a4bbb=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x5a4bbb['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x390811,_0x247398){return this['_getImageAsFile'](_0x390811)['then'](_0x3b47bf=>C['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'signal':_0x247398['signal'],'file':_0x3b47bf,'onProgress':_0x5b43dd=>{_0x5b43dd&&_0x5b43dd['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x5b43dd['value']));}}))['then'](_0x4c14bf=>{const {width:_0x31de7c,height:_0x50415f}=_0x4c14bf['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x4c14bf['cdnUrl'],this['imageDimension']={'width':_0x31de7c,'height':_0x50415f},this['imageId']=_0x4c14bf['uuid'],this['imageUploadProgress']=null;const _0x26ad37=_0x390811['getAttribute']('src');this['_imageCache']['set'](_0x26ad37,{'id':_0x4c14bf['uuid'],'url':_0x4c14bf['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x2e7dee=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x2e7dee['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x23c61b,_0x13154a){_0x23c61b['on']('apply',(_0x16384a,_0x4ad2fb)=>{this['_replaceImage'](_0x13154a,_0x4ad2fb['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x23c61b['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x23c61b['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0xd56eb2,_0x43d3f6,_0x261d24){const _0x18e704=this['_editor'],{width:_0x18a043,height:_0x589a68}=A(_0x43d3f6,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x1683b4,imageSources:_0xca0a94}=E(_0x43d3f6,_0x18a043);_0x18e704['model']['change'](_0x3d6425=>{if('$graveyard'===_0xd56eb2['root']['rootName']){_0x18e704['execute']('insertImage',{'imageType':_0xd56eb2['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0xd56eb2['getAttributes']()),'uploadcareImageId':_0x261d24,'src':_0x1683b4,'sources':_0xca0a94,'width':_0x18a043,'height':_0x589a68}});const _0x16ea8f=_0xd56eb2['getChildren']();_0xd56eb2=_0x18e704['model']['document']['selection']['getSelectedElement']();for(const _0x4cd776 of _0x16ea8f)_0x3d6425['append'](_0x3d6425['cloneElement'](_0x4cd776),_0xd56eb2);}else _0x3d6425['setSelection'](_0xd56eb2,'on'),_0x18e704['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0xd56eb2['getAttributes']()),'uploadcareImageId':_0x261d24,'src':_0x1683b4,'sources':_0xca0a94,'width':_0x18a043,'height':_0x589a68},_0xd56eb2);_0x3d6425['setSelection'](_0xd56eb2,'on');});}async['_getImageAsFile'](_0x264939){const _0x3fab36=_0x303956['window'],_0x55305a=_0x303956['document']['location']['href'],_0x5a7463=new _0x3fab36['URL'](_0x264939['getAttribute']('src'),_0x55305a);if('data:'===_0x5a7463['protocol']){const _0x296ddb=_0x5a7463['href']['split'](','),_0x5d4b0a=_0x296ddb[0x0]['match'](/:(.*?);/)[0x1],_0xde3fa4=_0x5d4b0a['split']('/')[0x1],_0x324641=_0x3fab36['atob'](_0x296ddb[_0x296ddb['length']-0x1]);let _0x1aa3f6=_0x324641['length'];const _0x1c1fc6=new _0x3fab36['Uint8Array'](_0x1aa3f6);for(;_0x1aa3f6--;)_0x1c1fc6[_0x1aa3f6]=_0x324641['charCodeAt'](_0x1aa3f6);return new _0x3fab36['File']([_0x1c1fc6],'image.'+_0xde3fa4,{'type':_0x5d4b0a});}const _0x461a5e=_0x5a7463['href']['split']('/'),_0x293181=_0x461a5e[_0x461a5e['length']-0x1],_0x2e09be=_0x293181['split']('.')[0x1];return _0x3fab36['fetch'](_0x5a7463['href'])['then'](_0x737a79=>_0x737a79['clone']()['blob']())['then'](_0x1eb8ad=>new _0x3fab36['File']([_0x1eb8ad],_0x293181,{'type':'image/'+_0x2e09be}));}}class J extends _0x170dd0{['imageEditController'];static get['requires'](){return[_0x25b248];}['_isEditable'];constructor(_0x161ade){super(_0x161ade),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x463663){const _0x2d0ea4=V(_0x463663);return _0x1c0d63=>!(!_0x1c0d63||!_0x1c0d63['is']('element','imageBlock')&&!_0x1c0d63['is']('element','imageInline'))&&(!!_0x1c0d63['hasAttribute']('uploadcareImageId')||!!_0x1c0d63['hasAttribute']('src')&&_0x2d0ea4(_0x1c0d63['getAttribute']('src')));}(_0x161ade['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x515c66=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x515c66);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x1764b8=this['editor']['model']['document']['selection']['getSelectedElement']();_0x1764b8&&(_0x1764b8['is']('element','imageBlock')||_0x1764b8['is']('element','imageInline'))&&(this['imageEditController']=new z(this['editor'],this['editor']['plugins']['get'](_0x25b248),_0x1764b8),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class O extends _0x170dd0{['refresh'](){const _0x5cc606=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x5cc606&&(_0x5cc606['is']('element','imageBlock')||_0x5cc606['is']('element','imageInline')));}['execute'](_0x4eaf41){const _0x48e0c8=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x3f7a26=>{_0x3f7a26['setAttributes'](_0x4eaf41,_0x48e0c8),_0x3f7a26['removeAttribute']('srcset',_0x48e0c8),_0x3f7a26['removeAttribute']('sizes',_0x48e0c8);});}}class g extends _0x168606{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[i,_0x10f7b0,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x5de711}=this;_0x5de711['commands']['add']('uploadcareImageEdit',new J(_0x5de711)),_0x5de711['commands']['add']('uploadcareImageReplace',new O(_0x5de711));}}class j extends _0x168606{['_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 _0x1817aa=this['editor'];_0x1817aa['ui']['componentFactory']['add']('uploadcareImageEdit',_0x44c295=>{const _0x2f92ec=_0x1817aa['commands']['get']('uploadcareImageEdit'),_0x1cd404=new _0xd9efc2(_0x44c295),t=_0x44c295['t'];return _0x1cd404['set']({'icon':_0x305815,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x1cd404['bind']('isEnabled')['to'](_0x2f92ec),_0x1cd404['bind']('isOn')['to'](_0x2f92ec,'isActive'),this['listenTo'](_0x1cd404,'execute',()=>{_0x1817aa['execute']('uploadcareImageEdit'),_0x1817aa['editing']['view']['focus']();}),_0x1cd404;}),this['_initConfig']();}['_initConfig'](){const _0x4f1e80=_0x268602(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x4f1e80),this['listenTo'](this['editor'],'destroy',()=>{_0x4f1e80['remove']();});}}class P extends _0x168606{static get['pluginName'](){return'UploadcareImageEdit';}static get['requires'](){return[g,j];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{u as Uploadcare,i as UploadcareEditing,P as UploadcareImageEdit,g as UploadcareImageEditEditing,j as UploadcareImageEditUI,e as UploadcareUI};
23
+ import{Plugin as _0x3c7ecf,Command as _0x5b2234}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x3103de,IconGooglePhotos as _0x2c72ca,IconGoogleDrive as _0x578fd9,IconFacebook as _0x1a58d6,IconDropbox as _0x2ebf2c,IconUploadcareLink as _0x41c878,IconUploadcareImageUpload as _0x55275f,IconError as et,IconUploadcareImageEdit as _0x236b3d}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x1d8670,MenuBarMenuListItemButtonView as _0x9b6d1c,View as _0x212dc7,FocusCycler as _0x7d79e0,Dialog as _0x1dce13,DialogViewPosition as _0x23ce91,SpinnerView as _0x5e8cef,IconView as at,Notification as _0xfc82fc}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x45e134,DomEmitterMixin as _0xcb1c3,global as _0x42591f,getAncestors as _0x450b21,ObservableMixin as _0x499df2,createElement as _0x5ef6b0,uid as _0x5df048}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x3a259a}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x23a7b5,info as _0x33541a}from'@uploadcare/upload-client';import*as _0x2957a5 from'@uploadcare/file-uploader';var o=function(_0x5118e8){return _0x5118e8['Local']='local',_0x5118e8['URL']='url',_0x5118e8['Dropbox']='dropbox',_0x5118e8['GDrive']='gdrive',_0x5118e8['Facebook']='facebook',_0x5118e8['GPhotos']='gphotos',_0x5118e8['OneDrive']='onedrive',_0x5118e8;}({});function _(_0x4b6843,_0x417bd5,_0x280ab6){const t=_0x4b6843['t'],_0x6e9b87=_0x4b6843['t'];switch(_0x417bd5){case o['Local']:return{'text':_0x6e9b87('Insert'===_0x280ab6?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x6e9b87('From\x20computer')};case o['URL']:return{'text':'Insert'===_0x280ab6?_0x6e9b87('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x6e9b87('Via\x20URL')};case o['Dropbox']:return{'text':t('Insert'===_0x280ab6?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case o['Facebook']:return{'text':t('Insert'===_0x280ab6?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case o['GDrive']:return{'text':t('Insert'===_0x280ab6?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case o['GPhotos']:return{'text':t('Insert'===_0x280ab6?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case o['OneDrive']:return{'text':t('Insert'===_0x280ab6?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x417bd5;}}class e extends _0x3c7ecf{['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 _0x172b17=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x491379;for(const _0x4c8d9f in _0x172b17){const _0x4cd880=_0x4c8d9f,_0x56618f=_0x172b17[_0x4cd880];if('uploadcareLicenseKeyValid'==_0x56618f||'uploadcareLicenseKeyInvalid'==_0x56618f||'uploadcareLicenseKeyExpired'==_0x56618f||'uploadcareLicenseKeyDomainLimit'==_0x56618f||'uploadcareLicenseKeyNotAllowed'==_0x56618f||'uploadcareLicenseKeyEvaluationLimit'==_0x56618f||'uploadcareLicenseKeyTrialLimit'==_0x56618f||'uploadcareLicenseKeyUsageLimit'==_0x56618f){delete _0x172b17[_0x4cd880],_0x491379=_0x56618f,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x491379&&_0x172b17['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x491379&&_0x172b17['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x491379&&_0x172b17['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x491379&&_0x172b17['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x491379&&_0x172b17['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyTrialLimit'==_0x491379&&_0x172b17['_showLicenseError']('trialLimit'),'uploadcareLicenseKeyUsageLimit'==_0x491379&&_0x172b17['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x4950c1}=this,_0x153f55=_0x4950c1['commands']['get']('uploadcare');if(!_0x153f55)return;const _0x3aee97=this['_normalizeConfigSourceList'](_0x4950c1['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x11e0dd,_0x515fbf)=>{const _0x28f7c3=this['_getIntegrationKey'](_0x515fbf['type']);return _0x11e0dd[_0x28f7c3]||(_0x11e0dd[_0x28f7c3]=[]),_0x11e0dd[_0x28f7c3]['push'](_0x515fbf),_0x11e0dd;},{});_0x4950c1['plugins']['has']('ImageInsertUI')&&_0x4950c1['commands']['get']('uploadcare')&&Object['entries'](_0x3aee97)['forEach'](([_0x516b3b,_0x4aee91])=>{_0x4950c1['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x516b3b,'observable':()=>_0x153f55,'buttonViewCreator':()=>this['_createToolbarButton'](_0x4aee91),'formViewCreator':()=>this['_createDropdownButtons'](_0x4aee91),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x4aee91),'override':'assetManager'!==_0x516b3b});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x49a0e9){const {locale:_0x218a4b}=this['editor'];return _0x49a0e9['map'](_0x18889b=>{const _0x1bb10b=_(_0x218a4b,_0x18889b,'Insert');switch(_0x18889b){case o['Local']:return{'icon':_0x55275f,'type':o['Local'],..._0x1bb10b};case o['URL']:return{'icon':_0x41c878,'type':o['URL'],..._0x1bb10b};case o['Dropbox']:return{'icon':_0x2ebf2c,'type':o['Dropbox'],..._0x1bb10b};case o['Facebook']:return{'icon':_0x1a58d6,'type':o['Facebook'],..._0x1bb10b};case o['GDrive']:return{'icon':_0x578fd9,'type':o['GDrive'],..._0x1bb10b};case o['GPhotos']:return{'icon':_0x2c72ca,'type':o['GPhotos'],..._0x1bb10b};case o['OneDrive']:return{'icon':_0x3103de,'type':o['OneDrive'],..._0x1bb10b};}});}['_getIntegrationKey'](_0x94b39b){switch(_0x94b39b){case o['Local']:return'upload';case o['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x4c689a,_0x151394){const _0x589ec2=this['editor'],_0x13ed91=new _0x4c689a(_0x589ec2['locale']),_0x10ef5f=_0x589ec2['commands']['get']('uploadcare');return _0x13ed91['bind']('isEnabled')['to'](_0x10ef5f),_0x13ed91['on']('execute',()=>{_0x10ef5f['execute'](_0x151394);}),_0x13ed91;}['_createToolbarButton'](_0x424016){const {locale:_0x1d3493}=this['editor'],_0x11047b=this['editor']['plugins']['get']('ImageInsertUI'),_0xc59529=_0x424016[0x0],_0x337283=this['_createButton'](_0x1d8670,_0xc59529['type']);return _0x337283['icon']=_0xc59529['icon'],_0x337283['bind']('label')['to'](_0x11047b,'isImageSelected',_0xbae7b6=>_(_0x1d3493,_0xc59529['type'],_0xbae7b6?'Replace':'Insert')['text']),_0x337283['tooltip']=!0x0,_0x337283;}['_createDropdownButtons'](_0x4f3b3b){const {locale:_0x106fd4}=this['editor'],_0x4c882c=this['editor']['plugins']['get']('ImageInsertUI');return _0x4f3b3b['map'](_0xa849db=>{const _0x2587ad=this['_createButton'](_0x1d8670,_0xa849db['type']);return _0x2587ad['withText']=!0x0,_0x2587ad['icon']=_0xa849db['icon'],_0x2587ad['bind']('label')['to'](_0x4c882c,'isImageSelected',_0x355854=>_(_0x106fd4,_0xa849db['type'],_0x355854?'Replace':'Insert')['text']),_0x2587ad;});}['_createMenuBarButtons'](_0x18c8eb){return _0x18c8eb['map'](_0x37d6d7=>{const _0x2d9bd9=this['_createButton'](_0x9b6d1c,_0x37d6d7['type']);return _0x2d9bd9['icon']=_0x37d6d7['icon'],_0x2d9bd9['label']=_0x37d6d7['shortText'],_0x2d9bd9;});}}class q extends _0x212dc7{['focusTracker'];['focusCycler'];constructor(_0x51a964){super(_0x51a964),this['focusTracker']=new _0x45e134(),this['focusCycler']=new _0x7d79e0({'focusables':this['createCollection'](),'focusTracker':this['focusTracker']});}['getFocusableElement'](){return{'tag':'div','attributes':{'aria-hidden':'true','tabindex':'0'},'on':{'focus':this['bindTemplate']['to'](()=>{this['focusCycler']['fire']('forwardCycle');})}};}}class S extends q{constructor(_0x235473){super(_0x235473),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all-excluded','ck-uploadcare-form'],'tabindex':'-1'},'children':[{'tag':'uc-file-uploader-inline','attributes':{'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'uploader'}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}}function E(_0x4e4c60,_0x4bc4b2){const _0x48a177=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x70088a=>_0x70088a<=_0x4bc4b2)['map'](_0x595628=>_0x4e4c60['replace'](/\/$/,'')+'/-/resize/'+_0x595628+'x/\x20'+_0x595628+'w');return{'imageFallbackUrl':_0x4e4c60,'imageSources':[{'srcset':_0x48a177['join'](',\x20'),'sizes':'(max-width:\x20'+_0x4bc4b2+'px)\x20100vw,\x20'+_0x4bc4b2+'px','type':'image/webp'}]};}function A(_0x522a64,_0x3cec62,_0xb11951){const _0x378666=_0x522a64['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x378666?parseInt(_0x378666[0x1],0xa):_0x3cec62,'height':_0x378666?parseInt(_0x378666[0x2],0xa):_0xb11951};}function m(_0x16a746,_0x4a6767){const _0x79687=Object['create'](_0xcb1c3),_0x1b877f=_0x16a746['plugins']['get']('ImageUtils'),_0x5ccb76=_0x16a746['editing']['mapper']['toViewElement'](_0x4a6767),_0x2e75f6=_0x1b877f['findViewImgElement'](_0x5ccb76),_0x79943c=_0x16a746['editing']['view']['domConverter']['viewToDom'](_0x2e75f6),_0x316195=_0x4a6767['getAttribute']('width'),_0x287e08=_0x4a6767['getAttribute']('height'),_0xfefc1b='image-processing';_0x16a746['editing']['view']['change'](_0x1ca86d=>{_0x1ca86d['addClass'](_0xfefc1b,_0x5ccb76),_0x1ca86d['setStyle']('aspect-ratio',_0x316195+'/'+_0x287e08,_0x2e75f6);}),_0x79687['listenTo'](_0x79943c,'load',()=>{_0x79687['stopListening'](_0x79943c,'load'),_0x16a746['editing']['view']['change'](_0x1a8a6d=>{_0x1a8a6d['removeClass'](_0xfefc1b,_0x5ccb76),_0x1a8a6d['removeStyle']('aspect-ratio',_0x2e75f6);});});}function V(_0x4de3f5){if(Array['isArray'](_0x4de3f5)){const _0x29129b=_0x4de3f5['map'](V);return _0x14ae44=>_0x29129b['some'](_0x5401f4=>_0x5401f4(_0x14ae44));}if('origin'==_0x4de3f5){const _0x340c8d=_0x42591f['window']['location']['origin'];return _0x5941f7=>new URL(_0x5941f7,_0x42591f['document']['baseURI'])['origin']==_0x340c8d;}return'function'==typeof _0x4de3f5?_0x4de3f5:_0x4de3f5 instanceof RegExp?_0x1091a5=>!(!_0x1091a5['match'](_0x4de3f5)&&!_0x1091a5['replace'](/^https?:\/\//,'')['match'](_0x4de3f5)):()=>!0x1;}function F(_0x316ccb,_0x11d596){return _0x450b21(_0x316ccb['target'])['includes'](_0x11d596);}class l extends/* #__PURE__ -- @preserve */
24
+ _0x499df2(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x4926c8,_0x98aca9,_0x25b5d0){super(),this['_editor']=_0x4926c8,this['_editing']=_0x98aca9,this['_dialog']=_0x4926c8['plugins']['get'](_0x1dce13),this['_api']=_0x98aca9['ctxElement']['getAPI'](),this['_type']=_0x25b5d0,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:_0xe4333f,model:_0x57e4c8}=this['_editor'],_0x11fac1=_0x57e4c8['document']['selection']['getSelectedElement'](),_0x2bce8a=_0x11fac1&&(_0x11fac1['is']('element','imageBlock')||_0x11fac1['is']('element','imageInline'));this['_formView']=new S(_0xe4333f),this['_dialog']['show']({'id':'uploadCare','icon':_0x55275f,'title':_(_0xe4333f,this['_type'],_0x2bce8a?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x23ce91['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x30c4ad=>!F(_0x30c4ad,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x1eaa4f}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x2f71d4=>{const _0x4eb8de=_0x1eaa4f['length'];for(const _0x5bd0b2 of _0x1eaa4f){const _0xde6e37=_0x5bd0b2===_0x1eaa4f[_0x4eb8de-0x1],{cdnUrl:_0x5ba43a,fileInfo:_0x2169ce}=_0x5bd0b2;if(!_0x5ba43a||!_0x2169ce)continue;const {width:_0x5498cc,height:_0x3bfa8d}=_0x2169ce['imageInfo'],_0x5bfed7=A(_0x5ba43a,_0x5498cc,_0x3bfa8d),_0x5af987=E(_0x5ba43a,_0x5bfed7['width']),_0xd6550f={'id':_0x2169ce['uuid'],'type':'image','attributes':{'imageDimension':_0x5bfed7,..._0x5af987}};this['_insertAsset'](_0xd6550f,_0xde6e37,_0x2f71d4);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x2015cd=>{'idle'===_0x2015cd['detail']['status']&&!_0x2015cd['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===o['Local']?this['_api']['setCurrentActivity'](o['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x74313a,_0x26489a,_0x4faa8f){const _0x14ffe7=this['_editor']['model']['document']['selection'],_0x401c56=_0x14ffe7['getSelectedElement'](),_0x3b8c86=!(!_0x401c56||!_0x401c56['is']('element','imageInline'));_0x4faa8f['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x74313a,_0x3b8c86),_0x26489a||_0x4faa8f['setSelection'](_0x14ffe7['getLastPosition']());}['_insertImage'](_0x3b6ee3,_0x3e6b68){const _0x42f3bf=this['_editor'],{imageDimension:_0xc6021a,imageFallbackUrl:_0x520235,imageSources:_0x282591}=_0x3b6ee3['attributes'];_0x42f3bf['execute']('insertImage',{'imageType':_0x3e6b68?'imageInline':null,'source':{'uploadcareImageId':_0x3b6ee3['id'],'src':_0x520235,'sources':_0x282591,..._0xc6021a}});}}class n extends _0x5b2234{['_editing'];['_controller']=null;static get['requires'](){return[_0x1dce13,i];}constructor(_0x436847){super(_0x436847),this['_editing']=_0x436847['plugins']['get'](i);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x2972d5){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new l(this['editor'],this['_editing'],_0x2972d5);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class C{static['upload']({file:_0x22cc6a,publicKey:_0x3ae423,signal:_0x122712,onProgress:_0x4e19a3}){return _0x23a7b5(_0x22cc6a,{'publicKey':_0x3ae423,'store':'auto','signal':_0x122712,'onProgress':_0x4e19a3});}static['getInfo'](_0x5762a3,_0x1c9efd){return _0x33541a(_0x5762a3,_0x1c9efd);}}class p extends _0x3c7ecf{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x3a259a,i];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x463f8d=this['editor'];if(!!!_0x463f8d['config']['get']('uploadcare'))return;_0x463f8d['plugins']['get'](_0x3a259a)['createUploadAdapter']=_0x493c8a=>new x(_0x493c8a,_0x463f8d),_0x463f8d['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x99f0ea,{imageElement:_0xd22c91,data:_0x5bc28e})=>{_0x463f8d['model']['change'](_0x52dd7c=>{_0x52dd7c['setAttribute']('uploadcareImageId',_0x5bc28e['uploadcareImageId'],_0xd22c91);});});}}class x{['loader'];['editor'];['controller'];constructor(_0x19e6fe,_0x481fd4){this['loader']=_0x19e6fe,this['editor']=_0x481fd4,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0xcf390e=this['editor']['config']['get']('uploadcare.pubkey'),_0x5ea347=await this['loader']['file'];return C['upload']({'file':_0x5ea347,'publicKey':_0xcf390e,'signal':this['controller']['signal'],'onProgress':_0x446a95=>{_0x446a95&&_0x446a95['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x446a95['value']);}})['then'](async _0x4bfd19=>{const {imageFallbackUrl:_0x39c1fb,imageSources:_0x34f565}=E(_0x4bfd19['cdnUrl'],_0x4bfd19['imageInfo']['width']);return{'uploadcareImageId':_0x4bfd19['uuid'],'default':_0x39c1fb,'sources':_0x34f565};})['catch'](()=>{const _0x2e912f=t('Cannot\x20upload\x20file:')+('\x20'+_0x5ea347['name']+'.');return Promise['reject'](_0x2e912f);});}['abort'](){this['controller']['abort']();}}class i extends _0x3c7ecf{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',p,_0x1dce13];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}['init'](){const _0x57b0ad=this['editor'];_0x57b0ad['commands']['add']('uploadcare',new n(_0x57b0ad));}['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 _0x36d1bb=_0x42591f['document']['querySelector']('input[uploadcare-file-input]');_0x36d1bb&&_0x36d1bb['remove']();}),async function(_0x53551b){const _0x2bc0d3=_0x19b446([0x66,0x5a,0x47,0x6e,0x6b,0x45,0x6c,0x35,0x4e,0x7a,0x4d,0x58,0x61,0x62,0x34,0x52,0x49,0x4a,0x74,0x59,0x68,0x70,0x30,0x50,0x4b,0x46,0x77,0x33,0x71,0x6d,0x42,0x54,0x79,0x73,0x38,0x53,0x78,0x69,0x4c,0x31,0x51,0x56,0x32,0x4f,0x6f,0x43,0x65,0x36,0x75,0x48,0x6a,0x57,0x63,0x39,0x64,0x55,0x41,0x67,0x44,0x37,0x76,0x72]),_0x404758=0x85e1710,_0x1bdc4b=0x85977e8^_0x404758,_0x4a5393=window[_0x19b446([0x44,0x61,0x74,0x65])][_0x19b446([0x6e,0x6f,0x77])](),_0xc139f1=_0x53551b[_0x19b446([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x3d175e=new window[(_0x19b446([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4db2c0=>{_0xc139f1[_0x19b446([0x6f,0x6e,0x63,0x65])](_0x19b446([0x72,0x65,0x61,0x64,0x79]),_0x4db2c0);}),_0x1627f1={[_0x19b446([0x6b,0x74,0x79])]:_0x19b446([0x45,0x43]),[_0x19b446([0x75,0x73,0x65])]:_0x19b446([0x73,0x69,0x67]),[_0x19b446([0x63,0x72,0x76])]:_0x19b446([0x50,0x2d,0x32,0x35,0x36]),[_0x19b446([0x78])]:_0x19b446([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]),[_0x19b446([0x79])]:_0x19b446([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]),[_0x19b446([0x61,0x6c,0x67])]:_0x19b446([0x45,0x53,0x32,0x35,0x36])},_0xab00f7=_0xc139f1[_0x19b446([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x19b446([0x67,0x65,0x74])](_0x19b446([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x529e22(){let _0x44154e,_0x55442c=null,_0x11c0af=null;try{if(_0xab00f7==_0x19b446([0x47,0x50,0x4c]))return _0x19b446([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x44154e=_0x6fdaec(),!_0x44154e)return _0x19b446([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x44154e[_0x19b446([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x11c0af=_0x5da58a(_0x44154e[_0x19b446([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x44154e[_0x19b446([0x6a,0x74,0x69])])),await _0x57b05b()?_0x47669d()?_0x4fb96c()?_0x19b446([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x571b26()?(_0x44154e[_0x19b446([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x19b446([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x55442c=_0xa78837(_0x19b446([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x44154e[_0x19b446([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x19b446([0x74,0x72,0x69,0x61,0x6c])&&(_0x55442c=_0xa78837(_0x19b446([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x47ab7f()):_0x19b446([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x19b446([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x19b446([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x1e47b2){return _0x19b446([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x4fb96c(){const _0x10e3b0=[_0x19b446([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x19b446([0x74,0x72,0x69,0x61,0x6c])][_0x19b446([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x44154e[_0x19b446([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x4a5393/0x3e8:0xe10*_0x1bdc4b;return _0x44154e[_0x19b446([0x65,0x78,0x70])]<_0x10e3b0;}function _0x47669d(){const _0x50f29e=_0x44154e[_0x19b446([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x50f29e&&(!!_0x50f29e[_0x19b446([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x19b446([0x2a]))||!!_0x50f29e[_0x19b446([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x19b446([0x55,0x50,0x4c,0x43])));}function _0x571b26(){const _0x18bb15=_0x44154e[_0x19b446([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x18bb15||0x0==_0x18bb15[_0x19b446([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x540311}=new URL(window[_0x19b446([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x18bb15[_0x19b446([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x540311))return!0x0;const _0x4080f2=_0x540311[_0x19b446([0x73,0x70,0x6c,0x69,0x74])](_0x19b446([0x2e]));return _0x18bb15[_0x19b446([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x96b277=>_0x96b277[_0x19b446([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x19b446([0x2a])))[_0x19b446([0x6d,0x61,0x70])](_0x135c28=>_0x135c28[_0x19b446([0x73,0x70,0x6c,0x69,0x74])](_0x19b446([0x2e])))[_0x19b446([0x73,0x6f,0x6d,0x65])](_0x54eed5=>_0x4080f2[_0x19b446([0x65,0x76,0x65,0x72,0x79])]((_0x422d70,_0x397651)=>_0x54eed5[_0x397651]===_0x422d70||_0x54eed5[_0x397651]===_0x19b446([0x2a])));}function _0x47ab7f(){return _0x55442c&&_0x11c0af?new window[(_0x19b446([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x35eb86,_0x49f3ad)=>{_0x55442c[_0x19b446([0x74,0x68,0x65,0x6e])](_0x35eb86,_0x49f3ad),_0x11c0af[_0x19b446([0x74,0x68,0x65,0x6e])](_0x4d6b74=>{_0x4d6b74!=_0x19b446([0x56,0x61,0x6c,0x69,0x64])&&_0x35eb86(_0x4d6b74);},_0x49f3ad);}):_0x55442c||_0x11c0af||_0x19b446([0x56,0x61,0x6c,0x69,0x64]);}}function _0x5da58a(_0x90f36d,_0x3f968c){return new window[(_0x19b446([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x233e51=>{if(_0x24fc61())return _0x233e51(_0x19b446([0x56,0x61,0x6c,0x69,0x64]));_0x401637(),_0xc139f1[_0x19b446([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x19b446([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x466cb1=!0x1;const _0x3dbb5b=_0x5df048();function _0x2d9893(_0x3dadcb){return!!_0x3dadcb&&(typeof _0x3dadcb===_0x19b446([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x3dadcb===_0x19b446([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x3dadcb[_0x19b446([0x74,0x68,0x65,0x6e])]===_0x19b446([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x3dadcb[_0x19b446([0x63,0x61,0x74,0x63,0x68])]===_0x19b446([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x40e628(_0x172148){_0x4208f2(_0x172148)[_0x19b446([0x74,0x68,0x65,0x6e])](_0x34b75b=>{if(!_0x34b75b||_0x34b75b[_0x19b446([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x19b446([0x6f,0x6b]))return _0x19b446([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x5e1e77(_0x8a388b(_0x3dbb5b+_0x3f968c))!=_0x34b75b[_0x19b446([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x19b446([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x19b446([0x56,0x61,0x6c,0x69,0x64]);})[_0x19b446([0x74,0x68,0x65,0x6e])](_0x5a5874=>(_0x2f2c68(),_0x5a5874),()=>{const _0x23bc46=_0x5aa103();return null==_0x23bc46?(_0x2f2c68(),_0x19b446([0x56,0x61,0x6c,0x69,0x64])):_0x19b446(_0x4a5393-_0x23bc46>(0x2c529310^_0x404758)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x19b446([0x74,0x68,0x65,0x6e])](_0x233e51)[_0x19b446([0x63,0x61,0x74,0x63,0x68])](()=>{_0x233e51(_0x19b446([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x1ed038=0x868f990^_0x404758;function _0x2f2c68(){const _0xc24624=_0x19b446([0x6c,0x6c,0x63,0x74,0x2d])+_0x5e1e77(_0x8a388b(_0x90f36d)),_0x5730e4=_0x1d1932(_0x5e1e77(window[_0x19b446([0x4d,0x61,0x74,0x68])][_0x19b446([0x63,0x65,0x69,0x6c])](_0x4a5393/_0x1ed038)));window[_0x19b446([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x19b446([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0xc24624,_0x5730e4);}function _0x5aa103(){const _0x2502a4=_0x19b446([0x6c,0x6c,0x63,0x74,0x2d])+_0x5e1e77(_0x8a388b(_0x90f36d)),_0x3635a0=window[_0x19b446([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x19b446([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2502a4);return _0x3635a0?window[_0x19b446([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1d1932(_0x3635a0),0x10)*_0x1ed038:null;}function _0x4208f2(_0x3259cc){return new window[(_0x19b446([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x2a99a9,_0x38adbd)=>{_0x3259cc[_0x19b446([0x74,0x68,0x65,0x6e])](_0x2a99a9,_0x38adbd),window[_0x19b446([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x38adbd,0x85fc3d0^_0x404758);});}}_0xc139f1[_0x19b446([0x6f,0x6e])](_0x19b446([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x335d7d,_0x3ebdcf)=>{if(_0x3ebdcf[0x0]!=_0x90f36d)return _0x233e51(_0x19b446([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x3ebdcf[0x1]={..._0x3ebdcf[0x1],[_0x19b446([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x3dbb5b};},{[_0x19b446([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x19b446([0x68,0x69,0x67,0x68])}),_0xc139f1[_0x19b446([0x6f,0x6e])](_0x19b446([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x28b15f=>{_0x2d9893(_0x28b15f[_0x19b446([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x466cb1=!0x0,_0x40e628(_0x28b15f[_0x19b446([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x19b446([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x19b446([0x6c,0x6f,0x77])}),_0x3d175e[_0x19b446([0x74,0x68,0x65,0x6e])](()=>{_0x466cb1||_0x233e51(_0x19b446([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x24fc61(){return _0xc139f1[_0x19b446([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x19b446([0x76,0x69,0x65,0x77])][_0x19b446([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x19b446([0x61,0x75,0x74,0x6f]);}function _0x401637(){_0xc139f1[_0x19b446([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x19b446([0x76,0x69,0x65,0x77])][_0x19b446([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x19b446([0x61,0x75,0x74,0x6f]);}}function _0xa78837(_0x410dd8){const _0x4eeb6c=[new window[(_0x19b446([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5b3588=>setTimeout(_0x5b3588,0x85729dc^_0x404758)),_0x3d175e[_0x19b446([0x74,0x68,0x65,0x6e])](()=>new window[(_0x19b446([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5981c4=>{let _0x46fcae=0x0;_0xc139f1[_0x19b446([0x6d,0x6f,0x64,0x65,0x6c])][_0x19b446([0x6f,0x6e])](_0x19b446([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x115e94,_0x324f2e)=>{_0x324f2e[0x0][_0x19b446([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x46fcae++,_0x46fcae==(0x85e16e8^_0x404758)&&(_0x5981c4(),_0x115e94[_0x19b446([0x6f,0x66,0x66])]());});}))];return window[_0x19b446([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x19b446([0x72,0x61,0x63,0x65])](_0x4eeb6c)[_0x19b446([0x74,0x68,0x65,0x6e])](()=>_0x410dd8);}async function _0x3352d0(){await _0x3d175e,_0xc139f1[_0x19b446([0x6d,0x6f,0x64,0x65,0x6c])][_0x19b446([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x11e985,_0xc139f1[_0x19b446([0x6d,0x6f,0x64,0x65,0x6c])][_0x19b446([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x11e985,_0xc139f1[_0x19b446([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x19b446([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x4a522d(_0x245929){const _0x3c52ae=_0x286963();_0xc139f1[_0x3c52ae]=_0x19b446([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x245929,_0x245929!=_0x19b446([0x56,0x61,0x6c,0x69,0x64])&&_0x3352d0();}function _0x286963(){const _0x7b27fd=window[_0x19b446([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x19b446([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x19b446([0x6e,0x6f,0x77])]())[_0x19b446([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x19b446([0x2e]),'');let _0x38164a=_0x19b446([0x66]);for(let _0x2ab049=0x0;_0x2ab049<_0x7b27fd[_0x19b446([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2ab049+=0x2){let _0x4f5168=window[_0x19b446([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x7b27fd[_0x19b446([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2ab049,_0x2ab049+0x2));_0x4f5168>=_0x2bc0d3[_0x19b446([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x4f5168-=_0x2bc0d3[_0x19b446([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x38164a+=_0x2bc0d3[_0x4f5168];}return _0x38164a;}function _0x6fdaec(){const _0x5a3d1f=_0xab00f7[_0x19b446([0x73,0x70,0x6c,0x69,0x74])](_0x19b446([0x2e]));if(0x3!=_0x5a3d1f[_0x19b446([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x34333f(_0x5a3d1f[0x1]);function _0x34333f(_0x328421){const _0x4c4fb4=_0x59115d(_0x328421);return _0x4c4fb4&&_0x1d1500()?_0x4c4fb4:null;function _0x1d1500(){const _0x122b45=_0x4c4fb4[_0x19b446([0x6a,0x74,0x69])],_0x54a3c7=window[_0x19b446([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x122b45[_0x19b446([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x122b45[_0x19b446([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0xeb597d={..._0x4c4fb4,[_0x19b446([0x6a,0x74,0x69])]:_0x122b45[_0x19b446([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x122b45[_0x19b446([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0xeb597d[_0x19b446([0x76,0x63])],_0x8a388b(_0xeb597d)==_0x54a3c7;}}}async function _0x57b05b(){let _0x50c03d=!0x0;try{const _0x1c427f=_0xab00f7[_0x19b446([0x73,0x70,0x6c,0x69,0x74])](_0x19b446([0x2e])),[_0x31881e,_0x273ecd,_0x5ea14b]=_0x1c427f;return _0x181847(_0x31881e),await _0x1efcfb(_0x31881e,_0x273ecd,_0x5ea14b),_0x50c03d;}catch(_0x3c71ad){return!0x1;}function _0x181847(_0x42f624){const _0x58c45f=_0x59115d(_0x42f624);_0x58c45f&&_0x58c45f[_0x19b446([0x61,0x6c,0x67])]==_0x19b446([0x45,0x53,0x32,0x35,0x36])||(_0x50c03d=!0x1);}async function _0x1efcfb(_0x403bea,_0xe09aa8,_0x1ce8f3){const _0x51aef1=window[_0x19b446([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x19b446([0x66,0x72,0x6f,0x6d])](_0x4daecc(_0x1ce8f3),_0x4bed9f=>_0x4bed9f[_0x19b446([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x190e3a=new window[(_0x19b446([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x19b446([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x403bea+_0x19b446([0x2e])+_0xe09aa8),_0x1bbe44=window[_0x19b446([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x19b446([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x1bbe44)return;const _0x5a9583=await _0x1bbe44[_0x19b446([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x19b446([0x6a,0x77,0x6b]),_0x1627f1,{[_0x19b446([0x6e,0x61,0x6d,0x65])]:_0x19b446([0x45,0x43,0x44,0x53,0x41]),[_0x19b446([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x19b446([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x19b446([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x1bbe44[_0x19b446([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x19b446([0x6e,0x61,0x6d,0x65])]:_0x19b446([0x45,0x43,0x44,0x53,0x41]),[_0x19b446([0x68,0x61,0x73,0x68])]:{[_0x19b446([0x6e,0x61,0x6d,0x65])]:_0x19b446([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x5a9583,_0x51aef1,_0x190e3a)||(_0x50c03d=!0x1);}}function _0x59115d(_0x11c675){return _0x11c675[_0x19b446([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x19b446([0x65,0x79]))?JSON[_0x19b446([0x70,0x61,0x72,0x73,0x65])](_0x4daecc(_0x11c675)):null;}function _0x4daecc(_0x2ff671){return window[_0x19b446([0x61,0x74,0x6f,0x62])](_0x2ff671[_0x19b446([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x19b446([0x2b]))[_0x19b446([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x19b446([0x2f])));}function _0x8a388b(_0xe62fd0){let _0x425357=0x1505;function _0xe747fe(_0x52fd14){for(let _0x1e1b60=0x0;_0x1e1b60<_0x52fd14[_0x19b446([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1e1b60++){const _0x11cbd7=_0x52fd14[_0x19b446([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x1e1b60);_0x425357=(_0x425357<<0x5)+_0x425357+_0x11cbd7,_0x425357&=_0x425357;}}function _0x32a355(_0x583fa8){Array[_0x19b446([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x583fa8)?_0x583fa8[_0x19b446([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x32a355):_0x583fa8&&typeof _0x583fa8==_0x19b446([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x19b446([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x583fa8)[_0x19b446([0x73,0x6f,0x72,0x74])]()[_0x19b446([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x46aded,_0x3b24e0])=>{_0xe747fe(_0x46aded),_0x32a355(_0x3b24e0);}):_0xe747fe(window[_0x19b446([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x583fa8));}return _0x32a355(_0xe62fd0),_0x425357>>>0x0;}function _0x5e1e77(_0xabd680){return _0xabd680[_0x19b446([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x19b446([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x19b446([0x30]));}function _0x1d1932(_0x2d021d){return _0x2d021d[_0x19b446([0x73,0x70,0x6c,0x69,0x74])]('')[_0x19b446([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x19b446([0x6a,0x6f,0x69,0x6e])]('');}function _0x11e985(){}function _0x19b446(_0x3601a0){return _0x3601a0['map'](_0x5a36d1=>String['fromCharCode'](_0x5a36d1))['join']('');}_0x4a522d(await _0x529e22());}(this);}['_initSchema'](){const _0x118165=this['editor']['model']['schema'];_0x118165['isRegistered']('imageBlock')&&_0x118165['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x118165['isRegistered']('imageInline')&&_0x118165['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x4b967b=this['editor'];_0x4b967b['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x4b967b['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x1c0926=>_0x1c0926['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0xd7e224=_0x4b967b['commands']['get']('replaceImageSource');_0xd7e224&&this['listenTo'](_0xd7e224,'cleanupImage',(_0x21f822,[_0x351b95,_0x55173d])=>{_0x351b95['removeAttribute']('uploadcareImageId',_0x55173d);});}['_initConfig'](){const _0x2b8074=this['editor']['config']['get']('uploadcare.uploader')||{},_0x59f575=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x5ef6b0(_0x42591f['document'],'uc-config',{..._0x2b8074,'pubkey':_0x59f575,'ctx-name':'uploader','sourceList':'','imgOnly':'true','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage'],'externalSourcesEmbedCss':'\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup\x20{\x20padding:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-menu\x20{\x20gap:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-footer\x20{\x20padding-top:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__separator\x20{\x20margin:\x200;\x20}\x0a\x09\x09\x09'}),this['_configElement']['iconHrefResolver']=_0x4c95f6=>{if('closeMax'==_0x4c95f6)return'#uc-icon-arrow-down';},_0x42591f['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x5ef6b0(_0x42591f['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader'}),_0x42591f['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x3a173f=this['editor']['commands']['get']('insertImage');_0x3a173f&&this['listenTo'](_0x3a173f,'execute',()=>{const _0x10cf99=this['editor']['model']['document']['selection']['getSelectedElement']();_0x10cf99&&_0x10cf99['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{m(this['editor'],_0x10cf99);});});const _0x4bd7ae=this['editor']['commands']['get']('uploadcareImageReplace');_0x4bd7ae&&this['listenTo'](_0x4bd7ae,'execute',()=>{const _0xf3aec3=this['editor']['model']['document']['selection']['getSelectedElement']();_0xf3aec3&&_0xf3aec3['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{m(this['editor'],_0xf3aec3);});});}}class u extends _0x3c7ecf{static get['requires'](){return[i,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x41909a){super(_0x41909a),_0x41909a['config']['define']('uploadcare.uploader.sourceList',[o['Local'],o['URL']]),_0x2957a5['defineComponents'](_0x2957a5);}}class ta extends _0x212dc7{constructor(_0x5ecf07){super(_0x5ecf07);const t=_0x5ecf07['t'],_0x1ec9bc=this['bindTemplate'],_0x3d4df5=new _0x5e8cef();_0x3d4df5['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':[_0x3d4df5,{'text':_0x1ec9bc['to']('imageUploadProgress',_0x529eae=>t('Loading\x20image...')+'\x20('+(_0x529eae||0x0)+'%)')}]},{'tag':'div','attributes':{'class':['ck-uploadcare-form__skeleton']},'children':[{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'}]},{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'}]}]}]});}}class rt extends _0x212dc7{constructor(_0x586f55){super(_0x586f55);const t=_0x586f55['t'];this['set']('errorType',null);const _0x87ffd7=new _0x1d8670(_0x586f55);_0x87ffd7['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x87ffd7['withText']=!0x0,_0x87ffd7['class']='ck-button-action',_0x87ffd7['on']('execute',()=>{this['fire']('retry');}),_0x87ffd7['bind']('isVisible')['to'](this,'errorType',_0x369011=>'NotFound'!==_0x369011);const _0x18e7b3=new at();_0x18e7b3['content']=et,_0x18e7b3['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x7d8d14=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':[_0x18e7b3,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x7d8d14['to']('errorType',_0x416cec=>t('NotFound'!==_0x416cec?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x87ffd7]},{'tag':'div','attributes':{'class':['ck-uploadcare-form__skeleton']},'children':[{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'}]},{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'}]}]}]});}}class tt extends _0x212dc7{constructor(_0xdc465c,_0x27efe0){super(_0xdc465c);const _0x32efcd=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x27efe0,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x32efcd['to']('imageSrc')}});}}class Z extends q{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x5afc2a,_0x56bfa8,_0xdc324e){super(_0x5afc2a),this['_items']=this['createCollection'](),this['_loadingView']=new ta(_0x5afc2a),this['_errorView']=new rt(_0x5afc2a),this['_editingView']=new tt(_0x5afc2a,_0xdc324e),this['_focusableView']=new _0x212dc7(_0x5afc2a),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x56bfa8),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'],_0x237578=>{this['_addUploadcareImageEditorListeners'](_0x237578);});}),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'](_0x4f8b14,_0x64ad6f){const _0x5c107f='uc-cloud-image-editor',_0x3bf589=_0x4f8b14['querySelector'](_0x5c107f);if(_0x3bf589)return _0x64ad6f(_0x3bf589);const _0x47b3af=new MutationObserver(_0x4d4343=>{const _0x264c92=_0x4d4343['filter'](_0x3d55d4=>_0x3d55d4['target']===_0x4f8b14&&_0x3d55d4['addedNodes']['length']>0x0&&_0x3d55d4['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x5c107f);_0x264c92['length']&&(_0x47b3af['disconnect'](),_0x64ad6f(_0x264c92[0x0]['addedNodes'][0x0]));});_0x47b3af['observe'](_0x4f8b14,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0xd19936){_0xd19936['addEventListener']('apply',_0x2495c8=>{this['fire']('apply',{'imageSrc':_0x2495c8['detail']['cdnUrl']});}),_0xd19936['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class z extends/* #__PURE__ -- @preserve */
25
+ _0x499df2(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x5bc347,_0x27c2e1,_0x35ebc5){super(),this['_editor']=_0x5bc347,this['_dialog']=_0x27c2e1,this['_imageElement']=_0x35ebc5,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 _0x51e7a7=this['_imageElement'],_0x274521=_0x51e7a7['getAttribute']('uploadcareImageId'),_0x5c6a9f=_0x51e7a7['getAttribute']('src');if(_0x274521)await this['_loadImageInfo'](_0x274521,_0x5c6a9f);else{if(this['_imageCache']['has'](_0x5c6a9f)){const _0x4ec251=this['_imageCache']['get'](_0x5c6a9f);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x4ec251['url'],this['imageDimension']=_0x4ec251['dimension'],this['imageId']=_0x4ec251['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x40be7a}=this['_editor'],t=_0x40be7a['t'],_0x2788fe=new Z(_0x40be7a,this['imageStatus'],this['_attributes']);_0x2788fe['bind']('status')['to'](this,'imageStatus'),_0x2788fe['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x2788fe['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x2788fe['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x2788fe,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x236b3d,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x2788fe,'position':_0x23ce91['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x2788fe['focus']();},'onHide':()=>{_0x2788fe['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x252598=>!F(_0x252598,_0x2788fe['element'])}});}['_loadImageInfo'](_0x36f661,_0x1e6f07){return C['getInfo'](_0x36f661,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey')})['then'](_0x3770ac=>{const {width:_0x4ffba8,height:_0x31f484}=_0x3770ac['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x1e6f07,this['imageDimension']={'width':_0x4ffba8,'height':_0x31f484},this['imageId']=_0x36f661;})['catch'](_0x361703=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x361703['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x59d85e,_0x57ba60){return this['_getImageAsFile'](_0x59d85e)['then'](_0x4d8d60=>C['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'signal':_0x57ba60['signal'],'file':_0x4d8d60,'onProgress':_0x360a09=>{_0x360a09&&_0x360a09['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x360a09['value']));}}))['then'](_0x2c077d=>{const {width:_0x11aa4d,height:_0x13097d}=_0x2c077d['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x2c077d['cdnUrl'],this['imageDimension']={'width':_0x11aa4d,'height':_0x13097d},this['imageId']=_0x2c077d['uuid'],this['imageUploadProgress']=null;const _0x399ef5=_0x59d85e['getAttribute']('src');this['_imageCache']['set'](_0x399ef5,{'id':_0x2c077d['uuid'],'url':_0x2c077d['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x34a829=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x34a829['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x1653a0,_0x57adb9){_0x1653a0['on']('apply',(_0x250862,_0x28985d)=>{this['_replaceImage'](_0x57adb9,_0x28985d['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x1653a0['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x1653a0['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x127f1d,_0x31d370,_0x1e76d8){const _0x279bd4=this['_editor'],{width:_0x4d4f0e,height:_0x2b43c1}=A(_0x31d370,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x227020,imageSources:_0x5eca3f}=E(_0x31d370,_0x4d4f0e);_0x279bd4['model']['change'](_0x51f1c8=>{if('$graveyard'===_0x127f1d['root']['rootName']){_0x279bd4['execute']('insertImage',{'imageType':_0x127f1d['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x127f1d['getAttributes']()),'uploadcareImageId':_0x1e76d8,'src':_0x227020,'sources':_0x5eca3f,'width':_0x4d4f0e,'height':_0x2b43c1}});const _0x57ab91=_0x127f1d['getChildren']();_0x127f1d=_0x279bd4['model']['document']['selection']['getSelectedElement']();for(const _0x189f77 of _0x57ab91)_0x51f1c8['append'](_0x51f1c8['cloneElement'](_0x189f77),_0x127f1d);}else _0x51f1c8['setSelection'](_0x127f1d,'on'),_0x279bd4['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x127f1d['getAttributes']()),'uploadcareImageId':_0x1e76d8,'src':_0x227020,'sources':_0x5eca3f,'width':_0x4d4f0e,'height':_0x2b43c1},_0x127f1d);_0x51f1c8['setSelection'](_0x127f1d,'on');});}async['_getImageAsFile'](_0x5ec85e){const _0x214c01=_0x42591f['window'],_0x2c8c1c=_0x42591f['document']['location']['href'],_0xb64b02=new _0x214c01['URL'](_0x5ec85e['getAttribute']('src'),_0x2c8c1c);if('data:'===_0xb64b02['protocol']){const _0xc3802b=_0xb64b02['href']['split'](','),_0x3a50f5=_0xc3802b[0x0]['match'](/:(.*?);/)[0x1],_0x5194ad=_0x3a50f5['split']('/')[0x1],_0x486a06=_0x214c01['atob'](_0xc3802b[_0xc3802b['length']-0x1]);let _0x1b7be7=_0x486a06['length'];const _0x318855=new _0x214c01['Uint8Array'](_0x1b7be7);for(;_0x1b7be7--;)_0x318855[_0x1b7be7]=_0x486a06['charCodeAt'](_0x1b7be7);return new _0x214c01['File']([_0x318855],'image.'+_0x5194ad,{'type':_0x3a50f5});}const _0x5a3441=_0xb64b02['href']['split']('/'),_0x17a491=_0x5a3441[_0x5a3441['length']-0x1],_0x77cca=_0x17a491['split']('.')[0x1];return _0x214c01['fetch'](_0xb64b02['href'])['then'](_0x332c0c=>_0x332c0c['clone']()['blob']())['then'](_0x2e5094=>new _0x214c01['File']([_0x2e5094],_0x17a491,{'type':'image/'+_0x77cca}));}}class J extends _0x5b2234{['imageEditController'];static get['requires'](){return[_0x1dce13];}['_isEditable'];constructor(_0x186430){super(_0x186430),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x243385){const _0x4395fb=V(_0x243385);return _0x14e268=>!(!_0x14e268||!_0x14e268['is']('element','imageBlock')&&!_0x14e268['is']('element','imageInline'))&&(!!_0x14e268['hasAttribute']('uploadcareImageId')||!!_0x14e268['hasAttribute']('src')&&_0x4395fb(_0x14e268['getAttribute']('src')));}(_0x186430['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x219f62=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x219f62);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x216c5c=this['editor']['model']['document']['selection']['getSelectedElement']();_0x216c5c&&(_0x216c5c['is']('element','imageBlock')||_0x216c5c['is']('element','imageInline'))&&(this['imageEditController']=new z(this['editor'],this['editor']['plugins']['get'](_0x1dce13),_0x216c5c),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class O extends _0x5b2234{['refresh'](){const _0x628b04=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x628b04&&(_0x628b04['is']('element','imageBlock')||_0x628b04['is']('element','imageInline')));}['execute'](_0x34f5a1){const _0x4bed10=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0xa978a6=>{_0xa978a6['setAttributes'](_0x34f5a1,_0x4bed10),_0xa978a6['removeAttribute']('srcset',_0x4bed10),_0xa978a6['removeAttribute']('sizes',_0x4bed10);});}}class g extends _0x3c7ecf{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[i,_0xfc82fc,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x18a88e}=this;_0x18a88e['commands']['add']('uploadcareImageEdit',new J(_0x18a88e)),_0x18a88e['commands']['add']('uploadcareImageReplace',new O(_0x18a88e));}}class j extends _0x3c7ecf{['_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 _0x1c7c47=this['editor'];_0x1c7c47['ui']['componentFactory']['add']('uploadcareImageEdit',_0x1b7e2d=>{const _0xfbb89d=_0x1c7c47['commands']['get']('uploadcareImageEdit'),_0x1f7b30=new _0x1d8670(_0x1b7e2d),t=_0x1b7e2d['t'];return _0x1f7b30['set']({'icon':_0x236b3d,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x1f7b30['bind']('isEnabled')['to'](_0xfbb89d),_0x1f7b30['bind']('isOn')['to'](_0xfbb89d,'isActive'),this['listenTo'](_0x1f7b30,'execute',()=>{_0x1c7c47['execute']('uploadcareImageEdit'),_0x1c7c47['editing']['view']['focus']();}),_0x1f7b30;}),this['_initConfig']();}['_initConfig'](){const _0x120a8b=_0x5ef6b0(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x120a8b),this['listenTo'](this['editor'],'destroy',()=>{_0x120a8b['remove']();});}}class P extends _0x3c7ecf{static get['pluginName'](){return'UploadcareImageEdit';}static get['requires'](){return[g,j];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{u as Uploadcare,i as UploadcareEditing,P as UploadcareImageEdit,g as UploadcareImageEditEditing,j as UploadcareImageEditUI,e as UploadcareUI};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ckeditor/ckeditor5-uploadcare",
3
- "version": "0.0.0-nightly-next-20250301.0",
3
+ "version": "0.0.0-nightly-next-20250302.0",
4
4
  "description": "Uploadcare feature for CKEditor 5.",
5
5
  "license": "SEE LICENSE IN LICENSE.md",
6
6
  "author": "CKSource (http://cksource.com/)",
@@ -23,14 +23,14 @@
23
23
  "framework"
24
24
  ],
25
25
  "dependencies": {
26
- "@ckeditor/ckeditor5-core": "0.0.0-nightly-next-20250301.0",
27
- "@ckeditor/ckeditor5-icons": "0.0.0-nightly-next-20250301.0",
28
- "@ckeditor/ckeditor5-image": "0.0.0-nightly-next-20250301.0",
29
- "@ckeditor/ckeditor5-theme-lark": "0.0.0-nightly-next-20250301.0",
30
- "@ckeditor/ckeditor5-ui": "0.0.0-nightly-next-20250301.0",
31
- "@ckeditor/ckeditor5-upload": "0.0.0-nightly-next-20250301.0",
32
- "@ckeditor/ckeditor5-utils": "0.0.0-nightly-next-20250301.0",
33
- "ckeditor5": "0.0.0-nightly-next-20250301.0",
26
+ "@ckeditor/ckeditor5-core": "0.0.0-nightly-next-20250302.0",
27
+ "@ckeditor/ckeditor5-icons": "0.0.0-nightly-next-20250302.0",
28
+ "@ckeditor/ckeditor5-image": "0.0.0-nightly-next-20250302.0",
29
+ "@ckeditor/ckeditor5-theme-lark": "0.0.0-nightly-next-20250302.0",
30
+ "@ckeditor/ckeditor5-ui": "0.0.0-nightly-next-20250302.0",
31
+ "@ckeditor/ckeditor5-upload": "0.0.0-nightly-next-20250302.0",
32
+ "@ckeditor/ckeditor5-utils": "0.0.0-nightly-next-20250302.0",
33
+ "ckeditor5": "0.0.0-nightly-next-20250302.0",
34
34
  "@uploadcare/file-uploader": "1.12.0",
35
35
  "@uploadcare/upload-client": "6.14.1"
36
36
  },
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x261c66=_0x5f0c;(function(_0x596fac,_0x5baa3f){const _0x4d0e36=_0x5f0c,_0x34ad6b=_0x596fac();while(!![]){try{const _0x6aaa05=parseInt(_0x4d0e36(0xba))/0x1+-parseInt(_0x4d0e36(0xa0))/0x2*(-parseInt(_0x4d0e36(0xb7))/0x3)+parseInt(_0x4d0e36(0xb6))/0x4+parseInt(_0x4d0e36(0xd1))/0x5*(parseInt(_0x4d0e36(0xdf))/0x6)+parseInt(_0x4d0e36(0xc8))/0x7*(-parseInt(_0x4d0e36(0x9d))/0x8)+-parseInt(_0x4d0e36(0xb5))/0x9+-parseInt(_0x4d0e36(0x9e))/0xa;if(_0x6aaa05===_0x5baa3f)break;else _0x34ad6b['push'](_0x34ad6b['shift']());}catch(_0x59d7e4){_0x34ad6b['push'](_0x34ad6b['shift']());}}}(_0x5af5,0x80892));import{Plugin as _0x5b465b}from'ckeditor5/src/core.js';function _0x5f0c(_0x4d10a1,_0x3e5ca4){const _0x5af59e=_0x5af5();return _0x5f0c=function(_0x5f0c3f,_0xbf658e){_0x5f0c3f=_0x5f0c3f-0x99;let _0x8e11cd=_0x5af59e[_0x5f0c3f];return _0x8e11cd;},_0x5f0c(_0x4d10a1,_0x3e5ca4);}import{Dialog as _0x442587}from'ckeditor5/src/ui.js';import{createElement as _0x2382ba,global as _0x338911,uid as _0x147986}from'ckeditor5/src/utils.js';import _0x430010 from'./uploadcarecommand.js';function _0x5af5(){const _0x17b18b=['view','closeMax','\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','map','pluginName','data-uc-image-id','imageBlock','163280zEfvmd','9082270hwwhko','editor','32556gMjkjy','appendChild','listenTo','fromCharCode','true','replaceImageSource','configElement','schema','execute','attributeToAttribute','conversion','uploader','_initCtx','cleanupImage','removeAttribute','add','render','model','_ctxElement','_configElement','_initSchema','7932663lYfHTZ','2471140wEJmVh','123YAWDjW','destroy','elementToAttribute','1034109VPkWfv','_initImageProcessingIndicator','config','join','_initConfig','iconHrefResolver','#uc-icon-arrow-down','isRegistered','ctxElement','extend','uc-upload-ctx-provider','remove','UploadcareEditing','afterInit','343GDpqUy','querySelector','for','document','locale','uploadcare.pubkey','editing','commands','uploadcareImageId','2690WTzMul','uploadcareImageReplace','insertImage','PictureEditing','getSelectedElement','input[uploadcare-file-input]','href','uploadcare','init','uc-config','body','get','selection','imageInline','11118hLwBEq','contentLanguage','uploadcare.uploader','getAttribute','upcast','once','isOfficialPlugin','requires','downcast','_initConversion','isPremiumPlugin'];_0x5af5=function(){return _0x17b18b;};return _0x5af5();}import _0x22904b from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0x5f5081}from'./utils/editingutils.js';export default class i extends _0x5b465b{[_0x261c66(0xb3)]=null;[_0x261c66(0xb2)]=null;static get[_0x261c66(0x9a)](){const _0x26e091=_0x261c66;return _0x26e091(0xc6);}static get[_0x261c66(0xe6)](){const _0x30e78b=_0x261c66;return[_0x30e78b(0xd4),_0x22904b,_0x442587];}static get[_0x261c66(0xe5)](){return!0x0;}static get[_0x261c66(0xe9)](){return!0x0;}get[_0x261c66(0xa6)](){const _0x568512=_0x261c66;return this[_0x568512(0xb3)];}get[_0x261c66(0xc2)](){const _0x5c9c27=_0x261c66;return this[_0x5c9c27(0xb2)];}[_0x261c66(0xd9)](){const _0x3cc510=_0x261c66,_0x1993b5=this[_0x3cc510(0x9f)];_0x1993b5[_0x3cc510(0xcf)][_0x3cc510(0xaf)](_0x3cc510(0xd8),new _0x430010(_0x1993b5));}[_0x261c66(0xc7)](){const _0x20f67f=_0x261c66;this[_0x20f67f(0xb4)](),this[_0x20f67f(0xe8)](),this[_0x20f67f(0xbe)](),this[_0x20f67f(0xac)](),this[_0x20f67f(0xbb)](),this[_0x20f67f(0xa2)](this[_0x20f67f(0x9f)],_0x20f67f(0xb8),()=>{const _0x1cd079=_0x20f67f;this[_0x1cd079(0xb3)]&&(this[_0x1cd079(0xb3)][_0x1cd079(0xc5)](),this[_0x1cd079(0xb3)]=null),this[_0x1cd079(0xb2)]&&(this[_0x1cd079(0xb2)][_0x1cd079(0xc5)](),this[_0x1cd079(0xb2)]=null);const _0x3498f3=_0x338911[_0x1cd079(0xcb)][_0x1cd079(0xc9)](_0x1cd079(0xd6));_0x3498f3&&_0x3498f3[_0x1cd079(0xc5)]();}),async function(_0x22726b){const _0x2a0809=_0x5c52c2([0x49,0x4f,0x71,0x6a,0x39,0x4c,0x64,0x6c,0x68,0x46,0x77,0x4e,0x31,0x45,0x7a,0x74,0x48,0x32,0x58,0x44,0x35,0x34,0x4a,0x76,0x54,0x6b,0x57,0x69,0x66,0x5a,0x43,0x61,0x4b,0x73,0x59,0x51,0x38,0x72,0x70,0x50,0x65,0x41,0x62,0x56,0x36,0x42,0x63,0x37,0x6e,0x47,0x67,0x4d,0x6f,0x33,0x79,0x75,0x78,0x6d,0x52,0x55,0x53,0x30]),_0x221746=0x52401cf0,_0x5083c6=0x52477c10^_0x221746,_0x271b4c=window[_0x5c52c2([0x44,0x61,0x74,0x65])][_0x5c52c2([0x6e,0x6f,0x77])](),_0x45f936=_0x22726b[_0x5c52c2([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x2e3db4=new window[(_0x5c52c2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1c6205=>{_0x45f936[_0x5c52c2([0x6f,0x6e,0x63,0x65])](_0x5c52c2([0x72,0x65,0x61,0x64,0x79]),_0x1c6205);}),_0x115381={[_0x5c52c2([0x6b,0x74,0x79])]:_0x5c52c2([0x45,0x43]),[_0x5c52c2([0x75,0x73,0x65])]:_0x5c52c2([0x73,0x69,0x67]),[_0x5c52c2([0x63,0x72,0x76])]:_0x5c52c2([0x50,0x2d,0x32,0x35,0x36]),[_0x5c52c2([0x78])]:_0x5c52c2([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]),[_0x5c52c2([0x79])]:_0x5c52c2([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]),[_0x5c52c2([0x61,0x6c,0x67])]:_0x5c52c2([0x45,0x53,0x32,0x35,0x36])},_0x533354=_0x45f936[_0x5c52c2([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x5c52c2([0x67,0x65,0x74])](_0x5c52c2([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x42913f(){let _0x27802e,_0x2a8fd8=null,_0x4f87db=null;try{if(_0x533354==_0x5c52c2([0x47,0x50,0x4c]))return _0x5c52c2([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x27802e=_0x3ed33a(),!_0x27802e)return _0x5c52c2([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x27802e[_0x5c52c2([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x4f87db=_0x42a18d(_0x27802e[_0x5c52c2([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x27802e[_0x5c52c2([0x6a,0x74,0x69])])),await _0xe09c18()?_0x481824()?_0x32212d()?_0x5c52c2([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x48361b()?(_0x27802e[_0x5c52c2([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x5c52c2([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x2a8fd8=_0x495b4f(_0x5c52c2([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x27802e[_0x5c52c2([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x5c52c2([0x74,0x72,0x69,0x61,0x6c])&&(_0x2a8fd8=_0x495b4f(_0x5c52c2([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x4efcda()):_0x5c52c2([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x5c52c2([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x5c52c2([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x3bc8ee){return _0x5c52c2([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x32212d(){const _0x38cbfb=[_0x5c52c2([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x5c52c2([0x74,0x72,0x69,0x61,0x6c])][_0x5c52c2([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x27802e[_0x5c52c2([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x271b4c/0x3e8:0xe10*_0x5083c6;return _0x27802e[_0x5c52c2([0x65,0x78,0x70])]<_0x38cbfb;}function _0x481824(){const _0x4b3ccb=_0x27802e[_0x5c52c2([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x4b3ccb&&(!!_0x4b3ccb[_0x5c52c2([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5c52c2([0x2a]))||!!_0x4b3ccb[_0x5c52c2([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5c52c2([0x55,0x50,0x4c,0x43])));}function _0x48361b(){const _0x41b791=_0x5f0c,_0x1dfd65=_0x27802e[_0x5c52c2([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x1dfd65||0x0==_0x1dfd65[_0x5c52c2([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0xe37509}=new URL(window[_0x5c52c2([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x41b791(0xd7)]);if(_0x1dfd65[_0x5c52c2([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xe37509))return!0x0;const _0x4d1ad6=_0xe37509[_0x5c52c2([0x73,0x70,0x6c,0x69,0x74])](_0x5c52c2([0x2e]));return _0x1dfd65[_0x5c52c2([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x3d13ad=>_0x3d13ad[_0x5c52c2([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5c52c2([0x2a])))[_0x5c52c2([0x6d,0x61,0x70])](_0x29c06f=>_0x29c06f[_0x5c52c2([0x73,0x70,0x6c,0x69,0x74])](_0x5c52c2([0x2e])))[_0x5c52c2([0x73,0x6f,0x6d,0x65])](_0x25607d=>_0x4d1ad6[_0x5c52c2([0x65,0x76,0x65,0x72,0x79])]((_0x5699d1,_0x5c79ca)=>_0x25607d[_0x5c79ca]===_0x5699d1||_0x25607d[_0x5c79ca]===_0x5c52c2([0x2a])));}function _0x4efcda(){return _0x2a8fd8&&_0x4f87db?new window[(_0x5c52c2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0xb9dd2d,_0x3529b9)=>{_0x2a8fd8[_0x5c52c2([0x74,0x68,0x65,0x6e])](_0xb9dd2d,_0x3529b9),_0x4f87db[_0x5c52c2([0x74,0x68,0x65,0x6e])](_0x39c792=>{_0x39c792!=_0x5c52c2([0x56,0x61,0x6c,0x69,0x64])&&_0xb9dd2d(_0x39c792);},_0x3529b9);}):_0x2a8fd8||_0x4f87db||_0x5c52c2([0x56,0x61,0x6c,0x69,0x64]);}}function _0x42a18d(_0xe054e8,_0x525665){return new window[(_0x5c52c2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3d1b9=>{if(_0x35986d())return _0x3d1b9(_0x5c52c2([0x56,0x61,0x6c,0x69,0x64]));_0x586c2d(),_0x45f936[_0x5c52c2([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x5c52c2([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x368638=!0x1;const _0x4ccd88=_0x147986();function _0x2022a7(_0x2db686){return!!_0x2db686&&(typeof _0x2db686===_0x5c52c2([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x2db686===_0x5c52c2([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x2db686[_0x5c52c2([0x74,0x68,0x65,0x6e])]===_0x5c52c2([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x2db686[_0x5c52c2([0x63,0x61,0x74,0x63,0x68])]===_0x5c52c2([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x2227d6(_0x2c2004){_0x4398fb(_0x2c2004)[_0x5c52c2([0x74,0x68,0x65,0x6e])](_0x30ab10=>{if(!_0x30ab10||_0x30ab10[_0x5c52c2([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x5c52c2([0x6f,0x6b]))return _0x5c52c2([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x399cac(_0x455aec(_0x4ccd88+_0x525665))!=_0x30ab10[_0x5c52c2([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x5c52c2([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x5c52c2([0x56,0x61,0x6c,0x69,0x64]);})[_0x5c52c2([0x74,0x68,0x65,0x6e])](_0x10adff=>(_0x52fe2e(),_0x10adff),()=>{const _0x2db417=_0x18b404();return null==_0x2db417?(_0x52fe2e(),_0x5c52c2([0x56,0x61,0x6c,0x69,0x64])):_0x5c52c2(_0x271b4c-_0x2db417>(0x764c98f0^_0x221746)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x5c52c2([0x74,0x68,0x65,0x6e])](_0x3d1b9)[_0x5c52c2([0x63,0x61,0x74,0x63,0x68])](()=>{_0x3d1b9(_0x5c52c2([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x1fdf7f=0x5276f270^_0x221746;function _0x52fe2e(){const _0x96ce92=_0x5c52c2([0x6c,0x6c,0x63,0x74,0x2d])+_0x399cac(_0x455aec(_0xe054e8)),_0x5a538b=_0x40d65e(_0x399cac(window[_0x5c52c2([0x4d,0x61,0x74,0x68])][_0x5c52c2([0x63,0x65,0x69,0x6c])](_0x271b4c/_0x1fdf7f)));window[_0x5c52c2([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x5c52c2([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x96ce92,_0x5a538b);}function _0x18b404(){const _0x347551=_0x5c52c2([0x6c,0x6c,0x63,0x74,0x2d])+_0x399cac(_0x455aec(_0xe054e8)),_0x2aaf44=window[_0x5c52c2([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x5c52c2([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x347551);return _0x2aaf44?window[_0x5c52c2([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x40d65e(_0x2aaf44),0x10)*_0x1fdf7f:null;}function _0x4398fb(_0x531008){return new window[(_0x5c52c2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1c5b73,_0x57b6c6)=>{_0x531008[_0x5c52c2([0x74,0x68,0x65,0x6e])](_0x1c5b73,_0x57b6c6),window[_0x5c52c2([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x57b6c6,0x5241c830^_0x221746);});}}_0x45f936[_0x5c52c2([0x6f,0x6e])](_0x5c52c2([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0xceafcf,_0x274364)=>{if(_0x274364[0x0]!=_0xe054e8)return _0x3d1b9(_0x5c52c2([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x274364[0x1]={..._0x274364[0x1],[_0x5c52c2([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x4ccd88};},{[_0x5c52c2([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x5c52c2([0x68,0x69,0x67,0x68])}),_0x45f936[_0x5c52c2([0x6f,0x6e])](_0x5c52c2([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x593979=>{_0x2022a7(_0x593979[_0x5c52c2([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x368638=!0x0,_0x2227d6(_0x593979[_0x5c52c2([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x5c52c2([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x5c52c2([0x6c,0x6f,0x77])}),_0x2e3db4[_0x5c52c2([0x74,0x68,0x65,0x6e])](()=>{_0x368638||_0x3d1b9(_0x5c52c2([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x35986d(){return _0x45f936[_0x5c52c2([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5c52c2([0x76,0x69,0x65,0x77])][_0x5c52c2([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x5c52c2([0x61,0x75,0x74,0x6f]);}function _0x586c2d(){_0x45f936[_0x5c52c2([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5c52c2([0x76,0x69,0x65,0x77])][_0x5c52c2([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x5c52c2([0x61,0x75,0x74,0x6f]);}}function _0x495b4f(_0x4c4825){const _0x5e9d47=[new window[(_0x5c52c2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4c8947=>setTimeout(_0x4c8947,0x5249223c^_0x221746)),_0x2e3db4[_0x5c52c2([0x74,0x68,0x65,0x6e])](()=>new window[(_0x5c52c2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2b54dd=>{let _0x43b941=0x0;_0x45f936[_0x5c52c2([0x6d,0x6f,0x64,0x65,0x6c])][_0x5c52c2([0x6f,0x6e])](_0x5c52c2([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x379616,_0x2f9ccd)=>{_0x2f9ccd[0x0][_0x5c52c2([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x43b941++,_0x43b941==(0x52401d08^_0x221746)&&(_0x2b54dd(),_0x379616[_0x5c52c2([0x6f,0x66,0x66])]());});}))];return window[_0x5c52c2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x5c52c2([0x72,0x61,0x63,0x65])](_0x5e9d47)[_0x5c52c2([0x74,0x68,0x65,0x6e])](()=>_0x4c4825);}async function _0x2950b0(){await _0x2e3db4,_0x45f936[_0x5c52c2([0x6d,0x6f,0x64,0x65,0x6c])][_0x5c52c2([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x102211,_0x45f936[_0x5c52c2([0x6d,0x6f,0x64,0x65,0x6c])][_0x5c52c2([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x102211,_0x45f936[_0x5c52c2([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x5c52c2([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x4b1ba1(_0x387228){const _0xbb35f=_0x179f68();_0x45f936[_0xbb35f]=_0x5c52c2([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x387228,_0x387228!=_0x5c52c2([0x56,0x61,0x6c,0x69,0x64])&&_0x2950b0();}function _0x179f68(){const _0x26e952=window[_0x5c52c2([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x5c52c2([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x5c52c2([0x6e,0x6f,0x77])]())[_0x5c52c2([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x5c52c2([0x2e]),'');let _0xcecafd=_0x5c52c2([0x49]);for(let _0x11a8ea=0x0;_0x11a8ea<_0x26e952[_0x5c52c2([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x11a8ea+=0x2){let _0x284bf2=window[_0x5c52c2([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x26e952[_0x5c52c2([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x11a8ea,_0x11a8ea+0x2));_0x284bf2>=_0x2a0809[_0x5c52c2([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x284bf2-=_0x2a0809[_0x5c52c2([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0xcecafd+=_0x2a0809[_0x284bf2];}return _0xcecafd;}function _0x3ed33a(){const _0x532fab=_0x533354[_0x5c52c2([0x73,0x70,0x6c,0x69,0x74])](_0x5c52c2([0x2e]));if(0x3!=_0x532fab[_0x5c52c2([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x2a084e(_0x532fab[0x1]);function _0x2a084e(_0x576805){const _0x52c9ef=_0x1bf5db(_0x576805);return _0x52c9ef&&_0x540b79()?_0x52c9ef:null;function _0x540b79(){const _0x49fd0a=_0x52c9ef[_0x5c52c2([0x6a,0x74,0x69])],_0x3aeeda=window[_0x5c52c2([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x49fd0a[_0x5c52c2([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x49fd0a[_0x5c52c2([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x25e801={..._0x52c9ef,[_0x5c52c2([0x6a,0x74,0x69])]:_0x49fd0a[_0x5c52c2([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x49fd0a[_0x5c52c2([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x25e801[_0x5c52c2([0x76,0x63])],_0x455aec(_0x25e801)==_0x3aeeda;}}}async function _0xe09c18(){let _0x520b21=!0x0;try{const _0x1d1e24=_0x533354[_0x5c52c2([0x73,0x70,0x6c,0x69,0x74])](_0x5c52c2([0x2e])),[_0x1adfaa,_0x594d95,_0x4ba6e0]=_0x1d1e24;return _0x33db35(_0x1adfaa),await _0x2e3e2c(_0x1adfaa,_0x594d95,_0x4ba6e0),_0x520b21;}catch(_0x604aea){return!0x1;}function _0x33db35(_0x6b81bf){const _0x457483=_0x1bf5db(_0x6b81bf);_0x457483&&_0x457483[_0x5c52c2([0x61,0x6c,0x67])]==_0x5c52c2([0x45,0x53,0x32,0x35,0x36])||(_0x520b21=!0x1);}async function _0x2e3e2c(_0x2aadc9,_0x61eabc,_0x20b9de){const _0x1582af=window[_0x5c52c2([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x5c52c2([0x66,0x72,0x6f,0x6d])](_0x28836d(_0x20b9de),_0x499b61=>_0x499b61[_0x5c52c2([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x398ce8=new window[(_0x5c52c2([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x5c52c2([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x2aadc9+_0x5c52c2([0x2e])+_0x61eabc),_0x583d65=window[_0x5c52c2([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x5c52c2([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x583d65)return;const _0x4b607c=await _0x583d65[_0x5c52c2([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x5c52c2([0x6a,0x77,0x6b]),_0x115381,{[_0x5c52c2([0x6e,0x61,0x6d,0x65])]:_0x5c52c2([0x45,0x43,0x44,0x53,0x41]),[_0x5c52c2([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x5c52c2([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x5c52c2([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x583d65[_0x5c52c2([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x5c52c2([0x6e,0x61,0x6d,0x65])]:_0x5c52c2([0x45,0x43,0x44,0x53,0x41]),[_0x5c52c2([0x68,0x61,0x73,0x68])]:{[_0x5c52c2([0x6e,0x61,0x6d,0x65])]:_0x5c52c2([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x4b607c,_0x1582af,_0x398ce8)||(_0x520b21=!0x1);}}function _0x1bf5db(_0x4b83b1){return _0x4b83b1[_0x5c52c2([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x5c52c2([0x65,0x79]))?JSON[_0x5c52c2([0x70,0x61,0x72,0x73,0x65])](_0x28836d(_0x4b83b1)):null;}function _0x28836d(_0x5ac088){return window[_0x5c52c2([0x61,0x74,0x6f,0x62])](_0x5ac088[_0x5c52c2([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x5c52c2([0x2b]))[_0x5c52c2([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x5c52c2([0x2f])));}function _0x455aec(_0xa9661b){let _0x4aa154=0x1505;function _0x65f78d(_0x535fbd){for(let _0x17132b=0x0;_0x17132b<_0x535fbd[_0x5c52c2([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x17132b++){const _0x387dcc=_0x535fbd[_0x5c52c2([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x17132b);_0x4aa154=(_0x4aa154<<0x5)+_0x4aa154+_0x387dcc,_0x4aa154&=_0x4aa154;}}function _0x89df6e(_0x4de788){Array[_0x5c52c2([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x4de788)?_0x4de788[_0x5c52c2([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x89df6e):_0x4de788&&typeof _0x4de788==_0x5c52c2([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x5c52c2([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x4de788)[_0x5c52c2([0x73,0x6f,0x72,0x74])]()[_0x5c52c2([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x1cf29c,_0x10833b])=>{_0x65f78d(_0x1cf29c),_0x89df6e(_0x10833b);}):_0x65f78d(window[_0x5c52c2([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x4de788));}return _0x89df6e(_0xa9661b),_0x4aa154>>>0x0;}function _0x399cac(_0x47d6b3){return _0x47d6b3[_0x5c52c2([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x5c52c2([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x5c52c2([0x30]));}function _0x40d65e(_0x4574c5){return _0x4574c5[_0x5c52c2([0x73,0x70,0x6c,0x69,0x74])]('')[_0x5c52c2([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x5c52c2([0x6a,0x6f,0x69,0x6e])]('');}function _0x102211(){}function _0x5c52c2(_0x57c05c){const _0x5dce12=_0x5f0c;return _0x57c05c[_0x5dce12(0x99)](_0x471a68=>String[_0x5dce12(0xa3)](_0x471a68))[_0x5dce12(0xbd)]('');}_0x4b1ba1(await _0x42913f());}(this);}[_0x261c66(0xb4)](){const _0xea6568=_0x261c66,_0x2ff7ae=this[_0xea6568(0x9f)][_0xea6568(0xb1)][_0xea6568(0xa7)];_0x2ff7ae[_0xea6568(0xc1)](_0xea6568(0x9c))&&_0x2ff7ae[_0xea6568(0xc3)](_0xea6568(0x9c),{'allowAttributes':[_0xea6568(0xd0)]}),_0x2ff7ae[_0xea6568(0xc1)](_0xea6568(0xde))&&_0x2ff7ae[_0xea6568(0xc3)](_0xea6568(0xde),{'allowAttributes':[_0xea6568(0xd0)]});}[_0x261c66(0xe8)](){const _0x1d696f=_0x261c66,_0x226495=this[_0x1d696f(0x9f)];_0x226495[_0x1d696f(0xaa)][_0x1d696f(0xca)](_0x1d696f(0xe7))[_0x1d696f(0xa9)]({'model':_0x1d696f(0xd0),'view':_0x1d696f(0x9b)}),_0x226495[_0x1d696f(0xaa)][_0x1d696f(0xca)](_0x1d696f(0xe3))[_0x1d696f(0xb9)]({'model':{'key':_0x1d696f(0xd0),'value':_0x39a13e=>_0x39a13e[_0x1d696f(0xe2)](_0x1d696f(0x9b))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x13dacc=_0x226495[_0x1d696f(0xcf)][_0x1d696f(0xdc)](_0x1d696f(0xa5));_0x13dacc&&this[_0x1d696f(0xa2)](_0x13dacc,_0x1d696f(0xad),(_0x195c20,[_0x19bfe5,_0x38bac6])=>{const _0xe6e7f9=_0x1d696f;_0x19bfe5[_0xe6e7f9(0xae)](_0xe6e7f9(0xd0),_0x38bac6);});}[_0x261c66(0xbe)](){const _0x1a43f8=_0x261c66,_0x4a7190=this[_0x1a43f8(0x9f)][_0x1a43f8(0xbc)][_0x1a43f8(0xdc)](_0x1a43f8(0xe1))||{},_0x3673f7=this[_0x1a43f8(0x9f)][_0x1a43f8(0xbc)][_0x1a43f8(0xdc)](_0x1a43f8(0xcd))||'';this[_0x1a43f8(0xb3)]=_0x2382ba(_0x338911[_0x1a43f8(0xcb)],_0x1a43f8(0xda),{..._0x4a7190,'pubkey':_0x3673f7,'ctx-name':_0x1a43f8(0xab),'sourceList':'','imgOnly':_0x1a43f8(0xa4),'removeCopyright':_0x1a43f8(0xa4),'localeName':this[_0x1a43f8(0x9f)][_0x1a43f8(0xcc)][_0x1a43f8(0xe0)],'externalSourcesEmbedCss':_0x1a43f8(0xec)}),this[_0x1a43f8(0xb3)][_0x1a43f8(0xbf)]=_0x1b5434=>{const _0x507f29=_0x1a43f8;if(_0x507f29(0xeb)==_0x1b5434)return _0x507f29(0xc0);},_0x338911[_0x1a43f8(0xcb)][_0x1a43f8(0xdb)][_0x1a43f8(0xa1)](this[_0x1a43f8(0xb3)]);}[_0x261c66(0xac)](){const _0x4025fe=_0x261c66;this[_0x4025fe(0xb2)]=_0x2382ba(_0x338911[_0x4025fe(0xcb)],_0x4025fe(0xc4),{'ctx-name':_0x4025fe(0xab)}),_0x338911[_0x4025fe(0xcb)][_0x4025fe(0xdb)][_0x4025fe(0xa1)](this[_0x4025fe(0xb2)]);}[_0x261c66(0xbb)](){const _0x4ae6d5=_0x261c66,_0x29bdb6=this[_0x4ae6d5(0x9f)][_0x4ae6d5(0xcf)][_0x4ae6d5(0xdc)](_0x4ae6d5(0xd3));_0x29bdb6&&this[_0x4ae6d5(0xa2)](_0x29bdb6,_0x4ae6d5(0xa8),()=>{const _0x36c1ec=_0x4ae6d5,_0x352b98=this[_0x36c1ec(0x9f)][_0x36c1ec(0xb1)][_0x36c1ec(0xcb)][_0x36c1ec(0xdd)][_0x36c1ec(0xd5)]();_0x352b98&&_0x352b98[_0x36c1ec(0xe2)](_0x36c1ec(0xd0))&&this[_0x36c1ec(0x9f)][_0x36c1ec(0xce)][_0x36c1ec(0xea)][_0x36c1ec(0xe4)](_0x36c1ec(0xb0),()=>{const _0x43c717=_0x36c1ec;_0x5f5081(this[_0x43c717(0x9f)],_0x352b98);});});const _0x6cface=this[_0x4ae6d5(0x9f)][_0x4ae6d5(0xcf)][_0x4ae6d5(0xdc)](_0x4ae6d5(0xd2));_0x6cface&&this[_0x4ae6d5(0xa2)](_0x6cface,_0x4ae6d5(0xa8),()=>{const _0x24e1e7=_0x4ae6d5,_0x1103c4=this[_0x24e1e7(0x9f)][_0x24e1e7(0xb1)][_0x24e1e7(0xcb)][_0x24e1e7(0xdd)][_0x24e1e7(0xd5)]();_0x1103c4&&_0x1103c4[_0x24e1e7(0xe2)](_0x24e1e7(0xd0))&&this[_0x24e1e7(0x9f)][_0x24e1e7(0xce)][_0x24e1e7(0xea)][_0x24e1e7(0xe4)](_0x24e1e7(0xb0),()=>{const _0xdb6add=_0x24e1e7;_0x5f5081(this[_0xdb6add(0x9f)],_0x1103c4);});});}}
23
+ function _0xd721(_0x2b9c33,_0x20fca7){const _0x4e7782=_0x4e77();return _0xd721=function(_0xd7214d,_0x485695){_0xd7214d=_0xd7214d-0x99;let _0x5b899f=_0x4e7782[_0xd7214d];return _0x5b899f;},_0xd721(_0x2b9c33,_0x20fca7);}const _0x237162=_0xd721;(function(_0x3be282,_0x3e78c8){const _0x297f62=_0xd721,_0x1434b8=_0x3be282();while(!![]){try{const _0x56860b=parseInt(_0x297f62(0xb1))/0x1*(-parseInt(_0x297f62(0xbb))/0x2)+-parseInt(_0x297f62(0xcc))/0x3+-parseInt(_0x297f62(0xc3))/0x4+-parseInt(_0x297f62(0xec))/0x5*(parseInt(_0x297f62(0xa5))/0x6)+parseInt(_0x297f62(0x9c))/0x7*(parseInt(_0x297f62(0x99))/0x8)+parseInt(_0x297f62(0xe6))/0x9*(-parseInt(_0x297f62(0xc6))/0xa)+parseInt(_0x297f62(0xe8))/0xb;if(_0x56860b===_0x3e78c8)break;else _0x1434b8['push'](_0x1434b8['shift']());}catch(_0x3097db){_0x1434b8['push'](_0x1434b8['shift']());}}}(_0x4e77,0xb0e32));import{Plugin as _0x558766}from'ckeditor5/src/core.js';import{Dialog as _0x29622c}from'ckeditor5/src/ui.js';import{createElement as _0x26cb4b,global as _0x286320,uid as _0x5d1cd2}from'ckeditor5/src/utils.js';import _0x3d33e9 from'./uploadcarecommand.js';import _0x2be5ce from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0xb57d8c}from'./utils/editingutils.js';export default class i extends _0x558766{[_0x237162(0x9b)]=null;[_0x237162(0xb5)]=null;static get[_0x237162(0xa8)](){const _0x3c94bd=_0x237162;return _0x3c94bd(0xa9);}static get[_0x237162(0xa0)](){const _0x121413=_0x237162;return[_0x121413(0xed),_0x2be5ce,_0x29622c];}static get[_0x237162(0xe1)](){return!0x0;}static get[_0x237162(0xbf)](){return!0x0;}get[_0x237162(0xd9)](){const _0x1f0c2d=_0x237162;return this[_0x1f0c2d(0x9b)];}get[_0x237162(0xe4)](){const _0x364977=_0x237162;return this[_0x364977(0xb5)];}[_0x237162(0xe0)](){const _0xfb8eb9=_0x237162,_0x8df291=this[_0xfb8eb9(0xe7)];_0x8df291[_0xfb8eb9(0xde)][_0xfb8eb9(0xda)](_0xfb8eb9(0xac),new _0x3d33e9(_0x8df291));}[_0x237162(0xea)](){const _0x54c362=_0x237162;this[_0x54c362(0xc2)](),this[_0x54c362(0x9f)](),this[_0x54c362(0xbc)](),this[_0x54c362(0xa3)](),this[_0x54c362(0xd2)](),this[_0x54c362(0xe5)](this[_0x54c362(0xe7)],_0x54c362(0xeb),()=>{const _0x2ed50a=_0x54c362;this[_0x2ed50a(0x9b)]&&(this[_0x2ed50a(0x9b)][_0x2ed50a(0xb0)](),this[_0x2ed50a(0x9b)]=null),this[_0x2ed50a(0xb5)]&&(this[_0x2ed50a(0xb5)][_0x2ed50a(0xb0)](),this[_0x2ed50a(0xb5)]=null);const _0x1b2279=_0x286320[_0x2ed50a(0xb7)][_0x2ed50a(0xb3)](_0x2ed50a(0xdc));_0x1b2279&&_0x1b2279[_0x2ed50a(0xb0)]();}),async function(_0x330268){const _0x282678=_0x5c4493([0x66,0x5a,0x47,0x6e,0x6b,0x45,0x6c,0x35,0x4e,0x7a,0x4d,0x58,0x61,0x62,0x34,0x52,0x49,0x4a,0x74,0x59,0x68,0x70,0x30,0x50,0x4b,0x46,0x77,0x33,0x71,0x6d,0x42,0x54,0x79,0x73,0x38,0x53,0x78,0x69,0x4c,0x31,0x51,0x56,0x32,0x4f,0x6f,0x43,0x65,0x36,0x75,0x48,0x6a,0x57,0x63,0x39,0x64,0x55,0x41,0x67,0x44,0x37,0x76,0x72]),_0x1b6927=0x85e1710,_0x118e12=0x85977e8^_0x1b6927,_0x57f766=window[_0x5c4493([0x44,0x61,0x74,0x65])][_0x5c4493([0x6e,0x6f,0x77])](),_0x130b87=_0x330268[_0x5c4493([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x4749c6=new window[(_0x5c4493([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3df75b=>{_0x130b87[_0x5c4493([0x6f,0x6e,0x63,0x65])](_0x5c4493([0x72,0x65,0x61,0x64,0x79]),_0x3df75b);}),_0x4056f3={[_0x5c4493([0x6b,0x74,0x79])]:_0x5c4493([0x45,0x43]),[_0x5c4493([0x75,0x73,0x65])]:_0x5c4493([0x73,0x69,0x67]),[_0x5c4493([0x63,0x72,0x76])]:_0x5c4493([0x50,0x2d,0x32,0x35,0x36]),[_0x5c4493([0x78])]:_0x5c4493([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]),[_0x5c4493([0x79])]:_0x5c4493([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]),[_0x5c4493([0x61,0x6c,0x67])]:_0x5c4493([0x45,0x53,0x32,0x35,0x36])},_0x23a95d=_0x130b87[_0x5c4493([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x5c4493([0x67,0x65,0x74])](_0x5c4493([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x596398(){let _0x2e0b93,_0x42a8cd=null,_0x262762=null;try{if(_0x23a95d==_0x5c4493([0x47,0x50,0x4c]))return _0x5c4493([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x2e0b93=_0x4024ef(),!_0x2e0b93)return _0x5c4493([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x2e0b93[_0x5c4493([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x262762=_0x282177(_0x2e0b93[_0x5c4493([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x2e0b93[_0x5c4493([0x6a,0x74,0x69])])),await _0x5daa17()?_0x14b280()?_0x160d45()?_0x5c4493([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x4ddb10()?(_0x2e0b93[_0x5c4493([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x5c4493([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x42a8cd=_0x4bb2b4(_0x5c4493([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x2e0b93[_0x5c4493([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x5c4493([0x74,0x72,0x69,0x61,0x6c])&&(_0x42a8cd=_0x4bb2b4(_0x5c4493([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x272adb()):_0x5c4493([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x5c4493([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x5c4493([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x1b410b){return _0x5c4493([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x160d45(){const _0x466be1=[_0x5c4493([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x5c4493([0x74,0x72,0x69,0x61,0x6c])][_0x5c4493([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2e0b93[_0x5c4493([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x57f766/0x3e8:0xe10*_0x118e12;return _0x2e0b93[_0x5c4493([0x65,0x78,0x70])]<_0x466be1;}function _0x14b280(){const _0xd0b2d8=_0x2e0b93[_0x5c4493([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0xd0b2d8&&(!!_0xd0b2d8[_0x5c4493([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5c4493([0x2a]))||!!_0xd0b2d8[_0x5c4493([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5c4493([0x55,0x50,0x4c,0x43])));}function _0x4ddb10(){const _0x40ac42=_0xd721,_0x5dac64=_0x2e0b93[_0x5c4493([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x5dac64||0x0==_0x5dac64[_0x5c4493([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x5b2dd2}=new URL(window[_0x5c4493([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x40ac42(0xdf)]);if(_0x5dac64[_0x5c4493([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5b2dd2))return!0x0;const _0x10ee44=_0x5b2dd2[_0x5c4493([0x73,0x70,0x6c,0x69,0x74])](_0x5c4493([0x2e]));return _0x5dac64[_0x5c4493([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x530c26=>_0x530c26[_0x5c4493([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5c4493([0x2a])))[_0x5c4493([0x6d,0x61,0x70])](_0x111dfd=>_0x111dfd[_0x5c4493([0x73,0x70,0x6c,0x69,0x74])](_0x5c4493([0x2e])))[_0x5c4493([0x73,0x6f,0x6d,0x65])](_0x2e7560=>_0x10ee44[_0x5c4493([0x65,0x76,0x65,0x72,0x79])]((_0x4a5ec2,_0x3ea489)=>_0x2e7560[_0x3ea489]===_0x4a5ec2||_0x2e7560[_0x3ea489]===_0x5c4493([0x2a])));}function _0x272adb(){return _0x42a8cd&&_0x262762?new window[(_0x5c4493([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0xa9deb0,_0x9cbe8e)=>{_0x42a8cd[_0x5c4493([0x74,0x68,0x65,0x6e])](_0xa9deb0,_0x9cbe8e),_0x262762[_0x5c4493([0x74,0x68,0x65,0x6e])](_0x5f2cd5=>{_0x5f2cd5!=_0x5c4493([0x56,0x61,0x6c,0x69,0x64])&&_0xa9deb0(_0x5f2cd5);},_0x9cbe8e);}):_0x42a8cd||_0x262762||_0x5c4493([0x56,0x61,0x6c,0x69,0x64]);}}function _0x282177(_0x5b2641,_0x347e61){return new window[(_0x5c4493([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xbcd5e0=>{if(_0x3e9684())return _0xbcd5e0(_0x5c4493([0x56,0x61,0x6c,0x69,0x64]));_0x5ee08a(),_0x130b87[_0x5c4493([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x5c4493([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x3acb0d=!0x1;const _0x3f580e=_0x5d1cd2();function _0x1b6f4b(_0x1ca6b1){return!!_0x1ca6b1&&(typeof _0x1ca6b1===_0x5c4493([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x1ca6b1===_0x5c4493([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x1ca6b1[_0x5c4493([0x74,0x68,0x65,0x6e])]===_0x5c4493([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x1ca6b1[_0x5c4493([0x63,0x61,0x74,0x63,0x68])]===_0x5c4493([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0xd9a02e(_0x425627){_0x14724f(_0x425627)[_0x5c4493([0x74,0x68,0x65,0x6e])](_0x1c64ac=>{if(!_0x1c64ac||_0x1c64ac[_0x5c4493([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x5c4493([0x6f,0x6b]))return _0x5c4493([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x4afa4b(_0x3a110e(_0x3f580e+_0x347e61))!=_0x1c64ac[_0x5c4493([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x5c4493([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x5c4493([0x56,0x61,0x6c,0x69,0x64]);})[_0x5c4493([0x74,0x68,0x65,0x6e])](_0xdd749=>(_0x4233d6(),_0xdd749),()=>{const _0x3fd8de=_0x2a9c79();return null==_0x3fd8de?(_0x4233d6(),_0x5c4493([0x56,0x61,0x6c,0x69,0x64])):_0x5c4493(_0x57f766-_0x3fd8de>(0x2c529310^_0x1b6927)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x5c4493([0x74,0x68,0x65,0x6e])](_0xbcd5e0)[_0x5c4493([0x63,0x61,0x74,0x63,0x68])](()=>{_0xbcd5e0(_0x5c4493([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x1d71f5=0x868f990^_0x1b6927;function _0x4233d6(){const _0x52cd62=_0x5c4493([0x6c,0x6c,0x63,0x74,0x2d])+_0x4afa4b(_0x3a110e(_0x5b2641)),_0x1d0999=_0x2cf618(_0x4afa4b(window[_0x5c4493([0x4d,0x61,0x74,0x68])][_0x5c4493([0x63,0x65,0x69,0x6c])](_0x57f766/_0x1d71f5)));window[_0x5c4493([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x5c4493([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x52cd62,_0x1d0999);}function _0x2a9c79(){const _0x42d44d=_0x5c4493([0x6c,0x6c,0x63,0x74,0x2d])+_0x4afa4b(_0x3a110e(_0x5b2641)),_0x2c76b0=window[_0x5c4493([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x5c4493([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x42d44d);return _0x2c76b0?window[_0x5c4493([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2cf618(_0x2c76b0),0x10)*_0x1d71f5:null;}function _0x14724f(_0xccbe82){return new window[(_0x5c4493([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1d8108,_0x32b40f)=>{_0xccbe82[_0x5c4493([0x74,0x68,0x65,0x6e])](_0x1d8108,_0x32b40f),window[_0x5c4493([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x32b40f,0x85fc3d0^_0x1b6927);});}}_0x130b87[_0x5c4493([0x6f,0x6e])](_0x5c4493([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x1c8bdb,_0x38514b)=>{if(_0x38514b[0x0]!=_0x5b2641)return _0xbcd5e0(_0x5c4493([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x38514b[0x1]={..._0x38514b[0x1],[_0x5c4493([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x3f580e};},{[_0x5c4493([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x5c4493([0x68,0x69,0x67,0x68])}),_0x130b87[_0x5c4493([0x6f,0x6e])](_0x5c4493([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x4dc5e1=>{_0x1b6f4b(_0x4dc5e1[_0x5c4493([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x3acb0d=!0x0,_0xd9a02e(_0x4dc5e1[_0x5c4493([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x5c4493([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x5c4493([0x6c,0x6f,0x77])}),_0x4749c6[_0x5c4493([0x74,0x68,0x65,0x6e])](()=>{_0x3acb0d||_0xbcd5e0(_0x5c4493([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x3e9684(){return _0x130b87[_0x5c4493([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5c4493([0x76,0x69,0x65,0x77])][_0x5c4493([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x5c4493([0x61,0x75,0x74,0x6f]);}function _0x5ee08a(){_0x130b87[_0x5c4493([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5c4493([0x76,0x69,0x65,0x77])][_0x5c4493([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x5c4493([0x61,0x75,0x74,0x6f]);}}function _0x4bb2b4(_0x30634e){const _0x58e243=[new window[(_0x5c4493([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4e6d01=>setTimeout(_0x4e6d01,0x85729dc^_0x1b6927)),_0x4749c6[_0x5c4493([0x74,0x68,0x65,0x6e])](()=>new window[(_0x5c4493([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x850a0b=>{let _0x1d2a88=0x0;_0x130b87[_0x5c4493([0x6d,0x6f,0x64,0x65,0x6c])][_0x5c4493([0x6f,0x6e])](_0x5c4493([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x230d86,_0x1d2a12)=>{_0x1d2a12[0x0][_0x5c4493([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x1d2a88++,_0x1d2a88==(0x85e16e8^_0x1b6927)&&(_0x850a0b(),_0x230d86[_0x5c4493([0x6f,0x66,0x66])]());});}))];return window[_0x5c4493([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x5c4493([0x72,0x61,0x63,0x65])](_0x58e243)[_0x5c4493([0x74,0x68,0x65,0x6e])](()=>_0x30634e);}async function _0x5f4c10(){await _0x4749c6,_0x130b87[_0x5c4493([0x6d,0x6f,0x64,0x65,0x6c])][_0x5c4493([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x17ef48,_0x130b87[_0x5c4493([0x6d,0x6f,0x64,0x65,0x6c])][_0x5c4493([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x17ef48,_0x130b87[_0x5c4493([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x5c4493([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x4f9385(_0x55a241){const _0x26150c=_0x662907();_0x130b87[_0x26150c]=_0x5c4493([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x55a241,_0x55a241!=_0x5c4493([0x56,0x61,0x6c,0x69,0x64])&&_0x5f4c10();}function _0x662907(){const _0x55ae86=window[_0x5c4493([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x5c4493([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x5c4493([0x6e,0x6f,0x77])]())[_0x5c4493([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x5c4493([0x2e]),'');let _0xb2f8ab=_0x5c4493([0x66]);for(let _0x59b95d=0x0;_0x59b95d<_0x55ae86[_0x5c4493([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x59b95d+=0x2){let _0x11b485=window[_0x5c4493([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x55ae86[_0x5c4493([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x59b95d,_0x59b95d+0x2));_0x11b485>=_0x282678[_0x5c4493([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x11b485-=_0x282678[_0x5c4493([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0xb2f8ab+=_0x282678[_0x11b485];}return _0xb2f8ab;}function _0x4024ef(){const _0xd083cd=_0x23a95d[_0x5c4493([0x73,0x70,0x6c,0x69,0x74])](_0x5c4493([0x2e]));if(0x3!=_0xd083cd[_0x5c4493([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x271649(_0xd083cd[0x1]);function _0x271649(_0x333643){const _0x37cf5e=_0x5613e0(_0x333643);return _0x37cf5e&&_0x430f07()?_0x37cf5e:null;function _0x430f07(){const _0x2de40f=_0x37cf5e[_0x5c4493([0x6a,0x74,0x69])],_0x1736ae=window[_0x5c4493([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2de40f[_0x5c4493([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2de40f[_0x5c4493([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x59e47e={..._0x37cf5e,[_0x5c4493([0x6a,0x74,0x69])]:_0x2de40f[_0x5c4493([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x2de40f[_0x5c4493([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x59e47e[_0x5c4493([0x76,0x63])],_0x3a110e(_0x59e47e)==_0x1736ae;}}}async function _0x5daa17(){let _0x2217f2=!0x0;try{const _0x5c8aa9=_0x23a95d[_0x5c4493([0x73,0x70,0x6c,0x69,0x74])](_0x5c4493([0x2e])),[_0x800cad,_0xc5e632,_0x3ce5a8]=_0x5c8aa9;return _0x24d6bd(_0x800cad),await _0x2443ce(_0x800cad,_0xc5e632,_0x3ce5a8),_0x2217f2;}catch(_0x436db2){return!0x1;}function _0x24d6bd(_0x229206){const _0x1dc141=_0x5613e0(_0x229206);_0x1dc141&&_0x1dc141[_0x5c4493([0x61,0x6c,0x67])]==_0x5c4493([0x45,0x53,0x32,0x35,0x36])||(_0x2217f2=!0x1);}async function _0x2443ce(_0x55bf8b,_0x3ec209,_0x13deb9){const _0x4e6d28=window[_0x5c4493([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x5c4493([0x66,0x72,0x6f,0x6d])](_0x25a9aa(_0x13deb9),_0x5626c3=>_0x5626c3[_0x5c4493([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0xca070b=new window[(_0x5c4493([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x5c4493([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x55bf8b+_0x5c4493([0x2e])+_0x3ec209),_0x4b1278=window[_0x5c4493([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x5c4493([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x4b1278)return;const _0x40c7d9=await _0x4b1278[_0x5c4493([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x5c4493([0x6a,0x77,0x6b]),_0x4056f3,{[_0x5c4493([0x6e,0x61,0x6d,0x65])]:_0x5c4493([0x45,0x43,0x44,0x53,0x41]),[_0x5c4493([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x5c4493([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x5c4493([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x4b1278[_0x5c4493([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x5c4493([0x6e,0x61,0x6d,0x65])]:_0x5c4493([0x45,0x43,0x44,0x53,0x41]),[_0x5c4493([0x68,0x61,0x73,0x68])]:{[_0x5c4493([0x6e,0x61,0x6d,0x65])]:_0x5c4493([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x40c7d9,_0x4e6d28,_0xca070b)||(_0x2217f2=!0x1);}}function _0x5613e0(_0x498481){return _0x498481[_0x5c4493([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x5c4493([0x65,0x79]))?JSON[_0x5c4493([0x70,0x61,0x72,0x73,0x65])](_0x25a9aa(_0x498481)):null;}function _0x25a9aa(_0x5716aa){return window[_0x5c4493([0x61,0x74,0x6f,0x62])](_0x5716aa[_0x5c4493([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x5c4493([0x2b]))[_0x5c4493([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x5c4493([0x2f])));}function _0x3a110e(_0x2acb12){let _0x1eb5dc=0x1505;function _0x3907ab(_0x38fda9){for(let _0x557019=0x0;_0x557019<_0x38fda9[_0x5c4493([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x557019++){const _0x5d44ce=_0x38fda9[_0x5c4493([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x557019);_0x1eb5dc=(_0x1eb5dc<<0x5)+_0x1eb5dc+_0x5d44ce,_0x1eb5dc&=_0x1eb5dc;}}function _0x10cee6(_0x9b29fa){Array[_0x5c4493([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x9b29fa)?_0x9b29fa[_0x5c4493([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x10cee6):_0x9b29fa&&typeof _0x9b29fa==_0x5c4493([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x5c4493([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x9b29fa)[_0x5c4493([0x73,0x6f,0x72,0x74])]()[_0x5c4493([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x3e9736,_0x1d2244])=>{_0x3907ab(_0x3e9736),_0x10cee6(_0x1d2244);}):_0x3907ab(window[_0x5c4493([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x9b29fa));}return _0x10cee6(_0x2acb12),_0x1eb5dc>>>0x0;}function _0x4afa4b(_0x2d9120){return _0x2d9120[_0x5c4493([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x5c4493([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x5c4493([0x30]));}function _0x2cf618(_0x2ef276){return _0x2ef276[_0x5c4493([0x73,0x70,0x6c,0x69,0x74])]('')[_0x5c4493([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x5c4493([0x6a,0x6f,0x69,0x6e])]('');}function _0x17ef48(){}function _0x5c4493(_0x5bd189){const _0x2c386b=_0xd721;return _0x5bd189[_0x2c386b(0xd1)](_0x27b42b=>String[_0x2c386b(0x9d)](_0x27b42b))[_0x2c386b(0xd4)]('');}_0x4f9385(await _0x596398());}(this);}[_0x237162(0xc2)](){const _0x43915f=_0x237162,_0x3fee76=this[_0x43915f(0xe7)][_0x43915f(0xa7)][_0x43915f(0xcd)];_0x3fee76[_0x43915f(0xca)](_0x43915f(0xdb))&&_0x3fee76[_0x43915f(0xbd)](_0x43915f(0xdb),{'allowAttributes':[_0x43915f(0xe2)]}),_0x3fee76[_0x43915f(0xca)](_0x43915f(0xab))&&_0x3fee76[_0x43915f(0xbd)](_0x43915f(0xab),{'allowAttributes':[_0x43915f(0xe2)]});}[_0x237162(0x9f)](){const _0x51c0da=_0x237162,_0x22ae0e=this[_0x51c0da(0xe7)];_0x22ae0e[_0x51c0da(0xd3)][_0x51c0da(0xa4)](_0x51c0da(0xb8))[_0x51c0da(0xaa)]({'model':_0x51c0da(0xe2),'view':_0x51c0da(0xa2)}),_0x22ae0e[_0x51c0da(0xd3)][_0x51c0da(0xa4)](_0x51c0da(0xd0))[_0x51c0da(0xe3)]({'model':{'key':_0x51c0da(0xe2),'value':_0x422f08=>_0x422f08[_0x51c0da(0xaf)](_0x51c0da(0xa2))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x409c9d=_0x22ae0e[_0x51c0da(0xde)][_0x51c0da(0xae)](_0x51c0da(0xba));_0x409c9d&&this[_0x51c0da(0xe5)](_0x409c9d,_0x51c0da(0xc8),(_0x2e7498,[_0x578cda,_0x15fcee])=>{const _0x40d024=_0x51c0da;_0x578cda[_0x40d024(0xc1)](_0x40d024(0xe2),_0x15fcee);});}[_0x237162(0xbc)](){const _0x281ea5=_0x237162,_0x3d7bba=this[_0x281ea5(0xe7)][_0x281ea5(0xb6)][_0x281ea5(0xae)](_0x281ea5(0xc5))||{},_0x2e8363=this[_0x281ea5(0xe7)][_0x281ea5(0xb6)][_0x281ea5(0xae)](_0x281ea5(0xd6))||'';this[_0x281ea5(0x9b)]=_0x26cb4b(_0x286320[_0x281ea5(0xb7)],_0x281ea5(0xa1),{..._0x3d7bba,'pubkey':_0x2e8363,'ctx-name':_0x281ea5(0xd7),'sourceList':'','imgOnly':_0x281ea5(0xcf),'removeCopyright':_0x281ea5(0xcf),'localeName':this[_0x281ea5(0xe7)][_0x281ea5(0xb2)][_0x281ea5(0xd5)],'externalSourcesEmbedCss':_0x281ea5(0x9e)}),this[_0x281ea5(0x9b)][_0x281ea5(0xb9)]=_0x25608c=>{const _0x4c8865=_0x281ea5;if(_0x4c8865(0xdd)==_0x25608c)return _0x4c8865(0xa6);},_0x286320[_0x281ea5(0xb7)][_0x281ea5(0xbe)][_0x281ea5(0xb4)](this[_0x281ea5(0x9b)]);}[_0x237162(0xa3)](){const _0x4af657=_0x237162;this[_0x4af657(0xb5)]=_0x26cb4b(_0x286320[_0x4af657(0xb7)],_0x4af657(0xcb),{'ctx-name':_0x4af657(0xd7)}),_0x286320[_0x4af657(0xb7)][_0x4af657(0xbe)][_0x4af657(0xb4)](this[_0x4af657(0xb5)]);}[_0x237162(0xd2)](){const _0x6e6257=_0x237162,_0x519842=this[_0x6e6257(0xe7)][_0x6e6257(0xde)][_0x6e6257(0xae)](_0x6e6257(0xc0));_0x519842&&this[_0x6e6257(0xe5)](_0x519842,_0x6e6257(0xd8),()=>{const _0x14f6f3=_0x6e6257,_0x5d0365=this[_0x14f6f3(0xe7)][_0x14f6f3(0xa7)][_0x14f6f3(0xb7)][_0x14f6f3(0xc4)][_0x14f6f3(0xad)]();_0x5d0365&&_0x5d0365[_0x14f6f3(0xaf)](_0x14f6f3(0xe2))&&this[_0x14f6f3(0xe7)][_0x14f6f3(0x9a)][_0x14f6f3(0xce)][_0x14f6f3(0xc9)](_0x14f6f3(0xe9),()=>{const _0xfd50cf=_0x14f6f3;_0xb57d8c(this[_0xfd50cf(0xe7)],_0x5d0365);});});const _0x14b9b0=this[_0x6e6257(0xe7)][_0x6e6257(0xde)][_0x6e6257(0xae)](_0x6e6257(0xc7));_0x14b9b0&&this[_0x6e6257(0xe5)](_0x14b9b0,_0x6e6257(0xd8),()=>{const _0x4b1e04=_0x6e6257,_0x54d837=this[_0x4b1e04(0xe7)][_0x4b1e04(0xa7)][_0x4b1e04(0xb7)][_0x4b1e04(0xc4)][_0x4b1e04(0xad)]();_0x54d837&&_0x54d837[_0x4b1e04(0xaf)](_0x4b1e04(0xe2))&&this[_0x4b1e04(0xe7)][_0x4b1e04(0x9a)][_0x4b1e04(0xce)][_0x4b1e04(0xc9)](_0x4b1e04(0xe9),()=>{const _0x430553=_0x4b1e04;_0xb57d8c(this[_0x430553(0xe7)],_0x54d837);});});}}function _0x4e77(){const _0x1979c1=['uploader','execute','configElement','add','imageBlock','input[uploadcare-file-input]','closeMax','commands','href','init','isOfficialPlugin','uploadcareImageId','elementToAttribute','ctxElement','listenTo','339399bwiqYN','editor','50751437bZjPzn','render','afterInit','destroy','50zaCvSD','PictureEditing','96eLwRRV','editing','_configElement','136311gdwUbN','fromCharCode','\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','_initConversion','requires','uc-config','data-uc-image-id','_initCtx','for','305220dIdqaX','#uc-icon-arrow-down','model','pluginName','UploadcareEditing','attributeToAttribute','imageInline','uploadcare','getSelectedElement','get','getAttribute','remove','1yJSXGa','locale','querySelector','appendChild','_ctxElement','config','document','downcast','iconHrefResolver','replaceImageSource','1879310McWVrN','_initConfig','extend','body','isPremiumPlugin','insertImage','removeAttribute','_initSchema','4698892ElPtAw','selection','uploadcare.uploader','50dTHrUi','uploadcareImageReplace','cleanupImage','once','isRegistered','uc-upload-ctx-provider','3933840JHnYLi','schema','view','true','upcast','map','_initImageProcessingIndicator','conversion','join','contentLanguage','uploadcare.pubkey'];_0x4e77=function(){return _0x1979c1;};return _0x4e77();}