@ckeditor/ckeditor5-uploadcare 0.0.0-nightly-20250628.0 → 0.0.0-nightly-20250630.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 _0x5c1fd7,Command as _0x1ceaf8}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x1dec5b,IconGooglePhotos as _0x555626,IconGoogleDrive as _0x20ed83,IconFacebook as _0x4921f3,IconDropbox as _0xe3ce6c,IconUploadcareLink as _0xa94e2a,IconUploadcareImageUpload as _0x4dde00,IconError as _0x31f124,IconUploadcareImageEdit as _0x41ee57}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0xe36893,MenuBarMenuListItemButtonView as _0x185e18,View as _0x435f57,FocusCycler as _0x17bf92,Dialog as _0xc45072,DialogViewPosition as _0x2d5004,SpinnerView as _0x4aa4c0,IconView as _0x1af99c,Notification as _0x78b19c}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x2a802e,DomEmitterMixin as _0x45791b,global as _0x1b28e5,getAncestors as _0x1bf414,ObservableMixin as _0x1c0941,uid as _0x285ee3,createElement as _0x5f1045}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x528a6e}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x48a22d,info as _0x57a15d}from'@uploadcare/upload-client';import*as _0x3d9e79 from'@uploadcare/file-uploader';var i=function(_0x307a9f){return _0x307a9f['Local']='local',_0x307a9f['URL']='url',_0x307a9f['Dropbox']='dropbox',_0x307a9f['GDrive']='gdrive',_0x307a9f['Facebook']='facebook',_0x307a9f['GPhotos']='gphotos',_0x307a9f['OneDrive']='onedrive',_0x307a9f;}({});function _(_0x41288d,_0x340d25,_0x32cfea){const t=_0x41288d['t'],_0x2dc83f=_0x41288d['t'];switch(_0x340d25){case i['Local']:return{'text':_0x2dc83f('Insert'===_0x32cfea?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x2dc83f('From\x20computer')};case i['URL']:return{'text':'Insert'===_0x32cfea?_0x2dc83f('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x2dc83f('Via\x20URL')};case i['Dropbox']:return{'text':t('Insert'===_0x32cfea?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case i['Facebook']:return{'text':t('Insert'===_0x32cfea?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case i['GDrive']:return{'text':t('Insert'===_0x32cfea?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case i['GPhotos']:return{'text':t('Insert'===_0x32cfea?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case i['OneDrive']:return{'text':t('Insert'===_0x32cfea?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x340d25;}}class e extends _0x5c1fd7{['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 _0x52224e=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x414b4a;for(const _0x42f73e in _0x52224e){const _0x59faed=_0x42f73e,_0x5d5333=_0x52224e[_0x59faed];if('uploadcareLicenseKeyValid'==_0x5d5333||'uploadcareLicenseKeyInvalid'==_0x5d5333||'uploadcareLicenseKeyExpired'==_0x5d5333||'uploadcareLicenseKeyDomainLimit'==_0x5d5333||'uploadcareLicenseKeyNotAllowed'==_0x5d5333||'uploadcareLicenseKeyEvaluationLimit'==_0x5d5333||'uploadcareLicenseKeyTrialLimit'==_0x5d5333||'uploadcareLicenseKeyUsageLimit'==_0x5d5333){delete _0x52224e[_0x59faed],_0x414b4a=_0x5d5333,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x414b4a&&_0x52224e['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x414b4a&&_0x52224e['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x414b4a&&_0x52224e['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x414b4a&&_0x52224e['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x414b4a&&_0x52224e['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyTrialLimit'==_0x414b4a&&_0x52224e['_showLicenseError']('trialLimit'),'uploadcareLicenseKeyUsageLimit'==_0x414b4a&&_0x52224e['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x1fc312}=this,_0x52d8f9=_0x1fc312['commands']['get']('uploadcare');if(!_0x52d8f9)return;const _0x279060=this['_normalizeConfigSourceList'](_0x1fc312['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x4d7e82,_0x38a18d)=>{const _0x21622f=this['_getIntegrationKey'](_0x38a18d['type']);return _0x4d7e82[_0x21622f]||(_0x4d7e82[_0x21622f]=[]),_0x4d7e82[_0x21622f]['push'](_0x38a18d),_0x4d7e82;},{});_0x1fc312['plugins']['has']('ImageInsertUI')&&_0x1fc312['commands']['get']('uploadcare')&&Object['entries'](_0x279060)['forEach'](([_0x4081d3,_0x179a73])=>{_0x1fc312['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x4081d3,'observable':()=>_0x52d8f9,'buttonViewCreator':()=>this['_createToolbarButton'](_0x179a73),'formViewCreator':()=>this['_createDropdownButtons'](_0x179a73),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x179a73),'override':'assetManager'!==_0x4081d3});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x31350c){const {locale:_0x451130}=this['editor'];return _0x31350c['map'](_0x49a4f1=>{const _0x4ba888=_(_0x451130,_0x49a4f1,'Insert');switch(_0x49a4f1){case i['Local']:return{'icon':_0x4dde00,'type':i['Local'],..._0x4ba888};case i['URL']:return{'icon':_0xa94e2a,'type':i['URL'],..._0x4ba888};case i['Dropbox']:return{'icon':_0xe3ce6c,'type':i['Dropbox'],..._0x4ba888};case i['Facebook']:return{'icon':_0x4921f3,'type':i['Facebook'],..._0x4ba888};case i['GDrive']:return{'icon':_0x20ed83,'type':i['GDrive'],..._0x4ba888};case i['GPhotos']:return{'icon':_0x555626,'type':i['GPhotos'],..._0x4ba888};case i['OneDrive']:return{'icon':_0x1dec5b,'type':i['OneDrive'],..._0x4ba888};}});}['_getIntegrationKey'](_0x1b161b){switch(_0x1b161b){case i['Local']:return'upload';case i['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x1ea842,_0x132fdd){const _0x552581=this['editor'],_0x21758b=new _0x1ea842(_0x552581['locale']),_0xa4197f=_0x552581['commands']['get']('uploadcare');return _0x21758b['bind']('isEnabled')['to'](_0xa4197f),_0x21758b['on']('execute',()=>{_0xa4197f['execute'](_0x132fdd);}),_0x21758b;}['_createToolbarButton'](_0x908611){const {locale:_0x57e1bd}=this['editor'],_0xab0679=this['editor']['plugins']['get']('ImageInsertUI'),_0x210b79=_0x908611[0x0],_0x56f368=this['_createButton'](_0xe36893,_0x210b79['type']);return _0x56f368['icon']=_0x210b79['icon'],_0x56f368['bind']('label')['to'](_0xab0679,'isImageSelected',_0x4c7306=>_(_0x57e1bd,_0x210b79['type'],_0x4c7306?'Replace':'Insert')['text']),_0x56f368['tooltip']=!0x0,_0x56f368;}['_createDropdownButtons'](_0x1de5f4){const {locale:_0x3efe03}=this['editor'],_0x1ced4c=this['editor']['plugins']['get']('ImageInsertUI');return _0x1de5f4['map'](_0x250581=>{const _0x3e5256=this['_createButton'](_0xe36893,_0x250581['type']);return _0x3e5256['withText']=!0x0,_0x3e5256['icon']=_0x250581['icon'],_0x3e5256['bind']('label')['to'](_0x1ced4c,'isImageSelected',_0x38b65d=>_(_0x3efe03,_0x250581['type'],_0x38b65d?'Replace':'Insert')['text']),_0x3e5256;});}['_createMenuBarButtons'](_0x5c54df){return _0x5c54df['map'](_0x9a2bd9=>{const _0x23019e=this['_createButton'](_0x185e18,_0x9a2bd9['type']);return _0x23019e['icon']=_0x9a2bd9['icon'],_0x23019e['label']=_0x9a2bd9['shortText'],_0x23019e;});}}class F extends _0x435f57{['focusTracker'];['focusCycler'];constructor(_0x576229){super(_0x576229),this['focusTracker']=new _0x2a802e(),this['focusCycler']=new _0x17bf92({'focusables':this['createCollection'](),'focusTracker':this['focusTracker']});}['getFocusableElement'](){return{'tag':'div','attributes':{'aria-hidden':'true','tabindex':'0'},'on':{'focus':this['bindTemplate']['to'](()=>{this['focusCycler']['fire']('forwardCycle');})}};}}class x extends F{constructor(_0x467200,_0xc8ceaf){super(_0x467200),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-'+_0xc8ceaf}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}}function k(_0x2a342e,_0x56490d){const _0xc0ad7f=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x42bd16=>_0x42bd16<=_0x56490d)['map'](_0x14ca8c=>_0x2a342e['replace'](/\/$/,'')+'/-/resize/'+_0x14ca8c+'x/\x20'+_0x14ca8c+'w');return{'imageFallbackUrl':_0x2a342e,'imageSources':[{'srcset':_0xc0ad7f['join'](',\x20'),'sizes':'(max-width:\x20'+_0x56490d+'px)\x20100vw,\x20'+_0x56490d+'px','type':'image/webp'}]};}function C(_0x415f67,_0xf3d90f,_0x4250ad){const _0x2de8df=_0x415f67['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x2de8df?parseInt(_0x2de8df[0x1],0xa):_0xf3d90f,'height':_0x2de8df?parseInt(_0x2de8df[0x2],0xa):_0x4250ad};}function p(_0x241d31,_0x4794c5){const _0x2ffa93=new(_0x45791b())(),_0x58c362=_0x241d31['plugins']['get']('ImageUtils'),_0x5e725b=_0x241d31['editing']['mapper']['toViewElement'](_0x4794c5),_0xc3a90c=_0x58c362['findViewImgElement'](_0x5e725b),_0x5a0869=_0x241d31['editing']['view']['domConverter']['viewToDom'](_0xc3a90c),_0x12ba87=_0x4794c5['getAttribute']('width'),_0xc410bc=_0x4794c5['getAttribute']('height'),_0x29dcf1='image-processing';_0x241d31['editing']['view']['change'](_0xefd0a1=>{_0xefd0a1['addClass'](_0x29dcf1,_0x5e725b),_0xefd0a1['setStyle']('aspect-ratio',_0x12ba87+'/'+_0xc410bc,_0xc3a90c);}),_0x2ffa93['listenTo'](_0x5a0869,'load',()=>{_0x2ffa93['stopListening'](_0x5a0869,'load'),_0x241d31['editing']['view']['change'](_0x250e8a=>{_0x250e8a['removeClass'](_0x29dcf1,_0x5e725b),_0x250e8a['removeStyle']('aspect-ratio',_0xc3a90c);});});}function G(_0x2844d7){if(Array['isArray'](_0x2844d7)){const _0x499ce4=_0x2844d7['map'](G);return _0x47d706=>_0x499ce4['some'](_0x32b998=>_0x32b998(_0x47d706));}if('origin'==_0x2844d7){const _0x2b682d=_0x1b28e5['window']['location']['origin'];return _0x3ce0db=>new URL(_0x3ce0db,_0x1b28e5['document']['baseURI'])['origin']==_0x2b682d;}return'function'==typeof _0x2844d7?_0x2844d7:_0x2844d7 instanceof RegExp?_0x5b61a6=>!(!_0x5b61a6['match'](_0x2844d7)&&!_0x5b61a6['replace'](/^https?:\/\//,'')['match'](_0x2844d7)):()=>!0x1;}function S(_0x245f2e,_0x238145){return _0x1bf414(_0x245f2e['target'])['includes'](_0x238145);}class n extends/* #__PURE__ -- @preserve */
24
- _0x1c0941(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x2367e1,_0x2ca59b,_0x4ce2d4){super(),this['_editor']=_0x2367e1,this['_editing']=_0x2ca59b,this['_dialog']=_0x2367e1['plugins']['get'](_0xc45072),this['_api']=_0x2ca59b['ctxElement']['getAPI'](),this['_type']=_0x4ce2d4,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:_0x387f82,model:_0x434f2b}=this['_editor'],_0x5d55ee=_0x434f2b['document']['selection']['getSelectedElement'](),_0x52f257=_0x5d55ee&&(_0x5d55ee['is']('element','imageBlock')||_0x5d55ee['is']('element','imageInline'));this['_formView']=new x(_0x387f82,this['_editing']['ucContextId']),this['_dialog']['show']({'id':'uploadCare','icon':_0x4dde00,'title':_(_0x387f82,this['_type'],_0x52f257?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x2d5004['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x5a0a83=>!S(_0x5a0a83,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x124169}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x363c0c=>{const _0x293a75=_0x124169['length'];for(const _0x27efbc of _0x124169){const _0x1e4219=_0x27efbc===_0x124169[_0x293a75-0x1],{cdnUrl:_0x7e5de7,fileInfo:_0x5555d9}=_0x27efbc;if(!_0x7e5de7||!_0x5555d9)continue;const {width:_0x3288c1,height:_0xc50808}=_0x5555d9['imageInfo'],_0x37198e=C(_0x7e5de7,_0x3288c1,_0xc50808),_0x475b8d=k(_0x7e5de7,_0x37198e['width']),_0x4a594c={'id':_0x5555d9['uuid'],'type':'image','attributes':{'imageDimension':_0x37198e,..._0x475b8d}};this['_insertAsset'](_0x4a594c,_0x1e4219,_0x363c0c);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0xb7584c=>{'idle'===_0xb7584c['detail']['status']&&!_0xb7584c['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===i['Local']?this['_api']['setCurrentActivity'](i['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x17cfde,_0x2d5acf,_0x5e259c){const _0x4bde30=this['_editor']['model']['document']['selection'],_0x27f5c8=_0x4bde30['getSelectedElement'](),_0x4ff082=!(!_0x27f5c8||!_0x27f5c8['is']('element','imageInline'));_0x5e259c['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x17cfde,_0x4ff082),_0x2d5acf||_0x5e259c['setSelection'](_0x4bde30['getLastPosition']());}['_insertImage'](_0x4d62c6,_0x5853ac){const _0x2a820c=this['_editor'],{imageDimension:_0xd01c4a,imageFallbackUrl:_0x2090f1,imageSources:_0x28d5d4}=_0x4d62c6['attributes'];_0x2a820c['execute']('insertImage',{'imageType':_0x5853ac?'imageInline':null,'source':{'uploadcareImageId':_0x4d62c6['id'],'src':_0x2090f1,'sources':_0x28d5d4,..._0xd01c4a}});}}class w extends _0x1ceaf8{['_editing'];['_controller']=null;static get['requires'](){return[_0xc45072,o];}constructor(_0x339feb){super(_0x339feb),this['_editing']=_0x339feb['plugins']['get'](o);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x229c64){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new n(this['editor'],this['_editing'],_0x229c64);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class j{static['upload']({file:_0x4f7131,publicKey:_0x50fe9b,signal:_0x247f59,onProgress:_0x59b47d}){return _0x48a22d(_0x4f7131,{'publicKey':_0x50fe9b,'store':'auto','signal':_0x247f59,'onProgress':_0x59b47d});}static['getInfo'](_0x26e34f,_0x5c4bab){return _0x57a15d(_0x26e34f,_0x5c4bab);}}class f extends _0x5c1fd7{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x528a6e,o];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x1538ba=this['editor'];if(!!!_0x1538ba['config']['get']('uploadcare'))return;_0x1538ba['plugins']['get'](_0x528a6e)['createUploadAdapter']=_0x19404f=>new A(_0x19404f,_0x1538ba),_0x1538ba['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x44133d,{imageElement:_0x216c65,data:_0x499a0e})=>{_0x1538ba['model']['change'](_0xbdf28c=>{_0xbdf28c['setAttribute']('uploadcareImageId',_0x499a0e['uploadcareImageId'],_0x216c65);});});}}class A{['loader'];['editor'];['controller'];constructor(_0x5e2426,_0x235882){this['loader']=_0x5e2426,this['editor']=_0x235882,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x21eb91=this['editor']['config']['get']('uploadcare.pubkey'),_0x1d9c0a=await this['loader']['file'];return j['upload']({'file':_0x1d9c0a,'publicKey':_0x21eb91,'signal':this['controller']['signal'],'onProgress':_0x5588e8=>{_0x5588e8&&_0x5588e8['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x5588e8['value']);}})['then'](async _0x408e30=>{const {imageFallbackUrl:_0x45cbc8,imageSources:_0x180001}=k(_0x408e30['cdnUrl'],_0x408e30['imageInfo']['width']);return{'uploadcareImageId':_0x408e30['uuid'],'default':_0x45cbc8,'sources':_0x180001};})['catch'](()=>{const _0x398aaa=t('Cannot\x20upload\x20file:')+('\x20'+_0x1d9c0a['name']+'.');return Promise['reject'](_0x398aaa);});}['abort'](){this['controller']['abort']();}}class o extends _0x5c1fd7{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',f,_0xc45072];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['ucContextId'];get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}constructor(_0x369464){super(_0x369464),this['ucContextId']=_0x285ee3();}['init'](){const _0x3d5cc4=this['editor'];_0x3d5cc4['commands']['add']('uploadcare',new w(_0x3d5cc4));}['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 _0x28f1e7=_0x1b28e5['document']['querySelector']('input[uploadcare-file-input]');_0x28f1e7&&_0x28f1e7['remove']();}),async function(_0x5cbd3c){const _0x3a812d=_0x489f85([0x77,0x36,0x37,0x42,0x41,0x6d,0x6f,0x4c,0x53,0x52,0x30,0x78,0x4e,0x32,0x63,0x6b,0x55,0x69,0x79,0x6a,0x66,0x67,0x6c,0x31,0x38,0x64,0x72,0x65,0x35,0x58,0x44,0x5a,0x4a,0x59,0x48,0x56,0x75,0x51,0x43,0x4b,0x6e,0x73,0x7a,0x68,0x46,0x74,0x47,0x4f,0x70,0x50,0x62,0x49,0x54,0x45,0x71,0x39,0x76,0x61,0x34,0x33,0x4d,0x57]),_0x29640c=0x3368afbd,_0x2dbcfa=0x336fc3b5^_0x29640c,_0x18e4bb=window[_0x489f85([0x44,0x61,0x74,0x65])][_0x489f85([0x6e,0x6f,0x77])](),_0xe54d47=_0x5cbd3c[_0x489f85([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x5b01c5=new window[(_0x489f85([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x23316d=>{_0xe54d47[_0x489f85([0x6f,0x6e,0x63,0x65])](_0x489f85([0x72,0x65,0x61,0x64,0x79]),_0x23316d);}),_0x5c1463={[_0x489f85([0x6b,0x74,0x79])]:_0x489f85([0x45,0x43]),[_0x489f85([0x75,0x73,0x65])]:_0x489f85([0x73,0x69,0x67]),[_0x489f85([0x63,0x72,0x76])]:_0x489f85([0x50,0x2d,0x32,0x35,0x36]),[_0x489f85([0x78])]:_0x489f85([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]),[_0x489f85([0x79])]:_0x489f85([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]),[_0x489f85([0x61,0x6c,0x67])]:_0x489f85([0x45,0x53,0x32,0x35,0x36])},_0x18c726=_0xe54d47[_0x489f85([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x489f85([0x67,0x65,0x74])](_0x489f85([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x125a49(){let _0x5bcce6,_0x48365c=null,_0x29f538=null;try{if(_0x18c726==_0x489f85([0x47,0x50,0x4c]))return _0x489f85([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x5bcce6=_0x190e08(),!_0x5bcce6)return _0x489f85([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x5bcce6[_0x489f85([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x29f538=_0x4cb0d9(_0x5bcce6[_0x489f85([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x5bcce6[_0x489f85([0x6a,0x74,0x69])])),await _0x4924ec()?_0x708a62()?_0xe6df8()?_0x489f85([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0xc62ea0()?(_0x5bcce6[_0x489f85([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x489f85([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x48365c=_0x1a61be(_0x489f85([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x5bcce6[_0x489f85([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x489f85([0x74,0x72,0x69,0x61,0x6c])&&(_0x48365c=_0x1a61be(_0x489f85([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x2cd1b8()):_0x489f85([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x489f85([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x489f85([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x489f85([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0xe6df8(){const _0x367677=[_0x489f85([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x489f85([0x74,0x72,0x69,0x61,0x6c])][_0x489f85([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5bcce6[_0x489f85([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x18e4bb/0x3e8:0xe10*_0x2dbcfa;return _0x5bcce6[_0x489f85([0x65,0x78,0x70])]<_0x367677;}function _0x708a62(){const _0x241358=_0x5bcce6[_0x489f85([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x241358&&(!!_0x241358[_0x489f85([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x489f85([0x2a]))||!!_0x241358[_0x489f85([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x489f85([0x55,0x50,0x4c,0x43])));}function _0xc62ea0(){const _0x2b2001=_0x5bcce6[_0x489f85([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x2b2001||0x0==_0x2b2001[_0x489f85([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x528e1b}=new URL(window[_0x489f85([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x2b2001[_0x489f85([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x528e1b))return!0x0;const _0x1b656c=_0x528e1b[_0x489f85([0x73,0x70,0x6c,0x69,0x74])](_0x489f85([0x2e]));return _0x2b2001[_0x489f85([0x66,0x69,0x6c,0x74,0x65,0x72])](_0xb94505=>_0xb94505[_0x489f85([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x489f85([0x2a])))[_0x489f85([0x6d,0x61,0x70])](_0x488d12=>_0x488d12[_0x489f85([0x73,0x70,0x6c,0x69,0x74])](_0x489f85([0x2e])))[_0x489f85([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x292846=>_0x292846[_0x489f85([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x1b656c[_0x489f85([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x489f85([0x6d,0x61,0x70])](_0x394373=>Array(_0x1b656c[_0x489f85([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x394373[_0x489f85([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x489f85([0x66,0x69,0x6c,0x6c])](_0x394373[0x0]===_0x489f85([0x2a])?_0x489f85([0x2a]):'')[_0x489f85([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x394373))[_0x489f85([0x73,0x6f,0x6d,0x65])](_0x283706=>_0x1b656c[_0x489f85([0x65,0x76,0x65,0x72,0x79])]((_0x55b100,_0x59e1b7)=>_0x283706[_0x59e1b7]===_0x55b100||_0x283706[_0x59e1b7]===_0x489f85([0x2a])));}function _0x2cd1b8(){return _0x48365c&&_0x29f538?new window[(_0x489f85([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x556aea,_0x1ad903)=>{_0x48365c[_0x489f85([0x74,0x68,0x65,0x6e])](_0x556aea,_0x1ad903),_0x29f538[_0x489f85([0x74,0x68,0x65,0x6e])](_0x30c74b=>{_0x30c74b!=_0x489f85([0x56,0x61,0x6c,0x69,0x64])&&_0x556aea(_0x30c74b);},_0x1ad903);}):_0x48365c||_0x29f538||_0x489f85([0x56,0x61,0x6c,0x69,0x64]);}}function _0x4cb0d9(_0x2c9e87,_0x4e5aa3){return new window[(_0x489f85([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xb4950a=>{if(_0x590216())return _0xb4950a(_0x489f85([0x56,0x61,0x6c,0x69,0x64]));_0x5b29d7(),_0xe54d47[_0x489f85([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x489f85([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x23f1c3=!0x1;const _0x324038=_0x285ee3();function _0x5e20f4(_0x4db04f){return!!_0x4db04f&&(typeof _0x4db04f===_0x489f85([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x4db04f===_0x489f85([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x4db04f[_0x489f85([0x74,0x68,0x65,0x6e])]===_0x489f85([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x4db04f[_0x489f85([0x63,0x61,0x74,0x63,0x68])]===_0x489f85([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x47e4b1(_0x592d54){_0xf2e2f(_0x592d54)[_0x489f85([0x74,0x68,0x65,0x6e])](_0x741f4e=>{if(!_0x741f4e||_0x741f4e[_0x489f85([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x489f85([0x6f,0x6b]))return _0x489f85([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x16c4cd(_0x521396(_0x324038+_0x4e5aa3))!=_0x741f4e[_0x489f85([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x489f85([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x489f85([0x56,0x61,0x6c,0x69,0x64]);})[_0x489f85([0x74,0x68,0x65,0x6e])](_0x3e9626=>(_0x737643(),_0x3e9626),()=>{const _0x2b0d30=_0x243db4();return null==_0x2b0d30?(_0x737643(),_0x489f85([0x56,0x61,0x6c,0x69,0x64])):_0x489f85(_0x18e4bb-_0x2b0d30>(0x17642bbd^_0x29640c)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x489f85([0x74,0x68,0x65,0x6e])](_0xb4950a)[_0x489f85([0x63,0x61,0x74,0x63,0x68])](()=>{_0xb4950a(_0x489f85([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x59ca8b=0x335e413d^_0x29640c;function _0x737643(){const _0x137ee5=_0x489f85([0x6c,0x6c,0x63,0x74,0x2d])+_0x16c4cd(_0x521396(_0x2c9e87)),_0xa5d4d3=_0x4a21bf(_0x16c4cd(window[_0x489f85([0x4d,0x61,0x74,0x68])][_0x489f85([0x63,0x65,0x69,0x6c])](_0x18e4bb/_0x59ca8b)));window[_0x489f85([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x489f85([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x137ee5,_0xa5d4d3);}function _0x243db4(){const _0x28029a=_0x489f85([0x6c,0x6c,0x63,0x74,0x2d])+_0x16c4cd(_0x521396(_0x2c9e87)),_0x39a776=window[_0x489f85([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x489f85([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x28029a);return _0x39a776?window[_0x489f85([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4a21bf(_0x39a776),0x10)*_0x59ca8b:null;}function _0xf2e2f(_0x3dd990){return new window[(_0x489f85([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x47820e,_0x2e77fd)=>{_0x3dd990[_0x489f85([0x74,0x68,0x65,0x6e])](_0x47820e,_0x2e77fd),window[_0x489f85([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x2e77fd,0x33697b7d^_0x29640c);});}}_0xe54d47[_0x489f85([0x6f,0x6e])](_0x489f85([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x418ae4,_0x3d53b8)=>{if(_0x3d53b8[0x0]!=_0x2c9e87)return _0xb4950a(_0x489f85([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x3d53b8[0x1]={..._0x3d53b8[0x1],[_0x489f85([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x324038};},{[_0x489f85([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x489f85([0x68,0x69,0x67,0x68])}),_0xe54d47[_0x489f85([0x6f,0x6e])](_0x489f85([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x4c24c0=>{_0x5e20f4(_0x4c24c0[_0x489f85([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x23f1c3=!0x0,_0x47e4b1(_0x4c24c0[_0x489f85([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x489f85([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x489f85([0x6c,0x6f,0x77])}),_0x5b01c5[_0x489f85([0x74,0x68,0x65,0x6e])](()=>{_0x23f1c3||_0xb4950a(_0x489f85([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x590216(){return _0xe54d47[_0x489f85([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x489f85([0x76,0x69,0x65,0x77])][_0x489f85([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x489f85([0x61,0x75,0x74,0x6f]);}function _0x5b29d7(){_0xe54d47[_0x489f85([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x489f85([0x76,0x69,0x65,0x77])][_0x489f85([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x489f85([0x61,0x75,0x74,0x6f]);}}function _0x1a61be(_0x4fc4d0){const _0x22e76d=[new window[(_0x489f85([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x49c1c3=>setTimeout(_0x49c1c3,0x33619171^_0x29640c)),_0x5b01c5[_0x489f85([0x74,0x68,0x65,0x6e])](()=>new window[(_0x489f85([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2787c5=>{let _0x25d2d8=0x0;_0xe54d47[_0x489f85([0x6d,0x6f,0x64,0x65,0x6c])][_0x489f85([0x6f,0x6e])](_0x489f85([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0xf7a5a0,_0x18a34a)=>{_0x18a34a[0x0][_0x489f85([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x25d2d8++,_0x25d2d8==(0x3368ae45^_0x29640c)&&(_0x2787c5(),_0xf7a5a0[_0x489f85([0x6f,0x66,0x66])]());});}))];return window[_0x489f85([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x489f85([0x72,0x61,0x63,0x65])](_0x22e76d)[_0x489f85([0x74,0x68,0x65,0x6e])](()=>_0x4fc4d0);}async function _0x1be196(){await _0x5b01c5,_0xe54d47[_0x489f85([0x6d,0x6f,0x64,0x65,0x6c])][_0x489f85([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x5d6e08,_0xe54d47[_0x489f85([0x6d,0x6f,0x64,0x65,0x6c])][_0x489f85([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x5d6e08,_0xe54d47[_0x489f85([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x489f85([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x239d08(_0x875570){const _0x57622c=_0x434f9f();_0xe54d47[_0x57622c]=_0x489f85([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x875570,_0x875570!=_0x489f85([0x56,0x61,0x6c,0x69,0x64])&&_0x1be196();}function _0x434f9f(){const _0x3fae2d=window[_0x489f85([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x489f85([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x489f85([0x6e,0x6f,0x77])]())[_0x489f85([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x489f85([0x2e]),'');let _0x3ce6a5=_0x489f85([0x77]);for(let _0x24be94=0x0;_0x24be94<_0x3fae2d[_0x489f85([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x24be94+=0x2){let _0x493191=window[_0x489f85([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3fae2d[_0x489f85([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x24be94,_0x24be94+0x2));_0x493191>=_0x3a812d[_0x489f85([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x493191-=_0x3a812d[_0x489f85([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x3ce6a5+=_0x3a812d[_0x493191];}return _0x3ce6a5;}function _0x190e08(){const _0x488690=_0x18c726[_0x489f85([0x73,0x70,0x6c,0x69,0x74])](_0x489f85([0x2e]));if(0x3!=_0x488690[_0x489f85([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x2d7da9(_0x488690[0x1]);function _0x2d7da9(_0x21ab7b){const _0x59f9a6=_0x485c4b(_0x21ab7b);return _0x59f9a6&&_0x588b18()?_0x59f9a6:null;function _0x588b18(){const _0x39ea5e=_0x59f9a6[_0x489f85([0x6a,0x74,0x69])],_0x1e3599=window[_0x489f85([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x39ea5e[_0x489f85([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x39ea5e[_0x489f85([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x532082={..._0x59f9a6,[_0x489f85([0x6a,0x74,0x69])]:_0x39ea5e[_0x489f85([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x39ea5e[_0x489f85([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x532082[_0x489f85([0x76,0x63])],_0x521396(_0x532082)==_0x1e3599;}}}async function _0x4924ec(){let _0xd154a=!0x0;try{const _0x429e5f=_0x18c726[_0x489f85([0x73,0x70,0x6c,0x69,0x74])](_0x489f85([0x2e])),[_0x372259,_0x59bf67,_0x347a06]=_0x429e5f;return _0x2f7b99(_0x372259),await _0x3cf723(_0x372259,_0x59bf67,_0x347a06),_0xd154a;}catch{return!0x1;}function _0x2f7b99(_0x1b7da0){const _0x490b73=_0x485c4b(_0x1b7da0);_0x490b73&&_0x490b73[_0x489f85([0x61,0x6c,0x67])]==_0x489f85([0x45,0x53,0x32,0x35,0x36])||(_0xd154a=!0x1);}async function _0x3cf723(_0x5257c9,_0x1bbe21,_0x4ff135){const _0x51ece3=window[_0x489f85([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x489f85([0x66,0x72,0x6f,0x6d])](_0x3b13f3(_0x4ff135),_0x4ba28c=>_0x4ba28c[_0x489f85([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x2c37c0=new window[(_0x489f85([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x489f85([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x5257c9+_0x489f85([0x2e])+_0x1bbe21),_0x28965a=window[_0x489f85([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x489f85([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x28965a)return;const _0x47eff0=await _0x28965a[_0x489f85([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x489f85([0x6a,0x77,0x6b]),_0x5c1463,{[_0x489f85([0x6e,0x61,0x6d,0x65])]:_0x489f85([0x45,0x43,0x44,0x53,0x41]),[_0x489f85([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x489f85([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x489f85([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x28965a[_0x489f85([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x489f85([0x6e,0x61,0x6d,0x65])]:_0x489f85([0x45,0x43,0x44,0x53,0x41]),[_0x489f85([0x68,0x61,0x73,0x68])]:{[_0x489f85([0x6e,0x61,0x6d,0x65])]:_0x489f85([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x47eff0,_0x51ece3,_0x2c37c0)||(_0xd154a=!0x1);}}function _0x485c4b(_0xec77c4){return _0xec77c4[_0x489f85([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x489f85([0x65,0x79]))?JSON[_0x489f85([0x70,0x61,0x72,0x73,0x65])](_0x3b13f3(_0xec77c4)):null;}function _0x3b13f3(_0xf33bf5){return window[_0x489f85([0x61,0x74,0x6f,0x62])](_0xf33bf5[_0x489f85([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x489f85([0x2b]))[_0x489f85([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x489f85([0x2f])));}function _0x521396(_0x33165b){let _0x17445b=0x1505;function _0x1c992d(_0x24b464){for(let _0x5a638b=0x0;_0x5a638b<_0x24b464[_0x489f85([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x5a638b++){const _0x5c890e=_0x24b464[_0x489f85([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x5a638b);_0x17445b=(_0x17445b<<0x5)+_0x17445b+_0x5c890e,_0x17445b&=_0x17445b;}}function _0x51f99d(_0x51b765){Array[_0x489f85([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x51b765)?_0x51b765[_0x489f85([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x51f99d):_0x51b765&&typeof _0x51b765==_0x489f85([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x489f85([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x51b765)[_0x489f85([0x73,0x6f,0x72,0x74])]()[_0x489f85([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x4ebb94,_0x169600])=>{_0x1c992d(_0x4ebb94),_0x51f99d(_0x169600);}):_0x1c992d(window[_0x489f85([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x51b765));}return _0x51f99d(_0x33165b),_0x17445b>>>0x0;}function _0x16c4cd(_0x4e7d17){return _0x4e7d17[_0x489f85([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x489f85([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x489f85([0x30]));}function _0x4a21bf(_0x2f4bba){return _0x2f4bba[_0x489f85([0x73,0x70,0x6c,0x69,0x74])]('')[_0x489f85([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x489f85([0x6a,0x6f,0x69,0x6e])]('');}function _0x5d6e08(){}function _0x489f85(_0x1b579b){return _0x1b579b['map'](_0x10a0f4=>String['fromCharCode'](_0x10a0f4))['join']('');}_0x239d08(await _0x125a49());}(this);}['_initSchema'](){const _0x5c3fa1=this['editor']['model']['schema'];_0x5c3fa1['isRegistered']('imageBlock')&&_0x5c3fa1['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x5c3fa1['isRegistered']('imageInline')&&_0x5c3fa1['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x5663c9=this['editor'];_0x5663c9['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x5663c9['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x4755d2=>_0x4755d2['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x527fe5=_0x5663c9['commands']['get']('replaceImageSource');_0x527fe5&&this['listenTo'](_0x527fe5,'cleanupImage',(_0x49f8ee,[_0x5c09ea,_0x573358])=>{_0x5c09ea['removeAttribute']('uploadcareImageId',_0x573358);});}['_initConfig'](){const _0x2b72e7=this['editor']['config']['get']('uploadcare.uploader')||{},_0x283275=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x5f1045(_0x1b28e5['document'],'uc-config',{..._0x2b72e7,'pubkey':_0x283275,'ctx-name':'uploader-'+this['ucContextId'],'sourceList':'','imgOnly':'true','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage'],'externalSourcesEmbedCss':'\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup\x20{\x20padding:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-menu\x20{\x20gap:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-footer\x20{\x20padding-top:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__separator\x20{\x20margin:\x200;\x20}\x0a\x09\x09\x09'}),this['_configElement']['iconHrefResolver']=_0x37825f=>{if('closeMax'==_0x37825f)return'#uc-icon-arrow-down';},_0x1b28e5['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x5f1045(_0x1b28e5['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader-'+this['ucContextId']}),_0x1b28e5['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x2b9689=this['editor']['commands']['get']('insertImage');_0x2b9689&&this['listenTo'](_0x2b9689,'execute',()=>{const _0x4634d0=this['editor']['model']['document']['selection']['getSelectedElement']();_0x4634d0&&_0x4634d0['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x4634d0);});});const _0x5bb1c0=this['editor']['commands']['get']('uploadcareImageReplace');_0x5bb1c0&&this['listenTo'](_0x5bb1c0,'execute',()=>{const _0x2ae8df=this['editor']['model']['document']['selection']['getSelectedElement']();_0x2ae8df&&_0x2ae8df['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x2ae8df);});});}}class tt extends _0x5c1fd7{static get['requires'](){return[o,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x2a6fdc){super(_0x2a6fdc),_0x2a6fdc['config']['define']('uploadcare.uploader.sourceList',[i['Local'],i['URL']]),_0x3d9e79['defineComponents'](_0x3d9e79);}}class ii extends _0x435f57{constructor(_0x5c11c7){super(_0x5c11c7);const t=_0x5c11c7['t'],_0x519c2e=this['bindTemplate'],_0x1e45c5=new _0x4aa4c0();_0x1e45c5['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':[_0x1e45c5,{'text':_0x519c2e['to']('imageUploadProgress',_0x472611=>t('Loading\x20image...')+'\x20('+(_0x472611||0x0)+'%)')}]},{'tag':'div','attributes':{'class':['ck-uploadcare-form__skeleton']},'children':[{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'}]},{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'}]}]}]});}}class ti extends _0x435f57{constructor(_0x5cf60a){super(_0x5cf60a);const t=_0x5cf60a['t'];this['set']('errorType',null);const _0x21c9ff=new _0xe36893(_0x5cf60a);_0x21c9ff['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x21c9ff['withText']=!0x0,_0x21c9ff['class']='ck-button-action',_0x21c9ff['on']('execute',()=>{this['fire']('retry');}),_0x21c9ff['bind']('isVisible')['to'](this,'errorType',_0x302bf5=>'NotFound'!==_0x302bf5);const _0x3dcfd8=new _0x1af99c();_0x3dcfd8['content']=_0x31f124,_0x3dcfd8['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x53a9b4=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':[_0x3dcfd8,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x53a9b4['to']('errorType',_0x1608bc=>t('NotFound'!==_0x1608bc?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x21c9ff]},{'tag':'div','attributes':{'class':['ck-uploadcare-form__skeleton']},'children':[{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'}]},{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'}]}]}]});}}class ei extends _0x435f57{constructor(_0x2341fd,_0x118063){super(_0x2341fd);const _0x3a0815=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x118063,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x3a0815['to']('imageSrc')}});}}class X extends F{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0xff0e91,_0x252d23,_0x1c7902){super(_0xff0e91),this['_items']=this['createCollection'](),this['_loadingView']=new ii(_0xff0e91),this['_errorView']=new ti(_0xff0e91),this['_editingView']=new ei(_0xff0e91,_0x1c7902),this['_focusableView']=new _0x435f57(_0xff0e91),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x252d23),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'],_0x36565f=>{this['_addUploadcareImageEditorListeners'](_0x36565f);});}),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'](_0x17749e,_0x25c302){const _0x11935a='uc-cloud-image-editor',_0x228d6e=_0x17749e['querySelector'](_0x11935a);if(_0x228d6e)return _0x25c302(_0x228d6e);const _0x3ff139=new MutationObserver(_0x6ddf50=>{const _0x410388=_0x6ddf50['filter'](_0x62c61a=>_0x62c61a['target']===_0x17749e&&_0x62c61a['addedNodes']['length']>0x0&&_0x62c61a['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x11935a);_0x410388['length']&&(_0x3ff139['disconnect'](),_0x25c302(_0x410388[0x0]['addedNodes'][0x0]));});_0x3ff139['observe'](_0x17749e,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x20d1d0){_0x20d1d0['addEventListener']('apply',_0x22a6d2=>{this['fire']('apply',{'imageSrc':_0x22a6d2['detail']['cdnUrl']});}),_0x20d1d0['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class E extends/* #__PURE__ -- @preserve */
25
- _0x1c0941(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x337a9b,_0x313d39,_0x292448){super(),this['_editor']=_0x337a9b,this['_dialog']=_0x313d39,this['_imageElement']=_0x292448,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 _0x2736a5=this['_imageElement'],_0x176f8b=_0x2736a5['getAttribute']('uploadcareImageId'),_0x5cf14b=_0x2736a5['getAttribute']('src');if(_0x176f8b)await this['_loadImageInfo'](_0x176f8b,_0x5cf14b);else{if(this['_imageCache']['has'](_0x5cf14b)){const _0x40355f=this['_imageCache']['get'](_0x5cf14b);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x40355f['url'],this['imageDimension']=_0x40355f['dimension'],this['imageId']=_0x40355f['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x42534e}=this['_editor'],t=_0x42534e['t'],_0x2f0893=new X(_0x42534e,this['imageStatus'],this['_attributes']);_0x2f0893['bind']('status')['to'](this,'imageStatus'),_0x2f0893['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x2f0893['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x2f0893['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x2f0893,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x41ee57,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x2f0893,'position':_0x2d5004['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x2f0893['focus']();},'onHide':()=>{_0x2f0893['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x98f1bf=>!S(_0x98f1bf,_0x2f0893['element'])}});}['_loadImageInfo'](_0x272b1c,_0x14ae33){return j['getInfo'](_0x272b1c,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey')})['then'](_0x431ccb=>{const {width:_0x136390,height:_0x1556b8}=_0x431ccb['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x14ae33,this['imageDimension']={'width':_0x136390,'height':_0x1556b8},this['imageId']=_0x272b1c;})['catch'](_0x438649=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x438649['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x3b041c,_0x12a218){return this['_getImageAsFile'](_0x3b041c)['then'](_0x19a90c=>j['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'signal':_0x12a218['signal'],'file':_0x19a90c,'onProgress':_0x652ef=>{_0x652ef&&_0x652ef['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x652ef['value']));}}))['then'](_0x3a9bf9=>{const {width:_0x352db4,height:_0x5751a3}=_0x3a9bf9['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x3a9bf9['cdnUrl'],this['imageDimension']={'width':_0x352db4,'height':_0x5751a3},this['imageId']=_0x3a9bf9['uuid'],this['imageUploadProgress']=null;const _0x33c61c=_0x3b041c['getAttribute']('src');this['_imageCache']['set'](_0x33c61c,{'id':_0x3a9bf9['uuid'],'url':_0x3a9bf9['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x201ce1=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x201ce1['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x5dca72,_0x26c1ad){_0x5dca72['on']('apply',(_0x5dfc16,_0x1669ab)=>{this['_replaceImage'](_0x26c1ad,_0x1669ab['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x5dca72['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x5dca72['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x5e551d,_0x90896c,_0x17ba93){const _0x264759=this['_editor'],{width:_0x598a8d,height:_0x4f22e9}=C(_0x90896c,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x53cf32,imageSources:_0x2d1b45}=k(_0x90896c,_0x598a8d);_0x264759['model']['change'](_0x5c2827=>{if('$graveyard'===_0x5e551d['root']['rootName']){_0x264759['execute']('insertImage',{'imageType':_0x5e551d['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x5e551d['getAttributes']()),'uploadcareImageId':_0x17ba93,'src':_0x53cf32,'sources':_0x2d1b45,'width':_0x598a8d,'height':_0x4f22e9}});const _0xebd191=_0x5e551d['getChildren']();_0x5e551d=_0x264759['model']['document']['selection']['getSelectedElement']();for(const _0x4cc18a of _0xebd191)_0x5c2827['append'](_0x5c2827['cloneElement'](_0x4cc18a),_0x5e551d);}else _0x5c2827['setSelection'](_0x5e551d,'on'),_0x264759['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x5e551d['getAttributes']()),'uploadcareImageId':_0x17ba93,'src':_0x53cf32,'sources':_0x2d1b45,'width':_0x598a8d,'height':_0x4f22e9},_0x5e551d);_0x5c2827['setSelection'](_0x5e551d,'on');});}async['_getImageAsFile'](_0x618775){const _0x22ebf0=_0x1b28e5['window'],_0x381abe=_0x1b28e5['document']['location']['href'],_0x4b5825=new _0x22ebf0['URL'](_0x618775['getAttribute']('src'),_0x381abe);if('data:'===_0x4b5825['protocol']){const _0x2ef431=_0x4b5825['href']['split'](','),_0x421b8a=_0x2ef431[0x0]['match'](/:(.*?);/)[0x1],_0x2fb4ea=_0x421b8a['split']('/')[0x1],_0x37991d=_0x22ebf0['atob'](_0x2ef431[_0x2ef431['length']-0x1]);let _0x23cf22=_0x37991d['length'];const _0x53b2de=new _0x22ebf0['Uint8Array'](_0x23cf22);for(;_0x23cf22--;)_0x53b2de[_0x23cf22]=_0x37991d['charCodeAt'](_0x23cf22);return new _0x22ebf0['File']([_0x53b2de],'image.'+_0x2fb4ea,{'type':_0x421b8a});}const _0x310533=_0x4b5825['href']['split']('/'),_0x42b298=_0x310533[_0x310533['length']-0x1],_0x1ae2b6=_0x42b298['split']('.')[0x1];return _0x22ebf0['fetch'](_0x4b5825['href'])['then'](_0x4f872a=>_0x4f872a['clone']()['blob']())['then'](_0x21918a=>new _0x22ebf0['File']([_0x21918a],_0x42b298,{'type':'image/'+_0x1ae2b6}));}}class O extends _0x1ceaf8{['imageEditController'];static get['requires'](){return[_0xc45072];}['_isEditable'];constructor(_0x266e65){super(_0x266e65),this['imageEditController']=void 0x0,this['_isEditable']=function(_0xa258fc){const _0x3232da=G(_0xa258fc);return _0x57226f=>!(!_0x57226f||!_0x57226f['is']('element','imageBlock')&&!_0x57226f['is']('element','imageInline'))&&(!!_0x57226f['hasAttribute']('uploadcareImageId')||!!_0x57226f['hasAttribute']('src')&&_0x3232da(_0x57226f['getAttribute']('src')));}(_0x266e65['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x1fcbdf=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x1fcbdf);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x37f5c6=this['editor']['model']['document']['selection']['getSelectedElement']();_0x37f5c6&&(_0x37f5c6['is']('element','imageBlock')||_0x37f5c6['is']('element','imageInline'))&&(this['imageEditController']=new E(this['editor'],this['editor']['plugins']['get'](_0xc45072),_0x37f5c6),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class R extends _0x1ceaf8{['refresh'](){const _0x2e3237=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x2e3237&&(_0x2e3237['is']('element','imageBlock')||_0x2e3237['is']('element','imageInline')));}['execute'](_0x3dd7db){const _0x54fe09=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x422035=>{_0x422035['setAttributes'](_0x3dd7db,_0x54fe09),_0x422035['removeAttribute']('srcset',_0x54fe09),_0x422035['removeAttribute']('sizes',_0x54fe09);});}}class m extends _0x5c1fd7{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[o,_0x78b19c,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0xb5330e}=this;_0xb5330e['commands']['add']('uploadcareImageEdit',new O(_0xb5330e)),_0xb5330e['commands']['add']('uploadcareImageReplace',new R(_0xb5330e));}}class g extends _0x5c1fd7{['_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 _0xea1df7=this['editor'];_0xea1df7['ui']['componentFactory']['add']('uploadcareImageEdit',_0x5c8d2f=>{const _0x580731=_0xea1df7['commands']['get']('uploadcareImageEdit'),_0x552938=new _0xe36893(_0x5c8d2f),t=_0x5c8d2f['t'];return _0x552938['set']({'icon':_0x41ee57,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x552938['bind']('isEnabled')['to'](_0x580731),_0x552938['bind']('isOn')['to'](_0x580731,'isActive'),this['listenTo'](_0x552938,'execute',()=>{_0xea1df7['execute']('uploadcareImageEdit'),_0xea1df7['editing']['view']['focus']();}),_0x552938;}),this['_initConfig']();}['_initConfig'](){const _0x405c72=_0x5f1045(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x405c72),this['listenTo'](this['editor'],'destroy',()=>{_0x405c72['remove']();});}}class et extends _0x5c1fd7{static get['pluginName'](){return'UploadcareImageEdit';}static get['requires'](){return[m,g];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{tt as Uploadcare,w as UploadcareCommand,o as UploadcareEditing,et as UploadcareImageEdit,O as UploadcareImageEditCommand,m as UploadcareImageEditEditing,g as UploadcareImageEditUI,e as UploadcareUI,f as UploadcareUploadAdapter};
23
+ import{Plugin as _0x570584,Command as _0x31bcb9}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x88f31a,IconGooglePhotos as _0x84fbc,IconGoogleDrive as _0x1ac652,IconFacebook as _0x38dfa9,IconDropbox as _0x1b5d86,IconUploadcareLink as _0x10403a,IconUploadcareImageUpload as _0x5ca10f,IconError as _0x3ece53,IconUploadcareImageEdit as _0x27e0e8}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x359938,MenuBarMenuListItemButtonView as _0x55f733,View as _0x1fdb42,FocusCycler as _0x4469d4,Dialog as _0x6c8f89,DialogViewPosition as _0x3cd8f3,SpinnerView as _0x3cf05d,IconView as _0x462416,Notification as _0x25394d}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x356e94,DomEmitterMixin as _0x3809ef,global as _0x312e58,getAncestors as _0xf8ac5b,ObservableMixin as _0x5d27aa,uid as _0x1acdf7,createElement as _0x3bc14f}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x14be9e}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x404a78,info as _0x4532db}from'@uploadcare/upload-client';import*as _0x52d687 from'@uploadcare/file-uploader';var i=function(_0x4065bb){return _0x4065bb['Local']='local',_0x4065bb['URL']='url',_0x4065bb['Dropbox']='dropbox',_0x4065bb['GDrive']='gdrive',_0x4065bb['Facebook']='facebook',_0x4065bb['GPhotos']='gphotos',_0x4065bb['OneDrive']='onedrive',_0x4065bb;}({});function _(_0x416266,_0x2eadd0,_0x2ddbdd){const t=_0x416266['t'],_0x5bab3a=_0x416266['t'];switch(_0x2eadd0){case i['Local']:return{'text':_0x5bab3a('Insert'===_0x2ddbdd?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x5bab3a('From\x20computer')};case i['URL']:return{'text':'Insert'===_0x2ddbdd?_0x5bab3a('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x5bab3a('Via\x20URL')};case i['Dropbox']:return{'text':t('Insert'===_0x2ddbdd?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case i['Facebook']:return{'text':t('Insert'===_0x2ddbdd?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case i['GDrive']:return{'text':t('Insert'===_0x2ddbdd?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case i['GPhotos']:return{'text':t('Insert'===_0x2ddbdd?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case i['OneDrive']:return{'text':t('Insert'===_0x2ddbdd?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x2eadd0;}}class e extends _0x570584{['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 _0x4f35bb=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x132186;for(const _0x4df0b2 in _0x4f35bb){const _0x28fe3d=_0x4df0b2,_0x397d3e=_0x4f35bb[_0x28fe3d];if('uploadcareLicenseKeyValid'==_0x397d3e||'uploadcareLicenseKeyInvalid'==_0x397d3e||'uploadcareLicenseKeyExpired'==_0x397d3e||'uploadcareLicenseKeyDomainLimit'==_0x397d3e||'uploadcareLicenseKeyNotAllowed'==_0x397d3e||'uploadcareLicenseKeyEvaluationLimit'==_0x397d3e||'uploadcareLicenseKeyTrialLimit'==_0x397d3e||'uploadcareLicenseKeyUsageLimit'==_0x397d3e){delete _0x4f35bb[_0x28fe3d],_0x132186=_0x397d3e,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x132186&&_0x4f35bb['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x132186&&_0x4f35bb['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x132186&&_0x4f35bb['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x132186&&_0x4f35bb['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x132186&&_0x4f35bb['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyTrialLimit'==_0x132186&&_0x4f35bb['_showLicenseError']('trialLimit'),'uploadcareLicenseKeyUsageLimit'==_0x132186&&_0x4f35bb['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x10d0c7}=this,_0x2158c7=_0x10d0c7['commands']['get']('uploadcare');if(!_0x2158c7)return;const _0x11b789=this['_normalizeConfigSourceList'](_0x10d0c7['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x49de37,_0x479f08)=>{const _0x316ef5=this['_getIntegrationKey'](_0x479f08['type']);return _0x49de37[_0x316ef5]||(_0x49de37[_0x316ef5]=[]),_0x49de37[_0x316ef5]['push'](_0x479f08),_0x49de37;},{});_0x10d0c7['plugins']['has']('ImageInsertUI')&&_0x10d0c7['commands']['get']('uploadcare')&&Object['entries'](_0x11b789)['forEach'](([_0x34a43e,_0x380e44])=>{_0x10d0c7['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x34a43e,'observable':()=>_0x2158c7,'buttonViewCreator':()=>this['_createToolbarButton'](_0x380e44),'formViewCreator':()=>this['_createDropdownButtons'](_0x380e44),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x380e44),'override':'assetManager'!==_0x34a43e});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x228cc6){const {locale:_0x1c1cfc}=this['editor'];return _0x228cc6['map'](_0x1d21a6=>{const _0x5935a9=_(_0x1c1cfc,_0x1d21a6,'Insert');switch(_0x1d21a6){case i['Local']:return{'icon':_0x5ca10f,'type':i['Local'],..._0x5935a9};case i['URL']:return{'icon':_0x10403a,'type':i['URL'],..._0x5935a9};case i['Dropbox']:return{'icon':_0x1b5d86,'type':i['Dropbox'],..._0x5935a9};case i['Facebook']:return{'icon':_0x38dfa9,'type':i['Facebook'],..._0x5935a9};case i['GDrive']:return{'icon':_0x1ac652,'type':i['GDrive'],..._0x5935a9};case i['GPhotos']:return{'icon':_0x84fbc,'type':i['GPhotos'],..._0x5935a9};case i['OneDrive']:return{'icon':_0x88f31a,'type':i['OneDrive'],..._0x5935a9};}});}['_getIntegrationKey'](_0x5105ab){switch(_0x5105ab){case i['Local']:return'upload';case i['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x25a174,_0x581b04){const _0xd5829c=this['editor'],_0x2b2c1f=new _0x25a174(_0xd5829c['locale']),_0x153cc9=_0xd5829c['commands']['get']('uploadcare');return _0x2b2c1f['bind']('isEnabled')['to'](_0x153cc9),_0x2b2c1f['on']('execute',()=>{_0x153cc9['execute'](_0x581b04);}),_0x2b2c1f;}['_createToolbarButton'](_0x104469){const {locale:_0x48f684}=this['editor'],_0x2896bc=this['editor']['plugins']['get']('ImageInsertUI'),_0x5697d9=_0x104469[0x0],_0x42a350=this['_createButton'](_0x359938,_0x5697d9['type']);return _0x42a350['icon']=_0x5697d9['icon'],_0x42a350['bind']('label')['to'](_0x2896bc,'isImageSelected',_0x5cdd10=>_(_0x48f684,_0x5697d9['type'],_0x5cdd10?'Replace':'Insert')['text']),_0x42a350['tooltip']=!0x0,_0x42a350;}['_createDropdownButtons'](_0x37672a){const {locale:_0x5503b8}=this['editor'],_0xa234b2=this['editor']['plugins']['get']('ImageInsertUI');return _0x37672a['map'](_0x25f1df=>{const _0x568ef2=this['_createButton'](_0x359938,_0x25f1df['type']);return _0x568ef2['withText']=!0x0,_0x568ef2['icon']=_0x25f1df['icon'],_0x568ef2['bind']('label')['to'](_0xa234b2,'isImageSelected',_0x4e3249=>_(_0x5503b8,_0x25f1df['type'],_0x4e3249?'Replace':'Insert')['text']),_0x568ef2;});}['_createMenuBarButtons'](_0x24a7d3){return _0x24a7d3['map'](_0x3860fa=>{const _0x49320b=this['_createButton'](_0x55f733,_0x3860fa['type']);return _0x49320b['icon']=_0x3860fa['icon'],_0x49320b['label']=_0x3860fa['shortText'],_0x49320b;});}}class F extends _0x1fdb42{['focusTracker'];['focusCycler'];constructor(_0x234fee){super(_0x234fee),this['focusTracker']=new _0x356e94(),this['focusCycler']=new _0x4469d4({'focusables':this['createCollection'](),'focusTracker':this['focusTracker']});}['getFocusableElement'](){return{'tag':'div','attributes':{'aria-hidden':'true','tabindex':'0'},'on':{'focus':this['bindTemplate']['to'](()=>{this['focusCycler']['fire']('forwardCycle');})}};}}class x extends F{constructor(_0x53a489,_0x3439b6){super(_0x53a489),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-'+_0x3439b6}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}}function k(_0x22eddc,_0x39ba88){const _0x3451f8=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0xd01ad=>_0xd01ad<=_0x39ba88)['map'](_0x23918f=>_0x22eddc['replace'](/\/$/,'')+'/-/resize/'+_0x23918f+'x/\x20'+_0x23918f+'w');return{'imageFallbackUrl':_0x22eddc,'imageSources':[{'srcset':_0x3451f8['join'](',\x20'),'sizes':'(max-width:\x20'+_0x39ba88+'px)\x20100vw,\x20'+_0x39ba88+'px','type':'image/webp'}]};}function C(_0x11fad2,_0x53c37f,_0x595a99){const _0x8c0d08=_0x11fad2['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x8c0d08?parseInt(_0x8c0d08[0x1],0xa):_0x53c37f,'height':_0x8c0d08?parseInt(_0x8c0d08[0x2],0xa):_0x595a99};}function p(_0x19b6ed,_0x167cfd){const _0x1d8ea9=new(_0x3809ef())(),_0x120631=_0x19b6ed['plugins']['get']('ImageUtils'),_0x43f87f=_0x19b6ed['editing']['mapper']['toViewElement'](_0x167cfd),_0x1238e6=_0x120631['findViewImgElement'](_0x43f87f),_0x1b21ed=_0x19b6ed['editing']['view']['domConverter']['viewToDom'](_0x1238e6),_0x3d9782=_0x167cfd['getAttribute']('width'),_0x3405fe=_0x167cfd['getAttribute']('height'),_0x36f256='image-processing';_0x19b6ed['editing']['view']['change'](_0x347ddb=>{_0x347ddb['addClass'](_0x36f256,_0x43f87f),_0x347ddb['setStyle']('aspect-ratio',_0x3d9782+'/'+_0x3405fe,_0x1238e6);}),_0x1d8ea9['listenTo'](_0x1b21ed,'load',()=>{_0x1d8ea9['stopListening'](_0x1b21ed,'load'),_0x19b6ed['editing']['view']['change'](_0x13fba5=>{_0x13fba5['removeClass'](_0x36f256,_0x43f87f),_0x13fba5['removeStyle']('aspect-ratio',_0x1238e6);});});}function G(_0x5eda7c){if(Array['isArray'](_0x5eda7c)){const _0x403e70=_0x5eda7c['map'](G);return _0x31a50a=>_0x403e70['some'](_0x14a49b=>_0x14a49b(_0x31a50a));}if('origin'==_0x5eda7c){const _0x55ab16=_0x312e58['window']['location']['origin'];return _0x5f3118=>new URL(_0x5f3118,_0x312e58['document']['baseURI'])['origin']==_0x55ab16;}return'function'==typeof _0x5eda7c?_0x5eda7c:_0x5eda7c instanceof RegExp?_0x375fe1=>!(!_0x375fe1['match'](_0x5eda7c)&&!_0x375fe1['replace'](/^https?:\/\//,'')['match'](_0x5eda7c)):()=>!0x1;}function S(_0x334264,_0x3570a1){return _0xf8ac5b(_0x334264['target'])['includes'](_0x3570a1);}class n extends/* #__PURE__ -- @preserve */
24
+ _0x5d27aa(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x241c55,_0xeb874d,_0x31ba07){super(),this['_editor']=_0x241c55,this['_editing']=_0xeb874d,this['_dialog']=_0x241c55['plugins']['get'](_0x6c8f89),this['_api']=_0xeb874d['ctxElement']['getAPI'](),this['_type']=_0x31ba07,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:_0x5e79c9,model:_0x498faf}=this['_editor'],_0x574ae4=_0x498faf['document']['selection']['getSelectedElement'](),_0x11d810=_0x574ae4&&(_0x574ae4['is']('element','imageBlock')||_0x574ae4['is']('element','imageInline'));this['_formView']=new x(_0x5e79c9,this['_editing']['ucContextId']),this['_dialog']['show']({'id':'uploadCare','icon':_0x5ca10f,'title':_(_0x5e79c9,this['_type'],_0x11d810?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x3cd8f3['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x14e444=>!S(_0x14e444,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x2bf403}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x5e2084=>{const _0x348e5a=_0x2bf403['length'];for(const _0x34f2fb of _0x2bf403){const _0x594adf=_0x34f2fb===_0x2bf403[_0x348e5a-0x1],{cdnUrl:_0x5e386d,fileInfo:_0x40a15}=_0x34f2fb;if(!_0x5e386d||!_0x40a15)continue;const {width:_0x1afaab,height:_0x3cb86d}=_0x40a15['imageInfo'],_0x171e6f=C(_0x5e386d,_0x1afaab,_0x3cb86d),_0x2164b6=k(_0x5e386d,_0x171e6f['width']),_0x57dbe8={'id':_0x40a15['uuid'],'type':'image','attributes':{'imageDimension':_0x171e6f,..._0x2164b6}};this['_insertAsset'](_0x57dbe8,_0x594adf,_0x5e2084);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x3e4964=>{'idle'===_0x3e4964['detail']['status']&&!_0x3e4964['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===i['Local']?this['_api']['setCurrentActivity'](i['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x47dac3,_0x10e02c,_0x3b1337){const _0x3d237b=this['_editor']['model']['document']['selection'],_0x50a461=_0x3d237b['getSelectedElement'](),_0x52d686=!(!_0x50a461||!_0x50a461['is']('element','imageInline'));_0x3b1337['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x47dac3,_0x52d686),_0x10e02c||_0x3b1337['setSelection'](_0x3d237b['getLastPosition']());}['_insertImage'](_0x1e14e0,_0x54d867){const _0x384760=this['_editor'],{imageDimension:_0x50e780,imageFallbackUrl:_0x1acf10,imageSources:_0x4f743a}=_0x1e14e0['attributes'];_0x384760['execute']('insertImage',{'imageType':_0x54d867?'imageInline':null,'source':{'uploadcareImageId':_0x1e14e0['id'],'src':_0x1acf10,'sources':_0x4f743a,..._0x50e780}});}}class w extends _0x31bcb9{['_editing'];['_controller']=null;static get['requires'](){return[_0x6c8f89,o];}constructor(_0x12f16c){super(_0x12f16c),this['_editing']=_0x12f16c['plugins']['get'](o);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x426074){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new n(this['editor'],this['_editing'],_0x426074);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class j{static['upload']({file:_0x51b710,publicKey:_0x232f63,signal:_0x41ff62,onProgress:_0xf7f4d3}){return _0x404a78(_0x51b710,{'publicKey':_0x232f63,'store':'auto','signal':_0x41ff62,'onProgress':_0xf7f4d3});}static['getInfo'](_0x16c3d1,_0x554294){return _0x4532db(_0x16c3d1,_0x554294);}}class f extends _0x570584{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x14be9e,o];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x2b53d5=this['editor'];if(!!!_0x2b53d5['config']['get']('uploadcare'))return;_0x2b53d5['plugins']['get'](_0x14be9e)['createUploadAdapter']=_0x2dfb28=>new A(_0x2dfb28,_0x2b53d5),_0x2b53d5['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x5d93c6,{imageElement:_0x189288,data:_0x3a5e02})=>{_0x2b53d5['model']['change'](_0x1f7951=>{_0x1f7951['setAttribute']('uploadcareImageId',_0x3a5e02['uploadcareImageId'],_0x189288);});});}}class A{['loader'];['editor'];['controller'];constructor(_0xc14127,_0x12d1de){this['loader']=_0xc14127,this['editor']=_0x12d1de,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0xf9d837=this['editor']['config']['get']('uploadcare.pubkey'),_0x6efb9c=await this['loader']['file'];return j['upload']({'file':_0x6efb9c,'publicKey':_0xf9d837,'signal':this['controller']['signal'],'onProgress':_0x59e2ae=>{_0x59e2ae&&_0x59e2ae['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x59e2ae['value']);}})['then'](async _0x4de43a=>{const {imageFallbackUrl:_0x111dd3,imageSources:_0x4e79b7}=k(_0x4de43a['cdnUrl'],_0x4de43a['imageInfo']['width']);return{'uploadcareImageId':_0x4de43a['uuid'],'default':_0x111dd3,'sources':_0x4e79b7};})['catch'](()=>{const _0x13538d=t('Cannot\x20upload\x20file:')+('\x20'+_0x6efb9c['name']+'.');return Promise['reject'](_0x13538d);});}['abort'](){this['controller']['abort']();}}class o extends _0x570584{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',f,_0x6c8f89];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['ucContextId'];get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}constructor(_0x31b941){super(_0x31b941),this['ucContextId']=_0x1acdf7();}['init'](){const _0x1d86fe=this['editor'];_0x1d86fe['commands']['add']('uploadcare',new w(_0x1d86fe));}['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 _0x1d56c9=_0x312e58['document']['querySelector']('input[uploadcare-file-input]');_0x1d56c9&&_0x1d56c9['remove']();}),async function(_0x529cf1){const _0x50e054=_0x3e574d([0x74,0x44,0x38,0x35,0x30,0x70,0x46,0x63,0x77,0x43,0x65,0x5a,0x51,0x62,0x6c,0x53,0x31,0x68,0x4f,0x75,0x58,0x45,0x4c,0x54,0x48,0x73,0x76,0x6a,0x4b,0x36,0x6b,0x66,0x4e,0x50,0x55,0x69,0x37,0x33,0x6e,0x64,0x4d,0x47,0x61,0x32,0x4a,0x71,0x79,0x72,0x41,0x7a,0x42,0x49,0x78,0x59,0x34,0x56,0x52,0x39,0x6d,0x6f,0x57,0x67]),_0x63a70b=0x1fb4dc0c,_0x22ec5d=0x1fb3b034^_0x63a70b,_0x449585=window[_0x3e574d([0x44,0x61,0x74,0x65])][_0x3e574d([0x6e,0x6f,0x77])](),_0x5183a7=_0x529cf1[_0x3e574d([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x1bac81=new window[(_0x3e574d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x34e1d9=>{_0x5183a7[_0x3e574d([0x6f,0x6e,0x63,0x65])](_0x3e574d([0x72,0x65,0x61,0x64,0x79]),_0x34e1d9);}),_0x2c94b5={[_0x3e574d([0x6b,0x74,0x79])]:_0x3e574d([0x45,0x43]),[_0x3e574d([0x75,0x73,0x65])]:_0x3e574d([0x73,0x69,0x67]),[_0x3e574d([0x63,0x72,0x76])]:_0x3e574d([0x50,0x2d,0x32,0x35,0x36]),[_0x3e574d([0x78])]:_0x3e574d([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]),[_0x3e574d([0x79])]:_0x3e574d([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]),[_0x3e574d([0x61,0x6c,0x67])]:_0x3e574d([0x45,0x53,0x32,0x35,0x36])},_0x3181cd=_0x5183a7[_0x3e574d([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x3e574d([0x67,0x65,0x74])](_0x3e574d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x37bae5(){let _0x495fb3,_0x3cdd42=null,_0x2f1a17=null;try{if(_0x3181cd==_0x3e574d([0x47,0x50,0x4c]))return _0x3e574d([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x495fb3=_0x2978be(),!_0x495fb3)return _0x3e574d([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x495fb3[_0x3e574d([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x2f1a17=_0x19d84c(_0x495fb3[_0x3e574d([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x495fb3[_0x3e574d([0x6a,0x74,0x69])])),await _0x1c1982()?_0xd25db9()?_0x511b1e()?_0x3e574d([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x586b28()?(_0x495fb3[_0x3e574d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3e574d([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x3cdd42=_0x28e322(_0x3e574d([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x495fb3[_0x3e574d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3e574d([0x74,0x72,0x69,0x61,0x6c])&&(_0x3cdd42=_0x28e322(_0x3e574d([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x6450bd()):_0x3e574d([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x3e574d([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x3e574d([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x3e574d([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x511b1e(){const _0x2083e2=[_0x3e574d([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x3e574d([0x74,0x72,0x69,0x61,0x6c])][_0x3e574d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x495fb3[_0x3e574d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x449585/0x3e8:0xe10*_0x22ec5d;return _0x495fb3[_0x3e574d([0x65,0x78,0x70])]<_0x2083e2;}function _0xd25db9(){const _0x4a999c=_0x495fb3[_0x3e574d([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x4a999c&&(!!_0x4a999c[_0x3e574d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3e574d([0x2a]))||!!_0x4a999c[_0x3e574d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3e574d([0x55,0x50,0x4c,0x43])));}function _0x586b28(){const _0x42f5f3=_0x495fb3[_0x3e574d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x42f5f3||0x0==_0x42f5f3[_0x3e574d([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x2c9155}=new URL(window[_0x3e574d([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x42f5f3[_0x3e574d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2c9155))return!0x0;const _0x47707d=_0x2c9155[_0x3e574d([0x73,0x70,0x6c,0x69,0x74])](_0x3e574d([0x2e]));return _0x42f5f3[_0x3e574d([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x263d54=>_0x263d54[_0x3e574d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3e574d([0x2a])))[_0x3e574d([0x6d,0x61,0x70])](_0x4ecf43=>_0x4ecf43[_0x3e574d([0x73,0x70,0x6c,0x69,0x74])](_0x3e574d([0x2e])))[_0x3e574d([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x534cbb=>_0x534cbb[_0x3e574d([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x47707d[_0x3e574d([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x3e574d([0x6d,0x61,0x70])](_0x509d5a=>Array(_0x47707d[_0x3e574d([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x509d5a[_0x3e574d([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x3e574d([0x66,0x69,0x6c,0x6c])](_0x509d5a[0x0]===_0x3e574d([0x2a])?_0x3e574d([0x2a]):'')[_0x3e574d([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x509d5a))[_0x3e574d([0x73,0x6f,0x6d,0x65])](_0x3321b=>_0x47707d[_0x3e574d([0x65,0x76,0x65,0x72,0x79])]((_0x296e5f,_0x54f935)=>_0x3321b[_0x54f935]===_0x296e5f||_0x3321b[_0x54f935]===_0x3e574d([0x2a])));}function _0x6450bd(){return _0x3cdd42&&_0x2f1a17?new window[(_0x3e574d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x2ae9f7,_0x407f88)=>{_0x3cdd42[_0x3e574d([0x74,0x68,0x65,0x6e])](_0x2ae9f7,_0x407f88),_0x2f1a17[_0x3e574d([0x74,0x68,0x65,0x6e])](_0x8f6972=>{_0x8f6972!=_0x3e574d([0x56,0x61,0x6c,0x69,0x64])&&_0x2ae9f7(_0x8f6972);},_0x407f88);}):_0x3cdd42||_0x2f1a17||_0x3e574d([0x56,0x61,0x6c,0x69,0x64]);}}function _0x19d84c(_0x198bb1,_0x41b2e5){return new window[(_0x3e574d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2774a3=>{if(_0x40c646())return _0x2774a3(_0x3e574d([0x56,0x61,0x6c,0x69,0x64]));_0x348d08(),_0x5183a7[_0x3e574d([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x3e574d([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x28ab54=!0x1;const _0x2ae31a=_0x1acdf7();function _0x1c8272(_0x255e2a){return!!_0x255e2a&&(typeof _0x255e2a===_0x3e574d([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x255e2a===_0x3e574d([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x255e2a[_0x3e574d([0x74,0x68,0x65,0x6e])]===_0x3e574d([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x255e2a[_0x3e574d([0x63,0x61,0x74,0x63,0x68])]===_0x3e574d([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x30a20d(_0x2b4fed){_0x483bda(_0x2b4fed)[_0x3e574d([0x74,0x68,0x65,0x6e])](_0x27bcbf=>{if(!_0x27bcbf||_0x27bcbf[_0x3e574d([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x3e574d([0x6f,0x6b]))return _0x3e574d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x35ad74(_0x5ef8a5(_0x2ae31a+_0x41b2e5))!=_0x27bcbf[_0x3e574d([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x3e574d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x3e574d([0x56,0x61,0x6c,0x69,0x64]);})[_0x3e574d([0x74,0x68,0x65,0x6e])](_0x24ef49=>(_0x42f81f(),_0x24ef49),()=>{const _0x261985=_0x17acbe();return null==_0x261985?(_0x42f81f(),_0x3e574d([0x56,0x61,0x6c,0x69,0x64])):_0x3e574d(_0x449585-_0x261985>(0x3bb8580c^_0x63a70b)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x3e574d([0x74,0x68,0x65,0x6e])](_0x2774a3)[_0x3e574d([0x63,0x61,0x74,0x63,0x68])](()=>{_0x2774a3(_0x3e574d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x4b1834=0x1f82328c^_0x63a70b;function _0x42f81f(){const _0x4b8597=_0x3e574d([0x6c,0x6c,0x63,0x74,0x2d])+_0x35ad74(_0x5ef8a5(_0x198bb1)),_0xde824e=_0x4834b0(_0x35ad74(window[_0x3e574d([0x4d,0x61,0x74,0x68])][_0x3e574d([0x63,0x65,0x69,0x6c])](_0x449585/_0x4b1834)));window[_0x3e574d([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3e574d([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4b8597,_0xde824e);}function _0x17acbe(){const _0x4fd628=_0x3e574d([0x6c,0x6c,0x63,0x74,0x2d])+_0x35ad74(_0x5ef8a5(_0x198bb1)),_0x597270=window[_0x3e574d([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3e574d([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4fd628);return _0x597270?window[_0x3e574d([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4834b0(_0x597270),0x10)*_0x4b1834:null;}function _0x483bda(_0x462c03){return new window[(_0x3e574d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x30d575,_0x5958f1)=>{_0x462c03[_0x3e574d([0x74,0x68,0x65,0x6e])](_0x30d575,_0x5958f1),window[_0x3e574d([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x5958f1,0x1fb508cc^_0x63a70b);});}}_0x5183a7[_0x3e574d([0x6f,0x6e])](_0x3e574d([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x217f36,_0x4830dd)=>{if(_0x4830dd[0x0]!=_0x198bb1)return _0x2774a3(_0x3e574d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x4830dd[0x1]={..._0x4830dd[0x1],[_0x3e574d([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x2ae31a};},{[_0x3e574d([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3e574d([0x68,0x69,0x67,0x68])}),_0x5183a7[_0x3e574d([0x6f,0x6e])](_0x3e574d([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x8dd17a=>{_0x1c8272(_0x8dd17a[_0x3e574d([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x28ab54=!0x0,_0x30a20d(_0x8dd17a[_0x3e574d([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x3e574d([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3e574d([0x6c,0x6f,0x77])}),_0x1bac81[_0x3e574d([0x74,0x68,0x65,0x6e])](()=>{_0x28ab54||_0x2774a3(_0x3e574d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x40c646(){return _0x5183a7[_0x3e574d([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3e574d([0x76,0x69,0x65,0x77])][_0x3e574d([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x3e574d([0x61,0x75,0x74,0x6f]);}function _0x348d08(){_0x5183a7[_0x3e574d([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3e574d([0x76,0x69,0x65,0x77])][_0x3e574d([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x3e574d([0x61,0x75,0x74,0x6f]);}}function _0x28e322(_0x38a7c1){const _0x3c24db=[new window[(_0x3e574d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x236bab=>setTimeout(_0x236bab,0x1fbde2c0^_0x63a70b)),_0x1bac81[_0x3e574d([0x74,0x68,0x65,0x6e])](()=>new window[(_0x3e574d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5b15b1=>{let _0x42ddce=0x0;_0x5183a7[_0x3e574d([0x6d,0x6f,0x64,0x65,0x6c])][_0x3e574d([0x6f,0x6e])](_0x3e574d([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x19e03e,_0xff2e58)=>{_0xff2e58[0x0][_0x3e574d([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x42ddce++,_0x42ddce==(0x1fb4ddf4^_0x63a70b)&&(_0x5b15b1(),_0x19e03e[_0x3e574d([0x6f,0x66,0x66])]());});}))];return window[_0x3e574d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x3e574d([0x72,0x61,0x63,0x65])](_0x3c24db)[_0x3e574d([0x74,0x68,0x65,0x6e])](()=>_0x38a7c1);}async function _0x26922c(){await _0x1bac81,_0x5183a7[_0x3e574d([0x6d,0x6f,0x64,0x65,0x6c])][_0x3e574d([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x3f0433,_0x5183a7[_0x3e574d([0x6d,0x6f,0x64,0x65,0x6c])][_0x3e574d([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x3f0433,_0x5183a7[_0x3e574d([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x3e574d([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x218db1(_0x38359f){const _0x319810=_0x5ef17e();_0x5183a7[_0x319810]=_0x3e574d([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x38359f,_0x38359f!=_0x3e574d([0x56,0x61,0x6c,0x69,0x64])&&_0x26922c();}function _0x5ef17e(){const _0xf8d792=window[_0x3e574d([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x3e574d([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x3e574d([0x6e,0x6f,0x77])]())[_0x3e574d([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x3e574d([0x2e]),'');let _0x4bd2be=_0x3e574d([0x74]);for(let _0x54544c=0x0;_0x54544c<_0xf8d792[_0x3e574d([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x54544c+=0x2){let _0x126812=window[_0x3e574d([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xf8d792[_0x3e574d([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x54544c,_0x54544c+0x2));_0x126812>=_0x50e054[_0x3e574d([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x126812-=_0x50e054[_0x3e574d([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x4bd2be+=_0x50e054[_0x126812];}return _0x4bd2be;}function _0x2978be(){const _0x1fd5c8=_0x3181cd[_0x3e574d([0x73,0x70,0x6c,0x69,0x74])](_0x3e574d([0x2e]));if(0x3!=_0x1fd5c8[_0x3e574d([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x218cb9(_0x1fd5c8[0x1]);function _0x218cb9(_0x5edd17){const _0x19dda5=_0x4dc582(_0x5edd17);return _0x19dda5&&_0x377e43()?_0x19dda5:null;function _0x377e43(){const _0x579f9f=_0x19dda5[_0x3e574d([0x6a,0x74,0x69])],_0x9746b3=window[_0x3e574d([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x579f9f[_0x3e574d([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x579f9f[_0x3e574d([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x1671b9={..._0x19dda5,[_0x3e574d([0x6a,0x74,0x69])]:_0x579f9f[_0x3e574d([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x579f9f[_0x3e574d([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x1671b9[_0x3e574d([0x76,0x63])],_0x5ef8a5(_0x1671b9)==_0x9746b3;}}}async function _0x1c1982(){let _0x550600=!0x0;try{const _0x2aa0e6=_0x3181cd[_0x3e574d([0x73,0x70,0x6c,0x69,0x74])](_0x3e574d([0x2e])),[_0x4bc30e,_0x5f53c1,_0x2e559b]=_0x2aa0e6;return _0xa581e(_0x4bc30e),await _0x11e3c4(_0x4bc30e,_0x5f53c1,_0x2e559b),_0x550600;}catch{return!0x1;}function _0xa581e(_0x50409a){const _0x1b121e=_0x4dc582(_0x50409a);_0x1b121e&&_0x1b121e[_0x3e574d([0x61,0x6c,0x67])]==_0x3e574d([0x45,0x53,0x32,0x35,0x36])||(_0x550600=!0x1);}async function _0x11e3c4(_0x2f1ec4,_0x40b097,_0x46b3da){const _0x136452=window[_0x3e574d([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x3e574d([0x66,0x72,0x6f,0x6d])](_0x485e23(_0x46b3da),_0x52be5b=>_0x52be5b[_0x3e574d([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x5e8487=new window[(_0x3e574d([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x3e574d([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x2f1ec4+_0x3e574d([0x2e])+_0x40b097),_0x528005=window[_0x3e574d([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x3e574d([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x528005)return;const _0x1c6e6c=await _0x528005[_0x3e574d([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x3e574d([0x6a,0x77,0x6b]),_0x2c94b5,{[_0x3e574d([0x6e,0x61,0x6d,0x65])]:_0x3e574d([0x45,0x43,0x44,0x53,0x41]),[_0x3e574d([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x3e574d([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x3e574d([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x528005[_0x3e574d([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x3e574d([0x6e,0x61,0x6d,0x65])]:_0x3e574d([0x45,0x43,0x44,0x53,0x41]),[_0x3e574d([0x68,0x61,0x73,0x68])]:{[_0x3e574d([0x6e,0x61,0x6d,0x65])]:_0x3e574d([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x1c6e6c,_0x136452,_0x5e8487)||(_0x550600=!0x1);}}function _0x4dc582(_0x2042f7){return _0x2042f7[_0x3e574d([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x3e574d([0x65,0x79]))?JSON[_0x3e574d([0x70,0x61,0x72,0x73,0x65])](_0x485e23(_0x2042f7)):null;}function _0x485e23(_0x2293d3){return window[_0x3e574d([0x61,0x74,0x6f,0x62])](_0x2293d3[_0x3e574d([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x3e574d([0x2b]))[_0x3e574d([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x3e574d([0x2f])));}function _0x5ef8a5(_0x47a8be){let _0x4f2b23=0x1505;function _0x34a407(_0x534e19){for(let _0x53c365=0x0;_0x53c365<_0x534e19[_0x3e574d([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x53c365++){const _0x931db7=_0x534e19[_0x3e574d([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x53c365);_0x4f2b23=(_0x4f2b23<<0x5)+_0x4f2b23+_0x931db7,_0x4f2b23&=_0x4f2b23;}}function _0x1bb49b(_0x42026b){Array[_0x3e574d([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x42026b)?_0x42026b[_0x3e574d([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x1bb49b):_0x42026b&&typeof _0x42026b==_0x3e574d([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x3e574d([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x42026b)[_0x3e574d([0x73,0x6f,0x72,0x74])]()[_0x3e574d([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x1e51c2,_0x2f1855])=>{_0x34a407(_0x1e51c2),_0x1bb49b(_0x2f1855);}):_0x34a407(window[_0x3e574d([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x42026b));}return _0x1bb49b(_0x47a8be),_0x4f2b23>>>0x0;}function _0x35ad74(_0x165b05){return _0x165b05[_0x3e574d([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x3e574d([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x3e574d([0x30]));}function _0x4834b0(_0x16a4a3){return _0x16a4a3[_0x3e574d([0x73,0x70,0x6c,0x69,0x74])]('')[_0x3e574d([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x3e574d([0x6a,0x6f,0x69,0x6e])]('');}function _0x3f0433(){}function _0x3e574d(_0x1ff503){return _0x1ff503['map'](_0x13aecc=>String['fromCharCode'](_0x13aecc))['join']('');}_0x218db1(await _0x37bae5());}(this);}['_initSchema'](){const _0x279fd6=this['editor']['model']['schema'];_0x279fd6['isRegistered']('imageBlock')&&_0x279fd6['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x279fd6['isRegistered']('imageInline')&&_0x279fd6['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x1c4887=this['editor'];_0x1c4887['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x1c4887['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x892d19=>_0x892d19['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x40af54=_0x1c4887['commands']['get']('replaceImageSource');_0x40af54&&this['listenTo'](_0x40af54,'cleanupImage',(_0x361180,[_0x3fcec7,_0x2f80ed])=>{_0x3fcec7['removeAttribute']('uploadcareImageId',_0x2f80ed);});}['_initConfig'](){const _0x2229d7=this['editor']['config']['get']('uploadcare.uploader')||{},_0x19a82e=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x3bc14f(_0x312e58['document'],'uc-config',{..._0x2229d7,'pubkey':_0x19a82e,'ctx-name':'uploader-'+this['ucContextId'],'sourceList':'','imgOnly':'true','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage'],'externalSourcesEmbedCss':'\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup\x20{\x20padding:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-menu\x20{\x20gap:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-footer\x20{\x20padding-top:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__separator\x20{\x20margin:\x200;\x20}\x0a\x09\x09\x09'}),this['_configElement']['iconHrefResolver']=_0x45b051=>{if('closeMax'==_0x45b051)return'#uc-icon-arrow-down';},_0x312e58['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x3bc14f(_0x312e58['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader-'+this['ucContextId']}),_0x312e58['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x255c6b=this['editor']['commands']['get']('insertImage');_0x255c6b&&this['listenTo'](_0x255c6b,'execute',()=>{const _0x2f2b32=this['editor']['model']['document']['selection']['getSelectedElement']();_0x2f2b32&&_0x2f2b32['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x2f2b32);});});const _0x5bf6c9=this['editor']['commands']['get']('uploadcareImageReplace');_0x5bf6c9&&this['listenTo'](_0x5bf6c9,'execute',()=>{const _0x8fe652=this['editor']['model']['document']['selection']['getSelectedElement']();_0x8fe652&&_0x8fe652['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x8fe652);});});}}class tt extends _0x570584{static get['requires'](){return[o,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x5e65b5){super(_0x5e65b5),_0x5e65b5['config']['define']('uploadcare.uploader.sourceList',[i['Local'],i['URL']]),_0x52d687['defineComponents'](_0x52d687);}}class ii extends _0x1fdb42{constructor(_0x205676){super(_0x205676);const t=_0x205676['t'],_0x2ac1fb=this['bindTemplate'],_0x29e0f3=new _0x3cf05d();_0x29e0f3['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':[_0x29e0f3,{'text':_0x2ac1fb['to']('imageUploadProgress',_0x3d84ab=>t('Loading\x20image...')+'\x20('+(_0x3d84ab||0x0)+'%)')}]},{'tag':'div','attributes':{'class':['ck-uploadcare-form__skeleton']},'children':[{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'}]},{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'}]}]}]});}}class ti extends _0x1fdb42{constructor(_0x1c7970){super(_0x1c7970);const t=_0x1c7970['t'];this['set']('errorType',null);const _0x3a3aca=new _0x359938(_0x1c7970);_0x3a3aca['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x3a3aca['withText']=!0x0,_0x3a3aca['class']='ck-button-action',_0x3a3aca['on']('execute',()=>{this['fire']('retry');}),_0x3a3aca['bind']('isVisible')['to'](this,'errorType',_0x3e6e72=>'NotFound'!==_0x3e6e72);const _0x8295be=new _0x462416();_0x8295be['content']=_0x3ece53,_0x8295be['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x355346=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':[_0x8295be,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x355346['to']('errorType',_0x50293b=>t('NotFound'!==_0x50293b?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x3a3aca]},{'tag':'div','attributes':{'class':['ck-uploadcare-form__skeleton']},'children':[{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'}]},{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'}]}]}]});}}class ei extends _0x1fdb42{constructor(_0x1623da,_0x18327d){super(_0x1623da);const _0x5a774b=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x18327d,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x5a774b['to']('imageSrc')}});}}class X extends F{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0xdc1b2e,_0x12624e,_0x14a61d){super(_0xdc1b2e),this['_items']=this['createCollection'](),this['_loadingView']=new ii(_0xdc1b2e),this['_errorView']=new ti(_0xdc1b2e),this['_editingView']=new ei(_0xdc1b2e,_0x14a61d),this['_focusableView']=new _0x1fdb42(_0xdc1b2e),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x12624e),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'],_0x328341=>{this['_addUploadcareImageEditorListeners'](_0x328341);});}),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'](_0x4a13a9,_0x54f8d5){const _0x5c343d='uc-cloud-image-editor',_0xdcee2f=_0x4a13a9['querySelector'](_0x5c343d);if(_0xdcee2f)return _0x54f8d5(_0xdcee2f);const _0x46d0b2=new MutationObserver(_0x55ea48=>{const _0x575394=_0x55ea48['filter'](_0x3994d7=>_0x3994d7['target']===_0x4a13a9&&_0x3994d7['addedNodes']['length']>0x0&&_0x3994d7['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x5c343d);_0x575394['length']&&(_0x46d0b2['disconnect'](),_0x54f8d5(_0x575394[0x0]['addedNodes'][0x0]));});_0x46d0b2['observe'](_0x4a13a9,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x4699a5){_0x4699a5['addEventListener']('apply',_0x45a5fc=>{this['fire']('apply',{'imageSrc':_0x45a5fc['detail']['cdnUrl']});}),_0x4699a5['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class E extends/* #__PURE__ -- @preserve */
25
+ _0x5d27aa(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x31216b,_0x151aca,_0x22a35a){super(),this['_editor']=_0x31216b,this['_dialog']=_0x151aca,this['_imageElement']=_0x22a35a,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 _0x10d1bb=this['_imageElement'],_0xb84842=_0x10d1bb['getAttribute']('uploadcareImageId'),_0x36cc05=_0x10d1bb['getAttribute']('src');if(_0xb84842)await this['_loadImageInfo'](_0xb84842,_0x36cc05);else{if(this['_imageCache']['has'](_0x36cc05)){const _0x33428f=this['_imageCache']['get'](_0x36cc05);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x33428f['url'],this['imageDimension']=_0x33428f['dimension'],this['imageId']=_0x33428f['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x1c883d}=this['_editor'],t=_0x1c883d['t'],_0x41ef22=new X(_0x1c883d,this['imageStatus'],this['_attributes']);_0x41ef22['bind']('status')['to'](this,'imageStatus'),_0x41ef22['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x41ef22['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x41ef22['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x41ef22,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x27e0e8,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x41ef22,'position':_0x3cd8f3['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x41ef22['focus']();},'onHide':()=>{_0x41ef22['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x22cdbf=>!S(_0x22cdbf,_0x41ef22['element'])}});}['_loadImageInfo'](_0x139a1b,_0x33fb71){return j['getInfo'](_0x139a1b,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey')})['then'](_0x5c1f35=>{const {width:_0x5816c3,height:_0x235574}=_0x5c1f35['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x33fb71,this['imageDimension']={'width':_0x5816c3,'height':_0x235574},this['imageId']=_0x139a1b;})['catch'](_0x94bf5a=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x94bf5a['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x4a93e3,_0x356af8){return this['_getImageAsFile'](_0x4a93e3)['then'](_0x37b5d4=>j['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'signal':_0x356af8['signal'],'file':_0x37b5d4,'onProgress':_0x433fd2=>{_0x433fd2&&_0x433fd2['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x433fd2['value']));}}))['then'](_0x1ab995=>{const {width:_0x33760f,height:_0xb0a09c}=_0x1ab995['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x1ab995['cdnUrl'],this['imageDimension']={'width':_0x33760f,'height':_0xb0a09c},this['imageId']=_0x1ab995['uuid'],this['imageUploadProgress']=null;const _0x4a3358=_0x4a93e3['getAttribute']('src');this['_imageCache']['set'](_0x4a3358,{'id':_0x1ab995['uuid'],'url':_0x1ab995['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x254e55=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x254e55['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x3f0fce,_0x127f47){_0x3f0fce['on']('apply',(_0x7ff897,_0x19f71f)=>{this['_replaceImage'](_0x127f47,_0x19f71f['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x3f0fce['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x3f0fce['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x2dfcd4,_0xdff10a,_0x2a7da3){const _0x5c7b05=this['_editor'],{width:_0x2a349d,height:_0x4669d7}=C(_0xdff10a,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x157be1,imageSources:_0xc7b9d9}=k(_0xdff10a,_0x2a349d);_0x5c7b05['model']['change'](_0x12fd2b=>{if('$graveyard'===_0x2dfcd4['root']['rootName']){_0x5c7b05['execute']('insertImage',{'imageType':_0x2dfcd4['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x2dfcd4['getAttributes']()),'uploadcareImageId':_0x2a7da3,'src':_0x157be1,'sources':_0xc7b9d9,'width':_0x2a349d,'height':_0x4669d7}});const _0x3310f1=_0x2dfcd4['getChildren']();_0x2dfcd4=_0x5c7b05['model']['document']['selection']['getSelectedElement']();for(const _0x251fd7 of _0x3310f1)_0x12fd2b['append'](_0x12fd2b['cloneElement'](_0x251fd7),_0x2dfcd4);}else _0x12fd2b['setSelection'](_0x2dfcd4,'on'),_0x5c7b05['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x2dfcd4['getAttributes']()),'uploadcareImageId':_0x2a7da3,'src':_0x157be1,'sources':_0xc7b9d9,'width':_0x2a349d,'height':_0x4669d7},_0x2dfcd4);_0x12fd2b['setSelection'](_0x2dfcd4,'on');});}async['_getImageAsFile'](_0x2818d4){const _0x381c06=_0x312e58['window'],_0x2bd33a=_0x312e58['document']['location']['href'],_0x3a45b9=new _0x381c06['URL'](_0x2818d4['getAttribute']('src'),_0x2bd33a);if('data:'===_0x3a45b9['protocol']){const _0x5cf2af=_0x3a45b9['href']['split'](','),_0x4b979c=_0x5cf2af[0x0]['match'](/:(.*?);/)[0x1],_0x36a342=_0x4b979c['split']('/')[0x1],_0xec8f73=_0x381c06['atob'](_0x5cf2af[_0x5cf2af['length']-0x1]);let _0x4bb6ba=_0xec8f73['length'];const _0x492087=new _0x381c06['Uint8Array'](_0x4bb6ba);for(;_0x4bb6ba--;)_0x492087[_0x4bb6ba]=_0xec8f73['charCodeAt'](_0x4bb6ba);return new _0x381c06['File']([_0x492087],'image.'+_0x36a342,{'type':_0x4b979c});}const _0x443ad9=_0x3a45b9['href']['split']('/'),_0x19f97b=_0x443ad9[_0x443ad9['length']-0x1],_0x4b33ba=_0x19f97b['split']('.')[0x1];return _0x381c06['fetch'](_0x3a45b9['href'])['then'](_0x44454b=>_0x44454b['clone']()['blob']())['then'](_0x24ab6c=>new _0x381c06['File']([_0x24ab6c],_0x19f97b,{'type':'image/'+_0x4b33ba}));}}class O extends _0x31bcb9{['imageEditController'];static get['requires'](){return[_0x6c8f89];}['_isEditable'];constructor(_0x4a5845){super(_0x4a5845),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x56f3af){const _0x5ec358=G(_0x56f3af);return _0x1a8333=>!(!_0x1a8333||!_0x1a8333['is']('element','imageBlock')&&!_0x1a8333['is']('element','imageInline'))&&(!!_0x1a8333['hasAttribute']('uploadcareImageId')||!!_0x1a8333['hasAttribute']('src')&&_0x5ec358(_0x1a8333['getAttribute']('src')));}(_0x4a5845['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x37dfc3=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x37dfc3);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x4a3c9e=this['editor']['model']['document']['selection']['getSelectedElement']();_0x4a3c9e&&(_0x4a3c9e['is']('element','imageBlock')||_0x4a3c9e['is']('element','imageInline'))&&(this['imageEditController']=new E(this['editor'],this['editor']['plugins']['get'](_0x6c8f89),_0x4a3c9e),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class R extends _0x31bcb9{['refresh'](){const _0x7035da=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x7035da&&(_0x7035da['is']('element','imageBlock')||_0x7035da['is']('element','imageInline')));}['execute'](_0x4766e3){const _0x1a93c0=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x2fccb6=>{_0x2fccb6['setAttributes'](_0x4766e3,_0x1a93c0),_0x2fccb6['removeAttribute']('srcset',_0x1a93c0),_0x2fccb6['removeAttribute']('sizes',_0x1a93c0);});}}class m extends _0x570584{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[o,_0x25394d,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x2174e4}=this;_0x2174e4['commands']['add']('uploadcareImageEdit',new O(_0x2174e4)),_0x2174e4['commands']['add']('uploadcareImageReplace',new R(_0x2174e4));}}class g extends _0x570584{['_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 _0x1791e2=this['editor'];_0x1791e2['ui']['componentFactory']['add']('uploadcareImageEdit',_0x5041e6=>{const _0x41ace8=_0x1791e2['commands']['get']('uploadcareImageEdit'),_0xe7e5b0=new _0x359938(_0x5041e6),t=_0x5041e6['t'];return _0xe7e5b0['set']({'icon':_0x27e0e8,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0xe7e5b0['bind']('isEnabled')['to'](_0x41ace8),_0xe7e5b0['bind']('isOn')['to'](_0x41ace8,'isActive'),this['listenTo'](_0xe7e5b0,'execute',()=>{_0x1791e2['execute']('uploadcareImageEdit'),_0x1791e2['editing']['view']['focus']();}),_0xe7e5b0;}),this['_initConfig']();}['_initConfig'](){const _0x4c637a=_0x3bc14f(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x4c637a),this['listenTo'](this['editor'],'destroy',()=>{_0x4c637a['remove']();});}}class et extends _0x570584{static get['pluginName'](){return'UploadcareImageEdit';}static get['requires'](){return[m,g];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{tt as Uploadcare,w as UploadcareCommand,o as UploadcareEditing,et as UploadcareImageEdit,O as UploadcareImageEditCommand,m as UploadcareImageEditEditing,g as UploadcareImageEditUI,e as UploadcareUI,f as UploadcareUploadAdapter};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ckeditor/ckeditor5-uploadcare",
3
- "version": "0.0.0-nightly-20250628.0",
3
+ "version": "0.0.0-nightly-20250630.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-20250628.0",
27
- "@ckeditor/ckeditor5-icons": "0.0.0-nightly-20250628.0",
28
- "@ckeditor/ckeditor5-image": "0.0.0-nightly-20250628.0",
29
- "@ckeditor/ckeditor5-theme-lark": "0.0.0-nightly-20250628.0",
30
- "@ckeditor/ckeditor5-ui": "0.0.0-nightly-20250628.0",
31
- "@ckeditor/ckeditor5-upload": "0.0.0-nightly-20250628.0",
32
- "@ckeditor/ckeditor5-utils": "0.0.0-nightly-20250628.0",
33
- "ckeditor5": "0.0.0-nightly-20250628.0",
26
+ "@ckeditor/ckeditor5-core": "0.0.0-nightly-20250630.0",
27
+ "@ckeditor/ckeditor5-icons": "0.0.0-nightly-20250630.0",
28
+ "@ckeditor/ckeditor5-image": "0.0.0-nightly-20250630.0",
29
+ "@ckeditor/ckeditor5-theme-lark": "0.0.0-nightly-20250630.0",
30
+ "@ckeditor/ckeditor5-ui": "0.0.0-nightly-20250630.0",
31
+ "@ckeditor/ckeditor5-upload": "0.0.0-nightly-20250630.0",
32
+ "@ckeditor/ckeditor5-utils": "0.0.0-nightly-20250630.0",
33
+ "ckeditor5": "0.0.0-nightly-20250630.0",
34
34
  "@uploadcare/file-uploader": "1.16.3-alpha.0",
35
35
  "@uploadcare/upload-client": "6.14.3"
36
36
  },
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0xd02446=_0x1374;(function(_0x1aa859,_0xb7d8f9){const _0x3065e1=_0x1374,_0x19791d=_0x1aa859();while(!![]){try{const _0xacfa3a=parseInt(_0x3065e1(0x1de))/0x1+-parseInt(_0x3065e1(0x1e0))/0x2+-parseInt(_0x3065e1(0x224))/0x3*(-parseInt(_0x3065e1(0x213))/0x4)+-parseInt(_0x3065e1(0x1fa))/0x5*(parseInt(_0x3065e1(0x204))/0x6)+parseInt(_0x3065e1(0x206))/0x7*(parseInt(_0x3065e1(0x222))/0x8)+-parseInt(_0x3065e1(0x202))/0x9+-parseInt(_0x3065e1(0x1e5))/0xa*(-parseInt(_0x3065e1(0x1dc))/0xb);if(_0xacfa3a===_0xb7d8f9)break;else _0x19791d['push'](_0x19791d['shift']());}catch(_0x14d586){_0x19791d['push'](_0x19791d['shift']());}}}(_0x449b,0x60f9b));function _0x449b(){const _0x45d89a=['conversion','_initCtx','\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','_initSchema','closeMax','pluginName','isRegistered','editor','attributeToAttribute','elementToAttribute','remove','appendChild','52cvrSBg','ctxElement','iconHrefResolver','execute','querySelector','_ctxElement','config','upcast','join','uploadcare','for','model','listenTo','editing','get','8ZqiRBU','extend','32367ZzLBSx','_initConfig','getAttribute','_configElement','replaceImageSource','commands','configElement','init','imageInline','PictureEditing','map','_initConversion','imageBlock','add','11XsnbJf','fromCharCode','513005bZiLea','data-uc-image-id','297638DyHItG','uc-upload-ctx-provider','isOfficialPlugin','render','uploadcare.pubkey','3784330BWKMZo','locale','getSelectedElement','uploadcareImageReplace','#uc-icon-arrow-down','downcast','document','href','uploadcareImageId','_initImageProcessingIndicator','requires','UploadcareEditing','uploadcare.uploader','uploader-','input[uploadcare-file-input]','true','afterInit','selection','view','ucContextId','schema','21155IVADlB','destroy','body','isPremiumPlugin','once','insertImage','uc-config','cleanupImage','376614tmNJBx','removeAttribute','738usYkaQ','contentLanguage','536158MlmPzb'];_0x449b=function(){return _0x45d89a;};return _0x449b();}import{Plugin as _0x257d5b}from'ckeditor5/src/core.js';import{Dialog as _0x474984}from'ckeditor5/src/ui.js';import{createElement as _0x1a9d8c,global as _0x3630d7,uid as _0x232b13}from'ckeditor5/src/utils.js';import{UploadcareCommand as _0x39ec99}from'./uploadcarecommand.js';import{UploadcareUploadAdapter as _0x57e420}from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0x480028}from'./utils/editingutils.js';function _0x1374(_0x35d61a,_0x5d2770){const _0x449bf8=_0x449b();return _0x1374=function(_0x137493,_0x1f2f96){_0x137493=_0x137493-0x1d6;let _0x167a3c=_0x449bf8[_0x137493];return _0x167a3c;},_0x1374(_0x35d61a,_0x5d2770);}export class UploadcareEditing extends _0x257d5b{[_0xd02446(0x227)]=null;[_0xd02446(0x218)]=null;static get[_0xd02446(0x20c)](){const _0x11a529=_0xd02446;return _0x11a529(0x1f0);}static get[_0xd02446(0x1ef)](){const _0x49c804=_0xd02446;return[_0x49c804(0x1d7),_0x57e420,_0x474984];}static get[_0xd02446(0x1e2)](){return!0x0;}static get[_0xd02446(0x1fd)](){return!0x0;}[_0xd02446(0x1f8)];get[_0xd02446(0x22a)](){const _0x12d73f=_0xd02446;return this[_0x12d73f(0x227)];}get[_0xd02446(0x214)](){const _0x196760=_0xd02446;return this[_0x196760(0x218)];}constructor(_0x3d2725){const _0x5f4abd=_0xd02446;super(_0x3d2725),this[_0x5f4abd(0x1f8)]=_0x232b13();}[_0xd02446(0x22b)](){const _0x2fafed=_0xd02446,_0x16093c=this[_0x2fafed(0x20e)];_0x16093c[_0x2fafed(0x229)][_0x2fafed(0x1db)](_0x2fafed(0x21c),new _0x39ec99(_0x16093c));}[_0xd02446(0x1f5)](){const _0x45f964=_0xd02446;this[_0x45f964(0x20a)](),this[_0x45f964(0x1d9)](),this[_0x45f964(0x225)](),this[_0x45f964(0x208)](),this[_0x45f964(0x1ee)](),this[_0x45f964(0x21f)](this[_0x45f964(0x20e)],_0x45f964(0x1fb),()=>{const _0x15b99=_0x45f964;this[_0x15b99(0x227)]&&(this[_0x15b99(0x227)][_0x15b99(0x211)](),this[_0x15b99(0x227)]=null),this[_0x15b99(0x218)]&&(this[_0x15b99(0x218)][_0x15b99(0x211)](),this[_0x15b99(0x218)]=null);const _0x356c70=_0x3630d7[_0x15b99(0x1eb)][_0x15b99(0x217)](_0x15b99(0x1f3));_0x356c70&&_0x356c70[_0x15b99(0x211)]();}),async function(_0xb350fc){const _0x4e559d=_0x11361e([0x77,0x36,0x37,0x42,0x41,0x6d,0x6f,0x4c,0x53,0x52,0x30,0x78,0x4e,0x32,0x63,0x6b,0x55,0x69,0x79,0x6a,0x66,0x67,0x6c,0x31,0x38,0x64,0x72,0x65,0x35,0x58,0x44,0x5a,0x4a,0x59,0x48,0x56,0x75,0x51,0x43,0x4b,0x6e,0x73,0x7a,0x68,0x46,0x74,0x47,0x4f,0x70,0x50,0x62,0x49,0x54,0x45,0x71,0x39,0x76,0x61,0x34,0x33,0x4d,0x57]),_0x4a1bcb=0x3368afbd,_0xa5fc83=0x336fc3b5^_0x4a1bcb,_0x2429da=window[_0x11361e([0x44,0x61,0x74,0x65])][_0x11361e([0x6e,0x6f,0x77])](),_0xeb7c9=_0xb350fc[_0x11361e([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x45df25=new window[(_0x11361e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x30a00b=>{_0xeb7c9[_0x11361e([0x6f,0x6e,0x63,0x65])](_0x11361e([0x72,0x65,0x61,0x64,0x79]),_0x30a00b);}),_0x63a902={[_0x11361e([0x6b,0x74,0x79])]:_0x11361e([0x45,0x43]),[_0x11361e([0x75,0x73,0x65])]:_0x11361e([0x73,0x69,0x67]),[_0x11361e([0x63,0x72,0x76])]:_0x11361e([0x50,0x2d,0x32,0x35,0x36]),[_0x11361e([0x78])]:_0x11361e([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]),[_0x11361e([0x79])]:_0x11361e([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]),[_0x11361e([0x61,0x6c,0x67])]:_0x11361e([0x45,0x53,0x32,0x35,0x36])},_0x4ca53e=_0xeb7c9[_0x11361e([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x11361e([0x67,0x65,0x74])](_0x11361e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x5d60d6(){let _0xd705d,_0xbd32a0=null,_0x3ee63a=null;try{if(_0x4ca53e==_0x11361e([0x47,0x50,0x4c]))return _0x11361e([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0xd705d=_0x4eb415(),!_0xd705d)return _0x11361e([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0xd705d[_0x11361e([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x3ee63a=_0x1ea60e(_0xd705d[_0x11361e([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0xd705d[_0x11361e([0x6a,0x74,0x69])])),await _0x4d23ea()?_0x2ed304()?_0x538a2c()?_0x11361e([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x22e30f()?(_0xd705d[_0x11361e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x11361e([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0xbd32a0=_0x48e99e(_0x11361e([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0xd705d[_0x11361e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x11361e([0x74,0x72,0x69,0x61,0x6c])&&(_0xbd32a0=_0x48e99e(_0x11361e([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x2fced6()):_0x11361e([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x11361e([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x11361e([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x11361e([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x538a2c(){const _0x3abafa=[_0x11361e([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x11361e([0x74,0x72,0x69,0x61,0x6c])][_0x11361e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xd705d[_0x11361e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x2429da/0x3e8:0xe10*_0xa5fc83;return _0xd705d[_0x11361e([0x65,0x78,0x70])]<_0x3abafa;}function _0x2ed304(){const _0x5e2de6=_0xd705d[_0x11361e([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x5e2de6&&(!!_0x5e2de6[_0x11361e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x11361e([0x2a]))||!!_0x5e2de6[_0x11361e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x11361e([0x55,0x50,0x4c,0x43])));}function _0x22e30f(){const _0x5a5721=_0x1374,_0x31cbe1=_0xd705d[_0x11361e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x31cbe1||0x0==_0x31cbe1[_0x11361e([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x36c597}=new URL(window[_0x11361e([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x5a5721(0x1ec)]);if(_0x31cbe1[_0x11361e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x36c597))return!0x0;const _0x2c909a=_0x36c597[_0x11361e([0x73,0x70,0x6c,0x69,0x74])](_0x11361e([0x2e]));return _0x31cbe1[_0x11361e([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x4a8002=>_0x4a8002[_0x11361e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x11361e([0x2a])))[_0x11361e([0x6d,0x61,0x70])](_0x27a06c=>_0x27a06c[_0x11361e([0x73,0x70,0x6c,0x69,0x74])](_0x11361e([0x2e])))[_0x11361e([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x45111c=>_0x45111c[_0x11361e([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x2c909a[_0x11361e([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x11361e([0x6d,0x61,0x70])](_0x227d0b=>Array(_0x2c909a[_0x11361e([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x227d0b[_0x11361e([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x11361e([0x66,0x69,0x6c,0x6c])](_0x227d0b[0x0]===_0x11361e([0x2a])?_0x11361e([0x2a]):'')[_0x11361e([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x227d0b))[_0x11361e([0x73,0x6f,0x6d,0x65])](_0x9fd26=>_0x2c909a[_0x11361e([0x65,0x76,0x65,0x72,0x79])]((_0x2c5c39,_0x5cb26a)=>_0x9fd26[_0x5cb26a]===_0x2c5c39||_0x9fd26[_0x5cb26a]===_0x11361e([0x2a])));}function _0x2fced6(){return _0xbd32a0&&_0x3ee63a?new window[(_0x11361e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x16bf45,_0xf40da5)=>{_0xbd32a0[_0x11361e([0x74,0x68,0x65,0x6e])](_0x16bf45,_0xf40da5),_0x3ee63a[_0x11361e([0x74,0x68,0x65,0x6e])](_0x541fd5=>{_0x541fd5!=_0x11361e([0x56,0x61,0x6c,0x69,0x64])&&_0x16bf45(_0x541fd5);},_0xf40da5);}):_0xbd32a0||_0x3ee63a||_0x11361e([0x56,0x61,0x6c,0x69,0x64]);}}function _0x1ea60e(_0x2cf80d,_0x8917f3){return new window[(_0x11361e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x160886=>{if(_0x1b2665())return _0x160886(_0x11361e([0x56,0x61,0x6c,0x69,0x64]));_0x31d878(),_0xeb7c9[_0x11361e([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x11361e([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x3b8813=!0x1;const _0x44220c=_0x232b13();function _0x1e69f0(_0xea2e18){return!!_0xea2e18&&(typeof _0xea2e18===_0x11361e([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0xea2e18===_0x11361e([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0xea2e18[_0x11361e([0x74,0x68,0x65,0x6e])]===_0x11361e([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0xea2e18[_0x11361e([0x63,0x61,0x74,0x63,0x68])]===_0x11361e([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x3cb718(_0xb1e18b){_0x2878bc(_0xb1e18b)[_0x11361e([0x74,0x68,0x65,0x6e])](_0x124372=>{if(!_0x124372||_0x124372[_0x11361e([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x11361e([0x6f,0x6b]))return _0x11361e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x571355(_0x2c382f(_0x44220c+_0x8917f3))!=_0x124372[_0x11361e([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x11361e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x11361e([0x56,0x61,0x6c,0x69,0x64]);})[_0x11361e([0x74,0x68,0x65,0x6e])](_0x266e93=>(_0xf6757c(),_0x266e93),()=>{const _0x449c3d=_0x540765();return null==_0x449c3d?(_0xf6757c(),_0x11361e([0x56,0x61,0x6c,0x69,0x64])):_0x11361e(_0x2429da-_0x449c3d>(0x17642bbd^_0x4a1bcb)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x11361e([0x74,0x68,0x65,0x6e])](_0x160886)[_0x11361e([0x63,0x61,0x74,0x63,0x68])](()=>{_0x160886(_0x11361e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x52a387=0x335e413d^_0x4a1bcb;function _0xf6757c(){const _0x58719f=_0x11361e([0x6c,0x6c,0x63,0x74,0x2d])+_0x571355(_0x2c382f(_0x2cf80d)),_0x169c24=_0x1bf862(_0x571355(window[_0x11361e([0x4d,0x61,0x74,0x68])][_0x11361e([0x63,0x65,0x69,0x6c])](_0x2429da/_0x52a387)));window[_0x11361e([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x11361e([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x58719f,_0x169c24);}function _0x540765(){const _0x590c16=_0x11361e([0x6c,0x6c,0x63,0x74,0x2d])+_0x571355(_0x2c382f(_0x2cf80d)),_0x1126ae=window[_0x11361e([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x11361e([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x590c16);return _0x1126ae?window[_0x11361e([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1bf862(_0x1126ae),0x10)*_0x52a387:null;}function _0x2878bc(_0x53b568){return new window[(_0x11361e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0xb7f231,_0x263fc5)=>{_0x53b568[_0x11361e([0x74,0x68,0x65,0x6e])](_0xb7f231,_0x263fc5),window[_0x11361e([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x263fc5,0x33697b7d^_0x4a1bcb);});}}_0xeb7c9[_0x11361e([0x6f,0x6e])](_0x11361e([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x1b92eb,_0x1f5167)=>{if(_0x1f5167[0x0]!=_0x2cf80d)return _0x160886(_0x11361e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x1f5167[0x1]={..._0x1f5167[0x1],[_0x11361e([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x44220c};},{[_0x11361e([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x11361e([0x68,0x69,0x67,0x68])}),_0xeb7c9[_0x11361e([0x6f,0x6e])](_0x11361e([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x15d37f=>{_0x1e69f0(_0x15d37f[_0x11361e([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x3b8813=!0x0,_0x3cb718(_0x15d37f[_0x11361e([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x11361e([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x11361e([0x6c,0x6f,0x77])}),_0x45df25[_0x11361e([0x74,0x68,0x65,0x6e])](()=>{_0x3b8813||_0x160886(_0x11361e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x1b2665(){return _0xeb7c9[_0x11361e([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x11361e([0x76,0x69,0x65,0x77])][_0x11361e([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x11361e([0x61,0x75,0x74,0x6f]);}function _0x31d878(){_0xeb7c9[_0x11361e([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x11361e([0x76,0x69,0x65,0x77])][_0x11361e([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x11361e([0x61,0x75,0x74,0x6f]);}}function _0x48e99e(_0x59ba25){const _0xa63977=[new window[(_0x11361e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x29115c=>setTimeout(_0x29115c,0x33619171^_0x4a1bcb)),_0x45df25[_0x11361e([0x74,0x68,0x65,0x6e])](()=>new window[(_0x11361e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1673da=>{let _0x566409=0x0;_0xeb7c9[_0x11361e([0x6d,0x6f,0x64,0x65,0x6c])][_0x11361e([0x6f,0x6e])](_0x11361e([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x3b8f8b,_0x4e57e8)=>{_0x4e57e8[0x0][_0x11361e([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x566409++,_0x566409==(0x3368ae45^_0x4a1bcb)&&(_0x1673da(),_0x3b8f8b[_0x11361e([0x6f,0x66,0x66])]());});}))];return window[_0x11361e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x11361e([0x72,0x61,0x63,0x65])](_0xa63977)[_0x11361e([0x74,0x68,0x65,0x6e])](()=>_0x59ba25);}async function _0x575b26(){await _0x45df25,_0xeb7c9[_0x11361e([0x6d,0x6f,0x64,0x65,0x6c])][_0x11361e([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x557620,_0xeb7c9[_0x11361e([0x6d,0x6f,0x64,0x65,0x6c])][_0x11361e([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x557620,_0xeb7c9[_0x11361e([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x11361e([0x6d,0x6f,0x64,0x65,0x6c]));}function _0xd44b4(_0x2f67a9){const _0x2afcdc=_0x5cd95c();_0xeb7c9[_0x2afcdc]=_0x11361e([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x2f67a9,_0x2f67a9!=_0x11361e([0x56,0x61,0x6c,0x69,0x64])&&_0x575b26();}function _0x5cd95c(){const _0x1ccf4f=window[_0x11361e([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x11361e([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x11361e([0x6e,0x6f,0x77])]())[_0x11361e([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x11361e([0x2e]),'');let _0x1d414b=_0x11361e([0x77]);for(let _0x5562bf=0x0;_0x5562bf<_0x1ccf4f[_0x11361e([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x5562bf+=0x2){let _0x548c38=window[_0x11361e([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1ccf4f[_0x11361e([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x5562bf,_0x5562bf+0x2));_0x548c38>=_0x4e559d[_0x11361e([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x548c38-=_0x4e559d[_0x11361e([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x1d414b+=_0x4e559d[_0x548c38];}return _0x1d414b;}function _0x4eb415(){const _0xd08de0=_0x4ca53e[_0x11361e([0x73,0x70,0x6c,0x69,0x74])](_0x11361e([0x2e]));if(0x3!=_0xd08de0[_0x11361e([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x56f073(_0xd08de0[0x1]);function _0x56f073(_0x3f244f){const _0x3c79ff=_0xb33335(_0x3f244f);return _0x3c79ff&&_0x5a595d()?_0x3c79ff:null;function _0x5a595d(){const _0x508840=_0x3c79ff[_0x11361e([0x6a,0x74,0x69])],_0x274404=window[_0x11361e([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x508840[_0x11361e([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x508840[_0x11361e([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x70736d={..._0x3c79ff,[_0x11361e([0x6a,0x74,0x69])]:_0x508840[_0x11361e([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x508840[_0x11361e([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x70736d[_0x11361e([0x76,0x63])],_0x2c382f(_0x70736d)==_0x274404;}}}async function _0x4d23ea(){let _0x9b1ac0=!0x0;try{const _0x583b19=_0x4ca53e[_0x11361e([0x73,0x70,0x6c,0x69,0x74])](_0x11361e([0x2e])),[_0x509358,_0x1333a0,_0x2903e]=_0x583b19;return _0xc21479(_0x509358),await _0x30036d(_0x509358,_0x1333a0,_0x2903e),_0x9b1ac0;}catch{return!0x1;}function _0xc21479(_0x4f8adb){const _0x2ba42d=_0xb33335(_0x4f8adb);_0x2ba42d&&_0x2ba42d[_0x11361e([0x61,0x6c,0x67])]==_0x11361e([0x45,0x53,0x32,0x35,0x36])||(_0x9b1ac0=!0x1);}async function _0x30036d(_0x53f44b,_0x14ecf9,_0x3f013f){const _0x360580=window[_0x11361e([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x11361e([0x66,0x72,0x6f,0x6d])](_0x34af13(_0x3f013f),_0x5904d4=>_0x5904d4[_0x11361e([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x5d0b00=new window[(_0x11361e([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x11361e([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x53f44b+_0x11361e([0x2e])+_0x14ecf9),_0x245a4a=window[_0x11361e([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x11361e([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x245a4a)return;const _0x4a3429=await _0x245a4a[_0x11361e([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x11361e([0x6a,0x77,0x6b]),_0x63a902,{[_0x11361e([0x6e,0x61,0x6d,0x65])]:_0x11361e([0x45,0x43,0x44,0x53,0x41]),[_0x11361e([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x11361e([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x11361e([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x245a4a[_0x11361e([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x11361e([0x6e,0x61,0x6d,0x65])]:_0x11361e([0x45,0x43,0x44,0x53,0x41]),[_0x11361e([0x68,0x61,0x73,0x68])]:{[_0x11361e([0x6e,0x61,0x6d,0x65])]:_0x11361e([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x4a3429,_0x360580,_0x5d0b00)||(_0x9b1ac0=!0x1);}}function _0xb33335(_0x4edc29){return _0x4edc29[_0x11361e([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x11361e([0x65,0x79]))?JSON[_0x11361e([0x70,0x61,0x72,0x73,0x65])](_0x34af13(_0x4edc29)):null;}function _0x34af13(_0x524f6e){return window[_0x11361e([0x61,0x74,0x6f,0x62])](_0x524f6e[_0x11361e([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x11361e([0x2b]))[_0x11361e([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x11361e([0x2f])));}function _0x2c382f(_0x5da3ba){let _0x418334=0x1505;function _0x2b01f1(_0x4cc8eb){for(let _0x249bed=0x0;_0x249bed<_0x4cc8eb[_0x11361e([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x249bed++){const _0x3a19d9=_0x4cc8eb[_0x11361e([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x249bed);_0x418334=(_0x418334<<0x5)+_0x418334+_0x3a19d9,_0x418334&=_0x418334;}}function _0x305b69(_0x3222a0){Array[_0x11361e([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x3222a0)?_0x3222a0[_0x11361e([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x305b69):_0x3222a0&&typeof _0x3222a0==_0x11361e([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x11361e([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x3222a0)[_0x11361e([0x73,0x6f,0x72,0x74])]()[_0x11361e([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x1c33fb,_0x5c9e98])=>{_0x2b01f1(_0x1c33fb),_0x305b69(_0x5c9e98);}):_0x2b01f1(window[_0x11361e([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x3222a0));}return _0x305b69(_0x5da3ba),_0x418334>>>0x0;}function _0x571355(_0x220439){return _0x220439[_0x11361e([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x11361e([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x11361e([0x30]));}function _0x1bf862(_0x168064){return _0x168064[_0x11361e([0x73,0x70,0x6c,0x69,0x74])]('')[_0x11361e([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x11361e([0x6a,0x6f,0x69,0x6e])]('');}function _0x557620(){}function _0x11361e(_0x49fe74){const _0x10e4ac=_0x1374;return _0x49fe74[_0x10e4ac(0x1d8)](_0x5b6c24=>String[_0x10e4ac(0x1dd)](_0x5b6c24))[_0x10e4ac(0x21b)]('');}_0xd44b4(await _0x5d60d6());}(this);}[_0xd02446(0x20a)](){const _0x58b6a7=_0xd02446,_0x454574=this[_0x58b6a7(0x20e)][_0x58b6a7(0x21e)][_0x58b6a7(0x1f9)];_0x454574[_0x58b6a7(0x20d)](_0x58b6a7(0x1da))&&_0x454574[_0x58b6a7(0x223)](_0x58b6a7(0x1da),{'allowAttributes':[_0x58b6a7(0x1ed)]}),_0x454574[_0x58b6a7(0x20d)](_0x58b6a7(0x1d6))&&_0x454574[_0x58b6a7(0x223)](_0x58b6a7(0x1d6),{'allowAttributes':[_0x58b6a7(0x1ed)]});}[_0xd02446(0x1d9)](){const _0x66488f=_0xd02446,_0x1bba32=this[_0x66488f(0x20e)];_0x1bba32[_0x66488f(0x207)][_0x66488f(0x21d)](_0x66488f(0x1ea))[_0x66488f(0x20f)]({'model':_0x66488f(0x1ed),'view':_0x66488f(0x1df)}),_0x1bba32[_0x66488f(0x207)][_0x66488f(0x21d)](_0x66488f(0x21a))[_0x66488f(0x210)]({'model':{'key':_0x66488f(0x1ed),'value':_0x36e3b5=>_0x36e3b5[_0x66488f(0x226)](_0x66488f(0x1df))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x162ed6=_0x1bba32[_0x66488f(0x229)][_0x66488f(0x221)](_0x66488f(0x228));_0x162ed6&&this[_0x66488f(0x21f)](_0x162ed6,_0x66488f(0x201),(_0x582c0a,[_0x4c8a85,_0x268723])=>{const _0x1adbcc=_0x66488f;_0x4c8a85[_0x1adbcc(0x203)](_0x1adbcc(0x1ed),_0x268723);});}[_0xd02446(0x225)](){const _0x111df0=_0xd02446,_0x3303f0=this[_0x111df0(0x20e)][_0x111df0(0x219)][_0x111df0(0x221)](_0x111df0(0x1f1))||{},_0x593e71=this[_0x111df0(0x20e)][_0x111df0(0x219)][_0x111df0(0x221)](_0x111df0(0x1e4))||'';this[_0x111df0(0x227)]=_0x1a9d8c(_0x3630d7[_0x111df0(0x1eb)],_0x111df0(0x200),{..._0x3303f0,'pubkey':_0x593e71,'ctx-name':_0x111df0(0x1f2)+this[_0x111df0(0x1f8)],'sourceList':'','imgOnly':_0x111df0(0x1f4),'removeCopyright':_0x111df0(0x1f4),'localeName':this[_0x111df0(0x20e)][_0x111df0(0x1e6)][_0x111df0(0x205)],'externalSourcesEmbedCss':_0x111df0(0x209)}),this[_0x111df0(0x227)][_0x111df0(0x215)]=_0x1531ef=>{const _0x4ea108=_0x111df0;if(_0x4ea108(0x20b)==_0x1531ef)return _0x4ea108(0x1e9);},_0x3630d7[_0x111df0(0x1eb)][_0x111df0(0x1fc)][_0x111df0(0x212)](this[_0x111df0(0x227)]);}[_0xd02446(0x208)](){const _0x1f55e5=_0xd02446;this[_0x1f55e5(0x218)]=_0x1a9d8c(_0x3630d7[_0x1f55e5(0x1eb)],_0x1f55e5(0x1e1),{'ctx-name':_0x1f55e5(0x1f2)+this[_0x1f55e5(0x1f8)]}),_0x3630d7[_0x1f55e5(0x1eb)][_0x1f55e5(0x1fc)][_0x1f55e5(0x212)](this[_0x1f55e5(0x218)]);}[_0xd02446(0x1ee)](){const _0x1a4bf1=_0xd02446,_0x225217=this[_0x1a4bf1(0x20e)][_0x1a4bf1(0x229)][_0x1a4bf1(0x221)](_0x1a4bf1(0x1ff));_0x225217&&this[_0x1a4bf1(0x21f)](_0x225217,_0x1a4bf1(0x216),()=>{const _0x5c3b13=_0x1a4bf1,_0x4ba466=this[_0x5c3b13(0x20e)][_0x5c3b13(0x21e)][_0x5c3b13(0x1eb)][_0x5c3b13(0x1f6)][_0x5c3b13(0x1e7)]();_0x4ba466&&_0x4ba466[_0x5c3b13(0x226)](_0x5c3b13(0x1ed))&&this[_0x5c3b13(0x20e)][_0x5c3b13(0x220)][_0x5c3b13(0x1f7)][_0x5c3b13(0x1fe)](_0x5c3b13(0x1e3),()=>{const _0x4eac2a=_0x5c3b13;_0x480028(this[_0x4eac2a(0x20e)],_0x4ba466);});});const _0x830e05=this[_0x1a4bf1(0x20e)][_0x1a4bf1(0x229)][_0x1a4bf1(0x221)](_0x1a4bf1(0x1e8));_0x830e05&&this[_0x1a4bf1(0x21f)](_0x830e05,_0x1a4bf1(0x216),()=>{const _0x1b9314=_0x1a4bf1,_0x163053=this[_0x1b9314(0x20e)][_0x1b9314(0x21e)][_0x1b9314(0x1eb)][_0x1b9314(0x1f6)][_0x1b9314(0x1e7)]();_0x163053&&_0x163053[_0x1b9314(0x226)](_0x1b9314(0x1ed))&&this[_0x1b9314(0x20e)][_0x1b9314(0x220)][_0x1b9314(0x1f7)][_0x1b9314(0x1fe)](_0x1b9314(0x1e3),()=>{const _0x29462b=_0x1b9314;_0x480028(this[_0x29462b(0x20e)],_0x163053);});});}}
23
+ const _0x3ae05e=_0x237c;(function(_0x2f343e,_0x509a66){const _0x3f75a8=_0x237c,_0x5e8707=_0x2f343e();while(!![]){try{const _0x26b58a=parseInt(_0x3f75a8(0x1af))/0x1+-parseInt(_0x3f75a8(0x1e0))/0x2+parseInt(_0x3f75a8(0x1d9))/0x3*(-parseInt(_0x3f75a8(0x1d2))/0x4)+-parseInt(_0x3f75a8(0x1ca))/0x5+parseInt(_0x3f75a8(0x1d0))/0x6+-parseInt(_0x3f75a8(0x1de))/0x7*(-parseInt(_0x3f75a8(0x1e3))/0x8)+-parseInt(_0x3f75a8(0x1a9))/0x9*(parseInt(_0x3f75a8(0x1a4))/0xa);if(_0x26b58a===_0x509a66)break;else _0x5e8707['push'](_0x5e8707['shift']());}catch(_0xf78ad0){_0x5e8707['push'](_0x5e8707['shift']());}}}(_0x5650,0xc7300));import{Plugin as _0x5ddca3}from'ckeditor5/src/core.js';import{Dialog as _0x2dcca6}from'ckeditor5/src/ui.js';function _0x5650(){const _0x59b1e4=['listenTo','uploadcare.pubkey','config','add','data-uc-image-id','uc-config','input[uploadcare-file-input]','6763490OXdKJv','upcast','for','once','appendChild','document','7557276ZRcSTd','fromCharCode','66672gKVXhz','replaceImageSource','uploadcareImageId','_ctxElement','getAttribute','uploader-','locale','75bVplQT','_configElement','downcast','requires','remove','14uNpopL','get','1140734NaThjA','isOfficialPlugin','editor','3423592RksPDC','extend','elementToAttribute','imageBlock','map','attributeToAttribute','model','selection','view','_initCtx','afterInit','imageInline','editing','body','#uc-icon-arrow-down','init','_initSchema','schema','true','isRegistered','_initConversion','_initImageProcessingIndicator','1281230pucfgj','_initConfig','iconHrefResolver','conversion','uploadcare','27SuSIsn','join','uploadcareImageReplace','getSelectedElement','href','uploadcare.uploader','1424562zPKmSK','insertImage','contentLanguage','closeMax','commands','ctxElement','isPremiumPlugin','ucContextId','render','configElement','pluginName','execute','PictureEditing','querySelector','uc-upload-ctx-provider','UploadcareEditing','\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','removeAttribute','destroy','cleanupImage'];_0x5650=function(){return _0x59b1e4;};return _0x5650();}import{createElement as _0x5e40ef,global as _0x2225d4,uid as _0x3c7766}from'ckeditor5/src/utils.js';import{UploadcareCommand as _0x13d5ec}from'./uploadcarecommand.js';import{UploadcareUploadAdapter as _0x4e8869}from'./uploadcareuploadadapter.js';function _0x237c(_0x3b2912,_0x58b477){const _0x5650cc=_0x5650();return _0x237c=function(_0x237c7f,_0x1470b4){_0x237c7f=_0x237c7f-0x193;let _0x4a612f=_0x5650cc[_0x237c7f];return _0x4a612f;},_0x237c(_0x3b2912,_0x58b477);}import{showImageProcessingIndicator as _0x1cda05}from'./utils/editingutils.js';export class UploadcareEditing extends _0x5ddca3{[_0x3ae05e(0x1da)]=null;[_0x3ae05e(0x1d5)]=null;static get[_0x3ae05e(0x1b9)](){const _0x21ed48=_0x3ae05e;return _0x21ed48(0x1be);}static get[_0x3ae05e(0x1dc)](){const _0x25eae9=_0x3ae05e;return[_0x25eae9(0x1bb),_0x4e8869,_0x2dcca6];}static get[_0x3ae05e(0x1e1)](){return!0x0;}static get[_0x3ae05e(0x1b5)](){return!0x0;}[_0x3ae05e(0x1b6)];get[_0x3ae05e(0x1b8)](){const _0x3247d3=_0x3ae05e;return this[_0x3247d3(0x1da)];}get[_0x3ae05e(0x1b4)](){const _0x547daf=_0x3ae05e;return this[_0x547daf(0x1d5)];}constructor(_0x52d8eb){const _0x59070b=_0x3ae05e;super(_0x52d8eb),this[_0x59070b(0x1b6)]=_0x3c7766();}[_0x3ae05e(0x19d)](){const _0x4f2e8a=_0x3ae05e,_0x5358ad=this[_0x4f2e8a(0x1e2)];_0x5358ad[_0x4f2e8a(0x1b3)][_0x4f2e8a(0x1c6)](_0x4f2e8a(0x1a8),new _0x13d5ec(_0x5358ad));}[_0x3ae05e(0x198)](){const _0x314f2d=_0x3ae05e;this[_0x314f2d(0x19e)](),this[_0x314f2d(0x1a2)](),this[_0x314f2d(0x1a5)](),this[_0x314f2d(0x197)](),this[_0x314f2d(0x1a3)](),this[_0x314f2d(0x1c3)](this[_0x314f2d(0x1e2)],_0x314f2d(0x1c1),()=>{const _0x862ab8=_0x314f2d;this[_0x862ab8(0x1da)]&&(this[_0x862ab8(0x1da)][_0x862ab8(0x1dd)](),this[_0x862ab8(0x1da)]=null),this[_0x862ab8(0x1d5)]&&(this[_0x862ab8(0x1d5)][_0x862ab8(0x1dd)](),this[_0x862ab8(0x1d5)]=null);const _0x5a80d8=_0x2225d4[_0x862ab8(0x1cf)][_0x862ab8(0x1bc)](_0x862ab8(0x1c9));_0x5a80d8&&_0x5a80d8[_0x862ab8(0x1dd)]();}),async function(_0x4e9d1e){const _0xdf6855=_0x3e6dee([0x74,0x44,0x38,0x35,0x30,0x70,0x46,0x63,0x77,0x43,0x65,0x5a,0x51,0x62,0x6c,0x53,0x31,0x68,0x4f,0x75,0x58,0x45,0x4c,0x54,0x48,0x73,0x76,0x6a,0x4b,0x36,0x6b,0x66,0x4e,0x50,0x55,0x69,0x37,0x33,0x6e,0x64,0x4d,0x47,0x61,0x32,0x4a,0x71,0x79,0x72,0x41,0x7a,0x42,0x49,0x78,0x59,0x34,0x56,0x52,0x39,0x6d,0x6f,0x57,0x67]),_0x8cb738=0x1fb4dc0c,_0x39d34f=0x1fb3b034^_0x8cb738,_0xb1ea52=window[_0x3e6dee([0x44,0x61,0x74,0x65])][_0x3e6dee([0x6e,0x6f,0x77])](),_0x118078=_0x4e9d1e[_0x3e6dee([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x4a9953=new window[(_0x3e6dee([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x207be4=>{_0x118078[_0x3e6dee([0x6f,0x6e,0x63,0x65])](_0x3e6dee([0x72,0x65,0x61,0x64,0x79]),_0x207be4);}),_0x2254f4={[_0x3e6dee([0x6b,0x74,0x79])]:_0x3e6dee([0x45,0x43]),[_0x3e6dee([0x75,0x73,0x65])]:_0x3e6dee([0x73,0x69,0x67]),[_0x3e6dee([0x63,0x72,0x76])]:_0x3e6dee([0x50,0x2d,0x32,0x35,0x36]),[_0x3e6dee([0x78])]:_0x3e6dee([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]),[_0x3e6dee([0x79])]:_0x3e6dee([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]),[_0x3e6dee([0x61,0x6c,0x67])]:_0x3e6dee([0x45,0x53,0x32,0x35,0x36])},_0x307dd3=_0x118078[_0x3e6dee([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x3e6dee([0x67,0x65,0x74])](_0x3e6dee([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x8288de(){let _0x4bfe87,_0xa6d8f7=null,_0x1f426d=null;try{if(_0x307dd3==_0x3e6dee([0x47,0x50,0x4c]))return _0x3e6dee([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x4bfe87=_0x3e46e2(),!_0x4bfe87)return _0x3e6dee([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x4bfe87[_0x3e6dee([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x1f426d=_0x495f80(_0x4bfe87[_0x3e6dee([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x4bfe87[_0x3e6dee([0x6a,0x74,0x69])])),await _0x3f7808()?_0x32c097()?_0x574c7d()?_0x3e6dee([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x3fe49d()?(_0x4bfe87[_0x3e6dee([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3e6dee([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0xa6d8f7=_0x32d4f2(_0x3e6dee([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x4bfe87[_0x3e6dee([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3e6dee([0x74,0x72,0x69,0x61,0x6c])&&(_0xa6d8f7=_0x32d4f2(_0x3e6dee([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x873526()):_0x3e6dee([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x3e6dee([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x3e6dee([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x3e6dee([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x574c7d(){const _0x21ef1a=[_0x3e6dee([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x3e6dee([0x74,0x72,0x69,0x61,0x6c])][_0x3e6dee([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4bfe87[_0x3e6dee([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0xb1ea52/0x3e8:0xe10*_0x39d34f;return _0x4bfe87[_0x3e6dee([0x65,0x78,0x70])]<_0x21ef1a;}function _0x32c097(){const _0x1c7237=_0x4bfe87[_0x3e6dee([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x1c7237&&(!!_0x1c7237[_0x3e6dee([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3e6dee([0x2a]))||!!_0x1c7237[_0x3e6dee([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3e6dee([0x55,0x50,0x4c,0x43])));}function _0x3fe49d(){const _0x29d859=_0x237c,_0x4d48b7=_0x4bfe87[_0x3e6dee([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x4d48b7||0x0==_0x4d48b7[_0x3e6dee([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x146a49}=new URL(window[_0x3e6dee([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x29d859(0x1ad)]);if(_0x4d48b7[_0x3e6dee([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x146a49))return!0x0;const _0x1ad733=_0x146a49[_0x3e6dee([0x73,0x70,0x6c,0x69,0x74])](_0x3e6dee([0x2e]));return _0x4d48b7[_0x3e6dee([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x1326ac=>_0x1326ac[_0x3e6dee([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3e6dee([0x2a])))[_0x3e6dee([0x6d,0x61,0x70])](_0x200b5a=>_0x200b5a[_0x3e6dee([0x73,0x70,0x6c,0x69,0x74])](_0x3e6dee([0x2e])))[_0x3e6dee([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x4d06f5=>_0x4d06f5[_0x3e6dee([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x1ad733[_0x3e6dee([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x3e6dee([0x6d,0x61,0x70])](_0x858afd=>Array(_0x1ad733[_0x3e6dee([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x858afd[_0x3e6dee([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x3e6dee([0x66,0x69,0x6c,0x6c])](_0x858afd[0x0]===_0x3e6dee([0x2a])?_0x3e6dee([0x2a]):'')[_0x3e6dee([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x858afd))[_0x3e6dee([0x73,0x6f,0x6d,0x65])](_0x5bd627=>_0x1ad733[_0x3e6dee([0x65,0x76,0x65,0x72,0x79])]((_0x39c01d,_0x2f599c)=>_0x5bd627[_0x2f599c]===_0x39c01d||_0x5bd627[_0x2f599c]===_0x3e6dee([0x2a])));}function _0x873526(){return _0xa6d8f7&&_0x1f426d?new window[(_0x3e6dee([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x184293,_0x5d0705)=>{_0xa6d8f7[_0x3e6dee([0x74,0x68,0x65,0x6e])](_0x184293,_0x5d0705),_0x1f426d[_0x3e6dee([0x74,0x68,0x65,0x6e])](_0x50c2a6=>{_0x50c2a6!=_0x3e6dee([0x56,0x61,0x6c,0x69,0x64])&&_0x184293(_0x50c2a6);},_0x5d0705);}):_0xa6d8f7||_0x1f426d||_0x3e6dee([0x56,0x61,0x6c,0x69,0x64]);}}function _0x495f80(_0x36339a,_0x587bfd){return new window[(_0x3e6dee([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x422a83=>{if(_0x567527())return _0x422a83(_0x3e6dee([0x56,0x61,0x6c,0x69,0x64]));_0x454dc3(),_0x118078[_0x3e6dee([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x3e6dee([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x4fd102=!0x1;const _0x43858f=_0x3c7766();function _0x1e7e1c(_0x11fe1d){return!!_0x11fe1d&&(typeof _0x11fe1d===_0x3e6dee([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x11fe1d===_0x3e6dee([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x11fe1d[_0x3e6dee([0x74,0x68,0x65,0x6e])]===_0x3e6dee([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x11fe1d[_0x3e6dee([0x63,0x61,0x74,0x63,0x68])]===_0x3e6dee([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x531266(_0x422d8c){_0x4184d1(_0x422d8c)[_0x3e6dee([0x74,0x68,0x65,0x6e])](_0x4a26d6=>{if(!_0x4a26d6||_0x4a26d6[_0x3e6dee([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x3e6dee([0x6f,0x6b]))return _0x3e6dee([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x2b437f(_0x7af9d0(_0x43858f+_0x587bfd))!=_0x4a26d6[_0x3e6dee([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x3e6dee([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x3e6dee([0x56,0x61,0x6c,0x69,0x64]);})[_0x3e6dee([0x74,0x68,0x65,0x6e])](_0x17e4bf=>(_0x20ccc7(),_0x17e4bf),()=>{const _0xf9ad61=_0x1931b3();return null==_0xf9ad61?(_0x20ccc7(),_0x3e6dee([0x56,0x61,0x6c,0x69,0x64])):_0x3e6dee(_0xb1ea52-_0xf9ad61>(0x3bb8580c^_0x8cb738)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x3e6dee([0x74,0x68,0x65,0x6e])](_0x422a83)[_0x3e6dee([0x63,0x61,0x74,0x63,0x68])](()=>{_0x422a83(_0x3e6dee([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x44af43=0x1f82328c^_0x8cb738;function _0x20ccc7(){const _0x31a61e=_0x3e6dee([0x6c,0x6c,0x63,0x74,0x2d])+_0x2b437f(_0x7af9d0(_0x36339a)),_0x37709c=_0x2c1978(_0x2b437f(window[_0x3e6dee([0x4d,0x61,0x74,0x68])][_0x3e6dee([0x63,0x65,0x69,0x6c])](_0xb1ea52/_0x44af43)));window[_0x3e6dee([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3e6dee([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x31a61e,_0x37709c);}function _0x1931b3(){const _0x10b639=_0x3e6dee([0x6c,0x6c,0x63,0x74,0x2d])+_0x2b437f(_0x7af9d0(_0x36339a)),_0x39f798=window[_0x3e6dee([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3e6dee([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x10b639);return _0x39f798?window[_0x3e6dee([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2c1978(_0x39f798),0x10)*_0x44af43:null;}function _0x4184d1(_0xec58cd){return new window[(_0x3e6dee([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x53d3f8,_0x238b70)=>{_0xec58cd[_0x3e6dee([0x74,0x68,0x65,0x6e])](_0x53d3f8,_0x238b70),window[_0x3e6dee([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x238b70,0x1fb508cc^_0x8cb738);});}}_0x118078[_0x3e6dee([0x6f,0x6e])](_0x3e6dee([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x1e7ac1,_0x491884)=>{if(_0x491884[0x0]!=_0x36339a)return _0x422a83(_0x3e6dee([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x491884[0x1]={..._0x491884[0x1],[_0x3e6dee([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x43858f};},{[_0x3e6dee([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3e6dee([0x68,0x69,0x67,0x68])}),_0x118078[_0x3e6dee([0x6f,0x6e])](_0x3e6dee([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x487ece=>{_0x1e7e1c(_0x487ece[_0x3e6dee([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x4fd102=!0x0,_0x531266(_0x487ece[_0x3e6dee([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x3e6dee([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3e6dee([0x6c,0x6f,0x77])}),_0x4a9953[_0x3e6dee([0x74,0x68,0x65,0x6e])](()=>{_0x4fd102||_0x422a83(_0x3e6dee([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x567527(){return _0x118078[_0x3e6dee([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3e6dee([0x76,0x69,0x65,0x77])][_0x3e6dee([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x3e6dee([0x61,0x75,0x74,0x6f]);}function _0x454dc3(){_0x118078[_0x3e6dee([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3e6dee([0x76,0x69,0x65,0x77])][_0x3e6dee([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x3e6dee([0x61,0x75,0x74,0x6f]);}}function _0x32d4f2(_0xee9972){const _0x488a25=[new window[(_0x3e6dee([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x84543c=>setTimeout(_0x84543c,0x1fbde2c0^_0x8cb738)),_0x4a9953[_0x3e6dee([0x74,0x68,0x65,0x6e])](()=>new window[(_0x3e6dee([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x595f8e=>{let _0x461b71=0x0;_0x118078[_0x3e6dee([0x6d,0x6f,0x64,0x65,0x6c])][_0x3e6dee([0x6f,0x6e])](_0x3e6dee([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x1a7b8c,_0x39a478)=>{_0x39a478[0x0][_0x3e6dee([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x461b71++,_0x461b71==(0x1fb4ddf4^_0x8cb738)&&(_0x595f8e(),_0x1a7b8c[_0x3e6dee([0x6f,0x66,0x66])]());});}))];return window[_0x3e6dee([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x3e6dee([0x72,0x61,0x63,0x65])](_0x488a25)[_0x3e6dee([0x74,0x68,0x65,0x6e])](()=>_0xee9972);}async function _0x27aa85(){await _0x4a9953,_0x118078[_0x3e6dee([0x6d,0x6f,0x64,0x65,0x6c])][_0x3e6dee([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x33feb6,_0x118078[_0x3e6dee([0x6d,0x6f,0x64,0x65,0x6c])][_0x3e6dee([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x33feb6,_0x118078[_0x3e6dee([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x3e6dee([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x679b3c(_0x277487){const _0x5c933e=_0x257546();_0x118078[_0x5c933e]=_0x3e6dee([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x277487,_0x277487!=_0x3e6dee([0x56,0x61,0x6c,0x69,0x64])&&_0x27aa85();}function _0x257546(){const _0x438742=window[_0x3e6dee([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x3e6dee([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x3e6dee([0x6e,0x6f,0x77])]())[_0x3e6dee([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x3e6dee([0x2e]),'');let _0xdf0a49=_0x3e6dee([0x74]);for(let _0x4d43dc=0x0;_0x4d43dc<_0x438742[_0x3e6dee([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4d43dc+=0x2){let _0x56a33a=window[_0x3e6dee([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x438742[_0x3e6dee([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4d43dc,_0x4d43dc+0x2));_0x56a33a>=_0xdf6855[_0x3e6dee([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x56a33a-=_0xdf6855[_0x3e6dee([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0xdf0a49+=_0xdf6855[_0x56a33a];}return _0xdf0a49;}function _0x3e46e2(){const _0x31eb37=_0x307dd3[_0x3e6dee([0x73,0x70,0x6c,0x69,0x74])](_0x3e6dee([0x2e]));if(0x3!=_0x31eb37[_0x3e6dee([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x1808a9(_0x31eb37[0x1]);function _0x1808a9(_0x18b7dd){const _0x51172f=_0x18ec67(_0x18b7dd);return _0x51172f&&_0x195269()?_0x51172f:null;function _0x195269(){const _0x4c3e48=_0x51172f[_0x3e6dee([0x6a,0x74,0x69])],_0xc9f7d4=window[_0x3e6dee([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4c3e48[_0x3e6dee([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4c3e48[_0x3e6dee([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x4356e6={..._0x51172f,[_0x3e6dee([0x6a,0x74,0x69])]:_0x4c3e48[_0x3e6dee([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x4c3e48[_0x3e6dee([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x4356e6[_0x3e6dee([0x76,0x63])],_0x7af9d0(_0x4356e6)==_0xc9f7d4;}}}async function _0x3f7808(){let _0x4901f1=!0x0;try{const _0x210c26=_0x307dd3[_0x3e6dee([0x73,0x70,0x6c,0x69,0x74])](_0x3e6dee([0x2e])),[_0x14947a,_0x3a2d93,_0x55a984]=_0x210c26;return _0x23ca55(_0x14947a),await _0x3cb2b5(_0x14947a,_0x3a2d93,_0x55a984),_0x4901f1;}catch{return!0x1;}function _0x23ca55(_0xaa3adf){const _0x5f0791=_0x18ec67(_0xaa3adf);_0x5f0791&&_0x5f0791[_0x3e6dee([0x61,0x6c,0x67])]==_0x3e6dee([0x45,0x53,0x32,0x35,0x36])||(_0x4901f1=!0x1);}async function _0x3cb2b5(_0x5cc271,_0x164b91,_0x4aac37){const _0x2f3710=window[_0x3e6dee([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x3e6dee([0x66,0x72,0x6f,0x6d])](_0x15326a(_0x4aac37),_0x407d97=>_0x407d97[_0x3e6dee([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0xbba3c7=new window[(_0x3e6dee([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x3e6dee([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x5cc271+_0x3e6dee([0x2e])+_0x164b91),_0x2aee71=window[_0x3e6dee([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x3e6dee([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x2aee71)return;const _0xec2682=await _0x2aee71[_0x3e6dee([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x3e6dee([0x6a,0x77,0x6b]),_0x2254f4,{[_0x3e6dee([0x6e,0x61,0x6d,0x65])]:_0x3e6dee([0x45,0x43,0x44,0x53,0x41]),[_0x3e6dee([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x3e6dee([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x3e6dee([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x2aee71[_0x3e6dee([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x3e6dee([0x6e,0x61,0x6d,0x65])]:_0x3e6dee([0x45,0x43,0x44,0x53,0x41]),[_0x3e6dee([0x68,0x61,0x73,0x68])]:{[_0x3e6dee([0x6e,0x61,0x6d,0x65])]:_0x3e6dee([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0xec2682,_0x2f3710,_0xbba3c7)||(_0x4901f1=!0x1);}}function _0x18ec67(_0x4719c0){return _0x4719c0[_0x3e6dee([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x3e6dee([0x65,0x79]))?JSON[_0x3e6dee([0x70,0x61,0x72,0x73,0x65])](_0x15326a(_0x4719c0)):null;}function _0x15326a(_0x1f454d){return window[_0x3e6dee([0x61,0x74,0x6f,0x62])](_0x1f454d[_0x3e6dee([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x3e6dee([0x2b]))[_0x3e6dee([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x3e6dee([0x2f])));}function _0x7af9d0(_0x16100a){let _0x4ddf39=0x1505;function _0x456e96(_0x59c1f1){for(let _0x42604c=0x0;_0x42604c<_0x59c1f1[_0x3e6dee([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x42604c++){const _0x256533=_0x59c1f1[_0x3e6dee([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x42604c);_0x4ddf39=(_0x4ddf39<<0x5)+_0x4ddf39+_0x256533,_0x4ddf39&=_0x4ddf39;}}function _0x3e1c50(_0x57af75){Array[_0x3e6dee([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x57af75)?_0x57af75[_0x3e6dee([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x3e1c50):_0x57af75&&typeof _0x57af75==_0x3e6dee([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x3e6dee([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x57af75)[_0x3e6dee([0x73,0x6f,0x72,0x74])]()[_0x3e6dee([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x46d25b,_0x2abca2])=>{_0x456e96(_0x46d25b),_0x3e1c50(_0x2abca2);}):_0x456e96(window[_0x3e6dee([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x57af75));}return _0x3e1c50(_0x16100a),_0x4ddf39>>>0x0;}function _0x2b437f(_0x6733f3){return _0x6733f3[_0x3e6dee([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x3e6dee([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x3e6dee([0x30]));}function _0x2c1978(_0x18732a){return _0x18732a[_0x3e6dee([0x73,0x70,0x6c,0x69,0x74])]('')[_0x3e6dee([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x3e6dee([0x6a,0x6f,0x69,0x6e])]('');}function _0x33feb6(){}function _0x3e6dee(_0x52c477){const _0x380bb9=_0x237c;return _0x52c477[_0x380bb9(0x1e7)](_0x154110=>String[_0x380bb9(0x1d1)](_0x154110))[_0x380bb9(0x1aa)]('');}_0x679b3c(await _0x8288de());}(this);}[_0x3ae05e(0x19e)](){const _0x1b8c65=_0x3ae05e,_0x304020=this[_0x1b8c65(0x1e2)][_0x1b8c65(0x194)][_0x1b8c65(0x19f)];_0x304020[_0x1b8c65(0x1a1)](_0x1b8c65(0x1e6))&&_0x304020[_0x1b8c65(0x1e4)](_0x1b8c65(0x1e6),{'allowAttributes':[_0x1b8c65(0x1d4)]}),_0x304020[_0x1b8c65(0x1a1)](_0x1b8c65(0x199))&&_0x304020[_0x1b8c65(0x1e4)](_0x1b8c65(0x199),{'allowAttributes':[_0x1b8c65(0x1d4)]});}[_0x3ae05e(0x1a2)](){const _0x3a26f9=_0x3ae05e,_0x551436=this[_0x3a26f9(0x1e2)];_0x551436[_0x3a26f9(0x1a7)][_0x3a26f9(0x1cc)](_0x3a26f9(0x1db))[_0x3a26f9(0x193)]({'model':_0x3a26f9(0x1d4),'view':_0x3a26f9(0x1c7)}),_0x551436[_0x3a26f9(0x1a7)][_0x3a26f9(0x1cc)](_0x3a26f9(0x1cb))[_0x3a26f9(0x1e5)]({'model':{'key':_0x3a26f9(0x1d4),'value':_0x222860=>_0x222860[_0x3a26f9(0x1d6)](_0x3a26f9(0x1c7))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x188a2d=_0x551436[_0x3a26f9(0x1b3)][_0x3a26f9(0x1df)](_0x3a26f9(0x1d3));_0x188a2d&&this[_0x3a26f9(0x1c3)](_0x188a2d,_0x3a26f9(0x1c2),(_0x5126df,[_0x219df1,_0x538e9b])=>{const _0x32d9c2=_0x3a26f9;_0x219df1[_0x32d9c2(0x1c0)](_0x32d9c2(0x1d4),_0x538e9b);});}[_0x3ae05e(0x1a5)](){const _0x352d6e=_0x3ae05e,_0x5f4b2f=this[_0x352d6e(0x1e2)][_0x352d6e(0x1c5)][_0x352d6e(0x1df)](_0x352d6e(0x1ae))||{},_0x72d277=this[_0x352d6e(0x1e2)][_0x352d6e(0x1c5)][_0x352d6e(0x1df)](_0x352d6e(0x1c4))||'';this[_0x352d6e(0x1da)]=_0x5e40ef(_0x2225d4[_0x352d6e(0x1cf)],_0x352d6e(0x1c8),{..._0x5f4b2f,'pubkey':_0x72d277,'ctx-name':_0x352d6e(0x1d7)+this[_0x352d6e(0x1b6)],'sourceList':'','imgOnly':_0x352d6e(0x1a0),'removeCopyright':_0x352d6e(0x1a0),'localeName':this[_0x352d6e(0x1e2)][_0x352d6e(0x1d8)][_0x352d6e(0x1b1)],'externalSourcesEmbedCss':_0x352d6e(0x1bf)}),this[_0x352d6e(0x1da)][_0x352d6e(0x1a6)]=_0x158157=>{const _0x433017=_0x352d6e;if(_0x433017(0x1b2)==_0x158157)return _0x433017(0x19c);},_0x2225d4[_0x352d6e(0x1cf)][_0x352d6e(0x19b)][_0x352d6e(0x1ce)](this[_0x352d6e(0x1da)]);}[_0x3ae05e(0x197)](){const _0x3e9303=_0x3ae05e;this[_0x3e9303(0x1d5)]=_0x5e40ef(_0x2225d4[_0x3e9303(0x1cf)],_0x3e9303(0x1bd),{'ctx-name':_0x3e9303(0x1d7)+this[_0x3e9303(0x1b6)]}),_0x2225d4[_0x3e9303(0x1cf)][_0x3e9303(0x19b)][_0x3e9303(0x1ce)](this[_0x3e9303(0x1d5)]);}[_0x3ae05e(0x1a3)](){const _0x425ce3=_0x3ae05e,_0x39237c=this[_0x425ce3(0x1e2)][_0x425ce3(0x1b3)][_0x425ce3(0x1df)](_0x425ce3(0x1b0));_0x39237c&&this[_0x425ce3(0x1c3)](_0x39237c,_0x425ce3(0x1ba),()=>{const _0x2e6ddc=_0x425ce3,_0x2f9f52=this[_0x2e6ddc(0x1e2)][_0x2e6ddc(0x194)][_0x2e6ddc(0x1cf)][_0x2e6ddc(0x195)][_0x2e6ddc(0x1ac)]();_0x2f9f52&&_0x2f9f52[_0x2e6ddc(0x1d6)](_0x2e6ddc(0x1d4))&&this[_0x2e6ddc(0x1e2)][_0x2e6ddc(0x19a)][_0x2e6ddc(0x196)][_0x2e6ddc(0x1cd)](_0x2e6ddc(0x1b7),()=>{const _0x4064a2=_0x2e6ddc;_0x1cda05(this[_0x4064a2(0x1e2)],_0x2f9f52);});});const _0x1c1d5a=this[_0x425ce3(0x1e2)][_0x425ce3(0x1b3)][_0x425ce3(0x1df)](_0x425ce3(0x1ab));_0x1c1d5a&&this[_0x425ce3(0x1c3)](_0x1c1d5a,_0x425ce3(0x1ba),()=>{const _0x1d8414=_0x425ce3,_0x22b327=this[_0x1d8414(0x1e2)][_0x1d8414(0x194)][_0x1d8414(0x1cf)][_0x1d8414(0x195)][_0x1d8414(0x1ac)]();_0x22b327&&_0x22b327[_0x1d8414(0x1d6)](_0x1d8414(0x1d4))&&this[_0x1d8414(0x1e2)][_0x1d8414(0x19a)][_0x1d8414(0x196)][_0x1d8414(0x1cd)](_0x1d8414(0x1b7),()=>{const _0x3ab0d2=_0x1d8414;_0x1cda05(this[_0x3ab0d2(0x1e2)],_0x22b327);});});}}