@ckeditor/ckeditor5-uploadcare 0.0.0-nightly-20250503.0 → 0.0.0-nightly-20250505.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 _0x3606f6,Command as _0x4fd31f}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0xe4572e,IconGooglePhotos as _0x4557a2,IconGoogleDrive as _0x5e88cf,IconFacebook as _0x1a1641,IconDropbox as _0x262f22,IconUploadcareLink as _0x4f6ddf,IconUploadcareImageUpload as _0x563d86,IconError as et,IconUploadcareImageEdit as _0x362ba4}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x2d512b,MenuBarMenuListItemButtonView as _0x389217,View as _0xbd770d,FocusCycler as _0x238d15,Dialog as _0x36d1ac,DialogViewPosition as _0x389cdc,SpinnerView as _0x7ce7f8,IconView as at,Notification as _0x32aa75}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x44ead2,DomEmitterMixin as _0x25525d,global as _0x252734,getAncestors as _0x30b303,ObservableMixin as _0x5c0e32,createElement as _0xfe1c4c,uid as _0x100da4}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x3b3fb3}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x310acc,info as _0x2949d2}from'@uploadcare/upload-client';import*as _0x1e7e08 from'@uploadcare/file-uploader';var o=function(_0x3e036a){return _0x3e036a['Local']='local',_0x3e036a['URL']='url',_0x3e036a['Dropbox']='dropbox',_0x3e036a['GDrive']='gdrive',_0x3e036a['Facebook']='facebook',_0x3e036a['GPhotos']='gphotos',_0x3e036a['OneDrive']='onedrive',_0x3e036a;}({});function _(_0x2282ef,_0xc95988,_0x28aba7){const t=_0x2282ef['t'],_0x52b144=_0x2282ef['t'];switch(_0xc95988){case o['Local']:return{'text':_0x52b144('Insert'===_0x28aba7?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x52b144('From\x20computer')};case o['URL']:return{'text':'Insert'===_0x28aba7?_0x52b144('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x52b144('Via\x20URL')};case o['Dropbox']:return{'text':t('Insert'===_0x28aba7?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case o['Facebook']:return{'text':t('Insert'===_0x28aba7?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case o['GDrive']:return{'text':t('Insert'===_0x28aba7?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case o['GPhotos']:return{'text':t('Insert'===_0x28aba7?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case o['OneDrive']:return{'text':t('Insert'===_0x28aba7?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0xc95988;}}class e extends _0x3606f6{['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 _0x48bea0=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x40c258;for(const _0x8ae1dd in _0x48bea0){const _0x513ed3=_0x8ae1dd,_0x39d2f5=_0x48bea0[_0x513ed3];if('uploadcareLicenseKeyValid'==_0x39d2f5||'uploadcareLicenseKeyInvalid'==_0x39d2f5||'uploadcareLicenseKeyExpired'==_0x39d2f5||'uploadcareLicenseKeyDomainLimit'==_0x39d2f5||'uploadcareLicenseKeyNotAllowed'==_0x39d2f5||'uploadcareLicenseKeyEvaluationLimit'==_0x39d2f5||'uploadcareLicenseKeyTrialLimit'==_0x39d2f5||'uploadcareLicenseKeyUsageLimit'==_0x39d2f5){delete _0x48bea0[_0x513ed3],_0x40c258=_0x39d2f5,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x40c258&&_0x48bea0['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x40c258&&_0x48bea0['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x40c258&&_0x48bea0['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x40c258&&_0x48bea0['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x40c258&&_0x48bea0['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyTrialLimit'==_0x40c258&&_0x48bea0['_showLicenseError']('trialLimit'),'uploadcareLicenseKeyUsageLimit'==_0x40c258&&_0x48bea0['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x4e7a16}=this,_0x2ed89e=_0x4e7a16['commands']['get']('uploadcare');if(!_0x2ed89e)return;const _0x52de29=this['_normalizeConfigSourceList'](_0x4e7a16['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x799ee4,_0x3693d5)=>{const _0xea57ed=this['_getIntegrationKey'](_0x3693d5['type']);return _0x799ee4[_0xea57ed]||(_0x799ee4[_0xea57ed]=[]),_0x799ee4[_0xea57ed]['push'](_0x3693d5),_0x799ee4;},{});_0x4e7a16['plugins']['has']('ImageInsertUI')&&_0x4e7a16['commands']['get']('uploadcare')&&Object['entries'](_0x52de29)['forEach'](([_0x55df84,_0x2a22bd])=>{_0x4e7a16['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x55df84,'observable':()=>_0x2ed89e,'buttonViewCreator':()=>this['_createToolbarButton'](_0x2a22bd),'formViewCreator':()=>this['_createDropdownButtons'](_0x2a22bd),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x2a22bd),'override':'assetManager'!==_0x55df84});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x205543){const {locale:_0x568ca8}=this['editor'];return _0x205543['map'](_0x408c52=>{const _0xe69065=_(_0x568ca8,_0x408c52,'Insert');switch(_0x408c52){case o['Local']:return{'icon':_0x563d86,'type':o['Local'],..._0xe69065};case o['URL']:return{'icon':_0x4f6ddf,'type':o['URL'],..._0xe69065};case o['Dropbox']:return{'icon':_0x262f22,'type':o['Dropbox'],..._0xe69065};case o['Facebook']:return{'icon':_0x1a1641,'type':o['Facebook'],..._0xe69065};case o['GDrive']:return{'icon':_0x5e88cf,'type':o['GDrive'],..._0xe69065};case o['GPhotos']:return{'icon':_0x4557a2,'type':o['GPhotos'],..._0xe69065};case o['OneDrive']:return{'icon':_0xe4572e,'type':o['OneDrive'],..._0xe69065};}});}['_getIntegrationKey'](_0x15d7b6){switch(_0x15d7b6){case o['Local']:return'upload';case o['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x50f9dc,_0x85ec7f){const _0x1c65d9=this['editor'],_0x5cd9a4=new _0x50f9dc(_0x1c65d9['locale']),_0x261b3f=_0x1c65d9['commands']['get']('uploadcare');return _0x5cd9a4['bind']('isEnabled')['to'](_0x261b3f),_0x5cd9a4['on']('execute',()=>{_0x261b3f['execute'](_0x85ec7f);}),_0x5cd9a4;}['_createToolbarButton'](_0x15409d){const {locale:_0x52713b}=this['editor'],_0x46acdc=this['editor']['plugins']['get']('ImageInsertUI'),_0x3d3d13=_0x15409d[0x0],_0x575419=this['_createButton'](_0x2d512b,_0x3d3d13['type']);return _0x575419['icon']=_0x3d3d13['icon'],_0x575419['bind']('label')['to'](_0x46acdc,'isImageSelected',_0x14d1b4=>_(_0x52713b,_0x3d3d13['type'],_0x14d1b4?'Replace':'Insert')['text']),_0x575419['tooltip']=!0x0,_0x575419;}['_createDropdownButtons'](_0x47a842){const {locale:_0x48bcac}=this['editor'],_0x37a38d=this['editor']['plugins']['get']('ImageInsertUI');return _0x47a842['map'](_0x563069=>{const _0xe02693=this['_createButton'](_0x2d512b,_0x563069['type']);return _0xe02693['withText']=!0x0,_0xe02693['icon']=_0x563069['icon'],_0xe02693['bind']('label')['to'](_0x37a38d,'isImageSelected',_0x213787=>_(_0x48bcac,_0x563069['type'],_0x213787?'Replace':'Insert')['text']),_0xe02693;});}['_createMenuBarButtons'](_0x123d7c){return _0x123d7c['map'](_0x33d8fc=>{const _0x250295=this['_createButton'](_0x389217,_0x33d8fc['type']);return _0x250295['icon']=_0x33d8fc['icon'],_0x250295['label']=_0x33d8fc['shortText'],_0x250295;});}}class q extends _0xbd770d{['focusTracker'];['focusCycler'];constructor(_0x7eeb95){super(_0x7eeb95),this['focusTracker']=new _0x44ead2(),this['focusCycler']=new _0x238d15({'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(_0x1cc5ae){super(_0x1cc5ae),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(_0x38d10f,_0xbf5911){const _0x2ce40b=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x374fd8=>_0x374fd8<=_0xbf5911)['map'](_0x2cde42=>_0x38d10f['replace'](/\/$/,'')+'/-/resize/'+_0x2cde42+'x/\x20'+_0x2cde42+'w');return{'imageFallbackUrl':_0x38d10f,'imageSources':[{'srcset':_0x2ce40b['join'](',\x20'),'sizes':'(max-width:\x20'+_0xbf5911+'px)\x20100vw,\x20'+_0xbf5911+'px','type':'image/webp'}]};}function A(_0x1a159e,_0x54e6f5,_0x3ad452){const _0x261711=_0x1a159e['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x261711?parseInt(_0x261711[0x1],0xa):_0x54e6f5,'height':_0x261711?parseInt(_0x261711[0x2],0xa):_0x3ad452};}function m(_0x45d45f,_0x24e1b1){const _0x1d6690=Object['create'](_0x25525d),_0x34de5a=_0x45d45f['plugins']['get']('ImageUtils'),_0x2607da=_0x45d45f['editing']['mapper']['toViewElement'](_0x24e1b1),_0x514465=_0x34de5a['findViewImgElement'](_0x2607da),_0x28f226=_0x45d45f['editing']['view']['domConverter']['viewToDom'](_0x514465),_0x20432d=_0x24e1b1['getAttribute']('width'),_0x359336=_0x24e1b1['getAttribute']('height'),_0x4fd4b5='image-processing';_0x45d45f['editing']['view']['change'](_0x3e430e=>{_0x3e430e['addClass'](_0x4fd4b5,_0x2607da),_0x3e430e['setStyle']('aspect-ratio',_0x20432d+'/'+_0x359336,_0x514465);}),_0x1d6690['listenTo'](_0x28f226,'load',()=>{_0x1d6690['stopListening'](_0x28f226,'load'),_0x45d45f['editing']['view']['change'](_0x35ed07=>{_0x35ed07['removeClass'](_0x4fd4b5,_0x2607da),_0x35ed07['removeStyle']('aspect-ratio',_0x514465);});});}function V(_0xa7760a){if(Array['isArray'](_0xa7760a)){const _0x3e2ea7=_0xa7760a['map'](V);return _0x598808=>_0x3e2ea7['some'](_0x239312=>_0x239312(_0x598808));}if('origin'==_0xa7760a){const _0x3408a0=_0x252734['window']['location']['origin'];return _0x379140=>new URL(_0x379140,_0x252734['document']['baseURI'])['origin']==_0x3408a0;}return'function'==typeof _0xa7760a?_0xa7760a:_0xa7760a instanceof RegExp?_0x3f3066=>!(!_0x3f3066['match'](_0xa7760a)&&!_0x3f3066['replace'](/^https?:\/\//,'')['match'](_0xa7760a)):()=>!0x1;}function F(_0x3830e0,_0x1b16c2){return _0x30b303(_0x3830e0['target'])['includes'](_0x1b16c2);}class l extends/* #__PURE__ -- @preserve */
24
- _0x5c0e32(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0xe11cea,_0x522b8e,_0x1bbba1){super(),this['_editor']=_0xe11cea,this['_editing']=_0x522b8e,this['_dialog']=_0xe11cea['plugins']['get'](_0x36d1ac),this['_api']=_0x522b8e['ctxElement']['getAPI'](),this['_type']=_0x1bbba1,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:_0x1b421,model:_0xcb0edd}=this['_editor'],_0x522648=_0xcb0edd['document']['selection']['getSelectedElement'](),_0x15e25e=_0x522648&&(_0x522648['is']('element','imageBlock')||_0x522648['is']('element','imageInline'));this['_formView']=new S(_0x1b421),this['_dialog']['show']({'id':'uploadCare','icon':_0x563d86,'title':_(_0x1b421,this['_type'],_0x15e25e?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x389cdc['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x27b873=>!F(_0x27b873,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x50858a}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x29fb8a=>{const _0x48f8b5=_0x50858a['length'];for(const _0xb29e15 of _0x50858a){const _0x7a3c0d=_0xb29e15===_0x50858a[_0x48f8b5-0x1],{cdnUrl:_0x3dd211,fileInfo:_0x46763b}=_0xb29e15;if(!_0x3dd211||!_0x46763b)continue;const {width:_0x4a94ff,height:_0x5a0325}=_0x46763b['imageInfo'],_0x4de7d8=A(_0x3dd211,_0x4a94ff,_0x5a0325),_0x158a05=E(_0x3dd211,_0x4de7d8['width']),_0x560010={'id':_0x46763b['uuid'],'type':'image','attributes':{'imageDimension':_0x4de7d8,..._0x158a05}};this['_insertAsset'](_0x560010,_0x7a3c0d,_0x29fb8a);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x502109=>{'idle'===_0x502109['detail']['status']&&!_0x502109['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===o['Local']?this['_api']['setCurrentActivity'](o['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x23f51a,_0x568af8,_0x5a653c){const _0xd32f70=this['_editor']['model']['document']['selection'],_0xf58888=_0xd32f70['getSelectedElement'](),_0x246253=!(!_0xf58888||!_0xf58888['is']('element','imageInline'));_0x5a653c['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x23f51a,_0x246253),_0x568af8||_0x5a653c['setSelection'](_0xd32f70['getLastPosition']());}['_insertImage'](_0x5474b4,_0x588db7){const _0x5581b0=this['_editor'],{imageDimension:_0x21469f,imageFallbackUrl:_0x8a27d2,imageSources:_0x3b2716}=_0x5474b4['attributes'];_0x5581b0['execute']('insertImage',{'imageType':_0x588db7?'imageInline':null,'source':{'uploadcareImageId':_0x5474b4['id'],'src':_0x8a27d2,'sources':_0x3b2716,..._0x21469f}});}}class n extends _0x4fd31f{['_editing'];['_controller']=null;static get['requires'](){return[_0x36d1ac,i];}constructor(_0x66b039){super(_0x66b039),this['_editing']=_0x66b039['plugins']['get'](i);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x23d16e){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new l(this['editor'],this['_editing'],_0x23d16e);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class C{static['upload']({file:_0x3ad641,publicKey:_0x1a3d74,signal:_0x4c906a,onProgress:_0x550bbb}){return _0x310acc(_0x3ad641,{'publicKey':_0x1a3d74,'store':'auto','signal':_0x4c906a,'onProgress':_0x550bbb});}static['getInfo'](_0x983bb2,_0x499f7e){return _0x2949d2(_0x983bb2,_0x499f7e);}}class p extends _0x3606f6{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x3b3fb3,i];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x196092=this['editor'];if(!!!_0x196092['config']['get']('uploadcare'))return;_0x196092['plugins']['get'](_0x3b3fb3)['createUploadAdapter']=_0x2771e6=>new x(_0x2771e6,_0x196092),_0x196092['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x5da6b8,{imageElement:_0x5b01ee,data:_0xe52636})=>{_0x196092['model']['change'](_0x4e3f49=>{_0x4e3f49['setAttribute']('uploadcareImageId',_0xe52636['uploadcareImageId'],_0x5b01ee);});});}}class x{['loader'];['editor'];['controller'];constructor(_0x387ce8,_0x21eb7d){this['loader']=_0x387ce8,this['editor']=_0x21eb7d,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x2cfb1b=this['editor']['config']['get']('uploadcare.pubkey'),_0x5a174e=await this['loader']['file'];return C['upload']({'file':_0x5a174e,'publicKey':_0x2cfb1b,'signal':this['controller']['signal'],'onProgress':_0x47d38d=>{_0x47d38d&&_0x47d38d['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x47d38d['value']);}})['then'](async _0x41ed0d=>{const {imageFallbackUrl:_0x3f85ed,imageSources:_0x290bde}=E(_0x41ed0d['cdnUrl'],_0x41ed0d['imageInfo']['width']);return{'uploadcareImageId':_0x41ed0d['uuid'],'default':_0x3f85ed,'sources':_0x290bde};})['catch'](()=>{const _0x3c0369=t('Cannot\x20upload\x20file:')+('\x20'+_0x5a174e['name']+'.');return Promise['reject'](_0x3c0369);});}['abort'](){this['controller']['abort']();}}class i extends _0x3606f6{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',p,_0x36d1ac];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}['init'](){const _0x421cd1=this['editor'];_0x421cd1['commands']['add']('uploadcare',new n(_0x421cd1));}['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 _0x153634=_0x252734['document']['querySelector']('input[uploadcare-file-input]');_0x153634&&_0x153634['remove']();}),async function(_0x1a224c){const _0x1e0859=_0x467197([0x32,0x5a,0x6e,0x67,0x78,0x72,0x65,0x61,0x49,0x41,0x68,0x58,0x74,0x6a,0x73,0x51,0x75,0x63,0x4b,0x4e,0x47,0x31,0x39,0x46,0x34,0x30,0x44,0x4c,0x4f,0x48,0x76,0x56,0x36,0x45,0x53,0x38,0x77,0x4d,0x7a,0x55,0x79,0x4a,0x62,0x70,0x37,0x57,0x50,0x6b,0x54,0x64,0x43,0x6f,0x71,0x33,0x35,0x69,0x52,0x6d,0x59,0x6c,0x42,0x66]),_0x863729=0xc73dc82,_0x26b836=0xc74ba4a^_0x863729,_0x398028=window[_0x467197([0x44,0x61,0x74,0x65])][_0x467197([0x6e,0x6f,0x77])](),_0x100c12=_0x1a224c[_0x467197([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x237411=new window[(_0x467197([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x331eca=>{_0x100c12[_0x467197([0x6f,0x6e,0x63,0x65])](_0x467197([0x72,0x65,0x61,0x64,0x79]),_0x331eca);}),_0x1c2ddd={[_0x467197([0x6b,0x74,0x79])]:_0x467197([0x45,0x43]),[_0x467197([0x75,0x73,0x65])]:_0x467197([0x73,0x69,0x67]),[_0x467197([0x63,0x72,0x76])]:_0x467197([0x50,0x2d,0x32,0x35,0x36]),[_0x467197([0x78])]:_0x467197([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]),[_0x467197([0x79])]:_0x467197([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]),[_0x467197([0x61,0x6c,0x67])]:_0x467197([0x45,0x53,0x32,0x35,0x36])},_0x2ed366=_0x100c12[_0x467197([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x467197([0x67,0x65,0x74])](_0x467197([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x31e6ee(){let _0x52c584,_0x56a9a1=null,_0x5c47e7=null;try{if(_0x2ed366==_0x467197([0x47,0x50,0x4c]))return _0x467197([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x52c584=_0x57e1fc(),!_0x52c584)return _0x467197([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x52c584[_0x467197([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x5c47e7=_0xf8b1b7(_0x52c584[_0x467197([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x52c584[_0x467197([0x6a,0x74,0x69])])),await _0x5b1cd5()?_0x28e44c()?_0x28fb3e()?_0x467197([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x44c9e9()?(_0x52c584[_0x467197([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x467197([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x56a9a1=_0x47f7b4(_0x467197([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x52c584[_0x467197([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x467197([0x74,0x72,0x69,0x61,0x6c])&&(_0x56a9a1=_0x47f7b4(_0x467197([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x9ca430()):_0x467197([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x467197([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x467197([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x5e7ff2){return _0x467197([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x28fb3e(){const _0x4f9727=[_0x467197([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x467197([0x74,0x72,0x69,0x61,0x6c])][_0x467197([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x52c584[_0x467197([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x398028/0x3e8:0xe10*_0x26b836;return _0x52c584[_0x467197([0x65,0x78,0x70])]<_0x4f9727;}function _0x28e44c(){const _0x38647a=_0x52c584[_0x467197([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x38647a&&(!!_0x38647a[_0x467197([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x467197([0x2a]))||!!_0x38647a[_0x467197([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x467197([0x55,0x50,0x4c,0x43])));}function _0x44c9e9(){const _0x58e070=_0x52c584[_0x467197([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x58e070||0x0==_0x58e070[_0x467197([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x111da7}=new URL(window[_0x467197([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x58e070[_0x467197([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x111da7))return!0x0;const _0x595bcf=_0x111da7[_0x467197([0x73,0x70,0x6c,0x69,0x74])](_0x467197([0x2e]));return _0x58e070[_0x467197([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x2bb560=>_0x2bb560[_0x467197([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x467197([0x2a])))[_0x467197([0x6d,0x61,0x70])](_0x4ee2e0=>_0x4ee2e0[_0x467197([0x73,0x70,0x6c,0x69,0x74])](_0x467197([0x2e])))[_0x467197([0x73,0x6f,0x6d,0x65])](_0x197f9c=>_0x595bcf[_0x467197([0x65,0x76,0x65,0x72,0x79])]((_0x21e70c,_0x298ac0)=>_0x197f9c[_0x298ac0]===_0x21e70c||_0x197f9c[_0x298ac0]===_0x467197([0x2a])));}function _0x9ca430(){return _0x56a9a1&&_0x5c47e7?new window[(_0x467197([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x5cfeba,_0x260c21)=>{_0x56a9a1[_0x467197([0x74,0x68,0x65,0x6e])](_0x5cfeba,_0x260c21),_0x5c47e7[_0x467197([0x74,0x68,0x65,0x6e])](_0x1f2f20=>{_0x1f2f20!=_0x467197([0x56,0x61,0x6c,0x69,0x64])&&_0x5cfeba(_0x1f2f20);},_0x260c21);}):_0x56a9a1||_0x5c47e7||_0x467197([0x56,0x61,0x6c,0x69,0x64]);}}function _0xf8b1b7(_0x5a084a,_0x13cccb){return new window[(_0x467197([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x49551a=>{if(_0x396368())return _0x49551a(_0x467197([0x56,0x61,0x6c,0x69,0x64]));_0x2b9e90(),_0x100c12[_0x467197([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x467197([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x6d6880=!0x1;const _0x1b975f=_0x100da4();function _0x1c2917(_0x5293f8){return!!_0x5293f8&&(typeof _0x5293f8===_0x467197([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x5293f8===_0x467197([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x5293f8[_0x467197([0x74,0x68,0x65,0x6e])]===_0x467197([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x5293f8[_0x467197([0x63,0x61,0x74,0x63,0x68])]===_0x467197([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x34c218(_0x17bd52){_0x2879d0(_0x17bd52)[_0x467197([0x74,0x68,0x65,0x6e])](_0x304ff1=>{if(!_0x304ff1||_0x304ff1[_0x467197([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x467197([0x6f,0x6b]))return _0x467197([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x526321(_0x54fd1a(_0x1b975f+_0x13cccb))!=_0x304ff1[_0x467197([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x467197([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x467197([0x56,0x61,0x6c,0x69,0x64]);})[_0x467197([0x74,0x68,0x65,0x6e])](_0x27f7ab=>(_0x1d39d1(),_0x27f7ab),()=>{const _0xbebea2=_0x160cd0();return null==_0xbebea2?(_0x1d39d1(),_0x467197([0x56,0x61,0x6c,0x69,0x64])):_0x467197(_0x398028-_0xbebea2>(0x287f5882^_0x863729)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x467197([0x74,0x68,0x65,0x6e])](_0x49551a)[_0x467197([0x63,0x61,0x74,0x63,0x68])](()=>{_0x49551a(_0x467197([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x1014db=0xc453202^_0x863729;function _0x1d39d1(){const _0x3e2e11=_0x467197([0x6c,0x6c,0x63,0x74,0x2d])+_0x526321(_0x54fd1a(_0x5a084a)),_0x127dc9=_0x2f2e57(_0x526321(window[_0x467197([0x4d,0x61,0x74,0x68])][_0x467197([0x63,0x65,0x69,0x6c])](_0x398028/_0x1014db)));window[_0x467197([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x467197([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3e2e11,_0x127dc9);}function _0x160cd0(){const _0x1cea46=_0x467197([0x6c,0x6c,0x63,0x74,0x2d])+_0x526321(_0x54fd1a(_0x5a084a)),_0x5885a6=window[_0x467197([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x467197([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1cea46);return _0x5885a6?window[_0x467197([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2f2e57(_0x5885a6),0x10)*_0x1014db:null;}function _0x2879d0(_0x54c8f4){return new window[(_0x467197([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x19be18,_0x1f5ee3)=>{_0x54c8f4[_0x467197([0x74,0x68,0x65,0x6e])](_0x19be18,_0x1f5ee3),window[_0x467197([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x1f5ee3,0xc720842^_0x863729);});}}_0x100c12[_0x467197([0x6f,0x6e])](_0x467197([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x251a41,_0x43ee19)=>{if(_0x43ee19[0x0]!=_0x5a084a)return _0x49551a(_0x467197([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x43ee19[0x1]={..._0x43ee19[0x1],[_0x467197([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x1b975f};},{[_0x467197([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x467197([0x68,0x69,0x67,0x68])}),_0x100c12[_0x467197([0x6f,0x6e])](_0x467197([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x44e247=>{_0x1c2917(_0x44e247[_0x467197([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x6d6880=!0x0,_0x34c218(_0x44e247[_0x467197([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x467197([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x467197([0x6c,0x6f,0x77])}),_0x237411[_0x467197([0x74,0x68,0x65,0x6e])](()=>{_0x6d6880||_0x49551a(_0x467197([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x396368(){return _0x100c12[_0x467197([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x467197([0x76,0x69,0x65,0x77])][_0x467197([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x467197([0x61,0x75,0x74,0x6f]);}function _0x2b9e90(){_0x100c12[_0x467197([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x467197([0x76,0x69,0x65,0x77])][_0x467197([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x467197([0x61,0x75,0x74,0x6f]);}}function _0x47f7b4(_0xc00306){const _0x438d68=[new window[(_0x467197([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x56da48=>setTimeout(_0x56da48,0xc7ae24e^_0x863729)),_0x237411[_0x467197([0x74,0x68,0x65,0x6e])](()=>new window[(_0x467197([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4c04ec=>{let _0x2691dc=0x0;_0x100c12[_0x467197([0x6d,0x6f,0x64,0x65,0x6c])][_0x467197([0x6f,0x6e])](_0x467197([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x368861,_0x7328db)=>{_0x7328db[0x0][_0x467197([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x2691dc++,_0x2691dc==(0xc73dd7a^_0x863729)&&(_0x4c04ec(),_0x368861[_0x467197([0x6f,0x66,0x66])]());});}))];return window[_0x467197([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x467197([0x72,0x61,0x63,0x65])](_0x438d68)[_0x467197([0x74,0x68,0x65,0x6e])](()=>_0xc00306);}async function _0x3a9aee(){await _0x237411,_0x100c12[_0x467197([0x6d,0x6f,0x64,0x65,0x6c])][_0x467197([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x50c579,_0x100c12[_0x467197([0x6d,0x6f,0x64,0x65,0x6c])][_0x467197([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x50c579,_0x100c12[_0x467197([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x467197([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x56b2c5(_0x4e6a82){const _0x35cd8a=_0x2365c4();_0x100c12[_0x35cd8a]=_0x467197([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x4e6a82,_0x4e6a82!=_0x467197([0x56,0x61,0x6c,0x69,0x64])&&_0x3a9aee();}function _0x2365c4(){const _0xcab25e=window[_0x467197([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x467197([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x467197([0x6e,0x6f,0x77])]())[_0x467197([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x467197([0x2e]),'');let _0xf3a7e6=_0x467197([0x5a]);for(let _0xfa1d50=0x0;_0xfa1d50<_0xcab25e[_0x467197([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0xfa1d50+=0x2){let _0x3dc4ed=window[_0x467197([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xcab25e[_0x467197([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0xfa1d50,_0xfa1d50+0x2));_0x3dc4ed>=_0x1e0859[_0x467197([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x3dc4ed-=_0x1e0859[_0x467197([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0xf3a7e6+=_0x1e0859[_0x3dc4ed];}return _0xf3a7e6;}function _0x57e1fc(){const _0x291e67=_0x2ed366[_0x467197([0x73,0x70,0x6c,0x69,0x74])](_0x467197([0x2e]));if(0x3!=_0x291e67[_0x467197([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x4c626a(_0x291e67[0x1]);function _0x4c626a(_0x337481){const _0x1c6740=_0x39a560(_0x337481);return _0x1c6740&&_0x43da9c()?_0x1c6740:null;function _0x43da9c(){const _0x4c33fe=_0x1c6740[_0x467197([0x6a,0x74,0x69])],_0x394156=window[_0x467197([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4c33fe[_0x467197([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4c33fe[_0x467197([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x14c876={..._0x1c6740,[_0x467197([0x6a,0x74,0x69])]:_0x4c33fe[_0x467197([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x4c33fe[_0x467197([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x14c876[_0x467197([0x76,0x63])],_0x54fd1a(_0x14c876)==_0x394156;}}}async function _0x5b1cd5(){let _0x48f60d=!0x0;try{const _0x4e08b7=_0x2ed366[_0x467197([0x73,0x70,0x6c,0x69,0x74])](_0x467197([0x2e])),[_0xebd77f,_0x5d2176,_0x53cdb5]=_0x4e08b7;return _0x69dc96(_0xebd77f),await _0xd53600(_0xebd77f,_0x5d2176,_0x53cdb5),_0x48f60d;}catch(_0x450ba2){return!0x1;}function _0x69dc96(_0x31cfc9){const _0x117f06=_0x39a560(_0x31cfc9);_0x117f06&&_0x117f06[_0x467197([0x61,0x6c,0x67])]==_0x467197([0x45,0x53,0x32,0x35,0x36])||(_0x48f60d=!0x1);}async function _0xd53600(_0x435131,_0x2f8439,_0x3bb59d){const _0xa1e756=window[_0x467197([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x467197([0x66,0x72,0x6f,0x6d])](_0xa1c166(_0x3bb59d),_0x4c27c0=>_0x4c27c0[_0x467197([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x3a00d6=new window[(_0x467197([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x467197([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x435131+_0x467197([0x2e])+_0x2f8439),_0x5af736=window[_0x467197([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x467197([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x5af736)return;const _0x3acce=await _0x5af736[_0x467197([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x467197([0x6a,0x77,0x6b]),_0x1c2ddd,{[_0x467197([0x6e,0x61,0x6d,0x65])]:_0x467197([0x45,0x43,0x44,0x53,0x41]),[_0x467197([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x467197([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x467197([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x5af736[_0x467197([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x467197([0x6e,0x61,0x6d,0x65])]:_0x467197([0x45,0x43,0x44,0x53,0x41]),[_0x467197([0x68,0x61,0x73,0x68])]:{[_0x467197([0x6e,0x61,0x6d,0x65])]:_0x467197([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x3acce,_0xa1e756,_0x3a00d6)||(_0x48f60d=!0x1);}}function _0x39a560(_0x15724c){return _0x15724c[_0x467197([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x467197([0x65,0x79]))?JSON[_0x467197([0x70,0x61,0x72,0x73,0x65])](_0xa1c166(_0x15724c)):null;}function _0xa1c166(_0x4cf8aa){return window[_0x467197([0x61,0x74,0x6f,0x62])](_0x4cf8aa[_0x467197([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x467197([0x2b]))[_0x467197([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x467197([0x2f])));}function _0x54fd1a(_0x2bebe5){let _0x585c8d=0x1505;function _0x2d7d32(_0x5e8c2d){for(let _0x2c7b6e=0x0;_0x2c7b6e<_0x5e8c2d[_0x467197([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2c7b6e++){const _0x3f11a8=_0x5e8c2d[_0x467197([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x2c7b6e);_0x585c8d=(_0x585c8d<<0x5)+_0x585c8d+_0x3f11a8,_0x585c8d&=_0x585c8d;}}function _0x18e74e(_0xc23102){Array[_0x467197([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0xc23102)?_0xc23102[_0x467197([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x18e74e):_0xc23102&&typeof _0xc23102==_0x467197([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x467197([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0xc23102)[_0x467197([0x73,0x6f,0x72,0x74])]()[_0x467197([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x28b2fe,_0x5b5b4e])=>{_0x2d7d32(_0x28b2fe),_0x18e74e(_0x5b5b4e);}):_0x2d7d32(window[_0x467197([0x53,0x74,0x72,0x69,0x6e,0x67])](_0xc23102));}return _0x18e74e(_0x2bebe5),_0x585c8d>>>0x0;}function _0x526321(_0x5e8874){return _0x5e8874[_0x467197([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x467197([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x467197([0x30]));}function _0x2f2e57(_0x124cee){return _0x124cee[_0x467197([0x73,0x70,0x6c,0x69,0x74])]('')[_0x467197([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x467197([0x6a,0x6f,0x69,0x6e])]('');}function _0x50c579(){}function _0x467197(_0xe1262){return _0xe1262['map'](_0x42ac04=>String['fromCharCode'](_0x42ac04))['join']('');}_0x56b2c5(await _0x31e6ee());}(this);}['_initSchema'](){const _0xcc71e0=this['editor']['model']['schema'];_0xcc71e0['isRegistered']('imageBlock')&&_0xcc71e0['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0xcc71e0['isRegistered']('imageInline')&&_0xcc71e0['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x54ce5d=this['editor'];_0x54ce5d['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x54ce5d['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x365133=>_0x365133['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x379fb3=_0x54ce5d['commands']['get']('replaceImageSource');_0x379fb3&&this['listenTo'](_0x379fb3,'cleanupImage',(_0x3c8af8,[_0x151958,_0x452fd8])=>{_0x151958['removeAttribute']('uploadcareImageId',_0x452fd8);});}['_initConfig'](){const _0x49224d=this['editor']['config']['get']('uploadcare.uploader')||{},_0x3cfa84=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0xfe1c4c(_0x252734['document'],'uc-config',{..._0x49224d,'pubkey':_0x3cfa84,'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']=_0x245f2a=>{if('closeMax'==_0x245f2a)return'#uc-icon-arrow-down';},_0x252734['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0xfe1c4c(_0x252734['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader'}),_0x252734['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x4e7545=this['editor']['commands']['get']('insertImage');_0x4e7545&&this['listenTo'](_0x4e7545,'execute',()=>{const _0x4ecf89=this['editor']['model']['document']['selection']['getSelectedElement']();_0x4ecf89&&_0x4ecf89['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{m(this['editor'],_0x4ecf89);});});const _0x579738=this['editor']['commands']['get']('uploadcareImageReplace');_0x579738&&this['listenTo'](_0x579738,'execute',()=>{const _0x3c812b=this['editor']['model']['document']['selection']['getSelectedElement']();_0x3c812b&&_0x3c812b['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{m(this['editor'],_0x3c812b);});});}}class u extends _0x3606f6{static get['requires'](){return[i,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x3a9175){super(_0x3a9175),_0x3a9175['config']['define']('uploadcare.uploader.sourceList',[o['Local'],o['URL']]),_0x1e7e08['defineComponents'](_0x1e7e08);}}class ta extends _0xbd770d{constructor(_0x50f740){super(_0x50f740);const t=_0x50f740['t'],_0xf99b99=this['bindTemplate'],_0x552db2=new _0x7ce7f8();_0x552db2['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':[_0x552db2,{'text':_0xf99b99['to']('imageUploadProgress',_0x2e52be=>t('Loading\x20image...')+'\x20('+(_0x2e52be||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 _0xbd770d{constructor(_0x39871d){super(_0x39871d);const t=_0x39871d['t'];this['set']('errorType',null);const _0x1a19ab=new _0x2d512b(_0x39871d);_0x1a19ab['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x1a19ab['withText']=!0x0,_0x1a19ab['class']='ck-button-action',_0x1a19ab['on']('execute',()=>{this['fire']('retry');}),_0x1a19ab['bind']('isVisible')['to'](this,'errorType',_0x2363ee=>'NotFound'!==_0x2363ee);const _0x52332a=new at();_0x52332a['content']=et,_0x52332a['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x4119c8=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':[_0x52332a,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x4119c8['to']('errorType',_0x564365=>t('NotFound'!==_0x564365?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x1a19ab]},{'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 _0xbd770d{constructor(_0x256260,_0x41f7c3){super(_0x256260);const _0x541d21=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x41f7c3,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x541d21['to']('imageSrc')}});}}class Z extends q{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x460c12,_0xe852ff,_0x426b91){super(_0x460c12),this['_items']=this['createCollection'](),this['_loadingView']=new ta(_0x460c12),this['_errorView']=new rt(_0x460c12),this['_editingView']=new tt(_0x460c12,_0x426b91),this['_focusableView']=new _0xbd770d(_0x460c12),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0xe852ff),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'],_0x3682fc=>{this['_addUploadcareImageEditorListeners'](_0x3682fc);});}),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'](_0xe05363,_0x2bff66){const _0x55bdc4='uc-cloud-image-editor',_0x541c47=_0xe05363['querySelector'](_0x55bdc4);if(_0x541c47)return _0x2bff66(_0x541c47);const _0x512928=new MutationObserver(_0xb35816=>{const _0x24c61d=_0xb35816['filter'](_0x29b0ce=>_0x29b0ce['target']===_0xe05363&&_0x29b0ce['addedNodes']['length']>0x0&&_0x29b0ce['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x55bdc4);_0x24c61d['length']&&(_0x512928['disconnect'](),_0x2bff66(_0x24c61d[0x0]['addedNodes'][0x0]));});_0x512928['observe'](_0xe05363,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x54bf66){_0x54bf66['addEventListener']('apply',_0x44eab1=>{this['fire']('apply',{'imageSrc':_0x44eab1['detail']['cdnUrl']});}),_0x54bf66['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class z extends/* #__PURE__ -- @preserve */
25
- _0x5c0e32(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x1680f9,_0x1ce6f4,_0x2b0461){super(),this['_editor']=_0x1680f9,this['_dialog']=_0x1ce6f4,this['_imageElement']=_0x2b0461,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 _0x1aac98=this['_imageElement'],_0x44ef8b=_0x1aac98['getAttribute']('uploadcareImageId'),_0x4110ae=_0x1aac98['getAttribute']('src');if(_0x44ef8b)await this['_loadImageInfo'](_0x44ef8b,_0x4110ae);else{if(this['_imageCache']['has'](_0x4110ae)){const _0xa17caa=this['_imageCache']['get'](_0x4110ae);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0xa17caa['url'],this['imageDimension']=_0xa17caa['dimension'],this['imageId']=_0xa17caa['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x2d1d2e}=this['_editor'],t=_0x2d1d2e['t'],_0x538a3c=new Z(_0x2d1d2e,this['imageStatus'],this['_attributes']);_0x538a3c['bind']('status')['to'](this,'imageStatus'),_0x538a3c['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x538a3c['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x538a3c['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x538a3c,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x362ba4,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x538a3c,'position':_0x389cdc['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x538a3c['focus']();},'onHide':()=>{_0x538a3c['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x41bc90=>!F(_0x41bc90,_0x538a3c['element'])}});}['_loadImageInfo'](_0x73feba,_0x1b7254){return C['getInfo'](_0x73feba,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey')})['then'](_0x10de2e=>{const {width:_0x39e0c1,height:_0x31e15a}=_0x10de2e['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x1b7254,this['imageDimension']={'width':_0x39e0c1,'height':_0x31e15a},this['imageId']=_0x73feba;})['catch'](_0x16ad83=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x16ad83['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x8380cb,_0x10c03a){return this['_getImageAsFile'](_0x8380cb)['then'](_0x4b10a0=>C['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'signal':_0x10c03a['signal'],'file':_0x4b10a0,'onProgress':_0x20e9b5=>{_0x20e9b5&&_0x20e9b5['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x20e9b5['value']));}}))['then'](_0x19459f=>{const {width:_0x5adddb,height:_0x20f679}=_0x19459f['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x19459f['cdnUrl'],this['imageDimension']={'width':_0x5adddb,'height':_0x20f679},this['imageId']=_0x19459f['uuid'],this['imageUploadProgress']=null;const _0x2b6e7a=_0x8380cb['getAttribute']('src');this['_imageCache']['set'](_0x2b6e7a,{'id':_0x19459f['uuid'],'url':_0x19459f['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x368d32=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x368d32['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x573b0d,_0x30d967){_0x573b0d['on']('apply',(_0x3abc24,_0x4090ba)=>{this['_replaceImage'](_0x30d967,_0x4090ba['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x573b0d['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x573b0d['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x159a6f,_0x1a463c,_0x50677e){const _0x440063=this['_editor'],{width:_0x5ae0ce,height:_0x562de9}=A(_0x1a463c,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x560088,imageSources:_0x736a39}=E(_0x1a463c,_0x5ae0ce);_0x440063['model']['change'](_0x17a75d=>{if('$graveyard'===_0x159a6f['root']['rootName']){_0x440063['execute']('insertImage',{'imageType':_0x159a6f['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x159a6f['getAttributes']()),'uploadcareImageId':_0x50677e,'src':_0x560088,'sources':_0x736a39,'width':_0x5ae0ce,'height':_0x562de9}});const _0x3cefab=_0x159a6f['getChildren']();_0x159a6f=_0x440063['model']['document']['selection']['getSelectedElement']();for(const _0x2c3f98 of _0x3cefab)_0x17a75d['append'](_0x17a75d['cloneElement'](_0x2c3f98),_0x159a6f);}else _0x17a75d['setSelection'](_0x159a6f,'on'),_0x440063['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x159a6f['getAttributes']()),'uploadcareImageId':_0x50677e,'src':_0x560088,'sources':_0x736a39,'width':_0x5ae0ce,'height':_0x562de9},_0x159a6f);_0x17a75d['setSelection'](_0x159a6f,'on');});}async['_getImageAsFile'](_0x3a277f){const _0x4b52ee=_0x252734['window'],_0x24876d=_0x252734['document']['location']['href'],_0x418e7d=new _0x4b52ee['URL'](_0x3a277f['getAttribute']('src'),_0x24876d);if('data:'===_0x418e7d['protocol']){const _0x53bfd3=_0x418e7d['href']['split'](','),_0x5788fb=_0x53bfd3[0x0]['match'](/:(.*?);/)[0x1],_0x59749d=_0x5788fb['split']('/')[0x1],_0x37cd11=_0x4b52ee['atob'](_0x53bfd3[_0x53bfd3['length']-0x1]);let _0x142e49=_0x37cd11['length'];const _0x1cdb7f=new _0x4b52ee['Uint8Array'](_0x142e49);for(;_0x142e49--;)_0x1cdb7f[_0x142e49]=_0x37cd11['charCodeAt'](_0x142e49);return new _0x4b52ee['File']([_0x1cdb7f],'image.'+_0x59749d,{'type':_0x5788fb});}const _0x360590=_0x418e7d['href']['split']('/'),_0x1eddf9=_0x360590[_0x360590['length']-0x1],_0x572dee=_0x1eddf9['split']('.')[0x1];return _0x4b52ee['fetch'](_0x418e7d['href'])['then'](_0x216a38=>_0x216a38['clone']()['blob']())['then'](_0xf1b114=>new _0x4b52ee['File']([_0xf1b114],_0x1eddf9,{'type':'image/'+_0x572dee}));}}class J extends _0x4fd31f{['imageEditController'];static get['requires'](){return[_0x36d1ac];}['_isEditable'];constructor(_0x10dbbb){super(_0x10dbbb),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x3f1715){const _0xab6d84=V(_0x3f1715);return _0x33e5d8=>!(!_0x33e5d8||!_0x33e5d8['is']('element','imageBlock')&&!_0x33e5d8['is']('element','imageInline'))&&(!!_0x33e5d8['hasAttribute']('uploadcareImageId')||!!_0x33e5d8['hasAttribute']('src')&&_0xab6d84(_0x33e5d8['getAttribute']('src')));}(_0x10dbbb['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x44d9a2=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x44d9a2);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x4e3d68=this['editor']['model']['document']['selection']['getSelectedElement']();_0x4e3d68&&(_0x4e3d68['is']('element','imageBlock')||_0x4e3d68['is']('element','imageInline'))&&(this['imageEditController']=new z(this['editor'],this['editor']['plugins']['get'](_0x36d1ac),_0x4e3d68),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class O extends _0x4fd31f{['refresh'](){const _0x1c018d=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x1c018d&&(_0x1c018d['is']('element','imageBlock')||_0x1c018d['is']('element','imageInline')));}['execute'](_0x1c6bd1){const _0x591ac6=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0xc22838=>{_0xc22838['setAttributes'](_0x1c6bd1,_0x591ac6),_0xc22838['removeAttribute']('srcset',_0x591ac6),_0xc22838['removeAttribute']('sizes',_0x591ac6);});}}class g extends _0x3606f6{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[i,_0x32aa75,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x199e99}=this;_0x199e99['commands']['add']('uploadcareImageEdit',new J(_0x199e99)),_0x199e99['commands']['add']('uploadcareImageReplace',new O(_0x199e99));}}class j extends _0x3606f6{['_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 _0x528a62=this['editor'];_0x528a62['ui']['componentFactory']['add']('uploadcareImageEdit',_0x484fdb=>{const _0x4ba41e=_0x528a62['commands']['get']('uploadcareImageEdit'),_0x132895=new _0x2d512b(_0x484fdb),t=_0x484fdb['t'];return _0x132895['set']({'icon':_0x362ba4,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x132895['bind']('isEnabled')['to'](_0x4ba41e),_0x132895['bind']('isOn')['to'](_0x4ba41e,'isActive'),this['listenTo'](_0x132895,'execute',()=>{_0x528a62['execute']('uploadcareImageEdit'),_0x528a62['editing']['view']['focus']();}),_0x132895;}),this['_initConfig']();}['_initConfig'](){const _0x1de63f=_0xfe1c4c(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x1de63f),this['listenTo'](this['editor'],'destroy',()=>{_0x1de63f['remove']();});}}class P extends _0x3606f6{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 _0x5b1d13,Command as _0x4ee250}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x3a8e56,IconGooglePhotos as _0x4d21ec,IconGoogleDrive as _0xe73923,IconFacebook as _0x3735f7,IconDropbox as _0x235787,IconUploadcareLink as _0x2bce79,IconUploadcareImageUpload as _0xf6b6d,IconError as et,IconUploadcareImageEdit as _0x2e0263}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x2a6200,MenuBarMenuListItemButtonView as _0xc787fe,View as _0x20262d,FocusCycler as _0x244f7f,Dialog as _0x3c66ac,DialogViewPosition as _0x32eb1d,SpinnerView as _0x1036e3,IconView as at,Notification as _0x5a7518}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x46b4f1,DomEmitterMixin as _0x544213,global as _0x4bf13c,getAncestors as _0x39e9f0,ObservableMixin as _0x1e28d0,createElement as _0x5e28ed,uid as _0xb05f71}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x432143}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x148ff9,info as _0x413d24}from'@uploadcare/upload-client';import*as _0x126372 from'@uploadcare/file-uploader';var o=function(_0x358df2){return _0x358df2['Local']='local',_0x358df2['URL']='url',_0x358df2['Dropbox']='dropbox',_0x358df2['GDrive']='gdrive',_0x358df2['Facebook']='facebook',_0x358df2['GPhotos']='gphotos',_0x358df2['OneDrive']='onedrive',_0x358df2;}({});function _(_0x324247,_0x1a81ee,_0x6b5525){const t=_0x324247['t'],_0x5cb585=_0x324247['t'];switch(_0x1a81ee){case o['Local']:return{'text':_0x5cb585('Insert'===_0x6b5525?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x5cb585('From\x20computer')};case o['URL']:return{'text':'Insert'===_0x6b5525?_0x5cb585('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x5cb585('Via\x20URL')};case o['Dropbox']:return{'text':t('Insert'===_0x6b5525?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case o['Facebook']:return{'text':t('Insert'===_0x6b5525?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case o['GDrive']:return{'text':t('Insert'===_0x6b5525?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case o['GPhotos']:return{'text':t('Insert'===_0x6b5525?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case o['OneDrive']:return{'text':t('Insert'===_0x6b5525?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x1a81ee;}}class e extends _0x5b1d13{['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 _0x8523ec=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x1a1265;for(const _0x170bf4 in _0x8523ec){const _0xeffefc=_0x170bf4,_0x1b47ce=_0x8523ec[_0xeffefc];if('uploadcareLicenseKeyValid'==_0x1b47ce||'uploadcareLicenseKeyInvalid'==_0x1b47ce||'uploadcareLicenseKeyExpired'==_0x1b47ce||'uploadcareLicenseKeyDomainLimit'==_0x1b47ce||'uploadcareLicenseKeyNotAllowed'==_0x1b47ce||'uploadcareLicenseKeyEvaluationLimit'==_0x1b47ce||'uploadcareLicenseKeyTrialLimit'==_0x1b47ce||'uploadcareLicenseKeyUsageLimit'==_0x1b47ce){delete _0x8523ec[_0xeffefc],_0x1a1265=_0x1b47ce,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x1a1265&&_0x8523ec['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x1a1265&&_0x8523ec['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x1a1265&&_0x8523ec['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x1a1265&&_0x8523ec['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x1a1265&&_0x8523ec['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyTrialLimit'==_0x1a1265&&_0x8523ec['_showLicenseError']('trialLimit'),'uploadcareLicenseKeyUsageLimit'==_0x1a1265&&_0x8523ec['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x5e6771}=this,_0x162ecb=_0x5e6771['commands']['get']('uploadcare');if(!_0x162ecb)return;const _0xef54cb=this['_normalizeConfigSourceList'](_0x5e6771['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x26b2ba,_0xced996)=>{const _0x369505=this['_getIntegrationKey'](_0xced996['type']);return _0x26b2ba[_0x369505]||(_0x26b2ba[_0x369505]=[]),_0x26b2ba[_0x369505]['push'](_0xced996),_0x26b2ba;},{});_0x5e6771['plugins']['has']('ImageInsertUI')&&_0x5e6771['commands']['get']('uploadcare')&&Object['entries'](_0xef54cb)['forEach'](([_0x4a1268,_0x3d1be7])=>{_0x5e6771['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x4a1268,'observable':()=>_0x162ecb,'buttonViewCreator':()=>this['_createToolbarButton'](_0x3d1be7),'formViewCreator':()=>this['_createDropdownButtons'](_0x3d1be7),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x3d1be7),'override':'assetManager'!==_0x4a1268});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x31a38b){const {locale:_0x3e4af7}=this['editor'];return _0x31a38b['map'](_0x4a5277=>{const _0xd20693=_(_0x3e4af7,_0x4a5277,'Insert');switch(_0x4a5277){case o['Local']:return{'icon':_0xf6b6d,'type':o['Local'],..._0xd20693};case o['URL']:return{'icon':_0x2bce79,'type':o['URL'],..._0xd20693};case o['Dropbox']:return{'icon':_0x235787,'type':o['Dropbox'],..._0xd20693};case o['Facebook']:return{'icon':_0x3735f7,'type':o['Facebook'],..._0xd20693};case o['GDrive']:return{'icon':_0xe73923,'type':o['GDrive'],..._0xd20693};case o['GPhotos']:return{'icon':_0x4d21ec,'type':o['GPhotos'],..._0xd20693};case o['OneDrive']:return{'icon':_0x3a8e56,'type':o['OneDrive'],..._0xd20693};}});}['_getIntegrationKey'](_0x3b6964){switch(_0x3b6964){case o['Local']:return'upload';case o['URL']:return'url';default:return'assetManager';}}['_createButton'](_0xaf9668,_0x559de1){const _0x532a13=this['editor'],_0x215074=new _0xaf9668(_0x532a13['locale']),_0x2a763a=_0x532a13['commands']['get']('uploadcare');return _0x215074['bind']('isEnabled')['to'](_0x2a763a),_0x215074['on']('execute',()=>{_0x2a763a['execute'](_0x559de1);}),_0x215074;}['_createToolbarButton'](_0x239fb3){const {locale:_0x4256f3}=this['editor'],_0x3e33ec=this['editor']['plugins']['get']('ImageInsertUI'),_0x56c231=_0x239fb3[0x0],_0xb399b9=this['_createButton'](_0x2a6200,_0x56c231['type']);return _0xb399b9['icon']=_0x56c231['icon'],_0xb399b9['bind']('label')['to'](_0x3e33ec,'isImageSelected',_0x477983=>_(_0x4256f3,_0x56c231['type'],_0x477983?'Replace':'Insert')['text']),_0xb399b9['tooltip']=!0x0,_0xb399b9;}['_createDropdownButtons'](_0x909196){const {locale:_0x463c18}=this['editor'],_0x2d78b3=this['editor']['plugins']['get']('ImageInsertUI');return _0x909196['map'](_0x86d87c=>{const _0x41c2b6=this['_createButton'](_0x2a6200,_0x86d87c['type']);return _0x41c2b6['withText']=!0x0,_0x41c2b6['icon']=_0x86d87c['icon'],_0x41c2b6['bind']('label')['to'](_0x2d78b3,'isImageSelected',_0x3fcd81=>_(_0x463c18,_0x86d87c['type'],_0x3fcd81?'Replace':'Insert')['text']),_0x41c2b6;});}['_createMenuBarButtons'](_0x315675){return _0x315675['map'](_0x126806=>{const _0x1ca3b9=this['_createButton'](_0xc787fe,_0x126806['type']);return _0x1ca3b9['icon']=_0x126806['icon'],_0x1ca3b9['label']=_0x126806['shortText'],_0x1ca3b9;});}}class q extends _0x20262d{['focusTracker'];['focusCycler'];constructor(_0x398050){super(_0x398050),this['focusTracker']=new _0x46b4f1(),this['focusCycler']=new _0x244f7f({'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(_0x4ee8e4){super(_0x4ee8e4),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(_0x1f044a,_0x1fcb8e){const _0x46637e=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x17435b=>_0x17435b<=_0x1fcb8e)['map'](_0x29514e=>_0x1f044a['replace'](/\/$/,'')+'/-/resize/'+_0x29514e+'x/\x20'+_0x29514e+'w');return{'imageFallbackUrl':_0x1f044a,'imageSources':[{'srcset':_0x46637e['join'](',\x20'),'sizes':'(max-width:\x20'+_0x1fcb8e+'px)\x20100vw,\x20'+_0x1fcb8e+'px','type':'image/webp'}]};}function A(_0x5748d9,_0x39da59,_0x44627f){const _0x2b5090=_0x5748d9['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x2b5090?parseInt(_0x2b5090[0x1],0xa):_0x39da59,'height':_0x2b5090?parseInt(_0x2b5090[0x2],0xa):_0x44627f};}function m(_0x1ca3ec,_0x279f29){const _0xf4d679=Object['create'](_0x544213),_0x3aace4=_0x1ca3ec['plugins']['get']('ImageUtils'),_0x5e6443=_0x1ca3ec['editing']['mapper']['toViewElement'](_0x279f29),_0x10662e=_0x3aace4['findViewImgElement'](_0x5e6443),_0x5cd78f=_0x1ca3ec['editing']['view']['domConverter']['viewToDom'](_0x10662e),_0x5a5699=_0x279f29['getAttribute']('width'),_0x3d6c1b=_0x279f29['getAttribute']('height'),_0x2ac02d='image-processing';_0x1ca3ec['editing']['view']['change'](_0x4b6ac2=>{_0x4b6ac2['addClass'](_0x2ac02d,_0x5e6443),_0x4b6ac2['setStyle']('aspect-ratio',_0x5a5699+'/'+_0x3d6c1b,_0x10662e);}),_0xf4d679['listenTo'](_0x5cd78f,'load',()=>{_0xf4d679['stopListening'](_0x5cd78f,'load'),_0x1ca3ec['editing']['view']['change'](_0x5e8eef=>{_0x5e8eef['removeClass'](_0x2ac02d,_0x5e6443),_0x5e8eef['removeStyle']('aspect-ratio',_0x10662e);});});}function V(_0x5a2331){if(Array['isArray'](_0x5a2331)){const _0x1a2b0d=_0x5a2331['map'](V);return _0xb8b368=>_0x1a2b0d['some'](_0xe60f8b=>_0xe60f8b(_0xb8b368));}if('origin'==_0x5a2331){const _0x14216a=_0x4bf13c['window']['location']['origin'];return _0x581b34=>new URL(_0x581b34,_0x4bf13c['document']['baseURI'])['origin']==_0x14216a;}return'function'==typeof _0x5a2331?_0x5a2331:_0x5a2331 instanceof RegExp?_0xd2b09d=>!(!_0xd2b09d['match'](_0x5a2331)&&!_0xd2b09d['replace'](/^https?:\/\//,'')['match'](_0x5a2331)):()=>!0x1;}function F(_0x25c387,_0x251ad6){return _0x39e9f0(_0x25c387['target'])['includes'](_0x251ad6);}class l extends/* #__PURE__ -- @preserve */
24
+ _0x1e28d0(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x189aac,_0xaf8610,_0x2d66e3){super(),this['_editor']=_0x189aac,this['_editing']=_0xaf8610,this['_dialog']=_0x189aac['plugins']['get'](_0x3c66ac),this['_api']=_0xaf8610['ctxElement']['getAPI'](),this['_type']=_0x2d66e3,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:_0x38a5d3,model:_0x2ff9ae}=this['_editor'],_0x12d19d=_0x2ff9ae['document']['selection']['getSelectedElement'](),_0x28ab93=_0x12d19d&&(_0x12d19d['is']('element','imageBlock')||_0x12d19d['is']('element','imageInline'));this['_formView']=new S(_0x38a5d3),this['_dialog']['show']({'id':'uploadCare','icon':_0xf6b6d,'title':_(_0x38a5d3,this['_type'],_0x28ab93?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x32eb1d['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x325b53=>!F(_0x325b53,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x147de3}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x2255b1=>{const _0x2e6266=_0x147de3['length'];for(const _0x20bad4 of _0x147de3){const _0xf3d066=_0x20bad4===_0x147de3[_0x2e6266-0x1],{cdnUrl:_0x6eae82,fileInfo:_0x4f38b}=_0x20bad4;if(!_0x6eae82||!_0x4f38b)continue;const {width:_0x4a9bbf,height:_0x3eec44}=_0x4f38b['imageInfo'],_0x4f4b8a=A(_0x6eae82,_0x4a9bbf,_0x3eec44),_0x81d444=E(_0x6eae82,_0x4f4b8a['width']),_0x1a4e78={'id':_0x4f38b['uuid'],'type':'image','attributes':{'imageDimension':_0x4f4b8a,..._0x81d444}};this['_insertAsset'](_0x1a4e78,_0xf3d066,_0x2255b1);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x5b4c18=>{'idle'===_0x5b4c18['detail']['status']&&!_0x5b4c18['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===o['Local']?this['_api']['setCurrentActivity'](o['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x2cfbab,_0x193ae7,_0x688bd9){const _0x332a97=this['_editor']['model']['document']['selection'],_0x5e3325=_0x332a97['getSelectedElement'](),_0x1a74f0=!(!_0x5e3325||!_0x5e3325['is']('element','imageInline'));_0x688bd9['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x2cfbab,_0x1a74f0),_0x193ae7||_0x688bd9['setSelection'](_0x332a97['getLastPosition']());}['_insertImage'](_0x112036,_0x5de56c){const _0x4db1a7=this['_editor'],{imageDimension:_0x5491c0,imageFallbackUrl:_0x590ef4,imageSources:_0x24d4b8}=_0x112036['attributes'];_0x4db1a7['execute']('insertImage',{'imageType':_0x5de56c?'imageInline':null,'source':{'uploadcareImageId':_0x112036['id'],'src':_0x590ef4,'sources':_0x24d4b8,..._0x5491c0}});}}class n extends _0x4ee250{['_editing'];['_controller']=null;static get['requires'](){return[_0x3c66ac,i];}constructor(_0x198617){super(_0x198617),this['_editing']=_0x198617['plugins']['get'](i);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0xc9f555){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new l(this['editor'],this['_editing'],_0xc9f555);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class C{static['upload']({file:_0x366bf4,publicKey:_0x499a8a,signal:_0x35137a,onProgress:_0x2cd2ce}){return _0x148ff9(_0x366bf4,{'publicKey':_0x499a8a,'store':'auto','signal':_0x35137a,'onProgress':_0x2cd2ce});}static['getInfo'](_0x3875e4,_0x51a549){return _0x413d24(_0x3875e4,_0x51a549);}}class p extends _0x5b1d13{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x432143,i];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x1d4089=this['editor'];if(!!!_0x1d4089['config']['get']('uploadcare'))return;_0x1d4089['plugins']['get'](_0x432143)['createUploadAdapter']=_0x483f3c=>new x(_0x483f3c,_0x1d4089),_0x1d4089['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x3d6603,{imageElement:_0x2634d8,data:_0x30edaa})=>{_0x1d4089['model']['change'](_0x474c1f=>{_0x474c1f['setAttribute']('uploadcareImageId',_0x30edaa['uploadcareImageId'],_0x2634d8);});});}}class x{['loader'];['editor'];['controller'];constructor(_0x13352c,_0x242c01){this['loader']=_0x13352c,this['editor']=_0x242c01,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x3c9277=this['editor']['config']['get']('uploadcare.pubkey'),_0x2c7533=await this['loader']['file'];return C['upload']({'file':_0x2c7533,'publicKey':_0x3c9277,'signal':this['controller']['signal'],'onProgress':_0x163dc1=>{_0x163dc1&&_0x163dc1['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x163dc1['value']);}})['then'](async _0x1f58dc=>{const {imageFallbackUrl:_0x49368e,imageSources:_0x3b8124}=E(_0x1f58dc['cdnUrl'],_0x1f58dc['imageInfo']['width']);return{'uploadcareImageId':_0x1f58dc['uuid'],'default':_0x49368e,'sources':_0x3b8124};})['catch'](()=>{const _0x3b6de5=t('Cannot\x20upload\x20file:')+('\x20'+_0x2c7533['name']+'.');return Promise['reject'](_0x3b6de5);});}['abort'](){this['controller']['abort']();}}class i extends _0x5b1d13{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',p,_0x3c66ac];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}['init'](){const _0x2518b4=this['editor'];_0x2518b4['commands']['add']('uploadcare',new n(_0x2518b4));}['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 _0x4c661a=_0x4bf13c['document']['querySelector']('input[uploadcare-file-input]');_0x4c661a&&_0x4c661a['remove']();}),async function(_0x465d9a){const _0x4dcc20=_0x4d49a2([0x72,0x41,0x46,0x50,0x65,0x32,0x6e,0x61,0x54,0x43,0x69,0x70,0x44,0x6b,0x64,0x5a,0x52,0x38,0x42,0x7a,0x79,0x39,0x30,0x31,0x77,0x6a,0x6c,0x78,0x4c,0x4b,0x47,0x51,0x71,0x55,0x36,0x74,0x4a,0x58,0x59,0x53,0x33,0x56,0x34,0x37,0x4f,0x76,0x66,0x6f,0x75,0x4e,0x62,0x48,0x63,0x35,0x68,0x73,0x67,0x4d,0x45,0x6d,0x57,0x49]),_0x1b749a=0x7e4e0e51,_0x9a0475=0x7e4968a9^_0x1b749a,_0x32ae55=window[_0x4d49a2([0x44,0x61,0x74,0x65])][_0x4d49a2([0x6e,0x6f,0x77])](),_0x260945=_0x465d9a[_0x4d49a2([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x2a118d=new window[(_0x4d49a2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x21b929=>{_0x260945[_0x4d49a2([0x6f,0x6e,0x63,0x65])](_0x4d49a2([0x72,0x65,0x61,0x64,0x79]),_0x21b929);}),_0xacfb15={[_0x4d49a2([0x6b,0x74,0x79])]:_0x4d49a2([0x45,0x43]),[_0x4d49a2([0x75,0x73,0x65])]:_0x4d49a2([0x73,0x69,0x67]),[_0x4d49a2([0x63,0x72,0x76])]:_0x4d49a2([0x50,0x2d,0x32,0x35,0x36]),[_0x4d49a2([0x78])]:_0x4d49a2([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]),[_0x4d49a2([0x79])]:_0x4d49a2([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]),[_0x4d49a2([0x61,0x6c,0x67])]:_0x4d49a2([0x45,0x53,0x32,0x35,0x36])},_0x313e45=_0x260945[_0x4d49a2([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x4d49a2([0x67,0x65,0x74])](_0x4d49a2([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x43422f(){let _0x369ce5,_0x1bda55=null,_0x48a329=null;try{if(_0x313e45==_0x4d49a2([0x47,0x50,0x4c]))return _0x4d49a2([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x369ce5=_0x11a001(),!_0x369ce5)return _0x4d49a2([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x369ce5[_0x4d49a2([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x48a329=_0x1a9c74(_0x369ce5[_0x4d49a2([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x369ce5[_0x4d49a2([0x6a,0x74,0x69])])),await _0x4186fa()?_0x3dad4f()?_0x16a7a9()?_0x4d49a2([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x424ec1()?(_0x369ce5[_0x4d49a2([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x4d49a2([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x1bda55=_0x5b13e9(_0x4d49a2([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x369ce5[_0x4d49a2([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x4d49a2([0x74,0x72,0x69,0x61,0x6c])&&(_0x1bda55=_0x5b13e9(_0x4d49a2([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x54c86e()):_0x4d49a2([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x4d49a2([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x4d49a2([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x5304ee){return _0x4d49a2([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x16a7a9(){const _0x136111=[_0x4d49a2([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x4d49a2([0x74,0x72,0x69,0x61,0x6c])][_0x4d49a2([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x369ce5[_0x4d49a2([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x32ae55/0x3e8:0xe10*_0x9a0475;return _0x369ce5[_0x4d49a2([0x65,0x78,0x70])]<_0x136111;}function _0x3dad4f(){const _0x1ab193=_0x369ce5[_0x4d49a2([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x1ab193&&(!!_0x1ab193[_0x4d49a2([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4d49a2([0x2a]))||!!_0x1ab193[_0x4d49a2([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4d49a2([0x55,0x50,0x4c,0x43])));}function _0x424ec1(){const _0x4a08b6=_0x369ce5[_0x4d49a2([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x4a08b6||0x0==_0x4a08b6[_0x4d49a2([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x503601}=new URL(window[_0x4d49a2([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x4a08b6[_0x4d49a2([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x503601))return!0x0;const _0x369b99=_0x503601[_0x4d49a2([0x73,0x70,0x6c,0x69,0x74])](_0x4d49a2([0x2e]));return _0x4a08b6[_0x4d49a2([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x5d13b1=>_0x5d13b1[_0x4d49a2([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4d49a2([0x2a])))[_0x4d49a2([0x6d,0x61,0x70])](_0x575c7a=>_0x575c7a[_0x4d49a2([0x73,0x70,0x6c,0x69,0x74])](_0x4d49a2([0x2e])))[_0x4d49a2([0x73,0x6f,0x6d,0x65])](_0x82ed8d=>_0x369b99[_0x4d49a2([0x65,0x76,0x65,0x72,0x79])]((_0x410c5b,_0x3c3e8a)=>_0x82ed8d[_0x3c3e8a]===_0x410c5b||_0x82ed8d[_0x3c3e8a]===_0x4d49a2([0x2a])));}function _0x54c86e(){return _0x1bda55&&_0x48a329?new window[(_0x4d49a2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0xa90921,_0x5aebee)=>{_0x1bda55[_0x4d49a2([0x74,0x68,0x65,0x6e])](_0xa90921,_0x5aebee),_0x48a329[_0x4d49a2([0x74,0x68,0x65,0x6e])](_0x15f4aa=>{_0x15f4aa!=_0x4d49a2([0x56,0x61,0x6c,0x69,0x64])&&_0xa90921(_0x15f4aa);},_0x5aebee);}):_0x1bda55||_0x48a329||_0x4d49a2([0x56,0x61,0x6c,0x69,0x64]);}}function _0x1a9c74(_0x2c08e1,_0x2b9426){return new window[(_0x4d49a2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x47bc55=>{if(_0x4b2fc2())return _0x47bc55(_0x4d49a2([0x56,0x61,0x6c,0x69,0x64]));_0xc6d5a7(),_0x260945[_0x4d49a2([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x4d49a2([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x2ab1af=!0x1;const _0x120ac2=_0xb05f71();function _0x463e5e(_0x1a4fa8){return!!_0x1a4fa8&&(typeof _0x1a4fa8===_0x4d49a2([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x1a4fa8===_0x4d49a2([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x1a4fa8[_0x4d49a2([0x74,0x68,0x65,0x6e])]===_0x4d49a2([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x1a4fa8[_0x4d49a2([0x63,0x61,0x74,0x63,0x68])]===_0x4d49a2([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x3221b(_0x57a494){_0x575bf1(_0x57a494)[_0x4d49a2([0x74,0x68,0x65,0x6e])](_0x161ad2=>{if(!_0x161ad2||_0x161ad2[_0x4d49a2([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x4d49a2([0x6f,0x6b]))return _0x4d49a2([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x410f2a(_0x44cb8e(_0x120ac2+_0x2b9426))!=_0x161ad2[_0x4d49a2([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x4d49a2([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x4d49a2([0x56,0x61,0x6c,0x69,0x64]);})[_0x4d49a2([0x74,0x68,0x65,0x6e])](_0x3b4be2=>(_0x4abe64(),_0x3b4be2),()=>{const _0x48389d=_0x49f984();return null==_0x48389d?(_0x4abe64(),_0x4d49a2([0x56,0x61,0x6c,0x69,0x64])):_0x4d49a2(_0x32ae55-_0x48389d>(0x5a428a51^_0x1b749a)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x4d49a2([0x74,0x68,0x65,0x6e])](_0x47bc55)[_0x4d49a2([0x63,0x61,0x74,0x63,0x68])](()=>{_0x47bc55(_0x4d49a2([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x35bf40=0x7e78e0d1^_0x1b749a;function _0x4abe64(){const _0x197550=_0x4d49a2([0x6c,0x6c,0x63,0x74,0x2d])+_0x410f2a(_0x44cb8e(_0x2c08e1)),_0x1de96f=_0x38a972(_0x410f2a(window[_0x4d49a2([0x4d,0x61,0x74,0x68])][_0x4d49a2([0x63,0x65,0x69,0x6c])](_0x32ae55/_0x35bf40)));window[_0x4d49a2([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4d49a2([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x197550,_0x1de96f);}function _0x49f984(){const _0x5ec7f4=_0x4d49a2([0x6c,0x6c,0x63,0x74,0x2d])+_0x410f2a(_0x44cb8e(_0x2c08e1)),_0x152abc=window[_0x4d49a2([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4d49a2([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x5ec7f4);return _0x152abc?window[_0x4d49a2([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x38a972(_0x152abc),0x10)*_0x35bf40:null;}function _0x575bf1(_0xa02573){return new window[(_0x4d49a2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x439301,_0x747ba5)=>{_0xa02573[_0x4d49a2([0x74,0x68,0x65,0x6e])](_0x439301,_0x747ba5),window[_0x4d49a2([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x747ba5,0x7e4fda91^_0x1b749a);});}}_0x260945[_0x4d49a2([0x6f,0x6e])](_0x4d49a2([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x40c4d7,_0x541df8)=>{if(_0x541df8[0x0]!=_0x2c08e1)return _0x47bc55(_0x4d49a2([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x541df8[0x1]={..._0x541df8[0x1],[_0x4d49a2([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x120ac2};},{[_0x4d49a2([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4d49a2([0x68,0x69,0x67,0x68])}),_0x260945[_0x4d49a2([0x6f,0x6e])](_0x4d49a2([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0xc91e03=>{_0x463e5e(_0xc91e03[_0x4d49a2([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x2ab1af=!0x0,_0x3221b(_0xc91e03[_0x4d49a2([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x4d49a2([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4d49a2([0x6c,0x6f,0x77])}),_0x2a118d[_0x4d49a2([0x74,0x68,0x65,0x6e])](()=>{_0x2ab1af||_0x47bc55(_0x4d49a2([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x4b2fc2(){return _0x260945[_0x4d49a2([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4d49a2([0x76,0x69,0x65,0x77])][_0x4d49a2([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x4d49a2([0x61,0x75,0x74,0x6f]);}function _0xc6d5a7(){_0x260945[_0x4d49a2([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4d49a2([0x76,0x69,0x65,0x77])][_0x4d49a2([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x4d49a2([0x61,0x75,0x74,0x6f]);}}function _0x5b13e9(_0x783dfe){const _0x2b6efb=[new window[(_0x4d49a2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x189de5=>setTimeout(_0x189de5,0x7e47309d^_0x1b749a)),_0x2a118d[_0x4d49a2([0x74,0x68,0x65,0x6e])](()=>new window[(_0x4d49a2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2ae7e0=>{let _0x22ac2b=0x0;_0x260945[_0x4d49a2([0x6d,0x6f,0x64,0x65,0x6c])][_0x4d49a2([0x6f,0x6e])](_0x4d49a2([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x45c53d,_0x20ad74)=>{_0x20ad74[0x0][_0x4d49a2([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x22ac2b++,_0x22ac2b==(0x7e4e0fa9^_0x1b749a)&&(_0x2ae7e0(),_0x45c53d[_0x4d49a2([0x6f,0x66,0x66])]());});}))];return window[_0x4d49a2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x4d49a2([0x72,0x61,0x63,0x65])](_0x2b6efb)[_0x4d49a2([0x74,0x68,0x65,0x6e])](()=>_0x783dfe);}async function _0x2840e4(){await _0x2a118d,_0x260945[_0x4d49a2([0x6d,0x6f,0x64,0x65,0x6c])][_0x4d49a2([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x32c9d9,_0x260945[_0x4d49a2([0x6d,0x6f,0x64,0x65,0x6c])][_0x4d49a2([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x32c9d9,_0x260945[_0x4d49a2([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x4d49a2([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x54b387(_0x298be0){const _0x48761f=_0x2c949e();_0x260945[_0x48761f]=_0x4d49a2([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x298be0,_0x298be0!=_0x4d49a2([0x56,0x61,0x6c,0x69,0x64])&&_0x2840e4();}function _0x2c949e(){const _0x788a61=window[_0x4d49a2([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x4d49a2([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x4d49a2([0x6e,0x6f,0x77])]())[_0x4d49a2([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x4d49a2([0x2e]),'');let _0x1174d0=_0x4d49a2([0x72]);for(let _0x6db533=0x0;_0x6db533<_0x788a61[_0x4d49a2([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x6db533+=0x2){let _0x3542ee=window[_0x4d49a2([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x788a61[_0x4d49a2([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x6db533,_0x6db533+0x2));_0x3542ee>=_0x4dcc20[_0x4d49a2([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x3542ee-=_0x4dcc20[_0x4d49a2([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x1174d0+=_0x4dcc20[_0x3542ee];}return _0x1174d0;}function _0x11a001(){const _0xb416ae=_0x313e45[_0x4d49a2([0x73,0x70,0x6c,0x69,0x74])](_0x4d49a2([0x2e]));if(0x3!=_0xb416ae[_0x4d49a2([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x4a983c(_0xb416ae[0x1]);function _0x4a983c(_0x48787c){const _0x33e678=_0x5c2a97(_0x48787c);return _0x33e678&&_0x482835()?_0x33e678:null;function _0x482835(){const _0x89ad2a=_0x33e678[_0x4d49a2([0x6a,0x74,0x69])],_0x4be99e=window[_0x4d49a2([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x89ad2a[_0x4d49a2([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x89ad2a[_0x4d49a2([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x1e24e4={..._0x33e678,[_0x4d49a2([0x6a,0x74,0x69])]:_0x89ad2a[_0x4d49a2([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x89ad2a[_0x4d49a2([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x1e24e4[_0x4d49a2([0x76,0x63])],_0x44cb8e(_0x1e24e4)==_0x4be99e;}}}async function _0x4186fa(){let _0x35e0c6=!0x0;try{const _0x24d3a4=_0x313e45[_0x4d49a2([0x73,0x70,0x6c,0x69,0x74])](_0x4d49a2([0x2e])),[_0x468bdf,_0x11aa86,_0x5b3507]=_0x24d3a4;return _0x5141ec(_0x468bdf),await _0x58dbe0(_0x468bdf,_0x11aa86,_0x5b3507),_0x35e0c6;}catch(_0x58f480){return!0x1;}function _0x5141ec(_0x2cf7f2){const _0x3b7945=_0x5c2a97(_0x2cf7f2);_0x3b7945&&_0x3b7945[_0x4d49a2([0x61,0x6c,0x67])]==_0x4d49a2([0x45,0x53,0x32,0x35,0x36])||(_0x35e0c6=!0x1);}async function _0x58dbe0(_0x381b29,_0x807158,_0x4a4786){const _0x1d3b83=window[_0x4d49a2([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x4d49a2([0x66,0x72,0x6f,0x6d])](_0x25836d(_0x4a4786),_0x3bf4f1=>_0x3bf4f1[_0x4d49a2([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x3b8b36=new window[(_0x4d49a2([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x4d49a2([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x381b29+_0x4d49a2([0x2e])+_0x807158),_0x529192=window[_0x4d49a2([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x4d49a2([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x529192)return;const _0x1e0e9a=await _0x529192[_0x4d49a2([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x4d49a2([0x6a,0x77,0x6b]),_0xacfb15,{[_0x4d49a2([0x6e,0x61,0x6d,0x65])]:_0x4d49a2([0x45,0x43,0x44,0x53,0x41]),[_0x4d49a2([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x4d49a2([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x4d49a2([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x529192[_0x4d49a2([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x4d49a2([0x6e,0x61,0x6d,0x65])]:_0x4d49a2([0x45,0x43,0x44,0x53,0x41]),[_0x4d49a2([0x68,0x61,0x73,0x68])]:{[_0x4d49a2([0x6e,0x61,0x6d,0x65])]:_0x4d49a2([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x1e0e9a,_0x1d3b83,_0x3b8b36)||(_0x35e0c6=!0x1);}}function _0x5c2a97(_0x18bae5){return _0x18bae5[_0x4d49a2([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x4d49a2([0x65,0x79]))?JSON[_0x4d49a2([0x70,0x61,0x72,0x73,0x65])](_0x25836d(_0x18bae5)):null;}function _0x25836d(_0x34272d){return window[_0x4d49a2([0x61,0x74,0x6f,0x62])](_0x34272d[_0x4d49a2([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x4d49a2([0x2b]))[_0x4d49a2([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x4d49a2([0x2f])));}function _0x44cb8e(_0x48ad94){let _0x1f919c=0x1505;function _0x275b89(_0x1c90c0){for(let _0x3fce44=0x0;_0x3fce44<_0x1c90c0[_0x4d49a2([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3fce44++){const _0x5083de=_0x1c90c0[_0x4d49a2([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x3fce44);_0x1f919c=(_0x1f919c<<0x5)+_0x1f919c+_0x5083de,_0x1f919c&=_0x1f919c;}}function _0x13bfde(_0x35e685){Array[_0x4d49a2([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x35e685)?_0x35e685[_0x4d49a2([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x13bfde):_0x35e685&&typeof _0x35e685==_0x4d49a2([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x4d49a2([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x35e685)[_0x4d49a2([0x73,0x6f,0x72,0x74])]()[_0x4d49a2([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x282946,_0x2a54fd])=>{_0x275b89(_0x282946),_0x13bfde(_0x2a54fd);}):_0x275b89(window[_0x4d49a2([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x35e685));}return _0x13bfde(_0x48ad94),_0x1f919c>>>0x0;}function _0x410f2a(_0x3705f0){return _0x3705f0[_0x4d49a2([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x4d49a2([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x4d49a2([0x30]));}function _0x38a972(_0xac63ea){return _0xac63ea[_0x4d49a2([0x73,0x70,0x6c,0x69,0x74])]('')[_0x4d49a2([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x4d49a2([0x6a,0x6f,0x69,0x6e])]('');}function _0x32c9d9(){}function _0x4d49a2(_0x4fdd0a){return _0x4fdd0a['map'](_0x4a9df2=>String['fromCharCode'](_0x4a9df2))['join']('');}_0x54b387(await _0x43422f());}(this);}['_initSchema'](){const _0x4388ee=this['editor']['model']['schema'];_0x4388ee['isRegistered']('imageBlock')&&_0x4388ee['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x4388ee['isRegistered']('imageInline')&&_0x4388ee['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x5663ab=this['editor'];_0x5663ab['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x5663ab['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x422826=>_0x422826['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x422462=_0x5663ab['commands']['get']('replaceImageSource');_0x422462&&this['listenTo'](_0x422462,'cleanupImage',(_0x2b99ba,[_0x14a82e,_0x24a5a9])=>{_0x14a82e['removeAttribute']('uploadcareImageId',_0x24a5a9);});}['_initConfig'](){const _0x253045=this['editor']['config']['get']('uploadcare.uploader')||{},_0x1abf12=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x5e28ed(_0x4bf13c['document'],'uc-config',{..._0x253045,'pubkey':_0x1abf12,'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']=_0x349964=>{if('closeMax'==_0x349964)return'#uc-icon-arrow-down';},_0x4bf13c['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x5e28ed(_0x4bf13c['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader'}),_0x4bf13c['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x1162d6=this['editor']['commands']['get']('insertImage');_0x1162d6&&this['listenTo'](_0x1162d6,'execute',()=>{const _0x1b0733=this['editor']['model']['document']['selection']['getSelectedElement']();_0x1b0733&&_0x1b0733['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{m(this['editor'],_0x1b0733);});});const _0x2e2e3b=this['editor']['commands']['get']('uploadcareImageReplace');_0x2e2e3b&&this['listenTo'](_0x2e2e3b,'execute',()=>{const _0x3ebc4b=this['editor']['model']['document']['selection']['getSelectedElement']();_0x3ebc4b&&_0x3ebc4b['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{m(this['editor'],_0x3ebc4b);});});}}class u extends _0x5b1d13{static get['requires'](){return[i,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x107a00){super(_0x107a00),_0x107a00['config']['define']('uploadcare.uploader.sourceList',[o['Local'],o['URL']]),_0x126372['defineComponents'](_0x126372);}}class ta extends _0x20262d{constructor(_0x41b2d8){super(_0x41b2d8);const t=_0x41b2d8['t'],_0x1cb776=this['bindTemplate'],_0x545a13=new _0x1036e3();_0x545a13['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':[_0x545a13,{'text':_0x1cb776['to']('imageUploadProgress',_0x51ce31=>t('Loading\x20image...')+'\x20('+(_0x51ce31||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 _0x20262d{constructor(_0x1d2b14){super(_0x1d2b14);const t=_0x1d2b14['t'];this['set']('errorType',null);const _0x1069d1=new _0x2a6200(_0x1d2b14);_0x1069d1['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x1069d1['withText']=!0x0,_0x1069d1['class']='ck-button-action',_0x1069d1['on']('execute',()=>{this['fire']('retry');}),_0x1069d1['bind']('isVisible')['to'](this,'errorType',_0x475659=>'NotFound'!==_0x475659);const _0x44d6fa=new at();_0x44d6fa['content']=et,_0x44d6fa['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x2f0a0b=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':[_0x44d6fa,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x2f0a0b['to']('errorType',_0x1afa6a=>t('NotFound'!==_0x1afa6a?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x1069d1]},{'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 _0x20262d{constructor(_0x5445d9,_0x4d2799){super(_0x5445d9);const _0x4e2157=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x4d2799,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x4e2157['to']('imageSrc')}});}}class Z extends q{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x4bfc7a,_0x3f3fea,_0xa94dcf){super(_0x4bfc7a),this['_items']=this['createCollection'](),this['_loadingView']=new ta(_0x4bfc7a),this['_errorView']=new rt(_0x4bfc7a),this['_editingView']=new tt(_0x4bfc7a,_0xa94dcf),this['_focusableView']=new _0x20262d(_0x4bfc7a),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x3f3fea),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'],_0x3f5d82=>{this['_addUploadcareImageEditorListeners'](_0x3f5d82);});}),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'](_0x4fd6e9,_0x1e645c){const _0x1d1484='uc-cloud-image-editor',_0x4246cd=_0x4fd6e9['querySelector'](_0x1d1484);if(_0x4246cd)return _0x1e645c(_0x4246cd);const _0x2e0ee3=new MutationObserver(_0x154b54=>{const _0x1f2fb9=_0x154b54['filter'](_0x2522cd=>_0x2522cd['target']===_0x4fd6e9&&_0x2522cd['addedNodes']['length']>0x0&&_0x2522cd['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x1d1484);_0x1f2fb9['length']&&(_0x2e0ee3['disconnect'](),_0x1e645c(_0x1f2fb9[0x0]['addedNodes'][0x0]));});_0x2e0ee3['observe'](_0x4fd6e9,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x476747){_0x476747['addEventListener']('apply',_0x2e7327=>{this['fire']('apply',{'imageSrc':_0x2e7327['detail']['cdnUrl']});}),_0x476747['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class z extends/* #__PURE__ -- @preserve */
25
+ _0x1e28d0(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x35811c,_0x63082f,_0x3941c4){super(),this['_editor']=_0x35811c,this['_dialog']=_0x63082f,this['_imageElement']=_0x3941c4,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 _0x460aac=this['_imageElement'],_0x5935b8=_0x460aac['getAttribute']('uploadcareImageId'),_0x286b70=_0x460aac['getAttribute']('src');if(_0x5935b8)await this['_loadImageInfo'](_0x5935b8,_0x286b70);else{if(this['_imageCache']['has'](_0x286b70)){const _0x25ece1=this['_imageCache']['get'](_0x286b70);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x25ece1['url'],this['imageDimension']=_0x25ece1['dimension'],this['imageId']=_0x25ece1['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x3dddd2}=this['_editor'],t=_0x3dddd2['t'],_0x1ff1e0=new Z(_0x3dddd2,this['imageStatus'],this['_attributes']);_0x1ff1e0['bind']('status')['to'](this,'imageStatus'),_0x1ff1e0['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x1ff1e0['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x1ff1e0['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x1ff1e0,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x2e0263,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x1ff1e0,'position':_0x32eb1d['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x1ff1e0['focus']();},'onHide':()=>{_0x1ff1e0['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x3fb08e=>!F(_0x3fb08e,_0x1ff1e0['element'])}});}['_loadImageInfo'](_0xbdff9c,_0x24de2f){return C['getInfo'](_0xbdff9c,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey')})['then'](_0x1770ed=>{const {width:_0x61522b,height:_0x209c99}=_0x1770ed['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x24de2f,this['imageDimension']={'width':_0x61522b,'height':_0x209c99},this['imageId']=_0xbdff9c;})['catch'](_0x4f7dd1=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x4f7dd1['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x5a52c1,_0x19c00b){return this['_getImageAsFile'](_0x5a52c1)['then'](_0x3c1ec6=>C['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'signal':_0x19c00b['signal'],'file':_0x3c1ec6,'onProgress':_0x4417cd=>{_0x4417cd&&_0x4417cd['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x4417cd['value']));}}))['then'](_0x4a64d1=>{const {width:_0xee0d41,height:_0x59609b}=_0x4a64d1['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x4a64d1['cdnUrl'],this['imageDimension']={'width':_0xee0d41,'height':_0x59609b},this['imageId']=_0x4a64d1['uuid'],this['imageUploadProgress']=null;const _0x61ca23=_0x5a52c1['getAttribute']('src');this['_imageCache']['set'](_0x61ca23,{'id':_0x4a64d1['uuid'],'url':_0x4a64d1['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x57f8d7=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x57f8d7['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x419e5c,_0x29b47b){_0x419e5c['on']('apply',(_0x32ab42,_0xbe1210)=>{this['_replaceImage'](_0x29b47b,_0xbe1210['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x419e5c['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x419e5c['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x319019,_0x1b979c,_0x31a471){const _0x11dff5=this['_editor'],{width:_0x37c243,height:_0x523ca2}=A(_0x1b979c,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0xad48d6,imageSources:_0x5f4631}=E(_0x1b979c,_0x37c243);_0x11dff5['model']['change'](_0x16af6d=>{if('$graveyard'===_0x319019['root']['rootName']){_0x11dff5['execute']('insertImage',{'imageType':_0x319019['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x319019['getAttributes']()),'uploadcareImageId':_0x31a471,'src':_0xad48d6,'sources':_0x5f4631,'width':_0x37c243,'height':_0x523ca2}});const _0x5acd7a=_0x319019['getChildren']();_0x319019=_0x11dff5['model']['document']['selection']['getSelectedElement']();for(const _0x366b74 of _0x5acd7a)_0x16af6d['append'](_0x16af6d['cloneElement'](_0x366b74),_0x319019);}else _0x16af6d['setSelection'](_0x319019,'on'),_0x11dff5['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x319019['getAttributes']()),'uploadcareImageId':_0x31a471,'src':_0xad48d6,'sources':_0x5f4631,'width':_0x37c243,'height':_0x523ca2},_0x319019);_0x16af6d['setSelection'](_0x319019,'on');});}async['_getImageAsFile'](_0x36f571){const _0x2572e8=_0x4bf13c['window'],_0x1932dc=_0x4bf13c['document']['location']['href'],_0x4b29d0=new _0x2572e8['URL'](_0x36f571['getAttribute']('src'),_0x1932dc);if('data:'===_0x4b29d0['protocol']){const _0x2cb3b3=_0x4b29d0['href']['split'](','),_0x52aaf4=_0x2cb3b3[0x0]['match'](/:(.*?);/)[0x1],_0x30ed76=_0x52aaf4['split']('/')[0x1],_0x4abfbf=_0x2572e8['atob'](_0x2cb3b3[_0x2cb3b3['length']-0x1]);let _0x3dfc08=_0x4abfbf['length'];const _0x42ff25=new _0x2572e8['Uint8Array'](_0x3dfc08);for(;_0x3dfc08--;)_0x42ff25[_0x3dfc08]=_0x4abfbf['charCodeAt'](_0x3dfc08);return new _0x2572e8['File']([_0x42ff25],'image.'+_0x30ed76,{'type':_0x52aaf4});}const _0x26fc81=_0x4b29d0['href']['split']('/'),_0x4db863=_0x26fc81[_0x26fc81['length']-0x1],_0x143bc7=_0x4db863['split']('.')[0x1];return _0x2572e8['fetch'](_0x4b29d0['href'])['then'](_0x320386=>_0x320386['clone']()['blob']())['then'](_0x4a5fdb=>new _0x2572e8['File']([_0x4a5fdb],_0x4db863,{'type':'image/'+_0x143bc7}));}}class J extends _0x4ee250{['imageEditController'];static get['requires'](){return[_0x3c66ac];}['_isEditable'];constructor(_0x51bb8d){super(_0x51bb8d),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x7b5efe){const _0x300c08=V(_0x7b5efe);return _0x2f4d3b=>!(!_0x2f4d3b||!_0x2f4d3b['is']('element','imageBlock')&&!_0x2f4d3b['is']('element','imageInline'))&&(!!_0x2f4d3b['hasAttribute']('uploadcareImageId')||!!_0x2f4d3b['hasAttribute']('src')&&_0x300c08(_0x2f4d3b['getAttribute']('src')));}(_0x51bb8d['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x7c967c=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x7c967c);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x179fb0=this['editor']['model']['document']['selection']['getSelectedElement']();_0x179fb0&&(_0x179fb0['is']('element','imageBlock')||_0x179fb0['is']('element','imageInline'))&&(this['imageEditController']=new z(this['editor'],this['editor']['plugins']['get'](_0x3c66ac),_0x179fb0),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class O extends _0x4ee250{['refresh'](){const _0x765b46=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x765b46&&(_0x765b46['is']('element','imageBlock')||_0x765b46['is']('element','imageInline')));}['execute'](_0x1aee86){const _0x545d75=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x47535b=>{_0x47535b['setAttributes'](_0x1aee86,_0x545d75),_0x47535b['removeAttribute']('srcset',_0x545d75),_0x47535b['removeAttribute']('sizes',_0x545d75);});}}class g extends _0x5b1d13{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[i,_0x5a7518,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x245c3a}=this;_0x245c3a['commands']['add']('uploadcareImageEdit',new J(_0x245c3a)),_0x245c3a['commands']['add']('uploadcareImageReplace',new O(_0x245c3a));}}class j extends _0x5b1d13{['_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 _0x4f2e5c=this['editor'];_0x4f2e5c['ui']['componentFactory']['add']('uploadcareImageEdit',_0x3a76fe=>{const _0x5af3e2=_0x4f2e5c['commands']['get']('uploadcareImageEdit'),_0x287168=new _0x2a6200(_0x3a76fe),t=_0x3a76fe['t'];return _0x287168['set']({'icon':_0x2e0263,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x287168['bind']('isEnabled')['to'](_0x5af3e2),_0x287168['bind']('isOn')['to'](_0x5af3e2,'isActive'),this['listenTo'](_0x287168,'execute',()=>{_0x4f2e5c['execute']('uploadcareImageEdit'),_0x4f2e5c['editing']['view']['focus']();}),_0x287168;}),this['_initConfig']();}['_initConfig'](){const _0x29df1e=_0x5e28ed(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x29df1e),this['listenTo'](this['editor'],'destroy',()=>{_0x29df1e['remove']();});}}class P extends _0x5b1d13{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-20250503.0",
3
+ "version": "0.0.0-nightly-20250505.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-20250503.0",
27
- "@ckeditor/ckeditor5-icons": "0.0.0-nightly-20250503.0",
28
- "@ckeditor/ckeditor5-image": "0.0.0-nightly-20250503.0",
29
- "@ckeditor/ckeditor5-theme-lark": "0.0.0-nightly-20250503.0",
30
- "@ckeditor/ckeditor5-ui": "0.0.0-nightly-20250503.0",
31
- "@ckeditor/ckeditor5-upload": "0.0.0-nightly-20250503.0",
32
- "@ckeditor/ckeditor5-utils": "0.0.0-nightly-20250503.0",
33
- "ckeditor5": "0.0.0-nightly-20250503.0",
26
+ "@ckeditor/ckeditor5-core": "0.0.0-nightly-20250505.0",
27
+ "@ckeditor/ckeditor5-icons": "0.0.0-nightly-20250505.0",
28
+ "@ckeditor/ckeditor5-image": "0.0.0-nightly-20250505.0",
29
+ "@ckeditor/ckeditor5-theme-lark": "0.0.0-nightly-20250505.0",
30
+ "@ckeditor/ckeditor5-ui": "0.0.0-nightly-20250505.0",
31
+ "@ckeditor/ckeditor5-upload": "0.0.0-nightly-20250505.0",
32
+ "@ckeditor/ckeditor5-utils": "0.0.0-nightly-20250505.0",
33
+ "ckeditor5": "0.0.0-nightly-20250505.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 _0x488ac3=_0xd7ff;function _0x43f0(){const _0x33ce8c=['uploadcare.uploader','requires','uploader','execute','80eBFPHx','attributeToAttribute','uc-config','1508128JqsouK','configElement','_ctxElement','uploadcare.pubkey','_initConfig','922044fCSsJe','remove','imageInline','href','iconHrefResolver','for','200oQBygx','50514SaIwML','once','true','downcast','data-uc-image-id','945153oYADAK','input[uploadcare-file-input]','9oNsqnh','destroy','isPremiumPlugin','uploadcareImageReplace','_initConversion','model','selection','UploadcareEditing','commands','isOfficialPlugin','removeAttribute','1182OQFetm','uc-upload-ctx-provider','body','1681aJtXxO','imageBlock','contentLanguage','elementToAttribute','getSelectedElement','#uc-icon-arrow-down','68GktDqy','_initCtx','uploadcare','editor','uploadcareImageId','pluginName','_initSchema','querySelector','_configElement','cleanupImage','upcast','editing','closeMax','_initImageProcessingIndicator','appendChild','add','view','fromCharCode','getAttribute','get','extend','3225432AhwKGx','replaceImageSource','init','insertImage','conversion','afterInit','PictureEditing','ctxElement','config','schema','isRegistered','map','locale','render','28563pvCkLf','document','join','\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','listenTo'];_0x43f0=function(){return _0x33ce8c;};return _0x43f0();}(function(_0x3934d7,_0x5d0777){const _0x576776=_0xd7ff,_0x4b41b1=_0x3934d7();while(!![]){try{const _0x1eaccf=-parseInt(_0x576776(0x209))/0x1*(-parseInt(_0x576776(0x206))/0x2)+-parseInt(_0x576776(0x232))/0x3*(-parseInt(_0x576776(0x20f))/0x4)+parseInt(_0x576776(0x1f3))/0x5*(-parseInt(_0x576776(0x1f4))/0x6)+-parseInt(_0x576776(0x224))/0x7+-parseInt(_0x576776(0x23e))/0x8*(parseInt(_0x576776(0x1fb))/0x9)+-parseInt(_0x576776(0x23b))/0xa*(-parseInt(_0x576776(0x1f9))/0xb)+-parseInt(_0x576776(0x243))/0xc;if(_0x1eaccf===_0x5d0777)break;else _0x4b41b1['push'](_0x4b41b1['shift']());}catch(_0x505589){_0x4b41b1['push'](_0x4b41b1['shift']());}}}(_0x43f0,0xbe62f));function _0xd7ff(_0x57b1bf,_0x52618d){const _0x43f05d=_0x43f0();return _0xd7ff=function(_0xd7ff83,_0x472e72){_0xd7ff83=_0xd7ff83-0x1ee;let _0x3ee0d5=_0x43f05d[_0xd7ff83];return _0x3ee0d5;},_0xd7ff(_0x57b1bf,_0x52618d);}import{Plugin as _0x2c29ba}from'ckeditor5/src/core.js';import{Dialog as _0x10ca0c}from'ckeditor5/src/ui.js';import{createElement as _0x21fd0d,global as _0x491ca9,uid as _0x42c671}from'ckeditor5/src/utils.js';import _0x212f08 from'./uploadcarecommand.js';import _0x10a0e6 from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0x264d82}from'./utils/editingutils.js';export default class i extends _0x2c29ba{[_0x488ac3(0x217)]=null;[_0x488ac3(0x240)]=null;static get[_0x488ac3(0x214)](){const _0x3a4ecf=_0x488ac3;return _0x3a4ecf(0x202);}static get[_0x488ac3(0x238)](){const _0x1d7489=_0x488ac3;return[_0x1d7489(0x22a),_0x10a0e6,_0x10ca0c];}static get[_0x488ac3(0x204)](){return!0x0;}static get[_0x488ac3(0x1fd)](){return!0x0;}get[_0x488ac3(0x23f)](){const _0x3b94d3=_0x488ac3;return this[_0x3b94d3(0x217)];}get[_0x488ac3(0x22b)](){const _0x55abed=_0x488ac3;return this[_0x55abed(0x240)];}[_0x488ac3(0x226)](){const _0x1ac59a=_0x488ac3,_0x49c542=this[_0x1ac59a(0x212)];_0x49c542[_0x1ac59a(0x203)][_0x1ac59a(0x21e)](_0x1ac59a(0x211),new _0x212f08(_0x49c542));}[_0x488ac3(0x229)](){const _0x4d5e91=_0x488ac3;this[_0x4d5e91(0x215)](),this[_0x4d5e91(0x1ff)](),this[_0x4d5e91(0x242)](),this[_0x4d5e91(0x210)](),this[_0x4d5e91(0x21c)](),this[_0x4d5e91(0x236)](this[_0x4d5e91(0x212)],_0x4d5e91(0x1fc),()=>{const _0x5a3a56=_0x4d5e91;this[_0x5a3a56(0x217)]&&(this[_0x5a3a56(0x217)][_0x5a3a56(0x1ee)](),this[_0x5a3a56(0x217)]=null),this[_0x5a3a56(0x240)]&&(this[_0x5a3a56(0x240)][_0x5a3a56(0x1ee)](),this[_0x5a3a56(0x240)]=null);const _0x53dc52=_0x491ca9[_0x5a3a56(0x233)][_0x5a3a56(0x216)](_0x5a3a56(0x1fa));_0x53dc52&&_0x53dc52[_0x5a3a56(0x1ee)]();}),async function(_0x587f92){const _0x32bc86=_0x4dcfb0([0x32,0x5a,0x6e,0x67,0x78,0x72,0x65,0x61,0x49,0x41,0x68,0x58,0x74,0x6a,0x73,0x51,0x75,0x63,0x4b,0x4e,0x47,0x31,0x39,0x46,0x34,0x30,0x44,0x4c,0x4f,0x48,0x76,0x56,0x36,0x45,0x53,0x38,0x77,0x4d,0x7a,0x55,0x79,0x4a,0x62,0x70,0x37,0x57,0x50,0x6b,0x54,0x64,0x43,0x6f,0x71,0x33,0x35,0x69,0x52,0x6d,0x59,0x6c,0x42,0x66]),_0x105842=0xc73dc82,_0x50093f=0xc74ba4a^_0x105842,_0x5757e3=window[_0x4dcfb0([0x44,0x61,0x74,0x65])][_0x4dcfb0([0x6e,0x6f,0x77])](),_0x489e=_0x587f92[_0x4dcfb0([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x5448c9=new window[(_0x4dcfb0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2ec51d=>{_0x489e[_0x4dcfb0([0x6f,0x6e,0x63,0x65])](_0x4dcfb0([0x72,0x65,0x61,0x64,0x79]),_0x2ec51d);}),_0x6997ba={[_0x4dcfb0([0x6b,0x74,0x79])]:_0x4dcfb0([0x45,0x43]),[_0x4dcfb0([0x75,0x73,0x65])]:_0x4dcfb0([0x73,0x69,0x67]),[_0x4dcfb0([0x63,0x72,0x76])]:_0x4dcfb0([0x50,0x2d,0x32,0x35,0x36]),[_0x4dcfb0([0x78])]:_0x4dcfb0([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]),[_0x4dcfb0([0x79])]:_0x4dcfb0([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]),[_0x4dcfb0([0x61,0x6c,0x67])]:_0x4dcfb0([0x45,0x53,0x32,0x35,0x36])},_0x5c1e2a=_0x489e[_0x4dcfb0([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x4dcfb0([0x67,0x65,0x74])](_0x4dcfb0([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x179c14(){let _0x3033c4,_0x443c8e=null,_0x313cde=null;try{if(_0x5c1e2a==_0x4dcfb0([0x47,0x50,0x4c]))return _0x4dcfb0([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x3033c4=_0x34adc2(),!_0x3033c4)return _0x4dcfb0([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x3033c4[_0x4dcfb0([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x313cde=_0x270331(_0x3033c4[_0x4dcfb0([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x3033c4[_0x4dcfb0([0x6a,0x74,0x69])])),await _0x515af7()?_0x2309a5()?_0x2b9ab3()?_0x4dcfb0([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x2b4a2b()?(_0x3033c4[_0x4dcfb0([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x4dcfb0([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x443c8e=_0x3675fc(_0x4dcfb0([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x3033c4[_0x4dcfb0([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x4dcfb0([0x74,0x72,0x69,0x61,0x6c])&&(_0x443c8e=_0x3675fc(_0x4dcfb0([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x4a4805()):_0x4dcfb0([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x4dcfb0([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x4dcfb0([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x12c05d){return _0x4dcfb0([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x2b9ab3(){const _0x23897c=[_0x4dcfb0([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x4dcfb0([0x74,0x72,0x69,0x61,0x6c])][_0x4dcfb0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3033c4[_0x4dcfb0([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x5757e3/0x3e8:0xe10*_0x50093f;return _0x3033c4[_0x4dcfb0([0x65,0x78,0x70])]<_0x23897c;}function _0x2309a5(){const _0x1c4786=_0x3033c4[_0x4dcfb0([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x1c4786&&(!!_0x1c4786[_0x4dcfb0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4dcfb0([0x2a]))||!!_0x1c4786[_0x4dcfb0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4dcfb0([0x55,0x50,0x4c,0x43])));}function _0x2b4a2b(){const _0x1a4306=_0xd7ff,_0x583255=_0x3033c4[_0x4dcfb0([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x583255||0x0==_0x583255[_0x4dcfb0([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x3618f8}=new URL(window[_0x4dcfb0([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x1a4306(0x1f0)]);if(_0x583255[_0x4dcfb0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3618f8))return!0x0;const _0x2c815d=_0x3618f8[_0x4dcfb0([0x73,0x70,0x6c,0x69,0x74])](_0x4dcfb0([0x2e]));return _0x583255[_0x4dcfb0([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x7579b1=>_0x7579b1[_0x4dcfb0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4dcfb0([0x2a])))[_0x4dcfb0([0x6d,0x61,0x70])](_0x588dec=>_0x588dec[_0x4dcfb0([0x73,0x70,0x6c,0x69,0x74])](_0x4dcfb0([0x2e])))[_0x4dcfb0([0x73,0x6f,0x6d,0x65])](_0x357388=>_0x2c815d[_0x4dcfb0([0x65,0x76,0x65,0x72,0x79])]((_0x19cddd,_0x4f2887)=>_0x357388[_0x4f2887]===_0x19cddd||_0x357388[_0x4f2887]===_0x4dcfb0([0x2a])));}function _0x4a4805(){return _0x443c8e&&_0x313cde?new window[(_0x4dcfb0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3de5ff,_0x2b1000)=>{_0x443c8e[_0x4dcfb0([0x74,0x68,0x65,0x6e])](_0x3de5ff,_0x2b1000),_0x313cde[_0x4dcfb0([0x74,0x68,0x65,0x6e])](_0x1ccaa7=>{_0x1ccaa7!=_0x4dcfb0([0x56,0x61,0x6c,0x69,0x64])&&_0x3de5ff(_0x1ccaa7);},_0x2b1000);}):_0x443c8e||_0x313cde||_0x4dcfb0([0x56,0x61,0x6c,0x69,0x64]);}}function _0x270331(_0x4618e5,_0x53c4ef){return new window[(_0x4dcfb0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x22945f=>{if(_0x21ee86())return _0x22945f(_0x4dcfb0([0x56,0x61,0x6c,0x69,0x64]));_0x1be287(),_0x489e[_0x4dcfb0([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x4dcfb0([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0xa83f66=!0x1;const _0x3ad5d9=_0x42c671();function _0x2fbade(_0x504108){return!!_0x504108&&(typeof _0x504108===_0x4dcfb0([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x504108===_0x4dcfb0([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x504108[_0x4dcfb0([0x74,0x68,0x65,0x6e])]===_0x4dcfb0([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x504108[_0x4dcfb0([0x63,0x61,0x74,0x63,0x68])]===_0x4dcfb0([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x1503ce(_0x38d45c){_0x1ce6cf(_0x38d45c)[_0x4dcfb0([0x74,0x68,0x65,0x6e])](_0x3929fc=>{if(!_0x3929fc||_0x3929fc[_0x4dcfb0([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x4dcfb0([0x6f,0x6b]))return _0x4dcfb0([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x1807e0(_0x1d2f38(_0x3ad5d9+_0x53c4ef))!=_0x3929fc[_0x4dcfb0([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x4dcfb0([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x4dcfb0([0x56,0x61,0x6c,0x69,0x64]);})[_0x4dcfb0([0x74,0x68,0x65,0x6e])](_0x978c34=>(_0x33302a(),_0x978c34),()=>{const _0x183c4d=_0xe420a0();return null==_0x183c4d?(_0x33302a(),_0x4dcfb0([0x56,0x61,0x6c,0x69,0x64])):_0x4dcfb0(_0x5757e3-_0x183c4d>(0x287f5882^_0x105842)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x4dcfb0([0x74,0x68,0x65,0x6e])](_0x22945f)[_0x4dcfb0([0x63,0x61,0x74,0x63,0x68])](()=>{_0x22945f(_0x4dcfb0([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x2c9127=0xc453202^_0x105842;function _0x33302a(){const _0x4470b6=_0x4dcfb0([0x6c,0x6c,0x63,0x74,0x2d])+_0x1807e0(_0x1d2f38(_0x4618e5)),_0xee9532=_0x4128d0(_0x1807e0(window[_0x4dcfb0([0x4d,0x61,0x74,0x68])][_0x4dcfb0([0x63,0x65,0x69,0x6c])](_0x5757e3/_0x2c9127)));window[_0x4dcfb0([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4dcfb0([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4470b6,_0xee9532);}function _0xe420a0(){const _0x5b13af=_0x4dcfb0([0x6c,0x6c,0x63,0x74,0x2d])+_0x1807e0(_0x1d2f38(_0x4618e5)),_0x3c0a36=window[_0x4dcfb0([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4dcfb0([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x5b13af);return _0x3c0a36?window[_0x4dcfb0([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4128d0(_0x3c0a36),0x10)*_0x2c9127:null;}function _0x1ce6cf(_0x1a0391){return new window[(_0x4dcfb0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x36837b,_0x200d97)=>{_0x1a0391[_0x4dcfb0([0x74,0x68,0x65,0x6e])](_0x36837b,_0x200d97),window[_0x4dcfb0([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x200d97,0xc720842^_0x105842);});}}_0x489e[_0x4dcfb0([0x6f,0x6e])](_0x4dcfb0([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x2e9e0d,_0x1ae3a1)=>{if(_0x1ae3a1[0x0]!=_0x4618e5)return _0x22945f(_0x4dcfb0([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x1ae3a1[0x1]={..._0x1ae3a1[0x1],[_0x4dcfb0([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x3ad5d9};},{[_0x4dcfb0([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4dcfb0([0x68,0x69,0x67,0x68])}),_0x489e[_0x4dcfb0([0x6f,0x6e])](_0x4dcfb0([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x462394=>{_0x2fbade(_0x462394[_0x4dcfb0([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0xa83f66=!0x0,_0x1503ce(_0x462394[_0x4dcfb0([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x4dcfb0([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4dcfb0([0x6c,0x6f,0x77])}),_0x5448c9[_0x4dcfb0([0x74,0x68,0x65,0x6e])](()=>{_0xa83f66||_0x22945f(_0x4dcfb0([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x21ee86(){return _0x489e[_0x4dcfb0([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4dcfb0([0x76,0x69,0x65,0x77])][_0x4dcfb0([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x4dcfb0([0x61,0x75,0x74,0x6f]);}function _0x1be287(){_0x489e[_0x4dcfb0([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4dcfb0([0x76,0x69,0x65,0x77])][_0x4dcfb0([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x4dcfb0([0x61,0x75,0x74,0x6f]);}}function _0x3675fc(_0x3aca3f){const _0x5ec622=[new window[(_0x4dcfb0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xca4ad9=>setTimeout(_0xca4ad9,0xc7ae24e^_0x105842)),_0x5448c9[_0x4dcfb0([0x74,0x68,0x65,0x6e])](()=>new window[(_0x4dcfb0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2d94ce=>{let _0x45a515=0x0;_0x489e[_0x4dcfb0([0x6d,0x6f,0x64,0x65,0x6c])][_0x4dcfb0([0x6f,0x6e])](_0x4dcfb0([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x5e5127,_0xca9b9f)=>{_0xca9b9f[0x0][_0x4dcfb0([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x45a515++,_0x45a515==(0xc73dd7a^_0x105842)&&(_0x2d94ce(),_0x5e5127[_0x4dcfb0([0x6f,0x66,0x66])]());});}))];return window[_0x4dcfb0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x4dcfb0([0x72,0x61,0x63,0x65])](_0x5ec622)[_0x4dcfb0([0x74,0x68,0x65,0x6e])](()=>_0x3aca3f);}async function _0x29e160(){await _0x5448c9,_0x489e[_0x4dcfb0([0x6d,0x6f,0x64,0x65,0x6c])][_0x4dcfb0([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x3fd995,_0x489e[_0x4dcfb0([0x6d,0x6f,0x64,0x65,0x6c])][_0x4dcfb0([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x3fd995,_0x489e[_0x4dcfb0([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x4dcfb0([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x4bfada(_0x407596){const _0x233b18=_0x48b047();_0x489e[_0x233b18]=_0x4dcfb0([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x407596,_0x407596!=_0x4dcfb0([0x56,0x61,0x6c,0x69,0x64])&&_0x29e160();}function _0x48b047(){const _0x1e1370=window[_0x4dcfb0([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x4dcfb0([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x4dcfb0([0x6e,0x6f,0x77])]())[_0x4dcfb0([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x4dcfb0([0x2e]),'');let _0x28c04f=_0x4dcfb0([0x5a]);for(let _0x2906e3=0x0;_0x2906e3<_0x1e1370[_0x4dcfb0([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2906e3+=0x2){let _0x103ef2=window[_0x4dcfb0([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1e1370[_0x4dcfb0([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2906e3,_0x2906e3+0x2));_0x103ef2>=_0x32bc86[_0x4dcfb0([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x103ef2-=_0x32bc86[_0x4dcfb0([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x28c04f+=_0x32bc86[_0x103ef2];}return _0x28c04f;}function _0x34adc2(){const _0x588b72=_0x5c1e2a[_0x4dcfb0([0x73,0x70,0x6c,0x69,0x74])](_0x4dcfb0([0x2e]));if(0x3!=_0x588b72[_0x4dcfb0([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x51ff5e(_0x588b72[0x1]);function _0x51ff5e(_0x12f06f){const _0xd0bec7=_0x193504(_0x12f06f);return _0xd0bec7&&_0x9e7a05()?_0xd0bec7:null;function _0x9e7a05(){const _0x5b1a06=_0xd0bec7[_0x4dcfb0([0x6a,0x74,0x69])],_0x46efaa=window[_0x4dcfb0([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5b1a06[_0x4dcfb0([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x5b1a06[_0x4dcfb0([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x17c2fd={..._0xd0bec7,[_0x4dcfb0([0x6a,0x74,0x69])]:_0x5b1a06[_0x4dcfb0([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x5b1a06[_0x4dcfb0([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x17c2fd[_0x4dcfb0([0x76,0x63])],_0x1d2f38(_0x17c2fd)==_0x46efaa;}}}async function _0x515af7(){let _0x2d131c=!0x0;try{const _0x15142a=_0x5c1e2a[_0x4dcfb0([0x73,0x70,0x6c,0x69,0x74])](_0x4dcfb0([0x2e])),[_0x439d75,_0x2db3c7,_0x2338c4]=_0x15142a;return _0x287853(_0x439d75),await _0x38f66e(_0x439d75,_0x2db3c7,_0x2338c4),_0x2d131c;}catch(_0x996c80){return!0x1;}function _0x287853(_0x18ae8a){const _0x508284=_0x193504(_0x18ae8a);_0x508284&&_0x508284[_0x4dcfb0([0x61,0x6c,0x67])]==_0x4dcfb0([0x45,0x53,0x32,0x35,0x36])||(_0x2d131c=!0x1);}async function _0x38f66e(_0x41dd5c,_0x5c9467,_0x12d3a6){const _0x3b7fbb=window[_0x4dcfb0([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x4dcfb0([0x66,0x72,0x6f,0x6d])](_0x994fb5(_0x12d3a6),_0x5dd3c2=>_0x5dd3c2[_0x4dcfb0([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x3ff82b=new window[(_0x4dcfb0([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x4dcfb0([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x41dd5c+_0x4dcfb0([0x2e])+_0x5c9467),_0x4931fc=window[_0x4dcfb0([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x4dcfb0([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x4931fc)return;const _0xccc885=await _0x4931fc[_0x4dcfb0([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x4dcfb0([0x6a,0x77,0x6b]),_0x6997ba,{[_0x4dcfb0([0x6e,0x61,0x6d,0x65])]:_0x4dcfb0([0x45,0x43,0x44,0x53,0x41]),[_0x4dcfb0([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x4dcfb0([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x4dcfb0([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x4931fc[_0x4dcfb0([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x4dcfb0([0x6e,0x61,0x6d,0x65])]:_0x4dcfb0([0x45,0x43,0x44,0x53,0x41]),[_0x4dcfb0([0x68,0x61,0x73,0x68])]:{[_0x4dcfb0([0x6e,0x61,0x6d,0x65])]:_0x4dcfb0([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0xccc885,_0x3b7fbb,_0x3ff82b)||(_0x2d131c=!0x1);}}function _0x193504(_0x16adda){return _0x16adda[_0x4dcfb0([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x4dcfb0([0x65,0x79]))?JSON[_0x4dcfb0([0x70,0x61,0x72,0x73,0x65])](_0x994fb5(_0x16adda)):null;}function _0x994fb5(_0x4bad91){return window[_0x4dcfb0([0x61,0x74,0x6f,0x62])](_0x4bad91[_0x4dcfb0([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x4dcfb0([0x2b]))[_0x4dcfb0([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x4dcfb0([0x2f])));}function _0x1d2f38(_0x1c4e5e){let _0x31c0a4=0x1505;function _0x39b282(_0xe136f7){for(let _0x51cc91=0x0;_0x51cc91<_0xe136f7[_0x4dcfb0([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x51cc91++){const _0x5b1b3b=_0xe136f7[_0x4dcfb0([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x51cc91);_0x31c0a4=(_0x31c0a4<<0x5)+_0x31c0a4+_0x5b1b3b,_0x31c0a4&=_0x31c0a4;}}function _0x31f5ee(_0x366a26){Array[_0x4dcfb0([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x366a26)?_0x366a26[_0x4dcfb0([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x31f5ee):_0x366a26&&typeof _0x366a26==_0x4dcfb0([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x4dcfb0([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x366a26)[_0x4dcfb0([0x73,0x6f,0x72,0x74])]()[_0x4dcfb0([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x49f6ac,_0xa9143b])=>{_0x39b282(_0x49f6ac),_0x31f5ee(_0xa9143b);}):_0x39b282(window[_0x4dcfb0([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x366a26));}return _0x31f5ee(_0x1c4e5e),_0x31c0a4>>>0x0;}function _0x1807e0(_0x4ee8c0){return _0x4ee8c0[_0x4dcfb0([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x4dcfb0([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x4dcfb0([0x30]));}function _0x4128d0(_0x30e46b){return _0x30e46b[_0x4dcfb0([0x73,0x70,0x6c,0x69,0x74])]('')[_0x4dcfb0([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x4dcfb0([0x6a,0x6f,0x69,0x6e])]('');}function _0x3fd995(){}function _0x4dcfb0(_0x2ed911){const _0x125c79=_0xd7ff;return _0x2ed911[_0x125c79(0x22f)](_0x3da8c6=>String[_0x125c79(0x220)](_0x3da8c6))[_0x125c79(0x234)]('');}_0x4bfada(await _0x179c14());}(this);}[_0x488ac3(0x215)](){const _0x320d58=_0x488ac3,_0x243e96=this[_0x320d58(0x212)][_0x320d58(0x200)][_0x320d58(0x22d)];_0x243e96[_0x320d58(0x22e)](_0x320d58(0x20a))&&_0x243e96[_0x320d58(0x223)](_0x320d58(0x20a),{'allowAttributes':[_0x320d58(0x213)]}),_0x243e96[_0x320d58(0x22e)](_0x320d58(0x1ef))&&_0x243e96[_0x320d58(0x223)](_0x320d58(0x1ef),{'allowAttributes':[_0x320d58(0x213)]});}[_0x488ac3(0x1ff)](){const _0x7f1641=_0x488ac3,_0x164fa5=this[_0x7f1641(0x212)];_0x164fa5[_0x7f1641(0x228)][_0x7f1641(0x1f2)](_0x7f1641(0x1f7))[_0x7f1641(0x23c)]({'model':_0x7f1641(0x213),'view':_0x7f1641(0x1f8)}),_0x164fa5[_0x7f1641(0x228)][_0x7f1641(0x1f2)](_0x7f1641(0x219))[_0x7f1641(0x20c)]({'model':{'key':_0x7f1641(0x213),'value':_0x3d3856=>_0x3d3856[_0x7f1641(0x221)](_0x7f1641(0x1f8))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x569890=_0x164fa5[_0x7f1641(0x203)][_0x7f1641(0x222)](_0x7f1641(0x225));_0x569890&&this[_0x7f1641(0x236)](_0x569890,_0x7f1641(0x218),(_0xb749e2,[_0x4bd682,_0x5710fa])=>{const _0x599c7=_0x7f1641;_0x4bd682[_0x599c7(0x205)](_0x599c7(0x213),_0x5710fa);});}[_0x488ac3(0x242)](){const _0x31525f=_0x488ac3,_0x5cdab2=this[_0x31525f(0x212)][_0x31525f(0x22c)][_0x31525f(0x222)](_0x31525f(0x237))||{},_0x3fee76=this[_0x31525f(0x212)][_0x31525f(0x22c)][_0x31525f(0x222)](_0x31525f(0x241))||'';this[_0x31525f(0x217)]=_0x21fd0d(_0x491ca9[_0x31525f(0x233)],_0x31525f(0x23d),{..._0x5cdab2,'pubkey':_0x3fee76,'ctx-name':_0x31525f(0x239),'sourceList':'','imgOnly':_0x31525f(0x1f6),'removeCopyright':_0x31525f(0x1f6),'localeName':this[_0x31525f(0x212)][_0x31525f(0x230)][_0x31525f(0x20b)],'externalSourcesEmbedCss':_0x31525f(0x235)}),this[_0x31525f(0x217)][_0x31525f(0x1f1)]=_0x544e5e=>{const _0x3017df=_0x31525f;if(_0x3017df(0x21b)==_0x544e5e)return _0x3017df(0x20e);},_0x491ca9[_0x31525f(0x233)][_0x31525f(0x208)][_0x31525f(0x21d)](this[_0x31525f(0x217)]);}[_0x488ac3(0x210)](){const _0x3dfb7a=_0x488ac3;this[_0x3dfb7a(0x240)]=_0x21fd0d(_0x491ca9[_0x3dfb7a(0x233)],_0x3dfb7a(0x207),{'ctx-name':_0x3dfb7a(0x239)}),_0x491ca9[_0x3dfb7a(0x233)][_0x3dfb7a(0x208)][_0x3dfb7a(0x21d)](this[_0x3dfb7a(0x240)]);}[_0x488ac3(0x21c)](){const _0x482359=_0x488ac3,_0x4ccf73=this[_0x482359(0x212)][_0x482359(0x203)][_0x482359(0x222)](_0x482359(0x227));_0x4ccf73&&this[_0x482359(0x236)](_0x4ccf73,_0x482359(0x23a),()=>{const _0x12eeb1=_0x482359,_0x23fe9f=this[_0x12eeb1(0x212)][_0x12eeb1(0x200)][_0x12eeb1(0x233)][_0x12eeb1(0x201)][_0x12eeb1(0x20d)]();_0x23fe9f&&_0x23fe9f[_0x12eeb1(0x221)](_0x12eeb1(0x213))&&this[_0x12eeb1(0x212)][_0x12eeb1(0x21a)][_0x12eeb1(0x21f)][_0x12eeb1(0x1f5)](_0x12eeb1(0x231),()=>{const _0xb36343=_0x12eeb1;_0x264d82(this[_0xb36343(0x212)],_0x23fe9f);});});const _0x51cedb=this[_0x482359(0x212)][_0x482359(0x203)][_0x482359(0x222)](_0x482359(0x1fe));_0x51cedb&&this[_0x482359(0x236)](_0x51cedb,_0x482359(0x23a),()=>{const _0x2d97ed=_0x482359,_0x23f1c0=this[_0x2d97ed(0x212)][_0x2d97ed(0x200)][_0x2d97ed(0x233)][_0x2d97ed(0x201)][_0x2d97ed(0x20d)]();_0x23f1c0&&_0x23f1c0[_0x2d97ed(0x221)](_0x2d97ed(0x213))&&this[_0x2d97ed(0x212)][_0x2d97ed(0x21a)][_0x2d97ed(0x21f)][_0x2d97ed(0x1f5)](_0x2d97ed(0x231),()=>{const _0xec4f18=_0x2d97ed;_0x264d82(this[_0xec4f18(0x212)],_0x23f1c0);});});}}
23
+ function _0x5374(){const _0x32104f=['pluginName','_initImageProcessingIndicator','join','uploadcare','remove','getSelectedElement','5676220YtOMkg','upcast','map','requires','add','isPremiumPlugin','uploader','imageBlock','6145444CnVVPw','fromCharCode','_initConversion','isRegistered','closeMax','locale','afterInit','6crNdfj','_initSchema','cleanupImage','4823448wxvuTH','once','href','selection','928VNnzrE','downcast','replaceImageSource','document','_initCtx','_ctxElement','for','elementToAttribute','model','uploadcareImageId','uploadcareImageReplace','insertImage','imageInline','render','50834AzQkBd','contentLanguage','attributeToAttribute','conversion','_initConfig','body','querySelector','view','uploadcare.uploader','ctxElement','input[uploadcare-file-input]','extend','_configElement','removeAttribute','#uc-icon-arrow-down','commands','execute','listenTo','configElement','PictureEditing','UploadcareEditing','data-uc-image-id','\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup\x20{\x20padding:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-menu\x20{\x20gap:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-footer\x20{\x20padding-top:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__separator\x20{\x20margin:\x200;\x20}\x0a\x09\x09\x09','isOfficialPlugin','407714XVFZMt','config','uploadcare.pubkey','getAttribute','uc-config','schema','uc-upload-ctx-provider','iconHrefResolver','editing','465328XaGuxs','appendChild','true','destroy','init','editor','get','4397859dAMuDh'];_0x5374=function(){return _0x32104f;};return _0x5374();}const _0x4306e9=_0x3342;(function(_0x42bd0c,_0x157305){const _0x4b1b98=_0x3342,_0x3680ff=_0x42bd0c();while(!![]){try{const _0x1082b9=parseInt(_0x4b1b98(0xdc))/0x1+parseInt(_0x4b1b98(0x126))/0x2*(-parseInt(_0x4b1b98(0xf9))/0x3)+parseInt(_0x4b1b98(0xf2))/0x4+-parseInt(_0x4b1b98(0xea))/0x5+parseInt(_0x4b1b98(0xfc))/0x6+parseInt(_0x4b1b98(0x10e))/0x7*(-parseInt(_0x4b1b98(0x100))/0x8)+parseInt(_0x4b1b98(0xe3))/0x9;if(_0x1082b9===_0x157305)break;else _0x3680ff['push'](_0x3680ff['shift']());}catch(_0x15a72c){_0x3680ff['push'](_0x3680ff['shift']());}}}(_0x5374,0xdde62));import{Plugin as _0x525b70}from'ckeditor5/src/core.js';function _0x3342(_0x324b42,_0x238fd4){const _0x5374b4=_0x5374();return _0x3342=function(_0x3342a9,_0x4a6d2d){_0x3342a9=_0x3342a9-0xda;let _0x467ad8=_0x5374b4[_0x3342a9];return _0x467ad8;},_0x3342(_0x324b42,_0x238fd4);}import{Dialog as _0x187084}from'ckeditor5/src/ui.js';import{createElement as _0x4fd228,global as _0x4a1166,uid as _0x24ec02}from'ckeditor5/src/utils.js';import _0x76097c from'./uploadcarecommand.js';import _0x1cf840 from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0x43222c}from'./utils/editingutils.js';export default class i extends _0x525b70{[_0x4306e9(0x11a)]=null;[_0x4306e9(0x105)]=null;static get[_0x4306e9(0xe4)](){const _0x124202=_0x4306e9;return _0x124202(0x122);}static get[_0x4306e9(0xed)](){const _0xd04bb3=_0x4306e9;return[_0xd04bb3(0x121),_0x1cf840,_0x187084];}static get[_0x4306e9(0x125)](){return!0x0;}static get[_0x4306e9(0xef)](){return!0x0;}get[_0x4306e9(0x120)](){const _0x51b696=_0x4306e9;return this[_0x51b696(0x11a)];}get[_0x4306e9(0x117)](){const _0x364156=_0x4306e9;return this[_0x364156(0x105)];}[_0x4306e9(0xe0)](){const _0x559d8a=_0x4306e9,_0x5c8e84=this[_0x559d8a(0xe1)];_0x5c8e84[_0x559d8a(0x11d)][_0x559d8a(0xee)](_0x559d8a(0xe7),new _0x76097c(_0x5c8e84));}[_0x4306e9(0xf8)](){const _0xca500e=_0x4306e9;this[_0xca500e(0xfa)](),this[_0xca500e(0xf4)](),this[_0xca500e(0x112)](),this[_0xca500e(0x104)](),this[_0xca500e(0xe5)](),this[_0xca500e(0x11f)](this[_0xca500e(0xe1)],_0xca500e(0xdf),()=>{const _0x4d2239=_0xca500e;this[_0x4d2239(0x11a)]&&(this[_0x4d2239(0x11a)][_0x4d2239(0xe8)](),this[_0x4d2239(0x11a)]=null),this[_0x4d2239(0x105)]&&(this[_0x4d2239(0x105)][_0x4d2239(0xe8)](),this[_0x4d2239(0x105)]=null);const _0x37b881=_0x4a1166[_0x4d2239(0x103)][_0x4d2239(0x114)](_0x4d2239(0x118));_0x37b881&&_0x37b881[_0x4d2239(0xe8)]();}),async function(_0xd5ee6f){const _0x36cd5e=_0xee49db([0x72,0x41,0x46,0x50,0x65,0x32,0x6e,0x61,0x54,0x43,0x69,0x70,0x44,0x6b,0x64,0x5a,0x52,0x38,0x42,0x7a,0x79,0x39,0x30,0x31,0x77,0x6a,0x6c,0x78,0x4c,0x4b,0x47,0x51,0x71,0x55,0x36,0x74,0x4a,0x58,0x59,0x53,0x33,0x56,0x34,0x37,0x4f,0x76,0x66,0x6f,0x75,0x4e,0x62,0x48,0x63,0x35,0x68,0x73,0x67,0x4d,0x45,0x6d,0x57,0x49]),_0x1a323f=0x7e4e0e51,_0x13c68b=0x7e4968a9^_0x1a323f,_0xdd2a23=window[_0xee49db([0x44,0x61,0x74,0x65])][_0xee49db([0x6e,0x6f,0x77])](),_0x42882d=_0xd5ee6f[_0xee49db([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x2e9ccc=new window[(_0xee49db([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5e4c51=>{_0x42882d[_0xee49db([0x6f,0x6e,0x63,0x65])](_0xee49db([0x72,0x65,0x61,0x64,0x79]),_0x5e4c51);}),_0x380616={[_0xee49db([0x6b,0x74,0x79])]:_0xee49db([0x45,0x43]),[_0xee49db([0x75,0x73,0x65])]:_0xee49db([0x73,0x69,0x67]),[_0xee49db([0x63,0x72,0x76])]:_0xee49db([0x50,0x2d,0x32,0x35,0x36]),[_0xee49db([0x78])]:_0xee49db([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]),[_0xee49db([0x79])]:_0xee49db([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]),[_0xee49db([0x61,0x6c,0x67])]:_0xee49db([0x45,0x53,0x32,0x35,0x36])},_0x389fd1=_0x42882d[_0xee49db([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0xee49db([0x67,0x65,0x74])](_0xee49db([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x299904(){let _0x350292,_0x1eb64a=null,_0x564b59=null;try{if(_0x389fd1==_0xee49db([0x47,0x50,0x4c]))return _0xee49db([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x350292=_0x57850d(),!_0x350292)return _0xee49db([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x350292[_0xee49db([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x564b59=_0x36ee61(_0x350292[_0xee49db([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x350292[_0xee49db([0x6a,0x74,0x69])])),await _0x1d93e8()?_0x29ce2b()?_0x3ce46a()?_0xee49db([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x4dbf41()?(_0x350292[_0xee49db([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0xee49db([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x1eb64a=_0x2092c7(_0xee49db([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x350292[_0xee49db([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0xee49db([0x74,0x72,0x69,0x61,0x6c])&&(_0x1eb64a=_0x2092c7(_0xee49db([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x235f14()):_0xee49db([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0xee49db([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0xee49db([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0xd748cc){return _0xee49db([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x3ce46a(){const _0x4bdb5a=[_0xee49db([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0xee49db([0x74,0x72,0x69,0x61,0x6c])][_0xee49db([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x350292[_0xee49db([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0xdd2a23/0x3e8:0xe10*_0x13c68b;return _0x350292[_0xee49db([0x65,0x78,0x70])]<_0x4bdb5a;}function _0x29ce2b(){const _0x465901=_0x350292[_0xee49db([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x465901&&(!!_0x465901[_0xee49db([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xee49db([0x2a]))||!!_0x465901[_0xee49db([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xee49db([0x55,0x50,0x4c,0x43])));}function _0x4dbf41(){const _0x4fcf01=_0x3342,_0x3e7a2d=_0x350292[_0xee49db([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x3e7a2d||0x0==_0x3e7a2d[_0xee49db([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x291c65}=new URL(window[_0xee49db([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x4fcf01(0xfe)]);if(_0x3e7a2d[_0xee49db([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x291c65))return!0x0;const _0x443648=_0x291c65[_0xee49db([0x73,0x70,0x6c,0x69,0x74])](_0xee49db([0x2e]));return _0x3e7a2d[_0xee49db([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x34dcfb=>_0x34dcfb[_0xee49db([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xee49db([0x2a])))[_0xee49db([0x6d,0x61,0x70])](_0x4c3a48=>_0x4c3a48[_0xee49db([0x73,0x70,0x6c,0x69,0x74])](_0xee49db([0x2e])))[_0xee49db([0x73,0x6f,0x6d,0x65])](_0x227ecd=>_0x443648[_0xee49db([0x65,0x76,0x65,0x72,0x79])]((_0x1d5dae,_0x3b5f4b)=>_0x227ecd[_0x3b5f4b]===_0x1d5dae||_0x227ecd[_0x3b5f4b]===_0xee49db([0x2a])));}function _0x235f14(){return _0x1eb64a&&_0x564b59?new window[(_0xee49db([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x10141e,_0x1eb3f5)=>{_0x1eb64a[_0xee49db([0x74,0x68,0x65,0x6e])](_0x10141e,_0x1eb3f5),_0x564b59[_0xee49db([0x74,0x68,0x65,0x6e])](_0x4ec779=>{_0x4ec779!=_0xee49db([0x56,0x61,0x6c,0x69,0x64])&&_0x10141e(_0x4ec779);},_0x1eb3f5);}):_0x1eb64a||_0x564b59||_0xee49db([0x56,0x61,0x6c,0x69,0x64]);}}function _0x36ee61(_0xb369b6,_0x195135){return new window[(_0xee49db([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xf4a1cb=>{if(_0x333c5f())return _0xf4a1cb(_0xee49db([0x56,0x61,0x6c,0x69,0x64]));_0x322b34(),_0x42882d[_0xee49db([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0xee49db([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x573b15=!0x1;const _0x3d01da=_0x24ec02();function _0x4e1cc7(_0xed450d){return!!_0xed450d&&(typeof _0xed450d===_0xee49db([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0xed450d===_0xee49db([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0xed450d[_0xee49db([0x74,0x68,0x65,0x6e])]===_0xee49db([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0xed450d[_0xee49db([0x63,0x61,0x74,0x63,0x68])]===_0xee49db([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x234fa0(_0x2fee9e){_0x260552(_0x2fee9e)[_0xee49db([0x74,0x68,0x65,0x6e])](_0x51cb7e=>{if(!_0x51cb7e||_0x51cb7e[_0xee49db([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0xee49db([0x6f,0x6b]))return _0xee49db([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x57cf09(_0x4da4e0(_0x3d01da+_0x195135))!=_0x51cb7e[_0xee49db([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0xee49db([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0xee49db([0x56,0x61,0x6c,0x69,0x64]);})[_0xee49db([0x74,0x68,0x65,0x6e])](_0x4e9a5b=>(_0x52ed05(),_0x4e9a5b),()=>{const _0x88eac9=_0x307d58();return null==_0x88eac9?(_0x52ed05(),_0xee49db([0x56,0x61,0x6c,0x69,0x64])):_0xee49db(_0xdd2a23-_0x88eac9>(0x5a428a51^_0x1a323f)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0xee49db([0x74,0x68,0x65,0x6e])](_0xf4a1cb)[_0xee49db([0x63,0x61,0x74,0x63,0x68])](()=>{_0xf4a1cb(_0xee49db([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x1b9dec=0x7e78e0d1^_0x1a323f;function _0x52ed05(){const _0x1544f8=_0xee49db([0x6c,0x6c,0x63,0x74,0x2d])+_0x57cf09(_0x4da4e0(_0xb369b6)),_0x45e053=_0x2463d1(_0x57cf09(window[_0xee49db([0x4d,0x61,0x74,0x68])][_0xee49db([0x63,0x65,0x69,0x6c])](_0xdd2a23/_0x1b9dec)));window[_0xee49db([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0xee49db([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1544f8,_0x45e053);}function _0x307d58(){const _0x564893=_0xee49db([0x6c,0x6c,0x63,0x74,0x2d])+_0x57cf09(_0x4da4e0(_0xb369b6)),_0x97424a=window[_0xee49db([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0xee49db([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x564893);return _0x97424a?window[_0xee49db([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2463d1(_0x97424a),0x10)*_0x1b9dec:null;}function _0x260552(_0x3fcf31){return new window[(_0xee49db([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x469e28,_0x12f266)=>{_0x3fcf31[_0xee49db([0x74,0x68,0x65,0x6e])](_0x469e28,_0x12f266),window[_0xee49db([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x12f266,0x7e4fda91^_0x1a323f);});}}_0x42882d[_0xee49db([0x6f,0x6e])](_0xee49db([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x40434a,_0x59abd7)=>{if(_0x59abd7[0x0]!=_0xb369b6)return _0xf4a1cb(_0xee49db([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x59abd7[0x1]={..._0x59abd7[0x1],[_0xee49db([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x3d01da};},{[_0xee49db([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0xee49db([0x68,0x69,0x67,0x68])}),_0x42882d[_0xee49db([0x6f,0x6e])](_0xee49db([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x4f64b1=>{_0x4e1cc7(_0x4f64b1[_0xee49db([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x573b15=!0x0,_0x234fa0(_0x4f64b1[_0xee49db([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0xee49db([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0xee49db([0x6c,0x6f,0x77])}),_0x2e9ccc[_0xee49db([0x74,0x68,0x65,0x6e])](()=>{_0x573b15||_0xf4a1cb(_0xee49db([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x333c5f(){return _0x42882d[_0xee49db([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0xee49db([0x76,0x69,0x65,0x77])][_0xee49db([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0xee49db([0x61,0x75,0x74,0x6f]);}function _0x322b34(){_0x42882d[_0xee49db([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0xee49db([0x76,0x69,0x65,0x77])][_0xee49db([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0xee49db([0x61,0x75,0x74,0x6f]);}}function _0x2092c7(_0x54f621){const _0x516291=[new window[(_0xee49db([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1abced=>setTimeout(_0x1abced,0x7e47309d^_0x1a323f)),_0x2e9ccc[_0xee49db([0x74,0x68,0x65,0x6e])](()=>new window[(_0xee49db([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4715e0=>{let _0x482ba9=0x0;_0x42882d[_0xee49db([0x6d,0x6f,0x64,0x65,0x6c])][_0xee49db([0x6f,0x6e])](_0xee49db([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x2e8be0,_0x5e7fba)=>{_0x5e7fba[0x0][_0xee49db([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x482ba9++,_0x482ba9==(0x7e4e0fa9^_0x1a323f)&&(_0x4715e0(),_0x2e8be0[_0xee49db([0x6f,0x66,0x66])]());});}))];return window[_0xee49db([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0xee49db([0x72,0x61,0x63,0x65])](_0x516291)[_0xee49db([0x74,0x68,0x65,0x6e])](()=>_0x54f621);}async function _0x227211(){await _0x2e9ccc,_0x42882d[_0xee49db([0x6d,0x6f,0x64,0x65,0x6c])][_0xee49db([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0xd1a94b,_0x42882d[_0xee49db([0x6d,0x6f,0x64,0x65,0x6c])][_0xee49db([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0xd1a94b,_0x42882d[_0xee49db([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0xee49db([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x20cbdd(_0x3dddad){const _0xf9d78a=_0x2053ba();_0x42882d[_0xf9d78a]=_0xee49db([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x3dddad,_0x3dddad!=_0xee49db([0x56,0x61,0x6c,0x69,0x64])&&_0x227211();}function _0x2053ba(){const _0x376fc3=window[_0xee49db([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0xee49db([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0xee49db([0x6e,0x6f,0x77])]())[_0xee49db([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0xee49db([0x2e]),'');let _0xb02098=_0xee49db([0x72]);for(let _0x33d00a=0x0;_0x33d00a<_0x376fc3[_0xee49db([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x33d00a+=0x2){let _0x153bcf=window[_0xee49db([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x376fc3[_0xee49db([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x33d00a,_0x33d00a+0x2));_0x153bcf>=_0x36cd5e[_0xee49db([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x153bcf-=_0x36cd5e[_0xee49db([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0xb02098+=_0x36cd5e[_0x153bcf];}return _0xb02098;}function _0x57850d(){const _0x291d22=_0x389fd1[_0xee49db([0x73,0x70,0x6c,0x69,0x74])](_0xee49db([0x2e]));if(0x3!=_0x291d22[_0xee49db([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x85d992(_0x291d22[0x1]);function _0x85d992(_0x3e33b4){const _0x20990f=_0x4b4567(_0x3e33b4);return _0x20990f&&_0x140d17()?_0x20990f:null;function _0x140d17(){const _0x2f1b6f=_0x20990f[_0xee49db([0x6a,0x74,0x69])],_0x1ab1f=window[_0xee49db([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2f1b6f[_0xee49db([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2f1b6f[_0xee49db([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x3bb575={..._0x20990f,[_0xee49db([0x6a,0x74,0x69])]:_0x2f1b6f[_0xee49db([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x2f1b6f[_0xee49db([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x3bb575[_0xee49db([0x76,0x63])],_0x4da4e0(_0x3bb575)==_0x1ab1f;}}}async function _0x1d93e8(){let _0x36e3f2=!0x0;try{const _0x5ed39d=_0x389fd1[_0xee49db([0x73,0x70,0x6c,0x69,0x74])](_0xee49db([0x2e])),[_0x5e0c93,_0x55e2e7,_0x546212]=_0x5ed39d;return _0x1bef25(_0x5e0c93),await _0x4524c0(_0x5e0c93,_0x55e2e7,_0x546212),_0x36e3f2;}catch(_0x366143){return!0x1;}function _0x1bef25(_0xc50bb2){const _0x487a30=_0x4b4567(_0xc50bb2);_0x487a30&&_0x487a30[_0xee49db([0x61,0x6c,0x67])]==_0xee49db([0x45,0x53,0x32,0x35,0x36])||(_0x36e3f2=!0x1);}async function _0x4524c0(_0x4a5579,_0x2a5874,_0x10e09a){const _0x40fee1=window[_0xee49db([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0xee49db([0x66,0x72,0x6f,0x6d])](_0x54e074(_0x10e09a),_0x59c2a6=>_0x59c2a6[_0xee49db([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x245d0b=new window[(_0xee49db([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0xee49db([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x4a5579+_0xee49db([0x2e])+_0x2a5874),_0x59665c=window[_0xee49db([0x63,0x72,0x79,0x70,0x74,0x6f])][_0xee49db([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x59665c)return;const _0x5223cf=await _0x59665c[_0xee49db([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0xee49db([0x6a,0x77,0x6b]),_0x380616,{[_0xee49db([0x6e,0x61,0x6d,0x65])]:_0xee49db([0x45,0x43,0x44,0x53,0x41]),[_0xee49db([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0xee49db([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0xee49db([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x59665c[_0xee49db([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0xee49db([0x6e,0x61,0x6d,0x65])]:_0xee49db([0x45,0x43,0x44,0x53,0x41]),[_0xee49db([0x68,0x61,0x73,0x68])]:{[_0xee49db([0x6e,0x61,0x6d,0x65])]:_0xee49db([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x5223cf,_0x40fee1,_0x245d0b)||(_0x36e3f2=!0x1);}}function _0x4b4567(_0x16642e){return _0x16642e[_0xee49db([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0xee49db([0x65,0x79]))?JSON[_0xee49db([0x70,0x61,0x72,0x73,0x65])](_0x54e074(_0x16642e)):null;}function _0x54e074(_0x2b9175){return window[_0xee49db([0x61,0x74,0x6f,0x62])](_0x2b9175[_0xee49db([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0xee49db([0x2b]))[_0xee49db([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0xee49db([0x2f])));}function _0x4da4e0(_0x55ca35){let _0x54952b=0x1505;function _0x1a949b(_0x5f42c7){for(let _0x5a3b7b=0x0;_0x5a3b7b<_0x5f42c7[_0xee49db([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x5a3b7b++){const _0x4e1ee2=_0x5f42c7[_0xee49db([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x5a3b7b);_0x54952b=(_0x54952b<<0x5)+_0x54952b+_0x4e1ee2,_0x54952b&=_0x54952b;}}function _0x37389e(_0x14803a){Array[_0xee49db([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x14803a)?_0x14803a[_0xee49db([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x37389e):_0x14803a&&typeof _0x14803a==_0xee49db([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0xee49db([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x14803a)[_0xee49db([0x73,0x6f,0x72,0x74])]()[_0xee49db([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x3d66b0,_0x20372b])=>{_0x1a949b(_0x3d66b0),_0x37389e(_0x20372b);}):_0x1a949b(window[_0xee49db([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x14803a));}return _0x37389e(_0x55ca35),_0x54952b>>>0x0;}function _0x57cf09(_0x18cfe9){return _0x18cfe9[_0xee49db([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0xee49db([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0xee49db([0x30]));}function _0x2463d1(_0x510bc6){return _0x510bc6[_0xee49db([0x73,0x70,0x6c,0x69,0x74])]('')[_0xee49db([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0xee49db([0x6a,0x6f,0x69,0x6e])]('');}function _0xd1a94b(){}function _0xee49db(_0xe5743){const _0x4f3c06=_0x3342;return _0xe5743[_0x4f3c06(0xec)](_0xdbf15a=>String[_0x4f3c06(0xf3)](_0xdbf15a))[_0x4f3c06(0xe6)]('');}_0x20cbdd(await _0x299904());}(this);}[_0x4306e9(0xfa)](){const _0x2e0b80=_0x4306e9,_0x559a89=this[_0x2e0b80(0xe1)][_0x2e0b80(0x108)][_0x2e0b80(0x12b)];_0x559a89[_0x2e0b80(0xf5)](_0x2e0b80(0xf1))&&_0x559a89[_0x2e0b80(0x119)](_0x2e0b80(0xf1),{'allowAttributes':[_0x2e0b80(0x109)]}),_0x559a89[_0x2e0b80(0xf5)](_0x2e0b80(0x10c))&&_0x559a89[_0x2e0b80(0x119)](_0x2e0b80(0x10c),{'allowAttributes':[_0x2e0b80(0x109)]});}[_0x4306e9(0xf4)](){const _0x4df295=_0x4306e9,_0x30aac8=this[_0x4df295(0xe1)];_0x30aac8[_0x4df295(0x111)][_0x4df295(0x106)](_0x4df295(0x101))[_0x4df295(0x110)]({'model':_0x4df295(0x109),'view':_0x4df295(0x123)}),_0x30aac8[_0x4df295(0x111)][_0x4df295(0x106)](_0x4df295(0xeb))[_0x4df295(0x107)]({'model':{'key':_0x4df295(0x109),'value':_0x3fe8d2=>_0x3fe8d2[_0x4df295(0x129)](_0x4df295(0x123))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x404b81=_0x30aac8[_0x4df295(0x11d)][_0x4df295(0xe2)](_0x4df295(0x102));_0x404b81&&this[_0x4df295(0x11f)](_0x404b81,_0x4df295(0xfb),(_0x39f5dd,[_0xe91725,_0x243cc2])=>{const _0x43a939=_0x4df295;_0xe91725[_0x43a939(0x11b)](_0x43a939(0x109),_0x243cc2);});}[_0x4306e9(0x112)](){const _0x2812c1=_0x4306e9,_0x221c4f=this[_0x2812c1(0xe1)][_0x2812c1(0x127)][_0x2812c1(0xe2)](_0x2812c1(0x116))||{},_0x5e2cf5=this[_0x2812c1(0xe1)][_0x2812c1(0x127)][_0x2812c1(0xe2)](_0x2812c1(0x128))||'';this[_0x2812c1(0x11a)]=_0x4fd228(_0x4a1166[_0x2812c1(0x103)],_0x2812c1(0x12a),{..._0x221c4f,'pubkey':_0x5e2cf5,'ctx-name':_0x2812c1(0xf0),'sourceList':'','imgOnly':_0x2812c1(0xde),'removeCopyright':_0x2812c1(0xde),'localeName':this[_0x2812c1(0xe1)][_0x2812c1(0xf7)][_0x2812c1(0x10f)],'externalSourcesEmbedCss':_0x2812c1(0x124)}),this[_0x2812c1(0x11a)][_0x2812c1(0xda)]=_0x10e0e8=>{const _0x35706d=_0x2812c1;if(_0x35706d(0xf6)==_0x10e0e8)return _0x35706d(0x11c);},_0x4a1166[_0x2812c1(0x103)][_0x2812c1(0x113)][_0x2812c1(0xdd)](this[_0x2812c1(0x11a)]);}[_0x4306e9(0x104)](){const _0x39441d=_0x4306e9;this[_0x39441d(0x105)]=_0x4fd228(_0x4a1166[_0x39441d(0x103)],_0x39441d(0x12c),{'ctx-name':_0x39441d(0xf0)}),_0x4a1166[_0x39441d(0x103)][_0x39441d(0x113)][_0x39441d(0xdd)](this[_0x39441d(0x105)]);}[_0x4306e9(0xe5)](){const _0xea3e91=_0x4306e9,_0x4c0674=this[_0xea3e91(0xe1)][_0xea3e91(0x11d)][_0xea3e91(0xe2)](_0xea3e91(0x10b));_0x4c0674&&this[_0xea3e91(0x11f)](_0x4c0674,_0xea3e91(0x11e),()=>{const _0x194bfd=_0xea3e91,_0x181792=this[_0x194bfd(0xe1)][_0x194bfd(0x108)][_0x194bfd(0x103)][_0x194bfd(0xff)][_0x194bfd(0xe9)]();_0x181792&&_0x181792[_0x194bfd(0x129)](_0x194bfd(0x109))&&this[_0x194bfd(0xe1)][_0x194bfd(0xdb)][_0x194bfd(0x115)][_0x194bfd(0xfd)](_0x194bfd(0x10d),()=>{const _0x2a6674=_0x194bfd;_0x43222c(this[_0x2a6674(0xe1)],_0x181792);});});const _0x131ec4=this[_0xea3e91(0xe1)][_0xea3e91(0x11d)][_0xea3e91(0xe2)](_0xea3e91(0x10a));_0x131ec4&&this[_0xea3e91(0x11f)](_0x131ec4,_0xea3e91(0x11e),()=>{const _0x2681d4=_0xea3e91,_0x53bd34=this[_0x2681d4(0xe1)][_0x2681d4(0x108)][_0x2681d4(0x103)][_0x2681d4(0xff)][_0x2681d4(0xe9)]();_0x53bd34&&_0x53bd34[_0x2681d4(0x129)](_0x2681d4(0x109))&&this[_0x2681d4(0xe1)][_0x2681d4(0xdb)][_0x2681d4(0x115)][_0x2681d4(0xfd)](_0x2681d4(0x10d),()=>{const _0x5e329a=_0x2681d4;_0x43222c(this[_0x5e329a(0xe1)],_0x53bd34);});});}}