@ckeditor/ckeditor5-uploadcare 0.0.0-nightly-20251225.0 → 0.0.0-nightly-20251226.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 _0x1b3829,Command as _0x249e8e}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x5d8f1c,IconGooglePhotos as _0x31b286,IconGoogleDrive as _0xef5885,IconFacebook as _0x1b9f08,IconDropbox as _0x223513,IconUploadcareLink as _0x4c4788,IconUploadcareImageUpload as _0xdddccd,IconError as _0x520dc8,IconUploadcareImageEdit as _0x4fcded}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x51727c,MenuBarMenuListItemButtonView as _0x1d005b,View as _0x52e260,FocusCycler as _0x4fefb2,Dialog as _0xa099cb,DialogViewPosition as _0x18bb53,SpinnerView as _0x346673,IconView as _0xeca87b,Notification as _0x29da43}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x519499,DomEmitterMixin as _0x1583f7,global as _0x26140e,getAncestors as _0x7c5489,ObservableMixin as _0x3c83f0,uid as _0x4fe74c,createElement as _0x1dc68e}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x493b6c}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x1f63da,info as _0x5a972b}from'@uploadcare/upload-client';import*as _0x3f2e00 from'@uploadcare/file-uploader';var i=function(_0x47e837){return _0x47e837['Local']='local',_0x47e837['URL']='url',_0x47e837['Dropbox']='dropbox',_0x47e837['GDrive']='gdrive',_0x47e837['Facebook']='facebook',_0x47e837['GPhotos']='gphotos',_0x47e837['OneDrive']='onedrive',_0x47e837;}({});function _(_0x343f15,_0x12df5c,_0x67db76){const t=_0x343f15['t'],_0x389dc6=_0x343f15['t'];switch(_0x12df5c){case i['Local']:return{'text':_0x389dc6('Insert'===_0x67db76?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x389dc6('From\x20computer')};case i['URL']:return{'text':'Insert'===_0x67db76?_0x389dc6('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x389dc6('Via\x20URL')};case i['Dropbox']:return{'text':t('Insert'===_0x67db76?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case i['Facebook']:return{'text':t('Insert'===_0x67db76?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case i['GDrive']:return{'text':t('Insert'===_0x67db76?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case i['GPhotos']:return{'text':t('Insert'===_0x67db76?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case i['OneDrive']:return{'text':t('Insert'===_0x67db76?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x12df5c;}}class e extends _0x1b3829{['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 _0x5324fb=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x52baff;for(const _0x581055 in _0x5324fb){const _0x2c3310=_0x581055,_0x5f5a87=_0x5324fb[_0x2c3310];if('uploadcareLicenseKeyValid'==_0x5f5a87||'uploadcareLicenseKeyInvalid'==_0x5f5a87||'uploadcareLicenseKeyExpired'==_0x5f5a87||'uploadcareLicenseKeyDomainLimit'==_0x5f5a87||'uploadcareLicenseKeyNotAllowed'==_0x5f5a87||'uploadcareLicenseKeyEvaluationLimit'==_0x5f5a87||'uploadcareLicenseKeyTrialLimit'==_0x5f5a87||'uploadcareLicenseKeyUsageLimit'==_0x5f5a87){delete _0x5324fb[_0x2c3310],_0x52baff=_0x5f5a87,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x52baff&&_0x5324fb['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x52baff&&_0x5324fb['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x52baff&&_0x5324fb['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x52baff&&_0x5324fb['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x52baff&&_0x5324fb['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyTrialLimit'==_0x52baff&&_0x5324fb['_showLicenseError']('trialLimit'),'uploadcareLicenseKeyUsageLimit'==_0x52baff&&_0x5324fb['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x3c6e8b}=this,_0x455e57=_0x3c6e8b['commands']['get']('uploadcare');if(!_0x455e57)return;const _0x124733=this['_normalizeConfigSourceList'](_0x3c6e8b['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x27710e,_0x37b161)=>{const _0x29c9cb=this['_getIntegrationKey'](_0x37b161['type']);return _0x27710e[_0x29c9cb]||(_0x27710e[_0x29c9cb]=[]),_0x27710e[_0x29c9cb]['push'](_0x37b161),_0x27710e;},{});_0x3c6e8b['plugins']['has']('ImageInsertUI')&&_0x3c6e8b['commands']['get']('uploadcare')&&Object['entries'](_0x124733)['forEach'](([_0x5f5ae5,_0x5dd357])=>{_0x3c6e8b['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x5f5ae5,'observable':()=>_0x455e57,'buttonViewCreator':()=>this['_createToolbarButton'](_0x5dd357),'formViewCreator':()=>this['_createDropdownButtons'](_0x5dd357),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x5dd357),'override':'assetManager'!==_0x5f5ae5});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x343658){const {locale:_0x1c7d14}=this['editor'];return _0x343658['map'](_0x1e8d78=>{const _0x5dab72=_(_0x1c7d14,_0x1e8d78,'Insert');switch(_0x1e8d78){case i['Local']:return{'icon':_0xdddccd,'type':i['Local'],..._0x5dab72};case i['URL']:return{'icon':_0x4c4788,'type':i['URL'],..._0x5dab72};case i['Dropbox']:return{'icon':_0x223513,'type':i['Dropbox'],..._0x5dab72};case i['Facebook']:return{'icon':_0x1b9f08,'type':i['Facebook'],..._0x5dab72};case i['GDrive']:return{'icon':_0xef5885,'type':i['GDrive'],..._0x5dab72};case i['GPhotos']:return{'icon':_0x31b286,'type':i['GPhotos'],..._0x5dab72};case i['OneDrive']:return{'icon':_0x5d8f1c,'type':i['OneDrive'],..._0x5dab72};}});}['_getIntegrationKey'](_0x3ca47e){switch(_0x3ca47e){case i['Local']:return'upload';case i['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x48c42f,_0x966109){const _0x361049=this['editor'],_0x5d9d4f=new _0x48c42f(_0x361049['locale']),_0x433d7d=_0x361049['commands']['get']('uploadcare');return _0x5d9d4f['bind']('isEnabled')['to'](_0x433d7d),_0x5d9d4f['on']('execute',()=>{_0x433d7d['execute'](_0x966109);}),_0x5d9d4f;}['_createToolbarButton'](_0xd6fe01){const {locale:_0x3dda22}=this['editor'],_0x52bf96=this['editor']['plugins']['get']('ImageInsertUI'),_0xed4982=_0xd6fe01[0x0],_0x4fb9bd=this['_createButton'](_0x51727c,_0xed4982['type']);return _0x4fb9bd['icon']=_0xed4982['icon'],_0x4fb9bd['bind']('label')['to'](_0x52bf96,'isImageSelected',_0x41c6aa=>_(_0x3dda22,_0xed4982['type'],_0x41c6aa?'Replace':'Insert')['text']),_0x4fb9bd['tooltip']=!0x0,_0x4fb9bd;}['_createDropdownButtons'](_0x3fbc5f){const {locale:_0x205560}=this['editor'],_0x489e61=this['editor']['plugins']['get']('ImageInsertUI');return _0x3fbc5f['map'](_0x4f0508=>{const _0x2543df=this['_createButton'](_0x51727c,_0x4f0508['type']);return _0x2543df['withText']=!0x0,_0x2543df['icon']=_0x4f0508['icon'],_0x2543df['bind']('label')['to'](_0x489e61,'isImageSelected',_0x5a7972=>_(_0x205560,_0x4f0508['type'],_0x5a7972?'Replace':'Insert')['text']),_0x2543df;});}['_createMenuBarButtons'](_0x372f94){return _0x372f94['map'](_0x2a8a0d=>{const _0x33f435=this['_createButton'](_0x1d005b,_0x2a8a0d['type']);return _0x33f435['icon']=_0x2a8a0d['icon'],_0x33f435['label']=_0x2a8a0d['shortText'],_0x33f435;});}}class V extends _0x52e260{['focusTracker'];['focusCycler'];constructor(_0x31684c){super(_0x31684c),this['focusTracker']=new _0x519499(),this['focusCycler']=new _0x4fefb2({'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 E extends V{constructor(_0x19626a,_0xde8fa4){super(_0x19626a),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-'+_0xde8fa4}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}}function C(_0x3ae564,_0x97d8f1){const _0x4c3b85=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x2bacf0=>_0x2bacf0<=_0x97d8f1)['map'](_0x3875db=>_0x3ae564['replace'](/\/$/,'')+'/-/resize/'+_0x3875db+'x/\x20'+_0x3875db+'w');return{'imageFallbackUrl':_0x3ae564,'imageSources':[{'srcset':_0x4c3b85['join'](',\x20'),'sizes':'(max-width:\x20'+_0x97d8f1+'px)\x20100vw,\x20'+_0x97d8f1+'px','type':'image/webp'}]};}function M(_0x5afec2,_0x304f1,_0x3553b6){const _0x311020=_0x5afec2['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x311020?parseInt(_0x311020[0x1],0xa):_0x304f1,'height':_0x311020?parseInt(_0x311020[0x2],0xa):_0x3553b6};}function p(_0x20778d,_0x1df79c){const _0x193451=new(_0x1583f7())(),_0x78737c=_0x20778d['plugins']['get']('ImageUtils'),_0x295813=_0x20778d['editing']['mapper']['toViewElement'](_0x1df79c),_0x1563ca=_0x78737c['findViewImgElement'](_0x295813),_0x4f0efb=_0x20778d['editing']['view']['domConverter']['viewToDom'](_0x1563ca),_0x3b320b=_0x1df79c['getAttribute']('width'),_0x555391=_0x1df79c['getAttribute']('height'),_0xfe7b7e='image-processing';_0x20778d['editing']['view']['change'](_0x4be537=>{_0x4be537['addClass'](_0xfe7b7e,_0x295813),_0x4be537['setStyle']('aspect-ratio',_0x3b320b+'/'+_0x555391,_0x1563ca);}),_0x193451['listenTo'](_0x4f0efb,'load',()=>{_0x193451['stopListening'](_0x4f0efb,'load'),_0x20778d['editing']['view']['change'](_0x2c5d29=>{_0x2c5d29['removeClass'](_0xfe7b7e,_0x295813),_0x2c5d29['removeStyle']('aspect-ratio',_0x1563ca);});});}function z(_0x131910){if(Array['isArray'](_0x131910)){const _0x66e76a=_0x131910['map'](z);return _0x5872b1=>_0x66e76a['some'](_0x2b8294=>_0x2b8294(_0x5872b1));}if('origin'==_0x131910){const _0x360f5c=_0x26140e['window']['location']['origin'];return _0x2661fc=>new URL(_0x2661fc,_0x26140e['document']['baseURI'])['origin']==_0x360f5c;}return'function'==typeof _0x131910?_0x131910:_0x131910 instanceof RegExp?_0x4b4fab=>!(!_0x4b4fab['match'](_0x131910)&&!_0x4b4fab['replace'](/^https?:\/\//,'')['match'](_0x131910)):()=>!0x1;}function O(_0x114c54,_0x2f5964){return _0x7c5489(_0x114c54['target'])['includes'](_0x2f5964);}class n extends/* #__PURE__ -- @preserve */
24
- _0x3c83f0(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x39b0d1,_0x4ef2ad,_0x217fd7){super(),this['_editor']=_0x39b0d1,this['_editing']=_0x4ef2ad,this['_dialog']=_0x39b0d1['plugins']['get'](_0xa099cb),this['_api']=_0x4ef2ad['ctxElement']['getAPI'](),this['_type']=_0x217fd7,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:_0x3bb2c7,model:_0x3cc408}=this['_editor'],_0x431c65=_0x3cc408['document']['selection']['getSelectedElement'](),_0x39af10=_0x431c65&&(_0x431c65['is']('element','imageBlock')||_0x431c65['is']('element','imageInline'));this['_formView']=new E(_0x3bb2c7,this['_editing']['ucContextId']),this['_dialog']['show']({'id':'uploadCare','icon':_0xdddccd,'title':_(_0x3bb2c7,this['_type'],_0x39af10?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x18bb53['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x525508=>!O(_0x525508,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x40622a}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x3e7c86=>{const _0x5bcbed=_0x40622a['length'];for(const _0x21a65a of _0x40622a){const _0x3aed3a=_0x21a65a===_0x40622a[_0x5bcbed-0x1],{cdnUrl:_0x5890f5,fileInfo:_0x4258e4}=_0x21a65a;if(!_0x5890f5||!_0x4258e4)continue;const {width:_0x398a5e,height:_0x3571c3}=_0x4258e4['imageInfo'],_0x54edfd=M(_0x5890f5,_0x398a5e,_0x3571c3),_0x12a70a=C(_0x5890f5,_0x54edfd['width']),_0x581f48={'id':_0x4258e4['uuid'],'type':'image','attributes':{'imageDimension':_0x54edfd,..._0x12a70a}};this['_insertAsset'](_0x581f48,_0x3aed3a,_0x3e7c86);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0xaa0f97=>{'idle'===_0xaa0f97['detail']['status']&&!_0xaa0f97['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===i['Local']?this['_api']['setCurrentActivity'](i['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x49cef3,_0x141e31,_0x4df0d4){const _0x517eb7=this['_editor']['model']['document']['selection'],_0x4c71ea=_0x517eb7['getSelectedElement'](),_0x13f8c6=!(!_0x4c71ea||!_0x4c71ea['is']('element','imageInline'));_0x4df0d4['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x49cef3,_0x13f8c6),_0x141e31||_0x4df0d4['setSelection'](_0x517eb7['getLastPosition']());}['_insertImage'](_0x48d1fd,_0x2378ca){const _0x34a663=this['_editor'],{imageDimension:_0x50d4f5,imageFallbackUrl:_0x98b0a8,imageSources:_0x272303}=_0x48d1fd['attributes'];_0x34a663['execute']('insertImage',{'imageType':_0x2378ca?'imageInline':null,'source':{'uploadcareImageId':_0x48d1fd['id'],'src':_0x98b0a8,'sources':_0x272303,..._0x50d4f5}});}}class w extends _0x249e8e{['_editing'];['_controller']=null;static get['requires'](){return[_0xa099cb,o];}constructor(_0xc92d21){super(_0xc92d21),this['_editing']=_0xc92d21['plugins']['get'](o);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x24cb27){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new n(this['editor'],this['_editing'],_0x24cb27);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class j{static['upload']({file:_0x4bb5c5,..._0x592beb}){return _0x1f63da(_0x4bb5c5,_0x592beb);}static['getInfo'](_0x72ef9f,_0x5b15e1){return _0x5a972b(_0x72ef9f,_0x5b15e1);}}class f extends _0x1b3829{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x493b6c,o];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x112dd4=this['editor'];if(!!!_0x112dd4['config']['get']('uploadcare'))return;_0x112dd4['plugins']['get'](_0x493b6c)['createUploadAdapter']=_0x368e4c=>new k(_0x368e4c,_0x112dd4),_0x112dd4['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x207b03,{imageElement:_0x9cda77,data:_0x1d2b27})=>{_0x112dd4['model']['change'](_0x26cdbf=>{_0x26cdbf['setAttribute']('uploadcareImageId',_0x1d2b27['uploadcareImageId'],_0x9cda77);});});}}class k{['loader'];['editor'];['controller'];constructor(_0xf22b1a,_0x164e93){this['loader']=_0xf22b1a,this['editor']=_0x164e93,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x26d9e4=await this['loader']['file'];return j['upload']({'file':_0x26d9e4,'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':_0x25895b=>{_0x25895b&&_0x25895b['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x25895b['value']);}})['then'](async _0x135bb3=>{const {imageFallbackUrl:_0x4de49f,imageSources:_0x3c9da5}=C(_0x135bb3['cdnUrl'],_0x135bb3['imageInfo']['width']);return{'uploadcareImageId':_0x135bb3['uuid'],'default':_0x4de49f,'sources':_0x3c9da5};})['catch'](()=>{const _0x3229f2=t('Cannot\x20upload\x20file:')+('\x20'+_0x26d9e4['name']+'.');return Promise['reject'](_0x3229f2);});}['abort'](){this['controller']['abort']();}}class o extends _0x1b3829{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',f,_0xa099cb];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['ucContextId'];get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}constructor(_0x633404){super(_0x633404),this['ucContextId']=_0x4fe74c();}['init'](){const _0xf906df=this['editor'];_0xf906df['commands']['add']('uploadcare',new w(_0xf906df));}['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 _0xddcb78=_0x26140e['document']['querySelector']('input[uploadcare-file-input]');_0xddcb78&&_0xddcb78['remove']();}),async function(_0x43e83a){const _0x4424d7=_0x3b8d80([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]),_0x1ffa40=0x535f8c3a,_0x4a7616=0x5358f0d2^_0x1ffa40,_0x242b98=window[_0x3b8d80([0x44,0x61,0x74,0x65])][_0x3b8d80([0x6e,0x6f,0x77])](),_0x1898b3=_0x43e83a[_0x3b8d80([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x285aba=new window[(_0x3b8d80([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3a23db=>{_0x1898b3[_0x3b8d80([0x6f,0x6e,0x63,0x65])](_0x3b8d80([0x72,0x65,0x61,0x64,0x79]),_0x3a23db);}),_0x18fb1e={[_0x3b8d80([0x6b,0x74,0x79])]:_0x3b8d80([0x45,0x43]),[_0x3b8d80([0x75,0x73,0x65])]:_0x3b8d80([0x73,0x69,0x67]),[_0x3b8d80([0x63,0x72,0x76])]:_0x3b8d80([0x50,0x2d,0x32,0x35,0x36]),[_0x3b8d80([0x78])]:_0x3b8d80([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]),[_0x3b8d80([0x79])]:_0x3b8d80([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]),[_0x3b8d80([0x61,0x6c,0x67])]:_0x3b8d80([0x45,0x53,0x32,0x35,0x36])},_0x4a8888=_0x1898b3[_0x3b8d80([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x3b8d80([0x67,0x65,0x74])](_0x3b8d80([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x4622f1(){let _0xf05f5e,_0x6ab3ce=null,_0x5e6c89=null;try{if(_0x4a8888==_0x3b8d80([0x47,0x50,0x4c]))return _0x3b8d80([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0xf05f5e=_0x5b043e(),!_0xf05f5e)return _0x3b8d80([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0xf05f5e[_0x3b8d80([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x5e6c89=_0x5f0082(_0xf05f5e[_0x3b8d80([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0xf05f5e[_0x3b8d80([0x6a,0x74,0x69])])),await _0x26ee49()?_0x2e6c27()?_0x482b6e()?_0x3b8d80([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x455153()?(_0xf05f5e[_0x3b8d80([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3b8d80([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x6ab3ce=_0x1e656b(_0x3b8d80([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0xf05f5e[_0x3b8d80([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3b8d80([0x74,0x72,0x69,0x61,0x6c])&&(_0x6ab3ce=_0x1e656b(_0x3b8d80([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x243578()):_0x3b8d80([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x3b8d80([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x3b8d80([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x3b8d80([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x482b6e(){const _0x1b50f8=[_0x3b8d80([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x3b8d80([0x74,0x72,0x69,0x61,0x6c])][_0x3b8d80([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xf05f5e[_0x3b8d80([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x242b98/0x3e8:0xe10*_0x4a7616;return _0xf05f5e[_0x3b8d80([0x65,0x78,0x70])]<_0x1b50f8;}function _0x2e6c27(){const _0xd5bcc1=_0xf05f5e[_0x3b8d80([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0xd5bcc1&&(!!_0xd5bcc1[_0x3b8d80([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3b8d80([0x2a]))||!!_0xd5bcc1[_0x3b8d80([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3b8d80([0x55,0x50,0x4c,0x43])));}function _0x455153(){const _0x37ca06=_0xf05f5e[_0x3b8d80([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x37ca06||0x0==_0x37ca06[_0x3b8d80([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x175255}=new URL(window[_0x3b8d80([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x37ca06[_0x3b8d80([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x175255))return!0x0;const _0x4c023b=_0x175255[_0x3b8d80([0x73,0x70,0x6c,0x69,0x74])](_0x3b8d80([0x2e]));return _0x37ca06[_0x3b8d80([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x4d031a=>_0x4d031a[_0x3b8d80([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3b8d80([0x2a])))[_0x3b8d80([0x6d,0x61,0x70])](_0x33fcc2=>_0x33fcc2[_0x3b8d80([0x73,0x70,0x6c,0x69,0x74])](_0x3b8d80([0x2e])))[_0x3b8d80([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x2c2e80=>_0x2c2e80[_0x3b8d80([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x4c023b[_0x3b8d80([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x3b8d80([0x6d,0x61,0x70])](_0x33d907=>Array(_0x4c023b[_0x3b8d80([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x33d907[_0x3b8d80([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x3b8d80([0x66,0x69,0x6c,0x6c])](_0x33d907[0x0]===_0x3b8d80([0x2a])?_0x3b8d80([0x2a]):'')[_0x3b8d80([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x33d907))[_0x3b8d80([0x73,0x6f,0x6d,0x65])](_0xf62373=>_0x4c023b[_0x3b8d80([0x65,0x76,0x65,0x72,0x79])]((_0x4d9457,_0x42cfa2)=>_0xf62373[_0x42cfa2]===_0x4d9457||_0xf62373[_0x42cfa2]===_0x3b8d80([0x2a])));}function _0x243578(){return _0x6ab3ce&&_0x5e6c89?new window[(_0x3b8d80([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1dff0d,_0x58f6c9)=>{_0x6ab3ce[_0x3b8d80([0x74,0x68,0x65,0x6e])](_0x1dff0d,_0x58f6c9),_0x5e6c89[_0x3b8d80([0x74,0x68,0x65,0x6e])](_0x391878=>{_0x391878!=_0x3b8d80([0x56,0x61,0x6c,0x69,0x64])&&_0x1dff0d(_0x391878);},_0x58f6c9);}):_0x6ab3ce||_0x5e6c89||_0x3b8d80([0x56,0x61,0x6c,0x69,0x64]);}}function _0x5f0082(_0x3930d8,_0x2a599f){return new window[(_0x3b8d80([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5c5922=>{if(_0x537de2())return _0x5c5922(_0x3b8d80([0x56,0x61,0x6c,0x69,0x64]));_0x1a98fc(),_0x1898b3[_0x3b8d80([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x3b8d80([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x2650e7=!0x1;const _0x1441e6=_0x4fe74c();function _0x47a46a(_0x31c235){return!!_0x31c235&&(typeof _0x31c235===_0x3b8d80([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x31c235===_0x3b8d80([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x31c235[_0x3b8d80([0x74,0x68,0x65,0x6e])]===_0x3b8d80([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x31c235[_0x3b8d80([0x63,0x61,0x74,0x63,0x68])]===_0x3b8d80([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x56b4c1(_0xa8dba9){_0x2d2ee7(_0xa8dba9)[_0x3b8d80([0x74,0x68,0x65,0x6e])](_0x4ef0e6=>{if(!_0x4ef0e6||_0x4ef0e6[_0x3b8d80([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x3b8d80([0x6f,0x6b]))return _0x3b8d80([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0xb6fe6(_0x495f8f(_0x1441e6+_0x2a599f))!=_0x4ef0e6[_0x3b8d80([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x3b8d80([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x3b8d80([0x56,0x61,0x6c,0x69,0x64]);})[_0x3b8d80([0x74,0x68,0x65,0x6e])](_0x3dd3a2=>(_0x3b640d(),_0x3dd3a2),()=>{const _0x40074e=_0x2fe3f0();return null==_0x40074e?(_0x3b640d(),_0x3b8d80([0x56,0x61,0x6c,0x69,0x64])):_0x3b8d80(_0x242b98-_0x40074e>(0x7753083a^_0x1ffa40)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x3b8d80([0x74,0x68,0x65,0x6e])](_0x5c5922)[_0x3b8d80([0x63,0x61,0x74,0x63,0x68])](()=>{_0x5c5922(_0x3b8d80([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x16f2b1=0x536962ba^_0x1ffa40;function _0x3b640d(){const _0x296ec7=_0x3b8d80([0x6c,0x6c,0x63,0x74,0x2d])+_0xb6fe6(_0x495f8f(_0x3930d8)),_0x6ee908=_0x16715c(_0xb6fe6(window[_0x3b8d80([0x4d,0x61,0x74,0x68])][_0x3b8d80([0x63,0x65,0x69,0x6c])](_0x242b98/_0x16f2b1)));window[_0x3b8d80([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3b8d80([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x296ec7,_0x6ee908);}function _0x2fe3f0(){const _0x26c239=_0x3b8d80([0x6c,0x6c,0x63,0x74,0x2d])+_0xb6fe6(_0x495f8f(_0x3930d8)),_0x59b7d6=window[_0x3b8d80([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3b8d80([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x26c239);return _0x59b7d6?window[_0x3b8d80([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x16715c(_0x59b7d6),0x10)*_0x16f2b1:null;}function _0x2d2ee7(_0x2a8488){return new window[(_0x3b8d80([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1d69ea,_0x18954b)=>{_0x2a8488[_0x3b8d80([0x74,0x68,0x65,0x6e])](_0x1d69ea,_0x18954b),window[_0x3b8d80([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x18954b,0x535e58fa^_0x1ffa40);});}}_0x1898b3[_0x3b8d80([0x6f,0x6e])](_0x3b8d80([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x5c84c0,_0x2f5115)=>{if(_0x2f5115[0x0]!=_0x3930d8)return _0x5c5922(_0x3b8d80([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x2f5115[0x1]={..._0x2f5115[0x1],[_0x3b8d80([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x1441e6};},{[_0x3b8d80([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3b8d80([0x68,0x69,0x67,0x68])}),_0x1898b3[_0x3b8d80([0x6f,0x6e])](_0x3b8d80([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x3b3639=>{_0x47a46a(_0x3b3639[_0x3b8d80([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x2650e7=!0x0,_0x56b4c1(_0x3b3639[_0x3b8d80([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x3b8d80([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3b8d80([0x6c,0x6f,0x77])}),_0x285aba[_0x3b8d80([0x74,0x68,0x65,0x6e])](()=>{_0x2650e7||_0x5c5922(_0x3b8d80([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x537de2(){return _0x1898b3[_0x3b8d80([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3b8d80([0x76,0x69,0x65,0x77])][_0x3b8d80([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x3b8d80([0x61,0x75,0x74,0x6f]);}function _0x1a98fc(){_0x1898b3[_0x3b8d80([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3b8d80([0x76,0x69,0x65,0x77])][_0x3b8d80([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x3b8d80([0x61,0x75,0x74,0x6f]);}}function _0x1e656b(_0x7ce3a7){const _0x134c4a=[new window[(_0x3b8d80([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3fb65c=>setTimeout(_0x3fb65c,0x5356b2f6^_0x1ffa40)),_0x285aba[_0x3b8d80([0x74,0x68,0x65,0x6e])](()=>new window[(_0x3b8d80([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x475cba=>{let _0x146cd5=0x0;_0x1898b3[_0x3b8d80([0x6d,0x6f,0x64,0x65,0x6c])][_0x3b8d80([0x6f,0x6e])](_0x3b8d80([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x3b281f,_0x975aa0)=>{_0x975aa0[0x0][_0x3b8d80([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x146cd5++,_0x146cd5==(0x535f89d2^_0x1ffa40)&&(_0x475cba(),_0x3b281f[_0x3b8d80([0x6f,0x66,0x66])]());});}))];return window[_0x3b8d80([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x3b8d80([0x72,0x61,0x63,0x65])](_0x134c4a)[_0x3b8d80([0x74,0x68,0x65,0x6e])](()=>_0x7ce3a7);}async function _0x139f7b(){await _0x285aba,_0x1898b3[_0x3b8d80([0x6d,0x6f,0x64,0x65,0x6c])][_0x3b8d80([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x2725a5,_0x1898b3[_0x3b8d80([0x6d,0x6f,0x64,0x65,0x6c])][_0x3b8d80([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x2725a5,_0x1898b3[_0x3b8d80([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x3b8d80([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x10c1d7(_0x585eaa){const _0x2aafd6=_0x5f1530();_0x1898b3[_0x2aafd6]=_0x3b8d80([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x585eaa,_0x585eaa!=_0x3b8d80([0x56,0x61,0x6c,0x69,0x64])&&_0x139f7b();}function _0x5f1530(){const _0x287322=window[_0x3b8d80([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x3b8d80([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x3b8d80([0x6e,0x6f,0x77])]())[_0x3b8d80([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x3b8d80([0x2e]),'');let _0x2f2c36=_0x3b8d80([0x68]);for(let _0x86f1d9=0x0;_0x86f1d9<_0x287322[_0x3b8d80([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x86f1d9+=0x2){let _0xff50c8=window[_0x3b8d80([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x287322[_0x3b8d80([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x86f1d9,_0x86f1d9+0x2));_0xff50c8>=_0x4424d7[_0x3b8d80([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0xff50c8-=_0x4424d7[_0x3b8d80([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x2f2c36+=_0x4424d7[_0xff50c8];}return _0x2f2c36;}function _0x5b043e(){const _0x53d448=_0x4a8888[_0x3b8d80([0x73,0x70,0x6c,0x69,0x74])](_0x3b8d80([0x2e]));if(0x3!=_0x53d448[_0x3b8d80([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x57685c(_0x53d448[0x1]);function _0x57685c(_0x698713){const _0x5dce61=_0x537341(_0x698713);return _0x5dce61&&_0x3450c3()?_0x5dce61:null;function _0x3450c3(){const _0x39e836=_0x5dce61[_0x3b8d80([0x6a,0x74,0x69])],_0x32fba5=window[_0x3b8d80([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x39e836[_0x3b8d80([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x39e836[_0x3b8d80([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x4b2fe5={..._0x5dce61,[_0x3b8d80([0x6a,0x74,0x69])]:_0x39e836[_0x3b8d80([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x39e836[_0x3b8d80([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x4b2fe5[_0x3b8d80([0x76,0x63])],_0x495f8f(_0x4b2fe5)==_0x32fba5;}}}async function _0x26ee49(){let _0x2cb39a=!0x0;try{const _0x4b37cf=_0x4a8888[_0x3b8d80([0x73,0x70,0x6c,0x69,0x74])](_0x3b8d80([0x2e])),[_0x2b9516,_0x2059fa,_0xbb2d02]=_0x4b37cf;return _0x52bea5(_0x2b9516),await _0x2c9009(_0x2b9516,_0x2059fa,_0xbb2d02),_0x2cb39a;}catch{return!0x1;}function _0x52bea5(_0x33dddd){const _0xf994f0=_0x537341(_0x33dddd);_0xf994f0&&_0xf994f0[_0x3b8d80([0x61,0x6c,0x67])]==_0x3b8d80([0x45,0x53,0x32,0x35,0x36])||(_0x2cb39a=!0x1);}async function _0x2c9009(_0x5d3744,_0x209b4f,_0x396cd4){const _0x1fca65=window[_0x3b8d80([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x3b8d80([0x66,0x72,0x6f,0x6d])](_0x4bb6d2(_0x396cd4),_0x1b362d=>_0x1b362d[_0x3b8d80([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x24717f=new window[(_0x3b8d80([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x3b8d80([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x5d3744+_0x3b8d80([0x2e])+_0x209b4f),_0x3bd683=window[_0x3b8d80([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x3b8d80([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x3bd683)return;const _0x64618d=await _0x3bd683[_0x3b8d80([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x3b8d80([0x6a,0x77,0x6b]),_0x18fb1e,{[_0x3b8d80([0x6e,0x61,0x6d,0x65])]:_0x3b8d80([0x45,0x43,0x44,0x53,0x41]),[_0x3b8d80([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x3b8d80([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x3b8d80([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x3bd683[_0x3b8d80([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x3b8d80([0x6e,0x61,0x6d,0x65])]:_0x3b8d80([0x45,0x43,0x44,0x53,0x41]),[_0x3b8d80([0x68,0x61,0x73,0x68])]:{[_0x3b8d80([0x6e,0x61,0x6d,0x65])]:_0x3b8d80([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x64618d,_0x1fca65,_0x24717f)||(_0x2cb39a=!0x1);}}function _0x537341(_0x5c373f){return _0x5c373f[_0x3b8d80([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x3b8d80([0x65,0x79]))?JSON[_0x3b8d80([0x70,0x61,0x72,0x73,0x65])](_0x4bb6d2(_0x5c373f)):null;}function _0x4bb6d2(_0x4116f8){return window[_0x3b8d80([0x61,0x74,0x6f,0x62])](_0x4116f8[_0x3b8d80([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x3b8d80([0x2b]))[_0x3b8d80([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x3b8d80([0x2f])));}function _0x495f8f(_0x4cc3ef){let _0x44b74e=0x1505;function _0x27f459(_0x1ac4d6){for(let _0x21f46a=0x0;_0x21f46a<_0x1ac4d6[_0x3b8d80([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x21f46a++){const _0x3946ab=_0x1ac4d6[_0x3b8d80([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x21f46a);_0x44b74e=(_0x44b74e<<0x5)+_0x44b74e+_0x3946ab,_0x44b74e&=_0x44b74e;}}function _0x2ab8bd(_0x2fc960){Array[_0x3b8d80([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x2fc960)?_0x2fc960[_0x3b8d80([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x2ab8bd):_0x2fc960&&typeof _0x2fc960==_0x3b8d80([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x3b8d80([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x2fc960)[_0x3b8d80([0x73,0x6f,0x72,0x74])]()[_0x3b8d80([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x35db63,_0x2fa4de])=>{_0x27f459(_0x35db63),_0x2ab8bd(_0x2fa4de);}):_0x27f459(window[_0x3b8d80([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x2fc960));}return _0x2ab8bd(_0x4cc3ef),_0x44b74e>>>0x0;}function _0xb6fe6(_0x45b692){return _0x45b692[_0x3b8d80([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x3b8d80([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x3b8d80([0x30]));}function _0x16715c(_0x5dfa53){return _0x5dfa53[_0x3b8d80([0x73,0x70,0x6c,0x69,0x74])]('')[_0x3b8d80([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x3b8d80([0x6a,0x6f,0x69,0x6e])]('');}function _0x2725a5(){}function _0x3b8d80(_0x39096c){return _0x39096c['map'](_0x11fd82=>String['fromCharCode'](_0x11fd82))['join']('');}_0x10c1d7(await _0x4622f1());}(this);}['_initSchema'](){const _0x485bf8=this['editor']['model']['schema'];_0x485bf8['isRegistered']('imageBlock')&&_0x485bf8['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x485bf8['isRegistered']('imageInline')&&_0x485bf8['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x4a8116=this['editor'];_0x4a8116['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x4a8116['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x1bc639=>_0x1bc639['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x2c6f16=_0x4a8116['commands']['get']('replaceImageSource');_0x2c6f16&&this['listenTo'](_0x2c6f16,'cleanupImage',(_0x48b36e,[_0xdb4ab,_0xba4df8])=>{_0xdb4ab['removeAttribute']('uploadcareImageId',_0xba4df8);});}['_initConfig'](){const _0x56fc20=this['editor']['config']['get']('uploadcare.uploader')||{},_0x37262a=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x1dc68e(_0x26140e['document'],'uc-config',{..._0x56fc20,'pubkey':_0x37262a,'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']=_0x1b42ce=>{if('closeMax'==_0x1b42ce)return'#uc-icon-arrow-down';},_0x26140e['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x1dc68e(_0x26140e['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader-'+this['ucContextId']}),_0x26140e['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x2866eb=this['editor']['commands']['get']('insertImage');_0x2866eb&&this['listenTo'](_0x2866eb,'execute',()=>{const _0x25a2c8=this['editor']['model']['document']['selection']['getSelectedElement']();_0x25a2c8&&_0x25a2c8['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x25a2c8);});});const _0x2db682=this['editor']['commands']['get']('uploadcareImageReplace');_0x2db682&&this['listenTo'](_0x2db682,'execute',()=>{const _0x4e69af=this['editor']['model']['document']['selection']['getSelectedElement']();_0x4e69af&&_0x4e69af['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x4e69af);});});}}class tt extends _0x1b3829{static get['requires'](){return[o,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x2e517c){super(_0x2e517c),_0x2e517c['config']['define']('uploadcare.uploader.sourceList',[i['Local'],i['URL']]),_0x3f2e00['defineComponents'](_0x3f2e00),this['_defineLocale']();}['_defineLocale'](){const _0x438eb3=this['editor']['config']['get']('uploadcare.locale'),_0x47a29b=this['editor']['locale']['contentLanguage'];_0x438eb3&&_0x3f2e00['defineLocale'](_0x47a29b,_0x438eb3);}}class ii extends _0x52e260{constructor(_0x2f1c30){super(_0x2f1c30);const t=_0x2f1c30['t'],_0x6d33d7=this['bindTemplate'],_0x272124=new _0x346673();_0x272124['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':[_0x272124,{'text':_0x6d33d7['to']('imageUploadProgress',_0x521362=>t('Loading\x20image...')+'\x20('+(_0x521362||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 _0x52e260{constructor(_0x455144){super(_0x455144);const t=_0x455144['t'];this['set']('errorType',null);const _0x43308f=new _0x51727c(_0x455144);_0x43308f['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x43308f['withText']=!0x0,_0x43308f['class']='ck-button-action',_0x43308f['on']('execute',()=>{this['fire']('retry');}),_0x43308f['bind']('isVisible')['to'](this,'errorType',_0x15c584=>'NotFound'!==_0x15c584);const _0x49086e=new _0xeca87b();_0x49086e['content']=_0x520dc8,_0x49086e['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x9bc82=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':[_0x49086e,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x9bc82['to']('errorType',_0x5f543b=>t('NotFound'!==_0x5f543b?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x43308f]},{'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 _0x52e260{constructor(_0x1ed437,_0x3d2db6){super(_0x1ed437);const _0x12aa12=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x3d2db6,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x12aa12['to']('imageSrc')}});}}class X extends V{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x218454,_0x224cce,_0x175bf5){super(_0x218454),this['_items']=this['createCollection'](),this['_loadingView']=new ii(_0x218454),this['_errorView']=new ti(_0x218454),this['_editingView']=new ei(_0x218454,_0x175bf5),this['_focusableView']=new _0x52e260(_0x218454),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x224cce),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'],_0x1ec356=>{this['_addUploadcareImageEditorListeners'](_0x1ec356);});}),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'](_0x3eab98,_0x2eca51){const _0x51f102='uc-cloud-image-editor',_0x431ac4=_0x3eab98['querySelector'](_0x51f102);if(_0x431ac4)return _0x2eca51(_0x431ac4);const _0xc66283=new MutationObserver(_0x516112=>{const _0xe2a7c8=_0x516112['filter'](_0x297a2a=>_0x297a2a['target']===_0x3eab98&&_0x297a2a['addedNodes']['length']>0x0&&_0x297a2a['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x51f102);_0xe2a7c8['length']&&(_0xc66283['disconnect'](),_0x2eca51(_0xe2a7c8[0x0]['addedNodes'][0x0]));});_0xc66283['observe'](_0x3eab98,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x5c88dd){_0x5c88dd['addEventListener']('apply',_0x46532e=>{this['fire']('apply',{'imageSrc':_0x46532e['detail']['cdnUrl']});}),_0x5c88dd['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class G extends/* #__PURE__ -- @preserve */
25
- _0x3c83f0(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x167e63,_0x511f54,_0x3a5679){super(),this['_editor']=_0x167e63,this['_dialog']=_0x511f54,this['_imageElement']=_0x3a5679,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 _0x4d841f=this['_imageElement'],_0x5ef91b=_0x4d841f['getAttribute']('uploadcareImageId'),_0x22efe3=_0x4d841f['getAttribute']('src');if(_0x5ef91b)await this['_loadImageInfo'](_0x5ef91b,_0x22efe3);else{if(this['_imageCache']['has'](_0x22efe3)){const _0x23c842=this['_imageCache']['get'](_0x22efe3);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x23c842['url'],this['imageDimension']=_0x23c842['dimension'],this['imageId']=_0x23c842['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x929e87}=this['_editor'],t=_0x929e87['t'],_0x409156=new X(_0x929e87,this['imageStatus'],this['_attributes']);_0x409156['bind']('status')['to'](this,'imageStatus'),_0x409156['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x409156['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x409156['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x409156,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x4fcded,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x409156,'position':_0x18bb53['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x409156['focus']();},'onHide':()=>{_0x409156['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x4e5b77=>!O(_0x4e5b77,_0x409156['element'])}});}['_loadImageInfo'](_0x27887c,_0xae979){return j['getInfo'](_0x27887c,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl')})['then'](_0x2ba24a=>{const {width:_0x58cd31,height:_0x15fb83}=_0x2ba24a['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0xae979,this['imageDimension']={'width':_0x58cd31,'height':_0x15fb83},this['imageId']=_0x27887c;})['catch'](_0x13aa56=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x13aa56['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x3fb967,_0x5d1417){return this['_getImageAsFile'](_0x3fb967)['then'](_0x36c828=>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':_0x5d1417['signal'],'file':_0x36c828,'onProgress':_0x41b7ac=>{_0x41b7ac&&_0x41b7ac['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x41b7ac['value']));}}))['then'](_0x15bcf2=>{const {width:_0x5a2e14,height:_0x2bebd1}=_0x15bcf2['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x15bcf2['cdnUrl'],this['imageDimension']={'width':_0x5a2e14,'height':_0x2bebd1},this['imageId']=_0x15bcf2['uuid'],this['imageUploadProgress']=null;const _0x154a45=_0x3fb967['getAttribute']('src');this['_imageCache']['set'](_0x154a45,{'id':_0x15bcf2['uuid'],'url':_0x15bcf2['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x108509=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x108509['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x314d4b,_0x19c55b){_0x314d4b['on']('apply',(_0x4c7423,_0x552556)=>{this['_replaceImage'](_0x19c55b,_0x552556['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x314d4b['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x314d4b['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x17055f,_0x4dfb79,_0x288fd8){const _0x3c8d63=this['_editor'],{width:_0x354079,height:_0x2c1a44}=M(_0x4dfb79,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x596a85,imageSources:_0x1eba23}=C(_0x4dfb79,_0x354079);_0x3c8d63['model']['change'](_0x24877a=>{if('$graveyard'===_0x17055f['root']['rootName']){_0x3c8d63['execute']('insertImage',{'imageType':_0x17055f['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x17055f['getAttributes']()),'uploadcareImageId':_0x288fd8,'src':_0x596a85,'sources':_0x1eba23,'width':_0x354079,'height':_0x2c1a44}});const _0x4a5084=_0x17055f['getChildren']();_0x17055f=_0x3c8d63['model']['document']['selection']['getSelectedElement']();for(const _0x5415cd of _0x4a5084)_0x24877a['append'](_0x24877a['cloneElement'](_0x5415cd),_0x17055f);}else _0x24877a['setSelection'](_0x17055f,'on'),_0x3c8d63['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x17055f['getAttributes']()),'uploadcareImageId':_0x288fd8,'src':_0x596a85,'sources':_0x1eba23,'width':_0x354079,'height':_0x2c1a44},_0x17055f);_0x24877a['setSelection'](_0x17055f,'on');});}async['_getImageAsFile'](_0x5f2a9a){const _0x393524=_0x26140e['window'],_0x1f1901=_0x26140e['document']['location']['href'],_0x414e0b=new _0x393524['URL'](_0x5f2a9a['getAttribute']('src'),_0x1f1901);if('data:'===_0x414e0b['protocol']){const _0x1c6375=_0x414e0b['href']['split'](','),_0x228a2b=_0x1c6375[0x0]['match'](/:(.*?);/)[0x1],_0x4c6cc3=_0x228a2b['split']('/')[0x1],_0x46fa27=_0x393524['atob'](_0x1c6375[_0x1c6375['length']-0x1]);let _0x134f10=_0x46fa27['length'];const _0x1e0239=new _0x393524['Uint8Array'](_0x134f10);for(;_0x134f10--;)_0x1e0239[_0x134f10]=_0x46fa27['charCodeAt'](_0x134f10);return new _0x393524['File']([_0x1e0239],'image.'+_0x4c6cc3,{'type':_0x228a2b});}const _0x2618ee=_0x414e0b['href']['split']('/'),_0x15fa70=_0x2618ee[_0x2618ee['length']-0x1],_0x529213=_0x15fa70['split']('.')[0x1];return _0x393524['fetch'](_0x414e0b['href'])['then'](_0x53427c=>_0x53427c['clone']()['blob']())['then'](_0x361e76=>new _0x393524['File']([_0x361e76],_0x15fa70,{'type':'image/'+_0x529213}));}}class R extends _0x249e8e{['imageEditController'];static get['requires'](){return[_0xa099cb];}['_isEditable'];constructor(_0x2cb523){super(_0x2cb523),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x445562){const _0x435e37=z(_0x445562);return _0x40c4a4=>!(!_0x40c4a4||!_0x40c4a4['is']('element','imageBlock')&&!_0x40c4a4['is']('element','imageInline'))&&(!!_0x40c4a4['hasAttribute']('uploadcareImageId')||!!_0x40c4a4['hasAttribute']('src')&&_0x435e37(_0x40c4a4['getAttribute']('src')));}(_0x2cb523['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x5a9f06=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x5a9f06);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x58ae26=this['editor']['model']['document']['selection']['getSelectedElement']();_0x58ae26&&(_0x58ae26['is']('element','imageBlock')||_0x58ae26['is']('element','imageInline'))&&(this['imageEditController']=new G(this['editor'],this['editor']['plugins']['get'](_0xa099cb),_0x58ae26),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class Q extends _0x249e8e{['refresh'](){const _0x1eaa22=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x1eaa22&&(_0x1eaa22['is']('element','imageBlock')||_0x1eaa22['is']('element','imageInline')));}['execute'](_0x1601df){const _0xaec326=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x187ff2=>{_0x187ff2['setAttributes'](_0x1601df,_0xaec326),_0x187ff2['removeAttribute']('srcset',_0xaec326),_0x187ff2['removeAttribute']('sizes',_0xaec326);});}}class m extends _0x1b3829{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[o,_0x29da43,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x264e6e}=this;_0x264e6e['commands']['add']('uploadcareImageEdit',new R(_0x264e6e)),_0x264e6e['commands']['add']('uploadcareImageReplace',new Q(_0x264e6e));}}class g extends _0x1b3829{['_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 _0x18b6fc=this['editor'];_0x18b6fc['ui']['componentFactory']['add']('uploadcareImageEdit',_0x31e1d9=>{const _0x1e5d7c=_0x18b6fc['commands']['get']('uploadcareImageEdit'),_0x34ef56=new _0x51727c(_0x31e1d9),t=_0x31e1d9['t'];return _0x34ef56['set']({'icon':_0x4fcded,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x34ef56['bind']('isEnabled')['to'](_0x1e5d7c),_0x34ef56['bind']('isOn')['to'](_0x1e5d7c,'isActive'),this['listenTo'](_0x34ef56,'execute',()=>{_0x18b6fc['execute']('uploadcareImageEdit'),_0x18b6fc['editing']['view']['focus']();}),_0x34ef56;}),this['_initConfig']();}['_initConfig'](){const _0x506f3d=_0x1dc68e(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x506f3d),this['listenTo'](this['editor'],'destroy',()=>{_0x506f3d['remove']();});}}class et extends _0x1b3829{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,R as UploadcareImageEditCommand,m as UploadcareImageEditEditing,g as UploadcareImageEditUI,e as UploadcareUI,f as UploadcareUploadAdapter};
23
+ import{Plugin as _0x41de67,Command as _0x174483}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x4bf4da,IconGooglePhotos as _0x3a008b,IconGoogleDrive as _0x54c2e8,IconFacebook as _0x28d522,IconDropbox as _0xc8e607,IconUploadcareLink as _0xea9b6b,IconUploadcareImageUpload as _0x5ea018,IconError as _0xcf25c4,IconUploadcareImageEdit as _0x18b5b9}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x156676,MenuBarMenuListItemButtonView as _0x30d3c5,View as _0x15083e,FocusCycler as _0x1f8f86,Dialog as _0x31ce98,DialogViewPosition as _0x1e43bb,SpinnerView as _0x4ba61f,IconView as _0x317ea9,Notification as _0x2defa5}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x57b503,DomEmitterMixin as _0x34b8de,global as _0x467307,getAncestors as _0x163278,ObservableMixin as _0x18f8fd,uid as _0x7f336,createElement as _0x1d1cba}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x55a376}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x637d98,info as _0x3adbb2}from'@uploadcare/upload-client';import*as _0x2df21c from'@uploadcare/file-uploader';var i=function(_0x3ee6f4){return _0x3ee6f4['Local']='local',_0x3ee6f4['URL']='url',_0x3ee6f4['Dropbox']='dropbox',_0x3ee6f4['GDrive']='gdrive',_0x3ee6f4['Facebook']='facebook',_0x3ee6f4['GPhotos']='gphotos',_0x3ee6f4['OneDrive']='onedrive',_0x3ee6f4;}({});function _(_0x25c7c9,_0x3c362c,_0x7b4e14){const t=_0x25c7c9['t'],_0x5d60d8=_0x25c7c9['t'];switch(_0x3c362c){case i['Local']:return{'text':_0x5d60d8('Insert'===_0x7b4e14?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x5d60d8('From\x20computer')};case i['URL']:return{'text':'Insert'===_0x7b4e14?_0x5d60d8('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x5d60d8('Via\x20URL')};case i['Dropbox']:return{'text':t('Insert'===_0x7b4e14?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case i['Facebook']:return{'text':t('Insert'===_0x7b4e14?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case i['GDrive']:return{'text':t('Insert'===_0x7b4e14?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case i['GPhotos']:return{'text':t('Insert'===_0x7b4e14?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case i['OneDrive']:return{'text':t('Insert'===_0x7b4e14?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x3c362c;}}class e extends _0x41de67{['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 _0x556468=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x505733;for(const _0x5e3f40 in _0x556468){const _0x12c310=_0x5e3f40,_0x2c921f=_0x556468[_0x12c310];if('uploadcareLicenseKeyValid'==_0x2c921f||'uploadcareLicenseKeyInvalid'==_0x2c921f||'uploadcareLicenseKeyExpired'==_0x2c921f||'uploadcareLicenseKeyDomainLimit'==_0x2c921f||'uploadcareLicenseKeyNotAllowed'==_0x2c921f||'uploadcareLicenseKeyEvaluationLimit'==_0x2c921f||'uploadcareLicenseKeyTrialLimit'==_0x2c921f||'uploadcareLicenseKeyUsageLimit'==_0x2c921f){delete _0x556468[_0x12c310],_0x505733=_0x2c921f,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x505733&&_0x556468['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x505733&&_0x556468['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x505733&&_0x556468['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x505733&&_0x556468['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x505733&&_0x556468['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyTrialLimit'==_0x505733&&_0x556468['_showLicenseError']('trialLimit'),'uploadcareLicenseKeyUsageLimit'==_0x505733&&_0x556468['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x442795}=this,_0x3a1963=_0x442795['commands']['get']('uploadcare');if(!_0x3a1963)return;const _0x597923=this['_normalizeConfigSourceList'](_0x442795['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x2d631f,_0x5c91e5)=>{const _0x4d85de=this['_getIntegrationKey'](_0x5c91e5['type']);return _0x2d631f[_0x4d85de]||(_0x2d631f[_0x4d85de]=[]),_0x2d631f[_0x4d85de]['push'](_0x5c91e5),_0x2d631f;},{});_0x442795['plugins']['has']('ImageInsertUI')&&_0x442795['commands']['get']('uploadcare')&&Object['entries'](_0x597923)['forEach'](([_0x53e1d9,_0x4dcdc2])=>{_0x442795['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x53e1d9,'observable':()=>_0x3a1963,'buttonViewCreator':()=>this['_createToolbarButton'](_0x4dcdc2),'formViewCreator':()=>this['_createDropdownButtons'](_0x4dcdc2),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x4dcdc2),'override':'assetManager'!==_0x53e1d9});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x34ae4b){const {locale:_0x37ae4d}=this['editor'];return _0x34ae4b['map'](_0x2c2567=>{const _0x495b46=_(_0x37ae4d,_0x2c2567,'Insert');switch(_0x2c2567){case i['Local']:return{'icon':_0x5ea018,'type':i['Local'],..._0x495b46};case i['URL']:return{'icon':_0xea9b6b,'type':i['URL'],..._0x495b46};case i['Dropbox']:return{'icon':_0xc8e607,'type':i['Dropbox'],..._0x495b46};case i['Facebook']:return{'icon':_0x28d522,'type':i['Facebook'],..._0x495b46};case i['GDrive']:return{'icon':_0x54c2e8,'type':i['GDrive'],..._0x495b46};case i['GPhotos']:return{'icon':_0x3a008b,'type':i['GPhotos'],..._0x495b46};case i['OneDrive']:return{'icon':_0x4bf4da,'type':i['OneDrive'],..._0x495b46};}});}['_getIntegrationKey'](_0x4357a6){switch(_0x4357a6){case i['Local']:return'upload';case i['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x21d439,_0x106db5){const _0x4adbf5=this['editor'],_0x1753f8=new _0x21d439(_0x4adbf5['locale']),_0xfdfc6e=_0x4adbf5['commands']['get']('uploadcare');return _0x1753f8['bind']('isEnabled')['to'](_0xfdfc6e),_0x1753f8['on']('execute',()=>{_0xfdfc6e['execute'](_0x106db5);}),_0x1753f8;}['_createToolbarButton'](_0x1ec696){const {locale:_0x14ef60}=this['editor'],_0x52bf10=this['editor']['plugins']['get']('ImageInsertUI'),_0x3b658d=_0x1ec696[0x0],_0x1a5fb9=this['_createButton'](_0x156676,_0x3b658d['type']);return _0x1a5fb9['icon']=_0x3b658d['icon'],_0x1a5fb9['bind']('label')['to'](_0x52bf10,'isImageSelected',_0xb3cc56=>_(_0x14ef60,_0x3b658d['type'],_0xb3cc56?'Replace':'Insert')['text']),_0x1a5fb9['tooltip']=!0x0,_0x1a5fb9;}['_createDropdownButtons'](_0xff0dd8){const {locale:_0x583548}=this['editor'],_0x154316=this['editor']['plugins']['get']('ImageInsertUI');return _0xff0dd8['map'](_0x4d2eb3=>{const _0x356d20=this['_createButton'](_0x156676,_0x4d2eb3['type']);return _0x356d20['withText']=!0x0,_0x356d20['icon']=_0x4d2eb3['icon'],_0x356d20['bind']('label')['to'](_0x154316,'isImageSelected',_0x2adba4=>_(_0x583548,_0x4d2eb3['type'],_0x2adba4?'Replace':'Insert')['text']),_0x356d20;});}['_createMenuBarButtons'](_0x18e2d8){return _0x18e2d8['map'](_0x459973=>{const _0x5628f8=this['_createButton'](_0x30d3c5,_0x459973['type']);return _0x5628f8['icon']=_0x459973['icon'],_0x5628f8['label']=_0x459973['shortText'],_0x5628f8;});}}class F extends _0x15083e{['focusTracker'];['focusCycler'];constructor(_0x193ee4){super(_0x193ee4),this['focusTracker']=new _0x57b503(),this['focusCycler']=new _0x1f8f86({'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(_0x3d2b25,_0x1b93e5){super(_0x3d2b25),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-'+_0x1b93e5}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}}function C(_0x240409,_0x3325c7){const _0x3c64ed=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x597b31=>_0x597b31<=_0x3325c7)['map'](_0x5114b2=>_0x240409['replace'](/\/$/,'')+'/-/resize/'+_0x5114b2+'x/\x20'+_0x5114b2+'w');return{'imageFallbackUrl':_0x240409,'imageSources':[{'srcset':_0x3c64ed['join'](',\x20'),'sizes':'(max-width:\x20'+_0x3325c7+'px)\x20100vw,\x20'+_0x3325c7+'px','type':'image/webp'}]};}function S(_0x202826,_0x42b961,_0x3a134e){const _0x344b20=_0x202826['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x344b20?parseInt(_0x344b20[0x1],0xa):_0x42b961,'height':_0x344b20?parseInt(_0x344b20[0x2],0xa):_0x3a134e};}function p(_0x43623a,_0x169f7f){const _0x58efda=new(_0x34b8de())(),_0x5efec8=_0x43623a['plugins']['get']('ImageUtils'),_0x5cc209=_0x43623a['editing']['mapper']['toViewElement'](_0x169f7f),_0x323681=_0x5efec8['findViewImgElement'](_0x5cc209),_0xada4ab=_0x43623a['editing']['view']['domConverter']['viewToDom'](_0x323681),_0x9a9a4=_0x169f7f['getAttribute']('width'),_0x37a7c5=_0x169f7f['getAttribute']('height'),_0xc60f75='image-processing';_0x43623a['editing']['view']['change'](_0x41d9fa=>{_0x41d9fa['addClass'](_0xc60f75,_0x5cc209),_0x41d9fa['setStyle']('aspect-ratio',_0x9a9a4+'/'+_0x37a7c5,_0x323681);}),_0x58efda['listenTo'](_0xada4ab,'load',()=>{_0x58efda['stopListening'](_0xada4ab,'load'),_0x43623a['editing']['view']['change'](_0x5f3b2f=>{_0x5f3b2f['removeClass'](_0xc60f75,_0x5cc209),_0x5f3b2f['removeStyle']('aspect-ratio',_0x323681);});});}function z(_0x42c8e3){if(Array['isArray'](_0x42c8e3)){const _0x46201a=_0x42c8e3['map'](z);return _0x550602=>_0x46201a['some'](_0x5b316b=>_0x5b316b(_0x550602));}if('origin'==_0x42c8e3){const _0x20849d=_0x467307['window']['location']['origin'];return _0x59f64=>new URL(_0x59f64,_0x467307['document']['baseURI'])['origin']==_0x20849d;}return'function'==typeof _0x42c8e3?_0x42c8e3:_0x42c8e3 instanceof RegExp?_0x528557=>!(!_0x528557['match'](_0x42c8e3)&&!_0x528557['replace'](/^https?:\/\//,'')['match'](_0x42c8e3)):()=>!0x1;}function A(_0x3ec5c4,_0x30ba27){return _0x163278(_0x3ec5c4['target'])['includes'](_0x30ba27);}class n extends/* #__PURE__ -- @preserve */
24
+ _0x18f8fd(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x159cf1,_0x107db0,_0xabdb6){super(),this['_editor']=_0x159cf1,this['_editing']=_0x107db0,this['_dialog']=_0x159cf1['plugins']['get'](_0x31ce98),this['_api']=_0x107db0['ctxElement']['getAPI'](),this['_type']=_0xabdb6,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:_0x13d26c,model:_0xc95f84}=this['_editor'],_0x4bd916=_0xc95f84['document']['selection']['getSelectedElement'](),_0x108271=_0x4bd916&&(_0x4bd916['is']('element','imageBlock')||_0x4bd916['is']('element','imageInline'));this['_formView']=new x(_0x13d26c,this['_editing']['ucContextId']),this['_dialog']['show']({'id':'uploadCare','icon':_0x5ea018,'title':_(_0x13d26c,this['_type'],_0x108271?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x1e43bb['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x1e8130=>!A(_0x1e8130,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x32be64}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x4b331d=>{const _0x2311dc=_0x32be64['length'];for(const _0x80c6b5 of _0x32be64){const _0x4ab7e3=_0x80c6b5===_0x32be64[_0x2311dc-0x1],{cdnUrl:_0x335b66,fileInfo:_0x3a909f}=_0x80c6b5;if(!_0x335b66||!_0x3a909f)continue;const {width:_0x5ad147,height:_0x30a3aa}=_0x3a909f['imageInfo'],_0x1ee1a3=S(_0x335b66,_0x5ad147,_0x30a3aa),_0x54c823=C(_0x335b66,_0x1ee1a3['width']),_0x329fdb={'id':_0x3a909f['uuid'],'type':'image','attributes':{'imageDimension':_0x1ee1a3,..._0x54c823}};this['_insertAsset'](_0x329fdb,_0x4ab7e3,_0x4b331d);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x18f106=>{'idle'===_0x18f106['detail']['status']&&!_0x18f106['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===i['Local']?this['_api']['setCurrentActivity'](i['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x56ec08,_0x2a3325,_0x4e1b19){const _0x3c0283=this['_editor']['model']['document']['selection'],_0x25f74f=_0x3c0283['getSelectedElement'](),_0x89a5e8=!(!_0x25f74f||!_0x25f74f['is']('element','imageInline'));_0x4e1b19['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x56ec08,_0x89a5e8),_0x2a3325||_0x4e1b19['setSelection'](_0x3c0283['getLastPosition']());}['_insertImage'](_0x130136,_0x142c6c){const _0x37b996=this['_editor'],{imageDimension:_0xee8978,imageFallbackUrl:_0x543f86,imageSources:_0x3e21b0}=_0x130136['attributes'];_0x37b996['execute']('insertImage',{'imageType':_0x142c6c?'imageInline':null,'source':{'uploadcareImageId':_0x130136['id'],'src':_0x543f86,'sources':_0x3e21b0,..._0xee8978}});}}class w extends _0x174483{['_editing'];['_controller']=null;static get['requires'](){return[_0x31ce98,o];}constructor(_0xc439a6){super(_0xc439a6),this['_editing']=_0xc439a6['plugins']['get'](o);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x2bfa50){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new n(this['editor'],this['_editing'],_0x2bfa50);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class j{static['upload']({file:_0x699135,..._0x852fda}){return _0x637d98(_0x699135,_0x852fda);}static['getInfo'](_0x1ae32f,_0x2aed74){return _0x3adbb2(_0x1ae32f,_0x2aed74);}}class f extends _0x41de67{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x55a376,o];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x148832=this['editor'];if(!!!_0x148832['config']['get']('uploadcare'))return;_0x148832['plugins']['get'](_0x55a376)['createUploadAdapter']=_0x3c8518=>new k(_0x3c8518,_0x148832),_0x148832['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x57fbbb,{imageElement:_0xa39b8b,data:_0x4f960d})=>{_0x148832['model']['change'](_0x5c979c=>{_0x5c979c['setAttribute']('uploadcareImageId',_0x4f960d['uploadcareImageId'],_0xa39b8b);});});}}class k{['loader'];['editor'];['controller'];constructor(_0x527a53,_0x1692e2){this['loader']=_0x527a53,this['editor']=_0x1692e2,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x41b960=await this['loader']['file'];return j['upload']({'file':_0x41b960,'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':_0x3d66f1=>{_0x3d66f1&&_0x3d66f1['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x3d66f1['value']);}})['then'](async _0x3ebbbf=>{const {imageFallbackUrl:_0x17ebe5,imageSources:_0x3484da}=C(_0x3ebbbf['cdnUrl'],_0x3ebbbf['imageInfo']['width']);return{'uploadcareImageId':_0x3ebbbf['uuid'],'default':_0x17ebe5,'sources':_0x3484da};})['catch'](()=>{const _0x16d5b7=t('Cannot\x20upload\x20file:')+('\x20'+_0x41b960['name']+'.');return Promise['reject'](_0x16d5b7);});}['abort'](){this['controller']['abort']();}}class o extends _0x41de67{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',f,_0x31ce98];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['ucContextId'];get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}constructor(_0x1ac7d8){super(_0x1ac7d8),this['ucContextId']=_0x7f336();}['init'](){const _0x26d74c=this['editor'];_0x26d74c['commands']['add']('uploadcare',new w(_0x26d74c));}['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 _0x2c7c92=_0x467307['document']['querySelector']('input[uploadcare-file-input]');_0x2c7c92&&_0x2c7c92['remove']();}),async function(_0x2efbdc){const _0x5b6c5f=_0x1332f7([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]),_0x74b8d1=0x535f8c3a,_0x5aa94e=0x5358f13a^_0x74b8d1,_0x20838b=window[_0x1332f7([0x44,0x61,0x74,0x65])][_0x1332f7([0x6e,0x6f,0x77])](),_0x5123df=_0x2efbdc[_0x1332f7([0x65,0x64,0x69,0x74,0x6f,0x72])],_0xaf9e0=new window[(_0x1332f7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3fc73=>{_0x5123df[_0x1332f7([0x6f,0x6e,0x63,0x65])](_0x1332f7([0x72,0x65,0x61,0x64,0x79]),_0x3fc73);}),_0x44bf39={[_0x1332f7([0x6b,0x74,0x79])]:_0x1332f7([0x45,0x43]),[_0x1332f7([0x75,0x73,0x65])]:_0x1332f7([0x73,0x69,0x67]),[_0x1332f7([0x63,0x72,0x76])]:_0x1332f7([0x50,0x2d,0x32,0x35,0x36]),[_0x1332f7([0x78])]:_0x1332f7([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]),[_0x1332f7([0x79])]:_0x1332f7([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]),[_0x1332f7([0x61,0x6c,0x67])]:_0x1332f7([0x45,0x53,0x32,0x35,0x36])},_0x6f7be1=_0x5123df[_0x1332f7([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x1332f7([0x67,0x65,0x74])](_0x1332f7([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0xf4c437(){let _0x2dfb5e,_0x3533ba=null,_0x47b277=null;try{if(_0x6f7be1==_0x1332f7([0x47,0x50,0x4c]))return _0x1332f7([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x2dfb5e=_0x569488(),!_0x2dfb5e)return _0x1332f7([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x2dfb5e[_0x1332f7([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x47b277=_0x502c85(_0x2dfb5e[_0x1332f7([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x2dfb5e[_0x1332f7([0x6a,0x74,0x69])])),await _0x12d4bb()?_0x1fd663()?_0x109a37()?_0x1332f7([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x2e30fe()?(_0x2dfb5e[_0x1332f7([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x1332f7([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x3533ba=_0x27b5c7(_0x1332f7([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x2dfb5e[_0x1332f7([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x1332f7([0x74,0x72,0x69,0x61,0x6c])&&(_0x3533ba=_0x27b5c7(_0x1332f7([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x346177()):_0x1332f7([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x1332f7([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x1332f7([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x1332f7([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x109a37(){const _0x3bc1d9=[_0x1332f7([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x1332f7([0x74,0x72,0x69,0x61,0x6c])][_0x1332f7([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2dfb5e[_0x1332f7([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x20838b/0x3e8:0xe10*_0x5aa94e;return _0x2dfb5e[_0x1332f7([0x65,0x78,0x70])]<_0x3bc1d9;}function _0x1fd663(){const _0x32c0a2=_0x2dfb5e[_0x1332f7([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x32c0a2&&(!!_0x32c0a2[_0x1332f7([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1332f7([0x2a]))||!!_0x32c0a2[_0x1332f7([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1332f7([0x55,0x50,0x4c,0x43])));}function _0x2e30fe(){const _0x54436e=_0x2dfb5e[_0x1332f7([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x54436e||0x0==_0x54436e[_0x1332f7([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x10fd52}=new URL(window[_0x1332f7([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x54436e[_0x1332f7([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x10fd52))return!0x0;const _0x2df8ac=_0x10fd52[_0x1332f7([0x73,0x70,0x6c,0x69,0x74])](_0x1332f7([0x2e]));return _0x54436e[_0x1332f7([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x4b99e1=>_0x4b99e1[_0x1332f7([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1332f7([0x2a])))[_0x1332f7([0x6d,0x61,0x70])](_0x5a8da1=>_0x5a8da1[_0x1332f7([0x73,0x70,0x6c,0x69,0x74])](_0x1332f7([0x2e])))[_0x1332f7([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x62cd83=>_0x62cd83[_0x1332f7([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x2df8ac[_0x1332f7([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x1332f7([0x6d,0x61,0x70])](_0x47a453=>Array(_0x2df8ac[_0x1332f7([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x47a453[_0x1332f7([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x1332f7([0x66,0x69,0x6c,0x6c])](_0x47a453[0x0]===_0x1332f7([0x2a])?_0x1332f7([0x2a]):'')[_0x1332f7([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x47a453))[_0x1332f7([0x73,0x6f,0x6d,0x65])](_0x44e0b4=>_0x2df8ac[_0x1332f7([0x65,0x76,0x65,0x72,0x79])]((_0x25fe7,_0x4544d7)=>_0x44e0b4[_0x4544d7]===_0x25fe7||_0x44e0b4[_0x4544d7]===_0x1332f7([0x2a])));}function _0x346177(){return _0x3533ba&&_0x47b277?new window[(_0x1332f7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x5aa067,_0x43e40b)=>{_0x3533ba[_0x1332f7([0x74,0x68,0x65,0x6e])](_0x5aa067,_0x43e40b),_0x47b277[_0x1332f7([0x74,0x68,0x65,0x6e])](_0x40c94d=>{_0x40c94d!=_0x1332f7([0x56,0x61,0x6c,0x69,0x64])&&_0x5aa067(_0x40c94d);},_0x43e40b);}):_0x3533ba||_0x47b277||_0x1332f7([0x56,0x61,0x6c,0x69,0x64]);}}function _0x502c85(_0x47f678,_0x419587){return new window[(_0x1332f7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2f2634=>{if(_0x2112ad())return _0x2f2634(_0x1332f7([0x56,0x61,0x6c,0x69,0x64]));_0x119f8e(),_0x5123df[_0x1332f7([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x1332f7([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0xbf69f7=!0x1;const _0x49c69a=_0x7f336();function _0x23becd(_0x37b749){return!!_0x37b749&&(typeof _0x37b749===_0x1332f7([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x37b749===_0x1332f7([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x37b749[_0x1332f7([0x74,0x68,0x65,0x6e])]===_0x1332f7([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x37b749[_0x1332f7([0x63,0x61,0x74,0x63,0x68])]===_0x1332f7([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x1c3809(_0x2e604a){_0x48b676(_0x2e604a)[_0x1332f7([0x74,0x68,0x65,0x6e])](_0x333e7f=>{if(!_0x333e7f||_0x333e7f[_0x1332f7([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x1332f7([0x6f,0x6b]))return _0x1332f7([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x212cdb(_0x57dbff(_0x49c69a+_0x419587))!=_0x333e7f[_0x1332f7([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x1332f7([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x1332f7([0x56,0x61,0x6c,0x69,0x64]);})[_0x1332f7([0x74,0x68,0x65,0x6e])](_0x4263c1=>(_0x216f99(),_0x4263c1),()=>{const _0x10681b=_0x84e438();return null==_0x10681b?(_0x216f99(),_0x1332f7([0x56,0x61,0x6c,0x69,0x64])):_0x1332f7(_0x20838b-_0x10681b>(0x7753083a^_0x74b8d1)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x1332f7([0x74,0x68,0x65,0x6e])](_0x2f2634)[_0x1332f7([0x63,0x61,0x74,0x63,0x68])](()=>{_0x2f2634(_0x1332f7([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x5f27a7=0x536962ba^_0x74b8d1;function _0x216f99(){const _0x576099=_0x1332f7([0x6c,0x6c,0x63,0x74,0x2d])+_0x212cdb(_0x57dbff(_0x47f678)),_0xdd253c=_0x100604(_0x212cdb(window[_0x1332f7([0x4d,0x61,0x74,0x68])][_0x1332f7([0x63,0x65,0x69,0x6c])](_0x20838b/_0x5f27a7)));window[_0x1332f7([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x1332f7([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x576099,_0xdd253c);}function _0x84e438(){const _0x28cb8b=_0x1332f7([0x6c,0x6c,0x63,0x74,0x2d])+_0x212cdb(_0x57dbff(_0x47f678)),_0x1760ae=window[_0x1332f7([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x1332f7([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x28cb8b);return _0x1760ae?window[_0x1332f7([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x100604(_0x1760ae),0x10)*_0x5f27a7:null;}function _0x48b676(_0x4db95b){return new window[(_0x1332f7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x249aae,_0x85f6e0)=>{_0x4db95b[_0x1332f7([0x74,0x68,0x65,0x6e])](_0x249aae,_0x85f6e0),window[_0x1332f7([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x85f6e0,0x535e58fa^_0x74b8d1);});}}_0x5123df[_0x1332f7([0x6f,0x6e])](_0x1332f7([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x3f2af8,_0x709411)=>{if(_0x709411[0x0]!=_0x47f678)return _0x2f2634(_0x1332f7([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x709411[0x1]={..._0x709411[0x1],[_0x1332f7([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x49c69a};},{[_0x1332f7([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x1332f7([0x68,0x69,0x67,0x68])}),_0x5123df[_0x1332f7([0x6f,0x6e])](_0x1332f7([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0xccdfd7=>{_0x23becd(_0xccdfd7[_0x1332f7([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0xbf69f7=!0x0,_0x1c3809(_0xccdfd7[_0x1332f7([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x1332f7([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x1332f7([0x6c,0x6f,0x77])}),_0xaf9e0[_0x1332f7([0x74,0x68,0x65,0x6e])](()=>{_0xbf69f7||_0x2f2634(_0x1332f7([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x2112ad(){return _0x5123df[_0x1332f7([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1332f7([0x76,0x69,0x65,0x77])][_0x1332f7([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x1332f7([0x61,0x75,0x74,0x6f]);}function _0x119f8e(){_0x5123df[_0x1332f7([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1332f7([0x76,0x69,0x65,0x77])][_0x1332f7([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x1332f7([0x61,0x75,0x74,0x6f]);}}function _0x27b5c7(_0x135c7a){const _0xfa96b5=[new window[(_0x1332f7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x172202=>setTimeout(_0x172202,0x5356b2f6^_0x74b8d1)),_0xaf9e0[_0x1332f7([0x74,0x68,0x65,0x6e])](()=>new window[(_0x1332f7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4cf194=>{let _0x3ab159=0x0;_0x5123df[_0x1332f7([0x6d,0x6f,0x64,0x65,0x6c])][_0x1332f7([0x6f,0x6e])](_0x1332f7([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x110481,_0x178fa5)=>{_0x178fa5[0x0][_0x1332f7([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x3ab159++,_0x3ab159==(0x535f89d2^_0x74b8d1)&&(_0x4cf194(),_0x110481[_0x1332f7([0x6f,0x66,0x66])]());});}))];return window[_0x1332f7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x1332f7([0x72,0x61,0x63,0x65])](_0xfa96b5)[_0x1332f7([0x74,0x68,0x65,0x6e])](()=>_0x135c7a);}async function _0x4edafa(){await _0xaf9e0,_0x5123df[_0x1332f7([0x6d,0x6f,0x64,0x65,0x6c])][_0x1332f7([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x107a72,_0x5123df[_0x1332f7([0x6d,0x6f,0x64,0x65,0x6c])][_0x1332f7([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x107a72,_0x5123df[_0x1332f7([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x1332f7([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x2ceda6(_0x4c8ae0){const _0x74c9ed=_0x3a7fe9();_0x5123df[_0x74c9ed]=_0x1332f7([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x4c8ae0,_0x4c8ae0!=_0x1332f7([0x56,0x61,0x6c,0x69,0x64])&&_0x4edafa();}function _0x3a7fe9(){const _0x1fd52d=window[_0x1332f7([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x1332f7([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x1332f7([0x6e,0x6f,0x77])]())[_0x1332f7([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x1332f7([0x2e]),'');let _0xcb499c=_0x1332f7([0x68]);for(let _0x123284=0x0;_0x123284<_0x1fd52d[_0x1332f7([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x123284+=0x2){let _0x5f588e=window[_0x1332f7([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1fd52d[_0x1332f7([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x123284,_0x123284+0x2));_0x5f588e>=_0x5b6c5f[_0x1332f7([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x5f588e-=_0x5b6c5f[_0x1332f7([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0xcb499c+=_0x5b6c5f[_0x5f588e];}return _0xcb499c;}function _0x569488(){const _0x1ae079=_0x6f7be1[_0x1332f7([0x73,0x70,0x6c,0x69,0x74])](_0x1332f7([0x2e]));if(0x3!=_0x1ae079[_0x1332f7([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x437e86(_0x1ae079[0x1]);function _0x437e86(_0x596fa1){const _0x55ab45=_0x37dd64(_0x596fa1);return _0x55ab45&&_0x1a9c69()?_0x55ab45:null;function _0x1a9c69(){const _0x394503=_0x55ab45[_0x1332f7([0x6a,0x74,0x69])],_0x2f4a14=window[_0x1332f7([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x394503[_0x1332f7([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x394503[_0x1332f7([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x170f63={..._0x55ab45,[_0x1332f7([0x6a,0x74,0x69])]:_0x394503[_0x1332f7([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x394503[_0x1332f7([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x170f63[_0x1332f7([0x76,0x63])],_0x57dbff(_0x170f63)==_0x2f4a14;}}}async function _0x12d4bb(){let _0x23d236=!0x0;try{const _0x3e6184=_0x6f7be1[_0x1332f7([0x73,0x70,0x6c,0x69,0x74])](_0x1332f7([0x2e])),[_0x258ddb,_0x4e14ed,_0x4c0461]=_0x3e6184;return _0x3dce1e(_0x258ddb),await _0x19957a(_0x258ddb,_0x4e14ed,_0x4c0461),_0x23d236;}catch{return!0x1;}function _0x3dce1e(_0x33542b){const _0x73cea3=_0x37dd64(_0x33542b);_0x73cea3&&_0x73cea3[_0x1332f7([0x61,0x6c,0x67])]==_0x1332f7([0x45,0x53,0x32,0x35,0x36])||(_0x23d236=!0x1);}async function _0x19957a(_0x1de0e2,_0x288264,_0x2668df){const _0x5b3399=window[_0x1332f7([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x1332f7([0x66,0x72,0x6f,0x6d])](_0x4b9e1b(_0x2668df),_0x3eadd0=>_0x3eadd0[_0x1332f7([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x5ef888=new window[(_0x1332f7([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x1332f7([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x1de0e2+_0x1332f7([0x2e])+_0x288264),_0x30c1c1=window[_0x1332f7([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x1332f7([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x30c1c1)return;const _0xff9d77=await _0x30c1c1[_0x1332f7([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x1332f7([0x6a,0x77,0x6b]),_0x44bf39,{[_0x1332f7([0x6e,0x61,0x6d,0x65])]:_0x1332f7([0x45,0x43,0x44,0x53,0x41]),[_0x1332f7([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x1332f7([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x1332f7([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x30c1c1[_0x1332f7([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x1332f7([0x6e,0x61,0x6d,0x65])]:_0x1332f7([0x45,0x43,0x44,0x53,0x41]),[_0x1332f7([0x68,0x61,0x73,0x68])]:{[_0x1332f7([0x6e,0x61,0x6d,0x65])]:_0x1332f7([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0xff9d77,_0x5b3399,_0x5ef888)||(_0x23d236=!0x1);}}function _0x37dd64(_0x3815ed){return _0x3815ed[_0x1332f7([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x1332f7([0x65,0x79]))?JSON[_0x1332f7([0x70,0x61,0x72,0x73,0x65])](_0x4b9e1b(_0x3815ed)):null;}function _0x4b9e1b(_0x519faa){return window[_0x1332f7([0x61,0x74,0x6f,0x62])](_0x519faa[_0x1332f7([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x1332f7([0x2b]))[_0x1332f7([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x1332f7([0x2f])));}function _0x57dbff(_0x345fec){let _0x395fac=0x1505;function _0x1723b1(_0x12665c){for(let _0x395365=0x0;_0x395365<_0x12665c[_0x1332f7([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x395365++){const _0x12453a=_0x12665c[_0x1332f7([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x395365);_0x395fac=(_0x395fac<<0x5)+_0x395fac+_0x12453a,_0x395fac&=_0x395fac;}}function _0x381afe(_0x1cd5ea){Array[_0x1332f7([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x1cd5ea)?_0x1cd5ea[_0x1332f7([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x381afe):_0x1cd5ea&&typeof _0x1cd5ea==_0x1332f7([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x1332f7([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x1cd5ea)[_0x1332f7([0x73,0x6f,0x72,0x74])]()[_0x1332f7([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x1d974f,_0x281dc1])=>{_0x1723b1(_0x1d974f),_0x381afe(_0x281dc1);}):_0x1723b1(window[_0x1332f7([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x1cd5ea));}return _0x381afe(_0x345fec),_0x395fac>>>0x0;}function _0x212cdb(_0x5f3d72){return _0x5f3d72[_0x1332f7([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x1332f7([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x1332f7([0x30]));}function _0x100604(_0x3b1f74){return _0x3b1f74[_0x1332f7([0x73,0x70,0x6c,0x69,0x74])]('')[_0x1332f7([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x1332f7([0x6a,0x6f,0x69,0x6e])]('');}function _0x107a72(){}function _0x1332f7(_0x2039cf){return _0x2039cf['map'](_0x4af289=>String['fromCharCode'](_0x4af289))['join']('');}_0x2ceda6(await _0xf4c437());}(this);}['_initSchema'](){const _0x152816=this['editor']['model']['schema'];_0x152816['isRegistered']('imageBlock')&&_0x152816['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x152816['isRegistered']('imageInline')&&_0x152816['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x46e9a5=this['editor'];_0x46e9a5['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x46e9a5['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x268a37=>_0x268a37['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x4ac3a9=_0x46e9a5['commands']['get']('replaceImageSource');_0x4ac3a9&&this['listenTo'](_0x4ac3a9,'cleanupImage',(_0x49c501,[_0x3597df,_0x1b8d54])=>{_0x3597df['removeAttribute']('uploadcareImageId',_0x1b8d54);});}['_initConfig'](){const _0x5bb30b=this['editor']['config']['get']('uploadcare.uploader')||{},_0xc81da6=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x1d1cba(_0x467307['document'],'uc-config',{..._0x5bb30b,'pubkey':_0xc81da6,'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']=_0x4914d1=>{if('closeMax'==_0x4914d1)return'#uc-icon-arrow-down';},_0x467307['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x1d1cba(_0x467307['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader-'+this['ucContextId']}),_0x467307['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x403468=this['editor']['commands']['get']('insertImage');_0x403468&&this['listenTo'](_0x403468,'execute',()=>{const _0x57460f=this['editor']['model']['document']['selection']['getSelectedElement']();_0x57460f&&_0x57460f['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x57460f);});});const _0x3f498f=this['editor']['commands']['get']('uploadcareImageReplace');_0x3f498f&&this['listenTo'](_0x3f498f,'execute',()=>{const _0xf6e395=this['editor']['model']['document']['selection']['getSelectedElement']();_0xf6e395&&_0xf6e395['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0xf6e395);});});}}class tt extends _0x41de67{static get['requires'](){return[o,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x3c8b8a){super(_0x3c8b8a),_0x3c8b8a['config']['define']('uploadcare.uploader.sourceList',[i['Local'],i['URL']]),_0x2df21c['defineComponents'](_0x2df21c),this['_defineLocale']();}['_defineLocale'](){const _0x337df3=this['editor']['config']['get']('uploadcare.locale'),_0x245dce=this['editor']['locale']['contentLanguage'];_0x337df3&&_0x2df21c['defineLocale'](_0x245dce,_0x337df3);}}class ii extends _0x15083e{constructor(_0x275ec7){super(_0x275ec7);const t=_0x275ec7['t'],_0x5e5ac5=this['bindTemplate'],_0x15c344=new _0x4ba61f();_0x15c344['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':[_0x15c344,{'text':_0x5e5ac5['to']('imageUploadProgress',_0x3250a0=>t('Loading\x20image...')+'\x20('+(_0x3250a0||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 _0x15083e{constructor(_0x236fee){super(_0x236fee);const t=_0x236fee['t'];this['set']('errorType',null);const _0x3b0fc2=new _0x156676(_0x236fee);_0x3b0fc2['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x3b0fc2['withText']=!0x0,_0x3b0fc2['class']='ck-button-action',_0x3b0fc2['on']('execute',()=>{this['fire']('retry');}),_0x3b0fc2['bind']('isVisible')['to'](this,'errorType',_0x2b0df1=>'NotFound'!==_0x2b0df1);const _0x42f52a=new _0x317ea9();_0x42f52a['content']=_0xcf25c4,_0x42f52a['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x3f70ed=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':[_0x42f52a,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x3f70ed['to']('errorType',_0x497058=>t('NotFound'!==_0x497058?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x3b0fc2]},{'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 _0x15083e{constructor(_0x13c1d6,_0x49872c){super(_0x13c1d6);const _0x1cb70f=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x49872c,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x1cb70f['to']('imageSrc')}});}}class X extends F{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x530da7,_0x2bd563,_0x25d5f9){super(_0x530da7),this['_items']=this['createCollection'](),this['_loadingView']=new ii(_0x530da7),this['_errorView']=new ti(_0x530da7),this['_editingView']=new ei(_0x530da7,_0x25d5f9),this['_focusableView']=new _0x15083e(_0x530da7),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x2bd563),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'],_0x525131=>{this['_addUploadcareImageEditorListeners'](_0x525131);});}),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'](_0x18dfb4,_0x1713d3){const _0x554435='uc-cloud-image-editor',_0x1ba179=_0x18dfb4['querySelector'](_0x554435);if(_0x1ba179)return _0x1713d3(_0x1ba179);const _0x5e9762=new MutationObserver(_0x36e7d7=>{const _0x597a1c=_0x36e7d7['filter'](_0x7a0957=>_0x7a0957['target']===_0x18dfb4&&_0x7a0957['addedNodes']['length']>0x0&&_0x7a0957['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x554435);_0x597a1c['length']&&(_0x5e9762['disconnect'](),_0x1713d3(_0x597a1c[0x0]['addedNodes'][0x0]));});_0x5e9762['observe'](_0x18dfb4,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0xdc92e){_0xdc92e['addEventListener']('apply',_0x5cffa8=>{this['fire']('apply',{'imageSrc':_0x5cffa8['detail']['cdnUrl']});}),_0xdc92e['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class N extends/* #__PURE__ -- @preserve */
25
+ _0x18f8fd(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x27a3cb,_0x54dc31,_0x58cc77){super(),this['_editor']=_0x27a3cb,this['_dialog']=_0x54dc31,this['_imageElement']=_0x58cc77,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 _0x26c6b4=this['_imageElement'],_0x322224=_0x26c6b4['getAttribute']('uploadcareImageId'),_0x489ef5=_0x26c6b4['getAttribute']('src');if(_0x322224)await this['_loadImageInfo'](_0x322224,_0x489ef5);else{if(this['_imageCache']['has'](_0x489ef5)){const _0x25de36=this['_imageCache']['get'](_0x489ef5);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x25de36['url'],this['imageDimension']=_0x25de36['dimension'],this['imageId']=_0x25de36['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x5f85fd}=this['_editor'],t=_0x5f85fd['t'],_0x228bc9=new X(_0x5f85fd,this['imageStatus'],this['_attributes']);_0x228bc9['bind']('status')['to'](this,'imageStatus'),_0x228bc9['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x228bc9['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x228bc9['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x228bc9,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x18b5b9,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x228bc9,'position':_0x1e43bb['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x228bc9['focus']();},'onHide':()=>{_0x228bc9['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x54363a=>!A(_0x54363a,_0x228bc9['element'])}});}['_loadImageInfo'](_0x2009e5,_0x79020e){return j['getInfo'](_0x2009e5,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl')})['then'](_0x36709d=>{const {width:_0x2ecb1b,height:_0x1bc26b}=_0x36709d['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x79020e,this['imageDimension']={'width':_0x2ecb1b,'height':_0x1bc26b},this['imageId']=_0x2009e5;})['catch'](_0x257a68=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x257a68['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x1abc6b,_0x244428){return this['_getImageAsFile'](_0x1abc6b)['then'](_0x58ea94=>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':_0x244428['signal'],'file':_0x58ea94,'onProgress':_0x550e90=>{_0x550e90&&_0x550e90['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x550e90['value']));}}))['then'](_0x48ef53=>{const {width:_0x474544,height:_0x2cb09f}=_0x48ef53['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x48ef53['cdnUrl'],this['imageDimension']={'width':_0x474544,'height':_0x2cb09f},this['imageId']=_0x48ef53['uuid'],this['imageUploadProgress']=null;const _0x3b392a=_0x1abc6b['getAttribute']('src');this['_imageCache']['set'](_0x3b392a,{'id':_0x48ef53['uuid'],'url':_0x48ef53['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x4ba1f0=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x4ba1f0['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x551ad9,_0x371150){_0x551ad9['on']('apply',(_0xbd4ba3,_0x2394f8)=>{this['_replaceImage'](_0x371150,_0x2394f8['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x551ad9['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x551ad9['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x1e52ee,_0x107987,_0x41b483){const _0x4544a4=this['_editor'],{width:_0x7c8fd2,height:_0x54e17f}=S(_0x107987,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x216bf5,imageSources:_0x4507c5}=C(_0x107987,_0x7c8fd2);_0x4544a4['model']['change'](_0xb20ba9=>{if('$graveyard'===_0x1e52ee['root']['rootName']){_0x4544a4['execute']('insertImage',{'imageType':_0x1e52ee['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x1e52ee['getAttributes']()),'uploadcareImageId':_0x41b483,'src':_0x216bf5,'sources':_0x4507c5,'width':_0x7c8fd2,'height':_0x54e17f}});const _0x420cda=_0x1e52ee['getChildren']();_0x1e52ee=_0x4544a4['model']['document']['selection']['getSelectedElement']();for(const _0xcf7a40 of _0x420cda)_0xb20ba9['append'](_0xb20ba9['cloneElement'](_0xcf7a40),_0x1e52ee);}else _0xb20ba9['setSelection'](_0x1e52ee,'on'),_0x4544a4['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x1e52ee['getAttributes']()),'uploadcareImageId':_0x41b483,'src':_0x216bf5,'sources':_0x4507c5,'width':_0x7c8fd2,'height':_0x54e17f},_0x1e52ee);_0xb20ba9['setSelection'](_0x1e52ee,'on');});}async['_getImageAsFile'](_0x43a02d){const _0x228868=_0x467307['window'],_0x598f0b=_0x467307['document']['location']['href'],_0x591237=new _0x228868['URL'](_0x43a02d['getAttribute']('src'),_0x598f0b);if('data:'===_0x591237['protocol']){const _0x11026d=_0x591237['href']['split'](','),_0x248c87=_0x11026d[0x0]['match'](/:(.*?);/)[0x1],_0x4e8b1e=_0x248c87['split']('/')[0x1],_0x19cf61=_0x228868['atob'](_0x11026d[_0x11026d['length']-0x1]);let _0x59fddb=_0x19cf61['length'];const _0x4a60ea=new _0x228868['Uint8Array'](_0x59fddb);for(;_0x59fddb--;)_0x4a60ea[_0x59fddb]=_0x19cf61['charCodeAt'](_0x59fddb);return new _0x228868['File']([_0x4a60ea],'image.'+_0x4e8b1e,{'type':_0x248c87});}const _0x44f2fe=_0x591237['href']['split']('/'),_0x517a3f=_0x44f2fe[_0x44f2fe['length']-0x1],_0x45f39c=_0x517a3f['split']('.')[0x1];return _0x228868['fetch'](_0x591237['href'])['then'](_0x56e550=>_0x56e550['clone']()['blob']())['then'](_0x5d32c7=>new _0x228868['File']([_0x5d32c7],_0x517a3f,{'type':'image/'+_0x45f39c}));}}class Q extends _0x174483{['imageEditController'];static get['requires'](){return[_0x31ce98];}['_isEditable'];constructor(_0x181f70){super(_0x181f70),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x5e004b){const _0xed3591=z(_0x5e004b);return _0x40cf24=>!(!_0x40cf24||!_0x40cf24['is']('element','imageBlock')&&!_0x40cf24['is']('element','imageInline'))&&(!!_0x40cf24['hasAttribute']('uploadcareImageId')||!!_0x40cf24['hasAttribute']('src')&&_0xed3591(_0x40cf24['getAttribute']('src')));}(_0x181f70['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x2362bc=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x2362bc);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x52d0ed=this['editor']['model']['document']['selection']['getSelectedElement']();_0x52d0ed&&(_0x52d0ed['is']('element','imageBlock')||_0x52d0ed['is']('element','imageInline'))&&(this['imageEditController']=new N(this['editor'],this['editor']['plugins']['get'](_0x31ce98),_0x52d0ed),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class V extends _0x174483{['refresh'](){const _0x32ee3e=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x32ee3e&&(_0x32ee3e['is']('element','imageBlock')||_0x32ee3e['is']('element','imageInline')));}['execute'](_0x26e214){const _0x438c73=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x23aa79=>{_0x23aa79['setAttributes'](_0x26e214,_0x438c73),_0x23aa79['removeAttribute']('srcset',_0x438c73),_0x23aa79['removeAttribute']('sizes',_0x438c73);});}}class m extends _0x41de67{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[o,_0x2defa5,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x2aef7a}=this;_0x2aef7a['commands']['add']('uploadcareImageEdit',new Q(_0x2aef7a)),_0x2aef7a['commands']['add']('uploadcareImageReplace',new V(_0x2aef7a));}}class g extends _0x41de67{['_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 _0xe0ad00=this['editor'];_0xe0ad00['ui']['componentFactory']['add']('uploadcareImageEdit',_0xa96adc=>{const _0x5efd8c=_0xe0ad00['commands']['get']('uploadcareImageEdit'),_0x21e2e3=new _0x156676(_0xa96adc),t=_0xa96adc['t'];return _0x21e2e3['set']({'icon':_0x18b5b9,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x21e2e3['bind']('isEnabled')['to'](_0x5efd8c),_0x21e2e3['bind']('isOn')['to'](_0x5efd8c,'isActive'),this['listenTo'](_0x21e2e3,'execute',()=>{_0xe0ad00['execute']('uploadcareImageEdit'),_0xe0ad00['editing']['view']['focus']();}),_0x21e2e3;}),this['_initConfig']();}['_initConfig'](){const _0x1f17f5=_0x1d1cba(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x1f17f5),this['listenTo'](this['editor'],'destroy',()=>{_0x1f17f5['remove']();});}}class et extends _0x41de67{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-20251225.0",
3
+ "version": "0.0.0-nightly-20251226.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-20251225.0",
27
- "@ckeditor/ckeditor5-icons": "0.0.0-nightly-20251225.0",
28
- "@ckeditor/ckeditor5-image": "0.0.0-nightly-20251225.0",
29
- "@ckeditor/ckeditor5-theme-lark": "0.0.0-nightly-20251225.0",
30
- "@ckeditor/ckeditor5-ui": "0.0.0-nightly-20251225.0",
31
- "@ckeditor/ckeditor5-upload": "0.0.0-nightly-20251225.0",
32
- "@ckeditor/ckeditor5-utils": "0.0.0-nightly-20251225.0",
33
- "ckeditor5": "0.0.0-nightly-20251225.0",
26
+ "@ckeditor/ckeditor5-core": "0.0.0-nightly-20251226.0",
27
+ "@ckeditor/ckeditor5-icons": "0.0.0-nightly-20251226.0",
28
+ "@ckeditor/ckeditor5-image": "0.0.0-nightly-20251226.0",
29
+ "@ckeditor/ckeditor5-theme-lark": "0.0.0-nightly-20251226.0",
30
+ "@ckeditor/ckeditor5-ui": "0.0.0-nightly-20251226.0",
31
+ "@ckeditor/ckeditor5-upload": "0.0.0-nightly-20251226.0",
32
+ "@ckeditor/ckeditor5-utils": "0.0.0-nightly-20251226.0",
33
+ "ckeditor5": "0.0.0-nightly-20251226.0",
34
34
  "@uploadcare/file-uploader": "1.24.5",
35
35
  "@uploadcare/upload-client": "6.14.3"
36
36
  },
@@ -20,5 +20,5 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x1b8c0c=_0x7581;function _0x7581(_0x2b6a49,_0x3ae2bb){const _0x30b30a=_0x30b3();return _0x7581=function(_0x75812a,_0x543654){_0x75812a=_0x75812a-0x145;let _0x223766=_0x30b30a[_0x75812a];return _0x223766;},_0x7581(_0x2b6a49,_0x3ae2bb);}(function(_0x251de7,_0x36673){const _0x3f3e67=_0x7581,_0x554ad8=_0x251de7();while(!![]){try{const _0x91f616=parseInt(_0x3f3e67(0x16c))/0x1+-parseInt(_0x3f3e67(0x15a))/0x2*(parseInt(_0x3f3e67(0x149))/0x3)+parseInt(_0x3f3e67(0x189))/0x4+parseInt(_0x3f3e67(0x17c))/0x5+parseInt(_0x3f3e67(0x14a))/0x6+parseInt(_0x3f3e67(0x14c))/0x7+-parseInt(_0x3f3e67(0x167))/0x8*(parseInt(_0x3f3e67(0x16d))/0x9);if(_0x91f616===_0x36673)break;else _0x554ad8['push'](_0x554ad8['shift']());}catch(_0xbaf532){_0x554ad8['push'](_0x554ad8['shift']());}}}(_0x30b3,0x8d9d8));import{IconUploadcareImageUpload as _0x568162}from'ckeditor5/src/icons.js';import{ObservableMixin as _0xf7206e}from'ckeditor5/src/utils.js';import{Dialog as _0x590bcd,DialogViewPosition as _0x13cef1}from'ckeditor5/src/ui.js';function _0x30b3(){const _0x46b45c=['ctxElement','1295712TrPKea','_type','Insert','_initDialog','getLastPosition','imageInfo','destroy','document','length','423gLqtft','4404882eylPsy','imageBlock','2371607VdFNRz','editing','doneFlow','text','allEntries','_editor','width','isOpen','show','stopDelegating','focus','Replace','view','uuid','15184jfaOEO','getOutputCollectionState','selection','removeSelectionAttribute','_initListeners','_formView','removeAllFiles','detail','idle','_api','change','EDITOR_TOP_CENTER','model','8waJsmS','insertImage','setSelection','configElement','get','977601FrPhdG','11644191DHASGe','getSelectedElement','addEventListener','_editing','status','getAPI','initFlow','linkHref','execute','attributes','ucContextId','_insertAsset','_insertImage','uploadCare','setAttribute','2849250SyNDFp','setCurrentActivity','done-click','hide','_dialog','plugins','image','element','Local','imageInline','stopListening','source-list'];_0x30b3=function(){return _0x46b45c;};return _0x30b3();}import{UploadcareFormView as _0x3013fb}from'./uploadcareformview.js';import{UploadcareSource as _0x15597e}from'../uploadcareconfig.js';import{getTranslation as _0x30bdf7}from'../utils/common-translations.js';import{getImageUrls as _0x2e0e4,getImageDimension as _0x36bb26}from'../utils/editingutils.js';import{isAncestor as _0x657efa}from'../utils/isancestor.js';export class UploadcareController extends/* #__PURE__ -- @preserve */
24
- _0xf7206e(){[_0x1b8c0c(0x151)];[_0x1b8c0c(0x180)];[_0x1b8c0c(0x170)];[_0x1b8c0c(0x163)];[_0x1b8c0c(0x18a)]=null;[_0x1b8c0c(0x15f)]=null;constructor(_0x5ab12c,_0x40eb9a,_0x39faa2){const _0x3002cd=_0x1b8c0c;super(),this[_0x3002cd(0x151)]=_0x5ab12c,this[_0x3002cd(0x170)]=_0x40eb9a,this[_0x3002cd(0x180)]=_0x5ab12c[_0x3002cd(0x181)][_0x3002cd(0x16b)](_0x590bcd),this[_0x3002cd(0x163)]=_0x40eb9a[_0x3002cd(0x188)][_0x3002cd(0x172)](),this[_0x3002cd(0x18a)]=_0x39faa2,this[_0x3002cd(0x170)][_0x3002cd(0x16a)][_0x3002cd(0x17b)](_0x3002cd(0x187),this[_0x3002cd(0x18a)]),this[_0x3002cd(0x18c)](),this[_0x3002cd(0x15e)](),this[_0x3002cd(0x163)][_0x3002cd(0x173)]();}[_0x1b8c0c(0x146)](){const _0x3b3fe0=_0x1b8c0c;this[_0x3b3fe0(0x15f)]&&(this[_0x3b3fe0(0x15f)][_0x3b3fe0(0x146)](),this[_0x3b3fe0(0x15f)]=null),this[_0x3b3fe0(0x163)]&&this[_0x3b3fe0(0x163)][_0x3b3fe0(0x14e)](),this[_0x3b3fe0(0x186)](),this[_0x3b3fe0(0x155)]();}[_0x1b8c0c(0x18c)](){const _0x2e64bd=_0x1b8c0c,{locale:_0x29a12d,model:_0x23d519}=this[_0x2e64bd(0x151)],_0x2e41a1=_0x23d519[_0x2e64bd(0x147)][_0x2e64bd(0x15c)][_0x2e64bd(0x16e)](),_0x5754cd=_0x2e41a1&&(_0x2e41a1['is'](_0x2e64bd(0x183),_0x2e64bd(0x14b))||_0x2e41a1['is'](_0x2e64bd(0x183),_0x2e64bd(0x185)));this[_0x2e64bd(0x15f)]=new _0x3013fb(_0x29a12d,this[_0x2e64bd(0x170)][_0x2e64bd(0x177)]),this[_0x2e64bd(0x180)][_0x2e64bd(0x154)]({'id':_0x2e64bd(0x17a),'icon':_0x568162,'title':_0x30bdf7(_0x29a12d,this[_0x2e64bd(0x18a)],_0x5754cd?_0x2e64bd(0x157):_0x2e64bd(0x18b))[_0x2e64bd(0x14f)],'content':this[_0x2e64bd(0x15f)],'position':_0x13cef1[_0x2e64bd(0x165)],'isModal':!0x0,'onShow':()=>{const _0x112296=_0x2e64bd;this[_0x112296(0x15f)][_0x112296(0x156)]();},'onHide':()=>{const _0x957b98=_0x2e64bd;this[_0x957b98(0x163)][_0x957b98(0x160)](),this[_0x957b98(0x151)][_0x957b98(0x14d)][_0x957b98(0x158)][_0x957b98(0x156)](),this[_0x957b98(0x146)]();},'keystrokeHandlerOptions':{'filter':_0x1162b7=>!_0x657efa(_0x1162b7,this[_0x2e64bd(0x15f)][_0x2e64bd(0x183)])}});}[_0x1b8c0c(0x15e)](){const _0x4dda89=_0x1b8c0c;this[_0x4dda89(0x170)][_0x4dda89(0x188)][_0x4dda89(0x16f)](_0x4dda89(0x17e),()=>{const _0x4c0b79=_0x4dda89,{allEntries:_0x404888}=this[_0x4c0b79(0x163)][_0x4c0b79(0x15b)]();this[_0x4c0b79(0x151)][_0x4c0b79(0x166)][_0x4c0b79(0x164)](_0x3a3e79=>{const _0x33f239=_0x4c0b79,_0x1d7277=_0x404888[_0x33f239(0x148)];for(const _0x538606 of _0x404888){const _0x3c4b60=_0x538606===_0x404888[_0x1d7277-0x1],{cdnUrl:_0x43a6e0,fileInfo:_0x5bf1e2}=_0x538606;if(!_0x43a6e0||!_0x5bf1e2)continue;const {width:_0x13cc9e,height:_0x275982}=_0x5bf1e2[_0x33f239(0x145)],_0x18018c=_0x36bb26(_0x43a6e0,_0x13cc9e,_0x275982),_0x3db3e8=_0x2e0e4(_0x43a6e0,_0x18018c[_0x33f239(0x152)]),_0x3c7de7={'id':_0x5bf1e2[_0x33f239(0x159)],'type':_0x33f239(0x182),'attributes':{'imageDimension':_0x18018c,..._0x3db3e8}};this[_0x33f239(0x178)](_0x3c7de7,_0x3c4b60,_0x3a3e79);}}),this[_0x4c0b79(0x180)][_0x4c0b79(0x17f)]();}),this[_0x4dda89(0x170)][_0x4dda89(0x188)][_0x4dda89(0x16f)](_0x4dda89(0x164),_0x4daa47=>{const _0x27b6f1=_0x4dda89;_0x27b6f1(0x162)===_0x4daa47[_0x27b6f1(0x161)][_0x27b6f1(0x171)]&&!_0x4daa47[_0x27b6f1(0x161)][_0x27b6f1(0x150)][_0x27b6f1(0x148)]&&this[_0x27b6f1(0x180)][_0x27b6f1(0x153)]&&(this[_0x27b6f1(0x18a)]===_0x15597e[_0x27b6f1(0x184)]?this[_0x27b6f1(0x163)][_0x27b6f1(0x17d)](_0x15597e[_0x27b6f1(0x184)]):this[_0x27b6f1(0x163)][_0x27b6f1(0x173)]());});}[_0x1b8c0c(0x178)](_0x4c131b,_0x2b16ab,_0x2980d8){const _0x14e537=_0x1b8c0c,_0x29ad29=this[_0x14e537(0x151)][_0x14e537(0x166)][_0x14e537(0x147)][_0x14e537(0x15c)],_0x373584=_0x29ad29[_0x14e537(0x16e)](),_0x36c92a=!(!_0x373584||!_0x373584['is'](_0x14e537(0x183),_0x14e537(0x185)));_0x2980d8[_0x14e537(0x15d)](_0x14e537(0x174)),this[_0x14e537(0x179)](_0x4c131b,_0x36c92a),_0x2b16ab||_0x2980d8[_0x14e537(0x169)](_0x29ad29[_0x14e537(0x18d)]());}[_0x1b8c0c(0x179)](_0x26d05e,_0x2f6632){const _0x2e4d1d=_0x1b8c0c,_0x24be18=this[_0x2e4d1d(0x151)],{imageDimension:_0x164cc9,imageFallbackUrl:_0x1dc065,imageSources:_0x44c340}=_0x26d05e[_0x2e4d1d(0x176)];_0x24be18[_0x2e4d1d(0x175)](_0x2e4d1d(0x168),{'imageType':_0x2f6632?_0x2e4d1d(0x185):null,'source':{'uploadcareImageId':_0x26d05e['id'],'src':_0x1dc065,'sources':_0x44c340,..._0x164cc9}});}}
23
+ const _0x6c1376=_0x1b67;(function(_0x4fc98d,_0x48a965){const _0x5a4919=_0x1b67,_0x384cc6=_0x4fc98d();while(!![]){try{const _0x567206=-parseInt(_0x5a4919(0x16d))/0x1+parseInt(_0x5a4919(0x15e))/0x2+parseInt(_0x5a4919(0x161))/0x3*(parseInt(_0x5a4919(0x14f))/0x4)+-parseInt(_0x5a4919(0x188))/0x5*(parseInt(_0x5a4919(0x186))/0x6)+-parseInt(_0x5a4919(0x154))/0x7*(-parseInt(_0x5a4919(0x151))/0x8)+parseInt(_0x5a4919(0x150))/0x9+-parseInt(_0x5a4919(0x14d))/0xa;if(_0x567206===_0x48a965)break;else _0x384cc6['push'](_0x384cc6['shift']());}catch(_0x50ae92){_0x384cc6['push'](_0x384cc6['shift']());}}}(_0x1f6b,0x1ff13));import{IconUploadcareImageUpload as _0x4b882e}from'ckeditor5/src/icons.js';import{ObservableMixin as _0x13d99}from'ckeditor5/src/utils.js';function _0x1f6b(){const _0x4e85f9=['uuid','allEntries','ucContextId','element','_dialog','view','width','_insertAsset','editing','_type','removeSelectionAttribute','focus','text','imageInfo','linkHref','isOpen','stopDelegating','getSelectedElement','change','imageInline','getOutputCollectionState','627672dlknvq','setSelection','5yDpsKV','imageBlock','model','show','_insertImage','removeAllFiles','setAttribute','_api','_initListeners','_editing','setCurrentActivity','destroy','detail','get','hide','3070690ewrrgG','image','3092QdwFDC','1552032afXkjk','80sXOlpA','_editor','length','99309VcbNhL','configElement','initFlow','insertImage','EDITOR_TOP_CENTER','getLastPosition','getAPI','_initDialog','doneFlow','execute','70228BTTofx','document','stopListening','993eSGuVD','selection','Replace','idle','source-list','addEventListener','ctxElement','plugins','done-click','uploadCare','Local','status','62779xGBiVH','Insert','_formView','attributes'];_0x1f6b=function(){return _0x4e85f9;};return _0x1f6b();}import{Dialog as _0x126edd,DialogViewPosition as _0x3cdcb4}from'ckeditor5/src/ui.js';import{UploadcareFormView as _0x1f84e9}from'./uploadcareformview.js';import{UploadcareSource as _0x1a7e88}from'../uploadcareconfig.js';import{getTranslation as _0x5d03ec}from'../utils/common-translations.js';function _0x1b67(_0x441cd3,_0x5ee998){const _0x1f6bac=_0x1f6b();return _0x1b67=function(_0x1b67c1,_0x3a1428){_0x1b67c1=_0x1b67c1-0x149;let _0x3382cd=_0x1f6bac[_0x1b67c1];return _0x3382cd;},_0x1b67(_0x441cd3,_0x5ee998);}import{getImageUrls as _0x11ac21,getImageDimension as _0x32fe67}from'../utils/editingutils.js';import{isAncestor as _0x52db1f}from'../utils/isancestor.js';export class UploadcareController extends/* #__PURE__ -- @preserve */
24
+ _0x13d99(){[_0x6c1376(0x152)];[_0x6c1376(0x175)];[_0x6c1376(0x191)];[_0x6c1376(0x18f)];[_0x6c1376(0x17a)]=null;[_0x6c1376(0x16f)]=null;constructor(_0x56be1f,_0x2a32d0,_0x52588c){const _0x153af5=_0x6c1376;super(),this[_0x153af5(0x152)]=_0x56be1f,this[_0x153af5(0x191)]=_0x2a32d0,this[_0x153af5(0x175)]=_0x56be1f[_0x153af5(0x168)][_0x153af5(0x14b)](_0x126edd),this[_0x153af5(0x18f)]=_0x2a32d0[_0x153af5(0x167)][_0x153af5(0x15a)](),this[_0x153af5(0x17a)]=_0x52588c,this[_0x153af5(0x191)][_0x153af5(0x155)][_0x153af5(0x18e)](_0x153af5(0x165),this[_0x153af5(0x17a)]),this[_0x153af5(0x15b)](),this[_0x153af5(0x190)](),this[_0x153af5(0x18f)][_0x153af5(0x156)]();}[_0x6c1376(0x149)](){const _0x4224d9=_0x6c1376;this[_0x4224d9(0x16f)]&&(this[_0x4224d9(0x16f)][_0x4224d9(0x149)](),this[_0x4224d9(0x16f)]=null),this[_0x4224d9(0x18f)]&&this[_0x4224d9(0x18f)][_0x4224d9(0x15c)](),this[_0x4224d9(0x160)](),this[_0x4224d9(0x181)]();}[_0x6c1376(0x15b)](){const _0x252754=_0x6c1376,{locale:_0x11a2a3,model:_0xccc7ff}=this[_0x252754(0x152)],_0x52db47=_0xccc7ff[_0x252754(0x15f)][_0x252754(0x162)][_0x252754(0x182)](),_0x3ae8de=_0x52db47&&(_0x52db47['is'](_0x252754(0x174),_0x252754(0x189))||_0x52db47['is'](_0x252754(0x174),_0x252754(0x184)));this[_0x252754(0x16f)]=new _0x1f84e9(_0x11a2a3,this[_0x252754(0x191)][_0x252754(0x173)]),this[_0x252754(0x175)][_0x252754(0x18b)]({'id':_0x252754(0x16a),'icon':_0x4b882e,'title':_0x5d03ec(_0x11a2a3,this[_0x252754(0x17a)],_0x3ae8de?_0x252754(0x163):_0x252754(0x16e))[_0x252754(0x17d)],'content':this[_0x252754(0x16f)],'position':_0x3cdcb4[_0x252754(0x158)],'isModal':!0x0,'onShow':()=>{const _0x3503d5=_0x252754;this[_0x3503d5(0x16f)][_0x3503d5(0x17c)]();},'onHide':()=>{const _0x4099e3=_0x252754;this[_0x4099e3(0x18f)][_0x4099e3(0x18d)](),this[_0x4099e3(0x152)][_0x4099e3(0x179)][_0x4099e3(0x176)][_0x4099e3(0x17c)](),this[_0x4099e3(0x149)]();},'keystrokeHandlerOptions':{'filter':_0xc72d7c=>!_0x52db1f(_0xc72d7c,this[_0x252754(0x16f)][_0x252754(0x174)])}});}[_0x6c1376(0x190)](){const _0x1d9597=_0x6c1376;this[_0x1d9597(0x191)][_0x1d9597(0x167)][_0x1d9597(0x166)](_0x1d9597(0x169),()=>{const _0x30229e=_0x1d9597,{allEntries:_0x4bb6fd}=this[_0x30229e(0x18f)][_0x30229e(0x185)]();this[_0x30229e(0x152)][_0x30229e(0x18a)][_0x30229e(0x183)](_0x37501d=>{const _0x2a758b=_0x30229e,_0x5de8ef=_0x4bb6fd[_0x2a758b(0x153)];for(const _0x49aa04 of _0x4bb6fd){const _0x1ad371=_0x49aa04===_0x4bb6fd[_0x5de8ef-0x1],{cdnUrl:_0x2755c6,fileInfo:_0x896ff8}=_0x49aa04;if(!_0x2755c6||!_0x896ff8)continue;const {width:_0x271f07,height:_0x225a86}=_0x896ff8[_0x2a758b(0x17e)],_0x3b9b7a=_0x32fe67(_0x2755c6,_0x271f07,_0x225a86),_0x243760=_0x11ac21(_0x2755c6,_0x3b9b7a[_0x2a758b(0x177)]),_0x3485dd={'id':_0x896ff8[_0x2a758b(0x171)],'type':_0x2a758b(0x14e),'attributes':{'imageDimension':_0x3b9b7a,..._0x243760}};this[_0x2a758b(0x178)](_0x3485dd,_0x1ad371,_0x37501d);}}),this[_0x30229e(0x175)][_0x30229e(0x14c)]();}),this[_0x1d9597(0x191)][_0x1d9597(0x167)][_0x1d9597(0x166)](_0x1d9597(0x183),_0x527c6c=>{const _0x3a157b=_0x1d9597;_0x3a157b(0x164)===_0x527c6c[_0x3a157b(0x14a)][_0x3a157b(0x16c)]&&!_0x527c6c[_0x3a157b(0x14a)][_0x3a157b(0x172)][_0x3a157b(0x153)]&&this[_0x3a157b(0x175)][_0x3a157b(0x180)]&&(this[_0x3a157b(0x17a)]===_0x1a7e88[_0x3a157b(0x16b)]?this[_0x3a157b(0x18f)][_0x3a157b(0x192)](_0x1a7e88[_0x3a157b(0x16b)]):this[_0x3a157b(0x18f)][_0x3a157b(0x156)]());});}[_0x6c1376(0x178)](_0xe71e78,_0x3f2a42,_0x3972bb){const _0x1d0280=_0x6c1376,_0x3c42b7=this[_0x1d0280(0x152)][_0x1d0280(0x18a)][_0x1d0280(0x15f)][_0x1d0280(0x162)],_0x2be0f6=_0x3c42b7[_0x1d0280(0x182)](),_0x4d1817=!(!_0x2be0f6||!_0x2be0f6['is'](_0x1d0280(0x174),_0x1d0280(0x184)));_0x3972bb[_0x1d0280(0x17b)](_0x1d0280(0x17f)),this[_0x1d0280(0x18c)](_0xe71e78,_0x4d1817),_0x3f2a42||_0x3972bb[_0x1d0280(0x187)](_0x3c42b7[_0x1d0280(0x159)]());}[_0x6c1376(0x18c)](_0x5de883,_0xcf524){const _0x39c01c=_0x6c1376,_0x122279=this[_0x39c01c(0x152)],{imageDimension:_0x75f199,imageFallbackUrl:_0x263de9,imageSources:_0x477c33}=_0x5de883[_0x39c01c(0x170)];_0x122279[_0x39c01c(0x15d)](_0x39c01c(0x157),{'imageType':_0xcf524?_0x39c01c(0x184):null,'source':{'uploadcareImageId':_0x5de883['id'],'src':_0x263de9,'sources':_0x477c33,..._0x75f199}});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0x4e8b59=_0x265e;(function(_0x5a32a6,_0x4a9fc3){var _0x1b9c20=_0x265e,_0x48bc4a=_0x5a32a6();while(!![]){try{var _0x2bec9b=parseInt(_0x1b9c20(0x7f))/0x1+-parseInt(_0x1b9c20(0x7b))/0x2*(-parseInt(_0x1b9c20(0x75))/0x3)+-parseInt(_0x1b9c20(0x81))/0x4*(-parseInt(_0x1b9c20(0x73))/0x5)+-parseInt(_0x1b9c20(0x83))/0x6*(parseInt(_0x1b9c20(0x76))/0x7)+-parseInt(_0x1b9c20(0x7c))/0x8*(-parseInt(_0x1b9c20(0x7d))/0x9)+-parseInt(_0x1b9c20(0x72))/0xa*(parseInt(_0x1b9c20(0x74))/0xb)+-parseInt(_0x1b9c20(0x79))/0xc;if(_0x2bec9b===_0x4a9fc3)break;else _0x48bc4a['push'](_0x48bc4a['shift']());}catch(_0x300ef0){_0x48bc4a['push'](_0x48bc4a['shift']());}}}(_0x35c2,0xc4f00));function _0x265e(_0x31e726,_0x4b0ac2){var _0x35c235=_0x35c2();return _0x265e=function(_0x265eb5,_0x1b9875){_0x265eb5=_0x265eb5-0x6f;var _0x5befb9=_0x35c235[_0x265eb5];return _0x5befb9;},_0x265e(_0x31e726,_0x4b0ac2);}function _0x35c2(){var _0x43bd3a=['184GSTkzF','uc-light','1580088ZFYsCq','focus','element','uc-file-uploader-inline','ck-uploadcare-form','getFocusableElement','64090NfIuEF','121650VvyAbC','2497xnzTkZ','21PDVlMT','21ifyYzf','ck-uploadcare-theme','setTemplate','10401252JMVQMX','uploader-','107698RQUFeO','16Srhpwt','6125013hDqbKy','div','1061077EmULuy','ck-reset_all-excluded'];_0x35c2=function(){return _0x43bd3a;};return _0x35c2();}import{DialogFocusManagerView as _0x26a37c}from'../utils/dialogfocusmanagerview.js';import'../../theme/uploadcare-form.css';export class UploadcareFormView extends _0x26a37c{constructor(_0x1918bb,_0x15be7d){var _0x2b3666=_0x265e;super(_0x1918bb),this[_0x2b3666(0x78)]({'tag':_0x2b3666(0x7e),'attributes':{'class':['ck',_0x2b3666(0x80),_0x2b3666(0x70)],'tabindex':'-1'},'children':[{'tag':_0x2b3666(0x6f),'attributes':{'class':[_0x2b3666(0x82),_0x2b3666(0x77)],'ctx-name':_0x2b3666(0x7a)+_0x15be7d}},this[_0x2b3666(0x71)]()]});}[_0x4e8b59(0x84)](){var _0x3f3bc3=_0x4e8b59;this[_0x3f3bc3(0x85)][_0x3f3bc3(0x84)]();}}
23
+ var _0x35ee16=_0x3330;(function(_0x2889e9,_0x30cfa8){var _0x5cea02=_0x3330,_0x58a079=_0x2889e9();while(!![]){try{var _0x1d9bae=parseInt(_0x5cea02(0xb6))/0x1+-parseInt(_0x5cea02(0xb1))/0x2*(parseInt(_0x5cea02(0xae))/0x3)+-parseInt(_0x5cea02(0xac))/0x4+parseInt(_0x5cea02(0xaf))/0x5*(-parseInt(_0x5cea02(0xbe))/0x6)+parseInt(_0x5cea02(0xab))/0x7+parseInt(_0x5cea02(0xb8))/0x8*(-parseInt(_0x5cea02(0xb4))/0x9)+-parseInt(_0x5cea02(0xad))/0xa*(-parseInt(_0x5cea02(0xb9))/0xb);if(_0x1d9bae===_0x30cfa8)break;else _0x58a079['push'](_0x58a079['shift']());}catch(_0x15cfbb){_0x58a079['push'](_0x58a079['shift']());}}}(_0x3c2f,0x18c34));import{DialogFocusManagerView as _0x5a72ab}from'../utils/dialogfocusmanagerview.js';import'../../theme/uploadcare-form.css';function _0x3c2f(){var _0x25ae13=['3883Nioowk','div','ck-uploadcare-form','uc-light','ck-uploadcare-theme','9312xSjhTh','setTemplate','getFocusableElement','29813ocsooN','776840WFLLzQ','17290stPdBT','6543LSSicO','485YUckPU','focus','144izckuR','uploader-','uc-file-uploader-inline','303021DDvdNp','element','55956MVIjam','ck-reset_all-excluded','16JSJNON'];_0x3c2f=function(){return _0x25ae13;};return _0x3c2f();}function _0x3330(_0x22aac2,_0x5f08a2){var _0x3c2f2f=_0x3c2f();return _0x3330=function(_0x333062,_0x1e1a3e){_0x333062=_0x333062-0xaa;var _0x388e45=_0x3c2f2f[_0x333062];return _0x388e45;},_0x3330(_0x22aac2,_0x5f08a2);}export class UploadcareFormView extends _0x5a72ab{constructor(_0xfa556e,_0x99c503){var _0x517a2f=_0x3330;super(_0xfa556e),this[_0x517a2f(0xbf)]({'tag':_0x517a2f(0xba),'attributes':{'class':['ck',_0x517a2f(0xb7),_0x517a2f(0xbb)],'tabindex':'-1'},'children':[{'tag':_0x517a2f(0xb3),'attributes':{'class':[_0x517a2f(0xbc),_0x517a2f(0xbd)],'ctx-name':_0x517a2f(0xb2)+_0x99c503}},this[_0x517a2f(0xaa)]()]});}[_0x35ee16(0xb0)](){var _0x20612f=_0x35ee16;this[_0x20612f(0xb5)][_0x20612f(0xb0)]();}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x167dca=_0x2997;(function(_0x4d76ba,_0x3be75d){const _0x3ff089=_0x2997,_0x587d75=_0x4d76ba();while(!![]){try{const _0x27e9bf=parseInt(_0x3ff089(0x203))/0x1+parseInt(_0x3ff089(0x1de))/0x2+parseInt(_0x3ff089(0x1ce))/0x3+-parseInt(_0x3ff089(0x1f5))/0x4+parseInt(_0x3ff089(0x213))/0x5*(parseInt(_0x3ff089(0x1f2))/0x6)+parseInt(_0x3ff089(0x1eb))/0x7*(parseInt(_0x3ff089(0x200))/0x8)+parseInt(_0x3ff089(0x1d9))/0x9*(-parseInt(_0x3ff089(0x1f3))/0xa);if(_0x27e9bf===_0x3be75d)break;else _0x587d75['push'](_0x587d75['shift']());}catch(_0x123c0e){_0x587d75['push'](_0x587d75['shift']());}}}(_0xa3f2,0x8831c));import{Plugin as _0x4505e1}from'ckeditor5/src/core.js';import{Dialog as _0x182444}from'ckeditor5/src/ui.js';import{createElement as _0x793ead,global as _0x23f10b,uid as _0x4d2469}from'ckeditor5/src/utils.js';function _0xa3f2(){const _0x563923=['true','UploadcareEditing','uc-upload-ctx-provider','uc-config','iconHrefResolver','downcast','contentLanguage','execute','render','6636177DFRGHB','getSelectedElement','imageBlock','_initSchema','locale','668680qXubDJ','pluginName','uploadcare','uploader-','querySelector','commands','_configElement','isRegistered','data-uc-image-id','elementToAttribute','editor','isOfficialPlugin','fromCharCode','488355MlzTSe','get','model','input[uploadcare-file-input]','add','removeAttribute','#uc-icon-arrow-down','6dMQmdm','20QTEbwR','attributeToAttribute','429220ftwOZD','getAttribute','_initConversion','editing','configElement','replaceImageSource','_initImageProcessingIndicator','uploadcare.pubkey','remove','extend','ucContextId','120nVxtCB','uploadcareImageId','appendChild','118700HjeeQy','document','for','imageInline','schema','conversion','uploadcare.uploader','_initCtx','href','map','\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup\x20{\x20padding:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-menu\x20{\x20gap:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-footer\x20{\x20padding-top:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__separator\x20{\x20margin:\x200;\x20}\x0a\x09\x09\x09','cleanupImage','requires','destroy','join','PictureEditing','2016805HYszlq','config','selection','view','ctxElement','_initConfig','isPremiumPlugin','_ctxElement','closeMax','listenTo','init','body','uploadcareImageReplace','insertImage','once','upcast','710961lRWHJl','afterInit'];_0xa3f2=function(){return _0x563923;};return _0xa3f2();}import{UploadcareCommand as _0x3e70eb}from'./uploadcarecommand.js';function _0x2997(_0x3ac77b,_0x2ed3d5){const _0xa3f2a6=_0xa3f2();return _0x2997=function(_0x299766,_0x3b51d4){_0x299766=_0x299766-0x1cc;let _0x3ed90e=_0xa3f2a6[_0x299766];return _0x3ed90e;},_0x2997(_0x3ac77b,_0x2ed3d5);}import{UploadcareUploadAdapter as _0x42761d}from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0x15fa1b}from'./utils/editingutils.js';export class UploadcareEditing extends _0x4505e1{[_0x167dca(0x1e4)]=null;[_0x167dca(0x21a)]=null;static get[_0x167dca(0x1df)](){const _0x2d38df=_0x167dca;return _0x2d38df(0x1d1);}static get[_0x167dca(0x20f)](){const _0x243257=_0x167dca;return[_0x243257(0x212),_0x42761d,_0x182444];}static get[_0x167dca(0x1e9)](){return!0x0;}static get[_0x167dca(0x219)](){return!0x0;}[_0x167dca(0x1ff)];get[_0x167dca(0x1f9)](){const _0x2e12c0=_0x167dca;return this[_0x2e12c0(0x1e4)];}get[_0x167dca(0x217)](){const _0x2a9602=_0x167dca;return this[_0x2a9602(0x21a)];}constructor(_0x59085d){const _0x1b03bc=_0x167dca;super(_0x59085d),this[_0x1b03bc(0x1ff)]=_0x4d2469();}[_0x167dca(0x21d)](){const _0x2556b9=_0x167dca,_0x90a184=this[_0x2556b9(0x1e8)];_0x90a184[_0x2556b9(0x1e3)][_0x2556b9(0x1ef)](_0x2556b9(0x1e0),new _0x3e70eb(_0x90a184));}[_0x167dca(0x1cf)](){const _0x5eb290=_0x167dca;this[_0x5eb290(0x1dc)](),this[_0x5eb290(0x1f7)](),this[_0x5eb290(0x218)](),this[_0x5eb290(0x20a)](),this[_0x5eb290(0x1fb)](),this[_0x5eb290(0x21c)](this[_0x5eb290(0x1e8)],_0x5eb290(0x210),()=>{const _0x3a98c0=_0x5eb290;this[_0x3a98c0(0x1e4)]&&(this[_0x3a98c0(0x1e4)][_0x3a98c0(0x1fd)](),this[_0x3a98c0(0x1e4)]=null),this[_0x3a98c0(0x21a)]&&(this[_0x3a98c0(0x21a)][_0x3a98c0(0x1fd)](),this[_0x3a98c0(0x21a)]=null);const _0x2fc4f6=_0x23f10b[_0x3a98c0(0x204)][_0x3a98c0(0x1e2)](_0x3a98c0(0x1ee));_0x2fc4f6&&_0x2fc4f6[_0x3a98c0(0x1fd)]();}),async function(_0x1ce53e){const _0x4b3c93=_0x1e0f4a([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]),_0x4fc5fd=0x535f8c3a,_0xa0cfd6=0x5358f0d2^_0x4fc5fd,_0x242d3e=window[_0x1e0f4a([0x44,0x61,0x74,0x65])][_0x1e0f4a([0x6e,0x6f,0x77])](),_0x1409fb=_0x1ce53e[_0x1e0f4a([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x4557c0=new window[(_0x1e0f4a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x204933=>{_0x1409fb[_0x1e0f4a([0x6f,0x6e,0x63,0x65])](_0x1e0f4a([0x72,0x65,0x61,0x64,0x79]),_0x204933);}),_0x551c27={[_0x1e0f4a([0x6b,0x74,0x79])]:_0x1e0f4a([0x45,0x43]),[_0x1e0f4a([0x75,0x73,0x65])]:_0x1e0f4a([0x73,0x69,0x67]),[_0x1e0f4a([0x63,0x72,0x76])]:_0x1e0f4a([0x50,0x2d,0x32,0x35,0x36]),[_0x1e0f4a([0x78])]:_0x1e0f4a([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]),[_0x1e0f4a([0x79])]:_0x1e0f4a([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]),[_0x1e0f4a([0x61,0x6c,0x67])]:_0x1e0f4a([0x45,0x53,0x32,0x35,0x36])},_0x24ef34=_0x1409fb[_0x1e0f4a([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x1e0f4a([0x67,0x65,0x74])](_0x1e0f4a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x14654a(){let _0xa3804e,_0x33478a=null,_0x5008b3=null;try{if(_0x24ef34==_0x1e0f4a([0x47,0x50,0x4c]))return _0x1e0f4a([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0xa3804e=_0x5862db(),!_0xa3804e)return _0x1e0f4a([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0xa3804e[_0x1e0f4a([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x5008b3=_0x883577(_0xa3804e[_0x1e0f4a([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0xa3804e[_0x1e0f4a([0x6a,0x74,0x69])])),await _0x4bba8d()?_0x535f7c()?_0x3241d3()?_0x1e0f4a([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x59af10()?(_0xa3804e[_0x1e0f4a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x1e0f4a([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x33478a=_0x8f92ca(_0x1e0f4a([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0xa3804e[_0x1e0f4a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x1e0f4a([0x74,0x72,0x69,0x61,0x6c])&&(_0x33478a=_0x8f92ca(_0x1e0f4a([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x2e575d()):_0x1e0f4a([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x1e0f4a([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x1e0f4a([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x1e0f4a([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x3241d3(){const _0x232329=[_0x1e0f4a([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x1e0f4a([0x74,0x72,0x69,0x61,0x6c])][_0x1e0f4a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xa3804e[_0x1e0f4a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x242d3e/0x3e8:0xe10*_0xa0cfd6;return _0xa3804e[_0x1e0f4a([0x65,0x78,0x70])]<_0x232329;}function _0x535f7c(){const _0x4aa37b=_0xa3804e[_0x1e0f4a([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x4aa37b&&(!!_0x4aa37b[_0x1e0f4a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1e0f4a([0x2a]))||!!_0x4aa37b[_0x1e0f4a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1e0f4a([0x55,0x50,0x4c,0x43])));}function _0x59af10(){const _0x4b1a7d=_0x2997,_0x2bef7a=_0xa3804e[_0x1e0f4a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x2bef7a||0x0==_0x2bef7a[_0x1e0f4a([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x5f3900}=new URL(window[_0x1e0f4a([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x4b1a7d(0x20b)]);if(_0x2bef7a[_0x1e0f4a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5f3900))return!0x0;const _0x53812b=_0x5f3900[_0x1e0f4a([0x73,0x70,0x6c,0x69,0x74])](_0x1e0f4a([0x2e]));return _0x2bef7a[_0x1e0f4a([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x3561a0=>_0x3561a0[_0x1e0f4a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1e0f4a([0x2a])))[_0x1e0f4a([0x6d,0x61,0x70])](_0x3472a3=>_0x3472a3[_0x1e0f4a([0x73,0x70,0x6c,0x69,0x74])](_0x1e0f4a([0x2e])))[_0x1e0f4a([0x66,0x69,0x6c,0x74,0x65,0x72])](_0xcafb32=>_0xcafb32[_0x1e0f4a([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x53812b[_0x1e0f4a([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x1e0f4a([0x6d,0x61,0x70])](_0x3800ca=>Array(_0x53812b[_0x1e0f4a([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x3800ca[_0x1e0f4a([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x1e0f4a([0x66,0x69,0x6c,0x6c])](_0x3800ca[0x0]===_0x1e0f4a([0x2a])?_0x1e0f4a([0x2a]):'')[_0x1e0f4a([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x3800ca))[_0x1e0f4a([0x73,0x6f,0x6d,0x65])](_0x2114c3=>_0x53812b[_0x1e0f4a([0x65,0x76,0x65,0x72,0x79])]((_0x5ad9fd,_0x4a6e23)=>_0x2114c3[_0x4a6e23]===_0x5ad9fd||_0x2114c3[_0x4a6e23]===_0x1e0f4a([0x2a])));}function _0x2e575d(){return _0x33478a&&_0x5008b3?new window[(_0x1e0f4a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x529202,_0x386ed9)=>{_0x33478a[_0x1e0f4a([0x74,0x68,0x65,0x6e])](_0x529202,_0x386ed9),_0x5008b3[_0x1e0f4a([0x74,0x68,0x65,0x6e])](_0x40e6f4=>{_0x40e6f4!=_0x1e0f4a([0x56,0x61,0x6c,0x69,0x64])&&_0x529202(_0x40e6f4);},_0x386ed9);}):_0x33478a||_0x5008b3||_0x1e0f4a([0x56,0x61,0x6c,0x69,0x64]);}}function _0x883577(_0x497e6f,_0x22eca2){return new window[(_0x1e0f4a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xc89324=>{if(_0x498a16())return _0xc89324(_0x1e0f4a([0x56,0x61,0x6c,0x69,0x64]));_0x30f195(),_0x1409fb[_0x1e0f4a([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x1e0f4a([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x18cf20=!0x1;const _0x54679b=_0x4d2469();function _0x579ccf(_0x353f45){return!!_0x353f45&&(typeof _0x353f45===_0x1e0f4a([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x353f45===_0x1e0f4a([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x353f45[_0x1e0f4a([0x74,0x68,0x65,0x6e])]===_0x1e0f4a([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x353f45[_0x1e0f4a([0x63,0x61,0x74,0x63,0x68])]===_0x1e0f4a([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x3c36e7(_0x5616a2){_0x2a5869(_0x5616a2)[_0x1e0f4a([0x74,0x68,0x65,0x6e])](_0x51610f=>{if(!_0x51610f||_0x51610f[_0x1e0f4a([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x1e0f4a([0x6f,0x6b]))return _0x1e0f4a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x4ec54d(_0x3bf57c(_0x54679b+_0x22eca2))!=_0x51610f[_0x1e0f4a([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x1e0f4a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x1e0f4a([0x56,0x61,0x6c,0x69,0x64]);})[_0x1e0f4a([0x74,0x68,0x65,0x6e])](_0x1ab0d5=>(_0x39be11(),_0x1ab0d5),()=>{const _0x4ee8e2=_0x2e02b2();return null==_0x4ee8e2?(_0x39be11(),_0x1e0f4a([0x56,0x61,0x6c,0x69,0x64])):_0x1e0f4a(_0x242d3e-_0x4ee8e2>(0x7753083a^_0x4fc5fd)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x1e0f4a([0x74,0x68,0x65,0x6e])](_0xc89324)[_0x1e0f4a([0x63,0x61,0x74,0x63,0x68])](()=>{_0xc89324(_0x1e0f4a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x15bf0b=0x536962ba^_0x4fc5fd;function _0x39be11(){const _0x280d21=_0x1e0f4a([0x6c,0x6c,0x63,0x74,0x2d])+_0x4ec54d(_0x3bf57c(_0x497e6f)),_0x5aab76=_0x4fee7b(_0x4ec54d(window[_0x1e0f4a([0x4d,0x61,0x74,0x68])][_0x1e0f4a([0x63,0x65,0x69,0x6c])](_0x242d3e/_0x15bf0b)));window[_0x1e0f4a([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x1e0f4a([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x280d21,_0x5aab76);}function _0x2e02b2(){const _0x2d710c=_0x1e0f4a([0x6c,0x6c,0x63,0x74,0x2d])+_0x4ec54d(_0x3bf57c(_0x497e6f)),_0x42af9c=window[_0x1e0f4a([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x1e0f4a([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2d710c);return _0x42af9c?window[_0x1e0f4a([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4fee7b(_0x42af9c),0x10)*_0x15bf0b:null;}function _0x2a5869(_0x174c5d){return new window[(_0x1e0f4a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4e39b5,_0x49ad3a)=>{_0x174c5d[_0x1e0f4a([0x74,0x68,0x65,0x6e])](_0x4e39b5,_0x49ad3a),window[_0x1e0f4a([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x49ad3a,0x535e58fa^_0x4fc5fd);});}}_0x1409fb[_0x1e0f4a([0x6f,0x6e])](_0x1e0f4a([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x5f4a27,_0x32f8bb)=>{if(_0x32f8bb[0x0]!=_0x497e6f)return _0xc89324(_0x1e0f4a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x32f8bb[0x1]={..._0x32f8bb[0x1],[_0x1e0f4a([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x54679b};},{[_0x1e0f4a([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x1e0f4a([0x68,0x69,0x67,0x68])}),_0x1409fb[_0x1e0f4a([0x6f,0x6e])](_0x1e0f4a([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x3e5d73=>{_0x579ccf(_0x3e5d73[_0x1e0f4a([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x18cf20=!0x0,_0x3c36e7(_0x3e5d73[_0x1e0f4a([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x1e0f4a([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x1e0f4a([0x6c,0x6f,0x77])}),_0x4557c0[_0x1e0f4a([0x74,0x68,0x65,0x6e])](()=>{_0x18cf20||_0xc89324(_0x1e0f4a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x498a16(){return _0x1409fb[_0x1e0f4a([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1e0f4a([0x76,0x69,0x65,0x77])][_0x1e0f4a([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x1e0f4a([0x61,0x75,0x74,0x6f]);}function _0x30f195(){_0x1409fb[_0x1e0f4a([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1e0f4a([0x76,0x69,0x65,0x77])][_0x1e0f4a([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x1e0f4a([0x61,0x75,0x74,0x6f]);}}function _0x8f92ca(_0x31a1cb){const _0xc47862=[new window[(_0x1e0f4a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2e039e=>setTimeout(_0x2e039e,0x5356b2f6^_0x4fc5fd)),_0x4557c0[_0x1e0f4a([0x74,0x68,0x65,0x6e])](()=>new window[(_0x1e0f4a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x159162=>{let _0x255640=0x0;_0x1409fb[_0x1e0f4a([0x6d,0x6f,0x64,0x65,0x6c])][_0x1e0f4a([0x6f,0x6e])](_0x1e0f4a([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x1c92a4,_0x53e291)=>{_0x53e291[0x0][_0x1e0f4a([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x255640++,_0x255640==(0x535f89d2^_0x4fc5fd)&&(_0x159162(),_0x1c92a4[_0x1e0f4a([0x6f,0x66,0x66])]());});}))];return window[_0x1e0f4a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x1e0f4a([0x72,0x61,0x63,0x65])](_0xc47862)[_0x1e0f4a([0x74,0x68,0x65,0x6e])](()=>_0x31a1cb);}async function _0x38a2b1(){await _0x4557c0,_0x1409fb[_0x1e0f4a([0x6d,0x6f,0x64,0x65,0x6c])][_0x1e0f4a([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x1ba32d,_0x1409fb[_0x1e0f4a([0x6d,0x6f,0x64,0x65,0x6c])][_0x1e0f4a([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x1ba32d,_0x1409fb[_0x1e0f4a([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x1e0f4a([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x3602b1(_0x47473d){const _0x3a84cf=_0x2d47be();_0x1409fb[_0x3a84cf]=_0x1e0f4a([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x47473d,_0x47473d!=_0x1e0f4a([0x56,0x61,0x6c,0x69,0x64])&&_0x38a2b1();}function _0x2d47be(){const _0x33f4d7=window[_0x1e0f4a([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x1e0f4a([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x1e0f4a([0x6e,0x6f,0x77])]())[_0x1e0f4a([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x1e0f4a([0x2e]),'');let _0x4bb40c=_0x1e0f4a([0x68]);for(let _0xeb35a1=0x0;_0xeb35a1<_0x33f4d7[_0x1e0f4a([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0xeb35a1+=0x2){let _0x2d2cfb=window[_0x1e0f4a([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x33f4d7[_0x1e0f4a([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0xeb35a1,_0xeb35a1+0x2));_0x2d2cfb>=_0x4b3c93[_0x1e0f4a([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x2d2cfb-=_0x4b3c93[_0x1e0f4a([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x4bb40c+=_0x4b3c93[_0x2d2cfb];}return _0x4bb40c;}function _0x5862db(){const _0x5d4ab4=_0x24ef34[_0x1e0f4a([0x73,0x70,0x6c,0x69,0x74])](_0x1e0f4a([0x2e]));if(0x3!=_0x5d4ab4[_0x1e0f4a([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x3d4360(_0x5d4ab4[0x1]);function _0x3d4360(_0x51c606){const _0x4a9095=_0x311c34(_0x51c606);return _0x4a9095&&_0xa5bdf5()?_0x4a9095:null;function _0xa5bdf5(){const _0x2c420e=_0x4a9095[_0x1e0f4a([0x6a,0x74,0x69])],_0x3ec3c0=window[_0x1e0f4a([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2c420e[_0x1e0f4a([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2c420e[_0x1e0f4a([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x2f90b5={..._0x4a9095,[_0x1e0f4a([0x6a,0x74,0x69])]:_0x2c420e[_0x1e0f4a([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x2c420e[_0x1e0f4a([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x2f90b5[_0x1e0f4a([0x76,0x63])],_0x3bf57c(_0x2f90b5)==_0x3ec3c0;}}}async function _0x4bba8d(){let _0x1c378e=!0x0;try{const _0x2f2c28=_0x24ef34[_0x1e0f4a([0x73,0x70,0x6c,0x69,0x74])](_0x1e0f4a([0x2e])),[_0x54d693,_0x1daabe,_0x24278e]=_0x2f2c28;return _0x21e7c1(_0x54d693),await _0x16b70a(_0x54d693,_0x1daabe,_0x24278e),_0x1c378e;}catch{return!0x1;}function _0x21e7c1(_0x339736){const _0x1358f4=_0x311c34(_0x339736);_0x1358f4&&_0x1358f4[_0x1e0f4a([0x61,0x6c,0x67])]==_0x1e0f4a([0x45,0x53,0x32,0x35,0x36])||(_0x1c378e=!0x1);}async function _0x16b70a(_0x2e7504,_0x2e606a,_0x417deb){const _0x2ff0eb=window[_0x1e0f4a([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x1e0f4a([0x66,0x72,0x6f,0x6d])](_0x5773aa(_0x417deb),_0x108c52=>_0x108c52[_0x1e0f4a([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x2fec87=new window[(_0x1e0f4a([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x1e0f4a([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x2e7504+_0x1e0f4a([0x2e])+_0x2e606a),_0xe1471b=window[_0x1e0f4a([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x1e0f4a([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0xe1471b)return;const _0x319588=await _0xe1471b[_0x1e0f4a([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x1e0f4a([0x6a,0x77,0x6b]),_0x551c27,{[_0x1e0f4a([0x6e,0x61,0x6d,0x65])]:_0x1e0f4a([0x45,0x43,0x44,0x53,0x41]),[_0x1e0f4a([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x1e0f4a([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x1e0f4a([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0xe1471b[_0x1e0f4a([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x1e0f4a([0x6e,0x61,0x6d,0x65])]:_0x1e0f4a([0x45,0x43,0x44,0x53,0x41]),[_0x1e0f4a([0x68,0x61,0x73,0x68])]:{[_0x1e0f4a([0x6e,0x61,0x6d,0x65])]:_0x1e0f4a([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x319588,_0x2ff0eb,_0x2fec87)||(_0x1c378e=!0x1);}}function _0x311c34(_0x4fd6dc){return _0x4fd6dc[_0x1e0f4a([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x1e0f4a([0x65,0x79]))?JSON[_0x1e0f4a([0x70,0x61,0x72,0x73,0x65])](_0x5773aa(_0x4fd6dc)):null;}function _0x5773aa(_0x5e6046){return window[_0x1e0f4a([0x61,0x74,0x6f,0x62])](_0x5e6046[_0x1e0f4a([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x1e0f4a([0x2b]))[_0x1e0f4a([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x1e0f4a([0x2f])));}function _0x3bf57c(_0x55e79a){let _0x5b5f7c=0x1505;function _0x2b95f8(_0x3df032){for(let _0x56d5fe=0x0;_0x56d5fe<_0x3df032[_0x1e0f4a([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x56d5fe++){const _0x2d43ef=_0x3df032[_0x1e0f4a([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x56d5fe);_0x5b5f7c=(_0x5b5f7c<<0x5)+_0x5b5f7c+_0x2d43ef,_0x5b5f7c&=_0x5b5f7c;}}function _0x522402(_0x3f4375){Array[_0x1e0f4a([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x3f4375)?_0x3f4375[_0x1e0f4a([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x522402):_0x3f4375&&typeof _0x3f4375==_0x1e0f4a([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x1e0f4a([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x3f4375)[_0x1e0f4a([0x73,0x6f,0x72,0x74])]()[_0x1e0f4a([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0xcf8176,_0x2b0a51])=>{_0x2b95f8(_0xcf8176),_0x522402(_0x2b0a51);}):_0x2b95f8(window[_0x1e0f4a([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x3f4375));}return _0x522402(_0x55e79a),_0x5b5f7c>>>0x0;}function _0x4ec54d(_0x502a4f){return _0x502a4f[_0x1e0f4a([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x1e0f4a([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x1e0f4a([0x30]));}function _0x4fee7b(_0x228180){return _0x228180[_0x1e0f4a([0x73,0x70,0x6c,0x69,0x74])]('')[_0x1e0f4a([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x1e0f4a([0x6a,0x6f,0x69,0x6e])]('');}function _0x1ba32d(){}function _0x1e0f4a(_0x23b08e){const _0x46d537=_0x2997;return _0x23b08e[_0x46d537(0x20c)](_0x1b0c2a=>String[_0x46d537(0x1ea)](_0x1b0c2a))[_0x46d537(0x211)]('');}_0x3602b1(await _0x14654a());}(this);}[_0x167dca(0x1dc)](){const _0x12002b=_0x167dca,_0x103b69=this[_0x12002b(0x1e8)][_0x12002b(0x1ed)][_0x12002b(0x207)];_0x103b69[_0x12002b(0x1e5)](_0x12002b(0x1db))&&_0x103b69[_0x12002b(0x1fe)](_0x12002b(0x1db),{'allowAttributes':[_0x12002b(0x201)]}),_0x103b69[_0x12002b(0x1e5)](_0x12002b(0x206))&&_0x103b69[_0x12002b(0x1fe)](_0x12002b(0x206),{'allowAttributes':[_0x12002b(0x201)]});}[_0x167dca(0x1f7)](){const _0x308d8c=_0x167dca,_0x27bca1=this[_0x308d8c(0x1e8)];_0x27bca1[_0x308d8c(0x208)][_0x308d8c(0x205)](_0x308d8c(0x1d5))[_0x308d8c(0x1f4)]({'model':_0x308d8c(0x201),'view':_0x308d8c(0x1e6)}),_0x27bca1[_0x308d8c(0x208)][_0x308d8c(0x205)](_0x308d8c(0x1cd))[_0x308d8c(0x1e7)]({'model':{'key':_0x308d8c(0x201),'value':_0x8d81cf=>_0x8d81cf[_0x308d8c(0x1f6)](_0x308d8c(0x1e6))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x7be80d=_0x27bca1[_0x308d8c(0x1e3)][_0x308d8c(0x1ec)](_0x308d8c(0x1fa));_0x7be80d&&this[_0x308d8c(0x21c)](_0x7be80d,_0x308d8c(0x20e),(_0x2a373a,[_0x3660b6,_0x4fec51])=>{const _0xbc4340=_0x308d8c;_0x3660b6[_0xbc4340(0x1f0)](_0xbc4340(0x201),_0x4fec51);});}[_0x167dca(0x218)](){const _0x594c53=_0x167dca,_0x37ee2e=this[_0x594c53(0x1e8)][_0x594c53(0x214)][_0x594c53(0x1ec)](_0x594c53(0x209))||{},_0x481714=this[_0x594c53(0x1e8)][_0x594c53(0x214)][_0x594c53(0x1ec)](_0x594c53(0x1fc))||'';this[_0x594c53(0x1e4)]=_0x793ead(_0x23f10b[_0x594c53(0x204)],_0x594c53(0x1d3),{..._0x37ee2e,'pubkey':_0x481714,'ctx-name':_0x594c53(0x1e1)+this[_0x594c53(0x1ff)],'sourceList':'','imgOnly':_0x594c53(0x1d0),'removeCopyright':_0x594c53(0x1d0),'localeName':this[_0x594c53(0x1e8)][_0x594c53(0x1dd)][_0x594c53(0x1d6)],'externalSourcesEmbedCss':_0x594c53(0x20d)}),this[_0x594c53(0x1e4)][_0x594c53(0x1d4)]=_0x5b04ba=>{const _0x1c67ee=_0x594c53;if(_0x1c67ee(0x21b)==_0x5b04ba)return _0x1c67ee(0x1f1);},_0x23f10b[_0x594c53(0x204)][_0x594c53(0x21e)][_0x594c53(0x202)](this[_0x594c53(0x1e4)]);}[_0x167dca(0x20a)](){const _0x1c741d=_0x167dca;this[_0x1c741d(0x21a)]=_0x793ead(_0x23f10b[_0x1c741d(0x204)],_0x1c741d(0x1d2),{'ctx-name':_0x1c741d(0x1e1)+this[_0x1c741d(0x1ff)]}),_0x23f10b[_0x1c741d(0x204)][_0x1c741d(0x21e)][_0x1c741d(0x202)](this[_0x1c741d(0x21a)]);}[_0x167dca(0x1fb)](){const _0x2eaafa=_0x167dca,_0x5d6ea1=this[_0x2eaafa(0x1e8)][_0x2eaafa(0x1e3)][_0x2eaafa(0x1ec)](_0x2eaafa(0x220));_0x5d6ea1&&this[_0x2eaafa(0x21c)](_0x5d6ea1,_0x2eaafa(0x1d7),()=>{const _0x3f3654=_0x2eaafa,_0x284308=this[_0x3f3654(0x1e8)][_0x3f3654(0x1ed)][_0x3f3654(0x204)][_0x3f3654(0x215)][_0x3f3654(0x1da)]();_0x284308&&_0x284308[_0x3f3654(0x1f6)](_0x3f3654(0x201))&&this[_0x3f3654(0x1e8)][_0x3f3654(0x1f8)][_0x3f3654(0x216)][_0x3f3654(0x1cc)](_0x3f3654(0x1d8),()=>{const _0x3d1aac=_0x3f3654;_0x15fa1b(this[_0x3d1aac(0x1e8)],_0x284308);});});const _0xb1b5e8=this[_0x2eaafa(0x1e8)][_0x2eaafa(0x1e3)][_0x2eaafa(0x1ec)](_0x2eaafa(0x21f));_0xb1b5e8&&this[_0x2eaafa(0x21c)](_0xb1b5e8,_0x2eaafa(0x1d7),()=>{const _0x1bbf2d=_0x2eaafa,_0x4d893e=this[_0x1bbf2d(0x1e8)][_0x1bbf2d(0x1ed)][_0x1bbf2d(0x204)][_0x1bbf2d(0x215)][_0x1bbf2d(0x1da)]();_0x4d893e&&_0x4d893e[_0x1bbf2d(0x1f6)](_0x1bbf2d(0x201))&&this[_0x1bbf2d(0x1e8)][_0x1bbf2d(0x1f8)][_0x1bbf2d(0x216)][_0x1bbf2d(0x1cc)](_0x1bbf2d(0x1d8),()=>{const _0x225be7=_0x1bbf2d;_0x15fa1b(this[_0x225be7(0x1e8)],_0x4d893e);});});}}
23
+ const _0x3d47d0=_0x1166;(function(_0x25efa6,_0x1aa0d2){const _0xccb4c3=_0x1166,_0x11b0d4=_0x25efa6();while(!![]){try{const _0x378e40=-parseInt(_0xccb4c3(0x213))/0x1+parseInt(_0xccb4c3(0x1d7))/0x2+-parseInt(_0xccb4c3(0x211))/0x3+parseInt(_0xccb4c3(0x204))/0x4+parseInt(_0xccb4c3(0x21a))/0x5+-parseInt(_0xccb4c3(0x1fa))/0x6+parseInt(_0xccb4c3(0x1f6))/0x7*(parseInt(_0xccb4c3(0x219))/0x8);if(_0x378e40===_0x1aa0d2)break;else _0x11b0d4['push'](_0x11b0d4['shift']());}catch(_0x1049cf){_0x11b0d4['push'](_0x11b0d4['shift']());}}}(_0x3cdc,0xbce1c));import{Plugin as _0x2081f6}from'ckeditor5/src/core.js';function _0x1166(_0xc395a8,_0x3bc64f){const _0x3cdc41=_0x3cdc();return _0x1166=function(_0x11667c,_0x13d488){_0x11667c=_0x11667c-0x1c9;let _0x3f3ff5=_0x3cdc41[_0x11667c];return _0x3f3ff5;},_0x1166(_0xc395a8,_0x3bc64f);}function _0x3cdc(){const _0x5b12e2=['uploadcare','upcast','editing','execute','uploadcareImageReplace','ucContextId','for','requires','isRegistered','imageInline','removeAttribute','getSelectedElement','configElement','listenTo','extend','closeMax','uc-upload-ctx-provider','commands','\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup\x20{\x20padding:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-menu\x20{\x20gap:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-footer\x20{\x20padding-top:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__separator\x20{\x20margin:\x200;\x20}\x0a\x09\x09\x09','attributeToAttribute','uploadcare.pubkey','config','selection','href','document','6411412tqiSUJ','fromCharCode','uploadcare.uploader','true','5914104AHQtPn','insertImage','contentLanguage','init','get','data-uc-image-id','cleanupImage','once','view','editor','5060400AdqCON','imageBlock','body','getAttribute','isOfficialPlugin','uploadcareImageId','schema','conversion','map','afterInit','isPremiumPlugin','input[uploadcare-file-input]','pluginName','4589877AqTXTQ','querySelector','1438429dqxhen','downcast','uploader-','PictureEditing','locale','ctxElement','24JUCbrN','637065vAGvJS','_initConversion','join','_configElement','#uc-icon-arrow-down','elementToAttribute','_initSchema','destroy','add','_initImageProcessingIndicator','UploadcareEditing','iconHrefResolver','remove','render','uc-config','model','1174942APYuyK','_initConfig','_initCtx','appendChild','replaceImageSource','_ctxElement'];_0x3cdc=function(){return _0x5b12e2;};return _0x3cdc();}import{Dialog as _0x573430}from'ckeditor5/src/ui.js';import{createElement as _0x1187ac,global as _0xc0482c,uid as _0x3faca2}from'ckeditor5/src/utils.js';import{UploadcareCommand as _0x517856}from'./uploadcarecommand.js';import{UploadcareUploadAdapter as _0x44d873}from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0x4673bf}from'./utils/editingutils.js';export class UploadcareEditing extends _0x2081f6{[_0x3d47d0(0x1ca)]=null;[_0x3d47d0(0x1dc)]=null;static get[_0x3d47d0(0x210)](){const _0x46c27e=_0x3d47d0;return _0x46c27e(0x1d1);}static get[_0x3d47d0(0x1e4)](){const _0x240c8e=_0x3d47d0;return[_0x240c8e(0x216),_0x44d873,_0x573430];}static get[_0x3d47d0(0x208)](){return!0x0;}static get[_0x3d47d0(0x20e)](){return!0x0;}[_0x3d47d0(0x1e2)];get[_0x3d47d0(0x1e9)](){const _0x1c7d39=_0x3d47d0;return this[_0x1c7d39(0x1ca)];}get[_0x3d47d0(0x218)](){const _0x42320f=_0x3d47d0;return this[_0x42320f(0x1dc)];}constructor(_0x336eed){const _0x40a6b3=_0x3d47d0;super(_0x336eed),this[_0x40a6b3(0x1e2)]=_0x3faca2();}[_0x3d47d0(0x1fd)](){const _0x23f78e=_0x3d47d0,_0x3918f0=this[_0x23f78e(0x203)];_0x3918f0[_0x23f78e(0x1ee)][_0x23f78e(0x1cf)](_0x23f78e(0x1dd),new _0x517856(_0x3918f0));}[_0x3d47d0(0x20d)](){const _0x4d14cd=_0x3d47d0;this[_0x4d14cd(0x1cd)](),this[_0x4d14cd(0x21b)](),this[_0x4d14cd(0x1d8)](),this[_0x4d14cd(0x1d9)](),this[_0x4d14cd(0x1d0)](),this[_0x4d14cd(0x1ea)](this[_0x4d14cd(0x203)],_0x4d14cd(0x1ce),()=>{const _0x296721=_0x4d14cd;this[_0x296721(0x1ca)]&&(this[_0x296721(0x1ca)][_0x296721(0x1d3)](),this[_0x296721(0x1ca)]=null),this[_0x296721(0x1dc)]&&(this[_0x296721(0x1dc)][_0x296721(0x1d3)](),this[_0x296721(0x1dc)]=null);const _0x25276d=_0xc0482c[_0x296721(0x1f5)][_0x296721(0x212)](_0x296721(0x20f));_0x25276d&&_0x25276d[_0x296721(0x1d3)]();}),async function(_0x34743a){const _0x51229d=_0x5cc309([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]),_0xe0310d=0x535f8c3a,_0x51504d=0x5358f13a^_0xe0310d,_0x29278d=window[_0x5cc309([0x44,0x61,0x74,0x65])][_0x5cc309([0x6e,0x6f,0x77])](),_0x56723b=_0x34743a[_0x5cc309([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x127791=new window[(_0x5cc309([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5f5dc4=>{_0x56723b[_0x5cc309([0x6f,0x6e,0x63,0x65])](_0x5cc309([0x72,0x65,0x61,0x64,0x79]),_0x5f5dc4);}),_0x173f21={[_0x5cc309([0x6b,0x74,0x79])]:_0x5cc309([0x45,0x43]),[_0x5cc309([0x75,0x73,0x65])]:_0x5cc309([0x73,0x69,0x67]),[_0x5cc309([0x63,0x72,0x76])]:_0x5cc309([0x50,0x2d,0x32,0x35,0x36]),[_0x5cc309([0x78])]:_0x5cc309([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]),[_0x5cc309([0x79])]:_0x5cc309([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]),[_0x5cc309([0x61,0x6c,0x67])]:_0x5cc309([0x45,0x53,0x32,0x35,0x36])},_0x276c5c=_0x56723b[_0x5cc309([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x5cc309([0x67,0x65,0x74])](_0x5cc309([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x4b318e(){let _0x9f4039,_0x3e82b0=null,_0x4c4b42=null;try{if(_0x276c5c==_0x5cc309([0x47,0x50,0x4c]))return _0x5cc309([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x9f4039=_0x5d5ff5(),!_0x9f4039)return _0x5cc309([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x9f4039[_0x5cc309([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x4c4b42=_0x1443d5(_0x9f4039[_0x5cc309([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x9f4039[_0x5cc309([0x6a,0x74,0x69])])),await _0x18e2cf()?_0x5649f1()?_0x508679()?_0x5cc309([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x22dd8a()?(_0x9f4039[_0x5cc309([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x5cc309([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x3e82b0=_0x3280ab(_0x5cc309([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x9f4039[_0x5cc309([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x5cc309([0x74,0x72,0x69,0x61,0x6c])&&(_0x3e82b0=_0x3280ab(_0x5cc309([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x8376d9()):_0x5cc309([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x5cc309([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x5cc309([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x5cc309([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x508679(){const _0x3902e2=[_0x5cc309([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x5cc309([0x74,0x72,0x69,0x61,0x6c])][_0x5cc309([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x9f4039[_0x5cc309([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x29278d/0x3e8:0xe10*_0x51504d;return _0x9f4039[_0x5cc309([0x65,0x78,0x70])]<_0x3902e2;}function _0x5649f1(){const _0x22586b=_0x9f4039[_0x5cc309([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x22586b&&(!!_0x22586b[_0x5cc309([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5cc309([0x2a]))||!!_0x22586b[_0x5cc309([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5cc309([0x55,0x50,0x4c,0x43])));}function _0x22dd8a(){const _0x19369d=_0x1166,_0x14c61a=_0x9f4039[_0x5cc309([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x14c61a||0x0==_0x14c61a[_0x5cc309([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x2670fa}=new URL(window[_0x5cc309([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x19369d(0x1f4)]);if(_0x14c61a[_0x5cc309([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2670fa))return!0x0;const _0x84f0ac=_0x2670fa[_0x5cc309([0x73,0x70,0x6c,0x69,0x74])](_0x5cc309([0x2e]));return _0x14c61a[_0x5cc309([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x498a91=>_0x498a91[_0x5cc309([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5cc309([0x2a])))[_0x5cc309([0x6d,0x61,0x70])](_0x7a3be5=>_0x7a3be5[_0x5cc309([0x73,0x70,0x6c,0x69,0x74])](_0x5cc309([0x2e])))[_0x5cc309([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x3a67f2=>_0x3a67f2[_0x5cc309([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x84f0ac[_0x5cc309([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x5cc309([0x6d,0x61,0x70])](_0x1bfdb5=>Array(_0x84f0ac[_0x5cc309([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x1bfdb5[_0x5cc309([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x5cc309([0x66,0x69,0x6c,0x6c])](_0x1bfdb5[0x0]===_0x5cc309([0x2a])?_0x5cc309([0x2a]):'')[_0x5cc309([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x1bfdb5))[_0x5cc309([0x73,0x6f,0x6d,0x65])](_0x3c7b5c=>_0x84f0ac[_0x5cc309([0x65,0x76,0x65,0x72,0x79])]((_0x1bb701,_0x4ddf1c)=>_0x3c7b5c[_0x4ddf1c]===_0x1bb701||_0x3c7b5c[_0x4ddf1c]===_0x5cc309([0x2a])));}function _0x8376d9(){return _0x3e82b0&&_0x4c4b42?new window[(_0x5cc309([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x37c3d5,_0x45940e)=>{_0x3e82b0[_0x5cc309([0x74,0x68,0x65,0x6e])](_0x37c3d5,_0x45940e),_0x4c4b42[_0x5cc309([0x74,0x68,0x65,0x6e])](_0x52405c=>{_0x52405c!=_0x5cc309([0x56,0x61,0x6c,0x69,0x64])&&_0x37c3d5(_0x52405c);},_0x45940e);}):_0x3e82b0||_0x4c4b42||_0x5cc309([0x56,0x61,0x6c,0x69,0x64]);}}function _0x1443d5(_0x194b4c,_0x1186a2){return new window[(_0x5cc309([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3fac8b=>{if(_0x483f5f())return _0x3fac8b(_0x5cc309([0x56,0x61,0x6c,0x69,0x64]));_0x4be9ed(),_0x56723b[_0x5cc309([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x5cc309([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x120ae=!0x1;const _0x70629=_0x3faca2();function _0x19e460(_0x2d1f76){return!!_0x2d1f76&&(typeof _0x2d1f76===_0x5cc309([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x2d1f76===_0x5cc309([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x2d1f76[_0x5cc309([0x74,0x68,0x65,0x6e])]===_0x5cc309([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x2d1f76[_0x5cc309([0x63,0x61,0x74,0x63,0x68])]===_0x5cc309([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x17fd0e(_0x27d948){_0x42b42b(_0x27d948)[_0x5cc309([0x74,0x68,0x65,0x6e])](_0x9d5e92=>{if(!_0x9d5e92||_0x9d5e92[_0x5cc309([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x5cc309([0x6f,0x6b]))return _0x5cc309([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x3d4667(_0xd9d69e(_0x70629+_0x1186a2))!=_0x9d5e92[_0x5cc309([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x5cc309([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x5cc309([0x56,0x61,0x6c,0x69,0x64]);})[_0x5cc309([0x74,0x68,0x65,0x6e])](_0x2cc5d5=>(_0x27d81d(),_0x2cc5d5),()=>{const _0x3310f2=_0x3ee056();return null==_0x3310f2?(_0x27d81d(),_0x5cc309([0x56,0x61,0x6c,0x69,0x64])):_0x5cc309(_0x29278d-_0x3310f2>(0x7753083a^_0xe0310d)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x5cc309([0x74,0x68,0x65,0x6e])](_0x3fac8b)[_0x5cc309([0x63,0x61,0x74,0x63,0x68])](()=>{_0x3fac8b(_0x5cc309([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x41578c=0x536962ba^_0xe0310d;function _0x27d81d(){const _0x1e701c=_0x5cc309([0x6c,0x6c,0x63,0x74,0x2d])+_0x3d4667(_0xd9d69e(_0x194b4c)),_0x2f0c08=_0x3e7ac1(_0x3d4667(window[_0x5cc309([0x4d,0x61,0x74,0x68])][_0x5cc309([0x63,0x65,0x69,0x6c])](_0x29278d/_0x41578c)));window[_0x5cc309([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x5cc309([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1e701c,_0x2f0c08);}function _0x3ee056(){const _0x27f7dc=_0x5cc309([0x6c,0x6c,0x63,0x74,0x2d])+_0x3d4667(_0xd9d69e(_0x194b4c)),_0x5f500f=window[_0x5cc309([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x5cc309([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x27f7dc);return _0x5f500f?window[_0x5cc309([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3e7ac1(_0x5f500f),0x10)*_0x41578c:null;}function _0x42b42b(_0x53abc5){return new window[(_0x5cc309([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x42cd1d,_0x8ea0a5)=>{_0x53abc5[_0x5cc309([0x74,0x68,0x65,0x6e])](_0x42cd1d,_0x8ea0a5),window[_0x5cc309([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x8ea0a5,0x535e58fa^_0xe0310d);});}}_0x56723b[_0x5cc309([0x6f,0x6e])](_0x5cc309([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x20f5d0,_0x1751b9)=>{if(_0x1751b9[0x0]!=_0x194b4c)return _0x3fac8b(_0x5cc309([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x1751b9[0x1]={..._0x1751b9[0x1],[_0x5cc309([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x70629};},{[_0x5cc309([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x5cc309([0x68,0x69,0x67,0x68])}),_0x56723b[_0x5cc309([0x6f,0x6e])](_0x5cc309([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x81753a=>{_0x19e460(_0x81753a[_0x5cc309([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x120ae=!0x0,_0x17fd0e(_0x81753a[_0x5cc309([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x5cc309([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x5cc309([0x6c,0x6f,0x77])}),_0x127791[_0x5cc309([0x74,0x68,0x65,0x6e])](()=>{_0x120ae||_0x3fac8b(_0x5cc309([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x483f5f(){return _0x56723b[_0x5cc309([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5cc309([0x76,0x69,0x65,0x77])][_0x5cc309([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x5cc309([0x61,0x75,0x74,0x6f]);}function _0x4be9ed(){_0x56723b[_0x5cc309([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5cc309([0x76,0x69,0x65,0x77])][_0x5cc309([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x5cc309([0x61,0x75,0x74,0x6f]);}}function _0x3280ab(_0x3e5565){const _0x252d63=[new window[(_0x5cc309([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x26a615=>setTimeout(_0x26a615,0x5356b2f6^_0xe0310d)),_0x127791[_0x5cc309([0x74,0x68,0x65,0x6e])](()=>new window[(_0x5cc309([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4a1523=>{let _0x4274e5=0x0;_0x56723b[_0x5cc309([0x6d,0x6f,0x64,0x65,0x6c])][_0x5cc309([0x6f,0x6e])](_0x5cc309([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x4bd1ce,_0x23a293)=>{_0x23a293[0x0][_0x5cc309([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x4274e5++,_0x4274e5==(0x535f89d2^_0xe0310d)&&(_0x4a1523(),_0x4bd1ce[_0x5cc309([0x6f,0x66,0x66])]());});}))];return window[_0x5cc309([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x5cc309([0x72,0x61,0x63,0x65])](_0x252d63)[_0x5cc309([0x74,0x68,0x65,0x6e])](()=>_0x3e5565);}async function _0x481b6c(){await _0x127791,_0x56723b[_0x5cc309([0x6d,0x6f,0x64,0x65,0x6c])][_0x5cc309([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x315679,_0x56723b[_0x5cc309([0x6d,0x6f,0x64,0x65,0x6c])][_0x5cc309([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x315679,_0x56723b[_0x5cc309([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x5cc309([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x12fceb(_0x497ac7){const _0x4691e0=_0x2023e6();_0x56723b[_0x4691e0]=_0x5cc309([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x497ac7,_0x497ac7!=_0x5cc309([0x56,0x61,0x6c,0x69,0x64])&&_0x481b6c();}function _0x2023e6(){const _0x5479b9=window[_0x5cc309([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x5cc309([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x5cc309([0x6e,0x6f,0x77])]())[_0x5cc309([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x5cc309([0x2e]),'');let _0x2aad8b=_0x5cc309([0x68]);for(let _0x52e016=0x0;_0x52e016<_0x5479b9[_0x5cc309([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x52e016+=0x2){let _0x35cc80=window[_0x5cc309([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5479b9[_0x5cc309([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x52e016,_0x52e016+0x2));_0x35cc80>=_0x51229d[_0x5cc309([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x35cc80-=_0x51229d[_0x5cc309([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x2aad8b+=_0x51229d[_0x35cc80];}return _0x2aad8b;}function _0x5d5ff5(){const _0x28ab18=_0x276c5c[_0x5cc309([0x73,0x70,0x6c,0x69,0x74])](_0x5cc309([0x2e]));if(0x3!=_0x28ab18[_0x5cc309([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x1e2f1b(_0x28ab18[0x1]);function _0x1e2f1b(_0x2c0701){const _0x444654=_0x140949(_0x2c0701);return _0x444654&&_0x37a983()?_0x444654:null;function _0x37a983(){const _0x431fbb=_0x444654[_0x5cc309([0x6a,0x74,0x69])],_0x1609fd=window[_0x5cc309([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x431fbb[_0x5cc309([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x431fbb[_0x5cc309([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x6da828={..._0x444654,[_0x5cc309([0x6a,0x74,0x69])]:_0x431fbb[_0x5cc309([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x431fbb[_0x5cc309([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x6da828[_0x5cc309([0x76,0x63])],_0xd9d69e(_0x6da828)==_0x1609fd;}}}async function _0x18e2cf(){let _0x3241c2=!0x0;try{const _0x12625d=_0x276c5c[_0x5cc309([0x73,0x70,0x6c,0x69,0x74])](_0x5cc309([0x2e])),[_0x1a7942,_0x61b48e,_0x2d8995]=_0x12625d;return _0x3d8ed4(_0x1a7942),await _0x17ff8a(_0x1a7942,_0x61b48e,_0x2d8995),_0x3241c2;}catch{return!0x1;}function _0x3d8ed4(_0xba370c){const _0x58566e=_0x140949(_0xba370c);_0x58566e&&_0x58566e[_0x5cc309([0x61,0x6c,0x67])]==_0x5cc309([0x45,0x53,0x32,0x35,0x36])||(_0x3241c2=!0x1);}async function _0x17ff8a(_0x2f7a85,_0x993856,_0x54cab1){const _0x3ee82c=window[_0x5cc309([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x5cc309([0x66,0x72,0x6f,0x6d])](_0x2438b8(_0x54cab1),_0x344edc=>_0x344edc[_0x5cc309([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x3e3333=new window[(_0x5cc309([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x5cc309([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x2f7a85+_0x5cc309([0x2e])+_0x993856),_0x56684f=window[_0x5cc309([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x5cc309([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x56684f)return;const _0x31773e=await _0x56684f[_0x5cc309([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x5cc309([0x6a,0x77,0x6b]),_0x173f21,{[_0x5cc309([0x6e,0x61,0x6d,0x65])]:_0x5cc309([0x45,0x43,0x44,0x53,0x41]),[_0x5cc309([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x5cc309([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x5cc309([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x56684f[_0x5cc309([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x5cc309([0x6e,0x61,0x6d,0x65])]:_0x5cc309([0x45,0x43,0x44,0x53,0x41]),[_0x5cc309([0x68,0x61,0x73,0x68])]:{[_0x5cc309([0x6e,0x61,0x6d,0x65])]:_0x5cc309([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x31773e,_0x3ee82c,_0x3e3333)||(_0x3241c2=!0x1);}}function _0x140949(_0x190c5f){return _0x190c5f[_0x5cc309([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x5cc309([0x65,0x79]))?JSON[_0x5cc309([0x70,0x61,0x72,0x73,0x65])](_0x2438b8(_0x190c5f)):null;}function _0x2438b8(_0x65bb27){return window[_0x5cc309([0x61,0x74,0x6f,0x62])](_0x65bb27[_0x5cc309([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x5cc309([0x2b]))[_0x5cc309([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x5cc309([0x2f])));}function _0xd9d69e(_0xf5102a){let _0x5712b3=0x1505;function _0x138e65(_0xa2f071){for(let _0x1de940=0x0;_0x1de940<_0xa2f071[_0x5cc309([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1de940++){const _0xd89b31=_0xa2f071[_0x5cc309([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x1de940);_0x5712b3=(_0x5712b3<<0x5)+_0x5712b3+_0xd89b31,_0x5712b3&=_0x5712b3;}}function _0x50cb55(_0x2a7a59){Array[_0x5cc309([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x2a7a59)?_0x2a7a59[_0x5cc309([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x50cb55):_0x2a7a59&&typeof _0x2a7a59==_0x5cc309([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x5cc309([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x2a7a59)[_0x5cc309([0x73,0x6f,0x72,0x74])]()[_0x5cc309([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x13cc2c,_0x37b8fc])=>{_0x138e65(_0x13cc2c),_0x50cb55(_0x37b8fc);}):_0x138e65(window[_0x5cc309([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x2a7a59));}return _0x50cb55(_0xf5102a),_0x5712b3>>>0x0;}function _0x3d4667(_0x931cc4){return _0x931cc4[_0x5cc309([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x5cc309([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x5cc309([0x30]));}function _0x3e7ac1(_0x4f251b){return _0x4f251b[_0x5cc309([0x73,0x70,0x6c,0x69,0x74])]('')[_0x5cc309([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x5cc309([0x6a,0x6f,0x69,0x6e])]('');}function _0x315679(){}function _0x5cc309(_0x2bbfe7){const _0x68f2f8=_0x1166;return _0x2bbfe7[_0x68f2f8(0x20c)](_0x310260=>String[_0x68f2f8(0x1f7)](_0x310260))[_0x68f2f8(0x1c9)]('');}_0x12fceb(await _0x4b318e());}(this);}[_0x3d47d0(0x1cd)](){const _0x164fda=_0x3d47d0,_0x81b0ba=this[_0x164fda(0x203)][_0x164fda(0x1d6)][_0x164fda(0x20a)];_0x81b0ba[_0x164fda(0x1e5)](_0x164fda(0x205))&&_0x81b0ba[_0x164fda(0x1eb)](_0x164fda(0x205),{'allowAttributes':[_0x164fda(0x209)]}),_0x81b0ba[_0x164fda(0x1e5)](_0x164fda(0x1e6))&&_0x81b0ba[_0x164fda(0x1eb)](_0x164fda(0x1e6),{'allowAttributes':[_0x164fda(0x209)]});}[_0x3d47d0(0x21b)](){const _0x5712b4=_0x3d47d0,_0x48c043=this[_0x5712b4(0x203)];_0x48c043[_0x5712b4(0x20b)][_0x5712b4(0x1e3)](_0x5712b4(0x214))[_0x5712b4(0x1f0)]({'model':_0x5712b4(0x209),'view':_0x5712b4(0x1ff)}),_0x48c043[_0x5712b4(0x20b)][_0x5712b4(0x1e3)](_0x5712b4(0x1de))[_0x5712b4(0x1cc)]({'model':{'key':_0x5712b4(0x209),'value':_0x5b0c88=>_0x5b0c88[_0x5712b4(0x207)](_0x5712b4(0x1ff))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x3a404c=_0x48c043[_0x5712b4(0x1ee)][_0x5712b4(0x1fe)](_0x5712b4(0x1db));_0x3a404c&&this[_0x5712b4(0x1ea)](_0x3a404c,_0x5712b4(0x200),(_0x93d003,[_0x6f0ed6,_0x2b4efa])=>{const _0x221cd9=_0x5712b4;_0x6f0ed6[_0x221cd9(0x1e7)](_0x221cd9(0x209),_0x2b4efa);});}[_0x3d47d0(0x1d8)](){const _0x10dc23=_0x3d47d0,_0x2aa72e=this[_0x10dc23(0x203)][_0x10dc23(0x1f2)][_0x10dc23(0x1fe)](_0x10dc23(0x1f8))||{},_0x502b99=this[_0x10dc23(0x203)][_0x10dc23(0x1f2)][_0x10dc23(0x1fe)](_0x10dc23(0x1f1))||'';this[_0x10dc23(0x1ca)]=_0x1187ac(_0xc0482c[_0x10dc23(0x1f5)],_0x10dc23(0x1d5),{..._0x2aa72e,'pubkey':_0x502b99,'ctx-name':_0x10dc23(0x215)+this[_0x10dc23(0x1e2)],'sourceList':'','imgOnly':_0x10dc23(0x1f9),'removeCopyright':_0x10dc23(0x1f9),'localeName':this[_0x10dc23(0x203)][_0x10dc23(0x217)][_0x10dc23(0x1fc)],'externalSourcesEmbedCss':_0x10dc23(0x1ef)}),this[_0x10dc23(0x1ca)][_0x10dc23(0x1d2)]=_0x21c26c=>{const _0x45cc16=_0x10dc23;if(_0x45cc16(0x1ec)==_0x21c26c)return _0x45cc16(0x1cb);},_0xc0482c[_0x10dc23(0x1f5)][_0x10dc23(0x206)][_0x10dc23(0x1da)](this[_0x10dc23(0x1ca)]);}[_0x3d47d0(0x1d9)](){const _0x37303d=_0x3d47d0;this[_0x37303d(0x1dc)]=_0x1187ac(_0xc0482c[_0x37303d(0x1f5)],_0x37303d(0x1ed),{'ctx-name':_0x37303d(0x215)+this[_0x37303d(0x1e2)]}),_0xc0482c[_0x37303d(0x1f5)][_0x37303d(0x206)][_0x37303d(0x1da)](this[_0x37303d(0x1dc)]);}[_0x3d47d0(0x1d0)](){const _0x5ed43b=_0x3d47d0,_0x4dcbec=this[_0x5ed43b(0x203)][_0x5ed43b(0x1ee)][_0x5ed43b(0x1fe)](_0x5ed43b(0x1fb));_0x4dcbec&&this[_0x5ed43b(0x1ea)](_0x4dcbec,_0x5ed43b(0x1e0),()=>{const _0x355625=_0x5ed43b,_0xacccd7=this[_0x355625(0x203)][_0x355625(0x1d6)][_0x355625(0x1f5)][_0x355625(0x1f3)][_0x355625(0x1e8)]();_0xacccd7&&_0xacccd7[_0x355625(0x207)](_0x355625(0x209))&&this[_0x355625(0x203)][_0x355625(0x1df)][_0x355625(0x202)][_0x355625(0x201)](_0x355625(0x1d4),()=>{const _0x18c1bb=_0x355625;_0x4673bf(this[_0x18c1bb(0x203)],_0xacccd7);});});const _0xb0056a=this[_0x5ed43b(0x203)][_0x5ed43b(0x1ee)][_0x5ed43b(0x1fe)](_0x5ed43b(0x1e1));_0xb0056a&&this[_0x5ed43b(0x1ea)](_0xb0056a,_0x5ed43b(0x1e0),()=>{const _0x223d2d=_0x5ed43b,_0x33c0a1=this[_0x223d2d(0x203)][_0x223d2d(0x1d6)][_0x223d2d(0x1f5)][_0x223d2d(0x1f3)][_0x223d2d(0x1e8)]();_0x33c0a1&&_0x33c0a1[_0x223d2d(0x207)](_0x223d2d(0x209))&&this[_0x223d2d(0x203)][_0x223d2d(0x1df)][_0x223d2d(0x202)][_0x223d2d(0x201)](_0x223d2d(0x1d4),()=>{const _0x25ec13=_0x223d2d;_0x4673bf(this[_0x25ec13(0x203)],_0x33c0a1);});});}}