@ckeditor/ckeditor5-uploadcare 46.0.0-alpha.4 → 46.0.0-alpha.6
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/dist/index.js
CHANGED
|
@@ -20,6 +20,6 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as _0x29c9bc,Command as _0x58d9ad}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x4d3297,IconGooglePhotos as _0xfcdce,IconGoogleDrive as _0xd9c9c5,IconFacebook as _0x1f922d,IconDropbox as _0x20f2b1,IconUploadcareLink as _0x291f38,IconUploadcareImageUpload as _0x2828c4,IconError as _0x2b194e,IconUploadcareImageEdit as _0x38e2e4}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x21bd89,MenuBarMenuListItemButtonView as _0x430130,View as _0x5ca833,FocusCycler as _0x39a4a9,Dialog as _0x3d6fc6,DialogViewPosition as _0x77b8fe,SpinnerView as _0x98b930,IconView as _0xb34602,Notification as _0x3487ed}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x22276f,DomEmitterMixin as _0x1ecac1,global as _0x22bc19,getAncestors as _0x1fa2ca,ObservableMixin as _0x29a49c,uid as _0x3786e0,createElement as _0x57ef81}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x4cb17a}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x151fc1,info as _0x311b87}from'@uploadcare/upload-client';import*as _0x3b9158 from'@uploadcare/file-uploader';var i=function(_0x282586){return _0x282586['Local']='local',_0x282586['URL']='url',_0x282586['Dropbox']='dropbox',_0x282586['GDrive']='gdrive',_0x282586['Facebook']='facebook',_0x282586['GPhotos']='gphotos',_0x282586['OneDrive']='onedrive',_0x282586;}({});function _(_0xd3f93d,_0x1c4c82,_0xd45fb5){const t=_0xd3f93d['t'],_0x2d38ca=_0xd3f93d['t'];switch(_0x1c4c82){case i['Local']:return{'text':_0x2d38ca('Insert'===_0xd45fb5?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x2d38ca('From\x20computer')};case i['URL']:return{'text':'Insert'===_0xd45fb5?_0x2d38ca('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x2d38ca('Via\x20URL')};case i['Dropbox']:return{'text':t('Insert'===_0xd45fb5?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case i['Facebook']:return{'text':t('Insert'===_0xd45fb5?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case i['GDrive']:return{'text':t('Insert'===_0xd45fb5?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case i['GPhotos']:return{'text':t('Insert'===_0xd45fb5?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case i['OneDrive']:return{'text':t('Insert'===_0xd45fb5?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x1c4c82;}}class e extends _0x29c9bc{['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 _0x1bfb0a=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x5be0a3;for(const _0x1e448d in _0x1bfb0a){const _0x5fbfd2=_0x1e448d,_0x51b313=_0x1bfb0a[_0x5fbfd2];if('uploadcareLicenseKeyValid'==_0x51b313||'uploadcareLicenseKeyInvalid'==_0x51b313||'uploadcareLicenseKeyExpired'==_0x51b313||'uploadcareLicenseKeyDomainLimit'==_0x51b313||'uploadcareLicenseKeyNotAllowed'==_0x51b313||'uploadcareLicenseKeyEvaluationLimit'==_0x51b313||'uploadcareLicenseKeyTrialLimit'==_0x51b313||'uploadcareLicenseKeyUsageLimit'==_0x51b313){delete _0x1bfb0a[_0x5fbfd2],_0x5be0a3=_0x51b313,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x5be0a3&&_0x1bfb0a['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x5be0a3&&_0x1bfb0a['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x5be0a3&&_0x1bfb0a['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x5be0a3&&_0x1bfb0a['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x5be0a3&&_0x1bfb0a['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyTrialLimit'==_0x5be0a3&&_0x1bfb0a['_showLicenseError']('trialLimit'),'uploadcareLicenseKeyUsageLimit'==_0x5be0a3&&_0x1bfb0a['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x586108}=this,_0x3df45a=_0x586108['commands']['get']('uploadcare');if(!_0x3df45a)return;const _0x59299f=this['_normalizeConfigSourceList'](_0x586108['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x1ed407,_0x4f3ba2)=>{const _0x60b89c=this['_getIntegrationKey'](_0x4f3ba2['type']);return _0x1ed407[_0x60b89c]||(_0x1ed407[_0x60b89c]=[]),_0x1ed407[_0x60b89c]['push'](_0x4f3ba2),_0x1ed407;},{});_0x586108['plugins']['has']('ImageInsertUI')&&_0x586108['commands']['get']('uploadcare')&&Object['entries'](_0x59299f)['forEach'](([_0x486832,_0x1b3cb5])=>{_0x586108['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x486832,'observable':()=>_0x3df45a,'buttonViewCreator':()=>this['_createToolbarButton'](_0x1b3cb5),'formViewCreator':()=>this['_createDropdownButtons'](_0x1b3cb5),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x1b3cb5),'override':'assetManager'!==_0x486832});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x42c64c){const {locale:_0x2de692}=this['editor'];return _0x42c64c['map'](_0x3fe013=>{const _0x3fb711=_(_0x2de692,_0x3fe013,'Insert');switch(_0x3fe013){case i['Local']:return{'icon':_0x2828c4,'type':i['Local'],..._0x3fb711};case i['URL']:return{'icon':_0x291f38,'type':i['URL'],..._0x3fb711};case i['Dropbox']:return{'icon':_0x20f2b1,'type':i['Dropbox'],..._0x3fb711};case i['Facebook']:return{'icon':_0x1f922d,'type':i['Facebook'],..._0x3fb711};case i['GDrive']:return{'icon':_0xd9c9c5,'type':i['GDrive'],..._0x3fb711};case i['GPhotos']:return{'icon':_0xfcdce,'type':i['GPhotos'],..._0x3fb711};case i['OneDrive']:return{'icon':_0x4d3297,'type':i['OneDrive'],..._0x3fb711};}});}['_getIntegrationKey'](_0x2a87aa){switch(_0x2a87aa){case i['Local']:return'upload';case i['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x335fb3,_0x106646){const _0x1513ab=this['editor'],_0x52276d=new _0x335fb3(_0x1513ab['locale']),_0x2579b1=_0x1513ab['commands']['get']('uploadcare');return _0x52276d['bind']('isEnabled')['to'](_0x2579b1),_0x52276d['on']('execute',()=>{_0x2579b1['execute'](_0x106646);}),_0x52276d;}['_createToolbarButton'](_0x29ddcf){const {locale:_0x591e55}=this['editor'],_0x543aa6=this['editor']['plugins']['get']('ImageInsertUI'),_0x58bd34=_0x29ddcf[0x0],_0x28dce3=this['_createButton'](_0x21bd89,_0x58bd34['type']);return _0x28dce3['icon']=_0x58bd34['icon'],_0x28dce3['bind']('label')['to'](_0x543aa6,'isImageSelected',_0x549c1e=>_(_0x591e55,_0x58bd34['type'],_0x549c1e?'Replace':'Insert')['text']),_0x28dce3['tooltip']=!0x0,_0x28dce3;}['_createDropdownButtons'](_0x5ddbcc){const {locale:_0x571fad}=this['editor'],_0x180918=this['editor']['plugins']['get']('ImageInsertUI');return _0x5ddbcc['map'](_0x574f1a=>{const _0xa2a48d=this['_createButton'](_0x21bd89,_0x574f1a['type']);return _0xa2a48d['withText']=!0x0,_0xa2a48d['icon']=_0x574f1a['icon'],_0xa2a48d['bind']('label')['to'](_0x180918,'isImageSelected',_0x220dc7=>_(_0x571fad,_0x574f1a['type'],_0x220dc7?'Replace':'Insert')['text']),_0xa2a48d;});}['_createMenuBarButtons'](_0x44685b){return _0x44685b['map'](_0x5e39dd=>{const _0x4229e9=this['_createButton'](_0x430130,_0x5e39dd['type']);return _0x4229e9['icon']=_0x5e39dd['icon'],_0x4229e9['label']=_0x5e39dd['shortText'],_0x4229e9;});}}class V extends _0x5ca833{['focusTracker'];['focusCycler'];constructor(_0x2f4cf6){super(_0x2f4cf6),this['focusTracker']=new _0x22276f(),this['focusCycler']=new _0x39a4a9({'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(_0x2dc5bd,_0xa47baf){super(_0x2dc5bd),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-'+_0xa47baf}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}}function k(_0x174926,_0xea78a6){const _0x5038f2=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x918532=>_0x918532<=_0xea78a6)['map'](_0x394e93=>_0x174926['replace'](/\/$/,'')+'/-/resize/'+_0x394e93+'x/\x20'+_0x394e93+'w');return{'imageFallbackUrl':_0x174926,'imageSources':[{'srcset':_0x5038f2['join'](',\x20'),'sizes':'(max-width:\x20'+_0xea78a6+'px)\x20100vw,\x20'+_0xea78a6+'px','type':'image/webp'}]};}function F(_0x2b57b9,_0x27a1cc,_0x1cc084){const _0x357585=_0x2b57b9['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x357585?parseInt(_0x357585[0x1],0xa):_0x27a1cc,'height':_0x357585?parseInt(_0x357585[0x2],0xa):_0x1cc084};}function p(_0x3367aa,_0x1c772f){const _0x39dab8=new(_0x1ecac1())(),_0x2d6ff7=_0x3367aa['plugins']['get']('ImageUtils'),_0x1a120e=_0x3367aa['editing']['mapper']['toViewElement'](_0x1c772f),_0x546b09=_0x2d6ff7['findViewImgElement'](_0x1a120e),_0xb70b33=_0x3367aa['editing']['view']['domConverter']['viewToDom'](_0x546b09),_0x57136a=_0x1c772f['getAttribute']('width'),_0x1435bf=_0x1c772f['getAttribute']('height'),_0x5a4740='image-processing';_0x3367aa['editing']['view']['change'](_0x17e445=>{_0x17e445['addClass'](_0x5a4740,_0x1a120e),_0x17e445['setStyle']('aspect-ratio',_0x57136a+'/'+_0x1435bf,_0x546b09);}),_0x39dab8['listenTo'](_0xb70b33,'load',()=>{_0x39dab8['stopListening'](_0xb70b33,'load'),_0x3367aa['editing']['view']['change'](_0x1b96b9=>{_0x1b96b9['removeClass'](_0x5a4740,_0x1a120e),_0x1b96b9['removeStyle']('aspect-ratio',_0x546b09);});});}function R(_0x1f1ffe){if(Array['isArray'](_0x1f1ffe)){const _0x1cf6b9=_0x1f1ffe['map'](R);return _0x3bca7f=>_0x1cf6b9['some'](_0x5682a9=>_0x5682a9(_0x3bca7f));}if('origin'==_0x1f1ffe){const _0x259e23=_0x22bc19['window']['location']['origin'];return _0x1bcc6e=>new URL(_0x1bcc6e,_0x22bc19['document']['baseURI'])['origin']==_0x259e23;}return'function'==typeof _0x1f1ffe?_0x1f1ffe:_0x1f1ffe instanceof RegExp?_0x527e40=>!(!_0x527e40['match'](_0x1f1ffe)&&!_0x527e40['replace'](/^https?:\/\//,'')['match'](_0x1f1ffe)):()=>!0x1;}function M(_0x499254,_0x47d5d9){return _0x1fa2ca(_0x499254['target'])['includes'](_0x47d5d9);}class n extends/* #__PURE__ -- @preserve */
|
|
24
|
-
_0x29a49c(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x4c5334,_0x17f17e,_0x43be0f){super(),this['_editor']=_0x4c5334,this['_editing']=_0x17f17e,this['_dialog']=_0x4c5334['plugins']['get'](_0x3d6fc6),this['_api']=_0x17f17e['ctxElement']['getAPI'](),this['_type']=_0x43be0f,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:_0x1e7d21,model:_0x9b8d7}=this['_editor'],_0xdce57d=_0x9b8d7['document']['selection']['getSelectedElement'](),_0x52e82a=_0xdce57d&&(_0xdce57d['is']('element','imageBlock')||_0xdce57d['is']('element','imageInline'));this['_formView']=new S(_0x1e7d21,this['_editing']['ucContextId']),this['_dialog']['show']({'id':'uploadCare','icon':_0x2828c4,'title':_(_0x1e7d21,this['_type'],_0x52e82a?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x77b8fe['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x5d8f33=>!M(_0x5d8f33,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x4516d5}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x4931a7=>{const _0x2b3c25=_0x4516d5['length'];for(const _0xf3113e of _0x4516d5){const _0x150a10=_0xf3113e===_0x4516d5[_0x2b3c25-0x1],{cdnUrl:_0x186e6a,fileInfo:_0x2df813}=_0xf3113e;if(!_0x186e6a||!_0x2df813)continue;const {width:_0x2e9bf0,height:_0x52d1e0}=_0x2df813['imageInfo'],_0x3b7b67=F(_0x186e6a,_0x2e9bf0,_0x52d1e0),_0x347844=k(_0x186e6a,_0x3b7b67['width']),_0x95fe0c={'id':_0x2df813['uuid'],'type':'image','attributes':{'imageDimension':_0x3b7b67,..._0x347844}};this['_insertAsset'](_0x95fe0c,_0x150a10,_0x4931a7);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x1c87bb=>{'idle'===_0x1c87bb['detail']['status']&&!_0x1c87bb['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===i['Local']?this['_api']['setCurrentActivity'](i['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x49b68c,_0x4c79ed,_0x3ba0c2){const _0x35f3f4=this['_editor']['model']['document']['selection'],_0x5263dc=_0x35f3f4['getSelectedElement'](),_0x3e33d6=!(!_0x5263dc||!_0x5263dc['is']('element','imageInline'));_0x3ba0c2['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x49b68c,_0x3e33d6),_0x4c79ed||_0x3ba0c2['setSelection'](_0x35f3f4['getLastPosition']());}['_insertImage'](_0x5ad3f3,_0x170212){const _0x35a6f0=this['_editor'],{imageDimension:_0x44b320,imageFallbackUrl:_0xa2f3b5,imageSources:_0x1a4f24}=_0x5ad3f3['attributes'];_0x35a6f0['execute']('insertImage',{'imageType':_0x170212?'imageInline':null,'source':{'uploadcareImageId':_0x5ad3f3['id'],'src':_0xa2f3b5,'sources':_0x1a4f24,..._0x44b320}});}}class w extends _0x58d9ad{['_editing'];['_controller']=null;static get['requires'](){return[_0x3d6fc6,o];}constructor(_0x209909){super(_0x209909),this['_editing']=_0x209909['plugins']['get'](o);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x1ad029){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new n(this['editor'],this['_editing'],_0x1ad029);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class j{static['upload']({file:_0x18296c,publicKey:_0x4ada1b,signal:_0x26135f,onProgress:_0x33fc2d}){return _0x151fc1(_0x18296c,{'publicKey':_0x4ada1b,'store':'auto','signal':_0x26135f,'onProgress':_0x33fc2d});}static['getInfo'](_0x30941f,_0x47e6f6){return _0x311b87(_0x30941f,_0x47e6f6);}}class f extends _0x29c9bc{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x4cb17a,o];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x2470f0=this['editor'];if(!!!_0x2470f0['config']['get']('uploadcare'))return;_0x2470f0['plugins']['get'](_0x4cb17a)['createUploadAdapter']=_0x532959=>new A(_0x532959,_0x2470f0),_0x2470f0['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x5ef5ff,{imageElement:_0x51d92e,data:_0x58e309})=>{_0x2470f0['model']['change'](_0x27d7fa=>{_0x27d7fa['setAttribute']('uploadcareImageId',_0x58e309['uploadcareImageId'],_0x51d92e);});});}}class A{['loader'];['editor'];['controller'];constructor(_0x5b0574,_0x277a7c){this['loader']=_0x5b0574,this['editor']=_0x277a7c,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x5d4a3c=this['editor']['config']['get']('uploadcare.pubkey'),_0xd0e849=await this['loader']['file'];return j['upload']({'file':_0xd0e849,'publicKey':_0x5d4a3c,'signal':this['controller']['signal'],'onProgress':_0x5eb686=>{_0x5eb686&&_0x5eb686['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x5eb686['value']);}})['then'](async _0x46950a=>{const {imageFallbackUrl:_0x52ba95,imageSources:_0x35987e}=k(_0x46950a['cdnUrl'],_0x46950a['imageInfo']['width']);return{'uploadcareImageId':_0x46950a['uuid'],'default':_0x52ba95,'sources':_0x35987e};})['catch'](()=>{const _0x296429=t('Cannot\x20upload\x20file:')+('\x20'+_0xd0e849['name']+'.');return Promise['reject'](_0x296429);});}['abort'](){this['controller']['abort']();}}class o extends _0x29c9bc{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',f,_0x3d6fc6];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['ucContextId'];get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}constructor(_0x1417bb){super(_0x1417bb),this['ucContextId']=_0x3786e0();}['init'](){const _0x2ba16a=this['editor'];_0x2ba16a['commands']['add']('uploadcare',new w(_0x2ba16a));}['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 _0x37be0f=_0x22bc19['document']['querySelector']('input[uploadcare-file-input]');_0x37be0f&&_0x37be0f['remove']();}),async function(_0x74cf43){const _0x2f0585=_0x3de925([0x56,0x4d,0x63,0x77,0x7a,0x42,0x79,0x6b,0x68,0x39,0x38,0x48,0x50,0x69,0x70,0x49,0x4a,0x36,0x72,0x71,0x31,0x57,0x67,0x33,0x65,0x76,0x78,0x41,0x37,0x59,0x6f,0x4c,0x74,0x75,0x58,0x34,0x4f,0x45,0x6d,0x4b,0x4e,0x47,0x30,0x64,0x53,0x54,0x6e,0x43,0x5a,0x66,0x73,0x35,0x52,0x6c,0x32,0x51,0x44,0x46,0x6a,0x55,0x61,0x62]),_0x40b297=0xc92130f,_0x24bcad=0xc957fbf^_0x40b297,_0x3c2224=window[_0x3de925([0x44,0x61,0x74,0x65])][_0x3de925([0x6e,0x6f,0x77])](),_0x23523a=_0x74cf43[_0x3de925([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x3a3b6d=new window[(_0x3de925([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x7f32fa=>{_0x23523a[_0x3de925([0x6f,0x6e,0x63,0x65])](_0x3de925([0x72,0x65,0x61,0x64,0x79]),_0x7f32fa);}),_0x17cb38={[_0x3de925([0x6b,0x74,0x79])]:_0x3de925([0x45,0x43]),[_0x3de925([0x75,0x73,0x65])]:_0x3de925([0x73,0x69,0x67]),[_0x3de925([0x63,0x72,0x76])]:_0x3de925([0x50,0x2d,0x32,0x35,0x36]),[_0x3de925([0x78])]:_0x3de925([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]),[_0x3de925([0x79])]:_0x3de925([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]),[_0x3de925([0x61,0x6c,0x67])]:_0x3de925([0x45,0x53,0x32,0x35,0x36])},_0x357a13=_0x23523a[_0x3de925([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x3de925([0x67,0x65,0x74])](_0x3de925([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x50ee50(){let _0x20d7e5,_0xd07dd9=null,_0x4ac0ca=null;try{if(_0x357a13==_0x3de925([0x47,0x50,0x4c]))return _0x3de925([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x20d7e5=_0x555fd6(),!_0x20d7e5)return _0x3de925([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x20d7e5[_0x3de925([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x4ac0ca=_0x1ef8b8(_0x20d7e5[_0x3de925([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x20d7e5[_0x3de925([0x6a,0x74,0x69])])),await _0x5bd6c2()?_0x30770c()?_0x127ebd()?_0x3de925([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x442b15()?(_0x20d7e5[_0x3de925([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3de925([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0xd07dd9=_0x2f0988(_0x3de925([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x20d7e5[_0x3de925([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3de925([0x74,0x72,0x69,0x61,0x6c])&&(_0xd07dd9=_0x2f0988(_0x3de925([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x48a841()):_0x3de925([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x3de925([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x3de925([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x3de925([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x127ebd(){const _0x1eb151=[_0x3de925([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x3de925([0x74,0x72,0x69,0x61,0x6c])][_0x3de925([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x20d7e5[_0x3de925([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x3c2224/0x3e8:0xe10*_0x24bcad;return _0x20d7e5[_0x3de925([0x65,0x78,0x70])]<_0x1eb151;}function _0x30770c(){const _0x3ca70=_0x20d7e5[_0x3de925([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x3ca70&&(!!_0x3ca70[_0x3de925([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3de925([0x2a]))||!!_0x3ca70[_0x3de925([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3de925([0x55,0x50,0x4c,0x43])));}function _0x442b15(){const _0x774652=_0x20d7e5[_0x3de925([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x774652||0x0==_0x774652[_0x3de925([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x5dc3d8}=new URL(window[_0x3de925([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x774652[_0x3de925([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5dc3d8))return!0x0;const _0x437495=_0x5dc3d8[_0x3de925([0x73,0x70,0x6c,0x69,0x74])](_0x3de925([0x2e]));return _0x774652[_0x3de925([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x513785=>_0x513785[_0x3de925([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3de925([0x2a])))[_0x3de925([0x6d,0x61,0x70])](_0x429f17=>_0x429f17[_0x3de925([0x73,0x70,0x6c,0x69,0x74])](_0x3de925([0x2e])))[_0x3de925([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x154899=>_0x154899[_0x3de925([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x437495[_0x3de925([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x3de925([0x6d,0x61,0x70])](_0x5ffec0=>Array(_0x437495[_0x3de925([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x5ffec0[_0x3de925([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x3de925([0x66,0x69,0x6c,0x6c])](_0x5ffec0[0x0]===_0x3de925([0x2a])?_0x3de925([0x2a]):'')[_0x3de925([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x5ffec0))[_0x3de925([0x73,0x6f,0x6d,0x65])](_0xf01947=>_0x437495[_0x3de925([0x65,0x76,0x65,0x72,0x79])]((_0x469467,_0x5ec892)=>_0xf01947[_0x5ec892]===_0x469467||_0xf01947[_0x5ec892]===_0x3de925([0x2a])));}function _0x48a841(){return _0xd07dd9&&_0x4ac0ca?new window[(_0x3de925([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x16051e,_0x344c16)=>{_0xd07dd9[_0x3de925([0x74,0x68,0x65,0x6e])](_0x16051e,_0x344c16),_0x4ac0ca[_0x3de925([0x74,0x68,0x65,0x6e])](_0x294c6c=>{_0x294c6c!=_0x3de925([0x56,0x61,0x6c,0x69,0x64])&&_0x16051e(_0x294c6c);},_0x344c16);}):_0xd07dd9||_0x4ac0ca||_0x3de925([0x56,0x61,0x6c,0x69,0x64]);}}function _0x1ef8b8(_0x19455d,_0x3f20bb){return new window[(_0x3de925([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4877a0=>{if(_0x3abe2b())return _0x4877a0(_0x3de925([0x56,0x61,0x6c,0x69,0x64]));_0x13c4d3(),_0x23523a[_0x3de925([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x3de925([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x5f354a=!0x1;const _0x3dc418=_0x3786e0();function _0x77ca36(_0x20fbd6){return!!_0x20fbd6&&(typeof _0x20fbd6===_0x3de925([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x20fbd6===_0x3de925([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x20fbd6[_0x3de925([0x74,0x68,0x65,0x6e])]===_0x3de925([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x20fbd6[_0x3de925([0x63,0x61,0x74,0x63,0x68])]===_0x3de925([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x3bb29c(_0x14d3d4){_0x33d440(_0x14d3d4)[_0x3de925([0x74,0x68,0x65,0x6e])](_0x403867=>{if(!_0x403867||_0x403867[_0x3de925([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x3de925([0x6f,0x6b]))return _0x3de925([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x2ff7fa(_0x1a2c73(_0x3dc418+_0x3f20bb))!=_0x403867[_0x3de925([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x3de925([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x3de925([0x56,0x61,0x6c,0x69,0x64]);})[_0x3de925([0x74,0x68,0x65,0x6e])](_0x35d2b3=>(_0x45f6c2(),_0x35d2b3),()=>{const _0x4ba13c=_0x4c7339();return null==_0x4ba13c?(_0x45f6c2(),_0x3de925([0x56,0x61,0x6c,0x69,0x64])):_0x3de925(_0x3c2224-_0x4ba13c>(0x289e970f^_0x40b297)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x3de925([0x74,0x68,0x65,0x6e])](_0x4877a0)[_0x3de925([0x63,0x61,0x74,0x63,0x68])](()=>{_0x4877a0(_0x3de925([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x11d947=0xca4fd8f^_0x40b297;function _0x45f6c2(){const _0x2dfea5=_0x3de925([0x6c,0x6c,0x63,0x74,0x2d])+_0x2ff7fa(_0x1a2c73(_0x19455d)),_0x5eae30=_0x1b1e99(_0x2ff7fa(window[_0x3de925([0x4d,0x61,0x74,0x68])][_0x3de925([0x63,0x65,0x69,0x6c])](_0x3c2224/_0x11d947)));window[_0x3de925([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3de925([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2dfea5,_0x5eae30);}function _0x4c7339(){const _0x130cba=_0x3de925([0x6c,0x6c,0x63,0x74,0x2d])+_0x2ff7fa(_0x1a2c73(_0x19455d)),_0x37fa5d=window[_0x3de925([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3de925([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x130cba);return _0x37fa5d?window[_0x3de925([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1b1e99(_0x37fa5d),0x10)*_0x11d947:null;}function _0x33d440(_0x5aa521){return new window[(_0x3de925([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x37b001,_0xfa31b3)=>{_0x5aa521[_0x3de925([0x74,0x68,0x65,0x6e])](_0x37b001,_0xfa31b3),window[_0x3de925([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0xfa31b3,0xc93c7cf^_0x40b297);});}}_0x23523a[_0x3de925([0x6f,0x6e])](_0x3de925([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x500f79,_0xd4edf8)=>{if(_0xd4edf8[0x0]!=_0x19455d)return _0x4877a0(_0x3de925([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0xd4edf8[0x1]={..._0xd4edf8[0x1],[_0x3de925([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x3dc418};},{[_0x3de925([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3de925([0x68,0x69,0x67,0x68])}),_0x23523a[_0x3de925([0x6f,0x6e])](_0x3de925([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x5f2b27=>{_0x77ca36(_0x5f2b27[_0x3de925([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x5f354a=!0x0,_0x3bb29c(_0x5f2b27[_0x3de925([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x3de925([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3de925([0x6c,0x6f,0x77])}),_0x3a3b6d[_0x3de925([0x74,0x68,0x65,0x6e])](()=>{_0x5f354a||_0x4877a0(_0x3de925([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x3abe2b(){return _0x23523a[_0x3de925([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3de925([0x76,0x69,0x65,0x77])][_0x3de925([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x3de925([0x61,0x75,0x74,0x6f]);}function _0x13c4d3(){_0x23523a[_0x3de925([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3de925([0x76,0x69,0x65,0x77])][_0x3de925([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x3de925([0x61,0x75,0x74,0x6f]);}}function _0x2f0988(_0x343a27){const _0x240b86=[new window[(_0x3de925([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x55aa60=>setTimeout(_0x55aa60,0xc9b2dc3^_0x40b297)),_0x3a3b6d[_0x3de925([0x74,0x68,0x65,0x6e])](()=>new window[(_0x3de925([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4cdc59=>{let _0x4fb440=0x0;_0x23523a[_0x3de925([0x6d,0x6f,0x64,0x65,0x6c])][_0x3de925([0x6f,0x6e])](_0x3de925([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x3934dd,_0x364d19)=>{_0x364d19[0x0][_0x3de925([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x4fb440++,_0x4fb440==(0xc9212f7^_0x40b297)&&(_0x4cdc59(),_0x3934dd[_0x3de925([0x6f,0x66,0x66])]());});}))];return window[_0x3de925([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x3de925([0x72,0x61,0x63,0x65])](_0x240b86)[_0x3de925([0x74,0x68,0x65,0x6e])](()=>_0x343a27);}async function _0x1bc91c(){await _0x3a3b6d,_0x23523a[_0x3de925([0x6d,0x6f,0x64,0x65,0x6c])][_0x3de925([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x3f13f6,_0x23523a[_0x3de925([0x6d,0x6f,0x64,0x65,0x6c])][_0x3de925([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x3f13f6,_0x23523a[_0x3de925([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x3de925([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x1c3e50(_0x1215b9){const _0x39cdda=_0x2127df();_0x23523a[_0x39cdda]=_0x3de925([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x1215b9,_0x1215b9!=_0x3de925([0x56,0x61,0x6c,0x69,0x64])&&_0x1bc91c();}function _0x2127df(){const _0x3dc798=window[_0x3de925([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x3de925([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x3de925([0x6e,0x6f,0x77])]())[_0x3de925([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x3de925([0x2e]),'');let _0x2a6518=_0x3de925([0x56]);for(let _0x505fc4=0x0;_0x505fc4<_0x3dc798[_0x3de925([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x505fc4+=0x2){let _0x43ba51=window[_0x3de925([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3dc798[_0x3de925([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x505fc4,_0x505fc4+0x2));_0x43ba51>=_0x2f0585[_0x3de925([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x43ba51-=_0x2f0585[_0x3de925([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x2a6518+=_0x2f0585[_0x43ba51];}return _0x2a6518;}function _0x555fd6(){const _0x2d28a9=_0x357a13[_0x3de925([0x73,0x70,0x6c,0x69,0x74])](_0x3de925([0x2e]));if(0x3!=_0x2d28a9[_0x3de925([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x2f850e(_0x2d28a9[0x1]);function _0x2f850e(_0x5f200a){const _0x3b78f0=_0x3495f8(_0x5f200a);return _0x3b78f0&&_0x479659()?_0x3b78f0:null;function _0x479659(){const _0x4c610f=_0x3b78f0[_0x3de925([0x6a,0x74,0x69])],_0x243918=window[_0x3de925([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4c610f[_0x3de925([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4c610f[_0x3de925([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x241b32={..._0x3b78f0,[_0x3de925([0x6a,0x74,0x69])]:_0x4c610f[_0x3de925([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x4c610f[_0x3de925([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x241b32[_0x3de925([0x76,0x63])],_0x1a2c73(_0x241b32)==_0x243918;}}}async function _0x5bd6c2(){let _0x51cd4c=!0x0;try{const _0x5d7b2b=_0x357a13[_0x3de925([0x73,0x70,0x6c,0x69,0x74])](_0x3de925([0x2e])),[_0x5b3b31,_0x5bb8e1,_0x52982e]=_0x5d7b2b;return _0x43168b(_0x5b3b31),await _0x17c188(_0x5b3b31,_0x5bb8e1,_0x52982e),_0x51cd4c;}catch{return!0x1;}function _0x43168b(_0x4680f5){const _0x2a5b41=_0x3495f8(_0x4680f5);_0x2a5b41&&_0x2a5b41[_0x3de925([0x61,0x6c,0x67])]==_0x3de925([0x45,0x53,0x32,0x35,0x36])||(_0x51cd4c=!0x1);}async function _0x17c188(_0x204b3f,_0x211978,_0x18ec62){const _0x508252=window[_0x3de925([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x3de925([0x66,0x72,0x6f,0x6d])](_0x302b60(_0x18ec62),_0x3d5167=>_0x3d5167[_0x3de925([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x33c28f=new window[(_0x3de925([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x3de925([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x204b3f+_0x3de925([0x2e])+_0x211978),_0x245fe7=window[_0x3de925([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x3de925([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x245fe7)return;const _0x435a70=await _0x245fe7[_0x3de925([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x3de925([0x6a,0x77,0x6b]),_0x17cb38,{[_0x3de925([0x6e,0x61,0x6d,0x65])]:_0x3de925([0x45,0x43,0x44,0x53,0x41]),[_0x3de925([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x3de925([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x3de925([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x245fe7[_0x3de925([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x3de925([0x6e,0x61,0x6d,0x65])]:_0x3de925([0x45,0x43,0x44,0x53,0x41]),[_0x3de925([0x68,0x61,0x73,0x68])]:{[_0x3de925([0x6e,0x61,0x6d,0x65])]:_0x3de925([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x435a70,_0x508252,_0x33c28f)||(_0x51cd4c=!0x1);}}function _0x3495f8(_0x4a3589){return _0x4a3589[_0x3de925([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x3de925([0x65,0x79]))?JSON[_0x3de925([0x70,0x61,0x72,0x73,0x65])](_0x302b60(_0x4a3589)):null;}function _0x302b60(_0x5436e8){return window[_0x3de925([0x61,0x74,0x6f,0x62])](_0x5436e8[_0x3de925([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x3de925([0x2b]))[_0x3de925([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x3de925([0x2f])));}function _0x1a2c73(_0x54a308){let _0x945f81=0x1505;function _0x5dadbd(_0x11e5f2){for(let _0x1da419=0x0;_0x1da419<_0x11e5f2[_0x3de925([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1da419++){const _0x342b90=_0x11e5f2[_0x3de925([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x1da419);_0x945f81=(_0x945f81<<0x5)+_0x945f81+_0x342b90,_0x945f81&=_0x945f81;}}function _0x5c20f9(_0x33db93){Array[_0x3de925([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x33db93)?_0x33db93[_0x3de925([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x5c20f9):_0x33db93&&typeof _0x33db93==_0x3de925([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x3de925([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x33db93)[_0x3de925([0x73,0x6f,0x72,0x74])]()[_0x3de925([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x43c4c4,_0x1b82c8])=>{_0x5dadbd(_0x43c4c4),_0x5c20f9(_0x1b82c8);}):_0x5dadbd(window[_0x3de925([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x33db93));}return _0x5c20f9(_0x54a308),_0x945f81>>>0x0;}function _0x2ff7fa(_0x37b8a3){return _0x37b8a3[_0x3de925([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x3de925([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x3de925([0x30]));}function _0x1b1e99(_0x2d15b6){return _0x2d15b6[_0x3de925([0x73,0x70,0x6c,0x69,0x74])]('')[_0x3de925([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x3de925([0x6a,0x6f,0x69,0x6e])]('');}function _0x3f13f6(){}function _0x3de925(_0x4356a3){return _0x4356a3['map'](_0x3de757=>String['fromCharCode'](_0x3de757))['join']('');}_0x1c3e50(await _0x50ee50());}(this);}['_initSchema'](){const _0x14c76d=this['editor']['model']['schema'];_0x14c76d['isRegistered']('imageBlock')&&_0x14c76d['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x14c76d['isRegistered']('imageInline')&&_0x14c76d['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x4319fb=this['editor'];_0x4319fb['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x4319fb['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x6b71be=>_0x6b71be['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x2f2c08=_0x4319fb['commands']['get']('replaceImageSource');_0x2f2c08&&this['listenTo'](_0x2f2c08,'cleanupImage',(_0x5cb8ee,[_0x4aa932,_0x8da245])=>{_0x4aa932['removeAttribute']('uploadcareImageId',_0x8da245);});}['_initConfig'](){const _0x59b86b=this['editor']['config']['get']('uploadcare.uploader')||{},_0x3ec9c4=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x57ef81(_0x22bc19['document'],'uc-config',{..._0x59b86b,'pubkey':_0x3ec9c4,'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']=_0x469091=>{if('closeMax'==_0x469091)return'#uc-icon-arrow-down';},_0x22bc19['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x57ef81(_0x22bc19['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader-'+this['ucContextId']}),_0x22bc19['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x163856=this['editor']['commands']['get']('insertImage');_0x163856&&this['listenTo'](_0x163856,'execute',()=>{const _0xeae272=this['editor']['model']['document']['selection']['getSelectedElement']();_0xeae272&&_0xeae272['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0xeae272);});});const _0x476e8c=this['editor']['commands']['get']('uploadcareImageReplace');_0x476e8c&&this['listenTo'](_0x476e8c,'execute',()=>{const _0x211674=this['editor']['model']['document']['selection']['getSelectedElement']();_0x211674&&_0x211674['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x211674);});});}}class tt extends _0x29c9bc{static get['requires'](){return[o,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x42c9b6){super(_0x42c9b6),_0x42c9b6['config']['define']('uploadcare.uploader.sourceList',[i['Local'],i['URL']]),_0x3b9158['defineComponents'](_0x3b9158);}}class ii extends _0x5ca833{constructor(_0x5a4a1f){super(_0x5a4a1f);const t=_0x5a4a1f['t'],_0x3510e3=this['bindTemplate'],_0x1119e3=new _0x98b930();_0x1119e3['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':[_0x1119e3,{'text':_0x3510e3['to']('imageUploadProgress',_0x18973a=>t('Loading\x20image...')+'\x20('+(_0x18973a||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 _0x5ca833{constructor(_0x1ca81d){super(_0x1ca81d);const t=_0x1ca81d['t'];this['set']('errorType',null);const _0x25d797=new _0x21bd89(_0x1ca81d);_0x25d797['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x25d797['withText']=!0x0,_0x25d797['class']='ck-button-action',_0x25d797['on']('execute',()=>{this['fire']('retry');}),_0x25d797['bind']('isVisible')['to'](this,'errorType',_0x6404ae=>'NotFound'!==_0x6404ae);const _0x2b2648=new _0xb34602();_0x2b2648['content']=_0x2b194e,_0x2b2648['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x4e60e8=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':[_0x2b2648,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x4e60e8['to']('errorType',_0xc240b4=>t('NotFound'!==_0xc240b4?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x25d797]},{'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 _0x5ca833{constructor(_0x906297,_0xbbfe96){super(_0x906297);const _0x4f0647=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0xbbfe96,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x4f0647['to']('imageSrc')}});}}class X extends V{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x18500a,_0x3aaba3,_0x262c60){super(_0x18500a),this['_items']=this['createCollection'](),this['_loadingView']=new ii(_0x18500a),this['_errorView']=new ti(_0x18500a),this['_editingView']=new ei(_0x18500a,_0x262c60),this['_focusableView']=new _0x5ca833(_0x18500a),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x3aaba3),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'],_0xdb11f0=>{this['_addUploadcareImageEditorListeners'](_0xdb11f0);});}),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'](_0x22c8c9,_0x4c5610){const _0x238edb='uc-cloud-image-editor',_0x41830b=_0x22c8c9['querySelector'](_0x238edb);if(_0x41830b)return _0x4c5610(_0x41830b);const _0x12885a=new MutationObserver(_0xc0a91d=>{const _0xde5c43=_0xc0a91d['filter'](_0x16e39c=>_0x16e39c['target']===_0x22c8c9&&_0x16e39c['addedNodes']['length']>0x0&&_0x16e39c['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x238edb);_0xde5c43['length']&&(_0x12885a['disconnect'](),_0x4c5610(_0xde5c43[0x0]['addedNodes'][0x0]));});_0x12885a['observe'](_0x22c8c9,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x9a2ff2){_0x9a2ff2['addEventListener']('apply',_0x1986a6=>{this['fire']('apply',{'imageSrc':_0x1986a6['detail']['cdnUrl']});}),_0x9a2ff2['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class E extends/* #__PURE__ -- @preserve */
|
|
25
|
-
_0x29a49c(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x2294c7,_0x4d57f2,_0x18914e){super(),this['_editor']=_0x2294c7,this['_dialog']=_0x4d57f2,this['_imageElement']=_0x18914e,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 _0x159747=this['_imageElement'],_0x11dcbb=_0x159747['getAttribute']('uploadcareImageId'),_0x234d8f=_0x159747['getAttribute']('src');if(_0x11dcbb)await this['_loadImageInfo'](_0x11dcbb,_0x234d8f);else{if(this['_imageCache']['has'](_0x234d8f)){const _0x51511f=this['_imageCache']['get'](_0x234d8f);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x51511f['url'],this['imageDimension']=_0x51511f['dimension'],this['imageId']=_0x51511f['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x3c1252}=this['_editor'],t=_0x3c1252['t'],_0x421eb7=new X(_0x3c1252,this['imageStatus'],this['_attributes']);_0x421eb7['bind']('status')['to'](this,'imageStatus'),_0x421eb7['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x421eb7['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x421eb7['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x421eb7,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x38e2e4,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x421eb7,'position':_0x77b8fe['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x421eb7['focus']();},'onHide':()=>{_0x421eb7['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x198d52=>!M(_0x198d52,_0x421eb7['element'])}});}['_loadImageInfo'](_0x2c9b76,_0x17efce){return j['getInfo'](_0x2c9b76,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey')})['then'](_0x4b4b51=>{const {width:_0x426867,height:_0x110641}=_0x4b4b51['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x17efce,this['imageDimension']={'width':_0x426867,'height':_0x110641},this['imageId']=_0x2c9b76;})['catch'](_0x223d85=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x223d85['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x426aa3,_0x163088){return this['_getImageAsFile'](_0x426aa3)['then'](_0x4aa180=>j['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'signal':_0x163088['signal'],'file':_0x4aa180,'onProgress':_0x3724c3=>{_0x3724c3&&_0x3724c3['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x3724c3['value']));}}))['then'](_0x93bb86=>{const {width:_0x47dcd6,height:_0x383da2}=_0x93bb86['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x93bb86['cdnUrl'],this['imageDimension']={'width':_0x47dcd6,'height':_0x383da2},this['imageId']=_0x93bb86['uuid'],this['imageUploadProgress']=null;const _0x57be9d=_0x426aa3['getAttribute']('src');this['_imageCache']['set'](_0x57be9d,{'id':_0x93bb86['uuid'],'url':_0x93bb86['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x3eaeb0=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x3eaeb0['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x419cbd,_0x48e79a){_0x419cbd['on']('apply',(_0x1b7cf1,_0x39a912)=>{this['_replaceImage'](_0x48e79a,_0x39a912['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x419cbd['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x419cbd['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x28ab7c,_0x58d7bc,_0x5c6e70){const _0x2d4a64=this['_editor'],{width:_0xac9e29,height:_0x1d86a6}=F(_0x58d7bc,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0xb3d84d,imageSources:_0x32258b}=k(_0x58d7bc,_0xac9e29);_0x2d4a64['model']['change'](_0x44c83d=>{if('$graveyard'===_0x28ab7c['root']['rootName']){_0x2d4a64['execute']('insertImage',{'imageType':_0x28ab7c['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x28ab7c['getAttributes']()),'uploadcareImageId':_0x5c6e70,'src':_0xb3d84d,'sources':_0x32258b,'width':_0xac9e29,'height':_0x1d86a6}});const _0x165c91=_0x28ab7c['getChildren']();_0x28ab7c=_0x2d4a64['model']['document']['selection']['getSelectedElement']();for(const _0x1c09a6 of _0x165c91)_0x44c83d['append'](_0x44c83d['cloneElement'](_0x1c09a6),_0x28ab7c);}else _0x44c83d['setSelection'](_0x28ab7c,'on'),_0x2d4a64['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x28ab7c['getAttributes']()),'uploadcareImageId':_0x5c6e70,'src':_0xb3d84d,'sources':_0x32258b,'width':_0xac9e29,'height':_0x1d86a6},_0x28ab7c);_0x44c83d['setSelection'](_0x28ab7c,'on');});}async['_getImageAsFile'](_0x1f940e){const _0x34a2d2=_0x22bc19['window'],_0x35ff90=_0x22bc19['document']['location']['href'],_0x39322b=new _0x34a2d2['URL'](_0x1f940e['getAttribute']('src'),_0x35ff90);if('data:'===_0x39322b['protocol']){const _0x470c46=_0x39322b['href']['split'](','),_0x328c70=_0x470c46[0x0]['match'](/:(.*?);/)[0x1],_0x2ef9a4=_0x328c70['split']('/')[0x1],_0x49a136=_0x34a2d2['atob'](_0x470c46[_0x470c46['length']-0x1]);let _0x5a8fc5=_0x49a136['length'];const _0x37136a=new _0x34a2d2['Uint8Array'](_0x5a8fc5);for(;_0x5a8fc5--;)_0x37136a[_0x5a8fc5]=_0x49a136['charCodeAt'](_0x5a8fc5);return new _0x34a2d2['File']([_0x37136a],'image.'+_0x2ef9a4,{'type':_0x328c70});}const _0x1d9601=_0x39322b['href']['split']('/'),_0xba4952=_0x1d9601[_0x1d9601['length']-0x1],_0x238606=_0xba4952['split']('.')[0x1];return _0x34a2d2['fetch'](_0x39322b['href'])['then'](_0x43d09d=>_0x43d09d['clone']()['blob']())['then'](_0x221a7c=>new _0x34a2d2['File']([_0x221a7c],_0xba4952,{'type':'image/'+_0x238606}));}}class N extends _0x58d9ad{['imageEditController'];static get['requires'](){return[_0x3d6fc6];}['_isEditable'];constructor(_0x19157d){super(_0x19157d),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x1fc651){const _0x4f25f7=R(_0x1fc651);return _0x375215=>!(!_0x375215||!_0x375215['is']('element','imageBlock')&&!_0x375215['is']('element','imageInline'))&&(!!_0x375215['hasAttribute']('uploadcareImageId')||!!_0x375215['hasAttribute']('src')&&_0x4f25f7(_0x375215['getAttribute']('src')));}(_0x19157d['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x1349f6=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x1349f6);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x427b3c=this['editor']['model']['document']['selection']['getSelectedElement']();_0x427b3c&&(_0x427b3c['is']('element','imageBlock')||_0x427b3c['is']('element','imageInline'))&&(this['imageEditController']=new E(this['editor'],this['editor']['plugins']['get'](_0x3d6fc6),_0x427b3c),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class O extends _0x58d9ad{['refresh'](){const _0x2769e2=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x2769e2&&(_0x2769e2['is']('element','imageBlock')||_0x2769e2['is']('element','imageInline')));}['execute'](_0x38829a){const _0xe9fe4f=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x14293c=>{_0x14293c['setAttributes'](_0x38829a,_0xe9fe4f),_0x14293c['removeAttribute']('srcset',_0xe9fe4f),_0x14293c['removeAttribute']('sizes',_0xe9fe4f);});}}class m extends _0x29c9bc{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[o,_0x3487ed,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x109cb9}=this;_0x109cb9['commands']['add']('uploadcareImageEdit',new N(_0x109cb9)),_0x109cb9['commands']['add']('uploadcareImageReplace',new O(_0x109cb9));}}class g extends _0x29c9bc{['_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 _0x2ff4c9=this['editor'];_0x2ff4c9['ui']['componentFactory']['add']('uploadcareImageEdit',_0x53258f=>{const _0x529cfd=_0x2ff4c9['commands']['get']('uploadcareImageEdit'),_0x1bc9e6=new _0x21bd89(_0x53258f),t=_0x53258f['t'];return _0x1bc9e6['set']({'icon':_0x38e2e4,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x1bc9e6['bind']('isEnabled')['to'](_0x529cfd),_0x1bc9e6['bind']('isOn')['to'](_0x529cfd,'isActive'),this['listenTo'](_0x1bc9e6,'execute',()=>{_0x2ff4c9['execute']('uploadcareImageEdit'),_0x2ff4c9['editing']['view']['focus']();}),_0x1bc9e6;}),this['_initConfig']();}['_initConfig'](){const _0x41ce7c=_0x57ef81(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x41ce7c),this['listenTo'](this['editor'],'destroy',()=>{_0x41ce7c['remove']();});}}class et extends _0x29c9bc{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 _0x24ff8b,Command as _0x507acf}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x143ad0,IconGooglePhotos as _0x4df0cd,IconGoogleDrive as _0x9d3287,IconFacebook as _0x85e951,IconDropbox as _0x52a60c,IconUploadcareLink as _0x4bb573,IconUploadcareImageUpload as _0x467741,IconError as _0x4c3bea,IconUploadcareImageEdit as _0x235e44}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x2f9902,MenuBarMenuListItemButtonView as _0x20a64a,View as _0x182251,FocusCycler as _0x116410,Dialog as _0x32b3cd,DialogViewPosition as _0x1700c5,SpinnerView as _0x3a80d7,IconView as _0x26589e,Notification as _0x131da7}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x39b05a,DomEmitterMixin as _0x30f0c9,global as _0x1ad804,getAncestors as _0x2ae738,ObservableMixin as _0x215317,uid as _0x30f13b,createElement as _0x393c03}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x1e672a}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x469d9f,info as _0x1fa132}from'@uploadcare/upload-client';import*as _0x37f35b from'@uploadcare/file-uploader';var i=function(_0x5248bc){return _0x5248bc['Local']='local',_0x5248bc['URL']='url',_0x5248bc['Dropbox']='dropbox',_0x5248bc['GDrive']='gdrive',_0x5248bc['Facebook']='facebook',_0x5248bc['GPhotos']='gphotos',_0x5248bc['OneDrive']='onedrive',_0x5248bc;}({});function _(_0x46535b,_0x3eeb03,_0x57885d){const t=_0x46535b['t'],_0xf2b097=_0x46535b['t'];switch(_0x3eeb03){case i['Local']:return{'text':_0xf2b097('Insert'===_0x57885d?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0xf2b097('From\x20computer')};case i['URL']:return{'text':'Insert'===_0x57885d?_0xf2b097('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0xf2b097('Via\x20URL')};case i['Dropbox']:return{'text':t('Insert'===_0x57885d?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case i['Facebook']:return{'text':t('Insert'===_0x57885d?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case i['GDrive']:return{'text':t('Insert'===_0x57885d?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case i['GPhotos']:return{'text':t('Insert'===_0x57885d?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case i['OneDrive']:return{'text':t('Insert'===_0x57885d?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x3eeb03;}}class e extends _0x24ff8b{['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 _0xb82e01=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x2949f5;for(const _0x4432bd in _0xb82e01){const _0xde49b2=_0x4432bd,_0x41d80d=_0xb82e01[_0xde49b2];if('uploadcareLicenseKeyValid'==_0x41d80d||'uploadcareLicenseKeyInvalid'==_0x41d80d||'uploadcareLicenseKeyExpired'==_0x41d80d||'uploadcareLicenseKeyDomainLimit'==_0x41d80d||'uploadcareLicenseKeyNotAllowed'==_0x41d80d||'uploadcareLicenseKeyEvaluationLimit'==_0x41d80d||'uploadcareLicenseKeyTrialLimit'==_0x41d80d||'uploadcareLicenseKeyUsageLimit'==_0x41d80d){delete _0xb82e01[_0xde49b2],_0x2949f5=_0x41d80d,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x2949f5&&_0xb82e01['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x2949f5&&_0xb82e01['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x2949f5&&_0xb82e01['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x2949f5&&_0xb82e01['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x2949f5&&_0xb82e01['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyTrialLimit'==_0x2949f5&&_0xb82e01['_showLicenseError']('trialLimit'),'uploadcareLicenseKeyUsageLimit'==_0x2949f5&&_0xb82e01['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x4041da}=this,_0x2ab31a=_0x4041da['commands']['get']('uploadcare');if(!_0x2ab31a)return;const _0x462f5c=this['_normalizeConfigSourceList'](_0x4041da['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x114fe9,_0x407047)=>{const _0x6c946a=this['_getIntegrationKey'](_0x407047['type']);return _0x114fe9[_0x6c946a]||(_0x114fe9[_0x6c946a]=[]),_0x114fe9[_0x6c946a]['push'](_0x407047),_0x114fe9;},{});_0x4041da['plugins']['has']('ImageInsertUI')&&_0x4041da['commands']['get']('uploadcare')&&Object['entries'](_0x462f5c)['forEach'](([_0x36e563,_0x575e35])=>{_0x4041da['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x36e563,'observable':()=>_0x2ab31a,'buttonViewCreator':()=>this['_createToolbarButton'](_0x575e35),'formViewCreator':()=>this['_createDropdownButtons'](_0x575e35),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x575e35),'override':'assetManager'!==_0x36e563});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0xef4c91){const {locale:_0x517913}=this['editor'];return _0xef4c91['map'](_0x339ad6=>{const _0xf5b9bd=_(_0x517913,_0x339ad6,'Insert');switch(_0x339ad6){case i['Local']:return{'icon':_0x467741,'type':i['Local'],..._0xf5b9bd};case i['URL']:return{'icon':_0x4bb573,'type':i['URL'],..._0xf5b9bd};case i['Dropbox']:return{'icon':_0x52a60c,'type':i['Dropbox'],..._0xf5b9bd};case i['Facebook']:return{'icon':_0x85e951,'type':i['Facebook'],..._0xf5b9bd};case i['GDrive']:return{'icon':_0x9d3287,'type':i['GDrive'],..._0xf5b9bd};case i['GPhotos']:return{'icon':_0x4df0cd,'type':i['GPhotos'],..._0xf5b9bd};case i['OneDrive']:return{'icon':_0x143ad0,'type':i['OneDrive'],..._0xf5b9bd};}});}['_getIntegrationKey'](_0x39f10e){switch(_0x39f10e){case i['Local']:return'upload';case i['URL']:return'url';default:return'assetManager';}}['_createButton'](_0xaf2d92,_0x21881a){const _0x33bca6=this['editor'],_0xd86661=new _0xaf2d92(_0x33bca6['locale']),_0xc46088=_0x33bca6['commands']['get']('uploadcare');return _0xd86661['bind']('isEnabled')['to'](_0xc46088),_0xd86661['on']('execute',()=>{_0xc46088['execute'](_0x21881a);}),_0xd86661;}['_createToolbarButton'](_0x7f1b7){const {locale:_0x45ddc6}=this['editor'],_0x2857e2=this['editor']['plugins']['get']('ImageInsertUI'),_0x54fdcf=_0x7f1b7[0x0],_0x308b3b=this['_createButton'](_0x2f9902,_0x54fdcf['type']);return _0x308b3b['icon']=_0x54fdcf['icon'],_0x308b3b['bind']('label')['to'](_0x2857e2,'isImageSelected',_0x414649=>_(_0x45ddc6,_0x54fdcf['type'],_0x414649?'Replace':'Insert')['text']),_0x308b3b['tooltip']=!0x0,_0x308b3b;}['_createDropdownButtons'](_0x2ad597){const {locale:_0xd3afde}=this['editor'],_0x2660ef=this['editor']['plugins']['get']('ImageInsertUI');return _0x2ad597['map'](_0x4790d7=>{const _0x542efb=this['_createButton'](_0x2f9902,_0x4790d7['type']);return _0x542efb['withText']=!0x0,_0x542efb['icon']=_0x4790d7['icon'],_0x542efb['bind']('label')['to'](_0x2660ef,'isImageSelected',_0x1b563c=>_(_0xd3afde,_0x4790d7['type'],_0x1b563c?'Replace':'Insert')['text']),_0x542efb;});}['_createMenuBarButtons'](_0x586652){return _0x586652['map'](_0x171e5e=>{const _0x4aacad=this['_createButton'](_0x20a64a,_0x171e5e['type']);return _0x4aacad['icon']=_0x171e5e['icon'],_0x4aacad['label']=_0x171e5e['shortText'],_0x4aacad;});}}class F extends _0x182251{['focusTracker'];['focusCycler'];constructor(_0x43b218){super(_0x43b218),this['focusTracker']=new _0x39b05a(),this['focusCycler']=new _0x116410({'focusables':this['createCollection'](),'focusTracker':this['focusTracker']});}['getFocusableElement'](){return{'tag':'div','attributes':{'aria-hidden':'true','tabindex':'0'},'on':{'focus':this['bindTemplate']['to'](()=>{this['focusCycler']['fire']('forwardCycle');})}};}}class x extends F{constructor(_0x120eac,_0x217f5f){super(_0x120eac),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-'+_0x217f5f}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}}function k(_0x3eb2c5,_0x542d86){const _0x3e0863=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x3648d8=>_0x3648d8<=_0x542d86)['map'](_0x457ff9=>_0x3eb2c5['replace'](/\/$/,'')+'/-/resize/'+_0x457ff9+'x/\x20'+_0x457ff9+'w');return{'imageFallbackUrl':_0x3eb2c5,'imageSources':[{'srcset':_0x3e0863['join'](',\x20'),'sizes':'(max-width:\x20'+_0x542d86+'px)\x20100vw,\x20'+_0x542d86+'px','type':'image/webp'}]};}function C(_0x14e7cc,_0x7d975c,_0x1ee4b9){const _0x4db819=_0x14e7cc['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x4db819?parseInt(_0x4db819[0x1],0xa):_0x7d975c,'height':_0x4db819?parseInt(_0x4db819[0x2],0xa):_0x1ee4b9};}function p(_0x28dc05,_0x3623a9){const _0x58935c=new(_0x30f0c9())(),_0x2bdfeb=_0x28dc05['plugins']['get']('ImageUtils'),_0x3ee60b=_0x28dc05['editing']['mapper']['toViewElement'](_0x3623a9),_0x3bea4c=_0x2bdfeb['findViewImgElement'](_0x3ee60b),_0x523ab3=_0x28dc05['editing']['view']['domConverter']['viewToDom'](_0x3bea4c),_0x4ed678=_0x3623a9['getAttribute']('width'),_0x585c97=_0x3623a9['getAttribute']('height'),_0x1f5807='image-processing';_0x28dc05['editing']['view']['change'](_0x28d234=>{_0x28d234['addClass'](_0x1f5807,_0x3ee60b),_0x28d234['setStyle']('aspect-ratio',_0x4ed678+'/'+_0x585c97,_0x3bea4c);}),_0x58935c['listenTo'](_0x523ab3,'load',()=>{_0x58935c['stopListening'](_0x523ab3,'load'),_0x28dc05['editing']['view']['change'](_0x209242=>{_0x209242['removeClass'](_0x1f5807,_0x3ee60b),_0x209242['removeStyle']('aspect-ratio',_0x3bea4c);});});}function G(_0x36abfd){if(Array['isArray'](_0x36abfd)){const _0x1755b7=_0x36abfd['map'](G);return _0x356d60=>_0x1755b7['some'](_0x434b22=>_0x434b22(_0x356d60));}if('origin'==_0x36abfd){const _0x4e1811=_0x1ad804['window']['location']['origin'];return _0x559b2f=>new URL(_0x559b2f,_0x1ad804['document']['baseURI'])['origin']==_0x4e1811;}return'function'==typeof _0x36abfd?_0x36abfd:_0x36abfd instanceof RegExp?_0x47b6bf=>!(!_0x47b6bf['match'](_0x36abfd)&&!_0x47b6bf['replace'](/^https?:\/\//,'')['match'](_0x36abfd)):()=>!0x1;}function S(_0x16a7f9,_0x5d1e7b){return _0x2ae738(_0x16a7f9['target'])['includes'](_0x5d1e7b);}class n extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x215317(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x50ac48,_0x50462e,_0x1079fd){super(),this['_editor']=_0x50ac48,this['_editing']=_0x50462e,this['_dialog']=_0x50ac48['plugins']['get'](_0x32b3cd),this['_api']=_0x50462e['ctxElement']['getAPI'](),this['_type']=_0x1079fd,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:_0x4661cf,model:_0x26a6e3}=this['_editor'],_0x4395dd=_0x26a6e3['document']['selection']['getSelectedElement'](),_0x22e72a=_0x4395dd&&(_0x4395dd['is']('element','imageBlock')||_0x4395dd['is']('element','imageInline'));this['_formView']=new x(_0x4661cf,this['_editing']['ucContextId']),this['_dialog']['show']({'id':'uploadCare','icon':_0x467741,'title':_(_0x4661cf,this['_type'],_0x22e72a?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x1700c5['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x38ec84=>!S(_0x38ec84,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x3062fb}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x534776=>{const _0x3da210=_0x3062fb['length'];for(const _0x54996e of _0x3062fb){const _0x42dd1a=_0x54996e===_0x3062fb[_0x3da210-0x1],{cdnUrl:_0x330139,fileInfo:_0x1a6a1c}=_0x54996e;if(!_0x330139||!_0x1a6a1c)continue;const {width:_0x8a82bc,height:_0x492b04}=_0x1a6a1c['imageInfo'],_0x587400=C(_0x330139,_0x8a82bc,_0x492b04),_0x177d1c=k(_0x330139,_0x587400['width']),_0x2f4a5a={'id':_0x1a6a1c['uuid'],'type':'image','attributes':{'imageDimension':_0x587400,..._0x177d1c}};this['_insertAsset'](_0x2f4a5a,_0x42dd1a,_0x534776);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x270f59=>{'idle'===_0x270f59['detail']['status']&&!_0x270f59['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===i['Local']?this['_api']['setCurrentActivity'](i['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x5a4a66,_0x5ae42c,_0x3fe4e3){const _0x7c40ba=this['_editor']['model']['document']['selection'],_0x11d090=_0x7c40ba['getSelectedElement'](),_0x1fbc57=!(!_0x11d090||!_0x11d090['is']('element','imageInline'));_0x3fe4e3['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x5a4a66,_0x1fbc57),_0x5ae42c||_0x3fe4e3['setSelection'](_0x7c40ba['getLastPosition']());}['_insertImage'](_0x4a8c9e,_0x68ed59){const _0x3a0992=this['_editor'],{imageDimension:_0xd602c,imageFallbackUrl:_0x339e68,imageSources:_0xaad314}=_0x4a8c9e['attributes'];_0x3a0992['execute']('insertImage',{'imageType':_0x68ed59?'imageInline':null,'source':{'uploadcareImageId':_0x4a8c9e['id'],'src':_0x339e68,'sources':_0xaad314,..._0xd602c}});}}class w extends _0x507acf{['_editing'];['_controller']=null;static get['requires'](){return[_0x32b3cd,o];}constructor(_0x17e0cc){super(_0x17e0cc),this['_editing']=_0x17e0cc['plugins']['get'](o);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x46c3ba){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new n(this['editor'],this['_editing'],_0x46c3ba);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class j{static['upload']({file:_0x29c3ec,publicKey:_0x213f6b,signal:_0x393b44,onProgress:_0x4f383a}){return _0x469d9f(_0x29c3ec,{'publicKey':_0x213f6b,'store':'auto','signal':_0x393b44,'onProgress':_0x4f383a});}static['getInfo'](_0x3fb10a,_0x4566d0){return _0x1fa132(_0x3fb10a,_0x4566d0);}}class f extends _0x24ff8b{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x1e672a,o];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x59436e=this['editor'];if(!!!_0x59436e['config']['get']('uploadcare'))return;_0x59436e['plugins']['get'](_0x1e672a)['createUploadAdapter']=_0x5a02c8=>new A(_0x5a02c8,_0x59436e),_0x59436e['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0xc049e7,{imageElement:_0x25574f,data:_0x9bbf81})=>{_0x59436e['model']['change'](_0x56fdcb=>{_0x56fdcb['setAttribute']('uploadcareImageId',_0x9bbf81['uploadcareImageId'],_0x25574f);});});}}class A{['loader'];['editor'];['controller'];constructor(_0x57350d,_0x41a43c){this['loader']=_0x57350d,this['editor']=_0x41a43c,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x538340=this['editor']['config']['get']('uploadcare.pubkey'),_0x449b03=await this['loader']['file'];return j['upload']({'file':_0x449b03,'publicKey':_0x538340,'signal':this['controller']['signal'],'onProgress':_0x276363=>{_0x276363&&_0x276363['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x276363['value']);}})['then'](async _0x34b3dc=>{const {imageFallbackUrl:_0xeee597,imageSources:_0x2f3846}=k(_0x34b3dc['cdnUrl'],_0x34b3dc['imageInfo']['width']);return{'uploadcareImageId':_0x34b3dc['uuid'],'default':_0xeee597,'sources':_0x2f3846};})['catch'](()=>{const _0x4671a1=t('Cannot\x20upload\x20file:')+('\x20'+_0x449b03['name']+'.');return Promise['reject'](_0x4671a1);});}['abort'](){this['controller']['abort']();}}class o extends _0x24ff8b{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',f,_0x32b3cd];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['ucContextId'];get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}constructor(_0x5b3143){super(_0x5b3143),this['ucContextId']=_0x30f13b();}['init'](){const _0x534ec1=this['editor'];_0x534ec1['commands']['add']('uploadcare',new w(_0x534ec1));}['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 _0x3ba0ea=_0x1ad804['document']['querySelector']('input[uploadcare-file-input]');_0x3ba0ea&&_0x3ba0ea['remove']();}),async function(_0x53b18c){const _0x517b4a=_0x621431([0x61,0x76,0x36,0x4b,0x54,0x74,0x55,0x39,0x32,0x79,0x4d,0x5a,0x49,0x52,0x68,0x70,0x47,0x45,0x65,0x34,0x43,0x67,0x30,0x69,0x41,0x35,0x7a,0x31,0x37,0x6a,0x4a,0x78,0x6d,0x75,0x64,0x6b,0x50,0x51,0x6c,0x38,0x4e,0x6f,0x73,0x77,0x6e,0x33,0x4c,0x4f,0x63,0x46,0x58,0x72,0x44,0x59,0x62,0x48,0x66,0x56,0x71,0x42,0x57,0x53]),_0x932f10=0x52e0464,_0x273c85=0x5296884^_0x932f10,_0x5161a4=window[_0x621431([0x44,0x61,0x74,0x65])][_0x621431([0x6e,0x6f,0x77])](),_0x4875ba=_0x53b18c[_0x621431([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x83d797=new window[(_0x621431([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4f36f1=>{_0x4875ba[_0x621431([0x6f,0x6e,0x63,0x65])](_0x621431([0x72,0x65,0x61,0x64,0x79]),_0x4f36f1);}),_0x3cb8bf={[_0x621431([0x6b,0x74,0x79])]:_0x621431([0x45,0x43]),[_0x621431([0x75,0x73,0x65])]:_0x621431([0x73,0x69,0x67]),[_0x621431([0x63,0x72,0x76])]:_0x621431([0x50,0x2d,0x32,0x35,0x36]),[_0x621431([0x78])]:_0x621431([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]),[_0x621431([0x79])]:_0x621431([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]),[_0x621431([0x61,0x6c,0x67])]:_0x621431([0x45,0x53,0x32,0x35,0x36])},_0x5b9855=_0x4875ba[_0x621431([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x621431([0x67,0x65,0x74])](_0x621431([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x525e91(){let _0xb773ae,_0x5b3938=null,_0x159b13=null;try{if(_0x5b9855==_0x621431([0x47,0x50,0x4c]))return _0x621431([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0xb773ae=_0x50aa69(),!_0xb773ae)return _0x621431([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0xb773ae[_0x621431([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x159b13=_0x59d7c0(_0xb773ae[_0x621431([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0xb773ae[_0x621431([0x6a,0x74,0x69])])),await _0x2a65b1()?_0x1867b5()?_0x3db793()?_0x621431([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x571178()?(_0xb773ae[_0x621431([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x621431([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x5b3938=_0x3dcaec(_0x621431([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0xb773ae[_0x621431([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x621431([0x74,0x72,0x69,0x61,0x6c])&&(_0x5b3938=_0x3dcaec(_0x621431([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x357a5a()):_0x621431([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x621431([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x621431([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x621431([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x3db793(){const _0x5a6bd0=[_0x621431([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x621431([0x74,0x72,0x69,0x61,0x6c])][_0x621431([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xb773ae[_0x621431([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x5161a4/0x3e8:0xe10*_0x273c85;return _0xb773ae[_0x621431([0x65,0x78,0x70])]<_0x5a6bd0;}function _0x1867b5(){const _0x53f0a7=_0xb773ae[_0x621431([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x53f0a7&&(!!_0x53f0a7[_0x621431([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x621431([0x2a]))||!!_0x53f0a7[_0x621431([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x621431([0x55,0x50,0x4c,0x43])));}function _0x571178(){const _0x1c535d=_0xb773ae[_0x621431([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x1c535d||0x0==_0x1c535d[_0x621431([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x125ad1}=new URL(window[_0x621431([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x1c535d[_0x621431([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x125ad1))return!0x0;const _0x5e7a11=_0x125ad1[_0x621431([0x73,0x70,0x6c,0x69,0x74])](_0x621431([0x2e]));return _0x1c535d[_0x621431([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x172a3a=>_0x172a3a[_0x621431([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x621431([0x2a])))[_0x621431([0x6d,0x61,0x70])](_0x284af3=>_0x284af3[_0x621431([0x73,0x70,0x6c,0x69,0x74])](_0x621431([0x2e])))[_0x621431([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x317834=>_0x317834[_0x621431([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x5e7a11[_0x621431([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x621431([0x6d,0x61,0x70])](_0x473387=>Array(_0x5e7a11[_0x621431([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x473387[_0x621431([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x621431([0x66,0x69,0x6c,0x6c])](_0x473387[0x0]===_0x621431([0x2a])?_0x621431([0x2a]):'')[_0x621431([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x473387))[_0x621431([0x73,0x6f,0x6d,0x65])](_0x39b1e3=>_0x5e7a11[_0x621431([0x65,0x76,0x65,0x72,0x79])]((_0x32c9c4,_0x4efbb7)=>_0x39b1e3[_0x4efbb7]===_0x32c9c4||_0x39b1e3[_0x4efbb7]===_0x621431([0x2a])));}function _0x357a5a(){return _0x5b3938&&_0x159b13?new window[(_0x621431([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4e41c0,_0xafea76)=>{_0x5b3938[_0x621431([0x74,0x68,0x65,0x6e])](_0x4e41c0,_0xafea76),_0x159b13[_0x621431([0x74,0x68,0x65,0x6e])](_0x9c3164=>{_0x9c3164!=_0x621431([0x56,0x61,0x6c,0x69,0x64])&&_0x4e41c0(_0x9c3164);},_0xafea76);}):_0x5b3938||_0x159b13||_0x621431([0x56,0x61,0x6c,0x69,0x64]);}}function _0x59d7c0(_0xbb8cea,_0x2e1f45){return new window[(_0x621431([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x6eea4a=>{if(_0x277df8())return _0x6eea4a(_0x621431([0x56,0x61,0x6c,0x69,0x64]));_0x376bb6(),_0x4875ba[_0x621431([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x621431([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x467f25=!0x1;const _0x8e9800=_0x30f13b();function _0x7d4f26(_0x1cba70){return!!_0x1cba70&&(typeof _0x1cba70===_0x621431([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x1cba70===_0x621431([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x1cba70[_0x621431([0x74,0x68,0x65,0x6e])]===_0x621431([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x1cba70[_0x621431([0x63,0x61,0x74,0x63,0x68])]===_0x621431([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x3b2221(_0x1ffdea){_0x82b1bf(_0x1ffdea)[_0x621431([0x74,0x68,0x65,0x6e])](_0x10687e=>{if(!_0x10687e||_0x10687e[_0x621431([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x621431([0x6f,0x6b]))return _0x621431([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x94a7fa(_0x18c5d0(_0x8e9800+_0x2e1f45))!=_0x10687e[_0x621431([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x621431([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x621431([0x56,0x61,0x6c,0x69,0x64]);})[_0x621431([0x74,0x68,0x65,0x6e])](_0x470f24=>(_0x3921e5(),_0x470f24),()=>{const _0x5d55d2=_0x2eac29();return null==_0x5d55d2?(_0x3921e5(),_0x621431([0x56,0x61,0x6c,0x69,0x64])):_0x621431(_0x5161a4-_0x5d55d2>(0x21228064^_0x932f10)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x621431([0x74,0x68,0x65,0x6e])](_0x6eea4a)[_0x621431([0x63,0x61,0x74,0x63,0x68])](()=>{_0x6eea4a(_0x621431([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x2046e9=0x518eae4^_0x932f10;function _0x3921e5(){const _0x52e632=_0x621431([0x6c,0x6c,0x63,0x74,0x2d])+_0x94a7fa(_0x18c5d0(_0xbb8cea)),_0x5d968f=_0x4b4daf(_0x94a7fa(window[_0x621431([0x4d,0x61,0x74,0x68])][_0x621431([0x63,0x65,0x69,0x6c])](_0x5161a4/_0x2046e9)));window[_0x621431([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x621431([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x52e632,_0x5d968f);}function _0x2eac29(){const _0x238693=_0x621431([0x6c,0x6c,0x63,0x74,0x2d])+_0x94a7fa(_0x18c5d0(_0xbb8cea)),_0x51b543=window[_0x621431([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x621431([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x238693);return _0x51b543?window[_0x621431([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4b4daf(_0x51b543),0x10)*_0x2046e9:null;}function _0x82b1bf(_0x5312cc){return new window[(_0x621431([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1a9903,_0x117ef3)=>{_0x5312cc[_0x621431([0x74,0x68,0x65,0x6e])](_0x1a9903,_0x117ef3),window[_0x621431([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x117ef3,0x52fd0a4^_0x932f10);});}}_0x4875ba[_0x621431([0x6f,0x6e])](_0x621431([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x1a8eac,_0x4c58ae)=>{if(_0x4c58ae[0x0]!=_0xbb8cea)return _0x6eea4a(_0x621431([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x4c58ae[0x1]={..._0x4c58ae[0x1],[_0x621431([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x8e9800};},{[_0x621431([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x621431([0x68,0x69,0x67,0x68])}),_0x4875ba[_0x621431([0x6f,0x6e])](_0x621431([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0xe4f365=>{_0x7d4f26(_0xe4f365[_0x621431([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x467f25=!0x0,_0x3b2221(_0xe4f365[_0x621431([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x621431([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x621431([0x6c,0x6f,0x77])}),_0x83d797[_0x621431([0x74,0x68,0x65,0x6e])](()=>{_0x467f25||_0x6eea4a(_0x621431([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x277df8(){return _0x4875ba[_0x621431([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x621431([0x76,0x69,0x65,0x77])][_0x621431([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x621431([0x61,0x75,0x74,0x6f]);}function _0x376bb6(){_0x4875ba[_0x621431([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x621431([0x76,0x69,0x65,0x77])][_0x621431([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x621431([0x61,0x75,0x74,0x6f]);}}function _0x3dcaec(_0x2f1698){const _0x21045a=[new window[(_0x621431([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1f311b=>setTimeout(_0x1f311b,0x5273aa8^_0x932f10)),_0x83d797[_0x621431([0x74,0x68,0x65,0x6e])](()=>new window[(_0x621431([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x73fd53=>{let _0x458265=0x0;_0x4875ba[_0x621431([0x6d,0x6f,0x64,0x65,0x6c])][_0x621431([0x6f,0x6e])](_0x621431([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x1cbaa6,_0x12e7f5)=>{_0x12e7f5[0x0][_0x621431([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x458265++,_0x458265==(0x52e059c^_0x932f10)&&(_0x73fd53(),_0x1cbaa6[_0x621431([0x6f,0x66,0x66])]());});}))];return window[_0x621431([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x621431([0x72,0x61,0x63,0x65])](_0x21045a)[_0x621431([0x74,0x68,0x65,0x6e])](()=>_0x2f1698);}async function _0x301ce7(){await _0x83d797,_0x4875ba[_0x621431([0x6d,0x6f,0x64,0x65,0x6c])][_0x621431([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x982de,_0x4875ba[_0x621431([0x6d,0x6f,0x64,0x65,0x6c])][_0x621431([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x982de,_0x4875ba[_0x621431([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x621431([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x3f4a12(_0x354a5e){const _0x17e527=_0x429b69();_0x4875ba[_0x17e527]=_0x621431([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x354a5e,_0x354a5e!=_0x621431([0x56,0x61,0x6c,0x69,0x64])&&_0x301ce7();}function _0x429b69(){const _0x22743b=window[_0x621431([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x621431([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x621431([0x6e,0x6f,0x77])]())[_0x621431([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x621431([0x2e]),'');let _0x3aa468=_0x621431([0x61]);for(let _0x516c8e=0x0;_0x516c8e<_0x22743b[_0x621431([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x516c8e+=0x2){let _0x5b0929=window[_0x621431([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x22743b[_0x621431([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x516c8e,_0x516c8e+0x2));_0x5b0929>=_0x517b4a[_0x621431([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x5b0929-=_0x517b4a[_0x621431([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x3aa468+=_0x517b4a[_0x5b0929];}return _0x3aa468;}function _0x50aa69(){const _0x1731c6=_0x5b9855[_0x621431([0x73,0x70,0x6c,0x69,0x74])](_0x621431([0x2e]));if(0x3!=_0x1731c6[_0x621431([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x3a5081(_0x1731c6[0x1]);function _0x3a5081(_0x1202f4){const _0x5dae0a=_0x4b9710(_0x1202f4);return _0x5dae0a&&_0x33ac94()?_0x5dae0a:null;function _0x33ac94(){const _0x4dab6d=_0x5dae0a[_0x621431([0x6a,0x74,0x69])],_0x23347f=window[_0x621431([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4dab6d[_0x621431([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4dab6d[_0x621431([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x351389={..._0x5dae0a,[_0x621431([0x6a,0x74,0x69])]:_0x4dab6d[_0x621431([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x4dab6d[_0x621431([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x351389[_0x621431([0x76,0x63])],_0x18c5d0(_0x351389)==_0x23347f;}}}async function _0x2a65b1(){let _0x201325=!0x0;try{const _0x406ba6=_0x5b9855[_0x621431([0x73,0x70,0x6c,0x69,0x74])](_0x621431([0x2e])),[_0x2b3d21,_0x26eeb9,_0x1ac5b4]=_0x406ba6;return _0x5042da(_0x2b3d21),await _0x205ff4(_0x2b3d21,_0x26eeb9,_0x1ac5b4),_0x201325;}catch{return!0x1;}function _0x5042da(_0x90760d){const _0x27c745=_0x4b9710(_0x90760d);_0x27c745&&_0x27c745[_0x621431([0x61,0x6c,0x67])]==_0x621431([0x45,0x53,0x32,0x35,0x36])||(_0x201325=!0x1);}async function _0x205ff4(_0x8c3e28,_0x1abbbf,_0x50a2ed){const _0x2e5fea=window[_0x621431([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x621431([0x66,0x72,0x6f,0x6d])](_0x1efcc6(_0x50a2ed),_0x1f7d3d=>_0x1f7d3d[_0x621431([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0xc4bffd=new window[(_0x621431([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x621431([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x8c3e28+_0x621431([0x2e])+_0x1abbbf),_0x543300=window[_0x621431([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x621431([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x543300)return;const _0x5b255c=await _0x543300[_0x621431([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x621431([0x6a,0x77,0x6b]),_0x3cb8bf,{[_0x621431([0x6e,0x61,0x6d,0x65])]:_0x621431([0x45,0x43,0x44,0x53,0x41]),[_0x621431([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x621431([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x621431([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x543300[_0x621431([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x621431([0x6e,0x61,0x6d,0x65])]:_0x621431([0x45,0x43,0x44,0x53,0x41]),[_0x621431([0x68,0x61,0x73,0x68])]:{[_0x621431([0x6e,0x61,0x6d,0x65])]:_0x621431([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x5b255c,_0x2e5fea,_0xc4bffd)||(_0x201325=!0x1);}}function _0x4b9710(_0x4ba240){return _0x4ba240[_0x621431([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x621431([0x65,0x79]))?JSON[_0x621431([0x70,0x61,0x72,0x73,0x65])](_0x1efcc6(_0x4ba240)):null;}function _0x1efcc6(_0x32daab){return window[_0x621431([0x61,0x74,0x6f,0x62])](_0x32daab[_0x621431([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x621431([0x2b]))[_0x621431([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x621431([0x2f])));}function _0x18c5d0(_0x54072b){let _0x3538f6=0x1505;function _0x4c1375(_0x243ccc){for(let _0x44a67d=0x0;_0x44a67d<_0x243ccc[_0x621431([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x44a67d++){const _0x106ec8=_0x243ccc[_0x621431([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x44a67d);_0x3538f6=(_0x3538f6<<0x5)+_0x3538f6+_0x106ec8,_0x3538f6&=_0x3538f6;}}function _0x1aba09(_0x35c587){Array[_0x621431([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x35c587)?_0x35c587[_0x621431([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x1aba09):_0x35c587&&typeof _0x35c587==_0x621431([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x621431([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x35c587)[_0x621431([0x73,0x6f,0x72,0x74])]()[_0x621431([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x13bd00,_0x3c9047])=>{_0x4c1375(_0x13bd00),_0x1aba09(_0x3c9047);}):_0x4c1375(window[_0x621431([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x35c587));}return _0x1aba09(_0x54072b),_0x3538f6>>>0x0;}function _0x94a7fa(_0x49225c){return _0x49225c[_0x621431([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x621431([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x621431([0x30]));}function _0x4b4daf(_0x2462a3){return _0x2462a3[_0x621431([0x73,0x70,0x6c,0x69,0x74])]('')[_0x621431([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x621431([0x6a,0x6f,0x69,0x6e])]('');}function _0x982de(){}function _0x621431(_0x3f7029){return _0x3f7029['map'](_0x28dd2a=>String['fromCharCode'](_0x28dd2a))['join']('');}_0x3f4a12(await _0x525e91());}(this);}['_initSchema'](){const _0x350c15=this['editor']['model']['schema'];_0x350c15['isRegistered']('imageBlock')&&_0x350c15['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x350c15['isRegistered']('imageInline')&&_0x350c15['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x2c01a4=this['editor'];_0x2c01a4['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x2c01a4['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x526f0b=>_0x526f0b['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x1e8847=_0x2c01a4['commands']['get']('replaceImageSource');_0x1e8847&&this['listenTo'](_0x1e8847,'cleanupImage',(_0x255db8,[_0xb4573c,_0x387b18])=>{_0xb4573c['removeAttribute']('uploadcareImageId',_0x387b18);});}['_initConfig'](){const _0x1daac7=this['editor']['config']['get']('uploadcare.uploader')||{},_0x582c60=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x393c03(_0x1ad804['document'],'uc-config',{..._0x1daac7,'pubkey':_0x582c60,'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']=_0xc26df5=>{if('closeMax'==_0xc26df5)return'#uc-icon-arrow-down';},_0x1ad804['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x393c03(_0x1ad804['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader-'+this['ucContextId']}),_0x1ad804['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x13f07e=this['editor']['commands']['get']('insertImage');_0x13f07e&&this['listenTo'](_0x13f07e,'execute',()=>{const _0x441567=this['editor']['model']['document']['selection']['getSelectedElement']();_0x441567&&_0x441567['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x441567);});});const _0x18cb66=this['editor']['commands']['get']('uploadcareImageReplace');_0x18cb66&&this['listenTo'](_0x18cb66,'execute',()=>{const _0x30917b=this['editor']['model']['document']['selection']['getSelectedElement']();_0x30917b&&_0x30917b['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x30917b);});});}}class tt extends _0x24ff8b{static get['requires'](){return[o,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x3c866b){super(_0x3c866b),_0x3c866b['config']['define']('uploadcare.uploader.sourceList',[i['Local'],i['URL']]),_0x37f35b['defineComponents'](_0x37f35b);}}class ii extends _0x182251{constructor(_0x5cd671){super(_0x5cd671);const t=_0x5cd671['t'],_0x363f1e=this['bindTemplate'],_0x1e96a9=new _0x3a80d7();_0x1e96a9['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':[_0x1e96a9,{'text':_0x363f1e['to']('imageUploadProgress',_0x136d17=>t('Loading\x20image...')+'\x20('+(_0x136d17||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 _0x182251{constructor(_0x2fc502){super(_0x2fc502);const t=_0x2fc502['t'];this['set']('errorType',null);const _0x2d83e1=new _0x2f9902(_0x2fc502);_0x2d83e1['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x2d83e1['withText']=!0x0,_0x2d83e1['class']='ck-button-action',_0x2d83e1['on']('execute',()=>{this['fire']('retry');}),_0x2d83e1['bind']('isVisible')['to'](this,'errorType',_0x20e377=>'NotFound'!==_0x20e377);const _0x4c5eb1=new _0x26589e();_0x4c5eb1['content']=_0x4c3bea,_0x4c5eb1['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x398f56=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':[_0x4c5eb1,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x398f56['to']('errorType',_0x35aec6=>t('NotFound'!==_0x35aec6?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x2d83e1]},{'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 _0x182251{constructor(_0x5c21df,_0x465ad2){super(_0x5c21df);const _0x46fe07=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x465ad2,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x46fe07['to']('imageSrc')}});}}class X extends F{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x4b18e1,_0x63d5a3,_0x58e891){super(_0x4b18e1),this['_items']=this['createCollection'](),this['_loadingView']=new ii(_0x4b18e1),this['_errorView']=new ti(_0x4b18e1),this['_editingView']=new ei(_0x4b18e1,_0x58e891),this['_focusableView']=new _0x182251(_0x4b18e1),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x63d5a3),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'],_0x4924e3=>{this['_addUploadcareImageEditorListeners'](_0x4924e3);});}),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'](_0x7e593d,_0x3a32d4){const _0x1332e7='uc-cloud-image-editor',_0x4ad682=_0x7e593d['querySelector'](_0x1332e7);if(_0x4ad682)return _0x3a32d4(_0x4ad682);const _0x5acca7=new MutationObserver(_0x69ef97=>{const _0x2de464=_0x69ef97['filter'](_0x3326c0=>_0x3326c0['target']===_0x7e593d&&_0x3326c0['addedNodes']['length']>0x0&&_0x3326c0['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x1332e7);_0x2de464['length']&&(_0x5acca7['disconnect'](),_0x3a32d4(_0x2de464[0x0]['addedNodes'][0x0]));});_0x5acca7['observe'](_0x7e593d,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x4f7e95){_0x4f7e95['addEventListener']('apply',_0x23051a=>{this['fire']('apply',{'imageSrc':_0x23051a['detail']['cdnUrl']});}),_0x4f7e95['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class E extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0x215317(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x5761ab,_0x262941,_0x4935b6){super(),this['_editor']=_0x5761ab,this['_dialog']=_0x262941,this['_imageElement']=_0x4935b6,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 _0x20f401=this['_imageElement'],_0x4498e2=_0x20f401['getAttribute']('uploadcareImageId'),_0x2b02d4=_0x20f401['getAttribute']('src');if(_0x4498e2)await this['_loadImageInfo'](_0x4498e2,_0x2b02d4);else{if(this['_imageCache']['has'](_0x2b02d4)){const _0x792c98=this['_imageCache']['get'](_0x2b02d4);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x792c98['url'],this['imageDimension']=_0x792c98['dimension'],this['imageId']=_0x792c98['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x3fa884}=this['_editor'],t=_0x3fa884['t'],_0x348cfa=new X(_0x3fa884,this['imageStatus'],this['_attributes']);_0x348cfa['bind']('status')['to'](this,'imageStatus'),_0x348cfa['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x348cfa['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x348cfa['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x348cfa,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x235e44,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x348cfa,'position':_0x1700c5['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x348cfa['focus']();},'onHide':()=>{_0x348cfa['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x1e57e6=>!S(_0x1e57e6,_0x348cfa['element'])}});}['_loadImageInfo'](_0x303b3e,_0x41ba11){return j['getInfo'](_0x303b3e,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey')})['then'](_0x5e7766=>{const {width:_0x5ec255,height:_0x326ff8}=_0x5e7766['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x41ba11,this['imageDimension']={'width':_0x5ec255,'height':_0x326ff8},this['imageId']=_0x303b3e;})['catch'](_0x4100a8=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x4100a8['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x5756bb,_0x476e1a){return this['_getImageAsFile'](_0x5756bb)['then'](_0x5ebd94=>j['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'signal':_0x476e1a['signal'],'file':_0x5ebd94,'onProgress':_0x2e90a9=>{_0x2e90a9&&_0x2e90a9['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x2e90a9['value']));}}))['then'](_0x471910=>{const {width:_0x5d67de,height:_0x184075}=_0x471910['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x471910['cdnUrl'],this['imageDimension']={'width':_0x5d67de,'height':_0x184075},this['imageId']=_0x471910['uuid'],this['imageUploadProgress']=null;const _0x382d04=_0x5756bb['getAttribute']('src');this['_imageCache']['set'](_0x382d04,{'id':_0x471910['uuid'],'url':_0x471910['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x44c38a=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x44c38a['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x1973d9,_0xa59312){_0x1973d9['on']('apply',(_0x271afb,_0x4559d7)=>{this['_replaceImage'](_0xa59312,_0x4559d7['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x1973d9['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x1973d9['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x5b247c,_0x3e6df3,_0x44e2be){const _0x458add=this['_editor'],{width:_0x2ed037,height:_0x50f6e6}=C(_0x3e6df3,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x1c99c8,imageSources:_0x572761}=k(_0x3e6df3,_0x2ed037);_0x458add['model']['change'](_0x59cd19=>{if('$graveyard'===_0x5b247c['root']['rootName']){_0x458add['execute']('insertImage',{'imageType':_0x5b247c['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x5b247c['getAttributes']()),'uploadcareImageId':_0x44e2be,'src':_0x1c99c8,'sources':_0x572761,'width':_0x2ed037,'height':_0x50f6e6}});const _0x51c1c1=_0x5b247c['getChildren']();_0x5b247c=_0x458add['model']['document']['selection']['getSelectedElement']();for(const _0x7ebefc of _0x51c1c1)_0x59cd19['append'](_0x59cd19['cloneElement'](_0x7ebefc),_0x5b247c);}else _0x59cd19['setSelection'](_0x5b247c,'on'),_0x458add['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x5b247c['getAttributes']()),'uploadcareImageId':_0x44e2be,'src':_0x1c99c8,'sources':_0x572761,'width':_0x2ed037,'height':_0x50f6e6},_0x5b247c);_0x59cd19['setSelection'](_0x5b247c,'on');});}async['_getImageAsFile'](_0x264914){const _0x5ae991=_0x1ad804['window'],_0x503012=_0x1ad804['document']['location']['href'],_0x3a1f7f=new _0x5ae991['URL'](_0x264914['getAttribute']('src'),_0x503012);if('data:'===_0x3a1f7f['protocol']){const _0x4f8048=_0x3a1f7f['href']['split'](','),_0x5827d7=_0x4f8048[0x0]['match'](/:(.*?);/)[0x1],_0x1c42c0=_0x5827d7['split']('/')[0x1],_0x12e4a7=_0x5ae991['atob'](_0x4f8048[_0x4f8048['length']-0x1]);let _0x4dd315=_0x12e4a7['length'];const _0x430e70=new _0x5ae991['Uint8Array'](_0x4dd315);for(;_0x4dd315--;)_0x430e70[_0x4dd315]=_0x12e4a7['charCodeAt'](_0x4dd315);return new _0x5ae991['File']([_0x430e70],'image.'+_0x1c42c0,{'type':_0x5827d7});}const _0x14d7d0=_0x3a1f7f['href']['split']('/'),_0x5da22c=_0x14d7d0[_0x14d7d0['length']-0x1],_0x4b802f=_0x5da22c['split']('.')[0x1];return _0x5ae991['fetch'](_0x3a1f7f['href'])['then'](_0x56c645=>_0x56c645['clone']()['blob']())['then'](_0x35a4a6=>new _0x5ae991['File']([_0x35a4a6],_0x5da22c,{'type':'image/'+_0x4b802f}));}}class O extends _0x507acf{['imageEditController'];static get['requires'](){return[_0x32b3cd];}['_isEditable'];constructor(_0x39439d){super(_0x39439d),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x118a23){const _0x175916=G(_0x118a23);return _0x1e96fa=>!(!_0x1e96fa||!_0x1e96fa['is']('element','imageBlock')&&!_0x1e96fa['is']('element','imageInline'))&&(!!_0x1e96fa['hasAttribute']('uploadcareImageId')||!!_0x1e96fa['hasAttribute']('src')&&_0x175916(_0x1e96fa['getAttribute']('src')));}(_0x39439d['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x681554=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x681554);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x270c71=this['editor']['model']['document']['selection']['getSelectedElement']();_0x270c71&&(_0x270c71['is']('element','imageBlock')||_0x270c71['is']('element','imageInline'))&&(this['imageEditController']=new E(this['editor'],this['editor']['plugins']['get'](_0x32b3cd),_0x270c71),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class R extends _0x507acf{['refresh'](){const _0x3319fa=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x3319fa&&(_0x3319fa['is']('element','imageBlock')||_0x3319fa['is']('element','imageInline')));}['execute'](_0x5b537f){const _0x4bb8a5=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x13236c=>{_0x13236c['setAttributes'](_0x5b537f,_0x4bb8a5),_0x13236c['removeAttribute']('srcset',_0x4bb8a5),_0x13236c['removeAttribute']('sizes',_0x4bb8a5);});}}class m extends _0x24ff8b{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[o,_0x131da7,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x569744}=this;_0x569744['commands']['add']('uploadcareImageEdit',new O(_0x569744)),_0x569744['commands']['add']('uploadcareImageReplace',new R(_0x569744));}}class g extends _0x24ff8b{['_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 _0x183114=this['editor'];_0x183114['ui']['componentFactory']['add']('uploadcareImageEdit',_0x54e304=>{const _0x20de1e=_0x183114['commands']['get']('uploadcareImageEdit'),_0x30bdf8=new _0x2f9902(_0x54e304),t=_0x54e304['t'];return _0x30bdf8['set']({'icon':_0x235e44,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x30bdf8['bind']('isEnabled')['to'](_0x20de1e),_0x30bdf8['bind']('isOn')['to'](_0x20de1e,'isActive'),this['listenTo'](_0x30bdf8,'execute',()=>{_0x183114['execute']('uploadcareImageEdit'),_0x183114['editing']['view']['focus']();}),_0x30bdf8;}),this['_initConfig']();}['_initConfig'](){const _0x37558d=_0x393c03(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x37558d),this['listenTo'](this['editor'],'destroy',()=>{_0x37558d['remove']();});}}class et extends _0x24ff8b{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": "46.0.0-alpha.
|
|
3
|
+
"version": "46.0.0-alpha.6",
|
|
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": "46.0.0-alpha.
|
|
27
|
-
"@ckeditor/ckeditor5-icons": "46.0.0-alpha.
|
|
28
|
-
"@ckeditor/ckeditor5-image": "46.0.0-alpha.
|
|
29
|
-
"@ckeditor/ckeditor5-theme-lark": "46.0.0-alpha.
|
|
30
|
-
"@ckeditor/ckeditor5-ui": "46.0.0-alpha.
|
|
31
|
-
"@ckeditor/ckeditor5-upload": "46.0.0-alpha.
|
|
32
|
-
"@ckeditor/ckeditor5-utils": "46.0.0-alpha.
|
|
33
|
-
"ckeditor5": "46.0.0-alpha.
|
|
26
|
+
"@ckeditor/ckeditor5-core": "46.0.0-alpha.6",
|
|
27
|
+
"@ckeditor/ckeditor5-icons": "46.0.0-alpha.6",
|
|
28
|
+
"@ckeditor/ckeditor5-image": "46.0.0-alpha.6",
|
|
29
|
+
"@ckeditor/ckeditor5-theme-lark": "46.0.0-alpha.6",
|
|
30
|
+
"@ckeditor/ckeditor5-ui": "46.0.0-alpha.6",
|
|
31
|
+
"@ckeditor/ckeditor5-upload": "46.0.0-alpha.6",
|
|
32
|
+
"@ckeditor/ckeditor5-utils": "46.0.0-alpha.6",
|
|
33
|
+
"ckeditor5": "46.0.0-alpha.6",
|
|
34
34
|
"@uploadcare/file-uploader": "1.16.3-alpha.0",
|
|
35
35
|
"@uploadcare/upload-client": "6.14.3"
|
|
36
36
|
},
|
|
@@ -20,5 +20,5 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
24
|
-
|
|
23
|
+
const _0x3a0655=_0xfdb2;(function(_0x5246b0,_0x27d4d5){const _0x19fd1d=_0xfdb2,_0x21db09=_0x5246b0();while(!![]){try{const _0x13fff7=-parseInt(_0x19fd1d(0xe6))/0x1*(-parseInt(_0x19fd1d(0xbd))/0x2)+parseInt(_0x19fd1d(0xb5))/0x3*(-parseInt(_0x19fd1d(0xa4))/0x4)+-parseInt(_0x19fd1d(0xc8))/0x5+-parseInt(_0x19fd1d(0xbf))/0x6+-parseInt(_0x19fd1d(0xc2))/0x7*(parseInt(_0x19fd1d(0xb6))/0x8)+-parseInt(_0x19fd1d(0xa8))/0x9+parseInt(_0x19fd1d(0xb7))/0xa;if(_0x13fff7===_0x27d4d5)break;else _0x21db09['push'](_0x21db09['shift']());}catch(_0x47c7ea){_0x21db09['push'](_0x21db09['shift']());}}}(_0x1a70,0x5da05));import{IconUploadcareImageUpload as _0x166599}from'ckeditor5/src/icons.js';import{ObservableMixin as _0x294f7b}from'ckeditor5/src/utils.js';function _0xfdb2(_0x4e971a,_0x1e2552){const _0x1a70d4=_0x1a70();return _0xfdb2=function(_0xfdb26,_0x5ed2c8){_0xfdb26=_0xfdb26-0x9e;let _0x362b24=_0x1a70d4[_0xfdb26];return _0x362b24;},_0xfdb2(_0x4e971a,_0x1e2552);}import{Dialog as _0x1eeec0,DialogViewPosition as _0x13cd06}from'ckeditor5/src/ui.js';import{UploadcareFormView as _0x3cf46e}from'./uploadcareformview.js';import{UploadcareSource as _0x4ea7fd}from'../uploadcareconfig.js';import{getTranslation as _0x180057}from'../utils/common-translations.js';import{getImageUrls as _0x14641c,getImageDimension as _0x4028d0}from'../utils/editingutils.js';import{isAncestor as _0xc1676d}from'../utils/isancestor.js';export class UploadcareController extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x294f7b(){[_0x3a0655(0x9e)];[_0x3a0655(0xb9)];[_0x3a0655(0xb3)];[_0x3a0655(0xe2)];[_0x3a0655(0xd9)]=null;[_0x3a0655(0xbb)]=null;constructor(_0x577d21,_0x3b529a,_0x1c1384){const _0x5c5145=_0x3a0655;super(),this[_0x5c5145(0x9e)]=_0x577d21,this[_0x5c5145(0xb3)]=_0x3b529a,this[_0x5c5145(0xb9)]=_0x577d21[_0x5c5145(0xb0)][_0x5c5145(0xab)](_0x1eeec0),this[_0x5c5145(0xe2)]=_0x3b529a[_0x5c5145(0xc1)][_0x5c5145(0xd2)](),this[_0x5c5145(0xd9)]=_0x1c1384,this[_0x5c5145(0xb3)][_0x5c5145(0xd4)][_0x5c5145(0xa0)](_0x5c5145(0xca),this[_0x5c5145(0xd9)]),this[_0x5c5145(0xaa)](),this[_0x5c5145(0xaf)](),this[_0x5c5145(0xe2)][_0x5c5145(0xc3)]();}[_0x3a0655(0xdc)](){const _0x26e03b=_0x3a0655;this[_0x26e03b(0xbb)]&&(this[_0x26e03b(0xbb)][_0x26e03b(0xdc)](),this[_0x26e03b(0xbb)]=null),this[_0x26e03b(0xe2)]&&this[_0x26e03b(0xe2)][_0x26e03b(0xa1)](),this[_0x26e03b(0xd7)](),this[_0x26e03b(0xdd)]();}[_0x3a0655(0xaa)](){const _0x5478e8=_0x3a0655,{locale:_0x9ce3c9,model:_0x209b4c}=this[_0x5478e8(0x9e)],_0x217bac=_0x209b4c[_0x5478e8(0xe3)][_0x5478e8(0xcc)][_0x5478e8(0xe4)](),_0x3982e0=_0x217bac&&(_0x217bac['is'](_0x5478e8(0xa2),_0x5478e8(0xa3))||_0x217bac['is'](_0x5478e8(0xa2),_0x5478e8(0xa6)));this[_0x5478e8(0xbb)]=new _0x3cf46e(_0x9ce3c9,this[_0x5478e8(0xb3)][_0x5478e8(0xb1)]),this[_0x5478e8(0xb9)][_0x5478e8(0xc7)]({'id':_0x5478e8(0xce),'icon':_0x166599,'title':_0x180057(_0x9ce3c9,this[_0x5478e8(0xd9)],_0x3982e0?_0x5478e8(0xba):_0x5478e8(0xae))[_0x5478e8(0xcf)],'content':this[_0x5478e8(0xbb)],'position':_0x13cd06[_0x5478e8(0xe7)],'isModal':!0x0,'onShow':()=>{const _0x2f45d2=_0x5478e8;this[_0x2f45d2(0xbb)][_0x2f45d2(0xbe)]();},'onHide':()=>{const _0x314bdf=_0x5478e8;this[_0x314bdf(0xe2)][_0x314bdf(0xd5)](),this[_0x314bdf(0x9e)][_0x314bdf(0xda)][_0x314bdf(0xc9)][_0x314bdf(0xbe)](),this[_0x314bdf(0xdc)]();},'keystrokeHandlerOptions':{'filter':_0x48488d=>!_0xc1676d(_0x48488d,this[_0x5478e8(0xbb)][_0x5478e8(0xa2)])}});}[_0x3a0655(0xaf)](){const _0x33f796=_0x3a0655;this[_0x33f796(0xb3)][_0x33f796(0xc1)][_0x33f796(0xe0)](_0x33f796(0xd0),()=>{const _0x196d49=_0x33f796,{allEntries:_0x10604d}=this[_0x196d49(0xe2)][_0x196d49(0xc6)]();this[_0x196d49(0x9e)][_0x196d49(0xcd)][_0x196d49(0x9f)](_0x1a0604=>{const _0x22dfc8=_0x196d49,_0x3223eb=_0x10604d[_0x22dfc8(0xd1)];for(const _0x5ebe4c of _0x10604d){const _0x3de14c=_0x5ebe4c===_0x10604d[_0x3223eb-0x1],{cdnUrl:_0x422760,fileInfo:_0x1782a5}=_0x5ebe4c;if(!_0x422760||!_0x1782a5)continue;const {width:_0x4fab46,height:_0x778d32}=_0x1782a5[_0x22dfc8(0xd8)],_0x11be0e=_0x4028d0(_0x422760,_0x4fab46,_0x778d32),_0x56c22e=_0x14641c(_0x422760,_0x11be0e[_0x22dfc8(0xad)]),_0x5a070a={'id':_0x1782a5[_0x22dfc8(0xa9)],'type':_0x22dfc8(0xe5),'attributes':{'imageDimension':_0x11be0e,..._0x56c22e}};this[_0x22dfc8(0xd3)](_0x5a070a,_0x3de14c,_0x1a0604);}}),this[_0x196d49(0xb9)][_0x196d49(0xbc)]();}),this[_0x33f796(0xb3)][_0x33f796(0xc1)][_0x33f796(0xe0)](_0x33f796(0x9f),_0x5c9583=>{const _0xfa8130=_0x33f796;_0xfa8130(0xc0)===_0x5c9583[_0xfa8130(0xa5)][_0xfa8130(0xa7)]&&!_0x5c9583[_0xfa8130(0xa5)][_0xfa8130(0xb4)][_0xfa8130(0xd1)]&&this[_0xfa8130(0xb9)][_0xfa8130(0xcb)]&&(this[_0xfa8130(0xd9)]===_0x4ea7fd[_0xfa8130(0xb2)]?this[_0xfa8130(0xe2)][_0xfa8130(0xc5)](_0x4ea7fd[_0xfa8130(0xb2)]):this[_0xfa8130(0xe2)][_0xfa8130(0xc3)]());});}[_0x3a0655(0xd3)](_0x34bc26,_0x2132e6,_0x3e4bb7){const _0x192b9d=_0x3a0655,_0x115aa0=this[_0x192b9d(0x9e)][_0x192b9d(0xcd)][_0x192b9d(0xe3)][_0x192b9d(0xcc)],_0x4fa57e=_0x115aa0[_0x192b9d(0xe4)](),_0x3eb6ee=!(!_0x4fa57e||!_0x4fa57e['is'](_0x192b9d(0xa2),_0x192b9d(0xa6)));_0x3e4bb7[_0x192b9d(0xde)](_0x192b9d(0xd6)),this[_0x192b9d(0xdf)](_0x34bc26,_0x3eb6ee),_0x2132e6||_0x3e4bb7[_0x192b9d(0xac)](_0x115aa0[_0x192b9d(0xe1)]());}[_0x3a0655(0xdf)](_0x54f798,_0x7a7bca){const _0x3542dc=_0x3a0655,_0x53bbbb=this[_0x3542dc(0x9e)],{imageDimension:_0x1223aa,imageFallbackUrl:_0x7adff9,imageSources:_0x3fc72a}=_0x54f798[_0x3542dc(0xc4)];_0x53bbbb[_0x3542dc(0xdb)](_0x3542dc(0xb8),{'imageType':_0x7a7bca?_0x3542dc(0xa6):null,'source':{'uploadcareImageId':_0x54f798['id'],'src':_0x7adff9,'sources':_0x3fc72a,..._0x1223aa}});}}function _0x1a70(){const _0x26266d=['3244CMYXUn','detail','imageInline','status','4109769oUcWHn','uuid','_initDialog','get','setSelection','width','Insert','_initListeners','plugins','ucContextId','Local','_editing','allEntries','1167mAturm','8rPUctZ','20120920OXkBET','insertImage','_dialog','Replace','_formView','hide','22218xJArGf','focus','1136292yiYccU','idle','ctxElement','3585974kFqLsw','initFlow','attributes','setCurrentActivity','getOutputCollectionState','show','3051420QOPyKs','view','source-list','isOpen','selection','model','uploadCare','text','done-click','length','getAPI','_insertAsset','configElement','removeAllFiles','linkHref','stopListening','imageInfo','_type','editing','execute','destroy','stopDelegating','removeSelectionAttribute','_insertImage','addEventListener','getLastPosition','_api','document','getSelectedElement','image','41ZkLetr','EDITOR_TOP_CENTER','_editor','change','setAttribute','doneFlow','element','imageBlock'];_0x1a70=function(){return _0x26266d;};return _0x1a70();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
function _0x1c1f(_0x36f551,_0x55a548){var _0x28922e=_0x2892();return _0x1c1f=function(_0x1c1f8c,_0x50bbd7){_0x1c1f8c=_0x1c1f8c-0xf3;var _0x123467=_0x28922e[_0x1c1f8c];return _0x123467;},_0x1c1f(_0x36f551,_0x55a548);}var _0x278222=_0x1c1f;(function(_0x1aeb50,_0x54b4f8){var _0x123ec7=_0x1c1f,_0x4692cc=_0x1aeb50();while(!![]){try{var _0x2ea934=-parseInt(_0x123ec7(0xfd))/0x1+parseInt(_0x123ec7(0x100))/0x2*(parseInt(_0x123ec7(0xfa))/0x3)+-parseInt(_0x123ec7(0xf6))/0x4*(-parseInt(_0x123ec7(0x104))/0x5)+parseInt(_0x123ec7(0xf9))/0x6*(-parseInt(_0x123ec7(0xfb))/0x7)+parseInt(_0x123ec7(0x105))/0x8+parseInt(_0x123ec7(0xf4))/0x9*(-parseInt(_0x123ec7(0xff))/0xa)+parseInt(_0x123ec7(0x102))/0xb;if(_0x2ea934===_0x54b4f8)break;else _0x4692cc['push'](_0x4692cc['shift']());}catch(_0x50b6e0){_0x4692cc['push'](_0x4692cc['shift']());}}}(_0x2892,0xe92d7));import{DialogFocusManagerView as _0xa43a0b}from'../utils/dialogfocusmanagerview.js';function _0x2892(){var _0x1b197e=['21778RbEBQa','ck-reset_all-excluded','4459136JroWzk','uc-light','41165wUroOm','8622872cxZXPo','getFocusableElement','uc-file-uploader-inline','ck-uploadcare-theme','element','18RxBhjg','div','12rbbKlB','setTemplate','uploader-','12cNJrXN','297MEtYHL','1697269ZSHqpf','focus','72164fndHSg','ck-uploadcare-form','5368760Rmdqqb'];_0x2892=function(){return _0x1b197e;};return _0x2892();}import'../../theme/uploadcare-form.css';export class UploadcareFormView extends _0xa43a0b{constructor(_0x49c6f3,_0x3e6d95){var _0x288fb4=_0x1c1f;super(_0x49c6f3),this[_0x288fb4(0xf7)]({'tag':_0x288fb4(0xf5),'attributes':{'class':['ck',_0x288fb4(0x101),_0x288fb4(0xfe)],'tabindex':'-1'},'children':[{'tag':_0x288fb4(0x107),'attributes':{'class':[_0x288fb4(0x103),_0x288fb4(0x108)],'ctx-name':_0x288fb4(0xf8)+_0x3e6d95}},this[_0x288fb4(0x106)]()]});}[_0x278222(0xfc)](){var _0x4f4fbe=_0x278222;this[_0x4f4fbe(0xf3)][_0x4f4fbe(0xfc)]();}}
|
package/src/uploadcareediting.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function _0x5707(){const _0x1bc5fa=['downcast','remove','body','3635376IUEBIJ','uc-config','config','map','15081693jNXaqW','selection','PictureEditing','for','3ztsodG','querySelector','add','fromCharCode','_initImageProcessingIndicator','1263044nVbJHZ','locale','insertImage','uploadcare.pubkey','imageInline','get','execute','_configElement','uploadcareImageId','5OCzCkN','elementToAttribute','conversion','join','listenTo','contentLanguage','_initSchema','data-uc-image-id','closeMax','isRegistered','href','model','ucContextId','cleanupImage','isOfficialPlugin','uploadcare','_initConfig','view','#uc-icon-arrow-down','pluginName','14147efkeXR','requires','true','getSelectedElement','getAttribute','ctxElement','uc-upload-ctx-provider','configElement','_initCtx','_ctxElement','once','403504ECsMEo','uploadcare.uploader','destroy','extend','\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','1551212ndquPh','commands','_initConversion','render','removeAttribute','init','UploadcareEditing','3430gHBOKq','1842HIsyni','document','editor','uploadcareImageReplace','upcast','afterInit','schema','replaceImageSource','imageBlock','input[uploadcare-file-input]','iconHrefResolver','appendChild','editing','isPremiumPlugin','attributeToAttribute','3429PNtlEu','uploader-'];_0x5707=function(){return _0x1bc5fa;};return _0x5707();}const _0x1e45ea=_0xe84f;(function(_0x44bc20,_0x229cb8){const _0x4a8b3b=_0xe84f,_0x14d493=_0x44bc20();while(!![]){try{const _0x92e848=-parseInt(_0x4a8b3b(0x1ec))/0x1+-parseInt(_0x4a8b3b(0x1f1))/0x2*(parseInt(_0x4a8b3b(0x1bf))/0x3)+-parseInt(_0x4a8b3b(0x1c4))/0x4*(-parseInt(_0x4a8b3b(0x1cd))/0x5)+parseInt(_0x4a8b3b(0x1f9))/0x6*(-parseInt(_0x4a8b3b(0x1e1))/0x7)+parseInt(_0x4a8b3b(0x20d))/0x8+-parseInt(_0x4a8b3b(0x208))/0x9*(-parseInt(_0x4a8b3b(0x1f8))/0xa)+parseInt(_0x4a8b3b(0x211))/0xb;if(_0x92e848===_0x229cb8)break;else _0x14d493['push'](_0x14d493['shift']());}catch(_0x322c4b){_0x14d493['push'](_0x14d493['shift']());}}}(_0x5707,0x73534));import{Plugin as _0x434317}from'ckeditor5/src/core.js';function _0xe84f(_0x51a019,_0x54dfd0){const _0x57074e=_0x5707();return _0xe84f=function(_0xe84f27,_0x29ab82){_0xe84f27=_0xe84f27-0x1bc;let _0x7dc3e3=_0x57074e[_0xe84f27];return _0x7dc3e3;},_0xe84f(_0x51a019,_0x54dfd0);}import{Dialog as _0x4180fc}from'ckeditor5/src/ui.js';import{createElement as _0x335620,global as _0x163240,uid as _0x48baa2}from'ckeditor5/src/utils.js';import{UploadcareCommand as _0x3d5752}from'./uploadcarecommand.js';import{UploadcareUploadAdapter as _0x3bb69f}from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0x471696}from'./utils/editingutils.js';export class UploadcareEditing extends _0x434317{[_0x1e45ea(0x1cb)]=null;[_0x1e45ea(0x1ea)]=null;static get[_0x1e45ea(0x1e0)](){const _0x1d1298=_0x1e45ea;return _0x1d1298(0x1f7);}static get[_0x1e45ea(0x1e2)](){const _0x4a2dfa=_0x1e45ea;return[_0x4a2dfa(0x1bd),_0x3bb69f,_0x4180fc];}static get[_0x1e45ea(0x1db)](){return!0x0;}static get[_0x1e45ea(0x206)](){return!0x0;}[_0x1e45ea(0x1d9)];get[_0x1e45ea(0x1e8)](){const _0x293062=_0x1e45ea;return this[_0x293062(0x1cb)];}get[_0x1e45ea(0x1e6)](){const _0x5b24f9=_0x1e45ea;return this[_0x5b24f9(0x1ea)];}constructor(_0x5a81ed){const _0x494a4f=_0x1e45ea;super(_0x5a81ed),this[_0x494a4f(0x1d9)]=_0x48baa2();}[_0x1e45ea(0x1f6)](){const _0x3b0845=_0x1e45ea,_0x4fff7b=this[_0x3b0845(0x1fb)];_0x4fff7b[_0x3b0845(0x1f2)][_0x3b0845(0x1c1)](_0x3b0845(0x1dc),new _0x3d5752(_0x4fff7b));}[_0x1e45ea(0x1fe)](){const _0x4efd66=_0x1e45ea;this[_0x4efd66(0x1d3)](),this[_0x4efd66(0x1f3)](),this[_0x4efd66(0x1dd)](),this[_0x4efd66(0x1e9)](),this[_0x4efd66(0x1c3)](),this[_0x4efd66(0x1d1)](this[_0x4efd66(0x1fb)],_0x4efd66(0x1ee),()=>{const _0xe35135=_0x4efd66;this[_0xe35135(0x1cb)]&&(this[_0xe35135(0x1cb)][_0xe35135(0x20b)](),this[_0xe35135(0x1cb)]=null),this[_0xe35135(0x1ea)]&&(this[_0xe35135(0x1ea)][_0xe35135(0x20b)](),this[_0xe35135(0x1ea)]=null);const _0x5247c6=_0x163240[_0xe35135(0x1fa)][_0xe35135(0x1c0)](_0xe35135(0x202));_0x5247c6&&_0x5247c6[_0xe35135(0x20b)]();}),async function(_0x45df4d){const _0x304323=_0x4e912f([0x56,0x4d,0x63,0x77,0x7a,0x42,0x79,0x6b,0x68,0x39,0x38,0x48,0x50,0x69,0x70,0x49,0x4a,0x36,0x72,0x71,0x31,0x57,0x67,0x33,0x65,0x76,0x78,0x41,0x37,0x59,0x6f,0x4c,0x74,0x75,0x58,0x34,0x4f,0x45,0x6d,0x4b,0x4e,0x47,0x30,0x64,0x53,0x54,0x6e,0x43,0x5a,0x66,0x73,0x35,0x52,0x6c,0x32,0x51,0x44,0x46,0x6a,0x55,0x61,0x62]),_0x44761b=0xc92130f,_0x531a5d=0xc957fbf^_0x44761b,_0x244322=window[_0x4e912f([0x44,0x61,0x74,0x65])][_0x4e912f([0x6e,0x6f,0x77])](),_0x289f10=_0x45df4d[_0x4e912f([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x366ce3=new window[(_0x4e912f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x412f4b=>{_0x289f10[_0x4e912f([0x6f,0x6e,0x63,0x65])](_0x4e912f([0x72,0x65,0x61,0x64,0x79]),_0x412f4b);}),_0x42144f={[_0x4e912f([0x6b,0x74,0x79])]:_0x4e912f([0x45,0x43]),[_0x4e912f([0x75,0x73,0x65])]:_0x4e912f([0x73,0x69,0x67]),[_0x4e912f([0x63,0x72,0x76])]:_0x4e912f([0x50,0x2d,0x32,0x35,0x36]),[_0x4e912f([0x78])]:_0x4e912f([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]),[_0x4e912f([0x79])]:_0x4e912f([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]),[_0x4e912f([0x61,0x6c,0x67])]:_0x4e912f([0x45,0x53,0x32,0x35,0x36])},_0x23d514=_0x289f10[_0x4e912f([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x4e912f([0x67,0x65,0x74])](_0x4e912f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x533bcd(){let _0x57901e,_0x3962c3=null,_0x59f0a9=null;try{if(_0x23d514==_0x4e912f([0x47,0x50,0x4c]))return _0x4e912f([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x57901e=_0x18ef99(),!_0x57901e)return _0x4e912f([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x57901e[_0x4e912f([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x59f0a9=_0x3a8405(_0x57901e[_0x4e912f([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x57901e[_0x4e912f([0x6a,0x74,0x69])])),await _0x29aa6a()?_0x632d47()?_0x396364()?_0x4e912f([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x5d45e4()?(_0x57901e[_0x4e912f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x4e912f([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x3962c3=_0x44b6b8(_0x4e912f([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x57901e[_0x4e912f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x4e912f([0x74,0x72,0x69,0x61,0x6c])&&(_0x3962c3=_0x44b6b8(_0x4e912f([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x5bd35c()):_0x4e912f([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x4e912f([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x4e912f([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x4e912f([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x396364(){const _0x41efe5=[_0x4e912f([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x4e912f([0x74,0x72,0x69,0x61,0x6c])][_0x4e912f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x57901e[_0x4e912f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x244322/0x3e8:0xe10*_0x531a5d;return _0x57901e[_0x4e912f([0x65,0x78,0x70])]<_0x41efe5;}function _0x632d47(){const _0x52326f=_0x57901e[_0x4e912f([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x52326f&&(!!_0x52326f[_0x4e912f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4e912f([0x2a]))||!!_0x52326f[_0x4e912f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4e912f([0x55,0x50,0x4c,0x43])));}function _0x5d45e4(){const _0x41eb99=_0xe84f,_0x56aa59=_0x57901e[_0x4e912f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x56aa59||0x0==_0x56aa59[_0x4e912f([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x351ed4}=new URL(window[_0x4e912f([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x41eb99(0x1d7)]);if(_0x56aa59[_0x4e912f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x351ed4))return!0x0;const _0x5dda4a=_0x351ed4[_0x4e912f([0x73,0x70,0x6c,0x69,0x74])](_0x4e912f([0x2e]));return _0x56aa59[_0x4e912f([0x66,0x69,0x6c,0x74,0x65,0x72])](_0xe4f680=>_0xe4f680[_0x4e912f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4e912f([0x2a])))[_0x4e912f([0x6d,0x61,0x70])](_0x431eaf=>_0x431eaf[_0x4e912f([0x73,0x70,0x6c,0x69,0x74])](_0x4e912f([0x2e])))[_0x4e912f([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x472678=>_0x472678[_0x4e912f([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x5dda4a[_0x4e912f([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x4e912f([0x6d,0x61,0x70])](_0x271d7e=>Array(_0x5dda4a[_0x4e912f([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x271d7e[_0x4e912f([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x4e912f([0x66,0x69,0x6c,0x6c])](_0x271d7e[0x0]===_0x4e912f([0x2a])?_0x4e912f([0x2a]):'')[_0x4e912f([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x271d7e))[_0x4e912f([0x73,0x6f,0x6d,0x65])](_0x27e314=>_0x5dda4a[_0x4e912f([0x65,0x76,0x65,0x72,0x79])]((_0x1cbb14,_0x34de81)=>_0x27e314[_0x34de81]===_0x1cbb14||_0x27e314[_0x34de81]===_0x4e912f([0x2a])));}function _0x5bd35c(){return _0x3962c3&&_0x59f0a9?new window[(_0x4e912f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x14c569,_0x114391)=>{_0x3962c3[_0x4e912f([0x74,0x68,0x65,0x6e])](_0x14c569,_0x114391),_0x59f0a9[_0x4e912f([0x74,0x68,0x65,0x6e])](_0x37b383=>{_0x37b383!=_0x4e912f([0x56,0x61,0x6c,0x69,0x64])&&_0x14c569(_0x37b383);},_0x114391);}):_0x3962c3||_0x59f0a9||_0x4e912f([0x56,0x61,0x6c,0x69,0x64]);}}function _0x3a8405(_0x4b2fa7,_0x520c1e){return new window[(_0x4e912f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x67e2df=>{if(_0x42102b())return _0x67e2df(_0x4e912f([0x56,0x61,0x6c,0x69,0x64]));_0x4ba813(),_0x289f10[_0x4e912f([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x4e912f([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x4642f2=!0x1;const _0x59e19e=_0x48baa2();function _0x3a1dc2(_0xf443b4){return!!_0xf443b4&&(typeof _0xf443b4===_0x4e912f([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0xf443b4===_0x4e912f([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0xf443b4[_0x4e912f([0x74,0x68,0x65,0x6e])]===_0x4e912f([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0xf443b4[_0x4e912f([0x63,0x61,0x74,0x63,0x68])]===_0x4e912f([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x2e0491(_0x1ae912){_0x10b1be(_0x1ae912)[_0x4e912f([0x74,0x68,0x65,0x6e])](_0x5eed73=>{if(!_0x5eed73||_0x5eed73[_0x4e912f([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x4e912f([0x6f,0x6b]))return _0x4e912f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x22e58b(_0x1435a0(_0x59e19e+_0x520c1e))!=_0x5eed73[_0x4e912f([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x4e912f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x4e912f([0x56,0x61,0x6c,0x69,0x64]);})[_0x4e912f([0x74,0x68,0x65,0x6e])](_0x4046f4=>(_0x377844(),_0x4046f4),()=>{const _0x363a38=_0x595b98();return null==_0x363a38?(_0x377844(),_0x4e912f([0x56,0x61,0x6c,0x69,0x64])):_0x4e912f(_0x244322-_0x363a38>(0x289e970f^_0x44761b)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x4e912f([0x74,0x68,0x65,0x6e])](_0x67e2df)[_0x4e912f([0x63,0x61,0x74,0x63,0x68])](()=>{_0x67e2df(_0x4e912f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x2a92d6=0xca4fd8f^_0x44761b;function _0x377844(){const _0x16fd78=_0x4e912f([0x6c,0x6c,0x63,0x74,0x2d])+_0x22e58b(_0x1435a0(_0x4b2fa7)),_0x34605b=_0x1a5cd0(_0x22e58b(window[_0x4e912f([0x4d,0x61,0x74,0x68])][_0x4e912f([0x63,0x65,0x69,0x6c])](_0x244322/_0x2a92d6)));window[_0x4e912f([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4e912f([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x16fd78,_0x34605b);}function _0x595b98(){const _0x1f577d=_0x4e912f([0x6c,0x6c,0x63,0x74,0x2d])+_0x22e58b(_0x1435a0(_0x4b2fa7)),_0x2ba148=window[_0x4e912f([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4e912f([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1f577d);return _0x2ba148?window[_0x4e912f([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1a5cd0(_0x2ba148),0x10)*_0x2a92d6:null;}function _0x10b1be(_0x42cf65){return new window[(_0x4e912f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x19e3d9,_0x1514e5)=>{_0x42cf65[_0x4e912f([0x74,0x68,0x65,0x6e])](_0x19e3d9,_0x1514e5),window[_0x4e912f([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x1514e5,0xc93c7cf^_0x44761b);});}}_0x289f10[_0x4e912f([0x6f,0x6e])](_0x4e912f([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x151acb,_0x155593)=>{if(_0x155593[0x0]!=_0x4b2fa7)return _0x67e2df(_0x4e912f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x155593[0x1]={..._0x155593[0x1],[_0x4e912f([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x59e19e};},{[_0x4e912f([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4e912f([0x68,0x69,0x67,0x68])}),_0x289f10[_0x4e912f([0x6f,0x6e])](_0x4e912f([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x5e12c5=>{_0x3a1dc2(_0x5e12c5[_0x4e912f([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x4642f2=!0x0,_0x2e0491(_0x5e12c5[_0x4e912f([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x4e912f([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4e912f([0x6c,0x6f,0x77])}),_0x366ce3[_0x4e912f([0x74,0x68,0x65,0x6e])](()=>{_0x4642f2||_0x67e2df(_0x4e912f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x42102b(){return _0x289f10[_0x4e912f([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4e912f([0x76,0x69,0x65,0x77])][_0x4e912f([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x4e912f([0x61,0x75,0x74,0x6f]);}function _0x4ba813(){_0x289f10[_0x4e912f([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4e912f([0x76,0x69,0x65,0x77])][_0x4e912f([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x4e912f([0x61,0x75,0x74,0x6f]);}}function _0x44b6b8(_0x332097){const _0x4080d7=[new window[(_0x4e912f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x521896=>setTimeout(_0x521896,0xc9b2dc3^_0x44761b)),_0x366ce3[_0x4e912f([0x74,0x68,0x65,0x6e])](()=>new window[(_0x4e912f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x18dea8=>{let _0x192940=0x0;_0x289f10[_0x4e912f([0x6d,0x6f,0x64,0x65,0x6c])][_0x4e912f([0x6f,0x6e])](_0x4e912f([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x82ca92,_0x5b7821)=>{_0x5b7821[0x0][_0x4e912f([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x192940++,_0x192940==(0xc9212f7^_0x44761b)&&(_0x18dea8(),_0x82ca92[_0x4e912f([0x6f,0x66,0x66])]());});}))];return window[_0x4e912f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x4e912f([0x72,0x61,0x63,0x65])](_0x4080d7)[_0x4e912f([0x74,0x68,0x65,0x6e])](()=>_0x332097);}async function _0xce4975(){await _0x366ce3,_0x289f10[_0x4e912f([0x6d,0x6f,0x64,0x65,0x6c])][_0x4e912f([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x42a593,_0x289f10[_0x4e912f([0x6d,0x6f,0x64,0x65,0x6c])][_0x4e912f([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x42a593,_0x289f10[_0x4e912f([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x4e912f([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x4b1796(_0x51f768){const _0x5c5191=_0x4af0a7();_0x289f10[_0x5c5191]=_0x4e912f([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x51f768,_0x51f768!=_0x4e912f([0x56,0x61,0x6c,0x69,0x64])&&_0xce4975();}function _0x4af0a7(){const _0x29ec74=window[_0x4e912f([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x4e912f([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x4e912f([0x6e,0x6f,0x77])]())[_0x4e912f([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x4e912f([0x2e]),'');let _0x192b2e=_0x4e912f([0x56]);for(let _0x51a1c2=0x0;_0x51a1c2<_0x29ec74[_0x4e912f([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x51a1c2+=0x2){let _0x31aed1=window[_0x4e912f([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x29ec74[_0x4e912f([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x51a1c2,_0x51a1c2+0x2));_0x31aed1>=_0x304323[_0x4e912f([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x31aed1-=_0x304323[_0x4e912f([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x192b2e+=_0x304323[_0x31aed1];}return _0x192b2e;}function _0x18ef99(){const _0x2f21a0=_0x23d514[_0x4e912f([0x73,0x70,0x6c,0x69,0x74])](_0x4e912f([0x2e]));if(0x3!=_0x2f21a0[_0x4e912f([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x424713(_0x2f21a0[0x1]);function _0x424713(_0x46cfee){const _0x4336fa=_0x23fac4(_0x46cfee);return _0x4336fa&&_0x129ba4()?_0x4336fa:null;function _0x129ba4(){const _0x977265=_0x4336fa[_0x4e912f([0x6a,0x74,0x69])],_0x7078fb=window[_0x4e912f([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x977265[_0x4e912f([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x977265[_0x4e912f([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x15203d={..._0x4336fa,[_0x4e912f([0x6a,0x74,0x69])]:_0x977265[_0x4e912f([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x977265[_0x4e912f([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x15203d[_0x4e912f([0x76,0x63])],_0x1435a0(_0x15203d)==_0x7078fb;}}}async function _0x29aa6a(){let _0x344458=!0x0;try{const _0x49f008=_0x23d514[_0x4e912f([0x73,0x70,0x6c,0x69,0x74])](_0x4e912f([0x2e])),[_0x42f7c6,_0x122e42,_0x177c6f]=_0x49f008;return _0x49851a(_0x42f7c6),await _0x4f56aa(_0x42f7c6,_0x122e42,_0x177c6f),_0x344458;}catch{return!0x1;}function _0x49851a(_0x3ea745){const _0x55d522=_0x23fac4(_0x3ea745);_0x55d522&&_0x55d522[_0x4e912f([0x61,0x6c,0x67])]==_0x4e912f([0x45,0x53,0x32,0x35,0x36])||(_0x344458=!0x1);}async function _0x4f56aa(_0x287e7a,_0x1a10ff,_0x4ceeb9){const _0x1b3f63=window[_0x4e912f([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x4e912f([0x66,0x72,0x6f,0x6d])](_0x4f2f3d(_0x4ceeb9),_0x43dc8e=>_0x43dc8e[_0x4e912f([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x223703=new window[(_0x4e912f([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x4e912f([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x287e7a+_0x4e912f([0x2e])+_0x1a10ff),_0x1c8c1f=window[_0x4e912f([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x4e912f([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x1c8c1f)return;const _0x2d182f=await _0x1c8c1f[_0x4e912f([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x4e912f([0x6a,0x77,0x6b]),_0x42144f,{[_0x4e912f([0x6e,0x61,0x6d,0x65])]:_0x4e912f([0x45,0x43,0x44,0x53,0x41]),[_0x4e912f([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x4e912f([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x4e912f([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x1c8c1f[_0x4e912f([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x4e912f([0x6e,0x61,0x6d,0x65])]:_0x4e912f([0x45,0x43,0x44,0x53,0x41]),[_0x4e912f([0x68,0x61,0x73,0x68])]:{[_0x4e912f([0x6e,0x61,0x6d,0x65])]:_0x4e912f([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x2d182f,_0x1b3f63,_0x223703)||(_0x344458=!0x1);}}function _0x23fac4(_0x23bb9e){return _0x23bb9e[_0x4e912f([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x4e912f([0x65,0x79]))?JSON[_0x4e912f([0x70,0x61,0x72,0x73,0x65])](_0x4f2f3d(_0x23bb9e)):null;}function _0x4f2f3d(_0x4045b7){return window[_0x4e912f([0x61,0x74,0x6f,0x62])](_0x4045b7[_0x4e912f([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x4e912f([0x2b]))[_0x4e912f([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x4e912f([0x2f])));}function _0x1435a0(_0x4023bb){let _0xf2e2c=0x1505;function _0x1f78d4(_0x4d5462){for(let _0x30a32a=0x0;_0x30a32a<_0x4d5462[_0x4e912f([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x30a32a++){const _0x2d2c44=_0x4d5462[_0x4e912f([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x30a32a);_0xf2e2c=(_0xf2e2c<<0x5)+_0xf2e2c+_0x2d2c44,_0xf2e2c&=_0xf2e2c;}}function _0x32de8d(_0x1e1898){Array[_0x4e912f([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x1e1898)?_0x1e1898[_0x4e912f([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x32de8d):_0x1e1898&&typeof _0x1e1898==_0x4e912f([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x4e912f([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x1e1898)[_0x4e912f([0x73,0x6f,0x72,0x74])]()[_0x4e912f([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x346fe2,_0x3e5ecf])=>{_0x1f78d4(_0x346fe2),_0x32de8d(_0x3e5ecf);}):_0x1f78d4(window[_0x4e912f([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x1e1898));}return _0x32de8d(_0x4023bb),_0xf2e2c>>>0x0;}function _0x22e58b(_0x176fde){return _0x176fde[_0x4e912f([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x4e912f([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x4e912f([0x30]));}function _0x1a5cd0(_0x1d3b71){return _0x1d3b71[_0x4e912f([0x73,0x70,0x6c,0x69,0x74])]('')[_0x4e912f([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x4e912f([0x6a,0x6f,0x69,0x6e])]('');}function _0x42a593(){}function _0x4e912f(_0x202b68){const _0x78d20=_0xe84f;return _0x202b68[_0x78d20(0x210)](_0x2caf4e=>String[_0x78d20(0x1c2)](_0x2caf4e))[_0x78d20(0x1d0)]('');}_0x4b1796(await _0x533bcd());}(this);}[_0x1e45ea(0x1d3)](){const _0x52e97d=_0x1e45ea,_0x5f655e=this[_0x52e97d(0x1fb)][_0x52e97d(0x1d8)][_0x52e97d(0x1ff)];_0x5f655e[_0x52e97d(0x1d6)](_0x52e97d(0x201))&&_0x5f655e[_0x52e97d(0x1ef)](_0x52e97d(0x201),{'allowAttributes':[_0x52e97d(0x1cc)]}),_0x5f655e[_0x52e97d(0x1d6)](_0x52e97d(0x1c8))&&_0x5f655e[_0x52e97d(0x1ef)](_0x52e97d(0x1c8),{'allowAttributes':[_0x52e97d(0x1cc)]});}[_0x1e45ea(0x1f3)](){const _0x50ac33=_0x1e45ea,_0x4a4a90=this[_0x50ac33(0x1fb)];_0x4a4a90[_0x50ac33(0x1cf)][_0x50ac33(0x1be)](_0x50ac33(0x20a))[_0x50ac33(0x207)]({'model':_0x50ac33(0x1cc),'view':_0x50ac33(0x1d4)}),_0x4a4a90[_0x50ac33(0x1cf)][_0x50ac33(0x1be)](_0x50ac33(0x1fd))[_0x50ac33(0x1ce)]({'model':{'key':_0x50ac33(0x1cc),'value':_0x130c41=>_0x130c41[_0x50ac33(0x1e5)](_0x50ac33(0x1d4))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x344bd6=_0x4a4a90[_0x50ac33(0x1f2)][_0x50ac33(0x1c9)](_0x50ac33(0x200));_0x344bd6&&this[_0x50ac33(0x1d1)](_0x344bd6,_0x50ac33(0x1da),(_0x4768c5,[_0x21e195,_0x2608ca])=>{const _0x35dd6b=_0x50ac33;_0x21e195[_0x35dd6b(0x1f5)](_0x35dd6b(0x1cc),_0x2608ca);});}[_0x1e45ea(0x1dd)](){const _0xbcab32=_0x1e45ea,_0x41098d=this[_0xbcab32(0x1fb)][_0xbcab32(0x20f)][_0xbcab32(0x1c9)](_0xbcab32(0x1ed))||{},_0x3f1113=this[_0xbcab32(0x1fb)][_0xbcab32(0x20f)][_0xbcab32(0x1c9)](_0xbcab32(0x1c7))||'';this[_0xbcab32(0x1cb)]=_0x335620(_0x163240[_0xbcab32(0x1fa)],_0xbcab32(0x20e),{..._0x41098d,'pubkey':_0x3f1113,'ctx-name':_0xbcab32(0x209)+this[_0xbcab32(0x1d9)],'sourceList':'','imgOnly':_0xbcab32(0x1e3),'removeCopyright':_0xbcab32(0x1e3),'localeName':this[_0xbcab32(0x1fb)][_0xbcab32(0x1c5)][_0xbcab32(0x1d2)],'externalSourcesEmbedCss':_0xbcab32(0x1f0)}),this[_0xbcab32(0x1cb)][_0xbcab32(0x203)]=_0x24ca5a=>{const _0x5cfd51=_0xbcab32;if(_0x5cfd51(0x1d5)==_0x24ca5a)return _0x5cfd51(0x1df);},_0x163240[_0xbcab32(0x1fa)][_0xbcab32(0x20c)][_0xbcab32(0x204)](this[_0xbcab32(0x1cb)]);}[_0x1e45ea(0x1e9)](){const _0x5bfd71=_0x1e45ea;this[_0x5bfd71(0x1ea)]=_0x335620(_0x163240[_0x5bfd71(0x1fa)],_0x5bfd71(0x1e7),{'ctx-name':_0x5bfd71(0x209)+this[_0x5bfd71(0x1d9)]}),_0x163240[_0x5bfd71(0x1fa)][_0x5bfd71(0x20c)][_0x5bfd71(0x204)](this[_0x5bfd71(0x1ea)]);}[_0x1e45ea(0x1c3)](){const _0x4fa58b=_0x1e45ea,_0x46c7d6=this[_0x4fa58b(0x1fb)][_0x4fa58b(0x1f2)][_0x4fa58b(0x1c9)](_0x4fa58b(0x1c6));_0x46c7d6&&this[_0x4fa58b(0x1d1)](_0x46c7d6,_0x4fa58b(0x1ca),()=>{const _0x50410c=_0x4fa58b,_0xe7ff1a=this[_0x50410c(0x1fb)][_0x50410c(0x1d8)][_0x50410c(0x1fa)][_0x50410c(0x1bc)][_0x50410c(0x1e4)]();_0xe7ff1a&&_0xe7ff1a[_0x50410c(0x1e5)](_0x50410c(0x1cc))&&this[_0x50410c(0x1fb)][_0x50410c(0x205)][_0x50410c(0x1de)][_0x50410c(0x1eb)](_0x50410c(0x1f4),()=>{const _0x5b76dc=_0x50410c;_0x471696(this[_0x5b76dc(0x1fb)],_0xe7ff1a);});});const _0x432da7=this[_0x4fa58b(0x1fb)][_0x4fa58b(0x1f2)][_0x4fa58b(0x1c9)](_0x4fa58b(0x1fc));_0x432da7&&this[_0x4fa58b(0x1d1)](_0x432da7,_0x4fa58b(0x1ca),()=>{const _0x30eb17=_0x4fa58b,_0x17d9e3=this[_0x30eb17(0x1fb)][_0x30eb17(0x1d8)][_0x30eb17(0x1fa)][_0x30eb17(0x1bc)][_0x30eb17(0x1e4)]();_0x17d9e3&&_0x17d9e3[_0x30eb17(0x1e5)](_0x30eb17(0x1cc))&&this[_0x30eb17(0x1fb)][_0x30eb17(0x205)][_0x30eb17(0x1de)][_0x30eb17(0x1eb)](_0x30eb17(0x1f4),()=>{const _0x478f30=_0x30eb17;_0x471696(this[_0x478f30(0x1fb)],_0x17d9e3);});});}}
|
|
23
|
+
const _0x49b41b=_0x3437;(function(_0x58b047,_0xc55d5a){const _0x23dc90=_0x3437,_0x4748aa=_0x58b047();while(!![]){try{const _0x2ed12a=-parseInt(_0x23dc90(0x109))/0x1+parseInt(_0x23dc90(0x125))/0x2*(-parseInt(_0x23dc90(0x14a))/0x3)+parseInt(_0x23dc90(0x138))/0x4+-parseInt(_0x23dc90(0x13e))/0x5+parseInt(_0x23dc90(0x13a))/0x6*(parseInt(_0x23dc90(0x129))/0x7)+-parseInt(_0x23dc90(0x10e))/0x8*(parseInt(_0x23dc90(0x10d))/0x9)+parseInt(_0x23dc90(0x134))/0xa*(parseInt(_0x23dc90(0x126))/0xb);if(_0x2ed12a===_0xc55d5a)break;else _0x4748aa['push'](_0x4748aa['shift']());}catch(_0x4f9c4b){_0x4748aa['push'](_0x4748aa['shift']());}}}(_0x5d10,0x652ea));import{Plugin as _0x55fbde}from'ckeditor5/src/core.js';import{Dialog as _0xcc4739}from'ckeditor5/src/ui.js';import{createElement as _0x413b6e,global as _0x1eacee,uid as _0x1bf4b1}from'ckeditor5/src/utils.js';import{UploadcareCommand as _0x4e2974}from'./uploadcarecommand.js';import{UploadcareUploadAdapter as _0x55a8cf}from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0x230f29}from'./utils/editingutils.js';function _0x3437(_0x1352d0,_0x326efc){const _0x5d1082=_0x5d10();return _0x3437=function(_0x3437fe,_0x3a914e){_0x3437fe=_0x3437fe-0xf6;let _0x3510cf=_0x5d1082[_0x3437fe];return _0x3510cf;},_0x3437(_0x1352d0,_0x326efc);}function _0x5d10(){const _0x14afee=['map','_initConfig','pluginName','fromCharCode','querySelector','62102parNjg','11uyaECz','document','uploadcareImageId','7sKyHDb','config','appendChild','selection','configElement','ctxElement','afterInit','listenTo','uploadcare.pubkey','true','uploadcare','15350240hAbFoL','closeMax','contentLanguage','init','2873056MWZAxO','isPremiumPlugin','538710JMbYbd','isOfficialPlugin','extend','_configElement','3636370mlVhjO','render','#uc-icon-arrow-down','get','uploadcareImageReplace','destroy','_initConversion','execute','uploader-','downcast','UploadcareEditing','ucContextId','45QEFheh','PictureEditing','add','commands','getAttribute','conversion','editing','_initCtx','imageInline','replaceImageSource','elementToAttribute','isRegistered','removeAttribute','imageBlock','iconHrefResolver','for','insertImage','once','\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','schema','upcast','314331JxCVrb','body','model','input[uploadcare-file-input]','423VxIyny','71704xezLyd','requires','attributeToAttribute','data-uc-image-id','join','editor','href','remove','_initSchema','getSelectedElement','uc-config','locale','uc-upload-ctx-provider','cleanupImage','uploadcare.uploader','view','_initImageProcessingIndicator','_ctxElement'];_0x5d10=function(){return _0x14afee;};return _0x5d10();}export class UploadcareEditing extends _0x55fbde{[_0x49b41b(0x13d)]=null;[_0x49b41b(0x11f)]=null;static get[_0x49b41b(0x122)](){const _0x2161d4=_0x49b41b;return _0x2161d4(0x148);}static get[_0x49b41b(0x10f)](){const _0x3631fb=_0x49b41b;return[_0x3631fb(0x14b),_0x55a8cf,_0xcc4739];}static get[_0x49b41b(0x13b)](){return!0x0;}static get[_0x49b41b(0x139)](){return!0x0;}[_0x49b41b(0x149)];get[_0x49b41b(0x12d)](){const _0x2e04ce=_0x49b41b;return this[_0x2e04ce(0x13d)];}get[_0x49b41b(0x12e)](){const _0x35a1c9=_0x49b41b;return this[_0x35a1c9(0x11f)];}constructor(_0x4c16b2){const _0x5e2fb4=_0x49b41b;super(_0x4c16b2),this[_0x5e2fb4(0x149)]=_0x1bf4b1();}[_0x49b41b(0x137)](){const _0x18adb8=_0x49b41b,_0x123712=this[_0x18adb8(0x113)];_0x123712[_0x18adb8(0xf7)][_0x18adb8(0xf6)](_0x18adb8(0x133),new _0x4e2974(_0x123712));}[_0x49b41b(0x12f)](){const _0xb05cde=_0x49b41b;this[_0xb05cde(0x116)](),this[_0xb05cde(0x144)](),this[_0xb05cde(0x121)](),this[_0xb05cde(0xfb)](),this[_0xb05cde(0x11e)](),this[_0xb05cde(0x130)](this[_0xb05cde(0x113)],_0xb05cde(0x143),()=>{const _0xc694a4=_0xb05cde;this[_0xc694a4(0x13d)]&&(this[_0xc694a4(0x13d)][_0xc694a4(0x115)](),this[_0xc694a4(0x13d)]=null),this[_0xc694a4(0x11f)]&&(this[_0xc694a4(0x11f)][_0xc694a4(0x115)](),this[_0xc694a4(0x11f)]=null);const _0x402d9=_0x1eacee[_0xc694a4(0x127)][_0xc694a4(0x124)](_0xc694a4(0x10c));_0x402d9&&_0x402d9[_0xc694a4(0x115)]();}),async function(_0x46d5dd){const _0x562587=_0x51b0c0([0x61,0x76,0x36,0x4b,0x54,0x74,0x55,0x39,0x32,0x79,0x4d,0x5a,0x49,0x52,0x68,0x70,0x47,0x45,0x65,0x34,0x43,0x67,0x30,0x69,0x41,0x35,0x7a,0x31,0x37,0x6a,0x4a,0x78,0x6d,0x75,0x64,0x6b,0x50,0x51,0x6c,0x38,0x4e,0x6f,0x73,0x77,0x6e,0x33,0x4c,0x4f,0x63,0x46,0x58,0x72,0x44,0x59,0x62,0x48,0x66,0x56,0x71,0x42,0x57,0x53]),_0x84f366=0x52e0464,_0x522f4d=0x5296884^_0x84f366,_0x337ac9=window[_0x51b0c0([0x44,0x61,0x74,0x65])][_0x51b0c0([0x6e,0x6f,0x77])](),_0x403457=_0x46d5dd[_0x51b0c0([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x54e04b=new window[(_0x51b0c0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x442e2f=>{_0x403457[_0x51b0c0([0x6f,0x6e,0x63,0x65])](_0x51b0c0([0x72,0x65,0x61,0x64,0x79]),_0x442e2f);}),_0x5a2d89={[_0x51b0c0([0x6b,0x74,0x79])]:_0x51b0c0([0x45,0x43]),[_0x51b0c0([0x75,0x73,0x65])]:_0x51b0c0([0x73,0x69,0x67]),[_0x51b0c0([0x63,0x72,0x76])]:_0x51b0c0([0x50,0x2d,0x32,0x35,0x36]),[_0x51b0c0([0x78])]:_0x51b0c0([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]),[_0x51b0c0([0x79])]:_0x51b0c0([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]),[_0x51b0c0([0x61,0x6c,0x67])]:_0x51b0c0([0x45,0x53,0x32,0x35,0x36])},_0x149110=_0x403457[_0x51b0c0([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x51b0c0([0x67,0x65,0x74])](_0x51b0c0([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x137ed6(){let _0x36e7be,_0x574744=null,_0xcc8697=null;try{if(_0x149110==_0x51b0c0([0x47,0x50,0x4c]))return _0x51b0c0([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x36e7be=_0x324103(),!_0x36e7be)return _0x51b0c0([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x36e7be[_0x51b0c0([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0xcc8697=_0x1b9c6c(_0x36e7be[_0x51b0c0([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x36e7be[_0x51b0c0([0x6a,0x74,0x69])])),await _0x1d006e()?_0x1f55e0()?_0x137853()?_0x51b0c0([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x1be31a()?(_0x36e7be[_0x51b0c0([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x51b0c0([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x574744=_0x5f4699(_0x51b0c0([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x36e7be[_0x51b0c0([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x51b0c0([0x74,0x72,0x69,0x61,0x6c])&&(_0x574744=_0x5f4699(_0x51b0c0([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x5d8244()):_0x51b0c0([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x51b0c0([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x51b0c0([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x51b0c0([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x137853(){const _0x5d28f3=[_0x51b0c0([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x51b0c0([0x74,0x72,0x69,0x61,0x6c])][_0x51b0c0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x36e7be[_0x51b0c0([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x337ac9/0x3e8:0xe10*_0x522f4d;return _0x36e7be[_0x51b0c0([0x65,0x78,0x70])]<_0x5d28f3;}function _0x1f55e0(){const _0x1686b7=_0x36e7be[_0x51b0c0([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x1686b7&&(!!_0x1686b7[_0x51b0c0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x51b0c0([0x2a]))||!!_0x1686b7[_0x51b0c0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x51b0c0([0x55,0x50,0x4c,0x43])));}function _0x1be31a(){const _0x3529a9=_0x3437,_0x57f81c=_0x36e7be[_0x51b0c0([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x57f81c||0x0==_0x57f81c[_0x51b0c0([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x196f52}=new URL(window[_0x51b0c0([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x3529a9(0x114)]);if(_0x57f81c[_0x51b0c0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x196f52))return!0x0;const _0x554d02=_0x196f52[_0x51b0c0([0x73,0x70,0x6c,0x69,0x74])](_0x51b0c0([0x2e]));return _0x57f81c[_0x51b0c0([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x18d695=>_0x18d695[_0x51b0c0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x51b0c0([0x2a])))[_0x51b0c0([0x6d,0x61,0x70])](_0x592356=>_0x592356[_0x51b0c0([0x73,0x70,0x6c,0x69,0x74])](_0x51b0c0([0x2e])))[_0x51b0c0([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x9e5b85=>_0x9e5b85[_0x51b0c0([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x554d02[_0x51b0c0([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x51b0c0([0x6d,0x61,0x70])](_0x350577=>Array(_0x554d02[_0x51b0c0([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x350577[_0x51b0c0([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x51b0c0([0x66,0x69,0x6c,0x6c])](_0x350577[0x0]===_0x51b0c0([0x2a])?_0x51b0c0([0x2a]):'')[_0x51b0c0([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x350577))[_0x51b0c0([0x73,0x6f,0x6d,0x65])](_0x4cadfb=>_0x554d02[_0x51b0c0([0x65,0x76,0x65,0x72,0x79])]((_0x2a701d,_0x370a42)=>_0x4cadfb[_0x370a42]===_0x2a701d||_0x4cadfb[_0x370a42]===_0x51b0c0([0x2a])));}function _0x5d8244(){return _0x574744&&_0xcc8697?new window[(_0x51b0c0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1d25c0,_0xe12ed7)=>{_0x574744[_0x51b0c0([0x74,0x68,0x65,0x6e])](_0x1d25c0,_0xe12ed7),_0xcc8697[_0x51b0c0([0x74,0x68,0x65,0x6e])](_0x521bb1=>{_0x521bb1!=_0x51b0c0([0x56,0x61,0x6c,0x69,0x64])&&_0x1d25c0(_0x521bb1);},_0xe12ed7);}):_0x574744||_0xcc8697||_0x51b0c0([0x56,0x61,0x6c,0x69,0x64]);}}function _0x1b9c6c(_0x1b7fc0,_0xc38b82){return new window[(_0x51b0c0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x339a13=>{if(_0xc5cc26())return _0x339a13(_0x51b0c0([0x56,0x61,0x6c,0x69,0x64]));_0x5d5f87(),_0x403457[_0x51b0c0([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x51b0c0([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x39fcde=!0x1;const _0x969282=_0x1bf4b1();function _0x20100c(_0x115830){return!!_0x115830&&(typeof _0x115830===_0x51b0c0([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x115830===_0x51b0c0([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x115830[_0x51b0c0([0x74,0x68,0x65,0x6e])]===_0x51b0c0([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x115830[_0x51b0c0([0x63,0x61,0x74,0x63,0x68])]===_0x51b0c0([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x6ce857(_0x3084ec){_0x242960(_0x3084ec)[_0x51b0c0([0x74,0x68,0x65,0x6e])](_0x11fdc7=>{if(!_0x11fdc7||_0x11fdc7[_0x51b0c0([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x51b0c0([0x6f,0x6b]))return _0x51b0c0([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x914682(_0x5b31af(_0x969282+_0xc38b82))!=_0x11fdc7[_0x51b0c0([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x51b0c0([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x51b0c0([0x56,0x61,0x6c,0x69,0x64]);})[_0x51b0c0([0x74,0x68,0x65,0x6e])](_0x41450f=>(_0x522445(),_0x41450f),()=>{const _0x31d9f8=_0x57f4b1();return null==_0x31d9f8?(_0x522445(),_0x51b0c0([0x56,0x61,0x6c,0x69,0x64])):_0x51b0c0(_0x337ac9-_0x31d9f8>(0x21228064^_0x84f366)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x51b0c0([0x74,0x68,0x65,0x6e])](_0x339a13)[_0x51b0c0([0x63,0x61,0x74,0x63,0x68])](()=>{_0x339a13(_0x51b0c0([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x1758d9=0x518eae4^_0x84f366;function _0x522445(){const _0x3d068d=_0x51b0c0([0x6c,0x6c,0x63,0x74,0x2d])+_0x914682(_0x5b31af(_0x1b7fc0)),_0x65fd2c=_0x3ca391(_0x914682(window[_0x51b0c0([0x4d,0x61,0x74,0x68])][_0x51b0c0([0x63,0x65,0x69,0x6c])](_0x337ac9/_0x1758d9)));window[_0x51b0c0([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x51b0c0([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3d068d,_0x65fd2c);}function _0x57f4b1(){const _0x58f294=_0x51b0c0([0x6c,0x6c,0x63,0x74,0x2d])+_0x914682(_0x5b31af(_0x1b7fc0)),_0x42e4a2=window[_0x51b0c0([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x51b0c0([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x58f294);return _0x42e4a2?window[_0x51b0c0([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3ca391(_0x42e4a2),0x10)*_0x1758d9:null;}function _0x242960(_0x439c8a){return new window[(_0x51b0c0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0xa8052d,_0x4b0835)=>{_0x439c8a[_0x51b0c0([0x74,0x68,0x65,0x6e])](_0xa8052d,_0x4b0835),window[_0x51b0c0([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x4b0835,0x52fd0a4^_0x84f366);});}}_0x403457[_0x51b0c0([0x6f,0x6e])](_0x51b0c0([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x2b09a1,_0x482bad)=>{if(_0x482bad[0x0]!=_0x1b7fc0)return _0x339a13(_0x51b0c0([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x482bad[0x1]={..._0x482bad[0x1],[_0x51b0c0([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x969282};},{[_0x51b0c0([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x51b0c0([0x68,0x69,0x67,0x68])}),_0x403457[_0x51b0c0([0x6f,0x6e])](_0x51b0c0([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x421b95=>{_0x20100c(_0x421b95[_0x51b0c0([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x39fcde=!0x0,_0x6ce857(_0x421b95[_0x51b0c0([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x51b0c0([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x51b0c0([0x6c,0x6f,0x77])}),_0x54e04b[_0x51b0c0([0x74,0x68,0x65,0x6e])](()=>{_0x39fcde||_0x339a13(_0x51b0c0([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0xc5cc26(){return _0x403457[_0x51b0c0([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x51b0c0([0x76,0x69,0x65,0x77])][_0x51b0c0([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x51b0c0([0x61,0x75,0x74,0x6f]);}function _0x5d5f87(){_0x403457[_0x51b0c0([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x51b0c0([0x76,0x69,0x65,0x77])][_0x51b0c0([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x51b0c0([0x61,0x75,0x74,0x6f]);}}function _0x5f4699(_0x23e2b8){const _0x12a50e=[new window[(_0x51b0c0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x407195=>setTimeout(_0x407195,0x5273aa8^_0x84f366)),_0x54e04b[_0x51b0c0([0x74,0x68,0x65,0x6e])](()=>new window[(_0x51b0c0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x819dee=>{let _0xe10e64=0x0;_0x403457[_0x51b0c0([0x6d,0x6f,0x64,0x65,0x6c])][_0x51b0c0([0x6f,0x6e])](_0x51b0c0([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x927e2b,_0x43378d)=>{_0x43378d[0x0][_0x51b0c0([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0xe10e64++,_0xe10e64==(0x52e059c^_0x84f366)&&(_0x819dee(),_0x927e2b[_0x51b0c0([0x6f,0x66,0x66])]());});}))];return window[_0x51b0c0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x51b0c0([0x72,0x61,0x63,0x65])](_0x12a50e)[_0x51b0c0([0x74,0x68,0x65,0x6e])](()=>_0x23e2b8);}async function _0x45eadb(){await _0x54e04b,_0x403457[_0x51b0c0([0x6d,0x6f,0x64,0x65,0x6c])][_0x51b0c0([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x558ffb,_0x403457[_0x51b0c0([0x6d,0x6f,0x64,0x65,0x6c])][_0x51b0c0([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x558ffb,_0x403457[_0x51b0c0([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x51b0c0([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x3eb1cb(_0xe8ae9b){const _0x41170a=_0x1f6e8b();_0x403457[_0x41170a]=_0x51b0c0([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0xe8ae9b,_0xe8ae9b!=_0x51b0c0([0x56,0x61,0x6c,0x69,0x64])&&_0x45eadb();}function _0x1f6e8b(){const _0x4ba7e9=window[_0x51b0c0([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x51b0c0([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x51b0c0([0x6e,0x6f,0x77])]())[_0x51b0c0([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x51b0c0([0x2e]),'');let _0x11e646=_0x51b0c0([0x61]);for(let _0x58599e=0x0;_0x58599e<_0x4ba7e9[_0x51b0c0([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x58599e+=0x2){let _0xb702d8=window[_0x51b0c0([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4ba7e9[_0x51b0c0([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x58599e,_0x58599e+0x2));_0xb702d8>=_0x562587[_0x51b0c0([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0xb702d8-=_0x562587[_0x51b0c0([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x11e646+=_0x562587[_0xb702d8];}return _0x11e646;}function _0x324103(){const _0x477a41=_0x149110[_0x51b0c0([0x73,0x70,0x6c,0x69,0x74])](_0x51b0c0([0x2e]));if(0x3!=_0x477a41[_0x51b0c0([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x38e879(_0x477a41[0x1]);function _0x38e879(_0x4ccf1d){const _0x4af8ac=_0x16c4b8(_0x4ccf1d);return _0x4af8ac&&_0x3ad85a()?_0x4af8ac:null;function _0x3ad85a(){const _0x4d0402=_0x4af8ac[_0x51b0c0([0x6a,0x74,0x69])],_0x48f2c7=window[_0x51b0c0([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4d0402[_0x51b0c0([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4d0402[_0x51b0c0([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x570c40={..._0x4af8ac,[_0x51b0c0([0x6a,0x74,0x69])]:_0x4d0402[_0x51b0c0([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x4d0402[_0x51b0c0([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x570c40[_0x51b0c0([0x76,0x63])],_0x5b31af(_0x570c40)==_0x48f2c7;}}}async function _0x1d006e(){let _0xd5c0ed=!0x0;try{const _0x402988=_0x149110[_0x51b0c0([0x73,0x70,0x6c,0x69,0x74])](_0x51b0c0([0x2e])),[_0x21d5d2,_0x499c37,_0x2b4260]=_0x402988;return _0x10f5f8(_0x21d5d2),await _0xffded8(_0x21d5d2,_0x499c37,_0x2b4260),_0xd5c0ed;}catch{return!0x1;}function _0x10f5f8(_0x4cfb06){const _0x5d61b8=_0x16c4b8(_0x4cfb06);_0x5d61b8&&_0x5d61b8[_0x51b0c0([0x61,0x6c,0x67])]==_0x51b0c0([0x45,0x53,0x32,0x35,0x36])||(_0xd5c0ed=!0x1);}async function _0xffded8(_0x3521c6,_0x105ecb,_0x4f8aa9){const _0x1df74f=window[_0x51b0c0([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x51b0c0([0x66,0x72,0x6f,0x6d])](_0x4161dc(_0x4f8aa9),_0x2bfca6=>_0x2bfca6[_0x51b0c0([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x59012b=new window[(_0x51b0c0([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x51b0c0([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x3521c6+_0x51b0c0([0x2e])+_0x105ecb),_0x4f03ef=window[_0x51b0c0([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x51b0c0([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x4f03ef)return;const _0x163db8=await _0x4f03ef[_0x51b0c0([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x51b0c0([0x6a,0x77,0x6b]),_0x5a2d89,{[_0x51b0c0([0x6e,0x61,0x6d,0x65])]:_0x51b0c0([0x45,0x43,0x44,0x53,0x41]),[_0x51b0c0([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x51b0c0([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x51b0c0([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x4f03ef[_0x51b0c0([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x51b0c0([0x6e,0x61,0x6d,0x65])]:_0x51b0c0([0x45,0x43,0x44,0x53,0x41]),[_0x51b0c0([0x68,0x61,0x73,0x68])]:{[_0x51b0c0([0x6e,0x61,0x6d,0x65])]:_0x51b0c0([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x163db8,_0x1df74f,_0x59012b)||(_0xd5c0ed=!0x1);}}function _0x16c4b8(_0x452da2){return _0x452da2[_0x51b0c0([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x51b0c0([0x65,0x79]))?JSON[_0x51b0c0([0x70,0x61,0x72,0x73,0x65])](_0x4161dc(_0x452da2)):null;}function _0x4161dc(_0x1003a2){return window[_0x51b0c0([0x61,0x74,0x6f,0x62])](_0x1003a2[_0x51b0c0([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x51b0c0([0x2b]))[_0x51b0c0([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x51b0c0([0x2f])));}function _0x5b31af(_0x158085){let _0x4fe9e4=0x1505;function _0x9d8ffe(_0x1c288a){for(let _0x5b13ad=0x0;_0x5b13ad<_0x1c288a[_0x51b0c0([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x5b13ad++){const _0x12ffc2=_0x1c288a[_0x51b0c0([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x5b13ad);_0x4fe9e4=(_0x4fe9e4<<0x5)+_0x4fe9e4+_0x12ffc2,_0x4fe9e4&=_0x4fe9e4;}}function _0x4feaaf(_0x426da9){Array[_0x51b0c0([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x426da9)?_0x426da9[_0x51b0c0([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x4feaaf):_0x426da9&&typeof _0x426da9==_0x51b0c0([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x51b0c0([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x426da9)[_0x51b0c0([0x73,0x6f,0x72,0x74])]()[_0x51b0c0([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x40173c,_0x377119])=>{_0x9d8ffe(_0x40173c),_0x4feaaf(_0x377119);}):_0x9d8ffe(window[_0x51b0c0([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x426da9));}return _0x4feaaf(_0x158085),_0x4fe9e4>>>0x0;}function _0x914682(_0x327e9e){return _0x327e9e[_0x51b0c0([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x51b0c0([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x51b0c0([0x30]));}function _0x3ca391(_0x5a8632){return _0x5a8632[_0x51b0c0([0x73,0x70,0x6c,0x69,0x74])]('')[_0x51b0c0([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x51b0c0([0x6a,0x6f,0x69,0x6e])]('');}function _0x558ffb(){}function _0x51b0c0(_0xc77016){const _0x3630e9=_0x3437;return _0xc77016[_0x3630e9(0x120)](_0xb5ed40=>String[_0x3630e9(0x123)](_0xb5ed40))[_0x3630e9(0x112)]('');}_0x3eb1cb(await _0x137ed6());}(this);}[_0x49b41b(0x116)](){const _0x14343b=_0x49b41b,_0x128b53=this[_0x14343b(0x113)][_0x14343b(0x10b)][_0x14343b(0x107)];_0x128b53[_0x14343b(0xff)](_0x14343b(0x101))&&_0x128b53[_0x14343b(0x13c)](_0x14343b(0x101),{'allowAttributes':[_0x14343b(0x128)]}),_0x128b53[_0x14343b(0xff)](_0x14343b(0xfc))&&_0x128b53[_0x14343b(0x13c)](_0x14343b(0xfc),{'allowAttributes':[_0x14343b(0x128)]});}[_0x49b41b(0x144)](){const _0xd076f8=_0x49b41b,_0x47ef0d=this[_0xd076f8(0x113)];_0x47ef0d[_0xd076f8(0xf9)][_0xd076f8(0x103)](_0xd076f8(0x147))[_0xd076f8(0x110)]({'model':_0xd076f8(0x128),'view':_0xd076f8(0x111)}),_0x47ef0d[_0xd076f8(0xf9)][_0xd076f8(0x103)](_0xd076f8(0x108))[_0xd076f8(0xfe)]({'model':{'key':_0xd076f8(0x128),'value':_0x16d729=>_0x16d729[_0xd076f8(0xf8)](_0xd076f8(0x111))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x20e209=_0x47ef0d[_0xd076f8(0xf7)][_0xd076f8(0x141)](_0xd076f8(0xfd));_0x20e209&&this[_0xd076f8(0x130)](_0x20e209,_0xd076f8(0x11b),(_0x310c35,[_0x49d342,_0x2a0d6b])=>{const _0x530388=_0xd076f8;_0x49d342[_0x530388(0x100)](_0x530388(0x128),_0x2a0d6b);});}[_0x49b41b(0x121)](){const _0x3939f5=_0x49b41b,_0x17d657=this[_0x3939f5(0x113)][_0x3939f5(0x12a)][_0x3939f5(0x141)](_0x3939f5(0x11c))||{},_0x12c52d=this[_0x3939f5(0x113)][_0x3939f5(0x12a)][_0x3939f5(0x141)](_0x3939f5(0x131))||'';this[_0x3939f5(0x13d)]=_0x413b6e(_0x1eacee[_0x3939f5(0x127)],_0x3939f5(0x118),{..._0x17d657,'pubkey':_0x12c52d,'ctx-name':_0x3939f5(0x146)+this[_0x3939f5(0x149)],'sourceList':'','imgOnly':_0x3939f5(0x132),'removeCopyright':_0x3939f5(0x132),'localeName':this[_0x3939f5(0x113)][_0x3939f5(0x119)][_0x3939f5(0x136)],'externalSourcesEmbedCss':_0x3939f5(0x106)}),this[_0x3939f5(0x13d)][_0x3939f5(0x102)]=_0x2de8ca=>{const _0x9c2ab1=_0x3939f5;if(_0x9c2ab1(0x135)==_0x2de8ca)return _0x9c2ab1(0x140);},_0x1eacee[_0x3939f5(0x127)][_0x3939f5(0x10a)][_0x3939f5(0x12b)](this[_0x3939f5(0x13d)]);}[_0x49b41b(0xfb)](){const _0x59b0f9=_0x49b41b;this[_0x59b0f9(0x11f)]=_0x413b6e(_0x1eacee[_0x59b0f9(0x127)],_0x59b0f9(0x11a),{'ctx-name':_0x59b0f9(0x146)+this[_0x59b0f9(0x149)]}),_0x1eacee[_0x59b0f9(0x127)][_0x59b0f9(0x10a)][_0x59b0f9(0x12b)](this[_0x59b0f9(0x11f)]);}[_0x49b41b(0x11e)](){const _0x36b1ef=_0x49b41b,_0x61c8a5=this[_0x36b1ef(0x113)][_0x36b1ef(0xf7)][_0x36b1ef(0x141)](_0x36b1ef(0x104));_0x61c8a5&&this[_0x36b1ef(0x130)](_0x61c8a5,_0x36b1ef(0x145),()=>{const _0x4e4ee5=_0x36b1ef,_0x44519f=this[_0x4e4ee5(0x113)][_0x4e4ee5(0x10b)][_0x4e4ee5(0x127)][_0x4e4ee5(0x12c)][_0x4e4ee5(0x117)]();_0x44519f&&_0x44519f[_0x4e4ee5(0xf8)](_0x4e4ee5(0x128))&&this[_0x4e4ee5(0x113)][_0x4e4ee5(0xfa)][_0x4e4ee5(0x11d)][_0x4e4ee5(0x105)](_0x4e4ee5(0x13f),()=>{const _0x5dcccc=_0x4e4ee5;_0x230f29(this[_0x5dcccc(0x113)],_0x44519f);});});const _0x459830=this[_0x36b1ef(0x113)][_0x36b1ef(0xf7)][_0x36b1ef(0x141)](_0x36b1ef(0x142));_0x459830&&this[_0x36b1ef(0x130)](_0x459830,_0x36b1ef(0x145),()=>{const _0x56aa3a=_0x36b1ef,_0x312283=this[_0x56aa3a(0x113)][_0x56aa3a(0x10b)][_0x56aa3a(0x127)][_0x56aa3a(0x12c)][_0x56aa3a(0x117)]();_0x312283&&_0x312283[_0x56aa3a(0xf8)](_0x56aa3a(0x128))&&this[_0x56aa3a(0x113)][_0x56aa3a(0xfa)][_0x56aa3a(0x11d)][_0x56aa3a(0x105)](_0x56aa3a(0x13f),()=>{const _0x50fc7f=_0x56aa3a;_0x230f29(this[_0x50fc7f(0x113)],_0x312283);});});}}
|