@ckeditor/ckeditor5-uploadcare 0.0.0-nightly-20251102.0 → 0.0.0-nightly-20251103.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 _0x2e76a1,Command as _0xd16021}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x1ac82b,IconGooglePhotos as _0x383296,IconGoogleDrive as _0x2e2165,IconFacebook as _0x48918e,IconDropbox as _0x38e171,IconUploadcareLink as _0x33acab,IconUploadcareImageUpload as _0x4a89ab,IconError as _0x209ce5,IconUploadcareImageEdit as _0x59d083}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x1f3200,MenuBarMenuListItemButtonView as _0x3e4ef1,View as _0x44c7d0,FocusCycler as _0x301768,Dialog as _0x34b959,DialogViewPosition as _0x2922bc,SpinnerView as _0x369209,IconView as _0x4e6146,Notification as _0x3d68e7}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x400784,DomEmitterMixin as _0x42b3a8,global as _0x236e47,getAncestors as _0x35d8b7,ObservableMixin as _0x2ca4d6,uid as _0x29f44e,createElement as _0x54cee4}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x60955c}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x3385fb,info as _0x473552}from'@uploadcare/upload-client';import*as _0x80ea85 from'@uploadcare/file-uploader';var i=function(_0x4422e2){return _0x4422e2['Local']='local',_0x4422e2['URL']='url',_0x4422e2['Dropbox']='dropbox',_0x4422e2['GDrive']='gdrive',_0x4422e2['Facebook']='facebook',_0x4422e2['GPhotos']='gphotos',_0x4422e2['OneDrive']='onedrive',_0x4422e2;}({});function _(_0x2fd2c0,_0x5313ec,_0x47b276){const t=_0x2fd2c0['t'],_0x25fb7a=_0x2fd2c0['t'];switch(_0x5313ec){case i['Local']:return{'text':_0x25fb7a('Insert'===_0x47b276?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x25fb7a('From\x20computer')};case i['URL']:return{'text':'Insert'===_0x47b276?_0x25fb7a('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x25fb7a('Via\x20URL')};case i['Dropbox']:return{'text':t('Insert'===_0x47b276?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case i['Facebook']:return{'text':t('Insert'===_0x47b276?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case i['GDrive']:return{'text':t('Insert'===_0x47b276?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case i['GPhotos']:return{'text':t('Insert'===_0x47b276?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case i['OneDrive']:return{'text':t('Insert'===_0x47b276?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x5313ec;}}class e extends _0x2e76a1{['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 _0x59e7d3=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x57c0b6;for(const _0x311657 in _0x59e7d3){const _0x33c2ea=_0x311657,_0x11e396=_0x59e7d3[_0x33c2ea];if('uploadcareLicenseKeyValid'==_0x11e396||'uploadcareLicenseKeyInvalid'==_0x11e396||'uploadcareLicenseKeyExpired'==_0x11e396||'uploadcareLicenseKeyDomainLimit'==_0x11e396||'uploadcareLicenseKeyNotAllowed'==_0x11e396||'uploadcareLicenseKeyEvaluationLimit'==_0x11e396||'uploadcareLicenseKeyTrialLimit'==_0x11e396||'uploadcareLicenseKeyUsageLimit'==_0x11e396){delete _0x59e7d3[_0x33c2ea],_0x57c0b6=_0x11e396,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x57c0b6&&_0x59e7d3['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x57c0b6&&_0x59e7d3['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x57c0b6&&_0x59e7d3['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x57c0b6&&_0x59e7d3['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x57c0b6&&_0x59e7d3['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyTrialLimit'==_0x57c0b6&&_0x59e7d3['_showLicenseError']('trialLimit'),'uploadcareLicenseKeyUsageLimit'==_0x57c0b6&&_0x59e7d3['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x3b1066}=this,_0x23f525=_0x3b1066['commands']['get']('uploadcare');if(!_0x23f525)return;const _0x3d0c8e=this['_normalizeConfigSourceList'](_0x3b1066['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x2c1fde,_0x38db91)=>{const _0x3455f6=this['_getIntegrationKey'](_0x38db91['type']);return _0x2c1fde[_0x3455f6]||(_0x2c1fde[_0x3455f6]=[]),_0x2c1fde[_0x3455f6]['push'](_0x38db91),_0x2c1fde;},{});_0x3b1066['plugins']['has']('ImageInsertUI')&&_0x3b1066['commands']['get']('uploadcare')&&Object['entries'](_0x3d0c8e)['forEach'](([_0x2ccc61,_0x55fa09])=>{_0x3b1066['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x2ccc61,'observable':()=>_0x23f525,'buttonViewCreator':()=>this['_createToolbarButton'](_0x55fa09),'formViewCreator':()=>this['_createDropdownButtons'](_0x55fa09),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x55fa09),'override':'assetManager'!==_0x2ccc61});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x2dbd2c){const {locale:_0x57a7d9}=this['editor'];return _0x2dbd2c['map'](_0x22391e=>{const _0xebe523=_(_0x57a7d9,_0x22391e,'Insert');switch(_0x22391e){case i['Local']:return{'icon':_0x4a89ab,'type':i['Local'],..._0xebe523};case i['URL']:return{'icon':_0x33acab,'type':i['URL'],..._0xebe523};case i['Dropbox']:return{'icon':_0x38e171,'type':i['Dropbox'],..._0xebe523};case i['Facebook']:return{'icon':_0x48918e,'type':i['Facebook'],..._0xebe523};case i['GDrive']:return{'icon':_0x2e2165,'type':i['GDrive'],..._0xebe523};case i['GPhotos']:return{'icon':_0x383296,'type':i['GPhotos'],..._0xebe523};case i['OneDrive']:return{'icon':_0x1ac82b,'type':i['OneDrive'],..._0xebe523};}});}['_getIntegrationKey'](_0x38dce6){switch(_0x38dce6){case i['Local']:return'upload';case i['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x38b3ef,_0x29245f){const _0x130c96=this['editor'],_0x167974=new _0x38b3ef(_0x130c96['locale']),_0x221f2f=_0x130c96['commands']['get']('uploadcare');return _0x167974['bind']('isEnabled')['to'](_0x221f2f),_0x167974['on']('execute',()=>{_0x221f2f['execute'](_0x29245f);}),_0x167974;}['_createToolbarButton'](_0x58f780){const {locale:_0x4fbb5b}=this['editor'],_0x1e5135=this['editor']['plugins']['get']('ImageInsertUI'),_0x2e2e19=_0x58f780[0x0],_0x360024=this['_createButton'](_0x1f3200,_0x2e2e19['type']);return _0x360024['icon']=_0x2e2e19['icon'],_0x360024['bind']('label')['to'](_0x1e5135,'isImageSelected',_0x3439d5=>_(_0x4fbb5b,_0x2e2e19['type'],_0x3439d5?'Replace':'Insert')['text']),_0x360024['tooltip']=!0x0,_0x360024;}['_createDropdownButtons'](_0x4f582c){const {locale:_0xdd6a56}=this['editor'],_0xfa5f80=this['editor']['plugins']['get']('ImageInsertUI');return _0x4f582c['map'](_0x529b69=>{const _0x28d39b=this['_createButton'](_0x1f3200,_0x529b69['type']);return _0x28d39b['withText']=!0x0,_0x28d39b['icon']=_0x529b69['icon'],_0x28d39b['bind']('label')['to'](_0xfa5f80,'isImageSelected',_0x475b90=>_(_0xdd6a56,_0x529b69['type'],_0x475b90?'Replace':'Insert')['text']),_0x28d39b;});}['_createMenuBarButtons'](_0x5d5ecb){return _0x5d5ecb['map'](_0x38e6bb=>{const _0x5074d1=this['_createButton'](_0x3e4ef1,_0x38e6bb['type']);return _0x5074d1['icon']=_0x38e6bb['icon'],_0x5074d1['label']=_0x38e6bb['shortText'],_0x5074d1;});}}class V extends _0x44c7d0{['focusTracker'];['focusCycler'];constructor(_0xad5c03){super(_0xad5c03),this['focusTracker']=new _0x400784(),this['focusCycler']=new _0x301768({'focusables':this['createCollection'](),'focusTracker':this['focusTracker']});}['getFocusableElement'](){return{'tag':'div','attributes':{'aria-hidden':'true','tabindex':'0'},'on':{'focus':this['bindTemplate']['to'](()=>{this['focusCycler']['fire']('forwardCycle');})}};}}class S extends V{constructor(_0x962fb7,_0x11e909){super(_0x962fb7),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-'+_0x11e909}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}}function C(_0x540229,_0x566e38){const _0x3121c3=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x34bfc9=>_0x34bfc9<=_0x566e38)['map'](_0x1f20d2=>_0x540229['replace'](/\/$/,'')+'/-/resize/'+_0x1f20d2+'x/\x20'+_0x1f20d2+'w');return{'imageFallbackUrl':_0x540229,'imageSources':[{'srcset':_0x3121c3['join'](',\x20'),'sizes':'(max-width:\x20'+_0x566e38+'px)\x20100vw,\x20'+_0x566e38+'px','type':'image/webp'}]};}function F(_0x3263b8,_0x5644d8,_0x1763dc){const _0x16cb74=_0x3263b8['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x16cb74?parseInt(_0x16cb74[0x1],0xa):_0x5644d8,'height':_0x16cb74?parseInt(_0x16cb74[0x2],0xa):_0x1763dc};}function p(_0x592d2d,_0x372b7c){const _0x251ff3=new(_0x42b3a8())(),_0x9f0c28=_0x592d2d['plugins']['get']('ImageUtils'),_0x56498a=_0x592d2d['editing']['mapper']['toViewElement'](_0x372b7c),_0x3047fe=_0x9f0c28['findViewImgElement'](_0x56498a),_0x4bc4e9=_0x592d2d['editing']['view']['domConverter']['viewToDom'](_0x3047fe),_0x2ccc5f=_0x372b7c['getAttribute']('width'),_0x7ebc21=_0x372b7c['getAttribute']('height'),_0x3e089d='image-processing';_0x592d2d['editing']['view']['change'](_0x1a36af=>{_0x1a36af['addClass'](_0x3e089d,_0x56498a),_0x1a36af['setStyle']('aspect-ratio',_0x2ccc5f+'/'+_0x7ebc21,_0x3047fe);}),_0x251ff3['listenTo'](_0x4bc4e9,'load',()=>{_0x251ff3['stopListening'](_0x4bc4e9,'load'),_0x592d2d['editing']['view']['change'](_0x29cfb3=>{_0x29cfb3['removeClass'](_0x3e089d,_0x56498a),_0x29cfb3['removeStyle']('aspect-ratio',_0x3047fe);});});}function R(_0xb3bfc){if(Array['isArray'](_0xb3bfc)){const _0x49681c=_0xb3bfc['map'](R);return _0x2318f7=>_0x49681c['some'](_0x523983=>_0x523983(_0x2318f7));}if('origin'==_0xb3bfc){const _0x468cf0=_0x236e47['window']['location']['origin'];return _0x5c8936=>new URL(_0x5c8936,_0x236e47['document']['baseURI'])['origin']==_0x468cf0;}return'function'==typeof _0xb3bfc?_0xb3bfc:_0xb3bfc instanceof RegExp?_0x4ace2e=>!(!_0x4ace2e['match'](_0xb3bfc)&&!_0x4ace2e['replace'](/^https?:\/\//,'')['match'](_0xb3bfc)):()=>!0x1;}function M(_0x24edad,_0x3e968b){return _0x35d8b7(_0x24edad['target'])['includes'](_0x3e968b);}class n extends/* #__PURE__ -- @preserve */
24
- _0x2ca4d6(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x5610c2,_0x1744c6,_0x2b2caa){super(),this['_editor']=_0x5610c2,this['_editing']=_0x1744c6,this['_dialog']=_0x5610c2['plugins']['get'](_0x34b959),this['_api']=_0x1744c6['ctxElement']['getAPI'](),this['_type']=_0x2b2caa,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:_0x18c4c8,model:_0x19716d}=this['_editor'],_0x437444=_0x19716d['document']['selection']['getSelectedElement'](),_0x2b147c=_0x437444&&(_0x437444['is']('element','imageBlock')||_0x437444['is']('element','imageInline'));this['_formView']=new S(_0x18c4c8,this['_editing']['ucContextId']),this['_dialog']['show']({'id':'uploadCare','icon':_0x4a89ab,'title':_(_0x18c4c8,this['_type'],_0x2b147c?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x2922bc['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x48d32b=>!M(_0x48d32b,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x5786e8}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x5f122a=>{const _0x208721=_0x5786e8['length'];for(const _0x132af0 of _0x5786e8){const _0x25f8c9=_0x132af0===_0x5786e8[_0x208721-0x1],{cdnUrl:_0x28eab4,fileInfo:_0xa1679a}=_0x132af0;if(!_0x28eab4||!_0xa1679a)continue;const {width:_0x482d4a,height:_0x13073b}=_0xa1679a['imageInfo'],_0x11ebe2=F(_0x28eab4,_0x482d4a,_0x13073b),_0x380cb7=C(_0x28eab4,_0x11ebe2['width']),_0x2bc36b={'id':_0xa1679a['uuid'],'type':'image','attributes':{'imageDimension':_0x11ebe2,..._0x380cb7}};this['_insertAsset'](_0x2bc36b,_0x25f8c9,_0x5f122a);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0xdd11e4=>{'idle'===_0xdd11e4['detail']['status']&&!_0xdd11e4['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===i['Local']?this['_api']['setCurrentActivity'](i['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x517d9b,_0xe8a814,_0x4b0c50){const _0x1d3494=this['_editor']['model']['document']['selection'],_0x3acbdc=_0x1d3494['getSelectedElement'](),_0x3b4b47=!(!_0x3acbdc||!_0x3acbdc['is']('element','imageInline'));_0x4b0c50['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x517d9b,_0x3b4b47),_0xe8a814||_0x4b0c50['setSelection'](_0x1d3494['getLastPosition']());}['_insertImage'](_0x127665,_0x442fe2){const _0x12bc20=this['_editor'],{imageDimension:_0x287dc4,imageFallbackUrl:_0x3a45fa,imageSources:_0x59f30e}=_0x127665['attributes'];_0x12bc20['execute']('insertImage',{'imageType':_0x442fe2?'imageInline':null,'source':{'uploadcareImageId':_0x127665['id'],'src':_0x3a45fa,'sources':_0x59f30e,..._0x287dc4}});}}class w extends _0xd16021{['_editing'];['_controller']=null;static get['requires'](){return[_0x34b959,o];}constructor(_0x5d11d3){super(_0x5d11d3),this['_editing']=_0x5d11d3['plugins']['get'](o);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x2f4c16){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new n(this['editor'],this['_editing'],_0x2f4c16);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class j{static['upload']({file:_0x20173f,..._0x2793bc}){return _0x3385fb(_0x20173f,_0x2793bc);}static['getInfo'](_0x3d970e,_0x4fc990){return _0x473552(_0x3d970e,_0x4fc990);}}class f extends _0x2e76a1{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x60955c,o];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x436874=this['editor'];if(!!!_0x436874['config']['get']('uploadcare'))return;_0x436874['plugins']['get'](_0x60955c)['createUploadAdapter']=_0x1f37f5=>new k(_0x1f37f5,_0x436874),_0x436874['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x16a430,{imageElement:_0x547324,data:_0x46113c})=>{_0x436874['model']['change'](_0x5378fb=>{_0x5378fb['setAttribute']('uploadcareImageId',_0x46113c['uploadcareImageId'],_0x547324);});});}}class k{['loader'];['editor'];['controller'];constructor(_0x566e71,_0x33a4fc){this['loader']=_0x566e71,this['editor']=_0x33a4fc,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x489b1c=await this['loader']['file'];return j['upload']({'file':_0x489b1c,'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':_0x1815cb=>{_0x1815cb&&_0x1815cb['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x1815cb['value']);}})['then'](async _0x29eea9=>{const {imageFallbackUrl:_0x340c30,imageSources:_0x2b5ad9}=C(_0x29eea9['cdnUrl'],_0x29eea9['imageInfo']['width']);return{'uploadcareImageId':_0x29eea9['uuid'],'default':_0x340c30,'sources':_0x2b5ad9};})['catch'](()=>{const _0x119e92=t('Cannot\x20upload\x20file:')+('\x20'+_0x489b1c['name']+'.');return Promise['reject'](_0x119e92);});}['abort'](){this['controller']['abort']();}}class o extends _0x2e76a1{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',f,_0x34b959];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['ucContextId'];get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}constructor(_0xdfda7c){super(_0xdfda7c),this['ucContextId']=_0x29f44e();}['init'](){const _0x44454a=this['editor'];_0x44454a['commands']['add']('uploadcare',new w(_0x44454a));}['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 _0x29597a=_0x236e47['document']['querySelector']('input[uploadcare-file-input]');_0x29597a&&_0x29597a['remove']();}),async function(_0x1be96e){const _0x9e2a7f=_0x17b85c([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]),_0x48ef95=0x535f8c3a,_0x9ff7c8=0x5358fbca^_0x48ef95,_0x18c18b=window[_0x17b85c([0x44,0x61,0x74,0x65])][_0x17b85c([0x6e,0x6f,0x77])](),_0x27abf7=_0x1be96e[_0x17b85c([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x46b60c=new window[(_0x17b85c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1af72e=>{_0x27abf7[_0x17b85c([0x6f,0x6e,0x63,0x65])](_0x17b85c([0x72,0x65,0x61,0x64,0x79]),_0x1af72e);}),_0x5d72dc={[_0x17b85c([0x6b,0x74,0x79])]:_0x17b85c([0x45,0x43]),[_0x17b85c([0x75,0x73,0x65])]:_0x17b85c([0x73,0x69,0x67]),[_0x17b85c([0x63,0x72,0x76])]:_0x17b85c([0x50,0x2d,0x32,0x35,0x36]),[_0x17b85c([0x78])]:_0x17b85c([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]),[_0x17b85c([0x79])]:_0x17b85c([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]),[_0x17b85c([0x61,0x6c,0x67])]:_0x17b85c([0x45,0x53,0x32,0x35,0x36])},_0x50ba21=_0x27abf7[_0x17b85c([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x17b85c([0x67,0x65,0x74])](_0x17b85c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x48c587(){let _0x302317,_0x3f9901=null,_0x256f8c=null;try{if(_0x50ba21==_0x17b85c([0x47,0x50,0x4c]))return _0x17b85c([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x302317=_0x370fc7(),!_0x302317)return _0x17b85c([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x302317[_0x17b85c([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x256f8c=_0x4cbffd(_0x302317[_0x17b85c([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x302317[_0x17b85c([0x6a,0x74,0x69])])),await _0x5a19f0()?_0x4e2c62()?_0x5a2342()?_0x17b85c([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x42d21c()?(_0x302317[_0x17b85c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x17b85c([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x3f9901=_0x38aa5f(_0x17b85c([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x302317[_0x17b85c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x17b85c([0x74,0x72,0x69,0x61,0x6c])&&(_0x3f9901=_0x38aa5f(_0x17b85c([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x15f6c8()):_0x17b85c([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x17b85c([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x17b85c([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x17b85c([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x5a2342(){const _0x75cb52=[_0x17b85c([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x17b85c([0x74,0x72,0x69,0x61,0x6c])][_0x17b85c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x302317[_0x17b85c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x18c18b/0x3e8:0xe10*_0x9ff7c8;return _0x302317[_0x17b85c([0x65,0x78,0x70])]<_0x75cb52;}function _0x4e2c62(){const _0x7bd217=_0x302317[_0x17b85c([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x7bd217&&(!!_0x7bd217[_0x17b85c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x17b85c([0x2a]))||!!_0x7bd217[_0x17b85c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x17b85c([0x55,0x50,0x4c,0x43])));}function _0x42d21c(){const _0x35af90=_0x302317[_0x17b85c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x35af90||0x0==_0x35af90[_0x17b85c([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x32cd84}=new URL(window[_0x17b85c([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x35af90[_0x17b85c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x32cd84))return!0x0;const _0x4db6ce=_0x32cd84[_0x17b85c([0x73,0x70,0x6c,0x69,0x74])](_0x17b85c([0x2e]));return _0x35af90[_0x17b85c([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x2f7c3b=>_0x2f7c3b[_0x17b85c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x17b85c([0x2a])))[_0x17b85c([0x6d,0x61,0x70])](_0x56cc33=>_0x56cc33[_0x17b85c([0x73,0x70,0x6c,0x69,0x74])](_0x17b85c([0x2e])))[_0x17b85c([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x3e0f7e=>_0x3e0f7e[_0x17b85c([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x4db6ce[_0x17b85c([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x17b85c([0x6d,0x61,0x70])](_0x47688d=>Array(_0x4db6ce[_0x17b85c([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x47688d[_0x17b85c([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x17b85c([0x66,0x69,0x6c,0x6c])](_0x47688d[0x0]===_0x17b85c([0x2a])?_0x17b85c([0x2a]):'')[_0x17b85c([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x47688d))[_0x17b85c([0x73,0x6f,0x6d,0x65])](_0x2e0603=>_0x4db6ce[_0x17b85c([0x65,0x76,0x65,0x72,0x79])]((_0x4d9777,_0x57ade8)=>_0x2e0603[_0x57ade8]===_0x4d9777||_0x2e0603[_0x57ade8]===_0x17b85c([0x2a])));}function _0x15f6c8(){return _0x3f9901&&_0x256f8c?new window[(_0x17b85c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x2f7743,_0x4ba151)=>{_0x3f9901[_0x17b85c([0x74,0x68,0x65,0x6e])](_0x2f7743,_0x4ba151),_0x256f8c[_0x17b85c([0x74,0x68,0x65,0x6e])](_0x4510c0=>{_0x4510c0!=_0x17b85c([0x56,0x61,0x6c,0x69,0x64])&&_0x2f7743(_0x4510c0);},_0x4ba151);}):_0x3f9901||_0x256f8c||_0x17b85c([0x56,0x61,0x6c,0x69,0x64]);}}function _0x4cbffd(_0x417b56,_0x2590ef){return new window[(_0x17b85c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4659b8=>{if(_0x58ad3e())return _0x4659b8(_0x17b85c([0x56,0x61,0x6c,0x69,0x64]));_0x501b9b(),_0x27abf7[_0x17b85c([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x17b85c([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x104efd=!0x1;const _0x19850c=_0x29f44e();function _0x5f4715(_0x1dcfeb){return!!_0x1dcfeb&&(typeof _0x1dcfeb===_0x17b85c([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x1dcfeb===_0x17b85c([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x1dcfeb[_0x17b85c([0x74,0x68,0x65,0x6e])]===_0x17b85c([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x1dcfeb[_0x17b85c([0x63,0x61,0x74,0x63,0x68])]===_0x17b85c([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x19f56c(_0x1dded5){_0x3d55fd(_0x1dded5)[_0x17b85c([0x74,0x68,0x65,0x6e])](_0x11daee=>{if(!_0x11daee||_0x11daee[_0x17b85c([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x17b85c([0x6f,0x6b]))return _0x17b85c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x2945ac(_0x15eb5f(_0x19850c+_0x2590ef))!=_0x11daee[_0x17b85c([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x17b85c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x17b85c([0x56,0x61,0x6c,0x69,0x64]);})[_0x17b85c([0x74,0x68,0x65,0x6e])](_0x527280=>(_0x33c2ef(),_0x527280),()=>{const _0x3a37ba=_0x16ee07();return null==_0x3a37ba?(_0x33c2ef(),_0x17b85c([0x56,0x61,0x6c,0x69,0x64])):_0x17b85c(_0x18c18b-_0x3a37ba>(0x7753083a^_0x48ef95)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x17b85c([0x74,0x68,0x65,0x6e])](_0x4659b8)[_0x17b85c([0x63,0x61,0x74,0x63,0x68])](()=>{_0x4659b8(_0x17b85c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x667d0b=0x536962ba^_0x48ef95;function _0x33c2ef(){const _0x554c8=_0x17b85c([0x6c,0x6c,0x63,0x74,0x2d])+_0x2945ac(_0x15eb5f(_0x417b56)),_0x455a41=_0x3af35c(_0x2945ac(window[_0x17b85c([0x4d,0x61,0x74,0x68])][_0x17b85c([0x63,0x65,0x69,0x6c])](_0x18c18b/_0x667d0b)));window[_0x17b85c([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x17b85c([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x554c8,_0x455a41);}function _0x16ee07(){const _0x535934=_0x17b85c([0x6c,0x6c,0x63,0x74,0x2d])+_0x2945ac(_0x15eb5f(_0x417b56)),_0xcffdf0=window[_0x17b85c([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x17b85c([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x535934);return _0xcffdf0?window[_0x17b85c([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3af35c(_0xcffdf0),0x10)*_0x667d0b:null;}function _0x3d55fd(_0x5c3b0d){return new window[(_0x17b85c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x42cd04,_0x5bbe64)=>{_0x5c3b0d[_0x17b85c([0x74,0x68,0x65,0x6e])](_0x42cd04,_0x5bbe64),window[_0x17b85c([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x5bbe64,0x535e58fa^_0x48ef95);});}}_0x27abf7[_0x17b85c([0x6f,0x6e])](_0x17b85c([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x14691e,_0x49117d)=>{if(_0x49117d[0x0]!=_0x417b56)return _0x4659b8(_0x17b85c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x49117d[0x1]={..._0x49117d[0x1],[_0x17b85c([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x19850c};},{[_0x17b85c([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x17b85c([0x68,0x69,0x67,0x68])}),_0x27abf7[_0x17b85c([0x6f,0x6e])](_0x17b85c([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x28fdbf=>{_0x5f4715(_0x28fdbf[_0x17b85c([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x104efd=!0x0,_0x19f56c(_0x28fdbf[_0x17b85c([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x17b85c([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x17b85c([0x6c,0x6f,0x77])}),_0x46b60c[_0x17b85c([0x74,0x68,0x65,0x6e])](()=>{_0x104efd||_0x4659b8(_0x17b85c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x58ad3e(){return _0x27abf7[_0x17b85c([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x17b85c([0x76,0x69,0x65,0x77])][_0x17b85c([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x17b85c([0x61,0x75,0x74,0x6f]);}function _0x501b9b(){_0x27abf7[_0x17b85c([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x17b85c([0x76,0x69,0x65,0x77])][_0x17b85c([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x17b85c([0x61,0x75,0x74,0x6f]);}}function _0x38aa5f(_0x5eda4d){const _0x4b41c7=[new window[(_0x17b85c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x205df6=>setTimeout(_0x205df6,0x5356b2f6^_0x48ef95)),_0x46b60c[_0x17b85c([0x74,0x68,0x65,0x6e])](()=>new window[(_0x17b85c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x371a75=>{let _0x1ee31d=0x0;_0x27abf7[_0x17b85c([0x6d,0x6f,0x64,0x65,0x6c])][_0x17b85c([0x6f,0x6e])](_0x17b85c([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x1e4da9,_0x57a5eb)=>{_0x57a5eb[0x0][_0x17b85c([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x1ee31d++,_0x1ee31d==(0x535f8dc2^_0x48ef95)&&(_0x371a75(),_0x1e4da9[_0x17b85c([0x6f,0x66,0x66])]());});}))];return window[_0x17b85c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x17b85c([0x72,0x61,0x63,0x65])](_0x4b41c7)[_0x17b85c([0x74,0x68,0x65,0x6e])](()=>_0x5eda4d);}async function _0x558aac(){await _0x46b60c,_0x27abf7[_0x17b85c([0x6d,0x6f,0x64,0x65,0x6c])][_0x17b85c([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x4ee89c,_0x27abf7[_0x17b85c([0x6d,0x6f,0x64,0x65,0x6c])][_0x17b85c([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x4ee89c,_0x27abf7[_0x17b85c([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x17b85c([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x5a8b84(_0x54b458){const _0x53c5c5=_0x256e68();_0x27abf7[_0x53c5c5]=_0x17b85c([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x54b458,_0x54b458!=_0x17b85c([0x56,0x61,0x6c,0x69,0x64])&&_0x558aac();}function _0x256e68(){const _0xa34bfe=window[_0x17b85c([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x17b85c([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x17b85c([0x6e,0x6f,0x77])]())[_0x17b85c([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x17b85c([0x2e]),'');let _0x167b07=_0x17b85c([0x68]);for(let _0x17e2a4=0x0;_0x17e2a4<_0xa34bfe[_0x17b85c([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x17e2a4+=0x2){let _0x543c2d=window[_0x17b85c([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xa34bfe[_0x17b85c([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x17e2a4,_0x17e2a4+0x2));_0x543c2d>=_0x9e2a7f[_0x17b85c([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x543c2d-=_0x9e2a7f[_0x17b85c([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x167b07+=_0x9e2a7f[_0x543c2d];}return _0x167b07;}function _0x370fc7(){const _0x4b46b=_0x50ba21[_0x17b85c([0x73,0x70,0x6c,0x69,0x74])](_0x17b85c([0x2e]));if(0x3!=_0x4b46b[_0x17b85c([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x31daf1(_0x4b46b[0x1]);function _0x31daf1(_0x36e955){const _0x5c9939=_0x2041b9(_0x36e955);return _0x5c9939&&_0x48b881()?_0x5c9939:null;function _0x48b881(){const _0x5e7039=_0x5c9939[_0x17b85c([0x6a,0x74,0x69])],_0x1524d4=window[_0x17b85c([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5e7039[_0x17b85c([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x5e7039[_0x17b85c([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x2375e0={..._0x5c9939,[_0x17b85c([0x6a,0x74,0x69])]:_0x5e7039[_0x17b85c([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x5e7039[_0x17b85c([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x2375e0[_0x17b85c([0x76,0x63])],_0x15eb5f(_0x2375e0)==_0x1524d4;}}}async function _0x5a19f0(){let _0x4bce4f=!0x0;try{const _0x392bc6=_0x50ba21[_0x17b85c([0x73,0x70,0x6c,0x69,0x74])](_0x17b85c([0x2e])),[_0x59d97e,_0x58449f,_0x2e0423]=_0x392bc6;return _0x1f576b(_0x59d97e),await _0x53ac41(_0x59d97e,_0x58449f,_0x2e0423),_0x4bce4f;}catch{return!0x1;}function _0x1f576b(_0x5d16da){const _0x355aa5=_0x2041b9(_0x5d16da);_0x355aa5&&_0x355aa5[_0x17b85c([0x61,0x6c,0x67])]==_0x17b85c([0x45,0x53,0x32,0x35,0x36])||(_0x4bce4f=!0x1);}async function _0x53ac41(_0x13baa7,_0x109878,_0x38294a){const _0x1a1fe5=window[_0x17b85c([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x17b85c([0x66,0x72,0x6f,0x6d])](_0x13687a(_0x38294a),_0x24d0cb=>_0x24d0cb[_0x17b85c([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x1f75e2=new window[(_0x17b85c([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x17b85c([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x13baa7+_0x17b85c([0x2e])+_0x109878),_0x49e74e=window[_0x17b85c([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x17b85c([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x49e74e)return;const _0x58fa94=await _0x49e74e[_0x17b85c([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x17b85c([0x6a,0x77,0x6b]),_0x5d72dc,{[_0x17b85c([0x6e,0x61,0x6d,0x65])]:_0x17b85c([0x45,0x43,0x44,0x53,0x41]),[_0x17b85c([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x17b85c([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x17b85c([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x49e74e[_0x17b85c([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x17b85c([0x6e,0x61,0x6d,0x65])]:_0x17b85c([0x45,0x43,0x44,0x53,0x41]),[_0x17b85c([0x68,0x61,0x73,0x68])]:{[_0x17b85c([0x6e,0x61,0x6d,0x65])]:_0x17b85c([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x58fa94,_0x1a1fe5,_0x1f75e2)||(_0x4bce4f=!0x1);}}function _0x2041b9(_0x1e01e0){return _0x1e01e0[_0x17b85c([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x17b85c([0x65,0x79]))?JSON[_0x17b85c([0x70,0x61,0x72,0x73,0x65])](_0x13687a(_0x1e01e0)):null;}function _0x13687a(_0x7dc686){return window[_0x17b85c([0x61,0x74,0x6f,0x62])](_0x7dc686[_0x17b85c([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x17b85c([0x2b]))[_0x17b85c([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x17b85c([0x2f])));}function _0x15eb5f(_0x3dabb7){let _0x47c493=0x1505;function _0x321e0a(_0x20847b){for(let _0x222da2=0x0;_0x222da2<_0x20847b[_0x17b85c([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x222da2++){const _0x120e7b=_0x20847b[_0x17b85c([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x222da2);_0x47c493=(_0x47c493<<0x5)+_0x47c493+_0x120e7b,_0x47c493&=_0x47c493;}}function _0x391c3b(_0x45282c){Array[_0x17b85c([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x45282c)?_0x45282c[_0x17b85c([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x391c3b):_0x45282c&&typeof _0x45282c==_0x17b85c([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x17b85c([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x45282c)[_0x17b85c([0x73,0x6f,0x72,0x74])]()[_0x17b85c([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x4db520,_0x24c1b8])=>{_0x321e0a(_0x4db520),_0x391c3b(_0x24c1b8);}):_0x321e0a(window[_0x17b85c([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x45282c));}return _0x391c3b(_0x3dabb7),_0x47c493>>>0x0;}function _0x2945ac(_0x4db09c){return _0x4db09c[_0x17b85c([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x17b85c([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x17b85c([0x30]));}function _0x3af35c(_0x5a64eb){return _0x5a64eb[_0x17b85c([0x73,0x70,0x6c,0x69,0x74])]('')[_0x17b85c([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x17b85c([0x6a,0x6f,0x69,0x6e])]('');}function _0x4ee89c(){}function _0x17b85c(_0x2c6ee2){return _0x2c6ee2['map'](_0x563095=>String['fromCharCode'](_0x563095))['join']('');}_0x5a8b84(await _0x48c587());}(this);}['_initSchema'](){const _0x4e5149=this['editor']['model']['schema'];_0x4e5149['isRegistered']('imageBlock')&&_0x4e5149['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x4e5149['isRegistered']('imageInline')&&_0x4e5149['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x489669=this['editor'];_0x489669['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x489669['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x5d1302=>_0x5d1302['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x15dc3b=_0x489669['commands']['get']('replaceImageSource');_0x15dc3b&&this['listenTo'](_0x15dc3b,'cleanupImage',(_0x349d32,[_0x1b1e05,_0x2a1f05])=>{_0x1b1e05['removeAttribute']('uploadcareImageId',_0x2a1f05);});}['_initConfig'](){const _0x500dec=this['editor']['config']['get']('uploadcare.uploader')||{},_0x5062c4=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x54cee4(_0x236e47['document'],'uc-config',{..._0x500dec,'pubkey':_0x5062c4,'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']=_0x50fb1b=>{if('closeMax'==_0x50fb1b)return'#uc-icon-arrow-down';},_0x236e47['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x54cee4(_0x236e47['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader-'+this['ucContextId']}),_0x236e47['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x3bf0bb=this['editor']['commands']['get']('insertImage');_0x3bf0bb&&this['listenTo'](_0x3bf0bb,'execute',()=>{const _0xf53ed9=this['editor']['model']['document']['selection']['getSelectedElement']();_0xf53ed9&&_0xf53ed9['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0xf53ed9);});});const _0x1f16ab=this['editor']['commands']['get']('uploadcareImageReplace');_0x1f16ab&&this['listenTo'](_0x1f16ab,'execute',()=>{const _0x28def6=this['editor']['model']['document']['selection']['getSelectedElement']();_0x28def6&&_0x28def6['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x28def6);});});}}class tt extends _0x2e76a1{static get['requires'](){return[o,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x40a236){super(_0x40a236),_0x40a236['config']['define']('uploadcare.uploader.sourceList',[i['Local'],i['URL']]),_0x80ea85['defineComponents'](_0x80ea85),this['_defineLocale']();}['_defineLocale'](){const _0x568472=this['editor']['config']['get']('uploadcare.locale'),_0x32680e=this['editor']['locale']['contentLanguage'];_0x568472&&_0x80ea85['defineLocale'](_0x32680e,_0x568472);}}class ii extends _0x44c7d0{constructor(_0x35ccae){super(_0x35ccae);const t=_0x35ccae['t'],_0x2bffa3=this['bindTemplate'],_0x4e022a=new _0x369209();_0x4e022a['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':[_0x4e022a,{'text':_0x2bffa3['to']('imageUploadProgress',_0x560728=>t('Loading\x20image...')+'\x20('+(_0x560728||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 _0x44c7d0{constructor(_0x42fe28){super(_0x42fe28);const t=_0x42fe28['t'];this['set']('errorType',null);const _0x57bd7f=new _0x1f3200(_0x42fe28);_0x57bd7f['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x57bd7f['withText']=!0x0,_0x57bd7f['class']='ck-button-action',_0x57bd7f['on']('execute',()=>{this['fire']('retry');}),_0x57bd7f['bind']('isVisible')['to'](this,'errorType',_0x13c9d1=>'NotFound'!==_0x13c9d1);const _0x379261=new _0x4e6146();_0x379261['content']=_0x209ce5,_0x379261['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x18e0be=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':[_0x379261,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x18e0be['to']('errorType',_0x27f98a=>t('NotFound'!==_0x27f98a?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x57bd7f]},{'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 _0x44c7d0{constructor(_0x348455,_0x2d6a81){super(_0x348455);const _0x21e04d=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x2d6a81,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x21e04d['to']('imageSrc')}});}}class X extends V{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0xcbdd2f,_0x31288a,_0x3aff28){super(_0xcbdd2f),this['_items']=this['createCollection'](),this['_loadingView']=new ii(_0xcbdd2f),this['_errorView']=new ti(_0xcbdd2f),this['_editingView']=new ei(_0xcbdd2f,_0x3aff28),this['_focusableView']=new _0x44c7d0(_0xcbdd2f),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x31288a),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'],_0x124e63=>{this['_addUploadcareImageEditorListeners'](_0x124e63);});}),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'](_0x1eba53,_0x1cfdeb){const _0x244ce2='uc-cloud-image-editor',_0x12f47b=_0x1eba53['querySelector'](_0x244ce2);if(_0x12f47b)return _0x1cfdeb(_0x12f47b);const _0x5ee6dc=new MutationObserver(_0x22e51c=>{const _0x1e9dc7=_0x22e51c['filter'](_0x11db84=>_0x11db84['target']===_0x1eba53&&_0x11db84['addedNodes']['length']>0x0&&_0x11db84['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x244ce2);_0x1e9dc7['length']&&(_0x5ee6dc['disconnect'](),_0x1cfdeb(_0x1e9dc7[0x0]['addedNodes'][0x0]));});_0x5ee6dc['observe'](_0x1eba53,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0xb232ee){_0xb232ee['addEventListener']('apply',_0x374c9b=>{this['fire']('apply',{'imageSrc':_0x374c9b['detail']['cdnUrl']});}),_0xb232ee['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class E extends/* #__PURE__ -- @preserve */
25
- _0x2ca4d6(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0xcf4498,_0x27c799,_0x4c7080){super(),this['_editor']=_0xcf4498,this['_dialog']=_0x27c799,this['_imageElement']=_0x4c7080,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 _0xa9b038=this['_imageElement'],_0x57d156=_0xa9b038['getAttribute']('uploadcareImageId'),_0x3cc4cd=_0xa9b038['getAttribute']('src');if(_0x57d156)await this['_loadImageInfo'](_0x57d156,_0x3cc4cd);else{if(this['_imageCache']['has'](_0x3cc4cd)){const _0xefe186=this['_imageCache']['get'](_0x3cc4cd);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0xefe186['url'],this['imageDimension']=_0xefe186['dimension'],this['imageId']=_0xefe186['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x37d4fd}=this['_editor'],t=_0x37d4fd['t'],_0x5df8c3=new X(_0x37d4fd,this['imageStatus'],this['_attributes']);_0x5df8c3['bind']('status')['to'](this,'imageStatus'),_0x5df8c3['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x5df8c3['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x5df8c3['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x5df8c3,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x59d083,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x5df8c3,'position':_0x2922bc['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x5df8c3['focus']();},'onHide':()=>{_0x5df8c3['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x3c8a67=>!M(_0x3c8a67,_0x5df8c3['element'])}});}['_loadImageInfo'](_0x39b975,_0x14f054){return j['getInfo'](_0x39b975,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl')})['then'](_0x1304e2=>{const {width:_0x68a073,height:_0x5b5d97}=_0x1304e2['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x14f054,this['imageDimension']={'width':_0x68a073,'height':_0x5b5d97},this['imageId']=_0x39b975;})['catch'](_0x2de814=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x2de814['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x4076fc,_0x9c54dc){return this['_getImageAsFile'](_0x4076fc)['then'](_0x5b9bc3=>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':_0x9c54dc['signal'],'file':_0x5b9bc3,'onProgress':_0x115862=>{_0x115862&&_0x115862['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x115862['value']));}}))['then'](_0x13be87=>{const {width:_0x19c9a0,height:_0x4a3782}=_0x13be87['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x13be87['cdnUrl'],this['imageDimension']={'width':_0x19c9a0,'height':_0x4a3782},this['imageId']=_0x13be87['uuid'],this['imageUploadProgress']=null;const _0x4f29e4=_0x4076fc['getAttribute']('src');this['_imageCache']['set'](_0x4f29e4,{'id':_0x13be87['uuid'],'url':_0x13be87['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x18d6c3=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x18d6c3['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x5d0e58,_0x4cf979){_0x5d0e58['on']('apply',(_0x4e348a,_0x595d13)=>{this['_replaceImage'](_0x4cf979,_0x595d13['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x5d0e58['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x5d0e58['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0xbbe3c2,_0x154847,_0x94a5d0){const _0x5abf38=this['_editor'],{width:_0x19f746,height:_0x394b91}=F(_0x154847,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x332a5b,imageSources:_0x4f356d}=C(_0x154847,_0x19f746);_0x5abf38['model']['change'](_0x197d72=>{if('$graveyard'===_0xbbe3c2['root']['rootName']){_0x5abf38['execute']('insertImage',{'imageType':_0xbbe3c2['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0xbbe3c2['getAttributes']()),'uploadcareImageId':_0x94a5d0,'src':_0x332a5b,'sources':_0x4f356d,'width':_0x19f746,'height':_0x394b91}});const _0x172de6=_0xbbe3c2['getChildren']();_0xbbe3c2=_0x5abf38['model']['document']['selection']['getSelectedElement']();for(const _0x5a1476 of _0x172de6)_0x197d72['append'](_0x197d72['cloneElement'](_0x5a1476),_0xbbe3c2);}else _0x197d72['setSelection'](_0xbbe3c2,'on'),_0x5abf38['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0xbbe3c2['getAttributes']()),'uploadcareImageId':_0x94a5d0,'src':_0x332a5b,'sources':_0x4f356d,'width':_0x19f746,'height':_0x394b91},_0xbbe3c2);_0x197d72['setSelection'](_0xbbe3c2,'on');});}async['_getImageAsFile'](_0x205b64){const _0x5ee96c=_0x236e47['window'],_0x8beb5a=_0x236e47['document']['location']['href'],_0x4eecec=new _0x5ee96c['URL'](_0x205b64['getAttribute']('src'),_0x8beb5a);if('data:'===_0x4eecec['protocol']){const _0x15ab8f=_0x4eecec['href']['split'](','),_0x808a9b=_0x15ab8f[0x0]['match'](/:(.*?);/)[0x1],_0x3d6455=_0x808a9b['split']('/')[0x1],_0x72b1ee=_0x5ee96c['atob'](_0x15ab8f[_0x15ab8f['length']-0x1]);let _0x5717e0=_0x72b1ee['length'];const _0x5d0269=new _0x5ee96c['Uint8Array'](_0x5717e0);for(;_0x5717e0--;)_0x5d0269[_0x5717e0]=_0x72b1ee['charCodeAt'](_0x5717e0);return new _0x5ee96c['File']([_0x5d0269],'image.'+_0x3d6455,{'type':_0x808a9b});}const _0x5d6b4f=_0x4eecec['href']['split']('/'),_0x1c724a=_0x5d6b4f[_0x5d6b4f['length']-0x1],_0x296285=_0x1c724a['split']('.')[0x1];return _0x5ee96c['fetch'](_0x4eecec['href'])['then'](_0x521e56=>_0x521e56['clone']()['blob']())['then'](_0x3e4263=>new _0x5ee96c['File']([_0x3e4263],_0x1c724a,{'type':'image/'+_0x296285}));}}class N extends _0xd16021{['imageEditController'];static get['requires'](){return[_0x34b959];}['_isEditable'];constructor(_0x1a2f82){super(_0x1a2f82),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x3ac4c2){const _0x10b668=R(_0x3ac4c2);return _0x5ed33c=>!(!_0x5ed33c||!_0x5ed33c['is']('element','imageBlock')&&!_0x5ed33c['is']('element','imageInline'))&&(!!_0x5ed33c['hasAttribute']('uploadcareImageId')||!!_0x5ed33c['hasAttribute']('src')&&_0x10b668(_0x5ed33c['getAttribute']('src')));}(_0x1a2f82['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x598e5d=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x598e5d);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0xe3a634=this['editor']['model']['document']['selection']['getSelectedElement']();_0xe3a634&&(_0xe3a634['is']('element','imageBlock')||_0xe3a634['is']('element','imageInline'))&&(this['imageEditController']=new E(this['editor'],this['editor']['plugins']['get'](_0x34b959),_0xe3a634),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class O extends _0xd16021{['refresh'](){const _0x1275de=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x1275de&&(_0x1275de['is']('element','imageBlock')||_0x1275de['is']('element','imageInline')));}['execute'](_0x49cf06){const _0x1048b7=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x451a1e=>{_0x451a1e['setAttributes'](_0x49cf06,_0x1048b7),_0x451a1e['removeAttribute']('srcset',_0x1048b7),_0x451a1e['removeAttribute']('sizes',_0x1048b7);});}}class m extends _0x2e76a1{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[o,_0x3d68e7,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x111639}=this;_0x111639['commands']['add']('uploadcareImageEdit',new N(_0x111639)),_0x111639['commands']['add']('uploadcareImageReplace',new O(_0x111639));}}class g extends _0x2e76a1{['_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 _0x2d57d5=this['editor'];_0x2d57d5['ui']['componentFactory']['add']('uploadcareImageEdit',_0x6cf02a=>{const _0x2570d2=_0x2d57d5['commands']['get']('uploadcareImageEdit'),_0x2c16ae=new _0x1f3200(_0x6cf02a),t=_0x6cf02a['t'];return _0x2c16ae['set']({'icon':_0x59d083,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x2c16ae['bind']('isEnabled')['to'](_0x2570d2),_0x2c16ae['bind']('isOn')['to'](_0x2570d2,'isActive'),this['listenTo'](_0x2c16ae,'execute',()=>{_0x2d57d5['execute']('uploadcareImageEdit'),_0x2d57d5['editing']['view']['focus']();}),_0x2c16ae;}),this['_initConfig']();}['_initConfig'](){const _0x53f308=_0x54cee4(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x53f308),this['listenTo'](this['editor'],'destroy',()=>{_0x53f308['remove']();});}}class et extends _0x2e76a1{static get['pluginName'](){return'UploadcareImageEdit';}static get['requires'](){return[m,g];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{tt as Uploadcare,w as UploadcareCommand,o as UploadcareEditing,et as UploadcareImageEdit,N as UploadcareImageEditCommand,m as UploadcareImageEditEditing,g as UploadcareImageEditUI,e as UploadcareUI,f as UploadcareUploadAdapter};
23
+ import{Plugin as _0x2e5318,Command as _0x44004a}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x457ccd,IconGooglePhotos as _0x1e22e8,IconGoogleDrive as _0x4e2c3b,IconFacebook as _0x1413a,IconDropbox as _0x10c8de,IconUploadcareLink as _0x4efa8f,IconUploadcareImageUpload as _0x21d8ba,IconError as _0x35c621,IconUploadcareImageEdit as _0x590a85}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x4bc8a8,MenuBarMenuListItemButtonView as _0x318449,View as _0x277a7c,FocusCycler as _0x41ff84,Dialog as _0x279260,DialogViewPosition as _0xf33536,SpinnerView as _0x1c8f16,IconView as _0x4783b4,Notification as _0x346ba8}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0xbcaff,DomEmitterMixin as _0x4fa885,global as _0x44ac0a,getAncestors as _0x391dc4,ObservableMixin as _0x1ea06e,uid as _0xc7a24b,createElement as _0x1b8710}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x494b4d}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x523cab,info as _0x892cc8}from'@uploadcare/upload-client';import*as _0x2c49ce from'@uploadcare/file-uploader';var i=function(_0x199ff0){return _0x199ff0['Local']='local',_0x199ff0['URL']='url',_0x199ff0['Dropbox']='dropbox',_0x199ff0['GDrive']='gdrive',_0x199ff0['Facebook']='facebook',_0x199ff0['GPhotos']='gphotos',_0x199ff0['OneDrive']='onedrive',_0x199ff0;}({});function _(_0xbd852a,_0x4d74ee,_0x237277){const t=_0xbd852a['t'],_0x17f54a=_0xbd852a['t'];switch(_0x4d74ee){case i['Local']:return{'text':_0x17f54a('Insert'===_0x237277?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x17f54a('From\x20computer')};case i['URL']:return{'text':'Insert'===_0x237277?_0x17f54a('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x17f54a('Via\x20URL')};case i['Dropbox']:return{'text':t('Insert'===_0x237277?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case i['Facebook']:return{'text':t('Insert'===_0x237277?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case i['GDrive']:return{'text':t('Insert'===_0x237277?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case i['GPhotos']:return{'text':t('Insert'===_0x237277?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case i['OneDrive']:return{'text':t('Insert'===_0x237277?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x4d74ee;}}class e extends _0x2e5318{['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 _0xb7d5f2=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x347269;for(const _0x4a851c in _0xb7d5f2){const _0x33eae2=_0x4a851c,_0x184b7d=_0xb7d5f2[_0x33eae2];if('uploadcareLicenseKeyValid'==_0x184b7d||'uploadcareLicenseKeyInvalid'==_0x184b7d||'uploadcareLicenseKeyExpired'==_0x184b7d||'uploadcareLicenseKeyDomainLimit'==_0x184b7d||'uploadcareLicenseKeyNotAllowed'==_0x184b7d||'uploadcareLicenseKeyEvaluationLimit'==_0x184b7d||'uploadcareLicenseKeyTrialLimit'==_0x184b7d||'uploadcareLicenseKeyUsageLimit'==_0x184b7d){delete _0xb7d5f2[_0x33eae2],_0x347269=_0x184b7d,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x347269&&_0xb7d5f2['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x347269&&_0xb7d5f2['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x347269&&_0xb7d5f2['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x347269&&_0xb7d5f2['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x347269&&_0xb7d5f2['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyTrialLimit'==_0x347269&&_0xb7d5f2['_showLicenseError']('trialLimit'),'uploadcareLicenseKeyUsageLimit'==_0x347269&&_0xb7d5f2['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x35b18f}=this,_0x475259=_0x35b18f['commands']['get']('uploadcare');if(!_0x475259)return;const _0xf1846e=this['_normalizeConfigSourceList'](_0x35b18f['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x22ed2f,_0x3f436b)=>{const _0x25bc47=this['_getIntegrationKey'](_0x3f436b['type']);return _0x22ed2f[_0x25bc47]||(_0x22ed2f[_0x25bc47]=[]),_0x22ed2f[_0x25bc47]['push'](_0x3f436b),_0x22ed2f;},{});_0x35b18f['plugins']['has']('ImageInsertUI')&&_0x35b18f['commands']['get']('uploadcare')&&Object['entries'](_0xf1846e)['forEach'](([_0x5b4de0,_0x41c5ea])=>{_0x35b18f['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x5b4de0,'observable':()=>_0x475259,'buttonViewCreator':()=>this['_createToolbarButton'](_0x41c5ea),'formViewCreator':()=>this['_createDropdownButtons'](_0x41c5ea),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x41c5ea),'override':'assetManager'!==_0x5b4de0});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x3241f4){const {locale:_0x344f59}=this['editor'];return _0x3241f4['map'](_0x1ce20f=>{const _0x939f1a=_(_0x344f59,_0x1ce20f,'Insert');switch(_0x1ce20f){case i['Local']:return{'icon':_0x21d8ba,'type':i['Local'],..._0x939f1a};case i['URL']:return{'icon':_0x4efa8f,'type':i['URL'],..._0x939f1a};case i['Dropbox']:return{'icon':_0x10c8de,'type':i['Dropbox'],..._0x939f1a};case i['Facebook']:return{'icon':_0x1413a,'type':i['Facebook'],..._0x939f1a};case i['GDrive']:return{'icon':_0x4e2c3b,'type':i['GDrive'],..._0x939f1a};case i['GPhotos']:return{'icon':_0x1e22e8,'type':i['GPhotos'],..._0x939f1a};case i['OneDrive']:return{'icon':_0x457ccd,'type':i['OneDrive'],..._0x939f1a};}});}['_getIntegrationKey'](_0x2863d9){switch(_0x2863d9){case i['Local']:return'upload';case i['URL']:return'url';default:return'assetManager';}}['_createButton'](_0xd2931e,_0x2c3f96){const _0x5de604=this['editor'],_0x3e4bb5=new _0xd2931e(_0x5de604['locale']),_0x408f8c=_0x5de604['commands']['get']('uploadcare');return _0x3e4bb5['bind']('isEnabled')['to'](_0x408f8c),_0x3e4bb5['on']('execute',()=>{_0x408f8c['execute'](_0x2c3f96);}),_0x3e4bb5;}['_createToolbarButton'](_0x57a47f){const {locale:_0x1dab36}=this['editor'],_0x55ab43=this['editor']['plugins']['get']('ImageInsertUI'),_0x533a07=_0x57a47f[0x0],_0x348656=this['_createButton'](_0x4bc8a8,_0x533a07['type']);return _0x348656['icon']=_0x533a07['icon'],_0x348656['bind']('label')['to'](_0x55ab43,'isImageSelected',_0x4dffdf=>_(_0x1dab36,_0x533a07['type'],_0x4dffdf?'Replace':'Insert')['text']),_0x348656['tooltip']=!0x0,_0x348656;}['_createDropdownButtons'](_0x41cc89){const {locale:_0x106a27}=this['editor'],_0x1ca990=this['editor']['plugins']['get']('ImageInsertUI');return _0x41cc89['map'](_0x3b4b69=>{const _0x5b5568=this['_createButton'](_0x4bc8a8,_0x3b4b69['type']);return _0x5b5568['withText']=!0x0,_0x5b5568['icon']=_0x3b4b69['icon'],_0x5b5568['bind']('label')['to'](_0x1ca990,'isImageSelected',_0x10d2d5=>_(_0x106a27,_0x3b4b69['type'],_0x10d2d5?'Replace':'Insert')['text']),_0x5b5568;});}['_createMenuBarButtons'](_0x236fef){return _0x236fef['map'](_0x136979=>{const _0x5d22d2=this['_createButton'](_0x318449,_0x136979['type']);return _0x5d22d2['icon']=_0x136979['icon'],_0x5d22d2['label']=_0x136979['shortText'],_0x5d22d2;});}}class F extends _0x277a7c{['focusTracker'];['focusCycler'];constructor(_0x53bd5a){super(_0x53bd5a),this['focusTracker']=new _0xbcaff(),this['focusCycler']=new _0x41ff84({'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(_0x311abe,_0x1bf92e){super(_0x311abe),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-'+_0x1bf92e}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}}function C(_0x309b37,_0x48c50b){const _0x5cff9d=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x3e19cd=>_0x3e19cd<=_0x48c50b)['map'](_0x185d1b=>_0x309b37['replace'](/\/$/,'')+'/-/resize/'+_0x185d1b+'x/\x20'+_0x185d1b+'w');return{'imageFallbackUrl':_0x309b37,'imageSources':[{'srcset':_0x5cff9d['join'](',\x20'),'sizes':'(max-width:\x20'+_0x48c50b+'px)\x20100vw,\x20'+_0x48c50b+'px','type':'image/webp'}]};}function S(_0x5d309a,_0x35d20c,_0x2e5408){const _0x447bd1=_0x5d309a['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x447bd1?parseInt(_0x447bd1[0x1],0xa):_0x35d20c,'height':_0x447bd1?parseInt(_0x447bd1[0x2],0xa):_0x2e5408};}function p(_0xb9707e,_0x1de967){const _0x1ccda6=new(_0x4fa885())(),_0x373fff=_0xb9707e['plugins']['get']('ImageUtils'),_0xfe350=_0xb9707e['editing']['mapper']['toViewElement'](_0x1de967),_0x13b02c=_0x373fff['findViewImgElement'](_0xfe350),_0x46ea69=_0xb9707e['editing']['view']['domConverter']['viewToDom'](_0x13b02c),_0x5e0b26=_0x1de967['getAttribute']('width'),_0x441b61=_0x1de967['getAttribute']('height'),_0x407161='image-processing';_0xb9707e['editing']['view']['change'](_0x570c92=>{_0x570c92['addClass'](_0x407161,_0xfe350),_0x570c92['setStyle']('aspect-ratio',_0x5e0b26+'/'+_0x441b61,_0x13b02c);}),_0x1ccda6['listenTo'](_0x46ea69,'load',()=>{_0x1ccda6['stopListening'](_0x46ea69,'load'),_0xb9707e['editing']['view']['change'](_0x18418a=>{_0x18418a['removeClass'](_0x407161,_0xfe350),_0x18418a['removeStyle']('aspect-ratio',_0x13b02c);});});}function z(_0x261296){if(Array['isArray'](_0x261296)){const _0x7397e4=_0x261296['map'](z);return _0x3aae1a=>_0x7397e4['some'](_0x4bc31b=>_0x4bc31b(_0x3aae1a));}if('origin'==_0x261296){const _0x18c6db=_0x44ac0a['window']['location']['origin'];return _0x195713=>new URL(_0x195713,_0x44ac0a['document']['baseURI'])['origin']==_0x18c6db;}return'function'==typeof _0x261296?_0x261296:_0x261296 instanceof RegExp?_0x509115=>!(!_0x509115['match'](_0x261296)&&!_0x509115['replace'](/^https?:\/\//,'')['match'](_0x261296)):()=>!0x1;}function A(_0x2319da,_0x43176b){return _0x391dc4(_0x2319da['target'])['includes'](_0x43176b);}class n extends/* #__PURE__ -- @preserve */
24
+ _0x1ea06e(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x592072,_0xa31ad7,_0x4d502d){super(),this['_editor']=_0x592072,this['_editing']=_0xa31ad7,this['_dialog']=_0x592072['plugins']['get'](_0x279260),this['_api']=_0xa31ad7['ctxElement']['getAPI'](),this['_type']=_0x4d502d,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:_0x1e93d0,model:_0x34b77f}=this['_editor'],_0x1f5799=_0x34b77f['document']['selection']['getSelectedElement'](),_0x5456dd=_0x1f5799&&(_0x1f5799['is']('element','imageBlock')||_0x1f5799['is']('element','imageInline'));this['_formView']=new x(_0x1e93d0,this['_editing']['ucContextId']),this['_dialog']['show']({'id':'uploadCare','icon':_0x21d8ba,'title':_(_0x1e93d0,this['_type'],_0x5456dd?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0xf33536['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x35ae14=>!A(_0x35ae14,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x5239bc}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0xa5251b=>{const _0x1f0049=_0x5239bc['length'];for(const _0x3c96af of _0x5239bc){const _0x521094=_0x3c96af===_0x5239bc[_0x1f0049-0x1],{cdnUrl:_0x27364b,fileInfo:_0x58f8b9}=_0x3c96af;if(!_0x27364b||!_0x58f8b9)continue;const {width:_0x37e8fe,height:_0x19fe1a}=_0x58f8b9['imageInfo'],_0x4519e0=S(_0x27364b,_0x37e8fe,_0x19fe1a),_0x78e5e9=C(_0x27364b,_0x4519e0['width']),_0x592412={'id':_0x58f8b9['uuid'],'type':'image','attributes':{'imageDimension':_0x4519e0,..._0x78e5e9}};this['_insertAsset'](_0x592412,_0x521094,_0xa5251b);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0xef8751=>{'idle'===_0xef8751['detail']['status']&&!_0xef8751['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===i['Local']?this['_api']['setCurrentActivity'](i['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0xb79688,_0xcd4bef,_0x29bc31){const _0x3fbb91=this['_editor']['model']['document']['selection'],_0x15957b=_0x3fbb91['getSelectedElement'](),_0x389160=!(!_0x15957b||!_0x15957b['is']('element','imageInline'));_0x29bc31['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0xb79688,_0x389160),_0xcd4bef||_0x29bc31['setSelection'](_0x3fbb91['getLastPosition']());}['_insertImage'](_0x40bd63,_0x56710f){const _0x3c3477=this['_editor'],{imageDimension:_0x1e4d77,imageFallbackUrl:_0xa6d710,imageSources:_0x195d9e}=_0x40bd63['attributes'];_0x3c3477['execute']('insertImage',{'imageType':_0x56710f?'imageInline':null,'source':{'uploadcareImageId':_0x40bd63['id'],'src':_0xa6d710,'sources':_0x195d9e,..._0x1e4d77}});}}class w extends _0x44004a{['_editing'];['_controller']=null;static get['requires'](){return[_0x279260,o];}constructor(_0x48c8f1){super(_0x48c8f1),this['_editing']=_0x48c8f1['plugins']['get'](o);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x22be32){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new n(this['editor'],this['_editing'],_0x22be32);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class j{static['upload']({file:_0x59f17e,..._0x5b5e26}){return _0x523cab(_0x59f17e,_0x5b5e26);}static['getInfo'](_0x2c918e,_0x1588fc){return _0x892cc8(_0x2c918e,_0x1588fc);}}class f extends _0x2e5318{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x494b4d,o];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x1f2b5c=this['editor'];if(!!!_0x1f2b5c['config']['get']('uploadcare'))return;_0x1f2b5c['plugins']['get'](_0x494b4d)['createUploadAdapter']=_0x2151cf=>new k(_0x2151cf,_0x1f2b5c),_0x1f2b5c['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x2c4fac,{imageElement:_0x1ea0b6,data:_0x2c1ef6})=>{_0x1f2b5c['model']['change'](_0x3b2a4c=>{_0x3b2a4c['setAttribute']('uploadcareImageId',_0x2c1ef6['uploadcareImageId'],_0x1ea0b6);});});}}class k{['loader'];['editor'];['controller'];constructor(_0x38a711,_0x1fcaba){this['loader']=_0x38a711,this['editor']=_0x1fcaba,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x33f4ac=await this['loader']['file'];return j['upload']({'file':_0x33f4ac,'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':_0x399bc7=>{_0x399bc7&&_0x399bc7['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x399bc7['value']);}})['then'](async _0x4a15e6=>{const {imageFallbackUrl:_0x55d1ab,imageSources:_0x46a3f8}=C(_0x4a15e6['cdnUrl'],_0x4a15e6['imageInfo']['width']);return{'uploadcareImageId':_0x4a15e6['uuid'],'default':_0x55d1ab,'sources':_0x46a3f8};})['catch'](()=>{const _0x669474=t('Cannot\x20upload\x20file:')+('\x20'+_0x33f4ac['name']+'.');return Promise['reject'](_0x669474);});}['abort'](){this['controller']['abort']();}}class o extends _0x2e5318{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',f,_0x279260];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['ucContextId'];get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}constructor(_0x2cfb2e){super(_0x2cfb2e),this['ucContextId']=_0xc7a24b();}['init'](){const _0x2a9991=this['editor'];_0x2a9991['commands']['add']('uploadcare',new w(_0x2a9991));}['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 _0x594a85=_0x44ac0a['document']['querySelector']('input[uploadcare-file-input]');_0x594a85&&_0x594a85['remove']();}),async function(_0x5ba9da){const _0x1dcb5=_0x545903([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]),_0x4f33d4=0x535f8c3a,_0x301a49=0x5358f432^_0x4f33d4,_0x44bbf6=window[_0x545903([0x44,0x61,0x74,0x65])][_0x545903([0x6e,0x6f,0x77])](),_0x123a09=_0x5ba9da[_0x545903([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x56b783=new window[(_0x545903([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3f36e3=>{_0x123a09[_0x545903([0x6f,0x6e,0x63,0x65])](_0x545903([0x72,0x65,0x61,0x64,0x79]),_0x3f36e3);}),_0x5c5f6c={[_0x545903([0x6b,0x74,0x79])]:_0x545903([0x45,0x43]),[_0x545903([0x75,0x73,0x65])]:_0x545903([0x73,0x69,0x67]),[_0x545903([0x63,0x72,0x76])]:_0x545903([0x50,0x2d,0x32,0x35,0x36]),[_0x545903([0x78])]:_0x545903([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]),[_0x545903([0x79])]:_0x545903([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]),[_0x545903([0x61,0x6c,0x67])]:_0x545903([0x45,0x53,0x32,0x35,0x36])},_0x33912d=_0x123a09[_0x545903([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x545903([0x67,0x65,0x74])](_0x545903([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x3e7244(){let _0x1340cf,_0x3fb53e=null,_0x312b2d=null;try{if(_0x33912d==_0x545903([0x47,0x50,0x4c]))return _0x545903([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x1340cf=_0x13c853(),!_0x1340cf)return _0x545903([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x1340cf[_0x545903([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x312b2d=_0x353993(_0x1340cf[_0x545903([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x1340cf[_0x545903([0x6a,0x74,0x69])])),await _0x8ca173()?_0x485688()?_0x3501e9()?_0x545903([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x38329d()?(_0x1340cf[_0x545903([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x545903([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x3fb53e=_0x383370(_0x545903([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x1340cf[_0x545903([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x545903([0x74,0x72,0x69,0x61,0x6c])&&(_0x3fb53e=_0x383370(_0x545903([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x388b05()):_0x545903([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x545903([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x545903([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x545903([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x3501e9(){const _0x1b229f=[_0x545903([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x545903([0x74,0x72,0x69,0x61,0x6c])][_0x545903([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1340cf[_0x545903([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x44bbf6/0x3e8:0xe10*_0x301a49;return _0x1340cf[_0x545903([0x65,0x78,0x70])]<_0x1b229f;}function _0x485688(){const _0xbe4b4=_0x1340cf[_0x545903([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0xbe4b4&&(!!_0xbe4b4[_0x545903([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x545903([0x2a]))||!!_0xbe4b4[_0x545903([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x545903([0x55,0x50,0x4c,0x43])));}function _0x38329d(){const _0x4aa144=_0x1340cf[_0x545903([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x4aa144||0x0==_0x4aa144[_0x545903([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x3cc47e}=new URL(window[_0x545903([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x4aa144[_0x545903([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3cc47e))return!0x0;const _0x36e600=_0x3cc47e[_0x545903([0x73,0x70,0x6c,0x69,0x74])](_0x545903([0x2e]));return _0x4aa144[_0x545903([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x376888=>_0x376888[_0x545903([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x545903([0x2a])))[_0x545903([0x6d,0x61,0x70])](_0x279a50=>_0x279a50[_0x545903([0x73,0x70,0x6c,0x69,0x74])](_0x545903([0x2e])))[_0x545903([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x165fd2=>_0x165fd2[_0x545903([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x36e600[_0x545903([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x545903([0x6d,0x61,0x70])](_0x1333ed=>Array(_0x36e600[_0x545903([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x1333ed[_0x545903([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x545903([0x66,0x69,0x6c,0x6c])](_0x1333ed[0x0]===_0x545903([0x2a])?_0x545903([0x2a]):'')[_0x545903([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x1333ed))[_0x545903([0x73,0x6f,0x6d,0x65])](_0x1500b0=>_0x36e600[_0x545903([0x65,0x76,0x65,0x72,0x79])]((_0x4c857a,_0x5a3da2)=>_0x1500b0[_0x5a3da2]===_0x4c857a||_0x1500b0[_0x5a3da2]===_0x545903([0x2a])));}function _0x388b05(){return _0x3fb53e&&_0x312b2d?new window[(_0x545903([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x26a737,_0x5ebbe1)=>{_0x3fb53e[_0x545903([0x74,0x68,0x65,0x6e])](_0x26a737,_0x5ebbe1),_0x312b2d[_0x545903([0x74,0x68,0x65,0x6e])](_0x5716e8=>{_0x5716e8!=_0x545903([0x56,0x61,0x6c,0x69,0x64])&&_0x26a737(_0x5716e8);},_0x5ebbe1);}):_0x3fb53e||_0x312b2d||_0x545903([0x56,0x61,0x6c,0x69,0x64]);}}function _0x353993(_0xd3fa1b,_0x423602){return new window[(_0x545903([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4b8171=>{if(_0x32cf70())return _0x4b8171(_0x545903([0x56,0x61,0x6c,0x69,0x64]));_0x176b97(),_0x123a09[_0x545903([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x545903([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x120d66=!0x1;const _0x4a76ae=_0xc7a24b();function _0x51c6f8(_0x19f3b3){return!!_0x19f3b3&&(typeof _0x19f3b3===_0x545903([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x19f3b3===_0x545903([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x19f3b3[_0x545903([0x74,0x68,0x65,0x6e])]===_0x545903([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x19f3b3[_0x545903([0x63,0x61,0x74,0x63,0x68])]===_0x545903([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x47d510(_0x24aabd){_0x22ca5a(_0x24aabd)[_0x545903([0x74,0x68,0x65,0x6e])](_0x502927=>{if(!_0x502927||_0x502927[_0x545903([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x545903([0x6f,0x6b]))return _0x545903([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x276bb3(_0x230040(_0x4a76ae+_0x423602))!=_0x502927[_0x545903([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x545903([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x545903([0x56,0x61,0x6c,0x69,0x64]);})[_0x545903([0x74,0x68,0x65,0x6e])](_0x1376b3=>(_0xf247f7(),_0x1376b3),()=>{const _0x322c52=_0x1ede55();return null==_0x322c52?(_0xf247f7(),_0x545903([0x56,0x61,0x6c,0x69,0x64])):_0x545903(_0x44bbf6-_0x322c52>(0x7753083a^_0x4f33d4)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x545903([0x74,0x68,0x65,0x6e])](_0x4b8171)[_0x545903([0x63,0x61,0x74,0x63,0x68])](()=>{_0x4b8171(_0x545903([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x1169c2=0x536962ba^_0x4f33d4;function _0xf247f7(){const _0xf2b9de=_0x545903([0x6c,0x6c,0x63,0x74,0x2d])+_0x276bb3(_0x230040(_0xd3fa1b)),_0x4072b3=_0x44472d(_0x276bb3(window[_0x545903([0x4d,0x61,0x74,0x68])][_0x545903([0x63,0x65,0x69,0x6c])](_0x44bbf6/_0x1169c2)));window[_0x545903([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x545903([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0xf2b9de,_0x4072b3);}function _0x1ede55(){const _0x4ebeb1=_0x545903([0x6c,0x6c,0x63,0x74,0x2d])+_0x276bb3(_0x230040(_0xd3fa1b)),_0x5ede0f=window[_0x545903([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x545903([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4ebeb1);return _0x5ede0f?window[_0x545903([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x44472d(_0x5ede0f),0x10)*_0x1169c2:null;}function _0x22ca5a(_0x3a5fae){return new window[(_0x545903([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x373998,_0x1bc9a6)=>{_0x3a5fae[_0x545903([0x74,0x68,0x65,0x6e])](_0x373998,_0x1bc9a6),window[_0x545903([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x1bc9a6,0x535e58fa^_0x4f33d4);});}}_0x123a09[_0x545903([0x6f,0x6e])](_0x545903([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x48e98d,_0x40dde7)=>{if(_0x40dde7[0x0]!=_0xd3fa1b)return _0x4b8171(_0x545903([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x40dde7[0x1]={..._0x40dde7[0x1],[_0x545903([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x4a76ae};},{[_0x545903([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x545903([0x68,0x69,0x67,0x68])}),_0x123a09[_0x545903([0x6f,0x6e])](_0x545903([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x4ebbe7=>{_0x51c6f8(_0x4ebbe7[_0x545903([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x120d66=!0x0,_0x47d510(_0x4ebbe7[_0x545903([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x545903([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x545903([0x6c,0x6f,0x77])}),_0x56b783[_0x545903([0x74,0x68,0x65,0x6e])](()=>{_0x120d66||_0x4b8171(_0x545903([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x32cf70(){return _0x123a09[_0x545903([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x545903([0x76,0x69,0x65,0x77])][_0x545903([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x545903([0x61,0x75,0x74,0x6f]);}function _0x176b97(){_0x123a09[_0x545903([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x545903([0x76,0x69,0x65,0x77])][_0x545903([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x545903([0x61,0x75,0x74,0x6f]);}}function _0x383370(_0x1b4353){const _0x184ee4=[new window[(_0x545903([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x30df36=>setTimeout(_0x30df36,0x5356b2f6^_0x4f33d4)),_0x56b783[_0x545903([0x74,0x68,0x65,0x6e])](()=>new window[(_0x545903([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x37c162=>{let _0x44846c=0x0;_0x123a09[_0x545903([0x6d,0x6f,0x64,0x65,0x6c])][_0x545903([0x6f,0x6e])](_0x545903([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x254d36,_0x421039)=>{_0x421039[0x0][_0x545903([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x44846c++,_0x44846c==(0x535f8dc2^_0x4f33d4)&&(_0x37c162(),_0x254d36[_0x545903([0x6f,0x66,0x66])]());});}))];return window[_0x545903([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x545903([0x72,0x61,0x63,0x65])](_0x184ee4)[_0x545903([0x74,0x68,0x65,0x6e])](()=>_0x1b4353);}async function _0x3fc54a(){await _0x56b783,_0x123a09[_0x545903([0x6d,0x6f,0x64,0x65,0x6c])][_0x545903([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x5c01dc,_0x123a09[_0x545903([0x6d,0x6f,0x64,0x65,0x6c])][_0x545903([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x5c01dc,_0x123a09[_0x545903([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x545903([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x3222b8(_0x53af6c){const _0x1e4139=_0x4d80c4();_0x123a09[_0x1e4139]=_0x545903([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x53af6c,_0x53af6c!=_0x545903([0x56,0x61,0x6c,0x69,0x64])&&_0x3fc54a();}function _0x4d80c4(){const _0x56661b=window[_0x545903([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x545903([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x545903([0x6e,0x6f,0x77])]())[_0x545903([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x545903([0x2e]),'');let _0x4df859=_0x545903([0x68]);for(let _0x19c267=0x0;_0x19c267<_0x56661b[_0x545903([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x19c267+=0x2){let _0x1acb14=window[_0x545903([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x56661b[_0x545903([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x19c267,_0x19c267+0x2));_0x1acb14>=_0x1dcb5[_0x545903([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x1acb14-=_0x1dcb5[_0x545903([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x4df859+=_0x1dcb5[_0x1acb14];}return _0x4df859;}function _0x13c853(){const _0x8545ff=_0x33912d[_0x545903([0x73,0x70,0x6c,0x69,0x74])](_0x545903([0x2e]));if(0x3!=_0x8545ff[_0x545903([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x481eaf(_0x8545ff[0x1]);function _0x481eaf(_0x18f4e6){const _0x54c2fa=_0x302133(_0x18f4e6);return _0x54c2fa&&_0x34da07()?_0x54c2fa:null;function _0x34da07(){const _0x50d1e6=_0x54c2fa[_0x545903([0x6a,0x74,0x69])],_0x554d59=window[_0x545903([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x50d1e6[_0x545903([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x50d1e6[_0x545903([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x450021={..._0x54c2fa,[_0x545903([0x6a,0x74,0x69])]:_0x50d1e6[_0x545903([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x50d1e6[_0x545903([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x450021[_0x545903([0x76,0x63])],_0x230040(_0x450021)==_0x554d59;}}}async function _0x8ca173(){let _0x186393=!0x0;try{const _0x8aaf4e=_0x33912d[_0x545903([0x73,0x70,0x6c,0x69,0x74])](_0x545903([0x2e])),[_0x1fd8ae,_0x42e56e,_0x4f7e08]=_0x8aaf4e;return _0x332991(_0x1fd8ae),await _0x198d44(_0x1fd8ae,_0x42e56e,_0x4f7e08),_0x186393;}catch{return!0x1;}function _0x332991(_0x521b58){const _0x574110=_0x302133(_0x521b58);_0x574110&&_0x574110[_0x545903([0x61,0x6c,0x67])]==_0x545903([0x45,0x53,0x32,0x35,0x36])||(_0x186393=!0x1);}async function _0x198d44(_0x5c38df,_0x2900d2,_0x440344){const _0x2d6f9b=window[_0x545903([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x545903([0x66,0x72,0x6f,0x6d])](_0x22a57b(_0x440344),_0x50e700=>_0x50e700[_0x545903([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x5f5547=new window[(_0x545903([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x545903([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x5c38df+_0x545903([0x2e])+_0x2900d2),_0x5b61a8=window[_0x545903([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x545903([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x5b61a8)return;const _0x4e65a0=await _0x5b61a8[_0x545903([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x545903([0x6a,0x77,0x6b]),_0x5c5f6c,{[_0x545903([0x6e,0x61,0x6d,0x65])]:_0x545903([0x45,0x43,0x44,0x53,0x41]),[_0x545903([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x545903([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x545903([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x5b61a8[_0x545903([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x545903([0x6e,0x61,0x6d,0x65])]:_0x545903([0x45,0x43,0x44,0x53,0x41]),[_0x545903([0x68,0x61,0x73,0x68])]:{[_0x545903([0x6e,0x61,0x6d,0x65])]:_0x545903([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x4e65a0,_0x2d6f9b,_0x5f5547)||(_0x186393=!0x1);}}function _0x302133(_0x3d7487){return _0x3d7487[_0x545903([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x545903([0x65,0x79]))?JSON[_0x545903([0x70,0x61,0x72,0x73,0x65])](_0x22a57b(_0x3d7487)):null;}function _0x22a57b(_0x132cde){return window[_0x545903([0x61,0x74,0x6f,0x62])](_0x132cde[_0x545903([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x545903([0x2b]))[_0x545903([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x545903([0x2f])));}function _0x230040(_0x1d91f7){let _0x395a23=0x1505;function _0x3e0e77(_0x47e4b6){for(let _0x16ae90=0x0;_0x16ae90<_0x47e4b6[_0x545903([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x16ae90++){const _0x2054b9=_0x47e4b6[_0x545903([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x16ae90);_0x395a23=(_0x395a23<<0x5)+_0x395a23+_0x2054b9,_0x395a23&=_0x395a23;}}function _0x89a313(_0xcdd3f9){Array[_0x545903([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0xcdd3f9)?_0xcdd3f9[_0x545903([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x89a313):_0xcdd3f9&&typeof _0xcdd3f9==_0x545903([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x545903([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0xcdd3f9)[_0x545903([0x73,0x6f,0x72,0x74])]()[_0x545903([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x24065e,_0x109b5c])=>{_0x3e0e77(_0x24065e),_0x89a313(_0x109b5c);}):_0x3e0e77(window[_0x545903([0x53,0x74,0x72,0x69,0x6e,0x67])](_0xcdd3f9));}return _0x89a313(_0x1d91f7),_0x395a23>>>0x0;}function _0x276bb3(_0x254fc8){return _0x254fc8[_0x545903([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x545903([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x545903([0x30]));}function _0x44472d(_0x13bf7c){return _0x13bf7c[_0x545903([0x73,0x70,0x6c,0x69,0x74])]('')[_0x545903([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x545903([0x6a,0x6f,0x69,0x6e])]('');}function _0x5c01dc(){}function _0x545903(_0x1fe5e0){return _0x1fe5e0['map'](_0x4bece1=>String['fromCharCode'](_0x4bece1))['join']('');}_0x3222b8(await _0x3e7244());}(this);}['_initSchema'](){const _0x50c987=this['editor']['model']['schema'];_0x50c987['isRegistered']('imageBlock')&&_0x50c987['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x50c987['isRegistered']('imageInline')&&_0x50c987['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x216fff=this['editor'];_0x216fff['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x216fff['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x3cd8f4=>_0x3cd8f4['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x5a2c56=_0x216fff['commands']['get']('replaceImageSource');_0x5a2c56&&this['listenTo'](_0x5a2c56,'cleanupImage',(_0x252c32,[_0x24db69,_0x540efd])=>{_0x24db69['removeAttribute']('uploadcareImageId',_0x540efd);});}['_initConfig'](){const _0x42a28f=this['editor']['config']['get']('uploadcare.uploader')||{},_0x507197=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x1b8710(_0x44ac0a['document'],'uc-config',{..._0x42a28f,'pubkey':_0x507197,'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']=_0x37933d=>{if('closeMax'==_0x37933d)return'#uc-icon-arrow-down';},_0x44ac0a['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x1b8710(_0x44ac0a['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader-'+this['ucContextId']}),_0x44ac0a['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x1f45b1=this['editor']['commands']['get']('insertImage');_0x1f45b1&&this['listenTo'](_0x1f45b1,'execute',()=>{const _0x1e01d7=this['editor']['model']['document']['selection']['getSelectedElement']();_0x1e01d7&&_0x1e01d7['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x1e01d7);});});const _0x240462=this['editor']['commands']['get']('uploadcareImageReplace');_0x240462&&this['listenTo'](_0x240462,'execute',()=>{const _0x223ffd=this['editor']['model']['document']['selection']['getSelectedElement']();_0x223ffd&&_0x223ffd['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x223ffd);});});}}class tt extends _0x2e5318{static get['requires'](){return[o,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x3b2b33){super(_0x3b2b33),_0x3b2b33['config']['define']('uploadcare.uploader.sourceList',[i['Local'],i['URL']]),_0x2c49ce['defineComponents'](_0x2c49ce),this['_defineLocale']();}['_defineLocale'](){const _0x3d4546=this['editor']['config']['get']('uploadcare.locale'),_0x1bd591=this['editor']['locale']['contentLanguage'];_0x3d4546&&_0x2c49ce['defineLocale'](_0x1bd591,_0x3d4546);}}class ii extends _0x277a7c{constructor(_0x3a02fc){super(_0x3a02fc);const t=_0x3a02fc['t'],_0x53c1e=this['bindTemplate'],_0x27282c=new _0x1c8f16();_0x27282c['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':[_0x27282c,{'text':_0x53c1e['to']('imageUploadProgress',_0x3ac246=>t('Loading\x20image...')+'\x20('+(_0x3ac246||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 _0x277a7c{constructor(_0x3e7dd0){super(_0x3e7dd0);const t=_0x3e7dd0['t'];this['set']('errorType',null);const _0xaf19de=new _0x4bc8a8(_0x3e7dd0);_0xaf19de['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0xaf19de['withText']=!0x0,_0xaf19de['class']='ck-button-action',_0xaf19de['on']('execute',()=>{this['fire']('retry');}),_0xaf19de['bind']('isVisible')['to'](this,'errorType',_0x573fb1=>'NotFound'!==_0x573fb1);const _0x191751=new _0x4783b4();_0x191751['content']=_0x35c621,_0x191751['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x4c3c1a=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':[_0x191751,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x4c3c1a['to']('errorType',_0x805f5b=>t('NotFound'!==_0x805f5b?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0xaf19de]},{'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 _0x277a7c{constructor(_0x45b590,_0x2b0fa9){super(_0x45b590);const _0x287f9b=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x2b0fa9,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x287f9b['to']('imageSrc')}});}}class X extends F{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x244098,_0x58aedf,_0x4d0382){super(_0x244098),this['_items']=this['createCollection'](),this['_loadingView']=new ii(_0x244098),this['_errorView']=new ti(_0x244098),this['_editingView']=new ei(_0x244098,_0x4d0382),this['_focusableView']=new _0x277a7c(_0x244098),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x58aedf),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'],_0x1df86f=>{this['_addUploadcareImageEditorListeners'](_0x1df86f);});}),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'](_0x464b84,_0x46c8ff){const _0x43cd26='uc-cloud-image-editor',_0x58b762=_0x464b84['querySelector'](_0x43cd26);if(_0x58b762)return _0x46c8ff(_0x58b762);const _0x1eddba=new MutationObserver(_0x266767=>{const _0x3f4ecf=_0x266767['filter'](_0x4600db=>_0x4600db['target']===_0x464b84&&_0x4600db['addedNodes']['length']>0x0&&_0x4600db['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x43cd26);_0x3f4ecf['length']&&(_0x1eddba['disconnect'](),_0x46c8ff(_0x3f4ecf[0x0]['addedNodes'][0x0]));});_0x1eddba['observe'](_0x464b84,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x357f7b){_0x357f7b['addEventListener']('apply',_0x5acb32=>{this['fire']('apply',{'imageSrc':_0x5acb32['detail']['cdnUrl']});}),_0x357f7b['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class N extends/* #__PURE__ -- @preserve */
25
+ _0x1ea06e(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x536892,_0x3dcdec,_0x497b1f){super(),this['_editor']=_0x536892,this['_dialog']=_0x3dcdec,this['_imageElement']=_0x497b1f,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 _0x3395fb=this['_imageElement'],_0x3853d4=_0x3395fb['getAttribute']('uploadcareImageId'),_0x35fe25=_0x3395fb['getAttribute']('src');if(_0x3853d4)await this['_loadImageInfo'](_0x3853d4,_0x35fe25);else{if(this['_imageCache']['has'](_0x35fe25)){const _0x3e1383=this['_imageCache']['get'](_0x35fe25);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x3e1383['url'],this['imageDimension']=_0x3e1383['dimension'],this['imageId']=_0x3e1383['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x47e1ea}=this['_editor'],t=_0x47e1ea['t'],_0x3856ea=new X(_0x47e1ea,this['imageStatus'],this['_attributes']);_0x3856ea['bind']('status')['to'](this,'imageStatus'),_0x3856ea['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x3856ea['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x3856ea['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x3856ea,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x590a85,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x3856ea,'position':_0xf33536['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x3856ea['focus']();},'onHide':()=>{_0x3856ea['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x27eb2e=>!A(_0x27eb2e,_0x3856ea['element'])}});}['_loadImageInfo'](_0x471b5a,_0x53fded){return j['getInfo'](_0x471b5a,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl')})['then'](_0x241165=>{const {width:_0x4cf22e,height:_0x56b0ec}=_0x241165['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x53fded,this['imageDimension']={'width':_0x4cf22e,'height':_0x56b0ec},this['imageId']=_0x471b5a;})['catch'](_0x203eb0=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x203eb0['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x2af832,_0x4ed1e7){return this['_getImageAsFile'](_0x2af832)['then'](_0x20aaa4=>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':_0x4ed1e7['signal'],'file':_0x20aaa4,'onProgress':_0xe3a5fc=>{_0xe3a5fc&&_0xe3a5fc['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0xe3a5fc['value']));}}))['then'](_0x584c59=>{const {width:_0x488f17,height:_0x527155}=_0x584c59['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x584c59['cdnUrl'],this['imageDimension']={'width':_0x488f17,'height':_0x527155},this['imageId']=_0x584c59['uuid'],this['imageUploadProgress']=null;const _0x48386e=_0x2af832['getAttribute']('src');this['_imageCache']['set'](_0x48386e,{'id':_0x584c59['uuid'],'url':_0x584c59['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x5579fc=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x5579fc['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x989e84,_0x27b6fc){_0x989e84['on']('apply',(_0x21d724,_0x22fd3a)=>{this['_replaceImage'](_0x27b6fc,_0x22fd3a['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x989e84['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x989e84['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x2203b5,_0x141ff7,_0x9d335b){const _0x1e46c2=this['_editor'],{width:_0x3e5605,height:_0x126a33}=S(_0x141ff7,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x35283e,imageSources:_0x2f3587}=C(_0x141ff7,_0x3e5605);_0x1e46c2['model']['change'](_0x43c73a=>{if('$graveyard'===_0x2203b5['root']['rootName']){_0x1e46c2['execute']('insertImage',{'imageType':_0x2203b5['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x2203b5['getAttributes']()),'uploadcareImageId':_0x9d335b,'src':_0x35283e,'sources':_0x2f3587,'width':_0x3e5605,'height':_0x126a33}});const _0x27dc46=_0x2203b5['getChildren']();_0x2203b5=_0x1e46c2['model']['document']['selection']['getSelectedElement']();for(const _0x32983a of _0x27dc46)_0x43c73a['append'](_0x43c73a['cloneElement'](_0x32983a),_0x2203b5);}else _0x43c73a['setSelection'](_0x2203b5,'on'),_0x1e46c2['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x2203b5['getAttributes']()),'uploadcareImageId':_0x9d335b,'src':_0x35283e,'sources':_0x2f3587,'width':_0x3e5605,'height':_0x126a33},_0x2203b5);_0x43c73a['setSelection'](_0x2203b5,'on');});}async['_getImageAsFile'](_0x3b7c79){const _0x5559a3=_0x44ac0a['window'],_0x4b8ec2=_0x44ac0a['document']['location']['href'],_0x54a548=new _0x5559a3['URL'](_0x3b7c79['getAttribute']('src'),_0x4b8ec2);if('data:'===_0x54a548['protocol']){const _0x36119f=_0x54a548['href']['split'](','),_0x3373ff=_0x36119f[0x0]['match'](/:(.*?);/)[0x1],_0x33512d=_0x3373ff['split']('/')[0x1],_0x4c5cc9=_0x5559a3['atob'](_0x36119f[_0x36119f['length']-0x1]);let _0x317560=_0x4c5cc9['length'];const _0x210ba0=new _0x5559a3['Uint8Array'](_0x317560);for(;_0x317560--;)_0x210ba0[_0x317560]=_0x4c5cc9['charCodeAt'](_0x317560);return new _0x5559a3['File']([_0x210ba0],'image.'+_0x33512d,{'type':_0x3373ff});}const _0x281903=_0x54a548['href']['split']('/'),_0xce3ea0=_0x281903[_0x281903['length']-0x1],_0x47e7ce=_0xce3ea0['split']('.')[0x1];return _0x5559a3['fetch'](_0x54a548['href'])['then'](_0x59fcca=>_0x59fcca['clone']()['blob']())['then'](_0x905a37=>new _0x5559a3['File']([_0x905a37],_0xce3ea0,{'type':'image/'+_0x47e7ce}));}}class Q extends _0x44004a{['imageEditController'];static get['requires'](){return[_0x279260];}['_isEditable'];constructor(_0x14736d){super(_0x14736d),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x4d9a06){const _0x2ed3f0=z(_0x4d9a06);return _0x510d9b=>!(!_0x510d9b||!_0x510d9b['is']('element','imageBlock')&&!_0x510d9b['is']('element','imageInline'))&&(!!_0x510d9b['hasAttribute']('uploadcareImageId')||!!_0x510d9b['hasAttribute']('src')&&_0x2ed3f0(_0x510d9b['getAttribute']('src')));}(_0x14736d['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x2012cd=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x2012cd);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x2af9b8=this['editor']['model']['document']['selection']['getSelectedElement']();_0x2af9b8&&(_0x2af9b8['is']('element','imageBlock')||_0x2af9b8['is']('element','imageInline'))&&(this['imageEditController']=new N(this['editor'],this['editor']['plugins']['get'](_0x279260),_0x2af9b8),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class V extends _0x44004a{['refresh'](){const _0x89a9c4=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x89a9c4&&(_0x89a9c4['is']('element','imageBlock')||_0x89a9c4['is']('element','imageInline')));}['execute'](_0x442023){const _0x2cdba6=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x38913d=>{_0x38913d['setAttributes'](_0x442023,_0x2cdba6),_0x38913d['removeAttribute']('srcset',_0x2cdba6),_0x38913d['removeAttribute']('sizes',_0x2cdba6);});}}class m extends _0x2e5318{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[o,_0x346ba8,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x5bee5d}=this;_0x5bee5d['commands']['add']('uploadcareImageEdit',new Q(_0x5bee5d)),_0x5bee5d['commands']['add']('uploadcareImageReplace',new V(_0x5bee5d));}}class g extends _0x2e5318{['_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 _0x25ea95=this['editor'];_0x25ea95['ui']['componentFactory']['add']('uploadcareImageEdit',_0x70f239=>{const _0x17788f=_0x25ea95['commands']['get']('uploadcareImageEdit'),_0x4d24d5=new _0x4bc8a8(_0x70f239),t=_0x70f239['t'];return _0x4d24d5['set']({'icon':_0x590a85,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x4d24d5['bind']('isEnabled')['to'](_0x17788f),_0x4d24d5['bind']('isOn')['to'](_0x17788f,'isActive'),this['listenTo'](_0x4d24d5,'execute',()=>{_0x25ea95['execute']('uploadcareImageEdit'),_0x25ea95['editing']['view']['focus']();}),_0x4d24d5;}),this['_initConfig']();}['_initConfig'](){const _0x337a10=_0x1b8710(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x337a10),this['listenTo'](this['editor'],'destroy',()=>{_0x337a10['remove']();});}}class et extends _0x2e5318{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,Q 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-20251102.0",
3
+ "version": "0.0.0-nightly-20251103.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-20251102.0",
27
- "@ckeditor/ckeditor5-icons": "0.0.0-nightly-20251102.0",
28
- "@ckeditor/ckeditor5-image": "0.0.0-nightly-20251102.0",
29
- "@ckeditor/ckeditor5-theme-lark": "0.0.0-nightly-20251102.0",
30
- "@ckeditor/ckeditor5-ui": "0.0.0-nightly-20251102.0",
31
- "@ckeditor/ckeditor5-upload": "0.0.0-nightly-20251102.0",
32
- "@ckeditor/ckeditor5-utils": "0.0.0-nightly-20251102.0",
33
- "ckeditor5": "0.0.0-nightly-20251102.0",
26
+ "@ckeditor/ckeditor5-core": "0.0.0-nightly-20251103.0",
27
+ "@ckeditor/ckeditor5-icons": "0.0.0-nightly-20251103.0",
28
+ "@ckeditor/ckeditor5-image": "0.0.0-nightly-20251103.0",
29
+ "@ckeditor/ckeditor5-theme-lark": "0.0.0-nightly-20251103.0",
30
+ "@ckeditor/ckeditor5-ui": "0.0.0-nightly-20251103.0",
31
+ "@ckeditor/ckeditor5-upload": "0.0.0-nightly-20251103.0",
32
+ "@ckeditor/ckeditor5-utils": "0.0.0-nightly-20251103.0",
33
+ "ckeditor5": "0.0.0-nightly-20251103.0",
34
34
  "@uploadcare/file-uploader": "1.19.4",
35
35
  "@uploadcare/upload-client": "6.14.3"
36
36
  },
@@ -20,5 +20,5 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x2ee055=_0x34e0;(function(_0xd9bf60,_0x97b547){const _0x5f21d9=_0x34e0,_0x4beae5=_0xd9bf60();while(!![]){try{const _0x90330f=-parseInt(_0x5f21d9(0xe9))/0x1*(-parseInt(_0x5f21d9(0xf1))/0x2)+-parseInt(_0x5f21d9(0x118))/0x3*(-parseInt(_0x5f21d9(0x125))/0x4)+parseInt(_0x5f21d9(0xfb))/0x5+-parseInt(_0x5f21d9(0x11d))/0x6*(parseInt(_0x5f21d9(0x111))/0x7)+parseInt(_0x5f21d9(0xf8))/0x8*(parseInt(_0x5f21d9(0x10c))/0x9)+parseInt(_0x5f21d9(0x11e))/0xa+-parseInt(_0x5f21d9(0xf6))/0xb;if(_0x90330f===_0x97b547)break;else _0x4beae5['push'](_0x4beae5['shift']());}catch(_0x4ec6c3){_0x4beae5['push'](_0x4beae5['shift']());}}}(_0x445b,0x5bd0e));function _0x34e0(_0x5ce160,_0x1d397c){const _0x445bf6=_0x445b();return _0x34e0=function(_0x34e0fc,_0x1cb0e7){_0x34e0fc=_0x34e0fc-0xe4;let _0x467d31=_0x445bf6[_0x34e0fc];return _0x467d31;},_0x34e0(_0x5ce160,_0x1d397c);}import{IconUploadcareImageUpload as _0x37d240}from'ckeditor5/src/icons.js';import{ObservableMixin as _0x905455}from'ckeditor5/src/utils.js';import{Dialog as _0x338778,DialogViewPosition as _0xdac5e}from'ckeditor5/src/ui.js';import{UploadcareFormView as _0xa28df2}from'./uploadcareformview.js';function _0x445b(){const _0x40d8fd=['addEventListener','detail','193356igdaPv','stopListening','text','doneFlow','allEntries','get','ucContextId','editing','imageBlock','document','_formView','setSelection','isOpen','Insert','_type','39386PzoMbb','uuid','_editing','getAPI','_api','destroy','status','Local','26nLbGJt','focus','ctxElement','stopDelegating','idle','6525387NurvuL','getSelectedElement','3481792NQfjut','change','width','65655jzbwNY','show','_initDialog','getOutputCollectionState','initFlow','Replace','removeSelectionAttribute','source-list','plugins','imageInline','insertImage','attributes','configElement','model','_dialog','length','_insertAsset','9sqPhhx','_insertImage','imageInfo','linkHref','EDITOR_TOP_CENTER','175GrTiKY','removeAllFiles','_initListeners','selection','setAttribute','setCurrentActivity','done-click','21CiJVCT','image','uploadCare','hide','getLastPosition','166476IDKbNm','3641990azcyhr','view','element','_editor','execute'];_0x445b=function(){return _0x40d8fd;};return _0x445b();}import{UploadcareSource as _0x28c677}from'../uploadcareconfig.js';import{getTranslation as _0x37bafe}from'../utils/common-translations.js';import{getImageUrls as _0x300575,getImageDimension as _0x9aa54b}from'../utils/editingutils.js';import{isAncestor as _0x5f57cb}from'../utils/isancestor.js';export class UploadcareController extends/* #__PURE__ -- @preserve */
24
- _0x905455(){[_0x2ee055(0x121)];[_0x2ee055(0x109)];[_0x2ee055(0xeb)];[_0x2ee055(0xed)];[_0x2ee055(0xe8)]=null;[_0x2ee055(0xe4)]=null;constructor(_0x55082a,_0x260493,_0x2ce00d){const _0x5787b3=_0x2ee055;super(),this[_0x5787b3(0x121)]=_0x55082a,this[_0x5787b3(0xeb)]=_0x260493,this[_0x5787b3(0x109)]=_0x55082a[_0x5787b3(0x103)][_0x5787b3(0x12a)](_0x338778),this[_0x5787b3(0xed)]=_0x260493[_0x5787b3(0xf3)][_0x5787b3(0xec)](),this[_0x5787b3(0xe8)]=_0x2ce00d,this[_0x5787b3(0xeb)][_0x5787b3(0x107)][_0x5787b3(0x115)](_0x5787b3(0x102),this[_0x5787b3(0xe8)]),this[_0x5787b3(0xfd)](),this[_0x5787b3(0x113)](),this[_0x5787b3(0xed)][_0x5787b3(0xff)]();}[_0x2ee055(0xee)](){const _0x33d598=_0x2ee055;this[_0x33d598(0xe4)]&&(this[_0x33d598(0xe4)][_0x33d598(0xee)](),this[_0x33d598(0xe4)]=null),this[_0x33d598(0xed)]&&this[_0x33d598(0xed)][_0x33d598(0x128)](),this[_0x33d598(0x126)](),this[_0x33d598(0xf4)]();}[_0x2ee055(0xfd)](){const _0x4dff2d=_0x2ee055,{locale:_0x2af270,model:_0x1a889c}=this[_0x4dff2d(0x121)],_0xae7ddb=_0x1a889c[_0x4dff2d(0x12e)][_0x4dff2d(0x114)][_0x4dff2d(0xf7)](),_0x151146=_0xae7ddb&&(_0xae7ddb['is'](_0x4dff2d(0x120),_0x4dff2d(0x12d))||_0xae7ddb['is'](_0x4dff2d(0x120),_0x4dff2d(0x104)));this[_0x4dff2d(0xe4)]=new _0xa28df2(_0x2af270,this[_0x4dff2d(0xeb)][_0x4dff2d(0x12b)]),this[_0x4dff2d(0x109)][_0x4dff2d(0xfc)]({'id':_0x4dff2d(0x11a),'icon':_0x37d240,'title':_0x37bafe(_0x2af270,this[_0x4dff2d(0xe8)],_0x151146?_0x4dff2d(0x100):_0x4dff2d(0xe7))[_0x4dff2d(0x127)],'content':this[_0x4dff2d(0xe4)],'position':_0xdac5e[_0x4dff2d(0x110)],'isModal':!0x0,'onShow':()=>{const _0x4c052e=_0x4dff2d;this[_0x4c052e(0xe4)][_0x4c052e(0xf2)]();},'onHide':()=>{const _0x3e8183=_0x4dff2d;this[_0x3e8183(0xed)][_0x3e8183(0x112)](),this[_0x3e8183(0x121)][_0x3e8183(0x12c)][_0x3e8183(0x11f)][_0x3e8183(0xf2)](),this[_0x3e8183(0xee)]();},'keystrokeHandlerOptions':{'filter':_0x5ab096=>!_0x5f57cb(_0x5ab096,this[_0x4dff2d(0xe4)][_0x4dff2d(0x120)])}});}[_0x2ee055(0x113)](){const _0x28ab95=_0x2ee055;this[_0x28ab95(0xeb)][_0x28ab95(0xf3)][_0x28ab95(0x123)](_0x28ab95(0x117),()=>{const _0xd2891=_0x28ab95,{allEntries:_0x3d2145}=this[_0xd2891(0xed)][_0xd2891(0xfe)]();this[_0xd2891(0x121)][_0xd2891(0x108)][_0xd2891(0xf9)](_0x5eaca8=>{const _0x32be57=_0xd2891,_0x2626c4=_0x3d2145[_0x32be57(0x10a)];for(const _0x1d7ee2 of _0x3d2145){const _0x1306d0=_0x1d7ee2===_0x3d2145[_0x2626c4-0x1],{cdnUrl:_0x3dc121,fileInfo:_0x377052}=_0x1d7ee2;if(!_0x3dc121||!_0x377052)continue;const {width:_0x397c1a,height:_0x46cdb0}=_0x377052[_0x32be57(0x10e)],_0x4ff4bf=_0x9aa54b(_0x3dc121,_0x397c1a,_0x46cdb0),_0x54541b=_0x300575(_0x3dc121,_0x4ff4bf[_0x32be57(0xfa)]),_0x54d861={'id':_0x377052[_0x32be57(0xea)],'type':_0x32be57(0x119),'attributes':{'imageDimension':_0x4ff4bf,..._0x54541b}};this[_0x32be57(0x10b)](_0x54d861,_0x1306d0,_0x5eaca8);}}),this[_0xd2891(0x109)][_0xd2891(0x11b)]();}),this[_0x28ab95(0xeb)][_0x28ab95(0xf3)][_0x28ab95(0x123)](_0x28ab95(0xf9),_0x4eefbf=>{const _0x24d7aa=_0x28ab95;_0x24d7aa(0xf5)===_0x4eefbf[_0x24d7aa(0x124)][_0x24d7aa(0xef)]&&!_0x4eefbf[_0x24d7aa(0x124)][_0x24d7aa(0x129)][_0x24d7aa(0x10a)]&&this[_0x24d7aa(0x109)][_0x24d7aa(0xe6)]&&(this[_0x24d7aa(0xe8)]===_0x28c677[_0x24d7aa(0xf0)]?this[_0x24d7aa(0xed)][_0x24d7aa(0x116)](_0x28c677[_0x24d7aa(0xf0)]):this[_0x24d7aa(0xed)][_0x24d7aa(0xff)]());});}[_0x2ee055(0x10b)](_0xbf16a8,_0x5f9d98,_0x2fd566){const _0x1b7c53=_0x2ee055,_0x2753e7=this[_0x1b7c53(0x121)][_0x1b7c53(0x108)][_0x1b7c53(0x12e)][_0x1b7c53(0x114)],_0x114da1=_0x2753e7[_0x1b7c53(0xf7)](),_0x52941f=!(!_0x114da1||!_0x114da1['is'](_0x1b7c53(0x120),_0x1b7c53(0x104)));_0x2fd566[_0x1b7c53(0x101)](_0x1b7c53(0x10f)),this[_0x1b7c53(0x10d)](_0xbf16a8,_0x52941f),_0x5f9d98||_0x2fd566[_0x1b7c53(0xe5)](_0x2753e7[_0x1b7c53(0x11c)]());}[_0x2ee055(0x10d)](_0xc13c10,_0x4c3411){const _0x179c0f=_0x2ee055,_0x56ad46=this[_0x179c0f(0x121)],{imageDimension:_0x24fb79,imageFallbackUrl:_0x59595c,imageSources:_0x4c0deb}=_0xc13c10[_0x179c0f(0x106)];_0x56ad46[_0x179c0f(0x122)](_0x179c0f(0x105),{'imageType':_0x4c3411?_0x179c0f(0x104):null,'source':{'uploadcareImageId':_0xc13c10['id'],'src':_0x59595c,'sources':_0x4c0deb,..._0x24fb79}});}}
23
+ const _0x584933=_0x1505;function _0x1505(_0x406611,_0x4f8f7e){const _0x4e782c=_0x4e78();return _0x1505=function(_0x1505da,_0x2cf71f){_0x1505da=_0x1505da-0xaf;let _0x53697a=_0x4e782c[_0x1505da];return _0x53697a;},_0x1505(_0x406611,_0x4f8f7e);}(function(_0xdb1c3,_0x541257){const _0x7f72d5=_0x1505,_0x23b28b=_0xdb1c3();while(!![]){try{const _0x118eaf=parseInt(_0x7f72d5(0xd6))/0x1+parseInt(_0x7f72d5(0xec))/0x2*(-parseInt(_0x7f72d5(0xe6))/0x3)+-parseInt(_0x7f72d5(0xb1))/0x4+-parseInt(_0x7f72d5(0xbc))/0x5*(-parseInt(_0x7f72d5(0xdc))/0x6)+-parseInt(_0x7f72d5(0xb9))/0x7*(parseInt(_0x7f72d5(0xb6))/0x8)+-parseInt(_0x7f72d5(0xd5))/0x9+-parseInt(_0x7f72d5(0xf7))/0xa*(-parseInt(_0x7f72d5(0xda))/0xb);if(_0x118eaf===_0x541257)break;else _0x23b28b['push'](_0x23b28b['shift']());}catch(_0x52ac45){_0x23b28b['push'](_0x23b28b['shift']());}}}(_0x4e78,0xd7d43));import{IconUploadcareImageUpload as _0x203022}from'ckeditor5/src/icons.js';import{ObservableMixin as _0x482b7f}from'ckeditor5/src/utils.js';import{Dialog as _0x24023a,DialogViewPosition as _0x5996c0}from'ckeditor5/src/ui.js';import{UploadcareFormView as _0x1817b6}from'./uploadcareformview.js';import{UploadcareSource as _0x406f83}from'../uploadcareconfig.js';import{getTranslation as _0x3fdf85}from'../utils/common-translations.js';function _0x4e78(){const _0x4d03fa=['315067HyXuCR','removeAllFiles','linkHref','document','6523UbbEVd','isOpen','12oGdgox','plugins','view','getSelectedElement','imageInline','model','getAPI','width','_insertAsset','ctxElement','48xtMQed','configElement','status','doneFlow','image','addEventListener','189998PZYXrZ','Local','execute','_formView','idle','Replace','insertImage','getOutputCollectionState','focus','editing','selection','69640yuAhxn','_initDialog','_editing','imageBlock','element','6846136ntVfqx','show','setAttribute','removeSelectionAttribute','text','144272loIabi','attributes','length','273CmrZKx','setSelection','initFlow','3330230XcMBYV','destroy','getLastPosition','_editor','uploadCare','_initListeners','setCurrentActivity','change','detail','imageInfo','allEntries','EDITOR_TOP_CENTER','_insertImage','done-click','get','stopDelegating','source-list','ucContextId','_api','hide','_dialog','stopListening','uuid','_type','Insert','8621388LZXnxW'];_0x4e78=function(){return _0x4d03fa;};return _0x4e78();}import{getImageUrls as _0x4b2b56,getImageDimension as _0x1acf42}from'../utils/editingutils.js';import{isAncestor as _0x167ede}from'../utils/isancestor.js';export class UploadcareController extends/* #__PURE__ -- @preserve */
24
+ _0x482b7f(){[_0x584933(0xbf)];[_0x584933(0xd0)];[_0x584933(0xf9)];[_0x584933(0xce)];[_0x584933(0xd3)]=null;[_0x584933(0xef)]=null;constructor(_0x1cb0f7,_0x1cb02d,_0x11a83c){const _0x4a844e=_0x584933;super(),this[_0x4a844e(0xbf)]=_0x1cb0f7,this[_0x4a844e(0xf9)]=_0x1cb02d,this[_0x4a844e(0xd0)]=_0x1cb0f7[_0x4a844e(0xdd)][_0x4a844e(0xca)](_0x24023a),this[_0x4a844e(0xce)]=_0x1cb02d[_0x4a844e(0xe5)][_0x4a844e(0xe2)](),this[_0x4a844e(0xd3)]=_0x11a83c,this[_0x4a844e(0xf9)][_0x4a844e(0xe7)][_0x4a844e(0xb3)](_0x4a844e(0xcc),this[_0x4a844e(0xd3)]),this[_0x4a844e(0xf8)](),this[_0x4a844e(0xc1)](),this[_0x4a844e(0xce)][_0x4a844e(0xbb)]();}[_0x584933(0xbd)](){const _0x3235d0=_0x584933;this[_0x3235d0(0xef)]&&(this[_0x3235d0(0xef)][_0x3235d0(0xbd)](),this[_0x3235d0(0xef)]=null),this[_0x3235d0(0xce)]&&this[_0x3235d0(0xce)][_0x3235d0(0xe9)](),this[_0x3235d0(0xd1)](),this[_0x3235d0(0xcb)]();}[_0x584933(0xf8)](){const _0x3dbf8a=_0x584933,{locale:_0x2efba8,model:_0x239b18}=this[_0x3dbf8a(0xbf)],_0x3f15fc=_0x239b18[_0x3dbf8a(0xd9)][_0x3dbf8a(0xf6)][_0x3dbf8a(0xdf)](),_0x1b099e=_0x3f15fc&&(_0x3f15fc['is'](_0x3dbf8a(0xb0),_0x3dbf8a(0xaf))||_0x3f15fc['is'](_0x3dbf8a(0xb0),_0x3dbf8a(0xe0)));this[_0x3dbf8a(0xef)]=new _0x1817b6(_0x2efba8,this[_0x3dbf8a(0xf9)][_0x3dbf8a(0xcd)]),this[_0x3dbf8a(0xd0)][_0x3dbf8a(0xb2)]({'id':_0x3dbf8a(0xc0),'icon':_0x203022,'title':_0x3fdf85(_0x2efba8,this[_0x3dbf8a(0xd3)],_0x1b099e?_0x3dbf8a(0xf1):_0x3dbf8a(0xd4))[_0x3dbf8a(0xb5)],'content':this[_0x3dbf8a(0xef)],'position':_0x5996c0[_0x3dbf8a(0xc7)],'isModal':!0x0,'onShow':()=>{const _0x240b42=_0x3dbf8a;this[_0x240b42(0xef)][_0x240b42(0xf4)]();},'onHide':()=>{const _0x477f82=_0x3dbf8a;this[_0x477f82(0xce)][_0x477f82(0xd7)](),this[_0x477f82(0xbf)][_0x477f82(0xf5)][_0x477f82(0xde)][_0x477f82(0xf4)](),this[_0x477f82(0xbd)]();},'keystrokeHandlerOptions':{'filter':_0x74da25=>!_0x167ede(_0x74da25,this[_0x3dbf8a(0xef)][_0x3dbf8a(0xb0)])}});}[_0x584933(0xc1)](){const _0x352c11=_0x584933;this[_0x352c11(0xf9)][_0x352c11(0xe5)][_0x352c11(0xeb)](_0x352c11(0xc9),()=>{const _0x315aa6=_0x352c11,{allEntries:_0x2fbcaf}=this[_0x315aa6(0xce)][_0x315aa6(0xf3)]();this[_0x315aa6(0xbf)][_0x315aa6(0xe1)][_0x315aa6(0xc3)](_0x549fea=>{const _0x4d4880=_0x315aa6,_0x264339=_0x2fbcaf[_0x4d4880(0xb8)];for(const _0x296f42 of _0x2fbcaf){const _0x5a86df=_0x296f42===_0x2fbcaf[_0x264339-0x1],{cdnUrl:_0x3b3e64,fileInfo:_0x1c38bc}=_0x296f42;if(!_0x3b3e64||!_0x1c38bc)continue;const {width:_0x5547ad,height:_0x242bef}=_0x1c38bc[_0x4d4880(0xc5)],_0x490098=_0x1acf42(_0x3b3e64,_0x5547ad,_0x242bef),_0x183879=_0x4b2b56(_0x3b3e64,_0x490098[_0x4d4880(0xe3)]),_0x2b43d5={'id':_0x1c38bc[_0x4d4880(0xd2)],'type':_0x4d4880(0xea),'attributes':{'imageDimension':_0x490098,..._0x183879}};this[_0x4d4880(0xe4)](_0x2b43d5,_0x5a86df,_0x549fea);}}),this[_0x315aa6(0xd0)][_0x315aa6(0xcf)]();}),this[_0x352c11(0xf9)][_0x352c11(0xe5)][_0x352c11(0xeb)](_0x352c11(0xc3),_0x84c823=>{const _0x5b3517=_0x352c11;_0x5b3517(0xf0)===_0x84c823[_0x5b3517(0xc4)][_0x5b3517(0xe8)]&&!_0x84c823[_0x5b3517(0xc4)][_0x5b3517(0xc6)][_0x5b3517(0xb8)]&&this[_0x5b3517(0xd0)][_0x5b3517(0xdb)]&&(this[_0x5b3517(0xd3)]===_0x406f83[_0x5b3517(0xed)]?this[_0x5b3517(0xce)][_0x5b3517(0xc2)](_0x406f83[_0x5b3517(0xed)]):this[_0x5b3517(0xce)][_0x5b3517(0xbb)]());});}[_0x584933(0xe4)](_0x2127d6,_0x516703,_0xae1498){const _0x47fb91=_0x584933,_0x4480ec=this[_0x47fb91(0xbf)][_0x47fb91(0xe1)][_0x47fb91(0xd9)][_0x47fb91(0xf6)],_0x4a235e=_0x4480ec[_0x47fb91(0xdf)](),_0x50fe15=!(!_0x4a235e||!_0x4a235e['is'](_0x47fb91(0xb0),_0x47fb91(0xe0)));_0xae1498[_0x47fb91(0xb4)](_0x47fb91(0xd8)),this[_0x47fb91(0xc8)](_0x2127d6,_0x50fe15),_0x516703||_0xae1498[_0x47fb91(0xba)](_0x4480ec[_0x47fb91(0xbe)]());}[_0x584933(0xc8)](_0x1e0eb1,_0xceb44c){const _0x42cc82=_0x584933,_0x328183=this[_0x42cc82(0xbf)],{imageDimension:_0x32d93f,imageFallbackUrl:_0x4daee2,imageSources:_0x23f01a}=_0x1e0eb1[_0x42cc82(0xb7)];_0x328183[_0x42cc82(0xee)](_0x42cc82(0xf2),{'imageType':_0xceb44c?_0x42cc82(0xe0):null,'source':{'uploadcareImageId':_0x1e0eb1['id'],'src':_0x4daee2,'sources':_0x23f01a,..._0x32d93f}});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0x50f69c=_0x1352;(function(_0x3b9806,_0x4f5c3e){var _0x14fd86=_0x1352,_0x1bb533=_0x3b9806();while(!![]){try{var _0x59b0e5=parseInt(_0x14fd86(0x106))/0x1+parseInt(_0x14fd86(0x10a))/0x2+-parseInt(_0x14fd86(0x104))/0x3+-parseInt(_0x14fd86(0x109))/0x4+parseInt(_0x14fd86(0x10c))/0x5*(-parseInt(_0x14fd86(0x108))/0x6)+-parseInt(_0x14fd86(0x113))/0x7+parseInt(_0x14fd86(0x116))/0x8*(parseInt(_0x14fd86(0x10b))/0x9);if(_0x59b0e5===_0x4f5c3e)break;else _0x1bb533['push'](_0x1bb533['shift']());}catch(_0x5bedd7){_0x1bb533['push'](_0x1bb533['shift']());}}}(_0x3156,0x7d136));import{DialogFocusManagerView as _0x3b0126}from'../utils/dialogfocusmanagerview.js';import'../../theme/uploadcare-form.css';export class UploadcareFormView extends _0x3b0126{constructor(_0x960e60,_0x435cda){var _0x198e9e=_0x1352;super(_0x960e60),this[_0x198e9e(0x107)]({'tag':_0x198e9e(0x105),'attributes':{'class':['ck',_0x198e9e(0x111),_0x198e9e(0x103)],'tabindex':'-1'},'children':[{'tag':_0x198e9e(0x110),'attributes':{'class':[_0x198e9e(0x115),_0x198e9e(0x114)],'ctx-name':_0x198e9e(0x10e)+_0x435cda}},this[_0x198e9e(0x10f)]()]});}[_0x50f69c(0x10d)](){var _0x5f0168=_0x50f69c;this[_0x5f0168(0x112)][_0x5f0168(0x10d)]();}}function _0x1352(_0xeeb91,_0x34633a){var _0x3156f=_0x3156();return _0x1352=function(_0x1352ec,_0x13eaf4){_0x1352ec=_0x1352ec-0x103;var _0x597b8c=_0x3156f[_0x1352ec];return _0x597b8c;},_0x1352(_0xeeb91,_0x34633a);}function _0x3156(){var _0x4aa80e=['getFocusableElement','uc-file-uploader-inline','ck-reset_all-excluded','element','1633604lhrXPW','ck-uploadcare-theme','uc-light','464smCNkr','ck-uploadcare-form','839490QxymGd','div','698669DhVQRI','setTemplate','822aIrbqq','3009664RGxiDR','1343708WxDRKm','76122PGNSTM','3035hdwijx','focus','uploader-'];_0x3156=function(){return _0x4aa80e;};return _0x3156();}
23
+ var _0x2a1f71=_0x5ee0;function _0x5ee0(_0x4155e4,_0x1c0cf6){var _0x47c2f8=_0x47c2();return _0x5ee0=function(_0x5ee061,_0x181093){_0x5ee061=_0x5ee061-0xae;var _0x54f640=_0x47c2f8[_0x5ee061];return _0x54f640;},_0x5ee0(_0x4155e4,_0x1c0cf6);}(function(_0x3f99bd,_0x22e12f){var _0x14dace=_0x5ee0,_0x1d71ae=_0x3f99bd();while(!![]){try{var _0x18811c=-parseInt(_0x14dace(0xc2))/0x1+parseInt(_0x14dace(0xb2))/0x2+-parseInt(_0x14dace(0xbf))/0x3*(-parseInt(_0x14dace(0xb0))/0x4)+-parseInt(_0x14dace(0xc3))/0x5+-parseInt(_0x14dace(0xb9))/0x6*(parseInt(_0x14dace(0xc1))/0x7)+-parseInt(_0x14dace(0xb5))/0x8*(-parseInt(_0x14dace(0xb8))/0x9)+parseInt(_0x14dace(0xb7))/0xa*(parseInt(_0x14dace(0xbb))/0xb);if(_0x18811c===_0x22e12f)break;else _0x1d71ae['push'](_0x1d71ae['shift']());}catch(_0x4f6847){_0x1d71ae['push'](_0x1d71ae['shift']());}}}(_0x47c2,0x31395));import{DialogFocusManagerView as _0x2f088d}from'../utils/dialogfocusmanagerview.js';function _0x47c2(){var _0xa0505=['ck-reset_all-excluded','407568XOMvbt','ck-uploadcare-theme','777vKILVr','300675OQRaBA','1364225TaBqPN','uc-file-uploader-inline','div','4qiSyxe','setTemplate','533546zQytSH','focus','uc-light','8dICLue','uploader-','20FutvkZ','2351529MrlqFL','6726nOKCPS','getFocusableElement','1296141EuAYDt','ck-uploadcare-form','element'];_0x47c2=function(){return _0xa0505;};return _0x47c2();}import'../../theme/uploadcare-form.css';export class UploadcareFormView extends _0x2f088d{constructor(_0x27d4ea,_0x59fbeb){var _0x57e95f=_0x5ee0;super(_0x27d4ea),this[_0x57e95f(0xb1)]({'tag':_0x57e95f(0xaf),'attributes':{'class':['ck',_0x57e95f(0xbe),_0x57e95f(0xbc)],'tabindex':'-1'},'children':[{'tag':_0x57e95f(0xae),'attributes':{'class':[_0x57e95f(0xb4),_0x57e95f(0xc0)],'ctx-name':_0x57e95f(0xb6)+_0x59fbeb}},this[_0x57e95f(0xba)]()]});}[_0x2a1f71(0xb3)](){var _0x457f5e=_0x2a1f71;this[_0x457f5e(0xbd)][_0x457f5e(0xb3)]();}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x3d25(){const _0x10d957=['_initConversion','querySelector','_initCtx','38996FwSNkt','17888koToZd','getAttribute','join','requires','upcast','insertImage','locale','data-uc-image-id','\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','isPremiumPlugin','get','removeAttribute','uploadcare','once','true','destroy','elementToAttribute','3eAImCF','UploadcareEditing','editor','attributeToAttribute','isOfficialPlugin','remove','selection','body','uploader-','listenTo','commands','input[uploadcare-file-input]','document','uc-config','uc-upload-ctx-provider','editing','add','2076560GTXJAa','configElement','afterInit','downcast','extend','489906Oycyxp','contentLanguage','model','init','uploadcareImageId','getSelectedElement','ucContextId','pluginName','conversion','PictureEditing','10hbyJhS','uploadcare.pubkey','iconHrefResolver','372KVDcPY','cleanupImage','ctxElement','_initSchema','imageInline','href','replaceImageSource','isRegistered','#uc-icon-arrow-down','map','execute','2275441QLvzFz','closeMax','appendChild','render','for','uploadcareImageReplace','_initConfig','_ctxElement','view','fromCharCode','1532920cTPlOw','imageBlock','config','_configElement','uploadcare.uploader','542442Gpgwkr','schema','_initImageProcessingIndicator'];_0x3d25=function(){return _0x10d957;};return _0x3d25();}const _0x1d59e6=_0x1187;(function(_0x47d583,_0x5213ab){const _0xa02122=_0x1187,_0x312e87=_0x47d583();while(!![]){try{const _0x40f3c8=parseInt(_0xa02122(0x1f3))/0x1*(-parseInt(_0xa02122(0x1e1))/0x2)+-parseInt(_0xa02122(0x216))/0x3*(-parseInt(_0xa02122(0x1e2))/0x4)+parseInt(_0xa02122(0x213))/0x5*(-parseInt(_0xa02122(0x1db))/0x6)+parseInt(_0xa02122(0x1cc))/0x7+-parseInt(_0xa02122(0x1d6))/0x8+parseInt(_0xa02122(0x209))/0x9+-parseInt(_0xa02122(0x204))/0xa;if(_0x40f3c8===_0x5213ab)break;else _0x312e87['push'](_0x312e87['shift']());}catch(_0x122960){_0x312e87['push'](_0x312e87['shift']());}}}(_0x3d25,0x48216));import{Plugin as _0x2c9f1d}from'ckeditor5/src/core.js';import{Dialog as _0x4b3a3f}from'ckeditor5/src/ui.js';function _0x1187(_0x3c1333,_0x337a11){const _0x3d258d=_0x3d25();return _0x1187=function(_0x11872f,_0x4bbfe4){_0x11872f=_0x11872f-0x1c7;let _0x2bd22b=_0x3d258d[_0x11872f];return _0x2bd22b;},_0x1187(_0x3c1333,_0x337a11);}import{createElement as _0x17bf91,global as _0x37ab1f,uid as _0x514b46}from'ckeditor5/src/utils.js';import{UploadcareCommand as _0x5847e4}from'./uploadcarecommand.js';import{UploadcareUploadAdapter as _0x12a9a3}from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0x5c1121}from'./utils/editingutils.js';export class UploadcareEditing extends _0x2c9f1d{[_0x1d59e6(0x1d9)]=null;[_0x1d59e6(0x1d3)]=null;static get[_0x1d59e6(0x210)](){const _0x2bb444=_0x1d59e6;return _0x2bb444(0x1f4);}static get[_0x1d59e6(0x1e5)](){const _0x11fcbf=_0x1d59e6;return[_0x11fcbf(0x212),_0x12a9a3,_0x4b3a3f];}static get[_0x1d59e6(0x1f7)](){return!0x0;}static get[_0x1d59e6(0x1eb)](){return!0x0;}[_0x1d59e6(0x20f)];get[_0x1d59e6(0x205)](){const _0x14a42e=_0x1d59e6;return this[_0x14a42e(0x1d9)];}get[_0x1d59e6(0x218)](){const _0x6f203b=_0x1d59e6;return this[_0x6f203b(0x1d3)];}constructor(_0x2d63fa){const _0x3328a5=_0x1d59e6;super(_0x2d63fa),this[_0x3328a5(0x20f)]=_0x514b46();}[_0x1d59e6(0x20c)](){const _0x1f4972=_0x1d59e6,_0x3023f0=this[_0x1f4972(0x1f5)];_0x3023f0[_0x1f4972(0x1fd)][_0x1f4972(0x203)](_0x1f4972(0x1ee),new _0x5847e4(_0x3023f0));}[_0x1d59e6(0x206)](){const _0x2ea589=_0x1d59e6;this[_0x2ea589(0x219)](),this[_0x2ea589(0x1de)](),this[_0x2ea589(0x1d2)](),this[_0x2ea589(0x1e0)](),this[_0x2ea589(0x1dd)](),this[_0x2ea589(0x1fc)](this[_0x2ea589(0x1f5)],_0x2ea589(0x1f1),()=>{const _0x4745da=_0x2ea589;this[_0x4745da(0x1d9)]&&(this[_0x4745da(0x1d9)][_0x4745da(0x1f8)](),this[_0x4745da(0x1d9)]=null),this[_0x4745da(0x1d3)]&&(this[_0x4745da(0x1d3)][_0x4745da(0x1f8)](),this[_0x4745da(0x1d3)]=null);const _0x4a274b=_0x37ab1f[_0x4745da(0x1ff)][_0x4745da(0x1df)](_0x4745da(0x1fe));_0x4a274b&&_0x4a274b[_0x4745da(0x1f8)]();}),async function(_0x215832){const _0x56d1f7=_0x533484([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]),_0x3f9a36=0x535f8c3a,_0x1faefb=0x5358fbca^_0x3f9a36,_0x3f463d=window[_0x533484([0x44,0x61,0x74,0x65])][_0x533484([0x6e,0x6f,0x77])](),_0x191377=_0x215832[_0x533484([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x170af6=new window[(_0x533484([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x30c169=>{_0x191377[_0x533484([0x6f,0x6e,0x63,0x65])](_0x533484([0x72,0x65,0x61,0x64,0x79]),_0x30c169);}),_0x3643cc={[_0x533484([0x6b,0x74,0x79])]:_0x533484([0x45,0x43]),[_0x533484([0x75,0x73,0x65])]:_0x533484([0x73,0x69,0x67]),[_0x533484([0x63,0x72,0x76])]:_0x533484([0x50,0x2d,0x32,0x35,0x36]),[_0x533484([0x78])]:_0x533484([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]),[_0x533484([0x79])]:_0x533484([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]),[_0x533484([0x61,0x6c,0x67])]:_0x533484([0x45,0x53,0x32,0x35,0x36])},_0x54167a=_0x191377[_0x533484([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x533484([0x67,0x65,0x74])](_0x533484([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x31ba60(){let _0xf8a871,_0x1a6ae4=null,_0x2cf32b=null;try{if(_0x54167a==_0x533484([0x47,0x50,0x4c]))return _0x533484([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0xf8a871=_0x5bd46f(),!_0xf8a871)return _0x533484([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0xf8a871[_0x533484([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x2cf32b=_0x36ae02(_0xf8a871[_0x533484([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0xf8a871[_0x533484([0x6a,0x74,0x69])])),await _0x1cb28e()?_0x49a94f()?_0x15ae27()?_0x533484([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x337022()?(_0xf8a871[_0x533484([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x533484([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x1a6ae4=_0x2064f1(_0x533484([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0xf8a871[_0x533484([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x533484([0x74,0x72,0x69,0x61,0x6c])&&(_0x1a6ae4=_0x2064f1(_0x533484([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x202fd1()):_0x533484([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x533484([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x533484([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x533484([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x15ae27(){const _0x5060e2=[_0x533484([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x533484([0x74,0x72,0x69,0x61,0x6c])][_0x533484([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xf8a871[_0x533484([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x3f463d/0x3e8:0xe10*_0x1faefb;return _0xf8a871[_0x533484([0x65,0x78,0x70])]<_0x5060e2;}function _0x49a94f(){const _0x471915=_0xf8a871[_0x533484([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x471915&&(!!_0x471915[_0x533484([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x533484([0x2a]))||!!_0x471915[_0x533484([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x533484([0x55,0x50,0x4c,0x43])));}function _0x337022(){const _0x1f44d7=_0x1187,_0x944247=_0xf8a871[_0x533484([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x944247||0x0==_0x944247[_0x533484([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x5a0e8c}=new URL(window[_0x533484([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x1f44d7(0x21b)]);if(_0x944247[_0x533484([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5a0e8c))return!0x0;const _0x56b5fc=_0x5a0e8c[_0x533484([0x73,0x70,0x6c,0x69,0x74])](_0x533484([0x2e]));return _0x944247[_0x533484([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x436cd0=>_0x436cd0[_0x533484([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x533484([0x2a])))[_0x533484([0x6d,0x61,0x70])](_0x422cfd=>_0x422cfd[_0x533484([0x73,0x70,0x6c,0x69,0x74])](_0x533484([0x2e])))[_0x533484([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x39b675=>_0x39b675[_0x533484([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x56b5fc[_0x533484([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x533484([0x6d,0x61,0x70])](_0x36cdc7=>Array(_0x56b5fc[_0x533484([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x36cdc7[_0x533484([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x533484([0x66,0x69,0x6c,0x6c])](_0x36cdc7[0x0]===_0x533484([0x2a])?_0x533484([0x2a]):'')[_0x533484([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x36cdc7))[_0x533484([0x73,0x6f,0x6d,0x65])](_0xad822a=>_0x56b5fc[_0x533484([0x65,0x76,0x65,0x72,0x79])]((_0x668930,_0x1b209a)=>_0xad822a[_0x1b209a]===_0x668930||_0xad822a[_0x1b209a]===_0x533484([0x2a])));}function _0x202fd1(){return _0x1a6ae4&&_0x2cf32b?new window[(_0x533484([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x573aa4,_0x50892b)=>{_0x1a6ae4[_0x533484([0x74,0x68,0x65,0x6e])](_0x573aa4,_0x50892b),_0x2cf32b[_0x533484([0x74,0x68,0x65,0x6e])](_0x5c5e40=>{_0x5c5e40!=_0x533484([0x56,0x61,0x6c,0x69,0x64])&&_0x573aa4(_0x5c5e40);},_0x50892b);}):_0x1a6ae4||_0x2cf32b||_0x533484([0x56,0x61,0x6c,0x69,0x64]);}}function _0x36ae02(_0x1c2988,_0x3bd1f1){return new window[(_0x533484([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1ba4fe=>{if(_0x2b2b35())return _0x1ba4fe(_0x533484([0x56,0x61,0x6c,0x69,0x64]));_0xfdce3e(),_0x191377[_0x533484([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x533484([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x12ff93=!0x1;const _0x5518ca=_0x514b46();function _0x39989e(_0x4ca6d7){return!!_0x4ca6d7&&(typeof _0x4ca6d7===_0x533484([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x4ca6d7===_0x533484([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x4ca6d7[_0x533484([0x74,0x68,0x65,0x6e])]===_0x533484([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x4ca6d7[_0x533484([0x63,0x61,0x74,0x63,0x68])]===_0x533484([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x4f9e03(_0x4cf477){_0x4a852b(_0x4cf477)[_0x533484([0x74,0x68,0x65,0x6e])](_0x18161f=>{if(!_0x18161f||_0x18161f[_0x533484([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x533484([0x6f,0x6b]))return _0x533484([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x115512(_0x1285f2(_0x5518ca+_0x3bd1f1))!=_0x18161f[_0x533484([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x533484([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x533484([0x56,0x61,0x6c,0x69,0x64]);})[_0x533484([0x74,0x68,0x65,0x6e])](_0x390254=>(_0x40cfa8(),_0x390254),()=>{const _0x2839eb=_0x2ebd7f();return null==_0x2839eb?(_0x40cfa8(),_0x533484([0x56,0x61,0x6c,0x69,0x64])):_0x533484(_0x3f463d-_0x2839eb>(0x7753083a^_0x3f9a36)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x533484([0x74,0x68,0x65,0x6e])](_0x1ba4fe)[_0x533484([0x63,0x61,0x74,0x63,0x68])](()=>{_0x1ba4fe(_0x533484([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x2149fe=0x536962ba^_0x3f9a36;function _0x40cfa8(){const _0x391d50=_0x533484([0x6c,0x6c,0x63,0x74,0x2d])+_0x115512(_0x1285f2(_0x1c2988)),_0x83464a=_0x4567ff(_0x115512(window[_0x533484([0x4d,0x61,0x74,0x68])][_0x533484([0x63,0x65,0x69,0x6c])](_0x3f463d/_0x2149fe)));window[_0x533484([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x533484([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x391d50,_0x83464a);}function _0x2ebd7f(){const _0xd9094=_0x533484([0x6c,0x6c,0x63,0x74,0x2d])+_0x115512(_0x1285f2(_0x1c2988)),_0x440ed4=window[_0x533484([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x533484([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0xd9094);return _0x440ed4?window[_0x533484([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4567ff(_0x440ed4),0x10)*_0x2149fe:null;}function _0x4a852b(_0x35f230){return new window[(_0x533484([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x317cad,_0x101e03)=>{_0x35f230[_0x533484([0x74,0x68,0x65,0x6e])](_0x317cad,_0x101e03),window[_0x533484([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x101e03,0x535e58fa^_0x3f9a36);});}}_0x191377[_0x533484([0x6f,0x6e])](_0x533484([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x5f55db,_0x454fbe)=>{if(_0x454fbe[0x0]!=_0x1c2988)return _0x1ba4fe(_0x533484([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x454fbe[0x1]={..._0x454fbe[0x1],[_0x533484([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x5518ca};},{[_0x533484([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x533484([0x68,0x69,0x67,0x68])}),_0x191377[_0x533484([0x6f,0x6e])](_0x533484([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x5da4f3=>{_0x39989e(_0x5da4f3[_0x533484([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x12ff93=!0x0,_0x4f9e03(_0x5da4f3[_0x533484([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x533484([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x533484([0x6c,0x6f,0x77])}),_0x170af6[_0x533484([0x74,0x68,0x65,0x6e])](()=>{_0x12ff93||_0x1ba4fe(_0x533484([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x2b2b35(){return _0x191377[_0x533484([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x533484([0x76,0x69,0x65,0x77])][_0x533484([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x533484([0x61,0x75,0x74,0x6f]);}function _0xfdce3e(){_0x191377[_0x533484([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x533484([0x76,0x69,0x65,0x77])][_0x533484([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x533484([0x61,0x75,0x74,0x6f]);}}function _0x2064f1(_0x2bdc60){const _0x435485=[new window[(_0x533484([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x21718d=>setTimeout(_0x21718d,0x5356b2f6^_0x3f9a36)),_0x170af6[_0x533484([0x74,0x68,0x65,0x6e])](()=>new window[(_0x533484([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5f1aae=>{let _0x11b586=0x0;_0x191377[_0x533484([0x6d,0x6f,0x64,0x65,0x6c])][_0x533484([0x6f,0x6e])](_0x533484([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x296fd7,_0x588732)=>{_0x588732[0x0][_0x533484([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x11b586++,_0x11b586==(0x535f8dc2^_0x3f9a36)&&(_0x5f1aae(),_0x296fd7[_0x533484([0x6f,0x66,0x66])]());});}))];return window[_0x533484([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x533484([0x72,0x61,0x63,0x65])](_0x435485)[_0x533484([0x74,0x68,0x65,0x6e])](()=>_0x2bdc60);}async function _0x3735b4(){await _0x170af6,_0x191377[_0x533484([0x6d,0x6f,0x64,0x65,0x6c])][_0x533484([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x2c6708,_0x191377[_0x533484([0x6d,0x6f,0x64,0x65,0x6c])][_0x533484([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x2c6708,_0x191377[_0x533484([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x533484([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x513bb7(_0x2811f7){const _0x33b480=_0x3bd901();_0x191377[_0x33b480]=_0x533484([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x2811f7,_0x2811f7!=_0x533484([0x56,0x61,0x6c,0x69,0x64])&&_0x3735b4();}function _0x3bd901(){const _0xb0b9a3=window[_0x533484([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x533484([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x533484([0x6e,0x6f,0x77])]())[_0x533484([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x533484([0x2e]),'');let _0xc5b359=_0x533484([0x68]);for(let _0x43f33d=0x0;_0x43f33d<_0xb0b9a3[_0x533484([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x43f33d+=0x2){let _0x2f9557=window[_0x533484([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xb0b9a3[_0x533484([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x43f33d,_0x43f33d+0x2));_0x2f9557>=_0x56d1f7[_0x533484([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x2f9557-=_0x56d1f7[_0x533484([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0xc5b359+=_0x56d1f7[_0x2f9557];}return _0xc5b359;}function _0x5bd46f(){const _0x49d6a0=_0x54167a[_0x533484([0x73,0x70,0x6c,0x69,0x74])](_0x533484([0x2e]));if(0x3!=_0x49d6a0[_0x533484([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x128a53(_0x49d6a0[0x1]);function _0x128a53(_0x579af4){const _0x31db48=_0xf892b0(_0x579af4);return _0x31db48&&_0xa3d481()?_0x31db48:null;function _0xa3d481(){const _0xde02f0=_0x31db48[_0x533484([0x6a,0x74,0x69])],_0x417517=window[_0x533484([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xde02f0[_0x533484([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0xde02f0[_0x533484([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x34118d={..._0x31db48,[_0x533484([0x6a,0x74,0x69])]:_0xde02f0[_0x533484([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0xde02f0[_0x533484([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x34118d[_0x533484([0x76,0x63])],_0x1285f2(_0x34118d)==_0x417517;}}}async function _0x1cb28e(){let _0x302d9d=!0x0;try{const _0xdae5ec=_0x54167a[_0x533484([0x73,0x70,0x6c,0x69,0x74])](_0x533484([0x2e])),[_0x204105,_0x3c0c35,_0x2ea5b6]=_0xdae5ec;return _0x40661d(_0x204105),await _0x2d66ad(_0x204105,_0x3c0c35,_0x2ea5b6),_0x302d9d;}catch{return!0x1;}function _0x40661d(_0x2be25b){const _0x1a121b=_0xf892b0(_0x2be25b);_0x1a121b&&_0x1a121b[_0x533484([0x61,0x6c,0x67])]==_0x533484([0x45,0x53,0x32,0x35,0x36])||(_0x302d9d=!0x1);}async function _0x2d66ad(_0xc94d8b,_0x4db467,_0x14d8f3){const _0x1b4bb8=window[_0x533484([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x533484([0x66,0x72,0x6f,0x6d])](_0x51fb90(_0x14d8f3),_0x5e3229=>_0x5e3229[_0x533484([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x58dd06=new window[(_0x533484([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x533484([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0xc94d8b+_0x533484([0x2e])+_0x4db467),_0x3cb582=window[_0x533484([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x533484([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x3cb582)return;const _0x360727=await _0x3cb582[_0x533484([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x533484([0x6a,0x77,0x6b]),_0x3643cc,{[_0x533484([0x6e,0x61,0x6d,0x65])]:_0x533484([0x45,0x43,0x44,0x53,0x41]),[_0x533484([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x533484([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x533484([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x3cb582[_0x533484([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x533484([0x6e,0x61,0x6d,0x65])]:_0x533484([0x45,0x43,0x44,0x53,0x41]),[_0x533484([0x68,0x61,0x73,0x68])]:{[_0x533484([0x6e,0x61,0x6d,0x65])]:_0x533484([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x360727,_0x1b4bb8,_0x58dd06)||(_0x302d9d=!0x1);}}function _0xf892b0(_0x58c6b5){return _0x58c6b5[_0x533484([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x533484([0x65,0x79]))?JSON[_0x533484([0x70,0x61,0x72,0x73,0x65])](_0x51fb90(_0x58c6b5)):null;}function _0x51fb90(_0x3feb82){return window[_0x533484([0x61,0x74,0x6f,0x62])](_0x3feb82[_0x533484([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x533484([0x2b]))[_0x533484([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x533484([0x2f])));}function _0x1285f2(_0x203ec3){let _0x5ef31f=0x1505;function _0x3a10f0(_0x1ba698){for(let _0x55bfc9=0x0;_0x55bfc9<_0x1ba698[_0x533484([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x55bfc9++){const _0x1eeb23=_0x1ba698[_0x533484([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x55bfc9);_0x5ef31f=(_0x5ef31f<<0x5)+_0x5ef31f+_0x1eeb23,_0x5ef31f&=_0x5ef31f;}}function _0x8891d4(_0x391cbc){Array[_0x533484([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x391cbc)?_0x391cbc[_0x533484([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x8891d4):_0x391cbc&&typeof _0x391cbc==_0x533484([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x533484([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x391cbc)[_0x533484([0x73,0x6f,0x72,0x74])]()[_0x533484([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x476b47,_0x5ca3aa])=>{_0x3a10f0(_0x476b47),_0x8891d4(_0x5ca3aa);}):_0x3a10f0(window[_0x533484([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x391cbc));}return _0x8891d4(_0x203ec3),_0x5ef31f>>>0x0;}function _0x115512(_0x2cd51b){return _0x2cd51b[_0x533484([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x533484([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x533484([0x30]));}function _0x4567ff(_0x5669e9){return _0x5669e9[_0x533484([0x73,0x70,0x6c,0x69,0x74])]('')[_0x533484([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x533484([0x6a,0x6f,0x69,0x6e])]('');}function _0x2c6708(){}function _0x533484(_0x25fc1c){const _0x7d165b=_0x1187;return _0x25fc1c[_0x7d165b(0x1ca)](_0x314de6=>String[_0x7d165b(0x1d5)](_0x314de6))[_0x7d165b(0x1e4)]('');}_0x513bb7(await _0x31ba60());}(this);}[_0x1d59e6(0x219)](){const _0x55d75e=_0x1d59e6,_0x49f8e0=this[_0x55d75e(0x1f5)][_0x55d75e(0x20b)][_0x55d75e(0x1dc)];_0x49f8e0[_0x55d75e(0x1c8)](_0x55d75e(0x1d7))&&_0x49f8e0[_0x55d75e(0x208)](_0x55d75e(0x1d7),{'allowAttributes':[_0x55d75e(0x20d)]}),_0x49f8e0[_0x55d75e(0x1c8)](_0x55d75e(0x21a))&&_0x49f8e0[_0x55d75e(0x208)](_0x55d75e(0x21a),{'allowAttributes':[_0x55d75e(0x20d)]});}[_0x1d59e6(0x1de)](){const _0x5a4a6d=_0x1d59e6,_0x5f1c2c=this[_0x5a4a6d(0x1f5)];_0x5f1c2c[_0x5a4a6d(0x211)][_0x5a4a6d(0x1d0)](_0x5a4a6d(0x207))[_0x5a4a6d(0x1f6)]({'model':_0x5a4a6d(0x20d),'view':_0x5a4a6d(0x1e9)}),_0x5f1c2c[_0x5a4a6d(0x211)][_0x5a4a6d(0x1d0)](_0x5a4a6d(0x1e6))[_0x5a4a6d(0x1f2)]({'model':{'key':_0x5a4a6d(0x20d),'value':_0xbed8cf=>_0xbed8cf[_0x5a4a6d(0x1e3)](_0x5a4a6d(0x1e9))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x29dd64=_0x5f1c2c[_0x5a4a6d(0x1fd)][_0x5a4a6d(0x1ec)](_0x5a4a6d(0x1c7));_0x29dd64&&this[_0x5a4a6d(0x1fc)](_0x29dd64,_0x5a4a6d(0x217),(_0x351cb1,[_0x361d64,_0x454977])=>{const _0x23960c=_0x5a4a6d;_0x361d64[_0x23960c(0x1ed)](_0x23960c(0x20d),_0x454977);});}[_0x1d59e6(0x1d2)](){const _0xc346=_0x1d59e6,_0x482e4b=this[_0xc346(0x1f5)][_0xc346(0x1d8)][_0xc346(0x1ec)](_0xc346(0x1da))||{},_0x129eab=this[_0xc346(0x1f5)][_0xc346(0x1d8)][_0xc346(0x1ec)](_0xc346(0x214))||'';this[_0xc346(0x1d9)]=_0x17bf91(_0x37ab1f[_0xc346(0x1ff)],_0xc346(0x200),{..._0x482e4b,'pubkey':_0x129eab,'ctx-name':_0xc346(0x1fb)+this[_0xc346(0x20f)],'sourceList':'','imgOnly':_0xc346(0x1f0),'removeCopyright':_0xc346(0x1f0),'localeName':this[_0xc346(0x1f5)][_0xc346(0x1e8)][_0xc346(0x20a)],'externalSourcesEmbedCss':_0xc346(0x1ea)}),this[_0xc346(0x1d9)][_0xc346(0x215)]=_0x3fe817=>{const _0x4becbc=_0xc346;if(_0x4becbc(0x1cd)==_0x3fe817)return _0x4becbc(0x1c9);},_0x37ab1f[_0xc346(0x1ff)][_0xc346(0x1fa)][_0xc346(0x1ce)](this[_0xc346(0x1d9)]);}[_0x1d59e6(0x1e0)](){const _0xe8d040=_0x1d59e6;this[_0xe8d040(0x1d3)]=_0x17bf91(_0x37ab1f[_0xe8d040(0x1ff)],_0xe8d040(0x201),{'ctx-name':_0xe8d040(0x1fb)+this[_0xe8d040(0x20f)]}),_0x37ab1f[_0xe8d040(0x1ff)][_0xe8d040(0x1fa)][_0xe8d040(0x1ce)](this[_0xe8d040(0x1d3)]);}[_0x1d59e6(0x1dd)](){const _0x4c266b=_0x1d59e6,_0x1213e5=this[_0x4c266b(0x1f5)][_0x4c266b(0x1fd)][_0x4c266b(0x1ec)](_0x4c266b(0x1e7));_0x1213e5&&this[_0x4c266b(0x1fc)](_0x1213e5,_0x4c266b(0x1cb),()=>{const _0x2461af=_0x4c266b,_0x4eadea=this[_0x2461af(0x1f5)][_0x2461af(0x20b)][_0x2461af(0x1ff)][_0x2461af(0x1f9)][_0x2461af(0x20e)]();_0x4eadea&&_0x4eadea[_0x2461af(0x1e3)](_0x2461af(0x20d))&&this[_0x2461af(0x1f5)][_0x2461af(0x202)][_0x2461af(0x1d4)][_0x2461af(0x1ef)](_0x2461af(0x1cf),()=>{const _0x3ee14c=_0x2461af;_0x5c1121(this[_0x3ee14c(0x1f5)],_0x4eadea);});});const _0x307dcf=this[_0x4c266b(0x1f5)][_0x4c266b(0x1fd)][_0x4c266b(0x1ec)](_0x4c266b(0x1d1));_0x307dcf&&this[_0x4c266b(0x1fc)](_0x307dcf,_0x4c266b(0x1cb),()=>{const _0x49b365=_0x4c266b,_0x17ba22=this[_0x49b365(0x1f5)][_0x49b365(0x20b)][_0x49b365(0x1ff)][_0x49b365(0x1f9)][_0x49b365(0x20e)]();_0x17ba22&&_0x17ba22[_0x49b365(0x1e3)](_0x49b365(0x20d))&&this[_0x49b365(0x1f5)][_0x49b365(0x202)][_0x49b365(0x1d4)][_0x49b365(0x1ef)](_0x49b365(0x1cf),()=>{const _0x2a89e3=_0x49b365;_0x5c1121(this[_0x2a89e3(0x1f5)],_0x17ba22);});});}}
23
+ function _0x3f70(){const _0x170c43=['pluginName','downcast','getAttribute','join','imageBlock','iconHrefResolver','listenTo','schema','fromCharCode','for','getSelectedElement','afterInit','296958cHKswc','map','querySelector','95638mvOJZT','closeMax','imageInline','_initConversion','#uc-icon-arrow-down','784880IysXJM','editor','isOfficialPlugin','uploadcare','once','6TCNUBh','removeAttribute','document','init','uploadcare.pubkey','uploadcareImageId','view','render','add','remove','uploadcare.uploader','data-uc-image-id','uploader-','configElement','replaceImageSource','97184PPjuJw','_initConfig','attributeToAttribute','isPremiumPlugin','PictureEditing','body','input[uploadcare-file-input]','editing','_configElement','true','_ctxElement','uc-config','commands','_initCtx','config','href','7vNjwPv','extend','cleanupImage','\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','execute','uc-upload-ctx-provider','ctxElement','455802STYsca','elementToAttribute','locale','conversion','UploadcareEditing','uploadcareImageReplace','isRegistered','get','ucContextId','appendChild','879055VZmAhb','destroy','_initSchema','selection','45VCCKaW','requires','model','upcast','insertImage','contentLanguage','1394456oQTYaE','_initImageProcessingIndicator'];_0x3f70=function(){return _0x170c43;};return _0x3f70();}function _0x1eee(_0x413d41,_0x2db8f3){const _0x3f709d=_0x3f70();return _0x1eee=function(_0x1eee35,_0x272757){_0x1eee35=_0x1eee35-0xc1;let _0x28dbd0=_0x3f709d[_0x1eee35];return _0x28dbd0;},_0x1eee(_0x413d41,_0x2db8f3);}const _0x4bbcaf=_0x1eee;(function(_0x3e31bc,_0x3bdddf){const _0x4bb48f=_0x1eee,_0x4967a8=_0x3e31bc();while(!![]){try{const _0x236aab=parseInt(_0x4bb48f(0xfe))/0x1+parseInt(_0x4bb48f(0xd9))/0x2+parseInt(_0x4bb48f(0xfb))/0x3+parseInt(_0x4bb48f(0xed))/0x4+-parseInt(_0x4bb48f(0xe3))/0x5*(parseInt(_0x4bb48f(0x108))/0x6)+-parseInt(_0x4bb48f(0xd2))/0x7*(-parseInt(_0x4bb48f(0xc2))/0x8)+parseInt(_0x4bb48f(0xe7))/0x9*(-parseInt(_0x4bb48f(0x103))/0xa);if(_0x236aab===_0x3bdddf)break;else _0x4967a8['push'](_0x4967a8['shift']());}catch(_0x2ae649){_0x4967a8['push'](_0x4967a8['shift']());}}}(_0x3f70,0x347fc));import{Plugin as _0x377199}from'ckeditor5/src/core.js';import{Dialog as _0x1907ba}from'ckeditor5/src/ui.js';import{createElement as _0xb1aef5,global as _0x445491,uid as _0x1ebf50}from'ckeditor5/src/utils.js';import{UploadcareCommand as _0x4585f6}from'./uploadcarecommand.js';import{UploadcareUploadAdapter as _0x10b86d}from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0x112dd4}from'./utils/editingutils.js';export class UploadcareEditing extends _0x377199{[_0x4bbcaf(0xca)]=null;[_0x4bbcaf(0xcc)]=null;static get[_0x4bbcaf(0xef)](){const _0x152009=_0x4bbcaf;return _0x152009(0xdd);}static get[_0x4bbcaf(0xe8)](){const _0x519666=_0x4bbcaf;return[_0x519666(0xc6),_0x10b86d,_0x1907ba];}static get[_0x4bbcaf(0x105)](){return!0x0;}static get[_0x4bbcaf(0xc5)](){return!0x0;}[_0x4bbcaf(0xe1)];get[_0x4bbcaf(0x115)](){const _0x33cecd=_0x4bbcaf;return this[_0x33cecd(0xca)];}get[_0x4bbcaf(0xd8)](){const _0x6e72e0=_0x4bbcaf;return this[_0x6e72e0(0xcc)];}constructor(_0x5bc420){const _0x459300=_0x4bbcaf;super(_0x5bc420),this[_0x459300(0xe1)]=_0x1ebf50();}[_0x4bbcaf(0x10b)](){const _0x270a99=_0x4bbcaf,_0x2ad05c=this[_0x270a99(0x104)];_0x2ad05c[_0x270a99(0xce)][_0x270a99(0x110)](_0x270a99(0x106),new _0x4585f6(_0x2ad05c));}[_0x4bbcaf(0xfa)](){const _0x3c6c13=_0x4bbcaf;this[_0x3c6c13(0xe5)](),this[_0x3c6c13(0x101)](),this[_0x3c6c13(0xc3)](),this[_0x3c6c13(0xcf)](),this[_0x3c6c13(0xee)](),this[_0x3c6c13(0xf5)](this[_0x3c6c13(0x104)],_0x3c6c13(0xe4),()=>{const _0x1f4ac8=_0x3c6c13;this[_0x1f4ac8(0xca)]&&(this[_0x1f4ac8(0xca)][_0x1f4ac8(0x111)](),this[_0x1f4ac8(0xca)]=null),this[_0x1f4ac8(0xcc)]&&(this[_0x1f4ac8(0xcc)][_0x1f4ac8(0x111)](),this[_0x1f4ac8(0xcc)]=null);const _0x12c375=_0x445491[_0x1f4ac8(0x10a)][_0x1f4ac8(0xfd)](_0x1f4ac8(0xc8));_0x12c375&&_0x12c375[_0x1f4ac8(0x111)]();}),async function(_0x65a9ae){const _0x563ab3=_0x3836ee([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]),_0xeecb8=0x535f8c3a,_0x2ff358=0x5358f432^_0xeecb8,_0xde67a3=window[_0x3836ee([0x44,0x61,0x74,0x65])][_0x3836ee([0x6e,0x6f,0x77])](),_0x365b7e=_0x65a9ae[_0x3836ee([0x65,0x64,0x69,0x74,0x6f,0x72])],_0xf74e30=new window[(_0x3836ee([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x310b47=>{_0x365b7e[_0x3836ee([0x6f,0x6e,0x63,0x65])](_0x3836ee([0x72,0x65,0x61,0x64,0x79]),_0x310b47);}),_0x52abcb={[_0x3836ee([0x6b,0x74,0x79])]:_0x3836ee([0x45,0x43]),[_0x3836ee([0x75,0x73,0x65])]:_0x3836ee([0x73,0x69,0x67]),[_0x3836ee([0x63,0x72,0x76])]:_0x3836ee([0x50,0x2d,0x32,0x35,0x36]),[_0x3836ee([0x78])]:_0x3836ee([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]),[_0x3836ee([0x79])]:_0x3836ee([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]),[_0x3836ee([0x61,0x6c,0x67])]:_0x3836ee([0x45,0x53,0x32,0x35,0x36])},_0x2fc9ea=_0x365b7e[_0x3836ee([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x3836ee([0x67,0x65,0x74])](_0x3836ee([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x40976e(){let _0x3d0e38,_0xf8043e=null,_0x5d844f=null;try{if(_0x2fc9ea==_0x3836ee([0x47,0x50,0x4c]))return _0x3836ee([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x3d0e38=_0x1fe968(),!_0x3d0e38)return _0x3836ee([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x3d0e38[_0x3836ee([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x5d844f=_0x2862fb(_0x3d0e38[_0x3836ee([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x3d0e38[_0x3836ee([0x6a,0x74,0x69])])),await _0x40ce74()?_0x251ff9()?_0x2f5075()?_0x3836ee([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x44a3de()?(_0x3d0e38[_0x3836ee([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3836ee([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0xf8043e=_0x34cd57(_0x3836ee([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x3d0e38[_0x3836ee([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3836ee([0x74,0x72,0x69,0x61,0x6c])&&(_0xf8043e=_0x34cd57(_0x3836ee([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x42edb7()):_0x3836ee([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x3836ee([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x3836ee([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x3836ee([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x2f5075(){const _0x2be7b5=[_0x3836ee([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x3836ee([0x74,0x72,0x69,0x61,0x6c])][_0x3836ee([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3d0e38[_0x3836ee([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0xde67a3/0x3e8:0xe10*_0x2ff358;return _0x3d0e38[_0x3836ee([0x65,0x78,0x70])]<_0x2be7b5;}function _0x251ff9(){const _0x55e078=_0x3d0e38[_0x3836ee([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x55e078&&(!!_0x55e078[_0x3836ee([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3836ee([0x2a]))||!!_0x55e078[_0x3836ee([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3836ee([0x55,0x50,0x4c,0x43])));}function _0x44a3de(){const _0x427175=_0x1eee,_0x230f3e=_0x3d0e38[_0x3836ee([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x230f3e||0x0==_0x230f3e[_0x3836ee([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0xd7c759}=new URL(window[_0x3836ee([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x427175(0xd1)]);if(_0x230f3e[_0x3836ee([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xd7c759))return!0x0;const _0x568591=_0xd7c759[_0x3836ee([0x73,0x70,0x6c,0x69,0x74])](_0x3836ee([0x2e]));return _0x230f3e[_0x3836ee([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x57fc00=>_0x57fc00[_0x3836ee([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3836ee([0x2a])))[_0x3836ee([0x6d,0x61,0x70])](_0x9920dc=>_0x9920dc[_0x3836ee([0x73,0x70,0x6c,0x69,0x74])](_0x3836ee([0x2e])))[_0x3836ee([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x1aad24=>_0x1aad24[_0x3836ee([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x568591[_0x3836ee([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x3836ee([0x6d,0x61,0x70])](_0x4b2a62=>Array(_0x568591[_0x3836ee([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x4b2a62[_0x3836ee([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x3836ee([0x66,0x69,0x6c,0x6c])](_0x4b2a62[0x0]===_0x3836ee([0x2a])?_0x3836ee([0x2a]):'')[_0x3836ee([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x4b2a62))[_0x3836ee([0x73,0x6f,0x6d,0x65])](_0x3e4279=>_0x568591[_0x3836ee([0x65,0x76,0x65,0x72,0x79])]((_0x196453,_0x5aa329)=>_0x3e4279[_0x5aa329]===_0x196453||_0x3e4279[_0x5aa329]===_0x3836ee([0x2a])));}function _0x42edb7(){return _0xf8043e&&_0x5d844f?new window[(_0x3836ee([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x195748,_0x19b55c)=>{_0xf8043e[_0x3836ee([0x74,0x68,0x65,0x6e])](_0x195748,_0x19b55c),_0x5d844f[_0x3836ee([0x74,0x68,0x65,0x6e])](_0x24dca7=>{_0x24dca7!=_0x3836ee([0x56,0x61,0x6c,0x69,0x64])&&_0x195748(_0x24dca7);},_0x19b55c);}):_0xf8043e||_0x5d844f||_0x3836ee([0x56,0x61,0x6c,0x69,0x64]);}}function _0x2862fb(_0x1ab611,_0xfe5017){return new window[(_0x3836ee([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5c210e=>{if(_0x5abc04())return _0x5c210e(_0x3836ee([0x56,0x61,0x6c,0x69,0x64]));_0x35c915(),_0x365b7e[_0x3836ee([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x3836ee([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x27bde4=!0x1;const _0x2b633d=_0x1ebf50();function _0x2dab34(_0xf54d25){return!!_0xf54d25&&(typeof _0xf54d25===_0x3836ee([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0xf54d25===_0x3836ee([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0xf54d25[_0x3836ee([0x74,0x68,0x65,0x6e])]===_0x3836ee([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0xf54d25[_0x3836ee([0x63,0x61,0x74,0x63,0x68])]===_0x3836ee([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x3a9d5a(_0x1ca11b){_0x3b9d8c(_0x1ca11b)[_0x3836ee([0x74,0x68,0x65,0x6e])](_0x32e9bc=>{if(!_0x32e9bc||_0x32e9bc[_0x3836ee([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x3836ee([0x6f,0x6b]))return _0x3836ee([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x567df2(_0x4dc0ee(_0x2b633d+_0xfe5017))!=_0x32e9bc[_0x3836ee([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x3836ee([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x3836ee([0x56,0x61,0x6c,0x69,0x64]);})[_0x3836ee([0x74,0x68,0x65,0x6e])](_0x61754b=>(_0x2d3f6f(),_0x61754b),()=>{const _0x48bf95=_0x2052c5();return null==_0x48bf95?(_0x2d3f6f(),_0x3836ee([0x56,0x61,0x6c,0x69,0x64])):_0x3836ee(_0xde67a3-_0x48bf95>(0x7753083a^_0xeecb8)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x3836ee([0x74,0x68,0x65,0x6e])](_0x5c210e)[_0x3836ee([0x63,0x61,0x74,0x63,0x68])](()=>{_0x5c210e(_0x3836ee([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x387e59=0x536962ba^_0xeecb8;function _0x2d3f6f(){const _0x2ca9b2=_0x3836ee([0x6c,0x6c,0x63,0x74,0x2d])+_0x567df2(_0x4dc0ee(_0x1ab611)),_0x1c5a33=_0x3b9718(_0x567df2(window[_0x3836ee([0x4d,0x61,0x74,0x68])][_0x3836ee([0x63,0x65,0x69,0x6c])](_0xde67a3/_0x387e59)));window[_0x3836ee([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3836ee([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2ca9b2,_0x1c5a33);}function _0x2052c5(){const _0x2904e1=_0x3836ee([0x6c,0x6c,0x63,0x74,0x2d])+_0x567df2(_0x4dc0ee(_0x1ab611)),_0x5134bd=window[_0x3836ee([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3836ee([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2904e1);return _0x5134bd?window[_0x3836ee([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3b9718(_0x5134bd),0x10)*_0x387e59:null;}function _0x3b9d8c(_0x28544f){return new window[(_0x3836ee([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x20e7af,_0x262f21)=>{_0x28544f[_0x3836ee([0x74,0x68,0x65,0x6e])](_0x20e7af,_0x262f21),window[_0x3836ee([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x262f21,0x535e58fa^_0xeecb8);});}}_0x365b7e[_0x3836ee([0x6f,0x6e])](_0x3836ee([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x3c7bae,_0x5016a9)=>{if(_0x5016a9[0x0]!=_0x1ab611)return _0x5c210e(_0x3836ee([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x5016a9[0x1]={..._0x5016a9[0x1],[_0x3836ee([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x2b633d};},{[_0x3836ee([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3836ee([0x68,0x69,0x67,0x68])}),_0x365b7e[_0x3836ee([0x6f,0x6e])](_0x3836ee([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x3b9470=>{_0x2dab34(_0x3b9470[_0x3836ee([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x27bde4=!0x0,_0x3a9d5a(_0x3b9470[_0x3836ee([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x3836ee([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3836ee([0x6c,0x6f,0x77])}),_0xf74e30[_0x3836ee([0x74,0x68,0x65,0x6e])](()=>{_0x27bde4||_0x5c210e(_0x3836ee([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x5abc04(){return _0x365b7e[_0x3836ee([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3836ee([0x76,0x69,0x65,0x77])][_0x3836ee([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x3836ee([0x61,0x75,0x74,0x6f]);}function _0x35c915(){_0x365b7e[_0x3836ee([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3836ee([0x76,0x69,0x65,0x77])][_0x3836ee([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x3836ee([0x61,0x75,0x74,0x6f]);}}function _0x34cd57(_0x547f65){const _0x578edb=[new window[(_0x3836ee([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x46ba41=>setTimeout(_0x46ba41,0x5356b2f6^_0xeecb8)),_0xf74e30[_0x3836ee([0x74,0x68,0x65,0x6e])](()=>new window[(_0x3836ee([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x64ad73=>{let _0x432aa8=0x0;_0x365b7e[_0x3836ee([0x6d,0x6f,0x64,0x65,0x6c])][_0x3836ee([0x6f,0x6e])](_0x3836ee([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x8bd336,_0x29461e)=>{_0x29461e[0x0][_0x3836ee([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x432aa8++,_0x432aa8==(0x535f8dc2^_0xeecb8)&&(_0x64ad73(),_0x8bd336[_0x3836ee([0x6f,0x66,0x66])]());});}))];return window[_0x3836ee([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x3836ee([0x72,0x61,0x63,0x65])](_0x578edb)[_0x3836ee([0x74,0x68,0x65,0x6e])](()=>_0x547f65);}async function _0xa7059c(){await _0xf74e30,_0x365b7e[_0x3836ee([0x6d,0x6f,0x64,0x65,0x6c])][_0x3836ee([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x2255da,_0x365b7e[_0x3836ee([0x6d,0x6f,0x64,0x65,0x6c])][_0x3836ee([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x2255da,_0x365b7e[_0x3836ee([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x3836ee([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x23bd50(_0x40df62){const _0x34cd72=_0x226774();_0x365b7e[_0x34cd72]=_0x3836ee([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x40df62,_0x40df62!=_0x3836ee([0x56,0x61,0x6c,0x69,0x64])&&_0xa7059c();}function _0x226774(){const _0x3446cb=window[_0x3836ee([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x3836ee([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x3836ee([0x6e,0x6f,0x77])]())[_0x3836ee([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x3836ee([0x2e]),'');let _0x1ea8eb=_0x3836ee([0x68]);for(let _0x5291ba=0x0;_0x5291ba<_0x3446cb[_0x3836ee([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x5291ba+=0x2){let _0x4361b0=window[_0x3836ee([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3446cb[_0x3836ee([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x5291ba,_0x5291ba+0x2));_0x4361b0>=_0x563ab3[_0x3836ee([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x4361b0-=_0x563ab3[_0x3836ee([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x1ea8eb+=_0x563ab3[_0x4361b0];}return _0x1ea8eb;}function _0x1fe968(){const _0x14de16=_0x2fc9ea[_0x3836ee([0x73,0x70,0x6c,0x69,0x74])](_0x3836ee([0x2e]));if(0x3!=_0x14de16[_0x3836ee([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x4eea20(_0x14de16[0x1]);function _0x4eea20(_0x38b4b8){const _0x197793=_0xfa4e05(_0x38b4b8);return _0x197793&&_0x238ec7()?_0x197793:null;function _0x238ec7(){const _0x270ac3=_0x197793[_0x3836ee([0x6a,0x74,0x69])],_0x207eba=window[_0x3836ee([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x270ac3[_0x3836ee([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x270ac3[_0x3836ee([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x21a6d2={..._0x197793,[_0x3836ee([0x6a,0x74,0x69])]:_0x270ac3[_0x3836ee([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x270ac3[_0x3836ee([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x21a6d2[_0x3836ee([0x76,0x63])],_0x4dc0ee(_0x21a6d2)==_0x207eba;}}}async function _0x40ce74(){let _0x419bd3=!0x0;try{const _0x4cb73b=_0x2fc9ea[_0x3836ee([0x73,0x70,0x6c,0x69,0x74])](_0x3836ee([0x2e])),[_0x341f32,_0x3d8246,_0x1100e2]=_0x4cb73b;return _0x410c09(_0x341f32),await _0x4badb5(_0x341f32,_0x3d8246,_0x1100e2),_0x419bd3;}catch{return!0x1;}function _0x410c09(_0x318ae1){const _0x1b3906=_0xfa4e05(_0x318ae1);_0x1b3906&&_0x1b3906[_0x3836ee([0x61,0x6c,0x67])]==_0x3836ee([0x45,0x53,0x32,0x35,0x36])||(_0x419bd3=!0x1);}async function _0x4badb5(_0x13dc82,_0x1b0d16,_0x24ff2b){const _0x1ca23a=window[_0x3836ee([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x3836ee([0x66,0x72,0x6f,0x6d])](_0x5d2fa2(_0x24ff2b),_0x260299=>_0x260299[_0x3836ee([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x975c21=new window[(_0x3836ee([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x3836ee([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x13dc82+_0x3836ee([0x2e])+_0x1b0d16),_0x3feea9=window[_0x3836ee([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x3836ee([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x3feea9)return;const _0x558391=await _0x3feea9[_0x3836ee([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x3836ee([0x6a,0x77,0x6b]),_0x52abcb,{[_0x3836ee([0x6e,0x61,0x6d,0x65])]:_0x3836ee([0x45,0x43,0x44,0x53,0x41]),[_0x3836ee([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x3836ee([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x3836ee([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x3feea9[_0x3836ee([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x3836ee([0x6e,0x61,0x6d,0x65])]:_0x3836ee([0x45,0x43,0x44,0x53,0x41]),[_0x3836ee([0x68,0x61,0x73,0x68])]:{[_0x3836ee([0x6e,0x61,0x6d,0x65])]:_0x3836ee([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x558391,_0x1ca23a,_0x975c21)||(_0x419bd3=!0x1);}}function _0xfa4e05(_0x291ab2){return _0x291ab2[_0x3836ee([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x3836ee([0x65,0x79]))?JSON[_0x3836ee([0x70,0x61,0x72,0x73,0x65])](_0x5d2fa2(_0x291ab2)):null;}function _0x5d2fa2(_0x5c548f){return window[_0x3836ee([0x61,0x74,0x6f,0x62])](_0x5c548f[_0x3836ee([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x3836ee([0x2b]))[_0x3836ee([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x3836ee([0x2f])));}function _0x4dc0ee(_0x5f3602){let _0xc6f1f8=0x1505;function _0x10f05a(_0x46d41f){for(let _0x47f2b4=0x0;_0x47f2b4<_0x46d41f[_0x3836ee([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x47f2b4++){const _0x37aedc=_0x46d41f[_0x3836ee([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x47f2b4);_0xc6f1f8=(_0xc6f1f8<<0x5)+_0xc6f1f8+_0x37aedc,_0xc6f1f8&=_0xc6f1f8;}}function _0x50f77a(_0x3efc31){Array[_0x3836ee([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x3efc31)?_0x3efc31[_0x3836ee([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x50f77a):_0x3efc31&&typeof _0x3efc31==_0x3836ee([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x3836ee([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x3efc31)[_0x3836ee([0x73,0x6f,0x72,0x74])]()[_0x3836ee([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x39afc7,_0x2c027d])=>{_0x10f05a(_0x39afc7),_0x50f77a(_0x2c027d);}):_0x10f05a(window[_0x3836ee([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x3efc31));}return _0x50f77a(_0x5f3602),_0xc6f1f8>>>0x0;}function _0x567df2(_0x2f94f4){return _0x2f94f4[_0x3836ee([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x3836ee([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x3836ee([0x30]));}function _0x3b9718(_0x552eac){return _0x552eac[_0x3836ee([0x73,0x70,0x6c,0x69,0x74])]('')[_0x3836ee([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x3836ee([0x6a,0x6f,0x69,0x6e])]('');}function _0x2255da(){}function _0x3836ee(_0xb33022){const _0x71a993=_0x1eee;return _0xb33022[_0x71a993(0xfc)](_0x2818d4=>String[_0x71a993(0xf7)](_0x2818d4))[_0x71a993(0xf2)]('');}_0x23bd50(await _0x40976e());}(this);}[_0x4bbcaf(0xe5)](){const _0x598260=_0x4bbcaf,_0x1901f9=this[_0x598260(0x104)][_0x598260(0xe9)][_0x598260(0xf6)];_0x1901f9[_0x598260(0xdf)](_0x598260(0xf3))&&_0x1901f9[_0x598260(0xd3)](_0x598260(0xf3),{'allowAttributes':[_0x598260(0x10d)]}),_0x1901f9[_0x598260(0xdf)](_0x598260(0x100))&&_0x1901f9[_0x598260(0xd3)](_0x598260(0x100),{'allowAttributes':[_0x598260(0x10d)]});}[_0x4bbcaf(0x101)](){const _0x4ec36f=_0x4bbcaf,_0x4ed972=this[_0x4ec36f(0x104)];_0x4ed972[_0x4ec36f(0xdc)][_0x4ec36f(0xf8)](_0x4ec36f(0xf0))[_0x4ec36f(0xc4)]({'model':_0x4ec36f(0x10d),'view':_0x4ec36f(0x113)}),_0x4ed972[_0x4ec36f(0xdc)][_0x4ec36f(0xf8)](_0x4ec36f(0xea))[_0x4ec36f(0xda)]({'model':{'key':_0x4ec36f(0x10d),'value':_0x408b9a=>_0x408b9a[_0x4ec36f(0xf1)](_0x4ec36f(0x113))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x112f9c=_0x4ed972[_0x4ec36f(0xce)][_0x4ec36f(0xe0)](_0x4ec36f(0xc1));_0x112f9c&&this[_0x4ec36f(0xf5)](_0x112f9c,_0x4ec36f(0xd4),(_0x4978b9,[_0x362321,_0xea3167])=>{const _0xdfe24d=_0x4ec36f;_0x362321[_0xdfe24d(0x109)](_0xdfe24d(0x10d),_0xea3167);});}[_0x4bbcaf(0xc3)](){const _0x43dd03=_0x4bbcaf,_0x60d4b7=this[_0x43dd03(0x104)][_0x43dd03(0xd0)][_0x43dd03(0xe0)](_0x43dd03(0x112))||{},_0xe81843=this[_0x43dd03(0x104)][_0x43dd03(0xd0)][_0x43dd03(0xe0)](_0x43dd03(0x10c))||'';this[_0x43dd03(0xca)]=_0xb1aef5(_0x445491[_0x43dd03(0x10a)],_0x43dd03(0xcd),{..._0x60d4b7,'pubkey':_0xe81843,'ctx-name':_0x43dd03(0x114)+this[_0x43dd03(0xe1)],'sourceList':'','imgOnly':_0x43dd03(0xcb),'removeCopyright':_0x43dd03(0xcb),'localeName':this[_0x43dd03(0x104)][_0x43dd03(0xdb)][_0x43dd03(0xec)],'externalSourcesEmbedCss':_0x43dd03(0xd5)}),this[_0x43dd03(0xca)][_0x43dd03(0xf4)]=_0x51e350=>{const _0x5f4f68=_0x43dd03;if(_0x5f4f68(0xff)==_0x51e350)return _0x5f4f68(0x102);},_0x445491[_0x43dd03(0x10a)][_0x43dd03(0xc7)][_0x43dd03(0xe2)](this[_0x43dd03(0xca)]);}[_0x4bbcaf(0xcf)](){const _0x5ae468=_0x4bbcaf;this[_0x5ae468(0xcc)]=_0xb1aef5(_0x445491[_0x5ae468(0x10a)],_0x5ae468(0xd7),{'ctx-name':_0x5ae468(0x114)+this[_0x5ae468(0xe1)]}),_0x445491[_0x5ae468(0x10a)][_0x5ae468(0xc7)][_0x5ae468(0xe2)](this[_0x5ae468(0xcc)]);}[_0x4bbcaf(0xee)](){const _0x3ea963=_0x4bbcaf,_0x78fe4a=this[_0x3ea963(0x104)][_0x3ea963(0xce)][_0x3ea963(0xe0)](_0x3ea963(0xeb));_0x78fe4a&&this[_0x3ea963(0xf5)](_0x78fe4a,_0x3ea963(0xd6),()=>{const _0x192439=_0x3ea963,_0x188a47=this[_0x192439(0x104)][_0x192439(0xe9)][_0x192439(0x10a)][_0x192439(0xe6)][_0x192439(0xf9)]();_0x188a47&&_0x188a47[_0x192439(0xf1)](_0x192439(0x10d))&&this[_0x192439(0x104)][_0x192439(0xc9)][_0x192439(0x10e)][_0x192439(0x107)](_0x192439(0x10f),()=>{const _0x5ba2f7=_0x192439;_0x112dd4(this[_0x5ba2f7(0x104)],_0x188a47);});});const _0x1f7755=this[_0x3ea963(0x104)][_0x3ea963(0xce)][_0x3ea963(0xe0)](_0x3ea963(0xde));_0x1f7755&&this[_0x3ea963(0xf5)](_0x1f7755,_0x3ea963(0xd6),()=>{const _0x4874d4=_0x3ea963,_0x184ba2=this[_0x4874d4(0x104)][_0x4874d4(0xe9)][_0x4874d4(0x10a)][_0x4874d4(0xe6)][_0x4874d4(0xf9)]();_0x184ba2&&_0x184ba2[_0x4874d4(0xf1)](_0x4874d4(0x10d))&&this[_0x4874d4(0x104)][_0x4874d4(0xc9)][_0x4874d4(0x10e)][_0x4874d4(0x107)](_0x4874d4(0x10f),()=>{const _0x53b062=_0x4874d4;_0x112dd4(this[_0x53b062(0x104)],_0x184ba2);});});}}