@ckeditor/ckeditor5-uploadcare 46.0.1-alpha.3 → 46.0.1-alpha.5
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 _0xf6fbe1,Command as _0x7ffec3}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x201032,IconGooglePhotos as _0x5d013a,IconGoogleDrive as _0x42c81d,IconFacebook as _0x46bda6,IconDropbox as _0x5d1059,IconUploadcareLink as _0x45f1b8,IconUploadcareImageUpload as _0x48a625,IconError as _0x227ea7,IconUploadcareImageEdit as _0x52ad18}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x19c8b2,MenuBarMenuListItemButtonView as _0x5b7ad4,View as _0x41df65,FocusCycler as _0x3ec888,Dialog as _0x4d119e,DialogViewPosition as _0x1681aa,SpinnerView as _0xd3f9c8,IconView as _0x238f30,Notification as _0x551a71}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x30d413,DomEmitterMixin as _0x45af71,global as _0x185c34,getAncestors as _0x4e988d,ObservableMixin as _0x153c81,uid as _0x5dd4e2,createElement as _0x119a96}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x23b034}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x1db9f8,info as _0x4691eb}from'@uploadcare/upload-client';import*as _0x48c0cb from'@uploadcare/file-uploader';var i=function(_0xc1dbb9){return _0xc1dbb9['Local']='local',_0xc1dbb9['URL']='url',_0xc1dbb9['Dropbox']='dropbox',_0xc1dbb9['GDrive']='gdrive',_0xc1dbb9['Facebook']='facebook',_0xc1dbb9['GPhotos']='gphotos',_0xc1dbb9['OneDrive']='onedrive',_0xc1dbb9;}({});function _(_0x573494,_0x5caa15,_0x15a44f){const t=_0x573494['t'],_0x4d84eb=_0x573494['t'];switch(_0x5caa15){case i['Local']:return{'text':_0x4d84eb('Insert'===_0x15a44f?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x4d84eb('From\x20computer')};case i['URL']:return{'text':'Insert'===_0x15a44f?_0x4d84eb('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x4d84eb('Via\x20URL')};case i['Dropbox']:return{'text':t('Insert'===_0x15a44f?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case i['Facebook']:return{'text':t('Insert'===_0x15a44f?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case i['GDrive']:return{'text':t('Insert'===_0x15a44f?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case i['GPhotos']:return{'text':t('Insert'===_0x15a44f?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case i['OneDrive']:return{'text':t('Insert'===_0x15a44f?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x5caa15;}}class e extends _0xf6fbe1{['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 _0x2c9706=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x2bab23;for(const _0x578078 in _0x2c9706){const _0x15d3df=_0x578078,_0x4ae007=_0x2c9706[_0x15d3df];if('uploadcareLicenseKeyValid'==_0x4ae007||'uploadcareLicenseKeyInvalid'==_0x4ae007||'uploadcareLicenseKeyExpired'==_0x4ae007||'uploadcareLicenseKeyDomainLimit'==_0x4ae007||'uploadcareLicenseKeyNotAllowed'==_0x4ae007||'uploadcareLicenseKeyEvaluationLimit'==_0x4ae007||'uploadcareLicenseKeyTrialLimit'==_0x4ae007||'uploadcareLicenseKeyUsageLimit'==_0x4ae007){delete _0x2c9706[_0x15d3df],_0x2bab23=_0x4ae007,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x2bab23&&_0x2c9706['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x2bab23&&_0x2c9706['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x2bab23&&_0x2c9706['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x2bab23&&_0x2c9706['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x2bab23&&_0x2c9706['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyTrialLimit'==_0x2bab23&&_0x2c9706['_showLicenseError']('trialLimit'),'uploadcareLicenseKeyUsageLimit'==_0x2bab23&&_0x2c9706['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x2464b4}=this,_0xd4557=_0x2464b4['commands']['get']('uploadcare');if(!_0xd4557)return;const _0x385dcf=this['_normalizeConfigSourceList'](_0x2464b4['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x505a38,_0x56046f)=>{const _0x541ae5=this['_getIntegrationKey'](_0x56046f['type']);return _0x505a38[_0x541ae5]||(_0x505a38[_0x541ae5]=[]),_0x505a38[_0x541ae5]['push'](_0x56046f),_0x505a38;},{});_0x2464b4['plugins']['has']('ImageInsertUI')&&_0x2464b4['commands']['get']('uploadcare')&&Object['entries'](_0x385dcf)['forEach'](([_0x3a66ba,_0x16d245])=>{_0x2464b4['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x3a66ba,'observable':()=>_0xd4557,'buttonViewCreator':()=>this['_createToolbarButton'](_0x16d245),'formViewCreator':()=>this['_createDropdownButtons'](_0x16d245),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x16d245),'override':'assetManager'!==_0x3a66ba});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0xe66f24){const {locale:_0x39a9cf}=this['editor'];return _0xe66f24['map'](_0x2f71a9=>{const _0x54e4a2=_(_0x39a9cf,_0x2f71a9,'Insert');switch(_0x2f71a9){case i['Local']:return{'icon':_0x48a625,'type':i['Local'],..._0x54e4a2};case i['URL']:return{'icon':_0x45f1b8,'type':i['URL'],..._0x54e4a2};case i['Dropbox']:return{'icon':_0x5d1059,'type':i['Dropbox'],..._0x54e4a2};case i['Facebook']:return{'icon':_0x46bda6,'type':i['Facebook'],..._0x54e4a2};case i['GDrive']:return{'icon':_0x42c81d,'type':i['GDrive'],..._0x54e4a2};case i['GPhotos']:return{'icon':_0x5d013a,'type':i['GPhotos'],..._0x54e4a2};case i['OneDrive']:return{'icon':_0x201032,'type':i['OneDrive'],..._0x54e4a2};}});}['_getIntegrationKey'](_0x3fc48a){switch(_0x3fc48a){case i['Local']:return'upload';case i['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x3ac569,_0x125df0){const _0x9b76e9=this['editor'],_0x180264=new _0x3ac569(_0x9b76e9['locale']),_0x4517ae=_0x9b76e9['commands']['get']('uploadcare');return _0x180264['bind']('isEnabled')['to'](_0x4517ae),_0x180264['on']('execute',()=>{_0x4517ae['execute'](_0x125df0);}),_0x180264;}['_createToolbarButton'](_0x285ffe){const {locale:_0x542f79}=this['editor'],_0x4d8745=this['editor']['plugins']['get']('ImageInsertUI'),_0x5e9fef=_0x285ffe[0x0],_0x2b92e8=this['_createButton'](_0x19c8b2,_0x5e9fef['type']);return _0x2b92e8['icon']=_0x5e9fef['icon'],_0x2b92e8['bind']('label')['to'](_0x4d8745,'isImageSelected',_0x1175a5=>_(_0x542f79,_0x5e9fef['type'],_0x1175a5?'Replace':'Insert')['text']),_0x2b92e8['tooltip']=!0x0,_0x2b92e8;}['_createDropdownButtons'](_0x430e7b){const {locale:_0x5ef681}=this['editor'],_0x262865=this['editor']['plugins']['get']('ImageInsertUI');return _0x430e7b['map'](_0x4aba64=>{const _0x23863=this['_createButton'](_0x19c8b2,_0x4aba64['type']);return _0x23863['withText']=!0x0,_0x23863['icon']=_0x4aba64['icon'],_0x23863['bind']('label')['to'](_0x262865,'isImageSelected',_0x20b1b2=>_(_0x5ef681,_0x4aba64['type'],_0x20b1b2?'Replace':'Insert')['text']),_0x23863;});}['_createMenuBarButtons'](_0x41136f){return _0x41136f['map'](_0x1b7031=>{const _0x1c762b=this['_createButton'](_0x5b7ad4,_0x1b7031['type']);return _0x1c762b['icon']=_0x1b7031['icon'],_0x1c762b['label']=_0x1b7031['shortText'],_0x1c762b;});}}class F extends _0x41df65{['focusTracker'];['focusCycler'];constructor(_0x4bda02){super(_0x4bda02),this['focusTracker']=new _0x30d413(),this['focusCycler']=new _0x3ec888({'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(_0x571e38,_0x3eee68){super(_0x571e38),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-'+_0x3eee68}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}}function k(_0x4cb456,_0x46df60){const _0x982f8a=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0xc352c1=>_0xc352c1<=_0x46df60)['map'](_0x58d551=>_0x4cb456['replace'](/\/$/,'')+'/-/resize/'+_0x58d551+'x/\x20'+_0x58d551+'w');return{'imageFallbackUrl':_0x4cb456,'imageSources':[{'srcset':_0x982f8a['join'](',\x20'),'sizes':'(max-width:\x20'+_0x46df60+'px)\x20100vw,\x20'+_0x46df60+'px','type':'image/webp'}]};}function C(_0x298697,_0x5b71c1,_0x44b0e3){const _0x513812=_0x298697['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x513812?parseInt(_0x513812[0x1],0xa):_0x5b71c1,'height':_0x513812?parseInt(_0x513812[0x2],0xa):_0x44b0e3};}function p(_0x62688a,_0x3db338){const _0x2c5288=new(_0x45af71())(),_0x24760c=_0x62688a['plugins']['get']('ImageUtils'),_0x2cfe1b=_0x62688a['editing']['mapper']['toViewElement'](_0x3db338),_0x2832a2=_0x24760c['findViewImgElement'](_0x2cfe1b),_0x380283=_0x62688a['editing']['view']['domConverter']['viewToDom'](_0x2832a2),_0x52aba5=_0x3db338['getAttribute']('width'),_0x43b9c1=_0x3db338['getAttribute']('height'),_0x59cd2d='image-processing';_0x62688a['editing']['view']['change'](_0x149b2e=>{_0x149b2e['addClass'](_0x59cd2d,_0x2cfe1b),_0x149b2e['setStyle']('aspect-ratio',_0x52aba5+'/'+_0x43b9c1,_0x2832a2);}),_0x2c5288['listenTo'](_0x380283,'load',()=>{_0x2c5288['stopListening'](_0x380283,'load'),_0x62688a['editing']['view']['change'](_0x18da7d=>{_0x18da7d['removeClass'](_0x59cd2d,_0x2cfe1b),_0x18da7d['removeStyle']('aspect-ratio',_0x2832a2);});});}function G(_0x139f9f){if(Array['isArray'](_0x139f9f)){const _0x23636e=_0x139f9f['map'](G);return _0xa0b328=>_0x23636e['some'](_0x5713ac=>_0x5713ac(_0xa0b328));}if('origin'==_0x139f9f){const _0x1eea28=_0x185c34['window']['location']['origin'];return _0x35286c=>new URL(_0x35286c,_0x185c34['document']['baseURI'])['origin']==_0x1eea28;}return'function'==typeof _0x139f9f?_0x139f9f:_0x139f9f instanceof RegExp?_0x36ec83=>!(!_0x36ec83['match'](_0x139f9f)&&!_0x36ec83['replace'](/^https?:\/\//,'')['match'](_0x139f9f)):()=>!0x1;}function S(_0x807202,_0x5e5662){return _0x4e988d(_0x807202['target'])['includes'](_0x5e5662);}class n extends/* #__PURE__ -- @preserve */
|
|
24
|
-
_0x153c81(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0xd47f62,_0x56355f,_0x1478c7){super(),this['_editor']=_0xd47f62,this['_editing']=_0x56355f,this['_dialog']=_0xd47f62['plugins']['get'](_0x4d119e),this['_api']=_0x56355f['ctxElement']['getAPI'](),this['_type']=_0x1478c7,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:_0xd4eef7,model:_0x1f71ce}=this['_editor'],_0x12e461=_0x1f71ce['document']['selection']['getSelectedElement'](),_0x1183a6=_0x12e461&&(_0x12e461['is']('element','imageBlock')||_0x12e461['is']('element','imageInline'));this['_formView']=new x(_0xd4eef7,this['_editing']['ucContextId']),this['_dialog']['show']({'id':'uploadCare','icon':_0x48a625,'title':_(_0xd4eef7,this['_type'],_0x1183a6?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x1681aa['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x54b75c=>!S(_0x54b75c,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x398ef5}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x5c301b=>{const _0x339e80=_0x398ef5['length'];for(const _0x138800 of _0x398ef5){const _0x4eb2e6=_0x138800===_0x398ef5[_0x339e80-0x1],{cdnUrl:_0xcc88cf,fileInfo:_0x2ad3d2}=_0x138800;if(!_0xcc88cf||!_0x2ad3d2)continue;const {width:_0x2011cc,height:_0x23dd1b}=_0x2ad3d2['imageInfo'],_0x350807=C(_0xcc88cf,_0x2011cc,_0x23dd1b),_0x322d64=k(_0xcc88cf,_0x350807['width']),_0x9ae050={'id':_0x2ad3d2['uuid'],'type':'image','attributes':{'imageDimension':_0x350807,..._0x322d64}};this['_insertAsset'](_0x9ae050,_0x4eb2e6,_0x5c301b);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x28e21f=>{'idle'===_0x28e21f['detail']['status']&&!_0x28e21f['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===i['Local']?this['_api']['setCurrentActivity'](i['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0xe7aa00,_0x212f47,_0x4a2ea6){const _0x5e219d=this['_editor']['model']['document']['selection'],_0x5990b1=_0x5e219d['getSelectedElement'](),_0x51f7f4=!(!_0x5990b1||!_0x5990b1['is']('element','imageInline'));_0x4a2ea6['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0xe7aa00,_0x51f7f4),_0x212f47||_0x4a2ea6['setSelection'](_0x5e219d['getLastPosition']());}['_insertImage'](_0x41b958,_0x2014ab){const _0x20c3b9=this['_editor'],{imageDimension:_0x39f150,imageFallbackUrl:_0x59c50f,imageSources:_0x10dc40}=_0x41b958['attributes'];_0x20c3b9['execute']('insertImage',{'imageType':_0x2014ab?'imageInline':null,'source':{'uploadcareImageId':_0x41b958['id'],'src':_0x59c50f,'sources':_0x10dc40,..._0x39f150}});}}class w extends _0x7ffec3{['_editing'];['_controller']=null;static get['requires'](){return[_0x4d119e,o];}constructor(_0x51f0a6){super(_0x51f0a6),this['_editing']=_0x51f0a6['plugins']['get'](o);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0xeb7af0){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new n(this['editor'],this['_editing'],_0xeb7af0);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class j{static['upload']({file:_0xec55d3,publicKey:_0x3dccf1,signal:_0x5e7aae,onProgress:_0x486591}){return _0x1db9f8(_0xec55d3,{'publicKey':_0x3dccf1,'store':'auto','signal':_0x5e7aae,'onProgress':_0x486591});}static['getInfo'](_0x3c88a1,_0x392dfe){return _0x4691eb(_0x3c88a1,_0x392dfe);}}class f extends _0xf6fbe1{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x23b034,o];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x22a10=this['editor'];if(!!!_0x22a10['config']['get']('uploadcare'))return;_0x22a10['plugins']['get'](_0x23b034)['createUploadAdapter']=_0x2dc2ae=>new A(_0x2dc2ae,_0x22a10),_0x22a10['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x3cba2a,{imageElement:_0x2ddeb8,data:_0x277825})=>{_0x22a10['model']['change'](_0xf3160a=>{_0xf3160a['setAttribute']('uploadcareImageId',_0x277825['uploadcareImageId'],_0x2ddeb8);});});}}class A{['loader'];['editor'];['controller'];constructor(_0x435e58,_0x5c50c0){this['loader']=_0x435e58,this['editor']=_0x5c50c0,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x218551=this['editor']['config']['get']('uploadcare.pubkey'),_0x41720e=await this['loader']['file'];return j['upload']({'file':_0x41720e,'publicKey':_0x218551,'signal':this['controller']['signal'],'onProgress':_0x3d195a=>{_0x3d195a&&_0x3d195a['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x3d195a['value']);}})['then'](async _0x5aee61=>{const {imageFallbackUrl:_0x40ce47,imageSources:_0x360f89}=k(_0x5aee61['cdnUrl'],_0x5aee61['imageInfo']['width']);return{'uploadcareImageId':_0x5aee61['uuid'],'default':_0x40ce47,'sources':_0x360f89};})['catch'](()=>{const _0x1d3430=t('Cannot\x20upload\x20file:')+('\x20'+_0x41720e['name']+'.');return Promise['reject'](_0x1d3430);});}['abort'](){this['controller']['abort']();}}class o extends _0xf6fbe1{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',f,_0x4d119e];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['ucContextId'];get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}constructor(_0x1f5224){super(_0x1f5224),this['ucContextId']=_0x5dd4e2();}['init'](){const _0x108733=this['editor'];_0x108733['commands']['add']('uploadcare',new w(_0x108733));}['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 _0x8471b0=_0x185c34['document']['querySelector']('input[uploadcare-file-input]');_0x8471b0&&_0x8471b0['remove']();}),async function(_0x2fc982){const _0x27f1b5=_0x256fd8([0x72,0x51,0x4d,0x64,0x61,0x78,0x4f,0x77,0x33,0x6e,0x65,0x6a,0x39,0x52,0x63,0x71,0x30,0x57,0x43,0x4e,0x38,0x42,0x7a,0x34,0x70,0x68,0x73,0x79,0x4a,0x5a,0x6d,0x67,0x6f,0x36,0x4b,0x54,0x50,0x55,0x35,0x48,0x66,0x56,0x31,0x58,0x69,0x75,0x4c,0x53,0x6b,0x76,0x41,0x37,0x6c,0x62,0x74,0x32,0x49,0x46,0x47,0x44,0x45,0x59]),_0x43f030=0x3f6883ea,_0xec88a6=0x3f6fecba^_0x43f030,_0x547a01=window[_0x256fd8([0x44,0x61,0x74,0x65])][_0x256fd8([0x6e,0x6f,0x77])](),_0x2f5e54=_0x2fc982[_0x256fd8([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x349103=new window[(_0x256fd8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x166d74=>{_0x2f5e54[_0x256fd8([0x6f,0x6e,0x63,0x65])](_0x256fd8([0x72,0x65,0x61,0x64,0x79]),_0x166d74);}),_0x3f0798={[_0x256fd8([0x6b,0x74,0x79])]:_0x256fd8([0x45,0x43]),[_0x256fd8([0x75,0x73,0x65])]:_0x256fd8([0x73,0x69,0x67]),[_0x256fd8([0x63,0x72,0x76])]:_0x256fd8([0x50,0x2d,0x32,0x35,0x36]),[_0x256fd8([0x78])]:_0x256fd8([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]),[_0x256fd8([0x79])]:_0x256fd8([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]),[_0x256fd8([0x61,0x6c,0x67])]:_0x256fd8([0x45,0x53,0x32,0x35,0x36])},_0x92daed=_0x2f5e54[_0x256fd8([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x256fd8([0x67,0x65,0x74])](_0x256fd8([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x57c9e7(){let _0x58dd2e,_0x435ab6=null,_0x554579=null;try{if(_0x92daed==_0x256fd8([0x47,0x50,0x4c]))return _0x256fd8([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x58dd2e=_0x27775d(),!_0x58dd2e)return _0x256fd8([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x58dd2e[_0x256fd8([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x554579=_0xff86ff(_0x58dd2e[_0x256fd8([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x58dd2e[_0x256fd8([0x6a,0x74,0x69])])),await _0x437472()?_0x2d121c()?_0x42cc1b()?_0x256fd8([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x152bae()?(_0x58dd2e[_0x256fd8([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x256fd8([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x435ab6=_0xb99438(_0x256fd8([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x58dd2e[_0x256fd8([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x256fd8([0x74,0x72,0x69,0x61,0x6c])&&(_0x435ab6=_0xb99438(_0x256fd8([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x21775d()):_0x256fd8([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x256fd8([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x256fd8([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x256fd8([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x42cc1b(){const _0x393b32=[_0x256fd8([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x256fd8([0x74,0x72,0x69,0x61,0x6c])][_0x256fd8([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x58dd2e[_0x256fd8([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x547a01/0x3e8:0xe10*_0xec88a6;return _0x58dd2e[_0x256fd8([0x65,0x78,0x70])]<_0x393b32;}function _0x2d121c(){const _0x5ee23e=_0x58dd2e[_0x256fd8([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x5ee23e&&(!!_0x5ee23e[_0x256fd8([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x256fd8([0x2a]))||!!_0x5ee23e[_0x256fd8([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x256fd8([0x55,0x50,0x4c,0x43])));}function _0x152bae(){const _0x2cae08=_0x58dd2e[_0x256fd8([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x2cae08||0x0==_0x2cae08[_0x256fd8([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x1f2452}=new URL(window[_0x256fd8([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x2cae08[_0x256fd8([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1f2452))return!0x0;const _0x5f4cb6=_0x1f2452[_0x256fd8([0x73,0x70,0x6c,0x69,0x74])](_0x256fd8([0x2e]));return _0x2cae08[_0x256fd8([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x28d895=>_0x28d895[_0x256fd8([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x256fd8([0x2a])))[_0x256fd8([0x6d,0x61,0x70])](_0x36c376=>_0x36c376[_0x256fd8([0x73,0x70,0x6c,0x69,0x74])](_0x256fd8([0x2e])))[_0x256fd8([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x5e69cc=>_0x5e69cc[_0x256fd8([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x5f4cb6[_0x256fd8([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x256fd8([0x6d,0x61,0x70])](_0x20e522=>Array(_0x5f4cb6[_0x256fd8([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x20e522[_0x256fd8([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x256fd8([0x66,0x69,0x6c,0x6c])](_0x20e522[0x0]===_0x256fd8([0x2a])?_0x256fd8([0x2a]):'')[_0x256fd8([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x20e522))[_0x256fd8([0x73,0x6f,0x6d,0x65])](_0x498aa6=>_0x5f4cb6[_0x256fd8([0x65,0x76,0x65,0x72,0x79])]((_0x186e42,_0x1d0040)=>_0x498aa6[_0x1d0040]===_0x186e42||_0x498aa6[_0x1d0040]===_0x256fd8([0x2a])));}function _0x21775d(){return _0x435ab6&&_0x554579?new window[(_0x256fd8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4d3d4a,_0x310d3e)=>{_0x435ab6[_0x256fd8([0x74,0x68,0x65,0x6e])](_0x4d3d4a,_0x310d3e),_0x554579[_0x256fd8([0x74,0x68,0x65,0x6e])](_0x3be5d2=>{_0x3be5d2!=_0x256fd8([0x56,0x61,0x6c,0x69,0x64])&&_0x4d3d4a(_0x3be5d2);},_0x310d3e);}):_0x435ab6||_0x554579||_0x256fd8([0x56,0x61,0x6c,0x69,0x64]);}}function _0xff86ff(_0x2663b0,_0x35ffa6){return new window[(_0x256fd8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x30f891=>{if(_0x179ee4())return _0x30f891(_0x256fd8([0x56,0x61,0x6c,0x69,0x64]));_0x36bad9(),_0x2f5e54[_0x256fd8([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x256fd8([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x598f2d=!0x1;const _0x1a93ea=_0x5dd4e2();function _0xd9b871(_0x1272b7){return!!_0x1272b7&&(typeof _0x1272b7===_0x256fd8([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x1272b7===_0x256fd8([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x1272b7[_0x256fd8([0x74,0x68,0x65,0x6e])]===_0x256fd8([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x1272b7[_0x256fd8([0x63,0x61,0x74,0x63,0x68])]===_0x256fd8([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x6b925c(_0x5f4af3){_0x5df434(_0x5f4af3)[_0x256fd8([0x74,0x68,0x65,0x6e])](_0x1dd90d=>{if(!_0x1dd90d||_0x1dd90d[_0x256fd8([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x256fd8([0x6f,0x6b]))return _0x256fd8([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x5a65eb(_0x2cb908(_0x1a93ea+_0x35ffa6))!=_0x1dd90d[_0x256fd8([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x256fd8([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x256fd8([0x56,0x61,0x6c,0x69,0x64]);})[_0x256fd8([0x74,0x68,0x65,0x6e])](_0x375ecd=>(_0x36d3eb(),_0x375ecd),()=>{const _0x4b4a8b=_0x24b71f();return null==_0x4b4a8b?(_0x36d3eb(),_0x256fd8([0x56,0x61,0x6c,0x69,0x64])):_0x256fd8(_0x547a01-_0x4b4a8b>(0x1b6407ea^_0x43f030)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x256fd8([0x74,0x68,0x65,0x6e])](_0x30f891)[_0x256fd8([0x63,0x61,0x74,0x63,0x68])](()=>{_0x30f891(_0x256fd8([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x23af32=0x3f5e6d6a^_0x43f030;function _0x36d3eb(){const _0x4e2407=_0x256fd8([0x6c,0x6c,0x63,0x74,0x2d])+_0x5a65eb(_0x2cb908(_0x2663b0)),_0x1d768d=_0x4a16d6(_0x5a65eb(window[_0x256fd8([0x4d,0x61,0x74,0x68])][_0x256fd8([0x63,0x65,0x69,0x6c])](_0x547a01/_0x23af32)));window[_0x256fd8([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x256fd8([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4e2407,_0x1d768d);}function _0x24b71f(){const _0xe43dd7=_0x256fd8([0x6c,0x6c,0x63,0x74,0x2d])+_0x5a65eb(_0x2cb908(_0x2663b0)),_0x22a4c4=window[_0x256fd8([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x256fd8([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0xe43dd7);return _0x22a4c4?window[_0x256fd8([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4a16d6(_0x22a4c4),0x10)*_0x23af32:null;}function _0x5df434(_0x52fc32){return new window[(_0x256fd8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0xd2078f,_0x119556)=>{_0x52fc32[_0x256fd8([0x74,0x68,0x65,0x6e])](_0xd2078f,_0x119556),window[_0x256fd8([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x119556,0x3f69572a^_0x43f030);});}}_0x2f5e54[_0x256fd8([0x6f,0x6e])](_0x256fd8([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x1466a4,_0x10b42e)=>{if(_0x10b42e[0x0]!=_0x2663b0)return _0x30f891(_0x256fd8([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x10b42e[0x1]={..._0x10b42e[0x1],[_0x256fd8([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x1a93ea};},{[_0x256fd8([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x256fd8([0x68,0x69,0x67,0x68])}),_0x2f5e54[_0x256fd8([0x6f,0x6e])](_0x256fd8([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x54825d=>{_0xd9b871(_0x54825d[_0x256fd8([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x598f2d=!0x0,_0x6b925c(_0x54825d[_0x256fd8([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x256fd8([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x256fd8([0x6c,0x6f,0x77])}),_0x349103[_0x256fd8([0x74,0x68,0x65,0x6e])](()=>{_0x598f2d||_0x30f891(_0x256fd8([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x179ee4(){return _0x2f5e54[_0x256fd8([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x256fd8([0x76,0x69,0x65,0x77])][_0x256fd8([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x256fd8([0x61,0x75,0x74,0x6f]);}function _0x36bad9(){_0x2f5e54[_0x256fd8([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x256fd8([0x76,0x69,0x65,0x77])][_0x256fd8([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x256fd8([0x61,0x75,0x74,0x6f]);}}function _0xb99438(_0x2d836f){const _0x1c8787=[new window[(_0x256fd8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3b415d=>setTimeout(_0x3b415d,0x3f61bd26^_0x43f030)),_0x349103[_0x256fd8([0x74,0x68,0x65,0x6e])](()=>new window[(_0x256fd8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5cfc20=>{let _0x1d09ff=0x0;_0x2f5e54[_0x256fd8([0x6d,0x6f,0x64,0x65,0x6c])][_0x256fd8([0x6f,0x6e])](_0x256fd8([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x24e831,_0x1b4058)=>{_0x1b4058[0x0][_0x256fd8([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x1d09ff++,_0x1d09ff==(0x3f688212^_0x43f030)&&(_0x5cfc20(),_0x24e831[_0x256fd8([0x6f,0x66,0x66])]());});}))];return window[_0x256fd8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x256fd8([0x72,0x61,0x63,0x65])](_0x1c8787)[_0x256fd8([0x74,0x68,0x65,0x6e])](()=>_0x2d836f);}async function _0x580fd9(){await _0x349103,_0x2f5e54[_0x256fd8([0x6d,0x6f,0x64,0x65,0x6c])][_0x256fd8([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x15d260,_0x2f5e54[_0x256fd8([0x6d,0x6f,0x64,0x65,0x6c])][_0x256fd8([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x15d260,_0x2f5e54[_0x256fd8([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x256fd8([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x19757a(_0x315186){const _0x3bac3a=_0x4041b9();_0x2f5e54[_0x3bac3a]=_0x256fd8([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x315186,_0x315186!=_0x256fd8([0x56,0x61,0x6c,0x69,0x64])&&_0x580fd9();}function _0x4041b9(){const _0x37614c=window[_0x256fd8([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x256fd8([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x256fd8([0x6e,0x6f,0x77])]())[_0x256fd8([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x256fd8([0x2e]),'');let _0x290d54=_0x256fd8([0x72]);for(let _0x3d7338=0x0;_0x3d7338<_0x37614c[_0x256fd8([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3d7338+=0x2){let _0x3a12c8=window[_0x256fd8([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x37614c[_0x256fd8([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3d7338,_0x3d7338+0x2));_0x3a12c8>=_0x27f1b5[_0x256fd8([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x3a12c8-=_0x27f1b5[_0x256fd8([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x290d54+=_0x27f1b5[_0x3a12c8];}return _0x290d54;}function _0x27775d(){const _0x374ba5=_0x92daed[_0x256fd8([0x73,0x70,0x6c,0x69,0x74])](_0x256fd8([0x2e]));if(0x3!=_0x374ba5[_0x256fd8([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x2e3303(_0x374ba5[0x1]);function _0x2e3303(_0x3c1f23){const _0x571ca2=_0x365560(_0x3c1f23);return _0x571ca2&&_0x16e9f2()?_0x571ca2:null;function _0x16e9f2(){const _0x2e7958=_0x571ca2[_0x256fd8([0x6a,0x74,0x69])],_0x3f8288=window[_0x256fd8([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2e7958[_0x256fd8([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2e7958[_0x256fd8([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x53ea8f={..._0x571ca2,[_0x256fd8([0x6a,0x74,0x69])]:_0x2e7958[_0x256fd8([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x2e7958[_0x256fd8([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x53ea8f[_0x256fd8([0x76,0x63])],_0x2cb908(_0x53ea8f)==_0x3f8288;}}}async function _0x437472(){let _0x4cf725=!0x0;try{const _0x4a5e1f=_0x92daed[_0x256fd8([0x73,0x70,0x6c,0x69,0x74])](_0x256fd8([0x2e])),[_0x7566ab,_0x57cd3c,_0x481465]=_0x4a5e1f;return _0x416a42(_0x7566ab),await _0x5bf281(_0x7566ab,_0x57cd3c,_0x481465),_0x4cf725;}catch{return!0x1;}function _0x416a42(_0x54a4c5){const _0x1fb8eb=_0x365560(_0x54a4c5);_0x1fb8eb&&_0x1fb8eb[_0x256fd8([0x61,0x6c,0x67])]==_0x256fd8([0x45,0x53,0x32,0x35,0x36])||(_0x4cf725=!0x1);}async function _0x5bf281(_0x4f4772,_0x320e1c,_0x5acbbe){const _0x3ef66c=window[_0x256fd8([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x256fd8([0x66,0x72,0x6f,0x6d])](_0x5b7999(_0x5acbbe),_0x3f35d1=>_0x3f35d1[_0x256fd8([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x2cb4ba=new window[(_0x256fd8([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x256fd8([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x4f4772+_0x256fd8([0x2e])+_0x320e1c),_0x4b40a2=window[_0x256fd8([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x256fd8([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x4b40a2)return;const _0x32157a=await _0x4b40a2[_0x256fd8([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x256fd8([0x6a,0x77,0x6b]),_0x3f0798,{[_0x256fd8([0x6e,0x61,0x6d,0x65])]:_0x256fd8([0x45,0x43,0x44,0x53,0x41]),[_0x256fd8([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x256fd8([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x256fd8([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x4b40a2[_0x256fd8([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x256fd8([0x6e,0x61,0x6d,0x65])]:_0x256fd8([0x45,0x43,0x44,0x53,0x41]),[_0x256fd8([0x68,0x61,0x73,0x68])]:{[_0x256fd8([0x6e,0x61,0x6d,0x65])]:_0x256fd8([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x32157a,_0x3ef66c,_0x2cb4ba)||(_0x4cf725=!0x1);}}function _0x365560(_0x55e1b8){return _0x55e1b8[_0x256fd8([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x256fd8([0x65,0x79]))?JSON[_0x256fd8([0x70,0x61,0x72,0x73,0x65])](_0x5b7999(_0x55e1b8)):null;}function _0x5b7999(_0x585296){return window[_0x256fd8([0x61,0x74,0x6f,0x62])](_0x585296[_0x256fd8([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x256fd8([0x2b]))[_0x256fd8([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x256fd8([0x2f])));}function _0x2cb908(_0x3be1c6){let _0x4f5ee8=0x1505;function _0x27a9ae(_0x18f280){for(let _0x118f20=0x0;_0x118f20<_0x18f280[_0x256fd8([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x118f20++){const _0x11aa64=_0x18f280[_0x256fd8([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x118f20);_0x4f5ee8=(_0x4f5ee8<<0x5)+_0x4f5ee8+_0x11aa64,_0x4f5ee8&=_0x4f5ee8;}}function _0x1ec3ca(_0x285bcf){Array[_0x256fd8([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x285bcf)?_0x285bcf[_0x256fd8([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x1ec3ca):_0x285bcf&&typeof _0x285bcf==_0x256fd8([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x256fd8([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x285bcf)[_0x256fd8([0x73,0x6f,0x72,0x74])]()[_0x256fd8([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x3d0dda,_0x51b385])=>{_0x27a9ae(_0x3d0dda),_0x1ec3ca(_0x51b385);}):_0x27a9ae(window[_0x256fd8([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x285bcf));}return _0x1ec3ca(_0x3be1c6),_0x4f5ee8>>>0x0;}function _0x5a65eb(_0x5d8e0f){return _0x5d8e0f[_0x256fd8([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x256fd8([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x256fd8([0x30]));}function _0x4a16d6(_0x10e370){return _0x10e370[_0x256fd8([0x73,0x70,0x6c,0x69,0x74])]('')[_0x256fd8([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x256fd8([0x6a,0x6f,0x69,0x6e])]('');}function _0x15d260(){}function _0x256fd8(_0x575f40){return _0x575f40['map'](_0x350187=>String['fromCharCode'](_0x350187))['join']('');}_0x19757a(await _0x57c9e7());}(this);}['_initSchema'](){const _0x528410=this['editor']['model']['schema'];_0x528410['isRegistered']('imageBlock')&&_0x528410['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x528410['isRegistered']('imageInline')&&_0x528410['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x44e282=this['editor'];_0x44e282['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x44e282['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x1b9243=>_0x1b9243['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x7aaa04=_0x44e282['commands']['get']('replaceImageSource');_0x7aaa04&&this['listenTo'](_0x7aaa04,'cleanupImage',(_0x2228d9,[_0x1b1b3c,_0x3620d3])=>{_0x1b1b3c['removeAttribute']('uploadcareImageId',_0x3620d3);});}['_initConfig'](){const _0x2eba45=this['editor']['config']['get']('uploadcare.uploader')||{},_0x357b34=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x119a96(_0x185c34['document'],'uc-config',{..._0x2eba45,'pubkey':_0x357b34,'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']=_0xb6a9c=>{if('closeMax'==_0xb6a9c)return'#uc-icon-arrow-down';},_0x185c34['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x119a96(_0x185c34['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader-'+this['ucContextId']}),_0x185c34['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x50f643=this['editor']['commands']['get']('insertImage');_0x50f643&&this['listenTo'](_0x50f643,'execute',()=>{const _0x4c4673=this['editor']['model']['document']['selection']['getSelectedElement']();_0x4c4673&&_0x4c4673['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x4c4673);});});const _0x4873c2=this['editor']['commands']['get']('uploadcareImageReplace');_0x4873c2&&this['listenTo'](_0x4873c2,'execute',()=>{const _0x324acd=this['editor']['model']['document']['selection']['getSelectedElement']();_0x324acd&&_0x324acd['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x324acd);});});}}class tt extends _0xf6fbe1{static get['requires'](){return[o,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x15cf2b){super(_0x15cf2b),_0x15cf2b['config']['define']('uploadcare.uploader.sourceList',[i['Local'],i['URL']]),_0x48c0cb['defineComponents'](_0x48c0cb);}}class ii extends _0x41df65{constructor(_0x16fbbc){super(_0x16fbbc);const t=_0x16fbbc['t'],_0x2c5804=this['bindTemplate'],_0x519816=new _0xd3f9c8();_0x519816['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':[_0x519816,{'text':_0x2c5804['to']('imageUploadProgress',_0x94d48b=>t('Loading\x20image...')+'\x20('+(_0x94d48b||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 _0x41df65{constructor(_0x60f71d){super(_0x60f71d);const t=_0x60f71d['t'];this['set']('errorType',null);const _0x49f67d=new _0x19c8b2(_0x60f71d);_0x49f67d['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x49f67d['withText']=!0x0,_0x49f67d['class']='ck-button-action',_0x49f67d['on']('execute',()=>{this['fire']('retry');}),_0x49f67d['bind']('isVisible')['to'](this,'errorType',_0x5174d5=>'NotFound'!==_0x5174d5);const _0x37f0f8=new _0x238f30();_0x37f0f8['content']=_0x227ea7,_0x37f0f8['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0xddad08=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':[_0x37f0f8,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0xddad08['to']('errorType',_0x97c1ad=>t('NotFound'!==_0x97c1ad?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x49f67d]},{'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 _0x41df65{constructor(_0x3edb69,_0x4cf61){super(_0x3edb69);const _0x38157b=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x4cf61,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x38157b['to']('imageSrc')}});}}class X extends F{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x35454b,_0x113dcb,_0xeaf221){super(_0x35454b),this['_items']=this['createCollection'](),this['_loadingView']=new ii(_0x35454b),this['_errorView']=new ti(_0x35454b),this['_editingView']=new ei(_0x35454b,_0xeaf221),this['_focusableView']=new _0x41df65(_0x35454b),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x113dcb),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'],_0x280629=>{this['_addUploadcareImageEditorListeners'](_0x280629);});}),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'](_0x102c75,_0x589d30){const _0x5303a5='uc-cloud-image-editor',_0x2b1971=_0x102c75['querySelector'](_0x5303a5);if(_0x2b1971)return _0x589d30(_0x2b1971);const _0xc6f28c=new MutationObserver(_0x439659=>{const _0x45f4b1=_0x439659['filter'](_0x2cded6=>_0x2cded6['target']===_0x102c75&&_0x2cded6['addedNodes']['length']>0x0&&_0x2cded6['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x5303a5);_0x45f4b1['length']&&(_0xc6f28c['disconnect'](),_0x589d30(_0x45f4b1[0x0]['addedNodes'][0x0]));});_0xc6f28c['observe'](_0x102c75,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x4966ec){_0x4966ec['addEventListener']('apply',_0x31212d=>{this['fire']('apply',{'imageSrc':_0x31212d['detail']['cdnUrl']});}),_0x4966ec['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class E extends/* #__PURE__ -- @preserve */
|
|
25
|
-
_0x153c81(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x2b76a5,_0x1d51a6,_0x5444e6){super(),this['_editor']=_0x2b76a5,this['_dialog']=_0x1d51a6,this['_imageElement']=_0x5444e6,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 _0x1d6042=this['_imageElement'],_0x2b5b4d=_0x1d6042['getAttribute']('uploadcareImageId'),_0x1a8109=_0x1d6042['getAttribute']('src');if(_0x2b5b4d)await this['_loadImageInfo'](_0x2b5b4d,_0x1a8109);else{if(this['_imageCache']['has'](_0x1a8109)){const _0x3e5eef=this['_imageCache']['get'](_0x1a8109);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x3e5eef['url'],this['imageDimension']=_0x3e5eef['dimension'],this['imageId']=_0x3e5eef['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x13d424}=this['_editor'],t=_0x13d424['t'],_0x5253ba=new X(_0x13d424,this['imageStatus'],this['_attributes']);_0x5253ba['bind']('status')['to'](this,'imageStatus'),_0x5253ba['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x5253ba['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x5253ba['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x5253ba,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x52ad18,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x5253ba,'position':_0x1681aa['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x5253ba['focus']();},'onHide':()=>{_0x5253ba['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x17deb6=>!S(_0x17deb6,_0x5253ba['element'])}});}['_loadImageInfo'](_0x44d1d1,_0x255632){return j['getInfo'](_0x44d1d1,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey')})['then'](_0x4565b8=>{const {width:_0x21b653,height:_0x22a102}=_0x4565b8['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x255632,this['imageDimension']={'width':_0x21b653,'height':_0x22a102},this['imageId']=_0x44d1d1;})['catch'](_0x1b6db6=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x1b6db6['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x3da3dc,_0x11ee47){return this['_getImageAsFile'](_0x3da3dc)['then'](_0x56e2f0=>j['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'signal':_0x11ee47['signal'],'file':_0x56e2f0,'onProgress':_0x514bf2=>{_0x514bf2&&_0x514bf2['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x514bf2['value']));}}))['then'](_0x51b1d6=>{const {width:_0x10fac3,height:_0xb9074a}=_0x51b1d6['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x51b1d6['cdnUrl'],this['imageDimension']={'width':_0x10fac3,'height':_0xb9074a},this['imageId']=_0x51b1d6['uuid'],this['imageUploadProgress']=null;const _0x2a37c7=_0x3da3dc['getAttribute']('src');this['_imageCache']['set'](_0x2a37c7,{'id':_0x51b1d6['uuid'],'url':_0x51b1d6['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x2c9274=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x2c9274['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x2589a7,_0x576048){_0x2589a7['on']('apply',(_0x36a30a,_0x168148)=>{this['_replaceImage'](_0x576048,_0x168148['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x2589a7['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x2589a7['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x19ce17,_0xedbd04,_0x2ede18){const _0x3af515=this['_editor'],{width:_0x2c456d,height:_0x2318c9}=C(_0xedbd04,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x33441e,imageSources:_0x410c2b}=k(_0xedbd04,_0x2c456d);_0x3af515['model']['change'](_0x351289=>{if('$graveyard'===_0x19ce17['root']['rootName']){_0x3af515['execute']('insertImage',{'imageType':_0x19ce17['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x19ce17['getAttributes']()),'uploadcareImageId':_0x2ede18,'src':_0x33441e,'sources':_0x410c2b,'width':_0x2c456d,'height':_0x2318c9}});const _0x5f5804=_0x19ce17['getChildren']();_0x19ce17=_0x3af515['model']['document']['selection']['getSelectedElement']();for(const _0x21785e of _0x5f5804)_0x351289['append'](_0x351289['cloneElement'](_0x21785e),_0x19ce17);}else _0x351289['setSelection'](_0x19ce17,'on'),_0x3af515['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x19ce17['getAttributes']()),'uploadcareImageId':_0x2ede18,'src':_0x33441e,'sources':_0x410c2b,'width':_0x2c456d,'height':_0x2318c9},_0x19ce17);_0x351289['setSelection'](_0x19ce17,'on');});}async['_getImageAsFile'](_0xf8ec69){const _0x487e70=_0x185c34['window'],_0x46f61d=_0x185c34['document']['location']['href'],_0x4da45d=new _0x487e70['URL'](_0xf8ec69['getAttribute']('src'),_0x46f61d);if('data:'===_0x4da45d['protocol']){const _0x4f6a06=_0x4da45d['href']['split'](','),_0x593abd=_0x4f6a06[0x0]['match'](/:(.*?);/)[0x1],_0x52b5fa=_0x593abd['split']('/')[0x1],_0x5b16f6=_0x487e70['atob'](_0x4f6a06[_0x4f6a06['length']-0x1]);let _0x279810=_0x5b16f6['length'];const _0x6068e7=new _0x487e70['Uint8Array'](_0x279810);for(;_0x279810--;)_0x6068e7[_0x279810]=_0x5b16f6['charCodeAt'](_0x279810);return new _0x487e70['File']([_0x6068e7],'image.'+_0x52b5fa,{'type':_0x593abd});}const _0xddac75=_0x4da45d['href']['split']('/'),_0xc2bc08=_0xddac75[_0xddac75['length']-0x1],_0x1a8740=_0xc2bc08['split']('.')[0x1];return _0x487e70['fetch'](_0x4da45d['href'])['then'](_0x40fec5=>_0x40fec5['clone']()['blob']())['then'](_0x1b8d8d=>new _0x487e70['File']([_0x1b8d8d],_0xc2bc08,{'type':'image/'+_0x1a8740}));}}class O extends _0x7ffec3{['imageEditController'];static get['requires'](){return[_0x4d119e];}['_isEditable'];constructor(_0x6d2bf8){super(_0x6d2bf8),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x1d467a){const _0x406df0=G(_0x1d467a);return _0x384af5=>!(!_0x384af5||!_0x384af5['is']('element','imageBlock')&&!_0x384af5['is']('element','imageInline'))&&(!!_0x384af5['hasAttribute']('uploadcareImageId')||!!_0x384af5['hasAttribute']('src')&&_0x406df0(_0x384af5['getAttribute']('src')));}(_0x6d2bf8['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x586f85=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x586f85);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x3d130f=this['editor']['model']['document']['selection']['getSelectedElement']();_0x3d130f&&(_0x3d130f['is']('element','imageBlock')||_0x3d130f['is']('element','imageInline'))&&(this['imageEditController']=new E(this['editor'],this['editor']['plugins']['get'](_0x4d119e),_0x3d130f),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class R extends _0x7ffec3{['refresh'](){const _0x4ed495=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x4ed495&&(_0x4ed495['is']('element','imageBlock')||_0x4ed495['is']('element','imageInline')));}['execute'](_0x3ee331){const _0x2e0537=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x2125e3=>{_0x2125e3['setAttributes'](_0x3ee331,_0x2e0537),_0x2125e3['removeAttribute']('srcset',_0x2e0537),_0x2125e3['removeAttribute']('sizes',_0x2e0537);});}}class m extends _0xf6fbe1{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[o,_0x551a71,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0xd782d5}=this;_0xd782d5['commands']['add']('uploadcareImageEdit',new O(_0xd782d5)),_0xd782d5['commands']['add']('uploadcareImageReplace',new R(_0xd782d5));}}class g extends _0xf6fbe1{['_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 _0x4502fa=this['editor'];_0x4502fa['ui']['componentFactory']['add']('uploadcareImageEdit',_0x50a426=>{const _0x9a5198=_0x4502fa['commands']['get']('uploadcareImageEdit'),_0x285e89=new _0x19c8b2(_0x50a426),t=_0x50a426['t'];return _0x285e89['set']({'icon':_0x52ad18,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x285e89['bind']('isEnabled')['to'](_0x9a5198),_0x285e89['bind']('isOn')['to'](_0x9a5198,'isActive'),this['listenTo'](_0x285e89,'execute',()=>{_0x4502fa['execute']('uploadcareImageEdit'),_0x4502fa['editing']['view']['focus']();}),_0x285e89;}),this['_initConfig']();}['_initConfig'](){const _0x2e15df=_0x119a96(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x2e15df),this['listenTo'](this['editor'],'destroy',()=>{_0x2e15df['remove']();});}}class et extends _0xf6fbe1{static get['pluginName'](){return'UploadcareImageEdit';}static get['requires'](){return[m,g];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{tt as Uploadcare,w as UploadcareCommand,o as UploadcareEditing,et as UploadcareImageEdit,O as UploadcareImageEditCommand,m as UploadcareImageEditEditing,g as UploadcareImageEditUI,e as UploadcareUI,f as UploadcareUploadAdapter};
|
|
23
|
+
import{Plugin as _0x1d0c01,Command as _0x354615}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x3b361e,IconGooglePhotos as _0x4b3915,IconGoogleDrive as _0x503873,IconFacebook as _0x13c8cc,IconDropbox as _0xde1ce6,IconUploadcareLink as _0x555464,IconUploadcareImageUpload as _0xe52790,IconError as _0x34a476,IconUploadcareImageEdit as _0xc60ae9}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x196f4e,MenuBarMenuListItemButtonView as _0x24d36f,View as _0x4e50d6,FocusCycler as _0x27bc8d,Dialog as _0x4ea138,DialogViewPosition as _0x2dddc8,SpinnerView as _0x18b7bf,IconView as _0x59bed7,Notification as _0x4f7ca8}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x232457,DomEmitterMixin as _0xb269bb,global as _0x3b326e,getAncestors as _0xe8c29b,ObservableMixin as _0x3240bb,uid as _0x120607,createElement as _0x28e51d}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x11fdc5}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0xf38f60,info as _0x4e712f}from'@uploadcare/upload-client';import*as _0x4dcea5 from'@uploadcare/file-uploader';var i=function(_0x10c53d){return _0x10c53d['Local']='local',_0x10c53d['URL']='url',_0x10c53d['Dropbox']='dropbox',_0x10c53d['GDrive']='gdrive',_0x10c53d['Facebook']='facebook',_0x10c53d['GPhotos']='gphotos',_0x10c53d['OneDrive']='onedrive',_0x10c53d;}({});function _(_0x5205ff,_0x34e938,_0x1a9f38){const t=_0x5205ff['t'],_0x316442=_0x5205ff['t'];switch(_0x34e938){case i['Local']:return{'text':_0x316442('Insert'===_0x1a9f38?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x316442('From\x20computer')};case i['URL']:return{'text':'Insert'===_0x1a9f38?_0x316442('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x316442('Via\x20URL')};case i['Dropbox']:return{'text':t('Insert'===_0x1a9f38?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case i['Facebook']:return{'text':t('Insert'===_0x1a9f38?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case i['GDrive']:return{'text':t('Insert'===_0x1a9f38?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case i['GPhotos']:return{'text':t('Insert'===_0x1a9f38?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case i['OneDrive']:return{'text':t('Insert'===_0x1a9f38?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x34e938;}}class e extends _0x1d0c01{['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 _0x2debb0=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x4e02a5;for(const _0x46f3a1 in _0x2debb0){const _0x5d3784=_0x46f3a1,_0x2952e6=_0x2debb0[_0x5d3784];if('uploadcareLicenseKeyValid'==_0x2952e6||'uploadcareLicenseKeyInvalid'==_0x2952e6||'uploadcareLicenseKeyExpired'==_0x2952e6||'uploadcareLicenseKeyDomainLimit'==_0x2952e6||'uploadcareLicenseKeyNotAllowed'==_0x2952e6||'uploadcareLicenseKeyEvaluationLimit'==_0x2952e6||'uploadcareLicenseKeyTrialLimit'==_0x2952e6||'uploadcareLicenseKeyUsageLimit'==_0x2952e6){delete _0x2debb0[_0x5d3784],_0x4e02a5=_0x2952e6,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x4e02a5&&_0x2debb0['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x4e02a5&&_0x2debb0['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x4e02a5&&_0x2debb0['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x4e02a5&&_0x2debb0['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x4e02a5&&_0x2debb0['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyTrialLimit'==_0x4e02a5&&_0x2debb0['_showLicenseError']('trialLimit'),'uploadcareLicenseKeyUsageLimit'==_0x4e02a5&&_0x2debb0['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x5c94d9}=this,_0x47e74d=_0x5c94d9['commands']['get']('uploadcare');if(!_0x47e74d)return;const _0x5d6c02=this['_normalizeConfigSourceList'](_0x5c94d9['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x33f1d6,_0x5bf5e9)=>{const _0x1d4363=this['_getIntegrationKey'](_0x5bf5e9['type']);return _0x33f1d6[_0x1d4363]||(_0x33f1d6[_0x1d4363]=[]),_0x33f1d6[_0x1d4363]['push'](_0x5bf5e9),_0x33f1d6;},{});_0x5c94d9['plugins']['has']('ImageInsertUI')&&_0x5c94d9['commands']['get']('uploadcare')&&Object['entries'](_0x5d6c02)['forEach'](([_0x5b1d6b,_0x1996e8])=>{_0x5c94d9['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x5b1d6b,'observable':()=>_0x47e74d,'buttonViewCreator':()=>this['_createToolbarButton'](_0x1996e8),'formViewCreator':()=>this['_createDropdownButtons'](_0x1996e8),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x1996e8),'override':'assetManager'!==_0x5b1d6b});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x5ba706){const {locale:_0x105862}=this['editor'];return _0x5ba706['map'](_0x3c8146=>{const _0x186ec4=_(_0x105862,_0x3c8146,'Insert');switch(_0x3c8146){case i['Local']:return{'icon':_0xe52790,'type':i['Local'],..._0x186ec4};case i['URL']:return{'icon':_0x555464,'type':i['URL'],..._0x186ec4};case i['Dropbox']:return{'icon':_0xde1ce6,'type':i['Dropbox'],..._0x186ec4};case i['Facebook']:return{'icon':_0x13c8cc,'type':i['Facebook'],..._0x186ec4};case i['GDrive']:return{'icon':_0x503873,'type':i['GDrive'],..._0x186ec4};case i['GPhotos']:return{'icon':_0x4b3915,'type':i['GPhotos'],..._0x186ec4};case i['OneDrive']:return{'icon':_0x3b361e,'type':i['OneDrive'],..._0x186ec4};}});}['_getIntegrationKey'](_0x34bc06){switch(_0x34bc06){case i['Local']:return'upload';case i['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x2d5bd5,_0x4c2aa8){const _0x69612a=this['editor'],_0x503a6b=new _0x2d5bd5(_0x69612a['locale']),_0x38e42f=_0x69612a['commands']['get']('uploadcare');return _0x503a6b['bind']('isEnabled')['to'](_0x38e42f),_0x503a6b['on']('execute',()=>{_0x38e42f['execute'](_0x4c2aa8);}),_0x503a6b;}['_createToolbarButton'](_0x1c3ac4){const {locale:_0x39867a}=this['editor'],_0x308942=this['editor']['plugins']['get']('ImageInsertUI'),_0x1907b2=_0x1c3ac4[0x0],_0x4b9ca0=this['_createButton'](_0x196f4e,_0x1907b2['type']);return _0x4b9ca0['icon']=_0x1907b2['icon'],_0x4b9ca0['bind']('label')['to'](_0x308942,'isImageSelected',_0x2af4aa=>_(_0x39867a,_0x1907b2['type'],_0x2af4aa?'Replace':'Insert')['text']),_0x4b9ca0['tooltip']=!0x0,_0x4b9ca0;}['_createDropdownButtons'](_0x5a2621){const {locale:_0x404c76}=this['editor'],_0x3e479b=this['editor']['plugins']['get']('ImageInsertUI');return _0x5a2621['map'](_0x4f5789=>{const _0x8d4713=this['_createButton'](_0x196f4e,_0x4f5789['type']);return _0x8d4713['withText']=!0x0,_0x8d4713['icon']=_0x4f5789['icon'],_0x8d4713['bind']('label')['to'](_0x3e479b,'isImageSelected',_0x51783f=>_(_0x404c76,_0x4f5789['type'],_0x51783f?'Replace':'Insert')['text']),_0x8d4713;});}['_createMenuBarButtons'](_0x217e28){return _0x217e28['map'](_0x407f71=>{const _0x338944=this['_createButton'](_0x24d36f,_0x407f71['type']);return _0x338944['icon']=_0x407f71['icon'],_0x338944['label']=_0x407f71['shortText'],_0x338944;});}}class V extends _0x4e50d6{['focusTracker'];['focusCycler'];constructor(_0x3021f7){super(_0x3021f7),this['focusTracker']=new _0x232457(),this['focusCycler']=new _0x27bc8d({'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(_0x35f86b,_0x43494c){super(_0x35f86b),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-'+_0x43494c}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}}function k(_0x2efc44,_0x49a031){const _0xc75741=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x29af0e=>_0x29af0e<=_0x49a031)['map'](_0x22f7dd=>_0x2efc44['replace'](/\/$/,'')+'/-/resize/'+_0x22f7dd+'x/\x20'+_0x22f7dd+'w');return{'imageFallbackUrl':_0x2efc44,'imageSources':[{'srcset':_0xc75741['join'](',\x20'),'sizes':'(max-width:\x20'+_0x49a031+'px)\x20100vw,\x20'+_0x49a031+'px','type':'image/webp'}]};}function F(_0x57598f,_0x4eb3ba,_0x2ac9d0){const _0x2b0cfd=_0x57598f['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x2b0cfd?parseInt(_0x2b0cfd[0x1],0xa):_0x4eb3ba,'height':_0x2b0cfd?parseInt(_0x2b0cfd[0x2],0xa):_0x2ac9d0};}function p(_0x44ef27,_0x1e6984){const _0x2c2a97=new(_0xb269bb())(),_0x32bad7=_0x44ef27['plugins']['get']('ImageUtils'),_0x2e762c=_0x44ef27['editing']['mapper']['toViewElement'](_0x1e6984),_0x1b256b=_0x32bad7['findViewImgElement'](_0x2e762c),_0x32ec82=_0x44ef27['editing']['view']['domConverter']['viewToDom'](_0x1b256b),_0x2bc026=_0x1e6984['getAttribute']('width'),_0x1dc8dd=_0x1e6984['getAttribute']('height'),_0x4e06b9='image-processing';_0x44ef27['editing']['view']['change'](_0x2f5109=>{_0x2f5109['addClass'](_0x4e06b9,_0x2e762c),_0x2f5109['setStyle']('aspect-ratio',_0x2bc026+'/'+_0x1dc8dd,_0x1b256b);}),_0x2c2a97['listenTo'](_0x32ec82,'load',()=>{_0x2c2a97['stopListening'](_0x32ec82,'load'),_0x44ef27['editing']['view']['change'](_0x5db943=>{_0x5db943['removeClass'](_0x4e06b9,_0x2e762c),_0x5db943['removeStyle']('aspect-ratio',_0x1b256b);});});}function R(_0xd82e2f){if(Array['isArray'](_0xd82e2f)){const _0x16386b=_0xd82e2f['map'](R);return _0x5cf226=>_0x16386b['some'](_0x5b0762=>_0x5b0762(_0x5cf226));}if('origin'==_0xd82e2f){const _0x5d2ae6=_0x3b326e['window']['location']['origin'];return _0x36a3aa=>new URL(_0x36a3aa,_0x3b326e['document']['baseURI'])['origin']==_0x5d2ae6;}return'function'==typeof _0xd82e2f?_0xd82e2f:_0xd82e2f instanceof RegExp?_0x5842a5=>!(!_0x5842a5['match'](_0xd82e2f)&&!_0x5842a5['replace'](/^https?:\/\//,'')['match'](_0xd82e2f)):()=>!0x1;}function M(_0xd4ba1d,_0x3709e4){return _0xe8c29b(_0xd4ba1d['target'])['includes'](_0x3709e4);}class n extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x3240bb(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x4044b2,_0x58224f,_0x465c3f){super(),this['_editor']=_0x4044b2,this['_editing']=_0x58224f,this['_dialog']=_0x4044b2['plugins']['get'](_0x4ea138),this['_api']=_0x58224f['ctxElement']['getAPI'](),this['_type']=_0x465c3f,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:_0x5a0ad6,model:_0x19c0b5}=this['_editor'],_0x2fde30=_0x19c0b5['document']['selection']['getSelectedElement'](),_0x2674d1=_0x2fde30&&(_0x2fde30['is']('element','imageBlock')||_0x2fde30['is']('element','imageInline'));this['_formView']=new S(_0x5a0ad6,this['_editing']['ucContextId']),this['_dialog']['show']({'id':'uploadCare','icon':_0xe52790,'title':_(_0x5a0ad6,this['_type'],_0x2674d1?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x2dddc8['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0xfdf86c=>!M(_0xfdf86c,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x1810bf}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x4198ca=>{const _0x53982e=_0x1810bf['length'];for(const _0x221530 of _0x1810bf){const _0x467bcc=_0x221530===_0x1810bf[_0x53982e-0x1],{cdnUrl:_0x2875d0,fileInfo:_0x1b295c}=_0x221530;if(!_0x2875d0||!_0x1b295c)continue;const {width:_0x19d8f8,height:_0x16571c}=_0x1b295c['imageInfo'],_0x219024=F(_0x2875d0,_0x19d8f8,_0x16571c),_0x5d33ba=k(_0x2875d0,_0x219024['width']),_0x39a24a={'id':_0x1b295c['uuid'],'type':'image','attributes':{'imageDimension':_0x219024,..._0x5d33ba}};this['_insertAsset'](_0x39a24a,_0x467bcc,_0x4198ca);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x1af7c5=>{'idle'===_0x1af7c5['detail']['status']&&!_0x1af7c5['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===i['Local']?this['_api']['setCurrentActivity'](i['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x216e6d,_0x130e7c,_0x5f41f7){const _0x40338c=this['_editor']['model']['document']['selection'],_0x55e460=_0x40338c['getSelectedElement'](),_0x119fc6=!(!_0x55e460||!_0x55e460['is']('element','imageInline'));_0x5f41f7['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x216e6d,_0x119fc6),_0x130e7c||_0x5f41f7['setSelection'](_0x40338c['getLastPosition']());}['_insertImage'](_0x43779a,_0x189f8e){const _0x5cd102=this['_editor'],{imageDimension:_0x5aa24f,imageFallbackUrl:_0x2ec953,imageSources:_0xf4b6b}=_0x43779a['attributes'];_0x5cd102['execute']('insertImage',{'imageType':_0x189f8e?'imageInline':null,'source':{'uploadcareImageId':_0x43779a['id'],'src':_0x2ec953,'sources':_0xf4b6b,..._0x5aa24f}});}}class w extends _0x354615{['_editing'];['_controller']=null;static get['requires'](){return[_0x4ea138,o];}constructor(_0x4992e8){super(_0x4992e8),this['_editing']=_0x4992e8['plugins']['get'](o);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x5e2349){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new n(this['editor'],this['_editing'],_0x5e2349);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class j{static['upload']({file:_0x2b2b2f,publicKey:_0x5cfcde,signal:_0x2db8c4,onProgress:_0x186c11}){return _0xf38f60(_0x2b2b2f,{'publicKey':_0x5cfcde,'store':'auto','signal':_0x2db8c4,'onProgress':_0x186c11});}static['getInfo'](_0x58b325,_0x3682ce){return _0x4e712f(_0x58b325,_0x3682ce);}}class f extends _0x1d0c01{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x11fdc5,o];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x3f3a39=this['editor'];if(!!!_0x3f3a39['config']['get']('uploadcare'))return;_0x3f3a39['plugins']['get'](_0x11fdc5)['createUploadAdapter']=_0x3e308e=>new A(_0x3e308e,_0x3f3a39),_0x3f3a39['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x30e6b9,{imageElement:_0x499334,data:_0x55c923})=>{_0x3f3a39['model']['change'](_0xbbdf1a=>{_0xbbdf1a['setAttribute']('uploadcareImageId',_0x55c923['uploadcareImageId'],_0x499334);});});}}class A{['loader'];['editor'];['controller'];constructor(_0x7276f5,_0x674dd0){this['loader']=_0x7276f5,this['editor']=_0x674dd0,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x371dcd=this['editor']['config']['get']('uploadcare.pubkey'),_0x43ae78=await this['loader']['file'];return j['upload']({'file':_0x43ae78,'publicKey':_0x371dcd,'signal':this['controller']['signal'],'onProgress':_0x17c7ce=>{_0x17c7ce&&_0x17c7ce['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x17c7ce['value']);}})['then'](async _0x5cf511=>{const {imageFallbackUrl:_0x3a9092,imageSources:_0x429247}=k(_0x5cf511['cdnUrl'],_0x5cf511['imageInfo']['width']);return{'uploadcareImageId':_0x5cf511['uuid'],'default':_0x3a9092,'sources':_0x429247};})['catch'](()=>{const _0x10974d=t('Cannot\x20upload\x20file:')+('\x20'+_0x43ae78['name']+'.');return Promise['reject'](_0x10974d);});}['abort'](){this['controller']['abort']();}}class o extends _0x1d0c01{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',f,_0x4ea138];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['ucContextId'];get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}constructor(_0x3e61e5){super(_0x3e61e5),this['ucContextId']=_0x120607();}['init'](){const _0x4978f0=this['editor'];_0x4978f0['commands']['add']('uploadcare',new w(_0x4978f0));}['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 _0x428831=_0x3b326e['document']['querySelector']('input[uploadcare-file-input]');_0x428831&&_0x428831['remove']();}),async function(_0x59af33){const _0x5c2fcb=_0x3c609d([0x72,0x5a,0x63,0x57,0x69,0x59,0x46,0x4f,0x54,0x48,0x31,0x73,0x50,0x55,0x70,0x51,0x58,0x4b,0x67,0x41,0x6b,0x64,0x77,0x53,0x33,0x49,0x74,0x45,0x6e,0x32,0x61,0x30,0x47,0x4c,0x34,0x36,0x37,0x65,0x6d,0x38,0x79,0x66,0x7a,0x4d,0x52,0x62,0x75,0x76,0x35,0x78,0x43,0x44,0x68,0x39,0x6a,0x6f,0x6c,0x71,0x4a,0x4e,0x42,0x56]),_0x14fa3c=0x54354444,_0x58576c=0x54322bc4^_0x14fa3c,_0x3884b0=window[_0x3c609d([0x44,0x61,0x74,0x65])][_0x3c609d([0x6e,0x6f,0x77])](),_0x8083a8=_0x59af33[_0x3c609d([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x12c3bc=new window[(_0x3c609d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x50298a=>{_0x8083a8[_0x3c609d([0x6f,0x6e,0x63,0x65])](_0x3c609d([0x72,0x65,0x61,0x64,0x79]),_0x50298a);}),_0x11b775={[_0x3c609d([0x6b,0x74,0x79])]:_0x3c609d([0x45,0x43]),[_0x3c609d([0x75,0x73,0x65])]:_0x3c609d([0x73,0x69,0x67]),[_0x3c609d([0x63,0x72,0x76])]:_0x3c609d([0x50,0x2d,0x32,0x35,0x36]),[_0x3c609d([0x78])]:_0x3c609d([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]),[_0x3c609d([0x79])]:_0x3c609d([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]),[_0x3c609d([0x61,0x6c,0x67])]:_0x3c609d([0x45,0x53,0x32,0x35,0x36])},_0x22000d=_0x8083a8[_0x3c609d([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x3c609d([0x67,0x65,0x74])](_0x3c609d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x577b2f(){let _0x433e29,_0x357954=null,_0x2840c3=null;try{if(_0x22000d==_0x3c609d([0x47,0x50,0x4c]))return _0x3c609d([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x433e29=_0x14d616(),!_0x433e29)return _0x3c609d([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x433e29[_0x3c609d([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x2840c3=_0x340707(_0x433e29[_0x3c609d([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x433e29[_0x3c609d([0x6a,0x74,0x69])])),await _0x1ae326()?_0x4a66b5()?_0xc3f466()?_0x3c609d([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x2bd5fb()?(_0x433e29[_0x3c609d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3c609d([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x357954=_0x369905(_0x3c609d([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x433e29[_0x3c609d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3c609d([0x74,0x72,0x69,0x61,0x6c])&&(_0x357954=_0x369905(_0x3c609d([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x1ee408()):_0x3c609d([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x3c609d([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x3c609d([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x3c609d([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0xc3f466(){const _0x9d4c82=[_0x3c609d([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x3c609d([0x74,0x72,0x69,0x61,0x6c])][_0x3c609d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x433e29[_0x3c609d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x3884b0/0x3e8:0xe10*_0x58576c;return _0x433e29[_0x3c609d([0x65,0x78,0x70])]<_0x9d4c82;}function _0x4a66b5(){const _0x2e810c=_0x433e29[_0x3c609d([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x2e810c&&(!!_0x2e810c[_0x3c609d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3c609d([0x2a]))||!!_0x2e810c[_0x3c609d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3c609d([0x55,0x50,0x4c,0x43])));}function _0x2bd5fb(){const _0x350c68=_0x433e29[_0x3c609d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x350c68||0x0==_0x350c68[_0x3c609d([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x268415}=new URL(window[_0x3c609d([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x350c68[_0x3c609d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x268415))return!0x0;const _0x384954=_0x268415[_0x3c609d([0x73,0x70,0x6c,0x69,0x74])](_0x3c609d([0x2e]));return _0x350c68[_0x3c609d([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x3bbad2=>_0x3bbad2[_0x3c609d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3c609d([0x2a])))[_0x3c609d([0x6d,0x61,0x70])](_0x4eca23=>_0x4eca23[_0x3c609d([0x73,0x70,0x6c,0x69,0x74])](_0x3c609d([0x2e])))[_0x3c609d([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x284b97=>_0x284b97[_0x3c609d([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x384954[_0x3c609d([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x3c609d([0x6d,0x61,0x70])](_0x3fad96=>Array(_0x384954[_0x3c609d([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x3fad96[_0x3c609d([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x3c609d([0x66,0x69,0x6c,0x6c])](_0x3fad96[0x0]===_0x3c609d([0x2a])?_0x3c609d([0x2a]):'')[_0x3c609d([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x3fad96))[_0x3c609d([0x73,0x6f,0x6d,0x65])](_0x75dc0c=>_0x384954[_0x3c609d([0x65,0x76,0x65,0x72,0x79])]((_0x1989bb,_0x3d4656)=>_0x75dc0c[_0x3d4656]===_0x1989bb||_0x75dc0c[_0x3d4656]===_0x3c609d([0x2a])));}function _0x1ee408(){return _0x357954&&_0x2840c3?new window[(_0x3c609d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4d5818,_0x55be73)=>{_0x357954[_0x3c609d([0x74,0x68,0x65,0x6e])](_0x4d5818,_0x55be73),_0x2840c3[_0x3c609d([0x74,0x68,0x65,0x6e])](_0x41a24f=>{_0x41a24f!=_0x3c609d([0x56,0x61,0x6c,0x69,0x64])&&_0x4d5818(_0x41a24f);},_0x55be73);}):_0x357954||_0x2840c3||_0x3c609d([0x56,0x61,0x6c,0x69,0x64]);}}function _0x340707(_0x310625,_0x4e9d98){return new window[(_0x3c609d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1aaaca=>{if(_0x4147b2())return _0x1aaaca(_0x3c609d([0x56,0x61,0x6c,0x69,0x64]));_0x93aa6(),_0x8083a8[_0x3c609d([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x3c609d([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x210f03=!0x1;const _0xb76aa6=_0x120607();function _0x5b02ae(_0x330897){return!!_0x330897&&(typeof _0x330897===_0x3c609d([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x330897===_0x3c609d([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x330897[_0x3c609d([0x74,0x68,0x65,0x6e])]===_0x3c609d([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x330897[_0x3c609d([0x63,0x61,0x74,0x63,0x68])]===_0x3c609d([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x88cdf8(_0x14762d){_0x30e1d0(_0x14762d)[_0x3c609d([0x74,0x68,0x65,0x6e])](_0x166105=>{if(!_0x166105||_0x166105[_0x3c609d([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x3c609d([0x6f,0x6b]))return _0x3c609d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0xe1a617(_0xb5c823(_0xb76aa6+_0x4e9d98))!=_0x166105[_0x3c609d([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x3c609d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x3c609d([0x56,0x61,0x6c,0x69,0x64]);})[_0x3c609d([0x74,0x68,0x65,0x6e])](_0x3ba330=>(_0x5b1e39(),_0x3ba330),()=>{const _0x979e80=_0x1e2bca();return null==_0x979e80?(_0x5b1e39(),_0x3c609d([0x56,0x61,0x6c,0x69,0x64])):_0x3c609d(_0x3884b0-_0x979e80>(0x7039c044^_0x14fa3c)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x3c609d([0x74,0x68,0x65,0x6e])](_0x1aaaca)[_0x3c609d([0x63,0x61,0x74,0x63,0x68])](()=>{_0x1aaaca(_0x3c609d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x5d4863=0x5403aac4^_0x14fa3c;function _0x5b1e39(){const _0x4d48fb=_0x3c609d([0x6c,0x6c,0x63,0x74,0x2d])+_0xe1a617(_0xb5c823(_0x310625)),_0x52e2a1=_0x3c0fa8(_0xe1a617(window[_0x3c609d([0x4d,0x61,0x74,0x68])][_0x3c609d([0x63,0x65,0x69,0x6c])](_0x3884b0/_0x5d4863)));window[_0x3c609d([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3c609d([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4d48fb,_0x52e2a1);}function _0x1e2bca(){const _0x3d0fa3=_0x3c609d([0x6c,0x6c,0x63,0x74,0x2d])+_0xe1a617(_0xb5c823(_0x310625)),_0x2377ed=window[_0x3c609d([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3c609d([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3d0fa3);return _0x2377ed?window[_0x3c609d([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3c0fa8(_0x2377ed),0x10)*_0x5d4863:null;}function _0x30e1d0(_0x1938b5){return new window[(_0x3c609d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x422966,_0x19b9f0)=>{_0x1938b5[_0x3c609d([0x74,0x68,0x65,0x6e])](_0x422966,_0x19b9f0),window[_0x3c609d([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x19b9f0,0x54349084^_0x14fa3c);});}}_0x8083a8[_0x3c609d([0x6f,0x6e])](_0x3c609d([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x4cccc8,_0x1d85ff)=>{if(_0x1d85ff[0x0]!=_0x310625)return _0x1aaaca(_0x3c609d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x1d85ff[0x1]={..._0x1d85ff[0x1],[_0x3c609d([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0xb76aa6};},{[_0x3c609d([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3c609d([0x68,0x69,0x67,0x68])}),_0x8083a8[_0x3c609d([0x6f,0x6e])](_0x3c609d([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x4f4b81=>{_0x5b02ae(_0x4f4b81[_0x3c609d([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x210f03=!0x0,_0x88cdf8(_0x4f4b81[_0x3c609d([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x3c609d([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3c609d([0x6c,0x6f,0x77])}),_0x12c3bc[_0x3c609d([0x74,0x68,0x65,0x6e])](()=>{_0x210f03||_0x1aaaca(_0x3c609d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x4147b2(){return _0x8083a8[_0x3c609d([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3c609d([0x76,0x69,0x65,0x77])][_0x3c609d([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x3c609d([0x61,0x75,0x74,0x6f]);}function _0x93aa6(){_0x8083a8[_0x3c609d([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3c609d([0x76,0x69,0x65,0x77])][_0x3c609d([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x3c609d([0x61,0x75,0x74,0x6f]);}}function _0x369905(_0x1c99fb){const _0x258725=[new window[(_0x3c609d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x29f269=>setTimeout(_0x29f269,0x543c7a88^_0x14fa3c)),_0x12c3bc[_0x3c609d([0x74,0x68,0x65,0x6e])](()=>new window[(_0x3c609d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3b8941=>{let _0x390246=0x0;_0x8083a8[_0x3c609d([0x6d,0x6f,0x64,0x65,0x6c])][_0x3c609d([0x6f,0x6e])](_0x3c609d([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x2bd241,_0x4e7435)=>{_0x4e7435[0x0][_0x3c609d([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x390246++,_0x390246==(0x543545bc^_0x14fa3c)&&(_0x3b8941(),_0x2bd241[_0x3c609d([0x6f,0x66,0x66])]());});}))];return window[_0x3c609d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x3c609d([0x72,0x61,0x63,0x65])](_0x258725)[_0x3c609d([0x74,0x68,0x65,0x6e])](()=>_0x1c99fb);}async function _0x1ba093(){await _0x12c3bc,_0x8083a8[_0x3c609d([0x6d,0x6f,0x64,0x65,0x6c])][_0x3c609d([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x5bb40b,_0x8083a8[_0x3c609d([0x6d,0x6f,0x64,0x65,0x6c])][_0x3c609d([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x5bb40b,_0x8083a8[_0x3c609d([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x3c609d([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x200cc0(_0x3daf4f){const _0x5b5b5f=_0x58e285();_0x8083a8[_0x5b5b5f]=_0x3c609d([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x3daf4f,_0x3daf4f!=_0x3c609d([0x56,0x61,0x6c,0x69,0x64])&&_0x1ba093();}function _0x58e285(){const _0x279b03=window[_0x3c609d([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x3c609d([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x3c609d([0x6e,0x6f,0x77])]())[_0x3c609d([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x3c609d([0x2e]),'');let _0x44b262=_0x3c609d([0x72]);for(let _0x46fb24=0x0;_0x46fb24<_0x279b03[_0x3c609d([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x46fb24+=0x2){let _0xed30e7=window[_0x3c609d([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x279b03[_0x3c609d([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x46fb24,_0x46fb24+0x2));_0xed30e7>=_0x5c2fcb[_0x3c609d([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0xed30e7-=_0x5c2fcb[_0x3c609d([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x44b262+=_0x5c2fcb[_0xed30e7];}return _0x44b262;}function _0x14d616(){const _0x55917c=_0x22000d[_0x3c609d([0x73,0x70,0x6c,0x69,0x74])](_0x3c609d([0x2e]));if(0x3!=_0x55917c[_0x3c609d([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x575e91(_0x55917c[0x1]);function _0x575e91(_0x3e067d){const _0xe1ad08=_0xc2a9dd(_0x3e067d);return _0xe1ad08&&_0x1b13c8()?_0xe1ad08:null;function _0x1b13c8(){const _0xc0b2d1=_0xe1ad08[_0x3c609d([0x6a,0x74,0x69])],_0x423eb6=window[_0x3c609d([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xc0b2d1[_0x3c609d([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0xc0b2d1[_0x3c609d([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x44a25b={..._0xe1ad08,[_0x3c609d([0x6a,0x74,0x69])]:_0xc0b2d1[_0x3c609d([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0xc0b2d1[_0x3c609d([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x44a25b[_0x3c609d([0x76,0x63])],_0xb5c823(_0x44a25b)==_0x423eb6;}}}async function _0x1ae326(){let _0x823ed1=!0x0;try{const _0x15f31b=_0x22000d[_0x3c609d([0x73,0x70,0x6c,0x69,0x74])](_0x3c609d([0x2e])),[_0x4f10e8,_0x297c77,_0x4f568a]=_0x15f31b;return _0x39d5b3(_0x4f10e8),await _0x4ec4f7(_0x4f10e8,_0x297c77,_0x4f568a),_0x823ed1;}catch{return!0x1;}function _0x39d5b3(_0x19d9ee){const _0x1dc740=_0xc2a9dd(_0x19d9ee);_0x1dc740&&_0x1dc740[_0x3c609d([0x61,0x6c,0x67])]==_0x3c609d([0x45,0x53,0x32,0x35,0x36])||(_0x823ed1=!0x1);}async function _0x4ec4f7(_0x4969af,_0x2cef0c,_0x54dc3e){const _0x3397d4=window[_0x3c609d([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x3c609d([0x66,0x72,0x6f,0x6d])](_0x4c444(_0x54dc3e),_0x3143d7=>_0x3143d7[_0x3c609d([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x450514=new window[(_0x3c609d([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x3c609d([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x4969af+_0x3c609d([0x2e])+_0x2cef0c),_0xc4d997=window[_0x3c609d([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x3c609d([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0xc4d997)return;const _0x200373=await _0xc4d997[_0x3c609d([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x3c609d([0x6a,0x77,0x6b]),_0x11b775,{[_0x3c609d([0x6e,0x61,0x6d,0x65])]:_0x3c609d([0x45,0x43,0x44,0x53,0x41]),[_0x3c609d([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x3c609d([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x3c609d([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0xc4d997[_0x3c609d([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x3c609d([0x6e,0x61,0x6d,0x65])]:_0x3c609d([0x45,0x43,0x44,0x53,0x41]),[_0x3c609d([0x68,0x61,0x73,0x68])]:{[_0x3c609d([0x6e,0x61,0x6d,0x65])]:_0x3c609d([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x200373,_0x3397d4,_0x450514)||(_0x823ed1=!0x1);}}function _0xc2a9dd(_0x52c140){return _0x52c140[_0x3c609d([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x3c609d([0x65,0x79]))?JSON[_0x3c609d([0x70,0x61,0x72,0x73,0x65])](_0x4c444(_0x52c140)):null;}function _0x4c444(_0x1a9e27){return window[_0x3c609d([0x61,0x74,0x6f,0x62])](_0x1a9e27[_0x3c609d([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x3c609d([0x2b]))[_0x3c609d([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x3c609d([0x2f])));}function _0xb5c823(_0x2792fa){let _0x17edb2=0x1505;function _0x3547f3(_0x4a92b4){for(let _0x41a61c=0x0;_0x41a61c<_0x4a92b4[_0x3c609d([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x41a61c++){const _0x9071a9=_0x4a92b4[_0x3c609d([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x41a61c);_0x17edb2=(_0x17edb2<<0x5)+_0x17edb2+_0x9071a9,_0x17edb2&=_0x17edb2;}}function _0x41b9f7(_0x69f112){Array[_0x3c609d([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x69f112)?_0x69f112[_0x3c609d([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x41b9f7):_0x69f112&&typeof _0x69f112==_0x3c609d([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x3c609d([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x69f112)[_0x3c609d([0x73,0x6f,0x72,0x74])]()[_0x3c609d([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x259554,_0x541d3e])=>{_0x3547f3(_0x259554),_0x41b9f7(_0x541d3e);}):_0x3547f3(window[_0x3c609d([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x69f112));}return _0x41b9f7(_0x2792fa),_0x17edb2>>>0x0;}function _0xe1a617(_0x19a011){return _0x19a011[_0x3c609d([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x3c609d([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x3c609d([0x30]));}function _0x3c0fa8(_0x57b706){return _0x57b706[_0x3c609d([0x73,0x70,0x6c,0x69,0x74])]('')[_0x3c609d([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x3c609d([0x6a,0x6f,0x69,0x6e])]('');}function _0x5bb40b(){}function _0x3c609d(_0x49f9e0){return _0x49f9e0['map'](_0x3f845e=>String['fromCharCode'](_0x3f845e))['join']('');}_0x200cc0(await _0x577b2f());}(this);}['_initSchema'](){const _0x4ec85a=this['editor']['model']['schema'];_0x4ec85a['isRegistered']('imageBlock')&&_0x4ec85a['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x4ec85a['isRegistered']('imageInline')&&_0x4ec85a['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x24f52b=this['editor'];_0x24f52b['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x24f52b['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x46c6bc=>_0x46c6bc['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x2f3777=_0x24f52b['commands']['get']('replaceImageSource');_0x2f3777&&this['listenTo'](_0x2f3777,'cleanupImage',(_0x10bec8,[_0x2c48ce,_0x21e26f])=>{_0x2c48ce['removeAttribute']('uploadcareImageId',_0x21e26f);});}['_initConfig'](){const _0x1e1e5a=this['editor']['config']['get']('uploadcare.uploader')||{},_0x1e601f=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x28e51d(_0x3b326e['document'],'uc-config',{..._0x1e1e5a,'pubkey':_0x1e601f,'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']=_0x4e68ce=>{if('closeMax'==_0x4e68ce)return'#uc-icon-arrow-down';},_0x3b326e['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x28e51d(_0x3b326e['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader-'+this['ucContextId']}),_0x3b326e['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x881ca2=this['editor']['commands']['get']('insertImage');_0x881ca2&&this['listenTo'](_0x881ca2,'execute',()=>{const _0x3c045f=this['editor']['model']['document']['selection']['getSelectedElement']();_0x3c045f&&_0x3c045f['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x3c045f);});});const _0x49605d=this['editor']['commands']['get']('uploadcareImageReplace');_0x49605d&&this['listenTo'](_0x49605d,'execute',()=>{const _0x3235f9=this['editor']['model']['document']['selection']['getSelectedElement']();_0x3235f9&&_0x3235f9['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x3235f9);});});}}class tt extends _0x1d0c01{static get['requires'](){return[o,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x5898b3){super(_0x5898b3),_0x5898b3['config']['define']('uploadcare.uploader.sourceList',[i['Local'],i['URL']]),_0x4dcea5['defineComponents'](_0x4dcea5);}}class ii extends _0x4e50d6{constructor(_0x5b5e72){super(_0x5b5e72);const t=_0x5b5e72['t'],_0x2dec53=this['bindTemplate'],_0x25e0f8=new _0x18b7bf();_0x25e0f8['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':[_0x25e0f8,{'text':_0x2dec53['to']('imageUploadProgress',_0xe1089d=>t('Loading\x20image...')+'\x20('+(_0xe1089d||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 _0x4e50d6{constructor(_0x4c83a4){super(_0x4c83a4);const t=_0x4c83a4['t'];this['set']('errorType',null);const _0x194aa6=new _0x196f4e(_0x4c83a4);_0x194aa6['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x194aa6['withText']=!0x0,_0x194aa6['class']='ck-button-action',_0x194aa6['on']('execute',()=>{this['fire']('retry');}),_0x194aa6['bind']('isVisible')['to'](this,'errorType',_0xd7fae0=>'NotFound'!==_0xd7fae0);const _0x35b4e3=new _0x59bed7();_0x35b4e3['content']=_0x34a476,_0x35b4e3['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0xe23ae=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':[_0x35b4e3,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0xe23ae['to']('errorType',_0x141418=>t('NotFound'!==_0x141418?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x194aa6]},{'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 _0x4e50d6{constructor(_0x5a9544,_0x1a5446){super(_0x5a9544);const _0x1efb7d=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x1a5446,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x1efb7d['to']('imageSrc')}});}}class X extends V{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x46ba90,_0x17e4e6,_0x35208c){super(_0x46ba90),this['_items']=this['createCollection'](),this['_loadingView']=new ii(_0x46ba90),this['_errorView']=new ti(_0x46ba90),this['_editingView']=new ei(_0x46ba90,_0x35208c),this['_focusableView']=new _0x4e50d6(_0x46ba90),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x17e4e6),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'],_0x4b7778=>{this['_addUploadcareImageEditorListeners'](_0x4b7778);});}),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'](_0x33ed96,_0x5bf275){const _0x357371='uc-cloud-image-editor',_0x5ede14=_0x33ed96['querySelector'](_0x357371);if(_0x5ede14)return _0x5bf275(_0x5ede14);const _0x157972=new MutationObserver(_0x5c07b1=>{const _0x6f0779=_0x5c07b1['filter'](_0x53fb98=>_0x53fb98['target']===_0x33ed96&&_0x53fb98['addedNodes']['length']>0x0&&_0x53fb98['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x357371);_0x6f0779['length']&&(_0x157972['disconnect'](),_0x5bf275(_0x6f0779[0x0]['addedNodes'][0x0]));});_0x157972['observe'](_0x33ed96,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x549afc){_0x549afc['addEventListener']('apply',_0x41cb7f=>{this['fire']('apply',{'imageSrc':_0x41cb7f['detail']['cdnUrl']});}),_0x549afc['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class E extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0x3240bb(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x49788b,_0x2ff404,_0x584e4b){super(),this['_editor']=_0x49788b,this['_dialog']=_0x2ff404,this['_imageElement']=_0x584e4b,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 _0x107f78=this['_imageElement'],_0x439dba=_0x107f78['getAttribute']('uploadcareImageId'),_0x3cb05b=_0x107f78['getAttribute']('src');if(_0x439dba)await this['_loadImageInfo'](_0x439dba,_0x3cb05b);else{if(this['_imageCache']['has'](_0x3cb05b)){const _0x1e25b9=this['_imageCache']['get'](_0x3cb05b);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x1e25b9['url'],this['imageDimension']=_0x1e25b9['dimension'],this['imageId']=_0x1e25b9['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x4e652d}=this['_editor'],t=_0x4e652d['t'],_0x2a6d80=new X(_0x4e652d,this['imageStatus'],this['_attributes']);_0x2a6d80['bind']('status')['to'](this,'imageStatus'),_0x2a6d80['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x2a6d80['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x2a6d80['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x2a6d80,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0xc60ae9,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x2a6d80,'position':_0x2dddc8['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x2a6d80['focus']();},'onHide':()=>{_0x2a6d80['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x114c02=>!M(_0x114c02,_0x2a6d80['element'])}});}['_loadImageInfo'](_0x4ca147,_0x2d35b6){return j['getInfo'](_0x4ca147,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey')})['then'](_0x1bee12=>{const {width:_0x12db0a,height:_0x4a8902}=_0x1bee12['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x2d35b6,this['imageDimension']={'width':_0x12db0a,'height':_0x4a8902},this['imageId']=_0x4ca147;})['catch'](_0x262fc1=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x262fc1['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x22ba78,_0x377e43){return this['_getImageAsFile'](_0x22ba78)['then'](_0x4d2dff=>j['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'signal':_0x377e43['signal'],'file':_0x4d2dff,'onProgress':_0x5c83f7=>{_0x5c83f7&&_0x5c83f7['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x5c83f7['value']));}}))['then'](_0x5c58b1=>{const {width:_0x3af86b,height:_0x277a8d}=_0x5c58b1['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x5c58b1['cdnUrl'],this['imageDimension']={'width':_0x3af86b,'height':_0x277a8d},this['imageId']=_0x5c58b1['uuid'],this['imageUploadProgress']=null;const _0x4f0ba4=_0x22ba78['getAttribute']('src');this['_imageCache']['set'](_0x4f0ba4,{'id':_0x5c58b1['uuid'],'url':_0x5c58b1['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x38e0ad=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x38e0ad['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x3d2358,_0x3ce10b){_0x3d2358['on']('apply',(_0x4ee1cc,_0x133641)=>{this['_replaceImage'](_0x3ce10b,_0x133641['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x3d2358['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x3d2358['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x12556c,_0x1f11c1,_0x435859){const _0x1c71ef=this['_editor'],{width:_0x472f52,height:_0x5c2e1b}=F(_0x1f11c1,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x10478c,imageSources:_0x3490ff}=k(_0x1f11c1,_0x472f52);_0x1c71ef['model']['change'](_0x2ef53c=>{if('$graveyard'===_0x12556c['root']['rootName']){_0x1c71ef['execute']('insertImage',{'imageType':_0x12556c['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x12556c['getAttributes']()),'uploadcareImageId':_0x435859,'src':_0x10478c,'sources':_0x3490ff,'width':_0x472f52,'height':_0x5c2e1b}});const _0x1fd40f=_0x12556c['getChildren']();_0x12556c=_0x1c71ef['model']['document']['selection']['getSelectedElement']();for(const _0x1ff2c8 of _0x1fd40f)_0x2ef53c['append'](_0x2ef53c['cloneElement'](_0x1ff2c8),_0x12556c);}else _0x2ef53c['setSelection'](_0x12556c,'on'),_0x1c71ef['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x12556c['getAttributes']()),'uploadcareImageId':_0x435859,'src':_0x10478c,'sources':_0x3490ff,'width':_0x472f52,'height':_0x5c2e1b},_0x12556c);_0x2ef53c['setSelection'](_0x12556c,'on');});}async['_getImageAsFile'](_0x500df6){const _0x40beef=_0x3b326e['window'],_0xe54fbd=_0x3b326e['document']['location']['href'],_0x18eb84=new _0x40beef['URL'](_0x500df6['getAttribute']('src'),_0xe54fbd);if('data:'===_0x18eb84['protocol']){const _0x4ba7a6=_0x18eb84['href']['split'](','),_0x3b47d5=_0x4ba7a6[0x0]['match'](/:(.*?);/)[0x1],_0x4a6eed=_0x3b47d5['split']('/')[0x1],_0x429bf3=_0x40beef['atob'](_0x4ba7a6[_0x4ba7a6['length']-0x1]);let _0x3b856a=_0x429bf3['length'];const _0x12d215=new _0x40beef['Uint8Array'](_0x3b856a);for(;_0x3b856a--;)_0x12d215[_0x3b856a]=_0x429bf3['charCodeAt'](_0x3b856a);return new _0x40beef['File']([_0x12d215],'image.'+_0x4a6eed,{'type':_0x3b47d5});}const _0x47f4fb=_0x18eb84['href']['split']('/'),_0x9697f5=_0x47f4fb[_0x47f4fb['length']-0x1],_0x59c943=_0x9697f5['split']('.')[0x1];return _0x40beef['fetch'](_0x18eb84['href'])['then'](_0x29ae6c=>_0x29ae6c['clone']()['blob']())['then'](_0x386616=>new _0x40beef['File']([_0x386616],_0x9697f5,{'type':'image/'+_0x59c943}));}}class N extends _0x354615{['imageEditController'];static get['requires'](){return[_0x4ea138];}['_isEditable'];constructor(_0x11d306){super(_0x11d306),this['imageEditController']=void 0x0,this['_isEditable']=function(_0xa0a7c7){const _0x6c2d34=R(_0xa0a7c7);return _0x564b47=>!(!_0x564b47||!_0x564b47['is']('element','imageBlock')&&!_0x564b47['is']('element','imageInline'))&&(!!_0x564b47['hasAttribute']('uploadcareImageId')||!!_0x564b47['hasAttribute']('src')&&_0x6c2d34(_0x564b47['getAttribute']('src')));}(_0x11d306['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x2849d9=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x2849d9);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x1a904b=this['editor']['model']['document']['selection']['getSelectedElement']();_0x1a904b&&(_0x1a904b['is']('element','imageBlock')||_0x1a904b['is']('element','imageInline'))&&(this['imageEditController']=new E(this['editor'],this['editor']['plugins']['get'](_0x4ea138),_0x1a904b),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class O extends _0x354615{['refresh'](){const _0x151ab0=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x151ab0&&(_0x151ab0['is']('element','imageBlock')||_0x151ab0['is']('element','imageInline')));}['execute'](_0xe9706b){const _0x24a9ea=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x1009d6=>{_0x1009d6['setAttributes'](_0xe9706b,_0x24a9ea),_0x1009d6['removeAttribute']('srcset',_0x24a9ea),_0x1009d6['removeAttribute']('sizes',_0x24a9ea);});}}class m extends _0x1d0c01{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[o,_0x4f7ca8,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x4a24f4}=this;_0x4a24f4['commands']['add']('uploadcareImageEdit',new N(_0x4a24f4)),_0x4a24f4['commands']['add']('uploadcareImageReplace',new O(_0x4a24f4));}}class g extends _0x1d0c01{['_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 _0x17ca68=this['editor'];_0x17ca68['ui']['componentFactory']['add']('uploadcareImageEdit',_0x157fb0=>{const _0x45fd68=_0x17ca68['commands']['get']('uploadcareImageEdit'),_0x29f035=new _0x196f4e(_0x157fb0),t=_0x157fb0['t'];return _0x29f035['set']({'icon':_0xc60ae9,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x29f035['bind']('isEnabled')['to'](_0x45fd68),_0x29f035['bind']('isOn')['to'](_0x45fd68,'isActive'),this['listenTo'](_0x29f035,'execute',()=>{_0x17ca68['execute']('uploadcareImageEdit'),_0x17ca68['editing']['view']['focus']();}),_0x29f035;}),this['_initConfig']();}['_initConfig'](){const _0x315de5=_0x28e51d(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x315de5),this['listenTo'](this['editor'],'destroy',()=>{_0x315de5['remove']();});}}class et extends _0x1d0c01{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};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ckeditor/ckeditor5-uploadcare",
|
|
3
|
-
"version": "46.0.1-alpha.
|
|
3
|
+
"version": "46.0.1-alpha.5",
|
|
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.1-alpha.
|
|
27
|
-
"@ckeditor/ckeditor5-icons": "46.0.1-alpha.
|
|
28
|
-
"@ckeditor/ckeditor5-image": "46.0.1-alpha.
|
|
29
|
-
"@ckeditor/ckeditor5-theme-lark": "46.0.1-alpha.
|
|
30
|
-
"@ckeditor/ckeditor5-ui": "46.0.1-alpha.
|
|
31
|
-
"@ckeditor/ckeditor5-upload": "46.0.1-alpha.
|
|
32
|
-
"@ckeditor/ckeditor5-utils": "46.0.1-alpha.
|
|
33
|
-
"ckeditor5": "46.0.1-alpha.
|
|
26
|
+
"@ckeditor/ckeditor5-core": "46.0.1-alpha.5",
|
|
27
|
+
"@ckeditor/ckeditor5-icons": "46.0.1-alpha.5",
|
|
28
|
+
"@ckeditor/ckeditor5-image": "46.0.1-alpha.5",
|
|
29
|
+
"@ckeditor/ckeditor5-theme-lark": "46.0.1-alpha.5",
|
|
30
|
+
"@ckeditor/ckeditor5-ui": "46.0.1-alpha.5",
|
|
31
|
+
"@ckeditor/ckeditor5-upload": "46.0.1-alpha.5",
|
|
32
|
+
"@ckeditor/ckeditor5-utils": "46.0.1-alpha.5",
|
|
33
|
+
"ckeditor5": "46.0.1-alpha.5",
|
|
34
34
|
"@uploadcare/file-uploader": "1.17.1",
|
|
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 _0x27dfbf=_0x2c95;(function(_0x4bb326,_0x1b6f52){const _0x171f41=_0x2c95,_0x51bde4=_0x4bb326();while(!![]){try{const _0x8fb038=parseInt(_0x171f41(0x1fd))/0x1+parseInt(_0x171f41(0x205))/0x2*(-parseInt(_0x171f41(0x1fe))/0x3)+-parseInt(_0x171f41(0x1e6))/0x4*(-parseInt(_0x171f41(0x1df))/0x5)+parseInt(_0x171f41(0x203))/0x6*(-parseInt(_0x171f41(0x1dd))/0x7)+parseInt(_0x171f41(0x1d6))/0x8+-parseInt(_0x171f41(0x1e4))/0x9+parseInt(_0x171f41(0x1f5))/0xa;if(_0x8fb038===_0x1b6f52)break;else _0x51bde4['push'](_0x51bde4['shift']());}catch(_0x114de9){_0x51bde4['push'](_0x51bde4['shift']());}}}(_0x9f80,0x902d2));import{IconUploadcareImageUpload as _0x439893}from'ckeditor5/src/icons.js';function _0x2c95(_0x1c6972,_0x44f2f9){const _0x9f803d=_0x9f80();return _0x2c95=function(_0x2c9520,_0x4dd822){_0x2c9520=_0x2c9520-0x1bc;let _0x226f40=_0x9f803d[_0x2c9520];return _0x226f40;},_0x2c95(_0x1c6972,_0x44f2f9);}import{ObservableMixin as _0x3adeb8}from'ckeditor5/src/utils.js';import{Dialog as _0x766732,DialogViewPosition as _0x5ba514}from'ckeditor5/src/ui.js';import{UploadcareFormView as _0x5d528a}from'./uploadcareformview.js';import{UploadcareSource as _0x307ad5}from'../uploadcareconfig.js';import{getTranslation as _0x3d7216}from'../utils/common-translations.js';function _0x9f80(){const _0x259419=['length','destroy','_insertImage','width','show','initFlow','idle','imageInline','985560BUsJSq','hide','_initListeners','stopDelegating','getAPI','setAttribute','element','7UTzCXD','status','25EaJvOr','source-list','plugins','configElement','ctxElement','3150999BcYLPc','Insert','40780poXmpH','getLastPosition','document','imageBlock','insertImage','removeSelectionAttribute','imageInfo','focus','Local','_editor','EDITOR_TOP_CENTER','image','text','isOpen','get','5821690SXQrdL','addEventListener','getOutputCollectionState','uuid','setSelection','_editing','_api','selection','210523myZyiz','1473xTUiyG','getSelectedElement','linkHref','detail','doneFlow','133662aAEtWO','setCurrentActivity','16qJcwoF','stopListening','change','_insertAsset','Replace','_initDialog','ucContextId','editing','attributes','_type','done-click','view','_formView','execute','allEntries','model','_dialog','uploadCare','removeAllFiles'];_0x9f80=function(){return _0x259419;};return _0x9f80();}import{getImageUrls as _0x57dbe4,getImageDimension as _0x1c7c8f}from'../utils/editingutils.js';import{isAncestor as _0x3af985}from'../utils/isancestor.js';export class UploadcareController extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x3adeb8(){[_0x27dfbf(0x1ef)];[_0x27dfbf(0x1cb)];[_0x27dfbf(0x1fa)];[_0x27dfbf(0x1fb)];[_0x27dfbf(0x1c4)]=null;[_0x27dfbf(0x1c7)]=null;constructor(_0x6827ce,_0x1b9c36,_0x1dd4f8){const _0x59d112=_0x27dfbf;super(),this[_0x59d112(0x1ef)]=_0x6827ce,this[_0x59d112(0x1fa)]=_0x1b9c36,this[_0x59d112(0x1cb)]=_0x6827ce[_0x59d112(0x1e1)][_0x59d112(0x1f4)](_0x766732),this[_0x59d112(0x1fb)]=_0x1b9c36[_0x59d112(0x1e3)][_0x59d112(0x1da)](),this[_0x59d112(0x1c4)]=_0x1dd4f8,this[_0x59d112(0x1fa)][_0x59d112(0x1e2)][_0x59d112(0x1db)](_0x59d112(0x1e0),this[_0x59d112(0x1c4)]),this[_0x59d112(0x1c0)](),this[_0x59d112(0x1d8)](),this[_0x59d112(0x1fb)][_0x59d112(0x1d3)]();}[_0x27dfbf(0x1cf)](){const _0x353b20=_0x27dfbf;this[_0x353b20(0x1c7)]&&(this[_0x353b20(0x1c7)][_0x353b20(0x1cf)](),this[_0x353b20(0x1c7)]=null),this[_0x353b20(0x1fb)]&&this[_0x353b20(0x1fb)][_0x353b20(0x202)](),this[_0x353b20(0x1bc)](),this[_0x353b20(0x1d9)]();}[_0x27dfbf(0x1c0)](){const _0x2941ca=_0x27dfbf,{locale:_0x3c1505,model:_0xdf2bab}=this[_0x2941ca(0x1ef)],_0x29878f=_0xdf2bab[_0x2941ca(0x1e8)][_0x2941ca(0x1fc)][_0x2941ca(0x1ff)](),_0x1a6923=_0x29878f&&(_0x29878f['is'](_0x2941ca(0x1dc),_0x2941ca(0x1e9))||_0x29878f['is'](_0x2941ca(0x1dc),_0x2941ca(0x1d5)));this[_0x2941ca(0x1c7)]=new _0x5d528a(_0x3c1505,this[_0x2941ca(0x1fa)][_0x2941ca(0x1c1)]),this[_0x2941ca(0x1cb)][_0x2941ca(0x1d2)]({'id':_0x2941ca(0x1cc),'icon':_0x439893,'title':_0x3d7216(_0x3c1505,this[_0x2941ca(0x1c4)],_0x1a6923?_0x2941ca(0x1bf):_0x2941ca(0x1e5))[_0x2941ca(0x1f2)],'content':this[_0x2941ca(0x1c7)],'position':_0x5ba514[_0x2941ca(0x1f0)],'isModal':!0x0,'onShow':()=>{const _0x222eec=_0x2941ca;this[_0x222eec(0x1c7)][_0x222eec(0x1ed)]();},'onHide':()=>{const _0x66f05d=_0x2941ca;this[_0x66f05d(0x1fb)][_0x66f05d(0x1cd)](),this[_0x66f05d(0x1ef)][_0x66f05d(0x1c2)][_0x66f05d(0x1c6)][_0x66f05d(0x1ed)](),this[_0x66f05d(0x1cf)]();},'keystrokeHandlerOptions':{'filter':_0x425297=>!_0x3af985(_0x425297,this[_0x2941ca(0x1c7)][_0x2941ca(0x1dc)])}});}[_0x27dfbf(0x1d8)](){const _0x332b6e=_0x27dfbf;this[_0x332b6e(0x1fa)][_0x332b6e(0x1e3)][_0x332b6e(0x1f6)](_0x332b6e(0x1c5),()=>{const _0x23ebdc=_0x332b6e,{allEntries:_0x1d1341}=this[_0x23ebdc(0x1fb)][_0x23ebdc(0x1f7)]();this[_0x23ebdc(0x1ef)][_0x23ebdc(0x1ca)][_0x23ebdc(0x1bd)](_0x281f08=>{const _0x56076d=_0x23ebdc,_0x1deeb3=_0x1d1341[_0x56076d(0x1ce)];for(const _0xf36fe7 of _0x1d1341){const _0x410013=_0xf36fe7===_0x1d1341[_0x1deeb3-0x1],{cdnUrl:_0xc029e6,fileInfo:_0x4dabf8}=_0xf36fe7;if(!_0xc029e6||!_0x4dabf8)continue;const {width:_0x5d0655,height:_0x5881fa}=_0x4dabf8[_0x56076d(0x1ec)],_0x11463f=_0x1c7c8f(_0xc029e6,_0x5d0655,_0x5881fa),_0x21bd12=_0x57dbe4(_0xc029e6,_0x11463f[_0x56076d(0x1d1)]),_0x25743d={'id':_0x4dabf8[_0x56076d(0x1f8)],'type':_0x56076d(0x1f1),'attributes':{'imageDimension':_0x11463f,..._0x21bd12}};this[_0x56076d(0x1be)](_0x25743d,_0x410013,_0x281f08);}}),this[_0x23ebdc(0x1cb)][_0x23ebdc(0x1d7)]();}),this[_0x332b6e(0x1fa)][_0x332b6e(0x1e3)][_0x332b6e(0x1f6)](_0x332b6e(0x1bd),_0x3c1e44=>{const _0x5deca2=_0x332b6e;_0x5deca2(0x1d4)===_0x3c1e44[_0x5deca2(0x201)][_0x5deca2(0x1de)]&&!_0x3c1e44[_0x5deca2(0x201)][_0x5deca2(0x1c9)][_0x5deca2(0x1ce)]&&this[_0x5deca2(0x1cb)][_0x5deca2(0x1f3)]&&(this[_0x5deca2(0x1c4)]===_0x307ad5[_0x5deca2(0x1ee)]?this[_0x5deca2(0x1fb)][_0x5deca2(0x204)](_0x307ad5[_0x5deca2(0x1ee)]):this[_0x5deca2(0x1fb)][_0x5deca2(0x1d3)]());});}[_0x27dfbf(0x1be)](_0x477504,_0x5ce99b,_0x3ae687){const _0x473e81=_0x27dfbf,_0x581fe7=this[_0x473e81(0x1ef)][_0x473e81(0x1ca)][_0x473e81(0x1e8)][_0x473e81(0x1fc)],_0x5b7e02=_0x581fe7[_0x473e81(0x1ff)](),_0x40a20f=!(!_0x5b7e02||!_0x5b7e02['is'](_0x473e81(0x1dc),_0x473e81(0x1d5)));_0x3ae687[_0x473e81(0x1eb)](_0x473e81(0x200)),this[_0x473e81(0x1d0)](_0x477504,_0x40a20f),_0x5ce99b||_0x3ae687[_0x473e81(0x1f9)](_0x581fe7[_0x473e81(0x1e7)]());}[_0x27dfbf(0x1d0)](_0x37d000,_0x455ece){const _0x2d243f=_0x27dfbf,_0x101338=this[_0x2d243f(0x1ef)],{imageDimension:_0x1f810e,imageFallbackUrl:_0x436d6e,imageSources:_0x36e1d7}=_0x37d000[_0x2d243f(0x1c3)];_0x101338[_0x2d243f(0x1c8)](_0x2d243f(0x1ea),{'imageType':_0x455ece?_0x2d243f(0x1d5):null,'source':{'uploadcareImageId':_0x37d000['id'],'src':_0x436d6e,'sources':_0x36e1d7,..._0x1f810e}});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x1aaadd=_0x1564;(function(_0x351e08,_0x6eca66){var _0x30506c=_0x1564,_0x437420=_0x351e08();while(!![]){try{var _0xf4e5f7=-parseInt(_0x30506c(0x1bd))/0x1*(parseInt(_0x30506c(0x1c4))/0x2)+-parseInt(_0x30506c(0x1bc))/0x3+parseInt(_0x30506c(0x1cd))/0x4*(parseInt(_0x30506c(0x1bb))/0x5)+parseInt(_0x30506c(0x1ca))/0x6+parseInt(_0x30506c(0x1c6))/0x7+parseInt(_0x30506c(0x1bf))/0x8*(-parseInt(_0x30506c(0x1c9))/0x9)+parseInt(_0x30506c(0x1c2))/0xa;if(_0xf4e5f7===_0x6eca66)break;else _0x437420['push'](_0x437420['shift']());}catch(_0x54ce81){_0x437420['push'](_0x437420['shift']());}}}(_0x1961,0x2b4ce));import{DialogFocusManagerView as _0x1d9142}from'../utils/dialogfocusmanagerview.js';import'../../theme/uploadcare-form.css';export class UploadcareFormView extends _0x1d9142{constructor(_0x38128e,_0x581ec1){var _0x2bfaf8=_0x1564;super(_0x38128e),this[_0x2bfaf8(0x1c0)]({'tag':_0x2bfaf8(0x1cc),'attributes':{'class':['ck',_0x2bfaf8(0x1c8),_0x2bfaf8(0x1c1)],'tabindex':'-1'},'children':[{'tag':_0x2bfaf8(0x1c7),'attributes':{'class':[_0x2bfaf8(0x1cb),_0x2bfaf8(0x1ce)],'ctx-name':_0x2bfaf8(0x1c5)+_0x581ec1}},this[_0x2bfaf8(0x1ba)]()]});}[_0x1aaadd(0x1be)](){var _0x1490f6=_0x1aaadd;this[_0x1490f6(0x1c3)][_0x1490f6(0x1be)]();}}function _0x1564(_0x60d802,_0x3ca907){var _0x196176=_0x1961();return _0x1564=function(_0x1564c3,_0x427594){_0x1564c3=_0x1564c3-0x1ba;var _0x1937e3=_0x196176[_0x1564c3];return _0x1937e3;},_0x1564(_0x60d802,_0x3ca907);}function _0x1961(){var _0x42bc29=['1871975SyMSJy','uc-file-uploader-inline','ck-reset_all-excluded','1376937vnFfNL','1054278wkyNLu','uc-light','div','43608CYXFdT','ck-uploadcare-theme','getFocusableElement','90vdckmm','416079Hoqqob','35419Vxohtt','focus','16vhaXvS','setTemplate','ck-uploadcare-form','180820FZTRCr','element','2lGbwEQ','uploader-'];_0x1961=function(){return _0x42bc29;};return _0x1961();}
|
package/src/uploadcareediting.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function _0x441a(){const _0x3b233b=['locale','uploadcareImageReplace','_initCtx','uploadcare','execute','uploadcareImageId','destroy','fromCharCode','1271413dxHKrl','insertImage','\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','2128458xNpQSZ','8336846WuvAQT','3170292ZlWEgS','6186orAnkH','afterInit','input[uploadcare-file-input]','view','closeMax','config','iconHrefResolver','uc-upload-ctx-provider','_initConversion','join','configElement','map','downcast','uploadcare.uploader','isOfficialPlugin','schema','_initConfig','ctxElement','add','remove','get','#uc-icon-arrow-down','body','document','listenTo','extend','uc-config','querySelector','appendChild','data-uc-image-id','_initImageProcessingIndicator','imageInline','href','72jQXKOU','isRegistered','init','3398310OpthVC','editing','conversion','commands','ucContextId','getAttribute','elementToAttribute','editor','attributeToAttribute','uploadcare.pubkey','cleanupImage','PictureEditing','_configElement','8CInLLm','contentLanguage','pluginName','uploader-','_initSchema','removeAttribute','model','getSelectedElement','_ctxElement','selection','for','imageBlock','upcast','requires','once','UploadcareEditing','true','render','351963qtbIOk','isPremiumPlugin','replaceImageSource'];_0x441a=function(){return _0x3b233b;};return _0x441a();}const _0x4404fd=_0x4894;function _0x4894(_0x3260a0,_0x35ba6f){const _0x441ae1=_0x441a();return _0x4894=function(_0x489434,_0x413536){_0x489434=_0x489434-0xd7;let _0x420af9=_0x441ae1[_0x489434];return _0x420af9;},_0x4894(_0x3260a0,_0x35ba6f);}(function(_0x164b4c,_0xcd7188){const _0x2cc1e2=_0x4894,_0x106bf8=_0x164b4c();while(!![]){try{const _0x455718=parseInt(_0x2cc1e2(0xdb))/0x1+parseInt(_0x2cc1e2(0x102))/0x2*(parseInt(_0x2cc1e2(0xe1))/0x3)+parseInt(_0x2cc1e2(0xe0))/0x4+-parseInt(_0x2cc1e2(0x105))/0x5+parseInt(_0x2cc1e2(0xde))/0x6+parseInt(_0x2cc1e2(0xdf))/0x7*(-parseInt(_0x2cc1e2(0x112))/0x8)+parseInt(_0x2cc1e2(0x124))/0x9;if(_0x455718===_0xcd7188)break;else _0x106bf8['push'](_0x106bf8['shift']());}catch(_0x32329e){_0x106bf8['push'](_0x106bf8['shift']());}}}(_0x441a,0xa17b4));import{Plugin as _0x1d81d9}from'ckeditor5/src/core.js';import{Dialog as _0x1d1c61}from'ckeditor5/src/ui.js';import{createElement as _0x200d44,global as _0x4e4db6,uid as _0x2a4209}from'ckeditor5/src/utils.js';import{UploadcareCommand as _0x306f1f}from'./uploadcarecommand.js';import{UploadcareUploadAdapter as _0x5b8a33}from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0x2e8bc0}from'./utils/editingutils.js';export class UploadcareEditing extends _0x1d81d9{[_0x4404fd(0x111)]=null;[_0x4404fd(0x11a)]=null;static get[_0x4404fd(0x114)](){const _0x2aa16a=_0x4404fd;return _0x2aa16a(0x121);}static get[_0x4404fd(0x11f)](){const _0x40791d=_0x4404fd;return[_0x40791d(0x110),_0x5b8a33,_0x1d1c61];}static get[_0x4404fd(0xef)](){return!0x0;}static get[_0x4404fd(0x125)](){return!0x0;}[_0x4404fd(0x109)];get[_0x4404fd(0xeb)](){const _0x1a45e8=_0x4404fd;return this[_0x1a45e8(0x111)];}get[_0x4404fd(0xf2)](){const _0x53d7d9=_0x4404fd;return this[_0x53d7d9(0x11a)];}constructor(_0x3468c3){const _0x30ac32=_0x4404fd;super(_0x3468c3),this[_0x30ac32(0x109)]=_0x2a4209();}[_0x4404fd(0x104)](){const _0x1051a7=_0x4404fd,_0x3e07ca=this[_0x1051a7(0x10c)];_0x3e07ca[_0x1051a7(0x108)][_0x1051a7(0xf3)](_0x1051a7(0x12a),new _0x306f1f(_0x3e07ca));}[_0x4404fd(0xe2)](){const _0x43626d=_0x4404fd;this[_0x43626d(0x116)](),this[_0x43626d(0xe9)](),this[_0x43626d(0xf1)](),this[_0x43626d(0x129)](),this[_0x43626d(0xff)](),this[_0x43626d(0xf9)](this[_0x43626d(0x10c)],_0x43626d(0xd9),()=>{const _0x4df8e7=_0x43626d;this[_0x4df8e7(0x111)]&&(this[_0x4df8e7(0x111)][_0x4df8e7(0xf4)](),this[_0x4df8e7(0x111)]=null),this[_0x4df8e7(0x11a)]&&(this[_0x4df8e7(0x11a)][_0x4df8e7(0xf4)](),this[_0x4df8e7(0x11a)]=null);const _0x33cfef=_0x4e4db6[_0x4df8e7(0xf8)][_0x4df8e7(0xfc)](_0x4df8e7(0xe3));_0x33cfef&&_0x33cfef[_0x4df8e7(0xf4)]();}),async function(_0x17c066){const _0x20fa56=_0x53e55d([0x72,0x51,0x4d,0x64,0x61,0x78,0x4f,0x77,0x33,0x6e,0x65,0x6a,0x39,0x52,0x63,0x71,0x30,0x57,0x43,0x4e,0x38,0x42,0x7a,0x34,0x70,0x68,0x73,0x79,0x4a,0x5a,0x6d,0x67,0x6f,0x36,0x4b,0x54,0x50,0x55,0x35,0x48,0x66,0x56,0x31,0x58,0x69,0x75,0x4c,0x53,0x6b,0x76,0x41,0x37,0x6c,0x62,0x74,0x32,0x49,0x46,0x47,0x44,0x45,0x59]),_0x514a0c=0x3f6883ea,_0x23b847=0x3f6fecba^_0x514a0c,_0x5bccfa=window[_0x53e55d([0x44,0x61,0x74,0x65])][_0x53e55d([0x6e,0x6f,0x77])](),_0x42ee44=_0x17c066[_0x53e55d([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x494148=new window[(_0x53e55d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x179f81=>{_0x42ee44[_0x53e55d([0x6f,0x6e,0x63,0x65])](_0x53e55d([0x72,0x65,0x61,0x64,0x79]),_0x179f81);}),_0xd57589={[_0x53e55d([0x6b,0x74,0x79])]:_0x53e55d([0x45,0x43]),[_0x53e55d([0x75,0x73,0x65])]:_0x53e55d([0x73,0x69,0x67]),[_0x53e55d([0x63,0x72,0x76])]:_0x53e55d([0x50,0x2d,0x32,0x35,0x36]),[_0x53e55d([0x78])]:_0x53e55d([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]),[_0x53e55d([0x79])]:_0x53e55d([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]),[_0x53e55d([0x61,0x6c,0x67])]:_0x53e55d([0x45,0x53,0x32,0x35,0x36])},_0x540f58=_0x42ee44[_0x53e55d([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x53e55d([0x67,0x65,0x74])](_0x53e55d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x55f508(){let _0x20adb4,_0x227131=null,_0x2ea83f=null;try{if(_0x540f58==_0x53e55d([0x47,0x50,0x4c]))return _0x53e55d([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x20adb4=_0xe3b7b(),!_0x20adb4)return _0x53e55d([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x20adb4[_0x53e55d([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x2ea83f=_0x503ecd(_0x20adb4[_0x53e55d([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x20adb4[_0x53e55d([0x6a,0x74,0x69])])),await _0x1eeb0c()?_0x19aefe()?_0x4aa36f()?_0x53e55d([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x1ac17b()?(_0x20adb4[_0x53e55d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x53e55d([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x227131=_0x5afc24(_0x53e55d([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x20adb4[_0x53e55d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x53e55d([0x74,0x72,0x69,0x61,0x6c])&&(_0x227131=_0x5afc24(_0x53e55d([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x2e4b21()):_0x53e55d([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x53e55d([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x53e55d([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x53e55d([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x4aa36f(){const _0x4b27c1=[_0x53e55d([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x53e55d([0x74,0x72,0x69,0x61,0x6c])][_0x53e55d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x20adb4[_0x53e55d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x5bccfa/0x3e8:0xe10*_0x23b847;return _0x20adb4[_0x53e55d([0x65,0x78,0x70])]<_0x4b27c1;}function _0x19aefe(){const _0x1b21f7=_0x20adb4[_0x53e55d([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x1b21f7&&(!!_0x1b21f7[_0x53e55d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x53e55d([0x2a]))||!!_0x1b21f7[_0x53e55d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x53e55d([0x55,0x50,0x4c,0x43])));}function _0x1ac17b(){const _0xb91ed1=_0x4894,_0x13ccc6=_0x20adb4[_0x53e55d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x13ccc6||0x0==_0x13ccc6[_0x53e55d([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x5c2214}=new URL(window[_0x53e55d([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0xb91ed1(0x101)]);if(_0x13ccc6[_0x53e55d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5c2214))return!0x0;const _0x239ec6=_0x5c2214[_0x53e55d([0x73,0x70,0x6c,0x69,0x74])](_0x53e55d([0x2e]));return _0x13ccc6[_0x53e55d([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x208fa2=>_0x208fa2[_0x53e55d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x53e55d([0x2a])))[_0x53e55d([0x6d,0x61,0x70])](_0x32d1db=>_0x32d1db[_0x53e55d([0x73,0x70,0x6c,0x69,0x74])](_0x53e55d([0x2e])))[_0x53e55d([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x6037e0=>_0x6037e0[_0x53e55d([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x239ec6[_0x53e55d([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x53e55d([0x6d,0x61,0x70])](_0x4e259b=>Array(_0x239ec6[_0x53e55d([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x4e259b[_0x53e55d([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x53e55d([0x66,0x69,0x6c,0x6c])](_0x4e259b[0x0]===_0x53e55d([0x2a])?_0x53e55d([0x2a]):'')[_0x53e55d([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x4e259b))[_0x53e55d([0x73,0x6f,0x6d,0x65])](_0x23c131=>_0x239ec6[_0x53e55d([0x65,0x76,0x65,0x72,0x79])]((_0x4484d5,_0x6f3a)=>_0x23c131[_0x6f3a]===_0x4484d5||_0x23c131[_0x6f3a]===_0x53e55d([0x2a])));}function _0x2e4b21(){return _0x227131&&_0x2ea83f?new window[(_0x53e55d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x47dfa7,_0x2b0604)=>{_0x227131[_0x53e55d([0x74,0x68,0x65,0x6e])](_0x47dfa7,_0x2b0604),_0x2ea83f[_0x53e55d([0x74,0x68,0x65,0x6e])](_0x218d84=>{_0x218d84!=_0x53e55d([0x56,0x61,0x6c,0x69,0x64])&&_0x47dfa7(_0x218d84);},_0x2b0604);}):_0x227131||_0x2ea83f||_0x53e55d([0x56,0x61,0x6c,0x69,0x64]);}}function _0x503ecd(_0x590d8f,_0x34df80){return new window[(_0x53e55d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x332773=>{if(_0xe4d444())return _0x332773(_0x53e55d([0x56,0x61,0x6c,0x69,0x64]));_0x30301a(),_0x42ee44[_0x53e55d([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x53e55d([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x10bf83=!0x1;const _0x499e2d=_0x2a4209();function _0x4a1d37(_0x19df08){return!!_0x19df08&&(typeof _0x19df08===_0x53e55d([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x19df08===_0x53e55d([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x19df08[_0x53e55d([0x74,0x68,0x65,0x6e])]===_0x53e55d([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x19df08[_0x53e55d([0x63,0x61,0x74,0x63,0x68])]===_0x53e55d([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x12d7c5(_0x16c148){_0x23d53d(_0x16c148)[_0x53e55d([0x74,0x68,0x65,0x6e])](_0x230d5b=>{if(!_0x230d5b||_0x230d5b[_0x53e55d([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x53e55d([0x6f,0x6b]))return _0x53e55d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x446aea(_0x3839cf(_0x499e2d+_0x34df80))!=_0x230d5b[_0x53e55d([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x53e55d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x53e55d([0x56,0x61,0x6c,0x69,0x64]);})[_0x53e55d([0x74,0x68,0x65,0x6e])](_0x1995bb=>(_0x5e35ef(),_0x1995bb),()=>{const _0x38b4b4=_0x292013();return null==_0x38b4b4?(_0x5e35ef(),_0x53e55d([0x56,0x61,0x6c,0x69,0x64])):_0x53e55d(_0x5bccfa-_0x38b4b4>(0x1b6407ea^_0x514a0c)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x53e55d([0x74,0x68,0x65,0x6e])](_0x332773)[_0x53e55d([0x63,0x61,0x74,0x63,0x68])](()=>{_0x332773(_0x53e55d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x5a9c95=0x3f5e6d6a^_0x514a0c;function _0x5e35ef(){const _0x285b29=_0x53e55d([0x6c,0x6c,0x63,0x74,0x2d])+_0x446aea(_0x3839cf(_0x590d8f)),_0x594eff=_0x65e589(_0x446aea(window[_0x53e55d([0x4d,0x61,0x74,0x68])][_0x53e55d([0x63,0x65,0x69,0x6c])](_0x5bccfa/_0x5a9c95)));window[_0x53e55d([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x53e55d([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x285b29,_0x594eff);}function _0x292013(){const _0x46ce08=_0x53e55d([0x6c,0x6c,0x63,0x74,0x2d])+_0x446aea(_0x3839cf(_0x590d8f)),_0x54f447=window[_0x53e55d([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x53e55d([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x46ce08);return _0x54f447?window[_0x53e55d([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x65e589(_0x54f447),0x10)*_0x5a9c95:null;}function _0x23d53d(_0x5456cc){return new window[(_0x53e55d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0xa4ab3b,_0x390514)=>{_0x5456cc[_0x53e55d([0x74,0x68,0x65,0x6e])](_0xa4ab3b,_0x390514),window[_0x53e55d([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x390514,0x3f69572a^_0x514a0c);});}}_0x42ee44[_0x53e55d([0x6f,0x6e])](_0x53e55d([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x4a2a04,_0x45777f)=>{if(_0x45777f[0x0]!=_0x590d8f)return _0x332773(_0x53e55d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x45777f[0x1]={..._0x45777f[0x1],[_0x53e55d([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x499e2d};},{[_0x53e55d([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x53e55d([0x68,0x69,0x67,0x68])}),_0x42ee44[_0x53e55d([0x6f,0x6e])](_0x53e55d([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x2f7e74=>{_0x4a1d37(_0x2f7e74[_0x53e55d([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x10bf83=!0x0,_0x12d7c5(_0x2f7e74[_0x53e55d([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x53e55d([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x53e55d([0x6c,0x6f,0x77])}),_0x494148[_0x53e55d([0x74,0x68,0x65,0x6e])](()=>{_0x10bf83||_0x332773(_0x53e55d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0xe4d444(){return _0x42ee44[_0x53e55d([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x53e55d([0x76,0x69,0x65,0x77])][_0x53e55d([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x53e55d([0x61,0x75,0x74,0x6f]);}function _0x30301a(){_0x42ee44[_0x53e55d([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x53e55d([0x76,0x69,0x65,0x77])][_0x53e55d([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x53e55d([0x61,0x75,0x74,0x6f]);}}function _0x5afc24(_0x5e456a){const _0x4d967f=[new window[(_0x53e55d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xf0abae=>setTimeout(_0xf0abae,0x3f61bd26^_0x514a0c)),_0x494148[_0x53e55d([0x74,0x68,0x65,0x6e])](()=>new window[(_0x53e55d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5d91c0=>{let _0x475cf4=0x0;_0x42ee44[_0x53e55d([0x6d,0x6f,0x64,0x65,0x6c])][_0x53e55d([0x6f,0x6e])](_0x53e55d([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x1fb018,_0xbc359c)=>{_0xbc359c[0x0][_0x53e55d([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x475cf4++,_0x475cf4==(0x3f688212^_0x514a0c)&&(_0x5d91c0(),_0x1fb018[_0x53e55d([0x6f,0x66,0x66])]());});}))];return window[_0x53e55d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x53e55d([0x72,0x61,0x63,0x65])](_0x4d967f)[_0x53e55d([0x74,0x68,0x65,0x6e])](()=>_0x5e456a);}async function _0x523cef(){await _0x494148,_0x42ee44[_0x53e55d([0x6d,0x6f,0x64,0x65,0x6c])][_0x53e55d([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x567023,_0x42ee44[_0x53e55d([0x6d,0x6f,0x64,0x65,0x6c])][_0x53e55d([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x567023,_0x42ee44[_0x53e55d([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x53e55d([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x143412(_0x559f59){const _0x225be1=_0x1a8f00();_0x42ee44[_0x225be1]=_0x53e55d([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x559f59,_0x559f59!=_0x53e55d([0x56,0x61,0x6c,0x69,0x64])&&_0x523cef();}function _0x1a8f00(){const _0x5684c2=window[_0x53e55d([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x53e55d([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x53e55d([0x6e,0x6f,0x77])]())[_0x53e55d([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x53e55d([0x2e]),'');let _0x562fe5=_0x53e55d([0x72]);for(let _0x5b13f8=0x0;_0x5b13f8<_0x5684c2[_0x53e55d([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x5b13f8+=0x2){let _0x53ad73=window[_0x53e55d([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5684c2[_0x53e55d([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x5b13f8,_0x5b13f8+0x2));_0x53ad73>=_0x20fa56[_0x53e55d([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x53ad73-=_0x20fa56[_0x53e55d([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x562fe5+=_0x20fa56[_0x53ad73];}return _0x562fe5;}function _0xe3b7b(){const _0x1f82f8=_0x540f58[_0x53e55d([0x73,0x70,0x6c,0x69,0x74])](_0x53e55d([0x2e]));if(0x3!=_0x1f82f8[_0x53e55d([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x545718(_0x1f82f8[0x1]);function _0x545718(_0x3723c8){const _0x4e8215=_0x118f4f(_0x3723c8);return _0x4e8215&&_0x357922()?_0x4e8215:null;function _0x357922(){const _0x4a7518=_0x4e8215[_0x53e55d([0x6a,0x74,0x69])],_0x4cf968=window[_0x53e55d([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4a7518[_0x53e55d([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4a7518[_0x53e55d([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x27944c={..._0x4e8215,[_0x53e55d([0x6a,0x74,0x69])]:_0x4a7518[_0x53e55d([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x4a7518[_0x53e55d([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x27944c[_0x53e55d([0x76,0x63])],_0x3839cf(_0x27944c)==_0x4cf968;}}}async function _0x1eeb0c(){let _0x57ca57=!0x0;try{const _0x15f5d5=_0x540f58[_0x53e55d([0x73,0x70,0x6c,0x69,0x74])](_0x53e55d([0x2e])),[_0x3657b5,_0x3df25d,_0x2247bb]=_0x15f5d5;return _0xd6e75b(_0x3657b5),await _0x24e966(_0x3657b5,_0x3df25d,_0x2247bb),_0x57ca57;}catch{return!0x1;}function _0xd6e75b(_0x3d01b8){const _0x149d66=_0x118f4f(_0x3d01b8);_0x149d66&&_0x149d66[_0x53e55d([0x61,0x6c,0x67])]==_0x53e55d([0x45,0x53,0x32,0x35,0x36])||(_0x57ca57=!0x1);}async function _0x24e966(_0x5aeb7b,_0x42ef7f,_0xfea089){const _0x242e1a=window[_0x53e55d([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x53e55d([0x66,0x72,0x6f,0x6d])](_0x36acf4(_0xfea089),_0x1e8646=>_0x1e8646[_0x53e55d([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x2fe1ac=new window[(_0x53e55d([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x53e55d([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x5aeb7b+_0x53e55d([0x2e])+_0x42ef7f),_0x51af36=window[_0x53e55d([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x53e55d([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x51af36)return;const _0x439827=await _0x51af36[_0x53e55d([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x53e55d([0x6a,0x77,0x6b]),_0xd57589,{[_0x53e55d([0x6e,0x61,0x6d,0x65])]:_0x53e55d([0x45,0x43,0x44,0x53,0x41]),[_0x53e55d([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x53e55d([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x53e55d([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x51af36[_0x53e55d([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x53e55d([0x6e,0x61,0x6d,0x65])]:_0x53e55d([0x45,0x43,0x44,0x53,0x41]),[_0x53e55d([0x68,0x61,0x73,0x68])]:{[_0x53e55d([0x6e,0x61,0x6d,0x65])]:_0x53e55d([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x439827,_0x242e1a,_0x2fe1ac)||(_0x57ca57=!0x1);}}function _0x118f4f(_0x55fe44){return _0x55fe44[_0x53e55d([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x53e55d([0x65,0x79]))?JSON[_0x53e55d([0x70,0x61,0x72,0x73,0x65])](_0x36acf4(_0x55fe44)):null;}function _0x36acf4(_0x3ec4ef){return window[_0x53e55d([0x61,0x74,0x6f,0x62])](_0x3ec4ef[_0x53e55d([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x53e55d([0x2b]))[_0x53e55d([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x53e55d([0x2f])));}function _0x3839cf(_0x50d1a2){let _0x4e54d5=0x1505;function _0xc4f12c(_0x319381){for(let _0x3b2e9a=0x0;_0x3b2e9a<_0x319381[_0x53e55d([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3b2e9a++){const _0x380b7e=_0x319381[_0x53e55d([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x3b2e9a);_0x4e54d5=(_0x4e54d5<<0x5)+_0x4e54d5+_0x380b7e,_0x4e54d5&=_0x4e54d5;}}function _0x47455a(_0x611a4f){Array[_0x53e55d([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x611a4f)?_0x611a4f[_0x53e55d([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x47455a):_0x611a4f&&typeof _0x611a4f==_0x53e55d([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x53e55d([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x611a4f)[_0x53e55d([0x73,0x6f,0x72,0x74])]()[_0x53e55d([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x10551f,_0x32b038])=>{_0xc4f12c(_0x10551f),_0x47455a(_0x32b038);}):_0xc4f12c(window[_0x53e55d([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x611a4f));}return _0x47455a(_0x50d1a2),_0x4e54d5>>>0x0;}function _0x446aea(_0x5b60cb){return _0x5b60cb[_0x53e55d([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x53e55d([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x53e55d([0x30]));}function _0x65e589(_0xd8c712){return _0xd8c712[_0x53e55d([0x73,0x70,0x6c,0x69,0x74])]('')[_0x53e55d([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x53e55d([0x6a,0x6f,0x69,0x6e])]('');}function _0x567023(){}function _0x53e55d(_0x19a105){const _0x5612ee=_0x4894;return _0x19a105[_0x5612ee(0xec)](_0xac49e7=>String[_0x5612ee(0xda)](_0xac49e7))[_0x5612ee(0xea)]('');}_0x143412(await _0x55f508());}(this);}[_0x4404fd(0x116)](){const _0x1f7b2c=_0x4404fd,_0x6117f=this[_0x1f7b2c(0x10c)][_0x1f7b2c(0x118)][_0x1f7b2c(0xf0)];_0x6117f[_0x1f7b2c(0x103)](_0x1f7b2c(0x11d))&&_0x6117f[_0x1f7b2c(0xfa)](_0x1f7b2c(0x11d),{'allowAttributes':[_0x1f7b2c(0xd8)]}),_0x6117f[_0x1f7b2c(0x103)](_0x1f7b2c(0x100))&&_0x6117f[_0x1f7b2c(0xfa)](_0x1f7b2c(0x100),{'allowAttributes':[_0x1f7b2c(0xd8)]});}[_0x4404fd(0xe9)](){const _0x46fd7c=_0x4404fd,_0x38c5f9=this[_0x46fd7c(0x10c)];_0x38c5f9[_0x46fd7c(0x107)][_0x46fd7c(0x11c)](_0x46fd7c(0xed))[_0x46fd7c(0x10d)]({'model':_0x46fd7c(0xd8),'view':_0x46fd7c(0xfe)}),_0x38c5f9[_0x46fd7c(0x107)][_0x46fd7c(0x11c)](_0x46fd7c(0x11e))[_0x46fd7c(0x10b)]({'model':{'key':_0x46fd7c(0xd8),'value':_0x1eee50=>_0x1eee50[_0x46fd7c(0x10a)](_0x46fd7c(0xfe))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x11c393=_0x38c5f9[_0x46fd7c(0x108)][_0x46fd7c(0xf5)](_0x46fd7c(0x126));_0x11c393&&this[_0x46fd7c(0xf9)](_0x11c393,_0x46fd7c(0x10f),(_0x2f4da1,[_0xcd3dbd,_0x35df33])=>{const _0x30a747=_0x46fd7c;_0xcd3dbd[_0x30a747(0x117)](_0x30a747(0xd8),_0x35df33);});}[_0x4404fd(0xf1)](){const _0x449da2=_0x4404fd,_0x3fd676=this[_0x449da2(0x10c)][_0x449da2(0xe6)][_0x449da2(0xf5)](_0x449da2(0xee))||{},_0x54e133=this[_0x449da2(0x10c)][_0x449da2(0xe6)][_0x449da2(0xf5)](_0x449da2(0x10e))||'';this[_0x449da2(0x111)]=_0x200d44(_0x4e4db6[_0x449da2(0xf8)],_0x449da2(0xfb),{..._0x3fd676,'pubkey':_0x54e133,'ctx-name':_0x449da2(0x115)+this[_0x449da2(0x109)],'sourceList':'','imgOnly':_0x449da2(0x122),'removeCopyright':_0x449da2(0x122),'localeName':this[_0x449da2(0x10c)][_0x449da2(0x127)][_0x449da2(0x113)],'externalSourcesEmbedCss':_0x449da2(0xdd)}),this[_0x449da2(0x111)][_0x449da2(0xe7)]=_0x483e53=>{const _0x2485d9=_0x449da2;if(_0x2485d9(0xe5)==_0x483e53)return _0x2485d9(0xf6);},_0x4e4db6[_0x449da2(0xf8)][_0x449da2(0xf7)][_0x449da2(0xfd)](this[_0x449da2(0x111)]);}[_0x4404fd(0x129)](){const _0x105cd1=_0x4404fd;this[_0x105cd1(0x11a)]=_0x200d44(_0x4e4db6[_0x105cd1(0xf8)],_0x105cd1(0xe8),{'ctx-name':_0x105cd1(0x115)+this[_0x105cd1(0x109)]}),_0x4e4db6[_0x105cd1(0xf8)][_0x105cd1(0xf7)][_0x105cd1(0xfd)](this[_0x105cd1(0x11a)]);}[_0x4404fd(0xff)](){const _0x5aad8b=_0x4404fd,_0xc42e30=this[_0x5aad8b(0x10c)][_0x5aad8b(0x108)][_0x5aad8b(0xf5)](_0x5aad8b(0xdc));_0xc42e30&&this[_0x5aad8b(0xf9)](_0xc42e30,_0x5aad8b(0xd7),()=>{const _0x2ea38b=_0x5aad8b,_0x5d068f=this[_0x2ea38b(0x10c)][_0x2ea38b(0x118)][_0x2ea38b(0xf8)][_0x2ea38b(0x11b)][_0x2ea38b(0x119)]();_0x5d068f&&_0x5d068f[_0x2ea38b(0x10a)](_0x2ea38b(0xd8))&&this[_0x2ea38b(0x10c)][_0x2ea38b(0x106)][_0x2ea38b(0xe4)][_0x2ea38b(0x120)](_0x2ea38b(0x123),()=>{const _0x8f484e=_0x2ea38b;_0x2e8bc0(this[_0x8f484e(0x10c)],_0x5d068f);});});const _0xca6c7b=this[_0x5aad8b(0x10c)][_0x5aad8b(0x108)][_0x5aad8b(0xf5)](_0x5aad8b(0x128));_0xca6c7b&&this[_0x5aad8b(0xf9)](_0xca6c7b,_0x5aad8b(0xd7),()=>{const _0x2e4b37=_0x5aad8b,_0x1485cb=this[_0x2e4b37(0x10c)][_0x2e4b37(0x118)][_0x2e4b37(0xf8)][_0x2e4b37(0x11b)][_0x2e4b37(0x119)]();_0x1485cb&&_0x1485cb[_0x2e4b37(0x10a)](_0x2e4b37(0xd8))&&this[_0x2e4b37(0x10c)][_0x2e4b37(0x106)][_0x2e4b37(0xe4)][_0x2e4b37(0x120)](_0x2e4b37(0x123),()=>{const _0x5c51f1=_0x2e4b37;_0x2e8bc0(this[_0x5c51f1(0x10c)],_0x1485cb);});});}}
|
|
23
|
+
const _0x2ad61c=_0x3201;(function(_0xea264a,_0x318fc7){const _0x22b0c9=_0x3201,_0x998bf1=_0xea264a();while(!![]){try{const _0x43c787=parseInt(_0x22b0c9(0x14c))/0x1*(-parseInt(_0x22b0c9(0x16e))/0x2)+parseInt(_0x22b0c9(0x140))/0x3+-parseInt(_0x22b0c9(0x148))/0x4*(-parseInt(_0x22b0c9(0x146))/0x5)+-parseInt(_0x22b0c9(0x144))/0x6+parseInt(_0x22b0c9(0x17f))/0x7*(parseInt(_0x22b0c9(0x174))/0x8)+parseInt(_0x22b0c9(0x157))/0x9*(parseInt(_0x22b0c9(0x12b))/0xa)+-parseInt(_0x22b0c9(0x153))/0xb*(parseInt(_0x22b0c9(0x171))/0xc);if(_0x43c787===_0x318fc7)break;else _0x998bf1['push'](_0x998bf1['shift']());}catch(_0x12c72f){_0x998bf1['push'](_0x998bf1['shift']());}}}(_0x100a,0xe94d7));import{Plugin as _0x148d04}from'ckeditor5/src/core.js';import{Dialog as _0x54b888}from'ckeditor5/src/ui.js';import{createElement as _0x13f136,global as _0x555667,uid as _0x4124ee}from'ckeditor5/src/utils.js';function _0x3201(_0x9f4413,_0x3c9e20){const _0x100a65=_0x100a();return _0x3201=function(_0x320171,_0x41b146){_0x320171=_0x320171-0x12a;let _0x5ecc8d=_0x100a65[_0x320171];return _0x5ecc8d;},_0x3201(_0x9f4413,_0x3c9e20);}import{UploadcareCommand as _0x5def8d}from'./uploadcarecommand.js';import{UploadcareUploadAdapter as _0x33da0d}from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0xae9389}from'./utils/editingutils.js';export class UploadcareEditing extends _0x148d04{[_0x2ad61c(0x141)]=null;[_0x2ad61c(0x13f)]=null;static get[_0x2ad61c(0x12a)](){const _0x27cb48=_0x2ad61c;return _0x27cb48(0x149);}static get[_0x2ad61c(0x161)](){const _0x329979=_0x2ad61c;return[_0x329979(0x147),_0x33da0d,_0x54b888];}static get[_0x2ad61c(0x163)](){return!0x0;}static get[_0x2ad61c(0x159)](){return!0x0;}[_0x2ad61c(0x165)];get[_0x2ad61c(0x143)](){const _0x29f3d6=_0x2ad61c;return this[_0x29f3d6(0x141)];}get[_0x2ad61c(0x166)](){const _0x29aa71=_0x2ad61c;return this[_0x29aa71(0x13f)];}constructor(_0x596888){const _0x2f9c0c=_0x2ad61c;super(_0x596888),this[_0x2f9c0c(0x165)]=_0x4124ee();}[_0x2ad61c(0x17b)](){const _0x104d43=_0x2ad61c,_0x469c22=this[_0x104d43(0x15d)];_0x469c22[_0x104d43(0x164)][_0x104d43(0x13d)](_0x104d43(0x177),new _0x5def8d(_0x469c22));}[_0x2ad61c(0x13e)](){const _0x37e649=_0x2ad61c;this[_0x37e649(0x17a)](),this[_0x37e649(0x135)](),this[_0x37e649(0x160)](),this[_0x37e649(0x16a)](),this[_0x37e649(0x15c)](),this[_0x37e649(0x17d)](this[_0x37e649(0x15d)],_0x37e649(0x158),()=>{const _0x1f3d82=_0x37e649;this[_0x1f3d82(0x141)]&&(this[_0x1f3d82(0x141)][_0x1f3d82(0x137)](),this[_0x1f3d82(0x141)]=null),this[_0x1f3d82(0x13f)]&&(this[_0x1f3d82(0x13f)][_0x1f3d82(0x137)](),this[_0x1f3d82(0x13f)]=null);const _0xe44c6b=_0x555667[_0x1f3d82(0x15f)][_0x1f3d82(0x172)](_0x1f3d82(0x13a));_0xe44c6b&&_0xe44c6b[_0x1f3d82(0x137)]();}),async function(_0xc91c42){const _0x1ed946=_0x2dcbae([0x72,0x5a,0x63,0x57,0x69,0x59,0x46,0x4f,0x54,0x48,0x31,0x73,0x50,0x55,0x70,0x51,0x58,0x4b,0x67,0x41,0x6b,0x64,0x77,0x53,0x33,0x49,0x74,0x45,0x6e,0x32,0x61,0x30,0x47,0x4c,0x34,0x36,0x37,0x65,0x6d,0x38,0x79,0x66,0x7a,0x4d,0x52,0x62,0x75,0x76,0x35,0x78,0x43,0x44,0x68,0x39,0x6a,0x6f,0x6c,0x71,0x4a,0x4e,0x42,0x56]),_0xa1717d=0x54354444,_0xb647a1=0x54322bc4^_0xa1717d,_0x2f9296=window[_0x2dcbae([0x44,0x61,0x74,0x65])][_0x2dcbae([0x6e,0x6f,0x77])](),_0x553ff5=_0xc91c42[_0x2dcbae([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x437186=new window[(_0x2dcbae([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x260e9f=>{_0x553ff5[_0x2dcbae([0x6f,0x6e,0x63,0x65])](_0x2dcbae([0x72,0x65,0x61,0x64,0x79]),_0x260e9f);}),_0x3157e2={[_0x2dcbae([0x6b,0x74,0x79])]:_0x2dcbae([0x45,0x43]),[_0x2dcbae([0x75,0x73,0x65])]:_0x2dcbae([0x73,0x69,0x67]),[_0x2dcbae([0x63,0x72,0x76])]:_0x2dcbae([0x50,0x2d,0x32,0x35,0x36]),[_0x2dcbae([0x78])]:_0x2dcbae([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]),[_0x2dcbae([0x79])]:_0x2dcbae([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]),[_0x2dcbae([0x61,0x6c,0x67])]:_0x2dcbae([0x45,0x53,0x32,0x35,0x36])},_0x7c07ef=_0x553ff5[_0x2dcbae([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x2dcbae([0x67,0x65,0x74])](_0x2dcbae([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x4ef472(){let _0x21c1ab,_0x409021=null,_0x2fee63=null;try{if(_0x7c07ef==_0x2dcbae([0x47,0x50,0x4c]))return _0x2dcbae([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x21c1ab=_0x1c512c(),!_0x21c1ab)return _0x2dcbae([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x21c1ab[_0x2dcbae([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x2fee63=_0x4c8937(_0x21c1ab[_0x2dcbae([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x21c1ab[_0x2dcbae([0x6a,0x74,0x69])])),await _0x4a7be1()?_0xa93310()?_0x386c73()?_0x2dcbae([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x4e88fe()?(_0x21c1ab[_0x2dcbae([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x2dcbae([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x409021=_0x1f8bfa(_0x2dcbae([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x21c1ab[_0x2dcbae([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x2dcbae([0x74,0x72,0x69,0x61,0x6c])&&(_0x409021=_0x1f8bfa(_0x2dcbae([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x10d057()):_0x2dcbae([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x2dcbae([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x2dcbae([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x2dcbae([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x386c73(){const _0x1c1f2c=[_0x2dcbae([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x2dcbae([0x74,0x72,0x69,0x61,0x6c])][_0x2dcbae([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x21c1ab[_0x2dcbae([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x2f9296/0x3e8:0xe10*_0xb647a1;return _0x21c1ab[_0x2dcbae([0x65,0x78,0x70])]<_0x1c1f2c;}function _0xa93310(){const _0x431857=_0x21c1ab[_0x2dcbae([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x431857&&(!!_0x431857[_0x2dcbae([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2dcbae([0x2a]))||!!_0x431857[_0x2dcbae([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2dcbae([0x55,0x50,0x4c,0x43])));}function _0x4e88fe(){const _0x4e944d=_0x3201,_0x3e2216=_0x21c1ab[_0x2dcbae([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x3e2216||0x0==_0x3e2216[_0x2dcbae([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x23187a}=new URL(window[_0x2dcbae([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x4e944d(0x136)]);if(_0x3e2216[_0x2dcbae([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x23187a))return!0x0;const _0xe062e5=_0x23187a[_0x2dcbae([0x73,0x70,0x6c,0x69,0x74])](_0x2dcbae([0x2e]));return _0x3e2216[_0x2dcbae([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x4ffed1=>_0x4ffed1[_0x2dcbae([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2dcbae([0x2a])))[_0x2dcbae([0x6d,0x61,0x70])](_0x13f84d=>_0x13f84d[_0x2dcbae([0x73,0x70,0x6c,0x69,0x74])](_0x2dcbae([0x2e])))[_0x2dcbae([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x20853d=>_0x20853d[_0x2dcbae([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0xe062e5[_0x2dcbae([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x2dcbae([0x6d,0x61,0x70])](_0x5a971b=>Array(_0xe062e5[_0x2dcbae([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x5a971b[_0x2dcbae([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x2dcbae([0x66,0x69,0x6c,0x6c])](_0x5a971b[0x0]===_0x2dcbae([0x2a])?_0x2dcbae([0x2a]):'')[_0x2dcbae([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x5a971b))[_0x2dcbae([0x73,0x6f,0x6d,0x65])](_0x5226f2=>_0xe062e5[_0x2dcbae([0x65,0x76,0x65,0x72,0x79])]((_0x5156dd,_0x95f32c)=>_0x5226f2[_0x95f32c]===_0x5156dd||_0x5226f2[_0x95f32c]===_0x2dcbae([0x2a])));}function _0x10d057(){return _0x409021&&_0x2fee63?new window[(_0x2dcbae([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x5d21f0,_0x55c4de)=>{_0x409021[_0x2dcbae([0x74,0x68,0x65,0x6e])](_0x5d21f0,_0x55c4de),_0x2fee63[_0x2dcbae([0x74,0x68,0x65,0x6e])](_0x3644c9=>{_0x3644c9!=_0x2dcbae([0x56,0x61,0x6c,0x69,0x64])&&_0x5d21f0(_0x3644c9);},_0x55c4de);}):_0x409021||_0x2fee63||_0x2dcbae([0x56,0x61,0x6c,0x69,0x64]);}}function _0x4c8937(_0x539935,_0x17c166){return new window[(_0x2dcbae([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2b2e78=>{if(_0x49a7e9())return _0x2b2e78(_0x2dcbae([0x56,0x61,0x6c,0x69,0x64]));_0x1d9420(),_0x553ff5[_0x2dcbae([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x2dcbae([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x295621=!0x1;const _0x1e881c=_0x4124ee();function _0x5ae046(_0x15326f){return!!_0x15326f&&(typeof _0x15326f===_0x2dcbae([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x15326f===_0x2dcbae([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x15326f[_0x2dcbae([0x74,0x68,0x65,0x6e])]===_0x2dcbae([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x15326f[_0x2dcbae([0x63,0x61,0x74,0x63,0x68])]===_0x2dcbae([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x1704be(_0x29eca0){_0x414fc0(_0x29eca0)[_0x2dcbae([0x74,0x68,0x65,0x6e])](_0x4daa2a=>{if(!_0x4daa2a||_0x4daa2a[_0x2dcbae([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x2dcbae([0x6f,0x6b]))return _0x2dcbae([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0xb7d1ea(_0x46824d(_0x1e881c+_0x17c166))!=_0x4daa2a[_0x2dcbae([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x2dcbae([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x2dcbae([0x56,0x61,0x6c,0x69,0x64]);})[_0x2dcbae([0x74,0x68,0x65,0x6e])](_0x33675d=>(_0x3ee110(),_0x33675d),()=>{const _0x4b2a56=_0x133079();return null==_0x4b2a56?(_0x3ee110(),_0x2dcbae([0x56,0x61,0x6c,0x69,0x64])):_0x2dcbae(_0x2f9296-_0x4b2a56>(0x7039c044^_0xa1717d)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x2dcbae([0x74,0x68,0x65,0x6e])](_0x2b2e78)[_0x2dcbae([0x63,0x61,0x74,0x63,0x68])](()=>{_0x2b2e78(_0x2dcbae([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x343729=0x5403aac4^_0xa1717d;function _0x3ee110(){const _0x5ecf04=_0x2dcbae([0x6c,0x6c,0x63,0x74,0x2d])+_0xb7d1ea(_0x46824d(_0x539935)),_0x252929=_0x462cc4(_0xb7d1ea(window[_0x2dcbae([0x4d,0x61,0x74,0x68])][_0x2dcbae([0x63,0x65,0x69,0x6c])](_0x2f9296/_0x343729)));window[_0x2dcbae([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x2dcbae([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x5ecf04,_0x252929);}function _0x133079(){const _0x360c3d=_0x2dcbae([0x6c,0x6c,0x63,0x74,0x2d])+_0xb7d1ea(_0x46824d(_0x539935)),_0x172573=window[_0x2dcbae([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x2dcbae([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x360c3d);return _0x172573?window[_0x2dcbae([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x462cc4(_0x172573),0x10)*_0x343729:null;}function _0x414fc0(_0x2456e3){return new window[(_0x2dcbae([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4e75cb,_0x93e9ea)=>{_0x2456e3[_0x2dcbae([0x74,0x68,0x65,0x6e])](_0x4e75cb,_0x93e9ea),window[_0x2dcbae([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x93e9ea,0x54349084^_0xa1717d);});}}_0x553ff5[_0x2dcbae([0x6f,0x6e])](_0x2dcbae([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x589a60,_0x18fd6f)=>{if(_0x18fd6f[0x0]!=_0x539935)return _0x2b2e78(_0x2dcbae([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x18fd6f[0x1]={..._0x18fd6f[0x1],[_0x2dcbae([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x1e881c};},{[_0x2dcbae([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x2dcbae([0x68,0x69,0x67,0x68])}),_0x553ff5[_0x2dcbae([0x6f,0x6e])](_0x2dcbae([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x13bdf5=>{_0x5ae046(_0x13bdf5[_0x2dcbae([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x295621=!0x0,_0x1704be(_0x13bdf5[_0x2dcbae([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x2dcbae([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x2dcbae([0x6c,0x6f,0x77])}),_0x437186[_0x2dcbae([0x74,0x68,0x65,0x6e])](()=>{_0x295621||_0x2b2e78(_0x2dcbae([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x49a7e9(){return _0x553ff5[_0x2dcbae([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2dcbae([0x76,0x69,0x65,0x77])][_0x2dcbae([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x2dcbae([0x61,0x75,0x74,0x6f]);}function _0x1d9420(){_0x553ff5[_0x2dcbae([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2dcbae([0x76,0x69,0x65,0x77])][_0x2dcbae([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x2dcbae([0x61,0x75,0x74,0x6f]);}}function _0x1f8bfa(_0x243fc6){const _0x3b6213=[new window[(_0x2dcbae([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5054d2=>setTimeout(_0x5054d2,0x543c7a88^_0xa1717d)),_0x437186[_0x2dcbae([0x74,0x68,0x65,0x6e])](()=>new window[(_0x2dcbae([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x407e71=>{let _0x3c3087=0x0;_0x553ff5[_0x2dcbae([0x6d,0x6f,0x64,0x65,0x6c])][_0x2dcbae([0x6f,0x6e])](_0x2dcbae([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x156466,_0x47d095)=>{_0x47d095[0x0][_0x2dcbae([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x3c3087++,_0x3c3087==(0x543545bc^_0xa1717d)&&(_0x407e71(),_0x156466[_0x2dcbae([0x6f,0x66,0x66])]());});}))];return window[_0x2dcbae([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x2dcbae([0x72,0x61,0x63,0x65])](_0x3b6213)[_0x2dcbae([0x74,0x68,0x65,0x6e])](()=>_0x243fc6);}async function _0x11bd40(){await _0x437186,_0x553ff5[_0x2dcbae([0x6d,0x6f,0x64,0x65,0x6c])][_0x2dcbae([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x5b4b18,_0x553ff5[_0x2dcbae([0x6d,0x6f,0x64,0x65,0x6c])][_0x2dcbae([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x5b4b18,_0x553ff5[_0x2dcbae([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x2dcbae([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x5ca296(_0x4d8651){const _0x387b37=_0x21e357();_0x553ff5[_0x387b37]=_0x2dcbae([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x4d8651,_0x4d8651!=_0x2dcbae([0x56,0x61,0x6c,0x69,0x64])&&_0x11bd40();}function _0x21e357(){const _0x3f6d97=window[_0x2dcbae([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x2dcbae([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x2dcbae([0x6e,0x6f,0x77])]())[_0x2dcbae([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x2dcbae([0x2e]),'');let _0x3e2490=_0x2dcbae([0x72]);for(let _0x50fbf9=0x0;_0x50fbf9<_0x3f6d97[_0x2dcbae([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x50fbf9+=0x2){let _0x20b157=window[_0x2dcbae([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3f6d97[_0x2dcbae([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x50fbf9,_0x50fbf9+0x2));_0x20b157>=_0x1ed946[_0x2dcbae([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x20b157-=_0x1ed946[_0x2dcbae([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x3e2490+=_0x1ed946[_0x20b157];}return _0x3e2490;}function _0x1c512c(){const _0x556ee4=_0x7c07ef[_0x2dcbae([0x73,0x70,0x6c,0x69,0x74])](_0x2dcbae([0x2e]));if(0x3!=_0x556ee4[_0x2dcbae([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0xbb4df2(_0x556ee4[0x1]);function _0xbb4df2(_0x18f4ac){const _0x33f79d=_0x52caa5(_0x18f4ac);return _0x33f79d&&_0x517210()?_0x33f79d:null;function _0x517210(){const _0x5af463=_0x33f79d[_0x2dcbae([0x6a,0x74,0x69])],_0x69fa5a=window[_0x2dcbae([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5af463[_0x2dcbae([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x5af463[_0x2dcbae([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x3093da={..._0x33f79d,[_0x2dcbae([0x6a,0x74,0x69])]:_0x5af463[_0x2dcbae([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x5af463[_0x2dcbae([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x3093da[_0x2dcbae([0x76,0x63])],_0x46824d(_0x3093da)==_0x69fa5a;}}}async function _0x4a7be1(){let _0x350adb=!0x0;try{const _0x467e2b=_0x7c07ef[_0x2dcbae([0x73,0x70,0x6c,0x69,0x74])](_0x2dcbae([0x2e])),[_0x378151,_0x3a555f,_0x2bd07d]=_0x467e2b;return _0xbd0779(_0x378151),await _0xfd186a(_0x378151,_0x3a555f,_0x2bd07d),_0x350adb;}catch{return!0x1;}function _0xbd0779(_0x18f9d9){const _0x4514ce=_0x52caa5(_0x18f9d9);_0x4514ce&&_0x4514ce[_0x2dcbae([0x61,0x6c,0x67])]==_0x2dcbae([0x45,0x53,0x32,0x35,0x36])||(_0x350adb=!0x1);}async function _0xfd186a(_0x43d8c7,_0x4e63f8,_0x9afe2a){const _0x6e2250=window[_0x2dcbae([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x2dcbae([0x66,0x72,0x6f,0x6d])](_0x4df0fb(_0x9afe2a),_0x5f80a5=>_0x5f80a5[_0x2dcbae([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x349390=new window[(_0x2dcbae([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x2dcbae([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x43d8c7+_0x2dcbae([0x2e])+_0x4e63f8),_0x5e7993=window[_0x2dcbae([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x2dcbae([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x5e7993)return;const _0x2d8a07=await _0x5e7993[_0x2dcbae([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x2dcbae([0x6a,0x77,0x6b]),_0x3157e2,{[_0x2dcbae([0x6e,0x61,0x6d,0x65])]:_0x2dcbae([0x45,0x43,0x44,0x53,0x41]),[_0x2dcbae([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x2dcbae([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x2dcbae([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x5e7993[_0x2dcbae([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x2dcbae([0x6e,0x61,0x6d,0x65])]:_0x2dcbae([0x45,0x43,0x44,0x53,0x41]),[_0x2dcbae([0x68,0x61,0x73,0x68])]:{[_0x2dcbae([0x6e,0x61,0x6d,0x65])]:_0x2dcbae([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x2d8a07,_0x6e2250,_0x349390)||(_0x350adb=!0x1);}}function _0x52caa5(_0x3954c2){return _0x3954c2[_0x2dcbae([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x2dcbae([0x65,0x79]))?JSON[_0x2dcbae([0x70,0x61,0x72,0x73,0x65])](_0x4df0fb(_0x3954c2)):null;}function _0x4df0fb(_0x44de86){return window[_0x2dcbae([0x61,0x74,0x6f,0x62])](_0x44de86[_0x2dcbae([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x2dcbae([0x2b]))[_0x2dcbae([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x2dcbae([0x2f])));}function _0x46824d(_0x4f6a08){let _0x71ab13=0x1505;function _0x381d8f(_0x843475){for(let _0x54edfd=0x0;_0x54edfd<_0x843475[_0x2dcbae([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x54edfd++){const _0x348871=_0x843475[_0x2dcbae([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x54edfd);_0x71ab13=(_0x71ab13<<0x5)+_0x71ab13+_0x348871,_0x71ab13&=_0x71ab13;}}function _0x100731(_0x5b4776){Array[_0x2dcbae([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x5b4776)?_0x5b4776[_0x2dcbae([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x100731):_0x5b4776&&typeof _0x5b4776==_0x2dcbae([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x2dcbae([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x5b4776)[_0x2dcbae([0x73,0x6f,0x72,0x74])]()[_0x2dcbae([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x335063,_0xcef772])=>{_0x381d8f(_0x335063),_0x100731(_0xcef772);}):_0x381d8f(window[_0x2dcbae([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x5b4776));}return _0x100731(_0x4f6a08),_0x71ab13>>>0x0;}function _0xb7d1ea(_0x4e554d){return _0x4e554d[_0x2dcbae([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x2dcbae([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x2dcbae([0x30]));}function _0x462cc4(_0x6ac37b){return _0x6ac37b[_0x2dcbae([0x73,0x70,0x6c,0x69,0x74])]('')[_0x2dcbae([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x2dcbae([0x6a,0x6f,0x69,0x6e])]('');}function _0x5b4b18(){}function _0x2dcbae(_0x53d1da){const _0x2b79ba=_0x3201;return _0x53d1da[_0x2b79ba(0x13c)](_0x47f801=>String[_0x2b79ba(0x16d)](_0x47f801))[_0x2b79ba(0x139)]('');}_0x5ca296(await _0x4ef472());}(this);}[_0x2ad61c(0x17a)](){const _0x2486fb=_0x2ad61c,_0x11c5a0=this[_0x2486fb(0x15d)][_0x2486fb(0x15e)][_0x2486fb(0x14e)];_0x11c5a0[_0x2486fb(0x16f)](_0x2486fb(0x12d))&&_0x11c5a0[_0x2486fb(0x14b)](_0x2486fb(0x12d),{'allowAttributes':[_0x2486fb(0x152)]}),_0x11c5a0[_0x2486fb(0x16f)](_0x2486fb(0x168))&&_0x11c5a0[_0x2486fb(0x14b)](_0x2486fb(0x168),{'allowAttributes':[_0x2486fb(0x152)]});}[_0x2ad61c(0x135)](){const _0x3d443c=_0x2ad61c,_0x573e8e=this[_0x3d443c(0x15d)];_0x573e8e[_0x3d443c(0x12f)][_0x3d443c(0x131)](_0x3d443c(0x15b))[_0x3d443c(0x134)]({'model':_0x3d443c(0x152),'view':_0x3d443c(0x169)}),_0x573e8e[_0x3d443c(0x12f)][_0x3d443c(0x131)](_0x3d443c(0x133))[_0x3d443c(0x13b)]({'model':{'key':_0x3d443c(0x152),'value':_0x26c87d=>_0x26c87d[_0x3d443c(0x138)](_0x3d443c(0x169))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0xef906e=_0x573e8e[_0x3d443c(0x164)][_0x3d443c(0x17c)](_0x3d443c(0x12e));_0xef906e&&this[_0x3d443c(0x17d)](_0xef906e,_0x3d443c(0x180),(_0x59d92b,[_0x1c552a,_0x2eba19])=>{const _0x47f3d9=_0x3d443c;_0x1c552a[_0x47f3d9(0x150)](_0x47f3d9(0x152),_0x2eba19);});}[_0x2ad61c(0x160)](){const _0x32bed5=_0x2ad61c,_0xb9cf5e=this[_0x32bed5(0x15d)][_0x32bed5(0x16b)][_0x32bed5(0x17c)](_0x32bed5(0x156))||{},_0x32aefb=this[_0x32bed5(0x15d)][_0x32bed5(0x16b)][_0x32bed5(0x17c)](_0x32bed5(0x15a))||'';this[_0x32bed5(0x141)]=_0x13f136(_0x555667[_0x32bed5(0x15f)],_0x32bed5(0x162),{..._0xb9cf5e,'pubkey':_0x32aefb,'ctx-name':_0x32bed5(0x130)+this[_0x32bed5(0x165)],'sourceList':'','imgOnly':_0x32bed5(0x179),'removeCopyright':_0x32bed5(0x179),'localeName':this[_0x32bed5(0x15d)][_0x32bed5(0x151)][_0x32bed5(0x155)],'externalSourcesEmbedCss':_0x32bed5(0x12c)}),this[_0x32bed5(0x141)][_0x32bed5(0x16c)]=_0x52729c=>{const _0x2daa64=_0x32bed5;if(_0x2daa64(0x170)==_0x52729c)return _0x2daa64(0x178);},_0x555667[_0x32bed5(0x15f)][_0x32bed5(0x167)][_0x32bed5(0x14a)](this[_0x32bed5(0x141)]);}[_0x2ad61c(0x16a)](){const _0x3a165f=_0x2ad61c;this[_0x3a165f(0x13f)]=_0x13f136(_0x555667[_0x3a165f(0x15f)],_0x3a165f(0x14d),{'ctx-name':_0x3a165f(0x130)+this[_0x3a165f(0x165)]}),_0x555667[_0x3a165f(0x15f)][_0x3a165f(0x167)][_0x3a165f(0x14a)](this[_0x3a165f(0x13f)]);}[_0x2ad61c(0x15c)](){const _0x2992e5=_0x2ad61c,_0x3191fb=this[_0x2992e5(0x15d)][_0x2992e5(0x164)][_0x2992e5(0x17c)](_0x2992e5(0x145));_0x3191fb&&this[_0x2992e5(0x17d)](_0x3191fb,_0x2992e5(0x142),()=>{const _0x4b9f5e=_0x2992e5,_0x439a28=this[_0x4b9f5e(0x15d)][_0x4b9f5e(0x15e)][_0x4b9f5e(0x15f)][_0x4b9f5e(0x175)][_0x4b9f5e(0x173)]();_0x439a28&&_0x439a28[_0x4b9f5e(0x138)](_0x4b9f5e(0x152))&&this[_0x4b9f5e(0x15d)][_0x4b9f5e(0x14f)][_0x4b9f5e(0x132)][_0x4b9f5e(0x17e)](_0x4b9f5e(0x154),()=>{const _0x1f7b71=_0x4b9f5e;_0xae9389(this[_0x1f7b71(0x15d)],_0x439a28);});});const _0x4d605e=this[_0x2992e5(0x15d)][_0x2992e5(0x164)][_0x2992e5(0x17c)](_0x2992e5(0x176));_0x4d605e&&this[_0x2992e5(0x17d)](_0x4d605e,_0x2992e5(0x142),()=>{const _0xc3d9cf=_0x2992e5,_0x2f974b=this[_0xc3d9cf(0x15d)][_0xc3d9cf(0x15e)][_0xc3d9cf(0x15f)][_0xc3d9cf(0x175)][_0xc3d9cf(0x173)]();_0x2f974b&&_0x2f974b[_0xc3d9cf(0x138)](_0xc3d9cf(0x152))&&this[_0xc3d9cf(0x15d)][_0xc3d9cf(0x14f)][_0xc3d9cf(0x132)][_0xc3d9cf(0x17e)](_0xc3d9cf(0x154),()=>{const _0x57762d=_0xc3d9cf;_0xae9389(this[_0x57762d(0x15d)],_0x2f974b);});});}}function _0x100a(){const _0x58e78d=['replaceImageSource','conversion','uploader-','for','view','upcast','attributeToAttribute','_initConversion','href','remove','getAttribute','join','input[uploadcare-file-input]','elementToAttribute','map','add','afterInit','_ctxElement','59427OLAAJY','_configElement','execute','configElement','2624622RGPyBW','insertImage','9259195MBBSEN','PictureEditing','4sbedCk','UploadcareEditing','appendChild','extend','16nbIQxx','uc-upload-ctx-provider','schema','editing','removeAttribute','locale','uploadcareImageId','121bKfgFq','render','contentLanguage','uploadcare.uploader','668943NdTVRg','destroy','isPremiumPlugin','uploadcare.pubkey','downcast','_initImageProcessingIndicator','editor','model','document','_initConfig','requires','uc-config','isOfficialPlugin','commands','ucContextId','ctxElement','body','imageInline','data-uc-image-id','_initCtx','config','iconHrefResolver','fromCharCode','51118uRZDpY','isRegistered','closeMax','989268cEoVOM','querySelector','getSelectedElement','26192NVVosC','selection','uploadcareImageReplace','uploadcare','#uc-icon-arrow-down','true','_initSchema','init','get','listenTo','once','1631PbPymJ','cleanupImage','pluginName','10YzlSTM','\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','imageBlock'];_0x100a=function(){return _0x58e78d;};return _0x100a();}
|