@ckeditor/ckeditor5-uploadcare 0.0.0-nightly-20250530.0 → 0.0.0-nightly-20250601.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 _0x5b75e9,Command as _0x20fdfd}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x9c5400,IconGooglePhotos as _0x223159,IconGoogleDrive as _0x3fdf2a,IconFacebook as _0x16eb55,IconDropbox as _0x5bb71a,IconUploadcareLink as _0x24a154,IconUploadcareImageUpload as _0x3855a5,IconError as et,IconUploadcareImageEdit as _0x14721f}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x26c3ec,MenuBarMenuListItemButtonView as _0x3b8fdc,View as _0x2f70b4,FocusCycler as _0x59ecab,Dialog as _0x4ee34a,DialogViewPosition as _0x4dacec,SpinnerView as _0x13cb79,IconView as at,Notification as _0x474b27}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x4a2eed,DomEmitterMixin as _0xafef0f,global as _0x78ead0,getAncestors as _0x118ce0,ObservableMixin as _0x44d8b7,createElement as _0x2d8450,uid as _0x3bc82d}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x33fcbe}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x2f02f0,info as _0x29388b}from'@uploadcare/upload-client';import*as _0x247562 from'@uploadcare/file-uploader';var o=function(_0x4d4694){return _0x4d4694['Local']='local',_0x4d4694['URL']='url',_0x4d4694['Dropbox']='dropbox',_0x4d4694['GDrive']='gdrive',_0x4d4694['Facebook']='facebook',_0x4d4694['GPhotos']='gphotos',_0x4d4694['OneDrive']='onedrive',_0x4d4694;}({});function _(_0x3e07a4,_0x369c4e,_0x44526d){const t=_0x3e07a4['t'],_0x137ab0=_0x3e07a4['t'];switch(_0x369c4e){case o['Local']:return{'text':_0x137ab0('Insert'===_0x44526d?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x137ab0('From\x20computer')};case o['URL']:return{'text':'Insert'===_0x44526d?_0x137ab0('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x137ab0('Via\x20URL')};case o['Dropbox']:return{'text':t('Insert'===_0x44526d?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case o['Facebook']:return{'text':t('Insert'===_0x44526d?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case o['GDrive']:return{'text':t('Insert'===_0x44526d?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case o['GPhotos']:return{'text':t('Insert'===_0x44526d?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case o['OneDrive']:return{'text':t('Insert'===_0x44526d?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x369c4e;}}class e extends _0x5b75e9{['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 _0x5b7467=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x818230;for(const _0x1c62dd in _0x5b7467){const _0x38d87e=_0x1c62dd,_0x1e0744=_0x5b7467[_0x38d87e];if('uploadcareLicenseKeyValid'==_0x1e0744||'uploadcareLicenseKeyInvalid'==_0x1e0744||'uploadcareLicenseKeyExpired'==_0x1e0744||'uploadcareLicenseKeyDomainLimit'==_0x1e0744||'uploadcareLicenseKeyNotAllowed'==_0x1e0744||'uploadcareLicenseKeyEvaluationLimit'==_0x1e0744||'uploadcareLicenseKeyTrialLimit'==_0x1e0744||'uploadcareLicenseKeyUsageLimit'==_0x1e0744){delete _0x5b7467[_0x38d87e],_0x818230=_0x1e0744,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x818230&&_0x5b7467['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x818230&&_0x5b7467['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x818230&&_0x5b7467['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x818230&&_0x5b7467['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x818230&&_0x5b7467['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyTrialLimit'==_0x818230&&_0x5b7467['_showLicenseError']('trialLimit'),'uploadcareLicenseKeyUsageLimit'==_0x818230&&_0x5b7467['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x5b51e4}=this,_0x499e87=_0x5b51e4['commands']['get']('uploadcare');if(!_0x499e87)return;const _0x580a5d=this['_normalizeConfigSourceList'](_0x5b51e4['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x4bc675,_0x25dc9b)=>{const _0x30e262=this['_getIntegrationKey'](_0x25dc9b['type']);return _0x4bc675[_0x30e262]||(_0x4bc675[_0x30e262]=[]),_0x4bc675[_0x30e262]['push'](_0x25dc9b),_0x4bc675;},{});_0x5b51e4['plugins']['has']('ImageInsertUI')&&_0x5b51e4['commands']['get']('uploadcare')&&Object['entries'](_0x580a5d)['forEach'](([_0x461e49,_0xcbb650])=>{_0x5b51e4['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x461e49,'observable':()=>_0x499e87,'buttonViewCreator':()=>this['_createToolbarButton'](_0xcbb650),'formViewCreator':()=>this['_createDropdownButtons'](_0xcbb650),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0xcbb650),'override':'assetManager'!==_0x461e49});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x3cfe73){const {locale:_0x4f752e}=this['editor'];return _0x3cfe73['map'](_0x1cd4cb=>{const _0x4fda5f=_(_0x4f752e,_0x1cd4cb,'Insert');switch(_0x1cd4cb){case o['Local']:return{'icon':_0x3855a5,'type':o['Local'],..._0x4fda5f};case o['URL']:return{'icon':_0x24a154,'type':o['URL'],..._0x4fda5f};case o['Dropbox']:return{'icon':_0x5bb71a,'type':o['Dropbox'],..._0x4fda5f};case o['Facebook']:return{'icon':_0x16eb55,'type':o['Facebook'],..._0x4fda5f};case o['GDrive']:return{'icon':_0x3fdf2a,'type':o['GDrive'],..._0x4fda5f};case o['GPhotos']:return{'icon':_0x223159,'type':o['GPhotos'],..._0x4fda5f};case o['OneDrive']:return{'icon':_0x9c5400,'type':o['OneDrive'],..._0x4fda5f};}});}['_getIntegrationKey'](_0x2456fe){switch(_0x2456fe){case o['Local']:return'upload';case o['URL']:return'url';default:return'assetManager';}}['_createButton'](_0xc75fc9,_0x1e984f){const _0x1379c5=this['editor'],_0x131338=new _0xc75fc9(_0x1379c5['locale']),_0x48dc0e=_0x1379c5['commands']['get']('uploadcare');return _0x131338['bind']('isEnabled')['to'](_0x48dc0e),_0x131338['on']('execute',()=>{_0x48dc0e['execute'](_0x1e984f);}),_0x131338;}['_createToolbarButton'](_0x3e1a69){const {locale:_0x55ed75}=this['editor'],_0x4671b6=this['editor']['plugins']['get']('ImageInsertUI'),_0x4931f8=_0x3e1a69[0x0],_0x5b7ced=this['_createButton'](_0x26c3ec,_0x4931f8['type']);return _0x5b7ced['icon']=_0x4931f8['icon'],_0x5b7ced['bind']('label')['to'](_0x4671b6,'isImageSelected',_0x95b06c=>_(_0x55ed75,_0x4931f8['type'],_0x95b06c?'Replace':'Insert')['text']),_0x5b7ced['tooltip']=!0x0,_0x5b7ced;}['_createDropdownButtons'](_0x371a72){const {locale:_0x5eda5d}=this['editor'],_0x4cb7b5=this['editor']['plugins']['get']('ImageInsertUI');return _0x371a72['map'](_0x2a0ffc=>{const _0x24ec64=this['_createButton'](_0x26c3ec,_0x2a0ffc['type']);return _0x24ec64['withText']=!0x0,_0x24ec64['icon']=_0x2a0ffc['icon'],_0x24ec64['bind']('label')['to'](_0x4cb7b5,'isImageSelected',_0x5b43e3=>_(_0x5eda5d,_0x2a0ffc['type'],_0x5b43e3?'Replace':'Insert')['text']),_0x24ec64;});}['_createMenuBarButtons'](_0x4455dd){return _0x4455dd['map'](_0x4f1168=>{const _0x1805f3=this['_createButton'](_0x3b8fdc,_0x4f1168['type']);return _0x1805f3['icon']=_0x4f1168['icon'],_0x1805f3['label']=_0x4f1168['shortText'],_0x1805f3;});}}class q extends _0x2f70b4{['focusTracker'];['focusCycler'];constructor(_0x5f35f0){super(_0x5f35f0),this['focusTracker']=new _0x4a2eed(),this['focusCycler']=new _0x59ecab({'focusables':this['createCollection'](),'focusTracker':this['focusTracker']});}['getFocusableElement'](){return{'tag':'div','attributes':{'aria-hidden':'true','tabindex':'0'},'on':{'focus':this['bindTemplate']['to'](()=>{this['focusCycler']['fire']('forwardCycle');})}};}}class S extends q{constructor(_0x3911d0){super(_0x3911d0),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all-excluded','ck-uploadcare-form'],'tabindex':'-1'},'children':[{'tag':'uc-file-uploader-inline','attributes':{'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'uploader'}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}}function E(_0x5a9bb8,_0x22bf25){const _0x50b507=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x135d62=>_0x135d62<=_0x22bf25)['map'](_0x47a483=>_0x5a9bb8['replace'](/\/$/,'')+'/-/resize/'+_0x47a483+'x/\x20'+_0x47a483+'w');return{'imageFallbackUrl':_0x5a9bb8,'imageSources':[{'srcset':_0x50b507['join'](',\x20'),'sizes':'(max-width:\x20'+_0x22bf25+'px)\x20100vw,\x20'+_0x22bf25+'px','type':'image/webp'}]};}function A(_0x8977a7,_0x1c51a4,_0x1adf97){const _0x3b8572=_0x8977a7['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x3b8572?parseInt(_0x3b8572[0x1],0xa):_0x1c51a4,'height':_0x3b8572?parseInt(_0x3b8572[0x2],0xa):_0x1adf97};}function m(_0x49190f,_0x717a2b){const _0x3cada7=Object['create'](_0xafef0f),_0x344d8e=_0x49190f['plugins']['get']('ImageUtils'),_0x35c5b8=_0x49190f['editing']['mapper']['toViewElement'](_0x717a2b),_0x4316d0=_0x344d8e['findViewImgElement'](_0x35c5b8),_0x505eb6=_0x49190f['editing']['view']['domConverter']['viewToDom'](_0x4316d0),_0x5982bd=_0x717a2b['getAttribute']('width'),_0x56478c=_0x717a2b['getAttribute']('height'),_0x4ca482='image-processing';_0x49190f['editing']['view']['change'](_0x2846ee=>{_0x2846ee['addClass'](_0x4ca482,_0x35c5b8),_0x2846ee['setStyle']('aspect-ratio',_0x5982bd+'/'+_0x56478c,_0x4316d0);}),_0x3cada7['listenTo'](_0x505eb6,'load',()=>{_0x3cada7['stopListening'](_0x505eb6,'load'),_0x49190f['editing']['view']['change'](_0xc4e27f=>{_0xc4e27f['removeClass'](_0x4ca482,_0x35c5b8),_0xc4e27f['removeStyle']('aspect-ratio',_0x4316d0);});});}function V(_0x42d477){if(Array['isArray'](_0x42d477)){const _0xe7d0c9=_0x42d477['map'](V);return _0x533934=>_0xe7d0c9['some'](_0xbd1701=>_0xbd1701(_0x533934));}if('origin'==_0x42d477){const _0x2a44c6=_0x78ead0['window']['location']['origin'];return _0x4d61b7=>new URL(_0x4d61b7,_0x78ead0['document']['baseURI'])['origin']==_0x2a44c6;}return'function'==typeof _0x42d477?_0x42d477:_0x42d477 instanceof RegExp?_0x387922=>!(!_0x387922['match'](_0x42d477)&&!_0x387922['replace'](/^https?:\/\//,'')['match'](_0x42d477)):()=>!0x1;}function F(_0x536e57,_0x181972){return _0x118ce0(_0x536e57['target'])['includes'](_0x181972);}class l extends/* #__PURE__ -- @preserve */
24
- _0x44d8b7(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x2e878d,_0x184c4b,_0x96cec7){super(),this['_editor']=_0x2e878d,this['_editing']=_0x184c4b,this['_dialog']=_0x2e878d['plugins']['get'](_0x4ee34a),this['_api']=_0x184c4b['ctxElement']['getAPI'](),this['_type']=_0x96cec7,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:_0xaf6124,model:_0x45bd60}=this['_editor'],_0xc770ed=_0x45bd60['document']['selection']['getSelectedElement'](),_0x4bfbd3=_0xc770ed&&(_0xc770ed['is']('element','imageBlock')||_0xc770ed['is']('element','imageInline'));this['_formView']=new S(_0xaf6124),this['_dialog']['show']({'id':'uploadCare','icon':_0x3855a5,'title':_(_0xaf6124,this['_type'],_0x4bfbd3?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x4dacec['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x202d86=>!F(_0x202d86,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x2858be}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x73996b=>{const _0x4a18b5=_0x2858be['length'];for(const _0x4f4a0d of _0x2858be){const _0x26832d=_0x4f4a0d===_0x2858be[_0x4a18b5-0x1],{cdnUrl:_0x1f6c65,fileInfo:_0x513a86}=_0x4f4a0d;if(!_0x1f6c65||!_0x513a86)continue;const {width:_0x392fca,height:_0x27ada6}=_0x513a86['imageInfo'],_0x42d682=A(_0x1f6c65,_0x392fca,_0x27ada6),_0x4fc0ba=E(_0x1f6c65,_0x42d682['width']),_0x27b4bf={'id':_0x513a86['uuid'],'type':'image','attributes':{'imageDimension':_0x42d682,..._0x4fc0ba}};this['_insertAsset'](_0x27b4bf,_0x26832d,_0x73996b);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x49082f=>{'idle'===_0x49082f['detail']['status']&&!_0x49082f['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===o['Local']?this['_api']['setCurrentActivity'](o['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x37b5a6,_0x3016fc,_0x20ae28){const _0x203de1=this['_editor']['model']['document']['selection'],_0x5eecb2=_0x203de1['getSelectedElement'](),_0x352596=!(!_0x5eecb2||!_0x5eecb2['is']('element','imageInline'));_0x20ae28['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x37b5a6,_0x352596),_0x3016fc||_0x20ae28['setSelection'](_0x203de1['getLastPosition']());}['_insertImage'](_0x2e02ed,_0x46bcb4){const _0x2e7f5f=this['_editor'],{imageDimension:_0x154dcb,imageFallbackUrl:_0x51a235,imageSources:_0x1fd0dc}=_0x2e02ed['attributes'];_0x2e7f5f['execute']('insertImage',{'imageType':_0x46bcb4?'imageInline':null,'source':{'uploadcareImageId':_0x2e02ed['id'],'src':_0x51a235,'sources':_0x1fd0dc,..._0x154dcb}});}}class n extends _0x20fdfd{['_editing'];['_controller']=null;static get['requires'](){return[_0x4ee34a,i];}constructor(_0x1784c7){super(_0x1784c7),this['_editing']=_0x1784c7['plugins']['get'](i);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x2233e2){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new l(this['editor'],this['_editing'],_0x2233e2);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class C{static['upload']({file:_0x1ee723,publicKey:_0x6011bf,signal:_0x382a3a,onProgress:_0x2a9eee}){return _0x2f02f0(_0x1ee723,{'publicKey':_0x6011bf,'store':'auto','signal':_0x382a3a,'onProgress':_0x2a9eee});}static['getInfo'](_0x2fe890,_0xa84007){return _0x29388b(_0x2fe890,_0xa84007);}}class p extends _0x5b75e9{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x33fcbe,i];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x4adbc0=this['editor'];if(!!!_0x4adbc0['config']['get']('uploadcare'))return;_0x4adbc0['plugins']['get'](_0x33fcbe)['createUploadAdapter']=_0x1f8e32=>new x(_0x1f8e32,_0x4adbc0),_0x4adbc0['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x4c643e,{imageElement:_0x24cb10,data:_0xfab023})=>{_0x4adbc0['model']['change'](_0x1d3bf6=>{_0x1d3bf6['setAttribute']('uploadcareImageId',_0xfab023['uploadcareImageId'],_0x24cb10);});});}}class x{['loader'];['editor'];['controller'];constructor(_0x22dbad,_0x3749b2){this['loader']=_0x22dbad,this['editor']=_0x3749b2,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x3a7438=this['editor']['config']['get']('uploadcare.pubkey'),_0x24dbf3=await this['loader']['file'];return C['upload']({'file':_0x24dbf3,'publicKey':_0x3a7438,'signal':this['controller']['signal'],'onProgress':_0x2425a3=>{_0x2425a3&&_0x2425a3['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x2425a3['value']);}})['then'](async _0x3cdade=>{const {imageFallbackUrl:_0x276c80,imageSources:_0x6e6649}=E(_0x3cdade['cdnUrl'],_0x3cdade['imageInfo']['width']);return{'uploadcareImageId':_0x3cdade['uuid'],'default':_0x276c80,'sources':_0x6e6649};})['catch'](()=>{const _0x306a6b=t('Cannot\x20upload\x20file:')+('\x20'+_0x24dbf3['name']+'.');return Promise['reject'](_0x306a6b);});}['abort'](){this['controller']['abort']();}}class i extends _0x5b75e9{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',p,_0x4ee34a];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}['init'](){const _0x14fcbc=this['editor'];_0x14fcbc['commands']['add']('uploadcare',new n(_0x14fcbc));}['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 _0xcdda87=_0x78ead0['document']['querySelector']('input[uploadcare-file-input]');_0xcdda87&&_0xcdda87['remove']();}),async function(_0x1e7c82){const _0x4053cd=_0x4156c8([0x49,0x4d,0x32,0x75,0x79,0x34,0x39,0x76,0x4a,0x6c,0x67,0x66,0x43,0x56,0x6e,0x46,0x5a,0x37,0x44,0x77,0x47,0x38,0x52,0x65,0x48,0x4f,0x42,0x6a,0x33,0x70,0x31,0x54,0x4b,0x4c,0x63,0x72,0x51,0x50,0x4e,0x62,0x57,0x6b,0x55,0x59,0x36,0x6d,0x68,0x71,0x41,0x45,0x69,0x53,0x30,0x78,0x61,0x7a,0x74,0x35,0x64,0x6f,0x73,0x58]),_0x3ae872=0x280b32b3,_0x715d6=0x280c5be3^_0x3ae872,_0x4f9ef1=window[_0x4156c8([0x44,0x61,0x74,0x65])][_0x4156c8([0x6e,0x6f,0x77])](),_0x3f9b45=_0x1e7c82[_0x4156c8([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x511340=new window[(_0x4156c8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4dc471=>{_0x3f9b45[_0x4156c8([0x6f,0x6e,0x63,0x65])](_0x4156c8([0x72,0x65,0x61,0x64,0x79]),_0x4dc471);}),_0x3ff611={[_0x4156c8([0x6b,0x74,0x79])]:_0x4156c8([0x45,0x43]),[_0x4156c8([0x75,0x73,0x65])]:_0x4156c8([0x73,0x69,0x67]),[_0x4156c8([0x63,0x72,0x76])]:_0x4156c8([0x50,0x2d,0x32,0x35,0x36]),[_0x4156c8([0x78])]:_0x4156c8([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]),[_0x4156c8([0x79])]:_0x4156c8([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]),[_0x4156c8([0x61,0x6c,0x67])]:_0x4156c8([0x45,0x53,0x32,0x35,0x36])},_0x26e8d6=_0x3f9b45[_0x4156c8([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x4156c8([0x67,0x65,0x74])](_0x4156c8([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x11a329(){let _0x4b3002,_0x685c1d=null,_0x52b15b=null;try{if(_0x26e8d6==_0x4156c8([0x47,0x50,0x4c]))return _0x4156c8([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x4b3002=_0x5eb683(),!_0x4b3002)return _0x4156c8([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x4b3002[_0x4156c8([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x52b15b=_0x4fc3dd(_0x4b3002[_0x4156c8([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x4b3002[_0x4156c8([0x6a,0x74,0x69])])),await _0x2e4807()?_0x4216e()?_0x46fb87()?_0x4156c8([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x53de2b()?(_0x4b3002[_0x4156c8([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x4156c8([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x685c1d=_0x523169(_0x4156c8([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x4b3002[_0x4156c8([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x4156c8([0x74,0x72,0x69,0x61,0x6c])&&(_0x685c1d=_0x523169(_0x4156c8([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x2e620a()):_0x4156c8([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x4156c8([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x4156c8([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x4156c8([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x46fb87(){const _0x5a4b83=[_0x4156c8([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x4156c8([0x74,0x72,0x69,0x61,0x6c])][_0x4156c8([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4b3002[_0x4156c8([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x4f9ef1/0x3e8:0xe10*_0x715d6;return _0x4b3002[_0x4156c8([0x65,0x78,0x70])]<_0x5a4b83;}function _0x4216e(){const _0x28c30e=_0x4b3002[_0x4156c8([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x28c30e&&(!!_0x28c30e[_0x4156c8([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4156c8([0x2a]))||!!_0x28c30e[_0x4156c8([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4156c8([0x55,0x50,0x4c,0x43])));}function _0x53de2b(){const _0x134516=_0x4b3002[_0x4156c8([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x134516||0x0==_0x134516[_0x4156c8([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x51c35c}=new URL(window[_0x4156c8([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x134516[_0x4156c8([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x51c35c))return!0x0;const _0x250b67=_0x51c35c[_0x4156c8([0x73,0x70,0x6c,0x69,0x74])](_0x4156c8([0x2e]));return _0x134516[_0x4156c8([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x39efbd=>_0x39efbd[_0x4156c8([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4156c8([0x2a])))[_0x4156c8([0x6d,0x61,0x70])](_0x3cc1d5=>_0x3cc1d5[_0x4156c8([0x73,0x70,0x6c,0x69,0x74])](_0x4156c8([0x2e])))[_0x4156c8([0x73,0x6f,0x6d,0x65])](_0x416cd9=>_0x250b67[_0x4156c8([0x65,0x76,0x65,0x72,0x79])]((_0x1f649d,_0x4a19fb)=>_0x416cd9[_0x4a19fb]===_0x1f649d||_0x416cd9[_0x4a19fb]===_0x4156c8([0x2a])));}function _0x2e620a(){return _0x685c1d&&_0x52b15b?new window[(_0x4156c8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3f786e,_0x10e982)=>{_0x685c1d[_0x4156c8([0x74,0x68,0x65,0x6e])](_0x3f786e,_0x10e982),_0x52b15b[_0x4156c8([0x74,0x68,0x65,0x6e])](_0xbf3b78=>{_0xbf3b78!=_0x4156c8([0x56,0x61,0x6c,0x69,0x64])&&_0x3f786e(_0xbf3b78);},_0x10e982);}):_0x685c1d||_0x52b15b||_0x4156c8([0x56,0x61,0x6c,0x69,0x64]);}}function _0x4fc3dd(_0x186e40,_0x43b946){return new window[(_0x4156c8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3272f2=>{if(_0x41c6a6())return _0x3272f2(_0x4156c8([0x56,0x61,0x6c,0x69,0x64]));_0x58a526(),_0x3f9b45[_0x4156c8([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x4156c8([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x4e85df=!0x1;const _0x3a89c8=_0x3bc82d();function _0x22c0a5(_0x7e2f3b){return!!_0x7e2f3b&&(typeof _0x7e2f3b===_0x4156c8([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x7e2f3b===_0x4156c8([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x7e2f3b[_0x4156c8([0x74,0x68,0x65,0x6e])]===_0x4156c8([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x7e2f3b[_0x4156c8([0x63,0x61,0x74,0x63,0x68])]===_0x4156c8([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x534c94(_0x45b602){_0xf0186e(_0x45b602)[_0x4156c8([0x74,0x68,0x65,0x6e])](_0x40a53f=>{if(!_0x40a53f||_0x40a53f[_0x4156c8([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x4156c8([0x6f,0x6b]))return _0x4156c8([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x10a4db(_0xe28223(_0x3a89c8+_0x43b946))!=_0x40a53f[_0x4156c8([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x4156c8([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x4156c8([0x56,0x61,0x6c,0x69,0x64]);})[_0x4156c8([0x74,0x68,0x65,0x6e])](_0x1b1cc1=>(_0x470a8c(),_0x1b1cc1),()=>{const _0x58ea4d=_0x425e69();return null==_0x58ea4d?(_0x470a8c(),_0x4156c8([0x56,0x61,0x6c,0x69,0x64])):_0x4156c8(_0x4f9ef1-_0x58ea4d>(0xc07b6b3^_0x3ae872)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x4156c8([0x74,0x68,0x65,0x6e])](_0x3272f2)[_0x4156c8([0x63,0x61,0x74,0x63,0x68])](()=>{_0x3272f2(_0x4156c8([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x101a0b=0x283ddc33^_0x3ae872;function _0x470a8c(){const _0x52d710=_0x4156c8([0x6c,0x6c,0x63,0x74,0x2d])+_0x10a4db(_0xe28223(_0x186e40)),_0x42e907=_0x3ef42a(_0x10a4db(window[_0x4156c8([0x4d,0x61,0x74,0x68])][_0x4156c8([0x63,0x65,0x69,0x6c])](_0x4f9ef1/_0x101a0b)));window[_0x4156c8([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4156c8([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x52d710,_0x42e907);}function _0x425e69(){const _0x5427be=_0x4156c8([0x6c,0x6c,0x63,0x74,0x2d])+_0x10a4db(_0xe28223(_0x186e40)),_0x52058e=window[_0x4156c8([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4156c8([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x5427be);return _0x52058e?window[_0x4156c8([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3ef42a(_0x52058e),0x10)*_0x101a0b:null;}function _0xf0186e(_0x1fdb0c){return new window[(_0x4156c8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0xb2795d,_0xee4dd1)=>{_0x1fdb0c[_0x4156c8([0x74,0x68,0x65,0x6e])](_0xb2795d,_0xee4dd1),window[_0x4156c8([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0xee4dd1,0x280ae673^_0x3ae872);});}}_0x3f9b45[_0x4156c8([0x6f,0x6e])](_0x4156c8([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x1b9bd3,_0x46094d)=>{if(_0x46094d[0x0]!=_0x186e40)return _0x3272f2(_0x4156c8([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x46094d[0x1]={..._0x46094d[0x1],[_0x4156c8([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x3a89c8};},{[_0x4156c8([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4156c8([0x68,0x69,0x67,0x68])}),_0x3f9b45[_0x4156c8([0x6f,0x6e])](_0x4156c8([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x2715fe=>{_0x22c0a5(_0x2715fe[_0x4156c8([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x4e85df=!0x0,_0x534c94(_0x2715fe[_0x4156c8([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x4156c8([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4156c8([0x6c,0x6f,0x77])}),_0x511340[_0x4156c8([0x74,0x68,0x65,0x6e])](()=>{_0x4e85df||_0x3272f2(_0x4156c8([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x41c6a6(){return _0x3f9b45[_0x4156c8([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4156c8([0x76,0x69,0x65,0x77])][_0x4156c8([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x4156c8([0x61,0x75,0x74,0x6f]);}function _0x58a526(){_0x3f9b45[_0x4156c8([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4156c8([0x76,0x69,0x65,0x77])][_0x4156c8([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x4156c8([0x61,0x75,0x74,0x6f]);}}function _0x523169(_0x63904c){const _0x164f28=[new window[(_0x4156c8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1e8c57=>setTimeout(_0x1e8c57,0x28020c7f^_0x3ae872)),_0x511340[_0x4156c8([0x74,0x68,0x65,0x6e])](()=>new window[(_0x4156c8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x44c97c=>{let _0x225622=0x0;_0x3f9b45[_0x4156c8([0x6d,0x6f,0x64,0x65,0x6c])][_0x4156c8([0x6f,0x6e])](_0x4156c8([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x32bf9f,_0x23682c)=>{_0x23682c[0x0][_0x4156c8([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x225622++,_0x225622==(0x280b334b^_0x3ae872)&&(_0x44c97c(),_0x32bf9f[_0x4156c8([0x6f,0x66,0x66])]());});}))];return window[_0x4156c8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x4156c8([0x72,0x61,0x63,0x65])](_0x164f28)[_0x4156c8([0x74,0x68,0x65,0x6e])](()=>_0x63904c);}async function _0x7a4460(){await _0x511340,_0x3f9b45[_0x4156c8([0x6d,0x6f,0x64,0x65,0x6c])][_0x4156c8([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x263345,_0x3f9b45[_0x4156c8([0x6d,0x6f,0x64,0x65,0x6c])][_0x4156c8([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x263345,_0x3f9b45[_0x4156c8([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x4156c8([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x447d37(_0x2269f6){const _0x42e87a=_0x4e426e();_0x3f9b45[_0x42e87a]=_0x4156c8([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x2269f6,_0x2269f6!=_0x4156c8([0x56,0x61,0x6c,0x69,0x64])&&_0x7a4460();}function _0x4e426e(){const _0x363636=window[_0x4156c8([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x4156c8([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x4156c8([0x6e,0x6f,0x77])]())[_0x4156c8([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x4156c8([0x2e]),'');let _0x525367=_0x4156c8([0x49]);for(let _0x35a8c0=0x0;_0x35a8c0<_0x363636[_0x4156c8([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x35a8c0+=0x2){let _0x1df9c6=window[_0x4156c8([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x363636[_0x4156c8([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x35a8c0,_0x35a8c0+0x2));_0x1df9c6>=_0x4053cd[_0x4156c8([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x1df9c6-=_0x4053cd[_0x4156c8([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x525367+=_0x4053cd[_0x1df9c6];}return _0x525367;}function _0x5eb683(){const _0x3ae619=_0x26e8d6[_0x4156c8([0x73,0x70,0x6c,0x69,0x74])](_0x4156c8([0x2e]));if(0x3!=_0x3ae619[_0x4156c8([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x3d904e(_0x3ae619[0x1]);function _0x3d904e(_0x1a3f8c){const _0x1851d0=_0x594489(_0x1a3f8c);return _0x1851d0&&_0x5ed60f()?_0x1851d0:null;function _0x5ed60f(){const _0x5a70e8=_0x1851d0[_0x4156c8([0x6a,0x74,0x69])],_0x106b48=window[_0x4156c8([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5a70e8[_0x4156c8([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x5a70e8[_0x4156c8([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x57eba6={..._0x1851d0,[_0x4156c8([0x6a,0x74,0x69])]:_0x5a70e8[_0x4156c8([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x5a70e8[_0x4156c8([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x57eba6[_0x4156c8([0x76,0x63])],_0xe28223(_0x57eba6)==_0x106b48;}}}async function _0x2e4807(){let _0x1c0416=!0x0;try{const _0x465c4d=_0x26e8d6[_0x4156c8([0x73,0x70,0x6c,0x69,0x74])](_0x4156c8([0x2e])),[_0x11950b,_0x1c991f,_0x2477e6]=_0x465c4d;return _0x1c70d9(_0x11950b),await _0x1652a2(_0x11950b,_0x1c991f,_0x2477e6),_0x1c0416;}catch{return!0x1;}function _0x1c70d9(_0x407f90){const _0x5bbcc0=_0x594489(_0x407f90);_0x5bbcc0&&_0x5bbcc0[_0x4156c8([0x61,0x6c,0x67])]==_0x4156c8([0x45,0x53,0x32,0x35,0x36])||(_0x1c0416=!0x1);}async function _0x1652a2(_0x3e8861,_0x266da3,_0x3b5759){const _0x2497bb=window[_0x4156c8([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x4156c8([0x66,0x72,0x6f,0x6d])](_0x400342(_0x3b5759),_0x1f28f8=>_0x1f28f8[_0x4156c8([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x39e45d=new window[(_0x4156c8([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x4156c8([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x3e8861+_0x4156c8([0x2e])+_0x266da3),_0x366f0d=window[_0x4156c8([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x4156c8([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x366f0d)return;const _0x5aa99a=await _0x366f0d[_0x4156c8([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x4156c8([0x6a,0x77,0x6b]),_0x3ff611,{[_0x4156c8([0x6e,0x61,0x6d,0x65])]:_0x4156c8([0x45,0x43,0x44,0x53,0x41]),[_0x4156c8([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x4156c8([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x4156c8([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x366f0d[_0x4156c8([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x4156c8([0x6e,0x61,0x6d,0x65])]:_0x4156c8([0x45,0x43,0x44,0x53,0x41]),[_0x4156c8([0x68,0x61,0x73,0x68])]:{[_0x4156c8([0x6e,0x61,0x6d,0x65])]:_0x4156c8([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x5aa99a,_0x2497bb,_0x39e45d)||(_0x1c0416=!0x1);}}function _0x594489(_0xc9ddfb){return _0xc9ddfb[_0x4156c8([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x4156c8([0x65,0x79]))?JSON[_0x4156c8([0x70,0x61,0x72,0x73,0x65])](_0x400342(_0xc9ddfb)):null;}function _0x400342(_0x346ff2){return window[_0x4156c8([0x61,0x74,0x6f,0x62])](_0x346ff2[_0x4156c8([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x4156c8([0x2b]))[_0x4156c8([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x4156c8([0x2f])));}function _0xe28223(_0x999a5){let _0x568f59=0x1505;function _0x240137(_0x3771c7){for(let _0xaf3651=0x0;_0xaf3651<_0x3771c7[_0x4156c8([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0xaf3651++){const _0x4bdc40=_0x3771c7[_0x4156c8([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0xaf3651);_0x568f59=(_0x568f59<<0x5)+_0x568f59+_0x4bdc40,_0x568f59&=_0x568f59;}}function _0x5bf12c(_0x305ad3){Array[_0x4156c8([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x305ad3)?_0x305ad3[_0x4156c8([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x5bf12c):_0x305ad3&&typeof _0x305ad3==_0x4156c8([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x4156c8([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x305ad3)[_0x4156c8([0x73,0x6f,0x72,0x74])]()[_0x4156c8([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x41d554,_0x5cc106])=>{_0x240137(_0x41d554),_0x5bf12c(_0x5cc106);}):_0x240137(window[_0x4156c8([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x305ad3));}return _0x5bf12c(_0x999a5),_0x568f59>>>0x0;}function _0x10a4db(_0x1b34b7){return _0x1b34b7[_0x4156c8([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x4156c8([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x4156c8([0x30]));}function _0x3ef42a(_0x3fcb98){return _0x3fcb98[_0x4156c8([0x73,0x70,0x6c,0x69,0x74])]('')[_0x4156c8([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x4156c8([0x6a,0x6f,0x69,0x6e])]('');}function _0x263345(){}function _0x4156c8(_0x4ff93b){return _0x4ff93b['map'](_0x417b2c=>String['fromCharCode'](_0x417b2c))['join']('');}_0x447d37(await _0x11a329());}(this);}['_initSchema'](){const _0x252e87=this['editor']['model']['schema'];_0x252e87['isRegistered']('imageBlock')&&_0x252e87['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x252e87['isRegistered']('imageInline')&&_0x252e87['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0xdf5a84=this['editor'];_0xdf5a84['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0xdf5a84['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x2ea7f1=>_0x2ea7f1['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x268af1=_0xdf5a84['commands']['get']('replaceImageSource');_0x268af1&&this['listenTo'](_0x268af1,'cleanupImage',(_0x10f2d0,[_0x93731c,_0x3335ab])=>{_0x93731c['removeAttribute']('uploadcareImageId',_0x3335ab);});}['_initConfig'](){const _0x4ead91=this['editor']['config']['get']('uploadcare.uploader')||{},_0x502c7b=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x2d8450(_0x78ead0['document'],'uc-config',{..._0x4ead91,'pubkey':_0x502c7b,'ctx-name':'uploader','sourceList':'','imgOnly':'true','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage'],'externalSourcesEmbedCss':'\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup\x20{\x20padding:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-menu\x20{\x20gap:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-footer\x20{\x20padding-top:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__separator\x20{\x20margin:\x200;\x20}\x0a\x09\x09\x09'}),this['_configElement']['iconHrefResolver']=_0x38bd18=>{if('closeMax'==_0x38bd18)return'#uc-icon-arrow-down';},_0x78ead0['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x2d8450(_0x78ead0['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader'}),_0x78ead0['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x2afac5=this['editor']['commands']['get']('insertImage');_0x2afac5&&this['listenTo'](_0x2afac5,'execute',()=>{const _0x58c4ff=this['editor']['model']['document']['selection']['getSelectedElement']();_0x58c4ff&&_0x58c4ff['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{m(this['editor'],_0x58c4ff);});});const _0x336856=this['editor']['commands']['get']('uploadcareImageReplace');_0x336856&&this['listenTo'](_0x336856,'execute',()=>{const _0x964026=this['editor']['model']['document']['selection']['getSelectedElement']();_0x964026&&_0x964026['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{m(this['editor'],_0x964026);});});}}class u extends _0x5b75e9{static get['requires'](){return[i,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x426163){super(_0x426163),_0x426163['config']['define']('uploadcare.uploader.sourceList',[o['Local'],o['URL']]),_0x247562['defineComponents'](_0x247562);}}class ta extends _0x2f70b4{constructor(_0xa69846){super(_0xa69846);const t=_0xa69846['t'],_0x35ddf9=this['bindTemplate'],_0x1d2a3d=new _0x13cb79();_0x1d2a3d['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':[_0x1d2a3d,{'text':_0x35ddf9['to']('imageUploadProgress',_0x7bfd0b=>t('Loading\x20image...')+'\x20('+(_0x7bfd0b||0x0)+'%)')}]},{'tag':'div','attributes':{'class':['ck-uploadcare-form__skeleton']},'children':[{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'}]},{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'}]}]}]});}}class rt extends _0x2f70b4{constructor(_0x27ab02){super(_0x27ab02);const t=_0x27ab02['t'];this['set']('errorType',null);const _0x4b1bc6=new _0x26c3ec(_0x27ab02);_0x4b1bc6['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x4b1bc6['withText']=!0x0,_0x4b1bc6['class']='ck-button-action',_0x4b1bc6['on']('execute',()=>{this['fire']('retry');}),_0x4b1bc6['bind']('isVisible')['to'](this,'errorType',_0x48a88f=>'NotFound'!==_0x48a88f);const _0x30781a=new at();_0x30781a['content']=et,_0x30781a['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x4f0ea2=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':[_0x30781a,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x4f0ea2['to']('errorType',_0x2b551a=>t('NotFound'!==_0x2b551a?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x4b1bc6]},{'tag':'div','attributes':{'class':['ck-uploadcare-form__skeleton']},'children':[{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'}]},{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'}]}]}]});}}class tt extends _0x2f70b4{constructor(_0x297141,_0x564c8d){super(_0x297141);const _0x5ed1e7=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x564c8d,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x5ed1e7['to']('imageSrc')}});}}class Z extends q{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x557d5c,_0x2a3599,_0x1c3bfb){super(_0x557d5c),this['_items']=this['createCollection'](),this['_loadingView']=new ta(_0x557d5c),this['_errorView']=new rt(_0x557d5c),this['_editingView']=new tt(_0x557d5c,_0x1c3bfb),this['_focusableView']=new _0x2f70b4(_0x557d5c),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x2a3599),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'],_0x2c4b61=>{this['_addUploadcareImageEditorListeners'](_0x2c4b61);});}),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'](_0x14f996,_0x177352){const _0x3ceed1='uc-cloud-image-editor',_0x12b8f3=_0x14f996['querySelector'](_0x3ceed1);if(_0x12b8f3)return _0x177352(_0x12b8f3);const _0x23fecb=new MutationObserver(_0x16e36f=>{const _0x634a3=_0x16e36f['filter'](_0x1ac7f3=>_0x1ac7f3['target']===_0x14f996&&_0x1ac7f3['addedNodes']['length']>0x0&&_0x1ac7f3['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x3ceed1);_0x634a3['length']&&(_0x23fecb['disconnect'](),_0x177352(_0x634a3[0x0]['addedNodes'][0x0]));});_0x23fecb['observe'](_0x14f996,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x541977){_0x541977['addEventListener']('apply',_0x285578=>{this['fire']('apply',{'imageSrc':_0x285578['detail']['cdnUrl']});}),_0x541977['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class z extends/* #__PURE__ -- @preserve */
25
- _0x44d8b7(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x4c90d6,_0x465b94,_0x5e353e){super(),this['_editor']=_0x4c90d6,this['_dialog']=_0x465b94,this['_imageElement']=_0x5e353e,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 _0x4bb652=this['_imageElement'],_0x22a1d4=_0x4bb652['getAttribute']('uploadcareImageId'),_0x49ec5e=_0x4bb652['getAttribute']('src');if(_0x22a1d4)await this['_loadImageInfo'](_0x22a1d4,_0x49ec5e);else{if(this['_imageCache']['has'](_0x49ec5e)){const _0x46c557=this['_imageCache']['get'](_0x49ec5e);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x46c557['url'],this['imageDimension']=_0x46c557['dimension'],this['imageId']=_0x46c557['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x41a347}=this['_editor'],t=_0x41a347['t'],_0xf0b8b8=new Z(_0x41a347,this['imageStatus'],this['_attributes']);_0xf0b8b8['bind']('status')['to'](this,'imageStatus'),_0xf0b8b8['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0xf0b8b8['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0xf0b8b8['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0xf0b8b8,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x14721f,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0xf0b8b8,'position':_0x4dacec['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0xf0b8b8['focus']();},'onHide':()=>{_0xf0b8b8['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x212619=>!F(_0x212619,_0xf0b8b8['element'])}});}['_loadImageInfo'](_0x306284,_0x3f4d24){return C['getInfo'](_0x306284,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey')})['then'](_0x5f231e=>{const {width:_0x113526,height:_0x567893}=_0x5f231e['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x3f4d24,this['imageDimension']={'width':_0x113526,'height':_0x567893},this['imageId']=_0x306284;})['catch'](_0x4a7451=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x4a7451['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x3be674,_0x425da8){return this['_getImageAsFile'](_0x3be674)['then'](_0x556b57=>C['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'signal':_0x425da8['signal'],'file':_0x556b57,'onProgress':_0x5d83a7=>{_0x5d83a7&&_0x5d83a7['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x5d83a7['value']));}}))['then'](_0x2715f6=>{const {width:_0x107a5b,height:_0x47824e}=_0x2715f6['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x2715f6['cdnUrl'],this['imageDimension']={'width':_0x107a5b,'height':_0x47824e},this['imageId']=_0x2715f6['uuid'],this['imageUploadProgress']=null;const _0x3463cc=_0x3be674['getAttribute']('src');this['_imageCache']['set'](_0x3463cc,{'id':_0x2715f6['uuid'],'url':_0x2715f6['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x188af3=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x188af3['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x5743fc,_0x20dd23){_0x5743fc['on']('apply',(_0x4a17de,_0x3bec19)=>{this['_replaceImage'](_0x20dd23,_0x3bec19['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x5743fc['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x5743fc['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x519269,_0x5375d4,_0x550783){const _0x16b372=this['_editor'],{width:_0x3cb662,height:_0x17362b}=A(_0x5375d4,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x77bee,imageSources:_0x55da90}=E(_0x5375d4,_0x3cb662);_0x16b372['model']['change'](_0x2e5945=>{if('$graveyard'===_0x519269['root']['rootName']){_0x16b372['execute']('insertImage',{'imageType':_0x519269['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x519269['getAttributes']()),'uploadcareImageId':_0x550783,'src':_0x77bee,'sources':_0x55da90,'width':_0x3cb662,'height':_0x17362b}});const _0xae97c9=_0x519269['getChildren']();_0x519269=_0x16b372['model']['document']['selection']['getSelectedElement']();for(const _0x2bea82 of _0xae97c9)_0x2e5945['append'](_0x2e5945['cloneElement'](_0x2bea82),_0x519269);}else _0x2e5945['setSelection'](_0x519269,'on'),_0x16b372['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x519269['getAttributes']()),'uploadcareImageId':_0x550783,'src':_0x77bee,'sources':_0x55da90,'width':_0x3cb662,'height':_0x17362b},_0x519269);_0x2e5945['setSelection'](_0x519269,'on');});}async['_getImageAsFile'](_0x538e77){const _0x1532f3=_0x78ead0['window'],_0x49eb79=_0x78ead0['document']['location']['href'],_0x316abd=new _0x1532f3['URL'](_0x538e77['getAttribute']('src'),_0x49eb79);if('data:'===_0x316abd['protocol']){const _0x6a862f=_0x316abd['href']['split'](','),_0x431a2d=_0x6a862f[0x0]['match'](/:(.*?);/)[0x1],_0x3fd1b0=_0x431a2d['split']('/')[0x1],_0x2e0c0a=_0x1532f3['atob'](_0x6a862f[_0x6a862f['length']-0x1]);let _0x1ce3cf=_0x2e0c0a['length'];const _0xbfc3ae=new _0x1532f3['Uint8Array'](_0x1ce3cf);for(;_0x1ce3cf--;)_0xbfc3ae[_0x1ce3cf]=_0x2e0c0a['charCodeAt'](_0x1ce3cf);return new _0x1532f3['File']([_0xbfc3ae],'image.'+_0x3fd1b0,{'type':_0x431a2d});}const _0x30d4d0=_0x316abd['href']['split']('/'),_0x55111a=_0x30d4d0[_0x30d4d0['length']-0x1],_0x5444fd=_0x55111a['split']('.')[0x1];return _0x1532f3['fetch'](_0x316abd['href'])['then'](_0x3d84c9=>_0x3d84c9['clone']()['blob']())['then'](_0x3a0ee1=>new _0x1532f3['File']([_0x3a0ee1],_0x55111a,{'type':'image/'+_0x5444fd}));}}class J extends _0x20fdfd{['imageEditController'];static get['requires'](){return[_0x4ee34a];}['_isEditable'];constructor(_0x4beed5){super(_0x4beed5),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x14936b){const _0x2f99cf=V(_0x14936b);return _0x85aee7=>!(!_0x85aee7||!_0x85aee7['is']('element','imageBlock')&&!_0x85aee7['is']('element','imageInline'))&&(!!_0x85aee7['hasAttribute']('uploadcareImageId')||!!_0x85aee7['hasAttribute']('src')&&_0x2f99cf(_0x85aee7['getAttribute']('src')));}(_0x4beed5['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x32d36c=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x32d36c);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x1c95c7=this['editor']['model']['document']['selection']['getSelectedElement']();_0x1c95c7&&(_0x1c95c7['is']('element','imageBlock')||_0x1c95c7['is']('element','imageInline'))&&(this['imageEditController']=new z(this['editor'],this['editor']['plugins']['get'](_0x4ee34a),_0x1c95c7),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class O extends _0x20fdfd{['refresh'](){const _0x2df2c3=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x2df2c3&&(_0x2df2c3['is']('element','imageBlock')||_0x2df2c3['is']('element','imageInline')));}['execute'](_0xe89f28){const _0x44e784=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x3e8b5a=>{_0x3e8b5a['setAttributes'](_0xe89f28,_0x44e784),_0x3e8b5a['removeAttribute']('srcset',_0x44e784),_0x3e8b5a['removeAttribute']('sizes',_0x44e784);});}}class g extends _0x5b75e9{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[i,_0x474b27,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x19ef00}=this;_0x19ef00['commands']['add']('uploadcareImageEdit',new J(_0x19ef00)),_0x19ef00['commands']['add']('uploadcareImageReplace',new O(_0x19ef00));}}class j extends _0x5b75e9{['_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 _0x1f0720=this['editor'];_0x1f0720['ui']['componentFactory']['add']('uploadcareImageEdit',_0x22dfa1=>{const _0x17303c=_0x1f0720['commands']['get']('uploadcareImageEdit'),_0x364188=new _0x26c3ec(_0x22dfa1),t=_0x22dfa1['t'];return _0x364188['set']({'icon':_0x14721f,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x364188['bind']('isEnabled')['to'](_0x17303c),_0x364188['bind']('isOn')['to'](_0x17303c,'isActive'),this['listenTo'](_0x364188,'execute',()=>{_0x1f0720['execute']('uploadcareImageEdit'),_0x1f0720['editing']['view']['focus']();}),_0x364188;}),this['_initConfig']();}['_initConfig'](){const _0xf1b647=_0x2d8450(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0xf1b647),this['listenTo'](this['editor'],'destroy',()=>{_0xf1b647['remove']();});}}class P extends _0x5b75e9{static get['pluginName'](){return'UploadcareImageEdit';}static get['requires'](){return[g,j];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{u as Uploadcare,i as UploadcareEditing,P as UploadcareImageEdit,g as UploadcareImageEditEditing,j as UploadcareImageEditUI,e as UploadcareUI};
23
+ import{Plugin as _0x4ad29f,Command as _0x2285e4}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x599c0d,IconGooglePhotos as _0x2457a1,IconGoogleDrive as _0x3bfbc6,IconFacebook as _0x5e558d,IconDropbox as _0x5369ed,IconUploadcareLink as _0x434256,IconUploadcareImageUpload as _0x52b24b,IconError as et,IconUploadcareImageEdit as _0x2627e7}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x5116cb,MenuBarMenuListItemButtonView as _0xb910d7,View as _0xfd6e23,FocusCycler as _0x2782ab,Dialog as _0x574305,DialogViewPosition as _0x32531e,SpinnerView as _0x2c1b66,IconView as at,Notification as _0x92cdb3}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x2a8817,DomEmitterMixin as _0x27133f,global as _0x3b63c4,getAncestors as _0xde7661,ObservableMixin as _0x59c1bb,createElement as _0x2acd36,uid as _0x53a8bd}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x622e41}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x19b39e,info as _0x5958fe}from'@uploadcare/upload-client';import*as _0x118224 from'@uploadcare/file-uploader';var o=function(_0x286c32){return _0x286c32['Local']='local',_0x286c32['URL']='url',_0x286c32['Dropbox']='dropbox',_0x286c32['GDrive']='gdrive',_0x286c32['Facebook']='facebook',_0x286c32['GPhotos']='gphotos',_0x286c32['OneDrive']='onedrive',_0x286c32;}({});function _(_0x199d23,_0x5427cc,_0x13969f){const t=_0x199d23['t'],_0x394dac=_0x199d23['t'];switch(_0x5427cc){case o['Local']:return{'text':_0x394dac('Insert'===_0x13969f?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x394dac('From\x20computer')};case o['URL']:return{'text':'Insert'===_0x13969f?_0x394dac('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x394dac('Via\x20URL')};case o['Dropbox']:return{'text':t('Insert'===_0x13969f?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case o['Facebook']:return{'text':t('Insert'===_0x13969f?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case o['GDrive']:return{'text':t('Insert'===_0x13969f?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case o['GPhotos']:return{'text':t('Insert'===_0x13969f?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case o['OneDrive']:return{'text':t('Insert'===_0x13969f?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x5427cc;}}class e extends _0x4ad29f{['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 _0x169ce0=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0xfc24a7;for(const _0x2283e1 in _0x169ce0){const _0x4fe5e2=_0x2283e1,_0x75a05c=_0x169ce0[_0x4fe5e2];if('uploadcareLicenseKeyValid'==_0x75a05c||'uploadcareLicenseKeyInvalid'==_0x75a05c||'uploadcareLicenseKeyExpired'==_0x75a05c||'uploadcareLicenseKeyDomainLimit'==_0x75a05c||'uploadcareLicenseKeyNotAllowed'==_0x75a05c||'uploadcareLicenseKeyEvaluationLimit'==_0x75a05c||'uploadcareLicenseKeyTrialLimit'==_0x75a05c||'uploadcareLicenseKeyUsageLimit'==_0x75a05c){delete _0x169ce0[_0x4fe5e2],_0xfc24a7=_0x75a05c,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0xfc24a7&&_0x169ce0['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0xfc24a7&&_0x169ce0['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0xfc24a7&&_0x169ce0['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0xfc24a7&&_0x169ce0['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0xfc24a7&&_0x169ce0['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyTrialLimit'==_0xfc24a7&&_0x169ce0['_showLicenseError']('trialLimit'),'uploadcareLicenseKeyUsageLimit'==_0xfc24a7&&_0x169ce0['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x21e13a}=this,_0x525697=_0x21e13a['commands']['get']('uploadcare');if(!_0x525697)return;const _0x506444=this['_normalizeConfigSourceList'](_0x21e13a['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x4e8050,_0x35a8ef)=>{const _0x12eea1=this['_getIntegrationKey'](_0x35a8ef['type']);return _0x4e8050[_0x12eea1]||(_0x4e8050[_0x12eea1]=[]),_0x4e8050[_0x12eea1]['push'](_0x35a8ef),_0x4e8050;},{});_0x21e13a['plugins']['has']('ImageInsertUI')&&_0x21e13a['commands']['get']('uploadcare')&&Object['entries'](_0x506444)['forEach'](([_0x5c202d,_0x1c9339])=>{_0x21e13a['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x5c202d,'observable':()=>_0x525697,'buttonViewCreator':()=>this['_createToolbarButton'](_0x1c9339),'formViewCreator':()=>this['_createDropdownButtons'](_0x1c9339),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x1c9339),'override':'assetManager'!==_0x5c202d});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x5c5700){const {locale:_0x2ab365}=this['editor'];return _0x5c5700['map'](_0x45dc4d=>{const _0x23ee16=_(_0x2ab365,_0x45dc4d,'Insert');switch(_0x45dc4d){case o['Local']:return{'icon':_0x52b24b,'type':o['Local'],..._0x23ee16};case o['URL']:return{'icon':_0x434256,'type':o['URL'],..._0x23ee16};case o['Dropbox']:return{'icon':_0x5369ed,'type':o['Dropbox'],..._0x23ee16};case o['Facebook']:return{'icon':_0x5e558d,'type':o['Facebook'],..._0x23ee16};case o['GDrive']:return{'icon':_0x3bfbc6,'type':o['GDrive'],..._0x23ee16};case o['GPhotos']:return{'icon':_0x2457a1,'type':o['GPhotos'],..._0x23ee16};case o['OneDrive']:return{'icon':_0x599c0d,'type':o['OneDrive'],..._0x23ee16};}});}['_getIntegrationKey'](_0x1e7336){switch(_0x1e7336){case o['Local']:return'upload';case o['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x25bd5d,_0x5030c0){const _0x541283=this['editor'],_0x5e819a=new _0x25bd5d(_0x541283['locale']),_0x560e70=_0x541283['commands']['get']('uploadcare');return _0x5e819a['bind']('isEnabled')['to'](_0x560e70),_0x5e819a['on']('execute',()=>{_0x560e70['execute'](_0x5030c0);}),_0x5e819a;}['_createToolbarButton'](_0x12aa65){const {locale:_0x3107b0}=this['editor'],_0x2e5267=this['editor']['plugins']['get']('ImageInsertUI'),_0x238855=_0x12aa65[0x0],_0x45d0d1=this['_createButton'](_0x5116cb,_0x238855['type']);return _0x45d0d1['icon']=_0x238855['icon'],_0x45d0d1['bind']('label')['to'](_0x2e5267,'isImageSelected',_0x46d82d=>_(_0x3107b0,_0x238855['type'],_0x46d82d?'Replace':'Insert')['text']),_0x45d0d1['tooltip']=!0x0,_0x45d0d1;}['_createDropdownButtons'](_0x17aac4){const {locale:_0x5ccbcd}=this['editor'],_0x33856d=this['editor']['plugins']['get']('ImageInsertUI');return _0x17aac4['map'](_0x144ca4=>{const _0x2be8c2=this['_createButton'](_0x5116cb,_0x144ca4['type']);return _0x2be8c2['withText']=!0x0,_0x2be8c2['icon']=_0x144ca4['icon'],_0x2be8c2['bind']('label')['to'](_0x33856d,'isImageSelected',_0x25e61a=>_(_0x5ccbcd,_0x144ca4['type'],_0x25e61a?'Replace':'Insert')['text']),_0x2be8c2;});}['_createMenuBarButtons'](_0x1f28af){return _0x1f28af['map'](_0x35c314=>{const _0x50bedc=this['_createButton'](_0xb910d7,_0x35c314['type']);return _0x50bedc['icon']=_0x35c314['icon'],_0x50bedc['label']=_0x35c314['shortText'],_0x50bedc;});}}class q extends _0xfd6e23{['focusTracker'];['focusCycler'];constructor(_0x18300b){super(_0x18300b),this['focusTracker']=new _0x2a8817(),this['focusCycler']=new _0x2782ab({'focusables':this['createCollection'](),'focusTracker':this['focusTracker']});}['getFocusableElement'](){return{'tag':'div','attributes':{'aria-hidden':'true','tabindex':'0'},'on':{'focus':this['bindTemplate']['to'](()=>{this['focusCycler']['fire']('forwardCycle');})}};}}class S extends q{constructor(_0x2e9488){super(_0x2e9488),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all-excluded','ck-uploadcare-form'],'tabindex':'-1'},'children':[{'tag':'uc-file-uploader-inline','attributes':{'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'uploader'}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}}function E(_0x12c0c2,_0x556438){const _0x198409=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x2e953c=>_0x2e953c<=_0x556438)['map'](_0x2c663b=>_0x12c0c2['replace'](/\/$/,'')+'/-/resize/'+_0x2c663b+'x/\x20'+_0x2c663b+'w');return{'imageFallbackUrl':_0x12c0c2,'imageSources':[{'srcset':_0x198409['join'](',\x20'),'sizes':'(max-width:\x20'+_0x556438+'px)\x20100vw,\x20'+_0x556438+'px','type':'image/webp'}]};}function A(_0x28ca49,_0x1cffce,_0x2b6642){const _0x283499=_0x28ca49['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x283499?parseInt(_0x283499[0x1],0xa):_0x1cffce,'height':_0x283499?parseInt(_0x283499[0x2],0xa):_0x2b6642};}function m(_0x55b469,_0x54afbc){const _0x2bf34c=Object['create'](_0x27133f),_0x4bf38b=_0x55b469['plugins']['get']('ImageUtils'),_0xbd6f7c=_0x55b469['editing']['mapper']['toViewElement'](_0x54afbc),_0x4c2e4f=_0x4bf38b['findViewImgElement'](_0xbd6f7c),_0x5488ec=_0x55b469['editing']['view']['domConverter']['viewToDom'](_0x4c2e4f),_0xabc530=_0x54afbc['getAttribute']('width'),_0x1d34e4=_0x54afbc['getAttribute']('height'),_0x36defa='image-processing';_0x55b469['editing']['view']['change'](_0x52be99=>{_0x52be99['addClass'](_0x36defa,_0xbd6f7c),_0x52be99['setStyle']('aspect-ratio',_0xabc530+'/'+_0x1d34e4,_0x4c2e4f);}),_0x2bf34c['listenTo'](_0x5488ec,'load',()=>{_0x2bf34c['stopListening'](_0x5488ec,'load'),_0x55b469['editing']['view']['change'](_0x843dbb=>{_0x843dbb['removeClass'](_0x36defa,_0xbd6f7c),_0x843dbb['removeStyle']('aspect-ratio',_0x4c2e4f);});});}function V(_0x204c81){if(Array['isArray'](_0x204c81)){const _0x2155b2=_0x204c81['map'](V);return _0x17886f=>_0x2155b2['some'](_0x5f037b=>_0x5f037b(_0x17886f));}if('origin'==_0x204c81){const _0x6fb98a=_0x3b63c4['window']['location']['origin'];return _0x2a858c=>new URL(_0x2a858c,_0x3b63c4['document']['baseURI'])['origin']==_0x6fb98a;}return'function'==typeof _0x204c81?_0x204c81:_0x204c81 instanceof RegExp?_0x4f6105=>!(!_0x4f6105['match'](_0x204c81)&&!_0x4f6105['replace'](/^https?:\/\//,'')['match'](_0x204c81)):()=>!0x1;}function F(_0x28dc8a,_0x50d114){return _0xde7661(_0x28dc8a['target'])['includes'](_0x50d114);}class l extends/* #__PURE__ -- @preserve */
24
+ _0x59c1bb(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x2b4566,_0x3cabc5,_0x86f519){super(),this['_editor']=_0x2b4566,this['_editing']=_0x3cabc5,this['_dialog']=_0x2b4566['plugins']['get'](_0x574305),this['_api']=_0x3cabc5['ctxElement']['getAPI'](),this['_type']=_0x86f519,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:_0x45a41d,model:_0xb29596}=this['_editor'],_0x530ac3=_0xb29596['document']['selection']['getSelectedElement'](),_0x3330cb=_0x530ac3&&(_0x530ac3['is']('element','imageBlock')||_0x530ac3['is']('element','imageInline'));this['_formView']=new S(_0x45a41d),this['_dialog']['show']({'id':'uploadCare','icon':_0x52b24b,'title':_(_0x45a41d,this['_type'],_0x3330cb?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x32531e['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x45e4e7=>!F(_0x45e4e7,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x15dc88}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x553dc7=>{const _0x483307=_0x15dc88['length'];for(const _0x507f44 of _0x15dc88){const _0x5da845=_0x507f44===_0x15dc88[_0x483307-0x1],{cdnUrl:_0x16bf9d,fileInfo:_0x335737}=_0x507f44;if(!_0x16bf9d||!_0x335737)continue;const {width:_0x1f851c,height:_0x509fc4}=_0x335737['imageInfo'],_0x2e1788=A(_0x16bf9d,_0x1f851c,_0x509fc4),_0x24928b=E(_0x16bf9d,_0x2e1788['width']),_0x348938={'id':_0x335737['uuid'],'type':'image','attributes':{'imageDimension':_0x2e1788,..._0x24928b}};this['_insertAsset'](_0x348938,_0x5da845,_0x553dc7);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x4dff59=>{'idle'===_0x4dff59['detail']['status']&&!_0x4dff59['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===o['Local']?this['_api']['setCurrentActivity'](o['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x58e08c,_0x27d4ab,_0x225897){const _0x56fe1e=this['_editor']['model']['document']['selection'],_0x2ee7e7=_0x56fe1e['getSelectedElement'](),_0x8cfb4d=!(!_0x2ee7e7||!_0x2ee7e7['is']('element','imageInline'));_0x225897['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x58e08c,_0x8cfb4d),_0x27d4ab||_0x225897['setSelection'](_0x56fe1e['getLastPosition']());}['_insertImage'](_0x3af82b,_0x355ae8){const _0x2c113e=this['_editor'],{imageDimension:_0x352eb5,imageFallbackUrl:_0x1f7010,imageSources:_0x3168be}=_0x3af82b['attributes'];_0x2c113e['execute']('insertImage',{'imageType':_0x355ae8?'imageInline':null,'source':{'uploadcareImageId':_0x3af82b['id'],'src':_0x1f7010,'sources':_0x3168be,..._0x352eb5}});}}class n extends _0x2285e4{['_editing'];['_controller']=null;static get['requires'](){return[_0x574305,i];}constructor(_0x314305){super(_0x314305),this['_editing']=_0x314305['plugins']['get'](i);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x37dc7f){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new l(this['editor'],this['_editing'],_0x37dc7f);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class C{static['upload']({file:_0x2716ad,publicKey:_0x2aba03,signal:_0x1d03ac,onProgress:_0x44c960}){return _0x19b39e(_0x2716ad,{'publicKey':_0x2aba03,'store':'auto','signal':_0x1d03ac,'onProgress':_0x44c960});}static['getInfo'](_0x14df09,_0x2b74d9){return _0x5958fe(_0x14df09,_0x2b74d9);}}class p extends _0x4ad29f{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x622e41,i];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x3352e8=this['editor'];if(!!!_0x3352e8['config']['get']('uploadcare'))return;_0x3352e8['plugins']['get'](_0x622e41)['createUploadAdapter']=_0x4b36f7=>new x(_0x4b36f7,_0x3352e8),_0x3352e8['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x31675e,{imageElement:_0x13b4fc,data:_0x55af71})=>{_0x3352e8['model']['change'](_0x4d096a=>{_0x4d096a['setAttribute']('uploadcareImageId',_0x55af71['uploadcareImageId'],_0x13b4fc);});});}}class x{['loader'];['editor'];['controller'];constructor(_0x22f4d0,_0x1f4a67){this['loader']=_0x22f4d0,this['editor']=_0x1f4a67,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x47dbab=this['editor']['config']['get']('uploadcare.pubkey'),_0x19b068=await this['loader']['file'];return C['upload']({'file':_0x19b068,'publicKey':_0x47dbab,'signal':this['controller']['signal'],'onProgress':_0x3e9a6f=>{_0x3e9a6f&&_0x3e9a6f['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x3e9a6f['value']);}})['then'](async _0x1a1efe=>{const {imageFallbackUrl:_0x3c7d72,imageSources:_0x353d77}=E(_0x1a1efe['cdnUrl'],_0x1a1efe['imageInfo']['width']);return{'uploadcareImageId':_0x1a1efe['uuid'],'default':_0x3c7d72,'sources':_0x353d77};})['catch'](()=>{const _0x41c73c=t('Cannot\x20upload\x20file:')+('\x20'+_0x19b068['name']+'.');return Promise['reject'](_0x41c73c);});}['abort'](){this['controller']['abort']();}}class i extends _0x4ad29f{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',p,_0x574305];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}['init'](){const _0x13e17a=this['editor'];_0x13e17a['commands']['add']('uploadcare',new n(_0x13e17a));}['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 _0x4a34f4=_0x3b63c4['document']['querySelector']('input[uploadcare-file-input]');_0x4a34f4&&_0x4a34f4['remove']();}),async function(_0x225363){const _0x1a201a=_0x1f54a7([0x64,0x31,0x4a,0x53,0x49,0x51,0x4e,0x33,0x66,0x6e,0x6d,0x4b,0x4d,0x48,0x30,0x63,0x78,0x5a,0x6a,0x74,0x36,0x79,0x65,0x67,0x32,0x34,0x42,0x68,0x7a,0x39,0x50,0x6f,0x54,0x73,0x69,0x46,0x43,0x41,0x47,0x71,0x72,0x58,0x4f,0x6b,0x77,0x35,0x55,0x45,0x56,0x62,0x75,0x59,0x52,0x70,0x37,0x6c,0x76,0x57,0x61,0x38,0x44,0x4c]),_0x33235c=0x701b58b9,_0x43541b=0x701c3139^_0x33235c,_0x1b591c=window[_0x1f54a7([0x44,0x61,0x74,0x65])][_0x1f54a7([0x6e,0x6f,0x77])](),_0x3a3e3d=_0x225363[_0x1f54a7([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x327a52=new window[(_0x1f54a7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1a1fde=>{_0x3a3e3d[_0x1f54a7([0x6f,0x6e,0x63,0x65])](_0x1f54a7([0x72,0x65,0x61,0x64,0x79]),_0x1a1fde);}),_0x4e1b0a={[_0x1f54a7([0x6b,0x74,0x79])]:_0x1f54a7([0x45,0x43]),[_0x1f54a7([0x75,0x73,0x65])]:_0x1f54a7([0x73,0x69,0x67]),[_0x1f54a7([0x63,0x72,0x76])]:_0x1f54a7([0x50,0x2d,0x32,0x35,0x36]),[_0x1f54a7([0x78])]:_0x1f54a7([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]),[_0x1f54a7([0x79])]:_0x1f54a7([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]),[_0x1f54a7([0x61,0x6c,0x67])]:_0x1f54a7([0x45,0x53,0x32,0x35,0x36])},_0x6fbfda=_0x3a3e3d[_0x1f54a7([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x1f54a7([0x67,0x65,0x74])](_0x1f54a7([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x48ee84(){let _0x402b88,_0x1710bf=null,_0x4f8ea0=null;try{if(_0x6fbfda==_0x1f54a7([0x47,0x50,0x4c]))return _0x1f54a7([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x402b88=_0x1682c7(),!_0x402b88)return _0x1f54a7([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x402b88[_0x1f54a7([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x4f8ea0=_0x53e3b2(_0x402b88[_0x1f54a7([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x402b88[_0x1f54a7([0x6a,0x74,0x69])])),await _0x4586c8()?_0x4ef550()?_0x416f16()?_0x1f54a7([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x41da9f()?(_0x402b88[_0x1f54a7([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x1f54a7([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x1710bf=_0xf5b496(_0x1f54a7([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x402b88[_0x1f54a7([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x1f54a7([0x74,0x72,0x69,0x61,0x6c])&&(_0x1710bf=_0xf5b496(_0x1f54a7([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x151c81()):_0x1f54a7([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x1f54a7([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x1f54a7([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x1f54a7([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x416f16(){const _0x49e31b=[_0x1f54a7([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x1f54a7([0x74,0x72,0x69,0x61,0x6c])][_0x1f54a7([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x402b88[_0x1f54a7([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x1b591c/0x3e8:0xe10*_0x43541b;return _0x402b88[_0x1f54a7([0x65,0x78,0x70])]<_0x49e31b;}function _0x4ef550(){const _0x5da7d3=_0x402b88[_0x1f54a7([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x5da7d3&&(!!_0x5da7d3[_0x1f54a7([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1f54a7([0x2a]))||!!_0x5da7d3[_0x1f54a7([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1f54a7([0x55,0x50,0x4c,0x43])));}function _0x41da9f(){const _0x502931=_0x402b88[_0x1f54a7([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x502931||0x0==_0x502931[_0x1f54a7([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x3a3443}=new URL(window[_0x1f54a7([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x502931[_0x1f54a7([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3a3443))return!0x0;const _0x308056=_0x3a3443[_0x1f54a7([0x73,0x70,0x6c,0x69,0x74])](_0x1f54a7([0x2e]));return _0x502931[_0x1f54a7([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x6ed72c=>_0x6ed72c[_0x1f54a7([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1f54a7([0x2a])))[_0x1f54a7([0x6d,0x61,0x70])](_0xb3d9e8=>_0xb3d9e8[_0x1f54a7([0x73,0x70,0x6c,0x69,0x74])](_0x1f54a7([0x2e])))[_0x1f54a7([0x73,0x6f,0x6d,0x65])](_0x573db1=>_0x308056[_0x1f54a7([0x65,0x76,0x65,0x72,0x79])]((_0xe82f56,_0x344d0c)=>_0x573db1[_0x344d0c]===_0xe82f56||_0x573db1[_0x344d0c]===_0x1f54a7([0x2a])));}function _0x151c81(){return _0x1710bf&&_0x4f8ea0?new window[(_0x1f54a7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x143f52,_0x499b10)=>{_0x1710bf[_0x1f54a7([0x74,0x68,0x65,0x6e])](_0x143f52,_0x499b10),_0x4f8ea0[_0x1f54a7([0x74,0x68,0x65,0x6e])](_0x347e40=>{_0x347e40!=_0x1f54a7([0x56,0x61,0x6c,0x69,0x64])&&_0x143f52(_0x347e40);},_0x499b10);}):_0x1710bf||_0x4f8ea0||_0x1f54a7([0x56,0x61,0x6c,0x69,0x64]);}}function _0x53e3b2(_0x39bdf9,_0x29fbfe){return new window[(_0x1f54a7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x310fe9=>{if(_0x2a12c0())return _0x310fe9(_0x1f54a7([0x56,0x61,0x6c,0x69,0x64]));_0x21edeb(),_0x3a3e3d[_0x1f54a7([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x1f54a7([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x606ed9=!0x1;const _0xfcbd7b=_0x53a8bd();function _0x5ec07e(_0x1f9afc){return!!_0x1f9afc&&(typeof _0x1f9afc===_0x1f54a7([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x1f9afc===_0x1f54a7([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x1f9afc[_0x1f54a7([0x74,0x68,0x65,0x6e])]===_0x1f54a7([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x1f9afc[_0x1f54a7([0x63,0x61,0x74,0x63,0x68])]===_0x1f54a7([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x3057cd(_0x1aec74){_0xc43596(_0x1aec74)[_0x1f54a7([0x74,0x68,0x65,0x6e])](_0x43e061=>{if(!_0x43e061||_0x43e061[_0x1f54a7([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x1f54a7([0x6f,0x6b]))return _0x1f54a7([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x4502ce(_0x1ccf07(_0xfcbd7b+_0x29fbfe))!=_0x43e061[_0x1f54a7([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x1f54a7([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x1f54a7([0x56,0x61,0x6c,0x69,0x64]);})[_0x1f54a7([0x74,0x68,0x65,0x6e])](_0x294463=>(_0x4c3ae7(),_0x294463),()=>{const _0x33f978=_0x348753();return null==_0x33f978?(_0x4c3ae7(),_0x1f54a7([0x56,0x61,0x6c,0x69,0x64])):_0x1f54a7(_0x1b591c-_0x33f978>(0x5417dcb9^_0x33235c)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x1f54a7([0x74,0x68,0x65,0x6e])](_0x310fe9)[_0x1f54a7([0x63,0x61,0x74,0x63,0x68])](()=>{_0x310fe9(_0x1f54a7([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x393169=0x702db639^_0x33235c;function _0x4c3ae7(){const _0x5a4b08=_0x1f54a7([0x6c,0x6c,0x63,0x74,0x2d])+_0x4502ce(_0x1ccf07(_0x39bdf9)),_0x5d5679=_0x7f789e(_0x4502ce(window[_0x1f54a7([0x4d,0x61,0x74,0x68])][_0x1f54a7([0x63,0x65,0x69,0x6c])](_0x1b591c/_0x393169)));window[_0x1f54a7([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x1f54a7([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x5a4b08,_0x5d5679);}function _0x348753(){const _0x5cfbec=_0x1f54a7([0x6c,0x6c,0x63,0x74,0x2d])+_0x4502ce(_0x1ccf07(_0x39bdf9)),_0x19e396=window[_0x1f54a7([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x1f54a7([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x5cfbec);return _0x19e396?window[_0x1f54a7([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x7f789e(_0x19e396),0x10)*_0x393169:null;}function _0xc43596(_0x14c058){return new window[(_0x1f54a7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4ed07b,_0x40a853)=>{_0x14c058[_0x1f54a7([0x74,0x68,0x65,0x6e])](_0x4ed07b,_0x40a853),window[_0x1f54a7([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x40a853,0x701a8c79^_0x33235c);});}}_0x3a3e3d[_0x1f54a7([0x6f,0x6e])](_0x1f54a7([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x46b5ff,_0x3ec3af)=>{if(_0x3ec3af[0x0]!=_0x39bdf9)return _0x310fe9(_0x1f54a7([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x3ec3af[0x1]={..._0x3ec3af[0x1],[_0x1f54a7([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0xfcbd7b};},{[_0x1f54a7([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x1f54a7([0x68,0x69,0x67,0x68])}),_0x3a3e3d[_0x1f54a7([0x6f,0x6e])](_0x1f54a7([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x42617a=>{_0x5ec07e(_0x42617a[_0x1f54a7([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x606ed9=!0x0,_0x3057cd(_0x42617a[_0x1f54a7([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x1f54a7([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x1f54a7([0x6c,0x6f,0x77])}),_0x327a52[_0x1f54a7([0x74,0x68,0x65,0x6e])](()=>{_0x606ed9||_0x310fe9(_0x1f54a7([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x2a12c0(){return _0x3a3e3d[_0x1f54a7([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1f54a7([0x76,0x69,0x65,0x77])][_0x1f54a7([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x1f54a7([0x61,0x75,0x74,0x6f]);}function _0x21edeb(){_0x3a3e3d[_0x1f54a7([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1f54a7([0x76,0x69,0x65,0x77])][_0x1f54a7([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x1f54a7([0x61,0x75,0x74,0x6f]);}}function _0xf5b496(_0x411390){const _0x1e0539=[new window[(_0x1f54a7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4e9450=>setTimeout(_0x4e9450,0x70126675^_0x33235c)),_0x327a52[_0x1f54a7([0x74,0x68,0x65,0x6e])](()=>new window[(_0x1f54a7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1abcc0=>{let _0x2ac1f2=0x0;_0x3a3e3d[_0x1f54a7([0x6d,0x6f,0x64,0x65,0x6c])][_0x1f54a7([0x6f,0x6e])](_0x1f54a7([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x2af8fc,_0x36570a)=>{_0x36570a[0x0][_0x1f54a7([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x2ac1f2++,_0x2ac1f2==(0x701b5941^_0x33235c)&&(_0x1abcc0(),_0x2af8fc[_0x1f54a7([0x6f,0x66,0x66])]());});}))];return window[_0x1f54a7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x1f54a7([0x72,0x61,0x63,0x65])](_0x1e0539)[_0x1f54a7([0x74,0x68,0x65,0x6e])](()=>_0x411390);}async function _0x357438(){await _0x327a52,_0x3a3e3d[_0x1f54a7([0x6d,0x6f,0x64,0x65,0x6c])][_0x1f54a7([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x27983d,_0x3a3e3d[_0x1f54a7([0x6d,0x6f,0x64,0x65,0x6c])][_0x1f54a7([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x27983d,_0x3a3e3d[_0x1f54a7([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x1f54a7([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x4d3b51(_0x5a6005){const _0x5ec810=_0x1e34e4();_0x3a3e3d[_0x5ec810]=_0x1f54a7([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x5a6005,_0x5a6005!=_0x1f54a7([0x56,0x61,0x6c,0x69,0x64])&&_0x357438();}function _0x1e34e4(){const _0x54367f=window[_0x1f54a7([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x1f54a7([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x1f54a7([0x6e,0x6f,0x77])]())[_0x1f54a7([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x1f54a7([0x2e]),'');let _0x477583=_0x1f54a7([0x64]);for(let _0x343cc3=0x0;_0x343cc3<_0x54367f[_0x1f54a7([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x343cc3+=0x2){let _0x44e457=window[_0x1f54a7([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x54367f[_0x1f54a7([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x343cc3,_0x343cc3+0x2));_0x44e457>=_0x1a201a[_0x1f54a7([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x44e457-=_0x1a201a[_0x1f54a7([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x477583+=_0x1a201a[_0x44e457];}return _0x477583;}function _0x1682c7(){const _0x2af280=_0x6fbfda[_0x1f54a7([0x73,0x70,0x6c,0x69,0x74])](_0x1f54a7([0x2e]));if(0x3!=_0x2af280[_0x1f54a7([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x2e79fe(_0x2af280[0x1]);function _0x2e79fe(_0xf46b1c){const _0x2109f2=_0x2b2975(_0xf46b1c);return _0x2109f2&&_0x25bc05()?_0x2109f2:null;function _0x25bc05(){const _0x1ddccd=_0x2109f2[_0x1f54a7([0x6a,0x74,0x69])],_0x43977e=window[_0x1f54a7([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1ddccd[_0x1f54a7([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x1ddccd[_0x1f54a7([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x214e50={..._0x2109f2,[_0x1f54a7([0x6a,0x74,0x69])]:_0x1ddccd[_0x1f54a7([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x1ddccd[_0x1f54a7([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x214e50[_0x1f54a7([0x76,0x63])],_0x1ccf07(_0x214e50)==_0x43977e;}}}async function _0x4586c8(){let _0xade7d6=!0x0;try{const _0x159b2d=_0x6fbfda[_0x1f54a7([0x73,0x70,0x6c,0x69,0x74])](_0x1f54a7([0x2e])),[_0x37d55e,_0x5b6f6e,_0x5b0b5b]=_0x159b2d;return _0x522ef3(_0x37d55e),await _0x21199b(_0x37d55e,_0x5b6f6e,_0x5b0b5b),_0xade7d6;}catch{return!0x1;}function _0x522ef3(_0x4d8ef5){const _0x2325c2=_0x2b2975(_0x4d8ef5);_0x2325c2&&_0x2325c2[_0x1f54a7([0x61,0x6c,0x67])]==_0x1f54a7([0x45,0x53,0x32,0x35,0x36])||(_0xade7d6=!0x1);}async function _0x21199b(_0x3c0315,_0x7d4901,_0x551299){const _0x21873c=window[_0x1f54a7([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x1f54a7([0x66,0x72,0x6f,0x6d])](_0x45df00(_0x551299),_0x18d675=>_0x18d675[_0x1f54a7([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x8bcaf2=new window[(_0x1f54a7([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x1f54a7([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x3c0315+_0x1f54a7([0x2e])+_0x7d4901),_0x1b31db=window[_0x1f54a7([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x1f54a7([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x1b31db)return;const _0x377ebb=await _0x1b31db[_0x1f54a7([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x1f54a7([0x6a,0x77,0x6b]),_0x4e1b0a,{[_0x1f54a7([0x6e,0x61,0x6d,0x65])]:_0x1f54a7([0x45,0x43,0x44,0x53,0x41]),[_0x1f54a7([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x1f54a7([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x1f54a7([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x1b31db[_0x1f54a7([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x1f54a7([0x6e,0x61,0x6d,0x65])]:_0x1f54a7([0x45,0x43,0x44,0x53,0x41]),[_0x1f54a7([0x68,0x61,0x73,0x68])]:{[_0x1f54a7([0x6e,0x61,0x6d,0x65])]:_0x1f54a7([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x377ebb,_0x21873c,_0x8bcaf2)||(_0xade7d6=!0x1);}}function _0x2b2975(_0x4d5991){return _0x4d5991[_0x1f54a7([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x1f54a7([0x65,0x79]))?JSON[_0x1f54a7([0x70,0x61,0x72,0x73,0x65])](_0x45df00(_0x4d5991)):null;}function _0x45df00(_0x373f9a){return window[_0x1f54a7([0x61,0x74,0x6f,0x62])](_0x373f9a[_0x1f54a7([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x1f54a7([0x2b]))[_0x1f54a7([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x1f54a7([0x2f])));}function _0x1ccf07(_0x4e9e59){let _0x5e979b=0x1505;function _0x36755d(_0x504417){for(let _0x434478=0x0;_0x434478<_0x504417[_0x1f54a7([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x434478++){const _0x4a1298=_0x504417[_0x1f54a7([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x434478);_0x5e979b=(_0x5e979b<<0x5)+_0x5e979b+_0x4a1298,_0x5e979b&=_0x5e979b;}}function _0x1adc98(_0x19e6f4){Array[_0x1f54a7([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x19e6f4)?_0x19e6f4[_0x1f54a7([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x1adc98):_0x19e6f4&&typeof _0x19e6f4==_0x1f54a7([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x1f54a7([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x19e6f4)[_0x1f54a7([0x73,0x6f,0x72,0x74])]()[_0x1f54a7([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x207196,_0x33716c])=>{_0x36755d(_0x207196),_0x1adc98(_0x33716c);}):_0x36755d(window[_0x1f54a7([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x19e6f4));}return _0x1adc98(_0x4e9e59),_0x5e979b>>>0x0;}function _0x4502ce(_0x24817c){return _0x24817c[_0x1f54a7([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x1f54a7([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x1f54a7([0x30]));}function _0x7f789e(_0x41537){return _0x41537[_0x1f54a7([0x73,0x70,0x6c,0x69,0x74])]('')[_0x1f54a7([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x1f54a7([0x6a,0x6f,0x69,0x6e])]('');}function _0x27983d(){}function _0x1f54a7(_0x3ae9f0){return _0x3ae9f0['map'](_0x4e2215=>String['fromCharCode'](_0x4e2215))['join']('');}_0x4d3b51(await _0x48ee84());}(this);}['_initSchema'](){const _0x57a625=this['editor']['model']['schema'];_0x57a625['isRegistered']('imageBlock')&&_0x57a625['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x57a625['isRegistered']('imageInline')&&_0x57a625['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x513366=this['editor'];_0x513366['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x513366['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x567d1b=>_0x567d1b['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x39ec38=_0x513366['commands']['get']('replaceImageSource');_0x39ec38&&this['listenTo'](_0x39ec38,'cleanupImage',(_0xccfe29,[_0x45e4f8,_0x222add])=>{_0x45e4f8['removeAttribute']('uploadcareImageId',_0x222add);});}['_initConfig'](){const _0x2705f8=this['editor']['config']['get']('uploadcare.uploader')||{},_0x2eed33=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x2acd36(_0x3b63c4['document'],'uc-config',{..._0x2705f8,'pubkey':_0x2eed33,'ctx-name':'uploader','sourceList':'','imgOnly':'true','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage'],'externalSourcesEmbedCss':'\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup\x20{\x20padding:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-menu\x20{\x20gap:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-footer\x20{\x20padding-top:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__separator\x20{\x20margin:\x200;\x20}\x0a\x09\x09\x09'}),this['_configElement']['iconHrefResolver']=_0x42b766=>{if('closeMax'==_0x42b766)return'#uc-icon-arrow-down';},_0x3b63c4['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x2acd36(_0x3b63c4['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader'}),_0x3b63c4['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x543864=this['editor']['commands']['get']('insertImage');_0x543864&&this['listenTo'](_0x543864,'execute',()=>{const _0x1033b4=this['editor']['model']['document']['selection']['getSelectedElement']();_0x1033b4&&_0x1033b4['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{m(this['editor'],_0x1033b4);});});const _0x53a316=this['editor']['commands']['get']('uploadcareImageReplace');_0x53a316&&this['listenTo'](_0x53a316,'execute',()=>{const _0x2defe2=this['editor']['model']['document']['selection']['getSelectedElement']();_0x2defe2&&_0x2defe2['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{m(this['editor'],_0x2defe2);});});}}class u extends _0x4ad29f{static get['requires'](){return[i,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x419894){super(_0x419894),_0x419894['config']['define']('uploadcare.uploader.sourceList',[o['Local'],o['URL']]),_0x118224['defineComponents'](_0x118224);}}class ta extends _0xfd6e23{constructor(_0x3f5f14){super(_0x3f5f14);const t=_0x3f5f14['t'],_0x2e5bc8=this['bindTemplate'],_0x224622=new _0x2c1b66();_0x224622['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':[_0x224622,{'text':_0x2e5bc8['to']('imageUploadProgress',_0x37d6dd=>t('Loading\x20image...')+'\x20('+(_0x37d6dd||0x0)+'%)')}]},{'tag':'div','attributes':{'class':['ck-uploadcare-form__skeleton']},'children':[{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'}]},{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'}]}]}]});}}class rt extends _0xfd6e23{constructor(_0x135381){super(_0x135381);const t=_0x135381['t'];this['set']('errorType',null);const _0x580386=new _0x5116cb(_0x135381);_0x580386['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x580386['withText']=!0x0,_0x580386['class']='ck-button-action',_0x580386['on']('execute',()=>{this['fire']('retry');}),_0x580386['bind']('isVisible')['to'](this,'errorType',_0x292706=>'NotFound'!==_0x292706);const _0x51c269=new at();_0x51c269['content']=et,_0x51c269['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x51b7c3=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':[_0x51c269,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x51b7c3['to']('errorType',_0x27438c=>t('NotFound'!==_0x27438c?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x580386]},{'tag':'div','attributes':{'class':['ck-uploadcare-form__skeleton']},'children':[{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'}]},{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'}]}]}]});}}class tt extends _0xfd6e23{constructor(_0x25a43f,_0x323138){super(_0x25a43f);const _0x4ba9db=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x323138,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x4ba9db['to']('imageSrc')}});}}class Z extends q{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x1fa2a0,_0x3bc338,_0x5c9bad){super(_0x1fa2a0),this['_items']=this['createCollection'](),this['_loadingView']=new ta(_0x1fa2a0),this['_errorView']=new rt(_0x1fa2a0),this['_editingView']=new tt(_0x1fa2a0,_0x5c9bad),this['_focusableView']=new _0xfd6e23(_0x1fa2a0),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x3bc338),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'],_0x39e60b=>{this['_addUploadcareImageEditorListeners'](_0x39e60b);});}),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'](_0x13397b,_0x494404){const _0x304b13='uc-cloud-image-editor',_0x5550cc=_0x13397b['querySelector'](_0x304b13);if(_0x5550cc)return _0x494404(_0x5550cc);const _0x166faf=new MutationObserver(_0x1b9d9f=>{const _0xd1d5d1=_0x1b9d9f['filter'](_0x1a6c54=>_0x1a6c54['target']===_0x13397b&&_0x1a6c54['addedNodes']['length']>0x0&&_0x1a6c54['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x304b13);_0xd1d5d1['length']&&(_0x166faf['disconnect'](),_0x494404(_0xd1d5d1[0x0]['addedNodes'][0x0]));});_0x166faf['observe'](_0x13397b,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x297f45){_0x297f45['addEventListener']('apply',_0x2198e2=>{this['fire']('apply',{'imageSrc':_0x2198e2['detail']['cdnUrl']});}),_0x297f45['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class z extends/* #__PURE__ -- @preserve */
25
+ _0x59c1bb(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x28d4e2,_0x292a0d,_0x43f367){super(),this['_editor']=_0x28d4e2,this['_dialog']=_0x292a0d,this['_imageElement']=_0x43f367,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 _0x1eeb0c=this['_imageElement'],_0x72f8b=_0x1eeb0c['getAttribute']('uploadcareImageId'),_0x585a2d=_0x1eeb0c['getAttribute']('src');if(_0x72f8b)await this['_loadImageInfo'](_0x72f8b,_0x585a2d);else{if(this['_imageCache']['has'](_0x585a2d)){const _0x55d614=this['_imageCache']['get'](_0x585a2d);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x55d614['url'],this['imageDimension']=_0x55d614['dimension'],this['imageId']=_0x55d614['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x176e7a}=this['_editor'],t=_0x176e7a['t'],_0x391212=new Z(_0x176e7a,this['imageStatus'],this['_attributes']);_0x391212['bind']('status')['to'](this,'imageStatus'),_0x391212['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x391212['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x391212['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x391212,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x2627e7,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x391212,'position':_0x32531e['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x391212['focus']();},'onHide':()=>{_0x391212['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x48d98c=>!F(_0x48d98c,_0x391212['element'])}});}['_loadImageInfo'](_0x11ebef,_0x2d3960){return C['getInfo'](_0x11ebef,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey')})['then'](_0x48af4f=>{const {width:_0x20e3d5,height:_0x4c24ff}=_0x48af4f['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x2d3960,this['imageDimension']={'width':_0x20e3d5,'height':_0x4c24ff},this['imageId']=_0x11ebef;})['catch'](_0x33c3ca=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x33c3ca['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x343f7c,_0x438ead){return this['_getImageAsFile'](_0x343f7c)['then'](_0x4ec6e5=>C['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'signal':_0x438ead['signal'],'file':_0x4ec6e5,'onProgress':_0x752208=>{_0x752208&&_0x752208['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x752208['value']));}}))['then'](_0x1c26d4=>{const {width:_0x38f75b,height:_0x58ab1f}=_0x1c26d4['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x1c26d4['cdnUrl'],this['imageDimension']={'width':_0x38f75b,'height':_0x58ab1f},this['imageId']=_0x1c26d4['uuid'],this['imageUploadProgress']=null;const _0x73fbe8=_0x343f7c['getAttribute']('src');this['_imageCache']['set'](_0x73fbe8,{'id':_0x1c26d4['uuid'],'url':_0x1c26d4['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x3c65e7=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x3c65e7['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x218369,_0x4b55aa){_0x218369['on']('apply',(_0x1bcaf5,_0x8c8a5a)=>{this['_replaceImage'](_0x4b55aa,_0x8c8a5a['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x218369['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x218369['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x2f45c0,_0x54e0d1,_0x368a12){const _0x50c245=this['_editor'],{width:_0x2f1cab,height:_0xa59f2}=A(_0x54e0d1,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x1b8864,imageSources:_0x3c892e}=E(_0x54e0d1,_0x2f1cab);_0x50c245['model']['change'](_0x3f178c=>{if('$graveyard'===_0x2f45c0['root']['rootName']){_0x50c245['execute']('insertImage',{'imageType':_0x2f45c0['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x2f45c0['getAttributes']()),'uploadcareImageId':_0x368a12,'src':_0x1b8864,'sources':_0x3c892e,'width':_0x2f1cab,'height':_0xa59f2}});const _0xf01976=_0x2f45c0['getChildren']();_0x2f45c0=_0x50c245['model']['document']['selection']['getSelectedElement']();for(const _0x52ea9c of _0xf01976)_0x3f178c['append'](_0x3f178c['cloneElement'](_0x52ea9c),_0x2f45c0);}else _0x3f178c['setSelection'](_0x2f45c0,'on'),_0x50c245['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x2f45c0['getAttributes']()),'uploadcareImageId':_0x368a12,'src':_0x1b8864,'sources':_0x3c892e,'width':_0x2f1cab,'height':_0xa59f2},_0x2f45c0);_0x3f178c['setSelection'](_0x2f45c0,'on');});}async['_getImageAsFile'](_0x286bba){const _0x546450=_0x3b63c4['window'],_0x474e10=_0x3b63c4['document']['location']['href'],_0x278c45=new _0x546450['URL'](_0x286bba['getAttribute']('src'),_0x474e10);if('data:'===_0x278c45['protocol']){const _0xd2f73=_0x278c45['href']['split'](','),_0x3c3d44=_0xd2f73[0x0]['match'](/:(.*?);/)[0x1],_0x14188d=_0x3c3d44['split']('/')[0x1],_0x2ade98=_0x546450['atob'](_0xd2f73[_0xd2f73['length']-0x1]);let _0x4d5f86=_0x2ade98['length'];const _0x4f5722=new _0x546450['Uint8Array'](_0x4d5f86);for(;_0x4d5f86--;)_0x4f5722[_0x4d5f86]=_0x2ade98['charCodeAt'](_0x4d5f86);return new _0x546450['File']([_0x4f5722],'image.'+_0x14188d,{'type':_0x3c3d44});}const _0x3eda08=_0x278c45['href']['split']('/'),_0x35e661=_0x3eda08[_0x3eda08['length']-0x1],_0x3d23e9=_0x35e661['split']('.')[0x1];return _0x546450['fetch'](_0x278c45['href'])['then'](_0x40810f=>_0x40810f['clone']()['blob']())['then'](_0x4f3ff9=>new _0x546450['File']([_0x4f3ff9],_0x35e661,{'type':'image/'+_0x3d23e9}));}}class J extends _0x2285e4{['imageEditController'];static get['requires'](){return[_0x574305];}['_isEditable'];constructor(_0x1fe4a1){super(_0x1fe4a1),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x2f8049){const _0x1f4810=V(_0x2f8049);return _0x52de07=>!(!_0x52de07||!_0x52de07['is']('element','imageBlock')&&!_0x52de07['is']('element','imageInline'))&&(!!_0x52de07['hasAttribute']('uploadcareImageId')||!!_0x52de07['hasAttribute']('src')&&_0x1f4810(_0x52de07['getAttribute']('src')));}(_0x1fe4a1['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x595dcf=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x595dcf);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x3ccd64=this['editor']['model']['document']['selection']['getSelectedElement']();_0x3ccd64&&(_0x3ccd64['is']('element','imageBlock')||_0x3ccd64['is']('element','imageInline'))&&(this['imageEditController']=new z(this['editor'],this['editor']['plugins']['get'](_0x574305),_0x3ccd64),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class O extends _0x2285e4{['refresh'](){const _0x15b611=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x15b611&&(_0x15b611['is']('element','imageBlock')||_0x15b611['is']('element','imageInline')));}['execute'](_0x3c606b){const _0x3acb98=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x1986c7=>{_0x1986c7['setAttributes'](_0x3c606b,_0x3acb98),_0x1986c7['removeAttribute']('srcset',_0x3acb98),_0x1986c7['removeAttribute']('sizes',_0x3acb98);});}}class g extends _0x4ad29f{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[i,_0x92cdb3,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x59b6d2}=this;_0x59b6d2['commands']['add']('uploadcareImageEdit',new J(_0x59b6d2)),_0x59b6d2['commands']['add']('uploadcareImageReplace',new O(_0x59b6d2));}}class j extends _0x4ad29f{['_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 _0x1e8cb7=this['editor'];_0x1e8cb7['ui']['componentFactory']['add']('uploadcareImageEdit',_0x4c35cc=>{const _0x2a5710=_0x1e8cb7['commands']['get']('uploadcareImageEdit'),_0x57fe4d=new _0x5116cb(_0x4c35cc),t=_0x4c35cc['t'];return _0x57fe4d['set']({'icon':_0x2627e7,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x57fe4d['bind']('isEnabled')['to'](_0x2a5710),_0x57fe4d['bind']('isOn')['to'](_0x2a5710,'isActive'),this['listenTo'](_0x57fe4d,'execute',()=>{_0x1e8cb7['execute']('uploadcareImageEdit'),_0x1e8cb7['editing']['view']['focus']();}),_0x57fe4d;}),this['_initConfig']();}['_initConfig'](){const _0x583da7=_0x2acd36(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x583da7),this['listenTo'](this['editor'],'destroy',()=>{_0x583da7['remove']();});}}class P extends _0x4ad29f{static get['pluginName'](){return'UploadcareImageEdit';}static get['requires'](){return[g,j];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{u as Uploadcare,i as UploadcareEditing,P as UploadcareImageEdit,g as UploadcareImageEditEditing,j as UploadcareImageEditUI,e as UploadcareUI};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ckeditor/ckeditor5-uploadcare",
3
- "version": "0.0.0-nightly-20250530.0",
3
+ "version": "0.0.0-nightly-20250601.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-20250530.0",
27
- "@ckeditor/ckeditor5-icons": "0.0.0-nightly-20250530.0",
28
- "@ckeditor/ckeditor5-image": "0.0.0-nightly-20250530.0",
29
- "@ckeditor/ckeditor5-theme-lark": "0.0.0-nightly-20250530.0",
30
- "@ckeditor/ckeditor5-ui": "0.0.0-nightly-20250530.0",
31
- "@ckeditor/ckeditor5-upload": "0.0.0-nightly-20250530.0",
32
- "@ckeditor/ckeditor5-utils": "0.0.0-nightly-20250530.0",
33
- "ckeditor5": "0.0.0-nightly-20250530.0",
26
+ "@ckeditor/ckeditor5-core": "0.0.0-nightly-20250601.0",
27
+ "@ckeditor/ckeditor5-icons": "0.0.0-nightly-20250601.0",
28
+ "@ckeditor/ckeditor5-image": "0.0.0-nightly-20250601.0",
29
+ "@ckeditor/ckeditor5-theme-lark": "0.0.0-nightly-20250601.0",
30
+ "@ckeditor/ckeditor5-ui": "0.0.0-nightly-20250601.0",
31
+ "@ckeditor/ckeditor5-upload": "0.0.0-nightly-20250601.0",
32
+ "@ckeditor/ckeditor5-utils": "0.0.0-nightly-20250601.0",
33
+ "ckeditor5": "0.0.0-nightly-20250601.0",
34
34
  "@uploadcare/file-uploader": "1.12.0",
35
35
  "@uploadcare/upload-client": "6.14.1"
36
36
  },
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x4cdb76=_0x5dca;(function(_0x3fe86e,_0x46f7b5){const _0xd88711=_0x5dca,_0x1d7c5a=_0x3fe86e();while(!![]){try{const _0x37d152=-parseInt(_0xd88711(0x17a))/0x1*(-parseInt(_0xd88711(0x170))/0x2)+parseInt(_0xd88711(0x1ad))/0x3+parseInt(_0xd88711(0x16e))/0x4+parseInt(_0xd88711(0x16d))/0x5+parseInt(_0xd88711(0x19b))/0x6+-parseInt(_0xd88711(0x15c))/0x7+parseInt(_0xd88711(0x16f))/0x8*(parseInt(_0xd88711(0x160))/0x9);if(_0x37d152===_0x46f7b5)break;else _0x1d7c5a['push'](_0x1d7c5a['shift']());}catch(_0x3bb086){_0x1d7c5a['push'](_0x1d7c5a['shift']());}}}(_0x4ed3,0x52928));import{Plugin as _0x2bb3d9}from'ckeditor5/src/core.js';import{Dialog as _0xf7dc57}from'ckeditor5/src/ui.js';function _0x4ed3(){const _0x10e5cf=['configElement','join','1gwrPZg','isPremiumPlugin','listenTo','iconHrefResolver','fromCharCode','once','get','querySelector','PictureEditing','uc-config','commands','execute','destroy','insertImage','isOfficialPlugin','cleanupImage','isRegistered','_initConfig','requires','href','imageBlock','contentLanguage','closeMax','document','_initImageProcessingIndicator','input[uploadcare-file-input]','_configElement','upcast','init','data-uc-image-id','elementToAttribute','#uc-icon-arrow-down','pluginName','19704QeKVnS','view','uploadcare','editor','appendChild','attributeToAttribute','locale','config','for','_ctxElement','_initSchema','uploadcare.uploader','body','afterInit','downcast','removeAttribute','uploadcareImageId','uploadcare.pubkey','181821BpCNEo','replaceImageSource','4506117mokYic','\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','remove','schema','153rYbLEt','extend','render','selection','true','getAttribute','uploadcareImageReplace','editing','uploader','_initConversion','uc-upload-ctx-provider','_initCtx','getSelectedElement','1024060fWHiIP','1896164ihGzfz','97992tyxfTq','61940esyVxy','ctxElement','conversion','UploadcareEditing','imageInline','model','map','add'];_0x4ed3=function(){return _0x10e5cf;};return _0x4ed3();}function _0x5dca(_0x3c937d,_0xfc7abc){const _0x4ed3c1=_0x4ed3();return _0x5dca=function(_0x5dca47,_0x12f31a){_0x5dca47=_0x5dca47-0x15b;let _0x2f8d02=_0x4ed3c1[_0x5dca47];return _0x2f8d02;},_0x5dca(_0x3c937d,_0xfc7abc);}import{createElement as _0xd47099,global as _0x3b3833,uid as _0x1e5115}from'ckeditor5/src/utils.js';import _0x411d11 from'./uploadcarecommand.js';import _0xc6760c from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0x598b5a}from'./utils/editingutils.js';export default class i extends _0x2bb3d9{[_0x4cdb76(0x194)]=null;[_0x4cdb76(0x1a4)]=null;static get[_0x4cdb76(0x19a)](){const _0x23696b=_0x4cdb76;return _0x23696b(0x173);}static get[_0x4cdb76(0x18c)](){const _0x3fe823=_0x4cdb76;return[_0x3fe823(0x182),_0xc6760c,_0xf7dc57];}static get[_0x4cdb76(0x188)](){return!0x0;}static get[_0x4cdb76(0x17b)](){return!0x0;}get[_0x4cdb76(0x178)](){const _0x2a9b67=_0x4cdb76;return this[_0x2a9b67(0x194)];}get[_0x4cdb76(0x171)](){const _0x1d1aa5=_0x4cdb76;return this[_0x1d1aa5(0x1a4)];}[_0x4cdb76(0x196)](){const _0x240fad=_0x4cdb76,_0x2a08c8=this[_0x240fad(0x19e)];_0x2a08c8[_0x240fad(0x184)][_0x240fad(0x177)](_0x240fad(0x19d),new _0x411d11(_0x2a08c8));}[_0x4cdb76(0x1a8)](){const _0x4a46af=_0x4cdb76;this[_0x4a46af(0x1a5)](),this[_0x4a46af(0x169)](),this[_0x4a46af(0x18b)](),this[_0x4a46af(0x16b)](),this[_0x4a46af(0x192)](),this[_0x4a46af(0x17c)](this[_0x4a46af(0x19e)],_0x4a46af(0x186),()=>{const _0x48043a=_0x4a46af;this[_0x48043a(0x194)]&&(this[_0x48043a(0x194)][_0x48043a(0x15e)](),this[_0x48043a(0x194)]=null),this[_0x48043a(0x1a4)]&&(this[_0x48043a(0x1a4)][_0x48043a(0x15e)](),this[_0x48043a(0x1a4)]=null);const _0x4d29f8=_0x3b3833[_0x48043a(0x191)][_0x48043a(0x181)](_0x48043a(0x193));_0x4d29f8&&_0x4d29f8[_0x48043a(0x15e)]();}),async function(_0x52f1d6){const _0x3fbb02=_0x3096af([0x49,0x4d,0x32,0x75,0x79,0x34,0x39,0x76,0x4a,0x6c,0x67,0x66,0x43,0x56,0x6e,0x46,0x5a,0x37,0x44,0x77,0x47,0x38,0x52,0x65,0x48,0x4f,0x42,0x6a,0x33,0x70,0x31,0x54,0x4b,0x4c,0x63,0x72,0x51,0x50,0x4e,0x62,0x57,0x6b,0x55,0x59,0x36,0x6d,0x68,0x71,0x41,0x45,0x69,0x53,0x30,0x78,0x61,0x7a,0x74,0x35,0x64,0x6f,0x73,0x58]),_0x120857=0x280b32b3,_0x1f88cd=0x280c5be3^_0x120857,_0x517295=window[_0x3096af([0x44,0x61,0x74,0x65])][_0x3096af([0x6e,0x6f,0x77])](),_0xbba3cb=_0x52f1d6[_0x3096af([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x5525f4=new window[(_0x3096af([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3bfbe9=>{_0xbba3cb[_0x3096af([0x6f,0x6e,0x63,0x65])](_0x3096af([0x72,0x65,0x61,0x64,0x79]),_0x3bfbe9);}),_0x344c02={[_0x3096af([0x6b,0x74,0x79])]:_0x3096af([0x45,0x43]),[_0x3096af([0x75,0x73,0x65])]:_0x3096af([0x73,0x69,0x67]),[_0x3096af([0x63,0x72,0x76])]:_0x3096af([0x50,0x2d,0x32,0x35,0x36]),[_0x3096af([0x78])]:_0x3096af([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]),[_0x3096af([0x79])]:_0x3096af([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]),[_0x3096af([0x61,0x6c,0x67])]:_0x3096af([0x45,0x53,0x32,0x35,0x36])},_0x415b1a=_0xbba3cb[_0x3096af([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x3096af([0x67,0x65,0x74])](_0x3096af([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x4a50ab(){let _0x510cb5,_0x4ae13f=null,_0x1a916e=null;try{if(_0x415b1a==_0x3096af([0x47,0x50,0x4c]))return _0x3096af([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x510cb5=_0x2a6676(),!_0x510cb5)return _0x3096af([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x510cb5[_0x3096af([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x1a916e=_0x19c2c4(_0x510cb5[_0x3096af([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x510cb5[_0x3096af([0x6a,0x74,0x69])])),await _0x4ff920()?_0x1c8008()?_0x344fe4()?_0x3096af([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x5e51ab()?(_0x510cb5[_0x3096af([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3096af([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x4ae13f=_0x25d2a7(_0x3096af([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x510cb5[_0x3096af([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3096af([0x74,0x72,0x69,0x61,0x6c])&&(_0x4ae13f=_0x25d2a7(_0x3096af([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0xee789a()):_0x3096af([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x3096af([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x3096af([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x3096af([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x344fe4(){const _0x2d7c8c=[_0x3096af([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x3096af([0x74,0x72,0x69,0x61,0x6c])][_0x3096af([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x510cb5[_0x3096af([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x517295/0x3e8:0xe10*_0x1f88cd;return _0x510cb5[_0x3096af([0x65,0x78,0x70])]<_0x2d7c8c;}function _0x1c8008(){const _0x3c7989=_0x510cb5[_0x3096af([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x3c7989&&(!!_0x3c7989[_0x3096af([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3096af([0x2a]))||!!_0x3c7989[_0x3096af([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3096af([0x55,0x50,0x4c,0x43])));}function _0x5e51ab(){const _0x1ff3ce=_0x5dca,_0x539d9f=_0x510cb5[_0x3096af([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x539d9f||0x0==_0x539d9f[_0x3096af([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x276dd1}=new URL(window[_0x3096af([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x1ff3ce(0x18d)]);if(_0x539d9f[_0x3096af([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x276dd1))return!0x0;const _0x537ea4=_0x276dd1[_0x3096af([0x73,0x70,0x6c,0x69,0x74])](_0x3096af([0x2e]));return _0x539d9f[_0x3096af([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x48102b=>_0x48102b[_0x3096af([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3096af([0x2a])))[_0x3096af([0x6d,0x61,0x70])](_0x46a00f=>_0x46a00f[_0x3096af([0x73,0x70,0x6c,0x69,0x74])](_0x3096af([0x2e])))[_0x3096af([0x73,0x6f,0x6d,0x65])](_0x398f94=>_0x537ea4[_0x3096af([0x65,0x76,0x65,0x72,0x79])]((_0x424cb5,_0x4d66f9)=>_0x398f94[_0x4d66f9]===_0x424cb5||_0x398f94[_0x4d66f9]===_0x3096af([0x2a])));}function _0xee789a(){return _0x4ae13f&&_0x1a916e?new window[(_0x3096af([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x316abd,_0x2ee036)=>{_0x4ae13f[_0x3096af([0x74,0x68,0x65,0x6e])](_0x316abd,_0x2ee036),_0x1a916e[_0x3096af([0x74,0x68,0x65,0x6e])](_0x3dfe7f=>{_0x3dfe7f!=_0x3096af([0x56,0x61,0x6c,0x69,0x64])&&_0x316abd(_0x3dfe7f);},_0x2ee036);}):_0x4ae13f||_0x1a916e||_0x3096af([0x56,0x61,0x6c,0x69,0x64]);}}function _0x19c2c4(_0x5ed3a5,_0x41fcd4){return new window[(_0x3096af([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3dbfb0=>{if(_0x1f2886())return _0x3dbfb0(_0x3096af([0x56,0x61,0x6c,0x69,0x64]));_0x511006(),_0xbba3cb[_0x3096af([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x3096af([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x9ff23b=!0x1;const _0x4626a7=_0x1e5115();function _0x4f3f83(_0x18840f){return!!_0x18840f&&(typeof _0x18840f===_0x3096af([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x18840f===_0x3096af([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x18840f[_0x3096af([0x74,0x68,0x65,0x6e])]===_0x3096af([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x18840f[_0x3096af([0x63,0x61,0x74,0x63,0x68])]===_0x3096af([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x37c4eb(_0x2996e7){_0x115e6d(_0x2996e7)[_0x3096af([0x74,0x68,0x65,0x6e])](_0x15853d=>{if(!_0x15853d||_0x15853d[_0x3096af([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x3096af([0x6f,0x6b]))return _0x3096af([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x3cbeee(_0x1f90d6(_0x4626a7+_0x41fcd4))!=_0x15853d[_0x3096af([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x3096af([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x3096af([0x56,0x61,0x6c,0x69,0x64]);})[_0x3096af([0x74,0x68,0x65,0x6e])](_0xf8727c=>(_0x58e2c5(),_0xf8727c),()=>{const _0x154a97=_0x3e9e30();return null==_0x154a97?(_0x58e2c5(),_0x3096af([0x56,0x61,0x6c,0x69,0x64])):_0x3096af(_0x517295-_0x154a97>(0xc07b6b3^_0x120857)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x3096af([0x74,0x68,0x65,0x6e])](_0x3dbfb0)[_0x3096af([0x63,0x61,0x74,0x63,0x68])](()=>{_0x3dbfb0(_0x3096af([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x7775f=0x283ddc33^_0x120857;function _0x58e2c5(){const _0x156fc1=_0x3096af([0x6c,0x6c,0x63,0x74,0x2d])+_0x3cbeee(_0x1f90d6(_0x5ed3a5)),_0x3c5ce1=_0x52186a(_0x3cbeee(window[_0x3096af([0x4d,0x61,0x74,0x68])][_0x3096af([0x63,0x65,0x69,0x6c])](_0x517295/_0x7775f)));window[_0x3096af([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3096af([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x156fc1,_0x3c5ce1);}function _0x3e9e30(){const _0xce1684=_0x3096af([0x6c,0x6c,0x63,0x74,0x2d])+_0x3cbeee(_0x1f90d6(_0x5ed3a5)),_0x14a34b=window[_0x3096af([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3096af([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0xce1684);return _0x14a34b?window[_0x3096af([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x52186a(_0x14a34b),0x10)*_0x7775f:null;}function _0x115e6d(_0x169fa8){return new window[(_0x3096af([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4b6264,_0x37bfec)=>{_0x169fa8[_0x3096af([0x74,0x68,0x65,0x6e])](_0x4b6264,_0x37bfec),window[_0x3096af([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x37bfec,0x280ae673^_0x120857);});}}_0xbba3cb[_0x3096af([0x6f,0x6e])](_0x3096af([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0xcf9dfd,_0x3cd677)=>{if(_0x3cd677[0x0]!=_0x5ed3a5)return _0x3dbfb0(_0x3096af([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x3cd677[0x1]={..._0x3cd677[0x1],[_0x3096af([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x4626a7};},{[_0x3096af([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3096af([0x68,0x69,0x67,0x68])}),_0xbba3cb[_0x3096af([0x6f,0x6e])](_0x3096af([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x284e3e=>{_0x4f3f83(_0x284e3e[_0x3096af([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x9ff23b=!0x0,_0x37c4eb(_0x284e3e[_0x3096af([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x3096af([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3096af([0x6c,0x6f,0x77])}),_0x5525f4[_0x3096af([0x74,0x68,0x65,0x6e])](()=>{_0x9ff23b||_0x3dbfb0(_0x3096af([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x1f2886(){return _0xbba3cb[_0x3096af([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3096af([0x76,0x69,0x65,0x77])][_0x3096af([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x3096af([0x61,0x75,0x74,0x6f]);}function _0x511006(){_0xbba3cb[_0x3096af([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3096af([0x76,0x69,0x65,0x77])][_0x3096af([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x3096af([0x61,0x75,0x74,0x6f]);}}function _0x25d2a7(_0x1d4bf3){const _0x24afbf=[new window[(_0x3096af([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1d621b=>setTimeout(_0x1d621b,0x28020c7f^_0x120857)),_0x5525f4[_0x3096af([0x74,0x68,0x65,0x6e])](()=>new window[(_0x3096af([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5f3aae=>{let _0x6ccaa8=0x0;_0xbba3cb[_0x3096af([0x6d,0x6f,0x64,0x65,0x6c])][_0x3096af([0x6f,0x6e])](_0x3096af([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0xa7c8ba,_0x1397e8)=>{_0x1397e8[0x0][_0x3096af([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x6ccaa8++,_0x6ccaa8==(0x280b334b^_0x120857)&&(_0x5f3aae(),_0xa7c8ba[_0x3096af([0x6f,0x66,0x66])]());});}))];return window[_0x3096af([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x3096af([0x72,0x61,0x63,0x65])](_0x24afbf)[_0x3096af([0x74,0x68,0x65,0x6e])](()=>_0x1d4bf3);}async function _0x4b00bd(){await _0x5525f4,_0xbba3cb[_0x3096af([0x6d,0x6f,0x64,0x65,0x6c])][_0x3096af([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x4ea083,_0xbba3cb[_0x3096af([0x6d,0x6f,0x64,0x65,0x6c])][_0x3096af([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x4ea083,_0xbba3cb[_0x3096af([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x3096af([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x22b569(_0x45f3b4){const _0x1898a4=_0x3e9313();_0xbba3cb[_0x1898a4]=_0x3096af([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x45f3b4,_0x45f3b4!=_0x3096af([0x56,0x61,0x6c,0x69,0x64])&&_0x4b00bd();}function _0x3e9313(){const _0x26d0ac=window[_0x3096af([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x3096af([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x3096af([0x6e,0x6f,0x77])]())[_0x3096af([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x3096af([0x2e]),'');let _0x24af52=_0x3096af([0x49]);for(let _0x214538=0x0;_0x214538<_0x26d0ac[_0x3096af([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x214538+=0x2){let _0xf32a5d=window[_0x3096af([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x26d0ac[_0x3096af([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x214538,_0x214538+0x2));_0xf32a5d>=_0x3fbb02[_0x3096af([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0xf32a5d-=_0x3fbb02[_0x3096af([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x24af52+=_0x3fbb02[_0xf32a5d];}return _0x24af52;}function _0x2a6676(){const _0x185d22=_0x415b1a[_0x3096af([0x73,0x70,0x6c,0x69,0x74])](_0x3096af([0x2e]));if(0x3!=_0x185d22[_0x3096af([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x1973f6(_0x185d22[0x1]);function _0x1973f6(_0x4fa86f){const _0x1f8159=_0x4079fb(_0x4fa86f);return _0x1f8159&&_0x15ad90()?_0x1f8159:null;function _0x15ad90(){const _0x181e62=_0x1f8159[_0x3096af([0x6a,0x74,0x69])],_0x2e39cf=window[_0x3096af([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x181e62[_0x3096af([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x181e62[_0x3096af([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x4c174c={..._0x1f8159,[_0x3096af([0x6a,0x74,0x69])]:_0x181e62[_0x3096af([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x181e62[_0x3096af([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x4c174c[_0x3096af([0x76,0x63])],_0x1f90d6(_0x4c174c)==_0x2e39cf;}}}async function _0x4ff920(){let _0x3fe93c=!0x0;try{const _0x35fd83=_0x415b1a[_0x3096af([0x73,0x70,0x6c,0x69,0x74])](_0x3096af([0x2e])),[_0x17732d,_0x30cb4a,_0x5ba467]=_0x35fd83;return _0x58cc96(_0x17732d),await _0x26b0ff(_0x17732d,_0x30cb4a,_0x5ba467),_0x3fe93c;}catch{return!0x1;}function _0x58cc96(_0x4ffb58){const _0x3b3e46=_0x4079fb(_0x4ffb58);_0x3b3e46&&_0x3b3e46[_0x3096af([0x61,0x6c,0x67])]==_0x3096af([0x45,0x53,0x32,0x35,0x36])||(_0x3fe93c=!0x1);}async function _0x26b0ff(_0x144279,_0x41c260,_0x2dde72){const _0x400eea=window[_0x3096af([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x3096af([0x66,0x72,0x6f,0x6d])](_0xd9005b(_0x2dde72),_0x25e0b5=>_0x25e0b5[_0x3096af([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x56aae0=new window[(_0x3096af([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x3096af([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x144279+_0x3096af([0x2e])+_0x41c260),_0x5ca590=window[_0x3096af([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x3096af([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x5ca590)return;const _0x45498a=await _0x5ca590[_0x3096af([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x3096af([0x6a,0x77,0x6b]),_0x344c02,{[_0x3096af([0x6e,0x61,0x6d,0x65])]:_0x3096af([0x45,0x43,0x44,0x53,0x41]),[_0x3096af([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x3096af([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x3096af([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x5ca590[_0x3096af([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x3096af([0x6e,0x61,0x6d,0x65])]:_0x3096af([0x45,0x43,0x44,0x53,0x41]),[_0x3096af([0x68,0x61,0x73,0x68])]:{[_0x3096af([0x6e,0x61,0x6d,0x65])]:_0x3096af([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x45498a,_0x400eea,_0x56aae0)||(_0x3fe93c=!0x1);}}function _0x4079fb(_0x534e7e){return _0x534e7e[_0x3096af([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x3096af([0x65,0x79]))?JSON[_0x3096af([0x70,0x61,0x72,0x73,0x65])](_0xd9005b(_0x534e7e)):null;}function _0xd9005b(_0x4bd956){return window[_0x3096af([0x61,0x74,0x6f,0x62])](_0x4bd956[_0x3096af([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x3096af([0x2b]))[_0x3096af([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x3096af([0x2f])));}function _0x1f90d6(_0x45129a){let _0x19389e=0x1505;function _0x363c9a(_0x456963){for(let _0x5b9755=0x0;_0x5b9755<_0x456963[_0x3096af([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x5b9755++){const _0x364472=_0x456963[_0x3096af([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x5b9755);_0x19389e=(_0x19389e<<0x5)+_0x19389e+_0x364472,_0x19389e&=_0x19389e;}}function _0x51ef6e(_0x31a588){Array[_0x3096af([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x31a588)?_0x31a588[_0x3096af([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x51ef6e):_0x31a588&&typeof _0x31a588==_0x3096af([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x3096af([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x31a588)[_0x3096af([0x73,0x6f,0x72,0x74])]()[_0x3096af([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x7ea358,_0x2fd75e])=>{_0x363c9a(_0x7ea358),_0x51ef6e(_0x2fd75e);}):_0x363c9a(window[_0x3096af([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x31a588));}return _0x51ef6e(_0x45129a),_0x19389e>>>0x0;}function _0x3cbeee(_0x40e9fc){return _0x40e9fc[_0x3096af([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x3096af([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x3096af([0x30]));}function _0x52186a(_0x50cf2c){return _0x50cf2c[_0x3096af([0x73,0x70,0x6c,0x69,0x74])]('')[_0x3096af([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x3096af([0x6a,0x6f,0x69,0x6e])]('');}function _0x4ea083(){}function _0x3096af(_0x432ca6){const _0x14bf28=_0x5dca;return _0x432ca6[_0x14bf28(0x176)](_0x2254dd=>String[_0x14bf28(0x17e)](_0x2254dd))[_0x14bf28(0x179)]('');}_0x22b569(await _0x4a50ab());}(this);}[_0x4cdb76(0x1a5)](){const _0x32b205=_0x4cdb76,_0x371d07=this[_0x32b205(0x19e)][_0x32b205(0x175)][_0x32b205(0x15f)];_0x371d07[_0x32b205(0x18a)](_0x32b205(0x18e))&&_0x371d07[_0x32b205(0x161)](_0x32b205(0x18e),{'allowAttributes':[_0x32b205(0x1ab)]}),_0x371d07[_0x32b205(0x18a)](_0x32b205(0x174))&&_0x371d07[_0x32b205(0x161)](_0x32b205(0x174),{'allowAttributes':[_0x32b205(0x1ab)]});}[_0x4cdb76(0x169)](){const _0x289e3d=_0x4cdb76,_0x2d6455=this[_0x289e3d(0x19e)];_0x2d6455[_0x289e3d(0x172)][_0x289e3d(0x1a3)](_0x289e3d(0x1a9))[_0x289e3d(0x1a0)]({'model':_0x289e3d(0x1ab),'view':_0x289e3d(0x197)}),_0x2d6455[_0x289e3d(0x172)][_0x289e3d(0x1a3)](_0x289e3d(0x195))[_0x289e3d(0x198)]({'model':{'key':_0x289e3d(0x1ab),'value':_0x231372=>_0x231372[_0x289e3d(0x165)](_0x289e3d(0x197))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x356740=_0x2d6455[_0x289e3d(0x184)][_0x289e3d(0x180)](_0x289e3d(0x15b));_0x356740&&this[_0x289e3d(0x17c)](_0x356740,_0x289e3d(0x189),(_0x16ac4e,[_0x34a7b2,_0x29aac6])=>{const _0x1e5946=_0x289e3d;_0x34a7b2[_0x1e5946(0x1aa)](_0x1e5946(0x1ab),_0x29aac6);});}[_0x4cdb76(0x18b)](){const _0x32b3df=_0x4cdb76,_0x43e7ed=this[_0x32b3df(0x19e)][_0x32b3df(0x1a2)][_0x32b3df(0x180)](_0x32b3df(0x1a6))||{},_0x4dd121=this[_0x32b3df(0x19e)][_0x32b3df(0x1a2)][_0x32b3df(0x180)](_0x32b3df(0x1ac))||'';this[_0x32b3df(0x194)]=_0xd47099(_0x3b3833[_0x32b3df(0x191)],_0x32b3df(0x183),{..._0x43e7ed,'pubkey':_0x4dd121,'ctx-name':_0x32b3df(0x168),'sourceList':'','imgOnly':_0x32b3df(0x164),'removeCopyright':_0x32b3df(0x164),'localeName':this[_0x32b3df(0x19e)][_0x32b3df(0x1a1)][_0x32b3df(0x18f)],'externalSourcesEmbedCss':_0x32b3df(0x15d)}),this[_0x32b3df(0x194)][_0x32b3df(0x17d)]=_0x29b1c0=>{const _0x422d26=_0x32b3df;if(_0x422d26(0x190)==_0x29b1c0)return _0x422d26(0x199);},_0x3b3833[_0x32b3df(0x191)][_0x32b3df(0x1a7)][_0x32b3df(0x19f)](this[_0x32b3df(0x194)]);}[_0x4cdb76(0x16b)](){const _0x1cde97=_0x4cdb76;this[_0x1cde97(0x1a4)]=_0xd47099(_0x3b3833[_0x1cde97(0x191)],_0x1cde97(0x16a),{'ctx-name':_0x1cde97(0x168)}),_0x3b3833[_0x1cde97(0x191)][_0x1cde97(0x1a7)][_0x1cde97(0x19f)](this[_0x1cde97(0x1a4)]);}[_0x4cdb76(0x192)](){const _0x12584=_0x4cdb76,_0x44bf58=this[_0x12584(0x19e)][_0x12584(0x184)][_0x12584(0x180)](_0x12584(0x187));_0x44bf58&&this[_0x12584(0x17c)](_0x44bf58,_0x12584(0x185),()=>{const _0x12097e=_0x12584,_0x9dbf06=this[_0x12097e(0x19e)][_0x12097e(0x175)][_0x12097e(0x191)][_0x12097e(0x163)][_0x12097e(0x16c)]();_0x9dbf06&&_0x9dbf06[_0x12097e(0x165)](_0x12097e(0x1ab))&&this[_0x12097e(0x19e)][_0x12097e(0x167)][_0x12097e(0x19c)][_0x12097e(0x17f)](_0x12097e(0x162),()=>{const _0x73c9d2=_0x12097e;_0x598b5a(this[_0x73c9d2(0x19e)],_0x9dbf06);});});const _0xc73827=this[_0x12584(0x19e)][_0x12584(0x184)][_0x12584(0x180)](_0x12584(0x166));_0xc73827&&this[_0x12584(0x17c)](_0xc73827,_0x12584(0x185),()=>{const _0x308c4d=_0x12584,_0x3dd756=this[_0x308c4d(0x19e)][_0x308c4d(0x175)][_0x308c4d(0x191)][_0x308c4d(0x163)][_0x308c4d(0x16c)]();_0x3dd756&&_0x3dd756[_0x308c4d(0x165)](_0x308c4d(0x1ab))&&this[_0x308c4d(0x19e)][_0x308c4d(0x167)][_0x308c4d(0x19c)][_0x308c4d(0x17f)](_0x308c4d(0x162),()=>{const _0x1539c3=_0x308c4d;_0x598b5a(this[_0x1539c3(0x19e)],_0x3dd756);});});}}
23
+ const _0x1b8909=_0xb5d9;(function(_0x597aa6,_0x1c18a){const _0x5d1bc5=_0xb5d9,_0x393f02=_0x597aa6();while(!![]){try{const _0x207c5d=-parseInt(_0x5d1bc5(0xa1))/0x1*(-parseInt(_0x5d1bc5(0x94))/0x2)+-parseInt(_0x5d1bc5(0x8d))/0x3*(parseInt(_0x5d1bc5(0xaf))/0x4)+parseInt(_0x5d1bc5(0x79))/0x5+-parseInt(_0x5d1bc5(0x9d))/0x6+-parseInt(_0x5d1bc5(0xc0))/0x7+-parseInt(_0x5d1bc5(0x86))/0x8*(-parseInt(_0x5d1bc5(0x96))/0x9)+parseInt(_0x5d1bc5(0x7f))/0xa*(parseInt(_0x5d1bc5(0xba))/0xb);if(_0x207c5d===_0x1c18a)break;else _0x393f02['push'](_0x393f02['shift']());}catch(_0x46f337){_0x393f02['push'](_0x393f02['shift']());}}}(_0x4628,0xdbb12));import{Plugin as _0x189b64}from'ckeditor5/src/core.js';function _0xb5d9(_0x24d2b2,_0x4771e0){const _0x462812=_0x4628();return _0xb5d9=function(_0xb5d976,_0x9c5316){_0xb5d976=_0xb5d976-0x79;let _0x18ad3e=_0x462812[_0xb5d976];return _0x18ad3e;},_0xb5d9(_0x24d2b2,_0x4771e0);}import{Dialog as _0x4b4a79}from'ckeditor5/src/ui.js';import{createElement as _0x51f47d,global as _0x290919,uid as _0x346028}from'ckeditor5/src/utils.js';function _0x4628(){const _0x4ca23a=['isOfficialPlugin','document','join','uploadcareImageReplace','8773950kHeLcS','selection','href','execute','1065017BweeXR','render','locale','extend','view','map','\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup\x20{\x20padding:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-menu\x20{\x20gap:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-footer\x20{\x20padding-top:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__separator\x20{\x20margin:\x200;\x20}\x0a\x09\x09\x09','listenTo','isPremiumPlugin','_initConversion','downcast','_initConfig','fromCharCode','appendChild','148zhOeWa','upcast','_initCtx','input[uploadcare-file-input]','imageBlock','afterInit','cleanupImage','querySelector','removeAttribute','uploadcare.pubkey','editor','827365ELsgCh','destroy','UploadcareEditing','_initSchema','uc-config','body','6821024BsWMTM','data-uc-image-id','editing','replaceImageSource','true','configElement','remove','_configElement','ctxElement','uploadcare.uploader','uc-upload-ctx-provider','_initImageProcessingIndicator','pluginName','schema','2739155MmxKJT','once','for','insertImage','get','imageInline','170SIVpHf','attributeToAttribute','init','commands','#uc-icon-arrow-down','_ctxElement','PictureEditing','7525816tsilVB','getSelectedElement','contentLanguage','uploadcareImageId','uploadcare','closeMax','config','40185LedMxm','model','conversion','iconHrefResolver','uploader','elementToAttribute','add','2TbwuAq','isRegistered','9OoZTLk','requires','getAttribute'];_0x4628=function(){return _0x4ca23a;};return _0x4628();}import _0x2b1166 from'./uploadcarecommand.js';import _0x3e9041 from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0x1d6922}from'./utils/editingutils.js';export default class i extends _0x189b64{[_0x1b8909(0xc7)]=null;[_0x1b8909(0x84)]=null;static get[_0x1b8909(0xcc)](){const _0x5e890a=_0x1b8909;return _0x5e890a(0xbc);}static get[_0x1b8909(0x97)](){const _0x364c6f=_0x1b8909;return[_0x364c6f(0x85),_0x3e9041,_0x4b4a79];}static get[_0x1b8909(0x99)](){return!0x0;}static get[_0x1b8909(0xa9)](){return!0x0;}get[_0x1b8909(0xc5)](){const _0x2f1b6c=_0x1b8909;return this[_0x2f1b6c(0xc7)];}get[_0x1b8909(0xc8)](){const _0x2de3cf=_0x1b8909;return this[_0x2de3cf(0x84)];}[_0x1b8909(0x81)](){const _0x5cded9=_0x1b8909,_0xd9dc9=this[_0x5cded9(0xb9)];_0xd9dc9[_0x5cded9(0x82)][_0x5cded9(0x93)](_0x5cded9(0x8a),new _0x2b1166(_0xd9dc9));}[_0x1b8909(0xb4)](){const _0x1d3d22=_0x1b8909;this[_0x1d3d22(0xbd)](),this[_0x1d3d22(0xaa)](),this[_0x1d3d22(0xac)](),this[_0x1d3d22(0xb1)](),this[_0x1d3d22(0xcb)](),this[_0x1d3d22(0xa8)](this[_0x1d3d22(0xb9)],_0x1d3d22(0xbb),()=>{const _0x572a50=_0x1d3d22;this[_0x572a50(0xc7)]&&(this[_0x572a50(0xc7)][_0x572a50(0xc6)](),this[_0x572a50(0xc7)]=null),this[_0x572a50(0x84)]&&(this[_0x572a50(0x84)][_0x572a50(0xc6)](),this[_0x572a50(0x84)]=null);const _0x3e86db=_0x290919[_0x572a50(0x9a)][_0x572a50(0xb6)](_0x572a50(0xb2));_0x3e86db&&_0x3e86db[_0x572a50(0xc6)]();}),async function(_0x512d04){const _0x33f161=_0x2cef1f([0x64,0x31,0x4a,0x53,0x49,0x51,0x4e,0x33,0x66,0x6e,0x6d,0x4b,0x4d,0x48,0x30,0x63,0x78,0x5a,0x6a,0x74,0x36,0x79,0x65,0x67,0x32,0x34,0x42,0x68,0x7a,0x39,0x50,0x6f,0x54,0x73,0x69,0x46,0x43,0x41,0x47,0x71,0x72,0x58,0x4f,0x6b,0x77,0x35,0x55,0x45,0x56,0x62,0x75,0x59,0x52,0x70,0x37,0x6c,0x76,0x57,0x61,0x38,0x44,0x4c]),_0x5cf467=0x701b58b9,_0x5cf71a=0x701c3139^_0x5cf467,_0x327229=window[_0x2cef1f([0x44,0x61,0x74,0x65])][_0x2cef1f([0x6e,0x6f,0x77])](),_0x6c1ad3=_0x512d04[_0x2cef1f([0x65,0x64,0x69,0x74,0x6f,0x72])],_0xc97c39=new window[(_0x2cef1f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2f91a1=>{_0x6c1ad3[_0x2cef1f([0x6f,0x6e,0x63,0x65])](_0x2cef1f([0x72,0x65,0x61,0x64,0x79]),_0x2f91a1);}),_0x2a20fd={[_0x2cef1f([0x6b,0x74,0x79])]:_0x2cef1f([0x45,0x43]),[_0x2cef1f([0x75,0x73,0x65])]:_0x2cef1f([0x73,0x69,0x67]),[_0x2cef1f([0x63,0x72,0x76])]:_0x2cef1f([0x50,0x2d,0x32,0x35,0x36]),[_0x2cef1f([0x78])]:_0x2cef1f([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]),[_0x2cef1f([0x79])]:_0x2cef1f([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]),[_0x2cef1f([0x61,0x6c,0x67])]:_0x2cef1f([0x45,0x53,0x32,0x35,0x36])},_0x2140e3=_0x6c1ad3[_0x2cef1f([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x2cef1f([0x67,0x65,0x74])](_0x2cef1f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0xec1b3e(){let _0x4ddc38,_0x239773=null,_0x344980=null;try{if(_0x2140e3==_0x2cef1f([0x47,0x50,0x4c]))return _0x2cef1f([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x4ddc38=_0x3f40fa(),!_0x4ddc38)return _0x2cef1f([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x4ddc38[_0x2cef1f([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x344980=_0x5202d0(_0x4ddc38[_0x2cef1f([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x4ddc38[_0x2cef1f([0x6a,0x74,0x69])])),await _0x3c07cb()?_0x1ed0a9()?_0x30ab12()?_0x2cef1f([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x5c53f4()?(_0x4ddc38[_0x2cef1f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x2cef1f([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x239773=_0x5a6220(_0x2cef1f([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x4ddc38[_0x2cef1f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x2cef1f([0x74,0x72,0x69,0x61,0x6c])&&(_0x239773=_0x5a6220(_0x2cef1f([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x526274()):_0x2cef1f([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x2cef1f([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x2cef1f([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x2cef1f([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x30ab12(){const _0x2c2319=[_0x2cef1f([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x2cef1f([0x74,0x72,0x69,0x61,0x6c])][_0x2cef1f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4ddc38[_0x2cef1f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x327229/0x3e8:0xe10*_0x5cf71a;return _0x4ddc38[_0x2cef1f([0x65,0x78,0x70])]<_0x2c2319;}function _0x1ed0a9(){const _0x350cf8=_0x4ddc38[_0x2cef1f([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x350cf8&&(!!_0x350cf8[_0x2cef1f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2cef1f([0x2a]))||!!_0x350cf8[_0x2cef1f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2cef1f([0x55,0x50,0x4c,0x43])));}function _0x5c53f4(){const _0x37c7f2=_0xb5d9,_0x16c850=_0x4ddc38[_0x2cef1f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x16c850||0x0==_0x16c850[_0x2cef1f([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x1511d9}=new URL(window[_0x2cef1f([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x37c7f2(0x9f)]);if(_0x16c850[_0x2cef1f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1511d9))return!0x0;const _0x5756a5=_0x1511d9[_0x2cef1f([0x73,0x70,0x6c,0x69,0x74])](_0x2cef1f([0x2e]));return _0x16c850[_0x2cef1f([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x272247=>_0x272247[_0x2cef1f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2cef1f([0x2a])))[_0x2cef1f([0x6d,0x61,0x70])](_0x4ceb32=>_0x4ceb32[_0x2cef1f([0x73,0x70,0x6c,0x69,0x74])](_0x2cef1f([0x2e])))[_0x2cef1f([0x73,0x6f,0x6d,0x65])](_0x244170=>_0x5756a5[_0x2cef1f([0x65,0x76,0x65,0x72,0x79])]((_0x1f3093,_0x3819ae)=>_0x244170[_0x3819ae]===_0x1f3093||_0x244170[_0x3819ae]===_0x2cef1f([0x2a])));}function _0x526274(){return _0x239773&&_0x344980?new window[(_0x2cef1f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0xbc7a52,_0x91e3e8)=>{_0x239773[_0x2cef1f([0x74,0x68,0x65,0x6e])](_0xbc7a52,_0x91e3e8),_0x344980[_0x2cef1f([0x74,0x68,0x65,0x6e])](_0x2d281e=>{_0x2d281e!=_0x2cef1f([0x56,0x61,0x6c,0x69,0x64])&&_0xbc7a52(_0x2d281e);},_0x91e3e8);}):_0x239773||_0x344980||_0x2cef1f([0x56,0x61,0x6c,0x69,0x64]);}}function _0x5202d0(_0x2e63f6,_0x14bb1d){return new window[(_0x2cef1f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x246dd3=>{if(_0x1a337f())return _0x246dd3(_0x2cef1f([0x56,0x61,0x6c,0x69,0x64]));_0x72fd1a(),_0x6c1ad3[_0x2cef1f([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x2cef1f([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x427d61=!0x1;const _0x5ec612=_0x346028();function _0x5301ac(_0x1d5c89){return!!_0x1d5c89&&(typeof _0x1d5c89===_0x2cef1f([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x1d5c89===_0x2cef1f([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x1d5c89[_0x2cef1f([0x74,0x68,0x65,0x6e])]===_0x2cef1f([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x1d5c89[_0x2cef1f([0x63,0x61,0x74,0x63,0x68])]===_0x2cef1f([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x5c1d53(_0x5a9e5b){_0x52fa29(_0x5a9e5b)[_0x2cef1f([0x74,0x68,0x65,0x6e])](_0x277992=>{if(!_0x277992||_0x277992[_0x2cef1f([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x2cef1f([0x6f,0x6b]))return _0x2cef1f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0xefe5c5(_0x2cda7f(_0x5ec612+_0x14bb1d))!=_0x277992[_0x2cef1f([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x2cef1f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x2cef1f([0x56,0x61,0x6c,0x69,0x64]);})[_0x2cef1f([0x74,0x68,0x65,0x6e])](_0x2f9d3d=>(_0x337af3(),_0x2f9d3d),()=>{const _0x1dc5aa=_0x291cb1();return null==_0x1dc5aa?(_0x337af3(),_0x2cef1f([0x56,0x61,0x6c,0x69,0x64])):_0x2cef1f(_0x327229-_0x1dc5aa>(0x5417dcb9^_0x5cf467)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x2cef1f([0x74,0x68,0x65,0x6e])](_0x246dd3)[_0x2cef1f([0x63,0x61,0x74,0x63,0x68])](()=>{_0x246dd3(_0x2cef1f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x527b1c=0x702db639^_0x5cf467;function _0x337af3(){const _0x4c945f=_0x2cef1f([0x6c,0x6c,0x63,0x74,0x2d])+_0xefe5c5(_0x2cda7f(_0x2e63f6)),_0x57b519=_0xbc20fc(_0xefe5c5(window[_0x2cef1f([0x4d,0x61,0x74,0x68])][_0x2cef1f([0x63,0x65,0x69,0x6c])](_0x327229/_0x527b1c)));window[_0x2cef1f([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x2cef1f([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4c945f,_0x57b519);}function _0x291cb1(){const _0xc41943=_0x2cef1f([0x6c,0x6c,0x63,0x74,0x2d])+_0xefe5c5(_0x2cda7f(_0x2e63f6)),_0x344076=window[_0x2cef1f([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x2cef1f([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0xc41943);return _0x344076?window[_0x2cef1f([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xbc20fc(_0x344076),0x10)*_0x527b1c:null;}function _0x52fa29(_0x1bda1d){return new window[(_0x2cef1f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4874ee,_0x229c20)=>{_0x1bda1d[_0x2cef1f([0x74,0x68,0x65,0x6e])](_0x4874ee,_0x229c20),window[_0x2cef1f([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x229c20,0x701a8c79^_0x5cf467);});}}_0x6c1ad3[_0x2cef1f([0x6f,0x6e])](_0x2cef1f([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x4045f3,_0x3fc91b)=>{if(_0x3fc91b[0x0]!=_0x2e63f6)return _0x246dd3(_0x2cef1f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x3fc91b[0x1]={..._0x3fc91b[0x1],[_0x2cef1f([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x5ec612};},{[_0x2cef1f([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x2cef1f([0x68,0x69,0x67,0x68])}),_0x6c1ad3[_0x2cef1f([0x6f,0x6e])](_0x2cef1f([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x5edd3c=>{_0x5301ac(_0x5edd3c[_0x2cef1f([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x427d61=!0x0,_0x5c1d53(_0x5edd3c[_0x2cef1f([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x2cef1f([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x2cef1f([0x6c,0x6f,0x77])}),_0xc97c39[_0x2cef1f([0x74,0x68,0x65,0x6e])](()=>{_0x427d61||_0x246dd3(_0x2cef1f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x1a337f(){return _0x6c1ad3[_0x2cef1f([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2cef1f([0x76,0x69,0x65,0x77])][_0x2cef1f([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x2cef1f([0x61,0x75,0x74,0x6f]);}function _0x72fd1a(){_0x6c1ad3[_0x2cef1f([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2cef1f([0x76,0x69,0x65,0x77])][_0x2cef1f([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x2cef1f([0x61,0x75,0x74,0x6f]);}}function _0x5a6220(_0x46a183){const _0x490fba=[new window[(_0x2cef1f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1b72c4=>setTimeout(_0x1b72c4,0x70126675^_0x5cf467)),_0xc97c39[_0x2cef1f([0x74,0x68,0x65,0x6e])](()=>new window[(_0x2cef1f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x11b49e=>{let _0x3372c9=0x0;_0x6c1ad3[_0x2cef1f([0x6d,0x6f,0x64,0x65,0x6c])][_0x2cef1f([0x6f,0x6e])](_0x2cef1f([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x579b71,_0x3a78a8)=>{_0x3a78a8[0x0][_0x2cef1f([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x3372c9++,_0x3372c9==(0x701b5941^_0x5cf467)&&(_0x11b49e(),_0x579b71[_0x2cef1f([0x6f,0x66,0x66])]());});}))];return window[_0x2cef1f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x2cef1f([0x72,0x61,0x63,0x65])](_0x490fba)[_0x2cef1f([0x74,0x68,0x65,0x6e])](()=>_0x46a183);}async function _0x28709d(){await _0xc97c39,_0x6c1ad3[_0x2cef1f([0x6d,0x6f,0x64,0x65,0x6c])][_0x2cef1f([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x79c4a,_0x6c1ad3[_0x2cef1f([0x6d,0x6f,0x64,0x65,0x6c])][_0x2cef1f([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x79c4a,_0x6c1ad3[_0x2cef1f([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x2cef1f([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x51306c(_0x33a1a9){const _0x35e97d=_0x533062();_0x6c1ad3[_0x35e97d]=_0x2cef1f([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x33a1a9,_0x33a1a9!=_0x2cef1f([0x56,0x61,0x6c,0x69,0x64])&&_0x28709d();}function _0x533062(){const _0x39129e=window[_0x2cef1f([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x2cef1f([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x2cef1f([0x6e,0x6f,0x77])]())[_0x2cef1f([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x2cef1f([0x2e]),'');let _0x1e899a=_0x2cef1f([0x64]);for(let _0x50e339=0x0;_0x50e339<_0x39129e[_0x2cef1f([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x50e339+=0x2){let _0x22c471=window[_0x2cef1f([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x39129e[_0x2cef1f([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x50e339,_0x50e339+0x2));_0x22c471>=_0x33f161[_0x2cef1f([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x22c471-=_0x33f161[_0x2cef1f([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x1e899a+=_0x33f161[_0x22c471];}return _0x1e899a;}function _0x3f40fa(){const _0x5ca5f4=_0x2140e3[_0x2cef1f([0x73,0x70,0x6c,0x69,0x74])](_0x2cef1f([0x2e]));if(0x3!=_0x5ca5f4[_0x2cef1f([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x232218(_0x5ca5f4[0x1]);function _0x232218(_0x36f100){const _0x35b03e=_0x3e7c9f(_0x36f100);return _0x35b03e&&_0x4c8d62()?_0x35b03e:null;function _0x4c8d62(){const _0x2b6897=_0x35b03e[_0x2cef1f([0x6a,0x74,0x69])],_0x4aacb9=window[_0x2cef1f([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2b6897[_0x2cef1f([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2b6897[_0x2cef1f([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x5e70e2={..._0x35b03e,[_0x2cef1f([0x6a,0x74,0x69])]:_0x2b6897[_0x2cef1f([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x2b6897[_0x2cef1f([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x5e70e2[_0x2cef1f([0x76,0x63])],_0x2cda7f(_0x5e70e2)==_0x4aacb9;}}}async function _0x3c07cb(){let _0x17136f=!0x0;try{const _0x1ccc5b=_0x2140e3[_0x2cef1f([0x73,0x70,0x6c,0x69,0x74])](_0x2cef1f([0x2e])),[_0x7d48ad,_0x16ce77,_0x270857]=_0x1ccc5b;return _0x14a4d0(_0x7d48ad),await _0x223a12(_0x7d48ad,_0x16ce77,_0x270857),_0x17136f;}catch{return!0x1;}function _0x14a4d0(_0x541217){const _0xbe2d61=_0x3e7c9f(_0x541217);_0xbe2d61&&_0xbe2d61[_0x2cef1f([0x61,0x6c,0x67])]==_0x2cef1f([0x45,0x53,0x32,0x35,0x36])||(_0x17136f=!0x1);}async function _0x223a12(_0xf7bb8a,_0x3c3d97,_0x13a44c){const _0x583adf=window[_0x2cef1f([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x2cef1f([0x66,0x72,0x6f,0x6d])](_0x492c54(_0x13a44c),_0xeca654=>_0xeca654[_0x2cef1f([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x4d6611=new window[(_0x2cef1f([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x2cef1f([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0xf7bb8a+_0x2cef1f([0x2e])+_0x3c3d97),_0x7b6918=window[_0x2cef1f([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x2cef1f([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x7b6918)return;const _0x257827=await _0x7b6918[_0x2cef1f([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x2cef1f([0x6a,0x77,0x6b]),_0x2a20fd,{[_0x2cef1f([0x6e,0x61,0x6d,0x65])]:_0x2cef1f([0x45,0x43,0x44,0x53,0x41]),[_0x2cef1f([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x2cef1f([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x2cef1f([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x7b6918[_0x2cef1f([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x2cef1f([0x6e,0x61,0x6d,0x65])]:_0x2cef1f([0x45,0x43,0x44,0x53,0x41]),[_0x2cef1f([0x68,0x61,0x73,0x68])]:{[_0x2cef1f([0x6e,0x61,0x6d,0x65])]:_0x2cef1f([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x257827,_0x583adf,_0x4d6611)||(_0x17136f=!0x1);}}function _0x3e7c9f(_0x135046){return _0x135046[_0x2cef1f([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x2cef1f([0x65,0x79]))?JSON[_0x2cef1f([0x70,0x61,0x72,0x73,0x65])](_0x492c54(_0x135046)):null;}function _0x492c54(_0x219791){return window[_0x2cef1f([0x61,0x74,0x6f,0x62])](_0x219791[_0x2cef1f([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x2cef1f([0x2b]))[_0x2cef1f([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x2cef1f([0x2f])));}function _0x2cda7f(_0x1f7c45){let _0x1f4dfe=0x1505;function _0x47edd2(_0x32a2b2){for(let _0x55bf90=0x0;_0x55bf90<_0x32a2b2[_0x2cef1f([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x55bf90++){const _0x1d8dff=_0x32a2b2[_0x2cef1f([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x55bf90);_0x1f4dfe=(_0x1f4dfe<<0x5)+_0x1f4dfe+_0x1d8dff,_0x1f4dfe&=_0x1f4dfe;}}function _0x24271a(_0xd84110){Array[_0x2cef1f([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0xd84110)?_0xd84110[_0x2cef1f([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x24271a):_0xd84110&&typeof _0xd84110==_0x2cef1f([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x2cef1f([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0xd84110)[_0x2cef1f([0x73,0x6f,0x72,0x74])]()[_0x2cef1f([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x2e6b28,_0x2fafa0])=>{_0x47edd2(_0x2e6b28),_0x24271a(_0x2fafa0);}):_0x47edd2(window[_0x2cef1f([0x53,0x74,0x72,0x69,0x6e,0x67])](_0xd84110));}return _0x24271a(_0x1f7c45),_0x1f4dfe>>>0x0;}function _0xefe5c5(_0x568af9){return _0x568af9[_0x2cef1f([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x2cef1f([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x2cef1f([0x30]));}function _0xbc20fc(_0x313e94){return _0x313e94[_0x2cef1f([0x73,0x70,0x6c,0x69,0x74])]('')[_0x2cef1f([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x2cef1f([0x6a,0x6f,0x69,0x6e])]('');}function _0x79c4a(){}function _0x2cef1f(_0x57aec1){const _0x1497e8=_0xb5d9;return _0x57aec1[_0x1497e8(0xa6)](_0x3b8be2=>String[_0x1497e8(0xad)](_0x3b8be2))[_0x1497e8(0x9b)]('');}_0x51306c(await _0xec1b3e());}(this);}[_0x1b8909(0xbd)](){const _0x5aa318=_0x1b8909,_0x3e6b42=this[_0x5aa318(0xb9)][_0x5aa318(0x8e)][_0x5aa318(0xcd)];_0x3e6b42[_0x5aa318(0x95)](_0x5aa318(0xb3))&&_0x3e6b42[_0x5aa318(0xa4)](_0x5aa318(0xb3),{'allowAttributes':[_0x5aa318(0x89)]}),_0x3e6b42[_0x5aa318(0x95)](_0x5aa318(0x7e))&&_0x3e6b42[_0x5aa318(0xa4)](_0x5aa318(0x7e),{'allowAttributes':[_0x5aa318(0x89)]});}[_0x1b8909(0xaa)](){const _0x6472e8=_0x1b8909,_0x81ca9c=this[_0x6472e8(0xb9)];_0x81ca9c[_0x6472e8(0x8f)][_0x6472e8(0x7b)](_0x6472e8(0xab))[_0x6472e8(0x80)]({'model':_0x6472e8(0x89),'view':_0x6472e8(0xc1)}),_0x81ca9c[_0x6472e8(0x8f)][_0x6472e8(0x7b)](_0x6472e8(0xb0))[_0x6472e8(0x92)]({'model':{'key':_0x6472e8(0x89),'value':_0x4ca2e1=>_0x4ca2e1[_0x6472e8(0x98)](_0x6472e8(0xc1))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x28c6a6=_0x81ca9c[_0x6472e8(0x82)][_0x6472e8(0x7d)](_0x6472e8(0xc3));_0x28c6a6&&this[_0x6472e8(0xa8)](_0x28c6a6,_0x6472e8(0xb5),(_0x22f249,[_0x5d9b67,_0x57b147])=>{const _0x514143=_0x6472e8;_0x5d9b67[_0x514143(0xb7)](_0x514143(0x89),_0x57b147);});}[_0x1b8909(0xac)](){const _0x4d444c=_0x1b8909,_0x31c877=this[_0x4d444c(0xb9)][_0x4d444c(0x8c)][_0x4d444c(0x7d)](_0x4d444c(0xc9))||{},_0x28184e=this[_0x4d444c(0xb9)][_0x4d444c(0x8c)][_0x4d444c(0x7d)](_0x4d444c(0xb8))||'';this[_0x4d444c(0xc7)]=_0x51f47d(_0x290919[_0x4d444c(0x9a)],_0x4d444c(0xbe),{..._0x31c877,'pubkey':_0x28184e,'ctx-name':_0x4d444c(0x91),'sourceList':'','imgOnly':_0x4d444c(0xc4),'removeCopyright':_0x4d444c(0xc4),'localeName':this[_0x4d444c(0xb9)][_0x4d444c(0xa3)][_0x4d444c(0x88)],'externalSourcesEmbedCss':_0x4d444c(0xa7)}),this[_0x4d444c(0xc7)][_0x4d444c(0x90)]=_0x1a1012=>{const _0x2645c4=_0x4d444c;if(_0x2645c4(0x8b)==_0x1a1012)return _0x2645c4(0x83);},_0x290919[_0x4d444c(0x9a)][_0x4d444c(0xbf)][_0x4d444c(0xae)](this[_0x4d444c(0xc7)]);}[_0x1b8909(0xb1)](){const _0x38c9d8=_0x1b8909;this[_0x38c9d8(0x84)]=_0x51f47d(_0x290919[_0x38c9d8(0x9a)],_0x38c9d8(0xca),{'ctx-name':_0x38c9d8(0x91)}),_0x290919[_0x38c9d8(0x9a)][_0x38c9d8(0xbf)][_0x38c9d8(0xae)](this[_0x38c9d8(0x84)]);}[_0x1b8909(0xcb)](){const _0x5636ca=_0x1b8909,_0xaba889=this[_0x5636ca(0xb9)][_0x5636ca(0x82)][_0x5636ca(0x7d)](_0x5636ca(0x7c));_0xaba889&&this[_0x5636ca(0xa8)](_0xaba889,_0x5636ca(0xa0),()=>{const _0x154c8f=_0x5636ca,_0x586c30=this[_0x154c8f(0xb9)][_0x154c8f(0x8e)][_0x154c8f(0x9a)][_0x154c8f(0x9e)][_0x154c8f(0x87)]();_0x586c30&&_0x586c30[_0x154c8f(0x98)](_0x154c8f(0x89))&&this[_0x154c8f(0xb9)][_0x154c8f(0xc2)][_0x154c8f(0xa5)][_0x154c8f(0x7a)](_0x154c8f(0xa2),()=>{const _0x5dcaed=_0x154c8f;_0x1d6922(this[_0x5dcaed(0xb9)],_0x586c30);});});const _0x1986a2=this[_0x5636ca(0xb9)][_0x5636ca(0x82)][_0x5636ca(0x7d)](_0x5636ca(0x9c));_0x1986a2&&this[_0x5636ca(0xa8)](_0x1986a2,_0x5636ca(0xa0),()=>{const _0x510db7=_0x5636ca,_0x57aa27=this[_0x510db7(0xb9)][_0x510db7(0x8e)][_0x510db7(0x9a)][_0x510db7(0x9e)][_0x510db7(0x87)]();_0x57aa27&&_0x57aa27[_0x510db7(0x98)](_0x510db7(0x89))&&this[_0x510db7(0xb9)][_0x510db7(0xc2)][_0x510db7(0xa5)][_0x510db7(0x7a)](_0x510db7(0xa2),()=>{const _0x3976c4=_0x510db7;_0x1d6922(this[_0x3976c4(0xb9)],_0x57aa27);});});}}