@ckeditor/ckeditor5-uploadcare 0.0.0-nightly-20251214.0 → 0.0.0-nightly-20251215.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/build/uploadcare.js +1 -1
- package/dist/index.js +3 -3
- package/package.json +9 -9
- package/src/ui/uploadcarecontroller.js +2 -2
- package/src/ui/uploadcareformview.js +1 -1
- package/src/uploadcareediting.js +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditcontroller.js +2 -2
- package/src/uploadcareimageedit/ui/uploadcareimageeditformeditingview.js +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditformerrorview.js +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditformloadingview.js +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditformview.js +1 -1
- package/src/uploadcareimageedit/uploadcareimageeditcommand.js +1 -1
- package/src/uploadcareimageedit/uploadcareimageeditediting.js +1 -1
- package/src/uploadcareimageedit/uploadcareimageeditui.js +1 -1
- package/src/utils/dialogfocusmanagerview.js +1 -1
- package/src/utils/editingutils.js +1 -1
- package/src/utils/isancestor.js +1 -1
- package/src/utils/uploadutils.js +1 -1
package/dist/index.js
CHANGED
|
@@ -20,6 +20,6 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as _0xf38636,Command as _0x392ed7}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x7e97a7,IconGooglePhotos as _0x55fad1,IconGoogleDrive as _0xa5c6d9,IconFacebook as _0x33b9b6,IconDropbox as _0xe40a39,IconUploadcareLink as _0x29f467,IconUploadcareImageUpload as _0x31c404,IconError as _0x10dfd5,IconUploadcareImageEdit as _0x2173fe}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x52b656,MenuBarMenuListItemButtonView as _0x380de1,View as _0x1028fe,FocusCycler as _0x320b59,Dialog as _0x5f1377,DialogViewPosition as _0x16cfb1,SpinnerView as _0x2a9dcb,IconView as _0x3dae89,Notification as _0xaf71b}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0xc3e5b8,DomEmitterMixin as _0x4e81f9,global as _0x5b66cb,getAncestors as _0x28d403,ObservableMixin as _0x59bb24,uid as _0x4c54e9,createElement as _0x35d2c7}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x2b8b93}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x49f3ab,info as _0x278478}from'@uploadcare/upload-client';import*as _0x36873e from'@uploadcare/file-uploader';var i=function(_0x2278b7){return _0x2278b7['Local']='local',_0x2278b7['URL']='url',_0x2278b7['Dropbox']='dropbox',_0x2278b7['GDrive']='gdrive',_0x2278b7['Facebook']='facebook',_0x2278b7['GPhotos']='gphotos',_0x2278b7['OneDrive']='onedrive',_0x2278b7;}({});function _(_0x16086d,_0xc8c4ca,_0x3e5d78){const t=_0x16086d['t'],_0x5d4338=_0x16086d['t'];switch(_0xc8c4ca){case i['Local']:return{'text':_0x5d4338('Insert'===_0x3e5d78?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x5d4338('From\x20computer')};case i['URL']:return{'text':'Insert'===_0x3e5d78?_0x5d4338('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x5d4338('Via\x20URL')};case i['Dropbox']:return{'text':t('Insert'===_0x3e5d78?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case i['Facebook']:return{'text':t('Insert'===_0x3e5d78?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case i['GDrive']:return{'text':t('Insert'===_0x3e5d78?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case i['GPhotos']:return{'text':t('Insert'===_0x3e5d78?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case i['OneDrive']:return{'text':t('Insert'===_0x3e5d78?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0xc8c4ca;}}class e extends _0xf38636{['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 _0x1d7ae7=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x462afa;for(const _0x444df5 in _0x1d7ae7){const _0x51533c=_0x444df5,_0x2df0cf=_0x1d7ae7[_0x51533c];if('uploadcareLicenseKeyValid'==_0x2df0cf||'uploadcareLicenseKeyInvalid'==_0x2df0cf||'uploadcareLicenseKeyExpired'==_0x2df0cf||'uploadcareLicenseKeyDomainLimit'==_0x2df0cf||'uploadcareLicenseKeyNotAllowed'==_0x2df0cf||'uploadcareLicenseKeyEvaluationLimit'==_0x2df0cf||'uploadcareLicenseKeyTrialLimit'==_0x2df0cf||'uploadcareLicenseKeyUsageLimit'==_0x2df0cf){delete _0x1d7ae7[_0x51533c],_0x462afa=_0x2df0cf,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x462afa&&_0x1d7ae7['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x462afa&&_0x1d7ae7['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x462afa&&_0x1d7ae7['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x462afa&&_0x1d7ae7['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x462afa&&_0x1d7ae7['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyTrialLimit'==_0x462afa&&_0x1d7ae7['_showLicenseError']('trialLimit'),'uploadcareLicenseKeyUsageLimit'==_0x462afa&&_0x1d7ae7['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x48b09e}=this,_0x1a7044=_0x48b09e['commands']['get']('uploadcare');if(!_0x1a7044)return;const _0x5527ed=this['_normalizeConfigSourceList'](_0x48b09e['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x3d7862,_0x377513)=>{const _0x1a245c=this['_getIntegrationKey'](_0x377513['type']);return _0x3d7862[_0x1a245c]||(_0x3d7862[_0x1a245c]=[]),_0x3d7862[_0x1a245c]['push'](_0x377513),_0x3d7862;},{});_0x48b09e['plugins']['has']('ImageInsertUI')&&_0x48b09e['commands']['get']('uploadcare')&&Object['entries'](_0x5527ed)['forEach'](([_0x2c68fd,_0x35dad6])=>{_0x48b09e['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x2c68fd,'observable':()=>_0x1a7044,'buttonViewCreator':()=>this['_createToolbarButton'](_0x35dad6),'formViewCreator':()=>this['_createDropdownButtons'](_0x35dad6),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x35dad6),'override':'assetManager'!==_0x2c68fd});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x43e520){const {locale:_0x1e5774}=this['editor'];return _0x43e520['map'](_0x51faac=>{const _0xec2ed1=_(_0x1e5774,_0x51faac,'Insert');switch(_0x51faac){case i['Local']:return{'icon':_0x31c404,'type':i['Local'],..._0xec2ed1};case i['URL']:return{'icon':_0x29f467,'type':i['URL'],..._0xec2ed1};case i['Dropbox']:return{'icon':_0xe40a39,'type':i['Dropbox'],..._0xec2ed1};case i['Facebook']:return{'icon':_0x33b9b6,'type':i['Facebook'],..._0xec2ed1};case i['GDrive']:return{'icon':_0xa5c6d9,'type':i['GDrive'],..._0xec2ed1};case i['GPhotos']:return{'icon':_0x55fad1,'type':i['GPhotos'],..._0xec2ed1};case i['OneDrive']:return{'icon':_0x7e97a7,'type':i['OneDrive'],..._0xec2ed1};}});}['_getIntegrationKey'](_0x4fbe56){switch(_0x4fbe56){case i['Local']:return'upload';case i['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x1d9f8c,_0x41d414){const _0x7db6e0=this['editor'],_0x26b813=new _0x1d9f8c(_0x7db6e0['locale']),_0x15985a=_0x7db6e0['commands']['get']('uploadcare');return _0x26b813['bind']('isEnabled')['to'](_0x15985a),_0x26b813['on']('execute',()=>{_0x15985a['execute'](_0x41d414);}),_0x26b813;}['_createToolbarButton'](_0x23c873){const {locale:_0x2980ca}=this['editor'],_0x478f4c=this['editor']['plugins']['get']('ImageInsertUI'),_0x2706cf=_0x23c873[0x0],_0x2808c3=this['_createButton'](_0x52b656,_0x2706cf['type']);return _0x2808c3['icon']=_0x2706cf['icon'],_0x2808c3['bind']('label')['to'](_0x478f4c,'isImageSelected',_0x162f59=>_(_0x2980ca,_0x2706cf['type'],_0x162f59?'Replace':'Insert')['text']),_0x2808c3['tooltip']=!0x0,_0x2808c3;}['_createDropdownButtons'](_0xce2cae){const {locale:_0x466251}=this['editor'],_0x7f722d=this['editor']['plugins']['get']('ImageInsertUI');return _0xce2cae['map'](_0x138452=>{const _0x81f5ca=this['_createButton'](_0x52b656,_0x138452['type']);return _0x81f5ca['withText']=!0x0,_0x81f5ca['icon']=_0x138452['icon'],_0x81f5ca['bind']('label')['to'](_0x7f722d,'isImageSelected',_0x301073=>_(_0x466251,_0x138452['type'],_0x301073?'Replace':'Insert')['text']),_0x81f5ca;});}['_createMenuBarButtons'](_0x457128){return _0x457128['map'](_0x452e3e=>{const _0xbf0adf=this['_createButton'](_0x380de1,_0x452e3e['type']);return _0xbf0adf['icon']=_0x452e3e['icon'],_0xbf0adf['label']=_0x452e3e['shortText'],_0xbf0adf;});}}class V extends _0x1028fe{['focusTracker'];['focusCycler'];constructor(_0x8ee38d){super(_0x8ee38d),this['focusTracker']=new _0xc3e5b8(),this['focusCycler']=new _0x320b59({'focusables':this['createCollection'](),'focusTracker':this['focusTracker']});}['getFocusableElement'](){return{'tag':'div','attributes':{'aria-hidden':'true','tabindex':'0'},'on':{'focus':this['bindTemplate']['to'](()=>{this['focusCycler']['fire']('forwardCycle');})}};}}class S extends V{constructor(_0x5c2cfd,_0x96f641){super(_0x5c2cfd),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-'+_0x96f641}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}}function C(_0x14915d,_0x66f5d8){const _0x1667e4=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x1fd8e0=>_0x1fd8e0<=_0x66f5d8)['map'](_0x150b2a=>_0x14915d['replace'](/\/$/,'')+'/-/resize/'+_0x150b2a+'x/\x20'+_0x150b2a+'w');return{'imageFallbackUrl':_0x14915d,'imageSources':[{'srcset':_0x1667e4['join'](',\x20'),'sizes':'(max-width:\x20'+_0x66f5d8+'px)\x20100vw,\x20'+_0x66f5d8+'px','type':'image/webp'}]};}function F(_0x2041c2,_0xb77078,_0x31b8d0){const _0x39db2d=_0x2041c2['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x39db2d?parseInt(_0x39db2d[0x1],0xa):_0xb77078,'height':_0x39db2d?parseInt(_0x39db2d[0x2],0xa):_0x31b8d0};}function p(_0x148e6a,_0x2eff1d){const _0x1de72f=new(_0x4e81f9())(),_0x457e03=_0x148e6a['plugins']['get']('ImageUtils'),_0x3cfc0d=_0x148e6a['editing']['mapper']['toViewElement'](_0x2eff1d),_0x5a0fb=_0x457e03['findViewImgElement'](_0x3cfc0d),_0x5245d5=_0x148e6a['editing']['view']['domConverter']['viewToDom'](_0x5a0fb),_0x145080=_0x2eff1d['getAttribute']('width'),_0x13aa8d=_0x2eff1d['getAttribute']('height'),_0x451e23='image-processing';_0x148e6a['editing']['view']['change'](_0x437113=>{_0x437113['addClass'](_0x451e23,_0x3cfc0d),_0x437113['setStyle']('aspect-ratio',_0x145080+'/'+_0x13aa8d,_0x5a0fb);}),_0x1de72f['listenTo'](_0x5245d5,'load',()=>{_0x1de72f['stopListening'](_0x5245d5,'load'),_0x148e6a['editing']['view']['change'](_0x5cef64=>{_0x5cef64['removeClass'](_0x451e23,_0x3cfc0d),_0x5cef64['removeStyle']('aspect-ratio',_0x5a0fb);});});}function R(_0x34cb06){if(Array['isArray'](_0x34cb06)){const _0x33f4ef=_0x34cb06['map'](R);return _0x1904f7=>_0x33f4ef['some'](_0x4a2a38=>_0x4a2a38(_0x1904f7));}if('origin'==_0x34cb06){const _0x569f06=_0x5b66cb['window']['location']['origin'];return _0x2c560a=>new URL(_0x2c560a,_0x5b66cb['document']['baseURI'])['origin']==_0x569f06;}return'function'==typeof _0x34cb06?_0x34cb06:_0x34cb06 instanceof RegExp?_0x15c0d8=>!(!_0x15c0d8['match'](_0x34cb06)&&!_0x15c0d8['replace'](/^https?:\/\//,'')['match'](_0x34cb06)):()=>!0x1;}function M(_0x1b0694,_0xd81b12){return _0x28d403(_0x1b0694['target'])['includes'](_0xd81b12);}class n extends/* #__PURE__ -- @preserve */
|
|
24
|
-
_0x59bb24(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x54d715,_0x2b9cc7,_0x1fabe9){super(),this['_editor']=_0x54d715,this['_editing']=_0x2b9cc7,this['_dialog']=_0x54d715['plugins']['get'](_0x5f1377),this['_api']=_0x2b9cc7['ctxElement']['getAPI'](),this['_type']=_0x1fabe9,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:_0x442201,model:_0x35867d}=this['_editor'],_0x2bb752=_0x35867d['document']['selection']['getSelectedElement'](),_0x57f8f1=_0x2bb752&&(_0x2bb752['is']('element','imageBlock')||_0x2bb752['is']('element','imageInline'));this['_formView']=new S(_0x442201,this['_editing']['ucContextId']),this['_dialog']['show']({'id':'uploadCare','icon':_0x31c404,'title':_(_0x442201,this['_type'],_0x57f8f1?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x16cfb1['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x53a7d1=>!M(_0x53a7d1,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x21fb9d}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x282aff=>{const _0x585b07=_0x21fb9d['length'];for(const _0x1ad9bd of _0x21fb9d){const _0x64cba0=_0x1ad9bd===_0x21fb9d[_0x585b07-0x1],{cdnUrl:_0x3dccff,fileInfo:_0x27cc60}=_0x1ad9bd;if(!_0x3dccff||!_0x27cc60)continue;const {width:_0x182665,height:_0x4afa7e}=_0x27cc60['imageInfo'],_0x47f770=F(_0x3dccff,_0x182665,_0x4afa7e),_0xb841dc=C(_0x3dccff,_0x47f770['width']),_0x3ac941={'id':_0x27cc60['uuid'],'type':'image','attributes':{'imageDimension':_0x47f770,..._0xb841dc}};this['_insertAsset'](_0x3ac941,_0x64cba0,_0x282aff);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x5bec5c=>{'idle'===_0x5bec5c['detail']['status']&&!_0x5bec5c['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===i['Local']?this['_api']['setCurrentActivity'](i['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x209a86,_0x308e4b,_0x3d9268){const _0x1856d1=this['_editor']['model']['document']['selection'],_0x4fc2ae=_0x1856d1['getSelectedElement'](),_0x1471d4=!(!_0x4fc2ae||!_0x4fc2ae['is']('element','imageInline'));_0x3d9268['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x209a86,_0x1471d4),_0x308e4b||_0x3d9268['setSelection'](_0x1856d1['getLastPosition']());}['_insertImage'](_0x103dd1,_0x40fdd9){const _0x301e6c=this['_editor'],{imageDimension:_0x43af01,imageFallbackUrl:_0x5eeebf,imageSources:_0x1500ae}=_0x103dd1['attributes'];_0x301e6c['execute']('insertImage',{'imageType':_0x40fdd9?'imageInline':null,'source':{'uploadcareImageId':_0x103dd1['id'],'src':_0x5eeebf,'sources':_0x1500ae,..._0x43af01}});}}class w extends _0x392ed7{['_editing'];['_controller']=null;static get['requires'](){return[_0x5f1377,o];}constructor(_0x579464){super(_0x579464),this['_editing']=_0x579464['plugins']['get'](o);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x5d5a1d){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new n(this['editor'],this['_editing'],_0x5d5a1d);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class j{static['upload']({file:_0xeefb46,..._0x216f58}){return _0x49f3ab(_0xeefb46,_0x216f58);}static['getInfo'](_0x152dd6,_0x1ca375){return _0x278478(_0x152dd6,_0x1ca375);}}class f extends _0xf38636{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x2b8b93,o];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x2a3a62=this['editor'];if(!!!_0x2a3a62['config']['get']('uploadcare'))return;_0x2a3a62['plugins']['get'](_0x2b8b93)['createUploadAdapter']=_0x11b184=>new k(_0x11b184,_0x2a3a62),_0x2a3a62['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x13cd40,{imageElement:_0x3be15c,data:_0x2dd286})=>{_0x2a3a62['model']['change'](_0x56554c=>{_0x56554c['setAttribute']('uploadcareImageId',_0x2dd286['uploadcareImageId'],_0x3be15c);});});}}class k{['loader'];['editor'];['controller'];constructor(_0x1ac07a,_0x40639f){this['loader']=_0x1ac07a,this['editor']=_0x40639f,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x2f8851=await this['loader']['file'];return j['upload']({'file':_0x2f8851,'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':_0x55ba00=>{_0x55ba00&&_0x55ba00['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x55ba00['value']);}})['then'](async _0x12844e=>{const {imageFallbackUrl:_0x4a9ca9,imageSources:_0x200322}=C(_0x12844e['cdnUrl'],_0x12844e['imageInfo']['width']);return{'uploadcareImageId':_0x12844e['uuid'],'default':_0x4a9ca9,'sources':_0x200322};})['catch'](()=>{const _0x181c91=t('Cannot\x20upload\x20file:')+('\x20'+_0x2f8851['name']+'.');return Promise['reject'](_0x181c91);});}['abort'](){this['controller']['abort']();}}class o extends _0xf38636{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',f,_0x5f1377];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['ucContextId'];get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}constructor(_0x4b9548){super(_0x4b9548),this['ucContextId']=_0x4c54e9();}['init'](){const _0x1d8015=this['editor'];_0x1d8015['commands']['add']('uploadcare',new w(_0x1d8015));}['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 _0x4f7ad0=_0x5b66cb['document']['querySelector']('input[uploadcare-file-input]');_0x4f7ad0&&_0x4f7ad0['remove']();}),async function(_0x134863){const _0x509a2d=_0x1baded([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]),_0x137589=0x535f8c3a,_0x48f506=0x5358f7da^_0x137589,_0x515e1a=window[_0x1baded([0x44,0x61,0x74,0x65])][_0x1baded([0x6e,0x6f,0x77])](),_0x2d5eb2=_0x134863[_0x1baded([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x113b2f=new window[(_0x1baded([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x57f560=>{_0x2d5eb2[_0x1baded([0x6f,0x6e,0x63,0x65])](_0x1baded([0x72,0x65,0x61,0x64,0x79]),_0x57f560);}),_0x515861={[_0x1baded([0x6b,0x74,0x79])]:_0x1baded([0x45,0x43]),[_0x1baded([0x75,0x73,0x65])]:_0x1baded([0x73,0x69,0x67]),[_0x1baded([0x63,0x72,0x76])]:_0x1baded([0x50,0x2d,0x32,0x35,0x36]),[_0x1baded([0x78])]:_0x1baded([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]),[_0x1baded([0x79])]:_0x1baded([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]),[_0x1baded([0x61,0x6c,0x67])]:_0x1baded([0x45,0x53,0x32,0x35,0x36])},_0x55cc5f=_0x2d5eb2[_0x1baded([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x1baded([0x67,0x65,0x74])](_0x1baded([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x1a4020(){let _0x1ef93c,_0x310c64=null,_0x3e51fc=null;try{if(_0x55cc5f==_0x1baded([0x47,0x50,0x4c]))return _0x1baded([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x1ef93c=_0x5e09e3(),!_0x1ef93c)return _0x1baded([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x1ef93c[_0x1baded([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x3e51fc=_0xad805b(_0x1ef93c[_0x1baded([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x1ef93c[_0x1baded([0x6a,0x74,0x69])])),await _0x3a59cf()?_0xbd6aeb()?_0xcad6b3()?_0x1baded([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0xde4bc2()?(_0x1ef93c[_0x1baded([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x1baded([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x310c64=_0x3383d1(_0x1baded([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x1ef93c[_0x1baded([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x1baded([0x74,0x72,0x69,0x61,0x6c])&&(_0x310c64=_0x3383d1(_0x1baded([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x13f1ba()):_0x1baded([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x1baded([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x1baded([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x1baded([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0xcad6b3(){const _0x531777=[_0x1baded([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x1baded([0x74,0x72,0x69,0x61,0x6c])][_0x1baded([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1ef93c[_0x1baded([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x515e1a/0x3e8:0xe10*_0x48f506;return _0x1ef93c[_0x1baded([0x65,0x78,0x70])]<_0x531777;}function _0xbd6aeb(){const _0x51edfd=_0x1ef93c[_0x1baded([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x51edfd&&(!!_0x51edfd[_0x1baded([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1baded([0x2a]))||!!_0x51edfd[_0x1baded([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1baded([0x55,0x50,0x4c,0x43])));}function _0xde4bc2(){const _0x135369=_0x1ef93c[_0x1baded([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x135369||0x0==_0x135369[_0x1baded([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x262ebb}=new URL(window[_0x1baded([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x135369[_0x1baded([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x262ebb))return!0x0;const _0x34ec04=_0x262ebb[_0x1baded([0x73,0x70,0x6c,0x69,0x74])](_0x1baded([0x2e]));return _0x135369[_0x1baded([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x45db86=>_0x45db86[_0x1baded([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1baded([0x2a])))[_0x1baded([0x6d,0x61,0x70])](_0x88b04a=>_0x88b04a[_0x1baded([0x73,0x70,0x6c,0x69,0x74])](_0x1baded([0x2e])))[_0x1baded([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x3603f9=>_0x3603f9[_0x1baded([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x34ec04[_0x1baded([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x1baded([0x6d,0x61,0x70])](_0x23716d=>Array(_0x34ec04[_0x1baded([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x23716d[_0x1baded([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x1baded([0x66,0x69,0x6c,0x6c])](_0x23716d[0x0]===_0x1baded([0x2a])?_0x1baded([0x2a]):'')[_0x1baded([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x23716d))[_0x1baded([0x73,0x6f,0x6d,0x65])](_0x4d086e=>_0x34ec04[_0x1baded([0x65,0x76,0x65,0x72,0x79])]((_0x9f069e,_0x277c43)=>_0x4d086e[_0x277c43]===_0x9f069e||_0x4d086e[_0x277c43]===_0x1baded([0x2a])));}function _0x13f1ba(){return _0x310c64&&_0x3e51fc?new window[(_0x1baded([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4820b5,_0x282171)=>{_0x310c64[_0x1baded([0x74,0x68,0x65,0x6e])](_0x4820b5,_0x282171),_0x3e51fc[_0x1baded([0x74,0x68,0x65,0x6e])](_0x44ffb5=>{_0x44ffb5!=_0x1baded([0x56,0x61,0x6c,0x69,0x64])&&_0x4820b5(_0x44ffb5);},_0x282171);}):_0x310c64||_0x3e51fc||_0x1baded([0x56,0x61,0x6c,0x69,0x64]);}}function _0xad805b(_0x134089,_0x546ff1){return new window[(_0x1baded([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x389445=>{if(_0xc88d2b())return _0x389445(_0x1baded([0x56,0x61,0x6c,0x69,0x64]));_0xd57cf0(),_0x2d5eb2[_0x1baded([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x1baded([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x4ee0ec=!0x1;const _0x2839e1=_0x4c54e9();function _0x1ccd1f(_0x353f85){return!!_0x353f85&&(typeof _0x353f85===_0x1baded([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x353f85===_0x1baded([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x353f85[_0x1baded([0x74,0x68,0x65,0x6e])]===_0x1baded([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x353f85[_0x1baded([0x63,0x61,0x74,0x63,0x68])]===_0x1baded([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x1be6f7(_0x2e570c){_0xdd4d1b(_0x2e570c)[_0x1baded([0x74,0x68,0x65,0x6e])](_0x26af42=>{if(!_0x26af42||_0x26af42[_0x1baded([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x1baded([0x6f,0x6b]))return _0x1baded([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x411582(_0x42ca4b(_0x2839e1+_0x546ff1))!=_0x26af42[_0x1baded([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x1baded([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x1baded([0x56,0x61,0x6c,0x69,0x64]);})[_0x1baded([0x74,0x68,0x65,0x6e])](_0x20d32e=>(_0x5de448(),_0x20d32e),()=>{const _0x3f6830=_0x595167();return null==_0x3f6830?(_0x5de448(),_0x1baded([0x56,0x61,0x6c,0x69,0x64])):_0x1baded(_0x515e1a-_0x3f6830>(0x7753083a^_0x137589)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x1baded([0x74,0x68,0x65,0x6e])](_0x389445)[_0x1baded([0x63,0x61,0x74,0x63,0x68])](()=>{_0x389445(_0x1baded([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x29d1dd=0x536962ba^_0x137589;function _0x5de448(){const _0x110548=_0x1baded([0x6c,0x6c,0x63,0x74,0x2d])+_0x411582(_0x42ca4b(_0x134089)),_0x5544d0=_0x303ce5(_0x411582(window[_0x1baded([0x4d,0x61,0x74,0x68])][_0x1baded([0x63,0x65,0x69,0x6c])](_0x515e1a/_0x29d1dd)));window[_0x1baded([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x1baded([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x110548,_0x5544d0);}function _0x595167(){const _0x2ba98c=_0x1baded([0x6c,0x6c,0x63,0x74,0x2d])+_0x411582(_0x42ca4b(_0x134089)),_0x49fb31=window[_0x1baded([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x1baded([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2ba98c);return _0x49fb31?window[_0x1baded([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x303ce5(_0x49fb31),0x10)*_0x29d1dd:null;}function _0xdd4d1b(_0x752c1a){return new window[(_0x1baded([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x40aa5d,_0x103552)=>{_0x752c1a[_0x1baded([0x74,0x68,0x65,0x6e])](_0x40aa5d,_0x103552),window[_0x1baded([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x103552,0x535e58fa^_0x137589);});}}_0x2d5eb2[_0x1baded([0x6f,0x6e])](_0x1baded([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x55f8dc,_0x583d8d)=>{if(_0x583d8d[0x0]!=_0x134089)return _0x389445(_0x1baded([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x583d8d[0x1]={..._0x583d8d[0x1],[_0x1baded([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x2839e1};},{[_0x1baded([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x1baded([0x68,0x69,0x67,0x68])}),_0x2d5eb2[_0x1baded([0x6f,0x6e])](_0x1baded([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0xa91099=>{_0x1ccd1f(_0xa91099[_0x1baded([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x4ee0ec=!0x0,_0x1be6f7(_0xa91099[_0x1baded([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x1baded([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x1baded([0x6c,0x6f,0x77])}),_0x113b2f[_0x1baded([0x74,0x68,0x65,0x6e])](()=>{_0x4ee0ec||_0x389445(_0x1baded([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0xc88d2b(){return _0x2d5eb2[_0x1baded([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1baded([0x76,0x69,0x65,0x77])][_0x1baded([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x1baded([0x61,0x75,0x74,0x6f]);}function _0xd57cf0(){_0x2d5eb2[_0x1baded([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1baded([0x76,0x69,0x65,0x77])][_0x1baded([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x1baded([0x61,0x75,0x74,0x6f]);}}function _0x3383d1(_0x892355){const _0x21b98e=[new window[(_0x1baded([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1992d2=>setTimeout(_0x1992d2,0x5356b2f6^_0x137589)),_0x113b2f[_0x1baded([0x74,0x68,0x65,0x6e])](()=>new window[(_0x1baded([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5561d9=>{let _0x49717d=0x0;_0x2d5eb2[_0x1baded([0x6d,0x6f,0x64,0x65,0x6c])][_0x1baded([0x6f,0x6e])](_0x1baded([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x540704,_0x1a7d20)=>{_0x1a7d20[0x0][_0x1baded([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x49717d++,_0x49717d==(0x535f8dc2^_0x137589)&&(_0x5561d9(),_0x540704[_0x1baded([0x6f,0x66,0x66])]());});}))];return window[_0x1baded([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x1baded([0x72,0x61,0x63,0x65])](_0x21b98e)[_0x1baded([0x74,0x68,0x65,0x6e])](()=>_0x892355);}async function _0x233ea2(){await _0x113b2f,_0x2d5eb2[_0x1baded([0x6d,0x6f,0x64,0x65,0x6c])][_0x1baded([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x3bdd42,_0x2d5eb2[_0x1baded([0x6d,0x6f,0x64,0x65,0x6c])][_0x1baded([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x3bdd42,_0x2d5eb2[_0x1baded([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x1baded([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x5377a0(_0x11933b){const _0x4d0562=_0x17767f();_0x2d5eb2[_0x4d0562]=_0x1baded([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x11933b,_0x11933b!=_0x1baded([0x56,0x61,0x6c,0x69,0x64])&&_0x233ea2();}function _0x17767f(){const _0x1e14e4=window[_0x1baded([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x1baded([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x1baded([0x6e,0x6f,0x77])]())[_0x1baded([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x1baded([0x2e]),'');let _0x1f378a=_0x1baded([0x68]);for(let _0x319fe1=0x0;_0x319fe1<_0x1e14e4[_0x1baded([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x319fe1+=0x2){let _0x5300d0=window[_0x1baded([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1e14e4[_0x1baded([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x319fe1,_0x319fe1+0x2));_0x5300d0>=_0x509a2d[_0x1baded([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x5300d0-=_0x509a2d[_0x1baded([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x1f378a+=_0x509a2d[_0x5300d0];}return _0x1f378a;}function _0x5e09e3(){const _0x33648b=_0x55cc5f[_0x1baded([0x73,0x70,0x6c,0x69,0x74])](_0x1baded([0x2e]));if(0x3!=_0x33648b[_0x1baded([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x28eae6(_0x33648b[0x1]);function _0x28eae6(_0x22e2bd){const _0x5d25d7=_0xbffa64(_0x22e2bd);return _0x5d25d7&&_0x5ef7f5()?_0x5d25d7:null;function _0x5ef7f5(){const _0x5ebecc=_0x5d25d7[_0x1baded([0x6a,0x74,0x69])],_0x535c90=window[_0x1baded([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5ebecc[_0x1baded([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x5ebecc[_0x1baded([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x21015b={..._0x5d25d7,[_0x1baded([0x6a,0x74,0x69])]:_0x5ebecc[_0x1baded([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x5ebecc[_0x1baded([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x21015b[_0x1baded([0x76,0x63])],_0x42ca4b(_0x21015b)==_0x535c90;}}}async function _0x3a59cf(){let _0x1ebb2c=!0x0;try{const _0x4a1458=_0x55cc5f[_0x1baded([0x73,0x70,0x6c,0x69,0x74])](_0x1baded([0x2e])),[_0x4dc053,_0x3161df,_0x287edb]=_0x4a1458;return _0x49c6bf(_0x4dc053),await _0x1bae5c(_0x4dc053,_0x3161df,_0x287edb),_0x1ebb2c;}catch{return!0x1;}function _0x49c6bf(_0x588fa8){const _0xf947d1=_0xbffa64(_0x588fa8);_0xf947d1&&_0xf947d1[_0x1baded([0x61,0x6c,0x67])]==_0x1baded([0x45,0x53,0x32,0x35,0x36])||(_0x1ebb2c=!0x1);}async function _0x1bae5c(_0xa48d10,_0x4ea2a4,_0x2a9883){const _0x40b8b2=window[_0x1baded([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x1baded([0x66,0x72,0x6f,0x6d])](_0x36280c(_0x2a9883),_0x206fbe=>_0x206fbe[_0x1baded([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x48b4a4=new window[(_0x1baded([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x1baded([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0xa48d10+_0x1baded([0x2e])+_0x4ea2a4),_0x41e2ab=window[_0x1baded([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x1baded([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x41e2ab)return;const _0x3f4cb1=await _0x41e2ab[_0x1baded([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x1baded([0x6a,0x77,0x6b]),_0x515861,{[_0x1baded([0x6e,0x61,0x6d,0x65])]:_0x1baded([0x45,0x43,0x44,0x53,0x41]),[_0x1baded([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x1baded([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x1baded([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x41e2ab[_0x1baded([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x1baded([0x6e,0x61,0x6d,0x65])]:_0x1baded([0x45,0x43,0x44,0x53,0x41]),[_0x1baded([0x68,0x61,0x73,0x68])]:{[_0x1baded([0x6e,0x61,0x6d,0x65])]:_0x1baded([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x3f4cb1,_0x40b8b2,_0x48b4a4)||(_0x1ebb2c=!0x1);}}function _0xbffa64(_0xf6b516){return _0xf6b516[_0x1baded([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x1baded([0x65,0x79]))?JSON[_0x1baded([0x70,0x61,0x72,0x73,0x65])](_0x36280c(_0xf6b516)):null;}function _0x36280c(_0x170095){return window[_0x1baded([0x61,0x74,0x6f,0x62])](_0x170095[_0x1baded([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x1baded([0x2b]))[_0x1baded([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x1baded([0x2f])));}function _0x42ca4b(_0x48f7f3){let _0x5b6250=0x1505;function _0xf2e19b(_0x406a7b){for(let _0x492138=0x0;_0x492138<_0x406a7b[_0x1baded([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x492138++){const _0x1ede1c=_0x406a7b[_0x1baded([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x492138);_0x5b6250=(_0x5b6250<<0x5)+_0x5b6250+_0x1ede1c,_0x5b6250&=_0x5b6250;}}function _0x9de2d6(_0x32dd4b){Array[_0x1baded([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x32dd4b)?_0x32dd4b[_0x1baded([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x9de2d6):_0x32dd4b&&typeof _0x32dd4b==_0x1baded([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x1baded([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x32dd4b)[_0x1baded([0x73,0x6f,0x72,0x74])]()[_0x1baded([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x193098,_0x13cb4])=>{_0xf2e19b(_0x193098),_0x9de2d6(_0x13cb4);}):_0xf2e19b(window[_0x1baded([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x32dd4b));}return _0x9de2d6(_0x48f7f3),_0x5b6250>>>0x0;}function _0x411582(_0x39fd4d){return _0x39fd4d[_0x1baded([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x1baded([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x1baded([0x30]));}function _0x303ce5(_0x7e1fae){return _0x7e1fae[_0x1baded([0x73,0x70,0x6c,0x69,0x74])]('')[_0x1baded([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x1baded([0x6a,0x6f,0x69,0x6e])]('');}function _0x3bdd42(){}function _0x1baded(_0xa9040){return _0xa9040['map'](_0x59c2b4=>String['fromCharCode'](_0x59c2b4))['join']('');}_0x5377a0(await _0x1a4020());}(this);}['_initSchema'](){const _0x2363ea=this['editor']['model']['schema'];_0x2363ea['isRegistered']('imageBlock')&&_0x2363ea['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x2363ea['isRegistered']('imageInline')&&_0x2363ea['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x238779=this['editor'];_0x238779['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x238779['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x271da2=>_0x271da2['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x5d5ff4=_0x238779['commands']['get']('replaceImageSource');_0x5d5ff4&&this['listenTo'](_0x5d5ff4,'cleanupImage',(_0x5a30f0,[_0x5c766b,_0x2336e0])=>{_0x5c766b['removeAttribute']('uploadcareImageId',_0x2336e0);});}['_initConfig'](){const _0x12b2fc=this['editor']['config']['get']('uploadcare.uploader')||{},_0x364610=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x35d2c7(_0x5b66cb['document'],'uc-config',{..._0x12b2fc,'pubkey':_0x364610,'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']=_0x2cf4fe=>{if('closeMax'==_0x2cf4fe)return'#uc-icon-arrow-down';},_0x5b66cb['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x35d2c7(_0x5b66cb['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader-'+this['ucContextId']}),_0x5b66cb['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x2e364d=this['editor']['commands']['get']('insertImage');_0x2e364d&&this['listenTo'](_0x2e364d,'execute',()=>{const _0x1489a3=this['editor']['model']['document']['selection']['getSelectedElement']();_0x1489a3&&_0x1489a3['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x1489a3);});});const _0x513928=this['editor']['commands']['get']('uploadcareImageReplace');_0x513928&&this['listenTo'](_0x513928,'execute',()=>{const _0x3de0aa=this['editor']['model']['document']['selection']['getSelectedElement']();_0x3de0aa&&_0x3de0aa['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x3de0aa);});});}}class tt extends _0xf38636{static get['requires'](){return[o,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x43d2ac){super(_0x43d2ac),_0x43d2ac['config']['define']('uploadcare.uploader.sourceList',[i['Local'],i['URL']]),_0x36873e['defineComponents'](_0x36873e),this['_defineLocale']();}['_defineLocale'](){const _0x2cdaae=this['editor']['config']['get']('uploadcare.locale'),_0x2190eb=this['editor']['locale']['contentLanguage'];_0x2cdaae&&_0x36873e['defineLocale'](_0x2190eb,_0x2cdaae);}}class ii extends _0x1028fe{constructor(_0x4c528b){super(_0x4c528b);const t=_0x4c528b['t'],_0x5ac325=this['bindTemplate'],_0x119521=new _0x2a9dcb();_0x119521['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':[_0x119521,{'text':_0x5ac325['to']('imageUploadProgress',_0x5673ce=>t('Loading\x20image...')+'\x20('+(_0x5673ce||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 _0x1028fe{constructor(_0x20dc80){super(_0x20dc80);const t=_0x20dc80['t'];this['set']('errorType',null);const _0x5d2c30=new _0x52b656(_0x20dc80);_0x5d2c30['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x5d2c30['withText']=!0x0,_0x5d2c30['class']='ck-button-action',_0x5d2c30['on']('execute',()=>{this['fire']('retry');}),_0x5d2c30['bind']('isVisible')['to'](this,'errorType',_0x1e4f45=>'NotFound'!==_0x1e4f45);const _0x20a33e=new _0x3dae89();_0x20a33e['content']=_0x10dfd5,_0x20a33e['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x2c536b=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':[_0x20a33e,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x2c536b['to']('errorType',_0x55a408=>t('NotFound'!==_0x55a408?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x5d2c30]},{'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 _0x1028fe{constructor(_0x41d2f9,_0x1c18b5){super(_0x41d2f9);const _0x34265f=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x1c18b5,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x34265f['to']('imageSrc')}});}}class X extends V{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x1bf8da,_0x31a40d,_0x4280c7){super(_0x1bf8da),this['_items']=this['createCollection'](),this['_loadingView']=new ii(_0x1bf8da),this['_errorView']=new ti(_0x1bf8da),this['_editingView']=new ei(_0x1bf8da,_0x4280c7),this['_focusableView']=new _0x1028fe(_0x1bf8da),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x31a40d),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'],_0x518828=>{this['_addUploadcareImageEditorListeners'](_0x518828);});}),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'](_0x2cc399,_0xcfeffc){const _0x2cd156='uc-cloud-image-editor',_0x2e54c2=_0x2cc399['querySelector'](_0x2cd156);if(_0x2e54c2)return _0xcfeffc(_0x2e54c2);const _0xa933c0=new MutationObserver(_0x577b06=>{const _0x21e896=_0x577b06['filter'](_0x1c8b12=>_0x1c8b12['target']===_0x2cc399&&_0x1c8b12['addedNodes']['length']>0x0&&_0x1c8b12['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x2cd156);_0x21e896['length']&&(_0xa933c0['disconnect'](),_0xcfeffc(_0x21e896[0x0]['addedNodes'][0x0]));});_0xa933c0['observe'](_0x2cc399,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x2994b9){_0x2994b9['addEventListener']('apply',_0x4604c8=>{this['fire']('apply',{'imageSrc':_0x4604c8['detail']['cdnUrl']});}),_0x2994b9['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class E extends/* #__PURE__ -- @preserve */
|
|
25
|
-
_0x59bb24(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x36310a,_0x4f397e,_0x2a0121){super(),this['_editor']=_0x36310a,this['_dialog']=_0x4f397e,this['_imageElement']=_0x2a0121,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 _0x342fd4=this['_imageElement'],_0x136ccc=_0x342fd4['getAttribute']('uploadcareImageId'),_0xd88456=_0x342fd4['getAttribute']('src');if(_0x136ccc)await this['_loadImageInfo'](_0x136ccc,_0xd88456);else{if(this['_imageCache']['has'](_0xd88456)){const _0x514ab3=this['_imageCache']['get'](_0xd88456);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x514ab3['url'],this['imageDimension']=_0x514ab3['dimension'],this['imageId']=_0x514ab3['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x4472e0}=this['_editor'],t=_0x4472e0['t'],_0x31b014=new X(_0x4472e0,this['imageStatus'],this['_attributes']);_0x31b014['bind']('status')['to'](this,'imageStatus'),_0x31b014['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x31b014['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x31b014['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x31b014,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x2173fe,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x31b014,'position':_0x16cfb1['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x31b014['focus']();},'onHide':()=>{_0x31b014['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0xa33e04=>!M(_0xa33e04,_0x31b014['element'])}});}['_loadImageInfo'](_0x15e847,_0x2142b1){return j['getInfo'](_0x15e847,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl')})['then'](_0x3c6f06=>{const {width:_0xc5931f,height:_0x5caacb}=_0x3c6f06['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x2142b1,this['imageDimension']={'width':_0xc5931f,'height':_0x5caacb},this['imageId']=_0x15e847;})['catch'](_0x2cd2d4=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x2cd2d4['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x130737,_0x560d48){return this['_getImageAsFile'](_0x130737)['then'](_0x4b82ca=>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':_0x560d48['signal'],'file':_0x4b82ca,'onProgress':_0xf2cdab=>{_0xf2cdab&&_0xf2cdab['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0xf2cdab['value']));}}))['then'](_0x38a147=>{const {width:_0x511fb7,height:_0x3126fb}=_0x38a147['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x38a147['cdnUrl'],this['imageDimension']={'width':_0x511fb7,'height':_0x3126fb},this['imageId']=_0x38a147['uuid'],this['imageUploadProgress']=null;const _0x74add4=_0x130737['getAttribute']('src');this['_imageCache']['set'](_0x74add4,{'id':_0x38a147['uuid'],'url':_0x38a147['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x2a8149=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x2a8149['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x2abeec,_0x156a7b){_0x2abeec['on']('apply',(_0x273c9,_0xd54a1a)=>{this['_replaceImage'](_0x156a7b,_0xd54a1a['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x2abeec['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x2abeec['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x9d0c5,_0x1c6a11,_0x58efaa){const _0x386e32=this['_editor'],{width:_0x341af1,height:_0xfc759e}=F(_0x1c6a11,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x5b5422,imageSources:_0x4fa460}=C(_0x1c6a11,_0x341af1);_0x386e32['model']['change'](_0x2517fa=>{if('$graveyard'===_0x9d0c5['root']['rootName']){_0x386e32['execute']('insertImage',{'imageType':_0x9d0c5['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x9d0c5['getAttributes']()),'uploadcareImageId':_0x58efaa,'src':_0x5b5422,'sources':_0x4fa460,'width':_0x341af1,'height':_0xfc759e}});const _0x56297c=_0x9d0c5['getChildren']();_0x9d0c5=_0x386e32['model']['document']['selection']['getSelectedElement']();for(const _0x15ceb8 of _0x56297c)_0x2517fa['append'](_0x2517fa['cloneElement'](_0x15ceb8),_0x9d0c5);}else _0x2517fa['setSelection'](_0x9d0c5,'on'),_0x386e32['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x9d0c5['getAttributes']()),'uploadcareImageId':_0x58efaa,'src':_0x5b5422,'sources':_0x4fa460,'width':_0x341af1,'height':_0xfc759e},_0x9d0c5);_0x2517fa['setSelection'](_0x9d0c5,'on');});}async['_getImageAsFile'](_0x2a10a4){const _0x5ea3a1=_0x5b66cb['window'],_0x2df3c9=_0x5b66cb['document']['location']['href'],_0x4bc8b6=new _0x5ea3a1['URL'](_0x2a10a4['getAttribute']('src'),_0x2df3c9);if('data:'===_0x4bc8b6['protocol']){const _0x475f4a=_0x4bc8b6['href']['split'](','),_0xcbe241=_0x475f4a[0x0]['match'](/:(.*?);/)[0x1],_0x3f27a6=_0xcbe241['split']('/')[0x1],_0x23ece4=_0x5ea3a1['atob'](_0x475f4a[_0x475f4a['length']-0x1]);let _0x19e3ad=_0x23ece4['length'];const _0x5e793b=new _0x5ea3a1['Uint8Array'](_0x19e3ad);for(;_0x19e3ad--;)_0x5e793b[_0x19e3ad]=_0x23ece4['charCodeAt'](_0x19e3ad);return new _0x5ea3a1['File']([_0x5e793b],'image.'+_0x3f27a6,{'type':_0xcbe241});}const _0x207c4f=_0x4bc8b6['href']['split']('/'),_0x42fcdd=_0x207c4f[_0x207c4f['length']-0x1],_0x3e8785=_0x42fcdd['split']('.')[0x1];return _0x5ea3a1['fetch'](_0x4bc8b6['href'])['then'](_0x4b904a=>_0x4b904a['clone']()['blob']())['then'](_0x350b5d=>new _0x5ea3a1['File']([_0x350b5d],_0x42fcdd,{'type':'image/'+_0x3e8785}));}}class N extends _0x392ed7{['imageEditController'];static get['requires'](){return[_0x5f1377];}['_isEditable'];constructor(_0x557d50){super(_0x557d50),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x257dda){const _0x12529e=R(_0x257dda);return _0x25a15d=>!(!_0x25a15d||!_0x25a15d['is']('element','imageBlock')&&!_0x25a15d['is']('element','imageInline'))&&(!!_0x25a15d['hasAttribute']('uploadcareImageId')||!!_0x25a15d['hasAttribute']('src')&&_0x12529e(_0x25a15d['getAttribute']('src')));}(_0x557d50['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x3f68ae=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x3f68ae);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x2df776=this['editor']['model']['document']['selection']['getSelectedElement']();_0x2df776&&(_0x2df776['is']('element','imageBlock')||_0x2df776['is']('element','imageInline'))&&(this['imageEditController']=new E(this['editor'],this['editor']['plugins']['get'](_0x5f1377),_0x2df776),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class O extends _0x392ed7{['refresh'](){const _0x5bcc5f=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x5bcc5f&&(_0x5bcc5f['is']('element','imageBlock')||_0x5bcc5f['is']('element','imageInline')));}['execute'](_0xc6b978){const _0x416484=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x40ab92=>{_0x40ab92['setAttributes'](_0xc6b978,_0x416484),_0x40ab92['removeAttribute']('srcset',_0x416484),_0x40ab92['removeAttribute']('sizes',_0x416484);});}}class m extends _0xf38636{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[o,_0xaf71b,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x383996}=this;_0x383996['commands']['add']('uploadcareImageEdit',new N(_0x383996)),_0x383996['commands']['add']('uploadcareImageReplace',new O(_0x383996));}}class g extends _0xf38636{['_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 _0x1f5a41=this['editor'];_0x1f5a41['ui']['componentFactory']['add']('uploadcareImageEdit',_0x2a454e=>{const _0x589676=_0x1f5a41['commands']['get']('uploadcareImageEdit'),_0x40bf94=new _0x52b656(_0x2a454e),t=_0x2a454e['t'];return _0x40bf94['set']({'icon':_0x2173fe,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x40bf94['bind']('isEnabled')['to'](_0x589676),_0x40bf94['bind']('isOn')['to'](_0x589676,'isActive'),this['listenTo'](_0x40bf94,'execute',()=>{_0x1f5a41['execute']('uploadcareImageEdit'),_0x1f5a41['editing']['view']['focus']();}),_0x40bf94;}),this['_initConfig']();}['_initConfig'](){const _0x3466b4=_0x35d2c7(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x3466b4),this['listenTo'](this['editor'],'destroy',()=>{_0x3466b4['remove']();});}}class et extends _0xf38636{static get['pluginName'](){return'UploadcareImageEdit';}static get['requires'](){return[m,g];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{tt as Uploadcare,w as UploadcareCommand,o as UploadcareEditing,et as UploadcareImageEdit,N as UploadcareImageEditCommand,m as UploadcareImageEditEditing,g as UploadcareImageEditUI,e as UploadcareUI,f as UploadcareUploadAdapter};
|
|
23
|
+
import{Plugin as _0x276e86,Command as _0x4829b3}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x4afe5c,IconGooglePhotos as _0x307cc6,IconGoogleDrive as _0x2a773c,IconFacebook as _0x49b029,IconDropbox as _0x43c6f1,IconUploadcareLink as _0x3bea44,IconUploadcareImageUpload as _0x1e2f4e,IconError as _0x14565b,IconUploadcareImageEdit as _0x1baeca}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x54f1bd,MenuBarMenuListItemButtonView as _0x2a4400,View as _0x248bc7,FocusCycler as _0x4c41ec,Dialog as _0x33aabb,DialogViewPosition as _0x4c4f22,SpinnerView as _0x341639,IconView as _0x4cac59,Notification as _0x44b878}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x243806,DomEmitterMixin as _0x56864e,global as _0xfb9838,getAncestors as _0x4ab2c8,ObservableMixin as _0x282ffb,uid as _0x5648e2,createElement as _0x4a2901}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x3fb03f}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x54c122,info as _0x474471}from'@uploadcare/upload-client';import*as _0xcc5fb6 from'@uploadcare/file-uploader';var i=function(_0x511d47){return _0x511d47['Local']='local',_0x511d47['URL']='url',_0x511d47['Dropbox']='dropbox',_0x511d47['GDrive']='gdrive',_0x511d47['Facebook']='facebook',_0x511d47['GPhotos']='gphotos',_0x511d47['OneDrive']='onedrive',_0x511d47;}({});function _(_0x25e725,_0x67b989,_0x35b1b6){const t=_0x25e725['t'],_0x3fe29a=_0x25e725['t'];switch(_0x67b989){case i['Local']:return{'text':_0x3fe29a('Insert'===_0x35b1b6?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x3fe29a('From\x20computer')};case i['URL']:return{'text':'Insert'===_0x35b1b6?_0x3fe29a('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x3fe29a('Via\x20URL')};case i['Dropbox']:return{'text':t('Insert'===_0x35b1b6?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case i['Facebook']:return{'text':t('Insert'===_0x35b1b6?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case i['GDrive']:return{'text':t('Insert'===_0x35b1b6?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case i['GPhotos']:return{'text':t('Insert'===_0x35b1b6?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case i['OneDrive']:return{'text':t('Insert'===_0x35b1b6?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x67b989;}}class e extends _0x276e86{['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 _0x4742a7=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x3f4f11;for(const _0x4eba0f in _0x4742a7){const _0x5c5f3f=_0x4eba0f,_0x3cae34=_0x4742a7[_0x5c5f3f];if('uploadcareLicenseKeyValid'==_0x3cae34||'uploadcareLicenseKeyInvalid'==_0x3cae34||'uploadcareLicenseKeyExpired'==_0x3cae34||'uploadcareLicenseKeyDomainLimit'==_0x3cae34||'uploadcareLicenseKeyNotAllowed'==_0x3cae34||'uploadcareLicenseKeyEvaluationLimit'==_0x3cae34||'uploadcareLicenseKeyTrialLimit'==_0x3cae34||'uploadcareLicenseKeyUsageLimit'==_0x3cae34){delete _0x4742a7[_0x5c5f3f],_0x3f4f11=_0x3cae34,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x3f4f11&&_0x4742a7['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x3f4f11&&_0x4742a7['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x3f4f11&&_0x4742a7['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x3f4f11&&_0x4742a7['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x3f4f11&&_0x4742a7['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyTrialLimit'==_0x3f4f11&&_0x4742a7['_showLicenseError']('trialLimit'),'uploadcareLicenseKeyUsageLimit'==_0x3f4f11&&_0x4742a7['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x21b4a6}=this,_0x23d6f9=_0x21b4a6['commands']['get']('uploadcare');if(!_0x23d6f9)return;const _0x53677a=this['_normalizeConfigSourceList'](_0x21b4a6['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x2a816,_0x5e0728)=>{const _0x2aafb6=this['_getIntegrationKey'](_0x5e0728['type']);return _0x2a816[_0x2aafb6]||(_0x2a816[_0x2aafb6]=[]),_0x2a816[_0x2aafb6]['push'](_0x5e0728),_0x2a816;},{});_0x21b4a6['plugins']['has']('ImageInsertUI')&&_0x21b4a6['commands']['get']('uploadcare')&&Object['entries'](_0x53677a)['forEach'](([_0x57cfc8,_0x7c9b51])=>{_0x21b4a6['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x57cfc8,'observable':()=>_0x23d6f9,'buttonViewCreator':()=>this['_createToolbarButton'](_0x7c9b51),'formViewCreator':()=>this['_createDropdownButtons'](_0x7c9b51),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x7c9b51),'override':'assetManager'!==_0x57cfc8});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x3ed56f){const {locale:_0x442b62}=this['editor'];return _0x3ed56f['map'](_0x598400=>{const _0x222bed=_(_0x442b62,_0x598400,'Insert');switch(_0x598400){case i['Local']:return{'icon':_0x1e2f4e,'type':i['Local'],..._0x222bed};case i['URL']:return{'icon':_0x3bea44,'type':i['URL'],..._0x222bed};case i['Dropbox']:return{'icon':_0x43c6f1,'type':i['Dropbox'],..._0x222bed};case i['Facebook']:return{'icon':_0x49b029,'type':i['Facebook'],..._0x222bed};case i['GDrive']:return{'icon':_0x2a773c,'type':i['GDrive'],..._0x222bed};case i['GPhotos']:return{'icon':_0x307cc6,'type':i['GPhotos'],..._0x222bed};case i['OneDrive']:return{'icon':_0x4afe5c,'type':i['OneDrive'],..._0x222bed};}});}['_getIntegrationKey'](_0x4a9e21){switch(_0x4a9e21){case i['Local']:return'upload';case i['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x2fc893,_0x5161fe){const _0x49b036=this['editor'],_0x1df839=new _0x2fc893(_0x49b036['locale']),_0xcec78d=_0x49b036['commands']['get']('uploadcare');return _0x1df839['bind']('isEnabled')['to'](_0xcec78d),_0x1df839['on']('execute',()=>{_0xcec78d['execute'](_0x5161fe);}),_0x1df839;}['_createToolbarButton'](_0xf8d7da){const {locale:_0x458663}=this['editor'],_0x1fd32e=this['editor']['plugins']['get']('ImageInsertUI'),_0x568c19=_0xf8d7da[0x0],_0x38ae2c=this['_createButton'](_0x54f1bd,_0x568c19['type']);return _0x38ae2c['icon']=_0x568c19['icon'],_0x38ae2c['bind']('label')['to'](_0x1fd32e,'isImageSelected',_0x2f9cb8=>_(_0x458663,_0x568c19['type'],_0x2f9cb8?'Replace':'Insert')['text']),_0x38ae2c['tooltip']=!0x0,_0x38ae2c;}['_createDropdownButtons'](_0x1eaabb){const {locale:_0x544ff3}=this['editor'],_0x19571f=this['editor']['plugins']['get']('ImageInsertUI');return _0x1eaabb['map'](_0x30512b=>{const _0x2135e0=this['_createButton'](_0x54f1bd,_0x30512b['type']);return _0x2135e0['withText']=!0x0,_0x2135e0['icon']=_0x30512b['icon'],_0x2135e0['bind']('label')['to'](_0x19571f,'isImageSelected',_0x1bea62=>_(_0x544ff3,_0x30512b['type'],_0x1bea62?'Replace':'Insert')['text']),_0x2135e0;});}['_createMenuBarButtons'](_0x419862){return _0x419862['map'](_0x1f5c1d=>{const _0x9e107c=this['_createButton'](_0x2a4400,_0x1f5c1d['type']);return _0x9e107c['icon']=_0x1f5c1d['icon'],_0x9e107c['label']=_0x1f5c1d['shortText'],_0x9e107c;});}}class W extends _0x248bc7{['focusTracker'];['focusCycler'];constructor(_0x37d4ef){super(_0x37d4ef),this['focusTracker']=new _0x243806(),this['focusCycler']=new _0x4c41ec({'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 V extends W{constructor(_0x3c71ee,_0x431630){super(_0x3c71ee),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-'+_0x431630}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}}function C(_0x5804eb,_0x3e68fc){const _0x35919b=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x1c473c=>_0x1c473c<=_0x3e68fc)['map'](_0x42e109=>_0x5804eb['replace'](/\/$/,'')+'/-/resize/'+_0x42e109+'x/\x20'+_0x42e109+'w');return{'imageFallbackUrl':_0x5804eb,'imageSources':[{'srcset':_0x35919b['join'](',\x20'),'sizes':'(max-width:\x20'+_0x3e68fc+'px)\x20100vw,\x20'+_0x3e68fc+'px','type':'image/webp'}]};}function J(_0x205124,_0x26fdad,_0x37d7cd){const _0x22a8dc=_0x205124['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x22a8dc?parseInt(_0x22a8dc[0x1],0xa):_0x26fdad,'height':_0x22a8dc?parseInt(_0x22a8dc[0x2],0xa):_0x37d7cd};}function p(_0x273a89,_0x35602a){const _0x3701f1=new(_0x56864e())(),_0x411c96=_0x273a89['plugins']['get']('ImageUtils'),_0x538933=_0x273a89['editing']['mapper']['toViewElement'](_0x35602a),_0x226714=_0x411c96['findViewImgElement'](_0x538933),_0x845f3f=_0x273a89['editing']['view']['domConverter']['viewToDom'](_0x226714),_0x1d8b37=_0x35602a['getAttribute']('width'),_0x2ec2ef=_0x35602a['getAttribute']('height'),_0x421001='image-processing';_0x273a89['editing']['view']['change'](_0x34f84e=>{_0x34f84e['addClass'](_0x421001,_0x538933),_0x34f84e['setStyle']('aspect-ratio',_0x1d8b37+'/'+_0x2ec2ef,_0x226714);}),_0x3701f1['listenTo'](_0x845f3f,'load',()=>{_0x3701f1['stopListening'](_0x845f3f,'load'),_0x273a89['editing']['view']['change'](_0x2ba29e=>{_0x2ba29e['removeClass'](_0x421001,_0x538933),_0x2ba29e['removeStyle']('aspect-ratio',_0x226714);});});}function z(_0x405092){if(Array['isArray'](_0x405092)){const _0x311a41=_0x405092['map'](z);return _0x2e0e4d=>_0x311a41['some'](_0x2ed3d0=>_0x2ed3d0(_0x2e0e4d));}if('origin'==_0x405092){const _0x2857ed=_0xfb9838['window']['location']['origin'];return _0x265feb=>new URL(_0x265feb,_0xfb9838['document']['baseURI'])['origin']==_0x2857ed;}return'function'==typeof _0x405092?_0x405092:_0x405092 instanceof RegExp?_0x1f7bde=>!(!_0x1f7bde['match'](_0x405092)&&!_0x1f7bde['replace'](/^https?:\/\//,'')['match'](_0x405092)):()=>!0x1;}function Q(_0x8810d,_0x537503){return _0x4ab2c8(_0x8810d['target'])['includes'](_0x537503);}class n extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x282ffb(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x5accf2,_0x388fdc,_0x4ebd78){super(),this['_editor']=_0x5accf2,this['_editing']=_0x388fdc,this['_dialog']=_0x5accf2['plugins']['get'](_0x33aabb),this['_api']=_0x388fdc['ctxElement']['getAPI'](),this['_type']=_0x4ebd78,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:_0x2fe73a,model:_0x453147}=this['_editor'],_0x198d1a=_0x453147['document']['selection']['getSelectedElement'](),_0x56321d=_0x198d1a&&(_0x198d1a['is']('element','imageBlock')||_0x198d1a['is']('element','imageInline'));this['_formView']=new V(_0x2fe73a,this['_editing']['ucContextId']),this['_dialog']['show']({'id':'uploadCare','icon':_0x1e2f4e,'title':_(_0x2fe73a,this['_type'],_0x56321d?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x4c4f22['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x3f05ba=>!Q(_0x3f05ba,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0xad0fa2}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x4ce21b=>{const _0x2136ec=_0xad0fa2['length'];for(const _0x24a600 of _0xad0fa2){const _0x1f518d=_0x24a600===_0xad0fa2[_0x2136ec-0x1],{cdnUrl:_0x1d0871,fileInfo:_0x336aed}=_0x24a600;if(!_0x1d0871||!_0x336aed)continue;const {width:_0x4757bf,height:_0x3cc9e4}=_0x336aed['imageInfo'],_0x36bcdb=J(_0x1d0871,_0x4757bf,_0x3cc9e4),_0x4bd6a9=C(_0x1d0871,_0x36bcdb['width']),_0x1320a2={'id':_0x336aed['uuid'],'type':'image','attributes':{'imageDimension':_0x36bcdb,..._0x4bd6a9}};this['_insertAsset'](_0x1320a2,_0x1f518d,_0x4ce21b);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x160233=>{'idle'===_0x160233['detail']['status']&&!_0x160233['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===i['Local']?this['_api']['setCurrentActivity'](i['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x2eec63,_0x11d69e,_0x328d86){const _0xfa9bc1=this['_editor']['model']['document']['selection'],_0xbc59e8=_0xfa9bc1['getSelectedElement'](),_0x3fa643=!(!_0xbc59e8||!_0xbc59e8['is']('element','imageInline'));_0x328d86['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x2eec63,_0x3fa643),_0x11d69e||_0x328d86['setSelection'](_0xfa9bc1['getLastPosition']());}['_insertImage'](_0x50469f,_0x12f5e4){const _0x16a9f5=this['_editor'],{imageDimension:_0x46abb6,imageFallbackUrl:_0x2cadff,imageSources:_0x6cffad}=_0x50469f['attributes'];_0x16a9f5['execute']('insertImage',{'imageType':_0x12f5e4?'imageInline':null,'source':{'uploadcareImageId':_0x50469f['id'],'src':_0x2cadff,'sources':_0x6cffad,..._0x46abb6}});}}class w extends _0x4829b3{['_editing'];['_controller']=null;static get['requires'](){return[_0x33aabb,o];}constructor(_0xdde27a){super(_0xdde27a),this['_editing']=_0xdde27a['plugins']['get'](o);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x1b51d2){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new n(this['editor'],this['_editing'],_0x1b51d2);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class j{static['upload']({file:_0x2beb71,..._0x3b0357}){return _0x54c122(_0x2beb71,_0x3b0357);}static['getInfo'](_0x3feac3,_0x14e1e0){return _0x474471(_0x3feac3,_0x14e1e0);}}class f extends _0x276e86{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x3fb03f,o];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x41e7e6=this['editor'];if(!!!_0x41e7e6['config']['get']('uploadcare'))return;_0x41e7e6['plugins']['get'](_0x3fb03f)['createUploadAdapter']=_0x28d793=>new k(_0x28d793,_0x41e7e6),_0x41e7e6['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x5c498a,{imageElement:_0x5d0866,data:_0x4d76aa})=>{_0x41e7e6['model']['change'](_0x27f00a=>{_0x27f00a['setAttribute']('uploadcareImageId',_0x4d76aa['uploadcareImageId'],_0x5d0866);});});}}class k{['loader'];['editor'];['controller'];constructor(_0x657671,_0x399df5){this['loader']=_0x657671,this['editor']=_0x399df5,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x5e6ae0=await this['loader']['file'];return j['upload']({'file':_0x5e6ae0,'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':_0x4b0c3d=>{_0x4b0c3d&&_0x4b0c3d['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x4b0c3d['value']);}})['then'](async _0x4684b5=>{const {imageFallbackUrl:_0xd48313,imageSources:_0x118d18}=C(_0x4684b5['cdnUrl'],_0x4684b5['imageInfo']['width']);return{'uploadcareImageId':_0x4684b5['uuid'],'default':_0xd48313,'sources':_0x118d18};})['catch'](()=>{const _0x5357d0=t('Cannot\x20upload\x20file:')+('\x20'+_0x5e6ae0['name']+'.');return Promise['reject'](_0x5357d0);});}['abort'](){this['controller']['abort']();}}class o extends _0x276e86{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',f,_0x33aabb];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['ucContextId'];get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}constructor(_0x1b55c6){super(_0x1b55c6),this['ucContextId']=_0x5648e2();}['init'](){const _0x269567=this['editor'];_0x269567['commands']['add']('uploadcare',new w(_0x269567));}['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 _0x3285a7=_0xfb9838['document']['querySelector']('input[uploadcare-file-input]');_0x3285a7&&_0x3285a7['remove']();}),async function(_0x241ad2){const _0x19442a=_0x18b150([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]),_0x1ed59d=0x535f8c3a,_0x5d1c58=0x5358f7c2^_0x1ed59d,_0x5bce80=window[_0x18b150([0x44,0x61,0x74,0x65])][_0x18b150([0x6e,0x6f,0x77])](),_0x16a58c=_0x241ad2[_0x18b150([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x46feb4=new window[(_0x18b150([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4abbc1=>{_0x16a58c[_0x18b150([0x6f,0x6e,0x63,0x65])](_0x18b150([0x72,0x65,0x61,0x64,0x79]),_0x4abbc1);}),_0x1308de={[_0x18b150([0x6b,0x74,0x79])]:_0x18b150([0x45,0x43]),[_0x18b150([0x75,0x73,0x65])]:_0x18b150([0x73,0x69,0x67]),[_0x18b150([0x63,0x72,0x76])]:_0x18b150([0x50,0x2d,0x32,0x35,0x36]),[_0x18b150([0x78])]:_0x18b150([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]),[_0x18b150([0x79])]:_0x18b150([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]),[_0x18b150([0x61,0x6c,0x67])]:_0x18b150([0x45,0x53,0x32,0x35,0x36])},_0x2011a5=_0x16a58c[_0x18b150([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x18b150([0x67,0x65,0x74])](_0x18b150([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0xd294dc(){let _0x1cd7b4,_0x2afec7=null,_0x2ea3b9=null;try{if(_0x2011a5==_0x18b150([0x47,0x50,0x4c]))return _0x18b150([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x1cd7b4=_0x26e9a4(),!_0x1cd7b4)return _0x18b150([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x1cd7b4[_0x18b150([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x2ea3b9=_0x905c3a(_0x1cd7b4[_0x18b150([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x1cd7b4[_0x18b150([0x6a,0x74,0x69])])),await _0x39845c()?_0x1306dc()?_0x145b57()?_0x18b150([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x59973e()?(_0x1cd7b4[_0x18b150([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x18b150([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x2afec7=_0xb9a3c(_0x18b150([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x1cd7b4[_0x18b150([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x18b150([0x74,0x72,0x69,0x61,0x6c])&&(_0x2afec7=_0xb9a3c(_0x18b150([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x40baf5()):_0x18b150([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x18b150([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x18b150([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x18b150([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x145b57(){const _0x2ea559=[_0x18b150([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x18b150([0x74,0x72,0x69,0x61,0x6c])][_0x18b150([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1cd7b4[_0x18b150([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x5bce80/0x3e8:0xe10*_0x5d1c58;return _0x1cd7b4[_0x18b150([0x65,0x78,0x70])]<_0x2ea559;}function _0x1306dc(){const _0xd7fc4c=_0x1cd7b4[_0x18b150([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0xd7fc4c&&(!!_0xd7fc4c[_0x18b150([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x18b150([0x2a]))||!!_0xd7fc4c[_0x18b150([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x18b150([0x55,0x50,0x4c,0x43])));}function _0x59973e(){const _0x3c1be8=_0x1cd7b4[_0x18b150([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x3c1be8||0x0==_0x3c1be8[_0x18b150([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x4a4efc}=new URL(window[_0x18b150([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x3c1be8[_0x18b150([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4a4efc))return!0x0;const _0xa5cd5=_0x4a4efc[_0x18b150([0x73,0x70,0x6c,0x69,0x74])](_0x18b150([0x2e]));return _0x3c1be8[_0x18b150([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x393325=>_0x393325[_0x18b150([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x18b150([0x2a])))[_0x18b150([0x6d,0x61,0x70])](_0x4ba611=>_0x4ba611[_0x18b150([0x73,0x70,0x6c,0x69,0x74])](_0x18b150([0x2e])))[_0x18b150([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x22d86a=>_0x22d86a[_0x18b150([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0xa5cd5[_0x18b150([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x18b150([0x6d,0x61,0x70])](_0x26e005=>Array(_0xa5cd5[_0x18b150([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x26e005[_0x18b150([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x18b150([0x66,0x69,0x6c,0x6c])](_0x26e005[0x0]===_0x18b150([0x2a])?_0x18b150([0x2a]):'')[_0x18b150([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x26e005))[_0x18b150([0x73,0x6f,0x6d,0x65])](_0x427a19=>_0xa5cd5[_0x18b150([0x65,0x76,0x65,0x72,0x79])]((_0x5e216b,_0x40df74)=>_0x427a19[_0x40df74]===_0x5e216b||_0x427a19[_0x40df74]===_0x18b150([0x2a])));}function _0x40baf5(){return _0x2afec7&&_0x2ea3b9?new window[(_0x18b150([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x2d509a,_0x5237c9)=>{_0x2afec7[_0x18b150([0x74,0x68,0x65,0x6e])](_0x2d509a,_0x5237c9),_0x2ea3b9[_0x18b150([0x74,0x68,0x65,0x6e])](_0x36d85b=>{_0x36d85b!=_0x18b150([0x56,0x61,0x6c,0x69,0x64])&&_0x2d509a(_0x36d85b);},_0x5237c9);}):_0x2afec7||_0x2ea3b9||_0x18b150([0x56,0x61,0x6c,0x69,0x64]);}}function _0x905c3a(_0x2217c8,_0x5347a1){return new window[(_0x18b150([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x573640=>{if(_0x4690cf())return _0x573640(_0x18b150([0x56,0x61,0x6c,0x69,0x64]));_0x500fd4(),_0x16a58c[_0x18b150([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x18b150([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x4ee629=!0x1;const _0x461b91=_0x5648e2();function _0x468c59(_0x353621){return!!_0x353621&&(typeof _0x353621===_0x18b150([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x353621===_0x18b150([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x353621[_0x18b150([0x74,0x68,0x65,0x6e])]===_0x18b150([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x353621[_0x18b150([0x63,0x61,0x74,0x63,0x68])]===_0x18b150([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x3f12be(_0x178853){_0x470632(_0x178853)[_0x18b150([0x74,0x68,0x65,0x6e])](_0x2bdff4=>{if(!_0x2bdff4||_0x2bdff4[_0x18b150([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x18b150([0x6f,0x6b]))return _0x18b150([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x2c1c52(_0x455ac6(_0x461b91+_0x5347a1))!=_0x2bdff4[_0x18b150([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x18b150([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x18b150([0x56,0x61,0x6c,0x69,0x64]);})[_0x18b150([0x74,0x68,0x65,0x6e])](_0x31c5d7=>(_0x6b59a9(),_0x31c5d7),()=>{const _0x1e92dc=_0x5be787();return null==_0x1e92dc?(_0x6b59a9(),_0x18b150([0x56,0x61,0x6c,0x69,0x64])):_0x18b150(_0x5bce80-_0x1e92dc>(0x7753083a^_0x1ed59d)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x18b150([0x74,0x68,0x65,0x6e])](_0x573640)[_0x18b150([0x63,0x61,0x74,0x63,0x68])](()=>{_0x573640(_0x18b150([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x5d25f9=0x536962ba^_0x1ed59d;function _0x6b59a9(){const _0xf65fd=_0x18b150([0x6c,0x6c,0x63,0x74,0x2d])+_0x2c1c52(_0x455ac6(_0x2217c8)),_0x3315cb=_0x16c48c(_0x2c1c52(window[_0x18b150([0x4d,0x61,0x74,0x68])][_0x18b150([0x63,0x65,0x69,0x6c])](_0x5bce80/_0x5d25f9)));window[_0x18b150([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x18b150([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0xf65fd,_0x3315cb);}function _0x5be787(){const _0x2d7f7b=_0x18b150([0x6c,0x6c,0x63,0x74,0x2d])+_0x2c1c52(_0x455ac6(_0x2217c8)),_0x32af45=window[_0x18b150([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x18b150([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2d7f7b);return _0x32af45?window[_0x18b150([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x16c48c(_0x32af45),0x10)*_0x5d25f9:null;}function _0x470632(_0x25363b){return new window[(_0x18b150([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x498b95,_0xc0eadc)=>{_0x25363b[_0x18b150([0x74,0x68,0x65,0x6e])](_0x498b95,_0xc0eadc),window[_0x18b150([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0xc0eadc,0x535e58fa^_0x1ed59d);});}}_0x16a58c[_0x18b150([0x6f,0x6e])](_0x18b150([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x4ed61e,_0x13237e)=>{if(_0x13237e[0x0]!=_0x2217c8)return _0x573640(_0x18b150([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x13237e[0x1]={..._0x13237e[0x1],[_0x18b150([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x461b91};},{[_0x18b150([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x18b150([0x68,0x69,0x67,0x68])}),_0x16a58c[_0x18b150([0x6f,0x6e])](_0x18b150([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x3fc74e=>{_0x468c59(_0x3fc74e[_0x18b150([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x4ee629=!0x0,_0x3f12be(_0x3fc74e[_0x18b150([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x18b150([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x18b150([0x6c,0x6f,0x77])}),_0x46feb4[_0x18b150([0x74,0x68,0x65,0x6e])](()=>{_0x4ee629||_0x573640(_0x18b150([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x4690cf(){return _0x16a58c[_0x18b150([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x18b150([0x76,0x69,0x65,0x77])][_0x18b150([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x18b150([0x61,0x75,0x74,0x6f]);}function _0x500fd4(){_0x16a58c[_0x18b150([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x18b150([0x76,0x69,0x65,0x77])][_0x18b150([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x18b150([0x61,0x75,0x74,0x6f]);}}function _0xb9a3c(_0x52fef6){const _0x17b28a=[new window[(_0x18b150([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x42b6df=>setTimeout(_0x42b6df,0x5356b2f6^_0x1ed59d)),_0x46feb4[_0x18b150([0x74,0x68,0x65,0x6e])](()=>new window[(_0x18b150([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5e94f6=>{let _0x300fdb=0x0;_0x16a58c[_0x18b150([0x6d,0x6f,0x64,0x65,0x6c])][_0x18b150([0x6f,0x6e])](_0x18b150([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0xe8fc34,_0x167c2b)=>{_0x167c2b[0x0][_0x18b150([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x300fdb++,_0x300fdb==(0x535f8dc2^_0x1ed59d)&&(_0x5e94f6(),_0xe8fc34[_0x18b150([0x6f,0x66,0x66])]());});}))];return window[_0x18b150([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x18b150([0x72,0x61,0x63,0x65])](_0x17b28a)[_0x18b150([0x74,0x68,0x65,0x6e])](()=>_0x52fef6);}async function _0x3096c7(){await _0x46feb4,_0x16a58c[_0x18b150([0x6d,0x6f,0x64,0x65,0x6c])][_0x18b150([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x49768d,_0x16a58c[_0x18b150([0x6d,0x6f,0x64,0x65,0x6c])][_0x18b150([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x49768d,_0x16a58c[_0x18b150([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x18b150([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x3d9d03(_0x5454f2){const _0x4b46f=_0x38ae13();_0x16a58c[_0x4b46f]=_0x18b150([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x5454f2,_0x5454f2!=_0x18b150([0x56,0x61,0x6c,0x69,0x64])&&_0x3096c7();}function _0x38ae13(){const _0x52223d=window[_0x18b150([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x18b150([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x18b150([0x6e,0x6f,0x77])]())[_0x18b150([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x18b150([0x2e]),'');let _0x2ca2b7=_0x18b150([0x68]);for(let _0x1f479c=0x0;_0x1f479c<_0x52223d[_0x18b150([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1f479c+=0x2){let _0x1ef97e=window[_0x18b150([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x52223d[_0x18b150([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x1f479c,_0x1f479c+0x2));_0x1ef97e>=_0x19442a[_0x18b150([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x1ef97e-=_0x19442a[_0x18b150([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x2ca2b7+=_0x19442a[_0x1ef97e];}return _0x2ca2b7;}function _0x26e9a4(){const _0xbf1b0c=_0x2011a5[_0x18b150([0x73,0x70,0x6c,0x69,0x74])](_0x18b150([0x2e]));if(0x3!=_0xbf1b0c[_0x18b150([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x1d7961(_0xbf1b0c[0x1]);function _0x1d7961(_0x23496e){const _0x5a75d4=_0x2d3f81(_0x23496e);return _0x5a75d4&&_0x3bc369()?_0x5a75d4:null;function _0x3bc369(){const _0x1a6296=_0x5a75d4[_0x18b150([0x6a,0x74,0x69])],_0x50004e=window[_0x18b150([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1a6296[_0x18b150([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x1a6296[_0x18b150([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x2fdc95={..._0x5a75d4,[_0x18b150([0x6a,0x74,0x69])]:_0x1a6296[_0x18b150([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x1a6296[_0x18b150([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x2fdc95[_0x18b150([0x76,0x63])],_0x455ac6(_0x2fdc95)==_0x50004e;}}}async function _0x39845c(){let _0x364d2d=!0x0;try{const _0x982032=_0x2011a5[_0x18b150([0x73,0x70,0x6c,0x69,0x74])](_0x18b150([0x2e])),[_0x5e0114,_0x16519f,_0x20da4a]=_0x982032;return _0x5bf168(_0x5e0114),await _0x26be5d(_0x5e0114,_0x16519f,_0x20da4a),_0x364d2d;}catch{return!0x1;}function _0x5bf168(_0x5e8df9){const _0x13e9d7=_0x2d3f81(_0x5e8df9);_0x13e9d7&&_0x13e9d7[_0x18b150([0x61,0x6c,0x67])]==_0x18b150([0x45,0x53,0x32,0x35,0x36])||(_0x364d2d=!0x1);}async function _0x26be5d(_0x2621c2,_0x304275,_0x156431){const _0x16a4bc=window[_0x18b150([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x18b150([0x66,0x72,0x6f,0x6d])](_0x2b6888(_0x156431),_0x512e2d=>_0x512e2d[_0x18b150([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x24f339=new window[(_0x18b150([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x18b150([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x2621c2+_0x18b150([0x2e])+_0x304275),_0x542b17=window[_0x18b150([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x18b150([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x542b17)return;const _0x4cb61a=await _0x542b17[_0x18b150([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x18b150([0x6a,0x77,0x6b]),_0x1308de,{[_0x18b150([0x6e,0x61,0x6d,0x65])]:_0x18b150([0x45,0x43,0x44,0x53,0x41]),[_0x18b150([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x18b150([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x18b150([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x542b17[_0x18b150([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x18b150([0x6e,0x61,0x6d,0x65])]:_0x18b150([0x45,0x43,0x44,0x53,0x41]),[_0x18b150([0x68,0x61,0x73,0x68])]:{[_0x18b150([0x6e,0x61,0x6d,0x65])]:_0x18b150([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x4cb61a,_0x16a4bc,_0x24f339)||(_0x364d2d=!0x1);}}function _0x2d3f81(_0x5079b7){return _0x5079b7[_0x18b150([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x18b150([0x65,0x79]))?JSON[_0x18b150([0x70,0x61,0x72,0x73,0x65])](_0x2b6888(_0x5079b7)):null;}function _0x2b6888(_0x56204a){return window[_0x18b150([0x61,0x74,0x6f,0x62])](_0x56204a[_0x18b150([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x18b150([0x2b]))[_0x18b150([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x18b150([0x2f])));}function _0x455ac6(_0x509d16){let _0x45d59b=0x1505;function _0x4d969b(_0x10d049){for(let _0x23936a=0x0;_0x23936a<_0x10d049[_0x18b150([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x23936a++){const _0x253377=_0x10d049[_0x18b150([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x23936a);_0x45d59b=(_0x45d59b<<0x5)+_0x45d59b+_0x253377,_0x45d59b&=_0x45d59b;}}function _0x496326(_0x887fb0){Array[_0x18b150([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x887fb0)?_0x887fb0[_0x18b150([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x496326):_0x887fb0&&typeof _0x887fb0==_0x18b150([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x18b150([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x887fb0)[_0x18b150([0x73,0x6f,0x72,0x74])]()[_0x18b150([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x40876e,_0x1cf36c])=>{_0x4d969b(_0x40876e),_0x496326(_0x1cf36c);}):_0x4d969b(window[_0x18b150([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x887fb0));}return _0x496326(_0x509d16),_0x45d59b>>>0x0;}function _0x2c1c52(_0x5d04eb){return _0x5d04eb[_0x18b150([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x18b150([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x18b150([0x30]));}function _0x16c48c(_0x1668c8){return _0x1668c8[_0x18b150([0x73,0x70,0x6c,0x69,0x74])]('')[_0x18b150([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x18b150([0x6a,0x6f,0x69,0x6e])]('');}function _0x49768d(){}function _0x18b150(_0x3d395d){return _0x3d395d['map'](_0x5332f0=>String['fromCharCode'](_0x5332f0))['join']('');}_0x3d9d03(await _0xd294dc());}(this);}['_initSchema'](){const _0x551ab1=this['editor']['model']['schema'];_0x551ab1['isRegistered']('imageBlock')&&_0x551ab1['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x551ab1['isRegistered']('imageInline')&&_0x551ab1['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x416ab6=this['editor'];_0x416ab6['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x416ab6['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x24e172=>_0x24e172['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x9d2cb0=_0x416ab6['commands']['get']('replaceImageSource');_0x9d2cb0&&this['listenTo'](_0x9d2cb0,'cleanupImage',(_0x3f643f,[_0x4ded03,_0x102bdc])=>{_0x4ded03['removeAttribute']('uploadcareImageId',_0x102bdc);});}['_initConfig'](){const _0x5d1ace=this['editor']['config']['get']('uploadcare.uploader')||{},_0x421e23=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x4a2901(_0xfb9838['document'],'uc-config',{..._0x5d1ace,'pubkey':_0x421e23,'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']=_0x26f085=>{if('closeMax'==_0x26f085)return'#uc-icon-arrow-down';},_0xfb9838['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x4a2901(_0xfb9838['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader-'+this['ucContextId']}),_0xfb9838['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x1a915c=this['editor']['commands']['get']('insertImage');_0x1a915c&&this['listenTo'](_0x1a915c,'execute',()=>{const _0x4e60e6=this['editor']['model']['document']['selection']['getSelectedElement']();_0x4e60e6&&_0x4e60e6['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x4e60e6);});});const _0x21f14f=this['editor']['commands']['get']('uploadcareImageReplace');_0x21f14f&&this['listenTo'](_0x21f14f,'execute',()=>{const _0x486c07=this['editor']['model']['document']['selection']['getSelectedElement']();_0x486c07&&_0x486c07['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x486c07);});});}}class tt extends _0x276e86{static get['requires'](){return[o,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x52a266){super(_0x52a266),_0x52a266['config']['define']('uploadcare.uploader.sourceList',[i['Local'],i['URL']]),_0xcc5fb6['defineComponents'](_0xcc5fb6),this['_defineLocale']();}['_defineLocale'](){const _0x28613d=this['editor']['config']['get']('uploadcare.locale'),_0x17a5fe=this['editor']['locale']['contentLanguage'];_0x28613d&&_0xcc5fb6['defineLocale'](_0x17a5fe,_0x28613d);}}class ii extends _0x248bc7{constructor(_0x4cae34){super(_0x4cae34);const t=_0x4cae34['t'],_0x49bb32=this['bindTemplate'],_0x51dac8=new _0x341639();_0x51dac8['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':[_0x51dac8,{'text':_0x49bb32['to']('imageUploadProgress',_0x2b1273=>t('Loading\x20image...')+'\x20('+(_0x2b1273||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 _0x248bc7{constructor(_0x25c5e2){super(_0x25c5e2);const t=_0x25c5e2['t'];this['set']('errorType',null);const _0x17f3f0=new _0x54f1bd(_0x25c5e2);_0x17f3f0['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x17f3f0['withText']=!0x0,_0x17f3f0['class']='ck-button-action',_0x17f3f0['on']('execute',()=>{this['fire']('retry');}),_0x17f3f0['bind']('isVisible')['to'](this,'errorType',_0x55e70c=>'NotFound'!==_0x55e70c);const _0x343a3b=new _0x4cac59();_0x343a3b['content']=_0x14565b,_0x343a3b['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x42467b=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':[_0x343a3b,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x42467b['to']('errorType',_0x4c2d24=>t('NotFound'!==_0x4c2d24?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x17f3f0]},{'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 _0x248bc7{constructor(_0x52c29a,_0x36a04d){super(_0x52c29a);const _0x5d5b40=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x36a04d,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x5d5b40['to']('imageSrc')}});}}class X extends W{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x19f6d4,_0x110a03,_0x4624a4){super(_0x19f6d4),this['_items']=this['createCollection'](),this['_loadingView']=new ii(_0x19f6d4),this['_errorView']=new ti(_0x19f6d4),this['_editingView']=new ei(_0x19f6d4,_0x4624a4),this['_focusableView']=new _0x248bc7(_0x19f6d4),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x110a03),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'],_0x466c0b=>{this['_addUploadcareImageEditorListeners'](_0x466c0b);});}),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'](_0x33cde5,_0x303947){const _0x5e3d0c='uc-cloud-image-editor',_0x50f34e=_0x33cde5['querySelector'](_0x5e3d0c);if(_0x50f34e)return _0x303947(_0x50f34e);const _0x5449e9=new MutationObserver(_0x2a0645=>{const _0x352dc6=_0x2a0645['filter'](_0x2ed85b=>_0x2ed85b['target']===_0x33cde5&&_0x2ed85b['addedNodes']['length']>0x0&&_0x2ed85b['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x5e3d0c);_0x352dc6['length']&&(_0x5449e9['disconnect'](),_0x303947(_0x352dc6[0x0]['addedNodes'][0x0]));});_0x5449e9['observe'](_0x33cde5,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x1b0de1){_0x1b0de1['addEventListener']('apply',_0x1ccb3b=>{this['fire']('apply',{'imageSrc':_0x1ccb3b['detail']['cdnUrl']});}),_0x1b0de1['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class E extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0x282ffb(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x1b17d2,_0x408ada,_0x3ea4cc){super(),this['_editor']=_0x1b17d2,this['_dialog']=_0x408ada,this['_imageElement']=_0x3ea4cc,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 _0x3697e7=this['_imageElement'],_0x5978c4=_0x3697e7['getAttribute']('uploadcareImageId'),_0x4f5b1a=_0x3697e7['getAttribute']('src');if(_0x5978c4)await this['_loadImageInfo'](_0x5978c4,_0x4f5b1a);else{if(this['_imageCache']['has'](_0x4f5b1a)){const _0x3a080f=this['_imageCache']['get'](_0x4f5b1a);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x3a080f['url'],this['imageDimension']=_0x3a080f['dimension'],this['imageId']=_0x3a080f['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x252d15}=this['_editor'],t=_0x252d15['t'],_0x52a4b1=new X(_0x252d15,this['imageStatus'],this['_attributes']);_0x52a4b1['bind']('status')['to'](this,'imageStatus'),_0x52a4b1['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x52a4b1['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x52a4b1['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x52a4b1,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x1baeca,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x52a4b1,'position':_0x4c4f22['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x52a4b1['focus']();},'onHide':()=>{_0x52a4b1['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x384e3f=>!Q(_0x384e3f,_0x52a4b1['element'])}});}['_loadImageInfo'](_0x15a3c7,_0x2765b9){return j['getInfo'](_0x15a3c7,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl')})['then'](_0x1d2f3e=>{const {width:_0x5e471c,height:_0x54100e}=_0x1d2f3e['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x2765b9,this['imageDimension']={'width':_0x5e471c,'height':_0x54100e},this['imageId']=_0x15a3c7;})['catch'](_0xfffd3e=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0xfffd3e['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x5b22d7,_0x5ecef6){return this['_getImageAsFile'](_0x5b22d7)['then'](_0x1e66ff=>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':_0x5ecef6['signal'],'file':_0x1e66ff,'onProgress':_0x90f847=>{_0x90f847&&_0x90f847['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x90f847['value']));}}))['then'](_0x4327af=>{const {width:_0x85667e,height:_0x14bf39}=_0x4327af['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x4327af['cdnUrl'],this['imageDimension']={'width':_0x85667e,'height':_0x14bf39},this['imageId']=_0x4327af['uuid'],this['imageUploadProgress']=null;const _0x26f53f=_0x5b22d7['getAttribute']('src');this['_imageCache']['set'](_0x26f53f,{'id':_0x4327af['uuid'],'url':_0x4327af['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x2ca22b=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x2ca22b['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x34a9c4,_0xc400b2){_0x34a9c4['on']('apply',(_0x3dfdbb,_0x44cc6e)=>{this['_replaceImage'](_0xc400b2,_0x44cc6e['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x34a9c4['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x34a9c4['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x599c31,_0x4822b0,_0x1a6db2){const _0xf85b22=this['_editor'],{width:_0x40e460,height:_0x465a7b}=J(_0x4822b0,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x4070ee,imageSources:_0x3ff31c}=C(_0x4822b0,_0x40e460);_0xf85b22['model']['change'](_0x58f0ab=>{if('$graveyard'===_0x599c31['root']['rootName']){_0xf85b22['execute']('insertImage',{'imageType':_0x599c31['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x599c31['getAttributes']()),'uploadcareImageId':_0x1a6db2,'src':_0x4070ee,'sources':_0x3ff31c,'width':_0x40e460,'height':_0x465a7b}});const _0x14b1f8=_0x599c31['getChildren']();_0x599c31=_0xf85b22['model']['document']['selection']['getSelectedElement']();for(const _0x49b811 of _0x14b1f8)_0x58f0ab['append'](_0x58f0ab['cloneElement'](_0x49b811),_0x599c31);}else _0x58f0ab['setSelection'](_0x599c31,'on'),_0xf85b22['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x599c31['getAttributes']()),'uploadcareImageId':_0x1a6db2,'src':_0x4070ee,'sources':_0x3ff31c,'width':_0x40e460,'height':_0x465a7b},_0x599c31);_0x58f0ab['setSelection'](_0x599c31,'on');});}async['_getImageAsFile'](_0x3345d9){const _0x444609=_0xfb9838['window'],_0x2c72b1=_0xfb9838['document']['location']['href'],_0x40ffa7=new _0x444609['URL'](_0x3345d9['getAttribute']('src'),_0x2c72b1);if('data:'===_0x40ffa7['protocol']){const _0x524dce=_0x40ffa7['href']['split'](','),_0x55bb21=_0x524dce[0x0]['match'](/:(.*?);/)[0x1],_0x36130b=_0x55bb21['split']('/')[0x1],_0x8cb70c=_0x444609['atob'](_0x524dce[_0x524dce['length']-0x1]);let _0x2fc0d5=_0x8cb70c['length'];const _0x5bee2d=new _0x444609['Uint8Array'](_0x2fc0d5);for(;_0x2fc0d5--;)_0x5bee2d[_0x2fc0d5]=_0x8cb70c['charCodeAt'](_0x2fc0d5);return new _0x444609['File']([_0x5bee2d],'image.'+_0x36130b,{'type':_0x55bb21});}const _0x4a6e45=_0x40ffa7['href']['split']('/'),_0x509c01=_0x4a6e45[_0x4a6e45['length']-0x1],_0x4a7573=_0x509c01['split']('.')[0x1];return _0x444609['fetch'](_0x40ffa7['href'])['then'](_0x32d0d9=>_0x32d0d9['clone']()['blob']())['then'](_0x568930=>new _0x444609['File']([_0x568930],_0x509c01,{'type':'image/'+_0x4a7573}));}}class O extends _0x4829b3{['imageEditController'];static get['requires'](){return[_0x33aabb];}['_isEditable'];constructor(_0x456acf){super(_0x456acf),this['imageEditController']=void 0x0,this['_isEditable']=function(_0xd99255){const _0x16cb78=z(_0xd99255);return _0x24103f=>!(!_0x24103f||!_0x24103f['is']('element','imageBlock')&&!_0x24103f['is']('element','imageInline'))&&(!!_0x24103f['hasAttribute']('uploadcareImageId')||!!_0x24103f['hasAttribute']('src')&&_0x16cb78(_0x24103f['getAttribute']('src')));}(_0x456acf['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x4276bf=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x4276bf);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x58d74c=this['editor']['model']['document']['selection']['getSelectedElement']();_0x58d74c&&(_0x58d74c['is']('element','imageBlock')||_0x58d74c['is']('element','imageInline'))&&(this['imageEditController']=new E(this['editor'],this['editor']['plugins']['get'](_0x33aabb),_0x58d74c),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class R extends _0x4829b3{['refresh'](){const _0x2779a7=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x2779a7&&(_0x2779a7['is']('element','imageBlock')||_0x2779a7['is']('element','imageInline')));}['execute'](_0x41104a){const _0x122d00=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x401939=>{_0x401939['setAttributes'](_0x41104a,_0x122d00),_0x401939['removeAttribute']('srcset',_0x122d00),_0x401939['removeAttribute']('sizes',_0x122d00);});}}class m extends _0x276e86{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[o,_0x44b878,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x3053cb}=this;_0x3053cb['commands']['add']('uploadcareImageEdit',new O(_0x3053cb)),_0x3053cb['commands']['add']('uploadcareImageReplace',new R(_0x3053cb));}}class g extends _0x276e86{['_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 _0x163a16=this['editor'];_0x163a16['ui']['componentFactory']['add']('uploadcareImageEdit',_0x138f25=>{const _0x249960=_0x163a16['commands']['get']('uploadcareImageEdit'),_0x142a02=new _0x54f1bd(_0x138f25),t=_0x138f25['t'];return _0x142a02['set']({'icon':_0x1baeca,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x142a02['bind']('isEnabled')['to'](_0x249960),_0x142a02['bind']('isOn')['to'](_0x249960,'isActive'),this['listenTo'](_0x142a02,'execute',()=>{_0x163a16['execute']('uploadcareImageEdit'),_0x163a16['editing']['view']['focus']();}),_0x142a02;}),this['_initConfig']();}['_initConfig'](){const _0x50ab7f=_0x4a2901(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x50ab7f),this['listenTo'](this['editor'],'destroy',()=>{_0x50ab7f['remove']();});}}class et extends _0x276e86{static get['pluginName'](){return'UploadcareImageEdit';}static get['requires'](){return[m,g];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{tt as Uploadcare,w as UploadcareCommand,o as UploadcareEditing,et as UploadcareImageEdit,O as UploadcareImageEditCommand,m as UploadcareImageEditEditing,g as UploadcareImageEditUI,e as UploadcareUI,f as UploadcareUploadAdapter};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ckeditor/ckeditor5-uploadcare",
|
|
3
|
-
"version": "0.0.0-nightly-
|
|
3
|
+
"version": "0.0.0-nightly-20251215.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-
|
|
27
|
-
"@ckeditor/ckeditor5-icons": "0.0.0-nightly-
|
|
28
|
-
"@ckeditor/ckeditor5-image": "0.0.0-nightly-
|
|
29
|
-
"@ckeditor/ckeditor5-theme-lark": "0.0.0-nightly-
|
|
30
|
-
"@ckeditor/ckeditor5-ui": "0.0.0-nightly-
|
|
31
|
-
"@ckeditor/ckeditor5-upload": "0.0.0-nightly-
|
|
32
|
-
"@ckeditor/ckeditor5-utils": "0.0.0-nightly-
|
|
33
|
-
"ckeditor5": "0.0.0-nightly-
|
|
26
|
+
"@ckeditor/ckeditor5-core": "0.0.0-nightly-20251215.0",
|
|
27
|
+
"@ckeditor/ckeditor5-icons": "0.0.0-nightly-20251215.0",
|
|
28
|
+
"@ckeditor/ckeditor5-image": "0.0.0-nightly-20251215.0",
|
|
29
|
+
"@ckeditor/ckeditor5-theme-lark": "0.0.0-nightly-20251215.0",
|
|
30
|
+
"@ckeditor/ckeditor5-ui": "0.0.0-nightly-20251215.0",
|
|
31
|
+
"@ckeditor/ckeditor5-upload": "0.0.0-nightly-20251215.0",
|
|
32
|
+
"@ckeditor/ckeditor5-utils": "0.0.0-nightly-20251215.0",
|
|
33
|
+
"ckeditor5": "0.0.0-nightly-20251215.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
|
|
24
|
-
|
|
23
|
+
function _0x37d3(_0x52fa85,_0x343666){const _0x4b913b=_0x4b91();return _0x37d3=function(_0x37d38d,_0x279c95){_0x37d38d=_0x37d38d-0x166;let _0x54df07=_0x4b913b[_0x37d38d];return _0x54df07;},_0x37d3(_0x52fa85,_0x343666);}const _0x5615a8=_0x37d3;(function(_0x4c6df2,_0x4a313c){const _0x7a9690=_0x37d3,_0x26ab0c=_0x4c6df2();while(!![]){try{const _0x5cb5ca=parseInt(_0x7a9690(0x194))/0x1+-parseInt(_0x7a9690(0x19d))/0x2+-parseInt(_0x7a9690(0x16c))/0x3+parseInt(_0x7a9690(0x18e))/0x4+-parseInt(_0x7a9690(0x16e))/0x5+-parseInt(_0x7a9690(0x168))/0x6+-parseInt(_0x7a9690(0x18a))/0x7*(-parseInt(_0x7a9690(0x170))/0x8);if(_0x5cb5ca===_0x4a313c)break;else _0x26ab0c['push'](_0x26ab0c['shift']());}catch(_0x2680e4){_0x26ab0c['push'](_0x26ab0c['shift']());}}}(_0x4b91,0x54020));import{IconUploadcareImageUpload as _0x364300}from'ckeditor5/src/icons.js';import{ObservableMixin as _0x1413d2}from'ckeditor5/src/utils.js';import{Dialog as _0x366846,DialogViewPosition as _0x4c0b4d}from'ckeditor5/src/ui.js';function _0x4b91(){const _0xda61d=['stopListening','510596XGSSiD','allEntries','destroy','imageInfo','insertImage','element','selection','setAttribute','getLastPosition','495968ZncpTA','stopDelegating','setCurrentActivity','document','detail','addEventListener','text','Replace','status','view','isOpen','_formView','width','model','_dialog','imageInline','_api','imageBlock','done-click','3506034ecDKyf','length','uploadCare','source-list','1691346IHcuyR','removeAllFiles','895445CjpBat','removeSelectionAttribute','8SzHHMZ','change','Local','getSelectedElement','linkHref','Insert','editing','plugins','get','configElement','initFlow','_editor','hide','image','_initListeners','getOutputCollectionState','EDITOR_TOP_CENTER','doneFlow','setSelection','_insertImage','focus','show','ucContextId','execute','uuid','_type','6562227KMHyQX','_initDialog','ctxElement','_editing','1884932QJYaPl','idle','_insertAsset','attributes','getAPI'];_0x4b91=function(){return _0xda61d;};return _0x4b91();}import{UploadcareFormView as _0x404440}from'./uploadcareformview.js';import{UploadcareSource as _0x655471}from'../uploadcareconfig.js';import{getTranslation as _0x133a8e}from'../utils/common-translations.js';import{getImageUrls as _0x2a2fa9,getImageDimension as _0x1a0fb0}from'../utils/editingutils.js';import{isAncestor as _0x21cb2f}from'../utils/isancestor.js';export class UploadcareController extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x1413d2(){[_0x5615a8(0x17b)];[_0x5615a8(0x1ab)];[_0x5615a8(0x18d)];[_0x5615a8(0x1ad)];[_0x5615a8(0x189)]=null;[_0x5615a8(0x1a8)]=null;constructor(_0x581e5a,_0xe4022f,_0x50f4c9){const _0x404532=_0x5615a8;super(),this[_0x404532(0x17b)]=_0x581e5a,this[_0x404532(0x18d)]=_0xe4022f,this[_0x404532(0x1ab)]=_0x581e5a[_0x404532(0x177)][_0x404532(0x178)](_0x366846),this[_0x404532(0x1ad)]=_0xe4022f[_0x404532(0x18c)][_0x404532(0x192)](),this[_0x404532(0x189)]=_0x50f4c9,this[_0x404532(0x18d)][_0x404532(0x179)][_0x404532(0x19b)](_0x404532(0x16b),this[_0x404532(0x189)]),this[_0x404532(0x18b)](),this[_0x404532(0x17e)](),this[_0x404532(0x1ad)][_0x404532(0x17a)]();}[_0x5615a8(0x196)](){const _0x25985f=_0x5615a8;this[_0x25985f(0x1a8)]&&(this[_0x25985f(0x1a8)][_0x25985f(0x196)](),this[_0x25985f(0x1a8)]=null),this[_0x25985f(0x1ad)]&&this[_0x25985f(0x1ad)][_0x25985f(0x181)](),this[_0x25985f(0x193)](),this[_0x25985f(0x19e)]();}[_0x5615a8(0x18b)](){const _0x51d4c9=_0x5615a8,{locale:_0x528d0d,model:_0x5da1b6}=this[_0x51d4c9(0x17b)],_0x23483c=_0x5da1b6[_0x51d4c9(0x1a0)][_0x51d4c9(0x19a)][_0x51d4c9(0x173)](),_0x565d26=_0x23483c&&(_0x23483c['is'](_0x51d4c9(0x199),_0x51d4c9(0x166))||_0x23483c['is'](_0x51d4c9(0x199),_0x51d4c9(0x1ac)));this[_0x51d4c9(0x1a8)]=new _0x404440(_0x528d0d,this[_0x51d4c9(0x18d)][_0x51d4c9(0x186)]),this[_0x51d4c9(0x1ab)][_0x51d4c9(0x185)]({'id':_0x51d4c9(0x16a),'icon':_0x364300,'title':_0x133a8e(_0x528d0d,this[_0x51d4c9(0x189)],_0x565d26?_0x51d4c9(0x1a4):_0x51d4c9(0x175))[_0x51d4c9(0x1a3)],'content':this[_0x51d4c9(0x1a8)],'position':_0x4c0b4d[_0x51d4c9(0x180)],'isModal':!0x0,'onShow':()=>{const _0x2a238f=_0x51d4c9;this[_0x2a238f(0x1a8)][_0x2a238f(0x184)]();},'onHide':()=>{const _0x1047d9=_0x51d4c9;this[_0x1047d9(0x1ad)][_0x1047d9(0x16d)](),this[_0x1047d9(0x17b)][_0x1047d9(0x176)][_0x1047d9(0x1a6)][_0x1047d9(0x184)](),this[_0x1047d9(0x196)]();},'keystrokeHandlerOptions':{'filter':_0x572d0f=>!_0x21cb2f(_0x572d0f,this[_0x51d4c9(0x1a8)][_0x51d4c9(0x199)])}});}[_0x5615a8(0x17e)](){const _0x3cd905=_0x5615a8;this[_0x3cd905(0x18d)][_0x3cd905(0x18c)][_0x3cd905(0x1a2)](_0x3cd905(0x167),()=>{const _0x2ef094=_0x3cd905,{allEntries:_0x378661}=this[_0x2ef094(0x1ad)][_0x2ef094(0x17f)]();this[_0x2ef094(0x17b)][_0x2ef094(0x1aa)][_0x2ef094(0x171)](_0x4f39c7=>{const _0x3a7ca3=_0x2ef094,_0x4e5b1f=_0x378661[_0x3a7ca3(0x169)];for(const _0x102e10 of _0x378661){const _0x1663e1=_0x102e10===_0x378661[_0x4e5b1f-0x1],{cdnUrl:_0x35ea01,fileInfo:_0x328e8b}=_0x102e10;if(!_0x35ea01||!_0x328e8b)continue;const {width:_0x2abb9b,height:_0x268492}=_0x328e8b[_0x3a7ca3(0x197)],_0x1b87ec=_0x1a0fb0(_0x35ea01,_0x2abb9b,_0x268492),_0x2457a5=_0x2a2fa9(_0x35ea01,_0x1b87ec[_0x3a7ca3(0x1a9)]),_0x24c7c7={'id':_0x328e8b[_0x3a7ca3(0x188)],'type':_0x3a7ca3(0x17d),'attributes':{'imageDimension':_0x1b87ec,..._0x2457a5}};this[_0x3a7ca3(0x190)](_0x24c7c7,_0x1663e1,_0x4f39c7);}}),this[_0x2ef094(0x1ab)][_0x2ef094(0x17c)]();}),this[_0x3cd905(0x18d)][_0x3cd905(0x18c)][_0x3cd905(0x1a2)](_0x3cd905(0x171),_0x42310b=>{const _0x217bbf=_0x3cd905;_0x217bbf(0x18f)===_0x42310b[_0x217bbf(0x1a1)][_0x217bbf(0x1a5)]&&!_0x42310b[_0x217bbf(0x1a1)][_0x217bbf(0x195)][_0x217bbf(0x169)]&&this[_0x217bbf(0x1ab)][_0x217bbf(0x1a7)]&&(this[_0x217bbf(0x189)]===_0x655471[_0x217bbf(0x172)]?this[_0x217bbf(0x1ad)][_0x217bbf(0x19f)](_0x655471[_0x217bbf(0x172)]):this[_0x217bbf(0x1ad)][_0x217bbf(0x17a)]());});}[_0x5615a8(0x190)](_0x48f0f9,_0x406569,_0x19fac4){const _0x391683=_0x5615a8,_0xb1f710=this[_0x391683(0x17b)][_0x391683(0x1aa)][_0x391683(0x1a0)][_0x391683(0x19a)],_0x31a32c=_0xb1f710[_0x391683(0x173)](),_0x4deaa6=!(!_0x31a32c||!_0x31a32c['is'](_0x391683(0x199),_0x391683(0x1ac)));_0x19fac4[_0x391683(0x16f)](_0x391683(0x174)),this[_0x391683(0x183)](_0x48f0f9,_0x4deaa6),_0x406569||_0x19fac4[_0x391683(0x182)](_0xb1f710[_0x391683(0x19c)]());}[_0x5615a8(0x183)](_0x78be3a,_0x8347d9){const _0x171ce5=_0x5615a8,_0x284337=this[_0x171ce5(0x17b)],{imageDimension:_0x1318d3,imageFallbackUrl:_0x5d3eed,imageSources:_0x1ab353}=_0x78be3a[_0x171ce5(0x191)];_0x284337[_0x171ce5(0x187)](_0x171ce5(0x198),{'imageType':_0x8347d9?_0x171ce5(0x1ac):null,'source':{'uploadcareImageId':_0x78be3a['id'],'src':_0x5d3eed,'sources':_0x1ab353,..._0x1318d3}});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x4f85d1=_0x5947;function _0x5947(_0x2d980a,_0x190d24){var _0x299978=_0x2999();return _0x5947=function(_0x594713,_0x4fd31b){_0x594713=_0x594713-0x8c;var _0xa8e95e=_0x299978[_0x594713];return _0xa8e95e;},_0x5947(_0x2d980a,_0x190d24);}(function(_0x113edd,_0x294e73){var _0x6bf248=_0x5947,_0x4d395c=_0x113edd();while(!![]){try{var _0xc40b53=-parseInt(_0x6bf248(0x8d))/0x1*(-parseInt(_0x6bf248(0x8c))/0x2)+-parseInt(_0x6bf248(0x92))/0x3+parseInt(_0x6bf248(0x96))/0x4*(-parseInt(_0x6bf248(0x93))/0x5)+parseInt(_0x6bf248(0x9d))/0x6+-parseInt(_0x6bf248(0x90))/0x7*(-parseInt(_0x6bf248(0x9c))/0x8)+parseInt(_0x6bf248(0x9a))/0x9+-parseInt(_0x6bf248(0x8f))/0xa;if(_0xc40b53===_0x294e73)break;else _0x4d395c['push'](_0x4d395c['shift']());}catch(_0x3765df){_0x4d395c['push'](_0x4d395c['shift']());}}}(_0x2999,0x1f271));import{DialogFocusManagerView as _0xb7123f}from'../utils/dialogfocusmanagerview.js';import'../../theme/uploadcare-form.css';export class UploadcareFormView extends _0xb7123f{constructor(_0x529ecd,_0x4f0ac2){var _0x279d58=_0x5947;super(_0x529ecd),this[_0x279d58(0x98)]({'tag':_0x279d58(0x99),'attributes':{'class':['ck',_0x279d58(0x9b),_0x279d58(0x91)],'tabindex':'-1'},'children':[{'tag':_0x279d58(0x95),'attributes':{'class':[_0x279d58(0xa0),_0x279d58(0x97)],'ctx-name':_0x279d58(0x9e)+_0x4f0ac2}},this[_0x279d58(0x94)]()]});}[_0x4f85d1(0x9f)](){var _0x47c7f3=_0x4f85d1;this[_0x47c7f3(0x8e)][_0x47c7f3(0x9f)]();}}function _0x2999(){var _0x5e756c=['1108020MnxmVz','21497bcuOKj','ck-uploadcare-form','28092GROTjV','867985aARNBO','getFocusableElement','uc-file-uploader-inline','4UVyMck','ck-uploadcare-theme','setTemplate','div','276669DqGfuJ','ck-reset_all-excluded','480mMCITh','574638hLeJjn','uploader-','focus','uc-light','20TFGuma','11059NXXbho','element'];_0x2999=function(){return _0x5e756c;};return _0x2999();}
|
package/src/uploadcareediting.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function _0x37ee(){const _0x965b3a=['1342925ILzkBp','isOfficialPlugin','ctxElement','imageInline','_configElement','8kFPHJo','insertImage','get','join','cleanupImage','_initSchema','fromCharCode','uploadcare','downcast','removeAttribute','357179nNvLLY','model','data-uc-image-id','uploader-','uc-config','querySelector','isRegistered','getAttribute','body','execute','369PSenzi','uploadcare.pubkey','_initImageProcessingIndicator','getSelectedElement','locale','PictureEditing','_initConversion','4FOxSiQ','upcast','35uuSJIL','replaceImageSource','appendChild','_initCtx','map','conversion','421506GdqiVu','uc-upload-ctx-provider','imageBlock','11515537vAZNnu','schema','contentLanguage','12QdFywK','afterInit','isPremiumPlugin','listenTo','commands','uploadcareImageId','href','pluginName','remove','UploadcareEditing','uploadcareImageReplace','config','_ctxElement','view','ucContextId','render','selection','attributeToAttribute','configElement','input[uploadcare-file-input]','add','closeMax','editing','173010LEIFBc','_initConfig','elementToAttribute','once','true','document','iconHrefResolver','uploadcare.uploader','475515SWhToe','init','requires','extend','#uc-icon-arrow-down','editor','\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','for','1069800IlXxRa','destroy'];_0x37ee=function(){return _0x965b3a;};return _0x37ee();}const _0x113fc3=_0x2db8;(function(_0x3ad154,_0x2ce57f){const _0x15c82c=_0x2db8,_0x27591b=_0x3ad154();while(!![]){try{const _0x572ba7=-parseInt(_0x15c82c(0x178))/0x1*(-parseInt(_0x15c82c(0x132))/0x2)+parseInt(_0x15c82c(0x15f))/0x3+parseInt(_0x15c82c(0x16e))/0x4*(-parseInt(_0x15c82c(0x169))/0x5)+-parseInt(_0x15c82c(0x13a))/0x6*(parseInt(_0x15c82c(0x134))/0x7)+parseInt(_0x15c82c(0x167))/0x8+parseInt(_0x15c82c(0x12b))/0x9*(-parseInt(_0x15c82c(0x157))/0xa)+parseInt(_0x15c82c(0x13d))/0xb*(parseInt(_0x15c82c(0x140))/0xc);if(_0x572ba7===_0x2ce57f)break;else _0x27591b['push'](_0x27591b['shift']());}catch(_0x579d32){_0x27591b['push'](_0x27591b['shift']());}}}(_0x37ee,0x6f409));import{Plugin as _0x54054d}from'ckeditor5/src/core.js';function _0x2db8(_0x187711,_0x43929a){const _0x37ee6a=_0x37ee();return _0x2db8=function(_0x2db8dc,_0x50e540){_0x2db8dc=_0x2db8dc-0x12b;let _0x4813a3=_0x37ee6a[_0x2db8dc];return _0x4813a3;},_0x2db8(_0x187711,_0x43929a);}import{Dialog as _0x293c51}from'ckeditor5/src/ui.js';import{createElement as _0x525512,global as _0x234f2d,uid as _0x440e54}from'ckeditor5/src/utils.js';import{UploadcareCommand as _0x5f3483}from'./uploadcarecommand.js';import{UploadcareUploadAdapter as _0x471b66}from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0x1799d1}from'./utils/editingutils.js';export class UploadcareEditing extends _0x54054d{[_0x113fc3(0x16d)]=null;[_0x113fc3(0x14c)]=null;static get[_0x113fc3(0x147)](){const _0x385ac7=_0x113fc3;return _0x385ac7(0x149);}static get[_0x113fc3(0x161)](){const _0x32123f=_0x113fc3;return[_0x32123f(0x130),_0x471b66,_0x293c51];}static get[_0x113fc3(0x16a)](){return!0x0;}static get[_0x113fc3(0x142)](){return!0x0;}[_0x113fc3(0x14e)];get[_0x113fc3(0x152)](){const _0x4a3660=_0x113fc3;return this[_0x4a3660(0x16d)];}get[_0x113fc3(0x16b)](){const _0x287e08=_0x113fc3;return this[_0x287e08(0x14c)];}constructor(_0x45e416){const _0x2478f4=_0x113fc3;super(_0x45e416),this[_0x2478f4(0x14e)]=_0x440e54();}[_0x113fc3(0x160)](){const _0x455330=_0x113fc3,_0x219a25=this[_0x455330(0x164)];_0x219a25[_0x455330(0x144)][_0x455330(0x154)](_0x455330(0x175),new _0x5f3483(_0x219a25));}[_0x113fc3(0x141)](){const _0x499a97=_0x113fc3;this[_0x499a97(0x173)](),this[_0x499a97(0x131)](),this[_0x499a97(0x158)](),this[_0x499a97(0x137)](),this[_0x499a97(0x12d)](),this[_0x499a97(0x143)](this[_0x499a97(0x164)],_0x499a97(0x168),()=>{const _0x1a6e39=_0x499a97;this[_0x1a6e39(0x16d)]&&(this[_0x1a6e39(0x16d)][_0x1a6e39(0x148)](),this[_0x1a6e39(0x16d)]=null),this[_0x1a6e39(0x14c)]&&(this[_0x1a6e39(0x14c)][_0x1a6e39(0x148)](),this[_0x1a6e39(0x14c)]=null);const _0x5f273d=_0x234f2d[_0x1a6e39(0x15c)][_0x1a6e39(0x17d)](_0x1a6e39(0x153));_0x5f273d&&_0x5f273d[_0x1a6e39(0x148)]();}),async function(_0x409a81){const _0x5d860d=_0x48e9dc([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]),_0x36616f=0x535f8c3a,_0x551bd1=0x5358f7da^_0x36616f,_0x299259=window[_0x48e9dc([0x44,0x61,0x74,0x65])][_0x48e9dc([0x6e,0x6f,0x77])](),_0x2c2827=_0x409a81[_0x48e9dc([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x34e131=new window[(_0x48e9dc([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4b974c=>{_0x2c2827[_0x48e9dc([0x6f,0x6e,0x63,0x65])](_0x48e9dc([0x72,0x65,0x61,0x64,0x79]),_0x4b974c);}),_0x351024={[_0x48e9dc([0x6b,0x74,0x79])]:_0x48e9dc([0x45,0x43]),[_0x48e9dc([0x75,0x73,0x65])]:_0x48e9dc([0x73,0x69,0x67]),[_0x48e9dc([0x63,0x72,0x76])]:_0x48e9dc([0x50,0x2d,0x32,0x35,0x36]),[_0x48e9dc([0x78])]:_0x48e9dc([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]),[_0x48e9dc([0x79])]:_0x48e9dc([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]),[_0x48e9dc([0x61,0x6c,0x67])]:_0x48e9dc([0x45,0x53,0x32,0x35,0x36])},_0x445e40=_0x2c2827[_0x48e9dc([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x48e9dc([0x67,0x65,0x74])](_0x48e9dc([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x210f06(){let _0x5a0aae,_0x234780=null,_0x57f502=null;try{if(_0x445e40==_0x48e9dc([0x47,0x50,0x4c]))return _0x48e9dc([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x5a0aae=_0x3e14dc(),!_0x5a0aae)return _0x48e9dc([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x5a0aae[_0x48e9dc([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x57f502=_0x2b51a0(_0x5a0aae[_0x48e9dc([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x5a0aae[_0x48e9dc([0x6a,0x74,0x69])])),await _0x52ee37()?_0x4d67ef()?_0x2e786b()?_0x48e9dc([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x1117fc()?(_0x5a0aae[_0x48e9dc([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x48e9dc([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x234780=_0x11afb6(_0x48e9dc([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x5a0aae[_0x48e9dc([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x48e9dc([0x74,0x72,0x69,0x61,0x6c])&&(_0x234780=_0x11afb6(_0x48e9dc([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x1274aa()):_0x48e9dc([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x48e9dc([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x48e9dc([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x48e9dc([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x2e786b(){const _0x431440=[_0x48e9dc([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x48e9dc([0x74,0x72,0x69,0x61,0x6c])][_0x48e9dc([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5a0aae[_0x48e9dc([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x299259/0x3e8:0xe10*_0x551bd1;return _0x5a0aae[_0x48e9dc([0x65,0x78,0x70])]<_0x431440;}function _0x4d67ef(){const _0x3e59a6=_0x5a0aae[_0x48e9dc([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x3e59a6&&(!!_0x3e59a6[_0x48e9dc([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x48e9dc([0x2a]))||!!_0x3e59a6[_0x48e9dc([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x48e9dc([0x55,0x50,0x4c,0x43])));}function _0x1117fc(){const _0x10e494=_0x2db8,_0x1c1e2b=_0x5a0aae[_0x48e9dc([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x1c1e2b||0x0==_0x1c1e2b[_0x48e9dc([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x56a24b}=new URL(window[_0x48e9dc([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x10e494(0x146)]);if(_0x1c1e2b[_0x48e9dc([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x56a24b))return!0x0;const _0x175fa3=_0x56a24b[_0x48e9dc([0x73,0x70,0x6c,0x69,0x74])](_0x48e9dc([0x2e]));return _0x1c1e2b[_0x48e9dc([0x66,0x69,0x6c,0x74,0x65,0x72])](_0xf632db=>_0xf632db[_0x48e9dc([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x48e9dc([0x2a])))[_0x48e9dc([0x6d,0x61,0x70])](_0x4be230=>_0x4be230[_0x48e9dc([0x73,0x70,0x6c,0x69,0x74])](_0x48e9dc([0x2e])))[_0x48e9dc([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x598c74=>_0x598c74[_0x48e9dc([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x175fa3[_0x48e9dc([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x48e9dc([0x6d,0x61,0x70])](_0x212c6d=>Array(_0x175fa3[_0x48e9dc([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x212c6d[_0x48e9dc([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x48e9dc([0x66,0x69,0x6c,0x6c])](_0x212c6d[0x0]===_0x48e9dc([0x2a])?_0x48e9dc([0x2a]):'')[_0x48e9dc([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x212c6d))[_0x48e9dc([0x73,0x6f,0x6d,0x65])](_0x1e6cb7=>_0x175fa3[_0x48e9dc([0x65,0x76,0x65,0x72,0x79])]((_0x2ce6f7,_0x492b01)=>_0x1e6cb7[_0x492b01]===_0x2ce6f7||_0x1e6cb7[_0x492b01]===_0x48e9dc([0x2a])));}function _0x1274aa(){return _0x234780&&_0x57f502?new window[(_0x48e9dc([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0xb09964,_0x242ac6)=>{_0x234780[_0x48e9dc([0x74,0x68,0x65,0x6e])](_0xb09964,_0x242ac6),_0x57f502[_0x48e9dc([0x74,0x68,0x65,0x6e])](_0x2c931a=>{_0x2c931a!=_0x48e9dc([0x56,0x61,0x6c,0x69,0x64])&&_0xb09964(_0x2c931a);},_0x242ac6);}):_0x234780||_0x57f502||_0x48e9dc([0x56,0x61,0x6c,0x69,0x64]);}}function _0x2b51a0(_0x33c674,_0x1256f6){return new window[(_0x48e9dc([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x603e5b=>{if(_0xeea858())return _0x603e5b(_0x48e9dc([0x56,0x61,0x6c,0x69,0x64]));_0x5a28f5(),_0x2c2827[_0x48e9dc([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x48e9dc([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x18ddbf=!0x1;const _0x163306=_0x440e54();function _0x3ce52d(_0x23f8e4){return!!_0x23f8e4&&(typeof _0x23f8e4===_0x48e9dc([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x23f8e4===_0x48e9dc([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x23f8e4[_0x48e9dc([0x74,0x68,0x65,0x6e])]===_0x48e9dc([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x23f8e4[_0x48e9dc([0x63,0x61,0x74,0x63,0x68])]===_0x48e9dc([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0xc03dd3(_0x1ca2f9){_0x54286f(_0x1ca2f9)[_0x48e9dc([0x74,0x68,0x65,0x6e])](_0x5a306b=>{if(!_0x5a306b||_0x5a306b[_0x48e9dc([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x48e9dc([0x6f,0x6b]))return _0x48e9dc([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x580385(_0x5bc4e2(_0x163306+_0x1256f6))!=_0x5a306b[_0x48e9dc([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x48e9dc([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x48e9dc([0x56,0x61,0x6c,0x69,0x64]);})[_0x48e9dc([0x74,0x68,0x65,0x6e])](_0x3571ed=>(_0x54a2a6(),_0x3571ed),()=>{const _0x549765=_0x56f779();return null==_0x549765?(_0x54a2a6(),_0x48e9dc([0x56,0x61,0x6c,0x69,0x64])):_0x48e9dc(_0x299259-_0x549765>(0x7753083a^_0x36616f)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x48e9dc([0x74,0x68,0x65,0x6e])](_0x603e5b)[_0x48e9dc([0x63,0x61,0x74,0x63,0x68])](()=>{_0x603e5b(_0x48e9dc([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x3c22a5=0x536962ba^_0x36616f;function _0x54a2a6(){const _0x3904c9=_0x48e9dc([0x6c,0x6c,0x63,0x74,0x2d])+_0x580385(_0x5bc4e2(_0x33c674)),_0xe6c30a=_0x438a92(_0x580385(window[_0x48e9dc([0x4d,0x61,0x74,0x68])][_0x48e9dc([0x63,0x65,0x69,0x6c])](_0x299259/_0x3c22a5)));window[_0x48e9dc([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x48e9dc([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3904c9,_0xe6c30a);}function _0x56f779(){const _0x50ed75=_0x48e9dc([0x6c,0x6c,0x63,0x74,0x2d])+_0x580385(_0x5bc4e2(_0x33c674)),_0x50a413=window[_0x48e9dc([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x48e9dc([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x50ed75);return _0x50a413?window[_0x48e9dc([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x438a92(_0x50a413),0x10)*_0x3c22a5:null;}function _0x54286f(_0x1f3793){return new window[(_0x48e9dc([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x5c14d8,_0x53052e)=>{_0x1f3793[_0x48e9dc([0x74,0x68,0x65,0x6e])](_0x5c14d8,_0x53052e),window[_0x48e9dc([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x53052e,0x535e58fa^_0x36616f);});}}_0x2c2827[_0x48e9dc([0x6f,0x6e])](_0x48e9dc([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x5162fe,_0x39238f)=>{if(_0x39238f[0x0]!=_0x33c674)return _0x603e5b(_0x48e9dc([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x39238f[0x1]={..._0x39238f[0x1],[_0x48e9dc([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x163306};},{[_0x48e9dc([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x48e9dc([0x68,0x69,0x67,0x68])}),_0x2c2827[_0x48e9dc([0x6f,0x6e])](_0x48e9dc([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x340833=>{_0x3ce52d(_0x340833[_0x48e9dc([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x18ddbf=!0x0,_0xc03dd3(_0x340833[_0x48e9dc([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x48e9dc([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x48e9dc([0x6c,0x6f,0x77])}),_0x34e131[_0x48e9dc([0x74,0x68,0x65,0x6e])](()=>{_0x18ddbf||_0x603e5b(_0x48e9dc([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0xeea858(){return _0x2c2827[_0x48e9dc([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x48e9dc([0x76,0x69,0x65,0x77])][_0x48e9dc([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x48e9dc([0x61,0x75,0x74,0x6f]);}function _0x5a28f5(){_0x2c2827[_0x48e9dc([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x48e9dc([0x76,0x69,0x65,0x77])][_0x48e9dc([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x48e9dc([0x61,0x75,0x74,0x6f]);}}function _0x11afb6(_0x32d8e7){const _0x3071c2=[new window[(_0x48e9dc([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x62fd4f=>setTimeout(_0x62fd4f,0x5356b2f6^_0x36616f)),_0x34e131[_0x48e9dc([0x74,0x68,0x65,0x6e])](()=>new window[(_0x48e9dc([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1275f7=>{let _0x38b536=0x0;_0x2c2827[_0x48e9dc([0x6d,0x6f,0x64,0x65,0x6c])][_0x48e9dc([0x6f,0x6e])](_0x48e9dc([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x173589,_0x529e6d)=>{_0x529e6d[0x0][_0x48e9dc([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x38b536++,_0x38b536==(0x535f8dc2^_0x36616f)&&(_0x1275f7(),_0x173589[_0x48e9dc([0x6f,0x66,0x66])]());});}))];return window[_0x48e9dc([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x48e9dc([0x72,0x61,0x63,0x65])](_0x3071c2)[_0x48e9dc([0x74,0x68,0x65,0x6e])](()=>_0x32d8e7);}async function _0x13724b(){await _0x34e131,_0x2c2827[_0x48e9dc([0x6d,0x6f,0x64,0x65,0x6c])][_0x48e9dc([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0xf2461c,_0x2c2827[_0x48e9dc([0x6d,0x6f,0x64,0x65,0x6c])][_0x48e9dc([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0xf2461c,_0x2c2827[_0x48e9dc([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x48e9dc([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x25a8c1(_0x345c33){const _0x1e4e3f=_0x499ef9();_0x2c2827[_0x1e4e3f]=_0x48e9dc([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x345c33,_0x345c33!=_0x48e9dc([0x56,0x61,0x6c,0x69,0x64])&&_0x13724b();}function _0x499ef9(){const _0x197382=window[_0x48e9dc([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x48e9dc([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x48e9dc([0x6e,0x6f,0x77])]())[_0x48e9dc([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x48e9dc([0x2e]),'');let _0x57c745=_0x48e9dc([0x68]);for(let _0x1d311a=0x0;_0x1d311a<_0x197382[_0x48e9dc([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1d311a+=0x2){let _0xe2131=window[_0x48e9dc([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x197382[_0x48e9dc([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x1d311a,_0x1d311a+0x2));_0xe2131>=_0x5d860d[_0x48e9dc([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0xe2131-=_0x5d860d[_0x48e9dc([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x57c745+=_0x5d860d[_0xe2131];}return _0x57c745;}function _0x3e14dc(){const _0xba0d3b=_0x445e40[_0x48e9dc([0x73,0x70,0x6c,0x69,0x74])](_0x48e9dc([0x2e]));if(0x3!=_0xba0d3b[_0x48e9dc([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x1df5bf(_0xba0d3b[0x1]);function _0x1df5bf(_0xfa8b31){const _0x5e9fbd=_0x333a15(_0xfa8b31);return _0x5e9fbd&&_0x350661()?_0x5e9fbd:null;function _0x350661(){const _0x59485f=_0x5e9fbd[_0x48e9dc([0x6a,0x74,0x69])],_0x1a4572=window[_0x48e9dc([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x59485f[_0x48e9dc([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x59485f[_0x48e9dc([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x413ca2={..._0x5e9fbd,[_0x48e9dc([0x6a,0x74,0x69])]:_0x59485f[_0x48e9dc([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x59485f[_0x48e9dc([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x413ca2[_0x48e9dc([0x76,0x63])],_0x5bc4e2(_0x413ca2)==_0x1a4572;}}}async function _0x52ee37(){let _0x110983=!0x0;try{const _0x538984=_0x445e40[_0x48e9dc([0x73,0x70,0x6c,0x69,0x74])](_0x48e9dc([0x2e])),[_0x2c701b,_0x1cb341,_0x360893]=_0x538984;return _0x2cbb70(_0x2c701b),await _0x1ee8b4(_0x2c701b,_0x1cb341,_0x360893),_0x110983;}catch{return!0x1;}function _0x2cbb70(_0x49bce5){const _0x799725=_0x333a15(_0x49bce5);_0x799725&&_0x799725[_0x48e9dc([0x61,0x6c,0x67])]==_0x48e9dc([0x45,0x53,0x32,0x35,0x36])||(_0x110983=!0x1);}async function _0x1ee8b4(_0x28415d,_0x491889,_0x219015){const _0x3b5d09=window[_0x48e9dc([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x48e9dc([0x66,0x72,0x6f,0x6d])](_0x192b6d(_0x219015),_0x472457=>_0x472457[_0x48e9dc([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x37950c=new window[(_0x48e9dc([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x48e9dc([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x28415d+_0x48e9dc([0x2e])+_0x491889),_0x64a236=window[_0x48e9dc([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x48e9dc([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x64a236)return;const _0x39c263=await _0x64a236[_0x48e9dc([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x48e9dc([0x6a,0x77,0x6b]),_0x351024,{[_0x48e9dc([0x6e,0x61,0x6d,0x65])]:_0x48e9dc([0x45,0x43,0x44,0x53,0x41]),[_0x48e9dc([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x48e9dc([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x48e9dc([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x64a236[_0x48e9dc([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x48e9dc([0x6e,0x61,0x6d,0x65])]:_0x48e9dc([0x45,0x43,0x44,0x53,0x41]),[_0x48e9dc([0x68,0x61,0x73,0x68])]:{[_0x48e9dc([0x6e,0x61,0x6d,0x65])]:_0x48e9dc([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x39c263,_0x3b5d09,_0x37950c)||(_0x110983=!0x1);}}function _0x333a15(_0x38dd34){return _0x38dd34[_0x48e9dc([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x48e9dc([0x65,0x79]))?JSON[_0x48e9dc([0x70,0x61,0x72,0x73,0x65])](_0x192b6d(_0x38dd34)):null;}function _0x192b6d(_0x5b2a73){return window[_0x48e9dc([0x61,0x74,0x6f,0x62])](_0x5b2a73[_0x48e9dc([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x48e9dc([0x2b]))[_0x48e9dc([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x48e9dc([0x2f])));}function _0x5bc4e2(_0x370724){let _0x1d7fe9=0x1505;function _0x3aabf7(_0xd9bd82){for(let _0x5975c6=0x0;_0x5975c6<_0xd9bd82[_0x48e9dc([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x5975c6++){const _0x5494a9=_0xd9bd82[_0x48e9dc([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x5975c6);_0x1d7fe9=(_0x1d7fe9<<0x5)+_0x1d7fe9+_0x5494a9,_0x1d7fe9&=_0x1d7fe9;}}function _0x156c61(_0x496589){Array[_0x48e9dc([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x496589)?_0x496589[_0x48e9dc([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x156c61):_0x496589&&typeof _0x496589==_0x48e9dc([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x48e9dc([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x496589)[_0x48e9dc([0x73,0x6f,0x72,0x74])]()[_0x48e9dc([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x154443,_0x2f1ba4])=>{_0x3aabf7(_0x154443),_0x156c61(_0x2f1ba4);}):_0x3aabf7(window[_0x48e9dc([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x496589));}return _0x156c61(_0x370724),_0x1d7fe9>>>0x0;}function _0x580385(_0x3903d3){return _0x3903d3[_0x48e9dc([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x48e9dc([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x48e9dc([0x30]));}function _0x438a92(_0x4f8292){return _0x4f8292[_0x48e9dc([0x73,0x70,0x6c,0x69,0x74])]('')[_0x48e9dc([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x48e9dc([0x6a,0x6f,0x69,0x6e])]('');}function _0xf2461c(){}function _0x48e9dc(_0x137e68){const _0x416ef3=_0x2db8;return _0x137e68[_0x416ef3(0x138)](_0x2cd532=>String[_0x416ef3(0x174)](_0x2cd532))[_0x416ef3(0x171)]('');}_0x25a8c1(await _0x210f06());}(this);}[_0x113fc3(0x173)](){const _0x44ec1d=_0x113fc3,_0x434349=this[_0x44ec1d(0x164)][_0x44ec1d(0x179)][_0x44ec1d(0x13e)];_0x434349[_0x44ec1d(0x17e)](_0x44ec1d(0x13c))&&_0x434349[_0x44ec1d(0x162)](_0x44ec1d(0x13c),{'allowAttributes':[_0x44ec1d(0x145)]}),_0x434349[_0x44ec1d(0x17e)](_0x44ec1d(0x16c))&&_0x434349[_0x44ec1d(0x162)](_0x44ec1d(0x16c),{'allowAttributes':[_0x44ec1d(0x145)]});}[_0x113fc3(0x131)](){const _0x408ba2=_0x113fc3,_0x300448=this[_0x408ba2(0x164)];_0x300448[_0x408ba2(0x139)][_0x408ba2(0x166)](_0x408ba2(0x176))[_0x408ba2(0x151)]({'model':_0x408ba2(0x145),'view':_0x408ba2(0x17a)}),_0x300448[_0x408ba2(0x139)][_0x408ba2(0x166)](_0x408ba2(0x133))[_0x408ba2(0x159)]({'model':{'key':_0x408ba2(0x145),'value':_0x146735=>_0x146735[_0x408ba2(0x17f)](_0x408ba2(0x17a))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x2b084f=_0x300448[_0x408ba2(0x144)][_0x408ba2(0x170)](_0x408ba2(0x135));_0x2b084f&&this[_0x408ba2(0x143)](_0x2b084f,_0x408ba2(0x172),(_0x44d8ba,[_0xca65ba,_0x5e0e74])=>{const _0x3ff5f9=_0x408ba2;_0xca65ba[_0x3ff5f9(0x177)](_0x3ff5f9(0x145),_0x5e0e74);});}[_0x113fc3(0x158)](){const _0x258b11=_0x113fc3,_0x1c021e=this[_0x258b11(0x164)][_0x258b11(0x14b)][_0x258b11(0x170)](_0x258b11(0x15e))||{},_0x2964b8=this[_0x258b11(0x164)][_0x258b11(0x14b)][_0x258b11(0x170)](_0x258b11(0x12c))||'';this[_0x258b11(0x16d)]=_0x525512(_0x234f2d[_0x258b11(0x15c)],_0x258b11(0x17c),{..._0x1c021e,'pubkey':_0x2964b8,'ctx-name':_0x258b11(0x17b)+this[_0x258b11(0x14e)],'sourceList':'','imgOnly':_0x258b11(0x15b),'removeCopyright':_0x258b11(0x15b),'localeName':this[_0x258b11(0x164)][_0x258b11(0x12f)][_0x258b11(0x13f)],'externalSourcesEmbedCss':_0x258b11(0x165)}),this[_0x258b11(0x16d)][_0x258b11(0x15d)]=_0x694b1a=>{const _0x522fd2=_0x258b11;if(_0x522fd2(0x155)==_0x694b1a)return _0x522fd2(0x163);},_0x234f2d[_0x258b11(0x15c)][_0x258b11(0x180)][_0x258b11(0x136)](this[_0x258b11(0x16d)]);}[_0x113fc3(0x137)](){const _0x257fd6=_0x113fc3;this[_0x257fd6(0x14c)]=_0x525512(_0x234f2d[_0x257fd6(0x15c)],_0x257fd6(0x13b),{'ctx-name':_0x257fd6(0x17b)+this[_0x257fd6(0x14e)]}),_0x234f2d[_0x257fd6(0x15c)][_0x257fd6(0x180)][_0x257fd6(0x136)](this[_0x257fd6(0x14c)]);}[_0x113fc3(0x12d)](){const _0x444c82=_0x113fc3,_0x2ec014=this[_0x444c82(0x164)][_0x444c82(0x144)][_0x444c82(0x170)](_0x444c82(0x16f));_0x2ec014&&this[_0x444c82(0x143)](_0x2ec014,_0x444c82(0x181),()=>{const _0x284300=_0x444c82,_0x288ad5=this[_0x284300(0x164)][_0x284300(0x179)][_0x284300(0x15c)][_0x284300(0x150)][_0x284300(0x12e)]();_0x288ad5&&_0x288ad5[_0x284300(0x17f)](_0x284300(0x145))&&this[_0x284300(0x164)][_0x284300(0x156)][_0x284300(0x14d)][_0x284300(0x15a)](_0x284300(0x14f),()=>{const _0x45294f=_0x284300;_0x1799d1(this[_0x45294f(0x164)],_0x288ad5);});});const _0x28cbbb=this[_0x444c82(0x164)][_0x444c82(0x144)][_0x444c82(0x170)](_0x444c82(0x14a));_0x28cbbb&&this[_0x444c82(0x143)](_0x28cbbb,_0x444c82(0x181),()=>{const _0x528b2a=_0x444c82,_0x44cd7f=this[_0x528b2a(0x164)][_0x528b2a(0x179)][_0x528b2a(0x15c)][_0x528b2a(0x150)][_0x528b2a(0x12e)]();_0x44cd7f&&_0x44cd7f[_0x528b2a(0x17f)](_0x528b2a(0x145))&&this[_0x528b2a(0x164)][_0x528b2a(0x156)][_0x528b2a(0x14d)][_0x528b2a(0x15a)](_0x528b2a(0x14f),()=>{const _0x15e85b=_0x528b2a;_0x1799d1(this[_0x15e85b(0x164)],_0x44cd7f);});});}}
|
|
23
|
+
const _0x3c6bfb=_0x5987;function _0x4c7d(){const _0x3a2772=['209DFJJJU','locale','join','commands','2742IBFauf','querySelector','schema','14745888PiUMTC','conversion','uploadcareImageReplace','uploadcare','isPremiumPlugin','href','_initConfig','config','getSelectedElement','body','removeAttribute','uploadcareImageId','12715YYxzUs','102010nVggvU','true','data-uc-image-id','ctxElement','imageInline','for','model','replaceImageSource','upcast','afterInit','isRegistered','5062fpxLFi','PictureEditing','uploadcare.uploader','cleanupImage','insertImage','378432TBCckR','_initImageProcessingIndicator','UploadcareEditing','366807bWNbij','once','988SkvSgm','#uc-icon-arrow-down','listenTo','ucContextId','view','fromCharCode','getAttribute','render','_initSchema','imageBlock','_configElement','configElement','8YGCSFs','iconHrefResolver','uc-upload-ctx-provider','elementToAttribute','destroy','downcast','isOfficialPlugin','get','execute','uc-config','96dnHrfN','init','contentLanguage','editor','selection','uploadcare.pubkey','add','appendChild','pluginName','requires','attributeToAttribute','_initConversion','input[uploadcare-file-input]','remove','closeMax','_ctxElement','map','editing','_initCtx','extend','document','12213ljbkZA','\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','uploader-'];_0x4c7d=function(){return _0x3a2772;};return _0x4c7d();}function _0x5987(_0x52c577,_0x1341f9){const _0x4c7d75=_0x4c7d();return _0x5987=function(_0x598792,_0x413475){_0x598792=_0x598792-0xc3;let _0x5ebade=_0x4c7d75[_0x598792];return _0x5ebade;},_0x5987(_0x52c577,_0x1341f9);}(function(_0xcc831f,_0x1a76fd){const _0x345865=_0x5987,_0x1eedab=_0xcc831f();while(!![]){try{const _0x120434=-parseInt(_0x345865(0x108))/0x1*(parseInt(_0x345865(0xe8))/0x2)+-parseInt(_0x345865(0xc6))/0x3*(-parseInt(_0x345865(0xf2))/0x4)+-parseInt(_0x345865(0xdc))/0x5*(parseInt(_0x345865(0xcd))/0x6)+parseInt(_0x345865(0xf0))/0x7*(parseInt(_0x345865(0xfe))/0x8)+-parseInt(_0x345865(0xed))/0x9+-parseInt(_0x345865(0xdd))/0xa*(parseInt(_0x345865(0xc9))/0xb)+parseInt(_0x345865(0xd0))/0xc;if(_0x120434===_0x1a76fd)break;else _0x1eedab['push'](_0x1eedab['shift']());}catch(_0x4739ed){_0x1eedab['push'](_0x1eedab['shift']());}}}(_0x4c7d,0x9da88));import{Plugin as _0x11446b}from'ckeditor5/src/core.js';import{Dialog as _0x5962f4}from'ckeditor5/src/ui.js';import{createElement as _0x51c9c8,global as _0xbf63ae,uid as _0x259339}from'ckeditor5/src/utils.js';import{UploadcareCommand as _0x1b76af}from'./uploadcarecommand.js';import{UploadcareUploadAdapter as _0x29986c}from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0x4d822a}from'./utils/editingutils.js';export class UploadcareEditing extends _0x11446b{[_0x3c6bfb(0xfc)]=null;[_0x3c6bfb(0x117)]=null;static get[_0x3c6bfb(0x110)](){const _0x3fedbf=_0x3c6bfb;return _0x3fedbf(0xef);}static get[_0x3c6bfb(0x111)](){const _0x3ba88b=_0x3c6bfb;return[_0x3ba88b(0xe9),_0x29986c,_0x5962f4];}static get[_0x3c6bfb(0x104)](){return!0x0;}static get[_0x3c6bfb(0xd4)](){return!0x0;}[_0x3c6bfb(0xf5)];get[_0x3c6bfb(0xfd)](){const _0x5d1abd=_0x3c6bfb;return this[_0x5d1abd(0xfc)];}get[_0x3c6bfb(0xe0)](){const _0x1a54ab=_0x3c6bfb;return this[_0x1a54ab(0x117)];}constructor(_0x65ca80){const _0x31962c=_0x3c6bfb;super(_0x65ca80),this[_0x31962c(0xf5)]=_0x259339();}[_0x3c6bfb(0x109)](){const _0x4a2610=_0x3c6bfb,_0x2d6e40=this[_0x4a2610(0x10b)];_0x2d6e40[_0x4a2610(0xcc)][_0x4a2610(0x10e)](_0x4a2610(0xd3),new _0x1b76af(_0x2d6e40));}[_0x3c6bfb(0xe6)](){const _0x2b91e4=_0x3c6bfb;this[_0x2b91e4(0xfa)](),this[_0x2b91e4(0x113)](),this[_0x2b91e4(0xd6)](),this[_0x2b91e4(0xc3)](),this[_0x2b91e4(0xee)](),this[_0x2b91e4(0xf4)](this[_0x2b91e4(0x10b)],_0x2b91e4(0x102),()=>{const _0x3f48b6=_0x2b91e4;this[_0x3f48b6(0xfc)]&&(this[_0x3f48b6(0xfc)][_0x3f48b6(0x115)](),this[_0x3f48b6(0xfc)]=null),this[_0x3f48b6(0x117)]&&(this[_0x3f48b6(0x117)][_0x3f48b6(0x115)](),this[_0x3f48b6(0x117)]=null);const _0x5bfe28=_0xbf63ae[_0x3f48b6(0xc5)][_0x3f48b6(0xce)](_0x3f48b6(0x114));_0x5bfe28&&_0x5bfe28[_0x3f48b6(0x115)]();}),async function(_0x265371){const _0x19d234=_0x545daa([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]),_0x4ca00f=0x535f8c3a,_0x449a45=0x5358f7c2^_0x4ca00f,_0xc4e53c=window[_0x545daa([0x44,0x61,0x74,0x65])][_0x545daa([0x6e,0x6f,0x77])](),_0x11414b=_0x265371[_0x545daa([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x5a5601=new window[(_0x545daa([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3dd1bf=>{_0x11414b[_0x545daa([0x6f,0x6e,0x63,0x65])](_0x545daa([0x72,0x65,0x61,0x64,0x79]),_0x3dd1bf);}),_0x25d052={[_0x545daa([0x6b,0x74,0x79])]:_0x545daa([0x45,0x43]),[_0x545daa([0x75,0x73,0x65])]:_0x545daa([0x73,0x69,0x67]),[_0x545daa([0x63,0x72,0x76])]:_0x545daa([0x50,0x2d,0x32,0x35,0x36]),[_0x545daa([0x78])]:_0x545daa([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]),[_0x545daa([0x79])]:_0x545daa([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]),[_0x545daa([0x61,0x6c,0x67])]:_0x545daa([0x45,0x53,0x32,0x35,0x36])},_0x1b526c=_0x11414b[_0x545daa([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x545daa([0x67,0x65,0x74])](_0x545daa([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x39c691(){let _0x2a2ed9,_0x2ea200=null,_0xf971e4=null;try{if(_0x1b526c==_0x545daa([0x47,0x50,0x4c]))return _0x545daa([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x2a2ed9=_0x391644(),!_0x2a2ed9)return _0x545daa([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x2a2ed9[_0x545daa([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0xf971e4=_0x526a5d(_0x2a2ed9[_0x545daa([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x2a2ed9[_0x545daa([0x6a,0x74,0x69])])),await _0x214af1()?_0x1df27c()?_0x3676d8()?_0x545daa([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x2f4990()?(_0x2a2ed9[_0x545daa([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x545daa([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x2ea200=_0x33d9ea(_0x545daa([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x2a2ed9[_0x545daa([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x545daa([0x74,0x72,0x69,0x61,0x6c])&&(_0x2ea200=_0x33d9ea(_0x545daa([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x438b35()):_0x545daa([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x545daa([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x545daa([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x545daa([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x3676d8(){const _0x5bcb31=[_0x545daa([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x545daa([0x74,0x72,0x69,0x61,0x6c])][_0x545daa([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2a2ed9[_0x545daa([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0xc4e53c/0x3e8:0xe10*_0x449a45;return _0x2a2ed9[_0x545daa([0x65,0x78,0x70])]<_0x5bcb31;}function _0x1df27c(){const _0x2d927a=_0x2a2ed9[_0x545daa([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x2d927a&&(!!_0x2d927a[_0x545daa([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x545daa([0x2a]))||!!_0x2d927a[_0x545daa([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x545daa([0x55,0x50,0x4c,0x43])));}function _0x2f4990(){const _0x1c4b69=_0x5987,_0x4527d2=_0x2a2ed9[_0x545daa([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x4527d2||0x0==_0x4527d2[_0x545daa([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0xf5cbe2}=new URL(window[_0x545daa([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x1c4b69(0xd5)]);if(_0x4527d2[_0x545daa([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xf5cbe2))return!0x0;const _0x4cf4c8=_0xf5cbe2[_0x545daa([0x73,0x70,0x6c,0x69,0x74])](_0x545daa([0x2e]));return _0x4527d2[_0x545daa([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x43563f=>_0x43563f[_0x545daa([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x545daa([0x2a])))[_0x545daa([0x6d,0x61,0x70])](_0x18de09=>_0x18de09[_0x545daa([0x73,0x70,0x6c,0x69,0x74])](_0x545daa([0x2e])))[_0x545daa([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x4f5ff9=>_0x4f5ff9[_0x545daa([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x4cf4c8[_0x545daa([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x545daa([0x6d,0x61,0x70])](_0x4771bd=>Array(_0x4cf4c8[_0x545daa([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x4771bd[_0x545daa([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x545daa([0x66,0x69,0x6c,0x6c])](_0x4771bd[0x0]===_0x545daa([0x2a])?_0x545daa([0x2a]):'')[_0x545daa([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x4771bd))[_0x545daa([0x73,0x6f,0x6d,0x65])](_0x2da481=>_0x4cf4c8[_0x545daa([0x65,0x76,0x65,0x72,0x79])]((_0x950b8c,_0x5dc3b0)=>_0x2da481[_0x5dc3b0]===_0x950b8c||_0x2da481[_0x5dc3b0]===_0x545daa([0x2a])));}function _0x438b35(){return _0x2ea200&&_0xf971e4?new window[(_0x545daa([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4f0328,_0x37f493)=>{_0x2ea200[_0x545daa([0x74,0x68,0x65,0x6e])](_0x4f0328,_0x37f493),_0xf971e4[_0x545daa([0x74,0x68,0x65,0x6e])](_0x36f063=>{_0x36f063!=_0x545daa([0x56,0x61,0x6c,0x69,0x64])&&_0x4f0328(_0x36f063);},_0x37f493);}):_0x2ea200||_0xf971e4||_0x545daa([0x56,0x61,0x6c,0x69,0x64]);}}function _0x526a5d(_0x40a240,_0x225233){return new window[(_0x545daa([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x152142=>{if(_0x1fda49())return _0x152142(_0x545daa([0x56,0x61,0x6c,0x69,0x64]));_0x56b7a7(),_0x11414b[_0x545daa([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x545daa([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x5c1e11=!0x1;const _0x3bd28c=_0x259339();function _0xda4340(_0x47192c){return!!_0x47192c&&(typeof _0x47192c===_0x545daa([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x47192c===_0x545daa([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x47192c[_0x545daa([0x74,0x68,0x65,0x6e])]===_0x545daa([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x47192c[_0x545daa([0x63,0x61,0x74,0x63,0x68])]===_0x545daa([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0xf3894f(_0x5dbc65){_0x2ea56f(_0x5dbc65)[_0x545daa([0x74,0x68,0x65,0x6e])](_0x42fccf=>{if(!_0x42fccf||_0x42fccf[_0x545daa([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x545daa([0x6f,0x6b]))return _0x545daa([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x221336(_0x5e7990(_0x3bd28c+_0x225233))!=_0x42fccf[_0x545daa([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x545daa([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x545daa([0x56,0x61,0x6c,0x69,0x64]);})[_0x545daa([0x74,0x68,0x65,0x6e])](_0x17b14c=>(_0x45dc6a(),_0x17b14c),()=>{const _0x5bbedd=_0x1c5873();return null==_0x5bbedd?(_0x45dc6a(),_0x545daa([0x56,0x61,0x6c,0x69,0x64])):_0x545daa(_0xc4e53c-_0x5bbedd>(0x7753083a^_0x4ca00f)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x545daa([0x74,0x68,0x65,0x6e])](_0x152142)[_0x545daa([0x63,0x61,0x74,0x63,0x68])](()=>{_0x152142(_0x545daa([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x21870f=0x536962ba^_0x4ca00f;function _0x45dc6a(){const _0xee5bf3=_0x545daa([0x6c,0x6c,0x63,0x74,0x2d])+_0x221336(_0x5e7990(_0x40a240)),_0x48ff80=_0x3e8594(_0x221336(window[_0x545daa([0x4d,0x61,0x74,0x68])][_0x545daa([0x63,0x65,0x69,0x6c])](_0xc4e53c/_0x21870f)));window[_0x545daa([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x545daa([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0xee5bf3,_0x48ff80);}function _0x1c5873(){const _0x4d7393=_0x545daa([0x6c,0x6c,0x63,0x74,0x2d])+_0x221336(_0x5e7990(_0x40a240)),_0x4cef83=window[_0x545daa([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x545daa([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4d7393);return _0x4cef83?window[_0x545daa([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3e8594(_0x4cef83),0x10)*_0x21870f:null;}function _0x2ea56f(_0x4dec9c){return new window[(_0x545daa([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x2f1f6b,_0x91b53e)=>{_0x4dec9c[_0x545daa([0x74,0x68,0x65,0x6e])](_0x2f1f6b,_0x91b53e),window[_0x545daa([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x91b53e,0x535e58fa^_0x4ca00f);});}}_0x11414b[_0x545daa([0x6f,0x6e])](_0x545daa([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x39b80c,_0x14faa9)=>{if(_0x14faa9[0x0]!=_0x40a240)return _0x152142(_0x545daa([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x14faa9[0x1]={..._0x14faa9[0x1],[_0x545daa([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x3bd28c};},{[_0x545daa([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x545daa([0x68,0x69,0x67,0x68])}),_0x11414b[_0x545daa([0x6f,0x6e])](_0x545daa([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x52cec6=>{_0xda4340(_0x52cec6[_0x545daa([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x5c1e11=!0x0,_0xf3894f(_0x52cec6[_0x545daa([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x545daa([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x545daa([0x6c,0x6f,0x77])}),_0x5a5601[_0x545daa([0x74,0x68,0x65,0x6e])](()=>{_0x5c1e11||_0x152142(_0x545daa([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x1fda49(){return _0x11414b[_0x545daa([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x545daa([0x76,0x69,0x65,0x77])][_0x545daa([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x545daa([0x61,0x75,0x74,0x6f]);}function _0x56b7a7(){_0x11414b[_0x545daa([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x545daa([0x76,0x69,0x65,0x77])][_0x545daa([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x545daa([0x61,0x75,0x74,0x6f]);}}function _0x33d9ea(_0x50248b){const _0xde0af1=[new window[(_0x545daa([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x10c991=>setTimeout(_0x10c991,0x5356b2f6^_0x4ca00f)),_0x5a5601[_0x545daa([0x74,0x68,0x65,0x6e])](()=>new window[(_0x545daa([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5eca0f=>{let _0x3974c5=0x0;_0x11414b[_0x545daa([0x6d,0x6f,0x64,0x65,0x6c])][_0x545daa([0x6f,0x6e])](_0x545daa([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x2d6558,_0x55965e)=>{_0x55965e[0x0][_0x545daa([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x3974c5++,_0x3974c5==(0x535f8dc2^_0x4ca00f)&&(_0x5eca0f(),_0x2d6558[_0x545daa([0x6f,0x66,0x66])]());});}))];return window[_0x545daa([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x545daa([0x72,0x61,0x63,0x65])](_0xde0af1)[_0x545daa([0x74,0x68,0x65,0x6e])](()=>_0x50248b);}async function _0x25c764(){await _0x5a5601,_0x11414b[_0x545daa([0x6d,0x6f,0x64,0x65,0x6c])][_0x545daa([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x2e58af,_0x11414b[_0x545daa([0x6d,0x6f,0x64,0x65,0x6c])][_0x545daa([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x2e58af,_0x11414b[_0x545daa([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x545daa([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x27b72b(_0x4ae74a){const _0x3573c5=_0x3c6211();_0x11414b[_0x3573c5]=_0x545daa([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x4ae74a,_0x4ae74a!=_0x545daa([0x56,0x61,0x6c,0x69,0x64])&&_0x25c764();}function _0x3c6211(){const _0x2f6e71=window[_0x545daa([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x545daa([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x545daa([0x6e,0x6f,0x77])]())[_0x545daa([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x545daa([0x2e]),'');let _0x17ee33=_0x545daa([0x68]);for(let _0x3fc31c=0x0;_0x3fc31c<_0x2f6e71[_0x545daa([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3fc31c+=0x2){let _0x397dd6=window[_0x545daa([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2f6e71[_0x545daa([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3fc31c,_0x3fc31c+0x2));_0x397dd6>=_0x19d234[_0x545daa([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x397dd6-=_0x19d234[_0x545daa([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x17ee33+=_0x19d234[_0x397dd6];}return _0x17ee33;}function _0x391644(){const _0x263ff3=_0x1b526c[_0x545daa([0x73,0x70,0x6c,0x69,0x74])](_0x545daa([0x2e]));if(0x3!=_0x263ff3[_0x545daa([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x19673c(_0x263ff3[0x1]);function _0x19673c(_0x170f7c){const _0xc5a37f=_0x5e157c(_0x170f7c);return _0xc5a37f&&_0x1c2754()?_0xc5a37f:null;function _0x1c2754(){const _0x758f80=_0xc5a37f[_0x545daa([0x6a,0x74,0x69])],_0x315836=window[_0x545daa([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x758f80[_0x545daa([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x758f80[_0x545daa([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x43ab3f={..._0xc5a37f,[_0x545daa([0x6a,0x74,0x69])]:_0x758f80[_0x545daa([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x758f80[_0x545daa([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x43ab3f[_0x545daa([0x76,0x63])],_0x5e7990(_0x43ab3f)==_0x315836;}}}async function _0x214af1(){let _0x563211=!0x0;try{const _0x29f15e=_0x1b526c[_0x545daa([0x73,0x70,0x6c,0x69,0x74])](_0x545daa([0x2e])),[_0x186e91,_0xaf5d87,_0x39618e]=_0x29f15e;return _0x55cf9b(_0x186e91),await _0x2591f0(_0x186e91,_0xaf5d87,_0x39618e),_0x563211;}catch{return!0x1;}function _0x55cf9b(_0x46efcb){const _0x120924=_0x5e157c(_0x46efcb);_0x120924&&_0x120924[_0x545daa([0x61,0x6c,0x67])]==_0x545daa([0x45,0x53,0x32,0x35,0x36])||(_0x563211=!0x1);}async function _0x2591f0(_0x4e2ab9,_0x452726,_0x53db79){const _0x155922=window[_0x545daa([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x545daa([0x66,0x72,0x6f,0x6d])](_0x44fda6(_0x53db79),_0x4fa28a=>_0x4fa28a[_0x545daa([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x5ea134=new window[(_0x545daa([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x545daa([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x4e2ab9+_0x545daa([0x2e])+_0x452726),_0x513cfe=window[_0x545daa([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x545daa([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x513cfe)return;const _0x51967d=await _0x513cfe[_0x545daa([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x545daa([0x6a,0x77,0x6b]),_0x25d052,{[_0x545daa([0x6e,0x61,0x6d,0x65])]:_0x545daa([0x45,0x43,0x44,0x53,0x41]),[_0x545daa([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x545daa([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x545daa([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x513cfe[_0x545daa([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x545daa([0x6e,0x61,0x6d,0x65])]:_0x545daa([0x45,0x43,0x44,0x53,0x41]),[_0x545daa([0x68,0x61,0x73,0x68])]:{[_0x545daa([0x6e,0x61,0x6d,0x65])]:_0x545daa([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x51967d,_0x155922,_0x5ea134)||(_0x563211=!0x1);}}function _0x5e157c(_0x48d8d3){return _0x48d8d3[_0x545daa([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x545daa([0x65,0x79]))?JSON[_0x545daa([0x70,0x61,0x72,0x73,0x65])](_0x44fda6(_0x48d8d3)):null;}function _0x44fda6(_0x489431){return window[_0x545daa([0x61,0x74,0x6f,0x62])](_0x489431[_0x545daa([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x545daa([0x2b]))[_0x545daa([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x545daa([0x2f])));}function _0x5e7990(_0x1ab60c){let _0x1867b3=0x1505;function _0x269be7(_0x25fa02){for(let _0x2eb8c4=0x0;_0x2eb8c4<_0x25fa02[_0x545daa([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2eb8c4++){const _0x285a67=_0x25fa02[_0x545daa([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x2eb8c4);_0x1867b3=(_0x1867b3<<0x5)+_0x1867b3+_0x285a67,_0x1867b3&=_0x1867b3;}}function _0x2b978c(_0x5aee18){Array[_0x545daa([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x5aee18)?_0x5aee18[_0x545daa([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x2b978c):_0x5aee18&&typeof _0x5aee18==_0x545daa([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x545daa([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x5aee18)[_0x545daa([0x73,0x6f,0x72,0x74])]()[_0x545daa([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x4ed6bb,_0x1b7bf4])=>{_0x269be7(_0x4ed6bb),_0x2b978c(_0x1b7bf4);}):_0x269be7(window[_0x545daa([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x5aee18));}return _0x2b978c(_0x1ab60c),_0x1867b3>>>0x0;}function _0x221336(_0x52c5fd){return _0x52c5fd[_0x545daa([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x545daa([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x545daa([0x30]));}function _0x3e8594(_0x32ce55){return _0x32ce55[_0x545daa([0x73,0x70,0x6c,0x69,0x74])]('')[_0x545daa([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x545daa([0x6a,0x6f,0x69,0x6e])]('');}function _0x2e58af(){}function _0x545daa(_0xfab262){const _0x593b20=_0x5987;return _0xfab262[_0x593b20(0x118)](_0x243c25=>String[_0x593b20(0xf7)](_0x243c25))[_0x593b20(0xcb)]('');}_0x27b72b(await _0x39c691());}(this);}[_0x3c6bfb(0xfa)](){const _0x416fb3=_0x3c6bfb,_0x5f5b71=this[_0x416fb3(0x10b)][_0x416fb3(0xe3)][_0x416fb3(0xcf)];_0x5f5b71[_0x416fb3(0xe7)](_0x416fb3(0xfb))&&_0x5f5b71[_0x416fb3(0xc4)](_0x416fb3(0xfb),{'allowAttributes':[_0x416fb3(0xdb)]}),_0x5f5b71[_0x416fb3(0xe7)](_0x416fb3(0xe1))&&_0x5f5b71[_0x416fb3(0xc4)](_0x416fb3(0xe1),{'allowAttributes':[_0x416fb3(0xdb)]});}[_0x3c6bfb(0x113)](){const _0x4ece04=_0x3c6bfb,_0x17bbb8=this[_0x4ece04(0x10b)];_0x17bbb8[_0x4ece04(0xd1)][_0x4ece04(0xe2)](_0x4ece04(0x103))[_0x4ece04(0x112)]({'model':_0x4ece04(0xdb),'view':_0x4ece04(0xdf)}),_0x17bbb8[_0x4ece04(0xd1)][_0x4ece04(0xe2)](_0x4ece04(0xe5))[_0x4ece04(0x101)]({'model':{'key':_0x4ece04(0xdb),'value':_0x2ce181=>_0x2ce181[_0x4ece04(0xf8)](_0x4ece04(0xdf))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x1dfb28=_0x17bbb8[_0x4ece04(0xcc)][_0x4ece04(0x105)](_0x4ece04(0xe4));_0x1dfb28&&this[_0x4ece04(0xf4)](_0x1dfb28,_0x4ece04(0xeb),(_0x5c8bec,[_0x249a62,_0x4609fe])=>{const _0x38be28=_0x4ece04;_0x249a62[_0x38be28(0xda)](_0x38be28(0xdb),_0x4609fe);});}[_0x3c6bfb(0xd6)](){const _0x3d6e86=_0x3c6bfb,_0xaf1c56=this[_0x3d6e86(0x10b)][_0x3d6e86(0xd7)][_0x3d6e86(0x105)](_0x3d6e86(0xea))||{},_0x287cc5=this[_0x3d6e86(0x10b)][_0x3d6e86(0xd7)][_0x3d6e86(0x105)](_0x3d6e86(0x10d))||'';this[_0x3d6e86(0xfc)]=_0x51c9c8(_0xbf63ae[_0x3d6e86(0xc5)],_0x3d6e86(0x107),{..._0xaf1c56,'pubkey':_0x287cc5,'ctx-name':_0x3d6e86(0xc8)+this[_0x3d6e86(0xf5)],'sourceList':'','imgOnly':_0x3d6e86(0xde),'removeCopyright':_0x3d6e86(0xde),'localeName':this[_0x3d6e86(0x10b)][_0x3d6e86(0xca)][_0x3d6e86(0x10a)],'externalSourcesEmbedCss':_0x3d6e86(0xc7)}),this[_0x3d6e86(0xfc)][_0x3d6e86(0xff)]=_0x4409a4=>{const _0x4661a4=_0x3d6e86;if(_0x4661a4(0x116)==_0x4409a4)return _0x4661a4(0xf3);},_0xbf63ae[_0x3d6e86(0xc5)][_0x3d6e86(0xd9)][_0x3d6e86(0x10f)](this[_0x3d6e86(0xfc)]);}[_0x3c6bfb(0xc3)](){const _0x3ad88b=_0x3c6bfb;this[_0x3ad88b(0x117)]=_0x51c9c8(_0xbf63ae[_0x3ad88b(0xc5)],_0x3ad88b(0x100),{'ctx-name':_0x3ad88b(0xc8)+this[_0x3ad88b(0xf5)]}),_0xbf63ae[_0x3ad88b(0xc5)][_0x3ad88b(0xd9)][_0x3ad88b(0x10f)](this[_0x3ad88b(0x117)]);}[_0x3c6bfb(0xee)](){const _0x6f9279=_0x3c6bfb,_0x25d96a=this[_0x6f9279(0x10b)][_0x6f9279(0xcc)][_0x6f9279(0x105)](_0x6f9279(0xec));_0x25d96a&&this[_0x6f9279(0xf4)](_0x25d96a,_0x6f9279(0x106),()=>{const _0x2d0ff3=_0x6f9279,_0x3a9e51=this[_0x2d0ff3(0x10b)][_0x2d0ff3(0xe3)][_0x2d0ff3(0xc5)][_0x2d0ff3(0x10c)][_0x2d0ff3(0xd8)]();_0x3a9e51&&_0x3a9e51[_0x2d0ff3(0xf8)](_0x2d0ff3(0xdb))&&this[_0x2d0ff3(0x10b)][_0x2d0ff3(0x119)][_0x2d0ff3(0xf6)][_0x2d0ff3(0xf1)](_0x2d0ff3(0xf9),()=>{const _0x57aaf0=_0x2d0ff3;_0x4d822a(this[_0x57aaf0(0x10b)],_0x3a9e51);});});const _0x2be529=this[_0x6f9279(0x10b)][_0x6f9279(0xcc)][_0x6f9279(0x105)](_0x6f9279(0xd2));_0x2be529&&this[_0x6f9279(0xf4)](_0x2be529,_0x6f9279(0x106),()=>{const _0x284501=_0x6f9279,_0x1e3820=this[_0x284501(0x10b)][_0x284501(0xe3)][_0x284501(0xc5)][_0x284501(0x10c)][_0x284501(0xd8)]();_0x1e3820&&_0x1e3820[_0x284501(0xf8)](_0x284501(0xdb))&&this[_0x284501(0x10b)][_0x284501(0x119)][_0x284501(0xf6)][_0x284501(0xf1)](_0x284501(0xf9),()=>{const _0x514817=_0x284501;_0x4d822a(this[_0x514817(0x10b)],_0x1e3820);});});}}
|