@ckeditor/ckeditor5-uploadcare 0.0.0-nightly-20260109.0 → 0.0.0-nightly-20260110.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 _0x5d705e,Command as _0x1fe490}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x12cc1f,IconGooglePhotos as _0x42b1d8,IconGoogleDrive as _0xe4c8e2,IconFacebook as _0x559e1f,IconDropbox as _0xb7c8f8,IconUploadcareLink as _0x171f0a,IconUploadcareImageUpload as _0x46d237,IconError as _0x68ca28,IconUploadcareImageEdit as _0x4e57ef}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x5d0d58,MenuBarMenuListItemButtonView as _0x531897,View as _0x40d11d,FocusCycler as _0x5ad2b2,Dialog as _0x50a307,DialogViewPosition as _0x4806eb,SpinnerView as _0x2e1a86,IconView as _0x94ed4e,Notification as _0x1d64df}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x5ade13,DomEmitterMixin as _0x25ae4d,global as _0x37a2a3,getAncestors as _0x5afc26,ObservableMixin as _0x315198,uid as _0x127e41,createElement as _0x5c2b58}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x2bece9}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x5a327f,info as _0x4b2d6f}from'@uploadcare/upload-client';import*as _0x5cb6e5 from'@uploadcare/file-uploader';var i=function(_0x49a350){return _0x49a350['Local']='local',_0x49a350['URL']='url',_0x49a350['Dropbox']='dropbox',_0x49a350['GDrive']='gdrive',_0x49a350['Facebook']='facebook',_0x49a350['GPhotos']='gphotos',_0x49a350['OneDrive']='onedrive',_0x49a350;}({});function _(_0x45ff93,_0x296c14,_0x41dc17){const t=_0x45ff93['t'],_0x241581=_0x45ff93['t'];switch(_0x296c14){case i['Local']:return{'text':_0x241581('Insert'===_0x41dc17?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x241581('From\x20computer')};case i['URL']:return{'text':'Insert'===_0x41dc17?_0x241581('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x241581('Via\x20URL')};case i['Dropbox']:return{'text':t('Insert'===_0x41dc17?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case i['Facebook']:return{'text':t('Insert'===_0x41dc17?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case i['GDrive']:return{'text':t('Insert'===_0x41dc17?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case i['GPhotos']:return{'text':t('Insert'===_0x41dc17?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case i['OneDrive']:return{'text':t('Insert'===_0x41dc17?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x296c14;}}class e extends _0x5d705e{['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 _0x3f074a=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x1880df;for(const _0x380da7 in _0x3f074a){const _0x40c9e6=_0x380da7,_0x1f92a7=_0x3f074a[_0x40c9e6];if('uploadcareLicenseKeyValid'==_0x1f92a7||'uploadcareLicenseKeyInvalid'==_0x1f92a7||'uploadcareLicenseKeyExpired'==_0x1f92a7||'uploadcareLicenseKeyDomainLimit'==_0x1f92a7||'uploadcareLicenseKeyNotAllowed'==_0x1f92a7||'uploadcareLicenseKeyEvaluationLimit'==_0x1f92a7||'uploadcareLicenseKeyUsageLimit'==_0x1f92a7){delete _0x3f074a[_0x40c9e6],_0x1880df=_0x1f92a7,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x1880df&&_0x3f074a['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x1880df&&_0x3f074a['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x1880df&&_0x3f074a['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x1880df&&_0x3f074a['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x1880df&&_0x3f074a['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyUsageLimit'==_0x1880df&&_0x3f074a['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x2fdc75}=this,_0x27ef2f=_0x2fdc75['commands']['get']('uploadcare');if(!_0x27ef2f)return;const _0x320ed9=this['_normalizeConfigSourceList'](_0x2fdc75['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x4dfd2b,_0x1191f7)=>{const _0x2b5a91=this['_getIntegrationKey'](_0x1191f7['type']);return _0x4dfd2b[_0x2b5a91]||(_0x4dfd2b[_0x2b5a91]=[]),_0x4dfd2b[_0x2b5a91]['push'](_0x1191f7),_0x4dfd2b;},{});_0x2fdc75['plugins']['has']('ImageInsertUI')&&_0x2fdc75['commands']['get']('uploadcare')&&Object['entries'](_0x320ed9)['forEach'](([_0x43a210,_0x485f2c])=>{_0x2fdc75['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x43a210,'observable':()=>_0x27ef2f,'buttonViewCreator':()=>this['_createToolbarButton'](_0x485f2c),'formViewCreator':()=>this['_createDropdownButtons'](_0x485f2c),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x485f2c),'override':'assetManager'!==_0x43a210});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x58d209){const {locale:_0x3901c2}=this['editor'];return _0x58d209['map'](_0x1c6d2e=>{const _0x57466f=_(_0x3901c2,_0x1c6d2e,'Insert');switch(_0x1c6d2e){case i['Local']:return{'icon':_0x46d237,'type':i['Local'],..._0x57466f};case i['URL']:return{'icon':_0x171f0a,'type':i['URL'],..._0x57466f};case i['Dropbox']:return{'icon':_0xb7c8f8,'type':i['Dropbox'],..._0x57466f};case i['Facebook']:return{'icon':_0x559e1f,'type':i['Facebook'],..._0x57466f};case i['GDrive']:return{'icon':_0xe4c8e2,'type':i['GDrive'],..._0x57466f};case i['GPhotos']:return{'icon':_0x42b1d8,'type':i['GPhotos'],..._0x57466f};case i['OneDrive']:return{'icon':_0x12cc1f,'type':i['OneDrive'],..._0x57466f};}});}['_getIntegrationKey'](_0x43ec40){switch(_0x43ec40){case i['Local']:return'upload';case i['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x87e13c,_0x3674e4){const _0x3ebe78=this['editor'],_0x14e473=new _0x87e13c(_0x3ebe78['locale']),_0x485c34=_0x3ebe78['commands']['get']('uploadcare');return _0x14e473['bind']('isEnabled')['to'](_0x485c34),_0x14e473['on']('execute',()=>{_0x485c34['execute'](_0x3674e4);}),_0x14e473;}['_createToolbarButton'](_0x5768fe){const {locale:_0xe8277a}=this['editor'],_0x17a6bb=this['editor']['plugins']['get']('ImageInsertUI'),_0x28d0a0=_0x5768fe[0x0],_0x5ac5b2=this['_createButton'](_0x5d0d58,_0x28d0a0['type']);return _0x5ac5b2['icon']=_0x28d0a0['icon'],_0x5ac5b2['bind']('label')['to'](_0x17a6bb,'isImageSelected',_0x562dae=>_(_0xe8277a,_0x28d0a0['type'],_0x562dae?'Replace':'Insert')['text']),_0x5ac5b2['tooltip']=!0x0,_0x5ac5b2;}['_createDropdownButtons'](_0x1b9c8b){const {locale:_0x32a86d}=this['editor'],_0x353e8d=this['editor']['plugins']['get']('ImageInsertUI');return _0x1b9c8b['map'](_0x286937=>{const _0x4ef157=this['_createButton'](_0x5d0d58,_0x286937['type']);return _0x4ef157['withText']=!0x0,_0x4ef157['icon']=_0x286937['icon'],_0x4ef157['bind']('label')['to'](_0x353e8d,'isImageSelected',_0x1c9221=>_(_0x32a86d,_0x286937['type'],_0x1c9221?'Replace':'Insert')['text']),_0x4ef157;});}['_createMenuBarButtons'](_0x376a90){return _0x376a90['map'](_0x1f0766=>{const _0x53584e=this['_createButton'](_0x531897,_0x1f0766['type']);return _0x53584e['icon']=_0x1f0766['icon'],_0x53584e['label']=_0x1f0766['shortText'],_0x53584e;});}}class F extends _0x40d11d{['focusTracker'];['focusCycler'];constructor(_0x5d768f){super(_0x5d768f),this['focusTracker']=new _0x5ade13(),this['focusCycler']=new _0x5ad2b2({'focusables':this['createCollection'](),'focusTracker':this['focusTracker']});}['getFocusableElement'](){return{'tag':'div','attributes':{'aria-hidden':'true','tabindex':'0'},'on':{'focus':this['bindTemplate']['to'](()=>{this['focusCycler']['fire']('forwardCycle');})}};}}class x extends F{constructor(_0x42266e,_0x39e2a5){super(_0x42266e),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-'+_0x39e2a5}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}}function C(_0x1a28f7,_0x46dfe1){const _0x509b14=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x4694f9=>_0x4694f9<=_0x46dfe1)['map'](_0x5051b6=>_0x1a28f7['replace'](/\/$/,'')+'/-/resize/'+_0x5051b6+'x/\x20'+_0x5051b6+'w');return{'imageFallbackUrl':_0x1a28f7,'imageSources':[{'srcset':_0x509b14['join'](',\x20'),'sizes':'(max-width:\x20'+_0x46dfe1+'px)\x20100vw,\x20'+_0x46dfe1+'px','type':'image/webp'}]};}function S(_0x2e1069,_0x327603,_0x3109ce){const _0x15f615=_0x2e1069['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x15f615?parseInt(_0x15f615[0x1],0xa):_0x327603,'height':_0x15f615?parseInt(_0x15f615[0x2],0xa):_0x3109ce};}function p(_0x487353,_0x53340a){const _0x533670=new(_0x25ae4d())(),_0x22e346=_0x487353['plugins']['get']('ImageUtils'),_0x31d662=_0x487353['editing']['mapper']['toViewElement'](_0x53340a),_0xdd18ab=_0x22e346['findViewImgElement'](_0x31d662),_0x5363d5=_0x487353['editing']['view']['domConverter']['viewToDom'](_0xdd18ab),_0x54d031=_0x53340a['getAttribute']('width'),_0x478e94=_0x53340a['getAttribute']('height'),_0x3746a2='image-processing';_0x487353['editing']['view']['change'](_0x3d03a6=>{_0x3d03a6['addClass'](_0x3746a2,_0x31d662),_0x3d03a6['setStyle']('aspect-ratio',_0x54d031+'/'+_0x478e94,_0xdd18ab);}),_0x533670['listenTo'](_0x5363d5,'load',()=>{_0x533670['stopListening'](_0x5363d5,'load'),_0x487353['editing']['view']['change'](_0x31c3d6=>{_0x31c3d6['removeClass'](_0x3746a2,_0x31d662),_0x31c3d6['removeStyle']('aspect-ratio',_0xdd18ab);});});}function G(_0x27eb0f){if(Array['isArray'](_0x27eb0f)){const _0x10735d=_0x27eb0f['map'](G);return _0x2f117e=>_0x10735d['some'](_0x19e5bb=>_0x19e5bb(_0x2f117e));}if('origin'==_0x27eb0f){const _0xb140db=_0x37a2a3['window']['location']['origin'];return _0x2e7463=>new URL(_0x2e7463,_0x37a2a3['document']['baseURI'])['origin']==_0xb140db;}return'function'==typeof _0x27eb0f?_0x27eb0f:_0x27eb0f instanceof RegExp?_0x29715f=>!(!_0x29715f['match'](_0x27eb0f)&&!_0x29715f['replace'](/^https?:\/\//,'')['match'](_0x27eb0f)):()=>!0x1;}function A(_0x4569a2,_0x32a2d0){return _0x5afc26(_0x4569a2['target'])['includes'](_0x32a2d0);}class n extends/* #__PURE__ -- @preserve */
24
- _0x315198(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x27ee68,_0x3434df,_0x26fb75){super(),this['_editor']=_0x27ee68,this['_editing']=_0x3434df,this['_dialog']=_0x27ee68['plugins']['get'](_0x50a307),this['_api']=_0x3434df['ctxElement']['getAPI'](),this['_type']=_0x26fb75,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:_0x54c57a,model:_0x141fff}=this['_editor'],_0x523b58=_0x141fff['document']['selection']['getSelectedElement'](),_0x4a77db=_0x523b58&&(_0x523b58['is']('element','imageBlock')||_0x523b58['is']('element','imageInline'));this['_formView']=new x(_0x54c57a,this['_editing']['ucContextId']),this['_dialog']['show']({'id':'uploadCare','icon':_0x46d237,'title':_(_0x54c57a,this['_type'],_0x4a77db?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x4806eb['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x1a1900=>!A(_0x1a1900,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x3b7f6c}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x2e52f5=>{const _0x5a4552=_0x3b7f6c['length'];for(const _0x251383 of _0x3b7f6c){const _0x13eb8=_0x251383===_0x3b7f6c[_0x5a4552-0x1],{cdnUrl:_0x97854,fileInfo:_0x1a3264}=_0x251383;if(!_0x97854||!_0x1a3264)continue;const {width:_0x475893,height:_0x292682}=_0x1a3264['imageInfo'],_0x21b336=S(_0x97854,_0x475893,_0x292682),_0x2360ce=C(_0x97854,_0x21b336['width']),_0x48c255={'id':_0x1a3264['uuid'],'type':'image','attributes':{'imageDimension':_0x21b336,..._0x2360ce}};this['_insertAsset'](_0x48c255,_0x13eb8,_0x2e52f5);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x5b1eb4=>{'idle'===_0x5b1eb4['detail']['status']&&!_0x5b1eb4['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===i['Local']?this['_api']['setCurrentActivity'](i['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x5e4d3f,_0x4d6d2c,_0x4eaa10){const _0x39e53e=this['_editor']['model']['document']['selection'],_0x1fb944=_0x39e53e['getSelectedElement'](),_0x1b4929=!(!_0x1fb944||!_0x1fb944['is']('element','imageInline'));_0x4eaa10['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x5e4d3f,_0x1b4929),_0x4d6d2c||_0x4eaa10['setSelection'](_0x39e53e['getLastPosition']());}['_insertImage'](_0x3fefa1,_0x590d4b){const _0x5c6bbe=this['_editor'],{imageDimension:_0x1e9b48,imageFallbackUrl:_0x23e0b4,imageSources:_0x215aac}=_0x3fefa1['attributes'];_0x5c6bbe['execute']('insertImage',{'imageType':_0x590d4b?'imageInline':null,'source':{'uploadcareImageId':_0x3fefa1['id'],'src':_0x23e0b4,'sources':_0x215aac,..._0x1e9b48}});}}class w extends _0x1fe490{['_editing'];['_controller']=null;static get['requires'](){return[_0x50a307,o];}constructor(_0x55238f){super(_0x55238f),this['_editing']=_0x55238f['plugins']['get'](o);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0xa2aadd){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new n(this['editor'],this['_editing'],_0xa2aadd);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class j{static['upload']({file:_0x642879,..._0x254a2b}){return _0x5a327f(_0x642879,_0x254a2b);}static['getInfo'](_0x400c2d,_0x33d68a){return _0x4b2d6f(_0x400c2d,_0x33d68a);}}class f extends _0x5d705e{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x2bece9,o];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x16b6ff=this['editor'];if(!!!_0x16b6ff['config']['get']('uploadcare'))return;_0x16b6ff['plugins']['get'](_0x2bece9)['createUploadAdapter']=_0x5d0222=>new k(_0x5d0222,_0x16b6ff),_0x16b6ff['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x161f96,{imageElement:_0x5ac2d4,data:_0x55ca88})=>{_0x16b6ff['model']['change'](_0x37550f=>{_0x37550f['setAttribute']('uploadcareImageId',_0x55ca88['uploadcareImageId'],_0x5ac2d4);});});}}class k{['loader'];['editor'];['controller'];constructor(_0x218cf5,_0x48f08e){this['loader']=_0x218cf5,this['editor']=_0x48f08e,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x19fec7=await this['loader']['file'];return j['upload']({'file':_0x19fec7,'publicKey':this['editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['editor']['config']['get']('uploadcare.uploader.baseUrl'),'baseCDN':this['editor']['config']['get']('uploadcare.uploader.cdnCname'),'signal':this['controller']['signal'],'onProgress':_0x3d79d7=>{_0x3d79d7&&_0x3d79d7['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x3d79d7['value']);}})['then'](async _0x505754=>{const {imageFallbackUrl:_0x2ecc09,imageSources:_0x59e030}=C(_0x505754['cdnUrl'],_0x505754['imageInfo']['width']);return{'uploadcareImageId':_0x505754['uuid'],'default':_0x2ecc09,'sources':_0x59e030};})['catch'](()=>{const _0x145011=t('Cannot\x20upload\x20file:')+('\x20'+_0x19fec7['name']+'.');return Promise['reject'](_0x145011);});}['abort'](){this['controller']['abort']();}}class o extends _0x5d705e{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',f,_0x50a307];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['ucContextId'];get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}constructor(_0x24c99e){super(_0x24c99e),this['ucContextId']=_0x127e41();}['init'](){const _0x5a94f6=this['editor'];_0x5a94f6['commands']['add']('uploadcare',new w(_0x5a94f6));}['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 _0x132efb=_0x37a2a3['document']['querySelector']('input[uploadcare-file-input]');_0x132efb&&_0x132efb['remove']();}),async function(_0x335655){const _0x1a371a=_0x48d417([0x68,0x67,0x50,0x36,0x38,0x70,0x71,0x63,0x37,0x4f,0x42,0x4a,0x78,0x39,0x75,0x33,0x7a,0x72,0x48,0x61,0x74,0x59,0x55,0x58,0x66,0x30,0x34,0x54,0x64,0x56,0x6b,0x4d,0x46,0x6d,0x77,0x43,0x73,0x35,0x53,0x44,0x41,0x76,0x6a,0x32,0x31,0x69,0x57,0x51,0x47,0x65,0x5a,0x4b,0x4c,0x79,0x52,0x6c,0x45,0x4e,0x6e,0x6f,0x49,0x62]),_0x3e0e30=0x535f8c3a,_0x4e73af=0x5358f26a^_0x3e0e30,_0xbe1cf8=window[_0x48d417([0x44,0x61,0x74,0x65])][_0x48d417([0x6e,0x6f,0x77])](),_0x44f5b4=_0x335655[_0x48d417([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x1e8ffd=new window[(_0x48d417([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xa186d1=>{_0x44f5b4[_0x48d417([0x6f,0x6e,0x63,0x65])](_0x48d417([0x72,0x65,0x61,0x64,0x79]),_0xa186d1);}),_0x32a38b={[_0x48d417([0x6b,0x74,0x79])]:_0x48d417([0x45,0x43]),[_0x48d417([0x75,0x73,0x65])]:_0x48d417([0x73,0x69,0x67]),[_0x48d417([0x63,0x72,0x76])]:_0x48d417([0x50,0x2d,0x32,0x35,0x36]),[_0x48d417([0x78])]:_0x48d417([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]),[_0x48d417([0x79])]:_0x48d417([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]),[_0x48d417([0x61,0x6c,0x67])]:_0x48d417([0x45,0x53,0x32,0x35,0x36])},_0x1db0ce=_0x44f5b4[_0x48d417([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x48d417([0x67,0x65,0x74])](_0x48d417([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x3964ed(){let _0x1e6f34,_0x4d6530=null,_0x2b02d1=null;try{if(_0x1db0ce==_0x48d417([0x47,0x50,0x4c]))return _0x48d417([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x1e6f34=_0x29b494(),!_0x1e6f34)return _0x48d417([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x1e6f34[_0x48d417([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x2b02d1=_0x2fbde5(_0x1e6f34[_0x48d417([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x1e6f34[_0x48d417([0x6a,0x74,0x69])])),await _0x3e5ad9()?_0x2a93df()?_0x41c880()?_0x48d417([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x2acba2()?(_0x1e6f34[_0x48d417([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x48d417([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x4d6530=_0x1d021f(_0x48d417([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x444f5a()):_0x48d417([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x48d417([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x48d417([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x48d417([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x41c880(){const _0x154387=[_0x48d417([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x48d417([0x74,0x72,0x69,0x61,0x6c])][_0x48d417([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1e6f34[_0x48d417([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0xbe1cf8/0x3e8:0xe10*_0x4e73af;return _0x1e6f34[_0x48d417([0x65,0x78,0x70])]<_0x154387;}function _0x2a93df(){const _0x3412b6=_0x1e6f34[_0x48d417([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x3412b6&&(!!_0x3412b6[_0x48d417([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x48d417([0x2a]))||!!_0x3412b6[_0x48d417([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x48d417([0x55,0x50,0x4c,0x43])));}function _0x2acba2(){const _0x4006c0=_0x1e6f34[_0x48d417([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x4006c0||0x0==_0x4006c0[_0x48d417([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x318737}=new URL(window[_0x48d417([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x4006c0[_0x48d417([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x318737))return!0x0;const _0x511b64=_0x318737[_0x48d417([0x73,0x70,0x6c,0x69,0x74])](_0x48d417([0x2e]));return _0x4006c0[_0x48d417([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x440570=>_0x440570[_0x48d417([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x48d417([0x2a])))[_0x48d417([0x6d,0x61,0x70])](_0x4ef713=>_0x4ef713[_0x48d417([0x73,0x70,0x6c,0x69,0x74])](_0x48d417([0x2e])))[_0x48d417([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x5992a0=>_0x5992a0[_0x48d417([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x511b64[_0x48d417([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x48d417([0x6d,0x61,0x70])](_0x1667d1=>Array(_0x511b64[_0x48d417([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x1667d1[_0x48d417([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x48d417([0x66,0x69,0x6c,0x6c])](_0x1667d1[0x0]===_0x48d417([0x2a])?_0x48d417([0x2a]):'')[_0x48d417([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x1667d1))[_0x48d417([0x73,0x6f,0x6d,0x65])](_0x238ddb=>_0x511b64[_0x48d417([0x65,0x76,0x65,0x72,0x79])]((_0x15e948,_0x28eee9)=>_0x238ddb[_0x28eee9]===_0x15e948||_0x238ddb[_0x28eee9]===_0x48d417([0x2a])));}function _0x444f5a(){return _0x4d6530&&_0x2b02d1?new window[(_0x48d417([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x44f2bc,_0x229977)=>{_0x4d6530[_0x48d417([0x74,0x68,0x65,0x6e])](_0x44f2bc,_0x229977),_0x2b02d1[_0x48d417([0x74,0x68,0x65,0x6e])](_0x26c284=>{_0x26c284!=_0x48d417([0x56,0x61,0x6c,0x69,0x64])&&_0x44f2bc(_0x26c284);},_0x229977);}):_0x4d6530||_0x2b02d1||_0x48d417([0x56,0x61,0x6c,0x69,0x64]);}}function _0x2fbde5(_0x304d29,_0x4d9e42){return new window[(_0x48d417([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x15fa9f=>{if(_0x4679e3())return _0x15fa9f(_0x48d417([0x56,0x61,0x6c,0x69,0x64]));_0x451934(),_0x44f5b4[_0x48d417([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x48d417([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x1ae484=!0x1;const _0x1b0446=_0x127e41();function _0x2a1c6d(_0x409878){return!!_0x409878&&(typeof _0x409878===_0x48d417([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x409878===_0x48d417([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x409878[_0x48d417([0x74,0x68,0x65,0x6e])]===_0x48d417([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x409878[_0x48d417([0x63,0x61,0x74,0x63,0x68])]===_0x48d417([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x6cfd45(_0x5dde64){_0x4f3140(_0x5dde64)[_0x48d417([0x74,0x68,0x65,0x6e])](_0x270a25=>{if(!_0x270a25||_0x270a25[_0x48d417([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x48d417([0x6f,0x6b]))return _0x48d417([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x176996(_0x352c61(_0x1b0446+_0x4d9e42))!=_0x270a25[_0x48d417([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x48d417([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x48d417([0x56,0x61,0x6c,0x69,0x64]);})[_0x48d417([0x74,0x68,0x65,0x6e])](_0x5ab463=>(_0xb651bf(),_0x5ab463),()=>{const _0x1c8b1d=_0x454abf();return null==_0x1c8b1d?(_0xb651bf(),_0x48d417([0x56,0x61,0x6c,0x69,0x64])):_0x48d417(_0xbe1cf8-_0x1c8b1d>(0x7753083a^_0x3e0e30)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x48d417([0x74,0x68,0x65,0x6e])](_0x15fa9f)[_0x48d417([0x63,0x61,0x74,0x63,0x68])](()=>{_0x15fa9f(_0x48d417([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x1f05d7=0x536962ba^_0x3e0e30;function _0xb651bf(){const _0x51df92=_0x48d417([0x6c,0x6c,0x63,0x74,0x2d])+_0x176996(_0x352c61(_0x304d29)),_0x3aa544=_0x4fa97c(_0x176996(window[_0x48d417([0x4d,0x61,0x74,0x68])][_0x48d417([0x63,0x65,0x69,0x6c])](_0xbe1cf8/_0x1f05d7)));window[_0x48d417([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x48d417([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x51df92,_0x3aa544);}function _0x454abf(){const _0x562acb=_0x48d417([0x6c,0x6c,0x63,0x74,0x2d])+_0x176996(_0x352c61(_0x304d29)),_0x1b3125=window[_0x48d417([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x48d417([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x562acb);return _0x1b3125?window[_0x48d417([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4fa97c(_0x1b3125),0x10)*_0x1f05d7:null;}function _0x4f3140(_0x4b6420){return new window[(_0x48d417([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x2674bb,_0x560761)=>{_0x4b6420[_0x48d417([0x74,0x68,0x65,0x6e])](_0x2674bb,_0x560761),window[_0x48d417([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x560761,0x535e58fa^_0x3e0e30);});}}_0x44f5b4[_0x48d417([0x6f,0x6e])](_0x48d417([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x2774b3,_0x16f17b)=>{if(_0x16f17b[0x0]!=_0x304d29)return _0x15fa9f(_0x48d417([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x16f17b[0x1]={..._0x16f17b[0x1],[_0x48d417([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x1b0446};},{[_0x48d417([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x48d417([0x68,0x69,0x67,0x68])}),_0x44f5b4[_0x48d417([0x6f,0x6e])](_0x48d417([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x2317b4=>{_0x2a1c6d(_0x2317b4[_0x48d417([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x1ae484=!0x0,_0x6cfd45(_0x2317b4[_0x48d417([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x48d417([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x48d417([0x6c,0x6f,0x77])}),_0x1e8ffd[_0x48d417([0x74,0x68,0x65,0x6e])](()=>{_0x1ae484||_0x15fa9f(_0x48d417([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x4679e3(){return _0x44f5b4[_0x48d417([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x48d417([0x76,0x69,0x65,0x77])][_0x48d417([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x48d417([0x61,0x75,0x74,0x6f]);}function _0x451934(){_0x44f5b4[_0x48d417([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x48d417([0x76,0x69,0x65,0x77])][_0x48d417([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x48d417([0x61,0x75,0x74,0x6f]);}}function _0x1d021f(_0x4e6812){const _0x2faebb=[new window[(_0x48d417([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x278f32=>setTimeout(_0x278f32,0x5356b2f6^_0x3e0e30)),_0x1e8ffd[_0x48d417([0x74,0x68,0x65,0x6e])](()=>new window[(_0x48d417([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x114e00=>{let _0x245583=0x0;_0x44f5b4[_0x48d417([0x6d,0x6f,0x64,0x65,0x6c])][_0x48d417([0x6f,0x6e])](_0x48d417([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x4289a2,_0x359882)=>{_0x359882[0x0][_0x48d417([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x245583++,_0x245583==(0x535f89d2^_0x3e0e30)&&(_0x114e00(),_0x4289a2[_0x48d417([0x6f,0x66,0x66])]());});}))];return window[_0x48d417([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x48d417([0x72,0x61,0x63,0x65])](_0x2faebb)[_0x48d417([0x74,0x68,0x65,0x6e])](()=>_0x4e6812);}async function _0x36e328(){await _0x1e8ffd,_0x44f5b4[_0x48d417([0x6d,0x6f,0x64,0x65,0x6c])][_0x48d417([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x5e712b,_0x44f5b4[_0x48d417([0x6d,0x6f,0x64,0x65,0x6c])][_0x48d417([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x5e712b,_0x44f5b4[_0x48d417([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x48d417([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x38b994(_0x1a123b){const _0x5e46dd=_0x1a1644();_0x44f5b4[_0x5e46dd]=_0x48d417([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x1a123b,_0x1a123b!=_0x48d417([0x56,0x61,0x6c,0x69,0x64])&&_0x36e328();}function _0x1a1644(){const _0x25a121=window[_0x48d417([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x48d417([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x48d417([0x6e,0x6f,0x77])]())[_0x48d417([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x48d417([0x2e]),'');let _0x98ea15=_0x48d417([0x68]);for(let _0x368451=0x0;_0x368451<_0x25a121[_0x48d417([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x368451+=0x2){let _0x37f944=window[_0x48d417([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x25a121[_0x48d417([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x368451,_0x368451+0x2));_0x37f944>=_0x1a371a[_0x48d417([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x37f944-=_0x1a371a[_0x48d417([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x98ea15+=_0x1a371a[_0x37f944];}return _0x98ea15;}function _0x29b494(){const _0x416239=_0x1db0ce[_0x48d417([0x73,0x70,0x6c,0x69,0x74])](_0x48d417([0x2e]));if(0x3!=_0x416239[_0x48d417([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x3febcc(_0x416239[0x1]);function _0x3febcc(_0x5ba5d5){const _0x15c1cb=_0x276483(_0x5ba5d5);return _0x15c1cb&&_0x1324c8()?_0x15c1cb:null;function _0x1324c8(){const _0x110f83=_0x15c1cb[_0x48d417([0x6a,0x74,0x69])],_0x518180=window[_0x48d417([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x110f83[_0x48d417([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x110f83[_0x48d417([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x2a2603={..._0x15c1cb,[_0x48d417([0x6a,0x74,0x69])]:_0x110f83[_0x48d417([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x110f83[_0x48d417([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x2a2603[_0x48d417([0x76,0x63])],_0x352c61(_0x2a2603)==_0x518180;}}}async function _0x3e5ad9(){let _0x2c8871=!0x0;try{const _0x2e3c95=_0x1db0ce[_0x48d417([0x73,0x70,0x6c,0x69,0x74])](_0x48d417([0x2e])),[_0x155373,_0x207db5,_0x1ea788]=_0x2e3c95;return _0x672836(_0x155373),await _0x19c540(_0x155373,_0x207db5,_0x1ea788),_0x2c8871;}catch{return!0x1;}function _0x672836(_0xa7a7c){const _0x271fa6=_0x276483(_0xa7a7c);_0x271fa6&&_0x271fa6[_0x48d417([0x61,0x6c,0x67])]==_0x48d417([0x45,0x53,0x32,0x35,0x36])||(_0x2c8871=!0x1);}async function _0x19c540(_0x1925fe,_0x1097a3,_0x25cdbc){const _0x37a881=window[_0x48d417([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x48d417([0x66,0x72,0x6f,0x6d])](_0x50b717(_0x25cdbc),_0x260406=>_0x260406[_0x48d417([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x148844=new window[(_0x48d417([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x48d417([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x1925fe+_0x48d417([0x2e])+_0x1097a3),_0x3243ec=window[_0x48d417([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x48d417([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x3243ec)return;const _0x42d7d3=await _0x3243ec[_0x48d417([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x48d417([0x6a,0x77,0x6b]),_0x32a38b,{[_0x48d417([0x6e,0x61,0x6d,0x65])]:_0x48d417([0x45,0x43,0x44,0x53,0x41]),[_0x48d417([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x48d417([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x48d417([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x3243ec[_0x48d417([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x48d417([0x6e,0x61,0x6d,0x65])]:_0x48d417([0x45,0x43,0x44,0x53,0x41]),[_0x48d417([0x68,0x61,0x73,0x68])]:{[_0x48d417([0x6e,0x61,0x6d,0x65])]:_0x48d417([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x42d7d3,_0x37a881,_0x148844)||(_0x2c8871=!0x1);}}function _0x276483(_0x12d721){return _0x12d721[_0x48d417([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x48d417([0x65,0x79]))?JSON[_0x48d417([0x70,0x61,0x72,0x73,0x65])](_0x50b717(_0x12d721)):null;}function _0x50b717(_0x2b27b1){return window[_0x48d417([0x61,0x74,0x6f,0x62])](_0x2b27b1[_0x48d417([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x48d417([0x2b]))[_0x48d417([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x48d417([0x2f])));}function _0x352c61(_0x818c1f){let _0x3ac345=0x1505;function _0x5b31f8(_0x39e12a){for(let _0x3e5c3c=0x0;_0x3e5c3c<_0x39e12a[_0x48d417([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3e5c3c++){const _0x29be5f=_0x39e12a[_0x48d417([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x3e5c3c);_0x3ac345=(_0x3ac345<<0x5)+_0x3ac345+_0x29be5f,_0x3ac345&=_0x3ac345;}}function _0x426a47(_0x7be940){Array[_0x48d417([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x7be940)?_0x7be940[_0x48d417([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x426a47):_0x7be940&&typeof _0x7be940==_0x48d417([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x48d417([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x7be940)[_0x48d417([0x73,0x6f,0x72,0x74])]()[_0x48d417([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x1a339b,_0x41d248])=>{_0x5b31f8(_0x1a339b),_0x426a47(_0x41d248);}):_0x5b31f8(window[_0x48d417([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x7be940));}return _0x426a47(_0x818c1f),_0x3ac345>>>0x0;}function _0x176996(_0x32a4ec){return _0x32a4ec[_0x48d417([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x48d417([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x48d417([0x30]));}function _0x4fa97c(_0x55d748){return _0x55d748[_0x48d417([0x73,0x70,0x6c,0x69,0x74])]('')[_0x48d417([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x48d417([0x6a,0x6f,0x69,0x6e])]('');}function _0x5e712b(){}function _0x48d417(_0x2e4457){return _0x2e4457['map'](_0x340864=>String['fromCharCode'](_0x340864))['join']('');}_0x38b994(await _0x3964ed());}(this);}['_initSchema'](){const _0x4dfbaf=this['editor']['model']['schema'];_0x4dfbaf['isRegistered']('imageBlock')&&_0x4dfbaf['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x4dfbaf['isRegistered']('imageInline')&&_0x4dfbaf['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x42988a=this['editor'];_0x42988a['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x42988a['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x145ca1=>_0x145ca1['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x5c4dcf=_0x42988a['commands']['get']('replaceImageSource');_0x5c4dcf&&this['listenTo'](_0x5c4dcf,'cleanupImage',(_0x47600d,[_0x1ff46b,_0x51e127])=>{_0x1ff46b['removeAttribute']('uploadcareImageId',_0x51e127);});}['_initConfig'](){const _0x26e639=this['editor']['config']['get']('uploadcare.uploader')||{},_0x50ea20=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x5c2b58(_0x37a2a3['document'],'uc-config',{..._0x26e639,'pubkey':_0x50ea20,'ctx-name':'uploader-'+this['ucContextId'],'sourceList':'','imgOnly':'true','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage'],'externalSourcesEmbedCss':'\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup\x20{\x20padding:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-menu\x20{\x20gap:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-footer\x20{\x20padding-top:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__separator\x20{\x20margin:\x200;\x20}\x0a\x09\x09\x09'}),this['_configElement']['iconHrefResolver']=_0x288e03=>{if('closeMax'==_0x288e03)return'#uc-icon-arrow-down';},_0x37a2a3['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x5c2b58(_0x37a2a3['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader-'+this['ucContextId']}),_0x37a2a3['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x137b8a=this['editor']['commands']['get']('insertImage');_0x137b8a&&this['listenTo'](_0x137b8a,'execute',()=>{const _0x2dcf85=this['editor']['model']['document']['selection']['getSelectedElement']();_0x2dcf85&&_0x2dcf85['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x2dcf85);});});const _0x91003f=this['editor']['commands']['get']('uploadcareImageReplace');_0x91003f&&this['listenTo'](_0x91003f,'execute',()=>{const _0x470bf2=this['editor']['model']['document']['selection']['getSelectedElement']();_0x470bf2&&_0x470bf2['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x470bf2);});});}}class tt extends _0x5d705e{static get['requires'](){return[o,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x1af453){super(_0x1af453),_0x1af453['config']['define']('uploadcare.uploader.sourceList',[i['Local'],i['URL']]),_0x5cb6e5['defineComponents'](_0x5cb6e5),this['_defineLocale']();}['_defineLocale'](){const _0xc1b752=this['editor']['config']['get']('uploadcare.locale'),_0x3ed0ff=this['editor']['locale']['contentLanguage'];_0xc1b752&&_0x5cb6e5['defineLocale'](_0x3ed0ff,_0xc1b752);}}class ii extends _0x40d11d{constructor(_0x21c0ee){super(_0x21c0ee);const t=_0x21c0ee['t'],_0x21e88b=this['bindTemplate'],_0xdb5546=new _0x2e1a86();_0xdb5546['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':[_0xdb5546,{'text':_0x21e88b['to']('imageUploadProgress',_0x5af3f8=>t('Loading\x20image...')+'\x20('+(_0x5af3f8||0x0)+'%)')}]},{'tag':'div','attributes':{'class':['ck-uploadcare-form__skeleton']},'children':[{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'}]},{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'}]}]}]});}}class ti extends _0x40d11d{constructor(_0x4787f5){super(_0x4787f5);const t=_0x4787f5['t'];this['set']('errorType',null);const _0x41f406=new _0x5d0d58(_0x4787f5);_0x41f406['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x41f406['withText']=!0x0,_0x41f406['class']='ck-button-action',_0x41f406['on']('execute',()=>{this['fire']('retry');}),_0x41f406['bind']('isVisible')['to'](this,'errorType',_0x23ff0d=>'NotFound'!==_0x23ff0d);const _0x47d7d3=new _0x94ed4e();_0x47d7d3['content']=_0x68ca28,_0x47d7d3['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x3f221c=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':[_0x47d7d3,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x3f221c['to']('errorType',_0x1cee43=>t('NotFound'!==_0x1cee43?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x41f406]},{'tag':'div','attributes':{'class':['ck-uploadcare-form__skeleton']},'children':[{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'}]},{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'}]}]}]});}}class ei extends _0x40d11d{constructor(_0x5d0c19,_0x1c94c1){super(_0x5d0c19);const _0x42b401=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x1c94c1,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x42b401['to']('imageSrc')}});}}class X extends F{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x3a5435,_0x50d2c4,_0x2683b3){super(_0x3a5435),this['_items']=this['createCollection'](),this['_loadingView']=new ii(_0x3a5435),this['_errorView']=new ti(_0x3a5435),this['_editingView']=new ei(_0x3a5435,_0x2683b3),this['_focusableView']=new _0x40d11d(_0x3a5435),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x50d2c4),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'],_0x4945bc=>{this['_addUploadcareImageEditorListeners'](_0x4945bc);});}),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'](_0x52fd03,_0x542742){const _0x5c4860='uc-cloud-image-editor',_0x245524=_0x52fd03['querySelector'](_0x5c4860);if(_0x245524)return _0x542742(_0x245524);const _0x368627=new MutationObserver(_0x3fe45c=>{const _0x5baa59=_0x3fe45c['filter'](_0x5e8f9f=>_0x5e8f9f['target']===_0x52fd03&&_0x5e8f9f['addedNodes']['length']>0x0&&_0x5e8f9f['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x5c4860);_0x5baa59['length']&&(_0x368627['disconnect'](),_0x542742(_0x5baa59[0x0]['addedNodes'][0x0]));});_0x368627['observe'](_0x52fd03,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x1402dc){_0x1402dc['addEventListener']('apply',_0x5aec70=>{this['fire']('apply',{'imageSrc':_0x5aec70['detail']['cdnUrl']});}),_0x1402dc['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class E extends/* #__PURE__ -- @preserve */
25
- _0x315198(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x13d4b5,_0x5789f8,_0x39953c){super(),this['_editor']=_0x13d4b5,this['_dialog']=_0x5789f8,this['_imageElement']=_0x39953c,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 _0x4bc703=this['_imageElement'],_0x517ee6=_0x4bc703['getAttribute']('uploadcareImageId'),_0x20a373=_0x4bc703['getAttribute']('src');if(_0x517ee6)await this['_loadImageInfo'](_0x517ee6,_0x20a373);else{if(this['_imageCache']['has'](_0x20a373)){const _0x132efe=this['_imageCache']['get'](_0x20a373);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x132efe['url'],this['imageDimension']=_0x132efe['dimension'],this['imageId']=_0x132efe['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x1f5739}=this['_editor'],t=_0x1f5739['t'],_0x3aa774=new X(_0x1f5739,this['imageStatus'],this['_attributes']);_0x3aa774['bind']('status')['to'](this,'imageStatus'),_0x3aa774['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x3aa774['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x3aa774['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x3aa774,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x4e57ef,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x3aa774,'position':_0x4806eb['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x3aa774['focus']();},'onHide':()=>{_0x3aa774['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x51ab05=>!A(_0x51ab05,_0x3aa774['element'])}});}['_loadImageInfo'](_0x5b5bb7,_0x21a1d){return j['getInfo'](_0x5b5bb7,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl')})['then'](_0x25ffab=>{const {width:_0x44a7cd,height:_0x451173}=_0x25ffab['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x21a1d,this['imageDimension']={'width':_0x44a7cd,'height':_0x451173},this['imageId']=_0x5b5bb7;})['catch'](_0x1e092f=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x1e092f['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x2199d8,_0x4ffa68){return this['_getImageAsFile'](_0x2199d8)['then'](_0x151ddf=>j['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl'),'baseCDN':this['_editor']['config']['get']('uploadcare.uploader.cdnCname'),'signal':_0x4ffa68['signal'],'file':_0x151ddf,'onProgress':_0x546a3e=>{_0x546a3e&&_0x546a3e['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x546a3e['value']));}}))['then'](_0x32b404=>{const {width:_0x5eed03,height:_0xdb3633}=_0x32b404['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x32b404['cdnUrl'],this['imageDimension']={'width':_0x5eed03,'height':_0xdb3633},this['imageId']=_0x32b404['uuid'],this['imageUploadProgress']=null;const _0x5b0f77=_0x2199d8['getAttribute']('src');this['_imageCache']['set'](_0x5b0f77,{'id':_0x32b404['uuid'],'url':_0x32b404['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x3bbbe2=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x3bbbe2['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x53b2b6,_0xa6496c){_0x53b2b6['on']('apply',(_0x19543f,_0x4cb55c)=>{this['_replaceImage'](_0xa6496c,_0x4cb55c['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x53b2b6['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x53b2b6['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x16e6ff,_0x9511fa,_0x547d28){const _0x555dcb=this['_editor'],{width:_0x337116,height:_0x5a381f}=S(_0x9511fa,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0xa60190,imageSources:_0x3d29f6}=C(_0x9511fa,_0x337116);_0x555dcb['model']['change'](_0x51c475=>{if('$graveyard'===_0x16e6ff['root']['rootName']){_0x555dcb['execute']('insertImage',{'imageType':_0x16e6ff['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x16e6ff['getAttributes']()),'uploadcareImageId':_0x547d28,'src':_0xa60190,'sources':_0x3d29f6,'width':_0x337116,'height':_0x5a381f}});const _0x1bc1ef=_0x16e6ff['getChildren']();_0x16e6ff=_0x555dcb['model']['document']['selection']['getSelectedElement']();for(const _0x20065b of _0x1bc1ef)_0x51c475['append'](_0x51c475['cloneElement'](_0x20065b),_0x16e6ff);}else _0x51c475['setSelection'](_0x16e6ff,'on'),_0x555dcb['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x16e6ff['getAttributes']()),'uploadcareImageId':_0x547d28,'src':_0xa60190,'sources':_0x3d29f6,'width':_0x337116,'height':_0x5a381f},_0x16e6ff);_0x51c475['setSelection'](_0x16e6ff,'on');});}async['_getImageAsFile'](_0x27c789){const _0xd5332=_0x37a2a3['window'],_0x261acf=_0x37a2a3['document']['location']['href'],_0x1b0aac=new _0xd5332['URL'](_0x27c789['getAttribute']('src'),_0x261acf);if('data:'===_0x1b0aac['protocol']){const _0x594f71=_0x1b0aac['href']['split'](','),_0x4874d4=_0x594f71[0x0]['match'](/:(.*?);/)[0x1],_0x2ea787=_0x4874d4['split']('/')[0x1],_0x2e1095=_0xd5332['atob'](_0x594f71[_0x594f71['length']-0x1]);let _0x36f8ee=_0x2e1095['length'];const _0x4f32d1=new _0xd5332['Uint8Array'](_0x36f8ee);for(;_0x36f8ee--;)_0x4f32d1[_0x36f8ee]=_0x2e1095['charCodeAt'](_0x36f8ee);return new _0xd5332['File']([_0x4f32d1],'image.'+_0x2ea787,{'type':_0x4874d4});}const _0x4ab5dc=_0x1b0aac['href']['split']('/'),_0xa9a3ce=_0x4ab5dc[_0x4ab5dc['length']-0x1],_0x42fc5b=_0xa9a3ce['split']('.')[0x1];return _0xd5332['fetch'](_0x1b0aac['href'])['then'](_0x10031e=>_0x10031e['clone']()['blob']())['then'](_0x1883a0=>new _0xd5332['File']([_0x1883a0],_0xa9a3ce,{'type':'image/'+_0x42fc5b}));}}class O extends _0x1fe490{['imageEditController'];static get['requires'](){return[_0x50a307];}['_isEditable'];constructor(_0x388ea2){super(_0x388ea2),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x27edcf){const _0x2daab0=G(_0x27edcf);return _0x2a447b=>!(!_0x2a447b||!_0x2a447b['is']('element','imageBlock')&&!_0x2a447b['is']('element','imageInline'))&&(!!_0x2a447b['hasAttribute']('uploadcareImageId')||!!_0x2a447b['hasAttribute']('src')&&_0x2daab0(_0x2a447b['getAttribute']('src')));}(_0x388ea2['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x1e5aaf=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x1e5aaf);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x43253c=this['editor']['model']['document']['selection']['getSelectedElement']();_0x43253c&&(_0x43253c['is']('element','imageBlock')||_0x43253c['is']('element','imageInline'))&&(this['imageEditController']=new E(this['editor'],this['editor']['plugins']['get'](_0x50a307),_0x43253c),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class R extends _0x1fe490{['refresh'](){const _0x38b583=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x38b583&&(_0x38b583['is']('element','imageBlock')||_0x38b583['is']('element','imageInline')));}['execute'](_0x5cd3de){const _0x3f16ed=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x1b5785=>{_0x1b5785['setAttributes'](_0x5cd3de,_0x3f16ed),_0x1b5785['removeAttribute']('srcset',_0x3f16ed),_0x1b5785['removeAttribute']('sizes',_0x3f16ed);});}}class m extends _0x5d705e{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[o,_0x1d64df,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0xb6cf9c}=this;_0xb6cf9c['commands']['add']('uploadcareImageEdit',new O(_0xb6cf9c)),_0xb6cf9c['commands']['add']('uploadcareImageReplace',new R(_0xb6cf9c));}}class g extends _0x5d705e{['_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 _0x5e1c87=this['editor'];_0x5e1c87['ui']['componentFactory']['add']('uploadcareImageEdit',_0x650b2a=>{const _0x5b1077=_0x5e1c87['commands']['get']('uploadcareImageEdit'),_0x5945b6=new _0x5d0d58(_0x650b2a),t=_0x650b2a['t'];return _0x5945b6['set']({'icon':_0x4e57ef,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x5945b6['bind']('isEnabled')['to'](_0x5b1077),_0x5945b6['bind']('isOn')['to'](_0x5b1077,'isActive'),this['listenTo'](_0x5945b6,'execute',()=>{_0x5e1c87['execute']('uploadcareImageEdit'),_0x5e1c87['editing']['view']['focus']();}),_0x5945b6;}),this['_initConfig']();}['_initConfig'](){const _0xdb9a1d=_0x5c2b58(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0xdb9a1d),this['listenTo'](this['editor'],'destroy',()=>{_0xdb9a1d['remove']();});}}class et extends _0x5d705e{static get['pluginName'](){return'UploadcareImageEdit';}static get['requires'](){return[m,g];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{tt as Uploadcare,w as UploadcareCommand,o as UploadcareEditing,et as UploadcareImageEdit,O as UploadcareImageEditCommand,m as UploadcareImageEditEditing,g as UploadcareImageEditUI,e as UploadcareUI,f as UploadcareUploadAdapter};
23
+ import{Plugin as _0x174ff2,Command as _0x3ed0fb}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x30f582,IconGooglePhotos as _0x2b1019,IconGoogleDrive as _0x326721,IconFacebook as _0x18bad0,IconDropbox as _0x29e3a4,IconUploadcareLink as _0x4d82d9,IconUploadcareImageUpload as _0x330af9,IconError as _0x4b99ea,IconUploadcareImageEdit as _0x231882}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x317920,MenuBarMenuListItemButtonView as _0x279be1,View as _0x490215,FocusCycler as _0x10595c,Dialog as _0x271a7a,DialogViewPosition as _0x2860bd,SpinnerView as _0x3504ba,IconView as _0x1450ba,Notification as _0x28e4cb}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0xeb071f,DomEmitterMixin as _0x39e80d,global as _0x5153d6,getAncestors as _0x59aef6,ObservableMixin as _0x3a593b,uid as _0xaa1dc5,createElement as _0x38904e}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x3b3b36}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x53f90f,info as _0x192060}from'@uploadcare/upload-client';import*as _0x2e6195 from'@uploadcare/file-uploader';var i=function(_0x4cb5fa){return _0x4cb5fa['Local']='local',_0x4cb5fa['URL']='url',_0x4cb5fa['Dropbox']='dropbox',_0x4cb5fa['GDrive']='gdrive',_0x4cb5fa['Facebook']='facebook',_0x4cb5fa['GPhotos']='gphotos',_0x4cb5fa['OneDrive']='onedrive',_0x4cb5fa;}({});function _(_0x3c7a43,_0x526945,_0x3c661f){const t=_0x3c7a43['t'],_0x2a9f1b=_0x3c7a43['t'];switch(_0x526945){case i['Local']:return{'text':_0x2a9f1b('Insert'===_0x3c661f?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x2a9f1b('From\x20computer')};case i['URL']:return{'text':'Insert'===_0x3c661f?_0x2a9f1b('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x2a9f1b('Via\x20URL')};case i['Dropbox']:return{'text':t('Insert'===_0x3c661f?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case i['Facebook']:return{'text':t('Insert'===_0x3c661f?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case i['GDrive']:return{'text':t('Insert'===_0x3c661f?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case i['GPhotos']:return{'text':t('Insert'===_0x3c661f?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case i['OneDrive']:return{'text':t('Insert'===_0x3c661f?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x526945;}}class e extends _0x174ff2{['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 _0x353b07=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x40168c;for(const _0x209272 in _0x353b07){const _0x181726=_0x209272,_0xb0e11=_0x353b07[_0x181726];if('uploadcareLicenseKeyValid'==_0xb0e11||'uploadcareLicenseKeyInvalid'==_0xb0e11||'uploadcareLicenseKeyExpired'==_0xb0e11||'uploadcareLicenseKeyDomainLimit'==_0xb0e11||'uploadcareLicenseKeyNotAllowed'==_0xb0e11||'uploadcareLicenseKeyEvaluationLimit'==_0xb0e11||'uploadcareLicenseKeyUsageLimit'==_0xb0e11){delete _0x353b07[_0x181726],_0x40168c=_0xb0e11,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x40168c&&_0x353b07['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x40168c&&_0x353b07['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x40168c&&_0x353b07['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x40168c&&_0x353b07['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x40168c&&_0x353b07['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyUsageLimit'==_0x40168c&&_0x353b07['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x28caa6}=this,_0x202ba=_0x28caa6['commands']['get']('uploadcare');if(!_0x202ba)return;const _0x43bb27=this['_normalizeConfigSourceList'](_0x28caa6['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x204024,_0x383c08)=>{const _0x5c04b9=this['_getIntegrationKey'](_0x383c08['type']);return _0x204024[_0x5c04b9]||(_0x204024[_0x5c04b9]=[]),_0x204024[_0x5c04b9]['push'](_0x383c08),_0x204024;},{});_0x28caa6['plugins']['has']('ImageInsertUI')&&_0x28caa6['commands']['get']('uploadcare')&&Object['entries'](_0x43bb27)['forEach'](([_0xc9d0f2,_0x29e654])=>{_0x28caa6['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0xc9d0f2,'observable':()=>_0x202ba,'buttonViewCreator':()=>this['_createToolbarButton'](_0x29e654),'formViewCreator':()=>this['_createDropdownButtons'](_0x29e654),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x29e654),'override':'assetManager'!==_0xc9d0f2});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x3ea0ad){const {locale:_0xed8c73}=this['editor'];return _0x3ea0ad['map'](_0x1734e6=>{const _0xdab0f=_(_0xed8c73,_0x1734e6,'Insert');switch(_0x1734e6){case i['Local']:return{'icon':_0x330af9,'type':i['Local'],..._0xdab0f};case i['URL']:return{'icon':_0x4d82d9,'type':i['URL'],..._0xdab0f};case i['Dropbox']:return{'icon':_0x29e3a4,'type':i['Dropbox'],..._0xdab0f};case i['Facebook']:return{'icon':_0x18bad0,'type':i['Facebook'],..._0xdab0f};case i['GDrive']:return{'icon':_0x326721,'type':i['GDrive'],..._0xdab0f};case i['GPhotos']:return{'icon':_0x2b1019,'type':i['GPhotos'],..._0xdab0f};case i['OneDrive']:return{'icon':_0x30f582,'type':i['OneDrive'],..._0xdab0f};}});}['_getIntegrationKey'](_0x27c28c){switch(_0x27c28c){case i['Local']:return'upload';case i['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x3845b9,_0x25cbfd){const _0x30111d=this['editor'],_0x655330=new _0x3845b9(_0x30111d['locale']),_0xc481c6=_0x30111d['commands']['get']('uploadcare');return _0x655330['bind']('isEnabled')['to'](_0xc481c6),_0x655330['on']('execute',()=>{_0xc481c6['execute'](_0x25cbfd);}),_0x655330;}['_createToolbarButton'](_0x33f6b8){const {locale:_0x2628cf}=this['editor'],_0x4d7b85=this['editor']['plugins']['get']('ImageInsertUI'),_0x2a95f1=_0x33f6b8[0x0],_0x533785=this['_createButton'](_0x317920,_0x2a95f1['type']);return _0x533785['icon']=_0x2a95f1['icon'],_0x533785['bind']('label')['to'](_0x4d7b85,'isImageSelected',_0x1be1f2=>_(_0x2628cf,_0x2a95f1['type'],_0x1be1f2?'Replace':'Insert')['text']),_0x533785['tooltip']=!0x0,_0x533785;}['_createDropdownButtons'](_0x157d39){const {locale:_0x27201f}=this['editor'],_0x2de8bf=this['editor']['plugins']['get']('ImageInsertUI');return _0x157d39['map'](_0x3a9281=>{const _0x30dbca=this['_createButton'](_0x317920,_0x3a9281['type']);return _0x30dbca['withText']=!0x0,_0x30dbca['icon']=_0x3a9281['icon'],_0x30dbca['bind']('label')['to'](_0x2de8bf,'isImageSelected',_0x205879=>_(_0x27201f,_0x3a9281['type'],_0x205879?'Replace':'Insert')['text']),_0x30dbca;});}['_createMenuBarButtons'](_0x3d771b){return _0x3d771b['map'](_0xb2fa79=>{const _0x2a3c52=this['_createButton'](_0x279be1,_0xb2fa79['type']);return _0x2a3c52['icon']=_0xb2fa79['icon'],_0x2a3c52['label']=_0xb2fa79['shortText'],_0x2a3c52;});}}class F extends _0x490215{['focusTracker'];['focusCycler'];constructor(_0x408a60){super(_0x408a60),this['focusTracker']=new _0xeb071f(),this['focusCycler']=new _0x10595c({'focusables':this['createCollection'](),'focusTracker':this['focusTracker']});}['getFocusableElement'](){return{'tag':'div','attributes':{'aria-hidden':'true','tabindex':'0'},'on':{'focus':this['bindTemplate']['to'](()=>{this['focusCycler']['fire']('forwardCycle');})}};}}class x extends F{constructor(_0x3cb88c,_0x2fbb06){super(_0x3cb88c),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-'+_0x2fbb06}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}}function C(_0x564a46,_0x2dd7c7){const _0x3749cc=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x20a0e8=>_0x20a0e8<=_0x2dd7c7)['map'](_0x5e171e=>_0x564a46['replace'](/\/$/,'')+'/-/resize/'+_0x5e171e+'x/\x20'+_0x5e171e+'w');return{'imageFallbackUrl':_0x564a46,'imageSources':[{'srcset':_0x3749cc['join'](',\x20'),'sizes':'(max-width:\x20'+_0x2dd7c7+'px)\x20100vw,\x20'+_0x2dd7c7+'px','type':'image/webp'}]};}function S(_0xd09216,_0x5713b0,_0x16544d){const _0x4ab494=_0xd09216['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x4ab494?parseInt(_0x4ab494[0x1],0xa):_0x5713b0,'height':_0x4ab494?parseInt(_0x4ab494[0x2],0xa):_0x16544d};}function p(_0x2d4d6d,_0x43ab9d){const _0x10182e=new(_0x39e80d())(),_0x1cda7f=_0x2d4d6d['plugins']['get']('ImageUtils'),_0x28f54a=_0x2d4d6d['editing']['mapper']['toViewElement'](_0x43ab9d),_0x1c1301=_0x1cda7f['findViewImgElement'](_0x28f54a),_0x5268fe=_0x2d4d6d['editing']['view']['domConverter']['viewToDom'](_0x1c1301),_0x23884c=_0x43ab9d['getAttribute']('width'),_0x3738cb=_0x43ab9d['getAttribute']('height'),_0x34c02c='image-processing';_0x2d4d6d['editing']['view']['change'](_0x1a8721=>{_0x1a8721['addClass'](_0x34c02c,_0x28f54a),_0x1a8721['setStyle']('aspect-ratio',_0x23884c+'/'+_0x3738cb,_0x1c1301);}),_0x10182e['listenTo'](_0x5268fe,'load',()=>{_0x10182e['stopListening'](_0x5268fe,'load'),_0x2d4d6d['editing']['view']['change'](_0x447edc=>{_0x447edc['removeClass'](_0x34c02c,_0x28f54a),_0x447edc['removeStyle']('aspect-ratio',_0x1c1301);});});}function G(_0x5bbfdb){if(Array['isArray'](_0x5bbfdb)){const _0x449dd3=_0x5bbfdb['map'](G);return _0x592fc7=>_0x449dd3['some'](_0x149087=>_0x149087(_0x592fc7));}if('origin'==_0x5bbfdb){const _0x313840=_0x5153d6['window']['location']['origin'];return _0x4c87dd=>new URL(_0x4c87dd,_0x5153d6['document']['baseURI'])['origin']==_0x313840;}return'function'==typeof _0x5bbfdb?_0x5bbfdb:_0x5bbfdb instanceof RegExp?_0x3a0fb5=>!(!_0x3a0fb5['match'](_0x5bbfdb)&&!_0x3a0fb5['replace'](/^https?:\/\//,'')['match'](_0x5bbfdb)):()=>!0x1;}function A(_0x55c8ad,_0x15076b){return _0x59aef6(_0x55c8ad['target'])['includes'](_0x15076b);}class n extends/* #__PURE__ -- @preserve */
24
+ _0x3a593b(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x365ff1,_0x2a8e17,_0x4bb082){super(),this['_editor']=_0x365ff1,this['_editing']=_0x2a8e17,this['_dialog']=_0x365ff1['plugins']['get'](_0x271a7a),this['_api']=_0x2a8e17['ctxElement']['getAPI'](),this['_type']=_0x4bb082,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:_0x2e24fb,model:_0x33a0ac}=this['_editor'],_0x1ca5a9=_0x33a0ac['document']['selection']['getSelectedElement'](),_0x17bef7=_0x1ca5a9&&(_0x1ca5a9['is']('element','imageBlock')||_0x1ca5a9['is']('element','imageInline'));this['_formView']=new x(_0x2e24fb,this['_editing']['ucContextId']),this['_dialog']['show']({'id':'uploadCare','icon':_0x330af9,'title':_(_0x2e24fb,this['_type'],_0x17bef7?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x2860bd['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x284514=>!A(_0x284514,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x10db58}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x56e7b5=>{const _0x4cfa02=_0x10db58['length'];for(const _0x5750c4 of _0x10db58){const _0x3ce547=_0x5750c4===_0x10db58[_0x4cfa02-0x1],{cdnUrl:_0xfb33a4,fileInfo:_0x217b9e}=_0x5750c4;if(!_0xfb33a4||!_0x217b9e)continue;const {width:_0x40048b,height:_0x454317}=_0x217b9e['imageInfo'],_0x19fda2=S(_0xfb33a4,_0x40048b,_0x454317),_0x98fc37=C(_0xfb33a4,_0x19fda2['width']),_0x57cb45={'id':_0x217b9e['uuid'],'type':'image','attributes':{'imageDimension':_0x19fda2,..._0x98fc37}};this['_insertAsset'](_0x57cb45,_0x3ce547,_0x56e7b5);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x20966f=>{'idle'===_0x20966f['detail']['status']&&!_0x20966f['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===i['Local']?this['_api']['setCurrentActivity'](i['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x44bf65,_0x2702a6,_0x44d865){const _0x35c8c9=this['_editor']['model']['document']['selection'],_0x23e61e=_0x35c8c9['getSelectedElement'](),_0x5628b3=!(!_0x23e61e||!_0x23e61e['is']('element','imageInline'));_0x44d865['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x44bf65,_0x5628b3),_0x2702a6||_0x44d865['setSelection'](_0x35c8c9['getLastPosition']());}['_insertImage'](_0x7ac5d3,_0xd9a511){const _0x2b1e11=this['_editor'],{imageDimension:_0x94c16c,imageFallbackUrl:_0x512f7b,imageSources:_0xb3f126}=_0x7ac5d3['attributes'];_0x2b1e11['execute']('insertImage',{'imageType':_0xd9a511?'imageInline':null,'source':{'uploadcareImageId':_0x7ac5d3['id'],'src':_0x512f7b,'sources':_0xb3f126,..._0x94c16c}});}}class w extends _0x3ed0fb{['_editing'];['_controller']=null;static get['requires'](){return[_0x271a7a,o];}constructor(_0x40112d){super(_0x40112d),this['_editing']=_0x40112d['plugins']['get'](o);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x114b52){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new n(this['editor'],this['_editing'],_0x114b52);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class j{static['upload']({file:_0x52734a,..._0x5868bf}){return _0x53f90f(_0x52734a,_0x5868bf);}static['getInfo'](_0x1fa460,_0x3bbbde){return _0x192060(_0x1fa460,_0x3bbbde);}}class f extends _0x174ff2{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x3b3b36,o];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x535c7d=this['editor'];if(!!!_0x535c7d['config']['get']('uploadcare'))return;_0x535c7d['plugins']['get'](_0x3b3b36)['createUploadAdapter']=_0x3b049e=>new k(_0x3b049e,_0x535c7d),_0x535c7d['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x1d86a5,{imageElement:_0x3d7fad,data:_0x49bc58})=>{_0x535c7d['model']['change'](_0x5a7be4=>{_0x5a7be4['setAttribute']('uploadcareImageId',_0x49bc58['uploadcareImageId'],_0x3d7fad);});});}}class k{['loader'];['editor'];['controller'];constructor(_0x35a83,_0xff4235){this['loader']=_0x35a83,this['editor']=_0xff4235,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x25d2f7=await this['loader']['file'];return j['upload']({'file':_0x25d2f7,'publicKey':this['editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['editor']['config']['get']('uploadcare.uploader.baseUrl'),'baseCDN':this['editor']['config']['get']('uploadcare.uploader.cdnCname'),'signal':this['controller']['signal'],'onProgress':_0x38827d=>{_0x38827d&&_0x38827d['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x38827d['value']);}})['then'](async _0x951341=>{const {imageFallbackUrl:_0x41feae,imageSources:_0x2d624f}=C(_0x951341['cdnUrl'],_0x951341['imageInfo']['width']);return{'uploadcareImageId':_0x951341['uuid'],'default':_0x41feae,'sources':_0x2d624f};})['catch'](()=>{const _0x496af8=t('Cannot\x20upload\x20file:')+('\x20'+_0x25d2f7['name']+'.');return Promise['reject'](_0x496af8);});}['abort'](){this['controller']['abort']();}}class o extends _0x174ff2{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',f,_0x271a7a];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['ucContextId'];get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}constructor(_0x329bfd){super(_0x329bfd),this['ucContextId']=_0xaa1dc5();}['init'](){const _0x5637cf=this['editor'];_0x5637cf['commands']['add']('uploadcare',new w(_0x5637cf));}['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 _0x1fa6ae=_0x5153d6['document']['querySelector']('input[uploadcare-file-input]');_0x1fa6ae&&_0x1fa6ae['remove']();}),async function(_0x38f9ec){const _0x15e85e=_0x35d83a([0x68,0x67,0x50,0x36,0x38,0x70,0x71,0x63,0x37,0x4f,0x42,0x4a,0x78,0x39,0x75,0x33,0x7a,0x72,0x48,0x61,0x74,0x59,0x55,0x58,0x66,0x30,0x34,0x54,0x64,0x56,0x6b,0x4d,0x46,0x6d,0x77,0x43,0x73,0x35,0x53,0x44,0x41,0x76,0x6a,0x32,0x31,0x69,0x57,0x51,0x47,0x65,0x5a,0x4b,0x4c,0x79,0x52,0x6c,0x45,0x4e,0x6e,0x6f,0x49,0x62]),_0x34ea6a=0x535f8c3a,_0x302c4f=0x5358f252^_0x34ea6a,_0x588a40=window[_0x35d83a([0x44,0x61,0x74,0x65])][_0x35d83a([0x6e,0x6f,0x77])](),_0x604a00=_0x38f9ec[_0x35d83a([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x565538=new window[(_0x35d83a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3774b9=>{_0x604a00[_0x35d83a([0x6f,0x6e,0x63,0x65])](_0x35d83a([0x72,0x65,0x61,0x64,0x79]),_0x3774b9);}),_0x27cfd3={[_0x35d83a([0x6b,0x74,0x79])]:_0x35d83a([0x45,0x43]),[_0x35d83a([0x75,0x73,0x65])]:_0x35d83a([0x73,0x69,0x67]),[_0x35d83a([0x63,0x72,0x76])]:_0x35d83a([0x50,0x2d,0x32,0x35,0x36]),[_0x35d83a([0x78])]:_0x35d83a([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]),[_0x35d83a([0x79])]:_0x35d83a([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]),[_0x35d83a([0x61,0x6c,0x67])]:_0x35d83a([0x45,0x53,0x32,0x35,0x36])},_0xf0df1=_0x604a00[_0x35d83a([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x35d83a([0x67,0x65,0x74])](_0x35d83a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x599adb(){let _0x4003ab,_0x2a6066=null,_0xdd07ab=null;try{if(_0xf0df1==_0x35d83a([0x47,0x50,0x4c]))return _0x35d83a([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x4003ab=_0x1de68f(),!_0x4003ab)return _0x35d83a([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x4003ab[_0x35d83a([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0xdd07ab=_0x39b64b(_0x4003ab[_0x35d83a([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x4003ab[_0x35d83a([0x6a,0x74,0x69])])),await _0x1b2cf7()?_0x6b3fa0()?_0x481932()?_0x35d83a([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x562934()?(_0x4003ab[_0x35d83a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x35d83a([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x2a6066=_0x1c3614(_0x35d83a([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x56b5d0()):_0x35d83a([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x35d83a([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x35d83a([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x35d83a([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x481932(){const _0x2e6be9=[_0x35d83a([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x35d83a([0x74,0x72,0x69,0x61,0x6c])][_0x35d83a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4003ab[_0x35d83a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x588a40/0x3e8:0xe10*_0x302c4f;return _0x4003ab[_0x35d83a([0x65,0x78,0x70])]<_0x2e6be9;}function _0x6b3fa0(){const _0x2696d8=_0x4003ab[_0x35d83a([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x2696d8&&(!!_0x2696d8[_0x35d83a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x35d83a([0x2a]))||!!_0x2696d8[_0x35d83a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x35d83a([0x55,0x50,0x4c,0x43])));}function _0x562934(){const _0x2400b2=_0x4003ab[_0x35d83a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x2400b2||0x0==_0x2400b2[_0x35d83a([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x5179b3}=new URL(window[_0x35d83a([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x2400b2[_0x35d83a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5179b3))return!0x0;const _0x34f355=_0x5179b3[_0x35d83a([0x73,0x70,0x6c,0x69,0x74])](_0x35d83a([0x2e]));return _0x2400b2[_0x35d83a([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x54136b=>_0x54136b[_0x35d83a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x35d83a([0x2a])))[_0x35d83a([0x6d,0x61,0x70])](_0x27c45a=>_0x27c45a[_0x35d83a([0x73,0x70,0x6c,0x69,0x74])](_0x35d83a([0x2e])))[_0x35d83a([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x1b3e5a=>_0x1b3e5a[_0x35d83a([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x34f355[_0x35d83a([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x35d83a([0x6d,0x61,0x70])](_0x44a92d=>Array(_0x34f355[_0x35d83a([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x44a92d[_0x35d83a([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x35d83a([0x66,0x69,0x6c,0x6c])](_0x44a92d[0x0]===_0x35d83a([0x2a])?_0x35d83a([0x2a]):'')[_0x35d83a([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x44a92d))[_0x35d83a([0x73,0x6f,0x6d,0x65])](_0x4f657e=>_0x34f355[_0x35d83a([0x65,0x76,0x65,0x72,0x79])]((_0x264b58,_0x12c84e)=>_0x4f657e[_0x12c84e]===_0x264b58||_0x4f657e[_0x12c84e]===_0x35d83a([0x2a])));}function _0x56b5d0(){return _0x2a6066&&_0xdd07ab?new window[(_0x35d83a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x512be2,_0x457c93)=>{_0x2a6066[_0x35d83a([0x74,0x68,0x65,0x6e])](_0x512be2,_0x457c93),_0xdd07ab[_0x35d83a([0x74,0x68,0x65,0x6e])](_0x6e7e94=>{_0x6e7e94!=_0x35d83a([0x56,0x61,0x6c,0x69,0x64])&&_0x512be2(_0x6e7e94);},_0x457c93);}):_0x2a6066||_0xdd07ab||_0x35d83a([0x56,0x61,0x6c,0x69,0x64]);}}function _0x39b64b(_0x5a4132,_0x3ee14e){return new window[(_0x35d83a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4af639=>{if(_0x296e07())return _0x4af639(_0x35d83a([0x56,0x61,0x6c,0x69,0x64]));_0x23d124(),_0x604a00[_0x35d83a([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x35d83a([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x5a0a77=!0x1;const _0x3e13af=_0xaa1dc5();function _0x5d54d5(_0x1d1618){return!!_0x1d1618&&(typeof _0x1d1618===_0x35d83a([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x1d1618===_0x35d83a([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x1d1618[_0x35d83a([0x74,0x68,0x65,0x6e])]===_0x35d83a([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x1d1618[_0x35d83a([0x63,0x61,0x74,0x63,0x68])]===_0x35d83a([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x235a3c(_0x3a1857){_0x38885d(_0x3a1857)[_0x35d83a([0x74,0x68,0x65,0x6e])](_0x567763=>{if(!_0x567763||_0x567763[_0x35d83a([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x35d83a([0x6f,0x6b]))return _0x35d83a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x2ff916(_0x3c614e(_0x3e13af+_0x3ee14e))!=_0x567763[_0x35d83a([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x35d83a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x35d83a([0x56,0x61,0x6c,0x69,0x64]);})[_0x35d83a([0x74,0x68,0x65,0x6e])](_0x35a6a2=>(_0x2b50d9(),_0x35a6a2),()=>{const _0x244e8d=_0x33b256();return null==_0x244e8d?(_0x2b50d9(),_0x35d83a([0x56,0x61,0x6c,0x69,0x64])):_0x35d83a(_0x588a40-_0x244e8d>(0x7753083a^_0x34ea6a)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x35d83a([0x74,0x68,0x65,0x6e])](_0x4af639)[_0x35d83a([0x63,0x61,0x74,0x63,0x68])](()=>{_0x4af639(_0x35d83a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x428478=0x536962ba^_0x34ea6a;function _0x2b50d9(){const _0x5d3d85=_0x35d83a([0x6c,0x6c,0x63,0x74,0x2d])+_0x2ff916(_0x3c614e(_0x5a4132)),_0x4fc7a3=_0x39a27c(_0x2ff916(window[_0x35d83a([0x4d,0x61,0x74,0x68])][_0x35d83a([0x63,0x65,0x69,0x6c])](_0x588a40/_0x428478)));window[_0x35d83a([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x35d83a([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x5d3d85,_0x4fc7a3);}function _0x33b256(){const _0x4e0470=_0x35d83a([0x6c,0x6c,0x63,0x74,0x2d])+_0x2ff916(_0x3c614e(_0x5a4132)),_0x223a86=window[_0x35d83a([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x35d83a([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4e0470);return _0x223a86?window[_0x35d83a([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x39a27c(_0x223a86),0x10)*_0x428478:null;}function _0x38885d(_0x297dec){return new window[(_0x35d83a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3d20e3,_0x2d7e0a)=>{_0x297dec[_0x35d83a([0x74,0x68,0x65,0x6e])](_0x3d20e3,_0x2d7e0a),window[_0x35d83a([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x2d7e0a,0x535e58fa^_0x34ea6a);});}}_0x604a00[_0x35d83a([0x6f,0x6e])](_0x35d83a([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x352f10,_0x590f72)=>{if(_0x590f72[0x0]!=_0x5a4132)return _0x4af639(_0x35d83a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x590f72[0x1]={..._0x590f72[0x1],[_0x35d83a([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x3e13af};},{[_0x35d83a([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x35d83a([0x68,0x69,0x67,0x68])}),_0x604a00[_0x35d83a([0x6f,0x6e])](_0x35d83a([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x1608bb=>{_0x5d54d5(_0x1608bb[_0x35d83a([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x5a0a77=!0x0,_0x235a3c(_0x1608bb[_0x35d83a([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x35d83a([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x35d83a([0x6c,0x6f,0x77])}),_0x565538[_0x35d83a([0x74,0x68,0x65,0x6e])](()=>{_0x5a0a77||_0x4af639(_0x35d83a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x296e07(){return _0x604a00[_0x35d83a([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x35d83a([0x76,0x69,0x65,0x77])][_0x35d83a([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x35d83a([0x61,0x75,0x74,0x6f]);}function _0x23d124(){_0x604a00[_0x35d83a([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x35d83a([0x76,0x69,0x65,0x77])][_0x35d83a([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x35d83a([0x61,0x75,0x74,0x6f]);}}function _0x1c3614(_0x43d7b4){const _0x45ebcb=[new window[(_0x35d83a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x29fbb0=>setTimeout(_0x29fbb0,0x5356b2f6^_0x34ea6a)),_0x565538[_0x35d83a([0x74,0x68,0x65,0x6e])](()=>new window[(_0x35d83a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x32d54f=>{let _0x354123=0x0;_0x604a00[_0x35d83a([0x6d,0x6f,0x64,0x65,0x6c])][_0x35d83a([0x6f,0x6e])](_0x35d83a([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x3d775,_0x5569bd)=>{_0x5569bd[0x0][_0x35d83a([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x354123++,_0x354123==(0x535f89d2^_0x34ea6a)&&(_0x32d54f(),_0x3d775[_0x35d83a([0x6f,0x66,0x66])]());});}))];return window[_0x35d83a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x35d83a([0x72,0x61,0x63,0x65])](_0x45ebcb)[_0x35d83a([0x74,0x68,0x65,0x6e])](()=>_0x43d7b4);}async function _0x3e737a(){await _0x565538,_0x604a00[_0x35d83a([0x6d,0x6f,0x64,0x65,0x6c])][_0x35d83a([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x18fc86,_0x604a00[_0x35d83a([0x6d,0x6f,0x64,0x65,0x6c])][_0x35d83a([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x18fc86,_0x604a00[_0x35d83a([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x35d83a([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x4e0af5(_0x2c0a76){const _0x1fb937=_0x2a5dc6();_0x604a00[_0x1fb937]=_0x35d83a([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x2c0a76,_0x2c0a76!=_0x35d83a([0x56,0x61,0x6c,0x69,0x64])&&_0x3e737a();}function _0x2a5dc6(){const _0x1e46c5=window[_0x35d83a([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x35d83a([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x35d83a([0x6e,0x6f,0x77])]())[_0x35d83a([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x35d83a([0x2e]),'');let _0x4f4fce=_0x35d83a([0x68]);for(let _0x25a421=0x0;_0x25a421<_0x1e46c5[_0x35d83a([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x25a421+=0x2){let _0x3a21c0=window[_0x35d83a([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1e46c5[_0x35d83a([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x25a421,_0x25a421+0x2));_0x3a21c0>=_0x15e85e[_0x35d83a([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x3a21c0-=_0x15e85e[_0x35d83a([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x4f4fce+=_0x15e85e[_0x3a21c0];}return _0x4f4fce;}function _0x1de68f(){const _0x4eea5e=_0xf0df1[_0x35d83a([0x73,0x70,0x6c,0x69,0x74])](_0x35d83a([0x2e]));if(0x3!=_0x4eea5e[_0x35d83a([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x3bc758(_0x4eea5e[0x1]);function _0x3bc758(_0x403b22){const _0x1f6b15=_0x56bdf1(_0x403b22);return _0x1f6b15&&_0x338a30()?_0x1f6b15:null;function _0x338a30(){const _0x7bbd03=_0x1f6b15[_0x35d83a([0x6a,0x74,0x69])],_0x382133=window[_0x35d83a([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x7bbd03[_0x35d83a([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x7bbd03[_0x35d83a([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x4d3651={..._0x1f6b15,[_0x35d83a([0x6a,0x74,0x69])]:_0x7bbd03[_0x35d83a([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x7bbd03[_0x35d83a([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x4d3651[_0x35d83a([0x76,0x63])],_0x3c614e(_0x4d3651)==_0x382133;}}}async function _0x1b2cf7(){let _0x1de938=!0x0;try{const _0x1e9c6f=_0xf0df1[_0x35d83a([0x73,0x70,0x6c,0x69,0x74])](_0x35d83a([0x2e])),[_0x5d94e0,_0x350bb3,_0x5d7213]=_0x1e9c6f;return _0x4e9c05(_0x5d94e0),await _0x32cbb0(_0x5d94e0,_0x350bb3,_0x5d7213),_0x1de938;}catch{return!0x1;}function _0x4e9c05(_0x5e4747){const _0x2230c8=_0x56bdf1(_0x5e4747);_0x2230c8&&_0x2230c8[_0x35d83a([0x61,0x6c,0x67])]==_0x35d83a([0x45,0x53,0x32,0x35,0x36])||(_0x1de938=!0x1);}async function _0x32cbb0(_0x9febd2,_0x21b260,_0x3c57bf){const _0x578ea1=window[_0x35d83a([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x35d83a([0x66,0x72,0x6f,0x6d])](_0x59f30b(_0x3c57bf),_0x1f5382=>_0x1f5382[_0x35d83a([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0xb3d6f8=new window[(_0x35d83a([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x35d83a([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x9febd2+_0x35d83a([0x2e])+_0x21b260),_0x1ac74a=window[_0x35d83a([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x35d83a([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x1ac74a)return;const _0x5a09e1=await _0x1ac74a[_0x35d83a([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x35d83a([0x6a,0x77,0x6b]),_0x27cfd3,{[_0x35d83a([0x6e,0x61,0x6d,0x65])]:_0x35d83a([0x45,0x43,0x44,0x53,0x41]),[_0x35d83a([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x35d83a([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x35d83a([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x1ac74a[_0x35d83a([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x35d83a([0x6e,0x61,0x6d,0x65])]:_0x35d83a([0x45,0x43,0x44,0x53,0x41]),[_0x35d83a([0x68,0x61,0x73,0x68])]:{[_0x35d83a([0x6e,0x61,0x6d,0x65])]:_0x35d83a([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x5a09e1,_0x578ea1,_0xb3d6f8)||(_0x1de938=!0x1);}}function _0x56bdf1(_0xbac85a){return _0xbac85a[_0x35d83a([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x35d83a([0x65,0x79]))?JSON[_0x35d83a([0x70,0x61,0x72,0x73,0x65])](_0x59f30b(_0xbac85a)):null;}function _0x59f30b(_0xd2f803){return window[_0x35d83a([0x61,0x74,0x6f,0x62])](_0xd2f803[_0x35d83a([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x35d83a([0x2b]))[_0x35d83a([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x35d83a([0x2f])));}function _0x3c614e(_0x1f9111){let _0x2bb44b=0x1505;function _0xc42fa2(_0x5aeb81){for(let _0x478645=0x0;_0x478645<_0x5aeb81[_0x35d83a([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x478645++){const _0x4f62a0=_0x5aeb81[_0x35d83a([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x478645);_0x2bb44b=(_0x2bb44b<<0x5)+_0x2bb44b+_0x4f62a0,_0x2bb44b&=_0x2bb44b;}}function _0x57d0d9(_0x3de2ea){Array[_0x35d83a([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x3de2ea)?_0x3de2ea[_0x35d83a([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x57d0d9):_0x3de2ea&&typeof _0x3de2ea==_0x35d83a([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x35d83a([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x3de2ea)[_0x35d83a([0x73,0x6f,0x72,0x74])]()[_0x35d83a([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x3c5665,_0xfaea80])=>{_0xc42fa2(_0x3c5665),_0x57d0d9(_0xfaea80);}):_0xc42fa2(window[_0x35d83a([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x3de2ea));}return _0x57d0d9(_0x1f9111),_0x2bb44b>>>0x0;}function _0x2ff916(_0x213234){return _0x213234[_0x35d83a([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x35d83a([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x35d83a([0x30]));}function _0x39a27c(_0x59eb2f){return _0x59eb2f[_0x35d83a([0x73,0x70,0x6c,0x69,0x74])]('')[_0x35d83a([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x35d83a([0x6a,0x6f,0x69,0x6e])]('');}function _0x18fc86(){}function _0x35d83a(_0x16934d){return _0x16934d['map'](_0x226571=>String['fromCharCode'](_0x226571))['join']('');}_0x4e0af5(await _0x599adb());}(this);}['_initSchema'](){const _0xc75799=this['editor']['model']['schema'];_0xc75799['isRegistered']('imageBlock')&&_0xc75799['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0xc75799['isRegistered']('imageInline')&&_0xc75799['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x2e8b24=this['editor'];_0x2e8b24['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x2e8b24['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x50372a=>_0x50372a['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x5f5cd5=_0x2e8b24['commands']['get']('replaceImageSource');_0x5f5cd5&&this['listenTo'](_0x5f5cd5,'cleanupImage',(_0x41067a,[_0xdbf325,_0x43018f])=>{_0xdbf325['removeAttribute']('uploadcareImageId',_0x43018f);});}['_initConfig'](){const _0x33f60b=this['editor']['config']['get']('uploadcare.uploader')||{},_0x1ae35d=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x38904e(_0x5153d6['document'],'uc-config',{..._0x33f60b,'pubkey':_0x1ae35d,'ctx-name':'uploader-'+this['ucContextId'],'sourceList':'','imgOnly':'true','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage'],'externalSourcesEmbedCss':'\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup\x20{\x20padding:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-menu\x20{\x20gap:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-footer\x20{\x20padding-top:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__separator\x20{\x20margin:\x200;\x20}\x0a\x09\x09\x09'}),this['_configElement']['iconHrefResolver']=_0x110cdc=>{if('closeMax'==_0x110cdc)return'#uc-icon-arrow-down';},_0x5153d6['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x38904e(_0x5153d6['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader-'+this['ucContextId']}),_0x5153d6['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x2c026c=this['editor']['commands']['get']('insertImage');_0x2c026c&&this['listenTo'](_0x2c026c,'execute',()=>{const _0x1d173f=this['editor']['model']['document']['selection']['getSelectedElement']();_0x1d173f&&_0x1d173f['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x1d173f);});});const _0x27312b=this['editor']['commands']['get']('uploadcareImageReplace');_0x27312b&&this['listenTo'](_0x27312b,'execute',()=>{const _0x485243=this['editor']['model']['document']['selection']['getSelectedElement']();_0x485243&&_0x485243['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x485243);});});}}class tt extends _0x174ff2{static get['requires'](){return[o,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x1b2f72){super(_0x1b2f72),_0x1b2f72['config']['define']('uploadcare.uploader.sourceList',[i['Local'],i['URL']]),_0x2e6195['defineComponents'](_0x2e6195),this['_defineLocale']();}['_defineLocale'](){const _0x5159ff=this['editor']['config']['get']('uploadcare.locale'),_0x5ac249=this['editor']['locale']['contentLanguage'];_0x5159ff&&_0x2e6195['defineLocale'](_0x5ac249,_0x5159ff);}}class ii extends _0x490215{constructor(_0x4b5203){super(_0x4b5203);const t=_0x4b5203['t'],_0x574350=this['bindTemplate'],_0x596287=new _0x3504ba();_0x596287['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':[_0x596287,{'text':_0x574350['to']('imageUploadProgress',_0x1d8182=>t('Loading\x20image...')+'\x20('+(_0x1d8182||0x0)+'%)')}]},{'tag':'div','attributes':{'class':['ck-uploadcare-form__skeleton']},'children':[{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'}]},{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'}]}]}]});}}class ti extends _0x490215{constructor(_0x4a129c){super(_0x4a129c);const t=_0x4a129c['t'];this['set']('errorType',null);const _0x51bbac=new _0x317920(_0x4a129c);_0x51bbac['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x51bbac['withText']=!0x0,_0x51bbac['class']='ck-button-action',_0x51bbac['on']('execute',()=>{this['fire']('retry');}),_0x51bbac['bind']('isVisible')['to'](this,'errorType',_0x2be274=>'NotFound'!==_0x2be274);const _0xf905b1=new _0x1450ba();_0xf905b1['content']=_0x4b99ea,_0xf905b1['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x57e91b=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':[_0xf905b1,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x57e91b['to']('errorType',_0x37dfbb=>t('NotFound'!==_0x37dfbb?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x51bbac]},{'tag':'div','attributes':{'class':['ck-uploadcare-form__skeleton']},'children':[{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'}]},{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'}]}]}]});}}class ei extends _0x490215{constructor(_0x120ce8,_0x164369){super(_0x120ce8);const _0x2dc0d8=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x164369,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x2dc0d8['to']('imageSrc')}});}}class X extends F{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0xc46d04,_0x477228,_0x5cc32f){super(_0xc46d04),this['_items']=this['createCollection'](),this['_loadingView']=new ii(_0xc46d04),this['_errorView']=new ti(_0xc46d04),this['_editingView']=new ei(_0xc46d04,_0x5cc32f),this['_focusableView']=new _0x490215(_0xc46d04),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x477228),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'],_0x384493=>{this['_addUploadcareImageEditorListeners'](_0x384493);});}),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'](_0x1a65ab,_0x2316b0){const _0x244270='uc-cloud-image-editor',_0x1cc12c=_0x1a65ab['querySelector'](_0x244270);if(_0x1cc12c)return _0x2316b0(_0x1cc12c);const _0x13622a=new MutationObserver(_0x441787=>{const _0x5314b9=_0x441787['filter'](_0x37911b=>_0x37911b['target']===_0x1a65ab&&_0x37911b['addedNodes']['length']>0x0&&_0x37911b['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x244270);_0x5314b9['length']&&(_0x13622a['disconnect'](),_0x2316b0(_0x5314b9[0x0]['addedNodes'][0x0]));});_0x13622a['observe'](_0x1a65ab,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x406a17){_0x406a17['addEventListener']('apply',_0x1733d4=>{this['fire']('apply',{'imageSrc':_0x1733d4['detail']['cdnUrl']});}),_0x406a17['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class E extends/* #__PURE__ -- @preserve */
25
+ _0x3a593b(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x34a247,_0x2fe250,_0x386aa9){super(),this['_editor']=_0x34a247,this['_dialog']=_0x2fe250,this['_imageElement']=_0x386aa9,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 _0x547cd1=this['_imageElement'],_0x50aa35=_0x547cd1['getAttribute']('uploadcareImageId'),_0x2f8ee6=_0x547cd1['getAttribute']('src');if(_0x50aa35)await this['_loadImageInfo'](_0x50aa35,_0x2f8ee6);else{if(this['_imageCache']['has'](_0x2f8ee6)){const _0x841746=this['_imageCache']['get'](_0x2f8ee6);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x841746['url'],this['imageDimension']=_0x841746['dimension'],this['imageId']=_0x841746['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0xfd4605}=this['_editor'],t=_0xfd4605['t'],_0x4409ac=new X(_0xfd4605,this['imageStatus'],this['_attributes']);_0x4409ac['bind']('status')['to'](this,'imageStatus'),_0x4409ac['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x4409ac['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x4409ac['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x4409ac,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x231882,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x4409ac,'position':_0x2860bd['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x4409ac['focus']();},'onHide':()=>{_0x4409ac['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0xdb9154=>!A(_0xdb9154,_0x4409ac['element'])}});}['_loadImageInfo'](_0x356ef5,_0x31b640){return j['getInfo'](_0x356ef5,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl')})['then'](_0x424371=>{const {width:_0x48eb95,height:_0x5357ce}=_0x424371['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x31b640,this['imageDimension']={'width':_0x48eb95,'height':_0x5357ce},this['imageId']=_0x356ef5;})['catch'](_0x1b9ac9=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x1b9ac9['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x2d3e05,_0x2e03ae){return this['_getImageAsFile'](_0x2d3e05)['then'](_0x4e6ccb=>j['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl'),'baseCDN':this['_editor']['config']['get']('uploadcare.uploader.cdnCname'),'signal':_0x2e03ae['signal'],'file':_0x4e6ccb,'onProgress':_0x343d01=>{_0x343d01&&_0x343d01['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x343d01['value']));}}))['then'](_0x58d23f=>{const {width:_0xbde3ae,height:_0x20c9c3}=_0x58d23f['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x58d23f['cdnUrl'],this['imageDimension']={'width':_0xbde3ae,'height':_0x20c9c3},this['imageId']=_0x58d23f['uuid'],this['imageUploadProgress']=null;const _0x282fe5=_0x2d3e05['getAttribute']('src');this['_imageCache']['set'](_0x282fe5,{'id':_0x58d23f['uuid'],'url':_0x58d23f['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x460c65=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x460c65['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x41d2a8,_0x813203){_0x41d2a8['on']('apply',(_0x3729fd,_0x3362ae)=>{this['_replaceImage'](_0x813203,_0x3362ae['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x41d2a8['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x41d2a8['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x2fd5fb,_0x226365,_0x558b34){const _0x243263=this['_editor'],{width:_0x25e588,height:_0x584603}=S(_0x226365,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x3fddce,imageSources:_0x38cfdd}=C(_0x226365,_0x25e588);_0x243263['model']['change'](_0x22bfa9=>{if('$graveyard'===_0x2fd5fb['root']['rootName']){_0x243263['execute']('insertImage',{'imageType':_0x2fd5fb['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x2fd5fb['getAttributes']()),'uploadcareImageId':_0x558b34,'src':_0x3fddce,'sources':_0x38cfdd,'width':_0x25e588,'height':_0x584603}});const _0x19469d=_0x2fd5fb['getChildren']();_0x2fd5fb=_0x243263['model']['document']['selection']['getSelectedElement']();for(const _0x12421c of _0x19469d)_0x22bfa9['append'](_0x22bfa9['cloneElement'](_0x12421c),_0x2fd5fb);}else _0x22bfa9['setSelection'](_0x2fd5fb,'on'),_0x243263['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x2fd5fb['getAttributes']()),'uploadcareImageId':_0x558b34,'src':_0x3fddce,'sources':_0x38cfdd,'width':_0x25e588,'height':_0x584603},_0x2fd5fb);_0x22bfa9['setSelection'](_0x2fd5fb,'on');});}async['_getImageAsFile'](_0x16485d){const _0x2c19d2=_0x5153d6['window'],_0x3442a9=_0x5153d6['document']['location']['href'],_0xe69982=new _0x2c19d2['URL'](_0x16485d['getAttribute']('src'),_0x3442a9);if('data:'===_0xe69982['protocol']){const _0x779977=_0xe69982['href']['split'](','),_0x37271b=_0x779977[0x0]['match'](/:(.*?);/)[0x1],_0x4d73a6=_0x37271b['split']('/')[0x1],_0x19c153=_0x2c19d2['atob'](_0x779977[_0x779977['length']-0x1]);let _0x28bad5=_0x19c153['length'];const _0x5d7aa5=new _0x2c19d2['Uint8Array'](_0x28bad5);for(;_0x28bad5--;)_0x5d7aa5[_0x28bad5]=_0x19c153['charCodeAt'](_0x28bad5);return new _0x2c19d2['File']([_0x5d7aa5],'image.'+_0x4d73a6,{'type':_0x37271b});}const _0x29e1fd=_0xe69982['href']['split']('/'),_0x5a1eab=_0x29e1fd[_0x29e1fd['length']-0x1],_0x349e65=_0x5a1eab['split']('.')[0x1];return _0x2c19d2['fetch'](_0xe69982['href'])['then'](_0x368377=>_0x368377['clone']()['blob']())['then'](_0x534ad1=>new _0x2c19d2['File']([_0x534ad1],_0x5a1eab,{'type':'image/'+_0x349e65}));}}class O extends _0x3ed0fb{['imageEditController'];static get['requires'](){return[_0x271a7a];}['_isEditable'];constructor(_0x888109){super(_0x888109),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x473497){const _0x2815be=G(_0x473497);return _0x14e644=>!(!_0x14e644||!_0x14e644['is']('element','imageBlock')&&!_0x14e644['is']('element','imageInline'))&&(!!_0x14e644['hasAttribute']('uploadcareImageId')||!!_0x14e644['hasAttribute']('src')&&_0x2815be(_0x14e644['getAttribute']('src')));}(_0x888109['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x107a4d=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x107a4d);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x51c5b0=this['editor']['model']['document']['selection']['getSelectedElement']();_0x51c5b0&&(_0x51c5b0['is']('element','imageBlock')||_0x51c5b0['is']('element','imageInline'))&&(this['imageEditController']=new E(this['editor'],this['editor']['plugins']['get'](_0x271a7a),_0x51c5b0),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class R extends _0x3ed0fb{['refresh'](){const _0x1778f7=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x1778f7&&(_0x1778f7['is']('element','imageBlock')||_0x1778f7['is']('element','imageInline')));}['execute'](_0x32bcf2){const _0x4e756e=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x247b74=>{_0x247b74['setAttributes'](_0x32bcf2,_0x4e756e),_0x247b74['removeAttribute']('srcset',_0x4e756e),_0x247b74['removeAttribute']('sizes',_0x4e756e);});}}class m extends _0x174ff2{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[o,_0x28e4cb,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x3878d7}=this;_0x3878d7['commands']['add']('uploadcareImageEdit',new O(_0x3878d7)),_0x3878d7['commands']['add']('uploadcareImageReplace',new R(_0x3878d7));}}class g extends _0x174ff2{['_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 _0x4cc23d=this['editor'];_0x4cc23d['ui']['componentFactory']['add']('uploadcareImageEdit',_0x4b8aa0=>{const _0x3f5cb6=_0x4cc23d['commands']['get']('uploadcareImageEdit'),_0x54336a=new _0x317920(_0x4b8aa0),t=_0x4b8aa0['t'];return _0x54336a['set']({'icon':_0x231882,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x54336a['bind']('isEnabled')['to'](_0x3f5cb6),_0x54336a['bind']('isOn')['to'](_0x3f5cb6,'isActive'),this['listenTo'](_0x54336a,'execute',()=>{_0x4cc23d['execute']('uploadcareImageEdit'),_0x4cc23d['editing']['view']['focus']();}),_0x54336a;}),this['_initConfig']();}['_initConfig'](){const _0x2e4ec3=_0x38904e(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x2e4ec3),this['listenTo'](this['editor'],'destroy',()=>{_0x2e4ec3['remove']();});}}class et extends _0x174ff2{static get['pluginName'](){return'UploadcareImageEdit';}static get['requires'](){return[m,g];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{tt as Uploadcare,w as UploadcareCommand,o as UploadcareEditing,et as UploadcareImageEdit,O as UploadcareImageEditCommand,m as UploadcareImageEditEditing,g as UploadcareImageEditUI,e as UploadcareUI,f as UploadcareUploadAdapter};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ckeditor/ckeditor5-uploadcare",
3
- "version": "0.0.0-nightly-20260109.0",
3
+ "version": "0.0.0-nightly-20260110.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-20260109.0",
27
- "@ckeditor/ckeditor5-icons": "0.0.0-nightly-20260109.0",
28
- "@ckeditor/ckeditor5-image": "0.0.0-nightly-20260109.0",
29
- "@ckeditor/ckeditor5-theme-lark": "0.0.0-nightly-20260109.0",
30
- "@ckeditor/ckeditor5-ui": "0.0.0-nightly-20260109.0",
31
- "@ckeditor/ckeditor5-upload": "0.0.0-nightly-20260109.0",
32
- "@ckeditor/ckeditor5-utils": "0.0.0-nightly-20260109.0",
33
- "ckeditor5": "0.0.0-nightly-20260109.0",
26
+ "@ckeditor/ckeditor5-core": "0.0.0-nightly-20260110.0",
27
+ "@ckeditor/ckeditor5-icons": "0.0.0-nightly-20260110.0",
28
+ "@ckeditor/ckeditor5-image": "0.0.0-nightly-20260110.0",
29
+ "@ckeditor/ckeditor5-theme-lark": "0.0.0-nightly-20260110.0",
30
+ "@ckeditor/ckeditor5-ui": "0.0.0-nightly-20260110.0",
31
+ "@ckeditor/ckeditor5-upload": "0.0.0-nightly-20260110.0",
32
+ "@ckeditor/ckeditor5-utils": "0.0.0-nightly-20260110.0",
33
+ "ckeditor5": "0.0.0-nightly-20260110.0",
34
34
  "@uploadcare/file-uploader": "1.24.5",
35
35
  "@uploadcare/upload-client": "6.14.3"
36
36
  },
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x37fde2=_0x4e26;(function(_0x1e66ef,_0x5db8cd){const _0x445400=_0x4e26,_0x5a7ad5=_0x1e66ef();while(!![]){try{const _0x2662cc=-parseInt(_0x445400(0x1c4))/0x1+-parseInt(_0x445400(0x1ea))/0x2*(parseInt(_0x445400(0x1ad))/0x3)+-parseInt(_0x445400(0x1e6))/0x4*(-parseInt(_0x445400(0x1f9))/0x5)+-parseInt(_0x445400(0x1db))/0x6*(-parseInt(_0x445400(0x1d5))/0x7)+-parseInt(_0x445400(0x1bc))/0x8*(-parseInt(_0x445400(0x1f4))/0x9)+parseInt(_0x445400(0x1dc))/0xa+parseInt(_0x445400(0x1d2))/0xb*(-parseInt(_0x445400(0x1b4))/0xc);if(_0x2662cc===_0x5db8cd)break;else _0x5a7ad5['push'](_0x5a7ad5['shift']());}catch(_0x546f53){_0x5a7ad5['push'](_0x5a7ad5['shift']());}}}(_0x220a,0xd061f));import{Plugin as _0x4b0f24}from'ckeditor5/src/core.js';import{Dialog as _0x3f0ba4}from'ckeditor5/src/ui.js';function _0x4e26(_0x1d55d3,_0x5c4746){const _0x220adb=_0x220a();return _0x4e26=function(_0x4e26d8,_0x1bea7d){_0x4e26d8=_0x4e26d8-0x1a5;let _0x5dac37=_0x220adb[_0x4e26d8];return _0x5dac37;},_0x4e26(_0x1d55d3,_0x5c4746);}import{createElement as _0x5363bc,global as _0x195fb9,uid as _0x205e72}from'ckeditor5/src/utils.js';import{UploadcareCommand as _0x4366e1}from'./uploadcarecommand.js';function _0x220a(){const _0x457aec=['href','imageBlock','uploadcare.uploader','map','afterInit','ctxElement','document','uploadcareImageId','downcast','40qMetls','querySelector','elementToAttribute','join','2970346clTEeR','UploadcareEditing','fromCharCode','PictureEditing','render','_configElement','_initImageProcessingIndicator','editor','_ctxElement','contentLanguage','423iSkfLI','imageInline','replaceImageSource','uploader-','uploadcare','731840jkrkfX','editing','closeMax','get','for','getAttribute','attributeToAttribute','init','uploadcare.pubkey','selection','input[uploadcare-file-input]','3tepOFZ','conversion','iconHrefResolver','true','commands','\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup\x20{\x20padding:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-menu\x20{\x20gap:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-footer\x20{\x20padding-top:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__separator\x20{\x20margin:\x200;\x20}\x0a\x09\x09\x09','_initSchema','19656408MFBDJc','isPremiumPlugin','uc-upload-ctx-provider','_initConversion','uc-config','add','data-uc-image-id','execute','81160hbtKtT','pluginName','upcast','removeAttribute','isOfficialPlugin','requires','config','view','626806AYoxeP','body','_initConfig','cleanupImage','getSelectedElement','schema','_initCtx','appendChild','uploadcareImageReplace','once','model','insertImage','destroy','#uc-icon-arrow-down','11AZktdW','configElement','locale','98egddem','ucContextId','extend','isRegistered','listenTo','remove','515166MxQLcL','14609990OSOZrB'];_0x220a=function(){return _0x457aec;};return _0x220a();}import{UploadcareUploadAdapter as _0x5a2714}from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0x4418a4}from'./utils/editingutils.js';export class UploadcareEditing extends _0x4b0f24{[_0x37fde2(0x1ef)]=null;[_0x37fde2(0x1f2)]=null;static get[_0x37fde2(0x1bd)](){const _0x1b26e0=_0x37fde2;return _0x1b26e0(0x1eb);}static get[_0x37fde2(0x1c1)](){const _0x240c1e=_0x37fde2;return[_0x240c1e(0x1ed),_0x5a2714,_0x3f0ba4];}static get[_0x37fde2(0x1c0)](){return!0x0;}static get[_0x37fde2(0x1b5)](){return!0x0;}[_0x37fde2(0x1d6)];get[_0x37fde2(0x1d3)](){const _0x370ce8=_0x37fde2;return this[_0x370ce8(0x1ef)];}get[_0x37fde2(0x1e2)](){const _0x992cb6=_0x37fde2;return this[_0x992cb6(0x1f2)];}constructor(_0x1c94c1){const _0x9d86ba=_0x37fde2;super(_0x1c94c1),this[_0x9d86ba(0x1d6)]=_0x205e72();}[_0x37fde2(0x1a9)](){const _0x71bffd=_0x37fde2,_0x16e4a1=this[_0x71bffd(0x1f1)];_0x16e4a1[_0x71bffd(0x1b1)][_0x71bffd(0x1b9)](_0x71bffd(0x1f8),new _0x4366e1(_0x16e4a1));}[_0x37fde2(0x1e1)](){const _0x440927=_0x37fde2;this[_0x440927(0x1b3)](),this[_0x440927(0x1b7)](),this[_0x440927(0x1c6)](),this[_0x440927(0x1ca)](),this[_0x440927(0x1f0)](),this[_0x440927(0x1d9)](this[_0x440927(0x1f1)],_0x440927(0x1d0),()=>{const _0x47e7a7=_0x440927;this[_0x47e7a7(0x1ef)]&&(this[_0x47e7a7(0x1ef)][_0x47e7a7(0x1da)](),this[_0x47e7a7(0x1ef)]=null),this[_0x47e7a7(0x1f2)]&&(this[_0x47e7a7(0x1f2)][_0x47e7a7(0x1da)](),this[_0x47e7a7(0x1f2)]=null);const _0x2a090c=_0x195fb9[_0x47e7a7(0x1e3)][_0x47e7a7(0x1e7)](_0x47e7a7(0x1ac));_0x2a090c&&_0x2a090c[_0x47e7a7(0x1da)]();}),async function(_0x4c7f4f){const _0x21ff3e=_0x31c180([0x68,0x67,0x50,0x36,0x38,0x70,0x71,0x63,0x37,0x4f,0x42,0x4a,0x78,0x39,0x75,0x33,0x7a,0x72,0x48,0x61,0x74,0x59,0x55,0x58,0x66,0x30,0x34,0x54,0x64,0x56,0x6b,0x4d,0x46,0x6d,0x77,0x43,0x73,0x35,0x53,0x44,0x41,0x76,0x6a,0x32,0x31,0x69,0x57,0x51,0x47,0x65,0x5a,0x4b,0x4c,0x79,0x52,0x6c,0x45,0x4e,0x6e,0x6f,0x49,0x62]),_0x51c81b=0x535f8c3a,_0x28b1c4=0x5358f26a^_0x51c81b,_0xc3eb01=window[_0x31c180([0x44,0x61,0x74,0x65])][_0x31c180([0x6e,0x6f,0x77])](),_0x126fec=_0x4c7f4f[_0x31c180([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x2412a5=new window[(_0x31c180([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1e840f=>{_0x126fec[_0x31c180([0x6f,0x6e,0x63,0x65])](_0x31c180([0x72,0x65,0x61,0x64,0x79]),_0x1e840f);}),_0x1d4efb={[_0x31c180([0x6b,0x74,0x79])]:_0x31c180([0x45,0x43]),[_0x31c180([0x75,0x73,0x65])]:_0x31c180([0x73,0x69,0x67]),[_0x31c180([0x63,0x72,0x76])]:_0x31c180([0x50,0x2d,0x32,0x35,0x36]),[_0x31c180([0x78])]:_0x31c180([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]),[_0x31c180([0x79])]:_0x31c180([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]),[_0x31c180([0x61,0x6c,0x67])]:_0x31c180([0x45,0x53,0x32,0x35,0x36])},_0x153e49=_0x126fec[_0x31c180([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x31c180([0x67,0x65,0x74])](_0x31c180([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x1f0a18(){let _0x4d6756,_0x5cb64f=null,_0xa7de46=null;try{if(_0x153e49==_0x31c180([0x47,0x50,0x4c]))return _0x31c180([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x4d6756=_0x4b05eb(),!_0x4d6756)return _0x31c180([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x4d6756[_0x31c180([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0xa7de46=_0x10b34e(_0x4d6756[_0x31c180([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x4d6756[_0x31c180([0x6a,0x74,0x69])])),await _0x5ceb61()?_0x12e03b()?_0x1bdf3b()?_0x31c180([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x141fd9()?(_0x4d6756[_0x31c180([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x31c180([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x5cb64f=_0x5ba7fb(_0x31c180([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x239687()):_0x31c180([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x31c180([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x31c180([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x31c180([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x1bdf3b(){const _0x43d643=[_0x31c180([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x31c180([0x74,0x72,0x69,0x61,0x6c])][_0x31c180([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4d6756[_0x31c180([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0xc3eb01/0x3e8:0xe10*_0x28b1c4;return _0x4d6756[_0x31c180([0x65,0x78,0x70])]<_0x43d643;}function _0x12e03b(){const _0x44a0bc=_0x4d6756[_0x31c180([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x44a0bc&&(!!_0x44a0bc[_0x31c180([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x31c180([0x2a]))||!!_0x44a0bc[_0x31c180([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x31c180([0x55,0x50,0x4c,0x43])));}function _0x141fd9(){const _0x539ab8=_0x4e26,_0x4dc05c=_0x4d6756[_0x31c180([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x4dc05c||0x0==_0x4dc05c[_0x31c180([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x3189cf}=new URL(window[_0x31c180([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x539ab8(0x1dd)]);if(_0x4dc05c[_0x31c180([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3189cf))return!0x0;const _0x23baad=_0x3189cf[_0x31c180([0x73,0x70,0x6c,0x69,0x74])](_0x31c180([0x2e]));return _0x4dc05c[_0x31c180([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x212ead=>_0x212ead[_0x31c180([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x31c180([0x2a])))[_0x31c180([0x6d,0x61,0x70])](_0x501f10=>_0x501f10[_0x31c180([0x73,0x70,0x6c,0x69,0x74])](_0x31c180([0x2e])))[_0x31c180([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x6e124d=>_0x6e124d[_0x31c180([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x23baad[_0x31c180([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x31c180([0x6d,0x61,0x70])](_0x276011=>Array(_0x23baad[_0x31c180([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x276011[_0x31c180([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x31c180([0x66,0x69,0x6c,0x6c])](_0x276011[0x0]===_0x31c180([0x2a])?_0x31c180([0x2a]):'')[_0x31c180([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x276011))[_0x31c180([0x73,0x6f,0x6d,0x65])](_0x1be38b=>_0x23baad[_0x31c180([0x65,0x76,0x65,0x72,0x79])]((_0x50c58a,_0x765f85)=>_0x1be38b[_0x765f85]===_0x50c58a||_0x1be38b[_0x765f85]===_0x31c180([0x2a])));}function _0x239687(){return _0x5cb64f&&_0xa7de46?new window[(_0x31c180([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x21ff31,_0x31a4f1)=>{_0x5cb64f[_0x31c180([0x74,0x68,0x65,0x6e])](_0x21ff31,_0x31a4f1),_0xa7de46[_0x31c180([0x74,0x68,0x65,0x6e])](_0x1d5b6d=>{_0x1d5b6d!=_0x31c180([0x56,0x61,0x6c,0x69,0x64])&&_0x21ff31(_0x1d5b6d);},_0x31a4f1);}):_0x5cb64f||_0xa7de46||_0x31c180([0x56,0x61,0x6c,0x69,0x64]);}}function _0x10b34e(_0x147f98,_0x36e1e5){return new window[(_0x31c180([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5161ed=>{if(_0x47afa6())return _0x5161ed(_0x31c180([0x56,0x61,0x6c,0x69,0x64]));_0xd2f320(),_0x126fec[_0x31c180([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x31c180([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x2b2944=!0x1;const _0x192345=_0x205e72();function _0x5c2189(_0x2e626f){return!!_0x2e626f&&(typeof _0x2e626f===_0x31c180([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x2e626f===_0x31c180([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x2e626f[_0x31c180([0x74,0x68,0x65,0x6e])]===_0x31c180([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x2e626f[_0x31c180([0x63,0x61,0x74,0x63,0x68])]===_0x31c180([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x2ab266(_0x265a72){_0xfcc6d1(_0x265a72)[_0x31c180([0x74,0x68,0x65,0x6e])](_0x130a63=>{if(!_0x130a63||_0x130a63[_0x31c180([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x31c180([0x6f,0x6b]))return _0x31c180([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0xc092b5(_0x2fafcf(_0x192345+_0x36e1e5))!=_0x130a63[_0x31c180([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x31c180([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x31c180([0x56,0x61,0x6c,0x69,0x64]);})[_0x31c180([0x74,0x68,0x65,0x6e])](_0x2a932f=>(_0x5df4d0(),_0x2a932f),()=>{const _0x373fa2=_0x5decec();return null==_0x373fa2?(_0x5df4d0(),_0x31c180([0x56,0x61,0x6c,0x69,0x64])):_0x31c180(_0xc3eb01-_0x373fa2>(0x7753083a^_0x51c81b)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x31c180([0x74,0x68,0x65,0x6e])](_0x5161ed)[_0x31c180([0x63,0x61,0x74,0x63,0x68])](()=>{_0x5161ed(_0x31c180([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0xebc560=0x536962ba^_0x51c81b;function _0x5df4d0(){const _0x5ada4d=_0x31c180([0x6c,0x6c,0x63,0x74,0x2d])+_0xc092b5(_0x2fafcf(_0x147f98)),_0x284dcb=_0x354d49(_0xc092b5(window[_0x31c180([0x4d,0x61,0x74,0x68])][_0x31c180([0x63,0x65,0x69,0x6c])](_0xc3eb01/_0xebc560)));window[_0x31c180([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x31c180([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x5ada4d,_0x284dcb);}function _0x5decec(){const _0x48fc95=_0x31c180([0x6c,0x6c,0x63,0x74,0x2d])+_0xc092b5(_0x2fafcf(_0x147f98)),_0x42a85b=window[_0x31c180([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x31c180([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x48fc95);return _0x42a85b?window[_0x31c180([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x354d49(_0x42a85b),0x10)*_0xebc560:null;}function _0xfcc6d1(_0xd79fec){return new window[(_0x31c180([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1481cc,_0xecac72)=>{_0xd79fec[_0x31c180([0x74,0x68,0x65,0x6e])](_0x1481cc,_0xecac72),window[_0x31c180([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0xecac72,0x535e58fa^_0x51c81b);});}}_0x126fec[_0x31c180([0x6f,0x6e])](_0x31c180([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x4473d4,_0x15915a)=>{if(_0x15915a[0x0]!=_0x147f98)return _0x5161ed(_0x31c180([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x15915a[0x1]={..._0x15915a[0x1],[_0x31c180([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x192345};},{[_0x31c180([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x31c180([0x68,0x69,0x67,0x68])}),_0x126fec[_0x31c180([0x6f,0x6e])](_0x31c180([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x56e34d=>{_0x5c2189(_0x56e34d[_0x31c180([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x2b2944=!0x0,_0x2ab266(_0x56e34d[_0x31c180([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x31c180([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x31c180([0x6c,0x6f,0x77])}),_0x2412a5[_0x31c180([0x74,0x68,0x65,0x6e])](()=>{_0x2b2944||_0x5161ed(_0x31c180([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x47afa6(){return _0x126fec[_0x31c180([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x31c180([0x76,0x69,0x65,0x77])][_0x31c180([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x31c180([0x61,0x75,0x74,0x6f]);}function _0xd2f320(){_0x126fec[_0x31c180([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x31c180([0x76,0x69,0x65,0x77])][_0x31c180([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x31c180([0x61,0x75,0x74,0x6f]);}}function _0x5ba7fb(_0x49e0a9){const _0x508fdb=[new window[(_0x31c180([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4e8ae2=>setTimeout(_0x4e8ae2,0x5356b2f6^_0x51c81b)),_0x2412a5[_0x31c180([0x74,0x68,0x65,0x6e])](()=>new window[(_0x31c180([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x359c97=>{let _0x5f1ee5=0x0;_0x126fec[_0x31c180([0x6d,0x6f,0x64,0x65,0x6c])][_0x31c180([0x6f,0x6e])](_0x31c180([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x3e6d07,_0x2a1203)=>{_0x2a1203[0x0][_0x31c180([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x5f1ee5++,_0x5f1ee5==(0x535f89d2^_0x51c81b)&&(_0x359c97(),_0x3e6d07[_0x31c180([0x6f,0x66,0x66])]());});}))];return window[_0x31c180([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x31c180([0x72,0x61,0x63,0x65])](_0x508fdb)[_0x31c180([0x74,0x68,0x65,0x6e])](()=>_0x49e0a9);}async function _0x5ee70e(){await _0x2412a5,_0x126fec[_0x31c180([0x6d,0x6f,0x64,0x65,0x6c])][_0x31c180([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x5e8bc1,_0x126fec[_0x31c180([0x6d,0x6f,0x64,0x65,0x6c])][_0x31c180([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x5e8bc1,_0x126fec[_0x31c180([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x31c180([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x37f19a(_0x1f2aef){const _0x2256e1=_0x199c71();_0x126fec[_0x2256e1]=_0x31c180([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x1f2aef,_0x1f2aef!=_0x31c180([0x56,0x61,0x6c,0x69,0x64])&&_0x5ee70e();}function _0x199c71(){const _0x251417=window[_0x31c180([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x31c180([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x31c180([0x6e,0x6f,0x77])]())[_0x31c180([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x31c180([0x2e]),'');let _0x900563=_0x31c180([0x68]);for(let _0x14a393=0x0;_0x14a393<_0x251417[_0x31c180([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x14a393+=0x2){let _0x4c7e02=window[_0x31c180([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x251417[_0x31c180([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x14a393,_0x14a393+0x2));_0x4c7e02>=_0x21ff3e[_0x31c180([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x4c7e02-=_0x21ff3e[_0x31c180([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x900563+=_0x21ff3e[_0x4c7e02];}return _0x900563;}function _0x4b05eb(){const _0x13e55e=_0x153e49[_0x31c180([0x73,0x70,0x6c,0x69,0x74])](_0x31c180([0x2e]));if(0x3!=_0x13e55e[_0x31c180([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x51554e(_0x13e55e[0x1]);function _0x51554e(_0x30d5ba){const _0x2ca74b=_0xd91479(_0x30d5ba);return _0x2ca74b&&_0x44d941()?_0x2ca74b:null;function _0x44d941(){const _0x4fef2b=_0x2ca74b[_0x31c180([0x6a,0x74,0x69])],_0xb0675c=window[_0x31c180([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4fef2b[_0x31c180([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4fef2b[_0x31c180([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x429f81={..._0x2ca74b,[_0x31c180([0x6a,0x74,0x69])]:_0x4fef2b[_0x31c180([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x4fef2b[_0x31c180([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x429f81[_0x31c180([0x76,0x63])],_0x2fafcf(_0x429f81)==_0xb0675c;}}}async function _0x5ceb61(){let _0x3703ea=!0x0;try{const _0x2cf8e4=_0x153e49[_0x31c180([0x73,0x70,0x6c,0x69,0x74])](_0x31c180([0x2e])),[_0x2dbf61,_0x13f511,_0x3f986d]=_0x2cf8e4;return _0x10144e(_0x2dbf61),await _0x5a4220(_0x2dbf61,_0x13f511,_0x3f986d),_0x3703ea;}catch{return!0x1;}function _0x10144e(_0x4a6cd6){const _0x5c4feb=_0xd91479(_0x4a6cd6);_0x5c4feb&&_0x5c4feb[_0x31c180([0x61,0x6c,0x67])]==_0x31c180([0x45,0x53,0x32,0x35,0x36])||(_0x3703ea=!0x1);}async function _0x5a4220(_0x760a28,_0x364c6c,_0x1a6eec){const _0x2c804c=window[_0x31c180([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x31c180([0x66,0x72,0x6f,0x6d])](_0x3e1bad(_0x1a6eec),_0x4012e6=>_0x4012e6[_0x31c180([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x277305=new window[(_0x31c180([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x31c180([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x760a28+_0x31c180([0x2e])+_0x364c6c),_0x31225c=window[_0x31c180([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x31c180([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x31225c)return;const _0x553ff5=await _0x31225c[_0x31c180([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x31c180([0x6a,0x77,0x6b]),_0x1d4efb,{[_0x31c180([0x6e,0x61,0x6d,0x65])]:_0x31c180([0x45,0x43,0x44,0x53,0x41]),[_0x31c180([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x31c180([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x31c180([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x31225c[_0x31c180([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x31c180([0x6e,0x61,0x6d,0x65])]:_0x31c180([0x45,0x43,0x44,0x53,0x41]),[_0x31c180([0x68,0x61,0x73,0x68])]:{[_0x31c180([0x6e,0x61,0x6d,0x65])]:_0x31c180([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x553ff5,_0x2c804c,_0x277305)||(_0x3703ea=!0x1);}}function _0xd91479(_0x195e87){return _0x195e87[_0x31c180([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x31c180([0x65,0x79]))?JSON[_0x31c180([0x70,0x61,0x72,0x73,0x65])](_0x3e1bad(_0x195e87)):null;}function _0x3e1bad(_0x2ffd66){return window[_0x31c180([0x61,0x74,0x6f,0x62])](_0x2ffd66[_0x31c180([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x31c180([0x2b]))[_0x31c180([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x31c180([0x2f])));}function _0x2fafcf(_0x16ac63){let _0x229227=0x1505;function _0x63f084(_0xf13093){for(let _0x355ef3=0x0;_0x355ef3<_0xf13093[_0x31c180([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x355ef3++){const _0x16757c=_0xf13093[_0x31c180([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x355ef3);_0x229227=(_0x229227<<0x5)+_0x229227+_0x16757c,_0x229227&=_0x229227;}}function _0x48c1a6(_0x3805e5){Array[_0x31c180([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x3805e5)?_0x3805e5[_0x31c180([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x48c1a6):_0x3805e5&&typeof _0x3805e5==_0x31c180([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x31c180([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x3805e5)[_0x31c180([0x73,0x6f,0x72,0x74])]()[_0x31c180([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x382a97,_0x159f40])=>{_0x63f084(_0x382a97),_0x48c1a6(_0x159f40);}):_0x63f084(window[_0x31c180([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x3805e5));}return _0x48c1a6(_0x16ac63),_0x229227>>>0x0;}function _0xc092b5(_0x29b3b8){return _0x29b3b8[_0x31c180([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x31c180([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x31c180([0x30]));}function _0x354d49(_0x2dfd3a){return _0x2dfd3a[_0x31c180([0x73,0x70,0x6c,0x69,0x74])]('')[_0x31c180([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x31c180([0x6a,0x6f,0x69,0x6e])]('');}function _0x5e8bc1(){}function _0x31c180(_0x480ebd){const _0x1ee955=_0x4e26;return _0x480ebd[_0x1ee955(0x1e0)](_0x4965d9=>String[_0x1ee955(0x1ec)](_0x4965d9))[_0x1ee955(0x1e9)]('');}_0x37f19a(await _0x1f0a18());}(this);}[_0x37fde2(0x1b3)](){const _0x1ebec8=_0x37fde2,_0x559562=this[_0x1ebec8(0x1f1)][_0x1ebec8(0x1ce)][_0x1ebec8(0x1c9)];_0x559562[_0x1ebec8(0x1d8)](_0x1ebec8(0x1de))&&_0x559562[_0x1ebec8(0x1d7)](_0x1ebec8(0x1de),{'allowAttributes':[_0x1ebec8(0x1e4)]}),_0x559562[_0x1ebec8(0x1d8)](_0x1ebec8(0x1f5))&&_0x559562[_0x1ebec8(0x1d7)](_0x1ebec8(0x1f5),{'allowAttributes':[_0x1ebec8(0x1e4)]});}[_0x37fde2(0x1b7)](){const _0x2cda71=_0x37fde2,_0x4ed7df=this[_0x2cda71(0x1f1)];_0x4ed7df[_0x2cda71(0x1ae)][_0x2cda71(0x1a6)](_0x2cda71(0x1e5))[_0x2cda71(0x1a8)]({'model':_0x2cda71(0x1e4),'view':_0x2cda71(0x1ba)}),_0x4ed7df[_0x2cda71(0x1ae)][_0x2cda71(0x1a6)](_0x2cda71(0x1be))[_0x2cda71(0x1e8)]({'model':{'key':_0x2cda71(0x1e4),'value':_0x228f17=>_0x228f17[_0x2cda71(0x1a7)](_0x2cda71(0x1ba))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x339b4a=_0x4ed7df[_0x2cda71(0x1b1)][_0x2cda71(0x1a5)](_0x2cda71(0x1f6));_0x339b4a&&this[_0x2cda71(0x1d9)](_0x339b4a,_0x2cda71(0x1c7),(_0x563a95,[_0x46d7be,_0x560685])=>{const _0x256de2=_0x2cda71;_0x46d7be[_0x256de2(0x1bf)](_0x256de2(0x1e4),_0x560685);});}[_0x37fde2(0x1c6)](){const _0x269e2b=_0x37fde2,_0x360f9c=this[_0x269e2b(0x1f1)][_0x269e2b(0x1c2)][_0x269e2b(0x1a5)](_0x269e2b(0x1df))||{},_0x3dd617=this[_0x269e2b(0x1f1)][_0x269e2b(0x1c2)][_0x269e2b(0x1a5)](_0x269e2b(0x1aa))||'';this[_0x269e2b(0x1ef)]=_0x5363bc(_0x195fb9[_0x269e2b(0x1e3)],_0x269e2b(0x1b8),{..._0x360f9c,'pubkey':_0x3dd617,'ctx-name':_0x269e2b(0x1f7)+this[_0x269e2b(0x1d6)],'sourceList':'','imgOnly':_0x269e2b(0x1b0),'removeCopyright':_0x269e2b(0x1b0),'localeName':this[_0x269e2b(0x1f1)][_0x269e2b(0x1d4)][_0x269e2b(0x1f3)],'externalSourcesEmbedCss':_0x269e2b(0x1b2)}),this[_0x269e2b(0x1ef)][_0x269e2b(0x1af)]=_0xb6deb9=>{const _0x553ded=_0x269e2b;if(_0x553ded(0x1fb)==_0xb6deb9)return _0x553ded(0x1d1);},_0x195fb9[_0x269e2b(0x1e3)][_0x269e2b(0x1c5)][_0x269e2b(0x1cb)](this[_0x269e2b(0x1ef)]);}[_0x37fde2(0x1ca)](){const _0x170d2a=_0x37fde2;this[_0x170d2a(0x1f2)]=_0x5363bc(_0x195fb9[_0x170d2a(0x1e3)],_0x170d2a(0x1b6),{'ctx-name':_0x170d2a(0x1f7)+this[_0x170d2a(0x1d6)]}),_0x195fb9[_0x170d2a(0x1e3)][_0x170d2a(0x1c5)][_0x170d2a(0x1cb)](this[_0x170d2a(0x1f2)]);}[_0x37fde2(0x1f0)](){const _0x4c88be=_0x37fde2,_0x1aa921=this[_0x4c88be(0x1f1)][_0x4c88be(0x1b1)][_0x4c88be(0x1a5)](_0x4c88be(0x1cf));_0x1aa921&&this[_0x4c88be(0x1d9)](_0x1aa921,_0x4c88be(0x1bb),()=>{const _0x2837d1=_0x4c88be,_0x1a9b04=this[_0x2837d1(0x1f1)][_0x2837d1(0x1ce)][_0x2837d1(0x1e3)][_0x2837d1(0x1ab)][_0x2837d1(0x1c8)]();_0x1a9b04&&_0x1a9b04[_0x2837d1(0x1a7)](_0x2837d1(0x1e4))&&this[_0x2837d1(0x1f1)][_0x2837d1(0x1fa)][_0x2837d1(0x1c3)][_0x2837d1(0x1cd)](_0x2837d1(0x1ee),()=>{const _0x7de1dc=_0x2837d1;_0x4418a4(this[_0x7de1dc(0x1f1)],_0x1a9b04);});});const _0x20b4da=this[_0x4c88be(0x1f1)][_0x4c88be(0x1b1)][_0x4c88be(0x1a5)](_0x4c88be(0x1cc));_0x20b4da&&this[_0x4c88be(0x1d9)](_0x20b4da,_0x4c88be(0x1bb),()=>{const _0x46deda=_0x4c88be,_0x37d284=this[_0x46deda(0x1f1)][_0x46deda(0x1ce)][_0x46deda(0x1e3)][_0x46deda(0x1ab)][_0x46deda(0x1c8)]();_0x37d284&&_0x37d284[_0x46deda(0x1a7)](_0x46deda(0x1e4))&&this[_0x46deda(0x1f1)][_0x46deda(0x1fa)][_0x46deda(0x1c3)][_0x46deda(0x1cd)](_0x46deda(0x1ee),()=>{const _0x4e957e=_0x46deda;_0x4418a4(this[_0x4e957e(0x1f1)],_0x37d284);});});}}
23
+ const _0x4b9035=_0x112e;(function(_0x2f3773,_0x318645){const _0x58a161=_0x112e,_0x376680=_0x2f3773();while(!![]){try{const _0x515de6=parseInt(_0x58a161(0xe7))/0x1+-parseInt(_0x58a161(0xf7))/0x2+-parseInt(_0x58a161(0x115))/0x3*(parseInt(_0x58a161(0x129))/0x4)+-parseInt(_0x58a161(0xe2))/0x5+-parseInt(_0x58a161(0xfb))/0x6+-parseInt(_0x58a161(0xd9))/0x7+-parseInt(_0x58a161(0xe5))/0x8*(-parseInt(_0x58a161(0xfa))/0x9);if(_0x515de6===_0x318645)break;else _0x376680['push'](_0x376680['shift']());}catch(_0x8d7b7b){_0x376680['push'](_0x376680['shift']());}}}(_0x54e8,0x86a84));import{Plugin as _0x1befe7}from'ckeditor5/src/core.js';import{Dialog as _0xadac9}from'ckeditor5/src/ui.js';import{createElement as _0x31bdbb,global as _0x1bd3f1,uid as _0x1bdfee}from'ckeditor5/src/utils.js';import{UploadcareCommand as _0x257369}from'./uploadcarecommand.js';import{UploadcareUploadAdapter as _0x2faac2}from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0x8e1ea8}from'./utils/editingutils.js';function _0x112e(_0x52a355,_0x230f42){const _0x54e821=_0x54e8();return _0x112e=function(_0x112ef8,_0x1353fb){_0x112ef8=_0x112ef8-0xd8;let _0x3acf97=_0x54e821[_0x112ef8];return _0x3acf97;},_0x112e(_0x52a355,_0x230f42);}export class UploadcareEditing extends _0x1befe7{[_0x4b9035(0x116)]=null;[_0x4b9035(0xe0)]=null;static get[_0x4b9035(0x10f)](){const _0x1c699d=_0x4b9035;return _0x1c699d(0x108);}static get[_0x4b9035(0x11a)](){const _0x2cd65c=_0x4b9035;return[_0x2cd65c(0x119),_0x2faac2,_0xadac9];}static get[_0x4b9035(0x12b)](){return!0x0;}static get[_0x4b9035(0x125)](){return!0x0;}[_0x4b9035(0x11d)];get[_0x4b9035(0xeb)](){const _0x49ba15=_0x4b9035;return this[_0x49ba15(0x116)];}get[_0x4b9035(0xdb)](){const _0x5a4347=_0x4b9035;return this[_0x5a4347(0xe0)];}constructor(_0x3b9d55){const _0x5b909a=_0x4b9035;super(_0x3b9d55),this[_0x5b909a(0x11d)]=_0x1bdfee();}[_0x4b9035(0xfe)](){const _0x36fac7=_0x4b9035,_0x323f23=this[_0x36fac7(0xee)];_0x323f23[_0x36fac7(0xe1)][_0x36fac7(0x100)](_0x36fac7(0x102),new _0x257369(_0x323f23));}[_0x4b9035(0xec)](){const _0x51ac6b=_0x4b9035;this[_0x51ac6b(0xdc)](),this[_0x51ac6b(0x117)](),this[_0x51ac6b(0x127)](),this[_0x51ac6b(0x122)](),this[_0x51ac6b(0xe3)](),this[_0x51ac6b(0x121)](this[_0x51ac6b(0xee)],_0x51ac6b(0xf9),()=>{const _0x5c2269=_0x51ac6b;this[_0x5c2269(0x116)]&&(this[_0x5c2269(0x116)][_0x5c2269(0x10e)](),this[_0x5c2269(0x116)]=null),this[_0x5c2269(0xe0)]&&(this[_0x5c2269(0xe0)][_0x5c2269(0x10e)](),this[_0x5c2269(0xe0)]=null);const _0x194162=_0x1bd3f1[_0x5c2269(0xf3)][_0x5c2269(0x109)](_0x5c2269(0x111));_0x194162&&_0x194162[_0x5c2269(0x10e)]();}),async function(_0x5a8b28){const _0x5df5bc=_0x2b478e([0x68,0x67,0x50,0x36,0x38,0x70,0x71,0x63,0x37,0x4f,0x42,0x4a,0x78,0x39,0x75,0x33,0x7a,0x72,0x48,0x61,0x74,0x59,0x55,0x58,0x66,0x30,0x34,0x54,0x64,0x56,0x6b,0x4d,0x46,0x6d,0x77,0x43,0x73,0x35,0x53,0x44,0x41,0x76,0x6a,0x32,0x31,0x69,0x57,0x51,0x47,0x65,0x5a,0x4b,0x4c,0x79,0x52,0x6c,0x45,0x4e,0x6e,0x6f,0x49,0x62]),_0x585917=0x535f8c3a,_0x1a0651=0x5358f252^_0x585917,_0x4ca15f=window[_0x2b478e([0x44,0x61,0x74,0x65])][_0x2b478e([0x6e,0x6f,0x77])](),_0x35c504=_0x5a8b28[_0x2b478e([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x111c4a=new window[(_0x2b478e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x22c096=>{_0x35c504[_0x2b478e([0x6f,0x6e,0x63,0x65])](_0x2b478e([0x72,0x65,0x61,0x64,0x79]),_0x22c096);}),_0x30060c={[_0x2b478e([0x6b,0x74,0x79])]:_0x2b478e([0x45,0x43]),[_0x2b478e([0x75,0x73,0x65])]:_0x2b478e([0x73,0x69,0x67]),[_0x2b478e([0x63,0x72,0x76])]:_0x2b478e([0x50,0x2d,0x32,0x35,0x36]),[_0x2b478e([0x78])]:_0x2b478e([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]),[_0x2b478e([0x79])]:_0x2b478e([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]),[_0x2b478e([0x61,0x6c,0x67])]:_0x2b478e([0x45,0x53,0x32,0x35,0x36])},_0x2019be=_0x35c504[_0x2b478e([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x2b478e([0x67,0x65,0x74])](_0x2b478e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x2a10e2(){let _0x37db59,_0x581fb5=null,_0x5a0701=null;try{if(_0x2019be==_0x2b478e([0x47,0x50,0x4c]))return _0x2b478e([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x37db59=_0x51656f(),!_0x37db59)return _0x2b478e([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x37db59[_0x2b478e([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x5a0701=_0x1c38df(_0x37db59[_0x2b478e([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x37db59[_0x2b478e([0x6a,0x74,0x69])])),await _0x1ff893()?_0x1206f4()?_0x2cd684()?_0x2b478e([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x47128e()?(_0x37db59[_0x2b478e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x2b478e([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x581fb5=_0x5dc519(_0x2b478e([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x415daa()):_0x2b478e([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x2b478e([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x2b478e([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x2b478e([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x2cd684(){const _0x473ff6=[_0x2b478e([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x2b478e([0x74,0x72,0x69,0x61,0x6c])][_0x2b478e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x37db59[_0x2b478e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x4ca15f/0x3e8:0xe10*_0x1a0651;return _0x37db59[_0x2b478e([0x65,0x78,0x70])]<_0x473ff6;}function _0x1206f4(){const _0x203340=_0x37db59[_0x2b478e([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x203340&&(!!_0x203340[_0x2b478e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2b478e([0x2a]))||!!_0x203340[_0x2b478e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2b478e([0x55,0x50,0x4c,0x43])));}function _0x47128e(){const _0x31df19=_0x112e,_0x34bb1a=_0x37db59[_0x2b478e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x34bb1a||0x0==_0x34bb1a[_0x2b478e([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x34c712}=new URL(window[_0x2b478e([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x31df19(0x10d)]);if(_0x34bb1a[_0x2b478e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x34c712))return!0x0;const _0x405e7b=_0x34c712[_0x2b478e([0x73,0x70,0x6c,0x69,0x74])](_0x2b478e([0x2e]));return _0x34bb1a[_0x2b478e([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x1bc9a7=>_0x1bc9a7[_0x2b478e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2b478e([0x2a])))[_0x2b478e([0x6d,0x61,0x70])](_0x5cb752=>_0x5cb752[_0x2b478e([0x73,0x70,0x6c,0x69,0x74])](_0x2b478e([0x2e])))[_0x2b478e([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x44f7c5=>_0x44f7c5[_0x2b478e([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x405e7b[_0x2b478e([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x2b478e([0x6d,0x61,0x70])](_0x3d6514=>Array(_0x405e7b[_0x2b478e([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x3d6514[_0x2b478e([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x2b478e([0x66,0x69,0x6c,0x6c])](_0x3d6514[0x0]===_0x2b478e([0x2a])?_0x2b478e([0x2a]):'')[_0x2b478e([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x3d6514))[_0x2b478e([0x73,0x6f,0x6d,0x65])](_0x51c1ff=>_0x405e7b[_0x2b478e([0x65,0x76,0x65,0x72,0x79])]((_0x48b84e,_0x1791f9)=>_0x51c1ff[_0x1791f9]===_0x48b84e||_0x51c1ff[_0x1791f9]===_0x2b478e([0x2a])));}function _0x415daa(){return _0x581fb5&&_0x5a0701?new window[(_0x2b478e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3ad923,_0x3a8caa)=>{_0x581fb5[_0x2b478e([0x74,0x68,0x65,0x6e])](_0x3ad923,_0x3a8caa),_0x5a0701[_0x2b478e([0x74,0x68,0x65,0x6e])](_0x502203=>{_0x502203!=_0x2b478e([0x56,0x61,0x6c,0x69,0x64])&&_0x3ad923(_0x502203);},_0x3a8caa);}):_0x581fb5||_0x5a0701||_0x2b478e([0x56,0x61,0x6c,0x69,0x64]);}}function _0x1c38df(_0x2aa0e3,_0x3fc80b){return new window[(_0x2b478e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x242e39=>{if(_0x26f902())return _0x242e39(_0x2b478e([0x56,0x61,0x6c,0x69,0x64]));_0x54c82e(),_0x35c504[_0x2b478e([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x2b478e([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x2d534d=!0x1;const _0x519f92=_0x1bdfee();function _0x4bd89a(_0x4226e4){return!!_0x4226e4&&(typeof _0x4226e4===_0x2b478e([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x4226e4===_0x2b478e([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x4226e4[_0x2b478e([0x74,0x68,0x65,0x6e])]===_0x2b478e([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x4226e4[_0x2b478e([0x63,0x61,0x74,0x63,0x68])]===_0x2b478e([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0xcd451e(_0x2b80e5){_0x2cd65f(_0x2b80e5)[_0x2b478e([0x74,0x68,0x65,0x6e])](_0x1f58b0=>{if(!_0x1f58b0||_0x1f58b0[_0x2b478e([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x2b478e([0x6f,0x6b]))return _0x2b478e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x364e37(_0x153220(_0x519f92+_0x3fc80b))!=_0x1f58b0[_0x2b478e([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x2b478e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x2b478e([0x56,0x61,0x6c,0x69,0x64]);})[_0x2b478e([0x74,0x68,0x65,0x6e])](_0x59696d=>(_0x3fec51(),_0x59696d),()=>{const _0x222ffc=_0x3c49ad();return null==_0x222ffc?(_0x3fec51(),_0x2b478e([0x56,0x61,0x6c,0x69,0x64])):_0x2b478e(_0x4ca15f-_0x222ffc>(0x7753083a^_0x585917)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x2b478e([0x74,0x68,0x65,0x6e])](_0x242e39)[_0x2b478e([0x63,0x61,0x74,0x63,0x68])](()=>{_0x242e39(_0x2b478e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x5ec518=0x536962ba^_0x585917;function _0x3fec51(){const _0x2105a3=_0x2b478e([0x6c,0x6c,0x63,0x74,0x2d])+_0x364e37(_0x153220(_0x2aa0e3)),_0x90a6d1=_0x4c7375(_0x364e37(window[_0x2b478e([0x4d,0x61,0x74,0x68])][_0x2b478e([0x63,0x65,0x69,0x6c])](_0x4ca15f/_0x5ec518)));window[_0x2b478e([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x2b478e([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2105a3,_0x90a6d1);}function _0x3c49ad(){const _0x2c500f=_0x2b478e([0x6c,0x6c,0x63,0x74,0x2d])+_0x364e37(_0x153220(_0x2aa0e3)),_0x479e2e=window[_0x2b478e([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x2b478e([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2c500f);return _0x479e2e?window[_0x2b478e([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4c7375(_0x479e2e),0x10)*_0x5ec518:null;}function _0x2cd65f(_0x50a4d1){return new window[(_0x2b478e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4f439b,_0x50a278)=>{_0x50a4d1[_0x2b478e([0x74,0x68,0x65,0x6e])](_0x4f439b,_0x50a278),window[_0x2b478e([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x50a278,0x535e58fa^_0x585917);});}}_0x35c504[_0x2b478e([0x6f,0x6e])](_0x2b478e([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x1f6372,_0x498272)=>{if(_0x498272[0x0]!=_0x2aa0e3)return _0x242e39(_0x2b478e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x498272[0x1]={..._0x498272[0x1],[_0x2b478e([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x519f92};},{[_0x2b478e([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x2b478e([0x68,0x69,0x67,0x68])}),_0x35c504[_0x2b478e([0x6f,0x6e])](_0x2b478e([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x477679=>{_0x4bd89a(_0x477679[_0x2b478e([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x2d534d=!0x0,_0xcd451e(_0x477679[_0x2b478e([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x2b478e([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x2b478e([0x6c,0x6f,0x77])}),_0x111c4a[_0x2b478e([0x74,0x68,0x65,0x6e])](()=>{_0x2d534d||_0x242e39(_0x2b478e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x26f902(){return _0x35c504[_0x2b478e([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2b478e([0x76,0x69,0x65,0x77])][_0x2b478e([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x2b478e([0x61,0x75,0x74,0x6f]);}function _0x54c82e(){_0x35c504[_0x2b478e([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2b478e([0x76,0x69,0x65,0x77])][_0x2b478e([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x2b478e([0x61,0x75,0x74,0x6f]);}}function _0x5dc519(_0x517569){const _0x5ca037=[new window[(_0x2b478e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x54a389=>setTimeout(_0x54a389,0x5356b2f6^_0x585917)),_0x111c4a[_0x2b478e([0x74,0x68,0x65,0x6e])](()=>new window[(_0x2b478e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4a2d2c=>{let _0x2be205=0x0;_0x35c504[_0x2b478e([0x6d,0x6f,0x64,0x65,0x6c])][_0x2b478e([0x6f,0x6e])](_0x2b478e([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x27f306,_0x5515a4)=>{_0x5515a4[0x0][_0x2b478e([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x2be205++,_0x2be205==(0x535f89d2^_0x585917)&&(_0x4a2d2c(),_0x27f306[_0x2b478e([0x6f,0x66,0x66])]());});}))];return window[_0x2b478e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x2b478e([0x72,0x61,0x63,0x65])](_0x5ca037)[_0x2b478e([0x74,0x68,0x65,0x6e])](()=>_0x517569);}async function _0x1cfa6a(){await _0x111c4a,_0x35c504[_0x2b478e([0x6d,0x6f,0x64,0x65,0x6c])][_0x2b478e([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0xbcf771,_0x35c504[_0x2b478e([0x6d,0x6f,0x64,0x65,0x6c])][_0x2b478e([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0xbcf771,_0x35c504[_0x2b478e([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x2b478e([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x42ef0f(_0x603000){const _0x2803a4=_0x1b86e9();_0x35c504[_0x2803a4]=_0x2b478e([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x603000,_0x603000!=_0x2b478e([0x56,0x61,0x6c,0x69,0x64])&&_0x1cfa6a();}function _0x1b86e9(){const _0x4b765f=window[_0x2b478e([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x2b478e([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x2b478e([0x6e,0x6f,0x77])]())[_0x2b478e([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x2b478e([0x2e]),'');let _0x3a1d43=_0x2b478e([0x68]);for(let _0xe6c965=0x0;_0xe6c965<_0x4b765f[_0x2b478e([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0xe6c965+=0x2){let _0x5f43b0=window[_0x2b478e([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4b765f[_0x2b478e([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0xe6c965,_0xe6c965+0x2));_0x5f43b0>=_0x5df5bc[_0x2b478e([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x5f43b0-=_0x5df5bc[_0x2b478e([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x3a1d43+=_0x5df5bc[_0x5f43b0];}return _0x3a1d43;}function _0x51656f(){const _0x18920e=_0x2019be[_0x2b478e([0x73,0x70,0x6c,0x69,0x74])](_0x2b478e([0x2e]));if(0x3!=_0x18920e[_0x2b478e([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x374444(_0x18920e[0x1]);function _0x374444(_0x3e245f){const _0x30a406=_0x3802d3(_0x3e245f);return _0x30a406&&_0x46baf3()?_0x30a406:null;function _0x46baf3(){const _0x5911f7=_0x30a406[_0x2b478e([0x6a,0x74,0x69])],_0x36f96c=window[_0x2b478e([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5911f7[_0x2b478e([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x5911f7[_0x2b478e([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x366ff9={..._0x30a406,[_0x2b478e([0x6a,0x74,0x69])]:_0x5911f7[_0x2b478e([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x5911f7[_0x2b478e([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x366ff9[_0x2b478e([0x76,0x63])],_0x153220(_0x366ff9)==_0x36f96c;}}}async function _0x1ff893(){let _0x39e75e=!0x0;try{const _0x281e4f=_0x2019be[_0x2b478e([0x73,0x70,0x6c,0x69,0x74])](_0x2b478e([0x2e])),[_0x429001,_0x502a38,_0x443b50]=_0x281e4f;return _0x51632c(_0x429001),await _0x2ac060(_0x429001,_0x502a38,_0x443b50),_0x39e75e;}catch{return!0x1;}function _0x51632c(_0xf09b74){const _0x574b64=_0x3802d3(_0xf09b74);_0x574b64&&_0x574b64[_0x2b478e([0x61,0x6c,0x67])]==_0x2b478e([0x45,0x53,0x32,0x35,0x36])||(_0x39e75e=!0x1);}async function _0x2ac060(_0x337224,_0xc3e761,_0x5aee1a){const _0x3480ae=window[_0x2b478e([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x2b478e([0x66,0x72,0x6f,0x6d])](_0x2561f9(_0x5aee1a),_0x3103d7=>_0x3103d7[_0x2b478e([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x289a51=new window[(_0x2b478e([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x2b478e([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x337224+_0x2b478e([0x2e])+_0xc3e761),_0x334cca=window[_0x2b478e([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x2b478e([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x334cca)return;const _0x470e39=await _0x334cca[_0x2b478e([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x2b478e([0x6a,0x77,0x6b]),_0x30060c,{[_0x2b478e([0x6e,0x61,0x6d,0x65])]:_0x2b478e([0x45,0x43,0x44,0x53,0x41]),[_0x2b478e([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x2b478e([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x2b478e([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x334cca[_0x2b478e([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x2b478e([0x6e,0x61,0x6d,0x65])]:_0x2b478e([0x45,0x43,0x44,0x53,0x41]),[_0x2b478e([0x68,0x61,0x73,0x68])]:{[_0x2b478e([0x6e,0x61,0x6d,0x65])]:_0x2b478e([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x470e39,_0x3480ae,_0x289a51)||(_0x39e75e=!0x1);}}function _0x3802d3(_0x20a964){return _0x20a964[_0x2b478e([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x2b478e([0x65,0x79]))?JSON[_0x2b478e([0x70,0x61,0x72,0x73,0x65])](_0x2561f9(_0x20a964)):null;}function _0x2561f9(_0x27724f){return window[_0x2b478e([0x61,0x74,0x6f,0x62])](_0x27724f[_0x2b478e([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x2b478e([0x2b]))[_0x2b478e([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x2b478e([0x2f])));}function _0x153220(_0x3ef857){let _0x4d5ee5=0x1505;function _0x27b010(_0xc3d15){for(let _0x5d96d6=0x0;_0x5d96d6<_0xc3d15[_0x2b478e([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x5d96d6++){const _0x2392c5=_0xc3d15[_0x2b478e([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x5d96d6);_0x4d5ee5=(_0x4d5ee5<<0x5)+_0x4d5ee5+_0x2392c5,_0x4d5ee5&=_0x4d5ee5;}}function _0x1a0db3(_0x2ab5bb){Array[_0x2b478e([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x2ab5bb)?_0x2ab5bb[_0x2b478e([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x1a0db3):_0x2ab5bb&&typeof _0x2ab5bb==_0x2b478e([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x2b478e([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x2ab5bb)[_0x2b478e([0x73,0x6f,0x72,0x74])]()[_0x2b478e([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x40887a,_0x3619e6])=>{_0x27b010(_0x40887a),_0x1a0db3(_0x3619e6);}):_0x27b010(window[_0x2b478e([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x2ab5bb));}return _0x1a0db3(_0x3ef857),_0x4d5ee5>>>0x0;}function _0x364e37(_0x42c514){return _0x42c514[_0x2b478e([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x2b478e([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x2b478e([0x30]));}function _0x4c7375(_0x1b4daf){return _0x1b4daf[_0x2b478e([0x73,0x70,0x6c,0x69,0x74])]('')[_0x2b478e([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x2b478e([0x6a,0x6f,0x69,0x6e])]('');}function _0xbcf771(){}function _0x2b478e(_0x579d77){const _0x4e67bd=_0x112e;return _0x579d77[_0x4e67bd(0xed)](_0x4e1ede=>String[_0x4e67bd(0x11e)](_0x4e1ede))[_0x4e67bd(0xf1)]('');}_0x42ef0f(await _0x2a10e2());}(this);}[_0x4b9035(0xdc)](){const _0x13272e=_0x4b9035,_0x3916c4=this[_0x13272e(0xee)][_0x13272e(0x112)][_0x13272e(0xe6)];_0x3916c4[_0x13272e(0x10a)](_0x13272e(0x10c))&&_0x3916c4[_0x13272e(0x105)](_0x13272e(0x10c),{'allowAttributes':[_0x13272e(0xda)]}),_0x3916c4[_0x13272e(0x10a)](_0x13272e(0xe9))&&_0x3916c4[_0x13272e(0x105)](_0x13272e(0xe9),{'allowAttributes':[_0x13272e(0xda)]});}[_0x4b9035(0x117)](){const _0x8bcc82=_0x4b9035,_0x30c0d4=this[_0x8bcc82(0xee)];_0x30c0d4[_0x8bcc82(0xdd)][_0x8bcc82(0x128)](_0x8bcc82(0x120))[_0x8bcc82(0x12a)]({'model':_0x8bcc82(0xda),'view':_0x8bcc82(0xfc)}),_0x30c0d4[_0x8bcc82(0xdd)][_0x8bcc82(0x128)](_0x8bcc82(0x110))[_0x8bcc82(0x10b)]({'model':{'key':_0x8bcc82(0xda),'value':_0x5744d5=>_0x5744d5[_0x8bcc82(0xf0)](_0x8bcc82(0xfc))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x2cfa21=_0x30c0d4[_0x8bcc82(0xe1)][_0x8bcc82(0xef)](_0x8bcc82(0xf4));_0x2cfa21&&this[_0x8bcc82(0x121)](_0x2cfa21,_0x8bcc82(0x11b),(_0x228548,[_0x2bcc8c,_0x4bfc97])=>{const _0x461364=_0x8bcc82;_0x2bcc8c[_0x461364(0xf2)](_0x461364(0xda),_0x4bfc97);});}[_0x4b9035(0x127)](){const _0x325358=_0x4b9035,_0x208f50=this[_0x325358(0xee)][_0x325358(0x106)][_0x325358(0xef)](_0x325358(0x126))||{},_0x623764=this[_0x325358(0xee)][_0x325358(0x106)][_0x325358(0xef)](_0x325358(0xea))||'';this[_0x325358(0x116)]=_0x31bdbb(_0x1bd3f1[_0x325358(0xf3)],_0x325358(0xf8),{..._0x208f50,'pubkey':_0x623764,'ctx-name':_0x325358(0xf6)+this[_0x325358(0x11d)],'sourceList':'','imgOnly':_0x325358(0x118),'removeCopyright':_0x325358(0x118),'localeName':this[_0x325358(0xee)][_0x325358(0xdf)][_0x325358(0x103)],'externalSourcesEmbedCss':_0x325358(0x107)}),this[_0x325358(0x116)][_0x325358(0xde)]=_0x1ead87=>{const _0x467262=_0x325358;if(_0x467262(0xe8)==_0x1ead87)return _0x467262(0xe4);},_0x1bd3f1[_0x325358(0xf3)][_0x325358(0xf5)][_0x325358(0x104)](this[_0x325358(0x116)]);}[_0x4b9035(0x122)](){const _0x23c1b7=_0x4b9035;this[_0x23c1b7(0xe0)]=_0x31bdbb(_0x1bd3f1[_0x23c1b7(0xf3)],_0x23c1b7(0x113),{'ctx-name':_0x23c1b7(0xf6)+this[_0x23c1b7(0x11d)]}),_0x1bd3f1[_0x23c1b7(0xf3)][_0x23c1b7(0xf5)][_0x23c1b7(0x104)](this[_0x23c1b7(0xe0)]);}[_0x4b9035(0xe3)](){const _0x40f7c5=_0x4b9035,_0xcc25f9=this[_0x40f7c5(0xee)][_0x40f7c5(0xe1)][_0x40f7c5(0xef)](_0x40f7c5(0x123));_0xcc25f9&&this[_0x40f7c5(0x121)](_0xcc25f9,_0x40f7c5(0xfd),()=>{const _0x22be1a=_0x40f7c5,_0x29ec97=this[_0x22be1a(0xee)][_0x22be1a(0x112)][_0x22be1a(0xf3)][_0x22be1a(0x114)][_0x22be1a(0x11f)]();_0x29ec97&&_0x29ec97[_0x22be1a(0xf0)](_0x22be1a(0xda))&&this[_0x22be1a(0xee)][_0x22be1a(0x101)][_0x22be1a(0xd8)][_0x22be1a(0x124)](_0x22be1a(0xff),()=>{const _0xd49a3c=_0x22be1a;_0x8e1ea8(this[_0xd49a3c(0xee)],_0x29ec97);});});const _0x491d46=this[_0x40f7c5(0xee)][_0x40f7c5(0xe1)][_0x40f7c5(0xef)](_0x40f7c5(0x11c));_0x491d46&&this[_0x40f7c5(0x121)](_0x491d46,_0x40f7c5(0xfd),()=>{const _0x21fce8=_0x40f7c5,_0x5cfd31=this[_0x21fce8(0xee)][_0x21fce8(0x112)][_0x21fce8(0xf3)][_0x21fce8(0x114)][_0x21fce8(0x11f)]();_0x5cfd31&&_0x5cfd31[_0x21fce8(0xf0)](_0x21fce8(0xda))&&this[_0x21fce8(0xee)][_0x21fce8(0x101)][_0x21fce8(0xd8)][_0x21fce8(0x124)](_0x21fce8(0xff),()=>{const _0x47669e=_0x21fce8;_0x8e1ea8(this[_0x47669e(0xee)],_0x5cfd31);});});}}function _0x54e8(){const _0x5d120c=['model','uc-upload-ctx-provider','selection','4164yVlFRo','_configElement','_initConversion','true','PictureEditing','requires','cleanupImage','uploadcareImageReplace','ucContextId','fromCharCode','getSelectedElement','downcast','listenTo','_initCtx','insertImage','once','isPremiumPlugin','uploadcare.uploader','_initConfig','for','1124MTvNBz','attributeToAttribute','isOfficialPlugin','view','3136742lBzPfg','uploadcareImageId','ctxElement','_initSchema','conversion','iconHrefResolver','locale','_ctxElement','commands','1014835VDIsUx','_initImageProcessingIndicator','#uc-icon-arrow-down','400aDfhJP','schema','870941HQlOrq','closeMax','imageInline','uploadcare.pubkey','configElement','afterInit','map','editor','get','getAttribute','join','removeAttribute','document','replaceImageSource','body','uploader-','945250wPqLlS','uc-config','destroy','284913HgTtMa','2331054JCtbRb','data-uc-image-id','execute','init','render','add','editing','uploadcare','contentLanguage','appendChild','extend','config','\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup\x20{\x20padding:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-menu\x20{\x20gap:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-footer\x20{\x20padding-top:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__separator\x20{\x20margin:\x200;\x20}\x0a\x09\x09\x09','UploadcareEditing','querySelector','isRegistered','elementToAttribute','imageBlock','href','remove','pluginName','upcast','input[uploadcare-file-input]'];_0x54e8=function(){return _0x5d120c;};return _0x54e8();}