@ckeditor/ckeditor5-uploadcare 0.0.0-nightly-next-20251229.0 → 0.0.0-nightly-next-20251230.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 _0xc2dc7f,Command as _0x45bf27}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x1bf749,IconGooglePhotos as _0x3ecce3,IconGoogleDrive as _0x3f5259,IconFacebook as _0x222667,IconDropbox as _0x5f2afc,IconUploadcareLink as _0x191ad,IconUploadcareImageUpload as _0x3a6b38,IconError as _0x3055a7,IconUploadcareImageEdit as _0x7236a8}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x4b2664,MenuBarMenuListItemButtonView as _0x391927,View as _0x498476,FocusCycler as _0x319ba6,Dialog as _0x5da73d,DialogViewPosition as _0x28c680,SpinnerView as _0x41c520,IconView as _0x3df59c,Notification as _0x42c6a8}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x2a26a4,DomEmitterMixin as _0x20dea6,global as _0x188887,getAncestors as _0x1753fc,ObservableMixin as _0x1c5c61,uid as _0x4de7bb,createElement as _0x388601}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x1ffed3}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x435859,info as _0x863b3}from'@uploadcare/upload-client';import*as _0x3ed05c from'@uploadcare/file-uploader';var i=function(_0x3234f6){return _0x3234f6['Local']='local',_0x3234f6['URL']='url',_0x3234f6['Dropbox']='dropbox',_0x3234f6['GDrive']='gdrive',_0x3234f6['Facebook']='facebook',_0x3234f6['GPhotos']='gphotos',_0x3234f6['OneDrive']='onedrive',_0x3234f6;}({});function _(_0x298ee3,_0x586869,_0x16e43d){const t=_0x298ee3['t'],_0x40406d=_0x298ee3['t'];switch(_0x586869){case i['Local']:return{'text':_0x40406d('Insert'===_0x16e43d?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x40406d('From\x20computer')};case i['URL']:return{'text':'Insert'===_0x16e43d?_0x40406d('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x40406d('Via\x20URL')};case i['Dropbox']:return{'text':t('Insert'===_0x16e43d?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case i['Facebook']:return{'text':t('Insert'===_0x16e43d?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case i['GDrive']:return{'text':t('Insert'===_0x16e43d?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case i['GPhotos']:return{'text':t('Insert'===_0x16e43d?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case i['OneDrive']:return{'text':t('Insert'===_0x16e43d?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x586869;}}class e extends _0xc2dc7f{['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 _0xa7d97f=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x3cc5c4;for(const _0x4401b2 in _0xa7d97f){const _0x3be46c=_0x4401b2,_0xbfa2cd=_0xa7d97f[_0x3be46c];if('uploadcareLicenseKeyValid'==_0xbfa2cd||'uploadcareLicenseKeyInvalid'==_0xbfa2cd||'uploadcareLicenseKeyExpired'==_0xbfa2cd||'uploadcareLicenseKeyDomainLimit'==_0xbfa2cd||'uploadcareLicenseKeyNotAllowed'==_0xbfa2cd||'uploadcareLicenseKeyEvaluationLimit'==_0xbfa2cd||'uploadcareLicenseKeyTrialLimit'==_0xbfa2cd||'uploadcareLicenseKeyUsageLimit'==_0xbfa2cd){delete _0xa7d97f[_0x3be46c],_0x3cc5c4=_0xbfa2cd,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x3cc5c4&&_0xa7d97f['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x3cc5c4&&_0xa7d97f['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x3cc5c4&&_0xa7d97f['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x3cc5c4&&_0xa7d97f['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x3cc5c4&&_0xa7d97f['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyTrialLimit'==_0x3cc5c4&&_0xa7d97f['_showLicenseError']('trialLimit'),'uploadcareLicenseKeyUsageLimit'==_0x3cc5c4&&_0xa7d97f['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x3cb07d}=this,_0x3807bd=_0x3cb07d['commands']['get']('uploadcare');if(!_0x3807bd)return;const _0xe64e38=this['_normalizeConfigSourceList'](_0x3cb07d['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x507c21,_0x3112b5)=>{const _0x4b08fd=this['_getIntegrationKey'](_0x3112b5['type']);return _0x507c21[_0x4b08fd]||(_0x507c21[_0x4b08fd]=[]),_0x507c21[_0x4b08fd]['push'](_0x3112b5),_0x507c21;},{});_0x3cb07d['plugins']['has']('ImageInsertUI')&&_0x3cb07d['commands']['get']('uploadcare')&&Object['entries'](_0xe64e38)['forEach'](([_0x4e3310,_0x124914])=>{_0x3cb07d['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x4e3310,'observable':()=>_0x3807bd,'buttonViewCreator':()=>this['_createToolbarButton'](_0x124914),'formViewCreator':()=>this['_createDropdownButtons'](_0x124914),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x124914),'override':'assetManager'!==_0x4e3310});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x1a59b3){const {locale:_0x35896a}=this['editor'];return _0x1a59b3['map'](_0x47d9ed=>{const _0x20086c=_(_0x35896a,_0x47d9ed,'Insert');switch(_0x47d9ed){case i['Local']:return{'icon':_0x3a6b38,'type':i['Local'],..._0x20086c};case i['URL']:return{'icon':_0x191ad,'type':i['URL'],..._0x20086c};case i['Dropbox']:return{'icon':_0x5f2afc,'type':i['Dropbox'],..._0x20086c};case i['Facebook']:return{'icon':_0x222667,'type':i['Facebook'],..._0x20086c};case i['GDrive']:return{'icon':_0x3f5259,'type':i['GDrive'],..._0x20086c};case i['GPhotos']:return{'icon':_0x3ecce3,'type':i['GPhotos'],..._0x20086c};case i['OneDrive']:return{'icon':_0x1bf749,'type':i['OneDrive'],..._0x20086c};}});}['_getIntegrationKey'](_0x5261fa){switch(_0x5261fa){case i['Local']:return'upload';case i['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x47c725,_0x85d338){const _0x3c3612=this['editor'],_0x55ea34=new _0x47c725(_0x3c3612['locale']),_0x597341=_0x3c3612['commands']['get']('uploadcare');return _0x55ea34['bind']('isEnabled')['to'](_0x597341),_0x55ea34['on']('execute',()=>{_0x597341['execute'](_0x85d338);}),_0x55ea34;}['_createToolbarButton'](_0x557383){const {locale:_0x125fb9}=this['editor'],_0x408a50=this['editor']['plugins']['get']('ImageInsertUI'),_0x1315e6=_0x557383[0x0],_0x1a4b4c=this['_createButton'](_0x4b2664,_0x1315e6['type']);return _0x1a4b4c['icon']=_0x1315e6['icon'],_0x1a4b4c['bind']('label')['to'](_0x408a50,'isImageSelected',_0x328290=>_(_0x125fb9,_0x1315e6['type'],_0x328290?'Replace':'Insert')['text']),_0x1a4b4c['tooltip']=!0x0,_0x1a4b4c;}['_createDropdownButtons'](_0x2a94f9){const {locale:_0xd82f0f}=this['editor'],_0x5a9e0f=this['editor']['plugins']['get']('ImageInsertUI');return _0x2a94f9['map'](_0x8685f8=>{const _0x1c7ec5=this['_createButton'](_0x4b2664,_0x8685f8['type']);return _0x1c7ec5['withText']=!0x0,_0x1c7ec5['icon']=_0x8685f8['icon'],_0x1c7ec5['bind']('label')['to'](_0x5a9e0f,'isImageSelected',_0x8d12be=>_(_0xd82f0f,_0x8685f8['type'],_0x8d12be?'Replace':'Insert')['text']),_0x1c7ec5;});}['_createMenuBarButtons'](_0x2bb6ad){return _0x2bb6ad['map'](_0x454998=>{const _0x153880=this['_createButton'](_0x391927,_0x454998['type']);return _0x153880['icon']=_0x454998['icon'],_0x153880['label']=_0x454998['shortText'],_0x153880;});}}class V extends _0x498476{['focusTracker'];['focusCycler'];constructor(_0x736ba1){super(_0x736ba1),this['focusTracker']=new _0x2a26a4(),this['focusCycler']=new _0x319ba6({'focusables':this['createCollection'](),'focusTracker':this['focusTracker']});}['getFocusableElement'](){return{'tag':'div','attributes':{'aria-hidden':'true','tabindex':'0'},'on':{'focus':this['bindTemplate']['to'](()=>{this['focusCycler']['fire']('forwardCycle');})}};}}class S extends V{constructor(_0x44e44d,_0x52128b){super(_0x44e44d),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-'+_0x52128b}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}}function C(_0x3bfbfb,_0x53bd03){const _0x453694=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x2da7b2=>_0x2da7b2<=_0x53bd03)['map'](_0x4abec2=>_0x3bfbfb['replace'](/\/$/,'')+'/-/resize/'+_0x4abec2+'x/\x20'+_0x4abec2+'w');return{'imageFallbackUrl':_0x3bfbfb,'imageSources':[{'srcset':_0x453694['join'](',\x20'),'sizes':'(max-width:\x20'+_0x53bd03+'px)\x20100vw,\x20'+_0x53bd03+'px','type':'image/webp'}]};}function F(_0x1a1165,_0x427e07,_0x55f386){const _0x32b298=_0x1a1165['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x32b298?parseInt(_0x32b298[0x1],0xa):_0x427e07,'height':_0x32b298?parseInt(_0x32b298[0x2],0xa):_0x55f386};}function p(_0x1ed219,_0x411846){const _0x2697a0=new(_0x20dea6())(),_0x39bb1e=_0x1ed219['plugins']['get']('ImageUtils'),_0x372e6a=_0x1ed219['editing']['mapper']['toViewElement'](_0x411846),_0x313741=_0x39bb1e['findViewImgElement'](_0x372e6a),_0x415613=_0x1ed219['editing']['view']['domConverter']['viewToDom'](_0x313741),_0x1b7f23=_0x411846['getAttribute']('width'),_0x2e08a4=_0x411846['getAttribute']('height'),_0x45e428='image-processing';_0x1ed219['editing']['view']['change'](_0x300332=>{_0x300332['addClass'](_0x45e428,_0x372e6a),_0x300332['setStyle']('aspect-ratio',_0x1b7f23+'/'+_0x2e08a4,_0x313741);}),_0x2697a0['listenTo'](_0x415613,'load',()=>{_0x2697a0['stopListening'](_0x415613,'load'),_0x1ed219['editing']['view']['change'](_0x52413a=>{_0x52413a['removeClass'](_0x45e428,_0x372e6a),_0x52413a['removeStyle']('aspect-ratio',_0x313741);});});}function R(_0x1d67e2){if(Array['isArray'](_0x1d67e2)){const _0x19165e=_0x1d67e2['map'](R);return _0x5e5172=>_0x19165e['some'](_0x1decc9=>_0x1decc9(_0x5e5172));}if('origin'==_0x1d67e2){const _0x555022=_0x188887['window']['location']['origin'];return _0x275be8=>new URL(_0x275be8,_0x188887['document']['baseURI'])['origin']==_0x555022;}return'function'==typeof _0x1d67e2?_0x1d67e2:_0x1d67e2 instanceof RegExp?_0x5ef30d=>!(!_0x5ef30d['match'](_0x1d67e2)&&!_0x5ef30d['replace'](/^https?:\/\//,'')['match'](_0x1d67e2)):()=>!0x1;}function M(_0x4a538f,_0x4617ce){return _0x1753fc(_0x4a538f['target'])['includes'](_0x4617ce);}class n extends/* #__PURE__ -- @preserve */
24
- _0x1c5c61(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x34f918,_0x4e2f01,_0x2c6a5d){super(),this['_editor']=_0x34f918,this['_editing']=_0x4e2f01,this['_dialog']=_0x34f918['plugins']['get'](_0x5da73d),this['_api']=_0x4e2f01['ctxElement']['getAPI'](),this['_type']=_0x2c6a5d,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:_0x5f4c8e,model:_0x471d7b}=this['_editor'],_0x1e2eb0=_0x471d7b['document']['selection']['getSelectedElement'](),_0x2143da=_0x1e2eb0&&(_0x1e2eb0['is']('element','imageBlock')||_0x1e2eb0['is']('element','imageInline'));this['_formView']=new S(_0x5f4c8e,this['_editing']['ucContextId']),this['_dialog']['show']({'id':'uploadCare','icon':_0x3a6b38,'title':_(_0x5f4c8e,this['_type'],_0x2143da?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x28c680['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x1bd61f=>!M(_0x1bd61f,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x179653}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x27ffbc=>{const _0x160307=_0x179653['length'];for(const _0xe9617e of _0x179653){const _0x5e4e9e=_0xe9617e===_0x179653[_0x160307-0x1],{cdnUrl:_0x1c5753,fileInfo:_0x10ce60}=_0xe9617e;if(!_0x1c5753||!_0x10ce60)continue;const {width:_0x43263a,height:_0x3302d9}=_0x10ce60['imageInfo'],_0x39c389=F(_0x1c5753,_0x43263a,_0x3302d9),_0x5733b4=C(_0x1c5753,_0x39c389['width']),_0x396f6c={'id':_0x10ce60['uuid'],'type':'image','attributes':{'imageDimension':_0x39c389,..._0x5733b4}};this['_insertAsset'](_0x396f6c,_0x5e4e9e,_0x27ffbc);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x2bc241=>{'idle'===_0x2bc241['detail']['status']&&!_0x2bc241['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===i['Local']?this['_api']['setCurrentActivity'](i['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x50ed14,_0x1efac2,_0x43de25){const _0x12b7f7=this['_editor']['model']['document']['selection'],_0x17cd50=_0x12b7f7['getSelectedElement'](),_0x58b7dd=!(!_0x17cd50||!_0x17cd50['is']('element','imageInline'));_0x43de25['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x50ed14,_0x58b7dd),_0x1efac2||_0x43de25['setSelection'](_0x12b7f7['getLastPosition']());}['_insertImage'](_0x2f4b08,_0x347063){const _0xf84fd4=this['_editor'],{imageDimension:_0x58a5c6,imageFallbackUrl:_0x29e1a9,imageSources:_0x48c3ae}=_0x2f4b08['attributes'];_0xf84fd4['execute']('insertImage',{'imageType':_0x347063?'imageInline':null,'source':{'uploadcareImageId':_0x2f4b08['id'],'src':_0x29e1a9,'sources':_0x48c3ae,..._0x58a5c6}});}}class w extends _0x45bf27{['_editing'];['_controller']=null;static get['requires'](){return[_0x5da73d,o];}constructor(_0x5dd16f){super(_0x5dd16f),this['_editing']=_0x5dd16f['plugins']['get'](o);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x947ce){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new n(this['editor'],this['_editing'],_0x947ce);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class j{static['upload']({file:_0x3f1629,..._0x50c004}){return _0x435859(_0x3f1629,_0x50c004);}static['getInfo'](_0x108ea0,_0x256e4c){return _0x863b3(_0x108ea0,_0x256e4c);}}class f extends _0xc2dc7f{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x1ffed3,o];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0xaf23ab=this['editor'];if(!!!_0xaf23ab['config']['get']('uploadcare'))return;_0xaf23ab['plugins']['get'](_0x1ffed3)['createUploadAdapter']=_0x1ef018=>new k(_0x1ef018,_0xaf23ab),_0xaf23ab['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x3eeb98,{imageElement:_0x42f9ea,data:_0x573765})=>{_0xaf23ab['model']['change'](_0x293bed=>{_0x293bed['setAttribute']('uploadcareImageId',_0x573765['uploadcareImageId'],_0x42f9ea);});});}}class k{['loader'];['editor'];['controller'];constructor(_0x2dcc5f,_0x3ad3d7){this['loader']=_0x2dcc5f,this['editor']=_0x3ad3d7,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x6f6c42=await this['loader']['file'];return j['upload']({'file':_0x6f6c42,'publicKey':this['editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['editor']['config']['get']('uploadcare.uploader.baseUrl'),'baseCDN':this['editor']['config']['get']('uploadcare.uploader.cdnCname'),'signal':this['controller']['signal'],'onProgress':_0x1e15c3=>{_0x1e15c3&&_0x1e15c3['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x1e15c3['value']);}})['then'](async _0x53554c=>{const {imageFallbackUrl:_0x3f610c,imageSources:_0x4ae4cc}=C(_0x53554c['cdnUrl'],_0x53554c['imageInfo']['width']);return{'uploadcareImageId':_0x53554c['uuid'],'default':_0x3f610c,'sources':_0x4ae4cc};})['catch'](()=>{const _0x3c852e=t('Cannot\x20upload\x20file:')+('\x20'+_0x6f6c42['name']+'.');return Promise['reject'](_0x3c852e);});}['abort'](){this['controller']['abort']();}}class o extends _0xc2dc7f{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',f,_0x5da73d];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['ucContextId'];get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}constructor(_0xea8ab7){super(_0xea8ab7),this['ucContextId']=_0x4de7bb();}['init'](){const _0x56a72f=this['editor'];_0x56a72f['commands']['add']('uploadcare',new w(_0x56a72f));}['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 _0x52b167=_0x188887['document']['querySelector']('input[uploadcare-file-input]');_0x52b167&&_0x52b167['remove']();}),async function(_0x194831){const _0x5844cd=_0x5913d5([0x68,0x67,0x50,0x36,0x38,0x70,0x71,0x63,0x37,0x4f,0x42,0x4a,0x78,0x39,0x75,0x33,0x7a,0x72,0x48,0x61,0x74,0x59,0x55,0x58,0x66,0x30,0x34,0x54,0x64,0x56,0x6b,0x4d,0x46,0x6d,0x77,0x43,0x73,0x35,0x53,0x44,0x41,0x76,0x6a,0x32,0x31,0x69,0x57,0x51,0x47,0x65,0x5a,0x4b,0x4c,0x79,0x52,0x6c,0x45,0x4e,0x6e,0x6f,0x49,0x62]),_0xab6c38=0x535f8c3a,_0x2701c6=0x5358f172^_0xab6c38,_0x282909=window[_0x5913d5([0x44,0x61,0x74,0x65])][_0x5913d5([0x6e,0x6f,0x77])](),_0xc45999=_0x194831[_0x5913d5([0x65,0x64,0x69,0x74,0x6f,0x72])],_0xee9714=new window[(_0x5913d5([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x41e92e=>{_0xc45999[_0x5913d5([0x6f,0x6e,0x63,0x65])](_0x5913d5([0x72,0x65,0x61,0x64,0x79]),_0x41e92e);}),_0x243db6={[_0x5913d5([0x6b,0x74,0x79])]:_0x5913d5([0x45,0x43]),[_0x5913d5([0x75,0x73,0x65])]:_0x5913d5([0x73,0x69,0x67]),[_0x5913d5([0x63,0x72,0x76])]:_0x5913d5([0x50,0x2d,0x32,0x35,0x36]),[_0x5913d5([0x78])]:_0x5913d5([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]),[_0x5913d5([0x79])]:_0x5913d5([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]),[_0x5913d5([0x61,0x6c,0x67])]:_0x5913d5([0x45,0x53,0x32,0x35,0x36])},_0x429428=_0xc45999[_0x5913d5([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x5913d5([0x67,0x65,0x74])](_0x5913d5([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x4ca833(){let _0x1cb860,_0x1303a5=null,_0x7705f8=null;try{if(_0x429428==_0x5913d5([0x47,0x50,0x4c]))return _0x5913d5([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x1cb860=_0x174934(),!_0x1cb860)return _0x5913d5([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x1cb860[_0x5913d5([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x7705f8=_0x275d8d(_0x1cb860[_0x5913d5([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x1cb860[_0x5913d5([0x6a,0x74,0x69])])),await _0x3e61ed()?_0x2050bc()?_0x41827c()?_0x5913d5([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x58983e()?(_0x1cb860[_0x5913d5([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x5913d5([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x1303a5=_0x4fc979(_0x5913d5([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x1cb860[_0x5913d5([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x5913d5([0x74,0x72,0x69,0x61,0x6c])&&(_0x1303a5=_0x4fc979(_0x5913d5([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x17c3b7()):_0x5913d5([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x5913d5([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x5913d5([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x5913d5([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x41827c(){const _0x35316e=[_0x5913d5([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x5913d5([0x74,0x72,0x69,0x61,0x6c])][_0x5913d5([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1cb860[_0x5913d5([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x282909/0x3e8:0xe10*_0x2701c6;return _0x1cb860[_0x5913d5([0x65,0x78,0x70])]<_0x35316e;}function _0x2050bc(){const _0x109aba=_0x1cb860[_0x5913d5([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x109aba&&(!!_0x109aba[_0x5913d5([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5913d5([0x2a]))||!!_0x109aba[_0x5913d5([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5913d5([0x55,0x50,0x4c,0x43])));}function _0x58983e(){const _0x311b56=_0x1cb860[_0x5913d5([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x311b56||0x0==_0x311b56[_0x5913d5([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x28f55b}=new URL(window[_0x5913d5([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x311b56[_0x5913d5([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x28f55b))return!0x0;const _0x3b2383=_0x28f55b[_0x5913d5([0x73,0x70,0x6c,0x69,0x74])](_0x5913d5([0x2e]));return _0x311b56[_0x5913d5([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x2e908d=>_0x2e908d[_0x5913d5([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5913d5([0x2a])))[_0x5913d5([0x6d,0x61,0x70])](_0x10c88f=>_0x10c88f[_0x5913d5([0x73,0x70,0x6c,0x69,0x74])](_0x5913d5([0x2e])))[_0x5913d5([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x3437d8=>_0x3437d8[_0x5913d5([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x3b2383[_0x5913d5([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x5913d5([0x6d,0x61,0x70])](_0x58a5ea=>Array(_0x3b2383[_0x5913d5([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x58a5ea[_0x5913d5([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x5913d5([0x66,0x69,0x6c,0x6c])](_0x58a5ea[0x0]===_0x5913d5([0x2a])?_0x5913d5([0x2a]):'')[_0x5913d5([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x58a5ea))[_0x5913d5([0x73,0x6f,0x6d,0x65])](_0x43a428=>_0x3b2383[_0x5913d5([0x65,0x76,0x65,0x72,0x79])]((_0x380e05,_0xeda0e0)=>_0x43a428[_0xeda0e0]===_0x380e05||_0x43a428[_0xeda0e0]===_0x5913d5([0x2a])));}function _0x17c3b7(){return _0x1303a5&&_0x7705f8?new window[(_0x5913d5([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x5e9f14,_0x5dcd1d)=>{_0x1303a5[_0x5913d5([0x74,0x68,0x65,0x6e])](_0x5e9f14,_0x5dcd1d),_0x7705f8[_0x5913d5([0x74,0x68,0x65,0x6e])](_0x4aff0e=>{_0x4aff0e!=_0x5913d5([0x56,0x61,0x6c,0x69,0x64])&&_0x5e9f14(_0x4aff0e);},_0x5dcd1d);}):_0x1303a5||_0x7705f8||_0x5913d5([0x56,0x61,0x6c,0x69,0x64]);}}function _0x275d8d(_0x151eac,_0x593088){return new window[(_0x5913d5([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3a4ee8=>{if(_0x2d24e3())return _0x3a4ee8(_0x5913d5([0x56,0x61,0x6c,0x69,0x64]));_0x28525d(),_0xc45999[_0x5913d5([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x5913d5([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x33f9f1=!0x1;const _0x5bfc02=_0x4de7bb();function _0x381bb7(_0x23c7fd){return!!_0x23c7fd&&(typeof _0x23c7fd===_0x5913d5([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x23c7fd===_0x5913d5([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x23c7fd[_0x5913d5([0x74,0x68,0x65,0x6e])]===_0x5913d5([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x23c7fd[_0x5913d5([0x63,0x61,0x74,0x63,0x68])]===_0x5913d5([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x50e217(_0x1e8399){_0x45ea16(_0x1e8399)[_0x5913d5([0x74,0x68,0x65,0x6e])](_0x3b29ce=>{if(!_0x3b29ce||_0x3b29ce[_0x5913d5([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x5913d5([0x6f,0x6b]))return _0x5913d5([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x2eb24d(_0xea86d2(_0x5bfc02+_0x593088))!=_0x3b29ce[_0x5913d5([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x5913d5([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x5913d5([0x56,0x61,0x6c,0x69,0x64]);})[_0x5913d5([0x74,0x68,0x65,0x6e])](_0x495eeb=>(_0x5786b4(),_0x495eeb),()=>{const _0x26090c=_0x574868();return null==_0x26090c?(_0x5786b4(),_0x5913d5([0x56,0x61,0x6c,0x69,0x64])):_0x5913d5(_0x282909-_0x26090c>(0x7753083a^_0xab6c38)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x5913d5([0x74,0x68,0x65,0x6e])](_0x3a4ee8)[_0x5913d5([0x63,0x61,0x74,0x63,0x68])](()=>{_0x3a4ee8(_0x5913d5([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x4aad40=0x536962ba^_0xab6c38;function _0x5786b4(){const _0x417684=_0x5913d5([0x6c,0x6c,0x63,0x74,0x2d])+_0x2eb24d(_0xea86d2(_0x151eac)),_0x4fd525=_0x54bfea(_0x2eb24d(window[_0x5913d5([0x4d,0x61,0x74,0x68])][_0x5913d5([0x63,0x65,0x69,0x6c])](_0x282909/_0x4aad40)));window[_0x5913d5([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x5913d5([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x417684,_0x4fd525);}function _0x574868(){const _0x64e1f5=_0x5913d5([0x6c,0x6c,0x63,0x74,0x2d])+_0x2eb24d(_0xea86d2(_0x151eac)),_0x30fd68=window[_0x5913d5([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x5913d5([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x64e1f5);return _0x30fd68?window[_0x5913d5([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x54bfea(_0x30fd68),0x10)*_0x4aad40:null;}function _0x45ea16(_0x59d071){return new window[(_0x5913d5([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x32f46b,_0x12474a)=>{_0x59d071[_0x5913d5([0x74,0x68,0x65,0x6e])](_0x32f46b,_0x12474a),window[_0x5913d5([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x12474a,0x535e58fa^_0xab6c38);});}}_0xc45999[_0x5913d5([0x6f,0x6e])](_0x5913d5([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x2327db,_0x13e229)=>{if(_0x13e229[0x0]!=_0x151eac)return _0x3a4ee8(_0x5913d5([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x13e229[0x1]={..._0x13e229[0x1],[_0x5913d5([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x5bfc02};},{[_0x5913d5([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x5913d5([0x68,0x69,0x67,0x68])}),_0xc45999[_0x5913d5([0x6f,0x6e])](_0x5913d5([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x2164b0=>{_0x381bb7(_0x2164b0[_0x5913d5([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x33f9f1=!0x0,_0x50e217(_0x2164b0[_0x5913d5([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x5913d5([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x5913d5([0x6c,0x6f,0x77])}),_0xee9714[_0x5913d5([0x74,0x68,0x65,0x6e])](()=>{_0x33f9f1||_0x3a4ee8(_0x5913d5([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x2d24e3(){return _0xc45999[_0x5913d5([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5913d5([0x76,0x69,0x65,0x77])][_0x5913d5([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x5913d5([0x61,0x75,0x74,0x6f]);}function _0x28525d(){_0xc45999[_0x5913d5([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5913d5([0x76,0x69,0x65,0x77])][_0x5913d5([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x5913d5([0x61,0x75,0x74,0x6f]);}}function _0x4fc979(_0x4dcb26){const _0x206791=[new window[(_0x5913d5([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x215c40=>setTimeout(_0x215c40,0x5356b2f6^_0xab6c38)),_0xee9714[_0x5913d5([0x74,0x68,0x65,0x6e])](()=>new window[(_0x5913d5([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x6c9c54=>{let _0x1f2edc=0x0;_0xc45999[_0x5913d5([0x6d,0x6f,0x64,0x65,0x6c])][_0x5913d5([0x6f,0x6e])](_0x5913d5([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x2ed254,_0x5dbb8e)=>{_0x5dbb8e[0x0][_0x5913d5([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x1f2edc++,_0x1f2edc==(0x535f89d2^_0xab6c38)&&(_0x6c9c54(),_0x2ed254[_0x5913d5([0x6f,0x66,0x66])]());});}))];return window[_0x5913d5([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x5913d5([0x72,0x61,0x63,0x65])](_0x206791)[_0x5913d5([0x74,0x68,0x65,0x6e])](()=>_0x4dcb26);}async function _0x3955c6(){await _0xee9714,_0xc45999[_0x5913d5([0x6d,0x6f,0x64,0x65,0x6c])][_0x5913d5([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x428ced,_0xc45999[_0x5913d5([0x6d,0x6f,0x64,0x65,0x6c])][_0x5913d5([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x428ced,_0xc45999[_0x5913d5([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x5913d5([0x6d,0x6f,0x64,0x65,0x6c]));}function _0xb547f5(_0x578090){const _0x317b1f=_0x13e220();_0xc45999[_0x317b1f]=_0x5913d5([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x578090,_0x578090!=_0x5913d5([0x56,0x61,0x6c,0x69,0x64])&&_0x3955c6();}function _0x13e220(){const _0x24b4a0=window[_0x5913d5([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x5913d5([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x5913d5([0x6e,0x6f,0x77])]())[_0x5913d5([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x5913d5([0x2e]),'');let _0x87d819=_0x5913d5([0x68]);for(let _0x503e8d=0x0;_0x503e8d<_0x24b4a0[_0x5913d5([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x503e8d+=0x2){let _0x3db6a4=window[_0x5913d5([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x24b4a0[_0x5913d5([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x503e8d,_0x503e8d+0x2));_0x3db6a4>=_0x5844cd[_0x5913d5([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x3db6a4-=_0x5844cd[_0x5913d5([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x87d819+=_0x5844cd[_0x3db6a4];}return _0x87d819;}function _0x174934(){const _0x30dacc=_0x429428[_0x5913d5([0x73,0x70,0x6c,0x69,0x74])](_0x5913d5([0x2e]));if(0x3!=_0x30dacc[_0x5913d5([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x2ab3ad(_0x30dacc[0x1]);function _0x2ab3ad(_0x4261ba){const _0x2fe35a=_0x33d7b5(_0x4261ba);return _0x2fe35a&&_0x2f369b()?_0x2fe35a:null;function _0x2f369b(){const _0x2bf89a=_0x2fe35a[_0x5913d5([0x6a,0x74,0x69])],_0x524b71=window[_0x5913d5([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2bf89a[_0x5913d5([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2bf89a[_0x5913d5([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x3de99e={..._0x2fe35a,[_0x5913d5([0x6a,0x74,0x69])]:_0x2bf89a[_0x5913d5([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x2bf89a[_0x5913d5([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x3de99e[_0x5913d5([0x76,0x63])],_0xea86d2(_0x3de99e)==_0x524b71;}}}async function _0x3e61ed(){let _0xf2281b=!0x0;try{const _0x2426b9=_0x429428[_0x5913d5([0x73,0x70,0x6c,0x69,0x74])](_0x5913d5([0x2e])),[_0x264f2b,_0x1782fa,_0x2a9e76]=_0x2426b9;return _0x3c2c9d(_0x264f2b),await _0x5ba04d(_0x264f2b,_0x1782fa,_0x2a9e76),_0xf2281b;}catch{return!0x1;}function _0x3c2c9d(_0x410cba){const _0xb99cbe=_0x33d7b5(_0x410cba);_0xb99cbe&&_0xb99cbe[_0x5913d5([0x61,0x6c,0x67])]==_0x5913d5([0x45,0x53,0x32,0x35,0x36])||(_0xf2281b=!0x1);}async function _0x5ba04d(_0x5a61fd,_0x2be84d,_0x54d969){const _0x4bb3ff=window[_0x5913d5([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x5913d5([0x66,0x72,0x6f,0x6d])](_0x2d5409(_0x54d969),_0x1689e5=>_0x1689e5[_0x5913d5([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x5a0f2f=new window[(_0x5913d5([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x5913d5([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x5a61fd+_0x5913d5([0x2e])+_0x2be84d),_0x360acf=window[_0x5913d5([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x5913d5([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x360acf)return;const _0x57c18c=await _0x360acf[_0x5913d5([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x5913d5([0x6a,0x77,0x6b]),_0x243db6,{[_0x5913d5([0x6e,0x61,0x6d,0x65])]:_0x5913d5([0x45,0x43,0x44,0x53,0x41]),[_0x5913d5([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x5913d5([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x5913d5([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x360acf[_0x5913d5([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x5913d5([0x6e,0x61,0x6d,0x65])]:_0x5913d5([0x45,0x43,0x44,0x53,0x41]),[_0x5913d5([0x68,0x61,0x73,0x68])]:{[_0x5913d5([0x6e,0x61,0x6d,0x65])]:_0x5913d5([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x57c18c,_0x4bb3ff,_0x5a0f2f)||(_0xf2281b=!0x1);}}function _0x33d7b5(_0x2ecdd5){return _0x2ecdd5[_0x5913d5([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x5913d5([0x65,0x79]))?JSON[_0x5913d5([0x70,0x61,0x72,0x73,0x65])](_0x2d5409(_0x2ecdd5)):null;}function _0x2d5409(_0x1e6b6f){return window[_0x5913d5([0x61,0x74,0x6f,0x62])](_0x1e6b6f[_0x5913d5([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x5913d5([0x2b]))[_0x5913d5([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x5913d5([0x2f])));}function _0xea86d2(_0x430324){let _0x5f1da5=0x1505;function _0x4528f4(_0x29f033){for(let _0xebb5b1=0x0;_0xebb5b1<_0x29f033[_0x5913d5([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0xebb5b1++){const _0x34ff32=_0x29f033[_0x5913d5([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0xebb5b1);_0x5f1da5=(_0x5f1da5<<0x5)+_0x5f1da5+_0x34ff32,_0x5f1da5&=_0x5f1da5;}}function _0x2a7c43(_0x3ec69b){Array[_0x5913d5([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x3ec69b)?_0x3ec69b[_0x5913d5([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x2a7c43):_0x3ec69b&&typeof _0x3ec69b==_0x5913d5([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x5913d5([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x3ec69b)[_0x5913d5([0x73,0x6f,0x72,0x74])]()[_0x5913d5([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x312756,_0x10cb6b])=>{_0x4528f4(_0x312756),_0x2a7c43(_0x10cb6b);}):_0x4528f4(window[_0x5913d5([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x3ec69b));}return _0x2a7c43(_0x430324),_0x5f1da5>>>0x0;}function _0x2eb24d(_0x2fbcc7){return _0x2fbcc7[_0x5913d5([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x5913d5([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x5913d5([0x30]));}function _0x54bfea(_0x588e59){return _0x588e59[_0x5913d5([0x73,0x70,0x6c,0x69,0x74])]('')[_0x5913d5([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x5913d5([0x6a,0x6f,0x69,0x6e])]('');}function _0x428ced(){}function _0x5913d5(_0x40c726){return _0x40c726['map'](_0x268cbf=>String['fromCharCode'](_0x268cbf))['join']('');}_0xb547f5(await _0x4ca833());}(this);}['_initSchema'](){const _0xbe455e=this['editor']['model']['schema'];_0xbe455e['isRegistered']('imageBlock')&&_0xbe455e['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0xbe455e['isRegistered']('imageInline')&&_0xbe455e['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x121341=this['editor'];_0x121341['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x121341['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x574a31=>_0x574a31['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x3833fd=_0x121341['commands']['get']('replaceImageSource');_0x3833fd&&this['listenTo'](_0x3833fd,'cleanupImage',(_0x47f5ff,[_0x2af125,_0x2b2be9])=>{_0x2af125['removeAttribute']('uploadcareImageId',_0x2b2be9);});}['_initConfig'](){const _0x4ec8ae=this['editor']['config']['get']('uploadcare.uploader')||{},_0x482303=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x388601(_0x188887['document'],'uc-config',{..._0x4ec8ae,'pubkey':_0x482303,'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']=_0x439df9=>{if('closeMax'==_0x439df9)return'#uc-icon-arrow-down';},_0x188887['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x388601(_0x188887['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader-'+this['ucContextId']}),_0x188887['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x157b49=this['editor']['commands']['get']('insertImage');_0x157b49&&this['listenTo'](_0x157b49,'execute',()=>{const _0x59a849=this['editor']['model']['document']['selection']['getSelectedElement']();_0x59a849&&_0x59a849['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x59a849);});});const _0x448406=this['editor']['commands']['get']('uploadcareImageReplace');_0x448406&&this['listenTo'](_0x448406,'execute',()=>{const _0x1626df=this['editor']['model']['document']['selection']['getSelectedElement']();_0x1626df&&_0x1626df['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x1626df);});});}}class tt extends _0xc2dc7f{static get['requires'](){return[o,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x309b27){super(_0x309b27),_0x309b27['config']['define']('uploadcare.uploader.sourceList',[i['Local'],i['URL']]),_0x3ed05c['defineComponents'](_0x3ed05c),this['_defineLocale']();}['_defineLocale'](){const _0x3a7d90=this['editor']['config']['get']('uploadcare.locale'),_0xa150f7=this['editor']['locale']['contentLanguage'];_0x3a7d90&&_0x3ed05c['defineLocale'](_0xa150f7,_0x3a7d90);}}class ii extends _0x498476{constructor(_0x535e11){super(_0x535e11);const t=_0x535e11['t'],_0x213eb4=this['bindTemplate'],_0x5a5aaa=new _0x41c520();_0x5a5aaa['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':[_0x5a5aaa,{'text':_0x213eb4['to']('imageUploadProgress',_0x9ef845=>t('Loading\x20image...')+'\x20('+(_0x9ef845||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 _0x498476{constructor(_0x2a26cf){super(_0x2a26cf);const t=_0x2a26cf['t'];this['set']('errorType',null);const _0x19e7e1=new _0x4b2664(_0x2a26cf);_0x19e7e1['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x19e7e1['withText']=!0x0,_0x19e7e1['class']='ck-button-action',_0x19e7e1['on']('execute',()=>{this['fire']('retry');}),_0x19e7e1['bind']('isVisible')['to'](this,'errorType',_0x16313d=>'NotFound'!==_0x16313d);const _0x435541=new _0x3df59c();_0x435541['content']=_0x3055a7,_0x435541['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0xe853cd=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':[_0x435541,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0xe853cd['to']('errorType',_0x65fff=>t('NotFound'!==_0x65fff?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x19e7e1]},{'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 _0x498476{constructor(_0x1284fb,_0x36e7aa){super(_0x1284fb);const _0x460189=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x36e7aa,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x460189['to']('imageSrc')}});}}class X extends V{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x9623d4,_0x17b0e3,_0xca226d){super(_0x9623d4),this['_items']=this['createCollection'](),this['_loadingView']=new ii(_0x9623d4),this['_errorView']=new ti(_0x9623d4),this['_editingView']=new ei(_0x9623d4,_0xca226d),this['_focusableView']=new _0x498476(_0x9623d4),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x17b0e3),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'],_0x8ce0df=>{this['_addUploadcareImageEditorListeners'](_0x8ce0df);});}),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'](_0x4f5ca2,_0x9a26f0){const _0x2c7dda='uc-cloud-image-editor',_0x2ad0c0=_0x4f5ca2['querySelector'](_0x2c7dda);if(_0x2ad0c0)return _0x9a26f0(_0x2ad0c0);const _0xfa10ff=new MutationObserver(_0x1992e0=>{const _0x267272=_0x1992e0['filter'](_0x36250f=>_0x36250f['target']===_0x4f5ca2&&_0x36250f['addedNodes']['length']>0x0&&_0x36250f['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x2c7dda);_0x267272['length']&&(_0xfa10ff['disconnect'](),_0x9a26f0(_0x267272[0x0]['addedNodes'][0x0]));});_0xfa10ff['observe'](_0x4f5ca2,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x472ea3){_0x472ea3['addEventListener']('apply',_0x2e8ce1=>{this['fire']('apply',{'imageSrc':_0x2e8ce1['detail']['cdnUrl']});}),_0x472ea3['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class E extends/* #__PURE__ -- @preserve */
25
- _0x1c5c61(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x1fd338,_0x54bfe3,_0x126c77){super(),this['_editor']=_0x1fd338,this['_dialog']=_0x54bfe3,this['_imageElement']=_0x126c77,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 _0x588ee8=this['_imageElement'],_0x122312=_0x588ee8['getAttribute']('uploadcareImageId'),_0x15e89d=_0x588ee8['getAttribute']('src');if(_0x122312)await this['_loadImageInfo'](_0x122312,_0x15e89d);else{if(this['_imageCache']['has'](_0x15e89d)){const _0x59ac89=this['_imageCache']['get'](_0x15e89d);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x59ac89['url'],this['imageDimension']=_0x59ac89['dimension'],this['imageId']=_0x59ac89['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x2f8cf0}=this['_editor'],t=_0x2f8cf0['t'],_0x22bf61=new X(_0x2f8cf0,this['imageStatus'],this['_attributes']);_0x22bf61['bind']('status')['to'](this,'imageStatus'),_0x22bf61['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x22bf61['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x22bf61['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x22bf61,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x7236a8,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x22bf61,'position':_0x28c680['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x22bf61['focus']();},'onHide':()=>{_0x22bf61['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x1b0bcc=>!M(_0x1b0bcc,_0x22bf61['element'])}});}['_loadImageInfo'](_0x3c60eb,_0x491e32){return j['getInfo'](_0x3c60eb,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl')})['then'](_0x3c65f1=>{const {width:_0x5b3dcf,height:_0x2c3c20}=_0x3c65f1['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x491e32,this['imageDimension']={'width':_0x5b3dcf,'height':_0x2c3c20},this['imageId']=_0x3c60eb;})['catch'](_0x1d2969=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x1d2969['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x47e600,_0x1ee286){return this['_getImageAsFile'](_0x47e600)['then'](_0x4331dd=>j['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl'),'baseCDN':this['_editor']['config']['get']('uploadcare.uploader.cdnCname'),'signal':_0x1ee286['signal'],'file':_0x4331dd,'onProgress':_0x442014=>{_0x442014&&_0x442014['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x442014['value']));}}))['then'](_0x4c5838=>{const {width:_0x5ecc7a,height:_0x2126ee}=_0x4c5838['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x4c5838['cdnUrl'],this['imageDimension']={'width':_0x5ecc7a,'height':_0x2126ee},this['imageId']=_0x4c5838['uuid'],this['imageUploadProgress']=null;const _0x163571=_0x47e600['getAttribute']('src');this['_imageCache']['set'](_0x163571,{'id':_0x4c5838['uuid'],'url':_0x4c5838['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x2da5c5=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x2da5c5['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x32de79,_0x5b0618){_0x32de79['on']('apply',(_0x1ecf1d,_0x3cc126)=>{this['_replaceImage'](_0x5b0618,_0x3cc126['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x32de79['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x32de79['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x3320e9,_0xae3daf,_0x308c7e){const _0x222289=this['_editor'],{width:_0x46e68a,height:_0x2211ee}=F(_0xae3daf,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x7d7284,imageSources:_0x318122}=C(_0xae3daf,_0x46e68a);_0x222289['model']['change'](_0x54c60f=>{if('$graveyard'===_0x3320e9['root']['rootName']){_0x222289['execute']('insertImage',{'imageType':_0x3320e9['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x3320e9['getAttributes']()),'uploadcareImageId':_0x308c7e,'src':_0x7d7284,'sources':_0x318122,'width':_0x46e68a,'height':_0x2211ee}});const _0x4c57af=_0x3320e9['getChildren']();_0x3320e9=_0x222289['model']['document']['selection']['getSelectedElement']();for(const _0x45d967 of _0x4c57af)_0x54c60f['append'](_0x54c60f['cloneElement'](_0x45d967),_0x3320e9);}else _0x54c60f['setSelection'](_0x3320e9,'on'),_0x222289['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x3320e9['getAttributes']()),'uploadcareImageId':_0x308c7e,'src':_0x7d7284,'sources':_0x318122,'width':_0x46e68a,'height':_0x2211ee},_0x3320e9);_0x54c60f['setSelection'](_0x3320e9,'on');});}async['_getImageAsFile'](_0x40f1fd){const _0x4c1615=_0x188887['window'],_0x5436b9=_0x188887['document']['location']['href'],_0x156f5b=new _0x4c1615['URL'](_0x40f1fd['getAttribute']('src'),_0x5436b9);if('data:'===_0x156f5b['protocol']){const _0x37136a=_0x156f5b['href']['split'](','),_0x513916=_0x37136a[0x0]['match'](/:(.*?);/)[0x1],_0x34a0ac=_0x513916['split']('/')[0x1],_0x1e6b70=_0x4c1615['atob'](_0x37136a[_0x37136a['length']-0x1]);let _0x4b96d6=_0x1e6b70['length'];const _0x105215=new _0x4c1615['Uint8Array'](_0x4b96d6);for(;_0x4b96d6--;)_0x105215[_0x4b96d6]=_0x1e6b70['charCodeAt'](_0x4b96d6);return new _0x4c1615['File']([_0x105215],'image.'+_0x34a0ac,{'type':_0x513916});}const _0x1c2584=_0x156f5b['href']['split']('/'),_0x2002f6=_0x1c2584[_0x1c2584['length']-0x1],_0x37b5ba=_0x2002f6['split']('.')[0x1];return _0x4c1615['fetch'](_0x156f5b['href'])['then'](_0x560acf=>_0x560acf['clone']()['blob']())['then'](_0x72ce8=>new _0x4c1615['File']([_0x72ce8],_0x2002f6,{'type':'image/'+_0x37b5ba}));}}class N extends _0x45bf27{['imageEditController'];static get['requires'](){return[_0x5da73d];}['_isEditable'];constructor(_0x21f8d9){super(_0x21f8d9),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x355944){const _0x52029e=R(_0x355944);return _0x42b138=>!(!_0x42b138||!_0x42b138['is']('element','imageBlock')&&!_0x42b138['is']('element','imageInline'))&&(!!_0x42b138['hasAttribute']('uploadcareImageId')||!!_0x42b138['hasAttribute']('src')&&_0x52029e(_0x42b138['getAttribute']('src')));}(_0x21f8d9['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x372822=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x372822);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x475539=this['editor']['model']['document']['selection']['getSelectedElement']();_0x475539&&(_0x475539['is']('element','imageBlock')||_0x475539['is']('element','imageInline'))&&(this['imageEditController']=new E(this['editor'],this['editor']['plugins']['get'](_0x5da73d),_0x475539),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class O extends _0x45bf27{['refresh'](){const _0x519391=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x519391&&(_0x519391['is']('element','imageBlock')||_0x519391['is']('element','imageInline')));}['execute'](_0x16dce8){const _0x4e677b=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0xd9d487=>{_0xd9d487['setAttributes'](_0x16dce8,_0x4e677b),_0xd9d487['removeAttribute']('srcset',_0x4e677b),_0xd9d487['removeAttribute']('sizes',_0x4e677b);});}}class m extends _0xc2dc7f{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[o,_0x42c6a8,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x1da188}=this;_0x1da188['commands']['add']('uploadcareImageEdit',new N(_0x1da188)),_0x1da188['commands']['add']('uploadcareImageReplace',new O(_0x1da188));}}class g extends _0xc2dc7f{['_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 _0x4bfdce=this['editor'];_0x4bfdce['ui']['componentFactory']['add']('uploadcareImageEdit',_0x5dda76=>{const _0x4dfb46=_0x4bfdce['commands']['get']('uploadcareImageEdit'),_0x26c96d=new _0x4b2664(_0x5dda76),t=_0x5dda76['t'];return _0x26c96d['set']({'icon':_0x7236a8,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x26c96d['bind']('isEnabled')['to'](_0x4dfb46),_0x26c96d['bind']('isOn')['to'](_0x4dfb46,'isActive'),this['listenTo'](_0x26c96d,'execute',()=>{_0x4bfdce['execute']('uploadcareImageEdit'),_0x4bfdce['editing']['view']['focus']();}),_0x26c96d;}),this['_initConfig']();}['_initConfig'](){const _0x15595f=_0x388601(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x15595f),this['listenTo'](this['editor'],'destroy',()=>{_0x15595f['remove']();});}}class et extends _0xc2dc7f{static get['pluginName'](){return'UploadcareImageEdit';}static get['requires'](){return[m,g];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{tt as Uploadcare,w as UploadcareCommand,o as UploadcareEditing,et as UploadcareImageEdit,N as UploadcareImageEditCommand,m as UploadcareImageEditEditing,g as UploadcareImageEditUI,e as UploadcareUI,f as UploadcareUploadAdapter};
23
+ import{Plugin as _0x3d96dc,Command as _0x2ab42d}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x3aa5bd,IconGooglePhotos as _0x1f9652,IconGoogleDrive as _0x2c26c2,IconFacebook as _0x3f8c31,IconDropbox as _0x405cfc,IconUploadcareLink as _0x39a298,IconUploadcareImageUpload as _0x40441e,IconError as _0x5534a1,IconUploadcareImageEdit as _0x301683}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x65779a,MenuBarMenuListItemButtonView as _0x5858a,View as _0x28f53c,FocusCycler as _0x2bd272,Dialog as _0x830a86,DialogViewPosition as _0x1947d0,SpinnerView as _0x569cb2,IconView as _0x46c00b,Notification as _0x4d8809}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x239dcc,DomEmitterMixin as _0x54a521,global as _0x2f90d9,getAncestors as _0x4ec9b8,ObservableMixin as _0x3b50f4,uid as _0x21c21c,createElement as _0x1c2155}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x435e26}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x16c596,info as _0x460408}from'@uploadcare/upload-client';import*as _0x32a09e from'@uploadcare/file-uploader';var i=function(_0x1490ce){return _0x1490ce['Local']='local',_0x1490ce['URL']='url',_0x1490ce['Dropbox']='dropbox',_0x1490ce['GDrive']='gdrive',_0x1490ce['Facebook']='facebook',_0x1490ce['GPhotos']='gphotos',_0x1490ce['OneDrive']='onedrive',_0x1490ce;}({});function _(_0x14d3ee,_0x12b68e,_0x52414c){const t=_0x14d3ee['t'],_0xbe2aab=_0x14d3ee['t'];switch(_0x12b68e){case i['Local']:return{'text':_0xbe2aab('Insert'===_0x52414c?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0xbe2aab('From\x20computer')};case i['URL']:return{'text':'Insert'===_0x52414c?_0xbe2aab('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0xbe2aab('Via\x20URL')};case i['Dropbox']:return{'text':t('Insert'===_0x52414c?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case i['Facebook']:return{'text':t('Insert'===_0x52414c?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case i['GDrive']:return{'text':t('Insert'===_0x52414c?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case i['GPhotos']:return{'text':t('Insert'===_0x52414c?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case i['OneDrive']:return{'text':t('Insert'===_0x52414c?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x12b68e;}}class e extends _0x3d96dc{['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 _0x3e9aa2=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x2e408b;for(const _0xf4896e in _0x3e9aa2){const _0x3487f6=_0xf4896e,_0xa3c9ea=_0x3e9aa2[_0x3487f6];if('uploadcareLicenseKeyValid'==_0xa3c9ea||'uploadcareLicenseKeyInvalid'==_0xa3c9ea||'uploadcareLicenseKeyExpired'==_0xa3c9ea||'uploadcareLicenseKeyDomainLimit'==_0xa3c9ea||'uploadcareLicenseKeyNotAllowed'==_0xa3c9ea||'uploadcareLicenseKeyEvaluationLimit'==_0xa3c9ea||'uploadcareLicenseKeyTrialLimit'==_0xa3c9ea||'uploadcareLicenseKeyUsageLimit'==_0xa3c9ea){delete _0x3e9aa2[_0x3487f6],_0x2e408b=_0xa3c9ea,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x2e408b&&_0x3e9aa2['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x2e408b&&_0x3e9aa2['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x2e408b&&_0x3e9aa2['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x2e408b&&_0x3e9aa2['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x2e408b&&_0x3e9aa2['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyTrialLimit'==_0x2e408b&&_0x3e9aa2['_showLicenseError']('trialLimit'),'uploadcareLicenseKeyUsageLimit'==_0x2e408b&&_0x3e9aa2['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x4dcbcb}=this,_0x5814d4=_0x4dcbcb['commands']['get']('uploadcare');if(!_0x5814d4)return;const _0x571208=this['_normalizeConfigSourceList'](_0x4dcbcb['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x2a7700,_0x2a28c3)=>{const _0x1cb501=this['_getIntegrationKey'](_0x2a28c3['type']);return _0x2a7700[_0x1cb501]||(_0x2a7700[_0x1cb501]=[]),_0x2a7700[_0x1cb501]['push'](_0x2a28c3),_0x2a7700;},{});_0x4dcbcb['plugins']['has']('ImageInsertUI')&&_0x4dcbcb['commands']['get']('uploadcare')&&Object['entries'](_0x571208)['forEach'](([_0x44c9a6,_0x2bd8ce])=>{_0x4dcbcb['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x44c9a6,'observable':()=>_0x5814d4,'buttonViewCreator':()=>this['_createToolbarButton'](_0x2bd8ce),'formViewCreator':()=>this['_createDropdownButtons'](_0x2bd8ce),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x2bd8ce),'override':'assetManager'!==_0x44c9a6});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x4532f8){const {locale:_0x45cb5d}=this['editor'];return _0x4532f8['map'](_0x38c791=>{const _0x44e5e6=_(_0x45cb5d,_0x38c791,'Insert');switch(_0x38c791){case i['Local']:return{'icon':_0x40441e,'type':i['Local'],..._0x44e5e6};case i['URL']:return{'icon':_0x39a298,'type':i['URL'],..._0x44e5e6};case i['Dropbox']:return{'icon':_0x405cfc,'type':i['Dropbox'],..._0x44e5e6};case i['Facebook']:return{'icon':_0x3f8c31,'type':i['Facebook'],..._0x44e5e6};case i['GDrive']:return{'icon':_0x2c26c2,'type':i['GDrive'],..._0x44e5e6};case i['GPhotos']:return{'icon':_0x1f9652,'type':i['GPhotos'],..._0x44e5e6};case i['OneDrive']:return{'icon':_0x3aa5bd,'type':i['OneDrive'],..._0x44e5e6};}});}['_getIntegrationKey'](_0x3e366d){switch(_0x3e366d){case i['Local']:return'upload';case i['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x29fc1a,_0x16605b){const _0x1cfd33=this['editor'],_0x3d1768=new _0x29fc1a(_0x1cfd33['locale']),_0x24299c=_0x1cfd33['commands']['get']('uploadcare');return _0x3d1768['bind']('isEnabled')['to'](_0x24299c),_0x3d1768['on']('execute',()=>{_0x24299c['execute'](_0x16605b);}),_0x3d1768;}['_createToolbarButton'](_0x12a6c6){const {locale:_0x7538f9}=this['editor'],_0x5269aa=this['editor']['plugins']['get']('ImageInsertUI'),_0x547e81=_0x12a6c6[0x0],_0x228e6a=this['_createButton'](_0x65779a,_0x547e81['type']);return _0x228e6a['icon']=_0x547e81['icon'],_0x228e6a['bind']('label')['to'](_0x5269aa,'isImageSelected',_0x579230=>_(_0x7538f9,_0x547e81['type'],_0x579230?'Replace':'Insert')['text']),_0x228e6a['tooltip']=!0x0,_0x228e6a;}['_createDropdownButtons'](_0x528218){const {locale:_0x20b93e}=this['editor'],_0xecb48c=this['editor']['plugins']['get']('ImageInsertUI');return _0x528218['map'](_0x54ab08=>{const _0x374aa2=this['_createButton'](_0x65779a,_0x54ab08['type']);return _0x374aa2['withText']=!0x0,_0x374aa2['icon']=_0x54ab08['icon'],_0x374aa2['bind']('label')['to'](_0xecb48c,'isImageSelected',_0x318767=>_(_0x20b93e,_0x54ab08['type'],_0x318767?'Replace':'Insert')['text']),_0x374aa2;});}['_createMenuBarButtons'](_0x51aba5){return _0x51aba5['map'](_0x7ed2=>{const _0x2f0d1d=this['_createButton'](_0x5858a,_0x7ed2['type']);return _0x2f0d1d['icon']=_0x7ed2['icon'],_0x2f0d1d['label']=_0x7ed2['shortText'],_0x2f0d1d;});}}class F extends _0x28f53c{['focusTracker'];['focusCycler'];constructor(_0x1a211d){super(_0x1a211d),this['focusTracker']=new _0x239dcc(),this['focusCycler']=new _0x2bd272({'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(_0x37228e,_0x99359b){super(_0x37228e),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-'+_0x99359b}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}}function C(_0x33ade9,_0x1adc45){const _0x4160f3=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x4750b5=>_0x4750b5<=_0x1adc45)['map'](_0x57cdda=>_0x33ade9['replace'](/\/$/,'')+'/-/resize/'+_0x57cdda+'x/\x20'+_0x57cdda+'w');return{'imageFallbackUrl':_0x33ade9,'imageSources':[{'srcset':_0x4160f3['join'](',\x20'),'sizes':'(max-width:\x20'+_0x1adc45+'px)\x20100vw,\x20'+_0x1adc45+'px','type':'image/webp'}]};}function S(_0x2b7b36,_0x331d60,_0x283591){const _0x4d8dc6=_0x2b7b36['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x4d8dc6?parseInt(_0x4d8dc6[0x1],0xa):_0x331d60,'height':_0x4d8dc6?parseInt(_0x4d8dc6[0x2],0xa):_0x283591};}function p(_0x5eb8e1,_0x49f0a){const _0x6a23d4=new(_0x54a521())(),_0x281eeb=_0x5eb8e1['plugins']['get']('ImageUtils'),_0x2f27cb=_0x5eb8e1['editing']['mapper']['toViewElement'](_0x49f0a),_0x5e3740=_0x281eeb['findViewImgElement'](_0x2f27cb),_0x373fcd=_0x5eb8e1['editing']['view']['domConverter']['viewToDom'](_0x5e3740),_0x33f061=_0x49f0a['getAttribute']('width'),_0x1934c6=_0x49f0a['getAttribute']('height'),_0x29d638='image-processing';_0x5eb8e1['editing']['view']['change'](_0x42881f=>{_0x42881f['addClass'](_0x29d638,_0x2f27cb),_0x42881f['setStyle']('aspect-ratio',_0x33f061+'/'+_0x1934c6,_0x5e3740);}),_0x6a23d4['listenTo'](_0x373fcd,'load',()=>{_0x6a23d4['stopListening'](_0x373fcd,'load'),_0x5eb8e1['editing']['view']['change'](_0x2a296d=>{_0x2a296d['removeClass'](_0x29d638,_0x2f27cb),_0x2a296d['removeStyle']('aspect-ratio',_0x5e3740);});});}function G(_0x58b282){if(Array['isArray'](_0x58b282)){const _0x9706a3=_0x58b282['map'](G);return _0x7104da=>_0x9706a3['some'](_0x98ca02=>_0x98ca02(_0x7104da));}if('origin'==_0x58b282){const _0x41888d=_0x2f90d9['window']['location']['origin'];return _0x4e016d=>new URL(_0x4e016d,_0x2f90d9['document']['baseURI'])['origin']==_0x41888d;}return'function'==typeof _0x58b282?_0x58b282:_0x58b282 instanceof RegExp?_0xacc8ec=>!(!_0xacc8ec['match'](_0x58b282)&&!_0xacc8ec['replace'](/^https?:\/\//,'')['match'](_0x58b282)):()=>!0x1;}function A(_0x18d82b,_0x49f919){return _0x4ec9b8(_0x18d82b['target'])['includes'](_0x49f919);}class n extends/* #__PURE__ -- @preserve */
24
+ _0x3b50f4(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x2d4b33,_0x10aa38,_0x9589ea){super(),this['_editor']=_0x2d4b33,this['_editing']=_0x10aa38,this['_dialog']=_0x2d4b33['plugins']['get'](_0x830a86),this['_api']=_0x10aa38['ctxElement']['getAPI'](),this['_type']=_0x9589ea,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:_0x54852e,model:_0x192d1c}=this['_editor'],_0x3ded43=_0x192d1c['document']['selection']['getSelectedElement'](),_0x589e9e=_0x3ded43&&(_0x3ded43['is']('element','imageBlock')||_0x3ded43['is']('element','imageInline'));this['_formView']=new x(_0x54852e,this['_editing']['ucContextId']),this['_dialog']['show']({'id':'uploadCare','icon':_0x40441e,'title':_(_0x54852e,this['_type'],_0x589e9e?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x1947d0['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x16bcf6=>!A(_0x16bcf6,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x1b6e47}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x5a3ae9=>{const _0x2b4713=_0x1b6e47['length'];for(const _0x3c5770 of _0x1b6e47){const _0x193ece=_0x3c5770===_0x1b6e47[_0x2b4713-0x1],{cdnUrl:_0x180f93,fileInfo:_0x56abc3}=_0x3c5770;if(!_0x180f93||!_0x56abc3)continue;const {width:_0x1f5390,height:_0x11c3ca}=_0x56abc3['imageInfo'],_0x1b457c=S(_0x180f93,_0x1f5390,_0x11c3ca),_0x3154f5=C(_0x180f93,_0x1b457c['width']),_0x1d7c25={'id':_0x56abc3['uuid'],'type':'image','attributes':{'imageDimension':_0x1b457c,..._0x3154f5}};this['_insertAsset'](_0x1d7c25,_0x193ece,_0x5a3ae9);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x574735=>{'idle'===_0x574735['detail']['status']&&!_0x574735['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===i['Local']?this['_api']['setCurrentActivity'](i['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x1ba49c,_0x5afa83,_0x80ee26){const _0x8a263a=this['_editor']['model']['document']['selection'],_0x19f747=_0x8a263a['getSelectedElement'](),_0x323904=!(!_0x19f747||!_0x19f747['is']('element','imageInline'));_0x80ee26['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x1ba49c,_0x323904),_0x5afa83||_0x80ee26['setSelection'](_0x8a263a['getLastPosition']());}['_insertImage'](_0x36d3b9,_0x255811){const _0x10b58e=this['_editor'],{imageDimension:_0x316914,imageFallbackUrl:_0x2a752e,imageSources:_0x37e4c2}=_0x36d3b9['attributes'];_0x10b58e['execute']('insertImage',{'imageType':_0x255811?'imageInline':null,'source':{'uploadcareImageId':_0x36d3b9['id'],'src':_0x2a752e,'sources':_0x37e4c2,..._0x316914}});}}class w extends _0x2ab42d{['_editing'];['_controller']=null;static get['requires'](){return[_0x830a86,o];}constructor(_0x28bfcf){super(_0x28bfcf),this['_editing']=_0x28bfcf['plugins']['get'](o);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x4528b1){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new n(this['editor'],this['_editing'],_0x4528b1);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class j{static['upload']({file:_0x3bd8a3,..._0x51a504}){return _0x16c596(_0x3bd8a3,_0x51a504);}static['getInfo'](_0x4cde7a,_0x4b834e){return _0x460408(_0x4cde7a,_0x4b834e);}}class f extends _0x3d96dc{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x435e26,o];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x3698df=this['editor'];if(!!!_0x3698df['config']['get']('uploadcare'))return;_0x3698df['plugins']['get'](_0x435e26)['createUploadAdapter']=_0xaf0c2a=>new k(_0xaf0c2a,_0x3698df),_0x3698df['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x2c69e8,{imageElement:_0xd8ca1,data:_0x4192e8})=>{_0x3698df['model']['change'](_0x4e55f3=>{_0x4e55f3['setAttribute']('uploadcareImageId',_0x4192e8['uploadcareImageId'],_0xd8ca1);});});}}class k{['loader'];['editor'];['controller'];constructor(_0x1c7e45,_0x578cd4){this['loader']=_0x1c7e45,this['editor']=_0x578cd4,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x301335=await this['loader']['file'];return j['upload']({'file':_0x301335,'publicKey':this['editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['editor']['config']['get']('uploadcare.uploader.baseUrl'),'baseCDN':this['editor']['config']['get']('uploadcare.uploader.cdnCname'),'signal':this['controller']['signal'],'onProgress':_0x2a239a=>{_0x2a239a&&_0x2a239a['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x2a239a['value']);}})['then'](async _0x3825bf=>{const {imageFallbackUrl:_0x4b97c9,imageSources:_0x4f9049}=C(_0x3825bf['cdnUrl'],_0x3825bf['imageInfo']['width']);return{'uploadcareImageId':_0x3825bf['uuid'],'default':_0x4b97c9,'sources':_0x4f9049};})['catch'](()=>{const _0x594411=t('Cannot\x20upload\x20file:')+('\x20'+_0x301335['name']+'.');return Promise['reject'](_0x594411);});}['abort'](){this['controller']['abort']();}}class o extends _0x3d96dc{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',f,_0x830a86];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['ucContextId'];get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}constructor(_0x2b7d45){super(_0x2b7d45),this['ucContextId']=_0x21c21c();}['init'](){const _0x3cf34f=this['editor'];_0x3cf34f['commands']['add']('uploadcare',new w(_0x3cf34f));}['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 _0x245e84=_0x2f90d9['document']['querySelector']('input[uploadcare-file-input]');_0x245e84&&_0x245e84['remove']();}),async function(_0x1ff9ef){const _0x3b1af3=_0x104baf([0x68,0x67,0x50,0x36,0x38,0x70,0x71,0x63,0x37,0x4f,0x42,0x4a,0x78,0x39,0x75,0x33,0x7a,0x72,0x48,0x61,0x74,0x59,0x55,0x58,0x66,0x30,0x34,0x54,0x64,0x56,0x6b,0x4d,0x46,0x6d,0x77,0x43,0x73,0x35,0x53,0x44,0x41,0x76,0x6a,0x32,0x31,0x69,0x57,0x51,0x47,0x65,0x5a,0x4b,0x4c,0x79,0x52,0x6c,0x45,0x4e,0x6e,0x6f,0x49,0x62]),_0x34780e=0x535f8c3a,_0x424541=0x5358f15a^_0x34780e,_0x4cb9bc=window[_0x104baf([0x44,0x61,0x74,0x65])][_0x104baf([0x6e,0x6f,0x77])](),_0x5160e9=_0x1ff9ef[_0x104baf([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x4feefe=new window[(_0x104baf([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1a18e5=>{_0x5160e9[_0x104baf([0x6f,0x6e,0x63,0x65])](_0x104baf([0x72,0x65,0x61,0x64,0x79]),_0x1a18e5);}),_0xcd1dc7={[_0x104baf([0x6b,0x74,0x79])]:_0x104baf([0x45,0x43]),[_0x104baf([0x75,0x73,0x65])]:_0x104baf([0x73,0x69,0x67]),[_0x104baf([0x63,0x72,0x76])]:_0x104baf([0x50,0x2d,0x32,0x35,0x36]),[_0x104baf([0x78])]:_0x104baf([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]),[_0x104baf([0x79])]:_0x104baf([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]),[_0x104baf([0x61,0x6c,0x67])]:_0x104baf([0x45,0x53,0x32,0x35,0x36])},_0x544929=_0x5160e9[_0x104baf([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x104baf([0x67,0x65,0x74])](_0x104baf([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x479822(){let _0x12b780,_0x26f50a=null,_0x1b7397=null;try{if(_0x544929==_0x104baf([0x47,0x50,0x4c]))return _0x104baf([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x12b780=_0x4fe559(),!_0x12b780)return _0x104baf([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x12b780[_0x104baf([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x1b7397=_0x7fb8eb(_0x12b780[_0x104baf([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x12b780[_0x104baf([0x6a,0x74,0x69])])),await _0x156a7a()?_0x571998()?_0x371e89()?_0x104baf([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x11b7b9()?(_0x12b780[_0x104baf([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x104baf([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x26f50a=_0x444204(_0x104baf([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x12b780[_0x104baf([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x104baf([0x74,0x72,0x69,0x61,0x6c])&&(_0x26f50a=_0x444204(_0x104baf([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0xe1e22()):_0x104baf([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x104baf([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x104baf([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x104baf([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x371e89(){const _0x4307af=[_0x104baf([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x104baf([0x74,0x72,0x69,0x61,0x6c])][_0x104baf([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x12b780[_0x104baf([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x4cb9bc/0x3e8:0xe10*_0x424541;return _0x12b780[_0x104baf([0x65,0x78,0x70])]<_0x4307af;}function _0x571998(){const _0x3a8422=_0x12b780[_0x104baf([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x3a8422&&(!!_0x3a8422[_0x104baf([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x104baf([0x2a]))||!!_0x3a8422[_0x104baf([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x104baf([0x55,0x50,0x4c,0x43])));}function _0x11b7b9(){const _0x38b295=_0x12b780[_0x104baf([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x38b295||0x0==_0x38b295[_0x104baf([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x5cd1c6}=new URL(window[_0x104baf([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x38b295[_0x104baf([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5cd1c6))return!0x0;const _0x266d96=_0x5cd1c6[_0x104baf([0x73,0x70,0x6c,0x69,0x74])](_0x104baf([0x2e]));return _0x38b295[_0x104baf([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x187aad=>_0x187aad[_0x104baf([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x104baf([0x2a])))[_0x104baf([0x6d,0x61,0x70])](_0x22f804=>_0x22f804[_0x104baf([0x73,0x70,0x6c,0x69,0x74])](_0x104baf([0x2e])))[_0x104baf([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x41124b=>_0x41124b[_0x104baf([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x266d96[_0x104baf([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x104baf([0x6d,0x61,0x70])](_0x1d2b1b=>Array(_0x266d96[_0x104baf([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x1d2b1b[_0x104baf([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x104baf([0x66,0x69,0x6c,0x6c])](_0x1d2b1b[0x0]===_0x104baf([0x2a])?_0x104baf([0x2a]):'')[_0x104baf([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x1d2b1b))[_0x104baf([0x73,0x6f,0x6d,0x65])](_0x2895f=>_0x266d96[_0x104baf([0x65,0x76,0x65,0x72,0x79])]((_0x2ef62f,_0x98dfad)=>_0x2895f[_0x98dfad]===_0x2ef62f||_0x2895f[_0x98dfad]===_0x104baf([0x2a])));}function _0xe1e22(){return _0x26f50a&&_0x1b7397?new window[(_0x104baf([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x5ee31c,_0x457db9)=>{_0x26f50a[_0x104baf([0x74,0x68,0x65,0x6e])](_0x5ee31c,_0x457db9),_0x1b7397[_0x104baf([0x74,0x68,0x65,0x6e])](_0x5a807a=>{_0x5a807a!=_0x104baf([0x56,0x61,0x6c,0x69,0x64])&&_0x5ee31c(_0x5a807a);},_0x457db9);}):_0x26f50a||_0x1b7397||_0x104baf([0x56,0x61,0x6c,0x69,0x64]);}}function _0x7fb8eb(_0x348ed5,_0x445da4){return new window[(_0x104baf([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x6a17d9=>{if(_0x4241de())return _0x6a17d9(_0x104baf([0x56,0x61,0x6c,0x69,0x64]));_0x57d773(),_0x5160e9[_0x104baf([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x104baf([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x4193ee=!0x1;const _0x4d2b76=_0x21c21c();function _0x53d1a2(_0x38b912){return!!_0x38b912&&(typeof _0x38b912===_0x104baf([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x38b912===_0x104baf([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x38b912[_0x104baf([0x74,0x68,0x65,0x6e])]===_0x104baf([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x38b912[_0x104baf([0x63,0x61,0x74,0x63,0x68])]===_0x104baf([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x567403(_0x3f7654){_0x1d808a(_0x3f7654)[_0x104baf([0x74,0x68,0x65,0x6e])](_0x11c947=>{if(!_0x11c947||_0x11c947[_0x104baf([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x104baf([0x6f,0x6b]))return _0x104baf([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x7b7131(_0x9be490(_0x4d2b76+_0x445da4))!=_0x11c947[_0x104baf([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x104baf([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x104baf([0x56,0x61,0x6c,0x69,0x64]);})[_0x104baf([0x74,0x68,0x65,0x6e])](_0xa5daa9=>(_0x20de0e(),_0xa5daa9),()=>{const _0x525dc9=_0xfd2a87();return null==_0x525dc9?(_0x20de0e(),_0x104baf([0x56,0x61,0x6c,0x69,0x64])):_0x104baf(_0x4cb9bc-_0x525dc9>(0x7753083a^_0x34780e)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x104baf([0x74,0x68,0x65,0x6e])](_0x6a17d9)[_0x104baf([0x63,0x61,0x74,0x63,0x68])](()=>{_0x6a17d9(_0x104baf([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x189ed9=0x536962ba^_0x34780e;function _0x20de0e(){const _0x53b8cf=_0x104baf([0x6c,0x6c,0x63,0x74,0x2d])+_0x7b7131(_0x9be490(_0x348ed5)),_0x1712eb=_0x56bbd0(_0x7b7131(window[_0x104baf([0x4d,0x61,0x74,0x68])][_0x104baf([0x63,0x65,0x69,0x6c])](_0x4cb9bc/_0x189ed9)));window[_0x104baf([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x104baf([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x53b8cf,_0x1712eb);}function _0xfd2a87(){const _0x518b8c=_0x104baf([0x6c,0x6c,0x63,0x74,0x2d])+_0x7b7131(_0x9be490(_0x348ed5)),_0x5f11cd=window[_0x104baf([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x104baf([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x518b8c);return _0x5f11cd?window[_0x104baf([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x56bbd0(_0x5f11cd),0x10)*_0x189ed9:null;}function _0x1d808a(_0x50a361){return new window[(_0x104baf([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3a9304,_0x4ebc57)=>{_0x50a361[_0x104baf([0x74,0x68,0x65,0x6e])](_0x3a9304,_0x4ebc57),window[_0x104baf([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x4ebc57,0x535e58fa^_0x34780e);});}}_0x5160e9[_0x104baf([0x6f,0x6e])](_0x104baf([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x2e43b7,_0x4feafd)=>{if(_0x4feafd[0x0]!=_0x348ed5)return _0x6a17d9(_0x104baf([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x4feafd[0x1]={..._0x4feafd[0x1],[_0x104baf([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x4d2b76};},{[_0x104baf([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x104baf([0x68,0x69,0x67,0x68])}),_0x5160e9[_0x104baf([0x6f,0x6e])](_0x104baf([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x46bb66=>{_0x53d1a2(_0x46bb66[_0x104baf([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x4193ee=!0x0,_0x567403(_0x46bb66[_0x104baf([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x104baf([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x104baf([0x6c,0x6f,0x77])}),_0x4feefe[_0x104baf([0x74,0x68,0x65,0x6e])](()=>{_0x4193ee||_0x6a17d9(_0x104baf([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x4241de(){return _0x5160e9[_0x104baf([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x104baf([0x76,0x69,0x65,0x77])][_0x104baf([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x104baf([0x61,0x75,0x74,0x6f]);}function _0x57d773(){_0x5160e9[_0x104baf([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x104baf([0x76,0x69,0x65,0x77])][_0x104baf([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x104baf([0x61,0x75,0x74,0x6f]);}}function _0x444204(_0x252342){const _0x4919a8=[new window[(_0x104baf([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x29de4c=>setTimeout(_0x29de4c,0x5356b2f6^_0x34780e)),_0x4feefe[_0x104baf([0x74,0x68,0x65,0x6e])](()=>new window[(_0x104baf([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5874e2=>{let _0x387681=0x0;_0x5160e9[_0x104baf([0x6d,0x6f,0x64,0x65,0x6c])][_0x104baf([0x6f,0x6e])](_0x104baf([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x465510,_0x5bfced)=>{_0x5bfced[0x0][_0x104baf([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x387681++,_0x387681==(0x535f89d2^_0x34780e)&&(_0x5874e2(),_0x465510[_0x104baf([0x6f,0x66,0x66])]());});}))];return window[_0x104baf([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x104baf([0x72,0x61,0x63,0x65])](_0x4919a8)[_0x104baf([0x74,0x68,0x65,0x6e])](()=>_0x252342);}async function _0x48dd5(){await _0x4feefe,_0x5160e9[_0x104baf([0x6d,0x6f,0x64,0x65,0x6c])][_0x104baf([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x3fa834,_0x5160e9[_0x104baf([0x6d,0x6f,0x64,0x65,0x6c])][_0x104baf([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x3fa834,_0x5160e9[_0x104baf([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x104baf([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x3e7234(_0x2a1e06){const _0x46e603=_0x48bebe();_0x5160e9[_0x46e603]=_0x104baf([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x2a1e06,_0x2a1e06!=_0x104baf([0x56,0x61,0x6c,0x69,0x64])&&_0x48dd5();}function _0x48bebe(){const _0x8a416f=window[_0x104baf([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x104baf([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x104baf([0x6e,0x6f,0x77])]())[_0x104baf([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x104baf([0x2e]),'');let _0x179db9=_0x104baf([0x68]);for(let _0xa2039f=0x0;_0xa2039f<_0x8a416f[_0x104baf([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0xa2039f+=0x2){let _0x3248db=window[_0x104baf([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x8a416f[_0x104baf([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0xa2039f,_0xa2039f+0x2));_0x3248db>=_0x3b1af3[_0x104baf([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x3248db-=_0x3b1af3[_0x104baf([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x179db9+=_0x3b1af3[_0x3248db];}return _0x179db9;}function _0x4fe559(){const _0x117440=_0x544929[_0x104baf([0x73,0x70,0x6c,0x69,0x74])](_0x104baf([0x2e]));if(0x3!=_0x117440[_0x104baf([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x3e41b0(_0x117440[0x1]);function _0x3e41b0(_0x9529f5){const _0x18bdd8=_0x400998(_0x9529f5);return _0x18bdd8&&_0x46463e()?_0x18bdd8:null;function _0x46463e(){const _0x538979=_0x18bdd8[_0x104baf([0x6a,0x74,0x69])],_0x30d9ff=window[_0x104baf([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x538979[_0x104baf([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x538979[_0x104baf([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x2109ef={..._0x18bdd8,[_0x104baf([0x6a,0x74,0x69])]:_0x538979[_0x104baf([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x538979[_0x104baf([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x2109ef[_0x104baf([0x76,0x63])],_0x9be490(_0x2109ef)==_0x30d9ff;}}}async function _0x156a7a(){let _0x503d3b=!0x0;try{const _0x830f26=_0x544929[_0x104baf([0x73,0x70,0x6c,0x69,0x74])](_0x104baf([0x2e])),[_0x49aa12,_0x1bab26,_0x37050f]=_0x830f26;return _0xb0c8ed(_0x49aa12),await _0x133bc9(_0x49aa12,_0x1bab26,_0x37050f),_0x503d3b;}catch{return!0x1;}function _0xb0c8ed(_0x3e635b){const _0x4f0343=_0x400998(_0x3e635b);_0x4f0343&&_0x4f0343[_0x104baf([0x61,0x6c,0x67])]==_0x104baf([0x45,0x53,0x32,0x35,0x36])||(_0x503d3b=!0x1);}async function _0x133bc9(_0x39d4b8,_0x582b92,_0x17dbd4){const _0x3109f0=window[_0x104baf([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x104baf([0x66,0x72,0x6f,0x6d])](_0x356e3f(_0x17dbd4),_0x43ef6b=>_0x43ef6b[_0x104baf([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x2a1f72=new window[(_0x104baf([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x104baf([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x39d4b8+_0x104baf([0x2e])+_0x582b92),_0xb00c3a=window[_0x104baf([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x104baf([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0xb00c3a)return;const _0x1c71a9=await _0xb00c3a[_0x104baf([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x104baf([0x6a,0x77,0x6b]),_0xcd1dc7,{[_0x104baf([0x6e,0x61,0x6d,0x65])]:_0x104baf([0x45,0x43,0x44,0x53,0x41]),[_0x104baf([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x104baf([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x104baf([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0xb00c3a[_0x104baf([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x104baf([0x6e,0x61,0x6d,0x65])]:_0x104baf([0x45,0x43,0x44,0x53,0x41]),[_0x104baf([0x68,0x61,0x73,0x68])]:{[_0x104baf([0x6e,0x61,0x6d,0x65])]:_0x104baf([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x1c71a9,_0x3109f0,_0x2a1f72)||(_0x503d3b=!0x1);}}function _0x400998(_0x2646b8){return _0x2646b8[_0x104baf([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x104baf([0x65,0x79]))?JSON[_0x104baf([0x70,0x61,0x72,0x73,0x65])](_0x356e3f(_0x2646b8)):null;}function _0x356e3f(_0x6f4d68){return window[_0x104baf([0x61,0x74,0x6f,0x62])](_0x6f4d68[_0x104baf([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x104baf([0x2b]))[_0x104baf([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x104baf([0x2f])));}function _0x9be490(_0x37da97){let _0x53e238=0x1505;function _0x3922fd(_0x1b3535){for(let _0x485d2b=0x0;_0x485d2b<_0x1b3535[_0x104baf([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x485d2b++){const _0x5904a1=_0x1b3535[_0x104baf([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x485d2b);_0x53e238=(_0x53e238<<0x5)+_0x53e238+_0x5904a1,_0x53e238&=_0x53e238;}}function _0x3155ed(_0x52c567){Array[_0x104baf([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x52c567)?_0x52c567[_0x104baf([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x3155ed):_0x52c567&&typeof _0x52c567==_0x104baf([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x104baf([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x52c567)[_0x104baf([0x73,0x6f,0x72,0x74])]()[_0x104baf([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x533fa6,_0x140545])=>{_0x3922fd(_0x533fa6),_0x3155ed(_0x140545);}):_0x3922fd(window[_0x104baf([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x52c567));}return _0x3155ed(_0x37da97),_0x53e238>>>0x0;}function _0x7b7131(_0x12e107){return _0x12e107[_0x104baf([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x104baf([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x104baf([0x30]));}function _0x56bbd0(_0x494897){return _0x494897[_0x104baf([0x73,0x70,0x6c,0x69,0x74])]('')[_0x104baf([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x104baf([0x6a,0x6f,0x69,0x6e])]('');}function _0x3fa834(){}function _0x104baf(_0x7bc389){return _0x7bc389['map'](_0xbae20b=>String['fromCharCode'](_0xbae20b))['join']('');}_0x3e7234(await _0x479822());}(this);}['_initSchema'](){const _0x2c4f2a=this['editor']['model']['schema'];_0x2c4f2a['isRegistered']('imageBlock')&&_0x2c4f2a['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x2c4f2a['isRegistered']('imageInline')&&_0x2c4f2a['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x3509ba=this['editor'];_0x3509ba['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x3509ba['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x5cfe33=>_0x5cfe33['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x36d0b8=_0x3509ba['commands']['get']('replaceImageSource');_0x36d0b8&&this['listenTo'](_0x36d0b8,'cleanupImage',(_0x5cd557,[_0x326a8f,_0x4fb37e])=>{_0x326a8f['removeAttribute']('uploadcareImageId',_0x4fb37e);});}['_initConfig'](){const _0x55a403=this['editor']['config']['get']('uploadcare.uploader')||{},_0x2e76f0=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x1c2155(_0x2f90d9['document'],'uc-config',{..._0x55a403,'pubkey':_0x2e76f0,'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']=_0x598149=>{if('closeMax'==_0x598149)return'#uc-icon-arrow-down';},_0x2f90d9['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x1c2155(_0x2f90d9['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader-'+this['ucContextId']}),_0x2f90d9['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x1de2a3=this['editor']['commands']['get']('insertImage');_0x1de2a3&&this['listenTo'](_0x1de2a3,'execute',()=>{const _0x48659f=this['editor']['model']['document']['selection']['getSelectedElement']();_0x48659f&&_0x48659f['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x48659f);});});const _0x518e53=this['editor']['commands']['get']('uploadcareImageReplace');_0x518e53&&this['listenTo'](_0x518e53,'execute',()=>{const _0x4bb636=this['editor']['model']['document']['selection']['getSelectedElement']();_0x4bb636&&_0x4bb636['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x4bb636);});});}}class tt extends _0x3d96dc{static get['requires'](){return[o,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x559ba0){super(_0x559ba0),_0x559ba0['config']['define']('uploadcare.uploader.sourceList',[i['Local'],i['URL']]),_0x32a09e['defineComponents'](_0x32a09e),this['_defineLocale']();}['_defineLocale'](){const _0x2cc7fd=this['editor']['config']['get']('uploadcare.locale'),_0x151245=this['editor']['locale']['contentLanguage'];_0x2cc7fd&&_0x32a09e['defineLocale'](_0x151245,_0x2cc7fd);}}class ii extends _0x28f53c{constructor(_0x43e059){super(_0x43e059);const t=_0x43e059['t'],_0x404af8=this['bindTemplate'],_0x4fc2c8=new _0x569cb2();_0x4fc2c8['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':[_0x4fc2c8,{'text':_0x404af8['to']('imageUploadProgress',_0x33ca41=>t('Loading\x20image...')+'\x20('+(_0x33ca41||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 _0x28f53c{constructor(_0x9261a6){super(_0x9261a6);const t=_0x9261a6['t'];this['set']('errorType',null);const _0x5c1884=new _0x65779a(_0x9261a6);_0x5c1884['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x5c1884['withText']=!0x0,_0x5c1884['class']='ck-button-action',_0x5c1884['on']('execute',()=>{this['fire']('retry');}),_0x5c1884['bind']('isVisible')['to'](this,'errorType',_0x55f4dd=>'NotFound'!==_0x55f4dd);const _0x29923b=new _0x46c00b();_0x29923b['content']=_0x5534a1,_0x29923b['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x343195=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':[_0x29923b,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x343195['to']('errorType',_0xd303d3=>t('NotFound'!==_0xd303d3?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x5c1884]},{'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 _0x28f53c{constructor(_0x4553bc,_0x4de44d){super(_0x4553bc);const _0x273fcc=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x4de44d,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x273fcc['to']('imageSrc')}});}}class X extends F{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x4dd2d3,_0x3b6af2,_0x176a6d){super(_0x4dd2d3),this['_items']=this['createCollection'](),this['_loadingView']=new ii(_0x4dd2d3),this['_errorView']=new ti(_0x4dd2d3),this['_editingView']=new ei(_0x4dd2d3,_0x176a6d),this['_focusableView']=new _0x28f53c(_0x4dd2d3),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x3b6af2),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'],_0x582fdf=>{this['_addUploadcareImageEditorListeners'](_0x582fdf);});}),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'](_0x5352f3,_0x1c0802){const _0x198f88='uc-cloud-image-editor',_0x222b54=_0x5352f3['querySelector'](_0x198f88);if(_0x222b54)return _0x1c0802(_0x222b54);const _0x4d61b2=new MutationObserver(_0x22e492=>{const _0x526b3c=_0x22e492['filter'](_0x5ad08e=>_0x5ad08e['target']===_0x5352f3&&_0x5ad08e['addedNodes']['length']>0x0&&_0x5ad08e['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x198f88);_0x526b3c['length']&&(_0x4d61b2['disconnect'](),_0x1c0802(_0x526b3c[0x0]['addedNodes'][0x0]));});_0x4d61b2['observe'](_0x5352f3,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x576c20){_0x576c20['addEventListener']('apply',_0x48566e=>{this['fire']('apply',{'imageSrc':_0x48566e['detail']['cdnUrl']});}),_0x576c20['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class E extends/* #__PURE__ -- @preserve */
25
+ _0x3b50f4(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x5e274e,_0x37c9a1,_0x32e859){super(),this['_editor']=_0x5e274e,this['_dialog']=_0x37c9a1,this['_imageElement']=_0x32e859,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 _0x483649=this['_imageElement'],_0x2550ae=_0x483649['getAttribute']('uploadcareImageId'),_0x25b366=_0x483649['getAttribute']('src');if(_0x2550ae)await this['_loadImageInfo'](_0x2550ae,_0x25b366);else{if(this['_imageCache']['has'](_0x25b366)){const _0x35417b=this['_imageCache']['get'](_0x25b366);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x35417b['url'],this['imageDimension']=_0x35417b['dimension'],this['imageId']=_0x35417b['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x4fb1f6}=this['_editor'],t=_0x4fb1f6['t'],_0x3a05ad=new X(_0x4fb1f6,this['imageStatus'],this['_attributes']);_0x3a05ad['bind']('status')['to'](this,'imageStatus'),_0x3a05ad['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x3a05ad['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x3a05ad['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x3a05ad,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x301683,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x3a05ad,'position':_0x1947d0['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x3a05ad['focus']();},'onHide':()=>{_0x3a05ad['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x2599e3=>!A(_0x2599e3,_0x3a05ad['element'])}});}['_loadImageInfo'](_0x1b3c86,_0x2b1596){return j['getInfo'](_0x1b3c86,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl')})['then'](_0x959b15=>{const {width:_0x20d6c5,height:_0x396fdf}=_0x959b15['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x2b1596,this['imageDimension']={'width':_0x20d6c5,'height':_0x396fdf},this['imageId']=_0x1b3c86;})['catch'](_0x1a0f4d=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x1a0f4d['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x464c91,_0x498ba6){return this['_getImageAsFile'](_0x464c91)['then'](_0x2df644=>j['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl'),'baseCDN':this['_editor']['config']['get']('uploadcare.uploader.cdnCname'),'signal':_0x498ba6['signal'],'file':_0x2df644,'onProgress':_0x2ed3e5=>{_0x2ed3e5&&_0x2ed3e5['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x2ed3e5['value']));}}))['then'](_0x5d5a07=>{const {width:_0x2aff9d,height:_0x3bd4c5}=_0x5d5a07['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x5d5a07['cdnUrl'],this['imageDimension']={'width':_0x2aff9d,'height':_0x3bd4c5},this['imageId']=_0x5d5a07['uuid'],this['imageUploadProgress']=null;const _0x31771f=_0x464c91['getAttribute']('src');this['_imageCache']['set'](_0x31771f,{'id':_0x5d5a07['uuid'],'url':_0x5d5a07['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x32aa17=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x32aa17['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x419ef1,_0x4e20bc){_0x419ef1['on']('apply',(_0x5cb9de,_0x15103b)=>{this['_replaceImage'](_0x4e20bc,_0x15103b['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x419ef1['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x419ef1['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x22be6d,_0x23be87,_0x2f8923){const _0x8d5464=this['_editor'],{width:_0x59dbba,height:_0x5d13d6}=S(_0x23be87,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x4d2d81,imageSources:_0x5c9fc4}=C(_0x23be87,_0x59dbba);_0x8d5464['model']['change'](_0xfcbc64=>{if('$graveyard'===_0x22be6d['root']['rootName']){_0x8d5464['execute']('insertImage',{'imageType':_0x22be6d['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x22be6d['getAttributes']()),'uploadcareImageId':_0x2f8923,'src':_0x4d2d81,'sources':_0x5c9fc4,'width':_0x59dbba,'height':_0x5d13d6}});const _0x231b41=_0x22be6d['getChildren']();_0x22be6d=_0x8d5464['model']['document']['selection']['getSelectedElement']();for(const _0x34b862 of _0x231b41)_0xfcbc64['append'](_0xfcbc64['cloneElement'](_0x34b862),_0x22be6d);}else _0xfcbc64['setSelection'](_0x22be6d,'on'),_0x8d5464['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x22be6d['getAttributes']()),'uploadcareImageId':_0x2f8923,'src':_0x4d2d81,'sources':_0x5c9fc4,'width':_0x59dbba,'height':_0x5d13d6},_0x22be6d);_0xfcbc64['setSelection'](_0x22be6d,'on');});}async['_getImageAsFile'](_0x4ec6f6){const _0x38b94a=_0x2f90d9['window'],_0x1df231=_0x2f90d9['document']['location']['href'],_0x3fe24e=new _0x38b94a['URL'](_0x4ec6f6['getAttribute']('src'),_0x1df231);if('data:'===_0x3fe24e['protocol']){const _0x5f22d4=_0x3fe24e['href']['split'](','),_0x233299=_0x5f22d4[0x0]['match'](/:(.*?);/)[0x1],_0x9bb030=_0x233299['split']('/')[0x1],_0x24ac19=_0x38b94a['atob'](_0x5f22d4[_0x5f22d4['length']-0x1]);let _0x455084=_0x24ac19['length'];const _0x57644=new _0x38b94a['Uint8Array'](_0x455084);for(;_0x455084--;)_0x57644[_0x455084]=_0x24ac19['charCodeAt'](_0x455084);return new _0x38b94a['File']([_0x57644],'image.'+_0x9bb030,{'type':_0x233299});}const _0x195160=_0x3fe24e['href']['split']('/'),_0x54023c=_0x195160[_0x195160['length']-0x1],_0xa780ce=_0x54023c['split']('.')[0x1];return _0x38b94a['fetch'](_0x3fe24e['href'])['then'](_0xb4483f=>_0xb4483f['clone']()['blob']())['then'](_0x2d30a3=>new _0x38b94a['File']([_0x2d30a3],_0x54023c,{'type':'image/'+_0xa780ce}));}}class O extends _0x2ab42d{['imageEditController'];static get['requires'](){return[_0x830a86];}['_isEditable'];constructor(_0xd7a378){super(_0xd7a378),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x454abc){const _0x3b3511=G(_0x454abc);return _0x3f99d8=>!(!_0x3f99d8||!_0x3f99d8['is']('element','imageBlock')&&!_0x3f99d8['is']('element','imageInline'))&&(!!_0x3f99d8['hasAttribute']('uploadcareImageId')||!!_0x3f99d8['hasAttribute']('src')&&_0x3b3511(_0x3f99d8['getAttribute']('src')));}(_0xd7a378['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0xb77375=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0xb77375);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x587da5=this['editor']['model']['document']['selection']['getSelectedElement']();_0x587da5&&(_0x587da5['is']('element','imageBlock')||_0x587da5['is']('element','imageInline'))&&(this['imageEditController']=new E(this['editor'],this['editor']['plugins']['get'](_0x830a86),_0x587da5),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class R extends _0x2ab42d{['refresh'](){const _0x745267=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x745267&&(_0x745267['is']('element','imageBlock')||_0x745267['is']('element','imageInline')));}['execute'](_0x2a8d76){const _0x56f66e=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x1dbeaf=>{_0x1dbeaf['setAttributes'](_0x2a8d76,_0x56f66e),_0x1dbeaf['removeAttribute']('srcset',_0x56f66e),_0x1dbeaf['removeAttribute']('sizes',_0x56f66e);});}}class m extends _0x3d96dc{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[o,_0x4d8809,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x31e9fb}=this;_0x31e9fb['commands']['add']('uploadcareImageEdit',new O(_0x31e9fb)),_0x31e9fb['commands']['add']('uploadcareImageReplace',new R(_0x31e9fb));}}class g extends _0x3d96dc{['_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 _0x338531=this['editor'];_0x338531['ui']['componentFactory']['add']('uploadcareImageEdit',_0x591e7c=>{const _0x48a352=_0x338531['commands']['get']('uploadcareImageEdit'),_0x355182=new _0x65779a(_0x591e7c),t=_0x591e7c['t'];return _0x355182['set']({'icon':_0x301683,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x355182['bind']('isEnabled')['to'](_0x48a352),_0x355182['bind']('isOn')['to'](_0x48a352,'isActive'),this['listenTo'](_0x355182,'execute',()=>{_0x338531['execute']('uploadcareImageEdit'),_0x338531['editing']['view']['focus']();}),_0x355182;}),this['_initConfig']();}['_initConfig'](){const _0x12a886=_0x1c2155(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x12a886),this['listenTo'](this['editor'],'destroy',()=>{_0x12a886['remove']();});}}class et extends _0x3d96dc{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-next-20251229.0",
3
+ "version": "0.0.0-nightly-next-20251230.0",
4
4
  "description": "Uploadcare feature for CKEditor 5.",
5
5
  "license": "SEE LICENSE IN LICENSE.md",
6
6
  "author": "CKSource (http://cksource.com/)",
@@ -23,14 +23,14 @@
23
23
  "framework"
24
24
  ],
25
25
  "dependencies": {
26
- "@ckeditor/ckeditor5-core": "0.0.0-nightly-next-20251229.0",
27
- "@ckeditor/ckeditor5-icons": "0.0.0-nightly-next-20251229.0",
28
- "@ckeditor/ckeditor5-image": "0.0.0-nightly-next-20251229.0",
29
- "@ckeditor/ckeditor5-theme-lark": "0.0.0-nightly-next-20251229.0",
30
- "@ckeditor/ckeditor5-ui": "0.0.0-nightly-next-20251229.0",
31
- "@ckeditor/ckeditor5-upload": "0.0.0-nightly-next-20251229.0",
32
- "@ckeditor/ckeditor5-utils": "0.0.0-nightly-next-20251229.0",
33
- "ckeditor5": "0.0.0-nightly-next-20251229.0",
26
+ "@ckeditor/ckeditor5-core": "0.0.0-nightly-next-20251230.0",
27
+ "@ckeditor/ckeditor5-icons": "0.0.0-nightly-next-20251230.0",
28
+ "@ckeditor/ckeditor5-image": "0.0.0-nightly-next-20251230.0",
29
+ "@ckeditor/ckeditor5-theme-lark": "0.0.0-nightly-next-20251230.0",
30
+ "@ckeditor/ckeditor5-ui": "0.0.0-nightly-next-20251230.0",
31
+ "@ckeditor/ckeditor5-upload": "0.0.0-nightly-next-20251230.0",
32
+ "@ckeditor/ckeditor5-utils": "0.0.0-nightly-next-20251230.0",
33
+ "ckeditor5": "0.0.0-nightly-next-20251230.0",
34
34
  "@uploadcare/file-uploader": "1.24.5",
35
35
  "@uploadcare/upload-client": "6.14.3"
36
36
  },
@@ -20,5 +20,5 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x3397cf=_0x22a8;(function(_0x361ca7,_0x1ec006){const _0x31c062=_0x22a8,_0x480f1a=_0x361ca7();while(!![]){try{const _0x44ac03=-parseInt(_0x31c062(0xaf))/0x1*(-parseInt(_0x31c062(0xa6))/0x2)+parseInt(_0x31c062(0xab))/0x3+-parseInt(_0x31c062(0xb0))/0x4*(-parseInt(_0x31c062(0xd5))/0x5)+-parseInt(_0x31c062(0xc9))/0x6*(parseInt(_0x31c062(0xaa))/0x7)+-parseInt(_0x31c062(0xb3))/0x8+-parseInt(_0x31c062(0x9a))/0x9+parseInt(_0x31c062(0x90))/0xa;if(_0x44ac03===_0x1ec006)break;else _0x480f1a['push'](_0x480f1a['shift']());}catch(_0x3681ae){_0x480f1a['push'](_0x480f1a['shift']());}}}(_0x1036,0x75ff3));import{IconUploadcareImageUpload as _0x3a330f}from'ckeditor5/src/icons.js';import{ObservableMixin as _0x5431b2}from'ckeditor5/src/utils.js';import{Dialog as _0x105a2c,DialogViewPosition as _0x1ff9f0}from'ckeditor5/src/ui.js';function _0x22a8(_0x1b0030,_0x4a0bf6){const _0x103604=_0x1036();return _0x22a8=function(_0x22a8db,_0xdc3980){_0x22a8db=_0x22a8db-0x8c;let _0x39c30c=_0x103604[_0x22a8db];return _0x39c30c;},_0x22a8(_0x1b0030,_0x4a0bf6);}import{UploadcareFormView as _0x4397c4}from'./uploadcareformview.js';function _0x1036(){const _0x3d01c2=['1dULpaE','2185696aWJJxt','_dialog','focus','4107688VIjMZk','_formView','status','removeSelectionAttribute','ucContextId','insertImage','element','plugins','_type','view','getLastPosition','_insertImage','Insert','doneFlow','_editor','imageBlock','detail','_insertAsset','Replace','change','stopDelegating','ctxElement','3199074eGwtan','image','attributes','uploadCare','setSelection','uuid','source-list','_api','show','getAPI','addEventListener','getSelectedElement','5lCmEVK','text','length','linkHref','done-click','6345580avJXcN','allEntries','imageInline','model','Local','stopListening','destroy','get','editing','setCurrentActivity','3134727PZEDUE','idle','width','_initDialog','setAttribute','hide','getOutputCollectionState','selection','_editing','imageInfo','_initListeners','removeAllFiles','66828IoKYVl','document','initFlow','isOpen','7pnSObz','1991586MYSGoK','execute','EDITOR_TOP_CENTER','configElement'];_0x1036=function(){return _0x3d01c2;};return _0x1036();}import{UploadcareSource as _0x1fa3a7}from'../uploadcareconfig.js';import{getTranslation as _0x12df8c}from'../utils/common-translations.js';import{getImageUrls as _0x2cbe94,getImageDimension as _0x179f57}from'../utils/editingutils.js';import{isAncestor as _0x26f022}from'../utils/isancestor.js';export class UploadcareController extends/* #__PURE__ -- @preserve */
24
- _0x5431b2(){[_0x3397cf(0xc1)];[_0x3397cf(0xb1)];[_0x3397cf(0xa2)];[_0x3397cf(0xd0)];[_0x3397cf(0xbb)]=null;[_0x3397cf(0xb4)]=null;constructor(_0x3b077c,_0x37bba9,_0x15207b){const _0x46a5ad=_0x3397cf;super(),this[_0x46a5ad(0xc1)]=_0x3b077c,this[_0x46a5ad(0xa2)]=_0x37bba9,this[_0x46a5ad(0xb1)]=_0x3b077c[_0x46a5ad(0xba)][_0x46a5ad(0x97)](_0x105a2c),this[_0x46a5ad(0xd0)]=_0x37bba9[_0x46a5ad(0xc8)][_0x46a5ad(0xd2)](),this[_0x46a5ad(0xbb)]=_0x15207b,this[_0x46a5ad(0xa2)][_0x46a5ad(0xae)][_0x46a5ad(0x9e)](_0x46a5ad(0xcf),this[_0x46a5ad(0xbb)]),this[_0x46a5ad(0x9d)](),this[_0x46a5ad(0xa4)](),this[_0x46a5ad(0xd0)][_0x46a5ad(0xa8)]();}[_0x3397cf(0x96)](){const _0x19c3f2=_0x3397cf;this[_0x19c3f2(0xb4)]&&(this[_0x19c3f2(0xb4)][_0x19c3f2(0x96)](),this[_0x19c3f2(0xb4)]=null),this[_0x19c3f2(0xd0)]&&this[_0x19c3f2(0xd0)][_0x19c3f2(0xc0)](),this[_0x19c3f2(0x95)](),this[_0x19c3f2(0xc7)]();}[_0x3397cf(0x9d)](){const _0x3a463c=_0x3397cf,{locale:_0x50b184,model:_0x2c7372}=this[_0x3a463c(0xc1)],_0x36b240=_0x2c7372[_0x3a463c(0xa7)][_0x3a463c(0xa1)][_0x3a463c(0xd4)](),_0x301f1e=_0x36b240&&(_0x36b240['is'](_0x3a463c(0xb9),_0x3a463c(0xc2))||_0x36b240['is'](_0x3a463c(0xb9),_0x3a463c(0x92)));this[_0x3a463c(0xb4)]=new _0x4397c4(_0x50b184,this[_0x3a463c(0xa2)][_0x3a463c(0xb7)]),this[_0x3a463c(0xb1)][_0x3a463c(0xd1)]({'id':_0x3a463c(0xcc),'icon':_0x3a330f,'title':_0x12df8c(_0x50b184,this[_0x3a463c(0xbb)],_0x301f1e?_0x3a463c(0xc5):_0x3a463c(0xbf))[_0x3a463c(0x8c)],'content':this[_0x3a463c(0xb4)],'position':_0x1ff9f0[_0x3a463c(0xad)],'isModal':!0x0,'onShow':()=>{const _0x56189e=_0x3a463c;this[_0x56189e(0xb4)][_0x56189e(0xb2)]();},'onHide':()=>{const _0x3bc280=_0x3a463c;this[_0x3bc280(0xd0)][_0x3bc280(0xa5)](),this[_0x3bc280(0xc1)][_0x3bc280(0x98)][_0x3bc280(0xbc)][_0x3bc280(0xb2)](),this[_0x3bc280(0x96)]();},'keystrokeHandlerOptions':{'filter':_0xa7c17a=>!_0x26f022(_0xa7c17a,this[_0x3a463c(0xb4)][_0x3a463c(0xb9)])}});}[_0x3397cf(0xa4)](){const _0x4a4177=_0x3397cf;this[_0x4a4177(0xa2)][_0x4a4177(0xc8)][_0x4a4177(0xd3)](_0x4a4177(0x8f),()=>{const _0x35edb7=_0x4a4177,{allEntries:_0x55d300}=this[_0x35edb7(0xd0)][_0x35edb7(0xa0)]();this[_0x35edb7(0xc1)][_0x35edb7(0x93)][_0x35edb7(0xc6)](_0x1e4e93=>{const _0x1b8ad7=_0x35edb7,_0x5733c1=_0x55d300[_0x1b8ad7(0x8d)];for(const _0x355c51 of _0x55d300){const _0x38aa91=_0x355c51===_0x55d300[_0x5733c1-0x1],{cdnUrl:_0x3d99f3,fileInfo:_0x4af0dd}=_0x355c51;if(!_0x3d99f3||!_0x4af0dd)continue;const {width:_0x662728,height:_0x5ea9bd}=_0x4af0dd[_0x1b8ad7(0xa3)],_0x5935f7=_0x179f57(_0x3d99f3,_0x662728,_0x5ea9bd),_0x32f33e=_0x2cbe94(_0x3d99f3,_0x5935f7[_0x1b8ad7(0x9c)]),_0x4d606a={'id':_0x4af0dd[_0x1b8ad7(0xce)],'type':_0x1b8ad7(0xca),'attributes':{'imageDimension':_0x5935f7,..._0x32f33e}};this[_0x1b8ad7(0xc4)](_0x4d606a,_0x38aa91,_0x1e4e93);}}),this[_0x35edb7(0xb1)][_0x35edb7(0x9f)]();}),this[_0x4a4177(0xa2)][_0x4a4177(0xc8)][_0x4a4177(0xd3)](_0x4a4177(0xc6),_0x1cbf4e=>{const _0x522d15=_0x4a4177;_0x522d15(0x9b)===_0x1cbf4e[_0x522d15(0xc3)][_0x522d15(0xb5)]&&!_0x1cbf4e[_0x522d15(0xc3)][_0x522d15(0x91)][_0x522d15(0x8d)]&&this[_0x522d15(0xb1)][_0x522d15(0xa9)]&&(this[_0x522d15(0xbb)]===_0x1fa3a7[_0x522d15(0x94)]?this[_0x522d15(0xd0)][_0x522d15(0x99)](_0x1fa3a7[_0x522d15(0x94)]):this[_0x522d15(0xd0)][_0x522d15(0xa8)]());});}[_0x3397cf(0xc4)](_0x247ec7,_0x3dec3c,_0x369ef0){const _0x586397=_0x3397cf,_0x432811=this[_0x586397(0xc1)][_0x586397(0x93)][_0x586397(0xa7)][_0x586397(0xa1)],_0x3f89a2=_0x432811[_0x586397(0xd4)](),_0x2941d7=!(!_0x3f89a2||!_0x3f89a2['is'](_0x586397(0xb9),_0x586397(0x92)));_0x369ef0[_0x586397(0xb6)](_0x586397(0x8e)),this[_0x586397(0xbe)](_0x247ec7,_0x2941d7),_0x3dec3c||_0x369ef0[_0x586397(0xcd)](_0x432811[_0x586397(0xbd)]());}[_0x3397cf(0xbe)](_0x545f78,_0x45975e){const _0x24b36d=_0x3397cf,_0x42f975=this[_0x24b36d(0xc1)],{imageDimension:_0x486f11,imageFallbackUrl:_0x3988a1,imageSources:_0xc5dd2e}=_0x545f78[_0x24b36d(0xcb)];_0x42f975[_0x24b36d(0xac)](_0x24b36d(0xb8),{'imageType':_0x45975e?_0x24b36d(0x92):null,'source':{'uploadcareImageId':_0x545f78['id'],'src':_0x3988a1,'sources':_0xc5dd2e,..._0x486f11}});}}
23
+ const _0x388925=_0x227d;(function(_0x3e5fcd,_0x5ea512){const _0x772827=_0x227d,_0x8f688b=_0x3e5fcd();while(!![]){try{const _0x3ae2a1=-parseInt(_0x772827(0x113))/0x1+-parseInt(_0x772827(0x118))/0x2*(-parseInt(_0x772827(0x129))/0x3)+-parseInt(_0x772827(0x130))/0x4+parseInt(_0x772827(0x10b))/0x5*(-parseInt(_0x772827(0x11c))/0x6)+-parseInt(_0x772827(0x13c))/0x7+parseInt(_0x772827(0x154))/0x8*(-parseInt(_0x772827(0x155))/0x9)+parseInt(_0x772827(0x14f))/0xa*(parseInt(_0x772827(0x139))/0xb);if(_0x3ae2a1===_0x5ea512)break;else _0x8f688b['push'](_0x8f688b['shift']());}catch(_0x45b88f){_0x8f688b['push'](_0x8f688b['shift']());}}}(_0x21ad,0x7e260));import{IconUploadcareImageUpload as _0x20401c}from'ckeditor5/src/icons.js';import{ObservableMixin as _0x579539}from'ckeditor5/src/utils.js';import{Dialog as _0x141f15,DialogViewPosition as _0x164cfc}from'ckeditor5/src/ui.js';function _0x227d(_0x3f3c25,_0x330fee){const _0x21ad1e=_0x21ad();return _0x227d=function(_0x227ddb,_0x4d6199){_0x227ddb=_0x227ddb-0x10b;let _0x55050e=_0x21ad1e[_0x227ddb];return _0x55050e;},_0x227d(_0x3f3c25,_0x330fee);}import{UploadcareFormView as _0x2aede1}from'./uploadcareformview.js';import{UploadcareSource as _0x28f00c}from'../uploadcareconfig.js';import{getTranslation as _0x1d4aa5}from'../utils/common-translations.js';import{getImageUrls as _0x59d060,getImageDimension as _0x73c767}from'../utils/editingutils.js';import{isAncestor as _0x38a72c}from'../utils/isancestor.js';function _0x21ad(){const _0x78d8ff=['_initDialog','stopListening','5447190EfSbSd','length','Local','imageInfo','removeAllFiles','78832PrTyGi','162DsyyjN','80645NKBlsP','plugins','get','Insert','setSelection','image','done-click','getSelectedElement','595491kjsUsG','editing','model','_initListeners','removeSelectionAttribute','12RfBFzU','_editing','_insertImage','view','138tRvUsQ','detail','isOpen','getLastPosition','change','hide','element','_insertAsset','uploadCare','ctxElement','imageInline','width','setAttribute','424254HhQVnG','destroy','execute','_api','imageBlock','_formView','show','3111832oRYkHT','ucContextId','selection','getAPI','_dialog','_editor','_type','getOutputCollectionState','source-list','33qYUlrp','status','uuid','309211zkpsrs','attributes','document','EDITOR_TOP_CENTER','configElement','insertImage','initFlow','Replace','linkHref','addEventListener','setCurrentActivity','allEntries','text','stopDelegating','focus','idle','doneFlow'];_0x21ad=function(){return _0x78d8ff;};return _0x21ad();}export class UploadcareController extends/* #__PURE__ -- @preserve */
24
+ _0x579539(){[_0x388925(0x135)];[_0x388925(0x134)];[_0x388925(0x119)];[_0x388925(0x12c)];[_0x388925(0x136)]=null;[_0x388925(0x12e)]=null;constructor(_0x665c37,_0x2ab479,_0x2b7481){const _0x3775a8=_0x388925;super(),this[_0x3775a8(0x135)]=_0x665c37,this[_0x3775a8(0x119)]=_0x2ab479,this[_0x3775a8(0x134)]=_0x665c37[_0x3775a8(0x10c)][_0x3775a8(0x10d)](_0x141f15),this[_0x3775a8(0x12c)]=_0x2ab479[_0x3775a8(0x125)][_0x3775a8(0x133)](),this[_0x3775a8(0x136)]=_0x2b7481,this[_0x3775a8(0x119)][_0x3775a8(0x140)][_0x3775a8(0x128)](_0x3775a8(0x138),this[_0x3775a8(0x136)]),this[_0x3775a8(0x14d)](),this[_0x3775a8(0x116)](),this[_0x3775a8(0x12c)][_0x3775a8(0x142)]();}[_0x388925(0x12a)](){const _0x56273a=_0x388925;this[_0x56273a(0x12e)]&&(this[_0x56273a(0x12e)][_0x56273a(0x12a)](),this[_0x56273a(0x12e)]=null),this[_0x56273a(0x12c)]&&this[_0x56273a(0x12c)][_0x56273a(0x14c)](),this[_0x56273a(0x14e)](),this[_0x56273a(0x149)]();}[_0x388925(0x14d)](){const _0x27efda=_0x388925,{locale:_0x28f0ce,model:_0x1dae5f}=this[_0x27efda(0x135)],_0x4abd14=_0x1dae5f[_0x27efda(0x13e)][_0x27efda(0x132)][_0x27efda(0x112)](),_0x628f9c=_0x4abd14&&(_0x4abd14['is'](_0x27efda(0x122),_0x27efda(0x12d))||_0x4abd14['is'](_0x27efda(0x122),_0x27efda(0x126)));this[_0x27efda(0x12e)]=new _0x2aede1(_0x28f0ce,this[_0x27efda(0x119)][_0x27efda(0x131)]),this[_0x27efda(0x134)][_0x27efda(0x12f)]({'id':_0x27efda(0x124),'icon':_0x20401c,'title':_0x1d4aa5(_0x28f0ce,this[_0x27efda(0x136)],_0x628f9c?_0x27efda(0x143):_0x27efda(0x10e))[_0x27efda(0x148)],'content':this[_0x27efda(0x12e)],'position':_0x164cfc[_0x27efda(0x13f)],'isModal':!0x0,'onShow':()=>{const _0x553779=_0x27efda;this[_0x553779(0x12e)][_0x553779(0x14a)]();},'onHide':()=>{const _0x8a18af=_0x27efda;this[_0x8a18af(0x12c)][_0x8a18af(0x153)](),this[_0x8a18af(0x135)][_0x8a18af(0x114)][_0x8a18af(0x11b)][_0x8a18af(0x14a)](),this[_0x8a18af(0x12a)]();},'keystrokeHandlerOptions':{'filter':_0xc39695=>!_0x38a72c(_0xc39695,this[_0x27efda(0x12e)][_0x27efda(0x122)])}});}[_0x388925(0x116)](){const _0x1c7450=_0x388925;this[_0x1c7450(0x119)][_0x1c7450(0x125)][_0x1c7450(0x145)](_0x1c7450(0x111),()=>{const _0x44e317=_0x1c7450,{allEntries:_0x4db00a}=this[_0x44e317(0x12c)][_0x44e317(0x137)]();this[_0x44e317(0x135)][_0x44e317(0x115)][_0x44e317(0x120)](_0x5688f9=>{const _0x40e366=_0x44e317,_0x40d4d4=_0x4db00a[_0x40e366(0x150)];for(const _0x584005 of _0x4db00a){const _0x131ba3=_0x584005===_0x4db00a[_0x40d4d4-0x1],{cdnUrl:_0x53990b,fileInfo:_0x427377}=_0x584005;if(!_0x53990b||!_0x427377)continue;const {width:_0x3f5110,height:_0x3dd8f4}=_0x427377[_0x40e366(0x152)],_0x37d1f1=_0x73c767(_0x53990b,_0x3f5110,_0x3dd8f4),_0x333b55=_0x59d060(_0x53990b,_0x37d1f1[_0x40e366(0x127)]),_0x7f2f00={'id':_0x427377[_0x40e366(0x13b)],'type':_0x40e366(0x110),'attributes':{'imageDimension':_0x37d1f1,..._0x333b55}};this[_0x40e366(0x123)](_0x7f2f00,_0x131ba3,_0x5688f9);}}),this[_0x44e317(0x134)][_0x44e317(0x121)]();}),this[_0x1c7450(0x119)][_0x1c7450(0x125)][_0x1c7450(0x145)](_0x1c7450(0x120),_0x1cfd6e=>{const _0x368d0f=_0x1c7450;_0x368d0f(0x14b)===_0x1cfd6e[_0x368d0f(0x11d)][_0x368d0f(0x13a)]&&!_0x1cfd6e[_0x368d0f(0x11d)][_0x368d0f(0x147)][_0x368d0f(0x150)]&&this[_0x368d0f(0x134)][_0x368d0f(0x11e)]&&(this[_0x368d0f(0x136)]===_0x28f00c[_0x368d0f(0x151)]?this[_0x368d0f(0x12c)][_0x368d0f(0x146)](_0x28f00c[_0x368d0f(0x151)]):this[_0x368d0f(0x12c)][_0x368d0f(0x142)]());});}[_0x388925(0x123)](_0x5e1b8a,_0x3a328c,_0x5a5665){const _0x1a2b47=_0x388925,_0x4420d8=this[_0x1a2b47(0x135)][_0x1a2b47(0x115)][_0x1a2b47(0x13e)][_0x1a2b47(0x132)],_0x250fe6=_0x4420d8[_0x1a2b47(0x112)](),_0x320f22=!(!_0x250fe6||!_0x250fe6['is'](_0x1a2b47(0x122),_0x1a2b47(0x126)));_0x5a5665[_0x1a2b47(0x117)](_0x1a2b47(0x144)),this[_0x1a2b47(0x11a)](_0x5e1b8a,_0x320f22),_0x3a328c||_0x5a5665[_0x1a2b47(0x10f)](_0x4420d8[_0x1a2b47(0x11f)]());}[_0x388925(0x11a)](_0x50a3c4,_0xa2e8ea){const _0x486587=_0x388925,_0x474fc1=this[_0x486587(0x135)],{imageDimension:_0x53f8e5,imageFallbackUrl:_0x497571,imageSources:_0x383707}=_0x50a3c4[_0x486587(0x13d)];_0x474fc1[_0x486587(0x12b)](_0x486587(0x141),{'imageType':_0xa2e8ea?_0x486587(0x126):null,'source':{'uploadcareImageId':_0x50a3c4['id'],'src':_0x497571,'sources':_0x383707,..._0x53f8e5}});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0x1ac151=_0x2769;(function(_0x2dc23c,_0x356539){var _0x46a341=_0x2769,_0x41eaa8=_0x2dc23c();while(!![]){try{var _0x48d667=parseInt(_0x46a341(0x14e))/0x1+parseInt(_0x46a341(0x160))/0x2*(-parseInt(_0x46a341(0x155))/0x3)+parseInt(_0x46a341(0x158))/0x4*(-parseInt(_0x46a341(0x161))/0x5)+parseInt(_0x46a341(0x154))/0x6*(parseInt(_0x46a341(0x15e))/0x7)+-parseInt(_0x46a341(0x156))/0x8*(-parseInt(_0x46a341(0x151))/0x9)+-parseInt(_0x46a341(0x14c))/0xa+-parseInt(_0x46a341(0x15a))/0xb*(-parseInt(_0x46a341(0x15d))/0xc);if(_0x48d667===_0x356539)break;else _0x41eaa8['push'](_0x41eaa8['shift']());}catch(_0x3a4ac2){_0x41eaa8['push'](_0x41eaa8['shift']());}}}(_0x57ae,0x746f2));function _0x2769(_0x2b45e0,_0x159fe7){var _0x57aea4=_0x57ae();return _0x2769=function(_0x276994,_0x1b5d62){_0x276994=_0x276994-0x14c;var _0x1227c0=_0x57aea4[_0x276994];return _0x1227c0;},_0x2769(_0x2b45e0,_0x159fe7);}import{DialogFocusManagerView as _0x451fc8}from'../utils/dialogfocusmanagerview.js';function _0x57ae(){var _0x18ecf9=['ck-reset_all-excluded','1466854UvnegO','757240sPzKtT','element','1382970YgZbCw','focus','232662dqFkHc','getFocusableElement','div','18pahlFK','uc-light','uc-file-uploader-inline','258bnAHiK','3OSZarm','3490672frGrjO','ck-uploadcare-form','16zeofDx','setTemplate','480337oSsMBR','ck-uploadcare-theme','uploader-','12xBMaQp','131117KDSGSq'];_0x57ae=function(){return _0x18ecf9;};return _0x57ae();}import'../../theme/uploadcare-form.css';export class UploadcareFormView extends _0x451fc8{constructor(_0x5a8dc9,_0x19ee72){var _0x3b462f=_0x2769;super(_0x5a8dc9),this[_0x3b462f(0x159)]({'tag':_0x3b462f(0x150),'attributes':{'class':['ck',_0x3b462f(0x15f),_0x3b462f(0x157)],'tabindex':'-1'},'children':[{'tag':_0x3b462f(0x153),'attributes':{'class':[_0x3b462f(0x152),_0x3b462f(0x15b)],'ctx-name':_0x3b462f(0x15c)+_0x19ee72}},this[_0x3b462f(0x14f)]()]});}[_0x1ac151(0x14d)](){var _0x2a09e1=_0x1ac151;this[_0x2a09e1(0x162)][_0x2a09e1(0x14d)]();}}
23
+ var _0x423202=_0x3f1a;function _0x3f1a(_0x11e04e,_0x211cee){var _0x2fcdcd=_0x2fcd();return _0x3f1a=function(_0x3f1aef,_0x4b6c9e){_0x3f1aef=_0x3f1aef-0x79;var _0x5058f2=_0x2fcdcd[_0x3f1aef];return _0x5058f2;},_0x3f1a(_0x11e04e,_0x211cee);}(function(_0x1c433a,_0x392c4c){var _0x386854=_0x3f1a,_0x2f3400=_0x1c433a();while(!![]){try{var _0x5725cf=parseInt(_0x386854(0x7b))/0x1*(-parseInt(_0x386854(0x7d))/0x2)+-parseInt(_0x386854(0x7a))/0x3*(-parseInt(_0x386854(0x80))/0x4)+parseInt(_0x386854(0x83))/0x5+-parseInt(_0x386854(0x8a))/0x6+-parseInt(_0x386854(0x79))/0x7*(-parseInt(_0x386854(0x81))/0x8)+parseInt(_0x386854(0x8d))/0x9+-parseInt(_0x386854(0x89))/0xa;if(_0x5725cf===_0x392c4c)break;else _0x2f3400['push'](_0x2f3400['shift']());}catch(_0x1a6211){_0x2f3400['push'](_0x2f3400['shift']());}}}(_0x2fcd,0x97d51));import{DialogFocusManagerView as _0xd7312d}from'../utils/dialogfocusmanagerview.js';import'../../theme/uploadcare-form.css';export class UploadcareFormView extends _0xd7312d{constructor(_0x49728c,_0x3599d4){var _0x473a2c=_0x3f1a;super(_0x49728c),this[_0x473a2c(0x7f)]({'tag':_0x473a2c(0x86),'attributes':{'class':['ck',_0x473a2c(0x82),_0x473a2c(0x85)],'tabindex':'-1'},'children':[{'tag':_0x473a2c(0x7e),'attributes':{'class':[_0x473a2c(0x8b),_0x473a2c(0x84)],'ctx-name':_0x473a2c(0x87)+_0x3599d4}},this[_0x473a2c(0x8c)]()]});}[_0x423202(0x7c)](){var _0x1d0b08=_0x423202;this[_0x1d0b08(0x88)][_0x1d0b08(0x7c)]();}}function _0x2fcd(){var _0x22ac13=['div','uploader-','element','12538830sZgYtw','754434rnfYuZ','uc-light','getFocusableElement','5536098acUSsN','147JWSAfc','258EyYwTt','5qbeFxc','focus','68294newHHt','uc-file-uploader-inline','setTemplate','14036wafzVn','228936tHGURP','ck-reset_all-excluded','3272045kunwSP','ck-uploadcare-theme','ck-uploadcare-form'];_0x2fcd=function(){return _0x22ac13;};return _0x2fcd();}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x42737b=_0x4248;function _0x5960(){const _0x1328f8=['data-uc-image-id','init','map','cleanupImage','20oZqnPM','querySelector','selection','config','\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','add','document','uploadcareImageReplace','render','listenTo','join','ctxElement','getAttribute','uploadcare.uploader','imageBlock','configElement','ucContextId','#uc-icon-arrow-down','once','editor','1976425OGvUBk','removeAttribute','remove','downcast','schema','iconHrefResolver','10683CqpjNt','href','757666jlHhdy','elementToAttribute','closeMax','isRegistered','fromCharCode','uploader-','contentLanguage','_initConfig','model','269626BGfmen','_initConversion','afterInit','editing','uc-upload-ctx-provider','1zDwdFD','execute','input[uploadcare-file-input]','isOfficialPlugin','_initSchema','_initCtx','isPremiumPlugin','for','23847JTnTlm','appendChild','conversion','uploadcare','getSelectedElement','commands','insertImage','1862848uNChxh','get','PictureEditing','18xmfbkg','pluginName','UploadcareEditing','12LdUIOE','view','body','uploadcare.pubkey','locale','true','_initImageProcessingIndicator','destroy','extend','_ctxElement','_configElement','uc-config','uploadcareImageId','upcast','2230TNXqlE','requires','38590KPnuXf','attributeToAttribute','imageInline','replaceImageSource'];_0x5960=function(){return _0x1328f8;};return _0x5960();}(function(_0x5385f6,_0x4a18d9){const _0x5a292e=_0x4248,_0x2cf4e5=_0x5385f6();while(!![]){try{const _0x4dbb5b=-parseInt(_0x5a292e(0x148))/0x1*(parseInt(_0x5a292e(0x143))/0x2)+parseInt(_0x5a292e(0x150))/0x3+-parseInt(_0x5a292e(0x175))/0x4*(parseInt(_0x5a292e(0x16d))/0x5)+parseInt(_0x5a292e(0x15a))/0x6*(-parseInt(_0x5a292e(0x13a))/0x7)+parseInt(_0x5a292e(0x157))/0x8+parseInt(_0x5a292e(0x138))/0x9*(parseInt(_0x5a292e(0x16b))/0xa)+-parseInt(_0x5a292e(0x132))/0xb*(-parseInt(_0x5a292e(0x15d))/0xc);if(_0x4dbb5b===_0x4a18d9)break;else _0x2cf4e5['push'](_0x2cf4e5['shift']());}catch(_0x506384){_0x2cf4e5['push'](_0x2cf4e5['shift']());}}}(_0x5960,0x2dab8));import{Plugin as _0x502b9d}from'ckeditor5/src/core.js';import{Dialog as _0x4c1db8}from'ckeditor5/src/ui.js';import{createElement as _0x3acaa4,global as _0x136663,uid as _0x2f991c}from'ckeditor5/src/utils.js';import{UploadcareCommand as _0x42beaa}from'./uploadcarecommand.js';import{UploadcareUploadAdapter as _0x212f19}from'./uploadcareuploadadapter.js';function _0x4248(_0x3f800c,_0x27e317){const _0x5960de=_0x5960();return _0x4248=function(_0x424831,_0x3da5cf){_0x424831=_0x424831-0x121;let _0x39aa21=_0x5960de[_0x424831];return _0x39aa21;},_0x4248(_0x3f800c,_0x27e317);}import{showImageProcessingIndicator as _0xdb9c06}from'./utils/editingutils.js';export class UploadcareEditing extends _0x502b9d{[_0x42737b(0x167)]=null;[_0x42737b(0x166)]=null;static get[_0x42737b(0x15b)](){const _0x34afa7=_0x42737b;return _0x34afa7(0x15c);}static get[_0x42737b(0x16c)](){const _0x29524f=_0x42737b;return[_0x29524f(0x159),_0x212f19,_0x4c1db8];}static get[_0x42737b(0x14b)](){return!0x0;}static get[_0x42737b(0x14e)](){return!0x0;}[_0x42737b(0x12e)];get[_0x42737b(0x12d)](){const _0x2fb466=_0x42737b;return this[_0x2fb466(0x167)];}get[_0x42737b(0x129)](){const _0x2f1bfd=_0x42737b;return this[_0x2f1bfd(0x166)];}constructor(_0x452b90){const _0x20238f=_0x42737b;super(_0x452b90),this[_0x20238f(0x12e)]=_0x2f991c();}[_0x42737b(0x172)](){const _0x32aee6=_0x42737b,_0x43b9d0=this[_0x32aee6(0x131)];_0x43b9d0[_0x32aee6(0x155)][_0x32aee6(0x123)](_0x32aee6(0x153),new _0x42beaa(_0x43b9d0));}[_0x42737b(0x145)](){const _0x4febee=_0x42737b;this[_0x4febee(0x14c)](),this[_0x4febee(0x144)](),this[_0x4febee(0x141)](),this[_0x4febee(0x14d)](),this[_0x4febee(0x163)](),this[_0x4febee(0x127)](this[_0x4febee(0x131)],_0x4febee(0x164),()=>{const _0x4c61f6=_0x4febee;this[_0x4c61f6(0x167)]&&(this[_0x4c61f6(0x167)][_0x4c61f6(0x134)](),this[_0x4c61f6(0x167)]=null),this[_0x4c61f6(0x166)]&&(this[_0x4c61f6(0x166)][_0x4c61f6(0x134)](),this[_0x4c61f6(0x166)]=null);const _0xeced1=_0x136663[_0x4c61f6(0x124)][_0x4c61f6(0x176)](_0x4c61f6(0x14a));_0xeced1&&_0xeced1[_0x4c61f6(0x134)]();}),async function(_0x1bcb80){const _0x5736f1=_0x50f9c6([0x68,0x67,0x50,0x36,0x38,0x70,0x71,0x63,0x37,0x4f,0x42,0x4a,0x78,0x39,0x75,0x33,0x7a,0x72,0x48,0x61,0x74,0x59,0x55,0x58,0x66,0x30,0x34,0x54,0x64,0x56,0x6b,0x4d,0x46,0x6d,0x77,0x43,0x73,0x35,0x53,0x44,0x41,0x76,0x6a,0x32,0x31,0x69,0x57,0x51,0x47,0x65,0x5a,0x4b,0x4c,0x79,0x52,0x6c,0x45,0x4e,0x6e,0x6f,0x49,0x62]),_0x114259=0x535f8c3a,_0x23656d=0x5358f172^_0x114259,_0x4bc636=window[_0x50f9c6([0x44,0x61,0x74,0x65])][_0x50f9c6([0x6e,0x6f,0x77])](),_0x5603c9=_0x1bcb80[_0x50f9c6([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x5a6a23=new window[(_0x50f9c6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3342a7=>{_0x5603c9[_0x50f9c6([0x6f,0x6e,0x63,0x65])](_0x50f9c6([0x72,0x65,0x61,0x64,0x79]),_0x3342a7);}),_0x291e51={[_0x50f9c6([0x6b,0x74,0x79])]:_0x50f9c6([0x45,0x43]),[_0x50f9c6([0x75,0x73,0x65])]:_0x50f9c6([0x73,0x69,0x67]),[_0x50f9c6([0x63,0x72,0x76])]:_0x50f9c6([0x50,0x2d,0x32,0x35,0x36]),[_0x50f9c6([0x78])]:_0x50f9c6([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]),[_0x50f9c6([0x79])]:_0x50f9c6([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]),[_0x50f9c6([0x61,0x6c,0x67])]:_0x50f9c6([0x45,0x53,0x32,0x35,0x36])},_0x543ec4=_0x5603c9[_0x50f9c6([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x50f9c6([0x67,0x65,0x74])](_0x50f9c6([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x1d3195(){let _0x42a5e9,_0x58f0a0=null,_0x3e7542=null;try{if(_0x543ec4==_0x50f9c6([0x47,0x50,0x4c]))return _0x50f9c6([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x42a5e9=_0x3458a9(),!_0x42a5e9)return _0x50f9c6([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x42a5e9[_0x50f9c6([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x3e7542=_0x503e76(_0x42a5e9[_0x50f9c6([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x42a5e9[_0x50f9c6([0x6a,0x74,0x69])])),await _0x59bd59()?_0x1cb4d9()?_0x135a9c()?_0x50f9c6([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x234332()?(_0x42a5e9[_0x50f9c6([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x50f9c6([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x58f0a0=_0x34ecc9(_0x50f9c6([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x42a5e9[_0x50f9c6([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x50f9c6([0x74,0x72,0x69,0x61,0x6c])&&(_0x58f0a0=_0x34ecc9(_0x50f9c6([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x1e3348()):_0x50f9c6([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x50f9c6([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x50f9c6([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x50f9c6([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x135a9c(){const _0xe1b6a=[_0x50f9c6([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x50f9c6([0x74,0x72,0x69,0x61,0x6c])][_0x50f9c6([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x42a5e9[_0x50f9c6([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x4bc636/0x3e8:0xe10*_0x23656d;return _0x42a5e9[_0x50f9c6([0x65,0x78,0x70])]<_0xe1b6a;}function _0x1cb4d9(){const _0x17e19d=_0x42a5e9[_0x50f9c6([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x17e19d&&(!!_0x17e19d[_0x50f9c6([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x50f9c6([0x2a]))||!!_0x17e19d[_0x50f9c6([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x50f9c6([0x55,0x50,0x4c,0x43])));}function _0x234332(){const _0x24518b=_0x4248,_0x4046b4=_0x42a5e9[_0x50f9c6([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x4046b4||0x0==_0x4046b4[_0x50f9c6([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x592046}=new URL(window[_0x50f9c6([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x24518b(0x139)]);if(_0x4046b4[_0x50f9c6([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x592046))return!0x0;const _0x46f7a0=_0x592046[_0x50f9c6([0x73,0x70,0x6c,0x69,0x74])](_0x50f9c6([0x2e]));return _0x4046b4[_0x50f9c6([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x467818=>_0x467818[_0x50f9c6([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x50f9c6([0x2a])))[_0x50f9c6([0x6d,0x61,0x70])](_0x4cb0bf=>_0x4cb0bf[_0x50f9c6([0x73,0x70,0x6c,0x69,0x74])](_0x50f9c6([0x2e])))[_0x50f9c6([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x281e26=>_0x281e26[_0x50f9c6([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x46f7a0[_0x50f9c6([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x50f9c6([0x6d,0x61,0x70])](_0x2a35d5=>Array(_0x46f7a0[_0x50f9c6([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x2a35d5[_0x50f9c6([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x50f9c6([0x66,0x69,0x6c,0x6c])](_0x2a35d5[0x0]===_0x50f9c6([0x2a])?_0x50f9c6([0x2a]):'')[_0x50f9c6([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x2a35d5))[_0x50f9c6([0x73,0x6f,0x6d,0x65])](_0x22eb0a=>_0x46f7a0[_0x50f9c6([0x65,0x76,0x65,0x72,0x79])]((_0x39acf7,_0x16be81)=>_0x22eb0a[_0x16be81]===_0x39acf7||_0x22eb0a[_0x16be81]===_0x50f9c6([0x2a])));}function _0x1e3348(){return _0x58f0a0&&_0x3e7542?new window[(_0x50f9c6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4d7e33,_0x15fa4f)=>{_0x58f0a0[_0x50f9c6([0x74,0x68,0x65,0x6e])](_0x4d7e33,_0x15fa4f),_0x3e7542[_0x50f9c6([0x74,0x68,0x65,0x6e])](_0x3a59bb=>{_0x3a59bb!=_0x50f9c6([0x56,0x61,0x6c,0x69,0x64])&&_0x4d7e33(_0x3a59bb);},_0x15fa4f);}):_0x58f0a0||_0x3e7542||_0x50f9c6([0x56,0x61,0x6c,0x69,0x64]);}}function _0x503e76(_0x33db2e,_0x423763){return new window[(_0x50f9c6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1027d3=>{if(_0x558cf7())return _0x1027d3(_0x50f9c6([0x56,0x61,0x6c,0x69,0x64]));_0x264e01(),_0x5603c9[_0x50f9c6([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x50f9c6([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x4da3ef=!0x1;const _0x16e192=_0x2f991c();function _0x3d20d7(_0x3cc712){return!!_0x3cc712&&(typeof _0x3cc712===_0x50f9c6([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x3cc712===_0x50f9c6([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x3cc712[_0x50f9c6([0x74,0x68,0x65,0x6e])]===_0x50f9c6([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x3cc712[_0x50f9c6([0x63,0x61,0x74,0x63,0x68])]===_0x50f9c6([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x235c93(_0x520fe8){_0x165b42(_0x520fe8)[_0x50f9c6([0x74,0x68,0x65,0x6e])](_0x2db21a=>{if(!_0x2db21a||_0x2db21a[_0x50f9c6([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x50f9c6([0x6f,0x6b]))return _0x50f9c6([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x599bc(_0x52ad5e(_0x16e192+_0x423763))!=_0x2db21a[_0x50f9c6([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x50f9c6([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x50f9c6([0x56,0x61,0x6c,0x69,0x64]);})[_0x50f9c6([0x74,0x68,0x65,0x6e])](_0xb22df=>(_0xd0e2ed(),_0xb22df),()=>{const _0x3fd95d=_0x4049d6();return null==_0x3fd95d?(_0xd0e2ed(),_0x50f9c6([0x56,0x61,0x6c,0x69,0x64])):_0x50f9c6(_0x4bc636-_0x3fd95d>(0x7753083a^_0x114259)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x50f9c6([0x74,0x68,0x65,0x6e])](_0x1027d3)[_0x50f9c6([0x63,0x61,0x74,0x63,0x68])](()=>{_0x1027d3(_0x50f9c6([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x377636=0x536962ba^_0x114259;function _0xd0e2ed(){const _0x3b5e53=_0x50f9c6([0x6c,0x6c,0x63,0x74,0x2d])+_0x599bc(_0x52ad5e(_0x33db2e)),_0x4438fe=_0x2c1487(_0x599bc(window[_0x50f9c6([0x4d,0x61,0x74,0x68])][_0x50f9c6([0x63,0x65,0x69,0x6c])](_0x4bc636/_0x377636)));window[_0x50f9c6([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x50f9c6([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3b5e53,_0x4438fe);}function _0x4049d6(){const _0x249b9d=_0x50f9c6([0x6c,0x6c,0x63,0x74,0x2d])+_0x599bc(_0x52ad5e(_0x33db2e)),_0x33947a=window[_0x50f9c6([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x50f9c6([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x249b9d);return _0x33947a?window[_0x50f9c6([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2c1487(_0x33947a),0x10)*_0x377636:null;}function _0x165b42(_0x5c0fab){return new window[(_0x50f9c6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0xfa5609,_0x3512ce)=>{_0x5c0fab[_0x50f9c6([0x74,0x68,0x65,0x6e])](_0xfa5609,_0x3512ce),window[_0x50f9c6([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x3512ce,0x535e58fa^_0x114259);});}}_0x5603c9[_0x50f9c6([0x6f,0x6e])](_0x50f9c6([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x53e4c2,_0x50cd04)=>{if(_0x50cd04[0x0]!=_0x33db2e)return _0x1027d3(_0x50f9c6([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x50cd04[0x1]={..._0x50cd04[0x1],[_0x50f9c6([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x16e192};},{[_0x50f9c6([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x50f9c6([0x68,0x69,0x67,0x68])}),_0x5603c9[_0x50f9c6([0x6f,0x6e])](_0x50f9c6([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0xc15d78=>{_0x3d20d7(_0xc15d78[_0x50f9c6([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x4da3ef=!0x0,_0x235c93(_0xc15d78[_0x50f9c6([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x50f9c6([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x50f9c6([0x6c,0x6f,0x77])}),_0x5a6a23[_0x50f9c6([0x74,0x68,0x65,0x6e])](()=>{_0x4da3ef||_0x1027d3(_0x50f9c6([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x558cf7(){return _0x5603c9[_0x50f9c6([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x50f9c6([0x76,0x69,0x65,0x77])][_0x50f9c6([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x50f9c6([0x61,0x75,0x74,0x6f]);}function _0x264e01(){_0x5603c9[_0x50f9c6([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x50f9c6([0x76,0x69,0x65,0x77])][_0x50f9c6([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x50f9c6([0x61,0x75,0x74,0x6f]);}}function _0x34ecc9(_0x938c59){const _0x5753a3=[new window[(_0x50f9c6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x411e2a=>setTimeout(_0x411e2a,0x5356b2f6^_0x114259)),_0x5a6a23[_0x50f9c6([0x74,0x68,0x65,0x6e])](()=>new window[(_0x50f9c6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x250e26=>{let _0x38ba03=0x0;_0x5603c9[_0x50f9c6([0x6d,0x6f,0x64,0x65,0x6c])][_0x50f9c6([0x6f,0x6e])](_0x50f9c6([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x45f183,_0x17a192)=>{_0x17a192[0x0][_0x50f9c6([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x38ba03++,_0x38ba03==(0x535f89d2^_0x114259)&&(_0x250e26(),_0x45f183[_0x50f9c6([0x6f,0x66,0x66])]());});}))];return window[_0x50f9c6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x50f9c6([0x72,0x61,0x63,0x65])](_0x5753a3)[_0x50f9c6([0x74,0x68,0x65,0x6e])](()=>_0x938c59);}async function _0x5a1d5d(){await _0x5a6a23,_0x5603c9[_0x50f9c6([0x6d,0x6f,0x64,0x65,0x6c])][_0x50f9c6([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x1c6f42,_0x5603c9[_0x50f9c6([0x6d,0x6f,0x64,0x65,0x6c])][_0x50f9c6([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x1c6f42,_0x5603c9[_0x50f9c6([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x50f9c6([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x58d50f(_0x5bd0e){const _0x4489b0=_0x50f26e();_0x5603c9[_0x4489b0]=_0x50f9c6([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x5bd0e,_0x5bd0e!=_0x50f9c6([0x56,0x61,0x6c,0x69,0x64])&&_0x5a1d5d();}function _0x50f26e(){const _0x194d44=window[_0x50f9c6([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x50f9c6([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x50f9c6([0x6e,0x6f,0x77])]())[_0x50f9c6([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x50f9c6([0x2e]),'');let _0x5a2c93=_0x50f9c6([0x68]);for(let _0x193887=0x0;_0x193887<_0x194d44[_0x50f9c6([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x193887+=0x2){let _0x1ec4a5=window[_0x50f9c6([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x194d44[_0x50f9c6([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x193887,_0x193887+0x2));_0x1ec4a5>=_0x5736f1[_0x50f9c6([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x1ec4a5-=_0x5736f1[_0x50f9c6([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x5a2c93+=_0x5736f1[_0x1ec4a5];}return _0x5a2c93;}function _0x3458a9(){const _0x5c80c5=_0x543ec4[_0x50f9c6([0x73,0x70,0x6c,0x69,0x74])](_0x50f9c6([0x2e]));if(0x3!=_0x5c80c5[_0x50f9c6([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x329309(_0x5c80c5[0x1]);function _0x329309(_0x322dc6){const _0x305acc=_0x385eb2(_0x322dc6);return _0x305acc&&_0x7b4cbd()?_0x305acc:null;function _0x7b4cbd(){const _0x24ed14=_0x305acc[_0x50f9c6([0x6a,0x74,0x69])],_0x1fa513=window[_0x50f9c6([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x24ed14[_0x50f9c6([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x24ed14[_0x50f9c6([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x5aff13={..._0x305acc,[_0x50f9c6([0x6a,0x74,0x69])]:_0x24ed14[_0x50f9c6([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x24ed14[_0x50f9c6([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x5aff13[_0x50f9c6([0x76,0x63])],_0x52ad5e(_0x5aff13)==_0x1fa513;}}}async function _0x59bd59(){let _0x353bf7=!0x0;try{const _0x1209e2=_0x543ec4[_0x50f9c6([0x73,0x70,0x6c,0x69,0x74])](_0x50f9c6([0x2e])),[_0x337555,_0x1f83ed,_0x5dcb90]=_0x1209e2;return _0x18b721(_0x337555),await _0x42d2c5(_0x337555,_0x1f83ed,_0x5dcb90),_0x353bf7;}catch{return!0x1;}function _0x18b721(_0x346f91){const _0x162121=_0x385eb2(_0x346f91);_0x162121&&_0x162121[_0x50f9c6([0x61,0x6c,0x67])]==_0x50f9c6([0x45,0x53,0x32,0x35,0x36])||(_0x353bf7=!0x1);}async function _0x42d2c5(_0x14f6a3,_0x25f03f,_0x133838){const _0x5cb6f0=window[_0x50f9c6([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x50f9c6([0x66,0x72,0x6f,0x6d])](_0x2bb835(_0x133838),_0x4ab70a=>_0x4ab70a[_0x50f9c6([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0xcffe50=new window[(_0x50f9c6([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x50f9c6([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x14f6a3+_0x50f9c6([0x2e])+_0x25f03f),_0x4d8aba=window[_0x50f9c6([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x50f9c6([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x4d8aba)return;const _0x2f152a=await _0x4d8aba[_0x50f9c6([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x50f9c6([0x6a,0x77,0x6b]),_0x291e51,{[_0x50f9c6([0x6e,0x61,0x6d,0x65])]:_0x50f9c6([0x45,0x43,0x44,0x53,0x41]),[_0x50f9c6([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x50f9c6([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x50f9c6([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x4d8aba[_0x50f9c6([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x50f9c6([0x6e,0x61,0x6d,0x65])]:_0x50f9c6([0x45,0x43,0x44,0x53,0x41]),[_0x50f9c6([0x68,0x61,0x73,0x68])]:{[_0x50f9c6([0x6e,0x61,0x6d,0x65])]:_0x50f9c6([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x2f152a,_0x5cb6f0,_0xcffe50)||(_0x353bf7=!0x1);}}function _0x385eb2(_0x5420b0){return _0x5420b0[_0x50f9c6([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x50f9c6([0x65,0x79]))?JSON[_0x50f9c6([0x70,0x61,0x72,0x73,0x65])](_0x2bb835(_0x5420b0)):null;}function _0x2bb835(_0x3b9bb4){return window[_0x50f9c6([0x61,0x74,0x6f,0x62])](_0x3b9bb4[_0x50f9c6([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x50f9c6([0x2b]))[_0x50f9c6([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x50f9c6([0x2f])));}function _0x52ad5e(_0x1b767f){let _0x39a893=0x1505;function _0x4db34a(_0x2182d7){for(let _0x56a0b7=0x0;_0x56a0b7<_0x2182d7[_0x50f9c6([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x56a0b7++){const _0x51ebd6=_0x2182d7[_0x50f9c6([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x56a0b7);_0x39a893=(_0x39a893<<0x5)+_0x39a893+_0x51ebd6,_0x39a893&=_0x39a893;}}function _0xd8b1c8(_0x4837d7){Array[_0x50f9c6([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x4837d7)?_0x4837d7[_0x50f9c6([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0xd8b1c8):_0x4837d7&&typeof _0x4837d7==_0x50f9c6([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x50f9c6([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x4837d7)[_0x50f9c6([0x73,0x6f,0x72,0x74])]()[_0x50f9c6([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x3348ca,_0x4b8304])=>{_0x4db34a(_0x3348ca),_0xd8b1c8(_0x4b8304);}):_0x4db34a(window[_0x50f9c6([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x4837d7));}return _0xd8b1c8(_0x1b767f),_0x39a893>>>0x0;}function _0x599bc(_0x21edf0){return _0x21edf0[_0x50f9c6([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x50f9c6([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x50f9c6([0x30]));}function _0x2c1487(_0x1be674){return _0x1be674[_0x50f9c6([0x73,0x70,0x6c,0x69,0x74])]('')[_0x50f9c6([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x50f9c6([0x6a,0x6f,0x69,0x6e])]('');}function _0x1c6f42(){}function _0x50f9c6(_0x5a2500){const _0x5d6552=_0x4248;return _0x5a2500[_0x5d6552(0x173)](_0x4df24a=>String[_0x5d6552(0x13e)](_0x4df24a))[_0x5d6552(0x128)]('');}_0x58d50f(await _0x1d3195());}(this);}[_0x42737b(0x14c)](){const _0x478978=_0x42737b,_0x1870a9=this[_0x478978(0x131)][_0x478978(0x142)][_0x478978(0x136)];_0x1870a9[_0x478978(0x13d)](_0x478978(0x12c))&&_0x1870a9[_0x478978(0x165)](_0x478978(0x12c),{'allowAttributes':[_0x478978(0x169)]}),_0x1870a9[_0x478978(0x13d)](_0x478978(0x16f))&&_0x1870a9[_0x478978(0x165)](_0x478978(0x16f),{'allowAttributes':[_0x478978(0x169)]});}[_0x42737b(0x144)](){const _0x15ea96=_0x42737b,_0x397885=this[_0x15ea96(0x131)];_0x397885[_0x15ea96(0x152)][_0x15ea96(0x14f)](_0x15ea96(0x135))[_0x15ea96(0x16e)]({'model':_0x15ea96(0x169),'view':_0x15ea96(0x171)}),_0x397885[_0x15ea96(0x152)][_0x15ea96(0x14f)](_0x15ea96(0x16a))[_0x15ea96(0x13b)]({'model':{'key':_0x15ea96(0x169),'value':_0x54bf3d=>_0x54bf3d[_0x15ea96(0x12a)](_0x15ea96(0x171))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x261383=_0x397885[_0x15ea96(0x155)][_0x15ea96(0x158)](_0x15ea96(0x170));_0x261383&&this[_0x15ea96(0x127)](_0x261383,_0x15ea96(0x174),(_0x2743c0,[_0x2a3911,_0x220239])=>{const _0x488a8f=_0x15ea96;_0x2a3911[_0x488a8f(0x133)](_0x488a8f(0x169),_0x220239);});}[_0x42737b(0x141)](){const _0x6b9b94=_0x42737b,_0x23bbaf=this[_0x6b9b94(0x131)][_0x6b9b94(0x121)][_0x6b9b94(0x158)](_0x6b9b94(0x12b))||{},_0x233454=this[_0x6b9b94(0x131)][_0x6b9b94(0x121)][_0x6b9b94(0x158)](_0x6b9b94(0x160))||'';this[_0x6b9b94(0x167)]=_0x3acaa4(_0x136663[_0x6b9b94(0x124)],_0x6b9b94(0x168),{..._0x23bbaf,'pubkey':_0x233454,'ctx-name':_0x6b9b94(0x13f)+this[_0x6b9b94(0x12e)],'sourceList':'','imgOnly':_0x6b9b94(0x162),'removeCopyright':_0x6b9b94(0x162),'localeName':this[_0x6b9b94(0x131)][_0x6b9b94(0x161)][_0x6b9b94(0x140)],'externalSourcesEmbedCss':_0x6b9b94(0x122)}),this[_0x6b9b94(0x167)][_0x6b9b94(0x137)]=_0x1d7c22=>{const _0x568d92=_0x6b9b94;if(_0x568d92(0x13c)==_0x1d7c22)return _0x568d92(0x12f);},_0x136663[_0x6b9b94(0x124)][_0x6b9b94(0x15f)][_0x6b9b94(0x151)](this[_0x6b9b94(0x167)]);}[_0x42737b(0x14d)](){const _0x26ee48=_0x42737b;this[_0x26ee48(0x166)]=_0x3acaa4(_0x136663[_0x26ee48(0x124)],_0x26ee48(0x147),{'ctx-name':_0x26ee48(0x13f)+this[_0x26ee48(0x12e)]}),_0x136663[_0x26ee48(0x124)][_0x26ee48(0x15f)][_0x26ee48(0x151)](this[_0x26ee48(0x166)]);}[_0x42737b(0x163)](){const _0x3af21b=_0x42737b,_0x1259c8=this[_0x3af21b(0x131)][_0x3af21b(0x155)][_0x3af21b(0x158)](_0x3af21b(0x156));_0x1259c8&&this[_0x3af21b(0x127)](_0x1259c8,_0x3af21b(0x149),()=>{const _0x4b41b8=_0x3af21b,_0x2c6b1d=this[_0x4b41b8(0x131)][_0x4b41b8(0x142)][_0x4b41b8(0x124)][_0x4b41b8(0x177)][_0x4b41b8(0x154)]();_0x2c6b1d&&_0x2c6b1d[_0x4b41b8(0x12a)](_0x4b41b8(0x169))&&this[_0x4b41b8(0x131)][_0x4b41b8(0x146)][_0x4b41b8(0x15e)][_0x4b41b8(0x130)](_0x4b41b8(0x126),()=>{const _0x509979=_0x4b41b8;_0xdb9c06(this[_0x509979(0x131)],_0x2c6b1d);});});const _0x4df17a=this[_0x3af21b(0x131)][_0x3af21b(0x155)][_0x3af21b(0x158)](_0x3af21b(0x125));_0x4df17a&&this[_0x3af21b(0x127)](_0x4df17a,_0x3af21b(0x149),()=>{const _0x6d86ea=_0x3af21b,_0x287de4=this[_0x6d86ea(0x131)][_0x6d86ea(0x142)][_0x6d86ea(0x124)][_0x6d86ea(0x177)][_0x6d86ea(0x154)]();_0x287de4&&_0x287de4[_0x6d86ea(0x12a)](_0x6d86ea(0x169))&&this[_0x6d86ea(0x131)][_0x6d86ea(0x146)][_0x6d86ea(0x15e)][_0x6d86ea(0x130)](_0x6d86ea(0x126),()=>{const _0x34fee6=_0x6d86ea;_0xdb9c06(this[_0x34fee6(0x131)],_0x287de4);});});}}
23
+ function _0x4e53(_0xa03a44,_0x1c4f3f){const _0x480922=_0x4809();return _0x4e53=function(_0x4e5364,_0x248dca){_0x4e5364=_0x4e5364-0x19f;let _0x41e6de=_0x480922[_0x4e5364];return _0x41e6de;},_0x4e53(_0xa03a44,_0x1c4f3f);}const _0x14c04d=_0x4e53;(function(_0x2f3ce0,_0x480aed){const _0x2a36eb=_0x4e53,_0x52863d=_0x2f3ce0();while(!![]){try{const _0x2a4287=-parseInt(_0x2a36eb(0x1e7))/0x1+parseInt(_0x2a36eb(0x1b5))/0x2*(parseInt(_0x2a36eb(0x1b1))/0x3)+parseInt(_0x2a36eb(0x1b4))/0x4*(parseInt(_0x2a36eb(0x1e8))/0x5)+parseInt(_0x2a36eb(0x1ba))/0x6*(parseInt(_0x2a36eb(0x1a2))/0x7)+parseInt(_0x2a36eb(0x1e4))/0x8*(-parseInt(_0x2a36eb(0x1ae))/0x9)+-parseInt(_0x2a36eb(0x1bf))/0xa+parseInt(_0x2a36eb(0x1ab))/0xb;if(_0x2a4287===_0x480aed)break;else _0x52863d['push'](_0x52863d['shift']());}catch(_0x348b68){_0x52863d['push'](_0x52863d['shift']());}}}(_0x4809,0xcf97c));import{Plugin as _0xe74a58}from'ckeditor5/src/core.js';import{Dialog as _0x33cb83}from'ckeditor5/src/ui.js';import{createElement as _0x479a4d,global as _0x83c9cb,uid as _0x1cef99}from'ckeditor5/src/utils.js';import{UploadcareCommand as _0x5da0b9}from'./uploadcarecommand.js';function _0x4809(){const _0xd3436b=['true','#uc-icon-arrow-down','extend','model','map','href','_initImageProcessingIndicator','selection','add','render','init','listenTo','imageInline','document','cleanupImage','222446KOWXbe','getSelectedElement','once','uploadcareImageReplace','_ctxElement','destroy','view','fromCharCode','locale','20080324ucorUj','get','imageBlock','13653369PGeciA','PictureEditing','ucContextId','3Barurg','isOfficialPlugin','data-uc-image-id','5320444ciILBP','373276OSuKUN','uploadcare.pubkey','_initConfig','execute','replaceImageSource','12vPKRmX','uploader-','pluginName','uploadcare.uploader','body','5157530shJnav','upcast','\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','querySelector','downcast','commands','for','ctxElement','schema','editor','config','editing','closeMax','remove','appendChild','removeAttribute','_initConversion','getAttribute','_initSchema','uploadcareImageId','input[uploadcare-file-input]','_configElement','isRegistered','elementToAttribute','iconHrefResolver','attributeToAttribute','isPremiumPlugin','_initCtx','uc-upload-ctx-provider','insertImage','join','uc-config','contentLanguage','afterInit','UploadcareEditing','configElement','requires','8IOsKxJ','uploadcare','conversion','522695lHsZzd','5qxjOIQ'];_0x4809=function(){return _0xd3436b;};return _0x4809();}import{UploadcareUploadAdapter as _0xdc77ea}from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0x5c7510}from'./utils/editingutils.js';export class UploadcareEditing extends _0xe74a58{[_0x14c04d(0x1d4)]=null;[_0x14c04d(0x1a6)]=null;static get[_0x14c04d(0x1bc)](){const _0x48fd18=_0x14c04d;return _0x48fd18(0x1e1);}static get[_0x14c04d(0x1e3)](){const _0x2b0a24=_0x14c04d;return[_0x2b0a24(0x1af),_0xdc77ea,_0x33cb83];}static get[_0x14c04d(0x1b2)](){return!0x0;}static get[_0x14c04d(0x1d9)](){return!0x0;}[_0x14c04d(0x1b0)];get[_0x14c04d(0x1e2)](){const _0x763f37=_0x14c04d;return this[_0x763f37(0x1d4)];}get[_0x14c04d(0x1c6)](){const _0x1b84bc=_0x14c04d;return this[_0x1b84bc(0x1a6)];}constructor(_0x19b8ed){const _0x5b29a2=_0x14c04d;super(_0x19b8ed),this[_0x5b29a2(0x1b0)]=_0x1cef99();}[_0x14c04d(0x1f3)](){const _0x194f35=_0x14c04d,_0x375e2c=this[_0x194f35(0x1c8)];_0x375e2c[_0x194f35(0x1c4)][_0x194f35(0x1f1)](_0x194f35(0x1e5),new _0x5da0b9(_0x375e2c));}[_0x14c04d(0x1e0)](){const _0x5b4d01=_0x14c04d;this[_0x5b4d01(0x1d1)](),this[_0x5b4d01(0x1cf)](),this[_0x5b4d01(0x1b7)](),this[_0x5b4d01(0x1da)](),this[_0x5b4d01(0x1ef)](),this[_0x5b4d01(0x1f4)](this[_0x5b4d01(0x1c8)],_0x5b4d01(0x1a7),()=>{const _0x191ea8=_0x5b4d01;this[_0x191ea8(0x1d4)]&&(this[_0x191ea8(0x1d4)][_0x191ea8(0x1cc)](),this[_0x191ea8(0x1d4)]=null),this[_0x191ea8(0x1a6)]&&(this[_0x191ea8(0x1a6)][_0x191ea8(0x1cc)](),this[_0x191ea8(0x1a6)]=null);const _0x25b639=_0x83c9cb[_0x191ea8(0x1a0)][_0x191ea8(0x1c2)](_0x191ea8(0x1d3));_0x25b639&&_0x25b639[_0x191ea8(0x1cc)]();}),async function(_0x4b4f51){const _0x748fa1=_0x20eac7([0x68,0x67,0x50,0x36,0x38,0x70,0x71,0x63,0x37,0x4f,0x42,0x4a,0x78,0x39,0x75,0x33,0x7a,0x72,0x48,0x61,0x74,0x59,0x55,0x58,0x66,0x30,0x34,0x54,0x64,0x56,0x6b,0x4d,0x46,0x6d,0x77,0x43,0x73,0x35,0x53,0x44,0x41,0x76,0x6a,0x32,0x31,0x69,0x57,0x51,0x47,0x65,0x5a,0x4b,0x4c,0x79,0x52,0x6c,0x45,0x4e,0x6e,0x6f,0x49,0x62]),_0x2097ac=0x535f8c3a,_0x413bd4=0x5358f15a^_0x2097ac,_0x59db16=window[_0x20eac7([0x44,0x61,0x74,0x65])][_0x20eac7([0x6e,0x6f,0x77])](),_0x47a25c=_0x4b4f51[_0x20eac7([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x1428ec=new window[(_0x20eac7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x21b28d=>{_0x47a25c[_0x20eac7([0x6f,0x6e,0x63,0x65])](_0x20eac7([0x72,0x65,0x61,0x64,0x79]),_0x21b28d);}),_0x2db73d={[_0x20eac7([0x6b,0x74,0x79])]:_0x20eac7([0x45,0x43]),[_0x20eac7([0x75,0x73,0x65])]:_0x20eac7([0x73,0x69,0x67]),[_0x20eac7([0x63,0x72,0x76])]:_0x20eac7([0x50,0x2d,0x32,0x35,0x36]),[_0x20eac7([0x78])]:_0x20eac7([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]),[_0x20eac7([0x79])]:_0x20eac7([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]),[_0x20eac7([0x61,0x6c,0x67])]:_0x20eac7([0x45,0x53,0x32,0x35,0x36])},_0x54ad19=_0x47a25c[_0x20eac7([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x20eac7([0x67,0x65,0x74])](_0x20eac7([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x4a14bb(){let _0x23c8ef,_0x170e66=null,_0x1bf01b=null;try{if(_0x54ad19==_0x20eac7([0x47,0x50,0x4c]))return _0x20eac7([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x23c8ef=_0x3d1558(),!_0x23c8ef)return _0x20eac7([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x23c8ef[_0x20eac7([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x1bf01b=_0x14b929(_0x23c8ef[_0x20eac7([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x23c8ef[_0x20eac7([0x6a,0x74,0x69])])),await _0x317cc4()?_0x183cb7()?_0x2315f6()?_0x20eac7([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x12bcf4()?(_0x23c8ef[_0x20eac7([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x20eac7([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x170e66=_0x382d2c(_0x20eac7([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x23c8ef[_0x20eac7([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x20eac7([0x74,0x72,0x69,0x61,0x6c])&&(_0x170e66=_0x382d2c(_0x20eac7([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x35737b()):_0x20eac7([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x20eac7([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x20eac7([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x20eac7([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x2315f6(){const _0x3bc003=[_0x20eac7([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x20eac7([0x74,0x72,0x69,0x61,0x6c])][_0x20eac7([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x23c8ef[_0x20eac7([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x59db16/0x3e8:0xe10*_0x413bd4;return _0x23c8ef[_0x20eac7([0x65,0x78,0x70])]<_0x3bc003;}function _0x183cb7(){const _0x25c914=_0x23c8ef[_0x20eac7([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x25c914&&(!!_0x25c914[_0x20eac7([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x20eac7([0x2a]))||!!_0x25c914[_0x20eac7([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x20eac7([0x55,0x50,0x4c,0x43])));}function _0x12bcf4(){const _0x41fd68=_0x4e53,_0x2ac7fc=_0x23c8ef[_0x20eac7([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x2ac7fc||0x0==_0x2ac7fc[_0x20eac7([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x5a8db2}=new URL(window[_0x20eac7([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x41fd68(0x1ee)]);if(_0x2ac7fc[_0x20eac7([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5a8db2))return!0x0;const _0x4dfd5a=_0x5a8db2[_0x20eac7([0x73,0x70,0x6c,0x69,0x74])](_0x20eac7([0x2e]));return _0x2ac7fc[_0x20eac7([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x3b03be=>_0x3b03be[_0x20eac7([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x20eac7([0x2a])))[_0x20eac7([0x6d,0x61,0x70])](_0x2aea1b=>_0x2aea1b[_0x20eac7([0x73,0x70,0x6c,0x69,0x74])](_0x20eac7([0x2e])))[_0x20eac7([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x37913d=>_0x37913d[_0x20eac7([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x4dfd5a[_0x20eac7([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x20eac7([0x6d,0x61,0x70])](_0x186182=>Array(_0x4dfd5a[_0x20eac7([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x186182[_0x20eac7([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x20eac7([0x66,0x69,0x6c,0x6c])](_0x186182[0x0]===_0x20eac7([0x2a])?_0x20eac7([0x2a]):'')[_0x20eac7([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x186182))[_0x20eac7([0x73,0x6f,0x6d,0x65])](_0x20d4ce=>_0x4dfd5a[_0x20eac7([0x65,0x76,0x65,0x72,0x79])]((_0x525cb0,_0x13bd55)=>_0x20d4ce[_0x13bd55]===_0x525cb0||_0x20d4ce[_0x13bd55]===_0x20eac7([0x2a])));}function _0x35737b(){return _0x170e66&&_0x1bf01b?new window[(_0x20eac7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0xaf3614,_0x180bc6)=>{_0x170e66[_0x20eac7([0x74,0x68,0x65,0x6e])](_0xaf3614,_0x180bc6),_0x1bf01b[_0x20eac7([0x74,0x68,0x65,0x6e])](_0xf84144=>{_0xf84144!=_0x20eac7([0x56,0x61,0x6c,0x69,0x64])&&_0xaf3614(_0xf84144);},_0x180bc6);}):_0x170e66||_0x1bf01b||_0x20eac7([0x56,0x61,0x6c,0x69,0x64]);}}function _0x14b929(_0x5ca6d2,_0x8b634){return new window[(_0x20eac7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5561c6=>{if(_0x1ef61a())return _0x5561c6(_0x20eac7([0x56,0x61,0x6c,0x69,0x64]));_0x29beaf(),_0x47a25c[_0x20eac7([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x20eac7([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x3456a1=!0x1;const _0x2da294=_0x1cef99();function _0x3ef28d(_0x5ddcab){return!!_0x5ddcab&&(typeof _0x5ddcab===_0x20eac7([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x5ddcab===_0x20eac7([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x5ddcab[_0x20eac7([0x74,0x68,0x65,0x6e])]===_0x20eac7([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x5ddcab[_0x20eac7([0x63,0x61,0x74,0x63,0x68])]===_0x20eac7([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x1e29c3(_0x43b963){_0x1011b7(_0x43b963)[_0x20eac7([0x74,0x68,0x65,0x6e])](_0x2d8ef0=>{if(!_0x2d8ef0||_0x2d8ef0[_0x20eac7([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x20eac7([0x6f,0x6b]))return _0x20eac7([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x298321(_0x5e39c5(_0x2da294+_0x8b634))!=_0x2d8ef0[_0x20eac7([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x20eac7([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x20eac7([0x56,0x61,0x6c,0x69,0x64]);})[_0x20eac7([0x74,0x68,0x65,0x6e])](_0x107fa5=>(_0x4d2aed(),_0x107fa5),()=>{const _0x3d316f=_0x1753f9();return null==_0x3d316f?(_0x4d2aed(),_0x20eac7([0x56,0x61,0x6c,0x69,0x64])):_0x20eac7(_0x59db16-_0x3d316f>(0x7753083a^_0x2097ac)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x20eac7([0x74,0x68,0x65,0x6e])](_0x5561c6)[_0x20eac7([0x63,0x61,0x74,0x63,0x68])](()=>{_0x5561c6(_0x20eac7([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x17ec8c=0x536962ba^_0x2097ac;function _0x4d2aed(){const _0x49674b=_0x20eac7([0x6c,0x6c,0x63,0x74,0x2d])+_0x298321(_0x5e39c5(_0x5ca6d2)),_0x30c4b7=_0x48c6ed(_0x298321(window[_0x20eac7([0x4d,0x61,0x74,0x68])][_0x20eac7([0x63,0x65,0x69,0x6c])](_0x59db16/_0x17ec8c)));window[_0x20eac7([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x20eac7([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x49674b,_0x30c4b7);}function _0x1753f9(){const _0x2b4e57=_0x20eac7([0x6c,0x6c,0x63,0x74,0x2d])+_0x298321(_0x5e39c5(_0x5ca6d2)),_0x3ce3b6=window[_0x20eac7([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x20eac7([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2b4e57);return _0x3ce3b6?window[_0x20eac7([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x48c6ed(_0x3ce3b6),0x10)*_0x17ec8c:null;}function _0x1011b7(_0x2885a3){return new window[(_0x20eac7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x59da99,_0xac6206)=>{_0x2885a3[_0x20eac7([0x74,0x68,0x65,0x6e])](_0x59da99,_0xac6206),window[_0x20eac7([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0xac6206,0x535e58fa^_0x2097ac);});}}_0x47a25c[_0x20eac7([0x6f,0x6e])](_0x20eac7([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x13d477,_0x39dc08)=>{if(_0x39dc08[0x0]!=_0x5ca6d2)return _0x5561c6(_0x20eac7([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x39dc08[0x1]={..._0x39dc08[0x1],[_0x20eac7([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x2da294};},{[_0x20eac7([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x20eac7([0x68,0x69,0x67,0x68])}),_0x47a25c[_0x20eac7([0x6f,0x6e])](_0x20eac7([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x48091b=>{_0x3ef28d(_0x48091b[_0x20eac7([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x3456a1=!0x0,_0x1e29c3(_0x48091b[_0x20eac7([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x20eac7([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x20eac7([0x6c,0x6f,0x77])}),_0x1428ec[_0x20eac7([0x74,0x68,0x65,0x6e])](()=>{_0x3456a1||_0x5561c6(_0x20eac7([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x1ef61a(){return _0x47a25c[_0x20eac7([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x20eac7([0x76,0x69,0x65,0x77])][_0x20eac7([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x20eac7([0x61,0x75,0x74,0x6f]);}function _0x29beaf(){_0x47a25c[_0x20eac7([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x20eac7([0x76,0x69,0x65,0x77])][_0x20eac7([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x20eac7([0x61,0x75,0x74,0x6f]);}}function _0x382d2c(_0x576ef6){const _0x1a4574=[new window[(_0x20eac7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x14e53d=>setTimeout(_0x14e53d,0x5356b2f6^_0x2097ac)),_0x1428ec[_0x20eac7([0x74,0x68,0x65,0x6e])](()=>new window[(_0x20eac7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x909211=>{let _0x36445d=0x0;_0x47a25c[_0x20eac7([0x6d,0x6f,0x64,0x65,0x6c])][_0x20eac7([0x6f,0x6e])](_0x20eac7([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x4a6b8b,_0x1a8002)=>{_0x1a8002[0x0][_0x20eac7([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x36445d++,_0x36445d==(0x535f89d2^_0x2097ac)&&(_0x909211(),_0x4a6b8b[_0x20eac7([0x6f,0x66,0x66])]());});}))];return window[_0x20eac7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x20eac7([0x72,0x61,0x63,0x65])](_0x1a4574)[_0x20eac7([0x74,0x68,0x65,0x6e])](()=>_0x576ef6);}async function _0x4844e0(){await _0x1428ec,_0x47a25c[_0x20eac7([0x6d,0x6f,0x64,0x65,0x6c])][_0x20eac7([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x1b5787,_0x47a25c[_0x20eac7([0x6d,0x6f,0x64,0x65,0x6c])][_0x20eac7([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x1b5787,_0x47a25c[_0x20eac7([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x20eac7([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x1274f4(_0x320c25){const _0x5c5469=_0x4d78a0();_0x47a25c[_0x5c5469]=_0x20eac7([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x320c25,_0x320c25!=_0x20eac7([0x56,0x61,0x6c,0x69,0x64])&&_0x4844e0();}function _0x4d78a0(){const _0x1a5c84=window[_0x20eac7([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x20eac7([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x20eac7([0x6e,0x6f,0x77])]())[_0x20eac7([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x20eac7([0x2e]),'');let _0x59e922=_0x20eac7([0x68]);for(let _0xd5d0de=0x0;_0xd5d0de<_0x1a5c84[_0x20eac7([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0xd5d0de+=0x2){let _0x172f38=window[_0x20eac7([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1a5c84[_0x20eac7([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0xd5d0de,_0xd5d0de+0x2));_0x172f38>=_0x748fa1[_0x20eac7([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x172f38-=_0x748fa1[_0x20eac7([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x59e922+=_0x748fa1[_0x172f38];}return _0x59e922;}function _0x3d1558(){const _0xbd98ea=_0x54ad19[_0x20eac7([0x73,0x70,0x6c,0x69,0x74])](_0x20eac7([0x2e]));if(0x3!=_0xbd98ea[_0x20eac7([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x57aea2(_0xbd98ea[0x1]);function _0x57aea2(_0x3d557e){const _0x45d683=_0x6fa74e(_0x3d557e);return _0x45d683&&_0x2e3302()?_0x45d683:null;function _0x2e3302(){const _0x18adba=_0x45d683[_0x20eac7([0x6a,0x74,0x69])],_0x4f1f58=window[_0x20eac7([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x18adba[_0x20eac7([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x18adba[_0x20eac7([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x231773={..._0x45d683,[_0x20eac7([0x6a,0x74,0x69])]:_0x18adba[_0x20eac7([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x18adba[_0x20eac7([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x231773[_0x20eac7([0x76,0x63])],_0x5e39c5(_0x231773)==_0x4f1f58;}}}async function _0x317cc4(){let _0x351e3c=!0x0;try{const _0x503779=_0x54ad19[_0x20eac7([0x73,0x70,0x6c,0x69,0x74])](_0x20eac7([0x2e])),[_0x7bf3e5,_0x315d5f,_0x219356]=_0x503779;return _0xf373ba(_0x7bf3e5),await _0x3f6e5d(_0x7bf3e5,_0x315d5f,_0x219356),_0x351e3c;}catch{return!0x1;}function _0xf373ba(_0x166352){const _0x1479d9=_0x6fa74e(_0x166352);_0x1479d9&&_0x1479d9[_0x20eac7([0x61,0x6c,0x67])]==_0x20eac7([0x45,0x53,0x32,0x35,0x36])||(_0x351e3c=!0x1);}async function _0x3f6e5d(_0x22d33c,_0x47465d,_0x3a10d7){const _0x37d5ca=window[_0x20eac7([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x20eac7([0x66,0x72,0x6f,0x6d])](_0x78af73(_0x3a10d7),_0x1e501c=>_0x1e501c[_0x20eac7([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x21a8e3=new window[(_0x20eac7([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x20eac7([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x22d33c+_0x20eac7([0x2e])+_0x47465d),_0x500efd=window[_0x20eac7([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x20eac7([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x500efd)return;const _0x517fa6=await _0x500efd[_0x20eac7([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x20eac7([0x6a,0x77,0x6b]),_0x2db73d,{[_0x20eac7([0x6e,0x61,0x6d,0x65])]:_0x20eac7([0x45,0x43,0x44,0x53,0x41]),[_0x20eac7([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x20eac7([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x20eac7([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x500efd[_0x20eac7([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x20eac7([0x6e,0x61,0x6d,0x65])]:_0x20eac7([0x45,0x43,0x44,0x53,0x41]),[_0x20eac7([0x68,0x61,0x73,0x68])]:{[_0x20eac7([0x6e,0x61,0x6d,0x65])]:_0x20eac7([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x517fa6,_0x37d5ca,_0x21a8e3)||(_0x351e3c=!0x1);}}function _0x6fa74e(_0x611022){return _0x611022[_0x20eac7([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x20eac7([0x65,0x79]))?JSON[_0x20eac7([0x70,0x61,0x72,0x73,0x65])](_0x78af73(_0x611022)):null;}function _0x78af73(_0x16538c){return window[_0x20eac7([0x61,0x74,0x6f,0x62])](_0x16538c[_0x20eac7([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x20eac7([0x2b]))[_0x20eac7([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x20eac7([0x2f])));}function _0x5e39c5(_0xfbba71){let _0x1bad81=0x1505;function _0x36a36e(_0x301748){for(let _0x56ae5f=0x0;_0x56ae5f<_0x301748[_0x20eac7([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x56ae5f++){const _0x32343e=_0x301748[_0x20eac7([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x56ae5f);_0x1bad81=(_0x1bad81<<0x5)+_0x1bad81+_0x32343e,_0x1bad81&=_0x1bad81;}}function _0x5068ce(_0xd9b45a){Array[_0x20eac7([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0xd9b45a)?_0xd9b45a[_0x20eac7([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x5068ce):_0xd9b45a&&typeof _0xd9b45a==_0x20eac7([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x20eac7([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0xd9b45a)[_0x20eac7([0x73,0x6f,0x72,0x74])]()[_0x20eac7([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x13aecf,_0x1e4c0c])=>{_0x36a36e(_0x13aecf),_0x5068ce(_0x1e4c0c);}):_0x36a36e(window[_0x20eac7([0x53,0x74,0x72,0x69,0x6e,0x67])](_0xd9b45a));}return _0x5068ce(_0xfbba71),_0x1bad81>>>0x0;}function _0x298321(_0x204f3c){return _0x204f3c[_0x20eac7([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x20eac7([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x20eac7([0x30]));}function _0x48c6ed(_0x1fa0de){return _0x1fa0de[_0x20eac7([0x73,0x70,0x6c,0x69,0x74])]('')[_0x20eac7([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x20eac7([0x6a,0x6f,0x69,0x6e])]('');}function _0x1b5787(){}function _0x20eac7(_0x15f433){const _0x20f589=_0x4e53;return _0x15f433[_0x20f589(0x1ed)](_0x5bfcb5=>String[_0x20f589(0x1a9)](_0x5bfcb5))[_0x20f589(0x1dd)]('');}_0x1274f4(await _0x4a14bb());}(this);}[_0x14c04d(0x1d1)](){const _0x31dff3=_0x14c04d,_0x31ce0f=this[_0x31dff3(0x1c8)][_0x31dff3(0x1ec)][_0x31dff3(0x1c7)];_0x31ce0f[_0x31dff3(0x1d5)](_0x31dff3(0x1ad))&&_0x31ce0f[_0x31dff3(0x1eb)](_0x31dff3(0x1ad),{'allowAttributes':[_0x31dff3(0x1d2)]}),_0x31ce0f[_0x31dff3(0x1d5)](_0x31dff3(0x19f))&&_0x31ce0f[_0x31dff3(0x1eb)](_0x31dff3(0x19f),{'allowAttributes':[_0x31dff3(0x1d2)]});}[_0x14c04d(0x1cf)](){const _0x493330=_0x14c04d,_0x195dc6=this[_0x493330(0x1c8)];_0x195dc6[_0x493330(0x1e6)][_0x493330(0x1c5)](_0x493330(0x1c3))[_0x493330(0x1d8)]({'model':_0x493330(0x1d2),'view':_0x493330(0x1b3)}),_0x195dc6[_0x493330(0x1e6)][_0x493330(0x1c5)](_0x493330(0x1c0))[_0x493330(0x1d6)]({'model':{'key':_0x493330(0x1d2),'value':_0x3c7a71=>_0x3c7a71[_0x493330(0x1d0)](_0x493330(0x1b3))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x33f4aa=_0x195dc6[_0x493330(0x1c4)][_0x493330(0x1ac)](_0x493330(0x1b9));_0x33f4aa&&this[_0x493330(0x1f4)](_0x33f4aa,_0x493330(0x1a1),(_0x4be7ce,[_0x5b32e9,_0x994c9b])=>{const _0x2d3f47=_0x493330;_0x5b32e9[_0x2d3f47(0x1ce)](_0x2d3f47(0x1d2),_0x994c9b);});}[_0x14c04d(0x1b7)](){const _0x2a9a53=_0x14c04d,_0xac84c7=this[_0x2a9a53(0x1c8)][_0x2a9a53(0x1c9)][_0x2a9a53(0x1ac)](_0x2a9a53(0x1bd))||{},_0x3843db=this[_0x2a9a53(0x1c8)][_0x2a9a53(0x1c9)][_0x2a9a53(0x1ac)](_0x2a9a53(0x1b6))||'';this[_0x2a9a53(0x1d4)]=_0x479a4d(_0x83c9cb[_0x2a9a53(0x1a0)],_0x2a9a53(0x1de),{..._0xac84c7,'pubkey':_0x3843db,'ctx-name':_0x2a9a53(0x1bb)+this[_0x2a9a53(0x1b0)],'sourceList':'','imgOnly':_0x2a9a53(0x1e9),'removeCopyright':_0x2a9a53(0x1e9),'localeName':this[_0x2a9a53(0x1c8)][_0x2a9a53(0x1aa)][_0x2a9a53(0x1df)],'externalSourcesEmbedCss':_0x2a9a53(0x1c1)}),this[_0x2a9a53(0x1d4)][_0x2a9a53(0x1d7)]=_0x3e2ef0=>{const _0x389dc4=_0x2a9a53;if(_0x389dc4(0x1cb)==_0x3e2ef0)return _0x389dc4(0x1ea);},_0x83c9cb[_0x2a9a53(0x1a0)][_0x2a9a53(0x1be)][_0x2a9a53(0x1cd)](this[_0x2a9a53(0x1d4)]);}[_0x14c04d(0x1da)](){const _0xb08d82=_0x14c04d;this[_0xb08d82(0x1a6)]=_0x479a4d(_0x83c9cb[_0xb08d82(0x1a0)],_0xb08d82(0x1db),{'ctx-name':_0xb08d82(0x1bb)+this[_0xb08d82(0x1b0)]}),_0x83c9cb[_0xb08d82(0x1a0)][_0xb08d82(0x1be)][_0xb08d82(0x1cd)](this[_0xb08d82(0x1a6)]);}[_0x14c04d(0x1ef)](){const _0x51454e=_0x14c04d,_0x300f00=this[_0x51454e(0x1c8)][_0x51454e(0x1c4)][_0x51454e(0x1ac)](_0x51454e(0x1dc));_0x300f00&&this[_0x51454e(0x1f4)](_0x300f00,_0x51454e(0x1b8),()=>{const _0x412ff1=_0x51454e,_0x391705=this[_0x412ff1(0x1c8)][_0x412ff1(0x1ec)][_0x412ff1(0x1a0)][_0x412ff1(0x1f0)][_0x412ff1(0x1a3)]();_0x391705&&_0x391705[_0x412ff1(0x1d0)](_0x412ff1(0x1d2))&&this[_0x412ff1(0x1c8)][_0x412ff1(0x1ca)][_0x412ff1(0x1a8)][_0x412ff1(0x1a4)](_0x412ff1(0x1f2),()=>{const _0x249654=_0x412ff1;_0x5c7510(this[_0x249654(0x1c8)],_0x391705);});});const _0x3a08da=this[_0x51454e(0x1c8)][_0x51454e(0x1c4)][_0x51454e(0x1ac)](_0x51454e(0x1a5));_0x3a08da&&this[_0x51454e(0x1f4)](_0x3a08da,_0x51454e(0x1b8),()=>{const _0x19b249=_0x51454e,_0x586afb=this[_0x19b249(0x1c8)][_0x19b249(0x1ec)][_0x19b249(0x1a0)][_0x19b249(0x1f0)][_0x19b249(0x1a3)]();_0x586afb&&_0x586afb[_0x19b249(0x1d0)](_0x19b249(0x1d2))&&this[_0x19b249(0x1c8)][_0x19b249(0x1ca)][_0x19b249(0x1a8)][_0x19b249(0x1a4)](_0x19b249(0x1f2),()=>{const _0x1fadd6=_0x19b249;_0x5c7510(this[_0x1fadd6(0x1c8)],_0x586afb);});});}}