@ckeditor/ckeditor5-uploadcare 0.0.0-nightly-20250314.0 → 0.0.0-nightly-20250315.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 _0x59d162,Command as _0x55f1cb}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x216cdc,IconGooglePhotos as _0x4e63b7,IconGoogleDrive as _0x5e7103,IconFacebook as _0x425bba,IconDropbox as _0x182b5d,IconUploadcareLink as _0x1c6f72,IconUploadcareImageUpload as _0x68a2a1,IconError as et,IconUploadcareImageEdit as _0x36968c}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x10cfa6,MenuBarMenuListItemButtonView as _0x48f716,View as _0x3fbb26,FocusCycler as _0x14e008,Dialog as _0x226c12,DialogViewPosition as _0x51aa36,SpinnerView as _0x5348a4,IconView as at,Notification as _0x38c984}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x3fa8ce,DomEmitterMixin as _0x1085a4,global as _0x4be2a6,getAncestors as _0x370121,ObservableMixin as _0x3a19db,createElement as _0x424864,uid as _0xc4985e}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x39f766}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x19747f,info as _0x36d0c1}from'@uploadcare/upload-client';import*as _0x237972 from'@uploadcare/file-uploader';var o=function(_0x2efa27){return _0x2efa27['Local']='local',_0x2efa27['URL']='url',_0x2efa27['Dropbox']='dropbox',_0x2efa27['GDrive']='gdrive',_0x2efa27['Facebook']='facebook',_0x2efa27['GPhotos']='gphotos',_0x2efa27['OneDrive']='onedrive',_0x2efa27;}({});function _(_0xda515e,_0x5b6ef2,_0x5e1a5a){const t=_0xda515e['t'],_0xcf9a79=_0xda515e['t'];switch(_0x5b6ef2){case o['Local']:return{'text':_0xcf9a79('Insert'===_0x5e1a5a?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0xcf9a79('From\x20computer')};case o['URL']:return{'text':'Insert'===_0x5e1a5a?_0xcf9a79('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0xcf9a79('Via\x20URL')};case o['Dropbox']:return{'text':t('Insert'===_0x5e1a5a?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case o['Facebook']:return{'text':t('Insert'===_0x5e1a5a?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case o['GDrive']:return{'text':t('Insert'===_0x5e1a5a?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case o['GPhotos']:return{'text':t('Insert'===_0x5e1a5a?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case o['OneDrive']:return{'text':t('Insert'===_0x5e1a5a?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x5b6ef2;}}class e extends _0x59d162{['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 _0x4b5551=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x1150b7;for(const _0x314968 in _0x4b5551){const _0x1b2233=_0x314968,_0x14d6ed=_0x4b5551[_0x1b2233];if('uploadcareLicenseKeyValid'==_0x14d6ed||'uploadcareLicenseKeyInvalid'==_0x14d6ed||'uploadcareLicenseKeyExpired'==_0x14d6ed||'uploadcareLicenseKeyDomainLimit'==_0x14d6ed||'uploadcareLicenseKeyNotAllowed'==_0x14d6ed||'uploadcareLicenseKeyEvaluationLimit'==_0x14d6ed||'uploadcareLicenseKeyTrialLimit'==_0x14d6ed||'uploadcareLicenseKeyUsageLimit'==_0x14d6ed){delete _0x4b5551[_0x1b2233],_0x1150b7=_0x14d6ed,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x1150b7&&_0x4b5551['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x1150b7&&_0x4b5551['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x1150b7&&_0x4b5551['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x1150b7&&_0x4b5551['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x1150b7&&_0x4b5551['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyTrialLimit'==_0x1150b7&&_0x4b5551['_showLicenseError']('trialLimit'),'uploadcareLicenseKeyUsageLimit'==_0x1150b7&&_0x4b5551['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x50c4e9}=this,_0x5cdb54=_0x50c4e9['commands']['get']('uploadcare');if(!_0x5cdb54)return;const _0x1c6ea3=this['_normalizeConfigSourceList'](_0x50c4e9['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x51d29b,_0x94038c)=>{const _0x58345e=this['_getIntegrationKey'](_0x94038c['type']);return _0x51d29b[_0x58345e]||(_0x51d29b[_0x58345e]=[]),_0x51d29b[_0x58345e]['push'](_0x94038c),_0x51d29b;},{});_0x50c4e9['plugins']['has']('ImageInsertUI')&&_0x50c4e9['commands']['get']('uploadcare')&&Object['entries'](_0x1c6ea3)['forEach'](([_0x29c6cd,_0x12ade1])=>{_0x50c4e9['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x29c6cd,'observable':()=>_0x5cdb54,'buttonViewCreator':()=>this['_createToolbarButton'](_0x12ade1),'formViewCreator':()=>this['_createDropdownButtons'](_0x12ade1),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x12ade1),'override':'assetManager'!==_0x29c6cd});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x7cb381){const {locale:_0x1d0331}=this['editor'];return _0x7cb381['map'](_0xfee56c=>{const _0x23c527=_(_0x1d0331,_0xfee56c,'Insert');switch(_0xfee56c){case o['Local']:return{'icon':_0x68a2a1,'type':o['Local'],..._0x23c527};case o['URL']:return{'icon':_0x1c6f72,'type':o['URL'],..._0x23c527};case o['Dropbox']:return{'icon':_0x182b5d,'type':o['Dropbox'],..._0x23c527};case o['Facebook']:return{'icon':_0x425bba,'type':o['Facebook'],..._0x23c527};case o['GDrive']:return{'icon':_0x5e7103,'type':o['GDrive'],..._0x23c527};case o['GPhotos']:return{'icon':_0x4e63b7,'type':o['GPhotos'],..._0x23c527};case o['OneDrive']:return{'icon':_0x216cdc,'type':o['OneDrive'],..._0x23c527};}});}['_getIntegrationKey'](_0x45a4f5){switch(_0x45a4f5){case o['Local']:return'upload';case o['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x1a041e,_0x2a8a66){const _0x40bcb0=this['editor'],_0x328c76=new _0x1a041e(_0x40bcb0['locale']),_0x28c0c2=_0x40bcb0['commands']['get']('uploadcare');return _0x328c76['bind']('isEnabled')['to'](_0x28c0c2),_0x328c76['on']('execute',()=>{_0x28c0c2['execute'](_0x2a8a66);}),_0x328c76;}['_createToolbarButton'](_0x3643aa){const {locale:_0x511c83}=this['editor'],_0x2a35d1=this['editor']['plugins']['get']('ImageInsertUI'),_0x58010a=_0x3643aa[0x0],_0x45ed3d=this['_createButton'](_0x10cfa6,_0x58010a['type']);return _0x45ed3d['icon']=_0x58010a['icon'],_0x45ed3d['bind']('label')['to'](_0x2a35d1,'isImageSelected',_0x400e85=>_(_0x511c83,_0x58010a['type'],_0x400e85?'Replace':'Insert')['text']),_0x45ed3d['tooltip']=!0x0,_0x45ed3d;}['_createDropdownButtons'](_0x43b2cc){const {locale:_0x1407bf}=this['editor'],_0x418972=this['editor']['plugins']['get']('ImageInsertUI');return _0x43b2cc['map'](_0x4609ef=>{const _0x38f108=this['_createButton'](_0x10cfa6,_0x4609ef['type']);return _0x38f108['withText']=!0x0,_0x38f108['icon']=_0x4609ef['icon'],_0x38f108['bind']('label')['to'](_0x418972,'isImageSelected',_0x151fe1=>_(_0x1407bf,_0x4609ef['type'],_0x151fe1?'Replace':'Insert')['text']),_0x38f108;});}['_createMenuBarButtons'](_0x3f08bd){return _0x3f08bd['map'](_0x193774=>{const _0x437fd1=this['_createButton'](_0x48f716,_0x193774['type']);return _0x437fd1['icon']=_0x193774['icon'],_0x437fd1['label']=_0x193774['shortText'],_0x437fd1;});}}class q extends _0x3fbb26{['focusTracker'];['focusCycler'];constructor(_0x1d821d){super(_0x1d821d),this['focusTracker']=new _0x3fa8ce(),this['focusCycler']=new _0x14e008({'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(_0xa70ebf){super(_0xa70ebf),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(_0x2d96e1,_0x37651d){const _0x55a65e=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x54bca9=>_0x54bca9<=_0x37651d)['map'](_0x4f81e9=>_0x2d96e1['replace'](/\/$/,'')+'/-/resize/'+_0x4f81e9+'x/\x20'+_0x4f81e9+'w');return{'imageFallbackUrl':_0x2d96e1,'imageSources':[{'srcset':_0x55a65e['join'](',\x20'),'sizes':'(max-width:\x20'+_0x37651d+'px)\x20100vw,\x20'+_0x37651d+'px','type':'image/webp'}]};}function A(_0x33d18c,_0x70ad89,_0x5c2608){const _0x139057=_0x33d18c['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x139057?parseInt(_0x139057[0x1],0xa):_0x70ad89,'height':_0x139057?parseInt(_0x139057[0x2],0xa):_0x5c2608};}function m(_0x15eb46,_0xc7d6bb){const _0x5a1834=Object['create'](_0x1085a4),_0x574c25=_0x15eb46['plugins']['get']('ImageUtils'),_0x5e57c1=_0x15eb46['editing']['mapper']['toViewElement'](_0xc7d6bb),_0x5d9b4f=_0x574c25['findViewImgElement'](_0x5e57c1),_0x5e7597=_0x15eb46['editing']['view']['domConverter']['viewToDom'](_0x5d9b4f),_0x1b6fd6=_0xc7d6bb['getAttribute']('width'),_0x4b53ea=_0xc7d6bb['getAttribute']('height'),_0x55a935='image-processing';_0x15eb46['editing']['view']['change'](_0x2662e3=>{_0x2662e3['addClass'](_0x55a935,_0x5e57c1),_0x2662e3['setStyle']('aspect-ratio',_0x1b6fd6+'/'+_0x4b53ea,_0x5d9b4f);}),_0x5a1834['listenTo'](_0x5e7597,'load',()=>{_0x5a1834['stopListening'](_0x5e7597,'load'),_0x15eb46['editing']['view']['change'](_0x5d6801=>{_0x5d6801['removeClass'](_0x55a935,_0x5e57c1),_0x5d6801['removeStyle']('aspect-ratio',_0x5d9b4f);});});}function V(_0x31dc3b){if(Array['isArray'](_0x31dc3b)){const _0xb5561=_0x31dc3b['map'](V);return _0x4c8556=>_0xb5561['some'](_0x19bff9=>_0x19bff9(_0x4c8556));}if('origin'==_0x31dc3b){const _0x5bf775=_0x4be2a6['window']['location']['origin'];return _0xa77b88=>new URL(_0xa77b88,_0x4be2a6['document']['baseURI'])['origin']==_0x5bf775;}return'function'==typeof _0x31dc3b?_0x31dc3b:_0x31dc3b instanceof RegExp?_0x314e02=>!(!_0x314e02['match'](_0x31dc3b)&&!_0x314e02['replace'](/^https?:\/\//,'')['match'](_0x31dc3b)):()=>!0x1;}function F(_0x1b0219,_0x7b50d2){return _0x370121(_0x1b0219['target'])['includes'](_0x7b50d2);}class l extends/* #__PURE__ -- @preserve */
24
- _0x3a19db(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x4619a9,_0x360027,_0x3bd607){super(),this['_editor']=_0x4619a9,this['_editing']=_0x360027,this['_dialog']=_0x4619a9['plugins']['get'](_0x226c12),this['_api']=_0x360027['ctxElement']['getAPI'](),this['_type']=_0x3bd607,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:_0x4bc9fc,model:_0x11b10d}=this['_editor'],_0x5d5fc2=_0x11b10d['document']['selection']['getSelectedElement'](),_0xb46768=_0x5d5fc2&&(_0x5d5fc2['is']('element','imageBlock')||_0x5d5fc2['is']('element','imageInline'));this['_formView']=new S(_0x4bc9fc),this['_dialog']['show']({'id':'uploadCare','icon':_0x68a2a1,'title':_(_0x4bc9fc,this['_type'],_0xb46768?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x51aa36['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0xb24101=>!F(_0xb24101,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x10b3a2}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x5b6cad=>{const _0x426f66=_0x10b3a2['length'];for(const _0x37eb4f of _0x10b3a2){const _0x1fab1e=_0x37eb4f===_0x10b3a2[_0x426f66-0x1],{cdnUrl:_0x43e838,fileInfo:_0x362193}=_0x37eb4f;if(!_0x43e838||!_0x362193)continue;const {width:_0x5ca3ab,height:_0x3d77df}=_0x362193['imageInfo'],_0x1b4cee=A(_0x43e838,_0x5ca3ab,_0x3d77df),_0x1494e9=E(_0x43e838,_0x1b4cee['width']),_0x14997e={'id':_0x362193['uuid'],'type':'image','attributes':{'imageDimension':_0x1b4cee,..._0x1494e9}};this['_insertAsset'](_0x14997e,_0x1fab1e,_0x5b6cad);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x1bb383=>{'idle'===_0x1bb383['detail']['status']&&!_0x1bb383['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===o['Local']?this['_api']['setCurrentActivity'](o['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x2ea049,_0x4626b7,_0x2f5174){const _0x1077f4=this['_editor']['model']['document']['selection'],_0x41d0e9=_0x1077f4['getSelectedElement'](),_0x1b5e5d=!(!_0x41d0e9||!_0x41d0e9['is']('element','imageInline'));_0x2f5174['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x2ea049,_0x1b5e5d),_0x4626b7||_0x2f5174['setSelection'](_0x1077f4['getLastPosition']());}['_insertImage'](_0x63a80,_0x51cbac){const _0x1c55ab=this['_editor'],{imageDimension:_0x364e33,imageFallbackUrl:_0x32185c,imageSources:_0x756629}=_0x63a80['attributes'];_0x1c55ab['execute']('insertImage',{'imageType':_0x51cbac?'imageInline':null,'source':{'uploadcareImageId':_0x63a80['id'],'src':_0x32185c,'sources':_0x756629,..._0x364e33}});}}class n extends _0x55f1cb{['_editing'];['_controller']=null;static get['requires'](){return[_0x226c12,i];}constructor(_0x1d53a5){super(_0x1d53a5),this['_editing']=_0x1d53a5['plugins']['get'](i);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x33caa2){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new l(this['editor'],this['_editing'],_0x33caa2);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class C{static['upload']({file:_0x420d0f,publicKey:_0x46d903,signal:_0x46ccf7,onProgress:_0x58c49e}){return _0x19747f(_0x420d0f,{'publicKey':_0x46d903,'store':'auto','signal':_0x46ccf7,'onProgress':_0x58c49e});}static['getInfo'](_0x4f2bb0,_0x5d94a0){return _0x36d0c1(_0x4f2bb0,_0x5d94a0);}}class p extends _0x59d162{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x39f766,i];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x3da5ba=this['editor'];if(!!!_0x3da5ba['config']['get']('uploadcare'))return;_0x3da5ba['plugins']['get'](_0x39f766)['createUploadAdapter']=_0x3711f0=>new x(_0x3711f0,_0x3da5ba),_0x3da5ba['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0xc3f57d,{imageElement:_0x3d3e01,data:_0x5fc6f8})=>{_0x3da5ba['model']['change'](_0x85f155=>{_0x85f155['setAttribute']('uploadcareImageId',_0x5fc6f8['uploadcareImageId'],_0x3d3e01);});});}}class x{['loader'];['editor'];['controller'];constructor(_0x2fa150,_0x3f8b4a){this['loader']=_0x2fa150,this['editor']=_0x3f8b4a,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x2db846=this['editor']['config']['get']('uploadcare.pubkey'),_0x8c6779=await this['loader']['file'];return C['upload']({'file':_0x8c6779,'publicKey':_0x2db846,'signal':this['controller']['signal'],'onProgress':_0x38b2da=>{_0x38b2da&&_0x38b2da['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x38b2da['value']);}})['then'](async _0x17ed36=>{const {imageFallbackUrl:_0x3b8a93,imageSources:_0x1f5f2f}=E(_0x17ed36['cdnUrl'],_0x17ed36['imageInfo']['width']);return{'uploadcareImageId':_0x17ed36['uuid'],'default':_0x3b8a93,'sources':_0x1f5f2f};})['catch'](()=>{const _0x45f5b9=t('Cannot\x20upload\x20file:')+('\x20'+_0x8c6779['name']+'.');return Promise['reject'](_0x45f5b9);});}['abort'](){this['controller']['abort']();}}class i extends _0x59d162{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',p,_0x226c12];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}['init'](){const _0x17c4a6=this['editor'];_0x17c4a6['commands']['add']('uploadcare',new n(_0x17c4a6));}['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 _0x366f47=_0x4be2a6['document']['querySelector']('input[uploadcare-file-input]');_0x366f47&&_0x366f47['remove']();}),async function(_0x4f0e95){const _0x2a8fa8=_0x3f8f04([0x33,0x6f,0x4c,0x54,0x5a,0x72,0x70,0x71,0x37,0x32,0x76,0x34,0x6d,0x36,0x48,0x56,0x67,0x39,0x45,0x30,0x79,0x46,0x66,0x6e,0x68,0x35,0x58,0x51,0x62,0x38,0x63,0x65,0x4b,0x6c,0x75,0x6a,0x50,0x53,0x47,0x4f,0x61,0x69,0x49,0x42,0x74,0x64,0x31,0x78,0x4e,0x43,0x55,0x73,0x44,0x59,0x6b,0x7a,0x52,0x4a,0x57,0x41,0x77,0x4d]),_0x5ca92d=0x2ed59e89,_0x4aef45=0x2ed2fc91^_0x5ca92d,_0x5cf566=window[_0x3f8f04([0x44,0x61,0x74,0x65])][_0x3f8f04([0x6e,0x6f,0x77])](),_0xec8d57=_0x4f0e95[_0x3f8f04([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x24d4d8=new window[(_0x3f8f04([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x82726e=>{_0xec8d57[_0x3f8f04([0x6f,0x6e,0x63,0x65])](_0x3f8f04([0x72,0x65,0x61,0x64,0x79]),_0x82726e);}),_0x5081e9={[_0x3f8f04([0x6b,0x74,0x79])]:_0x3f8f04([0x45,0x43]),[_0x3f8f04([0x75,0x73,0x65])]:_0x3f8f04([0x73,0x69,0x67]),[_0x3f8f04([0x63,0x72,0x76])]:_0x3f8f04([0x50,0x2d,0x32,0x35,0x36]),[_0x3f8f04([0x78])]:_0x3f8f04([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]),[_0x3f8f04([0x79])]:_0x3f8f04([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]),[_0x3f8f04([0x61,0x6c,0x67])]:_0x3f8f04([0x45,0x53,0x32,0x35,0x36])},_0x34f513=_0xec8d57[_0x3f8f04([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x3f8f04([0x67,0x65,0x74])](_0x3f8f04([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x4ba10f(){let _0x42fa48,_0x34df97=null,_0xcd6876=null;try{if(_0x34f513==_0x3f8f04([0x47,0x50,0x4c]))return _0x3f8f04([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x42fa48=_0x12ba34(),!_0x42fa48)return _0x3f8f04([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x42fa48[_0x3f8f04([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0xcd6876=_0x2f3b1f(_0x42fa48[_0x3f8f04([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x42fa48[_0x3f8f04([0x6a,0x74,0x69])])),await _0x362b4d()?_0x37a460()?_0x59418a()?_0x3f8f04([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x5b4796()?(_0x42fa48[_0x3f8f04([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3f8f04([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x34df97=_0x5c4d30(_0x3f8f04([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x42fa48[_0x3f8f04([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3f8f04([0x74,0x72,0x69,0x61,0x6c])&&(_0x34df97=_0x5c4d30(_0x3f8f04([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x22a835()):_0x3f8f04([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x3f8f04([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x3f8f04([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x37ae03){return _0x3f8f04([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x59418a(){const _0x167cda=[_0x3f8f04([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x3f8f04([0x74,0x72,0x69,0x61,0x6c])][_0x3f8f04([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x42fa48[_0x3f8f04([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x5cf566/0x3e8:0xe10*_0x4aef45;return _0x42fa48[_0x3f8f04([0x65,0x78,0x70])]<_0x167cda;}function _0x37a460(){const _0x3d90ad=_0x42fa48[_0x3f8f04([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x3d90ad&&(!!_0x3d90ad[_0x3f8f04([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3f8f04([0x2a]))||!!_0x3d90ad[_0x3f8f04([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3f8f04([0x55,0x50,0x4c,0x43])));}function _0x5b4796(){const _0x2d371e=_0x42fa48[_0x3f8f04([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x2d371e||0x0==_0x2d371e[_0x3f8f04([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x204c91}=new URL(window[_0x3f8f04([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x2d371e[_0x3f8f04([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x204c91))return!0x0;const _0x40e039=_0x204c91[_0x3f8f04([0x73,0x70,0x6c,0x69,0x74])](_0x3f8f04([0x2e]));return _0x2d371e[_0x3f8f04([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x453a9e=>_0x453a9e[_0x3f8f04([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3f8f04([0x2a])))[_0x3f8f04([0x6d,0x61,0x70])](_0x3048eb=>_0x3048eb[_0x3f8f04([0x73,0x70,0x6c,0x69,0x74])](_0x3f8f04([0x2e])))[_0x3f8f04([0x73,0x6f,0x6d,0x65])](_0x5e3308=>_0x40e039[_0x3f8f04([0x65,0x76,0x65,0x72,0x79])]((_0x3633a6,_0x53a2c9)=>_0x5e3308[_0x53a2c9]===_0x3633a6||_0x5e3308[_0x53a2c9]===_0x3f8f04([0x2a])));}function _0x22a835(){return _0x34df97&&_0xcd6876?new window[(_0x3f8f04([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x18f57c,_0x341c45)=>{_0x34df97[_0x3f8f04([0x74,0x68,0x65,0x6e])](_0x18f57c,_0x341c45),_0xcd6876[_0x3f8f04([0x74,0x68,0x65,0x6e])](_0x26c8e8=>{_0x26c8e8!=_0x3f8f04([0x56,0x61,0x6c,0x69,0x64])&&_0x18f57c(_0x26c8e8);},_0x341c45);}):_0x34df97||_0xcd6876||_0x3f8f04([0x56,0x61,0x6c,0x69,0x64]);}}function _0x2f3b1f(_0x4e0072,_0x5e4ae0){return new window[(_0x3f8f04([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x448f10=>{if(_0x2e6a2c())return _0x448f10(_0x3f8f04([0x56,0x61,0x6c,0x69,0x64]));_0x39dc2e(),_0xec8d57[_0x3f8f04([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x3f8f04([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x507aa8=!0x1;const _0x15d55e=_0xc4985e();function _0x819d80(_0x548efb){return!!_0x548efb&&(typeof _0x548efb===_0x3f8f04([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x548efb===_0x3f8f04([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x548efb[_0x3f8f04([0x74,0x68,0x65,0x6e])]===_0x3f8f04([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x548efb[_0x3f8f04([0x63,0x61,0x74,0x63,0x68])]===_0x3f8f04([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x258907(_0x49df24){_0x160564(_0x49df24)[_0x3f8f04([0x74,0x68,0x65,0x6e])](_0x115188=>{if(!_0x115188||_0x115188[_0x3f8f04([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x3f8f04([0x6f,0x6b]))return _0x3f8f04([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x500437(_0x546eaa(_0x15d55e+_0x5e4ae0))!=_0x115188[_0x3f8f04([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x3f8f04([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x3f8f04([0x56,0x61,0x6c,0x69,0x64]);})[_0x3f8f04([0x74,0x68,0x65,0x6e])](_0x4227c3=>(_0x3805a1(),_0x4227c3),()=>{const _0x724ed4=_0x4c52f3();return null==_0x724ed4?(_0x3805a1(),_0x3f8f04([0x56,0x61,0x6c,0x69,0x64])):_0x3f8f04(_0x5cf566-_0x724ed4>(0xad91a89^_0x5ca92d)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x3f8f04([0x74,0x68,0x65,0x6e])](_0x448f10)[_0x3f8f04([0x63,0x61,0x74,0x63,0x68])](()=>{_0x448f10(_0x3f8f04([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x1ab60f=0x2ee37009^_0x5ca92d;function _0x3805a1(){const _0x83566=_0x3f8f04([0x6c,0x6c,0x63,0x74,0x2d])+_0x500437(_0x546eaa(_0x4e0072)),_0x3b6f46=_0x184995(_0x500437(window[_0x3f8f04([0x4d,0x61,0x74,0x68])][_0x3f8f04([0x63,0x65,0x69,0x6c])](_0x5cf566/_0x1ab60f)));window[_0x3f8f04([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3f8f04([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x83566,_0x3b6f46);}function _0x4c52f3(){const _0x7ba9fe=_0x3f8f04([0x6c,0x6c,0x63,0x74,0x2d])+_0x500437(_0x546eaa(_0x4e0072)),_0x50c966=window[_0x3f8f04([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3f8f04([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x7ba9fe);return _0x50c966?window[_0x3f8f04([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x184995(_0x50c966),0x10)*_0x1ab60f:null;}function _0x160564(_0x82c61e){return new window[(_0x3f8f04([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x41bc82,_0x29f136)=>{_0x82c61e[_0x3f8f04([0x74,0x68,0x65,0x6e])](_0x41bc82,_0x29f136),window[_0x3f8f04([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x29f136,0x2ed44a49^_0x5ca92d);});}}_0xec8d57[_0x3f8f04([0x6f,0x6e])](_0x3f8f04([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0xd6796e,_0x3add41)=>{if(_0x3add41[0x0]!=_0x4e0072)return _0x448f10(_0x3f8f04([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x3add41[0x1]={..._0x3add41[0x1],[_0x3f8f04([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x15d55e};},{[_0x3f8f04([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3f8f04([0x68,0x69,0x67,0x68])}),_0xec8d57[_0x3f8f04([0x6f,0x6e])](_0x3f8f04([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x3f187a=>{_0x819d80(_0x3f187a[_0x3f8f04([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x507aa8=!0x0,_0x258907(_0x3f187a[_0x3f8f04([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x3f8f04([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3f8f04([0x6c,0x6f,0x77])}),_0x24d4d8[_0x3f8f04([0x74,0x68,0x65,0x6e])](()=>{_0x507aa8||_0x448f10(_0x3f8f04([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x2e6a2c(){return _0xec8d57[_0x3f8f04([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3f8f04([0x76,0x69,0x65,0x77])][_0x3f8f04([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x3f8f04([0x61,0x75,0x74,0x6f]);}function _0x39dc2e(){_0xec8d57[_0x3f8f04([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3f8f04([0x76,0x69,0x65,0x77])][_0x3f8f04([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x3f8f04([0x61,0x75,0x74,0x6f]);}}function _0x5c4d30(_0x49ee2e){const _0x2f844c=[new window[(_0x3f8f04([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x354084=>setTimeout(_0x354084,0x2edca045^_0x5ca92d)),_0x24d4d8[_0x3f8f04([0x74,0x68,0x65,0x6e])](()=>new window[(_0x3f8f04([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2dd544=>{let _0x18c969=0x0;_0xec8d57[_0x3f8f04([0x6d,0x6f,0x64,0x65,0x6c])][_0x3f8f04([0x6f,0x6e])](_0x3f8f04([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x1e30aa,_0x321ef7)=>{_0x321ef7[0x0][_0x3f8f04([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x18c969++,_0x18c969==(0x2ed59f71^_0x5ca92d)&&(_0x2dd544(),_0x1e30aa[_0x3f8f04([0x6f,0x66,0x66])]());});}))];return window[_0x3f8f04([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x3f8f04([0x72,0x61,0x63,0x65])](_0x2f844c)[_0x3f8f04([0x74,0x68,0x65,0x6e])](()=>_0x49ee2e);}async function _0x2bb6ee(){await _0x24d4d8,_0xec8d57[_0x3f8f04([0x6d,0x6f,0x64,0x65,0x6c])][_0x3f8f04([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x2db1ac,_0xec8d57[_0x3f8f04([0x6d,0x6f,0x64,0x65,0x6c])][_0x3f8f04([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x2db1ac,_0xec8d57[_0x3f8f04([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x3f8f04([0x6d,0x6f,0x64,0x65,0x6c]));}function _0xde6701(_0x4d0df9){const _0x3d4b5f=_0x12fdc1();_0xec8d57[_0x3d4b5f]=_0x3f8f04([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x4d0df9,_0x4d0df9!=_0x3f8f04([0x56,0x61,0x6c,0x69,0x64])&&_0x2bb6ee();}function _0x12fdc1(){const _0x23579a=window[_0x3f8f04([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x3f8f04([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x3f8f04([0x6e,0x6f,0x77])]())[_0x3f8f04([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x3f8f04([0x2e]),'');let _0x28edbb=_0x3f8f04([0x6f]);for(let _0x4af8cc=0x0;_0x4af8cc<_0x23579a[_0x3f8f04([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4af8cc+=0x2){let _0x5c2b58=window[_0x3f8f04([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x23579a[_0x3f8f04([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4af8cc,_0x4af8cc+0x2));_0x5c2b58>=_0x2a8fa8[_0x3f8f04([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x5c2b58-=_0x2a8fa8[_0x3f8f04([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x28edbb+=_0x2a8fa8[_0x5c2b58];}return _0x28edbb;}function _0x12ba34(){const _0x450980=_0x34f513[_0x3f8f04([0x73,0x70,0x6c,0x69,0x74])](_0x3f8f04([0x2e]));if(0x3!=_0x450980[_0x3f8f04([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x18341f(_0x450980[0x1]);function _0x18341f(_0x292990){const _0x279a57=_0x38272b(_0x292990);return _0x279a57&&_0x3d9a79()?_0x279a57:null;function _0x3d9a79(){const _0x34947d=_0x279a57[_0x3f8f04([0x6a,0x74,0x69])],_0x89232a=window[_0x3f8f04([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x34947d[_0x3f8f04([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x34947d[_0x3f8f04([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x2dd319={..._0x279a57,[_0x3f8f04([0x6a,0x74,0x69])]:_0x34947d[_0x3f8f04([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x34947d[_0x3f8f04([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x2dd319[_0x3f8f04([0x76,0x63])],_0x546eaa(_0x2dd319)==_0x89232a;}}}async function _0x362b4d(){let _0x4ff6d5=!0x0;try{const _0x441e42=_0x34f513[_0x3f8f04([0x73,0x70,0x6c,0x69,0x74])](_0x3f8f04([0x2e])),[_0x17a3c8,_0x334f17,_0xfa885c]=_0x441e42;return _0x14bc87(_0x17a3c8),await _0x12a2b5(_0x17a3c8,_0x334f17,_0xfa885c),_0x4ff6d5;}catch(_0x996dcb){return!0x1;}function _0x14bc87(_0x1a3cc9){const _0x468664=_0x38272b(_0x1a3cc9);_0x468664&&_0x468664[_0x3f8f04([0x61,0x6c,0x67])]==_0x3f8f04([0x45,0x53,0x32,0x35,0x36])||(_0x4ff6d5=!0x1);}async function _0x12a2b5(_0x5a81e7,_0xe3f7f7,_0x40d3c1){const _0x283d3d=window[_0x3f8f04([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x3f8f04([0x66,0x72,0x6f,0x6d])](_0x2974d7(_0x40d3c1),_0x155e48=>_0x155e48[_0x3f8f04([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x70dcad=new window[(_0x3f8f04([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x3f8f04([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x5a81e7+_0x3f8f04([0x2e])+_0xe3f7f7),_0x4e8744=window[_0x3f8f04([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x3f8f04([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x4e8744)return;const _0x47df71=await _0x4e8744[_0x3f8f04([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x3f8f04([0x6a,0x77,0x6b]),_0x5081e9,{[_0x3f8f04([0x6e,0x61,0x6d,0x65])]:_0x3f8f04([0x45,0x43,0x44,0x53,0x41]),[_0x3f8f04([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x3f8f04([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x3f8f04([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x4e8744[_0x3f8f04([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x3f8f04([0x6e,0x61,0x6d,0x65])]:_0x3f8f04([0x45,0x43,0x44,0x53,0x41]),[_0x3f8f04([0x68,0x61,0x73,0x68])]:{[_0x3f8f04([0x6e,0x61,0x6d,0x65])]:_0x3f8f04([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x47df71,_0x283d3d,_0x70dcad)||(_0x4ff6d5=!0x1);}}function _0x38272b(_0xf1a25c){return _0xf1a25c[_0x3f8f04([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x3f8f04([0x65,0x79]))?JSON[_0x3f8f04([0x70,0x61,0x72,0x73,0x65])](_0x2974d7(_0xf1a25c)):null;}function _0x2974d7(_0x5d273){return window[_0x3f8f04([0x61,0x74,0x6f,0x62])](_0x5d273[_0x3f8f04([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x3f8f04([0x2b]))[_0x3f8f04([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x3f8f04([0x2f])));}function _0x546eaa(_0x4a0d6f){let _0x238774=0x1505;function _0x47b386(_0x317783){for(let _0x3a9acc=0x0;_0x3a9acc<_0x317783[_0x3f8f04([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3a9acc++){const _0x31a8d1=_0x317783[_0x3f8f04([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x3a9acc);_0x238774=(_0x238774<<0x5)+_0x238774+_0x31a8d1,_0x238774&=_0x238774;}}function _0x5547ea(_0x1ea48d){Array[_0x3f8f04([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x1ea48d)?_0x1ea48d[_0x3f8f04([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x5547ea):_0x1ea48d&&typeof _0x1ea48d==_0x3f8f04([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x3f8f04([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x1ea48d)[_0x3f8f04([0x73,0x6f,0x72,0x74])]()[_0x3f8f04([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x128727,_0x370335])=>{_0x47b386(_0x128727),_0x5547ea(_0x370335);}):_0x47b386(window[_0x3f8f04([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x1ea48d));}return _0x5547ea(_0x4a0d6f),_0x238774>>>0x0;}function _0x500437(_0x281615){return _0x281615[_0x3f8f04([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x3f8f04([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x3f8f04([0x30]));}function _0x184995(_0x420172){return _0x420172[_0x3f8f04([0x73,0x70,0x6c,0x69,0x74])]('')[_0x3f8f04([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x3f8f04([0x6a,0x6f,0x69,0x6e])]('');}function _0x2db1ac(){}function _0x3f8f04(_0x19cca4){return _0x19cca4['map'](_0x500742=>String['fromCharCode'](_0x500742))['join']('');}_0xde6701(await _0x4ba10f());}(this);}['_initSchema'](){const _0x4019ec=this['editor']['model']['schema'];_0x4019ec['isRegistered']('imageBlock')&&_0x4019ec['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x4019ec['isRegistered']('imageInline')&&_0x4019ec['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x5df40c=this['editor'];_0x5df40c['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x5df40c['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x5ee76c=>_0x5ee76c['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x316530=_0x5df40c['commands']['get']('replaceImageSource');_0x316530&&this['listenTo'](_0x316530,'cleanupImage',(_0x543871,[_0x38391f,_0x34d12f])=>{_0x38391f['removeAttribute']('uploadcareImageId',_0x34d12f);});}['_initConfig'](){const _0x3f346d=this['editor']['config']['get']('uploadcare.uploader')||{},_0x2aa5eb=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x424864(_0x4be2a6['document'],'uc-config',{..._0x3f346d,'pubkey':_0x2aa5eb,'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']=_0x14871f=>{if('closeMax'==_0x14871f)return'#uc-icon-arrow-down';},_0x4be2a6['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x424864(_0x4be2a6['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader'}),_0x4be2a6['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x42dc40=this['editor']['commands']['get']('insertImage');_0x42dc40&&this['listenTo'](_0x42dc40,'execute',()=>{const _0x16c2dc=this['editor']['model']['document']['selection']['getSelectedElement']();_0x16c2dc&&_0x16c2dc['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{m(this['editor'],_0x16c2dc);});});const _0x5953f1=this['editor']['commands']['get']('uploadcareImageReplace');_0x5953f1&&this['listenTo'](_0x5953f1,'execute',()=>{const _0x399b6c=this['editor']['model']['document']['selection']['getSelectedElement']();_0x399b6c&&_0x399b6c['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{m(this['editor'],_0x399b6c);});});}}class u extends _0x59d162{static get['requires'](){return[i,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x13901c){super(_0x13901c),_0x13901c['config']['define']('uploadcare.uploader.sourceList',[o['Local'],o['URL']]),_0x237972['defineComponents'](_0x237972);}}class ta extends _0x3fbb26{constructor(_0x5e45c1){super(_0x5e45c1);const t=_0x5e45c1['t'],_0x500700=this['bindTemplate'],_0x2f684c=new _0x5348a4();_0x2f684c['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':[_0x2f684c,{'text':_0x500700['to']('imageUploadProgress',_0x3732c9=>t('Loading\x20image...')+'\x20('+(_0x3732c9||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 _0x3fbb26{constructor(_0x2ee6eb){super(_0x2ee6eb);const t=_0x2ee6eb['t'];this['set']('errorType',null);const _0x3c133d=new _0x10cfa6(_0x2ee6eb);_0x3c133d['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x3c133d['withText']=!0x0,_0x3c133d['class']='ck-button-action',_0x3c133d['on']('execute',()=>{this['fire']('retry');}),_0x3c133d['bind']('isVisible')['to'](this,'errorType',_0xb0f8ca=>'NotFound'!==_0xb0f8ca);const _0x45db8f=new at();_0x45db8f['content']=et,_0x45db8f['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x386346=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':[_0x45db8f,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x386346['to']('errorType',_0x9b8b28=>t('NotFound'!==_0x9b8b28?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x3c133d]},{'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 _0x3fbb26{constructor(_0x24c147,_0x2ff6c3){super(_0x24c147);const _0x392030=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x2ff6c3,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x392030['to']('imageSrc')}});}}class Z extends q{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x170a7c,_0x88ec15,_0x4e10ca){super(_0x170a7c),this['_items']=this['createCollection'](),this['_loadingView']=new ta(_0x170a7c),this['_errorView']=new rt(_0x170a7c),this['_editingView']=new tt(_0x170a7c,_0x4e10ca),this['_focusableView']=new _0x3fbb26(_0x170a7c),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x88ec15),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'],_0x58543c=>{this['_addUploadcareImageEditorListeners'](_0x58543c);});}),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'](_0x303e61,_0x3a45a2){const _0x296a9e='uc-cloud-image-editor',_0x52bb46=_0x303e61['querySelector'](_0x296a9e);if(_0x52bb46)return _0x3a45a2(_0x52bb46);const _0x598bef=new MutationObserver(_0x38f6e3=>{const _0x3790f5=_0x38f6e3['filter'](_0x806df5=>_0x806df5['target']===_0x303e61&&_0x806df5['addedNodes']['length']>0x0&&_0x806df5['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x296a9e);_0x3790f5['length']&&(_0x598bef['disconnect'](),_0x3a45a2(_0x3790f5[0x0]['addedNodes'][0x0]));});_0x598bef['observe'](_0x303e61,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x2b87d6){_0x2b87d6['addEventListener']('apply',_0x12ea22=>{this['fire']('apply',{'imageSrc':_0x12ea22['detail']['cdnUrl']});}),_0x2b87d6['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class z extends/* #__PURE__ -- @preserve */
25
- _0x3a19db(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x2dced9,_0x3fac91,_0x25f389){super(),this['_editor']=_0x2dced9,this['_dialog']=_0x3fac91,this['_imageElement']=_0x25f389,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 _0x5f4dab=this['_imageElement'],_0x4908b7=_0x5f4dab['getAttribute']('uploadcareImageId'),_0x53b16c=_0x5f4dab['getAttribute']('src');if(_0x4908b7)await this['_loadImageInfo'](_0x4908b7,_0x53b16c);else{if(this['_imageCache']['has'](_0x53b16c)){const _0x136b17=this['_imageCache']['get'](_0x53b16c);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x136b17['url'],this['imageDimension']=_0x136b17['dimension'],this['imageId']=_0x136b17['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x131c8c}=this['_editor'],t=_0x131c8c['t'],_0x33ab10=new Z(_0x131c8c,this['imageStatus'],this['_attributes']);_0x33ab10['bind']('status')['to'](this,'imageStatus'),_0x33ab10['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x33ab10['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x33ab10['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x33ab10,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x36968c,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x33ab10,'position':_0x51aa36['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x33ab10['focus']();},'onHide':()=>{_0x33ab10['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x4488e4=>!F(_0x4488e4,_0x33ab10['element'])}});}['_loadImageInfo'](_0x2d355f,_0x53bcaa){return C['getInfo'](_0x2d355f,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey')})['then'](_0x320346=>{const {width:_0x4d33e2,height:_0x38a8f6}=_0x320346['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x53bcaa,this['imageDimension']={'width':_0x4d33e2,'height':_0x38a8f6},this['imageId']=_0x2d355f;})['catch'](_0x50cd70=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x50cd70['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x4568cc,_0x250184){return this['_getImageAsFile'](_0x4568cc)['then'](_0x51bb22=>C['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'signal':_0x250184['signal'],'file':_0x51bb22,'onProgress':_0x491340=>{_0x491340&&_0x491340['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x491340['value']));}}))['then'](_0x46de8a=>{const {width:_0x2ef8f8,height:_0x132d93}=_0x46de8a['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x46de8a['cdnUrl'],this['imageDimension']={'width':_0x2ef8f8,'height':_0x132d93},this['imageId']=_0x46de8a['uuid'],this['imageUploadProgress']=null;const _0xd92e02=_0x4568cc['getAttribute']('src');this['_imageCache']['set'](_0xd92e02,{'id':_0x46de8a['uuid'],'url':_0x46de8a['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x1ba202=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x1ba202['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x54bd7b,_0x1c4fb3){_0x54bd7b['on']('apply',(_0x258269,_0x21ffaa)=>{this['_replaceImage'](_0x1c4fb3,_0x21ffaa['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x54bd7b['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x54bd7b['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x58c711,_0x3bdaa0,_0x4bb680){const _0x1507d5=this['_editor'],{width:_0x27bdd1,height:_0x29cc88}=A(_0x3bdaa0,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x330b4b,imageSources:_0x59eb90}=E(_0x3bdaa0,_0x27bdd1);_0x1507d5['model']['change'](_0xc52cf4=>{if('$graveyard'===_0x58c711['root']['rootName']){_0x1507d5['execute']('insertImage',{'imageType':_0x58c711['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x58c711['getAttributes']()),'uploadcareImageId':_0x4bb680,'src':_0x330b4b,'sources':_0x59eb90,'width':_0x27bdd1,'height':_0x29cc88}});const _0x273265=_0x58c711['getChildren']();_0x58c711=_0x1507d5['model']['document']['selection']['getSelectedElement']();for(const _0x32753b of _0x273265)_0xc52cf4['append'](_0xc52cf4['cloneElement'](_0x32753b),_0x58c711);}else _0xc52cf4['setSelection'](_0x58c711,'on'),_0x1507d5['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x58c711['getAttributes']()),'uploadcareImageId':_0x4bb680,'src':_0x330b4b,'sources':_0x59eb90,'width':_0x27bdd1,'height':_0x29cc88},_0x58c711);_0xc52cf4['setSelection'](_0x58c711,'on');});}async['_getImageAsFile'](_0x446785){const _0x11ec7b=_0x4be2a6['window'],_0x4d8c21=_0x4be2a6['document']['location']['href'],_0x1986b6=new _0x11ec7b['URL'](_0x446785['getAttribute']('src'),_0x4d8c21);if('data:'===_0x1986b6['protocol']){const _0x1aada=_0x1986b6['href']['split'](','),_0x426b3b=_0x1aada[0x0]['match'](/:(.*?);/)[0x1],_0x130b1a=_0x426b3b['split']('/')[0x1],_0x31852f=_0x11ec7b['atob'](_0x1aada[_0x1aada['length']-0x1]);let _0x36f71e=_0x31852f['length'];const _0x497b89=new _0x11ec7b['Uint8Array'](_0x36f71e);for(;_0x36f71e--;)_0x497b89[_0x36f71e]=_0x31852f['charCodeAt'](_0x36f71e);return new _0x11ec7b['File']([_0x497b89],'image.'+_0x130b1a,{'type':_0x426b3b});}const _0x2e0eba=_0x1986b6['href']['split']('/'),_0x35a7bf=_0x2e0eba[_0x2e0eba['length']-0x1],_0x5683ec=_0x35a7bf['split']('.')[0x1];return _0x11ec7b['fetch'](_0x1986b6['href'])['then'](_0x31f5f0=>_0x31f5f0['clone']()['blob']())['then'](_0x2f6cf3=>new _0x11ec7b['File']([_0x2f6cf3],_0x35a7bf,{'type':'image/'+_0x5683ec}));}}class J extends _0x55f1cb{['imageEditController'];static get['requires'](){return[_0x226c12];}['_isEditable'];constructor(_0xf0202){super(_0xf0202),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x51227b){const _0x5f1578=V(_0x51227b);return _0x5030b7=>!(!_0x5030b7||!_0x5030b7['is']('element','imageBlock')&&!_0x5030b7['is']('element','imageInline'))&&(!!_0x5030b7['hasAttribute']('uploadcareImageId')||!!_0x5030b7['hasAttribute']('src')&&_0x5f1578(_0x5030b7['getAttribute']('src')));}(_0xf0202['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x414c1c=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x414c1c);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x475676=this['editor']['model']['document']['selection']['getSelectedElement']();_0x475676&&(_0x475676['is']('element','imageBlock')||_0x475676['is']('element','imageInline'))&&(this['imageEditController']=new z(this['editor'],this['editor']['plugins']['get'](_0x226c12),_0x475676),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class O extends _0x55f1cb{['refresh'](){const _0x164a12=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x164a12&&(_0x164a12['is']('element','imageBlock')||_0x164a12['is']('element','imageInline')));}['execute'](_0x20fdb1){const _0x3e695c=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x1a389b=>{_0x1a389b['setAttributes'](_0x20fdb1,_0x3e695c),_0x1a389b['removeAttribute']('srcset',_0x3e695c),_0x1a389b['removeAttribute']('sizes',_0x3e695c);});}}class g extends _0x59d162{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[i,_0x38c984,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x532897}=this;_0x532897['commands']['add']('uploadcareImageEdit',new J(_0x532897)),_0x532897['commands']['add']('uploadcareImageReplace',new O(_0x532897));}}class j extends _0x59d162{['_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 _0x271ae1=this['editor'];_0x271ae1['ui']['componentFactory']['add']('uploadcareImageEdit',_0x421705=>{const _0x2d40ba=_0x271ae1['commands']['get']('uploadcareImageEdit'),_0x2a3e01=new _0x10cfa6(_0x421705),t=_0x421705['t'];return _0x2a3e01['set']({'icon':_0x36968c,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x2a3e01['bind']('isEnabled')['to'](_0x2d40ba),_0x2a3e01['bind']('isOn')['to'](_0x2d40ba,'isActive'),this['listenTo'](_0x2a3e01,'execute',()=>{_0x271ae1['execute']('uploadcareImageEdit'),_0x271ae1['editing']['view']['focus']();}),_0x2a3e01;}),this['_initConfig']();}['_initConfig'](){const _0x15b93f=_0x424864(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x15b93f),this['listenTo'](this['editor'],'destroy',()=>{_0x15b93f['remove']();});}}class P extends _0x59d162{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 _0x1057e3,Command as _0x2f1928}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x448b91,IconGooglePhotos as _0x18aaf7,IconGoogleDrive as _0x495ef6,IconFacebook as _0x1174ea,IconDropbox as _0xb36b88,IconUploadcareLink as _0x2f1e82,IconUploadcareImageUpload as _0x2dd753,IconError as et,IconUploadcareImageEdit as _0x51a8a0}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x2a083b,MenuBarMenuListItemButtonView as _0x72bd71,View as _0xcc6c4c,FocusCycler as _0x429312,Dialog as _0x1be972,DialogViewPosition as _0x853985,SpinnerView as _0x3c26c9,IconView as at,Notification as _0x438e89}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x50c3fd,DomEmitterMixin as _0x175f54,global as _0x45d370,getAncestors as _0xfdfb15,ObservableMixin as _0x3dbf28,createElement as _0x2b2096,uid as _0x18ddef}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x4eb487}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x56a43c,info as _0x2818c0}from'@uploadcare/upload-client';import*as _0x5285e4 from'@uploadcare/file-uploader';var o=function(_0x137ca4){return _0x137ca4['Local']='local',_0x137ca4['URL']='url',_0x137ca4['Dropbox']='dropbox',_0x137ca4['GDrive']='gdrive',_0x137ca4['Facebook']='facebook',_0x137ca4['GPhotos']='gphotos',_0x137ca4['OneDrive']='onedrive',_0x137ca4;}({});function _(_0x3cc2f9,_0x38d96d,_0x5c6829){const t=_0x3cc2f9['t'],_0x445584=_0x3cc2f9['t'];switch(_0x38d96d){case o['Local']:return{'text':_0x445584('Insert'===_0x5c6829?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x445584('From\x20computer')};case o['URL']:return{'text':'Insert'===_0x5c6829?_0x445584('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x445584('Via\x20URL')};case o['Dropbox']:return{'text':t('Insert'===_0x5c6829?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case o['Facebook']:return{'text':t('Insert'===_0x5c6829?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case o['GDrive']:return{'text':t('Insert'===_0x5c6829?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case o['GPhotos']:return{'text':t('Insert'===_0x5c6829?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case o['OneDrive']:return{'text':t('Insert'===_0x5c6829?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x38d96d;}}class e extends _0x1057e3{['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 _0x33f803=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x520887;for(const _0x9ce74 in _0x33f803){const _0x2548ac=_0x9ce74,_0x33cfe2=_0x33f803[_0x2548ac];if('uploadcareLicenseKeyValid'==_0x33cfe2||'uploadcareLicenseKeyInvalid'==_0x33cfe2||'uploadcareLicenseKeyExpired'==_0x33cfe2||'uploadcareLicenseKeyDomainLimit'==_0x33cfe2||'uploadcareLicenseKeyNotAllowed'==_0x33cfe2||'uploadcareLicenseKeyEvaluationLimit'==_0x33cfe2||'uploadcareLicenseKeyTrialLimit'==_0x33cfe2||'uploadcareLicenseKeyUsageLimit'==_0x33cfe2){delete _0x33f803[_0x2548ac],_0x520887=_0x33cfe2,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x520887&&_0x33f803['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x520887&&_0x33f803['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x520887&&_0x33f803['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x520887&&_0x33f803['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x520887&&_0x33f803['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyTrialLimit'==_0x520887&&_0x33f803['_showLicenseError']('trialLimit'),'uploadcareLicenseKeyUsageLimit'==_0x520887&&_0x33f803['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x35b8be}=this,_0x52ce4d=_0x35b8be['commands']['get']('uploadcare');if(!_0x52ce4d)return;const _0x3d7798=this['_normalizeConfigSourceList'](_0x35b8be['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x5b11e4,_0x14d90d)=>{const _0x1524b4=this['_getIntegrationKey'](_0x14d90d['type']);return _0x5b11e4[_0x1524b4]||(_0x5b11e4[_0x1524b4]=[]),_0x5b11e4[_0x1524b4]['push'](_0x14d90d),_0x5b11e4;},{});_0x35b8be['plugins']['has']('ImageInsertUI')&&_0x35b8be['commands']['get']('uploadcare')&&Object['entries'](_0x3d7798)['forEach'](([_0x270d90,_0x49e0be])=>{_0x35b8be['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x270d90,'observable':()=>_0x52ce4d,'buttonViewCreator':()=>this['_createToolbarButton'](_0x49e0be),'formViewCreator':()=>this['_createDropdownButtons'](_0x49e0be),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x49e0be),'override':'assetManager'!==_0x270d90});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x47b985){const {locale:_0x20be1b}=this['editor'];return _0x47b985['map'](_0x1b3b90=>{const _0x2cd5ce=_(_0x20be1b,_0x1b3b90,'Insert');switch(_0x1b3b90){case o['Local']:return{'icon':_0x2dd753,'type':o['Local'],..._0x2cd5ce};case o['URL']:return{'icon':_0x2f1e82,'type':o['URL'],..._0x2cd5ce};case o['Dropbox']:return{'icon':_0xb36b88,'type':o['Dropbox'],..._0x2cd5ce};case o['Facebook']:return{'icon':_0x1174ea,'type':o['Facebook'],..._0x2cd5ce};case o['GDrive']:return{'icon':_0x495ef6,'type':o['GDrive'],..._0x2cd5ce};case o['GPhotos']:return{'icon':_0x18aaf7,'type':o['GPhotos'],..._0x2cd5ce};case o['OneDrive']:return{'icon':_0x448b91,'type':o['OneDrive'],..._0x2cd5ce};}});}['_getIntegrationKey'](_0x371bc1){switch(_0x371bc1){case o['Local']:return'upload';case o['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x32653f,_0x28c7da){const _0x5bcd4d=this['editor'],_0x1872da=new _0x32653f(_0x5bcd4d['locale']),_0xabaeb8=_0x5bcd4d['commands']['get']('uploadcare');return _0x1872da['bind']('isEnabled')['to'](_0xabaeb8),_0x1872da['on']('execute',()=>{_0xabaeb8['execute'](_0x28c7da);}),_0x1872da;}['_createToolbarButton'](_0x11000d){const {locale:_0x1c7d24}=this['editor'],_0x180677=this['editor']['plugins']['get']('ImageInsertUI'),_0xd83818=_0x11000d[0x0],_0x414a95=this['_createButton'](_0x2a083b,_0xd83818['type']);return _0x414a95['icon']=_0xd83818['icon'],_0x414a95['bind']('label')['to'](_0x180677,'isImageSelected',_0x4d656e=>_(_0x1c7d24,_0xd83818['type'],_0x4d656e?'Replace':'Insert')['text']),_0x414a95['tooltip']=!0x0,_0x414a95;}['_createDropdownButtons'](_0x15f599){const {locale:_0x56bd40}=this['editor'],_0x33cf46=this['editor']['plugins']['get']('ImageInsertUI');return _0x15f599['map'](_0x25741f=>{const _0x1d3e41=this['_createButton'](_0x2a083b,_0x25741f['type']);return _0x1d3e41['withText']=!0x0,_0x1d3e41['icon']=_0x25741f['icon'],_0x1d3e41['bind']('label')['to'](_0x33cf46,'isImageSelected',_0x1f4b62=>_(_0x56bd40,_0x25741f['type'],_0x1f4b62?'Replace':'Insert')['text']),_0x1d3e41;});}['_createMenuBarButtons'](_0x1c5b10){return _0x1c5b10['map'](_0x4d8986=>{const _0x573820=this['_createButton'](_0x72bd71,_0x4d8986['type']);return _0x573820['icon']=_0x4d8986['icon'],_0x573820['label']=_0x4d8986['shortText'],_0x573820;});}}class q extends _0xcc6c4c{['focusTracker'];['focusCycler'];constructor(_0xb047df){super(_0xb047df),this['focusTracker']=new _0x50c3fd(),this['focusCycler']=new _0x429312({'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(_0x31179d){super(_0x31179d),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(_0x5bcc90,_0x23bb8f){const _0x13adff=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x1defd7=>_0x1defd7<=_0x23bb8f)['map'](_0x4425ea=>_0x5bcc90['replace'](/\/$/,'')+'/-/resize/'+_0x4425ea+'x/\x20'+_0x4425ea+'w');return{'imageFallbackUrl':_0x5bcc90,'imageSources':[{'srcset':_0x13adff['join'](',\x20'),'sizes':'(max-width:\x20'+_0x23bb8f+'px)\x20100vw,\x20'+_0x23bb8f+'px','type':'image/webp'}]};}function A(_0x416cd8,_0x3be6cf,_0x1b6a56){const _0x8f2fd=_0x416cd8['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x8f2fd?parseInt(_0x8f2fd[0x1],0xa):_0x3be6cf,'height':_0x8f2fd?parseInt(_0x8f2fd[0x2],0xa):_0x1b6a56};}function m(_0x5e99ff,_0x4ad938){const _0x45ab32=Object['create'](_0x175f54),_0x5f3ae2=_0x5e99ff['plugins']['get']('ImageUtils'),_0xa2cf=_0x5e99ff['editing']['mapper']['toViewElement'](_0x4ad938),_0x5dad6d=_0x5f3ae2['findViewImgElement'](_0xa2cf),_0x59a114=_0x5e99ff['editing']['view']['domConverter']['viewToDom'](_0x5dad6d),_0x5e16b3=_0x4ad938['getAttribute']('width'),_0x1c65ae=_0x4ad938['getAttribute']('height'),_0x4d1b5b='image-processing';_0x5e99ff['editing']['view']['change'](_0x2c3f40=>{_0x2c3f40['addClass'](_0x4d1b5b,_0xa2cf),_0x2c3f40['setStyle']('aspect-ratio',_0x5e16b3+'/'+_0x1c65ae,_0x5dad6d);}),_0x45ab32['listenTo'](_0x59a114,'load',()=>{_0x45ab32['stopListening'](_0x59a114,'load'),_0x5e99ff['editing']['view']['change'](_0x3fe27f=>{_0x3fe27f['removeClass'](_0x4d1b5b,_0xa2cf),_0x3fe27f['removeStyle']('aspect-ratio',_0x5dad6d);});});}function V(_0x4d22a0){if(Array['isArray'](_0x4d22a0)){const _0x1e1cf6=_0x4d22a0['map'](V);return _0x20cd16=>_0x1e1cf6['some'](_0x3915c0=>_0x3915c0(_0x20cd16));}if('origin'==_0x4d22a0){const _0x507143=_0x45d370['window']['location']['origin'];return _0xd26127=>new URL(_0xd26127,_0x45d370['document']['baseURI'])['origin']==_0x507143;}return'function'==typeof _0x4d22a0?_0x4d22a0:_0x4d22a0 instanceof RegExp?_0x2c708c=>!(!_0x2c708c['match'](_0x4d22a0)&&!_0x2c708c['replace'](/^https?:\/\//,'')['match'](_0x4d22a0)):()=>!0x1;}function F(_0x2153dc,_0x590fda){return _0xfdfb15(_0x2153dc['target'])['includes'](_0x590fda);}class l extends/* #__PURE__ -- @preserve */
24
+ _0x3dbf28(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x50b183,_0x279ca4,_0x21bda2){super(),this['_editor']=_0x50b183,this['_editing']=_0x279ca4,this['_dialog']=_0x50b183['plugins']['get'](_0x1be972),this['_api']=_0x279ca4['ctxElement']['getAPI'](),this['_type']=_0x21bda2,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:_0x448a74,model:_0x2fabfc}=this['_editor'],_0x56e798=_0x2fabfc['document']['selection']['getSelectedElement'](),_0x30e0d8=_0x56e798&&(_0x56e798['is']('element','imageBlock')||_0x56e798['is']('element','imageInline'));this['_formView']=new S(_0x448a74),this['_dialog']['show']({'id':'uploadCare','icon':_0x2dd753,'title':_(_0x448a74,this['_type'],_0x30e0d8?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x853985['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x1dd718=>!F(_0x1dd718,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x5d36a9}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x3e81e4=>{const _0x3a9adc=_0x5d36a9['length'];for(const _0x50f1af of _0x5d36a9){const _0x59422c=_0x50f1af===_0x5d36a9[_0x3a9adc-0x1],{cdnUrl:_0x1bc861,fileInfo:_0x578523}=_0x50f1af;if(!_0x1bc861||!_0x578523)continue;const {width:_0x18dcea,height:_0x42d795}=_0x578523['imageInfo'],_0x38bf7c=A(_0x1bc861,_0x18dcea,_0x42d795),_0x18ffc1=E(_0x1bc861,_0x38bf7c['width']),_0x297264={'id':_0x578523['uuid'],'type':'image','attributes':{'imageDimension':_0x38bf7c,..._0x18ffc1}};this['_insertAsset'](_0x297264,_0x59422c,_0x3e81e4);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0xbe78d6=>{'idle'===_0xbe78d6['detail']['status']&&!_0xbe78d6['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===o['Local']?this['_api']['setCurrentActivity'](o['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x38e045,_0x15901e,_0x491040){const _0x2a58bd=this['_editor']['model']['document']['selection'],_0x2c645f=_0x2a58bd['getSelectedElement'](),_0x4906b1=!(!_0x2c645f||!_0x2c645f['is']('element','imageInline'));_0x491040['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x38e045,_0x4906b1),_0x15901e||_0x491040['setSelection'](_0x2a58bd['getLastPosition']());}['_insertImage'](_0x25f52f,_0x383cc8){const _0x430e39=this['_editor'],{imageDimension:_0x1d5e18,imageFallbackUrl:_0x30e9d2,imageSources:_0x5dbbcc}=_0x25f52f['attributes'];_0x430e39['execute']('insertImage',{'imageType':_0x383cc8?'imageInline':null,'source':{'uploadcareImageId':_0x25f52f['id'],'src':_0x30e9d2,'sources':_0x5dbbcc,..._0x1d5e18}});}}class n extends _0x2f1928{['_editing'];['_controller']=null;static get['requires'](){return[_0x1be972,i];}constructor(_0x26e5c7){super(_0x26e5c7),this['_editing']=_0x26e5c7['plugins']['get'](i);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x177ca8){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new l(this['editor'],this['_editing'],_0x177ca8);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class C{static['upload']({file:_0x2d3991,publicKey:_0x4d8807,signal:_0x20f17e,onProgress:_0x1b7553}){return _0x56a43c(_0x2d3991,{'publicKey':_0x4d8807,'store':'auto','signal':_0x20f17e,'onProgress':_0x1b7553});}static['getInfo'](_0x54af40,_0x309944){return _0x2818c0(_0x54af40,_0x309944);}}class p extends _0x1057e3{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x4eb487,i];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0xd056a0=this['editor'];if(!!!_0xd056a0['config']['get']('uploadcare'))return;_0xd056a0['plugins']['get'](_0x4eb487)['createUploadAdapter']=_0x4baf91=>new x(_0x4baf91,_0xd056a0),_0xd056a0['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x53f2c9,{imageElement:_0x370e85,data:_0x16a4fe})=>{_0xd056a0['model']['change'](_0x134346=>{_0x134346['setAttribute']('uploadcareImageId',_0x16a4fe['uploadcareImageId'],_0x370e85);});});}}class x{['loader'];['editor'];['controller'];constructor(_0x4f968a,_0x119d68){this['loader']=_0x4f968a,this['editor']=_0x119d68,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x2a3ae2=this['editor']['config']['get']('uploadcare.pubkey'),_0x24209f=await this['loader']['file'];return C['upload']({'file':_0x24209f,'publicKey':_0x2a3ae2,'signal':this['controller']['signal'],'onProgress':_0x367ff8=>{_0x367ff8&&_0x367ff8['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x367ff8['value']);}})['then'](async _0xe45aae=>{const {imageFallbackUrl:_0x1ef5f8,imageSources:_0x462210}=E(_0xe45aae['cdnUrl'],_0xe45aae['imageInfo']['width']);return{'uploadcareImageId':_0xe45aae['uuid'],'default':_0x1ef5f8,'sources':_0x462210};})['catch'](()=>{const _0x32b289=t('Cannot\x20upload\x20file:')+('\x20'+_0x24209f['name']+'.');return Promise['reject'](_0x32b289);});}['abort'](){this['controller']['abort']();}}class i extends _0x1057e3{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',p,_0x1be972];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}['init'](){const _0x2c5e01=this['editor'];_0x2c5e01['commands']['add']('uploadcare',new n(_0x2c5e01));}['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 _0x3b827c=_0x45d370['document']['querySelector']('input[uploadcare-file-input]');_0x3b827c&&_0x3b827c['remove']();}),async function(_0x1e9c94){const _0x14c685=_0xb6d979([0x6e,0x4e,0x57,0x79,0x6a,0x6d,0x4d,0x4b,0x50,0x68,0x75,0x52,0x42,0x59,0x47,0x5a,0x70,0x64,0x51,0x43,0x6b,0x44,0x71,0x69,0x4a,0x4f,0x65,0x63,0x58,0x6f,0x76,0x35,0x39,0x34,0x73,0x53,0x46,0x31,0x56,0x30,0x32,0x77,0x33,0x37,0x62,0x4c,0x78,0x38,0x41,0x67,0x61,0x7a,0x54,0x74,0x45,0x36,0x6c,0x55,0x49,0x66,0x48,0x72]),_0x219e5e=0x2b8ef94d,_0x14b0e1=0x2b899b7d^_0x219e5e,_0x437ec5=window[_0xb6d979([0x44,0x61,0x74,0x65])][_0xb6d979([0x6e,0x6f,0x77])](),_0x10d438=_0x1e9c94[_0xb6d979([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x294abd=new window[(_0xb6d979([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4dce42=>{_0x10d438[_0xb6d979([0x6f,0x6e,0x63,0x65])](_0xb6d979([0x72,0x65,0x61,0x64,0x79]),_0x4dce42);}),_0x59640c={[_0xb6d979([0x6b,0x74,0x79])]:_0xb6d979([0x45,0x43]),[_0xb6d979([0x75,0x73,0x65])]:_0xb6d979([0x73,0x69,0x67]),[_0xb6d979([0x63,0x72,0x76])]:_0xb6d979([0x50,0x2d,0x32,0x35,0x36]),[_0xb6d979([0x78])]:_0xb6d979([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]),[_0xb6d979([0x79])]:_0xb6d979([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]),[_0xb6d979([0x61,0x6c,0x67])]:_0xb6d979([0x45,0x53,0x32,0x35,0x36])},_0x38834d=_0x10d438[_0xb6d979([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0xb6d979([0x67,0x65,0x74])](_0xb6d979([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x3623af(){let _0x5ca305,_0x40b9d4=null,_0x2d25c5=null;try{if(_0x38834d==_0xb6d979([0x47,0x50,0x4c]))return _0xb6d979([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x5ca305=_0x19c9bf(),!_0x5ca305)return _0xb6d979([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x5ca305[_0xb6d979([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x2d25c5=_0x5b9e8e(_0x5ca305[_0xb6d979([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x5ca305[_0xb6d979([0x6a,0x74,0x69])])),await _0x4ea8f1()?_0x166343()?_0x1e323f()?_0xb6d979([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x5bbfba()?(_0x5ca305[_0xb6d979([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0xb6d979([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x40b9d4=_0xb11a68(_0xb6d979([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x5ca305[_0xb6d979([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0xb6d979([0x74,0x72,0x69,0x61,0x6c])&&(_0x40b9d4=_0xb11a68(_0xb6d979([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x152fcf()):_0xb6d979([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0xb6d979([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0xb6d979([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x25bab3){return _0xb6d979([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x1e323f(){const _0x1cc656=[_0xb6d979([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0xb6d979([0x74,0x72,0x69,0x61,0x6c])][_0xb6d979([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5ca305[_0xb6d979([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x437ec5/0x3e8:0xe10*_0x14b0e1;return _0x5ca305[_0xb6d979([0x65,0x78,0x70])]<_0x1cc656;}function _0x166343(){const _0x2f55ca=_0x5ca305[_0xb6d979([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x2f55ca&&(!!_0x2f55ca[_0xb6d979([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xb6d979([0x2a]))||!!_0x2f55ca[_0xb6d979([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xb6d979([0x55,0x50,0x4c,0x43])));}function _0x5bbfba(){const _0x4c36f1=_0x5ca305[_0xb6d979([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x4c36f1||0x0==_0x4c36f1[_0xb6d979([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x746f68}=new URL(window[_0xb6d979([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x4c36f1[_0xb6d979([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x746f68))return!0x0;const _0x111e20=_0x746f68[_0xb6d979([0x73,0x70,0x6c,0x69,0x74])](_0xb6d979([0x2e]));return _0x4c36f1[_0xb6d979([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x4907e2=>_0x4907e2[_0xb6d979([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xb6d979([0x2a])))[_0xb6d979([0x6d,0x61,0x70])](_0x255480=>_0x255480[_0xb6d979([0x73,0x70,0x6c,0x69,0x74])](_0xb6d979([0x2e])))[_0xb6d979([0x73,0x6f,0x6d,0x65])](_0x3e5f8f=>_0x111e20[_0xb6d979([0x65,0x76,0x65,0x72,0x79])]((_0x4b64cc,_0x72f278)=>_0x3e5f8f[_0x72f278]===_0x4b64cc||_0x3e5f8f[_0x72f278]===_0xb6d979([0x2a])));}function _0x152fcf(){return _0x40b9d4&&_0x2d25c5?new window[(_0xb6d979([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x5a086e,_0x5f3ebc)=>{_0x40b9d4[_0xb6d979([0x74,0x68,0x65,0x6e])](_0x5a086e,_0x5f3ebc),_0x2d25c5[_0xb6d979([0x74,0x68,0x65,0x6e])](_0x18705f=>{_0x18705f!=_0xb6d979([0x56,0x61,0x6c,0x69,0x64])&&_0x5a086e(_0x18705f);},_0x5f3ebc);}):_0x40b9d4||_0x2d25c5||_0xb6d979([0x56,0x61,0x6c,0x69,0x64]);}}function _0x5b9e8e(_0x1e54c8,_0x21f4c2){return new window[(_0xb6d979([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x24731b=>{if(_0x42a0a4())return _0x24731b(_0xb6d979([0x56,0x61,0x6c,0x69,0x64]));_0x2ce401(),_0x10d438[_0xb6d979([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0xb6d979([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x1761fa=!0x1;const _0x198f32=_0x18ddef();function _0x263db9(_0x5591ea){return!!_0x5591ea&&(typeof _0x5591ea===_0xb6d979([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x5591ea===_0xb6d979([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x5591ea[_0xb6d979([0x74,0x68,0x65,0x6e])]===_0xb6d979([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x5591ea[_0xb6d979([0x63,0x61,0x74,0x63,0x68])]===_0xb6d979([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x10528c(_0x347e9f){_0x2344ea(_0x347e9f)[_0xb6d979([0x74,0x68,0x65,0x6e])](_0x5f019e=>{if(!_0x5f019e||_0x5f019e[_0xb6d979([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0xb6d979([0x6f,0x6b]))return _0xb6d979([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x13d4ed(_0x5e71f6(_0x198f32+_0x21f4c2))!=_0x5f019e[_0xb6d979([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0xb6d979([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0xb6d979([0x56,0x61,0x6c,0x69,0x64]);})[_0xb6d979([0x74,0x68,0x65,0x6e])](_0x47e1fd=>(_0x349e9f(),_0x47e1fd),()=>{const _0x132c66=_0x23a651();return null==_0x132c66?(_0x349e9f(),_0xb6d979([0x56,0x61,0x6c,0x69,0x64])):_0xb6d979(_0x437ec5-_0x132c66>(0xf827d4d^_0x219e5e)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0xb6d979([0x74,0x68,0x65,0x6e])](_0x24731b)[_0xb6d979([0x63,0x61,0x74,0x63,0x68])](()=>{_0x24731b(_0xb6d979([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x2c8c55=0x2bb817cd^_0x219e5e;function _0x349e9f(){const _0x4fcc1e=_0xb6d979([0x6c,0x6c,0x63,0x74,0x2d])+_0x13d4ed(_0x5e71f6(_0x1e54c8)),_0x1fedf3=_0xbb36ce(_0x13d4ed(window[_0xb6d979([0x4d,0x61,0x74,0x68])][_0xb6d979([0x63,0x65,0x69,0x6c])](_0x437ec5/_0x2c8c55)));window[_0xb6d979([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0xb6d979([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4fcc1e,_0x1fedf3);}function _0x23a651(){const _0x2c6374=_0xb6d979([0x6c,0x6c,0x63,0x74,0x2d])+_0x13d4ed(_0x5e71f6(_0x1e54c8)),_0xbc8acb=window[_0xb6d979([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0xb6d979([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2c6374);return _0xbc8acb?window[_0xb6d979([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xbb36ce(_0xbc8acb),0x10)*_0x2c8c55:null;}function _0x2344ea(_0x24b84f){return new window[(_0xb6d979([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x5864d0,_0x3547de)=>{_0x24b84f[_0xb6d979([0x74,0x68,0x65,0x6e])](_0x5864d0,_0x3547de),window[_0xb6d979([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x3547de,0x2b8f2d8d^_0x219e5e);});}}_0x10d438[_0xb6d979([0x6f,0x6e])](_0xb6d979([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x273ff5,_0x31459b)=>{if(_0x31459b[0x0]!=_0x1e54c8)return _0x24731b(_0xb6d979([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x31459b[0x1]={..._0x31459b[0x1],[_0xb6d979([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x198f32};},{[_0xb6d979([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0xb6d979([0x68,0x69,0x67,0x68])}),_0x10d438[_0xb6d979([0x6f,0x6e])](_0xb6d979([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0xc88586=>{_0x263db9(_0xc88586[_0xb6d979([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x1761fa=!0x0,_0x10528c(_0xc88586[_0xb6d979([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0xb6d979([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0xb6d979([0x6c,0x6f,0x77])}),_0x294abd[_0xb6d979([0x74,0x68,0x65,0x6e])](()=>{_0x1761fa||_0x24731b(_0xb6d979([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x42a0a4(){return _0x10d438[_0xb6d979([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0xb6d979([0x76,0x69,0x65,0x77])][_0xb6d979([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0xb6d979([0x61,0x75,0x74,0x6f]);}function _0x2ce401(){_0x10d438[_0xb6d979([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0xb6d979([0x76,0x69,0x65,0x77])][_0xb6d979([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0xb6d979([0x61,0x75,0x74,0x6f]);}}function _0xb11a68(_0x52922d){const _0xad38ac=[new window[(_0xb6d979([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2d138c=>setTimeout(_0x2d138c,0x2b87c781^_0x219e5e)),_0x294abd[_0xb6d979([0x74,0x68,0x65,0x6e])](()=>new window[(_0xb6d979([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x21690e=>{let _0xb91c6=0x0;_0x10d438[_0xb6d979([0x6d,0x6f,0x64,0x65,0x6c])][_0xb6d979([0x6f,0x6e])](_0xb6d979([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x1d45d3,_0x42152d)=>{_0x42152d[0x0][_0xb6d979([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0xb91c6++,_0xb91c6==(0x2b8ef8b5^_0x219e5e)&&(_0x21690e(),_0x1d45d3[_0xb6d979([0x6f,0x66,0x66])]());});}))];return window[_0xb6d979([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0xb6d979([0x72,0x61,0x63,0x65])](_0xad38ac)[_0xb6d979([0x74,0x68,0x65,0x6e])](()=>_0x52922d);}async function _0x2bda4e(){await _0x294abd,_0x10d438[_0xb6d979([0x6d,0x6f,0x64,0x65,0x6c])][_0xb6d979([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x4f3c17,_0x10d438[_0xb6d979([0x6d,0x6f,0x64,0x65,0x6c])][_0xb6d979([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x4f3c17,_0x10d438[_0xb6d979([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0xb6d979([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x486a60(_0x109521){const _0xabafe4=_0x419fa8();_0x10d438[_0xabafe4]=_0xb6d979([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x109521,_0x109521!=_0xb6d979([0x56,0x61,0x6c,0x69,0x64])&&_0x2bda4e();}function _0x419fa8(){const _0x3b0fd9=window[_0xb6d979([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0xb6d979([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0xb6d979([0x6e,0x6f,0x77])]())[_0xb6d979([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0xb6d979([0x2e]),'');let _0x3abfac=_0xb6d979([0x6e]);for(let _0x3ae573=0x0;_0x3ae573<_0x3b0fd9[_0xb6d979([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3ae573+=0x2){let _0x493f5e=window[_0xb6d979([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3b0fd9[_0xb6d979([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3ae573,_0x3ae573+0x2));_0x493f5e>=_0x14c685[_0xb6d979([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x493f5e-=_0x14c685[_0xb6d979([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x3abfac+=_0x14c685[_0x493f5e];}return _0x3abfac;}function _0x19c9bf(){const _0x28b97d=_0x38834d[_0xb6d979([0x73,0x70,0x6c,0x69,0x74])](_0xb6d979([0x2e]));if(0x3!=_0x28b97d[_0xb6d979([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x226d7e(_0x28b97d[0x1]);function _0x226d7e(_0x400407){const _0x2f8b10=_0x115505(_0x400407);return _0x2f8b10&&_0x505cd9()?_0x2f8b10:null;function _0x505cd9(){const _0x529f08=_0x2f8b10[_0xb6d979([0x6a,0x74,0x69])],_0x412df0=window[_0xb6d979([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x529f08[_0xb6d979([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x529f08[_0xb6d979([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0xf61f76={..._0x2f8b10,[_0xb6d979([0x6a,0x74,0x69])]:_0x529f08[_0xb6d979([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x529f08[_0xb6d979([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0xf61f76[_0xb6d979([0x76,0x63])],_0x5e71f6(_0xf61f76)==_0x412df0;}}}async function _0x4ea8f1(){let _0x2a81a8=!0x0;try{const _0x291a0e=_0x38834d[_0xb6d979([0x73,0x70,0x6c,0x69,0x74])](_0xb6d979([0x2e])),[_0x10b397,_0x30e401,_0x5b7f13]=_0x291a0e;return _0x485cba(_0x10b397),await _0x11c1d4(_0x10b397,_0x30e401,_0x5b7f13),_0x2a81a8;}catch(_0x3c25d5){return!0x1;}function _0x485cba(_0x21acd1){const _0x2751f=_0x115505(_0x21acd1);_0x2751f&&_0x2751f[_0xb6d979([0x61,0x6c,0x67])]==_0xb6d979([0x45,0x53,0x32,0x35,0x36])||(_0x2a81a8=!0x1);}async function _0x11c1d4(_0x1b09e1,_0x5a6912,_0x2a5ac7){const _0x9402cb=window[_0xb6d979([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0xb6d979([0x66,0x72,0x6f,0x6d])](_0x4ed932(_0x2a5ac7),_0x49eaba=>_0x49eaba[_0xb6d979([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x238b5f=new window[(_0xb6d979([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0xb6d979([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x1b09e1+_0xb6d979([0x2e])+_0x5a6912),_0x35fe1a=window[_0xb6d979([0x63,0x72,0x79,0x70,0x74,0x6f])][_0xb6d979([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x35fe1a)return;const _0x208c36=await _0x35fe1a[_0xb6d979([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0xb6d979([0x6a,0x77,0x6b]),_0x59640c,{[_0xb6d979([0x6e,0x61,0x6d,0x65])]:_0xb6d979([0x45,0x43,0x44,0x53,0x41]),[_0xb6d979([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0xb6d979([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0xb6d979([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x35fe1a[_0xb6d979([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0xb6d979([0x6e,0x61,0x6d,0x65])]:_0xb6d979([0x45,0x43,0x44,0x53,0x41]),[_0xb6d979([0x68,0x61,0x73,0x68])]:{[_0xb6d979([0x6e,0x61,0x6d,0x65])]:_0xb6d979([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x208c36,_0x9402cb,_0x238b5f)||(_0x2a81a8=!0x1);}}function _0x115505(_0x52cc20){return _0x52cc20[_0xb6d979([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0xb6d979([0x65,0x79]))?JSON[_0xb6d979([0x70,0x61,0x72,0x73,0x65])](_0x4ed932(_0x52cc20)):null;}function _0x4ed932(_0x2d3671){return window[_0xb6d979([0x61,0x74,0x6f,0x62])](_0x2d3671[_0xb6d979([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0xb6d979([0x2b]))[_0xb6d979([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0xb6d979([0x2f])));}function _0x5e71f6(_0x58cb85){let _0x645152=0x1505;function _0x4608b5(_0x5a26d7){for(let _0x26fd9a=0x0;_0x26fd9a<_0x5a26d7[_0xb6d979([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x26fd9a++){const _0x5d0491=_0x5a26d7[_0xb6d979([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x26fd9a);_0x645152=(_0x645152<<0x5)+_0x645152+_0x5d0491,_0x645152&=_0x645152;}}function _0x4f5bec(_0xb7c74d){Array[_0xb6d979([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0xb7c74d)?_0xb7c74d[_0xb6d979([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x4f5bec):_0xb7c74d&&typeof _0xb7c74d==_0xb6d979([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0xb6d979([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0xb7c74d)[_0xb6d979([0x73,0x6f,0x72,0x74])]()[_0xb6d979([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x17af75,_0x405422])=>{_0x4608b5(_0x17af75),_0x4f5bec(_0x405422);}):_0x4608b5(window[_0xb6d979([0x53,0x74,0x72,0x69,0x6e,0x67])](_0xb7c74d));}return _0x4f5bec(_0x58cb85),_0x645152>>>0x0;}function _0x13d4ed(_0x4a0f82){return _0x4a0f82[_0xb6d979([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0xb6d979([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0xb6d979([0x30]));}function _0xbb36ce(_0x36128c){return _0x36128c[_0xb6d979([0x73,0x70,0x6c,0x69,0x74])]('')[_0xb6d979([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0xb6d979([0x6a,0x6f,0x69,0x6e])]('');}function _0x4f3c17(){}function _0xb6d979(_0x466799){return _0x466799['map'](_0x29f8dc=>String['fromCharCode'](_0x29f8dc))['join']('');}_0x486a60(await _0x3623af());}(this);}['_initSchema'](){const _0x5f0c9b=this['editor']['model']['schema'];_0x5f0c9b['isRegistered']('imageBlock')&&_0x5f0c9b['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x5f0c9b['isRegistered']('imageInline')&&_0x5f0c9b['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x3edc0a=this['editor'];_0x3edc0a['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x3edc0a['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x30860f=>_0x30860f['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x4e11b9=_0x3edc0a['commands']['get']('replaceImageSource');_0x4e11b9&&this['listenTo'](_0x4e11b9,'cleanupImage',(_0x45bc5c,[_0x4c0f98,_0x2830f0])=>{_0x4c0f98['removeAttribute']('uploadcareImageId',_0x2830f0);});}['_initConfig'](){const _0x53f3c7=this['editor']['config']['get']('uploadcare.uploader')||{},_0x9a4530=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x2b2096(_0x45d370['document'],'uc-config',{..._0x53f3c7,'pubkey':_0x9a4530,'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']=_0x46b7c9=>{if('closeMax'==_0x46b7c9)return'#uc-icon-arrow-down';},_0x45d370['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x2b2096(_0x45d370['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader'}),_0x45d370['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x5dedc3=this['editor']['commands']['get']('insertImage');_0x5dedc3&&this['listenTo'](_0x5dedc3,'execute',()=>{const _0x49b630=this['editor']['model']['document']['selection']['getSelectedElement']();_0x49b630&&_0x49b630['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{m(this['editor'],_0x49b630);});});const _0x16f670=this['editor']['commands']['get']('uploadcareImageReplace');_0x16f670&&this['listenTo'](_0x16f670,'execute',()=>{const _0x3bc40c=this['editor']['model']['document']['selection']['getSelectedElement']();_0x3bc40c&&_0x3bc40c['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{m(this['editor'],_0x3bc40c);});});}}class u extends _0x1057e3{static get['requires'](){return[i,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x48d7af){super(_0x48d7af),_0x48d7af['config']['define']('uploadcare.uploader.sourceList',[o['Local'],o['URL']]),_0x5285e4['defineComponents'](_0x5285e4);}}class ta extends _0xcc6c4c{constructor(_0x2fb798){super(_0x2fb798);const t=_0x2fb798['t'],_0x1299ff=this['bindTemplate'],_0x54f660=new _0x3c26c9();_0x54f660['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':[_0x54f660,{'text':_0x1299ff['to']('imageUploadProgress',_0x503ae7=>t('Loading\x20image...')+'\x20('+(_0x503ae7||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 _0xcc6c4c{constructor(_0xa91cf5){super(_0xa91cf5);const t=_0xa91cf5['t'];this['set']('errorType',null);const _0x4d0542=new _0x2a083b(_0xa91cf5);_0x4d0542['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x4d0542['withText']=!0x0,_0x4d0542['class']='ck-button-action',_0x4d0542['on']('execute',()=>{this['fire']('retry');}),_0x4d0542['bind']('isVisible')['to'](this,'errorType',_0x52d932=>'NotFound'!==_0x52d932);const _0x9b1104=new at();_0x9b1104['content']=et,_0x9b1104['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x1cec6e=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':[_0x9b1104,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x1cec6e['to']('errorType',_0x380e59=>t('NotFound'!==_0x380e59?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x4d0542]},{'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 _0xcc6c4c{constructor(_0x486ca3,_0x2c06b9){super(_0x486ca3);const _0x53b939=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x2c06b9,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x53b939['to']('imageSrc')}});}}class Z extends q{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x3558dc,_0x46856b,_0x582cdd){super(_0x3558dc),this['_items']=this['createCollection'](),this['_loadingView']=new ta(_0x3558dc),this['_errorView']=new rt(_0x3558dc),this['_editingView']=new tt(_0x3558dc,_0x582cdd),this['_focusableView']=new _0xcc6c4c(_0x3558dc),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x46856b),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'],_0x47e1da=>{this['_addUploadcareImageEditorListeners'](_0x47e1da);});}),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'](_0x3330a9,_0x44fa50){const _0x2bd72a='uc-cloud-image-editor',_0xd0ed7e=_0x3330a9['querySelector'](_0x2bd72a);if(_0xd0ed7e)return _0x44fa50(_0xd0ed7e);const _0x10ecf8=new MutationObserver(_0x1cb714=>{const _0x43da15=_0x1cb714['filter'](_0x33fb3f=>_0x33fb3f['target']===_0x3330a9&&_0x33fb3f['addedNodes']['length']>0x0&&_0x33fb3f['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x2bd72a);_0x43da15['length']&&(_0x10ecf8['disconnect'](),_0x44fa50(_0x43da15[0x0]['addedNodes'][0x0]));});_0x10ecf8['observe'](_0x3330a9,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x5901bf){_0x5901bf['addEventListener']('apply',_0x3d84c3=>{this['fire']('apply',{'imageSrc':_0x3d84c3['detail']['cdnUrl']});}),_0x5901bf['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class z extends/* #__PURE__ -- @preserve */
25
+ _0x3dbf28(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x2ae91e,_0x537459,_0x5c5afe){super(),this['_editor']=_0x2ae91e,this['_dialog']=_0x537459,this['_imageElement']=_0x5c5afe,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 _0x5d8c1b=this['_imageElement'],_0x329a2d=_0x5d8c1b['getAttribute']('uploadcareImageId'),_0x1f9fa7=_0x5d8c1b['getAttribute']('src');if(_0x329a2d)await this['_loadImageInfo'](_0x329a2d,_0x1f9fa7);else{if(this['_imageCache']['has'](_0x1f9fa7)){const _0x5330fc=this['_imageCache']['get'](_0x1f9fa7);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x5330fc['url'],this['imageDimension']=_0x5330fc['dimension'],this['imageId']=_0x5330fc['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x251100}=this['_editor'],t=_0x251100['t'],_0x5cb086=new Z(_0x251100,this['imageStatus'],this['_attributes']);_0x5cb086['bind']('status')['to'](this,'imageStatus'),_0x5cb086['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x5cb086['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x5cb086['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x5cb086,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x51a8a0,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x5cb086,'position':_0x853985['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x5cb086['focus']();},'onHide':()=>{_0x5cb086['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x35e6bf=>!F(_0x35e6bf,_0x5cb086['element'])}});}['_loadImageInfo'](_0x12fe8c,_0x14fcab){return C['getInfo'](_0x12fe8c,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey')})['then'](_0x5fd591=>{const {width:_0x90438d,height:_0xfed5ae}=_0x5fd591['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x14fcab,this['imageDimension']={'width':_0x90438d,'height':_0xfed5ae},this['imageId']=_0x12fe8c;})['catch'](_0xfdef05=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0xfdef05['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x1fda1e,_0x43eb45){return this['_getImageAsFile'](_0x1fda1e)['then'](_0x1fbe5b=>C['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'signal':_0x43eb45['signal'],'file':_0x1fbe5b,'onProgress':_0x1412ab=>{_0x1412ab&&_0x1412ab['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x1412ab['value']));}}))['then'](_0x5a2c2f=>{const {width:_0x34dbc2,height:_0x39b5fc}=_0x5a2c2f['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x5a2c2f['cdnUrl'],this['imageDimension']={'width':_0x34dbc2,'height':_0x39b5fc},this['imageId']=_0x5a2c2f['uuid'],this['imageUploadProgress']=null;const _0x2bc2a3=_0x1fda1e['getAttribute']('src');this['_imageCache']['set'](_0x2bc2a3,{'id':_0x5a2c2f['uuid'],'url':_0x5a2c2f['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x4d10f3=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x4d10f3['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x5b8bd7,_0x3ea0b2){_0x5b8bd7['on']('apply',(_0x2ac4e3,_0x304c62)=>{this['_replaceImage'](_0x3ea0b2,_0x304c62['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x5b8bd7['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x5b8bd7['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x2016b9,_0x45c2a6,_0x31ebde){const _0x7579d4=this['_editor'],{width:_0x206fff,height:_0x41d136}=A(_0x45c2a6,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x57992a,imageSources:_0x52e035}=E(_0x45c2a6,_0x206fff);_0x7579d4['model']['change'](_0x4aa9c5=>{if('$graveyard'===_0x2016b9['root']['rootName']){_0x7579d4['execute']('insertImage',{'imageType':_0x2016b9['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x2016b9['getAttributes']()),'uploadcareImageId':_0x31ebde,'src':_0x57992a,'sources':_0x52e035,'width':_0x206fff,'height':_0x41d136}});const _0x2809c2=_0x2016b9['getChildren']();_0x2016b9=_0x7579d4['model']['document']['selection']['getSelectedElement']();for(const _0x4d04fa of _0x2809c2)_0x4aa9c5['append'](_0x4aa9c5['cloneElement'](_0x4d04fa),_0x2016b9);}else _0x4aa9c5['setSelection'](_0x2016b9,'on'),_0x7579d4['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x2016b9['getAttributes']()),'uploadcareImageId':_0x31ebde,'src':_0x57992a,'sources':_0x52e035,'width':_0x206fff,'height':_0x41d136},_0x2016b9);_0x4aa9c5['setSelection'](_0x2016b9,'on');});}async['_getImageAsFile'](_0x2f63a5){const _0x539af4=_0x45d370['window'],_0x4f1121=_0x45d370['document']['location']['href'],_0x4f6fb8=new _0x539af4['URL'](_0x2f63a5['getAttribute']('src'),_0x4f1121);if('data:'===_0x4f6fb8['protocol']){const _0x5b0904=_0x4f6fb8['href']['split'](','),_0x8609ac=_0x5b0904[0x0]['match'](/:(.*?);/)[0x1],_0x343406=_0x8609ac['split']('/')[0x1],_0xf14d5d=_0x539af4['atob'](_0x5b0904[_0x5b0904['length']-0x1]);let _0x1f50c1=_0xf14d5d['length'];const _0x4624a9=new _0x539af4['Uint8Array'](_0x1f50c1);for(;_0x1f50c1--;)_0x4624a9[_0x1f50c1]=_0xf14d5d['charCodeAt'](_0x1f50c1);return new _0x539af4['File']([_0x4624a9],'image.'+_0x343406,{'type':_0x8609ac});}const _0x4cf81=_0x4f6fb8['href']['split']('/'),_0x59c67c=_0x4cf81[_0x4cf81['length']-0x1],_0x2f45f9=_0x59c67c['split']('.')[0x1];return _0x539af4['fetch'](_0x4f6fb8['href'])['then'](_0x400e09=>_0x400e09['clone']()['blob']())['then'](_0x50d3c7=>new _0x539af4['File']([_0x50d3c7],_0x59c67c,{'type':'image/'+_0x2f45f9}));}}class J extends _0x2f1928{['imageEditController'];static get['requires'](){return[_0x1be972];}['_isEditable'];constructor(_0x3bd836){super(_0x3bd836),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x2aa3fb){const _0x5e6f87=V(_0x2aa3fb);return _0x35117f=>!(!_0x35117f||!_0x35117f['is']('element','imageBlock')&&!_0x35117f['is']('element','imageInline'))&&(!!_0x35117f['hasAttribute']('uploadcareImageId')||!!_0x35117f['hasAttribute']('src')&&_0x5e6f87(_0x35117f['getAttribute']('src')));}(_0x3bd836['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x6c239f=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x6c239f);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x2757e8=this['editor']['model']['document']['selection']['getSelectedElement']();_0x2757e8&&(_0x2757e8['is']('element','imageBlock')||_0x2757e8['is']('element','imageInline'))&&(this['imageEditController']=new z(this['editor'],this['editor']['plugins']['get'](_0x1be972),_0x2757e8),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class O extends _0x2f1928{['refresh'](){const _0x1ee017=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x1ee017&&(_0x1ee017['is']('element','imageBlock')||_0x1ee017['is']('element','imageInline')));}['execute'](_0x157e75){const _0x5e9acd=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x41cfd8=>{_0x41cfd8['setAttributes'](_0x157e75,_0x5e9acd),_0x41cfd8['removeAttribute']('srcset',_0x5e9acd),_0x41cfd8['removeAttribute']('sizes',_0x5e9acd);});}}class g extends _0x1057e3{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[i,_0x438e89,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x250898}=this;_0x250898['commands']['add']('uploadcareImageEdit',new J(_0x250898)),_0x250898['commands']['add']('uploadcareImageReplace',new O(_0x250898));}}class j extends _0x1057e3{['_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 _0x22779a=this['editor'];_0x22779a['ui']['componentFactory']['add']('uploadcareImageEdit',_0x13af8d=>{const _0x1c6da9=_0x22779a['commands']['get']('uploadcareImageEdit'),_0x1eefbc=new _0x2a083b(_0x13af8d),t=_0x13af8d['t'];return _0x1eefbc['set']({'icon':_0x51a8a0,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x1eefbc['bind']('isEnabled')['to'](_0x1c6da9),_0x1eefbc['bind']('isOn')['to'](_0x1c6da9,'isActive'),this['listenTo'](_0x1eefbc,'execute',()=>{_0x22779a['execute']('uploadcareImageEdit'),_0x22779a['editing']['view']['focus']();}),_0x1eefbc;}),this['_initConfig']();}['_initConfig'](){const _0x1472ed=_0x2b2096(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x1472ed),this['listenTo'](this['editor'],'destroy',()=>{_0x1472ed['remove']();});}}class P extends _0x1057e3{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-20250314.0",
3
+ "version": "0.0.0-nightly-20250315.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-20250314.0",
27
- "@ckeditor/ckeditor5-icons": "0.0.0-nightly-20250314.0",
28
- "@ckeditor/ckeditor5-image": "0.0.0-nightly-20250314.0",
29
- "@ckeditor/ckeditor5-theme-lark": "0.0.0-nightly-20250314.0",
30
- "@ckeditor/ckeditor5-ui": "0.0.0-nightly-20250314.0",
31
- "@ckeditor/ckeditor5-upload": "0.0.0-nightly-20250314.0",
32
- "@ckeditor/ckeditor5-utils": "0.0.0-nightly-20250314.0",
33
- "ckeditor5": "0.0.0-nightly-20250314.0",
26
+ "@ckeditor/ckeditor5-core": "0.0.0-nightly-20250315.0",
27
+ "@ckeditor/ckeditor5-icons": "0.0.0-nightly-20250315.0",
28
+ "@ckeditor/ckeditor5-image": "0.0.0-nightly-20250315.0",
29
+ "@ckeditor/ckeditor5-theme-lark": "0.0.0-nightly-20250315.0",
30
+ "@ckeditor/ckeditor5-ui": "0.0.0-nightly-20250315.0",
31
+ "@ckeditor/ckeditor5-upload": "0.0.0-nightly-20250315.0",
32
+ "@ckeditor/ckeditor5-utils": "0.0.0-nightly-20250315.0",
33
+ "ckeditor5": "0.0.0-nightly-20250315.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 _0x26068d=_0x3ac4;function _0x3ac4(_0x441c1b,_0x413214){const _0x13a30f=_0x13a3();return _0x3ac4=function(_0x3ac422,_0x563a73){_0x3ac422=_0x3ac422-0x15e;let _0x4d6f19=_0x13a30f[_0x3ac422];return _0x4d6f19;},_0x3ac4(_0x441c1b,_0x413214);}(function(_0x76bca1,_0x93717){const _0x549888=_0x3ac4,_0x536196=_0x76bca1();while(!![]){try{const _0x5548b9=parseInt(_0x549888(0x1ac))/0x1+-parseInt(_0x549888(0x197))/0x2*(parseInt(_0x549888(0x180))/0x3)+-parseInt(_0x549888(0x161))/0x4*(-parseInt(_0x549888(0x1ae))/0x5)+parseInt(_0x549888(0x187))/0x6*(parseInt(_0x549888(0x186))/0x7)+parseInt(_0x549888(0x17f))/0x8+parseInt(_0x549888(0x175))/0x9*(parseInt(_0x549888(0x17e))/0xa)+-parseInt(_0x549888(0x19b))/0xb;if(_0x5548b9===_0x93717)break;else _0x536196['push'](_0x536196['shift']());}catch(_0x5d65f0){_0x536196['push'](_0x536196['shift']());}}}(_0x13a3,0x31cfa));import{Plugin as _0x59953b}from'ckeditor5/src/core.js';import{Dialog as _0x39049b}from'ckeditor5/src/ui.js';import{createElement as _0x1747ee,global as _0x48e58c,uid as _0x24a2fd}from'ckeditor5/src/utils.js';import _0x1fccaa from'./uploadcarecommand.js';import _0x337182 from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0x4683c2}from'./utils/editingutils.js';export default class i extends _0x59953b{[_0x26068d(0x194)]=null;[_0x26068d(0x164)]=null;static get[_0x26068d(0x168)](){const _0x3f0008=_0x26068d;return _0x3f0008(0x1a3);}static get[_0x26068d(0x17c)](){const _0x25fa15=_0x26068d;return[_0x25fa15(0x178),_0x337182,_0x39049b];}static get[_0x26068d(0x166)](){return!0x0;}static get[_0x26068d(0x167)](){return!0x0;}get[_0x26068d(0x17b)](){const _0x472815=_0x26068d;return this[_0x472815(0x194)];}get[_0x26068d(0x1a9)](){const _0x222729=_0x26068d;return this[_0x222729(0x164)];}[_0x26068d(0x1a5)](){const _0x392506=_0x26068d,_0x10b815=this[_0x392506(0x163)];_0x10b815[_0x392506(0x1af)][_0x392506(0x17d)](_0x392506(0x198),new _0x1fccaa(_0x10b815));}[_0x26068d(0x15f)](){const _0x225c6c=_0x26068d;this[_0x225c6c(0x16b)](),this[_0x225c6c(0x16e)](),this[_0x225c6c(0x1a4)](),this[_0x225c6c(0x1a0)](),this[_0x225c6c(0x1b2)](),this[_0x225c6c(0x173)](this[_0x225c6c(0x163)],_0x225c6c(0x18d),()=>{const _0x4b935f=_0x225c6c;this[_0x4b935f(0x194)]&&(this[_0x4b935f(0x194)][_0x4b935f(0x19e)](),this[_0x4b935f(0x194)]=null),this[_0x4b935f(0x164)]&&(this[_0x4b935f(0x164)][_0x4b935f(0x19e)](),this[_0x4b935f(0x164)]=null);const _0x3ab666=_0x48e58c[_0x4b935f(0x177)][_0x4b935f(0x17a)](_0x4b935f(0x18e));_0x3ab666&&_0x3ab666[_0x4b935f(0x19e)]();}),async function(_0x97f96a){const _0x17314f=_0x5a1c63([0x33,0x6f,0x4c,0x54,0x5a,0x72,0x70,0x71,0x37,0x32,0x76,0x34,0x6d,0x36,0x48,0x56,0x67,0x39,0x45,0x30,0x79,0x46,0x66,0x6e,0x68,0x35,0x58,0x51,0x62,0x38,0x63,0x65,0x4b,0x6c,0x75,0x6a,0x50,0x53,0x47,0x4f,0x61,0x69,0x49,0x42,0x74,0x64,0x31,0x78,0x4e,0x43,0x55,0x73,0x44,0x59,0x6b,0x7a,0x52,0x4a,0x57,0x41,0x77,0x4d]),_0x53eb8d=0x2ed59e89,_0x1a0931=0x2ed2fc91^_0x53eb8d,_0x5e2b1b=window[_0x5a1c63([0x44,0x61,0x74,0x65])][_0x5a1c63([0x6e,0x6f,0x77])](),_0x2153b2=_0x97f96a[_0x5a1c63([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x81e5e5=new window[(_0x5a1c63([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4749c1=>{_0x2153b2[_0x5a1c63([0x6f,0x6e,0x63,0x65])](_0x5a1c63([0x72,0x65,0x61,0x64,0x79]),_0x4749c1);}),_0x4b5337={[_0x5a1c63([0x6b,0x74,0x79])]:_0x5a1c63([0x45,0x43]),[_0x5a1c63([0x75,0x73,0x65])]:_0x5a1c63([0x73,0x69,0x67]),[_0x5a1c63([0x63,0x72,0x76])]:_0x5a1c63([0x50,0x2d,0x32,0x35,0x36]),[_0x5a1c63([0x78])]:_0x5a1c63([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]),[_0x5a1c63([0x79])]:_0x5a1c63([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]),[_0x5a1c63([0x61,0x6c,0x67])]:_0x5a1c63([0x45,0x53,0x32,0x35,0x36])},_0xf6d178=_0x2153b2[_0x5a1c63([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x5a1c63([0x67,0x65,0x74])](_0x5a1c63([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x14c03f(){let _0x15a0a5,_0x3ce9a8=null,_0x3ce5a7=null;try{if(_0xf6d178==_0x5a1c63([0x47,0x50,0x4c]))return _0x5a1c63([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x15a0a5=_0x150690(),!_0x15a0a5)return _0x5a1c63([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x15a0a5[_0x5a1c63([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x3ce5a7=_0x559e52(_0x15a0a5[_0x5a1c63([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x15a0a5[_0x5a1c63([0x6a,0x74,0x69])])),await _0x587456()?_0x1a9be5()?_0xf3df58()?_0x5a1c63([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x1c6d94()?(_0x15a0a5[_0x5a1c63([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x5a1c63([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x3ce9a8=_0x1e78ba(_0x5a1c63([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x15a0a5[_0x5a1c63([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x5a1c63([0x74,0x72,0x69,0x61,0x6c])&&(_0x3ce9a8=_0x1e78ba(_0x5a1c63([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x4b3e1c()):_0x5a1c63([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x5a1c63([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x5a1c63([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x54f9c8){return _0x5a1c63([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0xf3df58(){const _0x501c6e=[_0x5a1c63([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x5a1c63([0x74,0x72,0x69,0x61,0x6c])][_0x5a1c63([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x15a0a5[_0x5a1c63([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x5e2b1b/0x3e8:0xe10*_0x1a0931;return _0x15a0a5[_0x5a1c63([0x65,0x78,0x70])]<_0x501c6e;}function _0x1a9be5(){const _0x3482f5=_0x15a0a5[_0x5a1c63([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x3482f5&&(!!_0x3482f5[_0x5a1c63([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5a1c63([0x2a]))||!!_0x3482f5[_0x5a1c63([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5a1c63([0x55,0x50,0x4c,0x43])));}function _0x1c6d94(){const _0xba4149=_0x3ac4,_0x2e7a7a=_0x15a0a5[_0x5a1c63([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x2e7a7a||0x0==_0x2e7a7a[_0x5a1c63([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x1db734}=new URL(window[_0x5a1c63([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0xba4149(0x174)]);if(_0x2e7a7a[_0x5a1c63([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1db734))return!0x0;const _0x5e97b9=_0x1db734[_0x5a1c63([0x73,0x70,0x6c,0x69,0x74])](_0x5a1c63([0x2e]));return _0x2e7a7a[_0x5a1c63([0x66,0x69,0x6c,0x74,0x65,0x72])](_0xb75866=>_0xb75866[_0x5a1c63([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5a1c63([0x2a])))[_0x5a1c63([0x6d,0x61,0x70])](_0x3996bb=>_0x3996bb[_0x5a1c63([0x73,0x70,0x6c,0x69,0x74])](_0x5a1c63([0x2e])))[_0x5a1c63([0x73,0x6f,0x6d,0x65])](_0x1c2512=>_0x5e97b9[_0x5a1c63([0x65,0x76,0x65,0x72,0x79])]((_0x405374,_0x12499c)=>_0x1c2512[_0x12499c]===_0x405374||_0x1c2512[_0x12499c]===_0x5a1c63([0x2a])));}function _0x4b3e1c(){return _0x3ce9a8&&_0x3ce5a7?new window[(_0x5a1c63([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x322cdf,_0x103030)=>{_0x3ce9a8[_0x5a1c63([0x74,0x68,0x65,0x6e])](_0x322cdf,_0x103030),_0x3ce5a7[_0x5a1c63([0x74,0x68,0x65,0x6e])](_0x36871e=>{_0x36871e!=_0x5a1c63([0x56,0x61,0x6c,0x69,0x64])&&_0x322cdf(_0x36871e);},_0x103030);}):_0x3ce9a8||_0x3ce5a7||_0x5a1c63([0x56,0x61,0x6c,0x69,0x64]);}}function _0x559e52(_0x2af5ca,_0x59b041){return new window[(_0x5a1c63([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x58d659=>{if(_0xbc5282())return _0x58d659(_0x5a1c63([0x56,0x61,0x6c,0x69,0x64]));_0xd0afe8(),_0x2153b2[_0x5a1c63([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x5a1c63([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x1f8703=!0x1;const _0x384d23=_0x24a2fd();function _0x13c5f2(_0xd2a31d){return!!_0xd2a31d&&(typeof _0xd2a31d===_0x5a1c63([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0xd2a31d===_0x5a1c63([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0xd2a31d[_0x5a1c63([0x74,0x68,0x65,0x6e])]===_0x5a1c63([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0xd2a31d[_0x5a1c63([0x63,0x61,0x74,0x63,0x68])]===_0x5a1c63([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x4a2d15(_0x3be15a){_0x56ec66(_0x3be15a)[_0x5a1c63([0x74,0x68,0x65,0x6e])](_0x1cce50=>{if(!_0x1cce50||_0x1cce50[_0x5a1c63([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x5a1c63([0x6f,0x6b]))return _0x5a1c63([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x194df5(_0x5c7409(_0x384d23+_0x59b041))!=_0x1cce50[_0x5a1c63([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x5a1c63([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x5a1c63([0x56,0x61,0x6c,0x69,0x64]);})[_0x5a1c63([0x74,0x68,0x65,0x6e])](_0x4115f3=>(_0x57e5c0(),_0x4115f3),()=>{const _0xb6b033=_0x23f62d();return null==_0xb6b033?(_0x57e5c0(),_0x5a1c63([0x56,0x61,0x6c,0x69,0x64])):_0x5a1c63(_0x5e2b1b-_0xb6b033>(0xad91a89^_0x53eb8d)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x5a1c63([0x74,0x68,0x65,0x6e])](_0x58d659)[_0x5a1c63([0x63,0x61,0x74,0x63,0x68])](()=>{_0x58d659(_0x5a1c63([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x44695b=0x2ee37009^_0x53eb8d;function _0x57e5c0(){const _0x374fa5=_0x5a1c63([0x6c,0x6c,0x63,0x74,0x2d])+_0x194df5(_0x5c7409(_0x2af5ca)),_0x197b60=_0x5e0974(_0x194df5(window[_0x5a1c63([0x4d,0x61,0x74,0x68])][_0x5a1c63([0x63,0x65,0x69,0x6c])](_0x5e2b1b/_0x44695b)));window[_0x5a1c63([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x5a1c63([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x374fa5,_0x197b60);}function _0x23f62d(){const _0x5989a8=_0x5a1c63([0x6c,0x6c,0x63,0x74,0x2d])+_0x194df5(_0x5c7409(_0x2af5ca)),_0x1efe0f=window[_0x5a1c63([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x5a1c63([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x5989a8);return _0x1efe0f?window[_0x5a1c63([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5e0974(_0x1efe0f),0x10)*_0x44695b:null;}function _0x56ec66(_0x3aa101){return new window[(_0x5a1c63([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x2dc44e,_0x502368)=>{_0x3aa101[_0x5a1c63([0x74,0x68,0x65,0x6e])](_0x2dc44e,_0x502368),window[_0x5a1c63([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x502368,0x2ed44a49^_0x53eb8d);});}}_0x2153b2[_0x5a1c63([0x6f,0x6e])](_0x5a1c63([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0xf898c7,_0x3acfa5)=>{if(_0x3acfa5[0x0]!=_0x2af5ca)return _0x58d659(_0x5a1c63([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x3acfa5[0x1]={..._0x3acfa5[0x1],[_0x5a1c63([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x384d23};},{[_0x5a1c63([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x5a1c63([0x68,0x69,0x67,0x68])}),_0x2153b2[_0x5a1c63([0x6f,0x6e])](_0x5a1c63([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x307b90=>{_0x13c5f2(_0x307b90[_0x5a1c63([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x1f8703=!0x0,_0x4a2d15(_0x307b90[_0x5a1c63([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x5a1c63([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x5a1c63([0x6c,0x6f,0x77])}),_0x81e5e5[_0x5a1c63([0x74,0x68,0x65,0x6e])](()=>{_0x1f8703||_0x58d659(_0x5a1c63([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0xbc5282(){return _0x2153b2[_0x5a1c63([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5a1c63([0x76,0x69,0x65,0x77])][_0x5a1c63([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x5a1c63([0x61,0x75,0x74,0x6f]);}function _0xd0afe8(){_0x2153b2[_0x5a1c63([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5a1c63([0x76,0x69,0x65,0x77])][_0x5a1c63([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x5a1c63([0x61,0x75,0x74,0x6f]);}}function _0x1e78ba(_0x398c23){const _0x2081a5=[new window[(_0x5a1c63([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x36233d=>setTimeout(_0x36233d,0x2edca045^_0x53eb8d)),_0x81e5e5[_0x5a1c63([0x74,0x68,0x65,0x6e])](()=>new window[(_0x5a1c63([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xe83195=>{let _0x2b5a43=0x0;_0x2153b2[_0x5a1c63([0x6d,0x6f,0x64,0x65,0x6c])][_0x5a1c63([0x6f,0x6e])](_0x5a1c63([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x15b82d,_0x2363d8)=>{_0x2363d8[0x0][_0x5a1c63([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x2b5a43++,_0x2b5a43==(0x2ed59f71^_0x53eb8d)&&(_0xe83195(),_0x15b82d[_0x5a1c63([0x6f,0x66,0x66])]());});}))];return window[_0x5a1c63([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x5a1c63([0x72,0x61,0x63,0x65])](_0x2081a5)[_0x5a1c63([0x74,0x68,0x65,0x6e])](()=>_0x398c23);}async function _0x36a01d(){await _0x81e5e5,_0x2153b2[_0x5a1c63([0x6d,0x6f,0x64,0x65,0x6c])][_0x5a1c63([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x52e362,_0x2153b2[_0x5a1c63([0x6d,0x6f,0x64,0x65,0x6c])][_0x5a1c63([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x52e362,_0x2153b2[_0x5a1c63([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x5a1c63([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x2cc879(_0x41a096){const _0x75e6c6=_0x21ab4e();_0x2153b2[_0x75e6c6]=_0x5a1c63([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x41a096,_0x41a096!=_0x5a1c63([0x56,0x61,0x6c,0x69,0x64])&&_0x36a01d();}function _0x21ab4e(){const _0x2d7a1d=window[_0x5a1c63([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x5a1c63([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x5a1c63([0x6e,0x6f,0x77])]())[_0x5a1c63([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x5a1c63([0x2e]),'');let _0x296764=_0x5a1c63([0x6f]);for(let _0x380e1a=0x0;_0x380e1a<_0x2d7a1d[_0x5a1c63([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x380e1a+=0x2){let _0x2089f8=window[_0x5a1c63([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2d7a1d[_0x5a1c63([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x380e1a,_0x380e1a+0x2));_0x2089f8>=_0x17314f[_0x5a1c63([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x2089f8-=_0x17314f[_0x5a1c63([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x296764+=_0x17314f[_0x2089f8];}return _0x296764;}function _0x150690(){const _0x2c91a3=_0xf6d178[_0x5a1c63([0x73,0x70,0x6c,0x69,0x74])](_0x5a1c63([0x2e]));if(0x3!=_0x2c91a3[_0x5a1c63([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x2b7547(_0x2c91a3[0x1]);function _0x2b7547(_0x211136){const _0x96f152=_0x32f362(_0x211136);return _0x96f152&&_0x52600b()?_0x96f152:null;function _0x52600b(){const _0x587e5f=_0x96f152[_0x5a1c63([0x6a,0x74,0x69])],_0x773c68=window[_0x5a1c63([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x587e5f[_0x5a1c63([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x587e5f[_0x5a1c63([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x358188={..._0x96f152,[_0x5a1c63([0x6a,0x74,0x69])]:_0x587e5f[_0x5a1c63([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x587e5f[_0x5a1c63([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x358188[_0x5a1c63([0x76,0x63])],_0x5c7409(_0x358188)==_0x773c68;}}}async function _0x587456(){let _0x153c8c=!0x0;try{const _0x291bc1=_0xf6d178[_0x5a1c63([0x73,0x70,0x6c,0x69,0x74])](_0x5a1c63([0x2e])),[_0x3a37df,_0x527634,_0x546df5]=_0x291bc1;return _0x3f7c66(_0x3a37df),await _0x2d361d(_0x3a37df,_0x527634,_0x546df5),_0x153c8c;}catch(_0x3e33e7){return!0x1;}function _0x3f7c66(_0x9c92f0){const _0x18c86a=_0x32f362(_0x9c92f0);_0x18c86a&&_0x18c86a[_0x5a1c63([0x61,0x6c,0x67])]==_0x5a1c63([0x45,0x53,0x32,0x35,0x36])||(_0x153c8c=!0x1);}async function _0x2d361d(_0x9fe672,_0x980b5,_0x15bd6a){const _0x209ecd=window[_0x5a1c63([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x5a1c63([0x66,0x72,0x6f,0x6d])](_0x4d63df(_0x15bd6a),_0x3f30bb=>_0x3f30bb[_0x5a1c63([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x41bf5d=new window[(_0x5a1c63([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x5a1c63([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x9fe672+_0x5a1c63([0x2e])+_0x980b5),_0x2b64bd=window[_0x5a1c63([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x5a1c63([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x2b64bd)return;const _0x42fc3c=await _0x2b64bd[_0x5a1c63([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x5a1c63([0x6a,0x77,0x6b]),_0x4b5337,{[_0x5a1c63([0x6e,0x61,0x6d,0x65])]:_0x5a1c63([0x45,0x43,0x44,0x53,0x41]),[_0x5a1c63([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x5a1c63([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x5a1c63([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x2b64bd[_0x5a1c63([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x5a1c63([0x6e,0x61,0x6d,0x65])]:_0x5a1c63([0x45,0x43,0x44,0x53,0x41]),[_0x5a1c63([0x68,0x61,0x73,0x68])]:{[_0x5a1c63([0x6e,0x61,0x6d,0x65])]:_0x5a1c63([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x42fc3c,_0x209ecd,_0x41bf5d)||(_0x153c8c=!0x1);}}function _0x32f362(_0x2d7ed4){return _0x2d7ed4[_0x5a1c63([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x5a1c63([0x65,0x79]))?JSON[_0x5a1c63([0x70,0x61,0x72,0x73,0x65])](_0x4d63df(_0x2d7ed4)):null;}function _0x4d63df(_0x4deca7){return window[_0x5a1c63([0x61,0x74,0x6f,0x62])](_0x4deca7[_0x5a1c63([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x5a1c63([0x2b]))[_0x5a1c63([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x5a1c63([0x2f])));}function _0x5c7409(_0x23609c){let _0x13e5cd=0x1505;function _0x2f33d0(_0x2fa031){for(let _0x7767bc=0x0;_0x7767bc<_0x2fa031[_0x5a1c63([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x7767bc++){const _0x5a89f5=_0x2fa031[_0x5a1c63([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x7767bc);_0x13e5cd=(_0x13e5cd<<0x5)+_0x13e5cd+_0x5a89f5,_0x13e5cd&=_0x13e5cd;}}function _0x53c49c(_0x5bf335){Array[_0x5a1c63([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x5bf335)?_0x5bf335[_0x5a1c63([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x53c49c):_0x5bf335&&typeof _0x5bf335==_0x5a1c63([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x5a1c63([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x5bf335)[_0x5a1c63([0x73,0x6f,0x72,0x74])]()[_0x5a1c63([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0xa1907f,_0x47adcb])=>{_0x2f33d0(_0xa1907f),_0x53c49c(_0x47adcb);}):_0x2f33d0(window[_0x5a1c63([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x5bf335));}return _0x53c49c(_0x23609c),_0x13e5cd>>>0x0;}function _0x194df5(_0x55add2){return _0x55add2[_0x5a1c63([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x5a1c63([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x5a1c63([0x30]));}function _0x5e0974(_0x4fac99){return _0x4fac99[_0x5a1c63([0x73,0x70,0x6c,0x69,0x74])]('')[_0x5a1c63([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x5a1c63([0x6a,0x6f,0x69,0x6e])]('');}function _0x52e362(){}function _0x5a1c63(_0x22480b){const _0x11f39e=_0x3ac4;return _0x22480b[_0x11f39e(0x195)](_0x5c6727=>String[_0x11f39e(0x19f)](_0x5c6727))[_0x11f39e(0x170)]('');}_0x2cc879(await _0x14c03f());}(this);}[_0x26068d(0x16b)](){const _0x71a785=_0x26068d,_0x49d3e9=this[_0x71a785(0x163)][_0x71a785(0x15e)][_0x71a785(0x18a)];_0x49d3e9[_0x71a785(0x1a6)](_0x71a785(0x18f))&&_0x49d3e9[_0x71a785(0x162)](_0x71a785(0x18f),{'allowAttributes':[_0x71a785(0x16c)]}),_0x49d3e9[_0x71a785(0x1a6)](_0x71a785(0x182))&&_0x49d3e9[_0x71a785(0x162)](_0x71a785(0x182),{'allowAttributes':[_0x71a785(0x16c)]});}[_0x26068d(0x16e)](){const _0x4b8e47=_0x26068d,_0x2e962a=this[_0x4b8e47(0x163)];_0x2e962a[_0x4b8e47(0x169)][_0x4b8e47(0x196)](_0x4b8e47(0x176))[_0x4b8e47(0x1ad)]({'model':_0x4b8e47(0x16c),'view':_0x4b8e47(0x1a7)}),_0x2e962a[_0x4b8e47(0x169)][_0x4b8e47(0x196)](_0x4b8e47(0x1a8))[_0x4b8e47(0x179)]({'model':{'key':_0x4b8e47(0x16c),'value':_0x109c6a=>_0x109c6a[_0x4b8e47(0x192)](_0x4b8e47(0x1a7))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x42b685=_0x2e962a[_0x4b8e47(0x1af)][_0x4b8e47(0x199)](_0x4b8e47(0x171));_0x42b685&&this[_0x4b8e47(0x173)](_0x42b685,_0x4b8e47(0x184),(_0x35c337,[_0x581943,_0x3b0db5])=>{const _0x37a7bb=_0x4b8e47;_0x581943[_0x37a7bb(0x165)](_0x37a7bb(0x16c),_0x3b0db5);});}[_0x26068d(0x1a4)](){const _0x5bf89e=_0x26068d,_0x3f4a1a=this[_0x5bf89e(0x163)][_0x5bf89e(0x19d)][_0x5bf89e(0x199)](_0x5bf89e(0x1a2))||{},_0xb39a79=this[_0x5bf89e(0x163)][_0x5bf89e(0x19d)][_0x5bf89e(0x199)](_0x5bf89e(0x188))||'';this[_0x5bf89e(0x194)]=_0x1747ee(_0x48e58c[_0x5bf89e(0x177)],_0x5bf89e(0x19a),{..._0x3f4a1a,'pubkey':_0xb39a79,'ctx-name':_0x5bf89e(0x190),'sourceList':'','imgOnly':_0x5bf89e(0x172),'removeCopyright':_0x5bf89e(0x172),'localeName':this[_0x5bf89e(0x163)][_0x5bf89e(0x16a)][_0x5bf89e(0x18b)],'externalSourcesEmbedCss':_0x5bf89e(0x1b0)}),this[_0x5bf89e(0x194)][_0x5bf89e(0x16d)]=_0x5947c9=>{const _0x1e575e=_0x5bf89e;if(_0x1e575e(0x185)==_0x5947c9)return _0x1e575e(0x193);},_0x48e58c[_0x5bf89e(0x177)][_0x5bf89e(0x18c)][_0x5bf89e(0x19c)](this[_0x5bf89e(0x194)]);}[_0x26068d(0x1a0)](){const _0x3567c1=_0x26068d;this[_0x3567c1(0x164)]=_0x1747ee(_0x48e58c[_0x3567c1(0x177)],_0x3567c1(0x1a1),{'ctx-name':_0x3567c1(0x190)}),_0x48e58c[_0x3567c1(0x177)][_0x3567c1(0x18c)][_0x3567c1(0x19c)](this[_0x3567c1(0x164)]);}[_0x26068d(0x1b2)](){const _0x520bc6=_0x26068d,_0x4c9734=this[_0x520bc6(0x163)][_0x520bc6(0x1af)][_0x520bc6(0x199)](_0x520bc6(0x181));_0x4c9734&&this[_0x520bc6(0x173)](_0x4c9734,_0x520bc6(0x1ab),()=>{const _0x226cf0=_0x520bc6,_0x1b7699=this[_0x226cf0(0x163)][_0x226cf0(0x15e)][_0x226cf0(0x177)][_0x226cf0(0x189)][_0x226cf0(0x1b1)]();_0x1b7699&&_0x1b7699[_0x226cf0(0x192)](_0x226cf0(0x16c))&&this[_0x226cf0(0x163)][_0x226cf0(0x16f)][_0x226cf0(0x160)][_0x226cf0(0x1aa)](_0x226cf0(0x183),()=>{const _0x41afd0=_0x226cf0;_0x4683c2(this[_0x41afd0(0x163)],_0x1b7699);});});const _0xedb5c8=this[_0x520bc6(0x163)][_0x520bc6(0x1af)][_0x520bc6(0x199)](_0x520bc6(0x191));_0xedb5c8&&this[_0x520bc6(0x173)](_0xedb5c8,_0x520bc6(0x1ab),()=>{const _0x3ea521=_0x520bc6,_0x5393bd=this[_0x3ea521(0x163)][_0x3ea521(0x15e)][_0x3ea521(0x177)][_0x3ea521(0x189)][_0x3ea521(0x1b1)]();_0x5393bd&&_0x5393bd[_0x3ea521(0x192)](_0x3ea521(0x16c))&&this[_0x3ea521(0x163)][_0x3ea521(0x16f)][_0x3ea521(0x160)][_0x3ea521(0x1aa)](_0x3ea521(0x183),()=>{const _0x394c06=_0x3ea521;_0x4683c2(this[_0x394c06(0x163)],_0x5393bd);});});}}function _0x13a3(){const _0x2dbb03=['ctxElement','once','execute','41116yqKJkR','attributeToAttribute','1350kTAQtN','commands','\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup\x20{\x20padding:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-menu\x20{\x20gap:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-footer\x20{\x20padding-top:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__separator\x20{\x20margin:\x200;\x20}\x0a\x09\x09\x09','getSelectedElement','_initImageProcessingIndicator','model','afterInit','view','4764kwxiHl','extend','editor','_ctxElement','removeAttribute','isOfficialPlugin','isPremiumPlugin','pluginName','conversion','locale','_initSchema','uploadcareImageId','iconHrefResolver','_initConversion','editing','join','replaceImageSource','true','listenTo','href','5526pfNkYV','downcast','document','PictureEditing','elementToAttribute','querySelector','configElement','requires','add','3360vKfVnn','3079808PnKhCX','30561iXwSAd','insertImage','imageInline','render','cleanupImage','closeMax','77CQWAVU','65832JTvkFe','uploadcare.pubkey','selection','schema','contentLanguage','body','destroy','input[uploadcare-file-input]','imageBlock','uploader','uploadcareImageReplace','getAttribute','#uc-icon-arrow-down','_configElement','map','for','18ucZBiJ','uploadcare','get','uc-config','8568439saXpWl','appendChild','config','remove','fromCharCode','_initCtx','uc-upload-ctx-provider','uploadcare.uploader','UploadcareEditing','_initConfig','init','isRegistered','data-uc-image-id','upcast'];_0x13a3=function(){return _0x2dbb03;};return _0x13a3();}
23
+ const _0xd06d6d=_0x54f5;(function(_0x64e589,_0x2a4a0c){const _0x102ad0=_0x54f5,_0x29649f=_0x64e589();while(!![]){try{const _0x465db0=-parseInt(_0x102ad0(0x21c))/0x1*(parseInt(_0x102ad0(0x222))/0x2)+-parseInt(_0x102ad0(0x235))/0x3*(parseInt(_0x102ad0(0x1ea))/0x4)+parseInt(_0x102ad0(0x1e4))/0x5+parseInt(_0x102ad0(0x212))/0x6*(parseInt(_0x102ad0(0x204))/0x7)+parseInt(_0x102ad0(0x1e5))/0x8*(parseInt(_0x102ad0(0x22c))/0x9)+parseInt(_0x102ad0(0x232))/0xa*(parseInt(_0x102ad0(0x1f4))/0xb)+-parseInt(_0x102ad0(0x200))/0xc;if(_0x465db0===_0x2a4a0c)break;else _0x29649f['push'](_0x29649f['shift']());}catch(_0x5c60f4){_0x29649f['push'](_0x29649f['shift']());}}}(_0x1cef,0x2b925));function _0x1cef(){const _0x5ca3e2=['_initSchema','58448kiOvfz','getAttribute','schema','replaceImageSource','_initConfig','config','elementToAttribute','selection','isPremiumPlugin','get','43714CdgYWx','model','href','map','fromCharCode','uc-upload-ctx-provider','add','commands','extend','body','imageBlock','uploadcareImageId','3697392bFwgFj','once','isRegistered','_ctxElement','14xwRdvb','execute','conversion','view','afterInit','imageInline','downcast','uc-config','cleanupImage','uploadcareImageReplace','editing','configElement','pluginName','remove','465408RyebZK','insertImage','true','document','removeAttribute','iconHrefResolver','for','listenTo','appendChild','\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','3RHXZqG','destroy','ctxElement','input[uploadcare-file-input]','_initConversion','isOfficialPlugin','144562xOGSkR','PictureEditing','attributeToAttribute','getSelectedElement','join','UploadcareEditing','closeMax','requires','init','_initCtx','18ucwgSA','locale','_initImageProcessingIndicator','contentLanguage','uploadcare.pubkey','render','890ruHyUo','editor','#uc-icon-arrow-down','9KiysxO','upcast','data-uc-image-id','_configElement','uploader','238310CpNDVU','763120vRiTKd','uploadcare.uploader','uploadcare','querySelector'];_0x1cef=function(){return _0x5ca3e2;};return _0x1cef();}import{Plugin as _0x4091fb}from'ckeditor5/src/core.js';function _0x54f5(_0x1d765d,_0x324807){const _0x1cef28=_0x1cef();return _0x54f5=function(_0x54f5a9,_0x1ce8b1){_0x54f5a9=_0x54f5a9-0x1e2;let _0x3e1d67=_0x1cef28[_0x54f5a9];return _0x3e1d67;},_0x54f5(_0x1d765d,_0x324807);}import{Dialog as _0x1f51ea}from'ckeditor5/src/ui.js';import{createElement as _0x4faf68,global as _0x454713,uid as _0x47d84a}from'ckeditor5/src/utils.js';import _0xd0cf8b from'./uploadcarecommand.js';import _0x343b52 from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0x19b6f4}from'./utils/editingutils.js';export default class i extends _0x4091fb{[_0xd06d6d(0x1e2)]=null;[_0xd06d6d(0x203)]=null;static get[_0xd06d6d(0x210)](){const _0x3935c4=_0xd06d6d;return _0x3935c4(0x227);}static get[_0xd06d6d(0x229)](){const _0x364030=_0xd06d6d;return[_0x364030(0x223),_0x343b52,_0x1f51ea];}static get[_0xd06d6d(0x221)](){return!0x0;}static get[_0xd06d6d(0x1f2)](){return!0x0;}get[_0xd06d6d(0x20f)](){const _0x3b4473=_0xd06d6d;return this[_0x3b4473(0x1e2)];}get[_0xd06d6d(0x21e)](){const _0x305649=_0xd06d6d;return this[_0x305649(0x203)];}[_0xd06d6d(0x22a)](){const _0x4785b1=_0xd06d6d,_0x382248=this[_0x4785b1(0x233)];_0x382248[_0x4785b1(0x1fb)][_0x4785b1(0x1fa)](_0x4785b1(0x1e7),new _0xd0cf8b(_0x382248));}[_0xd06d6d(0x208)](){const _0x4485bb=_0xd06d6d;this[_0x4485bb(0x1e9)](),this[_0x4485bb(0x220)](),this[_0x4485bb(0x1ee)](),this[_0x4485bb(0x22b)](),this[_0x4485bb(0x22e)](),this[_0x4485bb(0x219)](this[_0x4485bb(0x233)],_0x4485bb(0x21d),()=>{const _0x1a8791=_0x4485bb;this[_0x1a8791(0x1e2)]&&(this[_0x1a8791(0x1e2)][_0x1a8791(0x211)](),this[_0x1a8791(0x1e2)]=null),this[_0x1a8791(0x203)]&&(this[_0x1a8791(0x203)][_0x1a8791(0x211)](),this[_0x1a8791(0x203)]=null);const _0x1ea530=_0x454713[_0x1a8791(0x215)][_0x1a8791(0x1e8)](_0x1a8791(0x21f));_0x1ea530&&_0x1ea530[_0x1a8791(0x211)]();}),async function(_0x4c0627){const _0x4da304=_0x261655([0x6e,0x4e,0x57,0x79,0x6a,0x6d,0x4d,0x4b,0x50,0x68,0x75,0x52,0x42,0x59,0x47,0x5a,0x70,0x64,0x51,0x43,0x6b,0x44,0x71,0x69,0x4a,0x4f,0x65,0x63,0x58,0x6f,0x76,0x35,0x39,0x34,0x73,0x53,0x46,0x31,0x56,0x30,0x32,0x77,0x33,0x37,0x62,0x4c,0x78,0x38,0x41,0x67,0x61,0x7a,0x54,0x74,0x45,0x36,0x6c,0x55,0x49,0x66,0x48,0x72]),_0x180071=0x2b8ef94d,_0x399843=0x2b899b7d^_0x180071,_0xa8df18=window[_0x261655([0x44,0x61,0x74,0x65])][_0x261655([0x6e,0x6f,0x77])](),_0x5a1f51=_0x4c0627[_0x261655([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x2b9ec4=new window[(_0x261655([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x410d3a=>{_0x5a1f51[_0x261655([0x6f,0x6e,0x63,0x65])](_0x261655([0x72,0x65,0x61,0x64,0x79]),_0x410d3a);}),_0x3ca810={[_0x261655([0x6b,0x74,0x79])]:_0x261655([0x45,0x43]),[_0x261655([0x75,0x73,0x65])]:_0x261655([0x73,0x69,0x67]),[_0x261655([0x63,0x72,0x76])]:_0x261655([0x50,0x2d,0x32,0x35,0x36]),[_0x261655([0x78])]:_0x261655([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]),[_0x261655([0x79])]:_0x261655([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]),[_0x261655([0x61,0x6c,0x67])]:_0x261655([0x45,0x53,0x32,0x35,0x36])},_0x203769=_0x5a1f51[_0x261655([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x261655([0x67,0x65,0x74])](_0x261655([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x3147fb(){let _0x47f462,_0x5e9525=null,_0x35e594=null;try{if(_0x203769==_0x261655([0x47,0x50,0x4c]))return _0x261655([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x47f462=_0x2d9ac8(),!_0x47f462)return _0x261655([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x47f462[_0x261655([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x35e594=_0x17e4d0(_0x47f462[_0x261655([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x47f462[_0x261655([0x6a,0x74,0x69])])),await _0x189a68()?_0x5e0fc2()?_0x490f64()?_0x261655([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x2b76c5()?(_0x47f462[_0x261655([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x261655([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x5e9525=_0x467844(_0x261655([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x47f462[_0x261655([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x261655([0x74,0x72,0x69,0x61,0x6c])&&(_0x5e9525=_0x467844(_0x261655([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x18256b()):_0x261655([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x261655([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x261655([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x114ae0){return _0x261655([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x490f64(){const _0x3a2210=[_0x261655([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x261655([0x74,0x72,0x69,0x61,0x6c])][_0x261655([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x47f462[_0x261655([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0xa8df18/0x3e8:0xe10*_0x399843;return _0x47f462[_0x261655([0x65,0x78,0x70])]<_0x3a2210;}function _0x5e0fc2(){const _0x1b0b7a=_0x47f462[_0x261655([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x1b0b7a&&(!!_0x1b0b7a[_0x261655([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x261655([0x2a]))||!!_0x1b0b7a[_0x261655([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x261655([0x55,0x50,0x4c,0x43])));}function _0x2b76c5(){const _0x5c6da6=_0x54f5,_0x498ad6=_0x47f462[_0x261655([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x498ad6||0x0==_0x498ad6[_0x261655([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x34a360}=new URL(window[_0x261655([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x5c6da6(0x1f6)]);if(_0x498ad6[_0x261655([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x34a360))return!0x0;const _0x53cf1f=_0x34a360[_0x261655([0x73,0x70,0x6c,0x69,0x74])](_0x261655([0x2e]));return _0x498ad6[_0x261655([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x435323=>_0x435323[_0x261655([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x261655([0x2a])))[_0x261655([0x6d,0x61,0x70])](_0x30878f=>_0x30878f[_0x261655([0x73,0x70,0x6c,0x69,0x74])](_0x261655([0x2e])))[_0x261655([0x73,0x6f,0x6d,0x65])](_0x258fd5=>_0x53cf1f[_0x261655([0x65,0x76,0x65,0x72,0x79])]((_0x2eac5e,_0x4f21a7)=>_0x258fd5[_0x4f21a7]===_0x2eac5e||_0x258fd5[_0x4f21a7]===_0x261655([0x2a])));}function _0x18256b(){return _0x5e9525&&_0x35e594?new window[(_0x261655([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x19b2e3,_0x23e000)=>{_0x5e9525[_0x261655([0x74,0x68,0x65,0x6e])](_0x19b2e3,_0x23e000),_0x35e594[_0x261655([0x74,0x68,0x65,0x6e])](_0x4782f9=>{_0x4782f9!=_0x261655([0x56,0x61,0x6c,0x69,0x64])&&_0x19b2e3(_0x4782f9);},_0x23e000);}):_0x5e9525||_0x35e594||_0x261655([0x56,0x61,0x6c,0x69,0x64]);}}function _0x17e4d0(_0x431c13,_0x221d6b){return new window[(_0x261655([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2d4fe2=>{if(_0x53371())return _0x2d4fe2(_0x261655([0x56,0x61,0x6c,0x69,0x64]));_0x1cdbf0(),_0x5a1f51[_0x261655([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x261655([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x9cf49b=!0x1;const _0xc890e0=_0x47d84a();function _0x2ceda8(_0x2af53e){return!!_0x2af53e&&(typeof _0x2af53e===_0x261655([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x2af53e===_0x261655([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x2af53e[_0x261655([0x74,0x68,0x65,0x6e])]===_0x261655([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x2af53e[_0x261655([0x63,0x61,0x74,0x63,0x68])]===_0x261655([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0xd16494(_0x350200){_0x37ab3d(_0x350200)[_0x261655([0x74,0x68,0x65,0x6e])](_0x5ed179=>{if(!_0x5ed179||_0x5ed179[_0x261655([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x261655([0x6f,0x6b]))return _0x261655([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x3f7b15(_0x2ddb98(_0xc890e0+_0x221d6b))!=_0x5ed179[_0x261655([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x261655([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x261655([0x56,0x61,0x6c,0x69,0x64]);})[_0x261655([0x74,0x68,0x65,0x6e])](_0x2aadf2=>(_0x54ab65(),_0x2aadf2),()=>{const _0x31882e=_0x17d90e();return null==_0x31882e?(_0x54ab65(),_0x261655([0x56,0x61,0x6c,0x69,0x64])):_0x261655(_0xa8df18-_0x31882e>(0xf827d4d^_0x180071)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x261655([0x74,0x68,0x65,0x6e])](_0x2d4fe2)[_0x261655([0x63,0x61,0x74,0x63,0x68])](()=>{_0x2d4fe2(_0x261655([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x12a3c5=0x2bb817cd^_0x180071;function _0x54ab65(){const _0x4baba3=_0x261655([0x6c,0x6c,0x63,0x74,0x2d])+_0x3f7b15(_0x2ddb98(_0x431c13)),_0x2e1974=_0x5a5e4f(_0x3f7b15(window[_0x261655([0x4d,0x61,0x74,0x68])][_0x261655([0x63,0x65,0x69,0x6c])](_0xa8df18/_0x12a3c5)));window[_0x261655([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x261655([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4baba3,_0x2e1974);}function _0x17d90e(){const _0x3b9bfc=_0x261655([0x6c,0x6c,0x63,0x74,0x2d])+_0x3f7b15(_0x2ddb98(_0x431c13)),_0x2d1f7a=window[_0x261655([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x261655([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3b9bfc);return _0x2d1f7a?window[_0x261655([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5a5e4f(_0x2d1f7a),0x10)*_0x12a3c5:null;}function _0x37ab3d(_0x52df66){return new window[(_0x261655([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x527212,_0x255edc)=>{_0x52df66[_0x261655([0x74,0x68,0x65,0x6e])](_0x527212,_0x255edc),window[_0x261655([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x255edc,0x2b8f2d8d^_0x180071);});}}_0x5a1f51[_0x261655([0x6f,0x6e])](_0x261655([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x298ae2,_0xfbcd8c)=>{if(_0xfbcd8c[0x0]!=_0x431c13)return _0x2d4fe2(_0x261655([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0xfbcd8c[0x1]={..._0xfbcd8c[0x1],[_0x261655([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0xc890e0};},{[_0x261655([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x261655([0x68,0x69,0x67,0x68])}),_0x5a1f51[_0x261655([0x6f,0x6e])](_0x261655([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x36ee06=>{_0x2ceda8(_0x36ee06[_0x261655([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x9cf49b=!0x0,_0xd16494(_0x36ee06[_0x261655([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x261655([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x261655([0x6c,0x6f,0x77])}),_0x2b9ec4[_0x261655([0x74,0x68,0x65,0x6e])](()=>{_0x9cf49b||_0x2d4fe2(_0x261655([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x53371(){return _0x5a1f51[_0x261655([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x261655([0x76,0x69,0x65,0x77])][_0x261655([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x261655([0x61,0x75,0x74,0x6f]);}function _0x1cdbf0(){_0x5a1f51[_0x261655([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x261655([0x76,0x69,0x65,0x77])][_0x261655([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x261655([0x61,0x75,0x74,0x6f]);}}function _0x467844(_0x194b6d){const _0x36f934=[new window[(_0x261655([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x57f5de=>setTimeout(_0x57f5de,0x2b87c781^_0x180071)),_0x2b9ec4[_0x261655([0x74,0x68,0x65,0x6e])](()=>new window[(_0x261655([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4c3c2d=>{let _0x3b78ef=0x0;_0x5a1f51[_0x261655([0x6d,0x6f,0x64,0x65,0x6c])][_0x261655([0x6f,0x6e])](_0x261655([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x4d8055,_0x22c3b4)=>{_0x22c3b4[0x0][_0x261655([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x3b78ef++,_0x3b78ef==(0x2b8ef8b5^_0x180071)&&(_0x4c3c2d(),_0x4d8055[_0x261655([0x6f,0x66,0x66])]());});}))];return window[_0x261655([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x261655([0x72,0x61,0x63,0x65])](_0x36f934)[_0x261655([0x74,0x68,0x65,0x6e])](()=>_0x194b6d);}async function _0x566b46(){await _0x2b9ec4,_0x5a1f51[_0x261655([0x6d,0x6f,0x64,0x65,0x6c])][_0x261655([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x3abf4b,_0x5a1f51[_0x261655([0x6d,0x6f,0x64,0x65,0x6c])][_0x261655([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x3abf4b,_0x5a1f51[_0x261655([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x261655([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x1e3982(_0x2db38b){const _0x1e64ee=_0x2c2dc0();_0x5a1f51[_0x1e64ee]=_0x261655([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x2db38b,_0x2db38b!=_0x261655([0x56,0x61,0x6c,0x69,0x64])&&_0x566b46();}function _0x2c2dc0(){const _0x344543=window[_0x261655([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x261655([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x261655([0x6e,0x6f,0x77])]())[_0x261655([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x261655([0x2e]),'');let _0x54ee06=_0x261655([0x6e]);for(let _0x46ae10=0x0;_0x46ae10<_0x344543[_0x261655([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x46ae10+=0x2){let _0x34caac=window[_0x261655([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x344543[_0x261655([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x46ae10,_0x46ae10+0x2));_0x34caac>=_0x4da304[_0x261655([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x34caac-=_0x4da304[_0x261655([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x54ee06+=_0x4da304[_0x34caac];}return _0x54ee06;}function _0x2d9ac8(){const _0x409e80=_0x203769[_0x261655([0x73,0x70,0x6c,0x69,0x74])](_0x261655([0x2e]));if(0x3!=_0x409e80[_0x261655([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x4d163b(_0x409e80[0x1]);function _0x4d163b(_0x4e404e){const _0x360186=_0x3f8662(_0x4e404e);return _0x360186&&_0x5838f4()?_0x360186:null;function _0x5838f4(){const _0x2be33e=_0x360186[_0x261655([0x6a,0x74,0x69])],_0x4a5daf=window[_0x261655([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2be33e[_0x261655([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2be33e[_0x261655([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x158cbf={..._0x360186,[_0x261655([0x6a,0x74,0x69])]:_0x2be33e[_0x261655([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x2be33e[_0x261655([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x158cbf[_0x261655([0x76,0x63])],_0x2ddb98(_0x158cbf)==_0x4a5daf;}}}async function _0x189a68(){let _0x1a6295=!0x0;try{const _0x11706e=_0x203769[_0x261655([0x73,0x70,0x6c,0x69,0x74])](_0x261655([0x2e])),[_0x35a0d4,_0x3e8f7c,_0x381672]=_0x11706e;return _0x1c0dee(_0x35a0d4),await _0x113140(_0x35a0d4,_0x3e8f7c,_0x381672),_0x1a6295;}catch(_0x1a4db2){return!0x1;}function _0x1c0dee(_0x5da90e){const _0x549de4=_0x3f8662(_0x5da90e);_0x549de4&&_0x549de4[_0x261655([0x61,0x6c,0x67])]==_0x261655([0x45,0x53,0x32,0x35,0x36])||(_0x1a6295=!0x1);}async function _0x113140(_0x5b15ed,_0x128bfc,_0x45b599){const _0x44baed=window[_0x261655([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x261655([0x66,0x72,0x6f,0x6d])](_0x3339f3(_0x45b599),_0x58c454=>_0x58c454[_0x261655([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x25536a=new window[(_0x261655([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x261655([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x5b15ed+_0x261655([0x2e])+_0x128bfc),_0x2d881c=window[_0x261655([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x261655([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x2d881c)return;const _0x434fc8=await _0x2d881c[_0x261655([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x261655([0x6a,0x77,0x6b]),_0x3ca810,{[_0x261655([0x6e,0x61,0x6d,0x65])]:_0x261655([0x45,0x43,0x44,0x53,0x41]),[_0x261655([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x261655([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x261655([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x2d881c[_0x261655([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x261655([0x6e,0x61,0x6d,0x65])]:_0x261655([0x45,0x43,0x44,0x53,0x41]),[_0x261655([0x68,0x61,0x73,0x68])]:{[_0x261655([0x6e,0x61,0x6d,0x65])]:_0x261655([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x434fc8,_0x44baed,_0x25536a)||(_0x1a6295=!0x1);}}function _0x3f8662(_0x13d1a9){return _0x13d1a9[_0x261655([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x261655([0x65,0x79]))?JSON[_0x261655([0x70,0x61,0x72,0x73,0x65])](_0x3339f3(_0x13d1a9)):null;}function _0x3339f3(_0x18f3d6){return window[_0x261655([0x61,0x74,0x6f,0x62])](_0x18f3d6[_0x261655([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x261655([0x2b]))[_0x261655([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x261655([0x2f])));}function _0x2ddb98(_0x2b58e3){let _0x586876=0x1505;function _0x5d10e3(_0x5e8050){for(let _0x4c9d7a=0x0;_0x4c9d7a<_0x5e8050[_0x261655([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4c9d7a++){const _0x17f9bf=_0x5e8050[_0x261655([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x4c9d7a);_0x586876=(_0x586876<<0x5)+_0x586876+_0x17f9bf,_0x586876&=_0x586876;}}function _0x3b88c8(_0x2280df){Array[_0x261655([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x2280df)?_0x2280df[_0x261655([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x3b88c8):_0x2280df&&typeof _0x2280df==_0x261655([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x261655([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x2280df)[_0x261655([0x73,0x6f,0x72,0x74])]()[_0x261655([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x417263,_0x464001])=>{_0x5d10e3(_0x417263),_0x3b88c8(_0x464001);}):_0x5d10e3(window[_0x261655([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x2280df));}return _0x3b88c8(_0x2b58e3),_0x586876>>>0x0;}function _0x3f7b15(_0x1797e5){return _0x1797e5[_0x261655([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x261655([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x261655([0x30]));}function _0x5a5e4f(_0x2874ad){return _0x2874ad[_0x261655([0x73,0x70,0x6c,0x69,0x74])]('')[_0x261655([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x261655([0x6a,0x6f,0x69,0x6e])]('');}function _0x3abf4b(){}function _0x261655(_0x1af18f){const _0x1dc444=_0x54f5;return _0x1af18f[_0x1dc444(0x1f7)](_0x2216f3=>String[_0x1dc444(0x1f8)](_0x2216f3))[_0x1dc444(0x226)]('');}_0x1e3982(await _0x3147fb());}(this);}[_0xd06d6d(0x1e9)](){const _0x925a85=_0xd06d6d,_0x4e67ff=this[_0x925a85(0x233)][_0x925a85(0x1f5)][_0x925a85(0x1ec)];_0x4e67ff[_0x925a85(0x202)](_0x925a85(0x1fe))&&_0x4e67ff[_0x925a85(0x1fc)](_0x925a85(0x1fe),{'allowAttributes':[_0x925a85(0x1ff)]}),_0x4e67ff[_0x925a85(0x202)](_0x925a85(0x209))&&_0x4e67ff[_0x925a85(0x1fc)](_0x925a85(0x209),{'allowAttributes':[_0x925a85(0x1ff)]});}[_0xd06d6d(0x220)](){const _0x4e569c=_0xd06d6d,_0x2e786e=this[_0x4e569c(0x233)];_0x2e786e[_0x4e569c(0x206)][_0x4e569c(0x218)](_0x4e569c(0x20a))[_0x4e569c(0x224)]({'model':_0x4e569c(0x1ff),'view':_0x4e569c(0x237)}),_0x2e786e[_0x4e569c(0x206)][_0x4e569c(0x218)](_0x4e569c(0x236))[_0x4e569c(0x1f0)]({'model':{'key':_0x4e569c(0x1ff),'value':_0x88f58f=>_0x88f58f[_0x4e569c(0x1eb)](_0x4e569c(0x237))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x2f20c2=_0x2e786e[_0x4e569c(0x1fb)][_0x4e569c(0x1f3)](_0x4e569c(0x1ed));_0x2f20c2&&this[_0x4e569c(0x219)](_0x2f20c2,_0x4e569c(0x20c),(_0xfa0ffa,[_0x2bba40,_0x62bd19])=>{const _0x3d49bb=_0x4e569c;_0x2bba40[_0x3d49bb(0x216)](_0x3d49bb(0x1ff),_0x62bd19);});}[_0xd06d6d(0x1ee)](){const _0x5befa2=_0xd06d6d,_0x453375=this[_0x5befa2(0x233)][_0x5befa2(0x1ef)][_0x5befa2(0x1f3)](_0x5befa2(0x1e6))||{},_0x24ae4e=this[_0x5befa2(0x233)][_0x5befa2(0x1ef)][_0x5befa2(0x1f3)](_0x5befa2(0x230))||'';this[_0x5befa2(0x1e2)]=_0x4faf68(_0x454713[_0x5befa2(0x215)],_0x5befa2(0x20b),{..._0x453375,'pubkey':_0x24ae4e,'ctx-name':_0x5befa2(0x1e3),'sourceList':'','imgOnly':_0x5befa2(0x214),'removeCopyright':_0x5befa2(0x214),'localeName':this[_0x5befa2(0x233)][_0x5befa2(0x22d)][_0x5befa2(0x22f)],'externalSourcesEmbedCss':_0x5befa2(0x21b)}),this[_0x5befa2(0x1e2)][_0x5befa2(0x217)]=_0x4b0223=>{const _0x25fcf6=_0x5befa2;if(_0x25fcf6(0x228)==_0x4b0223)return _0x25fcf6(0x234);},_0x454713[_0x5befa2(0x215)][_0x5befa2(0x1fd)][_0x5befa2(0x21a)](this[_0x5befa2(0x1e2)]);}[_0xd06d6d(0x22b)](){const _0x4aa3cb=_0xd06d6d;this[_0x4aa3cb(0x203)]=_0x4faf68(_0x454713[_0x4aa3cb(0x215)],_0x4aa3cb(0x1f9),{'ctx-name':_0x4aa3cb(0x1e3)}),_0x454713[_0x4aa3cb(0x215)][_0x4aa3cb(0x1fd)][_0x4aa3cb(0x21a)](this[_0x4aa3cb(0x203)]);}[_0xd06d6d(0x22e)](){const _0x2c96ea=_0xd06d6d,_0x266fa2=this[_0x2c96ea(0x233)][_0x2c96ea(0x1fb)][_0x2c96ea(0x1f3)](_0x2c96ea(0x213));_0x266fa2&&this[_0x2c96ea(0x219)](_0x266fa2,_0x2c96ea(0x205),()=>{const _0x4f12ff=_0x2c96ea,_0x3f7bce=this[_0x4f12ff(0x233)][_0x4f12ff(0x1f5)][_0x4f12ff(0x215)][_0x4f12ff(0x1f1)][_0x4f12ff(0x225)]();_0x3f7bce&&_0x3f7bce[_0x4f12ff(0x1eb)](_0x4f12ff(0x1ff))&&this[_0x4f12ff(0x233)][_0x4f12ff(0x20e)][_0x4f12ff(0x207)][_0x4f12ff(0x201)](_0x4f12ff(0x231),()=>{const _0x230a77=_0x4f12ff;_0x19b6f4(this[_0x230a77(0x233)],_0x3f7bce);});});const _0x2f3c4d=this[_0x2c96ea(0x233)][_0x2c96ea(0x1fb)][_0x2c96ea(0x1f3)](_0x2c96ea(0x20d));_0x2f3c4d&&this[_0x2c96ea(0x219)](_0x2f3c4d,_0x2c96ea(0x205),()=>{const _0x6ea86d=_0x2c96ea,_0x3fcc81=this[_0x6ea86d(0x233)][_0x6ea86d(0x1f5)][_0x6ea86d(0x215)][_0x6ea86d(0x1f1)][_0x6ea86d(0x225)]();_0x3fcc81&&_0x3fcc81[_0x6ea86d(0x1eb)](_0x6ea86d(0x1ff))&&this[_0x6ea86d(0x233)][_0x6ea86d(0x20e)][_0x6ea86d(0x207)][_0x6ea86d(0x201)](_0x6ea86d(0x231),()=>{const _0x207c4c=_0x6ea86d;_0x19b6f4(this[_0x207c4c(0x233)],_0x3fcc81);});});}}